@vkontakte/videoplayer 1.1.59 → 1.1.60-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.esm.js CHANGED
@@ -1,60 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.59
3
- * Tue, 25 Mar 2025 14:54:58 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-59/doc/
2
+ * @vkontakte/videoplayer v1.1.60-beta.0
3
+ * Thu, 03 Apr 2025 12:02:30 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-60/doc/
5
5
  */
6
- var I_=Object.defineProperty;var Nm=t=>{throw TypeError(t)};var k_=(t,e,i)=>e in t?I_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Tn=(t,e,i)=>k_(t,typeof e!="symbol"?e+"":e,i),of=(t,e,i)=>e.has(t)||Nm("Cannot "+i);var Pi=(t,e,i)=>(of(t,e,"read from private field"),i?i.call(t):e.get(t)),Es=(t,e,i)=>e.has(t)?Nm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Pa=(t,e,i,o)=>(of(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Bm=(t,e,i)=>(of(t,e,"access private method"),i);var Lo=Symbol("$state"),ls=Symbol("$state metadata"),Ql=Symbol("legacy props"),Dm=Symbol("");var Gd=!0;var Om,Hm,nf=(Hm=(Om=globalThis.process)==null?void 0:Om.env)==null?void 0:Hm.NODE_ENV;nf||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var ze=nf&&!nf.toLowerCase().includes("prod");var Pr=Array.isArray,Fm=Array.prototype.indexOf,Gl=Array.from,rf=Object.keys,oo=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Yd=Object.getOwnPropertyDescriptors,sf=Object.prototype,Um=Array.prototype,ds=Object.getPrototypeOf;function Ps(t){return typeof t=="function"}var Wt=()=>{};function zm(t){return t()}function As(t){for(var e=0;e<t.length;e++)t[e]()}var jd=!1,qm=!1,af=[],Wm=[];function Km(){jd=!1;let t=af.slice();af=[],As(t)}function E_(){qm=!1;let t=Wm.slice();Wm=[],As(t)}function Wo(t){jd||(jd=!0,queueMicrotask(Km)),af.push(t)}function Qm(){jd&&Km(),qm&&E_()}function Zd(t){return t===this.v}function Aa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Gm(t,e){return t!==e}function Ma(t){return!Aa(t,this.v)}function Ym(){if(ze){let t=new Error(`derived_references_self
6
+ var T1=Object.defineProperty;var Vm=t=>{throw TypeError(t)};var I1=(t,e,i)=>e in t?T1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Mn=(t,e,i)=>I1(t,typeof e!="symbol"?e+"":e,i),pu=(t,e,i)=>e.has(t)||Vm("Cannot "+i);var Ci=(t,e,i)=>(pu(t,e,"read from private field"),i?i.call(t):e.get(t)),ds=(t,e,i)=>e.has(t)?Vm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ua=(t,e,i,o)=>(pu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Rm=(t,e,i)=>(pu(t,e,"access private method"),i);var cs="[",ks="[!",Es="]",qr={};var Ti=Symbol(),ci=Symbol("filename"),Bm=Symbol("hmr"),Nm="http://www.w3.org/1999/xhtml",fu="http://www.w3.org/2000/svg";var Od=!0;var Dm,Om,mu=(Om=(Dm=globalThis.process)==null?void 0:Dm.env)==null?void 0:Om.NODE_ENV;mu||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Ce=mu&&!mu.toLowerCase().includes("prod");var Lo=Symbol("$state"),Kr=Symbol("$state metadata"),tl=Symbol("legacy props"),Hm=Symbol("");var mr=Array.isArray,Fm=Array.prototype.indexOf,il=Array.from,vu=Object.keys,Xi=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Hd=Object.getOwnPropertyDescriptors,gu=Object.prototype,Um=Array.prototype,Wr=Object.getPrototypeOf;function us(t){return typeof t=="function"}var ie=()=>{};function zm(t){return t()}function ps(t){for(var e=0;e<t.length;e++)t[e]()}var ol=[],hu=[];function qm(){var t=ol;ol=[],ps(t)}function k1(){var t=hu;hu=[],ps(t)}function qo(t){ol.length===0&&queueMicrotask(qm),ol.push(t)}function _u(){ol.length>0&&qm(),hu.length>0&&k1()}function Fd(t){return t===this.v}function pa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Km(t,e){return t!==e}function fa(t){return!pa(t,this.v)}function Wm(){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 jm(t){if(ze){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 Qm(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 Zm(){if(ze){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 Xm(t){if(ze){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 Gm(){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 Ym(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 Jm(){if(ze){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 jm(){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 ev(){if(ze){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 Zm(){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 tv(){if(ze){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 iv(t){if(ze){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 Xm(){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 Jm(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 ov(t){if(ze){let e=new Error(`rune_outside_svelte
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 ev(t){if(Ce){let e=new Error(`props_rest_readonly
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 tv(t){if(Ce){let e=new Error(`rune_outside_svelte
19
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
20
- 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 nv(){if(ze){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 rv(){if(ze){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 sv(){if(ze){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function av(){if(ze){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Qr=!1,Gr=!1;function lv(){Qr=!0}var La="[",Js="[!",ea="]",cs={};var Ki=Symbol(),yi=Symbol("filename"),dv=Symbol("hmr"),ta="http://www.w3.org/2000/svg";var Yl=null;function us(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 iv(){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 ov(){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 nv(){if(Ce){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function rv(){if(Ce){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Vr=!1,Rr=!1;function sv(){Vr=!0}var nl=null;function Qr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
21
23
  `),n=[`
22
- `];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;oo(e,"stack",{value:n.join(`
23
- `)}),oo(e,"name",{value:`${t}Error`})}return e}var ia="font-weight: bold",oa="font-weight: normal";function uv(t,e,i){ze?console.warn(`%c[svelte] hydration_attribute_changed
24
+ `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;Xi(e,"stack",{value:n.join(`
25
+ `)}),Xi(e,"name",{value:`${t}Error`})}return e}var As=new Set,ma=new Map;function xu(t){As=t}function Bi(t,e){var i={f:0,v:t,reactions:null,equals:Fd,rv:0,wv:0};return Ce&&Rr&&(i.created=e!=null?e:Qr("CreatedAt"),i.debug=null),i}function ee(t){return E1(Bi(t))}function Yr(t,e=!1){var o,n;let i=Bi(t);return e||(i.equals=fa),Vr&&wt!==null&&wt.l!==null&&((n=(o=wt.l).s)!=null?n:o.s=[]).push(i),i}function E1(t){return Lt!==null&&!Rn&&(Lt.f&2)!==0&&(vr===null?dv([t]):vr.push(t)),t}function O(t,e){return Lt!==null&&!Rn&&Br()&&(Lt.f&18)!==0&&(vr===null||!vr.includes(t))&&rv(),va(t,e)}function va(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ms?ma.set(t,e):ma.set(t,i),t.v=e,t.wv=sl(),Ce&&Rr&&(t.updated=Qr("UpdatedAt"),$t!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),lv(t,2048),Br()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(Vn===null?cv([t]):Vn.push(t)),Ce&&As.size>0){let n=Array.from(As);for(let a of n)(a.f&1024)!==0&&Qo(a,4096),fs(a)&&ga(a);As.clear()}}return e}function lv(t,e){var i=t.reactions;if(i!==null)for(var o=Br(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===$t)){if(Ce&&(d&262144)!==0){As.add(s);continue}Qo(s,e),(d&1280)!==0&&((d&2)!==0?lv(s,4096):ha(s))}}}function m(t){var e=2050,i=Lt!==null&&(Lt.f&2)!==0?Lt:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:wt,deps:null,effects:null,equals:Fd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return Ce&&Rr&&(o.created=Qr("CreatedAt")),o}function hr(t){let e=m(t);return e.equals=fa,e}function Ud(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)eo(e[i])}}var wu=[];function A1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function P1(t){var e,i=$t;if(Ji(A1(t)),Ce){let o=As;xu(new Set);try{wu.includes(t)&&Wm(),wu.push(t),Ud(t),e=zd(t)}finally{Ji(i),xu(o),wu.pop()}}else try{Ud(t),e=zd(t)}finally{Ji(i)}return e}function Cu(t){var e=P1(t),i=(jr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Qo(t,i),t.equals(e)||(t.v=e,t.wv=sl())}var Ls="font-weight: bold",Vs="font-weight: normal";function uv(t,e,i){Ce?console.warn(`%c[svelte] hydration_attribute_changed
24
26
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
25
- https://svelte.dev/e/hydration_attribute_changed`,ia,oa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function pv(t){ze?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Ls,Vs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function pv(t){Ce?console.warn(`%c[svelte] hydration_html_changed
26
28
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
27
- https://svelte.dev/e/hydration_html_changed`,ia,oa):console.warn("https://svelte.dev/e/hydration_html_changed")}function na(t){ze?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Ls,Vs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Rs(t){Ce?console.warn(`%c[svelte] hydration_mismatch
28
30
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
29
- https://svelte.dev/e/hydration_mismatch`,ia,oa):console.warn("https://svelte.dev/e/hydration_mismatch")}function fv(){ze?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Ls,Vs):console.warn("https://svelte.dev/e/hydration_mismatch")}function fv(){Ce?console.warn(`%c[svelte] lifecycle_double_unmount
30
32
  %cTried to unmount a component that was not mounted
31
- https://svelte.dev/e/lifecycle_double_unmount`,ia,oa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function mv(t,e,i){ze?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Ls,Vs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function mv(t,e,i){Ce?console.warn(`%c[svelte] ownership_invalid_binding
32
34
  %c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
33
- https://svelte.dev/e/ownership_invalid_binding`,ia,oa):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function cf(t,e){ze?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Ls,Vs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Tu(t,e){Ce?console.warn(`%c[svelte] ownership_invalid_mutation
34
36
  %c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
35
- https://svelte.dev/e/ownership_invalid_mutation`,ia,oa):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Xd(t){ze?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Ls,Vs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function qd(t){Ce?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
38
  %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,oa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var P_={},A_=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,M_=/@(.+):(\d+):(\d+)$/;function L_(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
38
- `)){let n=(i=A_.exec(o))!=null?i:M_.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function vv(){var e;let t=(e=L_())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=P_[o.file];if(!n){if(i===0)return null;continue}for(let r of n){if(r.end==null)return null;if(r.start.line<o.line&&r.end.line>o.line)return r.component}}return null}var Jd=Symbol("ADD_OWNER");function pf(t,e,i=!1,o=!1){if(t&&!i){let n=Ko,r=t[ls];if(r&&!mf(r,n)){let l=vf(r);e&&e[yi]!==n[yi]&&!o&&mv(n[yi],e[yi],l[yi])}}uf(t,e,new Set)}function ff(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function uf(t,e,i){let o=t==null?void 0:t[ls];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),Jd in t&&t[Jd])xo(()=>{t[Jd](e)});else{var n=ds(t);if(n===Object.prototype)for(let r in t)uf(t[r],e,i);else if(n===Array.prototype)for(let r=0;r<t.length;r+=1)uf(t[r],e,i)}}}function mf(t,e){return t.owners===null?!0:t.owners.has(e)||[...t.owners].some(i=>i[yi]===(e==null?void 0:e[yi]))||t.parent!==null&&mf(t.parent,e)}function vf(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:vf(t.parent)}var V_=!1;function gv(t){if(V_)return;let e=vv();if(e&&!mf(t,e)){let i=vf(t);i[yi]!==e[yi]?cf(e[yi],i[yi]):cf()}}function Ra(t){if(ze){let e=new Error(`lifecycle_outside_component
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Ls,Vs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ge=!1;function to(t){Ge=t}var mt;function ui(t){if(t===null)throw Rs(),qr;return mt=t}function Ai(){return ui(So(mt))}function g(t){if(Ge){if(So(mt)!==null)throw Rs(),qr;mt=t}}function _e(t=1){if(Ge){for(var e=t,i=mt;e--;)i=So(i);mt=i}}function _a(){for(var t=0,e=mt;;){if(e.nodeType===8){var i=e.data;if(i===Es){if(t===0)return e;t-=1}else(i===cs||i===ks)&&(t+=1)}var o=So(e);e.remove(),e=o}}function pe(t,e=null,i){var u,f;var o=null;if(Ce&&Rr&&(o=Qr("CreatedAt")),typeof t!="object"||t===null||Lo in t)return t;let n=Wr(t);if(n!==gu&&n!==Um)return t;var a=new Map,s=mr(t),d=Bi(0);s&&a.set("length",Bi(t.length,o));var l;if(Ce)if(l={parent:e,owners:null},i){let _=(f=(u=i.v)==null?void 0:u[Kr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?wt!==null?new Set([wt.function]):null:new Set;return new Proxy(t,{defineProperty(_,p,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&iv();var w=a.get(p);return w===void 0?(w=Bi($.value,o),a.set(p,w)):O(w,pe($.value,l)),!0},deleteProperty(_,p){var $=a.get(p);if($===void 0)p in _&&a.set(p,Bi(Ti,o));else{if(s&&typeof p=="string"){var w=a.get("length"),y=Number(p);Number.isInteger(y)&&y<w.v&&O(w,y)}O($,Ti),vv(d)}return!0},get(_,p,$){var A;if(Ce&&p===Kr)return l;if(p===Lo)return t;var w=a.get(p),y=p in _;if(w===void 0&&(!y||(A=Ln(_,p))!=null&&A.writable)&&(w=Bi(pe(y?_[p]:Ti,l),o),a.set(p,w)),w!==void 0){var S=r(w);if(Ce){var I=S==null?void 0:S[Kr];I&&(I==null?void 0:I.parent)!==l&&Iu(l,I)}return S===Ti?void 0:S}return Reflect.get(_,p,$)},getOwnPropertyDescriptor(_,p){var $=Reflect.getOwnPropertyDescriptor(_,p);if($&&"value"in $){var w=a.get(p);w&&($.value=r(w))}else if($===void 0){var y=a.get(p),S=y==null?void 0:y.v;if(y!==void 0&&S!==Ti)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return $},has(_,p){var S;if(Ce&&p===Kr||p===Lo)return!0;var $=a.get(p),w=$!==void 0&&$.v!==Ti||Reflect.has(_,p);if($!==void 0||$t!==null&&(!w||(S=Ln(_,p))!=null&&S.writable)){$===void 0&&($=Bi(w?pe(_[p],l):Ti,o),a.set(p,$));var y=r($);if(y===Ti)return!1}return w},set(_,p,$,w){var z;var y=a.get(p),S=p in _;if(s&&p==="length")for(var I=$;I<y.v;I+=1){var A=a.get(I+"");A!==void 0?O(A,Ti):I in _&&(A=Bi(Ti,o),a.set(I+"",A))}if(y===void 0?(!S||(z=Ln(_,p))!=null&&z.writable)&&(y=Bi(void 0,o),O(y,pe($,l)),a.set(p,y)):(S=y.v!==Ti,O(y,pe($,l))),Ce){var P=$==null?void 0:$[Kr];P&&(P==null?void 0:P.parent)!==l&&Iu(l,P),gv(l)}var E=Reflect.getOwnPropertyDescriptor(_,p);if(E!=null&&E.set&&E.set.call(w,$),!S){if(s&&typeof p=="string"){var T=a.get("length"),V=Number(p);Number.isInteger(V)&&V>=T.v&&O(T,V+1)}vv(d)}return!0},ownKeys(_){r(d);var p=Reflect.ownKeys(_).filter(y=>{var S=a.get(y);return S===void 0||S.v!==Ti});for(var[$,w]of a)w.v!==Ti&&!($ in _)&&p.push($);return p},setPrototypeOf(){ov()}})}function vv(t,e=1){O(t,t.v+e)}function Kd(t){return t!==null&&typeof t=="object"&&Lo in t?t[Lo]:t}function hv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(Kd(this[l])===a){qd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(Kd(this[l])===a){qd("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(Kd(this[l])===a){qd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Bs,_v,al,bv,$v;function Wd(){if(Bs===void 0){Bs=window,_v=document,al=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;bv=Ln(e,"firstChild").get,$v=Ln(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,Ce&&(t.__svelte_meta=null,hv())}}function Go(t=""){return document.createTextNode(t)}function pi(t){return bv.call(t)}function So(t){return $v.call(t)}function h(t,e){if(!Ge)return pi(t);var i=pi(mt);if(i===null)i=mt.appendChild(Go());else if(e&&i.nodeType!==3){var o=Go();return i==null||i.before(o),ui(o),o}return ui(i),i}function ve(t,e){var n,a;if(!Ge){var i=pi(t);return i.nodeType===8&&i.data===""?So(i):i}if(e&&((n=mt)==null?void 0:n.nodeType)!==3){var o=Go();return(a=mt)==null||a.before(o),ui(o),o}return mt}function M(t,e=1,i=!1){let o=Ge?mt:t;for(var n;e--;)n=o,o=So(o);if(!Ge)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=Go();return o===null?n==null||n.after(s):o.before(s),ui(s),s}return ui(o),o}function ll(t){t.textContent=""}var yv=new WeakSet,Qd=!1,ul=!1,dl=null,Ns=!1,Ms=!1;function Au(t){Ms=t}var cl=[],Yd=[],Lt=null,Rn=!1;function mo(t){Lt=t}var $t=null;function Ji(t){$t=t}var vr=null;function dv(t){vr=t}var Yo=null,Nn=0,Vn=null;function cv(t){Vn=t}var Tv=1,jd=0,jr=!1,rl=null;function sl(){return++Tv}function fs(t){var _,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&$t!==null&&!jr,l=i.length;if(s||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(s||!((_=a==null?void 0:a.reactions)!=null&&_.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);s&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],fs(a)&&Cu(a),a.wv>t.wv)return!0}(!o||$t!==null&&!jr)&&Qo(t,1024)}return!1}function xv(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw Qd=!1,t}function wv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function $a(t,e,i,o){var f,_;if(Qd){if(i===null&&(Qd=!1),wv(e))throw t;return}if(i!==null&&(Qd=!0),!Ce||o===null||!(t instanceof Error)||yv.has(t)){xv(t,e);return}yv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ce){var d=(_=s.function)==null?void 0:_[ci];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=al?" ":" ";Xi(t,"message",{value:t.message+`
40
+ ${n.map(p=>`
41
+ ${l}in ${p}`).join("")}
42
+ `}),Xi(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
43
+ `),$=[];for(let w=0;w<p.length;w++){let y=p[w];y.includes("svelte/src/internal")||$.push(y)}Xi(t,"stack",{value:$.join(`
44
+ `)})}if(xv(t,e),wv(e))throw t}function Iv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?Iv(a,e,!1):e===a&&(i?Qo(a,2048):(a.f&1024)!==0&&Qo(a,4096),ha(a))}}function zd(t){var $,w;var e=Yo,i=Nn,o=Vn,n=Lt,a=jr,s=vr,d=wt,l=Rn,u=t.f;Yo=null,Nn=0,Vn=null,jr=(u&256)!==0&&(Rn||!Ns||Lt===null),Lt=(u&96)===0?t:null,vr=null,fl(t.ctx),Rn=!1,jd++;try{var f=(0,t.fn)(),_=t.deps;if(Yo!==null){var p;if(pl(t,Nn),_!==null&&Nn>0)for(_.length=Nn+Yo.length,p=0;p<Yo.length;p++)_[Nn+p]=Yo[p];else t.deps=_=Yo;if(!jr)for(p=Nn;p<_.length;p++)((w=($=_[p]).reactions)!=null?w:$.reactions=[]).push(t)}else _!==null&&Nn<_.length&&(pl(t,Nn),_.length=Nn);if(Br()&&Vn!==null&&!Rn&&_!==null&&(t.f&6146)===0)for(p=0;p<Vn.length;p++)Iv(Vn[p],t);return n!==null&&(jd++,Vn!==null&&(o===null?o=Vn:o.push(...Vn))),f}finally{Yo=e,Nn=i,Vn=o,Lt=n,jr=a,vr=s,fl(d),Rn=l}}function M1(t,e){let i=e.reactions;if(i!==null){var o=Fm.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(Yo===null||!Yo.includes(e))&&(Qo(e,4096),(e.f&768)===0&&(e.f^=512),Ud(e),pl(e,0))}function pl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)M1(t,i[o])}function ga(t){var e=t.f;if((e&16384)===0){Qo(t,1024);var i=$t,o=wt,n=Ns;if($t=t,Ns=!0,Ce){var a=jo;ml(t.component_function)}try{(e&16)!==0?kv(t):Mu(t),Pu(t);var s=zd(t);t.teardown=typeof s=="function"?s:null,t.wv=Tv;var d=t.deps;if(Ce&&Rr&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=sl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ce&&Yd.push(t)}catch(u){$a(u,t,i,o||t.ctx)}finally{Ns=n,$t=i,Ce&&ml(a)}}}function Sv(){console.error("Last ten effects were: ",Yd.slice(-10).map(t=>t.fn)),Yd=[]}function L1(){try{jm()}catch(t){if(Ce&&Xi(t,"stack",{value:""}),dl!==null)if(Ce)try{$a(t,dl,null,null)}catch(e){throw Sv(),e}else $a(t,dl,null,null);else throw Ce&&Sv(),t}}function ku(){var t=Ns;try{var e=0;for(Ns=!0;cl.length>0;){e++>1e3&&L1();var i=cl,o=i.length;cl=[];for(var n=0;n<o;n++){var a=R1(i[n]);V1(a)}}}finally{ul=!1,Ns=t,dl=null,Ce&&(Yd=[]),ma.clear()}}function V1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{fs(o)&&(ga(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Lu(o):o.fn=null))}catch(n){$a(n,o,null,o.ctx)}}}function ha(t){ul||(ul=!0,queueMicrotask(ku));for(var e=dl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}cl.push(e)}function R1(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Lt;try{Lt=i,fs(i)&&ga(i)}catch(u){$a(u,i,null,i.ctx)}finally{Lt=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function ya(t){var e;for(t&&(ul=!0,ku(),e=t()),_u();cl.length>0;)ul=!0,ku(),_u();return e}async function vo(){await Promise.resolve(),ya()}function r(t){var e=t.f,i=(e&2)!==0;if(rl!==null&&rl.add(t),Lt!==null&&!Rn){vr!==null&&vr.includes(t)&&nv();var o=Lt.deps;t.rv<jd&&(t.rv=jd,Yo===null&&o!==null&&o[Nn]===t?Nn++:Yo===null?Yo=[t]:(!jr||!Yo.includes(t))&&Yo.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,fs(n)&&Cu(n)),Ce&&Rr&&nl!==null&&Lt!==null&&nl.reaction===Lt){if(t.debug)t.debug();else if(t.created){var s=nl.entries.get(t);s===void 0&&(s={read:[]},nl.entries.set(t,s)),s.read.push(Qr("TracedAt"))}}return Ms&&ma.has(t)?ma.get(t):t.v}function _t(t){var e=Rn;try{return Rn=!0,t()}finally{Rn=e}}var B1=-7169;function Qo(t,e){t.f=t.f&B1|e}function Xd(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)Zd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&Zd(i)}}}function Zd(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{Zd(t[o],e)}catch(n){}let i=Wr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Hd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Ru(t){$t===null&&Lt===null&&Ym(t),Lt!==null&&(Lt.f&256)!==0&&$t===null&&Gm(),Ms&&Qm(t)}function N1(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 l;var n=$t;if(Ce)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:wt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ce&&(a.component_function=jo),i)try{ga(a),a.f|=32768}catch(u){throw eo(a),u}else e!==null&&ha(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&N1(a,n),Lt!==null&&(Lt.f&2)!==0)){var d=Lt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function Zo(t){let e=Ds(8,null,!1);return Qo(e,1024),e.teardown=t,e}function Ye(t){var n;Ru("$effect");var e=$t!==null&&($t.f&32)!==0&&wt!==null&&!wt.m;if(Ce&&Xi(t,"name",{value:"$effect"}),e){var i=wt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:$t,reaction:Lt})}else{var o=cn(t);return o}}function xa(t){return Ru("$effect.pre"),Ce&&Xi(t,"name",{value:"$effect.pre"}),go(t)}function ec(t){let e=Ds(64,t,!0);return()=>{eo(e)}}function Av(t){let e=Ds(64,t,!0);return(i={})=>new Promise(o=>{i.outro?un(e,()=>{eo(e),o(void 0)}):(eo(e),o(void 0))})}function cn(t){return Ds(4,t,!1)}function go(t){return Ds(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Ce&&Xi(n,"name",{value:"{expression}"}),io(n)}function io(t,e=0){return Ds(24|e,t,!0)}function Ni(t,e=!0){return Ds(40,t,!0,e)}function Pu(t){var e=t.teardown;if(e!==null){let i=Ms,o=Lt;Au(!0),mo(null);try{e.call(null)}finally{Au(i),mo(o)}}}function Mu(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:eo(i,e),i=o}}function kv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&eo(e),e=i}}function eo(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:So(o);o.remove(),o=a}i=!0}Mu(t,e&&!i),pl(t,0),Qo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Pu(t);var d=t.parent;d!==null&&d.first!==null&&Lu(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 Lu(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 un(t,e){var i=[];tc(t,i,!0),Bu(i,()=>{eo(t),e&&e()})}function Bu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function tc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;tc(o,e,a?i:!1),o=n}}}function Zr(t){Pv(t,!0)}function Pv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),fs(t)&&(Qo(t,2048),ha(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Pv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var D1={},O1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,H1=/@(.+):(\d+):(\d+)$/;function F1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=O1.exec(o))!=null?i:H1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Mv(){var e;let t=(e=F1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=D1[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var ic=Symbol("ADD_OWNER");function Nu(t,e,i=!1,o=!1){if(t&&!i){let n=jo,a=t[Kr];if(a&&!Du(a,n)){let s=Ou(a);e&&e[ci]!==n[ci]&&!o&&mv(n[ci],e[ci],s[ci])}}oc(t,e,new Set)}function Iu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function oc(t,e,i){var a;let o=t==null?void 0:t[Kr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),ic in t&&t[ic])go(()=>{t[ic](e)});else{var n=Wr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ti;go(()=>{let l=t[s];d!==l&&(d=l,oc(l,e,i))})}else oc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)oc(t[s],e,i)}}}function Du(t,e){return t.owners===null?!0:t.owners.has(e)||ci in e&&[...t.owners].some(i=>i[ci]===e[ci])||t.parent!==null&&Du(t.parent,e)}function Ou(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Ou(t.parent)}var U1=!1;function gv(t){if(U1)return;let e=Mv();if(e&&!Du(t,e)){let i=Ou(t);i[ci]!==e[ci]?Tu(e[ci],i[ci]):Tu()}}function wa(t){if(Ce){let e=new Error(`lifecycle_outside_component
39
46
  \`${t}(...)\` can only be used during component initialisation
40
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Vt=null;function Zl(t){Vt=t}var Ko=null;function Xl(t){Ko=t}function Na(t){return gf("getContext").get(t)}function Ba(t,e){let i=gf("setContext");return ze&&Tt(()=>pf(e,null,!0)),i.set(t,e),e}function Jl(){return gf("getAllContexts")}function E(t,e=!1,i){Vt={p:Vt,c:null,e:null,m:!1,s:t,x:null,l:null},Qr&&!e&&(Vt.l={s:null,u:null,r1:[],r2:Oi(!1)}),ze&&(Vt.function=i,Ko=i)}function P(t){var l,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=It,o=qt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];Di(r.effect),po(r.reaction),sn(r.fn)}}finally{Di(i),po(o)}}Vt=e.p,ze&&(Ko=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Yr(){return!Qr||Vt!==null&&Vt.l===null}function gf(t){var e;return Vt===null&&Ra(t),(e=Vt.c)!=null?e:Vt.c=new Map(N_(Vt)||void 0)}function N_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var ra=new Set;function _f(t){ra=t}function Oi(t,e){var i={f:0,v:t,reactions:null,equals:Zd,rv:0,wv:0};return ze&&Gr&&(i.created=e!=null?e:us("CreatedAt"),i.debug=null),i}function ue(t){return B_(Oi(t))}function ps(t,e=!1){var o,n;let i=Oi(t);return e||(i.equals=Ma),Qr&&Vt!==null&&Vt.l!==null&&((n=(o=Vt.l).s)!=null?n:o.s=[]).push(i),i}function B_(t){return qt!==null&&!Mr&&qt.f&2&&(Ar===null?_v([t]):Ar.push(t)),t}function Y(t,e){return qt!==null&&!Mr&&Yr()&&qt.f&18&&(Ar===null||!Ar.includes(t))&&av(),Oa(t,e)}function Oa(t,e){var n;if(!t.equals(e)){var i=t.v;if(t.v=e,t.wv=ed(),ze&&Gr&&(t.updated=us("UpdatedAt"),It!=null&&(t.trace_need_increase=!0,(n=t.trace_v)!=null||(t.trace_v=i))),hv(t,2048),Yr()&&It!==null&&It.f&1024&&!(It.f&96)&&(jr===null?$v([t]):jr.push(t)),ze&&ra.size>0){let r=Array.from(ra);var o=fs;Da(!0);try{for(let l of r)l.f&1024&&Qo(l,4096),Ms(l)&&Ha(l)}finally{Da(o)}ra.clear()}}return e}function ec(t,e=1){var i=s(t),o=e===1?i++:i--;return Y(t,i),o}function hv(t,e){var i=t.reactions;if(i!==null)for(var o=Yr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if(!(d&2048)&&!(!o&&l===It)){if(ze&&d&262144){ra.add(l);continue}Qo(l,e),d&1280&&(d&2?hv(l,4096):Fa(l))}}}function $(t){var e=2050,i=qt!==null&&qt.f&2?qt:null;It===null||i!==null&&i.f&256?e|=256:It.f|=1048576;let o={ctx:Vt,deps:null,effects:null,equals:Zd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:It};return ze&&Gr&&(o.created=us("CreatedAt")),o}function Lr(t){let e=$(t);return e.equals=Ma,e}function tc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)no(e[i])}}var $f=[];function D_(t){for(var e=t.parent;e!==null;){if(!(e.f&2))return e;e=e.parent}return null}function O_(t){var e,i=It;if(Di(D_(t)),ze){let o=ra;_f(new Set);try{$f.includes(t)&&Ym(),$f.push(t),tc(t),e=ic(t)}finally{Di(i),_f(o),$f.pop()}}else try{tc(t),e=ic(t)}finally{Di(i)}return e}function yf(t){var e=O_(t),i=(ms||t.f&256)&&t.deps!==null?4096:1024;Qo(t,i),t.equals(e)||(t.v=e,t.wv=ed())}var Sv=0,H_=1,bv=new WeakSet,oc=!1,nc=Sv,td=!1,Ua=null,fs=!1,lc=!1;function Da(t){fs=t}function wf(t){lc=t}var aa=[],za=0,id=[],qt=null,Mr=!1;function po(t){qt=t}var It=null;function Di(t){It=t}var Ar=null;function _v(t){Ar=t}var Go=null,An=0,jr=null;function $v(t){jr=t}var Tv=1,sc=0,ms=!1,jl=null;function ed(){return++Tv}function Ms(t){var c,f;var e=t.f;if(e&2048)return!0;if(e&4096){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,r,l=(e&512)!==0,d=o&&It!==null&&!ms,a=i.length;if(l||d){for(n=0;n<a;n++)r=i[n],(l||!((c=r==null?void 0:r.reactions)!=null&&c.includes(t)))&&((f=r.reactions)!=null?f:r.reactions=[]).push(t);l&&(t.f^=512)}for(n=0;n<a;n++)if(r=i[n],Ms(r)&&yf(r),r.wv>t.wv)return!0}(!o||It!==null&&!ms)&&Qo(t,1024)}return!1}function yv(t,e){for(var i=e;i!==null;){if(i.f&128)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw oc=!1,t}function xv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function qa(t,e,i,o){var f,g;if(oc){if(i===null&&(oc=!1),xv(e))throw t;return}if(i!==null&&(oc=!0),!ze||o===null||!(t instanceof Error)||bv.has(t)){yv(t,e);return}bv.add(t);let n=[],r=(f=e.fn)==null?void 0:f.name;r&&n.push(r);let l=o;for(;l!==null;){if(ze){var d=(g=l.function)==null?void 0:g[yi];if(d){let m=d.split("/").pop();n.push(m)}}l=l.p}let a=/Firefox/.test(navigator.userAgent)?" ":" ";oo(t,"message",{value:t.message+`
41
- ${n.map(m=>`
42
- ${a}in ${m}`).join("")}
43
- `}),oo(t,"component_stack",{value:n});let c=t.stack;if(c){let m=c.split(`
44
- `),h=[];for(let _=0;_<m.length;_++){let y=m[_];y.includes("svelte/src/internal")||h.push(y)}oo(t,"stack",{value:h.join(`
45
- `)})}if(yv(t,e),xv(e))throw t}function Iv(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?Iv(r,e,i+1):e===r&&(i===0?Qo(r,2048):r.f&1024&&Qo(r,4096),Fa(r))}}function ic(t){var h,_;var e=Go,i=An,o=jr,n=qt,r=ms,l=Ar,d=Vt,a=Mr,c=t.f;Go=null,An=0,jr=null,qt=c&96?null:t,ms=(c&256)!==0&&(!fs||n===null||a),Ar=null,Zl(t.ctx),Mr=!1,sc++;try{var f=(0,t.fn)(),g=t.deps;if(Go!==null){var m;if(od(t,An),g!==null&&An>0)for(g.length=An+Go.length,m=0;m<Go.length;m++)g[An+m]=Go[m];else t.deps=g=Go;if(!ms)for(m=An;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&An<g.length&&(od(t,An),g.length=An);if(Yr()&&jr!==null&&!(t.f&6146))for(m=0;m<jr.length;m++)Iv(jr[m],t);return n!==null&&sc++,f}finally{Go=e,An=i,jr=o,qt=n,ms=r,Ar=l,Zl(d),Mr=a}}function F_(t,e){let i=e.reactions;if(i!==null){var o=Fm.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(Go===null||!Go.includes(e))&&(Qo(e,4096),e.f&768||(e.f^=512),tc(e),od(e,0))}function od(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)F_(t,i[o])}function Ha(t){var e=t.f;if(!(e&16384)){Qo(t,1024);var i=It,o=Vt;if(It=t,ze){var n=Ko;Xl(t.component_function)}try{e&16?Av(t):Sf(t),Cf(t);var r=ic(t);t.teardown=typeof r=="function"?r:null,t.wv=Tv;var l=t.deps;if(ze&&Gr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=ed(),d.trace_need_increase=void 0,d.trace_v=void 0)}ze&&id.push(t)}catch(a){qa(a,t,i,o||t.ctx)}finally{It=i,ze&&Xl(n)}}}function wv(){console.error("Last ten effects were: ",id.slice(-10).map(t=>t.fn)),id=[]}function kv(){if(za>1e3){za=0;try{Jm()}catch(t){if(ze&&oo(t,"stack",{value:""}),Ua!==null)if(ze)try{qa(t,Ua,null,null)}catch(e){throw wv(),e}else qa(t,Ua,null,null);else throw ze&&wv(),t}}za++}function Ev(t){var e=t.length;if(e!==0){kv();var i=fs;fs=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];Pv(n,r),U_(r)}}finally{fs=i}}}function U_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{Ms(o)&&(Ha(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Tf(o):o.fn=null))}catch(n){qa(n,o,null,o.ctx)}}}function z_(){if(td=!1,za>1001)return;let t=aa;aa=[],Ev(t),td||(za=0,Ua=null,ze&&(id=[]))}function Fa(t){nc===Sv&&(td||(td=!0,queueMicrotask(z_))),Ua=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}aa.push(e)}function Pv(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else{var a=qt;try{qt=i,Ms(i)&&Ha(i)}catch(m){qa(m,i,null,i.ctx)}finally{qt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),Pv(c,e)}function u(t){var e=nc,i=aa;try{kv();let n=[];nc=H_,aa=n,td=!1,Ev(i);var o=t==null?void 0:t();return Qm(),(aa.length>0||n.length>0)&&u(),za=0,Ua=null,ze&&(id=[]),o}finally{nc=e,aa=i}}async function fo(){await Promise.resolve(),u()}function s(t){var e=t.f,i=(e&2)!==0;if(jl!==null&&jl.add(t),qt!==null&&!Mr){Ar!==null&&Ar.includes(t)&&sv();var o=qt.deps;t.rv<sc&&(t.rv=sc,Go===null&&o!==null&&o[An]===t?An++:Go===null?Go=[t]:(!ms||!Go.includes(t))&&Go.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Ms(n)&&yf(n)),ze&&Gr&&Yl!==null&&qt!==null&&Yl.reaction===qt){if(t.debug)t.debug();else if(t.created){var l=Yl.entries.get(t);l===void 0&&(l={read:[]},Yl.entries.set(t,l)),l.read.push(us("TracedAt"))}}return t.v}function Tt(t){var e=Mr;try{return Mr=!0,t()}finally{Mr=e}}var W_=-7169;function Qo(t,e){t.f=t.f&W_|e}function dc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&ac(i)}}}function ac(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{ac(t[o],e)}catch(n){}let i=ds(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Yd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var st=!1;function ro(t){st=t}var wt;function pi(t){if(t===null)throw na(),cs;return wt=t}function Ai(){return pi(wo(wt))}function b(t){if(st){if(wo(wt)!==null)throw na(),cs;wt=t}}function Me(t=1){if(st){for(var e=t,i=wt;e--;)i=wo(i);wt=i}}function Qa(){for(var t=0,e=wt;;){if(e.nodeType===8){var i=e.data;if(i===ea){if(t===0)return e;t-=1}else(i===La||i===Js)&&(t+=1)}var o=wo(e);e.remove(),e=o}}function Ae(t,e=null,i){var c,f;var o=null;if(ze&&Gr&&(o=us("CreatedAt")),typeof t!="object"||t===null||Lo in t)return t;let n=ds(t);if(n!==sf&&n!==Um)return t;var r=new Map,l=Pr(t),d=Oi(0);l&&r.set("length",Oi(t.length,o));var a;if(ze)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[ls])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Vt!==null?new Set([Vt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&nv();var _=r.get(m);return _===void 0?(_=Oi(h.value,o),r.set(m,_)):Y(_,Ae(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,Oi(Ki,o));else{if(l&&typeof m=="string"){var _=r.get("length"),y=Number(m);Number.isInteger(y)&&y<_.v&&Y(_,y)}Y(h,Ki),Mv(d)}return!0},get(g,m,h){var B;if(ze&&m===ls)return a;if(m===Lo)return t;var _=r.get(m),y=m in g;if(_===void 0&&(!y||(B=In(g,m))!=null&&B.writable)&&(_=Oi(Ae(y?g[m]:Ki,a),o),r.set(m,_)),_!==void 0){var S=s(_);if(ze){var L=S==null?void 0:S[ls];L&&(L==null?void 0:L.parent)!==a&&ff(a,L)}return S===Ki?void 0:S}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var y=r.get(m),S=y==null?void 0:y.v;if(y!==void 0&&S!==Ki)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return h},has(g,m){var S;if(ze&&m===ls||m===Lo)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Ki||Reflect.has(g,m);if(h!==void 0||It!==null&&(!_||(S=In(g,m))!=null&&S.writable)){h===void 0&&(h=Oi(_?Ae(g[m],a):Ki,o),r.set(m,h));var y=s(h);if(y===Ki)return!1}return _},set(g,m,h,_){var K;var y=r.get(m),S=m in g;if(l&&m==="length")for(var L=h;L<y.v;L+=1){var B=r.get(L+"");B!==void 0?Y(B,Ki):L in g&&(B=Oi(Ki,o),r.set(L+"",B))}if(y===void 0?(!S||(K=In(g,m))!=null&&K.writable)&&(y=Oi(void 0,o),Y(y,Ae(h,a)),r.set(m,y)):(S=y.v!==Ki,Y(y,Ae(h,a))),ze){var V=h==null?void 0:h[ls];V&&(V==null?void 0:V.parent)!==a&&ff(a,V),gv(a)}var N=Reflect.getOwnPropertyDescriptor(g,m);if(N!=null&&N.set&&N.set.call(_,h),!S){if(l&&typeof m=="string"){var T=r.get("length"),U=Number(m);Number.isInteger(U)&&U>=T.v&&Y(T,U+1)}Mv(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(y=>{var S=r.get(y);return S===void 0||S.v!==Ki});for(var[h,_]of r)_.v!==Ki&&!(h in g)&&m.push(h);return m},setPrototypeOf(){rv()}})}function Mv(t,e=1){Y(t,t.v+e)}function cc(t){return t!==null&&typeof t=="object"&&Lo in t?t[Lo]:t}function Lv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(cc(this[a])===r){Xd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(cc(this[a])===r){Xd("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(cc(this[a])===r){Xd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var la,Vv,Rv,Nv;function uc(){if(la===void 0){la=window,Vv=document;var t=Element.prototype,e=Node.prototype;Rv=In(e,"firstChild").get,Nv=In(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,ze&&(t.__svelte_meta=null,Lv())}}function Yo(t=""){return document.createTextNode(t)}function fi(t){return Rv.call(t)}function wo(t){return Nv.call(t)}function x(t,e){if(!st)return fi(t);var i=fi(wt);if(i===null)i=wt.appendChild(Yo());else if(e&&i.nodeType!==3){var o=Yo();return i==null||i.before(o),pi(o),o}return pi(i),i}function Ie(t,e){var n,r;if(!st){var i=fi(t);return i.nodeType===8&&i.data===""?wo(i):i}if(e&&((n=wt)==null?void 0:n.nodeType)!==3){var o=Yo();return(r=wt)==null||r.before(o),pi(o),o}return wt}function O(t,e=1,i=!1){let o=st?wt:t;for(var n;e--;)n=o,o=wo(o);if(!st)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=Yo();return o===null?n==null||n.after(l):o.before(l),pi(l),l}return pi(o),o}function rd(t){t.textContent=""}function kf(t){It===null&&qt===null&&Xm(t),qt!==null&&qt.f&256&&It===null&&Zm(),lc&&jm(t)}function q_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function da(t,e,i,o=!0){var f;var n=(t&64)!==0,r=It;if(ze)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Vt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(ze&&(l.component_function=Ko),i){var d=fs;try{Da(!0),Ha(l),l.f|=32768}catch(g){throw no(l),g}finally{Da(d)}}else e!==null&&Fa(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&q_(l,r),qt!==null&&qt.f&2)){var c=qt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Mn(t){let e=da(8,null,!1);return Qo(e,1024),e.teardown=t,e}function rt(t){var n;kf("$effect");var e=It!==null&&(It.f&32)!==0&&Vt!==null&&!Vt.m;if(ze&&oo(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:It,reaction:qt})}else{var o=sn(t);return o}}function Va(t){return kf("$effect.pre"),ze&&oo(t,"name",{value:"$effect.pre"}),xo(t)}function pc(t){let e=da(64,t,!0);return()=>{no(e)}}function Dv(t){let e=da(64,t,!0);return(i={})=>new Promise(o=>{i.outro?dn(e,()=>{no(e),o(void 0)}):(no(e),o(void 0))})}function sn(t){return da(4,t,!1)}function xo(t){return da(8,t,!0)}function R(t,e=[],i=$){let o=e.map(i),n=()=>t(...o.map(s));return ze&&oo(n,"name",{value:"{expression}"}),so(n)}function so(t,e=0){return da(24|e,t,!0)}function Qi(t,e=!0){return da(40,t,!0,e)}function Cf(t){var e=t.teardown;if(e!==null){let i=lc,o=qt;wf(!0),po(null);try{e.call(null)}finally{wf(i),po(o)}}}function Sf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;no(i,e),i=o}}function Av(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||no(e),e=i}}function no(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:wo(o);o.remove(),o=r}i=!0}Sf(t,e&&!i),od(t,0),Qo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();Cf(t);var d=t.parent;d!==null&&d.first!==null&&Tf(t),ze&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Tf(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 dn(t,e){var i=[];fc(t,i,!0),Ef(i,()=>{no(t),e&&e()})}function Ef(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function fc(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;fc(o,e,r?i:!1),o=n}}}function vs(t){Ov(t,!0)}function Ov(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Ms(t)&&(Qo(t,2048),Fa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ov(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Pf(t,e){if(e){let i=document.body;t.autofocus=!0,Wo(()=>{document.activeElement===i&&t.focus()})}}function Af(t){var e=qt,i=It;po(null),Di(null);try{return t()}finally{po(e),Di(i)}}var Mf=new Set,mc=new Set;function ca(t){if(!st)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Lf(t,e,i,o={}){function n(r){if(o.capture||Ga.call(e,r),!r.cancelBubble)return Af(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Wo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ft(t,e,i,o,n){var r={capture:o,passive:n},l=Lf(t,e,i,r);(e===document.body||e===window||e===document)&&Mn(()=>{e.removeEventListener(t,l,r)})}function bt(t){for(var e=0;e<t.length;e++)Mf.add(t[e]);for(var i of mc)i(t)}function Ga(t){var B;var e=this,i=e.ownerDocument,o=t.type,n=((B=t.composedPath)==null?void 0:B.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){oo(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=qt,g=It;po(null),Di(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!==void 0&&!r.disabled)if(Pr(y)){var[S,...L]=y;S.apply(r,[t,...L])}else y.call(r,t)}catch(V){m?h.push(V):m=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let V of h)queueMicrotask(()=>{throw V});throw m}}finally{t.__root=e,delete t.currentTarget,po(f),Di(g)}}}var Q_;function Hv(){Q_=void 0}function Ya(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function mo(t,e){var i=It;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function F(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(st)return mo(wt,null),wt;n===void 0&&(n=Ya(r?t:"<!>"+t),i||(n=fi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=fi(l),a=l.lastChild;mo(d,a)}else mo(l,l);return l}}function Le(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(st)return mo(wt,null),wt;if(!l){var d=Ya(r),a=fi(d);if(n)for(l=document.createDocumentFragment();fi(a);)l.appendChild(fi(a));else l=fi(a)}var c=l.cloneNode(!0);if(n){var f=fi(c),g=c.lastChild;mo(f,g)}else mo(c,c);return c}}function rr(t=""){if(!st){var e=Yo(t+"");return mo(e,e),e}var i=wt;return i.nodeType!==3&&(i.before(i=Yo()),pi(i)),mo(i,i),i}function Ze(){if(st)return mo(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Yo();return t.append(e,i),mo(e,i),t}function w(t,e){if(st){It.nodes_end=wt,Ai();return}t!==null&&t.before(e)}var Y_=/\r/g;function Uv(t){t=t.replace(Y_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var j_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wv(t){return j_.includes(t)}var Z_=["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 X_={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 qv(t){var e;return t=t.toLowerCase(),(e=X_[t])!=null?e:t}var f7=[...Z_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var J_=["touchstart","touchmove"];function Kv(t){return J_.includes(t)}var e$=["textarea","script","style","title"];function Qv(t){return e$.includes(t)}function Vf(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var sd=!0;function vc(t){sd=t}function ke(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function gc(t,e){return Gv(t,e)}function Nf(t,e){var l;uc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=st,n=wt;try{for(var r=fi(i);r&&(r.nodeType!==8||r.data!==La);)r=wo(r);if(!r)throw cs;ro(!0),pi(r),Ai();let d=Gv(t,{...e,anchor:r});if(wt===null||wt.nodeType!==8||wt.data!==ea)throw na(),cs;return ro(!1),d}catch(d){if(d===cs)return e.recover===!1&&ev(),uc(),rd(i),ro(!1),gc(t,e);throw d}finally{ro(o),pi(n),Hv()}}var ja=new Map;function Gv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){uc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Kv(h);e.addEventListener(h,Ga,{passive:_});var y=ja.get(h);y===void 0?(document.addEventListener(h,Ga,{passive:_}),ja.set(h,1)):ja.set(h,y+1)}}};a(Gl(Mf)),mc.add(a);var c=void 0,f=Dv(()=>{var g=i!=null?i:e.appendChild(Yo());return Qi(()=>{if(r){E({});var m=Vt;m.c=r}n&&(o.$$events=n),st&&mo(g,null),sd=l,c=t(g,o)||{},sd=!0,st&&(It.nodes_end=wt),r&&P()}),()=>{var _;for(var m of d){e.removeEventListener(m,Ga);var h=ja.get(m);--h===0?(document.removeEventListener(m,Ga),ja.delete(m)):ja.set(m,h)}mc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return Rf.set(c,f),c}var Rf=new WeakMap;function Bf(t,e){let i=Rf.get(t);return i?(Rf.delete(t),i(e)):(ze&&fv(),Promise.resolve())}var Of;function k(t){return Of=t.target,new Df(t)}var gs,sr,Df=class{constructor(e){Es(this,gs);Es(this,sr);var r,l;var i=new Map,o=(d,a)=>{var c=ps(a);return i.set(d,c),c};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===Ql?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return Y((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});Pa(this,sr,(e.hydrate?Nf:gc)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),Pa(this,gs,n.$$events);for(let d of Object.keys(Pi(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Pi(this,sr)[d]},set(a){Pi(this,sr)[d]=a},enumerable:!0});Pi(this,sr).$set=d=>{Object.assign(n,d)},Pi(this,sr).$destroy=()=>{Bf(Pi(this,sr))}}$set(e){Pi(this,sr).$set(e)}$on(e,i){Pi(this,gs)[e]=Pi(this,gs)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,gs)[e].push(o),()=>{Pi(this,gs)[e]=Pi(this,gs)[e].filter(n=>n!==o)}}$destroy(){Pi(this,sr).$destroy()}};gs=new WeakMap,sr=new WeakMap;var Yv="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yv);var jv=new Map;function Zv(t,e){var i=jv.get(t);i||(i=new Set,jv.set(t,i)),i.add(e)}function W(t,e,i=!1){st&&Ai();var o=t,n=null,r=null,l=Ki,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(st){let _=o.data===Js;!!l===_&&(o=Qa(),pi(o),ro(!1),h=!0)}l?(n?vs(n):m&&(n=Qi(()=>m(o))),r&&dn(r,()=>{r=null})):(r?vs(r):m&&(r=Qi(()=>m(o))),n&&dn(n,()=>{n=null})),h&&ro(!0)};so(()=>{a=!1,e(c),a||f(null,null)},d),st&&(o=wt)}function ad(t,e,i){st&&Ai();var o=t,n=Ki,r,l=Yr()?Gm:Aa;so(()=>{l(n,n=e())&&(r&&dn(r),r=Qi(()=>i(o)))}),st&&(o=wt)}var Vs=null;function Uf(t){Vs=t}function Ji(t,e){return e}function d$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)fc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;rd(a),a.append(i),o.clear(),Ls(t,e[0].prev,e[r-1].next)}Ef(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Ls(t,f.prev,f.next)),no(f.e,!d)}})}function Ci(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=st?pi(fi(c)):c.appendChild(Yo())}st&&Ai();var f=null,g=!1,m=Lr(()=>{var h=i();return Pr(h)?h:h==null?[]:Gl(h)});so(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let y=!1;if(st){var S=l.data===Js;S!==(_===0)&&(l=Qa(),pi(l),ro(!1),y=!0)}if(st){for(var L=null,B,V=0;V<_;V++){if(wt.nodeType===8&&wt.data===ea){l=wt,y=!0,ro(!1);break}var N=h[V],T=o(N,V);B=eg(wt,d,L,null,N,T,V,n,e,i),d.items.set(T,B),L=B}_>0&&pi(Qa())}st||c$(h,d,l,n,e,o,i),r!==null&&(_===0?f?vs(f):f=Qi(()=>r(l)):f!==null&&dn(f,()=>{f=null})),y&&ro(!0),s(m)}),st&&(l=wt)}function c$(t,e,i,o,n,r,l){var Ce,Q,pe,he;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,y,S=[],L=[],B,V,N,T;if(d)for(T=0;T<c;T+=1)B=t[T],V=r(B,T),N=f.get(V),N!==void 0&&((Ce=N.a)==null||Ce.measure(),(y!=null?y:y=new Set).add(N));for(T=0;T<c;T+=1){if(B=t[T],V=r(B,T),N=f.get(V),N===void 0){var U=m?m.e.nodes_start:i;_=eg(U,e,_,_===null?e.first:_.next,B,V,T,o,n,l),f.set(V,_),S=[],L=[],m=_.next;continue}if(a&&u$(N,B,T,n),N.e.f&8192&&(vs(N.e),d&&((Q=N.a)==null||Q.unfix(),(y!=null?y:y=new Set).delete(N))),N!==m){if(h!==void 0&&h.has(N)){if(S.length<L.length){var K=L[0],H;_=K.prev;var G=S[0],J=S[S.length-1];for(H=0;H<S.length;H+=1)Xv(S[H],K,i);for(H=0;H<L.length;H+=1)h.delete(L[H]);Ls(e,G.prev,J.next),Ls(e,_,G),Ls(e,J,K),m=K,_=J,T-=1,S=[],L=[]}else h.delete(N),Xv(N,m,i),Ls(e,N.prev,N.next),Ls(e,N,_===null?e.first:_.next),Ls(e,_,N),_=N;continue}for(S=[],L=[];m!==null&&m.k!==V;)m.e.f&8192||(h!=null?h:h=new Set).add(m),L.push(m),m=m.next;if(m===null)continue;N=m}S.push(N),_=N,m=N.next}if(m!==null||h!==void 0){for(var de=h===void 0?[]:Gl(h);m!==null;)m.e.f&8192||de.push(m),m=m.next;var te=de.length;if(te>0){var xe=n&4&&c===0?i:null;if(d){for(T=0;T<te;T+=1)(pe=de[T].a)==null||pe.measure();for(T=0;T<te;T+=1)(he=de[T].a)==null||he.fix()}d$(e,de,xe,f)}}d&&Wo(()=>{var j;if(y!==void 0)for(N of y)(j=N.a)==null||j.apply()}),It.first=e.first&&e.first.e,It.last=_&&_.e}function u$(t,e,i,o){o&1&&Oa(t.v,e),o&2?Oa(t.i,i):t.i=i}function eg(t,e,i,o,n,r,l,d,a,c){var f=Vs,g=(a&1)!==0,m=(a&16)===0,h=g?m?ps(n):Oi(n):n,_=a&2?Oi(l):l;ze&&g&&(h.debug=()=>{var S=typeof _=="number"?l:_.v;c()[S]});var y={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Vs=y;try{return y.e=Qi(()=>d(t,h,_,c),st),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Vs=f}}function Xv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=wo(r);n.before(r),r=l}}function Ls(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 p$(t,e,i){var r,l;if(!e||e===Uv(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Ko)!=null&&l[yi]&&(o=`in ${Ko[yi]}`),pv(Vf(o))}function ld(t,e,i,o,n){var r=t,l="",d;so(()=>{var a;if(l===(l=(a=e())!=null?a:"")){st&&Ai();return}d!==void 0&&(no(d),d=void 0),l!==""&&(d=Qi(()=>{if(st){for(var c=wt.data,f=Ai(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=wo(f);if(f===null)throw na(),cs;ze&&!n&&p$(f.parentNode,c,l),mo(wt,g),r=pi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=Ya(m);if((i||o)&&(h=fi(h)),mo(fi(h),h.lastChild),i||o)for(;fi(h);)r.before(fi(h));else r.before(h)}))})}function Fe(t,e,i,o,n){var d;st&&Ai();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function vo(t,e,...i){var o=t,n=Wt,r;so(()=>{n!==(n=e())&&(r&&(no(r),r=null),ze&&n==null&&tv(),r=Qi(()=>n(o,...i)))},65536),st&&(o=wt)}function Hi(t,e,i){st&&Ai();var o=t,n,r;so(()=>{n!==(n=e())&&(r&&(dn(r),r=null),n&&(r=Qi(()=>i(o,n))))},65536),st&&(o=wt)}function dd(t,e,i,o,n,r){var _;let l=st;st&&Ai();var d=ze&&r&&((_=Vt)==null?void 0:_.function[yi]),a,c,f=null;st&&wt.nodeType===1&&(f=wt,Ai());var g=st?wt:t,m,h=Vs;so(()=>{let y=e()||null;var S=n?n():i||y==="svg"?ta:null;if(y!==a){var L=Vs;Uf(h),m&&(y===null?dn(m,()=>{m=null,c=null}):y===c?vs(m):(no(m),vc(!1))),y&&y!==c&&(m=Qi(()=>{if(f=st?f:S?document.createElementNS(S,y):document.createElement(y),ze&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),mo(f,f),o){st&&Qv(y)&&f.append(document.createComment(""));var B=st?fi(f):f.appendChild(Yo());st&&(B===null?ro(!1):pi(B)),o(f,B)}It.nodes_end=f,g.before(f)})),a=y,a&&(c=a),vc(!0),Uf(L)}},65536),l&&(ro(!0),pi(g))}function ne(t,e){Wo(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=Of)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ze&&Zv(e.hash,d)}})}function tg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=tg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ig(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=tg(t))&&(o&&(o+=" "),o+=e);return o}function cd(t){return typeof t=="object"?ig(t):t!=null?t:""}function rg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function fe(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(st&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||f$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Dm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&sg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oe(t,e,i,o,n=!1,r=!1,l=!1){var V;let d=st&&r;d&&ro(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=cd(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=sg(t),m=(V=t.__attributes)!=null?V:t.__attributes={};for(let N in i){let T=i[N];if(c&&N==="value"&&T==null){t.value=t.__value="",a[N]=T;continue}var h=a[N];if(T!==h){a[N]=T;var _=N[0]+N[1];if(_!=="$$"){if(_==="on"){let U={},K="$$"+N,H=N.slice(2);var y=Wv(H);if(zv(H)&&(H=H.slice(0,-7),U.capture=!0),!y&&h){if(T!=null)continue;t.removeEventListener(H,a[K],U),a[K]=null}if(T!=null)if(y)t[`__${H}`]=T,bt([H]);else{let G=function(J){a[N].call(this,J)};var B=G;a[K]=Lf(H,t,G,U)}else y&&(t[`__${H}`]=void 0)}else if(N==="style"&&T!=null)t.style.cssText=T+"";else if(N==="autofocus")Pf(t,!!T);else if(!r&&(N==="__value"||N==="value"&&T!=null))t.value=t.__value=T;else if(N==="selected"&&c)rg(t,T);else{var S=N;n||(S=qv(S));var L=S==="defaultValue"||S==="defaultChecked";if(T==null&&!r&&!L)if(m[N]=null,S==="value"||S==="checked"){let U=t;if(S==="value"){let K=U.defaultValue;U.removeAttribute(S),U.defaultValue=K}else{let K=U.defaultChecked;U.removeAttribute(S),U.defaultChecked=K}}else t.removeAttribute(N);else L||g.includes(S)&&(r||typeof T!="string")?t[S]=T:typeof T!="function"&&fe(t,S,T)}N==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&ro(!0),a}var og=new Map;function sg(t){var e=og.get(t.nodeName);if(e)return e;og.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Yd(o);for(var r in i)i[r].set&&e.push(r);o=ds(o)}return e}function f$(t,e,i){var o;ze&&(e==="srcset"&&m$(t,i)||zf((o=t.getAttribute(e))!=null?o:"",i)||uv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function zf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ng(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function m$(t,e){var i=ng(t.srcset),o=ng(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(zf(i[l][0],n)||zf(n,i[l][0])))}function jo(t,e,i){var o=t.__className,n=v$(e,i);st&&t.className===n?t.__className=n:(o!==n||st&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function v$(t,e){return(t==null?"":t)+(e?" "+e:"")}function re(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var g$=Gd?()=>performance.now():()=>Date.now(),Rr={tick:t=>(Gd?requestAnimationFrame:Wt)(t),now:()=>g$(),tasks:new Set};function ag(){let t=Rr.now();Rr.tasks.forEach(e=>{e.c(t)||(Rr.tasks.delete(e),e.f())}),Rr.tasks.size!==0&&Rr.tick(ag)}function lg(t){let e;return Rr.tasks.size===0&&Rr.tick(ag),{promise:new Promise(i=>{Rr.tasks.add(e={c:t,f:i})}),abort(){Rr.tasks.delete(e)}}}function hc(t,e){t.dispatchEvent(new CustomEvent(e))}function b$(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 dg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=b$(n.trim());e[l]=r.trim()}return e}var y$=t=>t;function qf(t,e,i,o){var V;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var U;var N=qt,T=It;po(null),Di(null);try{return c!=null?c:c=i()(e,(U=o==null?void 0:o())!=null?U:{},{direction:a})}finally{po(N),Di(T)}}var y={is_global:d,in(){var N;if(e.inert=f,!n){h==null||h.abort(),(N=h==null?void 0:h.reset)==null||N.call(h);return}r||m==null||m.abort(),hc(e,"introstart"),m=Wf(e,_(),h,1,()=>{hc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(N){if(!r){N==null||N(),c=void 0;return}e.inert=!0,hc(e,"outrostart"),h=Wf(e,_(),m,0,()=>{hc(e,"outroend"),N==null||N()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},S=It;if(((V=S.transitions)!=null?V:S.transitions=[]).push(y),n&&sd){var L=d;if(!L){for(var B=S.parent;B&&B.f&65536;)for(;(B=B.parent)&&!(B.f&16););L=!B||(B.f&32768)!==0}L&&sn(()=>{Tt(()=>y.in())})}}function Wf(t,e,i,o,n){var r=o===1;if(Ps(e)){var l,d=!1;return Wo(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Wf(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Wt,deactivate:Wt,reset:Wt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=y$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=dg(c(0,1));m.push(h,h)}var _=()=>1-o,y=t.animate(m,{duration:a});return y.onfinish=()=>{var G;var S=(G=i==null?void 0:i.t())!=null?G:1-o;i==null||i.abort();var L=o-S,B=e.duration*Math.abs(L),V=[];if(B>0){var N=!1;if(c)for(var T=Math.ceil(B/16.666666666666668),U=0;U<=T;U+=1){var K=S+L*g(U/T),H=dg(c(K,1-K));V.push(H),N||(N=H.overflow==="hidden")}N&&(t.style.overflow="hidden"),_=()=>{var J=y.currentTime;return S+L*g(J/B)},f&&lg(()=>{if(y.playState!=="running")return!1;var J=_();return f(J,1-J),!0})}y=t.animate(V,{duration:B,fill:"forwards"}),y.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=Wt)},deactivate:()=>{n=Wt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Rs,Za,ud,$c,cg,bc=class bc{constructor(e){Es(this,$c);Es(this,Rs,new WeakMap);Es(this,Za);Es(this,ud);Pa(this,ud,e)}observe(e,i){var o=Pi(this,Rs).get(e)||new Set;return o.add(i),Pi(this,Rs).set(e,o),Bm(this,$c,cg).call(this).observe(e,Pi(this,ud)),()=>{var n=Pi(this,Rs).get(e);n.delete(i),n.size===0&&(Pi(this,Rs).delete(e),Pi(this,Za).unobserve(e))}}};Rs=new WeakMap,Za=new WeakMap,ud=new WeakMap,$c=new WeakSet,cg=function(){var e;return(e=Pi(this,Za))!=null?e:Pa(this,Za,new ResizeObserver(i=>{for(var o of i){bc.entries.set(o.target,o);for(var n of Pi(this,Rs).get(o.target)||[])n(o)}}))},Tn(bc,"entries",new WeakMap);var Kf=bc;var C$=new Kf({box:"border-box"});function Xr(t,e,i){var o=C$.observe(t,()=>i(t[e]));sn(()=>(Tt(()=>i(t[e])),o))}function ug(t,e){return t===e||(t==null?void 0:t[Lo])===e}function xt(t={},e,i,o){return sn(()=>{var n,r;return xo(()=>{n=r,r=(o==null?void 0:o())||[],Tt(()=>{t!==i(...r)&&(e(t,...r),n&&ug(i(...n),t)&&e(null,...n))})}),()=>{Wo(()=>{r&&ug(i(...r),t)&&e(null,...r)})}}),t}function Nr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>dc(e.s);if(t){let n=0,r={},l=$(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Va(()=>{pg(e,o),As(i.b)}),rt(()=>{let n=Tt(()=>i.m.map(zm));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&rt(()=>{pg(e,o),As(i.a)})}function pg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function A(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function M(t){for(var e in t)e in this&&(this[e]=t[e])}if(ze){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ov(e)},set:o=>{i=o}})}};T$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var T$;function Kt(t){Vt===null&&Ra("onMount"),Qr&&Vt.l!==null?S$(Vt).m.push(t):rt(()=>{let e=Tt(t);if(typeof e=="function")return e})}function ar(t){Vt===null&&Ra("onDestroy"),Kt(()=>()=>Tt(t))}function S$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function pd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Wt;let o=Tt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Xa=[];function lr(t,e){return{subscribe:Se(t,e).subscribe}}function Se(t,e=Wt){let i=null,o=new Set;function n(d){if(Aa(t,d)&&(t=d,i)){let a=!Xa.length;for(let c of o)c[1](),Xa.push(c,t);if(a){for(let c=0;c<Xa.length;c+=2)Xa[c][0](Xa[c+1]);Xa.length=0}}}function r(d){n(d(t))}function l(d,a=Wt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Wt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function mi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return lr(i,(l,d)=>{let a=!1,c=[],f=0,g=Wt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Wt},h=n.map((_,y)=>pd(_,S=>{c[y]=S,f&=~(1<<y),a&&m()},()=>{f|=1<<y}));return a=!0,m(),function(){As(h),g(),a=!1}})}function Ne(t){let e;return pd(t,i=>e=i)(),e}var yc=!1,Qf=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:ps(void 0),unsubscribe:Wt};if(o.store!==t&&!(Qf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Wt;else{var n=!0;o.unsubscribe=pd(t,l=>{n?o.source.v=l:Y(o.source,l)}),n=!1}return t&&Qf in i?Ne(t):s(o.source)}function Xe(){let t={};function e(){Mn(()=>{for(var i in t)t[i].unsubscribe();oo(t,Qf,{enumerable:!1,value:!0})})}return[t,e]}function Gf(t){var e=yc;try{return yc=!1,[t(),yc]}finally{yc=e}}var A$={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),ec(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),ec(t.version)),!0},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 Ue(t,e){return new Proxy({props:t,exclude:e,special:{},version:Oi(0)},A$)}var M$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ps(n)&&(n=n());let r=In(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=In(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===Ql)return!1;for(let i of t.props)if(Ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function hs(...t){return new Proxy({props:t},M$)}function fg(t){for(var e=It,i=It;e!==null&&!(e.f&96);)e=e.parent;try{return Di(e),t()}finally{Di(i)}}function p(t,e,i,o){var K,H;var n=(i&1)!==0,r=!Qr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=Gf(()=>t[e]):c=t[e];var f=Lo in t||Ql in t,g=l&&((H=(K=In(t,e))==null?void 0:K.set)!=null?H:f&&e in t&&(G=>t[e]=G))||void 0,m=o,h=!0,_=!1,y=()=>(_=!0,h&&(h=!1,d?m=Tt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&iv(e),c=y(),g&&g(c));var S;if(r)S=()=>{var G=t[e];return G===void 0?y():(h=!0,_=!1,G)};else{var L=fg(()=>(n?$:Lr)(()=>t[e]));L.f|=131072,S=()=>{var G=s(L);return G!==void 0&&(m=void 0),G===void 0?m:G}}if(!(i&4))return S;if(g){var B=t.$$legacy;return function(G,J){return arguments.length>0?((!r||!J||B||a)&&g(J?S():G),G):S()}}var V=!1,N=!1,T=ps(c),U=fg(()=>$(()=>{var G=S(),J=s(T);return V?(V=!1,N=!0,J):(N=!1,T.v=G)}));return n||(U.equals=Ma),function(G,J){if(jl!==null&&(V=N,S(),s(T)),arguments.length>0){let de=J?s(U):r&&l?Ae(G):G;return U.equals(de)||(V=!0,Y(T,de),_&&m!==void 0&&(m=de),Tt(()=>s(U))),G}return s(U)}}var L$;typeof HTMLElement=="function"&&(L$=class extends HTMLElement{constructor(e,i,o){super();Tn(this,"$$ctor");Tn(this,"$$s");Tn(this,"$$c");Tn(this,"$$cn",!1);Tn(this,"$$d",{});Tn(this,"$$r",!1);Tn(this,"$$p_d",{});Tn(this,"$$l",{});Tn(this,"$$l_u",new Map);Tn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),w(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=V$(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Yf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=k({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=pc(()=>{xo(()=>{var r;this.$$r=!0;for(let l of rf(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Yf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return rf(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Yf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function V$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{clientChecker as Gx}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as Up,safeStorage as Yx,throttleFn as jx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Zx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as N$,fillWithDefault as B$,VideoQuality as vg}from"@vkontakte/videoplayer-shared/es2018";var D$={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:N$.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:vg.Q_480P,highQualityLimit:vg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!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},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}},gg=t=>B$(t,D$),hg=t=>Ba("ui-config",t),Xt=()=>Na("ui-config");var fd="vk_player_debug_panel_opened";var _g="videoplayer",$g="videoplayer";var Jr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},bg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),yg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),xg=new Set(["ShiftRight","ShiftLeft"]);var wg=["TIMELINE"],md=[...wg,"GRAPH_BUTTON"],jf=[...wg,"PLAY_BUTTON"],vd=[...md,"PLAY_BUTTON"];var es=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(es||{}),pa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Cg,VERSION as O$}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as H$}from"@vkontakte/videoplayer-core/es2018";import{VERSION as F$}from"@vkontakte/videoplayer-statistics/es2018";var xc="prod",Ja="1.1.59";var fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Sg=Symbol("storeContext"),Tg=Symbol("microStoresContext"),Ig=(t,e)=>{Ba(Sg,t),Ba(Tg,e),xc==="dev"&&(window.app={store:t,microStores:e})},He=()=>{let t=Na(Sg);return Cg(t,"Store context is empty!"),t},Co=()=>{let t=Na(Tg);return Cg(t,"MicroStores context is empty!"),t},ii=(t,e)=>Cc(t,t.getValue(),e),Cc=(t,e,i)=>lr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),kg=(t,e,i)=>{var L,B,V,N,T,U;let o=t.info,{width:n,height:r}=Ne(i.ui.playerSize),l=(B=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?B:0,d=(N=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?N:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ja} (core: ${H$}, stat: ${F$}, shared: ${O$})`,f=Ne(i.state.errorLog$),g=f.length?`
46
- `+f.map((K,H)=>{var te;let G=`${H}) Type: ${K.id}
47
- `,J=`Message: ${K.message} (${K.thrown})
48
- `,de=`Trace: ${(te=K.thrown)==null?void 0:te.stack}
49
- `;return G+J+de}).join(`
50
- `):void 0,m=i.state.isAudioDisabled?"disabled":Ne(i.state.isAudioAvailable$)?void 0:"unavailable",h=t.info.currentVideoStream$.getValue(),_=t.info.currentAudioStream$.getValue(),y=[];h&&y.push(`Video: ${(T=h==null?void 0:h.codec)!=null?T:""}`+(h!=null&&h.hdr?" (HDR)":"")),_&&y.push(`Audio: ${(U=_==null?void 0:_.codec)!=null?U:""}`+(_!=null&&_.language?` (${_.language})`:""));let S={Version:c,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:Ne(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:y.join(", "),Quality:`${a} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:m,Position:`${Ne(i.state.positionExact$)}s`,State:`${Ne(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${r}`,URL:window.location.href,Errors:g};return Object.entries(S).filter(([K,H])=>H!==void 0).map(([K,H])=>`${K}: ${H}`).join(`
51
- `)},Eg=(t,e,i)=>{var K,H,G,J;let o=t.info,{width:n,height:r}=Ne(i.ui.playerSize),l={version:Ja,viewport:`${n}x${r}`,volume:Math.round(Ne(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let c=o.intrinsicVideoSize$.getValue();c&&(l.videoSize=`${c.width}x${c.height}`);let f=o.currentBuffer$.getValue(),g=o.isLive$.getValue(),m=o.liveBufferTime$.getValue();f&&(g&&m?l.buffer=f.end-m:l.buffer=Math.max(f.end-Ne(i.state.positionExact$),0));let h=o.throughputEstimation$.getValue();h&&(l.speed=h);let _=o.videoBitrate$.getValue();_&&(l.bitrate=_);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let L=o.currentAudioSegmentLength$.getValue();L&&(l.currentAudioSegmentLength=L);let B=Ne(i.vsid);typeof B=="string"&&(l.vsid=B);let V=(K=t.info.currentVideoStream$.getValue())==null?void 0:K.codec;V&&(l.videoCodec=V);let N=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;N&&(l.audioCodec=N),((G=t.info.currentVideoStream$.getValue())==null?void 0:G.hdr)&&(l.hdr=!0);let U=(J=t.info.currentAudioStream$.getValue())==null?void 0:J.language;return U&&(l.audioLanguage=U),l},Pg=(t,e)=>fa(t,e,"mp4"),Ag=t=>!t.type,Mg=t=>!!t.type,Lg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},wc=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 Jf,safeStorage as go}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Vg="vk_player_prefer_traffic_saving_enabled",Rg="vk_player_preferred_volume",Ng="vk_player_prefer_volume_mute",em="vk_player_preferred_quality",Zf="vk_player_preferred_default_quality_settings",Xf="vk_player_preferred_quality_settings_by_video",Bg="vk_player_preferred_stream_language",Dg="vk_player_preferred_rate",Og="vk_player_preferred_autoplay_next",Hg=t=>t>1?1:t<0?0:t,tm=t=>go.set(Rg,Hg(t).toString(10)),Sc=()=>{let t=go.get(Rg);return Jf(t)?void 0:Hg(parseFloat(t))},im=(t,e)=>go.set(em,JSON.stringify({videoId:t,value:e})),hd=()=>go.remove(em),om=t=>{let e=go.get(em);if(Jf(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){hd();return}return o},nm=(t,e)=>{e?go.set(t,"true"):go.remove(t)},rm=t=>go.get(t)==="true",sm=t=>nm(Ng,t),Fg=()=>rm(Ng),gd=t=>nm(Vg,t),am=()=>rm(Vg),Ug=()=>go.get(Bg),lm=t=>go.set(Bg,t),zg=t=>go.set(Dg,JSON.stringify({rate:t})),Wg=()=>{let t=go.get(Dg);if(Jf(t))return;let{rate:e}=JSON.parse(t);return e},qg=t=>nm(Og,t),Kg=()=>rm(Og),U$=()=>{let t=f=>{go.set(Zf,JSON.stringify(f))},e=()=>{try{let f=go.get(Zf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=go.get(Xf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{go.set(Xf,JSON.stringify(f))},n=f=>{c(f);let g=f?i():null;if(g&&(g==null?void 0:g.videoId)===f)return{...g,appliesTo:"to-video"};g&&r();let m=e();return m?{...m,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{go.remove(Xf)},l=()=>{go.remove(Zf)},d=(f,g="as-default")=>{f.type==="exact_quality"?o(f):g==="as-default"?t(f):o(f)},a=f=>{let g=n(f);if(g){switch(g.type){case"traffic_saving":gd(!0);break;case"exact_quality":im(f,g.quality)}r(),l()}},c=f=>{let g=om(f);if(g){o({type:"exact_quality",videoId:f,quality:g});return}am()&&t({type:"traffic_saving",videoId:f}),gd(!1),hd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Qg,migrateSettingsToLegacyWay:Gg,savePreferredQualitySettings:Tc,savePreferredDefaultQualitySettings:nP,removePreferredQualitySettingsByVideo:rP,getPreferredDefaultQualitySettings:Ic}=U$();import{PlaybackState as f_}from"@vkontakte/videoplayer-core/es2018";lv();var z$=Le('<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 el(t,e){if(new.target)return k({component:el,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=z$();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}import{isNullable as Zg,InterfaceLanguage as Xg}from"@vkontakte/videoplayer-shared/es2018";var W$={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
47
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var wt=null;function fl(t){wt=t}var jo=null;function ml(t){jo=t}function Sa(t){return Hu("getContext").get(t)}function Ca(t,e){let i=Hu("setContext");return Ce&&_t(()=>Nu(e,null,!0)),i.set(t,e),e}function gl(){return Hu("getAllContexts")}function q(t,e=!1,i){var o=wt={p:wt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Vr&&!e&&(wt.l={s:null,u:null,r1:[],r2:Bi(!1)}),Zo(()=>{o.d=!0}),Ce&&(wt.function=i,jo=i)}function K(t){var s,d;let e=wt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=$t,o=Lt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];Ji(a.effect),mo(a.reaction),cn(a.fn)}}finally{Ji(i),mo(o)}}wt=e.p,Ce&&(jo=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Br(){return!Vr||wt!==null&&wt.l===null}function Hu(t){var e;return wt===null&&wa(t),(e=wt.c)!=null?e:wt.c=new Map(q1(wt)||void 0)}function q1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var K1=/\r/g;function Lv(t){t=t.replace(K1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Vv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var W1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Rv(t){return W1.includes(t)}var Q1=["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 G1={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 Bv(t){var e;return t=t.toLowerCase(),(e=G1[t])!=null?e:t}var Zw=[...Q1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Y1=["touchstart","touchmove"];function Nv(t){return Y1.includes(t)}var j1=["textarea","script","style","title"];function Dv(t){return j1.includes(t)}function Fu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ov=new Map;function Hv(t,e){var i=Ov.get(t);i||(i=new Set,Ov.set(t,i)),i.add(e)}function Uu(t,e){if(e){let i=document.body;t.autofocus=!0,qo(()=>{document.activeElement===i&&t.focus()})}}function hl(t){var e=Lt,i=$t;mo(null),Ji(null);try{return t()}finally{mo(e),Ji(i)}}var zu=new Set,nc=new Set;function Os(t){if(!Ge)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function qu(t,e,i,o={}){function n(a){if(o.capture||Ta.call(e,a),!a.cancelBubble)return hl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?qo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function It(t,e,i,o,n){var a={capture:o,passive:n},s=qu(t,e,i,a);(e===document.body||e===window||e===document)&&Zo(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)zu.add(t[e]);for(var i of nc)i(t)}function Ta(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){Xi(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Lt,_=$t;mo(null),Ji(null);try{for(var p,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(mr(y)){var[S,...I]=y;S.apply(a,[t,...I])}else y.call(a,t)}catch(P){p?$.push(P):p=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let P of $)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,mo(f),Ji(_)}}}var X1;function Fv(){X1=void 0}function Ia(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ho(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ge)return ho(mt,null),mt;n===void 0&&(n=Ia(a?t:"<!>"+t),i||(n=pi(n)));var s=o||al?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=pi(s),l=s.lastChild;ho(d,l)}else ho(s,s);return s}}function be(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ge)return ho(mt,null),mt;if(!s){var d=Ia(a),l=pi(d);if(n)for(s=document.createDocumentFragment();pi(l);)s.appendChild(pi(l));else s=pi(l)}var u=s.cloneNode(!0);if(n){var f=pi(u),_=u.lastChild;ho(f,_)}else ho(u,u);return u}}function Xn(t=""){if(!Ge){var e=Go(t+"");return ho(e,e),e}var i=mt;return i.nodeType!==3&&(i.before(i=Go()),ui(i)),ho(i,i),i}function ze(){if(Ge)return ho(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Go();return t.append(e,i),ho(e,i),t}function b(t,e){if(Ge){$t.nodes_end=mt,Ai();return}t!==null&&t.before(e)}var _l=!0;function rc(t){_l=t}function fe(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Xr(t,e){return zv(t,e)}function Wu(t,e){var s;Wd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ge,n=mt;try{for(var a=pi(i);a&&(a.nodeType!==8||a.data!==cs);)a=So(a);if(!a)throw qr;to(!0),ui(a),Ai();let d=zv(t,{...e,anchor:a});if(mt===null||mt.nodeType!==8||mt.data!==Es)throw Rs(),qr;return to(!1),d}catch(d){if(d===qr)return e.recover===!1&&Zm(),Wd(),ll(i),to(!1),Xr(t,e);throw d}finally{to(o),ui(n),Fv()}}var ka=new Map;function zv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Wd();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var $=_[p];if(!d.has($)){d.add($);var w=Nv($);e.addEventListener($,Ta,{passive:w});var y=ka.get($);y===void 0?(document.addEventListener($,Ta,{passive:w}),ka.set($,1)):ka.set($,y+1)}}};l(il(zu)),nc.add(l);var u=void 0,f=Av(()=>{var _=i!=null?i:e.appendChild(Go());return Ni(()=>{if(a){q({});var p=wt;p.c=a}n&&(o.$$events=n),Ge&&ho(_,null),_l=s,u=t(_,o)||{},_l=!0,Ge&&($t.nodes_end=mt),a&&K()}),()=>{var w;for(var p of d){e.removeEventListener(p,Ta);var $=ka.get(p);--$===0?(document.removeEventListener(p,Ta),ka.delete(p)):ka.set(p,$)}nc.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return Ku.set(u,f),u}var Ku=new WeakMap;function Hs(t,e){let i=Ku.get(t);return i?(Ku.delete(t),i(e)):(Ce&&fv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ge&&i===0&&Ai();var n=t,a=null,s=null,d=Ti,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,_($,p)},_=(p,$)=>{if(d===(d=p))return;let w=!1;if(Ge&&o!==-1){if(i===0){let S=n.data;S===cs?o=0:S===ks?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=_a(),ui(n),to(!1),w=!0,o=-1)}d?(a?Zr(a):$&&(a=Ni(()=>$(n))),s&&un(s,()=>{s=null})):(s?Zr(s):$&&(s=Ni(()=>$(n,[i+1,o]))),a&&un(a,()=>{a=null})),w&&to(!0)};io(()=>{u=!1,e(f),u||_(null,null)},l),Ge&&(n=mt)}function bl(t,e,i){Ge&&Ai();var o=t,n=Ti,a,s=Br()?Km:pa;io(()=>{s(n,n=e())&&(a&&un(a),a=Ni(()=>i(o)))}),Ge&&(o=mt)}var vs=null;function Yu(t){vs=t}function $l(t,e){return e}function i0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)tc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;ll(l),l.append(i),o.clear(),ms(t,e[0].prev,e[a-1].next)}Bu(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),ms(t,f.prev,f.next)),eo(f.e,!d)}})}function bi(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var u=t;s=Ge?ui(pi(u)):u.appendChild(Go())}Ge&&Ai();var f=null,_=!1,p=hr(()=>{var $=i();return mr($)?$:$==null?[]:il($)});io(()=>{var $=r(p),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(Ge){var S=s.data===ks;S!==(w===0)&&(s=_a(),ui(s),to(!1),y=!0)}if(Ge){for(var I=null,A,P=0;P<w;P++){if(mt.nodeType===8&&mt.data===Es){s=mt,y=!0,to(!1);break}var E=$[P],T=o(E,P);A=Wv(mt,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}w>0&&ui(_a())}Ge||o0($,d,s,n,e,o,i),a!==null&&(w===0?f?Zr(f):f=Ni(()=>a(s)):f!==null&&un(f,()=>{f=null})),y&&to(!0),r(p)}),Ge&&(s=mt)}function o0(t,e,i,o,n,a,s){var le,Ve,Me,J;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,$,w=null,y,S=[],I=[],A,P,E,T;if(d)for(T=0;T<u;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((le=E.a)==null||le.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<u;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var V=p?p.e.nodes_start:i;w=Wv(V,e,w,w===null?e.first:w.next,A,P,T,o,n,s),f.set(P,w),S=[],I=[],p=w.next;continue}if(l&&n0(E,A,T,n),(E.e.f&8192)!==0&&(Zr(E.e),d&&((Ve=E.a)==null||Ve.unfix(),(y!=null?y:y=new Set).delete(E))),E!==p){if($!==void 0&&$.has(E)){if(S.length<I.length){var z=I[0],Y;w=z.prev;var U=S[0],Z=S[S.length-1];for(Y=0;Y<S.length;Y+=1)qv(S[Y],z,i);for(Y=0;Y<I.length;Y+=1)$.delete(I[Y]);ms(e,U.prev,Z.next),ms(e,w,U),ms(e,Z,z),p=z,w=Z,T-=1,S=[],I=[]}else $.delete(E),qv(E,p,i),ms(e,E.prev,E.next),ms(e,E,w===null?e.first:w.next),ms(e,w,E),w=E;continue}for(S=[],I=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),w=E,p=E.next}if(p!==null||$!==void 0){for(var X=$===void 0?[]:il($);p!==null;)(p.e.f&8192)===0&&X.push(p),p=p.next;var oe=X.length;if(oe>0){var ce=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<oe;T+=1)(Me=X[T].a)==null||Me.measure();for(T=0;T<oe;T+=1)(J=X[T].a)==null||J.fix()}i0(e,X,ce,f)}}d&&qo(()=>{var Le;if(y!==void 0)for(E of y)(Le=E.a)==null||Le.apply()}),$t.first=e.first&&e.first.e,$t.last=w&&w.e}function n0(t,e,i,o){(o&1)!==0&&va(t.v,e),(o&2)!==0?va(t.i,i):t.i=i}function Wv(t,e,i,o,n,a,s,d,l,u){var f=vs,_=(l&1)!==0,p=(l&16)===0,$=_?p?Yr(n):Bi(n):n,w=(l&2)===0?s:Bi(s);Ce&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;u()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};vs=y;try{return y.e=Ni(()=>d(t,$,w,u),Ge),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{vs=f}}function qv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=So(a);n.before(a),a=s}}function ms(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 r0(t,e,i){var a,s;if(!e||e===Lv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=jo)!=null&&s[ci]&&(o=`in ${jo[ci]}`),pv(Fu(o))}function yl(t,e,i,o,n){var a=t,s="",d;io(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ge&&Ai();return}d!==void 0&&(eo(d),d=void 0),s!==""&&(d=Ni(()=>{if(Ge){for(var u=mt.data,f=Ai(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=So(f);if(f===null)throw Rs(),qr;Ce&&!n&&r0(f.parentNode,u,s),ho(mt,_),a=ui(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Ia(p);if((i||o)&&($=pi($)),ho(pi($),$.lastChild),i||o)for(;pi($);)a.before(pi($));else a.before($)}))})}function me(t,e,...i){var o=t,n=ie,a;io(()=>{n!==(n=e())&&(a&&(eo(a),a=null),Ce&&n==null&&Xm(),a=Ni(()=>n(o,...i)))},65536),Ge&&(o=mt)}function Pi(t,e,i){Ge&&Ai();var o=t,n,a;io(()=>{n!==(n=e())&&(a&&(un(a),a=null),n&&(a=Ni(()=>i(o,n))))},65536),Ge&&(o=mt)}function xl(t,e,i,o,n,a){var w;let s=Ge;Ge&&Ai();var d=Ce&&a&&((w=wt)==null?void 0:w.function[ci]),l,u,f=null;Ge&&mt.nodeType===1&&(f=mt,Ai());var _=Ge?mt:t,p,$=vs;io(()=>{let y=e()||null;var S=n?n():i||y==="svg"?fu:null;if(y!==l){var I=vs;Yu($),p&&(y===null?un(p,()=>{p=null,u=null}):y===u?Zr(p):(eo(p),rc(!1))),y&&y!==u&&(p=Ni(()=>{if(f=Ge?f:S?document.createElementNS(S,y):document.createElement(y),Ce&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),ho(f,f),o){Ge&&Dv(y)&&f.append(document.createComment(""));var A=Ge?pi(f):f.appendChild(Go());Ge&&(A===null?to(!1):ui(A)),o(f,A)}$t.nodes_end=f,_.before(f)})),l=y,l&&(u=l),rc(!0),Yu(I)}},65536),s&&(to(!0),ui(_))}var Zu;function Qv(t){return Zu=t.target,new ju(t)}var Jr,Jn,ju=class{constructor(e){ds(this,Jr);ds(this,Jn);var a,s;var i=new Map,o=(d,l)=>{var u=Yr(l);return i.set(d,u),u};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===tl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});ua(this,Jn,(e.hydrate?Wu:Xr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&ya(),ua(this,Jr,n.$$events);for(let d of Object.keys(Ci(this,Jn)))d==="$set"||d==="$destroy"||d==="$on"||Xi(this,d,{get(){return Ci(this,Jn)[d]},set(l){Ci(this,Jn)[d]=l},enumerable:!0});Ci(this,Jn).$set=d=>{Object.assign(n,d)},Ci(this,Jn).$destroy=()=>{Hs(Ci(this,Jn))}}$set(e){Ci(this,Jn).$set(e)}$on(e,i){Ci(this,Jr)[e]=Ci(this,Jr)[e]||[];let o=(...n)=>i.call(this,...n);return Ci(this,Jr)[e].push(o),()=>{Ci(this,Jr)[e]=Ci(this,Jr)[e].filter(n=>n!==o)}}$destroy(){Ci(this,Jn).$destroy()}};Jr=new WeakMap,Jn=new WeakMap;function Q(t,e){qo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Zu)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ce&&Hv(e.hash,d)}})}function Gv(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Gv(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="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Gv(t))&&(o&&(o+=" "),o+=e);return o}function wl(t){return typeof t=="object"?Yv(t):t!=null?t:""}var jv=[...`
48
+ \r\f\xA0\v\uFEFF`];function Xv(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||jv.includes(o[s-1]))&&(d===o.length||jv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Zv(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Xu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Jv(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Xu)),n&&l.push(...Object.keys(n).map(Xu));var u=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===y-1){if(f!==-1){var $=Xu(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var w=t.substring(u,_).trim();i+=" "+w+";"}}u=_+1,f=-1}}}}return o&&(i+=Zv(o)),n&&(i+=Zv(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ge||s!==i){var d=Xv(i,o,a);(!Ge||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function Ju(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function ot(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=Jv(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Ju(t,i==null?void 0:i[0],o[0]),Ju(t,i==null?void 0:i[1],o[1],"important")):Ju(t,i,o));return o}var Ea=Symbol("class"),Aa=Symbol("style"),ig=Symbol("is custom element"),og=Symbol("is html");function ng(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=rg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||p0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Hm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&sg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function we(t,e,i,o,n=!1){var E;var a=rg(t),s=a[ig],d=!a[og];let l=Ge&&s;l&&to(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=wl(i.class):(o||i[Ea])&&(i.class=null),i[Aa]&&((E=i.style)!=null||(i.style=null));var p=sg(t);for(let T in i){let V=i[T];if(f&&T==="value"&&V==null){t.value=t.__value="",u[T]=V;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,$,V,o,e==null?void 0:e[Ea],i[Ea]),u[T]=V,u[Ea]=i[Ea];continue}if(T==="style"){ot(t,V,e==null?void 0:e[Aa],i[Aa]),u[T]=V,u[Aa]=i[Aa];continue}var w=u[T];if(V!==w){u[T]=V;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let z={},Y="$$"+T,U=T.slice(2);var S=Rv(U);if(Vv(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(U,u[Y],z),u[Y]=null}if(V!=null)if(S)t[`__${U}`]=V,at([U]);else{let Z=function(X){u[T].call(this,X)};var P=Z;u[Y]=qu(U,t,Z,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")Oe(t,T,V);else if(T==="autofocus")Uu(t,!!V);else if(!s&&(T==="__value"||T==="value"&&V!=null))t.value=t.__value=V;else if(T==="selected"&&f)ng(t,V);else{var I=T;d||(I=Bv(I));var A=I==="defaultValue"||I==="defaultChecked";if(V==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,Y=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=Y?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=Y?U:!1}}else t.removeAttribute(T);else A||p.includes(I)&&(s||typeof V!="string")?t[I]=V:typeof V!="function"&&Oe(t,I,V,n)}}}return l&&to(!0),u}function rg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ig]:t.nodeName.includes("-"),[og]:t.namespaceURI===Nm}}var eg=new Map;function sg(t){var e=eg.get(t.nodeName);if(e)return e;eg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Hd(o);for(var a in i)i[a].set&&e.push(a);o=Wr(o)}return e}function p0(t,e,i){var o;Ce&&(e==="srcset"&&f0(t,i)||ep((o=t.getAttribute(e))!=null?o:"",i)||uv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function ep(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function tg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function f0(t,e){var i=tg(t.srcset),o=tg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(ep(i[s][0],n)||ep(n,i[s][0])))}var m0=Od?()=>performance.now():()=>Date.now(),br={tick:t=>(Od?requestAnimationFrame:ie)(t),now:()=>m0(),tasks:new Set};function ag(){let t=br.now();br.tasks.forEach(e=>{e.c(t)||(br.tasks.delete(e),e.f())}),br.tasks.size!==0&&br.tick(ag)}function lg(t){let e;return br.tasks.size===0&&br.tick(ag),{promise:new Promise(i=>{br.tasks.add(e={c:t,f:i})}),abort(){br.tasks.delete(e)}}}function sc(t,e){hl(()=>{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 dg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=_0(n.trim());e[s]=a.trim()}return e}var b0=t=>t;function ip(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function w(){var V;var E=Lt,T=$t;mo(null),Ji(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{mo(E),Ji(T)}}var y={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),sc(e,"introstart"),p=tp(e,w(),$,1,()=>{sc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,sc(e,"outrostart"),$=tp(e,w(),p,0,()=>{sc(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=$t;if(((P=S.transitions)!=null?P:S.transitions=[]).push(y),n&&_l){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&cn(()=>{_t(()=>y.in())})}}function tp(t,e,i,o,n){var a=o===1;if(us(e)){var s,d=!1;return qo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=tp(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=b0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=dg(u(0,1));p.push($,$)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(u)for(var T=Math.ceil(A/16.666666666666668),V=0;V<=T;V+=1){var z=S+I*_(V/T),Y=dg(u(z,1-z));P.push(Y),E||(E=Y.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var Z=y.currentTime;return S+I*_(Z/A)},f&&lg(()=>{if(y.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}y=t.animate(P,{duration:A,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var gs,Pa,Sl,lc,cg,dc=class dc{constructor(e){ds(this,lc);ds(this,gs,new WeakMap);ds(this,Pa);ds(this,Sl);ua(this,Sl,e)}observe(e,i){var o=Ci(this,gs).get(e)||new Set;return o.add(i),Ci(this,gs).set(e,o),Rm(this,lc,cg).call(this).observe(e,Ci(this,Sl)),()=>{var n=Ci(this,gs).get(e);n.delete(i),n.size===0&&(Ci(this,gs).delete(e),Ci(this,Pa).unobserve(e))}}};gs=new WeakMap,Pa=new WeakMap,Sl=new WeakMap,lc=new WeakSet,cg=function(){var e;return(e=Ci(this,Pa))!=null?e:ua(this,Pa,new ResizeObserver(i=>{for(var o of i){dc.entries.set(o.target,o);for(var n of Ci(this,gs).get(o.target)||[])n(o)}}))},Mn(dc,"entries",new WeakMap);var op=dc;var x0=new op({box:"border-box"});function Nr(t,e,i){var o=x0.observe(t,()=>i(t[e]));cn(()=>(_t(()=>i(t[e])),o))}function ug(t,e){return t===e||(t==null?void 0:t[Lo])===e}function ut(t={},e,i,o){return cn(()=>{var n,a;return go(()=>{n=a,a=(o==null?void 0:o())||[],_t(()=>{t!==i(...a)&&(e(t,...a),n&&ug(i(...n),t)&&e(null,...n))})}),()=>{qo(()=>{a&&ug(i(...a),t)&&e(null,...a)})}}),t}function $r(t=!1){let e=wt,i=e.l.u;if(!i)return;let o=()=>Xd(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&xa(()=>{pg(e,o),ps(i.b)}),Ye(()=>{let n=_t(()=>i.m.map(zm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ye(()=>{pg(e,o),ps(i.a)})}function pg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ce){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;tv(e)},set:o=>{i=o}})}};S0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var S0;function Bt(t){wt===null&&wa("onMount"),Vr&&wt.l!==null?w0(wt).m.push(t):Ye(()=>{let e=_t(t);if(typeof e=="function")return e})}function er(t){wt===null&&wa("onDestroy"),Bt(()=>()=>_t(t))}function w0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Cl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=_t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ma=[];function tr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(pa(t,d)&&(t=d,i)){let l=!Ma.length;for(let u of o)u[1](),Ma.push(u,t);if(l){for(let u=0;u<Ma.length;u+=2)Ma[u][0](Ma[u+1]);Ma.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function fi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return tr(i,(s,d)=>{let l=!1,u=[],f=0,_=ie,p=()=>{if(f)return;_();let w=e(o?u[0]:u,s,d);a?s(w):_=typeof w=="function"?w:ie},$=n.map((w,y)=>Cl(w,S=>{u[y]=S,f&=~(1<<y),l&&p()},()=>{f|=1<<y}));return l=!0,p(),function(){ps($),_(),l=!1}})}function xe(t){let e;return Cl(t,i=>e=i)(),e}var cc=!1,np=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Yr(void 0),unsubscribe:ie};if(o.store!==t&&!(np in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=Cl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&np in i?xe(t):r(o.source)}function Ue(){let t={};function e(){Zo(()=>{for(var i in t)t[i].unsubscribe();Xi(t,np,{enumerable:!1,value:!0})})}return[t,e]}function rp(t){var e=cc;try{return cc=!1,[t(),cc]}finally{cc=e}}var P0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ce&&ev(`${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 Ie(t,e,i){return new Proxy(Ce?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},P0)}var M0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];us(n)&&(n=n());let a=Ln(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Ln(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===tl)return!1;for(let i of t.props)if(us(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){us(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function es(...t){return new Proxy({props:t},M0)}function fg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Y;var n=(i&1)!==0,a=!Vr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=rp(()=>t[e]):u=t[e];var f=Lo in t||tl in t,_=s&&((Y=(z=Ln(t,e))==null?void 0:z.set)!=null?Y:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?p=_t(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&Jm(e),u=y(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?y():($=!0,w=!1,U)};else{var I=(n?m:hr)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,Z){return arguments.length>0?((!a||!Z||A||l)&&_(Z?S():U),U):S()}}var P=!1,E=!1,T=Yr(u),V=m(()=>{var U=S(),Z=r(T);return P?(P=!1,E=!0,Z):(E=!1,T.v=U)});return s&&r(V),n||(V.equals=fa),function(U,Z){if(rl!==null&&(P=E,S(),r(T)),arguments.length>0){let X=Z?r(V):a&&s?pe(U):U;if(!V.equals(X)){if(P=!0,O(T,X),w&&p!==void 0&&(p=X),fg(V))return U;_t(()=>r(V))}return U}return fg(V)?V.v:r(V)}}var L0;typeof HTMLElement=="function"&&(L0=class extends HTMLElement{constructor(e,i,o){super();Mn(this,"$$ctor");Mn(this,"$$s");Mn(this,"$$c");Mn(this,"$$cn",!1);Mn(this,"$$d",{});Mn(this,"$$r",!1);Mn(this,"$$p_d",{});Mn(this,"$$l",{});Mn(this,"$$l_u",new Map);Mn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=V0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=sp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Qv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=ec(()=>{go(()=>{var a;this.$$r=!0;for(let s of vu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=sp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=sp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return vu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function sp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function V0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var mg="5";var vg,gg,hg;typeof window!="undefined"&&((hg=(gg=(vg=window.__svelte)!=null?vg:window.__svelte={}).v)!=null?hg:gg.v=new Set).add(mg);import{clientChecker as sx}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as f1,safeStorage as ax,throttleFn as lx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as dx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as B0,fillWithDefault as N0,VideoQuality as _g}from"@vkontakte/videoplayer-shared/es2018";var D0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:B0.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:_g.Q_480P,highQualityLimit:_g.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!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},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}},bg=t=>N0(t,D0),$g=t=>Ca("ui-config",t),zt=()=>Sa("ui-config");var Tl="vk_player_debug_panel_opened";var yg="videoplayer",xg="videoplayer";var Dr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},wg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Sg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Cg=new Set(["ShiftRight","ShiftLeft"]);var Tg=["TIMELINE"],Il=[...Tg,"GRAPH_BUTTON"],ap=[...Tg,"PLAY_BUTTON"],kl=[...Il,"PLAY_BUTTON"];var Or=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Or||{}),Us={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ig,VERSION as O0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as H0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as F0}from"@vkontakte/videoplayer-statistics/es2018";var uc="prod",La="1.1.60-beta.0";var zs=(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"),Ag=(t,e)=>{Ca(kg,t),Ca(Eg,e),uc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Sa(kg);return Ig(t,"Store context is empty!"),t},oo=()=>{let t=Sa(Eg);return Ig(t,"MicroStores context is empty!"),t},Yt=(t,e)=>fc(t,t.getValue(),e),fc=(t,e,i)=>tr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Pg=(t,e,i)=>{var I,A,P,E,T,V;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${La} (core: ${H0}, stat: ${F0}, shared: ${O0})`,f=xe(i.state.errorLog$),_=f.length?`
49
+ `+f.map((z,Y)=>{var oe;let U=`${Y}) Type: ${z.id}
50
+ `,Z=`Message: ${z.message} (${z.thrown})
51
+ `,X=`Trace: ${(oe=z.thrown)==null?void 0:oe.stack}
52
+ `;return U+Z+X}).join(`
53
+ `):void 0,p=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),y=[];$&&y.push(`Video: ${(T=$==null?void 0:$.codec)!=null?T:""}`+($!=null&&$.hdr?" (HDR)":"")),w&&y.push(`Audio: ${(V=w==null?void 0:w.codec)!=null?V:""}`+(w!=null&&w.language?` (${w.language})`:""));let S={Version:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:xe(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:y.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:p,Position:`${xe(i.state.positionExact$)}s`,State:`${xe(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([z,Y])=>Y!==void 0).map(([z,Y])=>`${z}: ${Y}`).join(`
54
+ `)},Mg=(t,e,i)=>{var z,Y,U,Z;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s={version:La,viewport:`${n}x${a}`,volume:Math.round(xe(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(_&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-xe(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let A=xe(i.vsid);typeof A=="string"&&(s.vsid=A);let P=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;P&&(s.videoCodec=P);let E=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;E&&(s.audioCodec=E),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(s.hdr=!0);let V=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return V&&(s.audioLanguage=V),s},Lg=(t,e)=>zs(t,e,"mp4"),Vg=t=>!t.type,Rg=t=>!!t.type,Bg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},pc=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 cp,safeStorage as _o}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Ng="vk_player_prefer_traffic_saving_enabled",Dg="vk_player_preferred_volume",Og="vk_player_prefer_volume_mute",up="vk_player_preferred_quality",lp="vk_player_preferred_default_quality_settings",dp="vk_player_preferred_quality_settings_by_video",Hg="vk_player_preferred_stream_language",Fg="vk_player_preferred_rate",Ug="vk_player_preferred_autoplay_next",zg=t=>t>1?1:t<0?0:t,pp=t=>_o.set(Dg,zg(t).toString(10)),mc=()=>{let t=_o.get(Dg);return cp(t)?void 0:zg(parseFloat(t))},fp=(t,e)=>_o.set(up,JSON.stringify({videoId:t,value:e})),Al=()=>_o.remove(up),mp=t=>{let e=_o.get(up);if(cp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Al();return}return o},vp=(t,e)=>{e?_o.set(t,"true"):_o.remove(t)},gp=t=>_o.get(t)==="true",hp=t=>vp(Og,t),qg=()=>gp(Og),El=t=>vp(Ng,t),_p=()=>gp(Ng),Kg=()=>_o.get(Hg),bp=t=>_o.set(Hg,t),Wg=t=>_o.set(Fg,JSON.stringify({rate:t})),Qg=()=>{let t=_o.get(Fg);if(cp(t))return;let{rate:e}=JSON.parse(t);return e},Gg=t=>vp(Ug,t),Yg=()=>gp(Ug),U0=()=>{let t=f=>{_o.set(lp,JSON.stringify(f))},e=()=>{try{let f=_o.get(lp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=_o.get(dp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{_o.set(dp,JSON.stringify(f))},n=f=>{u(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return{..._,appliesTo:"to-video"};_&&a();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{_o.remove(dp)},s=()=>{_o.remove(lp)},d=(f,_="as-default")=>{f.type==="exact_quality"?o(f):_==="as-default"?t(f):o(f)},l=f=>{let _=n(f);if(_){switch(_.type){case"traffic_saving":El(!0);break;case"exact_quality":fp(f,_.quality)}a(),s()}},u=f=>{let _=mp(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}_p()&&t({type:"traffic_saving",videoId:f}),El(!1),Al()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:jg,migrateSettingsToLegacyWay:Zg,savePreferredQualitySettings:vc,savePreferredDefaultQualitySettings:TA,removePreferredQualitySettingsByVideo:IA,getPreferredDefaultQualitySettings:gc}=U0();import{PlaybackState as c1}from"@vkontakte/videoplayer-core/es2018";var z0=be('<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 Pl(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=z0();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}import{isNullable as eh,InterfaceLanguage as th}from"@vkontakte/videoplayer-shared/es2018";var q0={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
52
55
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
53
- \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`},Yg=W$;var q$={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
56
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Xg=q0;var K0={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
54
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
55
- Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg);_s.set(Xg.RU,Yg);var Jg=new Map,dm=({language:t,pack:e,fallback:i})=>{if(_s.has(t)){let o=_s.get(t);_s.set(t,{...o,...e})}else _s.set(t,e);Jg.set(t,i)},cm=t=>_s.has(t),um=(t,e,i,o)=>{var l;let n=_s.get(t),r=n==null?void 0:n[e];if(Zg(r)){let d=(l=Jg.get(t))!=null?l:o,a=d?_s.get(d):void 0;r=a==null?void 0:a[e]}return Zg(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var c;return(c=i[a])!=null?c:""}):r},ee=(t,e)=>{let{interfaceLanguage$:i}=He(),o=Ne(i),n=Xt();return um(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var tl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(tl||(tl={}));var K$=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Q$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,G$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,kc="?",Y$="X-Sentry-Auth",j$=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Z$(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
56
- `),o,n;for(let r=0;r<i.length;++r){if(o=K$.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||kc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=G$.exec(i[r]))n={filename:o[2],function:o[1]||kc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Q$.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||kc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=kc),e.push(n)}return e.length?{value:eh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function eh(t){return(t&&t.message||"No error message").split(`
57
- `).filter(i=>!!i)[0]}function X$(t){try{let e=Z$(t);if(e)return e}catch(e){}return{value:eh(t),type:t&&t.name,stacktrace:{frames:[]}}}function J$(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Ec=class{constructor(e){if(e&&e.dsn){let i=j$.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[X$(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(Y$,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:J$(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function th(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function e1(){return window}var Pc=class t extends Ec{constructor(e,i=e1()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=c=>c,beforeBreadcrumb:r=c=>c,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(c=>new c(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>th(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>th(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Ac,Subscription as t1}from"@vkontakte/videoplayer-shared/es2018";var Mc=null,ma=class{constructor(e,i,o={}){!Mc&&e.dsn&&(this.sentryClient=new Pc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new t1,this.options=e,this.context=o,Mc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Mc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:g}=l,{errorType:m,category:h}=i;if(Ac(h)&&g.includes(h)||Ac(m)&&f.includes(m))return;if(Math.random()<=d||Ac(h)&&c.includes(h)||Ac(m)&&a.includes(m)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{m&&n.captureMessage(m,i.fatal?tl.fatal:tl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Mc}};var va=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(va||{});var Lc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Vc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),ih=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},_d=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ns=()=>!!_d(),Rc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Nc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},oh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as nh}from"@vkontakte/videoplayer-core/es2018";var rh=()=>({title:ee("hotkey_map_modal_title"),closeBtnText:ee("hotkey_map_modal_close_btn_text"),groups:[{title:ee("hotkey_map_group_title_common"),items:[{description:ee("hotkey_map_item_mute_description"),value:ee("hotkey_map_item_mute_value")},{description:ee("hotkey_map_item_volume_up_description"),value:ee("hotkey_map_item_volume_up_value")},{description:ee("hotkey_map_item_volume_down_description"),value:ee("hotkey_map_item_volume_down_value")},{description:ee("hotkey_map_item_pip_description"),value:ee("hotkey_map_item_pip_value")},{description:ee("hotkey_map_item_full_screen_description"),value:ee("hotkey_map_item_full_screen_value")},{description:ee("hotkey_map_item_show_context_menu_description"),value:ee("hotkey_map_item_show_context_menu_value")},{description:ee("hotkey_map_item_show_hotkey_map_description"),value:ee("hotkey_map_item_show_hotkey_map_value")}]},{title:ee("hotkey_map_group_title_playback"),items:[{description:ee("hotkey_map_item_play_toggle_description"),value:ee("hotkey_map_item_play_toggle_value")},{description:ee("hotkey_map_item_seek_backward_description"),value:ee("hotkey_map_item_seek_backward_value")},{description:ee("hotkey_map_item_seek_forward_description"),value:ee("hotkey_map_item_seek_forward_value")},{description:ee("hotkey_map_item_fast_seek_backward_description"),value:ee("hotkey_map_item_fast_seek_backward_value")},{description:ee("hotkey_map_item_fast_seek_forward_description"),value:ee("hotkey_map_item_fast_seek_forward_value")},{description:ee("hotkey_map_item_rate_down_description"),value:ee("hotkey_map_item_rate_down_value")},{description:ee("hotkey_map_item_rate_up_description"),value:ee("hotkey_map_item_rate_up_value")},{description:ee("hotkey_map_item_prev_frame_description"),value:ee("hotkey_map_item_prev_frame_value")},{description:ee("hotkey_map_item_next_frame_description"),value:ee("hotkey_map_item_next_frame_value")},{description:ee("hotkey_map_item_jump_seek_description"),value:ee("hotkey_map_item_jump_seek_value")},{description:ee("hotkey_map_item_next_video_description"),value:ee("hotkey_map_item_next_video_value")},{description:ee("hotkey_map_item_prev_video_description"),value:ee("hotkey_map_item_prev_video_value")}]},{title:ee("hotkey_map_group_title_subtitles"),items:[{description:ee("hotkey_map_item_subtitles_toggle_description"),value:ee("hotkey_map_item_subtitles_toggle_value")}]},{title:ee("hotkey_map_group_title_episodes"),items:[{description:ee("hotkey_map_item_prev_episode_description"),value:nh.device.isApple?ee("hotkey_map_item_prev_episode_mac_value"):ee("hotkey_map_item_prev_episode_pc_value")},{description:ee("hotkey_map_item_next_episode_description"),value:nh.device.isApple?ee("hotkey_map_item_next_episode_mac_value"):ee("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as i1,ValueSubject as pm}from"@vkontakte/videoplayer-shared/es2018";var ga=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:i1(this.onResize.bind(this),300)};this.info={isActive$:new pm(!1),isEnabled$:new pm(!1),type:0};this.info.isEnabled$=new pm(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r,l;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ha(t){return t instanceof ga}import{devNull as ah,now as lh}from"@vkontakte/videoplayer-shared/es2018";function Bc(t,e){if(new.target)return k({component:Bc,...t});E(e,!1);let i=He();return Kt(()=>{i.getAdmanWrapper().startPostroll()}),Nr(),P({$set:M,$on:(o,n)=>A(e,o,n)})}import{noop as sh}from"@vkontakte/videoplayer-shared/es2018";var o1=(t,e)=>{t.stopPropagation(),e()()},n1=F('<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>'),r1=F('<div class="container svelte-1k4i25s"><!></div>'),s1={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 Dc(t,e){if(new.target)return k({component:Dc,...t});E(e,!0),ne(t,s1);let[i,o]=Xe(),n=()=>I(c,"$isMobile",i),r=p(e,"position",7,0),l=p(e,"secondsToWatchBeforeSkip",7,0),d=p(e,"skipAd",7,sh),c=He().ui.isMobile,f=$(()=>r()>0&&r()>=l());var g=r1(),m=x(g);{var h=S=>{var L=n1();L.__click=[o1,d];var B=x(L);Me(),b(L),R(V=>ke(B,`${V!=null?V:""} `),[()=>ee("skip_ads_now")]),w(S,L)},_=S=>{var L=rr();R(B=>ke(L,B),[()=>ee("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),w(S,L)};W(m,S=>{s(f)?S(h):S(_,!1)})}b(g),R(()=>{re(g,"container-mobile",n()),re(g,"skippable",s(f))}),w(t,g);var y=P({get position(){return r()},set position(S=0){r(S),u()},get secondsToWatchBeforeSkip(){return l()},set secondsToWatchBeforeSkip(S=0){l(S),u()},get skipAd(){return d()},set skipAd(S=sh){d(S),u()},$set:M,$on:(S,L)=>A(e,S,L)});return o(),y}bt(["click"]);var a1=F('<button class="svelte-1wy3dql"> </button>'),l1={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 Oc(t,e){if(new.target)return k({component:Oc,...t});E(e,!1),ne(t,l1),Nr();var i=a1(),o=x(i,!0);return b(i),R(n=>ke(o,n),[()=>ee("visit_advertiser")],Lr),w(t,i),P({$set:M,$on:(n,r)=>A(e,n,r)})}var d1=F('<div class="top-gradient-mobile svelte-354ajf"></div>'),c1=F('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),u1={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
58
+ Try switching the\xA0quality to\xA0Auto.`},Jg=K0;var ts=new Map;ts.set(th.EN,Jg);ts.set(th.RU,Xg);var ih=new Map,$p=({language:t,pack:e,fallback:i})=>{if(ts.has(t)){let o=ts.get(t);ts.set(t,{...o,...e})}else ts.set(t,e);ih.set(t,i)},yp=t=>ts.has(t),xp=(t,e,i,o)=>{var s;let n=ts.get(t),a=n==null?void 0:n[e];if(eh(a)){let d=(s=ih.get(t))!=null?s:o,l=d?ts.get(d):void 0;a=l==null?void 0:l[e]}return eh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},H=(t,e)=>{let{interfaceLanguage$:i}=Te(),o=xe(i),n=zt();return xp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Va;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Va||(Va={}));var W0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Q0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,G0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hc="?",Y0="X-Sentry-Auth",j0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Z0(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
59
+ `),o,n;for(let a=0;a<i.length;++a){if(o=W0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||hc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=G0.exec(i[a]))n={filename:o[2],function:o[1]||hc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Q0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||hc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=hc),e.push(n)}return e.length?{value:oh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function oh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function X0(t){try{let e=Z0(t);if(e)return e}catch(e){}return{value:oh(t),type:t&&t.name,stacktrace:{frames:[]}}}function J0(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var _c=class{constructor(e){if(e&&e.dsn){let i=j0.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[X0(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(Y0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:J0(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function nh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function e_(){return window}var bc=class t extends _c{constructor(e,i=e_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>nh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>nh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as $c,Subscription as t_}from"@vkontakte/videoplayer-shared/es2018";var yc=null,qs=class{constructor(e,i,o={}){!yc&&e.dsn&&(this.sentryClient=new bc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new t_,this.options=e,this.context=o,yc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),yc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:_}=s,{errorType:p,category:$}=i;if($c($)&&_.includes($)||$c(p)&&f.includes(p))return;if(Math.random()<=d||$c($)&&u.includes($)||$c(p)&&l.includes(p)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{p&&n.captureMessage(p,i.fatal?Va.fatal:Va.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return yc}};var Ks=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Ks||{});var xc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},wc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),rh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ml=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},hs=()=>!!Ml(),Sc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Cc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},sh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as ah}from"@vkontakte/videoplayer-core/es2018";var lh=()=>({title:H("hotkey_map_modal_title"),closeBtnText:H("hotkey_map_modal_close_btn_text"),groups:[{title:H("hotkey_map_group_title_common"),items:[{description:H("hotkey_map_item_mute_description"),value:H("hotkey_map_item_mute_value")},{description:H("hotkey_map_item_volume_up_description"),value:H("hotkey_map_item_volume_up_value")},{description:H("hotkey_map_item_volume_down_description"),value:H("hotkey_map_item_volume_down_value")},{description:H("hotkey_map_item_pip_description"),value:H("hotkey_map_item_pip_value")},{description:H("hotkey_map_item_full_screen_description"),value:H("hotkey_map_item_full_screen_value")},{description:H("hotkey_map_item_show_context_menu_description"),value:H("hotkey_map_item_show_context_menu_value")},{description:H("hotkey_map_item_show_hotkey_map_description"),value:H("hotkey_map_item_show_hotkey_map_value")}]},{title:H("hotkey_map_group_title_playback"),items:[{description:H("hotkey_map_item_play_toggle_description"),value:H("hotkey_map_item_play_toggle_value")},{description:H("hotkey_map_item_seek_backward_description"),value:H("hotkey_map_item_seek_backward_value")},{description:H("hotkey_map_item_seek_forward_description"),value:H("hotkey_map_item_seek_forward_value")},{description:H("hotkey_map_item_fast_seek_backward_description"),value:H("hotkey_map_item_fast_seek_backward_value")},{description:H("hotkey_map_item_fast_seek_forward_description"),value:H("hotkey_map_item_fast_seek_forward_value")},{description:H("hotkey_map_item_rate_down_description"),value:H("hotkey_map_item_rate_down_value")},{description:H("hotkey_map_item_rate_up_description"),value:H("hotkey_map_item_rate_up_value")},{description:H("hotkey_map_item_prev_frame_description"),value:H("hotkey_map_item_prev_frame_value")},{description:H("hotkey_map_item_next_frame_description"),value:H("hotkey_map_item_next_frame_value")},{description:H("hotkey_map_item_jump_seek_description"),value:H("hotkey_map_item_jump_seek_value")},{description:H("hotkey_map_item_next_video_description"),value:H("hotkey_map_item_next_video_value")},{description:H("hotkey_map_item_prev_video_description"),value:H("hotkey_map_item_prev_video_value")}]},{title:H("hotkey_map_group_title_subtitles"),items:[{description:H("hotkey_map_item_subtitles_toggle_description"),value:H("hotkey_map_item_subtitles_toggle_value")}]},{title:H("hotkey_map_group_title_episodes"),items:[{description:H("hotkey_map_item_prev_episode_description"),value:ah.device.isApple?H("hotkey_map_item_prev_episode_mac_value"):H("hotkey_map_item_prev_episode_pc_value")},{description:H("hotkey_map_item_next_episode_description"),value:ah.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as i_,ValueSubject as wp}from"@vkontakte/videoplayer-shared/es2018";var Ws=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:i_(this.onResize.bind(this),300)};this.info={isActive$:new wp(!1),isEnabled$:new wp(!1),type:0};this.info.isEnabled$=new wp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Qs(t){return t instanceof Ws}import{devNull as dh,now as ch}from"@vkontakte/videoplayer-shared/es2018";sv();function Tp(t,e){q(e,!1);let i=Te();Bt(()=>{i.getAdmanWrapper().startPostroll()}),$r(),K()}import{noop as o_}from"@vkontakte/videoplayer-shared/es2018";var n_=(t,e)=>{t.stopPropagation(),e()()},r_=L('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),s_=L("<div><!></div>"),a_={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 Ip(t,e){q(e,!0),Q(t,a_);let[i,o]=Ue(),n=()=>C(u,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,o_),u=Te().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=s_();let p;var $=h(_);{var w=S=>{var I=r_();I.__click=[n_,d];var A=h(I);_e(),g(I),k(P=>fe(A,`${P!=null?P:""} `),[()=>H("skip_ads_now")]),b(S,I)},y=S=>{var I=Xn();k(A=>fe(I,A),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};R($,S=>{r(f)?S(w):S(y,!1)})}g(_),k(S=>p=te(_,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),K(),o()}at(["click"]);var l_=L('<button class="svelte-1wy3dql"> </button>'),d_={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 kp(t,e){q(e,!1),Q(t,d_),$r();var i=l_(),o=h(i,!0);g(i),k(n=>fe(o,n),[()=>H("visit_advertiser")],hr),b(t,i),K()}var c_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),u_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),p_={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
58
61
  360deg,
59
62
  rgba(0, 0, 0, 0) 0%,
60
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -64,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
64
67
  rgba(0, 0, 0, 0.5) 77%,
65
68
  rgba(0, 0, 0, 0.55) 88%,
66
69
  rgba(0, 0, 0, 0.65) 100%
67
- );}`};function il(t,e){if(new.target)return k({component:il,...t});E(e,!0),ne(t,u1);let[i,o]=Xe(),n=()=>I(U,"$adPlaybackState",i),r=()=>I(L,"$isMobile",i),l=()=>I(H,"$adPosition",i),d=()=>I(G,"$secondsToWatchBeforeSkipAd",i),a=()=>I(S,"$isVideoEnded",i),c=p(e,"adsSlotId",7,void 0),f=p(e,"adsParams",7,void 0),g=p(e,"adsPreviewParam",7,void 0),m=p(e,"adsAutoplayParam",7,void 0),h=p(e,"duration",7,0),_=He(),y=Xt(),S=_.state.isEnded$,L=_.ui.isMobile,B=y.ads.isMobileGoToSiteButton,V=ue(void 0),N=ue(void 0),T=!1,U=_.ads.playbackState,K=_.ads.canSkip,H=_.ads.position,G=_.ads.secondsToWatchBeforeSkip,J=$(()=>K&&n()!=="inactive"),de=$(()=>r()&&n()!=="inactive"&&B);Kt(()=>{var we;let X=_.getAdmanWrapper();if(ah.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[lh(),c()]}),!c()){X.onAdmanLoadingError();return}let ce=$e=>{X.initAdman($e),T=!0},Be=new AbortController,Z=()=>{Be.abort()},{width:De,height:le}=Ne(_.ui.playerSize),Ke=Ne(_.ui.isFullscreen),lt=(we=m())!=null?we:Ne(_.ui.isAutoplay),at={width:De,height:le,isFullscreen:Ke,isAutoplay:lt,adsContainer:s(V),adsVideoElement:s(N),slotId:c(),params:f(),previewParam:g(),duration:h()};return window.AdmanHTML?ce(at):X.loadAdman(Be.signal).then(()=>{ce(at)}).catch(()=>{X.onAdmanLoadingError()}),()=>{ah.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[lh(),c()]}),!T&&Z()}});var te=c1(),xe=x(te);{var Ce=X=>{var ce=d1();w(X,ce)};W(xe,X=>{r()&&X(Ce)})}var Q=O(xe,2);xt(Q,X=>Y(N,X),()=>s(N));var pe=O(Q,2);{var he=X=>{Dc(X,{get position(){return l()},get secondsToWatchBeforeSkip(){return d()},get skipAd(){return _.actions.internal.skipAd}})};W(pe,X=>{s(J)&&X(he)})}var j=O(pe,2);{var ae=X=>{Bc(X,{})};W(j,X=>{a()&&X(ae)})}var q=O(j,2);{var Ge=X=>{Oc(X,{})};W(q,X=>{s(de)&&X(Ge)})}b(te),xt(te,X=>Y(V,X),()=>s(V)),w(t,te);var Re=P({get adsSlotId(){return c()},set adsSlotId(X=void 0){c(X),u()},get adsParams(){return f()},set adsParams(X=void 0){f(X),u()},get adsPreviewParam(){return g()},set adsPreviewParam(X=void 0){g(X),u()},get adsAutoplayParam(){return m()},set adsAutoplayParam(X=void 0){m(X),u()},get duration(){return h()},set duration(X=0){h(X),u()},$set:M,$on:(X,ce)=>A(e,X,ce)});return o(),Re}var dr=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var p1=Le('<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 Hc(t,e){if(new.target)return k({component:Hc,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=p1();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var f1=Le('<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 Fc(t,e){if(new.target)return k({component:Fc,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=f1();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function ol(t,e){if(new.target)return k({component:ol,...t});E(e,!0);let i=p(e,"isActive",7,!1);var o=Ze(),n=Ie(o);{var r=d=>{Fc(d,{})},l=d=>{Hc(d,{})};W(n,d=>{i()?d(r):d(l,!1)})}return w(t,o),P({get isActive(){return i()},set isActive(d=!1){i(d),u()},$set:M,$on:(d,a)=>A(e,d,a)})}var m1=F('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),v1=F('<div role="timer" class="thumb-timer svelte-opbced" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),g1={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
70
+ );}`};function Ll(t,e){q(e,!0),Q(t,p_);let[i,o]=Ue(),n=()=>C(Y,"$canSkipAd",i),a=()=>C(z,"$adPlaybackState",i),s=()=>C(A,"$isMobile",i),d=()=>C(U,"$adPosition",i),l=()=>C(Z,"$secondsToWatchBeforeSkipAd",i),u=()=>C(I,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),p=v(e,"adsPreviewParam",3,void 0),$=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),y=Te(),S=zt(),I=y.state.isEnded$,A=y.ui.isMobile,P=S.ads.isMobileGoToSiteButton,E=ee(void 0),T=ee(void 0),V=!1,z=y.ads.playbackState,Y=y.ads.canSkip,U=y.ads.position,Z=y.ads.secondsToWatchBeforeSkip,X=m(()=>n()&&a()!=="inactive"),oe=m(()=>s()&&a()!=="inactive"&&P);Bt(()=>{var $e;let ke=y.getAdmanWrapper();if(dh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[ch(),f()]}),!f()){ke.onAdmanLoadingError();return}let Re=Pe=>{ke.initAdman(Pe),V=!0},ue=new AbortController,D=()=>{ue.abort()},{width:de,height:Ee}=xe(y.ui.playerSize),We=xe(y.ui.isFullscreen),lt=($e=$())!=null?$e:xe(y.ui.isAutoplay),Ae={width:de,height:Ee,isFullscreen:We,isAutoplay:lt,adsContainer:r(E),adsVideoElement:r(T),slotId:f(),params:_(),previewParam:p(),duration:w()};return window.AdmanHTML?Re(Ae):ke.loadAdman(ue.signal).then(()=>{Re(Ae)}).catch(()=>{ke.onAdmanLoadingError()}),()=>{dh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[ch(),f()]}),!V&&D()}});var ce=u_(),le=h(ce);{var Ve=ke=>{var Re=c_();b(ke,Re)};R(le,ke=>{s()&&ke(Ve)})}var Me=M(le,2);ut(Me,ke=>O(T,ke),()=>r(T));var J=M(Me,2);{var Le=ke=>{Ip(ke,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(J,ke=>{r(X)&&ke(Le)})}var j=M(J,2);{var N=ke=>{Tp(ke,{})};R(j,ke=>{u()&&ke(N)})}var Ne=M(j,2);{var ne=ke=>{kp(ke,{})};R(Ne,ke=>{r(oe)&&ke(ne)})}g(ce),ut(ce,ke=>O(E,ke),()=>r(E)),b(t,ce),K(),o()}var ir=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var f_=be('<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 Ep(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=f_();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),b(t,o)}var m_=be('<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 Ap(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=m_();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),b(t,o)}function Vl(t,e){let i=v(e,"isActive",3,!1);var o=ze(),n=ve(o);{var a=d=>{Ap(d,{})},s=d=>{Ep(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var v_=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),g_=L('<div role="timer" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),h_={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
68
71
  /* safari fix */content:'';display:inline-block;vertical-align:middle;height:100%;}.thumb-timer-live-icon.svelte-opbced {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}.thumb-timer-equalizer.svelte-opbced {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) {margin-top:-2px;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
69
72
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.thumb-timer.playing.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) .col:where(.svelte-opbced) {animation-play-state:running;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(1) {left:0;
70
73
  animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
@@ -135,9 +138,9 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
135
138
  100% {
136
139
  transform: scaleY(0.6);
137
140
  }
138
- }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function nl(t,e){if(new.target)return k({component:nl,...t});E(e,!0),ne(t,g1);let i=p(e,"isHidden",7,!1),o=p(e,"isLive",7,!1),n=p(e,"isPlaying",7,!1),r=p(e,"position",7),l=p(e,"duration",7);var d=v1(),a=O(x(d),2),c=x(a);{var f=m=>{var h=m1(),_=x(h);ol(_,{isActive:!0}),b(h),w(m,h)},g=m=>{var h=rr();R(_=>ke(h,_),[()=>dr(l()-r())]),w(m,h)};W(c,m=>{o()?m(f):m(g,!1)})}return b(a),b(d),R(()=>{re(d,"live",o()),re(d,"hidden",i()),re(d,"playing",n())}),w(t,d),P({get isHidden(){return i()},set isHidden(m=!1){i(m),u()},get isLive(){return o()},set isLive(m=!1){o(m),u()},get isPlaying(){return n()},set isPlaying(m=!1){n(m),u()},get position(){return r()},set position(m){r(m),u()},get duration(){return l()},set duration(m){l(m),u()},$set:M,$on:(m,h)=>A(e,m,h)})}var rl=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 I1}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as dh}from"@vkontakte/videoplayer-core/es2018";var cr=t=>{t.stopPropagation(),t.preventDefault()},_1=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},$1=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},b1=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},y1=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},ch=t=>t.code==="Escape",x1=t=>t.code==="ArrowLeft",$d=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},uh=t=>{if(b1(t)){cr(t),$1(t.target);return}y1(t)&&(cr(t),_1(t.target))},Os=t=>!dh.device.isAndroid&&(t==null?void 0:t.detail)===0||dh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",sl=async(t,e,i)=>{await fo(),t&&!t.classList.contains("opened")&&!e&&Ne(i)&&(await fo(),i.set(!1),t.focus())},ph=async(t,e,i)=>{await fo(),t&&!e&&Ne(i)&&(i.set(!1),t.focus())},ts=async(t,e,i)=>{var n;await fo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},fh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Uc=(t,e)=>{uh(t),ch(t)&&(cr(t),e())},zc=async(t,e)=>{$d(t,["ArrowRight"])&&(cr(t),e())},mh=async(t,e,i)=>{if(uh(t),x1(t)){cr(t),e();return}ch(t)&&(cr(t),i())},al=(t,e)=>{$d(t)&&(cr(t),e())},vh=(t,e,i)=>{if($d(t))cr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),cr(t);return}o==="ArrowRight"&&!e&&(i(!0),cr(t))}},gh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},hh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Kc,isValidURL as k1}from"@vkontakte/videoplayer-shared/es2018";var Br={"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 Wc}from"@vkontakte/videoplayer-shared/es2018";var C1=(t,e)=>{al(t,()=>e())},S1=F('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),T1={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 qc(t,e){if(new.target)return k({component:qc,...t});E(e,!0),ne(t,T1);let i=p(e,"id",7),o=p(e,"onClick",7,Wc),n=p(e,"closeContextMenu",7,Wc),r=p(e,"label",7),l=p(e,"ariaLabel",7),d=f=>{f==null||f.stopPropagation(),o()(),n()()};var a=S1();a.__click=d,a.__keydown=[C1,d];var c=x(a,!0);return b(a),R(()=>{var f;fe(a,"aria-label",(f=l())!=null?f:r()),fe(a,"data-testid",i()),ke(c,r())}),w(t,a),P({get id(){return i()},set id(f){i(f),u()},get onClick(){return o()},set onClick(f=Wc){o(f),u()},get closeContextMenu(){return n()},set closeContextMenu(f=Wc){n(f),u()},get label(){return r()},set label(f){r(f),u()},get ariaLabel(){return l()},set ariaLabel(f){l(f),u()},$set:M,$on:(f,g)=>A(e,f,g)})}bt(["click","keydown"]);var $a=(t,e)=>t.weight-e.weight;var bd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(bd||{});var E1=(t,e)=>{Uc(t,e)},P1=t=>{t.preventDefault()},A1=F('<ul role="menu" class="svelte-1p5ukkp"></ul>'),M1={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 Qc(t,e){if(new.target)return k({component:Qc,...t});E(e,!0),ne(t,M1);let[i,o]=Xe(),n=()=>I(Ce,"$isLive$",i),r=()=>I(j,"$isPiPEnabled$",i),l=()=>I(xe,"$chromecastState$",i),d=()=>I(ae,"$pictureInPictureApiIsActive$",i),a=()=>I(he,"$isLooped$",i),c=()=>I(Q,"$positionExact$",i),f=()=>I(G,"$debugPanelVisible",i),g=()=>I(J,"$additionalContextMenuItems$",i),m=p(e,"visible",7,!1),h=p(e,"supportLink",7),_=p(e,"position",23,()=>({top:0,left:0})),y=p(e,"playerContainerRef",7,void 0),S=p(e,"controlsContainerRef",7,void 0),L=p(e,"menuElementRef",15,void 0),B=p(e,"returnFocus",7),V=ue(0),N=ue(0),T=He(),{pictureInPicture$:U}=Co(),K=Xt(),H=T.ui.contextMenu.visible$,G=T.ui.debugPanelVisible,J=T.ui.additionalContextMenuItems$,de=T.ui.t,te=T.actions.internal.togglePictureInPicture,xe=T.state.chromecastState$,Ce=T.state.isLive$,Q=T.state.positionExact$,pe=T.state.isInteractive,he=T.state.looped$,{isEnabled$:j,isActive$:ae}=U,q=$(()=>{var We;return K.features.copyVideoLink&&((We=T.callbacks)==null?void 0:We.onCopyVideoLink)}),Ge=$(()=>s(q)&&!n()&&!pe),Re=$(()=>{var We;return!!((We=T.callbacks)!=null&&We.onCopyEmbedCodeClicked)}),X=$(()=>r()&&l()!==I1.CONNECTED&&!pe),ce=$(()=>K.features.videoRotate&&!pe),Be=$(()=>K.showSupport&&!d()),Z=$(()=>K.features.saveTraceInfoToFile),De=()=>{var We;H.set(!1),(We=B())==null||We()},le=(We,ct)=>{if(!L()||!y()||!S())return;let gt=L().getBoundingClientRect(),kt=y().getBoundingClientRect();Y(V,We-kt.left),Y(N,ct-kt.top),s(V)+gt.width>kt.width&&Y(V,kt.width-gt.width),s(N)+gt.height>kt.height&&Y(N,kt.height-gt.height),Y(V,Ae(Math.max(s(V),0))),Y(N,Ae(Math.max(s(N),0)))};rt(()=>{(async()=>{if(L()&&y()&&S()){await fo();let{top:ct,left:gt,bottom:kt,right:qe}=_(),zt=gt!=null?gt:0,oi=ct!=null?ct:0,ri=L().getBoundingClientRect();Kc(gt)&&!Kc(qe)&&(zt=qe-ri.width),Kc(ct)&&!Kc(kt)&&(oi=kt-ri.height),zt=Math.max(zt,0),oi=Math.max(oi,0),le(zt,oi)}})()});let Ke=()=>{T.actions.internal.videoRotate()},lt=()=>{k1(h())&&window.open(h(),"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},at=()=>{let We=T.actions.internal.getDebugTextData();if(K.features.saveDebugInfoToFile){let ct=new Blob([...We],{type:"plain/text"}),gt=window.URL.createObjectURL(ct);fa(gt,"vk_player_debug_info","txt")}else rl(T.actions.internal.getDebugTextData())},we=()=>{let We=T.actions.internal.getTraceTextData(),ct=new Blob([...We],{type:"application/json"}),gt=window.URL.createObjectURL(ct);fa(gt,"vk_player_trace_info","json")},$e=()=>{G.set(!0)},Je=async()=>{var We;try{te()}finally{(We=B())==null||We()}},vt=()=>{T.actions.internal.setLooped(!a())},ve=()=>{var We,ct;if(s(Re)){let gt=(ct=(We=T.callbacks)==null?void 0:We.onCopyEmbedCodeClicked)==null?void 0:ct.call(We);gt&&rl(gt)}},je=(We=!1)=>{var ct,gt;if((ct=T.callbacks)!=null&&ct.onCopyVideoLink){let kt=(gt=T.callbacks)==null?void 0:gt.onCopyVideoLink(We,c());kt&&rl(kt)}},Ct=$(()=>K.features.saveDebugInfoToFile?de("menu_save_debug"):de("menu_copy_debug")),ie=$(()=>s(q)?{id:"copy-link",weight:Br["copy-link"],label:de("menu_copy_video_link"),onClick:()=>je()}:void 0),et=$(()=>s(Ge)?{id:"copy-link-timestamp",weight:Br["copy-link-timestamp"],label:de("menu_copy_video_link_with_timestamp"),onClick:()=>je(!0)}:void 0),ht=$(()=>s(Re)?{id:"copy-embed-code",weight:Br["copy-embed-code"],label:de("menu_copy_embed_code"),onClick:ve}:void 0),ft=$(()=>s(X)?{id:"pip",weight:Br.pip,label:de("menu_pip"),onClick:Je}:void 0),be=$(()=>({id:"video-loop",weight:Br["video-loop"],label:a()?de("menu_video_loop_off"):de("menu_video_loop_on"),ariaLabel:de("aria_label_menu_loop"),onClick:vt})),Pe=$(()=>s(ce)?{id:"rotate",weight:Br.rotate,label:de("menu_video_rotate"),ariaLabel:de("aria_label_menu_rotate"),onClick:Ke}:void 0),ye=$(()=>s(Be)?{id:"report",weight:Br.report,label:de("menu_report"),ariaLabel:`${de("menu_report")}. ${de("aria_label_new_tab_alert")}`,onClick:lt}:void 0),Ye=$(()=>({id:"save-debug",weight:Br["save-debug"],label:s(Ct),onClick:at})),pt=$(()=>s(Z)?{id:"save-trace",weight:Br["save-trace"],label:de("menu_save_debug"),onClick:we}:void 0),Ve=$(()=>({id:"debug-info",weight:Br["debug-info"],label:de("menu_debug_overlay"),ariaLabel:f()?de("aria_label_menu_debug_overlay_disable"):de("aria_label_menu_debug_overlay_enable"),onClick:$e})),_t=$(()=>[s(ie),s(et),s(ht),s(ft),s(be),s(Pe),s(ye),s(Ye),s(pt),s(Ve),...g()].filter(We=>!!We).sort($a));var me=Ze(),Bt=Ie(me);{var Ut=We=>{var ct=A1();ct.__contextmenu=[P1],ct.__keydown=[E1,De],Ci(ct,21,()=>s(_t),Ji,(gt,kt)=>{qc(gt,{get id(){return s(kt).id},get label(){return s(kt).label},get ariaLabel(){return s(kt).ariaLabel},get onClick(){return s(kt).onClick},closeContextMenu:De})}),b(ct),xt(ct,gt=>L(gt),()=>L()),R(()=>{var gt,kt;return fe(ct,"style",`top: ${(gt=s(N))!=null?gt:""}px; left: ${(kt=s(V))!=null?kt:""}px;`)}),w(We,ct)};W(Bt,We=>{m()&&We(Ut)})}w(t,me);var jt=P({get visible(){return m()},set visible(We=!1){m(We),u()},get supportLink(){return h()},set supportLink(We){h(We),u()},get position(){return _()},set position(We={top:0,left:0}){_(We),u()},get playerContainerRef(){return y()},set playerContainerRef(We=void 0){y(We),u()},get controlsContainerRef(){return S()},set controlsContainerRef(We=void 0){S(We),u()},get menuElementRef(){return L()},set menuElementRef(We=void 0){L(We),u()},get returnFocus(){return B()},set returnFocus(We){B(We),u()},$set:M,$on:(We,ct)=>A(e,We,ct)});return o(),jt}bt(["contextmenu","keydown"]);var Gc=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Gc(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 L1=F('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),V1={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 dl(t,e){if(new.target)return k({component:dl,...t});E(e,!0),ne(t,V1);let i=p(e,"values",23,()=>[]),o=ue(void 0),n=ue(null),r=16,l=120,d=60,a=l/d;Kt(()=>{s(o).width=l,s(o).height=r,Y(n,Ae(s(o).getContext("2d")))});function c(m,h,_,y,S){S===0&&(S=1),m.fillStyle="#fff",m.fillRect(h,_,y,S)}rt(()=>{let m="";if(s(n)){let h=i()[0];for(let y=1;y<i().length;y++)i()[y]>h&&(h=i()[y]);s(n).clearRect(0,0,l,r);let _=d-1;for(let y=i().length-1;y>=0;y--){let S=_*a,L=h>0?r*(i()[y]/h):0;c(s(n),S,0,a,L),m=L+" "+m,_--}}});var f=L1(),g=x(f);return xt(g,m=>Y(o,m),()=>s(o)),b(f),w(t,f),P({get values(){return i()},set values(m=[]){i(m),u()},$set:M,$on:(m,h)=>A(e,m,h)})}import{safeStorage as _h}from"@vkontakte/videoplayer-shared/es2018";var R1=(t,e)=>{t.stopPropagation(),_h.remove(fd),e.set(!1)},N1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),B1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),D1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),O1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),H1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),F1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),U1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),z1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),W1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),q1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),K1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Q1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),G1=F('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Y1=F('<div class="container svelte-4deykz" 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>'),j1={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 cl(t,e){if(new.target)return k({component:cl,...t});E(e,!0),ne(t,j1);let[i,o]=Xe(),n=()=>I(d,"$isMobile",i),r=He(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=ue(Ae(r.actions.internal.getDebugPanelData())),c=r.actions.internal.getVideoElement(),f=ue(0),g=ue(0),m=ue(0),h=new ll(60),_=new ll(60),y=new ll(60),S=ue(Ae([])),L=ue(Ae([])),B=ue(Ae([])),V=ee("aria_label_debug_panel");Kt(()=>{_h.set(fd,"true"),r.actions.internal.startLogging(),c&&(Y(g,Ae(c.getVideoPlaybackQuality().droppedVideoFrames)),Y(f,Ae(c.getVideoPlaybackQuality().totalVideoFrames)));let Pe=window.setInterval(()=>{Y(a,Ae(r.actions.internal.getDebugPanelData()))},500),ye;return c&&(ye=window.setInterval(()=>{if(c){Y(g,Ae(c.getVideoPlaybackQuality().droppedVideoFrames));let Ye=c.getVideoPlaybackQuality().totalVideoFrames;Y(m,Ye-s(f)),Y(f,Ae(Ye)),h.push(s(m)),s(a).speed&&_.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),Y(S,Ae(h.getValuesFromBottom())),Y(L,Ae(_.getValuesFromBottom())),Y(B,Ae(y.getValuesFromBottom()))}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(Pe),ye&&clearInterval(ye)}});var N=Y1();fe(N,"aria-label",V);var T=x(N);T.__click=[R1,l];var U=O(T,2),K=x(U),H=O(x(K),2),G=x(H,!0);b(H),b(K);var J=O(K,2);{var de=Pe=>{var ye=N1(),Ye=O(x(ye),2),pt=x(Ye,!0);b(Ye),b(ye),R(()=>ke(pt,s(a).id)),w(Pe,ye)};W(J,Pe=>{s(a).id&&Pe(de)})}var te=O(J,2);{var xe=Pe=>{var ye=B1(),Ye=O(x(ye),2),pt=x(Ye,!0);b(Ye),b(ye),R(()=>ke(pt,s(a).vsid)),w(Pe,ye)};W(te,Pe=>{s(a).vsid&&Pe(xe)})}var Ce=O(te,2);{var Q=Pe=>{var ye=D1(),Ye=O(x(ye),2),pt=x(Ye,!0);b(Ye),b(ye),R(()=>ke(pt,s(a).provider)),w(Pe,ye)};W(Ce,Pe=>{s(a).provider&&Pe(Q)})}var pe=O(Ce,2);{var he=Pe=>{var ye=O1(),Ye=O(x(ye),2),pt=x(Ye);b(Ye),b(ye),R(()=>{var Ve,_t;return ke(pt,`Video: ${s(a).videoCodec||""} ${(Ve=s(a).hdr?"(HDR)":"")!=null?Ve:""}
141
+ }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function Rl(t,e){q(e,!0),Q(t,h_);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=g_();let s;var d=M(h(a),2),l=h(d);{var u=_=>{var p=v_(),$=h(p);Vl($,{isActive:!0}),g(p),b(_,p)},f=_=>{var p=Xn();k($=>fe(p,$),[()=>ir(e.duration-e.position)]),b(_,p)};R(l,_=>{o()?_(u):_(f,!1)})}g(d),g(a),k(_=>s=te(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),K()}var Ra=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 k_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as uh}from"@vkontakte/videoplayer-core/es2018";var or=t=>{t.stopPropagation(),t.preventDefault()},b_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},$_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},y_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},x_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},ph=t=>t.code==="Escape",w_=t=>t.code==="ArrowLeft",Bl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},fh=t=>{if(y_(t)){or(t),$_(t.target);return}x_(t)&&(or(t),b_(t.target))},$s=t=>!uh.device.isAndroid&&(t==null?void 0:t.detail)===0||uh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Ba=async(t,e,i)=>{await vo(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(await vo(),i.set(!1),t.focus())},mh=async(t,e,i)=>{await vo(),t&&!e&&xe(i)&&(i.set(!1),t.focus())},Na=async(t,e,i)=>{var n;await vo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},vh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Tc=(t,e)=>{fh(t),ph(t)&&(or(t),e())},Ic=async(t,e)=>{Bl(t,["ArrowRight"])&&(or(t),e())},gh=async(t,e,i)=>{if(fh(t),w_(t)){or(t),e();return}ph(t)&&(or(t),i())},Da=(t,e)=>{Bl(t)&&(or(t),e())},hh=(t,e,i)=>{if(Bl(t))or(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),or(t);return}o==="ArrowRight"&&!e&&(i(!0),or(t))}},_h=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},bh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as kc,isValidURL as E_}from"@vkontakte/videoplayer-shared/es2018";var yr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as $h}from"@vkontakte/videoplayer-shared/es2018";var C_=(t,e)=>{Da(t,()=>e())},T_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),I_={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 Pp(t,e){q(e,!0),Q(t,I_);let i=v(e,"onClick",3,$h),o=v(e,"closeContextMenu",3,$h),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=T_();a.__click=n,a.__keydown=[C_,n];var s=h(a,!0);g(a),k(()=>{var d;Oe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(a,"data-testid",e.id),fe(s,e.label)}),b(t,a),K()}at(["click","keydown"]);var Ys=(t,e)=>t.weight-e.weight;var Nl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Nl||{});var A_=(t,e)=>{Tc(t,e)},P_=t=>{t.preventDefault()},M_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),L_={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 Mp(t,e){q(e,!0),Q(t,L_);let[i,o]=Ue(),n=()=>C(oe,"$isLive$",i),a=()=>C(Me,"$isPiPEnabled$",i),s=()=>C(X,"$chromecastState$",i),d=()=>C(J,"$pictureInPictureApiIsActive$",i),l=()=>C(Ve,"$isLooped$",i),u=()=>C(ce,"$positionExact$",i),f=()=>C(z,"$debugPanelVisible",i),_=()=>C(Y,"$additionalContextMenuItems$",i),p=v(e,"visible",3,!1),$=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),y=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),I=ee(0),A=ee(0),P=Te(),{pictureInPicture$:E}=oo(),T=zt(),V=P.ui.contextMenu.visible$,z=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,U=P.ui.t,Z=P.actions.internal.togglePictureInPicture,X=P.state.chromecastState$,oe=P.state.isLive$,ce=P.state.positionExact$,le=P.state.isInteractive,Ve=P.state.looped$,{isEnabled$:Me,isActive$:J}=E,Le=m(()=>{var Qe;return T.features.copyVideoLink&&((Qe=P.callbacks)==null?void 0:Qe.onCopyVideoLink)}),j=m(()=>r(Le)&&!n()&&!le),N=m(()=>{var Qe;return!!((Qe=P.callbacks)!=null&&Qe.onCopyEmbedCodeClicked)}),Ne=m(()=>a()&&s()!==k_.CONNECTED&&!le),ne=m(()=>T.features.videoRotate&&!le),ke=m(()=>T.showSupport&&!d()),Re=m(()=>T.features.saveTraceInfoToFile),ue=()=>{var Qe;V.set(!1),(Qe=e.returnFocus)==null||Qe.call(e)},D=(Qe,dt)=>{if(!S()||!w()||!y())return;let Xe=S().getBoundingClientRect(),Ct=w().getBoundingClientRect();O(I,Qe-Ct.left),O(A,dt-Ct.top),r(I)+Xe.width>Ct.width&&O(I,Ct.width-Xe.width),r(A)+Xe.height>Ct.height&&O(A,Ct.height-Xe.height),O(I,pe(Math.max(r(I),0))),O(A,pe(Math.max(r(A),0)))};Ye(()=>{(async()=>{if(S()&&w()&&y()){await vo();let{top:dt,left:Xe,bottom:Ct,right:Zt}=$(),qe=Xe!=null?Xe:0,ct=dt!=null?dt:0,ei=S().getBoundingClientRect();kc(Xe)&&!kc(Zt)&&(qe=Zt-ei.width),kc(dt)&&!kc(Ct)&&(ct=Ct-ei.height),qe=Math.max(qe,0),ct=Math.max(ct,0),D(qe,ct)}})()});let de=()=>{P.actions.internal.videoRotate()},Ee=()=>{E_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},We=()=>{let Qe=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let dt=new Blob([...Qe],{type:"plain/text"}),Xe=window.URL.createObjectURL(dt);zs(Xe,"vk_player_debug_info","txt")}else Ra(P.actions.internal.getDebugTextData())},lt=()=>{let Qe=P.actions.internal.getTraceTextData(),dt=new Blob([...Qe],{type:"application/json"}),Xe=window.URL.createObjectURL(dt);zs(Xe,"vk_player_trace_info","json")},Ae=()=>{z.set(!0)},$e=async()=>{var Qe;try{Z()}finally{(Qe=e.returnFocus)==null||Qe.call(e)}},Pe=()=>{P.actions.internal.setLooped(!l())},nt=()=>{var Qe,dt;if(r(N)){let Xe=(dt=(Qe=P.callbacks)==null?void 0:Qe.onCopyEmbedCodeClicked)==null?void 0:dt.call(Qe);Xe&&Ra(Xe)}},vt=(Qe=!1)=>{var dt,Xe;if((dt=P.callbacks)!=null&&dt.onCopyVideoLink){let Ct=(Xe=P.callbacks)==null?void 0:Xe.onCopyVideoLink(Qe,u());Ct&&Ra(Ct)}},et=m(()=>T.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Vt=m(()=>r(Le)?{id:"copy-link",weight:yr["copy-link"],label:U("menu_copy_video_link"),onClick:()=>vt()}:void 0),rt=m(()=>r(j)?{id:"copy-link-timestamp",weight:yr["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>vt(!0)}:void 0),gt=m(()=>r(N)?{id:"copy-embed-code",weight:yr["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:nt}:void 0),Ot=m(()=>r(Ne)?{id:"pip",weight:yr.pip,label:U("menu_pip"),onClick:$e}:void 0),Ut=m(()=>({id:"video-loop",weight:yr["video-loop"],label:l()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Pe})),Be=m(()=>r(ne)?{id:"rotate",weight:yr.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:de}:void 0),re=m(()=>r(ke)?{id:"report",weight:yr.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),W=m(()=>({id:"save-debug",weight:yr["save-debug"],label:r(et),onClick:We})),se=m(()=>r(Re)?{id:"save-trace",weight:yr["save-trace"],label:U("menu_save_debug"),onClick:lt}:void 0),ge=m(()=>({id:"debug-info",weight:yr["debug-info"],label:U("menu_debug_overlay"),ariaLabel:f()?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Se=m(()=>[r(Vt),r(rt),r(gt),r(Ot),r(Ut),r(Be),r(re),r(W),r(se),r(ge),..._()].filter(Qe=>!!Qe).sort(Ys));var De=ze(),pt=ve(De);{var Ht=Qe=>{var dt=M_();dt.__contextmenu=[P_],dt.__keydown=[A_,ue],bi(dt,21,()=>r(Se),Xe=>Xe.id,(Xe,Ct)=>{Pp(Xe,{get id(){return r(Ct).id},get label(){return r(Ct).label},get ariaLabel(){return r(Ct).ariaLabel},get onClick(){return r(Ct).onClick},closeContextMenu:ue})}),g(dt),ut(dt,Xe=>S(Xe),()=>S()),k(()=>{var Xe,Ct;return ot(dt,`top: ${(Xe=r(A))!=null?Xe:""}px; left: ${(Ct=r(I))!=null?Ct:""}px;`)}),b(Qe,dt)};R(pt,Qe=>{p()&&Qe(Ht)})}b(t,De),K(),o()}at(["contextmenu","keydown"]);var Ec=class{constructor(e){this.value=e,this.next=null}};var Oa=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Ec(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_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),R_={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 Dl(t,e){q(e,!0),Q(t,R_);let i=v(e,"values",19,()=>[]),o=ee(void 0),n=ee(null),a=16,s=120,d=60,l=s/d;Bt(()=>{r(o).width=s,r(o).height=a,O(n,pe(r(o).getContext("2d")))});function u(p,$,w,y,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect($,w,y,S)}Ye(()=>{let p="";if(r(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*l,I=$>0?a*(i()[y]/$):0;u(r(n),S,0,l,I),p=I+" "+p,w--}}});var f=V_(),_=h(f);ut(_,p=>O(o,p),()=>r(o)),g(f),b(t,f),K()}import{safeStorage as yh}from"@vkontakte/videoplayer-shared/es2018";var B_=(t,e)=>{t.stopPropagation(),yh.remove(Tl),e.set(!1)},N_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),D_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),O_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),H_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),F_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),U_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),q_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),K_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),W_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Q_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),G_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Y_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),j_=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Z_={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 Ol(t,e){q(e,!0),Q(t,Z_);let[i,o]=Ue(),n=()=>C(d,"$isMobile",i),a=Te(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ee(pe(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=ee(0),_=ee(0),p=ee(0),$=new Oa(60),w=new Oa(60),y=new Oa(60),S=ee(pe([])),I=ee(pe([])),A=ee(pe([])),P=H("aria_label_debug_panel");Bt(()=>{yh.set(Tl,"true"),a.actions.internal.startLogging(),u&&(O(_,pe(u.getVideoPlaybackQuality().droppedVideoFrames)),O(f,pe(u.getVideoPlaybackQuality().totalVideoFrames)));let W=window.setInterval(()=>{O(l,pe(a.actions.internal.getDebugPanelData()))},500),se;return u&&(se=window.setInterval(()=>{if(u){O(_,pe(u.getVideoPlaybackQuality().droppedVideoFrames));let ge=u.getVideoPlaybackQuality().totalVideoFrames;O(p,ge-r(f)),O(f,pe(ge)),$.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,pe($.getValuesFromBottom())),O(I,pe(w.getValuesFromBottom())),O(A,pe(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(W),se&&clearInterval(se)}});var E=j_();let T;Oe(E,"aria-label",P);var V=h(E);V.__click=[B_,s];var z=M(V,2),Y=h(z),U=M(h(Y),2),Z=h(U,!0);g(U),g(Y);var X=M(Y,2);{var oe=W=>{var se=N_(),ge=M(h(se),2),Se=h(ge,!0);g(ge),g(se),k(()=>fe(Se,r(l).id)),b(W,se)};R(X,W=>{r(l).id&&W(oe)})}var ce=M(X,2);{var le=W=>{var se=D_(),ge=M(h(se),2),Se=h(ge,!0);g(ge),g(se),k(()=>fe(Se,r(l).vsid)),b(W,se)};R(ce,W=>{r(l).vsid&&W(le)})}var Ve=M(ce,2);{var Me=W=>{var se=O_(),ge=M(h(se),2),Se=h(ge,!0);g(ge),g(se),k(()=>fe(Se,r(l).provider)),b(W,se)};R(Ve,W=>{r(l).provider&&W(Me)})}var J=M(Ve,2);{var Le=W=>{var se=H_(),ge=M(h(se),2),Se=h(ge);g(ge),g(se),k(()=>{var De,pt;return fe(Se,`Video: ${r(l).videoCodec||""} ${(De=r(l).hdr?"(HDR)":"")!=null?De:""}
139
142
  &
140
- Audio: ${s(a).audioCodec||""} ${(_t=s(a).audioLanguage?`(${s(a).audioLanguage})`:"")!=null?_t:""}`)}),w(Pe,ye)};W(pe,Pe=>{(s(a).videoCodec||s(a).audioCodec)&&Pe(he)})}var j=O(pe,2);{var ae=Pe=>{var ye=H1(),Ye=O(x(ye),2),pt=x(Ye,!0);b(Ye),b(ye),R(()=>ke(pt,s(a).viewport)),w(Pe,ye)};W(j,Pe=>{s(a).viewport&&Pe(ae)})}var q=O(j,2);{var Ge=Pe=>{var ye=F1(),Ye=O(x(ye),2),pt=x(Ye,!0);b(Ye),b(ye),R(()=>ke(pt,s(a).videoSize)),w(Pe,ye)};W(q,Pe=>{s(a).videoSize&&Pe(Ge)})}var Re=O(q,2);{var X=Pe=>{var ye=U1(),Ye=O(x(ye),2),pt=x(Ye,!0);b(Ye),b(ye),R(()=>ke(pt,s(a).cdn)),w(Pe,ye)};W(Re,Pe=>{s(a).cdn&&Pe(X)})}var ce=O(Re,2);{var Be=Pe=>{var ye=z1(),Ye=O(x(ye),2),pt=x(Ye);b(Ye),b(ye),R(()=>{var Ve;return ke(pt,`${(Ve=s(a).volume)!=null?Ve:""} %`)}),w(Pe,ye)};W(ce,Pe=>{s(a).volume&&Pe(Be)})}var Z=O(ce,2);{var De=Pe=>{var ye=W1(),Ye=O(x(ye),2),pt=x(Ye);b(Ye),b(ye),R(Ve=>ke(pt,`${Ve!=null?Ve:""} s`),[()=>s(a).buffer.toFixed(2)]),w(Pe,ye)};W(Z,Pe=>{s(a).buffer&&Pe(De)})}var le=O(Z,2);{var Ke=Pe=>{var ye=q1(),Ye=O(x(ye),2),pt=x(Ye);b(Ye),b(ye),R(Ve=>ke(pt,`${Ve!=null?Ve:""} s`),[()=>s(a).liveLatency.toFixed(2)]),w(Pe,ye)};W(le,Pe=>{s(a).liveLatency&&Pe(Ke)})}var lt=O(le,2);{var at=Pe=>{var ye=K1(),Ye=O(x(ye),2),pt=x(Ye,!0);b(Ye),b(ye),R(Ve=>ke(pt,Ve),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ve})=>Ve).map(({value:Ve,title:_t})=>`${_t} ${((Ve!=null?Ve:0)/1e3).toFixed(2)} s`).join(" & ")]),w(Pe,ye)};W(lt,Pe=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&Pe(at)})}var we=O(lt,2),$e=O(x(we),2),Je=x($e);b($e),b(we);var vt=O(we,2);{var ve=Pe=>{var ye=Q1(),Ye=O(x(ye),2);dl(Ye,{get values(){return s(L)}});var pt=O(Ye,2),Ve=x(pt);b(pt),b(ye),R(_t=>ke(Ve,`${_t!=null?_t:""} Kbps`),[()=>s(a).speed.toFixed(2)]),w(Pe,ye)};W(vt,Pe=>{s(a).speed&&Pe(ve)})}var je=O(vt,2);{var Ct=Pe=>{var ye=G1(),Ye=O(x(ye),2);dl(Ye,{get values(){return s(B)}});var pt=O(Ye,2),Ve=x(pt);b(pt),b(ye),R(_t=>ke(Ve,`${_t!=null?_t:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),w(Pe,ye)};W(je,Pe=>{s(a).bitrate&&Pe(Ct)})}var ie=O(je,2),et=O(x(ie),2);dl(et,{get values(){return s(S)}});var ht=O(et,2),ft=x(ht,!0);b(ht),b(ie),b(U),b(N),R(()=>{var Pe,ye;re(N,"container-mobile",n()),ke(G,s(a).version),ke(Je,`${(Pe=s(g))!=null?Pe:""} / ${(ye=s(f))!=null?ye:""} frames`),ke(ft,s(m))}),w(t,N);var be=P({$set:M,$on:(Pe,ye)=>A(e,Pe,ye)});return o(),be}bt(["click"]);import{noop as $h}from"@vkontakte/videoplayer-shared/es2018";var Z1=(t,e)=>{t.stopPropagation(),e()()},X1=F('<div class="close svelte-1ome55p"></div>'),J1={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 Hs(t,e){if(new.target)return k({component:Hs,...t});E(e,!0),ne(t,J1);let i=p(e,"onClick",7,$h);var o=X1();return o.__click=[Z1,i],w(t,o),P({get onClick(){return i()},set onClick(n=$h){i(n),u()},$set:M,$on:(n,r)=>A(e,n,r)})}bt(["click"]);import{noop as bh}from"@vkontakte/videoplayer-shared/es2018";var e0=F('<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>'),t0={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 ul(t,e){if(new.target)return k({component:ul,...t});E(e,!0),ne(t,t0);let i=p(e,"isRunning",7,!0),o=p(e,"onTimerEnded",7,bh),n=5e3,r=ue(void 0),l,d,a=ue(0),c;rt(()=>{i()&&(d=Date.now(),Y(a,Ae(requestAnimationFrame(f))))});let f=()=>{i()&&(c=(Date.now()-d)/n,c<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),l==null||l.stroke(),Y(a,Ae(requestAnimationFrame(f)))):o()())};Kt(()=>{if(l=s(r).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{cancelAnimationFrame(s(a))}});var g=e0(),m=x(g);return xt(m,h=>Y(r,h),()=>s(r)),Me(2),b(g),w(t,g),P({get isRunning(){return i()},set isRunning(h=!0){i(h),u()},get onTimerEnded(){return o()},set onTimerEnded(h=bh){o(h),u()},$set:M,$on:(h,_)=>A(e,h,_)})}var i0=(t,e,i)=>{e(!1),i()},o0=F('<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 class="thumb-overlay svelte-jfbaax"></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),n0={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 Yc(t,e){if(new.target)return k({component:Yc,...t});E(e,!0),ne(t,n0);let[i,o]=Xe(),n=()=>I(g,"$autoplayNextEnabled$",i),r=()=>I(m,"$timerNextVideoRunning$",i),l=p(e,"title",7),d=p(e,"thumb",7),a=p(e,"clickCloseIcon",7),c=p(e,"isHide",7),f=He(),g=f.ui.autoplayNextEnabled$,m=f.ui.timerNextVideoRunning$,h=f.actions.internal.nextVideoClick,_=f.actions.internal.nextVideoAnnouncementShow,y=f.actions.internal.nextVideoAnnouncementClick,S=f.actions.internal.nextVideoAnnouncementAuto,L=f.actions.internal.nextVideoAnnouncementCancel,B=()=>{h(!1),S()},V=()=>{a()(),L()};Kt(()=>{c()||_(),c()&&n()&&(h(!1),S())});var N=Ze(),T=Ie(N);{var U=H=>{var G=o0(),J=O(Ie(G),2),de=x(J),te=x(de),xe=x(te,!0);b(te);var Ce=O(te,2);Hs(Ce,{onClick:V}),b(de);var Q=O(de,2);Q.__click=[i0,h,y];var pe=x(Q),he=x(pe),j=x(he),ae=O(j,2);{var q=ce=>{ul(ce,{get isRunning(){return r()},onTimerEnded:B})};W(ae,ce=>{n()&&ce(q)})}b(he),b(pe);var Ge=O(pe,2),Re=x(Ge),X=x(Re,!0);b(Re),b(Ge),b(Q),b(J),R(ce=>{ke(xe,ce),fe(he,"style",`background-image: url('${d()}')`),re(j,"withOpacity",n()),ke(X,l())},[()=>ee("end_screen_next_video")]),w(H,G)};W(T,H=>{c()||H(U)})}w(t,N);var K=P({get title(){return l()},set title(H){l(H),u()},get thumb(){return d()},set thumb(H){d(H),u()},get clickCloseIcon(){return a()},set clickCloseIcon(H){a(H),u()},get isHide(){return c()},set isHide(H){c(H),u()},$set:M,$on:(H,G)=>A(e,H,G)});return o(),K}bt(["click"]);import{PlaybackState as ba}from"@vkontakte/videoplayer-core/es2018";import{checkNever as s0}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as cn}from"@vkontakte/videoplayer-statistics/es2018";var vm=(t,e)=>Math.min(+(t+e).toFixed(2),1),gm=(t,e)=>Math.max(+(t-e).toFixed(2),0),jc=(t,e,i)=>{let o=vm(e,i);e<1&&t.actions.internal.setVolume(o)},Zc=(t,e,i)=>{let o=gm(e,i);e>0&&t.actions.internal.setVolume(o)};var Fs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var a0=F('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),l0={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Xc(t,e){var Ve,_t;if(new.target)return k({component:Xc,...t});E(e,!0),ne(t,l0);let[i,o]=Xe(),n=()=>I(Q,"$playbackState$",i),r=()=>I(pe,"$adPlaybackState",i),l=()=>I(q,"$disabledControls$",i),d=()=>I(he,"$positionExact$",i),a=()=>I(j,"$duration$",i),c=()=>I($e,"$isAudioAvailable$",i),f=()=>I(ae,"$volume$",i),g=()=>I(ce,"$availablePlaybackRates$",i),m=()=>I(X,"$currentPlaybackRate$",i),h=()=>I(vt,"$isInteractiveTime$",i),_=()=>I(ve,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>I(Ke,"$isEnded$",i),S=()=>I(Ge,"$muted$",i),L=()=>I(Re,"$currentSubtitle$",i),B=()=>I(lt,"$overlayContainer$",i),V=p(e,"isAds",7),N=p(e,"hideContextMenu",7),T=p(e,"toggleFullscreen",7),U=p(e,"showHotKeyHelpers",7),K=p(e,"showKeyMap",7),H=p(e,"fakePlayButtonHandler",7),G=p(e,"children",7),J=p(e,"nextButtonActive",7,!1),de=p(e,"prevButtonActive",7,!1),te=He(),xe=Xt(),Ce=te.getLogger().createComponentLog("KeyboardControls component"),Q=te.state.playbackState$,pe=te.ads.playbackState,he=te.state.positionExact$,j=te.state.duration$,ae=te.state.volume$,q=te.ui.controls.disabledControls$,Ge=te.state.muted$,Re=te.state.currentSubtitle$,X=te.state.currentPlaybackRate$,ce=te.state.availablePlaybackRates$,Be=te.ui.contextMenu.openedByHotKey$,Z=te.ui.contextMenu.lastActiveElem$,De=te.ui.contextMenu.visible$,le=te.ui.contextMenu.position$,Ke=te.state.isEnded$,lt=te.ui.overlayContainer$,at=(Ve=te.callbacks)==null?void 0:Ve.onAudioDoesNotExistHint,we=(_t=te.callbacks)==null?void 0:_t.onAudioDisabledHint,$e=te.state.isAudioAvailable$,Je=te.state.isAudioDisabled,vt=te.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ve}=Co(),je=0,Ct=!0,ie=ue(void 0),et=()=>{var me;return(me=s(ie))==null?void 0:me.focus()},ht=me=>(me!==Ct&&(Ct=me,je=0),je+=1,(xe.controls.seekStepKeyboard+xe.controls.seekStepKeyboard*je)/1e3),ft=me=>{var ri,vi;let Bt=me.target,Ut=(ri=Bt==null?void 0:Bt.getAttribute("role"))==null?void 0:ri.includes("menuitem"),jt=Bt.classList.contains("btn"),We=me.code;if(jt&&We==="Space")return;let ct=yg.has(We);if(Ut&&ct)return;let gt=!bg.has(We);if(me.ctrlKey&&gt||me.altKey&&gt||me.metaKey)return;let kt=Ut&&We==="Escape";xg.has(We)||kt||N()();let qe=n()===ba.PLAYING||n()===ba.PAUSED,zt=V()&&(r()==="paused"||r()==="playing"),oi=!zt&&!l().has("TIMELINE");if(qe||zt)switch(Ce({message:`key down, code: ${We}`}),We){case"KeyJ":case"ArrowLeft":{if(!oi)break;if(me.ctrlKey||me.altKey){let mt=te.actions.internal.getPrevEpisode();te.actions.internal.seekToPrevEpisode(mt),mt&&U()({type:"EPISODE_PREV",text:mt.text}),me.preventDefault()}else{let mt=me.shiftKey?ht(!1):xe.controls.seekStepKeyboard/1e3,dt=Math.max(d()-mt,0);d()>0&&(te.actions.internal.seekTime(dt,cn.DOUBLE_TAP),U()({type:"BACKWARD_SEEK",text:mt.toString()}),me.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!oi)break;if(me.ctrlKey||me.altKey){let mt=te.actions.internal.getNextEpisode();te.actions.internal.seekToNextEpisode(mt),mt&&U()({type:"EPISODE_NEXT",text:mt.text}),me.preventDefault()}else{let mt=me.shiftKey?ht(!0):xe.controls.seekStepKeyboard/1e3,dt=Math.min(d()+mt,a());Math.round(d())<Math.round(a())&&(te.actions.internal.seekTime(dt,cn.DOUBLE_TAP),U()({type:"FORWARD_SEEK",text:mt.toString()}),me.preventDefault())}break}case"ArrowUp":{if(Fs({isAudioDisabled:Je,audioDisabledHintCallback:we,isAudioAvailable:c(),audioIsNotExistHintCallback:at})){let mt=f(),dt=xe.controls.volumeStepKeyboard,$t=mt<=1;if(jc(te,mt,dt),$t){let D=Math.round(vm(mt,dt)*100).toString();U()({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:D}})}}me.preventDefault();break}case"ArrowDown":{if(Fs({isAudioDisabled:Je,audioDisabledHintCallback:we,isAudioAvailable:c(),audioIsNotExistHintCallback:at})){let mt=f(),dt=xe.controls.volumeStepKeyboard,$t=mt>=0;if(Zc(te,mt,dt),$t){let D=Math.round(gm(mt,dt)*100).toString();U()({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:D}})}}me.preventDefault();break}case"Comma":{if(me.shiftKey){te.actions.internal.decrementPlaybackRate();let mt=g().find(dt=>dt.value===m());U()({type:"RATE_DOWN",text:mt==null?void 0:mt.displayValue}),me.preventDefault()}else{if(zt||n()!==ba.PAUSED)break;let mt=Math.max(d()-xe.controls.seekStepFrame/1e3,0);d()>0&&(U()({type:"BACKWARD_SEEK"}),te.actions.internal.clearDelayedBufferingCheckTimeout(),te.actions.internal.seekTime(mt,cn.DOUBLE_TAP),me.preventDefault())}break}case"Period":{if(me.shiftKey){te.actions.internal.incrementPlaybackRate();let mt=g().find(dt=>dt.value===m());U()({type:"RATE_UP",text:mt==null?void 0:mt.displayValue}),me.preventDefault()}else{if(zt||n()!==ba.PAUSED)break;let mt=Math.min(d()+xe.controls.seekStepFrame/1e3,a());d()<a()&&(U()({type:"FORWARD_SEEK"}),te.actions.internal.clearDelayedBufferingCheckTimeout(),te.actions.internal.seekTime(mt,cn.DOUBLE_TAP),me.preventDefault())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(h()&&_()&&ve.set(!1),H())H()();else{te.actions.internal.togglePlay();let mt="PLAY";n()===ba.PAUSED?mt="PAUSE":y()&&(mt="REPLAY"),U()({type:mt})}me.preventDefault();break;case"KeyM":{Fs({isAudioDisabled:Je,audioDisabledHintCallback:we,isAudioAvailable:c(),audioIsNotExistHintCallback:at})&&(U()({type:S()?"VOLUME":"MUTE"}),te.actions.internal.toggleMuted()),me.preventDefault();break}case"KeyF":T()(),me.preventDefault();break;case"KeyC":te.actions.internal.toggleSubtitle(),L().value!=="off"?U()({type:"SUBTITLES_ON",text:(vi=L())==null?void 0:vi.displayValue}):U()({type:"SUBTITLES_OFF"}),me.preventDefault();break;case"KeyI":te.actions.internal.togglePictureInPicture(),me.preventDefault();break;case"Digit1":case"Numpad1":if(me.shiftKey){let mt=hh(B());le.set(mt),Z.set(Bt),Be.set(!0),De.set(!0),me.preventDefault();break}U()(),te.actions.internal.seekToPercent(.1,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit2":case"Numpad2":U()(),te.actions.internal.seekToPercent(.2,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit3":case"Numpad3":U()(),te.actions.internal.seekToPercent(.3,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit4":case"Numpad4":U()(),te.actions.internal.seekToPercent(.4,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit5":case"Numpad5":U()(),te.actions.internal.seekToPercent(.5,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit6":case"Numpad6":U()(),te.actions.internal.seekToPercent(.6,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit7":case"Numpad7":U()(),te.actions.internal.seekToPercent(.7,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit8":case"Numpad8":U()(),te.actions.internal.seekToPercent(.8,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit9":case"Numpad9":U()(),te.actions.internal.seekToPercent(.9,cn.DOUBLE_TAP),me.preventDefault();break;case"Digit0":case"Numpad0":U()(),te.actions.internal.seekToPercent(0,cn.DOUBLE_TAP),me.preventDefault();break;case"Slash":{me.shiftKey&&xe.features.hotKeyMapModal&&(K()(),me.preventDefault());break}case"KeyN":me.shiftKey&&J()&&te.actions.internal.nextVideoClick();break;case"KeyP":me.shiftKey&&de()&&te.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":me.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:s0(We);break}},be=me=>{let Bt=me.code;if(me.ctrlKey||me.altKey||me.metaKey)return;let Ut=n()===ba.PLAYING||n()===ba.PAUSED,jt=V()&&(r()==="paused"||r()==="playing");if(Ut||jt)switch(Bt){case"ShiftLeft":case"ShiftRight":je=0;break}},Pe=ee("aria_label_video_player");var ye=a0();ye.__keyup=be,ye.__keydown=ft,fe(ye,"aria-label",Pe);var Ye=x(ye);vo(Ye,()=>{var me;return(me=G())!=null?me:Wt}),b(ye),xt(ye,me=>Y(ie,me),()=>s(ie)),w(t,ye);var pt=P({focus:et,get isAds(){return V()},set isAds(me){V(me),u()},get hideContextMenu(){return N()},set hideContextMenu(me){N(me),u()},get toggleFullscreen(){return T()},set toggleFullscreen(me){T(me),u()},get showHotKeyHelpers(){return U()},set showHotKeyHelpers(me){U(me),u()},get showKeyMap(){return K()},set showKeyMap(me){K(me),u()},get fakePlayButtonHandler(){return H()},set fakePlayButtonHandler(me){H(me),u()},get children(){return G()},set children(me){G(me),u()},get nextButtonActive(){return J()},set nextButtonActive(me=!1){J(me),u()},get prevButtonActive(){return de()},set prevButtonActive(me=!1){de(me),u()},$set:M,$on:(me,Bt)=>A(e,me,Bt)});return o(),pt}bt(["keyup","keydown"]);var d0=F('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),c0={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);}
143
+ Audio: ${r(l).audioCodec||""} ${(pt=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?pt:""}`)}),b(W,se)};R(J,W=>{(r(l).videoCodec||r(l).audioCodec)&&W(Le)})}var j=M(J,2);{var N=W=>{var se=F_(),ge=M(h(se),2),Se=h(ge,!0);g(ge),g(se),k(()=>fe(Se,r(l).viewport)),b(W,se)};R(j,W=>{r(l).viewport&&W(N)})}var Ne=M(j,2);{var ne=W=>{var se=U_(),ge=M(h(se),2),Se=h(ge,!0);g(ge),g(se),k(()=>fe(Se,r(l).videoSize)),b(W,se)};R(Ne,W=>{r(l).videoSize&&W(ne)})}var ke=M(Ne,2);{var Re=W=>{var se=z_(),ge=M(h(se),2),Se=h(ge,!0);g(ge),g(se),k(()=>fe(Se,r(l).cdn)),b(W,se)};R(ke,W=>{r(l).cdn&&W(Re)})}var ue=M(ke,2);{var D=W=>{var se=q_(),ge=M(h(se),2),Se=h(ge);g(ge),g(se),k(()=>{var De;return fe(Se,`${(De=r(l).volume)!=null?De:""} %`)}),b(W,se)};R(ue,W=>{r(l).volume&&W(D)})}var de=M(ue,2);{var Ee=W=>{var se=K_(),ge=M(h(se),2),Se=h(ge);g(ge),g(se),k(De=>fe(Se,`${De!=null?De:""} s`),[()=>r(l).buffer.toFixed(2)]),b(W,se)};R(de,W=>{r(l).buffer&&W(Ee)})}var We=M(de,2);{var lt=W=>{var se=W_(),ge=M(h(se),2),Se=h(ge);g(ge),g(se),k(De=>fe(Se,`${De!=null?De:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(W,se)};R(We,W=>{r(l).liveLatency&&W(lt)})}var Ae=M(We,2);{var $e=W=>{var se=Q_(),ge=M(h(se),2),Se=h(ge,!0);g(ge),g(se),k(De=>fe(Se,De),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:De})=>De).map(({value:De,title:pt})=>`${pt} ${((De!=null?De:0)/1e3).toFixed(2)} s`).join(" & ")]),b(W,se)};R(Ae,W=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&W($e)})}var Pe=M(Ae,2),nt=M(h(Pe),2),vt=h(nt);g(nt),g(Pe);var et=M(Pe,2);{var Vt=W=>{var se=G_(),ge=M(h(se),2);Dl(ge,{get values(){return r(I)}});var Se=M(ge,2),De=h(Se);g(Se),g(se),k(pt=>fe(De,`${pt!=null?pt:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(W,se)};R(et,W=>{r(l).speed&&W(Vt)})}var rt=M(et,2);{var gt=W=>{var se=Y_(),ge=M(h(se),2);Dl(ge,{get values(){return r(A)}});var Se=M(ge,2),De=h(Se);g(Se),g(se),k(pt=>fe(De,`${pt!=null?pt:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(W,se)};R(rt,W=>{r(l).bitrate&&W(gt)})}var Ot=M(rt,2),Ut=M(h(Ot),2);Dl(Ut,{get values(){return r(S)}});var Be=M(Ut,2),re=h(Be,!0);g(Be),g(Ot),g(z),g(E),k(W=>{var se,ge;T=te(E,1,"container svelte-4deykz",null,T,W),fe(Z,r(l).version),fe(vt,`${(se=r(_))!=null?se:""} / ${(ge=r(f))!=null?ge:""} frames`),fe(re,r(p))},[()=>({"container-mobile":n()})]),b(t,E),K(),o()}at(["click"]);import{noop as X_}from"@vkontakte/videoplayer-shared/es2018";var J_=(t,e)=>{t.stopPropagation(),e()()},eb=L('<div class="close svelte-1ome55p"></div>'),tb={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function js(t,e){q(e,!0),Q(t,tb);let i=v(e,"onClick",3,X_);var o=eb();o.__click=[J_,i],b(t,o),K()}at(["click"]);import{noop as ib}from"@vkontakte/videoplayer-shared/es2018";var ob=L('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),nb={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 Hl(t,e){q(e,!0),Q(t,nb);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,ib),n=5e3,a=ee(void 0),s,d,l=ee(0),u;Ye(()=>{i()&&(d=Date.now(),O(l,pe(requestAnimationFrame(f))))});let f=()=>{i()&&(u=(Date.now()-d)/n,u<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),s==null||s.stroke(),O(l,pe(requestAnimationFrame(f)))):o()())};Bt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{cancelAnimationFrame(r(l))}});var _=ob(),p=h(_);ut(p,$=>O(a,$),()=>r(a)),_e(2),g(_),b(t,_),K()}var rb=(t,e,i)=>{e(!1),i()},sb=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),ab={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 Lp(t,e){q(e,!0),Q(t,ab);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),$()};Bt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=ze(),I=ve(S);{var A=P=>{var E=sb(),T=M(ve(E),2),V=h(T),z=h(V),Y=h(z,!0);g(z);var U=M(z,2);js(U,{onClick:y}),g(V);var Z=M(V,2);Z.__click=[rb,u,_];var X=h(Z),oe=h(X),ce=h(oe);let le;var Ve=M(ce,2);{var Me=N=>{Hl(N,{get isRunning(){return a()},onTimerEnded:w})};R(Ve,N=>{n()&&N(Me)})}g(oe),g(X);var J=M(X,2),Le=h(J),j=h(Le,!0);g(Le),g(J),g(Z),g(T),k((N,Ne)=>{fe(Y,N),ot(oe,`background-image: url('${e.thumb}')`),le=te(ce,1,"thumb-overlay svelte-jfbaax",null,le,Ne),fe(j,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,E)};R(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}at(["click"]);import{PlaybackState as Zs}from"@vkontakte/videoplayer-core/es2018";import{checkNever as db}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as pn}from"@vkontakte/videoplayer-statistics/es2018";var Vp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Rp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Ac=(t,e,i)=>{let o=Vp(e,i);e<1&&t.actions.internal.setVolume(o)},Pc=(t,e,i)=>{let o=Rp(e,i);e>0&&t.actions.internal.setVolume(o)};var ys=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var cb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),ub={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Bp(t,e){var Ut,Be;q(e,!0),Q(t,ub);let[i,o]=Ue(),n=()=>C(Y,"$playbackState$",i),a=()=>C(U,"$adPlaybackState",i),s=()=>C(ce,"$disabledControls$",i),d=()=>C(Z,"$positionExact$",i),l=()=>C(X,"$duration$",i),u=()=>C(D,"$isAudioAvailable$",i),f=()=>C(oe,"$volume$",i),_=()=>C(J,"$availablePlaybackRates$",i),p=()=>C(Me,"$currentPlaybackRate$",i),$=()=>C(Ee,"$isInteractiveTime$",i),w=()=>C(We,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(ne,"$isEnded$",i),S=()=>C(le,"$muted$",i),I=()=>C(Ve,"$currentSubtitle$",i),A=()=>C(ke,"$overlayContainer$",i),P=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=Te(),V=zt(),z=T.getLogger().createComponentLog("KeyboardControls component"),Y=T.state.playbackState$,U=T.ads.playbackState,Z=T.state.positionExact$,X=T.state.duration$,oe=T.state.volume$,ce=T.ui.controls.disabledControls$,le=T.state.muted$,Ve=T.state.currentSubtitle$,Me=T.state.currentPlaybackRate$,J=T.state.availablePlaybackRates$,Le=T.ui.contextMenu.openedByHotKey$,j=T.ui.contextMenu.lastActiveElem$,N=T.ui.contextMenu.visible$,Ne=T.ui.contextMenu.position$,ne=T.state.isEnded$,ke=T.ui.overlayContainer$,Re=(Ut=T.callbacks)==null?void 0:Ut.onAudioDoesNotExistHint,ue=(Be=T.callbacks)==null?void 0:Be.onAudioDisabledHint,D=T.state.isAudioAvailable$,de=T.state.isAudioDisabled,Ee=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:We}=oo(),lt=0,Ae=!0,$e=ee(void 0),Pe=()=>{var re;return(re=r($e))==null?void 0:re.focus()},nt=re=>(re!==Ae&&(Ae=re,lt=0),lt+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*lt)/1e3),vt=re=>{var Ct,Zt;let W=re.target,se=(Ct=W==null?void 0:W.getAttribute("role"))==null?void 0:Ct.includes("menuitem"),ge=W.classList.contains("btn"),Se=re.code;if(ge&&Se==="Space")return;let De=Sg.has(Se);if(se&&De)return;let pt=!wg.has(Se);if(re.ctrlKey&&pt||re.altKey&&pt||re.metaKey)return;let Ht=se&&Se==="Escape";Cg.has(Se)||Ht||e.hideContextMenu();let Qe=n()===Zs.PLAYING||n()===Zs.PAUSED,dt=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!dt&&!s().has("TIMELINE");if(Qe||dt)switch(z({message:`key down, code: ${Se}`}),Se){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(re.ctrlKey||re.altKey){let qe=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(qe),qe&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:qe.text}),re.preventDefault()}else{let qe=re.shiftKey?nt(!1):V.controls.seekStepKeyboard/1e3,ct=Math.max(d()-qe,0);d()>0&&(T.actions.internal.seekTime(ct,pn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:qe.toString()}),re.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(re.ctrlKey||re.altKey){let qe=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(qe),qe&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:qe.text}),re.preventDefault()}else{let qe=re.shiftKey?nt(!0):V.controls.seekStepKeyboard/1e3,ct=Math.min(d()+qe,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(ct,pn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:qe.toString()}),re.preventDefault())}break}case"ArrowUp":{if(ys({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:Re})){let qe=f(),ct=V.controls.volumeStepKeyboard,ei=qe<=1;if(Ac(T,qe,ct),ei){let Mi=Math.round(Vp(qe,ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Mi}})}}re.preventDefault();break}case"ArrowDown":{if(ys({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:Re})){let qe=f(),ct=V.controls.volumeStepKeyboard,ei=qe>=0;if(Pc(T,qe,ct),ei){let Mi=Math.round(Rp(qe,ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Mi}})}}re.preventDefault();break}case"Comma":{if(re.shiftKey){T.actions.internal.decrementPlaybackRate();let qe=_().find(ct=>ct.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:qe==null?void 0:qe.displayValue}),re.preventDefault()}else{if(dt||n()!==Zs.PAUSED)break;let qe=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(qe,pn.DOUBLE_TAP),re.preventDefault())}break}case"Period":{if(re.shiftKey){T.actions.internal.incrementPlaybackRate();let qe=_().find(ct=>ct.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:qe==null?void 0:qe.displayValue}),re.preventDefault()}else{if(dt||n()!==Zs.PAUSED)break;let qe=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(qe,pn.DOUBLE_TAP),re.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&We.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let qe="PLAY";n()===Zs.PAUSED?qe="PAUSE":y()&&(qe="REPLAY"),e.showHotKeyHelpers({type:qe})}re.preventDefault();break;case"KeyM":{ys({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:Re})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),re.preventDefault();break}case"KeyF":e.toggleFullscreen(),re.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Zt=I())==null?void 0:Zt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),re.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),re.preventDefault();break;case"Digit1":case"Numpad1":if(re.shiftKey){let qe=bh(A());Ne.set(qe),j.set(W),Le.set(!0),N.set(!0),re.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,pn.DOUBLE_TAP),re.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,pn.DOUBLE_TAP),re.preventDefault();break;case"Slash":{re.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),re.preventDefault());break}case"KeyN":re.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":re.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":re.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:db(Se);break}},et=re=>{let W=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;let se=n()===Zs.PLAYING||n()===Zs.PAUSED,ge=e.isAds&&(a()==="paused"||a()==="playing");if(se||ge)switch(W){case"ShiftLeft":case"ShiftRight":lt=0;break}},Vt=H("aria_label_video_player");var rt=cb();rt.__keyup=et,rt.__keydown=vt,Oe(rt,"aria-label",Vt);var gt=h(rt);me(gt,()=>{var re;return(re=e.children)!=null?re:ie}),g(rt),ut(rt,re=>O($e,re),()=>r($e)),b(t,rt);var Ot=K({focus:Pe});return o(),Ot}at(["keyup","keydown"]);var pb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),fb={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
144
 
142
145
  @keyframes svelte-1dbnjb1-dot_animation {
143
146
  0% {
@@ -150,7 +153,7 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
150
153
  opacity: 0.2;
151
154
  }
152
155
  }.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 Us(t,e){if(new.target)return k({component:Us,...t});E(e,!0),ne(t,c0);let i=p(e,"style",7,"");var o=d0();return R(()=>fe(o,"style",i())),w(t,o),P({get style(){return i()},set style(n=""){i(n),u()},$set:M,$on:(n,r)=>A(e,n,r)})}var u0=Le('<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 Jc(t,e){if(new.target)return k({component:Jc,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=u0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}import{noop as $s}from"@vkontakte/videoplayer-shared/es2018";var p0=t=>{t.stopPropagation()},f0=F("<button><!></button>"),m0={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;}
156
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Xs(t,e){Q(t,fb);let i=v(e,"style",3,"");var o=pb();k(()=>ot(o,i())),b(t,o)}var mb=be('<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 Np(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=mb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),b(t,o)}import{noop as Ha}from"@vkontakte/videoplayer-shared/es2018";var vb=t=>{t.stopPropagation()},gb=L("<button><!></button>"),hb={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
157
 
155
158
  /* \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
159
 
@@ -158,22 +161,22 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
158
161
  /* mobile */
159
162
  /* 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
163
  .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 Ot(t,e){if(new.target)return k({component:Ot,...t});E(e,!0),ne(t,m0);let i=p(e,"className",7,""),o=p(e,"style",7,""),n=p(e,"disabled",7,void 0),r=p(e,"testId",7,void 0),l=p(e,"ariaHidden",7,void 0),d=p(e,"ariaLabel",7,void 0),a=p(e,"ref",15,void 0),c=p(e,"ariaKeyShortCut",7,void 0),f=p(e,"ariaExpanded",7,void 0),g=p(e,"tabIndex",7,0),m=p(e,"click",7,$s),h=p(e,"focus",7,$s),_=p(e,"blur",7,$s),y=p(e,"children",7),S=$(()=>m()===$s?null:T=>{T.stopPropagation(),m()(T)}),L=$(()=>h()===$s?null:T=>{T.preventDefault(),h()()}),B=$(()=>_()===$s?null:T=>{T.preventDefault(),_()()});var V=f0();V.__pointerdown=[p0],V.__click=function(...T){var U;(U=s(S))==null||U.apply(this,T)};var N=x(V);return vo(N,()=>{var T;return(T=y())!=null?T:Wt}),b(V),xt(V,T=>a(T),()=>a()),R(()=>{var T,U,K,H,G,J,de;jo(V,`btn ${(T=i())!=null?T:""} svelte-wr0kwr`),fe(V,"style",o()||null),V.disabled=(U=n())!=null?U:null,fe(V,"aria-hidden",(K=l())!=null?K:null),fe(V,"aria-label",(H=d())!=null?H:null),fe(V,"aria-keyshortcuts",(G=c())!=null?G:null),fe(V,"aria-expanded",(J=f())!=null?J:null),fe(V,"data-testid",(de=r())!=null?de:null),fe(V,"tabindex",g())}),Ft("focus",V,function(...T){var U;(U=s(L))==null||U.apply(this,T)}),Ft("blur",V,function(...T){var U;(U=s(B))==null||U.apply(this,T)}),w(t,V),P({get className(){return i()},set className(T=""){i(T),u()},get style(){return o()},set style(T=""){o(T),u()},get disabled(){return n()},set disabled(T=void 0){n(T),u()},get testId(){return r()},set testId(T=void 0){r(T),u()},get ariaHidden(){return l()},set ariaHidden(T=void 0){l(T),u()},get ariaLabel(){return d()},set ariaLabel(T=void 0){d(T),u()},get ref(){return a()},set ref(T=void 0){a(T),u()},get ariaKeyShortCut(){return c()},set ariaKeyShortCut(T=void 0){c(T),u()},get ariaExpanded(){return f()},set ariaExpanded(T=void 0){f(T),u()},get tabIndex(){return g()},set tabIndex(T=0){g(T),u()},get click(){return m()},set click(T=$s){m(T),u()},get focus(){return h()},set focus(T=$s){h(T),u()},get blur(){return _()},set blur(T=$s){_(T),u()},get children(){return y()},set children(T){y(T),u()},$set:M,$on:(T,U)=>A(e,T,U)})}bt(["pointerdown","click"]);var v0=F('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),g0=F('<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>'),h0={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 eu(t,e){if(new.target)return k({component:eu,...t});E(e,!0),ne(t,h0);let i=p(e,"onClose",7),o=p(e,"showHeader",7,!0),n=p(e,"showCloseCross",7,!0),r=p(e,"title",7),l=p(e,"children",7),d=ee("hotkey_map_modal_close_btn_text");var a=g0(),c=x(a),f=x(c);{var g=y=>{var S=v0(),L=x(S),B=x(L,!0);b(L);var V=O(L,2);{var N=T=>{Ot(T,{get click(){return i()},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:d,children:(U,K)=>{Jc(U,{})},$$slots:{default:!0}})};W(V,T=>{n()&&T(N)})}b(S),R(()=>ke(B,r())),w(y,S)};W(f,y=>{o()&&y(g)})}var m=O(f,2),h=x(m),_=x(h);return vo(_,()=>{var y;return(y=l())!=null?y:Wt}),b(h),b(m),b(c),b(a),w(t,a),P({get onClose(){return i()},set onClose(y){i(y),u()},get showHeader(){return o()},set showHeader(y=!0){o(y),u()},get showCloseCross(){return n()},set showCloseCross(y=!0){n(y),u()},get title(){return r()},set title(y){r(y),u()},get children(){return l()},set children(y){l(y),u()},$set:M,$on:(y,S)=>A(e,y,S)})}var _0=new Set(["BR"]),yh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;_0.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var $0=F('<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>'),b0=F('<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>'),y0=F('<div class="hot-key-map svelte-quklnq"></div>'),x0={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,
164
+ /* \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){q(e,!0),Q(t,hb);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),a=v(e,"testId",3,void 0),s=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),l=v(e,"ref",15,void 0),u=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),p=v(e,"click",3,Ha),$=v(e,"focus",3,Ha),w=v(e,"blur",3,Ha),y=m(()=>p()===Ha?null:E=>{E.stopPropagation(),p()(E)}),S=m(()=>$()===Ha?null:E=>{E.preventDefault(),$()()}),I=m(()=>w()===Ha?null:E=>{E.preventDefault(),w()()});var A=gb();A.__pointerdown=[vb],A.__click=function(...E){var T;(T=r(y))==null||T.apply(this,E)};var P=h(A);me(P,()=>{var E;return(E=e.children)!=null?E:ie}),g(A),ut(A,E=>l(E),()=>l()),k(()=>{var E,T,V,z,Y,U,Z;te(A,1,`btn ${(E=i())!=null?E:""}`,"svelte-wr0kwr"),ot(A,o()||null),A.disabled=(T=n())!=null?T:null,Oe(A,"aria-hidden",(V=s())!=null?V:null),Oe(A,"aria-label",(z=d())!=null?z:null),Oe(A,"aria-keyshortcuts",(Y=u())!=null?Y:null),Oe(A,"aria-expanded",(U=f())!=null?U:null),Oe(A,"data-testid",(Z=a())!=null?Z:null),Oe(A,"tabindex",_())}),It("focus",A,function(...E){var T;(T=r(S))==null||T.apply(this,E)}),It("blur",A,function(...E){var T;(T=r(I))==null||T.apply(this,E)}),b(t,A),K()}at(["pointerdown","click"]);var _b=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),bb=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),$b={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 Dp(t,e){q(e,!0),Q(t,$b);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=H("hotkey_map_modal_close_btn_text");var a=bb(),s=h(a),d=h(s);{var l=p=>{var $=_b(),w=h($),y=h(w,!0);g(w);var S=M(w,2);{var I=A=>{kt(A,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,E)=>{Np(P,{})},$$slots:{default:!0}})};R(S,A=>{o()&&A(I)})}g($),k(()=>fe(y,e.title)),b(p,$)};R(d,p=>{i()&&p(l)})}var u=M(d,2),f=h(u),_=h(f);me(_,()=>{var p;return(p=e.children)!=null?p:ie}),g(f),g(u),g(s),g(a),b(t,a),K()}var yb=new Set(["BR"]),xh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;yb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var xb=L('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),wb=L('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),Sb=L('<div class="hot-key-map svelte-quklnq"></div>'),Cb={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
165
  .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 tu(t,e){if(new.target)return k({component:tu,...t});E(e,!1),ne(t,x0);let[i,o]=Xe(),n=()=>I(l,"$data",i),r=He(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Nr(),eu(t,{get title(){return n().title},onClose:a,children:(f,g)=>{var m=y0();Ci(m,5,()=>n().groups,Ji,(h,_)=>{let y=()=>s(_).title,S=()=>s(_).items;var L=b0(),B=x(L),V=x(B,!0);b(B);var N=O(B,2);Ci(N,5,S,Ji,(T,U)=>{let K=()=>s(U).description,H=()=>s(U).value;var G=$0(),J=x(G),de=x(J);ld(de,()=>yh(K()),!1,!1),b(J);var te=O(J,2),xe=x(te,!0);b(te),b(G),R(()=>ke(xe,H())),w(T,G)}),b(N),b(L),R(()=>ke(V,y())),w(h,L)}),b(m),w(f,m)},$$slots:{default:!0}});var c=P({$set:M,$on:(f,g)=>A(e,f,g)});return o(),c}import{noop as Ju}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Wh,PlaybackState as Cm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var w0=F('<div class="pillow svelte-1oe0j8n"><!></div>'),C0={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 iu(t,e){if(new.target)return k({component:iu,...t});E(e,!0),ne(t,C0);let i=p(e,"children",7);var o=w0(),n=x(o);return vo(n,()=>{var r;return(r=i())!=null?r:Wt}),b(o),w(t,o),P({get children(){return i()},set children(r){i(r),u()},$set:M,$on:(r,l)=>A(e,r,l)})}import{VideoQuality as yd}from"@vkontakte/videoplayer-shared/es2018";var S0=Le('<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 ou(t,e){if(new.target)return k({component:ou,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=S0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var T0=Le('<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 nu(t,e){if(new.target)return k({component:nu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=T0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var I0=Le('<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 ru(t,e){if(new.target)return k({component:ru,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=I0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var k0=Le('<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 pl(t,e){if(new.target)return k({component:pl,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=k0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var E0=Le('<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 fl(t,e){if(new.target)return k({component:fl,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=E0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var su=t=>{switch(t){case yd.Q_720P:return ru;case yd.Q_1080P:return pl;case yd.Q_1440P:return fl;case yd.Q_2160P:return ou;case yd.Q_4320P:return nu}};var P0=Le('<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 au(t,e){if(new.target)return k({component:au,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=P0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var A0=Le('<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 lu(t,e){if(new.target)return k({component:lu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=A0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var M0=F('<div class="icon svelte-8t5w85" aria-hidden="true"><!> <!></div>'),L0={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 ml(t,e){if(new.target)return k({component:ml,...t});E(e,!0),ne(t,L0);let i=p(e,"isMobile",7,!1),o=p(e,"currentQuality",7,void 0),n=$(()=>su(o())),r=$(()=>!!s(n)&&[pl,fl].includes(s(n)));var l=Ze(),d=Ie(l);{var a=f=>{au(f,{})},c=f=>{var g=M0(),m=x(g);{var h=S=>{iu(S,{children:(L,B)=>{var V=Ze(),N=Ie(V);Hi(N,()=>s(n),(T,U)=>{U(T,{})}),w(L,V)},$$slots:{default:!0}})};W(m,S=>{s(n)&&S(h)})}var _=O(m,2);let y=$(()=>s(n)?"settings-icon--labeled":"settings-icon");lu(_,{get"data-testid"(){return s(y)},fill:"var(--btn-color, #fff)"}),b(g),R(()=>re(g,"triple",s(r))),w(f,g)};W(d,f=>{i()?f(a):f(c,!1)})}return w(t,l),P({get isMobile(){return i()},set isMobile(f=!1){i(f),u()},get currentQuality(){return o()},set currentQuality(f=void 0){o(f),u()},$set:M,$on:(f,g)=>A(e,f,g)})}var V0=F('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),R0={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ya(t,e){if(new.target)return k({component:ya,...t});E(e,!0),ne(t,R0);let[i,o]=Xe(),n=()=>I(f,"$settingsMenuVisible",i),r=()=>I(h,"$isMobile",i),l=()=>I(c,"$currentQuality",i),d=p(e,"ref$",7),a=He(),c=a.state.currentQuality$,f=a.ui.settingsMenu.visible$,g=a.actions.internal.openSettingsMenu,m=a.actions.internal.closeSettingsMenu,h=a.ui.isMobile,_=a.ui.t,y=ue(void 0);rt(()=>{d()&&Tt(()=>{d().set(s(y))})});let S=$(()=>n()?_("tooltip_settings_on"):_("tooltip_settings_off"));async function L(N){let T=Os(N);n()?m():g(T,fo)}let B=$(()=>n()?"opened":"");Ot(t,{get className(){return s(B)},testId:"btn-settings",click:L,get ariaLabel(){return s(S)},get ariaExpanded(){return n()},get ref(){return s(y)},set ref(N){Y(y,Ae(N))},children:(N,T)=>{var U=V0(),K=x(U);ml(K,{get isMobile(){return r()},get currentQuality(){return l()}}),b(U),w(N,U)},$$slots:{default:!0}});var V=P({get ref$(){return d()},set ref$(N){d(N),u()},$set:M,$on:(N,T)=>A(e,N,T)});return o(),V}var N0=Le('<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 du(t,e){if(new.target)return k({component:du,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=N0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var B0=Le('<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 vl(t,e){if(new.target)return k({component:vl,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=B0();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function cu(t,e){if(new.target)return k({component:cu,...t});E(e,!0);let i=p(e,"isSubtitlesEnabled",7,!1),o=p(e,"click",7),r=He().ui.t,l=$(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));return Ot(t,{testId:"btn-Subtitles",get ariaLabel(){return s(l)},get click(){return o()},get ariaKeyShortCut(){return Jr.KeyC},children:(d,a)=>{var c=Ze(),f=Ie(c);{var g=h=>{du(h,{})},m=h=>{vl(h,{})};W(f,h=>{i()?h(g):h(m,!1)})}w(d,c)},$$slots:{default:!0}}),P({get isSubtitlesEnabled(){return i()},set isSubtitlesEnabled(d=!1){i(d),u()},get click(){return o()},set click(d){o(d),u()},$set:M,$on:(d,a)=>A(e,d,a)})}var D0=F('<span class="duration svelte-sz9er7"> </span>'),O0=F('<div class="time svelte-sz9er7"><span class="current svelte-sz9er7"> </span> <!></div>'),H0={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 gl(t,e){if(new.target)return k({component:gl,...t});E(e,!0),ne(t,H0);let i=p(e,"isMobile",7,!1),o=p(e,"duration",7),n=p(e,"position",7),r=p(e,"showDuration",7,!0),l=p(e,"ref",15),d=$(()=>dr(o())),a=$(()=>dr(n()));var c=O0(),f=x(c),g=x(f,!0);b(f);var m=O(f,2);{var h=_=>{var y=D0(),S=x(y,!0);b(y),R(()=>ke(S,s(d))),w(_,y)};W(m,_=>{r()&&_(h)})}return b(c),xt(c,_=>l(_),()=>l()),R(()=>{re(c,"mobile",i()),ke(g,s(a))}),w(t,c),P({get isMobile(){return i()},set isMobile(_=!1){i(_),u()},get duration(){return o()},set duration(_){o(_),u()},get position(){return n()},set position(_){n(_),u()},get showDuration(){return r()},set showDuration(_=!0){r(_),u()},get ref(){return l()},set ref(_){l(_),u()},$set:M,$on:(_,y)=>A(e,_,y)})}import{noop as mu}from"@vkontakte/videoplayer-shared/es2018";var F0=Le('<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>'),U0={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),
166
+ .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 Op(t,e){q(e,!1),Q(t,Cb);let[i,o]=Ue(),n=()=>C(s,"$data",i),a=Te(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};$r(),Dp(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var _=Sb();bi(_,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=wb(),I=h(S),A=h(I,!0);g(I);var P=M(I,2);bi(P,5,y,({description:E,value:T})=>T,(E,T)=>{let V=()=>r(T).description,z=()=>r(T).value;var Y=xb(),U=h(Y),Z=h(U);yl(Z,()=>xh(V()),!1,!1),g(U);var X=M(U,2),oe=h(X,!0);g(X),g(Y),k(()=>fe(oe,z())),b(E,Y)}),g(P),g(S),k(()=>fe(A,w())),b(p,S)}),g(_),b(u,_)},$$slots:{default:!0}}),K(),o()}import{noop as Wh}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Uh,PlaybackState as Tf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Tb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Ib={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 Hp(t,e){Q(t,Ib);var i=Tb(),o=h(i);me(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),b(t,i)}import{VideoQuality as zl}from"@vkontakte/videoplayer-shared/es2018";var kb=be('<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 Fp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=kb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Eb=be('<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 Up(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Eb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Ab=be('<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 zp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ab();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Pb=be('<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 Fl(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Mb=be('<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 Ul(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Mb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Mc=t=>{switch(t){case zl.Q_720P:return zp;case zl.Q_1080P:return Fl;case zl.Q_1440P:return Ul;case zl.Q_2160P:return Fp;case zl.Q_4320P:return Up}};var Lb=be('<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 qp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Lb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var Vb=be('<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 Kp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Vb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var Rb=L('<div aria-hidden="true"><!> <!></div>'),Bb={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 ql(t,e){q(e,!0),Q(t,Bb);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Mc(o())),a=m(()=>!!r(n)&&[Fl,Ul].includes(r(n)));var s=ze(),d=ve(s);{var l=f=>{qp(f,{})},u=f=>{var _=Rb();let p;var $=h(_);{var w=I=>{Hp(I,{children:(A,P)=>{var E=ze(),T=ve(E);Pi(T,()=>r(n),(V,z)=>{z(V,{})}),b(A,E)},$$slots:{default:!0}})};R($,I=>{r(n)&&I(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");Kp(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),k(I=>p=te(_,1,"icon svelte-8t5w85",null,p,I),[()=>({triple:r(a)})]),b(f,_)};R(d,f=>{i()?f(l):f(u,!1)})}b(t,s),K()}var Nb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Db={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Fa(t,e){q(e,!0),Q(t,Db);let[i,o]=Ue(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(u,"$currentQuality",i),l=Te(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=ee(void 0);Ye(()=>{n()&&_t(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function I(P){let E=$s(P);a()?p():_(E,vo)}let A=m(()=>a()?"opened":"");kt(t,{get className(){return r(A)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){O(y,pe(P))},children:(P,E)=>{var T=Nb(),V=h(T);ql(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(P,T)},$$slots:{default:!0}}),K(),o()}var Ob=be('<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 Wp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ob();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var Hb=be('<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 Kl(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Hb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function Qp(t,e){q(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));kt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Dr.KeyC},children:(s,d)=>{var l=ze(),u=ve(l);{var f=p=>{Wp(p,{})},_=p=>{Kl(p,{})};R(u,p=>{i()?p(f):p(_,!1)})}b(s,l)},$$slots:{default:!0}}),K()}var Fb=L('<span class="duration svelte-sz9er7"> </span>'),Ub=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),zb={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 Wl(t,e){q(e,!0),Q(t,zb);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>ir(e.duration)),s=m(()=>ir(e.position));var d=Ub();let l;var u=h(d),f=h(u,!0);g(u);var _=M(u,2);{var p=$=>{var w=Fb(),y=h(w,!0);g(w),k(()=>fe(y,r(a))),b($,w)};R(_,$=>{o()&&$(p)})}g(d),ut(d,$=>n($),()=>n()),k($=>{l=te(d,1,"time svelte-sz9er7",null,l,$),fe(f,r(s))},[()=>({mobile:i()})]),b(t,d),K()}import{noop as Lc}from"@vkontakte/videoplayer-shared/es2018";var qb=be('<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>'),Kb={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
167
  .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 bs(t,e){if(new.target)return k({component:bs,...t});E(e,!0),ne(t,U0);let i=p(e,"volume",7,1),o=p(e,"muted",7,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=$(()=>n(i(),o()));var l=F0();return R(()=>{var d;fe(l,"data-value",s(r)),fe(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),w(t,l),P({get volume(){return i()},set volume(d=1){i(d),u()},get muted(){return o()},set muted(d=!1){o(d),u()},$set:M,$on:(d,a)=>A(e,d,a)})}import{isNonNullable as Sh,noop as Fi}from"@vkontakte/videoplayer-shared/es2018";import{noop as wh}from"@vkontakte/videoplayer-shared/es2018";import{noop as xh}from"@vkontakte/videoplayer-shared/es2018";var z0=F('<div class="overlay"><!></div>');function uu(t,e){if(new.target)return k({component:uu,...t});E(e,!0);let[i,o]=Xe(),n=()=>I(d,"$overlayContainer$",i),r=p(e,"children",7),d=He().ui.overlayContainer$,a=ue(void 0),c=_=>{!_||!s(a)||!_.contains(s(a))||_.removeChild(s(a))},f=_=>{!_||!s(a)||_.contains(s(a))||_.appendChild(s(a))};rt(()=>{f(n())}),Kt(()=>(f(n()),()=>c(n())));var g=z0(),m=x(g);vo(m,()=>{var _;return(_=r())!=null?_:Wt}),b(g),xt(g,_=>Y(a,_),()=>s(a)),w(t,g);var h=P({get children(){return r()},set children(_){r(_),u()},$set:M,$on:(_,y)=>A(e,_,y)});return o(),h}var W0=F('<div class="tooltip svelte-1jbbzcj"><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),q0=F('<div class="tooltip-wrapper svelte-1jbbzcj"><!></div> <!>',1),K0={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {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 zs(t,e){if(new.target)return k({component:zs,...t});E(e,!0),ne(t,K0);let[i,o]=Xe(),n=()=>I(de,"$overlayContainer$",i),r=()=>I(J,"$containerSize",i),l=p(e,"isMobile",7,!1),d=p(e,"content",7,""),a=p(e,"active",15,!1),c=p(e,"translateX",7,0),f=p(e,"translateY",7,0),g=p(e,"isFullWidthWrapper",7,!1),m=p(e,"maxTooltipWidth",7,void 0),h=p(e,"placement",7,"top"),_=p(e,"onVisibilityChange",7,xh),y=p(e,"children",7),S=5,L=ue(void 0),B=ue(void 0),V,N=ue(0),T=ue(0),U=ue(0),K=ue(0),H=Xt(),G=He(),J=G.ui.playerSize,de=G.ui.overlayContainer$;rt(()=>{Tt(()=>{_()(a())})});let te=G.getLogger().createComponentLog("Tooltip component"),xe=()=>{if(!n()||!s(B)||!s(L))return;Y(T,S);let we=n().getBoundingClientRect(),$e=s(L).getBoundingClientRect(),Je=$e.width,vt=s(B).clientWidth,ve=r().width,je=(Je-vt)/2,Ct=$e.left+c()-we.left,ie=Ct+je,et=$e.top+f()-we.top,ht=vt/2-S,ft=ie<8,be=ie+vt>ve-8;ft&&(ie=8,ht=Ct+$e.width/2-2.5*S),be&&(ie=ve-8-vt,ht=$e.left-we.left+$e.width/2-ie-S),Y(U,Ae(ie)),Y(K,et),Y(N,Ae(ht))},Ce=()=>{!n()||!s(B)||!s(L)||Y(T,-S)},Q=()=>{if(!n()||!s(B)||!s(L))return;Y(N,S);let we=n().getBoundingClientRect(),$e=s(L).getBoundingClientRect(),Je=$e.height,vt=s(B).clientHeight,ve=(Je-vt)/2+vt,je=$e.left+c()-we.left-s(B).clientWidth,Ct=2,ie=je-S;ie<8&&(ie=8);let ht=$e.top+f()-we.top+ve,ft=Ct-ve/2,be=Ct-S;Y(U,Ae(ie)),Y(K,ht),Y(T,ft),Y(N,be)},pe=()=>{!n()||!s(B)||!s(L)||Y(N,-S)},he=()=>{switch(h()){case"top":xe();break;case"bottom":Ce();break;case"left":Q();break;default:pe()}},j=()=>{try{if(!n()||!s(L))return;he(),a(!0)}catch(we){te({message:String(we)})}},ae=()=>{a(!1)},q=()=>{s(B)&&(V||(V=window.setTimeout(j,H.controls.hideTimeoutTooltips)),a()&&j())},Ge=()=>{ae(),window.clearTimeout(V),V=void 0},Re=(we,$e)=>{let Je="";switch(h()){case"top":Je=`transform: translate(${we}px, ${$e}px);`;break;case"bottom":Je=`transform: translate(${we}px, ${$e}px); top: auto; bottom: 100%;`;break;case"left":Je=`transform: translate(${we}px, ${$e}px); left: 0; right: auto;`;break;default:Je=`transform: translate(${we}px, ${$e}px);`}return Je+=` max-width: ${m()===void 0?"auto":`${m()}px`};`,Je},X=(we,$e)=>{let Je="";switch(h()){case"top":Je=`transform: translate(${we}px, ${$e}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Je=`transform: translate(${we}px, ${$e}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Je=`transform: translate(${we}px, ${$e}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Je=`transform: translate(${we}px, ${$e}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Je},ce=$(()=>Re(s(U),s(K))),Be=$(()=>X(s(N),s(T)));Kt(he),ar(()=>window.clearTimeout(V));var Z=q0(),De=Ie(Z);De.__mousemove=q,De.__mousedown=Ge,De.__mouseup=q;var le=x(De);vo(le,()=>{var we;return(we=y())!=null?we:Wt}),b(De),xt(De,we=>Y(L,we),()=>s(L));var Ke=O(De,2);{var lt=we=>{uu(we,{children:($e,Je)=>{var vt=W0(),ve=x(vt),je=x(ve,!0);b(ve);var Ct=O(ve,2);b(vt),xt(vt,ie=>Y(B,ie),()=>s(B)),R(()=>{fe(vt,"style",s(ce)),re(vt,"active",a()),ke(je,d()),fe(Ct,"style",s(Be))}),w($e,vt)},$$slots:{default:!0}})};W(Ke,we=>{d()&&!l()&&we(lt)})}R(()=>re(De,"full-width",g())),Ft("mouseenter",De,q),Ft("mouseleave",De,Ge),w(t,Z);var at=P({get isMobile(){return l()},set isMobile(we=!1){l(we),u()},get content(){return d()},set content(we=""){d(we),u()},get active(){return a()},set active(we=!1){a(we),u()},get translateX(){return c()},set translateX(we=0){c(we),u()},get translateY(){return f()},set translateY(we=0){f(we),u()},get isFullWidthWrapper(){return g()},set isFullWidthWrapper(we=!1){g(we),u()},get maxTooltipWidth(){return m()},set maxTooltipWidth(we=void 0){m(we),u()},get placement(){return h()},set placement(we="top"){h(we),u()},get onVisibilityChange(){return _()},set onVisibilityChange(we=xh){_(we),u()},get children(){return y()},set children(we){y(we),u()},$set:M,$on:(we,$e)=>A(e,we,$e)});return o(),at}bt(["mousemove","mousedown","mouseup"]);var Ch=t=>{t.stopPropagation()},Q0=F("<div><!></div>"),G0={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 ho(t,e){if(new.target)return k({component:ho,...t});E(e,!0),ne(t,G0);let[i,o]=Xe(),n=()=>I(a,"$isGraphOpened$",i),r=()=>I(d,"$isMobile",i),l=He(),d=l.ui.isMobile,a=l.state.graphIsOpened$,c=l.ui.t,f=p(e,"className",7,""),g=p(e,"disabled",7,!1),m=p(e,"hasTooltip",7,!0),h=p(e,"ref",15,void 0),_=p(e,"width",15,void 0),y=p(e,"isFullWidthTooltip",7,!0),S=p(e,"tooltipContent",7,""),L=p(e,"tooltipActive",7,!1),B=p(e,"tooltipPlacement",7,"top"),V=p(e,"disabledTooltipContent",23,()=>c("tooltip_button_disabled")),N=p(e,"isAriaHidden",7,!1),T=p(e,"onTooltipVisibilityChange",7,wh),U=p(e,"initialTranslateXPx",7,0),K=p(e,"initialTranslateYPx",23,()=>-18),H=p(e,"children",7),G=$(()=>g()?n()?c("tooltip_disabled_when_graph_on"):V():S());var J=Q0();J.__pointerdown=[Ch],J.__click=[Ch];var de=x(J);{var te=Q=>{zs(Q,{get content(){return s(G)},get translateX(){return U()},get translateY(){return K()},get isFullWidthWrapper(){return y()},get active(){return L()},get placement(){return B()},get onVisibilityChange(){return T()},children:(pe,he)=>{var j=Ze(),ae=Ie(j);vo(ae,()=>{var q;return(q=H())!=null?q:Wt}),w(pe,j)},$$slots:{default:!0}})},xe=Q=>{var pe=Ze(),he=Ie(pe);vo(he,()=>{var j;return(j=H())!=null?j:Wt}),w(Q,pe)};W(de,Q=>{m()&&s(G)&&!r()?Q(te):Q(xe,!1)})}b(J),xt(J,Q=>h(Q),()=>h()),R(()=>{var Q;jo(J,`btn-container ${(Q=f())!=null?Q:""} svelte-p9r045`),fe(J,"aria-hidden",N()||null)}),Xr(J,"clientWidth",_),w(t,J);var Ce=P({get className(){return f()},set className(Q=""){f(Q),u()},get disabled(){return g()},set disabled(Q=!1){g(Q),u()},get hasTooltip(){return m()},set hasTooltip(Q=!0){m(Q),u()},get ref(){return h()},set ref(Q=void 0){h(Q),u()},get width(){return _()},set width(Q=void 0){_(Q),u()},get isFullWidthTooltip(){return y()},set isFullWidthTooltip(Q=!0){y(Q),u()},get tooltipContent(){return S()},set tooltipContent(Q=""){S(Q),u()},get tooltipActive(){return L()},set tooltipActive(Q=!1){L(Q),u()},get tooltipPlacement(){return B()},set tooltipPlacement(Q="top"){B(Q),u()},get disabledTooltipContent(){return V()},set disabledTooltipContent(Q=c("tooltip_button_disabled")){V(Q),u()},get isAriaHidden(){return N()},set isAriaHidden(Q=!1){N(Q),u()},get onTooltipVisibilityChange(){return T()},set onTooltipVisibilityChange(Q=wh){T(Q),u()},get initialTranslateXPx(){return U()},set initialTranslateXPx(Q=0){U(Q),u()},get initialTranslateYPx(){return K()},set initialTranslateYPx(Q=-18){K(Q),u()},get children(){return H()},set children(Q){H(Q),u()},$set:M,$on:(Q,pe)=>A(e,Q,pe)});return o(),Ce}bt(["pointerdown","click"]);var Y0=Le('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function hl(t,e){if(new.target)return k({component:hl,...t});E(e,!0);let i=p(e,"completed",7);var o=Y0(),n=x(o),r=O(n);return b(o),R(()=>{fe(o,"data-testid",(i(),"interactive-episode-completed-icon")),fe(n,"fill-opacity",i()?1:.24),fe(r,"fill",i()?"var(--interactive-episode-complete)":"white")}),w(t,o),P({get completed(){return i()},set completed(l){i(l),u()},$set:M,$on:(l,d)=>A(e,l,d)})}var j0=F('<div class="interactive-episode-icon svelte-bklhpe"><!></div>'),Z0={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 pu(t,e){if(new.target)return k({component:pu,...t});E(e,!0),ne(t,Z0);let i=p(e,"videoEpisode",7),o=p(e,"disabled",7),r=He().ui.t,l=ue(0),d=$(()=>r(i().completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));return ho(t,{get tooltipContent(){return s(d)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return o()},get width(){return s(l)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(a,c)=>{var f=j0(),g=x(f);let m=$(()=>!!i().completed);hl(g,{get completed(){return s(m)}}),b(f),R(()=>{fe(f,"style",`left: ${i().from+i().width/2}%`),re(f,"disabled",o())}),Xr(f,"clientWidth",h=>Y(l,h)),w(a,f)},$$slots:{default:!0}}),P({get videoEpisode(){return i()},set videoEpisode(a){i(a),u()},get disabled(){return o()},set disabled(a){o(a),u()},$set:M,$on:(a,c)=>A(e,a,c)})}var X0=F('<div class="video-episode svelte-1u6kv8l"><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div class="video-episode-filled svelte-1u6kv8l"></div></div></div>'),J0=F('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),eb={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,
168
+ .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function xs(t,e){Q(t,Kb);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=qb();k(()=>{var d;Oe(s,"data-value",r(a)),Oe(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}import{isNonNullable as Sh,noop as xr}from"@vkontakte/videoplayer-shared/es2018";import{noop as Yp}from"@vkontakte/videoplayer-shared/es2018";import{noop as Qb}from"@vkontakte/videoplayer-shared/es2018";var Wb=L('<div class="overlay"><!></div>');function Gp(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(s,"$overlayContainer$",i),s=Te().ui.overlayContainer$,d=ee(void 0),l=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};Ye(()=>{u(n())}),Bt(()=>(u(n()),()=>l(n())));var f=Wb(),_=h(f);me(_,()=>{var p;return(p=e.children)!=null?p:ie}),g(f),ut(f,p=>O(d,p),()=>r(d)),b(t,f),K(),o()}var Gb=L('<div><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),Yb=L("<div><!></div> <!>",1),jb={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {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 Js(t,e){q(e,!0),Q(t,jb);let[i,o]=Ue(),n=()=>C(Z,"$overlayContainer$",i),a=()=>C(U,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),u=v(e,"translateX",3,0),f=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),p=v(e,"maxTooltipWidth",3,void 0),$=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,Qb),y=5,S=ee(void 0),I=ee(void 0),A,P=ee(0),E=ee(0),T=ee(0),V=ee(0),z=zt(),Y=Te(),U=Y.ui.playerSize,Z=Y.ui.overlayContainer$;Ye(()=>{_t(()=>{w()(l())})});let X=Y.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n()||!r(I)||!r(S))return;O(E,y);let Ae=n().getBoundingClientRect(),$e=r(S).getBoundingClientRect(),Pe=$e.width,nt=r(I).clientWidth,vt=a().width,et=(Pe-nt)/2,Vt=$e.left+u()-Ae.left,rt=Vt+et,gt=$e.top+f()-Ae.top,Ot=nt/2-y,Ut=rt<8,Be=rt+nt>vt-8;Ut&&(rt=8,Ot=Vt+$e.width/2-2.5*y),Be&&(rt=vt-8-nt,Ot=$e.left-Ae.left+$e.width/2-rt-y),O(T,pe(rt)),O(V,gt),O(P,pe(Ot))},ce=()=>{!n()||!r(I)||!r(S)||O(E,-y)},le=()=>{if(!n()||!r(I)||!r(S))return;O(P,y);let Ae=n().getBoundingClientRect(),$e=r(S).getBoundingClientRect(),Pe=$e.height,nt=r(I).clientHeight,vt=(Pe-nt)/2+nt,et=$e.left+u()-Ae.left-r(I).clientWidth,Vt=2,rt=et-y;rt<8&&(rt=8);let Ot=$e.top+f()-Ae.top+vt,Ut=Vt-vt/2,Be=Vt-y;O(T,pe(rt)),O(V,Ot),O(E,Ut),O(P,Be)},Ve=()=>{!n()||!r(I)||!r(S)||O(P,-y)},Me=()=>{switch($()){case"top":oe();break;case"bottom":ce();break;case"left":le();break;default:Ve()}},J=()=>{try{if(!n()||!r(S))return;Me(),l(!0)}catch(Ae){X({message:String(Ae)})}},Le=()=>{l(!1)},j=()=>{r(I)&&(A||(A=window.setTimeout(J,z.controls.hideTimeoutTooltips)),l()&&J())},N=()=>{Le(),window.clearTimeout(A),A=void 0},Ne=(Ae,$e)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${Ae}px, ${$e}px);`;break;case"bottom":Pe=`transform: translate(${Ae}px, ${$e}px); top: auto; bottom: 100%;`;break;case"left":Pe=`transform: translate(${Ae}px, ${$e}px); left: 0; right: auto;`;break;default:Pe=`transform: translate(${Ae}px, ${$e}px);`}return Pe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Pe},ne=(Ae,$e)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${Ae}px, ${$e}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},ke=m(()=>Ne(r(T),r(V))),Re=m(()=>ne(r(P),r(E)));Bt(Me),er(()=>window.clearTimeout(A));var ue=Yb(),D=ve(ue);let de;D.__mousemove=j,D.__mousedown=N,D.__mouseup=j;var Ee=h(D);me(Ee,()=>{var Ae;return(Ae=e.children)!=null?Ae:ie}),g(D),ut(D,Ae=>O(S,Ae),()=>r(S));var We=M(D,2);{var lt=Ae=>{Gp(Ae,{children:($e,Pe)=>{var nt=Gb();let vt;var et=h(nt),Vt=h(et,!0);g(et);var rt=M(et,2);g(nt),ut(nt,gt=>O(I,gt),()=>r(I)),k(gt=>{vt=te(nt,1,"tooltip svelte-1jbbzcj",null,vt,gt),ot(nt,r(ke)),fe(Vt,d()),ot(rt,r(Re))},[()=>({active:l()})]),b($e,nt)},$$slots:{default:!0}})};R(We,Ae=>{d()&&!s()&&Ae(lt)})}k(Ae=>de=te(D,1,"tooltip-wrapper svelte-1jbbzcj",null,de,Ae),[()=>({"full-width":_()})]),It("mouseenter",D,j),It("mouseleave",D,N),b(t,ue),K(),o()}at(["mousemove","mousedown","mouseup"]);var wh=t=>{t.stopPropagation()},Zb=L("<div><!></div>"),Xb={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Co(t,e){q(e,!0),Q(t,Xb);let[i,o]=Ue(),n=()=>C(u,"$isGraphOpened$",i),a=()=>C(l,"$isMobile",i),s=Te(),d=oo(),l=s.ui.isMobile,u=d.graphIsOpened$,f=s.ui.t,_=v(e,"className",3,""),p=v(e,"disabled",3,!1),$=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),y=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),I=v(e,"tooltipContent",3,""),A=v(e,"tooltipActive",3,!1),P=v(e,"tooltipPlacement",3,"top"),E=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),V=v(e,"onTooltipVisibilityChange",3,Yp),z=v(e,"initialTranslateXPx",3,0),Y=v(e,"initialTranslateYPx",19,()=>-18),U=v(e,"mouseEnter",3,Yp),Z=v(e,"mouseLeave",3,Yp),X=m(()=>p()?n()?f("tooltip_disabled_when_graph_on"):E():I());var oe=Zb();oe.__pointerdown=[wh],oe.__click=[wh];var ce=h(oe);{var le=Me=>{Js(Me,{get content(){return r(X)},get translateX(){return z()},get translateY(){return Y()},get isFullWidthWrapper(){return S()},get active(){return A()},get placement(){return P()},get onVisibilityChange(){return V()},children:(J,Le)=>{var j=ze(),N=ve(j);me(N,()=>{var Ne;return(Ne=e.children)!=null?Ne:ie}),b(J,j)},$$slots:{default:!0}})},Ve=Me=>{var J=ze(),Le=ve(J);me(Le,()=>{var j;return(j=e.children)!=null?j:ie}),b(Me,J)};R(ce,Me=>{$()&&r(X)&&!a()?Me(le):Me(Ve,!1)})}g(oe),ut(oe,Me=>w(Me),()=>w()),k(()=>{var Me;te(oe,1,`btn-container ${(Me=_())!=null?Me:""}`,"svelte-p9r045"),Oe(oe,"aria-hidden",T()||null)}),It("mouseenter",oe,function(...Me){var J;(J=U())==null||J.apply(this,Me)}),It("mouseleave",oe,function(...Me){var J;(J=Z())==null||J.apply(this,Me)}),Nr(oe,"clientWidth",y),b(t,oe),K(),o()}at(["pointerdown","click"]);var Jb=be('<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 Ql(t,e){"use strict";var i=Jb(),o=h(i),n=M(o);g(i),k(()=>{Oe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Oe(o,"fill-opacity",e.completed?1:.24),Oe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var e$=L("<div><!></div>"),t$={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 jp(t,e){q(e,!0),Q(t,t$);let o=Te().ui.t,n=ee(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Co(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=e$();let u;var f=h(l);let _=m(()=>!!e.videoEpisode.completed);Ql(f,{get completed(){return r(_)}}),g(l),k(p=>{u=te(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),ot(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Nr(l,"clientWidth",p=>O(n,p)),b(s,l)},$$slots:{default:!0}}),K()}var i$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),o$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),n$={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
169
  .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 fu(t,e){if(new.target)return k({component:fu,...t});E(e,!0),ne(t,eb);let i=p(e,"videoEpisodes",23,()=>[]),o=p(e,"isMobile",7),n=p(e,"disabled",7);var r=J0();return Ci(r,21,i,Ji,(l,d)=>{var a=X0(),c=x(a),f=x(c),g=O(f,2);b(c),b(a),R(()=>{fe(a,"style",`left: ${s(d).from}%; width: ${s(d).width}%`),re(a,"disabled",n()),re(a,"mobile",o()),fe(f,"style",`transform: translateX(${s(d).loadedWidth/s(d).width*100}%)`),fe(g,"style",`transform: translateX(${s(d).filledWidth/s(d).width*100}%)`),re(g,"mobile",o())}),w(l,a)}),b(r),w(t,r),P({get videoEpisodes(){return i()},set videoEpisodes(l=[]){i(l),u()},get isMobile(){return o()},set isMobile(l){o(l),u()},get disabled(){return n()},set disabled(l){n(l),u()},$set:M,$on:(l,d)=>A(e,l,d)})}function tb(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&Y(i,Ae(e().getBoundingClientRect())),o()||s(n)||!e())return;Y(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function ib(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),c=o(t.clientX);n()(a,c,s(r).width),s(l)&&d()(a)}function ob(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;Y(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function nb(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var rb=F('<div class="interactive-icons svelte-1tpemng"></div>'),sb=F('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div class="filled svelte-1tpemng"></div></div>'),ab=F('<!> <div role="slider" tabindex="0"><!> <div class="handleWrap svelte-1tpemng"><div class="handle svelte-1tpemng"></div></div></div>',1),lb={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 {
170
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Zp(t,e){Q(t,n$);let i=v(e,"videoEpisodes",19,()=>[]);var o=o$();bi(o,21,i,n=>n.from,(n,a)=>{var s=i$();let d;var l=h(s),u=h(l),f=M(u,2);let _;g(l),g(s),k((p,$)=>{d=te(s,1,"video-episode svelte-1u6kv8l",null,d,p),ot(s,`left: ${r(a).from}%; width: ${r(a).width}%`),ot(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=te(f,1,"video-episode-filled svelte-1u6kv8l",null,_,$),ot(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function r$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,pe(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function s$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),u=o(t.clientX);n()(l,u,r(a).width),r(s)&&d()(l)}function a$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function l$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var d$=L("<div></div>"),c$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),u$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),p$={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
171
  /* 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
172
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
173
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
174
  .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 Ws(t,e){if(new.target)return k({component:Ws,...t});E(e,!0),ne(t,lb);let i=p(e,"ref",15,void 0),o=p(e,"className",7,""),n=p(e,"testId",7,void 0),r=p(e,"isHidden",7,!1),l=p(e,"isVertical",7,!1),d=p(e,"isActiveLive",7,!1),a=p(e,"isMobile",7,!1),c=p(e,"squareBorders",7,!1),f=p(e,"videoEpisodes",23,()=>[]),g=p(e,"withWheelHandler",7,!1),m=p(e,"isInteractive",7,!1),h=p(e,"disabled",7,!1),_=p(e,"hideHandel",7,!1),y=p(e,"onPointerDown",7,Fi),S=p(e,"onHandleMove",7,Fi),L=p(e,"onPointerUp",7,Fi),B=p(e,"onPointerEnter",7,Fi),V=p(e,"onPointerMove",7,Fi),N=p(e,"onPointerLeave",7,Fi),T=p(e,"onWheelUp",7,Fi),U=p(e,"onWheelDown",7,Fi),K=p(e,"onWheelLeft",7,Fi),H=p(e,"onWheelRight",7,Fi),G=p(e,"onDisabledClick",7,Fi),J=p(e,"loadedProgress",7,0),de=p(e,"filledProgress",7,0),te=p(e,"handleProgress",7,0),xe=p(e,"ariaLabel",7,""),Ce=p(e,"ariaValueMin",7,void 0),Q=p(e,"ariaValueMax",7,void 0),pe=p(e,"ariaValueNow",7,void 0),he=p(e,"ariaValueText",7,""),j=Xt(),ae=ue(void 0),q=ue(!1),Ge=$(()=>{var ie;return(ie=Q())!=null?ie:0}),Re=$(()=>{var ie;return Sh(f())&&((ie=f()[f().length-1])==null?void 0:ie.time)<s(Ge)}),X=$(()=>Sh(f())&&f().length&&s(Re)&&s(Ge)?Ke(J()*100,de()*100):[]);function ce(ie){if(ie.preventDefault(),i()&&Y(ae,Ae(i().getBoundingClientRect())),h())return;let et=De(ie.clientX,ie.clientY),ht=le(ie.clientX);B()(et,ht,s(ae).width)}function Be(ie){ie.preventDefault(),!h()&&N()()}function Z(ie){h()||g()&&(ie.preventDefault(),ie.deltaY<0?T()():ie.deltaY>0?U()():ie.deltaX>0?H()():K()())}function De(ie,et){return l()?Math.max(0,Math.min(1,(s(ae).height-(et-s(ae).top))/s(ae).height)):Math.min(Math.max(ie-s(ae).x,0),s(ae).width)/s(ae).width}function le(ie){return Math.min(Math.max(ie-s(ae).x,0),s(ae).width)}function Ke(ie,et){let ht=j.features.episodesClustering&&!m()?j.episodeMinWidthPc:0,ft=[],be=f()[0].time/s(Ge)*100,Pe=0,ye=0;for(let Ve=1;Ve<f().length;Ve++)Pe=f()[Ve].time/s(Ge)*100,Pe-be>ht&&(ft.push({from:be,width:Math.max(0,Pe-be),loadedWidth:Math.max(0,Math.min(Pe,ie)-be),filledWidth:Math.max(0,Math.min(Pe,et)-be),interactive:f()[Ve-1].interactive,completed:f()[Ve-1].completed}),be=f()[Ve].time/s(Ge)*100,ye++);let Ye={from:be,width:Math.max(0,100-be),loadedWidth:Math.max(0,Math.min(ie,100)-be),filledWidth:Math.max(0,Math.min(et,100)-be),interactive:f()[ye].interactive,completed:f()[ye].completed};100-be<ht?(ye-=1,ft[ye].width+=100-be,ft[ye].loadedWidth+=Math.max(0,Math.min(ie,100)-be),ft[ye].filledWidth+=Math.max(0,Math.min(et,100)-be)):ft[ye]=Ye;let pt=f()[0].time;if(pt!==0){let Ve=pt/s(Ge)*100;ft.unshift({from:0,width:Ve,loadedWidth:Math.min(Ve,ie),filledWidth:Math.min(Ve,et)})}return ft}var lt=ab(),at=Ie(lt);{var we=ie=>{var et=rb();Ci(et,21,()=>s(X),Ji,(ht,ft)=>{var be=Ze(),Pe=Ie(be);{var ye=Ye=>{pu(Ye,{get videoEpisode(){return s(ft)},get disabled(){return h()}})};W(Pe,Ye=>{s(ft).interactive&&Ye(ye)})}w(ht,be)}),b(et),R(()=>{re(et,"mobile",a()),re(et,"hidden",a()&&!s(q))}),w(ie,et)};W(at,ie=>{m()&&ie(we)})}var $e=O(at,2);$e.__pointerdown=[tb,i,ae,h,q,De,y],$e.__pointermove=[ib,h,De,le,V,ae,q,S],$e.__pointerup=[ob,h,q,De,L],$e.__click=[nb,h,G,De];var Je=x($e);{var vt=ie=>{fu(ie,{get videoEpisodes(){return s(X)},get disabled(){return h()},get isMobile(){return a()}})},ve=ie=>{var et=sb(),ht=x(et),ft=O(ht,2);b(et),R(()=>{fe(ht,"style",`transform: translateX(${J()*100}%);`),fe(ft,"style",`transform: translateX(${de()*100}%);`),re(ft,"active-live",d())}),w(ie,et)};W(Je,ie=>{s(X).length?ie(vt):ie(ve,!1)})}var je=O(Je,2),Ct=x(je);return b(je),b($e),xt($e,ie=>i(ie),()=>i()),R(()=>{var ie,et;jo($e,`slider ${(ie=o())!=null?ie:""} svelte-1tpemng`),fe($e,"aria-label",xe()),fe($e,"aria-valuemin",Ce()),fe($e,"aria-valuemax",Q()),fe($e,"aria-valuenow",pe()),fe($e,"aria-valuetext",he()),fe($e,"data-testid",(et=n())!=null?et:null),re($e,"disabled",h()),re($e,"slider-dragging",s(q)),re($e,"hidden",r()),re($e,"slider-vertical",l()),re($e,"no-handle",_()),re($e,"square",c()),fe(je,"style",`transform: translateX(${te()*100}%);`),re(je,"hidden",_()),re(Ct,"active-live",d())}),Ft("pointerenter",$e,ce),Ft("pointerleave",$e,Be),Ft("wheel",$e,Z),w(t,lt),P({get ref(){return i()},set ref(ie=void 0){i(ie),u()},get className(){return o()},set className(ie=""){o(ie),u()},get testId(){return n()},set testId(ie=void 0){n(ie),u()},get isHidden(){return r()},set isHidden(ie=!1){r(ie),u()},get isVertical(){return l()},set isVertical(ie=!1){l(ie),u()},get isActiveLive(){return d()},set isActiveLive(ie=!1){d(ie),u()},get isMobile(){return a()},set isMobile(ie=!1){a(ie),u()},get squareBorders(){return c()},set squareBorders(ie=!1){c(ie),u()},get videoEpisodes(){return f()},set videoEpisodes(ie=[]){f(ie),u()},get withWheelHandler(){return g()},set withWheelHandler(ie=!1){g(ie),u()},get isInteractive(){return m()},set isInteractive(ie=!1){m(ie),u()},get disabled(){return h()},set disabled(ie=!1){h(ie),u()},get hideHandel(){return _()},set hideHandel(ie=!1){_(ie),u()},get onPointerDown(){return y()},set onPointerDown(ie=Fi){y(ie),u()},get onHandleMove(){return S()},set onHandleMove(ie=Fi){S(ie),u()},get onPointerUp(){return L()},set onPointerUp(ie=Fi){L(ie),u()},get onPointerEnter(){return B()},set onPointerEnter(ie=Fi){B(ie),u()},get onPointerMove(){return V()},set onPointerMove(ie=Fi){V(ie),u()},get onPointerLeave(){return N()},set onPointerLeave(ie=Fi){N(ie),u()},get onWheelUp(){return T()},set onWheelUp(ie=Fi){T(ie),u()},get onWheelDown(){return U()},set onWheelDown(ie=Fi){U(ie),u()},get onWheelLeft(){return K()},set onWheelLeft(ie=Fi){K(ie),u()},get onWheelRight(){return H()},set onWheelRight(ie=Fi){H(ie),u()},get onDisabledClick(){return G()},set onDisabledClick(ie=Fi){G(ie),u()},get loadedProgress(){return J()},set loadedProgress(ie=0){J(ie),u()},get filledProgress(){return de()},set filledProgress(ie=0){de(ie),u()},get handleProgress(){return te()},set handleProgress(ie=0){te(ie),u()},get ariaLabel(){return xe()},set ariaLabel(ie=""){xe(ie),u()},get ariaValueMin(){return Ce()},set ariaValueMin(ie=void 0){Ce(ie),u()},get ariaValueMax(){return Q()},set ariaValueMax(ie=void 0){Q(ie),u()},get ariaValueNow(){return pe()},set ariaValueNow(ie=void 0){pe(ie),u()},get ariaValueText(){return he()},set ariaValueText(ie=""){he(ie),u()},$set:M,$on:(ie,et)=>A(e,ie,et)})}bt(["pointerdown","pointermove","pointerup","click"]);var Gi=(t,e)=>pa[t]>=pa[e],Th=(t,e)=>pa[t]<pa[e],qs=(t,e)=>pa[t]<=pa[e],Ih=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var db=F('<div class="volumeBar svelte-1auih1j"><!></div>'),cb=F('<div class="volumeBar-container svelte-1auih1j"><!> <!></div>'),ub={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 vu(t,e){var at,we;if(new.target)return k({component:vu,...t});E(e,!0),ne(t,ub);let[i,o]=Xe(),n=()=>I(V,"$isAudioAvailable$",i),r=()=>I(m,"$muted$",i),l=()=>I(g,"$volume$",i),d=()=>I(S,"$currentGridType$",i),a=p(e,"click",7),c=He(),f=Xt(),g=c.state.volume$,m=c.state.muted$,{setVolume:h,startVolumeChanging:_,stopVolumeChanging:y}=c.actions.internal,S=c.ui.currentGridType$,L=(at=c.callbacks)==null?void 0:at.onAudioDoesNotExistHint,B=(we=c.callbacks)==null?void 0:we.onAudioDisabledHint,V=c.state.isAudioAvailable$,N=c.state.isAudioDisabled,T=c.ui.t,U=ue(!1),K,H=$(()=>!n()||r()||l()===0),G=$(()=>qs(d(),"s")),J=$(()=>s(G)?"":s(H)?T("tooltip_volume"):T("tooltip_volume_muted")),de=$(()=>s(H)?T("tooltip_volume"):T("tooltip_volume_muted")),te=$(()=>s(H)?0:l()),xe=!1,Ce=$(()=>n()?N&&!B:!L);function Q($e){_(),h($e)}function pe(){jc(c,l(),f.controls.volumeStepWheel)}function he(){Zc(c,l(),f.controls.volumeStepWheel)}function j($e){h($e)}function ae($e){h($e),y()}function q(){xe=!0}function Ge(){xe=!1,ce()}function Re(){clearTimeout(K),Y(U,!0)}function X(){ce()}function ce(){K=window.setTimeout(()=>{xe||Y(U,!1)},f.controls.volumeBarTimeout)}function Be($e){$e.preventDefault(),$e.deltaY<0?pe():$e.deltaY>0&&he()}var Z=cb(),De=x(Z);zs(De,{get content(){return s(J)},translateY:-18,children:($e,Je)=>{let vt=$(()=>s(G)?"btn-volume-vertical":"btn-volume-horizontal");Ot($e,{className:"btn-full-opacity",get disabled(){return s(Ce)},get testId(){return s(vt)},get ariaLabel(){return s(de)},get click(){return a()},get ariaKeyShortCut(){return Jr.KeyM},children:(ve,je)=>{bs(ve,{get volume(){return l()},get muted(){return s(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var le=O(De,2);{var Ke=$e=>{var Je=db(),vt=x(Je);let ve=$(()=>s(G)?"volumeBar-slider-vertical":""),je=$(()=>s(G)&&!s(U)),Ct=$(()=>s(G)?q:mu),ie=$(()=>s(G)?Ge:mu),et=$(()=>Math.round(s(te)*100)),ht=$(()=>`${Math.round(s(te)*100)}%`),ft=$(()=>s(G)?"volume-slider-vertical":"volume-slider");Ws(vt,{get className(){return s(ve)},get isHidden(){return s(je)},get isVertical(){return s(G)},withWheelHandler:!0,onWheelUp:pe,onWheelDown:he,onPointerDown:Q,onHandleMove:j,onPointerUp:ae,get onPointerEnter(){return s(Ct)},get onPointerLeave(){return s(ie)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(et)},get ariaValueText(){return s(ht)},get filledProgress(){return s(te)},get handleProgress(){return s(te)},get testId(){return s(ft)}}),b(Je),R(()=>re(Je,"volumeBar-vertical",s(G))),w($e,Je)};W(le,$e=>{n()&&$e(Ke)})}b(Z),R(()=>re(Z,"vertical",s(G))),Ft("mouseenter",Z,function(...$e){var Je;(Je=s(G)?Re:mu)==null||Je.apply(this,$e)}),Ft("mouseleave",Z,function(...$e){var Je;(Je=s(G)?X:mu)==null||Je.apply(this,$e)}),Ft("wheel",Z,Be),w(t,Z);var lt=P({get click(){return a()},set click($e){a($e),u()},$set:M,$on:($e,Je)=>A(e,$e,Je)});return o(),lt}import{noop as kh}from"@vkontakte/videoplayer-shared/es2018";var pb=Le('<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 gu(t,e){if(new.target)return k({component:gu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=pb();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var fb={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function hu(t,e){if(new.target)return k({component:hu,...t});E(e,!1),ne(t,fb);let i=p(e,"isFullscreen",12,!1),o=Lr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");return gu(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"}),P({get isFullscreen(){return i()},set isFullscreen(n){i(n),u()},$set:M,$on:(n,r)=>A(e,n,r)})}function _l(t,e){if(new.target)return k({component:_l,...t});E(e,!0);let i=p(e,"isFullscreen",7,!1),o=p(e,"click",7,kh),n=He(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=$(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));return Ot(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:c=>{let f=Os(c);r.set(f),o()()},get ariaKeyShortCut(){return Jr.KeyF},children:(c,f)=>{hu(c,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),P({get isFullscreen(){return i()},set isFullscreen(c=!1){i(c),u()},get click(){return o()},set click(c=kh){o(c),u()},$set:M,$on:(c,f)=>A(e,c,f)})}var mb=Le('<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 _u(t,e){if(new.target)return k({component:_u,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=mb();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var vb=Le('<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 $u(t,e){if(new.target)return k({component:$u,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=vb();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(4),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var gb={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
175
+ .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 ea(t,e){q(e,!0),Q(t,p$);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),a=v(e,"isHidden",3,!1),s=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),l=v(e,"isMobile",3,!1),u=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),p=v(e,"isInteractive",3,!1),$=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,xr),S=v(e,"onHandleMove",3,xr),I=v(e,"onPointerUp",3,xr),A=v(e,"onPointerEnter",3,xr),P=v(e,"onPointerMove",3,xr),E=v(e,"onPointerLeave",3,xr),T=v(e,"onWheelUp",3,xr),V=v(e,"onWheelDown",3,xr),z=v(e,"onWheelLeft",3,xr),Y=v(e,"onWheelRight",3,xr),U=v(e,"onDisabledClick",3,xr),Z=v(e,"loadedProgress",3,0),X=v(e,"filledProgress",3,0),oe=v(e,"handleProgress",3,0),ce=v(e,"ariaLabel",3,""),le=v(e,"ariaValueMin",3,void 0),Ve=v(e,"ariaValueMax",3,void 0),Me=v(e,"ariaValueNow",3,void 0),J=v(e,"ariaValueText",3,""),Le=zt(),j=ee(void 0),N=ee(!1),Ne=m(()=>{var Be;return(Be=Ve())!=null?Be:0}),ne=m(()=>{var Be;return Sh(f())&&((Be=f()[f().length-1])==null?void 0:Be.time)<r(Ne)}),ke=m(()=>Sh(f())&&f().length&&r(ne)&&r(Ne)?We(Z()*100,X()*100):[]);function Re(Be){if(Be.preventDefault(),i()&&O(j,pe(i().getBoundingClientRect())),$())return;let re=de(Be.clientX,Be.clientY),W=Ee(Be.clientX);A()(re,W,r(j).width)}function ue(Be){Be.preventDefault(),!$()&&E()()}function D(Be){$()||_()&&(Be.preventDefault(),Be.deltaY<0?T()():Be.deltaY>0?V()():Be.deltaX>0?Y()():z()())}function de(Be,re){return s()?Math.max(0,Math.min(1,(r(j).height-(re-r(j).top))/r(j).height)):Math.min(Math.max(Be-r(j).x,0),r(j).width)/r(j).width}function Ee(Be){return Math.min(Math.max(Be-r(j).x,0),r(j).width)}function We(Be,re){let W=Le.features.episodesClustering&&!p()?Le.episodeMinWidthPc:0,se=[],ge=f()[0].time/r(Ne)*100,Se=0,De=0;for(let Qe=1;Qe<f().length;Qe++)Se=f()[Qe].time/r(Ne)*100,Se-ge>W&&(se.push({from:ge,width:Math.max(0,Se-ge),loadedWidth:Math.max(0,Math.min(Se,Be)-ge),filledWidth:Math.max(0,Math.min(Se,re)-ge),interactive:f()[Qe-1].interactive,completed:f()[Qe-1].completed}),ge=f()[Qe].time/r(Ne)*100,De++);let pt={from:ge,width:Math.max(0,100-ge),loadedWidth:Math.max(0,Math.min(Be,100)-ge),filledWidth:Math.max(0,Math.min(re,100)-ge),interactive:f()[De].interactive,completed:f()[De].completed};100-ge<W?(De-=1,se[De].width+=100-ge,se[De].loadedWidth+=Math.max(0,Math.min(Be,100)-ge),se[De].filledWidth+=Math.max(0,Math.min(re,100)-ge)):se[De]=pt;let Ht=f()[0].time;if(Ht!==0){let Qe=Ht/r(Ne)*100;se.unshift({from:0,width:Qe,loadedWidth:Math.min(Qe,Be),filledWidth:Math.min(Qe,re)})}return se}var lt=u$(),Ae=ve(lt);{var $e=Be=>{var re=d$();let W;bi(re,21,()=>r(ke),se=>se.from,(se,ge)=>{var Se=ze(),De=ve(Se);{var pt=Ht=>{jp(Ht,{get videoEpisode(){return r(ge)},get disabled(){return $()}})};R(De,Ht=>{r(ge).interactive&&Ht(pt)})}b(se,Se)}),g(re),k(se=>W=te(re,1,"interactive-icons svelte-1tpemng",null,W,se),[()=>({mobile:l(),hidden:l()&&!r(N)})]),b(Be,re)};R(Ae,Be=>{p()&&Be($e)})}var Pe=M(Ae,2);let nt;Pe.__pointerdown=[r$,i,j,$,N,de,y],Pe.__pointermove=[s$,$,de,Ee,P,j,N,S],Pe.__pointerup=[a$,$,N,de,I],Pe.__click=[l$,$,U,de];var vt=h(Pe);{var et=Be=>{Zp(Be,{get videoEpisodes(){return r(ke)},get disabled(){return $()},get isMobile(){return l()}})},Vt=Be=>{var re=c$(),W=h(re),se=M(W,2);let ge;g(re),k(Se=>{ot(W,`transform: translateX(${Z()*100}%);`),ge=te(se,1,"filled svelte-1tpemng",null,ge,Se),ot(se,`transform: translateX(${X()*100}%);`)},[()=>({"active-live":d()})]),b(Be,re)};R(vt,Be=>{r(ke).length?Be(et):Be(Vt,!1)})}var rt=M(vt,2);let gt;var Ot=h(rt);let Ut;g(rt),g(Pe),ut(Pe,Be=>i(Be),()=>i()),k((Be,re,W)=>{var se,ge;nt=te(Pe,1,`slider ${(se=o())!=null?se:""}`,"svelte-1tpemng",nt,Be),Oe(Pe,"aria-label",ce()),Oe(Pe,"aria-valuemin",le()),Oe(Pe,"aria-valuemax",Ve()),Oe(Pe,"aria-valuenow",Me()),Oe(Pe,"aria-valuetext",J()),Oe(Pe,"data-testid",(ge=n())!=null?ge:null),gt=te(rt,1,"handleWrap svelte-1tpemng",null,gt,re),ot(rt,`transform: translateX(${oe()*100}%);`),Ut=te(Ot,1,"handle svelte-1tpemng",null,Ut,W)},[()=>({disabled:$(),"slider-dragging":r(N),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),It("pointerenter",Pe,Re),It("pointerleave",Pe,ue),It("wheel",Pe,D),b(t,lt),K()}at(["pointerdown","pointermove","pointerup","click"]);var Di=(t,e)=>Us[t]>=Us[e],Ch=(t,e)=>Us[t]<Us[e],ws=(t,e)=>Us[t]<=Us[e],Th=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var f$=L("<div><!></div>"),m$=L("<div><!> <!></div>"),v$={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 Xp(t,e){var lt,Ae;q(e,!0),Q(t,v$);let[i,o]=Ue(),n=()=>C(A,"$isAudioAvailable$",i),a=()=>C(_,"$muted$",i),s=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),l=Te(),u=zt(),f=l.state.volume$,_=l.state.muted$,{setVolume:p,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,S=(lt=l.callbacks)==null?void 0:lt.onAudioDoesNotExistHint,I=(Ae=l.callbacks)==null?void 0:Ae.onAudioDisabledHint,A=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,E=l.ui.t,T=ee(!1),V,z=m(()=>!n()||a()||s()===0),Y=m(()=>ws(d(),"s")),U=m(()=>r(Y)?"":r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),Z=m(()=>r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),X=m(()=>r(z)?0:s()),oe=!1,ce=m(()=>n()?P&&!I:!S);function le($e){$(),p($e)}function Ve(){Ac(l,s(),u.controls.volumeStepWheel)}function Me(){Pc(l,s(),u.controls.volumeStepWheel)}function J($e){p($e)}function Le($e){p($e),w()}function j(){oe=!0}function N(){oe=!1,ke()}function Ne(){clearTimeout(V),O(T,!0)}function ne(){ke()}function ke(){V=window.setTimeout(()=>{oe||O(T,!1)},u.controls.volumeBarTimeout)}function Re($e){$e.preventDefault(),$e.deltaY<0?Ve():$e.deltaY>0&&Me()}var ue=m$();let D;var de=h(ue);Js(de,{get content(){return r(U)},translateY:-18,children:($e,Pe)=>{let nt=m(()=>r(Y)?"btn-volume-vertical":"btn-volume-horizontal");kt($e,{className:"btn-full-opacity",get disabled(){return r(ce)},get testId(){return r(nt)},get ariaLabel(){return r(Z)},get click(){return e.click},get ariaKeyShortCut(){return Dr.KeyM},children:(vt,et)=>{xs(vt,{get volume(){return s()},get muted(){return r(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ee=M(de,2);{var We=$e=>{var Pe=f$();let nt;var vt=h(Pe);let et=m(()=>r(Y)?"volumeBar-slider-vertical":""),Vt=m(()=>r(Y)&&!r(T)),rt=m(()=>r(Y)?j:Lc),gt=m(()=>r(Y)?N:Lc),Ot=m(()=>Math.round(r(X)*100)),Ut=m(()=>`${Math.round(r(X)*100)}%`),Be=m(()=>r(Y)?"volume-slider-vertical":"volume-slider");ea(vt,{get className(){return r(et)},get isHidden(){return r(Vt)},get isVertical(){return r(Y)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:Me,onPointerDown:le,onHandleMove:J,onPointerUp:Le,get onPointerEnter(){return r(rt)},get onPointerLeave(){return r(gt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Ot)},get ariaValueText(){return r(Ut)},get filledProgress(){return r(X)},get handleProgress(){return r(X)},get testId(){return r(Be)}}),g(Pe),k(re=>nt=te(Pe,1,"volumeBar svelte-1auih1j",null,nt,re),[()=>({"volumeBar-vertical":r(Y)})]),b($e,Pe)};R(Ee,$e=>{n()&&$e(We)})}g(ue),k($e=>D=te(ue,1,"volumeBar-container svelte-1auih1j",null,D,$e),[()=>({vertical:r(Y)})]),It("mouseenter",ue,function(...$e){var Pe;(Pe=r(Y)?Ne:Lc)==null||Pe.apply(this,$e)}),It("mouseleave",ue,function(...$e){var Pe;(Pe=r(Y)?ne:Lc)==null||Pe.apply(this,$e)}),It("wheel",ue,Re),b(t,ue),K(),o()}import{noop as _$}from"@vkontakte/videoplayer-shared/es2018";var g$=be('<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 Jp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=g$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var h$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function ef(t,e){Q(t,h$);let i=v(e,"isFullscreen",8,!1),o=hr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Jp(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Gl(t,e){q(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,_$),n=Te(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));kt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=$s(u);a.set(f),o()()},get ariaKeyShortCut(){return Dr.KeyF},children:(u,f)=>{ef(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),K()}var b$=be('<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 tf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=b$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),b(t,o)}var $$=be('<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 of(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=$$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var y$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
177
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
178
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function bu(t,e){if(new.target)return k({component:bu,...t});E(e,!0),ne(t,gb);let i=p(e,"short",7,!1),o=p(e,"isCyrillic",7,!0),n="vk-video-logo-icon--short",r=21,l=$(()=>!o()&&!i()?91:i()?r:95),d=$(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=$(()=>`0 0 ${s(l)+1} 24`);return $u(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}}),P({get short(){return i()},set short(c=!1){i(c),u()},get isCyrillic(){return o()},set isCyrillic(c=!0){o(c),u()},$set:M,$on:(c,f)=>A(e,c,f)})}function $l(t,e){if(new.target)return k({component:$l,...t});E(e,!0);let[i,o]=Xe(),n=()=>I(_,"$isMobile",i),r=()=>I(h,"$currentGridType$",i),l=()=>I(S,"$isCyrillicRelatedInterface$",i),d=p(e,"ref",15,void 0),a=p(e,"logoClickable",7,!1),c=p(e,"targetUrl",7,""),f=p(e,"click",7),g=Xt(),m=He(),h=m.ui.currentGridType$,_=m.ui.isMobile,y=m.ui.t,S=m.isCyrillicRelatedInterface$,L=$(()=>g.logoType==="vk_video"?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),B=$(()=>g.logoType==="vk_video"||g.logoType==="vk_video_mobile"),V=$(()=>(n()||qs(r(),"l"))&&s(B)),N=()=>{var H,G;f()(),(H=m.callbacks)!=null&&H.onLogoClicked?(G=m.callbacks)==null||G.onLogoClicked():c()&&window.open(c(),"_blank")},T=$(()=>!a()),U=$(()=>s(B)?"btn-vk-video-logo":"btn-vk-logo");Ot(t,{className:"btn-full-opacity",get disabled(){return s(T)},click:N,get testId(){return s(U)},get ariaLabel(){return s(L)},get ref(){return d()},set ref(H){d(H)},children:(H,G)=>{var J=Ze(),de=Ie(J);{var te=Ce=>{bu(Ce,{get short(){return s(V)},get isCyrillic(){return l()}})},xe=Ce=>{_u(Ce,{})};W(de,Ce=>{s(B)?Ce(te):Ce(xe,!1)})}w(H,J)},$$slots:{default:!0}});var K=P({get ref(){return d()},set ref(H=void 0){d(H),u()},get logoClickable(){return a()},set logoClickable(H=!1){a(H),u()},get targetUrl(){return c()},set targetUrl(H=""){c(H),u()},get click(){return f()},set click(H){f(H),u()},$set:M,$on:(H,G)=>A(e,H,G)});return o(),K}import{ChromecastState as yb}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Eh}from"@vkontakte/videoplayer-core/es2018";var _b=Le('<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>'),$b=Le('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon" class="svelte-8z1bf5"><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)" class="svelte-8z1bf5"></path></g></svg>'),bb={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) {
179
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function nf(t,e){Q(t,y$);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);of(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Yl(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C($,"$isMobile",i),a=()=>C(p,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=zt(),_=Te(),p=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),I=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),A=m(()=>(n()||ws(a(),"l"))&&r(I)),P=()=>{var V,z;e.click(),(V=_.callbacks)!=null&&V.onLogoClicked?(z=_.callbacks)==null||z.onLogoClicked():u()&&window.open(u(),"_blank")},E=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");kt(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:P,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(V){d(V)},children:(V,z)=>{var Y=ze(),U=ve(Y);{var Z=oe=>{nf(oe,{get short(){return r(A)},get isCyrillic(){return s()}})},X=oe=>{tf(oe,{})};R(U,oe=>{r(I)?oe(Z):oe(X,!1)})}b(V,Y)},$$slots:{default:!0}}),K(),o()}import{ChromecastState as T$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Ih}from"@vkontakte/videoplayer-core/es2018";var w$=be('<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>'),S$=be('<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>'),C$={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
180
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
181
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
182
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,7 +224,9 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
221
224
  100% {
222
225
  opacity: 1;
223
226
  }
224
- }`};function yu(t,e){if(new.target)return k({component:yu,...t});E(e,!0),ne(t,bb);let i=p(e,"isMobile",7,!1),o=p(e,"iconState",7),n=$(()=>o()===Eh.CONNECTED),r=$(()=>o()===Eh.CONNECTING);var l=Ze(),d=Ie(l);{var a=f=>{var g=_b(),m=x(g),h=x(m),_=x(h);Me(),b(h);var y=O(h);Me(),b(m);var S=O(m),L=x(S),B=x(L);b(L),Me(),b(S),b(g),R(()=>{fe(_,"fill",s(n)?"#2688EB":"var(--btn-color, #fff)"),fe(y,"fill",s(n)?"#2688EB":"var(--btn-color, #fff)"),fe(B,"fill",s(n)?"#2688EB":"var(--btn-color, #fff)")}),w(f,g)},c=f=>{var g=$b(),m=x(g),h=O(x(m),5);b(m),b(g),R(()=>{re(g,"connecting",s(r)),re(h,"hidden",!s(n))}),w(f,g)};W(d,f=>{i()?f(a):f(c,!1)})}return w(t,l),P({get isMobile(){return i()},set isMobile(f=!1){i(f),u()},get iconState(){return o()},set iconState(f){o(f),u()},$set:M,$on:(f,g)=>A(e,f,g)})}import{noop as Ph}from"@vkontakte/videoplayer-shared/es2018";function bl(t,e){if(new.target)return k({component:bl,...t});E(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"isMobile",7,!1),n=p(e,"state",7),r=p(e,"click",7,Ph),d=He().ui.t,a=$(()=>n()===yb.CONNECTED?d("tooltip_chromecast_on"):d("tooltip_chromecast_off"));return Ot(t,{get ariaLabel(){return s(a)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(c){i(c)},children:(c,f)=>{yu(c,{get isMobile(){return o()},get iconState(){return n()}})},$$slots:{default:!0}}),P({get ref(){return i()},set ref(c=void 0){i(c),u()},get isMobile(){return o()},set isMobile(c=!1){o(c),u()},get state(){return n()},set state(c){n(c),u()},get click(){return r()},set click(c=Ph){r(c),u()},$set:M,$on:(c,f)=>A(e,c,f)})}var xb=F('<div class="tooltip-wrapper svelte-5ygsa2"><div class="tooltip svelte-5ygsa2"><!></div></div>'),wb={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 xu(t,e){if(new.target)return k({component:xu,...t});E(e,!0),ne(t,wb);let i=p(e,"active",7,!1),o=p(e,"pointer",7,!1),n=p(e,"translateXPx",7,0),r=p(e,"translateYPx",7,0),l=p(e,"containerWidth",7),d=p(e,"children",7),a=ue(void 0),c=ue(void 0);function f(y){if(!s(c))return 0;let{width:S}=s(c).getBoundingClientRect(),L=S/2;return y<L?L:y>l()-L?l()-L:y}let g=$(()=>f(n()));var m=xb(),h=x(m),_=x(h);return vo(_,()=>{var y;return(y=d())!=null?y:Wt}),b(h),xt(h,y=>Y(c,y),()=>s(c)),b(m),xt(m,y=>Y(a,y),()=>s(a)),R(()=>{fe(m,"style",`transform: translate(${s(g)}px, ${r()}px);`),re(h,"active",i()),re(h,"pointer",o())}),w(t,m),P({get active(){return i()},set active(y=!1){i(y),u()},get pointer(){return o()},set pointer(y=!1){o(y),u()},get translateXPx(){return n()},set translateXPx(y=0){n(y),u()},get translateYPx(){return r()},set translateYPx(y=0){r(y),u()},get containerWidth(){return l()},set containerWidth(y){l(y),u()},get children(){return d()},set children(y){d(y),u()},$set:M,$on:(y,S)=>A(e,y,S)})}var wu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Cb=F('<div class="preview svelte-vdzt6e"></div>'),Sb=F('<div class="time svelte-vdzt6e"> </div>'),Tb=F('<div class="timeline-preview svelte-vdzt6e"><!> <div class="episode svelte-vdzt6e"><!></div> <!></div>'),Ib={hash:"svelte-vdzt6e",code:".timeline-preview.svelte-vdzt6e {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-vdzt6e {bottom:72px;}.preview.svelte-vdzt6e {margin-bottom:10px;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-vdzt6e {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-vdzt6e {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 Cu(t,e){if(new.target)return k({component:Cu,...t});E(e,!0),ne(t,Ib);let[i,o]=Xe(),n=()=>I(S,"$playerSize",i),r=()=>I(y,"$rotateAlpha",i),l={MOBILE:150,DESKTOP:278},d=p(e,"time",7,""),a=p(e,"isMobile",7,!1),c=p(e,"videoEpisodes",23,()=>[]),f=p(e,"previewThumbsData",7),g=p(e,"progress",7,0),m=p(e,"duration",7,0),h=p(e,"isInteractive",7,!1),_=He(),y=_.ui.rotateAlpha,S=_.ui.playerSize,L=ue(0),B=ue(0),V=ue(""),N=ue(0),T=ue(0),U=ue(0),K=ue(0),H=$(()=>wu(g(),m(),c())),G=$(()=>J(n().height,a()));rt(()=>{(X=>(Y(L,Ae(X.width)),Y(B,Ae(X.height))))(te())}),rt(()=>{(X=>(Y(V,Ae(X.imgSrc)),Y(N,Ae(X.imgWidth)),Y(T,Ae(X.imgHeight)),Y(U,Ae(X.imgOffsetX)),Y(K,Ae(X.imgOffsetY))))(xe(g()))});function J(X,ce){var le;let Be=ce?l.MOBILE:l.DESKTOP,{isVertical:Z}=de(),De=30;return(le=s(H))!=null&&le.text&&(De+=16),Z&&(De+=18,De+=50),Math.min(Math.max(X-De,0),Be)}function de(){let X=f().frameWidth,ce=f().frameHeight,Be=ce>X;return{width:X,height:ce,isHorizontal:!Be,isVertical:Be}}function te(){let{height:X,isHorizontal:ce,isVertical:Be,width:Z}=de();return ce&&(X=X/Z*s(G),Z=s(G)),Be&&(Z=Z/X*s(G),X=s(G)),{width:Z,height:X}}function xe(X){let ce;f().isUV?ce=Math.floor(m()*X/f().frequency):ce=Math.min(f().countTotal,Math.max(0,Math.floor(f().countTotal*X)));let Be=Math.floor(ce/f().countPerImage),Z=Math.floor(ce%f().countPerImage/f().countPerRow),De=ce%f().countPerRow,le=Math.floor(f().countPerImage/f().countPerRow);!f().isUV&&Be===Math.floor(f().countTotal/f().countPerImage)&&(le=Math.floor(f().countTotal%f().countPerImage/f().countPerRow),f().countTotal%f().countPerImage%f().countPerRow>0&&le++);let Ke=f().countPerRow;!f().isUV&&Be===Math.floor(f().countTotal/f().countPerImage)&&f().countTotal%f().countPerImage>0&&(Ke=Math.min(f().countPerRow,f().countTotal%f().countPerImage));let lt=s(L)*Ke,at=s(B)*le,we=-De*s(L),$e=-Z*s(B);return{imgSrc:f().links[Be],imgWidth:lt,imgHeight:at,imgOffsetX:we,imgOffsetY:$e}}var Ce=Tb(),Q=x(Ce);{var pe=X=>{var ce=Cb();R(()=>fe(ce,"style",`width: ${s(L)}px; height: ${s(B)}px; background-image: url(${s(V)}); background-size: ${s(N)}px ${s(T)}px; background-position: ${s(U)}px ${s(K)}px; transform: translateY(${r()%180?-35:0}px) rotate(${r()}deg);`)),w(X,ce)};W(Q,X=>{s(V)&&X(pe)})}var he=O(Q,2),j=x(he);{var ae=X=>{var ce=Ze(),Be=Ie(ce);{var Z=le=>{var Ke=rr();R(lt=>ke(Ke,lt),[()=>ee("tooltip_episode_unfinished")]),w(le,Ke)},De=le=>{var Ke=rr();R(()=>ke(Ke,s(H).text||"")),w(le,Ke)};W(Be,le=>{h()&&s(H).completed===!1?le(Z):le(De,!1)})}w(X,ce)};W(j,X=>{s(H)&&X(ae)})}b(he);var q=O(he,2);{var Ge=X=>{var ce=Sb(),Be=x(ce,!0);b(ce),R(()=>ke(Be,d())),w(X,ce)};W(q,X=>{h()||X(Ge)})}b(Ce),R(()=>{re(Ce,"mobile",a()),fe(he,"style",`max-width: ${s(L)}px;`)}),w(t,Ce);var Re=P({get time(){return d()},set time(X=""){d(X),u()},get isMobile(){return a()},set isMobile(X=!1){a(X),u()},get videoEpisodes(){return c()},set videoEpisodes(X=[]){c(X),u()},get previewThumbsData(){return f()},set previewThumbsData(X){f(X),u()},get progress(){return g()},set progress(X=0){g(X),u()},get duration(){return m()},set duration(X=0){m(X),u()},get isInteractive(){return h()},set isInteractive(X=!1){h(X),u()},$set:M,$on:(X,ce)=>A(e,X,ce)});return o(),Re}var kb=F('<span class="time svelte-1jr6obn"> </span>'),Eb=F("<!> <!>",1),Pb={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 Su(t,e){var pt;if(new.target)return k({component:Su,...t});E(e,!0),ne(t,Pb);let[i,o]=Xe(),n=()=>I(J,"$interactiveEpisodes$",i),r=()=>I(N,"$duration$",i),l=()=>I(V,"$position$",i),d=()=>I(xe,"$isInteractiveExpectation$",i),a=()=>I(te,"$isInteractiveTime$",i),c=()=>I(T,"$isLive$",i),f=()=>I(K,"$isMobile",i),g=()=>I(U,"$isActiveLive$",i),m=()=>I(B,"$bufferedProgress$",i),h=()=>I(pe,"$disabledControls$",i),_=p(e,"showTimeline",7,!1),y=p(e,"ref",15,void 0),S=He(),L=Xt(),B=S.state.bufferedProgress$,V=S.state.positionWithScrubbing$,N=S.state.duration$,T=S.state.isLive$,U=S.state.isActiveLive$,K=S.ui.isMobile,H=L.features.episodes?S.actions.internal.getVideoEpisodes():void 0,G=S.actions.internal.getPreviewThumbsData(),J=S.state.interactiveEpisodes$,de=S.state.isInteractive,te=S.state.isInteractiveTime$,xe=S.state.isInteractiveExpectation$,Ce=S.actions.internal.correctSeekTimeToInteractive,Q=(pt=S.callbacks)==null?void 0:pt.onDisabledTimelineClick,pe=S.ui.controls.disabledControls$,he=S.ui.t,j=L.features.interactiveResponsiveUi,ae=$(()=>de?n():H),q=$(()=>dr(r())),Ge=$(()=>dr(l())),Re=$(()=>l()/r()),X=$(()=>d()||a()),ce=ue(!1),Be=ue(""),Z=ue(0),De=ue(0),le=ue(0),Ke=$(()=>({containerWidth:s(De),translateXPx:s(Z),translateYPx:de&&G?-36:-16,active:s(ce)&&_()&&!s(X)&&!j,pointer:!L.features.timelinePreview||!G||c()})),lt=he("aria_timeline"),at=$(()=>he("aria_timeline_value",{position:s(Ge),duration:s(q)}));function we(Ve){return!Ce||!de?Ve:Ce(Ve*r())/r()}function $e(Ve){S.actions.internal.startScrubbing(we(Ve))}function Je(Ve){a()||S.actions.internal.progressScrubbing(we(Ve))}function vt(Ve){S.actions.internal.completeScrubbing(we(Ve)),Y(ce,!1)}function ve(Ve,_t,me){ie(Ve,_t,me),Y(ce,!0)}function je(Ve,_t,me){ie(Ve,_t,me),Y(ce,!0)}function Ct(){Y(ce,!1)}function ie(Ve,_t,me){Y(le,Ae(we(Ve))),Y(Z,Ae(_t)),me&&Y(De,Ae(me)),Y(Be,Ae(et(Ve)))}function et(Ve){let _t=dr((c()?1-Ve:Ve)*r());return c()?`-${_t}`:_t}var ht=Eb(),ft=Ie(ht);xu(ft,hs(()=>s(Ke),{children:(Ve,_t)=>{var me=Ze(),Bt=Ie(me);{var Ut=We=>{Cu(We,{get time(){return s(Be)},get isMobile(){return f()},get videoEpisodes(){return s(ae)},previewThumbsData:G,get progress(){return s(le)},get duration(){return r()},isInteractive:de})},jt=We=>{var ct=kb(),gt=x(ct,!0);b(ct),R(()=>ke(gt,s(Be))),w(We,ct)};W(Bt,We=>{L.features.timelinePreview&&G&&!c()?We(Ut):We(jt,!1)})}w(Ve,me)},$$slots:{default:!0}}));var be=O(ft,2);let Pe=$(()=>Math.round(s(Re)*100)),ye=$(()=>h().has("TIMELINE"));Ws(be,{className:"timeline-slider",get isActiveLive(){return g()},get isMobile(){return f()},ariaLabel:lt,ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return s(Pe)},get ariaValueText(){return s(at)},get loadedProgress(){return m()},get filledProgress(){return s(Re)},get handleProgress(){return s(Re)},get videoEpisodes(){return s(ae)},onPointerDown:$e,onHandleMove:Je,onPointerMove:je,onPointerUp:vt,onPointerEnter:ve,onPointerLeave:Ct,onDisabledClick:Q,isInteractive:de,get disabled(){return s(ye)},get hideHandel(){return a()},get ref(){return y()},set ref(Ve){y(Ve)}}),w(t,ht);var Ye=P({get showTimeline(){return _()},set showTimeline(Ve=!1){_(Ve),u()},get ref(){return y()},set ref(Ve=void 0){y(Ve),u()},$set:M,$on:(Ve,_t)=>A(e,Ve,_t)});return o(),Ye}var Ab={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 yl(t,e){if(new.target)return k({component:yl,...t});E(e,!0),ne(t,Ab);let[i,o]=Xe(),n=()=>I(a,"$isMobile",i),r=p(e,"position",7,0),l=p(e,"duration",7,0),d=He(),a=d.ui.isMobile,c=d.ui.t,f=$(()=>dr(l())),g=$(()=>dr(r())),m=$(()=>r()/l()),h=$(()=>c("aria_timeline_value",{position:s(g),duration:s(f)})),_=$(()=>Math.round(s(m)*100));Ws(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(_)},get ariaValueText(){return s(h)},get filledProgress(){return s(m)},hideHandel:!0,get squareBorders(){return n()}});var y=P({get position(){return r()},set position(S=0){r(S),u()},get duration(){return l()},set duration(S=0){l(S),u()},$set:M,$on:(S,L)=>A(e,S,L)});return o(),y}var Mb=F('<div class="timeline svelte-1gqonyf"><!></div>'),Lb=F('<div class="timeline-stub svelte-1gqonyf"></div>'),Vb={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function xl(t,e){if(new.target)return k({component:xl,...t});E(e,!0),ne(t,Vb);let[i,o]=Xe(),n=()=>I(_,"$isLive$",i),r=()=>I(L,"$isMobile",i),l=()=>I(S,"$adPosition",i),d=()=>I(y,"$adDuration",i),a=p(e,"isAds",7,!1),c=p(e,"canRewindLive",7),f=p(e,"isRewindableLive",7),g=p(e,"isHidden",7,!1),m=p(e,"ref",15,void 0),h=He(),_=h.state.isLive$,y=h.ads.duration,S=h.ads.position,L=h.ui.isMobile,B=$(()=>!g()&&(!n()||n()&&c()&&f()||a()));var V=Ze(),N=Ie(V);{var T=H=>{var G=Mb(),J=x(G);{var de=xe=>{yl(xe,{get position(){return l()},get duration(){return d()}})},te=xe=>{Su(xe,{get showTimeline(){return s(B)},get ref(){return m()},set ref(Ce){m(Ce)}})};W(J,xe=>{a()?xe(de):xe(te,!1)})}b(G),R(()=>re(G,"mobile",r())),w(H,G)},U=H=>{var G=Lb();R(()=>re(G,"mobile",r())),w(H,G)};W(N,H=>{s(B)?H(T):H(U,!1)})}w(t,V);var K=P({get isAds(){return a()},set isAds(H=!1){a(H),u()},get canRewindLive(){return c()},set canRewindLive(H){c(H),u()},get isRewindableLive(){return f()},set isRewindableLive(H){f(H),u()},get isHidden(){return g()},set isHidden(H=!1){g(H),u()},get ref(){return m()},set ref(H=void 0){m(H),u()},$set:M,$on:(H,G)=>A(e,H,G)});return o(),K}import{noop as Bb}from"@vkontakte/videoplayer-shared/es2018";var Rb=Le('<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 Tu(t,e){if(new.target)return k({component:Tu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=Rb();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(3),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var Nb=Le('<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 Iu(t,e){if(new.target)return k({component:Iu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=Nb();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var Db=F('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Ob=F('<span class="text svelte-1yhs2ga"> </span>'),Hb=F('<span class="text count svelte-1yhs2ga"> </span>'),Fb=F("<!> <!>",1),Ub={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 wl(t,e){var Q,pe,he;if(new.target)return k({component:wl,...t});E(e,!0),ne(t,Ub);let[i,o]=Xe(),n=()=>I(_,"$currentGridType$",i),r=()=>I(y,"$openedByKeyboard$",i),l=()=>I(S,"$panelOpened$",i),d=()=>I(L,"$isMobile",i),a=p(e,"position",7,0),c=p(e,"duration",7,0),f=p(e,"timeCodes",23,()=>[]),g=He(),m=(pe=(Q=g.callbacks)==null?void 0:Q.onEpisodeChanged)!=null?pe:Bb,h=!!((he=g.callbacks)!=null&&he.onEpisodeClicked),_=g.ui.currentGridType$,y=g.ui.episodes.openedByKeyboard$,S=g.ui.episodes.panelOpened$,L=g.ui.isMobile,B=g.ui.t,V=ue(void 0),N=j=>{var q,Ge,Re;if(!!((q=g.callbacks)!=null&&q.onEpisodeClicked)){let X=Os(j);y.set(X),S.set(!0),(Re=(Ge=g.callbacks)==null?void 0:Ge.onEpisodeClicked)==null||Re.call(Ge,X)}},T=ue(null),U=$(()=>a()/c());rt(()=>{var ae;let j=wu(s(U),c(),f());j?((ae=s(T))==null?void 0:ae.time)!==j.time&&(m(j),Y(T,Ae(j))):Y(T,null)});let K=$(()=>{var j;return((j=s(T))==null?void 0:j.text)||""}),H=$(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&Th(n(),"xl")?"COUNT":"SHORT"),G=$(()=>`${B("tooltip_episodes")}: ${s(K)}`),J=async(j,ae,q)=>{await fo(),(j==null?void 0:j.getAttribute("aria-expanded"))==="false"&&ae&&!q&&Tt(()=>{y.set(!1),j.focus()})};rt(()=>{J(s(V),r(),l())});var de=Ze(),te=Ie(de);{var xe=j=>{let ae=$(()=>d()?"px-0":"");Ot(j,{get className(){var q;return`w-max btn-full-opacity btn-jc-l ${(q=s(ae))!=null?q:""}`},testId:"btn-episodes",click:N,disabled:!h,get ariaExpanded(){return l()},get ariaLabel(){return s(G)},get ref(){return s(V)},set ref(q){Y(V,Ae(q))},children:(q,Ge)=>{var Re=Ze(),X=Ie(Re);{var ce=Z=>{var De=Db(),le=Ie(De),Ke=x(le,!0);b(le);var lt=O(le,2),at=x(lt);Iu(at,{}),b(lt),R(()=>ke(Ke,s(K))),w(Z,De)},Be=Z=>{var De=Fb(),le=Ie(De);Tu(le,{});var Ke=O(le,2);{var lt=we=>{var $e=Ob(),Je=x($e,!0);b($e),R(()=>ke(Je,s(K))),w(we,$e)},at=we=>{var $e=Ze(),Je=Ie($e);{var vt=ve=>{var je=Hb(),Ct=x(je,!0);b(je),R(()=>ke(Ct,f().length)),w(ve,je)};W(Je,ve=>{s(H)==="COUNT"&&ve(vt)},!0)}w(we,$e)};W(Ke,we=>{s(H)==="FULL"?we(lt):we(at,!1)})}w(Z,De)};W(X,Z=>{d()?Z(ce):Z(Be,!1)})}w(q,Re)},$$slots:{default:!0}})};W(te,j=>{s(T)&&j(xe)})}w(t,de);var Ce=P({get position(){return a()},set position(j=0){a(j),u()},get duration(){return c()},set duration(j=0){c(j),u()},get timeCodes(){return f()},set timeCodes(j=[]){f(j),u()},$set:M,$on:(j,ae)=>A(e,j,ae)});return o(),Ce}import{debounceFn as Hy}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as jb,PlaybackState as xd,Player as Zb,PredefinedQualityLimits as os,VideoFormat as wd,clientChecker as Xb}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Ln,getHighestQuality as Jb,InterfaceLanguage as ey,isInvariantQuality as ty,isNonNullable as iy,loadVKLangPack as oy,Logger as ny,map as Dh,merge as ry,Observable as sy,Subject as Vu,Subscription as xm,Tracer as ay,ValueSubject as ly,VideoQuality as dy,devNull as cy,now as uy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as ys}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as zb,devNull as ei,now as ti}from"@vkontakte/videoplayer-shared/es2018";import{addScript as Wb,Subject as Vo,clearVideoElement as qb}from"@vkontakte/videoplayer-shared/es2018";var Ah=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var Kb="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ku=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 Vo,loadStarted$:new Vo,loadEnded$:new Vo,loadError$:new Vo,ready$:new Vo,slotRequested$:new Vo,started$:new Vo,timeRemained$:new Vo,paused$:new Vo,resumed$:new Vo,ended$:new Vo,empty$:new Vo,skipped$:new Vo,clicked$:new Vo,closed$:new Vo,error$:new Vo};this.loadAdman=e=>(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[ti()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[ti()]}),i(),this.events.loadEnded$.next()):(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[ti()]}),o())};Wb(Kb,e,this.loadTimeout).then(()=>{ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[ti()]}),window.AdmanHTML?(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[ti()]}),i(),this.events.loadEnded$.next()):(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[ti()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[ti()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[ti()]}),i(),this.events.loadEnded$.next()):(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[ti()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[ti()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[ti()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[ti()]}),!d&&(window.AdmanHTML?(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[ti()]}),i(),this.events.loadEnded$.next()):(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[ti()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[ti()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[ti(),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"}),Ne(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),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(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[ti()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[ti()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[ti()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var V;if(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[ti(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:c={},duration:f,previewParam:g}=e,m,h=this.playerState&&Ne(this.playerState.vsid);h&&(this.isVsidOriginal?m=h:m=parseInt(h,36));let{isEmbed:_,immediateOrigin:y}=zb(),S=(V=_?y:window.location.href)!=null?V:window.location.href,L={...c,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:g,...m?{request_id:m}:{},duration:f,puid10:Ah(i,o),puid11:n?0:1};g||delete L.preview;let B={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:L,browser:{mobile:!1}};try{let N=new window.AdmanHTML;N.setDebug(!1),N.onReady(this.onAdsReady),N.onStarted(this.onAdStarted),N.onPlayed(this.onAdPlayed),N.onPaused(this.onAdPaused),N.adMidrollPoint(this.onAdMidrollPoint),N.onClosed(this.onAdClosed),N.onSkipped(this.onAdSkipped),N.onClicked(this.onAdClicked),N.onTimeRemained(this.onAdTimeRemained),N.onCompleted(this.onAdCompleted),N.onError(this.onAdError),N.init(B),this.adman=N,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(B)}`})}catch(N){ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(N)],numbers:[ti()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[ti()]}),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 l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.adsState){this.log({message:"toggle play"});let i=Ne(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[ti()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[ti()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e;ei.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[ti()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&qb(this.videoElement),this.isDestroyed=!0}};var Mh=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 hm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let c=new Eu,{startTime:f,endTime:g}=c.parse(a);l.startTime=f,l.endTime=g}else if(a.trim()!==""){let c=new _m,{texts:f}=c.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Eu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},_m=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let c=["<",">"].reduce((f,g)=>{let m=l.indexOf(g,d);return f===-1||f>m?m:f},-1);if(c===-1){a.push(l.substring(d));break}a.push(l.substring(d,c)),d=c+1}return a}}),r=new Eu;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},Lh=hm;import{isNonNullable as $m}from"@vkontakte/videoplayer-shared/es2018";var xa,Si,bm=0,ym=!1,Vh="",Rh=(t,e=0,i=0)=>t<e&&t<i,Pu=(t,e=0,i=0)=>t>=e&&t<=i,Qb=(t,e=0,i=0)=>t>e&&t>i,Nh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:c,endTime:f})=>Pu(t,c,f));let r=t>=bm,l=t<bm;if(bm=t,l&&(ym=!1),$m(xa)&&Pu(t,xa.startTime,xa.endTime)&&Vh===e.value)return xa;if(!$m(Si)&&(n!=null&&n.length)&&!ym){Si=n.find(({startTime:c,endTime:f})=>Pu(t,c,f)||r&&Rh(t,c,f)),xa=void 0,!$m(Si)&&n[n.length-1].endTime<t&&(ym=!0);return}else{if(Pu(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))return xa=Si,Si=void 0,Vh=e.value,xa;(r&&Qb(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime)||l&&Rh(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))&&(Si=void 0)}};var Bh={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"},Gb={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Au=t=>{var e,i;return(i=(e=Bh[t])!=null?e:Bh[Gb[t]])!=null?i:void 0};import{Subscription as Yb}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Mu=class{constructor(e,i=new Yb){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Lu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Lu||{});var is=t=>t!=null?t:0,Cl=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(is(i==null?void 0:i.top)-is(o==null?void 0:o.top)),left:Math.round(is(i==null?void 0:i.left)-is(o==null?void 0:o.left)),bottom:Math.round(is(i==null?void 0:i.bottom)-is(o==null?void 0:o.top)),right:Math.round(is(i==null?void 0:i.right)-is(o==null?void 0:o.left))}},Sl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:is(e==null?void 0:e.width),height:is(e==null?void 0:e.height)}};var Oh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:c,videoEpisodes:f,previewThumbsData:g,uiConfig:m,coreConfig:h,player:_,disabledControls:y,isInteractive:S,interactiveRanges$:L,isInteractiveTime$:B,replayInteractive:V,stopPlayer:N,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:U,additionalButtons:K,additionalSettingsMenuItems:H,additionalContextMenuItems:G,playPrevVideo:J,playNextVideo:de,looped:te=!1,statistics:xe,saveRate:Ce,internalsExposure:Q})=>{var Kd,Kl,Qd;let pe={...h,configName:[...(Kd=h.configName)!=null?Kd:[],"ui"],isAudioDisabled:l,live:{...(Kl=h.live)!=null?Kl:{},isLiveCatchUpMode:!!n}},he=m,j=ay.createRootTracer(he.features.saveTraceInfoToFile),ae=j.createComponentTracer("Store"),q=_||new Zb(pe,j);Q==null||Q.expose({corePlayer:q});let Ge=new ny,Re=new ku(Ge,{loadTimeout:he.ads.loadTimeout,initTimeout:he.ads.initTimeout,runtimeTimeout:he.ads.runtimeTimeout,useAdmanFromNPM:he.ads.useAdmanFromNPM,volumeMultiplier:he.ads.volumeMultiplier,isVsidOriginal:he.ads.isVsidOriginal}),X=ma.getInstance(),ce=c==null?void 0:c.pictureInPictureApi,Be=c==null?void 0:c.annotationsApi,Z=Ge.createComponentLog("Store"),De,le,Ke={},lt=new wc,at=xe?ii(xe.oneStat.vsid$):lr(void 0),we=Se(Ns()),$e=Se(!1),Je=(Qd=ce==null?void 0:ce.info.isActive$)!=null?Qd:new ly(!1),vt=Se(0),ve=Se([]),je=ry(q.events.fatalError$,q.events.managedError$).subscribe(v=>ve.update(C=>[...C,v])),Ct=lr(!1,v=>{let C=q.events.fatalError$.subscribe(()=>v(!0));return()=>C.unsubscribe()}),ie=async v=>{var Ee;let C=Object.values(ey).includes(v);if(he.downloadVKLanguages&&(C&&he.updateBuiltinLanguages||!cm(v))){let ot;try{ot=await oy(v,_g,$g)}catch(_e){(Ee=xe==null?void 0:xe.oneStat)==null||Ee.logError({errorType:"VKLangPack",fatal:!1}),X==null||X.report(_e,{errorType:"VKLangPack",fatal:!1})}ot&&(dm({language:v,pack:ot,fallback:he.defaultLanguage}),et.set(v))}cm(v)&&et.set(v)},et=Se(t),ht=Se(e);ie(t);let ft=(v,C)=>{let z=Ne(et);return um(z,v,C,he.defaultLanguage)},be=Se("thumb"),Pe=(()=>{let v=mi([Ct,be],([C,z])=>C?"crashed":z);return{...v,is:C=>Ne(v)===C}})(),ye=(()=>{let v=Se(new Set(y));return{...v,add:C=>{v.update(z=>new Set([...z].concat(C)))},remove:C=>{v.update(z=>{let Ee=[...z];return new Set(Array.isArray(C)?Ee.filter(ot=>!C.includes(ot)):Ee.filter(ot=>ot!==C))})},includes:C=>{let z=Ne(v);return Array.isArray(C)?C.every(Ee=>z.has(Ee)):z.has(C)}}})();ae.log("create store"),Z({message:"create store"});let Ye=v=>{let C=v.container;C.append(q.experimental.element$.getValue()),jt=new MutationObserver(z=>{let{removedNodes:Ee}=z[0];Ee.length&&C.append(q.experimental.element$.getValue())}),jt.observe(C,{childList:!0})},pt=v=>{Z({message:`init video, config: ${JSON.stringify(v)}`}),S?Ye(v):(cy.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[uy()]}),q.initVideo(v)),ae.log("init video",{isInteractive:S}),v.subtitles&&q.setExternalTextTracks(v.subtitles),De=v},Ve=new Vu,_t=v=>Ve.next(v),me=new Vu,Bt=new Vu,Ut=new Vu,jt=null,We={actionRewind$:me,actionSeek$:Bt,inPiP$:Je,inFullscreen$:new sy(v=>we.subscribe(C=>v.next(C))),actionSetSubtitle$:Ut,nextMovie$:Ve};if(xe){let{oneStat:v,statSubscription:C}=xe;S||C.add(v.attachTo(q)),C.add(v.attachToUi(We)),C.add(v.attachToAds(Re.events)),v.authorize(r).catch(z=>{Z({message:`onestat auth error ${String(z)}`})})}if(X){let v=new xm,C=(z,Ee)=>v.add(z.subscribe(Ee));if(C(q.events.managedError$,z=>{X.logIError(z)}),C(q.events.fatalError$,z=>{X.logIError(z,!0)}),xe){let{oneStat:z}=xe;C(z.experimental.error$,Ee=>{X.logIError(Ee)})}X.sentrySubscription.add(v)}let ct=()=>{Xb.device.isIOS&&le&&ih(le).catch(v=>{Z({message:`exitIosSafariFullscreen failed: ${v}`})})},gt=new xm().add(q.experimental.element$.subscribe(v=>{v&&(le=v,v.classList.add("player-media"),ha(ce)&&(ce.updateVideoElement(),ce.registryEventHandlers()),S&&v.setAttribute("pip","false"))})).add(q.events.ended$.subscribe(()=>{var v;ct(),(v=a==null?void 0:a.onEnded)==null||v.call(a)})).add(q.events.looped$.subscribe(()=>{var v;(v=a==null?void 0:a.onLooped)==null||v.call(a)})).add(q.events.started$.subscribe(async()=>{var C,z;ha(ce)&&await(ce==null?void 0:ce.revealPictureInPicture());let v=q.info.muted$.getValue();(C=a==null?void 0:a.onStarted)==null||C.call(a),(z=Ke.onStarted)==null||z.call(Ke,v)})).add(q.events.willSeek$.subscribe(({from:v,to:C})=>{var z;(z=a==null?void 0:a.onSeek)==null||z.call(a,v,C)})).add(q.events.autoplaySoundProhibited$.subscribe(()=>{var v;(v=a==null?void 0:a.onAutoplaySoundProhibited)==null||v.call(a)})).add(q.info.position$.subscribe(v=>{var z;let C=q.info.duration$.getValue();isFinite(C)&&C>0&&((z=a==null?void 0:a.onTimeupdate)==null||z.call(a,C,v),Re.setPosition(v,C))})).add(q.events.fatalError$.subscribe(v=>{var C;(C=a==null?void 0:a.onCrashed)==null||C.call(a,v?`${v.id}: ${v.message}`:void 0)})).add(q.events.fetcherRecoverableError$.subscribe(v=>{var C;(C=a==null?void 0:a.onRecoverableError)==null||C.call(a,v?`${v.id}: ${v.message}`:void 0)})).add(q.events.loadedMetadata$.subscribe(()=>{At.state.loadedMetadata$.set(!0)})).add(q.info.is3DVideo$.subscribe(v=>{At.ui.is3DVideo.set(v)})).add(q.info.isEnded$.subscribe(v=>{S&&(v?(B!=null&&B.getValue()&&ye.add(vd),ye.add("PLAY_BUTTON")):ye.remove("PLAY_BUTTON"))})).add(q.info.liveTime$.subscribe(v=>{var C;(C=a==null?void 0:a.onLiveTime)==null||C.call(a,v)})).add(q.info.isStalled$.subscribe(v=>{var C;(C=a==null?void 0:a.onStalledChanged)==null||C.call(a,v)})).add(q.info.isLiveEnded$.subscribe(v=>{var C;return v&&((C=a==null?void 0:a.onLiveEnded)==null?void 0:C.call(a))})).add(Re.events.loadStarted$.subscribe(()=>{var v,C;return(C=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onLoadStarted)==null?void 0:C.call(v)})).add(Re.events.loadEnded$.subscribe(()=>{var v,C;return(C=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onLoadEnded)==null?void 0:C.call(v)})).add(Re.events.loadError$.subscribe(()=>{var v,C;return(C=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onLoadError)==null?void 0:C.call(v)})).add(Re.events.init$.subscribe(()=>{var v,C;return(C=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onInit)==null?void 0:C.call(v)})).add(Re.events.ready$.subscribe(()=>{var v,C;return(C=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onReady)==null?void 0:C.call(v)})).add(Re.events.started$.subscribe(v=>{var C,z;return(z=(C=a==null?void 0:a.adsInfo)==null?void 0:C.onStarted)==null?void 0:z.call(C,v)})).add(Re.events.timeRemained$.subscribe(v=>{var C,z;return(z=(C=a==null?void 0:a.adsInfo)==null?void 0:C.onTimeRemained)==null?void 0:z.call(C,v)})).add(Re.events.ended$.subscribe(v=>{var C,z;return(z=(C=a==null?void 0:a.adsInfo)==null?void 0:C.onCompleted)==null?void 0:z.call(C,v)})).add(Re.events.empty$.subscribe(()=>{var v,C;return(C=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onEmpty)==null?void 0:C.call(v)})).add(Re.events.clicked$.subscribe(v=>{var C,z;return(z=(C=a==null?void 0:a.adsInfo)==null?void 0:C.onClicked)==null?void 0:z.call(C,v)})).add(Re.events.closed$.subscribe(v=>{var C,z;return(z=(C=a==null?void 0:a.adsInfo)==null?void 0:C.onClosed)==null?void 0:z.call(C,v)})).add(Re.events.error$.subscribe(v=>{var C,z;return(z=(C=a==null?void 0:a.adsInfo)==null?void 0:C.onError)==null?void 0:z.call(C,v)})).add(Re.events.paused$.subscribe(()=>{var v,C;return(C=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onPaused)==null?void 0:C.call(v)})).add(Re.events.resumed$.subscribe(()=>{var v,C;return(C=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onResumed)==null?void 0:C.call(v)})),kt=new xm,qe=()=>{var _e,nt,St;let{debugLog:v}=he,C,z="#9df7b7",Ee="#efd169";if(v&&v!==!0){let{colors:Nt}=v;C=v.tag,z=(_e=Nt==null?void 0:Nt[0])!=null?_e:z,Ee=(St=(nt=Nt==null?void 0:Nt[1])!=null?nt:Nt==null?void 0:Nt[0])!=null?St:Ee}let ot=C?`: ${C}`:"";kt.add(q.events.log$.subscribe(Nt=>{console.debug(`%c sdk${ot} `,`background:${z};`,`sdk component: ${Nt.component}`,Nt.message)})).add(Ge.log$.subscribe(Nt=>{console.debug(`%c ui${ot} `,`background:${Ee};`,`ui component: ${Nt.component}.`,Nt.message)}))},zt=()=>{kt.unsubscribe()},oi=(v,C)=>{ae.log("start camera manual rotation",{mx:v,my:C}),q.startCameraManualRotation(v,C)},ri=(v=!1)=>{ae.log("stop camera manual rotation",{immediate:v}),q.stopCameraManualRotation(v)},vi=(v,C,z)=>{ae.log("move camera focus px",{xpx:v,ypx:C,dt:z}),q.moveCameraFocusPX(v,C,z)},mt=()=>{q.holdCamera()},dt=()=>{q.releaseCamera()},$t=lr(q.info.position$.getValue(),v=>{let C,z,Ee=()=>{let ot=q.info.playbackState$.getValue(),_e=q.info.isLive$.getValue(),nt=q.info.duration$.getValue(),St=q.info.position$.getValue();if(ot&&[xd.PLAYING,xd.PAUSED].includes(ot)){let Nt=_e?St-nt:q.getExactTime();Nt!==z&&v(Nt),z=Nt}C=requestAnimationFrame(Ee)};return Ee(),()=>cancelAnimationFrame(C)}),D=ii(q.info.playbackState$),Yt=ii(q.info.currentBuffer$),li=ii(q.info.isEnded$),Ti=ii(q.info.isLive$),di=he.features.playbackRate?ii(q.info.canChangePlaybackSpeed$):lr(!1),gi=ii(q.info.liveBufferTime$),xi=ii(q.info.volume$),ao=ii(q.info.muted$),si=Cc(q.info.predefinedQualityLimitType$.pipe(Dh(v=>v===os.TRAFFIC_SAVING)),q.info.predefinedQualityLimitType$.getValue()===os.TRAFFIC_SAVING),So=Cc(q.info.predefinedQualityLimitType$.pipe(Dh(v=>v===os.HIGH_QUALITY)),q.info.predefinedQualityLimitType$.getValue()===os.HIGH_QUALITY),un=ii(q.info.autoQualityLimitingAvailable$),ur=ii(q.info.availableQualities$),Rn=ii(q.info.availableQualitiesFps$),No=ii(q.info.chromecastState$),tt=ii(q.info.chromecastDeviceName$),Mt=ii(q.info.currentFormat$),lo=ii(q.info.throughputEstimation$),To=ii(q.info.videoBitrate$),Io=ii(q.info.intrinsicVideoSize$),Yi=ii(q.info.duration$),Rt=ii(q.info.isAudioAvailable$),Ii=null,Ui=q.info.isBuffering$,ko=lr(Ui.getValue(),v=>{let C=Ui.subscribe(z=>{z&&Ii===null?Ii=window.setTimeout(()=>{v(Ui.getValue()),Ii=null},he.loaderDelay):v(z)});return()=>{C.unsubscribe(),Ii&&clearTimeout(Ii)}}),Qt=()=>{Ii&&clearTimeout(Ii),Ii=null},Mi=mi([Yi,Ti],([v,C])=>C?-v:v),ni=mi([D],([v])=>v===xd.PLAYING),Nn=ii(q.info.atLiveEdge$),Bn=ii(q.info.atLiveDurationEdge$),Zo=ii(q.info.position$),co=mi([Zo,Yi],([v,C])=>isFinite(v)&&isFinite(C)&&!!C),ci=mi([No],([v])=>v===jb.CONNECTED),Dn=ii(q.info.availableVideoStreams$),On=he.features.audioLanguages?ii(q.info.availableAudioStreams$):lr([]),Eo=ii(q.info.currentVideoStream$),Or=ii(q.info.currentAudioStream$),Po=v=>{v.language&&lm(v.language),q.setVideoStream(v)},eo=v=>{v.language&&lm(v.language),q.setAudioStream(v)},Hn=v=>{let C;if(v.length===1&&(C=v.at(0)),C!=null||(C=v.find(Ee=>"isDefault"in Ee&&Ee.isDefault)),C)return C;let z=Ug();return z&&(C=v.find(({language:Ee})=>z===Ee)),C!=null||(C=v.at(0)),C},pr=!1;gt.add(q.info.availableAudioStreams$.subscribe(v=>{if(!pr&&v.length){let C=Hn(v);C&&(q.setAudioStream(C),pr=!0)}}));let Bo=!1;gt.add(q.info.availableVideoStreams$.subscribe(v=>{if(!Bo&&v.length){let C=Hn(v);C&&(q.setVideoStream(C),Bo=!0)}}));let Xo=Se(void 0),fr=ii(q.info.isAutoQualityEnabled$,v=>v&&Xo.set(void 0)),rs=ii(q.info.currentQuality$,()=>Xo.set(void 0)),Fn=mi([Xo,rs],([v,C])=>v!=null?v:C),Un=mi(Mt,v=>v!==wd.MPEG),uo=mi([ur,Rn,fr,Fn,Un],([v,C,z,Ee,ot])=>{let _e=[];ot&&_e.push({value:"auto",displayValue:ft("auto_quality_option"),selected:z});let nt=v.filter(St=>!ty(St));for(let St of nt){let Nt=C[St];_e.push({value:St,displayValue:`${St}${Nt?Mh(Nt):""}`,selected:z?!1:St===Ee})}return _e}),zn=ii(q.info.currentPlaybackRate$),Wn=mi([zn,Nn,Bn],([v,C,z])=>{let Ee=z||S?1:he.controls.playbackRateMin,ot=C?1:he.controls.playbackRateMax,_e=he.controls.playbackRateStep,nt=[];for(let St=Ee;St<=ot;St+=_e)nt.push({value:St,displayValue:St===1?ft("playback_rate_1"):ft("playback_rate",{multiplier:St.toString(10)}),selected:v===St});return nt}),Li={displayValue:ft("subtitles_off"),value:"off"},to=Se({...Li}),pn=he.features.subtitles?ii(q.info.availableTextTracks$):lr([]),fn=Lg(),mr=mi([pn,to],([v,C],z)=>{var _e;let Ee=[],ot=v.find(({id:nt})=>nt===C.value);if(ot!=null&&ot.url){let[,nt]=(_e=fn.find(ot.url))!=null?_e:[];if(nt){z(nt);return}lt.download(ot.url).then(St=>{if(!St||lt.isDestroyed())return;let Nt=new Lh,Zi=ot.language;if(Zi){let S_=!!ot.isAuto,T_=Nt.parse(St,Zi);Ee.push({lang:Zi,subtitles:T_,isAuto:S_,id:ot.id})}fn.add(ot.url,Ee),Ne(to).value===C.value&&z(Ee)}).catch(St=>{var Nt;(Nt=xe==null?void 0:xe.oneStat)==null||Nt.logError({errorType:"Subtitles download",fatal:!1}),X==null||X.report(St,{errorType:"Subtitles download",fatal:!1})})}z(Ee)}),mn=mi([zn,ni,to],([v,C,z],Ee)=>{let nt;if(q.info.isLive$.getValue()&&C&&z.value!==Li.value){let Nt=()=>{let Zi=1e3/(3*v);nt=setTimeout(Nt,Zi),Ee(Date.now())};return Nt(),()=>clearTimeout(nt)}}),Jo=mi([pn,to],([v,C])=>{if(!v.length)return[];let z=[];for(let{language:Ee,isAuto:ot,id:_e}of v){let nt=Ee&&Au(Ee);Ee&&nt&&z.push({displayValue:ot?ft("subtitles_auto",{language:nt}):nt,value:_e,selected:(C==null?void 0:C.value)===_e,isAuto:ot})}return z.length?(z.unshift({...Li,selected:(C==null?void 0:C.value)===Li.value}),z):[]}),Vi={available:[],prev:[]},vn=()=>{var C,z;let v=q.experimental.getCurrentTime$.getValue();return(z=(C=v==null?void 0:v())!=null?C:le==null?void 0:le.currentTime)!=null?z:0},yt=mi([$t,to,mr,mn],([v,C,z,Ee])=>{var _e;let ot=q.info.isLive$.getValue();if(ot&&Vi.prev!==z){let nt=z.find(({id:Nt})=>Nt===C.value),St=Vi.prev.find(({id:Nt})=>Nt===C.value);if(nt){let Nt={...nt,subtitles:[...(_e=St==null?void 0:St.subtitles)!=null?_e:[],...nt.subtitles]};Vi.available=[Nt],Vi.prev=z}}if(C&&C.value!==Li.value){let nt=ot?vn():v,St=ot?Vi.available:z;return Nh(nt,C,St,ot)}}),qn=mi([yt],([v])=>v!=null&&v.texts?v.texts:[]),vr=Se(!0),Kn=mi([Yt,Mi,Zo,gi],([v,C,z,Ee])=>{var St;let ot=(St=v==null?void 0:v.end)!=null?St:0;if(!Ee)return ot/C;let nt=-z+Ee-C;return(ot-nt)/C}),en=ii(q.info.availableSources$),gr=mi([en],([v])=>Object.keys((v==null?void 0:v[wd.MPEG])||{}).length>0),Do=()=>{var z,Ee,ot;let v=Object.keys(((Ee=(z=q.info.availableSources$)==null?void 0:z.getValue())==null?void 0:Ee[wd.MPEG])||{}),C=Jb(v)||dy.Q_144P;return(ot=De.sources[wd.MPEG])==null?void 0:ot[C]},Hr=()=>{var C;let v=Do();if(v)ae.log("download video",{url:v}),Pg(v,((C=De==null?void 0:De.meta)==null?void 0:C.title)||"video");else{let z="There is no URL for download video";ae.log("download video",{message:z}),Z({message:z})}},Qn=()=>{Z({message:"toggle muted"});let v=q.info.muted$.getValue();q.info.volume$.getValue()===0&&!v?Oo(_o()):io(!v)},hr=()=>{var v;if(At.ui.settingsMenu.visible$.set(!1),!Ne(At.ui.settingsSubMenu.visible$)){let C=Ne(At.ui.settingsMenu.ref$);if((v=a==null?void 0:a.uiInfo)!=null&&v.onSettingsMenu&&C){let Ee=Sl(C),ot={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:Ee,position:ot,name:"settings"})}}ae.log("close settings menu")},gn=async(v,C=()=>Promise.resolve())=>{var ot;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!v),At.ui.settingsMenu.visible$.set(!0),await C();let z=Ne(At.ui.settingsMenu.ref$),Ee=Ts();if((ot=a==null?void 0:a.uiInfo)!=null&&ot.onSettingsMenu&&z&&Ee){let nt=Sl(z),St=Cl(z,Ee);a.uiInfo.onSettingsMenu({visible:!0,size:nt,position:St,name:"settings"})}ae.log("open settings menu",{wasOpenedByKeyboard:v})},Gn=(v,C=!1)=>{var _e;At.ui.settingsSubMenu.visible$.set(!1);let z=Ne(At.ui.settingsMenu.ref$),Ee=Ts(),ot=Ne(At.ui.settingsMenu.visible$);if((_e=a==null?void 0:a.uiInfo)!=null&&_e.onSettingsMenu&&z&&Ee)if(ot&&!C){let St=Sl(z),Nt=Cl(z,Ee);a.uiInfo.onSettingsMenu({visible:!0,size:St,position:Nt,name:"settings"})}else{let St=Sl(v),Nt={top:0,left:0,bottom:0,right:0},Zi=Ne(At.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:St,position:Nt,name:Zi})}ae.log("close settings sub menu")},Yn=(v,C)=>{var Ee;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(C),At.ui.settingsSubMenu.name$.set(v);let z=Ts();if((Ee=a==null?void 0:a.uiInfo)!=null&&Ee.onSettingsMenu&&C&&z){let _e=Sl(C),nt=Cl(C,z);a.uiInfo.onSettingsMenu({visible:!0,name:v,size:_e,position:nt})}ae.log("open settings sub menu",{name:v})},_o=()=>{var C;let v=Math.max(he.volumeMinRestore,(C=Sc())!=null?C:0);return v===0?he.volumeDefault:v},Oo=v=>{let C=v===0?_o():v,z=q.info.muted$.getValue();Z({message:`set volume, volume: ${v}, preferredVolume: ${C}`}),z&&v>0&&!l&&(z=!1,sm(!1)),q.setVolume(v,z),Re.setVolume(v),tm(C)},io=v=>{let C=q.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${C}, mute: ${v}`}),q.setMuted(v),Re.setVolume(v?0:C),sm(v),!v&&C===0){let z=_o();q.setVolume(z),tm(z),Re.setVolume(z)}},Ho=Se(!1),zi=v=>{ae.log("set looped",{isLooped:v}),Ho.set(v),q.setLooped(v)};zi(te);let Wi=()=>{var v,C;(C=(v=a==null?void 0:a.uiInfo)==null?void 0:v.onReportProblem)==null||C.call(v)},_r=(v,C=!1)=>{var z;Z({message:`set autoplayNextEnabled, value: ${v}`}),ae.log("set autoplay next enabled",{autoplayNextEnabled:v}),At.ui.autoplayNextEnabled$.set(v),qg(v),C&&((z=a==null?void 0:a.onSetAutoplayNextEnabled)==null||z.call(a,v))},hn=v=>{Z({message:`set timerNextVideoRunning, value: ${v}`}),ae.log("set timer next video running",{timerNextVideoRunning:v}),At.ui.timerNextVideoRunning$.set(v)},Fr=(v=!0)=>{var z;let C=!0;if(v&&(a!=null&&a.onPrevVideoClick))try{C=(z=a==null?void 0:a.onPrevVideoClick)==null?void 0:z.call(a)}catch(Ee){Z({message:"onPrevVideoClick callback failed to execute"})}C&&J()},_n=(v=!0)=>{var z;let C=!0;if(v&&(a!=null&&a.onNextVideoClick))try{C=(z=a==null?void 0:a.onNextVideoClick)==null?void 0:z.call(a)}catch(Ee){Z({message:"onNextVideoClick callback failed to execute"})}C&&de()},$r=()=>{var v;(v=a==null?void 0:a.onNextVideoAnnouncementShow)==null||v.call(a)},jn=()=>{var v;(v=a==null?void 0:a.onNextVideoAnnouncementClick)==null||v.call(a)},$n=()=>{var v;(v=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||v.call(a)},Ur=()=>{var v;(v=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||v.call(a)},Zn=()=>{q.prepare()},Xn=()=>{Ln(At);let v=Ne(At.ui.controls.disabledControls$),C=Ne(At.playerPhase),z={playerPhase:C,isInteractive:S,isVideoEnded:!1,action:"none"};if(v.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),C==="ads"){z.action="play",ae.log("toggle adman play",z),Re.togglePlay();return}let Ee=()=>{var _e;Z({message:"toggle play, call player.play"}),z.action="play",q.play(),(_e=a==null?void 0:a.onPlay)==null||_e.call(a)},ot=()=>{var _e;Z({message:"toggle play, call player.pause"}),z.action="pause",q.pause(),(_e=a==null?void 0:a.onPause)==null||_e.call(a)};if(q.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),me.next(),Bt.next(ys.REWIND),S){V==null||V();return}q.seekTime(0),Ee()}else q.info.playbackState$.getValue()!==xd.PLAYING?Ee():ot();ae.log("toggle play",z)},hi=(v,{changeReason:C="default",appliesTo:z="to-video"}={})=>{Z({message:`set quality, quality: ${v}`}),ae.log("set quality",{quality:v}),q.setAutoQuality(v==="auto"),v!=="auto"?(he.features.qualityDetailsSubMenuEnabled?(Tc({type:"exact_quality",quality:v,videoId:i},z),hd(),q.setPredefinedQualityLimits(os.UNKNOWN)):im(i,v),Xo.set(v),q.setQuality(v)):he.features.qualityDetailsSubMenuEnabled?C==="default"&&(zr("auto_quality",z),Ne(si)&&br(!1),Ne(So)&&bn(!1)):hd()},br=(v,C="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${v}`}),ae.log("set traffic saving enabled",{trafficSavingEnabled:v});let z=v?os.TRAFFIC_SAVING:os.UNKNOWN;he.features.qualityDetailsSubMenuEnabled?(Fo(z,C),gd(!1)):(q.setPredefinedQualityLimits(z),gd(v))},bn=(v,C="as-default")=>{Z({message:`set highQualityEnabled, value: ${v}`}),ae.log("set high quality enabled",{highQualityEnabled:v}),Fo(v?os.HIGH_QUALITY:os.UNKNOWN,C)},Fo=(v,C)=>{v!==os.UNKNOWN&&(Ne(un)&&!Ne(fr)&&hi("auto",{appliesTo:C,changeReason:"limit-changed"}),zr(v,C)),q.setPredefinedQualityLimits(v)},zr=(v,C)=>{Tc({type:v,videoId:i},C),C==="as-default"&&Tc({type:v,videoId:i},"to-video")},Jn=v=>{ae.log("set playback rate",{playbackRate:v}),q.setPlaybackRate(v),he.features.saveRate&&Ce&&!q.info.isLive$.getValue()&&zg(v)},Ao=()=>{let v=Ne(Wn),C=v.findIndex(({selected:Ee})=>Ee);if(C===v.length-1)return;let z=v[C+1];Jn(z.value)},Te=()=>{let v=Ne(Wn),C=v.findIndex(({selected:Ee})=>Ee);if(C===0)return;let z=v[C-1];Jn(z.value)},Dt=(v={...Li,selected:!1})=>{ae.log("set subtitles",{...v}),v&&v.value!==Li.value&&Ut.next(v.isAuto?v.value+"_auto":v.value),to.set(v)},ki=()=>{ae.log("toggle subtitles");let v=Ne(Jo),C=Ne(to),z=Ne(et);if((C==null?void 0:C.value)===Li.value){let Ee=v.filter(ot=>ot.value!==Li.value).find(ot=>ot.value===z)||v[1];Dt(Ee)}else Dt()},_i=(v,C,z=!0)=>{var Ee;if(Z({message:`seek to time, time: ${v}`}),ae.log("seek to time",{time:v,action:C,forcePrecise:z}),Bt.next(C),q.info.isLive$.getValue()){let ot=q.info.duration$.getValue(),_e=Math.min(0,ot+v);q.seekTime(_e,z)}else{if(B!=null&&B.getValue())return;q.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(Ee=a==null?void 0:a.onPlay)==null||Ee.call(a)),q.seekTime(zd(v),z)}},tn=v=>{Z({message:`seek to episode start time: ${v}`}),ae.log("seek to episode start time",{time:v}),_i(v,ys.EPISODE,!0)},$o=(v,C)=>{Z({message:`seek to percent, percent: ${v}`}),ae.log("seek to percent",{percent:v,action:C});let z=Ne(Mi)*v;_i(z,C,!1)},Ri=v=>{Z({message:`seek external, time: ${v}`}),ae.log("seek external",{time:v}),Bt.next(ys.UNKNOWN),q.seekTime(q.info.isLive$.getValue()?-v:v)},ge=v=>{var Ee,ot;let C=(Ee=v.max)!=null?Ee:"none",z=(ot=v.min)!=null?ot:"none";Z({message:`set auto quality limitation. Max: ${C}. Min: ${z}`}),ae.log("set auto quality limits",{max:C,min:z}),q.setAutoQualityLimits(v)},Pt=v=>{Z({message:`seek external to episode start time: ${v}`}),ae.log("seek external to episode start time",{time:v}),_i(v,ys.EPISODE,!0)},$i=v=>{Z({message:`set playback rate to: ${v}`}),ae.log("set playback rate external",{playbackRate:v}),q.setPlaybackRate(v)},Ei=Se(void 0),ai=Se(!1),ji=v=>{Z({message:`start scrubbing, progress: ${v}`}),ae.log("start scrubbing",{progress:v}),ai.set(!0),bo(v)},bo=v=>{Ei.set(v)},Ni,on,nn=()=>{Ei.set(void 0),ai.set(!1)},yn=()=>{clearTimeout(on),clearTimeout(Ni),Ni=window.setTimeout(()=>{nn()},500),le==null||le.removeEventListener("seeked",yn)},xn=v=>{Z({message:`complete scrubbing, progress: ${v}`}),ae.log("complete scrubbing",{progress:v}),$o(v,ys.SLIDER),Ne(At.ui.isMobile)&&Ne(At.state.currentFormat$)===wd.HLS?(le==null||le.addEventListener("seeked",yn),on=window.setTimeout(()=>{yn()},300)):nn()},yr=mi([$t,Mi,Ei],([v,C,z],Ee)=>{Ee(iy(z)?z*C:v)}),xr=Se(!1),wr=()=>{xr.set(!0)},ss=()=>{xr.set(!1)},rn=Se({width:0,height:0}),Cr=mi([rn],([{width:v}],C)=>{let z=Ih(v);C(z)}),yo=Se(!1),er=K.filter(v=>Ag(v)),Sr=mi([Cr,yo],([v,C])=>C?er.filter(z=>!z.hideOnMobile):er.filter(z=>{var Ee;return!((Ee=z.hideOnDesktopGridTypes)!=null&&Ee.includes(v))})),Uo=Se(K.filter(v=>Mg(v))),ut=mi([Uo,Cr],([v,C])=>v.filter(z=>{var Ee;return!((Ee=z.hideOnDesktopGridTypes)!=null&&Ee.includes(C))})),Jt=mi([ut,Sr],([v,C])=>[...he.features.additionalButtonsDesktopControlPanelRight?v.filter(z=>z.type==="desktop-control-panel-right"):[],...he.features.additionalButtons?C.map((z,Ee)=>{var ot;return{id:Ee,weight:Ee,type:"desktop-control-panel-right",testId:z.testId,icon:z.iconUrl,onClick:z.onClick,ariaLabel:(ot=z.ariaLabel)!=null?ot:z.tooltip,tooltipText:z.tooltip}}):[]]),bi=Se(H),Tr=mi([bi],([v])=>he.features.additionalSettingsMenuItems?v.map(C=>C.type==="SWITCH"?{...C,onClick:C.onChangeEnabled}:C):[]),wn=(v,C)=>{let z=Ne(Uo).map(Ee=>Ee.id!==v?Ee:{...Ee,...C});Uo.set(z)},Ir=v=>{let C=Ne(Uo);if(C.some(z=>z.id===v.id)){Z({message:`Additional button with id: "${v.id}" was exist! Can't add more with the same id`});return}C.push(v),Uo.set(C)},oe=v=>{let C=Ne(Uo);if(!C.some(z=>z.id===v)){Z({message:`Can't find additional button with id: "${v}"! Can't remove item with this id`});return}C=C.filter(z=>z.id!==v),Uo.set(C)},Ht=v=>{Bt.next(ys.LIVE),Z({message:"live switch to low latency "+v}),ae.log("live switch to low latency "+v),q.setLiveLowLatency(v)},Gt=(v,C)=>{let z=Ne(bi).map(Ee=>Ee.id!==v?Ee:{...Ee,...C});bi.set(z)},Et=v=>{let C=Ne(bi);if(C.some(z=>z.id===v.id)){Z({message:`Settings menu item with id: "${v.id}" was exist! Can't add more with the same id`});return}C.push(v),bi.set(C)},Bi=v=>{let C=Ne(bi);if(!C.some(z=>z.id===v)){Z({message:`Can't find settings menu item with id: "${v}"! Can't remove item with this id`});return}C=C.filter(z=>z.id!==v),bi.set(C)},ui=Se(G),qi=mi([ui],([v])=>he.features.additionalContextMenuItems?v:[]),Wr=(v,C)=>{let z=Ne(ui).map(Ee=>Ee.id!==v?Ee:{...Ee,...C});ui.set(z)},tr=v=>{let C=Ne(ui);if(C.some(z=>z.id===v.id)){Z({message:`Context menu item with id: "${v.id}" was exist! Can't add more with the same id`});return}C.push(v),ui.set(C)},Mo=v=>{let C=Ne(ui);if(!C.some(z=>z.id===v)){Z({message:`Can't find context menu item with id: "${v}"! Can't remove item with this id`});return}C=C.filter(z=>z.id!==v),ui.set(C)},as=mi([yo,Ct],([v,C],z)=>{z(v&&C)}),it=()=>{Bt.next(ys.LIVE),Z({message:"switch to active live"}),ae.log("switch to active live"),q.seekTime(0),q.info.playbackState$.getValue()!==xd.PLAYING&&At.actions.internal.togglePlay()},Zt=()=>{ae.log("skip adman"),Re.skip()},wi=(v=!0)=>{Ln(At),Z({message:`switch from ads to video, callPlay: ${v}`}),ae.log("switch from ads to video",{callPlay:v}),be.set("video"),v&&q.play()},Cn=()=>{Ln(At),Z({message:"switch from video to ads"}),ae.log("switch from video to ads"),At.actions.internal.pause(),ct(),be.set("ads")},ir=v=>{Ln(At);let C=v?"LiveWaitingStart":"thumb";ae.log("set live waiting start",{state:v,playerPhase:C}),be.set(C)},Ss=v=>{Ln(At);let C=v?"LiveWaitingRecover":"thumb";ae.log("set live waiting recover",{state:v,playerPhase:C}),be.set(C)},Sn=v=>{Ln(At);let C=v?"LiveWaitingRecord":"thumb";ae.log("set live waiting record",{state:v,playerPhase:C}),be.set(C)},qr=()=>(Ln(At),ae.log("get debug text data"),kg(q,De,At)),Ta=()=>(Ln(At),JSON.stringify(j.getFinishedSpans())),Ia=()=>(Ln(At),Eg(q,De,At)),Ts=()=>le,ka=()=>{Z({message:"toggle chromecast"}),ae.log("toggle chromecast"),q.toggleChromecast()},Zs=v=>{var z;if(Ln(At),q.info.isEnded$.getValue())return;let C=!v;if(Ne(At.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${C}`}),ae.log("pause ads",{internalCall:C}),Re.pause();return}Z({message:`pause video, internalCall: ${C}`}),ae.log("pause video",{internalCall:C}),C&&((z=a==null?void 0:a.onPause)==null||z.call(a)),q.pause()},Is=v=>{var z;Ln(At);let C=!v;if(Ne(At.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${C}`}),ae.log("play ads",{internalCall:C}),Re.play();return}Z({message:`play video, internalCall: ${C}`}),ae.log("play video",{internalCall:C}),C&&((z=a==null?void 0:a.onPlay)==null||z.call(a)),q.play()},Qe=v=>{Ln(At);let C=!v;if(Ne(At.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${C}`}),N==null||N()},Lt=(v,C)=>{Ln(At),Z({message:`first start, show ads: ${v}, internalCall: ${!C}`}),ae.log("first start",{showAds:v,external:C}),v?be.set("ads"):(be.set("video"),C?q.play():At.actions.internal.togglePlay())},zo=()=>(Z({message:"getting time codes"}),f),kr=()=>{let v=zo();if(!v||[0,1].includes(v.length))return;let C=q.info.position$.getValue();return v.find(z=>z.time>C)},Xs=v=>{let C=v;C||(C=kr());let z=q.info.position$.getValue();ae.log("seek to next episode",{currentTime:z,...C}),C&&(Z({message:"seek to next episode"}),_i(C.time,ys.EPISODE,!0))},Er=()=>{let v=zo();if(!v||[0,1].includes(v.length))return;let C=q.info.position$.getValue(),z=v.findIndex(ot=>ot.time>C),Ee=z===-1?v.length-2:z-2;if(!(Ee<0))return v[Ee]},Kr=v=>{let C=v;C||(C=Er());let z=q.info.position$.getValue();ae.log("seek to prev episode",{currentTime:z,...C}),C&&(Z({message:"seek to prev episode"}),_i(C.time,ys.EPISODE,!0))},ks=()=>(Z({message:"getting preview thumbs data"}),ae.log("get preview thumbs data",{...g}),g),ql=async()=>{let v=ce==null?void 0:ce.isActive(),C="none";ce!=null&&ce.isActive()?(C="remove",await(ce==null?void 0:ce.remove())):(C="request",await(ce==null?void 0:ce.request())),ae.log("toggle picture in picture",{isActive:v,action:C})},Fd=(v=-90)=>{ae.log("rotate video",{alphaDiff:v}),vt.update(C=>C+v)},Ea=Se([]);L==null||L.subscribe(v=>{let C=[];for(let z=0;z<v.length;z++){let{range:[Ee,ot],subjects:_e}=v[z];z===0&&Ee!==0&&C.push({time:0,text:"",interactive:!1,completed:!0}),C.push({time:Ee/1e3,text:"",interactive:!0,completed:he.features.interactiveTimeOpenUri?!_e.length||_e.every(nt=>nt.isRemoved):!_e.length}),ot!==1/0&&C.push({time:ot/1e3,text:"",interactive:!1,completed:!0})}Ea.set(C)});let Ud=Se(!1);B==null||B.subscribe(v=>{v&&Ne(ai)&&nn()});let zd=v=>{if(!S)return v;let C=Ne(Ea),z=Ne(Mi),ot=Ne(Zo)/z,_e=C.find(nt=>nt.interactive&&!nt.completed&&nt.time>ot);return typeof(_e==null?void 0:_e.time)=="number"?Math.min(v,_e.time-.05):v},Wd=()=>{At.ui.episodes.panelOpened$.set(!1)},qd=()=>{ae.log("destroy store"),clearTimeout(on),clearTimeout(Ni),gt.unsubscribe(),kt.unsubscribe(),q.destroy(),Re.destroy(),xe==null||xe.destroy(),X==null||X.destroy(),je.unsubscribe(),jt==null||jt.disconnect(),jt=null,lt.destroy()},At={interfaceLanguage$:et,isCyrillicRelatedInterface$:ht,initVideo:pt,videoId:i,isClip:o,playerPhase:Pe,vsid:at,state:{positionExact$:$t,positionWithScrubbing$:yr,duration$:Mi,playbackState$:D,isPlaying$:ni,isLoaderVisible:ko,bufferedProgress$:Kn,isLive$:Ti,canChangePlaybackSpeed$:di,isActiveLive$:Nn,isOldestAvailableLive$:Bn,isRewindableLive$:co,isEnded$:li,muted$:ao,volume$:xi,trafficSavingEnabled$:si,highQualityEnabled$:So,autoQualityLimitingAvailable$:un,availableVideoStreams$:Dn,availableAudioStreams$:On,videoStream$:Eo,audioStream$:Or,currentQuality$:Fn,isAutoQualityEnabled$:fr,availableQualities$:uo,currentPlaybackRate$:zn,availablePlaybackRates$:Wn,currentSubtitle$:to,availableTextTracks$:pn,availableSubtitlesList$:Jo,currentSubtitleCaptions$:qn,isAutoSubtitleCaptionVisible$:vr,chromecastState$:No,chromecastDeviceName$:tt,chromecastConnected$:ci,currentFormat$:Mt,throughputEstimation$:lo,videoBitrate$:To,videoSize$:Io,errorLog$:ve,crashed$:Ct,isAudioAvailable$:Rt,isAudioDisabled:!!l,canDownload:he.features.download&&!!d,availableSources$:en,hasMpegSources$:gr,isInteractive:S,showInteractiveGraph:he.features.interactiveGraph,showSeekToInteractive:he.features.seekToInteractive,showPlayPrevChapter:he.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:he.features.interactiveTimeIndicator&&!!Ne(Ea).length,interactiveEpisodes$:Ea,isInteractiveTime$:B?ii(B):Se(!1),graphIsOpened$:Se(!1),isInteractiveExpectation$:Ud,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:U,looped$:Ho,loadedMetadata$:Se(!1),isAutoQualityAvailable$:Un},ui:{t:ft,controlsVisible:Se(!1),touched:Se(!1),controls:{prevButton:Se(void 0),playButton:Se(void 0),replayButton:Se(void 0),nextButton:Se(void 0),playPrevChapterButton:Se(void 0),seekToInteractiveButton:Se(void 0),interactiveGraphButton:Se(void 0),liveButton:Se(void 0),time:Se(void 0),episodes:Se(void 0),volume:Se(void 0),subtitles:Se(void 0),settings:Se(void 0),context:Se(void 0),chromecast:Se(void 0),pip:Se(void 0),fullscreen:Se(void 0),vkLogo:Se(void 0),interactiveTimeIndicator:Se(void 0),timeline:Se(void 0),autoplayNextToggle:Se(void 0),additionalButtons:K.length?K.reduce(v=>[...v,Se(void 0)],[]):[],disabledControls$:ye},modals:{hotKeyMap:{show:Se(!1),data:Se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:we,isFullscreenOpenedByKeyboard:$e,rotateAlpha:vt,isAutoplay:Se(!1),debugPanelVisible:Se(!1),episodes:{panelOpened$:Se(!1),openedByKeyboard$:Se(!1)},contextMenu:{visible$:Se(!1),btnRef$:Se(void 0),openedByBtnKeyboard$:Se(!1),openedByHotKey$:Se(!1),lastActiveElem$:Se(void 0),showContextMenuBtn$:Se(!1),position$:Se({top:0,left:0})},playerSize:rn,isMobile:yo,mobileNotReportControlHidden$:as,mobileUnmuteButtonExpanded:Se(!1),mobileUnmuteButtonVisible:Se(!1),icon3DVideoVisible:Se(!1),scrubbingInProgress:ai,volumeChangingInProgress:xr,is3DVideo:Se(!1),currentGridType$:Cr,additionalButtonsDeprecated$:Sr,additionalDesktopControlPanelRightButtons$:Jt,additionalSettingsMenuItems$:Tr,additionalContextMenuItems$:qi,interactiveHideMobileControls:Se(!1),overlayContainer$:Se(void 0),startedByKeyboard$:Se(!1),autoplayNextEnabled$:Se(!1),timerNextVideoRunning$:Se(!0),settingsMenu:{visible$:Se(!1),ref$:Se(void 0),openedByBtnKeyboard$:Se(!1)},settingsSubMenu:{visible$:Se(!1),ref$:Se(void 0),name$:Se(void 0)}},ads:{position:Se(0),duration:Se(0),playbackState:Se("inactive"),canSkip:Se(!1),secondsToWatchBeforeSkip:Se(0),postrollPassed:Se(!1)},webApi:{pictureInPictureApi:ce,annotationsApi:Be},actions:{internal:{preload:Zn,firstStart:v=>Lt(v,!1),play:()=>Is(!1),pause:()=>Zs(!1),togglePlay:Xn,toggleMuted:Qn,openSettingsMenu:gn,closeSettingsMenu:hr,openSettingsSubMenu:Yn,closeSettingsSubMenu:Gn,setVolume:Oo,startVolumeChanging:wr,stopVolumeChanging:ss,setVideoStream:Po,setAudioStream:eo,setQuality:hi,setTrafficSavingEnabled:br,setHighQualityEnabled:bn,setPlaybackRate:Jn,incrementPlaybackRate:Ao,decrementPlaybackRate:Te,setSubtitle:Dt,toggleSubtitle:ki,togglePictureInPicture:ql,startScrubbing:ji,progressScrubbing:bo,completeScrubbing:xn,toggleChromecast:ka,switchToActiveLive:it,switchFromAdsToVideo:wi,switchFromVideoToAds:Cn,skipAd:Zt,setLiveWaitingStart:ir,setLiveWaitingRecover:Ss,setLiveWaitingRecord:Sn,getDebugTextData:qr,getTraceTextData:Ta,getDebugPanelData:Ia,getVideoElement:Ts,seekTime:(v,C,z)=>_i(v,C,z),clearDelayedBufferingCheckTimeout:Qt,seekEpisodeStartTime:tn,seekToPercent:$o,getNextEpisode:kr,seekToNextEpisode:Xs,getPrevEpisode:Er,seekToPrevEpisode:Kr,startLogging:qe,stopLogging:zt,startCameraManualRotation:oi,stopCameraManualRotation:ri,moveCameraFocusPX:vi,holdCamera:mt,releaseCamera:dt,getVideoEpisodes:zo,getPreviewThumbsData:ks,downloadVideo:Hr,addLanguage:dm,setLanguage:ie,nextMovie:_t,videoRotate:Fd,correctSeekTimeToInteractive:zd,replayInteractive:V,setLooped:zi,reportProblem:Wi,setAutoplayNextEnabled:_r,setTimerNextVideoRunning:hn,prevVideoClick:Fr,nextVideoClick:_n,nextVideoAnnouncementShow:$r,nextVideoAnnouncementClick:jn,nextVideoAnnouncementAuto:$n,nextVideoAnnouncementCancel:Ur},external:{firstStart:v=>Lt(v,!0),play:()=>Is(!0),pause:()=>Zs(!0),stop:()=>Qe(!0),seekTime:v=>Ri(v),seekEpisodeStartTime:v=>Pt(v),setPlaybackRate:v=>$i(v),setAutoQualityLimits:v=>ge(v),setMuted:io,setVolume:Oo,returnFocusToEpisodes:Wd,updateAdditionalSettingsItem:Gt,addAdditionalSettingsItem:Et,removeAdditionalSettingsItem:Bi,updateAdditionalContextItem:Wr,addAdditionalContextItem:tr,removeAdditionalContextItem:Mo,updateAdditionalButton:wn,addAdditionalButton:Ir,removeAdditionalButton:oe,setLiveLowLatency:Ht}},callbacks:a,setUiCallbacks:v=>{Ke={...v}},getAdmanWrapper:()=>Re,getLogger:()=>Ge,getPlayer:()=>q,destroy:qd};return At};var Ru=(t,e,i,o)=>{var l;if(!t)return;let n=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"];for(let[d,a]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(d)){let c=(l=i[d])==null?void 0:l.getBoundingClientRect(),f=(o||r.includes(d))&&!!c&&!!(c.right-c.left),{top:g,left:m,bottom:h,right:_}=Cl(i[d],t);a.set({positionStartX:0,positionEndX:0,left:f?m:0,right:f?_:0,top:f?g:0,bottom:f?h:0,isDisplayed:f})}};var Nu=async(t,e,i)=>{await fo(),e&&i&&(i.focus(),t.set(!1))};var py=Le('<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 Bu(t,e){if(new.target)return k({component:Bu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=py();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function Du(t,e){if(new.target)return k({component:Du,...t});E(e,!0);let[i,o]=Xe(),n=()=>I(a,"$contextMenuVisible$",i),r=p(e,"disabled",7,!1),l=p(e,"ariaLabel",7,""),d=He(),a=d.ui.contextMenu.visible$,c=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,g=d.ui.contextMenu.position$,m=d.ui.contextMenu.btnRef$,h=ue(void 0);rt(()=>{s(h)&&Tt(()=>{m.set(s(h))})});let _=V=>{let N=Os(V),T=gh(s(h));g.set(T),c.set(N),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},L=$(()=>n()?"opened":"");Ot(t,{get className(){return s(L)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:_,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s(h)},set ref(V){Y(h,Ae(V))},children:(V,N)=>{Bu(V,{})},$$slots:{default:!0}});var B=P({get disabled(){return r()},set disabled(V=!1){r(V),u()},get ariaLabel(){return l()},set ariaLabel(V=""){l(V),u()},$set:M,$on:(V,N)=>A(e,V,N)});return o(),B}var fy=t=>{t.stopPropagation()},my=F('<div class="interactive-episode-icon-animated svelte-od3veb"><!> <div class="ref-block svelte-od3veb"></div> <div class="pulse svelte-od3veb"></div></div>'),vy={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
+ }`};function rf(t,e){q(e,!0),Q(t,C$);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===Ih.CONNECTED),n=m(()=>e.iconState===Ih.CONNECTING);var a=ze(),s=ve(a);{var d=u=>{var f=w$(),_=h(f),p=h(_),$=h(p);_e(),g(p);var w=M(p);_e(),g(_);var y=M(_),S=h(y),I=h(S);g(S),_e(),g(y),g(f),k(()=>{Oe($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},l=u=>{var f=S$();let _;var p=h(f),$=M(h(p),5);let w;g(p),g(f),k((y,S)=>{_=te(f,0,"svelte-8z1bf5",null,_,y),w=te($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,f)};R(s,u=>{i()?u(d):u(l,!1)})}b(t,a),K()}import{noop as I$}from"@vkontakte/videoplayer-shared/es2018";function jl(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,I$),s=Te().ui.t,d=m(()=>e.state===T$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));kt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,u)=>{rf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),K()}var k$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),E$={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 sf(t,e){Q(t,E$);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),a=v(e,"translateYPx",3,0),s=ee(void 0),d=ee(void 0);function l(w){if(!r(d))return 0;let{width:y}=r(d).getBoundingClientRect(),S=y/2;return w<S?S:w>e.containerWidth-S?e.containerWidth-S:w}let u=m(()=>l(n()));var f=k$(),_=h(f);let p;var $=h(_);me($,()=>{var w;return(w=e.children)!=null?w:ie}),g(_),ut(_,w=>O(d,w),()=>r(d)),g(f),ut(f,w=>O(s,w),()=>r(s)),k(w=>{ot(f,`transform: translate(${r(u)}px, ${a()}px);`),p=te(_,1,"tooltip svelte-5ygsa2",null,p,w)},[()=>({active:i(),pointer:o()})]),b(t,f)}var Vc=(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 A$=L('<div class="preview svelte-1wqg760"></div>'),P$=L('<div class="time svelte-1wqg760"> </div>'),M$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),L$={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 af(t,e){q(e,!0),Q(t,L$);let[i,o]=Ue(),n=()=>C(w,"$rotateAlpha",i),a=()=>C(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),l=v(e,"isMobile",3,!1),u=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),_=v(e,"duration",3,0),p=v(e,"isInteractive",3,!1),$=Te(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=ee(0),I=ee(0),A=ee(""),P=ee(0),E=ee(0),T=ee(0),V=ee(0),z=m(()=>Vc(f(),_(),u())),Y=m(()=>kh(n())),U=m(()=>Eh(n())),Z=m(ce),X=m(()=>(r(U)?1:-1)*(r(S)/2-r(I)/2)),oe=m(()=>r(X)*-1);Ye(()=>{(D=>(O(S,pe(D.width)),O(I,pe(D.height))))(Ve())}),Ye(()=>{(D=>(O(A,pe(D.imgSrc)),O(P,pe(D.imgWidth)),O(E,pe(D.imgHeight)),O(T,pe(D.imgOffsetX)),O(V,pe(D.imgOffsetY))))(Me(f()))});function ce(){var We;let D=l()?s.MOBILE:s.DESKTOP,{isVertical:de}=le(),Ee=30;return(We=r(z))!=null&&We.text&&(Ee+=16),(de||r(Y))&&(Ee+=18,Ee+=50),Math.min(Math.max(a().height-Ee,0),D)}function le(){let D=e.previewThumbsData.frameWidth,de=e.previewThumbsData.frameHeight,Ee=de>D;return{width:D,height:de,isHorizontal:!Ee,isVertical:Ee}}function Ve(){let{height:D,isHorizontal:de,isVertical:Ee,width:We}=le();return de&&(D=D/We*r(Z),We=r(Z)),Ee&&(We=We/D*r(Z),D=r(Z)),{width:We,height:D}}function Me(D){let de;e.previewThumbsData.isUV?de=Math.floor(_()*D/e.previewThumbsData.frequency):de=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*D)));let Ee=Math.floor(de/e.previewThumbsData.countPerImage),We=Math.floor(de%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),lt=de%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ae=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ae++);let $e=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&($e=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Pe=r(S)*$e,nt=r(I)*Ae,vt=-lt*r(S),et=-We*r(I);return{imgSrc:e.previewThumbsData.links[Ee],imgWidth:Pe,imgHeight:nt,imgOffsetX:vt,imgOffsetY:et}}var J=M$();let Le;var j=h(J);{var N=D=>{var de=A$();k(()=>ot(de,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(A)}); background-size: ${r(P)}px ${r(E)}px; background-position: ${r(T)}px ${r(V)}px;
228
+ transform: rotate(${n()}deg) ${r(Y)?`translate(${r(X)}px, ${r(oe)}px)`:""};
229
+ `)),b(D,de)};R(j,D=>{r(A)&&D(N)})}var Ne=M(j,2),ne=h(Ne);{var ke=D=>{var de=ze(),Ee=ve(de);{var We=Ae=>{var $e=Xn();k(Pe=>fe($e,Pe),[()=>H("tooltip_episode_unfinished")]),b(Ae,$e)},lt=Ae=>{var $e=Xn();k(()=>fe($e,r(z).text||"")),b(Ae,$e)};R(Ee,Ae=>{p()&&r(z).completed===!1?Ae(We):Ae(lt,!1)})}b(D,de)};R(ne,D=>{r(z)&&D(ke)})}g(Ne);var Re=M(Ne,2);{var ue=D=>{var de=P$(),Ee=h(de,!0);g(de),k(()=>fe(Ee,d())),b(D,de)};R(Re,D=>{p()||D(ue)})}g(J),k(D=>{Le=te(J,1,"timeline-preview svelte-1wqg760",null,Le,D),ot(J,`width: ${r(Y)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,J),K(),o()}var V$=L('<span class="time svelte-1jr6obn"> </span>'),R$=L("<!> <!>",1),B$={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 lf(t,e){var ge;q(e,!0),Q(t,B$);let[i,o]=Ue(),n=()=>C(Z,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(P,"$position$",i),d=()=>C(ce,"$isInteractiveExpectation$",i),l=()=>C(oe,"$isInteractiveTime$",i),u=()=>C(T,"$isLive$",i),f=()=>C(z,"$isMobile",i),_=()=>C(V,"$isActiveLive$",i),p=()=>C(A,"$bufferedProgress$",i),$=()=>C(Me,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=Te(),I=zt(),A=S.state.bufferedProgress$,P=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,V=S.state.isActiveLive$,z=S.ui.isMobile,Y=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,U=S.actions.internal.getPreviewThumbsData(),Z=S.state.interactiveEpisodes$,X=S.state.isInteractive,oe=S.state.isInteractiveTime$,ce=S.state.isInteractiveExpectation$,le=S.actions.internal.correctSeekTimeToInteractive,Ve=(ge=S.callbacks)==null?void 0:ge.onDisabledTimelineClick,Me=S.ui.controls.disabledControls$,J=S.ui.t,Le=I.features.interactiveResponsiveUi,j=m(()=>X?n():Y),N=m(()=>ir(a())),Ne=m(()=>ir(s())),ne=m(()=>s()/a()),ke=m(()=>d()||l()),Re=ee(!1),ue=ee(""),D=ee(0),de=ee(0),Ee=ee(0),We=m(()=>({containerWidth:r(de),translateXPx:r(D),translateYPx:X&&U?-36:-16,active:r(Re)&&w()&&!r(ke)&&!Le,pointer:!I.features.timelinePreview||!U||u()})),lt=J("aria_timeline"),Ae=m(()=>J("aria_timeline_value",{position:r(Ne),duration:r(N)}));function $e(Se){return!le||!X?Se:le(Se*a())/a()}function Pe(Se){S.actions.internal.startScrubbing($e(Se))}function nt(Se){l()||S.actions.internal.progressScrubbing($e(Se))}function vt(Se){S.actions.internal.completeScrubbing($e(Se)),O(Re,!1)}function et(Se,De,pt){gt(Se,De,pt),O(Re,!0)}function Vt(Se,De,pt){gt(Se,De,pt),O(Re,!0)}function rt(){O(Re,!1)}function gt(Se,De,pt){O(Ee,pe($e(Se))),O(D,pe(De)),pt&&O(de,pe(pt)),O(ue,pe(Ot(Se)))}function Ot(Se){let De=ir((u()?1-Se:Se)*a());return u()?`-${De}`:De}var Ut=R$(),Be=ve(Ut);sf(Be,es(()=>r(We),{children:(Se,De)=>{var pt=ze(),Ht=ve(pt);{var Qe=Xe=>{af(Xe,{get time(){return r(ue)},get isMobile(){return f()},get videoEpisodes(){return r(j)},previewThumbsData:U,get progress(){return r(Ee)},get duration(){return a()},isInteractive:X})},dt=Xe=>{var Ct=V$(),Zt=h(Ct,!0);g(Ct),k(()=>fe(Zt,r(ue))),b(Xe,Ct)};R(Ht,Xe=>{I.features.timelinePreview&&U&&!u()?Xe(Qe):Xe(dt,!1)})}b(Se,pt)},$$slots:{default:!0}}));var re=M(Be,2);let W=m(()=>Math.round(r(ne)*100)),se=m(()=>$().has("TIMELINE"));ea(re,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:lt,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(W)},get ariaValueText(){return r(Ae)},get loadedProgress(){return p()},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get videoEpisodes(){return r(j)},onPointerDown:Pe,onHandleMove:nt,onPointerMove:Vt,onPointerUp:vt,onPointerEnter:et,onPointerLeave:rt,onDisabledClick:Ve,isInteractive:X,get disabled(){return r(se)},get hideHandel(){return l()},get ref(){return y()},set ref(Se){y(Se)}}),b(t,Ut),K(),o()}var N$={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 Zl(t,e){q(e,!0),Q(t,N$);let[i,o]=Ue(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=Te(),l=d.ui.isMobile,u=d.ui.t,f=m(()=>ir(s())),_=m(()=>ir(a())),p=m(()=>a()/s()),$=m(()=>u("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>Math.round(r(p)*100));ea(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),K(),o()}var D$=L("<div><!></div>"),O$=L("<div></div>"),H$={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function Xl(t,e){q(e,!0),Q(t,H$);let[i,o]=Ue(),n=()=>C(p,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),u=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=Te(),p=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=ze(),A=ve(I);{var P=T=>{var V=D$();let z;var Y=h(V);{var U=X=>{Zl(X,{get position(){return s()},get duration(){return d()}})},Z=X=>{lf(X,{get showTimeline(){return r(S)},get ref(){return f()},set ref(oe){f(oe)}})};R(Y,X=>{l()?X(U):X(Z,!1)})}g(V),k(X=>z=te(V,1,"timeline svelte-1gqonyf",null,z,X),[()=>({mobile:a()})]),b(T,V)},E=T=>{var V=O$();let z;k(Y=>z=te(V,1,"timeline-stub svelte-1gqonyf",null,z,Y),[()=>({mobile:a()})]),b(T,V)};R(A,T=>{r(S)?T(P):T(E,!1)})}b(t,I),K(),o()}import{noop as z$}from"@vkontakte/videoplayer-shared/es2018";var F$=be('<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 df(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=F$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),b(t,o)}var U$=be('<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 cf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=U$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var q$=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),K$=L('<span class="text svelte-1yhs2ga"> </span>'),W$=L('<span class="text count svelte-1yhs2ga"> </span>'),Q$=L("<!> <!>",1),G$={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 Jl(t,e){var le,Ve,Me;q(e,!0),Q(t,G$);let[i,o]=Ue(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(I,"$isMobile",i),l=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=Te(),p=(Ve=(le=_.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Ve:z$,$=!!((Me=_.callbacks)!=null&&Me.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,A=_.ui.t,P=ee(void 0),E=J=>{var j,N,Ne;if(!!((j=_.callbacks)!=null&&j.onEpisodeClicked)){let ne=$s(J);y.set(ne),S.set(!0),(Ne=(N=_.callbacks)==null?void 0:N.onEpisodeClicked)==null||Ne.call(N,ne)}},T=ee(null),V=m(()=>l()/u());Ye(()=>{var Le;let J=Vc(r(V),u(),f());J?((Le=r(T))==null?void 0:Le.time)!==J.time&&(p(J),O(T,pe(J))):O(T,null)});let z=m(()=>{var J;return((J=r(T))==null?void 0:J.text)||""}),Y=m(()=>Di(n(),"xl")?"FULL":Di(n(),"m")&&Ch(n(),"xl")?"COUNT":"SHORT"),U=m(()=>`${A("tooltip_episodes")}: ${r(z)}`),Z=async(J,Le,j)=>{await vo(),(J==null?void 0:J.getAttribute("aria-expanded"))==="false"&&Le&&!j&&_t(()=>{y.set(!1),J.focus()})};Ye(()=>{Z(r(P),a(),s())});var X=ze(),oe=ve(X);{var ce=J=>{let Le=m(()=>d()?"px-0":"");kt(J,{get className(){var j;return`w-max btn-full-opacity btn-jc-l ${(j=r(Le))!=null?j:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(U)},get ref(){return r(P)},set ref(j){O(P,pe(j))},children:(j,N)=>{var Ne=ze(),ne=ve(Ne);{var ke=ue=>{var D=q$(),de=ve(D),Ee=h(de,!0);g(de);var We=M(de,2),lt=h(We);cf(lt,{}),g(We),k(()=>fe(Ee,r(z))),b(ue,D)},Re=ue=>{var D=Q$(),de=ve(D);df(de,{});var Ee=M(de,2);{var We=Ae=>{var $e=K$(),Pe=h($e,!0);g($e),k(()=>fe(Pe,r(z))),b(Ae,$e)},lt=(Ae,$e)=>{{var Pe=nt=>{var vt=W$(),et=h(vt,!0);g(vt),k(()=>fe(et,f().length)),b(nt,vt)};R(Ae,nt=>{r(Y)==="COUNT"&&nt(Pe)},$e)}};R(Ee,Ae=>{r(Y)==="FULL"?Ae(We):Ae(lt,!1)})}b(ue,D)};R(ne,ue=>{d()?ue(ke):ue(Re,!1)})}b(j,Ne)},$$slots:{default:!0}})};R(oe,J=>{r(T)&&J(ce)})}b(t,X),K(),o()}import{debounceFn as G2}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as i2,PlaybackState as ed,Player as o2,PredefinedQualityLimits as Fr,VideoFormat as td,clientChecker as n2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Dn,getHighestQuality as r2,InterfaceLanguage as s2,isInvariantQuality as a2,isNonNullable as l2,loadVKLangPack as d2,Logger as c2,map as Nh,merge as u2,Observable as p2,Subject as Fc,Subscription as gf,Tracer as f2,ValueSubject as m2,VideoQuality as v2,devNull as g2,now as h2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as is}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as Y$,devNull as Kt,now as Wt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as j$,Subject as Vo,clearVideoElement as Z$}from"@vkontakte/videoplayer-shared/es2018";var Ah=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var X$="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Rc=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 Vo,loadStarted$:new Vo,loadEnded$:new Vo,loadError$:new Vo,ready$:new Vo,slotRequested$:new Vo,started$:new Vo,timeRemained$:new Vo,paused$:new Vo,resumed$:new Vo,ended$:new Vo,empty$:new Vo,skipped$:new Vo,clicked$:new Vo,closed$:new Vo,error$:new Vo};this.loadAdman=e=>(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Wt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Wt()]}),i(),this.events.loadEnded$.next()):(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Wt()]}),o())};j$(X$,e,this.loadTimeout).then(()=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Wt()]}),window.AdmanHTML?(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Wt()]}),i(),this.events.loadEnded$.next()):(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Wt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Wt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Wt()]}),i(),this.events.loadEnded$.next()):(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Wt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Wt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Wt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Wt()]}),!d&&(window.AdmanHTML?(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Wt()]}),i(),this.events.loadEnded$.next()):(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Wt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Wt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Wt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),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(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Wt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Wt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Wt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Wt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:u={},duration:f,previewParam:_}=e,p,$=this.playerState&&xe(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=Y$(),S=(P=w?y:window.location.href)!=null?P:window.location.href,I={...u,dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_,...p?{request_id:p}:{},duration:f,puid10:Ah(i,o),puid11:n?0:1};_||delete I.preview;let A={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;E.setDebug(!1),E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.init(A),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}catch(E){Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[Wt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Wt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.adsState){this.log({message:"toggle play"});let i=xe(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Wt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Wt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,f,_,p;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Wt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&Z$(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 uf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let u=new Bc,{startTime:f,endTime:_}=u.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let u=new pf,{texts:f}=u.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Bc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},pf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let u=["<",">"].reduce((f,_)=>{let p=s.indexOf(_,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new Bc;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},Mh=uf;import{isNonNullable as ff}from"@vkontakte/videoplayer-shared/es2018";var ta,$i,mf=0,vf=!1,Lh="",Vh=(t,e=0,i=0)=>t<e&&t<i,Nc=(t,e=0,i=0)=>t>=e&&t<=i,J$=(t,e=0,i=0)=>t>e&&t>i,Rh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>Nc(t,u,f));let a=t>=mf,s=t<mf;if(mf=t,s&&(vf=!1),ff(ta)&&Nc(t,ta.startTime,ta.endTime)&&Lh===e.value)return ta;if(!ff($i)&&(n!=null&&n.length)&&!vf){$i=n.find(({startTime:u,endTime:f})=>Nc(t,u,f)||a&&Vh(t,u,f)),ta=void 0,!ff($i)&&n[n.length-1].endTime<t&&(vf=!0);return}else{if(Nc(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime))return ta=$i,$i=void 0,Lh=e.value,ta;(a&&J$(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime)||s&&Vh(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime))&&($i=void 0)}};var Bh={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"},e2={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"},Dc=t=>{var e,i;return(i=(e=Bh[t])!=null?e:Bh[e2[t]])!=null?i:void 0};import{Subscription as t2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Oc=class{constructor(e,i=new t2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Hc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Hc||{});var Hr=t=>t!=null?t:0,Ua=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Hr(i==null?void 0:i.top)-Hr(o==null?void 0:o.top)),left:Math.round(Hr(i==null?void 0:i.left)-Hr(o==null?void 0:o.left)),bottom:Math.round(Hr(i==null?void 0:i.bottom)-Hr(o==null?void 0:o.top)),right:Math.round(Hr(i==null?void 0:i.right)-Hr(o==null?void 0:o.left))}},za=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Hr(e==null?void 0:e.width),height:Hr(e==null?void 0:e.height)}};var Dh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:_,uiConfig:p,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:A,replayInteractive:P,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,additionalButtons:z,additionalSettingsMenuItems:Y,additionalContextMenuItems:U,playPrevVideo:Z,playNextVideo:X,looped:oe=!1,statistics:ce,saveRate:le,internalsExposure:Ve})=>{var Pm,Mm,Lm;let Me={...$,configName:[...(Pm=$.configName)!=null?Pm:[],"ui"],isAudioDisabled:s,live:{...(Mm=$.live)!=null?Mm:{},isLiveCatchUpMode:!!n}},J=p,Le=f2.createRootTracer(J.features.saveTraceInfoToFile),j=Le.createComponentTracer("Store"),N=w||new o2(Me,Le);Ve==null||Ve.expose({corePlayer:N});let Ne=new c2,ne=new Rc(Ne,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),ke=qs.getInstance(),Re=u==null?void 0:u.pictureInPictureApi,ue=u==null?void 0:u.annotationsApi,D=Ne.createComponentLog("Store"),de,Ee,We={},lt=new pc,Ae=ce?Yt(ce.oneStat.vsid$):tr(void 0),$e=ae(hs()),Pe=ae(!1),nt=(Lm=Re==null?void 0:Re.info.isActive$)!=null?Lm:new m2(!1),vt=ae(0),et=ae([]),Vt=u2(N.events.fatalError$,N.events.managedError$).subscribe(c=>et.update(x=>[...x,c])),rt=tr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),gt=async c=>{var he;let x=Object.values(s2).includes(c);if(J.downloadVKLanguages&&(x&&J.updateBuiltinLanguages||!yp(c))){let Ke;try{Ke=await d2(c,yg,xg)}catch(xt){(he=ce==null?void 0:ce.oneStat)==null||he.logError({errorType:"VKLangPack",fatal:!1}),ke==null||ke.report(xt,{errorType:"VKLangPack",fatal:!1})}Ke&&($p({language:c,pack:Ke,fallback:J.defaultLanguage}),Ot.set(c))}yp(c)&&Ot.set(c)},Ot=ae(t),Ut=ae(e);gt(t);let Be=(c,x)=>{let B=xe(Ot);return xp(B,c,x,J.defaultLanguage)},re=ae("thumb"),W=(()=>{let c=fi([rt,re],([x,B])=>x?"crashed":B);return{...c,is:x=>xe(c)===x}})(),se=(()=>{let c=ae(new Set(y));return{...c,add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let he=[...B];return new Set(Array.isArray(x)?he.filter(Ke=>!x.includes(Ke)):he.filter(Ke=>Ke!==x))})},includes:x=>{let B=xe(c);return Array.isArray(x)?x.every(he=>B.has(he)):B.has(x)}}})();j.log("create store"),D({message:"create store"});let ge=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),Xe=new MutationObserver(B=>{let{removedNodes:he}=B[0];he.length&&x.append(N.experimental.element$.getValue())}),Xe.observe(x,{childList:!0})},Se=c=>{D({message:`init video, config: ${JSON.stringify(c)}`}),S?ge(c):(g2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[h2()]}),N.initVideo(c)),j.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),de=c},De=new Fc,pt=c=>De.next(c),Ht=new Fc,Qe=new Fc,dt=new Fc,Xe=null,Ct={actionRewind$:Ht,actionSeek$:Qe,inPiP$:nt,inFullscreen$:new p2(c=>$e.subscribe(x=>c.next(x))),actionSetSubtitle$:dt,nextMovie$:De};if(ce){let{oneStat:c,statSubscription:x}=ce;S||x.add(c.attachTo(N)),x.add(c.attachToUi(Ct)),x.add(c.attachToAds(ne.events)),c.authorize(a).catch(B=>{D({message:`onestat auth error ${String(B)}`})})}if(ke){let c=new gf,x=(B,he)=>c.add(B.subscribe(he));if(x(N.events.managedError$,B=>{ke.logIError(B)}),x(N.events.fatalError$,B=>{ke.logIError(B,!0)}),ce){let{oneStat:B}=ce;x(B.experimental.error$,he=>{ke.logIError(he)})}ke.sentrySubscription.add(c)}let Zt=()=>{n2.device.isIOS&&Ee&&rh(Ee).catch(c=>{D({message:`exitIosSafariFullscreen failed: ${c}`})})},qe=new gf().add(N.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),Qs(Re)&&(Re.updateVideoElement(),Re.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{var c;Zt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(N.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(N.events.started$.subscribe(async()=>{var x,B;Qs(Re)&&await(Re==null?void 0:Re.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=We.onStarted)==null||B.call(We,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var B;(B=l==null?void 0:l.onSeek)==null||B.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var B;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((B=l==null?void 0:l.onTimeupdate)==null||B.call(l,x,c),ne.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Tt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Tt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(A!=null&&A.getValue()&&se.add(kl),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(ne.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ne.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ne.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ne.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ne.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ne.events.started$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:B.call(x,c)})).add(ne.events.timeRemained$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:B.call(x,c)})).add(ne.events.ended$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:B.call(x,c)})).add(ne.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ne.events.clicked$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:B.call(x,c)})).add(ne.events.closed$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:B.call(x,c)})).add(ne.events.error$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:B.call(x,c)})).add(ne.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ne.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),ct=new gf,ei=()=>{var xt,Pt,Dt;let{debugLog:c}=J,x,B="#9df7b7",he="#efd169";if(c&&c!==!0){let{colors:Mt}=c;x=c.tag,B=(xt=Mt==null?void 0:Mt[0])!=null?xt:B,he=(Dt=(Pt=Mt==null?void 0:Mt[1])!=null?Pt:Mt==null?void 0:Mt[0])!=null?Dt:he}let Ke=x?`: ${x}`:"";ct.add(N.events.log$.subscribe(Mt=>{console.debug(`%c sdk${Ke} `,`background:${B};`,`sdk component: ${Mt.component}`,Mt.message)})).add(Ne.log$.subscribe(Mt=>{console.debug(`%c ui${Ke} `,`background:${he};`,`ui component: ${Mt.component}.`,Mt.message)}))},Mi=()=>{ct.unsubscribe()},To=(c,x)=>{j.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Oi=(c=!1)=>{j.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Io=(c,x,B)=>{j.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},ko=()=>{N.holdCamera()},Et=()=>{N.releaseCamera()},ht=tr(N.info.position$.getValue(),c=>{let x,B,he=()=>{let Ke=N.info.playbackState$.getValue(),xt=N.info.isLive$.getValue(),Pt=N.info.duration$.getValue(),Dt=N.info.position$.getValue();if(Ke&&[ed.PLAYING,ed.PAUSED].includes(Ke)){let Mt=xt?Dt-Pt:N.getExactTime();Mt!==B&&c(Mt),B=Mt}x=requestAnimationFrame(he)};return he(),()=>cancelAnimationFrame(x)}),F=Yt(N.info.playbackState$),qt=Yt(N.info.currentBuffer$),Hi=Yt(N.info.isEnded$),Li=Yt(N.info.isLive$),ri=J.features.playbackRate?Yt(N.info.canChangePlaybackSpeed$):tr(!1),ai=Yt(N.info.liveBufferTime$),no=Yt(N.info.volume$),ro=Yt(N.info.muted$),Ki=fc(N.info.predefinedQualityLimitType$.pipe(Nh(c=>c===Fr.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===Fr.TRAFFIC_SAVING),Bo=fc(N.info.predefinedQualityLimitType$.pipe(Nh(c=>c===Fr.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===Fr.HIGH_QUALITY),Rt=Yt(N.info.autoQualityLimitingAvailable$),li=Yt(N.info.availableQualities$),yt=Yt(N.info.availableQualitiesFps$),Ft=Yt(N.info.chromecastState$),so=Yt(N.info.chromecastDeviceName$),jt=Yt(N.info.currentFormat$),Hn=Yt(N.info.throughputEstimation$),bo=Yt(N.info.videoBitrate$),No=Yt(N.info.intrinsicVideoSize$),ni=Yt(N.info.duration$),bt=Yt(N.info.isAudioAvailable$),di=null,ao=N.info.isBuffering$,mi=tr(ao.getValue(),c=>{let x=ao.subscribe(B=>{B&&di===null?di=window.setTimeout(()=>{c(ao.getValue()),di=null},J.loaderDelay):c(B)});return()=>{x.unsubscribe(),di&&clearTimeout(di)}}),fn=()=>{di&&clearTimeout(di),di=null},yi=fi([ni,Li],([c,x])=>x?-c:c),$o=fi([F],([c])=>c===ed.PLAYING),Do=Yt(N.info.atLiveEdge$),mn=Yt(N.info.atLiveDurationEdge$),xi=Yt(N.info.position$),Fn=fi([xi,ni],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Xo=fi([Ft],([c])=>c===i2.CONNECTED),Eo=Yt(N.info.availableVideoStreams$),Jo=J.features.audioLanguages?Yt(N.info.availableAudioStreams$):tr([]),Sr=Yt(N.info.currentVideoStream$),nr=Yt(N.info.currentAudioStream$),Un=c=>{c.language&&bp(c.language),N.setVideoStream(c)},vn=c=>{c.language&&bp(c.language),N.setAudioStream(c)},en=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(he=>"isDefault"in he&&he.isDefault)),x)return x;let B=Kg();return B&&(x=c.find(({language:he})=>B===he)),x!=null||(x=c.at(0)),x},gn=!1;qe.add(N.info.availableAudioStreams$.subscribe(c=>{if(!gn&&c.length){let x=en(c);x&&(N.setAudioStream(x),gn=!0)}}));let lo=!1;qe.add(N.info.availableVideoStreams$.subscribe(c=>{if(!lo&&c.length){let x=en(c);x&&(N.setVideoStream(x),lo=!0)}}));let Je=ae(void 0),tn=Yt(N.info.isAutoQualityEnabled$,c=>c&&Je.set(void 0)),zn=Yt(N.info.currentQuality$,()=>Je.set(void 0)),qn=fi([Je,zn],([c,x])=>c!=null?c:x),hn=fi(jt,c=>c!==td.MPEG),on=fi([li,yt,tn,qn,hn],([c,x,B,he,Ke])=>{let xt=[];Ke&&xt.push({value:"auto",displayValue:Be("auto_quality_option"),selected:B});let Pt=c.filter(Dt=>!a2(Dt));for(let Dt of Pt){let Mt=x[Dt];xt.push({value:Dt,displayValue:`${Dt}${Mt?Ph(Mt):""}`,selected:B?!1:Dt===he})}return xt}),nn=Yt(N.info.currentPlaybackRate$),Oo=fi([nn,Do,mn],([c,x,B])=>{let he=B||S?1:J.controls.playbackRateMin,Ke=x?1:J.controls.playbackRateMax,xt=J.controls.playbackRateStep,Pt=[];for(let Dt=he;Dt<=Ke;Dt+=xt)Pt.push({value:Dt,displayValue:Dt===1?Be("playback_rate_1"):Be("playback_rate",{multiplier:Dt.toString(10)}),selected:c===Dt});return Pt}),Fi={displayValue:Be("subtitles_off"),value:"off"},Ui=ae({...Fi}),Kn=J.features.subtitles?Yt(N.info.availableTextTracks$):tr([]),_n=Bg(),Wn=fi([Kn,Ui],([c,x],B)=>{var xt;let he=[],Ke=c.find(({id:Pt})=>Pt===x.value);if(Ke!=null&&Ke.url){let[,Pt]=(xt=_n.find(Ke.url))!=null?xt:[];if(Pt){B(Pt);return}lt.download(Ke.url).then(Dt=>{if(!Dt||lt.isDestroyed())return;let Mt=new Mh,ls=Ke.language;if(ls){let S1=!!Ke.isAuto,C1=Mt.parse(Dt,ls);he.push({lang:ls,subtitles:C1,isAuto:S1,id:Ke.id})}_n.add(Ke.url,he),xe(Ui).value===x.value&&B(he)}).catch(Dt=>{var Mt;(Mt=ce==null?void 0:ce.oneStat)==null||Mt.logError({errorType:"Subtitles download",fatal:!1}),ke==null||ke.report(Dt,{errorType:"Subtitles download",fatal:!1})})}B(he)}),rr=fi([nn,$o,Ui],([c,x,B],he)=>{let Pt;if(N.info.isLive$.getValue()&&x&&B.value!==Fi.value){let Mt=()=>{let ls=1e3/(3*c);Pt=setTimeout(Mt,ls),he(Date.now())};return Mt(),()=>clearTimeout(Pt)}}),Wi=fi([Kn,Ui],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:he,isAuto:Ke,id:xt}of c){let Pt=he&&Dc(he);he&&Pt&&B.push({displayValue:Ke?Be("subtitles_auto",{language:Pt}):Pt,value:xt,selected:(x==null?void 0:x.value)===xt,isAuto:Ke})}return B.length?(B.unshift({...Fi,selected:(x==null?void 0:x.value)===Fi.value}),B):[]}),Qi={available:[],prev:[]},bn=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:Ee==null?void 0:Ee.currentTime)!=null?B:0},$n=fi([ht,Ui,Wn,rr],([c,x,B,he])=>{var xt;let Ke=N.info.isLive$.getValue();if(Ke&&Qi.prev!==B){let Pt=B.find(({id:Mt})=>Mt===x.value),Dt=Qi.prev.find(({id:Mt})=>Mt===x.value);if(Pt){let Mt={...Pt,subtitles:[...(xt=Dt==null?void 0:Dt.subtitles)!=null?xt:[],...Pt.subtitles]};Qi.available=[Mt],Qi.prev=B}}if(x&&x.value!==Fi.value){let Pt=Ke?bn():c,Dt=Ke?Qi.available:B;return Rh(Pt,x,Dt,Ke)}}),co=fi([$n],([c])=>c!=null&&c.texts?c.texts:[]),Gi=ae(!0),yn=fi([qt,yi,xi,ai],([c,x,B,he])=>{var Dt;let Ke=(Dt=c==null?void 0:c.end)!=null?Dt:0;if(!he)return Ke/x;let Pt=-B+he-x;return(Ke-Pt)/x}),Ao=Yt(N.info.availableSources$),Cr=fi([Ao],([c])=>Object.keys((c==null?void 0:c[td.MPEG])||{}).length>0),xn=()=>{var B,he,Ke;let c=Object.keys(((he=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:he[td.MPEG])||{}),x=r2(c)||v2.Q_144P;return(Ke=de.sources[td.MPEG])==null?void 0:Ke[x]},sr=()=>{var x;let c=xn();if(c)j.log("download video",{url:c}),Lg(c,((x=de==null?void 0:de.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";j.log("download video",{message:B}),D({message:B})}},wn=()=>{D({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Cn(Gn()):ti(!c)},Sn=()=>{var c;if(Tt.ui.settingsMenu.visible$.set(!1),!xe(Tt.ui.settingsSubMenu.visible$)){let x=xe(Tt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let he=za(x),Ke={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:he,position:Ke,name:"settings"})}}j.log("close settings menu")},Tr=async(c,x=()=>Promise.resolve())=>{var Ke;Tt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Tt.ui.settingsMenu.visible$.set(!0),await x();let B=xe(Tt.ui.settingsMenu.ref$),he=Is();if((Ke=l==null?void 0:l.uiInfo)!=null&&Ke.onSettingsMenu&&B&&he){let Pt=za(B),Dt=Ua(B,he);l.uiInfo.onSettingsMenu({visible:!0,size:Pt,position:Dt,name:"settings"})}j.log("open settings menu",{wasOpenedByKeyboard:c})},Qn=(c,x=!1)=>{var xt;Tt.ui.settingsSubMenu.visible$.set(!1);let B=xe(Tt.ui.settingsMenu.ref$),he=Is(),Ke=xe(Tt.ui.settingsMenu.visible$);if((xt=l==null?void 0:l.uiInfo)!=null&&xt.onSettingsMenu&&B&&he)if(Ke&&!x){let Dt=za(B),Mt=Ua(B,he);l.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:Mt,name:"settings"})}else{let Dt=za(c),Mt={top:0,left:0,bottom:0,right:0},ls=xe(Tt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Dt,position:Mt,name:ls})}j.log("close settings sub menu")},ar=(c,x)=>{var he;Tt.ui.settingsSubMenu.visible$.set(!0),Tt.ui.settingsSubMenu.ref$.set(x),Tt.ui.settingsSubMenu.name$.set(c);let B=Is();if((he=l==null?void 0:l.uiInfo)!=null&&he.onSettingsMenu&&x&&B){let xt=za(x),Pt=Ua(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:xt,position:Pt})}j.log("open settings sub menu",{name:c})},Gn=()=>{var x;let c=Math.max(J.volumeMinRestore,(x=mc())!=null?x:0);return c===0?J.volumeDefault:c},Cn=c=>{let x=c===0?Gn():c,B=N.info.muted$.getValue();D({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),B&&c>0&&!s&&(B=!1,hp(!1)),N.setVolume(c,B),ne.setVolume(c),pp(x)},ti=c=>{let x=N.info.volume$.getValue();if(D({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c),ne.setVolume(c?0:x),hp(c),!c&&x===0){let B=Gn();N.setVolume(B),pp(B),ne.setVolume(B)}},Ho=ae(!1),lr=c=>{j.log("set looped",{isLooped:c}),Ho.set(c),N.setLooped(c)};lr(oe);let Ir=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},it=(c,x=!1)=>{var B;D({message:`set autoplayNextEnabled, value: ${c}`}),j.log("set autoplay next enabled",{autoplayNextEnabled:c}),Tt.ui.autoplayNextEnabled$.set(c),Gg(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},ft=c=>{D({message:`set timerNextVideoRunning, value: ${c}`}),j.log("set timer next video running",{timerNextVideoRunning:c}),Tt.ui.timerNextVideoRunning$.set(c)},wi=(c=!0)=>{var B;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(B=l==null?void 0:l.onPrevVideoClick)==null?void 0:B.call(l)}catch(he){D({message:"onPrevVideoClick callback failed to execute"})}x&&Z()},Yi=(c=!0)=>{var B;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(B=l==null?void 0:l.onNextVideoClick)==null?void 0:B.call(l)}catch(he){D({message:"onNextVideoClick callback failed to execute"})}x&&X()},ji=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},yo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Po=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Mo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},xo=()=>{N.prepare()},je=()=>{Dn(Tt);let c=xe(Tt.ui.controls.disabledControls$),x=xe(Tt.playerPhase),B={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(D({message:"toggle play"}),x==="ads"){B.action="play",j.log("toggle adman play",B),ne.togglePlay();return}let he=()=>{var xt;D({message:"toggle play, call player.play"}),B.action="play",N.play(),(xt=l==null?void 0:l.onPlay)==null||xt.call(l)},Ke=()=>{var xt;D({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(xt=l==null?void 0:l.onPause)==null||xt.call(l)};if(N.info.isEnded$.getValue()){if(D({message:"toggle play, video ended, seek to 0"}),Ht.next(),Qe.next(is.REWIND),S){P==null||P();return}N.seekTime(0),he()}else N.info.playbackState$.getValue()!==ed.PLAYING?he():Ke();j.log("toggle play",B)},St=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{D({message:`set quality, quality: ${c}`}),j.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(J.features.qualityDetailsSubMenuEnabled?(vc({type:"exact_quality",quality:c,videoId:i},B),Al(),N.setPredefinedQualityLimits(Fr.UNKNOWN)):fp(i,c),Je.set(c),N.setQuality(c)):J.features.qualityDetailsSubMenuEnabled?x==="default"&&(vi("auto_quality",B),xe(Ki)&&Ii(!1),xe(Bo)&&Vi(!1)):Al()},Ii=(c,x="as-default")=>{D({message:`set trafficSavingEnabled, value: ${c}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?Fr.TRAFFIC_SAVING:Fr.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(Ri(B,x),El(!1)):(N.setPredefinedQualityLimits(B),El(c))},Vi=(c,x="as-default")=>{D({message:`set highQualityEnabled, value: ${c}`}),j.log("set high quality enabled",{highQualityEnabled:c}),Ri(c?Fr.HIGH_QUALITY:Fr.UNKNOWN,x)},Ri=(c,x)=>{c!==Fr.UNKNOWN&&(xe(Rt)&&!xe(tn)&&St("auto",{appliesTo:x,changeReason:"limit-changed"}),vi(c,x)),N.setPredefinedQualityLimits(c)},vi=(c,x)=>{vc({type:c,videoId:i},x),x==="as-default"&&vc({type:c,videoId:i},"to-video")},zi=c=>{j.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),J.features.saveRate&&le&&!N.info.isLive$.getValue()&&Wg(c)},Zi=()=>{let c=xe(Oo),x=c.findIndex(({selected:he})=>he);if(x===c.length-1)return;let B=c[x+1];zi(B.value)},Tn=()=>{let c=xe(Oo),x=c.findIndex(({selected:he})=>he);if(x===0)return;let B=c[x-1];zi(B.value)},In=(c={...Fi,selected:!1})=>{j.log("set subtitles",{...c}),c&&c.value!==Fi.value&&dt.next(c.isAuto?c.value+"_auto":c.value),Ui.set(c)},dr=()=>{j.log("toggle subtitles");let c=xe(Wi),x=xe(Ui),B=xe(Ot);if((x==null?void 0:x.value)===Fi.value){let he=c.filter(Ke=>Ke.value!==Fi.value).find(Ke=>Ke.value===B)||c[1];In(he)}else In()},Fo=(c,x,B=!0)=>{var he;if(D({message:`seek to time, time: ${c}`}),j.log("seek to time",{time:c,action:x,forcePrecise:B}),Qe.next(x),N.info.isLive$.getValue()){let Ke=N.info.duration$.getValue(),xt=Math.min(0,Ke+c);N.seekTime(xt,B)}else{if(A!=null&&A.getValue())return;N.info.isEnded$.getValue()&&(D({message:"seek after ended, call callbacks.onPlay"}),(he=l==null?void 0:l.onPlay)==null||he.call(l)),N.seekTime(as(c),B)}},kn=c=>{D({message:`seek to episode start time: ${c}`}),j.log("seek to episode start time",{time:c}),Fo(c,is.EPISODE,!0)},cr=(c,x)=>{D({message:`seek to percent, percent: ${c}`}),j.log("seek to percent",{percent:c,action:x});let B=xe(yi)*c;Fo(B,x,!1)},ur=c=>{D({message:`seek external, time: ${c}`}),j.log("seek external",{time:c}),Qe.next(is.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},kr=c=>{var he,Ke;let x=(he=c.max)!=null?he:"none",B=(Ke=c.min)!=null?Ke:"none";D({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),j.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},pr=c=>{D({message:`seek external to episode start time: ${c}`}),j.log("seek external to episode start time",{time:c}),Fo(c,is.EPISODE,!0)},rn=c=>{D({message:`set playback rate to: ${c}`}),j.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},sn=ae(void 0),Yn=ae(!1),Er=c=>{D({message:`start scrubbing, progress: ${c}`}),j.log("start scrubbing",{progress:c}),Yn.set(!0),uo(c)},uo=c=>{sn.set(c)},En,fr,tt=()=>{sn.set(void 0),Yn.set(!1)},Nt=()=>{clearTimeout(fr),clearTimeout(En),En=window.setTimeout(()=>{tt()},500),Ee==null||Ee.removeEventListener("seeked",Nt)},ye=c=>{D({message:`complete scrubbing, progress: ${c}`}),j.log("complete scrubbing",{progress:c}),cr(c,is.SLIDER),xe(Tt.ui.isMobile)&&xe(Tt.state.currentFormat$)===td.HLS?(Ee==null||Ee.addEventListener("seeked",Nt),fr=window.setTimeout(()=>{Nt()},300)):tt()},At=fi([ht,yi,sn],([c,x,B],he)=>{he(l2(B)?B*x:c)}),Xt=ae(!1),ii=()=>{Xt.set(!0)},po=()=>{Xt.set(!1)},ki=ae({width:0,height:0}),oi=fi([ki],([{width:c}],x)=>{let B=Th(c);x(B)}),si=ae(!1),hi=z.filter(c=>Vg(c)),qi=fi([oi,si],([c,x])=>x?hi.filter(B=>!B.hideOnMobile):hi.filter(B=>{var he;return!((he=B.hideOnDesktopGridTypes)!=null&&he.includes(c))})),Ei=ae(z.filter(c=>Rg(c))),Si=fi([Ei,oi],([c,x])=>c.filter(B=>{var he;return!((he=B.hideOnDesktopGridTypes)!=null&&he.includes(x))})),Ur=fi([Si,qi],([c,x])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?x.map((B,he)=>{var Ke;return{id:he,weight:he,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(Ke=B.ariaLabel)!=null?Ke:B.tooltip,tooltipText:B.tooltip}}):[]]),He=ae(Y),Qt=fi([He],([c])=>J.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),_i=(c,x)=>{let B=xe(Ei).map(he=>he.id!==c?he:{...he,...x});Ei.set(B)},wo=c=>{let x=xe(Ei);if(x.some(B=>B.id===c.id)){D({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ei.set(x)},an=c=>{let x=xe(Ei);if(!x.some(B=>B.id===c)){D({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Ei.set(x)},zr=c=>{Qe.next(is.LIVE),D({message:"live switch to low latency "+c}),j.log("live switch to low latency "+c),N.setLiveLowLatency(c)},An=(c,x)=>{let B=xe(He).map(he=>he.id!==c?he:{...he,...x});He.set(B)},Ar=c=>{let x=xe(He);if(x.some(B=>B.id===c.id)){D({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),He.set(x)},ja=c=>{let x=xe(He);if(!x.some(B=>B.id===c)){D({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),He.set(x)},Pn=ae(U),Za=fi([Pn],([c])=>J.features.additionalContextMenuItems?c:[]),la=(c,x)=>{let B=xe(Pn).map(he=>he.id!==c?he:{...he,...x});Pn.set(B)},da=c=>{let x=xe(Pn);if(x.some(B=>B.id===c.id)){D({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Pn.set(x)},Cs=c=>{let x=xe(Pn);if(!x.some(B=>B.id===c)){D({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Pn.set(x)},st=fi([si,rt],([c,x],B)=>{B(c&&x)}),Ze=()=>{Qe.next(is.LIVE),D({message:"switch to active live"}),j.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ed.PLAYING&&Tt.actions.internal.togglePlay()},gi=()=>{j.log("skip adman"),ne.skip()},Pr=(c=!0)=>{Dn(Tt),D({message:`switch from ads to video, callPlay: ${c}`}),j.log("switch from ads to video",{callPlay:c}),re.set("video"),c&&N.play()},Ts=()=>{Dn(Tt),D({message:"switch from video to ads"}),j.log("switch from video to ads"),Tt.actions.internal.pause(),Zt(),re.set("ads")},Mr=c=>{Dn(Tt);let x=c?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:c,playerPhase:x}),re.set(x)},Lr=c=>{Dn(Tt);let x=c?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:c,playerPhase:x}),re.set(x)},ss=c=>{Dn(Tt);let x=c?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:c,playerPhase:x}),re.set(x)},Xa=()=>(Dn(Tt),j.log("get debug text data"),Pg(N,de,Tt)),Md=()=>(Dn(Tt),JSON.stringify(Le.getFinishedSpans())),lu=()=>(Dn(Tt),Mg(N,de,Tt)),Is=()=>Ee,du=()=>{D({message:"toggle chromecast"}),j.log("toggle chromecast"),N.toggleChromecast()},Ja=c=>{var B;if(Dn(Tt),N.info.isEnded$.getValue())return;let x=!c;if(xe(Tt.playerPhase)==="ads"){D({message:`pause ads, internalCall: ${x}`}),j.log("pause ads",{internalCall:x}),ne.pause();return}D({message:`pause video, internalCall: ${x}`}),j.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},el=c=>{var B;Dn(Tt);let x=!c;if(xe(Tt.playerPhase)==="ads"){D({message:`play ads, internalCall: ${x}`}),j.log("play ads",{internalCall:x}),ne.play();return}D({message:`play video, internalCall: ${x}`}),j.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},Ld=c=>{Dn(Tt);let x=!c;if(xe(Tt.playerPhase)==="ads"){D({message:"player cannot be stopped during ads via external method"});return}D({message:`player will be stopped, internalCall: ${x}`}),E==null||E()},Vd=(c,x)=>{Dn(Tt),D({message:`first start, show ads: ${c}, internalCall: ${!x}`}),j.log("first start",{showAds:c,external:x}),c?re.set("ads"):(re.set("video"),x?N.play():Tt.actions.internal.togglePlay())},ca=()=>(D({message:"getting time codes"}),f),Rd=()=>{let c=ca();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},Bd=c=>{let x=c;x||(x=Rd());let B=N.info.position$.getValue();j.log("seek to next episode",{currentTime:B,...x}),x&&(D({message:"seek to next episode"}),Fo(x.time,is.EPISODE,!0))},Nd=()=>{let c=ca();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(Ke=>Ke.time>x),he=B===-1?c.length-2:B-2;if(!(he<0))return c[he]},Dd=c=>{let x=c;x||(x=Nd());let B=N.info.position$.getValue();j.log("seek to prev episode",{currentTime:B,...x}),x&&(D({message:"seek to prev episode"}),Fo(x.time,is.EPISODE,!0))},cu=()=>(D({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{..._}),_),uu=async()=>{let c=Re==null?void 0:Re.isActive(),x="none";Re!=null&&Re.isActive()?(x="remove",await(Re==null?void 0:Re.remove())):(x="request",await(Re==null?void 0:Re.request())),j.log("toggle picture in picture",{isActive:c,action:x})},Fe=(c=-90)=>{j.log("rotate video",{alphaDiff:c}),vt.update(x=>x+c)},Gt=ae([]);I==null||I.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[he,Ke],subjects:xt}=c[B];B===0&&he!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:he/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!xt.length||xt.every(Pt=>Pt.isRemoved):!xt.length}),Ke!==1/0&&x.push({time:Ke/1e3,text:"",interactive:!1,completed:!0})}Gt.set(x)});let Uo=ae(!1);A==null||A.subscribe(c=>{c&&xe(Yn)&&tt()});let as=c=>{if(!S)return c;let x=xe(Gt),B=xe(yi),Ke=xe(xi)/B,xt=x.find(Pt=>Pt.interactive&&!Pt.completed&&Pt.time>Ke);return typeof(xt==null?void 0:xt.time)=="number"?Math.min(c,xt.time-.05):c},zo=()=>{Tt.ui.episodes.panelOpened$.set(!1)},w1=()=>{j.log("destroy store"),clearTimeout(fr),clearTimeout(En),qe.unsubscribe(),ct.unsubscribe(),N.destroy(),ne.destroy(),ce==null||ce.destroy(),ke==null||ke.destroy(),Vt.unsubscribe(),Xe==null||Xe.disconnect(),Xe=null,lt.destroy()},Tt={interfaceLanguage$:Ot,isCyrillicRelatedInterface$:Ut,initVideo:Se,videoId:i,isClip:o,playerPhase:W,vsid:Ae,state:{positionExact$:ht,positionWithScrubbing$:At,duration$:yi,playbackState$:F,isPlaying$:$o,isLoaderVisible:mi,bufferedProgress$:yn,isLive$:Li,canChangePlaybackSpeed$:ri,isActiveLive$:Do,isOldestAvailableLive$:mn,isRewindableLive$:Fn,isEnded$:Hi,muted$:ro,volume$:no,trafficSavingEnabled$:Ki,highQualityEnabled$:Bo,autoQualityLimitingAvailable$:Rt,availableVideoStreams$:Eo,availableAudioStreams$:Jo,videoStream$:Sr,audioStream$:nr,currentQuality$:qn,isAutoQualityEnabled$:tn,availableQualities$:on,currentPlaybackRate$:nn,availablePlaybackRates$:Oo,currentSubtitle$:Ui,availableTextTracks$:Kn,availableSubtitlesList$:Wi,currentSubtitleCaptions$:co,isAutoSubtitleCaptionVisible$:Gi,chromecastState$:Ft,chromecastDeviceName$:so,chromecastConnected$:Xo,currentFormat$:jt,throughputEstimation$:Hn,videoBitrate$:bo,videoSize$:No,errorLog$:et,crashed$:rt,isAudioAvailable$:bt,isAudioDisabled:!!s,canDownload:J.features.download&&!!d,availableSources$:Ao,hasMpegSources$:Cr,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!xe(Gt).length,interactiveEpisodes$:Gt,isInteractiveTime$:A?Yt(A):ae(!1),isInteractiveExpectation$:Uo,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,looped$:Ho,loadedMetadata$:ae(!1),isAutoQualityAvailable$:hn},ui:{t:Be,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:z.length?z.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$e,isFullscreenOpenedByKeyboard:Pe,rotateAlpha:vt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:ki,isMobile:si,mobileNotReportControlHidden$:st,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:Yn,volumeChangingInProgress:Xt,is3DVideo:ae(!1),currentGridType$:oi,additionalButtonsDeprecated$:qi,additionalDesktopControlPanelRightButtons$:Ur,additionalSettingsMenuItems$:Qt,additionalContextMenuItems$:Za,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)}},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:Re,annotationsApi:ue},actions:{internal:{preload:xo,firstStart:c=>Vd(c,!1),play:()=>el(!1),pause:()=>Ja(!1),togglePlay:je,toggleMuted:wn,openSettingsMenu:Tr,closeSettingsMenu:Sn,openSettingsSubMenu:ar,closeSettingsSubMenu:Qn,setVolume:Cn,startVolumeChanging:ii,stopVolumeChanging:po,setVideoStream:Un,setAudioStream:vn,setQuality:St,setTrafficSavingEnabled:Ii,setHighQualityEnabled:Vi,setPlaybackRate:zi,incrementPlaybackRate:Zi,decrementPlaybackRate:Tn,setSubtitle:In,toggleSubtitle:dr,togglePictureInPicture:uu,startScrubbing:Er,progressScrubbing:uo,completeScrubbing:ye,toggleChromecast:du,switchToActiveLive:Ze,switchFromAdsToVideo:Pr,switchFromVideoToAds:Ts,skipAd:gi,setLiveWaitingStart:Mr,setLiveWaitingRecover:Lr,setLiveWaitingRecord:ss,getDebugTextData:Xa,getTraceTextData:Md,getDebugPanelData:lu,getVideoElement:Is,seekTime:(c,x,B)=>Fo(c,x,B),clearDelayedBufferingCheckTimeout:fn,seekEpisodeStartTime:kn,seekToPercent:cr,getNextEpisode:Rd,seekToNextEpisode:Bd,getPrevEpisode:Nd,seekToPrevEpisode:Dd,startLogging:ei,stopLogging:Mi,startCameraManualRotation:To,stopCameraManualRotation:Oi,moveCameraFocusPX:Io,holdCamera:ko,releaseCamera:Et,getVideoEpisodes:ca,getPreviewThumbsData:cu,downloadVideo:sr,addLanguage:$p,setLanguage:gt,nextMovie:pt,videoRotate:Fe,correctSeekTimeToInteractive:as,replayInteractive:P,setLooped:lr,reportProblem:Ir,setAutoplayNextEnabled:it,setTimerNextVideoRunning:ft,prevVideoClick:wi,nextVideoClick:Yi,nextVideoAnnouncementShow:ji,nextVideoAnnouncementClick:yo,nextVideoAnnouncementAuto:Po,nextVideoAnnouncementCancel:Mo},external:{firstStart:c=>Vd(c,!0),play:()=>el(!0),pause:()=>Ja(!0),stop:()=>Ld(!0),seekTime:c=>ur(c),seekEpisodeStartTime:c=>pr(c),setPlaybackRate:c=>rn(c),setAutoQualityLimits:c=>kr(c),setMuted:ti,setVolume:Cn,returnFocusToEpisodes:zo,updateAdditionalSettingsItem:An,addAdditionalSettingsItem:Ar,removeAdditionalSettingsItem:ja,updateAdditionalContextItem:la,addAdditionalContextItem:da,removeAdditionalContextItem:Cs,updateAdditionalButton:_i,addAdditionalButton:wo,removeAdditionalButton:an,setLiveLowLatency:zr}},callbacks:l,setUiCallbacks:c=>{We={...c}},getAdmanWrapper:()=>ne,getLogger:()=>Ne,getPlayer:()=>N,destroy:w1};return Tt};function ia(t,e,i,o){var _;let n=["interactiveTimeIndicator"],a=(_=e[i])==null?void 0:_.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:u,right:f}=Ua(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var Uc=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ia(t,i,n,o))};var zc=async(t,e,i)=>{await vo(),e&&i&&(i.focus(),t.set(!1))};var _2=be('<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 hf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=_2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function _f(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=Te(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=ee(void 0);Ye(()=>{r($)&&_t(()=>{p.set(r($))})});let w=A=>{let P=$s(A),E=_h(r($));_.set(E),u.set(P),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},I=m(()=>n()?"opened":"");kt(t,{get className(){return r(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return r($)},set ref(A){O($,pe(A))},children:(A,P)=>{hf(A,{})},$$slots:{default:!0}}),K(),o()}var b2=t=>{t.stopPropagation()},$2=L("<div><!> <div></div> <div></div></div>"),y2={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;}
225
230
 
226
231
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
227
232
  }
@@ -246,8 +251,8 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
246
251
  opacity: 0;
247
252
  }
248
253
  }.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);
249
- 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 Tl(t,e){var ce;if(new.target)return k({component:Tl,...t});E(e,!0),ne(t,vy);let[i,o]=Xe(),n=()=>I(S,"$isMobile",i),r=()=>I(N,"$areControlsVisible",i),l=()=>I(U,"$currentGridType$",i),d=()=>I(B,"$isInteractiveTime$",i),a=()=>I(y,"$interactiveControlsOpacity$",i),c=()=>I(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>I(L,"$isFullscreen",i),g=p(e,"ref",15,void 0),m=ue(void 0),h=He(),_=Co(),{interactiveControlsOpacity$:y}=_,S=h.ui.isMobile,L=h.ui.isFullscreen,B=h.state.isInteractiveTime$,V=_.showInteractiveTimeIndicatorTooltip$,N=h.ui.controlsVisible,T=(ce=h.callbacks)==null?void 0:ce.onInteractiveTimeIndicatorClick,U=h.ui.currentGridType$,K=$(()=>!n()&&r()),H=$(()=>qs(l(),"s")),G=$(()=>!d()||!!a()||s(K)),J=ue(!1);rt(()=>{Y(J,Ae(s(G)))});let de=()=>{Y(J,!0)},te=()=>{var Be;xe(),(Be=s(m))==null||Be.addEventListener("animationiteration",de,{once:!0})},xe=()=>{var Be;Y(J,!1),(Be=s(m))==null||Be.removeEventListener("animationiteration",de)},Ce=Be=>{V.set(Be)},Q=$(()=>c()&&!s(G));rt(()=>{c()?te():xe()});let pe=()=>{s(G)||(V.set(!0),T==null||T())};ar(()=>{V.clearTimeout(),xe()});let he=()=>{V.set(!1)},j=ee("tooltip_interactive_interaction_time_indicator");var ae=my();ae.__mousemove=[fy],ae.__click=pe;var q=x(ae);ho(q,{tooltipContent:j,get tooltipActive(){return s(Q)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Ce,get ref(){return g()},set ref(Be){g(Be)},children:(Be,Z)=>{hl(Be,{completed:!0})},$$slots:{default:!0}});var Ge=O(q,2);xt(Ge,Be=>g(Be),()=>g());var Re=O(Ge,2);xt(Re,Be=>Y(m,Be),()=>s(m)),b(ae),R(()=>{re(ae,"mobile",n()),re(ae,"fullscreen",f()),re(ae,"invisible",s(G)),re(ae,"icon-small",s(H)),re(Ge,"hidden",s(G)),re(Re,"paused",s(J))}),Ft("mouseleave",ae,he),w(t,ae);var X=P({get ref(){return g()},set ref(Be=void 0){g(Be),u()},$set:M,$on:(Be,Z)=>A(e,Be,Z)});return o(),X}bt(["mousemove","click"]);function Sd(t,e){if(new.target)return k({component:Sd,...t});E(e,!0);let i=p(e,"buttonComponent",7),o=p(e,"buttonComponentProps",7),n=p(e,"tooltipText",7),r=p(e,"disabledTooltipContent",7),l=p(e,"disabled",7,!1),d=p(e,"className",7,void 0),a=p(e,"ref",15);return ho(t,{get disabled(){return l()},get tooltipContent(){return n()},get disabledTooltipContent(){return r()},get className(){return d()},get ref(){return a()},set ref(c){a(c)},children:(c,f)=>{var g=Ze();let m=$(i);var h=Ie(g);Hi(h,()=>s(m),(_,y)=>{y(_,hs(()=>{var S;return(S=o())!=null?S:{}}))}),w(c,g)},$$slots:{default:!0}}),P({get buttonComponent(){return i()},set buttonComponent(c){i(c),u()},get buttonComponentProps(){return o()},set buttonComponentProps(c){o(c),u()},get tooltipText(){return n()},set tooltipText(c){n(c),u()},get disabledTooltipContent(){return r()},set disabledTooltipContent(c){r(c),u()},get disabled(){return l()},set disabled(c=!1){l(c),u()},get className(){return d()},set className(c=void 0){d(c),u()},get ref(){return a()},set ref(c){a(c),u()},$set:M,$on:(c,f)=>A(e,c,f)})}var xs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var hy=Le('<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 Ou(t,e){if(new.target)return k({component:Ou,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=hy();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function Hu(t,e){if(new.target)return k({component:Hu,...t});E(e,!0);let i=p(e,"isPrev",7,!1),o=p(e,"isMobile",7,!1),n=$(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),r=$(()=>i()?"prev-icon":"next-icon");return Ou(t,{get style(){return s(n)},get"data-testid"(){return s(r)}}),P({get isPrev(){return i()},set isPrev(l=!1){i(l),u()},get isMobile(){return o()},set isMobile(l=!1){o(l),u()},$set:M,$on:(l,d)=>A(e,l,d)})}var _y=F('<div class="icon-background-mobile svelte-xtk2k4"></div>'),$y=F("<!> <!>",1),by={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 Ks(t,e){if(new.target)return k({component:Ks,...t});E(e,!0),ne(t,by);let i=p(e,"ref",15,void 0),o=p(e,"isMobile",7,!1),n=p(e,"disabled",7,!1),r=p(e,"type",7),l=p(e,"click",7),a=He().ui.t,c=$(()=>r()==="prev"?a("tooltip_previous"):a("tooltip_next")),f=$(()=>r()==="prev"?a("hotkey_map_item_prev_video_value"):a("hotkey_map_item_next_video_value")),g=$(()=>`btn-${o()?"m":"d"}--${r()}`);return Ot(t,{get className(){return s(g)},get testId(){var m;return`btn-${(m=r())!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return s(c)},get click(){return l()},get ariaKeyShortCut(){return s(f)},get ref(){return i()},set ref(m){i(m)},children:(m,h)=>{var _=$y(),y=Ie(_);{var S=V=>{var N=_y();w(V,N)};W(y,V=>{o()&&V(S)})}var L=O(y,2);let B=$(()=>r()==="prev");Hu(L,{get isMobile(){return o()},get isPrev(){return s(B)}}),w(m,_)},$$slots:{default:!0}}),P({get ref(){return i()},set ref(m=void 0){i(m),u()},get isMobile(){return o()},set isMobile(m=!1){o(m),u()},get disabled(){return n()},set disabled(m=!1){n(m),u()},get type(){return r()},set type(m){r(m),u()},get click(){return l()},set click(m){l(m),u()},$set:M,$on:(m,h)=>A(e,m,h)})}var yy=Le('<svg><!><path fill="var(--btn-color, #fff)" d="M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Il(t,e){if(new.target)return k({component:Il,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=yy();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}import{noop as Hh}from"@vkontakte/videoplayer-shared/es2018";var xy=F('<div class="icon-background-mobile svelte-1ot3duq"></div>'),wy=F('<!> <div class="svelte-1ot3duq"><!></div>',1),Cy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function wa(t,e){if(new.target)return k({component:wa,...t});E(e,!0),ne(t,Cy);let i=p(e,"ref",15,void 0),o=p(e,"isMobile",7,!1),n=p(e,"disabled",7,!1),r=p(e,"className",7,""),l=p(e,"click",7,Hh),d=ee("tooltip_restart"),a=$(()=>`${o()?"btn-m--play":""} ${r()}`);return Ot(t,{get className(){return s(a)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return Jr.KeyK},get ref(){return i()},set ref(c){i(c)},children:(c,f)=>{var g=wy(),m=Ie(g);{var h=S=>{var L=xy();w(S,L)};W(m,S=>{o()&&S(h)})}var _=O(m,2),y=x(_);Il(y,{}),b(_),R(()=>re(_,"mobile",o())),w(c,g)},$$slots:{default:!0}}),P({get ref(){return i()},set ref(c=void 0){i(c),u()},get isMobile(){return o()},set isMobile(c=!1){o(c),u()},get disabled(){return n()},set disabled(c=!1){n(c),u()},get className(){return r()},set className(c=""){r(c),u()},get click(){return l()},set click(c=Hh){l(c),u()},$set:M,$on:(c,f)=>A(e,c,f)})}var Sy=Le('<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 ns(t,e){if(new.target)return k({component:ns,...t});E(e,!0);let i=p(e,"width",7,"24"),o=p(e,"height",7,"24"),n=p(e,"viewBox",7,"0 0 24 24"),r=p(e,"fill",7,"var(--btn-color)");var l=Sy(),d=x(l);return b(l),R(()=>{fe(l,"width",i()),fe(l,"height",o()),fe(l,"viewBox",n()),fe(d,"fill",r())}),w(t,l),P({get width(){return i()},set width(a="24"){i(a),u()},get height(){return o()},set height(a="24"){o(a),u()},get viewBox(){return n()},set viewBox(a="0 0 24 24"){n(a),u()},get fill(){return r()},set fill(a="var(--btn-color)"){r(a),u()},$set:M,$on:(a,c)=>A(e,a,c)})}var Ty=Le('<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 Qs(t,e){if(new.target)return k({component:Qs,...t});E(e,!0);let i=p(e,"width",7,"24"),o=p(e,"height",7,"24"),n=p(e,"viewBox",7,"0 0 24 24"),r=p(e,"fill",7,"var(--btn-color)");var l=Ty(),d=x(l);return b(l),R(()=>{fe(l,"width",i()),fe(l,"height",o()),fe(l,"viewBox",n()),fe(d,"fill",r())}),w(t,l),P({get width(){return i()},set width(a="24"){i(a),u()},get height(){return o()},set height(a="24"){o(a),u()},get viewBox(){return n()},set viewBox(a="0 0 24 24"){n(a),u()},get fill(){return r()},set fill(a="var(--btn-color)"){r(a),u()},$set:M,$on:(a,c)=>A(e,a,c)})}import{noop as Fh}from"@vkontakte/videoplayer-shared/es2018";var Iy=F('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ky=F('<!> <div class="svelte-1ot3duq"><!></div>',1),Ey={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 Ca(t,e){if(new.target)return k({component:Ca,...t});E(e,!0),ne(t,Ey);let[i,o]=Xe(),n=()=>I(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=Co(),l=p(e,"ref",15,void 0),d=p(e,"isMobile",7,!1),a=p(e,"isPlaying",7,!1),c=p(e,"disabled",7,!1),f=p(e,"className",7,""),g=p(e,"click",7,Fh),h=He().ui.t,{toggle:_}=r,y=$(()=>_),S=$(()=>n()!==null),L=$(()=>s(S)?n():a()),B=$(()=>s(L)?h("tooltip_pause"):h("tooltip_play")),V=$(()=>s(L)?Qs:ns),N=$(()=>`${d()?"btn-m--play":""} ${f()}`),T=$(()=>s(S)?s(y):g());Ot(t,{get className(){return s(N)},testId:"btn-play",get click(){return s(T)},get disabled(){return c()},get ariaLabel(){return s(B)},get ariaKeyShortCut(){return Jr.KeyK},get ref(){return l()},set ref(K){l(K)},children:(K,H)=>{var G=ky();let J=$(()=>s(V));var de=Ie(G);{var te=Q=>{var pe=Iy();w(Q,pe)};W(de,Q=>{d()&&Q(te)})}var xe=O(de,2),Ce=x(xe);Hi(Ce,()=>s(J),(Q,pe)=>{pe(Q,{})}),b(xe),R(()=>re(xe,"mobile",d())),w(K,G)},$$slots:{default:!0}});var U=P({get ref(){return l()},set ref(K=void 0){l(K),u()},get isMobile(){return d()},set isMobile(K=!1){d(K),u()},get isPlaying(){return a()},set isPlaying(K=!1){a(K),u()},get disabled(){return c()},set disabled(K=!1){c(K),u()},get className(){return f()},set className(K=""){f(K),u()},get click(){return g()},set click(K=Fh){g(K),u()},$set:M,$on:(K,H)=>A(e,K,H)});return o(),U}var Py=Le('<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 Fu(t,e){if(new.target)return k({component:Fu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=Py();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function kl(t,e){if(new.target)return k({component:kl,...t});E(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"hidden",7,!1),n=p(e,"disabled",7,!1),r=p(e,"click",7),l=ee("tooltip_interactive_go_back"),d=$(()=>o()?"hidden":"");return Ot(t,{get className(){return s(d)},testId:"btn-play-prev-chapter",ariaLabel:l,get disabled(){return n()},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,c)=>{Fu(a,{})},$$slots:{default:!0}}),P({get ref(){return i()},set ref(a=void 0){i(a),u()},get hidden(){return o()},set hidden(a=!1){o(a),u()},get disabled(){return n()},set disabled(a=!1){n(a),u()},get click(){return r()},set click(a){r(a),u()},$set:M,$on:(a,c)=>A(e,a,c)})}var Ay=F('<span class="gutter svelte-et3q1q"><span class="toggler svelte-et3q1q"><!></span></span>'),My={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 El(t,e){if(new.target)return k({component:El,...t});E(e,!0),ne(t,My);let[i,o]=Xe(),n=()=>I(d,"$autoplayNextEnabled$",i),r=p(e,"ref",15,void 0),l=He(),d=l.ui.autoplayNextEnabled$,a=l.actions.internal.setAutoplayNextEnabled;Ot(t,{click:()=>{a(!n(),!0)},get ref(){return r()},set ref(g){r(g)},children:(g,m)=>{var h=Ay(),_=x(h),y=x(_);{var S=B=>{ns(B,{width:"14",height:"14",fill:"#000"})},L=B=>{Qs(B,{width:"14",height:"14",fill:"#000"})};W(y,B=>{n()?B(S):B(L,!1)})}b(_),b(h),R(()=>re(_,"enabled",n())),w(g,h)},$$slots:{default:!0}});var f=P({get ref(){return r()},set ref(g=void 0){r(g),u()},$set:M,$on:(g,m)=>A(e,g,m)});return o(),f}var Ly=Le('<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 Uu(t,e){if(new.target)return k({component:Uu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=Ly();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function Pl(t,e){if(new.target)return k({component:Pl,...t});E(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"hidden",7,!1),n=p(e,"disabled",7,!1),r=p(e,"click",7),l=ee("tooltip_interactive_seek"),d=$(()=>o()?"hidden":"");return Ot(t,{get className(){return s(d)},testId:"btn-seek-to-interactive",ariaLabel:l,get disabled(){return n()},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,c)=>{Uu(a,{})},$$slots:{default:!0}}),P({get ref(){return i()},set ref(a=void 0){i(a),u()},get hidden(){return o()},set hidden(a=!1){o(a),u()},get disabled(){return n()},set disabled(a=!1){n(a),u()},get click(){return r()},set click(a){r(a),u()},$set:M,$on:(a,c)=>A(e,a,c)})}var Vy=Le('<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 zu(t,e){if(new.target)return k({component:zu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=Vy();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var Ry={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Wu(t,e){if(new.target)return k({component:Wu,...t});E(e,!0),ne(t,Ry);let i=p(e,"isOpened",7,!1),o=$(()=>i()?"graph-close-icon":"graph-open-icon");return zu(t,{get"data-testid"(){return s(o)}}),P({get isOpened(){return i()},set isOpened(n=!1){i(n),u()},$set:M,$on:(n,r)=>A(e,n,r)})}function Al(t,e){if(new.target)return k({component:Al,...t});E(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"hidden",7,!1),n=p(e,"disabled",7,!1),r=p(e,"graphIsOpened",7,!1),l=p(e,"click",7),a=He().ui.t,c=$(()=>r()?a("tooltip_interactive_graph_on"):a("tooltip_interactive_graph_off")),f=$(()=>o()?"hidden":"");return Ot(t,{get className(){return s(f)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(c)},get click(){return l()},get ref(){return i()},set ref(g){i(g)},children:(g,m)=>{let h=$(()=>!!r());Wu(g,{get isOpened(){return s(h)}})},$$slots:{default:!0}}),P({get ref(){return i()},set ref(g=void 0){i(g),u()},get hidden(){return o()},set hidden(g=!1){o(g),u()},get disabled(){return n()},set disabled(g=!1){n(g),u()},get graphIsOpened(){return r()},set graphIsOpened(g=!1){r(g),u()},get click(){return l()},set click(g){l(g),u()},$set:M,$on:(g,m)=>A(e,g,m)})}import{PlaybackState as Uh}from"@vkontakte/videoplayer-core/es2018";function Ml(t,e){if(new.target)return k({component:Ml,...t});E(e,!0);let[i,o]=Xe(),n=()=>I(c,"$playbackState$",i),r=p(e,"isMobile",7,!1),l=p(e,"isLiveActive",7,!1),d=p(e,"ariaLabel",7,""),a=He(),c=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,g=a.actions.internal.togglePlay,m=$(()=>()=>{if(!l()){f();return}n()===Uh.PAUSED&&g()}),h=$(()=>r()?"":"btn--live btn-full-opacity"),_=$(()=>l()?"btn-live":"btn-live-offset"),y=$(()=>l()&&n()===Uh.PLAYING);Ot(t,{get className(){return s(h)},get testId(){return s(_)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(m)},children:(L,B)=>{ol(L,{get isActive(){return l()}})},$$slots:{default:!0}});var S=P({get isMobile(){return r()},set isMobile(L=!1){r(L),u()},get isLiveActive(){return l()},set isLiveActive(L=!1){l(L),u()},get ariaLabel(){return d()},set ariaLabel(L=""){d(L),u()},$set:M,$on:(L,B)=>A(e,L,B)});return o(),S}import{noop as wm}from"@vkontakte/videoplayer-shared/es2018";var Ny=F('<div class="icon icon-error-stub"><div class="inner"></div></div>'),By=F('<img class="icon" aria-hidden="true">');function Gs(t,e){if(new.target)return k({component:Gs,...t});E(e,!0);let i=p(e,"icon",7),o=ue(!1),n=()=>{Y(o,!0)};var r=Ze(),l=Ie(r);{var d=c=>{var f=Ny();w(c,f)},a=c=>{var f=By();R(()=>fe(f,"src",i())),Ft("error",f,n),ca(f),w(c,f)};W(l,c=>{s(o)?c(d):c(a,!1)})}return w(t,r),P({get icon(){return i()},set icon(c){i(c),u()},$set:M,$on:(c,f)=>A(e,c,f)})}function qu(t,e){if(new.target)return k({component:qu,...t});E(e,!0);let i=p(e,"id",7),o=p(e,"testId",7),n=p(e,"icon",7),r=p(e,"ariaLabel",7),l=p(e,"tooltipText",7),d=p(e,"disabledTooltipContent",7),a=p(e,"disabled",7,!1),c=p(e,"onClick",7,wm),f=p(e,"ref",15),g=$(()=>c()===wm),m=$(()=>s(g)||a()),h=$(()=>s(g)?"btn-full-opacity":"");return ho(t,{get disabled(){return s(m)},get tooltipContent(){return l()},get disabledTooltipContent(){return d()},width:40,get ref(){return f()},set ref(_){f(_)},children:(_,y)=>{let S=$(()=>{var L;return(L=o())!=null?L:i()});Ot(_,{get className(){return s(h)},get ariaLabel(){return r()},get click(){return c()},get disabled(){return s(m)},get testId(){return s(S)},children:(L,B)=>{Gs(L,{get icon(){return n()}})},$$slots:{default:!0}})},$$slots:{default:!0}}),P({get id(){return i()},set id(_){i(_),u()},get testId(){return o()},set testId(_){o(_),u()},get icon(){return n()},set icon(_){n(_),u()},get ariaLabel(){return r()},set ariaLabel(_){r(_),u()},get tooltipText(){return l()},set tooltipText(_){l(_),u()},get disabledTooltipContent(){return d()},set disabledTooltipContent(_){d(_),u()},get disabled(){return a()},set disabled(_=!1){a(_),u()},get onClick(){return c()},set onClick(_=wm){c(_),u()},get ref(){return f()},set ref(_){f(_),u()},$set:M,$on:(_,y)=>A(e,_,y)})}var zh=t=>!!t.buttonComponent;var ws={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Fy=F('<div class="wrapper-bottom svelte-1iedtj3"><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),Uy={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function Ku(t,e){var Zs,Is;if(new.target)return k({component:Ku,...t});E(e,!0),ne(t,Uy);let[i,o]=Xe(),n=()=>I(Yi,"$disabledControls$",i),r=()=>I(Nn,"$adPlaybackState",i),l=()=>I(Ti,"$playbackState$",i),d=()=>I(Io,"$currentSubtitle$",i),a=()=>I(xi,"$isEnded$",i),c=()=>I(co,"$currentGridType$",i),f=()=>I(ao,"$isLive$",i),g=()=>I(lo,"$chromecastState$",i),m=()=>I(un,"$isPictureInPictureActive",i),h=()=>I(ur,"$pictureInPictureType$",i),_=()=>I(To,"$availableSubtitlesList$",i),y=()=>I(Ui,"$contextMenuOpenedByKeyboard$",i),S=()=>I(Ii,"$showContextMenuBtn$",i),L=()=>I(Zo,"$playerSize",i),B=()=>I(So,"$isRewindableLive$",i),V=()=>I(si,"$isActiveLive$",i),N=()=>I(Un,"$graphIsOpened$",i),T=()=>I(Rt,"$contextMenuVisible$",i),U=()=>I(Bn,"$isFullscreen",i),K=()=>I(Dn,"$autoplayNextEnabled",i),H=()=>I(s(br),"$prevButton",i),G=()=>I(s(bn),"$replayButton",i),J=()=>I(s(Fo),"$playButton",i),de=()=>I(s(zr),"$nextButton",i),te=()=>I(s(Jn),"$playPrevChapterButton",i),xe=()=>I(s(Ao),"$seekToInteractiveButton",i),Ce=()=>I(s(Te),"$interactiveGraphButton",i),Q=()=>I(s(Dt),"$liveButton",i),pe=()=>I(s(ki),"$time",i),he=()=>I(s(_i),"$episodes",i),j=()=>I(s(tn),"$vkLogo",i),ae=()=>I(s($o),"$volume",i),q=()=>I(s(Ri),"$subtitles",i),Ge=()=>I(s(ge),"$settings",i),Re=()=>I(s(Pt),"$context",i),X=()=>I(s($i),"$fullscreen",i),ce=()=>I(s(Ei),"$chromecast",i),Be=()=>I(ci,"$additionalDesktopControlPanelRightButtons$",i),Z=()=>I(Hn,"$isInteractiveTime$",i),De=()=>I(Rn,"$settingsMenuVisible",i),le=()=>I(yn,"$settingButtonRef$",i),Ke=()=>I(No,"$settingsMenuOpenedByKeyboard",i),lt=()=>I(ko,"$startedByKeyboard$",i),at=()=>I(di,"$isAudioAvailable$",i),we=()=>I(kt,"$fakeIsPlaying$",i),$e=()=>I(Fn,"$seekToInteractiveDisabledTooltip$",i),Je=()=>I(ni,"$adPosition",i),vt=()=>I(li,"$position$",i),ve=()=>I(Mi,"$adDuration",i),je=()=>I(Yt,"$duration$",i),Ct=p(e,"bottomHidden",7),ie=p(e,"bottomNoSmooth",7),et=p(e,"showControls",7),ht=p(e,"playerControlsWrapperRef",15,void 0),ft=p(e,"playerControlsRef",15,void 0),be=p(e,"isAds",7,!1),Pe=p(e,"canRewindLive",7),ye=p(e,"logoClickable",7),Ye=p(e,"logoHidden",7),pt=p(e,"logoTargetUrl",7,""),Ve=p(e,"showAutoplayNext",7),_t=p(e,"showNextPrevButtons",7),me=p(e,"nextButtonActive",7),Bt=p(e,"prevButtonActive",7),Ut=p(e,"isOneVideoPlaylist",7,!1),jt=p(e,"customFullscreenSupported",7,!0),We=p(e,"toggleFullscreen",7),ct=p(e,"seekToInteractive",7),gt=p(e,"playPrevChapter",7),{fakeIsPlaying$:kt}=Co(),qe=He(),zt=Co(),oi=Xt(),ri=qe.actions.internal.toggleMuted,vi=qe.actions.internal.togglePlay,mt=qe.actions.internal.pause,dt=qe.actions.internal.toggleSubtitle,$t=(Zs=qe.callbacks)==null?void 0:Zs.onAudioDoesNotExistHint,D=(Is=qe.callbacks)==null?void 0:Is.onAudioDisabledHint,Yt=qe.state.duration$,li=qe.state.positionWithScrubbing$,Ti=qe.state.playbackState$,di=qe.state.isAudioAvailable$,gi=qe.state.isAudioDisabled,xi=qe.state.isEnded$,ao=qe.state.isLive$,si=qe.state.isActiveLive$,So=qe.state.isRewindableLive$,{isActive$:un,type$:ur}=zt.pictureInPicture$,Rn=qe.ui.settingsMenu.visible$,No=qe.ui.settingsMenu.openedByBtnKeyboard$,tt=qe.ui.controls,Mt=qe.actions.internal.getVideoEpisodes(),lo=qe.state.chromecastState$,To=qe.state.availableSubtitlesList$,Io=qe.state.currentSubtitle$,Yi=tt.disabledControls$,Rt=qe.ui.contextMenu.visible$,Ii=qe.ui.contextMenu.showContextMenuBtn$,Ui=qe.ui.contextMenu.openedByBtnKeyboard$,ko=qe.ui.startedByKeyboard$,Qt=qe.ui.t,Mi=qe.ads.duration,ni=qe.ads.position,Nn=qe.ads.playbackState,Bn=qe.ui.isFullscreen,Zo=qe.ui.playerSize,co=qe.ui.currentGridType$,ci=qe.ui.additionalDesktopControlPanelRightButtons$,Dn=qe.ui.autoplayNextEnabled$,On=qe.actions.internal.getVideoElement,Eo=qe.actions.internal.replayInteractive,Or=qe.actions.internal.prevVideoClick,Po=qe.actions.internal.nextVideoClick,eo=qe.state.isInteractive,Hn=qe.state.isInteractiveTime$,pr=qe.state.showInteractiveGraph,Bo=qe.state.showSeekToInteractive,Xo=qe.state.showPlayPrevChapter,fr=qe.state.showInteractiveTimeIndicator,rs=qe.state.playPrevChapterDisabledTooltip,Fn=zt.seekToInteractiveDisabledTooltip$,Un=zt.graphIsOpened$,uo=oi.features.interactiveResponsiveUi,zn=$(()=>n().has("EPISODE_BUTTON")),Wn=$(()=>n().has("GRAPH_BUTTON")),Li=$(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),to=$(()=>n().has("PLAY_BUTTON")),pn=$(()=>n().has("REPLAY_BUTTON")),fn=$(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),mr=()=>qe.actions.internal.toggleChromecast(),mn=$(()=>be()?r()==="playing":l()===Cm.PLAYING),Jo=$(()=>d().value!=="off"),Vi=$(()=>a()&&!be()||eo),vn=$(()=>uo?s(Vi)&&Gi(c(),"m"):s(Vi)),yt=$(()=>!a()||eo||be()),qn=$(()=>Gi(c(),"m")),vr=$(()=>_t()&&Gi(c(),"m")&&!be()&&me()),Kn=$(()=>_t()&&Gi(c(),"m")&&!be()&&Bt()),en=$(()=>!be()&&!!f()),gr=$(()=>g()!==Wh.NOT_AVAILABLE&&!(m()&&h()===1)&&Gi(c(),"m")&&!eo),Do=$(()=>Ve()&&!Ut()&&Gi(c(),"s")),Hr=$(()=>_().length>0&&Gi(c(),"m")),Qn=$(()=>y()||S()),hr=$(()=>Gi(c(),"s")&&!be()),gn=$(()=>!Ye()&&!be()),Gn=$(()=>oi.features.fullscreen&&(Ye()||Gi(c(),uo?"xs":"s"))&&!(m()&&h()===1)&&(eo?jt():!0)),Yn=$(()=>(!f()||be())&&!(oi.features.interactiveHideTime&&eo)),_o=$(()=>L().width>100),Oo=$(()=>pr&&Gi(c(),"m")),io=$(()=>uo?Bo&&Gi(c(),"s"):Bo),Ho=$(()=>uo?Xo&&Gi(c(),"s"):Xo),zi=$(()=>!be()&&!f()&&!!(Mt!=null&&Mt.length)&&s(qn)&&!s(zn)),Wi=$(()=>!B()||!!V()),_r=$(()=>N()?Qt("tooltip_interactive_graph_on"):Qt("tooltip_interactive_graph_off")),hn=$(()=>T()?Qt("aria_label_context_menu_close"):Qt("aria_label_context_menu_open")),Fr=(Qe,Lt)=>Qe?Lt&&Lt===Cm.PAUSED?Qt("tooltip_play"):"":Qt("tooltip_live"),_n=$(()=>Fr(s(Wi),l())),$r=$(()=>oi.logoType==="vk_video"?Qt("tooltip_vk_video_logo"):Qt("tooltip_vk_logo")),jn=$(()=>s(Jo)?Qt("tooltip_subtitles_on"):Qt("tooltip_subtitles_off")),$n=$(()=>U()?Qt("tooltip_fullscreen_on"):Qt("tooltip_fullscreen_off")),Ur=$(()=>g()===Wh.CONNECTED?Qt("tooltip_chromecast_on"):Qt("tooltip_chromecast_off")),Zn=$(()=>K()?Qt("tooltip_autoplay_on"):Qt("tooltip_autoplay_off")),Xn=ue(0),hi=ue(Ae({})),br=$(()=>tt.prevButton),bn=$(()=>tt.replayButton),Fo=$(()=>tt.playButton),zr=$(()=>tt.nextButton),Jn=$(()=>tt.playPrevChapterButton),Ao=$(()=>tt.seekToInteractiveButton),Te=$(()=>tt.interactiveGraphButton),Dt=$(()=>tt.liveButton),ki=$(()=>tt.time),_i=$(()=>tt.episodes),tn=$(()=>tt.vkLogo),$o=$(()=>tt.volume),Ri=$(()=>tt.subtitles),ge=$(()=>tt.settings),Pt=$(()=>tt.context),$i=$(()=>tt.fullscreen),Ei=$(()=>tt.chromecast),ai=$(()=>({prevButton:H()?H().right-H().left:0,replayButton:G()?G().right-G().left:0,playButton:J()?J().right-J().left:0,nextButton:de()?de().right-de().left:0,playPrevChapterButton:te()?te().right-te().left:0,seekToInteractiveButton:xe()?xe().right-xe().left:0,interactiveGraphButton:Ce()?Ce().right-Ce().left:0,liveButton:Q()?Q().right-Q().left:0,time:pe()?pe().right-pe().left:0,episodes:he()?he().right-he().left:0,vkLogo:j()?j().right-j().left:0,volume:ae()?ae().right-ae().left:0,subtitles:q()?q().right-q().left:0,settings:Ge()?Ge().right-Ge().left:0,context:Re()?Re().right-Re().left:0,fullscreen:X()?X().right-X().left:0,chromecast:ce()?ce().right-ce().left:0,additionalButtons:Be().length?Be().reduce(Qe=>[...Qe,40],[]):[]})),ji=ue(0);rt(()=>{(!s(ji)||s(ji)<s(ai).time)&&Tt(()=>Y(ji,Ae(s(ai).time)))});let bo=ue(!1);rt(()=>{let Qe=0;s(zi)&&(Gi(c(),"xl")?Qe=s(ai).time:Qe=60);let Lt=s(ai).prevButton+s(ai).playButton+s(ai).nextButton+s(ai).seekToInteractiveButton+s(ai).interactiveGraphButton+s(ai).liveButton+s(ji)+Qe;Y(bo,Ae(s(Yn)&&s(Xn)>=Lt))});let Ni=$(()=>s(bo)&&Gi(c(),"m")),on=Hy(Ru,260);rt(()=>{L(),Z(),on(On(),tt,s(hi),et())});let nn,yn=Se();rt(()=>{De(),le()&&Tt(()=>sl(le(),De(),No))}),rt(()=>{De(),Ke(),Tt(()=>ts(nn,De(),Ke()))});let xn=ue(void 0);rt(()=>{lt(),s(xn),Tt(()=>Nu(ko,lt(),s(xn)))});function yr(){Fs({isAudioDisabled:gi,audioDisabledHintCallback:D,isAudioAvailable:at(),audioIsNotExistHintCallback:$t})&&ri()}let xr=eo?Eo:vi,wr=$(()=>we()!==null),ss=$(()=>s(wr)?we():s(mn)),rn=$(()=>s(ss)?Qt("tooltip_pause"):Qt("tooltip_play")),Cr=Qt("tooltip_episodes"),yo=$(()=>s(Kn)?{id:"prevButton",type:"desktop-control-panel-left",weight:xs.prevButton,buttonComponent:Ks,buttonComponentProps:{disabled:!Bt(),type:"prev",click:Or.bind(null,!0)},tooltipText:Qt("tooltip_previous"),disabled:!Bt()}:void 0),er=$(()=>s(vn)?{id:"replayButton",type:"desktop-control-panel-left",weight:xs.replayButton,buttonComponent:wa,buttonComponentProps:{disabled:s(pn),click:xr},tooltipText:Qt("tooltip_restart"),disabled:s(pn)}:void 0),Sr=$(()=>s(yt)?{id:"playButton",type:"desktop-control-panel-left",weight:xs.playButton,buttonComponent:Ca,buttonComponentProps:{disabled:s(to),isPlaying:s(mn),click:vi},tooltipText:s(rn),disabled:s(to)}:void 0),Uo=$(()=>s(vr)?{id:"nextButton",type:"desktop-control-panel-left",weight:xs.nextButton,buttonComponent:Ks,buttonComponentProps:{disabled:!me(),type:"next",click:Po.bind(null,!0)},tooltipText:Qt("tooltip_next"),disabled:!me()}:void 0),ut=$(()=>eo&&s(Ho)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:xs.playPrevChapterButton,buttonComponent:kl,buttonComponentProps:{disabled:s(fn),click:gt()},tooltipText:Qt("tooltip_interactive_go_back"),disabledTooltipContent:Qt(rs),disabled:s(fn)}:void 0),Jt=$(()=>eo&&s(io)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:xs.seekToInteractiveButton,buttonComponent:Pl,buttonComponentProps:{disabled:s(Li),click:ct()},tooltipText:Qt("tooltip_interactive_seek"),disabled:s(Li),disabledTooltipContent:Qt($e())}:void 0),bi=$(()=>eo&&s(Oo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:xs.interactiveGraphButton,buttonComponent:Al,buttonComponentProps:{disabled:s(Wn),click:Un.toggle,graphIsOpened:N()},tooltipText:s(_r)}:void 0),Tr=$(()=>s(en)?{id:"liveButton",type:"desktop-control-panel-left",weight:xs.liveButton,buttonComponent:Ml,buttonComponentProps:{isLiveActive:s(Wi),ariaLabel:s(_n)},tooltipText:s(_n),disabled:s(Wi)&&l()===Cm.PLAYING}:void 0),wn=$(()=>[s(yo),s(er),s(Sr),s(Uo),s(ut),s(Jt),s(bi),s(Tr)].filter(Qe=>!!Qe).sort($a)),Ir=$(()=>s(gn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ws.vkLogo,buttonComponent:$l,buttonComponentProps:{targetUrl:pt(),logoClickable:ye(),click:mt},tooltipText:s($r),disabledTooltipContent:"",disabled:!ye()}:void 0),oe=$(()=>s(Do)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ws.autoplayNext,buttonComponent:El,tooltipText:s(Zn)}:void 0),Ht=$(()=>({id:"volume",type:"desktop-control-panel-right",weight:ws.volume,buttonComponent:vu,buttonComponentProps:{click:yr}})),Gt=$(()=>s(Hr)?{id:"subtitles",type:"desktop-control-panel-right",weight:ws.subtitles,buttonComponent:cu,buttonComponentProps:{isSubtitlesEnabled:s(Jo),click:dt},tooltipText:s(jn)}:void 0),Et=$(()=>s(hr)?{id:"settings",type:"desktop-control-panel-right",weight:ws.settings,buttonComponent:ya,buttonComponentProps:{ref$:yn},tooltipText:De()?void 0:Qt("tooltip_settings_off")}:void 0),Bi=$(()=>oi.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ws.context,buttonComponent:Du,buttonComponentProps:{click:We()},className:s(Qn)?"":"out-of-view",tooltipText:s(hn)}:void 0),ui=$(()=>s(Gn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ws.fullscreen,buttonComponent:_l,buttonComponentProps:{isFullscreen:U(),click:We()},tooltipText:s($n)}:void 0),qi=$(()=>s(gr)?{id:"chromecast",type:"desktop-control-panel-right",weight:ws.chromecast,buttonComponent:bl,buttonComponentProps:{state:g(),click:mr},tooltipText:s(Ur)}:void 0),Wr=$(()=>[s(Ir),s(oe),s(Ht),s(Gt),s(Et),s(Bi),s(ui),s(qi),...Be()].filter(Qe=>!!Qe).sort($a));var tr=Fy(),Mo=Ie(tr),as=x(Mo);let it=$(()=>!s(_o));xl(as,{get isHidden(){return s(it)},get isAds(){return be()},get canRewindLive(){return Pe()},get isRewindableLive(){return B()},get ref(){return s(hi).timeline},set ref(Qe){s(hi).timeline=Qe}});var Zt=O(as,2),wi=x(Zt),Cn=x(wi);Ci(Cn,17,()=>s(wn),Qe=>Qe.id,(Qe,Lt)=>{Sd(Qe,{get buttonComponent(){return s(Lt).buttonComponent},get buttonComponentProps(){return s(Lt).buttonComponentProps},get tooltipText(){return s(Lt).tooltipText},get disabledTooltipContent(){return s(Lt).disabledTooltipContent},get disabled(){return s(Lt).disabled},get className(){return s(Lt).className},get ref(){return s(hi)[s(Lt).id]},set ref(zo){s(hi)[s(Lt).id]=zo}})});var ir=O(Cn,2);{var Ss=Qe=>{let Lt=$(()=>be()?Je():vt()),zo=$(()=>be()?ve():je());gl(Qe,{isMobile:!1,get showDuration(){return s(Ni)},get position(){return s(Lt)},get duration(){return s(zo)},get ref(){return s(hi).time},set ref(kr){s(hi).time=kr}})};W(ir,Qe=>{s(Yn)&&Qe(Ss)})}var Sn=O(ir,2);let qr=$(()=>!s(zi));ho(Sn,{className:"w-max",get disabled(){return s(qr)},tooltipContent:Cr,get ref(){return s(hi).episodes},set ref(Qe){s(hi).episodes=Qe},children:(Qe,Lt)=>{var zo=Ze(),kr=Ie(zo);{var Xs=Er=>{wl(Er,{get position(){return vt()},get duration(){return je()},timeCodes:Mt})};W(kr,Er=>{s(zi)&&Er(Xs)})}w(Qe,zo)},$$slots:{default:!0}}),b(wi);var Ta=O(wi,2);Ci(Ta,21,()=>s(Wr),Qe=>Qe.id,(Qe,Lt)=>{var zo=Ze(),kr=Ie(zo);{var Xs=Kr=>{Sd(Kr,{get buttonComponent(){return s(Lt).buttonComponent},get buttonComponentProps(){return s(Lt).buttonComponentProps},get tooltipText(){return s(Lt).tooltipText},get disabledTooltipContent(){return s(Lt).disabledTooltipContent},get disabled(){return s(Lt).disabled},get className(){return s(Lt).className},get ref(){return s(hi)[s(Lt).id]},set ref(ks){s(hi)[s(Lt).id]=ks}})},Er=Kr=>{let ks=$(()=>!!s(Lt).disabled);qu(Kr,{get id(){return s(Lt).id},get testId(){return s(Lt).testId},get icon(){return s(Lt).icon},get ariaLabel(){return s(Lt).ariaLabel},get tooltipText(){return s(Lt).tooltipText},get disabledTooltipContent(){return s(Lt).disabledTooltipContent},get disabled(){return s(ks)},get onClick(){return s(Lt).onClick},get ref(){return s(hi)[s(Lt).id]},set ref(ql){s(hi)[s(Lt).id]=ql}})};W(kr,Kr=>{zh(s(Lt))?Kr(Xs):Kr(Er,!1)})}w(Qe,zo)}),b(Ta),b(Zt),xt(Zt,Qe=>ft(Qe),()=>ft()),b(Mo),xt(Mo,Qe=>ht(Qe),()=>ht());var Ia=O(Mo,2);{var Ts=Qe=>{Tl(Qe,{get ref(){return s(hi).interactiveTimeIndicator},set ref(Lt){s(hi).interactiveTimeIndicator=Lt}})};W(Ia,Qe=>{fr&&Qe(Ts)})}R(()=>{re(Mo,"hidden",Ct()),re(Mo,"controls-hidden",!et()),re(Mo,"no-smooth",ie())}),Xr(wi,"clientWidth",Qe=>Y(Xn,Qe)),w(t,tr);var ka=P({get bottomHidden(){return Ct()},set bottomHidden(Qe){Ct(Qe),u()},get bottomNoSmooth(){return ie()},set bottomNoSmooth(Qe){ie(Qe),u()},get showControls(){return et()},set showControls(Qe){et(Qe),u()},get playerControlsWrapperRef(){return ht()},set playerControlsWrapperRef(Qe=void 0){ht(Qe),u()},get playerControlsRef(){return ft()},set playerControlsRef(Qe=void 0){ft(Qe),u()},get isAds(){return be()},set isAds(Qe=!1){be(Qe),u()},get canRewindLive(){return Pe()},set canRewindLive(Qe){Pe(Qe),u()},get logoClickable(){return ye()},set logoClickable(Qe){ye(Qe),u()},get logoHidden(){return Ye()},set logoHidden(Qe){Ye(Qe),u()},get logoTargetUrl(){return pt()},set logoTargetUrl(Qe=""){pt(Qe),u()},get showAutoplayNext(){return Ve()},set showAutoplayNext(Qe){Ve(Qe),u()},get showNextPrevButtons(){return _t()},set showNextPrevButtons(Qe){_t(Qe),u()},get nextButtonActive(){return me()},set nextButtonActive(Qe){me(Qe),u()},get prevButtonActive(){return Bt()},set prevButtonActive(Qe){Bt(Qe),u()},get isOneVideoPlaylist(){return Ut()},set isOneVideoPlaylist(Qe=!1){Ut(Qe),u()},get customFullscreenSupported(){return jt()},set customFullscreenSupported(Qe=!0){jt(Qe),u()},get toggleFullscreen(){return We()},set toggleFullscreen(Qe){We(Qe),u()},get seekToInteractive(){return ct()},set seekToInteractive(Qe){ct(Qe),u()},get playPrevChapter(){return gt()},set playPrevChapter(Qe){gt(Qe),u()},$set:M,$on:(Qe,Lt)=>A(e,Qe,Lt)});return o(),ka}import{ChromecastState as Qh,PlaybackState as Gh}from"@vkontakte/videoplayer-core/es2018";import{noop as Tm}from"@vkontakte/videoplayer-shared/es2018";var zy=F('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Wy=F('<img class="icon svelte-167ouw6" aria-hidden="true">'),qy={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 Qu(t,e){if(new.target)return k({component:Qu,...t});E(e,!0),ne(t,qy);let i=p(e,"iconUrl",7),o=p(e,"ariaLabel",7),n=p(e,"disabled",7,!1),r=p(e,"testId",7),l=p(e,"onClick",7,Tm),d=$(()=>l()===Tm),a=$(()=>s(d)||n()),c=ue(!1),f=()=>{Y(c,!0)},g=$(()=>s(d)?"btn-full-opacity":"");return Ot(t,{get className(){return s(g)},get ariaLabel(){return o()},get click(){return l()},get disabled(){return s(a)},get testId(){return r()},children:(m,h)=>{var _=Ze(),y=Ie(_);{var S=B=>{var V=zy();w(B,V)},L=B=>{var V=Wy();R(()=>fe(V,"src",i())),Ft("error",V,f),ca(V),w(B,V)};W(y,B=>{s(c)?B(S):B(L,!1)})}w(m,_)},$$slots:{default:!0}}),P({get iconUrl(){return i()},set iconUrl(m){i(m),u()},get ariaLabel(){return o()},set ariaLabel(m){o(m),u()},get disabled(){return n()},set disabled(m=!1){n(m),u()},get testId(){return r()},set testId(m){r(m),u()},get onClick(){return l()},set onClick(m=Tm){l(m),u()},$set:M,$on:(m,h)=>A(e,m,h)})}var Ky=Le('<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 Gu(t,e){if(new.target)return k({component:Gu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=Ky();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}import{noop as qh}from"@vkontakte/videoplayer-shared/es2018";var Qy=F('<span class="text svelte-6gmlbk"> </span>'),Gy=F('<div class="container svelte-6gmlbk" aria-hidden="true"><!> <!></div>'),Yy={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 Td(t,e){if(new.target)return k({component:Td,...t});E(e,!0),ne(t,Yy);let i=p(e,"muted",7,!1),o=p(e,"expanded",7,!1),n=p(e,"click",7,qh),r=p(e,"ref",15,void 0),d=He().ui.t,a=$(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),c=$(()=>o()?bs:Gu),f=$(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");return Ot(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},get ref(){return r()},set ref(g){r(g)},children:(g,m)=>{var h=Gy();let _=$(()=>s(c));var y=x(h);Hi(y,()=>s(_),(B,V)=>{V(B,{})});var S=O(y,2);{var L=B=>{var V=Qy(),N=x(V,!0);b(V),R(T=>ke(N,T),[()=>d("mobile_unmute")]),w(B,V)};W(S,B=>{o()&&B(L)})}b(h),R(()=>re(h,"expanded",o())),w(g,h)},$$slots:{default:!0}}),P({get muted(){return i()},set muted(g=!1){i(g),u()},get expanded(){return o()},set expanded(g=!1){o(g),u()},get click(){return n()},set click(g=qh){n(g),u()},get ref(){return r()},set ref(g=void 0){r(g),u()},$set:M,$on:(g,m)=>A(e,g,m)})}var jy=Le('<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 Yu(t,e){if(new.target)return k({component:Yu,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=jy();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(3),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var Zy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
250
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function ju(t,e){if(new.target)return k({component:ju,...t});E(e,!0),ne(t,Zy);let i=p(e,"isActive",7,!1),o=$(()=>i()?"color: #2688EB;":"color: #fff;"),n=$(()=>i()?"pip-icon--active":"pip-icon");return Yu(t,{get style(){return s(o)},get"data-testid"(){return s(n)}}),P({get isActive(){return i()},set isActive(r=!1){i(r),u()},$set:M,$on:(r,l)=>A(e,r,l)})}import{noop as Kh}from"@vkontakte/videoplayer-shared/es2018";function Zu(t,e){if(new.target)return k({component:Zu,...t});E(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"isPictureInPictureActive",7,!1),n=p(e,"click",7,Kh),r=ee("menu_pip");return Ot(t,{testId:"btn-pip",ariaLabel:r,get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{ju(l,{get isActive(){return o()}})},$$slots:{default:!0}}),P({get ref(){return i()},set ref(l=void 0){i(l),u()},get isPictureInPictureActive(){return o()},set isPictureInPictureActive(l=!1){o(l),u()},get click(){return n()},set click(l=Kh){n(l),u()},$set:M,$on:(l,d)=>A(e,l,d)})}import{debounceFn as Xy}from"@vkontakte/videoplayer-shared/es2018";var Jy=(t,e,i,o)=>{s(e)&&i()(s(o))},e2=(t,e,i,o)=>{s(e)&&i()(s(o))},t2=F('<div class="wrapper-middle-left svelte-1afsgkw"><!></div>'),i2=F("<div><!></div>"),o2=F('<div class="wrapper-middle-right svelte-1afsgkw"><!></div>'),n2=F("<!> <!> <!>",1),r2=F('<div class="overlay-mobile svelte-1afsgkw"></div> <div class="wrapper-top-left svelte-1afsgkw"><!></div> <div class="wrapper-top-right svelte-1afsgkw"><!> <!> <!> <!> <!> <!></div> <div class="wrapper-middle svelte-1afsgkw"><!> <!> <!> <!></div> <!>',1),s2=F('<div class="wrapper-top-right svelte-1afsgkw"><!></div>'),a2=F('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),l2=F('<!> <!> <div class="wrapper-bottom ads-timeline-mobile svelte-1afsgkw"><!></div>',1),d2=F('<div aria-hidden="true">\xB7</div> <!>',1),c2=F('<!> <!> <div class="wrapper-bottom svelte-1afsgkw"><div class="controls-wrapper svelte-1afsgkw"><div class="controls svelte-1afsgkw"><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>',1),u2={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
254
+ 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 od(t,e){var D;q(e,!0),Q(t,y2);let[i,o]=Ue(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(V,"$currentGridType$",i),d=()=>C(A,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),u=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),p=ee(void 0),$=Te(),w=oo(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,I=$.ui.isFullscreen,A=$.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(D=$.callbacks)==null?void 0:D.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,z=m(()=>!n()&&a()),Y=m(()=>ws(s(),"s")),U=m(()=>!d()||!!l()||r(z)),Z=ee(!1);Ye(()=>{O(Z,pe(r(U)))});let X=()=>{O(Z,!0)},oe=()=>{var de;ce(),(de=r(p))==null||de.addEventListener("animationiteration",X,{once:!0})},ce=()=>{var de;O(Z,!1),(de=r(p))==null||de.removeEventListener("animationiteration",X)},le=de=>{P.set(de)},Ve=m(()=>u()&&!r(U));Ye(()=>{u()?oe():ce()});let Me=()=>{r(U)||(P.set(!0),T==null||T())};er(()=>{P.clearTimeout(),ce()});let J=()=>{P.set(!1)},Le=H("tooltip_interactive_interaction_time_indicator");var j=$2();let N;j.__mousemove=[b2],j.__click=Me;var Ne=h(j);Co(Ne,{tooltipContent:Le,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return _()},set ref(de){_(de)},children:(de,Ee)=>{Ql(de,{completed:!0})},$$slots:{default:!0}});var ne=M(Ne,2);let ke;ut(ne,de=>_(de),()=>_());var Re=M(ne,2);let ue;ut(Re,de=>O(p,de),()=>r(p)),g(j),k((de,Ee,We)=>{N=te(j,1,"interactive-episode-icon-animated svelte-od3veb",null,N,de),ke=te(ne,1,"ref-block svelte-od3veb",null,ke,Ee),ue=te(Re,1,"pulse svelte-od3veb",null,ue,We)},[()=>({mobile:n(),fullscreen:f(),invisible:r(U),"icon-small":r(Y)}),()=>({hidden:r(U)}),()=>({paused:r(Z)})]),It("mouseleave",j,J),b(t,j),K(),o()}at(["mousemove","click"]);function qc(t,e){q(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),a=v(e,"ref",15);Co(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=ze();let u=m(()=>e.buttonComponent);var f=ve(l);Pi(f,()=>r(u),(_,p)=>{p(_,es(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),K()}var os={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var w2=be('<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 bf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=w2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function $f(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),a=m(()=>i()?"prev-icon":"next-icon");bf(t,{get style(){return r(n)},get"data-testid"(){return r(a)}})}var S2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),C2=L("<!> <!>",1),T2={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 oa(t,e){q(e,!0),Q(t,T2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=Te().ui.t,d=m(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=m(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);kt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{var p=C2(),$=ve(p);{var w=I=>{var A=S2();b(I,A)};R($,I=>{o()&&I(w)})}var y=M($,2);let S=m(()=>e.type==="prev");$f(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,p)},$$slots:{default:!0}}),K()}var I2=be('<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 nd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=I2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}import{noop as k2}from"@vkontakte/videoplayer-shared/es2018";var E2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),A2=L("<!> <div><!></div>",1),P2={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 qa(t,e){q(e,!0),Q(t,P2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),a=v(e,"className",3,""),s=v(e,"click",3,k2),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);kt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Dr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var _=A2(),p=ve(_);{var $=I=>{var A=E2();b(I,A)};R(p,I=>{o()&&I($)})}var w=M(p,2);let y;var S=h(w);nd(S,{}),g(w),k(I=>y=te(w,1,"svelte-1ot3duq",null,y,I),[()=>({mobile:o()})]),b(u,_)},$$slots:{default:!0}}),K()}var M2=be('<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 ns(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=M2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}var L2=be('<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 na(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=L2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}import{noop as V2}from"@vkontakte/videoplayer-shared/es2018";var R2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),B2=L("<!> <div><!></div>",1),N2={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 Ka(t,e){q(e,!0),Q(t,N2);let[i,o]=Ue(),n=()=>C(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=oo(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,V2),$=Te().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),A=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),P=m(()=>r(I)?na:ns),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());kt(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return u()},get ariaLabel(){return r(A)},get ariaKeyShortCut(){return Dr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,z)=>{var Y=B2();let U=m(()=>r(P));var Z=ve(Y);{var X=Ve=>{var Me=R2();b(Ve,Me)};R(Z,Ve=>{d()&&Ve(X)})}var oe=M(Z,2);let ce;var le=h(oe);Pi(le,()=>r(U),(Ve,Me)=>{Me(Ve,{})}),g(oe),k(Ve=>ce=te(oe,1,"svelte-1ot3duq",null,ce,Ve),[()=>({mobile:d()})]),b(V,Y)},$$slots:{default:!0}}),K(),o()}var D2=be('<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 yf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function rd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");kt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{yf(d,{})},$$slots:{default:!0}}),K()}var O2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),H2={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 sd(t,e){q(e,!0),Q(t,H2);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;kt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var p=O2(),$=h(p);let w;var y=h($);{var S=A=>{ns(A,{width:"14",height:"14",fill:"#000"})},I=A=>{na(A,{width:"14",height:"14",fill:"#000"})};R(y,A=>{n()?A(S):A(I,!1)})}g($),g(p),k(A=>w=te($,1,"toggler svelte-et3q1q",null,w,A),[()=>({enabled:n()})]),b(f,p)},$$slots:{default:!0}}),K(),o()}var F2=be('<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 xf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=F2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),b(t,o)}function ad(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");kt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{xf(d,{})},$$slots:{default:!0}}),K()}var U2=be('<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 wf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=U2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var z2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Sf(t,e){Q(t,z2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");wf(t,{get"data-testid"(){return r(o)}})}function ld(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=v(e,"graphIsOpened",3,!1),d=Te().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");kt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{let p=m(()=>!!a());Sf(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),K()}import{PlaybackState as Oh}from"@vkontakte/videoplayer-core/es2018";function dd(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(u,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=Te(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,p=m(()=>()=>{if(!s()){f();return}n()===Oh.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===Oh.PLAYING);kt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(S,I)=>{Vl(S,{get isActive(){return s()}})},$$slots:{default:!0}}),K(),o()}import{noop as Hh}from"@vkontakte/videoplayer-shared/es2018";var q2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),K2=L('<img class="icon" aria-hidden="true">');function ra(t,e){"use strict";let i=ee(!1),o=()=>{O(i,!0)};var n=ze(),a=ve(n);{var s=l=>{var u=q2();b(l,u)},d=l=>{var u=K2();k(()=>Oe(u,"src",e.icon)),It("error",u,o),Os(u),b(l,u)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Cf(t,e){q(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Hh),n=v(e,"ref",15),a=m(()=>o()===Hh),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Co(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,u)=>{let f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});kt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(_,p)=>{ra(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),K()}var Fh=t=>!!t.buttonComponent;var rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Y2=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),j2={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function kf(t,e){var da,Cs;q(e,!0),Q(t,j2);let[i,o]=Ue(),n=()=>C(ai,"$disabledControls$",i),a=()=>C(Ft,"$adPlaybackState",i),s=()=>C(Zt,"$playbackState$",i),d=()=>C(ri,"$currentSubtitle$",i),l=()=>C(ei,"$isEnded$",i),u=()=>C(Hn,"$currentGridType$",i),f=()=>C(Mi,"$isLive$",i),_=()=>C(Hi,"$chromecastState$",i),p=()=>C(Io,"$isPictureInPictureActive",i),$=()=>C(ko,"$pictureInPictureType$",i),w=()=>C(Li,"$availableSubtitlesList$",i),y=()=>C(Ki,"$contextMenuOpenedByKeyboard$",i),S=()=>C(ro,"$showContextMenuBtn$",i),I=()=>C(jt,"$playerSize",i),A=()=>C(Oi,"$isRewindableLive$",i),P=()=>C(To,"$isActiveLive$",i),E=()=>C(Xo,"$graphIsOpened$",i),T=()=>C(no,"$contextMenuVisible$",i),V=()=>C(so,"$isFullscreen",i),z=()=>C(No,"$autoplayNextEnabled",i),Y=()=>C(r(Ho),"$prevButton",i),U=()=>C(r(lr),"$replayButton",i),Z=()=>C(r(Ir),"$playButton",i),X=()=>C(r(it),"$nextButton",i),oe=()=>C(r(ft),"$playPrevChapterButton",i),ce=()=>C(r(wi),"$seekToInteractiveButton",i),le=()=>C(r(Yi),"$interactiveGraphButton",i),Ve=()=>C(r(ji),"$liveButton",i),Me=()=>C(r(yo),"$time",i),J=()=>C(r(Po),"$episodes",i),Le=()=>C(r(Mo),"$vkLogo",i),j=()=>C(r(xo),"$volume",i),N=()=>C(r(je),"$subtitles",i),Ne=()=>C(r(St),"$settings",i),ne=()=>C(r(Ii),"$context",i),ke=()=>C(r(Vi),"$fullscreen",i),Re=()=>C(r(Ri),"$chromecast",i),ue=()=>C(bo,"$additionalDesktopControlPanelRightButtons$",i),D=()=>C(fn,"$isInteractiveTime$",i),de=()=>C(Et,"$settingsMenuVisible",i),Ee=()=>C(dr,"$settingButtonRef$",i),We=()=>C(Bo,"$startedByKeyboard$",i),lt=()=>C(qe,"$isAudioAvailable$",i),Ae=()=>C(re,"$fakeIsPlaying$",i),$e=()=>C(Fn,"$seekToInteractiveDisabledTooltip$",i),Pe=()=>C(yt,"$adPosition",i),nt=()=>C(Ct,"$position$",i),vt=()=>C(li,"$adDuration",i),et=()=>C(Xe,"$duration$",i),Vt=v(e,"playerControlsWrapperRef",15,void 0),rt=v(e,"playerControlsRef",15,void 0),gt=v(e,"isAds",3,!1),Ot=v(e,"logoTargetUrl",3,""),Ut=v(e,"isOneVideoPlaylist",3,!1),Be=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:re}=oo(),W=Te(),se=oo(),ge=zt(),Se=W.actions.internal.toggleMuted,De=W.actions.internal.togglePlay,pt=W.actions.internal.pause,Ht=W.actions.internal.toggleSubtitle,Qe=(da=W.callbacks)==null?void 0:da.onAudioDoesNotExistHint,dt=(Cs=W.callbacks)==null?void 0:Cs.onAudioDisabledHint,Xe=W.state.duration$,Ct=W.state.positionWithScrubbing$,Zt=W.state.playbackState$,qe=W.state.isAudioAvailable$,ct=W.state.isAudioDisabled,ei=W.state.isEnded$,Mi=W.state.isLive$,To=W.state.isActiveLive$,Oi=W.state.isRewindableLive$,{isActive$:Io,type$:ko}=se.pictureInPicture$,Et=W.ui.settingsMenu.visible$,ht=W.ui.settingsMenu.openedByBtnKeyboard$,F=W.ui.controls,qt=W.actions.internal.getVideoEpisodes(),Hi=W.state.chromecastState$,Li=W.state.availableSubtitlesList$,ri=W.state.currentSubtitle$,ai=F.disabledControls$,no=W.ui.contextMenu.visible$,ro=W.ui.contextMenu.showContextMenuBtn$,Ki=W.ui.contextMenu.openedByBtnKeyboard$,Bo=W.ui.startedByKeyboard$,Rt=W.ui.t,li=W.ads.duration,yt=W.ads.position,Ft=W.ads.playbackState,so=W.ui.isFullscreen,jt=W.ui.playerSize,Hn=W.ui.currentGridType$,bo=W.ui.additionalDesktopControlPanelRightButtons$,No=W.ui.autoplayNextEnabled$,ni=W.actions.internal.getVideoElement,bt=W.actions.internal.replayInteractive,di=W.actions.internal.prevVideoClick,ao=W.actions.internal.nextVideoClick,mi=W.state.isInteractive,fn=W.state.isInteractiveTime$,yi=W.state.showInteractiveGraph,$o=W.state.showSeekToInteractive,Do=W.state.showPlayPrevChapter,mn=W.state.showInteractiveTimeIndicator,xi=W.state.playPrevChapterDisabledTooltip,Fn=se.seekToInteractiveDisabledTooltip$,Xo=se.graphIsOpened$,Eo=ge.features.interactiveResponsiveUi,Jo=m(()=>n().has("EPISODE_BUTTON")),Sr=m(()=>n().has("GRAPH_BUTTON")),nr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Un=m(()=>n().has("PLAY_BUTTON")),vn=m(()=>n().has("REPLAY_BUTTON")),en=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),gn=()=>W.actions.internal.toggleChromecast(),lo=m(()=>gt()?a()==="playing":s()===Tf.PLAYING),Je=m(()=>d().value!=="off"),tn=m(()=>l()&&!gt()||mi),zn=m(()=>Eo?r(tn)&&Di(u(),"m"):r(tn)),qn=m(()=>!l()||mi||gt()),hn=m(()=>Di(u(),"m")),on=m(()=>e.showNextPrevButtons&&Di(u(),"m")&&!gt()&&e.nextButtonActive),nn=m(()=>e.showNextPrevButtons&&Di(u(),"m")&&!gt()&&e.prevButtonActive),Oo=m(()=>!gt()&&!!f()),Fi=m(()=>_()!==Uh.NOT_AVAILABLE&&!(p()&&$()===1)&&Di(u(),"m")&&!mi),Ui=m(()=>e.showAutoplayNext&&!Ut()&&Di(u(),"s")),Kn=m(()=>w().length>0&&Di(u(),"m")),_n=m(()=>y()||S()),Wn=m(()=>Di(u(),"s")&&!gt()),rr=m(()=>!e.logoHidden&&!gt()),Wi=m(()=>ge.features.fullscreen&&(e.logoHidden||Di(u(),Eo?"xs":"s"))&&!(p()&&$()===1)&&(mi?Be():!0)),Qi=m(()=>(!f()||gt())&&!(ge.features.interactiveHideTime&&mi)),bn=m(()=>I().width>100),$n=m(()=>yi&&Di(u(),"m")),co=m(()=>Eo?$o&&Di(u(),"s"):$o),Gi=m(()=>Eo?Do&&Di(u(),"s"):Do),yn=m(()=>!gt()&&!f()&&!!(qt!=null&&qt.length)&&r(hn)&&!r(Jo)),Ao=m(()=>!A()||!!P()),Cr=m(()=>E()?Rt("tooltip_interactive_graph_on"):Rt("tooltip_interactive_graph_off")),xn=m(()=>T()?Rt("aria_label_context_menu_close"):Rt("aria_label_context_menu_open")),sr=(st,Ze)=>st?Ze&&Ze===Tf.PAUSED?Rt("tooltip_play"):"":Rt("tooltip_live"),wn=m(()=>sr(r(Ao),s())),Sn=m(()=>ge.logoType==="vk_video"?Rt("tooltip_vk_video_logo"):Rt("tooltip_vk_logo")),Tr=m(()=>r(Je)?Rt("tooltip_subtitles_on"):Rt("tooltip_subtitles_off")),Qn=m(()=>V()?Rt("tooltip_fullscreen_on"):Rt("tooltip_fullscreen_off")),ar=m(()=>_()===Uh.CONNECTED?Rt("tooltip_chromecast_on"):Rt("tooltip_chromecast_off")),Gn=m(()=>z()?Rt("tooltip_autoplay_on"):Rt("tooltip_autoplay_off")),Cn=ee(0),ti=pe({}),Ho=m(()=>F.prevButton),lr=m(()=>F.replayButton),Ir=m(()=>F.playButton),it=m(()=>F.nextButton),ft=m(()=>F.playPrevChapterButton),wi=m(()=>F.seekToInteractiveButton),Yi=m(()=>F.interactiveGraphButton),ji=m(()=>F.liveButton),yo=m(()=>F.time),Po=m(()=>F.episodes),Mo=m(()=>F.vkLogo),xo=m(()=>F.volume),je=m(()=>F.subtitles),St=m(()=>F.settings),Ii=m(()=>F.context),Vi=m(()=>F.fullscreen),Ri=m(()=>F.chromecast),vi=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:U()?U().right-U().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:oe()?oe().right-oe().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Ve()?Ve().right-Ve().left:0,time:Me()?Me().right-Me().left:0,episodes:J()?J().right-J().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:j()?j().right-j().left:0,subtitles:N()?N().right-N().left:0,settings:Ne()?Ne().right-Ne().left:0,context:ne()?ne().right-ne().left:0,fullscreen:ke()?ke().right-ke().left:0,chromecast:Re()?Re().right-Re().left:0,additionalButtons:ue().length?ue().reduce(st=>[...st,40],[]):[]})),zi=ee(0);Ye(()=>{(!r(zi)||r(zi)<r(vi).time)&&_t(()=>O(zi,pe(r(vi).time)))});let Zi=ee(!1);Ye(()=>{let st=0;r(yn)&&(Di(u(),"xl")?st=r(vi).time:st=60);let Ze=r(vi).prevButton+r(vi).playButton+r(vi).nextButton+r(vi).seekToInteractiveButton+r(vi).interactiveGraphButton+r(vi).liveButton+r(zi)+st;O(Zi,pe(r(Qi)&&r(Cn)>=Ze))});let Tn=m(()=>r(Zi)&&Di(u(),"m")),In=G2(Uc,260);Ye(()=>{I(),D(),In(ni(),F,ti,e.showControls)});let dr=ae();Ye(()=>{de(),Ee()&&_t(()=>Ba(Ee(),de(),ht))});let Fo;Ye(()=>{We(),_t(()=>zc(Bo,We(),Fo))});function kn(){ys({isAudioDisabled:ct,audioDisabledHintCallback:dt,isAudioAvailable:lt(),audioIsNotExistHintCallback:Qe})&&Se()}let cr=mi?bt:De,ur=m(()=>Ae()!==null),kr=m(()=>r(ur)?Ae():r(lo)),pr=m(()=>r(kr)?Rt("tooltip_pause"):Rt("tooltip_play")),rn=Rt("tooltip_episodes"),sn=m(()=>r(nn)?{id:"prevButton",type:"desktop-control-panel-left",weight:os.prevButton,buttonComponent:oa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:di.bind(null,!0)},tooltipEnabled:!1,mouseEnter:()=>{var st,Ze,gi;(gi=(Ze=(st=W.callbacks)==null?void 0:st.uiInfo)==null?void 0:Ze.onPrevButtonMouseEnter)==null||gi.call(Ze,ia(ni(),ti,"prevButton",e.showControls))},mouseLeave:()=>{var st,Ze,gi;(gi=(Ze=(st=W.callbacks)==null?void 0:st.uiInfo)==null?void 0:Ze.onPrevButtonMouseLeave)==null||gi.call(Ze,ia(ni(),ti,"prevButton",e.showControls))},tooltipText:Rt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),Yn=m(()=>r(zn)?{id:"replayButton",type:"desktop-control-panel-left",weight:os.replayButton,buttonComponent:qa,buttonComponentProps:{disabled:r(vn),click:cr},tooltipText:Rt("tooltip_restart"),disabled:r(vn)}:void 0),Er=m(()=>r(qn)?{id:"playButton",type:"desktop-control-panel-left",weight:os.playButton,buttonComponent:Ka,buttonComponentProps:{disabled:r(Un),isPlaying:r(lo),click:De},tooltipText:r(pr),disabled:r(Un)}:void 0),uo=m(()=>r(on)?{id:"nextButton",type:"desktop-control-panel-left",weight:os.nextButton,buttonComponent:oa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:ao.bind(null,!0)},tooltipEnabled:!1,mouseEnter:()=>{var st,Ze,gi;(gi=(Ze=(st=W.callbacks)==null?void 0:st.uiInfo)==null?void 0:Ze.onNextButtonMouseEnter)==null||gi.call(Ze,ia(ni(),ti,"nextButton",e.showControls))},mouseLeave:()=>{var st,Ze,gi;(gi=(Ze=(st=W.callbacks)==null?void 0:st.uiInfo)==null?void 0:Ze.onNextButtonMouseLeave)==null||gi.call(Ze,ia(ni(),ti,"nextButton",e.showControls))},tooltipText:Rt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),En=m(()=>mi&&r(Gi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:os.playPrevChapterButton,buttonComponent:rd,buttonComponentProps:{disabled:r(en),click:e.playPrevChapter},tooltipText:Rt("tooltip_interactive_go_back"),disabledTooltipContent:Rt(xi),disabled:r(en)}:void 0),fr=m(()=>mi&&r(co)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:os.seekToInteractiveButton,buttonComponent:ad,buttonComponentProps:{disabled:r(nr),click:e.seekToInteractive},tooltipText:Rt("tooltip_interactive_seek"),disabled:r(nr),disabledTooltipContent:Rt($e())}:void 0),tt=m(()=>mi&&r($n)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:os.interactiveGraphButton,buttonComponent:ld,buttonComponentProps:{disabled:r(Sr),click:Xo.toggle,graphIsOpened:E()},tooltipText:r(Cr)}:void 0),Nt=m(()=>r(Oo)?{id:"liveButton",type:"desktop-control-panel-left",weight:os.liveButton,buttonComponent:dd,buttonComponentProps:{isLiveActive:r(Ao),ariaLabel:r(wn)},tooltipText:r(wn),disabled:r(Ao)&&s()===Tf.PLAYING}:void 0),ye=m(()=>[r(sn),r(Yn),r(Er),r(uo),r(En),r(fr),r(tt),r(Nt)].filter(st=>!!st).sort(Ys)),At=m(()=>r(rr)?{id:"vkLogo",type:"desktop-control-panel-right",weight:rs.vkLogo,buttonComponent:Yl,buttonComponentProps:{targetUrl:Ot(),logoClickable:e.logoClickable,click:pt},tooltipText:r(Sn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Xt=m(()=>r(Ui)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:rs.autoplayNext,buttonComponent:sd,tooltipText:r(Gn)}:void 0),ii=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:rs.volume,buttonComponent:Xp,buttonComponentProps:{click:kn}})),po=m(()=>r(Kn)?{id:"subtitles",type:"desktop-control-panel-right",weight:rs.subtitles,buttonComponent:Qp,buttonComponentProps:{isSubtitlesEnabled:r(Je),click:Ht},tooltipText:r(Tr)}:void 0),ki=m(()=>r(Wn)?{id:"settings",type:"desktop-control-panel-right",weight:rs.settings,buttonComponent:Fa,buttonComponentProps:{ref$:dr},tooltipText:de()?void 0:Rt("tooltip_settings_off")}:void 0),oi=m(()=>ge.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:rs.context,buttonComponent:_f,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(xn)},className:r(_n)?"":"out-of-view",tooltipText:r(xn)}:void 0),si=m(()=>r(Wi)?{id:"fullscreen",type:"desktop-control-panel-right",weight:rs.fullscreen,buttonComponent:Gl,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Qn)}:void 0),hi=m(()=>r(Fi)?{id:"chromecast",type:"desktop-control-panel-right",weight:rs.chromecast,buttonComponent:jl,buttonComponentProps:{state:_(),click:gn},tooltipText:r(ar)}:void 0),qi=m(()=>[r(At),r(Xt),r(ii),r(po),r(ki),r(oi),r(si),r(hi),...ue()].filter(st=>!!st).sort(Ys));var Ei=Y2(),Si=ve(Ei);let Ur;var He=h(Si);let Qt=m(()=>!r(bn));Xl(He,{get isHidden(){return r(Qt)},get isAds(){return gt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return ti.timeline},set ref(st){ti.timeline=st}});var _i=M(He,2),wo=h(_i),an=h(wo);bi(an,17,()=>r(ye),st=>st.id,(st,Ze)=>{qc(st,{get buttonComponent(){return r(Ze).buttonComponent},get buttonComponentProps(){return r(Ze).buttonComponentProps},get tooltipText(){return r(Ze).tooltipText},get disabledTooltipContent(){return r(Ze).disabledTooltipContent},get disabled(){return r(Ze).disabled},get className(){return r(Ze).className},get tooltipEnabled(){return r(Ze).tooltipEnabled},get mouseEnter(){return r(Ze).mouseEnter},get mouseLeave(){return r(Ze).mouseLeave},get ref(){return ti[r(Ze).id]},set ref(gi){ti[r(Ze).id]=gi}})});var zr=M(an,2);{var An=st=>{let Ze=m(()=>gt()?Pe():nt()),gi=m(()=>gt()?vt():et());Wl(st,{isMobile:!1,get showDuration(){return r(Tn)},get position(){return r(Ze)},get duration(){return r(gi)},get ref(){return ti.time},set ref(Pr){ti.time=Pr}})};R(zr,st=>{r(Qi)&&st(An)})}var Ar=M(zr,2);let ja=m(()=>!r(yn));Co(Ar,{className:"w-max",get disabled(){return r(ja)},tooltipContent:rn,get ref(){return ti.episodes},set ref(st){ti.episodes=st},children:(st,Ze)=>{var gi=ze(),Pr=ve(gi);{var Ts=Mr=>{Jl(Mr,{get position(){return nt()},get duration(){return et()},timeCodes:qt})};R(Pr,Mr=>{r(yn)&&Mr(Ts)})}b(st,gi)},$$slots:{default:!0}}),g(wo);var Pn=M(wo,2);bi(Pn,21,()=>r(qi),st=>st.id,(st,Ze)=>{var gi=ze(),Pr=ve(gi);{var Ts=Lr=>{qc(Lr,{get buttonComponent(){return r(Ze).buttonComponent},get buttonComponentProps(){return r(Ze).buttonComponentProps},get tooltipText(){return r(Ze).tooltipText},get disabledTooltipContent(){return r(Ze).disabledTooltipContent},get disabled(){return r(Ze).disabled},get className(){return r(Ze).className},get ref(){return ti[r(Ze).id]},set ref(ss){ti[r(Ze).id]=ss}})},Mr=Lr=>{let ss=m(()=>!!r(Ze).disabled);Cf(Lr,{get id(){return r(Ze).id},get testId(){return r(Ze).testId},get icon(){return r(Ze).icon},get ariaLabel(){return r(Ze).ariaLabel},get tooltipText(){return r(Ze).tooltipText},get disabledTooltipContent(){return r(Ze).disabledTooltipContent},get disabled(){return r(ss)},get onClick(){return r(Ze).onClick},get ref(){return ti[r(Ze).id]},set ref(Xa){ti[r(Ze).id]=Xa}})};R(Pr,Lr=>{Fh(r(Ze))?Lr(Ts):Lr(Mr,!1)})}b(st,gi)}),g(Pn),g(_i),ut(_i,st=>rt(st),()=>rt()),g(Si),ut(Si,st=>Vt(st),()=>Vt());var Za=M(Si,2);{var la=st=>{od(st,{get ref(){return ti.interactiveTimeIndicator},set ref(Ze){ti.interactiveTimeIndicator=Ze}})};R(Za,st=>{mn&&st(la)})}k(st=>Ur=te(Si,1,"wrapper-bottom svelte-1iedtj3",null,Ur,st),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Nr(wo,"clientWidth",st=>O(Cn,st)),b(t,Ei),K(),o()}import{ChromecastState as qh,PlaybackState as Kh}from"@vkontakte/videoplayer-core/es2018";import{noop as zh}from"@vkontakte/videoplayer-shared/es2018";var Z2=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),X2=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),J2={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 Ef(t,e){Q(t,J2);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,zh),n=m(()=>o()===zh),a=m(()=>r(n)||i()),s=ee(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");kt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(u,f)=>{var _=ze(),p=ve(_);{var $=y=>{var S=Z2();b(y,S)},w=y=>{var S=X2();k(()=>Oe(S,"src",e.iconUrl)),It("error",S,d),Os(S),b(y,S)};R(p,y=>{r(s)?y($):y(w,!1)})}b(u,_)},$$slots:{default:!0}})}var ey=be('<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 Af(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}import{noop as ty}from"@vkontakte/videoplayer-shared/es2018";var iy=L('<span class="text svelte-6gmlbk"> </span>'),oy=L('<div aria-hidden="true"><!> <!></div>'),ny={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 Kc(t,e){q(e,!0),Q(t,ny);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,ty),a=v(e,"ref",15,void 0),d=Te().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=m(()=>o()?xs:Af),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");kt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,p)=>{var $=oy();let w=m(()=>r(u)),y;var S=h($);Pi(S,()=>r(w),(P,E)=>{E(P,{})});var I=M(S,2);{var A=P=>{var E=iy(),T=h(E,!0);g(E),k(V=>fe(T,V),[()=>d("mobile_unmute")]),b(P,E)};R(I,P=>{o()&&P(A)})}g($),k(P=>y=te($,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),K()}var ry=be('<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 Pf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=ry();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var sy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
255
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Mf(t,e){Q(t,sy);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");Pf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as ay}from"@vkontakte/videoplayer-shared/es2018";function Lf(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,ay),a=H("menu_pip");kt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Mf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),K()}import{debounceFn as ly}from"@vkontakte/videoplayer-shared/es2018";var dy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},cy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},uy=L("<div><!></div>"),py=L("<div><!></div>"),fy=L("<div><!></div>"),my=L("<!> <!> <!>",1),vy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),gy=L("<div><!></div>"),hy=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),_y=L("<!> <!> <div><!></div>",1),by=L('<div aria-hidden="true">\xB7</div> <!>',1),$y=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),yy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
251
256
  .wrapper-middle-left-second.svelte-1afsgkw,
252
257
  .wrapper-middle-right.svelte-1afsgkw {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
253
258
 
@@ -255,7 +260,7 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
255
260
  }
256
261
 
257
262
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
258
- }`};function Xu(t,e){var Jn,Ao;if(new.target)return k({component:Xu,...t});E(e,!0),ne(t,u2);let[i,o]=Xe(),n=()=>I(Bn,"$seekToInteractiveDisabledTooltip$",i),r=()=>I(ur,"$disabledControls$",i),l=()=>I(gt,"$playbackState$",i),d=()=>I(lo,"$adPlaybackState",i),a=()=>I(zt,"$isEnded$",i),c=()=>I(Io,"$playerSize",i),f=()=>I(dt,"$scrubbingInProgress",i),g=()=>I(So,"$chromecastState$",i),m=()=>I(D,"$isPictureInPictureActive",i),h=()=>I(Yt,"$pictureInPictureType$",i),_=()=>I($t,"$mobileNotReportControlHidden$",i),y=()=>I(jt,"$playerPhase",i),S=()=>I(No,"$currentGridType$",i),L=()=>I(oi,"$isLive$",i),B=()=>I(di,"$settingsMenuVisible",i),V=()=>I(mt,"$isRewindableLive$",i),N=()=>I(vi,"$isActiveLive$",i),T=()=>I(ko,"$isInteractiveTime$",i),U=()=>I(kt,"$isAudioAvailable$",i),K=()=>I(hr,"$settingButtonRef$",i),H=()=>I(gi,"$settingsMenuOpenedByKeyboard",i),G=()=>I(Rn,"$startedByKeyboard$",i),J=()=>I(To,"$isFullscreen",i),de=()=>I(Ti,"$mobileUnmuteButtonVisible",i),te=()=>I(ri,"$muted$",i),xe=()=>I(li,"$mobileUnmuteButtonExpanded",i),Ce=()=>I(Yi,"$additionalButtons$",i),Q=()=>I(un,"$crashed$",i),pe=()=>I(Zo,"$graphIsOpened$",i),he=()=>I(Mt,"$adPosition",i),j=()=>I(tt,"$adDuration",i),ae=()=>I(ct,"$position$",i),q=()=>I(We,"$duration$",i),Ge=p(e,"bottomHidden",7),Re=p(e,"bottomNoSmooth",7),X=p(e,"showControls",7),ce=p(e,"playerControlsWrapperRef",15,void 0),Be=p(e,"playerControlsRef",15,void 0),Z=p(e,"isAds",7,!1),De=p(e,"canRewindLive",7),le=p(e,"logoClickable",7),Ke=p(e,"logoHidden",7),lt=p(e,"logoTargetUrl",7,""),at=p(e,"showNextPrevButtons",7),we=p(e,"nextButtonActive",7),$e=p(e,"prevButtonActive",7),Je=p(e,"isOneVideoPlaylist",7,!1),vt=p(e,"customFullscreenSupported",7,!0),ve=p(e,"endScreenShown",7),je=p(e,"showAutoplayNext",7),Ct=p(e,"toggleFullscreen",7),ie=p(e,"seekToInteractive",7),et=p(e,"playPrevChapter",7),ht=p(e,"onDisabledPlayPrevChapterClick",7),ft=p(e,"onDisabledSeekToInteractiveClick",7),be=He(),Pe=Co(),ye=Xt(),Ye=be.actions.internal.toggleMuted,pt=be.actions.internal.togglePlay,Ve=be.actions.internal.pause,_t=be.actions.internal.prevVideoClick,me=be.actions.internal.nextVideoClick,Bt=(Jn=be.callbacks)==null?void 0:Jn.onAudioDoesNotExistHint,Ut=(Ao=be.callbacks)==null?void 0:Ao.onAudioDisabledHint,jt=be.playerPhase,We=be.state.duration$,ct=be.state.positionWithScrubbing$,gt=be.state.playbackState$,kt=be.state.isAudioAvailable$,qe=be.state.isAudioDisabled,zt=be.state.isEnded$,oi=be.state.isLive$,ri=be.state.muted$,vi=be.state.isActiveLive$,mt=be.state.isRewindableLive$,dt=be.ui.scrubbingInProgress,$t=be.ui.mobileNotReportControlHidden$,{isActive$:D,type$:Yt}=Pe.pictureInPicture$,li=be.ui.mobileUnmuteButtonExpanded,Ti=be.ui.mobileUnmuteButtonVisible,di=be.ui.settingsMenu.visible$,gi=be.ui.settingsMenu.openedByBtnKeyboard$,xi=be.ui.controls,ao=be.actions.internal.getVideoEpisodes(),si=be.webApi.pictureInPictureApi,So=be.state.chromecastState$,un=be.state.crashed$,ur=xi.disabledControls$,Rn=be.ui.startedByKeyboard$,No=be.ui.currentGridType$,tt=be.ads.duration,Mt=be.ads.position,lo=be.ads.playbackState,To=be.ui.isFullscreen,Io=be.ui.playerSize,Yi=be.ui.additionalButtonsDeprecated$,Rt=be.actions.internal.getVideoElement,Ii=be.actions.internal.replayInteractive,Ui=be.state.isInteractive,ko=be.state.isInteractiveTime$,Qt=be.state.showInteractiveGraph,Mi=be.state.showSeekToInteractive,ni=be.state.showPlayPrevChapter,Nn=be.state.showInteractiveTimeIndicator,Bn=Pe.seekToInteractiveDisabledTooltip$,Zo=Pe.graphIsOpened$,co=$(()=>ee(be.state.playPrevChapterDisabledTooltip)),ci=$(()=>ee(n())),Dn=$(()=>r().has("EPISODE_BUTTON")),On=$(()=>r().has("GRAPH_BUTTON")),Eo=$(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Or=$(()=>r().has("PLAY_BUTTON")),Po=$(()=>r().has("REPLAY_BUTTON")),eo=$(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Hn=$(()=>l()===Gh.PLAYING),pr=$(()=>d()==="paused"),Bo=$(()=>a()&&!Z()&&!Ui),Xo=$(()=>!a()||Z()),fr=$(()=>at()&&!Z()&&$e()),rs=$(()=>at()&&!Z()&&we()),Fn=$(()=>c().width>300),Un=$(()=>c().width>400),uo=$(f),zn=$(()=>g()!==Qh.NOT_AVAILABLE&&!(m()&&h()===1)&&!_()&&!Ui),Wn=$(()=>y()==="LiveWaitingStart"),Li=$(()=>!!si&&g()!==Qh.CONNECTED&&!_()&&(h()===1&&s(Wn)||!s(Wn))&&!s(uo)&&!Ui),to=$(()=>!s(uo)&&Gi(S(),"s")),pn=$(()=>!Ke()&&c().width>350),fn=$(()=>ye.features.fullscreen&&!(m()&&h()===1)&&(Ui?vt():!0)&&!s(uo)),mr=$(()=>(!L()||Z())&&c().width>260&&!s(uo)&&!(ye.features.interactiveHideTime&&Ui)),mn=$(()=>B()||X()),Jo=$(()=>!Z()&&!L()&&!!(ao!=null&&ao.length)&&s(Fn)&&!s(Dn)&&!s(uo)),Vi=$(()=>!V()||!!N()),vn=$(()=>Qt&&Gi(S(),"m")),yt=ue(Ae({})),qn=Xy(Ru,260);rt(()=>{c(),T(),qn(Rt(),xi,s(yt),X())});let vr=()=>be.actions.internal.toggleChromecast();function Kn(){Fs({isAudioDisabled:qe,audioDisabledHintCallback:Ut,isAudioAvailable:U(),audioIsNotExistHintCallback:Bt})&&Ye()}async function en(){si!=null&&si.isActive()?await(si==null?void 0:si.remove()):await(si==null?void 0:si.request())}function gr(){!qe&&U()&&Ti.set(!1),Kn()}let Do=ue(""),Hr=(Te,Dt)=>{if(!Te){Y(Do,Ae(ee("tooltip_live")));return}Dt&&Dt===Gh.PAUSED&&Y(Do,Ae(ee("tooltip_play")))};rt(()=>{Hr(s(Vi),l())});let Qn,hr=Se();rt(()=>{K()&&sl(K(),B(),gi)}),rt(()=>{ts(Qn,B(),H())}),rt(()=>{Nu(Rn,G(),s(yt).playButton)});var gn=c2(),Gn=Ie(gn);{var Yn=Te=>{var Dt=r2(),ki=Ie(Dt),_i=O(ki,2),tn=x(_i);{var $o=ut=>{let Jt=$(()=>U()&&!qe&&xe());Td(ut,{get muted(){return te()},get expanded(){return s(Jt)},click:gr,get ref(){return s(yt).volume},set ref(bi){s(yt).volume=bi}})};W(tn,ut=>{(!U()||de())&&ut($o)})}b(_i);var Ri=O(_i,2),ge=x(Ri);Ci(ge,1,Ce,Ji,(ut,Jt)=>{let bi=()=>s(Jt).iconUrl,Tr=()=>s(Jt).ariaLabel,wn=()=>s(Jt).testId,Ir=()=>s(Jt).onClick,oe=()=>s(Jt).tooltip,Ht=$(()=>{var Gt;return(Gt=Tr())!=null?Gt:oe()});Qu(ut,{get iconUrl(){return bi()},get ariaLabel(){return s(Ht)},get testId(){return wn()},get onClick(){return Ir()}})});var Pt=O(ge,2);{var $i=ut=>{El(ut,{get ref(){return s(yt).autoplayNextToggle},set ref(Jt){s(yt).autoplayNextToggle=Jt}})};W(Pt,ut=>{je()&&!Je()&&ut($i)})}var Ei=O(Pt,2);{var ai=ut=>{bl(ut,{isMobile:!0,click:vr,get state(){return g()},get ref(){return s(yt).chromecast},set ref(Jt){s(yt).chromecast=Jt}})};W(Ei,ut=>{s(zn)&&ut(ai)})}var ji=O(Ei,2);{var bo=ut=>{Zu(ut,{click:en,get isPictureInPictureActive(){return m()},get ref(){return s(yt).pip},set ref(Jt){s(yt).pip=Jt}})};W(ji,ut=>{s(Li)&&ut(bo)})}var Ni=O(ji,2);{var on=ut=>{ya(ut,{ref$:hr})};W(Ni,ut=>{Q()&&ut(on)})}var nn=O(Ni,2);{var yn=ut=>{$l(ut,{click:Ve,get targetUrl(){return lt()},get logoClickable(){return le()},get ref(){return s(yt).vkLogo},set ref(Jt){s(yt).vkLogo=Jt}})};W(nn,ut=>{s(pn)&&ut(yn)})}b(Ri);var xn=O(Ri,2),yr=x(xn);{var xr=ut=>{let Jt=$(()=>_t.bind(null,!0));Ks(ut,{get click(){return s(Jt)},type:"prev",isMobile:!0,get ref(){return s(yt).prevButton},set ref(bi){s(yt).prevButton=bi}})};W(yr,ut=>{s(fr)&&ut(xr)})}var wr=O(yr,2);{var ss=ut=>{Ca(ut,{get disabled(){return s(Or)},click:pt,isMobile:!0,get isPlaying(){return s(Hn)},get ref(){return s(yt).playButton},set ref(Jt){s(yt).playButton=Jt}})};W(wr,ut=>{s(Xo)&&ut(ss)})}var rn=O(wr,2);{var Cr=ut=>{wa(ut,{get disabled(){return s(Po)},click:pt,isMobile:!0,get ref(){return s(yt).replayButton},set ref(Jt){s(yt).replayButton=Jt}})};W(rn,ut=>{s(Bo)&&ut(Cr)})}var yo=O(rn,2);{var er=ut=>{let Jt=$(()=>me.bind(null,!0));Ks(ut,{get click(){return s(Jt)},type:"next",isMobile:!0,get ref(){return s(yt).nextButton},set ref(bi){s(yt).nextButton=bi}})};W(yo,ut=>{s(rs)&&ut(er)})}b(xn);var Sr=O(xn,2);{var Uo=ut=>{var Jt=n2(),bi=Ie(Jt);{var Tr=Gt=>{var Et=t2();Et.__click=[Jy,eo,ht,co];var Bi=x(Et);let ui=$(()=>!X());kl(Bi,{get hidden(){return s(ui)},get disabled(){return s(eo)},get click(){return et()},get ref(){return s(yt).playPrevChapterButton},set ref(qi){s(yt).playPrevChapterButton=qi}}),b(Et),R(()=>{re(Et,"fullscreen",J()),re(Et,"hidden",!X())}),w(Gt,Et)};W(bi,Gt=>{ni&&Gt(Tr)})}var wn=O(bi,2);{var Ir=Gt=>{var Et=i2();jo(Et,cd(ni?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw");var Bi=x(Et);let ui=$(()=>!X()&&!pe());Al(Bi,{get hidden(){return s(ui)},get disabled(){return s(On)},get click(){return Zo.toggle},get graphIsOpened(){return pe()},get ref(){return s(yt).interactiveGraphButton},set ref(qi){s(yt).interactiveGraphButton=qi}}),b(Et),R(()=>{re(Et,"fullscreen",J()),re(Et,"hidden",!X()&&!pe())}),w(Gt,Et)};W(wn,Gt=>{s(vn)&&Gt(Ir)})}var oe=O(wn,2);{var Ht=Gt=>{var Et=o2();Et.__click=[e2,Eo,ft,ci];var Bi=x(Et);let ui=$(()=>!X());Pl(Bi,{get hidden(){return s(ui)},get disabled(){return s(Eo)},get click(){return ie()},get ref(){return s(yt).seekToInteractiveButton},set ref(qi){s(yt).seekToInteractiveButton=qi}}),b(Et),R(()=>{re(Et,"fullscreen",J()),re(Et,"hidden",!X())}),w(Gt,Et)};W(oe,Gt=>{Mi&&Gt(Ht)})}w(ut,Jt)};W(Sr,ut=>{Ui&&!f()&&ut(Uo)})}R(()=>{re(ki,"hidden",!s(mn)),re(_i,"hidden",!X()),re(_i,"fullscreen",J()),re(Ri,"hidden",!X()&&!_()),re(Ri,"fullscreen",J()),re(xn,"hidden",!X()||f()||ve()&&at())}),w(Te,Dt)};W(Gn,Te=>{Z()||Te(Yn)})}var _o=O(Gn,2);{var Oo=Te=>{var Dt=l2(),ki=Ie(Dt);{var _i=Pt=>{var $i=s2(),Ei=x($i);Td(Ei,{get muted(){return te()},expanded:!1,click:gr,get ref(){return s(yt).volume},set ref(ai){s(yt).volume=ai}}),b($i),R(()=>re($i,"fullscreen",J())),w(Pt,$i)};W(ki,Pt=>{de()&&Pt(_i)})}var tn=O(ki,2);{var $o=Pt=>{var $i=a2(),Ei=x($i);let ai=$(()=>!s(pr));Ca(Ei,{get disabled(){return s(Or)},click:pt,isMobile:!0,get isPlaying(){return s(ai)},get ref(){return s(yt).playButton},set ref(ji){s(yt).playButton=ji}}),b($i),w(Pt,$i)};W(tn,Pt=>{s(pr)&&Pt($o)})}var Ri=O(tn,2),ge=x(Ri);yl(ge,{get position(){return he()},get duration(){return j()}}),b(Ri),R(()=>re(Ri,"fullscreen",J())),w(Te,Dt)};W(_o,Te=>{Z()&&d()!=="inactive"&&Te(Oo)})}var io=O(_o,2);re(io,"mobile",!0);var Ho=x(io),zi=x(Ho);re(zi,"mobile",!0);var Wi=x(zi);{var _r=Te=>{ho(Te,{get disabled(){return s(Po)},get ref(){return s(yt).replayButton},set ref(Dt){s(yt).replayButton=Dt},children:(Dt,ki)=>{wa(Dt,{get disabled(){return s(Po)},click:Ii})},$$slots:{default:!0}})};W(Wi,Te=>{Ui&&Te(_r)})}var hn=O(Wi,2);{var Fr=Te=>{ho(Te,{get ref(){return s(yt).liveButton},set ref(Dt){s(yt).liveButton=Dt},children:(Dt,ki)=>{Ml(Dt,{get isLiveActive(){return s(Vi)},isMobile:!0,get ariaLabel(){return s(Do)}})},$$slots:{default:!0}})};W(hn,Te=>{!Z()&&L()&&Te(Fr)})}var _n=O(hn,2);{var $r=Te=>{let Dt=$(()=>Z()?he():ae()),ki=$(()=>Z()?j():q());gl(Te,{get showDuration(){return s(Un)},get position(){return s(Dt)},get duration(){return s(ki)},isMobile:!0,get ref(){return s(yt).time},set ref(_i){s(yt).time=_i}})};W(_n,Te=>{s(mr)&&Te($r)})}var jn=O(_n,2);let $n=$(()=>!s(Jo));ho(jn,{className:"w-max",get disabled(){return s($n)},get ref(){return s(yt).episodes},set ref(Te){s(yt).episodes=Te},children:(Te,Dt)=>{var ki=Ze(),_i=Ie(ki);{var tn=$o=>{var Ri=d2(),ge=O(Ie(Ri),2);wl(ge,{get position(){return ae()},get duration(){return q()},timeCodes:ao}),w($o,Ri)};W(_i,$o=>{s(Jo)&&$o(tn)})}w(Te,ki)},$$slots:{default:!0}});var Ur=O(jn,2);{var Zn=Te=>{ho(Te,{get ref(){return s(yt).settings},set ref(Dt){s(yt).settings=Dt},children:(Dt,ki)=>{ya(Dt,{ref$:hr})},$$slots:{default:!0}})};W(Ur,Te=>{s(to)&&Te(Zn)})}var Xn=O(Ur,2);{var hi=Te=>{ho(Te,{get ref(){return s(yt).fullscreen},set ref(Dt){s(yt).fullscreen=Dt},children:(Dt,ki)=>{_l(Dt,{get click(){return Ct()},get isFullscreen(){return J()}})},$$slots:{default:!0}})};W(Xn,Te=>{s(fn)&&Te(hi)})}b(zi),xt(zi,Te=>Be(Te),()=>Be());var br=O(zi,2);xl(br,{get isAds(){return Z()},get canRewindLive(){return De()},get isRewindableLive(){return V()},get ref(){return s(yt).timeline},set ref(Te){s(yt).timeline=Te}}),b(Ho),b(io),xt(io,Te=>ce(Te),()=>ce());var bn=O(io,2);{var Fo=Te=>{Tl(Te,{get ref(){return s(yt).interactiveTimeIndicator},set ref(Dt){s(yt).interactiveTimeIndicator=Dt}})};W(bn,Te=>{Nn&&Te(Fo)})}R(()=>{re(io,"hidden",Ge()),re(io,"controls-hidden",!X()),re(io,"no-smooth",Re()),re(Ho,"fullscreen",J())}),w(t,gn);var zr=P({get bottomHidden(){return Ge()},set bottomHidden(Te){Ge(Te),u()},get bottomNoSmooth(){return Re()},set bottomNoSmooth(Te){Re(Te),u()},get showControls(){return X()},set showControls(Te){X(Te),u()},get playerControlsWrapperRef(){return ce()},set playerControlsWrapperRef(Te=void 0){ce(Te),u()},get playerControlsRef(){return Be()},set playerControlsRef(Te=void 0){Be(Te),u()},get isAds(){return Z()},set isAds(Te=!1){Z(Te),u()},get canRewindLive(){return De()},set canRewindLive(Te){De(Te),u()},get logoClickable(){return le()},set logoClickable(Te){le(Te),u()},get logoHidden(){return Ke()},set logoHidden(Te){Ke(Te),u()},get logoTargetUrl(){return lt()},set logoTargetUrl(Te=""){lt(Te),u()},get showNextPrevButtons(){return at()},set showNextPrevButtons(Te){at(Te),u()},get nextButtonActive(){return we()},set nextButtonActive(Te){we(Te),u()},get prevButtonActive(){return $e()},set prevButtonActive(Te){$e(Te),u()},get isOneVideoPlaylist(){return Je()},set isOneVideoPlaylist(Te=!1){Je(Te),u()},get customFullscreenSupported(){return vt()},set customFullscreenSupported(Te=!0){vt(Te),u()},get endScreenShown(){return ve()},set endScreenShown(Te){ve(Te),u()},get showAutoplayNext(){return je()},set showAutoplayNext(Te){je(Te),u()},get toggleFullscreen(){return Ct()},set toggleFullscreen(Te){Ct(Te),u()},get seekToInteractive(){return ie()},set seekToInteractive(Te){ie(Te),u()},get playPrevChapter(){return et()},set playPrevChapter(Te){et(Te),u()},get onDisabledPlayPrevChapterClick(){return ht()},set onDisabledPlayPrevChapterClick(Te){ht(Te),u()},get onDisabledSeekToInteractiveClick(){return ft()},set onDisabledSeekToInteractiveClick(Te){ft(Te),u()},$set:M,$on:(Te,Dt)=>A(e,Te,Dt)});return o(),zr}bt(["click"]);function Ll(t,e){if(new.target)return k({component:Ll,...t});E(e,!0);let[i,o]=Xe(),n=()=>I(te,"$isMobile",i),r=p(e,"bottomHidden",7),l=p(e,"bottomNoSmooth",7,!1),d=p(e,"showControls",7),a=p(e,"playerControlsWrapperRef",15,void 0),c=p(e,"playerControlsRef",15,void 0),f=p(e,"isAds",7,!1),g=p(e,"canRewindLive",7),m=p(e,"logoClickable",7),h=p(e,"logoHidden",7),_=p(e,"logoTargetUrl",7,""),y=p(e,"showNextPrevButtons",7),S=p(e,"showAutoplayNext",7,!1),L=p(e,"nextButtonActive",7),B=p(e,"prevButtonActive",7),V=p(e,"isOneVideoPlaylist",7,!1),N=p(e,"customFullscreenSupported",7,!0),T=p(e,"endScreenShown",7,!1),U=p(e,"toggleFullscreen",7),K=p(e,"seekToInteractive",7),H=p(e,"playPrevChapter",7),G=p(e,"onDisabledPlayPrevChapterClick",7,Ju),J=p(e,"onDisabledSeekToInteractiveClick",7,Ju),te=He().ui.isMobile,xe=ue(!1);Kt(()=>{let j=setTimeout(()=>Y(xe,!0),0);return()=>clearTimeout(j)});var Ce=Ze(),Q=Ie(Ce);{var pe=j=>{var ae=Ze(),q=Ie(ae);{var Ge=X=>{Xu(X,{get bottomHidden(){return r()},get bottomNoSmooth(){return l()},get showControls(){return d()},get isAds(){return f()},get canRewindLive(){return g()},get logoClickable(){return m()},get logoHidden(){return h()},get logoTargetUrl(){return _()},get showAutoplayNext(){return S()},get showNextPrevButtons(){return y()},get nextButtonActive(){return L()},get prevButtonActive(){return B()},get isOneVideoPlaylist(){return V()},get customFullscreenSupported(){return N()},get endScreenShown(){return T()},get toggleFullscreen(){return U()},get seekToInteractive(){return K()},get playPrevChapter(){return H()},get onDisabledPlayPrevChapterClick(){return G()},get onDisabledSeekToInteractiveClick(){return J()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(ce){a(ce)},get playerControlsRef(){return c()},set playerControlsRef(ce){c(ce)}})},Re=X=>{Ku(X,{get bottomHidden(){return r()},get bottomNoSmooth(){return l()},get showControls(){return d()},get isAds(){return f()},get canRewindLive(){return g()},get logoClickable(){return m()},get logoHidden(){return h()},get logoTargetUrl(){return _()},get isOneVideoPlaylist(){return V()},get showAutoplayNext(){return S()},get showNextPrevButtons(){return y()},get nextButtonActive(){return L()},get prevButtonActive(){return B()},get customFullscreenSupported(){return N()},get toggleFullscreen(){return U()},get seekToInteractive(){return K()},get playPrevChapter(){return H()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(ce){a(ce)},get playerControlsRef(){return c()},set playerControlsRef(ce){c(ce)}})};W(q,X=>{n()?X(Ge):X(Re,!1)})}w(j,ae)};W(Q,j=>{s(xe)&&j(pe)})}w(t,Ce);var he=P({get bottomHidden(){return r()},set bottomHidden(j){r(j),u()},get bottomNoSmooth(){return l()},set bottomNoSmooth(j=!1){l(j),u()},get showControls(){return d()},set showControls(j){d(j),u()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(j=void 0){a(j),u()},get playerControlsRef(){return c()},set playerControlsRef(j=void 0){c(j),u()},get isAds(){return f()},set isAds(j=!1){f(j),u()},get canRewindLive(){return g()},set canRewindLive(j){g(j),u()},get logoClickable(){return m()},set logoClickable(j){m(j),u()},get logoHidden(){return h()},set logoHidden(j){h(j),u()},get logoTargetUrl(){return _()},set logoTargetUrl(j=""){_(j),u()},get showNextPrevButtons(){return y()},set showNextPrevButtons(j){y(j),u()},get showAutoplayNext(){return S()},set showAutoplayNext(j=!1){S(j),u()},get nextButtonActive(){return L()},set nextButtonActive(j){L(j),u()},get prevButtonActive(){return B()},set prevButtonActive(j){B(j),u()},get isOneVideoPlaylist(){return V()},set isOneVideoPlaylist(j=!1){V(j),u()},get customFullscreenSupported(){return N()},set customFullscreenSupported(j=!0){N(j),u()},get endScreenShown(){return T()},set endScreenShown(j=!1){T(j),u()},get toggleFullscreen(){return U()},set toggleFullscreen(j){U(j),u()},get seekToInteractive(){return K()},set seekToInteractive(j){K(j),u()},get playPrevChapter(){return H()},set playPrevChapter(j){H(j),u()},get onDisabledPlayPrevChapterClick(){return G()},set onDisabledPlayPrevChapterClick(j=Ju){G(j),u()},get onDisabledSeekToInteractiveClick(){return J()},set onDisabledSeekToInteractiveClick(j=Ju){J(j),u()},$set:M,$on:(j,ae)=>A(e,j,ae)});return o(),he}var p2=Le('<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 ep(t,e){if(new.target)return k({component:ep,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=p2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function tp(t,e){if(new.target)return k({component:tp,...t});E(e,!0);let i=p(e,"reversed",7,!1),o=$(()=>i()?"transform: scaleX(-1);":void 0);return ep(t,{get style(){return s(o)}}),P({get reversed(){return i()},set reversed(n=!1){i(n),u()},$set:M,$on:(n,r)=>A(e,n,r)})}var f2=Le('<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 ip(t,e){if(new.target)return k({component:ip,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=f2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var m2=Le('<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 op(t,e){if(new.target)return k({component:op,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=m2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function Id(t,e){if(new.target)return k({component:Id,...t});E(e,!0);let i=p(e,"isOff",7,!1);var o=Ze(),n=Ie(o);{var r=d=>{op(d,{})},l=d=>{ip(d,{})};W(n,d=>{i()?d(r):d(l,!1)})}return w(t,o),P({get isOff(){return i()},set isOff(d=!1){i(d),u()},$set:M,$on:(d,a)=>A(e,d,a)})}var v2=Le('<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 np(t,e){if(new.target)return k({component:np,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=v2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function rp(t,e){if(new.target)return k({component:rp,...t});E(e,!0);let i=p(e,"reversed",7,!1),o=$(()=>i()?"transform: scaleX(-1);":void 0);return np(t,{get style(){return s(o)}}),P({get reversed(){return i()},set reversed(n=!1){i(n),u()},$set:M,$on:(n,r)=>A(e,n,r)})}var g2=Le('<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 sp(t,e){if(new.target)return k({component:sp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=g2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(2),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function ap(t,e){if(new.target)return k({component:ap,...t});E(e,!0);let i=p(e,"reversed",7,!1),o=$(()=>i()?"transform: scaleX(-1);":void 0);return sp(t,{get style(){return s(o)}}),P({get reversed(){return i()},set reversed(n=!1){i(n),u()},$set:M,$on:(n,r)=>A(e,n,r)})}var h2=F('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),_2=F('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),$2=F('<div class="hot-key-helpers-container svelte-1ad3n06"><!></div>'),b2={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;
263
+ }`};function Vf(t,e){var lr,Ir;q(e,!0),Q(t,yy);let[i,o]=Ue(),n=()=>C(li,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(To,"$disabledControls$",i),s=()=>C(gt,"$playbackState$",i),d=()=>C(ht,"$adPlaybackState",i),l=()=>C(Be,"$isEnded$",i),u=()=>C(qt,"$playerSize",i),f=()=>C(Se,"$scrubbingInProgress",i),_=()=>C(ei,"$chromecastState$",i),p=()=>C(pt,"$isPictureInPictureActive",i),$=()=>C(Ht,"$pictureInPictureType$",i),w=()=>C(De,"$mobileNotReportControlHidden$",i),y=()=>C(et,"$playerPhase",i),S=()=>C(Io,"$currentGridType$",i),I=()=>C(re,"$isLive$",i),A=()=>C(Xe,"$settingsMenuVisible",i),P=()=>C(ge,"$isRewindableLive$",i),E=()=>C(se,"$isActiveLive$",i),T=()=>C(no,"$isInteractiveTime$",i),V=()=>C(Ot,"$isAudioAvailable$",i),z=()=>C(Fi,"$settingButtonRef$",i),Y=()=>C(Oi,"$startedByKeyboard$",i),U=()=>C(F,"$isFullscreen",i),Z=()=>C(dt,"$mobileUnmuteButtonVisible",i),X=()=>C(W,"$muted$",i),oe=()=>C(Qe,"$mobileUnmuteButtonExpanded",i),ce=()=>C(Hi,"$additionalButtons$",i),le=()=>C(Mi,"$crashed$",i),Ve=()=>C(yt,"$graphIsOpened$",i),Me=()=>C(Et,"$adPosition",i),J=()=>C(ko,"$adDuration",i),Le=()=>C(rt,"$position$",i),j=()=>C(Vt,"$duration$",i),N=v(e,"playerControlsWrapperRef",15,void 0),Ne=v(e,"playerControlsRef",15,void 0),ne=v(e,"isAds",3,!1),ke=v(e,"logoTargetUrl",3,""),Re=v(e,"isOneVideoPlaylist",3,!1),ue=v(e,"customFullscreenSupported",3,!0),D=Te(),de=oo(),Ee=zt(),We=D.actions.internal.toggleMuted,lt=D.actions.internal.togglePlay,Ae=D.actions.internal.pause,$e=D.actions.internal.prevVideoClick,Pe=D.actions.internal.nextVideoClick,nt=(lr=D.callbacks)==null?void 0:lr.onAudioDoesNotExistHint,vt=(Ir=D.callbacks)==null?void 0:Ir.onAudioDisabledHint,et=D.playerPhase,Vt=D.state.duration$,rt=D.state.positionWithScrubbing$,gt=D.state.playbackState$,Ot=D.state.isAudioAvailable$,Ut=D.state.isAudioDisabled,Be=D.state.isEnded$,re=D.state.isLive$,W=D.state.muted$,se=D.state.isActiveLive$,ge=D.state.isRewindableLive$,Se=D.ui.scrubbingInProgress,De=D.ui.mobileNotReportControlHidden$,{isActive$:pt,type$:Ht}=de.pictureInPicture$,Qe=D.ui.mobileUnmuteButtonExpanded,dt=D.ui.mobileUnmuteButtonVisible,Xe=D.ui.settingsMenu.visible$,Ct=D.ui.settingsMenu.openedByBtnKeyboard$,Zt=D.ui.controls,qe=D.actions.internal.getVideoEpisodes(),ct=D.webApi.pictureInPictureApi,ei=D.state.chromecastState$,Mi=D.state.crashed$,To=Zt.disabledControls$,Oi=D.ui.startedByKeyboard$,Io=D.ui.currentGridType$,ko=D.ads.duration,Et=D.ads.position,ht=D.ads.playbackState,F=D.ui.isFullscreen,qt=D.ui.playerSize,Hi=D.ui.additionalButtonsDeprecated$,Li=D.actions.internal.getVideoElement,ri=D.actions.internal.replayInteractive,ai=D.state.isInteractive,no=D.state.isInteractiveTime$,ro=D.state.showInteractiveGraph,Ki=D.state.showSeekToInteractive,Bo=D.state.showPlayPrevChapter,Rt=D.state.showInteractiveTimeIndicator,li=de.seekToInteractiveDisabledTooltip$,yt=de.graphIsOpened$,Ft=m(()=>H(D.state.playPrevChapterDisabledTooltip)),so=m(()=>H(n())),jt=m(()=>a().has("EPISODE_BUTTON")),Hn=m(()=>a().has("GRAPH_BUTTON")),bo=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),No=m(()=>a().has("PLAY_BUTTON")),ni=m(()=>a().has("REPLAY_BUTTON")),bt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),di=m(()=>s()===Kh.PLAYING),ao=m(()=>d()==="paused"),mi=m(()=>l()&&!ne()&&!ai),fn=m(()=>!l()||ne()),yi=m(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),$o=m(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),Do=m(()=>u().width>300),mn=m(()=>u().width>400),xi=m(f),Fn=m(()=>_()!==qh.NOT_AVAILABLE&&!(p()&&$()===1)&&!w()&&!ai),Xo=m(()=>y()==="LiveWaitingStart"),Eo=m(()=>!!ct&&_()!==qh.CONNECTED&&!w()&&($()===1&&r(Xo)||!r(Xo))&&!r(xi)&&!ai),Jo=m(()=>!r(xi)&&Di(S(),"s")),Sr=m(()=>!e.logoHidden&&u().width>350),nr=m(()=>Ee.features.fullscreen&&!(p()&&$()===1)&&(ai?ue():!0)&&!r(xi)),Un=m(()=>(!I()||ne())&&u().width>260&&!r(xi)&&!(Ee.features.interactiveHideTime&&ai)),vn=m(()=>A()||e.showControls),en=m(()=>!ne()&&!I()&&!!(qe!=null&&qe.length)&&r(Do)&&!r(jt)&&!r(xi)),gn=m(()=>!P()||!!E()),lo=m(()=>ro&&Di(S(),"m")),Je=pe({}),tn=ly(Uc,260);Ye(()=>{u(),T(),tn(Li(),Zt,Je,e.showControls)});let zn=()=>D.actions.internal.toggleChromecast();function qn(){ys({isAudioDisabled:Ut,audioDisabledHintCallback:vt,isAudioAvailable:V(),audioIsNotExistHintCallback:nt})&&We()}async function hn(){ct!=null&&ct.isActive()?await(ct==null?void 0:ct.remove()):await(ct==null?void 0:ct.request())}function on(){!Ut&&V()&&dt.set(!1),qn()}let nn=ee(""),Oo=(it,ft)=>{if(!it){O(nn,pe(H("tooltip_live")));return}ft&&ft===Kh.PAUSED&&O(nn,pe(H("tooltip_play")))};Ye(()=>{Oo(r(gn),s())});let Fi=ae();Ye(()=>{z()&&Ba(z(),A(),Ct)}),Ye(()=>{zc(Oi,Y(),Je.playButton)});var Ui=$y(),Kn=ve(Ui);{var _n=it=>{var ft=vy(),wi=ve(ft);let Yi;var ji=M(wi,2);let yo;var Po=h(ji);{var Mo=tt=>{let Nt=m(()=>V()&&!Ut&&oe());Kc(tt,{get muted(){return X()},get expanded(){return r(Nt)},click:on,get ref(){return Je.volume},set ref(ye){Je.volume=ye}})};R(Po,tt=>{(!V()||Z())&&tt(Mo)})}g(ji);var xo=M(ji,2);let je;var St=h(xo);bi(St,1,ce,({iconUrl:tt,ariaLabel:Nt,testId:ye,onClick:At,tooltip:Xt})=>tt,(tt,Nt)=>{let ye=()=>r(Nt).iconUrl,At=()=>r(Nt).ariaLabel,Xt=()=>r(Nt).testId,ii=()=>r(Nt).onClick,po=()=>r(Nt).tooltip,ki=m(()=>{var oi;return(oi=At())!=null?oi:po()});Ef(tt,{get iconUrl(){return ye()},get ariaLabel(){return r(ki)},get testId(){return Xt()},get onClick(){return ii()}})});var Ii=M(St,2);{var Vi=tt=>{sd(tt,{get ref(){return Je.autoplayNextToggle},set ref(Nt){Je.autoplayNextToggle=Nt}})};R(Ii,tt=>{e.showAutoplayNext&&!Re()&&tt(Vi)})}var Ri=M(Ii,2);{var vi=tt=>{jl(tt,{isMobile:!0,click:zn,get state(){return _()},get ref(){return Je.chromecast},set ref(Nt){Je.chromecast=Nt}})};R(Ri,tt=>{r(Fn)&&tt(vi)})}var zi=M(Ri,2);{var Zi=tt=>{Lf(tt,{click:hn,get isPictureInPictureActive(){return p()},get ref(){return Je.pip},set ref(Nt){Je.pip=Nt}})};R(zi,tt=>{r(Eo)&&tt(Zi)})}var Tn=M(zi,2);{var In=tt=>{Fa(tt,{ref$:Fi})};R(Tn,tt=>{le()&&tt(In)})}var dr=M(Tn,2);{var Fo=tt=>{Yl(tt,{click:Ae,get targetUrl(){return ke()},get logoClickable(){return e.logoClickable},get ref(){return Je.vkLogo},set ref(Nt){Je.vkLogo=Nt}})};R(dr,tt=>{r(Sr)&&tt(Fo)})}g(xo);var kn=M(xo,2);let cr;var ur=h(kn);{var kr=tt=>{let Nt=m(()=>$e.bind(null,!0));oa(tt,{get click(){return r(Nt)},type:"prev",isMobile:!0,get ref(){return Je.prevButton},set ref(ye){Je.prevButton=ye}})};R(ur,tt=>{r(yi)&&tt(kr)})}var pr=M(ur,2);{var rn=tt=>{Ka(tt,{get disabled(){return r(No)},click:lt,isMobile:!0,get isPlaying(){return r(di)},get ref(){return Je.playButton},set ref(Nt){Je.playButton=Nt}})};R(pr,tt=>{r(fn)&&tt(rn)})}var sn=M(pr,2);{var Yn=tt=>{qa(tt,{get disabled(){return r(ni)},click:lt,isMobile:!0,get ref(){return Je.replayButton},set ref(Nt){Je.replayButton=Nt}})};R(sn,tt=>{r(mi)&&tt(Yn)})}var Er=M(sn,2);{var uo=tt=>{let Nt=m(()=>Pe.bind(null,!0));oa(tt,{get click(){return r(Nt)},type:"next",isMobile:!0,get ref(){return Je.nextButton},set ref(ye){Je.nextButton=ye}})};R(Er,tt=>{r($o)&&tt(uo)})}g(kn);var En=M(kn,2);{var fr=tt=>{var Nt=my(),ye=ve(Nt);{var At=oi=>{var si=uy();let hi;si.__click=[dy,bt,e,Ft];var qi=h(si);let Ei=m(()=>!e.showControls);rd(qi,{get hidden(){return r(Ei)},get disabled(){return r(bt)},get click(){return e.playPrevChapter},get ref(){return Je.playPrevChapterButton},set ref(Si){Je.playPrevChapterButton=Si}}),g(si),k(Si=>hi=te(si,1,"wrapper-middle-left svelte-1afsgkw",null,hi,Si),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(oi,si)};R(ye,oi=>{Bo&&oi(At)})}var Xt=M(ye,2);{var ii=oi=>{var si=py();let hi;var qi=h(si);let Ei=m(()=>!e.showControls&&!Ve());ld(qi,{get hidden(){return r(Ei)},get disabled(){return r(Hn)},get click(){return yt.toggle},get graphIsOpened(){return Ve()},get ref(){return Je.interactiveGraphButton},set ref(Si){Je.interactiveGraphButton=Si}}),g(si),k(Si=>hi=te(si,1,wl(Bo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",hi,Si),[()=>({fullscreen:U(),hidden:!e.showControls&&!Ve()})]),b(oi,si)};R(Xt,oi=>{r(lo)&&oi(ii)})}var po=M(Xt,2);{var ki=oi=>{var si=fy();let hi;si.__click=[cy,bo,e,so];var qi=h(si);let Ei=m(()=>!e.showControls);ad(qi,{get hidden(){return r(Ei)},get disabled(){return r(bo)},get click(){return e.seekToInteractive},get ref(){return Je.seekToInteractiveButton},set ref(Si){Je.seekToInteractiveButton=Si}}),g(si),k(Si=>hi=te(si,1,"wrapper-middle-right svelte-1afsgkw",null,hi,Si),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(oi,si)};R(po,oi=>{Ki&&oi(ki)})}b(tt,Nt)};R(En,tt=>{ai&&!f()&&tt(fr)})}k((tt,Nt,ye,At)=>{Yi=te(wi,1,"overlay-mobile svelte-1afsgkw",null,Yi,tt),yo=te(ji,1,"wrapper-top-left svelte-1afsgkw",null,yo,Nt),je=te(xo,1,"wrapper-top-right svelte-1afsgkw",null,je,ye),cr=te(kn,1,"wrapper-middle svelte-1afsgkw",null,cr,At)},[()=>({hidden:!r(vn)}),()=>({hidden:!e.showControls,fullscreen:U()}),()=>({hidden:!e.showControls&&!w(),fullscreen:U()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(it,ft)};R(Kn,it=>{ne()||it(_n)})}var Wn=M(Kn,2);{var rr=it=>{var ft=_y(),wi=ve(ft);{var Yi=je=>{var St=gy();let Ii;var Vi=h(St);Kc(Vi,{get muted(){return X()},expanded:!1,click:on,get ref(){return Je.volume},set ref(Ri){Je.volume=Ri}}),g(St),k(Ri=>Ii=te(St,1,"wrapper-top-right svelte-1afsgkw",null,Ii,Ri),[()=>({fullscreen:U()})]),b(je,St)};R(wi,je=>{Z()&&je(Yi)})}var ji=M(wi,2);{var yo=je=>{var St=hy(),Ii=h(St);let Vi=m(()=>!r(ao));Ka(Ii,{get disabled(){return r(No)},click:lt,isMobile:!0,get isPlaying(){return r(Vi)},get ref(){return Je.playButton},set ref(Ri){Je.playButton=Ri}}),g(St),b(je,St)};R(ji,je=>{r(ao)&&je(yo)})}var Po=M(ji,2);let Mo;var xo=h(Po);Zl(xo,{get position(){return Me()},get duration(){return J()}}),g(Po),k(je=>Mo=te(Po,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Mo,je),[()=>({fullscreen:U()})]),b(it,ft)};R(Wn,it=>{ne()&&d()!=="inactive"&&it(rr)})}var Wi=M(Wn,2);let Qi;var bn=h(Wi);let $n;var co=h(bn);te(co,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Gi=h(co);{var yn=it=>{Co(it,{get disabled(){return r(ni)},get ref(){return Je.replayButton},set ref(ft){Je.replayButton=ft},children:(ft,wi)=>{qa(ft,{get disabled(){return r(ni)},click:ri})},$$slots:{default:!0}})};R(Gi,it=>{ai&&it(yn)})}var Ao=M(Gi,2);{var Cr=it=>{Co(it,{get ref(){return Je.liveButton},set ref(ft){Je.liveButton=ft},children:(ft,wi)=>{dd(ft,{get isLiveActive(){return r(gn)},isMobile:!0,get ariaLabel(){return r(nn)}})},$$slots:{default:!0}})};R(Ao,it=>{!ne()&&I()&&it(Cr)})}var xn=M(Ao,2);{var sr=it=>{let ft=m(()=>ne()?Me():Le()),wi=m(()=>ne()?J():j());Wl(it,{get showDuration(){return r(mn)},get position(){return r(ft)},get duration(){return r(wi)},isMobile:!0,get ref(){return Je.time},set ref(Yi){Je.time=Yi}})};R(xn,it=>{r(Un)&&it(sr)})}var wn=M(xn,2);let Sn=m(()=>!r(en));Co(wn,{className:"w-max",get disabled(){return r(Sn)},get ref(){return Je.episodes},set ref(it){Je.episodes=it},children:(it,ft)=>{var wi=ze(),Yi=ve(wi);{var ji=yo=>{var Po=by(),Mo=M(ve(Po),2);Jl(Mo,{get position(){return Le()},get duration(){return j()},timeCodes:qe}),b(yo,Po)};R(Yi,yo=>{r(en)&&yo(ji)})}b(it,wi)},$$slots:{default:!0}});var Tr=M(wn,2);{var Qn=it=>{Co(it,{get ref(){return Je.settings},set ref(ft){Je.settings=ft},children:(ft,wi)=>{Fa(ft,{ref$:Fi})},$$slots:{default:!0}})};R(Tr,it=>{r(Jo)&&it(Qn)})}var ar=M(Tr,2);{var Gn=it=>{Co(it,{get ref(){return Je.fullscreen},set ref(ft){Je.fullscreen=ft},children:(ft,wi)=>{Gl(ft,{get click(){return e.toggleFullscreen},get isFullscreen(){return U()}})},$$slots:{default:!0}})};R(ar,it=>{r(nr)&&it(Gn)})}g(co),ut(co,it=>Ne(it),()=>Ne());var Cn=M(co,2);Xl(Cn,{get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return Je.timeline},set ref(it){Je.timeline=it}}),g(bn),g(Wi),ut(Wi,it=>N(it),()=>N());var ti=M(Wi,2);{var Ho=it=>{od(it,{get ref(){return Je.interactiveTimeIndicator},set ref(ft){Je.interactiveTimeIndicator=ft}})};R(ti,it=>{Rt&&it(Ho)})}k((it,ft)=>{Qi=te(Wi,1,"wrapper-bottom svelte-1afsgkw",null,Qi,it),$n=te(bn,1,"controls-wrapper svelte-1afsgkw",null,$n,ft)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:U()})]),b(t,Ui),K(),o()}at(["click"]);function cd(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(I,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,Wh),y=v(e,"onDisabledSeekToInteractiveClick",3,Wh),I=Te().ui.isMobile,A=ee(!1);Bt(()=>{let V=setTimeout(()=>O(A,!0),0);return()=>clearTimeout(V)});var P=ze(),E=ve(P);{var T=V=>{var z=ze(),Y=ve(z);{var U=X=>{Vf(X,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return _()},get customFullscreenSupported(){return p()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})},Z=X=>{kf(X,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return _()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})};R(Y,X=>{n()?X(U):X(Z,!1)})}b(V,z)};R(E,V=>{r(A)&&V(T)})}b(t,P),K(),o()}var xy=be('<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 Rf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=xy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function Bf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Rf(t,{get style(){return r(o)}})}var wy=be('<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 Nf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=wy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var Sy=be('<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 Df(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function Wc(t,e){let i=v(e,"isOff",3,!1);var o=ze(),n=ve(o);{var a=d=>{Df(d,{})},s=d=>{Nf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Cy=be('<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 Of(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function Hf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Of(t,{get style(){return r(o)}})}var Ty=be('<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 Ff(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function Uf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Ff(t,{get style(){return r(o)}})}var Iy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),ky=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Ey=L("<div><!></div>"),Ay={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;
259
264
  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"],
260
265
  .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"],
261
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -270,21 +275,21 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
270
275
  @keyframes svelte-1ad3n06-fadeOut {
271
276
  0% {opacity:1;}
272
277
  100% {opacity:0;}
273
- }`};function lp(t,e){if(new.target)return k({component:lp,...t});E(e,!0),ne(t,b2);let[i,o]=Xe(),n=()=>I(r(),"$data",i),r=p(e,"data",7),d=He().ui.t,a=$(()=>!n()),c=$(()=>{var L;return((L=n())==null?void 0:L.type)==="BACKWARD_SEEK"}),f=$(()=>{var L;return((L=n())==null?void 0:L.type)==="FORWARD_SEEK"}),g=$(()=>{var L;return(L=n())==null?void 0:L.type}),m=$(()=>{var L,B;return(L=n())!=null&&L.t?d(n().t.key,{value:n().t.value||""}):(B=n())==null?void 0:B.text});var h=$2(),_=x(h);{var y=L=>{var B=_2(),V=Ie(B),N=x(V);{var T=Z=>{let De=$(()=>s(g)==="FORWARD_SEEK");tp(Z,{get reversed(){return s(De)}})};W(N,Z=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(g))&&Z(T)})}var U=O(N,2);{var K=Z=>{Qs(Z,{})};W(U,Z=>{s(g)==="PAUSE"&&Z(K)})}var H=O(U,2);{var G=Z=>{ns(Z,{})};W(H,Z=>{s(g)==="PLAY"&&Z(G)})}var J=O(H,2);{var de=Z=>{Il(Z,{})};W(J,Z=>{s(g)==="REPLAY"&&Z(de)})}var te=O(J,2);{var xe=Z=>{Id(Z,{isOff:!0})};W(te,Z=>{s(g)==="SUBTITLES_OFF"&&Z(xe)})}var Ce=O(te,2);{var Q=Z=>{Id(Z,{})};W(Ce,Z=>{s(g)==="SUBTITLES_ON"&&Z(Q)})}var pe=O(Ce,2);{var he=Z=>{let De=$(()=>s(g)==="RATE_UP");rp(Z,{get reversed(){return s(De)}})};W(pe,Z=>{["RATE_DOWN","RATE_UP"].includes(s(g))&&Z(he)})}var j=O(pe,2);{var ae=Z=>{let De=$(()=>s(g)==="EPISODE_NEXT");ap(Z,{get reversed(){return s(De)}})};W(j,Z=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(g))&&Z(ae)})}var q=O(j,2);{var Ge=Z=>{bs(Z,{volume:0})};W(q,Z=>{s(g)==="MUTE"&&Z(Ge)})}var Re=O(q,2);{var X=Z=>{bs(Z,{volume:1})};W(Re,Z=>{s(g)==="VOLUME"&&Z(X)})}b(V);var ce=O(V,2);{var Be=Z=>{var De=h2(),le=x(De,!0);b(De),R(()=>ke(le,s(m))),w(Z,De)};W(ce,Z=>{s(m)&&Z(Be)})}w(L,B)};W(_,L=>{!s(a)&&s(g)&&L(y)})}b(h),R(()=>{re(h,"hidden",s(a)),re(h,"hot-key-helpers-container--left",s(c)),re(h,"hot-key-helpers-container--right",s(f))}),w(t,h);var S=P({get data(){return r()},set data(L){r(L),u()},$set:M,$on:(L,B)=>A(e,L,B)});return o(),S}var y2=Le('<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 dp(t,e){if(new.target)return k({component:dp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=y2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var x2=Le('<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 cp(t,e){if(new.target)return k({component:cp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=x2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function Cs(t,e){if(new.target)return k({component:Cs,...t});E(e,!0);let i=p(e,"direction",7,"left"),o=p(e,"useBtnColor",7,!1),n=$(()=>["up","down"].includes(i())),r=$(()=>["right","down"].includes(i())),l=$(()=>(()=>{let g="";return s(r)&&(g+="transform: rotate(180deg);"),o()&&(g+="color: var(--btn-color, #fff);"),g.length?g:void 0})());var d=Ze(),a=Ie(d);{var c=g=>{let m=$(()=>s(r)?"chevron-icon--down":"chevron-icon--up");dp(g,{get style(){return s(l)},get"data-testid"(){return s(m)}})},f=g=>{let m=$(()=>s(r)?"chevron-icon--right":"chevron-icon--left");cp(g,{get style(){return s(l)},get"data-testid"(){return s(m)}})};W(a,g=>{s(n)?g(c):g(f,!1)})}return w(t,d),P({get direction(){return i()},set direction(g="left"){i(g),u()},get useBtnColor(){return o()},set useBtnColor(g=!1){o(g),u()},$set:M,$on:(g,m)=>A(e,g,m)})}var w2=(t,e,i,o,n,r)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":r();break}},C2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},S2=F('<div class="immersive-controls svelte-1yzc86r" 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>'),T2={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 Vl(t,e){if(new.target)return k({component:Vl,...t});E(e,!0),ne(t,T2);let i=p(e,"isShifted",7,!1),o=He(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),f=ee("aria_label_spherical_control");var g=S2();g.__keydown=[w2,n,r,l,a,d],g.__keyup=[C2,n,c],fe(g,"aria-label",f);var m=x(g),h=x(m),_=x(h);_.__mousedown=r,_.__mouseup=c;var y=x(_);Cs(y,{direction:"up",useBtnColor:!0}),b(_);var S=O(_,2);S.__mousedown=d,S.__mouseup=c;var L=x(S);Cs(L,{direction:"up",useBtnColor:!0}),b(S),b(h);var B=O(h,2),V=x(B);V.__mousedown=a,V.__mouseup=c;var N=x(V);Cs(N,{direction:"up",useBtnColor:!0}),b(V);var T=O(V,2);T.__mousedown=l,T.__mouseup=c;var U=x(T);return Cs(U,{direction:"up",useBtnColor:!0}),b(T),b(B),b(m),b(g),R(()=>re(g,"m-shifted",i())),Ft("mouseleave",_,c),Ft("mouseleave",S,c),Ft("mouseleave",V,c),Ft("mouseleave",T,c),w(t,g),P({get isShifted(){return i()},set isShifted(K=!1){i(K),u()},$set:M,$on:(K,H)=>A(e,K,H)})}bt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as jh,Subscription as I2,filterChanged as k2,filter as E2}from"@vkontakte/videoplayer-shared/es2018";var Yh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var up=class{constructor(){this.flickeringTimeout=Yh(1e3);this.subscriptions=new I2;this.isAuto=!1;this.isLive=!1;this.captions$=new jh([]);this.captionsPrepared$=new jh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(E2(()=>this.isEnabled()),k2()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var P2=F('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),A2=F('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),M2=F('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),L2=F('<div class="subtitles-caption svelte-c2x749"><span class="caption svelte-c2x749"><!></span></div>'),V2=F('<div class="subtitles-container svelte-c2x749"><!></div>'),R2={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;
274
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Rl(t,e){if(new.target)return k({component:Rl,...t});E(e,!0),ne(t,R2);let[i,o]=Xe(),n=()=>I(y,"$currentSubtitle$",i),r=()=>I(L,"$isLive$",i),l=()=>I(B,"$isFullscreen",i),d=()=>I(S,"$isAutoSubtitleCaptionVisible$",i),a=p(e,"shifted",7),c=p(e,"captions",7),f=p(e,"position",7),g=p(e,"playerSize",7),m=p(e,"isMobile",7,!1),h=He(),_=Xt(),y=h.state.currentSubtitle$,S=h.state.isAutoSubtitleCaptionVisible$,L=h.state.isLive$,B=h.ui.isFullscreen,V=$(()=>!!n().isAuto),N=$(()=>!!r()),T=$(()=>g().width*.02),U=$(()=>m()&&!l()||s(T)<=_.minSubtitlesFontSize?_.minSubtitlesFontSize:s(T)),K=ue(null);rt(()=>{var Ce,Q,pe;(Ce=s(K))==null||Ce.setIsAuto(s(V)),(Q=s(K))==null||Q.setIsLive(s(N)),(pe=s(K))==null||pe.setCaptions(c())});let H=ue(Ae([[]]));Kt(()=>{Y(K,Ae(new up().subscribe()));let Ce=s(K).captionsPrepared$.subscribe(Q=>{Y(H,Ae(Q))});return()=>{var Q;(Q=s(K))==null||Q.destroy(),Ce.unsubscribe()}}),Kt(()=>{if(s(V)){let Ce=window.setTimeout(()=>{S.set(!1)},_.autoSubtitlesTimeout);return()=>{window.clearTimeout(Ce)}}else S.set(!1)});let G=$(()=>g().width<400?10:g().width<550?14:24);var J=V2(),de=x(J);{var te=Ce=>{var Q=L2(),pe=x(Q),he=x(pe);{var j=q=>{var Ge=P2(),Re=x(Ge),X=x(Re,!0);b(Re),b(Ge),R(ce=>{var Be;fe(Re,"style",`font-size: ${(Be=s(U))!=null?Be:""}px`),ke(X,ce)},[()=>ee("subtitles_auto_caption")]),w(q,Ge)},ae=q=>{var Ge=Ze(),Re=Ie(Ge);{var X=Be=>{var Z=Ze(),De=Ie(Z);Ci(De,17,()=>s(H),Ji,(le,Ke)=>{var lt=A2(),at=x(lt);Ci(at,21,()=>s(Ke),Ji,(we,$e)=>{let Je=()=>s($e).value,vt=()=>s($e).timeAppeared;var ve=Ze(),je=Ie(ve);{var Ct=ie=>{var et=rr();R(()=>ke(et,Je())),w(ie,et)};W(je,ie=>{(!vt()||vt()<=f())&&ie(Ct)})}w(we,ve)}),b(at),b(lt),R(()=>{var we;return fe(at,"style",`font-size: ${(we=s(U))!=null?we:""}px`)}),w(le,lt)}),w(Be,Z)},ce=Be=>{var Z=Ze(),De=Ie(Z);Ci(De,17,c,Ji,(le,Ke)=>{let lt=()=>s(Ke).value;var at=M2(),we=x(at),$e=x(we,!0);b(we),b(at),R(()=>{var Je;fe(we,"style",`font-size: ${(Je=s(U))!=null?Je:""}px`),ke($e,lt())}),w(le,at)}),w(Be,Z)};W(Re,Be=>{var Z;s(V)&&((Z=s(H))!=null&&Z.length)?Be(X):Be(ce,!1)},!0)}w(q,Ge)};W(he,q=>{s(V)&&d()?q(j):q(ae,!1)})}b(pe),b(Q),R(()=>{var q;fe(Q,"style",`--subtitles-caption-margin: ${(q=s(G))!=null?q:""}%`),re(Q,"mobile",m())}),w(Ce,Q)};W(de,Ce=>{var Q;(c().length||(Q=s(H))!=null&&Q.length)&&Ce(te)})}b(J),R(()=>{re(J,"shifted",a()),re(J,"auto",s(V)&&!s(N)&&!d())}),w(t,J);var xe=P({get shifted(){return a()},set shifted(Ce){a(Ce),u()},get captions(){return c()},set captions(Ce){c(Ce),u()},get position(){return f()},set position(Ce){f(Ce),u()},get playerSize(){return g()},set playerSize(Ce){g(Ce),u()},get isMobile(){return m()},set isMobile(Ce=!1){m(Ce),u()},$set:M,$on:(Ce,Q)=>A(e,Ce,Q)});return o(),xe}var N2=F('<div class="text svelte-raurnb"> </div>'),B2=F('<div class="wrapper svelte-raurnb"><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>'),D2={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 Nl(t,e){if(new.target)return k({component:Nl,...t});E(e,!0),ne(t,D2);let i=p(e,"thumbUrl",7),o=p(e,"chromecastDeviceName",7),n=Xt();var r=B2(),l=O(x(r),2);{var d=a=>{var c=N2(),f=x(c);b(c),R(()=>{var g;return ke(f,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(g=o())!=null?g:""}`)}),w(a,c)};W(l,a=>{o()&&a(d)})}return b(r),R(()=>{fe(r,"style",`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i()||""}')`),re(r,"bgCover",n.features.previewNoEmptySpace)}),w(t,r),P({get thumbUrl(){return i()},set thumbUrl(a){i(a),u()},get chromecastDeviceName(){return o()},set chromecastDeviceName(a){o(a),u()},$set:M,$on:(a,c)=>A(e,a,c)})}var O2=Le('<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 pp(t,e){if(new.target)return k({component:pp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=O2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var H2=F('<div class="container svelte-13zpvm8"><!></div>'),F2={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 Bl(t,e){if(new.target)return k({component:Bl,...t});E(e,!1),ne(t,F2);var i=H2(),o=x(i);return pp(o,{}),b(i),w(t,i),P({$set:M,$on:(n,r)=>A(e,n,r)})}var U2=F('<div class="container svelte-1xnh9dd"><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),z2={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {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, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {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-1xnh9dd {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, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function Dl(t,e){if(new.target)return k({component:Dl,...t});E(e,!0),ne(t,z2);let i=p(e,"thumbUrl",7),o=p(e,"hidden",7),n=p(e,"startVideo",7),r=He(),l=Xt(),d=r.ui.startedByKeyboard$,a=ee("tooltip_play"),c=_=>{let y=_.code;["Enter","Space"].includes(y)&&(_.stopPropagation(),_.preventDefault(),d.set(!0),n()())},f=_=>{_.stopPropagation(),n()()};var g=U2();g.__click=f;var m=x(g);m.__keydown=c,fe(m,"aria-label",a);var h=O(x(m),2);return ns(h,{}),b(m),b(g),R(()=>{fe(g,"style",`background-color: #222; background-image: url('${i()||""}')`),re(g,"hidden",o()),re(g,"bgCover",l.features.previewNoEmptySpace)}),w(t,g),P({handlePressKey:c,handleClick:f,get thumbUrl(){return i()},set thumbUrl(_){i(_),u()},get hidden(){return o()},set hidden(_){o(_),u()},get startVideo(){return n()},set startVideo(_){n(_),u()},$set:M,$on:(_,y)=>A(e,_,y)})}bt(["click","keydown"]);var W2=F('<div class="title svelte-1bcvcf2"> </div>'),q2={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
278
+ }`};function zf(t,e){q(e,!0),Q(t,Ay);let[i,o]=Ue(),n=()=>C(e.data,"$data",i),s=Te().ui.t,d=m(()=>!n()),l=m(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),u=m(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=m(()=>{var S;return(S=n())==null?void 0:S.type}),_=m(()=>{var S,I;return(S=n())!=null&&S.t?s(n().t.key,{value:n().t.value||""}):(I=n())==null?void 0:I.text});var p=Ey();let $;var w=h(p);{var y=S=>{var I=ky(),A=ve(I),P=h(A);{var E=ue=>{let D=m(()=>r(f)==="FORWARD_SEEK");Bf(ue,{get reversed(){return r(D)}})};R(P,ue=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ue(E)})}var T=M(P,2);{var V=ue=>{na(ue,{})};R(T,ue=>{r(f)==="PAUSE"&&ue(V)})}var z=M(T,2);{var Y=ue=>{ns(ue,{})};R(z,ue=>{r(f)==="PLAY"&&ue(Y)})}var U=M(z,2);{var Z=ue=>{nd(ue,{})};R(U,ue=>{r(f)==="REPLAY"&&ue(Z)})}var X=M(U,2);{var oe=ue=>{Wc(ue,{isOff:!0})};R(X,ue=>{r(f)==="SUBTITLES_OFF"&&ue(oe)})}var ce=M(X,2);{var le=ue=>{Wc(ue,{})};R(ce,ue=>{r(f)==="SUBTITLES_ON"&&ue(le)})}var Ve=M(ce,2);{var Me=ue=>{let D=m(()=>r(f)==="RATE_UP");Hf(ue,{get reversed(){return r(D)}})};R(Ve,ue=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ue(Me)})}var J=M(Ve,2);{var Le=ue=>{let D=m(()=>r(f)==="EPISODE_NEXT");Uf(ue,{get reversed(){return r(D)}})};R(J,ue=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ue(Le)})}var j=M(J,2);{var N=ue=>{xs(ue,{volume:0})};R(j,ue=>{r(f)==="MUTE"&&ue(N)})}var Ne=M(j,2);{var ne=ue=>{xs(ue,{volume:1})};R(Ne,ue=>{r(f)==="VOLUME"&&ue(ne)})}g(A);var ke=M(A,2);{var Re=ue=>{var D=Iy(),de=h(D,!0);g(D),k(()=>fe(de,r(_))),b(ue,D)};R(ke,ue=>{r(_)&&ue(Re)})}b(S,I)};R(w,S=>{!r(d)&&r(f)&&S(y)})}g(p),k(S=>$=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(u)})]),b(t,p),K(),o()}var Py=be('<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 qf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Py();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}var My=be('<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 Kf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=My();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}function Ss(t,e){q(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),s=m(()=>(()=>{let _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=ze(),l=ve(d);{var u=_=>{let p=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");qf(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})},f=_=>{let p=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Kf(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})};R(l,_=>{r(n)?_(u):_(f,!1)})}b(t,d),K()}var Ly=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},Vy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Ry=L('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),By={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 ud(t,e){q(e,!0),Q(t,By);let i=v(e,"isShifted",3,!1),o=Te(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=H("aria_label_spherical_control");var _=Ry();let p;_.__keydown=[Ly,n,a,s,l,d],_.__keyup=[Vy,n,u],Oe(_,"aria-label",f);var $=h(_),w=h($),y=h(w);y.__mousedown=a,y.__mouseup=u;var S=h(y);Ss(S,{direction:"up",useBtnColor:!0}),g(y);var I=M(y,2);I.__mousedown=d,I.__mouseup=u;var A=h(I);Ss(A,{direction:"up",useBtnColor:!0}),g(I),g(w);var P=M(w,2),E=h(P);E.__mousedown=l,E.__mouseup=u;var T=h(E);Ss(T,{direction:"up",useBtnColor:!0}),g(E);var V=M(E,2);V.__mousedown=s,V.__mouseup=u;var z=h(V);Ss(z,{direction:"up",useBtnColor:!0}),g(V),g(P),g($),g(_),k(Y=>p=te(_,1,"immersive-controls svelte-1yzc86r",null,p,Y),[()=>({"m-shifted":i()})]),It("mouseleave",y,u),It("mouseleave",I,u),It("mouseleave",E,u),It("mouseleave",V,u),b(t,_),K()}at(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Gh,Subscription as Ny,filterChanged as Dy,filter as Oy}from"@vkontakte/videoplayer-shared/es2018";var Qh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Qc=class{constructor(){this.flickeringTimeout=Qh(1e3);this.subscriptions=new Ny;this.isAuto=!1;this.isLive=!1;this.captions$=new Gh([]);this.captionsPrepared$=new Gh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Oy(()=>this.isEnabled()),Dy()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:a,value:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var Hy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Fy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),Uy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),zy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),qy=L("<div><!></div>"),Ky={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;
279
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function pd(t,e){q(e,!0),Q(t,Ky);let[i,o]=Ue(),n=()=>C(_,"$currentSubtitle$",i),a=()=>C($,"$isLive$",i),s=()=>C(w,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),u=Te(),f=zt(),_=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,$=u.state.isLive$,w=u.ui.isFullscreen,y=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),A=m(()=>l()&&!s()||r(I)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(I)),P=ee(null);Ye(()=>{var Z,X,oe;(Z=r(P))==null||Z.setIsAuto(r(y)),(X=r(P))==null||X.setIsLive(r(S)),(oe=r(P))==null||oe.setCaptions(e.captions)});let E=ee(pe([[]]));Bt(()=>{O(P,pe(new Qc().subscribe()));let Z=r(P).captionsPrepared$.subscribe(X=>{O(E,pe(X))});return()=>{var X;(X=r(P))==null||X.destroy(),Z.unsubscribe()}}),Bt(()=>{if(r(y)){let Z=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else p.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=qy();let z;var Y=h(V);{var U=Z=>{var X=zy();let oe;var ce=h(X),le=h(ce);{var Ve=J=>{var Le=Hy(),j=h(Le),N=h(j,!0);g(j),g(Le),k(Ne=>{var ne;ot(j,`font-size: ${(ne=r(A))!=null?ne:""}px`),fe(N,Ne)},[()=>H("subtitles_auto_caption")]),b(J,Le)},Me=(J,Le)=>{{var j=Ne=>{var ne=ze(),ke=ve(ne);bi(ke,17,()=>r(E),$l,(Re,ue)=>{var D=Fy(),de=h(D);bi(de,21,()=>r(ue),({value:Ee,timeAppeared:We})=>We,(Ee,We)=>{let lt=()=>r(We).value,Ae=()=>r(We).timeAppeared;var $e=ze(),Pe=ve($e);{var nt=vt=>{var et=Xn();k(()=>fe(et,lt())),b(vt,et)};R(Pe,vt=>{(!Ae()||Ae()<=e.position)&&vt(nt)})}b(Ee,$e)}),g(de),g(D),k(()=>{var Ee;return ot(de,`font-size: ${(Ee=r(A))!=null?Ee:""}px`)}),b(Re,D)}),b(Ne,ne)},N=Ne=>{var ne=ze(),ke=ve(ne);bi(ke,17,()=>e.captions,({value:Re})=>Re,(Re,ue)=>{let D=()=>r(ue).value;var de=Uy(),Ee=h(de),We=h(Ee,!0);g(Ee),g(de),k(()=>{var lt;ot(Ee,`font-size: ${(lt=r(A))!=null?lt:""}px`),fe(We,D())}),b(Re,de)}),b(Ne,ne)};R(J,Ne=>{var ne;r(y)&&((ne=r(E))!=null&&ne.length)?Ne(j):Ne(N,!1)},Le)}};R(le,J=>{r(y)&&d()?J(Ve):J(Me,!1)})}g(ce),g(X),k(J=>{var Le;oe=te(X,1,"subtitles-caption svelte-c2x749",null,oe,J),ot(X,`--subtitles-caption-margin: ${(Le=r(T))!=null?Le:""}%`)},[()=>({mobile:l()})]),b(Z,X)};R(Y,Z=>{var X;(e.captions.length||(X=r(E))!=null&&X.length)&&Z(U)})}g(V),k(Z=>z=te(V,1,"subtitles-container svelte-c2x749",null,z,Z),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),b(t,V),K(),o()}var Wy=L('<div class="text svelte-raurnb"> </div>'),Qy=L('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),Gy={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 fd(t,e){q(e,!0),Q(t,Gy);let i=zt();var o=Qy();let n;var a=M(h(o),2);{var s=d=>{var l=Wy(),u=h(l);g(l),k(()=>{var f;return fe(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),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),K()}var Yy=be('<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 Wf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i})),b(t,o)}var jy=L('<div class="container svelte-13zpvm8"><!></div>'),Zy={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 md(t){Q(t,Zy);var e=jy(),i=h(e);Wf(i,{}),g(e),b(t,e)}var Xy=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),Jy={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {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, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {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-1xnh9dd {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, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function vd(t,e){q(e,!0),Q(t,Jy);let i=Te(),o=zt(),n=i.ui.startedByKeyboard$,a=H("tooltip_play"),s=p=>{let $=p.code;["Enter","Space"].includes($)&&(p.stopPropagation(),p.preventDefault(),n.set(!0),e.startVideo())},d=p=>{p.stopPropagation(),e.startVideo()};var l=Xy();let u;l.__click=d;var f=h(l);f.__keydown=s,Oe(f,"aria-label",a);var _=M(h(f),2);return ns(_,{}),g(f),g(l),k(p=>{u=te(l,1,"container svelte-1xnh9dd",null,u,p),ot(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),K({handlePressKey:s,handleClick:d})}at(["click","keydown"]);var e4=L("<div> </div>"),t4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
275
280
  0deg,
276
281
  rgba(0, 0, 0, 0) 0%,
277
282
  rgba(0, 0, 0, 0.02) 19%,
278
283
  rgba(0, 0, 0, 0.10) 34%,
279
284
  rgba(0, 0, 0, 0.40) 60%,
280
285
  rgba(0, 0, 0, 0.60) 100%
281
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function fp(t,e){if(new.target)return k({component:fp,...t});E(e,!0),ne(t,q2);let i=p(e,"title",7,""),o=p(e,"isHidden",7,!1);var n=W2(),r=x(n,!0);return b(n),R(()=>{re(n,"hidden",o()),ke(r,i())}),w(t,n),P({get title(){return i()},set title(l=""){i(l),u()},get isHidden(){return o()},set isHidden(l=!1){o(l),u()},$set:M,$on:(l,d)=>A(e,l,d)})}var K2=F('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),Q2=F('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),G2=F('<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),Y2=F('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),j2=F('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),Z2={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 mp(t,e){if(new.target)return k({component:mp,...t});E(e,!0),ne(t,Z2);let i=p(e,"startTime",7),o=p(e,"onTimerOver",7),n=ue(""),r=ue(""),l=ue(""),d=ue(""),a,c=T=>String(T).padStart(2,"0"),f=T=>{let U=Math.floor(T/86400);U&&(T-=U*86400,Y(n,Ae(c(U))));let K=Math.floor(T/3600);Y(r,Ae(c(K)));let H=Math.floor(T/60)%60;Y(l,Ae(c(H)));let G=T%60;Y(d,Ae(c(G)))},g=()=>{let T=Math.floor(Date.now()/1e3),U=i()-T;f(U),U>=1?a=requestAnimationFrame(g):o()()};Kt(()=>{a=requestAnimationFrame(g)}),ar(()=>{cancelAnimationFrame(a)});var m=j2(),h=x(m);{var _=T=>{var U=K2(),K=Ie(U),H=x(K),G=x(H,!0);b(H);var J=O(H,2),de=x(J,!0);b(J),b(K);var te=O(K,2),xe=x(te,!0);b(te),R((Ce,Q)=>{ke(G,s(n)),ke(de,Ce),ke(xe,Q)},[()=>ee("waiting_live_day_value"),()=>ee("waiting_live_colon")]),w(T,U)};W(h,T=>{s(n)&&T(_)})}var y=O(h,2);{var S=T=>{var U=Q2(),K=Ie(U),H=x(K),G=x(H,!0);b(H);var J=O(H,2),de=x(J,!0);b(J),b(K);var te=O(K,2),xe=x(te,!0);b(te),R((Ce,Q)=>{ke(G,s(r)),ke(de,Ce),ke(xe,Q)},[()=>ee("waiting_live_hour_value"),()=>ee("waiting_live_colon")]),w(T,U)};W(y,T=>{s(r)&&T(S)})}var L=O(y,2);{var B=T=>{var U=G2(),K=Ie(U),H=x(K),G=x(H,!0);b(H);var J=O(H,2),de=x(J,!0);b(J),b(K);var te=O(K,2),xe=x(te,!0);b(te),R((Ce,Q)=>{ke(G,s(l)),ke(de,Ce),ke(xe,Q)},[()=>ee("waiting_live_minute_value"),()=>ee("waiting_live_colon")]),w(T,U)};W(L,T=>{s(l)&&T(B)})}var V=O(L,2);{var N=T=>{var U=Y2(),K=x(U),H=x(K,!0);b(K);var G=O(K,2),J=x(G,!0);b(G),b(U),R(de=>{ke(H,s(d)),ke(J,de)},[()=>ee("waiting_live_second_value")]),w(T,U)};W(V,T=>{s(d)&&T(N)})}return b(m),w(t,m),P({get startTime(){return i()},set startTime(T){i(T),u()},get onTimerOver(){return o()},set onTimerOver(T){o(T),u()},$set:M,$on:(T,U)=>A(e,T,U)})}var X2=Le('<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 vp(t,e){if(new.target)return k({component:vp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=X2();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(4),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var J2=F('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),e4=F('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),t4=F('<div class="waiting-container svelte-15pewff"><!></div>'),i4={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 Ol(t,e){if(new.target)return k({component:Ol,...t});E(e,!0),ne(t,i4);let i=p(e,"thumbUrl",7),o=p(e,"startTime",7),n=ue(!1);rt(()=>{Y(n,Ae(o()===void 0||o()<Math.floor(Date.now()/1e3)))});var r=t4(),l=x(r);{var d=c=>{var f=J2(),g=x(f),m=x(g);vp(m,{}),b(g);var h=O(g,2),_=x(h,!0);b(h),b(f),R(y=>ke(_,y),[()=>ee("waiting_live_upcoming_title")]),w(c,f)},a=c=>{var f=e4(),g=x(f),m=x(g,!0);b(g);var h=O(g,2);let _=$(()=>o()||0);mp(h,{get startTime(){return s(_)},onTimerOver:()=>Y(n,!0)}),b(f),R(y=>ke(m,y),[()=>ee("waiting_live_timer_title")]),w(c,f)};W(l,c=>{s(n)?c(d):c(a,!1)})}return b(r),R(()=>fe(r,"style",`background-image: url(${s(n)?"":i()})`)),w(t,r),P({get thumbUrl(){return i()},set thumbUrl(c){i(c),u()},get startTime(){return o()},set startTime(c){o(c),u()},$set:M,$on:(c,f)=>A(e,c,f)})}var o4=F('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),n4={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 Ys(t,e){if(new.target)return k({component:Ys,...t});E(e,!0),ne(t,n4);let i=p(e,"thumbUrl",7,""),o=p(e,"kind",7),n={recover:ee("waiting_live_recover_title"),record:ee("waiting_record_title")},r=$(()=>n[o()]||"");var l=o4(),d=x(l),a=x(d);Us(a,{style:"position: static; transform: translate(0, 0)"});var c=O(a,2),f=x(c,!0);return b(c),b(d),b(l),R(()=>{fe(l,"style",`background-image: url('${i()}')`),ke(f,s(r))}),w(t,l),P({get thumbUrl(){return i()},set thumbUrl(g=""){i(g),u()},get kind(){return o()},set kind(g){o(g),u()},$set:M,$on:(g,m)=>A(e,g,m)})}var r4=Le('<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 gp(t,e){if(new.target)return k({component:gp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=r4();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var s4=F('<div class="select-icon svelte-124aexk"><!></div>'),a4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Hl(t,e){if(new.target)return k({component:Hl,...t});E(e,!1),ne(t,a4);var i=s4(),o=x(i);return gp(o,{}),b(i),w(t,i),P({$set:M,$on:(n,r)=>A(e,n,r)})}var l4=(t,e)=>{t.stopPropagation(),e().selectItem(e().value)},d4=(t,e)=>{al(t,()=>e().selectItem(e().value))},c4=F('<p class="label svelte-1t7rx2m"> </p>'),u4=F('<p class="sublabel svelte-1t7rx2m"> </p>'),p4=F('<li class="item" role="menuitem" tabindex="0"><!> <div class="menu-item-value svelte-1t7rx2m"><!> <!></div></li>'),f4={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-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Qf(t,e){Q(t,t4);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=e4();let a;var s=h(n,!0);g(n),k(d=>{a=te(n,1,"title svelte-1bcvcf2",null,a,d),fe(s,i())},[()=>({hidden:o()})]),b(t,n)}var i4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),o4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),n4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),r4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),s4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),a4={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 Gf(t,e){q(e,!0),Q(t,a4);let i=ee(""),o=ee(""),n=ee(""),a=ee(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let E=Math.floor(P/86400);E&&(P-=E*86400,O(i,pe(d(E))));let T=Math.floor(P/3600);O(o,pe(d(T)));let V=Math.floor(P/60)%60;O(n,pe(d(V)));let z=P%60;O(a,pe(d(z)))},u=()=>{let P=Math.floor(Date.now()/1e3),E=e.startTime-P;l(E),E>=1?s=requestAnimationFrame(u):e.onTimerOver()};Bt(()=>{s=requestAnimationFrame(u)}),er(()=>{cancelAnimationFrame(s)});var f=s4(),_=h(f);{var p=P=>{var E=i4(),T=ve(E),V=h(T),z=h(V,!0);g(V);var Y=M(V,2),U=h(Y,!0);g(Y),g(T);var Z=M(T,2),X=h(Z,!0);g(Z),k((oe,ce)=>{fe(z,r(i)),fe(U,oe),fe(X,ce)},[()=>H("waiting_live_day_value"),()=>H("waiting_live_colon")]),b(P,E)};R(_,P=>{r(i)&&P(p)})}var $=M(_,2);{var w=P=>{var E=o4(),T=ve(E),V=h(T),z=h(V,!0);g(V);var Y=M(V,2),U=h(Y,!0);g(Y),g(T);var Z=M(T,2),X=h(Z,!0);g(Z),k((oe,ce)=>{fe(z,r(o)),fe(U,oe),fe(X,ce)},[()=>H("waiting_live_hour_value"),()=>H("waiting_live_colon")]),b(P,E)};R($,P=>{r(o)&&P(w)})}var y=M($,2);{var S=P=>{var E=n4(),T=ve(E),V=h(T),z=h(V,!0);g(V);var Y=M(V,2),U=h(Y,!0);g(Y),g(T);var Z=M(T,2),X=h(Z,!0);g(Z),k((oe,ce)=>{fe(z,r(n)),fe(U,oe),fe(X,ce)},[()=>H("waiting_live_minute_value"),()=>H("waiting_live_colon")]),b(P,E)};R(y,P=>{r(n)&&P(S)})}var I=M(y,2);{var A=P=>{var E=r4(),T=h(E),V=h(T,!0);g(T);var z=M(T,2),Y=h(z,!0);g(z),g(E),k(U=>{fe(V,r(a)),fe(Y,U)},[()=>H("waiting_live_second_value")]),b(P,E)};R(I,P=>{r(a)&&P(A)})}g(f),b(t,f),K()}var l4=be('<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 Yf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=l4();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i})),b(t,o)}var d4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),c4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),u4=L('<div class="waiting-container svelte-15pewff"><!></div>'),p4={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 gd(t,e){q(e,!0),Q(t,p4);let i=ee(!1);Ye(()=>{O(i,pe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=u4(),n=h(o);{var a=d=>{var l=d4(),u=h(l),f=h(u);Yf(f,{}),g(u);var _=M(u,2),p=h(_,!0);g(_),g(l),k($=>fe(p,$),[()=>H("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=c4(),u=h(l),f=h(u,!0);g(u);var _=M(u,2);let p=m(()=>e.startTime||0);Gf(_,{get startTime(){return r(p)},onTimerOver:()=>O(i,!0)}),g(l),k($=>fe(f,$),[()=>H("waiting_live_timer_title")]),b(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>ot(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),K()}var f4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),m4={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 sa(t,e){q(e,!0),Q(t,m4);let i=v(e,"thumbUrl",3,""),o={recover:H("waiting_live_recover_title"),record:H("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=f4(),s=h(a),d=h(s);Xs(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),u=h(l,!0);g(l),g(s),g(a),k(()=>{ot(a,`background-image: url('${i()}')`),fe(u,r(n))}),b(t,a),K()}var v4=be('<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 jf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=v4();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),b(t,o)}var g4=L('<div class="select-icon svelte-124aexk"><!></div>'),h4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function hd(t){Q(t,h4);var e=g4(),i=h(e);jf(i,{}),g(e),b(t,e)}var _4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},b4=(t,e)=>{Da(t,()=>e.item.selectItem(e.item.value))},$4=L("<p> </p>"),y4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),x4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),w4={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;
282
287
 
283
288
  /**
284
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
285
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.
286
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
287
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function hp(t,e){if(new.target)return k({component:hp,...t});E(e,!0),ne(t,f4);let i=p(e,"isMobile",7,!1),o=p(e,"item",7);var n=p4();n.__click=[l4,o],n.__keydown=[d4,o];var r=x(n);{var l=h=>{Hl(h,{})};W(r,h=>{o().selected&&h(l)})}var d=O(r,2),a=x(d);{var c=h=>{var _=Ze(),y=Ie(_);Hi(y,()=>o().valueComponent,(S,L)=>{L(S,hs(()=>{var B;return(B=o().valueComponentParams)!=null?B:{}}))}),w(h,_)},f=h=>{var _=c4(),y=x(_,!0);b(_),R(()=>{var S;re(_,"mobile",i()),ke(y,(S=o().label)!=null?S:o().value)}),w(h,_)};W(a,h=>{o().valueComponent?h(c):h(f,!1)})}var g=O(a,2);{var m=h=>{var _=u4(),y=x(_,!0);b(_),R(()=>ke(y,o().sublabel)),w(h,_)};W(g,h=>{o().sublabel&&h(m)})}return b(d),b(n),R(h=>{fe(n,"data-value",o().value),fe(n,"aria-label",h),re(n,"mobile",i()),fe(d,"data-selected",o().selected),re(d,"submenu-value-mobile",i())},[()=>{var h,_;return(_=(h=o().ariaLabel)!=null?h:o().label)!=null?_:o().value.toString()}]),w(t,n),P({get isMobile(){return i()},set isMobile(h=!1){i(h),u()},get item(){return o()},set item(h){o(h),u()},$set:M,$on:(h,_)=>A(e,h,_)})}bt(["click","keydown"]);var m4=F('<li class="item" role="menuitem" tabindex="0" aria-haspopup="true"><!> <div class="menu-item-value"><!></div></li>');function _p(t,e){if(new.target)return k({component:_p,...t});E(e,!0);let i=p(e,"isMobile",7,!1),o=p(e,"item",7),n=p(e,"openSubMenuList",7),r=p(e,"refMenuItems",15),l=$(()=>()=>n()(o().children)),d=$(()=>y=>zc(y,s(l)));var a=m4();a.__click=function(...y){var S;(S=s(l))==null||S.apply(this,y)},a.__keydown=function(...y){var S;(S=s(d))==null||S.apply(this,y)};var c=x(a);{var f=y=>{Hl(y,{})};W(c,y=>{o().selected&&y(f)})}var g=O(c,2),m=x(g);{var h=y=>{var S=Ze();let L=$(()=>o().valueComponent);var B=Ie(S);Hi(B,()=>s(L),(V,N)=>{N(V,hs(()=>{var T;return(T=o().valueComponentParams)!=null?T:{}}))}),w(y,S)},_=y=>{var S=rr();R(()=>ke(S,o().label)),w(y,S)};W(m,y=>{o().valueComponent?y(h):y(_,!1)})}return b(g),b(a),xt(a,y=>r(r()[o().id]=y,!0),()=>{var y;return(y=r())==null?void 0:y[o().id]}),R(()=>{var y;fe(a,"aria-label",(y=o().ariaLabel)!=null?y:o().label),fe(a,"data-testid",o().id),re(a,"mobile",i()),re(a,"bottomBordered",o().bottomBordered),re(g,"submenu-value-mobile",i())}),w(t,a),P({get isMobile(){return i()},set isMobile(y=!1){i(y),u()},get item(){return o()},set item(y){o(y),u()},get openSubMenuList(){return n()},set openSubMenuList(y){n(y),u()},get refMenuItems(){return r()},set refMenuItems(y){r(y),u()},$set:M,$on:(y,S)=>A(e,y,S)})}bt(["click","keydown"]);var Dr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var g4=(t,e,i)=>{mh(t,e(),i())},h4=(t,e)=>{t.stopPropagation(),e()()},_4=(t,e)=>{$d(t)&&(cr(t),e()())},$4=F('<div class="sub-menu menu svelte-7dfsuh"><ul class="items svelte-7dfsuh" role="menu"><li class="item header back svelte-7dfsuh" role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),b4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Zf(t,e){q(e,!0),Q(t,w4);let i=v(e,"isMobile",3,!1);var o=x4();let n;o.__click=[_4,e],o.__keydown=[b4,e];var a=h(o);{var s=w=>{hd(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var u=h(d);{var f=w=>{var y=ze(),S=ve(y);Pi(S,()=>e.item.valueComponent,(I,A)=>{A(I,es(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},_=w=>{var y=$4();let S;var I=h(y,!0);g(y),k(A=>{var P;S=te(y,1,"label svelte-1t7rx2m",null,S,A),fe(I,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(u,w=>{e.item.valueComponent?w(f):w(_,!1)})}var p=M(u,2);{var $=w=>{var y=y4(),S=h(y,!0);g(y),k(()=>fe(S,e.item.sublabel)),b(w,y)};R(p,w=>{e.item.sublabel&&w($)})}g(d),g(o),k((w,y,S)=>{n=te(o,1,"item",null,n,w),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",y),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),K()}at(["click","keydown"]);var S4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Xf(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>y=>Ic(y,r(n)));var s=S4();let d;s.__click=function(...y){var S;(S=r(n))==null||S.apply(this,y)},s.__keydown=function(...y){var S;(S=r(a))==null||S.apply(this,y)};var l=h(s);{var u=y=>{hd(y,{})};R(l,y=>{e.item.selected&&y(u)})}var f=M(l,2);let _;var p=h(f);{var $=y=>{var S=ze();let I=m(()=>e.item.valueComponent);var A=ve(S);Pi(A,()=>r(I),(P,E)=>{E(P,es(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),b(y,S)},w=y=>{var S=Xn();k(()=>fe(S,e.item.label)),b(y,S)};R(p,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(s),ut(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,S)=>{var I;d=te(s,1,"item",null,d,y),Oe(s,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Oe(s,"data-testid",e.item.id),_=te(f,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),K()}at(["click","keydown"]);var wr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var T4=(t,e)=>{gh(t,e.returnFromSubMenu,e.closeSettingsMenu)},I4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},k4=(t,e)=>{Bl(t)&&(or(t),e.returnFromSubMenu())},E4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),A4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
288
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 {
289
294
  /**
290
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.
@@ -294,16 +299,16 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
294
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
295
300
  1px
296
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,
297
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function $p(t,e){if(new.target)return k({component:$p,...t});E(e,!0),ne(t,b4);let[i,o]=Xe(),n=()=>I(V,"$isFullscreen",i),r=()=>I(N,"$playerSize",i),l=p(e,"id",7),d=p(e,"isMobile",7,!1),a=p(e,"playerControlsHeight",7,0),c=p(e,"returnFromSubMenu",7),f=p(e,"ariaLabelReturnFromSubMenu",23,()=>ee("aria_label_submenu_back")),g=p(e,"title",7),m=p(e,"listRef",15),h=p(e,"closeSettingsMenu",7),_=p(e,"openSubMenuList",7),y=p(e,"items",7),S=p(e,"minWidth",7),L=p(e,"refMenuItems",7);Kt(()=>{let j=y().findIndex(ae=>ae.selected);m().children[j+1].focus()});let B=He(),V=B.ui.isFullscreen,N=B.ui.playerSize,T=ue(void 0),U=ue(0),K=ue(0),H=$(()=>d()&&n()?`max-height: ${Math.round(r().height*.6)}px`:d()?"":`max-height: ${r().height-32-s(K)-a()}px; overflow: auto;`),G=$(()=>Math.max(S(),s(U)));var J=$4(),de=x(J);de.__keydown=[g4,c,h];var te=x(de);te.__click=[h4,c],te.__keydown=[_4,c];var xe=x(te);Cs(xe,{direction:"left"});var Ce=O(xe,2),Q=x(Ce,!0);b(Ce),b(te),xt(te,j=>Y(T,j),()=>s(T));var pe=O(te,2);Ci(pe,17,y,Ji,(j,ae)=>{var q=Ze(),Ge=Ie(q);{var Re=ce=>{hp(ce,{get item(){return s(ae)},get isMobile(){return d()}})},X=ce=>{var Be=Ze(),Z=Ie(Be);{var De=le=>{_p(le,{get isMobile(){return d()},get item(){return s(ae)},get openSubMenuList(){return _()},get refMenuItems(){return L()}})};W(Z,le=>{s(ae).type==="OPEN_SUB_MENU"&&le(De)},!0)}w(ce,Be)};W(Ge,ce=>{s(ae).type==="SELECT_VALUE"?ce(Re):ce(X,!1)})}w(j,q)}),b(de),xt(de,j=>m(j),()=>m()),b(J),R(()=>{fe(J,"data-testid",`sub-menu-${l()}`),fe(J,"style",`min-width: ${s(G)}px`),re(J,"desktop",!d()),re(J,"mobile",d()),fe(de,"style",s(H)),re(de,"mobile",d()),fe(te,"aria-label",f()),re(te,"mobile",d()),ke(Q,g())}),Xr(te,"clientWidth",j=>Y(U,j)),Xr(te,"clientHeight",j=>Y(K,j)),w(t,J);var he=P({get id(){return l()},set id(j){l(j),u()},get isMobile(){return d()},set isMobile(j=!1){d(j),u()},get playerControlsHeight(){return a()},set playerControlsHeight(j=0){a(j),u()},get returnFromSubMenu(){return c()},set returnFromSubMenu(j){c(j),u()},get ariaLabelReturnFromSubMenu(){return f()},set ariaLabelReturnFromSubMenu(j=ee("aria_label_submenu_back")){f(j),u()},get title(){return g()},set title(j){g(j),u()},get listRef(){return m()},set listRef(j){m(j),u()},get closeSettingsMenu(){return h()},set closeSettingsMenu(j){h(j),u()},get openSubMenuList(){return _()},set openSubMenuList(j){_(j),u()},get items(){return y()},set items(j){y(j),u()},get minWidth(){return S()},set minWidth(j){S(j),u()},get refMenuItems(){return L()},set refMenuItems(j){L(j),u()},$set:M,$on:(j,ae)=>A(e,j,ae)});return o(),he}bt(["keydown","click"]);import{noop as Xh}from"@vkontakte/videoplayer-shared/es2018";var y4=(t,e)=>zc(t,e()),x4=(t,e)=>{t.stopPropagation(),e()()},w4=F('<div class="value svelte-1ikfjte"> </div>'),C4=F('<li class="item" role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),S4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function bp(t,e){if(new.target)return k({component:bp,...t});E(e,!0),ne(t,S4);let i=p(e,"id",7),o=p(e,"isMobile",7,!1),n=p(e,"onClick",7,Xh),r=p(e,"label",7),l=p(e,"ariaLabel",7),d=p(e,"value",7),a=p(e,"valueComponent",7,void 0),c=p(e,"ref",15),f=p(e,"icon",7);var g=C4();g.__click=[x4,n],g.__keydown=[y4,n];var m=x(g),h=x(m);{var _=T=>{Gs(T,{get icon(){return f()}})},y=T=>{var U=Ze();let K=$(f);var H=Ie(U);Hi(H,()=>s(K),(G,J)=>{J(G,{})}),w(T,U)};W(h,T=>{typeof f()=="string"?T(_):T(y,!1)})}b(m);var S=O(m,2),L=x(S,!0);b(S);var B=O(S,2);{var V=T=>{var U=Ze();let K=$(a);var H=Ie(U);Hi(H,()=>s(K),(G,J)=>{J(G,{})}),w(T,U)},N=T=>{var U=w4(),K=x(U,!0);b(U),R(()=>ke(K,d())),w(T,U)};W(B,T=>{a()?T(V):T(N,!1)})}return b(g),xt(g,T=>c(T),()=>c()),R(()=>{fe(g,"aria-label",l()),fe(g,"data-testid",i()),re(g,"mobile",o()),ke(L,r())}),w(t,g),P({get id(){return i()},set id(T){i(T),u()},get isMobile(){return o()},set isMobile(T=!1){o(T),u()},get onClick(){return n()},set onClick(T=Xh){n(T),u()},get label(){return r()},set label(T){r(T),u()},get ariaLabel(){return l()},set ariaLabel(T){l(T),u()},get value(){return d()},set value(T){d(T),u()},get valueComponent(){return a()},set valueComponent(T=void 0){a(T),u()},get ref(){return c()},set ref(T){c(T),u()},get icon(){return f()},set icon(T){f(T),u()},$set:M,$on:(T,U)=>A(e,T,U)})}bt(["click","keydown"]);import{noop as yp}from"@vkontakte/videoplayer-shared/es2018";var T4=(t,e)=>{al(t,()=>e())},I4=F('<div class="icon icon-error-stub"><div class="inner"></div></div>'),k4=F('<img class="icon" aria-hidden="true">'),E4=F('<li class="item" role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),P4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function xp(t,e){if(new.target)return k({component:xp,...t});E(e,!0),ne(t,P4);let i=p(e,"id",7),o=p(e,"isMobile",7,!1),n=p(e,"onClick",7,yp),r=p(e,"closeSettings",7,yp),l=p(e,"label",7),d=p(e,"ariaLabel",7),a=p(e,"icon",7),c=ue(!1),f=()=>{Y(c,!0)},g=V=>{V==null||V.stopPropagation(),n()(),r()()};var m=E4();m.__click=g,m.__keydown=[T4,g];var h=x(m),_=x(h);{var y=V=>{var N=Ze(),T=Ie(N);{var U=H=>{var G=I4();w(H,G)},K=H=>{var G=k4();R(()=>fe(G,"src",a())),Ft("error",G,f),ca(G),w(H,G)};W(T,H=>{s(c)?H(U):H(K,!1)})}w(V,N)},S=V=>{var N=Ze();let T=$(a);var U=Ie(N);Hi(U,()=>s(T),(K,H)=>{H(K,{})}),w(V,N)};W(_,V=>{typeof a()=="string"?V(y):V(S,!1)})}b(h);var L=O(h,2),B=x(L,!0);return b(L),b(m),R(()=>{var V;fe(m,"aria-label",(V=d())!=null?V:l()),fe(m,"data-testid",i()),re(m,"mobile",o()),ke(B,l())}),w(t,m),P({get id(){return i()},set id(V){i(V),u()},get isMobile(){return o()},set isMobile(V=!1){o(V),u()},get onClick(){return n()},set onClick(V=yp){n(V),u()},get closeSettings(){return r()},set closeSettings(V=yp){r(V),u()},get label(){return l()},set label(V){l(V),u()},get ariaLabel(){return d()},set ariaLabel(V){d(V),u()},get icon(){return a()},set icon(V){a(V),u()},$set:M,$on:(V,N)=>A(e,V,N)})}bt(["click","keydown"]);import{noop as Jh}from"@vkontakte/videoplayer-shared/es2018";var A4=F('<div class="toggle_wrap svelte-17wbjko"><div class="toggle svelte-17wbjko"></div> <div class="toggle-label svelte-17wbjko"></div></div>'),M4={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function wp(t,e){if(new.target)return k({component:wp,...t});E(e,!0),ne(t,M4);let i=p(e,"enabled",7,!1);var o=A4(),n=x(o);return Me(2),b(o),R(()=>re(n,"on",i())),w(t,o),P({get enabled(){return i()},set enabled(r=!1){i(r),u()},$set:M,$on:(r,l)=>A(e,r,l)})}var L4=(t,e,i)=>{vh(t,e(),o=>i()(o))},V4=(t,e,i)=>{t.stopPropagation(),e()(!i())},R4=F('<div class="switch-wrapper"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),N4=F('<li class="item switch-item" role="menuitem" tabindex="0"><!></li>');function Cp(t,e){if(new.target)return k({component:Cp,...t});E(e,!0);let i=p(e,"id",7),o=p(e,"isMobile",7,!1),n=p(e,"onClick",7,Jh),r=p(e,"label",7),l=p(e,"ariaLabel",7),d=p(e,"icon",7),a=p(e,"enabled",7,!1),c=p(e,"tooltipText",7,void 0),f=p(e,"maxTooltipWidth",7,void 0);var g=N4();g.__click=[V4,n,a],g.__keydown=[L4,a,n];var m=x(g);return zs(m,{get content(){return c()},get isMobile(){return o()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return f()},children:(h,_)=>{var y=R4(),S=x(y),L=x(S);{var B=K=>{Gs(K,{get icon(){return d()}})},V=K=>{var H=Ze();let G=$(d);var J=Ie(H);Hi(J,()=>s(G),(de,te)=>{te(de,{})}),w(K,H)};W(L,K=>{typeof d()=="string"?K(B):K(V,!1)})}b(S);var N=O(S,2),T=x(N,!0);b(N);var U=O(N,2);wp(U,{get enabled(){return a()}}),b(y),R(()=>{re(y,"mobile",o()),ke(T,r())}),w(h,y)},$$slots:{default:!0}}),b(g),R(()=>{var h;fe(g,"aria-label",(h=l())!=null?h:r()),fe(g,"data-testid",i()),re(g,"mobile",o())}),w(t,g),P({get id(){return i()},set id(h){i(h),u()},get isMobile(){return o()},set isMobile(h=!1){o(h),u()},get onClick(){return n()},set onClick(h=Jh){n(h),u()},get label(){return r()},set label(h){r(h),u()},get ariaLabel(){return l()},set ariaLabel(h){l(h),u()},get icon(){return d()},set icon(h){d(h),u()},get enabled(){return a()},set enabled(h=!1){a(h),u()},get tooltipText(){return c()},set tooltipText(h=void 0){c(h),u()},get maxTooltipWidth(){return f()},set maxTooltipWidth(h=void 0){f(h),u()},$set:M,$on:(h,_)=>A(e,h,_)})}bt(["click","keydown"]);import{isValidURL as sx,VideoQuality as c_}from"@vkontakte/videoplayer-shared/es2018";var e_=()=>{let t=ue(Ae([])),e=$(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{Y(t,Ae(s(t).slice(0,-1)))},popAllSubMenus:()=>{Y(t,Ae([]))}}};var B4=F('<div class="quality-icon svelte-t2qk8t"><!></div>'),D4=F('<div class="quality-label svelte-t2qk8t"><span class="svelte-t2qk8t"> </span> <!></div>'),O4={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function js(t,e){if(new.target)return k({component:js,...t});E(e,!0),ne(t,O4);let i=p(e,"quality",7),o=p(e,"label",7),n=p(e,"isMobile",7),r=p(e,"isSubCase",7,!1),l=$(()=>su(i()));var d=D4(),a=x(d),c=x(a,!0);b(a);var f=O(a,2);{var g=m=>{var h=B4();let _=$(()=>s(l));var y=x(h);Hi(y,()=>s(_),(S,L)=>{L(S,{})}),b(h),w(m,h)};W(f,m=>{s(l)&&!n()&&m(g)})}return b(d),R(()=>{re(a,"sub",!r()),re(a,"quality",!n()),ke(c,o())}),w(t,d),P({get quality(){return i()},set quality(m){i(m),u()},get label(){return o()},set label(m){o(m),u()},get isMobile(){return n()},set isMobile(m){n(m),u()},get isSubCase(){return r()},set isSubCase(m=!1){r(m),u()},$set:M,$on:(m,h)=>A(e,m,h)})}import{VideoQuality as H4}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as t_}from"@vkontakte/videoplayer-core/es2018";var i_=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},o_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=i_({quality:t,availableQualities:e});return i?t===t_.INVARIANT?ee("auto_quality_invariant"):ee("auto_quality",{actual:o}):o},n_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===t_.INVARIANT?i:`${i}${i_({quality:t,availableQualities:e})}`:"...";var F4=F('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),U4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Sa(t,e){if(new.target)return k({component:Sa,...t});E(e,!0),ne(t,U4);let[i,o]=Xe(),n=()=>I(f,"$currentQuality$",i),r=()=>I(g,"$availableQualities$",i),l=()=>I(m,"$isMobile$",i),d=He(),a=p(e,"selected",7),c=p(e,"prefix",7),f=d.state.currentQuality$,g=d.state.availableQualities$,m=d.ui.isMobile,h=" \xB7 ",_=$(()=>c()+(a()&&n()!==H4.INVARIANT?h:"")),y=$(()=>n_({prefix:s(_),quality:n(),availableQualities:r(),onlyPrefix:!a()}));var S=F4(),L=x(S);let B=$(()=>a()?n():void 0);js(L,{get quality(){return s(B)},get label(){return s(y)},get isMobile(){return l()},isSubCase:!0}),b(S),w(t,S);var V=P({get selected(){return a()},set selected(N){a(N),u()},get prefix(){return c()},set prefix(N){c(N),u()},$set:M,$on:(N,T)=>A(e,N,T)});return o(),V}var z4=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},W4={br:!0,span:!0},km=(t,e={})=>{var d,a,c,f,g,m,h;if(!t)return t;let i={...W4,...e},o=Object.keys(i);if(!o.length)return t;let n=z4(o),r=[],l=0;for(let _ of t.matchAll(n)){let y=_[0],S=((d=_.groups)==null?void 0:d.keyhtml)||((a=_.groups)==null?void 0:a.keyi18n)||((c=_.groups)==null?void 0:c.keyhtmlself)||((f=_.groups)==null?void 0:f.keyi18nself)||"",{index:L}=_;if(!i[S]){r.push(t.slice(l,L)),l=L+y.length;continue}let B=(g=_.groups)!=null&&g.childrenhtml?km(_.groups.childrenhtml,i):"",V=(m=_.groups)!=null&&m.childrenhtml?y.replace(new RegExp((h=_.groups)==null?void 0:h.childrenhtml),()=>B||""):y;r.push(t.slice(l,L),V),l=L+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function Fl(t,e){if(new.target)return k({component:Fl,...t});E(e,!1);let i=p(e,"message",12),o=km(i());Nr();var n=Ze(),r=Ie(n);{var l=d=>{var a=Ze(),c=Ie(a);ld(c,()=>o,!1,!1),w(d,a)};W(r,d=>{o&&d(l)})}return w(t,n),P({get message(){return i()},set message(d){i(d),u()},$set:M,$on:(d,a)=>A(e,d,a)})}var q4=F('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),K4={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Sp(t,e){if(new.target)return k({component:Sp,...t});E(e,!1),ne(t,K4),Nr();var i=q4(),o=x(i);let n=Lr(()=>ee("quality_applience",{action:`<span>${ee("quality_applience_action")}</span>`}));return Fl(o,{get message(){return s(n)}}),b(i),w(t,i),P({$set:M,$on:(r,l)=>A(e,r,l)})}var s_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Sa,valueComponentParams:{prefix:ee("other_quality"),selected:o},children:"QUALITY"}},Em=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:ee("auto_quality_limit"),valueComponent:e?Sa:void 0,valueComponentParams:{prefix:ee("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),a_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Sp,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Pm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:ee("high_quality"),valueComponent:t?Sa:void 0,valueComponentParams:{prefix:ee("high_quality"),selected:i},sublabel:ee("high_quality_description")}),Am=({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:ee("traffic_saving_quality"),valueComponent:t?Sa:void 0,valueComponentParams:{prefix:ee("traffic_saving_quality"),selected:i},sublabel:ee("traffic_saving_quality_description")});var Tp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Ip=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Au(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return ee("audio_stream_display_language_label",{language:n,label:o});{let a=Tp(t,d);return ee("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Tp(t,d);return ee("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Tp(t,d);return ee("audio_stream_display_language_index",{language:n,index:a})}}let r=Tp(t,e);return ee("audio_stream_display_unknown",{index:r})};var Q4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:Em,selected:e&&!o&&!n||!1}),r.push({handler:Am,selected:o},{handler:Pm,selected:n}),{title:ee("submenu_quality"),id:"QUALITY_DETAILS",items:[a_(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),s_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:ee("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:js,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:ee("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Em,selected:((i=Ic())==null?void 0:i.type)==="auto_quality"},{handler:Am,selected:((o=Ic())==null?void 0:o.type)==="traffic_saving"},{handler:Pm,selected:((n=Ic())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:ee("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Ip(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:ee("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:ee("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},l_=({subMenuId:t,context:e})=>t?[Q4[t](e)]:[];var G4=Le('<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 kp(t,e){if(new.target)return k({component:kp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=G4();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var Y4=Le('<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 Ep(t,e){if(new.target)return k({component:Ep,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=Y4();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var j4=Le('<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 Pp(t,e){if(new.target)return k({component:Pp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=j4();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var Z4=Le('<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 Ap(t,e){if(new.target)return k({component:Ap,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=Z4();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var X4=Le('<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 Mp(t,e){if(new.target)return k({component:Mp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=X4();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var J4=Le('<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 kd(t,e){if(new.target)return k({component:kd,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=J4();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var ex=Le('<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 Lp(t,e){if(new.target)return k({component:Lp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=ex();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var tx=F('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),ix={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Vp(t,e){if(new.target)return k({component:Vp,...t});E(e,!0),ne(t,ix);let[i,o]=Xe(),n=()=>I(c,"$currentQuality$",i),r=()=>I(f,"$availableQualities$",i),l=()=>I(g,"$isAutoQualityEnabled$",i),d=()=>I(m,"$isMobile$",i),a=He(),c=a.state.currentQuality$,f=a.state.availableQualities$,g=a.state.isAutoQualityEnabled$,m=a.ui.isMobile,h=$(()=>o_({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var _=tx(),y=x(_);js(y,{get quality(){return n()},get label(){return s(h)},get isMobile(){return d()}}),b(_),w(t,_);var S=P({$set:M,$on:(L,B)=>A(e,L,B)});return o(),S}var nx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?ee("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:ee("aria_label_menu_quality",{actual:o}),icon:ml,label:ee("menu_quality"),value:e,valueComponent:Vp,weight:Dr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Dr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?ee("aria_label_submenu_traffic_saving_off"):`${ee("aria_label_submenu_traffic_saving_on")}. ${ee("traffic_saving_helper_text")}`,icon:kp,label:ee("menu_traffic_saving"),enabled:t,tooltipText:ee("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Ip(t,e);return{id:"AUDIO_LANGUAGES",weight:Dr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:ee("aria_label_menu_audio_languages",{actual:i}),icon:Ep,label:ee("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Dr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:ee("aria_label_menu_rate",{actual:i}),icon:Pp,label:ee("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Dr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:ee("aria_label_menu_subtitle",{actual:t.displayValue}),icon:vl,label:ee("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Dr.download,type:"CLICK",onClick:t,label:ee("download_video_caption"),ariaLabel:ee("aria_label_menu_download"),icon:Ap}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Dr.report,type:"CLICK",onClick:t,label:ee("menu_report"),ariaLabel:`${ee("menu_report")}. ${ee("aria_label_new_tab_alert")}`,icon:Mp,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Dr["copy-data"],type:"CLICK",onClick:t,label:ee("menu_copy_debug"),ariaLabel:ee("menu_copy_debug"),icon:kd,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Dr["save-trace-info"],type:"CLICK",onClick:t,label:ee("menu_save_debug"),ariaLabel:ee("menu_save_debug"),icon:kd,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Dr["debug-info"],type:"CLICK",onClick:t,label:e?ee("aria_label_menu_debug_overlay_disable"):ee("aria_label_menu_debug_overlay_enable"),ariaLabel:ee("menu_debug_overlay"),icon:Lp,isHiddenFor:["desktop"]})},d_=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>nx[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort($a)};var ax=(t,e)=>{Uc(t,e)},lx=F('<div class="item header svelte-17or3al"><div> </div> <div class="close svelte-17or3al"></div></div>'),dx=F('<div class="settings-menu menu svelte-17or3al" data-testid="settings-menu"><!> <ul class="items" role="menu"></ul></div>'),cx=F('<div class="settings-menu-container svelte-17or3al"><!> <!></div>'),ux={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 em(t,e){q(e,!0),Q(t,A4);let[i,o]=Ue(),n=()=>C(_,"$isFullscreen",i),a=()=>C(p,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),u=v(e,"listRef",15);Bt(()=>{let oe=e.items.findIndex(ce=>ce.selected);u().children[oe+1].focus()});let f=Te(),_=f.ui.isFullscreen,p=f.ui.playerSize,$=ee(void 0),w=ee(0),y=ee(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,r(w)));var A=E4();let P;var E=h(A);let T;E.__keydown=[T4,e];var V=h(E);let z;V.__click=[I4,e],V.__keydown=[k4,e];var Y=h(V);Ss(Y,{direction:"left"});var U=M(Y,2),Z=h(U,!0);g(U),g(V),ut(V,oe=>O($,oe),()=>r($));var X=M(V,2);bi(X,17,()=>e.items,$l,(oe,ce)=>{var le=ze(),Ve=ve(le);{var Me=Le=>{Zf(Le,{get item(){return r(ce)},get isMobile(){return s()}})},J=(Le,j)=>{{var N=Ne=>{Xf(Ne,{get isMobile(){return s()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Le,Ne=>{r(ce).type==="OPEN_SUB_MENU"&&Ne(N)},j)}};R(Ve,Le=>{r(ce).type==="SELECT_VALUE"?Le(Me):Le(J,!1)})}b(oe,le)}),g(E),ut(E,oe=>u(oe),()=>u()),g(A),k((oe,ce,le)=>{P=te(A,1,"sub-menu menu svelte-7dfsuh",null,P,oe),Oe(A,"data-testid",`sub-menu-${e.id}`),ot(A,`min-width: ${r(I)}px`),T=te(E,1,"items svelte-7dfsuh",null,T,ce),ot(E,r(S)),z=te(V,1,"item header back svelte-7dfsuh",null,z,le),Oe(V,"aria-label",l()),fe(Z,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Nr(V,"clientWidth",oe=>O(w,oe)),Nr(V,"clientHeight",oe=>O(y,oe)),b(t,A),K(),o()}at(["keydown","click"]);import{noop as P4}from"@vkontakte/videoplayer-shared/es2018";var M4=(t,e)=>Ic(t,e()),L4=(t,e)=>{t.stopPropagation(),e()()},V4=L('<div class="value svelte-1ikfjte"> </div>'),R4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),B4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function tm(t,e){q(e,!0),Q(t,B4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,P4),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=R4();let d;s.__click=[L4,o],s.__keydown=[M4,o];var l=h(s),u=h(l);{var f=I=>{ra(I,{get icon(){return e.icon}})},_=I=>{var A=ze();let P=m(()=>e.icon);var E=ve(A);Pi(E,()=>r(P),(T,V)=>{V(T,{})}),b(I,A)};R(u,I=>{typeof e.icon=="string"?I(f):I(_,!1)})}g(l);var p=M(l,2),$=h(p,!0);g(p);var w=M(p,2);{var y=I=>{var A=ze();let P=m(n);var E=ve(A);Pi(E,()=>r(P),(T,V)=>{V(T,{})}),b(I,A)},S=I=>{var A=V4(),P=h(A,!0);g(A),k(()=>fe(P,e.value)),b(I,A)};R(w,I=>{n()?I(y):I(S,!1)})}g(s),ut(s,I=>a(I),()=>a()),k(I=>{d=te(s,1,"item",null,d,I),Oe(s,"aria-label",e.ariaLabel),Oe(s,"data-testid",e.id),fe($,e.label)},[()=>({mobile:i()})]),b(t,s),K()}at(["click","keydown"]);import{noop as jh}from"@vkontakte/videoplayer-shared/es2018";var N4=(t,e)=>{Da(t,()=>e())},D4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),O4=L('<img class="icon" aria-hidden="true">'),H4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),F4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function im(t,e){q(e,!0),Q(t,F4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,jh),n=v(e,"closeSettings",3,jh),a=ee(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=H4();let u;l.__click=d,l.__keydown=[N4,d];var f=h(l),_=h(f);{var p=S=>{var I=ze(),A=ve(I);{var P=T=>{var V=D4();b(T,V)},E=T=>{var V=O4();k(()=>Oe(V,"src",e.icon)),It("error",V,s),Os(V),b(T,V)};R(A,T=>{r(a)?T(P):T(E,!1)})}b(S,I)},$=S=>{var I=ze();let A=m(()=>e.icon);var P=ve(I);Pi(P,()=>r(A),(E,T)=>{T(E,{})}),b(S,I)};R(_,S=>{typeof e.icon=="string"?S(p):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),k(S=>{var I;u=te(l,1,"item",null,u,S),Oe(l,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Oe(l,"data-testid",e.id),fe(y,e.label)},[()=>({mobile:i()})]),b(t,l),K()}at(["click","keydown"]);import{noop as q4}from"@vkontakte/videoplayer-shared/es2018";var U4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),z4={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 om(t,e){Q(t,z4);let i=v(e,"enabled",3,!1);var o=U4(),n=h(o);let a;_e(2),g(o),k(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var K4=(t,e,i)=>{hh(t,e(),o=>i()(o))},W4=(t,e,i)=>{t.stopPropagation(),e()(!i())},Q4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),G4=L('<li role="menuitem" tabindex="0"><!></li>');function nm(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,q4),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=G4();let l;d.__click=[W4,o,n],d.__keydown=[K4,n,o];var u=h(d);Js(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var p=Q4();let $;var w=h(p),y=h(w);{var S=T=>{ra(T,{get icon(){return e.icon}})},I=T=>{var V=ze();let z=m(()=>e.icon);var Y=ve(V);Pi(Y,()=>r(z),(U,Z)=>{Z(U,{})}),b(T,V)};R(y,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(w);var A=M(w,2),P=h(A,!0);g(A);var E=M(A,2);om(E,{get enabled(){return n()}}),g(p),k(T=>{$=te(p,1,"switch-wrapper",null,$,T),fe(P,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),k(f=>{var _;l=te(d,1,"item switch-item",null,l,f),Oe(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),K()}at(["click","keydown"]);import{isValidURL as _3,VideoQuality as a1}from"@vkontakte/videoplayer-shared/es2018";var Zh=()=>{let t=ee(pe([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,pe(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,pe([]))}}};var Y4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),j4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Z4={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 aa(t,e){q(e,!0),Q(t,Z4);let i=v(e,"isSubCase",3,!1),o=m(()=>Mc(e.quality));var n=j4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=f=>{var _=Y4();let p=m(()=>r(o));var $=h(_);Pi($,()=>r(p),(w,y)=>{y(w,{})}),g(_),b(f,_)};R(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),k(f=>{s=te(a,1,"svelte-t2qk8t",null,s,f),fe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),K()}import{VideoQuality as X4}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as Xh}from"@vkontakte/videoplayer-core/es2018";var Jh=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},e1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Jh({quality:t,availableQualities:e});return i?t===Xh.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},t1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Xh.INVARIANT?i:`${i}${Jh({quality:t,availableQualities:e})}`:"...";var J4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),e3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Wa(t,e){q(e,!0),Q(t,e3);let[i,o]=Ue(),n=()=>C(l,"$currentQuality$",i),a=()=>C(u,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=Te(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",p=m(()=>e.prefix+(e.selected&&n()!==X4.INVARIANT?_:"")),$=m(()=>t1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=J4(),y=h(w);let S=m(()=>e.selected?n():void 0);aa(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),K(),o()}var t3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},i3={br:!0,span:!0},rm=(t,e={})=>{var d,l,u,f,_,p,$;if(!t)return t;let i={...i3,...e},o=Object.keys(i);if(!o.length)return t;let n=t3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:I}=w;if(!i[S]){a.push(t.slice(s,I)),s=I+y.length;continue}let A=(_=w.groups)!=null&&_.childrenhtml?rm(w.groups.childrenhtml,i):"",P=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>A||""):y;a.push(t.slice(s,I),P),s=I+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function _d(t,e){q(e,!1);let i=v(e,"message",8),o=rm(i());$r();var n=ze(),a=ve(n);{var s=d=>{var l=ze(),u=ve(l);yl(u,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),K()}var o3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),n3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function sm(t,e){q(e,!1),Q(t,n3),$r();var i=o3(),o=h(i);let n=hr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));_d(o,{get message(){return r(n)}}),g(i),b(t,i),K()}var o1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Wa,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},am=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?Wa:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),n1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:sm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),lm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:H("high_quality"),valueComponent:t?Wa:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("high_quality_description")}),dm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:H("traffic_saving_quality"),valueComponent:t?Wa:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var Gc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Yc=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Dc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return H("audio_stream_display_language_label",{language:n,label:o});{let l=Gc(t,d);return H("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=Gc(t,d);return H("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=Gc(t,d);return H("audio_stream_display_language_index",{language:n,index:l})}}let a=Gc(t,e);return H("audio_stream_display_unknown",{index:a})};var r3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:am,selected:e&&!o&&!n||!1}),a.push({handler:dm,selected:o},{handler:lm,selected:n}),{title:H("submenu_quality"),id:"QUALITY_DETAILS",items:[n1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),o1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:H("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:aa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:H("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:am,selected:((i=gc())==null?void 0:i.type)==="auto_quality"},{handler:dm,selected:((o=gc())==null?void 0:o.type)==="traffic_saving"},{handler:lm,selected:((n=gc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:H("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Yc(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:H("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:H("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},r1=({subMenuId:t,context:e})=>t?[r3[t](e)]:[];var s3=be('<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 cm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=s3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var a3=be('<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 um(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=a3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var l3=be('<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 pm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var d3=be('<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 fm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var c3=be('<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 mm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=c3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var u3=be('<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 jc(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=u3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var p3=be('<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 vm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=p3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var f3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),m3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function gm(t,e){q(e,!0),Q(t,m3);let[i,o]=Ue(),n=()=>C(u,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),l=Te(),u=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=m(()=>e1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=f3(),y=h(w);aa(y,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),K(),o()}var g3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?H("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_quality",{actual:o}),icon:ql,label:H("menu_quality"),value:e,valueComponent:gm,weight:wr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:wr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?H("aria_label_submenu_traffic_saving_off"):`${H("aria_label_submenu_traffic_saving_on")}. ${H("traffic_saving_helper_text")}`,icon:cm,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Yc(t,e);return{id:"AUDIO_LANGUAGES",weight:wr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:um,label:H("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:wr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:pm,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:wr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Kl,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:wr.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:fm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:wr.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:mm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:wr["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:jc,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:wr["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:jc,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:wr["debug-info"],type:"CLICK",onClick:t,label:e?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),ariaLabel:H("menu_debug_overlay"),icon:vm,isHiddenFor:["desktop"]})},s1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>g3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ys)};var b3=(t,e)=>{Tc(t,e)},$3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),y3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),x3=L("<div><!> <!></div>"),w3={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 {
298
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),
299
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),
300
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
301
- .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 Ul(t,e){if(new.target)return k({component:Ul,...t});E(e,!0),ne(t,ux);let[i,o]=Xe(),n=()=>I(at,"$settingsMenuVisible",i),r=()=>I(we,"$settingsMenuOpenedByKeyboard",i),l=()=>I(et,"$debugPanelVisible",i),d=()=>I(Je,"$isMobile",i),a=()=>I(ie,"$playerSize",i),c=()=>I(lt,"$hasMpegSources$",i),f=()=>I(vt,"$mobileNotReportControlHidden$",i),g=()=>I(Re,"$autoQualityLimitingAvailable$",i),m=()=>I(le,"$availableSubtitlesList$",i),h=()=>I(ve,"$isLiveWithPlaybackSpeed",i),_=()=>I(ae,"$availableAudioStreams$",i),y=()=>I(Z,"$availablePlaybackRates$",i),S=()=>I(j,"$currentAudioStream$",i),L=()=>I(Be,"$currentPlaybackRate$",i),B=()=>I(je,"$trafficSavingEnabled",i),V=()=>I(q,"$currentQuality$",i),N=()=>I(X,"$isAutoQualityEnabled$",i),T=()=>I(De,"$currentSubtitle$",i),U=()=>I(ft,"$additionalSettingsMenuItems$",i),K=()=>I(ce,"$isAutoQualityAvailable$",i),H=()=>I(Ge,"$availableQualities$",i),G=()=>I(Ct,"$highQualityEnabled",i),J=p(e,"ref",15,void 0),de=p(e,"supportLink",7),te=p(e,"playerControlsHeight",7,0),xe=p(e,"returnFocus",7),Ce=ue(Ae({})),Q=ue(Ae({})),pe=He(),he=Xt(),j=pe.state.audioStream$,ae=pe.state.availableAudioStreams$,q=pe.state.currentQuality$,Ge=pe.state.availableQualities$,Re=pe.state.autoQualityLimitingAvailable$,X=pe.state.isAutoQualityEnabled$,ce=pe.state.isAutoQualityAvailable$,Be=pe.state.currentPlaybackRate$,Z=pe.state.availablePlaybackRates$,De=pe.state.currentSubtitle$,le=pe.state.availableSubtitlesList$,Ke=pe.state.canDownload,lt=pe.state.hasMpegSources$,at=pe.ui.settingsMenu.visible$,we=pe.ui.settingsMenu.openedByBtnKeyboard$,$e=pe.ui.settingsMenu.ref$,Je=pe.ui.isMobile,vt=pe.ui.mobileNotReportControlHidden$,ve=pe.state.canChangePlaybackSpeed$,je=pe.state.trafficSavingEnabled$,Ct=pe.state.highQualityEnabled$,ie=pe.ui.playerSize,et=pe.ui.debugPanelVisible,ht=pe.state.isInteractiveTime$,ft=pe.ui.additionalSettingsMenuItems$,be=pe.ui.t,Pe=pe.actions.internal.downloadVideo,ye=pe.actions.internal.closeSettingsMenu,Ye=pe.actions.internal.openSettingsSubMenu,pt=pe.actions.internal.closeSettingsSubMenu,Ve=ue(!1),_t=ue(void 0),me=e_();rt(()=>{!n()&&me.current&&(pt(s(Q)[me.current]),me.popAllSubMenus())}),rt(()=>{n()||Y(_t,void 0)}),rt(()=>{!me.current&&s(_t)&&fh(s(Ce),s(_t))}),rt(()=>{J()&&$e.set(J())});async function Bt(tt){me.pushSubMenu(tt),await fo(),Ye(tt,s(Q)[tt])}function Ut(tt){var Mt;tt==null||tt.stopPropagation(),r()||(Mt=xe())==null||Mt(),ye(),Y(Ve,!1)}function jt(tt,Mt){pe.actions.internal.setQuality(tt,{appliesTo:Mt}),Ut()}function We(tt){pe.actions.internal.setAudioStream(tt),Ut()}function ct(tt,Mt){pe.actions.internal.setTrafficSavingEnabled(tt,Mt),he.features.qualityDetailsSubMenuEnabled&&Ut()}function gt(tt,Mt){pe.actions.internal.setHighQualityEnabled(tt,Mt),Ut()}function kt(tt){pe.actions.internal.setPlaybackRate(tt),Ut()}function qe(tt){pe.actions.internal.setSubtitle(tt),Ut()}function zt(){Pe()}function oi(){sx(de())&&window.open(de(),"_blank"),pe.actions.internal.reportProblem(),pe.actions.internal.pause()}function ri(){rl(pe.actions.internal.getDebugTextData())}let vi=()=>{let tt=pe.actions.internal.getTraceTextData(),Mt=new Blob([...tt],{type:"application/json"}),lo=window.URL.createObjectURL(Mt);fa(lo,"vk_player_trace_info","json")};function mt(){et.set(!l())}function dt(){Y(Ve,!0)}function $t(){Y(Ve,!1)}function D(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-te()}px; overflow: auto;`}let Yt=$(()=>Ke&&c()&&!f()),li=$(()=>he.features.trafficSaving&&!f()&&g()&&!he.features.qualityDetailsSubMenuEnabled),Ti=$(()=>m().length>0&&!f()),di=$(()=>!!h()&&!f()),gi=$(()=>he.features.audioLanguages&&_().length>=2&&!f()),xi=$(()=>!f());Kt(()=>ht.subscribe(tt=>{tt&&!d()&&!s(Ve)&&!r()&&Ut()}));let ao=$(()=>{let tt=[s(xi)&&"QUALITY_SETTINGS",s(gi)&&"AUDIO_LANGUAGES",s(di)&&"PLAYBACK_RATE",s(Ti)&&"SUBTITLES",s(li)&&"TRAFFIC_SAVING_SWITCH",s(Yt)&&"DOWNLOAD",he.showSupport&&"SHOW_SUPPORT","COPY_DATA",he.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Mt=>!!Mt);return d_({items:tt,context:{qualityDetailsSubMenuEnabled:he.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:_(),currentPlaybackRate:L(),selectPlaybackRate:kt,trafficSavingEnabled:B(),toggleTrafficSaving:ct,currentQuality:V()||c_.INVARIANT,isAutoQualityEnabled:N()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:zt,debugPanelVisible:l(),onCopyDataClick:ri,onReportProblemClick:oi,onSaveTraceDataClick:vi,toggleShowDebugInfo:mt},additionalSettingsMenuItems:U()})}),si=$(()=>l_({subMenuId:me.current,context:{availablePlaybackRates:y(),selectPlaybackRate:kt,trafficSavingEnabled:B(),toggleTrafficSaving:ct,currentQuality:V()||c_.INVARIANT,isAutoQualityEnabled:N()||!1,isAutoQualityAvailable:K()||!1,availableQualities:H(),highQualityEnabled:G(),toggleHighQuality:gt,availableAudioStreams:_(),availableSubtitlesList:m(),closeSettingsMenu:ye,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:We,selectQuality:jt,selectSubtitle:qe}}));var So=cx(),un=x(So);{var ur=tt=>{var Mt=dx();Mt.__keydown=[ax,ye];var lo=x(Mt);{var To=Yi=>{var Rt=lx(),Ii=x(Rt),Ui=x(Ii,!0);b(Ii);var ko=O(Ii,2);ko.__click=Ut,b(Rt),R(Qt=>{re(Rt,"mobile",d()),ke(Ui,Qt)},[()=>be("submenu_settings")]),w(Yi,Rt)};W(lo,Yi=>{d()&&Yi(To)})}var Io=O(lo,2);Ci(Io,21,()=>s(ao),Ji,(Yi,Rt)=>{var Ii=Ze(),Ui=Ie(Ii);{var ko=Mi=>{bp(Mi,{get isMobile(){return d()},get id(){return s(Rt).id},get icon(){return s(Rt).icon},get label(){return s(Rt).label},get ariaLabel(){return s(Rt).ariaLabel},get value(){return s(Rt).value},get valueComponent(){return s(Rt).valueComponent},onClick:()=>{Bt(s(Rt).children),Y(_t,Ae(s(Rt).id))},get ref(){return s(Ce)[s(Rt).id]},set ref(ni){s(Ce)[s(Rt).id]=ni}})},Qt=Mi=>{var ni=Ze(),Nn=Ie(ni);{var Bn=co=>{xp(co,{get isMobile(){return d()},get id(){return s(Rt).id},get onClick(){return s(Rt).onClick},get icon(){return s(Rt).icon},get label(){return s(Rt).label},get ariaLabel(){return s(Rt).ariaLabel},closeSettings:Ut})},Zo=co=>{var ci=Ze(),Dn=Ie(ci);{var On=Eo=>{Cp(Eo,{get isMobile(){return d()},get id(){return s(Rt).id},get onClick(){return s(Rt).onClick},get icon(){return s(Rt).icon},get label(){return s(Rt).label},get ariaLabel(){return s(Rt).ariaLabel},get enabled(){return s(Rt).enabled},get tooltipText(){return s(Rt).tooltipText},get maxTooltipWidth(){return s(Rt).maxTooltipWidth}})};W(Dn,Eo=>{s(Rt).type==="SWITCH"&&Eo(On)},!0)}w(co,ci)};W(Nn,co=>{s(Rt).type==="CLICK"?co(Bn):co(Zo,!1)},!0)}w(Mi,ni)};W(Ui,Mi=>{s(Rt).type==="OPEN_SUB_MENU"?Mi(ko):Mi(Qt,!1)})}w(Yi,Ii)}),b(Io),xt(Io,Yi=>J(Yi),()=>J()),b(Mt),R(Yi=>{re(Mt,"desktop",!d()),re(Mt,"mobile",d()),re(Mt,"hidden",!!me.current),fe(Io,"style",Yi),re(Io,"mobile",d())},[D]),Ft("mouseenter",Mt,dt),Ft("mouseleave",Mt,$t),w(tt,Mt)};W(un,tt=>{n()&&tt(ur)})}var Rn=O(un,2);Ci(Rn,17,()=>s(si),tt=>tt.id,(tt,Mt)=>{let lo=$(()=>{var To;return(To=s(Mt).minWidth)!=null?To:137});$p(tt,{get isMobile(){return d()},get playerControlsHeight(){return te()},get returnFromSubMenu(){return me.popSubMenu},get id(){return s(Mt).id},get title(){return s(Mt).title},closeSettingsMenu:ye,openSubMenuList:Bt,get items(){return s(Mt).items},get minWidth(){return s(lo)},get refMenuItems(){return s(Ce)},get listRef(){return s(Q)[s(Mt).id]},set listRef(To){s(Q)[s(Mt).id]=To}})}),b(So),R(()=>{re(So,"mobile",d()),re(So,"hidden",!n())}),w(t,So);var No=P({get ref(){return J()},set ref(tt=void 0){J(tt),u()},get supportLink(){return de()},set supportLink(tt){de(tt),u()},get playerControlsHeight(){return te()},set playerControlsHeight(tt=0){te(tt),u()},get returnFocus(){return xe()},set returnFocus(tt){xe(tt),u()},$set:M,$on:(tt,Mt)=>A(e,tt,Mt)});return o(),No}bt(["keydown","click"]);var px=t=>t;function u_(t,{delay:e=0,duration:i=400,easing:o=px}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var fx=F('<button class="button svelte-1sbbskl"> </button>'),mx={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 Rp(t,e){if(new.target)return k({component:Rp,...t});E(e,!0),ne(t,mx);let i=p(e,"label",7),o=p(e,"onClick",7);var n=fx();n.__click=function(...l){var d;(d=o())==null||d.apply(this,l)};var r=x(n,!0);return b(n),R(()=>ke(r,i())),w(t,n),P({get label(){return i()},set label(l){i(l),u()},get onClick(){return o()},set onClick(l){o(l),u()},$set:M,$on:(l,d)=>A(e,l,d)})}bt(["click"]);var vx=F('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),gx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function bd(t,e){q(e,!0),Q(t,w3);let[i,o]=Ue(),n=()=>C(We,"$settingsMenuVisible",i),a=()=>C(lt,"$settingsMenuOpenedByKeyboard",i),s=()=>C(rt,"$debugPanelVisible",i),d=()=>C($e,"$isMobile",i),l=()=>C(Vt,"$playerSize",i),u=()=>C(Ee,"$hasMpegSources$",i),f=()=>C(Pe,"$mobileNotReportControlHidden$",i),_=()=>C(N,"$autoQualityLimitingAvailable$",i),p=()=>C(D,"$availableSubtitlesList$",i),$=()=>C(nt,"$isLiveWithPlaybackSpeed",i),w=()=>C(J,"$availableAudioStreams$",i),y=()=>C(Re,"$availablePlaybackRates$",i),S=()=>C(Me,"$currentAudioStream$",i),I=()=>C(ke,"$currentPlaybackRate$",i),A=()=>C(vt,"$trafficSavingEnabled",i),P=()=>C(Le,"$currentQuality$",i),E=()=>C(Ne,"$isAutoQualityEnabled$",i),T=()=>C(ue,"$currentSubtitle$",i),V=()=>C(Ot,"$additionalSettingsMenuItems$",i),z=()=>C(ne,"$isAutoQualityAvailable$",i),Y=()=>C(j,"$availableQualities$",i),U=()=>C(et,"$highQualityEnabled",i),Z=v(e,"ref",15,void 0),X=v(e,"playerControlsHeight",3,0),oe=pe({}),ce=pe({}),le=Te(),Ve=zt(),Me=le.state.audioStream$,J=le.state.availableAudioStreams$,Le=le.state.currentQuality$,j=le.state.availableQualities$,N=le.state.autoQualityLimitingAvailable$,Ne=le.state.isAutoQualityEnabled$,ne=le.state.isAutoQualityAvailable$,ke=le.state.currentPlaybackRate$,Re=le.state.availablePlaybackRates$,ue=le.state.currentSubtitle$,D=le.state.availableSubtitlesList$,de=le.state.canDownload,Ee=le.state.hasMpegSources$,We=le.ui.settingsMenu.visible$,lt=le.ui.settingsMenu.openedByBtnKeyboard$,Ae=le.ui.settingsMenu.ref$,$e=le.ui.isMobile,Pe=le.ui.mobileNotReportControlHidden$,nt=le.state.canChangePlaybackSpeed$,vt=le.state.trafficSavingEnabled$,et=le.state.highQualityEnabled$,Vt=le.ui.playerSize,rt=le.ui.debugPanelVisible,gt=le.state.isInteractiveTime$,Ot=le.ui.additionalSettingsMenuItems$,Ut=le.ui.t,Be=le.actions.internal.downloadVideo,re=le.actions.internal.closeSettingsMenu,W=le.actions.internal.openSettingsSubMenu,se=le.actions.internal.closeSettingsSubMenu,ge=ee(!1),Se=ee(void 0),De=Zh();Ye(()=>{!n()&&De.current&&(se(ce[De.current]),De.popAllSubMenus())}),Ye(()=>{n()||O(Se,void 0)}),Ye(()=>{!De.current&&r(Se)&&vh(oe,r(Se))}),Ye(()=>{Z()&&Ae.set(Z())});async function pt(yt){De.pushSubMenu(yt),await vo(),W(yt,ce[yt])}function Ht(yt){var Ft;yt==null||yt.stopPropagation(),a()||(Ft=e.returnFocus)==null||Ft.call(e),re(),O(ge,!1)}function Qe(yt,Ft){le.actions.internal.setQuality(yt,{appliesTo:Ft}),Ht()}function dt(yt){le.actions.internal.setAudioStream(yt),Ht()}function Xe(yt,Ft){le.actions.internal.setTrafficSavingEnabled(yt,Ft),Ve.features.qualityDetailsSubMenuEnabled&&Ht()}function Ct(yt,Ft){le.actions.internal.setHighQualityEnabled(yt,Ft),Ht()}function Zt(yt){le.actions.internal.setPlaybackRate(yt),Ht()}function qe(yt){le.actions.internal.setSubtitle(yt),Ht()}function ct(){Be()}function ei(){_3(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function Mi(){Ra(le.actions.internal.getDebugTextData())}let To=()=>{let yt=le.actions.internal.getTraceTextData(),Ft=new Blob([...yt],{type:"application/json"}),so=window.URL.createObjectURL(Ft);zs(so,"vk_player_trace_info","json")};function Oi(){rt.set(!s())}function Io(){O(ge,!0)}function ko(){O(ge,!1)}function Et(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-X()}px; overflow: auto;`}let ht=m(()=>de&&u()&&!f()),F=m(()=>Ve.features.trafficSaving&&!f()&&_()&&!Ve.features.qualityDetailsSubMenuEnabled),qt=m(()=>p().length>0&&!f()),Hi=m(()=>!!$()&&!f()),Li=m(()=>Ve.features.audioLanguages&&w().length>=2&&!f()),ri=m(()=>!f());Bt(()=>gt.subscribe(yt=>{yt&&!d()&&!r(ge)&&!a()&&Ht()}));let ai=m(()=>{let yt=[r(ri)&&"QUALITY_SETTINGS",r(Li)&&"AUDIO_LANGUAGES",r(Hi)&&"PLAYBACK_RATE",r(qt)&&"SUBTITLES",r(F)&&"TRAFFIC_SAVING_SWITCH",r(ht)&&"DOWNLOAD",Ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ft=>!!Ft);return s1({items:yt,context:{qualityDetailsSubMenuEnabled:Ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:I(),selectPlaybackRate:Zt,trafficSavingEnabled:A(),toggleTrafficSaving:Xe,currentQuality:P()||a1.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:ct,debugPanelVisible:s(),onCopyDataClick:Mi,onReportProblemClick:ei,onSaveTraceDataClick:To,toggleShowDebugInfo:Oi},additionalSettingsMenuItems:V()})}),no=m(()=>r1({subMenuId:De.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Zt,trafficSavingEnabled:A(),toggleTrafficSaving:Xe,currentQuality:P()||a1.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:z()||!1,availableQualities:Y(),highQualityEnabled:U(),toggleHighQuality:Ct,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:re,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:dt,selectQuality:Qe,selectSubtitle:qe}}));var ro=x3();let Ki;var Bo=h(ro);{var Rt=yt=>{var Ft=y3();let so;Ft.__keydown=[b3,re];var jt=h(Ft);{var Hn=ni=>{var bt=$3();let di;var ao=h(bt),mi=h(ao,!0);g(ao);var fn=M(ao,2);fn.__click=Ht,g(bt),k((yi,$o)=>{di=te(bt,1,"item header svelte-17or3al",null,di,yi),fe(mi,$o)},[()=>({mobile:d()}),()=>Ut("submenu_settings")]),b(ni,bt)};R(jt,ni=>{d()&&ni(Hn)})}var bo=M(jt,2);let No;bi(bo,21,()=>r(ai),ni=>ni.id,(ni,bt)=>{var di=ze(),ao=ve(di);{var mi=yi=>{tm(yi,{get isMobile(){return d()},get id(){return r(bt).id},get icon(){return r(bt).icon},get label(){return r(bt).label},get ariaLabel(){return r(bt).ariaLabel},get value(){return r(bt).value},get valueComponent(){return r(bt).valueComponent},onClick:()=>{pt(r(bt).children),O(Se,pe(r(bt).id))},get ref(){return oe[r(bt).id]},set ref($o){oe[r(bt).id]=$o}})},fn=(yi,$o)=>{{var Do=xi=>{im(xi,{get isMobile(){return d()},get id(){return r(bt).id},get onClick(){return r(bt).onClick},get icon(){return r(bt).icon},get label(){return r(bt).label},get ariaLabel(){return r(bt).ariaLabel},closeSettings:Ht})},mn=(xi,Fn)=>{{var Xo=Eo=>{nm(Eo,{get isMobile(){return d()},get id(){return r(bt).id},get onClick(){return r(bt).onClick},get icon(){return r(bt).icon},get label(){return r(bt).label},get ariaLabel(){return r(bt).ariaLabel},get enabled(){return r(bt).enabled},get tooltipText(){return r(bt).tooltipText},get maxTooltipWidth(){return r(bt).maxTooltipWidth}})};R(xi,Eo=>{r(bt).type==="SWITCH"&&Eo(Xo)},Fn)}};R(yi,xi=>{r(bt).type==="CLICK"?xi(Do):xi(mn,!1)},$o)}};R(ao,yi=>{r(bt).type==="OPEN_SUB_MENU"?yi(mi):yi(fn,!1)})}b(ni,di)}),g(bo),ut(bo,ni=>Z(ni),()=>Z()),g(Ft),k((ni,bt,di)=>{so=te(Ft,1,"settings-menu menu svelte-17or3al",null,so,ni),No=te(bo,1,"items",null,No,bt),ot(bo,di)},[()=>({desktop:!d(),mobile:d(),hidden:!!De.current}),()=>({mobile:d()}),Et]),It("mouseenter",Ft,Io),It("mouseleave",Ft,ko),b(yt,Ft)};R(Bo,yt=>{n()&&yt(Rt)})}var li=M(Bo,2);bi(li,17,()=>r(no),yt=>yt.id,(yt,Ft)=>{let so=m(()=>{var jt;return(jt=r(Ft).minWidth)!=null?jt:137});em(yt,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return De.popSubMenu},get id(){return r(Ft).id},get title(){return r(Ft).title},closeSettingsMenu:re,openSubMenuList:pt,get items(){return r(Ft).items},get minWidth(){return r(so)},get refMenuItems(){return oe},get listRef(){return ce[r(Ft).id]},set listRef(jt){ce[r(Ft).id]=jt}})}),g(ro),k(yt=>Ki=te(ro,1,"settings-menu-container svelte-17or3al",null,Ki,yt),[()=>({mobile:d(),hidden:!n()})]),b(t,ro),K(),o()}at(["keydown","click"]);var S3=t=>t;function l1(t,{delay:e=0,duration:i=400,easing:o=S3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var C3=L('<button class="button svelte-1sbbskl"> </button>'),T3={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 hm(t,e){Q(t,T3);var i=C3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>fe(o,e.label)),b(t,i)}at(["click"]);var I3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),k3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
302
307
  /**
303
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.
304
- */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 zl(t,e){if(new.target)return k({component:zl,...t});E(e,!0),ne(t,gx);let i=340,o=p(e,"onClose",7),n=p(e,"onSelectAutoQuality",7),{features:{forceAutoQualityWhenSevereStallHappens:r}}=Xt(),{ui:{t:l}}=He(),d=l(r?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var a=vx(),c=x(a),f=x(c),g=x(f),m=x(g);Fl(m,{message:d}),b(g);var h=O(g,2);{var _=S=>{let L=$(()=>l("slow_video_notification_button"));Rp(S,{get label(){return s(L)},get onClick(){return n()}})};W(h,S=>{r||S(_)})}b(f);var y=O(f,2);return Hs(y,{get onClick(){return o()}}),b(c),b(a),qf(3,c,()=>u_,()=>({duration:i})),w(t,a),P({get onClose(){return o()},set onClose(S){o(S),u()},get onSelectAutoQuality(){return n()},set onSelectAutoQuality(S){n(S),u()},$set:M,$on:(S,L)=>A(e,S,L)})}var Ed="annotation",Np=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",Ed),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var hx=(t,e,i,o,n,r)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(r().controls.hideTimeoutCursor))},_x=(t,e,i,o,n,r,l,d,a,c,f,g,m,h,_,y,S,L,B)=>{var V;if(t.preventDefault(),e()||o()){r();return}if(!(l()&&!a)){if(s(c))return f();if((V=g())==null||V.focus(),!m()){h()(),_(y().controls.hideTimeoutCursor);return}(!y().preventPauseOnVideoClick||S()!==f_.PLAYING)&&B().actions.internal.togglePlay(),_(y().controls.hideTimeoutCursor)}},$x=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},bx=F('<div class="ads-container svelte-1b9vdl1"><!></div>'),yx=F('<div class="spherical-video-icon svelte-1b9vdl1"><!></div>'),xx=F("<div><!></div>"),wx=F('<div class="settings-menu svelte-1b9vdl1"><!></div>'),Cx=F("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=F('<div class="video-wrapper svelte-1b9vdl1"><div class="video-container svelte-1b9vdl1" data-testid="video-container"></div></div> <!>',1),Tx=F('<div class="player-wrapper svelte-1b9vdl1"><!> <div class="overlay-container"></div></div>'),Ix={hash:"svelte-1b9vdl1",code:`.player-wrapper.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1b9vdl1 .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-1b9vdl1 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-1b9vdl1,
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 $d(t,e){q(e,!0),Q(t,k3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=zt(),{ui:{t:n}}=Te(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=I3(),d=h(s),l=h(d),u=h(l),f=h(u);_d(f,{message:a}),g(u);var _=M(u,2);{var p=w=>{let y=m(()=>n("slow_video_notification_button"));hm(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R(_,w=>{o||w(p)})}g(l);var $=M(l,2);js($,{get onClick(){return e.onClose}}),g(d),g(s),ip(3,d,()=>l1,()=>({duration:i})),b(t,s),K()}var yd="annotation",Zc=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",yd),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var E3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},A3=(t,e,i,o,n,a,s,d,l,u,f,_,p,$,w,y,S)=>{var I;if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(u))return f();if((I=_())==null||I.focus(),!p()){$.firstStart(),w($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||y()!==c1.PLAYING)&&$.store.actions.internal.togglePlay(),w($.uiConfig.controls.hideTimeoutCursor)}},P3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},M3=L("<div><!></div>"),L3=L('<div class="spherical-video-icon svelte-1b9vdl1"><!></div>'),V3=L("<div><!></div>"),R3=L('<div class="settings-menu svelte-1b9vdl1"><!></div>'),B3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),N3=L('<div><div data-testid="video-container"></div></div> <!>',1),D3=L('<div class="player-wrapper svelte-1b9vdl1"><!> <div class="overlay-container"></div></div>'),O3={hash:"svelte-1b9vdl1",code:`.player-wrapper.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1b9vdl1 .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-1b9vdl1 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-1b9vdl1,
305
310
  .video-container.svelte-1b9vdl1,
306
- .ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function Bp(t,e){if(new.target)return k({component:Bp,...t});E(e,!0),ne(t,Ix);let[i,o]=Xe(),n=()=>I(Do,"$notificationsToShow$",i),r=()=>I(Rn,"$playerPhase",i),l=()=>I(Ui,"$isLoaderVisible",i),d=()=>I(So,"$adPlaybackState",i),a=()=>I(Zo,"$crashed",i),c=()=>I(Xo,"$isInteractiveTime$",i),f=()=>I(lo,"$settingsMenuVisible",i),g=()=>I(fr,"$isInteractiveExpectation$",i),m=()=>I(Mt,"$controlsVisible",i),h=()=>I(Fn,"$touched",i),_=()=>I(Or,"$graphIsOpened$",i),y=()=>I(No,"$isFullscreen",i),S=()=>I(mr,"$autoplayNextEnabled$",i),L=()=>I(ni,"$postrollPassed",i),B=()=>I(ko,"$isEnded$",i),V=()=>I(io,"$cursorInside",i),N=()=>I(pr,"$rotateAlpha",i),T=()=>I(Po,"$playerSize",i),U=()=>I(mn,"$fakeIsPlaying$",i),K=()=>I(Gn,"$bottomNoSmooth",i),H=()=>I(Wn,"$interactiveTimeIndicator",i),G=()=>I(eo,"$is3DVideo",i),J=()=>I(Rt,"$contextMenuVisible$",i),de=()=>I(si,"$playbackState$",i),te=()=>I(Un,"$hotKeyMapData",i),xe=()=>I(Io,"$scrubbingInProgress",i),Ce=()=>I(Yi,"$volumeChangingInProgress",i),Q=()=>I(Qt,"$chromecastConnected$",i),pe=()=>I(_o,"$controlsTimeoutActive",i),he=()=>I(To,"$settingsMenuOpenedByKeyboard",i),j=()=>I(rn,"$contextMenuOpenedByKeyboard$",i),ae=()=>I(Cr,"$contextMenuButtonRef$",i),q=()=>I(er,"$contextMenuOpenedByHotKey$",i),Ge=()=>I(Sr,"$contextMenuLastActiveElem$",i),Re=()=>I(tt,"$isFullscreenOpenedByKeyboard",i),X=()=>I(Bn,"$isPlaying$",i),ce=()=>I(ao,"$language$",i),Be=()=>I(Hn,"$icon3DVideoVisible",i),Z=()=>I(Mi,"$chromecastDeviceName$",i),De=()=>I(Dn,"$currentSubtitle$",i),le=()=>I(On,"$currentSubtitleCaptions$",i),Ke=()=>I(un,"$position$",i),lt=()=>I(Eo,"$realDuration$",i),at=()=>I(Nn,"$isLive$",i),we=()=>I(ur,"$duration$",i),$e=()=>I(to,"$contextMenuPosition$",i),Je=()=>I(uo,"$showHotKeyMap",i),vt=()=>I(Ii,"$debugPanelVisible",i),ve=p(e,"store",7),je=p(e,"uiConfig",7),Ct=p(e,"title",7),ie=p(e,"thumbUrl",7),et=p(e,"videoContainer",15),ht=p(e,"interactiveContainer",7),ft=p(e,"live",7),be=p(e,"autoplay",7),Pe=p(e,"canRewindLive",7),ye=p(e,"showAds",7),Ye=p(e,"adsSlotId",7,void 0),pt=p(e,"adsParams",7,void 0),Ve=p(e,"adsPreviewParam",7,void 0),_t=p(e,"adsAutoplayParam",7,void 0),me=p(e,"duration",7,void 0),Bt=p(e,"logoClickable",7),Ut=p(e,"logoHidden",7),jt=p(e,"logoTargetUrl",7,""),We=p(e,"showNextPrevButtons",7,!1),ct=p(e,"nextButtonActive",7,!1),gt=p(e,"prevButtonActive",7,!1),kt=p(e,"endScreenVideoTitle",7,void 0),qe=p(e,"endScreenVideoThumb",7,void 0),zt=p(e,"isOneVideoPlaylist",7,!1),oi=p(e,"supportLink",7),ri=p(e,"shadowRootContainer",7,void 0),vi=p(e,"outerContainerRef",7,void 0),mt=p(e,"playerStarted",7,!1),dt=p(e,"fullScreenTarget",7,void 0),$t=p(e,"showMiniTimer",7,!1),D=p(e,"showEndScreen",7,!0),Yt=p(e,"showAutoplayNext",7),li=p(e,"keyboardControls",15),Ti=p(e,"seekToInteractive",7),di=p(e,"playPrevChapter",7),gi=p(e,"firstStart",7),xi=ve().getLogger().createComponentLog("Root component"),ao=ve().interfaceLanguage$,si=ve().state.playbackState$,So=ve().ads.playbackState,un=ve().state.positionWithScrubbing$,ur=ve().state.duration$,Rn=ve().playerPhase,No=ve().ui.isFullscreen,tt=ve().ui.isFullscreenOpenedByKeyboard,Mt=ve().ui.controlsVisible,lo=ve().ui.settingsMenu.visible$,To=ve().ui.settingsMenu.openedByBtnKeyboard$,Io=ve().ui.scrubbingInProgress,Yi=ve().ui.volumeChangingInProgress,Rt=ve().ui.contextMenu.visible$,Ii=ve().ui.debugPanelVisible,Ui=ve().state.isLoaderVisible,ko=ve().state.isEnded$,Qt=ve().state.chromecastConnected$,Mi=ve().state.chromecastDeviceName$,ni=ve().ads.postrollPassed,Nn=ve().state.isLive$,Bn=ve().state.isPlaying$,Zo=ve().state.crashed$,co=ve().webApi.annotationsApi,ci=ve().webApi.pictureInPictureApi,Dn=ve().state.currentSubtitle$,On=ve().state.currentSubtitleCaptions$,Eo=ve().state.duration$,Or=ve().state.graphIsOpened$,Po=ve().ui.playerSize,eo=ve().ui.is3DVideo,Hn=ve().ui.icon3DVideoVisible,pr=ve().ui.rotateAlpha,Bo=ve().state.isInteractive,Xo=ve().state.isInteractiveTime$,fr=ve().state.isInteractiveExpectation$,rs=ve().state.hasInteractiveBranches,Fn=ve().ui.touched,Un=ve().ui.modals.hotKeyMap.data,uo=ve().ui.modals.hotKeyMap.show,zn=ve().ui.overlayContainer$,Wn=ve().ui.controls.interactiveTimeIndicator,Li=ve().state.showInteractiveTimeIndicator,to=ve().ui.contextMenu.position$,pn=ve().actions.internal.setQuality,fn=ve().actions.internal.closeSettingsMenu,mr=ve().ui.autoplayNextEnabled$,{fakeIsPlaying$:mn,notifications$:Jo}=Co(),Vi=ue(void 0),vn=ue(void 0),yt=ue(void 0),qn=ue(void 0),vr,Kn,en;Un.set(rh());let{closeNotification:gr,notificationsToShow$:Do}=Jo,Hr=$(()=>!!n().slow_video),Qn=()=>gr("slow_video"),hr=$(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),gn=ue(void 0),Gn=Se(!1),Yn,_o=Se(!1),Oo=Se(),io=Se(!1),Ho=ue(!1),zi=ue(!1),Wi=ue(!1),_r=ue(!(be()&&!je().controls.showOnStartupAtAutoplay)),hn=$(()=>c()&&!f()&&!(s(Ho)||s(zi))&&!(s(Wi)&&!g())),Fr=!0,_n=$(()=>je().features.thumbTimer&&$t()&&r()==="video"&&!m()&&!a()&&!Bo&&(je().hideThumbTimerAfterTouch&&!h()||!je().hideThumbTimerAfterTouch)),$r=$(()=>r()==="video"&&!_()&&y()),jn=ue(!1),$n=$(()=>(D()||Yt()&&S())&&!!kt()&&!!qe()&&(ye()&&L()||!ye())&&B()&&!a()&&!s(jn)),Ur=$(()=>V()&&!(m()||s($n))&&!c()),Zn=ue(!1),Xn=$(()=>et()&&N()%180?T().height/T().width:1),hi=$(()=>U()!==null),{toggle:br}=mn,bn=!1,Fo=null;ci==null||ci.setContext(Jl());let zr=()=>{be()&&!Bo&&je().controls.showOnStartupAtAutoplay&&Te(je().controls.hideTimeout)};ve().setUiCallbacks({onStarted:zr});let Jn=()=>{window.clearTimeout(vr),_o.set(!1)},Ao=()=>{window.clearTimeout(Kn),Oo.set(null)},Te=oe=>{Jn(),_o.set(!0),vr=window.setTimeout(()=>_o.set(!1),oe);let Ht=oe-100;Yn=window.setTimeout(()=>{K()&&Gn.set(!1)},Ht>0?Ht:oe)},Dt=(oe,Ht)=>{Ao(),Oo.set(Ht),Kn=window.setTimeout(()=>Oo.set(null),oe)},ki=eo.subscribe(oe=>{Hn.set(oe),oe&&(window.clearTimeout(en),en=window.setTimeout(()=>Hn.set(!1),je().controls.hide360IconTimeout))}),_i=async()=>{var Ht,Gt,Et,Bi;let oe=Ns();if(oe){let ui=_d(),qi=Ri();oe=ui===qi||ui===ri()}if(oe){Te(je().controls.hideTimeoutFullscreen);try{await(ci==null?void 0:ci.remove())}catch(ui){xi({message:String(ui)})}}No.set(oe),ve().getAdmanWrapper().setFullscreen(oe),y()?(Gt=(Ht=ve().callbacks)==null?void 0:Ht.onFullscreenEnter)==null||Gt.call(Ht):(Bi=(Et=ve().callbacks)==null?void 0:Et.onFullscreenExit)==null||Bi.call(Et)},tn=oe=>{let{width:Ht,height:Gt}=oe.target;Po.set({width:Ht,height:Gt})},$o=()=>{let{width:oe,height:Ht}=s(Vi).getBoundingClientRect();Po.set({width:oe,height:Ht})};Kt(()=>{var Ht;return Rc(_i),je().features.annotationsInside&&(co==null||co.init(s(Vi))),ha(ci)&&(ci==null||ci.assignPlayerContainer(s(Vi)),ci==null||ci.registryExternalEventHandlers({resize:tn,leavepictureinpicture:$o})),ht()&&((Ht=et().parentElement)==null||Ht.insertBefore(ht(),et().nextSibling)),()=>{window.clearTimeout(vr),window.clearTimeout(Yn),window.clearTimeout(Kn),window.clearTimeout(en),ki(),ci==null||ci.dispose().catch(Gt=>{xi({message:String(Gt)})}),Nc(_i)}});let Ri=()=>{let oe=je().features.fullscreenInternalTargetPlayerContainer||!vi()?s(Vi):vi(),Ht=oe.getRootNode(),Gt=Ht instanceof ShadowRoot?Ht.host:Ht,Et=dt()instanceof HTMLElement&&dt().contains(Gt);return je().allowChangingFullscreenTarget&&dt()&&Et?dt():oe},ge=async()=>{Ns()?(await Vc(document),xi({message:"exit fullscreen"})):(xi({message:"request fullscreen"}),await Lc(Ri()))},Pt=()=>{fn(),Rt.set(!1)},$i=oe=>{oe.preventDefault(),Rt.set(!0),to.set({left:oe.clientX,top:oe.clientY})};function Ei(){io.set(!0),Bo||Te(je().controls.hideTimeoutCursor)}function ai(){Bo||(Gn.set(!0),Te(je().controls.hideTimeoutCursor))}function ji(){io.set(!1),Y(zi,!1),Y(Ho,!1),bn=!1,ve().actions.internal.releaseCamera(),Te(je().controls.hideTimeout)}function bo(oe){return oe?oe.offsetTop+bo(oe.offsetParent):0}function Ni(oe){return oe?oe.offsetLeft+Ni(oe.offsetParent):0}function on(oe){if(H()&&Li){let Ht=oe.currentTarget,Gt=bo(Ht),Et=Ni(Ht),Bi=oe.pageX-Et,ui=oe.pageY-Gt,{left:qi,bottom:Wr,right:tr}=H(),Mo=tr-qi;return Bi>=qi-Mo&&ui<=Wr+Mo}}function nn(oe){if(s(Vi)){let Ht=bo(oe.currentTarget),Gt=T().height,Et=oe.pageY-Ht;if(on(oe)){Y(zi,!1);return}Et<40?Y(zi,!0):Et>Gt-40?Y(Ho,!0):(Y(zi,!1),f()||Y(Ho,!1))}}function yn(oe){nn(oe),s(hn)||Te(je().controls.hideTimeoutCursor),G()&&bn&&Fo&&ve().actions.internal.moveCameraFocusPX(Fo.clientX-oe.clientX,Fo.clientY-oe.clientY,oe.timeStamp-Fo.timeStamp),Fo=oe}let xn=oe=>{oe.preventDefault(),oe.button===0&&(bn=!0,ve().actions.internal.holdCamera()),Te(je().controls.hideTimeoutCursor)},yr=oe=>{oe.preventDefault(),oe.button===0&&(Fo=oe,bn=!1,ve().actions.internal.releaseCamera()),Te(je().controls.hideTimeoutCursor)},xr=oe=>{Pt(),Fn.set(!0),Te(je().controls.hideTimeout),oe&&Dt(je().controls.hideHotKeyHelpers,oe)},wr=()=>{var oe,Ht;Pt(),(oe=ve().callbacks)!=null&&oe.onOpenHotKeyMap?(Ht=ve().callbacks)==null||Ht.onOpenHotKeyMap(te()):uo.update(Gt=>!Gt)},ss=()=>{Fn.set(!0)},rn=ve().ui.contextMenu.openedByBtnKeyboard$,Cr=ve().ui.contextMenu.btnRef$,yo=ue(void 0),er=ve().ui.contextMenu.openedByHotKey$,Sr=ve().ui.contextMenu.lastActiveElem$;rt(()=>{zn.set(s(gn))}),rt(()=>{Y(Wi,Ae(s(_r)&&de()!==f_.PLAYING)),s(_r)||Tt(()=>Y(_r,!0))}),rt(()=>{Mt.set((s(Wi)||f()||xe()||Ce()||Q()||pe())&&!s(hn)&&(r()==="video"||r()==="ads")&&!a())}),rt(()=>{!xe()&&s(Zn)&&!c()&&Te(je().controls.hideTimeoutCursor),Tt(()=>Y(Zn,Ae(xe())))}),rt(()=>{s(qn),f(),he(),Tt(()=>ts(s(qn),f(),he()))}),rt(()=>{s(yo),J(),j(),Tt(()=>ts(s(yo),J(),j()))}),rt(()=>{let oe=ae();oe&&(J(),Tt(()=>sl(oe,J(),rn)))}),rt(()=>{s(yo),J(),q(),Tt(()=>ts(s(yo),J(),q()))}),rt(()=>{let oe=Ge();oe&&(J(),Tt(()=>ph(oe,J(),er)))}),rt(()=>{var oe;!Re()&&y()&&(Tt(()=>tt.set(!1)),(oe=li())==null||oe.focus())});let Uo=ee("video360");var ut=Tx();Ft("blur",la,Pt),ut.__mousemove=yn;var Jt=x(ut);let bi=$(()=>r()==="ads"),Tr=$(()=>s(hi)?br:void 0);xt(Xc(Jt,{toggleFullscreen:ge,hideContextMenu:Pt,showHotKeyHelpers:xr,showKeyMap:wr,get isAds(){return s(bi)},get fakePlayButtonHandler(){return s(Tr)},get nextButtonActive(){return ct()},get prevButtonActive(){return gt()},children:(oe,Ht)=>{var Gt=Sx(),Et=Ie(Gt);Et.__contextmenu=$i,Et.__mousedown=xn,Et.__mouseup=yr,Et.__click=[_x,J,Rt,f,lo,Pt,B,ko,rs,hi,br,li,mt,gi,Te,je,de,si,ve],Et.__dblclick=[hx,Fr,xi,ge,Te,je];var Bi=x(Et);xt(Bi,qi=>et(qi),()=>et()),b(Et);var ui=O(Et,2);ad(ui,ce,qi=>{var Wr=Cx(),tr=Ie(Wr);let Mo=$(()=>r()!=="thumb"||a()||Bo&&be());Dl(tr,{get hidden(){return s(Mo)},get thumbUrl(){return ie()},get startVideo(){return gi()}});var as=O(tr,2);{var it=_e=>{let nt=$(()=>{var St;return(St=ft())==null?void 0:St.startTime});Ol(_e,{get thumbUrl(){return ie()},get startTime(){return s(nt)}})};W(as,_e=>{r()==="LiveWaitingStart"&&_e(it)})}var Zt=O(as,2);{var wi=_e=>{Ys(_e,{kind:"recover",get thumbUrl(){return ie()}})};W(Zt,_e=>{r()==="LiveWaitingRecover"&&_e(wi)})}var Cn=O(Zt,2);{var ir=_e=>{Ys(_e,{kind:"record",get thumbUrl(){return ie()}})};W(Cn,_e=>{r()==="LiveWaitingRecord"&&_e(ir)})}var Ss=O(Cn,2);{var Sn=_e=>{var nt=bx(),St=x(nt);il(St,{get adsSlotId(){return Ye()},get adsParams(){return pt()},get adsPreviewParam(){return Ve()},get adsAutoplayParam(){return _t()},get duration(){return me()}}),b(nt),R(()=>re(nt,"hidden",r()!=="ads")),w(_e,nt)};W(Ss,_e=>{ye()&&mt()&&_e(Sn)})}var qr=O(Ss,2);{var Ta=_e=>{let nt=$(()=>!D()&&Yt()&&S());Yc(_e,{get title(){return kt()},get thumb(){return qe()},get isHide(){return s(nt)},clickCloseIcon:()=>Y(jn,!0)})};W(qr,_e=>{s($n)&&kt()&&qe()&&_e(Ta)})}var Ia=O(qr,2);{var Ts=_e=>{let nt=$(()=>!m());fp(_e,{get title(){return Ct()},get isHidden(){return s(nt)}})};W(Ia,_e=>{s($r)&&_e(Ts)})}var ka=O(Ia,2);{var Zs=_e=>{let nt=$(()=>r()==="video"&&m());Vl(_e,{get isShifted(){return s(nt)}})};W(ka,_e=>{G()&&_e(Zs)})}var Is=O(ka,2);{var Qe=_e=>{var nt=yx(),St=x(nt);el(St,{"aria-label":Uo}),b(nt),w(_e,nt)};W(Is,_e=>{Be()&&_e(Qe)})}var Lt=O(Is,2);{var zo=_e=>{Nl(_e,{get thumbUrl(){return ie()},get chromecastDeviceName(){return Z()}})};W(Lt,_e=>{Q()&&_e(zo)})}var kr=O(Lt,2);{var Xs=_e=>{Rl(_e,{get shifted(){return m()},get captions(){return le()},get position(){return Ke()},get playerSize(){return T()}})};W(kr,_e=>{De().value!=="off"&&_e(Xs)})}var Er=O(kr,2);{var Kr=_e=>{var nt=xx();nt.__contextmenu=$i,nt.__click=[$x,J,Rt,f,lo,Pt];var St=x(nt);Bl(St,{}),b(nt),w(_e,nt)};W(Er,_e=>{a()&&_e(Kr)})}var ks=O(Er,2);{var ql=_e=>{let nt=$(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),St=$(()=>r()==="ads"),Nt=$(()=>Pe()&&lt()!==0);Ll(_e,{get bottomHidden(){return s(nt)},get bottomNoSmooth(){return K()},get showControls(){return m()},get isAds(){return s(St)},get canRewindLive(){return s(Nt)},get logoClickable(){return Bt()},get logoHidden(){return Ut()},get logoTargetUrl(){return jt()},get showAutoplayNext(){return Yt()},get showNextPrevButtons(){return We()},get nextButtonActive(){return ct()},get prevButtonActive(){return gt()},get isOneVideoPlaylist(){return zt()},customFullscreenSupported:Fr,toggleFullscreen:ge,get seekToInteractive(){return Ti()},get playPrevChapter(){return di()},get playerControlsWrapperRef(){return s(vn)},set playerControlsWrapperRef(Zi){Y(vn,Ae(Zi))},get playerControlsRef(){return s(yt)},set playerControlsRef(Zi){Y(yt,Ae(Zi))}})};W(ks,_e=>{mt()&&_e(ql)})}var Fd=O(ks,2);{var Ea=_e=>{var nt=wx(),St=x(nt);let Nt=$(()=>{var Zi;return(Zi=s(yt))==null?void 0:Zi.clientHeight});Ul(St,{get supportLink(){return oi()},get playerControlsHeight(){return s(Nt)},returnFocus:()=>{var Zi;return(Zi=li())==null?void 0:Zi.focus()},get ref(){return s(qn)},set ref(Zi){Y(qn,Ae(Zi))}}),b(nt),w(_e,nt)};W(Fd,_e=>{!Q()&&r()!=="ads"&&_e(Ea)})}var Ud=O(Fd,2);let zd=$(()=>!s(_n));nl(Ud,{get isLive(){return at()},get isHidden(){return s(zd)},get isPlaying(){return X()},get position(){return Ke()},get duration(){return we()}});var Wd=O(Ud,2);lp(Wd,{data:Oo});var qd=O(Wd,2);Qc(qd,{get supportLink(){return oi()},returnFocus:()=>{var _e;return(_e=li())==null?void 0:_e.focus()},get visible(){return J()},get playerContainerRef(){return s(Vi)},get controlsContainerRef(){return s(vn)},get position(){return $e()},get menuElementRef(){return s(yo)},set menuElementRef(_e){Y(yo,Ae(_e))}});var At=O(qd,2);{var Kd=_e=>{zl(_e,{onClose:Qn,onSelectAutoQuality:()=>{pn("auto"),Qn()}})};W(At,_e=>{s(Hr)&&_e(Kd)})}var Kl=O(At,2);{var Qd=_e=>{Us(_e,{})};W(Kl,_e=>{s(hr)&&_e(Qd)})}var v=O(Kl,2);{var C=_e=>{tu(_e,{})};W(v,_e=>{Je()&&_e(C)})}var z=O(v,2);{var Ee=_e=>{cl(_e,{})};W(z,_e=>{vt()&&_e(Ee)})}var ot=O(z,2);dd(ot,()=>"slot",!1,(_e,nt)=>{Oe(_e,null,{name:Ed},"svelte-1b9vdl1",_e.namespaceURI===ta,_e.nodeName.includes("-"))}),w(qi,Wr)}),R(()=>{re(Et,"hidden",r()!=="video"),re(Et,"nocursor",s(Ur)),fe(Bi,"style",`transform: rotate(${N()}deg) scale(${s(Xn)})`),fe(Bi,"data-is-playing",X()),re(Bi,"fast-rotate",!je().isSmoothVideoRotate)}),w(oe,Gt)},$$slots:{default:!0}}),oe=>li(oe),()=>li());var wn=O(Jt,2);xt(wn,oe=>Y(gn,oe),()=>s(gn)),b(ut),xt(ut,oe=>Y(Vi,oe),()=>s(Vi)),Ft("mouseenter",ut,Ei),Ft("mouseleave",ut,ji),Ft("click",ut,ss,!0),Ft("focusin",ut,ai,!0),w(t,ut);var Ir=P({get store(){return ve()},set store(oe){ve(oe),u()},get uiConfig(){return je()},set uiConfig(oe){je(oe),u()},get title(){return Ct()},set title(oe){Ct(oe),u()},get thumbUrl(){return ie()},set thumbUrl(oe){ie(oe),u()},get videoContainer(){return et()},set videoContainer(oe){et(oe),u()},get interactiveContainer(){return ht()},set interactiveContainer(oe){ht(oe),u()},get live(){return ft()},set live(oe){ft(oe),u()},get autoplay(){return be()},set autoplay(oe){be(oe),u()},get canRewindLive(){return Pe()},set canRewindLive(oe){Pe(oe),u()},get showAds(){return ye()},set showAds(oe){ye(oe),u()},get adsSlotId(){return Ye()},set adsSlotId(oe=void 0){Ye(oe),u()},get adsParams(){return pt()},set adsParams(oe=void 0){pt(oe),u()},get adsPreviewParam(){return Ve()},set adsPreviewParam(oe=void 0){Ve(oe),u()},get adsAutoplayParam(){return _t()},set adsAutoplayParam(oe=void 0){_t(oe),u()},get duration(){return me()},set duration(oe=void 0){me(oe),u()},get logoClickable(){return Bt()},set logoClickable(oe){Bt(oe),u()},get logoHidden(){return Ut()},set logoHidden(oe){Ut(oe),u()},get logoTargetUrl(){return jt()},set logoTargetUrl(oe=""){jt(oe),u()},get showNextPrevButtons(){return We()},set showNextPrevButtons(oe=!1){We(oe),u()},get nextButtonActive(){return ct()},set nextButtonActive(oe=!1){ct(oe),u()},get prevButtonActive(){return gt()},set prevButtonActive(oe=!1){gt(oe),u()},get endScreenVideoTitle(){return kt()},set endScreenVideoTitle(oe=void 0){kt(oe),u()},get endScreenVideoThumb(){return qe()},set endScreenVideoThumb(oe=void 0){qe(oe),u()},get isOneVideoPlaylist(){return zt()},set isOneVideoPlaylist(oe=!1){zt(oe),u()},get supportLink(){return oi()},set supportLink(oe){oi(oe),u()},get shadowRootContainer(){return ri()},set shadowRootContainer(oe=void 0){ri(oe),u()},get outerContainerRef(){return vi()},set outerContainerRef(oe=void 0){vi(oe),u()},get playerStarted(){return mt()},set playerStarted(oe=!1){mt(oe),u()},get fullScreenTarget(){return dt()},set fullScreenTarget(oe=void 0){dt(oe),u()},get showMiniTimer(){return $t()},set showMiniTimer(oe=!1){$t(oe),u()},get showEndScreen(){return D()},set showEndScreen(oe=!0){D(oe),u()},get showAutoplayNext(){return Yt()},set showAutoplayNext(oe){Yt(oe),u()},get keyboardControls(){return li()},set keyboardControls(oe){li(oe),u()},get seekToInteractive(){return Ti()},set seekToInteractive(oe){Ti(oe),u()},get playPrevChapter(){return di()},set playPrevChapter(oe){di(oe),u()},get firstStart(){return gi()},set firstStart(oe){gi(oe),u()},$set:M,$on:(oe,Ht)=>A(e,oe,Ht)});return o(),Ir}bt(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as Ad,PlaybackState as Bx}from"@vkontakte/videoplayer-core/es2018";import{noop as Dx}from"@vkontakte/videoplayer-shared/es2018";var kx=F('<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),Ex=F("<div><!></div>"),Px={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;
311
+ .ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function _m(t,e){q(e,!0),Q(t,O3);let[i,o]=Ue(),n=()=>C(Oo,"$notificationsToShow$",i),a=()=>C(Io,"$playerPhase",i),s=()=>C(no,"$isLoaderVisible",i),d=()=>C(Mi,"$adPlaybackState",i),l=()=>C(Ft,"$crashed",i),u=()=>C(fn,"$isInteractiveTime$",i),f=()=>C(F,"$settingsMenuVisible",i),_=()=>C(yi,"$isInteractiveExpectation$",i),p=()=>C(ht,"$controlsVisible",i),$=()=>C(Do,"$touched",i),w=()=>C(gn,"$graphIsOpened$",i),y=()=>C(ko,"$isFullscreen",i),S=()=>C(Un,"$autoplayNextEnabled$",i),I=()=>C(Rt,"$postrollPassed",i),A=()=>C(ro,"$isEnded$",i),P=()=>C(bn,"$cursorInside",i),E=()=>C(ao,"$rotateAlpha",i),T=()=>C(ni,"$playerSize",i),V=()=>C(vn,"$fakeIsPlaying$",i),z=()=>C(Wn,"$bottomNoSmooth",i),Y=()=>C(Xo,"$interactiveTimeIndicator",i),U=()=>C(bt,"$is3DVideo",i),Z=()=>C(ri,"$contextMenuVisible$",i),X=()=>C(ei,"$playbackState$",i),oe=()=>C(mn,"$hotKeyMapData",i),ce=()=>C(Hi,"$scrubbingInProgress",i),le=()=>C(Li,"$volumeChangingInProgress",i),Ve=()=>C(Ki,"$chromecastConnected$",i),Me=()=>C(Wi,"$controlsTimeoutActive",i),J=()=>C(qt,"$settingsMenuOpenedByKeyboard",i),Le=()=>C(kr,"$contextMenuOpenedByKeyboard$",i),j=()=>C(pr,"$contextMenuButtonRef$",i),N=()=>C(sn,"$contextMenuOpenedByHotKey$",i),Ne=()=>C(Yn,"$contextMenuLastActiveElem$",i),ne=()=>C(Et,"$isFullscreenOpenedByKeyboard",i),ke=()=>C(yt,"$isPlaying$",i),Re=()=>C(ct,"$language$",i),ue=()=>C(di,"$icon3DVideoVisible",i),D=()=>C(Bo,"$chromecastDeviceName$",i),de=()=>C(Hn,"$currentSubtitle$",i),Ee=()=>C(bo,"$currentSubtitleCaptions$",i),We=()=>C(To,"$position$",i),lt=()=>C(No,"$realDuration$",i),Ae=()=>C(li,"$isLive$",i),$e=()=>C(Oi,"$duration$",i),Pe=()=>C(Jo,"$contextMenuPosition$",i),nt=()=>C(xi,"$showHotKeyMap",i),vt=()=>C(ai,"$debugPanelVisible",i),et=v(e,"videoContainer",15),Vt=v(e,"adsSlotId",3,void 0),rt=v(e,"adsParams",3,void 0),gt=v(e,"adsPreviewParam",3,void 0),Ot=v(e,"adsAutoplayParam",3,void 0),Ut=v(e,"duration",3,void 0),Be=v(e,"logoTargetUrl",3,""),re=v(e,"showNextPrevButtons",3,!1),W=v(e,"nextButtonActive",3,!1),se=v(e,"prevButtonActive",3,!1),ge=v(e,"endScreenVideoTitle",3,void 0),Se=v(e,"endScreenVideoThumb",3,void 0),De=v(e,"isOneVideoPlaylist",3,!1),pt=v(e,"shadowRootContainer",3,void 0),Ht=v(e,"outerContainerRef",3,void 0),Qe=v(e,"playerStarted",3,!1),dt=v(e,"fullScreenTarget",3,void 0),Xe=v(e,"showMiniTimer",3,!1),Ct=v(e,"showEndScreen",3,!0),Zt=v(e,"keyboardControls",15),qe=e.store.getLogger().createComponentLog("Root component"),ct=e.store.interfaceLanguage$,ei=e.store.state.playbackState$,Mi=e.store.ads.playbackState,To=e.store.state.positionWithScrubbing$,Oi=e.store.state.duration$,Io=e.store.playerPhase,ko=e.store.ui.isFullscreen,Et=e.store.ui.isFullscreenOpenedByKeyboard,ht=e.store.ui.controlsVisible,F=e.store.ui.settingsMenu.visible$,qt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Hi=e.store.ui.scrubbingInProgress,Li=e.store.ui.volumeChangingInProgress,ri=e.store.ui.contextMenu.visible$,ai=e.store.ui.debugPanelVisible,no=e.store.state.isLoaderVisible,ro=e.store.state.isEnded$,Ki=e.store.state.chromecastConnected$,Bo=e.store.state.chromecastDeviceName$,Rt=e.store.ads.postrollPassed,li=e.store.state.isLive$,yt=e.store.state.isPlaying$,Ft=e.store.state.crashed$,so=e.store.webApi.annotationsApi,jt=e.store.webApi.pictureInPictureApi,Hn=e.store.state.currentSubtitle$,bo=e.store.state.currentSubtitleCaptions$,No=e.store.state.duration$,ni=e.store.ui.playerSize,bt=e.store.ui.is3DVideo,di=e.store.ui.icon3DVideoVisible,ao=e.store.ui.rotateAlpha,mi=e.store.state.isInteractive,fn=e.store.state.isInteractiveTime$,yi=e.store.state.isInteractiveExpectation$,$o=e.store.state.hasInteractiveBranches,Do=e.store.ui.touched,mn=e.store.ui.modals.hotKeyMap.data,xi=e.store.ui.modals.hotKeyMap.show,Fn=e.store.ui.overlayContainer$,Xo=e.store.ui.controls.interactiveTimeIndicator,Eo=e.store.state.showInteractiveTimeIndicator,Jo=e.store.ui.contextMenu.position$,Sr=e.store.actions.internal.setQuality,nr=e.store.actions.internal.closeSettingsMenu,Un=e.store.ui.autoplayNextEnabled$,{fakeIsPlaying$:vn,notifications$:en,graphIsOpened$:gn}=oo(),lo=ee(void 0),Je=ee(void 0),tn=ee(void 0),zn=ee(void 0),qn,hn,on;mn.set(lh());let{closeNotification:nn,notificationsToShow$:Oo}=en,Fi=m(()=>!!n().slow_video),Ui=()=>nn("slow_video"),Kn=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),_n=ee(void 0),Wn=ae(!1),rr,Wi=ae(!1),Qi=ae(),bn=ae(!1),$n=ee(!1),co=ee(!1),Gi=ee(!1),yn=ee(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Ao=m(()=>u()&&!f()&&!(r($n)||r(co))&&!(r(Gi)&&!_())),Cr=!0,xn=m(()=>e.uiConfig.features.thumbTimer&&Xe()&&a()==="video"&&!p()&&!l()&&!mi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),sr=m(()=>a()==="video"&&!w()&&y()),wn=ee(!1),Sn=m(()=>(Ct()||e.showAutoplayNext&&S())&&!!ge()&&!!Se()&&(e.showAds&&I()||!e.showAds)&&A()&&!l()&&!r(wn)),Tr=m(()=>P()&&!(p()||r(Sn))&&!u()),Qn=ee(!1),ar=m(()=>et()&&E()%180?T().height/T().width:1),Gn=m(()=>V()!==null),{toggle:Cn}=vn,ti=!1,Ho=null;jt==null||jt.setContext(gl());let lr=()=>{e.autoplay&&!mi&&e.uiConfig.controls.showOnStartupAtAutoplay&&ft(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:lr});let Ir=()=>{window.clearTimeout(qn),Wi.set(!1)},it=()=>{window.clearTimeout(hn),Qi.set(null)},ft=ye=>{Ir(),Wi.set(!0),qn=window.setTimeout(()=>Wi.set(!1),ye);let At=ye-100;rr=window.setTimeout(()=>{z()&&Wn.set(!1)},At>0?At:ye)},wi=(ye,At)=>{it(),Qi.set(At),hn=window.setTimeout(()=>Qi.set(null),ye)},Yi=bt.subscribe(ye=>{di.set(ye),ye&&(window.clearTimeout(on),on=window.setTimeout(()=>di.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ji=async()=>{var At,Xt,ii,po;let ye=hs();if(ye){let ki=Ml(),oi=Mo();ye=ki===oi||ki===pt()}if(ye){ft(e.uiConfig.controls.hideTimeoutFullscreen);try{await(jt==null?void 0:jt.remove())}catch(ki){qe({message:String(ki)})}}ko.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),y()?(Xt=(At=e.store.callbacks)==null?void 0:At.onFullscreenEnter)==null||Xt.call(At):(po=(ii=e.store.callbacks)==null?void 0:ii.onFullscreenExit)==null||po.call(ii)},yo=ye=>{let{width:At,height:Xt}=ye.target;ni.set({width:At,height:Xt})},Po=()=>{let{width:ye,height:At}=r(lo).getBoundingClientRect();ni.set({width:ye,height:At})};Bt(()=>{var At;return Sc(ji),e.uiConfig.features.annotationsInside&&(so==null||so.init(r(lo))),Qs(jt)&&(jt==null||jt.assignPlayerContainer(r(lo)),jt==null||jt.registryExternalEventHandlers({resize:yo,leavepictureinpicture:Po})),e.interactiveContainer&&((At=et().parentElement)==null||At.insertBefore(e.interactiveContainer,et().nextSibling)),()=>{window.clearTimeout(qn),window.clearTimeout(rr),window.clearTimeout(hn),window.clearTimeout(on),Yi(),jt==null||jt.dispose().catch(Xt=>{qe({message:String(Xt)})}),Cc(ji)}});let Mo=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ht()?r(lo):Ht(),At=ye.getRootNode(),Xt=At instanceof ShadowRoot?At.host:At,ii=dt()instanceof HTMLElement&&dt().contains(Xt);return e.uiConfig.allowChangingFullscreenTarget&&dt()&&ii?dt():ye},xo=async()=>{hs()?(await wc(document),qe({message:"exit fullscreen"})):(qe({message:"request fullscreen"}),await xc(Mo()))},je=()=>{nr(),ri.set(!1)},St=ye=>{w()||(ye.preventDefault(),ri.set(!0),Jo.set({left:ye.clientX,top:ye.clientY}))};function Ii(){bn.set(!0),mi||ft(e.uiConfig.controls.hideTimeoutCursor)}function Vi(){mi||(Wn.set(!0),ft(e.uiConfig.controls.hideTimeoutCursor))}function Ri(){bn.set(!1),O(co,!1),O($n,!1),ti=!1,e.store.actions.internal.releaseCamera(),ft(e.uiConfig.controls.hideTimeout)}function vi(ye){return ye?ye.offsetTop+vi(ye.offsetParent):0}function zi(ye){return ye?ye.offsetLeft+zi(ye.offsetParent):0}function Zi(ye){if(Y()&&Eo){let At=ye.currentTarget,Xt=vi(At),ii=zi(At),po=ye.pageX-ii,ki=ye.pageY-Xt,{left:oi,bottom:si,right:hi}=Y(),qi=hi-oi;return po>=oi-qi&&ki<=si+qi}}function Tn(ye){if(r(lo)){let At=vi(ye.currentTarget),Xt=T().height,ii=ye.pageY-At;if(Zi(ye)){O(co,!1);return}ii<40?O(co,!0):ii>Xt-40?O($n,!0):(O(co,!1),f()||O($n,!1))}}function In(ye){Tn(ye),r(Ao)||ft(e.uiConfig.controls.hideTimeoutCursor),U()&&ti&&Ho&&e.store.actions.internal.moveCameraFocusPX(Ho.clientX-ye.clientX,Ho.clientY-ye.clientY,ye.timeStamp-Ho.timeStamp),Ho=ye}let dr=ye=>{ye.preventDefault(),ye.button===0&&(ti=!0,e.store.actions.internal.holdCamera()),ft(e.uiConfig.controls.hideTimeoutCursor)},Fo=ye=>{ye.preventDefault(),ye.button===0&&(Ho=ye,ti=!1,e.store.actions.internal.releaseCamera()),ft(e.uiConfig.controls.hideTimeoutCursor)},kn=ye=>{je(),Do.set(!0),ft(e.uiConfig.controls.hideTimeout),ye&&wi(e.uiConfig.controls.hideHotKeyHelpers,ye)},cr=()=>{var ye,At;je(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(At=e.store.callbacks)==null||At.onOpenHotKeyMap(oe()):xi.update(Xt=>!Xt)},ur=()=>{Do.set(!0)},kr=e.store.ui.contextMenu.openedByBtnKeyboard$,pr=e.store.ui.contextMenu.btnRef$,rn=ee(void 0),sn=e.store.ui.contextMenu.openedByHotKey$,Yn=e.store.ui.contextMenu.lastActiveElem$;Ye(()=>{Fn.set(r(_n))}),Ye(()=>{O(Gi,pe(r(yn)&&X()!==c1.PLAYING)),r(yn)||_t(()=>O(yn,!0))}),Ye(()=>{ht.set((r(Gi)||A()||f()||ce()||le()||Ve()||Me())&&!r(Ao)&&(a()==="video"||a()==="ads")&&!l())}),Ye(()=>{!ce()&&r(Qn)&&!u()&&ft(e.uiConfig.controls.hideTimeoutCursor),_t(()=>O(Qn,pe(ce())))}),Ye(()=>{r(zn),f(),J(),_t(()=>Na(r(zn),f(),J()))}),Ye(()=>{r(rn),Z(),Le(),_t(()=>Na(r(rn),Z(),Le()))}),Ye(()=>{let ye=j();ye&&(Z(),_t(()=>Ba(ye,Z(),kr)))}),Ye(()=>{r(rn),Z(),N(),_t(()=>Na(r(rn),Z(),N()))}),Ye(()=>{let ye=Ne();ye&&(Z(),_t(()=>mh(ye,Z(),sn)))}),Ye(()=>{var ye;!ne()&&y()&&(_t(()=>Et.set(!1)),(ye=Zt())==null||ye.focus())}),Ye(()=>{w()&&je()});let Er=H("video360");var uo=D3();It("blur",Bs,je),uo.__mousemove=In;var En=h(uo);let fr=m(()=>a()==="ads"),tt=m(()=>r(Gn)?Cn:void 0);ut(Bp(En,{toggleFullscreen:xo,hideContextMenu:je,showHotKeyHelpers:kn,showKeyMap:cr,get isAds(){return r(fr)},get fakePlayButtonHandler(){return r(tt)},get nextButtonActive(){return W()},get prevButtonActive(){return se()},children:(ye,At)=>{var Xt=N3(),ii=ve(Xt);let po;ii.__contextmenu=St,ii.__mousedown=dr,ii.__mouseup=Fo,ii.__click=[A3,Z,ri,f,F,je,A,ro,$o,Gn,Cn,Zt,Qe,e,ft,X,ei],ii.__dblclick=[E3,Cr,qe,xo,ft,e];var ki=h(ii);let oi;ut(ki,hi=>et(hi),()=>et()),g(ii);var si=M(ii,2);bl(si,Re,hi=>{var qi=B3(),Ei=ve(qi);let Si=m(()=>a()!=="thumb"||l()||mi&&e.autoplay);vd(Ei,{get hidden(){return r(Si)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ur=M(Ei,2);{var He=Fe=>{let Gt=m(()=>{var Uo;return(Uo=e.live)==null?void 0:Uo.startTime});gd(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Gt)}})};R(Ur,Fe=>{a()==="LiveWaitingStart"&&Fe(He)})}var Qt=M(Ur,2);{var _i=Fe=>{sa(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Qt,Fe=>{a()==="LiveWaitingRecover"&&Fe(_i)})}var wo=M(Qt,2);{var an=Fe=>{sa(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(wo,Fe=>{a()==="LiveWaitingRecord"&&Fe(an)})}var zr=M(wo,2);{var An=Fe=>{var Gt=M3();let Uo;var as=h(Gt);Ll(as,{get adsSlotId(){return Vt()},get adsParams(){return rt()},get adsPreviewParam(){return gt()},get adsAutoplayParam(){return Ot()},get duration(){return Ut()}}),g(Gt),k(zo=>Uo=te(Gt,1,"ads-container svelte-1b9vdl1",null,Uo,zo),[()=>({hidden:a()!=="ads"})]),b(Fe,Gt)};R(zr,Fe=>{e.showAds&&Qe()&&Fe(An)})}var Ar=M(zr,2);{var ja=Fe=>{let Gt=m(()=>!Ct()&&e.showAutoplayNext&&S());Lp(Fe,{get title(){return ge()},get thumb(){return Se()},get isHide(){return r(Gt)},clickCloseIcon:()=>O(wn,!0)})};R(Ar,Fe=>{r(Sn)&&ge()&&Se()&&Fe(ja)})}var Pn=M(Ar,2);{var Za=Fe=>{let Gt=m(()=>!p());Qf(Fe,{get title(){return e.title},get isHidden(){return r(Gt)}})};R(Pn,Fe=>{r(sr)&&Fe(Za)})}var la=M(Pn,2);{var da=Fe=>{let Gt=m(()=>a()==="video"&&p());ud(Fe,{get isShifted(){return r(Gt)}})};R(la,Fe=>{U()&&Fe(da)})}var Cs=M(la,2);{var st=Fe=>{var Gt=L3(),Uo=h(Gt);Pl(Uo,{"aria-label":Er}),g(Gt),b(Fe,Gt)};R(Cs,Fe=>{ue()&&Fe(st)})}var Ze=M(Cs,2);{var gi=Fe=>{fd(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return D()}})};R(Ze,Fe=>{Ve()&&Fe(gi)})}var Pr=M(Ze,2);{var Ts=Fe=>{pd(Fe,{get shifted(){return p()},get captions(){return Ee()},get position(){return We()},get playerSize(){return T()}})};R(Pr,Fe=>{de().value!=="off"&&Fe(Ts)})}var Mr=M(Pr,2);{var Lr=Fe=>{var Gt=V3();Gt.__contextmenu=St,Gt.__click=[P3,Z,ri,f,F,je];var Uo=h(Gt);md(Uo,{}),g(Gt),b(Fe,Gt)};R(Mr,Fe=>{l()&&Fe(Lr)})}var ss=M(Mr,2);{var Xa=Fe=>{let Gt=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Uo=m(()=>a()==="ads"),as=m(()=>e.canRewindLive&&lt()!==0);cd(Fe,{get bottomHidden(){return r(Gt)},get bottomNoSmooth(){return z()},get showControls(){return p()},get isAds(){return r(Uo)},get canRewindLive(){return r(as)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Be()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return re()},get nextButtonActive(){return W()},get prevButtonActive(){return se()},get isOneVideoPlaylist(){return De()},customFullscreenSupported:Cr,toggleFullscreen:xo,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Je)},set playerControlsWrapperRef(zo){O(Je,pe(zo))},get playerControlsRef(){return r(tn)},set playerControlsRef(zo){O(tn,pe(zo))}})};R(ss,Fe=>{Qe()&&Fe(Xa)})}var Md=M(ss,2);{var lu=Fe=>{var Gt=R3(),Uo=h(Gt);let as=m(()=>{var zo;return(zo=r(tn))==null?void 0:zo.clientHeight});bd(Uo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(as)},returnFocus:()=>{var zo;return(zo=Zt())==null?void 0:zo.focus()},get ref(){return r(zn)},set ref(zo){O(zn,pe(zo))}}),g(Gt),b(Fe,Gt)};R(Md,Fe=>{!Ve()&&a()!=="ads"&&Fe(lu)})}var Is=M(Md,2);let du=m(()=>!r(xn));Rl(Is,{get isLive(){return Ae()},get isHidden(){return r(du)},get isPlaying(){return ke()},get position(){return We()},get duration(){return $e()}});var Ja=M(Is,2);zf(Ja,{data:Qi});var el=M(Ja,2);Mp(el,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=Zt())==null?void 0:Fe.focus()},get visible(){return Z()},get playerContainerRef(){return r(lo)},get controlsContainerRef(){return r(Je)},get position(){return Pe()},get menuElementRef(){return r(rn)},set menuElementRef(Fe){O(rn,pe(Fe))}});var Ld=M(el,2);{var Vd=Fe=>{$d(Fe,{onClose:Ui,onSelectAutoQuality:()=>{Sr("auto"),Ui()}})};R(Ld,Fe=>{r(Fi)&&Fe(Vd)})}var ca=M(Ld,2);{var Rd=Fe=>{Xs(Fe,{})};R(ca,Fe=>{r(Kn)&&Fe(Rd)})}var Bd=M(ca,2);{var Nd=Fe=>{Op(Fe,{})};R(Bd,Fe=>{nt()&&Fe(Nd)})}var Dd=M(Bd,2);{var cu=Fe=>{Ol(Fe,{})};R(Dd,Fe=>{vt()&&Fe(cu)})}var uu=M(Dd,2);xl(uu,()=>"slot",!1,(Fe,Gt)=>{we(Fe,null,{name:yd})}),b(hi,qi)}),k((hi,qi)=>{po=te(ii,1,"video-wrapper svelte-1b9vdl1",null,po,hi),oi=te(ki,1,"video-container svelte-1b9vdl1",null,oi,qi),ot(ki,`transform: rotate(${E()}deg) scale(${r(ar)})`),Oe(ki,"data-is-playing",ke())},[()=>({hidden:a()!=="video",nocursor:r(Tr)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(ye,Xt)},$$slots:{default:!0}}),ye=>Zt(ye),()=>Zt());var Nt=M(En,2);ut(Nt,ye=>O(_n,ye),()=>r(_n)),g(uo),ut(uo,ye=>O(lo,ye),()=>r(lo)),It("mouseenter",uo,Ii),It("mouseleave",uo,Ri),It("click",uo,ur,!0),It("focusin",uo,Vi,!0),b(t,uo),K(),o()}at(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as xd,PlaybackState as Y3}from"@vkontakte/videoplayer-core/es2018";import{noop as j3}from"@vkontakte/videoplayer-shared/es2018";var H3=L('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),F3=L("<div><!></div>"),U3={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;
307
312
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
308
313
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
309
314
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -319,9 +324,9 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
319
324
  100% {
320
325
  opacity: 0;
321
326
  }
322
- }.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 Pd(t,e){if(new.target)return k({component:Pd,...t});E(e,!0),ne(t,Px);let i=p(e,"side",7),o=p(e,"seekStep",7,0),n=p(e,"handleSingleFirstClick",7),r=p(e,"handleSecondClick",7),l=ue(!1),d=0,a=0,c=ue(Ae(o())),f=_=>{_.stopPropagation(),a+=1,Y(c,o()*(a-1)),a===1?n()(_):(Y(l,!0),r()()),window.clearTimeout(d),d=window.setTimeout(()=>{a=0,Y(l,!1)},300)};ar(()=>{window.clearTimeout(d)});var g=Ex();g.__click=f;var m=x(g);{var h=_=>{var y=kx(),S=Ie(y),L=O(S,2),B=x(L),V=x(B),N=O(V,2),T=O(N,2);b(B);var U=O(B,2),K=x(U,!0);b(U),b(L),R(H=>{var G,J,de,te;jo(S,`semicircle ${(G=i())!=null?G:""} svelte-nhq2ld`),jo(V,`triangle ${(J=i())!=null?J:""} svelte-nhq2ld`),jo(N,`triangle ${(de=i())!=null?de:""} svelte-nhq2ld`),jo(T,`triangle ${(te=i())!=null?te:""} svelte-nhq2ld`),ke(K,H)},[()=>ee("doubletap_seek_step",{seconds:s(c).toFixed(0)})]),w(_,y)};W(m,_=>{s(l)&&_(h)})}return b(g),R(()=>{var _;return jo(g,`double-click-area ${(_=i())!=null?_:""} svelte-nhq2ld`)}),w(t,g),P({get side(){return i()},set side(_){i(_),u()},get seekStep(){return o()},set seekStep(_=0){o(_),u()},get handleSingleFirstClick(){return n()},set handleSingleFirstClick(_){n(_),u()},get handleSecondClick(){return r()},set handleSecondClick(_){r(_),u()},$set:M,$on:(_,y)=>A(e,_,y)})}bt(["click"]);var Ax=(t,e,i)=>{e(!1),i()},Mx=F('<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 class="thumb-overlay svelte-1qdxi6t"></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),Lx={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 Dp(t,e){if(new.target)return k({component:Dp,...t});E(e,!0),ne(t,Lx);let[i,o]=Xe(),n=()=>I(g,"$autoplayNextEnabled$",i),r=()=>I(m,"$timerNextVideoRunning$",i),l=p(e,"title",7),d=p(e,"thumb",7),a=p(e,"isHide",7),c=p(e,"clickCloseIcon",7),f=He(),g=f.ui.autoplayNextEnabled$,m=f.ui.timerNextVideoRunning$,h=f.actions.internal.nextVideoClick,_=f.actions.internal.nextVideoAnnouncementShow,y=f.actions.internal.nextVideoAnnouncementClick,S=f.actions.internal.nextVideoAnnouncementAuto,L=f.actions.internal.nextVideoAnnouncementCancel,B=()=>{h(!1),S()},V=()=>{c()(),L()};Kt(()=>{a()||_(),a()&&n()&&(h(!1),S())});var N=Ze(),T=Ie(N);{var U=H=>{var G=Mx(),J=O(Ie(G),2),de=x(J),te=x(de),xe=x(te,!0);b(te);var Ce=O(te,2);Hs(Ce,{onClick:V}),b(de);var Q=O(de,2);Q.__click=[Ax,h,y];var pe=x(Q),he=x(pe),j=x(he),ae=O(j,2);{var q=ce=>{ul(ce,{get isRunning(){return r()},onTimerEnded:B})};W(ae,ce=>{n()&&ce(q)})}b(he),b(pe);var Ge=O(pe,2),Re=x(Ge),X=x(Re,!0);b(Re),b(Ge),b(Q),b(J),R(ce=>{ke(xe,ce),fe(he,"style",`background-image: url('${d()}')`),re(j,"withOpacity",n()),ke(X,l())},[()=>n()?ee("end_screen_next_video"):ee("end_screen_recommended_video")]),w(H,G)};W(T,H=>{a()||H(U)})}w(t,N);var K=P({get title(){return l()},set title(H){l(H),u()},get thumb(){return d()},set thumb(H){d(H),u()},get isHide(){return a()},set isHide(H){a(H),u()},get clickCloseIcon(){return c()},set clickCloseIcon(H){c(H),u()},$set:M,$on:(H,G)=>A(e,H,G)});return o(),K}bt(["click"]);import{clientChecker as Vx}from"@vkontakte/videoplayer-core/es2018";var m_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Kt(()=>{Vx.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),ar(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Rx}from"@vkontakte/videoplayer-core/es2018";var Op=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Nx}from"@vkontakte/videoplayer-core/es2018";var v_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,c=()=>e().querySelector("video"),f=()=>Nx.device.isIOS&&Ne(l)===Rx.DASH_LIVE_CMAF,g=()=>{a==null||a(),a=null},m=h=>{if(g(),!f()||!h)return;let _=c();if(!_)return;let y=new Op(_),S=Ne(d),L=Ne(r),B=Ne(n);for(let T of S)L.some(K=>K.value===T.id)&&y.attach(T,B.value===T.id);let V=d.subscribe(T=>{for(let U of T)y.updateSrc(U)}),N=()=>{let T=y.getCurrentShowingId();o(Ne(r).find(U=>U.value===T))};_.textTracks.addEventListener("change",N),a=()=>{V(),y.detachAll(),_.textTracks.removeEventListener("change",N)}};Kt(()=>i.subscribe(m)),ar(g)};var Ox=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Hx=F("<!> <!>",1),Fx=F('<div class="ads-container svelte-dtyj47"><!></div>'),Ux=F('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),zx=F("<div><!></div>"),Wx=F('<div class="settings-mobile svelte-dtyj47"><!></div>'),qx=F("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Kx=F('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div class="video-wrapper svelte-dtyj47"><div class="video-container svelte-dtyj47" data-testid="video-container"></div></div> <!> <div class="overlay-container"></div></div>'),Qx={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-dtyj47,
327
+ }.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 Xc(t,e){q(e,!0),Q(t,U3);let i=v(e,"seekStep",3,0),o=ee(!1),n=0,a=0,s=ee(pe(i())),d=_=>{_.stopPropagation(),a+=1,O(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,O(o,!1)},300)};er(()=>{window.clearTimeout(n)});var l=F3();l.__click=d;var u=h(l);{var f=_=>{var p=H3(),$=ve(p),w=M($,2),y=h(w),S=h(y),I=M(S,2),A=M(I,2);g(y);var P=M(y,2),E=h(P,!0);g(P),g(w),k(T=>{var V,z,Y,U;te($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),te(I,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),te(A,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),fe(E,T)},[()=>H("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,p)};R(u,_=>{r(o)&&_(f)})}g(l),k(()=>{var _;return te(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),b(t,l),K()}at(["click"]);var z3=(t,e,i)=>{e(!1),i()},q3=L('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),K3={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 bm(t,e){q(e,!0),Q(t,K3);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),$()};Bt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=ze(),I=ve(S);{var A=P=>{var E=q3(),T=M(ve(E),2),V=h(T),z=h(V),Y=h(z,!0);g(z);var U=M(z,2);js(U,{onClick:y}),g(V);var Z=M(V,2);Z.__click=[z3,u,_];var X=h(Z),oe=h(X),ce=h(oe);let le;var Ve=M(ce,2);{var Me=N=>{Hl(N,{get isRunning(){return a()},onTimerEnded:w})};R(Ve,N=>{n()&&N(Me)})}g(oe),g(X);var J=M(X,2),Le=h(J),j=h(Le,!0);g(Le),g(J),g(Z),g(T),k((N,Ne)=>{fe(Y,N),ot(oe,`background-image: url('${e.thumb}')`),le=te(ce,1,"thumb-overlay svelte-1qdxi6t",null,le,Ne),fe(j,e.title)},[()=>n()?H("end_screen_next_video"):H("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,E)};R(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}at(["click"]);import{clientChecker as W3}from"@vkontakte/videoplayer-core/es2018";var u1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Bt(()=>{W3.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),er(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Q3}from"@vkontakte/videoplayer-core/es2018";var Jc=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as G3}from"@vkontakte/videoplayer-core/es2018";var p1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,u=()=>e().querySelector("video"),f=()=>G3.device.isIOS&&xe(s)===Q3.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},p=$=>{if(_(),!f()||!$)return;let w=u();if(!w)return;let y=new Jc(w),S=xe(d),I=xe(a),A=xe(n);for(let T of S)I.some(z=>z.value===T.id)&&y.attach(T,A.value===T.id);let P=d.subscribe(T=>{for(let V of T)y.updateSrc(V)}),E=()=>{let T=y.getCurrentShowingId();o(xe(a).find(V=>V.value===T))};w.textTracks.addEventListener("change",E),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",E)}};Bt(()=>i.subscribe(p)),er(_)};var Z3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},X3=L("<!> <!>",1),J3=L("<div><!></div>"),ex=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),tx=L("<div><!></div>"),ix=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),ox=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),nx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <div class="overlay-container"></div></div>'),rx={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-dtyj47,
323
328
  .video-container.svelte-dtyj47,
324
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function Hp(t,e){var $o,Ri;if(new.target)return k({component:Hp,...t});E(e,!0),ne(t,Qx);let[i,o]=Xe(),n=()=>I(di,"$playerPhase",i),r=()=>I(No,"$isLoaderVisible",i),l=()=>I(Yt,"$adPlaybackState",i),d=()=>I(Qt,"$crashed",i),a=()=>I(qn,"$notificationsToShow$",i),c=()=>I(D,"$playbackState$",i),f=()=>I(ci,"$graphIsOpened$",i),g=()=>I(ao,"$interactiveHideMobileControls",i),m=()=>I(tt,"$isEnded$",i),h=()=>I(Hn,"$isInteractiveExpectation$",i),_=()=>I(xi,"$controlsVisible",i),y=()=>I(Xo,"$touched",i),S=()=>I(rs,"$autoplayNextEnabled$",i),L=()=>I(To,"$postrollPassed",i),B=()=>I(Or,"$rotateAlpha",i),V=()=>I(Dn,"$playerSize",i),N=()=>I(en,"$bottomNoSmooth",i),T=()=>I(Nn,"$videoSize",i),U=()=>I(gi,"$isFullscreen",i),K=()=>I(li,"$position$",i),H=()=>I(Ti,"$duration$",i),G=()=>I(Fn,"$loadedMetadata",i),J=()=>I(si,"$settingsMenuVisible",i),de=()=>I(un,"$scrubbingInProgress",i),te=()=>I(ur,"$volumeChangingInProgress",i),xe=()=>I(Mt,"$chromecastConnected$",i),Ce=()=>I(eo,"$isInteractiveTime$",i),Q=()=>I(Ui,"$isActiveLive",i),pe=()=>I(So,"$settingsMenuOpenedByKeyboard",i),he=()=>I(Ii,"$isPlaying$",i),j=()=>I($t,"$language$",i),ae=()=>I(Bo,"$disabledControls$",i),q=()=>I(On,"$is3DVideo",i),Ge=()=>I(Eo,"$icon3DVideoVisible",i),Re=()=>I(lo,"$chromecastDeviceName$",i),X=()=>I(Bn,"$currentSubtitle$",i),ce=()=>I(Zo,"$currentSubtitleCaptions$",i),Be=()=>I(co,"$realDuration$",i),Z=()=>I(Rt,"$isLive$",i),De=()=>I(Rn,"$debugPanelVisible",i),le=p(e,"store",7),Ke=p(e,"uiConfig",7),lt=p(e,"thumbUrl",7),at=p(e,"videoContainer",15),we=p(e,"interactiveContainer",7),$e=p(e,"live",7),Je=p(e,"autoplay",7),vt=p(e,"canRewindLive",7),ve=p(e,"showAds",7),je=p(e,"adsSlotId",7,void 0),Ct=p(e,"adsParams",7,void 0),ie=p(e,"adsPreviewParam",7,void 0),et=p(e,"adsAutoplayParam",7,void 0),ht=p(e,"duration",7,void 0),ft=p(e,"logoClickable",7),be=p(e,"logoHidden",7),Pe=p(e,"logoTargetUrl",7,""),ye=p(e,"showNextPrevButtons",7,!1),Ye=p(e,"nextButtonActive",7,!1),pt=p(e,"prevButtonActive",7,!1),Ve=p(e,"endScreenVideoTitle",7,void 0),_t=p(e,"endScreenVideoThumb",7,void 0),me=p(e,"isOneVideoPlaylist",7,!1),Bt=p(e,"supportLink",7),Ut=p(e,"shadowRootContainer",7,void 0),jt=p(e,"outerContainerRef",7,void 0),We=p(e,"showMiniTimer",7,!1),ct=p(e,"fullScreenTarget",7,void 0),gt=p(e,"playerStarted",7,!1),kt=p(e,"showEndScreen",7,!0),qe=p(e,"showAutoplayNext",7),zt=p(e,"seekToInteractive",7),oi=p(e,"playPrevChapter",7),ri=p(e,"firstStart",7),vi=p(e,"seekTime",7),{notifications$:mt}=Co(),dt=le().getLogger().createComponentLog("Root component"),$t=le().interfaceLanguage$,D=le().state.playbackState$,Yt=le().ads.playbackState,li=le().state.positionWithScrubbing$,Ti=le().state.duration$,di=le().playerPhase,gi=le().ui.isFullscreen,xi=le().ui.controlsVisible,ao=le().ui.interactiveHideMobileControls,si=le().ui.settingsMenu.visible$,So=le().ui.settingsMenu.openedByBtnKeyboard$,un=le().ui.scrubbingInProgress,ur=le().ui.volumeChangingInProgress,Rn=le().ui.debugPanelVisible,No=le().state.isLoaderVisible,tt=le().state.isEnded$,Mt=le().state.chromecastConnected$,lo=le().state.chromecastDeviceName$,To=le().ads.postrollPassed,Io=le().ui.mobileUnmuteButtonExpanded,Yi=le().ui.mobileUnmuteButtonVisible,Rt=le().state.isLive$,Ii=le().state.isPlaying$,Ui=le().state.isActiveLive$,ko=le().state.isRewindableLive$,Qt=le().state.crashed$,Mi=le().webApi.annotationsApi,ni=le().webApi.pictureInPictureApi,Nn=le().state.videoSize$,Bn=le().state.currentSubtitle$,Zo=le().state.currentSubtitleCaptions$,co=le().state.duration$,ci=le().state.graphIsOpened$,Dn=le().ui.playerSize,On=le().ui.is3DVideo,Eo=le().ui.icon3DVideoVisible,Or=le().ui.rotateAlpha,Po=le().state.isInteractive,eo=le().state.isInteractiveTime$,Hn=le().state.isInteractiveExpectation$,pr=le().state.hasInteractiveBranches,Bo=le().ui.controls.disabledControls$,Xo=le().ui.touched,fr=le().ui.overlayContainer$,rs=le().ui.autoplayNextEnabled$,Fn=le().state.loadedMetadata$,Un=le().actions.internal.closeSettingsMenu,uo=($o=le().callbacks)==null?void 0:$o.onDisabledPlayPrevChapterClick,zn=(Ri=le().callbacks)==null?void 0:Ri.onDisabledSeekToInteractiveClick,Wn=le().actions.internal.setQuality,Li=ue(void 0),to=ue(void 0),pn=ue(void 0),fn=ue(void 0),mr,mn,Jo,Vi=$(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),vn=ue(void 0),{closeNotification:yt,notificationsToShow$:qn}=mt,vr=$(()=>!!a().slow_video),Kn=()=>yt("slow_video"),en=Se(!1),gr,Do=ue(!1),Hr=$(()=>c()!==Bx.PLAYING),Qn=ue(!1),hr=$(()=>f()||g()||!s(Do)&&(m()&&!!pr||s(Hr)&&h())),gn=ue(!0),Gn=$(()=>Ke().features.thumbTimer&&We()&&n()==="video"&&!_()&&!d()&&!Po&&(Ke().hideThumbTimerAfterTouch&&!y()||!Ke().hideThumbTimerAfterTouch)),Yn=ue(!1),_o=$(()=>(kt()||qe()&&S())&&!!Ve()&&!!_t()&&(ve()&&L()||!ve())&&m()&&!d()&&!s(Yn)),Oo=ue(!1),io=$(()=>at()&&B()%180?V().height/V().width:1);ni==null||ni.setContext(Jl());let Ho=ge=>{clearTimeout(mn),ge&&(Yi.set(!0),Io.set(!0),mn=setTimeout(()=>{Io.set(!1)},Ke().controls.collapseMobileUnmute),Po||Wi(Ke().controls.hideTimeoutMobile))};le().setUiCallbacks({onStarted:Ho});let zi=()=>{clearTimeout(mr),Y(Do,!1),g()&&ao.set(!1)},Wi=ge=>{zi(),Y(Do,!0),mr=setTimeout(()=>Y(Do,!1),ge);let Pt=ge-100;gr=setTimeout(()=>{N()&&en.set(!1)},Pt>0?Pt:ge)},_r=On.subscribe(ge=>{Eo.set(ge),ge&&(clearTimeout(Jo),Jo=setTimeout(()=>Eo.set(!1),Ke().controls.hide360IconTimeout))}),hn=async(ge=Ns())=>{var Pt,$i,Ei,ai,ji,bo;if(ge&&!Ad.device.isIOS){let Ni=_d(),on=$n(),nn=Ad.browser.isSamsungBrowser&&Ni===Ut();ge=Ni===on||nn}if(ge){Wi(Ke().controls.hideTimeoutFullscreen);try{await(ni==null?void 0:ni.remove())}catch(Ni){dt({message:String(Ni)})}try{let Ni=(Pt=T())!=null&&Pt.width&&(($i=T())!=null&&$i.height)?T():V();await oh(Ni)}catch(Ni){dt({message:String(Ni)})}}gi.set(ge),le().getAdmanWrapper().setFullscreen(ge),U()?(ai=(Ei=le().callbacks)==null?void 0:Ei.onFullscreenEnter)==null||ai.call(Ei):(bo=(ji=le().callbacks)==null?void 0:ji.onFullscreenExit)==null||bo.call(ji)},Fr=ge=>{let Pt=ge;Dn.set({width:Pt.target.width,height:Pt.target.height})};Kt(()=>{var ge;return Rc(hn),Ke().features.annotationsInside&&(Mi==null||Mi.init(s(Li))),ha(ni)&&(ni==null||ni.assignPlayerContainer(s(Li)),ni==null||ni.registryExternalEventHandlers({resize:Fr})),Y(gn,!Ad.device.isIphoneOrOldIpad),we()&&((ge=at().parentElement)==null||ge.insertBefore(we(),at().nextSibling)),()=>{clearTimeout(mr),clearTimeout(gr),clearTimeout(mn),clearTimeout(Jo),_r(),ni==null||ni.dispose().catch(Pt=>{dt({message:String(Pt)})}),Nc(hn)}});let _n=ue(!0),$r=ue(!0),jn=ge=>{let Pt=K()+(ge==="forward"?1:-1)*Ke().controls.seekStepMobile/1e3;Pt<0?(Y(_n,!1),Pt=0):Pt>=H()&&(Y($r,!1),Pt=H()),Y(Qn,!0),vi()(Pt)},$n=()=>{let ge=Ad.device.isIOS||Ke().features.fullscreenInternalTargetPlayerContainer||!jt()?s(Li):jt(),Pt=ge.getRootNode(),$i=Pt instanceof ShadowRoot?Pt.host:Pt,Ei=ct()instanceof HTMLElement&&ct().contains($i);return Ke().allowChangingFullscreenTarget&&ct()&&Ei?ct():ge},Ur=async()=>{try{if(Ns())await Vc(document),dt({message:"exit fullscreen"});else{if(dt({message:"request fullscreen"}),Ad.device.isIOS&&!G())return;await Lc($n())}}catch(ge){dt({message:String(ge)})}},Zn=()=>{Un()},Xn=ge=>{if(ge.preventDefault(),J()){Zn();return}if(!gt()){ri()(),Wi(Ke().controls.hideTimeoutCursor);return}Y(Qn,!1),_()?zi():Wi(Ke().controls.hideTimeoutMobile)},hi=()=>{Xo.set(!0)},br=()=>{Po||(en.set(!0),Wi(Ke().controls.hideTimeoutCursor))},bn=ge=>{uo&&(uo(ge),Wi(Ke().controls.hideTimeoutMobile))},Fo=ge=>{zn&&(zn(ge),Wi(Ke().controls.hideTimeoutMobile))};rt(()=>{fr.set(s(vn))}),rt(()=>{xi.set((s(Hr)||J()||de()||te()||xe()||!s(_o)&&(m()||s(Do)&&!s(Qn)))&&!s(hr)&&n()==="video"&&!d())}),rt(()=>{!de()&&s(Oo)&&!Ce()&&Wi(Ke().controls.hideTimeoutMobile),Y(Oo,Ae(de()))}),rt(()=>{Y(_n,K()>0),Y($r,Ae(!Q()&&K()<H()))}),rt(()=>{ts(s(fn),J(),pe())});let zr=ee("aria_label_video_player"),Jn=ee("video360");m_({fullScreenChangeHandler:hn,getFullscreenTarget:$n}),v_({store:le(),getFullscreenTarget:$n});var Ao=Kx();Ft("blur",la,Zn),fe(Ao,"aria-label",zr);var Te=x(Ao);Te.__click=Xn;var Dt=x(Te);xt(Dt,ge=>at(ge),()=>at()),b(Te);var ki=O(Te,2);ad(ki,j,ge=>{var Pt=qx(),$i=Ie(Pt);let Ei=$(()=>n()!=="thumb"||d()||Po&&Je());Dl($i,{get hidden(){return s(Ei)},get thumbUrl(){return lt()},get startVideo(){return ri()}});var ai=O($i,2);{var ji=it=>{var Zt=Hx(),wi=Ie(Zt);{var Cn=Sn=>{let qr=$(()=>Ke().controls.seekStepMobile/1e3);Pd(Sn,{side:"left",get seekStep(){return s(qr)},handleSingleFirstClick:Xn,handleSecondClick:()=>jn("backward")})};W(wi,Sn=>{s(_n)&&Sn(Cn)})}var ir=O(wi,2);{var Ss=Sn=>{let qr=$(()=>Ke().controls.seekStepMobile/1e3);Pd(Sn,{side:"right",get seekStep(){return s(qr)},handleSingleFirstClick:Xn,handleSecondClick:()=>jn("forward")})};W(ir,Sn=>{s($r)&&Sn(Ss)})}w(it,Zt)};W(ai,it=>{vt()&&ko&&!ae().has("TIMELINE")&&it(ji)})}var bo=O(ai,2);{var Ni=it=>{let Zt=$(()=>{var wi;return(wi=$e())==null?void 0:wi.startTime});Ol(it,{get thumbUrl(){return lt()},get startTime(){return s(Zt)}})};W(bo,it=>{n()==="LiveWaitingStart"&&it(Ni)})}var on=O(bo,2);{var nn=it=>{Ys(it,{kind:"recover",get thumbUrl(){return lt()}})};W(on,it=>{n()==="LiveWaitingRecover"&&it(nn)})}var yn=O(on,2);{var xn=it=>{Ys(it,{kind:"record",get thumbUrl(){return lt()}})};W(yn,it=>{n()==="LiveWaitingRecord"&&it(xn)})}var yr=O(yn,2);{var xr=it=>{var Zt=Fx(),wi=x(Zt);il(wi,{get adsSlotId(){return je()},get adsParams(){return Ct()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return et()},get duration(){return ht()}}),b(Zt),R(()=>re(Zt,"hidden",n()!=="ads")),w(it,Zt)};W(yr,it=>{ve()&&gt()&&it(xr)})}var wr=O(yr,2);{var ss=it=>{let Zt=$(()=>!kt()&&qe()&&S());Dp(it,{get title(){return Ve()},get thumb(){return _t()},get isHide(){return s(Zt)},clickCloseIcon:()=>Y(Yn,!0)})};W(wr,it=>{s(_o)&&Ve()&&_t()&&it(ss)})}var rn=O(wr,2);{var Cr=it=>{Vl(it,{})};W(rn,it=>{q()&&it(Cr)})}var yo=O(rn,2);{var er=it=>{var Zt=Ux(),wi=x(Zt);el(wi,{"aria-label":Jn}),b(Zt),w(it,Zt)};W(yo,it=>{Ge()&&it(er)})}var Sr=O(yo,2);{var Uo=it=>{Nl(it,{get thumbUrl(){return lt()},get chromecastDeviceName(){return Re()}})};W(Sr,it=>{xe()&&it(Uo)})}var ut=O(Sr,2);{var Jt=it=>{Rl(it,{get shifted(){return _()},get captions(){return ce()},get position(){return K()},get playerSize(){return V()},isMobile:!0})};W(ut,it=>{X().value!=="off"&&it(Jt)})}var bi=O(ut,2);{var Tr=it=>{var Zt=zx();Zt.__click=[Ox,J,si,Zn];var wi=x(Zt);Bl(wi,{}),b(Zt),w(it,Zt)};W(bi,it=>{d()&&it(Tr)})}var wn=O(bi,2);{var Ir=it=>{let Zt=$(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),wi=$(()=>n()==="ads"),Cn=$(()=>vt()&&Be()!==0);Ll(it,{get bottomHidden(){return s(Zt)},get showControls(){return _()},get bottomNoSmooth(){return N()},get isAds(){return s(wi)},get canRewindLive(){return s(Cn)},get logoClickable(){return ft()},get logoHidden(){return be()},get logoTargetUrl(){return Pe()},get showAutoplayNext(){return qe()},get showNextPrevButtons(){return ye()},get nextButtonActive(){return Ye()},get prevButtonActive(){return pt()},get isOneVideoPlaylist(){return me()},get customFullscreenSupported(){return s(gn)},get endScreenShown(){return s(_o)},toggleFullscreen:Ur,get seekToInteractive(){return zt()},get playPrevChapter(){return oi()},onDisabledPlayPrevChapterClick:bn,onDisabledSeekToInteractiveClick:Fo,get playerControlsWrapperRef(){return s(to)},set playerControlsWrapperRef(ir){Y(to,Ae(ir))},get playerControlsRef(){return s(pn)},set playerControlsRef(ir){Y(pn,Ae(ir))}})};W(wn,it=>{gt()&&it(Ir)})}var oe=O(wn,2);{var Ht=it=>{var Zt=Wx(),wi=x(Zt);Ul(wi,{get supportLink(){return Bt()},returnFocus:Dx,get ref(){return s(fn)},set ref(Cn){Y(fn,Ae(Cn))}}),b(Zt),w(it,Zt)};W(oe,it=>{J()&&it(Ht)})}var Gt=O(oe,2);let Et=$(()=>!s(Gn));nl(Gt,{get isLive(){return Z()},get isHidden(){return s(Et)},get isPlaying(){return he()},get position(){return K()},get duration(){return H()}});var Bi=O(Gt,2);{var ui=it=>{Us(it,{})};W(Bi,it=>{s(Vi)&&it(ui)})}var qi=O(Bi,2);{var Wr=it=>{cl(it,{})};W(qi,it=>{De()&&it(Wr)})}var tr=O(qi,2);{var Mo=it=>{zl(it,{onClose:Kn,onSelectAutoQuality:()=>{Wn("auto"),Kn()}})};W(tr,it=>{s(vr)&&it(Mo)})}var as=O(tr,2);dd(as,()=>"slot",!1,(it,Zt)=>{Oe(it,null,{name:Ed},"svelte-dtyj47",it.namespaceURI===ta,it.nodeName.includes("-"))}),w(ge,Pt)});var _i=O(ki,2);xt(_i,ge=>Y(vn,ge),()=>s(vn)),b(Ao),xt(Ao,ge=>Y(Li,ge),()=>s(Li)),R(()=>{re(Te,"hidden",n()!=="video"),fe(Dt,"style",`transform: rotate(${B()}deg) scale(${s(io)})`),fe(Dt,"data-is-playing",he()),re(Dt,"fast-rotate",!Ke().isSmoothVideoRotate)}),Ft("click",Ao,hi,!0),Ft("focusin",Ao,br,!0),w(t,Ao);var tn=P({get store(){return le()},set store(ge){le(ge),u()},get uiConfig(){return Ke()},set uiConfig(ge){Ke(ge),u()},get thumbUrl(){return lt()},set thumbUrl(ge){lt(ge),u()},get videoContainer(){return at()},set videoContainer(ge){at(ge),u()},get interactiveContainer(){return we()},set interactiveContainer(ge){we(ge),u()},get live(){return $e()},set live(ge){$e(ge),u()},get autoplay(){return Je()},set autoplay(ge){Je(ge),u()},get canRewindLive(){return vt()},set canRewindLive(ge){vt(ge),u()},get showAds(){return ve()},set showAds(ge){ve(ge),u()},get adsSlotId(){return je()},set adsSlotId(ge=void 0){je(ge),u()},get adsParams(){return Ct()},set adsParams(ge=void 0){Ct(ge),u()},get adsPreviewParam(){return ie()},set adsPreviewParam(ge=void 0){ie(ge),u()},get adsAutoplayParam(){return et()},set adsAutoplayParam(ge=void 0){et(ge),u()},get duration(){return ht()},set duration(ge=void 0){ht(ge),u()},get logoClickable(){return ft()},set logoClickable(ge){ft(ge),u()},get logoHidden(){return be()},set logoHidden(ge){be(ge),u()},get logoTargetUrl(){return Pe()},set logoTargetUrl(ge=""){Pe(ge),u()},get showNextPrevButtons(){return ye()},set showNextPrevButtons(ge=!1){ye(ge),u()},get nextButtonActive(){return Ye()},set nextButtonActive(ge=!1){Ye(ge),u()},get prevButtonActive(){return pt()},set prevButtonActive(ge=!1){pt(ge),u()},get endScreenVideoTitle(){return Ve()},set endScreenVideoTitle(ge=void 0){Ve(ge),u()},get endScreenVideoThumb(){return _t()},set endScreenVideoThumb(ge=void 0){_t(ge),u()},get isOneVideoPlaylist(){return me()},set isOneVideoPlaylist(ge=!1){me(ge),u()},get supportLink(){return Bt()},set supportLink(ge){Bt(ge),u()},get shadowRootContainer(){return Ut()},set shadowRootContainer(ge=void 0){Ut(ge),u()},get outerContainerRef(){return jt()},set outerContainerRef(ge=void 0){jt(ge),u()},get showMiniTimer(){return We()},set showMiniTimer(ge=!1){We(ge),u()},get fullScreenTarget(){return ct()},set fullScreenTarget(ge=void 0){ct(ge),u()},get playerStarted(){return gt()},set playerStarted(ge=!1){gt(ge),u()},get showEndScreen(){return kt()},set showEndScreen(ge=!0){kt(ge),u()},get showAutoplayNext(){return qe()},set showAutoplayNext(ge){qe(ge),u()},get seekToInteractive(){return zt()},set seekToInteractive(ge){zt(ge),u()},get playPrevChapter(){return oi()},set playPrevChapter(ge){oi(ge),u()},get firstStart(){return ri()},set firstStart(ge){ri(ge),u()},get seekTime(){return vi()},set seekTime(ge){vi(ge),u()},$set:M,$on:(ge,Pt)=>A(e,ge,Pt)});return o(),tn}bt(["click"]);function Fp(t){let e="";return Vn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Vn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Vn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Vn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Vn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Vn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Vn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Vn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Vn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Vn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Vn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Vn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Vn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Vn(t){return typeof t=="string"&&!t.includes(";")}var Xx=F('<div class="root svelte-1cnbt6x"><!></div>'),Jx={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
329
+ .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function $m(t,e){var Mo,xo;q(e,!0),Q(t,rx);let[i,o]=Ue(),n=()=>C(Zt,"$playerPhase",i),a=()=>C(Et,"$isLoaderVisible",i),s=()=>C(dt,"$adPlaybackState",i),d=()=>C(Bo,"$crashed",i),l=()=>C(zn,"$notificationsToShow$",i),u=()=>C(Qe,"$playbackState$",i),f=()=>C(De,"$graphIsOpened$",i),_=()=>C(ei,"$interactiveHideMobileControls",i),p=()=>C(ht,"$isEnded$",i),$=()=>C(ao,"$isInteractiveExpectation$",i),w=()=>C(ct,"$controlsVisible",i),y=()=>C(yi,"$touched",i),S=()=>C(Do,"$autoplayNextEnabled$",i),I=()=>C(Hi,"$postrollPassed",i),A=()=>C(ni,"$rotateAlpha",i),P=()=>C(Hn,"$playerSize",i),E=()=>C(on,"$bottomNoSmooth",i),T=()=>C(yt,"$videoSize",i),V=()=>C(qe,"$isFullscreen",i),z=()=>C(Xe,"$position$",i),Y=()=>C(Ct,"$duration$",i),U=()=>C(mn,"$loadedMetadata",i),Z=()=>C(Mi,"$settingsMenuVisible",i),X=()=>C(Oi,"$scrubbingInProgress",i),oe=()=>C(Io,"$volumeChangingInProgress",i),ce=()=>C(F,"$chromecastConnected$",i),le=()=>C(di,"$isInteractiveTime$",i),Ve=()=>C(ro,"$isActiveLive",i),Me=()=>C(To,"$settingsMenuOpenedByKeyboard",i),J=()=>C(no,"$isPlaying$",i),Le=()=>C(Ht,"$language$",i),j=()=>C(fn,"$disabledControls$",i),N=()=>C(bo,"$is3DVideo",i),Ne=()=>C(No,"$icon3DVideoVisible",i),ne=()=>C(qt,"$chromecastDeviceName$",i),ke=()=>C(Ft,"$currentSubtitle$",i),Re=()=>C(so,"$currentSubtitleCaptions$",i),ue=()=>C(jt,"$realDuration$",i),D=()=>C(ai,"$isLive$",i),de=()=>C(ko,"$debugPanelVisible",i),Ee=v(e,"videoContainer",15),We=v(e,"adsSlotId",3,void 0),lt=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),$e=v(e,"adsAutoplayParam",3,void 0),Pe=v(e,"duration",3,void 0),nt=v(e,"logoTargetUrl",3,""),vt=v(e,"showNextPrevButtons",3,!1),et=v(e,"nextButtonActive",3,!1),Vt=v(e,"prevButtonActive",3,!1),rt=v(e,"endScreenVideoTitle",3,void 0),gt=v(e,"endScreenVideoThumb",3,void 0),Ot=v(e,"isOneVideoPlaylist",3,!1),Ut=v(e,"shadowRootContainer",3,void 0),Be=v(e,"outerContainerRef",3,void 0),re=v(e,"showMiniTimer",3,!1),W=v(e,"fullScreenTarget",3,void 0),se=v(e,"playerStarted",3,!1),ge=v(e,"showEndScreen",3,!0),{notifications$:Se,graphIsOpened$:De}=oo(),pt=e.store.getLogger().createComponentLog("Root component"),Ht=e.store.interfaceLanguage$,Qe=e.store.state.playbackState$,dt=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,Ct=e.store.state.duration$,Zt=e.store.playerPhase,qe=e.store.ui.isFullscreen,ct=e.store.ui.controlsVisible,ei=e.store.ui.interactiveHideMobileControls,Mi=e.store.ui.settingsMenu.visible$,To=e.store.ui.settingsMenu.openedByBtnKeyboard$,Oi=e.store.ui.scrubbingInProgress,Io=e.store.ui.volumeChangingInProgress,ko=e.store.ui.debugPanelVisible,Et=e.store.state.isLoaderVisible,ht=e.store.state.isEnded$,F=e.store.state.chromecastConnected$,qt=e.store.state.chromecastDeviceName$,Hi=e.store.ads.postrollPassed,Li=e.store.ui.mobileUnmuteButtonExpanded,ri=e.store.ui.mobileUnmuteButtonVisible,ai=e.store.state.isLive$,no=e.store.state.isPlaying$,ro=e.store.state.isActiveLive$,Ki=e.store.state.isRewindableLive$,Bo=e.store.state.crashed$,Rt=e.store.webApi.annotationsApi,li=e.store.webApi.pictureInPictureApi,yt=e.store.state.videoSize$,Ft=e.store.state.currentSubtitle$,so=e.store.state.currentSubtitleCaptions$,jt=e.store.state.duration$,Hn=e.store.ui.playerSize,bo=e.store.ui.is3DVideo,No=e.store.ui.icon3DVideoVisible,ni=e.store.ui.rotateAlpha,bt=e.store.state.isInteractive,di=e.store.state.isInteractiveTime$,ao=e.store.state.isInteractiveExpectation$,mi=e.store.state.hasInteractiveBranches,fn=e.store.ui.controls.disabledControls$,yi=e.store.ui.touched,$o=e.store.ui.overlayContainer$,Do=e.store.ui.autoplayNextEnabled$,mn=e.store.state.loadedMetadata$,xi=e.store.actions.internal.closeSettingsMenu,Fn=(Mo=e.store.callbacks)==null?void 0:Mo.onDisabledPlayPrevChapterClick,Xo=(xo=e.store.callbacks)==null?void 0:xo.onDisabledSeekToInteractiveClick,Eo=e.store.actions.internal.setQuality,Jo=ee(void 0),Sr=ee(void 0),nr=ee(void 0),Un=ee(void 0),vn,en,gn,lo=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Je=ee(void 0),{closeNotification:tn,notificationsToShow$:zn}=Se,qn=m(()=>!!l().slow_video),hn=()=>tn("slow_video"),on=ae(!1),nn,Oo=ee(!1),Fi=m(()=>u()!==Y3.PLAYING),Ui=ee(!1),Kn=m(()=>f()||_()||!r(Oo)&&(p()&&!!mi||r(Fi)&&$())),_n=ee(!0),Wn=m(()=>e.uiConfig.features.thumbTimer&&re()&&n()==="video"&&!w()&&!d()&&!bt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),rr=ee(!1),Wi=m(()=>(ge()||e.showAutoplayNext&&S())&&!!rt()&&!!gt()&&(e.showAds&&I()||!e.showAds)&&p()&&!d()&&!r(rr)),Qi=ee(!1),bn=m(()=>Ee()&&A()%180?P().height/P().width:1);li==null||li.setContext(gl());let $n=je=>{clearTimeout(en),je&&(ri.set(!0),Li.set(!0),en=setTimeout(()=>{Li.set(!1)},e.uiConfig.controls.collapseMobileUnmute),bt||Gi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:$n});let co=()=>{clearTimeout(vn),O(Oo,!1),_()&&ei.set(!1)},Gi=je=>{co(),O(Oo,!0),vn=setTimeout(()=>O(Oo,!1),je);let St=je-100;nn=setTimeout(()=>{E()&&on.set(!1)},St>0?St:je)},yn=bo.subscribe(je=>{No.set(je),je&&(clearTimeout(gn),gn=setTimeout(()=>No.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ao=async(je=hs())=>{var St,Ii,Vi,Ri,vi,zi;if(je&&!xd.device.isIOS){let Zi=Ml(),Tn=Sn(),In=xd.browser.isSamsungBrowser&&Zi===Ut();je=Zi===Tn||In}if(je){Gi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(li==null?void 0:li.remove())}catch(Zi){pt({message:String(Zi)})}try{let Zi=(St=T())!=null&&St.width&&((Ii=T())!=null&&Ii.height)?T():P();await sh(Zi)}catch(Zi){pt({message:String(Zi)})}}qe.set(je),e.store.getAdmanWrapper().setFullscreen(je),V()?(Ri=(Vi=e.store.callbacks)==null?void 0:Vi.onFullscreenEnter)==null||Ri.call(Vi):(zi=(vi=e.store.callbacks)==null?void 0:vi.onFullscreenExit)==null||zi.call(vi)},Cr=je=>{let St=je;Hn.set({width:St.target.width,height:St.target.height})};Bt(()=>{var je;return Sc(Ao),e.uiConfig.features.annotationsInside&&(Rt==null||Rt.init(r(Jo))),Qs(li)&&(li==null||li.assignPlayerContainer(r(Jo)),li==null||li.registryExternalEventHandlers({resize:Cr})),O(_n,!xd.device.isIphoneOrOldIpad),e.interactiveContainer&&((je=Ee().parentElement)==null||je.insertBefore(e.interactiveContainer,Ee().nextSibling)),()=>{clearTimeout(vn),clearTimeout(nn),clearTimeout(en),clearTimeout(gn),yn(),li==null||li.dispose().catch(St=>{pt({message:String(St)})}),Cc(Ao)}});let xn=ee(!0),sr=ee(!0),wn=je=>{let St=z()+(je==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;St<0?(O(xn,!1),St=0):St>=Y()&&(O(sr,!1),St=Y()),O(Ui,!0),e.seekTime(St)},Sn=()=>{let je=xd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Be()?r(Jo):Be(),St=je.getRootNode(),Ii=St instanceof ShadowRoot?St.host:St,Vi=W()instanceof HTMLElement&&W().contains(Ii);return e.uiConfig.allowChangingFullscreenTarget&&W()&&Vi?W():je},Tr=async()=>{try{if(hs())await wc(document),pt({message:"exit fullscreen"});else{if(pt({message:"request fullscreen"}),xd.device.isIOS&&!U())return;await xc(Sn())}}catch(je){pt({message:String(je)})}},Qn=()=>{xi()},ar=je=>{if(je.preventDefault(),Z()){Qn();return}if(!se()){e.firstStart(),Gi(e.uiConfig.controls.hideTimeoutCursor);return}O(Ui,!1),w()?co():Gi(e.uiConfig.controls.hideTimeoutMobile)},Gn=()=>{yi.set(!0)},Cn=()=>{bt||(on.set(!0),Gi(e.uiConfig.controls.hideTimeoutCursor))},ti=je=>{Fn&&(Fn(je),Gi(e.uiConfig.controls.hideTimeoutMobile))},Ho=je=>{Xo&&(Xo(je),Gi(e.uiConfig.controls.hideTimeoutMobile))};Ye(()=>{$o.set(r(Je))}),Ye(()=>{ct.set((r(Fi)||Z()||X()||oe()||ce()||!r(Wi)&&(p()||r(Oo)&&!r(Ui)))&&!r(Kn)&&n()==="video"&&!d())}),Ye(()=>{!X()&&r(Qi)&&!le()&&Gi(e.uiConfig.controls.hideTimeoutMobile),O(Qi,pe(X()))}),Ye(()=>{O(xn,z()>0),O(sr,pe(!Ve()&&z()<Y()))}),Ye(()=>{Na(r(Un),Z(),Me())});let lr=H("aria_label_video_player"),Ir=H("video360");u1({fullScreenChangeHandler:Ao,getFullscreenTarget:Sn}),p1({store:e.store,getFullscreenTarget:Sn});var it=nx();It("blur",Bs,Qn),Oe(it,"aria-label",lr);var ft=h(it);let wi;ft.__click=ar;var Yi=h(ft);let ji;ut(Yi,je=>Ee(je),()=>Ee()),g(ft);var yo=M(ft,2);bl(yo,Le,je=>{var St=ox(),Ii=ve(St);let Vi=m(()=>n()!=="thumb"||d()||bt&&e.autoplay);vd(Ii,{get hidden(){return r(Vi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ri=M(Ii,2);{var vi=He=>{var Qt=X3(),_i=ve(Qt);{var wo=An=>{let Ar=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Xc(An,{side:"left",get seekStep(){return r(Ar)},handleSingleFirstClick:ar,handleSecondClick:()=>wn("backward")})};R(_i,An=>{r(xn)&&An(wo)})}var an=M(_i,2);{var zr=An=>{let Ar=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Xc(An,{side:"right",get seekStep(){return r(Ar)},handleSingleFirstClick:ar,handleSecondClick:()=>wn("forward")})};R(an,An=>{r(sr)&&An(zr)})}b(He,Qt)};R(Ri,He=>{e.canRewindLive&&Ki&&!j().has("TIMELINE")&&He(vi)})}var zi=M(Ri,2);{var Zi=He=>{let Qt=m(()=>{var _i;return(_i=e.live)==null?void 0:_i.startTime});gd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Qt)}})};R(zi,He=>{n()==="LiveWaitingStart"&&He(Zi)})}var Tn=M(zi,2);{var In=He=>{sa(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Tn,He=>{n()==="LiveWaitingRecover"&&He(In)})}var dr=M(Tn,2);{var Fo=He=>{sa(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(dr,He=>{n()==="LiveWaitingRecord"&&He(Fo)})}var kn=M(dr,2);{var cr=He=>{var Qt=J3();let _i;var wo=h(Qt);Ll(wo,{get adsSlotId(){return We()},get adsParams(){return lt()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return $e()},get duration(){return Pe()}}),g(Qt),k(an=>_i=te(Qt,1,"ads-container svelte-dtyj47",null,_i,an),[()=>({hidden:n()!=="ads"})]),b(He,Qt)};R(kn,He=>{e.showAds&&se()&&He(cr)})}var ur=M(kn,2);{var kr=He=>{let Qt=m(()=>!ge()&&e.showAutoplayNext&&S());bm(He,{get title(){return rt()},get thumb(){return gt()},get isHide(){return r(Qt)},clickCloseIcon:()=>O(rr,!0)})};R(ur,He=>{r(Wi)&&rt()&&gt()&&He(kr)})}var pr=M(ur,2);{var rn=He=>{ud(He,{})};R(pr,He=>{N()&&He(rn)})}var sn=M(pr,2);{var Yn=He=>{var Qt=ex(),_i=h(Qt);Pl(_i,{"aria-label":Ir}),g(Qt),b(He,Qt)};R(sn,He=>{Ne()&&He(Yn)})}var Er=M(sn,2);{var uo=He=>{fd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R(Er,He=>{ce()&&He(uo)})}var En=M(Er,2);{var fr=He=>{pd(He,{get shifted(){return w()},get captions(){return Re()},get position(){return z()},get playerSize(){return P()},isMobile:!0})};R(En,He=>{ke().value!=="off"&&He(fr)})}var tt=M(En,2);{var Nt=He=>{var Qt=tx();Qt.__click=[Z3,Z,Mi,Qn];var _i=h(Qt);md(_i,{}),g(Qt),b(He,Qt)};R(tt,He=>{d()&&He(Nt)})}var ye=M(tt,2);{var At=He=>{let Qt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),_i=m(()=>n()==="ads"),wo=m(()=>e.canRewindLive&&ue()!==0);cd(He,{get bottomHidden(){return r(Qt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(_i)},get canRewindLive(){return r(wo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return nt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return vt()},get nextButtonActive(){return et()},get prevButtonActive(){return Vt()},get isOneVideoPlaylist(){return Ot()},get customFullscreenSupported(){return r(_n)},get endScreenShown(){return r(Wi)},toggleFullscreen:Tr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:ti,onDisabledSeekToInteractiveClick:Ho,get playerControlsWrapperRef(){return r(Sr)},set playerControlsWrapperRef(an){O(Sr,pe(an))},get playerControlsRef(){return r(nr)},set playerControlsRef(an){O(nr,pe(an))}})};R(ye,He=>{se()&&He(At)})}var Xt=M(ye,2);{var ii=He=>{var Qt=ix(),_i=h(Qt);bd(_i,{get supportLink(){return e.supportLink},returnFocus:j3,get ref(){return r(Un)},set ref(wo){O(Un,pe(wo))}}),g(Qt),b(He,Qt)};R(Xt,He=>{Z()&&He(ii)})}var po=M(Xt,2);let ki=m(()=>!r(Wn));Rl(po,{get isLive(){return D()},get isHidden(){return r(ki)},get isPlaying(){return J()},get position(){return z()},get duration(){return Y()}});var oi=M(po,2);{var si=He=>{Xs(He,{})};R(oi,He=>{r(lo)&&He(si)})}var hi=M(oi,2);{var qi=He=>{Ol(He,{})};R(hi,He=>{de()&&He(qi)})}var Ei=M(hi,2);{var Si=He=>{$d(He,{onClose:hn,onSelectAutoQuality:()=>{Eo("auto"),hn()}})};R(Ei,He=>{r(qn)&&He(Si)})}var Ur=M(Ei,2);xl(Ur,()=>"slot",!1,(He,Qt)=>{we(He,null,{name:yd})}),b(je,St)});var Po=M(yo,2);ut(Po,je=>O(Je,je),()=>r(Je)),g(it),ut(it,je=>O(Jo,je),()=>r(Jo)),k((je,St)=>{wi=te(ft,1,"video-wrapper svelte-dtyj47",null,wi,je),ji=te(Yi,1,"video-container svelte-dtyj47",null,ji,St),ot(Yi,`transform: rotate(${A()}deg) scale(${r(bn)})`),Oe(Yi,"data-is-playing",J())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),It("click",it,Gn,!0),It("focusin",it,Cn,!0),b(t,it),K(),o()}at(["click"]);function eu(t){let e="";return On(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),On(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),On(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),On(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),On(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),On(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),On(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),On(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),On(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),On(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),On(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),On(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),On(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function On(t){return typeof t=="string"&&!t.includes(";")}var cx=L('<div class="root svelte-1cnbt6x"><!></div>'),ux={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
325
330
 
326
331
  /* USER DEFINED COLORS */
327
332
 
@@ -355,5 +360,5 @@ Try switching the\xA0quality to\xA0Auto.`},jg=q$;var _s=new Map;_s.set(Xg.EN,jg)
355
360
  /* --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);}
356
361
  /* 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);}
357
362
 
358
- /* \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 zp(t,e){if(new.target)return k({component:zp,...t});E(e,!0),ne(t,Jx);let[i,o]=Xe(),n=()=>I(et,"$isLive$",i),r=p(e,"sources",7),l=p(e,"store",7),d=p(e,"microStoresRoot",7),a=p(e,"videoConfig",7),c=p(e,"uiConfig",7),f=p(e,"title",7),g=p(e,"thumbUrl",7),m=p(e,"interactiveContainer",7),h=p(e,"interactiveController",7),_=p(e,"subtitles",7),y=p(e,"live",7),S=p(e,"preload",7),L=p(e,"autoplay",7),B=p(e,"volume",7,void 0),V=p(e,"muted",7,void 0),N=p(e,"fromTime",7),T=p(e,"canRewindLive",7),U=p(e,"showAds",7),K=p(e,"adsSlotId",7,void 0),H=p(e,"adsParams",7,void 0),G=p(e,"adsPreviewParam",7,void 0),J=p(e,"adsAutoplayParam",7,void 0),de=p(e,"duration",7,void 0),te=p(e,"logoClickable",7),xe=p(e,"logoHidden",7),Ce=p(e,"isMobile",7),Q=p(e,"showNextPrevButtons",7,!1),pe=p(e,"nextButtonActive",7,!1),he=p(e,"prevButtonActive",7,!1),j=p(e,"endScreenVideoTitle",7,void 0),ae=p(e,"endScreenVideoThumb",7,void 0),q=p(e,"isOneVideoPlaylist",7,!1),Ge=p(e,"supportLink",7),Re=p(e,"shadowRootContainer",7,void 0),X=p(e,"outerContainerRef",7,void 0),ce=p(e,"fullScreenTarget",7,void 0),Be=p(e,"failoverHosts",7,void 0),Z=p(e,"showMiniTimer",7,!1),De=p(e,"saveRate",7),le=p(e,"seekToInteractive",7,Up),Ke=p(e,"playPrevChapter",7,Up),lt=p(e,"volumeMultiplier",7),at=p(e,"showAutoplayNext",7),we=p(e,"showEndScreen",7,!0),$e=p(e,"keyboardControls",15,void 0),{subscribers:Je,stores:vt}=d();hg(c());let ve=Xt(),je=c().logoLink,Ct=l().ui.debugPanelVisible,ie=l().ui.playerSize,et=l().state.isLive$,ft=l().state.isInteractive&&Gx.device.isAndroid,be=ue(void 0),Pe=null,ye=ue(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{isMobile:l().ui.isMobile,mobileUnmuteButtonVisible:l().ui.mobileUnmuteButtonVisible,vsid:l().vsid}),Ig(l(),vt),rt(()=>{l().ui.isMobile.set(Ce())});let Ye=(D=!1)=>{Y(ye,!0),D?l().actions.external.firstStart(U()):l().actions.internal.firstStart(U())},pt=()=>{if(ve.features.qualityDetailsSubMenuEnabled){let D=Qg(l().videoId);if(D)switch(D.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,D.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,D.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(D.quality);break}}else{Gg(l().videoId),am()&&l().actions.internal.setTrafficSavingEnabled(!0);let Yt=om(l().videoId);Yt&&l().actions.internal.setQuality(Yt)}};function Ve(D){var gi,xi,ao;let Yt=r()||D;Yt&&l().initVideo({container:s(be),sources:Yt,failoverHosts:Be(),subtitles:_(),volumeMultiplier:lt()});let li=Yx.get(fd)==="true";Ct.set(li),N()>0&&l().actions.external.seekTime(N());let Ti=Ce()?ve.volumeDefault:(xi=(gi=B())!=null?gi:Sc())!=null?xi:ve.volumeDefault,di=(ao=V())!=null?ao:Fg();if(l().actions.external.setVolume(Ti),l().actions.external.setMuted(di),l().getAdmanWrapper().setInitialVolume(di?0:Ti),pt(),ve.features.saveRate&&De()){let si=Wg();si&&!n()&&l().actions.internal.setPlaybackRate(si)}if(at()){let si=Kg();si&&l().actions.internal.setAutoplayNextEnabled(si)}l().ui.isAutoplay.set(L()),L()?Ye():S()&&ve.features.preload&&l().actions.internal.preload()}let _t=D=>{if(window.ResizeObserver){let Yt,li;Pe=new ResizeObserver(jx(Ti=>{let di=Ti[0];if(di.contentBoxSize){let gi=Array.isArray(di.contentBoxSize)?di.contentBoxSize[0]:di.contentBoxSize;Yt=gi.inlineSize,li=gi.blockSize}else di.contentRect&&(Yt=di.contentRect.width,li=di.contentRect.height);ie.set({width:Yt,height:li})},300)),Pe.observe(D)}ie.set({width:D.clientWidth,height:D.clientHeight})},me=()=>{document.hidden&&l().actions.external.stop()};Kt(()=>{var li,Ti,di,gi;ft&&document.addEventListener("visibilitychange",me),ve.debugLog&&l().actions.internal.startLogging(),_t(s(be));let D=Je.map(xi=>xi.init({store:l(),microStores:vt,config:a(),interactiveController:h(),uiConfig:c()})),Yt=()=>{ft&&document.removeEventListener("visibilitychange",me),Pe==null||Pe.disconnect(),D.forEach(xi=>xi.unsubscribe()),l().destroy()};return((li=y())==null?void 0:li.status)==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),Yt):((Ti=y())==null?void 0:Ti.status)==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),Yt):(((di=y())==null?void 0:di.status)==="finished"||((gi=y())==null?void 0:gi.status)==="postlive")&&!Object.keys(r()||[]).length?(l().actions.internal.setLiveWaitingRecord(!0),Yt):(Ve(),Yt)});function Bt(){s(ye)?l().actions.external.play():Ye(!0)}function Ut(){l().actions.external.pause()}function jt(D){l().actions.external.setMuted(D)}function We(D){Ce()||D>=0&&D<=1&&l().actions.external.setVolume(D)}function ct(D){l().actions.internal.seekTime(D,Zx.UNKNOWN)}function gt(D){l().actions.external.seekEpisodeStartTime(D)}function kt(){l().actions.external.returnFocusToEpisodes()}function qe(D){l().actions.external.setPlaybackRate(D)}function zt(D){l().actions.external.setAutoQualityLimits(D)}let oi=Fp(ve.view);var ri=Xx();fe(ri,"style",oi);var vi=x(ri);{var mt=D=>{Hp(D,{get store(){return l()},uiConfig:ve,get thumbUrl(){return g()},get interactiveContainer(){return m()},get live(){return y()},get autoplay(){return L()},get canRewindLive(){return T()},get showAds(){return U()},get adsSlotId(){return K()},get adsParams(){return H()},get adsPreviewParam(){return G()},get adsAutoplayParam(){return J()},get duration(){return de()},get logoClickable(){return te()},get logoHidden(){return xe()},logoTargetUrl:je,get nextButtonActive(){return pe()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return j()},get endScreenVideoThumb(){return ae()},get isOneVideoPlaylist(){return q()},get supportLink(){return Ge()},get shadowRootContainer(){return Re()},get outerContainerRef(){return X()},get fullScreenTarget(){return ce()},get showMiniTimer(){return Z()},get playerStarted(){return s(ye)},get seekToInteractive(){return le()},get playPrevChapter(){return Ke()},firstStart:Ye,seekTime:ct,get showEndScreen(){return we()},get showAutoplayNext(){return at()},get showNextPrevButtons(){return Q()},get videoContainer(){return s(be)},set videoContainer(Yt){Y(be,Ae(Yt))}})},dt=D=>{Bp(D,{get store(){return l()},uiConfig:ve,get title(){return f()},get thumbUrl(){return g()},get interactiveContainer(){return m()},get live(){return y()},get autoplay(){return L()},get canRewindLive(){return T()},get showAds(){return U()},get adsSlotId(){return K()},get adsParams(){return H()},get adsPreviewParam(){return G()},get adsAutoplayParam(){return J()},get duration(){return de()},get logoClickable(){return te()},get logoHidden(){return xe()},logoTargetUrl:je,get nextButtonActive(){return pe()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return j()},get endScreenVideoThumb(){return ae()},get isOneVideoPlaylist(){return q()},get supportLink(){return Ge()},get shadowRootContainer(){return Re()},get outerContainerRef(){return X()},get fullScreenTarget(){return ce()},get showMiniTimer(){return Z()},get playerStarted(){return s(ye)},get seekToInteractive(){return le()},get playPrevChapter(){return Ke()},firstStart:Ye,get showEndScreen(){return we()},get showAutoplayNext(){return at()},get showNextPrevButtons(){return Q()},get videoContainer(){return s(be)},set videoContainer(Yt){Y(be,Ae(Yt))},get keyboardControls(){return $e()},set keyboardControls(Yt){$e(Yt)}})};W(vi,D=>{Ce()?D(mt):D(dt,!1)})}b(ri),w(t,ri);var $t=P({initVideo:Ve,play:Bt,pause:Ut,setMuted:jt,setVolume:We,seekTime:ct,seekEpisodeStartTime:gt,returnFocusToEpisodes:kt,setPlaybackRate:qe,setAutoQualityLimits:zt,get sources(){return r()},set sources(D){r(D)},get store(){return l()},set store(D){l(D)},get microStoresRoot(){return d()},set microStoresRoot(D){d(D)},get videoConfig(){return a()},set videoConfig(D){a(D)},get uiConfig(){return c()},set uiConfig(D){c(D)},get title(){return f()},set title(D){f(D)},get thumbUrl(){return g()},set thumbUrl(D){g(D)},get interactiveContainer(){return m()},set interactiveContainer(D){m(D)},get interactiveController(){return h()},set interactiveController(D){h(D)},get subtitles(){return _()},set subtitles(D){_(D)},get live(){return y()},set live(D){y(D)},get preload(){return S()},set preload(D){S(D)},get autoplay(){return L()},set autoplay(D){L(D)},get volume(){return B()},set volume(D){B(D)},get muted(){return V()},set muted(D){V(D)},get fromTime(){return N()},set fromTime(D){N(D)},get canRewindLive(){return T()},set canRewindLive(D){T(D)},get showAds(){return U()},set showAds(D){U(D)},get adsSlotId(){return K()},set adsSlotId(D){K(D)},get adsParams(){return H()},set adsParams(D){H(D)},get adsPreviewParam(){return G()},set adsPreviewParam(D){G(D)},get adsAutoplayParam(){return J()},set adsAutoplayParam(D){J(D)},get duration(){return de()},set duration(D){de(D)},get logoClickable(){return te()},set logoClickable(D){te(D)},get logoHidden(){return xe()},set logoHidden(D){xe(D)},get isMobile(){return Ce()},set isMobile(D){Ce(D)},get showNextPrevButtons(){return Q()},set showNextPrevButtons(D){Q(D)},get nextButtonActive(){return pe()},set nextButtonActive(D){pe(D)},get prevButtonActive(){return he()},set prevButtonActive(D){he(D)},get endScreenVideoTitle(){return j()},set endScreenVideoTitle(D){j(D)},get endScreenVideoThumb(){return ae()},set endScreenVideoThumb(D){ae(D)},get isOneVideoPlaylist(){return q()},set isOneVideoPlaylist(D){q(D)},get supportLink(){return Ge()},set supportLink(D){Ge(D)},get shadowRootContainer(){return Re()},set shadowRootContainer(D){Re(D)},get outerContainerRef(){return X()},set outerContainerRef(D){X(D)},get fullScreenTarget(){return ce()},set fullScreenTarget(D){ce(D)},get failoverHosts(){return Be()},set failoverHosts(D){Be(D)},get showMiniTimer(){return Z()},set showMiniTimer(D){Z(D)},get saveRate(){return De()},set saveRate(D){De(D)},get showAutoplayNext(){return at()},set showAutoplayNext(D){at(D)},get seekToInteractive(){return le()},set seekToInteractive(D){le(D)},get playPrevChapter(){return Ke()},set playPrevChapter(D){Ke(D)},get volumeMultiplier(){return lt()},set volumeMultiplier(D){lt(D)},get showEndScreen(){return we()},set showEndScreen(D){we(D)},get keyboardControls(){return $e()},set keyboardControls(D){$e(D)},get sources(){return r()},set sources(D){r(D),u()},get store(){return l()},set store(D){l(D),u()},get microStoresRoot(){return d()},set microStoresRoot(D){d(D),u()},get videoConfig(){return a()},set videoConfig(D){a(D),u()},get uiConfig(){return c()},set uiConfig(D){c(D),u()},get title(){return f()},set title(D){f(D),u()},get thumbUrl(){return g()},set thumbUrl(D){g(D),u()},get interactiveContainer(){return m()},set interactiveContainer(D){m(D),u()},get interactiveController(){return h()},set interactiveController(D){h(D),u()},get subtitles(){return _()},set subtitles(D){_(D),u()},get live(){return y()},set live(D){y(D),u()},get preload(){return S()},set preload(D){S(D),u()},get autoplay(){return L()},set autoplay(D){L(D),u()},get volume(){return B()},set volume(D=void 0){B(D),u()},get muted(){return V()},set muted(D=void 0){V(D),u()},get fromTime(){return N()},set fromTime(D){N(D),u()},get canRewindLive(){return T()},set canRewindLive(D){T(D),u()},get showAds(){return U()},set showAds(D){U(D),u()},get adsSlotId(){return K()},set adsSlotId(D=void 0){K(D),u()},get adsParams(){return H()},set adsParams(D=void 0){H(D),u()},get adsPreviewParam(){return G()},set adsPreviewParam(D=void 0){G(D),u()},get adsAutoplayParam(){return J()},set adsAutoplayParam(D=void 0){J(D),u()},get duration(){return de()},set duration(D=void 0){de(D),u()},get logoClickable(){return te()},set logoClickable(D){te(D),u()},get logoHidden(){return xe()},set logoHidden(D){xe(D),u()},get isMobile(){return Ce()},set isMobile(D){Ce(D),u()},get showNextPrevButtons(){return Q()},set showNextPrevButtons(D=!1){Q(D),u()},get nextButtonActive(){return pe()},set nextButtonActive(D=!1){pe(D),u()},get prevButtonActive(){return he()},set prevButtonActive(D=!1){he(D),u()},get endScreenVideoTitle(){return j()},set endScreenVideoTitle(D=void 0){j(D),u()},get endScreenVideoThumb(){return ae()},set endScreenVideoThumb(D=void 0){ae(D),u()},get isOneVideoPlaylist(){return q()},set isOneVideoPlaylist(D=!1){q(D),u()},get supportLink(){return Ge()},set supportLink(D){Ge(D),u()},get shadowRootContainer(){return Re()},set shadowRootContainer(D=void 0){Re(D),u()},get outerContainerRef(){return X()},set outerContainerRef(D=void 0){X(D),u()},get fullScreenTarget(){return ce()},set fullScreenTarget(D=void 0){ce(D),u()},get failoverHosts(){return Be()},set failoverHosts(D=void 0){Be(D),u()},get showMiniTimer(){return Z()},set showMiniTimer(D=!1){Z(D),u()},get saveRate(){return De()},set saveRate(D){De(D),u()},get seekToInteractive(){return le()},set seekToInteractive(D=Up){le(D),u()},get playPrevChapter(){return Ke()},set playPrevChapter(D=Up){Ke(D),u()},get volumeMultiplier(){return lt()},set volumeMultiplier(D){lt(D),u()},get showAutoplayNext(){return at()},set showAutoplayNext(D){at(D),u()},get showEndScreen(){return we()},set showEndScreen(D=!0){we(D),u()},get keyboardControls(){return $e()},set keyboardControls(D=void 0){$e(D),u()},$set:M,$on:(D,Yt)=>A(e,D,Yt)});return o(),$t}var e3=Le('<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 Wp(t,e){if(new.target)return k({component:Wp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=e3();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}function qp(t,e){if(new.target)return k({component:qp,...t});E(e,!0);let i=p(e,"isWhite",7,!1),o=$(()=>i()?"color: #fff;":"color: #909499;");return Wp(t,{get style(){return s(o)}}),P({get isWhite(){return i()},set isWhite(n=!1){i(n),u()},$set:M,$on:(n,r)=>A(e,n,r)})}var t3=F('<div class="title svelte-1y9fytq"> </div>'),i3=F('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),o3={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 Kp(t,e){if(new.target)return k({component:Kp,...t});E(e,!0),ne(t,o3);let i=p(e,"title",7),o=p(e,"thumbUrl",7);var n=i3(),r=x(n);{var l=c=>{var f=t3(),g=x(f,!0);b(f),R(()=>ke(g,i())),w(c,f)};W(r,c=>{i()&&c(l)})}var d=O(r,2);{var a=c=>{let f=$(()=>!!o());qp(c,{get isWhite(){return s(f)}})};W(d,c=>{(!i()||!o())&&c(a)})}return b(n),R(()=>fe(n,"style",o()?`background-image: url('${o()}')`:"")),w(t,n),P({get title(){return i()},set title(c){i(c),u()},get thumbUrl(){return o()},set thumbUrl(c){o(c),u()},$set:M,$on:(c,f)=>A(e,c,f)})}import{now as S3}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as T3,InterfaceLanguage as I3,isNonNullable as Rm,Logger as k3,Observable as E3,Subscription as w_,once as P3,InternalsExposure as A3,skip as M3}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as C_,isMobile as L3}from"@vkontakte/videoplayer-core/es2018";import{OneStat as V3}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as n3,Subscription as r3}from"@vkontakte/videoplayer-shared/es2018";var Qp=class{constructor(){this.subscription=new r3,this.logger=new n3,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",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=Ne(e.state.currentPlaybackRate$),n=Ne(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Mm,detectEmbed as d3}from"@vkontakte/videoplayer-shared/es2018";var s3=Le('<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 Gp(t,e){if(new.target)return k({component:Gp,...t});let i=Ue(e,["children","$$slots","$$events","$$legacy"]);E(e,!1);var o=s3();let n;var r=x(o);return Fe(r,e,"default",{},null),Me(),b(o),R(()=>n=Oe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i},void 0,!0)),w(t,o),P({$set:M,$on:(l,d)=>A(e,l,d)})}var a3=F('<div class="player-pip-dummy svelte-1pbsod4"><div class="dummy-image svelte-1pbsod4"><!></div> <span class="title svelte-1pbsod4"> </span></div>'),l3={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 Yp(t,e){if(new.target)return k({component:Yp,...t});E(e,!0),ne(t,l3);let[i,o]=Xe(),n=()=>I(c,"$interfaceLanguage$",i),r=()=>I(f,"$isMobile$",i),l=He(),d=Xt(),a=!!l.webApi.pictureInPictureApi,c=l.interfaceLanguage$,f=l.ui.isMobile,g=l.ui.t,m=$(()=>n()&&g("pip_dummy_title")),h=Fp(d.view);var _=a3();fe(_,"style",h),re(_,"is-pip-api",a);var y=x(_),S=x(y);Gp(S,{}),b(y);var L=O(y,2),B=x(L,!0);b(L),b(_),R(()=>{re(y,"desktop",!r()),ke(B,s(m))}),w(t,_);var V=P({$set:M,$on:(N,T)=>A(e,N,T)});return o(),V}var c3=460,u3=280,Md=class{constructor({enabled:e=!0}={enabled:!0}){this.info={isActive$:new Mm(!1),isEnabled$:new Mm(!1),type:1};this.info.isEnabled$=new Mm(e)}isSupported(){let{isEmbed:e}=d3();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:c3,height:u3,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(d=>[...d.cssRules].map(a=>a.cssText).join(" ")).filter(Boolean).join(`
359
- `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),n=o.attachShadow({mode:"open"});n.append(i),n.append(this.playerDomElement),this.playerDummyElement=k({component:Yp,target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(o),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",d=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function g_(t){return t instanceof Md}var jp=class{static getLatestSupportedVersion(e){let i=new ga,o=new Md(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Zp(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var h_="Inner error. Unexpectedly root annotation container null reference exception",__="Annotation with such name already exists",$_="Annotation with such name does not exist";var Wl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as p3,Subscription as f3,throttleFn as m3}from"@vkontakte/videoplayer-shared/es2018";var v3="1",g3=100,Xp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new f3}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=m3(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},g3);this.subscriptions.add(p3(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Wl(h_);if(this.annotations.has(e))throw new Wl(__);i.style.zIndex=(o=i.style.zIndex)!=null?o:v3,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 Wl($_);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Jp,Subscription as h3}from"@vkontakte/videoplayer-shared/es2018";var Ro=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Jp(e),Jp(i),Jp(n),n.interactiveData&&Jp(o),this.subscription=new h3,this.subscription}};var Ld=class extends Ro{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var Vd=class extends Ro{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:c,isMobile:f}=r.ui,g=Ne(f),m=()=>g&&Ne(c);return o.add(c.subscribe(h=>{if(!g)return;let _=Ne(l);Ne(a)?this.state$.set(h):_!==null&&this.state$.set(!_||h)})),o.add(a.subscribe(h=>{this.state$.set(!h||m())})),o.add(l.subscribe(h=>{if(h===null)return;let _=Ne(d);if(m()){this.state$.set(!0);return}_&&this.state$.set(!h)})),o}};var Rd=class extends Ro{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Se("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as _3}from"@vkontakte/videoplayer-shared/es2018";var Lm=Se(!1),ef=null,Nd=class extends Ro{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Lm,set:(i,o=!1)=>{i!==Ne(Lm)&&(this.clearTimeout(),Lm.set(i),!i&&ef&&(ef=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:c}=n.ui.controls;o.add(a.subscribe(g=>{Ne(l)&&g&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add(_3({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:c}).subscribe(({isPlaying$:g,isInteractiveTime$:m,interactiveTimeIndicator:h})=>{var _,y;if(!(!g||!(h!=null&&h.isDisplayed))){if(!m)return this.state$.set(!1);f.tooltipHelpHintActive&&ef===null&&(ef=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(_=n.callbacks)==null?void 0:_.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(_))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as $3,noop as b3}from"@vkontakte/videoplayer-shared/es2018";var Bd=class extends Ro{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...Se(null),toggle:b3};this.checkIfShouldHide=i=>qs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(Ne(l)))return;let a=Ne(this.state$),{isEnded$:c,playbackState$:f}=n.state,{disabledControls$:g}=n.ui.controls,m=Ne(c),h=Ne(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),g.remove(jf),!m&&this.graphMadePause&&n.actions.internal.play()}catch(_){d({message:"Cant hide graph"})}else{this.graphMadePause=h==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),g.add(jf),!m&&this.graphMadePause&&n.actions.internal.pause()}catch(_){d({message:"Cant show graph"})}}},o.add($3({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:c})=>{if(this.checkIfShouldHide(c)&&a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(g){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as b_}from"@vkontakte/videoplayer-shared/es2018";var Dd=class extends Ro{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:Se(!1),isEnabled$:Se(!1),type$:Se(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new b_(!1),isEnabled$:new b_(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as w3,filterChanged as C3}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Vm}from"@vkontakte/videoplayer-shared/es2018";var y_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?y3({maxCount:t}):void 0,e!==0?x3({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},y3=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Vm.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},x3=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Vm.get(e)||"{}")}catch(r){return{}}},o=r=>Vm.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var Od=class extends Ro{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:Se({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=y_({maxShowCount:r,timeout:l});let c=n.getPlayer();return o.add(c.events.severeStallOccured$.pipe(C3(),w3(f=>f)).subscribe(()=>{d&&!c.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var x_=()=>[Ld,Vd,Rd,Nd,Bd,Dd,Od].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 Hd}from"@vkontakte/videoplayer-shared/es2018";var R3={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:I3.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:L3(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},tf=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.internalsExposure=null;this.createOneStat=(i,o={})=>{var T,U,K,H;let{albumId:n,statPlace:r,statUserSalt:l,statTrackCode:d,statVKAppId:a,refreshStatAuthToken:c,autoplay:f,isMobile:g,isTouch:m,refDomain:h,deviceId:_,interactiveData:y}=Zp(this.videoConfig,o),S=(T=y==null?void 0:y.projectInfo)==null?void 0:T.pid,L=(K=(U=this.interactiveController)==null?void 0:U.state.isReplay$.getValue())!=null?K:!1;L&&(this.prevIsid=void 0);let{unitedVideoId:B,isClip:V=!1}=i;if(this.uiConfig.features.statistics&&B)return new V3({movieId:B,albumId:n,place:r,trackCode:d,vkAppId:a,autoplay:(H=f&&!this.interactiveController)!=null?H:!1,mobile:m!=null?m:g,clip:V,refDomain:h,deviceId:_,...S&&(!this.isInited||L)&&{projectId:Number(S)}},{refreshAuthToken:c,userSalt:l,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};Hd.create("ui"),this.logger=new k3,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new w_,this.interactiveSubscription=new w_,this.graphMadePause=!1}connectedCallback(){var n,r;if(this.isInited)return;this.initPlayerRootContainers();let i=(n=this.getAttribute("stub-title"))!=null?n:void 0,o=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=k({component:Kp,target:this.playerContainer,props:{title:i,thumbUrl:o}})}disconnectedCallback(){var i,o,n,r,l,d,a;(i=this.annotationsApi)==null||i.destroy(),(o=this.mediaSessionApi)==null||o.destroy(),(n=this.svelteRootComponent)==null||n.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(l=this.unsubscribePlayerPhaseSubscription)==null||l.call(this),(d=this.interactiveController)==null||d.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Hd.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(i){var n;let o=(n=this.store)==null?void 0:n.ui.controls.disabledControls$;return(o==null?void 0:o.includes(i))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let i=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:i.title,nextVideoThumb:i.thumbUrl}}createPlayer(i,o={},n){var me,Bt,Ut,jt,We,ct,gt,kt;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statAuthToken:d,preload:a,autoplay:c,volume:f,muted:g,fromTime:m,canRewindLive:h,supportLink:_,showAds:y,adsSlotId:S,adsParams:L={},adsPreviewParam:B,adsAutoplayParam:V,interfaceLanguage:N,isCyrillicRelatedInterface:T,logoClickable:U,logoHidden:K,isMobile:H,isTouch:G,isAudioDisabled:J,isLiveCatchUpMode:de,fullScreenTarget:te,failoverHosts:xe,canDownload:Ce,callbacks:Q,interactiveData:pe,showThumbTimer:he,additionalButtons:j=[],additionalSettingsMenuItems:ae=[],additionalContextMenuItems:q=[],repeat:Ge,saveRate:Re,volumeMultiplier:X,showEndScreen:ce,showAutoplayNext:Be}=Zp(this.videoConfig,o),{sources:Z,title:De,thumbUrl:le,unitedVideoId:Ke,isClip:lt=!1,duration:at,adsParams:we={},videoEpisodes:$e,previewThumbsData:Je,subtitles:vt,live:ve}=i,je={...L,...we},Ct=this.getNextVideoInfo(),ie={sources:Z,title:De,thumbUrl:le,subtitles:vt,unitedVideoId:Ke,isClip:lt,live:ve,albumId:r,statPlace:l,autoplay:c,muted:g,volume:f,fromTime:m,canRewindLive:h,showAds:y,adsSlotId:S,adsParams:je,adsPreviewParam:B,adsAutoplayParam:V,duration:at,logoClickable:U,logoHidden:K,isTouch:G!=null?G:H,repeat:Ge,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ct.nextVideoTitle,endScreenVideoThumb:Ct.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},et={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(ie)}`});let ht=(me=this.interactiveController)==null?void 0:me.state.statistics$.getValue(),ft=(ht==null?void 0:ht.oneStat)||this.createOneStat(i,o);ft&&(this.statistics=new Mu(ft,ht==null?void 0:ht.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ma(this.uiConfig.sentry,{version:Ja,env:xc},{movieId:Ke,albumId:r,place:l,autoplay:(Bt=c&&!this.interactiveController)!=null?Bt:!1,mobile:G!=null?G:H,clip:lt}),this.interactiveController&&((jt=this.prevIsid)!=null||(this.prevIsid=(Ut=this.statistics)==null?void 0:Ut.oneStat.isid$.getValue())),this.sentry={...this.sentry,...ma.getInstance()};let Pe=!!pe,ye=[],Ye="tooltip_interactive_go_back_disabled_first";if(Pe&&this.interactiveController){let qe=this.interactiveController.state.isInitialChapter$.getValue(),zt=this.interactiveController.getHistoryState();qe&&ye.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ye.push("SEEK_TO_INTERACTIVE_BUTTON"),zt.hasPrevChapter$.getValue()||(ye.push("PLAY_PREV_CHAPTER_BUTTON"),qe||(zt.isGoBackLimited$.getValue()?Ye="tooltip_interactive_go_back_disabled_limit":Ye="tooltip_interactive_go_back_disabled"))}let pt=()=>{var zt;this.isInited=!1,this.prevIsid=void 0;let qe=(n==null?void 0:n.info.isEnded$.getValue())&&((zt=this.interactiveController)==null?void 0:zt.state.isEndChapter$.getValue());Q.onReplayInteractiveVideo&&!qe?Q.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Oh({player:n,interfaceLanguage:N,isCyrillicRelatedInterface:T,videoId:Ke,isClip:lt,isLiveCatchUpMode:de,isAudioDisabled:J,statAuthToken:d,callbacks:Q,webApi:et,videoEpisodes:$e,previewThumbsData:Je,canDownload:Ce,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ye,isInteractive:Pe,saveRate:Re,interactiveRanges$:(We=this.interactiveController)==null?void 0:We.state.interactiveRanges$,isInteractiveTime$:(ct=this.interactiveController)==null?void 0:ct.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:pt,playPrevChapterDisabledTooltip:Ye,hasInteractiveBranches:!!((kt=(gt=this.interactiveController)==null?void 0:gt.getChapterBranches())!=null&&kt.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:ae!=null?ae:[],additionalContextMenuItems:q!=null?q:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ge&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:Ve}=this.microStoresRoot=x_(),_t=()=>{var qe,zt,oi,ri,vi,mt;!this.store||!this.microStoresRoot||!this.videoConfig||(this.subscription.add(this.store.state.currentFormat$.subscribe(dt=>{var $t;return($t=Q==null?void 0:Q.onCurrentFormatChanged)==null?void 0:$t.call(Q,dt)})),this.subscription.add(Ve.interactiveControlsOpacity$.subscribe(dt=>{var $t;dt!==null&&(($t=this==null?void 0:this.interactiveController)==null||$t.setDisabledControls(dt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(dt=>{var $t;return($t=Q==null?void 0:Q.onThroughputEstimationChanged)==null?void 0:$t.call(Q,dt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(dt=>{var $t;return($t=Q==null?void 0:Q.onTrafficSavingEnabledChanged)==null?void 0:$t.call(Q,dt)})),this.subscription.add(new E3(dt=>{var $t;($t=this.store)==null||$t.state.currentPlaybackRate$.subscribe(D=>dt.next(D))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?M3(1):dt=>dt).subscribe(dt=>{var $t;return($t=Q==null?void 0:Q.onCurrentPlaybackRateChanged)==null?void 0:$t.call(Q,dt)})),this.subscription.add(this.store.state.volume$.subscribe(dt=>{var $t;return($t=Q==null?void 0:Q.onVolumeChange)==null?void 0:$t.call(Q,dt)})),this.subscription.add(this.store.state.muted$.subscribe(dt=>{var $t,D;return dt?($t=Q==null?void 0:Q.onMute)==null?void 0:$t.call(Q):(D=Q==null?void 0:Q.onUnmute)==null?void 0:D.call(Q)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(dt=>{var $t;return($t=Q==null?void 0:Q.onVideoBitrateChanged)==null?void 0:$t.call(Q,dt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(dt=>{var D;let $t=(D=this.store)==null?void 0:D.ui.controls.disabledControls$;$t&&(dt&&!$t.includes(md)&&$t.add(md),dt||$t.remove(md))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async dt=>{var D;if(!C_.browser.isSamsungBrowser||!dt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((D=this.videoConfig)==null?void 0:D.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(dt=>{var $t;return($t=Q==null?void 0:Q.onVSIDChanged)==null?void 0:$t.call(Q,dt)})),this.initMediaSession(),this.svelteRootComponent=k({component:zp,target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Z,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:De,thumbUrl:le,subtitles:vt,live:ve,preload:a,autoplay:c,muted:g,volume:f,fromTime:m,canRewindLive:h,supportLink:_,showAds:y,adsSlotId:S,adsParams:je,adsPreviewParam:B,adsAutoplayParam:V,duration:at,logoClickable:U,logoHidden:K,isMobile:G!=null?G:H,failoverHosts:xe,fullScreenTarget:te,saveRate:Re,shadowRootContainer:this.shadowRootContainer,showMiniTimer:he,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ct.nextVideoTitle,endScreenVideoThumb:Ct.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:X,showEndScreen:ce,showAutoplayNext:Be}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(oi=(zt=(qe=this.videoConfig)==null?void 0:qe.callbacks)==null?void 0:zt.onInited)==null||oi.call(zt)),(ri=this.internalsExposure)==null||ri.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((mt=(vi=this.videoConfig)==null?void 0:vi.callbacks)!=null&&mt.onDevNullLog)?Hd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Hd.destroy("ui"))};this.coreConfig.asyncResolveClientChecker?C_.isInited$.subscribe(qe=>{qe&&(console.log("UI SDK async start"),_t())}):_t()}addPlayerInfoSubscriptions(){var l,d;let i=this.store,o=(l=this.microStoresRoot)==null?void 0:l.stores;if(!i||!o)return;let n=(d=this.videoConfig)==null?void 0:d.callbacks;n&&this.subscription.add(i.playerPhase.subscribe(a=>{var c;return(c=n.onPlayerPhaseChanged)==null?void 0:c.call(n,a)})).add(i.state.playbackState$.subscribe(a=>{var c;return a&&((c=n.onPlaybackStateChanged)==null?void 0:c.call(n,a))})).add(i.state.isLive$.subscribe(a=>{var c;return(c=n.onIsLiveChanged)==null?void 0:c.call(n,a)})).add(i.state.isActiveLive$.subscribe(a=>{var c;return(c=n.onIsActiveLiveChanged)==null?void 0:c.call(n,a)})).add(i.state.isAudioAvailable$.subscribe(a=>{var c;return(c=n.onIsAudioAvailableChanged)==null?void 0:c.call(n,a)})).add(i.state.currentQuality$.subscribe(a=>{var c;return(c=n.onCurrentQualityChanged)==null?void 0:c.call(n,a)})).add(i.state.availableQualities$.subscribe(a=>{var c;return(c=n.onAvailableQualitiesChanged)==null?void 0:c.call(n,a.map(({value:f})=>f).filter(f=>f!=="auto"))})).add(i.state.availableAudioStreams$.subscribe(a=>{a.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(o.pictureInPicture$.isActive$.subscribe(a=>{var c,f;return a?(c=n.onPiPEnter)==null?void 0:c.call(n):(f=n.onPiPExit)==null?void 0:f.call(n)}));let r=n==null?void 0:n.uiInfo;r&&this.subscription.add(i.ui.controlsVisible.subscribe(a=>{var c;return(c=r.onControlsVisibleChanged)==null?void 0:c.call(r,a)})).add(i.ui.isMobile.subscribe(a=>{var c;return(c=r.onIsMobileChanged)==null?void 0:c.call(r,a)})).add(i.ui.playerSize.subscribe(a=>{var c;return(c=r.onPlayerSizeChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.prevButton.subscribe(a=>{var c;return(c=r.onPrevButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.playButton.subscribe(a=>{var c;return(c=r.onPlayButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.replayButton.subscribe(a=>{var c;return(c=r.onReplayButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.nextButton.subscribe(a=>{var c;return(c=r.onNextButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.playPrevChapterButton.subscribe(a=>{var c;return(c=r.onPlayPrevChapterChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.seekToInteractiveButton.subscribe(a=>{var c;return(c=r.onSeekToInteractiveButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.interactiveGraphButton.subscribe(a=>{var c;return(c=r.onGraphButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.liveButton.subscribe(a=>{var c;return(c=r.onLiveButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.time.subscribe(a=>{var c;return(c=r.onTimeUpdateChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.episodes.subscribe(a=>{var c;return(c=r.onEpisodesChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.subtitles.subscribe(a=>{var c;return(c=r.onSubtitlesChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.settings.subscribe(a=>{var c;return(c=r.onSettingsChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.fullscreen.subscribe(a=>{var c;return(c=r.onFullscreenChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.chromecast.subscribe(a=>{var c;return(c=r.onChromecastChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.pip.subscribe(a=>{var c;return(c=r.onPipChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.vkLogo.subscribe(a=>{var c;return(c=r.onVkLogoChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.interactiveTimeIndicator.subscribe(a=>{var c;return(c=r.onInteractiveTimeIndicatorChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.timeline.subscribe(a=>{var c;return(c=r.onTimelineChanged)==null?void 0:c.call(r,a)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(i,o=!0){var r;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&Rm(n.unitedVideoId)&&this.store.actions.internal.nextMovie(n.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(n,{autoplay:o,fromTime:0},i)}playPrevChapter(){var i;(i=this.interactiveController)==null||i.playPrevChapter()}seekToInteractive(){var o;let i=(o=this.interactiveController)==null?void 0:o.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var i,o,n,r;if((i=this.videoConfig)!=null&&i.interactiveData)try{let{Interactives:l}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let d=(o=this.store)==null?void 0:o.interfaceLanguage$,a=d?Ne(d):this.videoConfig.interfaceLanguage,{projectInfo:c,initChapterId:f,historyApi:g,videoLoader:m}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:a,graph:this.uiConfig.features.interactiveGraph,projectInfo:c,initChapterId:f,historyApi:g,vkVideoLoader:m,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});let{isInteractiveExpectation$:h,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(S=>{if(!this.isInited)return;let L=this.store;S?L.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):L.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(h.subscribe(S=>{this.store&&this.store.state.isInteractiveExpectation$.set(S)}));let y=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(S=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...S.config,title:(c==null?void 0:c.title)||S.config.title};let L=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(S.player,L),y&&(y=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:S,actionType:L})=>{var V,N,T,U,K,H;if(!this.store)return;let B=h.getValue();if(S==="action-choice"&&L==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(vd)),S==="action-choice-canceled"){let G=Ne(this.store.state.isPlaying$)||B;if(((T=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?T:(N=this.videoConfig)!=null&&N.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(U=this.videoConfig)==null?void 0:(K=U.callbacks).onDisabledInteractiveClick)==null||H.call(K)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:S,removeAllOpenURI:L})=>{this.store&&S==="container-fake-removed"&&L&&this.store.ui.controls.disabledControls$.remove(vd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(n=this.videoConfig)==null?void 0:n.callbacks)!=null&&r.onInteractiveHistoryChanged){let S=this.interactiveController.getHistoryState();this.subscription.add(S.history$.subscribe(L=>{var B,V,N;L.length&&((N=(V=(B=this.videoConfig)==null?void 0:B.callbacks)==null?void 0:V.onInteractiveHistoryChanged)==null||N.call(V,L))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var S,L,B,V;(S=this.microStoresRoot)==null||S.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(V=(L=this.videoConfig)==null?void 0:(B=L.callbacks).onInteractiveTimeIndicatorClick)==null||V.call(B)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(S=>{this.log({message:S.toString()})}))}catch(l){this.log({message:l.message})}}initPlayer(i,o={}){var n,r,l,d,a,c,f,g,m,h,_,y,S,L,B,V,N,T,U,K,H,G,J,de,te,xe,Ce,Q,pe;if(!Array.isArray(i.videos)||i.videos.length===0&&!i.interactiveData)throw new Error("empty videos");if(this.videoConfig=Zp(R3,T3(i,he=>he instanceof HTMLElement?he:void 0)),this.uiConfig=gg((n=o.ui)!=null?n:{}),this.coreConfig=(r=o.core)!=null?r:{configName:[]},this.statisticsConfig=(l=o.statistics)!=null?l:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.sentry={config:(d=this.uiConfig.sentry)!=null?d:{}},this.uiConfig.features.exposeInternalsToGlobal&&((a=this.internalsExposure)!=null||(this.internalsExposure=new A3("UI"))),Hd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((c=this.videoConfig)==null?void 0:c.showAds)],numbers:[S3()]}),Rm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(g=(f=this.uiConfig.features.mediaSession)!=null?f:this.videoConfig.isMediaSessionEnabled)!=null?g:!0),Rm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(h=(m=this.uiConfig.features.pip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0,this.uiConfig.features.dpip=(y=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0),this.videoConfig.isTouch=(L=(S=this.uiConfig.isMobile)!=null?S:this.videoConfig.isTouch)!=null?L:this.videoConfig.isMobile,(B=this.videoConfig).autoplay&&(B.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(V=this.uiConfig.ads.enable)!=null?V:this.videoConfig.showAds,this.videoConfig.adsSlotId=(N=this.uiConfig.ads.slot)!=null?N:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((U=this.uiConfig.showLogo)!=null?U:!this.videoConfig.logoHidden),(K=this.videoConfig).canRewindLive&&(K.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(J=this.uiConfig.features.autoplayNext)!=null?J:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(de=this.uiConfig.features.nextPrevButtons)!=null?de:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((te=this.videoConfig.videos)!=null&&te[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let he={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=jp.getLatestSupportedVersion(he):this.pictureInPictureApi=new ga(he)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Qp:void 0,this.slotsApi=this.uiConfig.features.slots?new Np:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Xp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&((xe=this.annotationsApi)==null||xe.init(this.rootContainer)),(Ce=this.slotsApi)==null||Ce.init(this.shadowRootContainer),(Q=this.svelteStubComponent)==null||Q.$destroy(),(pe=this.svelteRootComponent)==null||pe.$destroy(),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]),g_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(i,o){var r;if(!this.videoConfig)return;this.log({message:`update ${o} videos, videos: ${JSON.stringify(i)}`}),o==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...i),this.currentPlayingVideoIndex=i.length):o==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...i));let n=this.getNextVideoInfo();(r=this.svelteRootComponent)==null||r.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}updatePrevVideos(i){this.updateVideos(i,"prev")}updateNextVideos(i){this.updateVideos(i,"next")}initMediaSession(){var i,o;this.mediaSessionApi&&((i=this.unsubscribePlayerPhaseSubscription)==null||i.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(o=this.store)==null?void 0:o.playerPhase.subscribe(n=>{n==="video"?this.setupMediaSessionForVideo():n==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:i,thumbUrl:o}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&n.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&n.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:i,thumbUrl:o}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let i="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",o=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}play(){var i,o,n,r;this.isControlDisabled("PLAY_BUTTON")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingStart")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecover")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var i;this.log({message:"pause"}),(i=this.svelteRootComponent)==null||i.pause()}stop(){var n,r,l;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),(n=this.svelteStubComponent)==null||n.$destroy(),(r=this.mediaSessionApi)==null||r.destroy();let o=this.videoConfig.videos[0];o&&((l=this.svelteRootComponent)==null||l.$destroy(),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(i){var o;this.log({message:`set muted, muted: ${i}`}),(o=this.svelteRootComponent)==null||o.setMuted(i)}setPiPEnabled(i){var o,n;(n=(o=this.store)==null?void 0:o.webApi.pictureInPictureApi)==null||n.setEnabled(i)}setVolume(i){var o;this.log({message:`set volume, volume: ${i}`}),(o=this.svelteRootComponent)==null||o.setVolume(i)}setRepeat(i){var o;this.log({message:`set repeat, repeat: ${i}`}),this.needToRepeatPlaylist=i,(o=this.svelteRootComponent)==null||o.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(i){var o;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${i}`}),(o=this.svelteRootComponent)==null||o.seekTime(i))}seekEpisodeStartTime(i){var o;this.log({message:`seek episode start time, time: ${i}`}),(o=this.svelteRootComponent)==null||o.seekEpisodeStartTime(i)}returnFocusToEpisodes(){var i;this.log({message:"return focus to episodes button"}),(i=this.svelteRootComponent)==null||i.returnFocusToEpisodes()}setPlaybackRate(i){var o;this.log({message:`set playback rate to: ${i}`}),(o=this.svelteRootComponent)==null||o.setPlaybackRate(i)}setAutoQualityLimits(i){var o,n,r;this.log({message:`set auto quality limitation. Max: ${(o=i.max)!=null?o:"none"}. Min: ${(n=i.min)!=null?n:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(i)}addLanguage(i){var o;(o=this.store)==null||o.actions.internal.addLanguage(i)}async setLanguage(i){var o;await((o=this.store)==null?void 0:o.actions.internal.setLanguage(i))}setLiveStart(i){var o,n,r;this.log({message:"live started"}),(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(i,{autoplay:!0})}setLiveWaitingRecover(){var i;this.log({message:"live waiting"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()})}setLiveWaitingRecord(){var i;this.log({message:"post live"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()})}setLiveEnd(i){var o;this.log({message:"live ended"}),(o=this.store)!=null&&o.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var n,r,l;(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!1),(l=this.svelteRootComponent)==null||l.$destroy(),this.createPlayer(i,{autoplay:!1})})}setLiveLowLatency(i){var o;this.log({message:"live switch to low latency "+i}),(o=this.store)==null||o.actions.external.setLiveLowLatency(i)}getDeviceId(){var i,o;return(o=(i=this.statistics)==null?void 0:i.oneStat.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(i){var o;if(this.interactiveController&&((o=this.store)!=null&&o.state.positionExact$)){let n=Ne(this.store.state.positionExact$),l=Ne(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(P3()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),i==null||i()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:d.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(i,o=!1){var n;(n=this.microStoresRoot)==null||n.stores.showInteractiveTimeIndicatorTooltip$.set(i,o)}switchToActiveLive(){var i;(i=this.store)==null||i.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(i,o){var n;(n=this.store)==null||n.actions.external.updateAdditionalSettingsItem(i,o)}addAdditionalSettingsItem(i){var o;(o=this.store)==null||o.actions.external.addAdditionalSettingsItem(i)}removeAdditionalSettingsItem(i){var o;(o=this.store)==null||o.actions.external.removeAdditionalSettingsItem(i)}updateAdditionalContextItem(i,o){var n;(n=this.store)==null||n.actions.external.updateAdditionalContextItem(i,o)}addAdditionalContextItem(i){var o;(o=this.store)==null||o.actions.external.addAdditionalContextItem(i)}removeAdditionalContextItem(i){var o;(o=this.store)==null||o.actions.external.removeAdditionalContextItem(i)}updateAdditionalButton(i,o){var n;(n=this.store)==null||n.actions.external.updateAdditionalButton(i,o)}addAdditionalButton(i){var o;(o=this.store)==null||o.actions.external.addAdditionalButton(i)}removeAdditionalButton(i){var o;(o=this.store)==null||o.actions.external.removeAdditionalButton(i)}updateStatContext(i){this.statistics&&this.statistics.oneStat.updateContext(i)}handleTimerNextVideo(i){var o;(o=this.store)==null||o.actions.internal.setTimerNextVideoRunning(i)}focus(){var i,o,n;(n=(o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)==null?void 0:o.focus)==null||n.call(o)}};import{InterfaceLanguage as cee,VKNumericLanguage as uee,loadVKLangPack as pee}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as mee,VideoFormat as vee}from"@vkontakte/videoplayer-core/es2018";var iee=()=>{window.customElements.define("vk-video-player",tf)};export{Lu as ControlButtonType,es as GridTypes,cee as InterfaceLanguage,bd as MenuItemType,va as PlayerPhase,Ja as VERSION,uee as VKNumericLanguage,vee as VideoFormat,mee as VideoQuality,pee as loadVKLangPack,iee as registerPlayerWebComponent};
363
+ /* \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 ym(t,e){q(e,!0),Q(t,ux);let[i,o]=Ue(),n=()=>C(Ot,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),u=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),p=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),A=v(e,"volume",7,void 0),P=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),V=v(e,"showAds",7),z=v(e,"adsSlotId",7,void 0),Y=v(e,"adsParams",7,void 0),U=v(e,"adsPreviewParam",7,void 0),Z=v(e,"adsAutoplayParam",7,void 0),X=v(e,"duration",7,void 0),oe=v(e,"logoClickable",7),ce=v(e,"logoHidden",7),le=v(e,"isMobile",7),Ve=v(e,"showNextPrevButtons",7,!1),Me=v(e,"nextButtonActive",7,!1),J=v(e,"prevButtonActive",7,!1),Le=v(e,"endScreenVideoTitle",7,void 0),j=v(e,"endScreenVideoThumb",7,void 0),N=v(e,"isOneVideoPlaylist",7,!1),Ne=v(e,"supportLink",7),ne=v(e,"shadowRootContainer",7,void 0),ke=v(e,"outerContainerRef",7,void 0),Re=v(e,"fullScreenTarget",7,void 0),ue=v(e,"failoverHosts",7,void 0),D=v(e,"showMiniTimer",7,!1),de=v(e,"saveRate",7),Ee=v(e,"seekToInteractive",7,f1),We=v(e,"playPrevChapter",7,f1),lt=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),$e=v(e,"showEndScreen",7,!0),Pe=v(e,"keyboardControls",15,void 0),{subscribers:nt,stores:vt}=d();$g(u());let et=zt(),Vt=u().logoLink,rt=s().ui.debugPanelVisible,gt=s().ui.playerSize,Ot=s().state.isLive$,Be=s().state.isInteractive&&sx.device.isAndroid,re=ee(void 0),W=null,se=ee(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),Ag(s(),vt),Ye(()=>{s().ui.isMobile.set(le())});let ge=(F=!1)=>{O(se,!0),F?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Se=()=>{if(et.features.qualityDetailsSubMenuEnabled){let F=jg(s().videoId);if(F)switch(F.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,F.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,F.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(F.quality);break}}else{Zg(s().videoId),_p()&&s().actions.internal.setTrafficSavingEnabled(!0);let qt=mp(s().videoId);qt&&s().actions.internal.setQuality(qt)}};function De(F){var ai,no,ro;let qt=a()||F;qt&&s().initVideo({container:r(re),sources:qt,failoverHosts:ue(),subtitles:w(),volumeMultiplier:lt()});let Hi=ax.get(Tl)==="true";rt.set(Hi),E()>0&&s().actions.external.seekTime(E());let Li=le()?et.volumeDefault:(no=(ai=A())!=null?ai:mc())!=null?no:et.volumeDefault,ri=(ro=P())!=null?ro:qg();if(s().actions.external.setVolume(Li),s().actions.external.setMuted(ri),s().getAdmanWrapper().setInitialVolume(ri?0:Li),Se(),et.features.saveRate&&de()){let Ki=Qg();Ki&&!n()&&s().actions.internal.setPlaybackRate(Ki)}if(Ae()){let Ki=Yg();Ki&&s().actions.internal.setAutoplayNextEnabled(Ki)}s().ui.isAutoplay.set(I()),I()?ge():S()&&et.features.preload&&s().actions.internal.preload()}let pt=F=>{if(window.ResizeObserver){let qt,Hi;W=new ResizeObserver(lx(Li=>{let ri=Li[0];if(ri.contentBoxSize){let ai=Array.isArray(ri.contentBoxSize)?ri.contentBoxSize[0]:ri.contentBoxSize;qt=ai.inlineSize,Hi=ai.blockSize}else ri.contentRect&&(qt=ri.contentRect.width,Hi=ri.contentRect.height);gt.set({width:qt,height:Hi})},300)),W.observe(F)}gt.set({width:F.clientWidth,height:F.clientHeight})},Ht=()=>{document.hidden&&s().actions.external.stop()};Bt(()=>{var Hi,Li,ri,ai;Be&&document.addEventListener("visibilitychange",Ht),et.debugLog&&s().actions.internal.startLogging(),pt(r(re));let F=nt.map(no=>no.init({store:s(),microStores:vt,config:l(),interactiveController:$(),uiConfig:u()})),qt=()=>{Be&&document.removeEventListener("visibilitychange",Ht),W==null||W.disconnect(),F.forEach(no=>no.unsubscribe()),s().destroy()};return((Hi=y())==null?void 0:Hi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),qt):((Li=y())==null?void 0:Li.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),qt):(((ri=y())==null?void 0:ri.status)==="finished"||((ai=y())==null?void 0:ai.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),qt):(De(),qt)});function Qe(){r(se)?s().actions.external.play():ge(!0)}function dt(){s().actions.external.pause()}function Xe(F){s().actions.external.setMuted(F)}function Ct(F){le()||F>=0&&F<=1&&s().actions.external.setVolume(F)}function Zt(F){s().actions.internal.seekTime(F,dx.UNKNOWN)}function qe(F){s().actions.external.seekEpisodeStartTime(F)}function ct(){s().actions.external.returnFocusToEpisodes()}function ei(F){s().actions.external.setPlaybackRate(F)}function Mi(F){s().actions.external.setAutoQualityLimits(F)}let To=eu(et.view);var Oi=cx();ot(Oi,To);var Io=h(Oi);{var ko=F=>{$m(F,{get store(){return s()},uiConfig:et,get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return z()},get adsParams(){return Y()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Z()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return ce()},logoTargetUrl:Vt,get nextButtonActive(){return Me()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Ne()},get shadowRootContainer(){return ne()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Re()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return We()},firstStart:ge,seekTime:Zt,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(qt){O(re,pe(qt))}})},Et=F=>{_m(F,{get store(){return s()},uiConfig:et,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return z()},get adsParams(){return Y()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Z()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return ce()},logoTargetUrl:Vt,get nextButtonActive(){return Me()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Ne()},get shadowRootContainer(){return ne()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Re()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return We()},firstStart:ge,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(qt){O(re,pe(qt))},get keyboardControls(){return Pe()},set keyboardControls(qt){Pe(qt)}})};R(Io,F=>{le()?F(ko):F(Et,!1)})}g(Oi),b(t,Oi);var ht=K({initVideo:De,play:Qe,pause:dt,setMuted:Xe,setVolume:Ct,seekTime:Zt,seekEpisodeStartTime:qe,returnFocusToEpisodes:ct,setPlaybackRate:ei,setAutoQualityLimits:Mi,get sources(){return a()},set sources(F){a(F)},get store(){return s()},set store(F){s(F)},get microStoresRoot(){return d()},set microStoresRoot(F){d(F)},get videoConfig(){return l()},set videoConfig(F){l(F)},get uiConfig(){return u()},set uiConfig(F){u(F)},get title(){return f()},set title(F){f(F)},get thumbUrl(){return _()},set thumbUrl(F){_(F)},get interactiveContainer(){return p()},set interactiveContainer(F){p(F)},get interactiveController(){return $()},set interactiveController(F){$(F)},get subtitles(){return w()},set subtitles(F){w(F)},get live(){return y()},set live(F){y(F)},get preload(){return S()},set preload(F){S(F)},get autoplay(){return I()},set autoplay(F){I(F)},get volume(){return A()},set volume(F){A(F)},get muted(){return P()},set muted(F){P(F)},get fromTime(){return E()},set fromTime(F){E(F)},get canRewindLive(){return T()},set canRewindLive(F){T(F)},get showAds(){return V()},set showAds(F){V(F)},get adsSlotId(){return z()},set adsSlotId(F){z(F)},get adsParams(){return Y()},set adsParams(F){Y(F)},get adsPreviewParam(){return U()},set adsPreviewParam(F){U(F)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(F){Z(F)},get duration(){return X()},set duration(F){X(F)},get logoClickable(){return oe()},set logoClickable(F){oe(F)},get logoHidden(){return ce()},set logoHidden(F){ce(F)},get isMobile(){return le()},set isMobile(F){le(F)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(F){Ve(F)},get nextButtonActive(){return Me()},set nextButtonActive(F){Me(F)},get prevButtonActive(){return J()},set prevButtonActive(F){J(F)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(F){Le(F)},get endScreenVideoThumb(){return j()},set endScreenVideoThumb(F){j(F)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(F){N(F)},get supportLink(){return Ne()},set supportLink(F){Ne(F)},get shadowRootContainer(){return ne()},set shadowRootContainer(F){ne(F)},get outerContainerRef(){return ke()},set outerContainerRef(F){ke(F)},get fullScreenTarget(){return Re()},set fullScreenTarget(F){Re(F)},get failoverHosts(){return ue()},set failoverHosts(F){ue(F)},get showMiniTimer(){return D()},set showMiniTimer(F){D(F)},get saveRate(){return de()},set saveRate(F){de(F)},get showAutoplayNext(){return Ae()},set showAutoplayNext(F){Ae(F)},get seekToInteractive(){return Ee()},set seekToInteractive(F){Ee(F)},get playPrevChapter(){return We()},set playPrevChapter(F){We(F)},get volumeMultiplier(){return lt()},set volumeMultiplier(F){lt(F)},get showEndScreen(){return $e()},set showEndScreen(F){$e(F)},get keyboardControls(){return Pe()},set keyboardControls(F){Pe(F)}});return o(),ht}var px=be('<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 xm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=px();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function wm(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");xm(t,{get style(){return r(o)}})}var fx=L('<div class="title svelte-1y9fytq"> </div>'),mx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),vx={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 Sm(t,e){Q(t,vx);var i=mx(),o=h(i);{var n=d=>{var l=fx(),u=h(l,!0);g(l),k(()=>fe(u,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);wm(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>ot(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as Fx}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as Ux,InterfaceLanguage as zx,isNonNullable as Am,Logger as qx,Observable as Kx,Subscription as y1,once as Wx,InternalsExposure as Qx,skip as Gx}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as x1,isMobile as Yx}from"@vkontakte/videoplayer-core/es2018";import{OneStat as jx}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as gx,Subscription as hx}from"@vkontakte/videoplayer-shared/es2018";var tu=class{constructor(){this.subscription=new hx,this.logger=new gx,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=xe(e.state.currentPlaybackRate$),n=xe(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Im,detectEmbed as wx}from"@vkontakte/videoplayer-shared/es2018";var _x=be('<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 Cm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=_x();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),b(t,o)}var bx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),$x={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 Tm(t,e){q(e,!0),Q(t,$x);let[i,o]=Ue(),n=()=>C(u,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=Te(),d=zt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,p=m(()=>n()&&_("pip_dummy_title")),$=eu(d.view);var w=bx();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),ot(w,$);var y=h(w);let S;var I=h(y);Cm(I,{}),g(y);var A=M(y,2),P=h(A,!0);g(A),g(w),k(E=>{S=te(y,1,"dummy-image svelte-1pbsod4",null,S,E),fe(P,r(p))},[()=>({desktop:!a()})]),b(t,w),K(),o()}var yx=Object.defineProperty,xx=(t,e,i)=>e in t?yx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Qa=(t,e,i)=>xx(t,typeof e!="symbol"?e+"":e,i),Sx=460,Cx=280,wd=class{constructor({enabled:e=!0}={enabled:!0}){Qa(this,"playerDomElement"),Qa(this,"playerParentShadowRoot"),Qa(this,"playerDummyElement"),Qa(this,"svelteContext"),Qa(this,"pipWindow"),Qa(this,"info",{isActive$:new Im(!1),isEnabled$:new Im(!1),type:1}),this.info.isEnabled$=new Im(e)}isSupported(){let{isEmbed:e}=wx();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Sx,height:Cx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
364
+ `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Xr(Tm,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Hs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function m1(t){return t instanceof wd}var iu=class{static getLatestSupportedVersion(e){let i=new Ws,o=new wd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function ou(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var v1="Inner error. Unexpectedly root annotation container null reference exception",g1="Annotation with such name already exists",h1="Annotation with such name does not exist";var Ga=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Tx,Subscription as Ix,throttleFn as kx}from"@vkontakte/videoplayer-shared/es2018";var Ex="1",Ax=100,nu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Ix}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=kx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Ax);this.subscriptions.add(Tx(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Ga(v1);if(this.annotations.has(e))throw new Ga(g1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Ex,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 Ga(h1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as ru,Subscription as Px}from"@vkontakte/videoplayer-shared/es2018";var Ro=class{init({store:e,microStores:i,interactiveController:o,config:n}){return ru(e),ru(i),ru(n),n.interactiveData&&ru(o),this.subscription=new Px,this.subscription}};var Sd=class extends Ro{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Cd=class extends Ro{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:u,isMobile:f}=a.ui,_=xe(f),p=()=>_&&xe(u);return o.add(u.subscribe($=>{if(!_)return;let w=xe(s);xe(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let w=xe(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Td=class extends Ro{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as Mx}from"@vkontakte/videoplayer-shared/es2018";var km=ae(!1),su=null,Id=class extends Ro{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...km,set:(i,o=!1)=>{i!==xe(km)&&(this.clearTimeout(),km.set(i),!i&&su&&(su=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(l.subscribe(_=>{xe(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Mx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:_,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&su===null&&(su=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Lx,noop as Vx}from"@vkontakte/videoplayer-shared/es2018";var kd=class extends Ro{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Vx};this.checkIfShouldHide=i=>ws(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(xe(s)))return;let l=xe(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,p=xe(u),$=xe(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),_.remove(ap),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),_.add(ap),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(Lx({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(_){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as _1}from"@vkontakte/videoplayer-shared/es2018";var Ed=class extends Ro{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new _1(!1),isEnabled$:new _1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as Nx,filterChanged as Dx}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Em}from"@vkontakte/videoplayer-shared/es2018";var b1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Rx({maxCount:t}):void 0,e!==0?Bx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Rx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Em.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},Bx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Em.get(e)||"{}")}catch(a){return{}}},o=a=>Em.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Ad=class extends Ro{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=b1({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(Dx(),Nx(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var $1=()=>[Sd,Cd,Td,Id,kd,Ed,Ad].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 Pd}from"@vkontakte/videoplayer-shared/es2018";var Ox=Object.defineProperty,Hx=(t,e,i)=>e in t?Ox(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Jt=(t,e,i)=>Hx(t,typeof e!="symbol"?e+"":e,i),Zx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:zx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Yx(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Ya=ee(void 0),au=class extends HTMLElement{constructor(){super(),Jt(this,"svelteStubComponent"),Jt(this,"svelteRootComponent"),Jt(this,"store"),Jt(this,"microStoresRoot"),Jt(this,"statistics"),Jt(this,"sentry"),Jt(this,"_shadowRoot"),Jt(this,"playerContainer"),Jt(this,"rootContainer"),Jt(this,"shadowRootContainer"),Jt(this,"uiConfig"),Jt(this,"coreConfig"),Jt(this,"statisticsConfig"),Jt(this,"interactiveController"),Jt(this,"interactiveContainer"),Jt(this,"graphMadePause"),Jt(this,"currentPlayingVideoIndex",0),Jt(this,"needToRepeatPlaylist",!1),Jt(this,"videoConfig"),Jt(this,"pictureInPictureApi"),Jt(this,"mediaSessionApi"),Jt(this,"unsubscribePlayerPhaseSubscription"),Jt(this,"logger"),Jt(this,"log"),Jt(this,"subscription"),Jt(this,"interactiveSubscription"),Jt(this,"annotationsApi"),Jt(this,"slotsApi"),Jt(this,"prevIsid"),Jt(this,"isInited",!1),Jt(this,"internalsExposure",null),Jt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:p,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:I,interactiveData:A}=ou(this.videoConfig,i),P=(o=A==null?void 0:A.projectInfo)==null?void 0:o.pid,E=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&T)return new jx({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:S,deviceId:I,...P&&(!this.isInited||E)&&{projectId:Number(P)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Pd.create("ui"),this.logger=new qx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new y1,this.interactiveSubscription=new y1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=pe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Xr(Sm,s)}disconnectedCallback(){var e,i,o,n,a;(e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Pd.destroy("ui")}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,u,f,_;if(!this.videoConfig)return;let{albumId:p,statPlace:$,statAuthToken:w,preload:y,autoplay:S,volume:I,muted:A,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:z,adsParams:Y={},adsPreviewParam:U,adsAutoplayParam:Z,interfaceLanguage:X,isCyrillicRelatedInterface:oe,logoClickable:ce,logoHidden:le,isMobile:Ve,isTouch:Me,isAudioDisabled:J,isLiveCatchUpMode:Le,fullScreenTarget:j,failoverHosts:N,canDownload:Ne,callbacks:ne,interactiveData:ke,showThumbTimer:Re,additionalButtons:ue=[],additionalSettingsMenuItems:D=[],additionalContextMenuItems:de=[],repeat:Ee,saveRate:We,volumeMultiplier:lt,showEndScreen:Ae,showAutoplayNext:$e}=ou(this.videoConfig,i),{sources:Pe,title:nt,thumbUrl:vt,unitedVideoId:et,isClip:Vt=!1,duration:rt,adsParams:gt={},videoEpisodes:Ot,previewThumbsData:Ut,subtitles:Be,live:re}=e,W={...Y,...gt},se=this.getNextVideoInfo(),ge={sources:Pe,title:nt,thumbUrl:vt,subtitles:Be,unitedVideoId:et,isClip:Vt,live:re,albumId:p,statPlace:$,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,showAds:V,adsSlotId:z,adsParams:W,adsPreviewParam:U,adsAutoplayParam:Z,duration:rt,logoClickable:ce,logoHidden:le,isTouch:Me!=null?Me:Ve,repeat:Ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Se={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(ge)}`});let De=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),pt=(De==null?void 0:De.oneStat)||this.createOneStat(e,i);pt&&(this.statistics=new Oc(pt,De==null?void 0:De.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new qs(this.uiConfig.sentry,{version:La,env:uc},{movieId:et,albumId:p,place:$,autoplay:(a=S&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ve,clip:Vt}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...qs.getInstance()};let Qe=!!ke,dt=[],Xe="tooltip_interactive_go_back_disabled_first";if(Qe&&this.interactiveController){let ct=this.interactiveController.state.isInitialChapter$.getValue(),ei=this.interactiveController.getHistoryState();ct&&dt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||dt.push("SEEK_TO_INTERACTIVE_BUTTON"),ei.hasPrevChapter$.getValue()||(dt.push("PLAY_PREV_CHAPTER_BUTTON"),ct||(ei.isGoBackLimited$.getValue()?Xe="tooltip_interactive_go_back_disabled_limit":Xe="tooltip_interactive_go_back_disabled"))}let Ct=()=>{var ct;this.isInited=!1,this.prevIsid=void 0;let ei=(o==null?void 0:o.info.isEnded$.getValue())&&((ct=this.interactiveController)==null?void 0:ct.state.isEndChapter$.getValue());ne.onReplayInteractiveVideo&&!ei?ne.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Dh({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:oe,videoId:et,isClip:Vt,isLiveCatchUpMode:Le,isAudioDisabled:J,statAuthToken:w,callbacks:ne,webApi:Se,videoEpisodes:Ot,previewThumbsData:Ut,canDownload:Ne,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:dt,isInteractive:Qe,saveRate:We,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ct,playPrevChapterDisabledTooltip:Xe,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?ue:[],additionalSettingsMenuItems:D!=null?D:[],additionalContextMenuItems:de!=null?de:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:Zt}=this.microStoresRoot=$1(),qe=()=>{var ct,ei,Mi,To,Oi,Io;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Et=>{var ht;return(ht=ne==null?void 0:ne.onCurrentFormatChanged)==null?void 0:ht.call(ne,Et)})),this.subscription.add(Zt.interactiveControlsOpacity$.subscribe(Et=>{var ht;Et!==null&&((ht=this==null?void 0:this.interactiveController)==null||ht.setDisabledControls(Et))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Et=>{var ht;return(ht=ne==null?void 0:ne.onThroughputEstimationChanged)==null?void 0:ht.call(ne,Et)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Et=>{var ht;return(ht=ne==null?void 0:ne.onTrafficSavingEnabledChanged)==null?void 0:ht.call(ne,Et)})),this.subscription.add(new Kx(Et=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ht=>Et.next(ht)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Gx(1):Et=>Et).subscribe(Et=>{var ht;return(ht=ne==null?void 0:ne.onCurrentPlaybackRateChanged)==null?void 0:ht.call(ne,Et)})),this.subscription.add(this.store.state.volume$.subscribe(Et=>{var ht;return(ht=ne==null?void 0:ne.onVolumeChange)==null?void 0:ht.call(ne,Et)})),this.subscription.add(this.store.state.muted$.subscribe(Et=>{var ht,F;return Et?(ht=ne==null?void 0:ne.onMute)==null?void 0:ht.call(ne):(F=ne==null?void 0:ne.onUnmute)==null?void 0:F.call(ne)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Et=>{var ht;return(ht=ne==null?void 0:ne.onVideoBitrateChanged)==null?void 0:ht.call(ne,Et)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Et=>{var ht;let F=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;F&&(Et&&!F.includes(Il)&&F.add(Il),Et||F.remove(Il))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Et=>{var ht;if(!x1.browser.isSamsungBrowser||!Et||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ht=this.videoConfig)==null?void 0:ht.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Et=>{var ht;return(ht=ne==null?void 0:ne.onVSIDChanged)==null?void 0:ht.call(ne,Et)})),this.initMediaSession(),O(Ya,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Pe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:nt,thumbUrl:vt,subtitles:Be,live:re,preload:y,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:z,adsParams:W,adsPreviewParam:U,adsAutoplayParam:Z,duration:rt,logoClickable:ce,logoHidden:le,isMobile:Me!=null?Me:Ve,failoverHosts:N,fullScreenTarget:j,saveRate:We,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Re,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:lt,showEndScreen:Ae,showAutoplayNext:$e}));let ko={target:this.playerContainer,props:r(Ya)};this.svelteRootComponent=Xr(ym,ko),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Mi=(ei=(ct=this.videoConfig)==null?void 0:ct.callbacks)==null?void 0:ei.onInited)==null||Mi.call(ei)),(To=this.internalsExposure)==null||To.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Io=(Oi=this.videoConfig)==null?void 0:Oi.callbacks)!=null&&Io.onDevNullLog)?Pd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Pd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?x1.isInited$.subscribe(ct=>{ct&&(console.log("UI SDK async start"),qe())}):qe()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Am(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?xe(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:f,videoLoader:_}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:f,vkVideoLoader:_,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:p,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(y=>{if(!this.isInited)return;let S=this.store;y?S.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):S.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let S=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,S),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:S})=>{var I,A,P,E,T,V;if(!this.store||!this.microStoresRoot)return;let z=p.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(kl)),y==="action-choice-canceled"){let Y=xe(this.store.state.isPlaying$)||z;if(((P=(I=this.videoConfig)==null?void 0:I.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||V.call(T)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:S})=>{this.store&&y==="container-fake-removed"&&S&&this.store.ui.controls.disabledControls$.remove(kl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(S=>{var I,A,P;S.length&&((P=(A=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,I,A;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(S=this.videoConfig)==null?void 0:(I=S.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(I)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,u,f,_,p,$,w,y,S,I,A,P,E,T,V,z,Y,U,Z,X,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=ou(Zx,Ux(e,ce=>ce instanceof HTMLElement?ce:void 0)),this.uiConfig=bg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Qx("UI"))),Pd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[Fx()]}),Am(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),Am(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(S=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Z=this.uiConfig.features.nextPrevButtons)!=null?Z:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ce={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=iu.getLatestSupportedVersion(ce):this.pictureInPictureApi=new Ws(ce)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new tu:void 0,this.slotsApi=this.uiConfig.features.slots?new Zc:void 0,this.annotationsApi=this.uiConfig.features.annotations?new nu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(oe=this.slotsApi)==null||oe.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),m1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();O(Ya,pe({...r(Ya),showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:o.nextVideoTitle,endScreenVideoThumb:o.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()}))}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,O(Ya,pe({...r(Ya),needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()}))}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}getDeviceId(){var e,i;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=xe(this.store.state.positionExact$),s=xe(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(Wx()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&Hs(e)}};import{InterfaceLanguage as tZ,VKNumericLanguage as iZ,loadVKLangPack as oZ}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as rZ,VideoFormat as sZ}from"@vkontakte/videoplayer-core/es2018";var Qj=()=>{window.customElements.define("vk-video-player",au)};export{Hc as ControlButtonType,Or as GridTypes,tZ as InterfaceLanguage,Nl as MenuItemType,Ks as PlayerPhase,La as VERSION,iZ as VKNumericLanguage,sZ as VideoFormat,rZ as VideoQuality,oZ as loadVKLangPack,Qj as registerPlayerWebComponent};