@vkontakte/videoplayer 1.1.85 → 1.1.86

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/es2015.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.85
3
- * Tue, 10 Mar 2026 14:14:03 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-85/doc/
2
+ * @vkontakte/videoplayer v1.1.86
3
+ * Wed, 11 Mar 2026 06:07:14 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-86/doc/
5
5
  */
6
6
  "use strict";var K$=Object.create;var wd=Object.defineProperty,q$=Object.defineProperties,Q$=Object.getOwnPropertyDescriptor,G$=Object.getOwnPropertyDescriptors,Y$=Object.getOwnPropertyNames,kg=Object.getOwnPropertySymbols,j$=Object.getPrototypeOf,Lg=Object.prototype.hasOwnProperty,X$=Object.prototype.propertyIsEnumerable;var Mg=t=>{throw TypeError(t)};var jp=(t,e,i)=>e in t?wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ge=(t,e)=>{for(var i in e||(e={}))Lg.call(e,i)&&jp(t,i,e[i]);if(kg)for(var i of kg(e))X$.call(e,i)&&jp(t,i,e[i]);return t},ti=(t,e)=>q$(t,G$(e));var Z$=(t,e)=>{for(var i in e)wd(t,i,{get:e[i],enumerable:!0})},Vg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Y$(e))!Lg.call(t,r)&&r!==i&&wd(t,r,{get:()=>e[r],enumerable:!(o=Q$(e,r))||o.enumerable});return t};var Rg=(t,e,i)=>(i=t!=null?K$(j$(t)):{},Vg(e||!t||!t.__esModule?wd(i,"default",{value:t,enumerable:!0}):i,t)),J$=t=>Vg(wd({},"__esModule",{value:!0}),t);var cr=(t,e,i)=>jp(t,typeof e!="symbol"?e+"":e,i),Xp=(t,e,i)=>e.has(t)||Mg("Cannot "+i);var Ui=(t,e,i)=>(Xp(t,e,"read from private field"),i?i.call(t):e.get(t)),ea=(t,e,i)=>e.has(t)?Mg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Cl=(t,e,i,o)=>(Xp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Dg=(t,e,i)=>(Xp(t,e,"access private method"),i);var xt=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())});var qT={};Z$(qT,{ControlButtonType:()=>Tc,GridTypes:()=>es,InterfaceLanguage:()=>hd.InterfaceLanguage,MenuItemType:()=>ed,PlayerPhase:()=>ts,VERSION:()=>Ka,VKNumericLanguage:()=>hd.VKNumericLanguage,VideoFormat:()=>Hp.VideoFormat,VideoQuality:()=>Hp.VideoQuality,isDpipSupported:()=>tl,isPiPSupported:()=>zs,loadVKLangPack:()=>hd.loadVKLangPack,registerPlayerWebComponent:()=>KT});module.exports=J$(qT);var ta="[",ia="[!",Pa="]",vs={};var co=Symbol(),Qn=Symbol("filename"),Og=Symbol("hmr"),Ng="http://www.w3.org/1999/xhtml",du="http://www.w3.org/2000/svg";var Zp="@attach";var cu=!0;var Hg,Fg,Bg=(Fg=(Hg=globalThis.process)==null?void 0:Hg.env)==null?void 0:Fg.NODE_ENV,Ve=Bg&&!Bg.toLowerCase().startsWith("prod");var ur=Array.isArray,Ug=Array.prototype.indexOf,Sd=Array.from,Jp=Object.keys,_o=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,uu=Object.getOwnPropertyDescriptors,ef=Object.prototype,zg=Array.prototype,Aa=Object.getPrototypeOf,tf=Object.isExtensible;function oa(t){return typeof t=="function"}var wt=()=>{};function Wg(t){return t()}function na(t){for(var e=0;e<t.length;e++)t[e]()}var Jo=Symbol("$state"),Tl=Symbol("legacy props"),Kg=Symbol(""),pu=Symbol("proxy path"),fu=1,Il=3,pr=8;function mu(t){return t===this.v}function El(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function qg(t,e){return t!==e}function Pl(t){return!El(t,this.v)}function Qg(){if(Ve){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
@@ -40,22 +40,22 @@ ${o}in ${(d=a.function)==null?void 0:d[Qn].split("/").pop()}`,a=a.p;_o(t,"messag
40
40
  ${r}
41
41
  `}),t.stack&&_o(t,"stack",{value:t.stack.split(`
42
42
  `).filter(s=>!s.includes("svelte/src/internal")).join(`
43
- `)})}}var Na=!1,Bl=null,Ba=!1,Ls=!1;function ff(t){Ls=t}var Hd=[],Fd=[],Dt=null,gr=!1;function Yi(t){Dt=t}var St=null;function bo(t){St=t}var tn=null;function _u(t){Dt!==null&&Dt.f&2097152&&(tn===null?tn=[Dt,[t]]:tn[1].push(t))}var Mn=null,hr=0,vr=null;function dh(t){vr=t}var Eh=1,Iu=0,Ms=!1,Eu=null;function Pd(){return++Eh}function Va(t){var p,v;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,a,l=(e&512)!==0,d=o&&St!==null&&!Ms,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Va(a)&&pf(a),a.wv>t.wv)return!0}(!o||St!==null&&!Ms)&&An(t,1024)}return!1}function Ph(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];tn!=null&&tn[1].includes(t)&&tn[0]===Dt||((a.f&2)!==0?Ph(a,e,!1):e===a&&(i?An(a,2048):(a.f&1024)!==0&&An(a,4096),kd(a)))}}function hu(t){var $,y;var e=Mn,i=hr,o=vr,r=Dt,a=Ms,l=tn,d=Ft,s=gr,u=t.f;Mn=null,hr=0,vr=null,Ms=(u&256)!==0&&(gr||!Ba||Dt===null),Dt=(u&96)===0?t:null,tn=null,Td(t.ctx),gr=!1,Iu++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(Mn!==null){var v;if(Od(t,hr),p!==null&&hr>0)for(p.length=hr+Mn.length,v=0;v<Mn.length;v++)p[hr+v]=Mn[v];else t.deps=p=Mn;if(!Ms||(u&2)!==0&&t.reactions!==null)for(v=hr;v<p.length;v++)((y=($=p[v]).reactions)!=null?y:$.reactions=[]).push(t)}else p!==null&&hr<p.length&&(Od(t,hr),p.length=hr);if(_s()&&vr!==null&&!gr&&p!==null&&(t.f&6146)===0)for(v=0;v<vr.length;v++)Ph(vr[v],t);return r!==null&&r!==t&&(Iu++,vr!==null&&(o===null?o=vr:o.push(...vr))),m}catch(g){Ch(g)}finally{Mn=e,hr=i,vr=o,Dt=r,Ms=a,tn=l,Td(d),gr=s,t.f^=2097152}}function a1(t,e){let i=e.reactions;if(i!==null){var o=Ug.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Mn===null||!Mn.includes(e))&&(An(e,4096),(e.f&768)===0&&(e.f^=512),gu(e),Od(e,0))}function Od(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)a1(t,i[o])}function Dl(t){var e=t.f;if((e&16384)===0){An(t,1024);var i=St,o=Ba;if(St=t,Ba=!0,Ve){var r=fr;Id(t.component_function)}try{(e&16)!==0?$h(t):hf(t),gf(t);var a=hu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=Eh,Ve&&hs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Pd(),l.set_during_effect=!1);Ve&&Fd.push(t)}finally{Ba=o,St=i,Ve&&Id(r)}}}function Th(){console.error("Last ten effects were: ",Fd.slice(-10).map(t=>t.fn)),Fd=[]}function l1(){try{Xg()}catch(t){if(Ve&&_o(t,"stack",{value:""}),Bl!==null)if(Ve)try{Bd(t,Bl)}catch(e){throw Th(),e}else Bd(t,Bl);else throw Ve&&Th(),t}}function wf(){var t=Ba;try{var e=0;for(Ba=!0;Hd.length>0;){e++>1e3&&l1();var i=Hd,o=i.length;Hd=[];for(var r=0;r<o;r++){var a=c1(i[r]);d1(a)}Vl.clear()}}finally{Na=!1,Ba=t,Bl=null,Ve&&(Fd=[])}}function d1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Va(o)&&(Dl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?bf(o):o.fn=null))}}function kd(t){Na||(Na=!0,queueMicrotask(wf));for(var e=Bl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Hd.push(e)}function c1(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Va(i)&&Dl(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Hl(t){var e;for(t&&(Na=!0,wf(),Na=!0,e=t());;){if(wh(),Hd.length===0)return Na=!1,Bl=null,Ve&&(Fd=[]),e;Na=!0,wf()}}function yo(){return xt(this,null,function*(){yield Promise.resolve(),Hl()})}function n(t){var e=t.f,i=(e&2)!==0;if(Eu!==null&&Eu.add(t),Dt!==null&&!gr){if(!(tn!=null&&tn[1].includes(t))||tn[0]!==Dt){var o=Dt.deps;t.rv<Iu&&(t.rv=Iu,Mn===null&&o!==null&&o[hr]===t?hr++:Mn===null?Mn=[t]:(!Ms||!Mn.includes(t))&&Mn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Va(r)&&pf(r)),Ve&&hs&&!gr&&Cd!==null&&Dt!==null&&Cd.reaction===Dt)if(t.trace)t.trace();else{var l=ks("TracedAt");if(l){var d=Cd.entries.get(t);d===void 0&&(d={traces:[]},Cd.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return Ls&&Vl.has(t)?Vl.get(t):t.v}function kt(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var u1=-7169;function An(t,e){t.f=t.f&u1|e}function Au(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Jo in t)Pu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Jo in i&&Pu(i)}}}function Pu(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{Pu(t[o],e)}catch(r){}let i=Aa(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=uu(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function Sf(t,e){if(e){let i=document.body;t.autofocus=!0,Ln(()=>{document.activeElement===i&&t.focus()})}}function Ud(t){var e=Dt,i=St;Yi(null),bo(null);try{return t()}finally{Yi(e),bo(i)}}var Cf=new Set,ku=new Set;function Ha(t){if(!st)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Tf(t,e,i,o={}){function r(a){if(o.capture||Fl.call(e,a),!a.cancelBubble)return Ud(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ln(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function bt(t,e,i,o,r){var a={capture:o,passive:r},l=Tf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Do(()=>{e.removeEventListener(t,l,a)})}function tt(t){for(var e=0;e<t.length;e++)Cf.add(t[e]);for(var i of ku)i(t)}function Fl(t){var T;var e=this,i=e.ownerDocument,o=t.type,r=((T=t.composedPath)==null?void 0:T.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){_o(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Dt,p=St;Yi(null),bo(null);try{for(var v,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var g=a["__"+o];if(g!=null&&(!a.disabled||t.target===a))if(ur(g)){var[x,...I]=g;x.apply(a,[t,...I])}else g.call(a,t)}catch(D){v?$.push(D):v=D}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let D of $)queueMicrotask(()=>{throw D});throw v}}finally{t.__root=e,delete t.currentTarget,Yi(m),bo(p)}}}var f1;function Ah(){f1=void 0}function Ul(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function No(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function k(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(st)return No(Ct,null),Ct;r===void 0&&(r=Ul(a?t:"<!>"+t),i||(r=Ai(r)));var l=o||Ld?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ai(l),s=l.lastChild;No(d,s)}else No(l,l);return l}}function g1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(st)return No(Ct,null),Ct;if(!l){var d=Ul(a),s=Ai(d);if(r)for(l=document.createDocumentFragment();Ai(s);)l.appendChild(Ai(s));else l=Ai(s)}var u=l.cloneNode(!0);if(r){var m=Ai(u),p=u.lastChild;No(m,p)}else No(u,u);return u}}function Ae(t,e){return g1(t,e,"svg")}function $s(t=""){if(!st){var e=kn(t+"");return No(e,e),e}var i=Ct;return i.nodeType!==Il&&(i.before(i=kn()),Ei(i)),No(i,i),i}function Re(){if(st)return No(Ct,null),Ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=kn();return t.append(e,i),No(e,i),t}function b(t,e){if(st){St.nodes_end=Ct,Xi();return}t!==null&&t.before(e)}var h1=/\r/g;function Lh(t){t=t.replace(h1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Mh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var _1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Vh(t){return _1.includes(t)}var b1=["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 $1={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 Rh(t){var e;return t=t.toLowerCase(),(e=$1[t])!=null?e:t}var RP=[...b1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var y1=["touchstart","touchmove"];function Dh(t){return y1.includes(t)}var x1=["$state","$state.raw","$derived","$derived.by"],DP=[...x1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var w1=["textarea","script","style","title"];function Oh(t){return w1.includes(t)}function Lu(t){return t==null?void 0:t.replace(/\//g,"/​")}var zd=!0;function Mu(t){zd=t}function ge(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 Nh(t,e)}function Ef(t,e){var l;yu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=st,r=Ct;try{for(var a=Ai(i);a&&(a.nodeType!==pr||a.data!==ta);)a=on(a);if(!a)throw vs;$o(!0),Ei(a),Xi();let d=Nh(t,ti(Ge({},e),{anchor:a}));if(Ct===null||Ct.nodeType!==pr||Ct.data!==Pa)throw ra(),vs;return $o(!1),d}catch(d){if(d===vs)return e.recover===!1&&Zg(),yu(),Md(i),$o(!1),Xr(t,e);throw d}finally{$o(o),Ei(r),Ah()}}var zl=new Map;function Nh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){yu();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var $=p[v];if(!d.has($)){d.add($);var y=Dh($);e.addEventListener($,Fl,{passive:y});var g=zl.get($);g===void 0?(document.addEventListener($,Fl,{passive:y}),zl.set($,1)):zl.set($,g+1)}}};s(Sd(Cf)),ku.add(s);var u=void 0,m=bh(()=>{var p=i!=null?i:e.appendChild(kn());return zi(()=>{if(a){H({});var v=Ft;v.c=a}r&&(o.$$events=r),st&&No(p,null),zd=l,u=t(p,o)||{},zd=!0,st&&(St.nodes_end=Ct),a&&F()}),()=>{var y;for(var v of d){e.removeEventListener(v,Fl);var $=zl.get(v);--$===0?(document.removeEventListener(v,Fl),zl.delete(v)):zl.set(v,$)}ku.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return If.set(u,m),u}var If=new WeakMap;function Fa(t,e){let i=If.get(t);return i?(If.delete(t),i(e)):(Ve&&ph(),Promise.resolve())}function ii(t,e,...i){var o=t,r=wt,a;Zi(()=>{r!==(r=e())&&(a&&(ji(a),a=null),Ve&&r==null&&Jg(),a=zi(()=>r(o,...i)))},65536),st&&(o=Ct)}if(Ve){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ih(e)},set:o=>{i=o}})}};I1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var I1;function Vt(t){Ft===null&&Al("onMount"),gs&&Ft.l!==null?T1(Ft).m.push(t):Fe(()=>{let e=kt(t);if(typeof e=="function")return e})}function pn(t){Ft===null&&Al("onDestroy"),Vt(()=>()=>kt(t))}function T1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Bh=new Map;function Hh(t,e){var i=Bh.get(t);i||(i=new Set,Bh.set(t,i)),i.add(e)}function M(t,e,[i,o]=[0,0]){st&&i===0&&Xi();var r=t,a=null,l=null,d=co,s=i>0?65536:0,u=!1;let m=(v,$=!0)=>{u=!0,p($,v)},p=(v,$)=>{if(d===(d=v))return;let y=!1;if(st&&o!==-1){if(i===0){let x=$u(r);x===ta?o=0:x===ia?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let g=o>i;!!d===g&&(r=Ra(),Ei(r),$o(!1),y=!0,o=-1)}d?(a?Rs(a):$&&(a=zi(()=>$(r))),l&&Xn(l,()=>{l=null})):(l?Rs(l):$&&(l=zi(()=>$(r,[i+1,o]))),a&&Xn(a,()=>{a=null})),y&&$o(!0)};Zi(()=>{u=!1,e(m),u||p(null,null)},s),st&&(r=Ct)}function Ds(t,e,i){st&&Xi();var o=t,r=co,a,l=_s()?qg:El;Zi(()=>{l(r,r=e())&&(a&&Xn(a),a=zi(()=>i(o)))}),st&&(o=Ct)}var aa=null;function kf(t){aa=t}function Wd(t,e){return e}function A1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)Cu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Md(s),s.append(i),o.clear(),sa(t,e[0].prev,e[a-1].next)}$f(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),sa(t,m.prev,m.next)),ji(m.e,!d)}})}function Ci(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=st?Ei(Ai(u)):u.appendChild(kn())}st&&Xi();var m=null,p=!1,v=Pn(()=>{var $=i();return ur($)?$:$==null?[]:Sd($)});Zi(()=>{var $=n(v),y=$.length;if(p&&y===0)return;p=y===0;let g=!1;if(st){var x=$u(l)===ia;x!==(y===0)&&(l=Ra(),Ei(l),$o(!1),g=!0)}if(st){for(var I=null,T,D=0;D<y;D++){if(Ct.nodeType===pr&&Ct.data===Pa){l=Ct,g=!0,$o(!1);break}var A=$[D],E=o(A,D);T=zh(Ct,d,I,null,A,E,D,r,e,i),d.items.set(E,T),I=T}y>0&&Ei(Ra())}st||k1($,d,l,r,e,o,i),a!==null&&(y===0?m?Rs(m):m=zi(()=>a(l)):m!==null&&Xn(m,()=>{m=null})),g&&$o(!0),n(v)}),st&&(l=Ct)}function k1(t,e,i,o,r,a,l){var ae,le,ce,X;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,v=p,$,y=null,g,x=[],I=[],T,D,A,E;if(d)for(E=0;E<u;E+=1)T=t[E],D=a(T,E),A=m.get(D),A!==void 0&&((ae=A.a)==null||ae.measure(),(g!=null?g:g=new Set).add(A));for(E=0;E<u;E+=1){if(T=t[E],D=a(T,E),A=m.get(D),A===void 0){var V=v?v.e.nodes_start:i;y=zh(V,e,y,y===null?e.first:y.next,T,D,E,o,r,l),m.set(D,y),x=[],I=[],v=y.next;continue}if(s&&L1(A,T,E,r),(A.e.f&8192)!==0&&(Rs(A.e),d&&((le=A.a)==null||le.unfix(),(g!=null?g:g=new Set).delete(A))),A!==v){if($!==void 0&&$.has(A)){if(x.length<I.length){var q=I[0],L;y=q.prev;var z=x[0],j=x[x.length-1];for(L=0;L<x.length;L+=1)Fh(x[L],q,i);for(L=0;L<I.length;L+=1)$.delete(I[L]);sa(e,z.prev,j.next),sa(e,y,z),sa(e,j,q),v=q,y=j,E-=1,x=[],I=[]}else $.delete(A),Fh(A,v,i),sa(e,A.prev,A.next),sa(e,A,y===null?e.first:y.next),sa(e,y,A),y=A;continue}for(x=[],I=[];v!==null&&v.k!==D;)(v.e.f&8192)===0&&($!=null?$:$=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}x.push(A),y=A,v=A.next}if(v!==null||$!==void 0){for(var te=$===void 0?[]:Sd($);v!==null;)(v.e.f&8192)===0&&te.push(v),v=v.next;var ee=te.length;if(ee>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<ee;E+=1)(ce=te[E].a)==null||ce.measure();for(E=0;E<ee;E+=1)(X=te[E].a)==null||X.fix()}A1(e,te,oe,m)}}d&&Ln(()=>{var _e;if(g!==void 0)for(A of g)(_e=A.a)==null||_e.apply()}),St.first=e.first&&e.first.e,St.last=y&&y.e}function L1(t,e,i,o){(o&1)!==0&&Rl(t.v,e),(o&2)!==0?Rl(t.i,i):t.i=i}function zh(t,e,i,o,r,a,l,d,s,u){var m=aa,p=(s&1)!==0,v=(s&16)===0,$=p?v?bs(r,!1,!1):kr(r):r,y=(s&2)===0?l:kr(l);Ve&&p&&($.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var g={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};aa=g;try{return g.e=zi(()=>d(t,$,y,u),st),g.e.prev=i&&i.e,g.e.next=o&&o.e,i===null?e.first=g:(i.next=g,i.e.next=g.e),o!==null&&(o.prev=g,o.e.prev=g.e),g}finally{aa=m}}function Fh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=on(a);r.before(a),a=l}}function sa(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 M1(t,e,i){var a,l;if(!e||e===Lh(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=fr)!=null&&l[Qn]&&(o=`in ${fr[Qn]}`),uh(Lu(o))}function Kd(t,e,i=!1,o=!1,r=!1){var a=t,l="";N(()=>{var $;var d=St;if(l===(l=($=e())!=null?$:"")){st&&Xi();return}if(d.nodes_start!==null&&(_f(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(st){for(var s=Ct.data,u=Xi(),m=u;u!==null&&(u.nodeType!==pr||u.data!=="");)m=u,u=on(u);if(u===null)throw ra(),vs;Ve&&!r&&M1(u.parentNode,s,l),No(Ct,m),a=Ei(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Ul(p);if((i||o)&&(v=Ai(v)),No(Ai(v),v.lastChild),i||o)for(;Ai(v);)a.before(Ai(v));else a.before(v)}})}function Wi(t,e,i){st&&Xi();var o=t,r,a;Zi(()=>{r!==(r=e())&&(a&&(Xn(a),a=null),r&&(a=zi(()=>i(o,r))))},65536),st&&(o=Ct)}function Ua(t,e,i,o,r,a){var y;let l=st;st&&Xi();var d=Ve&&a&&((y=Ft)==null?void 0:y.function[Qn]),s,u,m=null;st&&Ct.nodeType===fu&&(m=Ct,Xi());var p=st?Ct:t,v,$=aa;Zi(()=>{let g=e()||null;var x=r?r():i||g==="svg"?du:null;if(g!==s){var I=aa;kf($),v&&(g===null?Xn(v,()=>{v=null,u=null}):g===u?Rs(v):(ji(v),Mu(!1))),g&&g!==u&&(v=zi(()=>{if(m=st?m:x?document.createElementNS(x,g):document.createElement(g),Ve&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),No(m,m),o){st&&Oh(g)&&m.append(document.createComment(""));var T=st?Ai(m):m.appendChild(kn());st&&(T===null?$o(!1):Ei(T)),o(m,T)}St.nodes_end=m,p.before(m)})),s=g,s&&(u=s),Mu(!0),kf(I)}},65536),l&&($o(!0),Ei(p))}var Mf;function Wh(t){return Mf=t.target,new Lf(t)}var Os,Lr,Lf=class{constructor(e){ea(this,Os);ea(this,Lr);var a,l;var i=new Map,o=(d,s)=>{var u=bs(s,!1,!1);return i.set(d,u),u};let r=new Proxy(ti(Ge({},e.props||{}),{$$events:{}}),{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===Tl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var m;return O((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});Cl(this,Lr,(e.hydrate?Ef:Xr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Hl(),Cl(this,Os,r.$$events);for(let d of Object.keys(Ui(this,Lr)))d==="$set"||d==="$destroy"||d==="$on"||_o(this,d,{get(){return Ui(this,Lr)[d]},set(s){Ui(this,Lr)[d]=s},enumerable:!0});Ui(this,Lr).$set=d=>{Object.assign(r,d)},Ui(this,Lr).$destroy=()=>{Fa(Ui(this,Lr))}}$set(e){Ui(this,Lr).$set(e)}$on(e,i){Ui(this,Os)[e]=Ui(this,Os)[e]||[];let o=(...r)=>i.call(this,...r);return Ui(this,Os)[e].push(o),()=>{Ui(this,Os)[e]=Ui(this,Os)[e].filter(r=>r!==o)}}$destroy(){Ui(this,Lr).$destroy()}};Os=new WeakMap,Lr=new WeakMap;function Q(t,e){Ln(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Mf)==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),Ve&&Hh(e.hash,d)}})}function Ns(t,e){var i=void 0,o;Zi(()=>{i!==(i=e())&&(o&&(ji(o),o=null),i&&(o=zi(()=>{Oo(()=>i(t))})))})}function Kh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Kh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function qh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Kh(t))&&(o&&(o+=" "),o+=e);return o}function qd(t){return typeof t=="object"?qh(t):t!=null?t:""}var Qh=[...`
44
- \r\f \v\uFEFF`];function Yh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||Qh.includes(o[l-1]))&&(d===o.length||Qh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Gh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function Vf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function jh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(Vf)),r&&s.push(...Object.keys(r).map(Vf));var u=0,m=-1;let g=t.length;for(var p=0;p<g;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&m===-1)m=p;else if(v===";"||p===g-1){if(m!==-1){var $=Vf(t.substring(u,m).trim());if(!s.includes($)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(i+=Gh(o)),r&&(i+=Gh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,r,a){var l=t.__className;if(st||l!==i||l===void 0){var d=Yh(i,o,a);(!st||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Rf(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function Ke(t,e,i,o){var r=t.__style;if(st||r!==e){var a=jh(e,o);(!st||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Rf(t,i==null?void 0:i[0],o[0]),Rf(t,i==null?void 0:i[1],o[1],"important")):Rf(t,i,o));return o}function Qd(t,e,i){if(t.multiple){if(e==null)return;if(!ur(e))return fh();for(var o of t.options)o.selected=e.includes(Xh(o));return}for(o of t.options){var r=Xh(o);if(af(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Df(t){var e=new MutationObserver(()=>{Qd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Do(()=>{e.disconnect()})}function Xh(t){return"__value"in t?t.__value:t.value}var Wl=Symbol("class"),Kl=Symbol("style"),e_=Symbol("is custom element"),t_=Symbol("is html");function i_(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var r=n_(t);if(st&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||F1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Kg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&r_(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function o_(t,e,i,o,r=!1){var A;var a=n_(t),l=a[e_],d=!a[t_];let s=st&&l;s&&$o(!1);var u=e||{},m=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=qd(i.class):(o||i[Wl])&&(i.class=null),i[Kl]&&((A=i.style)!=null||(i.style=null));var v=r_(t);for(let E in i){let V=i[E];if(m&&E==="value"&&V==null){t.value=t.__value="",u[E]=V;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,$,V,o,e==null?void 0:e[Wl],i[Wl]),u[E]=V,u[Wl]=i[Wl];continue}if(E==="style"){Ke(t,V,e==null?void 0:e[Kl],i[Kl]),u[E]=V,u[Kl]=i[Kl];continue}var y=u[E];if(!(V===y&&!(V===void 0&&t.hasAttribute(E)))){u[E]=V;var g=E[0]+E[1];if(g!=="$$")if(g==="on"){let q={},L="$$"+E,z=E.slice(2);var x=Vh(z);if(Mh(z)&&(z=z.slice(0,-7),q.capture=!0),!x&&y){if(V!=null)continue;t.removeEventListener(z,u[L],q),u[L]=null}if(V!=null)if(x)t[`__${z}`]=V,tt([z]);else{let j=function(te){u[E].call(this,te)};var D=j;u[L]=Tf(z,t,j,q)}else x&&(t[`__${z}`]=void 0)}else if(E==="style")De(t,E,V);else if(E==="autofocus")Sf(t,!!V);else if(!l&&(E==="__value"||E==="value"&&V!=null))t.value=t.__value=V;else if(E==="selected"&&m)i_(t,V);else{var I=E;d||(I=Rh(I));var T=I==="defaultValue"||I==="defaultChecked";if(V==null&&!l&&!T)if(a[E]=null,I==="value"||I==="checked"){let q=t,L=e===void 0;if(I==="value"){let z=q.defaultValue;q.removeAttribute(I),q.defaultValue=z,q.value=q.__value=L?z:null}else{let z=q.defaultChecked;q.removeAttribute(I),q.defaultChecked=z,q.checked=L?z:!1}}else t.removeAttribute(E);else T||v.includes(I)&&(l||typeof V!="string")?t[I]=V:typeof V!="function"&&De(t,I,V,r)}}}return s&&$o(!0),u}function uo(t,e,i=[],o,r=!1,a=Gr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Zi(()=>{var v=e(...l.map(n)),$=o_(t,d,v,o,r);m&&u&&"value"in v&&Qd(t,v.value,!1);for(let g of Object.getOwnPropertySymbols(s))v[g]||ji(s[g]);for(let g of Object.getOwnPropertySymbols(v)){var y=v[g];g.description===Zp&&(!d||y!==d[g])&&(s[g]&&ji(s[g]),s[g]=zi(()=>Ns(t,()=>y))),$[g]=y}d=$}),u){var p=t;Oo(()=>{Qd(p,d.value),Df(p)})}m=!0}function n_(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[e_]:t.nodeName.includes("-"),[t_]:t.namespaceURI===Ng}}var Zh=new Map;function r_(t){var e=Zh.get(t.nodeName);if(e)return e;Zh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=uu(o);for(var a in i)i[a].set&&e.push(a);o=Aa(o)}return e}function F1(t,e,i){var o;Ve&&(e==="srcset"&&U1(t,i)||Of((o=t.getAttribute(e))!=null?o:"",i)||ch(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Of(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Jh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function U1(t,e){var i=Jh(t.srcset),o=Jh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Of(i[l][0],r)||Of(r,i[l][0])))}var z1=cu?()=>performance.now():()=>Date.now(),Zr={tick:t=>(cu?requestAnimationFrame:wt)(t),now:()=>z1(),tasks:new Set};function s_(){let t=Zr.now();Zr.tasks.forEach(e=>{e.c(t)||(Zr.tasks.delete(e),e.f())}),Zr.tasks.size!==0&&Zr.tick(s_)}function a_(t){let e;return Zr.tasks.size===0&&Zr.tick(s_),{promise:new Promise(i=>{Zr.tasks.add(e={c:t,f:i})}),abort(){Zr.tasks.delete(e)}}}function Vu(t,e){Ud(()=>{t.dispatchEvent(new CustomEvent(e))})}function Q1(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 l_(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=Q1(r.trim());e[l]=a.trim()}return e}var G1=t=>t;function Bs(t,e,i,o){var D;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,v,$;function y(){var V;var A=Dt,E=St;Yi(null),bo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:s})}finally{Yi(A),bo(E)}}var g={is_global:d,in(){var A;if(e.inert=m,!r){$==null||$.abort(),(A=$==null?void 0:$.reset)==null||A.call($);return}a||v==null||v.abort(),Vu(e,"introstart"),v=Nf(e,y(),$,1,()=>{Vu(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Vu(e,"outrostart"),$=Nf(e,y(),v,0,()=>{Vu(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),$==null||$.abort()}},x=St;if(((D=x.transitions)!=null?D:x.transitions=[]).push(g),r&&zd){var I=d;if(!I){for(var T=x.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Oo(()=>{kt(()=>g.in())})}}function Nf(t,e,i,o,r){var a=o===1;if(oa(e)){var l,d=!1;return Ln(()=>{if(!d){var x=e({direction:a?"in":"out"});l=Nf(t,x,i,o,r)}}),{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 r(),{abort:wt,deactivate:wt,reset:wt,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=G1}=e;var v=[];if(a&&i===void 0&&(m&&m(0,1),u)){var $=l_(u(0,1));v.push($,$)}var y=()=>1-o,g=t.animate(v,{duration:s,fill:"forwards"});return g.onfinish=()=>{var z;g.cancel();var x=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-x,T=e.duration*Math.abs(I),D=[];if(T>0){var A=!1;if(u)for(var E=Math.ceil(T/16.666666666666668),V=0;V<=E;V+=1){var q=x+I*p(V/E),L=l_(u(q,1-q));D.push(L),A||(A=L.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var j=g.currentTime;return x+I*p(j/T)},m&&a_(()=>{if(g.playState!=="running")return!1;var j=y();return m(j,1-j),!0})}g=t.animate(D,{duration:T,fill:"forwards"}),g.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=wt)},deactivate:()=>{r=wt},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Bf(t,e,i){var o=Zo(t,e);o&&o.set&&(t[e]=i,Do(()=>{t[e]=null}))}var la,ql,Gd,Du,d_,Ou=class Ou{constructor(e){ea(this,Du);ea(this,la,new WeakMap);ea(this,ql);ea(this,Gd);Cl(this,Gd,e)}observe(e,i){var o=Ui(this,la).get(e)||new Set;return o.add(i),Ui(this,la).set(e,o),Dg(this,Du,d_).call(this).observe(e,Ui(this,Gd)),()=>{var r=Ui(this,la).get(e);r.delete(i),r.size===0&&(Ui(this,la).delete(e),Ui(this,ql).unobserve(e))}}};la=new WeakMap,ql=new WeakMap,Gd=new WeakMap,Du=new WeakSet,d_=function(){var e;return(e=Ui(this,ql))!=null?e:Cl(this,ql,new ResizeObserver(i=>{for(var o of i){Ou.entries.set(o.target,o);for(var r of Ui(this,la).get(o.target)||[])r(o)}}))},cr(Ou,"entries",new WeakMap);var Hf=Ou;var Y1=new Hf({box:"border-box"});function Vn(t,e,i){var o=Y1.observe(t,()=>i(t[e]));Oo(()=>(kt(()=>i(t[e])),o))}function c_(t,e){return t===e||(t==null?void 0:t[Jo])===e}function it(t={},e,i,o){return Oo(()=>{var r,a;return nn(()=>{r=a,a=(o==null?void 0:o())||[],kt(()=>{t!==i(...a)&&(e(t,...a),r&&c_(i(...r),t)&&e(null,...r))})}),()=>{Ln(()=>{a&&c_(i(...a),t)&&e(null,...a)})}}),t}function rn(t=!1){let e=Ft,i=e.l.u;if(!i)return;let o=()=>Au(e.s);if(t){let r=0,a={},l=Gr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Dd(()=>{u_(e,o),na(i.b)}),Fe(()=>{let r=kt(()=>i.m.map(Wg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{u_(e,o),na(i.a)})}function u_(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Yd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),wt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ql=[];function Mr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=wt){let i=null,o=new Set;function r(d){if(El(t,d)&&(t=d,i)){let s=!Ql.length;for(let u of o)u[1](),Ql.push(u,t);if(s){for(let u=0;u<Ql.length;u+=2)Ql[u][0](Ql[u+1]);Ql.length=0}}}function a(d){r(d(t))}function l(d,s=wt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||wt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function mi(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Mr(i,(l,d)=>{let s=!1,u=[],m=0,p=wt,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:wt},$=r.map((y,g)=>Yd(y,x=>{u[g]=x,m&=~(1<<g),s&&v()},()=>{m|=1<<g}));return s=!0,v(),function(){na($),p(),s=!1}})}function he(t){let e;return Yd(t,i=>e=i)(),e}var Nu=!1,Ff=Symbol();function w(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:bs(void 0),unsubscribe:wt};if(o.store!==t&&!(Ff in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=wt;else{var r=!0;o.unsubscribe=Yd(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&Ff in i?he(t):n(o.source)}function Be(){let t={};function e(){Do(()=>{for(var i in t)t[i].unsubscribe();_o(t,Ff,{enumerable:!1,value:!0})})}return[t,e]}function Uf(t){var e=Nu;try{return Nu=!1,[t(),Nu]}finally{Nu=e}}var iy={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ve&&th(`${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 Rn(t,e,i){return new Proxy(Ve?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},iy)}var oy={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(oa(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];oa(r)&&(r=r());let a=Zo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(oa(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Zo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Jo||e===Tl)return!1;for(let i of t.props)if(oa(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(oa(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function Jr(...t){return new Proxy({props:t},oy)}function p_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var q,L;var r=(i&1)!==0,a=!gs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Uf(()=>t[e]):u=t[e];var m=Jo in t||Tl in t,p=l&&((L=(q=Zo(t,e))==null?void 0:q.set)!=null?L:m&&e in t&&(z=>t[e]=z))||void 0,v=o,$=!0,y=!1,g=()=>(y=!0,$&&($=!1,d?v=kt(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&eh(e),u=g(),p&&p(u));var x;if(a)x=()=>{var z=t[e];return z===void 0?g():($=!0,y=!1,z)};else{var I=(r?Gr:Pn)(()=>t[e]);I.f|=131072,x=()=>{var z=n(I);return z!==void 0&&(v=void 0),z===void 0?v:z}}if((i&4)===0&&a)return x;if(p){var T=t.$$legacy;return function(z,j){return arguments.length>0?((!a||!j||T||s)&&p(j?x():z),z):x()}}var D=!1,A=!1,E=bs(u),V=Gr(()=>{var z=x(),j=n(E);return D?(D=!1,A=!0,j):(A=!1,E.v=z)});return l&&n(V),r||(V.equals=Pl),function(z,j){if(Eu!==null&&(D=A,x(),n(E)),arguments.length>0){let te=j?n(V):a&&l?si(z):z;if(!V.equals(te)){if(D=!0,O(E,te),y&&v!==void 0&&(v=te),p_(V))return z;kt(()=>n(V))}return z}return p_(V)?V.v:n(V)}}var ny;typeof HTMLElement=="function"&&(ny=class extends HTMLElement{constructor(e,i,o){super();cr(this,"$$ctor");cr(this,"$$s");cr(this,"$$c");cr(this,"$$cn",!1);cr(this,"$$d",{});cr(this,"$$r",!1);cr(this,"$$p_d",{});cr(this,"$$l",{});cr(this,"$$l_u",new Map);cr(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 r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}connectedCallback(){return xt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=ry(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=zf(l,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=Wh({component:this.$$ctor,target:this.shadowRoot||this,props:ti(Ge({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Su(()=>{nn(()=>{var a;this.$$r=!0;for(let l of Jp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=zf(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 a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=zf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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 Jp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function zf(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ry(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var f_="5";var m_,v_,g_;typeof window!="undefined"&&((g_=(v_=(m_=window.__svelte)!=null?m_:window.__svelte={}).v)!=null?g_:v_.v=new Set).add(f_);var pd=require("@vkontakte/videoplayer-core/es2015"),NJ=require("@vkontakte/videoplayer-core/es2015"),vl=require("@vkontakte/videoplayer-shared/es2015"),I$=require("@vkontakte/videoplayer-statistics/es2015");var za=require("@vkontakte/videoplayer-shared/es2015");var sy={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:za.InterfaceLanguage.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:za.VideoQuality.Q_480P,highQualityLimit:za.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:{minimalView:!1,initialSize:{width:400,height:225}},download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,apptracer:{enabled:!1,sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1,disableThumbUnstartedOnAutoplay:!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,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},disablePiPResizeHandling:!1,interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,controlsDesktopPaddingHorizontalMinimalView:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180,titleShowBehaviour:"fullscreen",disabledSlotIds:[],disabledAdditionalButtonIds:[]},h_=t=>(0,za.fillWithDefault)(t,sy),__=t=>Ll("ui-config",t),Rt=()=>kl("ui-config");var jd="vk_player_debug_panel_opened";var b_="videoplayer",$_="videoplayer";var ys={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},y_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),x_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),w_=new Set(["ShiftRight","ShiftLeft"]);var S_=["TIMELINE"],Xd=[...S_,"GRAPH_BUTTON"],Wf=[...S_,"PLAY_BUTTON"],Zd=[...Xd,"PLAY_BUTTON"];var es=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(es||{}),Jd={xs:0,s:1,m:2,l:3,xl:4};var ec=require("@vkontakte/videoplayer-shared/es2015"),C_=require("@vkontakte/videoplayer-core/es2015"),T_=require("@vkontakte/videoplayer-statistics/es2015");var Bu="prod",Ka="1.1.85";var qa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var I_=Symbol("storeContext"),E_=Symbol("microStoresContext"),P_=(t,e)=>{Ll(I_,t),Ll(E_,e),Bu==="dev"&&(window.app={store:t,microStores:e})},ye=()=>{let t=kl(I_);return(0,ec.assertNonNullable)(t,"Store context is empty!"),t},To=()=>{let t=kl(E_);return(0,ec.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>Fu(t,t.getValue(),e),Fu=(t,e,i)=>Mr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),A_=(t,e,i,o,r=["meta config not provided"])=>{var L,z,j,te,ee,oe,ae,le,ce;let a=t.info,{width:l,height:d}=he(i.ui.playerSize),s=(z=(L=a.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?z:0,u=(te=(j=a.rttEstimation$.getValue())==null?void 0:j.toFixed(0))!=null?te:0,m=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ka} (core: ${C_.VERSION}, stat: ${T_.VERSION}, shared: ${ec.VERSION})`,v=he(i.state.errorLog$),$=v.length?`
43
+ `)})}}var Na=!1,Bl=null,Ba=!1,Ls=!1;function ff(t){Ls=t}var Hd=[],Fd=[],Dt=null,gr=!1;function Yi(t){Dt=t}var St=null;function bo(t){St=t}var tn=null;function _u(t){Dt!==null&&Dt.f&2097152&&(tn===null?tn=[Dt,[t]]:tn[1].push(t))}var Mn=null,hr=0,vr=null;function dh(t){vr=t}var Eh=1,Iu=0,Ms=!1,Eu=null;function Pd(){return++Eh}function Va(t){var p,v;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,a,l=(e&512)!==0,d=o&&St!==null&&!Ms,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Va(a)&&pf(a),a.wv>t.wv)return!0}(!o||St!==null&&!Ms)&&An(t,1024)}return!1}function Ph(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];tn!=null&&tn[1].includes(t)&&tn[0]===Dt||((a.f&2)!==0?Ph(a,e,!1):e===a&&(i?An(a,2048):(a.f&1024)!==0&&An(a,4096),kd(a)))}}function hu(t){var $,y;var e=Mn,i=hr,o=vr,r=Dt,a=Ms,l=tn,d=Ft,s=gr,u=t.f;Mn=null,hr=0,vr=null,Ms=(u&256)!==0&&(gr||!Ba||Dt===null),Dt=(u&96)===0?t:null,tn=null,Td(t.ctx),gr=!1,Iu++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(Mn!==null){var v;if(Od(t,hr),p!==null&&hr>0)for(p.length=hr+Mn.length,v=0;v<Mn.length;v++)p[hr+v]=Mn[v];else t.deps=p=Mn;if(!Ms||(u&2)!==0&&t.reactions!==null)for(v=hr;v<p.length;v++)((y=($=p[v]).reactions)!=null?y:$.reactions=[]).push(t)}else p!==null&&hr<p.length&&(Od(t,hr),p.length=hr);if(_s()&&vr!==null&&!gr&&p!==null&&(t.f&6146)===0)for(v=0;v<vr.length;v++)Ph(vr[v],t);return r!==null&&r!==t&&(Iu++,vr!==null&&(o===null?o=vr:o.push(...vr))),m}catch(g){Ch(g)}finally{Mn=e,hr=i,vr=o,Dt=r,Ms=a,tn=l,Td(d),gr=s,t.f^=2097152}}function a1(t,e){let i=e.reactions;if(i!==null){var o=Ug.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Mn===null||!Mn.includes(e))&&(An(e,4096),(e.f&768)===0&&(e.f^=512),gu(e),Od(e,0))}function Od(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)a1(t,i[o])}function Dl(t){var e=t.f;if((e&16384)===0){An(t,1024);var i=St,o=Ba;if(St=t,Ba=!0,Ve){var r=fr;Id(t.component_function)}try{(e&16)!==0?$h(t):hf(t),gf(t);var a=hu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=Eh,Ve&&hs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Pd(),l.set_during_effect=!1);Ve&&Fd.push(t)}finally{Ba=o,St=i,Ve&&Id(r)}}}function Th(){console.error("Last ten effects were: ",Fd.slice(-10).map(t=>t.fn)),Fd=[]}function l1(){try{Xg()}catch(t){if(Ve&&_o(t,"stack",{value:""}),Bl!==null)if(Ve)try{Bd(t,Bl)}catch(e){throw Th(),e}else Bd(t,Bl);else throw Ve&&Th(),t}}function wf(){var t=Ba;try{var e=0;for(Ba=!0;Hd.length>0;){e++>1e3&&l1();var i=Hd,o=i.length;Hd=[];for(var r=0;r<o;r++){var a=c1(i[r]);d1(a)}Vl.clear()}}finally{Na=!1,Ba=t,Bl=null,Ve&&(Fd=[])}}function d1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Va(o)&&(Dl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?bf(o):o.fn=null))}}function kd(t){Na||(Na=!0,queueMicrotask(wf));for(var e=Bl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Hd.push(e)}function c1(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Va(i)&&Dl(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Hl(t){var e;for(t&&(Na=!0,wf(),Na=!0,e=t());;){if(wh(),Hd.length===0)return Na=!1,Bl=null,Ve&&(Fd=[]),e;Na=!0,wf()}}function yo(){return xt(this,null,function*(){yield Promise.resolve(),Hl()})}function n(t){var e=t.f,i=(e&2)!==0;if(Eu!==null&&Eu.add(t),Dt!==null&&!gr){if(!(tn!=null&&tn[1].includes(t))||tn[0]!==Dt){var o=Dt.deps;t.rv<Iu&&(t.rv=Iu,Mn===null&&o!==null&&o[hr]===t?hr++:Mn===null?Mn=[t]:(!Ms||!Mn.includes(t))&&Mn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Va(r)&&pf(r)),Ve&&hs&&!gr&&Cd!==null&&Dt!==null&&Cd.reaction===Dt)if(t.trace)t.trace();else{var l=ks("TracedAt");if(l){var d=Cd.entries.get(t);d===void 0&&(d={traces:[]},Cd.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return Ls&&Vl.has(t)?Vl.get(t):t.v}function kt(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var u1=-7169;function An(t,e){t.f=t.f&u1|e}function Au(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Jo in t)Pu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Jo in i&&Pu(i)}}}function Pu(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{Pu(t[o],e)}catch(r){}let i=Aa(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=uu(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function Sf(t,e){if(e){let i=document.body;t.autofocus=!0,Ln(()=>{document.activeElement===i&&t.focus()})}}function Ud(t){var e=Dt,i=St;Yi(null),bo(null);try{return t()}finally{Yi(e),bo(i)}}var Cf=new Set,ku=new Set;function Ha(t){if(!st)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Tf(t,e,i,o={}){function r(a){if(o.capture||Fl.call(e,a),!a.cancelBubble)return Ud(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ln(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function bt(t,e,i,o,r){var a={capture:o,passive:r},l=Tf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Do(()=>{e.removeEventListener(t,l,a)})}function tt(t){for(var e=0;e<t.length;e++)Cf.add(t[e]);for(var i of ku)i(t)}function Fl(t){var T;var e=this,i=e.ownerDocument,o=t.type,r=((T=t.composedPath)==null?void 0:T.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){_o(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Dt,p=St;Yi(null),bo(null);try{for(var v,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var g=a["__"+o];if(g!=null&&(!a.disabled||t.target===a))if(ur(g)){var[x,...I]=g;x.apply(a,[t,...I])}else g.call(a,t)}catch(D){v?$.push(D):v=D}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let D of $)queueMicrotask(()=>{throw D});throw v}}finally{t.__root=e,delete t.currentTarget,Yi(m),bo(p)}}}var f1;function Ah(){f1=void 0}function Ul(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function No(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function k(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(st)return No(Ct,null),Ct;r===void 0&&(r=Ul(a?t:"<!>"+t),i||(r=Ai(r)));var l=o||Ld?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ai(l),s=l.lastChild;No(d,s)}else No(l,l);return l}}function g1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(st)return No(Ct,null),Ct;if(!l){var d=Ul(a),s=Ai(d);if(r)for(l=document.createDocumentFragment();Ai(s);)l.appendChild(Ai(s));else l=Ai(s)}var u=l.cloneNode(!0);if(r){var m=Ai(u),p=u.lastChild;No(m,p)}else No(u,u);return u}}function Ae(t,e){return g1(t,e,"svg")}function $s(t=""){if(!st){var e=kn(t+"");return No(e,e),e}var i=Ct;return i.nodeType!==Il&&(i.before(i=kn()),Ei(i)),No(i,i),i}function Re(){if(st)return No(Ct,null),Ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=kn();return t.append(e,i),No(e,i),t}function b(t,e){if(st){St.nodes_end=Ct,Xi();return}t!==null&&t.before(e)}var h1=/\r/g;function Lh(t){t=t.replace(h1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Mh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var _1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Vh(t){return _1.includes(t)}var b1=["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 $1={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 Rh(t){var e;return t=t.toLowerCase(),(e=$1[t])!=null?e:t}var R3=[...b1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var y1=["touchstart","touchmove"];function Dh(t){return y1.includes(t)}var x1=["$state","$state.raw","$derived","$derived.by"],D3=[...x1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var w1=["textarea","script","style","title"];function Oh(t){return w1.includes(t)}function Lu(t){return t==null?void 0:t.replace(/\//g,"/​")}var zd=!0;function Mu(t){zd=t}function ge(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 Nh(t,e)}function Ef(t,e){var l;yu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=st,r=Ct;try{for(var a=Ai(i);a&&(a.nodeType!==pr||a.data!==ta);)a=on(a);if(!a)throw vs;$o(!0),Ei(a),Xi();let d=Nh(t,ti(Ge({},e),{anchor:a}));if(Ct===null||Ct.nodeType!==pr||Ct.data!==Pa)throw ra(),vs;return $o(!1),d}catch(d){if(d===vs)return e.recover===!1&&Zg(),yu(),Md(i),$o(!1),Xr(t,e);throw d}finally{$o(o),Ei(r),Ah()}}var zl=new Map;function Nh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){yu();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var $=p[v];if(!d.has($)){d.add($);var y=Dh($);e.addEventListener($,Fl,{passive:y});var g=zl.get($);g===void 0?(document.addEventListener($,Fl,{passive:y}),zl.set($,1)):zl.set($,g+1)}}};s(Sd(Cf)),ku.add(s);var u=void 0,m=bh(()=>{var p=i!=null?i:e.appendChild(kn());return zi(()=>{if(a){H({});var v=Ft;v.c=a}r&&(o.$$events=r),st&&No(p,null),zd=l,u=t(p,o)||{},zd=!0,st&&(St.nodes_end=Ct),a&&F()}),()=>{var y;for(var v of d){e.removeEventListener(v,Fl);var $=zl.get(v);--$===0?(document.removeEventListener(v,Fl),zl.delete(v)):zl.set(v,$)}ku.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return If.set(u,m),u}var If=new WeakMap;function Fa(t,e){let i=If.get(t);return i?(If.delete(t),i(e)):(Ve&&ph(),Promise.resolve())}function ii(t,e,...i){var o=t,r=wt,a;Zi(()=>{r!==(r=e())&&(a&&(ji(a),a=null),Ve&&r==null&&Jg(),a=zi(()=>r(o,...i)))},65536),st&&(o=Ct)}if(Ve){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ih(e)},set:o=>{i=o}})}};I1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var I1;function Vt(t){Ft===null&&Al("onMount"),gs&&Ft.l!==null?T1(Ft).m.push(t):Fe(()=>{let e=kt(t);if(typeof e=="function")return e})}function pn(t){Ft===null&&Al("onDestroy"),Vt(()=>()=>kt(t))}function T1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Bh=new Map;function Hh(t,e){var i=Bh.get(t);i||(i=new Set,Bh.set(t,i)),i.add(e)}function M(t,e,[i,o]=[0,0]){st&&i===0&&Xi();var r=t,a=null,l=null,d=co,s=i>0?65536:0,u=!1;let m=(v,$=!0)=>{u=!0,p($,v)},p=(v,$)=>{if(d===(d=v))return;let y=!1;if(st&&o!==-1){if(i===0){let x=$u(r);x===ta?o=0:x===ia?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let g=o>i;!!d===g&&(r=Ra(),Ei(r),$o(!1),y=!0,o=-1)}d?(a?Rs(a):$&&(a=zi(()=>$(r))),l&&Xn(l,()=>{l=null})):(l?Rs(l):$&&(l=zi(()=>$(r,[i+1,o]))),a&&Xn(a,()=>{a=null})),y&&$o(!0)};Zi(()=>{u=!1,e(m),u||p(null,null)},s),st&&(r=Ct)}function Ds(t,e,i){st&&Xi();var o=t,r=co,a,l=_s()?qg:El;Zi(()=>{l(r,r=e())&&(a&&Xn(a),a=zi(()=>i(o)))}),st&&(o=Ct)}var aa=null;function kf(t){aa=t}function Wd(t,e){return e}function A1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)Cu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Md(s),s.append(i),o.clear(),sa(t,e[0].prev,e[a-1].next)}$f(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),sa(t,m.prev,m.next)),ji(m.e,!d)}})}function Ci(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=st?Ei(Ai(u)):u.appendChild(kn())}st&&Xi();var m=null,p=!1,v=Pn(()=>{var $=i();return ur($)?$:$==null?[]:Sd($)});Zi(()=>{var $=n(v),y=$.length;if(p&&y===0)return;p=y===0;let g=!1;if(st){var x=$u(l)===ia;x!==(y===0)&&(l=Ra(),Ei(l),$o(!1),g=!0)}if(st){for(var I=null,T,D=0;D<y;D++){if(Ct.nodeType===pr&&Ct.data===Pa){l=Ct,g=!0,$o(!1);break}var A=$[D],E=o(A,D);T=zh(Ct,d,I,null,A,E,D,r,e,i),d.items.set(E,T),I=T}y>0&&Ei(Ra())}st||k1($,d,l,r,e,o,i),a!==null&&(y===0?m?Rs(m):m=zi(()=>a(l)):m!==null&&Xn(m,()=>{m=null})),g&&$o(!0),n(v)}),st&&(l=Ct)}function k1(t,e,i,o,r,a,l){var ae,le,ce,X;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,v=p,$,y=null,g,x=[],I=[],T,D,A,E;if(d)for(E=0;E<u;E+=1)T=t[E],D=a(T,E),A=m.get(D),A!==void 0&&((ae=A.a)==null||ae.measure(),(g!=null?g:g=new Set).add(A));for(E=0;E<u;E+=1){if(T=t[E],D=a(T,E),A=m.get(D),A===void 0){var V=v?v.e.nodes_start:i;y=zh(V,e,y,y===null?e.first:y.next,T,D,E,o,r,l),m.set(D,y),x=[],I=[],v=y.next;continue}if(s&&L1(A,T,E,r),(A.e.f&8192)!==0&&(Rs(A.e),d&&((le=A.a)==null||le.unfix(),(g!=null?g:g=new Set).delete(A))),A!==v){if($!==void 0&&$.has(A)){if(x.length<I.length){var q=I[0],L;y=q.prev;var z=x[0],j=x[x.length-1];for(L=0;L<x.length;L+=1)Fh(x[L],q,i);for(L=0;L<I.length;L+=1)$.delete(I[L]);sa(e,z.prev,j.next),sa(e,y,z),sa(e,j,q),v=q,y=j,E-=1,x=[],I=[]}else $.delete(A),Fh(A,v,i),sa(e,A.prev,A.next),sa(e,A,y===null?e.first:y.next),sa(e,y,A),y=A;continue}for(x=[],I=[];v!==null&&v.k!==D;)(v.e.f&8192)===0&&($!=null?$:$=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}x.push(A),y=A,v=A.next}if(v!==null||$!==void 0){for(var te=$===void 0?[]:Sd($);v!==null;)(v.e.f&8192)===0&&te.push(v),v=v.next;var ee=te.length;if(ee>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<ee;E+=1)(ce=te[E].a)==null||ce.measure();for(E=0;E<ee;E+=1)(X=te[E].a)==null||X.fix()}A1(e,te,oe,m)}}d&&Ln(()=>{var _e;if(g!==void 0)for(A of g)(_e=A.a)==null||_e.apply()}),St.first=e.first&&e.first.e,St.last=y&&y.e}function L1(t,e,i,o){(o&1)!==0&&Rl(t.v,e),(o&2)!==0?Rl(t.i,i):t.i=i}function zh(t,e,i,o,r,a,l,d,s,u){var m=aa,p=(s&1)!==0,v=(s&16)===0,$=p?v?bs(r,!1,!1):kr(r):r,y=(s&2)===0?l:kr(l);Ve&&p&&($.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var g={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};aa=g;try{return g.e=zi(()=>d(t,$,y,u),st),g.e.prev=i&&i.e,g.e.next=o&&o.e,i===null?e.first=g:(i.next=g,i.e.next=g.e),o!==null&&(o.prev=g,o.e.prev=g.e),g}finally{aa=m}}function Fh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=on(a);r.before(a),a=l}}function sa(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 M1(t,e,i){var a,l;if(!e||e===Lh(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=fr)!=null&&l[Qn]&&(o=`in ${fr[Qn]}`),uh(Lu(o))}function Kd(t,e,i=!1,o=!1,r=!1){var a=t,l="";N(()=>{var $;var d=St;if(l===(l=($=e())!=null?$:"")){st&&Xi();return}if(d.nodes_start!==null&&(_f(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(st){for(var s=Ct.data,u=Xi(),m=u;u!==null&&(u.nodeType!==pr||u.data!=="");)m=u,u=on(u);if(u===null)throw ra(),vs;Ve&&!r&&M1(u.parentNode,s,l),No(Ct,m),a=Ei(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Ul(p);if((i||o)&&(v=Ai(v)),No(Ai(v),v.lastChild),i||o)for(;Ai(v);)a.before(Ai(v));else a.before(v)}})}function Wi(t,e,i){st&&Xi();var o=t,r,a;Zi(()=>{r!==(r=e())&&(a&&(Xn(a),a=null),r&&(a=zi(()=>i(o,r))))},65536),st&&(o=Ct)}function Ua(t,e,i,o,r,a){var y;let l=st;st&&Xi();var d=Ve&&a&&((y=Ft)==null?void 0:y.function[Qn]),s,u,m=null;st&&Ct.nodeType===fu&&(m=Ct,Xi());var p=st?Ct:t,v,$=aa;Zi(()=>{let g=e()||null;var x=r?r():i||g==="svg"?du:null;if(g!==s){var I=aa;kf($),v&&(g===null?Xn(v,()=>{v=null,u=null}):g===u?Rs(v):(ji(v),Mu(!1))),g&&g!==u&&(v=zi(()=>{if(m=st?m:x?document.createElementNS(x,g):document.createElement(g),Ve&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),No(m,m),o){st&&Oh(g)&&m.append(document.createComment(""));var T=st?Ai(m):m.appendChild(kn());st&&(T===null?$o(!1):Ei(T)),o(m,T)}St.nodes_end=m,p.before(m)})),s=g,s&&(u=s),Mu(!0),kf(I)}},65536),l&&($o(!0),Ei(p))}var Mf;function Wh(t){return Mf=t.target,new Lf(t)}var Os,Lr,Lf=class{constructor(e){ea(this,Os);ea(this,Lr);var a,l;var i=new Map,o=(d,s)=>{var u=bs(s,!1,!1);return i.set(d,u),u};let r=new Proxy(ti(Ge({},e.props||{}),{$$events:{}}),{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===Tl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var m;return O((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});Cl(this,Lr,(e.hydrate?Ef:Xr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Hl(),Cl(this,Os,r.$$events);for(let d of Object.keys(Ui(this,Lr)))d==="$set"||d==="$destroy"||d==="$on"||_o(this,d,{get(){return Ui(this,Lr)[d]},set(s){Ui(this,Lr)[d]=s},enumerable:!0});Ui(this,Lr).$set=d=>{Object.assign(r,d)},Ui(this,Lr).$destroy=()=>{Fa(Ui(this,Lr))}}$set(e){Ui(this,Lr).$set(e)}$on(e,i){Ui(this,Os)[e]=Ui(this,Os)[e]||[];let o=(...r)=>i.call(this,...r);return Ui(this,Os)[e].push(o),()=>{Ui(this,Os)[e]=Ui(this,Os)[e].filter(r=>r!==o)}}$destroy(){Ui(this,Lr).$destroy()}};Os=new WeakMap,Lr=new WeakMap;function Q(t,e){Ln(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Mf)==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),Ve&&Hh(e.hash,d)}})}function Ns(t,e){var i=void 0,o;Zi(()=>{i!==(i=e())&&(o&&(ji(o),o=null),i&&(o=zi(()=>{Oo(()=>i(t))})))})}function Kh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Kh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function qh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Kh(t))&&(o&&(o+=" "),o+=e);return o}function qd(t){return typeof t=="object"?qh(t):t!=null?t:""}var Qh=[...`
44
+ \r\f \v\uFEFF`];function Yh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||Qh.includes(o[l-1]))&&(d===o.length||Qh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Gh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function Vf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function jh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(Vf)),r&&s.push(...Object.keys(r).map(Vf));var u=0,m=-1;let g=t.length;for(var p=0;p<g;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&m===-1)m=p;else if(v===";"||p===g-1){if(m!==-1){var $=Vf(t.substring(u,m).trim());if(!s.includes($)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(i+=Gh(o)),r&&(i+=Gh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,r,a){var l=t.__className;if(st||l!==i||l===void 0){var d=Yh(i,o,a);(!st||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Rf(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function Ke(t,e,i,o){var r=t.__style;if(st||r!==e){var a=jh(e,o);(!st||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Rf(t,i==null?void 0:i[0],o[0]),Rf(t,i==null?void 0:i[1],o[1],"important")):Rf(t,i,o));return o}function Qd(t,e,i){if(t.multiple){if(e==null)return;if(!ur(e))return fh();for(var o of t.options)o.selected=e.includes(Xh(o));return}for(o of t.options){var r=Xh(o);if(af(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Df(t){var e=new MutationObserver(()=>{Qd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Do(()=>{e.disconnect()})}function Xh(t){return"__value"in t?t.__value:t.value}var Wl=Symbol("class"),Kl=Symbol("style"),e_=Symbol("is custom element"),t_=Symbol("is html");function i_(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var r=n_(t);if(st&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||F1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Kg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&r_(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function o_(t,e,i,o,r=!1){var A;var a=n_(t),l=a[e_],d=!a[t_];let s=st&&l;s&&$o(!1);var u=e||{},m=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=qd(i.class):(o||i[Wl])&&(i.class=null),i[Kl]&&((A=i.style)!=null||(i.style=null));var v=r_(t);for(let E in i){let V=i[E];if(m&&E==="value"&&V==null){t.value=t.__value="",u[E]=V;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,$,V,o,e==null?void 0:e[Wl],i[Wl]),u[E]=V,u[Wl]=i[Wl];continue}if(E==="style"){Ke(t,V,e==null?void 0:e[Kl],i[Kl]),u[E]=V,u[Kl]=i[Kl];continue}var y=u[E];if(!(V===y&&!(V===void 0&&t.hasAttribute(E)))){u[E]=V;var g=E[0]+E[1];if(g!=="$$")if(g==="on"){let q={},L="$$"+E,z=E.slice(2);var x=Vh(z);if(Mh(z)&&(z=z.slice(0,-7),q.capture=!0),!x&&y){if(V!=null)continue;t.removeEventListener(z,u[L],q),u[L]=null}if(V!=null)if(x)t[`__${z}`]=V,tt([z]);else{let j=function(te){u[E].call(this,te)};var D=j;u[L]=Tf(z,t,j,q)}else x&&(t[`__${z}`]=void 0)}else if(E==="style")De(t,E,V);else if(E==="autofocus")Sf(t,!!V);else if(!l&&(E==="__value"||E==="value"&&V!=null))t.value=t.__value=V;else if(E==="selected"&&m)i_(t,V);else{var I=E;d||(I=Rh(I));var T=I==="defaultValue"||I==="defaultChecked";if(V==null&&!l&&!T)if(a[E]=null,I==="value"||I==="checked"){let q=t,L=e===void 0;if(I==="value"){let z=q.defaultValue;q.removeAttribute(I),q.defaultValue=z,q.value=q.__value=L?z:null}else{let z=q.defaultChecked;q.removeAttribute(I),q.defaultChecked=z,q.checked=L?z:!1}}else t.removeAttribute(E);else T||v.includes(I)&&(l||typeof V!="string")?t[I]=V:typeof V!="function"&&De(t,I,V,r)}}}return s&&$o(!0),u}function uo(t,e,i=[],o,r=!1,a=Gr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Zi(()=>{var v=e(...l.map(n)),$=o_(t,d,v,o,r);m&&u&&"value"in v&&Qd(t,v.value,!1);for(let g of Object.getOwnPropertySymbols(s))v[g]||ji(s[g]);for(let g of Object.getOwnPropertySymbols(v)){var y=v[g];g.description===Zp&&(!d||y!==d[g])&&(s[g]&&ji(s[g]),s[g]=zi(()=>Ns(t,()=>y))),$[g]=y}d=$}),u){var p=t;Oo(()=>{Qd(p,d.value),Df(p)})}m=!0}function n_(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[e_]:t.nodeName.includes("-"),[t_]:t.namespaceURI===Ng}}var Zh=new Map;function r_(t){var e=Zh.get(t.nodeName);if(e)return e;Zh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=uu(o);for(var a in i)i[a].set&&e.push(a);o=Aa(o)}return e}function F1(t,e,i){var o;Ve&&(e==="srcset"&&U1(t,i)||Of((o=t.getAttribute(e))!=null?o:"",i)||ch(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Of(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Jh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function U1(t,e){var i=Jh(t.srcset),o=Jh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Of(i[l][0],r)||Of(r,i[l][0])))}var z1=cu?()=>performance.now():()=>Date.now(),Zr={tick:t=>(cu?requestAnimationFrame:wt)(t),now:()=>z1(),tasks:new Set};function s_(){let t=Zr.now();Zr.tasks.forEach(e=>{e.c(t)||(Zr.tasks.delete(e),e.f())}),Zr.tasks.size!==0&&Zr.tick(s_)}function a_(t){let e;return Zr.tasks.size===0&&Zr.tick(s_),{promise:new Promise(i=>{Zr.tasks.add(e={c:t,f:i})}),abort(){Zr.tasks.delete(e)}}}function Vu(t,e){Ud(()=>{t.dispatchEvent(new CustomEvent(e))})}function Q1(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 l_(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=Q1(r.trim());e[l]=a.trim()}return e}var G1=t=>t;function Bs(t,e,i,o){var D;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,v,$;function y(){var V;var A=Dt,E=St;Yi(null),bo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:s})}finally{Yi(A),bo(E)}}var g={is_global:d,in(){var A;if(e.inert=m,!r){$==null||$.abort(),(A=$==null?void 0:$.reset)==null||A.call($);return}a||v==null||v.abort(),Vu(e,"introstart"),v=Nf(e,y(),$,1,()=>{Vu(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Vu(e,"outrostart"),$=Nf(e,y(),v,0,()=>{Vu(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),$==null||$.abort()}},x=St;if(((D=x.transitions)!=null?D:x.transitions=[]).push(g),r&&zd){var I=d;if(!I){for(var T=x.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Oo(()=>{kt(()=>g.in())})}}function Nf(t,e,i,o,r){var a=o===1;if(oa(e)){var l,d=!1;return Ln(()=>{if(!d){var x=e({direction:a?"in":"out"});l=Nf(t,x,i,o,r)}}),{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 r(),{abort:wt,deactivate:wt,reset:wt,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=G1}=e;var v=[];if(a&&i===void 0&&(m&&m(0,1),u)){var $=l_(u(0,1));v.push($,$)}var y=()=>1-o,g=t.animate(v,{duration:s,fill:"forwards"});return g.onfinish=()=>{var z;g.cancel();var x=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-x,T=e.duration*Math.abs(I),D=[];if(T>0){var A=!1;if(u)for(var E=Math.ceil(T/16.666666666666668),V=0;V<=E;V+=1){var q=x+I*p(V/E),L=l_(u(q,1-q));D.push(L),A||(A=L.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var j=g.currentTime;return x+I*p(j/T)},m&&a_(()=>{if(g.playState!=="running")return!1;var j=y();return m(j,1-j),!0})}g=t.animate(D,{duration:T,fill:"forwards"}),g.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=wt)},deactivate:()=>{r=wt},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Bf(t,e,i){var o=Zo(t,e);o&&o.set&&(t[e]=i,Do(()=>{t[e]=null}))}var la,ql,Gd,Du,d_,Ou=class Ou{constructor(e){ea(this,Du);ea(this,la,new WeakMap);ea(this,ql);ea(this,Gd);Cl(this,Gd,e)}observe(e,i){var o=Ui(this,la).get(e)||new Set;return o.add(i),Ui(this,la).set(e,o),Dg(this,Du,d_).call(this).observe(e,Ui(this,Gd)),()=>{var r=Ui(this,la).get(e);r.delete(i),r.size===0&&(Ui(this,la).delete(e),Ui(this,ql).unobserve(e))}}};la=new WeakMap,ql=new WeakMap,Gd=new WeakMap,Du=new WeakSet,d_=function(){var e;return(e=Ui(this,ql))!=null?e:Cl(this,ql,new ResizeObserver(i=>{for(var o of i){Ou.entries.set(o.target,o);for(var r of Ui(this,la).get(o.target)||[])r(o)}}))},cr(Ou,"entries",new WeakMap);var Hf=Ou;var Y1=new Hf({box:"border-box"});function Vn(t,e,i){var o=Y1.observe(t,()=>i(t[e]));Oo(()=>(kt(()=>i(t[e])),o))}function c_(t,e){return t===e||(t==null?void 0:t[Jo])===e}function it(t={},e,i,o){return Oo(()=>{var r,a;return nn(()=>{r=a,a=(o==null?void 0:o())||[],kt(()=>{t!==i(...a)&&(e(t,...a),r&&c_(i(...r),t)&&e(null,...r))})}),()=>{Ln(()=>{a&&c_(i(...a),t)&&e(null,...a)})}}),t}function rn(t=!1){let e=Ft,i=e.l.u;if(!i)return;let o=()=>Au(e.s);if(t){let r=0,a={},l=Gr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Dd(()=>{u_(e,o),na(i.b)}),Fe(()=>{let r=kt(()=>i.m.map(Wg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{u_(e,o),na(i.a)})}function u_(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Yd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),wt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ql=[];function Mr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=wt){let i=null,o=new Set;function r(d){if(El(t,d)&&(t=d,i)){let s=!Ql.length;for(let u of o)u[1](),Ql.push(u,t);if(s){for(let u=0;u<Ql.length;u+=2)Ql[u][0](Ql[u+1]);Ql.length=0}}}function a(d){r(d(t))}function l(d,s=wt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||wt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function mi(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Mr(i,(l,d)=>{let s=!1,u=[],m=0,p=wt,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:wt},$=r.map((y,g)=>Yd(y,x=>{u[g]=x,m&=~(1<<g),s&&v()},()=>{m|=1<<g}));return s=!0,v(),function(){na($),p(),s=!1}})}function he(t){let e;return Yd(t,i=>e=i)(),e}var Nu=!1,Ff=Symbol();function w(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:bs(void 0),unsubscribe:wt};if(o.store!==t&&!(Ff in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=wt;else{var r=!0;o.unsubscribe=Yd(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&Ff in i?he(t):n(o.source)}function Be(){let t={};function e(){Do(()=>{for(var i in t)t[i].unsubscribe();_o(t,Ff,{enumerable:!1,value:!0})})}return[t,e]}function Uf(t){var e=Nu;try{return Nu=!1,[t(),Nu]}finally{Nu=e}}var i0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ve&&th(`${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 Rn(t,e,i){return new Proxy(Ve?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},i0)}var o0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(oa(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];oa(r)&&(r=r());let a=Zo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(oa(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Zo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Jo||e===Tl)return!1;for(let i of t.props)if(oa(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(oa(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function Jr(...t){return new Proxy({props:t},o0)}function p_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var q,L;var r=(i&1)!==0,a=!gs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Uf(()=>t[e]):u=t[e];var m=Jo in t||Tl in t,p=l&&((L=(q=Zo(t,e))==null?void 0:q.set)!=null?L:m&&e in t&&(z=>t[e]=z))||void 0,v=o,$=!0,y=!1,g=()=>(y=!0,$&&($=!1,d?v=kt(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&eh(e),u=g(),p&&p(u));var x;if(a)x=()=>{var z=t[e];return z===void 0?g():($=!0,y=!1,z)};else{var I=(r?Gr:Pn)(()=>t[e]);I.f|=131072,x=()=>{var z=n(I);return z!==void 0&&(v=void 0),z===void 0?v:z}}if((i&4)===0&&a)return x;if(p){var T=t.$$legacy;return function(z,j){return arguments.length>0?((!a||!j||T||s)&&p(j?x():z),z):x()}}var D=!1,A=!1,E=bs(u),V=Gr(()=>{var z=x(),j=n(E);return D?(D=!1,A=!0,j):(A=!1,E.v=z)});return l&&n(V),r||(V.equals=Pl),function(z,j){if(Eu!==null&&(D=A,x(),n(E)),arguments.length>0){let te=j?n(V):a&&l?si(z):z;if(!V.equals(te)){if(D=!0,O(E,te),y&&v!==void 0&&(v=te),p_(V))return z;kt(()=>n(V))}return z}return p_(V)?V.v:n(V)}}var n0;typeof HTMLElement=="function"&&(n0=class extends HTMLElement{constructor(e,i,o){super();cr(this,"$$ctor");cr(this,"$$s");cr(this,"$$c");cr(this,"$$cn",!1);cr(this,"$$d",{});cr(this,"$$r",!1);cr(this,"$$p_d",{});cr(this,"$$l",{});cr(this,"$$l_u",new Map);cr(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 r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}connectedCallback(){return xt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=r0(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=zf(l,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=Wh({component:this.$$ctor,target:this.shadowRoot||this,props:ti(Ge({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Su(()=>{nn(()=>{var a;this.$$r=!0;for(let l of Jp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=zf(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 a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=zf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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 Jp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function zf(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function r0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var f_="5";var m_,v_,g_;typeof window!="undefined"&&((g_=(v_=(m_=window.__svelte)!=null?m_:window.__svelte={}).v)!=null?g_:v_.v=new Set).add(f_);var pd=require("@vkontakte/videoplayer-core/es2015"),NJ=require("@vkontakte/videoplayer-core/es2015"),vl=require("@vkontakte/videoplayer-shared/es2015"),I$=require("@vkontakte/videoplayer-statistics/es2015");var za=require("@vkontakte/videoplayer-shared/es2015");var s0={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:za.InterfaceLanguage.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:za.VideoQuality.Q_480P,highQualityLimit:za.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:{minimalView:!1,initialSize:{width:400,height:225}},download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,apptracer:{enabled:!1,sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1,disableThumbUnstartedOnAutoplay:!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,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},disablePiPResizeHandling:!1,interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,controlsDesktopPaddingHorizontalMinimalView:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180,titleShowBehaviour:"fullscreen",disabledSlotIds:[],disabledAdditionalButtonIds:[]},h_=t=>(0,za.fillWithDefault)(t,s0),__=t=>Ll("ui-config",t),Rt=()=>kl("ui-config");var jd="vk_player_debug_panel_opened";var b_="videoplayer",$_="videoplayer";var ys={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},y_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),x_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),w_=new Set(["ShiftRight","ShiftLeft"]);var S_=["TIMELINE"],Xd=[...S_,"GRAPH_BUTTON"],Wf=[...S_,"PLAY_BUTTON"],Zd=[...Xd,"PLAY_BUTTON"];var es=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(es||{}),Jd={xs:0,s:1,m:2,l:3,xl:4};var ec=require("@vkontakte/videoplayer-shared/es2015"),C_=require("@vkontakte/videoplayer-core/es2015"),T_=require("@vkontakte/videoplayer-statistics/es2015");var Bu="prod",Ka="1.1.86";var qa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var I_=Symbol("storeContext"),E_=Symbol("microStoresContext"),P_=(t,e)=>{Ll(I_,t),Ll(E_,e),Bu==="dev"&&(window.app={store:t,microStores:e})},ye=()=>{let t=kl(I_);return(0,ec.assertNonNullable)(t,"Store context is empty!"),t},To=()=>{let t=kl(E_);return(0,ec.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>Fu(t,t.getValue(),e),Fu=(t,e,i)=>Mr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),A_=(t,e,i,o,r=["meta config not provided"])=>{var L,z,j,te,ee,oe,ae,le,ce;let a=t.info,{width:l,height:d}=he(i.ui.playerSize),s=(z=(L=a.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?z:0,u=(te=(j=a.rttEstimation$.getValue())==null?void 0:j.toFixed(0))!=null?te:0,m=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ka} (core: ${C_.VERSION}, stat: ${T_.VERSION}, shared: ${ec.VERSION})`,v=he(i.state.errorLog$),$=v.length?`
45
45
  `+v.map((X,_e)=>{var ue;let Ee=`${_e}) Type: ${X.id}
46
46
  `,de=`Message: ${X.message} (${X.thrown})
47
47
  `,ze=`Trace: ${(ue=X.thrown)==null?void 0:ue.stack}
48
48
  `;return Ee+de+ze}).join(`
49
49
  `):void 0,y=i.state.isAudioDisabled?"disabled":he(i.state.isAudioAvailable$)?void 0:"unavailable",g=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),I=[];g&&I.push(`Video: ${(ee=g==null?void 0:g.codec)!=null?ee:""}`+(g!=null&&g.hdr?" (HDR)":"")),x&&I.push(`Audio: ${(oe=x==null?void 0:x.codec)!=null?oe:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=a.currentQuality$.getValue(),D="";if(T){let X=a.availableQualitiesFps$.getValue()[T];D=X?`${X}fps`:""}let A=a.httpConnectionType$.getValue(),E=(le=(ae=a.currentBuffer$.getValue())==null?void 0:ae.end)!=null?le:0,V=Math.max(E-he(i.state.positionExact$),0),q={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:he(i.vsid),"Content host":a.hostname$.getValue(),"Connection type":A?A+(a.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${s}Kbps @ ${u}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:I.join(", "),Quality:`${m} ${T!=null?T:""} ${D}`,"Available qualities":a.availableQualities$.getValue().join(", "),Audio:y,Position:`${he(i.state.positionExact$)}s`,Buffer:`${V}s`,State:`${he(i.playerPhase)} ${(ce=a.playbackState$.getValue())!=null?ce:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:$};return Object.entries(q).filter(([X,_e])=>_e!==void 0).map(([X,_e])=>`${X}: ${_e}`).join(`
50
- `)},k_=(t,e,i)=>{var L,z,j,te;let o=t.info,{width:r,height:a}=he(i.ui.playerSize),l={version:Ka,viewport:`${r}x${a}`,volume:Math.round(he(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 u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let m=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),$=o.liveBufferTime$.getValue();m&&p&&(v&&$?(l.buffer=m.end-$,l.nativeBuffer=p.end-$):(l.buffer=Math.max(m.end-he(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-he(i.state.positionExact$),0))),l.position=he(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let g=o.videoBitrate$.getValue();g&&(l.bitrate=g);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let D=he(i.vsid);typeof D=="string"&&(l.vsid=D);let A=(L=t.info.currentVideoStream$.getValue())==null?void 0:L.codec;A&&(l.videoCodec=A);let E=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;E&&(l.audioCodec=E),((j=t.info.currentVideoStream$.getValue())==null?void 0:j.hdr)&&(l.hdr=!0);let q=(te=t.info.currentAudioStream$.getValue())==null?void 0:te.language;return q&&(l.audioLanguage=q),l},L_=(t,e)=>qa(t,e,"mp4"),M_=t=>!t.type,V_=t=>!!t.type,R_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Hu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return xt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var vi=require("@vkontakte/videoplayer-shared/es2015"),t9=require("@vkontakte/videoplayer-core/es2015");var ay="vk_player_",D_="vk_player_prefer_traffic_saving_enabled",O_="vk_player_preferred_volume",N_="vk_player_prefer_volume_mute",Gf="vk_player_preferred_quality",Kf="vk_player_preferred_default_quality_settings",qf="vk_player_preferred_quality_settings_by_video",B_="vk_player_preferred_stream_language",H_="vk_player_preferred_rate",F_="vk_player_preferred_autoplay_next",Qf="vk_player_preferred_subtitles_language",U_="vk_player_user_video_prefs",z_=`${ay}preview_track_close_tooltip`,W_=t=>t>1?1:t<0?0:t,Yf=t=>vi.safeStorage.set(O_,W_(t).toString(10)),Uu=()=>{let t=vi.safeStorage.get(O_);return(0,vi.isNullable)(t)?void 0:W_(parseFloat(t))},jf=(t,e)=>vi.safeStorage.set(Gf,JSON.stringify({videoId:t,value:e})),zu=()=>vi.safeStorage.remove(Gf),Xf=t=>{let e=vi.safeStorage.get(Gf);if((0,vi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){zu();return}return o},K_=(t,e)=>{e?vi.safeStorage.set(t,"true"):vi.safeStorage.remove(t)},Zf=t=>vi.safeStorage.get(t)==="true",Jf=t=>K_(N_,t),q_=()=>Zf(N_),tc=t=>K_(D_,t),em=()=>Zf(D_),Q_=()=>vi.safeStorage.get(B_),tm=t=>vi.safeStorage.set(B_,t),im=()=>vi.safeStorage.get(Qf),om=t=>{t?vi.safeStorage.set(Qf,t):vi.safeStorage.remove(Qf)},G_=t=>vi.safeStorage.set(H_,JSON.stringify({rate:t})),Y_=()=>{let t=vi.safeStorage.get(H_);if((0,vi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},j_=t=>{vi.safeStorage.set(F_,String(t))},X_=()=>Zf(F_),ly=()=>{let t=m=>{vi.safeStorage.set(Kf,JSON.stringify(m))},e=()=>{try{let m=vi.safeStorage.get(Kf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=vi.safeStorage.get(qf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{vi.safeStorage.set(qf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)return ti(Ge({},p),{appliesTo:"to-video"});p&&a();let v=e();return v?ti(Ge({},v),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{vi.safeStorage.remove(qf)},l=()=>{vi.safeStorage.remove(Kf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":tc(!0);break;case"exact_quality":jf(m,p.quality)}a(),l()}},u=m=>{let p=Xf(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}em()&&t({type:"traffic_saving",videoId:m}),tc(!1),zu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:im,savePreferredSubtitlesLanguage:om}},{getPreferredQualitySettings:Z_,migrateSettingsToLegacyWay:J_,savePreferredQualitySettings:Wu,savePreferredDefaultQualitySettings:i9,removePreferredQualitySettingsByVideo:o9,getPreferredDefaultQualitySettings:Ku}=ly(),dy=3,cy=3,eb=()=>{let t=vi.safeStorage.get(U_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},qu=(t,e)=>{var r,a;let i=eb();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},nm=(t,e,i)=>{var l,d,s;let o=(l=eb())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=uy(o);vi.safeStorage.set(U_,JSON.stringify(a))};function uy(t){let e=Object.entries(t).reduce((o,[r,a])=>{let l=0;return Object.values(a).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(cy),e.reduce((o,[r])=>(o[r]=py(t[r]),o),{})}function py(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(dy),Object.fromEntries(e)}function tb(){vi.safeStorage.set(z_,JSON.stringify(!0))}function ib(){let t=vi.safeStorage.get(z_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var ug=require("@vkontakte/videoplayer-core/es2015");sh();var da="var(--btn-color, #fff)";var fy=Ae('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),my=Ae('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ze(t,e){var m;H(e,!0);let i=h(e,"width",19,()=>"24"),o=h(e,"height",19,()=>"24"),r=h(e,"fill",3,da),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=my(),d=C(l);{var s=p=>{var v=fy(),$=se(v),y=C($);ii(y,()=>e.children),S($),Jt(),b(p,v)},u=p=>{var v=Re(),$=se(v);ii($,()=>e.children),b(p,v)};M(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),N(()=>{De(l,"aria-label",e.ariaLabel),De(l,"aria-hidden",!e.ariaLabel),De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",a),De(l,"fill",r()),Ke(l,e.style),De(l,"data-testid",e.testId)}),b(t,l),F()}var Gl=require("@vkontakte/videoplayer-shared/es2015");var vy={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",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:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
50
+ `)},k_=(t,e,i)=>{var L,z,j,te;let o=t.info,{width:r,height:a}=he(i.ui.playerSize),l={version:Ka,viewport:`${r}x${a}`,volume:Math.round(he(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 u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let m=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),$=o.liveBufferTime$.getValue();m&&p&&(v&&$?(l.buffer=m.end-$,l.nativeBuffer=p.end-$):(l.buffer=Math.max(m.end-he(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-he(i.state.positionExact$),0))),l.position=he(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let g=o.videoBitrate$.getValue();g&&(l.bitrate=g);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let D=he(i.vsid);typeof D=="string"&&(l.vsid=D);let A=(L=t.info.currentVideoStream$.getValue())==null?void 0:L.codec;A&&(l.videoCodec=A);let E=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;E&&(l.audioCodec=E),((j=t.info.currentVideoStream$.getValue())==null?void 0:j.hdr)&&(l.hdr=!0);let q=(te=t.info.currentAudioStream$.getValue())==null?void 0:te.language;return q&&(l.audioLanguage=q),l},L_=(t,e)=>qa(t,e,"mp4"),M_=t=>!t.type,V_=t=>!!t.type,R_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Hu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return xt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var vi=require("@vkontakte/videoplayer-shared/es2015"),t9=require("@vkontakte/videoplayer-core/es2015");var a0="vk_player_",D_="vk_player_prefer_traffic_saving_enabled",O_="vk_player_preferred_volume",N_="vk_player_prefer_volume_mute",Gf="vk_player_preferred_quality",Kf="vk_player_preferred_default_quality_settings",qf="vk_player_preferred_quality_settings_by_video",B_="vk_player_preferred_stream_language",H_="vk_player_preferred_rate",F_="vk_player_preferred_autoplay_next",Qf="vk_player_preferred_subtitles_language",U_="vk_player_user_video_prefs",z_=`${a0}preview_track_close_tooltip`,W_=t=>t>1?1:t<0?0:t,Yf=t=>vi.safeStorage.set(O_,W_(t).toString(10)),Uu=()=>{let t=vi.safeStorage.get(O_);return(0,vi.isNullable)(t)?void 0:W_(parseFloat(t))},jf=(t,e)=>vi.safeStorage.set(Gf,JSON.stringify({videoId:t,value:e})),zu=()=>vi.safeStorage.remove(Gf),Xf=t=>{let e=vi.safeStorage.get(Gf);if((0,vi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){zu();return}return o},K_=(t,e)=>{e?vi.safeStorage.set(t,"true"):vi.safeStorage.remove(t)},Zf=t=>vi.safeStorage.get(t)==="true",Jf=t=>K_(N_,t),q_=()=>Zf(N_),tc=t=>K_(D_,t),em=()=>Zf(D_),Q_=()=>vi.safeStorage.get(B_),tm=t=>vi.safeStorage.set(B_,t),im=()=>vi.safeStorage.get(Qf),om=t=>{t?vi.safeStorage.set(Qf,t):vi.safeStorage.remove(Qf)},G_=t=>vi.safeStorage.set(H_,JSON.stringify({rate:t})),Y_=()=>{let t=vi.safeStorage.get(H_);if((0,vi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},j_=t=>{vi.safeStorage.set(F_,String(t))},X_=()=>Zf(F_),l0=()=>{let t=m=>{vi.safeStorage.set(Kf,JSON.stringify(m))},e=()=>{try{let m=vi.safeStorage.get(Kf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=vi.safeStorage.get(qf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{vi.safeStorage.set(qf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)return ti(Ge({},p),{appliesTo:"to-video"});p&&a();let v=e();return v?ti(Ge({},v),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{vi.safeStorage.remove(qf)},l=()=>{vi.safeStorage.remove(Kf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":tc(!0);break;case"exact_quality":jf(m,p.quality)}a(),l()}},u=m=>{let p=Xf(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}em()&&t({type:"traffic_saving",videoId:m}),tc(!1),zu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:im,savePreferredSubtitlesLanguage:om}},{getPreferredQualitySettings:Z_,migrateSettingsToLegacyWay:J_,savePreferredQualitySettings:Wu,savePreferredDefaultQualitySettings:i9,removePreferredQualitySettingsByVideo:o9,getPreferredDefaultQualitySettings:Ku}=l0(),d0=3,c0=3,eb=()=>{let t=vi.safeStorage.get(U_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},qu=(t,e)=>{var r,a;let i=eb();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},nm=(t,e,i)=>{var l,d,s;let o=(l=eb())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=u0(o);vi.safeStorage.set(U_,JSON.stringify(a))};function u0(t){let e=Object.entries(t).reduce((o,[r,a])=>{let l=0;return Object.values(a).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(c0),e.reduce((o,[r])=>(o[r]=p0(t[r]),o),{})}function p0(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(d0),Object.fromEntries(e)}function tb(){vi.safeStorage.set(z_,JSON.stringify(!0))}function ib(){let t=vi.safeStorage.get(z_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var ug=require("@vkontakte/videoplayer-core/es2015");sh();var da="var(--btn-color, #fff)";var f0=Ae('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),m0=Ae('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ze(t,e){var m;H(e,!0);let i=h(e,"width",19,()=>"24"),o=h(e,"height",19,()=>"24"),r=h(e,"fill",3,da),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=m0(),d=C(l);{var s=p=>{var v=f0(),$=se(v),y=C($);ii(y,()=>e.children),S($),Jt(),b(p,v)},u=p=>{var v=Re(),$=se(v);ii($,()=>e.children),b(p,v)};M(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),N(()=>{De(l,"aria-label",e.ariaLabel),De(l,"aria-hidden",!e.ariaLabel),De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",a),De(l,"fill",r()),Ke(l,e.style),De(l,"data-testid",e.testId)}),b(t,l),F()}var Gl=require("@vkontakte/videoplayer-shared/es2015");var v0={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",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:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
51
51
  качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
52
- попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},ob=vy;var gy={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 at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
52
+ попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},ob=v0;var g0={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 at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
53
  so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},nb=gy;var Hs=new Map;Hs.set(Gl.InterfaceLanguage.EN,nb);Hs.set(Gl.InterfaceLanguage.RU,ob);var rb=new Map,rm=({language:t,pack:e,fallback:i})=>{if(Hs.has(t)){let o=Hs.get(t);Hs.set(t,Ge(Ge({},o),e))}else Hs.set(t,e);rb.set(t,i)},sm=t=>Hs.has(t),am=(t,e,i,o)=>{var l;let r=Hs.get(t),a=r==null?void 0:r[e];if((0,Gl.isNullable)(a)){let d=(l=rb.get(t))!=null?l:o,s=d?Hs.get(d):void 0;a=s==null?void 0:s[e]}return(0,Gl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},G=(t,e)=>{let{interfaceLanguage$:i}=ye(),o=he(i),r=Rt();return am(o,t,e,r.defaultLanguage)};var hy=Ae('<path d="M26.86 15.18a3.7 3.7 0 0 0 2.53-3.6C29.4 8.91 27.2 7 24.07 7c-1.96 0-3.57.78-4.67 2.29l-.1.15a1.33 1.33 0 0 0 .26 1.85c.54.4 1.3.35 1.74-.16l.2-.25a3 3 0 0 1 2.5-1.3c1.53 0 2.6.91 2.6 2.25 0 1.36-1.09 2.27-2.65 2.27h-.58a1.23 1.23 0 0 0 0 2.47h.58c1.75 0 2.91.98 2.91 2.39 0 1.45-1.19 2.46-2.88 2.46a3.2 3.2 0 0 1-2.89-1.6l-.2-.29a1.4 1.4 0 0 0-2.05-.25 1.3 1.3 0 0 0-.3 1.68l.21.33A6 6 0 0 0 24 24c3.28 0 5.63-2.04 5.63-4.92a4 4 0 0 0-2.77-3.9M37.73 12.68c-.46 0-1 .04-1.5.16L38.8 9.1a1.34 1.34 0 1 0-2.2-1.52l-3.76 5.47C31.43 15.18 31 16.87 31 18.33 31 21.8 33.56 24 37.19 24c3.6 0 6.16-2.4 6.16-5.77a5.4 5.4 0 0 0-5.63-5.56m-.53 8.74c-1.98 0-3.33-1.27-3.33-3.14 0-1.85 1.35-3.14 3.33-3.14 1.95 0 3.3 1.29 3.3 3.14 0 1.87-1.35 3.14-3.3 3.14m20.8-5.9c0 5.03-2.7 8.43-6.63 8.43s-6.62-3.4-6.62-8.44 2.7-8.44 6.62-8.44S58 10.47 58 15.51m-10.35 0c0 3.56 1.49 5.85 3.72 5.85s3.72-2.3 3.72-5.86-1.48-5.86-3.72-5.86c-2.23 0-3.72 2.3-3.72 5.86M67 9.49A3.5 3.5 0 0 1 63.51 13 3.5 3.5 0 0 1 60 9.49 3.5 3.5 0 0 1 63.51 6 3.5 3.5 0 0 1 67 9.49m-5 0c0 .83.68 1.51 1.51 1.51.81 0 1.5-.68 1.5-1.51 0-.81-.69-1.5-1.5-1.5-.83 0-1.51.69-1.51 1.5ZM67 23.5c0-1.32-1.2-3.1-4.2-4.67a1.5 1.5 0 1 1 1.4-2.66c3.25 1.72 5.8 4.26 5.8 7.33 0 3.13-2.56 5.55-6.09 7.27-3.63 1.77-8.82 3.06-15.26 3.72a1.5 1.5 0 0 1-.3-2.98c6.25-.64 11.05-1.88 14.25-3.44 3.3-1.6 4.4-3.27 4.4-4.57M38.88 35H38c-9.64 0-17.45-1.13-22.9-3.02-2.72-.94-4.94-2.1-6.5-3.47C7.01 27.14 6 25.44 6 23.5a6.2 6.2 0 0 1 1.9-4.25 16 16 0 0 1 4.43-3.1 1.5 1.5 0 1 1 1.34 2.7q-2.39 1.19-3.59 2.46C9.3 22.14 9 22.87 9 23.5c0 .8.4 1.74 1.57 2.76s3 2.01 5.51 2.89C21.11 30.89 28.55 32 38 32h.88l-1.44-1.44a1.5 1.5 0 0 1 2.12-2.12l4 4h.01a1.5 1.5 0 0 1 .32 1.63 2 2 0 0 1-.33.5l-4 4a1.5 1.5 0 0 1-2.12-2.13z"></path>');function ic(t,e){H(e,!1);let i=G("video360");rn(),Ze(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=hy();b(o,a)},$$slots:{default:!0}}),F()}var C9=require("@vkontakte/videoplayer-core/es2015");var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var Qu=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.resolve()):Promise.reject()},Gu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),sb=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,ab=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},oc=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ca=()=>!!oc(),Yu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ju=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},lb=t=>{let e=window.screen;return(r=>xt(null,null,function*(){return e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject()}))(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var lm=require("@vkontakte/videoplayer-core/es2015"),db=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")},{description:G("hotkey_map_item_next_video_description"),value:G("hotkey_map_item_next_video_value")},{description:G("hotkey_map_item_prev_video_description"),value:G("hotkey_map_item_prev_video_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:lm.clientChecker.device.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:lm.clientChecker.device.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var Yl=require("@vkontakte/videoplayer-shared/es2015");function dm(t,e){H(e,!1);let i=ye();Vt(()=>{i.getAdmanWrapper().startPostroll()}),rn(),F()}var cb=require("@vkontakte/videoplayer-shared/es2015");var _y=Ae('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),by=Ae('<path 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.272L5.773 8z"></path>');function Vr(t,e){H(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=f(()=>["up","down"].includes(i())),a=f(()=>["right","down"].includes(i())),l=f(()=>`chevron-icon--${i()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?da:"currentColor"),u=f(()=>n(r)?"7":"16");Ze(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,p)=>{var v=Re(),$=se(v);{var y=x=>{var I=_y();b(x,I)},g=x=>{var I=by();b(x,I)};M($,x=>{n(r)?x(y):x(g,!1)})}b(m,v)},$$slots:{default:!0}}),F()}var $y=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},yy=k('<div class="skip s-1h"> <!></div>'),xy=k("<div><!></div>"),wy={hash:"s-1h",code:".container.s-1h{background:rgba(0,0,0,.56);border-radius:6px;color:#fff;font-size:13px;padding:6px 10px;position:absolute;right:16px;top:14px;transition:color .2s}.container-mobile.s-1h{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1h{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1h{color:var(--white);cursor:pointer}.skippable.s-1h:hover{color:hsla(0,0%,100%,.75)}"};function cm(t,e){H(e,!0),Q(t,wy);let[i,o]=Be(),r=()=>w(u,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,cb.noop),u=ye().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=xy();let v;p.__click=[$y,m,d];var $=C(p);{var y=x=>{var I=yy(),T=C(I),D=P(T);Vr(D,{direction:"right"}),S(I),N(A=>ge(T,`${A!=null?A:""} `),[()=>G("skip_ads_now")]),b(x,I)},g=x=>{var I=$s();N(T=>ge(I,T),[()=>G("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(x,I)};M($,x=>{n(m)?x(y):x(g,!1)})}S(p),N(x=>v=ie(p,1,"container s-1h",null,v,x),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,p),F(),o()}tt(["click"]);var Sy=k('<button class="go-to-site s-1g"> </button>'),Cy={hash:"s-1g",code:"button.go-to-site.s-1g{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function um(t,e){H(e,!1),Q(t,Cy),rn();var i=Sy(),o=C(i,!0);S(i),N(r=>ge(o,r),[()=>G("visit_advertiser")],Pn),b(t,i),F()}var Ty=k('<div class="top-gradient-mobile s-m"></div>'),Iy=k('<div class="container s-m"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Ey={hash:"s-m",code:".container.s-m{height:100%;width:100%}.top-gradient-mobile.s-m{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function nc(t,e){H(e,!0),Q(t,Ey);let[i,o]=Be(),r=()=>w(z,"$canSkipAd",i),a=()=>w(L,"$adPlaybackState",i),l=()=>w(D,"$isMobile",i),d=()=>w(j,"$adPosition",i),s=()=>w(te,"$secondsToWatchBeforeSkipAd",i),u=()=>w(T,"$isVideoEnded",i),m=h(e,"adsSlotId",3,void 0),p=h(e,"adsParams",3,void 0),v=h(e,"adsAutoplayParam",3,void 0),$=h(e,"duration",3,0),y=h(e,"adsExternalApi",3,void 0),g=h(e,"adsJson",3,void 0),x=ye(),I=Rt(),T=x.state.isEnded$,D=x.ui.isMobile,A=I.ads.isMobileGoToSiteButton,E=K(void 0),V=K(void 0),q=!1,L=x.ads.playbackState,z=x.ads.canSkip,j=x.ads.position,te=x.ads.secondsToWatchBeforeSkip,ee=f(()=>r()&&a()!=="inactive"),oe=f(()=>l()&&a()!=="inactive"&&A);Vt(()=>{let Z=x.getAdmanWrapper();if(Yl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Yl.now)(),m()]}),!m()){Z.onAdmanLoadingError();return}let B=()=>{var ke;let{width:nt,height:Me}=he(x.ui.playerSize),be=he(x.ui.isFullscreen),W=(ke=v())!=null?ke:he(x.ui.isAutoplay),Ce=I.ads.paramsOverride;return{width:nt,height:Me,isFullscreen:be,isAutoplay:W,adsContainer:n(E),adsVideoElement:n(V),slotId:m(),params:p(),paramsOverride:Ce,duration:$(),externalApi:y(),json:g()}},fe=nt=>xt(null,null,function*(){nt&&(yield yo());let Me=B();yield Z.initAdman(Me),q=!0}),me=new AbortController,Ie=()=>{me.abort()};return window.AdmanHTML?fe(!0).catch(()=>{Z.onAdmanLoadingError()}):Z.loadAdman(me.signal).then(()=>fe(!1)).catch(()=>{Z.onAdmanLoadingError()}),()=>{Yl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Yl.now)(),m()]}),!q&&Ie()}});var ae=Iy(),le=C(ae);{var ce=Z=>{var B=Ty();b(Z,B)};M(le,Z=>{l()&&Z(ce)})}var X=P(le,2);it(X,Z=>O(V,Z),()=>n(V));var _e=P(X,2);{var Ee=Z=>{cm(Z,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return x.actions.internal.skipAd}})};M(_e,Z=>{n(ee)&&Z(Ee)})}var de=P(_e,2);{var ze=Z=>{dm(Z,{})};M(de,Z=>{u()&&Z(ze)})}var ue=P(de,2);{var pe=Z=>{um(Z,{})};M(ue,Z=>{n(oe)&&Z(pe)})}S(ae),it(ae,Z=>O(E,Z),()=>n(E)),b(t,ae),F(),o()}var sn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var Py=Ae('<path fill="#fff"></path>'),Ay=Ae("<path></path><!>",1);function rc(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"live-active-icon":"live-icon"),r=f(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="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.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Ze(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=Ay(),u=se(s),m=P(u);{var p=v=>{var $=Py();De($,"d",a),b(v,$)};M(m,v=>{i()&&v(p)})}N(()=>De(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),b(l,s)},$$slots:{default:!0}})}var ky=k('<div class="equalizer s-c"><div class="col s-c"></div> <div class="col s-c"></div> <div class="col s-c"></div></div>'),Ly=k('<div class="live-icon s-c"><!></div>'),My=k('<span class="text s-c"> </span>'),Vy=k("<div><!> <!></div>"),Ry={hash:"s-c",code:".wrapper.s-c{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-c{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-c{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-c .equalizer:where(.s-c){margin-top:-2px}.equalizer.s-c .col:where(.s-c){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-c .equalizer:where(.s-c) .col:where(.s-c){animation-play-state:running}.equalizer.s-c .col:where(.s-c):first-child{animation-name:s-c-thumb-timer-equalizer-col1;left:0}.equalizer.s-c .col:where(.s-c):nth-child(2){animation-name:s-c-thumb-timer-equalizer-col2;left:3px}.equalizer.s-c .col:where(.s-c):nth-child(3){animation-name:s-c-thumb-timer-equalizer-col3;left:6px}.live-icon.s-c{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-c-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-c-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-c-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-c{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function sc(t,e){Q(t,Ry);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var a=Vy();let l;var d=C(a);{var s=v=>{var $=ky();b(v,$)};M(d,v=>{i()&&v(s)})}var u=P(d,2);{var m=v=>{var $=Ly(),y=C($);rc(y,{isActive:!0}),S($),b(v,$)},p=v=>{var $=My(),y=C($,!0);S($),N(()=>ge(y,e.time)),b(v,$)};M(u,v=>{o()?v(m):v(p,!1)})}S(a),N(v=>l=ie(a,1,"wrapper s-c",null,l,v),[()=>({live:o(),playing:r()})]),b(t,a)}var jl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Dy=k('<div role="timer" data-testid="thumb-timer"><!></div>'),Oy={hash:"s-h",code:".thumb-timer.s-h{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function ac(t,e){H(e,!0),Q(t,Oy);let[i,o]=Be(),r=()=>w(m,"$disabled",i),a=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),s=Rt(),u=f(()=>sn(e.duration-e.position)),m=re(!1);var p=Dy();let v;var $=C(p);sc($,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Ns(p,()=>jl(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),N(y=>v=ie(p,1,"thumb-timer s-h",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(t,p),F(),o()}var Xl=t=>{if(!navigator.clipboard){ub(t);return}navigator.clipboard.writeText(t).catch(()=>ub(t))};function ub(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)}}}var Ju=require("@vkontakte/videoplayer-core/es2015");var fm=require("@vkontakte/videoplayer-core/es2015");var pm="focus-hidden";var Rr=t=>{t.stopPropagation(),t.preventDefault()},mm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(pm)},By=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Hy=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Fy=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Uy=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},pb=t=>t.code==="Escape",zy=t=>t.code==="ArrowLeft",lc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},fb=t=>{Fy(t)?(Rr(t),Hy(t.target)):Uy(t)&&(Rr(t),By(t.target))},fa=t=>!fm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||fm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Zl=(t,e,i)=>xt(null,null,function*(){yield yo(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(yield yo(),i.set(!1),t.focus())}),mb=(t,e,i)=>xt(null,null,function*(){yield yo(),t&&!e&&he(i)&&(i.set(!1),t.focus())}),dc=(t,e,i,o=!1)=>xt(null,null,function*(){if(yield yo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(pm,!i),a==null||a.focus()}}),vb=(t,e)=>xt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Xu=(t,e)=>{fb(t),mm(t.target),pb(t)&&(Rr(t),e())},Zu=(t,e)=>xt(null,null,function*(){lc(t,["ArrowRight"])&&(Rr(t),e())}),gb=(t,e,i)=>xt(null,null,function*(){if(fb(t),zy(t)){Rr(t),e();return}pb(t)&&(Rr(t),i())}),Jl=(t,e)=>{lc(t)&&(Rr(t),e())},hb=(t,e,i)=>{if(lc(t))Rr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Rr(t);return}o==="ArrowRight"&&!e&&(i(!0),Rr(t))}},_b=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},bb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Ya=require("@vkontakte/videoplayer-shared/es2015");var is={"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};var vm=require("@vkontakte/videoplayer-shared/es2015");var Ky=(t,e)=>{Jl(t,()=>e())},qy=k('<li class="item s-1m" role="menuitem" tabindex="0"> </li>'),Qy={hash:"s-1m",code:".item.s-1m{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1m:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function gm(t,e){H(e,!0),Q(t,Qy);let i=h(e,"onClick",3,vm.noop),o=h(e,"closeContextMenu",3,vm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=qy();a.__click=r,a.__keydown=[Ky,r];var l=C(a,!0);S(a),N(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),ge(l,e.label)}),b(t,a),F()}tt(["click","keydown"]);var Ga=(t,e)=>t.weight-e.weight;var ed=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ed||{});var Gy=(t,e)=>{Xu(t,e)},Yy=t=>{t.preventDefault()},jy=k('<ul role="menu" data-testid="context-menu" class="s-z"></ul>'),Xy={hash:"s-z",code:"ul.s-z{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function hm(t,e){H(e,!0),Q(t,Xy);let[i,o]=Be(),r=()=>w(le,"$playerPhase",i),a=()=>w(te,"$isLive$",i),l=()=>w(ce,"$isPiPEnabled$",i),d=()=>w(j,"$chromecastState$",i),s=()=>w(X,"$pictureInPictureApiIsActive$",i),u=()=>w(ae,"$isLooped$",i),m=()=>w(ee,"$positionExact$",i),p=()=>w(q,"$additionalContextMenuItems$",i),v=h(e,"visible",3,!1),$=h(e,"position",19,()=>({top:0,left:0})),y=h(e,"playerContainerRef",3,void 0),g=h(e,"menuElementRef",15,void 0),x=K(0),I=K(0),T=ye(),{pictureInPicture$:D}=To(),A=Rt(),E=T.ui.contextMenu.visible$,V=T.ui.debugPanelVisible,q=T.ui.additionalContextMenuItems$,L=T.ui.t,z=T.actions.internal.togglePictureInPicture,j=T.state.chromecastState$,te=T.state.isLive$,ee=T.state.positionExact$,oe=T.state.isInteractive,ae=T.state.looped$,le=T.playerPhase,{isEnabled$:ce,isActive$:X}=D,_e=f(()=>r()==="video"),Ee=f(()=>!!a()&&n(_e)),de=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),ze=f(()=>{var Se;return A.features.copyVideoLink&&((Se=T.callbacks)==null?void 0:Se.onCopyVideoLink)}),ue=f(()=>n(ze)&&!n(de)&&!oe&&!n(Ee)),pe=f(()=>{var Se;return!!((Se=T.callbacks)!=null&&Se.onCopyEmbedCodeClicked)}),Z=f(()=>l()&&d()!==Ju.ChromecastState.CONNECTED&&!oe&&n(_e)&&!Ju.clientChecker.browser.isFirefox),B=f(()=>!oe&&!n(de)&&!n(Ee)),fe=f(()=>A.features.videoRotate&&!oe&&!n(de)),me=f(()=>A.showSupport&&!s()),Ie=f(()=>A.features.saveTraceInfoToFile),nt=()=>{var Se;E.set(!1),(Se=e.returnFocus)==null||Se.call(e)},Me=(Se,je)=>{if(!g()||!y())return;let Ue=g().getBoundingClientRect(),xe=y().getBoundingClientRect();O(x,Se-xe.left),O(I,je-xe.top),n(x)+Ue.width>xe.width&&O(x,xe.width-Ue.width),n(I)+Ue.height>xe.height&&O(I,xe.height-Ue.height),O(x,Math.max(n(x),0),!0),O(I,Math.max(n(I),0),!0)};Fe(()=>{xt(null,null,function*(){if(g()&&y()){yield yo();let{top:je,left:Ue,bottom:xe,right:Bt}=$(),Et=Ue!=null?Ue:0,Gt=je!=null?je:0,$i=g().getBoundingClientRect();(0,Ya.isNullable)(Ue)&&!(0,Ya.isNullable)(Bt)&&(Et=Bt-$i.width),(0,Ya.isNullable)(je)&&!(0,Ya.isNullable)(xe)&&(Gt=xe-$i.height),Et=Math.max(Et,0),Gt=Math.max(Gt,0),Me(Et,Gt)}})});let be=()=>{T.actions.internal.videoRotate()},W=()=>{(0,Ya.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Ce=()=>{let Se=T.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let je=new Blob([...Se],{type:"plain/text"}),Ue=window.URL.createObjectURL(je);qa(Ue,"vk_player_debug_info","txt")}else Xl(T.actions.internal.getDebugTextData())},ke=()=>{let Se=T.actions.internal.getTraceTextData(),je=new Blob([...Se],{type:"application/json"}),Ue=window.URL.createObjectURL(je);qa(Ue,"vk_player_trace_info","json")},Qe=()=>{V.set(!0)},Te=()=>xt(null,null,function*(){var Se;try{z()}finally{(Se=e.returnFocus)==null||Se.call(e)}}),we=()=>{T.actions.internal.setLooped(!u())},He=()=>{var Se,je;if(n(pe)){let Ue=(je=(Se=T.callbacks)==null?void 0:Se.onCopyEmbedCodeClicked)==null?void 0:je.call(Se);Ue&&Xl(Ue)}},at=(Se=!1)=>{var je,Ue;if((je=T.callbacks)!=null&&je.onCopyVideoLink){let xe=(Ue=T.callbacks)==null?void 0:Ue.onCopyVideoLink(Se,m());xe&&Xl(xe)}},pt=f(()=>A.features.saveDebugInfoToFile?L("menu_save_debug"):L("menu_copy_debug")),Pt=f(()=>n(ze)?{id:"copy-link",weight:is["copy-link"],label:L("menu_copy_video_link"),onClick:()=>at()}:void 0),dt=f(()=>n(ue)?{id:"copy-link-timestamp",weight:is["copy-link-timestamp"],label:L("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}:void 0),ai=f(()=>n(pe)?{id:"copy-embed-code",weight:is["copy-embed-code"],label:L("menu_copy_embed_code"),onClick:He}:void 0),Tt=f(()=>n(Z)?{id:"pip",weight:is.pip,label:s()?L("menu_pip_close"):L("menu_pip"),onClick:Te}:void 0),Ot=f(()=>n(B)?{id:"video-loop",weight:is["video-loop"],label:u()?L("menu_video_loop_off"):L("menu_video_loop_on"),ariaLabel:L("aria_label_menu_loop"),onClick:we}:void 0),Nt=f(()=>n(fe)?{id:"rotate",weight:is.rotate,label:L("menu_video_rotate"),ariaLabel:L("aria_label_menu_rotate"),onClick:be}:void 0),qt=f(()=>n(me)?{id:"report",weight:is.report,label:L("menu_report"),ariaLabel:`${L("menu_report")}. ${L("aria_label_new_tab_alert")}`,onClick:W}:void 0),Le=f(()=>({id:"save-debug",weight:is["save-debug"],label:n(pt),onClick:Ce})),Y=f(()=>n(Ie)?{id:"save-trace",weight:is["save-trace"],label:L("menu_save_debug"),onClick:ke}:void 0),Oe=f(()=>({id:"debug-info",weight:is["debug-info"],label:L("menu_debug_overlay"),ariaLabel:L("aria_label_menu_debug_overlay"),onClick:Qe})),$e=f(()=>[n(Pt),n(dt),n(ai),n(Tt),n(Ot),n(Nt),n(qt),n(Le),n(Y),n(Oe),...p()].filter(Se=>!!Se).sort(Ga));var Ne=Re(),vt=se(Ne);{var At=Se=>{var je=jy();je.__contextmenu=[Yy],je.__keydown=[Gy,nt],Ci(je,21,()=>n($e),Ue=>Ue.id,(Ue,xe)=>{gm(Ue,{get id(){return n(xe).id},get label(){return n(xe).label},get ariaLabel(){return n(xe).ariaLabel},get onClick(){return n(xe).onClick},closeContextMenu:nt})}),S(je),it(je,Ue=>g(Ue),()=>g()),N(()=>{var Ue,xe;return Ke(je,`top: ${(Ue=n(I))!=null?Ue:""}px; left: ${(xe=n(x))!=null?xe:""}px;`)}),b(Se,je)};M(vt,Se=>{v()&&Se(At)})}b(t,Ne),F(),o()}tt(["contextmenu","keydown"]);var ep=class{constructor(e){this.value=e,this.next=null}};var td=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new ep(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 Zy=k('<div class="container s-1c"><canvas class="s-1c"></canvas></div>'),Jy={hash:"s-1c",code:".container.s-1c{display:inline-block;height:16px;width:120px}canvas.s-1c{margin-top:2px;transform:scaleY(-1)}"};function cc(t,e){H(e,!0),Q(t,Jy);let i=h(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Vt(()=>{n(o).width=l,n(o).height=a,O(r,n(o).getContext("2d"),!0)});function u(v,$,y,g,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect($,y,g,x)}Fe(()=>{let v="";if(n(r)){let $=i()[0];for(let g=1;g<i().length;g++)i()[g]>$&&($=i()[g]);n(r).clearRect(0,0,l,a);let y=d-1;for(let g=i().length-1;g>=0;g--){let x=y*s,I=$>0?a*(i()[g]/$):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var m=Zy(),p=C(m);it(p,v=>O(o,v),()=>n(o)),S(m),b(t,m),F()}var _m=require("@vkontakte/videoplayer-shared/es2015");var e0=(t,e)=>{t.stopPropagation(),_m.safeStorage.remove(jd),e.set(!1)},t0=k('<div class="s-i"><div class="s-i">Video id</div> <span> </span></div>'),i0=k('<div class="s-i"><div class="s-i">VSID</div> <span> </span></div>'),o0=k('<div class="s-i"><div class="s-i">Provider</div> <span> </span></div>'),n0=k('<div class="s-i"><div class="s-i">Streams</div> <span> </span></div>'),r0=k('<div class="s-i"><div class="s-i">Viewport</div> <span> </span></div>'),s0=k('<div class="s-i"><div class="s-i">Video size</div> <span> </span></div>'),a0=k('<div class="s-i"><div class="s-i">CDN host</div> <span> </span></div>'),l0=k('<div class="s-i"><div class="s-i">Volume</div> <span> </span></div>'),d0=k('<div class="s-i"><div class="s-i">Position</div> <span> </span></div>'),c0=k('<div class="s-i"><div class="s-i">Buffer</div> <span> </span></div>'),u0=k('<div class="s-i"><div class="s-i">Nbuffer</div> <span> </span></div>'),p0=k('<div class="s-i"><div class="s-i">Live latency</div> <span> </span></div>'),f0=k('<div class="s-i"><div class="s-i">Segment</div> <span> </span></div>'),m0=k('<div class="s-i"><div class="s-i">Network</div> <!> <span> </span></div>'),v0=k('<div class="s-i"><div class="s-i">V bitrate</div> <!> <span> </span></div>'),g0=k('<div role="region"><button class="close s-i" title="закрыть">[x]</button> <div class="content s-i"><div class="s-i"><div class="s-i">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-i"><div class="s-i">Dropped</div> <span> </span></div> <!> <!> <div class="s-i"><div class="s-i">FPS</div> <!> <span> </span></div></div></div>'),h0={hash:"s-i",code:".container.s-i{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-i{left:16px;top:16px}button.close.s-i{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-i{padding:5px}.content.s-i>div:where(.s-i)>div:where(.s-i){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function uc(t,e){H(e,!0),Q(t,h0);let[i,o]=Be(),r=()=>w(d,"$isMobile",i),a=ye(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(si(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=K(0),p=K(0),v=K(0),$=new td(60),y=new td(60),g=new td(60),x=K(si([])),I=K(si([])),T=K(si([])),D=G("aria_label_debug_panel");Vt(()=>{_m.safeStorage.set(jd,"true"),a.actions.internal.startLogging(),u&&(O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Le=window.setInterval(()=>{O(s,a.actions.internal.getDebugPanelData(),!0)},500),Y;return u&&(Y=window.setInterval(()=>{if(u){O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let Oe=u.getVideoPlaybackQuality().totalVideoFrames;O(v,Oe-n(m)),O(m,Oe,!0),$.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&g.push(n(s).bitrate),O(x,$.getValuesFromBottom(),!0),O(I,y.getValuesFromBottom(),!0),O(T,g.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Le),Y&&clearInterval(Y)}});var A=g0();let E;var V=C(A);V.__click=[e0,l];var q=P(V,2),L=C(q),z=P(C(L),2),j=C(z,!0);S(z),S(L);var te=P(L,2);{var ee=Le=>{var Y=t0(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).id)),b(Le,Y)};M(te,Le=>{n(s).id&&Le(ee)})}var oe=P(te,2);{var ae=Le=>{var Y=i0(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).vsid)),b(Le,Y)};M(oe,Le=>{n(s).vsid&&Le(ae)})}var le=P(oe,2);{var ce=Le=>{var Y=o0(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).provider)),b(Le,Y)};M(le,Le=>{n(s).provider&&Le(ce)})}var X=P(le,2);{var _e=Le=>{var Y=n0(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(()=>{var Ne,vt;return ge($e,`Video: ${(Ne=n(s).videoCodec||"")!=null?Ne:""} ${n(s).hdr?"(HDR)":""}
54
+ Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},nb=g0;var Hs=new Map;Hs.set(Gl.InterfaceLanguage.EN,nb);Hs.set(Gl.InterfaceLanguage.RU,ob);var rb=new Map,rm=({language:t,pack:e,fallback:i})=>{if(Hs.has(t)){let o=Hs.get(t);Hs.set(t,Ge(Ge({},o),e))}else Hs.set(t,e);rb.set(t,i)},sm=t=>Hs.has(t),am=(t,e,i,o)=>{var l;let r=Hs.get(t),a=r==null?void 0:r[e];if((0,Gl.isNullable)(a)){let d=(l=rb.get(t))!=null?l:o,s=d?Hs.get(d):void 0;a=s==null?void 0:s[e]}return(0,Gl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},G=(t,e)=>{let{interfaceLanguage$:i}=ye(),o=he(i),r=Rt();return am(o,t,e,r.defaultLanguage)};var h0=Ae('<path d="M26.86 15.18a3.7 3.7 0 0 0 2.53-3.6C29.4 8.91 27.2 7 24.07 7c-1.96 0-3.57.78-4.67 2.29l-.1.15a1.33 1.33 0 0 0 .26 1.85c.54.4 1.3.35 1.74-.16l.2-.25a3 3 0 0 1 2.5-1.3c1.53 0 2.6.91 2.6 2.25 0 1.36-1.09 2.27-2.65 2.27h-.58a1.23 1.23 0 0 0 0 2.47h.58c1.75 0 2.91.98 2.91 2.39 0 1.45-1.19 2.46-2.88 2.46a3.2 3.2 0 0 1-2.89-1.6l-.2-.29a1.4 1.4 0 0 0-2.05-.25 1.3 1.3 0 0 0-.3 1.68l.21.33A6 6 0 0 0 24 24c3.28 0 5.63-2.04 5.63-4.92a4 4 0 0 0-2.77-3.9M37.73 12.68c-.46 0-1 .04-1.5.16L38.8 9.1a1.34 1.34 0 1 0-2.2-1.52l-3.76 5.47C31.43 15.18 31 16.87 31 18.33 31 21.8 33.56 24 37.19 24c3.6 0 6.16-2.4 6.16-5.77a5.4 5.4 0 0 0-5.63-5.56m-.53 8.74c-1.98 0-3.33-1.27-3.33-3.14 0-1.85 1.35-3.14 3.33-3.14 1.95 0 3.3 1.29 3.3 3.14 0 1.87-1.35 3.14-3.3 3.14m20.8-5.9c0 5.03-2.7 8.43-6.63 8.43s-6.62-3.4-6.62-8.44 2.7-8.44 6.62-8.44S58 10.47 58 15.51m-10.35 0c0 3.56 1.49 5.85 3.72 5.85s3.72-2.3 3.72-5.86-1.48-5.86-3.72-5.86c-2.23 0-3.72 2.3-3.72 5.86M67 9.49A3.5 3.5 0 0 1 63.51 13 3.5 3.5 0 0 1 60 9.49 3.5 3.5 0 0 1 63.51 6 3.5 3.5 0 0 1 67 9.49m-5 0c0 .83.68 1.51 1.51 1.51.81 0 1.5-.68 1.5-1.51 0-.81-.69-1.5-1.5-1.5-.83 0-1.51.69-1.51 1.5ZM67 23.5c0-1.32-1.2-3.1-4.2-4.67a1.5 1.5 0 1 1 1.4-2.66c3.25 1.72 5.8 4.26 5.8 7.33 0 3.13-2.56 5.55-6.09 7.27-3.63 1.77-8.82 3.06-15.26 3.72a1.5 1.5 0 0 1-.3-2.98c6.25-.64 11.05-1.88 14.25-3.44 3.3-1.6 4.4-3.27 4.4-4.57M38.88 35H38c-9.64 0-17.45-1.13-22.9-3.02-2.72-.94-4.94-2.1-6.5-3.47C7.01 27.14 6 25.44 6 23.5a6.2 6.2 0 0 1 1.9-4.25 16 16 0 0 1 4.43-3.1 1.5 1.5 0 1 1 1.34 2.7q-2.39 1.19-3.59 2.46C9.3 22.14 9 22.87 9 23.5c0 .8.4 1.74 1.57 2.76s3 2.01 5.51 2.89C21.11 30.89 28.55 32 38 32h.88l-1.44-1.44a1.5 1.5 0 0 1 2.12-2.12l4 4h.01a1.5 1.5 0 0 1 .32 1.63 2 2 0 0 1-.33.5l-4 4a1.5 1.5 0 0 1-2.12-2.13z"></path>');function ic(t,e){H(e,!1);let i=G("video360");rn(),Ze(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=h0();b(o,a)},$$slots:{default:!0}}),F()}var C9=require("@vkontakte/videoplayer-core/es2015");var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var Qu=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.resolve()):Promise.reject()},Gu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),sb=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,ab=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},oc=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ca=()=>!!oc(),Yu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ju=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},lb=t=>{let e=window.screen;return(r=>xt(null,null,function*(){return e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject()}))(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var lm=require("@vkontakte/videoplayer-core/es2015"),db=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")},{description:G("hotkey_map_item_next_video_description"),value:G("hotkey_map_item_next_video_value")},{description:G("hotkey_map_item_prev_video_description"),value:G("hotkey_map_item_prev_video_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:lm.clientChecker.device.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:lm.clientChecker.device.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var Yl=require("@vkontakte/videoplayer-shared/es2015");function dm(t,e){H(e,!1);let i=ye();Vt(()=>{i.getAdmanWrapper().startPostroll()}),rn(),F()}var cb=require("@vkontakte/videoplayer-shared/es2015");var _0=Ae('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),b0=Ae('<path 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.272L5.773 8z"></path>');function Vr(t,e){H(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=f(()=>["up","down"].includes(i())),a=f(()=>["right","down"].includes(i())),l=f(()=>`chevron-icon--${i()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?da:"currentColor"),u=f(()=>n(r)?"7":"16");Ze(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,p)=>{var v=Re(),$=se(v);{var y=x=>{var I=_0();b(x,I)},g=x=>{var I=b0();b(x,I)};M($,x=>{n(r)?x(y):x(g,!1)})}b(m,v)},$$slots:{default:!0}}),F()}var $0=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},y0=k('<div class="skip s-1h"> <!></div>'),x0=k("<div><!></div>"),w0={hash:"s-1h",code:".container.s-1h{background:rgba(0,0,0,.56);border-radius:6px;color:#fff;font-size:13px;padding:6px 10px;position:absolute;right:16px;top:14px;transition:color .2s}.container-mobile.s-1h{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1h{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1h{color:var(--white);cursor:pointer}.skippable.s-1h:hover{color:hsla(0,0%,100%,.75)}"};function cm(t,e){H(e,!0),Q(t,w0);let[i,o]=Be(),r=()=>w(u,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,cb.noop),u=ye().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=x0();let v;p.__click=[$0,m,d];var $=C(p);{var y=x=>{var I=y0(),T=C(I),D=P(T);Vr(D,{direction:"right"}),S(I),N(A=>ge(T,`${A!=null?A:""} `),[()=>G("skip_ads_now")]),b(x,I)},g=x=>{var I=$s();N(T=>ge(I,T),[()=>G("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(x,I)};M($,x=>{n(m)?x(y):x(g,!1)})}S(p),N(x=>v=ie(p,1,"container s-1h",null,v,x),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,p),F(),o()}tt(["click"]);var S0=k('<button class="go-to-site s-1g"> </button>'),C0={hash:"s-1g",code:"button.go-to-site.s-1g{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function um(t,e){H(e,!1),Q(t,C0),rn();var i=S0(),o=C(i,!0);S(i),N(r=>ge(o,r),[()=>G("visit_advertiser")],Pn),b(t,i),F()}var T0=k('<div class="top-gradient-mobile s-k"></div>'),I0=k('<div class="container s-k"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),E0={hash:"s-k",code:".container.s-k{height:100%;width:100%}.top-gradient-mobile.s-k{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function nc(t,e){H(e,!0),Q(t,E0);let[i,o]=Be(),r=()=>w(z,"$canSkipAd",i),a=()=>w(L,"$adPlaybackState",i),l=()=>w(D,"$isMobile",i),d=()=>w(j,"$adPosition",i),s=()=>w(te,"$secondsToWatchBeforeSkipAd",i),u=()=>w(T,"$isVideoEnded",i),m=h(e,"adsSlotId",3,void 0),p=h(e,"adsParams",3,void 0),v=h(e,"adsAutoplayParam",3,void 0),$=h(e,"duration",3,0),y=h(e,"adsExternalApi",3,void 0),g=h(e,"adsJson",3,void 0),x=ye(),I=Rt(),T=x.state.isEnded$,D=x.ui.isMobile,A=I.ads.isMobileGoToSiteButton,E=K(void 0),V=K(void 0),q=!1,L=x.ads.playbackState,z=x.ads.canSkip,j=x.ads.position,te=x.ads.secondsToWatchBeforeSkip,ee=f(()=>r()&&a()!=="inactive"),oe=f(()=>l()&&a()!=="inactive"&&A);Vt(()=>{let Z=x.getAdmanWrapper();if(Yl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Yl.now)(),m()]}),m()===void 0){Z.onAdmanLoadingError();return}let B=()=>{var ke;let{width:nt,height:Me}=he(x.ui.playerSize),be=he(x.ui.isFullscreen),W=(ke=v())!=null?ke:he(x.ui.isAutoplay),Ce=I.ads.paramsOverride;return{width:nt,height:Me,isFullscreen:be,isAutoplay:W,adsContainer:n(E),adsVideoElement:n(V),slotId:m(),params:p(),paramsOverride:Ce,duration:$(),externalApi:y(),json:g()}},fe=nt=>xt(null,null,function*(){nt&&(yield yo());let Me=B();yield Z.initAdman(Me),q=!0}),me=new AbortController,Ie=()=>{me.abort()};return window.AdmanHTML?fe(!0).catch(()=>{Z.onAdmanLoadingError()}):Z.loadAdman(me.signal).then(()=>fe(!1)).catch(()=>{Z.onAdmanLoadingError()}),()=>{Yl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Yl.now)(),m()]}),!q&&Ie()}});var ae=I0(),le=C(ae);{var ce=Z=>{var B=T0();b(Z,B)};M(le,Z=>{l()&&Z(ce)})}var X=P(le,2);it(X,Z=>O(V,Z),()=>n(V));var _e=P(X,2);{var Ee=Z=>{cm(Z,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return x.actions.internal.skipAd}})};M(_e,Z=>{n(ee)&&Z(Ee)})}var de=P(_e,2);{var ze=Z=>{dm(Z,{})};M(de,Z=>{u()&&Z(ze)})}var ue=P(de,2);{var pe=Z=>{um(Z,{})};M(ue,Z=>{n(oe)&&Z(pe)})}S(ae),it(ae,Z=>O(E,Z),()=>n(E)),b(t,ae),F(),o()}var sn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var P0=Ae('<path fill="#fff"></path>'),A0=Ae("<path></path><!>",1);function rc(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"live-active-icon":"live-icon"),r=f(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="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.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Ze(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=A0(),u=se(s),m=P(u);{var p=v=>{var $=P0();De($,"d",a),b(v,$)};M(m,v=>{i()&&v(p)})}N(()=>De(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),b(l,s)},$$slots:{default:!0}})}var k0=k('<div class="equalizer s-c"><div class="col s-c"></div> <div class="col s-c"></div> <div class="col s-c"></div></div>'),L0=k('<div class="live-icon s-c"><!></div>'),M0=k('<span class="text s-c"> </span>'),V0=k("<div><!> <!></div>"),R0={hash:"s-c",code:".wrapper.s-c{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-c{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-c{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-c .equalizer:where(.s-c){margin-top:-2px}.equalizer.s-c .col:where(.s-c){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-c .equalizer:where(.s-c) .col:where(.s-c){animation-play-state:running}.equalizer.s-c .col:where(.s-c):first-child{animation-name:s-c-thumb-timer-equalizer-col1;left:0}.equalizer.s-c .col:where(.s-c):nth-child(2){animation-name:s-c-thumb-timer-equalizer-col2;left:3px}.equalizer.s-c .col:where(.s-c):nth-child(3){animation-name:s-c-thumb-timer-equalizer-col3;left:6px}.live-icon.s-c{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-c-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-c-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-c-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-c{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function sc(t,e){Q(t,R0);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var a=V0();let l;var d=C(a);{var s=v=>{var $=k0();b(v,$)};M(d,v=>{i()&&v(s)})}var u=P(d,2);{var m=v=>{var $=L0(),y=C($);rc(y,{isActive:!0}),S($),b(v,$)},p=v=>{var $=M0(),y=C($,!0);S($),N(()=>ge(y,e.time)),b(v,$)};M(u,v=>{o()?v(m):v(p,!1)})}S(a),N(v=>l=ie(a,1,"wrapper s-c",null,l,v),[()=>({live:o(),playing:r()})]),b(t,a)}var jl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var D0=k('<div role="timer" data-testid="thumb-timer"><!></div>'),O0={hash:"s-11",code:".thumb-timer.s-11{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function ac(t,e){H(e,!0),Q(t,O0);let[i,o]=Be(),r=()=>w(m,"$disabled",i),a=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),s=Rt(),u=f(()=>sn(e.duration-e.position)),m=re(!1);var p=D0();let v;var $=C(p);sc($,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Ns(p,()=>jl(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),N(y=>v=ie(p,1,"thumb-timer s-11",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(t,p),F(),o()}var Xl=t=>{if(!navigator.clipboard){ub(t);return}navigator.clipboard.writeText(t).catch(()=>ub(t))};function ub(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)}}}var Ju=require("@vkontakte/videoplayer-core/es2015");var fm=require("@vkontakte/videoplayer-core/es2015");var pm="focus-hidden";var Rr=t=>{t.stopPropagation(),t.preventDefault()},mm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(pm)},B0=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},H0=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},F0=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},U0=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},pb=t=>t.code==="Escape",z0=t=>t.code==="ArrowLeft",lc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},fb=t=>{F0(t)?(Rr(t),H0(t.target)):U0(t)&&(Rr(t),B0(t.target))},fa=t=>!fm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||fm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Zl=(t,e,i)=>xt(null,null,function*(){yield yo(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(yield yo(),i.set(!1),t.focus())}),mb=(t,e,i)=>xt(null,null,function*(){yield yo(),t&&!e&&he(i)&&(i.set(!1),t.focus())}),dc=(t,e,i,o=!1)=>xt(null,null,function*(){if(yield yo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(pm,!i),a==null||a.focus()}}),vb=(t,e)=>xt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Xu=(t,e)=>{fb(t),mm(t.target),pb(t)&&(Rr(t),e())},Zu=(t,e)=>xt(null,null,function*(){lc(t,["ArrowRight"])&&(Rr(t),e())}),gb=(t,e,i)=>xt(null,null,function*(){if(fb(t),z0(t)){Rr(t),e();return}pb(t)&&(Rr(t),i())}),Jl=(t,e)=>{lc(t)&&(Rr(t),e())},hb=(t,e,i)=>{if(lc(t))Rr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Rr(t);return}o==="ArrowRight"&&!e&&(i(!0),Rr(t))}},_b=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},bb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Ya=require("@vkontakte/videoplayer-shared/es2015");var is={"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};var vm=require("@vkontakte/videoplayer-shared/es2015");var K0=(t,e)=>{Jl(t,()=>e())},q0=k('<li class="item s-1j" role="menuitem" tabindex="0"> </li>'),Q0={hash:"s-1j",code:".item.s-1j{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1j:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function gm(t,e){H(e,!0),Q(t,Q0);let i=h(e,"onClick",3,vm.noop),o=h(e,"closeContextMenu",3,vm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=q0();a.__click=r,a.__keydown=[K0,r];var l=C(a,!0);S(a),N(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),ge(l,e.label)}),b(t,a),F()}tt(["click","keydown"]);var Ga=(t,e)=>t.weight-e.weight;var ed=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ed||{});var G0=(t,e)=>{Xu(t,e)},Y0=t=>{t.preventDefault()},j0=k('<ul role="menu" data-testid="context-menu" class="s-p"></ul>'),X0={hash:"s-p",code:"ul.s-p{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function hm(t,e){H(e,!0),Q(t,X0);let[i,o]=Be(),r=()=>w(le,"$playerPhase",i),a=()=>w(te,"$isLive$",i),l=()=>w(ce,"$isPiPEnabled$",i),d=()=>w(j,"$chromecastState$",i),s=()=>w(X,"$pictureInPictureApiIsActive$",i),u=()=>w(ae,"$isLooped$",i),m=()=>w(ee,"$positionExact$",i),p=()=>w(q,"$additionalContextMenuItems$",i),v=h(e,"visible",3,!1),$=h(e,"position",19,()=>({top:0,left:0})),y=h(e,"playerContainerRef",3,void 0),g=h(e,"menuElementRef",15,void 0),x=K(0),I=K(0),T=ye(),{pictureInPicture$:D}=To(),A=Rt(),E=T.ui.contextMenu.visible$,V=T.ui.debugPanelVisible,q=T.ui.additionalContextMenuItems$,L=T.ui.t,z=T.actions.internal.togglePictureInPicture,j=T.state.chromecastState$,te=T.state.isLive$,ee=T.state.positionExact$,oe=T.state.isInteractive,ae=T.state.looped$,le=T.playerPhase,{isEnabled$:ce,isActive$:X}=D,_e=f(()=>r()==="video"),Ee=f(()=>!!a()&&n(_e)),de=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),ze=f(()=>{var Se;return A.features.copyVideoLink&&((Se=T.callbacks)==null?void 0:Se.onCopyVideoLink)}),ue=f(()=>n(ze)&&!n(de)&&!oe&&!n(Ee)),pe=f(()=>{var Se;return!!((Se=T.callbacks)!=null&&Se.onCopyEmbedCodeClicked)}),Z=f(()=>l()&&d()!==Ju.ChromecastState.CONNECTED&&!oe&&n(_e)&&!Ju.clientChecker.browser.isFirefox),B=f(()=>!oe&&!n(de)&&!n(Ee)),fe=f(()=>A.features.videoRotate&&!oe&&!n(de)),me=f(()=>A.showSupport&&!s()),Ie=f(()=>A.features.saveTraceInfoToFile),nt=()=>{var Se;E.set(!1),(Se=e.returnFocus)==null||Se.call(e)},Me=(Se,je)=>{if(!g()||!y())return;let Ue=g().getBoundingClientRect(),xe=y().getBoundingClientRect();O(x,Se-xe.left),O(I,je-xe.top),n(x)+Ue.width>xe.width&&O(x,xe.width-Ue.width),n(I)+Ue.height>xe.height&&O(I,xe.height-Ue.height),O(x,Math.max(n(x),0),!0),O(I,Math.max(n(I),0),!0)};Fe(()=>{xt(null,null,function*(){if(g()&&y()){yield yo();let{top:je,left:Ue,bottom:xe,right:Bt}=$(),Et=Ue!=null?Ue:0,Gt=je!=null?je:0,$i=g().getBoundingClientRect();(0,Ya.isNullable)(Ue)&&!(0,Ya.isNullable)(Bt)&&(Et=Bt-$i.width),(0,Ya.isNullable)(je)&&!(0,Ya.isNullable)(xe)&&(Gt=xe-$i.height),Et=Math.max(Et,0),Gt=Math.max(Gt,0),Me(Et,Gt)}})});let be=()=>{T.actions.internal.videoRotate()},W=()=>{(0,Ya.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Ce=()=>{let Se=T.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let je=new Blob([...Se],{type:"plain/text"}),Ue=window.URL.createObjectURL(je);qa(Ue,"vk_player_debug_info","txt")}else Xl(T.actions.internal.getDebugTextData())},ke=()=>{let Se=T.actions.internal.getTraceTextData(),je=new Blob([...Se],{type:"application/json"}),Ue=window.URL.createObjectURL(je);qa(Ue,"vk_player_trace_info","json")},Qe=()=>{V.set(!0)},Te=()=>xt(null,null,function*(){var Se;try{z()}finally{(Se=e.returnFocus)==null||Se.call(e)}}),we=()=>{T.actions.internal.setLooped(!u())},He=()=>{var Se,je;if(n(pe)){let Ue=(je=(Se=T.callbacks)==null?void 0:Se.onCopyEmbedCodeClicked)==null?void 0:je.call(Se);Ue&&Xl(Ue)}},at=(Se=!1)=>{var je,Ue;if((je=T.callbacks)!=null&&je.onCopyVideoLink){let xe=(Ue=T.callbacks)==null?void 0:Ue.onCopyVideoLink(Se,m());xe&&Xl(xe)}},pt=f(()=>A.features.saveDebugInfoToFile?L("menu_save_debug"):L("menu_copy_debug")),Pt=f(()=>n(ze)?{id:"copy-link",weight:is["copy-link"],label:L("menu_copy_video_link"),onClick:()=>at()}:void 0),dt=f(()=>n(ue)?{id:"copy-link-timestamp",weight:is["copy-link-timestamp"],label:L("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}:void 0),ai=f(()=>n(pe)?{id:"copy-embed-code",weight:is["copy-embed-code"],label:L("menu_copy_embed_code"),onClick:He}:void 0),Tt=f(()=>n(Z)?{id:"pip",weight:is.pip,label:s()?L("menu_pip_close"):L("menu_pip"),onClick:Te}:void 0),Ot=f(()=>n(B)?{id:"video-loop",weight:is["video-loop"],label:u()?L("menu_video_loop_off"):L("menu_video_loop_on"),ariaLabel:L("aria_label_menu_loop"),onClick:we}:void 0),Nt=f(()=>n(fe)?{id:"rotate",weight:is.rotate,label:L("menu_video_rotate"),ariaLabel:L("aria_label_menu_rotate"),onClick:be}:void 0),qt=f(()=>n(me)?{id:"report",weight:is.report,label:L("menu_report"),ariaLabel:`${L("menu_report")}. ${L("aria_label_new_tab_alert")}`,onClick:W}:void 0),Le=f(()=>({id:"save-debug",weight:is["save-debug"],label:n(pt),onClick:Ce})),Y=f(()=>n(Ie)?{id:"save-trace",weight:is["save-trace"],label:L("menu_save_debug"),onClick:ke}:void 0),Oe=f(()=>({id:"debug-info",weight:is["debug-info"],label:L("menu_debug_overlay"),ariaLabel:L("aria_label_menu_debug_overlay"),onClick:Qe})),$e=f(()=>[n(Pt),n(dt),n(ai),n(Tt),n(Ot),n(Nt),n(qt),n(Le),n(Y),n(Oe),...p()].filter(Se=>!!Se).sort(Ga));var Ne=Re(),vt=se(Ne);{var At=Se=>{var je=j0();je.__contextmenu=[Y0],je.__keydown=[G0,nt],Ci(je,21,()=>n($e),Ue=>Ue.id,(Ue,xe)=>{gm(Ue,{get id(){return n(xe).id},get label(){return n(xe).label},get ariaLabel(){return n(xe).ariaLabel},get onClick(){return n(xe).onClick},closeContextMenu:nt})}),S(je),it(je,Ue=>g(Ue),()=>g()),N(()=>{var Ue,xe;return Ke(je,`top: ${(Ue=n(I))!=null?Ue:""}px; left: ${(xe=n(x))!=null?xe:""}px;`)}),b(Se,je)};M(vt,Se=>{v()&&Se(At)})}b(t,Ne),F(),o()}tt(["contextmenu","keydown"]);var ep=class{constructor(e){this.value=e,this.next=null}};var td=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new ep(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 Z0=k('<div class="container s-1e"><canvas class="s-1e"></canvas></div>'),J0={hash:"s-1e",code:".container.s-1e{display:inline-block;height:16px;width:120px}canvas.s-1e{margin-top:2px;transform:scaleY(-1)}"};function cc(t,e){H(e,!0),Q(t,J0);let i=h(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Vt(()=>{n(o).width=l,n(o).height=a,O(r,n(o).getContext("2d"),!0)});function u(v,$,y,g,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect($,y,g,x)}Fe(()=>{let v="";if(n(r)){let $=i()[0];for(let g=1;g<i().length;g++)i()[g]>$&&($=i()[g]);n(r).clearRect(0,0,l,a);let y=d-1;for(let g=i().length-1;g>=0;g--){let x=y*s,I=$>0?a*(i()[g]/$):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var m=Z0(),p=C(m);it(p,v=>O(o,v),()=>n(o)),S(m),b(t,m),F()}var _m=require("@vkontakte/videoplayer-shared/es2015");var ey=(t,e)=>{t.stopPropagation(),_m.safeStorage.remove(jd),e.set(!1)},ty=k('<div class="s-l"><div class="s-l">Video id</div> <span> </span></div>'),iy=k('<div class="s-l"><div class="s-l">VSID</div> <span> </span></div>'),oy=k('<div class="s-l"><div class="s-l">Provider</div> <span> </span></div>'),ny=k('<div class="s-l"><div class="s-l">Streams</div> <span> </span></div>'),ry=k('<div class="s-l"><div class="s-l">Viewport</div> <span> </span></div>'),sy=k('<div class="s-l"><div class="s-l">Video size</div> <span> </span></div>'),ay=k('<div class="s-l"><div class="s-l">CDN host</div> <span> </span></div>'),ly=k('<div class="s-l"><div class="s-l">Volume</div> <span> </span></div>'),dy=k('<div class="s-l"><div class="s-l">Position</div> <span> </span></div>'),cy=k('<div class="s-l"><div class="s-l">Buffer</div> <span> </span></div>'),uy=k('<div class="s-l"><div class="s-l">Nbuffer</div> <span> </span></div>'),py=k('<div class="s-l"><div class="s-l">Live latency</div> <span> </span></div>'),fy=k('<div class="s-l"><div class="s-l">Segment</div> <span> </span></div>'),my=k('<div class="s-l"><div class="s-l">Network</div> <!> <span> </span></div>'),vy=k('<div class="s-l"><div class="s-l">V bitrate</div> <!> <span> </span></div>'),gy=k('<div role="region"><button class="close s-l" title="закрыть">[x]</button> <div class="content s-l"><div class="s-l"><div class="s-l">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-l"><div class="s-l">Dropped</div> <span> </span></div> <!> <!> <div class="s-l"><div class="s-l">FPS</div> <!> <span> </span></div></div></div>'),hy={hash:"s-l",code:".container.s-l{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-l{left:16px;top:16px}button.close.s-l{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-l{padding:5px}.content.s-l>div:where(.s-l)>div:where(.s-l){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function uc(t,e){H(e,!0),Q(t,hy);let[i,o]=Be(),r=()=>w(d,"$isMobile",i),a=ye(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(si(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=K(0),p=K(0),v=K(0),$=new td(60),y=new td(60),g=new td(60),x=K(si([])),I=K(si([])),T=K(si([])),D=G("aria_label_debug_panel");Vt(()=>{_m.safeStorage.set(jd,"true"),a.actions.internal.startLogging(),u&&(O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Le=window.setInterval(()=>{O(s,a.actions.internal.getDebugPanelData(),!0)},500),Y;return u&&(Y=window.setInterval(()=>{if(u){O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let Oe=u.getVideoPlaybackQuality().totalVideoFrames;O(v,Oe-n(m)),O(m,Oe,!0),$.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&g.push(n(s).bitrate),O(x,$.getValuesFromBottom(),!0),O(I,y.getValuesFromBottom(),!0),O(T,g.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Le),Y&&clearInterval(Y)}});var A=gy();let E;var V=C(A);V.__click=[ey,l];var q=P(V,2),L=C(q),z=P(C(L),2),j=C(z,!0);S(z),S(L);var te=P(L,2);{var ee=Le=>{var Y=ty(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).id)),b(Le,Y)};M(te,Le=>{n(s).id&&Le(ee)})}var oe=P(te,2);{var ae=Le=>{var Y=iy(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).vsid)),b(Le,Y)};M(oe,Le=>{n(s).vsid&&Le(ae)})}var le=P(oe,2);{var ce=Le=>{var Y=oy(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).provider)),b(Le,Y)};M(le,Le=>{n(s).provider&&Le(ce)})}var X=P(le,2);{var _e=Le=>{var Y=ny(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(()=>{var Ne,vt;return ge($e,`Video: ${(Ne=n(s).videoCodec||"")!=null?Ne:""} ${n(s).hdr?"(HDR)":""}
55
55
  &
56
- Audio: ${(vt=n(s).audioCodec||"")!=null?vt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b(Le,Y)};M(X,Le=>{(n(s).videoCodec||n(s).audioCodec)&&Le(_e)})}var Ee=P(X,2);{var de=Le=>{var Y=r0(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).viewport)),b(Le,Y)};M(Ee,Le=>{n(s).viewport&&Le(de)})}var ze=P(Ee,2);{var ue=Le=>{var Y=s0(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).videoSize)),b(Le,Y)};M(ze,Le=>{n(s).videoSize&&Le(ue)})}var pe=P(ze,2);{var Z=Le=>{var Y=a0(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).cdn)),b(Le,Y)};M(pe,Le=>{n(s).cdn&&Le(Z)})}var B=P(pe,2);{var fe=Le=>{var Y=l0(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(()=>{var Ne;return ge($e,`${(Ne=n(s).volume)!=null?Ne:""} %`)}),b(Le,Y)};M(B,Le=>{n(s).volume&&Le(fe)})}var me=P(B,2);{var Ie=Le=>{var Y=d0(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(Ne=>ge($e,`${Ne!=null?Ne:""} s`),[()=>n(s).position.toFixed(2)]),b(Le,Y)};M(me,Le=>{n(s).position&&Le(Ie)})}var nt=P(me,2);{var Me=Le=>{var Y=c0(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(Ne=>ge($e,`${Ne!=null?Ne:""} s`),[()=>n(s).buffer.toFixed(2)]),b(Le,Y)};M(nt,Le=>{n(s).buffer&&Le(Me)})}var be=P(nt,2);{var W=Le=>{var Y=u0(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(Ne=>ge($e,`${Ne!=null?Ne:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),b(Le,Y)};M(be,Le=>{n(s).nativeBuffer&&Le(W)})}var Ce=P(be,2);{var ke=Le=>{var Y=p0(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(Ne=>ge($e,`${Ne!=null?Ne:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b(Le,Y)};M(Ce,Le=>{n(s).liveLatency&&Le(ke)})}var Qe=P(Ce,2);{var Te=Le=>{var Y=f0(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(Ne=>ge($e,Ne),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ne})=>Ne).map(({value:Ne,title:vt})=>`${vt} ${((Ne!=null?Ne:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Le,Y)};M(Qe,Le=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Le(Te)})}var we=P(Qe,2),He=P(C(we),2),at=C(He);S(He),S(we);var pt=P(we,2);{var Pt=Le=>{var Y=m0(),Oe=P(C(Y),2);cc(Oe,{get values(){return n(I)}});var $e=P(Oe,2),Ne=C($e);S($e),S(Y),N(vt=>ge(Ne,`${vt!=null?vt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b(Le,Y)};M(pt,Le=>{n(s).speed&&Le(Pt)})}var dt=P(pt,2);{var ai=Le=>{var Y=v0(),Oe=P(C(Y),2);cc(Oe,{get values(){return n(T)}});var $e=P(Oe,2),Ne=C($e);S($e),S(Y),N(vt=>ge(Ne,`${vt!=null?vt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b(Le,Y)};M(dt,Le=>{n(s).bitrate&&Le(ai)})}var Tt=P(dt,2),Ot=P(C(Tt),2);cc(Ot,{get values(){return n(x)}});var Nt=P(Ot,2),qt=C(Nt,!0);S(Nt),S(Tt),S(q),S(A),N(Le=>{var Y,Oe;E=ie(A,1,"container s-i",null,E,Le),De(A,"aria-label",D),ge(j,n(s).version),ge(at,`${(Y=n(p))!=null?Y:""} / ${(Oe=n(m))!=null?Oe:""} frames`),ge(qt,n(v))},[()=>({"container-mobile":r()})]),b(t,A),F(),o()}tt(["click"]);var $b=require("@vkontakte/videoplayer-shared/es2015"),_0=(t,e)=>{t.stopPropagation(),e()()},b0=k('<div class="close s-19"></div>'),$0={hash:"s-19",code:'.close.s-19{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-19:hover{opacity:1}.close.s-19:after,.close.s-19:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-19:before{transform:rotate(45deg)}.close.s-19:after{transform:rotate(-45deg)}'};function Fs(t,e){H(e,!0),Q(t,$0);let i=h(e,"onClick",3,$b.noop);var o=b0();o.__click=[_0,i],b(t,o),F()}tt(["click"]);var yb=require("@vkontakte/videoplayer-shared/es2015");var fn=t=>`width:${t}px;height:${t}px;`;var y0=Ae('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function _r(t,e){H(e,!0);let i=f(()=>fn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=y0();b(o,a)},$$slots:{default:!0}}),F()}var x0=k('<div class="timer s-1a"><canvas class="timer-canvas s-1a" width="100" height="100"></canvas> <!></div>'),w0={hash:"s-1a",code:".timer.s-1a{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-1a:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1a{height:50px;position:absolute;width:50px}"};function pc(t,e){H(e,!0),Q(t,w0);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,yb.noop),r=5e3,a=K(void 0),l,d,s=0,u;Fe(()=>{i()&&kt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),i()&&(u=(Date.now()-d)/r,u<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*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Vt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),pn(()=>{m()});var v=x0(),$=C(v);it($,g=>O(a,g),()=>n(a));var y=P($,2);_r(y,{get size(){return"24"}}),S(v),b(t,v),F()}var S0=(t,e,i)=>{e(!1),i()},C0=k('<div class="overlay s-14"></div> <div class="next-video s-14"><div class="top s-14"><div class="caption s-14"> </div> <!></div> <div class="row s-14"><div class="column s-14"><div class="thumb s-14"><div></div> <!></div></div> <div class="column s-14"><div class="title s-14"> </div></div></div></div>',1),T0={hash:"s-14",code:".overlay.s-14{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-14{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-14{display:flex;justify-content:space-between}.caption.s-14{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-14{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-14{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-14{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-14,.thumb-overlay.s-14{height:100%;width:100%}.thumb-overlay.s-14{position:absolute}.thumb-overlay.withOpacity.s-14{background:var(--black);opacity:.3}.title.s-14{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function bm(t,e){H(e,!0),Q(t,T0);let[i,o]=Be(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ye(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},g=()=>{e.clickCloseIcon(),$()};Vt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Re(),I=se(x);{var T=D=>{var A=C0(),E=P(se(A),2),V=C(E),q=C(V),L=C(q,!0);S(q);var z=P(q,2);Fs(z,{onClick:g}),S(V);var j=P(V,2);j.__click=[S0,u,p];var te=C(j),ee=C(te),oe=C(ee);let ae;var le=P(oe,2);{var ce=de=>{let ze=f(()=>a()&&r());pc(de,{get isRunning(){return n(ze)},onTimerEnded:y})};M(le,de=>{r()&&de(ce)})}S(ee),S(te);var X=P(te,2),_e=C(X),Ee=C(_e,!0);S(_e),S(X),S(j),S(E),N((de,ze)=>{ge(L,de),Ke(ee,`background-image: url('${e.thumb}')`),ae=ie(oe,1,"thumb-overlay s-14",null,ae,ze),ge(Ee,e.title)},[()=>G("end_screen_next_video"),()=>({withOpacity:r()})]),b(D,A)};M(I,D=>{e.isHide||D(T)})}b(t,x),F(),o()}tt(["click"]);var va=require("@vkontakte/videoplayer-core/es2015"),xb=require("@vkontakte/videoplayer-shared/es2015"),Dn=require("@vkontakte/videoplayer-statistics/es2015");var $m=(t,e)=>Math.min(+(t+e).toFixed(2),1),ym=(t,e)=>Math.max(+(t-e).toFixed(2),0),tp=(t,e,i)=>{let o=$m(e,i);e<1&&t.actions.internal.setVolume(o)},ip=(t,e,i)=>{let o=ym(e,i);e>0&&t.actions.internal.setVolume(o)};var ma=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function op(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var E0=(t,e)=>{e(t)},P0=k('<div class="keyboard-controls s-u" tabindex="-1" role="region"><!></div>'),A0={hash:"s-u",code:".keyboard-controls.s-u{bottom:0;left:0;position:absolute;right:0;top:0}"};function xm(t,e){var je,Ue;H(e,!0),Q(t,A0);let[i,o]=Be(),r=()=>w(te,"$isMinimalView$",i),a=()=>w(ze,"$availableSubtitlesList$",i),l=()=>w(_e,"$disabledControls$",i),d=()=>w(Qe,"$isInteractiveTime$",i),s=()=>w(Te,"$showInteractiveTimeIndicatorTooltip$",i),u=()=>w(ee,"$playbackState$",i),m=()=>w(nt,"$isEnded$",i),p=()=>w(me,"$doubleForwardAvailable$",i),v=()=>w(fe,"$doubleForwardOn$",i),$=()=>w(Me,"$overlayContainer$",i),y=()=>w(ae,"$adPlaybackState",i),g=()=>w(le,"$positionExact$",i),x=()=>w(ce,"$duration$",i),I=()=>w(Ce,"$isAudioAvailable$",i),T=()=>w(X,"$volume$",i),D=()=>w(oe,"$canChangePlaybackSpeed$",i),A=()=>w(Ee,"$muted$",i),E=()=>w(de,"$currentSubtitle$",i),V=h(e,"hasNextVideo",3,!1),q=h(e,"hasPrevVideo",3,!1),L=ye(),z=Rt(),j=L.getLogger().createComponentLog("KeyboardControls component"),te=L.ui.isMinimalView$,ee=L.state.playbackState$,oe=L.state.canChangePlaybackSpeed$,ae=L.ads.playbackState,le=L.state.positionExact$,ce=L.state.duration$,X=L.state.volume$,_e=L.ui.controls.disabledControls$,Ee=L.state.muted$,de=L.state.currentSubtitle$,ze=L.state.availableSubtitlesList$,ue=f(()=>!r()&&a().length>0),pe=L.ui.contextMenu.openedByHotKey$,Z=L.ui.contextMenu.lastActiveElem$,B=L.ui.contextMenu.visible$,fe=L.ui.doubleForwardOn$,me=L.ui.doubleForwardAvailable$,Ie=L.ui.contextMenu.position$,nt=L.state.isEnded$,Me=L.ui.overlayContainer$,be=(je=L.callbacks)==null?void 0:je.onAudioDoesNotExistHint,W=(Ue=L.callbacks)==null?void 0:Ue.onAudioDisabledHint,Ce=L.state.isAudioAvailable$,ke=L.state.isAudioDisabled,Qe=L.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Te}=To(),we=0,He=!0,at=K(void 0),pt=xe=>(xe!==He&&(He=xe,we=0),we+=1,(z.controls.seekStepKeyboard+z.controls.seekStepKeyboard*we)/1e3),Pt=!0,dt=()=>{if(!l().has("PLAY_BUTTON"))if(d()&&s()&&Te.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{L.actions.internal.togglePlay();let xe="PLAY";u()===va.PlaybackState.PAUSED?xe="PAUSE":m()&&(xe="REPLAY"),e.showHotKeyHelpers({type:xe})}},ai=xe=>{if(!p()||!xe&&v()){dt(),e.stopDoubleForward(),Pt=!0;return}Pt=!1,!xe&&e.startDoubleForwardActivationTimer()},Tt=()=>{Pt||(v()||dt(),e.stopDoubleForward(),Pt=!0)},Ot=xe=>{xe!=="Space"&&e.stopDoubleForward()},Nt=xe=>{let Bt=bb($());Ie.set(Bt),Z.set(xe.target),pe.set(!0),B.set(!0)},qt=(xe,Bt=!1)=>{var We,rt;let Et=xe.target,Gt=(We=Et==null?void 0:Et.getAttribute("role"))==null?void 0:We.includes("menuitem"),$i=Et.classList.contains("btn"),hi=xe.code;if($i&&hi==="Space")return!1;let Vi=x_.has(hi);if(Gt&&Vi)return!1;let io=!y_.has(hi);if(xe.ctrlKey&&io||xe.altKey&&io||xe.metaKey)return!1;let di=Gt&&hi==="Escape";w_.has(hi)||di||e.hideContextMenu();let Ti=u()===va.PlaybackState.PLAYING||u()===va.PlaybackState.PAUSED,oo=e.isAds&&(y()==="paused"||y()==="playing"),Ri=!oo&&!l().has("TIMELINE"),ci=xe.shiftKey&&["Digit1","Numpad1"].includes(hi);if(!ci&&!(Ti||oo))return!1;j({message:`key down, code: ${hi}, isExternal = ${Bt}`});let Ki=!1,$t=()=>{Ki=!0,Bt||xe.preventDefault()};if(Ot(hi),ci)return Nt(xe),$t(),!0;switch(hi){case"KeyJ":case"ArrowLeft":{if(!Ri)break;if(xe.ctrlKey||xe.altKey){let ft=L.actions.internal.getPrevEpisode();L.actions.internal.seekToPrevEpisode(ft),ft&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ft.text}),$t()}else{let ft=xe.shiftKey?pt(!1):z.controls.seekStepKeyboard/1e3,pi=Math.max(g()-ft,0);g()>0&&(L.actions.internal.seekTime(pi,Dn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ft.toString()}),$t())}break}case"KeyL":case"ArrowRight":{if(!Ri)break;if(xe.ctrlKey||xe.altKey){let ft=L.actions.internal.getNextEpisode();L.actions.internal.seekToNextEpisode(ft),ft&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ft.text}),$t()}else{let ft=xe.shiftKey?pt(!0):z.controls.seekStepKeyboard/1e3,pi=Math.min(g()+ft,x());Math.round(g())<Math.round(x())&&(L.actions.internal.seekTime(pi,Dn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ft.toString()}),$t())}break}case"ArrowUp":{if(ma({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})){let ft=T(),pi=z.controls.volumeStepKeyboard,qi=ft<=1;if(tp(L,ft,pi),qi){let no=Math.round($m(ft,pi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:no}})}}$t();break}case"ArrowDown":{if(ma({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})){let ft=T(),pi=z.controls.volumeStepKeyboard,qi=ft>=0;if(ip(L,ft,pi),qi){let no=Math.round(ym(ft,pi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:no}})}}$t();break}case"Comma":{if(xe.shiftKey){if(!v()&&D()){let ft=L.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:ft==null?void 0:ft.displayValue}),$t()}}else{if(oo||u()!==va.PlaybackState.PAUSED)break;let ft=Math.max(g()-z.controls.seekStepFrame/1e3,0);g()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(ft,Dn.SeekAction.DOUBLE_TAP),$t())}break}case"Period":{if(xe.shiftKey){if(!v()&&D()){let ft=L.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:ft==null?void 0:ft.displayValue}),$t()}}else{if(oo||u()!==va.PlaybackState.PAUSED)break;let ft=Math.min(g()+z.controls.seekStepFrame/1e3,x());g()<x()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(ft,Dn.SeekAction.DOUBLE_TAP),$t())}break}case"KeyK":dt(),$t();break;case"Space":ai(xe.repeat),$t();break;case"KeyM":{ma({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})&&(e.showHotKeyHelpers({type:A()?"VOLUME":"MUTE"}),L.actions.internal.toggleMuted()),$t();break}case"KeyF":e.toggleFullscreen(),$t();break;case"KeyC":if(!n(ue))break;L.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(rt=E())==null?void 0:rt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),$t();break;case"KeyI":L.actions.internal.togglePictureInPicture(),$t();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.1,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.2,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.3,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.4,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.5,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.6,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.7,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.8,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.9,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(0,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Slash":{xe.shiftKey&&z.features.hotKeyMapModal&&(e.showKeyMap(),$t());break}case"KeyN":xe.shiftKey&&V()&&!r()&&(L.actions.internal.nextVideoClick(),$t());break;case"KeyP":xe.shiftKey&&q()&&!r()&&(L.actions.internal.prevVideoClick(),$t());break;case"ShiftLeft":case"ShiftRight":$t();break;case"Tab":case"Escape":case"Enter":break;default:(0,xb.checkNever)(hi);break}return Ki},Le=xe=>{let Bt=xe.code;if(xe.ctrlKey||xe.altKey||xe.metaKey)return;let Et=u()===va.PlaybackState.PLAYING||u()===va.PlaybackState.PAUSED,Gt=e.isAds&&(y()==="paused"||y()==="playing");if(Et||Gt)switch(Bt){case"ShiftLeft":case"ShiftRight":we=0;break;case"Space":Tt();break}},Y=G("aria_label_video_player"),Oe=()=>{var xe;return(xe=n(at))==null?void 0:xe.focus()},$e=()=>n(at)===op(),Ne=xe=>xe.type==="keydown"?qt(xe,!0):(xe.type==="keyup"&&Le(xe),!1);var vt=P0();vt.__keyup=Le,vt.__keydown=[E0,qt];var At=C(vt);ii(At,()=>{var xe;return(xe=e.children)!=null?xe:wt}),S(vt),it(vt,xe=>O(at,xe),()=>n(at)),N(()=>De(vt,"aria-label",Y)),b(t,vt);var Se=F({focus:Oe,isFocused:$e,handleExternalKeyboardEvent:Ne});return o(),Se}tt(["keyup","keydown"]);var k0=k('<div class="container s-j"><div class="dot s-j"></div> <div class="dot s-j"></div> <div class="dot s-j"></div></div>'),L0={hash:"s-j",code:".container.s-j{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-j:first-child{animation-delay:0s}.dot.s-j:nth-child(2){animation-delay:.18s}.dot.s-j:nth-child(3){animation-delay:.36s}@keyframes s-j-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-j{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-j-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-j+.dot:where(.s-j){margin-left:4px}"};function ja(t,e){Q(t,L0);let i=h(e,"style",3,"");var o=k0();N(()=>Ke(o,i())),b(t,o)}var M0=Ae('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function wm(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=M0();b(i,r)},$$slots:{default:!0}})}var Xa=require("@vkontakte/videoplayer-shared/es2015"),V0=t=>{t.stopPropagation()},R0=k("<button><!></button>"),D0={hash:"s-1n",code:"button.btn.s-1n{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1n{width:100%}button.btn--live.s-1n{padding:10px 4px}button.btn-jc-l.s-1n{justify-content:left}button.btn-m.s-1n{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1n,button.btn-m--play.s-1n{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1n{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1n,button.btn-m--prev.s-1n{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1n{right:calc(100% + 35px)}button.btn-m--next.s-1n{left:calc(100% + 35px)}button.btn.s-1n:disabled{cursor:default;pointer-events:none}button.btn.s-1n:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1n:not(:disabled):hover{opacity:.8}button.pr-0.s-1n{padding-right:0}button.pl-0.s-1n{padding-left:0}"};function Ut(t,e){H(e,!0),Q(t,D0);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),a=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),s=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),m=h(e,"ariaExpanded",3,void 0),p=h(e,"tabIndex",3,0),v=h(e,"click",3,Xa.noop),$=h(e,"focus",3,Xa.noop),y=h(e,"blur",3,Xa.noop),g=f(()=>v()===Xa.noop?null:A=>{A.stopPropagation(),v()(A)}),x=f(()=>$()===Xa.noop?null:A=>{A.preventDefault(),$()()}),I=f(()=>y()===Xa.noop?null:A=>{A.preventDefault(),y()()});var T=R0();T.__pointerdown=[V0],T.__click=function(...A){var E;(E=n(g))==null||E.apply(this,A)};var D=C(T);ii(D,()=>{var A;return(A=e.children)!=null?A:wt}),S(T),it(T,A=>s(A),()=>s()),N(()=>{var A,E,V,q,L,z,j,te;ie(T,1,`btn ${(A=i())!=null?A:""}`,"s-1n"),Ke(T,o()||null),T.disabled=(E=r())!=null?E:null,De(T,"aria-hidden",(V=l())!=null?V:null),De(T,"aria-label",(q=d())!=null?q:null),De(T,"aria-keyshortcuts",(L=u())!=null?L:null),De(T,"aria-expanded",(z=m())!=null?z:null),De(T,"data-testid",(j=a())!=null?j:null),De(T,"tabindex",p()),De(T,"role",e.role),De(T,"aria-checked",(te=e.areaChecked)!=null?te:null)}),bt("focus",T,function(...A){var E;(E=n(x))==null||E.apply(this,A)}),bt("blur",T,function(...A){var E;(E=n(I))==null||E.apply(this,A)}),b(t,T),F()}tt(["pointerdown","click"]);var O0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},N0=k('<div class="modal-header s-1f"><h3 class="modal-title s-1f"> </h3> <!></div>'),B0=k('<div class="modal-overlay s-1f"><div class="modal-container s-1f" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1f" tabindex="0" role="scrollbar"><div class="modal-main s-1f"><!></div></div></div></div>'),H0={hash:"s-1f",code:'.modal-overlay.s-1f{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-1f{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-1f{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-1f{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-1f{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1f::-webkit-scrollbar{width:8px}.modal-scroll.s-1f::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1f::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1f::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1f{margin:-8px -4px 0 0}'};function Sm(t,e){H(e,!0),Q(t,H0);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=ye(),d=G("hotkey_map_modal_close_btn_text");Vt(()=>{var g;return(g=n(r))==null||g.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=B0();s.__keydown=[O0,e];var u=C(s),m=C(u);{var p=g=>{var x=N0(),I=C(x),T=C(I,!0);S(I);var D=P(I,2);{var A=E=>{Ut(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(V,q)=>{wm(V,{fill:"currentColor"})},$$slots:{default:!0}})};M(D,E=>{o()&&E(A)})}S(x),N(()=>ge(T,e.title)),b(g,x)};M(m,g=>{i()&&g(p)})}var v=P(m,2),$=C(v),y=C($);ii(y,()=>{var g;return(g=e.children)!=null?g:wt}),S($),S(v),it(v,g=>O(r,g),()=>n(r)),S(u),it(u,g=>O(a,g),()=>n(a)),S(s),b(t,s),F()}tt(["keydown"]);var F0=new Set(["BR"]),wb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;F0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var U0=k('<li class="hot-key-map-item s-x"><span class="hot-key-map-item-description s-x"><!></span> &nbsp; <span class="hot-key-map-item-value s-x"> </span></li>'),z0=k('<div class="hot-key-map-group s-x"><h5 class="hot-key-map-group-title s-x"> </h5> <ul class="hot-key-map-group-items s-x"></ul></div>'),W0=k('<div class="hot-key-map s-x"></div>'),K0={hash:"s-x",code:'.hot-key-map.s-x{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-x{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-x:last-child{border-bottom:none}.hot-key-map-group-title.s-x{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.s-x,.hot-key-map-item.s-x{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-x{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-x{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.s-x{color:var(--white-alpha-72);max-width:388px;width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left))}.hot-key-map-item-value.s-x{color:var(--white);letter-spacing:-.14px;padding-left:var(--videoplayer-hotkey-item-value-padding-left);width:var(--videoplayer-hotkey-item-value-width)}.hot-key-map-item-description.s-x,.hot-key-map-item-value.s-x{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Cm(t,e){H(e,!1),Q(t,K0);let[i,o]=Be(),r=()=>w(l,"$data",i),a=ye(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};rn(),Sm(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=W0();Ci(p,5,()=>r().groups,({title:v,items:$})=>v,(v,$)=>{let y=()=>n($).title,g=()=>n($).items;var x=z0(),I=C(x),T=C(I,!0);S(I);var D=P(I,2);Ci(D,5,g,({description:A,value:E})=>E,(A,E)=>{let V=()=>n(E).description,q=()=>n(E).value;var L=U0(),z=C(L),j=C(z);Kd(j,()=>wb(V())),S(z);var te=P(z,2),ee=C(te,!0);S(te),S(L),N(()=>ge(ee,q())),b(A,L)}),S(D),S(x),N(()=>ge(T,y())),b(v,x)}),S(p),b(u,p)},$$slots:{default:!0}}),F(),o()}var kv=require("@vkontakte/videoplayer-shared/es2015");var sl=require("@vkontakte/videoplayer-core/es2015");var Sb=require("@vkontakte/videoplayer-shared/es2015");var q0=k('<div class="pillow s-1x"><!></div>'),Q0={hash:"s-1x",code:".pillow.s-1x{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function Tm(t,e){Q(t,Q0);var i=q0(),o=C(i);ii(o,()=>{var r;return(r=e.children)!=null?r:wt}),S(i),N(()=>De(i,"data-testid",e.testId)),b(t,i)}var id=require("@vkontakte/videoplayer-shared/es2015");var G0=Ae('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function Im(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=G0();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var Y0=Ae('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function Em(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Y0();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var j0=Ae('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function Pm(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=j0();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var X0=Ae('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function Am(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=X0();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var Z0=Ae('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function km(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Z0();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var np=t=>{switch(t){case id.VideoQuality.Q_720P:return Pm;case id.VideoQuality.Q_1080P:return Am;case id.VideoQuality.Q_1440P:return km;case id.VideoQuality.Q_2160P:return Im;case id.VideoQuality.Q_4320P:return Em}};var J0=Ae('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 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>');function Lm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=J0();b(i,r)},$$slots:{default:!0}})}var ex=Ae('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Mm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=ex();b(i,r)},$$slots:{default:!0}})}var tx=k('<div aria-hidden="true"><!> <!></div>'),ix={hash:"s-1u",code:".icon.s-1u{display:flex;height:24px;position:relative;width:24px}.icon.s-1u .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1u .pillow{right:-13px}.icon.s-1u svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function fc(t,e){H(e,!0),Q(t,ix);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=f(()=>o()?(0,Sb.getVideoQualityLabel)(o()):""),a=f(()=>np(o())),l=f(()=>n(r).length>2);var d=Re(),s=se(d);{var u=p=>{Lm(p,{testId:"settings-mobile-icon"})},m=p=>{var v=tx();let $;var y=C(v);{var g=T=>{let D=f(()=>`${n(r)}-pill-icon`);Tm(T,{get testId(){return n(D)},children:(A,E)=>{var V=Re(),q=se(V);Wi(q,()=>n(a),(L,z)=>{z(L,{})}),b(A,V)},$$slots:{default:!0}})};M(y,T=>{n(a)&&T(g)})}var x=P(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Mm(x,{get testId(){return n(I)}}),S(v),N(T=>$=ie(v,1,"icon s-1u",null,$,T),[()=>({triple:n(l)})]),b(p,v)};M(s,p=>{i()?p(u):p(m,!1)})}b(t,d),F()}var ox=k('<span class="settings-icon-wrapper s-1z"><!></span>'),nx={hash:"s-1z",code:".settings-icon-wrapper.s-1z{height:24px;position:relative;width:24px}"};function od(t,e){H(e,!0),Q(t,nx);let[i,o]=Be(),r=()=>w(u,"$settingsMenuVisible",i),a=()=>w(v,"$isMobile",i),l=()=>w(s,"$currentQuality",i),d=ye(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,$=d.ui.t,y=K(void 0);Fe(()=>{n(y)&&kt(()=>{e.ref$.set(n(y))})});let g=$("aria_label_settings");function x(T){return xt(this,null,function*(){let D=fa(T);r()?p():m(D,yo)})}let I=f(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return g},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){O(y,T,!0)},children:(T,D)=>{var A=ox(),E=C(A);fc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),b(T,A)},$$slots:{default:!0}}),F(),o()}var rx=Ae('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.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"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),sx=Ae("<path></path>");function ga(t,e){H(e,!0);let i=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>fn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Re(),d=se(l);{var s=m=>{var p=rx();Jt(),b(m,p)},u=m=>{var p=sx();N(()=>De(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
56
+ Audio: ${(vt=n(s).audioCodec||"")!=null?vt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b(Le,Y)};M(X,Le=>{(n(s).videoCodec||n(s).audioCodec)&&Le(_e)})}var Ee=P(X,2);{var de=Le=>{var Y=ry(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).viewport)),b(Le,Y)};M(Ee,Le=>{n(s).viewport&&Le(de)})}var ze=P(Ee,2);{var ue=Le=>{var Y=sy(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).videoSize)),b(Le,Y)};M(ze,Le=>{n(s).videoSize&&Le(ue)})}var pe=P(ze,2);{var Z=Le=>{var Y=ay(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(()=>ge($e,n(s).cdn)),b(Le,Y)};M(pe,Le=>{n(s).cdn&&Le(Z)})}var B=P(pe,2);{var fe=Le=>{var Y=ly(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(()=>{var Ne;return ge($e,`${(Ne=n(s).volume)!=null?Ne:""} %`)}),b(Le,Y)};M(B,Le=>{n(s).volume&&Le(fe)})}var me=P(B,2);{var Ie=Le=>{var Y=dy(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(Ne=>ge($e,`${Ne!=null?Ne:""} s`),[()=>n(s).position.toFixed(2)]),b(Le,Y)};M(me,Le=>{n(s).position&&Le(Ie)})}var nt=P(me,2);{var Me=Le=>{var Y=cy(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(Ne=>ge($e,`${Ne!=null?Ne:""} s`),[()=>n(s).buffer.toFixed(2)]),b(Le,Y)};M(nt,Le=>{n(s).buffer&&Le(Me)})}var be=P(nt,2);{var W=Le=>{var Y=uy(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(Ne=>ge($e,`${Ne!=null?Ne:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),b(Le,Y)};M(be,Le=>{n(s).nativeBuffer&&Le(W)})}var Ce=P(be,2);{var ke=Le=>{var Y=py(),Oe=P(C(Y),2),$e=C(Oe);S(Oe),S(Y),N(Ne=>ge($e,`${Ne!=null?Ne:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b(Le,Y)};M(Ce,Le=>{n(s).liveLatency&&Le(ke)})}var Qe=P(Ce,2);{var Te=Le=>{var Y=fy(),Oe=P(C(Y),2),$e=C(Oe,!0);S(Oe),S(Y),N(Ne=>ge($e,Ne),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ne})=>Ne).map(({value:Ne,title:vt})=>`${vt} ${((Ne!=null?Ne:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Le,Y)};M(Qe,Le=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Le(Te)})}var we=P(Qe,2),He=P(C(we),2),at=C(He);S(He),S(we);var pt=P(we,2);{var Pt=Le=>{var Y=my(),Oe=P(C(Y),2);cc(Oe,{get values(){return n(I)}});var $e=P(Oe,2),Ne=C($e);S($e),S(Y),N(vt=>ge(Ne,`${vt!=null?vt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b(Le,Y)};M(pt,Le=>{n(s).speed&&Le(Pt)})}var dt=P(pt,2);{var ai=Le=>{var Y=vy(),Oe=P(C(Y),2);cc(Oe,{get values(){return n(T)}});var $e=P(Oe,2),Ne=C($e);S($e),S(Y),N(vt=>ge(Ne,`${vt!=null?vt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b(Le,Y)};M(dt,Le=>{n(s).bitrate&&Le(ai)})}var Tt=P(dt,2),Ot=P(C(Tt),2);cc(Ot,{get values(){return n(x)}});var Nt=P(Ot,2),qt=C(Nt,!0);S(Nt),S(Tt),S(q),S(A),N(Le=>{var Y,Oe;E=ie(A,1,"container s-l",null,E,Le),De(A,"aria-label",D),ge(j,n(s).version),ge(at,`${(Y=n(p))!=null?Y:""} / ${(Oe=n(m))!=null?Oe:""} frames`),ge(qt,n(v))},[()=>({"container-mobile":r()})]),b(t,A),F(),o()}tt(["click"]);var $b=require("@vkontakte/videoplayer-shared/es2015"),_y=(t,e)=>{t.stopPropagation(),e()()},by=k('<div class="close s-1c"></div>'),$y={hash:"s-1c",code:'.close.s-1c{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1c:hover{opacity:1}.close.s-1c:after,.close.s-1c:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1c:before{transform:rotate(45deg)}.close.s-1c:after{transform:rotate(-45deg)}'};function Fs(t,e){H(e,!0),Q(t,$y);let i=h(e,"onClick",3,$b.noop);var o=by();o.__click=[_y,i],b(t,o),F()}tt(["click"]);var yb=require("@vkontakte/videoplayer-shared/es2015");var fn=t=>`width:${t}px;height:${t}px;`;var yy=Ae('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function _r(t,e){H(e,!0);let i=f(()=>fn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=yy();b(o,a)},$$slots:{default:!0}}),F()}var xy=k('<div class="timer s-1b"><canvas class="timer-canvas s-1b" width="100" height="100"></canvas> <!></div>'),wy={hash:"s-1b",code:".timer.s-1b{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-1b:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1b{height:50px;position:absolute;width:50px}"};function pc(t,e){H(e,!0),Q(t,wy);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,yb.noop),r=5e3,a=K(void 0),l,d,s=0,u;Fe(()=>{i()&&kt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),i()&&(u=(Date.now()-d)/r,u<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*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Vt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),pn(()=>{m()});var v=xy(),$=C(v);it($,g=>O(a,g),()=>n(a));var y=P($,2);_r(y,{get size(){return"24"}}),S(v),b(t,v),F()}var Sy=(t,e,i)=>{e(!1),i()},Cy=k('<div class="overlay s-r"></div> <div class="next-video s-r"><div class="top s-r"><div class="caption s-r"> </div> <!></div> <div class="row s-r"><div class="column s-r"><div class="thumb s-r"><div></div> <!></div></div> <div class="column s-r"><div class="title s-r"> </div></div></div></div>',1),Ty={hash:"s-r",code:".overlay.s-r{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-r{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-r{display:flex;justify-content:space-between}.caption.s-r{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-r{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-r{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-r{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-r,.thumb-overlay.s-r{height:100%;width:100%}.thumb-overlay.s-r{position:absolute}.thumb-overlay.withOpacity.s-r{background:var(--black);opacity:.3}.title.s-r{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function bm(t,e){H(e,!0),Q(t,Ty);let[i,o]=Be(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ye(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},g=()=>{e.clickCloseIcon(),$()};Vt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Re(),I=se(x);{var T=D=>{var A=Cy(),E=P(se(A),2),V=C(E),q=C(V),L=C(q,!0);S(q);var z=P(q,2);Fs(z,{onClick:g}),S(V);var j=P(V,2);j.__click=[Sy,u,p];var te=C(j),ee=C(te),oe=C(ee);let ae;var le=P(oe,2);{var ce=de=>{let ze=f(()=>a()&&r());pc(de,{get isRunning(){return n(ze)},onTimerEnded:y})};M(le,de=>{r()&&de(ce)})}S(ee),S(te);var X=P(te,2),_e=C(X),Ee=C(_e,!0);S(_e),S(X),S(j),S(E),N((de,ze)=>{ge(L,de),Ke(ee,`background-image: url('${e.thumb}')`),ae=ie(oe,1,"thumb-overlay s-r",null,ae,ze),ge(Ee,e.title)},[()=>G("end_screen_next_video"),()=>({withOpacity:r()})]),b(D,A)};M(I,D=>{e.isHide||D(T)})}b(t,x),F(),o()}tt(["click"]);var va=require("@vkontakte/videoplayer-core/es2015"),xb=require("@vkontakte/videoplayer-shared/es2015"),Dn=require("@vkontakte/videoplayer-statistics/es2015");var $m=(t,e)=>Math.min(+(t+e).toFixed(2),1),ym=(t,e)=>Math.max(+(t-e).toFixed(2),0),tp=(t,e,i)=>{let o=$m(e,i);e<1&&t.actions.internal.setVolume(o)},ip=(t,e,i)=>{let o=ym(e,i);e>0&&t.actions.internal.setVolume(o)};var ma=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function op(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var Ey=(t,e)=>{e(t)},Py=k('<div class="keyboard-controls s-o" tabindex="-1" role="region"><!></div>'),Ay={hash:"s-o",code:".keyboard-controls.s-o{bottom:0;left:0;position:absolute;right:0;top:0}"};function xm(t,e){var je,Ue;H(e,!0),Q(t,Ay);let[i,o]=Be(),r=()=>w(te,"$isMinimalView$",i),a=()=>w(ze,"$availableSubtitlesList$",i),l=()=>w(_e,"$disabledControls$",i),d=()=>w(Qe,"$isInteractiveTime$",i),s=()=>w(Te,"$showInteractiveTimeIndicatorTooltip$",i),u=()=>w(ee,"$playbackState$",i),m=()=>w(nt,"$isEnded$",i),p=()=>w(me,"$doubleForwardAvailable$",i),v=()=>w(fe,"$doubleForwardOn$",i),$=()=>w(Me,"$overlayContainer$",i),y=()=>w(ae,"$adPlaybackState",i),g=()=>w(le,"$positionExact$",i),x=()=>w(ce,"$duration$",i),I=()=>w(Ce,"$isAudioAvailable$",i),T=()=>w(X,"$volume$",i),D=()=>w(oe,"$canChangePlaybackSpeed$",i),A=()=>w(Ee,"$muted$",i),E=()=>w(de,"$currentSubtitle$",i),V=h(e,"hasNextVideo",3,!1),q=h(e,"hasPrevVideo",3,!1),L=ye(),z=Rt(),j=L.getLogger().createComponentLog("KeyboardControls component"),te=L.ui.isMinimalView$,ee=L.state.playbackState$,oe=L.state.canChangePlaybackSpeed$,ae=L.ads.playbackState,le=L.state.positionExact$,ce=L.state.duration$,X=L.state.volume$,_e=L.ui.controls.disabledControls$,Ee=L.state.muted$,de=L.state.currentSubtitle$,ze=L.state.availableSubtitlesList$,ue=f(()=>!r()&&a().length>0),pe=L.ui.contextMenu.openedByHotKey$,Z=L.ui.contextMenu.lastActiveElem$,B=L.ui.contextMenu.visible$,fe=L.ui.doubleForwardOn$,me=L.ui.doubleForwardAvailable$,Ie=L.ui.contextMenu.position$,nt=L.state.isEnded$,Me=L.ui.overlayContainer$,be=(je=L.callbacks)==null?void 0:je.onAudioDoesNotExistHint,W=(Ue=L.callbacks)==null?void 0:Ue.onAudioDisabledHint,Ce=L.state.isAudioAvailable$,ke=L.state.isAudioDisabled,Qe=L.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Te}=To(),we=0,He=!0,at=K(void 0),pt=xe=>(xe!==He&&(He=xe,we=0),we+=1,(z.controls.seekStepKeyboard+z.controls.seekStepKeyboard*we)/1e3),Pt=!0,dt=()=>{if(!l().has("PLAY_BUTTON"))if(d()&&s()&&Te.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{L.actions.internal.togglePlay();let xe="PLAY";u()===va.PlaybackState.PAUSED?xe="PAUSE":m()&&(xe="REPLAY"),e.showHotKeyHelpers({type:xe})}},ai=xe=>{if(!p()||!xe&&v()){dt(),e.stopDoubleForward(),Pt=!0;return}Pt=!1,!xe&&e.startDoubleForwardActivationTimer()},Tt=()=>{Pt||(v()||dt(),e.stopDoubleForward(),Pt=!0)},Ot=xe=>{xe!=="Space"&&e.stopDoubleForward()},Nt=xe=>{let Bt=bb($());Ie.set(Bt),Z.set(xe.target),pe.set(!0),B.set(!0)},qt=(xe,Bt=!1)=>{var We,rt;let Et=xe.target,Gt=(We=Et==null?void 0:Et.getAttribute("role"))==null?void 0:We.includes("menuitem"),$i=Et.classList.contains("btn"),hi=xe.code;if($i&&hi==="Space")return!1;let Vi=x_.has(hi);if(Gt&&Vi)return!1;let io=!y_.has(hi);if(xe.ctrlKey&&io||xe.altKey&&io||xe.metaKey)return!1;let di=Gt&&hi==="Escape";w_.has(hi)||di||e.hideContextMenu();let Ti=u()===va.PlaybackState.PLAYING||u()===va.PlaybackState.PAUSED,oo=e.isAds&&(y()==="paused"||y()==="playing"),Ri=!oo&&!l().has("TIMELINE"),ci=xe.shiftKey&&["Digit1","Numpad1"].includes(hi);if(!ci&&!(Ti||oo))return!1;j({message:`key down, code: ${hi}, isExternal = ${Bt}`});let Ki=!1,$t=()=>{Ki=!0,Bt||xe.preventDefault()};if(Ot(hi),ci)return Nt(xe),$t(),!0;switch(hi){case"KeyJ":case"ArrowLeft":{if(!Ri)break;if(xe.ctrlKey||xe.altKey){let ft=L.actions.internal.getPrevEpisode();L.actions.internal.seekToPrevEpisode(ft),ft&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ft.text}),$t()}else{let ft=xe.shiftKey?pt(!1):z.controls.seekStepKeyboard/1e3,pi=Math.max(g()-ft,0);g()>0&&(L.actions.internal.seekTime(pi,Dn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ft.toString()}),$t())}break}case"KeyL":case"ArrowRight":{if(!Ri)break;if(xe.ctrlKey||xe.altKey){let ft=L.actions.internal.getNextEpisode();L.actions.internal.seekToNextEpisode(ft),ft&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ft.text}),$t()}else{let ft=xe.shiftKey?pt(!0):z.controls.seekStepKeyboard/1e3,pi=Math.min(g()+ft,x());Math.round(g())<Math.round(x())&&(L.actions.internal.seekTime(pi,Dn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ft.toString()}),$t())}break}case"ArrowUp":{if(ma({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})){let ft=T(),pi=z.controls.volumeStepKeyboard,qi=ft<=1;if(tp(L,ft,pi),qi){let no=Math.round($m(ft,pi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:no}})}}$t();break}case"ArrowDown":{if(ma({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})){let ft=T(),pi=z.controls.volumeStepKeyboard,qi=ft>=0;if(ip(L,ft,pi),qi){let no=Math.round(ym(ft,pi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:no}})}}$t();break}case"Comma":{if(xe.shiftKey){if(!v()&&D()){let ft=L.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:ft==null?void 0:ft.displayValue}),$t()}}else{if(oo||u()!==va.PlaybackState.PAUSED)break;let ft=Math.max(g()-z.controls.seekStepFrame/1e3,0);g()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(ft,Dn.SeekAction.DOUBLE_TAP),$t())}break}case"Period":{if(xe.shiftKey){if(!v()&&D()){let ft=L.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:ft==null?void 0:ft.displayValue}),$t()}}else{if(oo||u()!==va.PlaybackState.PAUSED)break;let ft=Math.min(g()+z.controls.seekStepFrame/1e3,x());g()<x()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(ft,Dn.SeekAction.DOUBLE_TAP),$t())}break}case"KeyK":dt(),$t();break;case"Space":ai(xe.repeat),$t();break;case"KeyM":{ma({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})&&(e.showHotKeyHelpers({type:A()?"VOLUME":"MUTE"}),L.actions.internal.toggleMuted()),$t();break}case"KeyF":e.toggleFullscreen(),$t();break;case"KeyC":if(!n(ue))break;L.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(rt=E())==null?void 0:rt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),$t();break;case"KeyI":L.actions.internal.togglePictureInPicture(),$t();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.1,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.2,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.3,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.4,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.5,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.6,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.7,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.8,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.9,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(0,Dn.SeekAction.DOUBLE_TAP),$t();break;case"Slash":{xe.shiftKey&&z.features.hotKeyMapModal&&(e.showKeyMap(),$t());break}case"KeyN":xe.shiftKey&&V()&&!r()&&(L.actions.internal.nextVideoClick(),$t());break;case"KeyP":xe.shiftKey&&q()&&!r()&&(L.actions.internal.prevVideoClick(),$t());break;case"ShiftLeft":case"ShiftRight":$t();break;case"Tab":case"Escape":case"Enter":break;default:(0,xb.checkNever)(hi);break}return Ki},Le=xe=>{let Bt=xe.code;if(xe.ctrlKey||xe.altKey||xe.metaKey)return;let Et=u()===va.PlaybackState.PLAYING||u()===va.PlaybackState.PAUSED,Gt=e.isAds&&(y()==="paused"||y()==="playing");if(Et||Gt)switch(Bt){case"ShiftLeft":case"ShiftRight":we=0;break;case"Space":Tt();break}},Y=G("aria_label_video_player"),Oe=()=>{var xe;return(xe=n(at))==null?void 0:xe.focus()},$e=()=>n(at)===op(),Ne=xe=>xe.type==="keydown"?qt(xe,!0):(xe.type==="keyup"&&Le(xe),!1);var vt=Py();vt.__keyup=Le,vt.__keydown=[Ey,qt];var At=C(vt);ii(At,()=>{var xe;return(xe=e.children)!=null?xe:wt}),S(vt),it(vt,xe=>O(at,xe),()=>n(at)),N(()=>De(vt,"aria-label",Y)),b(t,vt);var Se=F({focus:Oe,isFocused:$e,handleExternalKeyboardEvent:Ne});return o(),Se}tt(["keyup","keydown"]);var ky=k('<div class="container s-10"><div class="dot s-10"></div> <div class="dot s-10"></div> <div class="dot s-10"></div></div>'),Ly={hash:"s-10",code:".container.s-10{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-10:first-child{animation-delay:0s}.dot.s-10:nth-child(2){animation-delay:.18s}.dot.s-10:nth-child(3){animation-delay:.36s}@keyframes s-10-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-10{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-10-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-10+.dot:where(.s-10){margin-left:4px}"};function ja(t,e){Q(t,Ly);let i=h(e,"style",3,"");var o=ky();N(()=>Ke(o,i())),b(t,o)}var My=Ae('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function wm(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=My();b(i,r)},$$slots:{default:!0}})}var Xa=require("@vkontakte/videoplayer-shared/es2015"),Vy=t=>{t.stopPropagation()},Ry=k("<button><!></button>"),Dy={hash:"s-1k",code:"button.btn.s-1k{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1k{width:100%}button.btn--live.s-1k{padding:10px 4px}button.btn-jc-l.s-1k{justify-content:left}button.btn-m.s-1k{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1k,button.btn-m--play.s-1k{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1k{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1k,button.btn-m--prev.s-1k{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1k{right:calc(100% + 35px)}button.btn-m--next.s-1k{left:calc(100% + 35px)}button.btn.s-1k:disabled{cursor:default;pointer-events:none}button.btn.s-1k:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1k:not(:disabled):hover{opacity:.8}button.pr-0.s-1k{padding-right:0}button.pl-0.s-1k{padding-left:0}"};function Ut(t,e){H(e,!0),Q(t,Dy);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),a=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),s=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),m=h(e,"ariaExpanded",3,void 0),p=h(e,"tabIndex",3,0),v=h(e,"click",3,Xa.noop),$=h(e,"focus",3,Xa.noop),y=h(e,"blur",3,Xa.noop),g=f(()=>v()===Xa.noop?null:A=>{A.stopPropagation(),v()(A)}),x=f(()=>$()===Xa.noop?null:A=>{A.preventDefault(),$()()}),I=f(()=>y()===Xa.noop?null:A=>{A.preventDefault(),y()()});var T=Ry();T.__pointerdown=[Vy],T.__click=function(...A){var E;(E=n(g))==null||E.apply(this,A)};var D=C(T);ii(D,()=>{var A;return(A=e.children)!=null?A:wt}),S(T),it(T,A=>s(A),()=>s()),N(()=>{var A,E,V,q,L,z,j,te;ie(T,1,`btn ${(A=i())!=null?A:""}`,"s-1k"),Ke(T,o()||null),T.disabled=(E=r())!=null?E:null,De(T,"aria-hidden",(V=l())!=null?V:null),De(T,"aria-label",(q=d())!=null?q:null),De(T,"aria-keyshortcuts",(L=u())!=null?L:null),De(T,"aria-expanded",(z=m())!=null?z:null),De(T,"data-testid",(j=a())!=null?j:null),De(T,"tabindex",p()),De(T,"role",e.role),De(T,"aria-checked",(te=e.areaChecked)!=null?te:null)}),bt("focus",T,function(...A){var E;(E=n(x))==null||E.apply(this,A)}),bt("blur",T,function(...A){var E;(E=n(I))==null||E.apply(this,A)}),b(t,T),F()}tt(["pointerdown","click"]);var Oy=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},Ny=k('<div class="modal-header s-19"><h3 class="modal-title s-19"> </h3> <!></div>'),By=k('<div class="modal-overlay s-19"><div class="modal-container s-19" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-19" tabindex="0" role="scrollbar"><div class="modal-main s-19"><!></div></div></div></div>'),Hy={hash:"s-19",code:'.modal-overlay.s-19{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-19{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-19{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-19{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-19{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-19::-webkit-scrollbar{width:8px}.modal-scroll.s-19::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-19::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-19::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-19{margin:-8px -4px 0 0}'};function Sm(t,e){H(e,!0),Q(t,Hy);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=ye(),d=G("hotkey_map_modal_close_btn_text");Vt(()=>{var g;return(g=n(r))==null||g.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=By();s.__keydown=[Oy,e];var u=C(s),m=C(u);{var p=g=>{var x=Ny(),I=C(x),T=C(I,!0);S(I);var D=P(I,2);{var A=E=>{Ut(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(V,q)=>{wm(V,{fill:"currentColor"})},$$slots:{default:!0}})};M(D,E=>{o()&&E(A)})}S(x),N(()=>ge(T,e.title)),b(g,x)};M(m,g=>{i()&&g(p)})}var v=P(m,2),$=C(v),y=C($);ii(y,()=>{var g;return(g=e.children)!=null?g:wt}),S($),S(v),it(v,g=>O(r,g),()=>n(r)),S(u),it(u,g=>O(a,g),()=>n(a)),S(s),b(t,s),F()}tt(["keydown"]);var Fy=new Set(["BR"]),wb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;Fy.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var Uy=k('<li class="hot-key-map-item s-m"><span class="hot-key-map-item-description s-m"><!></span> &nbsp; <span class="hot-key-map-item-value s-m"> </span></li>'),zy=k('<div class="hot-key-map-group s-m"><h5 class="hot-key-map-group-title s-m"> </h5> <ul class="hot-key-map-group-items s-m"></ul></div>'),Wy=k('<div class="hot-key-map s-m"></div>'),Ky={hash:"s-m",code:'.hot-key-map.s-m{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-m{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-m:last-child{border-bottom:none}.hot-key-map-group-title.s-m{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.s-m,.hot-key-map-item.s-m{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-m{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-m{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.s-m{color:var(--white-alpha-72);max-width:388px;width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left))}.hot-key-map-item-value.s-m{color:var(--white);letter-spacing:-.14px;padding-left:var(--videoplayer-hotkey-item-value-padding-left);width:var(--videoplayer-hotkey-item-value-width)}.hot-key-map-item-description.s-m,.hot-key-map-item-value.s-m{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Cm(t,e){H(e,!1),Q(t,Ky);let[i,o]=Be(),r=()=>w(l,"$data",i),a=ye(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};rn(),Sm(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=Wy();Ci(p,5,()=>r().groups,({title:v,items:$})=>v,(v,$)=>{let y=()=>n($).title,g=()=>n($).items;var x=zy(),I=C(x),T=C(I,!0);S(I);var D=P(I,2);Ci(D,5,g,({description:A,value:E})=>E,(A,E)=>{let V=()=>n(E).description,q=()=>n(E).value;var L=Uy(),z=C(L),j=C(z);Kd(j,()=>wb(V())),S(z);var te=P(z,2),ee=C(te,!0);S(te),S(L),N(()=>ge(ee,q())),b(A,L)}),S(D),S(x),N(()=>ge(T,y())),b(v,x)}),S(p),b(u,p)},$$slots:{default:!0}}),F(),o()}var kv=require("@vkontakte/videoplayer-shared/es2015");var sl=require("@vkontakte/videoplayer-core/es2015");var Sb=require("@vkontakte/videoplayer-shared/es2015");var qy=k('<div class="pillow s-26"><!></div>'),Qy={hash:"s-26",code:".pillow.s-26{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function Tm(t,e){Q(t,Qy);var i=qy(),o=C(i);ii(o,()=>{var r;return(r=e.children)!=null?r:wt}),S(i),N(()=>De(i,"data-testid",e.testId)),b(t,i)}var id=require("@vkontakte/videoplayer-shared/es2015");var Gy=Ae('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function Im(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var Yy=Ae('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function Em(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var jy=Ae('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function Pm(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=jy();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var Xy=Ae('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function Am(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var Zy=Ae('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function km(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var np=t=>{switch(t){case id.VideoQuality.Q_720P:return Pm;case id.VideoQuality.Q_1080P:return Am;case id.VideoQuality.Q_1440P:return km;case id.VideoQuality.Q_2160P:return Im;case id.VideoQuality.Q_4320P:return Em}};var Jy=Ae('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 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>');function Lm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=Jy();b(i,r)},$$slots:{default:!0}})}var ex=Ae('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Mm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=ex();b(i,r)},$$slots:{default:!0}})}var tx=k('<div aria-hidden="true"><!> <!></div>'),ix={hash:"s-1u",code:".icon.s-1u{display:flex;height:24px;position:relative;width:24px}.icon.s-1u .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1u .pillow{right:-13px}.icon.s-1u svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function fc(t,e){H(e,!0),Q(t,ix);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=f(()=>o()?(0,Sb.getVideoQualityLabel)(o()):""),a=f(()=>np(o())),l=f(()=>n(r).length>2);var d=Re(),s=se(d);{var u=p=>{Lm(p,{testId:"settings-mobile-icon"})},m=p=>{var v=tx();let $;var y=C(v);{var g=T=>{let D=f(()=>`${n(r)}-pill-icon`);Tm(T,{get testId(){return n(D)},children:(A,E)=>{var V=Re(),q=se(V);Wi(q,()=>n(a),(L,z)=>{z(L,{})}),b(A,V)},$$slots:{default:!0}})};M(y,T=>{n(a)&&T(g)})}var x=P(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Mm(x,{get testId(){return n(I)}}),S(v),N(T=>$=ie(v,1,"icon s-1u",null,$,T),[()=>({triple:n(l)})]),b(p,v)};M(s,p=>{i()?p(u):p(m,!1)})}b(t,d),F()}var ox=k('<span class="settings-icon-wrapper s-1x"><!></span>'),nx={hash:"s-1x",code:".settings-icon-wrapper.s-1x{height:24px;position:relative;width:24px}"};function od(t,e){H(e,!0),Q(t,nx);let[i,o]=Be(),r=()=>w(u,"$settingsMenuVisible",i),a=()=>w(v,"$isMobile",i),l=()=>w(s,"$currentQuality",i),d=ye(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,$=d.ui.t,y=K(void 0);Fe(()=>{n(y)&&kt(()=>{e.ref$.set(n(y))})});let g=$("aria_label_settings");function x(T){return xt(this,null,function*(){let D=fa(T);r()?p():m(D,yo)})}let I=f(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return g},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){O(y,T,!0)},children:(T,D)=>{var A=ox(),E=C(A);fc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),b(T,A)},$$slots:{default:!0}}),F(),o()}var rx=Ae('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.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"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),sx=Ae("<path></path>");function ga(t,e){H(e,!0);let i=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>fn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Re(),d=se(l);{var s=m=>{var p=rx();Jt(),b(m,p)},u=m=>{var p=sx();N(()=>De(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
57
57
  ${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
58
- M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(m,p)};M(d,m=>{e.type==="off"?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}}),F()}function Vm(t,e){H(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=ye().ui.t,a=f(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ut(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return ys.KeyC},role:"button",children:(l,d)=>{let s=f(()=>i()?void 0:"outline");ga(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),F()}var ax=k('<span class="duration s-1y" data-testid="video_duration"> </span>'),lx=k('<div data-testid="time"><span class="current s-1y" data-testid="current_time"> </span> <!></div>'),dx={hash:"s-1y",code:'.time.s-1y{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-1y{padding:0 0 0 8px}.current.s-1y{position:relative}.duration.s-1y{opacity:.7}.duration.s-1y:before{content:" / ";white-space:pre}'};function mc(t,e){H(e,!0),Q(t,dx);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),a=h(e,"ref",15),l=Rt(),d=re(!1),s=f(()=>sn(e.duration)),u=f(()=>sn(e.position));var m=lx();let p;var v=C(m),$=C(v,!0);S(v);var y=P(v,2);{var g=x=>{var I=ax(),T=C(I,!0);S(I),N(()=>ge(T,n(s))),b(x,I)};M(y,x=>{r()&&x(g)})}S(m),Ns(m,()=>jl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),it(m,x=>a(x),()=>a()),N(x=>{p=ie(m,1,"time s-1y",null,p,x),ge($,n(u))},[()=>({mobile:i()})]),b(t,m),F()}var gc=require("@vkontakte/videoplayer-shared/es2015");var cx=Ae('<path d="M21.8632 10.0832C22.2147 9.73171 22.7852 9.73171 23.1367 10.0832C23.4881 10.4347 23.4881 11.0051 23.1367 11.3566L18.6367 15.8566C18.2852 16.2081 17.7147 16.2081 17.3632 15.8566C17.0117 15.5051 17.0117 14.9347 17.3632 14.5832L21.8632 10.0832Z"></path><path d="M17.3632 11.3566C17.0117 11.0051 17.0117 10.4347 17.3632 10.0832C17.7147 9.73171 18.2852 9.73171 18.6367 10.0832L23.1367 14.5832C23.4881 14.9347 23.4881 15.5051 23.1367 15.8566C22.7852 16.2081 22.2147 16.2081 21.8632 15.8566L17.3632 11.3566Z"></path>',1),ux=Ae("<path></path>"),px=Ae('<path d="M14 3C14.5523 3 15 3.44772 15 4V20C15 20.5523 14.5523 21 14 21C13.3585 21 12.7422 20.7509 12.2808 20.3052L6.79013 15H4C2.89543 15 2 14.1046 2 13V11C2 9.89543 2.89543 9 4 9H6.765L12.2794 3.6934C12.7418 3.24852 13.3584 3 14 3Z"></path><!>',1);function ha(t,e){H(e,!0);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(u,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=f(()=>r(i(),o())),l=f(()=>fn(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",s="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";Ze(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,m)=>{var p=px(),v=P(se(p));{var $=g=>{var x=cx();Jt(),b(g,x)},y=g=>{var x=ux();N(()=>De(x,"d",`${d}${n(a)==="max"?s:""}`)),b(g,x)};M(v,g=>{n(a)==="off"?g($):g(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var Ho=require("@vkontakte/videoplayer-shared/es2015");var rp=require("@vkontakte/videoplayer-shared/es2015");var Cb=require("@vkontakte/videoplayer-shared/es2015");var fx=k('<div class="overlay"><!></div>');function Rm(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(l,"$overlayContainer$",i),l=ye().ui.overlayContainer$,d=K(void 0),s=v=>{!v||!n(d)||!v.contains(n(d))||v.removeChild(n(d))},u=v=>{!v||!n(d)||v.contains(n(d))||v.appendChild(n(d))};Fe(()=>{u(r())}),Vt(()=>(u(r()),()=>s(r())));var m=fx(),p=C(m);ii(p,()=>{var v;return(v=e.children)!=null?v:wt}),S(m),it(m,v=>O(d,v),()=>n(d)),b(t,m),F(),o()}var mx=k('<div class="tooltip s-1o"><div class="content s-1o"> </div> <div class="tooltip-pointer s-1o"></div></div>'),vx=k("<div><!></div> <!>",1),gx={hash:"s-1o",code:'.tooltip-wrapper.s-1o{display:flex;flex-direction:column;min-width:0}.full-width.s-1o{width:100%}.tooltip.s-1o{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1o{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1o{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Za(t,e){H(e,!0),Q(t,gx);let[i,o]=Be(),r=()=>w(j,"$overlayContainer$",i),a=()=>w(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),s=h(e,"active",15,!1),u=h(e,"translateX",3,0),m=h(e,"translateY",3,0),p=h(e,"isFullWidthWrapper",3,!1),v=h(e,"maxTooltipWidth",3,void 0),$=h(e,"placement",3,"top"),y=h(e,"onVisibilityChange",3,Cb.noop),g=5,x=K(void 0),I=K(void 0),T,D=K(0),A=K(0),E=K(0),V=K(0),q=Rt(),L=ye(),z=L.ui.playerSize,j=L.ui.overlayContainer$;Fe(()=>{kt(()=>{y()(s())})});let te=L.getLogger().createComponentLog("Tooltip component"),ee=be=>{if(!r()||!n(I)||!n(x))return;O(A,g);let W=r().getBoundingClientRect(),Ce=n(x).getBoundingClientRect(),ke=Ce.width,Qe=n(I).clientWidth,Te=a().width,we=(ke-Qe)/2,He=Ce.left+u()-W.left,at=He+we,pt=Ce.top+m()-W.top,Pt=Qe/2-g,dt=at<8,ai=at+Qe>Te-8;be==="top-left"&&(at=He),dt&&(at=8,Pt=He+Ce.width/2-2.5*g),ai&&(at=Te-8-Qe,Pt=Ce.left-W.left+Ce.width/2-at-g),O(E,at,!0),O(V,pt),O(D,Pt,!0)},oe=()=>{!r()||!n(I)||!n(x)||O(A,-g)},ae=()=>{if(!r()||!n(I)||!n(x))return;O(D,g);let be=r().getBoundingClientRect(),W=n(x).getBoundingClientRect(),Ce=W.height,ke=n(I).clientHeight,Qe=(Ce-ke)/2+ke,Te=W.left+u()-be.left-n(I).clientWidth,we=2,He=Te-g;He<8&&(He=8);let pt=W.top+m()-be.top+Qe,Pt=we-Qe/2,dt=we-g;O(E,He,!0),O(V,pt),O(A,Pt),O(D,dt)},le=()=>{!r()||!n(I)||!n(x)||O(D,-g)},ce=()=>{switch($()){case"top":ee();break;case"bottom":oe();break;case"left":ae();break;case"top-left":ee("top-left");break;default:le();break}},X=()=>{try{if(!r()||!n(x))return;ce(),s(!0)}catch(be){te({message:String(be)})}},_e=()=>{s(!1)},Ee=()=>{n(I)&&(T||(T=window.setTimeout(X,q.controls.hideTimeoutTooltips)),s()&&X())},de=()=>{_e(),window.clearTimeout(T),T=void 0},ze=(be,W,Ce)=>{let ke="";switch($()){case"top":ke=`transform: translate(${be}px, ${W}px);`;break;case"bottom":ke=`transform: translate(${be}px, ${W}px); top: auto; bottom: 100%;`;break;case"left":ke=`transform: translate(${be}px, ${W}px); left: 0; right: auto;`;break;default:ke=`transform: translate(${be}px, ${W}px);`}return ke+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,ke+=` opacity: ${Ce?1:0}; visibility: ${Ce?"visible":"hidden"}`,ke},ue=(be,W)=>{let Ce="";switch($()){case"top-left":case"top":Ce=`transform: translate(${be}px, ${W}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ce=`transform: translate(${be}px, ${W}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ce=`transform: translate(${be}px, ${W}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ce=`transform: translate(${be}px, ${W}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ce},pe=f(()=>ze(n(E),n(V),s())),Z=f(()=>ue(n(D),n(A)));Vt(ce),pn(()=>window.clearTimeout(T));var B=vx(),fe=se(B);let me;fe.__pointermove=Ee,fe.__pointerdown=de,fe.__pointerup=function(...be){var W;(W=e.disableMouseupTooltipShow?void 0:Ee)==null||W.apply(this,be)};var Ie=C(fe);ii(Ie,()=>{var be;return(be=e.children)!=null?be:wt}),S(fe),it(fe,be=>O(x,be),()=>n(x));var nt=P(fe,2);{var Me=be=>{Rm(be,{children:(W,Ce)=>{var ke=mx(),Qe=C(ke),Te=C(Qe,!0);S(Qe);var we=P(Qe,2);S(ke),it(ke,He=>O(I,He),()=>n(I)),N(()=>{Ke(ke,n(pe)),ge(Te,d()),Ke(we,n(Z))}),b(W,ke)},$$slots:{default:!0}})};M(nt,be=>{d()&&!l()&&be(Me)})}N(be=>me=ie(fe,1,"tooltip-wrapper s-1o",null,me,be),[()=>({"full-width":p()})]),bt("pointerenter",fe,Ee),bt("pointerleave",fe,de),b(t,B),F(),o()}tt(["pointermove","pointerdown","pointerup"]);var Tb=t=>{t.stopPropagation()},hx=k("<div><!></div>"),_x={hash:"s-1i",code:".btn-container.s-1i{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-1i{min-width:0;width:100%}"};function Bo(t,e){H(e,!0),Q(t,_x);let[i,o]=Be(),r=()=>w(u,"$isGraphOpened$",i),a=()=>w(s,"$isMobile",i),l=ye(),d=To(),s=l.ui.isMobile,u=d.graphIsOpened$,m=l.ui.t,p=h(e,"className",3,""),v=h(e,"disabled",3,!1),$=h(e,"hasTooltip",3,!0),y=h(e,"ref",15,void 0),g=h(e,"width",15,void 0),x=h(e,"isFullWidthTooltip",3,!0),I=h(e,"tooltipContent",3,""),T=h(e,"tooltipVisible",3,!1),D=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),E=h(e,"isAriaHidden",3,!1),V=h(e,"onTooltipVisibilityChange",3,rp.noop),q=h(e,"initialTranslateXPx",3,0),L=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,rp.noop),j=h(e,"mouseLeave",3,rp.noop),te=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):A():I()),ee=K(!1);Fe(()=>{T()||O(ee,!1)});var oe=hx();oe.__pointerdown=[Tb],oe.__click=[Tb];var ae=C(oe);{var le=X=>{Za(X,{get content(){return n(te)},get translateX(){return q()},get translateY(){return L()},get isFullWidthWrapper(){return x()},get placement(){return D()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(ee)},set active(_e){O(ee,_e,!0)},children:(_e,Ee)=>{var de=Re(),ze=se(de);ii(ze,()=>{var ue;return(ue=e.children)!=null?ue:wt}),b(_e,de)},$$slots:{default:!0}})},ce=X=>{var _e=Re(),Ee=se(_e);ii(Ee,()=>{var de;return(de=e.children)!=null?de:wt}),b(X,_e)};M(ae,X=>{$()&&n(te)&&!a()?X(le):X(ce,!1)})}S(oe),it(oe,X=>y(X),()=>y()),N(()=>{var X;ie(oe,1,`btn-container ${(X=p())!=null?X:""}`,"s-1i"),De(oe,"aria-hidden",E()||null)}),bt("mouseenter",oe,function(...X){var _e;(_e=z())==null||_e.apply(this,X)}),bt("mouseleave",oe,function(...X){var _e;(_e=j())==null||_e.apply(this,X)}),Vn(oe,"clientWidth",g),b(t,oe),F(),o()}tt(["pointerdown","click"]);var bx=Ae('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function vc(t,e){let i=f(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=bx(),l=se(a),d=P(l);N(()=>{De(l,"fill",da),De(l,"fill-opacity",e.completed?1:.24),De(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var $x=k("<div><!></div>"),yx={hash:"s-1d",code:".interactive-episode-icon.s-1d{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-1d{opacity:.4;pointer-events:none}"};function Dm(t,e){H(e,!0),Q(t,yx);let o=ye().ui.t,r=K(0),a=f(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Bo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=$x();let u;var m=C(s);let p=f(()=>!!e.videoEpisode.completed);vc(m,{get completed(){return n(p)}}),S(s),N(v=>{u=ie(s,1,"interactive-episode-icon s-1d",null,u,v),Ke(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Vn(s,"clientWidth",v=>O(r,v)),b(l,s)},$$slots:{default:!0}}),F()}var xx=k('<div><div class="video-episode-inner s-1b"><div class="video-episode-loaded s-1b"></div> <div></div></div></div>'),wx=k('<div class="video-episodes-wrap s-1b"></div>'),Sx={hash:"s-1b",code:".video-episodes-wrap.s-1b{height:100%;position:absolute;width:100%}.video-episode.s-1b{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-1b:first-child{padding-left:0}.video-episode.s-1b:last-child{padding-right:0}.video-episode.s-1b:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-1b,.video-episode-inner.s-1b,.video-episode-loaded.s-1b{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-1b{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-1b:first-child .video-episode-inner:where(.s-1b),.video-episode.s-1b:last-child .video-episode-inner:where(.s-1b){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-1b{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-1b,.video-episode-loaded.s-1b{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-1b{background-color:var(--slider-filled-bg)}"};function Om(t,e){Q(t,Sx);let i=h(e,"videoEpisodes",19,()=>[]);var o=wx();Ci(o,21,i,r=>r.from,(r,a)=>{var l=xx();let d;var s=C(l),u=C(s),m=P(u,2);let p;S(s),S(l),N((v,$)=>{d=ie(l,1,"video-episode s-1b",null,d,v),Ke(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ke(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=ie(m,1,"video-episode-filled s-1b",null,p,$),Ke(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),S(o),b(t,o)}function Cx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function Tx(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function Ix(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;O(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function Ex(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Px(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),O(r,!1),a()(l)}var Ax=k("<div></div>"),kx=k('<div class="bars s-t"><div class="loaded s-t"></div> <div></div></div>'),Lx=k('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Mx={hash:"s-t",code:'.interactive-icons.s-t{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-t{top:-10px}.slider.s-t{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-t{cursor:default}.slider.s-t:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-t{background:var(--slider-bg);overflow:hidden}.bars.s-t,.loaded.s-t{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-t{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-t{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-t,.slider.square.s-t .filled:where(.s-t),.slider.square.s-t .loaded:where(.s-t),.slider.square.s-t>.bars:where(.s-t){border-radius:unset}.filled.active-live.s-t{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-t{background-color:var(--slider-filled-ads)}.handleWrap.s-t{left:-100%;position:absolute;width:100%}.handle.s-t{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-t{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-t .handle:where(.s-t),.slider-dragging.s-t .handle:where(.s-t),.slider.s-t:hover .handle:where(.s-t){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-t .handle:where(.s-t){transform:scale(1.3)}.slider-vertical.s-t{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-t{cursor:default;opacity:.4}'};function Ja(t,e){H(e,!0),Q(t,Mx);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),a=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),s=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),m=h(e,"videoEpisodes",19,()=>[]),p=h(e,"withWheelHandler",3,!1),v=h(e,"isInteractive",3,!1),$=h(e,"disabled",3,!1),y=h(e,"hideHandel",3,!1),g=h(e,"onPointerDown",3,Ho.noop),x=h(e,"onHandleMove",3,Ho.noop),I=h(e,"onPointerUp",3,Ho.noop),T=h(e,"onPointerEnter",3,Ho.noop),D=h(e,"onPointerMove",3,Ho.noop),A=h(e,"onPointerLeave",3,Ho.noop),E=h(e,"onMouseEnter",3,Ho.noop),V=h(e,"onMouseLeave",3,Ho.noop),q=h(e,"onWheelUp",3,Ho.noop),L=h(e,"onWheelDown",3,Ho.noop),z=h(e,"onWheelLeft",3,Ho.noop),j=h(e,"onWheelRight",3,Ho.noop),te=h(e,"onDisabledClick",3,Ho.noop),ee=h(e,"loadedProgress",3,0),oe=h(e,"filledProgress",3,0),ae=h(e,"handleProgress",3,0),le=h(e,"ariaLabel",3,""),ce=h(e,"ariaValueMin",3,void 0),X=h(e,"ariaValueMax",3,void 0),_e=h(e,"ariaValueNow",3,void 0),Ee=h(e,"ariaValueText",3,""),de=h(e,"onContextMenu",3,Ho.noop),ze=h(e,"handleAlwaysVisible",3,!1),ue=Rt(),pe=K(void 0),Z=K(!1),B=f(()=>{var $e;return($e=X())!=null?$e:0}),fe=f(()=>{var $e;return(0,Ho.isNonNullable)(m())&&(($e=m()[m().length-1])==null?void 0:$e.time)<n(B)}),me=f(()=>(0,Ho.isNonNullable)(m())&&m().length&&n(fe)&&n(B)?Qe(ee()*100,oe()*100):[]);function Ie($e){if($e.preventDefault(),i()&&O(pe,i().getBoundingClientRect(),!0),$())return;let Ne=Ce($e.clientX,$e.clientY),vt=ke($e.clientX);T()(Ne,vt,n(pe).width)}function nt($e){$e.preventDefault(),!$()&&A()()}function Me(){E()()}function be(){V()()}function W($e){$()||p()&&($e.preventDefault(),$e.deltaY<0?q()():$e.deltaY>0?L()():$e.deltaX>0?j()():z()())}function Ce($e,Ne){return l()?Math.max(0,Math.min(1,(n(pe).height-(Ne-n(pe).top))/n(pe).height)):Math.min(Math.max($e-n(pe).x,0),n(pe).width)/n(pe).width}function ke($e){return Math.min(Math.max($e-n(pe).x,0),n(pe).width)}function Qe($e,Ne){let vt=ue.features.episodesClustering&&!v()?ue.episodeMinWidthPc:0,At=[],Se=m()[0].time/n(B)*100,je=0,Ue=0;for(let Et=1;Et<m().length;Et++)je=m()[Et].time/n(B)*100,je-Se>vt&&(At.push({from:Se,width:Math.max(0,je-Se),loadedWidth:Math.max(0,Math.min(je,$e)-Se),filledWidth:Math.max(0,Math.min(je,Ne)-Se),interactive:m()[Et-1].interactive,completed:m()[Et-1].completed}),Se=m()[Et].time/n(B)*100,Ue++);let xe={from:Se,width:Math.max(0,100-Se),loadedWidth:Math.max(0,Math.min($e,100)-Se),filledWidth:Math.max(0,Math.min(Ne,100)-Se),interactive:m()[Ue].interactive,completed:m()[Ue].completed};100-Se<vt?(Ue-=1,At[Ue].width+=100-Se,At[Ue].loadedWidth+=Math.max(0,Math.min($e,100)-Se),At[Ue].filledWidth+=Math.max(0,Math.min(Ne,100)-Se)):At[Ue]=xe;let Bt=m()[0].time;if(Bt!==0){let Et=Bt/n(B)*100;At.unshift({from:0,width:Et,loadedWidth:Math.min(Et,$e),filledWidth:Math.min(Et,Ne)})}return At}function Te($e){return Math.max(0,Math.min(100,$e*100))}let we=f(()=>Te(ee())),He=f(()=>Te(oe()));var at=Lx(),pt=se(at);{var Pt=$e=>{var Ne=Ax();let vt;Ci(Ne,21,()=>n(me),At=>At.from,(At,Se)=>{var je=Re(),Ue=se(je);{var xe=Bt=>{Dm(Bt,{get videoEpisode(){return n(Se)},get disabled(){return $()}})};M(Ue,Bt=>{n(Se).interactive&&Bt(xe)})}b(At,je)}),S(Ne),N(At=>vt=ie(Ne,1,"interactive-icons s-t",null,vt,At),[()=>({mobile:s(),hidden:s()&&!n(Z)})]),b($e,Ne)};M(pt,$e=>{v()&&$e(Pt)})}var dt=P(pt,2);let ai;dt.__pointerdown=[Cx,i,pe,$,Z,Ce,g],dt.__pointermove=[Tx,$,Ce,ke,D,pe,Z,x],dt.__pointerup=[Ix,$,Z,Ce,I],dt.__click=[Ex,$,te,Ce],dt.__contextmenu=[Px,Ce,$,te,Z,de];var Tt=C(dt);{var Ot=$e=>{Om($e,{get videoEpisodes(){return n(me)},get disabled(){return $()},get isMobile(){return s()}})},Nt=$e=>{var Ne=kx(),vt=C(Ne),At=P(vt,2);let Se;S(Ne),N(je=>{De(vt,"data-value",n(we)),Ke(vt,`transform: translateX(${n(we)}%);`),Se=ie(At,1,"filled s-t",null,Se,je),De(At,"data-value",n(He)),Ke(At,`transform: translateX(${n(He)}%);`)},[()=>({"active-live":d()})]),b($e,Ne)};M(Tt,$e=>{n(me).length?$e(Ot):$e(Nt,!1)})}var qt=P(Tt,2);let Le;var Y=C(qt);let Oe;S(qt),S(dt),it(dt,$e=>i($e),()=>i()),N(($e,Ne,vt,At)=>{var Se,je;ai=ie(dt,1,`slider ${(Se=o())!=null?Se:""}`,"s-t",ai,$e),De(dt,"aria-label",le()),De(dt,"aria-valuemin",ce()),De(dt,"aria-valuemax",X()),De(dt,"aria-valuenow",_e()),De(dt,"aria-valuetext",Ee()),De(dt,"data-testid",(je=r())!=null?je:null),Le=ie(qt,1,"handleWrap s-t",null,Le,Ne),Ke(qt,vt),Oe=ie(Y,1,"handle s-t",null,Oe,At)},[()=>({disabled:$(),"slider-dragging":n(Z),hidden:a(),"handle-always-visible":ze(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(ae())}%);`,()=>({"active-live":d()})]),bt("pointerenter",dt,Ie),bt("pointerleave",dt,nt),bt("mouseenter",dt,Me),bt("mouseleave",dt,be),bt("wheel",dt,W),b(t,at),F()}tt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var po=(t,e)=>Jd[t]>=Jd[e];var Us=(t,e)=>Jd[t]<=Jd[e],Ib=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Rx=k("<div><!></div>"),Dx=k("<div><!> <!></div>"),Ox={hash:"s-28",code:".volumeBar-container.s-28{align-items:center;display:flex}.vertical.s-28 .btn,.vertical.s-28 .tooltip-wrapper,.volumeBar-container.vertical.s-28{width:40px}.volumeBar.s-28{align-items:center;display:flex;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.s-28{padding:0 8px 0 0;width:0}"};function Nm(t,e){var ke,Qe;H(e,!0),Q(t,Ox);let[i,o]=Be(),r=()=>w(D,"$isAudioAvailable$",i),a=()=>w(v,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),s=()=>w(Ie,"$controlsVisible",i),u=ye(),m=Rt(),p=u.state.volume$,v=u.state.muted$,{setVolume:$,startVolumeChanging:y,stopVolumeChanging:g}=u.actions.internal,x=u.ui.currentGridType$,I=(ke=u.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(Qe=u.callbacks)==null?void 0:Qe.onAudioDisabledHint,D=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,E=u.ui.t,V=K(!1),q,L=f(()=>e.isAds||r()),z=f(()=>!n(L)||a()||l()===0),j=f(()=>Us(d(),"l")),te=f(()=>n(j)?"":n(z)?!r()||A?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),ee=f(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),oe=f(()=>n(z)?0:l()),ae=!1,le=f(()=>e.isAds?!1:A?!T:r()?!1:!I);function ce(Te){y(),$(Te)}function X(){tp(u,l(),m.controls.volumeStepWheel)}function _e(){ip(u,l(),m.controls.volumeStepWheel)}function Ee(Te){$(Te)}function de(Te){$(Te),g()}function ze(){ae=!0}function ue(){ae=!1,B()}function pe(){clearTimeout(q),O(V,!0)}function Z(){B()}function B(){q=window.setTimeout(()=>{ae||O(V,!1)},m.controls.volumeBarTimeout)}function fe(Te){Te.preventDefault(),Te.deltaY<0?X():Te.deltaY>0&&_e()}let me=K(!1),Ie=u.ui.controlsVisible;Fe(()=>{s()||O(me,!1)});var nt=Dx();let Me;var be=C(nt);Za(be,{get content(){return n(te)},translateY:-18,get active(){return n(me)},set active(Te){O(me,Te,!0)},children:(Te,we)=>{let He=f(()=>n(j)?"btn-volume-vertical":"btn-volume-horizontal");Ut(Te,{className:"btn-full-opacity",get disabled(){return n(le)},get testId(){return n(He)},get ariaLabel(){return n(ee)},get click(){return e.click},get ariaKeyShortCut(){return ys.KeyM},role:"button",children:(at,pt)=>{ha(at,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var W=P(be,2);{var Ce=Te=>{var we=Rx();let He;var at=C(we);let pt=f(()=>n(j)?"volumeBar-slider-vertical":""),Pt=f(()=>n(j)&&!n(V)),dt=f(()=>n(j)?ze:gc.noop),ai=f(()=>n(j)?ue:gc.noop),Tt=f(()=>Math.round(n(oe)*100)),Ot=f(()=>`${Math.round(n(oe)*100)}%`),Nt=f(()=>n(j)?"volume-slider-vertical":"volume-slider");Ja(at,{get className(){return n(pt)},get isHidden(){return n(Pt)},get isVertical(){return n(j)},withWheelHandler:!0,onWheelUp:X,onWheelDown:_e,onPointerDown:ce,onHandleMove:Ee,onPointerUp:de,get onPointerEnter(){return n(dt)},get onPointerLeave(){return n(ai)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Tt)},get ariaValueText(){return n(Ot)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(Nt)}}),S(we),N(qt=>He=ie(we,1,"volumeBar s-28",null,He,qt),[()=>({"volumeBar-vertical":n(j)})]),b(Te,we)};M(W,Te=>{n(L)&&Te(Ce)})}S(nt),N(Te=>Me=ie(nt,1,"volumeBar-container s-28",null,Me,Te),[()=>({vertical:n(j)})]),bt("mouseenter",nt,function(...Te){var we;(we=n(j)?pe:gc.noop)==null||we.apply(this,Te)}),bt("mouseleave",nt,function(...Te){var we;(we=n(j)?Z:gc.noop)==null||we.apply(this,Te)}),bt("wheel",nt,fe),b(t,nt),F(),o()}var Eb=require("@vkontakte/videoplayer-shared/es2015");var Nx=Ae('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Bx=Ae('<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.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Bm(t,e){let i=h(e,"isFullscreen",8,!1),o=Pn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=Re(),d=se(l);{var s=m=>{var p=Nx();b(m,p)},u=m=>{var p=Bx();b(m,p)};M(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}function hc(t,e){H(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,Eb.noop),r=ye(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ut(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=fa(u);a.set(m),o()()},get ariaKeyShortCut(){return ys.KeyF},role:"button",children:(u,m)=>{Bm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Hx=Ae('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Hm(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var Fx=Ae('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Fm(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Fx();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(6),S(o),b(t,o)}var Ux={hash:"s-29",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Um(t,e){H(e,!0),Q(t,Ux);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=f(()=>!o()&&!i()?91:i()?l:95),s=f(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);Fm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),F()}function _c(t,e){H(e,!0);let[i,o]=Be(),r=()=>w($,"$isMobile",i),a=()=>w(v,"$currentGridType$",i),l=()=>w(g,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),s=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),m=Rt(),p=ye(),v=p.ui.currentGridType$,$=p.ui.isMobile,y=p.ui.t,g=p.isCyrillicRelatedInterface$,x=f(()=>m.logoType!=="vk"),I=f(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=f(()=>(r()&&Us(a(),"m")||Us(a(),"l"))&&n(x)),D=()=>{var V,q;e.click(),(V=p.callbacks)!=null&&V.onLogoClicked?(q=p.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},A=f(()=>!s()),E=f(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");Ut(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:D,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(V){d(V)},children:(V,q)=>{var L=Re(),z=se(L);{var j=ee=>{Um(ee,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},te=ee=>{Hm(ee,{})};M(z,ee=>{n(x)?ee(j):ee(te,!1)})}b(V,L)},$$slots:{default:!0}}),F(),o()}var Ab=require("@vkontakte/videoplayer-core/es2015");var zm=require("@vkontakte/videoplayer-core/es2015");var zx=Ae('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-16"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-16"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-16"></path>',1),Wx=Ae('<path d="M3.60219 13.2993C6.41858 13.2995 8.70256 15.5835 8.70278 18.3999C8.70277 18.6469 8.68424 18.8909 8.65004 19.1294C8.57937 19.6212 8.12333 19.9625 7.63149 19.8921C7.13968 19.8213 6.79823 19.3654 6.86879 18.8735C6.89087 18.7195 6.90199 18.5611 6.902 18.3999C6.90178 16.5776 5.42447 15.1003 3.60219 15.1001C3.441 15.1001 3.28267 15.1112 3.12856 15.1333C2.63666 15.2039 2.18077 14.8624 2.11 14.3706C2.03966 13.8788 2.38091 13.4227 2.8727 13.3521C3.11125 13.3178 3.35516 13.2993 3.60219 13.2993Z"></path><path d="M3.60219 9.69971C8.40682 9.69977 12.3021 13.5953 12.3024 18.3999C12.3024 18.6248 12.2938 18.8489 12.277 19.0698C12.239 19.5651 11.8065 19.9365 11.3112 19.8989C10.8157 19.8611 10.4445 19.4286 10.4821 18.9331C10.4954 18.7576 10.5026 18.5791 10.5026 18.3999C10.5023 14.5894 7.41271 11.5005 3.60219 11.5005C3.42268 11.5005 3.24474 11.5066 3.06899 11.52C2.57352 11.5578 2.14115 11.1863 2.10317 10.6909C2.06587 10.1957 2.43694 9.76287 2.93227 9.7251C3.15348 9.70823 3.37699 9.69971 3.60219 9.69971Z"></path><path d="M3.60219 16.8999C4.43047 16.8999 5.10198 17.5717 5.10219 18.3999C5.10209 19.2282 4.43054 19.8999 3.60219 19.8999C2.77383 19.8999 2.10229 19.2282 2.10219 18.3999C2.10241 17.5717 2.7739 16.8999 3.60219 16.8999Z"></path><path d="M16.2379 4.1001C17.0459 4.10009 17.7067 4.10017 18.2438 4.14404C18.7997 4.18946 19.3022 4.28599 19.7711 4.5249C20.5049 4.89882 21.1014 5.49623 21.4752 6.22998C21.714 6.69873 21.8107 7.20063 21.8561 7.75635C21.9 8.29338 21.9001 8.95424 21.9 9.76221V14.2378C21.9001 15.0458 21.9 15.7066 21.8561 16.2437C21.8107 16.7996 21.7141 17.3021 21.4752 17.771C21.1014 18.5046 20.5048 19.1012 19.7711 19.4751C19.3022 19.714 18.7997 19.8105 18.2438 19.856C17.7067 19.8998 17.0459 19.8999 16.2379 19.8999H14.9997C14.503 19.8996 14.1005 19.4972 14.1002 19.0005C14.1002 18.5036 14.5028 18.1004 14.9997 18.1001H16.1998C17.0548 18.1001 17.6422 18.0992 18.0973 18.062C18.5419 18.0257 18.7809 17.9596 18.9538 17.8716C19.3489 17.6702 19.6704 17.3487 19.8717 16.9536C19.9598 16.7808 20.0258 16.5417 20.0622 16.0972C20.0993 15.6421 20.1002 15.0546 20.1002 14.1997V9.80029C20.1002 8.94536 20.0993 8.35794 20.0622 7.90283C20.0258 7.45834 19.9598 7.21921 19.8717 7.04639C19.6704 6.6514 19.3487 6.33073 18.9538 6.12939C18.7809 6.04133 18.5419 5.97431 18.0973 5.93799C17.6422 5.9008 17.0548 5.8999 16.1998 5.8999H6.00063L5.83071 5.90674C4.99191 5.97398 4.28981 6.53462 4.01918 7.30029C3.85342 7.76872 3.33928 8.01472 2.87075 7.84912C2.40214 7.68346 2.15628 7.16833 2.32192 6.69971C2.85696 5.18632 4.30125 4.1001 6.00063 4.1001H16.2379Z"></path><path d="M2.95114 7.11345C2.42394 7.1914 1.90399 6.78569 2.00995 6.2634C2.05777 6.0277 2.12517 5.82449 2.22018 5.63803C2.5078 5.07354 2.96674 4.6146 3.53123 4.32698C4.17296 4 5.01304 4 6.6932 4H17.2001C18.8803 4 19.7204 4 20.3621 4.32698C20.9266 4.6146 21.3855 5.07354 21.6731 5.63803C22.0001 6.27976 22.0001 7.11984 22.0001 8.8V15.2C22.0001 16.8802 22.0001 17.7202 21.6731 18.362C21.3855 18.9265 20.9266 19.3854 20.3621 19.673C19.7204 20 18.8803 20 17.2001 20H15.7196C15.2009 20 14.8203 19.5134 14.8938 19C14.9638 18.5101 15.0001 18.0093 15.0001 17.5C15.0001 11.701 10.2991 7 4.5001 7C3.97384 7 3.45662 7.03872 2.95114 7.11345Z"></path>',1),Kx={hash:"s-16",code:".animated.s-16{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-16{animation-name:s-16-wave1}.wave2.animated.s-16{animation-name:s-16-wave2}.wave3.animated.s-16{animation-name:s-16-wave3}@keyframes s-16-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-16-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-16-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function bc(t,e){H(e,!0),Q(t,Kx);let i=h(e,"isMobile",3,!1),o=f(()=>e.iconState===zm.ChromecastState.CONNECTED),r=f(()=>e.iconState===zm.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":da),l=f(()=>e.size?fn(e.size):void 0);var d=Re(),s=se(d);{var u=p=>{Ze(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,$)=>{var y=zx();Jt(2),b(v,y)},$$slots:{default:!0}})},m=p=>{Ze(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,$)=>{var y=Wx(),g=se(y);let x;var I=P(g);let T;var D=P(I);let A;var E=P(D);let V;var q=P(E);let L;N((z,j,te,ee,oe)=>{x=ie(g,0,"wave2 s-16",null,x,z),T=ie(I,0,"wave3 s-16",null,T,j),A=ie(D,0,"wave1 s-16",null,A,te),V=ie(E,0,"s-16",null,V,ee),L=ie(q,0,"s-16",null,L,oe)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),b(v,y)},$$slots:{default:!0}})};M(s,p=>{i()?p(u):p(m,!1)})}b(t,d),F()}var kb=require("@vkontakte/videoplayer-shared/es2015");function $c(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,kb.noop),l=ye().ui.t,d=f(()=>e.state===Ab.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ut(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{bc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var Lb=require("@vkontakte/videoplayer-shared/es2015");var qx=Ae('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Wm(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=qx();Jt(2),b(e,o)},$$slots:{default:!0}})}var sp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Qx=k('<span class="text mobile s-23"> </span> <div class="chevron-episodes s-23" data-testid="btn-episodes_icon"><!></div>',1),Gx=k('<span class="text s-23"> </span>'),Yx=k('<span class="text count s-23"> </span>'),jx=k('<span class="icon s-23"><!></span> <!>',1),Xx={hash:"s-23",code:".icon.s-23{flex-shrink:0}.text.s-23{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-23{overflow:visible}.text.mobile.s-23{padding:0 3px 0 4px}.chevron-episodes.s-23{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function yc(t,e){var ae,le,ce;H(e,!0),Q(t,Xx);let[i,o]=Be(),r=()=>w(y,"$currentGridType$",i),a=()=>w(g,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),s=h(e,"position",3,0),u=h(e,"duration",3,0),m=h(e,"timeCodes",19,()=>[]),p=ye(),v=(le=(ae=p.callbacks)==null?void 0:ae.onEpisodeChanged)!=null?le:Lb.noop,$=!!((ce=p.callbacks)!=null&&ce.onEpisodeClicked),y=p.ui.currentGridType$,g=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,D=K(void 0),A=X=>{var Ee,de,ze;if(!!((Ee=p.callbacks)!=null&&Ee.onEpisodeClicked)){let ue=fa(X);g.set(ue),x.set(!0),(ze=(de=p.callbacks)==null?void 0:de.onEpisodeClicked)==null||ze.call(de,ue)}},E=K(null),V=f(()=>s()/u());Fe(()=>{var _e;let X=sp(n(V),u(),m());X?((_e=n(E))==null?void 0:_e.time)!==X.time&&(v(X),O(E,X,!0)):O(E,null)});let q=f(()=>{var X;return((X=n(E))==null?void 0:X.text)||""}),L=f(()=>po(r(),"xl")?"FULL":po(r(),"m")?"COUNT":"SHORT"),z=f(()=>`${T("tooltip_episodes")}: ${n(q)}`),j=(X,_e,Ee)=>xt(null,null,function*(){yield yo(),(X==null?void 0:X.getAttribute("aria-expanded"))==="false"&&_e&&!Ee&&kt(()=>{g.set(!1),X.focus()})});Fe(()=>{j(n(D),a(),l())});var te=Re(),ee=se(te);{var oe=X=>{let _e=f(()=>d()?"px-0":""),Ee=f(()=>!$);Ut(X,{get className(){var de;return`w-max btn-full-opacity btn-jc-l ${(de=n(_e))!=null?de:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Ee)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(D)},set ref(de){O(D,de,!0)},children:(de,ze)=>{var ue=Re(),pe=se(ue);{var Z=fe=>{var me=Qx(),Ie=se(me),nt=C(Ie,!0);S(Ie);var Me=P(Ie,2),be=C(Me);Vr(be,{direction:"right"}),S(Me),N(()=>ge(nt,n(q))),b(fe,me)},B=fe=>{var me=jx(),Ie=se(me),nt=C(Ie);Wm(nt,{}),S(Ie);var Me=P(Ie,2);{var be=Ce=>{var ke=Gx(),Qe=C(ke,!0);S(ke),N(()=>ge(Qe,n(q))),b(Ce,ke)},W=(Ce,ke)=>{{var Qe=Te=>{var we=Yx(),He=C(we,!0);S(we),N(()=>ge(He,m().length)),b(Te,we)};M(Ce,Te=>{n(L)==="COUNT"&&Te(Qe)},ke)}};M(Me,Ce=>{n(L)==="FULL"?Ce(be):Ce(W,!1)})}b(fe,me)};M(pe,fe=>{d()?fe(Z):fe(B,!1)})}b(de,ue)},$$slots:{default:!0}})};M(ee,X=>{n(E)&&X(oe)})}b(t,te),F(),o()}var xv=require("@vkontakte/videoplayer-shared/es2015");var gi=require("@vkontakte/videoplayer-core/es2015"),ct=require("@vkontakte/videoplayer-shared/es2015"),Dr=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),fo=require("@vkontakte/videoplayer-shared/es2015");var Zx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ap=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 fo.Subject,loadStarted$:new fo.Subject,loadEnded$:new fo.Subject,loadError$:new fo.Subject,ready$:new fo.Subject,slotRequested$:new fo.Subject,started$:new fo.Subject,timeRemained$:new fo.Subject,paused$:new fo.Subject,resumed$:new fo.Subject,ended$:new fo.Subject,empty$:new fo.Subject,skipped$:new fo.Subject,clicked$:new fo.Subject,closed$:new fo.Subject,error$:new fo.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,fo.addScript)(Zx,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?he(this.adsState.playbackState):void 0)!=="inactive"&&(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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.now)()]}),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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),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){return xt(this,null,function*(){var A,E;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p,json:v}=e;this.externalApi=p;let $,y=this.playerState&&he(this.playerState.vsid);y&&(this.isVsidOriginal?$=y:$=parseInt(y,36));let{isEmbed:g,immediateOrigin:x}=(0,Ye.detectEmbed)(),I=(A=g?x:window.location.href)!=null?A:window.location.href,T=(0,Ye.withoutNullable)(Ge(ti(Ge(ti(Ge({},s),{dl:encodeURIComponent(I),autoplay:r?1:0,player_width:i,player_height:o}),$?{request_id:$}:{}),{duration:m}),u)),D=(0,Ye.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});try{let V=new window.AdmanHTML;if(V.onReady(this.onAdsReady),V.onStarted(this.onAdStarted),V.onPlayed(this.onAdPlayed),V.onPaused(this.onAdPaused),V.adMidrollPoint(this.onAdMidrollPoint),V.onClosed(this.onAdClosed),V.onSkipped(this.onAdSkipped),V.onClicked(this.onAdClicked),V.onTimeRemained(this.onAdTimeRemained),V.onCompleted(this.onAdCompleted),V.onError(this.onAdError),V.setDebug(!1),!v&&((E=this.externalApi)!=null&&E.videoGetAds)){let q=yield this.safeExternalCall(this.externalApi.videoGetAds,T);q&&(delete D.slot,delete D.params,Object.assign(D,{json:q}))}V.init(D),this.adman=V,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(D)}`})}catch(V){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(V)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=he(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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.now)()]}),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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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,r,a,l,d,s,u,m,p,v;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),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),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,fo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return xt(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var Mb=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 Km=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new lp,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new qm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},lp=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},qm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((m,p)=>{let v=l.indexOf(p,d);return m===-1||m>v?v:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new lp;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},Vb=Km;var cp=require("@vkontakte/videoplayer-shared/es2015"),el,Ni,Qm=0,Gm=!1,Rb="",Db=(t,e=0,i=0)=>t<e&&t<i,dp=(t,e=0,i=0)=>t>=e&&t<=i,Jx=(t,e=0,i=0)=>t>e&&t>i,Ob=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>dp(t,u,m));let a=t>=Qm,l=t<Qm;if(Qm=t,l&&(Gm=!1),(0,cp.isNonNullable)(el)&&dp(t,el.startTime,el.endTime)&&Rb===e.value)return el;if(!(0,cp.isNonNullable)(Ni)&&(r!=null&&r.length)&&!Gm){Ni=r.find(({startTime:u,endTime:m})=>dp(t,u,m)||a&&Db(t,u,m)),el=void 0,!(0,cp.isNonNullable)(Ni)&&r[r.length-1].endTime<t&&(Gm=!0);return}else{if(dp(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime))return el=Ni,Ni=void 0,Rb=e.value,el;(a&&Jx(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime)||l&&Db(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime))&&(Ni=void 0)}};var up={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",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"},xc=t=>{var e,i;return(i=(e=up[t])!=null?e:up[e2[t]])!=null?i:void 0};var mp=require("@vkontakte/videoplayer-shared/es2015");function pp(t){let e="";return eo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),eo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),eo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),eo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),eo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),eo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),eo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),eo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),eo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),eo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),eo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),eo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),eo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),eo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),eo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),eo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),eo(t.controlsDesktopPaddingHorizontalMinimalView)&&(e+=`--controls-desktop-padding-horizontal-minimal-view:${t.controlsDesktopPaddingHorizontalMinimalView};`),eo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),eo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),eo(t.font)&&(e+=`--font:${t.font};`),eo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),eo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function eo(t){return typeof t=="string"&&!t.includes(";")}var t2=Ae('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),i2=k('<div data-testid="player-pip-dummy"><div><!></div> <span class="title s-0"> </span></div>'),o2={hash:"s-0",code:".player-pip-dummy.s-0{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-0{position:relative}.dummy-image.s-0 svg{transform:scale(1.07143)}.dummy-image.desktop.s-0{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-0{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function Ym(t,e){H(e,!0),Q(t,o2);let[i,o]=Be(),r=()=>w(u,"$interfaceLanguage$",i),a=()=>w(m,"$isMobile$",i),l=ye(),d=Rt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,v=f(()=>r()&&p("pip_dummy_title")),$=pp(d.view);var y=i2();let g;var x=C(y);let I;var T=C(x);Ze(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,V)=>{var q=t2();Jt(),b(E,q)},$$slots:{default:!0}}),S(x);var D=P(x,2),A=C(D,!0);S(D),S(y),N((E,V)=>{g=ie(y,1,"player-pip-dummy s-0",null,g,E),Ke(y,$),I=ie(x,1,"dummy-image s-0",null,I,V),ge(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(t,y),F(),o()}var Zm=require("@vkontakte/videoplayer-core/es2015"),xs=require("@vkontakte/videoplayer-shared/es2015");var wc=require("@vkontakte/videoplayer-shared/es2015"),zs=()=>{var t;return(t=(0,wc.getWindow)().document)==null?void 0:t.pictureInPictureEnabled},tl=()=>{let{isEmbed:t}=(0,wc.detectEmbed)();return"documentPictureInPicture"in(0,wc.getWindow)()&&!t},fp=t=>!!t.pictureInPictureWindow,Nb=t=>!!t.target&&"height"in t.target&&"width"in t.target,Bb=t=>typeof t=="boolean"?t:t!==void 0,jm=t=>[...t.cssRules].map(e=>e.cssText).join(" "),Xm=(t,e)=>{let i=document.createElement("style");return i.setAttribute("id",e),i.textContent=t,i};var il=class{constructor({enabled:e=!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:(0,xs.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new xs.ValueSubject(!1),isEnabled$:new xs.ValueSubject(!1),type:0};this.info.isEnabled$=new xs.ValueSubject(e)}isSupported(){return zs()}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return xt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return xt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return xt(this,null,function*(){let{document:e}=(0,xs.getWindow)();!this.isSupported()||!this.isActive()||!this.videoElement||!e.pictureInPictureElement||(yield e.exitPictureInPicture(),Zm.clientChecker.browser.isYandex&&!this.videoElement.isConnected&&this.onLeavePictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var i;this.removeEventHandlers();let e=this.videoElement;this.videoElement=(i=this.playerContainer)==null?void 0:i.querySelector("video"),this.waitForSafariLeavePictureInPicture(e,this.videoElement),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Ge({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return xt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var o,r;let i=fp(e)?e.pictureInPictureWindow:void 0;this.info.isActive$.next(!0),this.isRequested=!0,i==null||i.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o)}onLeavePictureInPicture(e){var i,o;if(e){let r=fp(e)?e.pictureInPictureWindow:void 0;r==null||r.removeEventListener("resize",this.eventHandlers.resize)}this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),(o=(i=this.externalEventHandlers).leavepictureinpicture)==null||o.call(i)}onResize(e){var o,r;let i=Nb(e)?e.target:fp(e)?e.pictureInPictureWindow:void 0;i&&((r=(o=this.externalEventHandlers).resize)==null||r.call(o,{width:i.width,height:i.height}))}setEnabled(e){this.info.isEnabled$.next(e)}waitForSafariLeavePictureInPicture(e,i){if(Zm.clientChecker.browser.isSafari&&e&&e!==i){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,xs.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,xs.getWindow)().setTimeout(l,1e3)}}};function ev(t){return t instanceof il}var n2=Object.defineProperty,r2=Object.defineProperties,s2=Object.getOwnPropertyDescriptors,Hb=Object.getOwnPropertySymbols,a2=Object.prototype.hasOwnProperty,l2=Object.prototype.propertyIsEnumerable,iv=(t,e,i)=>e in t?n2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,d2=(t,e)=>{for(var i in e||(e={}))a2.call(e,i)&&iv(t,i,e[i]);if(Hb)for(var i of Hb(e))l2.call(e,i)&&iv(t,i,e[i]);return t},c2=(t,e)=>r2(t,s2(e)),Ws=(t,e,i)=>iv(t,typeof e!="symbol"?e+"":e,i),tv=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),u2=400,p2=225,Fb="parent-styles",Cc=class{constructor({enabled:e=!0,initialSize:i={width:u2,height:p2}}){Ws(this,"initialSize"),Ws(this,"playerDomElement"),Ws(this,"playerParentShadowRoot"),Ws(this,"playerDummyElement"),Ws(this,"svelteContext"),Ws(this,"pipWindow"),Ws(this,"info",{isActive$:new mp.ValueSubject(!1),isEnabled$:new mp.ValueSubject(!1),type:1}),Ws(this,"pipActive",!1),Ws(this,"pipApi"),this.initialSize=i,this.info.isEnabled$=new mp.ValueSubject(e),zs()&&(this.pipApi=new il({enabled:e}),this.pipApi.info.isActive$.subscribe(o=>{(o&&!this.info.isActive$.getValue()||!o&&this.pipActive)&&this.info.isActive$.next(o),this.pipActive=o}))}isSupported(){return tl()}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return tv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow(c2(d2({},this.initialSize),{copyStyleSheets:!0})),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(jm).filter(Boolean).join(`
59
- `),r=Xm(o,Fb),a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Xr(Ym,d),(e=this.pipWindow)==null||e.document.body.append(a),this.pipWindow.focus(),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{if(!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement)return;let u=[];[...l.styleSheets].forEach(m=>{var p,v,$;let{ownerNode:y}=m,g=m.cssRules.item(0);if(y&&y.id!==Fb&&g){let x=(v=(p=g.selectorText)==null?void 0:p.split("."))!=null?v:[],I=x.length?x[x.length-1]:"";(I?($=this.playerParentShadowRoot)==null?void 0:$.querySelector(`style#${I}`):null)||u.push(Xm(jm(m),I))}}),u.length&&this.playerParentShadowRoot.append(...u),Fa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0})})}exit(){return tv(this,null,function*(){return new Promise(e=>{var i,o,r;this.pipWindow?((i=documentPictureInPicture.window)==null||i.close(),window.focus()):(o=this.pipApi)!=null&&o.isActive()&&((r=this.pipApi)==null||r.exit()),e()})})}dispose(){return tv(this,null,function*(){yield this.exit()})}setEnabled(e){var i;this.info.isEnabled$.next(e),(i=this.pipApi)==null||i.setEnabled(e)}assignPlayerContainer(e){var i;(i=this.pipApi)==null||i.assignPlayerContainer(e)}updateVideoElement(){var e;(e=this.pipApi)==null||e.updateVideoElement()}setExternalEventHandlers(e){var i;(i=this.pipApi)==null||i.setExternalEventHandlers(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 vp(t){return t instanceof Cc}var ov=(t,e)=>{if(Bb(e)&&tl())return new Cc(Ge({enabled:t},typeof e!="boolean"&&e));if(zs())return new il({enabled:t})};var Ub=require("@vkontakte/videoplayer-shared/es2015"),mH=require("@vkontakte/videoplayer-statistics/es2015"),gp=class{constructor(e,i,o,r=new Ub.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Tc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Tc||{});var ws=t=>t!=null?t:0,Ks=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(ws(i==null?void 0:i.top)-ws(o==null?void 0:o.top)),left:Math.round(ws(i==null?void 0:i.left)-ws(o==null?void 0:o.left)),bottom:Math.round(ws(i==null?void 0:i.bottom)-ws(o==null?void 0:o.top)),right:Math.round(ws(i==null?void 0:i.right)-ws(o==null?void 0:o.left))}},nd=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ws(e==null?void 0:e.width),height:ws(e==null?void 0:e.height)}};var On="off";var rd=t=>!!(Math.round(Math.abs(t)/90)%2);var zb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:v,coreConfig:$,player:y,disabledControls:g,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:D,stopPlayer:A,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:L,additionalContextMenuItems:z,playPrevVideo:j,playNextVideo:te,onVideoChanged:ee,looped:oe=!1,statistics:ae,saveRate:le,internalsExposure:ce,playerView:X,playerId:_e,metaConfig:Ee,appTracer:de})=>{var Pg,Ag;let ze=ti(Ge({},$),{isAudioDisabled:l,live:ti(Ge({},(Pg=$.live)!=null?Pg:{}),{isLiveCatchUpMode:!!r})}),ue=v,pe=ct.TracerFactory.createRootTracer(ue.features.tracer),Z=pe.createComponentTracer("Store"),B=y||new gi.Player(ze,pe,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});ce==null||ce.expose({corePlayer:B});let fe=new ct.Logger,me=new ap(fe,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout,useAdmanFromNPM:ue.ads.useAdmanFromNPM,volumeMultiplier:ue.ads.volumeMultiplier,isVsidOriginal:ue.ads.isVsidOriginal}),Ie=u==null?void 0:u.pictureInPictureApi,nt=u==null?void 0:u.annotationsApi,Me=u==null?void 0:u.slotsApi,be=u==null?void 0:u.focusManager,W=fe.createComponentLog("Store"),Ce,ke,Qe={},Te=new Hu,we=new ct.Subscription,He="",at=re(!1),pt=re(!1),Pt=ae&&ae.oneStat?oi(ae.oneStat.vsid$):Mr(void 0),dt=re(ca()),ai=re(!1),Tt=()=>sb(document,gi.clientChecker.device.isIOS),Ot=(Ag=Ie==null?void 0:Ie.info.isActive$)!=null?Ag:new ct.ValueSubject(!1),Nt=re(0),qt=re(!1),Le=re(!1),Y=re([]),Oe=(0,ct.merge)(B.events.fatalError$,B.events.managedError$).subscribe(c=>Y.update(_=>[..._,c])),$e=Mr(!1,c=>{let _=B.events.fatalError$.subscribe(()=>c(!0));return()=>_.unsubscribe()}),Ne=c=>{pt.set(c)},vt=c=>xt(null,null,function*(){var ne;let _=Object.values(ct.InterfaceLanguage).includes(c);if(ue.downloadVKLanguages&&(_&&ue.updateBuiltinLanguages||!sm(c))){let Pe;try{Pe=yield(0,ct.loadVKLangPack)(c,b_,$_)}catch(et){(ne=ae==null?void 0:ae.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),de==null||de.error({category:ct.ErrorCategory.WTF,id:"VKLangPack",message:String(et),thrown:et},{severity:"warning"})}Pe&&(rm({language:c,pack:Pe,fallback:ue.defaultLanguage}),At.set(c),Se.update(et=>et+1))}sm(c)&&At.set(c)}),At=re(t),Se=re(0),je=re(e);vt(t);let Ue=(c,_)=>{let R=he(At);return am(R,c,_,ue.defaultLanguage)},xe=re("thumb");xe.subscribe(c=>{c==="ads"&&B.info.playbackState$.getValue()&&Gt()});let Bt=(()=>{let c=mi([$e,xe],([_,R])=>_?"crashed":R);return ti(Ge({},c),{is:_=>he(c)===_})})(),Et=re(),Gt=()=>{Et.set({muted:B.info.muted$.getValue()})},$i=(()=>{let c=re(new Set(g));return ti(Ge({},c),{add:_=>{c.update(R=>new Set([...R].concat(_)))},remove:_=>{c.update(R=>{let ne=[...R];return new Set(Array.isArray(_)?ne.filter(Pe=>!_.includes(Pe)):ne.filter(Pe=>Pe!==_))})},includes:_=>{let R=he(c);return Array.isArray(_)?_.every(ne=>R.has(ne)):R.has(_)}})})(),hi=re({width:0,height:0}),Vi=null,io=B.info.isBuffering$,di=Mr(io.getValue(),c=>{let _=io.subscribe(R=>{R&&Vi===null?Vi=window.setTimeout(()=>{c(io.getValue()),Vi=null},ue.loaderDelay):c(R)});return()=>{_.unsubscribe(),Vi&&clearTimeout(Vi)}});Z.log("create store"),W({message:"create store"});let Ti=c=>{let _=c.container,R=()=>{rt=new MutationObserver(Pe=>{let{removedNodes:et}=Pe[0];et.length&&_.append(B.experimental.element$.getValue())}),rt.observe(_,{childList:!0})},ne=B.experimental.element$.getValue();if(ne)_.append(ne),R();else{let Pe=B.experimental.element$.pipe((0,ct.filter)(et=>!!et),(0,ct.once)()).subscribe(et=>{_.append(et),R()});we.add(Pe)}},oo=c=>{W({message:`init video, config: ${JSON.stringify(c)}`}),x?Ti(c):(ct.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ct.now)()]}),B.initVideo(c)),Z.log("init video",{isInteractive:x}),c.subtitles&&B.setExternalTextTracks(c.subtitles),Ce=c,He=c.subtitlesForcedLanguage||""},Ri=new ct.Subject,ci=c=>Ri.next(c),Ki=new ct.Subject,$t=new ct.ValueSubject(Dr.SeekAction.UNKNOWN),We=new ct.Subject,rt=null,ft={actionRewind$:Ki,actionSeek$:$t,inPiP$:Ot,inFullscreen$:new ct.Observable(c=>dt.subscribe(_=>c.next(_))),actionSetSubtitle$:We,nextMovie$:Ri},pi=new ct.Subject,qi=new ct.Subject,no={actionSeek$:$t,actionSubtitlesSwitched$:pi,actionQuality$:qi,playerSize$:new ct.Observable(c=>hi.subscribe(_=>c.next(_))),inPiP$:Ot,inFullscreen$:new ct.Observable(c=>dt.subscribe(_=>c.next(_))),isLoaderVisible$:new ct.Observable(c=>di.subscribe(_=>c.next(_)))};if(ae){let{oneStat:c,thinOneStat:_,mediascopePixel:R,statSubscription:ne}=ae;c&&(x||ne.add(c.attachTo(B)),ne.add(c.attachToUi(ft)),ne.add(c.attachToAds(me.events)),c.authorize(a).catch(Pe=>{W({message:`onestat auth error ${String(Pe)}`})}),R&&R.attachTo(B)),_&&(ne.add(_.attachTo(B,me.events)),ne.add(_.attachToUi(no)),ne.add(_.attachToAds(me.events)),_.updateContext({isMobile:he(at)}),_.authorize(a))}de&&(de.addSubscription(B.events.managedError$.subscribe(c=>{de.error(c,{severity:"debug"})})),de.addSubscription(B.events.fatalError$.subscribe(c=>{de.error(c,{severity:"fatal"})})),ae!=null&&ae.oneStat&&de.addSubscription(ae.oneStat.experimental.error$.subscribe(c=>{de.error(c,{severity:"warning"})})));let vn=()=>{if(gi.clientChecker.device.isIOS&&ke)try{ab(ke)}catch(c){W({message:`exitIosSafariFullscreen failed: ${c}`})}};we.add(B.experimental.element$.subscribe(c=>{c&&c!==ke&&(ke=c,c.classList.add("player-media"),Ie==null||Ie.updateVideoElement(),x&&c.setAttribute("pip","false"),(X==="preview"||!ue.features.pip&&!ue.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(B.events.ended$.subscribe(()=>{var c;vn(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(B.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(B.events.started$.subscribe(()=>xt(null,null,function*(){var _,R;ev(Ie)&&(yield Ie==null?void 0:Ie.revealPictureInPicture());let c=B.info.muted$.getValue();(_=s==null?void 0:s.onStarted)==null||_.call(s),(R=Qe.onStarted)==null||R.call(Qe,c)}))).add(B.events.willSeek$.subscribe(({from:c,to:_})=>{var R;(R=s==null?void 0:s.onSeek)==null||R.call(s,c,_,$t.getValue())})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(B.info.position$.subscribe(c=>{var R;let _=B.info.duration$.getValue();isFinite(_)&&_>0&&((R=s==null?void 0:s.onTimeupdate)==null||R.call(s,_,c),me.setPosition(c,_))})).add(B.events.fatalError$.subscribe(c=>{var _;(_=s==null?void 0:s.onCrashed)==null||_.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.fetcherRecoverableError$.subscribe(c=>{var _;(_=s==null?void 0:s.onRecoverableError)==null||_.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.loadedMetadata$.subscribe(()=>{qt.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{Le.set(c)})).add(B.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&$i.add(Zd),$i.add("PLAY_BUTTON")):$i.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var _;(_=s==null?void 0:s.onLiveTime)==null||_.call(s,c)})).add(B.info.isStalled$.subscribe(c=>{var _;(_=s==null?void 0:s.onStalledChanged)==null||_.call(s,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var _;return c&&((_=s==null?void 0:s.onLiveEnded)==null?void 0:_.call(s))})).add(me.events.loadStarted$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:_.call(c)})).add(me.events.loadEnded$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:_.call(c)})).add(me.events.loadError$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:_.call(c)})).add(me.events.init$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:_.call(c)})).add(me.events.ready$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:_.call(c)})).add(me.events.started$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onStarted)==null?void 0:R.call(_,c)})).add(me.events.timeRemained$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onTimeRemained)==null?void 0:R.call(_,c)})).add(me.events.ended$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onCompleted)==null?void 0:R.call(_,c)})).add(me.events.empty$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:_.call(c)})).add(me.events.clicked$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onClicked)==null?void 0:R.call(_,c)})).add(me.events.closed$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onClosed)==null?void 0:R.call(_,c)})).add(me.events.error$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onError)==null?void 0:R.call(_,c)})).add(me.events.paused$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:_.call(c)})).add(me.events.resumed$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:_.call(c)}));let U=new ct.Subscription,ot=()=>{var et,Lt,Ht;let{debugLog:c}=ue,_,R="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:Kt}=c;_=c.tag,R=(et=Kt==null?void 0:Kt[0])!=null?et:R,ne=(Ht=(Lt=Kt==null?void 0:Kt[1])!=null?Lt:Kt==null?void 0:Kt[0])!=null?Ht:ne}let Pe=_?`: ${_}`:"";U.add(B.events.log$.subscribe(Kt=>{console.debug(`%c sdk${Pe} `,`background:${R};`,`sdk component: ${Kt.component}`,Kt.message)})).add(fe.log$.subscribe(Kt=>{console.debug(`%c ui${Pe} `,`background:${ne};`,`ui component: ${Kt.component}.`,Kt.message)}))},Xt=()=>{U.unsubscribe()},_i=(c,_)=>{Z.log("start camera manual rotation",{mx:c,my:_}),B.startCameraManualRotation(c,_)},lt=(c=!1)=>{Z.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},li=(c,_,R)=>{Z.log("move camera focus px",{xpx:c,ypx:_,dt:R}),B.moveCameraFocusPX(c,_,R)},yi=()=>{B.holdCamera()},jt=()=>{B.releaseCamera()},It=Mr(B.info.position$.getValue(),c=>{let _,R,ne=()=>{let Pe=B.info.playbackState$.getValue(),et=B.info.isLive$.getValue(),Lt=B.info.duration$.getValue(),Ht=B.info.position$.getValue();if(Pe&&[gi.PlaybackState.PLAYING,gi.PlaybackState.PAUSED].includes(Pe)){let Kt=et?Ht-Lt:B.getExactTime();Kt!==R&&c(Kt),R=Kt}_=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(_)}),xo=oi(B.info.playbackState$),Fo=oi(B.info.isBuffering$),gn=mi([xo,Fo],([c,_])=>_?"buffering":c),hn=oi(B.info.currentBuffer$),ki=oi(B.info.isEnded$),Ii=oi(B.info.isLive$),_n=ue.features.playbackRate?oi(B.info.canChangePlaybackSpeed$):Mr(!1),br=oi(B.info.liveBufferTime$),Si=oi(B.info.volume$),Io=oi(B.info.muted$),Uo=Fu(B.info.predefinedQualityLimitType$.pipe((0,ct.map)(c=>c===gi.PredefinedQualityLimits.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.TRAFFIC_SAVING),zo=Fu(B.info.predefinedQualityLimitType$.pipe((0,ct.map)(c=>c===gi.PredefinedQualityLimits.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.HIGH_QUALITY),bn=oi(B.info.autoQualityLimitingAvailable$),ns=oi(B.info.availableQualities$),Ss=oi(B.info.availableQualitiesFps$),rs=oi(B.info.chromecastState$),$r=oi(B.info.chromecastDeviceName$),$n=oi(B.info.currentFormat$),ss=oi(B.info.throughputEstimation$),er=oi(B.info.videoBitrate$),Or=oi(B.info.intrinsicVideoSize$),Eo=oi(B.info.duration$),as=oi(B.info.isAudioAvailable$),yr=()=>{Vi&&clearTimeout(Vi),Vi=null},Nn=mi([Eo,Ii],([c,_])=>_?-c:c),Bn=mi([xo],([c])=>c===gi.PlaybackState.PLAYING),Hn=oi(B.info.atLiveEdge$),tr=oi(B.info.atLiveDurationEdge$),Nr=oi(B.info.position$),ls=mi([Nr,Eo],([c,_])=>isFinite(c)&&isFinite(_)&&!!_),Li=mi([rs],([c])=>c===gi.ChromecastState.CONNECTED),ds=oi(B.info.availableVideoStreams$),Wo=ue.features.audioLanguages?oi(B.info.availableAudioStreams$):Mr([]),ir=oi(B.info.currentVideoStream$),xr=oi(B.info.currentAudioStream$),or=c=>{c.language&&tm(c.language),B.setVideoStream(c)},mt=(c,_)=>{B.setAudioStream(c),ko(_)&&(c.language&&tm(c.language),ue.features.userVideoPrefs&&i&&nm(ue.userSalt,String(i),{audioTrackId:c.id}))},ei=c=>{let _;if(c.length===1&&(_=c.at(0)),_!=null||(_=c.find(ne=>"isDefault"in ne&&ne.isDefault)),ue.features.userVideoPrefs&&i){let ne=qu(ue.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Pe=c.find(et=>et.id===ne.audioTrackId);_=Pe!=null?Pe:_}}let R=Q_();return R&&(_!=null||(_=c.find(({language:ne})=>R===ne))),_!=null||(_=c.at(0)),_},wr=c=>{Z.log("change audio stream",{id:c});let _=B.info.availableAudioStreams$.getValue().find(R=>R.id===c);_&&mt(_,!0)},cs=!1;we.add(B.info.availableAudioStreams$.subscribe(c=>{if(!cs&&c.length){let _=ei(c);_&&(B.setAudioStream(_),cs=!0)}})),Wo.subscribe(c=>{var _;(_=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||_.call(s,c.map(({label:R="",id:ne="",language:Pe=""})=>({label:R,language:Pe,id:ne})))}),xr.subscribe(c=>{var _;return c&&((_=s==null?void 0:s.onAudioStreamChanged)==null?void 0:_.call(s,c.id))});let nr=!1;we.add(B.info.availableVideoStreams$.subscribe(c=>{if(!nr&&c.length){let _=ei(c);_&&(B.setVideoStream(_),nr=!0)}}));let an=re(void 0),Fn=oi(B.info.isAutoQualityEnabled$,c=>c&&an.set(void 0)),rr=oi(B.info.currentQuality$,()=>an.set(void 0)),Br=mi([an,rr],([c,_])=>c!=null?c:_),Ko=mi($n,c=>c!==gi.VideoFormat.MPEG),yn=mi([ns,Ss,Fn,Br,Ko],([c,_,R,ne,Pe])=>{let et=[];Pe&&et.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:R});let Lt=c.filter(Ht=>!(0,ct.isInvariantQuality)(Ht));for(let Ht of Lt){let Kt=_[Ht];et.push({value:Ht,displayValue:`${Ht}${Kt?Mb(Kt):""}`,selected:R?!1:Ht===ne})}return et}),Un=oi(B.info.currentPlaybackRate$),mo=mi([Un,Hn,tr],([c,_,R])=>{let ne=R||x?1:ue.controls.playbackRateMin,Pe=_?1:ue.controls.playbackRateMax,et=ue.controls.playbackRateStep,Lt=[];for(let Ht=ne;Ht<=Pe;Ht+=et)Lt.push({value:Ht,displayValue:Ht===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:Ht.toString(10)}),selected:c===Ht});return Lt}),Po=()=>({displayValue:Ue("subtitles_off"),value:On,language:""}),zn=re(Po()),Di=mi([zn,Se],([c],_)=>{c.value===On?_(Po()):_(c)}),sr=ue.features.subtitles?oi(B.info.availableTextTracks$):Mr([]),xn=R_(),Hr=mi([sr,Di],([c,_],R)=>{var et;let ne=[],Pe=c.find(({id:Lt})=>Lt===_.value);if(Pe!=null&&Pe.url){let[,Lt]=(et=xn.find(Pe.url))!=null?et:[];if(Lt){R(Lt);return}Te.download(Pe.url).then(Ht=>{if(!Ht||Te.isDestroyed())return;let Kt=new Vb,Js=Pe.language;if(Js){let z$=!!Pe.isAuto,W$=Kt.parse(Ht,Js);ne.push({lang:Js,subtitles:W$,isAuto:z$,id:Pe.id})}xn.add(Pe.url,ne),he(Di).value===_.value&&R(ne)}).catch(ct.suppressAbort).catch(Ht=>{var Kt;(Kt=ae==null?void 0:ae.oneStat)==null||Kt.logError({errorType:"Subtitles download",fatal:!1}),de==null||de.error({category:ct.ErrorCategory.WTF,id:"Subtitles download",message:String(Ht),thrown:Ht},{severity:"warning"})})}R(ne)}),yt=mi([Un,Bn,Di],([c,_,R],ne)=>{let Lt;if(B.info.isLive$.getValue()&&_&&R.value!==On){let Kt=()=>{let Js=1e3/(3*c);Lt=setTimeout(Kt,Js),ne(Date.now())};return Kt(),()=>clearTimeout(Lt)}}),ui=mi([sr,Di],([c,_])=>{if(!c.length)return[];let R=[];for(let{language:ne,isAuto:Pe,id:et}of c){let Lt=ne&&xc(ne);ne&&Lt&&R.push({displayValue:Pe?Ue("subtitles_auto",{language:Lt}):Lt,value:et,selected:(_==null?void 0:_.value)===et,isAuto:Pe,language:ne})}return R.length?(R.unshift(ti(Ge({},Po()),{selected:(_==null?void 0:_.value)===On})),R):[]}),Wt={available:[],prev:[]},ln=()=>{var _,R;let c=B.experimental.getCurrentTime$.getValue();return(R=(_=c==null?void 0:c())!=null?_:ke==null?void 0:ke.currentTime)!=null?R:0},wo=mi([It,Di,Hr,yt],([c,_,R,ne])=>{var et;let Pe=B.info.isLive$.getValue();if(Pe&&Wt.prev!==R){let Lt=R.find(({id:Kt})=>Kt===_.value),Ht=Wt.prev.find(({id:Kt})=>Kt===_.value);if(Lt){let Kt=ti(Ge({},Lt),{subtitles:[...(et=Ht==null?void 0:Ht.subtitles)!=null?et:[],...Lt.subtitles]});Wt.available=[Kt],Wt.prev=R}}if(_&&_.value!==On){let Lt=Pe?ln():c,Ht=Pe?Wt.available:R;return Ob(Lt,_,Ht,Pe)}}),wn=mi([wo],([c])=>c!=null&&c.texts?c.texts:[]);we.add(Di.subscribe(c=>{var _,R;if(c.value===On)(_=s==null?void 0:s.onSubtitleOff)==null||_.call(s);else{let ne=Object.entries(up).find(([Pe,et])=>et===c.displayValue);(R=s==null?void 0:s.onSubtitleOn)==null||R.call(s,ne?ne[0]:"",c.value)}}));let So=re(!0),ar=mi([hn,Nn,Nr,br],([c,_,R,ne])=>{var Ht;let Pe=(Ht=c==null?void 0:c.end)!=null?Ht:0;if(!ne)return Pe/_;let Lt=-R+ne-_;return(Pe-Lt)/_}),ro=oi(B.info.availableSources$),Sr=mi([ro],([c])=>Object.keys((c==null?void 0:c[gi.VideoFormat.MPEG])||{}).length>0),Ao=()=>{var R,ne,Pe;let c=Object.keys(((ne=(R=B.info.availableSources$)==null?void 0:R.getValue())==null?void 0:ne[gi.VideoFormat.MPEG])||{}),_=(0,ct.getHighestQuality)(c)||ct.VideoQuality.Q_144P;return(Pe=Ce.sources[gi.VideoFormat.MPEG])==null?void 0:Pe[_]},Sn=()=>{var _;let c=Ao();if(c)Z.log("download video",{url:c}),L_(c,((_=Ce==null?void 0:Ce.meta)==null?void 0:_.title)||"video");else{let R="There is no URL for download video";Z.log("download video",{message:R}),W({message:R})}},us=()=>{W({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?zr(Ur(),!1):Wn(!c,!1)},Fr=()=>{var c;if(zt.ui.settingsMenu.visible$.set(!1),!he(zt.ui.settingsSubMenu.visible$)){let _=he(zt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&_){let ne=nd(_),Pe={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Pe,name:"settings"})}}Z.log("close settings menu")},ps=(c,_=()=>Promise.resolve())=>xt(null,null,function*(){var Pe;zt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),zt.ui.settingsMenu.visible$.set(!0),yield _();let R=he(zt.ui.settingsMenu.ref$),ne=Sl();if((Pe=s==null?void 0:s.uiInfo)!=null&&Pe.onSettingsMenu&&R&&ne){let Lt=nd(R),Ht=Ks(R,ne);s.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ht,name:"settings"})}Z.log("open settings menu",{wasOpenedByKeyboard:c})}),so=(c,_=!1)=>{var et;zt.ui.settingsSubMenu.visible$.set(!1);let R=he(zt.ui.settingsMenu.ref$),ne=Sl(),Pe=he(zt.ui.settingsMenu.visible$);if((et=s==null?void 0:s.uiInfo)!=null&&et.onSettingsMenu&&R&&ne)if(Pe&&!_){let Ht=nd(R),Kt=Ks(R,ne);s.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Kt,name:"settings"})}else{let Ht=nd(c),Kt={top:0,left:0,bottom:0,right:0},Js=he(zt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ht,position:Kt,name:Js})}Z.log("close settings sub menu")},fs=(c,_)=>{var ne;zt.ui.settingsSubMenu.visible$.set(!0),zt.ui.settingsSubMenu.ref$.set(_),zt.ui.settingsSubMenu.name$.set(c);let R=Sl();if((ne=s==null?void 0:s.uiInfo)!=null&&ne.onSettingsMenu&&_&&R){let et=nd(_),Lt=Ks(_,R);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:et,position:Lt})}Z.log("open settings sub menu",{name:c})},Ur=()=>{var _;let c=Math.max(ue.volumeMinRestore,(_=Uu())!=null?_:0);return c===0?ue.volumeDefault:c},ko=c=>{let _=ue.features.savePreferredStatesOnUserActionOnly;return!_||_&&!c},zr=(c,_)=>{let R=c===0?Ur():c,ne=B.info.muted$.getValue();W({message:`set volume, volume: ${c}, preferredVolume: ${R}`});let Pe=!l||Bt.is("ads");ne&&c>0&&Pe&&(ne=!1,ko(_)&&Jf(!1)),B.setVolume(c,ne),me.setVolume(c),ko(_)&&Yf(R)},Wn=(c,_)=>{let R=B.info.volume$.getValue();W({message:`set muted, currentVolume: ${R}, mute: ${c}`});let ne=Bt.is("ads");if(B.setMuted(c,ne),me.setVolume(c?0:R),ko(_)&&(!ne||!c)&&Jf(c),!c&&R===0){let Pe=Ur();B.setVolume(Pe),ko(_)&&Yf(Pe),me.setVolume(Pe)}},vo=re(!1),go=c=>{var _,R;Z.log("set looped",{isLooped:c}),vo.set(c),B.setLooped(c),(R=(_=s==null?void 0:s.uiInfo)==null?void 0:_.onLoopedChanged)==null||R.call(_,c)};go(oe);let Xe=()=>{var c,_;(_=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||_.call(c)},Mt=(c,_=!1)=>{var R;W({message:`set autoplayNextEnabled, value: ${c}`}),Z.log("set autoplay next enabled",{autoplayNextEnabled:c}),zt.ui.autoplayNextEnabled$.set(c),j_(c),_&&((R=s==null?void 0:s.onSetAutoplayNextEnabled)==null||R.call(s,c))},fi=c=>{W({message:`set timerNextVideoRunning, value: ${c}`}),Z.log("set timer next video running",{timerNextVideoRunning:c}),zt.ui.timerNextVideoRunning$.set(c)},Lo=(c=!0)=>{var R;let _=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{_=(R=s==null?void 0:s.onPrevVideoClick)==null?void 0:R.call(s)}catch(ne){W({message:"onPrevVideoClick callback failed to execute"})}ee(!0),_&&j()},Mo=(c=!0)=>{var R;let _=!0;if(c&&(s!=null&&s.onNextVideoClick))try{_=(R=s==null?void 0:s.onNextVideoClick)==null?void 0:R.call(s)}catch(ne){W({message:"onNextVideoClick callback failed to execute"})}ee(!1),_&&te()},Co=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},ho=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Vo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},lr=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},dr=()=>{B.prepare()},qo=()=>{(0,ct.assertNonNullable)(zt);let c=he(zt.ui.controls.disabledControls$),_=he(zt.playerPhase),R={playerPhase:_,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Pi.set(!1),W({message:"toggle play"}),_==="ads"){R.action="play",Z.log("toggle adman play",R),me.togglePlay();return}let ne=()=>{var et;W({message:"toggle play, call player.play"}),R.action="play",B.play(),(et=s==null?void 0:s.onPlay)==null||et.call(s)},Pe=()=>{var et;W({message:"toggle play, call player.pause"}),R.action="pause",B.pause(),(et=s==null?void 0:s.onPause)==null||et.call(s)};if(B.info.isEnded$.getValue()){if(W({message:"toggle play, video ended, seek to 0"}),Ki.next(),$t.next(Dr.SeekAction.REWIND),x){D==null||D();return}B.seekTime(0),ne()}else B.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING?ne():Pe();Z.log("toggle play",R)},Bi=(c,{changeReason:_="default",appliesTo:R="to-video",byUser:ne=!1}={},Pe)=>{W({message:`set quality, quality: ${c}`}),Z.log("set quality",{quality:c}),ne&&qi.next(c),B.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:et}=ue.features;zu(),c!=="auto"?(et?(Wu({type:"exact_quality",quality:c,videoId:i},R),B.setPredefinedQualityLimits(gi.PredefinedQualityLimits.UNKNOWN)):jf(i,c),an.set(c),B.setQuality(c)):et&&_==="default"&&(Je("auto_quality",R,Pe),he(Uo)&&Kn(!1,void 0,Pe),he(zo)&&Qo(!1,void 0,Pe))},Kn=(c,_="as-default",R)=>{W({message:`set trafficSavingEnabled, value: ${c}`}),Z.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?gi.PredefinedQualityLimits.TRAFFIC_SAVING:gi.PredefinedQualityLimits.UNKNOWN;ue.features.qualityDetailsSubMenuEnabled?(Cr(ne,_,R),tc(!1)):(B.setPredefinedQualityLimits(ne),ko(R)&&tc(c))},Qo=(c,_="as-default",R)=>{W({message:`set highQualityEnabled, value: ${c}`}),Z.log("set high quality enabled",{highQualityEnabled:c}),Cr(c?gi.PredefinedQualityLimits.HIGH_QUALITY:gi.PredefinedQualityLimits.UNKNOWN,_,R)},Cr=(c,_,R)=>{c!==gi.PredefinedQualityLimits.UNKNOWN&&(he(bn)&&!he(Fn)&&Bi("auto",{appliesTo:_,changeReason:"limit-changed"},R),Je(c,_,R)),B.setPredefinedQualityLimits(c)},Je=(c,_,R)=>{ko(R)&&(Wu({type:c,videoId:i},_),_==="as-default"&&Wu({type:c,videoId:i},"to-video"))},Yt=(c,_=!0)=>{Z.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),ue.features.saveRate&&le&&!B.info.isLive$.getValue()&&_&&G_(c)},Mi=()=>{let c=he(_n),_=he(mo),R=_.findIndex(({selected:Pe})=>Pe);if(R===_.length-1||!c)return _[R];let ne=_[R+1];return Yt(ne.value),ne},Cn=()=>{let c=he(_n),_=he(mo),R=_.findIndex(({selected:Pe})=>Pe);if(R===0||!c)return _[R];let ne=_[R-1];return Yt(ne.value),ne},ao=(c=ti(Ge({},Po()),{selected:!1}),_)=>{Z.log("set subtitles",Ge({},c)),c.value!==On&&We.next(c.isAuto?c.value+"_auto":c.value),pi.next({enabled:c.value!==On,lang:c.language,auto:!!c.isAuto}),zn.set(c),ko(_)&&(om(c.value===On?void 0:c.language),ue.features.userVideoPrefs&&i&&nm(ue.userSalt,String(i),{subtitleTrackId:c.value===On?void 0:c.value}))},Wr=c=>{Z.log("toggle subtitles");let _=he(Di);(_==null?void 0:_.value)===On?Tr(c):Ir(c)},Go=(c,_)=>{Z.log("change subtitle",{enabled:c}),c?Tr(!0,_):Ir(!0)},Tr=(c,_)=>{if(he(pt))return;Z.log("subtitle on");let R=he(ui),ne=he(At),Pe=He!=null?He:ne,et;_&&(et=R.find(Lt=>Lt.value===_)),et!=null||(et=R.filter(Lt=>Lt.value!==On).find(Lt=>Lt.language===Pe)),ao(et!=null?et:R[1],c)},Ir=c=>{Z.log("subtitle off"),ao(void 0,c)};we.add(B.info.availableTextTracks$.subscribe(c=>{var R;function _(){let ne=[];for(let{language:Pe,isAuto:et,id:Lt}of c){let Ht=Pe&&xc(Pe);Pe&&Ht&&ne.push({id:Lt,language:Pe,title:et?Ue("subtitles_auto",{language:Ht}):Ht})}return ne}(R=s==null?void 0:s.onAvailableSubtitlesChanged)==null||R.call(s,_())}));let Cs=re(!0),Ts=c=>{Cs.set(c)},qn=(c,_,R=!0)=>{var ne;if(W({message:`seek to time, time: ${c}`}),Z.log("seek to time",{time:c,action:_,forcePrecise:R}),$t.next(_),B.info.isLive$.getValue()){let Pe=B.info.duration$.getValue(),et=Math.min(0,Pe+c);B.seekTime(et,R)}else{if(T!=null&&T.getValue())return;B.info.isEnded$.getValue()&&(W({message:"seek after ended, call callbacks.onPlay"}),(ne=s==null?void 0:s.onPlay)==null||ne.call(s)),B.seekTime(Tg(c),R)}},xa=c=>{W({message:`seek to episode start time: ${c}`}),Z.log("seek to episode start time",{time:c}),qn(c,Dr.SeekAction.EPISODE,!0)},ms=(c,_,R=!1)=>{W({message:`seek to percent, percent: ${c}`}),Z.log("seek to percent",{percent:c,action:_});let ne=he(Nn)*c;qn(ne,_,R)},wa=c=>{W({message:`seek external, time: ${c}`}),Z.log("seek external",{time:c}),$t.next(Dr.SeekAction.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Sa=c=>{var ne,Pe;let _=(ne=c.max)!=null?ne:"none",R=(Pe=c.min)!=null?Pe:"none";W({message:`set auto quality limitation. Max: ${_}. Min: ${R}`}),Z.log("set auto quality limits",{max:_,min:R}),B.setAutoQualityLimits(c)},gt=c=>{W({message:`seek external to episode start time: ${c}`}),Z.log("seek external to episode start time",{time:c}),qn(c,Dr.SeekAction.EPISODE,!0)},ni=c=>{W({message:`set playback rate to: ${c}`}),Z.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Pi=re(!1),xi=re(!1),Er=mi([Nn,pt],([c,_])=>!!p&&c>=ue.suitableDurationForUsingRichSeek&&ue.features.useRichSeek&&!x&&X!=="preview"&&!_),Is=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Es=mi([Nt],([c])=>{let _=rd(c);return Is?!_:_});we.add(Bt.subscribe(c=>{c!=="video"&&Pi.set(!1)})),Pi.subscribe(c=>{var _;(_=s==null?void 0:s.onRichSeekActiveChanged)==null||_.call(s,c)});let Kr=re(void 0),Hi=re(!1),Qi=c=>{W({message:`start scrubbing, progress: ${c}`}),Z.log("start scrubbing",{progress:c}),Hi.set(!0),ve(c)},ve=c=>{Kr.set(c)},ht,ri,Zt=()=>{Kr.set(void 0),Hi.set(!1)},Yo=()=>{clearTimeout(ri),clearTimeout(ht),ht=window.setTimeout(()=>{Zt()},500),ke==null||ke.removeEventListener("seeked",Yo)},Ro=(c,_=!1,R=Dr.ThinOneStat.ActionSeekType.SLIDER)=>{W({message:`complete scrubbing, progress: ${c}`}),Z.log("complete scrubbing",{progress:c}),ms(c,R,_),he(zt.ui.isMobile)&&he(zt.state.currentFormat$)===gi.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",Yo),ri=window.setTimeout(()=>{Yo()},300)):Zt()},lo=mi([It,Nn,Kr],([c,_,R],ne)=>{ne((0,ct.isNonNullable)(R)?R*_:c)}),dn=re(!1),Ps=()=>{dn.set(!0)},As=()=>{dn.set(!1)},js=mi([hi],([{width:c}],_)=>{let R=Ib(c);_(R)}),qr=q.filter(c=>M_(c)),Xs=mi([js,at],([c,_])=>_?qr.filter(R=>!R.hideOnMobile):qr.filter(R=>{var ne;return!((ne=R.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),Tn=re(q.filter(c=>V_(c))),Ca=mi([Tn,js],([c,_])=>c.filter(R=>{var ne;return!((ne=R.hideOnDesktopGridTypes)!=null&&ne.includes(_))})),_l=mi([Ca,Xs],([c,_])=>[...ue.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?_.map((R,ne)=>{var Pe;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(Pe=R.ariaLabel)!=null?Pe:R.tooltip,tooltipText:R.tooltip}}):[]].filter(R=>!v.disabledAdditionalButtonIds.includes(R.id))),Pr=re(L),_d=mi([Pr],([c])=>ue.features.additionalSettingsMenuItems?c.map(_=>_.type==="SWITCH"?ti(Ge({},_),{onClick:_.onChangeEnabled}):_):[]),bl=(c,_)=>{let R=he(Tn).map(ne=>ne.id!==c?ne:Ge(Ge({},ne),_));Tn.set(R)},$l=c=>{let _=he(Tn);if(_.some(R=>R.id===c.id)){W({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),Tn.set(_)},yl=c=>{let _=he(Tn);if(!_.some(R=>R.id===c)){W({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}_=_.filter(R=>R.id!==c),Tn.set(_)},bd=c=>{$t.next(Dr.SeekAction.LIVE),W({message:"live switch to low latency "+c}),Z.log("live switch to low latency "+c),B.setLiveLowLatency(c)},Ta=(c,_)=>{let R=he(Pr).map(ne=>ne.id!==c?ne:Ge(Ge({},ne),_));Pr.set(R)},xl=c=>{let _=he(Pr);if(_.some(R=>R.id===c.id)){W({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),Pr.set(_)},_t=c=>{let _=he(Pr);if(!_.some(R=>R.id===c)){W({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}_=_.filter(R=>R.id!==c),Pr.set(_)},ut=re(z),Oi=mi([ut],([c])=>ue.features.additionalContextMenuItems?c:[]),jo=(c,_)=>{let R=he(ut).map(ne=>ne.id!==c?ne:Ge(Ge({},ne),_));ut.set(R)},Gi=c=>{let _=he(ut);if(_.some(R=>R.id===c.id)){W({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),ut.set(_)},wi=c=>{let _=he(ut);if(!_.some(R=>R.id===c)){W({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}_=_.filter(R=>R.id!==c),ut.set(_)},Fi=mi([at,$e],([c,_],R)=>{R(c&&_)}),Ia=()=>{$t.next(Dr.SeekAction.LIVE),W({message:"switch to active live"}),Z.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING&&zt.actions.internal.togglePlay()},wl=()=>{Z.log("skip adman"),me.skip()},Fp=(c=!0)=>{var ne;(0,ct.assertNonNullable)(zt),W({message:`switch from ads to video, callPlay: ${c}`}),Z.log("switch from ads to video",{callPlay:c}),xe.set("video"),c&&B.play(),l&&Wn(!0,!0);let _=(ne=he(Et))==null?void 0:ne.muted,R=!B.info.muted$.getValue();_!==void 0&&!R&&Wn(_,!0),Et.set(void 0)},iu=()=>{(0,ct.assertNonNullable)(zt),W({message:"switch from video to ads"}),Z.log("switch from video to ads"),zt.actions.internal.pause(),vn(),xe.set("ads")},Up=c=>{(0,ct.assertNonNullable)(zt);let _=c?"LiveWaitingStart":"thumb";Z.log("set live waiting start",{state:c,playerPhase:_}),xe.set(_)},ou=c=>{(0,ct.assertNonNullable)(zt);let _=c?"LiveWaitingRecover":"thumb";Z.log("set live waiting recover",{state:c,playerPhase:_}),xe.set(_)},zp=c=>{(0,ct.assertNonNullable)(zt);let _=c?"LiveWaitingRecord":"thumb";Z.log("set live waiting record",{state:c,playerPhase:_}),xe.set(_)},nu=()=>((0,ct.assertNonNullable)(zt),Z.log("get debug text data"),A_(B,Ce,zt,pe.getTraceId(),Ee)),Wp=()=>((0,ct.assertNonNullable)(zt),JSON.stringify(pe.getFinishedSpans())),ru=()=>((0,ct.assertNonNullable)(zt),k_(B,Ce,zt)),Sl=()=>ke,su=()=>{W({message:"toggle chromecast"}),Z.log("toggle chromecast"),B.toggleChromecast()},Zs=c=>{var R;if((0,ct.assertNonNullable)(zt),B.info.isEnded$.getValue())return;let _=!c;if(he(zt.playerPhase)==="ads"){W({message:`pause ads, internalCall: ${_}`}),Z.log("pause ads",{internalCall:_}),me.pause();return}W({message:`pause video, internalCall: ${_}`}),Z.log("pause video",{internalCall:_}),_&&((R=s==null?void 0:s.onPause)==null||R.call(s)),B.pause()},Ea=c=>{var R;(0,ct.assertNonNullable)(zt);let _=!c;if(he(zt.playerPhase)==="ads"){W({message:`play ads, internalCall: ${_}`}),Z.log("play ads",{internalCall:_}),me.play();return}W({message:`play video, internalCall: ${_}`}),Z.log("play video",{internalCall:_}),_&&((R=s==null?void 0:s.onPlay)==null||R.call(s)),B.play()},Kp=c=>{(0,ct.assertNonNullable)(zt);let _=!c;if(he(zt.playerPhase)==="ads"){W({message:"player cannot be stopped during ads via external method"});return}W({message:`player will be stopped, internalCall: ${_}`}),A==null||A()},$d=(c,_)=>{(0,ct.assertNonNullable)(zt),W({message:`first start, show ads: ${c}, internalCall: ${!_}`}),Z.log("first start",{showAds:c,external:_}),c?xe.set("ads"):(xe.set("video"),_?B.play():zt.actions.internal.togglePlay())},yd=()=>(W({message:"getting time codes"}),m),xd=()=>{let c=yd();if(!c||[0,1].includes(c.length))return;let _=B.info.position$.getValue();return c.find(R=>R.time>_)},qp=c=>{let _=c;_||(_=xd());let R=B.info.position$.getValue();Z.log("seek to next episode",Ge({currentTime:R},_)),_&&(W({message:"seek to next episode"}),qn(_.time,Dr.SeekAction.EPISODE,!0))},au=()=>{let c=yd();if(!c||[0,1].includes(c.length))return;let _=B.info.position$.getValue(),R=c.findIndex(Pe=>Pe.time>_),ne=R===-1?c.length-2:R-2;if(!(ne<0))return c[ne]},Qp=c=>{let _=c;_||(_=au());let R=B.info.position$.getValue();Z.log("seek to prev episode",Ge({currentTime:R},_)),_&&(W({message:"seek to prev episode"}),qn(_.time,Dr.SeekAction.EPISODE,!0))},qe=()=>(W({message:"getting preview thumbs data"}),Z.log("get preview thumbs data",Ge({},p)),p),bi=()=>xt(null,null,function*(){let c=Ie==null?void 0:Ie.isActive(),_="none";Ie!=null&&Ie.isActive()?(_="exit",yield Ie==null?void 0:Ie.exit()):(_="request",yield Ie==null?void 0:Ie.request()),Z.log("toggle picture in picture",{isActive:c,action:_})}),Xo=(c=-90)=>{Z.log("rotate video",{alphaDiff:c}),Nt.update(_=>_+c)},In=re([]);I==null||I.subscribe(c=>{let _=[];for(let R=0;R<c.length;R++){let{range:[ne,Pe],subjects:et}=c[R];R===0&&ne!==0&&_.push({time:0,text:"",interactive:!1,completed:!0}),_.push({time:ne/1e3,text:"",interactive:!0,completed:ue.features.interactiveTimeOpenUri?!et.length||et.every(Lt=>Lt.isRemoved):!et.length}),Pe!==1/0&&_.push({time:Pe/1e3,text:"",interactive:!1,completed:!0})}In.set(_)});let En=re(!1);T==null||T.subscribe(c=>{c&&he(Hi)&&Zt()});let Tg=c=>{if(!x)return c;let _=he(In),R=he(Nn),Pe=he(Nr)/R,et=_.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Pe);return typeof(et==null?void 0:et.time)=="number"?Math.min(c,et.time-.05):c},D$=()=>{zt.ui.episodes.panelOpened$.set(!1)},O$=()=>{Z.log("destroy store"),clearTimeout(ri),clearTimeout(ht),we.unsubscribe(),U.unsubscribe(),B.destroy(),me.destroy(),ae==null||ae.destroy(),Oe.unsubscribe(),rt==null||rt.disconnect(),rt=null,Te.destroy(),de==null||de.destroy()},N$=mi([Hn,Bt,_n],([c,_,R])=>v.features.doubleForwardAvailable&&!c&&_==="video"&&R),Gp=re(!1),Ig=2,lu=null,Eg=c=>{if(!he(Bn)&&c)return;let _=B.info.currentPlaybackRate$.getValue();c?_!==Ig&&(lu=_,Yt(Ig,!1),Gp.set(!0)):(lu&&Yt(lu,!1),Gp.set(!1),lu=null)};Bt.subscribe(c=>{c!=="video"&&Eg(!1)});let B$=()=>{Zs(!1),Pi.set(!0)},H$=()=>{Ea(!1),Pi.set(!1)},Yp=!1,F$=()=>{xi.set(!0),Yp=B.info.playbackState$.getValue()===gi.PlaybackState.PLAYING,Zs(!1)},U$=()=>{xi.set(!1),!he(Pi)&&Yp&&Ea(!1),Yp=!1};B.events.playing$.subscribe(()=>{he(Pi)&&Zs(!1)});let zt={interfaceLanguage$:At,isCyrillicRelatedInterface$:je,initVideo:oo,videoId:i,isClip:o,playerPhase:Bt,vsid:Pt,state:{positionExact$:It,positionWithScrubbing$:lo,duration$:Nn,playbackState$:xo,playbackStateRealistic$:gn,isPlaying$:Bn,isLoaderVisible:di,bufferedProgress$:ar,isLive$:Ii,canChangePlaybackSpeed$:_n,isActiveLive$:Hn,isOldestAvailableLive$:tr,isRewindableLive$:ls,isEnded$:ki,muted$:Io,volume$:Si,trafficSavingEnabled$:Uo,highQualityEnabled$:zo,autoQualityLimitingAvailable$:bn,availableVideoStreams$:ds,availableAudioStreams$:Wo,videoStream$:ir,audioStream$:xr,currentQuality$:Br,isAutoQualityEnabled$:Fn,availableQualities$:yn,currentPlaybackRate$:Un,availablePlaybackRates$:mo,currentSubtitle$:Di,availableTextTracks$:sr,availableSubtitlesList$:ui,currentSubtitleCaptions$:wn,isAutoSubtitleCaptionVisible$:So,chromecastState$:rs,chromecastDeviceName$:$r,chromecastConnected$:Li,currentFormat$:$n,throughputEstimation$:ss,videoBitrate$:er,videoSize$:Or,errorLog$:Y,crashed$:$e,isAudioAvailable$:as,isAudioDisabled:!!l,canDownload:ue.features.download&&!!d,availableSources$:ro,hasMpegSources$:Sr,isInteractive:x,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!he(In).length,interactiveEpisodes$:In,isInteractiveTime$:T?oi(T):re(!1),isInteractiveExpectation$:En,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,looped$:vo,loadedMetadata$:qt,isAutoQualityAvailable$:Ko,previewTrackActive:Pi,previewTrackDragInProgress:xi},ui:{t:Ue,isMinimalView$:pt,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),"theater-mode-button":re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:q.length?q.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:$i},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:dt,isFullscreenOpenedByKeyboard:ai,rotateAlpha:Nt,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:hi,isMobile:at,mobileNotReportControlHidden$:Fi,icon3DVideoVisible:re(!1),scrubbingInProgress:Hi,volumeChangingInProgress:dn,is3DVideo:Le,currentGridType$:js,additionalButtonsDeprecated$:Xs,additionalDesktopControlPanelRightButtons$:_l,additionalSettingsMenuItems$:_d,additionalContextMenuItems$:Oi,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:Cs,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0),doubleForwardOn$:Gp,doubleForwardAvailable$:N$,previewTrackActive:Pi,previewTrackDragInProgress:xi,previewTrackAvailable:Er,isPreviewTrackHorizontallyAligned:Es},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:Ie,annotationsApi:nt,slotsApi:Me,focusManager:be},actions:{internal:{preload:dr,firstStart:c=>$d(c,!1),play:()=>Ea(!1),pause:()=>Zs(!1),togglePlay:qo,toggleMuted:us,openSettingsMenu:ps,closeSettingsMenu:Fr,openSettingsSubMenu:fs,closeSettingsSubMenu:so,setVolume:c=>zr(c,!1),setMuted:c=>Wn(c,!1),startVolumeChanging:Ps,stopVolumeChanging:As,setVideoStream:or,setAudioStream:c=>mt(c,!1),setQuality:(c,_)=>Bi(c,_,!1),setTrafficSavingEnabled:(c,_)=>Kn(c,_,!1),setHighQualityEnabled:(c,_)=>Qo(c,_,!1),setPlaybackRate:Yt,incrementPlaybackRate:Mi,decrementPlaybackRate:Cn,setSubtitle:c=>ao(c,!1),toggleSubtitle:()=>Wr(!1),togglePictureInPicture:bi,startScrubbing:Qi,progressScrubbing:ve,completeScrubbing:Ro,toggleChromecast:su,switchToActiveLive:Ia,switchFromAdsToVideo:Fp,switchFromVideoToAds:iu,skipAd:wl,setLiveWaitingStart:Up,setLiveWaitingRecover:ou,setLiveWaitingRecord:zp,getDebugTextData:nu,getTraceTextData:Wp,getDebugPanelData:ru,getVideoElement:Sl,seekTime:(c,_,R)=>qn(c,_,R),clearDelayedBufferingCheckTimeout:yr,seekEpisodeStartTime:xa,seekToPercent:ms,getNextEpisode:xd,seekToNextEpisode:qp,getPrevEpisode:au,seekToPrevEpisode:Qp,startLogging:ot,stopLogging:Xt,startCameraManualRotation:_i,stopCameraManualRotation:lt,moveCameraFocusPX:li,holdCamera:yi,releaseCamera:jt,getVideoEpisodes:yd,getPreviewThumbsData:qe,downloadVideo:Sn,addLanguage:rm,setLanguage:vt,nextMovie:ci,videoRotate:Xo,correctSeekTimeToInteractive:Tg,replayInteractive:D,setLooped:go,reportProblem:Xe,setAutoplayNextEnabled:Mt,setTimerNextVideoRunning:fi,prevVideoClick:Lo,nextVideoClick:Mo,nextVideoAnnouncementShow:Co,nextVideoAnnouncementClick:ho,nextVideoAnnouncementAuto:Vo,nextVideoAnnouncementCancel:lr,checkFullscreenSupport:Tt,changeDoubleForwardOn:Eg,closePreviewTrack:H$,previewTrackOpened:B$,previewTrackDragStarted:F$,previewTrackDragFinished:U$},external:{firstStart:c=>$d(c,!0),play:()=>Ea(!0),pause:()=>Zs(!0),stop:()=>Kp(!0),seekTime:c=>wa(c),seekEpisodeStartTime:c=>gt(c),setPlaybackRate:c=>ni(c),setAutoQualityLimits:c=>Sa(c),setMuted:c=>Wn(c,!0),toggleSubtitle:()=>Wr(!0),changeSubtitle:Go,setVolume:c=>zr(c,!0),returnFocusToEpisodes:D$,updateAdditionalSettingsItem:Ta,addAdditionalSettingsItem:xl,removeAdditionalSettingsItem:_t,updateAdditionalContextItem:jo,addAdditionalContextItem:Gi,removeAdditionalContextItem:wi,updateAdditionalButton:bl,addAdditionalButton:$l,removeAdditionalButton:yl,setLiveLowLatency:bd,hideControls:()=>Ts(!1),showControls:()=>Ts(!0),setQuality:c=>Bi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Kn(c,"to-video",!0),setHighQualityEnabled:c=>Qo(c,"to-video",!0),changeAudioStream:wr,setMinimalView:Ne}},callbacks:s,setUiCallbacks:c=>{Qe=Ge({},c)},getAdmanWrapper:()=>me,getLogger:()=>fe,getPlayer:()=>B,destroy:O$};return zt};function Zn(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Ks(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var f2=["disabledControls$","additionalButtons"],m2=["interactiveTimeIndicator"],ad=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!f2.includes(r)){let l=o||m2.includes(r);a.set(Zn(t,i,r,l))}}};var hp=(t,e,i)=>xt(null,null,function*(){yield yo(),e&&i&&(i.focus(),t.set(!1))});var v2=Ae('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function nv(t){Ze(t,{children:(e,i)=>{var o=v2();b(e,o)},$$slots:{default:!0}})}function rv(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(s,"$contextMenuVisible$",i),a=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=ye(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,$=K(void 0);Fe(()=>{n($)&&kt(()=>{v.set(n($))})});let y=T=>{let D=fa(T),A=_b(n($));p.set(A),u.set(D),s.set(!r())},g=()=>{m.set(!0)},x=()=>{m.set(!1)},I=f(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:g,blur:x,get ariaExpanded(){return r()},get ref(){return n($)},set ref(T){O($,T,!0)},children:(T,D)=>{nv(T,{})},$$slots:{default:!0}}),F(),o()}var g2=t=>{t.stopPropagation()},h2=k("<div><!> <div></div> <div></div></div>"),_2={hash:"s-25",code:'.interactive-episode-icon-animated.s-25{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-25{height:28px;width:28px}.invisible.s-25{opacity:0;visibility:hidden}.fullscreen.s-25:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-25{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-25{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-25{right:16px;top:40px}}@keyframes s-25-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-25{animation:s-25-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-25{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-25{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-25{display:none}'};function Ic(t,e){var fe;H(e,!0),Q(t,_2);let[i,o]=Be(),r=()=>w(x,"$isMobile",i),a=()=>w(A,"$areControlsVisible",i),l=()=>w(V,"$currentGridType$",i),d=()=>w(T,"$isInteractiveTime$",i),s=()=>w(g,"$interactiveControlsOpacity$",i),u=()=>w(D,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>w(I,"$isFullscreen",i),p=h(e,"ref",15,void 0),v=K(void 0),$=ye(),y=To(),{interactiveControlsOpacity$:g}=y,x=$.ui.isMobile,I=$.ui.isFullscreen,T=$.state.isInteractiveTime$,D=y.showInteractiveTimeIndicatorTooltip$,A=$.ui.controlsVisible,E=(fe=$.callbacks)==null?void 0:fe.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,q=f(()=>!r()&&a()),L=f(()=>Us(l(),"s")),z=f(()=>!d()||!!s()||n(q)),j=K(!1);Fe(()=>{O(j,n(z),!0)});let te=()=>{O(j,!0)},ee=()=>{var me;oe(),(me=n(v))==null||me.addEventListener("animationiteration",te,{once:!0})},oe=()=>{var me;O(j,!1),(me=n(v))==null||me.removeEventListener("animationiteration",te)},ae=me=>{D.set(me)},le=f(()=>u()&&!n(z));Fe(()=>{u()?ee():oe()});let ce=()=>{n(z)||(D.set(!0),E==null||E())};pn(()=>{D.clearTimeout(),oe()});let X=()=>{D.set(!1)},_e=G("tooltip_interactive_interaction_time_indicator");var Ee=h2();let de;Ee.__mousemove=[g2],Ee.__click=ce;var ze=C(Ee);Bo(ze,{get tooltipContent(){return _e},get tooltipVisible(){return n(le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ae,get ref(){return p()},set ref(me){p(me)},children:(me,Ie)=>{vc(me,{completed:!0})},$$slots:{default:!0}});var ue=P(ze,2);let pe;it(ue,me=>p(me),()=>p());var Z=P(ue,2);let B;it(Z,me=>O(v,me),()=>n(v)),S(Ee),N((me,Ie,nt)=>{de=ie(Ee,1,"interactive-episode-icon-animated s-25",null,de,me),pe=ie(ue,1,"ref-block s-25",null,pe,Ie),B=ie(Z,1,"pulse s-25",null,B,nt)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(L)}),()=>({hidden:n(z)}),()=>({paused:n(j)})]),bt("mouseleave",Ee,X),b(t,Ee),F(),o()}tt(["mousemove","click"]);function _p(t,e){H(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),a=h(e,"ref",15),l=h(e,"tooltipVisible",3,!1);Bo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Re();let m=f(()=>e.buttonComponent);var p=se(u);Wi(p,()=>n(m),(v,$)=>{$(v,Jr(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),F()}var qs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var $2=Ae('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function _a(t,e){H(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${fn(e.size)}${n(o)}`),a=f(()=>i()?"prev-icon":"next-icon");Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=$2();b(l,s)},$$slots:{default:!0}}),F()}var y2=k('<div class="icon-background-mobile s-20"><!></div>'),x2={hash:"s-20",code:".icon-background-mobile.s-20{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function ol(t,e){H(e,!0),Q(t,x2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=ye().ui.t,d=f(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=f(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=f(()=>`btn-${o()?"m":"d"}--${e.type}`);Ut(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{var v=Re(),$=se(v);{var y=x=>{var I=y2(),T=C(I);let D=f(()=>e.type==="prev");_a(T,{get size(){return"32"},get reversed(){return n(D)}}),S(I),b(x,I)},g=x=>{let I=f(()=>e.type==="prev");_a(x,{get size(){return"24"},get reversed(){return n(I)}})};M($,x=>{o()?x(y):x(g,!1)})}b(m,v)},$$slots:{default:!0}}),F()}var w2=Ae('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function Ec(t,e){H(e,!0);let i=f(()=>fn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=w2();b(o,a)},$$slots:{default:!0}}),F()}var Wb=require("@vkontakte/videoplayer-shared/es2015");var S2=k('<div class="icon-background-mobile s-24"></div>'),C2=k("<!> <div><!></div>",1),T2={hash:"s-24",code:".mobile.s-24{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-24{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function ld(t,e){H(e,!0),Q(t,T2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),a=h(e,"className",3,""),l=h(e,"click",3,Wb.noop),d=G("tooltip_restart"),s=f(()=>`${o()?"btn-m--play":""} ${a()}`);Ut(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ys.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=C2(),v=se(p);{var $=T=>{var D=S2();b(T,D)};M(v,T=>{o()&&T($)})}var y=P(v,2);let g;var x=C(y);let I=f(()=>o()?"48":"24");Ec(x,{get size(){return n(I)}}),S(y),N(T=>g=ie(y,1,"s-24",null,g,T),[()=>({mobile:o()})]),b(u,p)},$$slots:{default:!0}}),F()}var I2=Ae('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Qs(t,e){H(e,!0);let i=f(()=>fn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=I2();b(o,a)},$$slots:{default:!0}}),F()}var Kb=require("@vkontakte/videoplayer-shared/es2015");var E2=k('<div class="icon-background-mobile s-22"><!></div>'),P2={hash:"s-22",code:".icon-background-mobile.s-22{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function dd(t,e){H(e,!0),Q(t,P2);let[i,o]=Be(),r=()=>w(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=To(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),s=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),m=h(e,"className",3,""),p=h(e,"click",3,Kb.noop),$=ye().ui.t,{toggle:y}=a,g=f(()=>y),x=f(()=>r()!==null),I=f(()=>n(x)?r():s()),T=f(()=>n(I)?$("tooltip_pause"):$("tooltip_play")),D=f(()=>n(I)?Qs:_r),A=f(()=>`${d()?"btn-m--play":""} ${m()}`),E=f(()=>n(x)?n(g):p());Ut(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return ys.KeyK},get ref(){return l()},set ref(V){l(V)},children:(V,q)=>{var L=Re();let z=f(()=>n(D));var j=se(L);{var te=oe=>{var ae=E2(),le=C(ae);Wi(le,()=>n(z),(ce,X)=>{X(ce,{get size(){return"48"}})}),S(ae),b(oe,ae)},ee=oe=>{var ae=Re(),le=se(ae);Wi(le,()=>n(z),(ce,X)=>{X(ce,{get size(){return"24"}})}),b(oe,ae)};M(j,oe=>{d()?oe(te):oe(ee,!1)})}b(V,L)},$$slots:{default:!0}}),F(),o()}var A2=Ae('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function sv(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=A2();b(e,o)},$$slots:{default:!0}})}function Pc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=G("tooltip_interactive_go_back"),l=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{sv(d,{})},$$slots:{default:!0}}),F()}var k2=k('<span class="gutter s-26"><span><!></span></span>'),L2={hash:"s-26",code:".gutter.s-26{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-26{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-26{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Ac(t,e){H(e,!0),Q(t,L2);let[i,o]=Be(),r=()=>w(s,"$autoplayNextEnabled$",i),a=h(e,"ref",15,void 0),l=ye(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",$="#000",y=f(()=>r()?"true":"false");Ut(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(g){a(g)},children:(g,x)=>{var I=k2(),T=C(I);let D;var A=C(T);{var E=q=>{_r(q,{get size(){return v},fill:$})},V=q=>{Qs(q,{get size(){return v},fill:$})};M(A,q=>{r()?q(E):q(V,!1)})}S(T),S(I),N(q=>D=ie(T,1,"toggler s-26",null,D,q),[()=>({enabled:r()})]),b(g,I)},$$slots:{default:!0}}),F(),o()}var M2=Ae('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function av(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=M2();Jt(),b(e,o)},$$slots:{default:!0}})}function kc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=G("tooltip_interactive_seek"),l=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{av(d,{})},$$slots:{default:!0}}),F()}var V2=Ae('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),R2=Ae('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function lv(t,e){let i=h(e,"isOpened",3,!1),o=f(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=R2(),d=P(se(l));{var s=u=>{var m=V2();b(u,m)};M(d,u=>{i()&&u(s)})}b(r,l)},$$slots:{default:!0}})}function Lc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=h(e,"graphIsOpened",3,!1),d=ye().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{let v=f(()=>!!a());lv(m,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),F()}var dv=require("@vkontakte/videoplayer-core/es2015");function Mc(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(u,"$playbackState$",i),a=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),s=ye(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===dv.PlaybackState.PAUSED&&p()}),$=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),g=f(()=>l()&&r()===dv.PlaybackState.PLAYING);Ut(t,{get className(){return n($)},get testId(){return n(y)},get disabled(){return n(g)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{rc(x,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var cv=require("@vkontakte/videoplayer-shared/es2015");var D2=k('<div class="icon icon-error-stub"><div class="inner"></div></div>'),O2=k('<img class="icon" aria-hidden="true"/>');function nl(t,e){"use strict";let i=K(!1),o=()=>{O(i,!0)};var r=Re(),a=se(r);{var l=s=>{var u=D2();b(s,u)},d=s=>{var u=O2();N(()=>De(u,"src",e.icon)),bt("error",u,o),Ha(u),b(s,u)};M(a,s=>{n(i)?s(l):s(d,!1)})}b(t,r)}function uv(t,e){H(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,cv.noop),r=h(e,"ref",15),a=f(()=>o()===cv.noop),l=f(()=>n(a)||i()),d=f(()=>n(a)?"btn-full-opacity":"");Bo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let m=f(()=>{var p;return(p=e.testId)!=null?p:e.id});Ut(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(p,v)=>{nl(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var qb=t=>!!t.buttonComponent;var Gs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var bp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(Zn(t,i,r,o))};var $p=require("@vkontakte/videoplayer-shared/es2015"),Qb=10,Gb=40,pv=.2,B2=.5,H2=65,F2=114,U2=4,Yb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=f(()=>i?H2:F2),r=K(!1),a=K(0),l=K(0),d=f(()=>n(o)+Qb-Gb-U2),s=f(()=>(0,$p.interpolate)(n(a),[pv,1],[0,-n(d)])),u=f(()=>(0,$p.interpolate)(n(a),[pv,1],[0,Gb])),m=f(()=>(0,$p.interpolate)(n(a),[pv,1],[0,n(o)+Qb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:g=>{var x;O(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:g=>{if(!n(r))return;let x=Math.max(Math.min(g.clientY-n(l),0),-n(d));O(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(a,n(a)>=B2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{O(a,0)}}};var z2=t=>t;function ba(t,{delay:e=0,duration:i=400,easing:o=z2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var W2=k('<span class="root s-2b"> </span>'),K2={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function fv(t,e){Q(t,K2);var i=W2(),o=C(i,!0);S(i),N(()=>ge(o,e.time)),b(t,i)}var q2=k('<div class="tooltip-wrapper s-13"><div><!></div></div>'),Q2={hash:"s-13",code:'.tooltip-wrapper.s-13{display:block;position:relative}.tooltip.s-13{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-13:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-13{opacity:1;visibility:visible}'};function mv(t,e){Q(t,Q2);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),a=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function m(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return x<T?T+l():x>e.containerWidth-T?e.containerWidth-T-d():x}let p=f(()=>m(r()));var v=q2(),$=C(v);let y;var g=C($);ii(g,()=>{var x;return(x=e.children)!=null?x:wt}),S($),it($,x=>O(u,x),()=>n(u)),S(v),it(v,x=>O(s,x),()=>n(s)),N(x=>{Ke(v,`transform: translate(${n(p)}px, ${a()}px);`),y=ie($,1,"tooltip s-13",null,y,x),Ke($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,v)}var jb=t=>Math.abs(t)/90%4===1;var G2=Ae('<path xmlns="http://www.w3.org/2000/svg" d="M15.782 10.152a.75.75 0 0 1-1.06 0L9.999 5.438l-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.246a.75.75 0 0 1 0 1.06Z"></path><path xmlns="http://www.w3.org/2000/svg" d="M15.782 16.152a.75.75 0 0 1-1.06 0l-4.723-4.715-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.245a.75.75 0 0 1 0 1.061Z"></path>',1);function vv(t){Ze(t,{height:"20",width:"20",shadow:!0,children:(e,i)=>{var o=G2();Jt(),b(e,o)},$$slots:{default:!0}})}var Y2=k('<div class="rich-seek-hint s-12"><span class="icon_wrapper s-12"><!></span> <span class="rich-seek-hint-text s-12"> </span></div>'),j2=k('<div class="preview s-12"><!></div>'),X2=k('<div class="episode s-12"><!></div>'),Z2=k('<div class="time s-12"> </div>'),J2=k("<div><!> <!> <!></div>"),ew={hash:"s-12",code:".timeline-preview.s-12{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-12{bottom:72px}.preview.s-12{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow);display:flex;justify-content:center}.episode.s-12{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-12,.time.s-12{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-12{color:var(--white)}.rich-seek-hint.s-12{position:absolute;text-align:center;top:-12px;transform:translateY(-100%)}.icon_wrapper.s-12{display:inline-block;height:20px;margin-right:6px;vertical-align:top;width:20px}.rich-seek-hint-text.s-12{font-size:14px;line-height:18px;text-shadow:0 2px 4px rgba(0,0,0,.3),0 7px 16px rgba(0,0,0,.25);vertical-align:top}"};function gv(t,e){H(e,!0),Q(t,ew);let[i,o]=Be(),r=()=>w(x,"$isMinimalView$",i),a=()=>w(I,"$rotateAlpha",i),l=()=>w(T,"$playerSize",i),d=()=>w(D,"$previewTrackAvailable",i),s={MOBILE:150,DESKTOP:278},u=h(e,"time",3,""),m=h(e,"isMobile",3,!1),p=h(e,"videoEpisodes",19,()=>[]),v=h(e,"progress",3,0),$=h(e,"duration",3,0),y=h(e,"isInteractive",3,!1),g=ye(),x=g.ui.isMinimalView$,I=g.ui.rotateAlpha,T=g.ui.playerSize,D=g.ui.previewTrackAvailable,A=K(0),E=K(0),V=K(""),q=K(0),L=K(0),z=K(0),j=K(0),te=f(()=>sp(v(),$(),p())),ee=f(()=>!r()),oe=f(()=>rd(a())),ae=f(()=>jb(a())),le=f(_e),ce=f(()=>(n(ae)?1:-1)*(n(A)/2-n(E)/2)),X=f(()=>n(ce)*-1);Fe(()=>{(Me=>{O(A,Me.width,!0),O(E,Me.height,!0)})(de())}),Fe(()=>{(Me=>{O(V,Me.imgSrc,!0),O(q,Me.imgWidth,!0),O(L,Me.imgHeight,!0),O(z,Me.imgOffsetX,!0),O(j,Me.imgOffsetY,!0)})(ze(v()))});function _e(){var Ce;let Me=m()?s.MOBILE:s.DESKTOP,{isVertical:be}=Ee(),W=30;return(Ce=n(te))!=null&&Ce.text&&(W+=16),(be||n(oe))&&(W+=18,W+=50),Math.min(Math.max(l().height-W,0),Me)}function Ee(){let Me=e.previewThumbsData.frameWidth,be=e.previewThumbsData.frameHeight,W=be>Me;return{width:Me,height:be,isHorizontal:!W,isVertical:W}}function de(){let{height:Me,isHorizontal:be,isVertical:W,width:Ce}=Ee();return be&&(Me=Me/Ce*n(le),Ce=n(le)),W&&(Ce=Ce/Me*n(le),Me=n(le)),{width:Ce,height:Me}}function ze(Me){let be;e.previewThumbsData.isUV?be=Math.floor($()*Me/e.previewThumbsData.frequency):be=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Me)));let W=Math.floor(be/e.previewThumbsData.countPerImage),Ce=Math.floor(be%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ke=be%e.previewThumbsData.countPerRow,Qe=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&W===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Qe=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Qe++);let Te=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&W===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Te=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let we=n(A)*Te,He=n(E)*Qe,at=-ke*n(A),pt=-Ce*n(E);return{imgSrc:e.previewThumbsData.links[W],imgWidth:we,imgHeight:He,imgOffsetX:at,imgOffsetY:pt}}var ue=J2();let pe;var Z=C(ue);{var B=Me=>{var be=j2(),W=C(be);{var Ce=ke=>{var Qe=Y2(),Te=C(Qe),we=C(Te);vv(we,{}),S(Te);var He=P(Te,2),at=C(He,!0);S(He),S(Qe),N(pt=>ge(at,pt),[()=>G("preview_track_notification_text")]),b(ke,Qe)};M(W,ke=>{d()&&ke(Ce)})}S(be),N(()=>Ke(be,`width: ${n(A)}px; height: ${n(E)}px; background-image: url(${n(V)}); background-size: ${n(q)}px ${n(L)}px; background-position: ${n(z)}px ${n(j)}px;
58
+ M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(m,p)};M(d,m=>{e.type==="off"?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}}),F()}function Vm(t,e){H(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=ye().ui.t,a=f(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ut(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return ys.KeyC},role:"button",children:(l,d)=>{let s=f(()=>i()?void 0:"outline");ga(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),F()}var ax=k('<span class="duration s-1z" data-testid="video_duration"> </span>'),lx=k('<div data-testid="time"><span class="current s-1z" data-testid="current_time"> </span> <!></div>'),dx={hash:"s-1z",code:'.time.s-1z{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-1z{padding:0 0 0 8px}.current.s-1z{position:relative}.duration.s-1z{opacity:.7}.duration.s-1z:before{content:" / ";white-space:pre}'};function mc(t,e){H(e,!0),Q(t,dx);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),a=h(e,"ref",15),l=Rt(),d=re(!1),s=f(()=>sn(e.duration)),u=f(()=>sn(e.position));var m=lx();let p;var v=C(m),$=C(v,!0);S(v);var y=P(v,2);{var g=x=>{var I=ax(),T=C(I,!0);S(I),N(()=>ge(T,n(s))),b(x,I)};M(y,x=>{r()&&x(g)})}S(m),Ns(m,()=>jl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),it(m,x=>a(x),()=>a()),N(x=>{p=ie(m,1,"time s-1z",null,p,x),ge($,n(u))},[()=>({mobile:i()})]),b(t,m),F()}var gc=require("@vkontakte/videoplayer-shared/es2015");var cx=Ae('<path d="M21.8632 10.0832C22.2147 9.73171 22.7852 9.73171 23.1367 10.0832C23.4881 10.4347 23.4881 11.0051 23.1367 11.3566L18.6367 15.8566C18.2852 16.2081 17.7147 16.2081 17.3632 15.8566C17.0117 15.5051 17.0117 14.9347 17.3632 14.5832L21.8632 10.0832Z"></path><path d="M17.3632 11.3566C17.0117 11.0051 17.0117 10.4347 17.3632 10.0832C17.7147 9.73171 18.2852 9.73171 18.6367 10.0832L23.1367 14.5832C23.4881 14.9347 23.4881 15.5051 23.1367 15.8566C22.7852 16.2081 22.2147 16.2081 21.8632 15.8566L17.3632 11.3566Z"></path>',1),ux=Ae("<path></path>"),px=Ae('<path d="M14 3C14.5523 3 15 3.44772 15 4V20C15 20.5523 14.5523 21 14 21C13.3585 21 12.7422 20.7509 12.2808 20.3052L6.79013 15H4C2.89543 15 2 14.1046 2 13V11C2 9.89543 2.89543 9 4 9H6.765L12.2794 3.6934C12.7418 3.24852 13.3584 3 14 3Z"></path><!>',1);function ha(t,e){H(e,!0);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(u,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=f(()=>r(i(),o())),l=f(()=>fn(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",s="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";Ze(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,m)=>{var p=px(),v=P(se(p));{var $=g=>{var x=cx();Jt(),b(g,x)},y=g=>{var x=ux();N(()=>De(x,"d",`${d}${n(a)==="max"?s:""}`)),b(g,x)};M(v,g=>{n(a)==="off"?g($):g(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var Ho=require("@vkontakte/videoplayer-shared/es2015");var rp=require("@vkontakte/videoplayer-shared/es2015");var Cb=require("@vkontakte/videoplayer-shared/es2015");var fx=k('<div class="overlay"><!></div>');function Rm(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(l,"$overlayContainer$",i),l=ye().ui.overlayContainer$,d=K(void 0),s=v=>{!v||!n(d)||!v.contains(n(d))||v.removeChild(n(d))},u=v=>{!v||!n(d)||v.contains(n(d))||v.appendChild(n(d))};Fe(()=>{u(r())}),Vt(()=>(u(r()),()=>s(r())));var m=fx(),p=C(m);ii(p,()=>{var v;return(v=e.children)!=null?v:wt}),S(m),it(m,v=>O(d,v),()=>n(d)),b(t,m),F(),o()}var mx=k('<div class="tooltip s-1o"><div class="content s-1o"> </div> <div class="tooltip-pointer s-1o"></div></div>'),vx=k("<div><!></div> <!>",1),gx={hash:"s-1o",code:'.tooltip-wrapper.s-1o{display:flex;flex-direction:column;min-width:0}.full-width.s-1o{width:100%}.tooltip.s-1o{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1o{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1o{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Za(t,e){H(e,!0),Q(t,gx);let[i,o]=Be(),r=()=>w(j,"$overlayContainer$",i),a=()=>w(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),s=h(e,"active",15,!1),u=h(e,"translateX",3,0),m=h(e,"translateY",3,0),p=h(e,"isFullWidthWrapper",3,!1),v=h(e,"maxTooltipWidth",3,void 0),$=h(e,"placement",3,"top"),y=h(e,"onVisibilityChange",3,Cb.noop),g=5,x=K(void 0),I=K(void 0),T,D=K(0),A=K(0),E=K(0),V=K(0),q=Rt(),L=ye(),z=L.ui.playerSize,j=L.ui.overlayContainer$;Fe(()=>{kt(()=>{y()(s())})});let te=L.getLogger().createComponentLog("Tooltip component"),ee=be=>{if(!r()||!n(I)||!n(x))return;O(A,g);let W=r().getBoundingClientRect(),Ce=n(x).getBoundingClientRect(),ke=Ce.width,Qe=n(I).clientWidth,Te=a().width,we=(ke-Qe)/2,He=Ce.left+u()-W.left,at=He+we,pt=Ce.top+m()-W.top,Pt=Qe/2-g,dt=at<8,ai=at+Qe>Te-8;be==="top-left"&&(at=He),dt&&(at=8,Pt=He+Ce.width/2-2.5*g),ai&&(at=Te-8-Qe,Pt=Ce.left-W.left+Ce.width/2-at-g),O(E,at,!0),O(V,pt),O(D,Pt,!0)},oe=()=>{!r()||!n(I)||!n(x)||O(A,-g)},ae=()=>{if(!r()||!n(I)||!n(x))return;O(D,g);let be=r().getBoundingClientRect(),W=n(x).getBoundingClientRect(),Ce=W.height,ke=n(I).clientHeight,Qe=(Ce-ke)/2+ke,Te=W.left+u()-be.left-n(I).clientWidth,we=2,He=Te-g;He<8&&(He=8);let pt=W.top+m()-be.top+Qe,Pt=we-Qe/2,dt=we-g;O(E,He,!0),O(V,pt),O(A,Pt),O(D,dt)},le=()=>{!r()||!n(I)||!n(x)||O(D,-g)},ce=()=>{switch($()){case"top":ee();break;case"bottom":oe();break;case"left":ae();break;case"top-left":ee("top-left");break;default:le();break}},X=()=>{try{if(!r()||!n(x))return;ce(),s(!0)}catch(be){te({message:String(be)})}},_e=()=>{s(!1)},Ee=()=>{n(I)&&(T||(T=window.setTimeout(X,q.controls.hideTimeoutTooltips)),s()&&X())},de=()=>{_e(),window.clearTimeout(T),T=void 0},ze=(be,W,Ce)=>{let ke="";switch($()){case"top":ke=`transform: translate(${be}px, ${W}px);`;break;case"bottom":ke=`transform: translate(${be}px, ${W}px); top: auto; bottom: 100%;`;break;case"left":ke=`transform: translate(${be}px, ${W}px); left: 0; right: auto;`;break;default:ke=`transform: translate(${be}px, ${W}px);`}return ke+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,ke+=` opacity: ${Ce?1:0}; visibility: ${Ce?"visible":"hidden"}`,ke},ue=(be,W)=>{let Ce="";switch($()){case"top-left":case"top":Ce=`transform: translate(${be}px, ${W}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ce=`transform: translate(${be}px, ${W}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ce=`transform: translate(${be}px, ${W}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ce=`transform: translate(${be}px, ${W}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ce},pe=f(()=>ze(n(E),n(V),s())),Z=f(()=>ue(n(D),n(A)));Vt(ce),pn(()=>window.clearTimeout(T));var B=vx(),fe=se(B);let me;fe.__pointermove=Ee,fe.__pointerdown=de,fe.__pointerup=function(...be){var W;(W=e.disableMouseupTooltipShow?void 0:Ee)==null||W.apply(this,be)};var Ie=C(fe);ii(Ie,()=>{var be;return(be=e.children)!=null?be:wt}),S(fe),it(fe,be=>O(x,be),()=>n(x));var nt=P(fe,2);{var Me=be=>{Rm(be,{children:(W,Ce)=>{var ke=mx(),Qe=C(ke),Te=C(Qe,!0);S(Qe);var we=P(Qe,2);S(ke),it(ke,He=>O(I,He),()=>n(I)),N(()=>{Ke(ke,n(pe)),ge(Te,d()),Ke(we,n(Z))}),b(W,ke)},$$slots:{default:!0}})};M(nt,be=>{d()&&!l()&&be(Me)})}N(be=>me=ie(fe,1,"tooltip-wrapper s-1o",null,me,be),[()=>({"full-width":p()})]),bt("pointerenter",fe,Ee),bt("pointerleave",fe,de),b(t,B),F(),o()}tt(["pointermove","pointerdown","pointerup"]);var Tb=t=>{t.stopPropagation()},hx=k("<div><!></div>"),_x={hash:"s-1i",code:".btn-container.s-1i{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-1i{min-width:0;width:100%}"};function Bo(t,e){H(e,!0),Q(t,_x);let[i,o]=Be(),r=()=>w(u,"$isGraphOpened$",i),a=()=>w(s,"$isMobile",i),l=ye(),d=To(),s=l.ui.isMobile,u=d.graphIsOpened$,m=l.ui.t,p=h(e,"className",3,""),v=h(e,"disabled",3,!1),$=h(e,"hasTooltip",3,!0),y=h(e,"ref",15,void 0),g=h(e,"width",15,void 0),x=h(e,"isFullWidthTooltip",3,!0),I=h(e,"tooltipContent",3,""),T=h(e,"tooltipVisible",3,!1),D=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),E=h(e,"isAriaHidden",3,!1),V=h(e,"onTooltipVisibilityChange",3,rp.noop),q=h(e,"initialTranslateXPx",3,0),L=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,rp.noop),j=h(e,"mouseLeave",3,rp.noop),te=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):A():I()),ee=K(!1);Fe(()=>{T()||O(ee,!1)});var oe=hx();oe.__pointerdown=[Tb],oe.__click=[Tb];var ae=C(oe);{var le=X=>{Za(X,{get content(){return n(te)},get translateX(){return q()},get translateY(){return L()},get isFullWidthWrapper(){return x()},get placement(){return D()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(ee)},set active(_e){O(ee,_e,!0)},children:(_e,Ee)=>{var de=Re(),ze=se(de);ii(ze,()=>{var ue;return(ue=e.children)!=null?ue:wt}),b(_e,de)},$$slots:{default:!0}})},ce=X=>{var _e=Re(),Ee=se(_e);ii(Ee,()=>{var de;return(de=e.children)!=null?de:wt}),b(X,_e)};M(ae,X=>{$()&&n(te)&&!a()?X(le):X(ce,!1)})}S(oe),it(oe,X=>y(X),()=>y()),N(()=>{var X;ie(oe,1,`btn-container ${(X=p())!=null?X:""}`,"s-1i"),De(oe,"aria-hidden",E()||null)}),bt("mouseenter",oe,function(...X){var _e;(_e=z())==null||_e.apply(this,X)}),bt("mouseleave",oe,function(...X){var _e;(_e=j())==null||_e.apply(this,X)}),Vn(oe,"clientWidth",g),b(t,oe),F(),o()}tt(["pointerdown","click"]);var bx=Ae('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function vc(t,e){let i=f(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=bx(),l=se(a),d=P(l);N(()=>{De(l,"fill",da),De(l,"fill-opacity",e.completed?1:.24),De(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var $x=k("<div><!></div>"),yx={hash:"s-14",code:".interactive-episode-icon.s-14{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-14{opacity:.4;pointer-events:none}"};function Dm(t,e){H(e,!0),Q(t,yx);let o=ye().ui.t,r=K(0),a=f(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Bo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=$x();let u;var m=C(s);let p=f(()=>!!e.videoEpisode.completed);vc(m,{get completed(){return n(p)}}),S(s),N(v=>{u=ie(s,1,"interactive-episode-icon s-14",null,u,v),Ke(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Vn(s,"clientWidth",v=>O(r,v)),b(l,s)},$$slots:{default:!0}}),F()}var xx=k('<div><div class="video-episode-inner s-13"><div class="video-episode-loaded s-13"></div> <div></div></div></div>'),wx=k('<div class="video-episodes-wrap s-13"></div>'),Sx={hash:"s-13",code:".video-episodes-wrap.s-13{height:100%;position:absolute;width:100%}.video-episode.s-13{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-13:first-child{padding-left:0}.video-episode.s-13:last-child{padding-right:0}.video-episode.s-13:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-13,.video-episode-inner.s-13,.video-episode-loaded.s-13{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-13{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-13:first-child .video-episode-inner:where(.s-13),.video-episode.s-13:last-child .video-episode-inner:where(.s-13){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-13{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-13,.video-episode-loaded.s-13{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-13{background-color:var(--slider-filled-bg)}"};function Om(t,e){Q(t,Sx);let i=h(e,"videoEpisodes",19,()=>[]);var o=wx();Ci(o,21,i,r=>r.from,(r,a)=>{var l=xx();let d;var s=C(l),u=C(s),m=P(u,2);let p;S(s),S(l),N((v,$)=>{d=ie(l,1,"video-episode s-13",null,d,v),Ke(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ke(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=ie(m,1,"video-episode-filled s-13",null,p,$),Ke(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),S(o),b(t,o)}function Cx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function Tx(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function Ix(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;O(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function Ex(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Px(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),O(r,!1),a()(l)}var Ax=k("<div></div>"),kx=k('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Lx=k('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Mx={hash:"s-h",code:'.interactive-icons.s-h{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-h{top:-10px}.slider.s-h{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-h{cursor:default}.slider.s-h:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-h{background:var(--slider-bg);overflow:hidden}.bars.s-h,.loaded.s-h{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-h{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-h{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-h,.slider.square.s-h .filled:where(.s-h),.slider.square.s-h .loaded:where(.s-h),.slider.square.s-h>.bars:where(.s-h){border-radius:unset}.filled.active-live.s-h{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-h{background-color:var(--slider-filled-ads)}.handleWrap.s-h{left:-100%;position:absolute;width:100%}.handle.s-h{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-h{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-h .handle:where(.s-h),.slider-dragging.s-h .handle:where(.s-h),.slider.s-h:hover .handle:where(.s-h){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-h .handle:where(.s-h){transform:scale(1.3)}.slider-vertical.s-h{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-h{cursor:default;opacity:.4}'};function Ja(t,e){H(e,!0),Q(t,Mx);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),a=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),s=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),m=h(e,"videoEpisodes",19,()=>[]),p=h(e,"withWheelHandler",3,!1),v=h(e,"isInteractive",3,!1),$=h(e,"disabled",3,!1),y=h(e,"hideHandel",3,!1),g=h(e,"onPointerDown",3,Ho.noop),x=h(e,"onHandleMove",3,Ho.noop),I=h(e,"onPointerUp",3,Ho.noop),T=h(e,"onPointerEnter",3,Ho.noop),D=h(e,"onPointerMove",3,Ho.noop),A=h(e,"onPointerLeave",3,Ho.noop),E=h(e,"onMouseEnter",3,Ho.noop),V=h(e,"onMouseLeave",3,Ho.noop),q=h(e,"onWheelUp",3,Ho.noop),L=h(e,"onWheelDown",3,Ho.noop),z=h(e,"onWheelLeft",3,Ho.noop),j=h(e,"onWheelRight",3,Ho.noop),te=h(e,"onDisabledClick",3,Ho.noop),ee=h(e,"loadedProgress",3,0),oe=h(e,"filledProgress",3,0),ae=h(e,"handleProgress",3,0),le=h(e,"ariaLabel",3,""),ce=h(e,"ariaValueMin",3,void 0),X=h(e,"ariaValueMax",3,void 0),_e=h(e,"ariaValueNow",3,void 0),Ee=h(e,"ariaValueText",3,""),de=h(e,"onContextMenu",3,Ho.noop),ze=h(e,"handleAlwaysVisible",3,!1),ue=Rt(),pe=K(void 0),Z=K(!1),B=f(()=>{var $e;return($e=X())!=null?$e:0}),fe=f(()=>{var $e;return(0,Ho.isNonNullable)(m())&&(($e=m()[m().length-1])==null?void 0:$e.time)<n(B)}),me=f(()=>(0,Ho.isNonNullable)(m())&&m().length&&n(fe)&&n(B)?Qe(ee()*100,oe()*100):[]);function Ie($e){if($e.preventDefault(),i()&&O(pe,i().getBoundingClientRect(),!0),$())return;let Ne=Ce($e.clientX,$e.clientY),vt=ke($e.clientX);T()(Ne,vt,n(pe).width)}function nt($e){$e.preventDefault(),!$()&&A()()}function Me(){E()()}function be(){V()()}function W($e){$()||p()&&($e.preventDefault(),$e.deltaY<0?q()():$e.deltaY>0?L()():$e.deltaX>0?j()():z()())}function Ce($e,Ne){return l()?Math.max(0,Math.min(1,(n(pe).height-(Ne-n(pe).top))/n(pe).height)):Math.min(Math.max($e-n(pe).x,0),n(pe).width)/n(pe).width}function ke($e){return Math.min(Math.max($e-n(pe).x,0),n(pe).width)}function Qe($e,Ne){let vt=ue.features.episodesClustering&&!v()?ue.episodeMinWidthPc:0,At=[],Se=m()[0].time/n(B)*100,je=0,Ue=0;for(let Et=1;Et<m().length;Et++)je=m()[Et].time/n(B)*100,je-Se>vt&&(At.push({from:Se,width:Math.max(0,je-Se),loadedWidth:Math.max(0,Math.min(je,$e)-Se),filledWidth:Math.max(0,Math.min(je,Ne)-Se),interactive:m()[Et-1].interactive,completed:m()[Et-1].completed}),Se=m()[Et].time/n(B)*100,Ue++);let xe={from:Se,width:Math.max(0,100-Se),loadedWidth:Math.max(0,Math.min($e,100)-Se),filledWidth:Math.max(0,Math.min(Ne,100)-Se),interactive:m()[Ue].interactive,completed:m()[Ue].completed};100-Se<vt?(Ue-=1,At[Ue].width+=100-Se,At[Ue].loadedWidth+=Math.max(0,Math.min($e,100)-Se),At[Ue].filledWidth+=Math.max(0,Math.min(Ne,100)-Se)):At[Ue]=xe;let Bt=m()[0].time;if(Bt!==0){let Et=Bt/n(B)*100;At.unshift({from:0,width:Et,loadedWidth:Math.min(Et,$e),filledWidth:Math.min(Et,Ne)})}return At}function Te($e){return Math.max(0,Math.min(100,$e*100))}let we=f(()=>Te(ee())),He=f(()=>Te(oe()));var at=Lx(),pt=se(at);{var Pt=$e=>{var Ne=Ax();let vt;Ci(Ne,21,()=>n(me),At=>At.from,(At,Se)=>{var je=Re(),Ue=se(je);{var xe=Bt=>{Dm(Bt,{get videoEpisode(){return n(Se)},get disabled(){return $()}})};M(Ue,Bt=>{n(Se).interactive&&Bt(xe)})}b(At,je)}),S(Ne),N(At=>vt=ie(Ne,1,"interactive-icons s-h",null,vt,At),[()=>({mobile:s(),hidden:s()&&!n(Z)})]),b($e,Ne)};M(pt,$e=>{v()&&$e(Pt)})}var dt=P(pt,2);let ai;dt.__pointerdown=[Cx,i,pe,$,Z,Ce,g],dt.__pointermove=[Tx,$,Ce,ke,D,pe,Z,x],dt.__pointerup=[Ix,$,Z,Ce,I],dt.__click=[Ex,$,te,Ce],dt.__contextmenu=[Px,Ce,$,te,Z,de];var Tt=C(dt);{var Ot=$e=>{Om($e,{get videoEpisodes(){return n(me)},get disabled(){return $()},get isMobile(){return s()}})},Nt=$e=>{var Ne=kx(),vt=C(Ne),At=P(vt,2);let Se;S(Ne),N(je=>{De(vt,"data-value",n(we)),Ke(vt,`transform: translateX(${n(we)}%);`),Se=ie(At,1,"filled s-h",null,Se,je),De(At,"data-value",n(He)),Ke(At,`transform: translateX(${n(He)}%);`)},[()=>({"active-live":d()})]),b($e,Ne)};M(Tt,$e=>{n(me).length?$e(Ot):$e(Nt,!1)})}var qt=P(Tt,2);let Le;var Y=C(qt);let Oe;S(qt),S(dt),it(dt,$e=>i($e),()=>i()),N(($e,Ne,vt,At)=>{var Se,je;ai=ie(dt,1,`slider ${(Se=o())!=null?Se:""}`,"s-h",ai,$e),De(dt,"aria-label",le()),De(dt,"aria-valuemin",ce()),De(dt,"aria-valuemax",X()),De(dt,"aria-valuenow",_e()),De(dt,"aria-valuetext",Ee()),De(dt,"data-testid",(je=r())!=null?je:null),Le=ie(qt,1,"handleWrap s-h",null,Le,Ne),Ke(qt,vt),Oe=ie(Y,1,"handle s-h",null,Oe,At)},[()=>({disabled:$(),"slider-dragging":n(Z),hidden:a(),"handle-always-visible":ze(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(ae())}%);`,()=>({"active-live":d()})]),bt("pointerenter",dt,Ie),bt("pointerleave",dt,nt),bt("mouseenter",dt,Me),bt("mouseleave",dt,be),bt("wheel",dt,W),b(t,at),F()}tt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var po=(t,e)=>Jd[t]>=Jd[e];var Us=(t,e)=>Jd[t]<=Jd[e],Ib=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Rx=k("<div><!></div>"),Dx=k("<div><!> <!></div>"),Ox={hash:"s-27",code:".volumeBar-container.s-27{align-items:center;display:flex}.vertical.s-27 .btn,.vertical.s-27 .tooltip-wrapper,.volumeBar-container.vertical.s-27{width:40px}.volumeBar.s-27{align-items:center;display:flex;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.s-27{padding:0 8px 0 0;width:0}"};function Nm(t,e){var ke,Qe;H(e,!0),Q(t,Ox);let[i,o]=Be(),r=()=>w(D,"$isAudioAvailable$",i),a=()=>w(v,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),s=()=>w(Ie,"$controlsVisible",i),u=ye(),m=Rt(),p=u.state.volume$,v=u.state.muted$,{setVolume:$,startVolumeChanging:y,stopVolumeChanging:g}=u.actions.internal,x=u.ui.currentGridType$,I=(ke=u.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(Qe=u.callbacks)==null?void 0:Qe.onAudioDisabledHint,D=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,E=u.ui.t,V=K(!1),q,L=f(()=>e.isAds||r()),z=f(()=>!n(L)||a()||l()===0),j=f(()=>Us(d(),"l")),te=f(()=>n(j)?"":n(z)?!r()||A?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),ee=f(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),oe=f(()=>n(z)?0:l()),ae=!1,le=f(()=>e.isAds?!1:A?!T:r()?!1:!I);function ce(Te){y(),$(Te)}function X(){tp(u,l(),m.controls.volumeStepWheel)}function _e(){ip(u,l(),m.controls.volumeStepWheel)}function Ee(Te){$(Te)}function de(Te){$(Te),g()}function ze(){ae=!0}function ue(){ae=!1,B()}function pe(){clearTimeout(q),O(V,!0)}function Z(){B()}function B(){q=window.setTimeout(()=>{ae||O(V,!1)},m.controls.volumeBarTimeout)}function fe(Te){Te.preventDefault(),Te.deltaY<0?X():Te.deltaY>0&&_e()}let me=K(!1),Ie=u.ui.controlsVisible;Fe(()=>{s()||O(me,!1)});var nt=Dx();let Me;var be=C(nt);Za(be,{get content(){return n(te)},translateY:-18,get active(){return n(me)},set active(Te){O(me,Te,!0)},children:(Te,we)=>{let He=f(()=>n(j)?"btn-volume-vertical":"btn-volume-horizontal");Ut(Te,{className:"btn-full-opacity",get disabled(){return n(le)},get testId(){return n(He)},get ariaLabel(){return n(ee)},get click(){return e.click},get ariaKeyShortCut(){return ys.KeyM},role:"button",children:(at,pt)=>{ha(at,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var W=P(be,2);{var Ce=Te=>{var we=Rx();let He;var at=C(we);let pt=f(()=>n(j)?"volumeBar-slider-vertical":""),Pt=f(()=>n(j)&&!n(V)),dt=f(()=>n(j)?ze:gc.noop),ai=f(()=>n(j)?ue:gc.noop),Tt=f(()=>Math.round(n(oe)*100)),Ot=f(()=>`${Math.round(n(oe)*100)}%`),Nt=f(()=>n(j)?"volume-slider-vertical":"volume-slider");Ja(at,{get className(){return n(pt)},get isHidden(){return n(Pt)},get isVertical(){return n(j)},withWheelHandler:!0,onWheelUp:X,onWheelDown:_e,onPointerDown:ce,onHandleMove:Ee,onPointerUp:de,get onPointerEnter(){return n(dt)},get onPointerLeave(){return n(ai)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Tt)},get ariaValueText(){return n(Ot)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(Nt)}}),S(we),N(qt=>He=ie(we,1,"volumeBar s-27",null,He,qt),[()=>({"volumeBar-vertical":n(j)})]),b(Te,we)};M(W,Te=>{n(L)&&Te(Ce)})}S(nt),N(Te=>Me=ie(nt,1,"volumeBar-container s-27",null,Me,Te),[()=>({vertical:n(j)})]),bt("mouseenter",nt,function(...Te){var we;(we=n(j)?pe:gc.noop)==null||we.apply(this,Te)}),bt("mouseleave",nt,function(...Te){var we;(we=n(j)?Z:gc.noop)==null||we.apply(this,Te)}),bt("wheel",nt,fe),b(t,nt),F(),o()}var Eb=require("@vkontakte/videoplayer-shared/es2015");var Nx=Ae('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Bx=Ae('<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.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Bm(t,e){let i=h(e,"isFullscreen",8,!1),o=Pn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=Re(),d=se(l);{var s=m=>{var p=Nx();b(m,p)},u=m=>{var p=Bx();b(m,p)};M(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}function hc(t,e){H(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,Eb.noop),r=ye(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ut(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=fa(u);a.set(m),o()()},get ariaKeyShortCut(){return ys.KeyF},role:"button",children:(u,m)=>{Bm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Hx=Ae('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Hm(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(),S(o),b(t,o)}var Fx=Ae('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Fm(t,e){let i=Rn(e,["$$slots","$$events","$$legacy","children"]);var o=Fx();uo(o,()=>Ge({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:wt}),Jt(6),S(o),b(t,o)}var Ux={hash:"s-29",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Um(t,e){H(e,!0),Q(t,Ux);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=f(()=>!o()&&!i()?91:i()?l:95),s=f(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);Fm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),F()}function _c(t,e){H(e,!0);let[i,o]=Be(),r=()=>w($,"$isMobile",i),a=()=>w(v,"$currentGridType$",i),l=()=>w(g,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),s=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),m=Rt(),p=ye(),v=p.ui.currentGridType$,$=p.ui.isMobile,y=p.ui.t,g=p.isCyrillicRelatedInterface$,x=f(()=>m.logoType!=="vk"),I=f(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=f(()=>(r()&&Us(a(),"m")||Us(a(),"l"))&&n(x)),D=()=>{var V,q;e.click(),(V=p.callbacks)!=null&&V.onLogoClicked?(q=p.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},A=f(()=>!s()),E=f(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");Ut(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:D,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(V){d(V)},children:(V,q)=>{var L=Re(),z=se(L);{var j=ee=>{Um(ee,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},te=ee=>{Hm(ee,{})};M(z,ee=>{n(x)?ee(j):ee(te,!1)})}b(V,L)},$$slots:{default:!0}}),F(),o()}var Ab=require("@vkontakte/videoplayer-core/es2015");var zm=require("@vkontakte/videoplayer-core/es2015");var zx=Ae('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-1a"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-1a"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-1a"></path>',1),Wx=Ae('<path d="M3.60219 13.2993C6.41858 13.2995 8.70256 15.5835 8.70278 18.3999C8.70277 18.6469 8.68424 18.8909 8.65004 19.1294C8.57937 19.6212 8.12333 19.9625 7.63149 19.8921C7.13968 19.8213 6.79823 19.3654 6.86879 18.8735C6.89087 18.7195 6.90199 18.5611 6.902 18.3999C6.90178 16.5776 5.42447 15.1003 3.60219 15.1001C3.441 15.1001 3.28267 15.1112 3.12856 15.1333C2.63666 15.2039 2.18077 14.8624 2.11 14.3706C2.03966 13.8788 2.38091 13.4227 2.8727 13.3521C3.11125 13.3178 3.35516 13.2993 3.60219 13.2993Z"></path><path d="M3.60219 9.69971C8.40682 9.69977 12.3021 13.5953 12.3024 18.3999C12.3024 18.6248 12.2938 18.8489 12.277 19.0698C12.239 19.5651 11.8065 19.9365 11.3112 19.8989C10.8157 19.8611 10.4445 19.4286 10.4821 18.9331C10.4954 18.7576 10.5026 18.5791 10.5026 18.3999C10.5023 14.5894 7.41271 11.5005 3.60219 11.5005C3.42268 11.5005 3.24474 11.5066 3.06899 11.52C2.57352 11.5578 2.14115 11.1863 2.10317 10.6909C2.06587 10.1957 2.43694 9.76287 2.93227 9.7251C3.15348 9.70823 3.37699 9.69971 3.60219 9.69971Z"></path><path d="M3.60219 16.8999C4.43047 16.8999 5.10198 17.5717 5.10219 18.3999C5.10209 19.2282 4.43054 19.8999 3.60219 19.8999C2.77383 19.8999 2.10229 19.2282 2.10219 18.3999C2.10241 17.5717 2.7739 16.8999 3.60219 16.8999Z"></path><path d="M16.2379 4.1001C17.0459 4.10009 17.7067 4.10017 18.2438 4.14404C18.7997 4.18946 19.3022 4.28599 19.7711 4.5249C20.5049 4.89882 21.1014 5.49623 21.4752 6.22998C21.714 6.69873 21.8107 7.20063 21.8561 7.75635C21.9 8.29338 21.9001 8.95424 21.9 9.76221V14.2378C21.9001 15.0458 21.9 15.7066 21.8561 16.2437C21.8107 16.7996 21.7141 17.3021 21.4752 17.771C21.1014 18.5046 20.5048 19.1012 19.7711 19.4751C19.3022 19.714 18.7997 19.8105 18.2438 19.856C17.7067 19.8998 17.0459 19.8999 16.2379 19.8999H14.9997C14.503 19.8996 14.1005 19.4972 14.1002 19.0005C14.1002 18.5036 14.5028 18.1004 14.9997 18.1001H16.1998C17.0548 18.1001 17.6422 18.0992 18.0973 18.062C18.5419 18.0257 18.7809 17.9596 18.9538 17.8716C19.3489 17.6702 19.6704 17.3487 19.8717 16.9536C19.9598 16.7808 20.0258 16.5417 20.0622 16.0972C20.0993 15.6421 20.1002 15.0546 20.1002 14.1997V9.80029C20.1002 8.94536 20.0993 8.35794 20.0622 7.90283C20.0258 7.45834 19.9598 7.21921 19.8717 7.04639C19.6704 6.6514 19.3487 6.33073 18.9538 6.12939C18.7809 6.04133 18.5419 5.97431 18.0973 5.93799C17.6422 5.9008 17.0548 5.8999 16.1998 5.8999H6.00063L5.83071 5.90674C4.99191 5.97398 4.28981 6.53462 4.01918 7.30029C3.85342 7.76872 3.33928 8.01472 2.87075 7.84912C2.40214 7.68346 2.15628 7.16833 2.32192 6.69971C2.85696 5.18632 4.30125 4.1001 6.00063 4.1001H16.2379Z"></path><path d="M2.95114 7.11345C2.42394 7.1914 1.90399 6.78569 2.00995 6.2634C2.05777 6.0277 2.12517 5.82449 2.22018 5.63803C2.5078 5.07354 2.96674 4.6146 3.53123 4.32698C4.17296 4 5.01304 4 6.6932 4H17.2001C18.8803 4 19.7204 4 20.3621 4.32698C20.9266 4.6146 21.3855 5.07354 21.6731 5.63803C22.0001 6.27976 22.0001 7.11984 22.0001 8.8V15.2C22.0001 16.8802 22.0001 17.7202 21.6731 18.362C21.3855 18.9265 20.9266 19.3854 20.3621 19.673C19.7204 20 18.8803 20 17.2001 20H15.7196C15.2009 20 14.8203 19.5134 14.8938 19C14.9638 18.5101 15.0001 18.0093 15.0001 17.5C15.0001 11.701 10.2991 7 4.5001 7C3.97384 7 3.45662 7.03872 2.95114 7.11345Z"></path>',1),Kx={hash:"s-1a",code:".animated.s-1a{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-1a{animation-name:s-1a-wave1}.wave2.animated.s-1a{animation-name:s-1a-wave2}.wave3.animated.s-1a{animation-name:s-1a-wave3}@keyframes s-1a-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-1a-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-1a-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function bc(t,e){H(e,!0),Q(t,Kx);let i=h(e,"isMobile",3,!1),o=f(()=>e.iconState===zm.ChromecastState.CONNECTED),r=f(()=>e.iconState===zm.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":da),l=f(()=>e.size?fn(e.size):void 0);var d=Re(),s=se(d);{var u=p=>{Ze(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,$)=>{var y=zx();Jt(2),b(v,y)},$$slots:{default:!0}})},m=p=>{Ze(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,$)=>{var y=Wx(),g=se(y);let x;var I=P(g);let T;var D=P(I);let A;var E=P(D);let V;var q=P(E);let L;N((z,j,te,ee,oe)=>{x=ie(g,0,"wave2 s-1a",null,x,z),T=ie(I,0,"wave3 s-1a",null,T,j),A=ie(D,0,"wave1 s-1a",null,A,te),V=ie(E,0,"s-1a",null,V,ee),L=ie(q,0,"s-1a",null,L,oe)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),b(v,y)},$$slots:{default:!0}})};M(s,p=>{i()?p(u):p(m,!1)})}b(t,d),F()}var kb=require("@vkontakte/videoplayer-shared/es2015");function $c(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,kb.noop),l=ye().ui.t,d=f(()=>e.state===Ab.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ut(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{bc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var Lb=require("@vkontakte/videoplayer-shared/es2015");var qx=Ae('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Wm(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=qx();Jt(2),b(e,o)},$$slots:{default:!0}})}var sp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Qx=k('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),Gx=k('<span class="text s-24"> </span>'),Yx=k('<span class="text count s-24"> </span>'),jx=k('<span class="icon s-24"><!></span> <!>',1),Xx={hash:"s-24",code:".icon.s-24{flex-shrink:0}.text.s-24{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-24{overflow:visible}.text.mobile.s-24{padding:0 3px 0 4px}.chevron-episodes.s-24{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function yc(t,e){var ae,le,ce;H(e,!0),Q(t,Xx);let[i,o]=Be(),r=()=>w(y,"$currentGridType$",i),a=()=>w(g,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),s=h(e,"position",3,0),u=h(e,"duration",3,0),m=h(e,"timeCodes",19,()=>[]),p=ye(),v=(le=(ae=p.callbacks)==null?void 0:ae.onEpisodeChanged)!=null?le:Lb.noop,$=!!((ce=p.callbacks)!=null&&ce.onEpisodeClicked),y=p.ui.currentGridType$,g=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,D=K(void 0),A=X=>{var Ee,de,ze;if(!!((Ee=p.callbacks)!=null&&Ee.onEpisodeClicked)){let ue=fa(X);g.set(ue),x.set(!0),(ze=(de=p.callbacks)==null?void 0:de.onEpisodeClicked)==null||ze.call(de,ue)}},E=K(null),V=f(()=>s()/u());Fe(()=>{var _e;let X=sp(n(V),u(),m());X?((_e=n(E))==null?void 0:_e.time)!==X.time&&(v(X),O(E,X,!0)):O(E,null)});let q=f(()=>{var X;return((X=n(E))==null?void 0:X.text)||""}),L=f(()=>po(r(),"xl")?"FULL":po(r(),"m")?"COUNT":"SHORT"),z=f(()=>`${T("tooltip_episodes")}: ${n(q)}`),j=(X,_e,Ee)=>xt(null,null,function*(){yield yo(),(X==null?void 0:X.getAttribute("aria-expanded"))==="false"&&_e&&!Ee&&kt(()=>{g.set(!1),X.focus()})});Fe(()=>{j(n(D),a(),l())});var te=Re(),ee=se(te);{var oe=X=>{let _e=f(()=>d()?"px-0":""),Ee=f(()=>!$);Ut(X,{get className(){var de;return`w-max btn-full-opacity btn-jc-l ${(de=n(_e))!=null?de:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Ee)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(D)},set ref(de){O(D,de,!0)},children:(de,ze)=>{var ue=Re(),pe=se(ue);{var Z=fe=>{var me=Qx(),Ie=se(me),nt=C(Ie,!0);S(Ie);var Me=P(Ie,2),be=C(Me);Vr(be,{direction:"right"}),S(Me),N(()=>ge(nt,n(q))),b(fe,me)},B=fe=>{var me=jx(),Ie=se(me),nt=C(Ie);Wm(nt,{}),S(Ie);var Me=P(Ie,2);{var be=Ce=>{var ke=Gx(),Qe=C(ke,!0);S(ke),N(()=>ge(Qe,n(q))),b(Ce,ke)},W=(Ce,ke)=>{{var Qe=Te=>{var we=Yx(),He=C(we,!0);S(we),N(()=>ge(He,m().length)),b(Te,we)};M(Ce,Te=>{n(L)==="COUNT"&&Te(Qe)},ke)}};M(Me,Ce=>{n(L)==="FULL"?Ce(be):Ce(W,!1)})}b(fe,me)};M(pe,fe=>{d()?fe(Z):fe(B,!1)})}b(de,ue)},$$slots:{default:!0}})};M(ee,X=>{n(E)&&X(oe)})}b(t,te),F(),o()}var xv=require("@vkontakte/videoplayer-shared/es2015");var gi=require("@vkontakte/videoplayer-core/es2015"),ct=require("@vkontakte/videoplayer-shared/es2015"),Dr=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),fo=require("@vkontakte/videoplayer-shared/es2015");var Zx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ap=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 fo.Subject,loadStarted$:new fo.Subject,loadEnded$:new fo.Subject,loadError$:new fo.Subject,ready$:new fo.Subject,slotRequested$:new fo.Subject,started$:new fo.Subject,timeRemained$:new fo.Subject,paused$:new fo.Subject,resumed$:new fo.Subject,ended$:new fo.Subject,empty$:new fo.Subject,skipped$:new fo.Subject,clicked$:new fo.Subject,closed$:new fo.Subject,error$:new fo.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,fo.addScript)(Zx,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?he(this.adsState.playbackState):void 0)!=="inactive"&&(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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.now)()]}),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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),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){return xt(this,null,function*(){var A,E;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p,json:v}=e;this.externalApi=p;let $,y=this.playerState&&he(this.playerState.vsid);y&&(this.isVsidOriginal?$=y:$=parseInt(y,36));let{isEmbed:g,immediateOrigin:x}=(0,Ye.detectEmbed)(),I=(A=g?x:window.location.href)!=null?A:window.location.href,T=(0,Ye.withoutNullable)(Ge(ti(Ge(ti(Ge({},s),{dl:encodeURIComponent(I),autoplay:r?1:0,player_width:i,player_height:o}),$?{request_id:$}:{}),{duration:m}),u)),D=(0,Ye.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});try{let V=new window.AdmanHTML;if(V.onReady(this.onAdsReady),V.onStarted(this.onAdStarted),V.onPlayed(this.onAdPlayed),V.onPaused(this.onAdPaused),V.adMidrollPoint(this.onAdMidrollPoint),V.onClosed(this.onAdClosed),V.onSkipped(this.onAdSkipped),V.onClicked(this.onAdClicked),V.onTimeRemained(this.onAdTimeRemained),V.onCompleted(this.onAdCompleted),V.onError(this.onAdError),V.setDebug(!1),!v&&((E=this.externalApi)!=null&&E.videoGetAds)){let q=yield this.safeExternalCall(this.externalApi.videoGetAds,T);q&&(delete D.slot,delete D.params,Object.assign(D,{json:q}))}V.init(D),this.adman=V,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(D)}`})}catch(V){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(V)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=he(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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.now)()]}),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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),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,r,a,l,d,s,u,m,p,v;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),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),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,fo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return xt(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var Mb=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 Km=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new lp,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new qm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},lp=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},qm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((m,p)=>{let v=l.indexOf(p,d);return m===-1||m>v?v:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new lp;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},Vb=Km;var cp=require("@vkontakte/videoplayer-shared/es2015"),el,Ni,Qm=0,Gm=!1,Rb="",Db=(t,e=0,i=0)=>t<e&&t<i,dp=(t,e=0,i=0)=>t>=e&&t<=i,Jx=(t,e=0,i=0)=>t>e&&t>i,Ob=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>dp(t,u,m));let a=t>=Qm,l=t<Qm;if(Qm=t,l&&(Gm=!1),(0,cp.isNonNullable)(el)&&dp(t,el.startTime,el.endTime)&&Rb===e.value)return el;if(!(0,cp.isNonNullable)(Ni)&&(r!=null&&r.length)&&!Gm){Ni=r.find(({startTime:u,endTime:m})=>dp(t,u,m)||a&&Db(t,u,m)),el=void 0,!(0,cp.isNonNullable)(Ni)&&r[r.length-1].endTime<t&&(Gm=!0);return}else{if(dp(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime))return el=Ni,Ni=void 0,Rb=e.value,el;(a&&Jx(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime)||l&&Db(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime))&&(Ni=void 0)}};var up={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",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"},xc=t=>{var e,i;return(i=(e=up[t])!=null?e:up[e2[t]])!=null?i:void 0};var mp=require("@vkontakte/videoplayer-shared/es2015");function pp(t){let e="";return eo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),eo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),eo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),eo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),eo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),eo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),eo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),eo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),eo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),eo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),eo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),eo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),eo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),eo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),eo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),eo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),eo(t.controlsDesktopPaddingHorizontalMinimalView)&&(e+=`--controls-desktop-padding-horizontal-minimal-view:${t.controlsDesktopPaddingHorizontalMinimalView};`),eo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),eo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),eo(t.font)&&(e+=`--font:${t.font};`),eo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),eo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function eo(t){return typeof t=="string"&&!t.includes(";")}var t2=Ae('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),i2=k('<div data-testid="player-pip-dummy"><div><!></div> <span class="title s-0"> </span></div>'),o2={hash:"s-0",code:".player-pip-dummy.s-0{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-0{position:relative}.dummy-image.s-0 svg{transform:scale(1.07143)}.dummy-image.desktop.s-0{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-0{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function Ym(t,e){H(e,!0),Q(t,o2);let[i,o]=Be(),r=()=>w(u,"$interfaceLanguage$",i),a=()=>w(m,"$isMobile$",i),l=ye(),d=Rt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,v=f(()=>r()&&p("pip_dummy_title")),$=pp(d.view);var y=i2();let g;var x=C(y);let I;var T=C(x);Ze(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,V)=>{var q=t2();Jt(),b(E,q)},$$slots:{default:!0}}),S(x);var D=P(x,2),A=C(D,!0);S(D),S(y),N((E,V)=>{g=ie(y,1,"player-pip-dummy s-0",null,g,E),Ke(y,$),I=ie(x,1,"dummy-image s-0",null,I,V),ge(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(t,y),F(),o()}var Zm=require("@vkontakte/videoplayer-core/es2015"),xs=require("@vkontakte/videoplayer-shared/es2015");var wc=require("@vkontakte/videoplayer-shared/es2015"),zs=()=>{var t;return(t=(0,wc.getWindow)().document)==null?void 0:t.pictureInPictureEnabled},tl=()=>{let{isEmbed:t}=(0,wc.detectEmbed)();return"documentPictureInPicture"in(0,wc.getWindow)()&&!t},fp=t=>!!t.pictureInPictureWindow,Nb=t=>!!t.target&&"height"in t.target&&"width"in t.target,Bb=t=>typeof t=="boolean"?t:t!==void 0,jm=t=>[...t.cssRules].map(e=>e.cssText).join(" "),Xm=(t,e)=>{let i=document.createElement("style");return i.setAttribute("id",e),i.textContent=t,i};var il=class{constructor({enabled:e=!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:(0,xs.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new xs.ValueSubject(!1),isEnabled$:new xs.ValueSubject(!1),type:0};this.info.isEnabled$=new xs.ValueSubject(e)}isSupported(){return zs()}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return xt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return xt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return xt(this,null,function*(){let{document:e}=(0,xs.getWindow)();!this.isSupported()||!this.isActive()||!this.videoElement||!e.pictureInPictureElement||(yield e.exitPictureInPicture(),Zm.clientChecker.browser.isYandex&&!this.videoElement.isConnected&&this.onLeavePictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var i;this.removeEventHandlers();let e=this.videoElement;this.videoElement=(i=this.playerContainer)==null?void 0:i.querySelector("video"),this.waitForSafariLeavePictureInPicture(e,this.videoElement),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Ge({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return xt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var o,r;let i=fp(e)?e.pictureInPictureWindow:void 0;this.info.isActive$.next(!0),this.isRequested=!0,i==null||i.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o)}onLeavePictureInPicture(e){var i,o;if(e){let r=fp(e)?e.pictureInPictureWindow:void 0;r==null||r.removeEventListener("resize",this.eventHandlers.resize)}this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),(o=(i=this.externalEventHandlers).leavepictureinpicture)==null||o.call(i)}onResize(e){var o,r;let i=Nb(e)?e.target:fp(e)?e.pictureInPictureWindow:void 0;i&&((r=(o=this.externalEventHandlers).resize)==null||r.call(o,{width:i.width,height:i.height}))}setEnabled(e){this.info.isEnabled$.next(e)}waitForSafariLeavePictureInPicture(e,i){if(Zm.clientChecker.browser.isSafari&&e&&e!==i){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,xs.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,xs.getWindow)().setTimeout(l,1e3)}}};function ev(t){return t instanceof il}var n2=Object.defineProperty,r2=Object.defineProperties,s2=Object.getOwnPropertyDescriptors,Hb=Object.getOwnPropertySymbols,a2=Object.prototype.hasOwnProperty,l2=Object.prototype.propertyIsEnumerable,iv=(t,e,i)=>e in t?n2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,d2=(t,e)=>{for(var i in e||(e={}))a2.call(e,i)&&iv(t,i,e[i]);if(Hb)for(var i of Hb(e))l2.call(e,i)&&iv(t,i,e[i]);return t},c2=(t,e)=>r2(t,s2(e)),Ws=(t,e,i)=>iv(t,typeof e!="symbol"?e+"":e,i),tv=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),u2=400,p2=225,Fb="parent-styles",Cc=class{constructor({enabled:e=!0,initialSize:i={width:u2,height:p2}}){Ws(this,"initialSize"),Ws(this,"playerDomElement"),Ws(this,"playerParentShadowRoot"),Ws(this,"playerDummyElement"),Ws(this,"svelteContext"),Ws(this,"pipWindow"),Ws(this,"info",{isActive$:new mp.ValueSubject(!1),isEnabled$:new mp.ValueSubject(!1),type:1}),Ws(this,"pipActive",!1),Ws(this,"pipApi"),this.initialSize=i,this.info.isEnabled$=new mp.ValueSubject(e),zs()&&(this.pipApi=new il({enabled:e}),this.pipApi.info.isActive$.subscribe(o=>{(o&&!this.info.isActive$.getValue()||!o&&this.pipActive)&&this.info.isActive$.next(o),this.pipActive=o}))}isSupported(){return tl()}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return tv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow(c2(d2({},this.initialSize),{copyStyleSheets:!0})),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(jm).filter(Boolean).join(`
59
+ `),r=Xm(o,Fb),a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Xr(Ym,d),(e=this.pipWindow)==null||e.document.body.append(a),this.pipWindow.focus(),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{if(!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement)return;let u=[];[...l.styleSheets].forEach(m=>{var p,v,$;let{ownerNode:y}=m,g=m.cssRules.item(0);if(y&&y.id!==Fb&&g){let x=(v=(p=g.selectorText)==null?void 0:p.split("."))!=null?v:[],I=x.length?x[x.length-1]:"";(I?($=this.playerParentShadowRoot)==null?void 0:$.querySelector(`style#${I}`):null)||u.push(Xm(jm(m),I))}}),u.length&&this.playerParentShadowRoot.append(...u),Fa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0})})}exit(){return tv(this,null,function*(){return new Promise(e=>{var i,o,r;this.pipWindow?((i=documentPictureInPicture.window)==null||i.close(),window.focus()):(o=this.pipApi)!=null&&o.isActive()&&((r=this.pipApi)==null||r.exit()),e()})})}dispose(){return tv(this,null,function*(){yield this.exit()})}setEnabled(e){var i;this.info.isEnabled$.next(e),(i=this.pipApi)==null||i.setEnabled(e)}assignPlayerContainer(e){var i;(i=this.pipApi)==null||i.assignPlayerContainer(e)}updateVideoElement(){var e;(e=this.pipApi)==null||e.updateVideoElement()}setExternalEventHandlers(e){var i;(i=this.pipApi)==null||i.setExternalEventHandlers(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 vp(t){return t instanceof Cc}var ov=(t,e)=>{if(Bb(e)&&tl())return new Cc(Ge({enabled:t},typeof e!="boolean"&&e));if(zs())return new il({enabled:t})};var Ub=require("@vkontakte/videoplayer-shared/es2015"),mH=require("@vkontakte/videoplayer-statistics/es2015"),gp=class{constructor(e,i,o,r=new Ub.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Tc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Tc||{});var ws=t=>t!=null?t:0,Ks=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(ws(i==null?void 0:i.top)-ws(o==null?void 0:o.top)),left:Math.round(ws(i==null?void 0:i.left)-ws(o==null?void 0:o.left)),bottom:Math.round(ws(i==null?void 0:i.bottom)-ws(o==null?void 0:o.top)),right:Math.round(ws(i==null?void 0:i.right)-ws(o==null?void 0:o.left))}},nd=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ws(e==null?void 0:e.width),height:ws(e==null?void 0:e.height)}};var On="off";var rd=t=>!!(Math.round(Math.abs(t)/90)%2);var zb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:v,coreConfig:$,player:y,disabledControls:g,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:D,stopPlayer:A,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:L,additionalContextMenuItems:z,playPrevVideo:j,playNextVideo:te,onVideoChanged:ee,looped:oe=!1,statistics:ae,saveRate:le,internalsExposure:ce,playerView:X,playerId:_e,metaConfig:Ee,appTracer:de})=>{var Pg,Ag;let ze=ti(Ge({},$),{isAudioDisabled:l,live:ti(Ge({},(Pg=$.live)!=null?Pg:{}),{isLiveCatchUpMode:!!r})}),ue=v,pe=ct.TracerFactory.createRootTracer(ue.features.tracer),Z=pe.createComponentTracer("Store"),B=y||new gi.Player(ze,pe,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});ce==null||ce.expose({corePlayer:B});let fe=new ct.Logger,me=new ap(fe,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout,useAdmanFromNPM:ue.ads.useAdmanFromNPM,volumeMultiplier:ue.ads.volumeMultiplier,isVsidOriginal:ue.ads.isVsidOriginal}),Ie=u==null?void 0:u.pictureInPictureApi,nt=u==null?void 0:u.annotationsApi,Me=u==null?void 0:u.slotsApi,be=u==null?void 0:u.focusManager,W=fe.createComponentLog("Store"),Ce,ke,Qe={},Te=new Hu,we=new ct.Subscription,He="",at=re(!1),pt=re(!1),Pt=ae&&ae.oneStat?oi(ae.oneStat.vsid$):Mr(void 0),dt=re(ca()),ai=re(!1),Tt=()=>sb(document,gi.clientChecker.device.isIOS),Ot=(Ag=Ie==null?void 0:Ie.info.isActive$)!=null?Ag:new ct.ValueSubject(!1),Nt=re(0),qt=re(!1),Le=re(!1),Y=re([]),Oe=(0,ct.merge)(B.events.fatalError$,B.events.managedError$).subscribe(c=>Y.update(_=>[..._,c])),$e=Mr(!1,c=>{let _=B.events.fatalError$.subscribe(()=>c(!0));return()=>_.unsubscribe()}),Ne=c=>{pt.set(c)},vt=c=>xt(null,null,function*(){var ne;let _=Object.values(ct.InterfaceLanguage).includes(c);if(ue.downloadVKLanguages&&(_&&ue.updateBuiltinLanguages||!sm(c))){let Pe;try{Pe=yield(0,ct.loadVKLangPack)(c,b_,$_)}catch(et){(ne=ae==null?void 0:ae.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),de==null||de.error({category:ct.ErrorCategory.WTF,id:"VKLangPack",message:String(et),thrown:et},{severity:"warning"})}Pe&&(rm({language:c,pack:Pe,fallback:ue.defaultLanguage}),At.set(c),Se.update(et=>et+1))}sm(c)&&At.set(c)}),At=re(t),Se=re(0),je=re(e);vt(t);let Ue=(c,_)=>{let R=he(At);return am(R,c,_,ue.defaultLanguage)},xe=re("thumb");xe.subscribe(c=>{c==="ads"&&B.info.playbackState$.getValue()&&Gt()});let Bt=(()=>{let c=mi([$e,xe],([_,R])=>_?"crashed":R);return ti(Ge({},c),{is:_=>he(c)===_})})(),Et=re(),Gt=()=>{Et.set({muted:B.info.muted$.getValue()})},$i=(()=>{let c=re(new Set(g));return ti(Ge({},c),{add:_=>{c.update(R=>new Set([...R].concat(_)))},remove:_=>{c.update(R=>{let ne=[...R];return new Set(Array.isArray(_)?ne.filter(Pe=>!_.includes(Pe)):ne.filter(Pe=>Pe!==_))})},includes:_=>{let R=he(c);return Array.isArray(_)?_.every(ne=>R.has(ne)):R.has(_)}})})(),hi=re({width:0,height:0}),Vi=null,io=B.info.isBuffering$,di=Mr(io.getValue(),c=>{let _=io.subscribe(R=>{R&&Vi===null?Vi=window.setTimeout(()=>{c(io.getValue()),Vi=null},ue.loaderDelay):c(R)});return()=>{_.unsubscribe(),Vi&&clearTimeout(Vi)}});Z.log("create store"),W({message:"create store"});let Ti=c=>{let _=c.container,R=()=>{rt=new MutationObserver(Pe=>{let{removedNodes:et}=Pe[0];et.length&&_.append(B.experimental.element$.getValue())}),rt.observe(_,{childList:!0})},ne=B.experimental.element$.getValue();if(ne)_.append(ne),R();else{let Pe=B.experimental.element$.pipe((0,ct.filter)(et=>!!et),(0,ct.once)()).subscribe(et=>{_.append(et),R()});we.add(Pe)}},oo=c=>{W({message:`init video, config: ${JSON.stringify(c)}`}),x?Ti(c):(ct.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ct.now)()]}),B.initVideo(c)),Z.log("init video",{isInteractive:x}),c.subtitles&&B.setExternalTextTracks(c.subtitles),Ce=c,He=c.subtitlesForcedLanguage||""},Ri=new ct.Subject,ci=c=>Ri.next(c),Ki=new ct.Subject,$t=new ct.ValueSubject(Dr.SeekAction.UNKNOWN),We=new ct.Subject,rt=null,ft={actionRewind$:Ki,actionSeek$:$t,inPiP$:Ot,inFullscreen$:new ct.Observable(c=>dt.subscribe(_=>c.next(_))),actionSetSubtitle$:We,nextMovie$:Ri},pi=new ct.Subject,qi=new ct.Subject,no={actionSeek$:$t,actionSubtitlesSwitched$:pi,actionQuality$:qi,playerSize$:new ct.Observable(c=>hi.subscribe(_=>c.next(_))),inPiP$:Ot,inFullscreen$:new ct.Observable(c=>dt.subscribe(_=>c.next(_))),isLoaderVisible$:new ct.Observable(c=>di.subscribe(_=>c.next(_)))};if(ae){let{oneStat:c,thinOneStat:_,mediascopePixel:R,statSubscription:ne}=ae;c&&(x||ne.add(c.attachTo(B)),ne.add(c.attachToUi(ft)),ne.add(c.attachToAds(me.events)),c.authorize(a).catch(Pe=>{W({message:`onestat auth error ${String(Pe)}`})}),R&&R.attachTo(B)),_&&(ne.add(_.attachTo(B,me.events)),ne.add(_.attachToUi(no)),ne.add(_.attachToAds(me.events)),_.updateContext({isMobile:he(at)}),_.authorize(a))}de&&(de.addSubscription(B.events.managedError$.subscribe(c=>{de.error(c,{severity:"debug"})})),de.addSubscription(B.events.fatalError$.subscribe(c=>{de.error(c,{severity:"fatal"})})),ae!=null&&ae.oneStat&&de.addSubscription(ae.oneStat.experimental.error$.subscribe(c=>{de.error(c,{severity:"warning"})})));let vn=()=>{if(gi.clientChecker.device.isIOS&&ke)try{ab(ke)}catch(c){W({message:`exitIosSafariFullscreen failed: ${c}`})}};we.add(B.experimental.element$.subscribe(c=>{c&&c!==ke&&(ke=c,c.classList.add("player-media"),Ie==null||Ie.updateVideoElement(),x&&c.setAttribute("pip","false"),(X==="preview"||!ue.features.pip&&!ue.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(B.events.ended$.subscribe(()=>{var c;vn(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(B.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(B.events.started$.subscribe(()=>xt(null,null,function*(){var _,R;ev(Ie)&&(yield Ie==null?void 0:Ie.revealPictureInPicture());let c=B.info.muted$.getValue();(_=s==null?void 0:s.onStarted)==null||_.call(s),(R=Qe.onStarted)==null||R.call(Qe,c)}))).add(B.events.willSeek$.subscribe(({from:c,to:_})=>{var R;(R=s==null?void 0:s.onSeek)==null||R.call(s,c,_,$t.getValue())})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(B.info.position$.subscribe(c=>{var R;let _=B.info.duration$.getValue();isFinite(_)&&_>0&&((R=s==null?void 0:s.onTimeupdate)==null||R.call(s,_,c),me.setPosition(c,_))})).add(B.events.fatalError$.subscribe(c=>{var _;(_=s==null?void 0:s.onCrashed)==null||_.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.fetcherRecoverableError$.subscribe(c=>{var _;(_=s==null?void 0:s.onRecoverableError)==null||_.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.loadedMetadata$.subscribe(()=>{qt.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{Le.set(c)})).add(B.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&$i.add(Zd),$i.add("PLAY_BUTTON")):$i.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var _;(_=s==null?void 0:s.onLiveTime)==null||_.call(s,c)})).add(B.info.isStalled$.subscribe(c=>{var _;(_=s==null?void 0:s.onStalledChanged)==null||_.call(s,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var _;return c&&((_=s==null?void 0:s.onLiveEnded)==null?void 0:_.call(s))})).add(me.events.loadStarted$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:_.call(c)})).add(me.events.loadEnded$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:_.call(c)})).add(me.events.loadError$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:_.call(c)})).add(me.events.init$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:_.call(c)})).add(me.events.ready$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:_.call(c)})).add(me.events.started$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onStarted)==null?void 0:R.call(_,c)})).add(me.events.timeRemained$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onTimeRemained)==null?void 0:R.call(_,c)})).add(me.events.ended$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onCompleted)==null?void 0:R.call(_,c)})).add(me.events.empty$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:_.call(c)})).add(me.events.clicked$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onClicked)==null?void 0:R.call(_,c)})).add(me.events.closed$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onClosed)==null?void 0:R.call(_,c)})).add(me.events.error$.subscribe(c=>{var _,R;return(R=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onError)==null?void 0:R.call(_,c)})).add(me.events.paused$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:_.call(c)})).add(me.events.resumed$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:_.call(c)}));let U=new ct.Subscription,ot=()=>{var et,Lt,Ht;let{debugLog:c}=ue,_,R="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:Kt}=c;_=c.tag,R=(et=Kt==null?void 0:Kt[0])!=null?et:R,ne=(Ht=(Lt=Kt==null?void 0:Kt[1])!=null?Lt:Kt==null?void 0:Kt[0])!=null?Ht:ne}let Pe=_?`: ${_}`:"";U.add(B.events.log$.subscribe(Kt=>{console.debug(`%c sdk${Pe} `,`background:${R};`,`sdk component: ${Kt.component}`,Kt.message)})).add(fe.log$.subscribe(Kt=>{console.debug(`%c ui${Pe} `,`background:${ne};`,`ui component: ${Kt.component}.`,Kt.message)}))},Xt=()=>{U.unsubscribe()},_i=(c,_)=>{Z.log("start camera manual rotation",{mx:c,my:_}),B.startCameraManualRotation(c,_)},lt=(c=!1)=>{Z.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},li=(c,_,R)=>{Z.log("move camera focus px",{xpx:c,ypx:_,dt:R}),B.moveCameraFocusPX(c,_,R)},yi=()=>{B.holdCamera()},jt=()=>{B.releaseCamera()},It=Mr(B.info.position$.getValue(),c=>{let _,R,ne=()=>{let Pe=B.info.playbackState$.getValue(),et=B.info.isLive$.getValue(),Lt=B.info.duration$.getValue(),Ht=B.info.position$.getValue();if(Pe&&[gi.PlaybackState.PLAYING,gi.PlaybackState.PAUSED].includes(Pe)){let Kt=et?Ht-Lt:B.getExactTime();Kt!==R&&c(Kt),R=Kt}_=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(_)}),xo=oi(B.info.playbackState$),Fo=oi(B.info.isBuffering$),gn=mi([xo,Fo],([c,_])=>_?"buffering":c),hn=oi(B.info.currentBuffer$),ki=oi(B.info.isEnded$),Ii=oi(B.info.isLive$),_n=ue.features.playbackRate?oi(B.info.canChangePlaybackSpeed$):Mr(!1),br=oi(B.info.liveBufferTime$),Si=oi(B.info.volume$),Io=oi(B.info.muted$),Uo=Fu(B.info.predefinedQualityLimitType$.pipe((0,ct.map)(c=>c===gi.PredefinedQualityLimits.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.TRAFFIC_SAVING),zo=Fu(B.info.predefinedQualityLimitType$.pipe((0,ct.map)(c=>c===gi.PredefinedQualityLimits.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.HIGH_QUALITY),bn=oi(B.info.autoQualityLimitingAvailable$),ns=oi(B.info.availableQualities$),Ss=oi(B.info.availableQualitiesFps$),rs=oi(B.info.chromecastState$),$r=oi(B.info.chromecastDeviceName$),$n=oi(B.info.currentFormat$),ss=oi(B.info.throughputEstimation$),er=oi(B.info.videoBitrate$),Or=oi(B.info.intrinsicVideoSize$),Eo=oi(B.info.duration$),as=oi(B.info.isAudioAvailable$),yr=()=>{Vi&&clearTimeout(Vi),Vi=null},Nn=mi([Eo,Ii],([c,_])=>_?-c:c),Bn=mi([xo],([c])=>c===gi.PlaybackState.PLAYING),Hn=oi(B.info.atLiveEdge$),tr=oi(B.info.atLiveDurationEdge$),Nr=oi(B.info.position$),ls=mi([Nr,Eo],([c,_])=>isFinite(c)&&isFinite(_)&&!!_),Li=mi([rs],([c])=>c===gi.ChromecastState.CONNECTED),ds=oi(B.info.availableVideoStreams$),Wo=ue.features.audioLanguages?oi(B.info.availableAudioStreams$):Mr([]),ir=oi(B.info.currentVideoStream$),xr=oi(B.info.currentAudioStream$),or=c=>{c.language&&tm(c.language),B.setVideoStream(c)},mt=(c,_)=>{B.setAudioStream(c),ko(_)&&(c.language&&tm(c.language),ue.features.userVideoPrefs&&i&&nm(ue.userSalt,String(i),{audioTrackId:c.id}))},ei=c=>{let _;if(c.length===1&&(_=c.at(0)),_!=null||(_=c.find(ne=>"isDefault"in ne&&ne.isDefault)),ue.features.userVideoPrefs&&i){let ne=qu(ue.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Pe=c.find(et=>et.id===ne.audioTrackId);_=Pe!=null?Pe:_}}let R=Q_();return R&&(_!=null||(_=c.find(({language:ne})=>R===ne))),_!=null||(_=c.at(0)),_},wr=c=>{Z.log("change audio stream",{id:c});let _=B.info.availableAudioStreams$.getValue().find(R=>R.id===c);_&&mt(_,!0)},cs=!1;we.add(B.info.availableAudioStreams$.subscribe(c=>{if(!cs&&c.length){let _=ei(c);_&&(B.setAudioStream(_),cs=!0)}})),Wo.subscribe(c=>{var _;(_=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||_.call(s,c.map(({label:R="",id:ne="",language:Pe=""})=>({label:R,language:Pe,id:ne})))}),xr.subscribe(c=>{var _;return c&&((_=s==null?void 0:s.onAudioStreamChanged)==null?void 0:_.call(s,c.id))});let nr=!1;we.add(B.info.availableVideoStreams$.subscribe(c=>{if(!nr&&c.length){let _=ei(c);_&&(B.setVideoStream(_),nr=!0)}}));let an=re(void 0),Fn=oi(B.info.isAutoQualityEnabled$,c=>c&&an.set(void 0)),rr=oi(B.info.currentQuality$,()=>an.set(void 0)),Br=mi([an,rr],([c,_])=>c!=null?c:_),Ko=mi($n,c=>c!==gi.VideoFormat.MPEG),yn=mi([ns,Ss,Fn,Br,Ko],([c,_,R,ne,Pe])=>{let et=[];Pe&&et.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:R});let Lt=c.filter(Ht=>!(0,ct.isInvariantQuality)(Ht));for(let Ht of Lt){let Kt=_[Ht];et.push({value:Ht,displayValue:`${Ht}${Kt?Mb(Kt):""}`,selected:R?!1:Ht===ne})}return et}),Un=oi(B.info.currentPlaybackRate$),mo=mi([Un,Hn,tr],([c,_,R])=>{let ne=R||x?1:ue.controls.playbackRateMin,Pe=_?1:ue.controls.playbackRateMax,et=ue.controls.playbackRateStep,Lt=[];for(let Ht=ne;Ht<=Pe;Ht+=et)Lt.push({value:Ht,displayValue:Ht===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:Ht.toString(10)}),selected:c===Ht});return Lt}),Po=()=>({displayValue:Ue("subtitles_off"),value:On,language:""}),zn=re(Po()),Di=mi([zn,Se],([c],_)=>{c.value===On?_(Po()):_(c)}),sr=ue.features.subtitles?oi(B.info.availableTextTracks$):Mr([]),xn=R_(),Hr=mi([sr,Di],([c,_],R)=>{var et;let ne=[],Pe=c.find(({id:Lt})=>Lt===_.value);if(Pe!=null&&Pe.url){let[,Lt]=(et=xn.find(Pe.url))!=null?et:[];if(Lt){R(Lt);return}Te.download(Pe.url).then(Ht=>{if(!Ht||Te.isDestroyed())return;let Kt=new Vb,Js=Pe.language;if(Js){let z$=!!Pe.isAuto,W$=Kt.parse(Ht,Js);ne.push({lang:Js,subtitles:W$,isAuto:z$,id:Pe.id})}xn.add(Pe.url,ne),he(Di).value===_.value&&R(ne)}).catch(ct.suppressAbort).catch(Ht=>{var Kt;(Kt=ae==null?void 0:ae.oneStat)==null||Kt.logError({errorType:"Subtitles download",fatal:!1}),de==null||de.error({category:ct.ErrorCategory.WTF,id:"Subtitles download",message:String(Ht),thrown:Ht},{severity:"warning"})})}R(ne)}),yt=mi([Un,Bn,Di],([c,_,R],ne)=>{let Lt;if(B.info.isLive$.getValue()&&_&&R.value!==On){let Kt=()=>{let Js=1e3/(3*c);Lt=setTimeout(Kt,Js),ne(Date.now())};return Kt(),()=>clearTimeout(Lt)}}),ui=mi([sr,Di],([c,_])=>{if(!c.length)return[];let R=[];for(let{language:ne,isAuto:Pe,id:et}of c){let Lt=ne&&xc(ne);ne&&Lt&&R.push({displayValue:Pe?Ue("subtitles_auto",{language:Lt}):Lt,value:et,selected:(_==null?void 0:_.value)===et,isAuto:Pe,language:ne})}return R.length?(R.unshift(ti(Ge({},Po()),{selected:(_==null?void 0:_.value)===On})),R):[]}),Wt={available:[],prev:[]},ln=()=>{var _,R;let c=B.experimental.getCurrentTime$.getValue();return(R=(_=c==null?void 0:c())!=null?_:ke==null?void 0:ke.currentTime)!=null?R:0},wo=mi([It,Di,Hr,yt],([c,_,R,ne])=>{var et;let Pe=B.info.isLive$.getValue();if(Pe&&Wt.prev!==R){let Lt=R.find(({id:Kt})=>Kt===_.value),Ht=Wt.prev.find(({id:Kt})=>Kt===_.value);if(Lt){let Kt=ti(Ge({},Lt),{subtitles:[...(et=Ht==null?void 0:Ht.subtitles)!=null?et:[],...Lt.subtitles]});Wt.available=[Kt],Wt.prev=R}}if(_&&_.value!==On){let Lt=Pe?ln():c,Ht=Pe?Wt.available:R;return Ob(Lt,_,Ht,Pe)}}),wn=mi([wo],([c])=>c!=null&&c.texts?c.texts:[]);we.add(Di.subscribe(c=>{var _,R;if(c.value===On)(_=s==null?void 0:s.onSubtitleOff)==null||_.call(s);else{let ne=Object.entries(up).find(([Pe,et])=>et===c.displayValue);(R=s==null?void 0:s.onSubtitleOn)==null||R.call(s,ne?ne[0]:"",c.value)}}));let So=re(!0),ar=mi([hn,Nn,Nr,br],([c,_,R,ne])=>{var Ht;let Pe=(Ht=c==null?void 0:c.end)!=null?Ht:0;if(!ne)return Pe/_;let Lt=-R+ne-_;return(Pe-Lt)/_}),ro=oi(B.info.availableSources$),Sr=mi([ro],([c])=>Object.keys((c==null?void 0:c[gi.VideoFormat.MPEG])||{}).length>0),Ao=()=>{var R,ne,Pe;let c=Object.keys(((ne=(R=B.info.availableSources$)==null?void 0:R.getValue())==null?void 0:ne[gi.VideoFormat.MPEG])||{}),_=(0,ct.getHighestQuality)(c)||ct.VideoQuality.Q_144P;return(Pe=Ce.sources[gi.VideoFormat.MPEG])==null?void 0:Pe[_]},Sn=()=>{var _;let c=Ao();if(c)Z.log("download video",{url:c}),L_(c,((_=Ce==null?void 0:Ce.meta)==null?void 0:_.title)||"video");else{let R="There is no URL for download video";Z.log("download video",{message:R}),W({message:R})}},us=()=>{W({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?zr(Ur(),!1):Wn(!c,!1)},Fr=()=>{var c;if(zt.ui.settingsMenu.visible$.set(!1),!he(zt.ui.settingsSubMenu.visible$)){let _=he(zt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&_){let ne=nd(_),Pe={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Pe,name:"settings"})}}Z.log("close settings menu")},ps=(c,_=()=>Promise.resolve())=>xt(null,null,function*(){var Pe;zt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),zt.ui.settingsMenu.visible$.set(!0),yield _();let R=he(zt.ui.settingsMenu.ref$),ne=Sl();if((Pe=s==null?void 0:s.uiInfo)!=null&&Pe.onSettingsMenu&&R&&ne){let Lt=nd(R),Ht=Ks(R,ne);s.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ht,name:"settings"})}Z.log("open settings menu",{wasOpenedByKeyboard:c})}),so=(c,_=!1)=>{var et;zt.ui.settingsSubMenu.visible$.set(!1);let R=he(zt.ui.settingsMenu.ref$),ne=Sl(),Pe=he(zt.ui.settingsMenu.visible$);if((et=s==null?void 0:s.uiInfo)!=null&&et.onSettingsMenu&&R&&ne)if(Pe&&!_){let Ht=nd(R),Kt=Ks(R,ne);s.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Kt,name:"settings"})}else{let Ht=nd(c),Kt={top:0,left:0,bottom:0,right:0},Js=he(zt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ht,position:Kt,name:Js})}Z.log("close settings sub menu")},fs=(c,_)=>{var ne;zt.ui.settingsSubMenu.visible$.set(!0),zt.ui.settingsSubMenu.ref$.set(_),zt.ui.settingsSubMenu.name$.set(c);let R=Sl();if((ne=s==null?void 0:s.uiInfo)!=null&&ne.onSettingsMenu&&_&&R){let et=nd(_),Lt=Ks(_,R);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:et,position:Lt})}Z.log("open settings sub menu",{name:c})},Ur=()=>{var _;let c=Math.max(ue.volumeMinRestore,(_=Uu())!=null?_:0);return c===0?ue.volumeDefault:c},ko=c=>{let _=ue.features.savePreferredStatesOnUserActionOnly;return!_||_&&!c},zr=(c,_)=>{let R=c===0?Ur():c,ne=B.info.muted$.getValue();W({message:`set volume, volume: ${c}, preferredVolume: ${R}`});let Pe=!l||Bt.is("ads");ne&&c>0&&Pe&&(ne=!1,ko(_)&&Jf(!1)),B.setVolume(c,ne),me.setVolume(c),ko(_)&&Yf(R)},Wn=(c,_)=>{let R=B.info.volume$.getValue();W({message:`set muted, currentVolume: ${R}, mute: ${c}`});let ne=Bt.is("ads");if(B.setMuted(c,ne),me.setVolume(c?0:R),ko(_)&&(!ne||!c)&&Jf(c),!c&&R===0){let Pe=Ur();B.setVolume(Pe),ko(_)&&Yf(Pe),me.setVolume(Pe)}},vo=re(!1),go=c=>{var _,R;Z.log("set looped",{isLooped:c}),vo.set(c),B.setLooped(c),(R=(_=s==null?void 0:s.uiInfo)==null?void 0:_.onLoopedChanged)==null||R.call(_,c)};go(oe);let Xe=()=>{var c,_;(_=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||_.call(c)},Mt=(c,_=!1)=>{var R;W({message:`set autoplayNextEnabled, value: ${c}`}),Z.log("set autoplay next enabled",{autoplayNextEnabled:c}),zt.ui.autoplayNextEnabled$.set(c),j_(c),_&&((R=s==null?void 0:s.onSetAutoplayNextEnabled)==null||R.call(s,c))},fi=c=>{W({message:`set timerNextVideoRunning, value: ${c}`}),Z.log("set timer next video running",{timerNextVideoRunning:c}),zt.ui.timerNextVideoRunning$.set(c)},Lo=(c=!0)=>{var R;let _=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{_=(R=s==null?void 0:s.onPrevVideoClick)==null?void 0:R.call(s)}catch(ne){W({message:"onPrevVideoClick callback failed to execute"})}ee(!0),_&&j()},Mo=(c=!0)=>{var R;let _=!0;if(c&&(s!=null&&s.onNextVideoClick))try{_=(R=s==null?void 0:s.onNextVideoClick)==null?void 0:R.call(s)}catch(ne){W({message:"onNextVideoClick callback failed to execute"})}ee(!1),_&&te()},Co=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},ho=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Vo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},lr=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},dr=()=>{B.prepare()},qo=()=>{(0,ct.assertNonNullable)(zt);let c=he(zt.ui.controls.disabledControls$),_=he(zt.playerPhase),R={playerPhase:_,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Pi.set(!1),W({message:"toggle play"}),_==="ads"){R.action="play",Z.log("toggle adman play",R),me.togglePlay();return}let ne=()=>{var et;W({message:"toggle play, call player.play"}),R.action="play",B.play(),(et=s==null?void 0:s.onPlay)==null||et.call(s)},Pe=()=>{var et;W({message:"toggle play, call player.pause"}),R.action="pause",B.pause(),(et=s==null?void 0:s.onPause)==null||et.call(s)};if(B.info.isEnded$.getValue()){if(W({message:"toggle play, video ended, seek to 0"}),Ki.next(),$t.next(Dr.SeekAction.REWIND),x){D==null||D();return}B.seekTime(0),ne()}else B.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING?ne():Pe();Z.log("toggle play",R)},Bi=(c,{changeReason:_="default",appliesTo:R="to-video",byUser:ne=!1}={},Pe)=>{W({message:`set quality, quality: ${c}`}),Z.log("set quality",{quality:c}),ne&&qi.next(c),B.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:et}=ue.features;zu(),c!=="auto"?(et?(Wu({type:"exact_quality",quality:c,videoId:i},R),B.setPredefinedQualityLimits(gi.PredefinedQualityLimits.UNKNOWN)):jf(i,c),an.set(c),B.setQuality(c)):et&&_==="default"&&(Je("auto_quality",R,Pe),he(Uo)&&Kn(!1,void 0,Pe),he(zo)&&Qo(!1,void 0,Pe))},Kn=(c,_="as-default",R)=>{W({message:`set trafficSavingEnabled, value: ${c}`}),Z.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?gi.PredefinedQualityLimits.TRAFFIC_SAVING:gi.PredefinedQualityLimits.UNKNOWN;ue.features.qualityDetailsSubMenuEnabled?(Cr(ne,_,R),tc(!1)):(B.setPredefinedQualityLimits(ne),ko(R)&&tc(c))},Qo=(c,_="as-default",R)=>{W({message:`set highQualityEnabled, value: ${c}`}),Z.log("set high quality enabled",{highQualityEnabled:c}),Cr(c?gi.PredefinedQualityLimits.HIGH_QUALITY:gi.PredefinedQualityLimits.UNKNOWN,_,R)},Cr=(c,_,R)=>{c!==gi.PredefinedQualityLimits.UNKNOWN&&(he(bn)&&!he(Fn)&&Bi("auto",{appliesTo:_,changeReason:"limit-changed"},R),Je(c,_,R)),B.setPredefinedQualityLimits(c)},Je=(c,_,R)=>{ko(R)&&(Wu({type:c,videoId:i},_),_==="as-default"&&Wu({type:c,videoId:i},"to-video"))},Yt=(c,_=!0)=>{Z.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),ue.features.saveRate&&le&&!B.info.isLive$.getValue()&&_&&G_(c)},Mi=()=>{let c=he(_n),_=he(mo),R=_.findIndex(({selected:Pe})=>Pe);if(R===_.length-1||!c)return _[R];let ne=_[R+1];return Yt(ne.value),ne},Cn=()=>{let c=he(_n),_=he(mo),R=_.findIndex(({selected:Pe})=>Pe);if(R===0||!c)return _[R];let ne=_[R-1];return Yt(ne.value),ne},ao=(c=ti(Ge({},Po()),{selected:!1}),_)=>{Z.log("set subtitles",Ge({},c)),c.value!==On&&We.next(c.isAuto?c.value+"_auto":c.value),pi.next({enabled:c.value!==On,lang:c.language,auto:!!c.isAuto}),zn.set(c),ko(_)&&(om(c.value===On?void 0:c.language),ue.features.userVideoPrefs&&i&&nm(ue.userSalt,String(i),{subtitleTrackId:c.value===On?void 0:c.value}))},Wr=c=>{Z.log("toggle subtitles");let _=he(Di);(_==null?void 0:_.value)===On?Tr(c):Ir(c)},Go=(c,_)=>{Z.log("change subtitle",{enabled:c}),c?Tr(!0,_):Ir(!0)},Tr=(c,_)=>{if(he(pt))return;Z.log("subtitle on");let R=he(ui),ne=he(At),Pe=He!=null?He:ne,et;_&&(et=R.find(Lt=>Lt.value===_)),et!=null||(et=R.filter(Lt=>Lt.value!==On).find(Lt=>Lt.language===Pe)),ao(et!=null?et:R[1],c)},Ir=c=>{Z.log("subtitle off"),ao(void 0,c)};we.add(B.info.availableTextTracks$.subscribe(c=>{var R;function _(){let ne=[];for(let{language:Pe,isAuto:et,id:Lt}of c){let Ht=Pe&&xc(Pe);Pe&&Ht&&ne.push({id:Lt,language:Pe,title:et?Ue("subtitles_auto",{language:Ht}):Ht})}return ne}(R=s==null?void 0:s.onAvailableSubtitlesChanged)==null||R.call(s,_())}));let Cs=re(!0),Ts=c=>{Cs.set(c)},qn=(c,_,R=!0)=>{var ne;if(W({message:`seek to time, time: ${c}`}),Z.log("seek to time",{time:c,action:_,forcePrecise:R}),$t.next(_),B.info.isLive$.getValue()){let Pe=B.info.duration$.getValue(),et=Math.min(0,Pe+c);B.seekTime(et,R)}else{if(T!=null&&T.getValue())return;B.info.isEnded$.getValue()&&(W({message:"seek after ended, call callbacks.onPlay"}),(ne=s==null?void 0:s.onPlay)==null||ne.call(s)),B.seekTime(Tg(c),R)}},xa=c=>{W({message:`seek to episode start time: ${c}`}),Z.log("seek to episode start time",{time:c}),qn(c,Dr.SeekAction.EPISODE,!0)},ms=(c,_,R=!1)=>{W({message:`seek to percent, percent: ${c}`}),Z.log("seek to percent",{percent:c,action:_});let ne=he(Nn)*c;qn(ne,_,R)},wa=c=>{W({message:`seek external, time: ${c}`}),Z.log("seek external",{time:c}),$t.next(Dr.SeekAction.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Sa=c=>{var ne,Pe;let _=(ne=c.max)!=null?ne:"none",R=(Pe=c.min)!=null?Pe:"none";W({message:`set auto quality limitation. Max: ${_}. Min: ${R}`}),Z.log("set auto quality limits",{max:_,min:R}),B.setAutoQualityLimits(c)},gt=c=>{W({message:`seek external to episode start time: ${c}`}),Z.log("seek external to episode start time",{time:c}),qn(c,Dr.SeekAction.EPISODE,!0)},ni=c=>{W({message:`set playback rate to: ${c}`}),Z.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Pi=re(!1),xi=re(!1),Er=mi([Nn,pt],([c,_])=>!!p&&c>=ue.suitableDurationForUsingRichSeek&&ue.features.useRichSeek&&!x&&X!=="preview"&&!_),Is=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Es=mi([Nt],([c])=>{let _=rd(c);return Is?!_:_});we.add(Bt.subscribe(c=>{c!=="video"&&Pi.set(!1)})),Pi.subscribe(c=>{var _;(_=s==null?void 0:s.onRichSeekActiveChanged)==null||_.call(s,c)});let Kr=re(void 0),Hi=re(!1),Qi=c=>{W({message:`start scrubbing, progress: ${c}`}),Z.log("start scrubbing",{progress:c}),Hi.set(!0),ve(c)},ve=c=>{Kr.set(c)},ht,ri,Zt=()=>{Kr.set(void 0),Hi.set(!1)},Yo=()=>{clearTimeout(ri),clearTimeout(ht),ht=window.setTimeout(()=>{Zt()},500),ke==null||ke.removeEventListener("seeked",Yo)},Ro=(c,_=!1,R=Dr.ThinOneStat.ActionSeekType.SLIDER)=>{W({message:`complete scrubbing, progress: ${c}`}),Z.log("complete scrubbing",{progress:c}),ms(c,R,_),he(zt.ui.isMobile)&&he(zt.state.currentFormat$)===gi.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",Yo),ri=window.setTimeout(()=>{Yo()},300)):Zt()},lo=mi([It,Nn,Kr],([c,_,R],ne)=>{ne((0,ct.isNonNullable)(R)?R*_:c)}),dn=re(!1),Ps=()=>{dn.set(!0)},As=()=>{dn.set(!1)},js=mi([hi],([{width:c}],_)=>{let R=Ib(c);_(R)}),qr=q.filter(c=>M_(c)),Xs=mi([js,at],([c,_])=>_?qr.filter(R=>!R.hideOnMobile):qr.filter(R=>{var ne;return!((ne=R.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),Tn=re(q.filter(c=>V_(c))),Ca=mi([Tn,js],([c,_])=>c.filter(R=>{var ne;return!((ne=R.hideOnDesktopGridTypes)!=null&&ne.includes(_))})),_l=mi([Ca,Xs],([c,_])=>[...ue.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?_.map((R,ne)=>{var Pe;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(Pe=R.ariaLabel)!=null?Pe:R.tooltip,tooltipText:R.tooltip}}):[]].filter(R=>!v.disabledAdditionalButtonIds.includes(R.id))),Pr=re(L),_d=mi([Pr],([c])=>ue.features.additionalSettingsMenuItems?c.map(_=>_.type==="SWITCH"?ti(Ge({},_),{onClick:_.onChangeEnabled}):_):[]),bl=(c,_)=>{let R=he(Tn).map(ne=>ne.id!==c?ne:Ge(Ge({},ne),_));Tn.set(R)},$l=c=>{let _=he(Tn);if(_.some(R=>R.id===c.id)){W({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),Tn.set(_)},yl=c=>{let _=he(Tn);if(!_.some(R=>R.id===c)){W({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}_=_.filter(R=>R.id!==c),Tn.set(_)},bd=c=>{$t.next(Dr.SeekAction.LIVE),W({message:"live switch to low latency "+c}),Z.log("live switch to low latency "+c),B.setLiveLowLatency(c)},Ta=(c,_)=>{let R=he(Pr).map(ne=>ne.id!==c?ne:Ge(Ge({},ne),_));Pr.set(R)},xl=c=>{let _=he(Pr);if(_.some(R=>R.id===c.id)){W({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),Pr.set(_)},_t=c=>{let _=he(Pr);if(!_.some(R=>R.id===c)){W({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}_=_.filter(R=>R.id!==c),Pr.set(_)},ut=re(z),Oi=mi([ut],([c])=>ue.features.additionalContextMenuItems?c:[]),jo=(c,_)=>{let R=he(ut).map(ne=>ne.id!==c?ne:Ge(Ge({},ne),_));ut.set(R)},Gi=c=>{let _=he(ut);if(_.some(R=>R.id===c.id)){W({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),ut.set(_)},wi=c=>{let _=he(ut);if(!_.some(R=>R.id===c)){W({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}_=_.filter(R=>R.id!==c),ut.set(_)},Fi=mi([at,$e],([c,_],R)=>{R(c&&_)}),Ia=()=>{$t.next(Dr.SeekAction.LIVE),W({message:"switch to active live"}),Z.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING&&zt.actions.internal.togglePlay()},wl=()=>{Z.log("skip adman"),me.skip()},Fp=(c=!0)=>{var ne;(0,ct.assertNonNullable)(zt),W({message:`switch from ads to video, callPlay: ${c}`}),Z.log("switch from ads to video",{callPlay:c}),xe.set("video"),c&&B.play(),l&&Wn(!0,!0);let _=(ne=he(Et))==null?void 0:ne.muted,R=!B.info.muted$.getValue();_!==void 0&&!R&&Wn(_,!0),Et.set(void 0)},iu=()=>{(0,ct.assertNonNullable)(zt),W({message:"switch from video to ads"}),Z.log("switch from video to ads"),zt.actions.internal.pause(),vn(),xe.set("ads")},Up=c=>{(0,ct.assertNonNullable)(zt);let _=c?"LiveWaitingStart":"thumb";Z.log("set live waiting start",{state:c,playerPhase:_}),xe.set(_)},ou=c=>{(0,ct.assertNonNullable)(zt);let _=c?"LiveWaitingRecover":"thumb";Z.log("set live waiting recover",{state:c,playerPhase:_}),xe.set(_)},zp=c=>{(0,ct.assertNonNullable)(zt);let _=c?"LiveWaitingRecord":"thumb";Z.log("set live waiting record",{state:c,playerPhase:_}),xe.set(_)},nu=()=>((0,ct.assertNonNullable)(zt),Z.log("get debug text data"),A_(B,Ce,zt,pe.getTraceId(),Ee)),Wp=()=>((0,ct.assertNonNullable)(zt),JSON.stringify(pe.getFinishedSpans())),ru=()=>((0,ct.assertNonNullable)(zt),k_(B,Ce,zt)),Sl=()=>ke,su=()=>{W({message:"toggle chromecast"}),Z.log("toggle chromecast"),B.toggleChromecast()},Zs=c=>{var R;if((0,ct.assertNonNullable)(zt),B.info.isEnded$.getValue())return;let _=!c;if(he(zt.playerPhase)==="ads"){W({message:`pause ads, internalCall: ${_}`}),Z.log("pause ads",{internalCall:_}),me.pause();return}W({message:`pause video, internalCall: ${_}`}),Z.log("pause video",{internalCall:_}),_&&((R=s==null?void 0:s.onPause)==null||R.call(s)),B.pause()},Ea=c=>{var R;(0,ct.assertNonNullable)(zt);let _=!c;if(he(zt.playerPhase)==="ads"){W({message:`play ads, internalCall: ${_}`}),Z.log("play ads",{internalCall:_}),me.play();return}W({message:`play video, internalCall: ${_}`}),Z.log("play video",{internalCall:_}),_&&((R=s==null?void 0:s.onPlay)==null||R.call(s)),B.play()},Kp=c=>{(0,ct.assertNonNullable)(zt);let _=!c;if(he(zt.playerPhase)==="ads"){W({message:"player cannot be stopped during ads via external method"});return}W({message:`player will be stopped, internalCall: ${_}`}),A==null||A()},$d=(c,_)=>{(0,ct.assertNonNullable)(zt),W({message:`first start, show ads: ${c}, internalCall: ${!_}`}),Z.log("first start",{showAds:c,external:_}),c?xe.set("ads"):(xe.set("video"),_?B.play():zt.actions.internal.togglePlay())},yd=()=>(W({message:"getting time codes"}),m),xd=()=>{let c=yd();if(!c||[0,1].includes(c.length))return;let _=B.info.position$.getValue();return c.find(R=>R.time>_)},qp=c=>{let _=c;_||(_=xd());let R=B.info.position$.getValue();Z.log("seek to next episode",Ge({currentTime:R},_)),_&&(W({message:"seek to next episode"}),qn(_.time,Dr.SeekAction.EPISODE,!0))},au=()=>{let c=yd();if(!c||[0,1].includes(c.length))return;let _=B.info.position$.getValue(),R=c.findIndex(Pe=>Pe.time>_),ne=R===-1?c.length-2:R-2;if(!(ne<0))return c[ne]},Qp=c=>{let _=c;_||(_=au());let R=B.info.position$.getValue();Z.log("seek to prev episode",Ge({currentTime:R},_)),_&&(W({message:"seek to prev episode"}),qn(_.time,Dr.SeekAction.EPISODE,!0))},qe=()=>(W({message:"getting preview thumbs data"}),Z.log("get preview thumbs data",Ge({},p)),p),bi=()=>xt(null,null,function*(){let c=Ie==null?void 0:Ie.isActive(),_="none";Ie!=null&&Ie.isActive()?(_="exit",yield Ie==null?void 0:Ie.exit()):(_="request",yield Ie==null?void 0:Ie.request()),Z.log("toggle picture in picture",{isActive:c,action:_})}),Xo=(c=-90)=>{Z.log("rotate video",{alphaDiff:c}),Nt.update(_=>_+c)},In=re([]);I==null||I.subscribe(c=>{let _=[];for(let R=0;R<c.length;R++){let{range:[ne,Pe],subjects:et}=c[R];R===0&&ne!==0&&_.push({time:0,text:"",interactive:!1,completed:!0}),_.push({time:ne/1e3,text:"",interactive:!0,completed:ue.features.interactiveTimeOpenUri?!et.length||et.every(Lt=>Lt.isRemoved):!et.length}),Pe!==1/0&&_.push({time:Pe/1e3,text:"",interactive:!1,completed:!0})}In.set(_)});let En=re(!1);T==null||T.subscribe(c=>{c&&he(Hi)&&Zt()});let Tg=c=>{if(!x)return c;let _=he(In),R=he(Nn),Pe=he(Nr)/R,et=_.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Pe);return typeof(et==null?void 0:et.time)=="number"?Math.min(c,et.time-.05):c},D$=()=>{zt.ui.episodes.panelOpened$.set(!1)},O$=()=>{Z.log("destroy store"),clearTimeout(ri),clearTimeout(ht),we.unsubscribe(),U.unsubscribe(),B.destroy(),me.destroy(),ae==null||ae.destroy(),Oe.unsubscribe(),rt==null||rt.disconnect(),rt=null,Te.destroy(),de==null||de.destroy()},N$=mi([Hn,Bt,_n],([c,_,R])=>v.features.doubleForwardAvailable&&!c&&_==="video"&&R),Gp=re(!1),Ig=2,lu=null,Eg=c=>{if(!he(Bn)&&c)return;let _=B.info.currentPlaybackRate$.getValue();c?_!==Ig&&(lu=_,Yt(Ig,!1),Gp.set(!0)):(lu&&Yt(lu,!1),Gp.set(!1),lu=null)};Bt.subscribe(c=>{c!=="video"&&Eg(!1)});let B$=()=>{Zs(!1),Pi.set(!0)},H$=()=>{Ea(!1),Pi.set(!1)},Yp=!1,F$=()=>{xi.set(!0),Yp=B.info.playbackState$.getValue()===gi.PlaybackState.PLAYING,Zs(!1)},U$=()=>{xi.set(!1),!he(Pi)&&Yp&&Ea(!1),Yp=!1};B.events.playing$.subscribe(()=>{he(Pi)&&Zs(!1)});let zt={interfaceLanguage$:At,isCyrillicRelatedInterface$:je,initVideo:oo,videoId:i,isClip:o,playerPhase:Bt,vsid:Pt,state:{positionExact$:It,positionWithScrubbing$:lo,duration$:Nn,playbackState$:xo,playbackStateRealistic$:gn,isPlaying$:Bn,isLoaderVisible:di,bufferedProgress$:ar,isLive$:Ii,canChangePlaybackSpeed$:_n,isActiveLive$:Hn,isOldestAvailableLive$:tr,isRewindableLive$:ls,isEnded$:ki,muted$:Io,volume$:Si,trafficSavingEnabled$:Uo,highQualityEnabled$:zo,autoQualityLimitingAvailable$:bn,availableVideoStreams$:ds,availableAudioStreams$:Wo,videoStream$:ir,audioStream$:xr,currentQuality$:Br,isAutoQualityEnabled$:Fn,availableQualities$:yn,currentPlaybackRate$:Un,availablePlaybackRates$:mo,currentSubtitle$:Di,availableTextTracks$:sr,availableSubtitlesList$:ui,currentSubtitleCaptions$:wn,isAutoSubtitleCaptionVisible$:So,chromecastState$:rs,chromecastDeviceName$:$r,chromecastConnected$:Li,currentFormat$:$n,throughputEstimation$:ss,videoBitrate$:er,videoSize$:Or,errorLog$:Y,crashed$:$e,isAudioAvailable$:as,isAudioDisabled:!!l,canDownload:ue.features.download&&!!d,availableSources$:ro,hasMpegSources$:Sr,isInteractive:x,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!he(In).length,interactiveEpisodes$:In,isInteractiveTime$:T?oi(T):re(!1),isInteractiveExpectation$:En,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,looped$:vo,loadedMetadata$:qt,isAutoQualityAvailable$:Ko,previewTrackActive:Pi,previewTrackDragInProgress:xi},ui:{t:Ue,isMinimalView$:pt,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),"theater-mode-button":re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:q.length?q.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:$i},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:dt,isFullscreenOpenedByKeyboard:ai,rotateAlpha:Nt,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:hi,isMobile:at,mobileNotReportControlHidden$:Fi,icon3DVideoVisible:re(!1),scrubbingInProgress:Hi,volumeChangingInProgress:dn,is3DVideo:Le,currentGridType$:js,additionalButtonsDeprecated$:Xs,additionalDesktopControlPanelRightButtons$:_l,additionalSettingsMenuItems$:_d,additionalContextMenuItems$:Oi,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:Cs,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0),doubleForwardOn$:Gp,doubleForwardAvailable$:N$,previewTrackActive:Pi,previewTrackDragInProgress:xi,previewTrackAvailable:Er,isPreviewTrackHorizontallyAligned:Es},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:Ie,annotationsApi:nt,slotsApi:Me,focusManager:be},actions:{internal:{preload:dr,firstStart:c=>$d(c,!1),play:()=>Ea(!1),pause:()=>Zs(!1),togglePlay:qo,toggleMuted:us,openSettingsMenu:ps,closeSettingsMenu:Fr,openSettingsSubMenu:fs,closeSettingsSubMenu:so,setVolume:c=>zr(c,!1),setMuted:c=>Wn(c,!1),startVolumeChanging:Ps,stopVolumeChanging:As,setVideoStream:or,setAudioStream:c=>mt(c,!1),setQuality:(c,_)=>Bi(c,_,!1),setTrafficSavingEnabled:(c,_)=>Kn(c,_,!1),setHighQualityEnabled:(c,_)=>Qo(c,_,!1),setPlaybackRate:Yt,incrementPlaybackRate:Mi,decrementPlaybackRate:Cn,setSubtitle:c=>ao(c,!1),toggleSubtitle:()=>Wr(!1),togglePictureInPicture:bi,startScrubbing:Qi,progressScrubbing:ve,completeScrubbing:Ro,toggleChromecast:su,switchToActiveLive:Ia,switchFromAdsToVideo:Fp,switchFromVideoToAds:iu,skipAd:wl,setLiveWaitingStart:Up,setLiveWaitingRecover:ou,setLiveWaitingRecord:zp,getDebugTextData:nu,getTraceTextData:Wp,getDebugPanelData:ru,getVideoElement:Sl,seekTime:(c,_,R)=>qn(c,_,R),clearDelayedBufferingCheckTimeout:yr,seekEpisodeStartTime:xa,seekToPercent:ms,getNextEpisode:xd,seekToNextEpisode:qp,getPrevEpisode:au,seekToPrevEpisode:Qp,startLogging:ot,stopLogging:Xt,startCameraManualRotation:_i,stopCameraManualRotation:lt,moveCameraFocusPX:li,holdCamera:yi,releaseCamera:jt,getVideoEpisodes:yd,getPreviewThumbsData:qe,downloadVideo:Sn,addLanguage:rm,setLanguage:vt,nextMovie:ci,videoRotate:Xo,correctSeekTimeToInteractive:Tg,replayInteractive:D,setLooped:go,reportProblem:Xe,setAutoplayNextEnabled:Mt,setTimerNextVideoRunning:fi,prevVideoClick:Lo,nextVideoClick:Mo,nextVideoAnnouncementShow:Co,nextVideoAnnouncementClick:ho,nextVideoAnnouncementAuto:Vo,nextVideoAnnouncementCancel:lr,checkFullscreenSupport:Tt,changeDoubleForwardOn:Eg,closePreviewTrack:H$,previewTrackOpened:B$,previewTrackDragStarted:F$,previewTrackDragFinished:U$},external:{firstStart:c=>$d(c,!0),play:()=>Ea(!0),pause:()=>Zs(!0),stop:()=>Kp(!0),seekTime:c=>wa(c),seekEpisodeStartTime:c=>gt(c),setPlaybackRate:c=>ni(c),setAutoQualityLimits:c=>Sa(c),setMuted:c=>Wn(c,!0),toggleSubtitle:()=>Wr(!0),changeSubtitle:Go,setVolume:c=>zr(c,!0),returnFocusToEpisodes:D$,updateAdditionalSettingsItem:Ta,addAdditionalSettingsItem:xl,removeAdditionalSettingsItem:_t,updateAdditionalContextItem:jo,addAdditionalContextItem:Gi,removeAdditionalContextItem:wi,updateAdditionalButton:bl,addAdditionalButton:$l,removeAdditionalButton:yl,setLiveLowLatency:bd,hideControls:()=>Ts(!1),showControls:()=>Ts(!0),setQuality:c=>Bi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Kn(c,"to-video",!0),setHighQualityEnabled:c=>Qo(c,"to-video",!0),changeAudioStream:wr,setMinimalView:Ne}},callbacks:s,setUiCallbacks:c=>{Qe=Ge({},c)},getAdmanWrapper:()=>me,getLogger:()=>fe,getPlayer:()=>B,destroy:O$};return zt};function Zn(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Ks(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var f2=["disabledControls$","additionalButtons"],m2=["interactiveTimeIndicator"],ad=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!f2.includes(r)){let l=o||m2.includes(r);a.set(Zn(t,i,r,l))}}};var hp=(t,e,i)=>xt(null,null,function*(){yield yo(),e&&i&&(i.focus(),t.set(!1))});var v2=Ae('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function nv(t){Ze(t,{children:(e,i)=>{var o=v2();b(e,o)},$$slots:{default:!0}})}function rv(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(s,"$contextMenuVisible$",i),a=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=ye(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,$=K(void 0);Fe(()=>{n($)&&kt(()=>{v.set(n($))})});let y=T=>{let D=fa(T),A=_b(n($));p.set(A),u.set(D),s.set(!r())},g=()=>{m.set(!0)},x=()=>{m.set(!1)},I=f(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:g,blur:x,get ariaExpanded(){return r()},get ref(){return n($)},set ref(T){O($,T,!0)},children:(T,D)=>{nv(T,{})},$$slots:{default:!0}}),F(),o()}var g2=t=>{t.stopPropagation()},h2=k("<div><!> <div></div> <div></div></div>"),_2={hash:"s-23",code:'.interactive-episode-icon-animated.s-23{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-23{height:28px;width:28px}.invisible.s-23{opacity:0;visibility:hidden}.fullscreen.s-23:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-23{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-23{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-23{right:16px;top:40px}}@keyframes s-23-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-23{animation:s-23-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-23{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-23{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-23{display:none}'};function Ic(t,e){var fe;H(e,!0),Q(t,_2);let[i,o]=Be(),r=()=>w(x,"$isMobile",i),a=()=>w(A,"$areControlsVisible",i),l=()=>w(V,"$currentGridType$",i),d=()=>w(T,"$isInteractiveTime$",i),s=()=>w(g,"$interactiveControlsOpacity$",i),u=()=>w(D,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>w(I,"$isFullscreen",i),p=h(e,"ref",15,void 0),v=K(void 0),$=ye(),y=To(),{interactiveControlsOpacity$:g}=y,x=$.ui.isMobile,I=$.ui.isFullscreen,T=$.state.isInteractiveTime$,D=y.showInteractiveTimeIndicatorTooltip$,A=$.ui.controlsVisible,E=(fe=$.callbacks)==null?void 0:fe.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,q=f(()=>!r()&&a()),L=f(()=>Us(l(),"s")),z=f(()=>!d()||!!s()||n(q)),j=K(!1);Fe(()=>{O(j,n(z),!0)});let te=()=>{O(j,!0)},ee=()=>{var me;oe(),(me=n(v))==null||me.addEventListener("animationiteration",te,{once:!0})},oe=()=>{var me;O(j,!1),(me=n(v))==null||me.removeEventListener("animationiteration",te)},ae=me=>{D.set(me)},le=f(()=>u()&&!n(z));Fe(()=>{u()?ee():oe()});let ce=()=>{n(z)||(D.set(!0),E==null||E())};pn(()=>{D.clearTimeout(),oe()});let X=()=>{D.set(!1)},_e=G("tooltip_interactive_interaction_time_indicator");var Ee=h2();let de;Ee.__mousemove=[g2],Ee.__click=ce;var ze=C(Ee);Bo(ze,{get tooltipContent(){return _e},get tooltipVisible(){return n(le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ae,get ref(){return p()},set ref(me){p(me)},children:(me,Ie)=>{vc(me,{completed:!0})},$$slots:{default:!0}});var ue=P(ze,2);let pe;it(ue,me=>p(me),()=>p());var Z=P(ue,2);let B;it(Z,me=>O(v,me),()=>n(v)),S(Ee),N((me,Ie,nt)=>{de=ie(Ee,1,"interactive-episode-icon-animated s-23",null,de,me),pe=ie(ue,1,"ref-block s-23",null,pe,Ie),B=ie(Z,1,"pulse s-23",null,B,nt)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(L)}),()=>({hidden:n(z)}),()=>({paused:n(j)})]),bt("mouseleave",Ee,X),b(t,Ee),F(),o()}tt(["mousemove","click"]);function _p(t,e){H(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),a=h(e,"ref",15),l=h(e,"tooltipVisible",3,!1);Bo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Re();let m=f(()=>e.buttonComponent);var p=se(u);Wi(p,()=>n(m),(v,$)=>{$(v,Jr(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),F()}var qs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var $2=Ae('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function _a(t,e){H(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${fn(e.size)}${n(o)}`),a=f(()=>i()?"prev-icon":"next-icon");Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=$2();b(l,s)},$$slots:{default:!0}}),F()}var y2=k('<div class="icon-background-mobile s-21"><!></div>'),x2={hash:"s-21",code:".icon-background-mobile.s-21{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function ol(t,e){H(e,!0),Q(t,x2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=ye().ui.t,d=f(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=f(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=f(()=>`btn-${o()?"m":"d"}--${e.type}`);Ut(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{var v=Re(),$=se(v);{var y=x=>{var I=y2(),T=C(I);let D=f(()=>e.type==="prev");_a(T,{get size(){return"32"},get reversed(){return n(D)}}),S(I),b(x,I)},g=x=>{let I=f(()=>e.type==="prev");_a(x,{get size(){return"24"},get reversed(){return n(I)}})};M($,x=>{o()?x(y):x(g,!1)})}b(m,v)},$$slots:{default:!0}}),F()}var w2=Ae('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function Ec(t,e){H(e,!0);let i=f(()=>fn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=w2();b(o,a)},$$slots:{default:!0}}),F()}var Wb=require("@vkontakte/videoplayer-shared/es2015");var S2=k('<div class="icon-background-mobile s-25"></div>'),C2=k("<!> <div><!></div>",1),T2={hash:"s-25",code:".mobile.s-25{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-25{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function ld(t,e){H(e,!0),Q(t,T2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),a=h(e,"className",3,""),l=h(e,"click",3,Wb.noop),d=G("tooltip_restart"),s=f(()=>`${o()?"btn-m--play":""} ${a()}`);Ut(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ys.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=C2(),v=se(p);{var $=T=>{var D=S2();b(T,D)};M(v,T=>{o()&&T($)})}var y=P(v,2);let g;var x=C(y);let I=f(()=>o()?"48":"24");Ec(x,{get size(){return n(I)}}),S(y),N(T=>g=ie(y,1,"s-25",null,g,T),[()=>({mobile:o()})]),b(u,p)},$$slots:{default:!0}}),F()}var I2=Ae('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Qs(t,e){H(e,!0);let i=f(()=>fn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=I2();b(o,a)},$$slots:{default:!0}}),F()}var Kb=require("@vkontakte/videoplayer-shared/es2015");var E2=k('<div class="icon-background-mobile s-20"><!></div>'),P2={hash:"s-20",code:".icon-background-mobile.s-20{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function dd(t,e){H(e,!0),Q(t,P2);let[i,o]=Be(),r=()=>w(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=To(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),s=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),m=h(e,"className",3,""),p=h(e,"click",3,Kb.noop),$=ye().ui.t,{toggle:y}=a,g=f(()=>y),x=f(()=>r()!==null),I=f(()=>n(x)?r():s()),T=f(()=>n(I)?$("tooltip_pause"):$("tooltip_play")),D=f(()=>n(I)?Qs:_r),A=f(()=>`${d()?"btn-m--play":""} ${m()}`),E=f(()=>n(x)?n(g):p());Ut(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return ys.KeyK},get ref(){return l()},set ref(V){l(V)},children:(V,q)=>{var L=Re();let z=f(()=>n(D));var j=se(L);{var te=oe=>{var ae=E2(),le=C(ae);Wi(le,()=>n(z),(ce,X)=>{X(ce,{get size(){return"48"}})}),S(ae),b(oe,ae)},ee=oe=>{var ae=Re(),le=se(ae);Wi(le,()=>n(z),(ce,X)=>{X(ce,{get size(){return"24"}})}),b(oe,ae)};M(j,oe=>{d()?oe(te):oe(ee,!1)})}b(V,L)},$$slots:{default:!0}}),F(),o()}var A2=Ae('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function sv(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=A2();b(e,o)},$$slots:{default:!0}})}function Pc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=G("tooltip_interactive_go_back"),l=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{sv(d,{})},$$slots:{default:!0}}),F()}var k2=k('<span class="gutter s-22"><span><!></span></span>'),L2={hash:"s-22",code:".gutter.s-22{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-22{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-22{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Ac(t,e){H(e,!0),Q(t,L2);let[i,o]=Be(),r=()=>w(s,"$autoplayNextEnabled$",i),a=h(e,"ref",15,void 0),l=ye(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",$="#000",y=f(()=>r()?"true":"false");Ut(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(g){a(g)},children:(g,x)=>{var I=k2(),T=C(I);let D;var A=C(T);{var E=q=>{_r(q,{get size(){return v},fill:$})},V=q=>{Qs(q,{get size(){return v},fill:$})};M(A,q=>{r()?q(E):q(V,!1)})}S(T),S(I),N(q=>D=ie(T,1,"toggler s-22",null,D,q),[()=>({enabled:r()})]),b(g,I)},$$slots:{default:!0}}),F(),o()}var M2=Ae('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function av(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=M2();Jt(),b(e,o)},$$slots:{default:!0}})}function kc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=G("tooltip_interactive_seek"),l=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{av(d,{})},$$slots:{default:!0}}),F()}var V2=Ae('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),R2=Ae('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function lv(t,e){let i=h(e,"isOpened",3,!1),o=f(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=R2(),d=P(se(l));{var s=u=>{var m=V2();b(u,m)};M(d,u=>{i()&&u(s)})}b(r,l)},$$slots:{default:!0}})}function Lc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=h(e,"graphIsOpened",3,!1),d=ye().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{let v=f(()=>!!a());lv(m,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),F()}var dv=require("@vkontakte/videoplayer-core/es2015");function Mc(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(u,"$playbackState$",i),a=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),s=ye(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===dv.PlaybackState.PAUSED&&p()}),$=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),g=f(()=>l()&&r()===dv.PlaybackState.PLAYING);Ut(t,{get className(){return n($)},get testId(){return n(y)},get disabled(){return n(g)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{rc(x,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var cv=require("@vkontakte/videoplayer-shared/es2015");var D2=k('<div class="icon icon-error-stub"><div class="inner"></div></div>'),O2=k('<img class="icon" aria-hidden="true"/>');function nl(t,e){"use strict";let i=K(!1),o=()=>{O(i,!0)};var r=Re(),a=se(r);{var l=s=>{var u=D2();b(s,u)},d=s=>{var u=O2();N(()=>De(u,"src",e.icon)),bt("error",u,o),Ha(u),b(s,u)};M(a,s=>{n(i)?s(l):s(d,!1)})}b(t,r)}function uv(t,e){H(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,cv.noop),r=h(e,"ref",15),a=f(()=>o()===cv.noop),l=f(()=>n(a)||i()),d=f(()=>n(a)?"btn-full-opacity":"");Bo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let m=f(()=>{var p;return(p=e.testId)!=null?p:e.id});Ut(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(p,v)=>{nl(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var qb=t=>!!t.buttonComponent;var Gs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var bp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(Zn(t,i,r,o))};var $p=require("@vkontakte/videoplayer-shared/es2015"),Qb=10,Gb=40,pv=.2,B2=.5,H2=65,F2=114,U2=4,Yb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=f(()=>i?H2:F2),r=K(!1),a=K(0),l=K(0),d=f(()=>n(o)+Qb-Gb-U2),s=f(()=>(0,$p.interpolate)(n(a),[pv,1],[0,-n(d)])),u=f(()=>(0,$p.interpolate)(n(a),[pv,1],[0,Gb])),m=f(()=>(0,$p.interpolate)(n(a),[pv,1],[0,n(o)+Qb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:g=>{var x;O(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:g=>{if(!n(r))return;let x=Math.max(Math.min(g.clientY-n(l),0),-n(d));O(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(a,n(a)>=B2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{O(a,0)}}};var z2=t=>t;function ba(t,{delay:e=0,duration:i=400,easing:o=z2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var W2=k('<span class="root s-2c"> </span>'),K2={hash:"s-2c",code:".root.s-2c{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function fv(t,e){Q(t,K2);var i=W2(),o=C(i,!0);S(i),N(()=>ge(o,e.time)),b(t,i)}var q2=k('<div class="tooltip-wrapper s-j"><div><!></div></div>'),Q2={hash:"s-j",code:'.tooltip-wrapper.s-j{display:block;position:relative}.tooltip.s-j{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-j:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-j{opacity:1;visibility:visible}'};function mv(t,e){Q(t,Q2);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),a=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function m(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return x<T?T+l():x>e.containerWidth-T?e.containerWidth-T-d():x}let p=f(()=>m(r()));var v=q2(),$=C(v);let y;var g=C($);ii(g,()=>{var x;return(x=e.children)!=null?x:wt}),S($),it($,x=>O(u,x),()=>n(u)),S(v),it(v,x=>O(s,x),()=>n(s)),N(x=>{Ke(v,`transform: translate(${n(p)}px, ${a()}px);`),y=ie($,1,"tooltip s-j",null,y,x),Ke($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,v)}var jb=t=>Math.abs(t)/90%4===1;var G2=Ae('<path xmlns="http://www.w3.org/2000/svg" d="M15.782 10.152a.75.75 0 0 1-1.06 0L9.999 5.438l-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.246a.75.75 0 0 1 0 1.06Z"></path><path xmlns="http://www.w3.org/2000/svg" d="M15.782 16.152a.75.75 0 0 1-1.06 0l-4.723-4.715-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.245a.75.75 0 0 1 0 1.061Z"></path>',1);function vv(t){Ze(t,{height:"20",width:"20",shadow:!0,children:(e,i)=>{var o=G2();Jt(),b(e,o)},$$slots:{default:!0}})}var Y2=k('<div class="rich-seek-hint s-i"><span class="icon_wrapper s-i"><!></span> <span class="rich-seek-hint-text s-i"> </span></div>'),j2=k('<div class="preview s-i"><!></div>'),X2=k('<div class="episode s-i"><!></div>'),Z2=k('<div class="time s-i"> </div>'),J2=k("<div><!> <!> <!></div>"),ew={hash:"s-i",code:".timeline-preview.s-i{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-i{bottom:72px}.preview.s-i{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow);display:flex;justify-content:center}.episode.s-i{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-i,.time.s-i{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-i{color:var(--white)}.rich-seek-hint.s-i{position:absolute;text-align:center;top:-12px;transform:translateY(-100%)}.icon_wrapper.s-i{display:inline-block;height:20px;margin-right:6px;vertical-align:top;width:20px}.rich-seek-hint-text.s-i{font-size:14px;line-height:18px;text-shadow:0 2px 4px rgba(0,0,0,.3),0 7px 16px rgba(0,0,0,.25);vertical-align:top}"};function gv(t,e){H(e,!0),Q(t,ew);let[i,o]=Be(),r=()=>w(x,"$isMinimalView$",i),a=()=>w(I,"$rotateAlpha",i),l=()=>w(T,"$playerSize",i),d=()=>w(D,"$previewTrackAvailable",i),s={MOBILE:150,DESKTOP:278},u=h(e,"time",3,""),m=h(e,"isMobile",3,!1),p=h(e,"videoEpisodes",19,()=>[]),v=h(e,"progress",3,0),$=h(e,"duration",3,0),y=h(e,"isInteractive",3,!1),g=ye(),x=g.ui.isMinimalView$,I=g.ui.rotateAlpha,T=g.ui.playerSize,D=g.ui.previewTrackAvailable,A=K(0),E=K(0),V=K(""),q=K(0),L=K(0),z=K(0),j=K(0),te=f(()=>sp(v(),$(),p())),ee=f(()=>!r()),oe=f(()=>rd(a())),ae=f(()=>jb(a())),le=f(_e),ce=f(()=>(n(ae)?1:-1)*(n(A)/2-n(E)/2)),X=f(()=>n(ce)*-1);Fe(()=>{(Me=>{O(A,Me.width,!0),O(E,Me.height,!0)})(de())}),Fe(()=>{(Me=>{O(V,Me.imgSrc,!0),O(q,Me.imgWidth,!0),O(L,Me.imgHeight,!0),O(z,Me.imgOffsetX,!0),O(j,Me.imgOffsetY,!0)})(ze(v()))});function _e(){var Ce;let Me=m()?s.MOBILE:s.DESKTOP,{isVertical:be}=Ee(),W=30;return(Ce=n(te))!=null&&Ce.text&&(W+=16),(be||n(oe))&&(W+=18,W+=50),Math.min(Math.max(l().height-W,0),Me)}function Ee(){let Me=e.previewThumbsData.frameWidth,be=e.previewThumbsData.frameHeight,W=be>Me;return{width:Me,height:be,isHorizontal:!W,isVertical:W}}function de(){let{height:Me,isHorizontal:be,isVertical:W,width:Ce}=Ee();return be&&(Me=Me/Ce*n(le),Ce=n(le)),W&&(Ce=Ce/Me*n(le),Me=n(le)),{width:Ce,height:Me}}function ze(Me){let be;e.previewThumbsData.isUV?be=Math.floor($()*Me/e.previewThumbsData.frequency):be=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Me)));let W=Math.floor(be/e.previewThumbsData.countPerImage),Ce=Math.floor(be%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ke=be%e.previewThumbsData.countPerRow,Qe=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&W===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Qe=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Qe++);let Te=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&W===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Te=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let we=n(A)*Te,He=n(E)*Qe,at=-ke*n(A),pt=-Ce*n(E);return{imgSrc:e.previewThumbsData.links[W],imgWidth:we,imgHeight:He,imgOffsetX:at,imgOffsetY:pt}}var ue=J2();let pe;var Z=C(ue);{var B=Me=>{var be=j2(),W=C(be);{var Ce=ke=>{var Qe=Y2(),Te=C(Qe),we=C(Te);vv(we,{}),S(Te);var He=P(Te,2),at=C(He,!0);S(He),S(Qe),N(pt=>ge(at,pt),[()=>G("preview_track_notification_text")]),b(ke,Qe)};M(W,ke=>{d()&&ke(Ce)})}S(be),N(()=>Ke(be,`width: ${n(A)}px; height: ${n(E)}px; background-image: url(${n(V)}); background-size: ${n(q)}px ${n(L)}px; background-position: ${n(z)}px ${n(j)}px;
60
60
  transform: rotate(${a()}deg) ${n(oe)?`translate(${n(ce)}px, ${n(X)}px)`:""};
61
- `)),b(Me,be)};M(Z,Me=>{n(V)&&Me(B)})}var fe=P(Z,2);{var me=Me=>{var be=X2(),W=C(be);{var Ce=ke=>{var Qe=Re(),Te=se(Qe);{var we=at=>{var pt=$s();N(Pt=>ge(pt,Pt),[()=>G("tooltip_episode_unfinished")]),b(at,pt)},He=at=>{var pt=$s();N(()=>ge(pt,n(te).text||"")),b(at,pt)};M(Te,at=>{y()&&n(te).completed===!1?at(we):at(He,!1)})}b(ke,Qe)};M(W,ke=>{n(te)&&ke(Ce)})}S(be),b(Me,be)};M(fe,Me=>{n(ee)&&Me(me)})}var Ie=P(fe,2);{var nt=Me=>{var be=Z2(),W=C(be,!0);S(be),N(()=>ge(W,u())),b(Me,be)};M(Ie,Me=>{y()||Me(nt)})}S(ue),N(Me=>{pe=ie(ue,1,"timeline-preview s-12",null,pe,Me),Ke(ue,`width: ${n(oe)?n(E):n(A)}px;`)},[()=>({mobile:m()})]),b(t,ue),F(),o()}var tw=k('<span class="time s-f"> </span>'),iw=k("<!> <!>",1),ow={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.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 hv(t,e){var Oe,$e,Ne,vt,At;H(e,!0),Q(t,ow);let[i,o]=Be(),r=()=>w(ee,"$interactiveEpisodes$",i),a=()=>w(V,"$duration$",i),l=()=>w(E,"$position$",i),d=()=>w(le,"$isInteractiveExpectation$",i),s=()=>w(ae,"$isInteractiveTime$",i),u=()=>w(Ee,"$previewTrackActive",i),m=()=>w(q,"$isLive$",i),p=()=>w(_e,"$disabledControls$",i),v=()=>w(z,"$isMobile",i),$=()=>w(L,"$isActiveLive$",i),y=()=>w(A,"$bufferedProgress$",i),g=h(e,"showTimeline",3,!1),x=h(e,"withEpisodes",3,!0),I=h(e,"ref",15,void 0),T=ye(),D=Rt(),A=T.state.bufferedProgress$,E=T.state.positionWithScrubbing$,V=T.state.duration$,q=T.state.isLive$,L=T.state.isActiveLive$,z=T.ui.isMobile,j=D.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,te=T.actions.internal.getPreviewThumbsData(),ee=T.state.interactiveEpisodes$,oe=T.state.isInteractive,ae=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,ce=T.actions.internal.correctSeekTimeToInteractive,X=(Oe=T.callbacks)==null?void 0:Oe.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,Ee=T.ui.previewTrackActive,de=(Ne=($e=T.callbacks)==null?void 0:$e.uiInfo)==null?void 0:Ne.onTimelineMouseEnter,ze=(At=(vt=T.callbacks)==null?void 0:vt.uiInfo)==null?void 0:At.onTimelineMouseLeave,ue=T.ui.t,pe=D.features.interactiveResponsiveUi,Z=f(()=>oe?r():j),B=f(()=>sn(a())),fe=f(()=>sn(l())),me=f(()=>l()/a()),Ie=f(()=>d()||s()),nt=K(!1),Me=K(""),be=K(0),W=K(0),Ce=K(0),ke=f(()=>({containerWidth:n(W),translateXPx:n(be),translateYPx:oe&&te?-36:-16,active:n(nt)&&g()&&!n(Ie)&&!pe&&!u(),pointer:!D.features.timelinePreview||!te||m()})),Qe=ue("aria_timeline"),Te=f(()=>ue("aria_timeline_value",{position:n(fe),duration:n(B)}));function we(Se){return!ce||!oe?Se:ce(Se*a())/a()}function He(Se,je){var Ue;(Ue=e.onSliderPointerDown)==null||Ue.call(e,je),T.actions.internal.startScrubbing(we(Se))}function at(Se){s()||T.actions.internal.progressScrubbing(we(Se))}function pt(Se){var je;T.actions.internal.completeScrubbing(we(Se)),O(nt,!1),(je=e.onSliderPointerUp)==null||je.call(e)}function Pt(Se,je,Ue){var xe;(xe=e.onSliderPointerEnter)==null||xe.call(e,Se),Tt(Se,je,Ue),O(nt,!0)}function dt(Se,je,Ue,xe){var Bt;(Bt=e.onSliderMove)==null||Bt.call(e,xe,Se),Tt(Se,je,Ue),O(nt,!0)}function ai(){var Se;O(nt,!1),(Se=e.onSliderLeave)==null||Se.call(e)}function Tt(Se,je,Ue){O(Ce,we(Se),!0),O(be,je,!0),Ue&&O(W,Ue,!0),O(Me,Ot(Se),!0)}function Ot(Se){let je=sn((m()?1-Se:Se)*a());return m()?`-${je}`:je}let Nt=f(()=>p().has("TIMELINE"));var qt=iw(),Le=se(qt);mv(Le,Jr(()=>n(ke),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Se,je)=>{var Ue=Re(),xe=se(Ue);{var Bt=Gt=>{gv(Gt,{get time(){return n(Me)},get isMobile(){return v()},get videoEpisodes(){return n(Z)},get previewThumbsData(){return te},get progress(){return n(Ce)},get duration(){return a()},get isInteractive(){return oe}})},Et=Gt=>{var $i=tw(),hi=C($i,!0);S($i),N(()=>ge(hi,n(Me))),b(Gt,$i)};M(xe,Gt=>{D.features.timelinePreview&&te&&!m()?Gt(Bt):Gt(Et,!1)})}b(Se,Ue)},$$slots:{default:!0}}));var Y=P(Le,2);Ja(Y,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return v()},get ariaLabel(){return Qe},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(me)},get handleProgress(){return n(me)},get videoEpisodes(){return n(Z)},onPointerDown:He,onHandleMove:at,onPointerMove:dt,onPointerUp:pt,onPointerEnter:Pt,onPointerLeave:ai,get onMouseEnter(){return de},get onMouseLeave(){return ze},get onDisabledClick(){return X},get isInteractive(){return oe},get disabled(){return n(Nt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:pt,get ref(){return I()},set ref(Se){I(Se)}}),b(t,qt),F(),o()}var nw={hash:"s-g",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 Vc(t,e){H(e,!0),Q(t,nw);let[i,o]=Be(),r=()=>w(s,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"duration",3,0),d=ye(),s=d.ui.isMobile,u=d.ui.t,m=f(()=>sn(l())),p=f(()=>sn(a())),v=f(()=>a()/l()),$=f(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),y=f(()=>Math.round(n(v)*100));Ja(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n($)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var rw=k("<div><!></div>"),sw=k("<div></div>"),aw={hash:"s-e",code:".timeline.s-e{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-e{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-e{padding:0}.timeline-stub.s-e{min-width:20px;width:100%}.timeline-stub.mobile.s-e{height:8px}"};function rl(t,e){H(e,!0),Q(t,aw);let[i,o]=Be(),r=()=>w(x,"$isLive$",i),a=()=>w(D,"$isMobile",i),l=()=>w(A,"$disabled",i),d=()=>w(T,"$adPosition",i),s=()=>w(I,"$adDuration",i),u=h(e,"isAds",3,!1),m=h(e,"isHidden",3,!1),p=h(e,"timelineNotAvailable",3,!1),v=h(e,"needPadding",3,!0),$=h(e,"ref",15,void 0),y=ye(),g=Rt(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,D=y.ui.isMobile,A=re(!1),E=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var V=Re(),q=se(V);{var L=j=>{var te=rw();let ee;var oe=C(te);{var ae=ce=>{Vc(ce,{get position(){return d()},get duration(){return s()}})},le=ce=>{hv(ce,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return $()},set ref(X){$(X)}})};M(oe,ce=>{u()?ce(ae):ce(le,!1)})}S(te),Ns(te,()=>jl(m()&&g.features.usePerformanceFix,A,g.disableInvisibleComponentsTimeout)),N(ce=>ee=ie(te,1,"timeline s-e",null,ee,ce),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),b(j,te)},z=j=>{var te=sw();let ee;N(oe=>ee=ie(te,1,"timeline-stub s-e",null,ee,oe),[()=>({mobile:a()})]),b(j,te)};M(q,j=>{n(E)?j(L):j(z,!1)})}b(t,V),F(),o()}var Xb=require("@vkontakte/videoplayer-shared/es2015");var Zb=require("@vkontakte/videoplayer-statistics/es2015"),lw=(t,e,i,o,r,a,l)=>{O(e,!0),O(i,t.clientX,!0),O(o,n(r),!0),a(l())},dw=k("<div></div>"),cw=k('<div><div class="track s-2a"></div></div>'),uw={hash:"s-2a",code:'.root.s-2a{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2a,.root.vertically-rotated.s-2a{height:var(--preview-track-frame-height-vertical)}.root.s-2a:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2a{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2a,.track.s-2a{position:absolute}.frame.s-2a{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2a .frame:where(.s-2a){transform-origin:0 0}.rotate-1.s-2a{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2a{transform:rotate(-180deg)}.rotate-3.s-2a{transform:rotate(-270deg) translateY(-100%)}'};function bv(t,e){H(e,!0),Q(t,uw);let[i,o]=Be(),r=()=>w(D,"$rotateAlpha",i),a=()=>w(g,"$position$",i),l=()=>w(y,"$duration$",i),d=ye(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:$=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:g}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,D=d.ui.rotateAlpha,A=K(void 0),E=K(!1),V=K(0),q=K(0),L=K(0),z=K(0),j=f(()=>v<=$),te=f(()=>rd(r())),ee=f(()=>n(j)?!n(te):n(te)),oe=114,ae=65,le=3,ce=f(()=>n(ee)?oe:ae),X=f(()=>n(j)?oe:ae),_e=f(()=>n(j)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Ee=f(()=>m*n(ce)),de=K(0);Fe(()=>{O(z,Math.ceil(-n(L)/n(ce))-1),O(L,-n(Ee)*a()/l())});let ze=()=>{T(ue(),!0,Zb.ThinOneStat.ActionSeekType.RICH)},ue=()=>l()*-n(L)/n(Ee)/l(),pe=!1,Z=Te=>{if(!n(E))return!1;let we=Te.clientX-n(V);O(L,n(q)+we),O(L,Math.max(Math.min(n(L),0),-n(Ee)),!0),Math.abs(we)>1&&(pe=!0),I(ue())},B=Te=>{n(E)&&(O(E,!1),!pe&&Te&&O(L,-(Te.offsetX-n(de)/2)),pe=!1,ze())},fe=()=>{n(E)&&B()},me=f(()=>s/u),Ie=(Te,we)=>{if(Te!==p.length-1)return u;let He=0,at=we*u;for(let pt=1;pt<=u;pt++)Te*s+He+at<m&&He++;return He},nt=f(()=>Math.floor(n(z)/s)),Me=f(()=>(0,Xb.getRangeAroundIndex)(3,n(nt),p.length-1)),be=(Te,we,He)=>{let at=s*n(ce);return Te*at+we*n(ce)*u+n(de)/2-le/2+He*n(ce)},W=f(()=>[`--row-numbers: ${n(me)}`,`--column-numbers: ${u}`,`--frame-width: ${n(X)}px`,`--frame-height: ${n(_e)}`].join(";"));var Ce=cw();let ke;var Qe=C(Ce);Qe.__pointerdown=[lw,E,V,q,L,x,ue],Qe.__pointermove=Z,Qe.__pointerup=B,Ci(Qe,20,()=>n(Me),Te=>Te,(Te,we)=>{var He=Re(),at=se(He);Ci(at,16,()=>Array.from({length:n(me)},(pt,Pt)=>Pt),pt=>pt,(pt,Pt)=>{var dt=Re(),ai=se(dt);Ci(ai,16,()=>Array.from({length:Ie(we,Pt)},(Tt,Ot)=>Ot),Tt=>Tt,(Tt,Ot)=>{var Nt=dw();N((qt,Le)=>{Ke(Nt,qt),ie(Nt,1,Le,"s-2a")},[()=>`--row-index: ${Pt}; --column-index: ${Ot}; left: ${be(we,Pt,Ot)}px; background-image: url(${p[we]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(Tt,Nt)}),b(pt,dt)}),b(Te,He)}),S(Qe),S(Ce),it(Ce,Te=>O(A,Te),()=>n(A)),N(Te=>{ke=ie(Ce,1,"root s-2a",null,ke,Te),Ke(Ce,n(W)),Ke(Qe,`transform: translateX(${n(L)}px); width: ${n(Ee)}px;`)},[()=>({"is-vertical-video":!n(j),"vertically-rotated":n(te)})]),bt("mouseleave",Qe,fe),Vn(Ce,"clientWidth",Te=>O(de,Te)),b(t,Ce),F(),o()}tt(["pointerdown","pointermove","pointerup"]);var pw=k('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),fw={hash:"s-2c",code:".notification.s-2c{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2c{font-size:14px;line-height:18px}"};function $v(t,e){H(e,!1),Q(t,fw);let i=340,{ui:{t:o}}=ye();rn();var r=pw(),a=C(r),l=C(a,!0);S(a),S(r),N(d=>ge(l,d),[()=>o("preview_track_close_tooltip")],Pn),Bs(3,r,()=>ba,()=>({duration:i})),b(t,r),F()}var Jb=require("@vkontakte/videoplayer-shared/es2015"),mw=k('<div class="preview-track-close tooltip s-27"><!></div>'),vw=k('<div class="preview-track-control s-27"><!> <div class="preview-track-close s-27"><!></div> <!></div>'),gw=k('<div class="wrapper-preview-track s-27"><!></div>'),hw=k('<div class="enriched-timeline s-27"><!> <!> <!></div>'),_w={hash:"s-27",code:".enriched-timeline.s-27{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-27{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-27{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-27{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-27:hover+.tooltip:where(.s-27){opacity:1}.wrapper-preview-track.s-27{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function yv(t,e){H(e,!0),Q(t,_w);let[i,o]=Be(),r=()=>w(g,"$playerSize",i),a=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(v,"$position$",i),s=()=>w($,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),m=ye(),p=200,{positionWithScrubbing$:v,isRewindableLive$:$,duration$:y}=m.state,{playerSize:g,previewTrackActive:x}=m.ui,{countPerImage:I=0,links:T=[],frequency:D=0}=m.actions.internal.getPreviewThumbsData()||{},A=f(()=>r().width>100),E=K(!ib()),V=()=>{n(E)&&(tb(),O(E,!1))},q=ce=>{let X=Math.floor(a()*ce/D),_e=Math.floor(X/I),Ee=(0,Jb.getRangeAroundIndex)(3,_e,T.length-1);for(let de of Ee){let ze=new Image;ze.src=T[de]}},L=(ce,X)=>{q(X),!l()&&e.onTimelineMove(ce)};var z=hw(),j=C(z);{var te=ce=>{var X=vw(),_e=C(X);let Ee=f(()=>sn(d()));fv(_e,{get time(){return n(Ee)}});var de=P(_e,2),ze=C(de);Fs(ze,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(de);var ue=P(de,2);{var pe=Z=>{var B=mw(),fe=C(B);$v(fe,{}),S(B),b(Z,B)};M(ue,Z=>{n(E)&&Z(pe)})}S(X),bt("mouseleave",de,V),Bs(3,X,()=>ba,()=>({duration:p})),b(ce,X)};M(j,ce=>{l()&&ce(te)})}var ee=P(j,2);let oe=f(()=>!n(A));rl(ee,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:L,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:q,get ref(){return u()},set ref(ce){u(ce)}});var ae=P(ee,2);{var le=ce=>{var X=gw(),_e=C(X);bv(_e,{}),S(X),N(()=>Ke(X,`height: ${e.animatedPreviewTrackHeight}px;`)),b(ce,X)};M(ae,ce=>{e.previewTrackAvailable&&ce(le)})}S(z),N(()=>Ke(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),F(),o()}var $w=k('<div><!> <div data-testid="player_controls"><div class="controls-left s-18"><!> <!> <!></div> <div class="controls-right s-18"></div></div></div> <!>',1),yw={hash:"s-18",code:'.wrapper-bottom.s-18{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-18:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-18>:where(.s-18){pointer-events:auto}.controls.s-18{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls.minimal-view.s-18{padding:0 var(--controls-desktop-padding-horizontal-minimal-view) 4px}.controls-left.s-18,.controls-right.s-18{align-content:center;display:flex}.controls-left.s-18{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-18 >:not(:first-child),.controls-right.s-18 >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-18{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-18{transition:none}'};function wv(t,e){var Ta,xl;H(e,!0),Q(t,yw);let[i,o]=Be(),r=()=>w(no,"$disabledControls$",i),a=()=>w(jt,"$adPlaybackState",i),l=()=>w($i,"$playbackState$",i),d=()=>w(qi,"$currentSubtitle$",i),s=()=>w(io,"$isEnded$",i),u=()=>w(Fo,"$currentGridType$",i),m=()=>w(Bt,"$isMinimalView$",i),p=()=>w(di,"$isLive$",i),v=()=>w(ft,"$chromecastState$",i),$=()=>w(Ri,"$isPictureInPictureActive",i),y=()=>w(ci,"$pictureInPictureType$",i),g=()=>w(pi,"$availableSubtitlesList$",i),x=()=>w(ot,"$contextMenuOpenedByKeyboard$",i),I=()=>w(U,"$showContextMenuBtn$",i),T=()=>w(oo,"$isRewindableLive$",i),D=()=>w(Ti,"$isActiveLive$",i),A=()=>w($r,"$graphIsOpened$",i),E=()=>w(vn,"$contextMenuVisible$",i),V=()=>w(It,"$isFullscreen",i),q=()=>w(hn,"$autoplayNextEnabled",i),L=()=>w(n(wo),"$prevButton",i),z=()=>w(n(wn),"$replayButton",i),j=()=>w(n(So),"$playButton",i),te=()=>w(n(ar),"$nextButton",i),ee=()=>w(n(ro),"$playPrevChapterButton",i),oe=()=>w(n(Sr),"$seekToInteractiveButton",i),ae=()=>w(n(Ao),"$interactiveGraphButton",i),le=()=>w(n(Sn),"$liveButton",i),ce=()=>w(n(us),"$time",i),X=()=>w(n(Fr),"$episodes",i),_e=()=>w(n(ps),"$vkLogo",i),Ee=()=>w(n(so),"$volume",i),de=()=>w(n(fs),"$subtitles",i),ze=()=>w(n(Ur),"$settings",i),ue=()=>w(n(ko),"$context",i),pe=()=>w(n(zr),"$fullscreen",i),Z=()=>w(n(Wn),"$chromecast",i),B=()=>w(gn,"$additionalDesktopControlPanelRightButtons$",i),fe=()=>w(xo,"$playerSize",i),me=()=>w(Io,"$isInteractiveTime$",i),Ie=()=>w(Sa,"$previewTrackActive",i),nt=()=>w(Ki,"$settingsMenuVisible",i),Me=()=>w(Mo,"$settingButtonRef$",i),be=()=>w(Xt,"$startedByKeyboard$",i),W=()=>w(hi,"$isAudioAvailable$",i),Ce=()=>w(Le,"$fakeIsPlaying$",i),ke=()=>w(rs,"$seekToInteractiveDisabledTooltip$",i),Qe=()=>w(Pi,"$isPreviewTrackHorizontallyAligned$",i),Te=()=>w(ni,"$previewTrackAvailable",i),we=()=>w(gt,"$previewTrackDragInProgress",i),He=()=>w(yi,"$adPosition",i),at=()=>w(Gt,"$position$",i),pt=()=>w(li,"$adDuration",i),Pt=()=>w(Et,"$duration$",i),dt=h(e,"playerControlsWrapperRef",15,void 0),ai=h(e,"playerControlsRef",15,void 0),Tt=h(e,"isAds",3,!1),Ot=h(e,"logoTargetUrl",3,""),Nt=h(e,"isOneVideoPlaylist",3,!1),qt=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Le}=To(),Y=ye(),Oe=To(),$e=Rt(),Ne=Y.actions.internal.toggleMuted,vt=Y.actions.internal.togglePlay,At=Y.actions.internal.pause,Se=Y.actions.internal.toggleSubtitle,je=Y.actions.internal.checkFullscreenSupport,Ue=(Ta=Y.callbacks)==null?void 0:Ta.onAudioDoesNotExistHint,xe=(xl=Y.callbacks)==null?void 0:xl.onAudioDisabledHint,Bt=Y.ui.isMinimalView$,Et=Y.state.duration$,Gt=Y.state.positionWithScrubbing$,$i=Y.state.playbackState$,hi=Y.state.isAudioAvailable$,Vi=Y.state.isAudioDisabled,io=Y.state.isEnded$,di=Y.state.isLive$,Ti=Y.state.isActiveLive$,oo=Y.state.isRewindableLive$,{isActive$:Ri,type$:ci}=Oe.pictureInPicture$,Ki=Y.ui.settingsMenu.visible$,$t=Y.ui.settingsMenu.openedByBtnKeyboard$,We=Y.ui.controls,rt=Y.actions.internal.getVideoEpisodes(),ft=Y.state.chromecastState$,pi=Y.state.availableSubtitlesList$,qi=Y.state.currentSubtitle$,no=We.disabledControls$,vn=Y.ui.contextMenu.visible$,U=Y.ui.contextMenu.showContextMenuBtn$,ot=Y.ui.contextMenu.openedByBtnKeyboard$,Xt=Y.ui.startedByKeyboard$,_i=Y.ui.controlBlocks,lt=Y.ui.t,li=Y.ads.duration,yi=Y.ads.position,jt=Y.ads.playbackState,It=Y.ui.isFullscreen,xo=Y.ui.playerSize,Fo=Y.ui.currentGridType$,gn=Y.ui.additionalDesktopControlPanelRightButtons$,hn=Y.ui.autoplayNextEnabled$,ki=Y.actions.internal.getVideoElement,Ii=Y.actions.internal.replayInteractive,_n=Y.actions.internal.prevVideoClick,br=Y.actions.internal.nextVideoClick,Si=Y.state.isInteractive,Io=Y.state.isInteractiveTime$,Uo=Y.state.showInteractiveGraph,zo=Y.state.showSeekToInteractive,bn=Y.state.showPlayPrevChapter,ns=Y.state.showInteractiveTimeIndicator,Ss=Y.state.playPrevChapterDisabledTooltip,rs=Oe.seekToInteractiveDisabledTooltip$,$r=Oe.graphIsOpened$,$n=$e.features.interactiveResponsiveUi,ss=f(()=>r().has("EPISODE_BUTTON")),er=f(()=>r().has("GRAPH_BUTTON")),Or=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Eo=f(()=>r().has("PLAY_BUTTON")),as=f(()=>r().has("REPLAY_BUTTON")),yr=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Nn=()=>Y.actions.internal.toggleChromecast(),Bn=f(()=>Tt()?a()==="playing":l()===sl.PlaybackState.PLAYING),Hn=f(()=>d().value!=="off"),tr=f(()=>s()&&!Tt()||Si),Nr=f(()=>$n?n(tr)&&po(u(),"m"):n(tr)),ls=f(()=>!s()||Si||Tt()),Li=f(()=>!m()&&po(u(),"m")),ds=f(()=>!m()&&po(u(),"m")&&!Tt()&&e.nextButtonActive),Wo=f(()=>!m()&&po(u(),"m")&&!Tt()&&e.prevButtonActive),ir=f(()=>!Tt()&&!!p()),xr=f(()=>!m()&&v()!==sl.ChromecastState.NOT_AVAILABLE&&!($()&&y()===1)&&po(u(),"m")&&!Si&&!Tt()),or=f(()=>e.showAutoplayNext&&!m()&&!Nt()&&po(u(),"s")),mt=f(()=>!m()&&g().length>0&&po(u(),"m")),ei=f(()=>x()||I()),wr=f(()=>po(u(),"s")&&!Tt()),cs=f(()=>!e.logoHidden&&!Tt()&&!m()),nr=f(()=>$e.features.fullscreen&&je()&&(e.logoHidden||po(u(),$n?"xs":"s"))&&!($()&&y()===1)&&(Si?qt():!0)),an=f(()=>(!p()||Tt())&&!($e.features.interactiveHideTime&&Si)),Fn=f(()=>Uo&&po(u(),"m")),rr=f(()=>$n?zo&&po(u(),"s"):zo),Br=f(()=>$n?bn&&po(u(),"s"):bn),Ko=f(()=>!m()&&!Tt()&&!p()&&!!(rt!=null&&rt.length)&&n(Li)&&!n(ss)),yn=f(()=>!T()||!!D()),Un=f(()=>A()?lt("tooltip_interactive_graph_on"):lt("tooltip_interactive_graph_off")),mo=f(()=>E()?lt("tooltip_context_menu_close"):lt("tooltip_context_menu_open")),Po=(_t,ut)=>_t?ut&&ut===sl.PlaybackState.PAUSED?lt("tooltip_play"):"":lt("tooltip_live"),zn=f(()=>Po(n(yn),l())),Di=f(()=>$e.logoType==="vk_video"?lt("tooltip_vk_video_logo"):lt("tooltip_vk_logo")),sr=f(()=>n(Hn)?lt("tooltip_subtitles_on"):lt("tooltip_subtitles_off")),xn=f(()=>V()?lt("tooltip_fullscreen_on"):lt("tooltip_fullscreen_off")),Hr=f(()=>v()===sl.ChromecastState.CONNECTED?lt("tooltip_chromecast_on"):lt("tooltip_chromecast_off")),yt=f(()=>q()?lt("tooltip_autoplay_on"):lt("tooltip_autoplay_off")),ui=K(0),Wt=si({}),ln=si({}),wo=f(()=>We.prevButton),wn=f(()=>We.replayButton),So=f(()=>We.playButton),ar=f(()=>We.nextButton),ro=f(()=>We.playPrevChapterButton),Sr=f(()=>We.seekToInteractiveButton),Ao=f(()=>We.interactiveGraphButton),Sn=f(()=>We.liveButton),us=f(()=>We.time),Fr=f(()=>We.episodes),ps=f(()=>We.vkLogo),so=f(()=>We.volume),fs=f(()=>We.subtitles),Ur=f(()=>We.settings),ko=f(()=>We.context),zr=f(()=>We.fullscreen),Wn=f(()=>We.chromecast),vo=f(()=>({prevButton:L()?L().right-L().left:0,replayButton:z()?z().right-z().left:0,playButton:j()?j().right-j().left:0,nextButton:te()?te().right-te().left:0,playPrevChapterButton:ee()?ee().right-ee().left:0,seekToInteractiveButton:oe()?oe().right-oe().left:0,interactiveGraphButton:ae()?ae().right-ae().left:0,liveButton:le()?le().right-le().left:0,time:ce()?ce().right-ce().left:0,episodes:X()?X().right-X().left:0,vkLogo:_e()?_e().right-_e().left:0,volume:Ee()?Ee().right-Ee().left:0,subtitles:de()?de().right-de().left:0,settings:ze()?ze().right-ze().left:0,context:ue()?ue().right-ue().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:Z()?Z().right-Z().left:0,additionalButtons:B().length?B().reduce(_t=>[..._t,40],[]):[]})),go=K(0);Fe(()=>{(!n(go)||n(go)<n(vo).time)&&kt(()=>O(go,n(vo).time,!0))});let Xe=K(!1);Fe(()=>{let _t=0;n(Ko)&&(po(u(),"xl")?_t=n(vo).time:_t=60);let ut=n(vo).prevButton+n(vo).playButton+n(vo).nextButton+n(vo).seekToInteractiveButton+n(vo).interactiveGraphButton+n(vo).liveButton+n(go)+_t;O(Xe,n(an)&&n(ui)>=ut,!0)});let Mt=f(()=>n(Xe)&&po(u(),"m")),fi=(0,xv.debounceFn)(ad,260),Lo=(0,xv.debounceFn)(bp,260);Fe(()=>{fe(),me(),Ie(),fi(ki(),We,Wt,e.showControls),Lo(ki(),_i,ln,e.showControls)}),Fe(()=>{ln.bottom=dt()});let Mo=re();Fe(()=>{nt(),Me()&&kt(()=>Zl(Me(),nt(),$t))});let Co;Fe(()=>{be(),kt(()=>hp(Xt,be(),Co))});function ho(){ma({isAudioDisabled:Vi,isAudioAvailable:W(),isAds:Tt(),audioIsNotExistHintCallback:Ue,audioDisabledHintCallback:xe})&&Ne()}let Vo=Si?Ii:vt,lr=f(()=>Ce()!==null),dr=f(()=>n(lr)?Ce():n(Bn)),qo=f(()=>n(dr)?lt("tooltip_pause"):lt("tooltip_play")),Bi=lt("tooltip_episodes"),Kn=f(()=>{var _t,ut,Oi,jo;return n(Wo)?{id:"prevButton",type:"desktop-control-panel-left",weight:qs.prevButton,buttonComponent:ol,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:_n.bind(null,!0)},tooltipEnabled:!((ut=(_t=Y.callbacks)==null?void 0:_t.uiInfo)!=null&&ut.onPrevButtonMouseEnter)&&!((jo=(Oi=Y.callbacks)==null?void 0:Oi.uiInfo)!=null&&jo.onPrevButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Fi;(Fi=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseEnter)==null||Fi.call(wi,Zn(ki(),Wt,"prevButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Fi;(Fi=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseLeave)==null||Fi.call(wi,Zn(ki(),Wt,"prevButton",e.showControls))},tooltipText:lt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Qo=f(()=>n(Nr)?{id:"replayButton",type:"desktop-control-panel-left",weight:qs.replayButton,buttonComponent:ld,buttonComponentProps:{disabled:n(as),click:Vo},tooltipText:lt("tooltip_restart"),disabled:n(as)}:void 0),Cr=f(()=>n(ls)?{id:"playButton",type:"desktop-control-panel-left",weight:qs.playButton,buttonComponent:dd,buttonComponentProps:{disabled:n(Eo),isPlaying:n(Bn),click:vt},tooltipText:n(qo),disabled:n(Eo)}:void 0),Je=f(()=>{var _t,ut,Oi,jo;return n(ds)?{id:"nextButton",type:"desktop-control-panel-left",weight:qs.nextButton,buttonComponent:ol,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:br.bind(null,!0)},tooltipEnabled:!((ut=(_t=Y.callbacks)==null?void 0:_t.uiInfo)!=null&&ut.onNextButtonMouseEnter)&&!((jo=(Oi=Y.callbacks)==null?void 0:Oi.uiInfo)!=null&&jo.onNextButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Fi;(Fi=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseEnter)==null||Fi.call(wi,Zn(ki(),Wt,"nextButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Fi;(Fi=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseLeave)==null||Fi.call(wi,Zn(ki(),Wt,"nextButton",e.showControls))},tooltipText:lt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Yt=f(()=>Si&&n(Br)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:qs.playPrevChapterButton,buttonComponent:Pc,buttonComponentProps:{disabled:n(yr),click:e.playPrevChapter},tooltipText:lt("tooltip_interactive_go_back"),disabledTooltipContent:lt(Ss),disabled:n(yr)}:void 0),Mi=f(()=>Si&&n(rr)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:qs.seekToInteractiveButton,buttonComponent:kc,buttonComponentProps:{disabled:n(Or),click:e.seekToInteractive},tooltipText:lt("tooltip_interactive_seek"),disabled:n(Or),disabledTooltipContent:lt(ke())}:void 0),Cn=f(()=>Si&&n(Fn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:qs.interactiveGraphButton,buttonComponent:Lc,buttonComponentProps:{disabled:n(er),click:$r.toggle,graphIsOpened:A()},tooltipText:n(Un)}:void 0),ao=f(()=>n(ir)?{id:"liveButton",type:"desktop-control-panel-left",weight:qs.liveButton,buttonComponent:Mc,buttonComponentProps:{isLiveActive:n(yn),ariaLabel:n(zn)},tooltipText:n(zn),disabled:n(yn)&&l()===sl.PlaybackState.PLAYING}:void 0),Wr=f(()=>[n(Kn),n(Qo),n(Cr),n(Je),n(Yt),n(Mi),n(Cn),n(ao)].filter(_t=>!!_t).sort(Ga)),Go=f(()=>n(cs)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Gs.vkLogo,buttonComponent:_c,buttonComponentProps:{targetUrl:Ot(),logoClickable:e.logoClickable,click:At},tooltipText:n(Di),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Tr=f(()=>n(or)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Gs.autoplayNext,buttonComponent:Ac,tooltipText:n(yt)}:void 0),Ir=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Gs.volume,buttonComponent:Nm,buttonComponentProps:{click:ho,isAds:Tt()}})),Cs=f(()=>n(mt)?{id:"subtitles",type:"desktop-control-panel-right",weight:Gs.subtitles,buttonComponent:Vm,buttonComponentProps:{isSubtitlesEnabled:n(Hn),click:Se},tooltipText:n(sr)}:void 0),Ts=f(()=>n(wr)?{id:"settings",type:"desktop-control-panel-right",weight:Gs.settings,buttonComponent:od,buttonComponentProps:{ref$:Mo},tooltipText:nt()?void 0:lt("tooltip_settings_off")}:void 0),qn=f(()=>$e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Gs.context,buttonComponent:rv,buttonComponentProps:{ariaLabel:lt("aria_label_context_menu")},className:n(ei)?"":"out-of-view",tooltipText:n(mo)}:void 0),xa=f(()=>n(nr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Gs.fullscreen,buttonComponent:hc,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:n(xn)}:void 0),ms=f(()=>n(xr)?{id:"chromecast",type:"desktop-control-panel-right",weight:Gs.chromecast,buttonComponent:$c,buttonComponentProps:{state:v(),click:Nn},tooltipText:n(Hr)}:void 0),wa=f(()=>[n(Go),n(Tr),n(Ir),n(Cs),n(Ts),n(qn),n(xa),n(ms),...B()].filter(_t=>!!_t).sort(Ga)),Sa=Y.ui.previewTrackActive,gt=Y.ui.previewTrackDragInProgress,ni=Y.ui.previewTrackAvailable,Pi=Y.ui.isPreviewTrackHorizontallyAligned,xi=f(()=>Yb({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>Wt.timeline,isHorizontal:Qe()})),Er=f(()=>n(xi).progressBarY),Is=f(()=>n(xi).controlsY),Es=f(()=>n(xi).onPointerDown),Kr=f(()=>n(xi).onPointerMove),Hi=f(()=>n(xi).onPointerUp),Qi=f(()=>n(xi).calculatedHeight),ve=f(()=>n(xi).closePreviewTrack);Fe(()=>{Ie()||n(ve)()});let ht;Vt(()=>()=>ht&&clearTimeout(ht));let ri=_t=>{Ie()||!Te()||(n(Es)(_t),ht=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},Zt=()=>{Ie()||n(Hi)(),ht&&clearTimeout(ht),we()&&Y.actions.internal.previewTrackDragFinished()},Yo=_t=>{n(Kr)(_t)},Ro=-(parseInt("24")/2+4);var lo=$w(),dn=se(lo);let Ps;var As=C(dn);{var js=_t=>{let ut=f(()=>n(Er)()),Oi=f(()=>n(Qi)());yv(_t,{get animatedOffsetY(){return n(ut)},get animatedPreviewTrackHeight(){return n(Oi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Tt()},onTimelineMove:Yo,onTimelinePointerDown:ri,onTimelinePointerUp:Zt,get previewTrackAvailable(){return Te()},get timelineRef(){return Wt.timeline},set timelineRef(jo){Wt.timeline=jo}})};M(As,_t=>{e.showControls&&_t(js)})}var qr=P(As,2);let Xs;var Tn=C(qr),Ca=C(Tn);Ci(Ca,17,()=>n(Wr),_t=>_t.id,(_t,ut)=>{_p(_t,{get buttonComponent(){return n(ut).buttonComponent},get buttonComponentProps(){return n(ut).buttonComponentProps},get tooltipText(){return n(ut).tooltipText},get disabledTooltipContent(){return n(ut).disabledTooltipContent},get disabled(){return n(ut).disabled},get className(){return n(ut).className},get tooltipEnabled(){return n(ut).tooltipEnabled},get mouseEnter(){return n(ut).mouseEnter},get mouseLeave(){return n(ut).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(ut).id]},set ref(Oi){Wt[n(ut).id]=Oi}})});var _l=P(Ca,2);{var Pr=_t=>{let ut=f(()=>!e.showControls),Oi=f(()=>Tt()?He():at()),jo=f(()=>Tt()?pt():Pt());mc(_t,{get isHidden(){return n(ut)},isMobile:!1,get showDuration(){return n(Mt)},get position(){return n(Oi)},get duration(){return n(jo)},get ref(){return Wt.time},set ref(Gi){Wt.time=Gi}})};M(_l,_t=>{n(an)&&_t(Pr)})}var _d=P(_l,2);let bl=f(()=>!n(Ko));Bo(_d,{className:"w-max",get disabled(){return n(bl)},get tooltipContent(){return Bi},get tooltipVisible(){return e.showControls},tooltipPlacement:"top-left",get initialTranslateXPx(){return Ro},get ref(){return Wt.episodes},set ref(_t){Wt.episodes=_t},children:(_t,ut)=>{var Oi=Re(),jo=se(Oi);{var Gi=wi=>{yc(wi,{get position(){return at()},get duration(){return Pt()},get timeCodes(){return rt}})};M(jo,wi=>{n(Ko)&&wi(Gi)})}b(_t,Oi)},$$slots:{default:!0}}),S(Tn);var $l=P(Tn,2);Ci($l,21,()=>n(wa),_t=>_t.id,(_t,ut)=>{var Oi=Re(),jo=se(Oi);{var Gi=Fi=>{_p(Fi,{get buttonComponent(){return n(ut).buttonComponent},get buttonComponentProps(){return n(ut).buttonComponentProps},get tooltipText(){return n(ut).tooltipText},get disabledTooltipContent(){return n(ut).disabledTooltipContent},get disabled(){return n(ut).disabled},get className(){return n(ut).className},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(ut).id]},set ref(Ia){Wt[n(ut).id]=Ia}})},wi=Fi=>{let Ia=f(()=>!!n(ut).disabled);uv(Fi,{get id(){return n(ut).id},get testId(){return n(ut).testId},get icon(){return n(ut).icon},get ariaLabel(){return n(ut).ariaLabel},get tooltipText(){return n(ut).tooltipText},get disabledTooltipContent(){return n(ut).disabledTooltipContent},get disabled(){return n(Ia)},get onClick(){return n(ut).onClick},get disableMouseupTooltipShow(){return n(ut).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(ut).id]},set ref(wl){Wt[n(ut).id]=wl}})};M(jo,Fi=>{qb(n(ut))?Fi(Gi):Fi(wi,!1)})}b(_t,Oi)}),S($l),S(qr),it(qr,_t=>ai(_t),()=>ai()),S(dn),it(dn,_t=>dt(_t),()=>dt());var yl=P(dn,2);{var bd=_t=>{Ic(_t,{get ref(){return Wt.interactiveTimeIndicator},set ref(ut){Wt.interactiveTimeIndicator=ut}})};M(yl,_t=>{ns&&_t(bd)})}N((_t,ut,Oi)=>{Ps=ie(dn,1,"wrapper-bottom s-18",null,Ps,_t),Ke(dn,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Xs=ie(qr,1,"controls s-18",null,Xs,ut),Ke(qr,Oi),qr.inert=Ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||we()}),()=>({"minimal-view":m()}),()=>`transform: translateY(${n(Is)()}px);`]),Vn(Tn,"clientWidth",_t=>O(ui,_t)),b(t,lo),F(),o()}var cd=require("@vkontakte/videoplayer-core/es2015");var Sv=require("@vkontakte/videoplayer-shared/es2015");var xw=k('<div class="icon icon-error-stub s-21"><div class="inner s-21"></div></div>'),ww=k('<img class="icon s-21" aria-hidden="true"/>'),Sw={hash:"s-21",code:".icon.s-21{height:24px!important;width:24px!important}.inner.s-21{background-color:var(--white);height:16px;width:16px}"};function Cv(t,e){Q(t,Sw);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,Sv.noop),r=f(()=>o()===Sv.noop),a=f(()=>n(r)||i()),l=K(!1),d=()=>{O(l,!0)},s=f(()=>n(r)?"btn-full-opacity":"");Ut(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var p=Re(),v=se(p);{var $=g=>{var x=xw();b(g,x)},y=g=>{var x=ww();N(()=>De(x,"src",e.iconUrl)),bt("error",x,d),Ha(x),b(g,x)};M(v,g=>{n(l)?g($):g(y,!1)})}b(u,p)},$$slots:{default:!0}})}var Cw=Ae('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function Tv(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=Cw();b(e,o)},$$slots:{default:!0}})}var e$=require("@vkontakte/videoplayer-shared/es2015");function yp(t,e){H(e,!0);let i=h(e,"muted",3,!1),o=h(e,"click",3,e$.noop),r=h(e,"ref",15,void 0),l=ye().ui.t,d=f(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ut(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var p=Re(),v=se(p);{var $=g=>{Tv(g,{})},y=g=>{ha(g,{get size(){return"24"}})};M(v,g=>{i()?g($):g(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var Tw=Ae('<path d="M11.64 12.37 9.07 9.8h1.03a.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.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),Iw=Ae('<path d="m6.36 9.63 2.57 2.57H7.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.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),Ew=Ae('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function Iv(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=Ew(),d=P(se(l));{var s=m=>{var p=Tw();b(m,p)},u=m=>{var p=Iw();b(m,p)};M(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}var t$=require("@vkontakte/videoplayer-shared/es2015");function Ev(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,t$.noop),a=G("menu_pip");Ut(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Iv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var Pv=require("@vkontakte/videoplayer-shared/es2015");var Pw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},Aw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},kw=k("<div><!></div>"),Lw=k("<div><!></div>"),Mw=k("<div><!></div>"),Vw=k("<!> <!> <!>",1),Rw=k("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Dw=k('<div class="wrapper-middle s-17"><!></div>'),Ow=k("<div><!></div> <!> <div><!></div>",1),Nw=k('<div aria-hidden="true">·</div> <!>',1),Bw=k('<!> <!> <div><div><div class="controls mobile s-17" data-testid="bottom-controls"><div class="controls-group contain s-17"><!> <!> <!> <!></div> <div class="controls-group s-17"><!> <!> <!></div></div> <!></div></div> <!>',1),Hw={hash:"s-17",code:".wrapper-bottom.s-17{background:var(--controls-gradient);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;height:var(--controls-gradient-height);justify-content:flex-end;left:0;padding:0 4px 8px;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-17>:where(.s-17){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-17{height:9px;padding:0 4px 4px}.wrapper-middle.s-17{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-17,.wrapper-top-right.s-17{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-17{right:8px;top:4px}.wrapper-top-left.s-17{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-17,.wrapper-middle-left-second.s-17,.wrapper-middle-right.s-17{align-items:center;background-color:rgba(0,0,0,.56);border-radius:12px;display:flex;height:44px;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}.wrapper-middle-left.s-17{left:12px}.wrapper-middle-left-second.s-17{left:64px}.wrapper-middle-right.s-17{right:12px}.controls.s-17{align-items:center;box-sizing:border-box;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 4px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform}.controls.s-17,.controls-group.s-17{display:flex}.controls-group.contain.s-17{min-width:0}.controls-group.s-17 >:not(:first-child){margin-left:8px}.hidden.s-17{opacity:0;visibility:hidden}.controls-hidden.s-17{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-17{transition:none}.overlay-mobile.s-17{background-color:rgba(0,0,0,.3);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:opacity var(--controls-transition-duration);width:100%}@media screen and (orientation:portrait){.wrapper-top-left.fullscreen.s-17,.wrapper-top-right.fullscreen.s-17{top:16px}.controls-wrapper.fullscreen.s-17{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-17{left:44px;top:12px}.wrapper-top-right.fullscreen.s-17{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-17{left:44px}.wrapper-middle-left-second.fullscreen.s-17{left:96px}.wrapper-middle-right.fullscreen.s-17{right:44px}.controls-wrapper.fullscreen.s-17{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function Av(t,e){var vo,go;H(e,!0),Q(t,Hw);let[i,o]=Be(),r=()=>w(Fo,"$seekToInteractiveDisabledTooltip$",i),a=()=>w(We,"$disabledControls$",i),l=()=>w(Nt,"$playbackState$",i),d=()=>w(no,"$adPlaybackState",i),s=()=>w(Y,"$isEnded$",i),u=()=>w(Se,"$isMinimalView$",i),m=()=>w(io,"$autoplayNextToggleHidden",i),p=()=>w(U,"$playerSize",i),v=()=>w(je,"$scrubbingInProgress",i),$=()=>w(Ki,"$chromecastState$",i),y=()=>w(xe,"$isPictureInPictureActive",i),g=()=>w(Bt,"$pictureInPictureType$",i),x=()=>w(Ue,"$mobileNotReportControlHidden$",i),I=()=>w(oo,"$chromecastHidden",i),T=()=>w(ai,"$playerPhase",i),D=()=>w(di,"$pipHidden",i),A=()=>w(ft,"$currentGridType$",i),E=()=>w(Vi,"$vkLogoHidden",i),V=()=>w(hi,"$volumeHidden",i),q=()=>w(Oe,"$isLive$",i),L=()=>w(Et,"$settingsMenuVisible",i),z=()=>w(At,"$isRewindableLive$",i),j=()=>w(vt,"$isActiveLive$",i),te=()=>w(qt,"$isAudioAvailable$",i),ee=()=>w(Ne,"$muted$",i),oe=()=>w($e,"$volume$",i),ae=()=>w(li,"$isInteractiveTime$",i),le=()=>w(Ko,"$settingButtonRef$",i),ce=()=>w(rt,"$startedByKeyboard$",i),X=()=>w(vn,"$isFullscreen",i),_e=()=>w(ot,"$additionalButtons$",i),Ee=()=>w($t,"$crashed$",i),de=()=>w(Ti,"$settingsHidden",i),ze=()=>w(gn,"$graphIsOpened$",i),ue=()=>w(qi,"$adPosition",i),pe=()=>w(pi,"$adDuration",i),Z=()=>w(Ot,"$position$",i),B=()=>w(Tt,"$duration$",i),fe=h(e,"playerControlsWrapperRef",15,void 0),me=h(e,"playerControlsRef",15,void 0),Ie=h(e,"isAds",3,!1),nt=h(e,"logoTargetUrl",3,""),Me=h(e,"isOneVideoPlaylist",3,!1),be=h(e,"customFullscreenSupported",3,!0),W=ye(),Ce=To(),ke=Rt(),Qe=W.actions.internal.toggleMuted,Te=W.actions.internal.togglePlay,we=W.actions.internal.pause,He=W.actions.internal.prevVideoClick,at=W.actions.internal.nextVideoClick,pt=W.actions.internal.checkFullscreenSupport,Pt=(vo=W.callbacks)==null?void 0:vo.onAudioDoesNotExistHint,dt=(go=W.callbacks)==null?void 0:go.onAudioDisabledHint,ai=W.playerPhase,Tt=W.state.duration$,Ot=W.state.positionWithScrubbing$,Nt=W.state.playbackState$,qt=W.state.isAudioAvailable$,Le=W.state.isAudioDisabled,Y=W.state.isEnded$,Oe=W.state.isLive$,$e=W.state.volume$,Ne=W.state.muted$,vt=W.state.isActiveLive$,At=W.state.isRewindableLive$,Se=W.ui.isMinimalView$,je=W.ui.scrubbingInProgress,Ue=W.ui.mobileNotReportControlHidden$,{isActive$:xe,type$:Bt}=Ce.pictureInPicture$,Et=W.ui.settingsMenu.visible$,Gt=W.ui.settingsMenu.openedByBtnKeyboard$,$i=W.ui.controls,{volume:hi,vkLogo:Vi,autoplayNextToggle:io,pip:di,settings:Ti,chromecast:oo}=W.ui.hiddenControls,Ri=W.actions.internal.getVideoEpisodes(),ci=W.webApi.pictureInPictureApi,Ki=W.state.chromecastState$,$t=W.state.crashed$,We=$i.disabledControls$,rt=W.ui.startedByKeyboard$,ft=W.ui.currentGridType$,pi=W.ads.duration,qi=W.ads.position,no=W.ads.playbackState,vn=W.ui.isFullscreen,U=W.ui.playerSize,ot=W.ui.additionalButtonsDeprecated$,Xt=W.actions.internal.getVideoElement,_i=W.actions.internal.replayInteractive,lt=W.state.isInteractive,li=W.state.isInteractiveTime$,yi=W.state.showInteractiveGraph,jt=W.state.showSeekToInteractive,It=W.state.showPlayPrevChapter,xo=W.state.showInteractiveTimeIndicator,Fo=Ce.seekToInteractiveDisabledTooltip$,gn=Ce.graphIsOpened$,hn=W.ui.controlBlocks,ki=f(()=>G(W.state.playPrevChapterDisabledTooltip)),Ii=f(()=>G(r())),_n=f(()=>a().has("EPISODE_BUTTON")),br=f(()=>a().has("GRAPH_BUTTON")),Si=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Io=f(()=>a().has("PLAY_BUTTON")),Uo=f(()=>a().has("REPLAY_BUTTON")),zo=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),bn=f(()=>l()===cd.PlaybackState.PLAYING),ns=f(()=>d()==="paused"),Ss=f(()=>s()&&!Ie()&&!lt),rs=f(()=>!s()||Ie()),$r=f(()=>!u()&&!Ie()&&e.prevButtonActive),$n=f(()=>!u()&&!Ie()&&e.nextButtonActive),ss=f(()=>e.showAutoplayNext&&!u()&&!Me()&&!m()),er=f(()=>!u()&&p().width>300),Or=f(()=>p().width>400),Eo=f(v),as=f(()=>$()!==cd.ChromecastState.NOT_AVAILABLE&&!(y()&&g()===1)&&!x()&&!lt&&!I()),yr=f(()=>T()==="LiveWaitingStart"),Nn=f(()=>!!ci&&!u()&&$()!==cd.ChromecastState.CONNECTED&&!x()&&(g()===1&&n(yr)||!n(yr))&&!n(Eo)&&!lt&&!D()),Bn=K(!1);Vt(()=>{let Xe=ci==null?void 0:ci.info.isActive$.subscribe(Mt=>O(Bn,Mt,!0));return()=>Xe==null?void 0:Xe.unsubscribe()});let Hn=f(()=>!n(Eo)&&po(A(),"s")),tr=f(()=>!e.logoHidden&&p().width>350&&!E()),Nr=f(()=>ke.features.fullscreen&&pt()&&!(y()&&g()===1)&&(lt?be():!0)&&!n(Eo)&&!n(Bn)),ls=f(()=>!V()&&!n(Eo)),Li=f(()=>(!q()||Ie())&&p().width>260&&!n(Eo)&&!(ke.features.interactiveHideTime&&lt)),ds=f(()=>L()||e.showControls),Wo=f(()=>!Ie()&&!q()&&!!(Ri!=null&&Ri.length)&&n(er)&&!n(_n)&&!n(Eo)),ir=f(()=>!z()||!!j()),xr=f(()=>yi&&po(A(),"m")),or=f(()=>!te()||ee()||oe()===0),mt=si({}),ei=si({}),wr=(0,Pv.debounceFn)(ad,260),cs=(0,Pv.debounceFn)(bp,260);Fe(()=>{p(),ae(),wr(Xt(),$i,mt,e.showControls),cs(Xt(),hn,ei,e.showControls)});let nr=()=>W.actions.internal.toggleChromecast();function an(){return xt(this,null,function*(){ci!=null&&ci.isActive()?yield ci==null?void 0:ci.exit():yield ci==null?void 0:ci.request()})}function Fn(){ma({isAudioDisabled:Le,audioDisabledHintCallback:dt,isAudioAvailable:te(),audioIsNotExistHintCallback:Pt,isAds:Ie()})&&Qe()}let rr=K(""),Br=(Xe,Mt)=>{if(!Xe){O(rr,G("tooltip_live"),!0);return}Mt&&Mt===cd.PlaybackState.PAUSED&&O(rr,G("tooltip_play"),!0)};Fe(()=>{Br(n(ir),l())});let Ko=re();Fe(()=>{le()&&Zl(le(),L(),Gt)}),Fe(()=>{hp(rt,ce(),mt.playButton)});var yn=Bw(),Un=se(yn);{var mo=Xe=>{var Mt=Rw(),fi=se(Mt);let Lo;var Mo=P(fi,2);let Co;it(Mo,gt=>ei.topLeft=gt,()=>ei==null?void 0:ei.topLeft);var ho=P(Mo,2);let Vo;var lr=C(ho);Ci(lr,1,_e,({iconUrl:gt,ariaLabel:ni,testId:Pi,onClick:xi,tooltip:Er})=>gt,(gt,ni)=>{let Pi=()=>n(ni).iconUrl,xi=()=>n(ni).ariaLabel,Er=()=>n(ni).testId,Is=()=>n(ni).onClick,Es=()=>n(ni).tooltip,Kr=f(()=>{var Hi;return(Hi=xi())!=null?Hi:Es()});Cv(gt,{get iconUrl(){return Pi()},get ariaLabel(){return n(Kr)},get testId(){return Er()},get onClick(){return Is()}})});var dr=P(lr,2);{var qo=gt=>{Ac(gt,{get ref(){return mt.autoplayNextToggle},set ref(ni){mt.autoplayNextToggle=ni}})};M(dr,gt=>{n(ss)&&gt(qo)})}var Bi=P(dr,2);{var Kn=gt=>{$c(gt,{isMobile:!0,click:nr,get state(){return $()},get ref(){return mt.chromecast},set ref(ni){mt.chromecast=ni}})};M(Bi,gt=>{n(as)&&gt(Kn)})}var Qo=P(Bi,2);{var Cr=gt=>{Ev(gt,{click:an,get isPictureInPictureActive(){return y()},get ref(){return mt.pip},set ref(ni){mt.pip=ni}})};M(Qo,gt=>{n(Nn)&&gt(Cr)})}var Je=P(Qo,2);{var Yt=gt=>{od(gt,{get ref$(){return Ko}})};M(Je,gt=>{Ee()&&!de()&&gt(Yt)})}var Mi=P(Je,2);{var Cn=gt=>{_c(gt,{get click(){return we},get targetUrl(){return nt()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(ni){mt.vkLogo=ni}})};M(Mi,gt=>{n(tr)&&gt(Cn)})}S(ho),it(ho,gt=>ei.topRight=gt,()=>ei==null?void 0:ei.topRight);var ao=P(ho,2);let Wr;var Go=C(ao);{var Tr=gt=>{let ni=f(()=>He.bind(null,!0));ol(gt,{get click(){return n(ni)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(Pi){mt.prevButton=Pi}})};M(Go,gt=>{n($r)&&gt(Tr)})}var Ir=P(Go,2);{var Cs=gt=>{dd(gt,{get disabled(){return n(Io)},get click(){return Te},isMobile:!0,get isPlaying(){return n(bn)},get ref(){return mt.playButton},set ref(ni){mt.playButton=ni}})};M(Ir,gt=>{n(rs)&&gt(Cs)})}var Ts=P(Ir,2);{var qn=gt=>{ld(gt,{get disabled(){return n(Uo)},get click(){return Te},isMobile:!0,get ref(){return mt.replayButton},set ref(ni){mt.replayButton=ni}})};M(Ts,gt=>{n(Ss)&&gt(qn)})}var xa=P(Ts,2);{var ms=gt=>{let ni=f(()=>at.bind(null,!0));ol(gt,{get click(){return n(ni)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(Pi){mt.nextButton=Pi}})};M(xa,gt=>{n($n)&&gt(ms)})}S(ao),it(ao,gt=>ei.middle=gt,()=>ei==null?void 0:ei.middle);var wa=P(ao,2);{var Sa=gt=>{var ni=Vw(),Pi=se(ni);{var xi=Hi=>{var Qi=kw();let ve;Qi.__click=[Pw,zo,e,ki];var ht=C(Qi);let ri=f(()=>!e.showControls);Pc(ht,{get hidden(){return n(ri)},get disabled(){return n(zo)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(Zt){mt.playPrevChapterButton=Zt}}),S(Qi),N(Zt=>ve=ie(Qi,1,"wrapper-middle-left s-17",null,ve,Zt),[()=>({fullscreen:X(),hidden:!e.showControls})]),b(Hi,Qi)};M(Pi,Hi=>{It&&Hi(xi)})}var Er=P(Pi,2);{var Is=Hi=>{var Qi=Lw();let ve;var ht=C(Qi);let ri=f(()=>!e.showControls&&!ze());Lc(ht,{get hidden(){return n(ri)},get disabled(){return n(br)},get click(){return gn.toggle},get graphIsOpened(){return ze()},get ref(){return mt.interactiveGraphButton},set ref(Zt){mt.interactiveGraphButton=Zt}}),S(Qi),N(Zt=>ve=ie(Qi,1,qd(It?"wrapper-middle-left-second":"wrapper-middle-left"),"s-17",ve,Zt),[()=>({fullscreen:X(),hidden:!e.showControls&&!ze()})]),b(Hi,Qi)};M(Er,Hi=>{n(xr)&&Hi(Is)})}var Es=P(Er,2);{var Kr=Hi=>{var Qi=Mw();let ve;Qi.__click=[Aw,Si,e,Ii];var ht=C(Qi);let ri=f(()=>!e.showControls);kc(ht,{get hidden(){return n(ri)},get disabled(){return n(Si)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(Zt){mt.seekToInteractiveButton=Zt}}),S(Qi),N(Zt=>ve=ie(Qi,1,"wrapper-middle-right s-17",null,ve,Zt),[()=>({fullscreen:X(),hidden:!e.showControls})]),b(Hi,Qi)};M(Es,Hi=>{jt&&Hi(Kr)})}b(gt,ni)};M(wa,gt=>{lt&&!v()&&gt(Sa)})}N((gt,ni,Pi,xi)=>{Lo=ie(fi,1,"overlay-mobile s-17",null,Lo,gt),Co=ie(Mo,1,"wrapper-top-left s-17",null,Co,ni),Vo=ie(ho,1,"wrapper-top-right s-17",null,Vo,Pi),Wr=ie(ao,1,"wrapper-middle s-17",null,Wr,xi)},[()=>({hidden:!n(ds)}),()=>({hidden:!e.showControls,fullscreen:X()}),()=>({hidden:!e.showControls&&!x(),fullscreen:X()}),()=>({hidden:!e.showControls||v()||e.endScreenShown&&e.showNextPrevButtons})]),b(Xe,Mt)};M(Un,Xe=>{Ie()||Xe(mo)})}var Po=P(Un,2);{var zn=Xe=>{var Mt=Ow(),fi=se(Mt);let Lo;var Mo=C(fi);yp(Mo,{get muted(){return ee()},click:Fn,get ref(){return mt.volume},set ref(qo){mt.volume=qo}}),S(fi);var Co=P(fi,2);{var ho=qo=>{var Bi=Dw(),Kn=C(Bi);let Qo=f(()=>!n(ns));dd(Kn,{get disabled(){return n(Io)},get click(){return Te},isMobile:!0,get isPlaying(){return n(Qo)},get ref(){return mt.playButton},set ref(Cr){mt.playButton=Cr}}),S(Bi),b(qo,Bi)};M(Co,qo=>{n(ns)&&qo(ho)})}var Vo=P(Co,2);let lr;var dr=C(Vo);Vc(dr,{get position(){return ue()},get duration(){return pe()}}),S(Vo),N((qo,Bi)=>{Lo=ie(fi,1,"wrapper-top-right s-17",null,Lo,qo),lr=ie(Vo,1,"wrapper-bottom ads-timeline-mobile s-17",null,lr,Bi)},[()=>({fullscreen:X()}),()=>({fullscreen:X()})]),b(Xe,Mt)};M(Po,Xe=>{Ie()&&d()!=="inactive"&&Xe(zn)})}var Di=P(Po,2);let sr;var xn=C(Di);let Hr;var yt=C(xn),ui=C(yt),Wt=C(ui);{var ln=Xe=>{Bo(Xe,{get disabled(){return n(Uo)},get ref(){return mt.replayButton},set ref(Mt){mt.replayButton=Mt},children:(Mt,fi)=>{ld(Mt,{get disabled(){return n(Uo)},get click(){return _i}})},$$slots:{default:!0}})};M(Wt,Xe=>{lt&&Xe(ln)})}var wo=P(Wt,2);{var wn=Xe=>{Bo(Xe,{get ref(){return mt.liveButton},set ref(Mt){mt.liveButton=Mt},children:(Mt,fi)=>{Mc(Mt,{get isLiveActive(){return n(ir)},isMobile:!0,get ariaLabel(){return n(rr)}})},$$slots:{default:!0}})};M(wo,Xe=>{!Ie()&&q()&&Xe(wn)})}var So=P(wo,2);{var ar=Xe=>{let Mt=f(()=>Ie()?ue():Z()),fi=f(()=>Ie()?pe():B()),Lo=f(()=>!e.showControls);mc(Xe,{get showDuration(){return n(Or)},get position(){return n(Mt)},get duration(){return n(fi)},isMobile:!0,get isHidden(){return n(Lo)},get ref(){return mt.time},set ref(Mo){mt.time=Mo}})};M(So,Xe=>{n(Li)&&Xe(ar)})}var ro=P(So,2);let Sr=f(()=>!n(Wo));Bo(ro,{className:"w-max",get disabled(){return n(Sr)},get ref(){return mt.episodes},set ref(Xe){mt.episodes=Xe},children:(Xe,Mt)=>{var fi=Re(),Lo=se(fi);{var Mo=Co=>{var ho=Nw(),Vo=P(se(ho),2);yc(Vo,{get position(){return Z()},get duration(){return B()},get timeCodes(){return Ri}}),b(Co,ho)};M(Lo,Co=>{n(Wo)&&Co(Mo)})}b(Xe,fi)},$$slots:{default:!0}}),S(ui),it(ui,Xe=>ei.bottomLeft=Xe,()=>ei==null?void 0:ei.bottomLeft);var Ao=P(ui,2),Sn=C(Ao);{var us=Xe=>{Bo(Xe,{get ref(){return mt.volume},set ref(Mt){mt.volume=Mt},children:(Mt,fi)=>{yp(Mt,{get muted(){return n(or)},click:Fn})},$$slots:{default:!0}})};M(Sn,Xe=>{n(ls)&&Xe(us)})}var Fr=P(Sn,2);{var ps=Xe=>{Bo(Xe,{get ref(){return mt.settings},set ref(Mt){mt.settings=Mt},children:(Mt,fi)=>{od(Mt,{get ref$(){return Ko}})},$$slots:{default:!0}})};M(Fr,Xe=>{n(Hn)&&Xe(ps)})}var so=P(Fr,2);{var fs=Xe=>{Bo(Xe,{get ref(){return mt.fullscreen},set ref(Mt){mt.fullscreen=Mt},children:(Mt,fi)=>{hc(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return X()}})},$$slots:{default:!0}})};M(so,Xe=>{n(Nr)&&Xe(fs)})}S(Ao),it(Ao,Xe=>ei.bottomRight=Xe,()=>ei==null?void 0:ei.bottomRight),S(yt),it(yt,Xe=>me(Xe),()=>me());var Ur=P(yt,2);let ko=f(()=>!e.showControls);rl(Ur,{get isHidden(){return n(ko)},get isAds(){return Ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return z()},get ref(){return mt.timeline},set ref(Xe){mt.timeline=Xe}}),S(xn),it(xn,Xe=>ei.bottom=Xe,()=>ei==null?void 0:ei.bottom),S(Di),it(Di,Xe=>fe(Xe),()=>fe());var zr=P(Di,2);{var Wn=Xe=>{Ic(Xe,{get ref(){return mt.interactiveTimeIndicator},set ref(Mt){mt.interactiveTimeIndicator=Mt}})};M(zr,Xe=>{xo&&Xe(Wn)})}N((Xe,Mt)=>{sr=ie(Di,1,"wrapper-bottom mobile s-17",null,sr,Xe),Ke(Di,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Hr=ie(xn,1,"controls-wrapper s-17",null,Hr,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:X()})]),b(t,yn),F(),o()}tt(["click"]);function Rc(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(I,"$isMobile",i),a=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),s=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),m=h(e,"showAutoplayNext",3,!1),p=h(e,"isOneVideoPlaylist",3,!1),v=h(e,"customFullscreenSupported",3,!0),$=h(e,"endScreenShown",3,!1),y=h(e,"onDisabledPlayPrevChapterClick",3,kv.noop),g=h(e,"onDisabledSeekToInteractiveClick",3,kv.noop),I=ye().ui.isMobile,T=K(!1);Vt(()=>{let V=setTimeout(()=>O(T,!0),0);return()=>clearTimeout(V)});var D=Re(),A=se(D);{var E=V=>{var q=Re(),L=se(q);{var z=te=>{Av(te,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return v()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return g()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(ee){l(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})},j=te=>{wv(te,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return m()},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(ee){l(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})};M(L,te=>{r()?te(z):te(j,!1)})}b(V,q)};M(A,V=>{n(T)&&V(E)})}b(t,D),F(),o()}var Fw=Ae('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Dc(t,e){H(e,!0);let i=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${fn(e.size)}${n(i)}`);Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=Fw();b(r,l)},$$slots:{default:!0}}),F()}var Uw=Ae('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function Lv(t,e){H(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`seek-icon-${i()?"backward":"forward"}`);Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=Uw();b(a,d)},$$slots:{default:!0}}),F()}var zw=k('<span class="hot-key-helpers-text s-y"> </span>'),Ww=k('<div data-testid="hotkey-helper-icon" class="s-y"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Kw=k("<div><!></div>"),qw={hash:"s-y",code:'.hot-key-helpers-container.s-y{align-items:center;animation:s-y-fadeIn ease var(--controls-transition-duration);box-sizing:border-box;display:flex;flex-direction:column;height:120px;left:calc(50% - 100px);padding-top:14px;position:absolute;top:calc(50% - 40px);width:200px;z-index:var(--hot-key-helpers-container-z-index)}.hot-key-helpers-container--left.s-y{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-y{left:calc(75% - 100px)}.hot-key-helpers-text.s-y{display:-webkit-box;font-feature-settings:"clig" off,"liga" off;font-size:15px;font-style:normal;font-weight:600;letter-spacing:-.105px;-webkit-line-clamp:2;line-height:20px;margin-top:4px;max-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 0 5px rgba(0,0,0,.16);white-space:pre-wrap;width:100%;-webkit-box-orient:vertical}.hidden.s-y{animation:s-y-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-y-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-y-fadeOut{0%{opacity:1}to{opacity:0}}'};function Mv(t,e){H(e,!0),Q(t,qw);let[i,o]=Be(),r=()=>w(e.data,"$data",i),a=ye(),{features:l}=Rt(),d=a.ui.t,s=f(()=>!r()),u=f(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=f(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=f(()=>{var I;return(I=r())==null?void 0:I.type}),v=f(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var $=Kw();let y;var g=C($);{var x=I=>{var T=Ww(),D=se(T),A=C(D);{var E=fe=>{let me=f(()=>n(p)==="BACKWARD_SEEK");Lv(fe,{get reversed(){return n(me)},shadow:!0})};M(A,fe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&fe(E)})}var V=P(A,2);{var q=fe=>{Qs(fe,{get size(){return"48"},shadow:!0})};M(V,fe=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&fe(q)})}var L=P(V,2);{var z=fe=>{_r(fe,{get size(){return"48"},shadow:!0})};M(L,fe=>{n(p)==="PLAY"&&!l.playbackStatusShow&&fe(z)})}var j=P(L,2);{var te=fe=>{Ec(fe,{get size(){return"48"},shadow:!0})};M(j,fe=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&fe(te)})}var ee=P(j,2);{var oe=fe=>{ga(fe,{get size(){return"48"},type:"off",shadow:!0})};M(ee,fe=>{n(p)==="SUBTITLES_OFF"&&fe(oe)})}var ae=P(ee,2);{var le=fe=>{ga(fe,{get size(){return"48"},shadow:!0})};M(ae,fe=>{n(p)==="SUBTITLES_ON"&&fe(le)})}var ce=P(ae,2);{var X=fe=>{let me=f(()=>n(p)==="RATE_DOWN");Dc(fe,{get size(){return"48"},get reversed(){return n(me)},testId:"rate-change-icon",shadow:!0})};M(ce,fe=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&fe(X)})}var _e=P(ce,2);{var Ee=fe=>{let me=f(()=>n(p)==="EPISODE_PREV");_a(fe,{get size(){return"48"},get reversed(){return n(me)},shadow:!0})};M(_e,fe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&fe(Ee)})}var de=P(_e,2);{var ze=fe=>{ha(fe,{get size(){return"48"},volume:0,shadow:!0})};M(de,fe=>{n(p)==="MUTE"&&fe(ze)})}var ue=P(de,2);{var pe=fe=>{ha(fe,{get size(){return"48"},volume:1,shadow:!0})};M(ue,fe=>{n(p)==="VOLUME"&&fe(pe)})}S(D);var Z=P(D,2);{var B=fe=>{var me=zw(),Ie=C(me,!0);S(me),N(()=>ge(Ie,n(v))),b(fe,me)};M(Z,fe=>{n(v)&&fe(B)})}N(()=>De(D,"data-type",n(p))),b(I,T)};M(g,I=>{!n(s)&&n(p)&&I(x)})}S($),N(I=>y=ie($,1,"hot-key-helpers-container s-y",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),b(t,$),F(),o()}var Qw=(t,e,i,o,r,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},Gw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Yw=k('<div tabindex="0" role="button"><div class="button-block s-l" aria-hidden="true"><div class="button-row s-l"><div class="button button-up s-l"><!></div> <div class="button button-right s-l"><!></div></div> <div class="button-row s-l"><div class="button button-left s-l"><!></div> <div class="button button-down s-l"><!></div></div></div></div>'),jw={hash:"s-l",code:".immersive-controls.s-l{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-l{left:20px;top:50px}.button-block.s-l{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-l{display:flex;flex-direction:row;position:relative}.button.s-l{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-l svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-l svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-l svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-l svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-l svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-l:hover svg{opacity:1}"};function Oc(t,e){H(e,!0),Q(t,jw);let i=h(e,"isShifted",3,!1),o=ye(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=G("aria_label_spherical_control");var p=Yw();let v;p.__keydown=[Qw,r,a,l,s,d],p.__keyup=[Gw,r,u];var $=C(p),y=C($),g=C(y);g.__mousedown=a,g.__mouseup=u;var x=C(g);Vr(x,{direction:"up",useBtnColor:!0}),S(g);var I=P(g,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Vr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var D=P(y,2),A=C(D);A.__mousedown=s,A.__mouseup=u;var E=C(A);Vr(E,{direction:"up",useBtnColor:!0}),S(A);var V=P(A,2);V.__mousedown=l,V.__mouseup=u;var q=C(V);Vr(q,{direction:"up",useBtnColor:!0}),S(V),S(D),S($),S(p),N(L=>{v=ie(p,1,"immersive-controls s-l",null,v,L),De(p,"aria-label",m)},[()=>({"m-shifted":i()})]),bt("mouseleave",g,u),bt("mouseleave",I,u),bt("mouseleave",A,u),bt("mouseleave",V,u),b(t,p),F()}tt(["keydown","keyup","mousedown","mouseup"]);var Ys=require("@vkontakte/videoplayer-shared/es2015");var i$=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var xp=class{constructor(){this.flickeringTimeout=i$(1e3);this.subscriptions=new Ys.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ys.ValueSubject([]);this.captionsPrepared$=new Ys.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ys.filter)(()=>this.isEnabled()),(0,Ys.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var Xw=k('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Zw=k('<span class="caption-line s-b"><span class="caption-segment s-b"></span></span>'),Jw=k('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),eS=k('<div><span class="caption s-b"><!></span></div>'),tS=k("<div><!></div>"),iS={hash:"s-b",code:".subtitles-container.s-b{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-b{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-b{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-b .subtitles-caption:where(.s-b){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-b{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-b{bottom:8%}.subtitles-container.auto.s-b .subtitles-caption:where(.s-b){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-b{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-b .caption:where(.s-b){width:100%}.caption-line.s-b{display:block;text-align:center}.subtitles-container.auto.s-b .caption-line:where(.s-b){text-align:left}.caption-segment.s-b{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function ll(t,e){H(e,!0),Q(t,iS);let[i,o]=Be(),r=()=>w(v,"$currentSubtitle$",i),a=()=>w(y,"$isLive$",i),l=()=>w(g,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),s=()=>w($,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),m=ye(),p=Rt(),v=m.state.currentSubtitle$,$=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,g=m.ui.isFullscreen,x=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),T=f(()=>!!a()),D=f(()=>e.playerSize.width*.02),A=f(()=>u()&&!l()||n(D)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(D)),E=K(null);Fe(()=>{var ee,oe,ae;(ee=n(E))==null||ee.setIsAuto(n(I)),(oe=n(E))==null||oe.setIsLive(n(T)),(ae=n(E))==null||ae.setCaptions(e.captions)});let V=K(si([[]]));Vt(()=>{O(E,new xp().subscribe(),!0);let ee=n(E).captionsPrepared$.subscribe(oe=>{O(V,oe,!0)});return()=>{var oe;(oe=n(E))==null||oe.destroy(),ee.unsubscribe()}}),Vt(()=>{if(n(I)){let ee=window.setTimeout(()=>{$.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(ee)}}else $.set(!1)});let q=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var L=tS();let z;var j=C(L);{var te=ee=>{var oe=eS();let ae;var le=C(oe),ce=C(le);{var X=Ee=>{var de=Xw(),ze=C(de),ue=C(ze,!0);S(ze),S(de),N(pe=>{var Z;Ke(ze,`font-size: ${(Z=n(A))!=null?Z:""}px`),ge(ue,pe)},[()=>G("subtitles_auto_caption")]),b(Ee,de)},_e=(Ee,de)=>{{var ze=pe=>{var Z=Re(),B=se(Z);Ci(B,17,()=>n(V),Wd,(fe,me)=>{var Ie=Zw(),nt=C(Ie);Ci(nt,21,()=>n(me),({value:Me,timeAppeared:be})=>be,(Me,be)=>{let W=()=>n(be).value,Ce=()=>n(be).timeAppeared;var ke=Re(),Qe=se(ke);{var Te=we=>{var He=$s();N(()=>ge(He,W())),b(we,He)};M(Qe,we=>{(!Ce()||Ce()<=e.position)&&we(Te)})}b(Me,ke)}),S(nt),S(Ie),N(()=>{var Me;return Ke(nt,`font-size: ${(Me=n(A))!=null?Me:""}px`)}),b(fe,Ie)}),b(pe,Z)},ue=pe=>{var Z=Re(),B=se(Z);Ci(B,17,()=>e.captions,({value:fe})=>fe,(fe,me)=>{let Ie=()=>n(me).value;var nt=Jw(),Me=C(nt),be=C(Me,!0);S(Me),S(nt),N(()=>{var W;Ke(Me,`font-size: ${(W=n(A))!=null?W:""}px`),ge(be,Ie())}),b(fe,nt)}),b(pe,Z)};M(Ee,pe=>{var Z;n(I)&&((Z=n(V))!=null&&Z.length)?pe(ze):pe(ue,!1)},de)}};M(ce,Ee=>{n(I)&&s()?Ee(X):Ee(_e,!1)})}S(le),S(oe),N(Ee=>{var de;ae=ie(oe,1,"subtitles-caption s-b",null,ae,Ee),Ke(oe,`--subtitles-caption-margin: ${(de=n(q))!=null?de:""}%`)},[()=>({mobile:u()})]),b(ee,oe)};M(j,ee=>{var oe;(e.captions.length||(oe=n(V))!=null&&oe.length)&&ee(te)})}S(L),N(ee=>z=ie(L,1,"subtitles-container s-b",null,z,ee),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),b(t,L),F(),o()}var o$=require("@vkontakte/videoplayer-core/es2015");var oS=k('<div class="text s-s"> </div>'),nS=k('<div><div class="icon_wrapper s-s"><!></div> <!></div>'),rS={hash:"s-s",code:".wrapper.s-s{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-s{background-size:cover}.icon_wrapper.s-s{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-s{margin-top:20px}"};function Nc(t,e){H(e,!0),Q(t,rS);let i=h(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Rt();var r=nS();let a;r.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},r.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)},r.__dblclick=function(...m){var p;(p=e.onDblClick)==null||p.apply(this,m)};var l=C(r),d=C(l);bc(d,{get size(){return"48"},get iconState(){return o$.ChromecastState.CONNECTED}}),S(l);var s=P(l,2);{var u=m=>{var p=oS(),v=C(p);S(p),N(()=>{var $;return ge(v,`Видео воспроизводится на ${($=i())!=null?$:""}`)}),b(m,p)};M(s,m=>{i()&&m(u)})}S(r),N(m=>{a=ie(r,1,"wrapper s-s",null,a,m),Ke(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),b(t,r),F()}tt(["contextmenu","click","dblclick"]);var sS=Ae('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 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.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function Vv(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=sS();b(e,o)},$$slots:{default:!0}})}var aS=k('<div class="container s-5"><!></div>'),lS={hash:"s-5",code:".container.s-5{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function dl(t){Q(t,lS);var e=aS(),i=C(e);Vv(i,{}),S(e),b(t,e)}var dS=k('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),cS=k('<div data-testid="unstarted-thumb"><!></div>'),uS={hash:"s-a",code:".container.s-a{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-a{opacity:0;visibility:hidden}.container.bgCover.s-a{background-size:cover}.playButton.s-a{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-a,.playButtonBackground.s-a{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-a{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-a:hover .playButtonBackground:where(.s-a){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-a svg{position:relative}"};function cl(t,e){H(e,!0),Q(t,uS);let i=h(e,"iconVisible",3,!0),o=ye(),r=Rt(),a=o.ui.startedByKeyboard$,l=G("tooltip_play"),d=$=>{var g;let y=$.code;["Enter","Space"].includes(y)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(g=e.startVideo)==null||g.call(e))},s=$=>{var y,g;$.stopPropagation(),(y=e.startVideo)==null||y.call(e),(g=e.onClick)==null||g.call(e,$)};var u=cS();let m;u.__click=s,u.__contextmenu=function(...$){var y;(y=e.onContextMenu)==null||y.apply(this,$)};var p=C(u);{var v=$=>{var y=dS();y.__keydown=d;var g=P(C(y),2);_r(g,{get size(){return"48"}}),S(y),N(()=>De(y,"aria-label",l)),b($,y)};M(p,$=>{i()&&$(v)})}return S(u),N($=>{m=ie(u,1,"container s-a",null,m,$),Ke(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),F({handlePressKey:d,handleClick:s})}tt(["click","contextmenu","keydown"]);var pS=k('<span class="text s-v"> </span>'),fS=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},mS=k('<a target="_blank" class="link s-v"><!></a>'),vS=(t,e)=>e.onTitleClicked(),gS=k("<button><!></button>"),hS=k('<div data-testid="video_title"><!></div>'),_S={hash:"s-v",code:".title.s-v{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity;z-index:var(--controls-container-z-index)}.link.s-v,.title.s-v{color:var(--white)}.link.s-v{pointer-events:auto;text-decoration:none}.link.s-v:hover{text-decoration:underline}.text.s-v{pointer-events:auto}.size-sm.s-v{font-size:14px;font-weight:500;line-height:18px}.hidden.s-v{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Rv(t,e){H(e,!0),Q(t,_S);let i=$=>{var y=pS(),g=C(y,!0);S(y),it(y,x=>l(x),()=>l()),N(()=>ge(g,o())),bt("mouseenter",y,function(...x){var I;(I=e.onMouseEnter)==null||I.apply(this,x)}),bt("mouseleave",y,function(...x){var I;(I=e.onMouseLeave)==null||I.apply(this,x)}),b($,y)},o=h(e,"title",3,""),r=h(e,"isHidden",3,!1),a=h(e,"size",3,"md"),l=h(e,"ref",15),d=K(void 0);Vt(()=>{var y;requestAnimationFrame(()=>{var g;(g=e.onVisibilityChanged)==null||g.call(e,!0)});function $(g){var x;g.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",$),()=>{var g;return(g=n(d))==null?void 0:g.removeEventListener("transitionend",$)}});var s=hS();let u;var m=C(s);{var p=$=>{var y=mS();y.__click=[fS,e];var g=C(y);i(g),S(y),N(()=>De(y,"href",e.titleLinkHref)),b($,y)},v=($,y)=>{{var g=I=>{var T=gS();T.__click=[vS,e];var D=C(T);i(D),S(T),b(I,T)},x=I=>{i(I)};M($,I=>{e.onTitleClicked?I(g):I(x,!1)},y)}};M(m,$=>{e.titleLinkHref?$(p):$(v,!1)})}S(s),it(s,$=>O(d,$),()=>n(d)),N($=>u=ie(s,1,`title size-${a()}`,"s-v",u,$),[()=>({hidden:r()})]),b(t,s),F()}tt(["click"]);var n$=require("@vkontakte/videoplayer-shared/es2015");var bS=k('<div class="timer__cell cell s-15"><span class="cell__value s-15"> </span> <span class="cell__unit s-15"> </span></div> <span class="timer__points s-15"> </span>',1),$S=k('<div class="timer__cell cell s-15"><span class="cell__value s-15"> </span> <span class="cell__unit s-15"> </span></div> <span class="timer__points s-15"> </span>',1),yS=k('<div class="timer__cell cell s-15"><span class="cell__value s-15"> </span> <span class="cell__unit s-15"> </span></div> <span class="timer__points s-15"> </span>',1),xS=k('<div class="timer__cell cell s-15"><span class="cell__value s-15"> </span> <span class="cell__unit s-15"> </span></div>'),wS=k("<div><!> <!> <!> <!></div>"),SS={hash:"s-15",code:".timer__container.s-15{align-items:flex-start;display:flex;justify-content:center}.cell.s-15{align-items:center;display:flex;flex-direction:column}.cell__value.s-15{font-size:48px;font-weight:600;line-height:1.2}.small.s-15 .cell__value:where(.s-15){font-size:24px}.cell__unit.s-15{font-size:14px;font-weight:400;line-height:1.2}.small.s-15 .cell__unit:where(.s-15){font-size:12px}.timer__points.s-15{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-15 .timer__points:where(.s-15){font-size:20px}"};function Dv(t,e){H(e,!0),Q(t,SS);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=L=>String(L).padStart(2,"0"),m=L=>Math.max(L.length,1),p=L=>`${(e.isSmallSize?s:d)*m(L)}px`,v=L=>{let z=Math.floor(L/86400);z&&(L-=z*86400,O(i,u(z),!0));let j=Math.floor(L/3600);O(o,u(j),!0);let te=Math.floor(L/60)%60;O(r,u(te),!0);let ee=L%60;O(a,u(ee),!0)},$=()=>{let L=Math.floor(Date.now()/1e3),z=e.startTime-L;v(z),z>=1?l=requestAnimationFrame($):e.onTimerOver()};Vt(()=>{l=requestAnimationFrame($)}),pn(()=>{cancelAnimationFrame(l)});var y=wS();let g;var x=C(y);{var I=L=>{var z=bS(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),N((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(i)),ge(le,Ee),ge(X,de)},[()=>p(n(i)),()=>G("waiting_live_day_value"),()=>G("waiting_live_colon")]),b(L,z)};M(x,L=>{n(i)&&L(I)})}var T=P(x,2);{var D=L=>{var z=$S(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),N((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(o)),ge(le,Ee),ge(X,de)},[()=>p(n(o)),()=>G("waiting_live_hour_value"),()=>G("waiting_live_colon")]),b(L,z)};M(T,L=>{n(o)&&L(D)})}var A=P(T,2);{var E=L=>{var z=yS(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),N((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(r)),ge(le,Ee),ge(X,de)},[()=>p(n(r)),()=>G("waiting_live_minute_value"),()=>G("waiting_live_colon")]),b(L,z)};M(A,L=>{n(r)&&L(E)})}var V=P(A,2);{var q=L=>{var z=xS();let j;var te=C(z),ee=C(te,!0);S(te);var oe=P(te,2),ae=C(oe,!0);S(oe),S(z),N((le,ce)=>{j=Ke(z,"",j,{width:le}),ge(ee,n(a)),ge(ae,ce)},[()=>p(n(a)),()=>G("waiting_live_second_value")]),b(L,z)};M(V,L=>{n(a)&&L(q)})}S(y),N(L=>g=ie(y,1,"timer__container s-15",null,g,L),[()=>({small:e.isSmallSize})]),b(t,y),F()}var CS=k('<div class="waiting s-r"><span> </span></div>'),TS=k('<div class="upcoming-timer timer s-r"><span> </span> <!></div>'),IS=k('<div class="waiting-container s-r"><!></div>'),ES={hash:"s-r",code:'.waiting-container.s-r{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-r,.waiting-container.s-r:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-r:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-r{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-r{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-r{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-r{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-r{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-r{font-size:15px}.medium.s-r{font-size:17px}'};function Bc(t,e){H(e,!0),Q(t,ES);let i=h(e,"startTime",3,0),o=f(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),a=K(void 0),l=0,d=K(void 0),s=K(void 0),u=f(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,n$.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;Fe(()=>{n(s),n(d),n(o),p==null||p()}),pn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=IS();v.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},v.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var $=C(v);{var y=x=>{var I=CS(),T=C(I);let D;var A=C(T,!0);S(T),S(I),it(I,E=>O(r,E),()=>n(r)),N((E,V)=>{D=ie(T,1,"waiting__title s-r",null,D,E),ge(A,V)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_upcoming_title")]),b(x,I)},g=x=>{var I=TS(),T=C(I);let D;var A=C(T,!0);S(T);var E=P(T,2);let V=f(()=>n(u)||n(m)),q=f(()=>i()||0);Dv(E,{get isSmallSize(){return n(V)},get startTime(){return n(q)},onTimerOver:()=>O(o,!0)}),S(I),it(I,L=>O(a,L),()=>n(a)),N((L,z)=>{D=ie(T,1,"timer__title s-r",null,D,L),ge(A,z)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_timer_title")]),b(x,I)};M($,x=>{n(o)?x(y):x(g,!1)})}S(v),N(()=>Ke(v,`background-image: url(${e.thumbUrl})`)),Vn(v,"clientWidth",x=>O(d,x)),Vn(v,"clientHeight",x=>O(s,x)),b(t,v),F()}tt(["contextmenu","click"]);var PS=k('<div class="waiting-container s-p"><div class="waiting-caption s-p"><!> <p class="waiting-title s-p"> </p></div></div>'),AS={hash:"s-p",code:'.waiting-container.s-p{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-p,.waiting-container.s-p:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-p:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-p{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-p{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function ul(t,e){H(e,!0),Q(t,AS);let i=h(e,"thumbUrl",3,""),o={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=PS();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=C(a),d=C(l);ja(d,{style:"position: static; transform: translate(0, 0)"});var s=P(d,2),u=C(s,!0);S(s),S(l),S(a),N(()=>{Ke(a,`background-image: url('${i()}')`),ge(u,n(r))}),b(t,a),F()}tt(["contextmenu","click"]);var kS=Ae('<path 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>');function Ov(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=kS();b(e,o)},$$slots:{default:!0}})}var LS=k('<div class="select-icon s-1w"><!></div>'),MS={hash:"s-1w",code:".select-icon.s-1w{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Hc(t){Q(t,MS);var e=LS(),i=C(e);Ov(i,{}),S(e),b(t,e)}var VS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},RS=(t,e)=>{Jl(t,()=>e.item.selectItem(e.item.value))},DS=k("<p> </p>"),OS=k('<p class="sublabel s-1r"> </p>'),NS=k('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),BS={hash:"s-1r",code:".menu-item-value.s-1r{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1r{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1r,.sublabel.s-1r{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1r{opacity:.5}"};function Nv(t,e){H(e,!0),Q(t,BS);let i=h(e,"isMobile",3,!1);var o=NS();let r;o.__click=[VS,e],o.__keydown=[RS,e];var a=C(o);{var l=y=>{Hc(y,{})};M(a,y=>{e.item.selected&&y(l)})}var d=P(a,2);let s;var u=C(d);{var m=y=>{var g=Re(),x=se(g);Wi(x,()=>e.item.valueComponent,(I,T)=>{T(I,Jr(()=>{var D;return(D=e.item.valueComponentParams)!=null?D:{}}))}),b(y,g)},p=y=>{var g=DS();let x;var I=C(g,!0);S(g),N(T=>{var D;x=ie(g,1,"label s-1r",null,x,T),ge(I,(D=e.item.label)!=null?D:e.item.value)},[()=>({mobile:i()})]),b(y,g)};M(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=P(u,2);{var $=y=>{var g=OS(),x=C(g,!0);S(g),N(()=>ge(x,e.item.sublabel)),b(y,g)};M(v,y=>{e.item.sublabel&&y($)})}S(d),S(o),N((y,g,x)=>{var I;r=ie(o,1,"item",null,r,y),De(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),De(o,"aria-label",g),De(o,"data-testid",e.item.dataTestid),s=ie(d,1,"menu-item-value s-1r",null,s,x),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,g;return(g=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?g:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}tt(["click","keydown"]);var HS=k('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Bv(t,e){H(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>g=>Zu(g,n(r)));var l=HS();let d;l.__click=function(...g){var x;(x=n(r))==null||x.apply(this,g)},l.__keydown=function(...g){var x;(x=n(a))==null||x.apply(this,g)};var s=C(l);{var u=g=>{Hc(g,{})};M(s,g=>{e.item.selected&&g(u)})}var m=P(s,2);let p;var v=C(m);{var $=g=>{var x=Re();let I=f(()=>e.item.valueComponent);var T=se(x);Wi(T,()=>n(I),(D,A)=>{A(D,Jr(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(g,x)},y=g=>{var x=$s();N(()=>ge(x,e.item.label)),b(g,x)};M(v,g=>{e.item.valueComponent?g($):g(y,!1)})}S(m),S(l),it(l,g=>o(o()[e.item.id]=g,!0),()=>{var g;return(g=o())==null?void 0:g[e.item.id]}),N((g,x)=>{var I;d=ie(l,1,"item",null,d,g),De(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),De(l,"data-testid",e.item.id),p=ie(m,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}tt(["click","keydown"]);var os={"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 US=(t,e)=>{gb(t,e.returnFromSubMenu,e.closeSettingsMenu)},zS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},WS=(t,e)=>{lc(t)&&(Rr(t),e.returnFromSubMenu())},KS=k('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1j"> </p></li> <!></ul></div>'),qS={hash:"s-1j",code:".sub-menu.s-1j{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1j .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1j{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1j{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1j .items:where(.s-1j) .item.header:where(.s-1j){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1j .title:where(.s-1j){margin-left:8px}.sub-menu.s-1j .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1j .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1j .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1j .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1j .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1j .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1j .item .sublabel{font-size:12px;line-height:14px}.item.s-1j:not(.mobile) p:where(.s-1j),.sub-menu.s-1j .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Fv(t,e){H(e,!0),Q(t,qS);let[i,o]=Be(),r=()=>w(p,"$isFullscreen",i),a=()=>w(v,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),s=h(e,"ariaLabelReturnFromSubMenu",19,()=>G("aria_label_submenu_back")),u=h(e,"listRef",15);Vt(()=>{let ee=e.items.findIndex(oe=>oe.selected);u().children[ee+1].focus()});let m=ye(),p=m.ui.isFullscreen,v=m.ui.playerSize,$=K(void 0),y=K(0),g=K(0),x=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(g)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var T=KS();let D;var A=C(T);let E;A.__keydown=[US,e];var V=C(A);let q;V.__click=[zS,e],V.__keydown=[WS,e];var L=C(V);Vr(L,{direction:"left"});var z=P(L,2),j=C(z,!0);S(z),S(V),it(V,ee=>O($,ee),()=>n($));var te=P(V,2);Ci(te,17,()=>e.items,Wd,(ee,oe)=>{var ae=Re(),le=se(ae);{var ce=_e=>{Nv(_e,{get item(){return n(oe)},get isMobile(){return l()}})},X=(_e,Ee)=>{{var de=ze=>{Bv(ze,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};M(_e,ze=>{n(oe).type==="OPEN_SUB_MENU"&&ze(de)},Ee)}};M(le,_e=>{n(oe).type==="SELECT_VALUE"?_e(ce):_e(X,!1)})}b(ee,ae)}),S(A),it(A,ee=>u(ee),()=>u()),S(T),N((ee,oe,ae)=>{D=ie(T,1,"sub-menu menu s-1j",null,D,ee),De(T,"data-testid",`${e.id}-sub-menu`),Ke(T,`min-width: ${n(I)}px`),E=ie(A,1,"items s-1j",null,E,oe),Ke(A,n(x)),q=ie(V,1,"item header back s-1j",null,q,ae),De(V,"aria-label",s()),ge(j,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Vn(V,"clientWidth",ee=>O(y,ee)),Vn(V,"clientHeight",ee=>O(g,ee)),b(t,T),F(),o()}tt(["keydown","click"]);var s$=require("@vkontakte/videoplayer-shared/es2015");var QS=(t,e)=>Zu(t,e()),GS=(t,e)=>{t.stopPropagation(),e()()},YS=k('<div class="value s-1k"> </div>'),jS=k('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),XS={hash:"s-1k",code:".value.s-1k{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Uv(t,e){H(e,!0),Q(t,XS);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,s$.noop),r=h(e,"valueComponent",3,void 0),a=h(e,"iconProps",19,()=>({})),l=h(e,"ref",15);var d=jS();let s;d.__click=[GS,o],d.__keydown=[QS,o];var u=C(d),m=C(u);{var p=T=>{nl(T,{get icon(){return e.icon}})},v=T=>{var D=Re();let A=f(()=>e.icon);var E=se(D);Wi(E,()=>n(A),(V,q)=>{q(V,Jr(a))}),b(T,D)};M(m,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var $=P(u,2),y=C($,!0);S($);var g=P($,2);{var x=T=>{var D=Re();let A=f(r);var E=se(D);Wi(E,()=>n(A),(V,q)=>{q(V,{})}),b(T,D)},I=T=>{var D=YS(),A=C(D,!0);S(D),N(()=>ge(A,e.value)),b(T,D)};M(g,T=>{r()?T(x):T(I,!1)})}S(d),it(d,T=>l(T),()=>l()),N(T=>{s=ie(d,1,"item",null,s,T),De(d,"aria-label",e.ariaLabel),De(d,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),b(t,d),F()}tt(["click","keydown"]);var zv=require("@vkontakte/videoplayer-shared/es2015");var ZS=(t,e)=>{Jl(t,()=>e())},JS=k('<div class="icon icon-error-stub"><div class="inner"></div></div>'),eC=k('<img class="icon" aria-hidden="true"/>'),tC=k('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1l"> </div></li>'),iC={hash:"s-1l",code:".label.s-1l{overflow:hidden;text-overflow:ellipsis}"};function Wv(t,e){H(e,!0),Q(t,iC);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,zv.noop),r=h(e,"closeSettings",3,zv.noop),a=K(!1),l=()=>{O(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=tC();let u;s.__click=d,s.__keydown=[ZS,d];var m=C(s),p=C(m);{var v=x=>{var I=Re(),T=se(I);{var D=E=>{var V=JS();b(E,V)},A=E=>{var V=eC();N(()=>De(V,"src",e.icon)),bt("error",V,l),Ha(V),b(E,V)};M(T,E=>{n(a)?E(D):E(A,!1)})}b(x,I)},$=x=>{var I=Re();let T=f(()=>e.icon);var D=se(I);Wi(D,()=>n(T),(A,E)=>{E(A,{})}),b(x,I)};M(p,x=>{typeof e.icon=="string"?x(v):x($,!1)})}S(m);var y=P(m,2),g=C(y,!0);S(y),S(s),N(x=>{var I;u=ie(s,1,"item",null,u,x),De(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),De(s,"data-testid",e.id),ge(g,e.label)},[()=>({mobile:i()})]),b(t,s),F()}tt(["click","keydown"]);var a$=require("@vkontakte/videoplayer-shared/es2015");var oC=k('<div class="toggle_wrap s-1q"><div></div> <div class="toggle-label s-1q"></div></div>'),nC={hash:"s-1q",code:'.toggle_wrap.s-1q{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1q{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1q:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1q:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1q{overflow:hidden}'};function Kv(t,e){Q(t,nC);let i=h(e,"enabled",3,!1);var o=oC(),r=C(o);let a;Jt(2),S(o),N(l=>a=ie(r,1,"toggle s-1q",null,a,l),[()=>({on:i()})]),b(t,o)}var rC=(t,e,i)=>{hb(t,e(),o=>i()(o))},sC=(t,e,i)=>{t.stopPropagation(),e()(!i())},aC=k('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),lC=k('<li role="menuitem" tabindex="0"><!></li>');function qv(t,e){H(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,a$.noop),r=h(e,"enabled",3,!1),a=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=lC();let s;d.__click=[sC,o,r],d.__keydown=[rC,r,o];var u=C(d);Za(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,p)=>{var v=aC();let $;var y=C(v),g=C(y);{var x=E=>{nl(E,{get icon(){return e.icon}})},I=E=>{var V=Re();let q=f(()=>e.icon);var L=se(V);Wi(L,()=>n(q),(z,j)=>{j(z,{})}),b(E,V)};M(g,E=>{typeof e.icon=="string"?E(x):E(I,!1)})}S(y);var T=P(y,2),D=C(T,!0);S(T);var A=P(T,2);Kv(A,{get enabled(){return r()}}),S(v),N(E=>{$=ie(v,1,"switch-wrapper",null,$,E),ge(D,e.label)},[()=>({mobile:i()})]),b(m,v)},$$slots:{default:!0}}),S(d),N(m=>{var p;s=ie(d,1,"item switch-item",null,s,m),De(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}tt(["click","keydown"]);var Uc=require("@vkontakte/videoplayer-shared/es2015");var l$=()=>{let t=K(si([])),e=f(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var d$=require("@vkontakte/videoplayer-shared/es2015");var dC=k('<div class="quality-icon s-1p"><!></div>'),cC=k('<div class="quality-label s-1p"><span> </span> <!></div>'),uC={hash:"s-1p",code:".quality-label.s-1p{position:relative}.quality.s-1p{font-size:13px;line-height:18px}.quality.sub.s-1p{opacity:.7}.quality-icon.s-1p{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1p svg{color:var(--blue-light)}"};function pl(t,e){H(e,!0),Q(t,uC);let i=h(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,d$.getVideoQualityLabel)(e.quality):""),r=f(()=>np(e.quality));var a=cC(),l=C(a);let d;var s=C(l,!0);S(l);var u=P(l,2);{var m=p=>{var v=dC();let $=f(()=>n(r));var y=C(v);Wi(y,()=>n($),(g,x)=>{x(g,{})}),S(v),N(()=>De(v,"data-testid",`${n(o)}-icon`)),b(p,v)};M(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),N(p=>{d=ie(l,1,"s-1p",null,d,p),ge(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,a),F()}var f$=require("@vkontakte/videoplayer-shared/es2015");var Qv=require("@vkontakte/videoplayer-core/es2015");var c$=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},u$=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=c$({quality:t,availableQualities:e});return i?t===Qv.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o},p$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Qv.VideoQuality.INVARIANT?i:`${i}${c$({quality:t,availableQualities:e})}`:"...";var pC=k('<div class="menu-item-value-wrapper s-1s"><!></div>'),fC={hash:"s-1s",code:".menu-item-value-wrapper.s-1s{line-height:normal}"};function ud(t,e){H(e,!0),Q(t,fC);let[i,o]=Be(),r=()=>w(s,"$currentQuality$",i),a=()=>w(u,"$availableQualities$",i),l=()=>w(m,"$isMobile$",i),d=ye(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==f$.VideoQuality.INVARIANT?p:"")),$=f(()=>p$({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=pC(),g=C(y);let x=f(()=>e.selected?r():void 0);pl(g,{get quality(){return n(x)},get label(){return n($)},get isMobile(){return l()},isSubCase:!0}),S(y),b(t,y),F(),o()}var mC=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},vC={br:!0,span:!0},Gv=(t,e={})=>{var d,s,u,m,p,v,$;if(!t)return t;let i=Ge(Ge({},vC),e),o=Object.keys(i);if(!o.length)return t;let r=mC(o),a=[],l=0;for(let y of t.matchAll(r)){let g=y[0],x=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[x]){a.push(t.slice(l,I)),l=I+g.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Gv(y.groups.childrenhtml,i):"",D=(v=y.groups)!=null&&v.childrenhtml?g.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>T||""):g;a.push(t.slice(l,I),D),l=I+g.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Fc(t,e){H(e,!1);let i=h(e,"message",8),o=Gv(i());rn();var r=Re(),a=se(r);{var l=d=>{var s=Re(),u=se(s);Kd(u,()=>o),b(d,s)};M(a,d=>{o&&d(l)})}b(t,r),F()}var gC=k('<p class="quality-applies sublabel s-1t"><!></p>'),hC={hash:"s-1t",code:".quality-applies.s-1t{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Yv(t,e){H(e,!1),Q(t,hC),rn();var i=gC(),o=C(i);let r=Pn(()=>G("quality_applience",{action:`<span>${G("quality_applience_action")}</span>`}));Fc(o,{get message(){return n(r)}}),S(i),b(t,i),F()}var v$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:G("other_quality"),selected:o,valueComponent:ud,valueComponentParams:{prefix:G("other_quality"),selected:o},children:"quality-other-settings"}},jv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:G("auto_quality_limit"),valueComponent:e?ud:void 0,valueComponentParams:{prefix:G("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),g$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Yv,bottomBordered:!0,children:"quality-appliance"}),Xv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:G("high_quality"),valueComponent:t?ud:void 0,valueComponentParams:{prefix:G("high_quality"),selected:i},sublabel:G("high_quality_description")}),Zv=({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:G("traffic_saving_quality"),valueComponent:t?ud:void 0,valueComponentParams:{prefix:G("traffic_saving_quality"),selected:i},sublabel:G("traffic_saving_quality_description")});var wp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Sp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=xc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return G("audio_stream_display_language_label",{language:r,label:o});{let s=wp(t,d);return G("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=wp(t,d);return G("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=wp(t,d);return G("audio_stream_display_language_index",{language:r,index:s})}}let a=wp(t,e);return G("audio_stream_display_unknown",{index:a})};var _C={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:jv,selected:e&&!o&&!r||!1}),a.push({handler:Zv,selected:o},{handler:Xv,selected:r}),{title:G("submenu_quality"),id:"quality-settings",items:[g$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),v$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:G("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:pl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:G("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:jv,selected:((i=Ku())==null?void 0:i.type)==="auto_quality"},{handler:Zv,selected:((o=Ku())==null?void 0:o.type)==="traffic_saving"},{handler:Xv,selected:((r=Ku())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-tracks":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-tracks",title:G("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:Sp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:G("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:G("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===On?"sub_off":void 0}))})},h$=({subMenuId:t,context:e})=>t?[_C[t](e)]:[];var bC=Ae('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Jv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=bC();b(e,o)},$$slots:{default:!0}})}var $C=Ae('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function eg(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=$C();b(e,o)},$$slots:{default:!0}})}var yC=Ae('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 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.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function tg(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=yC();b(e,o)},$$slots:{default:!0}})}var xC=Ae('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function ig(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=xC();b(e,o)},$$slots:{default:!0}})}var wC=Ae('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 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"></path>');function og(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=wC();b(e,o)},$$slots:{default:!0}})}var SC=Ae('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function Cp(t){Ze(t,{children:(e,i)=>{var o=SC();b(e,o)},$$slots:{default:!0}})}var CC=Ae('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function ng(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=CC();b(e,o)},$$slots:{default:!0}})}var TC=k('<div class="menu-item-value-wrapper s-1v"><!></div>'),IC={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function rg(t,e){H(e,!0),Q(t,IC);let[i,o]=Be(),r=()=>w(u,"$currentQuality$",i),a=()=>w(m,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(v,"$isMobile$",i),s=ye(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,$=f(()=>u$({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=TC(),g=C(y);pl(g,{get quality(){return r()},get label(){return n($)},get isMobile(){return d()}}),S(y),b(t,y),F(),o()}var PC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?G("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_quality",{actual:o}),icon:fc,label:G("menu_quality"),value:e,valueComponent:rg,weight:os["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:os["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:G("aria_label_submenu_traffic_saving"),icon:Jv,label:G("menu_traffic_saving"),enabled:t,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=Sp(t,e);return{id:"audio-tracks-settings",weight:os["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_audio_languages",{actual:i}),icon:eg,label:G("menu_audio_languages"),value:i,children:"audio-tracks"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:os["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_rate",{actual:i}),icon:tg,label:G("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:os["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ga,iconProps:{type:"outline"},label:G("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:os.download,type:"CLICK",onClick:t,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:ig}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:os.report,type:"CLICK",onClick:t,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:og,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:os["copy-data"],type:"CLICK",onClick:t,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:Cp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:os["save-trace-info"],type:"CLICK",onClick:t,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:Cp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:os["debug-info"],type:"CLICK",onClick:t,ariaLabel:G("aria_label_menu_debug_overlay"),label:G("menu_debug_overlay"),icon:ng,isHiddenFor:["desktop"]})},_$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>PC[r](e)),...i.map(r=>ti(Ge({},r),{isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ga)};var kC=(t,e)=>{Xu(t,e)},LC=k('<div><div> </div> <div class="close s-n" data-testid="close-settings-menu"></div></div>'),MC=k('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),VC=k("<div><!> <!></div>"),RC={hash:"s-n",code:'.settings-menu-container.mobile.s-n{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-n ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-n .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-n .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-n .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-n .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-n .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-n .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-n{line-height:40px}.settings-menu.desktop.s-n{min-width:300px}.settings-menu-container.s-n .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-n .menu.mobile.hidden{display:none}.settings-menu-container.s-n .menu .item:not(.switch-item),.settings-menu-container.s-n .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;position:relative;white-space:nowrap}.settings-menu-container.s-n .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-n .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-n .item:not(.switch-item),.settings-menu.s-n .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-n .item.mobile:not(.switch-item),.settings-menu.s-n .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-n .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-n .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-n .item.header.mobile:where(.s-n){border-bottom:var(--divider-border);color:var(--white);column-gap:12px;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:4px}.settings-menu-container.s-n .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-n .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-n .items::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.settings-menu-container.s-n .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-n .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-n{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-n:after,.close.s-n:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-n:before{transform:rotate(45deg)}.close.s-n:after{transform:rotate(-45deg)}'};function zc(t,e){H(e,!0),Q(t,RC);let[i,o]=Be(),r=()=>w(be,"$settingsMenuVisible",i),a=()=>w(W,"$settingsMenuOpenedByKeyboard",i),l=()=>w(pt,"$debugPanelVisible",i),d=()=>w(ke,"$isMobile",i),s=()=>w(at,"$playerSize",i),u=()=>w(Me,"$hasMpegSources$",i),m=()=>w(Qe,"$mobileNotReportControlHidden$",i),p=()=>w(ue,"$autoQualityLimitingAvailable$",i),v=()=>w(X,"$isMinimalView$",i),$=()=>w(Ie,"$availableSubtitlesList$",i),y=()=>w(Te,"$isLiveWithPlaybackSpeed",i),g=()=>w(Ee,"$availableAudioStreams$",i),x=()=>w(fe,"$availablePlaybackRates$",i),I=()=>w(_e,"$currentAudioStream$",i),T=()=>w(B,"$currentPlaybackRate$",i),D=()=>w(we,"$trafficSavingEnabled",i),A=()=>w(de,"$currentQuality$",i),E=()=>w(pe,"$isAutoQualityEnabled$",i),V=()=>w(me,"$currentSubtitle$",i),q=()=>w(dt,"$additionalSettingsMenuItems$",i),L=()=>w(Z,"$isAutoQualityAvailable$",i),z=()=>w(ze,"$availableQualities$",i),j=()=>w(He,"$highQualityEnabled",i),te=h(e,"ref",15,void 0),ee=h(e,"playerControlsHeight",3,0),oe=si({}),ae=si({}),le=ye(),ce=Rt(),X=le.ui.isMinimalView$,_e=le.state.audioStream$,Ee=le.state.availableAudioStreams$,de=le.state.currentQuality$,ze=le.state.availableQualities$,ue=le.state.autoQualityLimitingAvailable$,pe=le.state.isAutoQualityEnabled$,Z=le.state.isAutoQualityAvailable$,B=le.state.currentPlaybackRate$,fe=le.state.availablePlaybackRates$,me=le.state.currentSubtitle$,Ie=le.state.availableSubtitlesList$,nt=le.state.canDownload,Me=le.state.hasMpegSources$,be=le.ui.settingsMenu.visible$,W=le.ui.settingsMenu.openedByBtnKeyboard$,Ce=le.ui.settingsMenu.ref$,ke=le.ui.isMobile,Qe=le.ui.mobileNotReportControlHidden$,Te=le.state.canChangePlaybackSpeed$,we=le.state.trafficSavingEnabled$,He=le.state.highQualityEnabled$,at=le.ui.playerSize,pt=le.ui.debugPanelVisible,Pt=le.state.isInteractiveTime$,dt=le.ui.additionalSettingsMenuItems$,ai=le.ui.t,Tt=le.actions.internal.downloadVideo,Ot=le.actions.internal.closeSettingsMenu,Nt=le.actions.internal.openSettingsSubMenu,qt=le.actions.internal.closeSettingsSubMenu,Le=K(!1),Y=K(void 0),Oe=l$();Fe(()=>{!r()&&Oe.current&&(qt(ae[Oe.current]),Oe.popAllSubMenus())}),Fe(()=>{r()||O(Y,void 0)}),Fe(()=>{!Oe.current&&n(Y)&&vb(oe,n(Y))}),Fe(()=>{te()&&Ce.set(te())});function $e(U){return xt(this,null,function*(){var Xt;Oe.pushSubMenu(U),yield yo(),Nt(U,ae[U]);let ot=(Xt=te())==null?void 0:Xt.firstElementChild;ot&&mm(ot)})}function Ne(U){var ot;U==null||U.stopPropagation(),a()||(ot=e.returnFocus)==null||ot.call(e),Ot(),O(Le,!1)}function vt(U,ot){le.actions.internal.setQuality(U,{appliesTo:ot,byUser:!0}),Ne()}function At(U){le.actions.internal.setAudioStream(U),Ne()}function Se(U,ot){le.actions.internal.setTrafficSavingEnabled(U,ot),ce.features.qualityDetailsSubMenuEnabled&&Ne()}function je(U,ot){le.actions.internal.setHighQualityEnabled(U,ot),Ne()}function Ue(U){le.actions.internal.setPlaybackRate(U),Ne()}function xe(U){le.actions.internal.setSubtitle(U),Ne()}function Bt(){Tt()}function Et(){(0,Uc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function Gt(){Xl(le.actions.internal.getDebugTextData())}let $i=()=>{let U=le.actions.internal.getTraceTextData(),ot=new Blob([...U],{type:"application/json"}),Xt=window.URL.createObjectURL(ot);qa(Xt,"vk_player_trace_info","json")};function hi(){pt.set(!l())}function Vi(){O(Le,!0)}function io(){O(Le,!1)}function di(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ee()}px; overflow: auto;`}let Ti=f(()=>nt&&u()&&!m()),oo=f(()=>ce.features.trafficSaving&&!m()&&p()&&!ce.features.qualityDetailsSubMenuEnabled),Ri=f(()=>!v()&&$().length>0&&!m()),ci=f(()=>!!y()&&!m()),Ki=f(()=>ce.features.audioLanguages&&g().length>=2&&!m()),$t=f(()=>!m());Vt(()=>Pt.subscribe(U=>{U&&!d()&&!n(Le)&&!a()&&Ne()}));let We=f(()=>{let U=[n($t)&&"quality-settings",n(Ki)&&"audio-tracks-settings",n(ci)&&"playback-rate-settings",n(Ri)&&"subtitles-settings",n(oo)&&"traffic-saving-switch",n(Ti)&&"download",ce.showSupport&&"show-support","copy-data",ce.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(ot=>!!ot);return _$({items:U,context:{qualityDetailsSubMenuEnabled:ce.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:I(),availableAudioStreams:g(),currentPlaybackRate:T(),selectPlaybackRate:Ue,trafficSavingEnabled:D(),toggleTrafficSaving:Se,currentQuality:A()||Uc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:V(),isMobile:d(),onDownloadClick:Bt,onCopyDataClick:Gt,onReportProblemClick:Et,onSaveTraceDataClick:$i,toggleShowDebugInfo:hi},additionalSettingsMenuItems:q()})}),rt=f(()=>h$({subMenuId:Oe.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Ue,trafficSavingEnabled:D(),toggleTrafficSaving:Se,currentQuality:A()||Uc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:L()||!1,availableQualities:z(),highQualityEnabled:j(),toggleHighQuality:je,availableAudioStreams:g(),availableSubtitlesList:$(),closeSettingsMenu:Ot,currentAudioStream:I(),isMobile:d(),selectAudioLanguage:At,selectQuality:vt,selectSubtitle:xe}}));var ft=VC();let pi;var qi=C(ft);{var no=U=>{var ot=MC();let Xt;ot.__keydown=[kC,Ot];var _i=C(ot);{var lt=jt=>{var It=LC();let xo;var Fo=C(It),gn=C(Fo,!0);S(Fo);var hn=P(Fo,2);hn.__click=Ne,S(It),N((ki,Ii)=>{xo=ie(It,1,"item header s-n",null,xo,ki),ge(gn,Ii)},[()=>({mobile:d()}),()=>ai("submenu_settings")]),b(jt,It)};M(_i,jt=>{d()&&jt(lt)})}var li=P(_i,2);let yi;Ci(li,21,()=>n(We),jt=>jt.id,(jt,It)=>{var xo=Re(),Fo=se(xo);{var gn=ki=>{Uv(ki,{get isMobile(){return d()},get id(){return n(It).id},get icon(){return n(It).icon},get iconProps(){return n(It).iconProps},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},get value(){return n(It).value},get valueComponent(){return n(It).valueComponent},onClick:()=>{$e(n(It).children),O(Y,n(It).id,!0)},get ref(){return oe[n(It).id]},set ref(Ii){oe[n(It).id]=Ii}})},hn=(ki,Ii)=>{{var _n=Si=>{let Io=f(()=>`${n(It).id}-menu-item`);Wv(Si,{get isMobile(){return d()},get id(){return n(Io)},get onClick(){return n(It).onClick},get icon(){return n(It).icon},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},closeSettings:Ne})},br=(Si,Io)=>{{var Uo=zo=>{let bn=f(()=>`${n(It).id}-menu-item`);qv(zo,{get isMobile(){return d()},get id(){return n(bn)},get onClick(){return n(It).onClick},get icon(){return n(It).icon},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},get enabled(){return n(It).enabled},get tooltipText(){return n(It).tooltipText},get maxTooltipWidth(){return n(It).maxTooltipWidth}})};M(Si,zo=>{n(It).type==="SWITCH"&&zo(Uo)},Io)}};M(ki,Si=>{n(It).type==="CLICK"?Si(_n):Si(br,!1)},Ii)}};M(Fo,ki=>{n(It).type==="OPEN_SUB_MENU"?ki(gn):ki(hn,!1)})}b(jt,xo)}),S(li),it(li,jt=>te(jt),()=>te()),S(ot),N((jt,It,xo)=>{Xt=ie(ot,1,"settings-menu menu s-n",null,Xt,jt),yi=ie(li,1,"items",null,yi,It),Ke(li,xo)},[()=>({desktop:!d(),mobile:d(),hidden:!!Oe.current}),()=>({mobile:d()}),di]),bt("mouseenter",ot,Vi),bt("mouseleave",ot,io),b(U,ot)};M(qi,U=>{r()&&U(no)})}var vn=P(qi,2);Ci(vn,17,()=>n(rt),U=>U.id,(U,ot)=>{let Xt=f(()=>{var _i;return(_i=n(ot).minWidth)!=null?_i:137});Fv(U,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return Oe.popSubMenu},get id(){return n(ot).id},get title(){return n(ot).title},get closeSettingsMenu(){return Ot},openSubMenuList:$e,get items(){return n(ot).items},get minWidth(){return n(Xt)},get refMenuItems(){return oe},get listRef(){return ae[n(ot).id]},set listRef(_i){ae[n(ot).id]=_i}})}),S(ft),N(U=>pi=ie(ft,1,"settings-menu-container s-n",null,pi,U),[()=>({mobile:d(),hidden:!r()})]),b(t,ft),F(),o()}tt(["keydown","click"]);var DC=k('<button class="btn s-1e"> </button>'),OC={hash:"s-1e",code:"button.btn.s-1e{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function sg(t,e){Q(t,OC);var i=DC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),N(()=>ge(o,e.label)),b(t,i)}tt(["click"]);var NC=k('<div class="container s-q"><div class="notification s-q"><div><p class="description s-q"><!></p> <!></div> <!></div></div>'),BC={hash:"s-q",code:".container.s-q{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-q{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-q{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Wc(t,e){H(e,!0),Q(t,BC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=ye(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=NC(),d=C(l),s=C(d),u=C(s),m=C(u);Fc(m,{get message(){return a}}),S(u);var p=P(u,2);{var v=y=>{let g=f(()=>r("slow_video_notification_button"));sg(y,{get label(){return n(g)},get onClick(){return e.onSelectAutoQuality}})};M(p,y=>{o||y(v)})}S(s);var $=P(s,2);Fs($,{get onClick(){return e.onClose}}),S(d),S(l),Bs(3,d,()=>ba,()=>({duration:i})),b(t,l),F()}var Kc=require("@vkontakte/videoplayer-shared/es2015");var fl="annotation",Tp=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",fl),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.ui.isControlsAvailable.set(!1)),{success:!0}}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(r,a){return xt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var v;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:s,hiddenControls:u}=((v=this.store)==null?void 0:v.ui)||{},m=new MutationObserver($=>$.forEach(()=>{let y=Ks(d,this.shadowRootContainer);o.forEach(g=>{let x=s==null?void 0:s[g],I=x?he(x):null,T=u==null?void 0:u[g];I&&(T==null||T.set((0,Kc.isIntersecting)(I,y)))})}));m.observe(d,{childList:!0,subtree:!0}),l.observer=m;let p=new Kc.Subscription;o.forEach($=>{s&&p.add(s[$].subscribe(y=>{let g=u==null?void 0:u[$];y&&y.isDisplayed?g==null||g.set((0,Kc.isIntersecting)(y,Ks(d,this.shadowRootContainer))):g==null||g.set(!1)}))}),l.subs=p})}findSlotElement(e,i,o){return xt(this,null,function*(){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var v,$;($=(v=this.store)==null?void 0:v.ui.hiddenControls[p])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var HC=k('<div class="container s-6"><!></div>'),FC={hash:"s-6",code:".container.s-6{align-items:center;animation-fill-mode:forwards;animation-name:s-6-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-6-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function qc(t,e){H(e,!0),Q(t,FC);let i=h(e,"reversed",3,!1);var o=Re(),r=se(o);Ds(r,()=>e.Icon,a=>{var l=HC(),d=C(l);Wi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),N(()=>Ke(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),F()}var ag=require("@vkontakte/videoplayer-core/es2015"),UC=k('<div class="container s-w"><!></div>'),zC={hash:"s-w",code:".container.s-w{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function lg(t,e){H(e,!0),Q(t,zC);let[i,o]=Be(),r=()=>w(s,"$playbackState$",i),a=()=>w(m,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=ye(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:$}=Rt(),y=0,g=K(null),x=K(!1);Fe(()=>{r()===ag.PlaybackState.PLAYING?O(g,_r,!0):r()===ag.PlaybackState.PAUSED?O(g,Qs,!0):O(g,null)}),Fe(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,O(g,null)},$),()=>{y&&(window.clearTimeout(y),y=0)}}),Fe(()=>{d()&&!n(x)&&(O(x,!0),O(g,null))});var I=Re(),T=se(I);{var D=A=>{var E=UC(),V=C(E);qc(V,{get duration(){return $},get Icon(){return n(g)}}),S(E),b(A,E)};M(T,A=>{n(g)&&v&&A(D)})}b(t,I),F(),o()}var WC=k('<div><div data-testid="video-container"></div></div>'),KC={hash:"s-d",code:".video-container.s-d,.video-wrapper.s-d{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-d{background:var(--black)}.video-container.s-d,.video-wrapper.s-d{z-index:var(--video-container-z-index)}.video-container.s-d{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-d{transition:none}.nocursor.s-d{cursor:none}"};function ml(t,e){H(e,!0),Q(t,KC);let[i,o]=Be(),r=()=>w(p,"$rotateAlpha",i),a=()=>w(v,"$playerSize",i),l=()=>w(m,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),s=()=>w($,"$isPlaying$",i),u=h(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:$,chromecastConnected$:y}}=ye(),{isSmoothVideoRotate:g}=Rt(),x=f(()=>u()&&r()%180?a().height/a().width:1);var I=WC();let T;I.__contextmenu=function(...E){var V;(V=e.onContextMenu)==null||V.apply(this,E)},I.__mousedown=function(...E){var V;(V=e.onMouseDown)==null||V.apply(this,E)},I.__mouseup=function(...E){var V;(V=e.onMouseUp)==null||V.apply(this,E)},I.__click=function(...E){var V;(V=e.onClick)==null||V.apply(this,E)},I.__dblclick=function(...E){var V;(V=e.onDblClick)==null||V.apply(this,E)};var D=C(I);let A;it(D,E=>u(E),()=>u()),S(I),N((E,V)=>{T=ie(I,1,"video-wrapper s-d",null,T,E),A=ie(D,1,"video-container s-d",null,A,V),Ke(D,`transform: rotate(${r()}deg) scale(${n(x)})`),De(D,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!g})]),b(t,I),F(),o()}tt(["contextmenu","mousedown","mouseup","click","dblclick"]);var qC=k('<div><span class="text s-11"> </span> <!></div>'),QC={hash:"s-11",code:".root.s-11{background-color:var(--double-forward-bg);border-radius:100px;color:var(--white);display:flex;gap:4px;left:50%;opacity:0;padding:6px 12px;pointer-events:none;position:absolute;top:24px;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden}.root.s-11,.root.visible.s-11{transform:translateX(-50%)}.root.visible.s-11{opacity:1;visibility:visible}.text.s-11{font-size:13px;font-weight:600;line-height:16px}"};function dg(t,e){H(e,!0),Q(t,QC);let{ui:{t:i}}=ye();var o=qC();let r;var a=C(o),l=C(a,!0);S(a);var d=P(a,2);Dc(d,{get size(){return"16"},fill:"currentColor"}),S(o),N((s,u)=>{r=ie(o,1,"root s-11",null,r,s),ge(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),F()}var GC=k('<div class="container s-10" role="button" data-testid="preview-track-overlay"></div>'),YC={hash:"s-10",code:".container.s-10{align-items:center;background-color:rgba(0,0,0,.48);cursor:pointer;display:flex;height:100%;justify-content:center;position:absolute;width:100%}"};function cg(t,e){H(e,!1),Q(t,YC);let i=ye(),o=i.actions.internal.closePreviewTrack,r=i.ui.t,a=200,l=s=>{s.stopPropagation(),o()};rn();var d=GC();return d.__click=l,N(s=>De(d,"aria-label",s),[()=>r("tooltip_play")],Pn),Bs(3,d,()=>ba,()=>({duration:a})),b(t,d),Bf(e,"handleClick",l),F({handleClick:l})}tt(["click"]);var jC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},XC=k("<div><!></div>"),ZC=k('<div class="spherical-video-icon s-8"><!></div>'),JC=k("<div><!></div>"),eT=k('<div class="settings-menu s-8"><!></div>'),tT=k("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),iT=k("<!> <!> <!>",1),oT=k('<div class="blocked s-8"></div>'),nT=k('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),rT={hash:"s-8",code:".blocked.s-8,.player-wrapper.s-8{height:100%;position:absolute;width:100%}.blocked.s-8{z-index:var(--overlay-container-z-index)}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-8{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function pg(t,e){H(e,!0),Q(t,rT);let[i,o]=Be(),r=()=>w(wr,"$notificationsToShow$",i),a=()=>w(oo,"$playerPhase",i),l=()=>w(no,"$isLoaderVisible",i),d=()=>w(io,"$adPlaybackState",i),s=()=>w(li,"$crashed",i),u=()=>w(_n,"$isInteractiveTime$",i),m=()=>w($t,"$settingsMenuVisible",i),p=()=>w(br,"$isInteractiveExpectation$",i),v=()=>w(hi,"$isMinimalView$",i),$=()=>w(Ki,"$controlsVisible",i),y=()=>w(Io,"$touched",i),g=()=>w(ls,"$graphIsOpened$",i),x=()=>w(Ri,"$isFullscreen",i),I=()=>w(er,"$autoplayNextEnabled$",i),T=()=>w(Xt,"$postrollPassed",i),D=()=>w(vn,"$isEnded$",i),A=()=>w(It,"$currentSubtitle$",i),E=()=>w(Un,"$cursorInside",i),V=()=>w(Eo,"$isControlsAvailable",i),q=()=>w(yr,"$doubleForwardOn$",i),L=()=>w(tr,"$fakeIsPlaying$",i),z=()=>w(rr,"$bottomNoSmooth",i),j=()=>w(Ss,"$interactiveTimeIndicator",i),te=()=>w(Fo,"$playerSize",i),ee=()=>w(hn,"$is3DVideo",i),oe=()=>w(Nn,"$doubleForwardAvailable$",i),ae=()=>w(pi,"$contextMenuVisible$",i),le=()=>w(Vi,"$playbackState$",i),ce=()=>w(Uo,"$hotKeyMapData",i),X=()=>w(rt,"$scrubbingInProgress",i),_e=()=>w(ft,"$volumeChangingInProgress",i),Ee=()=>w(U,"$chromecastConnected$",i),de=()=>w(Ko,"$controlsTimeoutActive",i),ze=()=>w(gn,"$adsPlaybackState",i),ue=()=>w(We,"$settingsMenuOpenedByKeyboard",i),pe=()=>w(Go,"$contextMenuOpenedByKeyboard$",i),Z=()=>w(Cs,"$contextMenuOpenedByHotKey$",i),B=()=>w(Tr,"$contextMenuButtonRef$",i),fe=()=>w(Ts,"$contextMenuLastActiveElem$",i),me=()=>w(ci,"$isFullscreenOpenedByKeyboard",i),Ie=()=>w(bn,"$positionExact$",i),nt=()=>w($i,"$language$",i),Me=()=>w(xa,"$previewTrackActive$",i),be=()=>w(ki,"$icon3DVideoVisible",i),W=()=>w(ot,"$chromecastDeviceName$",i),Ce=()=>w(xo,"$currentSubtitleCaptions$",i),ke=()=>w(di,"$position$",i),Qe=()=>w(Ti,"$duration$",i),Te=()=>w(_i,"$isLive$",i),we=()=>w(lt,"$isPlaying$",i),He=()=>w($r,"$contextMenuPosition$",i),at=()=>w(zo,"$showHotKeyMap",i),pt=()=>w(qi,"$debugPanelVisible",i),Pt=()=>w(Or,"$userActionsDisabled$",i),dt=h(e,"videoContainer",15),ai=h(e,"adsSlotId",3,void 0),Tt=h(e,"adsParams",3,void 0),Ot=h(e,"adsAutoplayParam",3,void 0),Nt=h(e,"duration",3,void 0),qt=h(e,"logoTargetUrl",3,""),Le=h(e,"showNextPrevButtons",3,!1),Y=h(e,"nextButtonActive",3,!1),Oe=h(e,"prevButtonActive",3,!1),$e=h(e,"endScreenVideoTitle",3,void 0),Ne=h(e,"endScreenVideoThumb",3,void 0),vt=h(e,"isOneVideoPlaylist",3,!1),At=h(e,"shadowRootContainer",3,void 0),Se=h(e,"outerContainerRef",3,void 0),je=h(e,"playerStarted",3,!1),Ue=h(e,"fullScreenTarget",3,void 0),xe=h(e,"showMiniTimer",3,!1),Bt=h(e,"showEndScreen",3,!0),Et=h(e,"keyboardControls",15),Gt=e.store.getLogger().createComponentLog("Root component"),$i=e.store.interfaceLanguage$,hi=e.store.ui.isMinimalView$,Vi=e.store.state.playbackState$,io=e.store.ads.playbackState,di=e.store.state.positionWithScrubbing$,Ti=e.store.state.duration$,oo=e.store.playerPhase,Ri=e.store.ui.isFullscreen,ci=e.store.ui.isFullscreenOpenedByKeyboard,Ki=e.store.ui.controlsVisible,$t=e.store.ui.settingsMenu.visible$,We=e.store.ui.settingsMenu.openedByBtnKeyboard$,rt=e.store.ui.scrubbingInProgress,ft=e.store.ui.volumeChangingInProgress,pi=e.store.ui.contextMenu.visible$,qi=e.store.ui.debugPanelVisible,no=e.store.state.isLoaderVisible,vn=e.store.state.isEnded$,U=e.store.state.chromecastConnected$,ot=e.store.state.chromecastDeviceName$,Xt=e.store.ads.postrollPassed,_i=e.store.state.isLive$,lt=e.store.state.isPlaying$,li=e.store.state.crashed$,yi=e.store.webApi.annotationsApi,jt=e.store.webApi.pictureInPictureApi,It=e.store.state.currentSubtitle$,xo=e.store.state.currentSubtitleCaptions$,Fo=e.store.ui.playerSize,gn=e.store.ads.playbackState,hn=e.store.ui.is3DVideo,ki=e.store.ui.icon3DVideoVisible,Ii=e.store.state.isInteractive,_n=e.store.state.isInteractiveTime$,br=e.store.state.isInteractiveExpectation$,Si=e.store.state.hasInteractiveBranches,Io=e.store.ui.touched,Uo=e.store.ui.modals.hotKeyMap.data,zo=e.store.ui.modals.hotKeyMap.show,bn=e.store.state.positionExact$,ns=e.store.ui.overlayContainer$,Ss=e.store.ui.controls.interactiveTimeIndicator,rs=e.store.state.showInteractiveTimeIndicator,$r=e.store.ui.contextMenu.position$,$n=e.store.actions.internal.setQuality,ss=e.store.actions.internal.closeSettingsMenu,er=e.store.ui.autoplayNextEnabled$,Or=e.store.ui.userActionsDisabled,Eo=e.store.ui.isControlsAvailable,as=e.store.ui.videoTitleInfo,yr=e.store.ui.doubleForwardOn$,Nn=e.store.ui.doubleForwardAvailable$,Bn=e.store.actions.internal.getVideoElement,Hn=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:tr,notifications$:Nr,graphIsOpened$:ls}=To(),Li=K(void 0),ds=K(void 0),Wo=K(void 0),ir=K(void 0),xr,or,mt;Uo.set(db());let{closeNotification:ei,notificationsToShow$:wr}=Nr,cs=f(()=>!!r().slow_video),nr=()=>ei("slow_video"),an=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),Fn=K(void 0),rr=re(!1),Br,Ko=re(!1),yn=re(),Un=re(!1),mo=K(!1),Po=K(!1),zn=K(!1),Di=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),sr=f(()=>u()&&!m()&&!(n(mo)||n(Po))&&!(n(zn)&&!p())),xn=!0,Hr=f(()=>e.uiConfig.features.thumbTimer&&!v()&&xe()&&a()==="video"&&!$()&&!s()&&!Ii&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),yt=e.uiConfig.titleShowBehaviour,ui=f(()=>!["video","thumb"].includes(a())||yt==="never"||g()?!1:yt==="fullscreen"?x():!0),Wt=f(()=>yt==="always"||a()==="thumb"?!1:!$()),ln=K(!1),wo=f(()=>(Bt()||e.showAutoplayNext&&I())&&!!$e()&&!!Ne()&&(e.showAds&&T()||!e.showAds)&&D()&&!s()&&!n(ln)&&!Si),wn=f(()=>!v()&&A().value!=="off"&&a()==="video"),So=f(()=>E()&&!($()||n(wo))&&!u()&&V()&&!q()),ar=K(!1),ro=f(()=>L()!==null),{toggle:Sr}=tr,Ao=!1,Sn=null;jt==null||jt.setContext(Ed());let us=()=>{e.autoplay&&!Ii&&e.uiConfig.controls.showOnStartupAtAutoplay&&so(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:us});let Fr=()=>{window.clearTimeout(xr),Ko.set(!1)},ps=()=>{window.clearTimeout(or),yn.set(null)},so=ve=>{Fr(),Ko.set(!0),xr=window.setTimeout(()=>Ko.set(!1),ve);let ht=ve-100;Br=window.setTimeout(()=>{z()&&rr.set(!1)},ht>0?ht:ve)},fs=(ve,ht)=>{ps(),yn.set(ht),or=window.setTimeout(()=>yn.set(null),ve)},Ur=hn.subscribe(ve=>{ki.set(ve),ve&&(window.clearTimeout(mt),mt=window.setTimeout(()=>ki.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ko=()=>xt(null,null,function*(){var ht,ri,Zt,Yo;let ve=ca();if(ve){let Ro=oc(),lo=vo();ve=Ro===lo||Ro===At()}if(ve){so(e.uiConfig.controls.hideTimeoutFullscreen);try{yield jt==null?void 0:jt.exit()}catch(Ro){Gt({message:String(Ro)})}}Ri.set(ve),e.store.getAdmanWrapper().setFullscreen(ve),x()?(ri=(ht=e.store.callbacks)==null?void 0:ht.onFullscreenEnter)==null||ri.call(ht):(Yo=(Zt=e.store.callbacks)==null?void 0:Zt.onFullscreenExit)==null||Yo.call(Zt)}),zr=ve=>{Fo.set(ve)},Wn=()=>{if(n(Li)){let{width:ve,height:ht}=n(Li).getBoundingClientRect();Fo.set({width:ve,height:ht})}};Vt(()=>{var ht;return Yu(ko),e.uiConfig.features.annotationsInside&&(yi==null||yi.init(n(Li))),jt==null||jt.assignPlayerContainer(n(Li)),e.uiConfig.disablePiPResizeHandling||jt==null||jt.setExternalEventHandlers({resize:zr,leavepictureinpicture:Wn}),e.interactiveContainer&&((ht=dt().parentElement)==null||ht.insertBefore(e.interactiveContainer,dt().nextSibling)),()=>{window.clearTimeout(xr),window.clearTimeout(Br),window.clearTimeout(or),window.clearTimeout(mt),Ur(),jt==null||jt.dispose().catch(ri=>{Gt({message:String(ri)})}),ju(ko)}});let vo=()=>{let ve=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Se()?n(Li):Se(),ht=ve.getRootNode(),ri=ht instanceof ShadowRoot?ht.host:ht,Zt=Ue()instanceof HTMLElement&&Ue().contains(ri);return e.uiConfig.allowChangingFullscreenTarget&&Ue()&&Zt?Ue():ve},go=()=>{pi.set(!1)},Xe=()=>{ss(),go()},Mt=()=>xt(null,null,function*(){if(!Hn()){Gt({message:"fullscreen disabled"});return}go(),ca()?(yield Gu(document),Gt({message:"exit fullscreen"})):(Gt({message:"request fullscreen"}),yield Qu(vo()))}),fi=ve=>{g()||(ve.preventDefault(),pi.set(!0),$r.set({left:ve.clientX,top:ve.clientY}))};function Lo(){Un.set(!0),Ii||so(e.uiConfig.controls.hideTimeoutCursor)}function Mo(ve){var Ro,lo;let{relatedTarget:ht}=ve,Zt=!!(ht&&((Ro=n(Wo))!=null&&Ro.contains(ht)))&&((lo=Et())==null?void 0:lo.isFocused()),Yo=e.uiConfig.controls.showOnStartupAtAutoplay||!!ht;!Ii&&!Zt&&Yo&&(rr.set(!0),so(e.uiConfig.controls.hideTimeoutCursor))}function Co(){Un.set(!1),O(Po,!1),O(mo,!1),Ao=!1,e.store.actions.internal.releaseCamera(),so(e.uiConfig.controls.hideTimeout),q()&&Qo()}function ho(ve){return ve?ve.offsetTop+ho(ve.offsetParent):0}function Vo(ve){return ve?ve.offsetLeft+Vo(ve.offsetParent):0}function lr(ve){if(j()&&rs){let ht=ve.currentTarget,ri=ho(ht),Zt=Vo(ht),Yo=ve.pageX-Zt,Ro=ve.pageY-ri,{left:lo,bottom:dn,right:Ps}=j(),As=Ps-lo;return Yo>=lo-As&&Ro<=dn+As}}function dr(ve){if(n(Li)){let ht=ho(ve.currentTarget),ri=te().height,Zt=ve.pageY-ht;if(lr(ve)){O(Po,!1);return}Zt<40?O(Po,!0):Zt>ri-40?O(mo,!0):(O(Po,!1),m()||O(mo,!1))}}function qo(ve){dr(ve),!n(sr)&&!q()&&so(e.uiConfig.controls.hideTimeoutCursor),ee()&&Ao&&Sn&&e.store.actions.internal.moveCameraFocusPX(Sn.clientX-ve.clientX,Sn.clientY-ve.clientY,ve.timeStamp-Sn.timeStamp),Sn=ve}let Bi=null,Kn=()=>{Bi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Fr()},e.uiConfig.doubleForwardActivationTime)},Qo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Bi&&clearTimeout(Bi),Bi=null},Cr=ve=>{ve.preventDefault(),ve.button===0&&(Ao=!0,e.store.actions.internal.holdCamera(),oe()&&Kn()),!Ao&&so(e.uiConfig.controls.hideTimeoutCursor)},Je=ve=>{ve.preventDefault(),ve.button===0&&(Sn=ve,Ao=!1,e.store.actions.internal.releaseCamera()),!q()&&so(e.uiConfig.controls.hideTimeoutCursor)},Yt=ve=>{ve.preventDefault(),xn&&(Gt({message:"double click on video"}),Mt(),so(e.uiConfig.controls.hideTimeoutCursor))},Mi=ve=>{var ht;if(ve.preventDefault(),q()){Qo();return}if(Bi&&Qo(),ae()||m()){Xe();return}if(!(D()&&!Si)){if(n(ro))return Sr();if((ht=Et())==null||ht.focus(),!je()){e.firstStart(),so(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||le()!==ug.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),so(e.uiConfig.controls.hideTimeoutCursor)}},Cn=ve=>{Xe(),Io.set(!0),so(e.uiConfig.controls.hideTimeout),ve&&fs(e.uiConfig.controls.hideHotKeyHelpers,ve)},ao=()=>{var ve,ht;v()||(Xe(),(ve=e.store.callbacks)!=null&&ve.onOpenHotKeyMap?(ht=e.store.callbacks)==null||ht.onOpenHotKeyMap(ce()):zo.update(ri=>!ri))},Wr=()=>{Io.set(!0)},Go=e.store.ui.contextMenu.openedByBtnKeyboard$,Tr=e.store.ui.contextMenu.btnRef$,Ir=K(void 0),Cs=e.store.ui.contextMenu.openedByHotKey$,Ts=e.store.ui.contextMenu.lastActiveElem$,qn=K(!1),xa=e.store.ui.previewTrackActive;Fe(()=>{ns.set(n(Fn))}),Fe(()=>{O(zn,n(Di)&&le()!==ug.PlaybackState.PLAYING,!0),n(Di)||kt(()=>O(Di,!0))}),Fe(()=>{var ht,ri;let ve=(n(zn)||D()||m()||X()||_e()||Ee()||de()||n(qn))&&!n(sr)&&(a()==="video"||a()==="ads"&&(e.uiConfig.controls.showOnStartupAtAutoplay||ze()!=="inactive"))&&!s()&&V();Ki.set(ve),!ve&&!de()&&((ht=n(Wo))!=null&&ht.contains(op()))&&((ri=Et())==null||ri.focus())}),Fe(()=>{!X()&&n(ar)&&!u()&&so(e.uiConfig.controls.hideTimeoutCursor),kt(()=>O(ar,X(),!0))}),Fe(()=>{n(ir),m(),ue(),kt(()=>dc(n(ir),m(),ue()))}),Fe(()=>{n(Ir),ae(),pe(),Z(),kt(()=>{let ve=pe()||Z();dc(n(Ir),ae(),ve)})}),Fe(()=>{let ve=B();ve&&(ae(),kt(()=>Zl(ve,ae(),Go)))}),Fe(()=>{let ve=fe();ve&&(ae(),kt(()=>mb(ve,ae(),Cs)))}),Fe(()=>{var ve;!me()&&x()&&(kt(()=>ci.set(!1)),(ve=Et())==null||ve.focus())}),Fe(()=>{g()&&Xe()});let ms=K(void 0),wa=ve=>{as.set(Zn(Bn(),{title:n(ms)},"title",ve))},Sa=(ve,ht)=>{var Ro,lo;let ri=(lo=(Ro=e.store.callbacks)==null?void 0:Ro.uiInfo)==null?void 0:lo.onUpcomingLiveViewStateChanged;if(!ri)return;let Zt=!!ht,Yo=Ge(Ge({},Zn(n(Li),{upcomingLiveScreen:ht},"upcomingLiveScreen",Zt)),ve);ri(Yo)},gt="",ni=f(()=>{var ve;return n(Wt)?gt:(ve=e.getVideoDeeplink)==null?void 0:ve.call(e,Ie())});Fe(()=>{gt=n(ni)});var Pi=nT();bt("blur",Da,Xe);var xi=se(Pi);xi.__mousemove=qo;var Er=C(xi);let Is=f(()=>a()==="ads"),Es=f(()=>n(ro)?Sr:void 0);it(xm(Er,{startDoubleForwardActivationTimer:Kn,stopDoubleForward:Qo,toggleFullscreen:Mt,hideContextMenu:Xe,showHotKeyHelpers:Cn,showKeyMap:ao,get isAds(){return n(Is)},get fakePlayButtonHandler(){return n(Es)},get hasNextVideo(){return Y()},get hasPrevVideo(){return Oe()},children:(ve,ht)=>{var ri=iT(),Zt=se(ri);ml(Zt,{get hideCursor(){return n(So)},onClick:Mi,onContextMenu:fi,onMouseDown:Cr,onMouseUp:Je,onDblClick:Yt,get videoContainer(){return dt()},set videoContainer(lo){dt(lo)}});var Yo=P(Zt,2);Ua(Yo,()=>"slot",!1,(lo,dn)=>{uo(lo,()=>({name:fl}))});var Ro=P(Yo,2);Ds(Ro,nt,lo=>{var dn=tT(),Ps=se(dn);let As=f(()=>a()!=="thumb"||s()||Ii&&e.autoplay);cl(Ps,{get hidden(){return n(As)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:fi,onClick:go});var js=P(Ps,2);{var qr=qe=>{cg(qe,{})};M(js,qe=>{Me()&&qe(qr)})}var Xs=P(js,2);lg(Xs,{});var Tn=P(Xs,2);dg(Tn,{get isVisible(){return q()}});var Ca=P(Tn,2);{var _l=qe=>{let bi=f(()=>{var Xo;return(Xo=e.live)==null?void 0:Xo.startTime});Bc(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(bi)},onUpcomingLiveViewStateChanged:Sa,onContextMenu:fi,onClick:go})};M(Ca,qe=>{a()==="LiveWaitingStart"&&qe(_l)})}var Pr=P(Ca,2);{var _d=qe=>{ul(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:go})};M(Pr,qe=>{a()==="LiveWaitingRecover"&&qe(_d)})}var bl=P(Pr,2);{var $l=qe=>{ul(qe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:go})};M(bl,qe=>{a()==="LiveWaitingRecord"&&qe($l)})}var yl=P(bl,2);{var bd=qe=>{var bi=XC();let Xo;var In=C(bi);nc(In,{get adsSlotId(){return ai()},get adsParams(){return Tt()},get adsAutoplayParam(){return Ot()},get duration(){return Nt()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(bi),N(En=>Xo=ie(bi,1,"ads-container s-8",null,Xo,En),[()=>({hidden:a()!=="ads"})]),b(qe,bi)};M(yl,qe=>{e.showAds&&je()&&qe(bd)})}var Ta=P(yl,2);{var xl=qe=>{let bi=f(()=>!Bt()&&e.showAutoplayNext&&I());bm(qe,{get title(){return $e()},get thumb(){return Ne()},get isHide(){return n(bi)},clickCloseIcon:()=>O(ln,!0)})};M(Ta,qe=>{n(wo)&&$e()&&Ne()&&qe(xl)})}var _t=P(Ta,2);{var ut=qe=>{let bi=f(()=>x()?"md":"sm"),Xo=f(()=>{var In;return(In=e.store.callbacks)==null?void 0:In.onTitleClicked});Rv(qe,{get title(){return e.title},get isHidden(){return n(Wt)},onVisibilityChanged:wa,get titleLinkHref(){return n(ni)},onMouseEnter:()=>{O(qn,!0)},onMouseLeave:()=>{O(qn,!1)},get size(){return n(bi)},get onTitleClicked(){return n(Xo)},get ref(){return n(ms)},set ref(In){O(ms,In,!0)}})};M(_t,qe=>{n(ui)&&qe(ut)})}var Oi=P(_t,2);{var jo=qe=>{let bi=f(()=>a()==="video"&&$());Oc(qe,{get isShifted(){return n(bi)}})};M(Oi,qe=>{ee()&&qe(jo)})}var Gi=P(Oi,2);{var wi=qe=>{var bi=ZC(),Xo=C(bi);ic(Xo,{}),S(bi),b(qe,bi)};M(Gi,qe=>{be()&&qe(wi)})}var Fi=P(Gi,2);{var Ia=qe=>{Nc(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return W()},onClick:Mi,onContextMenu:fi,onDblClick:Yt})};M(Fi,qe=>{Ee()&&qe(Ia)})}var wl=P(Fi,2);{var Fp=qe=>{ll(qe,{get shifted(){return $()},get captions(){return Ce()},get position(){return ke()},get playerSize(){return te()}})};M(wl,qe=>{n(wn)&&qe(Fp)})}var iu=P(wl,2);{var Up=qe=>{var bi=JC();bi.__contextmenu=fi,bi.__click=[jC,ae,pi,m,$t,Xe];var Xo=C(bi);dl(Xo,{}),S(bi),b(qe,bi)};M(iu,qe=>{s()&&qe(Up)})}var ou=P(iu,2);{var zp=qe=>{let bi=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Xo=f(()=>a()==="ads"),In=f(()=>e.canRewindLive&&Qe()!==0);Rc(qe,{get bottomHidden(){return n(bi)},get bottomNoSmooth(){return z()},get showControls(){return $()},get isAds(){return n(Xo)},get canRewindLive(){return n(In)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Le()},get nextButtonActive(){return Y()},get prevButtonActive(){return Oe()},get isOneVideoPlaylist(){return vt()},customFullscreenSupported:xn,toggleFullscreen:Mt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(ds)},set playerControlsWrapperRef(En){O(ds,En,!0)},get playerControlsRef(){return n(Wo)},set playerControlsRef(En){O(Wo,En,!0)}})};M(ou,qe=>{je()&&qe(zp)})}var nu=P(ou,2);{var Wp=qe=>{var bi=eT(),Xo=C(bi);let In=f(()=>{var En;return(En=n(Wo))==null?void 0:En.clientHeight});zc(Xo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(In)},returnFocus:()=>{var En;return(En=Et())==null?void 0:En.focus()},get ref(){return n(ir)},set ref(En){O(ir,En,!0)}}),S(bi),b(qe,bi)};M(nu,qe=>{!Ee()&&a()!=="ads"&&qe(Wp)})}var ru=P(nu,2);let Sl=f(()=>!n(Hr));ac(ru,{get isLive(){return Te()},get isHidden(){return n(Sl)},get isPlaying(){return we()},get position(){return ke()},get duration(){return Qe()}});var su=P(ru,2);Mv(su,{get data(){return yn}});var Zs=P(su,2);hm(Zs,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=Et())==null?void 0:qe.focus()},get visible(){return ae()},get playerContainerRef(){return n(Li)},get position(){return He()},get menuElementRef(){return n(Ir)},set menuElementRef(qe){O(Ir,qe,!0)}});var Ea=P(Zs,2);{var Kp=qe=>{Wc(qe,{onClose:nr,onSelectAutoQuality:()=>{$n("auto"),nr()}})};M(Ea,qe=>{n(cs)&&qe(Kp)})}var $d=P(Ea,2);{var yd=qe=>{ja(qe,{})};M($d,qe=>{n(an)&&qe(yd)})}var xd=P($d,2);{var qp=qe=>{Cm(qe,{})};M(xd,qe=>{at()&&qe(qp)})}var au=P(xd,2);{var Qp=qe=>{uc(qe,{})};M(au,qe=>{pt()&&qe(Qp)})}b(lo,dn)}),b(ve,ri)},$$slots:{default:!0}}),ve=>Et(ve),()=>Et());var Kr=P(Er,2);it(Kr,ve=>O(Fn,ve),()=>n(Fn)),S(xi),it(xi,ve=>O(Li,ve),()=>n(Li));var Hi=P(xi,2);{var Qi=ve=>{var ht=oT();b(ve,ht)};M(Hi,ve=>{Pt()&&ve(Qi)})}bt("mouseenter",xi,Lo),bt("mouseleave",xi,Co),bt("click",xi,Wr,!0),bt("focusin",xi,Mo,!0),b(t,Pi),F(),o()}tt(["mousemove","contextmenu","click"]);var $a=require("@vkontakte/videoplayer-core/es2015"),C$=require("@vkontakte/videoplayer-shared/es2015");var sT=k('<div></div> <div class="info s-k"><div class="triangles-wrapper s-k"><div></div> <div></div> <div></div></div> <p class="step-caption s-k"> </p></div>',1),aT=k("<div><!></div>"),lT={hash:"s-k",code:".double-click-area.s-k{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-k{left:0}.double-click-area.right.s-k{right:0}.semicircle.s-k{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-k{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-k{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-k{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-k,.triangles-wrapper.s-k{display:flex;justify-content:center}.triangles-wrapper.s-k{margin-bottom:10px;position:relative}.triangle.s-k{animation:s-k-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-k:nth-child(3),.triangle.right.s-k:first-child{animation-delay:0s}.triangle.left.s-k:nth-child(2),.triangle.right.s-k:nth-child(2){animation-delay:.1s}.triangle.left.s-k:first-child,.triangle.right.s-k:nth-child(3){animation-delay:.2s}@keyframes s-k-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-k{border-right:8px solid var(--white)}.triangle.right.s-k{border-left:8px solid var(--white)}.triangle.s-k:not(:last-child){margin-right:5px}.step-caption.s-k{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Ip(t,e){H(e,!0),Q(t,lT);let i=h(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(si(i())),d=p=>{p.stopPropagation(),a+=1,O(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,O(o,!1)},300)};pn(()=>{window.clearTimeout(r)});var s=aT();s.__click=d;var u=C(s);{var m=p=>{var v=sT(),$=se(v),y=P($,2),g=C(y),x=C(g),I=P(x,2),T=P(I,2);S(g);var D=P(g,2),A=C(D,!0);S(D),S(y),N(E=>{var V,q,L,z;ie($,1,`semicircle ${(V=e.side)!=null?V:""}`,"s-k"),ie(x,1,`triangle ${(q=e.side)!=null?q:""}`,"s-k"),ie(I,1,`triangle ${(L=e.side)!=null?L:""}`,"s-k"),ie(T,1,`triangle ${(z=e.side)!=null?z:""}`,"s-k"),ge(A,E)},[()=>G("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,v)};M(u,p=>{n(o)&&p(m)})}S(s),N(()=>{var p;return ie(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-k")}),b(t,s),F()}tt(["click"]);var dT=(t,e,i)=>{e(!1),i()},cT=k('<div class="overlay s-o"></div> <div class="next-video s-o"><div class="top s-o"><div class="caption s-o"> </div> <!></div> <div class="row s-o"><div class="column s-o"><div class="thumb s-o"><div></div> <!></div></div> <div class="column s-o"><div class="title s-o"> </div></div></div></div>',1),uT={hash:"s-o",code:".overlay.s-o{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-o{display:flex;flex-direction:column;left:50%;margin:0 auto;max-width:362px;min-width:320px;padding-bottom:12px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:var(--end-screen-mobile-z-index)}.top.s-o{display:flex;justify-content:space-between}.caption.s-o{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-o{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-o{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-o{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-o,.thumb-overlay.s-o{height:100%;width:100%}.thumb-overlay.s-o{position:absolute}.thumb-overlay.withOpacity.s-o{background:var(--black);opacity:.3}.title.s-o{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function fg(t,e){H(e,!0),Q(t,uT);let[i,o]=Be(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ye(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},g=()=>{e.clickCloseIcon(),$()};Vt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Re(),I=se(x);{var T=D=>{var A=cT(),E=P(se(A),2),V=C(E),q=C(V),L=C(q,!0);S(q);var z=P(q,2);Fs(z,{onClick:g}),S(V);var j=P(V,2);j.__click=[dT,u,p];var te=C(j),ee=C(te),oe=C(ee);let ae;var le=P(oe,2);{var ce=de=>{pc(de,{get isRunning(){return a()},onTimerEnded:y})};M(le,de=>{r()&&de(ce)})}S(ee),S(te);var X=P(te,2),_e=C(X),Ee=C(_e,!0);S(_e),S(X),S(j),S(E),N((de,ze)=>{ge(L,de),Ke(ee,`background-image: url('${e.thumb}')`),ae=ie(oe,1,"thumb-overlay s-o",null,ae,ze),ge(Ee,e.title)},[()=>r()?G("end_screen_next_video"):G("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(D,A)};M(I,D=>{e.isHide||D(T)})}b(t,x),F(),o()}tt(["click"]);var $$=require("@vkontakte/videoplayer-core/es2015");var y$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Vt(()=>{$$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),pn(()=>{i==null||i(),clearTimeout(o)})};var x$=require("@vkontakte/videoplayer-core/es2015");var Ep=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}};var w$=require("@vkontakte/videoplayer-core/es2015"),S$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),m=()=>w$.clientChecker.device.isIOS&&he(l)===x$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=$=>{if(p(),!m()||!$)return;let y=u();if(!y)return;let g=new Ep(y),x=he(d),I=he(a),T=he(r);for(let E of x)I.some(q=>q.value===E.id)&&g.attach(E,T.value===E.id);let D=d.subscribe(E=>{for(let V of E)g.updateSrc(V)}),A=()=>{let E=g.getCurrentShowingId();o(he(a).find(V=>V.value===E))};y.textTracks.addEventListener("change",A),s=()=>{D(),g.detachAll(),y.textTracks.removeEventListener("change",A)}};Vt(()=>i.subscribe(v)),pn(p)};var pT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},fT=k("<!> <!>",1),mT=k("<div><!></div>"),vT=k('<div class="spherical-video-icon s-9"><!></div>'),gT=k("<div><!></div>"),hT=k('<div class="settings-mobile s-9"><!></div>'),_T=k("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),bT=k('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),$T={hash:"s-9",code:".player-wrapper.s-9{height:100%;position:absolute;width:100%}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-9{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function mg(t,e){var xn,Hr;H(e,!0),Q(t,$T);let[i,o]=Be(),r=()=>w(Ne,"$playerPhase",i),a=()=>w($i,"$isLoaderVisible",i),l=()=>w(Y,"$adPlaybackState",i),d=()=>w(Ki,"$crashed",i),s=()=>w(Ss,"$notificationsToShow$",i),u=()=>w(Le,"$playbackState$",i),m=()=>w(Ot,"$graphIsOpened$",i),p=()=>w(je,"$interactiveHideMobileControls",i),v=()=>w(hi,"$isEnded$",i),$=()=>w(_i,"$isInteractiveExpectation$",i),y=()=>w(At,"$controlsVisible",i),g=()=>w(yi,"$touched",i),x=()=>w(It,"$autoplayNextEnabled$",i),I=()=>w(di,"$postrollPassed",i),T=()=>w($n,"$bottomNoSmooth",i),D=()=>w(rt,"$videoSize",i),A=()=>w(no,"$playerSize",i),E=()=>w(vt,"$isFullscreen",i),V=()=>w(Oe,"$position$",i),q=()=>w($e,"$duration$",i),L=()=>w(xo,"$loadedMetadata",i),z=()=>w(Ue,"$settingsMenuVisible",i),j=()=>w(Bt,"$scrubbingInProgress",i),te=()=>w(Et,"$volumeChangingInProgress",i),ee=()=>w(Vi,"$chromecastConnected$",i),oe=()=>w(Se,"$isControlsAvailable",i),ae=()=>w(Xt,"$isInteractiveTime$",i),le=()=>w(Ri,"$isActiveLive",i),ce=()=>w(xe,"$settingsMenuOpenedByKeyboard",i),X=()=>w(qt,"$language$",i),_e=()=>w(li,"$disabledControls$",i),Ee=()=>w(vn,"$is3DVideo",i),de=()=>w(U,"$icon3DVideoVisible",i),ze=()=>w(io,"$chromecastDeviceName$",i),ue=()=>w(ft,"$currentSubtitle$",i),pe=()=>w(pi,"$currentSubtitleCaptions$",i),Z=()=>w(qi,"$realDuration$",i),B=()=>w(Ti,"$isLive$",i),fe=()=>w(oo,"$isPlaying$",i),me=()=>w(Gt,"$debugPanelVisible",i),Ie=h(e,"videoContainer",15),nt=h(e,"adsSlotId",3,void 0),Me=h(e,"adsParams",3,void 0),be=h(e,"adsAutoplayParam",3,void 0),W=h(e,"duration",3,void 0),Ce=h(e,"logoTargetUrl",3,""),ke=h(e,"showNextPrevButtons",3,!1),Qe=h(e,"nextButtonActive",3,!1),Te=h(e,"prevButtonActive",3,!1),we=h(e,"endScreenVideoTitle",3,void 0),He=h(e,"endScreenVideoThumb",3,void 0),at=h(e,"isOneVideoPlaylist",3,!1),pt=h(e,"showMiniTimer",3,!1),Pt=h(e,"fullScreenTarget",3,void 0),dt=h(e,"playerStarted",3,!1),ai=h(e,"showEndScreen",3,!0),{notifications$:Tt,graphIsOpened$:Ot}=To(),Nt=e.store.getLogger().createComponentLog("Root component"),qt=e.store.interfaceLanguage$,Le=e.store.state.playbackState$,Y=e.store.ads.playbackState,Oe=e.store.state.positionWithScrubbing$,$e=e.store.state.duration$,Ne=e.store.playerPhase,vt=e.store.ui.isFullscreen,At=e.store.ui.controlsVisible,Se=e.store.ui.isControlsAvailable,je=e.store.ui.interactiveHideMobileControls,Ue=e.store.ui.settingsMenu.visible$,xe=e.store.ui.settingsMenu.openedByBtnKeyboard$,Bt=e.store.ui.scrubbingInProgress,Et=e.store.ui.volumeChangingInProgress,Gt=e.store.ui.debugPanelVisible,$i=e.store.state.isLoaderVisible,hi=e.store.state.isEnded$,Vi=e.store.state.chromecastConnected$,io=e.store.state.chromecastDeviceName$,di=e.store.ads.postrollPassed,Ti=e.store.state.isLive$,oo=e.store.state.isPlaying$,Ri=e.store.state.isActiveLive$,ci=e.store.state.isRewindableLive$,Ki=e.store.state.crashed$,$t=e.store.webApi.annotationsApi,We=e.store.webApi.pictureInPictureApi,rt=e.store.state.videoSize$,ft=e.store.state.currentSubtitle$,pi=e.store.state.currentSubtitleCaptions$,qi=e.store.state.duration$,no=e.store.ui.playerSize,vn=e.store.ui.is3DVideo,U=e.store.ui.icon3DVideoVisible,ot=e.store.state.isInteractive,Xt=e.store.state.isInteractiveTime$,_i=e.store.state.isInteractiveExpectation$,lt=e.store.state.hasInteractiveBranches,li=e.store.ui.controls.disabledControls$,yi=e.store.ui.touched,jt=e.store.ui.overlayContainer$,It=e.store.ui.autoplayNextEnabled$,xo=e.store.state.loadedMetadata$,Fo=e.store.actions.internal.closeSettingsMenu,gn=(xn=e.store.callbacks)==null?void 0:xn.onDisabledPlayPrevChapterClick,hn=(Hr=e.store.callbacks)==null?void 0:Hr.onDisabledSeekToInteractiveClick,ki=e.store.actions.internal.setQuality,Ii=K(void 0),_n=K(void 0),br=K(void 0),Si=K(void 0),Io,Uo,zo=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),bn=K(void 0),{closeNotification:ns,notificationsToShow$:Ss}=Tt,rs=f(()=>!!s().slow_video),$r=()=>ns("slow_video"),$n=re(!1),ss,er=K(!1),Or=f(()=>u()!==$a.PlaybackState.PLAYING),Eo=K(!1),as=f(()=>m()||p()||!n(er)&&(v()&&!!lt||n(Or)&&$())),yr=K(!0),Nn=f(()=>e.uiConfig.features.thumbTimer&&pt()&&r()==="video"&&!y()&&!d()&&!ot&&(e.uiConfig.hideThumbTimerAfterTouch&&!g()||!e.uiConfig.hideThumbTimerAfterTouch)),Bn=K(!1),Hn=f(()=>(ai()||e.showAutoplayNext&&x())&&!!we()&&!!He()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(Bn)),tr=K(!1);We==null||We.setContext(Ed());let Nr=yt=>{yt&&!ot&&e.uiConfig.controls.showOnStartupAtAutoplay&&Li(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Nr});let ls=()=>{clearTimeout(Io),O(er,!1),p()&&je.set(!1)},Li=yt=>{ls(),O(er,!0),Io=setTimeout(()=>O(er,!1),yt);let ui=yt-100;ss=setTimeout(()=>{T()&&$n.set(!1)},ui>0?ui:yt)},ds=vn.subscribe(yt=>{U.set(yt),yt&&(clearTimeout(Uo),Uo=setTimeout(()=>U.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Wo=(...ui)=>xt(null,[...ui],function*(yt=ca()){var Wt,ln,wo,wn,So,ar;if(yt&&!$a.clientChecker.device.isIOS){let ro=oc(),Sr=wr(),Ao=$a.clientChecker.browser.isSamsungBrowser&&ro===e.shadowRootContainer;yt=ro===Sr||Ao}if(yt){Li(e.uiConfig.controls.hideTimeoutFullscreen);try{yield We==null?void 0:We.exit()}catch(ro){Nt({message:String(ro)})}try{let ro=(Wt=D())!=null&&Wt.width&&((ln=D())!=null&&ln.height)?D():A();yield lb(ro)}catch(ro){Nt({message:String(ro)})}}vt.set(yt),e.store.getAdmanWrapper().setFullscreen(yt),E()?(wn=(wo=e.store.callbacks)==null?void 0:wo.onFullscreenEnter)==null||wn.call(wo):(ar=(So=e.store.callbacks)==null?void 0:So.onFullscreenExit)==null||ar.call(So)}),ir=yt=>{no.set(yt)},xr=()=>{if(n(Ii)){let{width:yt,height:ui}=n(Ii).getBoundingClientRect();no.set({width:yt,height:ui})}};Vt(()=>{var yt;return Yu(Wo),e.uiConfig.features.annotationsInside&&($t==null||$t.init(n(Ii))),We==null||We.assignPlayerContainer(n(Ii)),e.uiConfig.disablePiPResizeHandling||We==null||We.setExternalEventHandlers({resize:ir,leavepictureinpicture:xr}),O(yr,!$a.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((yt=Ie().parentElement)==null||yt.insertBefore(e.interactiveContainer,Ie().nextSibling)),()=>{clearTimeout(Io),clearTimeout(ss),clearTimeout(Uo),ds(),We==null||We.dispose().catch(ui=>{Nt({message:String(ui)})}),ju(Wo)}});let or=K(!0),mt=K(!0),ei=yt=>{let ui=V()+(yt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ui<0?(O(or,!1),ui=0):ui>=q()&&(O(mt,!1),ui=q()),O(Eo,!0),e.seekTime(ui)},wr=()=>$a.clientChecker.device.isIOS?n(Ii):!e.uiConfig.allowChangingFullscreenTarget||!Pt()?e.outerContainerRef:Pt().contains(e.outerContainerRef)?Pt():e.outerContainerRef,cs=()=>xt(null,null,function*(){try{if(ca())yield Gu(document),Nt({message:"exit fullscreen"});else{if(Nt({message:"request fullscreen"}),$a.clientChecker.device.isIOS&&!L())return;yield Qu(wr())}}catch(yt){Nt({message:String(yt)})}}),nr=()=>{Fo()},an=yt=>{if(yt.preventDefault(),z()){nr();return}if(!dt()){e.firstStart(),Li(e.uiConfig.controls.hideTimeoutCursor);return}O(Eo,!1),y()?ls():Li(e.uiConfig.controls.hideTimeoutMobile)},Fn=()=>{yi.set(!0)},rr=()=>{ot||($n.set(!0),Li(e.uiConfig.controls.hideTimeoutCursor))},Br=yt=>{gn&&(gn(yt),Li(e.uiConfig.controls.hideTimeoutMobile))},Ko=yt=>{hn&&(hn(yt),Li(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{jt.set(n(bn))}),Fe(()=>{At.set((n(Or)||z()||j()||te()||ee()||!n(Hn)&&(v()||n(er)&&!n(Eo)))&&!n(as)&&r()==="video"&&!d()&&oe())}),Fe(()=>{!j()&&n(tr)&&!ae()&&Li(e.uiConfig.controls.hideTimeoutMobile),O(tr,j(),!0)}),Fe(()=>{O(or,V()>0),O(mt,!le()&&V()<q(),!0)}),Fe(()=>{dc(n(Si),z(),ce(),!0)});let yn=G("aria_label_video_player");y$({fullScreenChangeHandler:Wo,getFullscreenTarget:wr}),S$({store:e.store,getFullscreenTarget:wr});let Un=(yt,ui)=>{var wn,So;let Wt=(So=(wn=e.store.callbacks)==null?void 0:wn.uiInfo)==null?void 0:So.onUpcomingLiveViewStateChanged;if(!Wt)return;let ln=!!ui,wo=Ge(Ge({},Zn(n(Ii),{upcomingLiveScreen:ui},"upcomingLiveScreen",ln)),yt);Wt(wo)};var mo=bT();bt("blur",Da,nr);var Po=C(mo);ml(Po,{onClick:an,get videoContainer(){return Ie()},set videoContainer(yt){Ie(yt)}});var zn=P(Po,2);Ua(zn,()=>"slot",!1,(yt,ui)=>{uo(yt,()=>({name:fl}))});var Di=P(zn,2);Ds(Di,X,yt=>{var ui=_T(),Wt=se(ui);let ln=f(()=>r()!=="thumb"||d()||ot&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);cl(Wt,{get hidden(){return n(ln)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var wo=P(Wt,2);{var wn=Je=>{var Yt=fT(),Mi=se(Yt);{var Cn=Go=>{let Tr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ip(Go,{side:"left",get seekStep(){return n(Tr)},handleSingleFirstClick:an,handleSecondClick:()=>ei("backward")})};M(Mi,Go=>{n(or)&&Go(Cn)})}var ao=P(Mi,2);{var Wr=Go=>{let Tr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ip(Go,{side:"right",get seekStep(){return n(Tr)},handleSingleFirstClick:an,handleSecondClick:()=>ei("forward")})};M(ao,Go=>{n(mt)&&Go(Wr)})}b(Je,Yt)};M(wo,Je=>{e.canRewindLive&&ci&&!_e().has("TIMELINE")&&Je(wn)})}var So=P(wo,2);{var ar=Je=>{let Yt=f(()=>{var Mi;return(Mi=e.live)==null?void 0:Mi.startTime});Bc(Je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Yt)},onUpcomingLiveViewStateChanged:Un})};M(So,Je=>{r()==="LiveWaitingStart"&&Je(ar)})}var ro=P(So,2);{var Sr=Je=>{ul(Je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(ro,Je=>{r()==="LiveWaitingRecover"&&Je(Sr)})}var Ao=P(ro,2);{var Sn=Je=>{ul(Je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(Ao,Je=>{r()==="LiveWaitingRecord"&&Je(Sn)})}var us=P(Ao,2);{var Fr=Je=>{var Yt=mT();let Mi;var Cn=C(Yt);nc(Cn,{get adsSlotId(){return nt()},get adsParams(){return Me()},get adsAutoplayParam(){return be()},get duration(){return W()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(Yt),N(ao=>Mi=ie(Yt,1,"ads-container s-9",null,Mi,ao),[()=>({hidden:r()!=="ads"})]),b(Je,Yt)};M(us,Je=>{e.showAds&&dt()&&Je(Fr)})}var ps=P(us,2);{var so=Je=>{let Yt=f(()=>!ai()&&e.showAutoplayNext&&x());fg(Je,{get title(){return we()},get thumb(){return He()},get isHide(){return n(Yt)},clickCloseIcon:()=>O(Bn,!0)})};M(ps,Je=>{n(Hn)&&we()&&He()&&Je(so)})}var fs=P(ps,2);{var Ur=Je=>{Oc(Je,{})};M(fs,Je=>{Ee()&&Je(Ur)})}var ko=P(fs,2);{var zr=Je=>{var Yt=vT(),Mi=C(Yt);ic(Mi,{}),S(Yt),b(Je,Yt)};M(ko,Je=>{de()&&Je(zr)})}var Wn=P(ko,2);{var vo=Je=>{Nc(Je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ze()},onClick:an})};M(Wn,Je=>{ee()&&Je(vo)})}var go=P(Wn,2);{var Xe=Je=>{ll(Je,{get shifted(){return y()},get captions(){return pe()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};M(go,Je=>{ue().value!=="off"&&Je(Xe)})}var Mt=P(go,2);{var fi=Je=>{var Yt=gT();Yt.__click=[pT,z,Ue,nr];var Mi=C(Yt);dl(Mi,{}),S(Yt),b(Je,Yt)};M(Mt,Je=>{d()&&Je(fi)})}var Lo=P(Mt,2);{var Mo=Je=>{let Yt=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Mi=f(()=>r()==="ads"),Cn=f(()=>e.canRewindLive&&Z()!==0);Rc(Je,{get bottomHidden(){return n(Yt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Mi)},get canRewindLive(){return n(Cn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ce()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ke()},get nextButtonActive(){return Qe()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return at()},get customFullscreenSupported(){return n(yr)},get endScreenShown(){return n(Hn)},toggleFullscreen:cs,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Br,onDisabledSeekToInteractiveClick:Ko,get playerControlsWrapperRef(){return n(_n)},set playerControlsWrapperRef(ao){O(_n,ao,!0)},get playerControlsRef(){return n(br)},set playerControlsRef(ao){O(br,ao,!0)}})};M(Lo,Je=>{dt()&&Je(Mo)})}var Co=P(Lo,2);{var ho=Je=>{var Yt=hT(),Mi=C(Yt);zc(Mi,{get supportLink(){return e.supportLink},get returnFocus(){return C$.noop},get ref(){return n(Si)},set ref(Cn){O(Si,Cn,!0)}}),S(Yt),b(Je,Yt)};M(Co,Je=>{z()&&Je(ho)})}var Vo=P(Co,2);let lr=f(()=>!n(Nn));ac(Vo,{get isLive(){return B()},get isHidden(){return n(lr)},get isPlaying(){return fe()},get position(){return V()},get duration(){return q()}});var dr=P(Vo,2);{var qo=Je=>{ja(Je,{})};M(dr,Je=>{n(zo)&&Je(qo)})}var Bi=P(dr,2);{var Kn=Je=>{uc(Je,{})};M(Bi,Je=>{me()&&Je(Kn)})}var Qo=P(Bi,2);{var Cr=Je=>{Wc(Je,{onClose:$r,onSelectAutoQuality:()=>{ki("auto"),$r()}})};M(Qo,Je=>{n(rs)&&Je(Cr)})}b(yt,ui)});var sr=P(Di,2);it(sr,yt=>O(bn,yt),()=>n(bn)),S(mo),it(mo,yt=>O(Ii,yt),()=>n(Ii)),N(()=>De(mo,"aria-label",yn)),bt("click",mo,Fn,!0),bt("focusin",mo,rr,!0),b(t,mo),F(),o()}tt(["click"]);var T$=require("@vkontakte/videoplayer-shared/es2015");var yT=k('<div class="time-container s-7"><!></div>'),xT=k('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),wT={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-7{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-7{opacity:1}.time-container.s-7{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function vg(t,e){H(e,!0),Q(t,wT);let[i,o]=Be(),r=()=>w(ae,"$scrubbingInProgress",i),a=()=>w(ee,"$playerSize",i),l=()=>w(V,"$isPlaying$",i),d=()=>w(A,"$duration$",i),s=()=>w(z,"$positionWithScrubbing$",i),u=()=>w(T,"$playerPhase",i),m=()=>w(D,"$crashed$",i),p=()=>w(q,"$currentSubtitle$",i),v=()=>w(L,"$currentSubtitleCaptions$",i),$=()=>w(E,"$positionExact$",i),y=()=>w(j,"$isLive$",i),g=()=>w(te,"$isRewindableLive$",i),x=h(e,"outsideDuration",3,0),I=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:D,duration$:A,positionExact$:E,isPlaying$:V,currentSubtitle$:q,currentSubtitleCaptions$:L,positionWithScrubbing$:z,isLive$:j,isRewindableLive$:te},ui:{playerSize:ee,controls:oe,scrubbingInProgress:ae},actions:{internal:{getVideoElement:le}}}=ye(),ce=8,X=K(!1),_e=si({}),Ee=K(!1),de=f(()=>!r()&&!n(Ee)),ze=()=>{O(X,!0)},ue=()=>{O(X,!1)},pe=(0,T$.debounceFn)(ad,260);Fe(()=>{a(),pe(le(),oe,_e,n(X))});let Z=f(()=>l()?sn(d()-s()):sn(isFinite(d())?d():x()));var B=xT(),fe=C(B);ml(fe,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(we){I(we)}});var me=P(fe,2);Ua(me,()=>"slot",!1,(we,He)=>{uo(we,()=>({name:fl}))});var Ie=P(me,2);let nt=f(()=>u()!=="thumb"||m());cl(Ie,{get hidden(){return n(nt)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Me=P(Ie,2);{var be=we=>{ll(we,{shifted:!1,get captions(){return v()},get position(){return $()},get playerSize(){return a()}})};M(Me,we=>{p().value!=="off"&&n(de)&&we(be)})}var W=P(Me,2);{var Ce=we=>{var He=yT(),at=C(He);sc(at,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(Z)}}),S(He),b(we,He)};M(W,we=>{n(de)&&we(Ce)})}var ke=P(W,2);let Qe;var Te=C(ke);rl(Te,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return g()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return _e.timeline},set ref(we){_e.timeline=we}}),S(ke),S(B),N(we=>Qe=ie(ke,1,"timeline s-7",null,Qe,we),[()=>({visible:n(X)})]),bt("mouseenter",B,ze),bt("mouseleave",B,ue),bt("mouseenter",ke,()=>O(Ee,!0)),bt("mouseleave",ke,()=>O(Ee,!1)),b(t,B),F(),o()}var ST=k("<div><!></div>"),CT={hash:"s-2",code:'.vk-vp-root.s-2{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--controls-desktop-padding-horizontal-minimal-view:8px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-horizontal) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-2{overflow:visible}.vk-vp-root.s-2 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-2 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-2 p{margin:0}.vk-vp-root.s-2 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-2 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-2 :focus,.vk-vp-root.s-2 :focus-visible{outline:none}.vk-vp-root.s-2 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-2 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-2 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-2 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-2 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-2 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-2 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function gg(t,e){H(e,!0),Q(t,CT);let[i,o]=Be(),r=()=>w(dt,"$isLive$",i),a=()=>w($t,"$availableSubtitlesList$",i),l=()=>w(We,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),s=h(e,"store",7),u=h(e,"microStoresRoot",7),m=h(e,"videoConfig",7),p=h(e,"uiConfig",7),v=h(e,"title",7),$=h(e,"thumbUrl",7),y=h(e,"interactiveContainer",7),g=h(e,"interactiveController",7),x=h(e,"subtitles",7),I=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),D=h(e,"preload",7),A=h(e,"autoplay",7),E=h(e,"volume",7,void 0),V=h(e,"muted",7,void 0),q=h(e,"fromTime",7),L=h(e,"canRewindLive",7),z=h(e,"showAds",7),j=h(e,"adsSlotId",7,void 0),te=h(e,"adsParams",7,void 0),ee=h(e,"adsAutoplayParam",7,void 0),oe=h(e,"duration",7,void 0),ae=h(e,"logoClickable",7),le=h(e,"logoHidden",7),ce=h(e,"isMobile",7),X=h(e,"showNextPrevButtons",7,!1),_e=h(e,"nextButtonActive",7,!1),Ee=h(e,"prevButtonActive",7,!1),de=h(e,"endScreenVideoTitle",7,void 0),ze=h(e,"endScreenVideoThumb",7,void 0),ue=h(e,"isOneVideoPlaylist",7,!1),pe=h(e,"supportLink",7),Z=h(e,"shadowRootContainer",7),B=h(e,"outerContainerRef",7),fe=h(e,"fullScreenTarget",7,void 0),me=h(e,"failoverHosts",7,void 0),Ie=h(e,"showMiniTimer",7,!1),nt=h(e,"saveRate",7),Me=h(e,"seekToInteractive",7,vl.noop),be=h(e,"playPrevChapter",7,vl.noop),W=h(e,"volumeMultiplier",7),Ce=h(e,"showAutoplayNext",7),ke=h(e,"showEndScreen",7,!0),Qe=h(e,"keyboardControls",15,void 0),{subscribers:Te,stores:we}=u();__(p());let He=Rt(),at=p().logoLink,pt=s().ui.debugPanelVisible,Pt=s().ui.playerSize,dt=s().state.isLive$,Tt=s().state.isInteractive&&pd.clientChecker.device.isAndroid,Ot=K(void 0),Nt=null,qt=K(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),P_(s(),we),Fe(()=>{var U,ot;s().ui.isMobile.set(ce()),(ot=(U=m().callbacks)==null?void 0:U.onDomReady)==null||ot.call(U)});let Le=(U=!1)=>{O(qt,!0),U?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},Y=()=>{if(He.features.qualityDetailsSubMenuEnabled){let U=Z_(s().videoId);if(U)switch(U.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,U.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,U.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(U.quality);break}}else{J_(s().videoId),em()&&s().actions.internal.setTrafficSavingEnabled(!0);let ot=Xf(s().videoId);ot&&s().actions.internal.setQuality(ot)}};function Oe(U){var li,yi,jt;let ot=d()||U;ot&&s().initVideo({container:n(Ot),sources:ot,failoverHosts:me(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:W()});let Xt=vl.safeStorage.get(jd)==="true";pt.set(Xt),q()>0&&s().actions.external.seekTime(q());let _i=ce()?He.volumeDefault:(yi=(li=E())!=null?li:Uu())!=null?yi:He.volumeDefault,lt=(jt=V())!=null?jt:q_();if(s().actions.external.setVolume(_i),s().actions.external.setMuted(lt),s().getAdmanWrapper().setInitialVolume(lt?0:_i),Y(),He.features.saveRate&&nt()){let It=Y_();It&&!r()&&s().actions.internal.setPlaybackRate(It)}if(Ce()){let It=X_();It&&s().actions.internal.setAutoplayNextEnabled(It)}s().ui.isAutoplay.set(A()),A()&&Le(),D()&&He.features.preload&&s().actions.internal.preload()}let $e=U=>{if(window.ResizeObserver){let ot,Xt;Nt=new ResizeObserver((0,vl.throttleFn)(_i=>{let lt=_i[0];if(lt.contentBoxSize){let li=Array.isArray(lt.contentBoxSize)?lt.contentBoxSize[0]:lt.contentBoxSize;ot=li.inlineSize,Xt=li.blockSize}else lt.contentRect&&(ot=lt.contentRect.width,Xt=lt.contentRect.height);Pt.set({width:ot,height:Xt})},300)),Nt.observe(U)}U.clientWidth&&U.clientHeight&&Pt.set({width:U.clientWidth,height:U.clientHeight})},Ne=()=>{document.hidden&&s().actions.external.stop()};Vt(()=>{var Xt,_i,lt,li;Tt&&document.addEventListener("visibilitychange",Ne),He.debugLog&&s().actions.internal.startLogging(),$e(n(Ot));let U=Te.map(yi=>yi.init({store:s(),microStores:we,config:m(),interactiveController:g(),uiConfig:p()})),ot=()=>{Tt&&document.removeEventListener("visibilitychange",Ne),Nt==null||Nt.disconnect(),U.forEach(yi=>yi.unsubscribe()),s().destroy()};return((Xt=T())==null?void 0:Xt.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),ot):((_i=T())==null?void 0:_i.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),ot):(((lt=T())==null?void 0:lt.status)==="finished"||((li=T())==null?void 0:li.status)==="postlive")&&!(d()&&(0,pd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),ot):(Oe(),ot)});function vt(){n(qt)?s().actions.external.play():Le(!0)}function At(){s().actions.external.pause()}function Se(U){s().actions.external.setMuted(U)}function je(){s().actions.external.toggleSubtitle()}function Ue(U,ot){s().actions.external.changeSubtitle(U,ot)}function xe(U){s().actions.external.changeAudioStream(U)}function Bt(){var U;(U=s().webApi.slotsApi)!=null&&U.haveSlots()&&s().actions.external.hideControls()}function Et(){var U;(U=s().webApi.slotsApi)!=null&&U.haveSlots()&&s().actions.external.showControls()}function Gt(U){ce()||U>=0&&U<=1&&s().actions.external.setVolume(U)}function $i(U){s().actions.internal.seekTime(U,I$.SeekAction.UNKNOWN)}function hi(U){s().actions.external.seekEpisodeStartTime(U)}function Vi(){s().actions.external.returnFocusToEpisodes()}function io(U){s().actions.external.setPlaybackRate(U)}function di(U){s().actions.external.setAutoQualityLimits(U)}function Ti(){s().actions.external.setQuality("auto")}function oo(U){s().actions.external.setTrafficSavingEnabled(U)}function Ri(U){s().actions.external.setHighQualityEnabled(U)}let ci=pp(He.view),Ki=m().playerView==="preview",$t=s().state.availableSubtitlesList$;if(He.features.initSubtitles){let U=!1;Fe(()=>{var ot;if(!U&&a().length){U=!0;let Xt;if(He.features.userVideoPrefs&&s().videoId){let lt=qu(He.userSalt,String(s().videoId));lt!=null&&lt.subtitleTrackId&&(Xt=a().find(li=>li.value===lt.subtitleTrackId))}let _i=(ot=I())!=null?ot:im();_i&&(Xt=a().find(lt=>lt.language===_i)),s().actions.internal.setSubtitle(Xt)}})}let We=s().ui.isPreviewTrackHorizontallyAligned;var rt=ST();let ft;var pi=C(rt);{var qi=U=>{mg(U,{get store(){return s()},get uiConfig(){return He},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return L()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return te()},get adsAutoplayParam(){return ee()},get duration(){return oe()},get logoClickable(){return ae()},get logoHidden(){return le()},get logoTargetUrl(){return at},get nextButtonActive(){return _e()},get prevButtonActive(){return Ee()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return ze()},get isOneVideoPlaylist(){return ue()},get supportLink(){return pe()},get shadowRootContainer(){return Z()},get outerContainerRef(){return B()},get fullScreenTarget(){return fe()},get showMiniTimer(){return Ie()},get playerStarted(){return n(qt)},get seekToInteractive(){return Me()},get playPrevChapter(){return be()},firstStart:Le,seekTime:$i,get showEndScreen(){return ke()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return X()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(Ot)},set videoContainer(ot){O(Ot,ot,!0)}})},no=U=>{var ot=Re(),Xt=se(ot);{var _i=li=>{vg(li,{get thumbUrl(){return $()},get outsideDuration(){return oe()},get canRewindLive(){return L()},get videoContainer(){return n(Ot)},set videoContainer(yi){O(Ot,yi,!0)}})},lt=li=>{pg(li,{get store(){return s()},get uiConfig(){return He},get title(){return v()},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return L()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return te()},get adsAutoplayParam(){return ee()},get duration(){return oe()},get logoClickable(){return ae()},get logoHidden(){return le()},get logoTargetUrl(){return at},get nextButtonActive(){return _e()},get prevButtonActive(){return Ee()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return ze()},get isOneVideoPlaylist(){return ue()},get supportLink(){return pe()},get shadowRootContainer(){return Z()},get outerContainerRef(){return B()},get fullScreenTarget(){return fe()},get showMiniTimer(){return Ie()},get playerStarted(){return n(qt)},get seekToInteractive(){return Me()},get playPrevChapter(){return be()},firstStart:Le,get showEndScreen(){return ke()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return X()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Ot)},set videoContainer(yi){O(Ot,yi,!0)},get keyboardControls(){return Qe()},set keyboardControls(yi){Qe(yi)}})};M(Xt,li=>{Ki?li(_i):li(lt,!1)})}b(U,ot)};M(pi,U=>{ce()?U(qi):U(no,!1)})}S(rt),N(U=>{ft=ie(rt,1,"vk-vp-root s-2",null,ft,U),Ke(rt,ci)},[()=>({"root--miui-browser":pd.clientChecker.device.isMobile&&pd.clientChecker.browser.isMiuiBrowser,"visible-outside":Ki,"preview-track-horizontally-alinged":l()})]),b(t,rt);var vn=F({initVideo:Oe,play:vt,pause:At,setMuted:Se,toggleSubtitle:je,changeSubtitle:Ue,changeAudioStream:xe,hideControls:Bt,showControls:Et,setVolume:Gt,seekTime:$i,seekEpisodeStartTime:hi,returnFocusToEpisodes:Vi,setPlaybackRate:io,setAutoQualityLimits:di,setAutoQuality:Ti,toggleTrafficSaving:oo,toggleHighQuality:Ri,get sources(){return d()},set sources(U){d(U)},get store(){return s()},set store(U){s(U)},get microStoresRoot(){return u()},set microStoresRoot(U){u(U)},get videoConfig(){return m()},set videoConfig(U){m(U)},get uiConfig(){return p()},set uiConfig(U){p(U)},get title(){return v()},set title(U){v(U)},get thumbUrl(){return $()},set thumbUrl(U){$(U)},get interactiveContainer(){return y()},set interactiveContainer(U){y(U)},get interactiveController(){return g()},set interactiveController(U){g(U)},get subtitles(){return x()},set subtitles(U){x(U)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(U){I(U)},get live(){return T()},set live(U){T(U)},get preload(){return D()},set preload(U){D(U)},get autoplay(){return A()},set autoplay(U){A(U)},get volume(){return E()},set volume(U){E(U)},get muted(){return V()},set muted(U){V(U)},get fromTime(){return q()},set fromTime(U){q(U)},get canRewindLive(){return L()},set canRewindLive(U){L(U)},get showAds(){return z()},set showAds(U){z(U)},get adsSlotId(){return j()},set adsSlotId(U){j(U)},get adsParams(){return te()},set adsParams(U){te(U)},get adsAutoplayParam(){return ee()},set adsAutoplayParam(U){ee(U)},get duration(){return oe()},set duration(U){oe(U)},get logoClickable(){return ae()},set logoClickable(U){ae(U)},get logoHidden(){return le()},set logoHidden(U){le(U)},get isMobile(){return ce()},set isMobile(U){ce(U)},get showNextPrevButtons(){return X()},set showNextPrevButtons(U){X(U)},get nextButtonActive(){return _e()},set nextButtonActive(U){_e(U)},get prevButtonActive(){return Ee()},set prevButtonActive(U){Ee(U)},get endScreenVideoTitle(){return de()},set endScreenVideoTitle(U){de(U)},get endScreenVideoThumb(){return ze()},set endScreenVideoThumb(U){ze(U)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(U){ue(U)},get supportLink(){return pe()},set supportLink(U){pe(U)},get shadowRootContainer(){return Z()},set shadowRootContainer(U){Z(U)},get outerContainerRef(){return B()},set outerContainerRef(U){B(U)},get fullScreenTarget(){return fe()},set fullScreenTarget(U){fe(U)},get failoverHosts(){return me()},set failoverHosts(U){me(U)},get showMiniTimer(){return Ie()},set showMiniTimer(U){Ie(U)},get saveRate(){return nt()},set saveRate(U){nt(U)},get showAutoplayNext(){return Ce()},set showAutoplayNext(U){Ce(U)},get seekToInteractive(){return Me()},set seekToInteractive(U){Me(U)},get playPrevChapter(){return be()},set playPrevChapter(U){be(U)},get volumeMultiplier(){return W()},set volumeMultiplier(U){W(U)},get showEndScreen(){return ke()},set showEndScreen(U){ke(U)},get keyboardControls(){return Qe()},set keyboardControls(U){Qe(U)}});return o(),vn}var TT=Ae('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function hg(t,e){let i=h(e,"isWhite",3,!1),o=f(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=TT();Jt(9),b(r,l)},$$slots:{default:!0}})}var IT=k('<div class="title s-3"> </div>'),ET=k('<div class="playerStub s-3"><!> <!></div>'),PT={hash:"s-3",code:".playerStub.s-3{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-3{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function _g(t,e){Q(t,PT);var i=ET(),o=C(i);{var r=d=>{var s=IT(),u=C(s,!0);S(s),N(()=>ge(u,e.title)),b(d,s)};M(o,d=>{e.title&&d(r)})}var a=P(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);hg(d,{get isWhite(){return n(s)}})};M(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),N(()=>Ke(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var AT=k('<div class="playerError s-1"><!></div>'),kT={hash:"s-1",code:".playerError.s-1{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function bg(t){Q(t,kT);var e=AT(),i=C(e);dl(i,{}),S(e),b(t,e)}var ya=require("@vkontakte/videoplayer-shared/es2015"),to=require("@vkontakte/videoplayer-shared/es2015"),tu=require("@vkontakte/videoplayer-core/es2015"),gd=require("@vkontakte/videoplayer-statistics/es2015");var Ap=require("@vkontakte/videoplayer-shared/es2015"),Pp=class{constructor(){this.subscription=new Ap.Subscription,this.logger=new Ap.Logger,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[r,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,l;let o=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};function Qc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var E$="Inner error. Unexpectedly root annotation container null reference exception",P$="Annotation with such name already exists",A$="Annotation with such name does not exist";var fd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var md=require("@vkontakte/videoplayer-shared/es2015"),LT="1",MT=100,kp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new md.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,md.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},MT);this.subscriptions.add((0,md.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new fd(E$);if(this.annotations.has(e))throw new fd(P$);i.style.zIndex=(o=i.style.zIndex)!=null?o:LT,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 fd(A$);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 r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var gl=require("@vkontakte/videoplayer-shared/es2015"),mn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,gl.assertNonNullable)(e),(0,gl.assertNonNullable)(i),(0,gl.assertNonNullable)(r),r.interactiveData&&(0,gl.assertNonNullable)(o),this.subscription=new gl.Subscription,this.subscription}};var Gc=class extends mn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=ti(Ge({},re(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Yc=class extends mn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=ti(Ge({},re(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:m}=a.ui,p=he(m),v=()=>p&&he(u);return o.add(u.subscribe($=>{if(!p)return;let y=he(l);he(s)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(s.subscribe($=>{this.state$.set(!$||v())})),o.add(l.subscribe($=>{if($===null)return;let y=he(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var jc=class extends mn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var k$=require("@vkontakte/videoplayer-shared/es2015");var $g=re(!1),Lp=null,Xc=class extends mn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=ti(Ge({},$g),{set:(i,o=!1)=>{i!==he($g)&&(this.clearTimeout(),$g.set(i),!i&&Lp&&(Lp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(p=>{he(l)&&p&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,k$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:$})=>{var y,g;if(!(!p||!($!=null&&$.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Lp===null&&(Lp=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(g=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||g.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Mp=require("@vkontakte/videoplayer-shared/es2015");var Zc=class extends mn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=ti(Ge({},re(null)),{toggle:Mp.noop});this.checkIfShouldHide=i=>Us(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>xt(this,null,function*(){if(this.checkIfShouldHide(he(l)))return;let s=he(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,v=he(u),$=he(m);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),p.remove(Wf),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),p.add(Wf),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Mp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(m=>xt(this,[m],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}}))),o}};var yg=require("@vkontakte/videoplayer-shared/es2015"),Jc=class extends mn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new yg.ValueSubject(!1),isEnabled$:new yg.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var Rp=require("@vkontakte/videoplayer-shared/es2015");var Vp=require("@vkontakte/videoplayer-shared/es2015");var L$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?VT({maxCount:t}):void 0,e!==0?RT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},VT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Vp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},RT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Vp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Vp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(ti(Ge({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var eu=class extends mn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=L$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Rp.filterChanged)(),(0,Rp.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var M$=()=>[Gc,Yc,jc,Xc,Zc,Jc,eu].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:ti(Ge({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var vd=require("@vkontakte/videoplayer-shared/es2015");var Dp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Op=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.focusLock=new Dp(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var DT=k('<div class="root s-4"><!></div>'),OT={hash:"s-4",code:".root.s-4{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function xg(t,e){H(e,!0),Q(t,OT);let i=null,o=K(null);Fe(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&O(o,s?"prev":"next",!0)}var a=Re(),l=se(a);{var d=s=>{var u=Re(),m=se(u);Ds(m,()=>n(o),p=>{var v=DT(),$=C(v);let y=f(()=>n(o)==="prev");qc($,{get duration(){return e.animationDuration},get Icon(){return _a},get reversed(){return n(y)}}),S(v),b(p,v)}),b(s,u)};M(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(t,a),F({startVideoChangedAnimation:r})}var V$=require("@vkontakte/videoplayer-shared/es2015"),wg=(0,V$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var NT=Object.defineProperty,BT=Object.defineProperties,HT=Object.getOwnPropertyDescriptors,R$=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,UT=Object.prototype.propertyIsEnumerable,Cg=(t,e,i)=>e in t?NT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,hl=(t,e)=>{for(var i in e||(e={}))FT.call(e,i)&&Cg(t,i,e[i]);if(R$)for(var i of R$(e))UT.call(e,i)&&Cg(t,i,e[i]);return t},zT=(t,e)=>BT(t,HT(e)),Qt=(t,e,i)=>Cg(t,typeof e!="symbol"?e+"":e,i),Np=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),WT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:to.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,tu.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Jn=K(void 0),Sg=si({animationDuration:0,playbackStatusShow:!1}),Bp=class extends wg{constructor(){super(),Qt(this,"svelteStubComponent"),Qt(this,"svelteRootComponent"),Qt(this,"sveltePersistentLayerComponent"),Qt(this,"svelteErrorComponent"),Qt(this,"store"),Qt(this,"microStoresRoot"),Qt(this,"statistics"),Qt(this,"_shadowRoot"),Qt(this,"playerContainer"),Qt(this,"rootContainer"),Qt(this,"stateContainer"),Qt(this,"shadowRootContainer"),Qt(this,"playerId"),Qt(this,"uiConfig"),Qt(this,"coreConfig"),Qt(this,"statisticsConfig"),Qt(this,"metaConfig"),Qt(this,"interactiveController"),Qt(this,"interactiveContainer"),Qt(this,"graphMadePause"),Qt(this,"currentPlayingVideoIndex",0),Qt(this,"needToRepeatPlaylist",!1),Qt(this,"videoConfig"),Qt(this,"pictureInPictureApi"),Qt(this,"mediaSessionApi"),Qt(this,"unsubscribePlayerPhaseSubscription"),Qt(this,"logger"),Qt(this,"log"),Qt(this,"subscription"),Qt(this,"interactiveSubscription"),Qt(this,"annotationsApi"),Qt(this,"slotsApi"),Qt(this,"focusManager"),Qt(this,"prevIsid"),Qt(this,"isInited",!1),Qt(this,"postponedInitParams",null),Qt(this,"internalsExposure",null),Qt(this,"shadowDOMCallbacksDisabled",!1),Qt(this,"fatalError$",new ya.ValueSubject(null)),Qt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:v,autoplay:$,isMobile:y,isTouch:g,refDomain:x,deviceId:I,interactiveData:T}=Qc(this.videoConfig,i),D=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new gd.OneStat(hl({movieId:E,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:g!=null?g:y,clip:V,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview"},D&&(!this.isInited||A)&&{projectId:Number(D)}),hl({refreshAuthToken:v,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(L){console.error(L),this.log({message:L.message})}}),vd.devNull.create("ui"),this.logger=new to.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new to.Subscription,this.interactiveSubscription=new to.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Xr(bg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=si({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Xr(_g,l),this.sveltePersistentLayerComponent=Xr(xg,{target:this.playerContainer,props:Sg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;Sg.animationDuration=e,Sg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),vd.devNull.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.stateContainer=document.createElement("div"),this.stateContainer.className="state-container",this.stateContainer.style.width="1px",this.stateContainer.style.height="1px",this.stateContainer.style.position="absolute",this.stateContainer.style.backgroundColor="transparent",this.stateContainer.style.left="-100000px",this.append(this.rootContainer),this.append(this.stateContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:a}=Qc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new gd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,m,p,v,$;if(!this.videoConfig)return;let{albumId:y,statPlace:g,statAuthToken:x,preload:I,autoplay:T,volume:D,muted:A,fromTime:E,canRewindLive:V,supportLink:q,showAds:L,adsSlotId:z,adsParams:j={},adsAutoplayParam:te,interfaceLanguage:ee,isCyrillicRelatedInterface:oe,logoClickable:ae,logoHidden:le,isMobile:ce,isTouch:X,isAudioDisabled:_e,isLiveCatchUpMode:Ee,fullScreenTarget:de,failoverHosts:ze,canDownload:ue,callbacks:pe,interactiveData:Z,showThumbTimer:B,additionalButtons:fe=[],additionalSettingsMenuItems:me=[],additionalContextMenuItems:Ie=[],repeat:nt,loop:Me,saveRate:be,volumeMultiplier:W,showEndScreen:Ce,showAutoplayNext:ke,mediascopePixels:Qe}=Qc(this.videoConfig,i),{sources:Te,title:we,thumbUrl:He,unitedVideoId:at,isClip:pt=!1,duration:Pt,adsParams:dt={},videoEpisodes:ai,previewThumbsData:Tt,subtitles:Ot,subtitlesForcedLanguage:Nt,live:qt,adsExternalApi:Le,adsJson:Y}=e;if(!Te&&!qt){let di=new Error("empty sources and live");this.fatalError$.next(di),(r=pe.onCrashed)==null||r.call(pe,di.message);return}let Oe=hl(hl({},j),dt),$e=this.getNextVideoInfo(),Ne={sources:Te,title:we,thumbUrl:He,subtitles:Ot,subtitlesForcedLanguage:Nt,unitedVideoId:at,isClip:pt,live:qt,albumId:y,statPlace:g,autoplay:T,muted:A,volume:D,fromTime:E,canRewindLive:V,showAds:L,adsSlotId:z,adsParams:Oe,adsAutoplayParam:te,duration:Pt,logoClickable:ae,logoHidden:le,isTouch:X!=null?X:ce,repeat:nt,loop:Me,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},vt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Ne)}`});let At=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),Se=(At==null?void 0:At.oneStat)||this.createOneStat(e,i),je=this.createThinOneStat(e,i),Ue;Qe&&(Ue=new gd.MediascopePixel({pixels:Qe})),(Se||je)&&(this.statistics=new gp(Se,je,Ue,At==null?void 0:At.statSubscription));let xe=this.uiConfig.features.apptracer.enabled?new ya.AppTracer("videoplayer",this.uiConfig.features.apptracer,{version:Ka,env:Bu},(0,ya.withoutNullable)({movieId:at,albumId:y,place:g,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:X!=null?X:ce,clip:pt})):void 0;this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue()));let Bt=!!Z,Et=[],Gt="tooltip_interactive_go_back_disabled_first";if(Bt&&this.interactiveController){let di=this.interactiveController.state.isInitialChapter$.getValue(),Ti=this.interactiveController.getHistoryState();di&&Et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Et.push("SEEK_TO_INTERACTIVE_BUTTON"),Ti.hasPrevChapter$.getValue()||(Et.push("PLAY_PREV_CHAPTER_BUTTON"),di||(Ti.isGoBackLimited$.getValue()?Gt="tooltip_interactive_go_back_disabled_limit":Gt="tooltip_interactive_go_back_disabled"))}let $i=()=>{var di;this.isInited=!1,this.prevIsid=void 0;let Ti=(o==null?void 0:o.info.isEnded$.getValue())&&((di=this.interactiveController)==null?void 0:di.state.isEndChapter$.getValue());pe.onReplayInteractiveVideo&&!Ti?pe.onReplayInteractiveVideo():this.replayInteractiveVideo()},hi=nt&&this.videoConfig.videos.length===1;this.store=zb({player:o,interfaceLanguage:ee,isCyrillicRelatedInterface:oe,videoId:at,isClip:pt,isLiveCatchUpMode:Ee,isAudioDisabled:_e,statAuthToken:x,callbacks:pe,webApi:vt,videoEpisodes:ai,previewThumbsData:Tt,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:Et,isInteractive:Bt,saveRate:be,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:$i,playPrevChapterDisabledTooltip:Gt,hasInteractiveBranches:!!(($=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:me!=null?me:[],additionalContextMenuItems:Ie!=null?Ie:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:di=>{var Ti;return(Ti=this.sveltePersistentLayerComponent)==null?void 0:Ti.startVideoChangedAnimation(di)},looped:this.uiConfig.features.useLoopSetting?Me:hi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId,appTracer:xe});let{stores:Vi}=this.microStoresRoot=M$(),io=()=>{var di,Ti,oo,Ri,ci,Ki;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onCurrentFormatChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(Vi.interactiveControlsOpacity$.subscribe(We=>{var rt;We!==null&&((rt=this==null?void 0:this.interactiveController)==null||rt.setDisabledControls(We))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onThroughputEstimationChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onTrafficSavingEnabledChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onHighQualityEnabledChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onAutoQualityEnabledChanged)==null?void 0:rt.call(pe,!!We)})),this.subscription.add(new to.Observable(We=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(rt=>We.next(rt)))}).pipe((0,to.skip)(1)).subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onCurrentPlaybackRateChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.volume$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onVolumeChange)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.muted$.subscribe(We=>{var rt,ft,pi,qi;if(We)(rt=pe==null?void 0:pe.onMute)==null||rt.call(pe);else{let no=(pi=((ft=this.store)==null?void 0:ft.state.volume$)&&he(this.store.state.volume$))!=null?pi:0;(qi=pe==null?void 0:pe.onUnmute)==null||qi.call(pe,no)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onVideoBitrateChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(We=>{var rt;let ft=(rt=this.store)==null?void 0:rt.ui.controls.disabledControls$;ft&&(We&&!ft.includes(Xd)&&ft.add(Xd),We||ft.remove(Xd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(We=>Np(this,null,function*(){var rt;if(!tu.clientChecker.browser.isSamsungBrowser||!We||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((rt=this.videoConfig)==null?void 0:rt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onVSIDChanged)==null?void 0:rt.call(pe,We)})),this.initMediaSession(),O(Jn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:we,thumbUrl:He,subtitles:Ot,subtitlesForcedLanguage:Nt,live:qt,preload:I,autoplay:T,muted:A,volume:D,fromTime:E,canRewindLive:V,supportLink:q,showAds:L,adsSlotId:z,adsParams:Oe,adsAutoplayParam:te,duration:Pt,logoClickable:ae,logoHidden:le,isMobile:X!=null?X:ce,failoverHosts:ze,fullScreenTarget:de,saveRate:be,shadowRootContainer:this.shadowRootContainer,showMiniTimer:B,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:W,showEndScreen:Ce,showAutoplayNext:ke,adsExternalApi:Le,adsJson:Y,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let $t={target:this.playerContainer,props:n(Jn)};this.svelteRootComponent=Xr(gg,$t),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(oo=(Ti=(di=this.videoConfig)==null?void 0:di.callbacks)==null?void 0:Ti.onInited)==null||oo.call(Ti)),(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&&((Ki=(ci=this.videoConfig)==null?void 0:ci.callbacks)!=null&&Ki.onDevNullLog)?vd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):vd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?tu.clientChecker.isInited$.subscribe(di=>{di&&(console.log("UI SDK async start"),io())}):io()}get useMinimalViewForDpip(){var e;let i=(e=this.uiConfig.features.dpip)!=null?e:!1;return typeof i=="boolean"?!1:!!i.minimalView}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.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(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;vp(this.pictureInPictureApi)&&this.useMinimalViewForDpip&&o.actions.external.setMinimalView(d),d?(s=a.onPiPEnter)==null||s.call(a):(u=a.onPiPExit)==null||u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls["theater-mode-button"].subscribe(d=>{var s;return(s=l.onTheaterModeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,to.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{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)}initInteractives(){return Np(this,null,function*(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?he(s):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:p,historyApi:v,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:p,historyApi:v,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=zT(hl({},I.config),{title:(m==null?void 0:m.title)||I.config.title});let T=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var D,A,E,V,q,L;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Zd)),I==="action-choice-canceled"){let j=he(this.store.state.isPlaying$)||z;if(((E=(D=this.videoConfig)==null?void 0:D.isTouch)!=null?E:(A=this.videoConfig)!=null&&A.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(L=(V=this.videoConfig)==null?void 0:(q=V.callbacks).onDisabledInteractiveClick)==null||L.call(q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(Zd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(T=>{var D,A,E;T.length&&((E=(A=(D=this.videoConfig)==null?void 0:D.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||E.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,D,A;(A=(T=this.videoConfig)==null?void 0:(D=T.callbacks).onInteractiveChapterChanged)==null||A.call(D,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,D,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(D=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(D)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,r,a,l,d,s,u,m,p,v,$,y,g,x,I,T,D,A,E,V,q;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let L=new Error("empty videos");this.fatalError$.next(L),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,L.message);return}else this.fatalError$.next(null);this.videoConfig=Qc(WT,(0,to.cloneDeepWith)(e,L=>L instanceof wg?L:void 0)),(a=this.playerId)!=null||(this.playerId=(0,to.getPlayerId)(e.playerId)),this.uiConfig=h_((l=i.ui)!=null?l:{}),this.updatePersistentLayerProps(),this.coreConfig=(d=i.core)!=null?d:{},this.statisticsConfig=(s=i.statistics)!=null?s:{},this.metaConfig=i.meta,this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new to.InternalsExposure("ui",this.playerId))),vd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((m=this.videoConfig)==null?void 0:m.showAds)],numbers:[(0,ya.now)()]}),(0,to.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),this.uiConfig.ads.paramsOverride=hl({preview:($=this.uiConfig.ads.preview)!=null?$:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(g=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?g:this.videoConfig.isMobile,(x=this.videoConfig).autoplay&&(x.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(T=this.uiConfig.ads.slot)!=null?T:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((D=this.uiConfig.showLogo)!=null?D:!this.videoConfig.logoHidden),(A=this.videoConfig).canRewindLive&&(A.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(E=this.videoConfig.supportLink)!=null?E:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((V=this.videoConfig.videos)!=null&&V[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.pictureInPictureApi=ov(this.videoConfig.pipEnabled!==!1,this.uiConfig.features.dpip)),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Pp:void 0,this.slotsApi=this.uiConfig.features.slots?new Tp(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new kp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Op(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),vp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(q=this.slotsApi)==null||q.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Jn)&&(n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).prevButtonActive=this.isPrevButtonActive(),n(Jn).endScreenVideoTitle=o.nextVideoTitle,n(Jn).endScreenVideoThumb=o.nextVideoThumb,n(Jn).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}=hl({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;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"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Jn)&&(n(Jn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).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,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Np(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Np(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=he(this.store.state.positionExact$),l=he(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,to.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Fa(e)}};var hd=require("@vkontakte/videoplayer-shared/es2015"),Hp=require("@vkontakte/videoplayer-core/es2015"),KT=()=>{window.customElements.define("vk-video-player",Bp)};
61
+ `)),b(Me,be)};M(Z,Me=>{n(V)&&Me(B)})}var fe=P(Z,2);{var me=Me=>{var be=X2(),W=C(be);{var Ce=ke=>{var Qe=Re(),Te=se(Qe);{var we=at=>{var pt=$s();N(Pt=>ge(pt,Pt),[()=>G("tooltip_episode_unfinished")]),b(at,pt)},He=at=>{var pt=$s();N(()=>ge(pt,n(te).text||"")),b(at,pt)};M(Te,at=>{y()&&n(te).completed===!1?at(we):at(He,!1)})}b(ke,Qe)};M(W,ke=>{n(te)&&ke(Ce)})}S(be),b(Me,be)};M(fe,Me=>{n(ee)&&Me(me)})}var Ie=P(fe,2);{var nt=Me=>{var be=Z2(),W=C(be,!0);S(be),N(()=>ge(W,u())),b(Me,be)};M(Ie,Me=>{y()||Me(nt)})}S(ue),N(Me=>{pe=ie(ue,1,"timeline-preview s-i",null,pe,Me),Ke(ue,`width: ${n(oe)?n(E):n(A)}px;`)},[()=>({mobile:m()})]),b(t,ue),F(),o()}var tw=k('<span class="time s-f"> </span>'),iw=k("<!> <!>",1),ow={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.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 hv(t,e){var Oe,$e,Ne,vt,At;H(e,!0),Q(t,ow);let[i,o]=Be(),r=()=>w(ee,"$interactiveEpisodes$",i),a=()=>w(V,"$duration$",i),l=()=>w(E,"$position$",i),d=()=>w(le,"$isInteractiveExpectation$",i),s=()=>w(ae,"$isInteractiveTime$",i),u=()=>w(Ee,"$previewTrackActive",i),m=()=>w(q,"$isLive$",i),p=()=>w(_e,"$disabledControls$",i),v=()=>w(z,"$isMobile",i),$=()=>w(L,"$isActiveLive$",i),y=()=>w(A,"$bufferedProgress$",i),g=h(e,"showTimeline",3,!1),x=h(e,"withEpisodes",3,!0),I=h(e,"ref",15,void 0),T=ye(),D=Rt(),A=T.state.bufferedProgress$,E=T.state.positionWithScrubbing$,V=T.state.duration$,q=T.state.isLive$,L=T.state.isActiveLive$,z=T.ui.isMobile,j=D.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,te=T.actions.internal.getPreviewThumbsData(),ee=T.state.interactiveEpisodes$,oe=T.state.isInteractive,ae=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,ce=T.actions.internal.correctSeekTimeToInteractive,X=(Oe=T.callbacks)==null?void 0:Oe.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,Ee=T.ui.previewTrackActive,de=(Ne=($e=T.callbacks)==null?void 0:$e.uiInfo)==null?void 0:Ne.onTimelineMouseEnter,ze=(At=(vt=T.callbacks)==null?void 0:vt.uiInfo)==null?void 0:At.onTimelineMouseLeave,ue=T.ui.t,pe=D.features.interactiveResponsiveUi,Z=f(()=>oe?r():j),B=f(()=>sn(a())),fe=f(()=>sn(l())),me=f(()=>l()/a()),Ie=f(()=>d()||s()),nt=K(!1),Me=K(""),be=K(0),W=K(0),Ce=K(0),ke=f(()=>({containerWidth:n(W),translateXPx:n(be),translateYPx:oe&&te?-36:-16,active:n(nt)&&g()&&!n(Ie)&&!pe&&!u(),pointer:!D.features.timelinePreview||!te||m()})),Qe=ue("aria_timeline"),Te=f(()=>ue("aria_timeline_value",{position:n(fe),duration:n(B)}));function we(Se){return!ce||!oe?Se:ce(Se*a())/a()}function He(Se,je){var Ue;(Ue=e.onSliderPointerDown)==null||Ue.call(e,je),T.actions.internal.startScrubbing(we(Se))}function at(Se){s()||T.actions.internal.progressScrubbing(we(Se))}function pt(Se){var je;T.actions.internal.completeScrubbing(we(Se)),O(nt,!1),(je=e.onSliderPointerUp)==null||je.call(e)}function Pt(Se,je,Ue){var xe;(xe=e.onSliderPointerEnter)==null||xe.call(e,Se),Tt(Se,je,Ue),O(nt,!0)}function dt(Se,je,Ue,xe){var Bt;(Bt=e.onSliderMove)==null||Bt.call(e,xe,Se),Tt(Se,je,Ue),O(nt,!0)}function ai(){var Se;O(nt,!1),(Se=e.onSliderLeave)==null||Se.call(e)}function Tt(Se,je,Ue){O(Ce,we(Se),!0),O(be,je,!0),Ue&&O(W,Ue,!0),O(Me,Ot(Se),!0)}function Ot(Se){let je=sn((m()?1-Se:Se)*a());return m()?`-${je}`:je}let Nt=f(()=>p().has("TIMELINE"));var qt=iw(),Le=se(qt);mv(Le,Jr(()=>n(ke),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Se,je)=>{var Ue=Re(),xe=se(Ue);{var Bt=Gt=>{gv(Gt,{get time(){return n(Me)},get isMobile(){return v()},get videoEpisodes(){return n(Z)},get previewThumbsData(){return te},get progress(){return n(Ce)},get duration(){return a()},get isInteractive(){return oe}})},Et=Gt=>{var $i=tw(),hi=C($i,!0);S($i),N(()=>ge(hi,n(Me))),b(Gt,$i)};M(xe,Gt=>{D.features.timelinePreview&&te&&!m()?Gt(Bt):Gt(Et,!1)})}b(Se,Ue)},$$slots:{default:!0}}));var Y=P(Le,2);Ja(Y,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return v()},get ariaLabel(){return Qe},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(me)},get handleProgress(){return n(me)},get videoEpisodes(){return n(Z)},onPointerDown:He,onHandleMove:at,onPointerMove:dt,onPointerUp:pt,onPointerEnter:Pt,onPointerLeave:ai,get onMouseEnter(){return de},get onMouseLeave(){return ze},get onDisabledClick(){return X},get isInteractive(){return oe},get disabled(){return n(Nt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:pt,get ref(){return I()},set ref(Se){I(Se)}}),b(t,qt),F(),o()}var nw={hash:"s-g",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 Vc(t,e){H(e,!0),Q(t,nw);let[i,o]=Be(),r=()=>w(s,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"duration",3,0),d=ye(),s=d.ui.isMobile,u=d.ui.t,m=f(()=>sn(l())),p=f(()=>sn(a())),v=f(()=>a()/l()),$=f(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),y=f(()=>Math.round(n(v)*100));Ja(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n($)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var rw=k("<div><!></div>"),sw=k("<div></div>"),aw={hash:"s-d",code:".timeline.s-d{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-d{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-d{padding:0}.timeline-stub.s-d{min-width:20px;width:100%}.timeline-stub.mobile.s-d{height:8px}"};function rl(t,e){H(e,!0),Q(t,aw);let[i,o]=Be(),r=()=>w(x,"$isLive$",i),a=()=>w(D,"$isMobile",i),l=()=>w(A,"$disabled",i),d=()=>w(T,"$adPosition",i),s=()=>w(I,"$adDuration",i),u=h(e,"isAds",3,!1),m=h(e,"isHidden",3,!1),p=h(e,"timelineNotAvailable",3,!1),v=h(e,"needPadding",3,!0),$=h(e,"ref",15,void 0),y=ye(),g=Rt(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,D=y.ui.isMobile,A=re(!1),E=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var V=Re(),q=se(V);{var L=j=>{var te=rw();let ee;var oe=C(te);{var ae=ce=>{Vc(ce,{get position(){return d()},get duration(){return s()}})},le=ce=>{hv(ce,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return $()},set ref(X){$(X)}})};M(oe,ce=>{u()?ce(ae):ce(le,!1)})}S(te),Ns(te,()=>jl(m()&&g.features.usePerformanceFix,A,g.disableInvisibleComponentsTimeout)),N(ce=>ee=ie(te,1,"timeline s-d",null,ee,ce),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),b(j,te)},z=j=>{var te=sw();let ee;N(oe=>ee=ie(te,1,"timeline-stub s-d",null,ee,oe),[()=>({mobile:a()})]),b(j,te)};M(q,j=>{n(E)?j(L):j(z,!1)})}b(t,V),F(),o()}var Xb=require("@vkontakte/videoplayer-shared/es2015");var Zb=require("@vkontakte/videoplayer-statistics/es2015"),lw=(t,e,i,o,r,a,l)=>{O(e,!0),O(i,t.clientX,!0),O(o,n(r),!0),a(l())},dw=k("<div></div>"),cw=k('<div><div class="track s-2a"></div></div>'),uw={hash:"s-2a",code:'.root.s-2a{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2a,.root.vertically-rotated.s-2a{height:var(--preview-track-frame-height-vertical)}.root.s-2a:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2a{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2a,.track.s-2a{position:absolute}.frame.s-2a{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2a .frame:where(.s-2a){transform-origin:0 0}.rotate-1.s-2a{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2a{transform:rotate(-180deg)}.rotate-3.s-2a{transform:rotate(-270deg) translateY(-100%)}'};function bv(t,e){H(e,!0),Q(t,uw);let[i,o]=Be(),r=()=>w(D,"$rotateAlpha",i),a=()=>w(g,"$position$",i),l=()=>w(y,"$duration$",i),d=ye(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:$=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:g}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,D=d.ui.rotateAlpha,A=K(void 0),E=K(!1),V=K(0),q=K(0),L=K(0),z=K(0),j=f(()=>v<=$),te=f(()=>rd(r())),ee=f(()=>n(j)?!n(te):n(te)),oe=114,ae=65,le=3,ce=f(()=>n(ee)?oe:ae),X=f(()=>n(j)?oe:ae),_e=f(()=>n(j)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Ee=f(()=>m*n(ce)),de=K(0);Fe(()=>{O(z,Math.ceil(-n(L)/n(ce))-1),O(L,-n(Ee)*a()/l())});let ze=()=>{T(ue(),!0,Zb.ThinOneStat.ActionSeekType.RICH)},ue=()=>l()*-n(L)/n(Ee)/l(),pe=!1,Z=Te=>{if(!n(E))return!1;let we=Te.clientX-n(V);O(L,n(q)+we),O(L,Math.max(Math.min(n(L),0),-n(Ee)),!0),Math.abs(we)>1&&(pe=!0),I(ue())},B=Te=>{n(E)&&(O(E,!1),!pe&&Te&&O(L,-(Te.offsetX-n(de)/2)),pe=!1,ze())},fe=()=>{n(E)&&B()},me=f(()=>s/u),Ie=(Te,we)=>{if(Te!==p.length-1)return u;let He=0,at=we*u;for(let pt=1;pt<=u;pt++)Te*s+He+at<m&&He++;return He},nt=f(()=>Math.floor(n(z)/s)),Me=f(()=>(0,Xb.getRangeAroundIndex)(3,n(nt),p.length-1)),be=(Te,we,He)=>{let at=s*n(ce);return Te*at+we*n(ce)*u+n(de)/2-le/2+He*n(ce)},W=f(()=>[`--row-numbers: ${n(me)}`,`--column-numbers: ${u}`,`--frame-width: ${n(X)}px`,`--frame-height: ${n(_e)}`].join(";"));var Ce=cw();let ke;var Qe=C(Ce);Qe.__pointerdown=[lw,E,V,q,L,x,ue],Qe.__pointermove=Z,Qe.__pointerup=B,Ci(Qe,20,()=>n(Me),Te=>Te,(Te,we)=>{var He=Re(),at=se(He);Ci(at,16,()=>Array.from({length:n(me)},(pt,Pt)=>Pt),pt=>pt,(pt,Pt)=>{var dt=Re(),ai=se(dt);Ci(ai,16,()=>Array.from({length:Ie(we,Pt)},(Tt,Ot)=>Ot),Tt=>Tt,(Tt,Ot)=>{var Nt=dw();N((qt,Le)=>{Ke(Nt,qt),ie(Nt,1,Le,"s-2a")},[()=>`--row-index: ${Pt}; --column-index: ${Ot}; left: ${be(we,Pt,Ot)}px; background-image: url(${p[we]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(Tt,Nt)}),b(pt,dt)}),b(Te,He)}),S(Qe),S(Ce),it(Ce,Te=>O(A,Te),()=>n(A)),N(Te=>{ke=ie(Ce,1,"root s-2a",null,ke,Te),Ke(Ce,n(W)),Ke(Qe,`transform: translateX(${n(L)}px); width: ${n(Ee)}px;`)},[()=>({"is-vertical-video":!n(j),"vertically-rotated":n(te)})]),bt("mouseleave",Qe,fe),Vn(Ce,"clientWidth",Te=>O(de,Te)),b(t,Ce),F(),o()}tt(["pointerdown","pointermove","pointerup"]);var pw=k('<div class="notification s-2b"><span class="description s-2b"> </span></div>'),fw={hash:"s-2b",code:".notification.s-2b{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2b{font-size:14px;line-height:18px}"};function $v(t,e){H(e,!1),Q(t,fw);let i=340,{ui:{t:o}}=ye();rn();var r=pw(),a=C(r),l=C(a,!0);S(a),S(r),N(d=>ge(l,d),[()=>o("preview_track_close_tooltip")],Pn),Bs(3,r,()=>ba,()=>({duration:i})),b(t,r),F()}var Jb=require("@vkontakte/videoplayer-shared/es2015"),mw=k('<div class="preview-track-close tooltip s-28"><!></div>'),vw=k('<div class="preview-track-control s-28"><!> <div class="preview-track-close s-28"><!></div> <!></div>'),gw=k('<div class="wrapper-preview-track s-28"><!></div>'),hw=k('<div class="enriched-timeline s-28"><!> <!> <!></div>'),_w={hash:"s-28",code:".enriched-timeline.s-28{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-28{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-28{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-28{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-28:hover+.tooltip:where(.s-28){opacity:1}.wrapper-preview-track.s-28{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function yv(t,e){H(e,!0),Q(t,_w);let[i,o]=Be(),r=()=>w(g,"$playerSize",i),a=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(v,"$position$",i),s=()=>w($,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),m=ye(),p=200,{positionWithScrubbing$:v,isRewindableLive$:$,duration$:y}=m.state,{playerSize:g,previewTrackActive:x}=m.ui,{countPerImage:I=0,links:T=[],frequency:D=0}=m.actions.internal.getPreviewThumbsData()||{},A=f(()=>r().width>100),E=K(!ib()),V=()=>{n(E)&&(tb(),O(E,!1))},q=ce=>{let X=Math.floor(a()*ce/D),_e=Math.floor(X/I),Ee=(0,Jb.getRangeAroundIndex)(3,_e,T.length-1);for(let de of Ee){let ze=new Image;ze.src=T[de]}},L=(ce,X)=>{q(X),!l()&&e.onTimelineMove(ce)};var z=hw(),j=C(z);{var te=ce=>{var X=vw(),_e=C(X);let Ee=f(()=>sn(d()));fv(_e,{get time(){return n(Ee)}});var de=P(_e,2),ze=C(de);Fs(ze,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(de);var ue=P(de,2);{var pe=Z=>{var B=mw(),fe=C(B);$v(fe,{}),S(B),b(Z,B)};M(ue,Z=>{n(E)&&Z(pe)})}S(X),bt("mouseleave",de,V),Bs(3,X,()=>ba,()=>({duration:p})),b(ce,X)};M(j,ce=>{l()&&ce(te)})}var ee=P(j,2);let oe=f(()=>!n(A));rl(ee,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:L,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:q,get ref(){return u()},set ref(ce){u(ce)}});var ae=P(ee,2);{var le=ce=>{var X=gw(),_e=C(X);bv(_e,{}),S(X),N(()=>Ke(X,`height: ${e.animatedPreviewTrackHeight}px;`)),b(ce,X)};M(ae,ce=>{e.previewTrackAvailable&&ce(le)})}S(z),N(()=>Ke(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),F(),o()}var $w=k('<div><!> <div data-testid="player_controls"><div class="controls-left s-18"><!> <!> <!></div> <div class="controls-right s-18"></div></div></div> <!>',1),yw={hash:"s-18",code:'.wrapper-bottom.s-18{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-18:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-18>:where(.s-18){pointer-events:auto}.controls.s-18{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls.minimal-view.s-18{padding:0 var(--controls-desktop-padding-horizontal-minimal-view) 4px}.controls-left.s-18,.controls-right.s-18{align-content:center;display:flex}.controls-left.s-18{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-18 >:not(:first-child),.controls-right.s-18 >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-18{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-18{transition:none}'};function wv(t,e){var Ta,xl;H(e,!0),Q(t,yw);let[i,o]=Be(),r=()=>w(no,"$disabledControls$",i),a=()=>w(jt,"$adPlaybackState",i),l=()=>w($i,"$playbackState$",i),d=()=>w(qi,"$currentSubtitle$",i),s=()=>w(io,"$isEnded$",i),u=()=>w(Fo,"$currentGridType$",i),m=()=>w(Bt,"$isMinimalView$",i),p=()=>w(di,"$isLive$",i),v=()=>w(ft,"$chromecastState$",i),$=()=>w(Ri,"$isPictureInPictureActive",i),y=()=>w(ci,"$pictureInPictureType$",i),g=()=>w(pi,"$availableSubtitlesList$",i),x=()=>w(ot,"$contextMenuOpenedByKeyboard$",i),I=()=>w(U,"$showContextMenuBtn$",i),T=()=>w(oo,"$isRewindableLive$",i),D=()=>w(Ti,"$isActiveLive$",i),A=()=>w($r,"$graphIsOpened$",i),E=()=>w(vn,"$contextMenuVisible$",i),V=()=>w(It,"$isFullscreen",i),q=()=>w(hn,"$autoplayNextEnabled",i),L=()=>w(n(wo),"$prevButton",i),z=()=>w(n(wn),"$replayButton",i),j=()=>w(n(So),"$playButton",i),te=()=>w(n(ar),"$nextButton",i),ee=()=>w(n(ro),"$playPrevChapterButton",i),oe=()=>w(n(Sr),"$seekToInteractiveButton",i),ae=()=>w(n(Ao),"$interactiveGraphButton",i),le=()=>w(n(Sn),"$liveButton",i),ce=()=>w(n(us),"$time",i),X=()=>w(n(Fr),"$episodes",i),_e=()=>w(n(ps),"$vkLogo",i),Ee=()=>w(n(so),"$volume",i),de=()=>w(n(fs),"$subtitles",i),ze=()=>w(n(Ur),"$settings",i),ue=()=>w(n(ko),"$context",i),pe=()=>w(n(zr),"$fullscreen",i),Z=()=>w(n(Wn),"$chromecast",i),B=()=>w(gn,"$additionalDesktopControlPanelRightButtons$",i),fe=()=>w(xo,"$playerSize",i),me=()=>w(Io,"$isInteractiveTime$",i),Ie=()=>w(Sa,"$previewTrackActive",i),nt=()=>w(Ki,"$settingsMenuVisible",i),Me=()=>w(Mo,"$settingButtonRef$",i),be=()=>w(Xt,"$startedByKeyboard$",i),W=()=>w(hi,"$isAudioAvailable$",i),Ce=()=>w(Le,"$fakeIsPlaying$",i),ke=()=>w(rs,"$seekToInteractiveDisabledTooltip$",i),Qe=()=>w(Pi,"$isPreviewTrackHorizontallyAligned$",i),Te=()=>w(ni,"$previewTrackAvailable",i),we=()=>w(gt,"$previewTrackDragInProgress",i),He=()=>w(yi,"$adPosition",i),at=()=>w(Gt,"$position$",i),pt=()=>w(li,"$adDuration",i),Pt=()=>w(Et,"$duration$",i),dt=h(e,"playerControlsWrapperRef",15,void 0),ai=h(e,"playerControlsRef",15,void 0),Tt=h(e,"isAds",3,!1),Ot=h(e,"logoTargetUrl",3,""),Nt=h(e,"isOneVideoPlaylist",3,!1),qt=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Le}=To(),Y=ye(),Oe=To(),$e=Rt(),Ne=Y.actions.internal.toggleMuted,vt=Y.actions.internal.togglePlay,At=Y.actions.internal.pause,Se=Y.actions.internal.toggleSubtitle,je=Y.actions.internal.checkFullscreenSupport,Ue=(Ta=Y.callbacks)==null?void 0:Ta.onAudioDoesNotExistHint,xe=(xl=Y.callbacks)==null?void 0:xl.onAudioDisabledHint,Bt=Y.ui.isMinimalView$,Et=Y.state.duration$,Gt=Y.state.positionWithScrubbing$,$i=Y.state.playbackState$,hi=Y.state.isAudioAvailable$,Vi=Y.state.isAudioDisabled,io=Y.state.isEnded$,di=Y.state.isLive$,Ti=Y.state.isActiveLive$,oo=Y.state.isRewindableLive$,{isActive$:Ri,type$:ci}=Oe.pictureInPicture$,Ki=Y.ui.settingsMenu.visible$,$t=Y.ui.settingsMenu.openedByBtnKeyboard$,We=Y.ui.controls,rt=Y.actions.internal.getVideoEpisodes(),ft=Y.state.chromecastState$,pi=Y.state.availableSubtitlesList$,qi=Y.state.currentSubtitle$,no=We.disabledControls$,vn=Y.ui.contextMenu.visible$,U=Y.ui.contextMenu.showContextMenuBtn$,ot=Y.ui.contextMenu.openedByBtnKeyboard$,Xt=Y.ui.startedByKeyboard$,_i=Y.ui.controlBlocks,lt=Y.ui.t,li=Y.ads.duration,yi=Y.ads.position,jt=Y.ads.playbackState,It=Y.ui.isFullscreen,xo=Y.ui.playerSize,Fo=Y.ui.currentGridType$,gn=Y.ui.additionalDesktopControlPanelRightButtons$,hn=Y.ui.autoplayNextEnabled$,ki=Y.actions.internal.getVideoElement,Ii=Y.actions.internal.replayInteractive,_n=Y.actions.internal.prevVideoClick,br=Y.actions.internal.nextVideoClick,Si=Y.state.isInteractive,Io=Y.state.isInteractiveTime$,Uo=Y.state.showInteractiveGraph,zo=Y.state.showSeekToInteractive,bn=Y.state.showPlayPrevChapter,ns=Y.state.showInteractiveTimeIndicator,Ss=Y.state.playPrevChapterDisabledTooltip,rs=Oe.seekToInteractiveDisabledTooltip$,$r=Oe.graphIsOpened$,$n=$e.features.interactiveResponsiveUi,ss=f(()=>r().has("EPISODE_BUTTON")),er=f(()=>r().has("GRAPH_BUTTON")),Or=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Eo=f(()=>r().has("PLAY_BUTTON")),as=f(()=>r().has("REPLAY_BUTTON")),yr=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Nn=()=>Y.actions.internal.toggleChromecast(),Bn=f(()=>Tt()?a()==="playing":l()===sl.PlaybackState.PLAYING),Hn=f(()=>d().value!=="off"),tr=f(()=>s()&&!Tt()||Si),Nr=f(()=>$n?n(tr)&&po(u(),"m"):n(tr)),ls=f(()=>!s()||Si||Tt()),Li=f(()=>!m()&&po(u(),"m")),ds=f(()=>!m()&&po(u(),"m")&&!Tt()&&e.nextButtonActive),Wo=f(()=>!m()&&po(u(),"m")&&!Tt()&&e.prevButtonActive),ir=f(()=>!Tt()&&!!p()),xr=f(()=>!m()&&v()!==sl.ChromecastState.NOT_AVAILABLE&&!($()&&y()===1)&&po(u(),"m")&&!Si&&!Tt()),or=f(()=>e.showAutoplayNext&&!m()&&!Nt()&&po(u(),"s")),mt=f(()=>!m()&&g().length>0&&po(u(),"m")),ei=f(()=>x()||I()),wr=f(()=>po(u(),"s")&&!Tt()),cs=f(()=>!e.logoHidden&&!Tt()&&!m()),nr=f(()=>$e.features.fullscreen&&je()&&(e.logoHidden||po(u(),$n?"xs":"s"))&&!($()&&y()===1)&&(Si?qt():!0)),an=f(()=>(!p()||Tt())&&!($e.features.interactiveHideTime&&Si)),Fn=f(()=>Uo&&po(u(),"m")),rr=f(()=>$n?zo&&po(u(),"s"):zo),Br=f(()=>$n?bn&&po(u(),"s"):bn),Ko=f(()=>!m()&&!Tt()&&!p()&&!!(rt!=null&&rt.length)&&n(Li)&&!n(ss)),yn=f(()=>!T()||!!D()),Un=f(()=>A()?lt("tooltip_interactive_graph_on"):lt("tooltip_interactive_graph_off")),mo=f(()=>E()?lt("tooltip_context_menu_close"):lt("tooltip_context_menu_open")),Po=(_t,ut)=>_t?ut&&ut===sl.PlaybackState.PAUSED?lt("tooltip_play"):"":lt("tooltip_live"),zn=f(()=>Po(n(yn),l())),Di=f(()=>$e.logoType==="vk_video"?lt("tooltip_vk_video_logo"):lt("tooltip_vk_logo")),sr=f(()=>n(Hn)?lt("tooltip_subtitles_on"):lt("tooltip_subtitles_off")),xn=f(()=>V()?lt("tooltip_fullscreen_on"):lt("tooltip_fullscreen_off")),Hr=f(()=>v()===sl.ChromecastState.CONNECTED?lt("tooltip_chromecast_on"):lt("tooltip_chromecast_off")),yt=f(()=>q()?lt("tooltip_autoplay_on"):lt("tooltip_autoplay_off")),ui=K(0),Wt=si({}),ln=si({}),wo=f(()=>We.prevButton),wn=f(()=>We.replayButton),So=f(()=>We.playButton),ar=f(()=>We.nextButton),ro=f(()=>We.playPrevChapterButton),Sr=f(()=>We.seekToInteractiveButton),Ao=f(()=>We.interactiveGraphButton),Sn=f(()=>We.liveButton),us=f(()=>We.time),Fr=f(()=>We.episodes),ps=f(()=>We.vkLogo),so=f(()=>We.volume),fs=f(()=>We.subtitles),Ur=f(()=>We.settings),ko=f(()=>We.context),zr=f(()=>We.fullscreen),Wn=f(()=>We.chromecast),vo=f(()=>({prevButton:L()?L().right-L().left:0,replayButton:z()?z().right-z().left:0,playButton:j()?j().right-j().left:0,nextButton:te()?te().right-te().left:0,playPrevChapterButton:ee()?ee().right-ee().left:0,seekToInteractiveButton:oe()?oe().right-oe().left:0,interactiveGraphButton:ae()?ae().right-ae().left:0,liveButton:le()?le().right-le().left:0,time:ce()?ce().right-ce().left:0,episodes:X()?X().right-X().left:0,vkLogo:_e()?_e().right-_e().left:0,volume:Ee()?Ee().right-Ee().left:0,subtitles:de()?de().right-de().left:0,settings:ze()?ze().right-ze().left:0,context:ue()?ue().right-ue().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:Z()?Z().right-Z().left:0,additionalButtons:B().length?B().reduce(_t=>[..._t,40],[]):[]})),go=K(0);Fe(()=>{(!n(go)||n(go)<n(vo).time)&&kt(()=>O(go,n(vo).time,!0))});let Xe=K(!1);Fe(()=>{let _t=0;n(Ko)&&(po(u(),"xl")?_t=n(vo).time:_t=60);let ut=n(vo).prevButton+n(vo).playButton+n(vo).nextButton+n(vo).seekToInteractiveButton+n(vo).interactiveGraphButton+n(vo).liveButton+n(go)+_t;O(Xe,n(an)&&n(ui)>=ut,!0)});let Mt=f(()=>n(Xe)&&po(u(),"m")),fi=(0,xv.debounceFn)(ad,260),Lo=(0,xv.debounceFn)(bp,260);Fe(()=>{fe(),me(),Ie(),fi(ki(),We,Wt,e.showControls),Lo(ki(),_i,ln,e.showControls)}),Fe(()=>{ln.bottom=dt()});let Mo=re();Fe(()=>{nt(),Me()&&kt(()=>Zl(Me(),nt(),$t))});let Co;Fe(()=>{be(),kt(()=>hp(Xt,be(),Co))});function ho(){ma({isAudioDisabled:Vi,isAudioAvailable:W(),isAds:Tt(),audioIsNotExistHintCallback:Ue,audioDisabledHintCallback:xe})&&Ne()}let Vo=Si?Ii:vt,lr=f(()=>Ce()!==null),dr=f(()=>n(lr)?Ce():n(Bn)),qo=f(()=>n(dr)?lt("tooltip_pause"):lt("tooltip_play")),Bi=lt("tooltip_episodes"),Kn=f(()=>{var _t,ut,Oi,jo;return n(Wo)?{id:"prevButton",type:"desktop-control-panel-left",weight:qs.prevButton,buttonComponent:ol,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:_n.bind(null,!0)},tooltipEnabled:!((ut=(_t=Y.callbacks)==null?void 0:_t.uiInfo)!=null&&ut.onPrevButtonMouseEnter)&&!((jo=(Oi=Y.callbacks)==null?void 0:Oi.uiInfo)!=null&&jo.onPrevButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Fi;(Fi=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseEnter)==null||Fi.call(wi,Zn(ki(),Wt,"prevButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Fi;(Fi=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseLeave)==null||Fi.call(wi,Zn(ki(),Wt,"prevButton",e.showControls))},tooltipText:lt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Qo=f(()=>n(Nr)?{id:"replayButton",type:"desktop-control-panel-left",weight:qs.replayButton,buttonComponent:ld,buttonComponentProps:{disabled:n(as),click:Vo},tooltipText:lt("tooltip_restart"),disabled:n(as)}:void 0),Cr=f(()=>n(ls)?{id:"playButton",type:"desktop-control-panel-left",weight:qs.playButton,buttonComponent:dd,buttonComponentProps:{disabled:n(Eo),isPlaying:n(Bn),click:vt},tooltipText:n(qo),disabled:n(Eo)}:void 0),Je=f(()=>{var _t,ut,Oi,jo;return n(ds)?{id:"nextButton",type:"desktop-control-panel-left",weight:qs.nextButton,buttonComponent:ol,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:br.bind(null,!0)},tooltipEnabled:!((ut=(_t=Y.callbacks)==null?void 0:_t.uiInfo)!=null&&ut.onNextButtonMouseEnter)&&!((jo=(Oi=Y.callbacks)==null?void 0:Oi.uiInfo)!=null&&jo.onNextButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Fi;(Fi=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseEnter)==null||Fi.call(wi,Zn(ki(),Wt,"nextButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Fi;(Fi=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseLeave)==null||Fi.call(wi,Zn(ki(),Wt,"nextButton",e.showControls))},tooltipText:lt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Yt=f(()=>Si&&n(Br)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:qs.playPrevChapterButton,buttonComponent:Pc,buttonComponentProps:{disabled:n(yr),click:e.playPrevChapter},tooltipText:lt("tooltip_interactive_go_back"),disabledTooltipContent:lt(Ss),disabled:n(yr)}:void 0),Mi=f(()=>Si&&n(rr)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:qs.seekToInteractiveButton,buttonComponent:kc,buttonComponentProps:{disabled:n(Or),click:e.seekToInteractive},tooltipText:lt("tooltip_interactive_seek"),disabled:n(Or),disabledTooltipContent:lt(ke())}:void 0),Cn=f(()=>Si&&n(Fn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:qs.interactiveGraphButton,buttonComponent:Lc,buttonComponentProps:{disabled:n(er),click:$r.toggle,graphIsOpened:A()},tooltipText:n(Un)}:void 0),ao=f(()=>n(ir)?{id:"liveButton",type:"desktop-control-panel-left",weight:qs.liveButton,buttonComponent:Mc,buttonComponentProps:{isLiveActive:n(yn),ariaLabel:n(zn)},tooltipText:n(zn),disabled:n(yn)&&l()===sl.PlaybackState.PLAYING}:void 0),Wr=f(()=>[n(Kn),n(Qo),n(Cr),n(Je),n(Yt),n(Mi),n(Cn),n(ao)].filter(_t=>!!_t).sort(Ga)),Go=f(()=>n(cs)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Gs.vkLogo,buttonComponent:_c,buttonComponentProps:{targetUrl:Ot(),logoClickable:e.logoClickable,click:At},tooltipText:n(Di),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Tr=f(()=>n(or)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Gs.autoplayNext,buttonComponent:Ac,tooltipText:n(yt)}:void 0),Ir=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Gs.volume,buttonComponent:Nm,buttonComponentProps:{click:ho,isAds:Tt()}})),Cs=f(()=>n(mt)?{id:"subtitles",type:"desktop-control-panel-right",weight:Gs.subtitles,buttonComponent:Vm,buttonComponentProps:{isSubtitlesEnabled:n(Hn),click:Se},tooltipText:n(sr)}:void 0),Ts=f(()=>n(wr)?{id:"settings",type:"desktop-control-panel-right",weight:Gs.settings,buttonComponent:od,buttonComponentProps:{ref$:Mo},tooltipText:nt()?void 0:lt("tooltip_settings_off")}:void 0),qn=f(()=>$e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Gs.context,buttonComponent:rv,buttonComponentProps:{ariaLabel:lt("aria_label_context_menu")},className:n(ei)?"":"out-of-view",tooltipText:n(mo)}:void 0),xa=f(()=>n(nr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Gs.fullscreen,buttonComponent:hc,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:n(xn)}:void 0),ms=f(()=>n(xr)?{id:"chromecast",type:"desktop-control-panel-right",weight:Gs.chromecast,buttonComponent:$c,buttonComponentProps:{state:v(),click:Nn},tooltipText:n(Hr)}:void 0),wa=f(()=>[n(Go),n(Tr),n(Ir),n(Cs),n(Ts),n(qn),n(xa),n(ms),...B()].filter(_t=>!!_t).sort(Ga)),Sa=Y.ui.previewTrackActive,gt=Y.ui.previewTrackDragInProgress,ni=Y.ui.previewTrackAvailable,Pi=Y.ui.isPreviewTrackHorizontallyAligned,xi=f(()=>Yb({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>Wt.timeline,isHorizontal:Qe()})),Er=f(()=>n(xi).progressBarY),Is=f(()=>n(xi).controlsY),Es=f(()=>n(xi).onPointerDown),Kr=f(()=>n(xi).onPointerMove),Hi=f(()=>n(xi).onPointerUp),Qi=f(()=>n(xi).calculatedHeight),ve=f(()=>n(xi).closePreviewTrack);Fe(()=>{Ie()||n(ve)()});let ht;Vt(()=>()=>ht&&clearTimeout(ht));let ri=_t=>{Ie()||!Te()||(n(Es)(_t),ht=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},Zt=()=>{Ie()||n(Hi)(),ht&&clearTimeout(ht),we()&&Y.actions.internal.previewTrackDragFinished()},Yo=_t=>{n(Kr)(_t)},Ro=-(parseInt("24")/2+4);var lo=$w(),dn=se(lo);let Ps;var As=C(dn);{var js=_t=>{let ut=f(()=>n(Er)()),Oi=f(()=>n(Qi)());yv(_t,{get animatedOffsetY(){return n(ut)},get animatedPreviewTrackHeight(){return n(Oi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Tt()},onTimelineMove:Yo,onTimelinePointerDown:ri,onTimelinePointerUp:Zt,get previewTrackAvailable(){return Te()},get timelineRef(){return Wt.timeline},set timelineRef(jo){Wt.timeline=jo}})};M(As,_t=>{e.showControls&&_t(js)})}var qr=P(As,2);let Xs;var Tn=C(qr),Ca=C(Tn);Ci(Ca,17,()=>n(Wr),_t=>_t.id,(_t,ut)=>{_p(_t,{get buttonComponent(){return n(ut).buttonComponent},get buttonComponentProps(){return n(ut).buttonComponentProps},get tooltipText(){return n(ut).tooltipText},get disabledTooltipContent(){return n(ut).disabledTooltipContent},get disabled(){return n(ut).disabled},get className(){return n(ut).className},get tooltipEnabled(){return n(ut).tooltipEnabled},get mouseEnter(){return n(ut).mouseEnter},get mouseLeave(){return n(ut).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(ut).id]},set ref(Oi){Wt[n(ut).id]=Oi}})});var _l=P(Ca,2);{var Pr=_t=>{let ut=f(()=>!e.showControls),Oi=f(()=>Tt()?He():at()),jo=f(()=>Tt()?pt():Pt());mc(_t,{get isHidden(){return n(ut)},isMobile:!1,get showDuration(){return n(Mt)},get position(){return n(Oi)},get duration(){return n(jo)},get ref(){return Wt.time},set ref(Gi){Wt.time=Gi}})};M(_l,_t=>{n(an)&&_t(Pr)})}var _d=P(_l,2);let bl=f(()=>!n(Ko));Bo(_d,{className:"w-max",get disabled(){return n(bl)},get tooltipContent(){return Bi},get tooltipVisible(){return e.showControls},tooltipPlacement:"top-left",get initialTranslateXPx(){return Ro},get ref(){return Wt.episodes},set ref(_t){Wt.episodes=_t},children:(_t,ut)=>{var Oi=Re(),jo=se(Oi);{var Gi=wi=>{yc(wi,{get position(){return at()},get duration(){return Pt()},get timeCodes(){return rt}})};M(jo,wi=>{n(Ko)&&wi(Gi)})}b(_t,Oi)},$$slots:{default:!0}}),S(Tn);var $l=P(Tn,2);Ci($l,21,()=>n(wa),_t=>_t.id,(_t,ut)=>{var Oi=Re(),jo=se(Oi);{var Gi=Fi=>{_p(Fi,{get buttonComponent(){return n(ut).buttonComponent},get buttonComponentProps(){return n(ut).buttonComponentProps},get tooltipText(){return n(ut).tooltipText},get disabledTooltipContent(){return n(ut).disabledTooltipContent},get disabled(){return n(ut).disabled},get className(){return n(ut).className},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(ut).id]},set ref(Ia){Wt[n(ut).id]=Ia}})},wi=Fi=>{let Ia=f(()=>!!n(ut).disabled);uv(Fi,{get id(){return n(ut).id},get testId(){return n(ut).testId},get icon(){return n(ut).icon},get ariaLabel(){return n(ut).ariaLabel},get tooltipText(){return n(ut).tooltipText},get disabledTooltipContent(){return n(ut).disabledTooltipContent},get disabled(){return n(Ia)},get onClick(){return n(ut).onClick},get disableMouseupTooltipShow(){return n(ut).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(ut).id]},set ref(wl){Wt[n(ut).id]=wl}})};M(jo,Fi=>{qb(n(ut))?Fi(Gi):Fi(wi,!1)})}b(_t,Oi)}),S($l),S(qr),it(qr,_t=>ai(_t),()=>ai()),S(dn),it(dn,_t=>dt(_t),()=>dt());var yl=P(dn,2);{var bd=_t=>{Ic(_t,{get ref(){return Wt.interactiveTimeIndicator},set ref(ut){Wt.interactiveTimeIndicator=ut}})};M(yl,_t=>{ns&&_t(bd)})}N((_t,ut,Oi)=>{Ps=ie(dn,1,"wrapper-bottom s-18",null,Ps,_t),Ke(dn,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Xs=ie(qr,1,"controls s-18",null,Xs,ut),Ke(qr,Oi),qr.inert=Ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||we()}),()=>({"minimal-view":m()}),()=>`transform: translateY(${n(Is)()}px);`]),Vn(Tn,"clientWidth",_t=>O(ui,_t)),b(t,lo),F(),o()}var cd=require("@vkontakte/videoplayer-core/es2015");var Sv=require("@vkontakte/videoplayer-shared/es2015");var xw=k('<div class="icon icon-error-stub s-1y"><div class="inner s-1y"></div></div>'),ww=k('<img class="icon s-1y" aria-hidden="true"/>'),Sw={hash:"s-1y",code:".icon.s-1y{height:24px!important;width:24px!important}.inner.s-1y{background-color:var(--white);height:16px;width:16px}"};function Cv(t,e){Q(t,Sw);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,Sv.noop),r=f(()=>o()===Sv.noop),a=f(()=>n(r)||i()),l=K(!1),d=()=>{O(l,!0)},s=f(()=>n(r)?"btn-full-opacity":"");Ut(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var p=Re(),v=se(p);{var $=g=>{var x=xw();b(g,x)},y=g=>{var x=ww();N(()=>De(x,"src",e.iconUrl)),bt("error",x,d),Ha(x),b(g,x)};M(v,g=>{n(l)?g($):g(y,!1)})}b(u,p)},$$slots:{default:!0}})}var Cw=Ae('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function Tv(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=Cw();b(e,o)},$$slots:{default:!0}})}var e$=require("@vkontakte/videoplayer-shared/es2015");function yp(t,e){H(e,!0);let i=h(e,"muted",3,!1),o=h(e,"click",3,e$.noop),r=h(e,"ref",15,void 0),l=ye().ui.t,d=f(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ut(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var p=Re(),v=se(p);{var $=g=>{Tv(g,{})},y=g=>{ha(g,{get size(){return"24"}})};M(v,g=>{i()?g($):g(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var Tw=Ae('<path d="M11.64 12.37 9.07 9.8h1.03a.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.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),Iw=Ae('<path d="m6.36 9.63 2.57 2.57H7.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.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),Ew=Ae('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function Iv(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=Ew(),d=P(se(l));{var s=m=>{var p=Tw();b(m,p)},u=m=>{var p=Iw();b(m,p)};M(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}var t$=require("@vkontakte/videoplayer-shared/es2015");function Ev(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,t$.noop),a=G("menu_pip");Ut(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Iv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var Pv=require("@vkontakte/videoplayer-shared/es2015");var Pw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},Aw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},kw=k("<div><!></div>"),Lw=k("<div><!></div>"),Mw=k("<div><!></div>"),Vw=k("<!> <!> <!>",1),Rw=k("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Dw=k('<div class="wrapper-middle s-17"><!></div>'),Ow=k("<div><!></div> <!> <div><!></div>",1),Nw=k('<div aria-hidden="true">·</div> <!>',1),Bw=k('<!> <!> <div><div><div class="controls mobile s-17" data-testid="bottom-controls"><div class="controls-group contain s-17"><!> <!> <!> <!></div> <div class="controls-group s-17"><!> <!> <!></div></div> <!></div></div> <!>',1),Hw={hash:"s-17",code:".wrapper-bottom.s-17{background:var(--controls-gradient);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;height:var(--controls-gradient-height);justify-content:flex-end;left:0;padding:0 4px 8px;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-17>:where(.s-17){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-17{height:9px;padding:0 4px 4px}.wrapper-middle.s-17{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-17,.wrapper-top-right.s-17{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-17{right:8px;top:4px}.wrapper-top-left.s-17{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-17,.wrapper-middle-left-second.s-17,.wrapper-middle-right.s-17{align-items:center;background-color:rgba(0,0,0,.56);border-radius:12px;display:flex;height:44px;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}.wrapper-middle-left.s-17{left:12px}.wrapper-middle-left-second.s-17{left:64px}.wrapper-middle-right.s-17{right:12px}.controls.s-17{align-items:center;box-sizing:border-box;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 4px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform}.controls.s-17,.controls-group.s-17{display:flex}.controls-group.contain.s-17{min-width:0}.controls-group.s-17 >:not(:first-child){margin-left:8px}.hidden.s-17{opacity:0;visibility:hidden}.controls-hidden.s-17{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-17{transition:none}.overlay-mobile.s-17{background-color:rgba(0,0,0,.3);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:opacity var(--controls-transition-duration);width:100%}@media screen and (orientation:portrait){.wrapper-top-left.fullscreen.s-17,.wrapper-top-right.fullscreen.s-17{top:16px}.controls-wrapper.fullscreen.s-17{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-17{left:44px;top:12px}.wrapper-top-right.fullscreen.s-17{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-17{left:44px}.wrapper-middle-left-second.fullscreen.s-17{left:96px}.wrapper-middle-right.fullscreen.s-17{right:44px}.controls-wrapper.fullscreen.s-17{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function Av(t,e){var vo,go;H(e,!0),Q(t,Hw);let[i,o]=Be(),r=()=>w(Fo,"$seekToInteractiveDisabledTooltip$",i),a=()=>w(We,"$disabledControls$",i),l=()=>w(Nt,"$playbackState$",i),d=()=>w(no,"$adPlaybackState",i),s=()=>w(Y,"$isEnded$",i),u=()=>w(Se,"$isMinimalView$",i),m=()=>w(io,"$autoplayNextToggleHidden",i),p=()=>w(U,"$playerSize",i),v=()=>w(je,"$scrubbingInProgress",i),$=()=>w(Ki,"$chromecastState$",i),y=()=>w(xe,"$isPictureInPictureActive",i),g=()=>w(Bt,"$pictureInPictureType$",i),x=()=>w(Ue,"$mobileNotReportControlHidden$",i),I=()=>w(oo,"$chromecastHidden",i),T=()=>w(ai,"$playerPhase",i),D=()=>w(di,"$pipHidden",i),A=()=>w(ft,"$currentGridType$",i),E=()=>w(Vi,"$vkLogoHidden",i),V=()=>w(hi,"$volumeHidden",i),q=()=>w(Oe,"$isLive$",i),L=()=>w(Et,"$settingsMenuVisible",i),z=()=>w(At,"$isRewindableLive$",i),j=()=>w(vt,"$isActiveLive$",i),te=()=>w(qt,"$isAudioAvailable$",i),ee=()=>w(Ne,"$muted$",i),oe=()=>w($e,"$volume$",i),ae=()=>w(li,"$isInteractiveTime$",i),le=()=>w(Ko,"$settingButtonRef$",i),ce=()=>w(rt,"$startedByKeyboard$",i),X=()=>w(vn,"$isFullscreen",i),_e=()=>w(ot,"$additionalButtons$",i),Ee=()=>w($t,"$crashed$",i),de=()=>w(Ti,"$settingsHidden",i),ze=()=>w(gn,"$graphIsOpened$",i),ue=()=>w(qi,"$adPosition",i),pe=()=>w(pi,"$adDuration",i),Z=()=>w(Ot,"$position$",i),B=()=>w(Tt,"$duration$",i),fe=h(e,"playerControlsWrapperRef",15,void 0),me=h(e,"playerControlsRef",15,void 0),Ie=h(e,"isAds",3,!1),nt=h(e,"logoTargetUrl",3,""),Me=h(e,"isOneVideoPlaylist",3,!1),be=h(e,"customFullscreenSupported",3,!0),W=ye(),Ce=To(),ke=Rt(),Qe=W.actions.internal.toggleMuted,Te=W.actions.internal.togglePlay,we=W.actions.internal.pause,He=W.actions.internal.prevVideoClick,at=W.actions.internal.nextVideoClick,pt=W.actions.internal.checkFullscreenSupport,Pt=(vo=W.callbacks)==null?void 0:vo.onAudioDoesNotExistHint,dt=(go=W.callbacks)==null?void 0:go.onAudioDisabledHint,ai=W.playerPhase,Tt=W.state.duration$,Ot=W.state.positionWithScrubbing$,Nt=W.state.playbackState$,qt=W.state.isAudioAvailable$,Le=W.state.isAudioDisabled,Y=W.state.isEnded$,Oe=W.state.isLive$,$e=W.state.volume$,Ne=W.state.muted$,vt=W.state.isActiveLive$,At=W.state.isRewindableLive$,Se=W.ui.isMinimalView$,je=W.ui.scrubbingInProgress,Ue=W.ui.mobileNotReportControlHidden$,{isActive$:xe,type$:Bt}=Ce.pictureInPicture$,Et=W.ui.settingsMenu.visible$,Gt=W.ui.settingsMenu.openedByBtnKeyboard$,$i=W.ui.controls,{volume:hi,vkLogo:Vi,autoplayNextToggle:io,pip:di,settings:Ti,chromecast:oo}=W.ui.hiddenControls,Ri=W.actions.internal.getVideoEpisodes(),ci=W.webApi.pictureInPictureApi,Ki=W.state.chromecastState$,$t=W.state.crashed$,We=$i.disabledControls$,rt=W.ui.startedByKeyboard$,ft=W.ui.currentGridType$,pi=W.ads.duration,qi=W.ads.position,no=W.ads.playbackState,vn=W.ui.isFullscreen,U=W.ui.playerSize,ot=W.ui.additionalButtonsDeprecated$,Xt=W.actions.internal.getVideoElement,_i=W.actions.internal.replayInteractive,lt=W.state.isInteractive,li=W.state.isInteractiveTime$,yi=W.state.showInteractiveGraph,jt=W.state.showSeekToInteractive,It=W.state.showPlayPrevChapter,xo=W.state.showInteractiveTimeIndicator,Fo=Ce.seekToInteractiveDisabledTooltip$,gn=Ce.graphIsOpened$,hn=W.ui.controlBlocks,ki=f(()=>G(W.state.playPrevChapterDisabledTooltip)),Ii=f(()=>G(r())),_n=f(()=>a().has("EPISODE_BUTTON")),br=f(()=>a().has("GRAPH_BUTTON")),Si=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Io=f(()=>a().has("PLAY_BUTTON")),Uo=f(()=>a().has("REPLAY_BUTTON")),zo=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),bn=f(()=>l()===cd.PlaybackState.PLAYING),ns=f(()=>d()==="paused"),Ss=f(()=>s()&&!Ie()&&!lt),rs=f(()=>!s()||Ie()),$r=f(()=>!u()&&!Ie()&&e.prevButtonActive),$n=f(()=>!u()&&!Ie()&&e.nextButtonActive),ss=f(()=>e.showAutoplayNext&&!u()&&!Me()&&!m()),er=f(()=>!u()&&p().width>300),Or=f(()=>p().width>400),Eo=f(v),as=f(()=>$()!==cd.ChromecastState.NOT_AVAILABLE&&!(y()&&g()===1)&&!x()&&!lt&&!I()),yr=f(()=>T()==="LiveWaitingStart"),Nn=f(()=>!!ci&&!u()&&$()!==cd.ChromecastState.CONNECTED&&!x()&&(g()===1&&n(yr)||!n(yr))&&!n(Eo)&&!lt&&!D()),Bn=K(!1);Vt(()=>{let Xe=ci==null?void 0:ci.info.isActive$.subscribe(Mt=>O(Bn,Mt,!0));return()=>Xe==null?void 0:Xe.unsubscribe()});let Hn=f(()=>!n(Eo)&&po(A(),"s")),tr=f(()=>!e.logoHidden&&p().width>350&&!E()),Nr=f(()=>ke.features.fullscreen&&pt()&&!(y()&&g()===1)&&(lt?be():!0)&&!n(Eo)&&!n(Bn)),ls=f(()=>!V()&&!n(Eo)),Li=f(()=>(!q()||Ie())&&p().width>260&&!n(Eo)&&!(ke.features.interactiveHideTime&&lt)),ds=f(()=>L()||e.showControls),Wo=f(()=>!Ie()&&!q()&&!!(Ri!=null&&Ri.length)&&n(er)&&!n(_n)&&!n(Eo)),ir=f(()=>!z()||!!j()),xr=f(()=>yi&&po(A(),"m")),or=f(()=>!te()||ee()||oe()===0),mt=si({}),ei=si({}),wr=(0,Pv.debounceFn)(ad,260),cs=(0,Pv.debounceFn)(bp,260);Fe(()=>{p(),ae(),wr(Xt(),$i,mt,e.showControls),cs(Xt(),hn,ei,e.showControls)});let nr=()=>W.actions.internal.toggleChromecast();function an(){return xt(this,null,function*(){ci!=null&&ci.isActive()?yield ci==null?void 0:ci.exit():yield ci==null?void 0:ci.request()})}function Fn(){ma({isAudioDisabled:Le,audioDisabledHintCallback:dt,isAudioAvailable:te(),audioIsNotExistHintCallback:Pt,isAds:Ie()})&&Qe()}let rr=K(""),Br=(Xe,Mt)=>{if(!Xe){O(rr,G("tooltip_live"),!0);return}Mt&&Mt===cd.PlaybackState.PAUSED&&O(rr,G("tooltip_play"),!0)};Fe(()=>{Br(n(ir),l())});let Ko=re();Fe(()=>{le()&&Zl(le(),L(),Gt)}),Fe(()=>{hp(rt,ce(),mt.playButton)});var yn=Bw(),Un=se(yn);{var mo=Xe=>{var Mt=Rw(),fi=se(Mt);let Lo;var Mo=P(fi,2);let Co;it(Mo,gt=>ei.topLeft=gt,()=>ei==null?void 0:ei.topLeft);var ho=P(Mo,2);let Vo;var lr=C(ho);Ci(lr,1,_e,({iconUrl:gt,ariaLabel:ni,testId:Pi,onClick:xi,tooltip:Er})=>gt,(gt,ni)=>{let Pi=()=>n(ni).iconUrl,xi=()=>n(ni).ariaLabel,Er=()=>n(ni).testId,Is=()=>n(ni).onClick,Es=()=>n(ni).tooltip,Kr=f(()=>{var Hi;return(Hi=xi())!=null?Hi:Es()});Cv(gt,{get iconUrl(){return Pi()},get ariaLabel(){return n(Kr)},get testId(){return Er()},get onClick(){return Is()}})});var dr=P(lr,2);{var qo=gt=>{Ac(gt,{get ref(){return mt.autoplayNextToggle},set ref(ni){mt.autoplayNextToggle=ni}})};M(dr,gt=>{n(ss)&&gt(qo)})}var Bi=P(dr,2);{var Kn=gt=>{$c(gt,{isMobile:!0,click:nr,get state(){return $()},get ref(){return mt.chromecast},set ref(ni){mt.chromecast=ni}})};M(Bi,gt=>{n(as)&&gt(Kn)})}var Qo=P(Bi,2);{var Cr=gt=>{Ev(gt,{click:an,get isPictureInPictureActive(){return y()},get ref(){return mt.pip},set ref(ni){mt.pip=ni}})};M(Qo,gt=>{n(Nn)&&gt(Cr)})}var Je=P(Qo,2);{var Yt=gt=>{od(gt,{get ref$(){return Ko}})};M(Je,gt=>{Ee()&&!de()&&gt(Yt)})}var Mi=P(Je,2);{var Cn=gt=>{_c(gt,{get click(){return we},get targetUrl(){return nt()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(ni){mt.vkLogo=ni}})};M(Mi,gt=>{n(tr)&&gt(Cn)})}S(ho),it(ho,gt=>ei.topRight=gt,()=>ei==null?void 0:ei.topRight);var ao=P(ho,2);let Wr;var Go=C(ao);{var Tr=gt=>{let ni=f(()=>He.bind(null,!0));ol(gt,{get click(){return n(ni)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(Pi){mt.prevButton=Pi}})};M(Go,gt=>{n($r)&&gt(Tr)})}var Ir=P(Go,2);{var Cs=gt=>{dd(gt,{get disabled(){return n(Io)},get click(){return Te},isMobile:!0,get isPlaying(){return n(bn)},get ref(){return mt.playButton},set ref(ni){mt.playButton=ni}})};M(Ir,gt=>{n(rs)&&gt(Cs)})}var Ts=P(Ir,2);{var qn=gt=>{ld(gt,{get disabled(){return n(Uo)},get click(){return Te},isMobile:!0,get ref(){return mt.replayButton},set ref(ni){mt.replayButton=ni}})};M(Ts,gt=>{n(Ss)&&gt(qn)})}var xa=P(Ts,2);{var ms=gt=>{let ni=f(()=>at.bind(null,!0));ol(gt,{get click(){return n(ni)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(Pi){mt.nextButton=Pi}})};M(xa,gt=>{n($n)&&gt(ms)})}S(ao),it(ao,gt=>ei.middle=gt,()=>ei==null?void 0:ei.middle);var wa=P(ao,2);{var Sa=gt=>{var ni=Vw(),Pi=se(ni);{var xi=Hi=>{var Qi=kw();let ve;Qi.__click=[Pw,zo,e,ki];var ht=C(Qi);let ri=f(()=>!e.showControls);Pc(ht,{get hidden(){return n(ri)},get disabled(){return n(zo)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(Zt){mt.playPrevChapterButton=Zt}}),S(Qi),N(Zt=>ve=ie(Qi,1,"wrapper-middle-left s-17",null,ve,Zt),[()=>({fullscreen:X(),hidden:!e.showControls})]),b(Hi,Qi)};M(Pi,Hi=>{It&&Hi(xi)})}var Er=P(Pi,2);{var Is=Hi=>{var Qi=Lw();let ve;var ht=C(Qi);let ri=f(()=>!e.showControls&&!ze());Lc(ht,{get hidden(){return n(ri)},get disabled(){return n(br)},get click(){return gn.toggle},get graphIsOpened(){return ze()},get ref(){return mt.interactiveGraphButton},set ref(Zt){mt.interactiveGraphButton=Zt}}),S(Qi),N(Zt=>ve=ie(Qi,1,qd(It?"wrapper-middle-left-second":"wrapper-middle-left"),"s-17",ve,Zt),[()=>({fullscreen:X(),hidden:!e.showControls&&!ze()})]),b(Hi,Qi)};M(Er,Hi=>{n(xr)&&Hi(Is)})}var Es=P(Er,2);{var Kr=Hi=>{var Qi=Mw();let ve;Qi.__click=[Aw,Si,e,Ii];var ht=C(Qi);let ri=f(()=>!e.showControls);kc(ht,{get hidden(){return n(ri)},get disabled(){return n(Si)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(Zt){mt.seekToInteractiveButton=Zt}}),S(Qi),N(Zt=>ve=ie(Qi,1,"wrapper-middle-right s-17",null,ve,Zt),[()=>({fullscreen:X(),hidden:!e.showControls})]),b(Hi,Qi)};M(Es,Hi=>{jt&&Hi(Kr)})}b(gt,ni)};M(wa,gt=>{lt&&!v()&&gt(Sa)})}N((gt,ni,Pi,xi)=>{Lo=ie(fi,1,"overlay-mobile s-17",null,Lo,gt),Co=ie(Mo,1,"wrapper-top-left s-17",null,Co,ni),Vo=ie(ho,1,"wrapper-top-right s-17",null,Vo,Pi),Wr=ie(ao,1,"wrapper-middle s-17",null,Wr,xi)},[()=>({hidden:!n(ds)}),()=>({hidden:!e.showControls,fullscreen:X()}),()=>({hidden:!e.showControls&&!x(),fullscreen:X()}),()=>({hidden:!e.showControls||v()||e.endScreenShown&&e.showNextPrevButtons})]),b(Xe,Mt)};M(Un,Xe=>{Ie()||Xe(mo)})}var Po=P(Un,2);{var zn=Xe=>{var Mt=Ow(),fi=se(Mt);let Lo;var Mo=C(fi);yp(Mo,{get muted(){return ee()},click:Fn,get ref(){return mt.volume},set ref(qo){mt.volume=qo}}),S(fi);var Co=P(fi,2);{var ho=qo=>{var Bi=Dw(),Kn=C(Bi);let Qo=f(()=>!n(ns));dd(Kn,{get disabled(){return n(Io)},get click(){return Te},isMobile:!0,get isPlaying(){return n(Qo)},get ref(){return mt.playButton},set ref(Cr){mt.playButton=Cr}}),S(Bi),b(qo,Bi)};M(Co,qo=>{n(ns)&&qo(ho)})}var Vo=P(Co,2);let lr;var dr=C(Vo);Vc(dr,{get position(){return ue()},get duration(){return pe()}}),S(Vo),N((qo,Bi)=>{Lo=ie(fi,1,"wrapper-top-right s-17",null,Lo,qo),lr=ie(Vo,1,"wrapper-bottom ads-timeline-mobile s-17",null,lr,Bi)},[()=>({fullscreen:X()}),()=>({fullscreen:X()})]),b(Xe,Mt)};M(Po,Xe=>{Ie()&&d()!=="inactive"&&Xe(zn)})}var Di=P(Po,2);let sr;var xn=C(Di);let Hr;var yt=C(xn),ui=C(yt),Wt=C(ui);{var ln=Xe=>{Bo(Xe,{get disabled(){return n(Uo)},get ref(){return mt.replayButton},set ref(Mt){mt.replayButton=Mt},children:(Mt,fi)=>{ld(Mt,{get disabled(){return n(Uo)},get click(){return _i}})},$$slots:{default:!0}})};M(Wt,Xe=>{lt&&Xe(ln)})}var wo=P(Wt,2);{var wn=Xe=>{Bo(Xe,{get ref(){return mt.liveButton},set ref(Mt){mt.liveButton=Mt},children:(Mt,fi)=>{Mc(Mt,{get isLiveActive(){return n(ir)},isMobile:!0,get ariaLabel(){return n(rr)}})},$$slots:{default:!0}})};M(wo,Xe=>{!Ie()&&q()&&Xe(wn)})}var So=P(wo,2);{var ar=Xe=>{let Mt=f(()=>Ie()?ue():Z()),fi=f(()=>Ie()?pe():B()),Lo=f(()=>!e.showControls);mc(Xe,{get showDuration(){return n(Or)},get position(){return n(Mt)},get duration(){return n(fi)},isMobile:!0,get isHidden(){return n(Lo)},get ref(){return mt.time},set ref(Mo){mt.time=Mo}})};M(So,Xe=>{n(Li)&&Xe(ar)})}var ro=P(So,2);let Sr=f(()=>!n(Wo));Bo(ro,{className:"w-max",get disabled(){return n(Sr)},get ref(){return mt.episodes},set ref(Xe){mt.episodes=Xe},children:(Xe,Mt)=>{var fi=Re(),Lo=se(fi);{var Mo=Co=>{var ho=Nw(),Vo=P(se(ho),2);yc(Vo,{get position(){return Z()},get duration(){return B()},get timeCodes(){return Ri}}),b(Co,ho)};M(Lo,Co=>{n(Wo)&&Co(Mo)})}b(Xe,fi)},$$slots:{default:!0}}),S(ui),it(ui,Xe=>ei.bottomLeft=Xe,()=>ei==null?void 0:ei.bottomLeft);var Ao=P(ui,2),Sn=C(Ao);{var us=Xe=>{Bo(Xe,{get ref(){return mt.volume},set ref(Mt){mt.volume=Mt},children:(Mt,fi)=>{yp(Mt,{get muted(){return n(or)},click:Fn})},$$slots:{default:!0}})};M(Sn,Xe=>{n(ls)&&Xe(us)})}var Fr=P(Sn,2);{var ps=Xe=>{Bo(Xe,{get ref(){return mt.settings},set ref(Mt){mt.settings=Mt},children:(Mt,fi)=>{od(Mt,{get ref$(){return Ko}})},$$slots:{default:!0}})};M(Fr,Xe=>{n(Hn)&&Xe(ps)})}var so=P(Fr,2);{var fs=Xe=>{Bo(Xe,{get ref(){return mt.fullscreen},set ref(Mt){mt.fullscreen=Mt},children:(Mt,fi)=>{hc(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return X()}})},$$slots:{default:!0}})};M(so,Xe=>{n(Nr)&&Xe(fs)})}S(Ao),it(Ao,Xe=>ei.bottomRight=Xe,()=>ei==null?void 0:ei.bottomRight),S(yt),it(yt,Xe=>me(Xe),()=>me());var Ur=P(yt,2);let ko=f(()=>!e.showControls);rl(Ur,{get isHidden(){return n(ko)},get isAds(){return Ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return z()},get ref(){return mt.timeline},set ref(Xe){mt.timeline=Xe}}),S(xn),it(xn,Xe=>ei.bottom=Xe,()=>ei==null?void 0:ei.bottom),S(Di),it(Di,Xe=>fe(Xe),()=>fe());var zr=P(Di,2);{var Wn=Xe=>{Ic(Xe,{get ref(){return mt.interactiveTimeIndicator},set ref(Mt){mt.interactiveTimeIndicator=Mt}})};M(zr,Xe=>{xo&&Xe(Wn)})}N((Xe,Mt)=>{sr=ie(Di,1,"wrapper-bottom mobile s-17",null,sr,Xe),Ke(Di,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Hr=ie(xn,1,"controls-wrapper s-17",null,Hr,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:X()})]),b(t,yn),F(),o()}tt(["click"]);function Rc(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(I,"$isMobile",i),a=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),s=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),m=h(e,"showAutoplayNext",3,!1),p=h(e,"isOneVideoPlaylist",3,!1),v=h(e,"customFullscreenSupported",3,!0),$=h(e,"endScreenShown",3,!1),y=h(e,"onDisabledPlayPrevChapterClick",3,kv.noop),g=h(e,"onDisabledSeekToInteractiveClick",3,kv.noop),I=ye().ui.isMobile,T=K(!1);Vt(()=>{let V=setTimeout(()=>O(T,!0),0);return()=>clearTimeout(V)});var D=Re(),A=se(D);{var E=V=>{var q=Re(),L=se(q);{var z=te=>{Av(te,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return v()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return g()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(ee){l(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})},j=te=>{wv(te,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return m()},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(ee){l(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})};M(L,te=>{r()?te(z):te(j,!1)})}b(V,q)};M(A,V=>{n(T)&&V(E)})}b(t,D),F(),o()}var Fw=Ae('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Dc(t,e){H(e,!0);let i=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${fn(e.size)}${n(i)}`);Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=Fw();b(r,l)},$$slots:{default:!0}}),F()}var Uw=Ae('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function Lv(t,e){H(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`seek-icon-${i()?"backward":"forward"}`);Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=Uw();b(a,d)},$$slots:{default:!0}}),F()}var zw=k('<span class="hot-key-helpers-text s-n"> </span>'),Ww=k('<div data-testid="hotkey-helper-icon" class="s-n"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Kw=k("<div><!></div>"),qw={hash:"s-n",code:'.hot-key-helpers-container.s-n{align-items:center;animation:s-n-fadeIn ease var(--controls-transition-duration);box-sizing:border-box;display:flex;flex-direction:column;height:120px;left:calc(50% - 100px);padding-top:14px;position:absolute;top:calc(50% - 40px);width:200px;z-index:var(--hot-key-helpers-container-z-index)}.hot-key-helpers-container--left.s-n{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-n{left:calc(75% - 100px)}.hot-key-helpers-text.s-n{display:-webkit-box;font-feature-settings:"clig" off,"liga" off;font-size:15px;font-style:normal;font-weight:600;letter-spacing:-.105px;-webkit-line-clamp:2;line-height:20px;margin-top:4px;max-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 0 5px rgba(0,0,0,.16);white-space:pre-wrap;width:100%;-webkit-box-orient:vertical}.hidden.s-n{animation:s-n-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-n-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-n-fadeOut{0%{opacity:1}to{opacity:0}}'};function Mv(t,e){H(e,!0),Q(t,qw);let[i,o]=Be(),r=()=>w(e.data,"$data",i),a=ye(),{features:l}=Rt(),d=a.ui.t,s=f(()=>!r()),u=f(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=f(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=f(()=>{var I;return(I=r())==null?void 0:I.type}),v=f(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var $=Kw();let y;var g=C($);{var x=I=>{var T=Ww(),D=se(T),A=C(D);{var E=fe=>{let me=f(()=>n(p)==="BACKWARD_SEEK");Lv(fe,{get reversed(){return n(me)},shadow:!0})};M(A,fe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&fe(E)})}var V=P(A,2);{var q=fe=>{Qs(fe,{get size(){return"48"},shadow:!0})};M(V,fe=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&fe(q)})}var L=P(V,2);{var z=fe=>{_r(fe,{get size(){return"48"},shadow:!0})};M(L,fe=>{n(p)==="PLAY"&&!l.playbackStatusShow&&fe(z)})}var j=P(L,2);{var te=fe=>{Ec(fe,{get size(){return"48"},shadow:!0})};M(j,fe=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&fe(te)})}var ee=P(j,2);{var oe=fe=>{ga(fe,{get size(){return"48"},type:"off",shadow:!0})};M(ee,fe=>{n(p)==="SUBTITLES_OFF"&&fe(oe)})}var ae=P(ee,2);{var le=fe=>{ga(fe,{get size(){return"48"},shadow:!0})};M(ae,fe=>{n(p)==="SUBTITLES_ON"&&fe(le)})}var ce=P(ae,2);{var X=fe=>{let me=f(()=>n(p)==="RATE_DOWN");Dc(fe,{get size(){return"48"},get reversed(){return n(me)},testId:"rate-change-icon",shadow:!0})};M(ce,fe=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&fe(X)})}var _e=P(ce,2);{var Ee=fe=>{let me=f(()=>n(p)==="EPISODE_PREV");_a(fe,{get size(){return"48"},get reversed(){return n(me)},shadow:!0})};M(_e,fe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&fe(Ee)})}var de=P(_e,2);{var ze=fe=>{ha(fe,{get size(){return"48"},volume:0,shadow:!0})};M(de,fe=>{n(p)==="MUTE"&&fe(ze)})}var ue=P(de,2);{var pe=fe=>{ha(fe,{get size(){return"48"},volume:1,shadow:!0})};M(ue,fe=>{n(p)==="VOLUME"&&fe(pe)})}S(D);var Z=P(D,2);{var B=fe=>{var me=zw(),Ie=C(me,!0);S(me),N(()=>ge(Ie,n(v))),b(fe,me)};M(Z,fe=>{n(v)&&fe(B)})}N(()=>De(D,"data-type",n(p))),b(I,T)};M(g,I=>{!n(s)&&n(p)&&I(x)})}S($),N(I=>y=ie($,1,"hot-key-helpers-container s-n",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),b(t,$),F(),o()}var Qw=(t,e,i,o,r,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},Gw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Yw=k('<div tabindex="0" role="button"><div class="button-block s-12" aria-hidden="true"><div class="button-row s-12"><div class="button button-up s-12"><!></div> <div class="button button-right s-12"><!></div></div> <div class="button-row s-12"><div class="button button-left s-12"><!></div> <div class="button button-down s-12"><!></div></div></div></div>'),jw={hash:"s-12",code:".immersive-controls.s-12{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-12{left:20px;top:50px}.button-block.s-12{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-12{display:flex;flex-direction:row;position:relative}.button.s-12{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-12 svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-12 svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-12 svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-12 svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-12 svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-12:hover svg{opacity:1}"};function Oc(t,e){H(e,!0),Q(t,jw);let i=h(e,"isShifted",3,!1),o=ye(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=G("aria_label_spherical_control");var p=Yw();let v;p.__keydown=[Qw,r,a,l,s,d],p.__keyup=[Gw,r,u];var $=C(p),y=C($),g=C(y);g.__mousedown=a,g.__mouseup=u;var x=C(g);Vr(x,{direction:"up",useBtnColor:!0}),S(g);var I=P(g,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Vr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var D=P(y,2),A=C(D);A.__mousedown=s,A.__mouseup=u;var E=C(A);Vr(E,{direction:"up",useBtnColor:!0}),S(A);var V=P(A,2);V.__mousedown=l,V.__mouseup=u;var q=C(V);Vr(q,{direction:"up",useBtnColor:!0}),S(V),S(D),S($),S(p),N(L=>{v=ie(p,1,"immersive-controls s-12",null,v,L),De(p,"aria-label",m)},[()=>({"m-shifted":i()})]),bt("mouseleave",g,u),bt("mouseleave",I,u),bt("mouseleave",A,u),bt("mouseleave",V,u),b(t,p),F()}tt(["keydown","keyup","mousedown","mouseup"]);var Ys=require("@vkontakte/videoplayer-shared/es2015");var i$=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var xp=class{constructor(){this.flickeringTimeout=i$(1e3);this.subscriptions=new Ys.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ys.ValueSubject([]);this.captionsPrepared$=new Ys.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ys.filter)(()=>this.isEnabled()),(0,Ys.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var Xw=k('<span class="caption-line s-e"><span class="caption-segment s-e"> </span></span>'),Zw=k('<span class="caption-line s-e"><span class="caption-segment s-e"></span></span>'),Jw=k('<span class="caption-line s-e"><span class="caption-segment s-e"> </span></span>'),eS=k('<div><span class="caption s-e"><!></span></div>'),tS=k("<div><!></div>"),iS={hash:"s-e",code:".subtitles-container.s-e{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-e{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-e{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-e .subtitles-caption:where(.s-e){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-e{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-e{bottom:8%}.subtitles-container.auto.s-e .subtitles-caption:where(.s-e){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-e{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-e .caption:where(.s-e){width:100%}.caption-line.s-e{display:block;text-align:center}.subtitles-container.auto.s-e .caption-line:where(.s-e){text-align:left}.caption-segment.s-e{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function ll(t,e){H(e,!0),Q(t,iS);let[i,o]=Be(),r=()=>w(v,"$currentSubtitle$",i),a=()=>w(y,"$isLive$",i),l=()=>w(g,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),s=()=>w($,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),m=ye(),p=Rt(),v=m.state.currentSubtitle$,$=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,g=m.ui.isFullscreen,x=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),T=f(()=>!!a()),D=f(()=>e.playerSize.width*.02),A=f(()=>u()&&!l()||n(D)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(D)),E=K(null);Fe(()=>{var ee,oe,ae;(ee=n(E))==null||ee.setIsAuto(n(I)),(oe=n(E))==null||oe.setIsLive(n(T)),(ae=n(E))==null||ae.setCaptions(e.captions)});let V=K(si([[]]));Vt(()=>{O(E,new xp().subscribe(),!0);let ee=n(E).captionsPrepared$.subscribe(oe=>{O(V,oe,!0)});return()=>{var oe;(oe=n(E))==null||oe.destroy(),ee.unsubscribe()}}),Vt(()=>{if(n(I)){let ee=window.setTimeout(()=>{$.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(ee)}}else $.set(!1)});let q=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var L=tS();let z;var j=C(L);{var te=ee=>{var oe=eS();let ae;var le=C(oe),ce=C(le);{var X=Ee=>{var de=Xw(),ze=C(de),ue=C(ze,!0);S(ze),S(de),N(pe=>{var Z;Ke(ze,`font-size: ${(Z=n(A))!=null?Z:""}px`),ge(ue,pe)},[()=>G("subtitles_auto_caption")]),b(Ee,de)},_e=(Ee,de)=>{{var ze=pe=>{var Z=Re(),B=se(Z);Ci(B,17,()=>n(V),Wd,(fe,me)=>{var Ie=Zw(),nt=C(Ie);Ci(nt,21,()=>n(me),({value:Me,timeAppeared:be})=>be,(Me,be)=>{let W=()=>n(be).value,Ce=()=>n(be).timeAppeared;var ke=Re(),Qe=se(ke);{var Te=we=>{var He=$s();N(()=>ge(He,W())),b(we,He)};M(Qe,we=>{(!Ce()||Ce()<=e.position)&&we(Te)})}b(Me,ke)}),S(nt),S(Ie),N(()=>{var Me;return Ke(nt,`font-size: ${(Me=n(A))!=null?Me:""}px`)}),b(fe,Ie)}),b(pe,Z)},ue=pe=>{var Z=Re(),B=se(Z);Ci(B,17,()=>e.captions,({value:fe})=>fe,(fe,me)=>{let Ie=()=>n(me).value;var nt=Jw(),Me=C(nt),be=C(Me,!0);S(Me),S(nt),N(()=>{var W;Ke(Me,`font-size: ${(W=n(A))!=null?W:""}px`),ge(be,Ie())}),b(fe,nt)}),b(pe,Z)};M(Ee,pe=>{var Z;n(I)&&((Z=n(V))!=null&&Z.length)?pe(ze):pe(ue,!1)},de)}};M(ce,Ee=>{n(I)&&s()?Ee(X):Ee(_e,!1)})}S(le),S(oe),N(Ee=>{var de;ae=ie(oe,1,"subtitles-caption s-e",null,ae,Ee),Ke(oe,`--subtitles-caption-margin: ${(de=n(q))!=null?de:""}%`)},[()=>({mobile:u()})]),b(ee,oe)};M(j,ee=>{var oe;(e.captions.length||(oe=n(V))!=null&&oe.length)&&ee(te)})}S(L),N(ee=>z=ie(L,1,"subtitles-container s-e",null,z,ee),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),b(t,L),F(),o()}var o$=require("@vkontakte/videoplayer-core/es2015");var oS=k('<div class="text s-u"> </div>'),nS=k('<div><div class="icon_wrapper s-u"><!></div> <!></div>'),rS={hash:"s-u",code:".wrapper.s-u{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-u{background-size:cover}.icon_wrapper.s-u{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-u{margin-top:20px}"};function Nc(t,e){H(e,!0),Q(t,rS);let i=h(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Rt();var r=nS();let a;r.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},r.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)},r.__dblclick=function(...m){var p;(p=e.onDblClick)==null||p.apply(this,m)};var l=C(r),d=C(l);bc(d,{get size(){return"48"},get iconState(){return o$.ChromecastState.CONNECTED}}),S(l);var s=P(l,2);{var u=m=>{var p=oS(),v=C(p);S(p),N(()=>{var $;return ge(v,`Видео воспроизводится на ${($=i())!=null?$:""}`)}),b(m,p)};M(s,m=>{i()&&m(u)})}S(r),N(m=>{a=ie(r,1,"wrapper s-u",null,a,m),Ke(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),b(t,r),F()}tt(["contextmenu","click","dblclick"]);var sS=Ae('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 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.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function Vv(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=sS();b(e,o)},$$slots:{default:!0}})}var aS=k('<div class="container s-5"><!></div>'),lS={hash:"s-5",code:".container.s-5{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function dl(t){Q(t,lS);var e=aS(),i=C(e);Vv(i,{}),S(e),b(t,e)}var dS=k('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),cS=k('<div data-testid="unstarted-thumb"><!></div>'),uS={hash:"s-a",code:".container.s-a{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-a{opacity:0;visibility:hidden}.container.bgCover.s-a{background-size:cover}.playButton.s-a{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-a,.playButtonBackground.s-a{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-a{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-a:hover .playButtonBackground:where(.s-a){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-a svg{position:relative}"};function cl(t,e){H(e,!0),Q(t,uS);let i=h(e,"iconVisible",3,!0),o=ye(),r=Rt(),a=o.ui.startedByKeyboard$,l=G("tooltip_play"),d=$=>{var g;let y=$.code;["Enter","Space"].includes(y)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(g=e.startVideo)==null||g.call(e))},s=$=>{var y,g;$.stopPropagation(),(y=e.startVideo)==null||y.call(e),(g=e.onClick)==null||g.call(e,$)};var u=cS();let m;u.__click=s,u.__contextmenu=function(...$){var y;(y=e.onContextMenu)==null||y.apply(this,$)};var p=C(u);{var v=$=>{var y=dS();y.__keydown=d;var g=P(C(y),2);_r(g,{get size(){return"48"}}),S(y),N(()=>De(y,"aria-label",l)),b($,y)};M(p,$=>{i()&&$(v)})}return S(u),N($=>{m=ie(u,1,"container s-a",null,m,$),Ke(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),F({handlePressKey:d,handleClick:s})}tt(["click","contextmenu","keydown"]);var pS=k('<span class="text s-s"> </span>'),fS=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},mS=k('<a target="_blank" class="link s-s"><!></a>'),vS=(t,e)=>e.onTitleClicked(),gS=k("<button><!></button>"),hS=k('<div data-testid="video_title"><!></div>'),_S={hash:"s-s",code:".title.s-s{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity;z-index:var(--controls-container-z-index)}.link.s-s,.title.s-s{color:var(--white)}.link.s-s{pointer-events:auto;text-decoration:none}.link.s-s:hover{text-decoration:underline}.text.s-s{pointer-events:auto}.size-sm.s-s{font-size:14px;font-weight:500;line-height:18px}.hidden.s-s{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Rv(t,e){H(e,!0),Q(t,_S);let i=$=>{var y=pS(),g=C(y,!0);S(y),it(y,x=>l(x),()=>l()),N(()=>ge(g,o())),bt("mouseenter",y,function(...x){var I;(I=e.onMouseEnter)==null||I.apply(this,x)}),bt("mouseleave",y,function(...x){var I;(I=e.onMouseLeave)==null||I.apply(this,x)}),b($,y)},o=h(e,"title",3,""),r=h(e,"isHidden",3,!1),a=h(e,"size",3,"md"),l=h(e,"ref",15),d=K(void 0);Vt(()=>{var y;requestAnimationFrame(()=>{var g;(g=e.onVisibilityChanged)==null||g.call(e,!0)});function $(g){var x;g.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",$),()=>{var g;return(g=n(d))==null?void 0:g.removeEventListener("transitionend",$)}});var s=hS();let u;var m=C(s);{var p=$=>{var y=mS();y.__click=[fS,e];var g=C(y);i(g),S(y),N(()=>De(y,"href",e.titleLinkHref)),b($,y)},v=($,y)=>{{var g=I=>{var T=gS();T.__click=[vS,e];var D=C(T);i(D),S(T),b(I,T)},x=I=>{i(I)};M($,I=>{e.onTitleClicked?I(g):I(x,!1)},y)}};M(m,$=>{e.titleLinkHref?$(p):$(v,!1)})}S(s),it(s,$=>O(d,$),()=>n(d)),N($=>u=ie(s,1,`title size-${a()}`,"s-s",u,$),[()=>({hidden:r()})]),b(t,s),F()}tt(["click"]);var n$=require("@vkontakte/videoplayer-shared/es2015");var bS=k('<div class="timer__cell cell s-1d"><span class="cell__value s-1d"> </span> <span class="cell__unit s-1d"> </span></div> <span class="timer__points s-1d"> </span>',1),$S=k('<div class="timer__cell cell s-1d"><span class="cell__value s-1d"> </span> <span class="cell__unit s-1d"> </span></div> <span class="timer__points s-1d"> </span>',1),yS=k('<div class="timer__cell cell s-1d"><span class="cell__value s-1d"> </span> <span class="cell__unit s-1d"> </span></div> <span class="timer__points s-1d"> </span>',1),xS=k('<div class="timer__cell cell s-1d"><span class="cell__value s-1d"> </span> <span class="cell__unit s-1d"> </span></div>'),wS=k("<div><!> <!> <!> <!></div>"),SS={hash:"s-1d",code:".timer__container.s-1d{align-items:flex-start;display:flex;justify-content:center}.cell.s-1d{align-items:center;display:flex;flex-direction:column}.cell__value.s-1d{font-size:48px;font-weight:600;line-height:1.2}.small.s-1d .cell__value:where(.s-1d){font-size:24px}.cell__unit.s-1d{font-size:14px;font-weight:400;line-height:1.2}.small.s-1d .cell__unit:where(.s-1d){font-size:12px}.timer__points.s-1d{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1d .timer__points:where(.s-1d){font-size:20px}"};function Dv(t,e){H(e,!0),Q(t,SS);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=L=>String(L).padStart(2,"0"),m=L=>Math.max(L.length,1),p=L=>`${(e.isSmallSize?s:d)*m(L)}px`,v=L=>{let z=Math.floor(L/86400);z&&(L-=z*86400,O(i,u(z),!0));let j=Math.floor(L/3600);O(o,u(j),!0);let te=Math.floor(L/60)%60;O(r,u(te),!0);let ee=L%60;O(a,u(ee),!0)},$=()=>{let L=Math.floor(Date.now()/1e3),z=e.startTime-L;v(z),z>=1?l=requestAnimationFrame($):e.onTimerOver()};Vt(()=>{l=requestAnimationFrame($)}),pn(()=>{cancelAnimationFrame(l)});var y=wS();let g;var x=C(y);{var I=L=>{var z=bS(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),N((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(i)),ge(le,Ee),ge(X,de)},[()=>p(n(i)),()=>G("waiting_live_day_value"),()=>G("waiting_live_colon")]),b(L,z)};M(x,L=>{n(i)&&L(I)})}var T=P(x,2);{var D=L=>{var z=$S(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),N((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(o)),ge(le,Ee),ge(X,de)},[()=>p(n(o)),()=>G("waiting_live_hour_value"),()=>G("waiting_live_colon")]),b(L,z)};M(T,L=>{n(o)&&L(D)})}var A=P(T,2);{var E=L=>{var z=yS(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),N((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(r)),ge(le,Ee),ge(X,de)},[()=>p(n(r)),()=>G("waiting_live_minute_value"),()=>G("waiting_live_colon")]),b(L,z)};M(A,L=>{n(r)&&L(E)})}var V=P(A,2);{var q=L=>{var z=xS();let j;var te=C(z),ee=C(te,!0);S(te);var oe=P(te,2),ae=C(oe,!0);S(oe),S(z),N((le,ce)=>{j=Ke(z,"",j,{width:le}),ge(ee,n(a)),ge(ae,ce)},[()=>p(n(a)),()=>G("waiting_live_second_value")]),b(L,z)};M(V,L=>{n(a)&&L(q)})}S(y),N(L=>g=ie(y,1,"timer__container s-1d",null,g,L),[()=>({small:e.isSmallSize})]),b(t,y),F()}var CS=k('<div class="waiting s-v"><span> </span></div>'),TS=k('<div class="upcoming-timer timer s-v"><span> </span> <!></div>'),IS=k('<div class="waiting-container s-v"><!></div>'),ES={hash:"s-v",code:'.waiting-container.s-v{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-v,.waiting-container.s-v:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-v:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-v{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-v{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-v{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-v{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-v{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-v{font-size:15px}.medium.s-v{font-size:17px}'};function Bc(t,e){H(e,!0),Q(t,ES);let i=h(e,"startTime",3,0),o=f(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),a=K(void 0),l=0,d=K(void 0),s=K(void 0),u=f(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,n$.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;Fe(()=>{n(s),n(d),n(o),p==null||p()}),pn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=IS();v.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},v.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var $=C(v);{var y=x=>{var I=CS(),T=C(I);let D;var A=C(T,!0);S(T),S(I),it(I,E=>O(r,E),()=>n(r)),N((E,V)=>{D=ie(T,1,"waiting__title s-v",null,D,E),ge(A,V)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_upcoming_title")]),b(x,I)},g=x=>{var I=TS(),T=C(I);let D;var A=C(T,!0);S(T);var E=P(T,2);let V=f(()=>n(u)||n(m)),q=f(()=>i()||0);Dv(E,{get isSmallSize(){return n(V)},get startTime(){return n(q)},onTimerOver:()=>O(o,!0)}),S(I),it(I,L=>O(a,L),()=>n(a)),N((L,z)=>{D=ie(T,1,"timer__title s-v",null,D,L),ge(A,z)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_timer_title")]),b(x,I)};M($,x=>{n(o)?x(y):x(g,!1)})}S(v),N(()=>Ke(v,`background-image: url(${e.thumbUrl})`)),Vn(v,"clientWidth",x=>O(d,x)),Vn(v,"clientHeight",x=>O(s,x)),b(t,v),F()}tt(["contextmenu","click"]);var PS=k('<div class="waiting-container s-q"><div class="waiting-caption s-q"><!> <p class="waiting-title s-q"> </p></div></div>'),AS={hash:"s-q",code:'.waiting-container.s-q{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-q,.waiting-container.s-q:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-q:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-q{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-q{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function ul(t,e){H(e,!0),Q(t,AS);let i=h(e,"thumbUrl",3,""),o={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=PS();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=C(a),d=C(l);ja(d,{style:"position: static; transform: translate(0, 0)"});var s=P(d,2),u=C(s,!0);S(s),S(l),S(a),N(()=>{Ke(a,`background-image: url('${i()}')`),ge(u,n(r))}),b(t,a),F()}tt(["contextmenu","click"]);var kS=Ae('<path 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>');function Ov(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=kS();b(e,o)},$$slots:{default:!0}})}var LS=k('<div class="select-icon s-1w"><!></div>'),MS={hash:"s-1w",code:".select-icon.s-1w{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Hc(t){Q(t,MS);var e=LS(),i=C(e);Ov(i,{}),S(e),b(t,e)}var VS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},RS=(t,e)=>{Jl(t,()=>e.item.selectItem(e.item.value))},DS=k("<p> </p>"),OS=k('<p class="sublabel s-1t"> </p>'),NS=k('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),BS={hash:"s-1t",code:".menu-item-value.s-1t{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1t{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1t,.sublabel.s-1t{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1t{opacity:.5}"};function Nv(t,e){H(e,!0),Q(t,BS);let i=h(e,"isMobile",3,!1);var o=NS();let r;o.__click=[VS,e],o.__keydown=[RS,e];var a=C(o);{var l=y=>{Hc(y,{})};M(a,y=>{e.item.selected&&y(l)})}var d=P(a,2);let s;var u=C(d);{var m=y=>{var g=Re(),x=se(g);Wi(x,()=>e.item.valueComponent,(I,T)=>{T(I,Jr(()=>{var D;return(D=e.item.valueComponentParams)!=null?D:{}}))}),b(y,g)},p=y=>{var g=DS();let x;var I=C(g,!0);S(g),N(T=>{var D;x=ie(g,1,"label s-1t",null,x,T),ge(I,(D=e.item.label)!=null?D:e.item.value)},[()=>({mobile:i()})]),b(y,g)};M(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=P(u,2);{var $=y=>{var g=OS(),x=C(g,!0);S(g),N(()=>ge(x,e.item.sublabel)),b(y,g)};M(v,y=>{e.item.sublabel&&y($)})}S(d),S(o),N((y,g,x)=>{var I;r=ie(o,1,"item",null,r,y),De(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),De(o,"aria-label",g),De(o,"data-testid",e.item.dataTestid),s=ie(d,1,"menu-item-value s-1t",null,s,x),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,g;return(g=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?g:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}tt(["click","keydown"]);var HS=k('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Bv(t,e){H(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>g=>Zu(g,n(r)));var l=HS();let d;l.__click=function(...g){var x;(x=n(r))==null||x.apply(this,g)},l.__keydown=function(...g){var x;(x=n(a))==null||x.apply(this,g)};var s=C(l);{var u=g=>{Hc(g,{})};M(s,g=>{e.item.selected&&g(u)})}var m=P(s,2);let p;var v=C(m);{var $=g=>{var x=Re();let I=f(()=>e.item.valueComponent);var T=se(x);Wi(T,()=>n(I),(D,A)=>{A(D,Jr(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(g,x)},y=g=>{var x=$s();N(()=>ge(x,e.item.label)),b(g,x)};M(v,g=>{e.item.valueComponent?g($):g(y,!1)})}S(m),S(l),it(l,g=>o(o()[e.item.id]=g,!0),()=>{var g;return(g=o())==null?void 0:g[e.item.id]}),N((g,x)=>{var I;d=ie(l,1,"item",null,d,g),De(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),De(l,"data-testid",e.item.id),p=ie(m,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}tt(["click","keydown"]);var os={"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 US=(t,e)=>{gb(t,e.returnFromSubMenu,e.closeSettingsMenu)},zS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},WS=(t,e)=>{lc(t)&&(Rr(t),e.returnFromSubMenu())},KS=k('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),qS={hash:"s-1l",code:".sub-menu.s-1l{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1l .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1l{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1l{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1l .items:where(.s-1l) .item.header:where(.s-1l){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1l .title:where(.s-1l){margin-left:8px}.sub-menu.s-1l .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1l .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1l .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1l .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1l .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1l .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1l .item .sublabel{font-size:12px;line-height:14px}.item.s-1l:not(.mobile) p:where(.s-1l),.sub-menu.s-1l .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Fv(t,e){H(e,!0),Q(t,qS);let[i,o]=Be(),r=()=>w(p,"$isFullscreen",i),a=()=>w(v,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),s=h(e,"ariaLabelReturnFromSubMenu",19,()=>G("aria_label_submenu_back")),u=h(e,"listRef",15);Vt(()=>{let ee=e.items.findIndex(oe=>oe.selected);u().children[ee+1].focus()});let m=ye(),p=m.ui.isFullscreen,v=m.ui.playerSize,$=K(void 0),y=K(0),g=K(0),x=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(g)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var T=KS();let D;var A=C(T);let E;A.__keydown=[US,e];var V=C(A);let q;V.__click=[zS,e],V.__keydown=[WS,e];var L=C(V);Vr(L,{direction:"left"});var z=P(L,2),j=C(z,!0);S(z),S(V),it(V,ee=>O($,ee),()=>n($));var te=P(V,2);Ci(te,17,()=>e.items,Wd,(ee,oe)=>{var ae=Re(),le=se(ae);{var ce=_e=>{Nv(_e,{get item(){return n(oe)},get isMobile(){return l()}})},X=(_e,Ee)=>{{var de=ze=>{Bv(ze,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};M(_e,ze=>{n(oe).type==="OPEN_SUB_MENU"&&ze(de)},Ee)}};M(le,_e=>{n(oe).type==="SELECT_VALUE"?_e(ce):_e(X,!1)})}b(ee,ae)}),S(A),it(A,ee=>u(ee),()=>u()),S(T),N((ee,oe,ae)=>{D=ie(T,1,"sub-menu menu s-1l",null,D,ee),De(T,"data-testid",`${e.id}-sub-menu`),Ke(T,`min-width: ${n(I)}px`),E=ie(A,1,"items s-1l",null,E,oe),Ke(A,n(x)),q=ie(V,1,"item header back s-1l",null,q,ae),De(V,"aria-label",s()),ge(j,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Vn(V,"clientWidth",ee=>O(y,ee)),Vn(V,"clientHeight",ee=>O(g,ee)),b(t,T),F(),o()}tt(["keydown","click"]);var s$=require("@vkontakte/videoplayer-shared/es2015");var QS=(t,e)=>Zu(t,e()),GS=(t,e)=>{t.stopPropagation(),e()()},YS=k('<div class="value s-1m"> </div>'),jS=k('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),XS={hash:"s-1m",code:".value.s-1m{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Uv(t,e){H(e,!0),Q(t,XS);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,s$.noop),r=h(e,"valueComponent",3,void 0),a=h(e,"iconProps",19,()=>({})),l=h(e,"ref",15);var d=jS();let s;d.__click=[GS,o],d.__keydown=[QS,o];var u=C(d),m=C(u);{var p=T=>{nl(T,{get icon(){return e.icon}})},v=T=>{var D=Re();let A=f(()=>e.icon);var E=se(D);Wi(E,()=>n(A),(V,q)=>{q(V,Jr(a))}),b(T,D)};M(m,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var $=P(u,2),y=C($,!0);S($);var g=P($,2);{var x=T=>{var D=Re();let A=f(r);var E=se(D);Wi(E,()=>n(A),(V,q)=>{q(V,{})}),b(T,D)},I=T=>{var D=YS(),A=C(D,!0);S(D),N(()=>ge(A,e.value)),b(T,D)};M(g,T=>{r()?T(x):T(I,!1)})}S(d),it(d,T=>l(T),()=>l()),N(T=>{s=ie(d,1,"item",null,s,T),De(d,"aria-label",e.ariaLabel),De(d,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),b(t,d),F()}tt(["click","keydown"]);var zv=require("@vkontakte/videoplayer-shared/es2015");var ZS=(t,e)=>{Jl(t,()=>e())},JS=k('<div class="icon icon-error-stub"><div class="inner"></div></div>'),eC=k('<img class="icon" aria-hidden="true"/>'),tC=k('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1n"> </div></li>'),iC={hash:"s-1n",code:".label.s-1n{overflow:hidden;text-overflow:ellipsis}"};function Wv(t,e){H(e,!0),Q(t,iC);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,zv.noop),r=h(e,"closeSettings",3,zv.noop),a=K(!1),l=()=>{O(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=tC();let u;s.__click=d,s.__keydown=[ZS,d];var m=C(s),p=C(m);{var v=x=>{var I=Re(),T=se(I);{var D=E=>{var V=JS();b(E,V)},A=E=>{var V=eC();N(()=>De(V,"src",e.icon)),bt("error",V,l),Ha(V),b(E,V)};M(T,E=>{n(a)?E(D):E(A,!1)})}b(x,I)},$=x=>{var I=Re();let T=f(()=>e.icon);var D=se(I);Wi(D,()=>n(T),(A,E)=>{E(A,{})}),b(x,I)};M(p,x=>{typeof e.icon=="string"?x(v):x($,!1)})}S(m);var y=P(m,2),g=C(y,!0);S(y),S(s),N(x=>{var I;u=ie(s,1,"item",null,u,x),De(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),De(s,"data-testid",e.id),ge(g,e.label)},[()=>({mobile:i()})]),b(t,s),F()}tt(["click","keydown"]);var a$=require("@vkontakte/videoplayer-shared/es2015");var oC=k('<div class="toggle_wrap s-1q"><div></div> <div class="toggle-label s-1q"></div></div>'),nC={hash:"s-1q",code:'.toggle_wrap.s-1q{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1q{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1q:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1q:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1q{overflow:hidden}'};function Kv(t,e){Q(t,nC);let i=h(e,"enabled",3,!1);var o=oC(),r=C(o);let a;Jt(2),S(o),N(l=>a=ie(r,1,"toggle s-1q",null,a,l),[()=>({on:i()})]),b(t,o)}var rC=(t,e,i)=>{hb(t,e(),o=>i()(o))},sC=(t,e,i)=>{t.stopPropagation(),e()(!i())},aC=k('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),lC=k('<li role="menuitem" tabindex="0"><!></li>');function qv(t,e){H(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,a$.noop),r=h(e,"enabled",3,!1),a=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=lC();let s;d.__click=[sC,o,r],d.__keydown=[rC,r,o];var u=C(d);Za(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,p)=>{var v=aC();let $;var y=C(v),g=C(y);{var x=E=>{nl(E,{get icon(){return e.icon}})},I=E=>{var V=Re();let q=f(()=>e.icon);var L=se(V);Wi(L,()=>n(q),(z,j)=>{j(z,{})}),b(E,V)};M(g,E=>{typeof e.icon=="string"?E(x):E(I,!1)})}S(y);var T=P(y,2),D=C(T,!0);S(T);var A=P(T,2);Kv(A,{get enabled(){return r()}}),S(v),N(E=>{$=ie(v,1,"switch-wrapper",null,$,E),ge(D,e.label)},[()=>({mobile:i()})]),b(m,v)},$$slots:{default:!0}}),S(d),N(m=>{var p;s=ie(d,1,"item switch-item",null,s,m),De(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}tt(["click","keydown"]);var Uc=require("@vkontakte/videoplayer-shared/es2015");var l$=()=>{let t=K(si([])),e=f(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var d$=require("@vkontakte/videoplayer-shared/es2015");var dC=k('<div class="quality-icon s-1p"><!></div>'),cC=k('<div class="quality-label s-1p"><span> </span> <!></div>'),uC={hash:"s-1p",code:".quality-label.s-1p{position:relative}.quality.s-1p{font-size:13px;line-height:18px}.quality.sub.s-1p{opacity:.7}.quality-icon.s-1p{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1p svg{color:var(--blue-light)}"};function pl(t,e){H(e,!0),Q(t,uC);let i=h(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,d$.getVideoQualityLabel)(e.quality):""),r=f(()=>np(e.quality));var a=cC(),l=C(a);let d;var s=C(l,!0);S(l);var u=P(l,2);{var m=p=>{var v=dC();let $=f(()=>n(r));var y=C(v);Wi(y,()=>n($),(g,x)=>{x(g,{})}),S(v),N(()=>De(v,"data-testid",`${n(o)}-icon`)),b(p,v)};M(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),N(p=>{d=ie(l,1,"s-1p",null,d,p),ge(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,a),F()}var f$=require("@vkontakte/videoplayer-shared/es2015");var Qv=require("@vkontakte/videoplayer-core/es2015");var c$=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},u$=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=c$({quality:t,availableQualities:e});return i?t===Qv.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o},p$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Qv.VideoQuality.INVARIANT?i:`${i}${c$({quality:t,availableQualities:e})}`:"...";var pC=k('<div class="menu-item-value-wrapper s-1s"><!></div>'),fC={hash:"s-1s",code:".menu-item-value-wrapper.s-1s{line-height:normal}"};function ud(t,e){H(e,!0),Q(t,fC);let[i,o]=Be(),r=()=>w(s,"$currentQuality$",i),a=()=>w(u,"$availableQualities$",i),l=()=>w(m,"$isMobile$",i),d=ye(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==f$.VideoQuality.INVARIANT?p:"")),$=f(()=>p$({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=pC(),g=C(y);let x=f(()=>e.selected?r():void 0);pl(g,{get quality(){return n(x)},get label(){return n($)},get isMobile(){return l()},isSubCase:!0}),S(y),b(t,y),F(),o()}var mC=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},vC={br:!0,span:!0},Gv=(t,e={})=>{var d,s,u,m,p,v,$;if(!t)return t;let i=Ge(Ge({},vC),e),o=Object.keys(i);if(!o.length)return t;let r=mC(o),a=[],l=0;for(let y of t.matchAll(r)){let g=y[0],x=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[x]){a.push(t.slice(l,I)),l=I+g.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Gv(y.groups.childrenhtml,i):"",D=(v=y.groups)!=null&&v.childrenhtml?g.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>T||""):g;a.push(t.slice(l,I),D),l=I+g.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Fc(t,e){H(e,!1);let i=h(e,"message",8),o=Gv(i());rn();var r=Re(),a=se(r);{var l=d=>{var s=Re(),u=se(s);Kd(u,()=>o),b(d,s)};M(a,d=>{o&&d(l)})}b(t,r),F()}var gC=k('<p class="quality-applies sublabel s-1r"><!></p>'),hC={hash:"s-1r",code:".quality-applies.s-1r{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Yv(t,e){H(e,!1),Q(t,hC),rn();var i=gC(),o=C(i);let r=Pn(()=>G("quality_applience",{action:`<span>${G("quality_applience_action")}</span>`}));Fc(o,{get message(){return n(r)}}),S(i),b(t,i),F()}var v$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:G("other_quality"),selected:o,valueComponent:ud,valueComponentParams:{prefix:G("other_quality"),selected:o},children:"quality-other-settings"}},jv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:G("auto_quality_limit"),valueComponent:e?ud:void 0,valueComponentParams:{prefix:G("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),g$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Yv,bottomBordered:!0,children:"quality-appliance"}),Xv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:G("high_quality"),valueComponent:t?ud:void 0,valueComponentParams:{prefix:G("high_quality"),selected:i},sublabel:G("high_quality_description")}),Zv=({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:G("traffic_saving_quality"),valueComponent:t?ud:void 0,valueComponentParams:{prefix:G("traffic_saving_quality"),selected:i},sublabel:G("traffic_saving_quality_description")});var wp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Sp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=xc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return G("audio_stream_display_language_label",{language:r,label:o});{let s=wp(t,d);return G("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=wp(t,d);return G("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=wp(t,d);return G("audio_stream_display_language_index",{language:r,index:s})}}let a=wp(t,e);return G("audio_stream_display_unknown",{index:a})};var _C={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:jv,selected:e&&!o&&!r||!1}),a.push({handler:Zv,selected:o},{handler:Xv,selected:r}),{title:G("submenu_quality"),id:"quality-settings",items:[g$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),v$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:G("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:pl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:G("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:jv,selected:((i=Ku())==null?void 0:i.type)==="auto_quality"},{handler:Zv,selected:((o=Ku())==null?void 0:o.type)==="traffic_saving"},{handler:Xv,selected:((r=Ku())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-tracks":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-tracks",title:G("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:Sp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:G("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:G("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===On?"sub_off":void 0}))})},h$=({subMenuId:t,context:e})=>t?[_C[t](e)]:[];var bC=Ae('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Jv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=bC();b(e,o)},$$slots:{default:!0}})}var $C=Ae('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function eg(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=$C();b(e,o)},$$slots:{default:!0}})}var yC=Ae('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 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.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function tg(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=yC();b(e,o)},$$slots:{default:!0}})}var xC=Ae('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function ig(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=xC();b(e,o)},$$slots:{default:!0}})}var wC=Ae('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 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"></path>');function og(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=wC();b(e,o)},$$slots:{default:!0}})}var SC=Ae('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function Cp(t){Ze(t,{children:(e,i)=>{var o=SC();b(e,o)},$$slots:{default:!0}})}var CC=Ae('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function ng(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=CC();b(e,o)},$$slots:{default:!0}})}var TC=k('<div class="menu-item-value-wrapper s-1v"><!></div>'),IC={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function rg(t,e){H(e,!0),Q(t,IC);let[i,o]=Be(),r=()=>w(u,"$currentQuality$",i),a=()=>w(m,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(v,"$isMobile$",i),s=ye(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,$=f(()=>u$({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=TC(),g=C(y);pl(g,{get quality(){return r()},get label(){return n($)},get isMobile(){return d()}}),S(y),b(t,y),F(),o()}var PC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?G("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_quality",{actual:o}),icon:fc,label:G("menu_quality"),value:e,valueComponent:rg,weight:os["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:os["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:G("aria_label_submenu_traffic_saving"),icon:Jv,label:G("menu_traffic_saving"),enabled:t,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=Sp(t,e);return{id:"audio-tracks-settings",weight:os["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_audio_languages",{actual:i}),icon:eg,label:G("menu_audio_languages"),value:i,children:"audio-tracks"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:os["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_rate",{actual:i}),icon:tg,label:G("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:os["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ga,iconProps:{type:"outline"},label:G("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:os.download,type:"CLICK",onClick:t,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:ig}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:os.report,type:"CLICK",onClick:t,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:og,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:os["copy-data"],type:"CLICK",onClick:t,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:Cp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:os["save-trace-info"],type:"CLICK",onClick:t,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:Cp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:os["debug-info"],type:"CLICK",onClick:t,ariaLabel:G("aria_label_menu_debug_overlay"),label:G("menu_debug_overlay"),icon:ng,isHiddenFor:["desktop"]})},_$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>PC[r](e)),...i.map(r=>ti(Ge({},r),{isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ga)};var kC=(t,e)=>{Xu(t,e)},LC=k('<div><div> </div> <div class="close s-z" data-testid="close-settings-menu"></div></div>'),MC=k('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),VC=k("<div><!> <!></div>"),RC={hash:"s-z",code:'.settings-menu-container.mobile.s-z{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-z ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-z .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-z .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-z .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-z .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-z .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-z .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-z{line-height:40px}.settings-menu.desktop.s-z{min-width:300px}.settings-menu-container.s-z .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-z .menu.mobile.hidden{display:none}.settings-menu-container.s-z .menu .item:not(.switch-item),.settings-menu-container.s-z .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;position:relative;white-space:nowrap}.settings-menu-container.s-z .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-z .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-z .item:not(.switch-item),.settings-menu.s-z .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-z .item.mobile:not(.switch-item),.settings-menu.s-z .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-z .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-z .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-z .item.header.mobile:where(.s-z){border-bottom:var(--divider-border);color:var(--white);column-gap:12px;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:4px}.settings-menu-container.s-z .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-z .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-z .items::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.settings-menu-container.s-z .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-z .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-z{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-z:after,.close.s-z:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-z:before{transform:rotate(45deg)}.close.s-z:after{transform:rotate(-45deg)}'};function zc(t,e){H(e,!0),Q(t,RC);let[i,o]=Be(),r=()=>w(be,"$settingsMenuVisible",i),a=()=>w(W,"$settingsMenuOpenedByKeyboard",i),l=()=>w(pt,"$debugPanelVisible",i),d=()=>w(ke,"$isMobile",i),s=()=>w(at,"$playerSize",i),u=()=>w(Me,"$hasMpegSources$",i),m=()=>w(Qe,"$mobileNotReportControlHidden$",i),p=()=>w(ue,"$autoQualityLimitingAvailable$",i),v=()=>w(X,"$isMinimalView$",i),$=()=>w(Ie,"$availableSubtitlesList$",i),y=()=>w(Te,"$isLiveWithPlaybackSpeed",i),g=()=>w(Ee,"$availableAudioStreams$",i),x=()=>w(fe,"$availablePlaybackRates$",i),I=()=>w(_e,"$currentAudioStream$",i),T=()=>w(B,"$currentPlaybackRate$",i),D=()=>w(we,"$trafficSavingEnabled",i),A=()=>w(de,"$currentQuality$",i),E=()=>w(pe,"$isAutoQualityEnabled$",i),V=()=>w(me,"$currentSubtitle$",i),q=()=>w(dt,"$additionalSettingsMenuItems$",i),L=()=>w(Z,"$isAutoQualityAvailable$",i),z=()=>w(ze,"$availableQualities$",i),j=()=>w(He,"$highQualityEnabled",i),te=h(e,"ref",15,void 0),ee=h(e,"playerControlsHeight",3,0),oe=si({}),ae=si({}),le=ye(),ce=Rt(),X=le.ui.isMinimalView$,_e=le.state.audioStream$,Ee=le.state.availableAudioStreams$,de=le.state.currentQuality$,ze=le.state.availableQualities$,ue=le.state.autoQualityLimitingAvailable$,pe=le.state.isAutoQualityEnabled$,Z=le.state.isAutoQualityAvailable$,B=le.state.currentPlaybackRate$,fe=le.state.availablePlaybackRates$,me=le.state.currentSubtitle$,Ie=le.state.availableSubtitlesList$,nt=le.state.canDownload,Me=le.state.hasMpegSources$,be=le.ui.settingsMenu.visible$,W=le.ui.settingsMenu.openedByBtnKeyboard$,Ce=le.ui.settingsMenu.ref$,ke=le.ui.isMobile,Qe=le.ui.mobileNotReportControlHidden$,Te=le.state.canChangePlaybackSpeed$,we=le.state.trafficSavingEnabled$,He=le.state.highQualityEnabled$,at=le.ui.playerSize,pt=le.ui.debugPanelVisible,Pt=le.state.isInteractiveTime$,dt=le.ui.additionalSettingsMenuItems$,ai=le.ui.t,Tt=le.actions.internal.downloadVideo,Ot=le.actions.internal.closeSettingsMenu,Nt=le.actions.internal.openSettingsSubMenu,qt=le.actions.internal.closeSettingsSubMenu,Le=K(!1),Y=K(void 0),Oe=l$();Fe(()=>{!r()&&Oe.current&&(qt(ae[Oe.current]),Oe.popAllSubMenus())}),Fe(()=>{r()||O(Y,void 0)}),Fe(()=>{!Oe.current&&n(Y)&&vb(oe,n(Y))}),Fe(()=>{te()&&Ce.set(te())});function $e(U){return xt(this,null,function*(){var Xt;Oe.pushSubMenu(U),yield yo(),Nt(U,ae[U]);let ot=(Xt=te())==null?void 0:Xt.firstElementChild;ot&&mm(ot)})}function Ne(U){var ot;U==null||U.stopPropagation(),a()||(ot=e.returnFocus)==null||ot.call(e),Ot(),O(Le,!1)}function vt(U,ot){le.actions.internal.setQuality(U,{appliesTo:ot,byUser:!0}),Ne()}function At(U){le.actions.internal.setAudioStream(U),Ne()}function Se(U,ot){le.actions.internal.setTrafficSavingEnabled(U,ot),ce.features.qualityDetailsSubMenuEnabled&&Ne()}function je(U,ot){le.actions.internal.setHighQualityEnabled(U,ot),Ne()}function Ue(U){le.actions.internal.setPlaybackRate(U),Ne()}function xe(U){le.actions.internal.setSubtitle(U),Ne()}function Bt(){Tt()}function Et(){(0,Uc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function Gt(){Xl(le.actions.internal.getDebugTextData())}let $i=()=>{let U=le.actions.internal.getTraceTextData(),ot=new Blob([...U],{type:"application/json"}),Xt=window.URL.createObjectURL(ot);qa(Xt,"vk_player_trace_info","json")};function hi(){pt.set(!l())}function Vi(){O(Le,!0)}function io(){O(Le,!1)}function di(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ee()}px; overflow: auto;`}let Ti=f(()=>nt&&u()&&!m()),oo=f(()=>ce.features.trafficSaving&&!m()&&p()&&!ce.features.qualityDetailsSubMenuEnabled),Ri=f(()=>!v()&&$().length>0&&!m()),ci=f(()=>!!y()&&!m()),Ki=f(()=>ce.features.audioLanguages&&g().length>=2&&!m()),$t=f(()=>!m());Vt(()=>Pt.subscribe(U=>{U&&!d()&&!n(Le)&&!a()&&Ne()}));let We=f(()=>{let U=[n($t)&&"quality-settings",n(Ki)&&"audio-tracks-settings",n(ci)&&"playback-rate-settings",n(Ri)&&"subtitles-settings",n(oo)&&"traffic-saving-switch",n(Ti)&&"download",ce.showSupport&&"show-support","copy-data",ce.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(ot=>!!ot);return _$({items:U,context:{qualityDetailsSubMenuEnabled:ce.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:I(),availableAudioStreams:g(),currentPlaybackRate:T(),selectPlaybackRate:Ue,trafficSavingEnabled:D(),toggleTrafficSaving:Se,currentQuality:A()||Uc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:V(),isMobile:d(),onDownloadClick:Bt,onCopyDataClick:Gt,onReportProblemClick:Et,onSaveTraceDataClick:$i,toggleShowDebugInfo:hi},additionalSettingsMenuItems:q()})}),rt=f(()=>h$({subMenuId:Oe.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Ue,trafficSavingEnabled:D(),toggleTrafficSaving:Se,currentQuality:A()||Uc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:L()||!1,availableQualities:z(),highQualityEnabled:j(),toggleHighQuality:je,availableAudioStreams:g(),availableSubtitlesList:$(),closeSettingsMenu:Ot,currentAudioStream:I(),isMobile:d(),selectAudioLanguage:At,selectQuality:vt,selectSubtitle:xe}}));var ft=VC();let pi;var qi=C(ft);{var no=U=>{var ot=MC();let Xt;ot.__keydown=[kC,Ot];var _i=C(ot);{var lt=jt=>{var It=LC();let xo;var Fo=C(It),gn=C(Fo,!0);S(Fo);var hn=P(Fo,2);hn.__click=Ne,S(It),N((ki,Ii)=>{xo=ie(It,1,"item header s-z",null,xo,ki),ge(gn,Ii)},[()=>({mobile:d()}),()=>ai("submenu_settings")]),b(jt,It)};M(_i,jt=>{d()&&jt(lt)})}var li=P(_i,2);let yi;Ci(li,21,()=>n(We),jt=>jt.id,(jt,It)=>{var xo=Re(),Fo=se(xo);{var gn=ki=>{Uv(ki,{get isMobile(){return d()},get id(){return n(It).id},get icon(){return n(It).icon},get iconProps(){return n(It).iconProps},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},get value(){return n(It).value},get valueComponent(){return n(It).valueComponent},onClick:()=>{$e(n(It).children),O(Y,n(It).id,!0)},get ref(){return oe[n(It).id]},set ref(Ii){oe[n(It).id]=Ii}})},hn=(ki,Ii)=>{{var _n=Si=>{let Io=f(()=>`${n(It).id}-menu-item`);Wv(Si,{get isMobile(){return d()},get id(){return n(Io)},get onClick(){return n(It).onClick},get icon(){return n(It).icon},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},closeSettings:Ne})},br=(Si,Io)=>{{var Uo=zo=>{let bn=f(()=>`${n(It).id}-menu-item`);qv(zo,{get isMobile(){return d()},get id(){return n(bn)},get onClick(){return n(It).onClick},get icon(){return n(It).icon},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},get enabled(){return n(It).enabled},get tooltipText(){return n(It).tooltipText},get maxTooltipWidth(){return n(It).maxTooltipWidth}})};M(Si,zo=>{n(It).type==="SWITCH"&&zo(Uo)},Io)}};M(ki,Si=>{n(It).type==="CLICK"?Si(_n):Si(br,!1)},Ii)}};M(Fo,ki=>{n(It).type==="OPEN_SUB_MENU"?ki(gn):ki(hn,!1)})}b(jt,xo)}),S(li),it(li,jt=>te(jt),()=>te()),S(ot),N((jt,It,xo)=>{Xt=ie(ot,1,"settings-menu menu s-z",null,Xt,jt),yi=ie(li,1,"items",null,yi,It),Ke(li,xo)},[()=>({desktop:!d(),mobile:d(),hidden:!!Oe.current}),()=>({mobile:d()}),di]),bt("mouseenter",ot,Vi),bt("mouseleave",ot,io),b(U,ot)};M(qi,U=>{r()&&U(no)})}var vn=P(qi,2);Ci(vn,17,()=>n(rt),U=>U.id,(U,ot)=>{let Xt=f(()=>{var _i;return(_i=n(ot).minWidth)!=null?_i:137});Fv(U,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return Oe.popSubMenu},get id(){return n(ot).id},get title(){return n(ot).title},get closeSettingsMenu(){return Ot},openSubMenuList:$e,get items(){return n(ot).items},get minWidth(){return n(Xt)},get refMenuItems(){return oe},get listRef(){return ae[n(ot).id]},set listRef(_i){ae[n(ot).id]=_i}})}),S(ft),N(U=>pi=ie(ft,1,"settings-menu-container s-z",null,pi,U),[()=>({mobile:d(),hidden:!r()})]),b(t,ft),F(),o()}tt(["keydown","click"]);var DC=k('<button class="btn s-1f"> </button>'),OC={hash:"s-1f",code:"button.btn.s-1f{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function sg(t,e){Q(t,OC);var i=DC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),N(()=>ge(o,e.label)),b(t,i)}tt(["click"]);var NC=k('<div class="container s-x"><div class="notification s-x"><div><p class="description s-x"><!></p> <!></div> <!></div></div>'),BC={hash:"s-x",code:".container.s-x{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-x{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-x{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Wc(t,e){H(e,!0),Q(t,BC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=ye(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=NC(),d=C(l),s=C(d),u=C(s),m=C(u);Fc(m,{get message(){return a}}),S(u);var p=P(u,2);{var v=y=>{let g=f(()=>r("slow_video_notification_button"));sg(y,{get label(){return n(g)},get onClick(){return e.onSelectAutoQuality}})};M(p,y=>{o||y(v)})}S(s);var $=P(s,2);Fs($,{get onClick(){return e.onClose}}),S(d),S(l),Bs(3,d,()=>ba,()=>({duration:i})),b(t,l),F()}var Kc=require("@vkontakte/videoplayer-shared/es2015");var fl="annotation",Tp=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",fl),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.ui.isControlsAvailable.set(!1)),{success:!0}}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(r,a){return xt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var v;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:s,hiddenControls:u}=((v=this.store)==null?void 0:v.ui)||{},m=new MutationObserver($=>$.forEach(()=>{let y=Ks(d,this.shadowRootContainer);o.forEach(g=>{let x=s==null?void 0:s[g],I=x?he(x):null,T=u==null?void 0:u[g];I&&(T==null||T.set((0,Kc.isIntersecting)(I,y)))})}));m.observe(d,{childList:!0,subtree:!0}),l.observer=m;let p=new Kc.Subscription;o.forEach($=>{s&&p.add(s[$].subscribe(y=>{let g=u==null?void 0:u[$];y&&y.isDisplayed?g==null||g.set((0,Kc.isIntersecting)(y,Ks(d,this.shadowRootContainer))):g==null||g.set(!1)}))}),l.subs=p})}findSlotElement(e,i,o){return xt(this,null,function*(){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var v,$;($=(v=this.store)==null?void 0:v.ui.hiddenControls[p])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var HC=k('<div class="container s-6"><!></div>'),FC={hash:"s-6",code:".container.s-6{align-items:center;animation-fill-mode:forwards;animation-name:s-6-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-6-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function qc(t,e){H(e,!0),Q(t,FC);let i=h(e,"reversed",3,!1);var o=Re(),r=se(o);Ds(r,()=>e.Icon,a=>{var l=HC(),d=C(l);Wi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),N(()=>Ke(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),F()}var ag=require("@vkontakte/videoplayer-core/es2015"),UC=k('<div class="container s-y"><!></div>'),zC={hash:"s-y",code:".container.s-y{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function lg(t,e){H(e,!0),Q(t,zC);let[i,o]=Be(),r=()=>w(s,"$playbackState$",i),a=()=>w(m,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=ye(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:$}=Rt(),y=0,g=K(null),x=K(!1);Fe(()=>{r()===ag.PlaybackState.PLAYING?O(g,_r,!0):r()===ag.PlaybackState.PAUSED?O(g,Qs,!0):O(g,null)}),Fe(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,O(g,null)},$),()=>{y&&(window.clearTimeout(y),y=0)}}),Fe(()=>{d()&&!n(x)&&(O(x,!0),O(g,null))});var I=Re(),T=se(I);{var D=A=>{var E=UC(),V=C(E);qc(V,{get duration(){return $},get Icon(){return n(g)}}),S(E),b(A,E)};M(T,A=>{n(g)&&v&&A(D)})}b(t,I),F(),o()}var WC=k('<div><div data-testid="video-container"></div></div>'),KC={hash:"s-b",code:".video-container.s-b,.video-wrapper.s-b{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-b{background:var(--black)}.video-container.s-b,.video-wrapper.s-b{z-index:var(--video-container-z-index)}.video-container.s-b{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-b{transition:none}.nocursor.s-b{cursor:none}"};function ml(t,e){H(e,!0),Q(t,KC);let[i,o]=Be(),r=()=>w(p,"$rotateAlpha",i),a=()=>w(v,"$playerSize",i),l=()=>w(m,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),s=()=>w($,"$isPlaying$",i),u=h(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:$,chromecastConnected$:y}}=ye(),{isSmoothVideoRotate:g}=Rt(),x=f(()=>u()&&r()%180?a().height/a().width:1);var I=WC();let T;I.__contextmenu=function(...E){var V;(V=e.onContextMenu)==null||V.apply(this,E)},I.__mousedown=function(...E){var V;(V=e.onMouseDown)==null||V.apply(this,E)},I.__mouseup=function(...E){var V;(V=e.onMouseUp)==null||V.apply(this,E)},I.__click=function(...E){var V;(V=e.onClick)==null||V.apply(this,E)},I.__dblclick=function(...E){var V;(V=e.onDblClick)==null||V.apply(this,E)};var D=C(I);let A;it(D,E=>u(E),()=>u()),S(I),N((E,V)=>{T=ie(I,1,"video-wrapper s-b",null,T,E),A=ie(D,1,"video-container s-b",null,A,V),Ke(D,`transform: rotate(${r()}deg) scale(${n(x)})`),De(D,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!g})]),b(t,I),F(),o()}tt(["contextmenu","mousedown","mouseup","click","dblclick"]);var qC=k('<div><span class="text s-w"> </span> <!></div>'),QC={hash:"s-w",code:".root.s-w{background-color:var(--double-forward-bg);border-radius:100px;color:var(--white);display:flex;gap:4px;left:50%;opacity:0;padding:6px 12px;pointer-events:none;position:absolute;top:24px;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden}.root.s-w,.root.visible.s-w{transform:translateX(-50%)}.root.visible.s-w{opacity:1;visibility:visible}.text.s-w{font-size:13px;font-weight:600;line-height:16px}"};function dg(t,e){H(e,!0),Q(t,QC);let{ui:{t:i}}=ye();var o=qC();let r;var a=C(o),l=C(a,!0);S(a);var d=P(a,2);Dc(d,{get size(){return"16"},fill:"currentColor"}),S(o),N((s,u)=>{r=ie(o,1,"root s-w",null,r,s),ge(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),F()}var GC=k('<div class="container s-t" role="button" data-testid="preview-track-overlay"></div>'),YC={hash:"s-t",code:".container.s-t{align-items:center;background-color:rgba(0,0,0,.48);cursor:pointer;display:flex;height:100%;justify-content:center;position:absolute;width:100%}"};function cg(t,e){H(e,!1),Q(t,YC);let i=ye(),o=i.actions.internal.closePreviewTrack,r=i.ui.t,a=200,l=s=>{s.stopPropagation(),o()};rn();var d=GC();return d.__click=l,N(s=>De(d,"aria-label",s),[()=>r("tooltip_play")],Pn),Bs(3,d,()=>ba,()=>({duration:a})),b(t,d),Bf(e,"handleClick",l),F({handleClick:l})}tt(["click"]);var jC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},XC=k("<div><!></div>"),ZC=k('<div class="spherical-video-icon s-8"><!></div>'),JC=k("<div><!></div>"),eT=k('<div class="settings-menu s-8"><!></div>'),tT=k("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),iT=k("<!> <!> <!>",1),oT=k('<div class="blocked s-8"></div>'),nT=k('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),rT={hash:"s-8",code:".blocked.s-8,.player-wrapper.s-8{height:100%;position:absolute;width:100%}.blocked.s-8{z-index:var(--overlay-container-z-index)}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-8{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function pg(t,e){H(e,!0),Q(t,rT);let[i,o]=Be(),r=()=>w(wr,"$notificationsToShow$",i),a=()=>w(oo,"$playerPhase",i),l=()=>w(no,"$isLoaderVisible",i),d=()=>w(io,"$adPlaybackState",i),s=()=>w(li,"$crashed",i),u=()=>w(_n,"$isInteractiveTime$",i),m=()=>w($t,"$settingsMenuVisible",i),p=()=>w(br,"$isInteractiveExpectation$",i),v=()=>w(hi,"$isMinimalView$",i),$=()=>w(Ki,"$controlsVisible",i),y=()=>w(Io,"$touched",i),g=()=>w(ls,"$graphIsOpened$",i),x=()=>w(Ri,"$isFullscreen",i),I=()=>w(er,"$autoplayNextEnabled$",i),T=()=>w(Xt,"$postrollPassed",i),D=()=>w(vn,"$isEnded$",i),A=()=>w(It,"$currentSubtitle$",i),E=()=>w(Un,"$cursorInside",i),V=()=>w(Eo,"$isControlsAvailable",i),q=()=>w(yr,"$doubleForwardOn$",i),L=()=>w(tr,"$fakeIsPlaying$",i),z=()=>w(rr,"$bottomNoSmooth",i),j=()=>w(Ss,"$interactiveTimeIndicator",i),te=()=>w(Fo,"$playerSize",i),ee=()=>w(hn,"$is3DVideo",i),oe=()=>w(Nn,"$doubleForwardAvailable$",i),ae=()=>w(pi,"$contextMenuVisible$",i),le=()=>w(Vi,"$playbackState$",i),ce=()=>w(Uo,"$hotKeyMapData",i),X=()=>w(rt,"$scrubbingInProgress",i),_e=()=>w(ft,"$volumeChangingInProgress",i),Ee=()=>w(U,"$chromecastConnected$",i),de=()=>w(Ko,"$controlsTimeoutActive",i),ze=()=>w(gn,"$adsPlaybackState",i),ue=()=>w(We,"$settingsMenuOpenedByKeyboard",i),pe=()=>w(Go,"$contextMenuOpenedByKeyboard$",i),Z=()=>w(Cs,"$contextMenuOpenedByHotKey$",i),B=()=>w(Tr,"$contextMenuButtonRef$",i),fe=()=>w(Ts,"$contextMenuLastActiveElem$",i),me=()=>w(ci,"$isFullscreenOpenedByKeyboard",i),Ie=()=>w(bn,"$positionExact$",i),nt=()=>w($i,"$language$",i),Me=()=>w(xa,"$previewTrackActive$",i),be=()=>w(ki,"$icon3DVideoVisible",i),W=()=>w(ot,"$chromecastDeviceName$",i),Ce=()=>w(xo,"$currentSubtitleCaptions$",i),ke=()=>w(di,"$position$",i),Qe=()=>w(Ti,"$duration$",i),Te=()=>w(_i,"$isLive$",i),we=()=>w(lt,"$isPlaying$",i),He=()=>w($r,"$contextMenuPosition$",i),at=()=>w(zo,"$showHotKeyMap",i),pt=()=>w(qi,"$debugPanelVisible",i),Pt=()=>w(Or,"$userActionsDisabled$",i),dt=h(e,"videoContainer",15),ai=h(e,"adsSlotId",3,void 0),Tt=h(e,"adsParams",3,void 0),Ot=h(e,"adsAutoplayParam",3,void 0),Nt=h(e,"duration",3,void 0),qt=h(e,"logoTargetUrl",3,""),Le=h(e,"showNextPrevButtons",3,!1),Y=h(e,"nextButtonActive",3,!1),Oe=h(e,"prevButtonActive",3,!1),$e=h(e,"endScreenVideoTitle",3,void 0),Ne=h(e,"endScreenVideoThumb",3,void 0),vt=h(e,"isOneVideoPlaylist",3,!1),At=h(e,"shadowRootContainer",3,void 0),Se=h(e,"outerContainerRef",3,void 0),je=h(e,"playerStarted",3,!1),Ue=h(e,"fullScreenTarget",3,void 0),xe=h(e,"showMiniTimer",3,!1),Bt=h(e,"showEndScreen",3,!0),Et=h(e,"keyboardControls",15),Gt=e.store.getLogger().createComponentLog("Root component"),$i=e.store.interfaceLanguage$,hi=e.store.ui.isMinimalView$,Vi=e.store.state.playbackState$,io=e.store.ads.playbackState,di=e.store.state.positionWithScrubbing$,Ti=e.store.state.duration$,oo=e.store.playerPhase,Ri=e.store.ui.isFullscreen,ci=e.store.ui.isFullscreenOpenedByKeyboard,Ki=e.store.ui.controlsVisible,$t=e.store.ui.settingsMenu.visible$,We=e.store.ui.settingsMenu.openedByBtnKeyboard$,rt=e.store.ui.scrubbingInProgress,ft=e.store.ui.volumeChangingInProgress,pi=e.store.ui.contextMenu.visible$,qi=e.store.ui.debugPanelVisible,no=e.store.state.isLoaderVisible,vn=e.store.state.isEnded$,U=e.store.state.chromecastConnected$,ot=e.store.state.chromecastDeviceName$,Xt=e.store.ads.postrollPassed,_i=e.store.state.isLive$,lt=e.store.state.isPlaying$,li=e.store.state.crashed$,yi=e.store.webApi.annotationsApi,jt=e.store.webApi.pictureInPictureApi,It=e.store.state.currentSubtitle$,xo=e.store.state.currentSubtitleCaptions$,Fo=e.store.ui.playerSize,gn=e.store.ads.playbackState,hn=e.store.ui.is3DVideo,ki=e.store.ui.icon3DVideoVisible,Ii=e.store.state.isInteractive,_n=e.store.state.isInteractiveTime$,br=e.store.state.isInteractiveExpectation$,Si=e.store.state.hasInteractiveBranches,Io=e.store.ui.touched,Uo=e.store.ui.modals.hotKeyMap.data,zo=e.store.ui.modals.hotKeyMap.show,bn=e.store.state.positionExact$,ns=e.store.ui.overlayContainer$,Ss=e.store.ui.controls.interactiveTimeIndicator,rs=e.store.state.showInteractiveTimeIndicator,$r=e.store.ui.contextMenu.position$,$n=e.store.actions.internal.setQuality,ss=e.store.actions.internal.closeSettingsMenu,er=e.store.ui.autoplayNextEnabled$,Or=e.store.ui.userActionsDisabled,Eo=e.store.ui.isControlsAvailable,as=e.store.ui.videoTitleInfo,yr=e.store.ui.doubleForwardOn$,Nn=e.store.ui.doubleForwardAvailable$,Bn=e.store.actions.internal.getVideoElement,Hn=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:tr,notifications$:Nr,graphIsOpened$:ls}=To(),Li=K(void 0),ds=K(void 0),Wo=K(void 0),ir=K(void 0),xr,or,mt;Uo.set(db());let{closeNotification:ei,notificationsToShow$:wr}=Nr,cs=f(()=>!!r().slow_video),nr=()=>ei("slow_video"),an=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),Fn=K(void 0),rr=re(!1),Br,Ko=re(!1),yn=re(),Un=re(!1),mo=K(!1),Po=K(!1),zn=K(!1),Di=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),sr=f(()=>u()&&!m()&&!(n(mo)||n(Po))&&!(n(zn)&&!p())),xn=!0,Hr=f(()=>e.uiConfig.features.thumbTimer&&!v()&&xe()&&a()==="video"&&!$()&&!s()&&!Ii&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),yt=e.uiConfig.titleShowBehaviour,ui=f(()=>!["video","thumb"].includes(a())||yt==="never"||g()?!1:yt==="fullscreen"?x():!0),Wt=f(()=>yt==="always"||a()==="thumb"?!1:!$()),ln=K(!1),wo=f(()=>(Bt()||e.showAutoplayNext&&I())&&!!$e()&&!!Ne()&&(e.showAds&&T()||!e.showAds)&&D()&&!s()&&!n(ln)&&!Si),wn=f(()=>!v()&&A().value!=="off"&&a()==="video"),So=f(()=>E()&&!($()||n(wo))&&!u()&&V()&&!q()),ar=K(!1),ro=f(()=>L()!==null),{toggle:Sr}=tr,Ao=!1,Sn=null;jt==null||jt.setContext(Ed());let us=()=>{e.autoplay&&!Ii&&e.uiConfig.controls.showOnStartupAtAutoplay&&so(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:us});let Fr=()=>{window.clearTimeout(xr),Ko.set(!1)},ps=()=>{window.clearTimeout(or),yn.set(null)},so=ve=>{Fr(),Ko.set(!0),xr=window.setTimeout(()=>Ko.set(!1),ve);let ht=ve-100;Br=window.setTimeout(()=>{z()&&rr.set(!1)},ht>0?ht:ve)},fs=(ve,ht)=>{ps(),yn.set(ht),or=window.setTimeout(()=>yn.set(null),ve)},Ur=hn.subscribe(ve=>{ki.set(ve),ve&&(window.clearTimeout(mt),mt=window.setTimeout(()=>ki.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ko=()=>xt(null,null,function*(){var ht,ri,Zt,Yo;let ve=ca();if(ve){let Ro=oc(),lo=vo();ve=Ro===lo||Ro===At()}if(ve){so(e.uiConfig.controls.hideTimeoutFullscreen);try{yield jt==null?void 0:jt.exit()}catch(Ro){Gt({message:String(Ro)})}}Ri.set(ve),e.store.getAdmanWrapper().setFullscreen(ve),x()?(ri=(ht=e.store.callbacks)==null?void 0:ht.onFullscreenEnter)==null||ri.call(ht):(Yo=(Zt=e.store.callbacks)==null?void 0:Zt.onFullscreenExit)==null||Yo.call(Zt)}),zr=ve=>{Fo.set(ve)},Wn=()=>{if(n(Li)){let{width:ve,height:ht}=n(Li).getBoundingClientRect();Fo.set({width:ve,height:ht})}};Vt(()=>{var ht;return Yu(ko),e.uiConfig.features.annotationsInside&&(yi==null||yi.init(n(Li))),jt==null||jt.assignPlayerContainer(n(Li)),e.uiConfig.disablePiPResizeHandling||jt==null||jt.setExternalEventHandlers({resize:zr,leavepictureinpicture:Wn}),e.interactiveContainer&&((ht=dt().parentElement)==null||ht.insertBefore(e.interactiveContainer,dt().nextSibling)),()=>{window.clearTimeout(xr),window.clearTimeout(Br),window.clearTimeout(or),window.clearTimeout(mt),Ur(),jt==null||jt.dispose().catch(ri=>{Gt({message:String(ri)})}),ju(ko)}});let vo=()=>{let ve=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Se()?n(Li):Se(),ht=ve.getRootNode(),ri=ht instanceof ShadowRoot?ht.host:ht,Zt=Ue()instanceof HTMLElement&&Ue().contains(ri);return e.uiConfig.allowChangingFullscreenTarget&&Ue()&&Zt?Ue():ve},go=()=>{pi.set(!1)},Xe=()=>{ss(),go()},Mt=()=>xt(null,null,function*(){if(!Hn()){Gt({message:"fullscreen disabled"});return}go(),ca()?(yield Gu(document),Gt({message:"exit fullscreen"})):(Gt({message:"request fullscreen"}),yield Qu(vo()))}),fi=ve=>{g()||(ve.preventDefault(),pi.set(!0),$r.set({left:ve.clientX,top:ve.clientY}))};function Lo(){Un.set(!0),Ii||so(e.uiConfig.controls.hideTimeoutCursor)}function Mo(ve){var Ro,lo;let{relatedTarget:ht}=ve,Zt=!!(ht&&((Ro=n(Wo))!=null&&Ro.contains(ht)))&&((lo=Et())==null?void 0:lo.isFocused()),Yo=e.uiConfig.controls.showOnStartupAtAutoplay||!!ht;!Ii&&!Zt&&Yo&&(rr.set(!0),so(e.uiConfig.controls.hideTimeoutCursor))}function Co(){Un.set(!1),O(Po,!1),O(mo,!1),Ao=!1,e.store.actions.internal.releaseCamera(),so(e.uiConfig.controls.hideTimeout),q()&&Qo()}function ho(ve){return ve?ve.offsetTop+ho(ve.offsetParent):0}function Vo(ve){return ve?ve.offsetLeft+Vo(ve.offsetParent):0}function lr(ve){if(j()&&rs){let ht=ve.currentTarget,ri=ho(ht),Zt=Vo(ht),Yo=ve.pageX-Zt,Ro=ve.pageY-ri,{left:lo,bottom:dn,right:Ps}=j(),As=Ps-lo;return Yo>=lo-As&&Ro<=dn+As}}function dr(ve){if(n(Li)){let ht=ho(ve.currentTarget),ri=te().height,Zt=ve.pageY-ht;if(lr(ve)){O(Po,!1);return}Zt<40?O(Po,!0):Zt>ri-40?O(mo,!0):(O(Po,!1),m()||O(mo,!1))}}function qo(ve){dr(ve),!n(sr)&&!q()&&so(e.uiConfig.controls.hideTimeoutCursor),ee()&&Ao&&Sn&&e.store.actions.internal.moveCameraFocusPX(Sn.clientX-ve.clientX,Sn.clientY-ve.clientY,ve.timeStamp-Sn.timeStamp),Sn=ve}let Bi=null,Kn=()=>{Bi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Fr()},e.uiConfig.doubleForwardActivationTime)},Qo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Bi&&clearTimeout(Bi),Bi=null},Cr=ve=>{ve.preventDefault(),ve.button===0&&(Ao=!0,e.store.actions.internal.holdCamera(),oe()&&Kn()),!Ao&&so(e.uiConfig.controls.hideTimeoutCursor)},Je=ve=>{ve.preventDefault(),ve.button===0&&(Sn=ve,Ao=!1,e.store.actions.internal.releaseCamera()),!q()&&so(e.uiConfig.controls.hideTimeoutCursor)},Yt=ve=>{ve.preventDefault(),xn&&(Gt({message:"double click on video"}),Mt(),so(e.uiConfig.controls.hideTimeoutCursor))},Mi=ve=>{var ht;if(ve.preventDefault(),q()){Qo();return}if(Bi&&Qo(),ae()||m()){Xe();return}if(!(D()&&!Si)){if(n(ro))return Sr();if((ht=Et())==null||ht.focus(),!je()){e.firstStart(),so(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||le()!==ug.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),so(e.uiConfig.controls.hideTimeoutCursor)}},Cn=ve=>{Xe(),Io.set(!0),so(e.uiConfig.controls.hideTimeout),ve&&fs(e.uiConfig.controls.hideHotKeyHelpers,ve)},ao=()=>{var ve,ht;v()||(Xe(),(ve=e.store.callbacks)!=null&&ve.onOpenHotKeyMap?(ht=e.store.callbacks)==null||ht.onOpenHotKeyMap(ce()):zo.update(ri=>!ri))},Wr=()=>{Io.set(!0)},Go=e.store.ui.contextMenu.openedByBtnKeyboard$,Tr=e.store.ui.contextMenu.btnRef$,Ir=K(void 0),Cs=e.store.ui.contextMenu.openedByHotKey$,Ts=e.store.ui.contextMenu.lastActiveElem$,qn=K(!1),xa=e.store.ui.previewTrackActive;Fe(()=>{ns.set(n(Fn))}),Fe(()=>{O(zn,n(Di)&&le()!==ug.PlaybackState.PLAYING,!0),n(Di)||kt(()=>O(Di,!0))}),Fe(()=>{var ht,ri;let ve=(n(zn)||D()||m()||X()||_e()||Ee()||de()||n(qn))&&!n(sr)&&(a()==="video"||a()==="ads"&&(e.uiConfig.controls.showOnStartupAtAutoplay||ze()!=="inactive"))&&!s()&&V();Ki.set(ve),!ve&&!de()&&((ht=n(Wo))!=null&&ht.contains(op()))&&((ri=Et())==null||ri.focus())}),Fe(()=>{!X()&&n(ar)&&!u()&&so(e.uiConfig.controls.hideTimeoutCursor),kt(()=>O(ar,X(),!0))}),Fe(()=>{n(ir),m(),ue(),kt(()=>dc(n(ir),m(),ue()))}),Fe(()=>{n(Ir),ae(),pe(),Z(),kt(()=>{let ve=pe()||Z();dc(n(Ir),ae(),ve)})}),Fe(()=>{let ve=B();ve&&(ae(),kt(()=>Zl(ve,ae(),Go)))}),Fe(()=>{let ve=fe();ve&&(ae(),kt(()=>mb(ve,ae(),Cs)))}),Fe(()=>{var ve;!me()&&x()&&(kt(()=>ci.set(!1)),(ve=Et())==null||ve.focus())}),Fe(()=>{g()&&Xe()});let ms=K(void 0),wa=ve=>{as.set(Zn(Bn(),{title:n(ms)},"title",ve))},Sa=(ve,ht)=>{var Ro,lo;let ri=(lo=(Ro=e.store.callbacks)==null?void 0:Ro.uiInfo)==null?void 0:lo.onUpcomingLiveViewStateChanged;if(!ri)return;let Zt=!!ht,Yo=Ge(Ge({},Zn(n(Li),{upcomingLiveScreen:ht},"upcomingLiveScreen",Zt)),ve);ri(Yo)},gt="",ni=f(()=>{var ve;return n(Wt)?gt:(ve=e.getVideoDeeplink)==null?void 0:ve.call(e,Ie())});Fe(()=>{gt=n(ni)});var Pi=nT();bt("blur",Da,Xe);var xi=se(Pi);xi.__mousemove=qo;var Er=C(xi);let Is=f(()=>a()==="ads"),Es=f(()=>n(ro)?Sr:void 0);it(xm(Er,{startDoubleForwardActivationTimer:Kn,stopDoubleForward:Qo,toggleFullscreen:Mt,hideContextMenu:Xe,showHotKeyHelpers:Cn,showKeyMap:ao,get isAds(){return n(Is)},get fakePlayButtonHandler(){return n(Es)},get hasNextVideo(){return Y()},get hasPrevVideo(){return Oe()},children:(ve,ht)=>{var ri=iT(),Zt=se(ri);ml(Zt,{get hideCursor(){return n(So)},onClick:Mi,onContextMenu:fi,onMouseDown:Cr,onMouseUp:Je,onDblClick:Yt,get videoContainer(){return dt()},set videoContainer(lo){dt(lo)}});var Yo=P(Zt,2);Ua(Yo,()=>"slot",!1,(lo,dn)=>{uo(lo,()=>({name:fl}))});var Ro=P(Yo,2);Ds(Ro,nt,lo=>{var dn=tT(),Ps=se(dn);let As=f(()=>a()!=="thumb"||s()||Ii&&e.autoplay);cl(Ps,{get hidden(){return n(As)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:fi,onClick:go});var js=P(Ps,2);{var qr=qe=>{cg(qe,{})};M(js,qe=>{Me()&&qe(qr)})}var Xs=P(js,2);lg(Xs,{});var Tn=P(Xs,2);dg(Tn,{get isVisible(){return q()}});var Ca=P(Tn,2);{var _l=qe=>{let bi=f(()=>{var Xo;return(Xo=e.live)==null?void 0:Xo.startTime});Bc(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(bi)},onUpcomingLiveViewStateChanged:Sa,onContextMenu:fi,onClick:go})};M(Ca,qe=>{a()==="LiveWaitingStart"&&qe(_l)})}var Pr=P(Ca,2);{var _d=qe=>{ul(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:go})};M(Pr,qe=>{a()==="LiveWaitingRecover"&&qe(_d)})}var bl=P(Pr,2);{var $l=qe=>{ul(qe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:go})};M(bl,qe=>{a()==="LiveWaitingRecord"&&qe($l)})}var yl=P(bl,2);{var bd=qe=>{var bi=XC();let Xo;var In=C(bi);nc(In,{get adsSlotId(){return ai()},get adsParams(){return Tt()},get adsAutoplayParam(){return Ot()},get duration(){return Nt()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(bi),N(En=>Xo=ie(bi,1,"ads-container s-8",null,Xo,En),[()=>({hidden:a()!=="ads"})]),b(qe,bi)};M(yl,qe=>{e.showAds&&je()&&qe(bd)})}var Ta=P(yl,2);{var xl=qe=>{let bi=f(()=>!Bt()&&e.showAutoplayNext&&I());bm(qe,{get title(){return $e()},get thumb(){return Ne()},get isHide(){return n(bi)},clickCloseIcon:()=>O(ln,!0)})};M(Ta,qe=>{n(wo)&&$e()&&Ne()&&qe(xl)})}var _t=P(Ta,2);{var ut=qe=>{let bi=f(()=>x()?"md":"sm"),Xo=f(()=>{var In;return(In=e.store.callbacks)==null?void 0:In.onTitleClicked});Rv(qe,{get title(){return e.title},get isHidden(){return n(Wt)},onVisibilityChanged:wa,get titleLinkHref(){return n(ni)},onMouseEnter:()=>{O(qn,!0)},onMouseLeave:()=>{O(qn,!1)},get size(){return n(bi)},get onTitleClicked(){return n(Xo)},get ref(){return n(ms)},set ref(In){O(ms,In,!0)}})};M(_t,qe=>{n(ui)&&qe(ut)})}var Oi=P(_t,2);{var jo=qe=>{let bi=f(()=>a()==="video"&&$());Oc(qe,{get isShifted(){return n(bi)}})};M(Oi,qe=>{ee()&&qe(jo)})}var Gi=P(Oi,2);{var wi=qe=>{var bi=ZC(),Xo=C(bi);ic(Xo,{}),S(bi),b(qe,bi)};M(Gi,qe=>{be()&&qe(wi)})}var Fi=P(Gi,2);{var Ia=qe=>{Nc(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return W()},onClick:Mi,onContextMenu:fi,onDblClick:Yt})};M(Fi,qe=>{Ee()&&qe(Ia)})}var wl=P(Fi,2);{var Fp=qe=>{ll(qe,{get shifted(){return $()},get captions(){return Ce()},get position(){return ke()},get playerSize(){return te()}})};M(wl,qe=>{n(wn)&&qe(Fp)})}var iu=P(wl,2);{var Up=qe=>{var bi=JC();bi.__contextmenu=fi,bi.__click=[jC,ae,pi,m,$t,Xe];var Xo=C(bi);dl(Xo,{}),S(bi),b(qe,bi)};M(iu,qe=>{s()&&qe(Up)})}var ou=P(iu,2);{var zp=qe=>{let bi=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Xo=f(()=>a()==="ads"),In=f(()=>e.canRewindLive&&Qe()!==0);Rc(qe,{get bottomHidden(){return n(bi)},get bottomNoSmooth(){return z()},get showControls(){return $()},get isAds(){return n(Xo)},get canRewindLive(){return n(In)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Le()},get nextButtonActive(){return Y()},get prevButtonActive(){return Oe()},get isOneVideoPlaylist(){return vt()},customFullscreenSupported:xn,toggleFullscreen:Mt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(ds)},set playerControlsWrapperRef(En){O(ds,En,!0)},get playerControlsRef(){return n(Wo)},set playerControlsRef(En){O(Wo,En,!0)}})};M(ou,qe=>{je()&&qe(zp)})}var nu=P(ou,2);{var Wp=qe=>{var bi=eT(),Xo=C(bi);let In=f(()=>{var En;return(En=n(Wo))==null?void 0:En.clientHeight});zc(Xo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(In)},returnFocus:()=>{var En;return(En=Et())==null?void 0:En.focus()},get ref(){return n(ir)},set ref(En){O(ir,En,!0)}}),S(bi),b(qe,bi)};M(nu,qe=>{!Ee()&&a()!=="ads"&&qe(Wp)})}var ru=P(nu,2);let Sl=f(()=>!n(Hr));ac(ru,{get isLive(){return Te()},get isHidden(){return n(Sl)},get isPlaying(){return we()},get position(){return ke()},get duration(){return Qe()}});var su=P(ru,2);Mv(su,{get data(){return yn}});var Zs=P(su,2);hm(Zs,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=Et())==null?void 0:qe.focus()},get visible(){return ae()},get playerContainerRef(){return n(Li)},get position(){return He()},get menuElementRef(){return n(Ir)},set menuElementRef(qe){O(Ir,qe,!0)}});var Ea=P(Zs,2);{var Kp=qe=>{Wc(qe,{onClose:nr,onSelectAutoQuality:()=>{$n("auto"),nr()}})};M(Ea,qe=>{n(cs)&&qe(Kp)})}var $d=P(Ea,2);{var yd=qe=>{ja(qe,{})};M($d,qe=>{n(an)&&qe(yd)})}var xd=P($d,2);{var qp=qe=>{Cm(qe,{})};M(xd,qe=>{at()&&qe(qp)})}var au=P(xd,2);{var Qp=qe=>{uc(qe,{})};M(au,qe=>{pt()&&qe(Qp)})}b(lo,dn)}),b(ve,ri)},$$slots:{default:!0}}),ve=>Et(ve),()=>Et());var Kr=P(Er,2);it(Kr,ve=>O(Fn,ve),()=>n(Fn)),S(xi),it(xi,ve=>O(Li,ve),()=>n(Li));var Hi=P(xi,2);{var Qi=ve=>{var ht=oT();b(ve,ht)};M(Hi,ve=>{Pt()&&ve(Qi)})}bt("mouseenter",xi,Lo),bt("mouseleave",xi,Co),bt("click",xi,Wr,!0),bt("focusin",xi,Mo,!0),b(t,Pi),F(),o()}tt(["mousemove","contextmenu","click"]);var $a=require("@vkontakte/videoplayer-core/es2015"),C$=require("@vkontakte/videoplayer-shared/es2015");var sT=k('<div></div> <div class="info s-15"><div class="triangles-wrapper s-15"><div></div> <div></div> <div></div></div> <p class="step-caption s-15"> </p></div>',1),aT=k("<div><!></div>"),lT={hash:"s-15",code:".double-click-area.s-15{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-15{left:0}.double-click-area.right.s-15{right:0}.semicircle.s-15{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-15{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-15{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-15{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-15,.triangles-wrapper.s-15{display:flex;justify-content:center}.triangles-wrapper.s-15{margin-bottom:10px;position:relative}.triangle.s-15{animation:s-15-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-15:nth-child(3),.triangle.right.s-15:first-child{animation-delay:0s}.triangle.left.s-15:nth-child(2),.triangle.right.s-15:nth-child(2){animation-delay:.1s}.triangle.left.s-15:first-child,.triangle.right.s-15:nth-child(3){animation-delay:.2s}@keyframes s-15-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-15{border-right:8px solid var(--white)}.triangle.right.s-15{border-left:8px solid var(--white)}.triangle.s-15:not(:last-child){margin-right:5px}.step-caption.s-15{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Ip(t,e){H(e,!0),Q(t,lT);let i=h(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(si(i())),d=p=>{p.stopPropagation(),a+=1,O(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,O(o,!1)},300)};pn(()=>{window.clearTimeout(r)});var s=aT();s.__click=d;var u=C(s);{var m=p=>{var v=sT(),$=se(v),y=P($,2),g=C(y),x=C(g),I=P(x,2),T=P(I,2);S(g);var D=P(g,2),A=C(D,!0);S(D),S(y),N(E=>{var V,q,L,z;ie($,1,`semicircle ${(V=e.side)!=null?V:""}`,"s-15"),ie(x,1,`triangle ${(q=e.side)!=null?q:""}`,"s-15"),ie(I,1,`triangle ${(L=e.side)!=null?L:""}`,"s-15"),ie(T,1,`triangle ${(z=e.side)!=null?z:""}`,"s-15"),ge(A,E)},[()=>G("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,v)};M(u,p=>{n(o)&&p(m)})}S(s),N(()=>{var p;return ie(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-15")}),b(t,s),F()}tt(["click"]);var dT=(t,e,i)=>{e(!1),i()},cT=k('<div class="overlay s-16"></div> <div class="next-video s-16"><div class="top s-16"><div class="caption s-16"> </div> <!></div> <div class="row s-16"><div class="column s-16"><div class="thumb s-16"><div></div> <!></div></div> <div class="column s-16"><div class="title s-16"> </div></div></div></div>',1),uT={hash:"s-16",code:".overlay.s-16{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-16{display:flex;flex-direction:column;left:50%;margin:0 auto;max-width:362px;min-width:320px;padding-bottom:12px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:var(--end-screen-mobile-z-index)}.top.s-16{display:flex;justify-content:space-between}.caption.s-16{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-16{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-16{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-16{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-16,.thumb-overlay.s-16{height:100%;width:100%}.thumb-overlay.s-16{position:absolute}.thumb-overlay.withOpacity.s-16{background:var(--black);opacity:.3}.title.s-16{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function fg(t,e){H(e,!0),Q(t,uT);let[i,o]=Be(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ye(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},g=()=>{e.clickCloseIcon(),$()};Vt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Re(),I=se(x);{var T=D=>{var A=cT(),E=P(se(A),2),V=C(E),q=C(V),L=C(q,!0);S(q);var z=P(q,2);Fs(z,{onClick:g}),S(V);var j=P(V,2);j.__click=[dT,u,p];var te=C(j),ee=C(te),oe=C(ee);let ae;var le=P(oe,2);{var ce=de=>{pc(de,{get isRunning(){return a()},onTimerEnded:y})};M(le,de=>{r()&&de(ce)})}S(ee),S(te);var X=P(te,2),_e=C(X),Ee=C(_e,!0);S(_e),S(X),S(j),S(E),N((de,ze)=>{ge(L,de),Ke(ee,`background-image: url('${e.thumb}')`),ae=ie(oe,1,"thumb-overlay s-16",null,ae,ze),ge(Ee,e.title)},[()=>r()?G("end_screen_next_video"):G("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(D,A)};M(I,D=>{e.isHide||D(T)})}b(t,x),F(),o()}tt(["click"]);var $$=require("@vkontakte/videoplayer-core/es2015");var y$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Vt(()=>{$$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),pn(()=>{i==null||i(),clearTimeout(o)})};var x$=require("@vkontakte/videoplayer-core/es2015");var Ep=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}};var w$=require("@vkontakte/videoplayer-core/es2015"),S$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),m=()=>w$.clientChecker.device.isIOS&&he(l)===x$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=$=>{if(p(),!m()||!$)return;let y=u();if(!y)return;let g=new Ep(y),x=he(d),I=he(a),T=he(r);for(let E of x)I.some(q=>q.value===E.id)&&g.attach(E,T.value===E.id);let D=d.subscribe(E=>{for(let V of E)g.updateSrc(V)}),A=()=>{let E=g.getCurrentShowingId();o(he(a).find(V=>V.value===E))};y.textTracks.addEventListener("change",A),s=()=>{D(),g.detachAll(),y.textTracks.removeEventListener("change",A)}};Vt(()=>i.subscribe(v)),pn(p)};var pT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},fT=k("<!> <!>",1),mT=k("<div><!></div>"),vT=k('<div class="spherical-video-icon s-9"><!></div>'),gT=k("<div><!></div>"),hT=k('<div class="settings-mobile s-9"><!></div>'),_T=k("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),bT=k('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),$T={hash:"s-9",code:".player-wrapper.s-9{height:100%;position:absolute;width:100%}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-9{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function mg(t,e){var xn,Hr;H(e,!0),Q(t,$T);let[i,o]=Be(),r=()=>w(Ne,"$playerPhase",i),a=()=>w($i,"$isLoaderVisible",i),l=()=>w(Y,"$adPlaybackState",i),d=()=>w(Ki,"$crashed",i),s=()=>w(Ss,"$notificationsToShow$",i),u=()=>w(Le,"$playbackState$",i),m=()=>w(Ot,"$graphIsOpened$",i),p=()=>w(je,"$interactiveHideMobileControls",i),v=()=>w(hi,"$isEnded$",i),$=()=>w(_i,"$isInteractiveExpectation$",i),y=()=>w(At,"$controlsVisible",i),g=()=>w(yi,"$touched",i),x=()=>w(It,"$autoplayNextEnabled$",i),I=()=>w(di,"$postrollPassed",i),T=()=>w($n,"$bottomNoSmooth",i),D=()=>w(rt,"$videoSize",i),A=()=>w(no,"$playerSize",i),E=()=>w(vt,"$isFullscreen",i),V=()=>w(Oe,"$position$",i),q=()=>w($e,"$duration$",i),L=()=>w(xo,"$loadedMetadata",i),z=()=>w(Ue,"$settingsMenuVisible",i),j=()=>w(Bt,"$scrubbingInProgress",i),te=()=>w(Et,"$volumeChangingInProgress",i),ee=()=>w(Vi,"$chromecastConnected$",i),oe=()=>w(Se,"$isControlsAvailable",i),ae=()=>w(Xt,"$isInteractiveTime$",i),le=()=>w(Ri,"$isActiveLive",i),ce=()=>w(xe,"$settingsMenuOpenedByKeyboard",i),X=()=>w(qt,"$language$",i),_e=()=>w(li,"$disabledControls$",i),Ee=()=>w(vn,"$is3DVideo",i),de=()=>w(U,"$icon3DVideoVisible",i),ze=()=>w(io,"$chromecastDeviceName$",i),ue=()=>w(ft,"$currentSubtitle$",i),pe=()=>w(pi,"$currentSubtitleCaptions$",i),Z=()=>w(qi,"$realDuration$",i),B=()=>w(Ti,"$isLive$",i),fe=()=>w(oo,"$isPlaying$",i),me=()=>w(Gt,"$debugPanelVisible",i),Ie=h(e,"videoContainer",15),nt=h(e,"adsSlotId",3,void 0),Me=h(e,"adsParams",3,void 0),be=h(e,"adsAutoplayParam",3,void 0),W=h(e,"duration",3,void 0),Ce=h(e,"logoTargetUrl",3,""),ke=h(e,"showNextPrevButtons",3,!1),Qe=h(e,"nextButtonActive",3,!1),Te=h(e,"prevButtonActive",3,!1),we=h(e,"endScreenVideoTitle",3,void 0),He=h(e,"endScreenVideoThumb",3,void 0),at=h(e,"isOneVideoPlaylist",3,!1),pt=h(e,"showMiniTimer",3,!1),Pt=h(e,"fullScreenTarget",3,void 0),dt=h(e,"playerStarted",3,!1),ai=h(e,"showEndScreen",3,!0),{notifications$:Tt,graphIsOpened$:Ot}=To(),Nt=e.store.getLogger().createComponentLog("Root component"),qt=e.store.interfaceLanguage$,Le=e.store.state.playbackState$,Y=e.store.ads.playbackState,Oe=e.store.state.positionWithScrubbing$,$e=e.store.state.duration$,Ne=e.store.playerPhase,vt=e.store.ui.isFullscreen,At=e.store.ui.controlsVisible,Se=e.store.ui.isControlsAvailable,je=e.store.ui.interactiveHideMobileControls,Ue=e.store.ui.settingsMenu.visible$,xe=e.store.ui.settingsMenu.openedByBtnKeyboard$,Bt=e.store.ui.scrubbingInProgress,Et=e.store.ui.volumeChangingInProgress,Gt=e.store.ui.debugPanelVisible,$i=e.store.state.isLoaderVisible,hi=e.store.state.isEnded$,Vi=e.store.state.chromecastConnected$,io=e.store.state.chromecastDeviceName$,di=e.store.ads.postrollPassed,Ti=e.store.state.isLive$,oo=e.store.state.isPlaying$,Ri=e.store.state.isActiveLive$,ci=e.store.state.isRewindableLive$,Ki=e.store.state.crashed$,$t=e.store.webApi.annotationsApi,We=e.store.webApi.pictureInPictureApi,rt=e.store.state.videoSize$,ft=e.store.state.currentSubtitle$,pi=e.store.state.currentSubtitleCaptions$,qi=e.store.state.duration$,no=e.store.ui.playerSize,vn=e.store.ui.is3DVideo,U=e.store.ui.icon3DVideoVisible,ot=e.store.state.isInteractive,Xt=e.store.state.isInteractiveTime$,_i=e.store.state.isInteractiveExpectation$,lt=e.store.state.hasInteractiveBranches,li=e.store.ui.controls.disabledControls$,yi=e.store.ui.touched,jt=e.store.ui.overlayContainer$,It=e.store.ui.autoplayNextEnabled$,xo=e.store.state.loadedMetadata$,Fo=e.store.actions.internal.closeSettingsMenu,gn=(xn=e.store.callbacks)==null?void 0:xn.onDisabledPlayPrevChapterClick,hn=(Hr=e.store.callbacks)==null?void 0:Hr.onDisabledSeekToInteractiveClick,ki=e.store.actions.internal.setQuality,Ii=K(void 0),_n=K(void 0),br=K(void 0),Si=K(void 0),Io,Uo,zo=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),bn=K(void 0),{closeNotification:ns,notificationsToShow$:Ss}=Tt,rs=f(()=>!!s().slow_video),$r=()=>ns("slow_video"),$n=re(!1),ss,er=K(!1),Or=f(()=>u()!==$a.PlaybackState.PLAYING),Eo=K(!1),as=f(()=>m()||p()||!n(er)&&(v()&&!!lt||n(Or)&&$())),yr=K(!0),Nn=f(()=>e.uiConfig.features.thumbTimer&&pt()&&r()==="video"&&!y()&&!d()&&!ot&&(e.uiConfig.hideThumbTimerAfterTouch&&!g()||!e.uiConfig.hideThumbTimerAfterTouch)),Bn=K(!1),Hn=f(()=>(ai()||e.showAutoplayNext&&x())&&!!we()&&!!He()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(Bn)),tr=K(!1);We==null||We.setContext(Ed());let Nr=yt=>{yt&&!ot&&e.uiConfig.controls.showOnStartupAtAutoplay&&Li(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Nr});let ls=()=>{clearTimeout(Io),O(er,!1),p()&&je.set(!1)},Li=yt=>{ls(),O(er,!0),Io=setTimeout(()=>O(er,!1),yt);let ui=yt-100;ss=setTimeout(()=>{T()&&$n.set(!1)},ui>0?ui:yt)},ds=vn.subscribe(yt=>{U.set(yt),yt&&(clearTimeout(Uo),Uo=setTimeout(()=>U.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Wo=(...ui)=>xt(null,[...ui],function*(yt=ca()){var Wt,ln,wo,wn,So,ar;if(yt&&!$a.clientChecker.device.isIOS){let ro=oc(),Sr=wr(),Ao=$a.clientChecker.browser.isSamsungBrowser&&ro===e.shadowRootContainer;yt=ro===Sr||Ao}if(yt){Li(e.uiConfig.controls.hideTimeoutFullscreen);try{yield We==null?void 0:We.exit()}catch(ro){Nt({message:String(ro)})}try{let ro=(Wt=D())!=null&&Wt.width&&((ln=D())!=null&&ln.height)?D():A();yield lb(ro)}catch(ro){Nt({message:String(ro)})}}vt.set(yt),e.store.getAdmanWrapper().setFullscreen(yt),E()?(wn=(wo=e.store.callbacks)==null?void 0:wo.onFullscreenEnter)==null||wn.call(wo):(ar=(So=e.store.callbacks)==null?void 0:So.onFullscreenExit)==null||ar.call(So)}),ir=yt=>{no.set(yt)},xr=()=>{if(n(Ii)){let{width:yt,height:ui}=n(Ii).getBoundingClientRect();no.set({width:yt,height:ui})}};Vt(()=>{var yt;return Yu(Wo),e.uiConfig.features.annotationsInside&&($t==null||$t.init(n(Ii))),We==null||We.assignPlayerContainer(n(Ii)),e.uiConfig.disablePiPResizeHandling||We==null||We.setExternalEventHandlers({resize:ir,leavepictureinpicture:xr}),O(yr,!$a.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((yt=Ie().parentElement)==null||yt.insertBefore(e.interactiveContainer,Ie().nextSibling)),()=>{clearTimeout(Io),clearTimeout(ss),clearTimeout(Uo),ds(),We==null||We.dispose().catch(ui=>{Nt({message:String(ui)})}),ju(Wo)}});let or=K(!0),mt=K(!0),ei=yt=>{let ui=V()+(yt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ui<0?(O(or,!1),ui=0):ui>=q()&&(O(mt,!1),ui=q()),O(Eo,!0),e.seekTime(ui)},wr=()=>$a.clientChecker.device.isIOS?n(Ii):!e.uiConfig.allowChangingFullscreenTarget||!Pt()?e.outerContainerRef:Pt().contains(e.outerContainerRef)?Pt():e.outerContainerRef,cs=()=>xt(null,null,function*(){try{if(ca())yield Gu(document),Nt({message:"exit fullscreen"});else{if(Nt({message:"request fullscreen"}),$a.clientChecker.device.isIOS&&!L())return;yield Qu(wr())}}catch(yt){Nt({message:String(yt)})}}),nr=()=>{Fo()},an=yt=>{if(yt.preventDefault(),z()){nr();return}if(!dt()){e.firstStart(),Li(e.uiConfig.controls.hideTimeoutCursor);return}O(Eo,!1),y()?ls():Li(e.uiConfig.controls.hideTimeoutMobile)},Fn=()=>{yi.set(!0)},rr=()=>{ot||($n.set(!0),Li(e.uiConfig.controls.hideTimeoutCursor))},Br=yt=>{gn&&(gn(yt),Li(e.uiConfig.controls.hideTimeoutMobile))},Ko=yt=>{hn&&(hn(yt),Li(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{jt.set(n(bn))}),Fe(()=>{At.set((n(Or)||z()||j()||te()||ee()||!n(Hn)&&(v()||n(er)&&!n(Eo)))&&!n(as)&&r()==="video"&&!d()&&oe())}),Fe(()=>{!j()&&n(tr)&&!ae()&&Li(e.uiConfig.controls.hideTimeoutMobile),O(tr,j(),!0)}),Fe(()=>{O(or,V()>0),O(mt,!le()&&V()<q(),!0)}),Fe(()=>{dc(n(Si),z(),ce(),!0)});let yn=G("aria_label_video_player");y$({fullScreenChangeHandler:Wo,getFullscreenTarget:wr}),S$({store:e.store,getFullscreenTarget:wr});let Un=(yt,ui)=>{var wn,So;let Wt=(So=(wn=e.store.callbacks)==null?void 0:wn.uiInfo)==null?void 0:So.onUpcomingLiveViewStateChanged;if(!Wt)return;let ln=!!ui,wo=Ge(Ge({},Zn(n(Ii),{upcomingLiveScreen:ui},"upcomingLiveScreen",ln)),yt);Wt(wo)};var mo=bT();bt("blur",Da,nr);var Po=C(mo);ml(Po,{onClick:an,get videoContainer(){return Ie()},set videoContainer(yt){Ie(yt)}});var zn=P(Po,2);Ua(zn,()=>"slot",!1,(yt,ui)=>{uo(yt,()=>({name:fl}))});var Di=P(zn,2);Ds(Di,X,yt=>{var ui=_T(),Wt=se(ui);let ln=f(()=>r()!=="thumb"||d()||ot&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);cl(Wt,{get hidden(){return n(ln)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var wo=P(Wt,2);{var wn=Je=>{var Yt=fT(),Mi=se(Yt);{var Cn=Go=>{let Tr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ip(Go,{side:"left",get seekStep(){return n(Tr)},handleSingleFirstClick:an,handleSecondClick:()=>ei("backward")})};M(Mi,Go=>{n(or)&&Go(Cn)})}var ao=P(Mi,2);{var Wr=Go=>{let Tr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ip(Go,{side:"right",get seekStep(){return n(Tr)},handleSingleFirstClick:an,handleSecondClick:()=>ei("forward")})};M(ao,Go=>{n(mt)&&Go(Wr)})}b(Je,Yt)};M(wo,Je=>{e.canRewindLive&&ci&&!_e().has("TIMELINE")&&Je(wn)})}var So=P(wo,2);{var ar=Je=>{let Yt=f(()=>{var Mi;return(Mi=e.live)==null?void 0:Mi.startTime});Bc(Je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Yt)},onUpcomingLiveViewStateChanged:Un})};M(So,Je=>{r()==="LiveWaitingStart"&&Je(ar)})}var ro=P(So,2);{var Sr=Je=>{ul(Je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(ro,Je=>{r()==="LiveWaitingRecover"&&Je(Sr)})}var Ao=P(ro,2);{var Sn=Je=>{ul(Je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(Ao,Je=>{r()==="LiveWaitingRecord"&&Je(Sn)})}var us=P(Ao,2);{var Fr=Je=>{var Yt=mT();let Mi;var Cn=C(Yt);nc(Cn,{get adsSlotId(){return nt()},get adsParams(){return Me()},get adsAutoplayParam(){return be()},get duration(){return W()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(Yt),N(ao=>Mi=ie(Yt,1,"ads-container s-9",null,Mi,ao),[()=>({hidden:r()!=="ads"})]),b(Je,Yt)};M(us,Je=>{e.showAds&&dt()&&Je(Fr)})}var ps=P(us,2);{var so=Je=>{let Yt=f(()=>!ai()&&e.showAutoplayNext&&x());fg(Je,{get title(){return we()},get thumb(){return He()},get isHide(){return n(Yt)},clickCloseIcon:()=>O(Bn,!0)})};M(ps,Je=>{n(Hn)&&we()&&He()&&Je(so)})}var fs=P(ps,2);{var Ur=Je=>{Oc(Je,{})};M(fs,Je=>{Ee()&&Je(Ur)})}var ko=P(fs,2);{var zr=Je=>{var Yt=vT(),Mi=C(Yt);ic(Mi,{}),S(Yt),b(Je,Yt)};M(ko,Je=>{de()&&Je(zr)})}var Wn=P(ko,2);{var vo=Je=>{Nc(Je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ze()},onClick:an})};M(Wn,Je=>{ee()&&Je(vo)})}var go=P(Wn,2);{var Xe=Je=>{ll(Je,{get shifted(){return y()},get captions(){return pe()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};M(go,Je=>{ue().value!=="off"&&Je(Xe)})}var Mt=P(go,2);{var fi=Je=>{var Yt=gT();Yt.__click=[pT,z,Ue,nr];var Mi=C(Yt);dl(Mi,{}),S(Yt),b(Je,Yt)};M(Mt,Je=>{d()&&Je(fi)})}var Lo=P(Mt,2);{var Mo=Je=>{let Yt=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Mi=f(()=>r()==="ads"),Cn=f(()=>e.canRewindLive&&Z()!==0);Rc(Je,{get bottomHidden(){return n(Yt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Mi)},get canRewindLive(){return n(Cn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ce()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ke()},get nextButtonActive(){return Qe()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return at()},get customFullscreenSupported(){return n(yr)},get endScreenShown(){return n(Hn)},toggleFullscreen:cs,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Br,onDisabledSeekToInteractiveClick:Ko,get playerControlsWrapperRef(){return n(_n)},set playerControlsWrapperRef(ao){O(_n,ao,!0)},get playerControlsRef(){return n(br)},set playerControlsRef(ao){O(br,ao,!0)}})};M(Lo,Je=>{dt()&&Je(Mo)})}var Co=P(Lo,2);{var ho=Je=>{var Yt=hT(),Mi=C(Yt);zc(Mi,{get supportLink(){return e.supportLink},get returnFocus(){return C$.noop},get ref(){return n(Si)},set ref(Cn){O(Si,Cn,!0)}}),S(Yt),b(Je,Yt)};M(Co,Je=>{z()&&Je(ho)})}var Vo=P(Co,2);let lr=f(()=>!n(Nn));ac(Vo,{get isLive(){return B()},get isHidden(){return n(lr)},get isPlaying(){return fe()},get position(){return V()},get duration(){return q()}});var dr=P(Vo,2);{var qo=Je=>{ja(Je,{})};M(dr,Je=>{n(zo)&&Je(qo)})}var Bi=P(dr,2);{var Kn=Je=>{uc(Je,{})};M(Bi,Je=>{me()&&Je(Kn)})}var Qo=P(Bi,2);{var Cr=Je=>{Wc(Je,{onClose:$r,onSelectAutoQuality:()=>{ki("auto"),$r()}})};M(Qo,Je=>{n(rs)&&Je(Cr)})}b(yt,ui)});var sr=P(Di,2);it(sr,yt=>O(bn,yt),()=>n(bn)),S(mo),it(mo,yt=>O(Ii,yt),()=>n(Ii)),N(()=>De(mo,"aria-label",yn)),bt("click",mo,Fn,!0),bt("focusin",mo,rr,!0),b(t,mo),F(),o()}tt(["click"]);var T$=require("@vkontakte/videoplayer-shared/es2015");var yT=k('<div class="time-container s-7"><!></div>'),xT=k('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),wT={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-7{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-7{opacity:1}.time-container.s-7{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function vg(t,e){H(e,!0),Q(t,wT);let[i,o]=Be(),r=()=>w(ae,"$scrubbingInProgress",i),a=()=>w(ee,"$playerSize",i),l=()=>w(V,"$isPlaying$",i),d=()=>w(A,"$duration$",i),s=()=>w(z,"$positionWithScrubbing$",i),u=()=>w(T,"$playerPhase",i),m=()=>w(D,"$crashed$",i),p=()=>w(q,"$currentSubtitle$",i),v=()=>w(L,"$currentSubtitleCaptions$",i),$=()=>w(E,"$positionExact$",i),y=()=>w(j,"$isLive$",i),g=()=>w(te,"$isRewindableLive$",i),x=h(e,"outsideDuration",3,0),I=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:D,duration$:A,positionExact$:E,isPlaying$:V,currentSubtitle$:q,currentSubtitleCaptions$:L,positionWithScrubbing$:z,isLive$:j,isRewindableLive$:te},ui:{playerSize:ee,controls:oe,scrubbingInProgress:ae},actions:{internal:{getVideoElement:le}}}=ye(),ce=8,X=K(!1),_e=si({}),Ee=K(!1),de=f(()=>!r()&&!n(Ee)),ze=()=>{O(X,!0)},ue=()=>{O(X,!1)},pe=(0,T$.debounceFn)(ad,260);Fe(()=>{a(),pe(le(),oe,_e,n(X))});let Z=f(()=>l()?sn(d()-s()):sn(isFinite(d())?d():x()));var B=xT(),fe=C(B);ml(fe,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(we){I(we)}});var me=P(fe,2);Ua(me,()=>"slot",!1,(we,He)=>{uo(we,()=>({name:fl}))});var Ie=P(me,2);let nt=f(()=>u()!=="thumb"||m());cl(Ie,{get hidden(){return n(nt)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Me=P(Ie,2);{var be=we=>{ll(we,{shifted:!1,get captions(){return v()},get position(){return $()},get playerSize(){return a()}})};M(Me,we=>{p().value!=="off"&&n(de)&&we(be)})}var W=P(Me,2);{var Ce=we=>{var He=yT(),at=C(He);sc(at,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(Z)}}),S(He),b(we,He)};M(W,we=>{n(de)&&we(Ce)})}var ke=P(W,2);let Qe;var Te=C(ke);rl(Te,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return g()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return _e.timeline},set ref(we){_e.timeline=we}}),S(ke),S(B),N(we=>Qe=ie(ke,1,"timeline s-7",null,Qe,we),[()=>({visible:n(X)})]),bt("mouseenter",B,ze),bt("mouseleave",B,ue),bt("mouseenter",ke,()=>O(Ee,!0)),bt("mouseleave",ke,()=>O(Ee,!1)),b(t,B),F(),o()}var ST=k("<div><!></div>"),CT={hash:"s-3",code:'.vk-vp-root.s-3{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--controls-desktop-padding-horizontal-minimal-view:8px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-horizontal) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-3{overflow:visible}.vk-vp-root.s-3 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-3 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-3 p{margin:0}.vk-vp-root.s-3 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-3 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-3 :focus,.vk-vp-root.s-3 :focus-visible{outline:none}.vk-vp-root.s-3 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-3 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-3 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-3 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-3 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-3 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-3 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function gg(t,e){H(e,!0),Q(t,CT);let[i,o]=Be(),r=()=>w(dt,"$isLive$",i),a=()=>w($t,"$availableSubtitlesList$",i),l=()=>w(We,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),s=h(e,"store",7),u=h(e,"microStoresRoot",7),m=h(e,"videoConfig",7),p=h(e,"uiConfig",7),v=h(e,"title",7),$=h(e,"thumbUrl",7),y=h(e,"interactiveContainer",7),g=h(e,"interactiveController",7),x=h(e,"subtitles",7),I=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),D=h(e,"preload",7),A=h(e,"autoplay",7),E=h(e,"volume",7,void 0),V=h(e,"muted",7,void 0),q=h(e,"fromTime",7),L=h(e,"canRewindLive",7),z=h(e,"showAds",7),j=h(e,"adsSlotId",7,void 0),te=h(e,"adsParams",7,void 0),ee=h(e,"adsAutoplayParam",7,void 0),oe=h(e,"duration",7,void 0),ae=h(e,"logoClickable",7),le=h(e,"logoHidden",7),ce=h(e,"isMobile",7),X=h(e,"showNextPrevButtons",7,!1),_e=h(e,"nextButtonActive",7,!1),Ee=h(e,"prevButtonActive",7,!1),de=h(e,"endScreenVideoTitle",7,void 0),ze=h(e,"endScreenVideoThumb",7,void 0),ue=h(e,"isOneVideoPlaylist",7,!1),pe=h(e,"supportLink",7),Z=h(e,"shadowRootContainer",7),B=h(e,"outerContainerRef",7),fe=h(e,"fullScreenTarget",7,void 0),me=h(e,"failoverHosts",7,void 0),Ie=h(e,"showMiniTimer",7,!1),nt=h(e,"saveRate",7),Me=h(e,"seekToInteractive",7,vl.noop),be=h(e,"playPrevChapter",7,vl.noop),W=h(e,"volumeMultiplier",7),Ce=h(e,"showAutoplayNext",7),ke=h(e,"showEndScreen",7,!0),Qe=h(e,"keyboardControls",15,void 0),{subscribers:Te,stores:we}=u();__(p());let He=Rt(),at=p().logoLink,pt=s().ui.debugPanelVisible,Pt=s().ui.playerSize,dt=s().state.isLive$,Tt=s().state.isInteractive&&pd.clientChecker.device.isAndroid,Ot=K(void 0),Nt=null,qt=K(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),P_(s(),we),Fe(()=>{var U,ot;s().ui.isMobile.set(ce()),(ot=(U=m().callbacks)==null?void 0:U.onDomReady)==null||ot.call(U)});let Le=(U=!1)=>{O(qt,!0),U?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},Y=()=>{if(He.features.qualityDetailsSubMenuEnabled){let U=Z_(s().videoId);if(U)switch(U.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,U.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,U.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(U.quality);break}}else{J_(s().videoId),em()&&s().actions.internal.setTrafficSavingEnabled(!0);let ot=Xf(s().videoId);ot&&s().actions.internal.setQuality(ot)}};function Oe(U){var li,yi,jt;let ot=d()||U;ot&&s().initVideo({container:n(Ot),sources:ot,failoverHosts:me(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:W()});let Xt=vl.safeStorage.get(jd)==="true";pt.set(Xt),q()>0&&s().actions.external.seekTime(q());let _i=ce()?He.volumeDefault:(yi=(li=E())!=null?li:Uu())!=null?yi:He.volumeDefault,lt=(jt=V())!=null?jt:q_();if(s().actions.external.setVolume(_i),s().actions.external.setMuted(lt),s().getAdmanWrapper().setInitialVolume(lt?0:_i),Y(),He.features.saveRate&&nt()){let It=Y_();It&&!r()&&s().actions.internal.setPlaybackRate(It)}if(Ce()){let It=X_();It&&s().actions.internal.setAutoplayNextEnabled(It)}s().ui.isAutoplay.set(A()),A()&&Le(),D()&&He.features.preload&&s().actions.internal.preload()}let $e=U=>{if(window.ResizeObserver){let ot,Xt;Nt=new ResizeObserver((0,vl.throttleFn)(_i=>{let lt=_i[0];if(lt.contentBoxSize){let li=Array.isArray(lt.contentBoxSize)?lt.contentBoxSize[0]:lt.contentBoxSize;ot=li.inlineSize,Xt=li.blockSize}else lt.contentRect&&(ot=lt.contentRect.width,Xt=lt.contentRect.height);Pt.set({width:ot,height:Xt})},300)),Nt.observe(U)}U.clientWidth&&U.clientHeight&&Pt.set({width:U.clientWidth,height:U.clientHeight})},Ne=()=>{document.hidden&&s().actions.external.stop()};Vt(()=>{var Xt,_i,lt,li;Tt&&document.addEventListener("visibilitychange",Ne),He.debugLog&&s().actions.internal.startLogging(),$e(n(Ot));let U=Te.map(yi=>yi.init({store:s(),microStores:we,config:m(),interactiveController:g(),uiConfig:p()})),ot=()=>{Tt&&document.removeEventListener("visibilitychange",Ne),Nt==null||Nt.disconnect(),U.forEach(yi=>yi.unsubscribe()),s().destroy()};return((Xt=T())==null?void 0:Xt.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),ot):((_i=T())==null?void 0:_i.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),ot):(((lt=T())==null?void 0:lt.status)==="finished"||((li=T())==null?void 0:li.status)==="postlive")&&!(d()&&(0,pd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),ot):(Oe(),ot)});function vt(){n(qt)?s().actions.external.play():Le(!0)}function At(){s().actions.external.pause()}function Se(U){s().actions.external.setMuted(U)}function je(){s().actions.external.toggleSubtitle()}function Ue(U,ot){s().actions.external.changeSubtitle(U,ot)}function xe(U){s().actions.external.changeAudioStream(U)}function Bt(){var U;(U=s().webApi.slotsApi)!=null&&U.haveSlots()&&s().actions.external.hideControls()}function Et(){var U;(U=s().webApi.slotsApi)!=null&&U.haveSlots()&&s().actions.external.showControls()}function Gt(U){ce()||U>=0&&U<=1&&s().actions.external.setVolume(U)}function $i(U){s().actions.internal.seekTime(U,I$.SeekAction.UNKNOWN)}function hi(U){s().actions.external.seekEpisodeStartTime(U)}function Vi(){s().actions.external.returnFocusToEpisodes()}function io(U){s().actions.external.setPlaybackRate(U)}function di(U){s().actions.external.setAutoQualityLimits(U)}function Ti(){s().actions.external.setQuality("auto")}function oo(U){s().actions.external.setTrafficSavingEnabled(U)}function Ri(U){s().actions.external.setHighQualityEnabled(U)}let ci=pp(He.view),Ki=m().playerView==="preview",$t=s().state.availableSubtitlesList$;if(He.features.initSubtitles){let U=!1;Fe(()=>{var ot;if(!U&&a().length){U=!0;let Xt;if(He.features.userVideoPrefs&&s().videoId){let lt=qu(He.userSalt,String(s().videoId));lt!=null&&lt.subtitleTrackId&&(Xt=a().find(li=>li.value===lt.subtitleTrackId))}let _i=(ot=I())!=null?ot:im();_i&&(Xt=a().find(lt=>lt.language===_i)),s().actions.internal.setSubtitle(Xt)}})}let We=s().ui.isPreviewTrackHorizontallyAligned;var rt=ST();let ft;var pi=C(rt);{var qi=U=>{mg(U,{get store(){return s()},get uiConfig(){return He},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return L()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return te()},get adsAutoplayParam(){return ee()},get duration(){return oe()},get logoClickable(){return ae()},get logoHidden(){return le()},get logoTargetUrl(){return at},get nextButtonActive(){return _e()},get prevButtonActive(){return Ee()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return ze()},get isOneVideoPlaylist(){return ue()},get supportLink(){return pe()},get shadowRootContainer(){return Z()},get outerContainerRef(){return B()},get fullScreenTarget(){return fe()},get showMiniTimer(){return Ie()},get playerStarted(){return n(qt)},get seekToInteractive(){return Me()},get playPrevChapter(){return be()},firstStart:Le,seekTime:$i,get showEndScreen(){return ke()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return X()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(Ot)},set videoContainer(ot){O(Ot,ot,!0)}})},no=U=>{var ot=Re(),Xt=se(ot);{var _i=li=>{vg(li,{get thumbUrl(){return $()},get outsideDuration(){return oe()},get canRewindLive(){return L()},get videoContainer(){return n(Ot)},set videoContainer(yi){O(Ot,yi,!0)}})},lt=li=>{pg(li,{get store(){return s()},get uiConfig(){return He},get title(){return v()},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return L()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return te()},get adsAutoplayParam(){return ee()},get duration(){return oe()},get logoClickable(){return ae()},get logoHidden(){return le()},get logoTargetUrl(){return at},get nextButtonActive(){return _e()},get prevButtonActive(){return Ee()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return ze()},get isOneVideoPlaylist(){return ue()},get supportLink(){return pe()},get shadowRootContainer(){return Z()},get outerContainerRef(){return B()},get fullScreenTarget(){return fe()},get showMiniTimer(){return Ie()},get playerStarted(){return n(qt)},get seekToInteractive(){return Me()},get playPrevChapter(){return be()},firstStart:Le,get showEndScreen(){return ke()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return X()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Ot)},set videoContainer(yi){O(Ot,yi,!0)},get keyboardControls(){return Qe()},set keyboardControls(yi){Qe(yi)}})};M(Xt,li=>{Ki?li(_i):li(lt,!1)})}b(U,ot)};M(pi,U=>{ce()?U(qi):U(no,!1)})}S(rt),N(U=>{ft=ie(rt,1,"vk-vp-root s-3",null,ft,U),Ke(rt,ci)},[()=>({"root--miui-browser":pd.clientChecker.device.isMobile&&pd.clientChecker.browser.isMiuiBrowser,"visible-outside":Ki,"preview-track-horizontally-alinged":l()})]),b(t,rt);var vn=F({initVideo:Oe,play:vt,pause:At,setMuted:Se,toggleSubtitle:je,changeSubtitle:Ue,changeAudioStream:xe,hideControls:Bt,showControls:Et,setVolume:Gt,seekTime:$i,seekEpisodeStartTime:hi,returnFocusToEpisodes:Vi,setPlaybackRate:io,setAutoQualityLimits:di,setAutoQuality:Ti,toggleTrafficSaving:oo,toggleHighQuality:Ri,get sources(){return d()},set sources(U){d(U)},get store(){return s()},set store(U){s(U)},get microStoresRoot(){return u()},set microStoresRoot(U){u(U)},get videoConfig(){return m()},set videoConfig(U){m(U)},get uiConfig(){return p()},set uiConfig(U){p(U)},get title(){return v()},set title(U){v(U)},get thumbUrl(){return $()},set thumbUrl(U){$(U)},get interactiveContainer(){return y()},set interactiveContainer(U){y(U)},get interactiveController(){return g()},set interactiveController(U){g(U)},get subtitles(){return x()},set subtitles(U){x(U)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(U){I(U)},get live(){return T()},set live(U){T(U)},get preload(){return D()},set preload(U){D(U)},get autoplay(){return A()},set autoplay(U){A(U)},get volume(){return E()},set volume(U){E(U)},get muted(){return V()},set muted(U){V(U)},get fromTime(){return q()},set fromTime(U){q(U)},get canRewindLive(){return L()},set canRewindLive(U){L(U)},get showAds(){return z()},set showAds(U){z(U)},get adsSlotId(){return j()},set adsSlotId(U){j(U)},get adsParams(){return te()},set adsParams(U){te(U)},get adsAutoplayParam(){return ee()},set adsAutoplayParam(U){ee(U)},get duration(){return oe()},set duration(U){oe(U)},get logoClickable(){return ae()},set logoClickable(U){ae(U)},get logoHidden(){return le()},set logoHidden(U){le(U)},get isMobile(){return ce()},set isMobile(U){ce(U)},get showNextPrevButtons(){return X()},set showNextPrevButtons(U){X(U)},get nextButtonActive(){return _e()},set nextButtonActive(U){_e(U)},get prevButtonActive(){return Ee()},set prevButtonActive(U){Ee(U)},get endScreenVideoTitle(){return de()},set endScreenVideoTitle(U){de(U)},get endScreenVideoThumb(){return ze()},set endScreenVideoThumb(U){ze(U)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(U){ue(U)},get supportLink(){return pe()},set supportLink(U){pe(U)},get shadowRootContainer(){return Z()},set shadowRootContainer(U){Z(U)},get outerContainerRef(){return B()},set outerContainerRef(U){B(U)},get fullScreenTarget(){return fe()},set fullScreenTarget(U){fe(U)},get failoverHosts(){return me()},set failoverHosts(U){me(U)},get showMiniTimer(){return Ie()},set showMiniTimer(U){Ie(U)},get saveRate(){return nt()},set saveRate(U){nt(U)},get showAutoplayNext(){return Ce()},set showAutoplayNext(U){Ce(U)},get seekToInteractive(){return Me()},set seekToInteractive(U){Me(U)},get playPrevChapter(){return be()},set playPrevChapter(U){be(U)},get volumeMultiplier(){return W()},set volumeMultiplier(U){W(U)},get showEndScreen(){return ke()},set showEndScreen(U){ke(U)},get keyboardControls(){return Qe()},set keyboardControls(U){Qe(U)}});return o(),vn}var TT=Ae('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function hg(t,e){let i=h(e,"isWhite",3,!1),o=f(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=TT();Jt(9),b(r,l)},$$slots:{default:!0}})}var IT=k('<div class="title s-1"> </div>'),ET=k('<div class="playerStub s-1"><!> <!></div>'),PT={hash:"s-1",code:".playerStub.s-1{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-1{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function _g(t,e){Q(t,PT);var i=ET(),o=C(i);{var r=d=>{var s=IT(),u=C(s,!0);S(s),N(()=>ge(u,e.title)),b(d,s)};M(o,d=>{e.title&&d(r)})}var a=P(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);hg(d,{get isWhite(){return n(s)}})};M(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),N(()=>Ke(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var AT=k('<div class="playerError s-2"><!></div>'),kT={hash:"s-2",code:".playerError.s-2{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function bg(t){Q(t,kT);var e=AT(),i=C(e);dl(i,{}),S(e),b(t,e)}var ya=require("@vkontakte/videoplayer-shared/es2015"),to=require("@vkontakte/videoplayer-shared/es2015"),tu=require("@vkontakte/videoplayer-core/es2015"),gd=require("@vkontakte/videoplayer-statistics/es2015");var Ap=require("@vkontakte/videoplayer-shared/es2015"),Pp=class{constructor(){this.subscription=new Ap.Subscription,this.logger=new Ap.Logger,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[r,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,l;let o=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};function Qc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var E$="Inner error. Unexpectedly root annotation container null reference exception",P$="Annotation with such name already exists",A$="Annotation with such name does not exist";var fd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var md=require("@vkontakte/videoplayer-shared/es2015"),LT="1",MT=100,kp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new md.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,md.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},MT);this.subscriptions.add((0,md.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new fd(E$);if(this.annotations.has(e))throw new fd(P$);i.style.zIndex=(o=i.style.zIndex)!=null?o:LT,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 fd(A$);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 r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var gl=require("@vkontakte/videoplayer-shared/es2015"),mn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,gl.assertNonNullable)(e),(0,gl.assertNonNullable)(i),(0,gl.assertNonNullable)(r),r.interactiveData&&(0,gl.assertNonNullable)(o),this.subscription=new gl.Subscription,this.subscription}};var Gc=class extends mn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=ti(Ge({},re(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Yc=class extends mn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=ti(Ge({},re(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:m}=a.ui,p=he(m),v=()=>p&&he(u);return o.add(u.subscribe($=>{if(!p)return;let y=he(l);he(s)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(s.subscribe($=>{this.state$.set(!$||v())})),o.add(l.subscribe($=>{if($===null)return;let y=he(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var jc=class extends mn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var k$=require("@vkontakte/videoplayer-shared/es2015");var $g=re(!1),Lp=null,Xc=class extends mn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=ti(Ge({},$g),{set:(i,o=!1)=>{i!==he($g)&&(this.clearTimeout(),$g.set(i),!i&&Lp&&(Lp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(p=>{he(l)&&p&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,k$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:$})=>{var y,g;if(!(!p||!($!=null&&$.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Lp===null&&(Lp=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(g=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||g.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Mp=require("@vkontakte/videoplayer-shared/es2015");var Zc=class extends mn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=ti(Ge({},re(null)),{toggle:Mp.noop});this.checkIfShouldHide=i=>Us(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>xt(this,null,function*(){if(this.checkIfShouldHide(he(l)))return;let s=he(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,v=he(u),$=he(m);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),p.remove(Wf),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),p.add(Wf),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Mp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(m=>xt(this,[m],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}}))),o}};var yg=require("@vkontakte/videoplayer-shared/es2015"),Jc=class extends mn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new yg.ValueSubject(!1),isEnabled$:new yg.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var Rp=require("@vkontakte/videoplayer-shared/es2015");var Vp=require("@vkontakte/videoplayer-shared/es2015");var L$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?VT({maxCount:t}):void 0,e!==0?RT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},VT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Vp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},RT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Vp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Vp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(ti(Ge({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var eu=class extends mn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=L$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Rp.filterChanged)(),(0,Rp.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var M$=()=>[Gc,Yc,jc,Xc,Zc,Jc,eu].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:ti(Ge({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var vd=require("@vkontakte/videoplayer-shared/es2015");var Dp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Op=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.focusLock=new Dp(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var DT=k('<div class="root s-4"><!></div>'),OT={hash:"s-4",code:".root.s-4{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function xg(t,e){H(e,!0),Q(t,OT);let i=null,o=K(null);Fe(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&O(o,s?"prev":"next",!0)}var a=Re(),l=se(a);{var d=s=>{var u=Re(),m=se(u);Ds(m,()=>n(o),p=>{var v=DT(),$=C(v);let y=f(()=>n(o)==="prev");qc($,{get duration(){return e.animationDuration},get Icon(){return _a},get reversed(){return n(y)}}),S(v),b(p,v)}),b(s,u)};M(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(t,a),F({startVideoChangedAnimation:r})}var V$=require("@vkontakte/videoplayer-shared/es2015"),wg=(0,V$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var NT=Object.defineProperty,BT=Object.defineProperties,HT=Object.getOwnPropertyDescriptors,R$=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,UT=Object.prototype.propertyIsEnumerable,Cg=(t,e,i)=>e in t?NT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,hl=(t,e)=>{for(var i in e||(e={}))FT.call(e,i)&&Cg(t,i,e[i]);if(R$)for(var i of R$(e))UT.call(e,i)&&Cg(t,i,e[i]);return t},zT=(t,e)=>BT(t,HT(e)),Qt=(t,e,i)=>Cg(t,typeof e!="symbol"?e+"":e,i),Np=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),WT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:to.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,tu.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Jn=K(void 0),Sg=si({animationDuration:0,playbackStatusShow:!1}),Bp=class extends wg{constructor(){super(),Qt(this,"svelteStubComponent"),Qt(this,"svelteRootComponent"),Qt(this,"sveltePersistentLayerComponent"),Qt(this,"svelteErrorComponent"),Qt(this,"store"),Qt(this,"microStoresRoot"),Qt(this,"statistics"),Qt(this,"_shadowRoot"),Qt(this,"playerContainer"),Qt(this,"rootContainer"),Qt(this,"stateContainer"),Qt(this,"shadowRootContainer"),Qt(this,"playerId"),Qt(this,"uiConfig"),Qt(this,"coreConfig"),Qt(this,"statisticsConfig"),Qt(this,"metaConfig"),Qt(this,"interactiveController"),Qt(this,"interactiveContainer"),Qt(this,"graphMadePause"),Qt(this,"currentPlayingVideoIndex",0),Qt(this,"needToRepeatPlaylist",!1),Qt(this,"videoConfig"),Qt(this,"pictureInPictureApi"),Qt(this,"mediaSessionApi"),Qt(this,"unsubscribePlayerPhaseSubscription"),Qt(this,"logger"),Qt(this,"log"),Qt(this,"subscription"),Qt(this,"interactiveSubscription"),Qt(this,"annotationsApi"),Qt(this,"slotsApi"),Qt(this,"focusManager"),Qt(this,"prevIsid"),Qt(this,"isInited",!1),Qt(this,"postponedInitParams",null),Qt(this,"internalsExposure",null),Qt(this,"shadowDOMCallbacksDisabled",!1),Qt(this,"fatalError$",new ya.ValueSubject(null)),Qt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:v,autoplay:$,isMobile:y,isTouch:g,refDomain:x,deviceId:I,interactiveData:T}=Qc(this.videoConfig,i),D=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new gd.OneStat(hl({movieId:E,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:g!=null?g:y,clip:V,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview"},D&&(!this.isInited||A)&&{projectId:Number(D)}),hl({refreshAuthToken:v,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(L){console.error(L),this.log({message:L.message})}}),vd.devNull.create("ui"),this.logger=new to.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new to.Subscription,this.interactiveSubscription=new to.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Xr(bg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=si({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Xr(_g,l),this.sveltePersistentLayerComponent=Xr(xg,{target:this.playerContainer,props:Sg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;Sg.animationDuration=e,Sg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),vd.devNull.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.stateContainer=document.createElement("div"),this.stateContainer.className="state-container",this.stateContainer.style.width="1px",this.stateContainer.style.height="1px",this.stateContainer.style.position="absolute",this.stateContainer.style.backgroundColor="transparent",this.stateContainer.style.left="-100000px",this.append(this.rootContainer),this.append(this.stateContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:a}=Qc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new gd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,m,p,v,$;if(!this.videoConfig)return;let{albumId:y,statPlace:g,statAuthToken:x,preload:I,autoplay:T,volume:D,muted:A,fromTime:E,canRewindLive:V,supportLink:q,showAds:L,adsSlotId:z,adsParams:j={},adsAutoplayParam:te,interfaceLanguage:ee,isCyrillicRelatedInterface:oe,logoClickable:ae,logoHidden:le,isMobile:ce,isTouch:X,isAudioDisabled:_e,isLiveCatchUpMode:Ee,fullScreenTarget:de,failoverHosts:ze,canDownload:ue,callbacks:pe,interactiveData:Z,showThumbTimer:B,additionalButtons:fe=[],additionalSettingsMenuItems:me=[],additionalContextMenuItems:Ie=[],repeat:nt,loop:Me,saveRate:be,volumeMultiplier:W,showEndScreen:Ce,showAutoplayNext:ke,mediascopePixels:Qe}=Qc(this.videoConfig,i),{sources:Te,title:we,thumbUrl:He,unitedVideoId:at,isClip:pt=!1,duration:Pt,adsParams:dt={},videoEpisodes:ai,previewThumbsData:Tt,subtitles:Ot,subtitlesForcedLanguage:Nt,live:qt,adsExternalApi:Le,adsJson:Y}=e;if(!Te&&!qt){let di=new Error("empty sources and live");this.fatalError$.next(di),(r=pe.onCrashed)==null||r.call(pe,di.message);return}let Oe=hl(hl({},j),dt),$e=this.getNextVideoInfo(),Ne={sources:Te,title:we,thumbUrl:He,subtitles:Ot,subtitlesForcedLanguage:Nt,unitedVideoId:at,isClip:pt,live:qt,albumId:y,statPlace:g,autoplay:T,muted:A,volume:D,fromTime:E,canRewindLive:V,showAds:L,adsSlotId:z,adsParams:Oe,adsAutoplayParam:te,duration:Pt,logoClickable:ae,logoHidden:le,isTouch:X!=null?X:ce,repeat:nt,loop:Me,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},vt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Ne)}`});let At=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),Se=(At==null?void 0:At.oneStat)||this.createOneStat(e,i),je=this.createThinOneStat(e,i),Ue;Qe&&(Ue=new gd.MediascopePixel({pixels:Qe})),(Se||je)&&(this.statistics=new gp(Se,je,Ue,At==null?void 0:At.statSubscription));let xe=this.uiConfig.features.apptracer.enabled?new ya.AppTracer("videoplayer",this.uiConfig.features.apptracer,{version:Ka,env:Bu},(0,ya.withoutNullable)({movieId:at,albumId:y,place:g,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:X!=null?X:ce,clip:pt})):void 0;this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue()));let Bt=!!Z,Et=[],Gt="tooltip_interactive_go_back_disabled_first";if(Bt&&this.interactiveController){let di=this.interactiveController.state.isInitialChapter$.getValue(),Ti=this.interactiveController.getHistoryState();di&&Et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Et.push("SEEK_TO_INTERACTIVE_BUTTON"),Ti.hasPrevChapter$.getValue()||(Et.push("PLAY_PREV_CHAPTER_BUTTON"),di||(Ti.isGoBackLimited$.getValue()?Gt="tooltip_interactive_go_back_disabled_limit":Gt="tooltip_interactive_go_back_disabled"))}let $i=()=>{var di;this.isInited=!1,this.prevIsid=void 0;let Ti=(o==null?void 0:o.info.isEnded$.getValue())&&((di=this.interactiveController)==null?void 0:di.state.isEndChapter$.getValue());pe.onReplayInteractiveVideo&&!Ti?pe.onReplayInteractiveVideo():this.replayInteractiveVideo()},hi=nt&&this.videoConfig.videos.length===1;this.store=zb({player:o,interfaceLanguage:ee,isCyrillicRelatedInterface:oe,videoId:at,isClip:pt,isLiveCatchUpMode:Ee,isAudioDisabled:_e,statAuthToken:x,callbacks:pe,webApi:vt,videoEpisodes:ai,previewThumbsData:Tt,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:Et,isInteractive:Bt,saveRate:be,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:$i,playPrevChapterDisabledTooltip:Gt,hasInteractiveBranches:!!(($=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:me!=null?me:[],additionalContextMenuItems:Ie!=null?Ie:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:di=>{var Ti;return(Ti=this.sveltePersistentLayerComponent)==null?void 0:Ti.startVideoChangedAnimation(di)},looped:this.uiConfig.features.useLoopSetting?Me:hi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId,appTracer:xe});let{stores:Vi}=this.microStoresRoot=M$(),io=()=>{var di,Ti,oo,Ri,ci,Ki;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onCurrentFormatChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(Vi.interactiveControlsOpacity$.subscribe(We=>{var rt;We!==null&&((rt=this==null?void 0:this.interactiveController)==null||rt.setDisabledControls(We))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onThroughputEstimationChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onTrafficSavingEnabledChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onHighQualityEnabledChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onAutoQualityEnabledChanged)==null?void 0:rt.call(pe,!!We)})),this.subscription.add(new to.Observable(We=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(rt=>We.next(rt)))}).pipe((0,to.skip)(1)).subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onCurrentPlaybackRateChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.volume$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onVolumeChange)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.muted$.subscribe(We=>{var rt,ft,pi,qi;if(We)(rt=pe==null?void 0:pe.onMute)==null||rt.call(pe);else{let no=(pi=((ft=this.store)==null?void 0:ft.state.volume$)&&he(this.store.state.volume$))!=null?pi:0;(qi=pe==null?void 0:pe.onUnmute)==null||qi.call(pe,no)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onVideoBitrateChanged)==null?void 0:rt.call(pe,We)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(We=>{var rt;let ft=(rt=this.store)==null?void 0:rt.ui.controls.disabledControls$;ft&&(We&&!ft.includes(Xd)&&ft.add(Xd),We||ft.remove(Xd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(We=>Np(this,null,function*(){var rt;if(!tu.clientChecker.browser.isSamsungBrowser||!We||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((rt=this.videoConfig)==null?void 0:rt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(We=>{var rt;return(rt=pe==null?void 0:pe.onVSIDChanged)==null?void 0:rt.call(pe,We)})),this.initMediaSession(),O(Jn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:we,thumbUrl:He,subtitles:Ot,subtitlesForcedLanguage:Nt,live:qt,preload:I,autoplay:T,muted:A,volume:D,fromTime:E,canRewindLive:V,supportLink:q,showAds:L,adsSlotId:z,adsParams:Oe,adsAutoplayParam:te,duration:Pt,logoClickable:ae,logoHidden:le,isMobile:X!=null?X:ce,failoverHosts:ze,fullScreenTarget:de,saveRate:be,shadowRootContainer:this.shadowRootContainer,showMiniTimer:B,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:W,showEndScreen:Ce,showAutoplayNext:ke,adsExternalApi:Le,adsJson:Y,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let $t={target:this.playerContainer,props:n(Jn)};this.svelteRootComponent=Xr(gg,$t),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(oo=(Ti=(di=this.videoConfig)==null?void 0:di.callbacks)==null?void 0:Ti.onInited)==null||oo.call(Ti)),(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&&((Ki=(ci=this.videoConfig)==null?void 0:ci.callbacks)!=null&&Ki.onDevNullLog)?vd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):vd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?tu.clientChecker.isInited$.subscribe(di=>{di&&(console.log("UI SDK async start"),io())}):io()}get useMinimalViewForDpip(){var e;let i=(e=this.uiConfig.features.dpip)!=null?e:!1;return typeof i=="boolean"?!1:!!i.minimalView}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.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(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;vp(this.pictureInPictureApi)&&this.useMinimalViewForDpip&&o.actions.external.setMinimalView(d),d?(s=a.onPiPEnter)==null||s.call(a):(u=a.onPiPExit)==null||u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls["theater-mode-button"].subscribe(d=>{var s;return(s=l.onTheaterModeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,to.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{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)}initInteractives(){return Np(this,null,function*(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?he(s):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:p,historyApi:v,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:p,historyApi:v,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=zT(hl({},I.config),{title:(m==null?void 0:m.title)||I.config.title});let T=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var D,A,E,V,q,L;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Zd)),I==="action-choice-canceled"){let j=he(this.store.state.isPlaying$)||z;if(((E=(D=this.videoConfig)==null?void 0:D.isTouch)!=null?E:(A=this.videoConfig)!=null&&A.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(L=(V=this.videoConfig)==null?void 0:(q=V.callbacks).onDisabledInteractiveClick)==null||L.call(q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(Zd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(T=>{var D,A,E;T.length&&((E=(A=(D=this.videoConfig)==null?void 0:D.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||E.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,D,A;(A=(T=this.videoConfig)==null?void 0:(D=T.callbacks).onInteractiveChapterChanged)==null||A.call(D,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,D,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(D=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(D)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,r,a,l,d,s,u,m,p,v,$,y,g,x,I,T,D,A,E,V,q;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let L=new Error("empty videos");this.fatalError$.next(L),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,L.message);return}else this.fatalError$.next(null);this.videoConfig=Qc(WT,(0,to.cloneDeepWith)(e,L=>L instanceof wg?L:void 0)),(a=this.playerId)!=null||(this.playerId=(0,to.getPlayerId)(e.playerId)),this.uiConfig=h_((l=i.ui)!=null?l:{}),this.updatePersistentLayerProps(),this.coreConfig=(d=i.core)!=null?d:{},this.statisticsConfig=(s=i.statistics)!=null?s:{},this.metaConfig=i.meta,this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new to.InternalsExposure("ui",this.playerId))),vd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((m=this.videoConfig)==null?void 0:m.showAds)],numbers:[(0,ya.now)()]}),(0,to.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),this.uiConfig.ads.paramsOverride=hl({preview:($=this.uiConfig.ads.preview)!=null?$:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(g=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?g:this.videoConfig.isMobile,(x=this.videoConfig).autoplay&&(x.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(T=this.uiConfig.ads.slot)!=null?T:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((D=this.uiConfig.showLogo)!=null?D:!this.videoConfig.logoHidden),(A=this.videoConfig).canRewindLive&&(A.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(E=this.videoConfig.supportLink)!=null?E:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((V=this.videoConfig.videos)!=null&&V[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.pictureInPictureApi=ov(this.videoConfig.pipEnabled!==!1,this.uiConfig.features.dpip)),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Pp:void 0,this.slotsApi=this.uiConfig.features.slots?new Tp(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new kp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Op(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),vp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(q=this.slotsApi)==null||q.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Jn)&&(n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).prevButtonActive=this.isPrevButtonActive(),n(Jn).endScreenVideoTitle=o.nextVideoTitle,n(Jn).endScreenVideoThumb=o.nextVideoThumb,n(Jn).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}=hl({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;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"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Jn)&&(n(Jn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).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,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Np(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Np(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=he(this.store.state.positionExact$),l=he(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,to.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Fa(e)}};var hd=require("@vkontakte/videoplayer-shared/es2015"),Hp=require("@vkontakte/videoplayer-core/es2015"),KT=()=>{window.customElements.define("vk-video-player",Bp)};