@vkontakte/videoplayer 1.1.48-dev.fc0d146e.0 → 1.1.49-dev.4a45e527.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +18 -18
- package/es2015.esm.js +18 -18
- package/es2018.cjs.js +18 -18
- package/es2018.esm.js +18 -18
- package/esnext.cjs.js +18 -18
- package/esnext.esm.js +18 -18
- package/evergreen.esm.js +18 -18
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.d.ts +4 -2
- package/types/components/Menus/constants/openSubMenuItemsIds.d.ts +3 -0
- package/types/components/Menus/constants/subMenuIds.d.ts +7 -0
- package/types/components/Menus/types.d.ts +28 -14
- package/types/components/Menus/utils/menuNavigation.d.ts +7 -2
- package/types/config.d.ts +1 -0
- package/types/store/index.d.ts +19 -5
- package/types/translation/types.d.ts +1 -1
- package/types/types/index.d.ts +11 -1
- package/types/utils/elementHelpers.d.ts +4 -0
package/es2018.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.4a45e527.0
|
|
3
|
+
* Tue, 29 Oct 2024 06:03:43 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
var H_=Object.defineProperty;var q_=(i,e,t)=>e in i?H_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Si=(i,e,t)=>q_(i,typeof e!="symbol"?e+"":e,t);function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function Ql(i){return i()}function gs(){return Object.create(null)}function ct(i){i.forEach(Ql)}function Qt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var hs;function ho(i,e){return i===e?!0:(hs||(hs=document.createElement("a")),hs.href=e,i===hs.href)}function Sf(i){return Object.keys(i).length===0}function Zt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return Zt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Zt(e,t))}function Le(i,e,t,n){if(i){let o=Tf(i,e,t,n);return i[0](o)}}function Tf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Tf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function If(i){return i==null?"":i}function _r(i){return i&&Qt(i.destroy)?i.destroy:me}var Xo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var bs=class i{constructor(e){Si(this,"_listeners","WeakMap"in Xo?new WeakMap:void 0);Si(this,"_observer");Si(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};bs.entries="WeakMap"in Xo?new WeakMap:void 0;var Pf=!1;function Ef(){Pf=!0}function Af(){Pf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Mf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,W_(n,o)}}function Mf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function W_(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function oi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Xe(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ri(i){return function(e){return e.preventDefault(),i.call(this,e)}}function gt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Lf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function di(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Vf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bt(i,e){return new i(e)}var Eo;function go(i){Eo=i}function hr(){if(!Eo)throw new Error("Function called outside component initialization");return Eo}function Vt(i){hr().$$.on_mount.push(i)}function Zn(i){hr().$$.on_destroy.push(i)}function gr(i,e){return hr().$$.context.set(i,e),e}function br(i){return hr().$$.context.get(i)}function Gr(){return hr().$$.context}function Rn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Jo=[];var ve=[],yr=[],Xl=[],Bf=Promise.resolve(),Jl=!1;function $l(){Jl||(Jl=!0,Bf.then(vs))}function Xn(){return $l(),Bf}function Yr(i){yr.push(i)}function Ue(i){Xl.push(i)}var Zl=new Set,vr=0;function vs(){if(vr!==0)return;let i=Eo;do{try{for(;vr<Jo.length;){let e=Jo[vr];vr++,go(e),Q_(e.$$)}}catch(e){throw Jo.length=0,vr=0,e}for(go(null),Jo.length=0,vr=0;ve.length;)ve.pop()();for(let e=0;e<yr.length;e+=1){let t=yr[e];Zl.has(t)||(Zl.add(t),t())}yr.length=0}while(Jo.length);for(;Xl.length;)Xl.pop()();Jl=!1,Zl.clear(),go(i)}function Q_(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Yr)}}function Nf(i){let e=[],t=[];yr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),yr=e}var ys=new Set,$o;function ae(){$o={r:0,c:[],p:$o}}function ue(){$o.r||ct($o.c),$o=$o.p}function d(i,e){i&&i.i&&(ys.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(ys.has(i))return;ys.add(i),$o.c.push(()=>{ys.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function bt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Ao(i){return typeof i=="object"&&i!==null?i:{}}var Z_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],X_=new Set([...Z_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Yr(()=>{let r=i.$$.on_mount.map(Ql).filter(Qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach(Yr)}function V(i,e){let t=i.$$;t.fragment!==null&&(Nf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $_(i,e){i.$$.dirty[0]===-1&&(Jo.push(i),$l(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Eo;go(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:gs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:gs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&$_(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ef();let m=Lf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Af(),vs()}go(l)}var eh;typeof HTMLElement=="function"&&(eh=class extends HTMLElement{constructor(e,t,n){super();Si(this,"$$ctor");Si(this,"$$s");Si(this,"$$c");Si(this,"$$cn",!1);Si(this,"$$d",{});Si(this,"$$r",!1);Si(this,"$$p_d",{});Si(this,"$$l",{});Si(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Vf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ea(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ea(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ea(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ea(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Si(this,"$$");Si(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Qt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Sf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Df="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Df);import"@vkontakte/videoplayer-core";import{noop as os,safeStorage as Q8,throttleFn as Z8,clientChecker as X8}from"@vkontakte/videoplayer-shared";import{SeekAction as J8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as th,fillWithDefault as ih,VideoQuality as nh}from"@vkontakte/videoplayer-shared";var oh={isMobile:void 0,defaultLanguage:th.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:nh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Of=i=>ih(i,oh),Ff=i=>gr("ui-config",i),xt=()=>br("ui-config");var Qr="vk_player_debug_panel_opened";var Hf="videoplayer",qf="videoplayer";var ao={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wf=new Set(["ShiftRight","ShiftLeft"]);var Kf=["TIMELINE"],Zr=[...Kf,"GRAPH_BUTTON"],ta=[...Kf,"PLAY_BUTTON"],ws=[...Zr,"PLAY_BUTTON"];var bo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(bo||{}),tr={xs:0,s:1,m:2,l:3,xl:4};var wr=[];function Wn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!wr.length;for(let u of n)u[1](),wr.push(u,i);if(l){for(let u=0;u<wr.length;u+=2)wr[u][0](wr[u+1]);wr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function Xt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Wn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Qt(g)?g:me},C=o.map((g,S)=>Zt(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ct(C),m(),l=!1}})}import{assertNonNullable as xf,VERSION as rh}from"@vkontakte/videoplayer-shared";import{VERSION as sh}from"@vkontakte/videoplayer-core";import{VERSION as lh}from"@vkontakte/videoplayer-statistics";var ks="prod",kr="1.1.48-dev.fc0d146e.0";var ir=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var jf=Symbol("storeContext"),Gf=Symbol("microStoresContext"),Yf=(i,e)=>{gr(jf,i),gr(Gf,e),ks==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=br(jf);return xf(i,"Store context is empty!"),i},Bn=()=>{let i=br(Gf);return xf(i,"MicroStores context is empty!"),i},St=(i,e)=>ia(i,i.getValue(),e),ia=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Qf=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${kr} (core: ${sh}, stat: ${lh}, shared: ${rh})`,c=Ye(t.state.errorLog$),m=c.length?`
|
|
7
|
-
`+c.map((
|
|
8
|
-
`,
|
|
9
|
-
|
|
10
|
-
`;return
|
|
11
|
-
`):void 0,h=t.state.isAudioDisabled?"disabled":
|
|
12
|
-
`)},Zf=(i,e,t)=>{var U,W,ne,de;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s={version:kr,viewport:`${o}x${r}`,volume:Math.round(Ye(t.state.volume$)*100)};s.id=t.videoId,n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?s.buffer=c.end-h:s.buffer=Math.max(c.end-Ye(t.state.positionExact$),0));let C=n.throughputEstimation$.getValue();C&&(s.speed=C);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let S=n.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let k=n.currentAudioSegmentLength$.getValue();k&&(s.currentAudioSegmentLength=k);let F=Ye(t.vsid);typeof F=="string"&&(s.vsid=F);let T=(U=i.info.currentVideoStream$.getValue())==null?void 0:U.codec;T&&(s.videoCodec=T);let v=(W=i.info.currentAudioStream$.getValue())==null?void 0:W.codec;v&&(s.audioCodec=v),((ne=i.info.currentVideoStream$.getValue())==null?void 0:ne.hdr)&&(s.hdr=!0);let H=(de=i.info.currentAudioStream$.getValue())==null?void 0:de.language;return H&&(s.audioLanguage=H),s},Xf=(i,e)=>ir(i,e,"mp4"),Jf=i=>!i.type,$f=i=>!!i.type,ed=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},Cs=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=await fetch(e,{signal:this.destroyController.signal});if(t.ok)return await t.text();throw t}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as na,safeStorage as Kn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var td="vk_player_prefer_traffic_saving_enabled",id="vk_player_preferred_volume",nd="vk_player_prefer_volume_mute",oa="vk_player_preferred_quality",od="vk_player_preferred_stream_language",rd="vk_player_preferred_rate",sd="vk_player_preferred_autoplay_next",ld=i=>i>1?1:i<0?0:i,ra=i=>Kn.set(id,ld(i).toString(10)),Ss=()=>{let i=Kn.get(id);return na(i)?void 0:ld(parseFloat(i))},ad=(i,e)=>Kn.set(oa,JSON.stringify({videoId:i,value:e})),sa=()=>Kn.remove(oa),ud=i=>{let e=Kn.get(oa);if(na(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){sa();return}return n},la=(i,e)=>{e?Kn.set(i,"true"):Kn.remove(i)},aa=i=>Kn.get(i)==="true",Ts=i=>la(nd,i),cd=()=>aa(nd),fd=i=>la(td,i),dd=()=>aa(td),md=()=>Kn.get(od),ua=i=>Kn.set(od,i),pd=i=>Kn.set(rd,JSON.stringify({rate:i})),_d=()=>{let i=Kn.get(rd);if(na(i))return;let{rate:e}=JSON.parse(i);return e},hd=i=>la(sd,i),gd=()=>aa(sd);import{PlaybackState as N8}from"@vkontakte/videoplayer-core";import{noop as uf}from"@vkontakte/videoplayer-shared";function ah(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T=i[2].default,v=Le(T,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],H={};for(let U=0;U<E.length;U+=1)H=se(H,E[U]);return{c(){e=M("svg"),v&&v.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("path"),a=M("path"),l=M("defs"),u=M("filter"),c=M("feFlood"),m=M("feColorMatrix"),h=M("feOffset"),C=M("feGaussianBlur"),g=M("feColorMatrix"),S=M("feBlend"),k=M("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(s,"fill","#fff"),f(s,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(C,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"result","effect1_dropShadow_618_12297"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_618_12297"),f(k,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),we(e,H)},m(U,W){w(U,e,W),v&&v.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(e,l),_(l,u),_(u,c),_(u,m),_(u,h),_(u,C),_(u,g),_(u,S),_(u,k),F=!0},p(U,[W]){v&&v.p&&(!F||W&2)&&Re(v,T,U,U[1],F?Ve(T,U[1],W,null):Be(U[1]),null),we(e,H=He(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},W&1&&U[0]]))},i(U){F||(d(v,U),F=!0)},o(U){p(v,U),F=!1},d(U){U&&y(e),v&&v.d(U)}}}function uh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ca=class extends N{constructor(e){super(),O(this,e,uh,ah,B,{})}},Is=ca;import{isNullable as yd,InterfaceLanguage as wd}from"@vkontakte/videoplayer-shared";var ch={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},bd=ch;var fh={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",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",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode"},vd=fh;var vo=new Map;vo.set(wd.EN,vd);vo.set(wd.RU,bd);var kd=new Map,fa=({language:i,pack:e,fallback:t})=>{if(vo.has(i)){let n=vo.get(i);vo.set(i,{...n,...e})}else vo.set(i,e);kd.set(i,t)},da=i=>vo.has(i),ma=(i,e,t,n)=>{var s;let o=vo.get(i),r=o==null?void 0:o[e];if(yd(r)){let a=(s=kd.get(i))!=null?s:n,l=a?vo.get(a):void 0;r=l==null?void 0:l[e]}return yd(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,l)=>{var u;return(u=t[l])!=null?u:""}):r},j=(i,e)=>{let{interfaceLanguage$:t}=nt(),n=Ye(t),o=xt();return ma(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var Cr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Cr||(Cr={}));var dh=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,ph=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ps="?",_h="X-Sentry-Auth",hh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function gh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
-
`),n,o;for(let r=0;r<t.length;++r){if(n=
|
|
14
|
-
`).filter(t=>!!t)[0]}function bh(i){try{let e=gh(i);if(e)return e}catch(e){}return{value:Cd(i),type:i&&i.name,stacktrace:{frames:[]}}}function vh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Es=class{constructor(e){if(e&&e.dsn){let t=hh.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[bh(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(_h,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:vh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Sd(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function yh(){return window}var As=class i extends Es{constructor(e,t=yh()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:s=[],ignoreErrors:a=[],release:l=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=s,this.ignoreErrors=a,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Sd(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Sd(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,s=e[n],a=Array.isArray(s)?s:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as Ms,Subscription as wh}from"@vkontakte/videoplayer-shared";var Ls=null,nr=class{constructor(e,t,n={}){!Ls&&e.dsn&&(this.sentryClient=new As({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new wh,this.options=e,this.context=n,Ls=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Ls=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:s}=this,{sampleRate:a=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=s,{errorType:h,category:C}=t;if(Ms(C)&&m.includes(C)||Ms(h)&&c.includes(h))return;if(Math.random()<=a||Ms(C)&&u.includes(C)||Ms(h)&&l.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?Cr.fatal:Cr.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return Ls}};var Vs=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Rs=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Td=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Xr=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},Mo=()=>!!Xr(),Bs=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Ns=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Id=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Pd}from"@vkontakte/videoplayer-shared";var Ed=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:Pd.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:Pd.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as kh,clientChecker as Ch,ValueSubject as Sh}from"@vkontakte/videoplayer-shared";var or=class{constructor(){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:kh(this.onResize.bind(this),300)};this.info={isActive$:new Sh(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Ch.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,s;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function rr(i){return i instanceof or}function Th(i){let e=nt();return Vt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var ha=class extends N{constructor(e){super(),O(this,e,Th,null,B,{})}},Ad=ha;import{noop as Ih}from"@vkontakte/videoplayer-shared";function Ph(i){be(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function Eh(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ge(t,e)},d(n){n&&y(t)}}}function Ah(i){let e,t=j("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=I("div"),n=qe(t),o=Y(),r=M("svg"),s=M("path"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){w(u,e,c),_(e,n),_(e,o),_(e,r),_(r,s),a||(l=ke(e,"click",gt(function(){Qt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&y(e),a=!1,l()}}}function Mh(i){let e;function t(r,s){return r[3]?Ah:Eh}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),f(e,"class","container svelte-1k4i25s"),G(e,"container-mobile",i[4]),G(e,"skippable",i[3])},m(r,s){w(r,e,s),o.m(e,null)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),s&16&&G(e,"container-mobile",r[4]),s&8&&G(e,"skippable",r[3])},i:me,o:me,d(r){r&&y(e),o.d()}}}function Lh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=Ih}=e,l=nt().ui.isMobile;D(i,l,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,s=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,s,u,n,l]}var ga=class extends N{constructor(e){super(),O(this,e,Lh,Mh,B,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Ph)}},Md=ga;function Vh(i){be(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function Rh(i){let e;return{c(){e=I("button"),e.textContent=`${j("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){w(t,e,n)},p:me,i:me,o:me,d(t){t&&y(e)}}}var ba=class extends N{constructor(e){super(),O(this,e,null,Rh,B,{},Vh)}},Ld=ba;function Bh(i){be(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
6
|
+
var J_=Object.defineProperty;var $_=(i,e,t)=>e in i?J_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ai=(i,e,t)=>$_(i,typeof e!="symbol"?e+"":e,t);function de(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function la(i){return i()}function Is(){return Object.create(null)}function at(i){i.forEach(la)}function Jt(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ts;function ko(i,e){return i===e?!0:(Ts||(Ts=document.createElement("a")),Ts.href=e,i===Ts.href)}function Df(i){return Object.keys(i).length===0}function ii(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return ii(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ii(e,t))}function Le(i,e,t,n){if(i){let o=Of(i,e,t,n);return i[0](o)}}function Of(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Of(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Ff(i){return i==null?"":i}function _r(i){return i&&Jt(i.destroy)?i.destroy:de}var Xo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Ps=class i{constructor(e){Ai(this,"_listeners","WeakMap"in Xo?new WeakMap:void 0);Ai(this,"_observer");Ai(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Ps.entries="WeakMap"in Xo?new WeakMap:void 0;var Hf=!1;function qf(){Hf=!0}function Uf(){Hf=!1}function _(i,e){i.appendChild(e)}function he(i,e,t){let n=zf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,ih(n,o)}}function zf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function ih(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function fi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function Xe(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function si(i){return function(e){return e.preventDefault(),i.call(this,e)}}function gt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function xf(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function hi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function j(i,e,t){i.classList.toggle(e,!!t)}function Wf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bt(i,e){return new i(e)}var Lo;function Co(i){Lo=i}function hr(){if(!Lo)throw new Error("Function called outside component initialization");return Lo}function Nt(i){hr().$$.on_mount.push(i)}function io(i){hr().$$.on_destroy.push(i)}function gr(i,e){return hr().$$.context.set(i,e),e}function br(i){return hr().$$.context.get(i)}function $r(){return hr().$$.context}function Nn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Jo=[];var ge=[],yr=[],ua=[],jf=Promise.resolve(),ca=!1;function fa(){ca||(ca=!0,jf.then(ft))}function an(){return fa(),jf}function es(i){yr.push(i)}function qe(i){ua.push(i)}var aa=new Set,vr=0;function ft(){if(vr!==0)return;let i=Lo;do{try{for(;vr<Jo.length;){let e=Jo[vr];vr++,Co(e),ah(e.$$)}}catch(e){throw Jo.length=0,vr=0,e}for(Co(null),Jo.length=0,vr=0;ge.length;)ge.pop()();for(let e=0;e<yr.length;e+=1){let t=yr[e];aa.has(t)||(aa.add(t),t())}yr.length=0}while(Jo.length);for(;ua.length;)ua.pop()();ca=!1,aa.clear(),Co(i)}function ah(i){if(i.fragment!==null){i.update(),at(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(es)}}function Gf(i){let e=[],t=[];yr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),yr=e}var Es=new Set,$o;function se(){$o={r:0,c:[],p:$o}}function le(){$o.r||at($o.c),$o=$o.p}function d(i,e){i&&i.i&&(Es.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Es.has(i))return;Es.add(i),$o.c.push(()=>{Es.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Yf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function Qf(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,v=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,y=[];for(g=v;g--;){let L=m(o,r,g),ee=t(L),ae=s.get(ee);ae?n&&y.push(()=>ae.p(L,e)):(ae=u(ee,L),ae.c()),V.set(ee,C[g]=ae),ee in I&&S.set(ee,Math.abs(g-I[ee]))}let E=new Set,z=new Set;function N(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,v--}for(;h&&v;){let L=C[v-1],ee=i[h-1],ae=L.key,Q=ee.key;L===ee?(c=L.first,h--,v--):V.has(Q)?!s.has(ae)||E.has(ae)?N(L):z.has(Q)?h--:S.get(ae)>S.get(Q)?(z.add(ae),N(L)):(E.add(Q),h--):(l(ee,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;v;)N(C[v-1]);return at(y),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Vo(i){return typeof i=="object"&&i!==null?i:{}}var uh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],ch=new Set([...uh]);function Ue(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function D(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),es(()=>{let r=i.$$.on_mount.map(la).filter(Jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):at(r),i.$$.on_mount=[]}),o.forEach(es)}function B(i,e){let t=i.$$;t.fragment!==null&&(Gf(t.after_update),at(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function dh(i,e){i.$$.dirty[0]===-1&&(Jo.push(i),fa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Lo;Co(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:Is(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Is(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...v)=>{let g=v.length?v[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&dh(i,m)),h}):[],u.update(),c=!0,at(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){qf();let m=xf(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),Uf(),ft()}Co(l)}var mh;typeof HTMLElement=="function"&&(mh=class extends HTMLElement{constructor(e,t,n){super();Ai(this,"$$ctor");Ai(this,"$$s");Ai(this,"$$c");Ai(this,"$$cn",!1);Ai(this,"$$d",{});Ai(this,"$$r",!1);Ai(this,"$$p_d",{});Ai(this,"$$l",{});Ai(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Wf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=da(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=da(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=da(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function da(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Ai(this,"$$");Ai(this,"$$set")}$destroy(){B(this,1),this.$destroy=de}$on(e,t){if(!Jt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Df(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Zf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zf);import"@vkontakte/videoplayer-core";import{noop as fs,safeStorage as p8,throttleFn as _8,clientChecker as h8}from"@vkontakte/videoplayer-shared";import{SeekAction as g8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as ph,fillWithDefault as _h,VideoQuality as hh}from"@vkontakte/videoplayer-shared";var gh={isMobile:void 0,defaultLanguage:ph.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:hh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,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,autoplayNext:!0,previewNoEmptySpace:!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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Xf=i=>_h(i,gh),Jf=i=>gr("ui-config",i),Lt=()=>br("ui-config");var ts="vk_player_debug_panel_opened";var $f="videoplayer",ed="videoplayer";var _o={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},td=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),id=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nd=new Set(["ShiftRight","ShiftLeft"]);var od=["TIMELINE"],is=[...od,"GRAPH_BUTTON"],ma=[...od,"PLAY_BUTTON"],As=[...is,"PLAY_BUTTON"];var So=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(So||{}),tr={xs:0,s:1,m:2,l:3,xl:4};var wr=[];function Wn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!wr.length;for(let u of n)u[1](),wr.push(u,i);if(l){for(let u=0;u<wr.length;u+=2)wr[u][0](wr[u+1]);wr.length=0}}}function r(a){o(a(i))}function s(a,l=de){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ni(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Wn(t,(s,a)=>{let l=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Jt(g)?g:de},v=o.map((g,I)=>ii(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){at(v),m(),l=!1}})}import{assertNonNullable as rd,VERSION as bh}from"@vkontakte/videoplayer-shared";import{VERSION as vh}from"@vkontakte/videoplayer-core";import{VERSION as yh}from"@vkontakte/videoplayer-statistics";var Ms="prod",kr="1.1.49-dev.4a45e527.0";var ir=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var sd=Symbol("storeContext"),ld=Symbol("microStoresContext"),ad=(i,e)=>{gr(sd,i),gr(ld,e),Ms==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=br(sd);return rd(i,"Store context is empty!"),i},Dn=()=>{let i=br(ld);return rd(i,"MicroStores context is empty!"),i},It=(i,e)=>pa(i,i.getValue(),e),pa=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ud=(i,e,t)=>{var V,S,y,E,z,N;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(y=n.rttEstimation$.getValue())==null?void 0:y.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${kr} (core: ${vh}, stat: ${yh}, shared: ${bh})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
|
+
`+c.map((L,ee)=>{var J;let ae=`${ee}) Type: ${L.id}
|
|
8
|
+
`,Q=`Message: ${L.message} (${L.thrown})
|
|
9
|
+
`,$=`Trace: ${(J=L.thrown)==null?void 0:J.stack}
|
|
10
|
+
`;return ae+Q+$}).join(`
|
|
11
|
+
`):void 0,h=t.state.isAudioDisabled?"disabled":je(t.state.isAudioAvailable$)?void 0:"unavailable",v=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),I=[];v&&I.push(`Video: ${(z=v==null?void 0:v.codec)!=null?z:""}`+(v!=null&&v.hdr?" (HDR)":"")),g&&I.push(`Audio: ${(N=g==null?void 0:g.codec)!=null?N:""}`+(g!=null&&g.language?` (${g.language})`:""));let C={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:je(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:I.join(", "),Quality:`${l} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${je(t.state.positionExact$)}s`,State:`${je(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(C).filter(([L,ee])=>ee!==void 0).map(([L,ee])=>`${L}: ${ee}`).join(`
|
|
12
|
+
`)},cd=(i,e,t)=>{var N,L,ee,ae;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s={version:kr,viewport:`${o}x${r}`,volume:Math.round(je(t.state.volume$)*100)};s.id=t.videoId,n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?s.buffer=c.end-h:s.buffer=Math.max(c.end-je(t.state.positionExact$),0));let v=n.throughputEstimation$.getValue();v&&(s.speed=v);let g=n.videoBitrate$.getValue();g&&(s.bitrate=g);let I=n.currentVideoSegmentLength$.getValue();I&&(s.currentVideoSegmentLength=I);let C=n.currentAudioSegmentLength$.getValue();C&&(s.currentAudioSegmentLength=C);let V=je(t.vsid);typeof V=="string"&&(s.vsid=V);let S=(N=i.info.currentVideoStream$.getValue())==null?void 0:N.codec;S&&(s.videoCodec=S);let y=(L=i.info.currentAudioStream$.getValue())==null?void 0:L.codec;y&&(s.audioCodec=y),((ee=i.info.currentVideoStream$.getValue())==null?void 0:ee.hdr)&&(s.hdr=!0);let z=(ae=i.info.currentAudioStream$.getValue())==null?void 0:ae.language;return z&&(s.audioLanguage=z),s},fd=(i,e)=>ir(i,e,"mp4"),dd=i=>!i.type,md=i=>!!i.type,pd=()=>{let e=[],t=0;return{add:(n,o)=>{e[t]=[n,o],t=(t+1)%10},find:n=>e.find(([o])=>o===n)}},Ls=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=await fetch(e,{signal:this.destroyController.signal});if(t.ok)return await t.text();throw t}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as _a,safeStorage as Kn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var _d="vk_player_prefer_traffic_saving_enabled",hd="vk_player_preferred_volume",gd="vk_player_prefer_volume_mute",ha="vk_player_preferred_quality",bd="vk_player_preferred_stream_language",vd="vk_player_preferred_rate",yd="vk_player_preferred_autoplay_next",wd=i=>i>1?1:i<0?0:i,ga=i=>Kn.set(hd,wd(i).toString(10)),Vs=()=>{let i=Kn.get(hd);return _a(i)?void 0:wd(parseFloat(i))},kd=(i,e)=>Kn.set(ha,JSON.stringify({videoId:i,value:e})),ba=()=>Kn.remove(ha),Cd=i=>{let e=Kn.get(ha);if(_a(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ba();return}return n},va=(i,e)=>{e?Kn.set(i,"true"):Kn.remove(i)},ya=i=>Kn.get(i)==="true",Rs=i=>va(gd,i),Sd=()=>ya(gd),Td=i=>va(_d,i),Id=()=>ya(_d),Pd=()=>Kn.get(bd),wa=i=>Kn.set(bd,i),Ed=i=>Kn.set(vd,JSON.stringify({rate:i})),Ad=()=>{let i=Kn.get(vd);if(_a(i))return;let{rate:e}=JSON.parse(i);return e},Md=i=>va(yd,i),Ld=()=>ya(yd);import{PlaybackState as Jy}from"@vkontakte/videoplayer-core";import{noop as wf}from"@vkontakte/videoplayer-shared";function wh(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S=i[2].default,y=Le(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],z={};for(let N=0;N<E.length;N+=1)z=re(z,E[N]);return{c(){e=O("svg"),y&&y.c(),t=O("g"),n=O("path"),o=O("path"),r=O("path"),s=O("path"),a=O("path"),l=O("defs"),u=O("filter"),c=O("feFlood"),m=O("feColorMatrix"),h=O("feOffset"),v=O("feGaussianBlur"),g=O("feColorMatrix"),I=O("feBlend"),C=O("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(s,"fill","#fff"),f(s,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(v,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_618_12297"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_618_12297"),f(C,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),ye(e,z)},m(N,L){k(N,e,L),y&&y.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(e,l),_(l,u),_(u,c),_(u,m),_(u,h),_(u,v),_(u,g),_(u,I),_(u,C),V=!0},p(N,[L]){y&&y.p&&(!V||L&2)&&Re(y,S,N,N[1],V?Ve(S,N[1],L,null):Be(N[1]),null),ye(e,z=Fe(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},L&1&&N[0]]))},i(N){V||(d(y,N),V=!0)},o(N){p(y,N),V=!1},d(N){N&&w(e),y&&y.d(N)}}}function kh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ka=class extends H{constructor(e){super(),U(this,e,kh,wh,F,{})}},Bs=ka;import{isNullable as Bd,InterfaceLanguage as Nd}from"@vkontakte/videoplayer-shared";var Ch={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E"},Vd=Ch;var Sh={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",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",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video"},Rd=Sh;var To=new Map;To.set(Nd.EN,Rd);To.set(Nd.RU,Vd);var Dd=new Map,Ca=({language:i,pack:e,fallback:t})=>{if(To.has(i)){let n=To.get(i);To.set(i,{...n,...e})}else To.set(i,e);Dd.set(i,t)},Sa=i=>To.has(i),Ta=(i,e,t,n)=>{var s;let o=To.get(i),r=o==null?void 0:o[e];if(Bd(r)){let a=(s=Dd.get(i))!=null?s:n,l=a?To.get(a):void 0;r=l==null?void 0:l[e]}return Bd(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,l)=>{var u;return(u=t[l])!=null?u:""}):r},G=(i,e)=>{let{interfaceLanguage$:t}=it(),n=je(t),o=Lt();return Ta(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var Cr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Cr||(Cr={}));var Th=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ih=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ph=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ns="?",Eh="X-Sentry-Auth",Ah=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Mh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let r=0;r<t.length;++r){if(n=Th.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Ns,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=Ph.exec(t[r]))o={filename:n[2],function:n[1]||Ns,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Ih.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Ns,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Ns),e.push(o)}return e.length?{value:Od(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Od(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function Lh(i){try{let e=Mh(i);if(e)return e}catch(e){}return{value:Od(i),type:i&&i.name,stacktrace:{frames:[]}}}function Vh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Ds=class{constructor(e){if(e&&e.dsn){let t=Ah.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Lh(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(Eh,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Vh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Fd(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Rh(){return window}var Os=class i extends Ds{constructor(e,t=Rh()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:s=[],ignoreErrors:a=[],release:l=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=s,this.ignoreErrors=a,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Fd(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Fd(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,s=e[n],a=Array.isArray(s)?s:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as Fs,Subscription as Bh}from"@vkontakte/videoplayer-shared";var Hs=null,nr=class{constructor(e,t,n={}){!Hs&&e.dsn&&(this.sentryClient=new Os({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Bh,this.options=e,this.context=n,Hs=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Hs=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:s}=this,{sampleRate:a=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=s,{errorType:h,category:v}=t;if(Fs(v)&&m.includes(v)||Fs(h)&&c.includes(h))return;if(Math.random()<=a||Fs(v)&&u.includes(v)||Fs(h)&&l.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?Cr.fatal:Cr.error),o.report(e)}catch(I){console.error(I)}}}static getInstance(){return Hs}};var qs=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Us=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Hd=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},ns=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},Ro=()=>!!ns(),zs=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},xs=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},qd=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Ud}from"@vkontakte/videoplayer-shared";var zd=()=>({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")}]},{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:Ud.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:Ud.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Nh,clientChecker as Dh,ValueSubject as Oh}from"@vkontakte/videoplayer-shared";var or=class{constructor(){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:Nh(this.onResize.bind(this),300)};this.info={isActive$:new Oh(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!Dh.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,s;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function rr(i){return i instanceof or}function Fh(i){let e=it();return Nt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ea=class extends H{constructor(e){super(),U(this,e,Fh,null,F,{})}},xd=Ea;import{noop as Hh}from"@vkontakte/videoplayer-shared";function qh(i){he(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function Uh(i){let e=G("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&3&&e!==(e=G("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ke(t,e)},d(n){n&&w(t)}}}function zh(i){let e,t=G("skip_ads_now")+"",n,o,r,s,a,l;return{c(){e=P("div"),n=Oe(t),o=Y(),r=O("svg"),s=O("path"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){k(u,e,c),_(e,n),_(e,o),_(e,r),_(r,s),a||(l=ke(e,"click",gt(function(){Jt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&w(e),a=!1,l()}}}function xh(i){let e;function t(r,s){return r[3]?zh:Uh}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),f(e,"class","container svelte-1k4i25s"),j(e,"container-mobile",i[4]),j(e,"skippable",i[3])},m(r,s){k(r,e,s),o.m(e,null)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),s&16&&j(e,"container-mobile",r[4]),s&8&&j(e,"skippable",r[3])},i:de,o:de,d(r){r&&w(e),o.d()}}}function Wh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:s=Hh}=e,l=it().ui.isMobile;q(i,l,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,s=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,s,u,n,l]}var Aa=class extends H{constructor(e){super(),U(this,e,Wh,xh,F,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},qh)}},Wd=Aa;function Kh(i){he(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function jh(i){let e;return{c(){e=P("button"),e.textContent=`${G("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){k(t,e,n)},p:de,i:de,o:de,d(t){t&&w(e)}}}var Ma=class extends H{constructor(e){super(),U(this,e,null,jh,F,{},Kh)}},Kd=Ma;function Gh(i){he(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
15
15
|
360deg,
|
|
16
16
|
rgba(0, 0, 0, 0) 0%,
|
|
17
17
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -21,17 +21,17 @@ var H_=Object.defineProperty;var q_=(i,e,t)=>e in i?H_(i,e,{enumerable:!0,config
|
|
|
21
21
|
rgba(0, 0, 0, 0.5) 77%,
|
|
22
22
|
rgba(0, 0, 0, 0.55) 88%,
|
|
23
23
|
rgba(0, 0, 0, 0.65) 100%
|
|
24
|
-
)}`)}function Vd(i){let e;return{c(){e=I("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function Rd(i){let e,t;return e=new Md({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Bd(i){let e,t;return e=new Ad({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Nd(i){let e,t;return e=new Ld({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Nh(i){let e,t,n,o,r,s,a,l=i[0]&&Vd(i),u=i[3]&&Rd(i),c=i[7]&&Bd(i),m=i[4]&&Nd(i);return{c(){e=I("div"),l&&l.c(),t=Y(),n=I("video"),o=Y(),u&&u.c(),r=Y(),c&&c.c(),s=Y(),m&&m.c(),di(n,"width","100%"),di(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,C){w(h,e,C),l&&l.m(e,null),_(e,t),_(e,n),i[19](n),_(e,o),u&&u.m(e,null),_(e,r),c&&c.m(e,null),_(e,s),m&&m.m(e,null),i[20](e),a=!0},p(h,[C]){h[0]?l||(l=Vd(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[3]?u?(u.p(h,C),C&8&&d(u,1)):(u=Rd(h),u.c(),d(u,1),u.m(e,r)):u&&(ae(),p(u,1,1,()=>{u=null}),ue()),h[7]?c?C&128&&d(c,1):(c=Bd(h),c.c(),d(c,1),c.m(e,s)):c&&(ae(),p(c,1,1,()=>{c=null}),ue()),h[4]?m?C&16&&d(m,1):(m=Nd(h),m.c(),d(m,1),m.m(e,null)):m&&(ae(),p(m,1,1,()=>{m=null}),ue())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){p(u),p(c),p(m),a=!1},d(h){h&&y(e),l&&l.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function Dh(i,e,t){let n,o,r,s,a,{adsSlotId:l=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=nt(),C=h.state.isEnded$;D(i,C,q=>t(7,a=q));let g=h.ui.isMobile;D(i,g,q=>t(0,o=q));let S,k,F=!1,T=h.ads.playbackState;D(i,T,q=>t(18,n=q));let v=h.ads.canSkip,E=h.ads.position;D(i,E,q=>t(5,r=q));let H=h.ads.secondsToWatchBeforeSkip;D(i,H,q=>t(6,s=q));let U,W;Vt(()=>{let q=h.getAdmanWrapper();if(!l){q.onAdmanLoadingError();return}let X=new AbortController,oe=()=>{X.abort()},{width:K,height:ce}=Ye(h.ui.playerSize),z=Ye(h.ui.isFullscreen),x=Ye(h.ui.isAutoplay),P={width:K,height:ce,isFullscreen:z,isAutoplay:x,adsContainer:S,adsVideoElement:k,slotId:l,params:u,previewParam:c,duration:m};return window.AdmanHTML?(q.initAdman(P),F=!0):q.loadAdman(X.signal).then(()=>{q.initAdman(P),F=!0}).catch(()=>{q.onAdmanLoadingError()}),()=>{!F&&oe()}});function ne(q){ve[q?"unshift":"push"](()=>{k=q,t(2,k)})}function de(q){ve[q?"unshift":"push"](()=>{S=q,t(1,S)})}return i.$$set=q=>{"adsSlotId"in q&&t(14,l=q.adsSlotId),"adsParams"in q&&t(15,u=q.adsParams),"adsPreviewParam"in q&&t(16,c=q.adsPreviewParam),"duration"in q&&t(17,m=q.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,U=v&&n!=="inactive"),i.$$.dirty&262145&&t(4,W=o&&n!=="inactive")},[o,S,k,U,W,r,s,a,h,C,g,T,E,H,l,u,c,m,n,ne,de]}var va=class extends N{constructor(e){super(),O(this,e,Dh,Nh,B,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Bh)}},Ds=va;var Nn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function Oh(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),we(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ya=class extends N{constructor(e){super(),O(this,e,Fh,Oh,B,{})}},Dd=ya;function Hh(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("rect"),n=M("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),we(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wa=class extends N{constructor(e){super(),O(this,e,qh,Hh,B,{})}},Od=wa;function Uh(i){let e,t;return e=new Dd({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function zh(i){let e,t;return e=new Od({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wh(i){let e,t,n,o,r=[zh,Uh],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function Kh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var ka=class extends N{constructor(e){super(),O(this,e,Kh,Wh,B,{isActive:0})}},Os=ka;function xh(i){be(i,"svelte-i7xnqb",".thumb-timer.svelte-i7xnqb.svelte-i7xnqb{position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-i7xnqb.svelte-i7xnqb{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-i7xnqb.svelte-i7xnqb{visibility:hidden;opacity:0}.thumb-timer.svelte-i7xnqb.svelte-i7xnqb:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-i7xnqb .thumb-timer-equalizer.svelte-i7xnqb{margin-top:-2px}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-i7xnqb .thumb-timer-equalizer .col.svelte-i7xnqb{animation-play-state:running}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(1){left:0;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(2){left:3px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(3){left:6px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col3}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;text-align:right}")}function jh(i){let e=Nn(i[4]-i[3])+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&24&&e!==(e=Nn(n[4]-n[3])+"")&&Ge(t,e)},i:me,o:me,d(n){n&&y(t)}}}function Gh(i){let e,t,n;return t=new Os({props:{isActive:!0}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function Yh(i){let e,t,n,o,r,s,a,l=[Gh,jh],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),s=u[r]=l[r](i),{c(){e=I("div"),t=I("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=Y(),o=I("span"),s.c(),f(t,"class","thumb-timer-equalizer svelte-i7xnqb"),f(o,"class","thumb-timer-text svelte-i7xnqb"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-i7xnqb"),f(e,"data-testid","thumb-timer"),G(e,"live",i[1]),G(e,"hidden",i[0]),G(e,"playing",i[2])},m(m,h){w(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let C=r;r=c(m,h),r===C?u[r].p(m,h):(ae(),p(u[C],1,1,()=>{u[C]=null}),ue(),s=u[r],s?s.p(m,h):(s=u[r]=l[r](m),s.c()),d(s,1),s.m(o,null)),(!a||h&2)&&G(e,"live",m[1]),(!a||h&1)&&G(e,"hidden",m[0]),(!a||h&4)&&G(e,"playing",m[2])},i(m){a||(d(s),a=!0)},o(m){p(s),a=!1},d(m){m&&y(e),u[r].d()}}}function Qh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:s}=e,{duration:a}=e;return i.$$set=l=>{"isHidden"in l&&t(0,n=l.isHidden),"isLive"in l&&t(1,o=l.isLive),"isPlaying"in l&&t(2,r=l.isPlaying),"position"in l&&t(3,s=l.position),"duration"in l&&t(4,a=l.duration)},[n,o,r,s,a]}var Ca=class extends N{constructor(e){super(),O(this,e,Qh,Yh,B,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},xh)}},Fs=Ca;var Sr=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as sg}from"@vkontakte/videoplayer-core";import{clientChecker as Fd}from"@vkontakte/videoplayer-shared";var uo=i=>{i.stopPropagation(),i.preventDefault()},Xh=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},Jh=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},$h=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},eg=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Hd=i=>i.code==="Escape",tg=i=>i.code==="ArrowLeft",Sa=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},qd=i=>{if($h(i)){uo(i),Jh(i.target);return}eg(i)&&(uo(i),Xh(i.target))},Tr=i=>!Fd.isAndroid&&(i==null?void 0:i.detail)===0||Fd.isAndroid&&(i==null?void 0:i.pointerType)==="",Ir=async(i,e,t)=>{await Xn(),i&&!i.classList.contains("opened")&&!e&&Ye(t)&&(await Xn(),t.set(!1),i.focus())},Ud=async(i,e,t)=>{await Xn(),i&&!e&&Ye(t)&&(t.set(!1),i.focus())},co=async(i,e,t)=>{var o;await Xn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())},zd=async i=>{!!i&&setTimeout(()=>{i.focus()},100)},Hs=(i,e)=>{qd(i),Hd(i)&&(uo(i),e())},Wd=async(i,e,t)=>{if(Sa(i,["ArrowRight"])){uo(i),e(),await Xn();let n=t();n==null||n.focus()}},Kd=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(qd(i),tg(i)){uo(i),e(),t.set(n);return}Hd(i)&&(uo(i),o())},Pr=(i,e)=>{Sa(i)&&(uo(i),e())},xd=(i,e,t)=>{if(Sa(i))uo(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),uo(i);return}n==="ArrowRight"&&!e&&(t(!0),uo(i))}},jd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Gd=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};import{isNullable as Us,isValidURL as lg}from"@vkontakte/videoplayer-shared";var qs=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(qs||{});var Jn={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as Yd}from"@vkontakte/videoplayer-shared";function ng(i){be(i,"svelte-1hm4mm9",".item.svelte-1hm4mm9{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}.item.svelte-1hm4mm9:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function og(i){let e,t,n,o,r;return{c(){var s;e=I("li"),t=qe(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(s=i[2])!=null?s:i[1]),f(e,"data-testid",i[0])},m(s,a){w(s,e,a),_(e,t),o||(r=[ke(e,"click",gt(i[3])),ke(e,"keydown",i[4])],o=!0)},p(s,[a]){var l;a&2&&Ge(t,s[1]),a&6&&n!==(n=(l=s[2])!=null?l:s[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",s[0])},i:me,o:me,d(s){s&&y(e),o=!1,ct(r)}}}function rg(i,e,t){let{id:n}=e,{onClick:o=Yd}=e,{closeContextMenu:r=Yd}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Pr(c,()=>l())};return i.$$set=c=>{"id"in c&&t(0,n=c.id),"onClick"in c&&t(5,o=c.onClick),"closeContextMenu"in c&&t(6,r=c.closeContextMenu),"label"in c&&t(1,s=c.label),"ariaLabel"in c&&t(2,a=c.ariaLabel)},[n,s,a,l,u,o,r]}var Ta=class extends N{constructor(e){super(),O(this,e,rg,og,B,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},ng)}},Qd=Ta;var lr=(i,e)=>i.weight-e.weight;function ag(i){be(i,"svelte-1p5ukkp","ul.svelte-1p5ukkp{position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}")}function Zd(i,e,t){let n=i.slice();return n[52]=e[t],n}function Xd(i){let e,t,n,o,r=bt(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=Jd(Zd(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=I("ul");for(let l=0;l<s.length;l+=1)s[l].c();f(e,"role","menu"),di(e,"top",i[4]+"px"),di(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(l,u){w(l,e,u);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);i[34](e),t=!0,n||(o=[ke(e,"contextmenu",ri(i[33])),ke(e,"keydown",i[13])],n=!0)},p(l,u){if(u[0]&4100){r=bt(l[2]);let c;for(c=0;c<r.length;c+=1){let m=Zd(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=Jd(m),s[c].c(),d(s[c],1),s[c].m(e,null))}for(ae(),c=r.length;c<s.length;c+=1)a(c);ue()}(!t||u[0]&16)&&di(e,"top",l[4]+"px"),(!t||u[0]&8)&&di(e,"left",l[3]+"px")},i(l){if(!t){for(let u=0;u<r.length;u+=1)d(s[u]);t=!0}},o(l){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);t=!1},d(l){l&&y(e),oi(s,l),i[34](null),n=!1,ct(o)}}}function Jd(i){let e,t;return e=new Qd({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.id=n[52].id),o[0]&4&&(r.label=n[52].label),o[0]&4&&(r.ariaLabel=n[52].ariaLabel),o[0]&4&&(r.onClick=n[52].onClick),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function ug(i){let e,t,n=i[1]&&Xd(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[1]?n?(n.p(o,r),r[0]&2&&d(n,1)):(n=Xd(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function cg(i,e,t){var $e,Ne,et;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,{visible:T=!1}=e,{supportLink:v}=e,{position:E={top:0,left:0}}=e,{playerContainerRef:H=void 0}=e,{controlsContainerRef:U=void 0}=e,{menuElementRef:W=void 0}=e,{returnFocus:ne}=e,de=0,q=0,X=nt(),oe=xt(),K=X.ui.contextMenu.visible$,ce=X.ui.debugPanelVisible;D(i,ce,Fe=>t(28,h=Fe));let z=X.ui.additionalContextMenuItems$;D(i,z,Fe=>t(27,m=Fe));let x=X.webApi.pictureInPictureApi,P=($e=X.webApi.pictureInPictureApi)==null?void 0:$e.info.isActive$;D(i,P,Fe=>t(30,S=Fe));let J=X.actions.internal.togglePictureInPicture,le=X.state.chromecastState$;D(i,le,Fe=>t(31,k=Fe));let Ae=X.state.isLive$;D(i,Ae,Fe=>t(32,F=Fe));let ee=X.state.positionExact$;D(i,ee,Fe=>t(35,g=Fe));let ge=X.state.isInteractive,Ee=X.state.looped$;D(i,Ee,Fe=>t(29,C=Fe));let Te=()=>{K.set(!1),ne==null||ne()},Ie=(Fe,ut)=>{if(!W||!H||!U)return;let ft=W.getBoundingClientRect(),he=H.getBoundingClientRect();t(3,de=Fe-he.left),t(4,q=ut-he.top),de+ft.width>he.width&&t(3,de=he.width-ft.width),q+ft.height>he.height&&t(4,q=he.height-ft.height),t(3,de=Math.max(de,0)),t(4,q=Math.max(q,0))},ot=()=>{X.actions.internal.videoRotate()},Pe=()=>{lg(v)&&window.open(v,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()},We=()=>{let Fe=X.actions.internal.getDebugTextData();if(oe.features.saveDebugInfoToFile){let ut=new Blob([...Fe],{type:"plain/text"}),ft=window.URL.createObjectURL(ut);ir(ft,"vk_player_debug_info","txt")}else Sr(X.actions.internal.getDebugTextData())},$=()=>{let Fe=X.actions.internal.getTraceTextData(),ut=new Blob([...Fe],{type:"application/json"}),ft=window.URL.createObjectURL(ut);ir(ft,"vk_player_trace_info","json")},_e=()=>{ce.set(!0)},Ce=async()=>{try{J()}finally{ne==null||ne()}},xe=()=>{X.actions.internal.setLooped(!C)},rt=()=>{var Fe,ut;if(r){let ft=(ut=(Fe=X.callbacks)==null?void 0:Fe.onCopyEmbedCodeClicked)==null?void 0:ut.call(Fe);ft&&Sr(ft)}},lt=(Fe=!1)=>{var ut,ft;if((ut=X.callbacks)!=null&&ut.onCopyVideoLink){let he=(ft=X.callbacks)==null?void 0:ft.onCopyVideoLink(Fe,g);he&&Sr(he)}},it=Fe=>{Hs(Fe,Te)},Je=[];function fe(Fe){Rn.call(this,i,Fe)}function Se(Fe){ve[Fe?"unshift":"push"](()=>{W=Fe,t(0,W)})}return i.$$set=Fe=>{"visible"in Fe&&t(1,T=Fe.visible),"supportLink"in Fe&&t(14,v=Fe.supportLink),"position"in Fe&&t(15,E=Fe.position),"playerContainerRef"in Fe&&t(16,H=Fe.playerContainerRef),"controlsContainerRef"in Fe&&t(17,U=Fe.controlsContainerRef),"menuElementRef"in Fe&&t(0,W=Fe.menuElementRef),"returnFocus"in Fe&&t(18,ne=Fe.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!F&&!ge),i.$$.dirty[1]&1&&t(23,s=x&&k!==sg.CONNECTED&&!ge),i.$$.dirty[0]&1073741824&&t(21,l=oe.showSupport&&!S),i.$$.dirty[0]&229377&&W&&H&&U){let{top:Fe,left:ut,bottom:ft,right:he}=E,dt=ut!=null?ut:0,vt=Fe!=null?Fe:0,yt=W.getBoundingClientRect();Us(ut)&&!Us(he)&&(dt=he-yt.width),Us(Fe)&&!Us(ft)&&(vt=ft-yt.height),dt=Math.max(dt,0),vt=Math.max(vt,0),Ie(dt,vt)}i.$$.dirty[0]&1073217540&&(t(2,Je=[]),n&&Je.push({id:"copy-link",weight:Jn["copy-link"],label:j("menu_copy_video_link"),onClick:()=>lt()}),o&&Je.push({id:"copy-link-timestamp",weight:Jn["copy-link-timestamp"],label:j("menu_copy_video_link_with_timestamp"),onClick:()=>lt(!0)}),r&&Je.push({id:"copy-embed-code",weight:Jn["copy-embed-code"],label:j("menu_copy_embed_code"),onClick:rt}),s&&Je.push({id:"pip",weight:Jn.pip,label:j("menu_pip"),onClick:Ce}),Je.push({id:"video-loop",weight:Jn["video-loop"],label:C?j("menu_video_loop_off"):j("menu_video_loop_on"),ariaLabel:j("aria_label_menu_loop"),onClick:xe}),a&&Je.push({id:"rotate",weight:Jn.rotate,label:j("menu_video_rotate"),ariaLabel:j("aria_label_menu_rotate"),onClick:ot}),l&&Je.push({id:"report",weight:Jn.report,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,onClick:Pe}),Je.push({id:"save-debug",weight:Jn["save-debug"],label:c,onClick:We}),u&&Je.push({id:"save-trace",weight:Jn["save-trace"],label:j("menu_save_debug"),onClick:$}),Je.push({id:"debug-info",weight:Jn["debug-info"],label:j("menu_debug_overlay"),ariaLabel:h?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),onClick:_e}),t(2,Je=[...Je,...m].sort(lr)))},t(26,n=oe.features.copyVideoLink&&((Ne=X.callbacks)==null?void 0:Ne.onCopyVideoLink)),t(24,r=!!((et=X.callbacks)!=null&&et.onCopyEmbedCodeClicked)),t(22,a=oe.features.videoRotate&&!ge),t(19,u=oe.features.saveTraceInfoToFile),t(20,c=oe.features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),[W,T,Je,de,q,ce,z,P,le,Ae,ee,Ee,Te,it,v,E,H,U,ne,u,c,l,a,s,r,o,n,m,h,C,S,k,F,fe,Se]}var Ia=class extends N{constructor(e){super(),O(this,e,cg,ug,B,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},ag,[-1,-1])}},$d=Ia;var zs=class{constructor(e){this.value=e,this.next=null}};var Er=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new zs(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function fg(i){be(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function dg(i){let e,t;return{c(){e=I("div"),t=I("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){w(n,e,o),_(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&y(e),i[3](null)}}}var Pa=16,Ea=120,e1=60;function mg(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function pg(i,e,t){let{values:n=[]}=e,o,r,s=Ea/e1;Vt(()=>{t(0,o.width=Ea,o),t(0,o.height=Pa,o),t(2,r=o.getContext("2d"))});function a(l){ve[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"values"in l&&t(1,n=l.values)},i.$$.update=()=>{if(i.$$.dirty&6){let l="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,Ea,Pa);let c=e1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,C=u>0?Pa*(n[m]/u):0;mg(r,h,0,s,C),l=C+" "+l,c--}}}},[o,n,r,a]}var Aa=class extends N{constructor(e){super(),O(this,e,pg,dg,B,{values:1},fg)}},Ws=Aa;import{safeStorage as t1}from"@vkontakte/videoplayer-shared";function _g(i){be(i,"svelte-k5ymwy",".container.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{top:16px;left:16px}button.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{padding:5px}.content.svelte-k5ymwy>div.svelte-k5ymwy>div.svelte-k5ymwy{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function i1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].id+"")&&Ge(s,r)},d(a){a&&y(e)}}}function n1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].vsid+"")&&Ge(s,r)},d(a){a&&y(e)}}}function o1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=Y(),o=I("span"),s=qe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].provider+"")&&Ge(s,r)},d(a){a&&y(e)}}}function r1(i){let e,t,n,o,r,s=(i[0].videoCodec||"")+"",a,l,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",C,g,S=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",k;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=Y(),o=I("span"),r=qe("Video: "),a=qe(s),l=Y(),c=qe(u),m=qe(`
|
|
24
|
+
)}`)}function jd(i){let e;return{c(){e=P("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function Gd(i){let e,t;return e=new Wd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Yd(i){let e,t;return e=new xd({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Qd(i){let e,t;return e=new Kd({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Yh(i){let e,t,n,o,r,s,a,l=i[0]&&jd(i),u=i[3]&&Gd(i),c=i[7]&&Yd(i),m=i[4]&&Qd(i);return{c(){e=P("div"),l&&l.c(),t=Y(),n=P("video"),o=Y(),u&&u.c(),r=Y(),c&&c.c(),s=Y(),m&&m.c(),hi(n,"width","100%"),hi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,v){k(h,e,v),l&&l.m(e,null),_(e,t),_(e,n),i[19](n),_(e,o),u&&u.m(e,null),_(e,r),c&&c.m(e,null),_(e,s),m&&m.m(e,null),i[20](e),a=!0},p(h,[v]){h[0]?l||(l=jd(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),h[3]?u?(u.p(h,v),v&8&&d(u,1)):(u=Gd(h),u.c(),d(u,1),u.m(e,r)):u&&(se(),p(u,1,1,()=>{u=null}),le()),h[7]?c?v&128&&d(c,1):(c=Yd(h),c.c(),d(c,1),c.m(e,s)):c&&(se(),p(c,1,1,()=>{c=null}),le()),h[4]?m?v&16&&d(m,1):(m=Qd(h),m.c(),d(m,1),m.m(e,null)):m&&(se(),p(m,1,1,()=>{m=null}),le())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){p(u),p(c),p(m),a=!1},d(h){h&&w(e),l&&l.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function Qh(i,e,t){let n,o,r,s,a,{adsSlotId:l=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=it(),v=h.state.isEnded$;q(i,v,Q=>t(7,a=Q));let g=h.ui.isMobile;q(i,g,Q=>t(0,o=Q));let I,C,V=!1,S=h.ads.playbackState;q(i,S,Q=>t(18,n=Q));let y=h.ads.canSkip,E=h.ads.position;q(i,E,Q=>t(5,r=Q));let z=h.ads.secondsToWatchBeforeSkip;q(i,z,Q=>t(6,s=Q));let N,L;Nt(()=>{let Q=h.getAdmanWrapper();if(!l){Q.onAdmanLoadingError();return}let $=new AbortController,J=()=>{$.abort()},{width:W,height:ue}=je(h.ui.playerSize),x=je(h.ui.isFullscreen),K=je(h.ui.isAutoplay),A={width:W,height:ue,isFullscreen:x,isAutoplay:K,adsContainer:I,adsVideoElement:C,slotId:l,params:u,previewParam:c,duration:m};return window.AdmanHTML?(Q.initAdman(A),V=!0):Q.loadAdman($.signal).then(()=>{Q.initAdman(A),V=!0}).catch(()=>{Q.onAdmanLoadingError()}),()=>{!V&&J()}});function ee(Q){ge[Q?"unshift":"push"](()=>{C=Q,t(2,C)})}function ae(Q){ge[Q?"unshift":"push"](()=>{I=Q,t(1,I)})}return i.$$set=Q=>{"adsSlotId"in Q&&t(14,l=Q.adsSlotId),"adsParams"in Q&&t(15,u=Q.adsParams),"adsPreviewParam"in Q&&t(16,c=Q.adsPreviewParam),"duration"in Q&&t(17,m=Q.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,N=y&&n!=="inactive"),i.$$.dirty&262145&&t(4,L=o&&n!=="inactive")},[o,I,C,N,L,r,s,a,h,v,g,S,E,z,l,u,c,m,n,ee,ae]}var La=class extends H{constructor(e){super(),U(this,e,Qh,Yh,F,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Gh)}},Ws=La;var On=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function Zh(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function Xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Va=class extends H{constructor(e){super(),U(this,e,Xh,Zh,F,{})}},Zd=Va;function Jh(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("rect"),n=O("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function $h(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Ra=class extends H{constructor(e){super(),U(this,e,$h,Jh,F,{})}},Xd=Ra;function eg(i){let e,t;return e=new Zd({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function tg(i){let e,t;return e=new Xd({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function ig(i){let e,t,n,o,r=[tg,eg],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function ng(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Ba=class extends H{constructor(e){super(),U(this,e,ng,ig,F,{isActive:0})}},Ks=Ba;function og(i){he(i,"svelte-i7xnqb",".thumb-timer.svelte-i7xnqb.svelte-i7xnqb{position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-i7xnqb.svelte-i7xnqb{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-i7xnqb.svelte-i7xnqb{visibility:hidden;opacity:0}.thumb-timer.svelte-i7xnqb.svelte-i7xnqb:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-i7xnqb .thumb-timer-equalizer.svelte-i7xnqb{margin-top:-2px}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-i7xnqb .thumb-timer-equalizer .col.svelte-i7xnqb{animation-play-state:running}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(1){left:0;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(2){left:3px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(3){left:6px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col3}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;text-align:right}")}function rg(i){let e=On(i[4]-i[3])+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&24&&e!==(e=On(n[4]-n[3])+"")&&Ke(t,e)},i:de,o:de,d(n){n&&w(t)}}}function sg(i){let e,t,n;return t=new Ks({props:{isActive:!0}}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function lg(i){let e,t,n,o,r,s,a,l=[sg,rg],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),s=u[r]=l[r](i),{c(){e=P("div"),t=P("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=Y(),o=P("span"),s.c(),f(t,"class","thumb-timer-equalizer svelte-i7xnqb"),f(o,"class","thumb-timer-text svelte-i7xnqb"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-i7xnqb"),f(e,"data-testid","thumb-timer"),j(e,"live",i[1]),j(e,"hidden",i[0]),j(e,"playing",i[2])},m(m,h){k(m,e,h),_(e,t),_(e,n),_(e,o),u[r].m(o,null),a=!0},p(m,[h]){let v=r;r=c(m,h),r===v?u[r].p(m,h):(se(),p(u[v],1,1,()=>{u[v]=null}),le(),s=u[r],s?s.p(m,h):(s=u[r]=l[r](m),s.c()),d(s,1),s.m(o,null)),(!a||h&2)&&j(e,"live",m[1]),(!a||h&1)&&j(e,"hidden",m[0]),(!a||h&4)&&j(e,"playing",m[2])},i(m){a||(d(s),a=!0)},o(m){p(s),a=!1},d(m){m&&w(e),u[r].d()}}}function ag(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:s}=e,{duration:a}=e;return i.$$set=l=>{"isHidden"in l&&t(0,n=l.isHidden),"isLive"in l&&t(1,o=l.isLive),"isPlaying"in l&&t(2,r=l.isPlaying),"position"in l&&t(3,s=l.position),"duration"in l&&t(4,a=l.duration)},[n,o,r,s,a]}var Na=class extends H{constructor(e){super(),U(this,e,ag,lg,F,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},og)}},js=Na;var Sr=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as vg}from"@vkontakte/videoplayer-core";import{clientChecker as Jd}from"@vkontakte/videoplayer-shared";var jn=i=>{i.stopPropagation(),i.preventDefault()},cg=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},fg=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},dg=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},mg=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},$d=i=>i.code==="Escape",pg=i=>i.code==="ArrowLeft",os=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},e1=i=>{if(dg(i)){jn(i),fg(i.target);return}mg(i)&&(jn(i),cg(i.target))},Tr=i=>!Jd.isAndroid&&(i==null?void 0:i.detail)===0||Jd.isAndroid&&(i==null?void 0:i.pointerType)==="",Ir=async(i,e,t)=>{await an(),i&&!i.classList.contains("opened")&&!e&&je(t)&&(await an(),t.set(!1),i.focus())},t1=async(i,e,t)=>{await an(),i&&!e&&je(t)&&(t.set(!1),i.focus())},ho=async(i,e,t)=>{var o;await an(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())},i1=async(i,e)=>{setTimeout(()=>{let t=i[e];!!t&&t.focus()},100)},Gs=(i,e)=>{e1(i),$d(i)&&(jn(i),e())},Ys=async(i,e,t)=>{if(os(i,["ArrowRight"])){jn(i),e(),await an();let n=t();n==null||n.focus()}},n1=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(e1(i),pg(i)){jn(i),e(),t.set(n);return}$d(i)&&(jn(i),o())},Pr=(i,e)=>{os(i)&&(jn(i),e())},o1=(i,e,t)=>{if(os(i))jn(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),jn(i);return}n==="ArrowRight"&&!e&&(t(!0),jn(i))}},r1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},s1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};import{isNullable as Zs,isValidURL as yg}from"@vkontakte/videoplayer-shared";var Qs=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(Qs||{});var no={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as l1}from"@vkontakte/videoplayer-shared";function hg(i){he(i,"svelte-1hm4mm9",".item.svelte-1hm4mm9{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}.item.svelte-1hm4mm9:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function gg(i){let e,t,n,o,r;return{c(){var s;e=P("li"),t=Oe(i[1]),f(e,"class","item svelte-1hm4mm9"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(s=i[2])!=null?s:i[1]),f(e,"data-testid",i[0])},m(s,a){k(s,e,a),_(e,t),o||(r=[ke(e,"click",gt(i[3])),ke(e,"keydown",i[4])],o=!0)},p(s,[a]){var l;a&2&&Ke(t,s[1]),a&6&&n!==(n=(l=s[2])!=null?l:s[1])&&f(e,"aria-label",n),a&1&&f(e,"data-testid",s[0])},i:de,o:de,d(s){s&&w(e),o=!1,at(r)}}}function bg(i,e,t){let{id:n}=e,{onClick:o=l1}=e,{closeContextMenu:r=l1}=e,{label:s}=e,{ariaLabel:a}=e,l=()=>{o(),r()},u=c=>{Pr(c,()=>l())};return i.$$set=c=>{"id"in c&&t(0,n=c.id),"onClick"in c&&t(5,o=c.onClick),"closeContextMenu"in c&&t(6,r=c.closeContextMenu),"label"in c&&t(1,s=c.label),"ariaLabel"in c&&t(2,a=c.ariaLabel)},[n,s,a,l,u,o,r]}var Da=class extends H{constructor(e){super(),U(this,e,bg,gg,F,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},hg)}},a1=Da;var lr=(i,e)=>i.weight-e.weight;function wg(i){he(i,"svelte-1p5ukkp","ul.svelte-1p5ukkp{position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}")}function u1(i,e,t){let n=i.slice();return n[52]=e[t],n}function c1(i){let e,t,n,o,r=kt(i[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=f1(u1(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=P("ul");for(let l=0;l<s.length;l+=1)s[l].c();f(e,"role","menu"),hi(e,"top",i[4]+"px"),hi(e,"left",i[3]+"px"),f(e,"class","svelte-1p5ukkp")},m(l,u){k(l,e,u);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);i[34](e),t=!0,n||(o=[ke(e,"contextmenu",si(i[33])),ke(e,"keydown",i[13])],n=!0)},p(l,u){if(u[0]&4100){r=kt(l[2]);let c;for(c=0;c<r.length;c+=1){let m=u1(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=f1(m),s[c].c(),d(s[c],1),s[c].m(e,null))}for(se(),c=r.length;c<s.length;c+=1)a(c);le()}(!t||u[0]&16)&&hi(e,"top",l[4]+"px"),(!t||u[0]&8)&&hi(e,"left",l[3]+"px")},i(l){if(!t){for(let u=0;u<r.length;u+=1)d(s[u]);t=!0}},o(l){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);t=!1},d(l){l&&w(e),fi(s,l),i[34](null),n=!1,at(o)}}}function f1(i){let e,t;return e=new a1({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.id=n[52].id),o[0]&4&&(r.label=n[52].label),o[0]&4&&(r.ariaLabel=n[52].ariaLabel),o[0]&4&&(r.onClick=n[52].onClick),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function kg(i){let e,t,n=i[1]&&c1(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[1]?n?(n.p(o,r),r[0]&2&&d(n,1)):(n=c1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Cg(i,e,t){var $e,De,et;let n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,{visible:S=!1}=e,{supportLink:y}=e,{position:E={top:0,left:0}}=e,{playerContainerRef:z=void 0}=e,{controlsContainerRef:N=void 0}=e,{menuElementRef:L=void 0}=e,{returnFocus:ee}=e,ae=0,Q=0,$=it(),J=Lt(),W=$.ui.contextMenu.visible$,ue=$.ui.debugPanelVisible;q(i,ue,He=>t(28,h=He));let x=$.ui.additionalContextMenuItems$;q(i,x,He=>t(27,m=He));let K=$.webApi.pictureInPictureApi,A=($e=$.webApi.pictureInPictureApi)==null?void 0:$e.info.isActive$;q(i,A,He=>t(30,I=He));let fe=$.actions.internal.togglePictureInPicture,X=$.state.chromecastState$;q(i,X,He=>t(31,C=He));let Me=$.state.isLive$;q(i,Me,He=>t(32,V=He));let ie=$.state.positionExact$;q(i,ie,He=>t(35,g=He));let be=$.state.isInteractive,Te=$.state.looped$;q(i,Te,He=>t(29,v=He));let Ie=()=>{W.set(!1),ee==null||ee()},Pe=(He,ut)=>{if(!L||!z||!N)return;let ct=L.getBoundingClientRect(),_e=z.getBoundingClientRect();t(3,ae=He-_e.left),t(4,Q=ut-_e.top),ae+ct.width>_e.width&&t(3,ae=_e.width-ct.width),Q+ct.height>_e.height&&t(4,Q=_e.height-ct.height),t(3,ae=Math.max(ae,0)),t(4,Q=Math.max(Q,0))},ot=()=>{$.actions.internal.videoRotate()},Ee=()=>{yg(y)&&window.open(y,"_blank"),$.actions.internal.reportProblem(),$.actions.internal.pause()},ze=()=>{let He=$.actions.internal.getDebugTextData();if(J.features.saveDebugInfoToFile){let ut=new Blob([...He],{type:"plain/text"}),ct=window.URL.createObjectURL(ut);ir(ct,"vk_player_debug_info","txt")}else Sr($.actions.internal.getDebugTextData())},te=()=>{let He=$.actions.internal.getTraceTextData(),ut=new Blob([...He],{type:"application/json"}),ct=window.URL.createObjectURL(ut);ir(ct,"vk_player_trace_info","json")},pe=()=>{ue.set(!0)},Ce=async()=>{try{fe()}finally{ee==null||ee()}},We=()=>{$.actions.internal.setLooped(!v)},nt=()=>{var He,ut;if(r){let ct=(ut=(He=$.callbacks)==null?void 0:He.onCopyEmbedCodeClicked)==null?void 0:ut.call(He);ct&&Sr(ct)}},st=(He=!1)=>{var ut,ct;if((ut=$.callbacks)!=null&&ut.onCopyVideoLink){let _e=(ct=$.callbacks)==null?void 0:ct.onCopyVideoLink(He,g);_e&&Sr(_e)}},rt=He=>{Gs(He,Ie)},Qe=[];function ce(He){Nn.call(this,i,He)}function Se(He){ge[He?"unshift":"push"](()=>{L=He,t(0,L)})}return i.$$set=He=>{"visible"in He&&t(1,S=He.visible),"supportLink"in He&&t(14,y=He.supportLink),"position"in He&&t(15,E=He.position),"playerContainerRef"in He&&t(16,z=He.playerContainerRef),"controlsContainerRef"in He&&t(17,N=He.controlsContainerRef),"menuElementRef"in He&&t(0,L=He.menuElementRef),"returnFocus"in He&&t(18,ee=He.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!V&&!be),i.$$.dirty[1]&1&&t(23,s=K&&C!==vg.CONNECTED&&!be),i.$$.dirty[0]&1073741824&&t(21,l=J.showSupport&&!I),i.$$.dirty[0]&229377&&L&&z&&N){let{top:He,left:ut,bottom:ct,right:_e}=E,dt=ut!=null?ut:0,bt=He!=null?He:0,Ct=L.getBoundingClientRect();Zs(ut)&&!Zs(_e)&&(dt=_e-Ct.width),Zs(He)&&!Zs(ct)&&(bt=ct-Ct.height),dt=Math.max(dt,0),bt=Math.max(bt,0),Pe(dt,bt)}i.$$.dirty[0]&1073217540&&(t(2,Qe=[]),n&&Qe.push({id:"copy-link",weight:no["copy-link"],label:G("menu_copy_video_link"),onClick:()=>st()}),o&&Qe.push({id:"copy-link-timestamp",weight:no["copy-link-timestamp"],label:G("menu_copy_video_link_with_timestamp"),onClick:()=>st(!0)}),r&&Qe.push({id:"copy-embed-code",weight:no["copy-embed-code"],label:G("menu_copy_embed_code"),onClick:nt}),s&&Qe.push({id:"pip",weight:no.pip,label:G("menu_pip"),onClick:Ce}),Qe.push({id:"video-loop",weight:no["video-loop"],label:v?G("menu_video_loop_off"):G("menu_video_loop_on"),ariaLabel:G("aria_label_menu_loop"),onClick:We}),a&&Qe.push({id:"rotate",weight:no.rotate,label:G("menu_video_rotate"),ariaLabel:G("aria_label_menu_rotate"),onClick:ot}),l&&Qe.push({id:"report",weight:no.report,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,onClick:Ee}),Qe.push({id:"save-debug",weight:no["save-debug"],label:c,onClick:ze}),u&&Qe.push({id:"save-trace",weight:no["save-trace"],label:G("menu_save_debug"),onClick:te}),Qe.push({id:"debug-info",weight:no["debug-info"],label:G("menu_debug_overlay"),ariaLabel:h?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"),onClick:pe}),t(2,Qe=[...Qe,...m].sort(lr)))},t(26,n=J.features.copyVideoLink&&((De=$.callbacks)==null?void 0:De.onCopyVideoLink)),t(24,r=!!((et=$.callbacks)!=null&&et.onCopyEmbedCodeClicked)),t(22,a=J.features.videoRotate&&!be),t(19,u=J.features.saveTraceInfoToFile),t(20,c=J.features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug")),[L,S,Qe,ae,Q,ue,x,A,X,Me,ie,Te,Ie,rt,y,E,z,N,ee,u,c,l,a,s,r,o,n,m,h,v,I,C,V,ce,Se]}var Oa=class extends H{constructor(e){super(),U(this,e,Cg,kg,F,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},wg,[-1,-1])}},d1=Oa;var Xs=class{constructor(e){this.value=e,this.next=null}};var Er=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Xs(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function Sg(i){he(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Tg(i){let e,t;return{c(){e=P("div"),t=P("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){k(n,e,o),_(e,t),i[3](t)},p:de,i:de,o:de,d(n){n&&w(e),i[3](null)}}}var Fa=16,Ha=120,m1=60;function Ig(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Pg(i,e,t){let{values:n=[]}=e,o,r,s=Ha/m1;Nt(()=>{t(0,o.width=Ha,o),t(0,o.height=Fa,o),t(2,r=o.getContext("2d"))});function a(l){ge[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"values"in l&&t(1,n=l.values)},i.$$.update=()=>{if(i.$$.dirty&6){let l="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,Ha,Fa);let c=m1-1;for(let m=n.length-1;m>=0;m--){let h=c*s,v=u>0?Fa*(n[m]/u):0;Ig(r,h,0,s,v),l=v+" "+l,c--}}}},[o,n,r,a]}var qa=class extends H{constructor(e){super(),U(this,e,Pg,Tg,F,{values:1},Sg)}},Js=qa;import{safeStorage as p1}from"@vkontakte/videoplayer-shared";function Eg(i){he(i,"svelte-k5ymwy",".container.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{top:16px;left:16px}button.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{padding:5px}.content.svelte-k5ymwy>div.svelte-k5ymwy>div.svelte-k5ymwy{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function _1(i){let e,t,n,o,r=i[0].id+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].id+"")&&Ke(s,r)},d(a){a&&w(e)}}}function h1(i){let e,t,n,o,r=i[0].vsid+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="VSID",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].vsid+"")&&Ke(s,r)},d(a){a&&w(e)}}}function g1(i){let e,t,n,o,r=i[0].provider+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].provider+"")&&Ke(s,r)},d(a){a&&w(e)}}}function b1(i){let e,t,n,o,r,s=(i[0].videoCodec||"")+"",a,l,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",v,g,I=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",C;return{c(){e=P("div"),t=P("div"),t.textContent="Streams",n=Y(),o=P("span"),r=Oe("Video: "),a=Oe(s),l=Y(),c=Oe(u),m=Oe(`
|
|
25
25
|
&
|
|
26
|
-
Audio: `),
|
|
27
|
-
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function Cg(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("canvas"),n=Y(),o=M("svg"),r=M("g"),s=M("g"),a=M("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(s,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(l,u){w(l,e,u),_(e,t),i[2](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:me,i:me,o:me,d(l){l&&y(e),i[2](null)}}}var Sg=5e3;function Tg(i,e,t){let{onTimerEnded:n=wg}=e,o;Vt(()=>{let s,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let l=Date.now(),u=()=>{let c=(Date.now()-l)/Sg;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),s=requestAnimationFrame(u)):n()};return s=requestAnimationFrame(u),()=>{cancelAnimationFrame(s)}});function r(s){ve[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"onTimerEnded"in s&&t(1,n=s.onTimerEnded)},[o,n,r]}var Va=class extends N{constructor(e){super(),O(this,e,Tg,Cg,B,{onTimerEnded:1},kg)}},g1=Va;function Ig(i){be(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function b1(i){let e,t;return e=new g1({props:{onTimerEnded:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Pg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;a=new h1({}),a.$on("click",i[4]);let U=i[3]&&b1(i);return{c(){e=I("div"),t=Y(),n=I("div"),o=I("div"),r=I("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",s=Y(),R(a.$$.fragment),l=Y(),u=I("div"),c=I("div"),m=I("div"),h=I("div"),C=Y(),U&&U.c(),S=Y(),k=I("div"),F=I("div"),T=qe(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(F,"class","title svelte-kisfwc"),f(k,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(W,ne){w(W,e,ne),w(W,t,ne),w(W,n,ne),_(n,o),_(o,r),_(o,s),L(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,C),U&&U.m(m,null),_(u,S),_(u,k),_(k,F),_(F,T),v=!0,E||(H=ke(u,"click",function(){Qt(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(W,[ne]){i=W,i[3]?U?(U.p(i,ne),ne&8&&d(U,1)):(U=b1(i),U.c(),d(U,1),U.m(m,null)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),(!v||ne&2&&g!==(g=`background-image: url('${i[1]}')`))&&f(m,"style",g),(!v||ne&1)&&Ge(T,i[0])},i(W){v||(d(a.$$.fragment,W),d(U),v=!0)},o(W){p(a.$$.fragment,W),p(U),v=!1},d(W){W&&(y(e),y(t),y(n)),V(a),U&&U.d(),E=!1,H()}}}function Eg(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,s=!0,a=()=>t(3,s=!1);return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumb"in l&&t(1,o=l.thumb),"playNextVideo"in l&&t(2,r=l.playNextVideo)},[n,o,r,s,a]}var Ra=class extends N{constructor(e){super(),O(this,e,Eg,Pg,B,{title:0,thumb:1,playNextVideo:2},Ig)}},v1=Ra;import{PlaybackState as ar}from"@vkontakte/videoplayer-core";import{checkNever as Mg}from"@vkontakte/videoplayer-shared";import{SeekAction as kn}from"@vkontakte/videoplayer-statistics";var Ba=(i,e)=>Math.min(+(i+e).toFixed(2),1),Na=(i,e)=>Math.max(+(i-e).toFixed(2),0),xs=(i,e,t)=>{let n=Ba(e,t);e<1&&i.actions.internal.setVolume(n)},js=(i,e,t)=>{let n=Na(e,t);e>0&&i.actions.internal.setVolume(n)};var Ro=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function Lg(i){be(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Vg(i){let e,t,n,o,r,s=i[26].default,a=Le(s,i,i[25],null);return{c(){e=I("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=j("aria_label_video_player"))},m(l,u){w(l,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[ke(e,"keyup",i[17]),ke(e,"keydown",i[16])],o=!0)},p(l,u){a&&a.p&&(!n||u[0]&33554432)&&Re(a,s,l,l[25],n?Ve(s,l[25],u,null):Be(l[25]),null)},i(l){n||(d(a,l),n=!0)},o(l){p(a,l),n=!1},d(l){l&&y(e),a&&a.d(l),i[27](null),o=!1,ct(r)}}}function Rg(i,e,t){var ut,ft;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,{$$slots:T={},$$scope:v}=e,{isAds:E}=e,{hideContextMenu:H}=e,{toggleFullscreen:U}=e,{showHotKeyHelpers:W}=e,{showKeyMap:ne}=e,{fakePlayButtonHandler:de}=e,q=nt(),X=xt(),oe=q.getLogger().createComponentLog("KeyboardControls component"),K=q.state.playbackState$;D(i,K,he=>t(31,o=he));let ce=q.ads.playbackState;D(i,ce,he=>t(30,n=he));let z=q.state.positionExact$;D(i,z,he=>t(41,g=he));let x=q.state.duration$;D(i,x,he=>t(40,C=he));let P=q.state.volume$;D(i,P,he=>t(44,F=he));let J=q.ui.controls.disabledControls$;D(i,J,he=>t(39,h=he));let le=q.state.muted$;D(i,le,he=>t(34,a=he));let Ae=q.state.currentSubtitle$;D(i,Ae,he=>t(33,s=he));let ee=q.state.currentPlaybackRate$;D(i,ee,he=>t(42,S=he));let ge=q.state.availablePlaybackRates$;D(i,ge,he=>t(43,k=he));let Ee=q.ui.contextMenu.openedByHotKey$,Te=q.ui.contextMenu.lastActiveElem$,Ie=q.ui.contextMenu.visible$,ot=q.ui.contextMenu.position$,Pe=q.state.isEnded$;D(i,Pe,he=>t(36,u=he));let We=q.ui.overlayContainer$;D(i,We,he=>t(32,r=he));let $=(ut=q.callbacks)==null?void 0:ut.onAudioDoesNotExistHint,_e=(ft=q.callbacks)==null?void 0:ft.onAudioDisabledHint,Ce=q.state.isAudioAvailable$;D(i,Ce,he=>t(35,l=he));let xe=q.state.isAudioDisabled,rt=q.state.isInteractiveTime$;D(i,rt,he=>t(38,m=he));let{showInteractiveTimeIndicatorTooltip$:lt}=Bn();D(i,lt,he=>t(37,c=he));let it=0,Je=!0,fe,Se=()=>fe==null?void 0:fe.focus(),$e=he=>(he!==Je&&(Je=he,it=0),it+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*it)/1e3),Ne=he=>{var Ht;let dt=he.target,vt=(Ht=dt==null?void 0:dt.getAttribute("role"))==null?void 0:Ht.includes("menuitem"),yt=dt.classList.contains("btn"),Qe=he.code;if(yt&&Qe==="Space")return;let Tt=zf.has(Qe);if(vt&&Tt)return;let At=!Uf.has(Qe);if(he.ctrlKey&&At||he.altKey&&At||he.metaKey)return;let ii=vt&&Qe==="Escape";Wf.has(Qe)||ii||H();let Ot=o===ar.PLAYING||o===ar.PAUSED,Ft=E&&(n==="paused"||n==="playing"),jt=!Ft&&!h.has("TIMELINE");if(Ot||Ft)switch(oe({message:`key down, code: ${Qe}`}),Qe){case"KeyJ":case"ArrowLeft":{if(!jt)break;if(he.ctrlKey||he.altKey){let Ke=q.actions.internal.getPrevEpisode();q.actions.internal.seekToPrevEpisode(Ke),Ke&&W({type:"EPISODE_PREV",text:Ke.text}),he.preventDefault()}else{let Ke=he.shiftKey?$e(!1):X.controls.seekStepKeyboard/1e3,Ze=Math.max(g-Ke,0);g>0&&(q.actions.internal.seekTime(Ze,kn.DOUBLE_TAP),W({type:"BACKWARD_SEEK",text:Ke.toString()}),he.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!jt)break;if(he.ctrlKey||he.altKey){let Ke=q.actions.internal.getNextEpisode();q.actions.internal.seekToNextEpisode(Ke),Ke&&W({type:"EPISODE_NEXT",text:Ke.text}),he.preventDefault()}else{let Ke=he.shiftKey?$e(!0):X.controls.seekStepKeyboard/1e3,Ze=Math.min(g+Ke,C);Math.round(g)<Math.round(C)&&(q.actions.internal.seekTime(Ze,kn.DOUBLE_TAP),W({type:"FORWARD_SEEK",text:Ke.toString()}),he.preventDefault())}break}case"ArrowUp":{if(Ro({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})){let Ke=F,Ze=X.controls.volumeStepKeyboard,Ct=Ke<=1;if(xs(q,Ke,Ze),Ct){let pe=Math.round(Ba(Ke,Ze)*100).toString();W({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}he.preventDefault();break}case"ArrowDown":{if(Ro({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})){let Ke=F,Ze=X.controls.volumeStepKeyboard,Ct=Ke>=0;if(js(q,Ke,Ze),Ct){let pe=Math.round(Na(Ke,Ze)*100).toString();W({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}he.preventDefault();break}case"Comma":{if(he.shiftKey){q.actions.internal.decrementPlaybackRate();let Ke=k.find(Ze=>Ze.value===S);W({type:"RATE_DOWN",text:Ke==null?void 0:Ke.displayValue}),he.preventDefault()}else{if(Ft||o!==ar.PAUSED)break;let Ke=Math.max(g-X.controls.seekStepFrame/1e3,0);g>0&&(W({type:"BACKWARD_SEEK"}),q.actions.internal.clearDelayedBufferingCheckTimeout(),q.actions.internal.seekTime(Ke,kn.DOUBLE_TAP),he.preventDefault())}break}case"Period":{if(he.shiftKey){q.actions.internal.incrementPlaybackRate();let Ke=k.find(Ze=>Ze.value===S);W({type:"RATE_UP",text:Ke==null?void 0:Ke.displayValue}),he.preventDefault()}else{if(Ft||o!==ar.PAUSED)break;let Ke=Math.min(g+X.controls.seekStepFrame/1e3,C);g<C&&(W({type:"FORWARD_SEEK"}),q.actions.internal.clearDelayedBufferingCheckTimeout(),q.actions.internal.seekTime(Ke,kn.DOUBLE_TAP),he.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&<.set(!1),de)de();else{q.actions.internal.togglePlay();let Ke="PLAY";o===ar.PAUSED?Ke="PAUSE":u&&(Ke="REPLAY"),W({type:Ke})}he.preventDefault();break;case"KeyM":{Ro({isAudioDisabled:xe,audioDisabledHintCallback:_e,isAudioAvailable:l,audioIsNotExistHintCallback:$})&&(W({type:a?"VOLUME":"MUTE"}),q.actions.internal.toggleMuted()),he.preventDefault();break}case"KeyF":U(),he.preventDefault();break;case"KeyC":q.actions.internal.toggleSubtitle(),s.value!=="off"?W({type:"SUBTITLES_ON",text:s==null?void 0:s.displayValue}):W({type:"SUBTITLES_OFF"}),he.preventDefault();break;case"KeyI":q.actions.internal.togglePictureInPicture(),he.preventDefault();break;case"Digit1":case"Numpad1":if(he.shiftKey){let Ke=Gd(r);ot.set(Ke),Te.set(dt),Ee.set(!0),Ie.set(!0),he.preventDefault();break}W(),q.actions.internal.seekToPercent(.1,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit2":case"Numpad2":W(),q.actions.internal.seekToPercent(.2,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit3":case"Numpad3":W(),q.actions.internal.seekToPercent(.3,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit4":case"Numpad4":W(),q.actions.internal.seekToPercent(.4,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit5":case"Numpad5":W(),q.actions.internal.seekToPercent(.5,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit6":case"Numpad6":W(),q.actions.internal.seekToPercent(.6,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit7":case"Numpad7":W(),q.actions.internal.seekToPercent(.7,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit8":case"Numpad8":W(),q.actions.internal.seekToPercent(.8,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit9":case"Numpad9":W(),q.actions.internal.seekToPercent(.9,kn.DOUBLE_TAP),he.preventDefault();break;case"Digit0":case"Numpad0":W(),q.actions.internal.seekToPercent(0,kn.DOUBLE_TAP),he.preventDefault();break;case"Slash":{he.shiftKey&&X.features.hotKeyMapModal&&(ne(),he.preventDefault());break}case"ShiftLeft":case"ShiftRight":he.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:Mg(Qe);break}},et=he=>{let dt=he.code;if(he.ctrlKey||he.altKey||he.metaKey)return;let vt=o===ar.PLAYING||o===ar.PAUSED,yt=E&&(n==="paused"||n==="playing");if(vt||yt)switch(dt){case"ShiftLeft":case"ShiftRight":it=0;break}};function Fe(he){ve[he?"unshift":"push"](()=>{fe=he,t(0,fe)})}return i.$$set=he=>{"isAds"in he&&t(18,E=he.isAds),"hideContextMenu"in he&&t(19,H=he.hideContextMenu),"toggleFullscreen"in he&&t(20,U=he.toggleFullscreen),"showHotKeyHelpers"in he&&t(21,W=he.showHotKeyHelpers),"showKeyMap"in he&&t(22,ne=he.showKeyMap),"fakePlayButtonHandler"in he&&t(23,de=he.fakePlayButtonHandler),"$$scope"in he&&t(25,v=he.$$scope)},[fe,K,ce,z,x,P,J,le,Ae,ee,ge,Pe,We,Ce,rt,lt,Ne,et,E,H,U,W,ne,de,Se,v,T,Fe]}var Da=class extends N{constructor(e){super(),O(this,e,Rg,Vg,B,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Lg,[-1,-1])}get focus(){return this.$$.ctx[24]}},y1=Da;function Bg(i){be(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function Ng(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),n=Y(),o=I("div"),r=Y(),s=I("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(s,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),_(e,r),_(e,s)},p(a,[l]){l&1&&f(e,"style",a[0])},i:me,o:me,d(a){a&&y(e)}}}function Dg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Oa=class extends N{constructor(e){super(),O(this,e,Dg,Ng,B,{style:0},Bg)}},Ar=Oa;function Og(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2422_111980"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","23"),f(s,"height","23"),f(s,"x",".5"),f(s,"y",".5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,T)},m(v,E){w(v,e,E),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function Fg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Fa=class extends N{constructor(e){super(),O(this,e,Fg,Og,B,{})}},w1=Fa;import{noop as yo}from"@vkontakte/videoplayer-shared";function Hg(i){be(i,"svelte-tk154o",".btn.svelte-tk154o{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-tk154o{width:100%}.btn--live.svelte-tk154o{padding:10px 4px}.btn-m.svelte-tk154o{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-tk154o{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn-m--play.svelte-tk154o svg{transform:scale(2)}.btn-m--prev.svelte-tk154o,.btn-m--next.svelte-tk154o{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-tk154o{right:calc(100% + 35px)}.btn-m--next.svelte-tk154o{left:calc(100% + 35px)}.btn.svelte-tk154o:disabled{cursor:default;pointer-events:none}.btn.svelte-tk154o:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-tk154o:not(:disabled):hover{opacity:0.8}.pr-0.svelte-tk154o{padding-right:0}.pl-0.svelte-tk154o{padding-left:0}")}function qg(i){let e,t,n,o,r,s,a,l,u,c,m,h,C=i[14].default,g=Le(C,i,i[13],null);return{c(){var S,k,F,T,v,E;e=I("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-tk154o"),f(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S:null,f(e,"aria-hidden",r=(k=i[5])!=null?k:null),f(e,"aria-label",s=(F=i[6])!=null?F:null),f(e,"aria-keyshortcuts",a=(T=i[7])!=null?T:null),f(e,"aria-expanded",l=(v=i[8])!=null?v:null),f(e,"data-testid",u=(E=i[4])!=null?E:null),f(e,"tabindex",i[9])},m(S,k){w(S,e,k),g&&g.m(e,null),i[16](e),c=!0,m||(h=[ke(e,"pointerdown",gt(i[15])),ke(e,"click",gt(function(){Qt(i[10]===yo?null:i[10])&&(i[10]===yo?null:i[10]).apply(this,arguments)})),ke(e,"focus",ri(function(){Qt(i[11]===yo?null:i[11])&&(i[11]===yo?null:i[11]).apply(this,arguments)})),ke(e,"blur",ri(function(){Qt(i[12]===yo?null:i[12])&&(i[12]===yo?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[k]){var F,T,v,E,H,U;i=S,g&&g.p&&(!c||k&8192)&&Re(g,C,i,i[13],c?Ve(C,i[13],k,null):Be(i[13]),null),(!c||k&2&&t!==(t="btn "+i[1]+" svelte-tk154o"))&&f(e,"class",t),(!c||k&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||k&8&&o!==(o=(F=i[3])!=null?F:null))&&(e.disabled=o),(!c||k&32&&r!==(r=(T=i[5])!=null?T:null))&&f(e,"aria-hidden",r),(!c||k&64&&s!==(s=(v=i[6])!=null?v:null))&&f(e,"aria-label",s),(!c||k&128&&a!==(a=(E=i[7])!=null?E:null))&&f(e,"aria-keyshortcuts",a),(!c||k&256&&l!==(l=(H=i[8])!=null?H:null))&&f(e,"aria-expanded",l),(!c||k&16&&u!==(u=(U=i[4])!=null?U:null))&&f(e,"data-testid",u),(!c||k&512)&&f(e,"tabindex",i[9])},i(S){c||(d(g,S),c=!0)},o(S){p(g,S),c=!1},d(S){S&&y(e),g&&g.d(S),i[16](null),m=!1,ct(h)}}}function Ug(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:s=""}=e,{disabled:a=void 0}=e,{testId:l=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:C=void 0}=e,{tabIndex:g=0}=e,{click:S=yo}=e,{focus:k=yo}=e,{blur:F=yo}=e;function T(E){Rn.call(this,i,E)}function v(E){ve[E?"unshift":"push"](()=>{m=E,t(0,m)})}return i.$$set=E=>{"className"in E&&t(1,r=E.className),"style"in E&&t(2,s=E.style),"disabled"in E&&t(3,a=E.disabled),"testId"in E&&t(4,l=E.testId),"ariaHidden"in E&&t(5,u=E.ariaHidden),"ariaLabel"in E&&t(6,c=E.ariaLabel),"ref"in E&&t(0,m=E.ref),"ariaKeyShortCut"in E&&t(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,C=E.ariaExpanded),"tabIndex"in E&&t(9,g=E.tabIndex),"click"in E&&t(10,S=E.click),"focus"in E&&t(11,k=E.focus),"blur"in E&&t(12,F=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[m,r,s,a,l,u,c,h,C,g,S,k,F,o,n,T,v]}var Ha=class extends N{constructor(e){super(),O(this,e,Ug,qg,B,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Hg)}},pt=Ha;function zg(i){be(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function k1(i){let e,t,n,o,r,s=i[2]&&C1(i);return{c(){e=I("div"),t=I("h3"),n=qe(i[3]),o=Y(),s&&s.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,l){w(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,l){(!r||l&8)&&Ge(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=C1(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue())},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function C1(i){let e,t;return e=new pt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[Wg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wg(i){let e,t;return e=new w1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Kg(i){let e,t,n,o,r,s,a=i[1]&&k1(i),l=i[4].default,u=Le(l,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=Y(),o=I("div"),r=I("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){w(c,e,m),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,r),u&&u.m(r,null),s=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=k1(c),a.c(),d(a,1),a.m(t,n)):a&&(ae(),p(a,1,1,()=>{a=null}),ue()),u&&u.p&&(!s||m&32)&&Re(u,l,c,c[5],s?Ve(l,c[5],m,null):Be(c[5]),null)},i(c){s||(d(a),d(u,c),s=!0)},o(c){p(a),p(u,c),s=!1},d(c){c&&y(e),a&&a.d(),u&&u.d(c)}}}function xg(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:s=!0}=e,{showCloseCross:a=!0}=e,{title:l}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,s=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,l=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,s,a,l,n,o]}var qa=class extends N{constructor(e){super(),O(this,e,xg,Kg,B,{onClose:0,showHeader:1,showCloseCross:2,title:3},zg)}},S1=qa;var jg=new Set(["BR"]),Ua=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],s=r.tagName;jg.has(s)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Gg(i){be(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function T1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function I1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function P1(i){let e,t,n=Ua(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=I("li"),t=I("span"),o=Y(),r=I("span"),a=qe(s),l=Y(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){w(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,l)},p(u,c){c&1&&n!==(n=Ua(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&Ge(a,s)},d(u){u&&y(e)}}}function E1(i){let e,t,n=i[5]+"",o,r,s,a,l=bt(i[6]),u=[];for(let c=0;c<l.length;c+=1)u[c]=P1(I1(i,l,c));return{c(){e=I("div"),t=I("h5"),o=qe(n),r=Y(),s=I("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=Y(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(s,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){w(c,e,m),_(e,t),_(t,o),_(e,r),_(e,s);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(s,null);_(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ge(o,n),m&1){l=bt(c[6]);let h;for(h=0;h<l.length;h+=1){let C=I1(c,l,h);u[h]?u[h].p(C,m):(u[h]=P1(C),u[h].c(),u[h].m(s,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(c){c&&y(e),oi(u,c)}}}function Yg(i){let e,t=bt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=E1(T1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){w(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,r){if(r&1){t=bt(o[0].groups);let s;for(s=0;s<t.length;s+=1){let a=T1(o,t,s);n[s]?n[s].p(a,r):(n[s]=E1(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&y(e),oi(n,o)}}}function Qg(i){let e,t;return e=new S1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Yg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Zg(i,e,t){let n,o=nt(),{data:r,show:s}=o.ui.modals.hotKeyMap;return D(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var za=class extends N{constructor(e){super(),O(this,e,Zg,Qg,B,{},Gg)}},A1=za;import{noop as Cp}from"@vkontakte/videoplayer-shared";var Gs;function Mr(i){return Gs||(Gs=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),Gs.observe(i),{destroy(){Gs.unobserve(i)}}}import{ChromecastState as Nm,PlaybackState as rc}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";function Xg(i){be(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Jg(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,s){w(r,e,s),o&&o.m(e,null),t=!0},p(r,[s]){o&&o.p&&(!t||s&1)&&Re(o,n,r,r[0],t?Ve(n,r[0],s,null):Be(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&y(e),o&&o.d(r)}}}function $g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var Wa=class extends N{constructor(e){super(),O(this,e,$g,Jg,B,{},Xg)}},M1=Wa;import{VideoQuality as Jr}from"@vkontakte/videoplayer-shared";function e2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),we(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function t2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ka=class extends N{constructor(e){super(),O(this,e,t2,e2,B,{})}},L1=Ka;function i2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),we(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function n2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xa=class extends N{constructor(e){super(),O(this,e,n2,i2,B,{})}},V1=xa;function o2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function r2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ja=class extends N{constructor(e){super(),O(this,e,r2,o2,B,{})}},R1=ja;function s2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function l2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ga=class extends N{constructor(e){super(),O(this,e,l2,s2,B,{})}},Ys=Ga;function a2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),we(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function u2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ya=class extends N{constructor(e){super(),O(this,e,u2,a2,B,{})}},Qs=Ya;var Zs=i=>{switch(i){case Jr.Q_720P:return R1;case Jr.Q_1080P:return Ys;case Jr.Q_1440P:return Qs;case Jr.Q_2160P:return L1;case Jr.Q_4320P:return V1}};function c2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function f2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Qa=class extends N{constructor(e){super(),O(this,e,f2,c2,B,{})}},B1=Qa;function d2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),we(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function m2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Za=class extends N{constructor(e){super(),O(this,e,m2,d2,B,{})}},N1=Za;function p2(i){be(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function _2(i){let e,t,n,o,r=i[1]&&D1(i);return n=new N1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),r&&r.c(),t=Y(),R(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),G(e,"triple",i[2])},m(s,a){w(s,e,a),r&&r.m(e,null),_(e,t),L(n,e,null),o=!0},p(s,a){s[1]?r?(r.p(s,a),a&2&&d(r,1)):(r=D1(s),r.c(),d(r,1),r.m(e,t)):r&&(ae(),p(r,1,1,()=>{r=null}),ue());let l={};a&2&&(l["data-testid"]=s[1]?"settings-icon--labeled":"settings-icon"),n.$set(l),(!o||a&4)&&G(e,"triple",s[2])},i(s){o||(d(r),d(n.$$.fragment,s),o=!0)},o(s){p(r),p(n.$$.fragment,s),o=!1},d(s){s&&y(e),r&&r.d(),V(n)}}}function h2(i){let e,t;return e=new B1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function D1(i){let e,t;return e=new M1({props:{$$slots:{default:[g2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function g2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&2&&o!==(o=s[1])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Bt(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function b2(i){let e,t,n,o,r=[h2,_2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function v2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,s;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=Zs(r)),i.$$.dirty&2&&t(2,s=!!n&&[Ys,Qs].includes(n))},[o,n,s,r]}var Xa=class extends N{constructor(e){super(),O(this,e,v2,b2,B,{isMobile:0,currentQuality:3},p2)}},Xs=Xa;function y2(i){be(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function w2(i){let e,t,n;return t=new Xs({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),R(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r&8&&(s.isMobile=o[3]),r&16&&(s.currentQuality=o[4]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function k2(i){let e,t,n;function o(s){i[10](s)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[w2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"opened":""),a&4&&(l.ariaLabel=s[2]),a&2&&(l.ariaExpanded=s[1]),a&8216&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function C2(i,e,t){let n,o,r,{ref$:s}=e,a=nt(),l=a.state.currentQuality$;D(i,l,k=>t(4,r=k));let u=a.ui.settingsMenuVisible;D(i,u,k=>t(1,n=k));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;D(i,m,k=>t(3,o=k));let h,C;function g(k){let F=Tr(k);c(F)}function S(k){h=k,t(0,h)}return i.$$set=k=>{"ref$"in k&&t(9,s=k.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(h),i.$$.dirty&2&&t(2,C=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[h,n,C,o,r,l,u,m,g,s,S]}var Ja=class extends N{constructor(e){super(),O(this,e,C2,k2,B,{ref$:9},y2)}},$r=Ja;function S2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function T2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $a=class extends N{constructor(e){super(),O(this,e,T2,S2,B,{})}},O1=$a;function I2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function P2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var eu=class extends N{constructor(e){super(),O(this,e,P2,I2,B,{})}},Js=eu;function E2(i){let e,t;return e=new Js({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function A2(i){let e,t;return e=new O1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function M2(i){let e,t,n,o,r=[A2,E2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function L2(i){let e,t;return e=new pt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:ao.KeyC,$$slots:{default:[M2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function V2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=s=>{"isSubtitlesEnabled"in s&&t(0,n=s.isSubtitlesEnabled),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,r]}var tu=class extends N{constructor(e){super(),O(this,e,V2,L2,B,{isSubtitlesEnabled:0,click:1})}},F1=tu;function R2(i){be(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function H1(i){let e,t;return{c(){e=I("span"),t=qe(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&8&&Ge(t,n[3])},d(n){n&&y(e)}}}function B2(i){let e,t,n,o,r=i[2]&&H1(i);return{c(){e=I("div"),t=I("span"),n=qe(i[4]),o=Y(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),G(e,"mobile",i[1])},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(s,[a]){a&16&&Ge(n,s[4]),s[2]?r?r.p(s,a):(r=H1(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&G(e,"mobile",s[1])},i:me,o:me,d(s){s&&y(e),r&&r.d(),i[7](null)}}}function N2(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:s=!0}=e,{ref:a}=e,l,u;function c(m){ve[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,s=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,l=Nn(o)),i.$$.dirty&64&&t(4,u=Nn(r))},[a,n,s,l,u,o,r,c]}var iu=class extends N{constructor(e){super(),O(this,e,N2,B2,B,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},R2)}},$s=iu;import{noop as Bo}from"@vkontakte/videoplayer-shared";function D2(i){be(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function O2(i){let e,t,n,o,r,s;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",s="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,l){w(a,e,l),_(e,t),_(t,n),_(t,o),_(t,r)},p(a,[l]){l&1&&f(e,"data-value",a[0]),l&1&&s!==(s="volume-"+a[0]+"-icon")&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&y(e)}}}function F2(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,l)=>l?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",s;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,s=r(n,o))},[s,n,o]}var nu=class extends N{constructor(e){super(),O(this,e,F2,O2,B,{volume:1,muted:2},D2)}},ur=nu;import{noop as $n}from"@vkontakte/videoplayer-shared";import{noop as j2}from"@vkontakte/videoplayer-shared";import{noop as U2}from"@vkontakte/videoplayer-shared";function H2(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),f(e,"class","overlay")},m(r,s){w(r,e,s),o&&o.m(e,null),i[5](e),t=!0},p(r,[s]){o&&o.p&&(!t||s&8)&&Re(o,n,r,r[3],t?Ve(n,r[3],s,null):Be(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&y(e),o&&o.d(r),i[5](null)}}}function q2(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=nt().ui.overlayContainer$;D(i,a,h=>t(2,n=h));let l,u=h=>{!h||!l||!h.contains(l)||h.removeChild(l)},c=h=>{!h||!l||h.contains(l)||h.appendChild(l)};Vt(()=>(c(n),()=>u(n)));function m(h){ve[h?"unshift":"push"](()=>{l=h,t(0,l)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[l,a,n,r,o,m]}var ou=class extends N{constructor(e){super(),O(this,e,q2,H2,B,{})}},q1=ou;function z2(i){be(i,"svelte-1jbbzcj",'.tooltip-wrapper.svelte-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.svelte-1jbbzcj{width:100%}.tooltip.svelte-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.svelte-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function U1(i){let e,t;return e=new q1({props:{$$slots:{default:[W2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&16777445&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function W2(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("div"),n=qe(i[2]),o=Y(),r=I("div"),f(t,"class","content svelte-1jbbzcj"),f(r,"class","tooltip-pointer svelte-1jbbzcj"),f(r,"style",i[7]),f(e,"class","tooltip svelte-1jbbzcj"),f(e,"style",i[6]),G(e,"active",i[0])},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(s,a){a[0]&4&&Ge(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&G(e,"active",s[0])},d(s){s&&y(e),i[23](null)}}}function K2(i){let e,t,n,o,r,s,a=i[21].default,l=Le(a,i,i[24],null),u=i[2]&&!i[1]&&U1(i);return{c(){e=I("div"),l&&l.c(),t=Y(),u&&u.c(),n=Xe(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),G(e,"full-width",i[3])},m(c,m){w(c,e,m),l&&l.m(e,null),i[22](e),w(c,t,m),u&&u.m(c,m),w(c,n,m),o=!0,r||(s=[ke(e,"mouseenter",i[10]),ke(e,"mousemove",i[10]),ke(e,"mouseleave",i[11]),ke(e,"mousedown",i[11]),ke(e,"mouseup",i[10])],r=!0)},p(c,m){l&&l.p&&(!o||m[0]&16777216)&&Re(l,a,c,c[24],o?Ve(a,c[24],m,null):Be(c[24]),null),(!o||m[0]&8)&&G(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=U1(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ae(),p(u,1,1,()=>{u=null}),ue())},i(c){o||(d(l,c),d(u),o=!0)},o(c){p(l,c),p(u),o=!1},d(c){c&&(y(e),y(t),y(n)),l&&l.d(c),i[22](null),u&&u.d(c),r=!1,ct(s)}}}var wo=5;function x2(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{isMobile:a=!1}=e,{content:l=""}=e,{active:u=!1}=e,{translateX:c=0}=e,{translateY:m=0}=e,{isFullWidthWrapper:h=!1}=e,{maxTooltipWidth:C=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:S=U2}=e,k,F,T,v=0,E=0,H=0,U=0,W=xt(),ne=nt(),de=ne.ui.playerSize;D(i,de,Pe=>t(27,o=Pe));let q=ne.ui.overlayContainer$;D(i,q,Pe=>t(26,n=Pe));let X=ne.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n||!F||!k)return;t(18,E=wo);let Pe=n.getBoundingClientRect(),We=k.getBoundingClientRect(),$=We.width,_e=F.clientWidth,Ce=o.width,xe=($-_e)/2,rt=We.left+c-Pe.left,lt=rt+xe,it=We.top+m-Pe.top,Je=_e/2-wo,fe=lt<8,Se=lt+_e>Ce-8;fe&&(lt=8,Je=rt+We.width/2-2.5*wo),Se&&(lt=Ce-8-_e,Je=We.left-Pe.left+We.width/2-lt-wo),t(19,H=lt),t(20,U=it),t(17,v=Je)},K=()=>{!n||!F||!k||t(18,E=-wo)},ce=()=>{if(!n||!F||!k)return;t(17,v=wo);let Pe=n.getBoundingClientRect(),We=k.getBoundingClientRect(),$=We.height,_e=F.clientHeight,Ce=($-_e)/2+_e,xe=We.left+c-Pe.left-F.clientWidth,rt=2,lt=xe-wo;lt<8&&(lt=8);let Je=We.top+m-Pe.top+Ce,fe=rt-Ce/2,Se=rt-wo;t(19,H=lt),t(20,U=Je),t(18,E=fe),t(17,v=Se)},z=()=>{!n||!F||!k||t(17,v=-wo)},x=()=>{switch(g){case"top":oe();break;case"bottom":K();break;case"left":ce();break;default:z()}},P=()=>{try{if(!n||!k)return;x(),t(0,u=!0)}catch(Pe){X({message:String(Pe)})}},J=()=>{t(0,u=!1)},le=()=>{F&&(T||(T=window.setTimeout(P,W.controls.hideTimeoutTooltips)),u&&P())},Ae=()=>{J(),window.clearTimeout(T),T=void 0},ee=(Pe,We)=>{let $="";switch(g){case"top":$=`transform: translate(${Pe}px, ${We}px);`;break;case"bottom":$=`transform: translate(${Pe}px, ${We}px); top: auto; bottom: 100%;`;break;case"left":$=`transform: translate(${Pe}px, ${We}px); left: 0; right: auto;`;break;default:$=`transform: translate(${Pe}px, ${We}px);`}return $+=` max-width: ${C===void 0?"auto":`${C}px`};`,$},ge=(Pe,We)=>{let $="";switch(g){case"top":$=`transform: translate(${Pe}px, ${We}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":$=`transform: translate(${Pe}px, ${We}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":$=`transform: translate(${Pe}px, ${We}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:$=`transform: translate(${Pe}px, ${We}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return $},Ee,Te;Vt(x),Zn(()=>window.clearTimeout(T));function Ie(Pe){ve[Pe?"unshift":"push"](()=>{k=Pe,t(4,k)})}function ot(Pe){ve[Pe?"unshift":"push"](()=>{F=Pe,t(5,F)})}return i.$$set=Pe=>{"isMobile"in Pe&&t(1,a=Pe.isMobile),"content"in Pe&&t(2,l=Pe.content),"active"in Pe&&t(0,u=Pe.active),"translateX"in Pe&&t(12,c=Pe.translateX),"translateY"in Pe&&t(13,m=Pe.translateY),"isFullWidthWrapper"in Pe&&t(3,h=Pe.isFullWidthWrapper),"maxTooltipWidth"in Pe&&t(14,C=Pe.maxTooltipWidth),"placement"in Pe&&t(15,g=Pe.placement),"onVisibilityChange"in Pe&&t(16,S=Pe.onVisibilityChange),"$$scope"in Pe&&t(24,s=Pe.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&S(u),i.$$.dirty[0]&1966080&&(t(6,Ee=ee(H,U)),t(7,Te=ge(v,E)))},[u,a,l,h,k,F,Ee,Te,de,q,le,Ae,c,m,C,g,S,v,E,H,U,r,Ie,ot,s]}var ru=class extends N{constructor(e){super(),O(this,e,x2,K2,B,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},z2,[-1,-1])}},Lr=ru;function G2(i){be(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function Y2(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Re(n,t,o,o[24],e?Ve(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function Q2(i){let e,t;return e=new Lr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[Z2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Z2(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Re(n,t,o,o[24],e?Ve(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function X2(i){let e,t,n,o,r,s,a,l,u,c=[Q2,Y2],m=[];function h(C,g){return C[3]&&C[11]&&!C[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=I("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(C,g){w(C,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[_r(s=Mr.call(null,e)),ke(e,"fd:resize",i[22]),ke(e,"pointerdown",gt(i[20])),ke(e,"click",gt(i[21]))],l=!0)},p(C,[g]){let S=t;t=h(C,g),t===S?m[t].p(C,g):(ae(),p(m[S],1,1,()=>{m[S]=null}),ue(),n=m[t],n?n.p(C,g):(n=m[t]=c[t](C),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+C[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=C[7]||null))&&f(e,"aria-hidden",r)},i(C){a||(d(n),a=!0)},o(C){p(n),a=!1},d(C){C&&y(e),m[t].d(),i[23](null),l=!1,ct(u)}}}function J2(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{className:a=""}=e,{disabled:l=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:C=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:k=j("tooltip_button_disabled")}=e,{isAriaHidden:F=!1}=e,{onTooltipVisibilityChange:T=j2}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:E=-18}=e,H=nt(),U=H.ui.isMobile;D(i,U,K=>t(12,o=K));let W=H.state.graphIsOpened$;D(i,W,K=>t(18,n=K));let ne;function de(K){Rn.call(this,i,K)}function q(K){Rn.call(this,i,K)}let X=K=>{t(1,m=K.target.clientWidth)};function oe(K){ve[K?"unshift":"push"](()=>{c=K,t(0,c)})}return i.$$set=K=>{"className"in K&&t(2,a=K.className),"disabled"in K&&t(15,l=K.disabled),"hasTooltip"in K&&t(3,u=K.hasTooltip),"ref"in K&&t(0,c=K.ref),"width"in K&&t(1,m=K.width),"isFullWidthTooltip"in K&&t(4,h=K.isFullWidthTooltip),"tooltipContent"in K&&t(16,C=K.tooltipContent),"tooltipActive"in K&&t(5,g=K.tooltipActive),"tooltipPlacement"in K&&t(6,S=K.tooltipPlacement),"disabledTooltipContent"in K&&t(17,k=K.disabledTooltipContent),"isAriaHidden"in K&&t(7,F=K.isAriaHidden),"onTooltipVisibilityChange"in K&&t(8,T=K.onTooltipVisibilityChange),"initialTranslateXPx"in K&&t(9,v=K.initialTranslateXPx),"initialTranslateYPx"in K&&t(10,E=K.initialTranslateYPx),"$$scope"in K&&t(24,s=K.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,ne=n?j("tooltip_disabled_when_graph_on"):k):t(11,ne=C))},[c,m,a,u,h,g,S,F,T,v,E,ne,o,U,W,l,C,k,n,r,de,q,X,oe,s]}var su=class extends N{constructor(e){super(),O(this,e,J2,X2,B,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},G2)}},Qi=su;function $2(i){let e,t,n,o,r,s;return{c(){e=M("svg"),t=M("rect"),o=M("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",s=(i[0],"interactive-episode-completed-icon"))},m(a,l){w(a,e,l),_(e,t),_(e,o)},p(a,[l]){l&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),l&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),l&1&&s!==(s=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",s)},i:me,o:me,d(a){a&&y(e)}}}function eb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var lu=class extends N{constructor(e){super(),O(this,e,eb,$2,B,{completed:0})}},el=lu;function tb(i){be(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function ib(i){let e,t,n,o,r,s,a;return t=new el({props:{completed:!!i[0].completed}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),G(e,"disabled",i[1])},m(l,u){w(l,e,u),L(t,e,null),r=!0,s||(a=[_r(o=Mr.call(null,e)),ke(e,"fd:resize",i[3])],s=!0)},p(l,u){let c={};u&1&&(c.completed=!!l[0].completed),t.$set(c),(!r||u&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||u&2)&&G(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t),s=!1,ct(a)}}}function nb(i){let e,t;return e=new Qi({props:{tooltipContent:j(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[ib]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=j(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function ob(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r,s=a=>{t(2,r=a.target.clientWidth)};return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,s]}var au=class extends N{constructor(e){super(),O(this,e,ob,nb,B,{videoEpisode:0,disabled:1},tb)}},z1=au;function rb(i){be(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function W1(i,e,t){let n=i.slice();return n[3]=e[t],n}function K1(i){let e,t,n,o,r,s,a,l,u;return{c(){e=I("div"),t=I("div"),n=I("div"),r=Y(),s=I("div"),l=Y(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(s,"class","video-episode-filled svelte-1rzxunm"),f(s,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),G(s,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),G(e,"disabled",i[2]),G(e,"mobile",i[1])},m(c,m){w(c,e,m),_(e,t),_(t,n),_(t,r),_(t,s),_(e,l)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(s,"style",a),m&2&&G(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&G(e,"disabled",c[2]),m&2&&G(e,"mobile",c[1])},d(c){c&&y(e)}}}function sb(i){let e,t=bt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=K1(W1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){w(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,[r]){if(r&7){t=bt(o[0]);let s;for(s=0;s<t.length;s+=1){let a=W1(o,t,s);n[s]?n[s].p(a,r):(n[s]=K1(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:me,o:me,d(o){o&&y(e),oi(n,o)}}}function lb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=s=>{"videoEpisodes"in s&&t(0,n=s.videoEpisodes),"isMobile"in s&&t(1,o=s.isMobile),"disabled"in s&&t(2,r=s.disabled)},[n,o,r]}var uu=class extends N{constructor(e){super(),O(this,e,lb,sb,B,{videoEpisodes:0,isMobile:1,disabled:2},rb)}},x1=uu;function ab(i){be(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function j1(i,e,t){let n=i.slice();return n[50]=e[t],n}function G1(i){let e,t,n=bt(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=Q1(j1(i,n,s));let r=s=>p(o[s],1,1,()=>{o[s]=null});return{c(){e=I("div");for(let s=0;s<o.length;s+=1)o[s].c();f(e,"class","interactive-icons svelte-v8ydei"),G(e,"mobile",i[6]),G(e,"hidden",i[6]&&!i[20])},m(s,a){w(s,e,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null);t=!0},p(s,a){if(a[0]&2098176){n=bt(s[21]);let l;for(l=0;l<n.length;l+=1){let u=j1(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=Q1(u),o[l].c(),d(o[l],1),o[l].m(e,null))}for(ae(),l=n.length;l<o.length;l+=1)r(l);ue()}(!t||a[0]&64)&&G(e,"mobile",s[6]),(!t||a[0]&1048640)&&G(e,"hidden",s[6]&&!s[20])},i(s){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(s){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)p(o[a]);t=!1},d(s){s&&y(e),oi(o,s)}}}function Y1(i){let e,t;return e=new z1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[50]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Q1(i){let e,t,n=i[50].interactive&&Y1(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Y1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function ub(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),o=Y(),r=I("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",s=`transform: translateX(${i[13]*100}%);`),G(r,"active-live",i[5]),G(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,l){w(a,e,l),_(e,t),_(e,o),_(e,r)},p(a,l){l[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),l[0]&8192&&s!==(s=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",s),l[0]&32&&G(r,"active-live",a[5]),l[0]&128&&G(r,"ads",a[7])},i:me,o:me,d(a){a&&y(e)}}}function cb(i){let e,t;return e=new x1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function fb(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g=i[9]&&G1(i),S=[cb,ub],k=[];function F(T,v){return T[21].length?0:1}return n=F(i,[-1,-1]),o=k[n]=S[n](i),{c(){var T;g&&g.c(),e=Y(),t=I("div"),o.c(),r=Y(),s=I("div"),a=I("div"),f(a,"class","handle svelte-v8ydei"),G(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),G(s,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(T=i[2])!=null?T:null),G(t,"disabled",i[10]),G(t,"slider-dragging",i[20]),G(t,"hidden",i[3]),G(t,"slider-vertical",i[4]),G(t,"no-handle",i[11]),G(t,"square",i[8])},m(T,v){g&&g.m(T,v),w(T,e,v),w(T,t,v),k[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(C=[ke(t,"pointerdown",ri(i[22])),ke(t,"pointermove",ri(i[23])),ke(t,"pointerup",ri(i[24])),ke(t,"pointerenter",ri(i[25])),ke(t,"pointerleave",ri(i[26])),ke(t,"click",gt(i[28])),ke(t,"wheel",i[27])],h=!0)},p(T,v){var H;T[9]?g?(g.p(T,v),v[0]&512&&d(g,1)):(g=G1(T),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ae(),p(g,1,1,()=>{g=null}),ue());let E=n;n=F(T,v),n===E?k[n].p(T,v):(ae(),p(k[E],1,1,()=>{k[E]=null}),ue(),o=k[n],o?o.p(T,v):(o=k[n]=S[n](T),o.c()),d(o,1),o.m(t,r)),(!m||v[0]&32)&&G(a,"active-live",T[5]),(!m||v[0]&16384&&l!==(l=`transform: translateX(${T[14]*100}%);`))&&f(s,"style",l),(!m||v[0]&2048)&&G(s,"hidden",T[11]),(!m||v[0]&2&&u!==(u="slider "+T[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||v[0]&32768)&&f(t,"aria-label",T[15]),(!m||v[0]&65536)&&f(t,"aria-valuemin",T[16]),(!m||v[0]&131072)&&f(t,"aria-valuemax",T[17]),(!m||v[0]&262144)&&f(t,"aria-valuenow",T[18]),(!m||v[0]&524288)&&f(t,"aria-valuetext",T[19]),(!m||v[0]&4&&c!==(c=(H=T[2])!=null?H:null))&&f(t,"data-testid",c),(!m||v[0]&1026)&&G(t,"disabled",T[10]),(!m||v[0]&1048578)&&G(t,"slider-dragging",T[20]),(!m||v[0]&10)&&G(t,"hidden",T[3]),(!m||v[0]&18)&&G(t,"slider-vertical",T[4]),(!m||v[0]&2050)&&G(t,"no-handle",T[11]),(!m||v[0]&258)&&G(t,"square",T[8])},i(T){m||(d(g),d(o),m=!0)},o(T){p(g),p(o),m=!1},d(T){T&&(y(e),y(t)),g&&g.d(T),k[n].d(),i[44](null),h=!1,ct(C)}}}function db(i,e,t){let n,o,{ref:r=void 0}=e,{className:s=""}=e,{testId:a=void 0}=e,{isHidden:l=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:C=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:S=!1}=e,{isInteractive:k=!1}=e,{disabled:F=!1}=e,{hideHandel:T=!1}=e,v,{onPointerDown:E=$n}=e,{onHandleMove:H=$n}=e,{onPointerUp:U=$n}=e,{onPointerEnter:W=$n}=e,{onPointerMove:ne=$n}=e,{onPointerLeave:de=$n}=e,{onWheelUp:q=$n}=e,{onWheelDown:X=$n}=e,{onWheelLeft:oe=$n}=e,{onWheelRight:K=$n}=e,{onDisabledClick:ce=$n}=e,{loadedProgress:z=0}=e,{filledProgress:x=0}=e,{handleProgress:P=0}=e,{ariaLabel:J=""}=e,{ariaValueMin:le=void 0}=e,{ariaValueMax:Ae=void 0}=e,{ariaValueNow:ee=void 0}=e,{ariaValueText:ge=""}=e,Ee=xt(),Te=!1,Ie;function ot(fe){if(r&&(v=r.getBoundingClientRect()),F||Te||!r)return;t(20,Te=!0);let Se=rt(fe.clientX,fe.clientY);E(Se),r.setPointerCapture(fe.pointerId)}function Pe(fe){if(F)return;let Se=rt(fe.clientX,fe.clientY),$e=lt(fe.clientX);ne(Se,$e,v.width),Te&&H(Se)}function We(fe){if(F||!Te)return;t(20,Te=!1);let Se=rt(fe.clientX,fe.clientY);U(Se)}function $(fe){if(r&&(v=r.getBoundingClientRect()),F)return;let Se=rt(fe.clientX,fe.clientY),$e=lt(fe.clientX);W(Se,$e,v.width)}function _e(){F||de()}function Ce(fe){F||S&&(fe.preventDefault(),fe.deltaY<0?q():fe.deltaY>0?X():fe.deltaX>0?K():oe())}function xe(fe){F&&ce(rt(fe.clientX,fe.clientY))}function rt(fe,Se){return u?Math.max(0,Math.min(1,(v.height-(Se-v.top))/v.height)):Math.min(Math.max(fe-v.x,0),v.width)/v.width}function lt(fe){return Math.min(Math.max(fe-v.x,0),v.width)}function it(fe,Se){let $e=Ee.features.episodesClustering&&!k?Ee.episodeMinWidthPc:0,Ne=[],et=0,Fe=0,ut=0;for(let dt=1;dt<g.length;dt++)Fe=g[dt].time/Ie*100,Fe-et>$e&&(Ne.push({from:et,width:Math.max(0,Fe-et),loadedWidth:Math.max(0,Math.min(Fe,fe)-et),filledWidth:Math.max(0,Math.min(Fe,Se)-et),interactive:g[dt-1].interactive,completed:g[dt-1].completed}),et=g[dt].time/Ie*100,ut++);let ft={from:et,width:Math.max(0,100-et),loadedWidth:Math.max(0,Math.min(fe,100)-et),filledWidth:Math.max(0,Math.min(Se,100)-et),interactive:g[ut].interactive,completed:g[ut].completed};100-et<$e?(ut-=1,Ne[ut].width+=100-et,Ne[ut].loadedWidth+=Math.max(0,Math.min(fe,100)-et),Ne[ut].filledWidth+=Math.max(0,Math.min(Se,100)-et)):Ne[ut]=ft;let he=g[0].time;if(he!==0){let dt=he/Ie*100;Ne.unshift({from:0,width:dt,loadedWidth:Math.min(dt,fe),filledWidth:Math.min(dt,Se)})}return Ne}function Je(fe){ve[fe?"unshift":"push"](()=>{r=fe,t(0,r)})}return i.$$set=fe=>{"ref"in fe&&t(0,r=fe.ref),"className"in fe&&t(1,s=fe.className),"testId"in fe&&t(2,a=fe.testId),"isHidden"in fe&&t(3,l=fe.isHidden),"isVertical"in fe&&t(4,u=fe.isVertical),"isActiveLive"in fe&&t(5,c=fe.isActiveLive),"isMobile"in fe&&t(6,m=fe.isMobile),"isAds"in fe&&t(7,h=fe.isAds),"squareBorders"in fe&&t(8,C=fe.squareBorders),"videoEpisodes"in fe&&t(29,g=fe.videoEpisodes),"withWheelHandler"in fe&&t(30,S=fe.withWheelHandler),"isInteractive"in fe&&t(9,k=fe.isInteractive),"disabled"in fe&&t(10,F=fe.disabled),"hideHandel"in fe&&t(11,T=fe.hideHandel),"onPointerDown"in fe&&t(31,E=fe.onPointerDown),"onHandleMove"in fe&&t(32,H=fe.onHandleMove),"onPointerUp"in fe&&t(33,U=fe.onPointerUp),"onPointerEnter"in fe&&t(34,W=fe.onPointerEnter),"onPointerMove"in fe&&t(35,ne=fe.onPointerMove),"onPointerLeave"in fe&&t(36,de=fe.onPointerLeave),"onWheelUp"in fe&&t(37,q=fe.onWheelUp),"onWheelDown"in fe&&t(38,X=fe.onWheelDown),"onWheelLeft"in fe&&t(39,oe=fe.onWheelLeft),"onWheelRight"in fe&&t(40,K=fe.onWheelRight),"onDisabledClick"in fe&&t(41,ce=fe.onDisabledClick),"loadedProgress"in fe&&t(12,z=fe.loadedProgress),"filledProgress"in fe&&t(13,x=fe.filledProgress),"handleProgress"in fe&&t(14,P=fe.handleProgress),"ariaLabel"in fe&&t(15,J=fe.ariaLabel),"ariaValueMin"in fe&&t(16,le=fe.ariaValueMin),"ariaValueMax"in fe&&t(17,Ae=fe.ariaValueMax),"ariaValueNow"in fe&&t(18,ee=fe.ariaValueNow),"ariaValueText"in fe&&t(19,ge=fe.ariaValueText)},i.$$.update=()=>{var fe;i.$$.dirty[0]&131072&&t(42,Ie=Ae!=null?Ae:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((fe=g[g.length-1])==null?void 0:fe.time)<Ie),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&Ie?it(z*100,x*100):[])},[r,s,a,l,u,c,m,h,C,k,F,T,z,x,P,J,le,Ae,ee,ge,Te,o,ot,Pe,We,$,_e,Ce,xe,g,S,E,H,U,W,ne,de,q,X,oe,K,ce,Ie,n,Je]}var cu=class extends N{constructor(e){super(),O(this,e,db,fb,B,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},ab,[-1,-1])}},Vr=cu;var mi=(i,e)=>tr[i]>=tr[e],Z1=(i,e)=>tr[i]<tr[e],Rr=(i,e)=>tr[i]<=tr[e],X1=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function mb(i){be(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function pb(i){let e,t;return e=new ur({props:{volume:i[3],muted:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function _b(i){let e,t;return e=new pt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:ao.KeyM,$$slots:{default:[pb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function J1(i){let e,t,n;return t=new Vr({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:Bo,onPointerLeave:i[2]?i[20]:Bo,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),G(e,"volumeBar-vertical",i[2])},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r[0]&4&&(s.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(s.isHidden=o[2]&&!o[5]),r[0]&4&&(s.isVertical=o[2]),r[0]&4&&(s.onPointerEnter=o[2]?o[19]:Bo),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:Bo),r[0]&256&&(s.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(s.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(s.filledProgress=o[8]),r[0]&256&&(s.handleProgress=o[8]),r[0]&4&&(s.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(s),(!n||r[0]&4)&&G(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function hb(i){let e,t,n,o,r,s;t=new Lr({props:{content:i[6],translateY:-18,$$slots:{default:[_b]},$$scope:{ctx:i}}});let a=i[4]&&J1(i);return{c(){e=I("div"),R(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),G(e,"vertical",i[2])},m(l,u){w(l,e,u),L(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(s=[ke(e,"mouseenter",function(){Qt(i[2]?i[21]:Bo)&&(i[2]?i[21]:Bo).apply(this,arguments)}),ke(e,"mouseleave",function(){Qt(i[2]?i[22]:Bo)&&(i[2]?i[22]:Bo).apply(this,arguments)}),ke(e,"wheel",ri(i[23]))],r=!0)},p(l,u){i=l;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=J1(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),p(a,1,1,()=>{a=null}),ue()),(!o||u[0]&4)&&G(e,"vertical",i[2])},i(l){o||(d(t.$$.fragment,l),d(a),o=!0)},o(l){p(t.$$.fragment,l),p(a),o=!1},d(l){l&&y(e),V(t),a&&a.d(),r=!1,ct(s)}}}function gb(i,e,t){var Ee,Te;let n,o,r,s,{click:a}=e,l=nt(),u=xt(),c=l.state.volume$;D(i,c,Ie=>t(3,n=Ie));let m=l.state.muted$;D(i,m,Ie=>t(25,s=Ie));let h=l.actions.internal.setVolume,C=l.ui.currentGridType$;D(i,C,Ie=>t(24,r=Ie));let g=(Ee=l.callbacks)==null?void 0:Ee.onAudioDoesNotExistHint,S=(Te=l.callbacks)==null?void 0:Te.onAudioDisabledHint,k=l.state.isAudioAvailable$;D(i,k,Ie=>t(4,o=Ie));let F=l.state.isAudioDisabled,T=!1,v,E,H,U,W,ne,de=1,q=!1,X=!1;function oe(Ie){de=n,h(Ie)}function K(){xs(l,n,u.controls.volumeStepWheel)}function ce(){js(l,n,u.controls.volumeStepWheel)}function z(Ie){h(Ie)}function x(Ie){let ot=Ie;h(ot,ot===0?de:ot)}function P(){q=!0}function J(){q=!1,ee()}function le(){clearTimeout(v),t(5,T=!0)}function Ae(){ee()}function ee(){v=window.setTimeout(()=>{q||t(5,T=!1)},u.controls.volumeBarTimeout)}function ge(Ie){Ie.deltaY<0?K():Ie.deltaY>0&&ce()}return i.$$set=Ie=>{"click"in Ie&&t(0,a=Ie.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,U=!o||s),i.$$.dirty[0]&16777216&&t(2,W=Rr(r,"s")),i.$$.dirty[0]&6&&(W?t(6,E=""):t(6,E=U?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,H=U?j("tooltip_volume"):j("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,ne=U?0:n),i.$$.dirty[0]&16&&(o?t(9,X=F&&!S):t(9,X=!g))},[a,U,W,n,o,T,E,H,ne,X,c,m,C,k,oe,K,ce,z,x,P,J,le,Ae,ge,r,s]}var fu=class extends N{constructor(e){super(),O(this,e,gb,hb,B,{click:0},mb,[-1,-1])}},$1=fu;import{noop as Cb}from"@vkontakte/videoplayer-shared";function bb(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),we(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function vb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var du=class extends N{constructor(e){super(),O(this,e,vb,bb,B,{})}},em=du;function yb(i){be(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function wb(i){let e,t;return e=new em({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function kb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var mu=class extends N{constructor(e){super(),O(this,e,kb,wb,B,{isFullscreen:0},yb)}},tm=mu;function Sb(i){let e,t;return e=new tm({props:{isFullscreen:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Tb(i){let e,t;return e=new pt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:ao.KeyF,$$slots:{default:[Sb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ib(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Cb}=e,r;return i.$$set=s=>{"isFullscreen"in s&&t(0,n=s.isFullscreen),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,r]}var pu=class extends N{constructor(e){super(),O(this,e,Ib,Tb,B,{isFullscreen:0,click:1})}},tl=pu;function Pb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function Eb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var _u=class extends N{constructor(e){super(),O(this,e,Eb,Pb,B,{})}},im=_u;function Ab(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=se(c,u[m]);return{c(){e=M("svg"),l&&l.c(),t=M("path"),n=M("path"),o=M("path"),r=M("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),we(e,c)},m(m,h){w(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Re(l,a,m,m[1],s?Ve(a,m[1],h,null):Be(m[1]),null),we(e,c=He(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&y(e),l&&l.d(m)}}}function Mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var hu=class extends N{constructor(e){super(),O(this,e,Mb,Ab,B,{})}},nm=hu;function Lb(i){be(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function Vb(i){let e,t;return e=new nm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}var Rb="vk-video-logo-icon--short";function Bb(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,s;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,r=n?21:95),t(1,s=n?Rb:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var gu=class extends N{constructor(e){super(),O(this,e,Bb,Vb,B,{short:2,isCyrillic:3},Lb)}},om=gu;function Db(i){let e,t;return e=new im({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Ob(i){let e,t;return e=new om({props:{short:i[4],isCyrillic:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Fb(i){let e,t,n,o,r=[Ob,Db],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function Hb(i){let e,t,n;function o(s){i[14](s)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[Fb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.disabled=!s[1]),a&4&&(l.testId=s[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(l.ariaLabel=s[3]),a&131124&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function qb(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=xt(),m=nt(),h=m.ui.currentGridType$;D(i,h,E=>t(12,n=E));let C=m.ui.isMobile;D(i,C,E=>t(13,o=E));let g=m.isCyrillicRelatedInterface$;D(i,g,E=>t(5,r=E));let S,k,F,T=()=>{var E,H;u(),(E=m.callbacks)!=null&&E.onLogoClicked?(H=m.callbacks)==null||H.onLogoClicked():l&&window.open(l,"_blank")};function v(E){s=E,t(0,s)}return i.$$set=E=>{"ref"in E&&t(0,s=E.ref),"logoClickable"in E&&t(1,a=E.logoClickable),"targetUrl"in E&&t(10,l=E.targetUrl),"click"in E&&t(11,u=E.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,F=(o||Rr(n,"l"))&&k)},t(3,S=c.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),t(2,k=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,k,S,F,r,h,C,g,T,l,u,n,o,v]}var bu=class extends N{constructor(e){super(),O(this,e,qb,Hb,B,{ref:0,logoClickable:1,targetUrl:10,click:11})}},il=bu;import{ChromecastState as jb}from"@vkontakte/videoplayer-core";import{ChromecastState as rm}from"@vkontakte/videoplayer-core";function Ub(i){be(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function zb(i){let e,t,n,o,r,s,a,l;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("path"),a=M("path"),l=M("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(s,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(l,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(l,"fill","#fff"),G(l,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),G(e,"connecting",i[2])},m(u,c){w(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(t,l)},p(u,c){c&2&&G(l,"hidden",!u[1]),c&4&&G(e,"connecting",u[2])},d(u){u&&y(e)}}}function Wb(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;return{c(){e=M("svg"),t=M("g"),n=M("mask"),o=M("path"),s=M("path"),a=M("path"),u=M("path"),c=M("defs"),m=M("clipPath"),h=M("path"),g=M("filter"),S=M("feFlood"),k=M("feColorMatrix"),F=M("feOffset"),T=M("feGaussianBlur"),v=M("feColorMatrix"),E=M("feBlend"),H=M("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",l=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",C=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(S,"flood-opacity","0"),f(S,"result","BackgroundImageFix"),f(k,"in","SourceAlpha"),f(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(k,"result","hardAlpha"),f(T,"stdDeviation","2.5"),f(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(E,"in2","BackgroundImageFix"),f(E,"result","effect1_dropShadow_4085_178456"),f(H,"in","SourceGraphic"),f(H,"in2","effect1_dropShadow_4085_178456"),f(H,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(U,W){w(U,e,W),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,S),_(g,k),_(g,F),_(g,T),_(g,v),_(g,E),_(g,H)},p(U,W){W&2&&r!==(r=U[1]?"#2688EB":"#fff")&&f(o,"fill",r),W&2&&l!==(l=U[1]?"#2688EB":"#fff")&&f(a,"fill",l),W&2&&C!==(C=U[1]?"#2688EB":"#fff")&&f(h,"fill",C)},d(U){U&&y(e)}}}function Kb(i){let e;function t(r,s){return r[0]?Wb:zb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),w(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&y(e),o.d(r)}}}function xb(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,s;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,s=o===rm.CONNECTING),t(1,r=o===rm.CONNECTED))},[n,r,s,o]}var vu=class extends N{constructor(e){super(),O(this,e,xb,Kb,B,{isMobile:0,state:3},Ub)}},sm=vu;import{noop as Gb}from"@vkontakte/videoplayer-shared";function Yb(i){let e,t;return e=new sm({props:{isMobile:i[1],state:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Qb(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Yb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&16&&(l.ariaLabel=s[4]),a&8&&(l.click=s[3]),a&70&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Zb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=Gb}=e,a;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,s=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===jb.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var yu=class extends N{constructor(e){super(),O(this,e,Zb,Qb,B,{ref:0,isMobile:1,state:2,click:3})}},nl=yu;function Xb(i){be(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function Jb(i){let e,t,n,o,r=i[9].default,s=Le(r,i,i[8],null);return{c(){e=I("div"),t=I("div"),s&&s.c(),f(t,"class","tooltip svelte-5ygsa2"),G(t,"active",i[0]),G(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,l){w(a,e,l),_(e,t),s&&s.m(t,null),i[10](t),i[11](e),o=!0},p(a,[l]){s&&s.p&&(!o||l&256)&&Re(s,r,a,a[8],o?Ve(r,a[8],l,null):Be(a[8]),null),(!o||l&1)&&G(t,"active",a[0]),(!o||l&2)&&G(t,"pointer",a[1]),(!o||l&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(s,a),o=!0)},o(a){p(s,a),o=!1},d(a){a&&y(e),s&&s.d(a),i[10](null),i[11](null)}}}function $b(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:s=!1}=e,{pointer:a=!1}=e,{translateXPx:l=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function C(k){if(!h)return 0;let{width:F}=h.getBoundingClientRect(),T=F/2;return k<T?T:k>c-T?c-T:k}function g(k){ve[k?"unshift":"push"](()=>{h=k,t(4,h)})}function S(k){ve[k?"unshift":"push"](()=>{m=k,t(3,m)})}return i.$$set=k=>{"active"in k&&t(0,s=k.active),"pointer"in k&&t(1,a=k.pointer),"translateXPx"in k&&t(6,l=k.translateXPx),"translateYPx"in k&&t(2,u=k.translateYPx),"containerWidth"in k&&t(7,c=k.containerWidth),"$$scope"in k&&t(8,r=k.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=C(l))},[s,a,u,m,h,n,l,c,r,o,g,S]}var wu=class extends N{constructor(e){super(),O(this,e,$b,Jb,B,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Xb)}},lm=wu;var ol=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function e4(i){be(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function am(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?i4:t4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),w(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&y(e),o.d(r)}}}function t4(i){let e=(i[10].text||"")+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(t,e)},d(n){n&&y(t)}}}function i4(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p:me,d(n){n&&y(t)}}}function um(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&y(e)}}}function n4(i){let e,t,n,o,r,s,a=i[10]&&am(i),l=!i[2]&&um(i);return{c(){e=I("div"),t=I("div"),o=Y(),r=I("div"),a&&a.c(),s=Y(),l&&l.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),G(e,"mobile",i[1])},m(u,c){w(u,e,c),_(e,t),_(e,o),_(e,r),a&&a.m(r,null),_(e,s),l&&l.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=am(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?l&&(l.d(1),l=null):l?l.p(u,c):(l=um(u),l.c(),l.m(e,null)),c&2&&G(e,"mobile",u[1])},i:me,o:me,d(u){u&&y(e),a&&a.d(),l&&l.d()}}}var Br=150;function o4(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:s=[]}=e,{previewThumbsData:a}=e,{progress:l=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=nt().ui.rotateAlpha;D(i,h,W=>t(11,n=W));let C,g,S,k,F,T,v,E;function H(){let W=a.frameWidth,ne=a.frameHeight;return W>Br?(ne=ne/W*Br,W=Br):ne>Br&&(W=W/ne*Br,ne=Br),{width:W,height:ne}}function U(W){let ne;a.isUV?ne=Math.floor(u*W/a.frequency):ne=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*W)));let de=Math.floor(ne/a.countPerImage),q=Math.floor(ne%a.countPerImage/a.countPerRow),X=ne%a.countPerRow,oe=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&(oe=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&oe++);let K=a.countPerRow;!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(K=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ce=C*K,z=g*oe,x=-X*C,P=-q*g;return{imgSrc:a.links[de],imgWidth:ce,imgHeight:z,imgOffsetX:x,imgOffsetY:P}}return i.$$set=W=>{"time"in W&&t(0,o=W.time),"isMobile"in W&&t(1,r=W.isMobile),"videoEpisodes"in W&&t(13,s=W.videoEpisodes),"previewThumbsData"in W&&t(14,a=W.previewThumbsData),"progress"in W&&t(15,l=W.progress),"duration"in W&&t(16,u=W.duration),"isInteractive"in W&&t(2,c=W.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:S,imgWidth:k,imgHeight:F,imgOffsetX:T,imgOffsetY:v}=U(l),S,(t(6,k),t(15,l)),(t(7,F),t(15,l)),(t(8,T),t(15,l)),(t(9,v),t(15,l))),i.$$.dirty&106496&&t(10,E=ol(l,u,s))},t(3,{width:C,height:g}=H(),C,t(4,g)),[o,r,c,C,g,S,k,F,T,v,E,n,h,s,a,l,u]}var ku=class extends N{constructor(e){super(),O(this,e,o4,n4,B,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},e4)}},cm=ku;function r4(i){be(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function s4(i){let e,t;return{c(){e=I("span"),t=qe(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o[0]&256&&Ge(t,n[8])},i:me,o:me,d(n){n&&y(e)}}}function l4(i){let e,t;return e=new cm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function a4(i){let e,t,n,o,r=[l4,s4],s=[];function a(l,u){return l[15].features.timelinePreview&&l[22]&&!l[1]?0:1}return e=a(i,[-1,-1]),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function u4(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[a4]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=se(a,s[c]);e=new lm({props:a});function l(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:j("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new Vr({props:u}),ve.push(()=>ze(n,"ref",l)),{c(){R(e.$$.fragment),t=Y(),R(n.$$.fragment)},m(c,m){L(e,c,m),w(c,t,m),L(n,c,m),r=!0},p(c,m){let h=m[0]&1024?He(s,[Ao(c[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let C={};m[0]&4096&&(C.isActiveLive=c[12]),m[0]&2048&&(C.isMobile=c[11]),m[0]&4&&(C.ariaValueMax=c[2]),m[0]&128&&(C.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(C.ariaValueText=j("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(C.loadedProgress=c[13]),m[0]&128&&(C.filledProgress=c[7]),m[0]&128&&(C.handleProgress=c[7]),m[0]&16&&(C.videoEpisodes=c[4]),m[0]&16384&&(C.disabled=c[14].has("TIMELINE")),m[0]&8&&(C.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,C.ref=c[0],Ue(()=>o=!1)),n.$set(C)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){p(e.$$.fragment,c),p(n.$$.fragment,c),r=!1},d(c){c&&y(t),V(e,c),V(n,c)}}}function c4(i,e,t){var fe;let n,o,r,s,a,l,u,c,m,h,C,{showTimeline:g=!1}=e,{ref:S=void 0}=e,k=nt(),F=xt(),T=k.state.bufferedProgress$;D(i,T,Se=>t(13,h=Se));let v=k.state.positionWithScrubbing$;D(i,v,Se=>t(41,l=Se));let E=k.state.duration$;D(i,E,Se=>t(2,r=Se));let H=k.state.isLive$;D(i,H,Se=>t(1,o=Se));let U=k.state.isActiveLive$;D(i,U,Se=>t(12,m=Se));let W=k.ui.isMobile;D(i,W,Se=>t(11,c=Se));let ne=F.features.episodes?k.actions.internal.getVideoEpisodes():void 0,de=k.actions.internal.getPreviewThumbsData(),q=k.state.interactiveEpisodes$;D(i,q,Se=>t(42,u=Se));let X=k.state.isInteractive,oe=k.state.isInteractiveTime$;D(i,oe,Se=>t(3,s=Se));let K=k.state.isInteractiveExpectation$;D(i,K,Se=>t(40,a=Se));let ce=k.actions.internal.correctSeekTimeToInteractive,z=(fe=k.callbacks)==null?void 0:fe.onDisabledTimelineClick,x=k.ui.controls.disabledControls$;D(i,x,Se=>t(14,C=Se));let P,J,le,Ae,ee=!1,ge="",Ee=0,Te=0,Ie=0,ot;function Pe(Se){return!ce||!X?Se:ce(Se*r)/r}function We(Se){k.actions.internal.startScrubbing(Pe(Se))}function $(Se){s||k.actions.internal.progressScrubbing(Pe(Se))}function _e(Se){k.actions.internal.completeScrubbing(Pe(Se)),t(36,ee=!1)}function Ce(Se,$e,Ne){lt(Se,$e,Ne),t(36,ee=!0)}function xe(Se,$e,Ne){lt(Se,$e,Ne),t(36,ee=!0)}function rt(){t(36,ee=!1)}function lt(Se,$e,Ne){t(9,Ie=Pe(Se)),t(37,Ee=$e),Ne&&t(38,Te=Ne),t(8,ge=it(Se))}function it(Se){let $e=Nn((o?1-Se:Se)*r);return o?`-${$e}`:$e}function Je(Se){S=Se,t(0,S)}return i.$$set=Se=>{"showTimeline"in Se&&t(35,g=Se.showTimeline),"ref"in Se&&t(0,S=Se.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,P=X?u:ne),i.$$.dirty[0]&4&&t(5,J=Nn(r)),i.$$.dirty[1]&1024&&t(6,le=Nn(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,Ae=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,ot=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Te,translateXPx:Ee,translateYPx:X&&de?-36:-16,active:ee&&g&&!ot,pointer:!F.features.timelinePreview||!de||o})},[S,o,r,s,P,J,le,Ae,ge,Ie,n,c,m,h,C,F,T,v,E,H,U,W,de,q,X,oe,K,z,x,We,$,_e,Ce,xe,rt,g,ee,Ee,Te,ot,a,l,u,Je]}var Cu=class extends N{constructor(e){super(),O(this,e,c4,u4,B,{showTimeline:35,ref:0},r4,[-1,-1])}},fm=Cu;function f4(i){let e,t;return e=new Vr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:j("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=j("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function d4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=nt().ui.isMobile;D(i,a,m=>t(4,n=m));let l,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=Nn(r)),i.$$.dirty&64&&t(2,u=Nn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var Su=class extends N{constructor(e){super(),O(this,e,d4,f4,B,{position:6,duration:0})}},rl=Su;function m4(i){be(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function p4(i){let e;return{c(){e=I("div"),f(e,"class","timeline-stub svelte-1gqonyf"),G(e,"mobile",i[3])},m(t,n){w(t,e,n)},p(t,n){n&8&&G(e,"mobile",t[3])},i:me,o:me,d(t){t&&y(e)}}}function _4(i){let e,t,n,o,r=[g4,h4],s=[];function a(l,u){return l[1]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),G(e,"mobile",i[3])},m(l,u){w(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&G(e,"mobile",l[3])},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&y(e),s[t].d()}}}function h4(i){let e,t,n;function o(s){i[14](s)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new fm({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a&4&&(l.showTimeline=s[2]),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function g4(i){let e,t;return e=new rl({props:{position:i[4],duration:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function b4(i){let e,t,n,o,r=[_4,p4],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function v4(i,e,t){let n,o,r,s,{isAds:a=!1}=e,{canRewindLive:l}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=nt(),C=h.state.isLive$;D(i,C,v=>t(13,n=v));let g=h.ads.duration;D(i,g,v=>t(5,s=v));let S=h.ads.position;D(i,S,v=>t(4,r=v));let k=h.ui.isMobile;D(i,k,v=>t(3,o=v));let F;function T(v){m=v,t(0,m)}return i.$$set=v=>{"isAds"in v&&t(1,a=v.isAds),"canRewindLive"in v&&t(10,l=v.canRewindLive),"isRewindableLive"in v&&t(11,u=v.isRewindableLive),"isHidden"in v&&t(12,c=v.isHidden),"ref"in v&&t(0,m=v.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,F=!c&&(!n||n&&l&&u||a))},[m,a,F,o,r,s,C,g,S,k,l,u,c,n,T]}var Tu=class extends N{constructor(e){super(),O(this,e,v4,b4,B,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},m4)}},sl=Tu;import{noop as S4}from"@vkontakte/videoplayer-shared";function y4(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),we(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function w4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Iu=class extends N{constructor(e){super(),O(this,e,w4,y4,B,{})}},dm=Iu;function k4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function C4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pu=class extends N{constructor(e){super(),O(this,e,C4,k4,B,{})}},mm=Pu;function T4(i){be(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function I4(i){let e,t,n,o;e=new dm({});function r(l,u){if(l[4]==="FULL")return A4;if(l[4]==="COUNT")return E4}let s=r(i,-1),a=s&&s(i);return{c(){R(e.$$.fragment),t=Y(),a&&a.c(),n=Xe()},m(l,u){L(e,l,u),w(l,t,u),a&&a.m(l,u),w(l,n,u),o=!0},p(l,u){s===(s=r(l,u))&&a?a.p(l,u):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(n.parentNode,n)))},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){l&&(y(t),y(n)),V(e,l),a&&a.d(l)}}}function P4(i){let e,t,n,o,r,s;return r=new mm({}),{c(){e=I("span"),t=qe(i[2]),n=Y(),o=I("div"),R(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,l){w(a,e,l),_(e,t),w(a,n,l),w(a,o,l),L(r,o,null),s=!0},p(a,l){(!s||l&4)&&Ge(t,a[2])},i(a){s||(d(r.$$.fragment,a),s=!0)},o(a){p(r.$$.fragment,a),s=!1},d(a){a&&(y(e),y(n),y(o)),V(r)}}}function E4(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=qe(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){w(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ge(n,t)},d(o){o&&y(e)}}}function A4(i){let e,t;return{c(){e=I("span"),t=qe(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&4&&Ge(t,n[2])},d(n){n&&y(e)}}}function M4(i){let e,t,n,o,r=[P4,I4],s=[];function a(l,u){return l[6]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function L4(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[M4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&64&&(l.className="w-max btn-full-opacity "+(s[6]?"px-0":"")),a&8&&(l.ariaExpanded=s[3]),a&32&&(l.ariaLabel=s[5]),a&8388693&&(l.$$scope={dirty:a,ctx:s}),!t&&a&2&&(t=!0,l.ref=s[1],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function V4(i,e,t){var q,X,oe;let n,o,r,s,a,l,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=nt(),C=(X=(q=h.callbacks)==null?void 0:q.onEpisodeChanged)!=null?X:S4,g=!!((oe=h.callbacks)!=null&&oe.onEpisodeClicked),S=h.ui.currentGridType$;D(i,S,K=>t(18,a=K));let k=h.ui.episodes.openedByKeyboard$;D(i,k,K=>t(17,s=K));let F=h.ui.episodes.panelOpened$;D(i,F,K=>t(3,r=K));let T=h.ui.isMobile;D(i,T,K=>t(6,l=K));let v,E=K=>{var z,x,P;if(!!((z=h.callbacks)!=null&&z.onEpisodeClicked)){let J=Tr(K);k.set(J),F.set(!0),(P=(x=h.callbacks)==null?void 0:x.onEpisodeClicked)==null||P.call(x,J)}},H,U,W,ne=async(K,ce,z)=>{await Xn(),(K==null?void 0:K.getAttribute("aria-expanded"))==="false"&&ce&&!z&&(k.set(!1),K.focus())};function de(K){v=K,t(1,v)}return i.$$set=K=>{"position"in K&&t(13,u=K.position),"duration"in K&&t(14,c=K.duration),"timeCodes"in K&&t(0,m=K.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/c),i.$$.dirty&114689){let K=ol(n,c,m);K&&(H==null?void 0:H.text)!==K.text&&(C(K),t(15,H=K))}i.$$.dirty&32768&&t(2,o=(H==null?void 0:H.text)||""),i.$$.dirty&262144&&(mi(a,"xl")?t(4,U="FULL"):mi(a,"m")&&Z1(a,"xl")?t(4,U="COUNT"):t(4,U="SHORT")),i.$$.dirty&4&&t(5,W=`${j("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&ne(v,s,r)},[m,v,o,r,U,W,l,g,S,k,F,T,E,u,c,H,n,s,a,de]}var Eu=class extends N{constructor(e){super(),O(this,e,V4,L4,B,{position:13,duration:14,timeCodes:0},T4)}},ll=Eu;import{debounceFn as _3}from"@vkontakte/videoplayer-shared";import{ChromecastState as q4,PlaybackState as es,Player as U4,VideoFormat as ts}from"@vkontakte/videoplayer-core";import{assertNonNullable as Dn,clientChecker as z4,getHighestQuality as W4,InterfaceLanguage as K4,isInvariantQuality as x4,isNonNullable as j4,loadVKLangPack as G4,Logger as Y4,map as Q4,merge as Z4,Observable as X4,Subject as pl,Subscription as Bu,Tracer as J4,ValueSubject as $4,VideoQuality as ev}from"@vkontakte/videoplayer-shared";import{SeekAction as Do}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as R4,assertNonNullable as Ti,Subject as Zi,clearVideoElement as B4}from"@vkontakte/videoplayer-shared";var pm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var N4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",al=class{constructor(e,t){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 Zi,loadStarted$:new Zi,loadEnded$:new Zi,loadError$:new Zi,ready$:new Zi,slotRequested$:new Zi,started$:new Zi,timeRemained$:new Zi,paused$:new Zi,resumed$:new Zi,ended$:new Zi,empty$:new Zi,skipped$:new Zi,clicked$:new Zi,closed$:new Zi,error$:new Zi};this.loadAdman=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()};R4(N4,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{Ti(this.adsState),Ti(this.playerState),Ti(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Ye(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=e=>{Ti(this.adsState),this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Ti(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Ti(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Ti(this.adman),Ti(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.events.error$.next(),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0),this.events.loadError$.next()}initAdman(e){if(this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:l,params:u={},duration:c,previewParam:m}=e,h,C=this.playerState&&Ye(this.playerState.vsid);C&&(h=parseInt(C,36));let g={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:pm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u};m||delete g.preview;let S={slot:l,wrapper:s,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(S),this.adman=k,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}catch(k){this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Ti(this.actions),Ti(this.adsState),Ti(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){Ti(this.adsState),this.log({message:"toggle play"});let e=Ye(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch(t){this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Ti(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Ti(this.adman),Ti(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){Ti(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Ti(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Ti(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&B4(this.videoElement),this.isDestroyed=!0}};var _m=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Au=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},s=o.split(this.oneLineRegExp);for(let a of s)if(!r.startTime&&!r.endTime){let l=new ul,{startTime:u,endTime:c}=l.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let l=new Mu,{texts:u}=l.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},ul=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 t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,s=Number(t)*60,a=Number(n),l=+`0.${o}`;return r+s+a+l}},Mu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let a=0,l=[];for(;a<s.length;){let u=["<",">"].reduce((c,m)=>{let h=s.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){l.push(s.substring(a));break}l.push(s.substring(a,u)),a=u+1}return l}}),r=new ul;for(let s of o)r.isTime(s)?t.texts.push({type:"timestamp",value:r.parseTime(s)}):t.texts.push({type:"text",value:s});return t}},hm=Au;import{isNonNullable as Lu}from"@vkontakte/videoplayer-shared";var No,Jt,Vu=0,Ru=!1,gm=(i,e=0,t=0)=>i<e&&i<t,cl=(i,e=0,t=0)=>i>=e&&i<=t,D4=(i,e=0,t=0)=>i>e&&i>t,bm=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({lang:l})=>l===e.value))==null?void 0:a.subtitles;if(n){let l=o==null?void 0:o.find(({startTime:u,endTime:c})=>cl(i,u,c));return l?{...l,lang:e.value}:void 0}let r=i>=Vu,s=i<Vu;if(Vu=i,s&&(Ru=!1),Lu(No)&&cl(i,No.startTime,No.endTime)&&No.lang===e.value)return No;if(!Lu(Jt)&&(o!=null&&o.length)&&!Ru){let l=o.find(({startTime:u,endTime:c})=>cl(i,u,c)||r&&gm(i,u,c));Jt=l&&{...l,lang:e.value},No=void 0,!Lu(Jt)&&o[o.length-1].endTime<i&&(Ru=!0);return}else{if(cl(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))return No=Jt,Jt=void 0,No;(r&&D4(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime)||s&&gm(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))&&(Jt=void 0)}};var vm={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},O4={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"},fl=i=>{var e,t;return(t=(e=vm[i])!=null?e:vm[O4[i]])!=null?t:void 0};import{Subscription as F4}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var dl=class{constructor(e,t=new F4){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var ml=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(ml||{});var ym=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:s,canDownload:a,callbacks:l,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:C,player:g,disabledControls:S,isInteractive:k,interactiveRanges$:F,isInteractiveTime$:T,replayInteractive:v,stopPlayer:E,hasInteractiveBranches:H,playPrevChapterDisabledTooltip:U,additionalButtons:W,additionalSettingsMenuItems:ne,additionalContextMenuItems:de,looped:q=!1,statistics:X,saveRate:oe})=>{var ds,ms,ps,_s;let K={...C,configName:[...(ds=C.configName)!=null?ds:[],"ui"],isAudioDisabled:s,live:{...(ms=C.live)!=null?ms:{},isLiveCatchUpMode:!!o}},ce=h,z=J4.createRootTracer(ce.features.saveTraceInfoToFile),x=z.createComponentTracer("Store"),P=g||new U4(K,z),J=new Y4,le=new al(J,{loadTimeout:ce.ads.loadTimeout,initTimeout:ce.ads.initTimeout,runtimeTimeout:ce.ads.runtimeTimeout}),Ae=nr.getInstance(),ee=u==null?void 0:u.pictureInPictureApi,ge=u==null?void 0:u.annotationsApi,Ee=J.createComponentLog("Store"),Te,Ie,ot={},Pe=new Cs,We=X?St(X.oneStat.vsid$):Wn(void 0),$=Oe(Mo()),_e=(ps=ee==null?void 0:ee.info.isActive$)!=null?ps:new $4(!1),Ce=ee==null?void 0:ee.info.type,xe=Oe(0),rt=Oe([]),lt=Z4(P.events.fatalError$,P.events.managedError$).subscribe(b=>rt.update(A=>[...A,b])),it=Wn(!1,b=>{let A=P.events.fatalError$.subscribe(()=>b(!0));return()=>A.unsubscribe()}),Je=async b=>{var Me;let A=Object.values(K4).includes(b);if(ce.downloadVKLanguages&&(A&&ce.updateBuiltinLanguages||!da(b))){let st;try{st=await G4(b,Hf,qf)}catch(mt){(Me=X==null?void 0:X.oneStat)==null||Me.logError({errorType:"VKLangPack",fatal:!1}),Ae==null||Ae.report(mt,{errorType:"VKLangPack",fatal:!1})}st&&(fa({language:b,pack:st,fallback:ce.defaultLanguage}),fe.set(b))}da(b)&&fe.set(b)},fe=Oe(i),Se=Oe(e);Je(i);let $e=(b,A)=>{let re=Ye(fe);return ma(re,b,A,ce.defaultLanguage)},Ne=Oe("thumb"),et=(()=>{let b=Xt([it,Ne],([A,re])=>A?"crashed":re);return{...b,is:A=>Ye(b)===A}})(),Fe=(()=>{let b=Oe(new Set(S));return{...b,add:A=>{b.update(re=>new Set([...re].concat(A)))},remove:A=>{b.update(re=>{let Me=[...re];return new Set(Array.isArray(A)?Me.filter(st=>!A.includes(st)):Me.filter(st=>st!==A))})},includes:A=>{let re=Ye(b);return Array.isArray(A)?A.every(Me=>re.has(Me)):re.has(A)}}})();x.log("create store"),Ee({message:"create store"});let ut=b=>{let A=b.container;A.append(P.experimental.element$.getValue()),Tt=new MutationObserver(re=>{let{removedNodes:Me}=re[0];Me.length&&A.append(P.experimental.element$.getValue())}),Tt.observe(A,{childList:!0})},ft=b=>{Ee({message:`init video, config: ${JSON.stringify(b)}`}),k?ut(b):P.initVideo(b),x.log("init video",{isInteractive:k}),b.subtitles&&P.setExternalTextTracks(b.subtitles),Te=b},he=new pl,dt=b=>he.next(b),vt=new pl,yt=new pl,Qe=new pl,Tt=null,At={actionRewind$:vt,actionSeek$:yt,inPiP$:_e,inFullscreen$:new X4(b=>$.subscribe(A=>b.next(A))),actionSetSubtitle$:Qe,nextMovie$:he};if(X){let{oneStat:b,statSubscription:A}=X;k||A.add(b.attachTo(P)),A.add(b.attachToUi(At)),A.add(b.attachToAds(le.events)),b.authorize(r).catch(re=>{Ee({message:`onestat auth error ${String(re)}`})})}if(Ae){let b=new Bu,A=(re,Me)=>b.add(re.subscribe(Me));if(A(P.events.managedError$,re=>{Ae.logIError(re)}),A(P.events.fatalError$,re=>{Ae.logIError(re,!0)}),X){let{oneStat:re}=X;A(re.experimental.error$,Me=>{Ae.logIError(Me)})}Ae.sentrySubscription.add(b)}let ii=()=>{z4.isIOS&&Ie&&Td(Ie)},Ot=new Bu().add(P.experimental.element$.subscribe(b=>{b&&(Ie=b,b.classList.add("player-media"),rr(ee)&&(ee.updateVideoElement(),ee.registryEventHandlers()),k&&b.setAttribute("pip","false"))})).add(P.events.ended$.subscribe(()=>{var b;ii(),(b=l==null?void 0:l.onEnded)==null||b.call(l)})).add(P.events.started$.subscribe(async()=>{var A,re;rr(ee)&&await(ee==null?void 0:ee.revealPictureInPicture());let b=P.info.muted$.getValue();(A=l==null?void 0:l.onStarted)==null||A.call(l),(re=ot.onStarted)==null||re.call(ot,b)})).add(P.events.willSeek$.subscribe(({from:b,to:A})=>{var re;(re=l==null?void 0:l.onSeek)==null||re.call(l,b,A)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var b;(b=l==null?void 0:l.onAutoplaySoundProhibited)==null||b.call(l)})).add(P.info.position$.subscribe(b=>{var re;let A=P.info.duration$.getValue();isFinite(A)&&A>0&&((re=l==null?void 0:l.onTimeupdate)==null||re.call(l,A,b),le.setPosition(b,A))})).add(P.events.fatalError$.subscribe(()=>{var b;(b=l==null?void 0:l.onCrashed)==null||b.call(l)})).add(P.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(P.info.is3DVideo$.subscribe(b=>{kt.ui.is3DVideo.set(b)})).add(P.info.isEnded$.subscribe(b=>{k&&(b?(T!=null&&T.getValue()&&Fe.add(ws),Fe.add("PLAY_BUTTON")):Fe.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(b=>{var A;(A=l==null?void 0:l.onLiveTime)==null||A.call(l,b)})).add(P.info.isStalled$.subscribe(b=>{var A;(A=l==null?void 0:l.onStalledChanged)==null||A.call(l,b)})).add(le.events.loadStarted$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadStarted)==null?void 0:A.call(b)})).add(le.events.loadEnded$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadEnded)==null?void 0:A.call(b)})).add(le.events.loadError$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadError)==null?void 0:A.call(b)})).add(le.events.init$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onInit)==null?void 0:A.call(b)})).add(le.events.ready$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onReady)==null?void 0:A.call(b)})).add(le.events.started$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onStarted)==null?void 0:re.call(A,b)})).add(le.events.timeRemained$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onTimeRemained)==null?void 0:re.call(A,b)})).add(le.events.ended$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onCompleted)==null?void 0:re.call(A,b)})).add(le.events.empty$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onEmpty)==null?void 0:A.call(b)})).add(le.events.clicked$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onClicked)==null?void 0:re.call(A,b)})).add(le.events.closed$.subscribe(b=>{var A,re;return(re=(A=l==null?void 0:l.adsInfo)==null?void 0:A.onClosed)==null?void 0:re.call(A,b)})).add(le.events.error$.subscribe(()=>{var b,A;return(A=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b)})),Ft=new Bu,jt=()=>{Ft.add(P.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add(J.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},Ht=()=>{Ft.unsubscribe()},Ke=(b,A)=>{x.log("start camera manual rotation",{mx:b,my:A}),P.startCameraManualRotation(b,A)},Ze=(b=!1)=>{x.log("stop camera manual rotation",{immediate:b}),P.stopCameraManualRotation(b)},Ct=(b,A,re)=>{x.log("move camera focus px",{xpx:b,ypx:A,dt:re}),P.moveCameraFocusPX(b,A,re)},pe=()=>{P.holdCamera()},Gt=()=>{P.releaseCamera()},It=Wn(P.info.position$.getValue(),b=>{let A,re,Me=()=>{let st=P.info.playbackState$.getValue(),mt=P.info.isLive$.getValue(),Mt=P.info.duration$.getValue(),Z=P.info.position$.getValue();if([es.PLAYING,es.PAUSED].includes(st)){let _t=mt?Z-Mt:P.getExactTime();_t!==re&&b(_t),re=_t}A=requestAnimationFrame(Me)};return Me(),()=>cancelAnimationFrame(A)}),$t=St(_e),Rt=St(P.info.playbackState$),Ut=St(P.info.currentBuffer$),ni=St(P.info.isEnded$),Pt=St(P.info.isLive$),ei=ce.features.playbackRate?St(P.info.canChangePlaybackSpeed$):Wn(!1),Yt=St(P.info.liveBufferTime$),un=St(P.info.volume$),Lt=St(P.info.muted$),Oi=ia(P.info.autoQualityLimits$.pipe(Q4(({max:b})=>b!==void 0)),((_s=P.info.autoQualityLimits$.getValue())==null?void 0:_s.max)!==void 0),Xi=St(P.info.autoQualityLimitingAvailable$),pi=St(P.info.availableQualities$),bi=St(P.info.availableQualitiesFps$),De=St(P.info.chromecastState$),tt=St(P.info.chromecastDeviceName$),wt=St(P.info.currentFormat$),_i=St(P.info.throughputEstimation$),vi=St(P.info.videoBitrate$),Ji=St(P.info.intrinsicVideoSize$),Ii=St(P.info.duration$),cn=St(P.info.isAudioAvailable$),ci=null,Fi=P.info.isBuffering$,Hi=Wn(Fi.getValue(),b=>{let A=Fi.subscribe(re=>{re&&ci===null?ci=window.setTimeout(()=>{b(Fi.getValue()),ci=null},ce.loaderDelay):b(re)});return()=>{A.unsubscribe(),ci&&clearTimeout(ci)}}),Nt=()=>{ci&&clearTimeout(ci),ci=null},yi=Xt([Ii,Pt],([b,A])=>A?-b:b),si=Xt([Rt],([b])=>b===es.PLAYING),qt=St(P.info.atLiveEdge$),Cn=St(P.info.atLiveDurationEdge$),hi=St(P.info.position$),fn=Xt([hi,Ii],([b,A])=>isFinite(b)&&isFinite(A)&&!!A),Sn=Xt([De],([b])=>b===q4.CONNECTED),$i=St(P.info.availableVideoStreams$),dn=ce.features.audioLanguages?St(P.info.availableAudioStreams$):Wn([]),wi=St(P.info.currentVideoStream$),en=St(P.info.currentAudioStream$),zt=b=>{b.language&&ua(b.language),P.setVideoStream(b)},On=b=>{b.language&&ua(b.language),P.setAudioStream(b)},qi=b=>{let A;if(b.length===1&&(A=b.at(0)),A!=null||(A=b.find(Me=>"isDefault"in Me&&Me.isDefault)),A)return A;let re=md();return re&&(A=b.find(({language:Me})=>re===Me)),A!=null||(A=b.at(0)),A},Ui=!1;Ot.add(P.info.availableAudioStreams$.subscribe(b=>{if(!Ui&&b.length){let A=qi(b);A&&(P.setAudioStream(A),Ui=!0)}}));let zi=!1;Ot.add(P.info.availableVideoStreams$.subscribe(b=>{if(!zi&&b.length){let A=qi(b);A&&(P.setVideoStream(A),zi=!0)}}));let gi=Oe(void 0),Pi=St(P.info.isAutoQualityEnabled$,b=>b&&gi.set(void 0)),tn=St(P.info.currentQuality$,()=>gi.set(void 0)),nn=Xt([gi,tn],([b,A])=>b!=null?b:A),ki=Xt([pi,bi,Pi,nn,wt],([b,A,re,Me,st])=>{let mt=[];st!==ts.MPEG&&mt.push({value:"auto",displayValue:$e("auto_quality_option"),selected:re});let Mt=b.filter(Z=>!x4(Z));for(let Z of Mt){let _t=A[Z];mt.push({value:Z,displayValue:`${Z}${_t?_m(_t):""}`,selected:re?!1:Z===Me})}return mt}),Ci=St(P.info.currentPlaybackRate$),li=Xt([Ci,qt,Cn],([b,A,re])=>{let Me=re||k?1:ce.controls.playbackRateMin,st=A?1:ce.controls.playbackRateMax,mt=ce.controls.playbackRateStep,Mt=[];for(let Z=Me;Z<=st;Z+=mt)Mt.push({value:Z,displayValue:Z===1?$e("playback_rate_1"):$e("playback_rate",{multiplier:Z.toString(10)}),selected:b===Z});return Mt}),Wt={displayValue:$e("subtitles_off"),value:"off"},Dt=Oe({...Wt}),Ei=ce.features.subtitles?St(P.info.availableTextTracks$):Wn([]),Ai=ed(),on=Xt([Ei,Dt],([b,A],re)=>{var mt;let Me=[],st=b.find(({language:Mt})=>Mt===A.value);if(st!=null&&st.url){let[,Mt]=(mt=Ai.find(st.url))!=null?mt:[];if(Mt){re(Mt);return}Pe.download(st.url).then(Z=>{if(!Z||Pe.isDestroyed())return;let _t=new hm,lo=st.language,O_=!!st.isAuto,F_=_t.parse(Z);lo&&Me.push({lang:lo,subtitles:F_,isAuto:O_}),Ai.add(st.url,Me),Ye(Dt).value===A.value&&re(Me)}).catch(Z=>{var _t;(_t=X==null?void 0:X.oneStat)==null||_t.logError({errorType:"Subtitles download",fatal:!1}),Ae==null||Ae.report(Z,{errorType:"Subtitles download",fatal:!1})})}re(Me)}),at=Xt([Ci,si,Dt],([b,A,re],Me)=>{let Mt;if(P.info.isLive$.getValue()&&A&&re.value!==Wt.value){let _t=()=>{let lo=1e3/(3*b);Mt=setTimeout(_t,lo),Me(Date.now())};return _t(),()=>clearTimeout(Mt)}}),Mi=Xt([Ei,Dt],([b,A])=>{if((b==null?void 0:b.length)>0){let re=[{...Wt,selected:(A==null?void 0:A.value)===Wt.value}];for(let{language:Me,isAuto:st}of b){let mt=Me&&fl(Me);Me&&mt&&re.push({displayValue:st?$e("subtitles_auto",{language:mt}):mt,value:Me,selected:(A==null?void 0:A.value)===Me,isAuto:st})}return re}else return[]}),ai={available:[],prev:[]},Li=Xt([It,Dt,on,at],([b,A,re,Me])=>{var mt,Mt;let st=P.info.isLive$.getValue();if(st&&ai.prev!==re){let Z=re.find(({lang:lo})=>lo===A.value),_t=ai.prev.find(({lang:lo})=>lo===A.value);if(Z){let lo={...Z,subtitles:[...(mt=_t==null?void 0:_t.subtitles)!=null?mt:[],...Z.subtitles]};ai.available=[lo],ai.prev=re}}if(A&&A.value!==Wt.value){let Z=st?(Mt=Ie==null?void 0:Ie.currentTime)!=null?Mt:0:b,_t=st?ai.available:re;return bm(Z,A,_t,st)}}),Vi=Xt([Li],([b])=>b!=null&&b.texts?b.texts:[]),je=Oe(!0),Fn=Xt([Ut,yi,hi,Yt],([b,A,re,Me])=>{var Z;let st=(Z=b==null?void 0:b.end)!=null?Z:0;if(!Me)return st/A;let Mt=-re+Me-A;return(st-Mt)/A}),rn=St(P.info.availableSources$),Tn=Xt([rn],([b])=>Object.keys((b==null?void 0:b[ts.MPEG])||{}).length>0),mn=()=>{var re,Me,st;let b=Object.keys(((Me=(re=P.info.availableSources$)==null?void 0:re.getValue())==null?void 0:Me[ts.MPEG])||{}),A=W4(b)||ev.Q_144P;return(st=Te.sources[ts.MPEG])==null?void 0:st[A]},Wi=()=>{var A;let b=mn();if(b)x.log("download video",{url:b}),Xf(b,((A=Te==null?void 0:Te.meta)==null?void 0:A.title)||"video");else{let re="There is no URL for download video";x.log("download video",{message:re}),Ee({message:re})}},Ki=()=>{Ee({message:"toggle muted"});let b=P.info.muted$.getValue(),A=P.info.volume$.getValue(),re=A===0||b,Me=!re;x.log("toggle muted",{muted:b,volume:A,soundIsOff:re,nextValue:Me}),Pn(Me)},xi=()=>{x.log("close settings menu"),kt.ui.settingsMenuVisible.set(!1)},pn=b=>{x.log("open settings menu",{wasOpenedByKeyboard:b}),kt.ui.settingsMenuOpenedByKeyboard.set(!!b),kt.ui.settingsMenuVisible.set(!0)},fi=b=>{Ye(kt.ui.settingsMenuVisible)?xi():pn(b)},In=(b,A=b,re=!1)=>{var mt,Mt,Z;let Me=!re,st=P.info.muted$.getValue();Ee({message:`set volume, volume: ${b}, preferredVolume: ${A}, internalCall: ${Me}`}),x.log("set volume",{volume:b,preferredVolume:A,internalCall:Me}),P.setVolume(b),le.setVolume(b),Me&&((mt=l==null?void 0:l.onVolumeChange)==null||mt.call(l,b)),ra(A),st?(P.setMuted(!1),Me&&((Mt=l==null?void 0:l.onUnmute)==null||Mt.call(l)),Ts(!1)):!st&&b===0&&(P.setMuted(!0),Me&&((Z=l==null?void 0:l.onMute)==null||Z.call(l)),Ts(!0))},Pn=(b,A=!1)=>{var st,mt,Mt,Z;let re=!A,Me=P.info.volume$.getValue();if(Ee({message:`set muted, currentVolume: ${Me}, mute: ${b}, internalCall: ${re}`}),x.log("set muted",{mute:b,currentVolume:Me,internalCall:re}),P.setMuted(b),le.setVolume(b?0:Me),Ts(b),re&&(b?(st=l==null?void 0:l.onMute)==null||st.call(l):(mt=l==null?void 0:l.onUnmute)==null||mt.call(l)),Me===0){let _t=(Mt=Ss())!=null?Mt:ce.volumeDefault;_t===0&&(_t=ce.volumeMinRestore,ra(_t)),P.setVolume(_t),le.setVolume(_t),re&&((Z=l==null?void 0:l.onVolumeChange)==null||Z.call(l,_t))}},En=Oe(!1),_n=b=>{x.log("set looped",{isLooped:b}),En.set(b),P.setLooped(b)};_n(q);let hn=()=>{var b,A;(A=(b=l==null?void 0:l.uiInfo)==null?void 0:b.onReportProblem)==null||A.call(b)},An=b=>{Ee({message:`set autoplayNextEnabled, value: ${b}`}),x.log("set autoplay next enabled",{autoplayNextEnabled:b}),kt.ui.autoplayNextEnabled$.set(b),hd(b)},gn=()=>{P.prepare()},Hn=()=>{Dn(kt);let b=Ye(kt.ui.controls.disabledControls$),A=Ye(kt.playerPhase),re={playerPhase:A,isInteractive:k,isVideoEnded:!1,action:"none"};if(b.has("PLAY_BUTTON"))return;if(Ee({message:"toggle play"}),A==="ads"){re.action="play",x.log("toggle adman play",re),le.togglePlay();return}let Me=()=>{var mt;Ee({message:"toggle play, call player.play"}),re.action="play",P.play(),(mt=l==null?void 0:l.onPlay)==null||mt.call(l)},st=()=>{var mt;Ee({message:"toggle play, call player.pause"}),re.action="pause",P.pause(),(mt=l==null?void 0:l.onPause)==null||mt.call(l)};if(P.info.isEnded$.getValue()){if(Ee({message:"toggle play, video ended, seek to 0"}),vt.next(),yt.next(Do.REWIND),k){v==null||v();return}P.seekTime(0),Me()}else P.info.playbackState$.getValue()!==es.PLAYING?Me():st();x.log("toggle play",re)},Ri=b=>{Ee({message:`set quality, quality: ${b}`}),x.log("set quality",{quality:b}),P.setAutoQuality(b==="auto"),b!=="auto"?(ad(t,b),gi.set(b),P.setQuality(b)):sa()},sn=b=>{Ee({message:`set trafficSavingEnabled, value: ${b}`}),x.log("set traffic saving enabled",{trafficSavingEnabled:b}),P.setAutoQualityLimits({max:b?ce.trafficSavingLimit:void 0}),fd(b)},ti=b=>{x.log("set playback rate",{playbackRate:b}),P.setPlaybackRate(b),ce.features.saveRate&&oe&&!P.info.isLive$.getValue()&&pd(b)},to=()=>{let b=Ye(li),A=b.findIndex(({selected:Me})=>Me);if(A===b.length-1)return;let re=b[A+1];ti(re.value)},io=()=>{let b=Ye(li),A=b.findIndex(({selected:Me})=>Me);if(A===0)return;let re=b[A-1];ti(re.value)},qn=b=>{x.log("set subtitles",{...b}),b&&b.value!==Wt.value&&Qe.next(b.isAuto?b.value+"_auto":b.value),Dt.set(b)},ui=()=>{x.log("toggle subtitles");let b=Ye(Mi),A=Ye(Dt),re=Ye(fe);if((A==null?void 0:A.value)===Wt.value){let Me=b.filter(st=>st.value!==Wt.value).find(st=>st.value===re)||b[1];qn(Me!=null?Me:{...Wt})}else qn({...Wt,selected:!1})},ln=(b,A,re=!0)=>{if(Ee({message:`seek to time, time: ${b}`}),x.log("seek to time",{time:b,action:A,forcePrecise:re}),yt.next(A),P.info.isLive$.getValue()){let Me=P.info.duration$.getValue(),st=Math.min(0,Me+b);P.seekTime(st,re)}else{if(T!=null&&T.getValue())return;P.seekTime(pr(b),re)}},jn=b=>{Ee({message:`seek to episode start time: ${b}`}),x.log("seek to episode start time",{time:b}),ln(b,Do.EPISODE,!0)},Un=(b,A)=>{Ee({message:`seek to percent, percent: ${b}`}),x.log("seek to percent",{percent:b,action:A});let re=Math.round(Ye(yi)*b);ln(re,A,!1)},no=b=>{Ee({message:`seek external, time: ${b}`}),x.log("seek external",{time:b}),yt.next(Do.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-b:b)},Gn=b=>{var Me,st;let A=(Me=b.max)!=null?Me:"none",re=(st=b.min)!=null?st:"none";Ee({message:`set auto quality limitation. Max: ${A}. Min: ${re}`}),x.log("set auto quality limits",{max:A,min:re}),P.setAutoQualityLimits(b)},Yn=b=>{Ee({message:`seek external to episode start time: ${b}`}),x.log("seek external to episode start time",{time:b}),ln(b,Do.EPISODE,!0)},bn=b=>{Ee({message:`set playback rate to: ${b}`}),x.log("set playback rate external",{playbackRate:b}),P.setPlaybackRate(b)},zn=Oe(void 0),vn=Oe(!1),oo=b=>{Ee({message:`start scrubbing, progress: ${b}`}),x.log("start scrubbing",{progress:b}),vn.set(!0),ie(b)},ie=b=>{zn.set(b)},ht,ji,Bi=()=>{zn.set(void 0),vn.set(!1)},te=()=>{clearTimeout(ji),clearTimeout(ht),ht=window.setTimeout(()=>{Bi()},500),Ie==null||Ie.removeEventListener("seeked",te)},Ni=b=>{Ee({message:`complete scrubbing, progress: ${b}`}),x.log("complete scrubbing",{progress:b}),Un(b,Do.SLIDER),Ye(kt.ui.isMobile)&&Ye(kt.state.currentFormat$)===ts.HLS?(Ie==null||Ie.addEventListener("seeked",te),ji=window.setTimeout(()=>{te()},300)):Bi()},Ho=Xt([It,yi,zn],([b,A,re],Me)=>{Me(j4(re)?re*A:b)}),Co=Oe({width:0,height:0}),So=Xt([Co],([{width:b}],A)=>{let re=X1(b);A(re)}),fo=Oe(!1),mo=W.filter(b=>Jf(b)),fr=Xt([So,fo],([b,A])=>A?mo.filter(re=>!re.hideOnMobile):mo.filter(re=>{var Me;return!((Me=re.hideOnDesktopGridTypes)!=null&&Me.includes(b))})),Gi=Oe(W.filter(b=>$f(b))),po=Xt([Gi,So],([b,A])=>b.filter(re=>{var Me;return!((Me=re.hideOnDesktopGridTypes)!=null&&Me.includes(A))})),Qn=Xt([po,fr],([b,A])=>[...ce.features.additionalButtonsDesktopControlPanelRight?b.filter(re=>re.type==="desktop-control-panel-right"):[],...ce.features.additionalButtons?A.map((re,Me)=>{var st;return{id:Me,weight:Me,type:"desktop-control-panel-right",testId:re.testId,icon:re.iconUrl,onClick:re.onClick,ariaLabel:(st=re.ariaLabel)!=null?st:re.tooltip,tooltipText:re.tooltip}}):[]]),an=Oe(ne),To=Xt([an],([b])=>ce.features.additionalSettingsMenuItems?b.map(A=>A.type==="SWITCH"?{...A,onClick:A.onChangeEnabled}:A):[]),qo=(b,A)=>{let re=Ye(Gi).map(Me=>Me.id!==b?Me:{...Me,...A});Gi.set(re)},Uo=b=>{let A=Ye(Gi);if(A.some(re=>re.id===b.id)){Ee({message:`Additional button with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),Gi.set(A)},zo=b=>{let A=Ye(Gi);if(!A.some(re=>re.id===b)){Ee({message:`Can't find additional button with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),Gi.set(A)},Wo=(b,A)=>{let re=Ye(an).map(Me=>Me.id!==b?Me:{...Me,...A});an.set(re)},Ko=b=>{let A=Ye(an);if(A.some(re=>re.id===b.id)){Ee({message:`Settings menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),an.set(A)},xo=b=>{let A=Ye(an);if(!A.some(re=>re.id===b)){Ee({message:`Can't find settings menu item with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),an.set(A)},Mn=Oe(de),jo=Xt([Mn],([b])=>ce.features.additionalContextMenuItems?b:[]),Go=(b,A)=>{let re=Ye(Mn).map(Me=>Me.id!==b?Me:{...Me,...A});Mn.set(re)},Yo=b=>{let A=Ye(Mn);if(A.some(re=>re.id===b.id)){Ee({message:`Context menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}A.push(b),Mn.set(A)},Q=b=>{let A=Ye(Mn);if(!A.some(re=>re.id===b)){Ee({message:`Can't find context menu item with id: "${b}"! Can't remove item with this id`});return}A=A.filter(re=>re.id!==b),Mn.set(A)},Et=Xt([fo,it],([b,A],re)=>{re(b&&A)}),Yi=()=>{yt.next(Do.LIVE),Ee({message:"switch to active live"}),x.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==es.PLAYING&&kt.actions.internal.togglePlay()},Di=()=>{x.log("skip adman"),le.skip()},ro=(b=!0)=>{Dn(kt),Ee({message:`switch from ads to video, callPlay: ${b}`}),x.log("switch from ads to video",{callPlay:b}),Ne.set("video"),b&&P.play()},yn=()=>{Dn(kt),Ee({message:"switch from video to ads"}),x.log("switch from video to ads"),kt.actions.internal.pause(),ii(),Ne.set("ads")},so=b=>{Dn(kt);let A=b?"LiveWaitingStart":"thumb";x.log("set live waiting start",{state:b,playerPhase:A}),Ne.set(A)},Qo=b=>{Dn(kt);let A=b?"LiveWaitingRecover":"thumb";x.log("set live waiting recover",{state:b,playerPhase:A}),Ne.set(A)},_o=b=>{Dn(kt);let A=b?"LiveWaitingRecord":"thumb";x.log("set live waiting record",{state:b,playerPhase:A}),Ne.set(A)},dr=()=>(Dn(kt),x.log("get debug text data"),Qf(P,Te,kt)),qr=()=>(Dn(kt),JSON.stringify(z.getFinishedSpans())),Ur=()=>(Dn(kt),Zf(P,Te,kt)),zr=()=>Ie,Wr=()=>{Ee({message:"toggle chromecast"}),x.log("toggle chromecast"),P.toggleChromecast()},mr=b=>{var re;if(Dn(kt),P.info.isEnded$.getValue())return;let A=!b;if(Ye(kt.playerPhase)==="ads"){Ee({message:`pause ads, internalCall: ${A}`}),x.log("pause ads",{internalCall:A}),le.pause();return}Ee({message:`pause video, internalCall: ${A}`}),x.log("pause video",{internalCall:A}),A&&((re=l==null?void 0:l.onPause)==null||re.call(l)),P.pause()},Kt=b=>{var re;Dn(kt);let A=!b;if(Ye(kt.playerPhase)==="ads"){Ee({message:`play ads, internalCall: ${A}`}),x.log("play ads",{internalCall:A}),le.play();return}Ee({message:`play video, internalCall: ${A}`}),x.log("play video",{internalCall:A}),A&&((re=l==null?void 0:l.onPlay)==null||re.call(l)),P.play()},Ln=b=>{Dn(kt);let A=!b;if(Ye(kt.playerPhase)==="ads"){Ee({message:"player cannot be stopped during ads via external method"});return}Ee({message:`player will be stopped, internalCall: ${A}`}),E==null||E()},Io=(b,A)=>{Dn(kt),Ee({message:`first start, show ads: ${b}, internalCall: ${!A}`}),x.log("first start",{showAds:b,external:A}),b?Ne.set("ads"):(Ne.set("video"),A?P.play():kt.actions.internal.togglePlay())},Zo=()=>(Ee({message:"getting time codes"}),c),Kr=()=>{let b=Zo();if(!b||[0,1].includes(b.length))return;let A=P.info.position$.getValue();return b.find(re=>re.time>A)},xl=b=>{let A=b;A||(A=Kr());let re=P.info.position$.getValue();x.log("seek to next episode",{currentTime:re,...A}),A&&(Ee({message:"seek to next episode"}),ln(A.time,Do.EPISODE,!0))},fs=()=>{let b=Zo();if(!b||[0,1].includes(b.length))return;let A=P.info.position$.getValue(),re=b.findIndex(st=>st.time>A),Me=re===-1?b.length-2:re-2;if(!(Me<0))return b[Me]},xr=b=>{let A=b;A||(A=fs());let re=P.info.position$.getValue();x.log("seek to prev episode",{currentTime:re,...A}),A&&(Ee({message:"seek to prev episode"}),ln(A.time,Do.EPISODE,!0))},jl=()=>(Ee({message:"getting preview thumbs data"}),x.log("get preview thumbs data",{...m}),m),Gl=async()=>{let b=ee==null?void 0:ee.isActive(),A="none";ee!=null&&ee.isActive()?(A="remove",await(ee==null?void 0:ee.remove())):(A="request",await(ee==null?void 0:ee.request())),x.log("toggle picture in picture",{isActive:b,action:A})},Yl=(b=-90)=>{x.log("rotate video",{alphaDiff:b}),xe.update(A=>A+b)},Po=Oe([]);F==null||F.subscribe(b=>{let A=[];for(let re=0;re<b.length;re++){let{range:[Me,st],subjects:mt}=b[re];re===0&&Me!==0&&A.push({time:0,text:"",interactive:!1,completed:!0}),A.push({time:Me/1e3,text:"",interactive:!0,completed:!mt.length}),st!==1/0&&A.push({time:st/1e3,text:"",interactive:!1,completed:!0})}Po.set(A)});let jr=Oe(!1);T==null||T.subscribe(b=>{b&&Ye(vn)&&Bi()});let pr=b=>{if(!k)return b;let A=Ye(Po),re=Ye(yi),st=Ye(hi)/re,mt=A.find(Mt=>Mt.interactive&&!Mt.completed&&Mt.time>st);return typeof(mt==null?void 0:mt.time)=="number"?Math.min(b,mt.time-.05):b},wn=()=>{kt.ui.episodes.panelOpened$.set(!1)},Vn=()=>{x.log("destroy store"),clearTimeout(ji),clearTimeout(ht),Ot.unsubscribe(),Ft.unsubscribe(),P.destroy(),le.destroy(),X==null||X.destroy(),Ae==null||Ae.destroy(),lt.unsubscribe(),Tt==null||Tt.disconnect(),Tt=null,Pe.destroy()},kt={interfaceLanguage$:fe,isCyrillicRelatedInterface$:Se,initVideo:ft,videoId:t,isClip:n,playerPhase:et,vsid:We,state:{positionExact$:It,positionWithScrubbing$:Ho,duration$:yi,playbackState$:Rt,isPlaying$:si,isLoaderVisible:Hi,bufferedProgress$:Fn,isLive$:Pt,canChangePlaybackSpeed$:ei,isActiveLive$:qt,isOldestAvailableLive$:Cn,isRewindableLive$:fn,isEnded$:ni,muted$:Lt,volume$:un,trafficSavingEnabled$:Oi,autoQualityLimitingAvailable$:Xi,availableVideoStreams$:$i,availableAudioStreams$:dn,videoStream$:wi,audioStream$:en,currentQuality$:nn,isAutoQualityEnabled$:Pi,availableQualities$:ki,currentPlaybackRate$:Ci,availablePlaybackRates$:li,currentSubtitle$:Dt,availableSubtitlesList$:Mi,currentSubtitleCaptions$:Vi,isAutoSubtitleCaptionVisible$:je,chromecastState$:De,chromecastDeviceName$:tt,chromecastConnected$:Sn,currentFormat$:wt,throughputEstimation$:_i,videoBitrate$:vi,videoSize$:Ji,errorLog$:rt,crashed$:it,isAudioAvailable$:cn,isAudioDisabled:!!s,canDownload:ce.features.download&&!!a,availableSources$:rn,hasMpegSources$:Tn,isInteractive:k,showInteractiveGraph:ce.features.interactiveGraph,showSeekToInteractive:ce.features.seekToInteractive,showPlayPrevChapter:ce.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ce.features.interactiveTimeIndicator&&!!Ye(Po).length,interactiveEpisodes$:Po,isInteractiveTime$:T?St(T):Oe(!1),graphIsOpened$:Oe(!1),isInteractiveExpectation$:jr,hasInteractiveBranches:H,playPrevChapterDisabledTooltip:U,looped$:En,loadedMetadata$:Oe(!1)},ui:{controlsVisible:Oe(!1),touched:Oe(!1),controls:{prevButton:Oe(void 0),playButton:Oe(void 0),replayButton:Oe(void 0),nextButton:Oe(void 0),playPrevChapterButton:Oe(void 0),seekToInteractiveButton:Oe(void 0),interactiveGraphButton:Oe(void 0),liveButton:Oe(void 0),time:Oe(void 0),episodes:Oe(void 0),volume:Oe(void 0),subtitles:Oe(void 0),settings:Oe(void 0),context:Oe(void 0),chromecast:Oe(void 0),pip:Oe(void 0),fullscreen:Oe(void 0),vkLogo:Oe(void 0),interactiveTimeIndicator:Oe(void 0),timeline:Oe(void 0),autoplayNextToggle:Oe(void 0),additionalButtons:W.length?W.reduce(b=>[...b,Oe(void 0)],[]):[],disabledControls$:Fe},modals:{hotKeyMap:{show:Oe(!1),data:Oe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$,rotateAlpha:xe,isAutoplay:Oe(!1),debugPanelVisible:Oe(!1),episodes:{panelOpened$:Oe(!1),openedByKeyboard$:Oe(!1)},contextMenu:{visible$:Oe(!1),btnRef$:Oe(void 0),openedByBtnKeyboard$:Oe(!1),openedByHotKey$:Oe(!1),lastActiveElem$:Oe(void 0),showContextMenuBtn$:Oe(!1),position$:Oe({top:0,left:0})},playerSize:Co,isMobile:fo,mobileNotReportControlHidden$:Et,mobileUnmuteButtonExpanded:Oe(!1),mobileUnmuteButtonVisible:Oe(!1),icon3DVideoVisible:Oe(!1),settingsMenuVisible:Oe(!1),settingsMenuOpenedByKeyboard:Oe(!1),scrubbingInProgress:vn,is3DVideo:Oe(!1),isPictureInPictureActive$:$t,pictureInPictureType$:Wn(Ce),currentGridType$:So,additionalButtonsDeprecated$:fr,additionalDesktopControlPanelRightButtons$:Qn,additionalSettingsMenuItems$:To,additionalContextMenuItems$:jo,interactiveHideMobileControls:Oe(!1),overlayContainer$:Oe(void 0),startedByKeyboard$:Oe(!1),autoplayNextEnabled$:Oe(!1)},ads:{position:Oe(0),duration:Oe(0),playbackState:Oe("inactive"),canSkip:Oe(!1),secondsToWatchBeforeSkip:Oe(0),postrollPassed:Oe(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:ge},actions:{internal:{preload:gn,firstStart:b=>Io(b,!1),play:()=>Kt(!1),pause:()=>mr(!1),togglePlay:Hn,toggleMuted:Ki,toggleSettingsMenu:fi,openSettingsMenu:pn,closeSettingsMenu:xi,setVolume:In,setVideoStream:zt,setAudioStream:On,setQuality:Ri,setTrafficSavingEnabled:b=>sn(b),setPlaybackRate:ti,incrementPlaybackRate:to,decrementPlaybackRate:io,setSubtitle:qn,toggleSubtitle:ui,togglePictureInPicture:Gl,startScrubbing:oo,progressScrubbing:ie,completeScrubbing:Ni,toggleChromecast:Wr,switchToActiveLive:Yi,switchFromAdsToVideo:ro,switchFromVideoToAds:yn,skipAd:Di,setLiveWaitingStart:so,setLiveWaitingRecover:Qo,setLiveWaitingRecord:_o,getDebugTextData:dr,getTraceTextData:qr,getDebugPanelData:Ur,getVideoElement:zr,seekTime:(b,A,re)=>ln(b,A,re),clearDelayedBufferingCheckTimeout:Nt,seekEpisodeStartTime:jn,seekToPercent:Un,getNextEpisode:Kr,seekToNextEpisode:xl,getPrevEpisode:fs,seekToPrevEpisode:xr,startLogging:jt,stopLogging:Ht,startCameraManualRotation:Ke,stopCameraManualRotation:Ze,moveCameraFocusPX:Ct,holdCamera:pe,releaseCamera:Gt,getVideoEpisodes:Zo,getPreviewThumbsData:jl,downloadVideo:Wi,addLanguage:fa,setLanguage:Je,nextMovie:dt,videoRotate:Yl,correctSeekTimeToInteractive:pr,replayInteractive:v,setLooped:_n,reportProblem:hn,setAutoplayNextEnabled:An},external:{firstStart:b=>Io(b,!0),play:()=>Kt(!0),pause:()=>mr(!0),stop:()=>Ln(!0),seekTime:b=>no(b),seekEpisodeStartTime:b=>Yn(b),setPlaybackRate:b=>bn(b),setAutoQualityLimits:b=>Gn(b),setMuted:b=>Pn(b,!0),setVolume:b=>In(b,b,!0),returnFocusToEpisodes:wn,updateAdditionalSettingsItem:Wo,addAdditionalSettingsItem:Ko,removeAdditionalSettingsItem:xo,updateAdditionalContextItem:Go,addAdditionalContextItem:Yo,removeAdditionalContextItem:Q,updateAdditionalButton:qo,addAdditionalButton:Uo,removeAdditionalButton:zo}},callbacks:l,setUiCallbacks:b=>{ot={...b}},getAdmanWrapper:()=>le,getLogger:()=>J,destroy:Vn};return kt};var hl=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],s=i.getBoundingClientRect();for(let[l,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(l)){let c=(a=t[l])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(l))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-s.left):0,right:m?Math.round(c.right-s.left):0,top:m?Math.round(c.top-s.top):0,bottom:m?Math.round(c.bottom-s.top):0,isDisplayed:m})}};var gl=async(i,e,t)=>{await Xn(),e&&t&&(t.focus(),i.set(!1))};function tv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function iv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Nu=class extends N{constructor(e){super(),O(this,e,iv,tv,B,{})}},wm=Nu;function nv(i){let e,t;return e=new wm({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function ov(i){let e,t,n;function o(s){i[8](s)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[nv]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&8&&(l.className=s[3]?"opened":""),a&1&&(l.disabled=s[0]),a&2&&(l.ariaLabel=s[1]),a&8&&(l.ariaExpanded=s[3]),a&16384&&(l.$$scope={dirty:a,ctx:s}),!t&&a&4&&(t=!0,l.ref=s[2],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function rv(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=nt(),a=s.ui.contextMenu.visible$;D(i,a,F=>t(3,n=F));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,C=F=>{let T=Tr(F),v=jd(h);c.set(v),l.set(T),a.set(!n)},g=()=>{u.set(!0)},S=()=>{u.set(!1)};function k(F){h=F,t(2,h)}return i.$$set=F=>{"disabled"in F&&t(0,o=F.disabled),"ariaLabel"in F&&t(1,r=F.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,C,g,S,k]}var Du=class extends N{constructor(e){super(),O(this,e,rv,ov,B,{disabled:0,ariaLabel:1})}},km=Du;function sv(i){be(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function lv(i){let e,t;return e=new el({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function av(i){let e,t,n,o,r,s,a,l,u,c;function m(C){i[22](C)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[lv]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Qi({props:h}),ve.push(()=>ze(t,"ref",m)),t.$on("click",i[14]),{c(){e=I("div"),R(t.$$.fragment),o=Y(),r=I("div"),s=Y(),a=I("div"),f(r,"class","ref-block svelte-17imlp9"),G(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),G(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),G(e,"mobile",i[2]),G(e,"fullscreen",i[6]),G(e,"invisible",i[1])},m(C,g){w(C,e,g),L(t,e,null),_(e,o),_(e,r),i[23](r),_(e,s),_(e,a),i[24](a),l=!0,u||(c=[ke(e,"mousemove",gt(i[21])),ke(e,"mouseleave",i[15])],u=!0)},p(C,g){let S={};g[0]&32&&(S.tooltipActive=C[5]),g[1]&1&&(S.$$scope={dirty:g,ctx:C}),!n&&g[0]&1&&(n=!0,S.ref=C[0],Ue(()=>n=!1)),t.$set(S),(!l||g[0]&2)&&G(r,"hidden",C[1]),(!l||g[0]&16)&&G(a,"paused",C[4]),(!l||g[0]&4)&&G(e,"mobile",C[2]),(!l||g[0]&64)&&G(e,"fullscreen",C[6]),(!l||g[0]&2)&&G(e,"invisible",C[1])},i(C){l||(d(t.$$.fragment,C),l=!0)},o(C){p(t.$$.fragment,C),l=!1},d(C){C&&y(e),V(t),i[23](null),i[24](null),u=!1,ct(c)}}}function uv(i,e,t){var J;let n,o,r,s,a,l,{ref:u=void 0}=e,c,m=nt(),h=Bn(),{interactiveControlsOpacity$:C}=h;D(i,C,le=>t(18,o=le));let g=m.ui.isMobile;D(i,g,le=>t(2,a=le));let S=m.ui.isFullscreen;D(i,S,le=>t(6,l=le));let k=m.state.isInteractiveTime$;D(i,k,le=>t(19,r=le));let F=h.showInteractiveTimeIndicatorTooltip$;D(i,F,le=>t(17,n=le));let T=m.ui.controlsVisible;D(i,T,le=>t(20,s=le));let v=(J=m.callbacks)==null?void 0:J.onInteractiveTimeIndicatorClick,E,H,U,W=()=>{t(4,U=!0)},ne=()=>{de(),c==null||c.addEventListener("animationiteration",W,{once:!0})},de=()=>{t(4,U=!1),c==null||c.removeEventListener("animationiteration",W)},q=le=>{F.set(le)},X,oe=()=>{H||(F.set(!0),v==null||v())};Zn(()=>{F.clearTimeout(),de()});let K=()=>{F.set(!1)};function ce(le){Rn.call(this,i,le)}function z(le){u=le,t(0,u)}function x(le){ve[le?"unshift":"push"](()=>{u=le,t(0,u)})}function P(le){ve[le?"unshift":"push"](()=>{c=le,t(3,c)})}return i.$$set=le=>{"ref"in le&&t(0,u=le.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,E=!a&&s),i.$$.dirty[0]&851968&&t(1,H=!r||!!o||E),i.$$.dirty[0]&2&&t(4,U=H),i.$$.dirty[0]&131074&&t(5,X=n&&!H),i.$$.dirty[0]&131072&&(n?ne():de())},[u,H,a,c,U,X,l,C,g,S,k,F,T,q,oe,K,E,n,o,r,s,ce,z,x,P]}var Ou=class extends N{constructor(e){super(),O(this,e,uv,av,B,{ref:0},sv,[-1,-1])}},bl=Ou;function cv(i){var a;let e,t,n,o=[(a=i[2])!=null?a:{}];var r=i[1];function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=se(c,o[h]);return u!==void 0&&u&4&&(c=se(c,He(o,[Ao((m=l[2])!=null?m:{})]))),{props:c}}return r&&(e=Bt(r,s(i))),{c(){e&&R(e.$$.fragment),t=Xe()},m(l,u){e&&L(e,l,u),w(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1])){if(e){ae();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ue()}r?(e=Bt(r,s(l,u)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}else if(r){let m=u&4?He(o,[Ao((c=l[2])!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&V(e,l)}}}function fv(i){let e,t,n;function o(s){i[7](s)}let r={disabled:i[5],tooltipContent:i[3],disabledTooltipContent:i[4],className:i[6],$$slots:{default:[cv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Qi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&32&&(l.disabled=s[5]),a&8&&(l.tooltipContent=s[3]),a&16&&(l.disabledTooltipContent=s[4]),a&64&&(l.className=s[6]),a&262&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function dv(i,e,t){let{buttonComponent:n}=e,{buttonComponentProps:o}=e,{tooltipText:r}=e,{disabledTooltipContent:s}=e,{disabled:a=!1}=e,{className:l=void 0}=e,{ref:u}=e;function c(m){u=m,t(0,u)}return i.$$set=m=>{"buttonComponent"in m&&t(1,n=m.buttonComponent),"buttonComponentProps"in m&&t(2,o=m.buttonComponentProps),"tooltipText"in m&&t(3,r=m.tooltipText),"disabledTooltipContent"in m&&t(4,s=m.disabledTooltipContent),"disabled"in m&&t(5,a=m.disabled),"className"in m&&t(6,l=m.className),"ref"in m&&t(0,u=m.ref)},[u,n,o,r,s,a,l,c]}var Fu=class extends N{constructor(e){super(),O(this,e,dv,fv,B,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},Hu=Fu;var ko={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function pv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function _v(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qu=class extends N{constructor(e){super(),O(this,e,_v,pv,B,{})}},Cm=qu;function hv(i){let e,t;return e=new Cm({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function gv(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=s=>{"isPrev"in s&&t(0,n=s.isPrev),"isMobile"in s&&t(2,o=s.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0))},[n,r,o]}var Uu=class extends N{constructor(e){super(),O(this,e,gv,hv,B,{isPrev:0,isMobile:2})}},Sm=Uu;function bv(i){be(i,"svelte-xtk2k4",".icon-background-mobile.svelte-xtk2k4{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color)}")}function Tm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function vv(i){let e,t,n,o=i[1]&&Tm(i);return t=new Sm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=Y(),R(t.$$.fragment)},m(r,s){o&&o.m(r,s),w(r,e,s),L(t,r,s),n=!0},p(r,s){r[1]?o||(o=Tm(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let a={};s&2&&(a.isMobile=r[1]),s&8&&(a.isPrev=r[3]==="prev"),t.$set(a)},i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&y(e),o&&o.d(r),V(t,r)}}}function yv(i){let e,t,n;function o(s){i[6](s)}let r={className:`btn-${i[1]?"m":"d"}--${i[3]}`,testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[vv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=`btn-${s[1]?"m":"d"}--${s[3]}`),a&8&&(l.testId="btn-"+s[3]),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&138&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function wv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:s}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,s=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,r,s,a,l,u]}var zu=class extends N{constructor(e){super(),O(this,e,wv,yv,B,{ref:0,isMobile:1,disabled:2,type:3,click:4},bv)}},Nr=zu;function kv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function Cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Wu=class extends N{constructor(e){super(),O(this,e,Cv,kv,B,{})}},vl=Wu;import{noop as Sv}from"@vkontakte/videoplayer-shared";function Tv(i){be(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Im(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function Iv(i){let e,t,n,o,r=i[1]&&Im(i);return n=new vl({}),{c(){r&&r.c(),e=Y(),t=I("div"),R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),G(t,"mobile",i[1])},m(s,a){r&&r.m(s,a),w(s,e,a),w(s,t,a),L(n,t,null),o=!0},p(s,a){s[1]?r||(r=Im(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&G(t,"mobile",s[1])},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){p(n.$$.fragment,s),o=!1},d(s){s&&(y(e),y(t)),r&&r.d(s),V(n)}}}function Pv(i){let e,t,n;function o(s){i[5](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:j("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:ao.KeyK,$$slots:{default:[Iv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&4&&(l.disabled=s[2]),a&16&&(l.click=s[4]),a&66&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Ev(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=Sv}=e;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,s=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,s,a,l]}var Ku=class extends N{constructor(e){super(),O(this,e,Ev,Pv,B,{ref:0,isMobile:1,disabled:2,className:3,click:4},Tv)}},is=Ku;function Av(i){let e,t;return{c(){e=M("svg"),t=M("path"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","play-icon")},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&y(e)}}}function Mv(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var xu=class extends N{constructor(e){super(),O(this,e,Mv,Av,B,{width:0,height:1,viewBox:2,fill:3})}},Oo=xu;function Lv(i){let e,t;return{c(){e=M("svg"),t=M("path"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","pause-icon")},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:me,o:me,d(n){n&&y(e)}}}function Vv(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var ju=class extends N{constructor(e){super(),O(this,e,Vv,Lv,B,{width:0,height:1,viewBox:2,fill:3})}},Dr=ju;import{noop as Rv}from"@vkontakte/videoplayer-shared";function Bv(i){be(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Pm(i){let e;return{c(){e=I("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function Nv(i){let e,t,n,o,r=i[1]&&Pm(i);var s=i[8];function a(l,u){return{}}return s&&(n=Bt(s,a(i))),{c(){r&&r.c(),e=Y(),t=I("div"),n&&R(n.$$.fragment),f(t,"class","svelte-1ot3duq"),G(t,"mobile",i[1])},m(l,u){r&&r.m(l,u),w(l,e,u),w(l,t,u),n&&L(n,t,null),o=!0},p(l,u){if(l[1]?r||(r=Pm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&s!==(s=l[8])){if(n){ae();let c=n;p(c.$$.fragment,1,0,()=>{V(c,1)}),ue()}s?(n=Bt(s,a(l,u)),R(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&G(t,"mobile",l[1])},i(l){o||(n&&d(n.$$.fragment,l),o=!0)},o(l){n&&p(n.$$.fragment,l),o=!1},d(l){l&&(y(e),y(t)),r&&r.d(l),n&&V(n)}}}function Dv(i){let e,t,n;function o(s){i[13](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:ao.KeyK,$$slots:{default:[Nv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&112&&(l.click=s[5]?s[6]:s[4]),a&4&&(l.disabled=s[2]),a&128&&(l.ariaLabel=s[7]),a&33026&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Ov(i,e,t){let n,o,{fakeIsPlaying$:r}=Bn();D(i,r,T=>t(12,o=T));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=Rv}=e,{toggle:h}=r,C,g,S,k;function F(T){s=T,t(0,s)}return i.$$set=T=>{"ref"in T&&t(0,s=T.ref),"isMobile"in T&&t(1,a=T.isMobile),"isPlaying"in T&&t(10,l=T.isPlaying),"disabled"in T&&t(2,u=T.disabled),"className"in T&&t(3,c=T.className),"click"in T&&t(4,m=T.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,S=g?o:l),i.$$.dirty&2048&&t(7,k=S?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty&2048&&t(8,n=S?Dr:Oo)},t(6,C=h),[s,a,u,c,m,g,C,k,n,r,l,S,o,F]}var Gu=class extends N{constructor(e){super(),O(this,e,Ov,Dv,B,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Bv)}},ns=Gu;function Fv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function Hv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Yu=class extends N{constructor(e){super(),O(this,e,Hv,Fv,B,{})}},Em=Yu;function qv(i){let e,t;return e=new Em({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Uv(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[qv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function zv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var Qu=class extends N{constructor(e){super(),O(this,e,zv,Uv,B,{ref:0,hidden:1,disabled:2,click:3})}},yl=Qu;function Wv(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),we(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function Kv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Zu=class extends N{constructor(e){super(),O(this,e,Kv,Wv,B,{})}},Am=Zu;function xv(i){let e,t;return e=new Am({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function jv(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[xv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Gv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var Xu=class extends N{constructor(e){super(),O(this,e,Gv,jv,B,{ref:0,hidden:1,disabled:2,click:3})}},wl=Xu;function Yv(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=se(l,a[u]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),we(e,l)},m(u,c){w(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),we(e,l=He(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&y(e),s&&s.d(u)}}}function Qv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ju=class extends N{constructor(e){super(),O(this,e,Qv,Yv,B,{})}},Mm=Ju;function Zv(i){be(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function Xv(i){let e,t;return e=new Mm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Jv(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var $u=class extends N{constructor(e){super(),O(this,e,Jv,Xv,B,{isOpened:0},Zv)}},Lm=$u;function $v(i){let e,t;return e=new Lm({props:{isOpened:!!i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=!!n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function e3(i){let e,t,n;function o(s){i[6](s)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[$v]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&136&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function t3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:s=!1}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,s=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,r,s,a,l,u]}var ec=class extends N{constructor(e){super(),O(this,e,t3,e3,B,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},kl=ec;import{PlaybackState as tc}from"@vkontakte/videoplayer-core";function i3(i){let e,t;return e=new Os({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function n3(i){let e,t;return e=new pt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===tc.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[i3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===tc.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function o3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=nt(),l=a.state.playbackState$;D(i,l,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isLiveActive"in h&&t(1,r=h.isLiveActive),"ariaLabel"in h&&t(2,s=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===tc.PAUSED&&c()})},[o,r,s,n,m,l]}var ic=class extends N{constructor(e){super(),O(this,e,o3,n3,B,{isMobile:0,isLiveActive:1,ariaLabel:2})}},Cl=ic;import{noop as Vm}from"@vkontakte/videoplayer-shared";function r3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),ho(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[2]),n=!0)},p(r,s){s&1&&!ho(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function s3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function l3(i){let e;function t(r,s){return r[1]?s3:r3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),w(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&y(e),o.d(r)}}}function a3(i,e,t){let n,{icon:o}=e,r=()=>{t(1,n=!0)};return i.$$set=s=>{"icon"in s&&t(0,o=s.icon)},t(1,n=!1),[o,n,r]}var nc=class extends N{constructor(e){super(),O(this,e,a3,l3,B,{icon:0})}},Or=nc;function u3(i){let e,t;return e=new Or({props:{icon:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.icon=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function c3(i){var n;let e,t;return e=new pt({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:(n=i[2])!=null?n:i[1],$$slots:{default:[u3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r&256&&(s.className=o[8]),r&16&&(s.ariaLabel=o[4]),r&128&&(s.click=o[7]),r&512&&(s.disabled=o[9]),r&6&&(s.testId=(a=o[2])!=null?a:o[1]),r&8200&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function f3(i){let e,t,n;function o(s){i[12](s)}let r={disabled:i[9],tooltipContent:i[5],disabledTooltipContent:i[6],width:40,$$slots:{default:[c3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Qi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&512&&(l.disabled=s[9]),a&32&&(l.tooltipContent=s[5]),a&64&&(l.disabledTooltipContent=s[6]),a&9118&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function d3(i,e,t){let n,o,r,{id:s}=e,{testId:a}=e,{icon:l}=e,{ariaLabel:u}=e,{tooltipText:c}=e,{disabledTooltipContent:m}=e,{disabled:h=!1}=e,{onClick:C=Vm}=e,{ref:g}=e;function S(k){g=k,t(0,g)}return i.$$set=k=>{"id"in k&&t(1,s=k.id),"testId"in k&&t(2,a=k.testId),"icon"in k&&t(3,l=k.icon),"ariaLabel"in k&&t(4,u=k.ariaLabel),"tooltipText"in k&&t(5,c=k.tooltipText),"disabledTooltipContent"in k&&t(6,m=k.disabledTooltipContent),"disabled"in k&&t(10,h=k.disabled),"onClick"in k&&t(7,C=k.onClick),"ref"in k&&t(0,g=k.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=C===Vm),i.$$.dirty&3072&&t(9,o=n||h),i.$$.dirty&2048&&t(8,r=n?"btn-full-opacity":"")},[g,s,a,l,u,c,m,C,r,o,h,n,S]}var oc=class extends N{constructor(e){super(),O(this,e,d3,f3,B,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},Rm=oc;var Bm=i=>!!i.buttonComponent;var Fo={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function h3(i){be(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}")}function Dm(i,e,t){let n=i.slice();return n[203]=e[t],n[204]=e,n[205]=t,n}function Om(i,e,t){let n=i.slice();return n[203]=e[t],n[206]=e,n[207]=t,n}function Fm(i){let e,t,n;function o(s){i[167](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Hu({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&2048&&(l.buttonComponent=i[203].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[203].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&2048&&(l.disabled=i[203].disabled),a[0]&2048&&(l.className=i[203].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Hm(i){let e,t,n;function o(s){i[168](s)}let r={isMobile:!1,showDuration:i[15],position:i[5]?i[33]:i[34],duration:i[5]?i[35]:i[36]};return i[10].time!==void 0&&(r.ref=i[10].time),e=new $s({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&32768&&(l.showDuration=s[15]),a[0]&32|a[1]&12&&(l.position=s[5]?s[33]:s[34]),a[0]&32|a[1]&48&&(l.duration=s[5]?s[35]:s[36]),!t&&a[0]&1024&&(t=!0,l.ref=s[10].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function qm(i){let e,t;return e=new ll({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&8&&(r.position=n[34]),o[1]&32&&(r.duration=n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function g3(i){let e,t,n=i[8]&&qm(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=qm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function b3(i){let e,t,n;function o(s){i[172](s,i[203])}let r={id:i[203].id,testId:i[203].testId,icon:i[203].icon,ariaLabel:i[203].ariaLabel,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:!!i[203].disabled,onClick:i[203].onClick};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Rm({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.id=i[203].id),a[0]&4096&&(l.testId=i[203].testId),a[0]&4096&&(l.icon=i[203].icon),a[0]&4096&&(l.ariaLabel=i[203].ariaLabel),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[203].disabled),a[0]&4096&&(l.onClick=i[203].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function v3(i){let e,t,n;function o(s){i[171](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Hu({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.buttonComponent=i[203].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=i[203].disabled),a[0]&4096&&(l.className=i[203].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].id],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Um(i){let e,t,n,o,r,s=[v3,b3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!Bm(u[203])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=Xe()},m(u,c){a[t].m(u,c),w(u,o,c),r=!0},p(u,c){let m=t;t=l(u,c),t===m?a[t].p(u,c):(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(o.parentNode,o))},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&y(o),a[t].d(u)}}}function y3(i){let e,t,n;function o(s){i[175](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new bl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&1024&&(t=!0,l.ref=s[10].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function w3(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T;function v(z){i[166](z)}let E={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(E.ref=i[10].timeline),t=new sl({props:E}),ve.push(()=>ze(t,"ref",v));let H=bt(i[11]),U=[];for(let z=0;z<H.length;z+=1)U[z]=Fm(Om(i,H,z));let W=z=>p(U[z],1,1,()=>{U[z]=null}),ne=i[7]&&Hm(i);function de(z){i[169](z)}let q={className:"w-max",disabled:!i[8],tooltipContent:j("tooltip_episodes"),$$slots:{default:[g3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(q.ref=i[10].episodes),u=new Qi({props:q}),ve.push(()=>ze(u,"ref",de));let X=bt(i[12]),oe=[];for(let z=0;z<X.length;z+=1)oe[z]=Um(Dm(i,X,z));let K=z=>p(oe[z],1,1,()=>{oe[z]=null}),ce=i[67]&&y3(i);return{c(){e=I("div"),R(t.$$.fragment),o=Y(),r=I("div"),s=I("div");for(let z=0;z<U.length;z+=1)U[z].c();a=Y(),ne&&ne.c(),l=Y(),R(u.$$.fragment),h=Y(),C=I("div");for(let z=0;z<oe.length;z+=1)oe[z].c();g=Y(),ce&&ce.c(),S=Xe(),f(s,"class","controls-left svelte-ips4nw"),f(C,"class","controls-right svelte-ips4nw"),f(r,"class","controls svelte-ips4nw"),f(e,"class","wrapper-bottom svelte-ips4nw"),G(e,"hidden",i[2]),G(e,"controls-hidden",!i[4]),G(e,"no-smooth",i[3])},m(z,x){w(z,e,x),L(t,e,null),_(e,o),_(e,r),_(r,s);for(let P=0;P<U.length;P+=1)U[P]&&U[P].m(s,null);_(s,a),ne&&ne.m(s,null),_(s,l),L(u,s,null),_(r,h),_(r,C);for(let P=0;P<oe.length;P+=1)oe[P]&&oe[P].m(C,null);i[173](r),i[174](e),w(z,g,x),ce&&ce.m(z,x),w(z,S,x),k=!0,F||(T=[_r(m=Mr.call(null,s)),ke(s,"fd:resize",i[170])],F=!0)},p(z,x){let P={};if(x[0]&16384&&(P.isHidden=!z[14]),x[0]&32&&(P.isAds=z[5]),x[0]&64&&(P.canRewindLive=z[6]),x[0]&8192&&(P.isRewindableLive=z[13]),!n&&x[0]&1024&&(n=!0,P.ref=z[10].timeline,Ue(()=>n=!1)),t.$set(P),x[0]&3072){H=bt(z[11]);let le;for(le=0;le<H.length;le+=1){let Ae=Om(z,H,le);U[le]?(U[le].p(Ae,x),d(U[le],1)):(U[le]=Fm(Ae),U[le].c(),d(U[le],1),U[le].m(s,a))}for(ae(),le=H.length;le<U.length;le+=1)W(le);ue()}z[7]?ne?(ne.p(z,x),x[0]&128&&d(ne,1)):(ne=Hm(z),ne.c(),d(ne,1),ne.m(s,l)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue());let J={};if(x[0]&256&&(J.disabled=!z[8]),x[0]&256|x[1]&40|x[6]&4194304&&(J.$$scope={dirty:x,ctx:z}),!c&&x[0]&1024&&(c=!0,J.ref=z[10].episodes,Ue(()=>c=!1)),u.$set(J),x[0]&5120){X=bt(z[12]);let le;for(le=0;le<X.length;le+=1){let Ae=Dm(z,X,le);oe[le]?(oe[le].p(Ae,x),d(oe[le],1)):(oe[le]=Um(Ae),oe[le].c(),d(oe[le],1),oe[le].m(C,null))}for(ae(),le=X.length;le<oe.length;le+=1)K(le);ue()}(!k||x[0]&4)&&G(e,"hidden",z[2]),(!k||x[0]&16)&&G(e,"controls-hidden",!z[4]),(!k||x[0]&8)&&G(e,"no-smooth",z[3]),z[67]&&ce.p(z,x)},i(z){if(!k){d(t.$$.fragment,z);for(let x=0;x<H.length;x+=1)d(U[x]);d(ne),d(u.$$.fragment,z);for(let x=0;x<X.length;x+=1)d(oe[x]);d(ce),k=!0}},o(z){p(t.$$.fragment,z),U=U.filter(Boolean);for(let x=0;x<U.length;x+=1)p(U[x]);p(ne),p(u.$$.fragment,z),oe=oe.filter(Boolean);for(let x=0;x<oe.length;x+=1)p(oe[x]);p(ce),k=!1},d(z){z&&(y(e),y(g),y(S)),V(t),oi(U,z),ne&&ne.d(),V(u),oi(oe,z),i[173](null),i[174](null),ce&&ce.d(z),F=!1,ct(T)}}}function k3(i,e,t){var mt,Mt;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,ot,Pe=me,We=()=>(Pe(),Pe=Zt(q,Z=>t(137,ot=Z)),q),$,_e=me,Ce=()=>(_e(),_e=Zt(de,Z=>t(138,$=Z)),de),xe,rt=me,lt=()=>(rt(),rt=Zt(ne,Z=>t(139,xe=Z)),ne),it,Je=me,fe=()=>(Je(),Je=Zt(W,Z=>t(140,it=Z)),W),Se,$e=me,Ne=()=>($e(),$e=Zt(U,Z=>t(141,Se=Z)),U),et,Fe=me,ut=()=>(Fe(),Fe=Zt(H,Z=>t(142,et=Z)),H),ft,he=me,dt=()=>(he(),he=Zt(E,Z=>t(143,ft=Z)),E),vt,yt=me,Qe=()=>(yt(),yt=Zt(v,Z=>t(144,vt=Z)),v),Tt,At=me,ii=()=>(At(),At=Zt(T,Z=>t(145,Tt=Z)),T),Ot,Ft=me,jt=()=>(Ft(),Ft=Zt(F,Z=>t(146,Ot=Z)),F),Ht,Ke=me,Ze=()=>(Ke(),Ke=Zt(k,Z=>t(147,Ht=Z)),k),Ct,pe=me,Gt=()=>(pe(),pe=Zt(S,Z=>t(148,Ct=Z)),S),It,$t=me,Rt=()=>($t(),$t=Zt(g,Z=>t(149,It=Z)),g),Ut,ni=me,Pt=()=>(ni(),ni=Zt(C,Z=>t(150,Ut=Z)),C),ei,Yt=me,un=()=>(Yt(),Yt=Zt(h,Z=>t(151,ei=Z)),h),Lt,Oi=me,Xi=()=>(Oi(),Oi=Zt(m,Z=>t(152,Lt=Z)),m),pi,bi=me,De=()=>(bi(),bi=Zt(c,Z=>t(153,pi=Z)),c),tt,wt,_i,vi,Ji,Ii,cn,ci,Fi,Hi,Nt,yi,si,qt,Cn,hi,fn;i.$$.on_destroy.push(()=>Pe()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>rt()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>yt()),i.$$.on_destroy.push(()=>At()),i.$$.on_destroy.push(()=>Ft()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>pe()),i.$$.on_destroy.push(()=>$t()),i.$$.on_destroy.push(()=>ni()),i.$$.on_destroy.push(()=>Yt()),i.$$.on_destroy.push(()=>Oi()),i.$$.on_destroy.push(()=>bi());let{bottomHidden:Sn}=e,{bottomNoSmooth:$i}=e,{showControls:dn}=e,{playerControlsWrapperRef:wi=void 0}=e,{playerControlsRef:en=void 0}=e,{isAds:zt=!1}=e,{canRewindLive:On}=e,{logoClickable:qi}=e,{logoHidden:Ui}=e,{logoTargetUrl:zi=""}=e,{showNextPrevButtons:gi}=e,{nextButtonActive:Pi}=e,{prevButtonActive:tn}=e,{isOneVideoPlaylist:nn=!1}=e,{customFullscreenSupported:ki=!0}=e,{playNextVideo:Ci}=e,{playPrevVideo:li}=e,{repeatPlaylist:Wt}=e,{toggleFullscreen:Dt}=e,{seekToInteractive:Ei}=e,{playPrevChapter:Ai}=e,{fakeIsPlaying$:on}=Bn();D(i,on,Z=>t(130,J=Z));let at=nt(),Mi=Bn(),ai=xt(),Li=at.actions.internal.toggleMuted,Vi=at.actions.internal.togglePlay,je=at.actions.internal.pause,Fn=at.actions.internal.toggleSubtitle,rn=(mt=at.callbacks)==null?void 0:mt.onAudioDoesNotExistHint,Tn=(Mt=at.callbacks)==null?void 0:Mt.onAudioDisabledHint,mn=at.state.duration$;D(i,mn,Z=>t(36,fn=Z));let Wi=at.state.positionWithScrubbing$;D(i,Wi,Z=>t(34,Cn=Z));let Ki=at.state.playbackState$;D(i,Ki,Z=>t(127,z=Z));let xi=at.state.isAudioAvailable$;D(i,xi,Z=>t(176,le=Z));let pn=at.state.isAudioDisabled,fi=at.state.isEnded$;D(i,fi,Z=>t(162,Hi=Z));let In=at.state.isLive$;D(i,In,Z=>t(156,vi=Z));let Pn=at.state.isActiveLive$;D(i,Pn,Z=>t(155,wt=Z));let En=at.state.isRewindableLive$;D(i,En,Z=>t(13,_i=Z));let _n=at.ui.isPictureInPictureActive$;D(i,_n,Z=>t(158,Ii=Z));let hn=at.ui.pictureInPictureType$;D(i,hn,Z=>t(157,Ji=Z));let An=at.ui.settingsMenuVisible;D(i,An,Z=>t(126,ce=Z));let gn=at.ui.settingsMenuOpenedByKeyboard;D(i,gn,Z=>t(132,ee=Z));let Hn=at.ui.controls,Ri=at.actions.internal.getVideoEpisodes(),sn=at.state.chromecastState$;D(i,sn,Z=>t(124,oe=Z));let ti=at.state.availableSubtitlesList$;D(i,ti,Z=>t(161,Fi=Z));let to=at.state.currentSubtitle$;D(i,to,Z=>t(163,Nt=Z));let io=Hn.disabledControls$;D(i,io,Z=>t(165,si=Z));let qn=at.ui.contextMenu.visible$;D(i,qn,Z=>t(154,tt=Z));let ui=at.ui.contextMenu.showContextMenuBtn$;D(i,ui,Z=>t(159,cn=Z));let ln=at.ui.contextMenu.openedByBtnKeyboard$;D(i,ln,Z=>t(160,ci=Z));let jn=at.ui.startedByKeyboard$;D(i,jn,Z=>t(131,Ae=Z));let Un=at.ads.duration;D(i,Un,Z=>t(35,hi=Z));let no=at.ads.position;D(i,no,Z=>t(33,qt=Z));let Gn=at.ads.playbackState;D(i,Gn,Z=>t(164,yi=Z));let Yn=at.ui.isFullscreen;D(i,Yn,Z=>t(125,K=Z));let bn=at.ui.playerSize;D(i,bn,Z=>t(135,Te=Z));let zn=at.ui.currentGridType$;D(i,zn,Z=>t(136,Ie=Z));let vn=at.ui.additionalDesktopControlPanelRightButtons$;D(i,vn,Z=>t(123,X=Z));let oo=at.actions.internal.getVideoElement,ie=at.actions.internal.replayInteractive,ht=at.state.isInteractive,ji=at.state.isInteractiveTime$;D(i,ji,Z=>t(134,Ee=Z));let Bi=at.state.showInteractiveGraph,te=at.state.showSeekToInteractive,Ni=at.state.showPlayPrevChapter,Ho=at.state.showInteractiveTimeIndicator,Co=at.state.playPrevChapterDisabledTooltip,So=Mi.seekToInteractiveDisabledTooltip$;D(i,So,Z=>t(129,P=Z));let fo=Mi.graphIsOpened$;D(i,fo,Z=>t(128,x=Z));let mo=ai.features.interactiveResponsiveUi,fr=()=>at.actions.internal.toggleChromecast(),Gi,po,Qn,an,To,qo,Uo,zo,Wo,Ko,xo,Mn,jo,Go,Yo,Q,Et,Yi,Di,ro,yn,so,Qo,_o="",dr=(Z,_t)=>{if(!Z){t(105,_o=j("tooltip_live"));return}_t===rc.PAUSED&&t(105,_o=j("tooltip_play"))},qr,Ur,zr,Wr,mr,Kt={},Ln,Io,Zo,Kr,xl=_3(hl,260),fs,xr=Oe();D(i,xr,Z=>t(133,ge=Z));let jl;function Gl(){Ro({isAudioDisabled:pn,audioDisabledHintCallback:Tn,isAudioAvailable:le,audioIsNotExistHintCallback:rn})&&Li()}let Yl=ht?ie:nn?Vi:Wt,Po,jr,pr,wn=[],Vn=[];function kt(Z){i.$$.not_equal(Kt.timeline,Z)&&(Kt.timeline=Z,t(10,Kt))}function ds(Z,_t){i.$$.not_equal(Kt[_t.id],Z)&&(Kt[_t.id]=Z,t(10,Kt))}function ms(Z){i.$$.not_equal(Kt.time,Z)&&(Kt.time=Z,t(10,Kt))}function ps(Z){i.$$.not_equal(Kt.episodes,Z)&&(Kt.episodes=Z,t(10,Kt))}let _s=Z=>{t(9,mr=Z.target.clientWidth)};function b(Z,_t){i.$$.not_equal(Kt[_t.id],Z)&&(Kt[_t.id]=Z,t(10,Kt))}function A(Z,_t){i.$$.not_equal(Kt[_t.id],Z)&&(Kt[_t.id]=Z,t(10,Kt))}function re(Z){ve[Z?"unshift":"push"](()=>{en=Z,t(1,en)})}function Me(Z){ve[Z?"unshift":"push"](()=>{wi=Z,t(0,wi)})}function st(Z){i.$$.not_equal(Kt.interactiveTimeIndicator,Z)&&(Kt.interactiveTimeIndicator=Z,t(10,Kt))}return i.$$set=Z=>{"bottomHidden"in Z&&t(2,Sn=Z.bottomHidden),"bottomNoSmooth"in Z&&t(3,$i=Z.bottomNoSmooth),"showControls"in Z&&t(4,dn=Z.showControls),"playerControlsWrapperRef"in Z&&t(0,wi=Z.playerControlsWrapperRef),"playerControlsRef"in Z&&t(1,en=Z.playerControlsRef),"isAds"in Z&&t(5,zt=Z.isAds),"canRewindLive"in Z&&t(6,On=Z.canRewindLive),"logoClickable"in Z&&t(71,qi=Z.logoClickable),"logoHidden"in Z&&t(72,Ui=Z.logoHidden),"logoTargetUrl"in Z&&t(73,zi=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(74,gi=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(75,Pi=Z.nextButtonActive),"prevButtonActive"in Z&&t(76,tn=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&t(77,nn=Z.isOneVideoPlaylist),"customFullscreenSupported"in Z&&t(78,ki=Z.customFullscreenSupported),"playNextVideo"in Z&&t(79,Ci=Z.playNextVideo),"playPrevVideo"in Z&&t(80,li=Z.playPrevVideo),"repeatPlaylist"in Z&&t(81,Wt=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(82,Dt=Z.toggleFullscreen),"seekToInteractive"in Z&&t(83,Ei=Z.seekToInteractive),"playPrevChapter"in Z&&t(84,Ai=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&1024&&t(121,n=si.has("EPISODE_BUTTON")),i.$$.dirty[5]&1024&&t(116,o=si.has("GRAPH_BUTTON")),i.$$.dirty[5]&1024&&t(117,r=si.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&1024&&t(119,s=si.has("PLAY_BUTTON")),i.$$.dirty[5]&1024&&t(120,a=si.has("REPLAY_BUTTON")),i.$$.dirty[5]&1024&&t(118,l=si.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[4]&8|i.$$.dirty[5]&512&&t(85,Gi=zt?yi==="playing":z===rc.PLAYING),i.$$.dirty[5]&256&&t(86,po=Nt.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(122,u=Hi&&!zt||ht),i.$$.dirty[3]&536870912|i.$$.dirty[4]&4096&&t(87,Qn=mo?u&&mi(Ie,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(88,an=!Hi||ht||zt),i.$$.dirty[4]&4096&&t(89,To=mi(Ie,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&4096&&t(90,qo=gi&&mi(Ie,"m")&&!zt&&Pi),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&4096&&t(91,Uo=gi&&mi(Ie,"m")&&!zt&&tn),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(92,zo=!zt&&!!vi),i.$$.dirty[4]&4097|i.$$.dirty[5]&12&&t(93,Wo=oe!==Nm.NOT_AVAILABLE&&!(Ii&&Ji===1)&&mi(Ie,"m")&&!ht),i.$$.dirty[4]&4096|i.$$.dirty[5]&64&&t(94,Ko=Fi.length>0&&mi(Ie,"m")),i.$$.dirty[5]&48&&t(95,xo=ci||cn),i.$$.dirty[0]&32|i.$$.dirty[4]&4096&&t(96,Mn=mi(Ie,"s")&&!zt),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(97,jo=!Ui&&!zt),i.$$.dirty[2]&66560|i.$$.dirty[4]&4096|i.$$.dirty[5]&12&&t(98,Go=ai.features.fullscreen&&(Ui||mi(Ie,mo?"xs":"s"))&&!(Ii&&Ji===1)&&(ht?ki:!0)),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(7,Yo=(!vi||zt)&&!(ai.features.interactiveHideTime&&ht)),i.$$.dirty[4]&2048&&t(14,Q=Te.width>100),i.$$.dirty[4]&4096&&t(99,Et=Bi&&mi(Ie,"m")),i.$$.dirty[4]&4096&&t(100,Yi=mo?te&&mi(Ie,"s"):te),i.$$.dirty[4]&4096&&t(101,Di=mo?Ni&&mi(Ie,"s"):Ni),i.$$.dirty[0]&32|i.$$.dirty[2]&134217728|i.$$.dirty[3]&268435456|i.$$.dirty[5]&2&&t(8,ro=!zt&&!vi&&!!(Ri!=null&&Ri.length)&&To&&!n),i.$$.dirty[0]&8192|i.$$.dirty[5]&1&&t(102,yn=!_i||wt),i.$$.dirty[4]&16&&t(103,so=x?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off")),i.$$.dirty[4]&1073741824&&t(104,Qo=tt?j("aria_label_context_menu_close"):j("aria_label_context_menu_open")),i.$$.dirty[3]&512|i.$$.dirty[4]&8&&dr(yn,z),i.$$.dirty[2]&16777216&&t(107,Ur=po?j("tooltip_subtitles_on"):j("tooltip_subtitles_off")),i.$$.dirty[4]&2&&t(108,zr=K?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off")),i.$$.dirty[4]&1&&t(109,Wr=oe===Nm.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off")),i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1073733632&&t(110,Ln={prevButton:pi?pi.right-pi.left:0,replayButton:Lt?Lt.right-Lt.left:0,playButton:ei?ei.right-ei.left:0,nextButton:Ut?Ut.right-Ut.left:0,playPrevChapterButton:It?It.right-It.left:0,seekToInteractiveButton:Ct?Ct.right-Ct.left:0,interactiveGraphButton:Ht?Ht.right-Ht.left:0,liveButton:Ot?Ot.right-Ot.left:0,time:Tt?Tt.right-Tt.left:0,episodes:vt?vt.right-vt.left:0,vkLogo:ft?ft.right-ft.left:0,volume:et?et.right-et.left:0,subtitles:Se?Se.right-Se.left:0,settings:it?it.right-it.left:0,context:xe?xe.right-xe.left:0,fullscreen:$?$.right-$.left:0,chromecast:ot?ot.right-ot.left:0,additionalButtons:X.length?X.reduce(Z=>[...Z,40],[]):[]}),i.$$.dirty[3]&393216&&(!Io||Io<Ln.time)&&t(111,Io=Ln.time),i.$$.dirty[0]&896|i.$$.dirty[3]&393216|i.$$.dirty[4]&4096){let Z=0;ro&&(mi(Ie,"xl")?Z=Ln.time:Z=60);let _t=Ln.prevButton+Ln.playButton+Ln.nextButton+Ln.seekToInteractiveButton+Ln.interactiveGraphButton+Ln.liveButton+Io+Z;t(112,Zo=Yo&&mr>=_t)}i.$$.dirty[3]&524288|i.$$.dirty[4]&4096&&t(15,Kr=Zo&&mi(Ie,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&3072&&xl(oo(),Hn,Kt,dn),i.$$.dirty[4]&516&&ge&&Ir(ge,ce,gn),i.$$.dirty[4]&260&&co(fs,ce,ee),i.$$.dirty[4]&128&&gl(jn,Ae,jl),i.$$.dirty[4]&64&&t(113,Po=J!==null),i.$$.dirty[2]&8388608|i.$$.dirty[3]&1048576|i.$$.dirty[4]&64&&t(114,jr=Po?J:Gi),i.$$.dirty[3]&2097152&&t(115,pr=jr?j("tooltip_pause"):j("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&1994809344|i.$$.dirty[3]&264247232|i.$$.dirty[4]&56&&(t(11,wn=[]),Uo&&wn.push({id:"prevButton",type:"desktop-control-panel-left",weight:ko.prevButton,buttonComponent:Nr,buttonComponentProps:{disabled:!tn,type:"prev",click:li},tooltipText:j("tooltip_previous"),disabled:!tn}),Qn&&wn.push({id:"replayButton",type:"desktop-control-panel-left",weight:ko.replayButton,buttonComponent:is,buttonComponentProps:{disabled:a,click:Yl},tooltipText:j("tooltip_restart"),disabled:a}),an&&wn.push({id:"playButton",type:"desktop-control-panel-left",weight:ko.playButton,buttonComponent:ns,buttonComponentProps:{disabled:s,isPlaying:Gi,click:Vi},tooltipText:pr,disabled:s}),qo&&wn.push({id:"nextButton",type:"desktop-control-panel-left",weight:ko.nextButton,buttonComponent:Nr,buttonComponentProps:{disabled:!Pi,type:"next",click:Ci},tooltipText:j("tooltip_next"),disabled:!Pi}),ht&&(Di&&wn.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ko.playPrevChapterButton,buttonComponent:yl,buttonComponentProps:{disabled:l,click:Ai},tooltipText:j("tooltip_interactive_go_back"),disabledTooltipContent:Co,disabled:l}),Yi&&wn.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ko.seekToInteractiveButton,buttonComponent:wl,buttonComponentProps:{disabled:r,click:Ei},tooltipText:j("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:j(P)}),Et&&wn.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ko.interactiveGraphButton,buttonComponent:kl,buttonComponentProps:{disabled:o,click:fo.toggle,graphIsOpened:x},tooltipText:so})),zo&&wn.push({id:"liveButton",type:"desktop-control-panel-left",weight:ko.liveButton,buttonComponent:Cl,buttonComponentProps:{isLiveActive:yn,ariaLabel:_o},tooltipText:_o,disabled:yn&&z===rc.PLAYING}),t(11,wn=wn.sort(lr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&17828352|i.$$.dirty[3]&1073866815|i.$$.dirty[4]&7&&(t(12,Vn=[]),jo&&Vn.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Fo.vkLogo,buttonComponent:il,buttonComponentProps:{targetUrl:zi,logoClickable:qi,click:je},tooltipText:qr,disabledTooltipContent:"",disabled:!qi}),Vn.push({id:"volume",type:"desktop-control-panel-right",weight:Fo.volume,buttonComponent:$1,buttonComponentProps:{click:Gl}}),Ko&&Vn.push({id:"subtitles",type:"desktop-control-panel-right",weight:Fo.subtitles,buttonComponent:F1,buttonComponentProps:{isSubtitlesEnabled:po,click:Fn},tooltipText:Ur}),Mn&&Vn.push({id:"settings",type:"desktop-control-panel-right",weight:Fo.settings,buttonComponent:$r,buttonComponentProps:{ref$:xr},tooltipText:ce?void 0:j("tooltip_settings_off")}),ai.features.contextMenuButton&&Vn.push({id:"context",type:"desktop-control-panel-right",weight:Fo.context,buttonComponent:km,buttonComponentProps:{click:Dt},className:xo?"":"out-of-view",tooltipText:Qo}),Go&&Vn.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Fo.fullscreen,buttonComponent:tl,buttonComponentProps:{isFullscreen:K,click:Dt},tooltipText:zr}),Wo&&Vn.push({id:"chromecast",type:"desktop-control-panel-right",weight:Fo.chromecast,buttonComponent:nl,buttonComponentProps:{state:oe,click:fr},tooltipText:Wr}),t(12,Vn=[...Vn,...X].sort(lr)))},t(106,qr=ai.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),De(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:C,playPrevChapterButton:g,seekToInteractiveButton:S,interactiveGraphButton:k,liveButton:F,time:T,episodes:v,vkLogo:E,volume:H,subtitles:U,settings:W,context:ne,fullscreen:de,chromecast:q}=Hn,c,Xi(t(31,m)),un(t(30,h)),Pt(t(29,C)),Rt(t(28,g)),Gt(t(27,S)),Ze(t(26,k)),jt(t(25,F)),ii(t(24,T)),Qe(t(23,v)),dt(t(22,E)),ut(t(21,H)),Ne(t(20,U)),fe(t(19,W)),lt(t(18,ne)),Ce(t(17,de)),We(t(16,q)))),[wi,en,Sn,$i,dn,zt,On,Yo,ro,mr,Kt,wn,Vn,_i,Q,Kr,q,de,ne,W,U,H,E,v,T,F,k,S,g,C,h,m,c,qt,Cn,hi,fn,on,mn,Wi,Ki,xi,fi,In,Pn,En,_n,hn,An,gn,Ri,sn,ti,to,io,qn,ui,ln,jn,Un,no,Gn,Yn,bn,zn,vn,ji,Ho,So,fo,xr,qi,Ui,zi,gi,Pi,tn,nn,ki,Ci,li,Wt,Dt,Ei,Ai,Gi,po,Qn,an,To,qo,Uo,zo,Wo,Ko,xo,Mn,jo,Go,Et,Yi,Di,yn,so,Qo,_o,qr,Ur,zr,Wr,Ln,Io,Zo,Po,jr,pr,o,r,l,s,a,n,u,X,oe,K,ce,z,x,P,J,Ae,ee,ge,Ee,Te,Ie,ot,$,xe,it,Se,et,ft,vt,Tt,Ot,Ht,Ct,It,Ut,ei,Lt,pi,tt,wt,vi,Ji,Ii,cn,ci,Fi,Hi,Nt,yi,si,kt,ds,ms,ps,_s,b,A,re,Me,st]}var sc=class extends N{constructor(e){super(),O(this,e,k3,w3,B,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:71,logoHidden:72,logoTargetUrl:73,showNextPrevButtons:74,nextButtonActive:75,prevButtonActive:76,isOneVideoPlaylist:77,customFullscreenSupported:78,playNextVideo:79,playPrevVideo:80,repeatPlaylist:81,toggleFullscreen:82,seekToInteractive:83,playPrevChapter:84},h3,[-1,-1,-1,-1,-1,-1,-1])}},zm=sc;import{ChromecastState as Xm,PlaybackState as Jm}from"@vkontakte/videoplayer-core";import{noop as Wm}from"@vkontakte/videoplayer-shared";function C3(i){be(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function S3(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon svelte-1aqpg2x"),ho(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[7]),n=!0)},p(r,s){s&1&&!ho(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function T3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function I3(i){let e;function t(r,s){return r[5]?T3:S3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),w(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&y(e),o.d(r)}}}function P3(i){let e,t;return e=new pt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[I3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function E3(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=Wm}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,s=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,l=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=c===Wm),i.$$.dirty&272&&t(6,o=n||l)},t(5,r=!1),[s,a,u,c,n,r,o,m,l]}var ac=class extends N{constructor(e){super(),O(this,e,E3,P3,B,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},C3)}},Km=ac;function A3(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),we(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function M3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var uc=class extends N{constructor(e){super(),O(this,e,M3,A3,B,{})}},xm=uc;import{noop as L3}from"@vkontakte/videoplayer-shared";function V3(i){be(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function jm(i){let e;return{c(){e=I("span"),e.textContent=`${j("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){w(t,e,n)},d(t){t&&y(e)}}}function R3(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=Bt(r,s(i)));let a=i[1]&&jm(i);return{c(){e=I("div"),t&&R(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),G(e,"expanded",i[1])},m(l,u){w(l,e,u),t&&L(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(l,u){if(u&16&&r!==(r=l[4])){if(t){ae();let c=t;p(c.$$.fragment,1,0,()=>{V(c,1)}),ue()}r?(t=Bt(r,s(l,u)),R(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}l[1]?a||(a=jm(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&G(e,"expanded",l[1])},i(l){o||(t&&d(t.$$.fragment,l),o=!0)},o(l){t&&p(t.$$.fragment,l),o=!1},d(l){l&&y(e),t&&V(t),a&&a.d()}}}function B3(i){let e,t,n;function o(s){i[6](s)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[R3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.testId=s[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(l.click=s[2]),a&8&&(l.ariaLabel=s[3]),a&146&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function N3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=L3}=e,{ref:s=void 0}=e,a,l;function u(c){s=c,t(0,s)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,s=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?j("tooltip_volume"):j("tooltip_volume_muted")),i.$$.dirty&2&&t(4,l=o?ur:xm)},[s,o,r,a,l,n,u]}var cc=class extends N{constructor(e){super(),O(this,e,N3,B3,B,{muted:5,expanded:1,click:2,ref:0},V3)}},fc=cc;function D3(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),we(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function O3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var dc=class extends N{constructor(e){super(),O(this,e,O3,D3,B,{})}},Gm=dc;function F3(i){be(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function H3(i){let e,t;return e=new Gm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function q3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var mc=class extends N{constructor(e){super(),O(this,e,q3,H3,B,{isActive:0},F3)}},Ym=mc;import{noop as U3}from"@vkontakte/videoplayer-shared";function z3(i){let e,t;return e=new Ym({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function W3(i){let e,t,n;function o(s){i[3](s)}let r={testId:"btn-pip",ariaLabel:j("menu_pip"),click:i[2],$$slots:{default:[z3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&4&&(l.click=s[2]),a&18&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function K3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=U3}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,s]}var pc=class extends N{constructor(e){super(),O(this,e,K3,W3,B,{ref:0,isPictureInPictureActive:1,click:2})}},Qm=pc;function x3(i){be(i,"svelte-sty291",".gutter.svelte-sty291{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px}.toggler.svelte-sty291{position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease}.toggler.enabled.svelte-sty291{background-color:var(--white);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}")}function j3(i){let e,t;return e=new Dr({props:{width:"14",height:"14"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function G3(i){let e,t;return e=new Oo({props:{width:"14",height:"14",fill:"#000"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Y3(i){let e,t,n,o,r,s=[G3,j3],a=[];function l(u,c){return u[1]?0:1}return n=l(i,-1),o=a[n]=s[n](i),{c(){e=I("span"),t=I("span"),o.c(),f(t,"class","toggler svelte-sty291"),G(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){w(u,e,c),_(e,t),a[n].m(t,null),r=!0},p(u,c){let m=n;n=l(u,c),n!==m&&(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),o=a[n],o||(o=a[n]=s[n](u),o.c()),d(o,1),o.m(t,null)),(!r||c&2)&&G(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&y(e),a[n].d()}}}function Q3(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,[a]){let l={};a&130&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function Z3(i,e,t){let n,{ref:o=void 0}=e,r=nt(),s=r.ui.autoplayNextEnabled$;D(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n)}function u(c){o=c,t(0,o)}return i.$$set=c=>{"ref"in c&&t(0,o=c.ref)},[o,n,s,l,u]}var _c=class extends N{constructor(e){super(),O(this,e,Z3,Q3,B,{ref:0},x3)}},Zm=_c;import{debounceFn as X3}from"@vkontakte/videoplayer-shared";function J3(i){be(i,"svelte-s4hj64",".wrapper-bottom.svelte-s4hj64.svelte-s4hj64{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-s4hj64>.svelte-s4hj64{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-s4hj64.svelte-s4hj64{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64{left:12px}.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64{left:64px}.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{right:12px}.controls.svelte-s4hj64.svelte-s4hj64{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-s4hj64 > *:not(:first-child){margin-left:8px}.hidden.svelte-s4hj64.svelte-s4hj64{visibility:hidden;opacity:0}.controls-hidden.svelte-s4hj64.svelte-s4hj64{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-s4hj64.svelte-s4hj64{transition:none}.overlay-mobile.svelte-s4hj64.svelte-s4hj64{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-s4hj64.svelte-s4hj64{left:44px}.wrapper-middle-left-second.fullscreen.svelte-s4hj64.svelte-s4hj64{left:96px}.wrapper-middle-right.fullscreen.svelte-s4hj64.svelte-s4hj64{right:44px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function $m(i,e,t){let n=i.slice();return n[171]=e[t].iconUrl,n[172]=e[t].ariaLabel,n[173]=e[t].testId,n[174]=e[t].onClick,n[175]=e[t].tooltip,n}function ep(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v=(!i[46]||i[48])&&tp(i),E=bt(i[51]),H=[];for(let P=0;P<E.length;P+=1)H[P]=ip($m(i,E,P));let U=P=>p(H[P],1,1,()=>{H[P]=null}),W=i[58].features.autoplayNext&&i[9]&&np(i),ne=i[31]&&op(i),de=i[32]&&rp(i),q=i[52]&&sp(i),X=i[34]&&lp(i),oe=i[28]&&ap(i),K=i[27]&&up(i),ce=i[26]&&cp(i),z=i[29]&&fp(i),x=i[93]&&!i[22]&&dp(i);return{c(){e=I("div"),t=Y(),n=I("div"),v&&v.c(),o=Y(),r=I("div");for(let P=0;P<H.length;P+=1)H[P].c();s=Y(),W&&W.c(),a=Y(),ne&&ne.c(),l=Y(),de&&de.c(),u=Y(),q&&q.c(),c=Y(),X&&X.c(),m=Y(),h=I("div"),oe&&oe.c(),C=Y(),K&&K.c(),g=Y(),ce&&ce.c(),S=Y(),z&&z.c(),k=Y(),x&&x.c(),F=Xe(),f(e,"class","overlay-mobile svelte-s4hj64"),G(e,"hidden",!i[37]),f(n,"class","wrapper-top-left svelte-s4hj64"),G(n,"hidden",!i[4]),G(n,"fullscreen",i[47]),f(r,"class","wrapper-top-right svelte-s4hj64"),G(r,"hidden",!i[4]&&!i[20]),G(r,"fullscreen",i[47]),f(h,"class","wrapper-middle svelte-s4hj64"),G(h,"hidden",!i[4]||i[22])},m(P,J){w(P,e,J),w(P,t,J),w(P,n,J),v&&v.m(n,null),w(P,o,J),w(P,r,J);for(let le=0;le<H.length;le+=1)H[le]&&H[le].m(r,null);_(r,s),W&&W.m(r,null),_(r,a),ne&&ne.m(r,null),_(r,l),de&&de.m(r,null),_(r,u),q&&q.m(r,null),_(r,c),X&&X.m(r,null),w(P,m,J),w(P,h,J),oe&&oe.m(h,null),_(h,C),K&&K.m(h,null),_(h,g),ce&&ce.m(h,null),_(h,S),z&&z.m(h,null),w(P,k,J),x&&x.m(P,J),w(P,F,J),T=!0},p(P,J){if((!T||J[1]&64)&&G(e,"hidden",!P[37]),!P[46]||P[48]?v?(v.p(P,J),J[1]&163840&&d(v,1)):(v=tp(P),v.c(),d(v,1),v.m(n,null)):v&&(ae(),p(v,1,1,()=>{v=null}),ue()),(!T||J[0]&16)&&G(n,"hidden",!P[4]),(!T||J[1]&65536)&&G(n,"fullscreen",P[47]),J[1]&1048576){E=bt(P[51]);let le;for(le=0;le<E.length;le+=1){let Ae=$m(P,E,le);H[le]?(H[le].p(Ae,J),d(H[le],1)):(H[le]=ip(Ae),H[le].c(),d(H[le],1),H[le].m(r,s))}for(ae(),le=E.length;le<H.length;le+=1)U(le);ue()}P[58].features.autoplayNext&&P[9]?W?(W.p(P,J),J[0]&512&&d(W,1)):(W=np(P),W.c(),d(W,1),W.m(r,a)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),P[31]?ne?(ne.p(P,J),J[1]&1&&d(ne,1)):(ne=op(P),ne.c(),d(ne,1),ne.m(r,l)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),P[32]?de?(de.p(P,J),J[1]&2&&d(de,1)):(de=rp(P),de.c(),d(de,1),de.m(r,u)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),P[52]?q?(q.p(P,J),J[1]&2097152&&d(q,1)):(q=sp(P),q.c(),d(q,1),q.m(r,c)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),P[34]?X?(X.p(P,J),J[1]&8&&d(X,1)):(X=lp(P),X.c(),d(X,1),X.m(r,null)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),(!T||J[0]&1048592)&&G(r,"hidden",!P[4]&&!P[20]),(!T||J[1]&65536)&&G(r,"fullscreen",P[47]),P[28]?oe?(oe.p(P,J),J[0]&268435456&&d(oe,1)):(oe=ap(P),oe.c(),d(oe,1),oe.m(h,C)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),P[27]?K?(K.p(P,J),J[0]&134217728&&d(K,1)):(K=up(P),K.c(),d(K,1),K.m(h,g)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),P[26]?ce?(ce.p(P,J),J[0]&67108864&&d(ce,1)):(ce=cp(P),ce.c(),d(ce,1),ce.m(h,S)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),P[29]?z?(z.p(P,J),J[0]&536870912&&d(z,1)):(z=fp(P),z.c(),d(z,1),z.m(h,null)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),(!T||J[0]&4194320)&&G(h,"hidden",!P[4]||P[22]),P[93]&&!P[22]?x?(x.p(P,J),J[0]&4194304&&d(x,1)):(x=dp(P),x.c(),d(x,1),x.m(F.parentNode,F)):x&&(ae(),p(x,1,1,()=>{x=null}),ue())},i(P){if(!T){d(v);for(let J=0;J<E.length;J+=1)d(H[J]);d(W),d(ne),d(de),d(q),d(X),d(oe),d(K),d(ce),d(z),d(x),T=!0}},o(P){p(v),H=H.filter(Boolean);for(let J=0;J<H.length;J+=1)p(H[J]);p(W),p(ne),p(de),p(q),p(X),p(oe),p(K),p(ce),p(z),p(x),T=!1},d(P){P&&(y(e),y(t),y(n),y(o),y(r),y(m),y(h),y(k),y(F)),v&&v.d(),oi(H,P),W&&W.d(),ne&&ne.d(),de&&de.d(),q&&q.d(),X&&X.d(),oe&&oe.d(),K&&K.d(),ce&&ce.d(),z&&z.d(),x&&x.d(P)}}}function tp(i){let e,t,n;function o(s){i[132](s)}let r={muted:i[49],expanded:i[46]&&!i[66]&&i[50],click:i[102]};return i[16].volume!==void 0&&(r.ref=i[16].volume),e=new fc({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&262144&&(l.muted=s[49]),a[1]&557056&&(l.expanded=s[46]&&!s[66]&&s[50]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].volume,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function ip(i){var n;let e,t;return e=new Km({props:{iconUrl:i[171],ariaLabel:(n=i[172])!=null?n:i[175],testId:i[173],onClick:i[174]}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[1]&1048576&&(s.iconUrl=o[171]),r[1]&1048576&&(s.ariaLabel=(a=o[172])!=null?a:o[175]),r[1]&1048576&&(s.testId=o[173]),r[1]&1048576&&(s.onClick=o[174]),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function np(i){let e,t,n;function o(s){i[133](s)}let r={};return i[16].autoplayNextToggle!==void 0&&(r.ref=i[16].autoplayNextToggle),e=new Zm({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&65536&&(t=!0,l.ref=s[16].autoplayNextToggle,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function op(i){let e,t,n;function o(s){i[134](s)}let r={isMobile:!0,click:i[100],state:i[21]};return i[16].chromecast!==void 0&&(r.ref=i[16].chromecast),e=new nl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&2097152&&(l.state=s[21]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].chromecast,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function rp(i){let e,t,n;function o(s){i[135](s)}let r={click:i[101],isPictureInPictureActive:i[19]};return i[16].pip!==void 0&&(r.ref=i[16].pip),e=new Qm({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&524288&&(l.isPictureInPictureActive=s[19]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].pip,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function sp(i){let e,t;return e=new $r({props:{ref$:i[104]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function lp(i){let e,t,n;function o(s){i[136](s)}let r={click:i[60],targetUrl:i[8],logoClickable:i[7]};return i[16].vkLogo!==void 0&&(r.ref=i[16].vkLogo),e=new il({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&256&&(l.targetUrl=s[8]),a[0]&128&&(l.logoClickable=s[7]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].vkLogo,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function ap(i){let e,t,n;function o(s){i[137](s)}let r={click:i[11],type:"prev",isMobile:!0};return i[16].prevButton!==void 0&&(r.ref=i[16].prevButton),e=new Nr({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&2048&&(l.click=s[11]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].prevButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function up(i){let e,t,n;function o(s){i[138](s)}let r={disabled:i[44],click:i[59],isMobile:!0,isPlaying:i[24]};return i[16].playButton!==void 0&&(r.ref=i[16].playButton),e=new ns({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),a[0]&16777216&&(l.isPlaying=s[24]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].playButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function cp(i){let e,t,n;function o(s){i[139](s)}let r={disabled:i[43],click:i[103],isMobile:!0};return i[16].replayButton!==void 0&&(r.ref=i[16].replayButton),e=new is({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&4096&&(l.disabled=s[43]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function fp(i){let e,t,n;function o(s){i[140](s)}let r={click:i[10],type:"next",isMobile:!0};return i[16].nextButton!==void 0&&(r.ref=i[16].nextButton),e=new Nr({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1024&&(l.click=s[10]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].nextButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function dp(i){let e,t,n,o,r=i[96]&&$3(i),s=i[39]&&mp(i),a=i[95]&&e5(i);return{c(){r&&r.c(),e=Y(),s&&s.c(),t=Y(),a&&a.c(),n=Xe()},m(l,u){r&&r.m(l,u),w(l,e,u),s&&s.m(l,u),w(l,t,u),a&&a.m(l,u),w(l,n,u),o=!0},p(l,u){l[96]&&r.p(l,u),l[39]?s?(s.p(l,u),u[1]&256&&d(s,1)):(s=mp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[95]&&a.p(l,u)},i(l){o||(d(r),d(s),d(a),o=!0)},o(l){p(r),p(s),p(a),o=!1},d(l){l&&(y(e),y(t),y(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function $3(i){let e,t,n,o,r,s;function a(u){i[141](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[16].playPrevChapterButton!==void 0&&(l.ref=i[16].playPrevChapterButton),t=new yl({props:l}),ve.push(()=>ze(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-s4hj64"),G(e,"fullscreen",i[47]),G(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=ke(e,"click",i[105]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&2048&&(m.disabled=u[42]),c[0]&16384&&(m.click=u[14]),!n&&c[0]&65536&&(n=!0,m.ref=u[16].playPrevChapterButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&65536)&&G(e,"fullscreen",u[47]),(!o||c[0]&16)&&G(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&y(e),V(t),r=!1,s()}}}function mp(i){let e,t,n,o,r;function s(l){i[142](l)}let a={hidden:!i[4]&&!i[53],disabled:i[45],click:i[99].toggle,graphIsOpened:i[53]};return i[16].interactiveGraphButton!==void 0&&(a.ref=i[16].interactiveGraphButton),t=new kl({props:a}),ve.push(()=>ze(t,"ref",s)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class",o=If(i[96]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-s4hj64"),G(e,"fullscreen",i[47]),G(e,"hidden",!i[4]&&!i[53])},m(l,u){w(l,e,u),L(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&4194304&&(c.hidden=!l[4]&&!l[53]),u[1]&16384&&(c.disabled=l[45]),u[1]&4194304&&(c.graphIsOpened=l[53]),!n&&u[0]&65536&&(n=!0,c.ref=l[16].interactiveGraphButton,Ue(()=>n=!1)),t.$set(c),(!r||u[1]&65536)&&G(e,"fullscreen",l[47]),(!r||u[0]&16|u[1]&4194304)&&G(e,"hidden",!l[4]&&!l[53])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),V(t)}}}function e5(i){let e,t,n,o,r,s;function a(u){i[143](u)}let l={hidden:!i[4],disabled:i[41],click:i[13]};return i[16].seekToInteractiveButton!==void 0&&(l.ref=i[16].seekToInteractiveButton),t=new wl({props:l}),ve.push(()=>ze(t,"ref",a)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-s4hj64"),G(e,"fullscreen",i[47]),G(e,"hidden",!i[4])},m(u,c){w(u,e,c),L(t,e,null),o=!0,r||(s=ke(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&1024&&(m.disabled=u[41]),c[0]&8192&&(m.click=u[13]),!n&&c[0]&65536&&(n=!0,m.ref=u[16].seekToInteractiveButton,Ue(()=>n=!1)),t.$set(m),(!o||c[1]&65536)&&G(e,"fullscreen",u[47]),(!o||c[0]&16)&&G(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&y(e),V(t),r=!1,s()}}}function pp(i){let e,t,n,o,r,s=i[48]&&_p(i),a=i[25]&&hp(i);return o=new rl({props:{position:i[54],duration:i[55]}}),{c(){s&&s.c(),e=Y(),a&&a.c(),t=Y(),n=I("div"),R(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-s4hj64"),G(n,"fullscreen",i[47])},m(l,u){s&&s.m(l,u),w(l,e,u),a&&a.m(l,u),w(l,t,u),w(l,n,u),L(o,n,null),r=!0},p(l,u){l[48]?s?(s.p(l,u),u[1]&131072&&d(s,1)):(s=_p(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),l[25]?a?(a.p(l,u),u[0]&33554432&&d(a,1)):(a=hp(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),p(a,1,1,()=>{a=null}),ue());let c={};u[1]&8388608&&(c.position=l[54]),u[1]&16777216&&(c.duration=l[55]),o.$set(c),(!r||u[1]&65536)&&G(n,"fullscreen",l[47])},i(l){r||(d(s),d(a),d(o.$$.fragment,l),r=!0)},o(l){p(s),p(a),p(o.$$.fragment,l),r=!1},d(l){l&&(y(e),y(t),y(n)),s&&s.d(l),a&&a.d(l),V(o)}}}function _p(i){let e,t,n,o;function r(a){i[144](a)}let s={muted:i[49],expanded:!1,click:i[102]};return i[16].volume!==void 0&&(s.ref=i[16].volume),t=new fc({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-top-right svelte-s4hj64"),G(e,"fullscreen",i[47])},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&262144&&(u.muted=a[49]),!n&&l[0]&65536&&(n=!0,u.ref=a[16].volume,Ue(()=>n=!1)),t.$set(u),(!o||l[1]&65536)&&G(e,"fullscreen",a[47])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function hp(i){let e,t,n,o;function r(a){i[145](a)}let s={disabled:i[44],click:i[59],isMobile:!0,isPlaying:!i[25]};return i[16].playButton!==void 0&&(s.ref=i[16].playButton),t=new ns({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","wrapper-middle svelte-s4hj64")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[1]&8192&&(u.disabled=a[44]),l[0]&33554432&&(u.isPlaying=!a[25]),!n&&l[0]&65536&&(n=!0,u.ref=a[16].playButton,Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function t5(i){let e,t,n;function o(s){i[146](s)}let r={disabled:i[43],$$slots:{default:[i5]},$$scope:{ctx:i}};return i[16].replayButton!==void 0&&(r.ref=i[16].replayButton),e=new Qi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[1]&4096&&(l.disabled=s[43]),a[1]&4096|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].replayButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function i5(i){let e,t;return e=new is({props:{disabled:i[43],click:i[92]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&4096&&(r.disabled=n[43]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function gp(i){let e,t,n;function o(s){i[147](s)}let r={$$slots:{default:[n5]},$$scope:{ctx:i}};return i[16].liveButton!==void 0&&(r.ref=i[16].liveButton),e=new Qi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&32768|a[1]&512|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].liveButton,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function n5(i){let e,t;return e=new Cl({props:{isLiveActive:i[15],isMobile:!0,ariaLabel:i[40]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32768&&(r.isLiveActive=n[15]),o[1]&512&&(r.ariaLabel=n[40]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function bp(i){let e,t,n;function o(s){i[148](s)}let r={showDuration:i[30],position:i[5]?i[54]:i[56],duration:i[5]?i[55]:i[57],isMobile:!0};return i[16].time!==void 0&&(r.ref=i[16].time),e=new $s({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1073741824&&(l.showDuration=s[30]),a[0]&32|a[1]&41943040&&(l.position=s[5]?s[54]:s[56]),a[0]&32|a[1]&83886080&&(l.duration=s[5]?s[55]:s[57]),!t&&a[0]&65536&&(t=!0,l.ref=s[16].time,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function vp(i){let e,t,n,o;return n=new ll({props:{position:i[56],duration:i[57],timeCodes:i[80]}}),{c(){e=I("div"),e.textContent="\xB7",t=Y(),R(n.$$.fragment),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),w(r,t,s),L(n,r,s),o=!0},p(r,s){let a={};s[1]&33554432&&(a.position=r[56]),s[1]&67108864&&(a.duration=r[57]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),V(n,r)}}}function o5(i){let e,t,n=i[38]&&vp(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[38]?n?(n.p(o,r),r[1]&128&&d(n,1)):(n=vp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function yp(i){let e,t,n;function o(s){i[150](s)}let r={$$slots:{default:[r5]},$$scope:{ctx:i}};return i[16].settings!==void 0&&(r.ref=i[16].settings),e=new Qi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].settings,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function r5(i){let e,t;return e=new $r({props:{ref$:i[104]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function wp(i){let e,t,n;function o(s){i[151](s)}let r={$$slots:{default:[s5]},$$scope:{ctx:i}};return i[16].fullscreen!==void 0&&(r.ref=i[16].fullscreen),e=new Qi({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&4096|a[1]&65536|a[5]&8388608&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&65536&&(t=!0,l.ref=s[16].fullscreen,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function s5(i){let e,t;return e=new tl({props:{click:i[12],isFullscreen:i[47]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[1]&65536&&(r.isFullscreen=n[47]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function l5(i){let e,t,n;function o(s){i[155](s)}let r={};return i[16].interactiveTimeIndicator!==void 0&&(r.ref=i[16].interactiveTimeIndicator),e=new bl({props:r}),ve.push(()=>ze(e,"ref",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&65536&&(t=!0,l.ref=s[16].interactiveTimeIndicator,Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function a5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v=!i[5]&&ep(i),E=i[5]&&i[23]!=="inactive"&&pp(i),H=i[93]&&t5(i),U=!i[5]&&i[18]&&gp(i),W=i[36]&&bp(i);function ne(z){i[149](z)}let de={className:"w-max",disabled:!i[38],$$slots:{default:[o5]},$$scope:{ctx:i}};i[16].episodes!==void 0&&(de.ref=i[16].episodes),u=new Qi({props:de}),ve.push(()=>ze(u,"ref",ne));let q=i[33]&&yp(i),X=i[35]&&wp(i);function oe(z){i[153](z)}let K={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[17]};i[16].timeline!==void 0&&(K.ref=i[16].timeline),g=new sl({props:K}),ve.push(()=>ze(g,"ref",oe));let ce=i[97]&&l5(i);return{c(){v&&v.c(),e=Y(),E&&E.c(),t=Y(),n=I("div"),o=I("div"),r=I("div"),H&&H.c(),s=Y(),U&&U.c(),a=Y(),W&&W.c(),l=Y(),R(u.$$.fragment),m=Y(),q&&q.c(),h=Y(),X&&X.c(),C=Y(),R(g.$$.fragment),k=Y(),ce&&ce.c(),F=Xe(),f(r,"class","controls svelte-s4hj64"),G(r,"mobile",!0),f(o,"class","controls-wrapper svelte-s4hj64"),G(o,"fullscreen",i[47]),f(n,"class","wrapper-bottom svelte-s4hj64"),G(n,"hidden",i[2]),G(n,"controls-hidden",!i[4]),G(n,"no-smooth",i[3]),G(n,"mobile",!0)},m(z,x){v&&v.m(z,x),w(z,e,x),E&&E.m(z,x),w(z,t,x),w(z,n,x),_(n,o),_(o,r),H&&H.m(r,null),_(r,s),U&&U.m(r,null),_(r,a),W&&W.m(r,null),_(r,l),L(u,r,null),_(r,m),q&&q.m(r,null),_(r,h),X&&X.m(r,null),i[152](r),_(o,C),L(g,o,null),i[154](n),w(z,k,x),ce&&ce.m(z,x),w(z,F,x),T=!0},p(z,x){z[5]?v&&(ae(),p(v,1,1,()=>{v=null}),ue()):v?(v.p(z,x),x[0]&32&&d(v,1)):(v=ep(z),v.c(),d(v,1),v.m(e.parentNode,e)),z[5]&&z[23]!=="inactive"?E?(E.p(z,x),x[0]&8388640&&d(E,1)):(E=pp(z),E.c(),d(E,1),E.m(t.parentNode,t)):E&&(ae(),p(E,1,1,()=>{E=null}),ue()),z[93]&&H.p(z,x),!z[5]&&z[18]?U?(U.p(z,x),x[0]&262176&&d(U,1)):(U=gp(z),U.c(),d(U,1),U.m(r,a)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),z[36]?W?(W.p(z,x),x[1]&32&&d(W,1)):(W=bp(z),W.c(),d(W,1),W.m(r,l)):W&&(ae(),p(W,1,1,()=>{W=null}),ue());let P={};x[1]&128&&(P.disabled=!z[38]),x[1]&100663424|x[5]&8388608&&(P.$$scope={dirty:x,ctx:z}),!c&&x[0]&65536&&(c=!0,P.ref=z[16].episodes,Ue(()=>c=!1)),u.$set(P),z[33]?q?(q.p(z,x),x[1]&4&&d(q,1)):(q=yp(z),q.c(),d(q,1),q.m(r,h)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),z[35]?X?(X.p(z,x),x[1]&16&&d(X,1)):(X=wp(z),X.c(),d(X,1),X.m(r,null)):X&&(ae(),p(X,1,1,()=>{X=null}),ue());let J={};x[0]&32&&(J.isAds=z[5]),x[0]&64&&(J.canRewindLive=z[6]),x[0]&131072&&(J.isRewindableLive=z[17]),!S&&x[0]&65536&&(S=!0,J.ref=z[16].timeline,Ue(()=>S=!1)),g.$set(J),(!T||x[1]&65536)&&G(o,"fullscreen",z[47]),(!T||x[0]&4)&&G(n,"hidden",z[2]),(!T||x[0]&16)&&G(n,"controls-hidden",!z[4]),(!T||x[0]&8)&&G(n,"no-smooth",z[3]),z[97]&&ce.p(z,x)},i(z){T||(d(v),d(E),d(H),d(U),d(W),d(u.$$.fragment,z),d(q),d(X),d(g.$$.fragment,z),d(ce),T=!0)},o(z){p(v),p(E),p(H),p(U),p(W),p(u.$$.fragment,z),p(q),p(X),p(g.$$.fragment,z),p(ce),T=!1},d(z){z&&(y(e),y(t),y(n),y(k),y(F)),v&&v.d(z),E&&E.d(z),H&&H.d(),U&&U.d(),W&&W.d(),V(u),q&&q.d(),X&&X.d(),i[152](null),V(g),i[154](null),ce&&ce.d(z)}}}function u5(i,e,t){var ji,Bi;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,{bottomHidden:ot}=e,{bottomNoSmooth:Pe}=e,{showControls:We}=e,{playerControlsWrapperRef:$=void 0}=e,{playerControlsRef:_e=void 0}=e,{isAds:Ce=!1}=e,{canRewindLive:xe}=e,{logoClickable:rt}=e,{logoHidden:lt}=e,{logoTargetUrl:it=""}=e,{showNextPrevButtons:Je}=e,{nextButtonActive:fe}=e,{prevButtonActive:Se}=e,{isOneVideoPlaylist:$e=!1}=e,{customFullscreenSupported:Ne=!0}=e,{playNextVideo:et}=e,{playPrevVideo:Fe}=e,{repeatPlaylist:ut}=e,{toggleFullscreen:ft}=e,{seekToInteractive:he}=e,{playPrevChapter:dt}=e,{onDisabledPlayPrevChapterClick:vt}=e,{onDisabledSeekToInteractiveClick:yt}=e,Qe=nt(),Tt=Bn(),At=xt(),ii=Qe.actions.internal.toggleMuted,Ot=Qe.actions.internal.togglePlay,Ft=Qe.actions.internal.pause,jt=(ji=Qe.callbacks)==null?void 0:ji.onAudioDoesNotExistHint,Ht=(Bi=Qe.callbacks)==null?void 0:Bi.onAudioDisabledHint,Ke=Qe.playerPhase;D(i,Ke,te=>t(128,de=te));let Ze=Qe.state.duration$;D(i,Ze,te=>t(57,Ie=te));let Ct=Qe.state.positionWithScrubbing$;D(i,Ct,te=>t(56,Te=te));let pe=Qe.state.playbackState$;D(i,pe,te=>t(122,C=te));let Gt=Qe.state.isAudioAvailable$;D(i,Gt,te=>t(46,g=te));let It=Qe.state.isAudioDisabled,$t=Qe.state.isEnded$;D(i,$t,te=>t(129,X=te));let Rt=Qe.state.isLive$;D(i,Rt,te=>t(18,E=te));let Ut=Qe.state.muted$;D(i,Ut,te=>t(49,P=te));let ni=Qe.state.isActiveLive$;D(i,ni,te=>t(126,T=te));let Pt=Qe.state.isRewindableLive$;D(i,Pt,te=>t(17,v=te));let ei=Qe.ui.scrubbingInProgress;D(i,ei,te=>t(22,q=te));let Yt=Qe.ui.mobileNotReportControlHidden$;D(i,Yt,te=>t(20,W=te));let un=Qe.ui.isPictureInPictureActive$;D(i,un,te=>t(19,U=te));let Lt=Qe.ui.pictureInPictureType$;D(i,Lt,te=>t(127,H=te));let Oi=Qe.ui.mobileUnmuteButtonExpanded;D(i,Oi,te=>t(50,J=te));let Xi=Qe.ui.mobileUnmuteButtonVisible;D(i,Xi,te=>t(48,x=te));let pi=Qe.ui.settingsMenuVisible;D(i,pi,te=>t(120,m=te));let bi=Qe.ui.settingsMenuOpenedByKeyboard;D(i,bi,te=>t(119,c=te));let De=Qe.ui.controls,tt=Qe.actions.internal.getVideoEpisodes(),wt=Qe.webApi.pictureInPictureApi,_i=Qe.state.chromecastState$;D(i,_i,te=>t(21,ne=te));let vi=Qe.state.crashed$;D(i,vi,te=>t(52,Ae=te));let Ji=De.disabledControls$;D(i,Ji,te=>t(130,K=te));let Ii=Qe.ui.startedByKeyboard$;D(i,Ii,te=>t(118,u=te));let cn=Qe.ui.currentGridType$;D(i,cn,te=>t(125,F=te));let ci=Qe.ads.duration;D(i,ci,te=>t(55,Ee=te));let Fi=Qe.ads.position;D(i,Fi,te=>t(54,ge=te));let Hi=Qe.ads.playbackState;D(i,Hi,te=>t(23,oe=te));let Nt=Qe.ui.isFullscreen;D(i,Nt,te=>t(47,z=te));let yi=Qe.ui.playerSize;D(i,yi,te=>t(124,k=te));let si=Qe.ui.additionalButtonsDeprecated$;D(i,si,te=>t(51,le=te));let qt=Qe.actions.internal.getVideoElement,Cn=Qe.actions.internal.replayInteractive,hi=Qe.state.isInteractive,fn=Qe.state.isInteractiveTime$;D(i,fn,te=>t(123,S=te));let Sn=Qe.state.showInteractiveGraph,$i=Qe.state.showSeekToInteractive,dn=Qe.state.showPlayPrevChapter,wi=Qe.state.showInteractiveTimeIndicator,en=Tt.seekToInteractiveDisabledTooltip$;D(i,en,te=>t(131,ce=te));let zt=Tt.graphIsOpened$;D(i,zt,te=>t(53,ee=te));let On,qi,Ui,zi,gi,Pi,tn,nn,ki,Ci,li,Wt,Dt,Ei,Ai,on,at,Mi,ai,Li,Vi,je={},Fn=X3(hl,260),rn=()=>Qe.actions.internal.toggleChromecast();function Tn(){Ro({isAudioDisabled:It,audioDisabledHintCallback:Ht,isAudioAvailable:g,audioIsNotExistHintCallback:jt})&&ii()}async function mn(){wt!=null&&wt.isActive()?await(wt==null?void 0:wt.remove()):await(wt==null?void 0:wt.request())}function Wi(){!It&&g&&Xi.set(!1),Tn()}let Ki=$e?Ot:ut,xi="",pn=(te,Ni)=>{if(!te){t(40,xi=j("tooltip_live"));return}Ni===Jm.PAUSED&&t(40,xi=j("tooltip_play"))},fi,In=Oe();D(i,In,te=>t(121,h=te));let Pn=()=>{l&&vt(On)},En=()=>{r&&yt(qi)};function _n(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(16,je))}function hn(te){i.$$.not_equal(je.autoplayNextToggle,te)&&(je.autoplayNextToggle=te,t(16,je))}function An(te){i.$$.not_equal(je.chromecast,te)&&(je.chromecast=te,t(16,je))}function gn(te){i.$$.not_equal(je.pip,te)&&(je.pip=te,t(16,je))}function Hn(te){i.$$.not_equal(je.vkLogo,te)&&(je.vkLogo=te,t(16,je))}function Ri(te){i.$$.not_equal(je.prevButton,te)&&(je.prevButton=te,t(16,je))}function sn(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(16,je))}function ti(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(16,je))}function to(te){i.$$.not_equal(je.nextButton,te)&&(je.nextButton=te,t(16,je))}function io(te){i.$$.not_equal(je.playPrevChapterButton,te)&&(je.playPrevChapterButton=te,t(16,je))}function qn(te){i.$$.not_equal(je.interactiveGraphButton,te)&&(je.interactiveGraphButton=te,t(16,je))}function ui(te){i.$$.not_equal(je.seekToInteractiveButton,te)&&(je.seekToInteractiveButton=te,t(16,je))}function ln(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(16,je))}function jn(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(16,je))}function Un(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(16,je))}function no(te){i.$$.not_equal(je.liveButton,te)&&(je.liveButton=te,t(16,je))}function Gn(te){i.$$.not_equal(je.time,te)&&(je.time=te,t(16,je))}function Yn(te){i.$$.not_equal(je.episodes,te)&&(je.episodes=te,t(16,je))}function bn(te){i.$$.not_equal(je.settings,te)&&(je.settings=te,t(16,je))}function zn(te){i.$$.not_equal(je.fullscreen,te)&&(je.fullscreen=te,t(16,je))}function vn(te){ve[te?"unshift":"push"](()=>{_e=te,t(1,_e)})}function oo(te){i.$$.not_equal(je.timeline,te)&&(je.timeline=te,t(16,je))}function ie(te){ve[te?"unshift":"push"](()=>{$=te,t(0,$)})}function ht(te){i.$$.not_equal(je.interactiveTimeIndicator,te)&&(je.interactiveTimeIndicator=te,t(16,je))}return i.$$set=te=>{"bottomHidden"in te&&t(2,ot=te.bottomHidden),"bottomNoSmooth"in te&&t(3,Pe=te.bottomNoSmooth),"showControls"in te&&t(4,We=te.showControls),"playerControlsWrapperRef"in te&&t(0,$=te.playerControlsWrapperRef),"playerControlsRef"in te&&t(1,_e=te.playerControlsRef),"isAds"in te&&t(5,Ce=te.isAds),"canRewindLive"in te&&t(6,xe=te.canRewindLive),"logoClickable"in te&&t(7,rt=te.logoClickable),"logoHidden"in te&&t(107,lt=te.logoHidden),"logoTargetUrl"in te&&t(8,it=te.logoTargetUrl),"showNextPrevButtons"in te&&t(9,Je=te.showNextPrevButtons),"nextButtonActive"in te&&t(108,fe=te.nextButtonActive),"prevButtonActive"in te&&t(109,Se=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(110,$e=te.isOneVideoPlaylist),"customFullscreenSupported"in te&&t(111,Ne=te.customFullscreenSupported),"playNextVideo"in te&&t(10,et=te.playNextVideo),"playPrevVideo"in te&&t(11,Fe=te.playPrevVideo),"repeatPlaylist"in te&&t(112,ut=te.repeatPlaylist),"toggleFullscreen"in te&&t(12,ft=te.toggleFullscreen),"seekToInteractive"in te&&t(13,he=te.seekToInteractive),"playPrevChapter"in te&&t(14,dt=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(113,vt=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(114,yt=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&128&&(qi=j(ce)),i.$$.dirty[4]&64&&t(117,n=K.has("EPISODE_BUTTON")),i.$$.dirty[4]&64&&t(45,o=K.has("GRAPH_BUTTON")),i.$$.dirty[4]&64&&t(41,r=K.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&64&&t(44,s=K.has("PLAY_BUTTON")),i.$$.dirty[4]&64&&t(43,a=K.has("REPLAY_BUTTON")),i.$$.dirty[4]&64&&t(42,l=K.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&536870912&&t(24,Ui=C===Jm.PLAYING),i.$$.dirty[0]&8388608&&t(25,zi=oe==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&32&&t(26,gi=X&&!Ce&&!hi),i.$$.dirty[0]&32|i.$$.dirty[4]&32&&t(27,Pi=!X||Ce),i.$$.dirty[0]&544|i.$$.dirty[3]&65536&&t(28,tn=Je&&!Ce&&Se),i.$$.dirty[0]&544|i.$$.dirty[3]&32768&&t(29,nn=Je&&!Ce&&fe),i.$$.dirty[4]&1&&t(115,ki=k.width>300),i.$$.dirty[4]&1&&t(30,Ci=k.width>400),i.$$.dirty[0]&4194304&&t(116,li=q),i.$$.dirty[0]&3670016|i.$$.dirty[4]&8&&t(31,Wt=ne!==Xm.NOT_AVAILABLE&&!(U&&H===1)&&!W&&!hi),i.$$.dirty[0]&3145728|i.$$.dirty[3]&8388608|i.$$.dirty[4]&24){let te=de==="LiveWaitingStart";t(32,Dt=!!wt&&ne!==Xm.CONNECTED&&!W&&(H===1&&te||!te)&&!li&&!hi)}i.$$.dirty[3]&8388608|i.$$.dirty[4]&2&&t(33,Ei=!li&&mi(F,"s")),i.$$.dirty[3]&16384|i.$$.dirty[4]&1&&t(34,Ai=!lt&&k.width>350),i.$$.dirty[0]&524288|i.$$.dirty[3]&8650752|i.$$.dirty[4]&8&&t(35,on=At.features.fullscreen&&!(U&&H===1)&&(hi?Ne:!0)&&!li),i.$$.dirty[0]&262176|i.$$.dirty[3]&8388608|i.$$.dirty[4]&1&&t(36,at=(!E||Ce)&&k.width>260&&!li&&!(At.features.interactiveHideTime&&hi)),i.$$.dirty[0]&16|i.$$.dirty[3]&134217728&&t(37,Mi=m||We),i.$$.dirty[0]&262176|i.$$.dirty[3]&29360128&&t(38,ai=!Ce&&!E&&!!(tt!=null&&tt.length)&&ki&&!n&&!li),i.$$.dirty[0]&131072|i.$$.dirty[4]&4&&t(15,Li=!v||T),i.$$.dirty[4]&2&&t(39,Vi=Sn&&mi(F,"m")),i.$$.dirty[0]&65552|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&Fn(qt(),De,je,We),i.$$.dirty[0]&32768|i.$$.dirty[3]&536870912&&pn(Li,C),i.$$.dirty[3]&402653184&&h&&Ir(h,m,bi),i.$$.dirty[3]&201326592&&co(fi,m,c),i.$$.dirty[0]&65536|i.$$.dirty[3]&33554432&&gl(Ii,u,je.playButton)},On=j(Qe.state.playPrevChapterDisabledTooltip),[$,_e,ot,Pe,We,Ce,xe,rt,it,Je,et,Fe,ft,he,dt,Li,je,v,E,U,W,ne,q,oe,Ui,zi,gi,Pi,tn,nn,Ci,Wt,Dt,Ei,Ai,on,at,Mi,ai,Vi,xi,r,l,a,s,o,g,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,At,Ot,Ft,Ke,Ze,Ct,pe,Gt,It,$t,Rt,Ut,ni,Pt,ei,Yt,un,Lt,Oi,Xi,pi,bi,tt,_i,vi,Ji,Ii,cn,ci,Fi,Hi,Nt,yi,si,Cn,hi,fn,$i,dn,wi,en,zt,rn,mn,Wi,Ki,In,Pn,En,lt,fe,Se,$e,Ne,ut,vt,yt,ki,li,n,u,c,m,h,C,S,k,F,T,H,de,X,K,ce,_n,hn,An,gn,Hn,Ri,sn,ti,to,io,qn,ui,ln,jn,Un,no,Gn,Yn,bn,zn,vn,oo,ie,ht]}var hc=class extends N{constructor(e){super(),O(this,e,u5,a5,B,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:107,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:108,prevButtonActive:109,isOneVideoPlaylist:110,customFullscreenSupported:111,playNextVideo:10,playPrevVideo:11,repeatPlaylist:112,toggleFullscreen:12,seekToInteractive:13,playPrevChapter:14,onDisabledPlayPrevChapterClick:113,onDisabledSeekToInteractiveClick:114},J3,[-1,-1,-1,-1,-1,-1])}},kp=hc;function Sp(i){let e,t,n,o,r=[f5,c5],s=[];function a(l,u){return l[24]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function c5(i){let e,t,n,o;function r(l){i[28](l)}function s(l){i[29](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],seekToInteractive:i[19],playPrevChapter:i[20]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new zm({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u&4&&(c.bottomHidden=l[2]),u&8&&(c.bottomNoSmooth=l[3]),u&16&&(c.showControls=l[4]),u&32&&(c.isAds=l[5]),u&64&&(c.canRewindLive=l[6]),u&128&&(c.logoClickable=l[7]),u&256&&(c.logoHidden=l[8]),u&512&&(c.logoTargetUrl=l[9]),u&1024&&(c.showNextPrevButtons=l[10]),u&2048&&(c.nextButtonActive=l[11]),u&4096&&(c.prevButtonActive=l[12]),u&8192&&(c.isOneVideoPlaylist=l[13]),u&16384&&(c.customFullscreenSupported=l[14]),u&32768&&(c.playNextVideo=l[15]),u&65536&&(c.playPrevVideo=l[16]),u&131072&&(c.repeatPlaylist=l[17]),u&262144&&(c.toggleFullscreen=l[18]),u&524288&&(c.seekToInteractive=l[19]),u&1048576&&(c.playPrevChapter=l[20]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function f5(i){let e,t,n,o;function r(l){i[26](l)}function s(l){i[27](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],seekToInteractive:i[19],playPrevChapter:i[20],onDisabledPlayPrevChapterClick:i[21],onDisabledSeekToInteractiveClick:i[22]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new kp({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u&4&&(c.bottomHidden=l[2]),u&8&&(c.bottomNoSmooth=l[3]),u&16&&(c.showControls=l[4]),u&32&&(c.isAds=l[5]),u&64&&(c.canRewindLive=l[6]),u&128&&(c.logoClickable=l[7]),u&256&&(c.logoHidden=l[8]),u&512&&(c.logoTargetUrl=l[9]),u&1024&&(c.showNextPrevButtons=l[10]),u&2048&&(c.nextButtonActive=l[11]),u&4096&&(c.prevButtonActive=l[12]),u&8192&&(c.isOneVideoPlaylist=l[13]),u&16384&&(c.customFullscreenSupported=l[14]),u&32768&&(c.playNextVideo=l[15]),u&65536&&(c.playPrevVideo=l[16]),u&131072&&(c.repeatPlaylist=l[17]),u&262144&&(c.toggleFullscreen=l[18]),u&524288&&(c.seekToInteractive=l[19]),u&1048576&&(c.playPrevChapter=l[20]),u&2097152&&(c.onDisabledPlayPrevChapterClick=l[21]),u&4194304&&(c.onDisabledSeekToInteractiveClick=l[22]),!t&&u&1&&(t=!0,c.playerControlsWrapperRef=l[0],Ue(()=>t=!1)),!n&&u&2&&(n=!0,c.playerControlsRef=l[1],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function d5(i){let e,t,n=i[23]&&Sp(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,[r]){o[23]?n?(n.p(o,r),r&8388608&&d(n,1)):(n=Sp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function m5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:s}=e,{playerControlsWrapperRef:a=void 0}=e,{playerControlsRef:l=void 0}=e,{isAds:u=!1}=e,{canRewindLive:c}=e,{logoClickable:m}=e,{logoHidden:h}=e,{logoTargetUrl:C=""}=e,{showNextPrevButtons:g}=e,{nextButtonActive:S}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:F=!1}=e,{customFullscreenSupported:T=!0}=e,{playNextVideo:v}=e,{playPrevVideo:E}=e,{repeatPlaylist:H}=e,{toggleFullscreen:U}=e,{seekToInteractive:W}=e,{playPrevChapter:ne}=e,{onDisabledPlayPrevChapterClick:de=Cp}=e,{onDisabledSeekToInteractiveClick:q=Cp}=e,oe=nt().ui.isMobile;D(i,oe,J=>t(24,n=J));let K=!1;Vt(()=>{let J=setTimeout(()=>t(23,K=!0),0);return()=>clearTimeout(J)});function ce(J){a=J,t(0,a)}function z(J){l=J,t(1,l)}function x(J){a=J,t(0,a)}function P(J){l=J,t(1,l)}return i.$$set=J=>{"bottomHidden"in J&&t(2,o=J.bottomHidden),"bottomNoSmooth"in J&&t(3,r=J.bottomNoSmooth),"showControls"in J&&t(4,s=J.showControls),"playerControlsWrapperRef"in J&&t(0,a=J.playerControlsWrapperRef),"playerControlsRef"in J&&t(1,l=J.playerControlsRef),"isAds"in J&&t(5,u=J.isAds),"canRewindLive"in J&&t(6,c=J.canRewindLive),"logoClickable"in J&&t(7,m=J.logoClickable),"logoHidden"in J&&t(8,h=J.logoHidden),"logoTargetUrl"in J&&t(9,C=J.logoTargetUrl),"showNextPrevButtons"in J&&t(10,g=J.showNextPrevButtons),"nextButtonActive"in J&&t(11,S=J.nextButtonActive),"prevButtonActive"in J&&t(12,k=J.prevButtonActive),"isOneVideoPlaylist"in J&&t(13,F=J.isOneVideoPlaylist),"customFullscreenSupported"in J&&t(14,T=J.customFullscreenSupported),"playNextVideo"in J&&t(15,v=J.playNextVideo),"playPrevVideo"in J&&t(16,E=J.playPrevVideo),"repeatPlaylist"in J&&t(17,H=J.repeatPlaylist),"toggleFullscreen"in J&&t(18,U=J.toggleFullscreen),"seekToInteractive"in J&&t(19,W=J.seekToInteractive),"playPrevChapter"in J&&t(20,ne=J.playPrevChapter),"onDisabledPlayPrevChapterClick"in J&&t(21,de=J.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in J&&t(22,q=J.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,K,n,oe,ce,z,x,P]}var gc=class extends N{constructor(e){super(),O(this,e,m5,d5,B,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,nextButtonActive:11,prevButtonActive:12,isOneVideoPlaylist:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,seekToInteractive:19,playPrevChapter:20,onDisabledPlayPrevChapterClick:21,onDisabledSeekToInteractiveClick:22})}},Sl=gc;function p5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_100684"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","43.996"),f(s,"height","49.5"),f(s,"x","2.5"),f(s,"y","0"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,T)},m(v,E){w(v,e,E),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function _5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var bc=class extends N{constructor(e){super(),O(this,e,_5,p5,B,{})}},Tp=bc;function h5(i){let e,t;return e=new Tp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function g5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var vc=class extends N{constructor(e){super(),O(this,e,g5,h5,B,{reversed:1})}},Ip=vc;function b5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F=i[2].default,T=Le(F,i,i[1],null),v=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],E={};for(let H=0;H<v.length;H+=1)E=se(E,v[H]);return{c(){e=M("svg"),T&&T.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("clipPath"),a=M("path"),l=M("filter"),u=M("feFlood"),c=M("feColorMatrix"),m=M("feOffset"),h=M("feGaussianBlur"),C=M("feColorMatrix"),g=M("feBlend"),S=M("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(s,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_104204"),f(S,"result","shape"),f(l,"id","a"),f(l,"width","51"),f(l,"height","45"),f(l,"x","-1.5"),f(l,"y","1.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,E)},m(H,U){w(H,e,U),T&&T.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(r,l),_(l,u),_(l,c),_(l,m),_(l,h),_(l,C),_(l,g),_(l,S),k=!0},p(H,[U]){T&&T.p&&(!k||U&2)&&Re(T,F,H,H[1],k?Ve(F,H[1],U,null):Be(H[1]),null),we(e,E=He(v,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},U&1&&H[0]]))},i(H){k||(d(T,H),k=!0)},o(H){p(T,H),k=!1},d(H){H&&y(e),T&&T.d(H)}}}function v5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var yc=class extends N{constructor(e){super(),O(this,e,v5,b5,B,{})}},Pp=yc;function y5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T=i[2].default,v=Le(T,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],H={};for(let U=0;U<E.length;U+=1)H=se(H,E[U]);return{c(){e=M("svg"),v&&v.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),s=M("defs"),a=M("clipPath"),l=M("path"),u=M("filter"),c=M("feFlood"),m=M("feColorMatrix"),h=M("feOffset"),C=M("feGaussianBlur"),g=M("feColorMatrix"),S=M("feBlend"),k=M("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(l,"fill","#fff"),f(l,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(C,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"result","effect1_dropShadow_2260_104293"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2260_104293"),f(k,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),we(e,H)},m(U,W){w(U,e,W),v&&v.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(e,s),_(s,a),_(a,l),_(s,u),_(u,c),_(u,m),_(u,h),_(u,C),_(u,g),_(u,S),_(u,k),F=!0},p(U,[W]){v&&v.p&&(!F||W&2)&&Re(v,T,U,U[1],F?Ve(T,U[1],W,null):Be(U[1]),null),we(e,H=He(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},W&1&&U[0]]))},i(U){F||(d(v,U),F=!0)},o(U){p(v,U),F=!1},d(U){U&&y(e),v&&v.d(U)}}}function w5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wc=class extends N{constructor(e){super(),O(this,e,w5,y5,B,{})}},Ep=wc;function k5(i){let e,t;return e=new Pp({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function C5(i){let e,t;return e=new Ep({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function S5(i){let e,t,n,o,r=[C5,k5],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function T5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var kc=class extends N{constructor(e){super(),O(this,e,T5,S5,B,{isOff:0})}},Cc=kc;function I5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_106627"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","40.098"),f(s,"height","27.785"),f(s,"x","3.402"),f(s,"y","10.105"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,T)},m(v,E){w(v,e,E),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function P5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sc=class extends N{constructor(e){super(),O(this,e,P5,I5,B,{})}},Ap=Sc;function E5(i){let e,t;return e=new Ap({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function A5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Tc=class extends N{constructor(e){super(),O(this,e,A5,E5,B,{reversed:1})}},Mp=Tc;function M5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S=i[2].default,k=Le(S,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],T={};for(let v=0;v<F.length;v+=1)T=se(T,F[v]);return{c(){e=M("svg"),k&&k.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),s=M("filter"),a=M("feFlood"),l=M("feColorMatrix"),u=M("feOffset"),c=M("feGaussianBlur"),m=M("feColorMatrix"),h=M("feBlend"),C=M("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2340_106922"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","37"),f(s,"height","37"),f(s,"x","5.5"),f(s,"y","5.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,T)},m(v,E){w(v,e,E),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,C),g=!0},p(v,[E]){k&&k.p&&(!g||E&2)&&Re(k,S,v,v[1],g?Ve(S,v[1],E,null):Be(v[1]),null),we(e,T=He(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){g||(d(k,v),g=!0)},o(v){p(k,v),g=!1},d(v){v&&y(e),k&&k.d(v)}}}function L5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ic=class extends N{constructor(e){super(),O(this,e,L5,M5,B,{})}},Lp=Ic;function V5(i){let e,t;return e=new Lp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function R5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Pc=class extends N{constructor(e){super(),O(this,e,R5,V5,B,{reversed:1})}},Vp=Pc;function B5(i){be(i,"svelte-1ad3n06",`.hot-key-helpers-container.svelte-1ad3n06.svelte-1ad3n06{position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-1ad3n06>div.svelte-1ad3n06{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-1ad3n06.svelte-1ad3n06{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-1ad3n06.svelte-1ad3n06{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-1ad3n06.svelte-1ad3n06{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-1ad3n06.svelte-1ad3n06{visibility:hidden;animation:svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-1ad3n06-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-1ad3n06-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function Rp(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,s,a,l,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,C,g,S,k,F=t&&Bp(i),T=i[4]==="PAUSE"&&Np(i),v=i[4]==="PLAY"&&Dp(i),E=i[4]==="REPLAY"&&Op(i),H=i[4]==="SUBTITLES_OFF"&&Fp(i),U=i[4]==="SUBTITLES_ON"&&Hp(i),W=u&&qp(i),ne=m&&Up(i),de=i[4]==="MUTE"&&zp(i),q=i[4]==="VOLUME"&&Wp(i),X=i[5]&&Kp(i);return{c(){e=I("div"),F&&F.c(),n=Y(),T&&T.c(),o=Y(),v&&v.c(),r=Y(),E&&E.c(),s=Y(),H&&H.c(),a=Y(),U&&U.c(),l=Y(),W&&W.c(),c=Y(),ne&&ne.c(),h=Y(),de&&de.c(),C=Y(),q&&q.c(),g=Y(),X&&X.c(),S=Xe(),f(e,"class","svelte-1ad3n06")},m(oe,K){w(oe,e,K),F&&F.m(e,null),_(e,n),T&&T.m(e,null),_(e,o),v&&v.m(e,null),_(e,r),E&&E.m(e,null),_(e,s),H&&H.m(e,null),_(e,a),U&&U.m(e,null),_(e,l),W&&W.m(e,null),_(e,c),ne&&ne.m(e,null),_(e,h),de&&de.m(e,null),_(e,C),q&&q.m(e,null),w(oe,g,K),X&&X.m(oe,K),w(oe,S,K),k=!0},p(oe,K){K&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(oe[4])),t?F?(F.p(oe,K),K&16&&d(F,1)):(F=Bp(oe),F.c(),d(F,1),F.m(e,n)):F&&(ae(),p(F,1,1,()=>{F=null}),ue()),oe[4]==="PAUSE"?T?K&16&&d(T,1):(T=Np(oe),T.c(),d(T,1),T.m(e,o)):T&&(ae(),p(T,1,1,()=>{T=null}),ue()),oe[4]==="PLAY"?v?K&16&&d(v,1):(v=Dp(oe),v.c(),d(v,1),v.m(e,r)):v&&(ae(),p(v,1,1,()=>{v=null}),ue()),oe[4]==="REPLAY"?E?K&16&&d(E,1):(E=Op(oe),E.c(),d(E,1),E.m(e,s)):E&&(ae(),p(E,1,1,()=>{E=null}),ue()),oe[4]==="SUBTITLES_OFF"?H?K&16&&d(H,1):(H=Fp(oe),H.c(),d(H,1),H.m(e,a)):H&&(ae(),p(H,1,1,()=>{H=null}),ue()),oe[4]==="SUBTITLES_ON"?U?K&16&&d(U,1):(U=Hp(oe),U.c(),d(U,1),U.m(e,l)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),K&16&&(u=["RATE_DOWN","RATE_UP"].includes(oe[4])),u?W?(W.p(oe,K),K&16&&d(W,1)):(W=qp(oe),W.c(),d(W,1),W.m(e,c)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),K&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(oe[4])),m?ne?(ne.p(oe,K),K&16&&d(ne,1)):(ne=Up(oe),ne.c(),d(ne,1),ne.m(e,h)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),oe[4]==="MUTE"?de?K&16&&d(de,1):(de=zp(oe),de.c(),d(de,1),de.m(e,C)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),oe[4]==="VOLUME"?q?K&16&&d(q,1):(q=Wp(oe),q.c(),d(q,1),q.m(e,null)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),oe[5]?X?X.p(oe,K):(X=Kp(oe),X.c(),X.m(S.parentNode,S)):X&&(X.d(1),X=null)},i(oe){k||(d(F),d(T),d(v),d(E),d(H),d(U),d(W),d(ne),d(de),d(q),k=!0)},o(oe){p(F),p(T),p(v),p(E),p(H),p(U),p(W),p(ne),p(de),p(q),k=!1},d(oe){oe&&(y(e),y(g),y(S)),F&&F.d(),T&&T.d(),v&&v.d(),E&&E.d(),H&&H.d(),U&&U.d(),W&&W.d(),ne&&ne.d(),de&&de.d(),q&&q.d(),X&&X.d(oe)}}}function Bp(i){let e,t;return e=new Ip({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Np(i){let e,t;return e=new Dr({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Dp(i){let e,t;return e=new Oo({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Op(i){let e,t;return e=new vl({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Fp(i){let e,t;return e=new Cc({props:{isOff:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Hp(i){let e,t;return e=new Cc({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function qp(i){let e,t;return e=new Mp({props:{reversed:i[4]==="RATE_UP"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Up(i){let e,t;return e=new Vp({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function zp(i){let e,t;return e=new ur({props:{volume:0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Wp(i){let e,t;return e=new ur({props:{volume:1}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function Kp(i){let e,t;return{c(){e=I("span"),t=qe(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&32&&Ge(t,n[5])},d(n){n&&y(e)}}}function N5(i){let e,t,n=!i[1]&&i[4]&&Rp(i);return{c(){e=I("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),G(e,"hidden",i[1]),G(e,"hot-key-helpers-container--left",i[2]),G(e,"hot-key-helpers-container--right",i[3])},m(o,r){w(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=Rp(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),p(n,1,1,()=>{n=null}),ue()),(!t||r&2)&&G(e,"hidden",o[1]),(!t||r&4)&&G(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&G(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d()}}}function D5(i,e,t){let n,o=me,r=()=>(o(),o=Zt(s,h=>t(6,n=h)),s);i.$$.on_destroy.push(()=>o());let{data:s}=e;r();let a,l,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,s=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,l=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=j(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[s,a,l,u,c,m,n]}var Ec=class extends N{constructor(e){super(),O(this,e,D5,N5,B,{data:0},B5)}},xp=Ec;function O5(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function F5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ac=class extends N{constructor(e){super(),O(this,e,F5,O5,B,{})}},jp=Ac;function H5(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function q5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Mc=class extends N{constructor(e){super(),O(this,e,q5,H5,B,{})}},Gp=Mc;function U5(i){let e,t;return e=new Gp({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function z5(i){let e,t;return e=new jp({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function W5(i){let e,t,n,o,r=[z5,U5],s=[];function a(l,u){return l[1]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),w(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),s[e].d(l)}}}function K5(i,e,t){let n,{direction:o="left"}=e,r,s;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(o)),t(0,s=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=s?"transform: rotate(180deg);":void 0)},[s,r,n,o]}var Lc=class extends N{constructor(e){super(),O(this,e,K5,W5,B,{direction:3})}},cr=Lc;function x5(i){be(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function j5(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v;return r=new cr({props:{direction:"up"}}),l=new cr({props:{direction:"up"}}),h=new cr({props:{direction:"up"}}),S=new cr({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),R(r.$$.fragment),s=Y(),a=I("div"),R(l.$$.fragment),u=Y(),c=I("div"),m=I("div"),R(h.$$.fragment),C=Y(),g=I("div"),R(S.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",k=j("aria_label_spherical_control")),G(e,"m-shifted",i[0])},m(E,H){w(E,e,H),_(e,t),_(t,n),_(n,o),L(r,o,null),_(n,s),_(n,a),L(l,a,null),_(t,u),_(t,c),_(c,m),L(h,m,null),_(c,C),_(c,g),L(S,g,null),F=!0,T||(v=[ke(o,"mousedown",i[1]),ke(o,"mouseup",i[5]),ke(o,"mouseleave",i[5]),ke(a,"mousedown",i[3]),ke(a,"mouseup",i[5]),ke(a,"mouseleave",i[5]),ke(m,"mousedown",i[4]),ke(m,"mouseup",i[5]),ke(m,"mouseleave",i[5]),ke(g,"mousedown",i[2]),ke(g,"mouseup",i[5]),ke(g,"mouseleave",i[5]),ke(e,"keydown",i[6]),ke(e,"keyup",i[7])],T=!0)},p(E,[H]){(!F||H&1)&&G(e,"m-shifted",E[0])},i(E){F||(d(r.$$.fragment,E),d(l.$$.fragment,E),d(h.$$.fragment,E),d(S.$$.fragment,E),F=!0)},o(E){p(r.$$.fragment,E),p(l.$$.fragment,E),p(h.$$.fragment,E),p(S.$$.fragment,E),F=!1},d(E){E&&y(e),V(r),V(l),V(h),V(S),T=!1,ct(v)}}}function G5(i,e,t){let{isShifted:n=!1}=e,o=nt(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=C=>{if(r.has(C.code))switch(C.preventDefault(),C.stopPropagation(),C.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=C=>{r.has(C.code)&&(C.preventDefault(),C.stopPropagation(),c())};return i.$$set=C=>{"isShifted"in C&&t(0,n=C.isShifted)},[n,s,a,l,u,c,m,h]}var Vc=class extends N{constructor(e){super(),O(this,e,G5,j5,B,{isShifted:0},x5)}},Tl=Vc;function Y5(i){be(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function Yp(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function Qp(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function Zp(i){let e,t;function n(s,a){return s[7]&&s[8]?X5:s[5]?Z5:Q5}let o=n(i,-1),r=o(i);return{c(){e=I("div"),t=I("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),G(e,"mobile",i[3])},m(s,a){w(s,e,a),_(e,t),r.m(t,null)},p(s,a){o===(o=n(s,a))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(t,null))),a&8&&G(e,"mobile",s[3])},d(s){s&&y(e),r.d()}}}function Q5(i){let e,t=bt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Xp(Yp(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Xe()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);w(o,e,r)},p(o,r){if(r&18){t=bt(o[1]);let s;for(s=0;s<t.length;s+=1){let a=Yp(o,t,s);n[s]?n[s].p(a,r):(n[s]=Xp(a),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&y(e),oi(n,o)}}}function Z5(i){let e,t,n=bt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=$p(Qp(i,n,r));return{c(){e=I("span"),t=I("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),di(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){w(r,e,s),_(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,s){if(s&68){n=bt(r[6]);let a;for(a=0;a<n.length;a+=1){let l=Qp(r,n,a);o[a]?o[a].p(l,s):(o[a]=$p(l),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}s&16&&di(t,"font-size",r[4]+"px")},d(r){r&&y(e),oi(o,r)}}}function X5(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=qe(n),f(t,"class","caption-segment svelte-ovfyp5"),di(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){w(r,e,s),_(e,t),_(t,o)},p(r,s){s&16&&di(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function Xp(i){let e,t,n=i[16]+"",o,r;return{c(){e=I("span"),t=I("span"),o=qe(n),r=Y(),f(t,"class","caption-segment svelte-ovfyp5"),di(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(s,a){w(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[16]+"")&&Ge(o,n),a&16&&di(t,"font-size",s[4]+"px")},d(s){s&&y(e)}}}function Jp(i){let e=i[16]+"",t;return{c(){t=qe(e)},m(n,o){w(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(t,e)},d(n){n&&y(t)}}}function $p(i){let e,t=(!i[17]||i[17]<=i[2])&&Jp(i);return{c(){t&&t.c(),e=Xe()},m(n,o){t&&t.m(n,o),w(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=Jp(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function J5(i){let e,t=i[1].length>0&&Zp(i);return{c(){e=I("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),G(e,"shifted",i[0]),G(e,"auto",i[5]&&!i[8])},m(n,o){w(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=Zp(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&G(e,"shifted",n[0]),o&288&&G(e,"auto",n[5]&&!n[8])},i:me,o:me,d(n){n&&y(e),t&&t.d()}}}function $5(i,e,t){let n,o,{shifted:r}=e,{captions:s}=e,{position:a}=e,{playerSize:l}=e,{isMobile:u=!1}=e,c=nt(),m=xt(),h=c.state.currentSubtitle$;D(i,h,v=>t(12,n=v));let C=c.state.isAutoSubtitleCaptionVisible$;D(i,C,v=>t(8,o=v));let g,S,k,F,T;return Vt(()=>{T=window.setTimeout(()=>{C.set(!1)},m.autoSubtitlesTimeout)}),Zn(()=>{window.clearTimeout(T)}),i.$$set=v=>{"shifted"in v&&t(0,r=v.shifted),"captions"in v&&t(1,s=v.captions),"position"in v&&t(2,a=v.position),"playerSize"in v&&t(11,l=v.playerSize),"isMobile"in v&&t(3,u=v.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let v=l.width*.02;t(4,g=v<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:v)}i.$$.dirty&2&&t(5,S=s.some(v=>v.type==="timestamp")),i.$$.dirty&2&&t(6,k=s.reduce((v,{type:E,value:H})=>(E==="timestamp"?v.push({timeAppeared:Number(H),value:""}):v.length===0?v.push({value:String(H)}):v[v.length-1].value=String(H),v),[])),i.$$.dirty&4096&&t(7,F=!!n.isAuto)},[r,s,a,u,g,S,k,F,o,h,C,l,n]}var Rc=class extends N{constructor(e){super(),O(this,e,$5,J5,B,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},Y5)}},Il=Rc;function e6(i){be(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function e0(i){let e,t,n;return{c(){e=I("div"),t=qe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=qe(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){w(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&Ge(n,o[1])},d(o){o&&y(e)}}}function t6(i){let e,t,n,o,r,s,a=i[1]&&e0(i);return{c(){e=I("div"),t=I("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=Y(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(l,u){w(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=ke(e,"click",i[2]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=e0(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${l[0]||""}')`)&&f(e,"style",o)},i:me,o:me,d(l){l&&y(e),a&&a.d(),r=!1,s()}}}function i6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(s){Rn.call(this,i,s)}return i.$$set=s=>{"thumbUrl"in s&&t(0,n=s.thumbUrl),"chromecastDeviceName"in s&&t(1,o=s.chromecastDeviceName)},[n,o,r]}var Bc=class extends N{constructor(e){super(),O(this,e,i6,t6,B,{thumbUrl:0,chromecastDeviceName:1},e6)}},Pl=Bc;function n6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function o6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Nc=class extends N{constructor(e){super(),O(this,e,o6,n6,B,{})}},t0=Nc;function r6(i){be(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function s6(i){let e,t,n;return t=new t0({}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}var Dc=class extends N{constructor(e){super(),O(this,e,null,s6,B,{},r6)}},El=Dc;function l6(i){be(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function a6(i){let e,t,n,o,r,s,a,l,u,c;return r=new Oo({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=Y(),R(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",s=j("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),G(e,"hidden",i[1])},m(m,h){w(m,e,h),_(e,t),_(t,n),_(t,o),L(r,t,null),l=!0,u||(c=[ke(t,"keydown",i[3]),ke(e,"click",gt(function(){Qt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!l||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!l||h&2)&&G(e,"hidden",i[1])},i(m){l||(d(r.$$.fragment,m),l=!0)},o(m){p(r.$$.fragment,m),l=!1},d(m){m&&y(e),V(r),u=!1,ct(c)}}}function u6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=nt().ui.startedByKeyboard$,l=u=>{let c=u.code;["Enter","Space"].includes(c)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,l]}var Oc=class extends N{constructor(e){super(),O(this,e,u6,a6,B,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},l6)}get handlePressKey(){return this.$$.ctx[3]}},Al=Oc;function c6(i){be(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
26
|
+
Audio: `),v=Oe(h),g=Y(),C=Oe(I),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(V,S){k(V,e,S),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a),_(o,l),_(o,c),_(o,m),_(o,v),_(o,g),_(o,C)},p(V,S){S&1&&s!==(s=(V[0].videoCodec||"")+"")&&Ke(a,s),S&1&&u!==(u=V[0].hdr?"(HDR)":"")&&Ke(c,u),S&1&&h!==(h=(V[0].audioCodec||"")+"")&&Ke(v,h),S&1&&I!==(I=V[0].audioLanguage?`(${V[0].audioLanguage})`:"")&&Ke(C,I)},d(V){V&&w(e)}}}function v1(i){let e,t,n,o,r=i[0].viewport+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].viewport+"")&&Ke(s,r)},d(a){a&&w(e)}}}function y1(i){let e,t,n,o,r=i[0].videoSize+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].videoSize+"")&&Ke(s,r)},d(a){a&&w(e)}}}function w1(i){let e,t,n,o,r=i[0].cdn+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=a[0].cdn+"")&&Ke(s,r)},d(a){a&&w(e)}}}function k1(i){let e,t,n,o,r=i[0].volume+"",s,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=Y(),o=P("span"),s=Oe(r),a=Oe(" %"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(l,u){k(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].volume+"")&&Ke(s,r)},d(l){l&&w(e)}}}function C1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",s,a;return{c(){e=P("div"),t=P("div"),t.textContent="Buffer",n=Y(),o=P("span"),s=Oe(r),a=Oe(" s"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(l,u){k(l,e,u),_(e,t),_(e,n),_(e,o),_(o,s),_(o,a)},p(l,u){u&1&&r!==(r=l[0].buffer.toFixed(2)+"")&&Ke(s,r)},d(l){l&&w(e)}}}function S1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(P1).map(E1).join(" & ")+"",s;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=Y(),o=P("span"),s=Oe(r),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(o,s)},p(a,l){l&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(P1).map(E1).join(" & ")+"")&&Ke(s,r)},d(a){a&&w(e)}}}function T1(i){let e,t,n,o,r,s,a=i[0].speed.toFixed(2)+"",l,u,c;return o=new Js({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=Y(),D(o.$$.fragment),r=Y(),s=P("span"),l=Oe(a),u=Oe(" Kbps"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(m,h){k(m,e,h),_(e,t),_(e,n),R(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let v={};h&32&&(v.values=m[5]),o.$set(v),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ke(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&w(e),B(o)}}}function I1(i){let e,t,n,o,r,s,a=i[0].bitrate.toFixed(2)+"",l,u,c;return o=new Js({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=Y(),D(o.$$.fragment),r=Y(),s=P("span"),l=Oe(a),u=Oe(" Kbps"),f(t,"class","svelte-k5ymwy"),f(e,"class","svelte-k5ymwy")},m(m,h){k(m,e,h),_(e,t),_(e,n),R(o,e,null),_(e,r),_(e,s),_(s,l),_(s,u),c=!0},p(m,h){let v={};h&64&&(v.values=m[6]),o.$set(v),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ke(l,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){p(o.$$.fragment,m),c=!1},d(m){m&&w(e),B(o)}}}function Ag(i){let e,t,n,o,r,s,a,l,u=i[0].version+"",c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,ae,Q,$,J,W,ue,x,K,A,fe,X,Me,ie,be,Te,Ie,Pe,ot,Ee,ze=i[0].id&&_1(i),te=i[0].vsid&&h1(i),pe=i[0].provider&&g1(i),Ce=(i[0].videoCodec||i[0].audioCodec)&&b1(i),We=i[0].viewport&&v1(i),nt=i[0].videoSize&&y1(i),st=i[0].cdn&&w1(i),rt=i[0].volume&&k1(i),Qe=i[0].buffer&&C1(i),ce=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&S1(i),Se=i[0].speed&&T1(i),$e=i[0].bitrate&&I1(i);return Me=new Js({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=Y(),o=P("div"),r=P("div"),s=P("div"),s.textContent="Version",a=Y(),l=P("span"),c=Oe(u),m=Y(),ze&&ze.c(),h=Y(),te&&te.c(),v=Y(),pe&&pe.c(),g=Y(),Ce&&Ce.c(),I=Y(),We&&We.c(),C=Y(),nt&&nt.c(),V=Y(),st&&st.c(),S=Y(),rt&&rt.c(),y=Y(),Qe&&Qe.c(),E=Y(),ce&&ce.c(),z=Y(),N=P("div"),L=P("div"),L.textContent="Dropped",ee=Y(),ae=P("span"),Q=Oe(i[2]),$=Oe(" / "),J=Oe(i[1]),W=Oe(" frames"),ue=Y(),Se&&Se.c(),x=Y(),$e&&$e.c(),K=Y(),A=P("div"),fe=P("div"),fe.textContent="FPS",X=Y(),D(Me.$$.fragment),ie=Y(),be=P("span"),Te=Oe(i[3]),f(t,"class","close svelte-k5ymwy"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(s,"class","svelte-k5ymwy"),f(r,"class","svelte-k5ymwy"),f(L,"class","svelte-k5ymwy"),f(N,"class","svelte-k5ymwy"),f(fe,"class","svelte-k5ymwy"),f(A,"class","svelte-k5ymwy"),f(o,"class","content svelte-k5ymwy"),f(e,"class","container svelte-k5ymwy"),f(e,"role","region"),f(e,"aria-label",Ie=G("aria_label_debug_panel")),j(e,"container-mobile",i[7])},m(De,et){k(De,e,et),_(e,t),_(e,n),_(e,o),_(o,r),_(r,s),_(r,a),_(r,l),_(l,c),_(o,m),ze&&ze.m(o,null),_(o,h),te&&te.m(o,null),_(o,v),pe&&pe.m(o,null),_(o,g),Ce&&Ce.m(o,null),_(o,I),We&&We.m(o,null),_(o,C),nt&&nt.m(o,null),_(o,V),st&&st.m(o,null),_(o,S),rt&&rt.m(o,null),_(o,y),Qe&&Qe.m(o,null),_(o,E),ce&&ce.m(o,null),_(o,z),_(o,N),_(N,L),_(N,ee),_(N,ae),_(ae,Q),_(ae,$),_(ae,J),_(ae,W),_(o,ue),Se&&Se.m(o,null),_(o,x),$e&&$e.m(o,null),_(o,K),_(o,A),_(A,fe),_(A,X),R(Me,A,null),_(A,ie),_(A,be),_(be,Te),Pe=!0,ot||(Ee=ke(t,"click",gt(i[9])),ot=!0)},p(De,[et]){(!Pe||et&1)&&u!==(u=De[0].version+"")&&Ke(c,u),De[0].id?ze?ze.p(De,et):(ze=_1(De),ze.c(),ze.m(o,h)):ze&&(ze.d(1),ze=null),De[0].vsid?te?te.p(De,et):(te=h1(De),te.c(),te.m(o,v)):te&&(te.d(1),te=null),De[0].provider?pe?pe.p(De,et):(pe=g1(De),pe.c(),pe.m(o,g)):pe&&(pe.d(1),pe=null),De[0].videoCodec||De[0].audioCodec?Ce?Ce.p(De,et):(Ce=b1(De),Ce.c(),Ce.m(o,I)):Ce&&(Ce.d(1),Ce=null),De[0].viewport?We?We.p(De,et):(We=v1(De),We.c(),We.m(o,C)):We&&(We.d(1),We=null),De[0].videoSize?nt?nt.p(De,et):(nt=y1(De),nt.c(),nt.m(o,V)):nt&&(nt.d(1),nt=null),De[0].cdn?st?st.p(De,et):(st=w1(De),st.c(),st.m(o,S)):st&&(st.d(1),st=null),De[0].volume?rt?rt.p(De,et):(rt=k1(De),rt.c(),rt.m(o,y)):rt&&(rt.d(1),rt=null),De[0].buffer?Qe?Qe.p(De,et):(Qe=C1(De),Qe.c(),Qe.m(o,E)):Qe&&(Qe.d(1),Qe=null),De[0].currentVideoSegmentLength||De[0].currentAudioSegmentLength?ce?ce.p(De,et):(ce=S1(De),ce.c(),ce.m(o,z)):ce&&(ce.d(1),ce=null),(!Pe||et&4)&&Ke(Q,De[2]),(!Pe||et&2)&&Ke(J,De[1]),De[0].speed?Se?(Se.p(De,et),et&1&&d(Se,1)):(Se=T1(De),Se.c(),d(Se,1),Se.m(o,x)):Se&&(se(),p(Se,1,1,()=>{Se=null}),le()),De[0].bitrate?$e?($e.p(De,et),et&1&&d($e,1)):($e=I1(De),$e.c(),d($e,1),$e.m(o,K)):$e&&(se(),p($e,1,1,()=>{$e=null}),le());let He={};et&16&&(He.values=De[4]),Me.$set(He),(!Pe||et&8)&&Ke(Te,De[3]),(!Pe||et&128)&&j(e,"container-mobile",De[7])},i(De){Pe||(d(Se),d($e),d(Me.$$.fragment,De),Pe=!0)},o(De){p(Se),p($e),p(Me.$$.fragment,De),Pe=!1},d(De){De&&w(e),ze&&ze.d(),te&&te.d(),pe&&pe.d(),Ce&&Ce.d(),We&&We.d(),nt&&nt.d(),st&&st.d(),rt&&rt.d(),Qe&&Qe.d(),ce&&ce.d(),Se&&Se.d(),$e&&$e.d(),B(Me),ot=!1,Ee()}}}var P1=({value:i})=>i,E1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function Mg(i,e,t){let n,o=it(),r=o.ui.debugPanelVisible,s=o.ui.isMobile;q(i,s,y=>t(7,n=y));let a=()=>{p1.remove(ts),r.set(!1)},l=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,v=new Er(60),g=new Er(60),I=new Er(60),C=[],V=[],S=[];return Nt(()=>{p1.set(ts,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let y=window.setInterval(()=>{t(0,l=o.actions.internal.getDebugPanelData())},500),E;return u&&(E=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let z=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=z-c),t(1,c=z),v.push(h),l.speed&&g.push(l.speed),l.bitrate&&I.push(l.bitrate),t(4,C=v.getValuesFromBottom()),t(5,V=g.getValuesFromBottom()),t(6,S=I.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),E&&clearInterval(E)}}),[l,c,m,h,C,V,S,n,s,a]}var Ua=class extends H{constructor(e){super(),U(this,e,Mg,Ag,F,{},Eg)}},$s=Ua;function Lg(i){he(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function Vg(i){let e,t,n;return{c(){e=P("div"),f(e,"class","close svelte-1ome55p")},m(o,r){k(o,e,r),t||(n=ke(e,"click",gt(i[0])),t=!0)},p:de,i:de,o:de,d(o){o&&w(e),t=!1,n()}}}function Rg(i){function e(t){Nn.call(this,i,t)}return[e]}var za=class extends H{constructor(e){super(),U(this,e,Rg,Vg,F,{},Lg)}},el=za;import{noop as Bg}from"@vkontakte/videoplayer-shared";function Ng(i){he(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
|
|
27
|
+
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function Dg(i){let e,t,n,o,r,s,a;return{c(){e=P("div"),t=P("canvas"),n=Y(),o=O("svg"),r=O("g"),s=O("g"),a=O("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(s,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(l,u){k(l,e,u),_(e,t),i[3](t),_(e,n),_(e,o),_(o,r),_(r,s),_(s,a)},p:de,i:de,o:de,d(l){l&&w(e),i[3](null)}}}var A1=5e3;function Og(i,e,t){let{isRunning:n=!0}=e,{onTimerEnded:o=Bg}=e,r,s,a,l,u,c,m=()=>{n&&(l&&c&&(a=Date.now()-c*A1,l=!1),c=(Date.now()-a)/A1,c<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),s==null||s.stroke(),u=requestAnimationFrame(m)):o())};Nt(()=>{if(s=r.getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",a=Date.now(),()=>{cancelAnimationFrame(u)}});function h(v){ge[v?"unshift":"push"](()=>{r=v,t(0,r)})}return i.$$set=v=>{"isRunning"in v&&t(1,n=v.isRunning),"onTimerEnded"in v&&t(2,o=v.onTimerEnded)},i.$$.update=()=>{i.$$.dirty&2&&(n?u=requestAnimationFrame(m):l=!0)},[r,n,o,h]}var xa=class extends H{constructor(e){super(),U(this,e,Og,Dg,F,{isRunning:1,onTimerEnded:2},Ng)}},tl=xa;function Fg(i){he(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function M1(i){let e,t;return e=new tl({props:{isRunning:i[3],onTimerEnded:i[6]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isRunning=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Hg(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z;a=new el({}),a.$on("click",i[7]);let N=i[2]&&M1(i);return{c(){e=P("div"),t=Y(),n=P("div"),o=P("div"),r=P("div"),r.textContent=`${G("end_screen_next_video")}`,s=Y(),D(a.$$.fragment),l=Y(),u=P("div"),c=P("div"),m=P("div"),h=P("div"),v=Y(),N&&N.c(),I=Y(),C=P("div"),V=P("div"),S=Oe(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(V,"class","title svelte-kisfwc"),f(C,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(L,ee){k(L,e,ee),k(L,t,ee),k(L,n,ee),_(n,o),_(o,r),_(o,s),R(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,v),N&&N.m(m,null),_(u,I),_(u,C),_(C,V),_(V,S),y=!0,E||(z=ke(u,"click",i[5]),E=!0)},p(L,[ee]){L[2]?N?(N.p(L,ee),ee&4&&d(N,1)):(N=M1(L),N.c(),d(N,1),N.m(m,null)):N&&(se(),p(N,1,1,()=>{N=null}),le()),(!y||ee&2&&g!==(g=`background-image: url('${L[1]}')`))&&f(m,"style",g),(!y||ee&1)&&Ke(S,L[0])},i(L){y||(d(a.$$.fragment,L),d(N),y=!0)},o(L){p(a.$$.fragment,L),p(N),y=!1},d(L){L&&(w(e),w(t),w(n)),B(a),N&&N.d(),E=!1,z()}}}function qg(i,e,t){let n,{title:o}=e,{thumb:r}=e,{playNextVideo:s}=e,a=it(),l=a.ui.timerNextVideoRunning$;q(i,l,C=>t(3,n=C));let u=a.actions.internal.nextVideoAnnouncementClick,c=a.actions.internal.nextVideoAnnouncementAuto,m=a.actions.internal.nextVideoAnnouncementCancel,h=!0,v=()=>{s(),u()},g=()=>{s(),c()},I=()=>{h&&(t(2,h=!1),m())};return i.$$set=C=>{"title"in C&&t(0,o=C.title),"thumb"in C&&t(1,r=C.thumb),"playNextVideo"in C&&t(8,s=C.playNextVideo)},[o,r,h,n,l,v,g,I,s]}var Wa=class extends H{constructor(e){super(),U(this,e,qg,Hg,F,{title:0,thumb:1,playNextVideo:8},Fg)}},L1=Wa;import{PlaybackState as ar}from"@vkontakte/videoplayer-core";import{checkNever as zg}from"@vkontakte/videoplayer-shared";import{SeekAction as Cn}from"@vkontakte/videoplayer-statistics";var Ka=(i,e)=>Math.min(+(i+e).toFixed(2),1),ja=(i,e)=>Math.max(+(i-e).toFixed(2),0),il=(i,e,t)=>{let n=Ka(e,t);e<1&&i.actions.internal.setVolume(n)},nl=(i,e,t)=>{let n=ja(e,t);e>0&&i.actions.internal.setVolume(n)};var Do=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function xg(i){he(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Wg(i){let e,t,n,o,r,s=i[26].default,a=Le(s,i,i[25],null);return{c(){e=P("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=G("aria_label_video_player"))},m(l,u){k(l,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[ke(e,"keyup",i[17]),ke(e,"keydown",i[16])],o=!0)},p(l,u){a&&a.p&&(!n||u[0]&33554432)&&Re(a,s,l,l[25],n?Ve(s,l[25],u,null):Be(l[25]),null)},i(l){n||(d(a,l),n=!0)},o(l){p(a,l),n=!1},d(l){l&&w(e),a&&a.d(l),i[27](null),o=!1,at(r)}}}function Kg(i,e,t){var ut,ct;let n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,{$$slots:S={},$$scope:y}=e,{isAds:E}=e,{hideContextMenu:z}=e,{toggleFullscreen:N}=e,{showHotKeyHelpers:L}=e,{showKeyMap:ee}=e,{fakePlayButtonHandler:ae}=e,Q=it(),$=Lt(),J=Q.getLogger().createComponentLog("KeyboardControls component"),W=Q.state.playbackState$;q(i,W,_e=>t(31,o=_e));let ue=Q.ads.playbackState;q(i,ue,_e=>t(30,n=_e));let x=Q.state.positionExact$;q(i,x,_e=>t(41,g=_e));let K=Q.state.duration$;q(i,K,_e=>t(40,v=_e));let A=Q.state.volume$;q(i,A,_e=>t(44,V=_e));let fe=Q.ui.controls.disabledControls$;q(i,fe,_e=>t(39,h=_e));let X=Q.state.muted$;q(i,X,_e=>t(34,a=_e));let Me=Q.state.currentSubtitle$;q(i,Me,_e=>t(33,s=_e));let ie=Q.state.currentPlaybackRate$;q(i,ie,_e=>t(42,I=_e));let be=Q.state.availablePlaybackRates$;q(i,be,_e=>t(43,C=_e));let Te=Q.ui.contextMenu.openedByHotKey$,Ie=Q.ui.contextMenu.lastActiveElem$,Pe=Q.ui.contextMenu.visible$,ot=Q.ui.contextMenu.position$,Ee=Q.state.isEnded$;q(i,Ee,_e=>t(36,u=_e));let ze=Q.ui.overlayContainer$;q(i,ze,_e=>t(32,r=_e));let te=(ut=Q.callbacks)==null?void 0:ut.onAudioDoesNotExistHint,pe=(ct=Q.callbacks)==null?void 0:ct.onAudioDisabledHint,Ce=Q.state.isAudioAvailable$;q(i,Ce,_e=>t(35,l=_e));let We=Q.state.isAudioDisabled,nt=Q.state.isInteractiveTime$;q(i,nt,_e=>t(38,m=_e));let{showInteractiveTimeIndicatorTooltip$:st}=Dn();q(i,st,_e=>t(37,c=_e));let rt=0,Qe=!0,ce,Se=()=>ce==null?void 0:ce.focus(),$e=_e=>(_e!==Qe&&(Qe=_e,rt=0),rt+=1,($.controls.seekStepKeyboard+$.controls.seekStepKeyboard*rt)/1e3),De=_e=>{var Vt;let dt=_e.target,bt=(Vt=dt==null?void 0:dt.getAttribute("role"))==null?void 0:Vt.includes("menuitem"),Ct=dt.classList.contains("btn"),yt=_e.code;if(Ct&&yt==="Space")return;let Ye=id.has(yt);if(bt&&Ye)return;let Wt=!td.has(yt);if(_e.ctrlKey&&Wt||_e.altKey&&Wt||_e.metaKey)return;let $t=bt&&yt==="Escape";nd.has(yt)||$t||z();let zt=o===ar.PLAYING||o===ar.PAUSED,Dt=E&&(n==="paused"||n==="playing"),Kt=!Dt&&!h.has("TIMELINE");if(zt||Dt)switch(J({message:`key down, code: ${yt}`}),yt){case"KeyJ":case"ArrowLeft":{if(!Kt)break;if(_e.ctrlKey||_e.altKey){let xe=Q.actions.internal.getPrevEpisode();Q.actions.internal.seekToPrevEpisode(xe),xe&&L({type:"EPISODE_PREV",text:xe.text}),_e.preventDefault()}else{let xe=_e.shiftKey?$e(!1):$.controls.seekStepKeyboard/1e3,Ze=Math.max(g-xe,0);g>0&&(Q.actions.internal.seekTime(Ze,Cn.DOUBLE_TAP),L({type:"BACKWARD_SEEK",text:xe.toString()}),_e.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Kt)break;if(_e.ctrlKey||_e.altKey){let xe=Q.actions.internal.getNextEpisode();Q.actions.internal.seekToNextEpisode(xe),xe&&L({type:"EPISODE_NEXT",text:xe.text}),_e.preventDefault()}else{let xe=_e.shiftKey?$e(!0):$.controls.seekStepKeyboard/1e3,Ze=Math.min(g+xe,v);Math.round(g)<Math.round(v)&&(Q.actions.internal.seekTime(Ze,Cn.DOUBLE_TAP),L({type:"FORWARD_SEEK",text:xe.toString()}),_e.preventDefault())}break}case"ArrowUp":{if(Do({isAudioDisabled:We,audioDisabledHintCallback:pe,isAudioAvailable:l,audioIsNotExistHintCallback:te})){let xe=V,Ze=$.controls.volumeStepKeyboard,St=xe<=1;if(il(Q,xe,Ze),St){let jt=Math.round(Ka(xe,Ze)*100).toString();L({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:jt}})}}_e.preventDefault();break}case"ArrowDown":{if(Do({isAudioDisabled:We,audioDisabledHintCallback:pe,isAudioAvailable:l,audioIsNotExistHintCallback:te})){let xe=V,Ze=$.controls.volumeStepKeyboard,St=xe>=0;if(nl(Q,xe,Ze),St){let jt=Math.round(ja(xe,Ze)*100).toString();L({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:jt}})}}_e.preventDefault();break}case"Comma":{if(_e.shiftKey){Q.actions.internal.decrementPlaybackRate();let xe=C.find(Ze=>Ze.value===I);L({type:"RATE_DOWN",text:xe==null?void 0:xe.displayValue}),_e.preventDefault()}else{if(Dt||o!==ar.PAUSED)break;let xe=Math.max(g-$.controls.seekStepFrame/1e3,0);g>0&&(L({type:"BACKWARD_SEEK"}),Q.actions.internal.clearDelayedBufferingCheckTimeout(),Q.actions.internal.seekTime(xe,Cn.DOUBLE_TAP),_e.preventDefault())}break}case"Period":{if(_e.shiftKey){Q.actions.internal.incrementPlaybackRate();let xe=C.find(Ze=>Ze.value===I);L({type:"RATE_UP",text:xe==null?void 0:xe.displayValue}),_e.preventDefault()}else{if(Dt||o!==ar.PAUSED)break;let xe=Math.min(g+$.controls.seekStepFrame/1e3,v);g<v&&(L({type:"FORWARD_SEEK"}),Q.actions.internal.clearDelayedBufferingCheckTimeout(),Q.actions.internal.seekTime(xe,Cn.DOUBLE_TAP),_e.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&st.set(!1),ae)ae();else{Q.actions.internal.togglePlay();let xe="PLAY";o===ar.PAUSED?xe="PAUSE":u&&(xe="REPLAY"),L({type:xe})}_e.preventDefault();break;case"KeyM":{Do({isAudioDisabled:We,audioDisabledHintCallback:pe,isAudioAvailable:l,audioIsNotExistHintCallback:te})&&(L({type:a?"VOLUME":"MUTE"}),Q.actions.internal.toggleMuted()),_e.preventDefault();break}case"KeyF":N(),_e.preventDefault();break;case"KeyC":Q.actions.internal.toggleSubtitle(),s.value!=="off"?L({type:"SUBTITLES_ON",text:s==null?void 0:s.displayValue}):L({type:"SUBTITLES_OFF"}),_e.preventDefault();break;case"KeyI":Q.actions.internal.togglePictureInPicture(),_e.preventDefault();break;case"Digit1":case"Numpad1":if(_e.shiftKey){let xe=s1(r);ot.set(xe),Ie.set(dt),Te.set(!0),Pe.set(!0),_e.preventDefault();break}L(),Q.actions.internal.seekToPercent(.1,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit2":case"Numpad2":L(),Q.actions.internal.seekToPercent(.2,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit3":case"Numpad3":L(),Q.actions.internal.seekToPercent(.3,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit4":case"Numpad4":L(),Q.actions.internal.seekToPercent(.4,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit5":case"Numpad5":L(),Q.actions.internal.seekToPercent(.5,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit6":case"Numpad6":L(),Q.actions.internal.seekToPercent(.6,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit7":case"Numpad7":L(),Q.actions.internal.seekToPercent(.7,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit8":case"Numpad8":L(),Q.actions.internal.seekToPercent(.8,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit9":case"Numpad9":L(),Q.actions.internal.seekToPercent(.9,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Digit0":case"Numpad0":L(),Q.actions.internal.seekToPercent(0,Cn.DOUBLE_TAP),_e.preventDefault();break;case"Slash":{_e.shiftKey&&$.features.hotKeyMapModal&&(ee(),_e.preventDefault());break}case"ShiftLeft":case"ShiftRight":_e.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:zg(yt);break}},et=_e=>{let dt=_e.code;if(_e.ctrlKey||_e.altKey||_e.metaKey)return;let bt=o===ar.PLAYING||o===ar.PAUSED,Ct=E&&(n==="paused"||n==="playing");if(bt||Ct)switch(dt){case"ShiftLeft":case"ShiftRight":rt=0;break}};function He(_e){ge[_e?"unshift":"push"](()=>{ce=_e,t(0,ce)})}return i.$$set=_e=>{"isAds"in _e&&t(18,E=_e.isAds),"hideContextMenu"in _e&&t(19,z=_e.hideContextMenu),"toggleFullscreen"in _e&&t(20,N=_e.toggleFullscreen),"showHotKeyHelpers"in _e&&t(21,L=_e.showHotKeyHelpers),"showKeyMap"in _e&&t(22,ee=_e.showKeyMap),"fakePlayButtonHandler"in _e&&t(23,ae=_e.fakePlayButtonHandler),"$$scope"in _e&&t(25,y=_e.$$scope)},[ce,W,ue,x,K,A,fe,X,Me,ie,be,Ee,ze,Ce,nt,st,De,et,E,z,N,L,ee,ae,Se,y,S,He]}var Ga=class extends H{constructor(e){super(),U(this,e,Kg,Wg,F,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},xg,[-1,-1])}get focus(){return this.$$.ctx[24]}},V1=Ga;function jg(i){he(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function Gg(i){let e,t,n,o,r,s;return{c(){e=P("div"),t=P("div"),n=Y(),o=P("div"),r=Y(),s=P("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(s,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),_(e,r),_(e,s)},p(a,[l]){l&1&&f(e,"style",a[0])},i:de,o:de,d(a){a&&w(e)}}}function Yg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Ya=class extends H{constructor(e){super(),U(this,e,Yg,Gg,F,{style:0},jg)}},Ar=Ya;function Qg(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I=i[2].default,C=Le(I,i,i[1],null),V=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],S={};for(let y=0;y<V.length;y+=1)S=re(S,V[y]);return{c(){e=O("svg"),C&&C.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("filter"),a=O("feFlood"),l=O("feColorMatrix"),u=O("feOffset"),c=O("feGaussianBlur"),m=O("feColorMatrix"),h=O("feBlend"),v=O("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2422_111980"),f(v,"result","shape"),f(s,"id","a"),f(s,"width","23"),f(s,"height","23"),f(s,"x",".5"),f(s,"y",".5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ye(e,S)},m(y,E){k(y,e,E),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,v),g=!0},p(y,[E]){C&&C.p&&(!g||E&2)&&Re(C,I,y,y[1],g?Ve(I,y[1],E,null):Be(y[1]),null),ye(e,S=Fe(V,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},E&1&&y[0]]))},i(y){g||(d(C,y),g=!0)},o(y){p(C,y),g=!1},d(y){y&&w(e),C&&C.d(y)}}}function Zg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Qa=class extends H{constructor(e){super(),U(this,e,Zg,Qg,F,{})}},R1=Qa;import{noop as Io}from"@vkontakte/videoplayer-shared";function Xg(i){he(i,"svelte-wr0kwr",".btn.svelte-wr0kwr{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center}.w-max.svelte-wr0kwr{width:100%}.btn--live.svelte-wr0kwr{padding:10px 4px}.btn-jc-l.svelte-wr0kwr{justify-content:left}.btn-m.svelte-wr0kwr{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-wr0kwr{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn-m--play.svelte-wr0kwr svg{transform:scale(2)}.btn-m--prev.svelte-wr0kwr,.btn-m--next.svelte-wr0kwr{position:absolute;width:50px;height:50px}.btn-m--prev.svelte-wr0kwr{right:calc(100% + 35px)}.btn-m--next.svelte-wr0kwr{left:calc(100% + 35px)}.btn.svelte-wr0kwr:disabled{cursor:default;pointer-events:none}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-wr0kwr:not(:disabled):hover{opacity:0.8}.pr-0.svelte-wr0kwr{padding-right:0}.pl-0.svelte-wr0kwr{padding-left:0}")}function Jg(i){let e,t,n,o,r,s,a,l,u,c,m,h,v=i[14].default,g=Le(v,i,i[13],null);return{c(){var I,C,V,S,y,E;e=P("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-wr0kwr"),f(e,"style",n=i[2]||null),e.disabled=o=(I=i[3])!=null?I:null,f(e,"aria-hidden",r=(C=i[5])!=null?C:null),f(e,"aria-label",s=(V=i[6])!=null?V:null),f(e,"aria-keyshortcuts",a=(S=i[7])!=null?S:null),f(e,"aria-expanded",l=(y=i[8])!=null?y:null),f(e,"data-testid",u=(E=i[4])!=null?E:null),f(e,"tabindex",i[9])},m(I,C){k(I,e,C),g&&g.m(e,null),i[16](e),c=!0,m||(h=[ke(e,"pointerdown",gt(i[15])),ke(e,"click",gt(function(){Jt(i[10]===Io?null:i[10])&&(i[10]===Io?null:i[10]).apply(this,arguments)})),ke(e,"focus",si(function(){Jt(i[11]===Io?null:i[11])&&(i[11]===Io?null:i[11]).apply(this,arguments)})),ke(e,"blur",si(function(){Jt(i[12]===Io?null:i[12])&&(i[12]===Io?null:i[12]).apply(this,arguments)}))],m=!0)},p(I,[C]){var V,S,y,E,z,N;i=I,g&&g.p&&(!c||C&8192)&&Re(g,v,i,i[13],c?Ve(v,i[13],C,null):Be(i[13]),null),(!c||C&2&&t!==(t="btn "+i[1]+" svelte-wr0kwr"))&&f(e,"class",t),(!c||C&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||C&8&&o!==(o=(V=i[3])!=null?V:null))&&(e.disabled=o),(!c||C&32&&r!==(r=(S=i[5])!=null?S:null))&&f(e,"aria-hidden",r),(!c||C&64&&s!==(s=(y=i[6])!=null?y:null))&&f(e,"aria-label",s),(!c||C&128&&a!==(a=(E=i[7])!=null?E:null))&&f(e,"aria-keyshortcuts",a),(!c||C&256&&l!==(l=(z=i[8])!=null?z:null))&&f(e,"aria-expanded",l),(!c||C&16&&u!==(u=(N=i[4])!=null?N:null))&&f(e,"data-testid",u),(!c||C&512)&&f(e,"tabindex",i[9])},i(I){c||(d(g,I),c=!0)},o(I){p(g,I),c=!1},d(I){I&&w(e),g&&g.d(I),i[16](null),m=!1,at(h)}}}function $g(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:s=""}=e,{disabled:a=void 0}=e,{testId:l=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:v=void 0}=e,{tabIndex:g=0}=e,{click:I=Io}=e,{focus:C=Io}=e,{blur:V=Io}=e;function S(E){Nn.call(this,i,E)}function y(E){ge[E?"unshift":"push"](()=>{m=E,t(0,m)})}return i.$$set=E=>{"className"in E&&t(1,r=E.className),"style"in E&&t(2,s=E.style),"disabled"in E&&t(3,a=E.disabled),"testId"in E&&t(4,l=E.testId),"ariaHidden"in E&&t(5,u=E.ariaHidden),"ariaLabel"in E&&t(6,c=E.ariaLabel),"ref"in E&&t(0,m=E.ref),"ariaKeyShortCut"in E&&t(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,v=E.ariaExpanded),"tabIndex"in E&&t(9,g=E.tabIndex),"click"in E&&t(10,I=E.click),"focus"in E&&t(11,C=E.focus),"blur"in E&&t(12,V=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[m,r,s,a,l,u,c,h,v,g,I,C,V,o,n,S,y]}var Za=class extends H{constructor(e){super(),U(this,e,$g,Jg,F,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Xg)}},ht=Za;function e2(i){he(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function B1(i){let e,t,n,o,r,s=i[2]&&N1(i);return{c(){e=P("div"),t=P("h3"),n=Oe(i[3]),o=Y(),s&&s.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,l){k(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,l){(!r||l&8)&&Ke(n,a[3]),a[2]?s?(s.p(a,l),l&4&&d(s,1)):(s=N1(a),s.c(),d(s,1),s.m(e,null)):s&&(se(),p(s,1,1,()=>{s=null}),le())},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&w(e),s&&s.d()}}}function N1(i){let e,t;return e=new ht({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:G("hotkey_map_modal_close_btn_text"),$$slots:{default:[t2]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function t2(i){let e,t;return e=new R1({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function i2(i){let e,t,n,o,r,s,a=i[1]&&B1(i),l=i[4].default,u=Le(l,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=Y(),o=P("div"),r=P("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){k(c,e,m),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,r),u&&u.m(r,null),s=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=B1(c),a.c(),d(a,1),a.m(t,n)):a&&(se(),p(a,1,1,()=>{a=null}),le()),u&&u.p&&(!s||m&32)&&Re(u,l,c,c[5],s?Ve(l,c[5],m,null):Be(c[5]),null)},i(c){s||(d(a),d(u,c),s=!0)},o(c){p(a),p(u,c),s=!1},d(c){c&&w(e),a&&a.d(),u&&u.d(c)}}}function n2(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:s=!0}=e,{showCloseCross:a=!0}=e,{title:l}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,s=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,l=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,s,a,l,n,o]}var Xa=class extends H{constructor(e){super(),U(this,e,n2,i2,F,{onClose:0,showHeader:1,showCloseCross:2,title:3},e2)}},D1=Xa;var o2=new Set(["BR"]),Ja=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],s=r.tagName;o2.has(s)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function r2(i){he(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function O1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function F1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function H1(i){let e,t,n=Ja(i[9])+"",o,r,s=i[10]+"",a,l;return{c(){e=P("li"),t=P("span"),o=Y(),r=P("span"),a=Oe(s),l=Y(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){k(u,e,c),_(e,t),t.innerHTML=n,_(e,o),_(e,r),_(r,a),_(e,l)},p(u,c){c&1&&n!==(n=Ja(u[9])+"")&&(t.innerHTML=n),c&1&&s!==(s=u[10]+"")&&Ke(a,s)},d(u){u&&w(e)}}}function q1(i){let e,t,n=i[5]+"",o,r,s,a,l=kt(i[6]),u=[];for(let c=0;c<l.length;c+=1)u[c]=H1(F1(i,l,c));return{c(){e=P("div"),t=P("h5"),o=Oe(n),r=Y(),s=P("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=Y(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(s,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){k(c,e,m),_(e,t),_(t,o),_(e,r),_(e,s);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(s,null);_(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ke(o,n),m&1){l=kt(c[6]);let h;for(h=0;h<l.length;h+=1){let v=F1(c,l,h);u[h]?u[h].p(v,m):(u[h]=H1(v),u[h].c(),u[h].m(s,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(c){c&&w(e),fi(u,c)}}}function s2(i){let e,t=kt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=q1(O1(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){k(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,r){if(r&1){t=kt(o[0].groups);let s;for(s=0;s<t.length;s+=1){let a=O1(o,t,s);n[s]?n[s].p(a,r):(n[s]=q1(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&w(e),fi(n,o)}}}function l2(i){let e,t;return e=new D1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[s2]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function a2(i,e,t){let n,o=it(),{data:r,show:s}=o.ui.modals.hotKeyMap;return q(i,r,l=>t(0,n=l)),[n,r,()=>{s.set(!1)}]}var $a=class extends H{constructor(e){super(),U(this,e,a2,l2,F,{},r2)}},U1=$a;import{noop as Np}from"@vkontakte/videoplayer-shared";var ol;function Mr(i){return ol||(ol=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),ol.observe(i),{destroy(){ol.unobserve(i)}}}import{ChromecastState as Gm,PlaybackState as hc}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";function u2(i){he(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function c2(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=P("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,s){k(r,e,s),o&&o.m(e,null),t=!0},p(r,[s]){o&&o.p&&(!t||s&1)&&Re(o,n,r,r[0],t?Ve(n,r[0],s,null):Be(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&w(e),o&&o.d(r)}}}function f2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var eu=class extends H{constructor(e){super(),U(this,e,f2,c2,F,{},u2)}},z1=eu;import{VideoQuality as rs}from"@vkontakte/videoplayer-shared";function d2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function m2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var tu=class extends H{constructor(e){super(),U(this,e,m2,d2,F,{})}},x1=tu;function p2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function _2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var iu=class extends H{constructor(e){super(),U(this,e,_2,p2,F,{})}},W1=iu;function h2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function g2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var nu=class extends H{constructor(e){super(),U(this,e,g2,h2,F,{})}},K1=nu;function b2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function v2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ou=class extends H{constructor(e){super(),U(this,e,v2,b2,F,{})}},rl=ou;function y2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function w2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ru=class extends H{constructor(e){super(),U(this,e,w2,y2,F,{})}},sl=ru;var ll=i=>{switch(i){case rs.Q_720P:return K1;case rs.Q_1080P:return rl;case rs.Q_1440P:return sl;case rs.Q_2160P:return x1;case rs.Q_4320P:return W1}};function k2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function C2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var su=class extends H{constructor(e){super(),U(this,e,C2,k2,F,{})}},j1=su;function S2(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function T2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var lu=class extends H{constructor(e){super(),U(this,e,T2,S2,F,{})}},G1=lu;function I2(i){he(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function P2(i){let e,t,n,o,r=i[1]&&Y1(i);return n=new G1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),r&&r.c(),t=Y(),D(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),j(e,"triple",i[2])},m(s,a){k(s,e,a),r&&r.m(e,null),_(e,t),R(n,e,null),o=!0},p(s,a){s[1]?r?(r.p(s,a),a&2&&d(r,1)):(r=Y1(s),r.c(),d(r,1),r.m(e,t)):r&&(se(),p(r,1,1,()=>{r=null}),le());let l={};a&2&&(l["data-testid"]=s[1]?"settings-icon--labeled":"settings-icon"),n.$set(l),(!o||a&4)&&j(e,"triple",s[2])},i(s){o||(d(r),d(n.$$.fragment,s),o=!0)},o(s){p(r),p(n.$$.fragment,s),o=!1},d(s){s&&w(e),r&&r.d(),B(n)}}}function E2(i){let e,t;return e=new j1({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Y1(i){let e,t;return e=new z1({props:{$$slots:{default:[A2]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function A2(i){let e,t,n;var o=i[1];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&D(e.$$.fragment),t=Xe()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&2&&o!==(o=s[1])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Bt(o,r(s,a)),D(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function M2(i){let e,t,n,o,r=[E2,P2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function L2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,s;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=ll(r)),i.$$.dirty&2&&t(2,s=!!n&&[rl,sl].includes(n))},[o,n,s,r]}var au=class extends H{constructor(e){super(),U(this,e,L2,M2,F,{isMobile:0,currentQuality:3},I2)}},al=au;function V2(i){he(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function R2(i){let e,t,n;return t=new al({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),D(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,r){let s={};r&8&&(s.isMobile=o[3]),r&16&&(s.currentQuality=o[4]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function B2(i){let e,t,n;function o(s){i[10](s)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[R2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"opened":""),a&4&&(l.ariaLabel=s[2]),a&2&&(l.ariaExpanded=s[1]),a&16408&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function N2(i,e,t){let n,o,r,{ref$:s}=e,a=it(),l=a.state.currentQuality$;q(i,l,V=>t(4,r=V));let u=a.ui.settingsMenu.visible$;q(i,u,V=>t(1,n=V));let c=a.actions.internal.openSettingsMenu,m=a.actions.internal.closeSettingsMenu,h=a.ui.isMobile;q(i,h,V=>t(3,o=V));let v,g;async function I(V){let S=Tr(V);n?m():c(S,an)}function C(V){v=V,t(0,v)}return i.$$set=V=>{"ref$"in V&&t(9,s=V.ref$)},i.$$.update=()=>{i.$$.dirty&513&&s&&s.set(v),i.$$.dirty&2&&t(2,g=n?G("tooltip_settings_on"):G("tooltip_settings_off"))},[v,n,g,o,r,l,u,h,I,s,C]}var uu=class extends H{constructor(e){super(),U(this,e,N2,B2,F,{ref$:9},V2)}},ss=uu;function D2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function O2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var cu=class extends H{constructor(e){super(),U(this,e,O2,D2,F,{})}},Q1=cu;function F2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function H2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var fu=class extends H{constructor(e){super(),U(this,e,H2,F2,F,{})}},ul=fu;function q2(i){let e,t;return e=new ul({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function U2(i){let e,t;return e=new Q1({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function z2(i){let e,t,n,o,r=[U2,q2],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e!==c&&(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function x2(i){let e,t;return e=new ht({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:_o.KeyC,$$slots:{default:[z2]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function W2(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=s=>{"isSubtitlesEnabled"in s&&t(0,n=s.isSubtitlesEnabled),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?G("tooltip_subtitles_on"):G("tooltip_subtitles_off"))},[n,o,r]}var du=class extends H{constructor(e){super(),U(this,e,W2,x2,F,{isSubtitlesEnabled:0,click:1})}},Z1=du;function K2(i){he(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function X1(i){let e,t;return{c(){e=P("span"),t=Oe(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&8&&Ke(t,n[3])},d(n){n&&w(e)}}}function j2(i){let e,t,n,o,r=i[2]&&X1(i);return{c(){e=P("div"),t=P("span"),n=Oe(i[4]),o=Y(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),j(e,"mobile",i[1])},m(s,a){k(s,e,a),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),i[7](e)},p(s,[a]){a&16&&Ke(n,s[4]),s[2]?r?r.p(s,a):(r=X1(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&j(e,"mobile",s[1])},i:de,o:de,d(s){s&&w(e),r&&r.d(),i[7](null)}}}function G2(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:s=!0}=e,{ref:a}=e,l,u;function c(m){ge[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,s=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,l=On(o)),i.$$.dirty&64&&t(4,u=On(r))},[a,n,s,l,u,o,r,c]}var mu=class extends H{constructor(e){super(),U(this,e,G2,j2,F,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},K2)}},cl=mu;import{noop as Oo}from"@vkontakte/videoplayer-shared";function Y2(i){he(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function Q2(i){let e,t,n,o,r,s;return{c(){e=O("svg"),t=O("g"),n=O("path"),o=O("path"),r=O("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",s="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,l){k(a,e,l),_(e,t),_(t,n),_(t,o),_(t,r)},p(a,[l]){l&1&&f(e,"data-value",a[0]),l&1&&s!==(s="volume-"+a[0]+"-icon")&&f(e,"data-testid",s)},i:de,o:de,d(a){a&&w(e)}}}function Z2(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,l)=>l?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",s;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,s=r(n,o))},[s,n,o]}var pu=class extends H{constructor(e){super(),U(this,e,Z2,Q2,F,{volume:1,muted:2},Y2)}},ur=pu;import{noop as oo}from"@vkontakte/videoplayer-shared";import{noop as ob}from"@vkontakte/videoplayer-shared";import{noop as $2}from"@vkontakte/videoplayer-shared";function X2(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=P("div"),o&&o.c(),f(e,"class","overlay")},m(r,s){k(r,e,s),o&&o.m(e,null),i[5](e),t=!0},p(r,[s]){o&&o.p&&(!t||s&8)&&Re(o,n,r,r[3],t?Ve(n,r[3],s,null):Be(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&w(e),o&&o.d(r),i[5](null)}}}function J2(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=it().ui.overlayContainer$;q(i,a,h=>t(2,n=h));let l,u=h=>{!h||!l||!h.contains(l)||h.removeChild(l)},c=h=>{!h||!l||h.contains(l)||h.appendChild(l)};Nt(()=>(c(n),()=>u(n)));function m(h){ge[h?"unshift":"push"](()=>{l=h,t(0,l)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[l,a,n,r,o,m]}var _u=class extends H{constructor(e){super(),U(this,e,J2,X2,F,{})}},J1=_u;function eb(i){he(i,"svelte-1jbbzcj",'.tooltip-wrapper.svelte-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.svelte-1jbbzcj{width:100%}.tooltip.svelte-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.svelte-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function $1(i){let e,t;return e=new J1({props:{$$slots:{default:[tb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16777445&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function tb(i){let e,t,n,o,r;return{c(){e=P("div"),t=P("div"),n=Oe(i[2]),o=Y(),r=P("div"),f(t,"class","content svelte-1jbbzcj"),f(r,"class","tooltip-pointer svelte-1jbbzcj"),f(r,"style",i[7]),f(e,"class","tooltip svelte-1jbbzcj"),f(e,"style",i[6]),j(e,"active",i[0])},m(s,a){k(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r),i[23](e)},p(s,a){a[0]&4&&Ke(n,s[2]),a[0]&128&&f(r,"style",s[7]),a[0]&64&&f(e,"style",s[6]),a[0]&1&&j(e,"active",s[0])},d(s){s&&w(e),i[23](null)}}}function ib(i){let e,t,n,o,r,s,a=i[21].default,l=Le(a,i,i[24],null),u=i[2]&&!i[1]&&$1(i);return{c(){e=P("div"),l&&l.c(),t=Y(),u&&u.c(),n=Xe(),f(e,"class","tooltip-wrapper svelte-1jbbzcj"),j(e,"full-width",i[3])},m(c,m){k(c,e,m),l&&l.m(e,null),i[22](e),k(c,t,m),u&&u.m(c,m),k(c,n,m),o=!0,r||(s=[ke(e,"mouseenter",i[10]),ke(e,"mousemove",i[10]),ke(e,"mouseleave",i[11]),ke(e,"mousedown",i[11]),ke(e,"mouseup",i[10])],r=!0)},p(c,m){l&&l.p&&(!o||m[0]&16777216)&&Re(l,a,c,c[24],o?Ve(a,c[24],m,null):Be(c[24]),null),(!o||m[0]&8)&&j(e,"full-width",c[3]),c[2]&&!c[1]?u?(u.p(c,m),m[0]&6&&d(u,1)):(u=$1(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(se(),p(u,1,1,()=>{u=null}),le())},i(c){o||(d(l,c),d(u),o=!0)},o(c){p(l,c),p(u),o=!1},d(c){c&&(w(e),w(t),w(n)),l&&l.d(c),i[22](null),u&&u.d(c),r=!1,at(s)}}}var Po=5;function nb(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{isMobile:a=!1}=e,{content:l=""}=e,{active:u=!1}=e,{translateX:c=0}=e,{translateY:m=0}=e,{isFullWidthWrapper:h=!1}=e,{maxTooltipWidth:v=void 0}=e,{placement:g="top"}=e,{onVisibilityChange:I=$2}=e,C,V,S,y=0,E=0,z=0,N=0,L=Lt(),ee=it(),ae=ee.ui.playerSize;q(i,ae,Ee=>t(27,o=Ee));let Q=ee.ui.overlayContainer$;q(i,Q,Ee=>t(26,n=Ee));let $=ee.getLogger().createComponentLog("Tooltip component"),J=()=>{if(!n||!V||!C)return;t(18,E=Po);let Ee=n.getBoundingClientRect(),ze=C.getBoundingClientRect(),te=ze.width,pe=V.clientWidth,Ce=o.width,We=(te-pe)/2,nt=ze.left+c-Ee.left,st=nt+We,rt=ze.top+m-Ee.top,Qe=pe/2-Po,ce=st<8,Se=st+pe>Ce-8;ce&&(st=8,Qe=nt+ze.width/2-2.5*Po),Se&&(st=Ce-8-pe,Qe=ze.left-Ee.left+ze.width/2-st-Po),t(19,z=st),t(20,N=rt),t(17,y=Qe)},W=()=>{!n||!V||!C||t(18,E=-Po)},ue=()=>{if(!n||!V||!C)return;t(17,y=Po);let Ee=n.getBoundingClientRect(),ze=C.getBoundingClientRect(),te=ze.height,pe=V.clientHeight,Ce=(te-pe)/2+pe,We=ze.left+c-Ee.left-V.clientWidth,nt=2,st=We-Po;st<8&&(st=8);let Qe=ze.top+m-Ee.top+Ce,ce=nt-Ce/2,Se=nt-Po;t(19,z=st),t(20,N=Qe),t(18,E=ce),t(17,y=Se)},x=()=>{!n||!V||!C||t(17,y=-Po)},K=()=>{switch(g){case"top":J();break;case"bottom":W();break;case"left":ue();break;default:x()}},A=()=>{try{if(!n||!C)return;K(),t(0,u=!0)}catch(Ee){$({message:String(Ee)})}},fe=()=>{t(0,u=!1)},X=()=>{V&&(S||(S=window.setTimeout(A,L.controls.hideTimeoutTooltips)),u&&A())},Me=()=>{fe(),window.clearTimeout(S),S=void 0},ie=(Ee,ze)=>{let te="";switch(g){case"top":te=`transform: translate(${Ee}px, ${ze}px);`;break;case"bottom":te=`transform: translate(${Ee}px, ${ze}px); top: auto; bottom: 100%;`;break;case"left":te=`transform: translate(${Ee}px, ${ze}px); left: 0; right: auto;`;break;default:te=`transform: translate(${Ee}px, ${ze}px);`}return te+=` max-width: ${v===void 0?"auto":`${v}px`};`,te},be=(Ee,ze)=>{let te="";switch(g){case"top":te=`transform: translate(${Ee}px, ${ze}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":te=`transform: translate(${Ee}px, ${ze}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":te=`transform: translate(${Ee}px, ${ze}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:te=`transform: translate(${Ee}px, ${ze}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return te},Te,Ie;Nt(K),io(()=>window.clearTimeout(S));function Pe(Ee){ge[Ee?"unshift":"push"](()=>{C=Ee,t(4,C)})}function ot(Ee){ge[Ee?"unshift":"push"](()=>{V=Ee,t(5,V)})}return i.$$set=Ee=>{"isMobile"in Ee&&t(1,a=Ee.isMobile),"content"in Ee&&t(2,l=Ee.content),"active"in Ee&&t(0,u=Ee.active),"translateX"in Ee&&t(12,c=Ee.translateX),"translateY"in Ee&&t(13,m=Ee.translateY),"isFullWidthWrapper"in Ee&&t(3,h=Ee.isFullWidthWrapper),"maxTooltipWidth"in Ee&&t(14,v=Ee.maxTooltipWidth),"placement"in Ee&&t(15,g=Ee.placement),"onVisibilityChange"in Ee&&t(16,I=Ee.onVisibilityChange),"$$scope"in Ee&&t(24,s=Ee.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&I(u),i.$$.dirty[0]&1966080&&(t(6,Te=ie(z,N)),t(7,Ie=be(y,E)))},[u,a,l,h,C,V,Te,Ie,ae,Q,X,Me,c,m,v,g,I,y,E,z,N,r,Pe,ot,s]}var hu=class extends H{constructor(e){super(),U(this,e,nb,ib,F,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},eb,[-1,-1])}},Lr=hu;function rb(i){he(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function sb(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Re(n,t,o,o[24],e?Ve(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function lb(i){let e,t;return e=new Lr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[ab]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function ab(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Re(n,t,o,o[24],e?Ve(t,o[24],r,null):Be(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function ub(i){let e,t,n,o,r,s,a,l,u,c=[lb,sb],m=[];function h(v,g){return v[3]&&v[11]&&!v[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=P("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null)},m(v,g){k(v,e,g),m[t].m(e,null),i[23](e),a=!0,l||(u=[_r(s=Mr.call(null,e)),ke(e,"fd:resize",i[22]),ke(e,"pointerdown",gt(i[20])),ke(e,"click",gt(i[21]))],l=!0)},p(v,[g]){let I=t;t=h(v,g),t===I?m[t].p(v,g):(se(),p(m[I],1,1,()=>{m[I]=null}),le(),n=m[t],n?n.p(v,g):(n=m[t]=c[t](v),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+v[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=v[7]||null))&&f(e,"aria-hidden",r)},i(v){a||(d(n),a=!0)},o(v){p(n),a=!1},d(v){v&&w(e),m[t].d(),i[23](null),l=!1,at(u)}}}function cb(i,e,t){let n,o,{$$slots:r={},$$scope:s}=e,{className:a=""}=e,{disabled:l=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:v=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:I="top"}=e,{disabledTooltipContent:C=G("tooltip_button_disabled")}=e,{isAriaHidden:V=!1}=e,{onTooltipVisibilityChange:S=ob}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:E=-18}=e,z=it(),N=z.ui.isMobile;q(i,N,W=>t(12,o=W));let L=z.state.graphIsOpened$;q(i,L,W=>t(18,n=W));let ee;function ae(W){Nn.call(this,i,W)}function Q(W){Nn.call(this,i,W)}let $=W=>{t(1,m=W.target.clientWidth)};function J(W){ge[W?"unshift":"push"](()=>{c=W,t(0,c)})}return i.$$set=W=>{"className"in W&&t(2,a=W.className),"disabled"in W&&t(15,l=W.disabled),"hasTooltip"in W&&t(3,u=W.hasTooltip),"ref"in W&&t(0,c=W.ref),"width"in W&&t(1,m=W.width),"isFullWidthTooltip"in W&&t(4,h=W.isFullWidthTooltip),"tooltipContent"in W&&t(16,v=W.tooltipContent),"tooltipActive"in W&&t(5,g=W.tooltipActive),"tooltipPlacement"in W&&t(6,I=W.tooltipPlacement),"disabledTooltipContent"in W&&t(17,C=W.disabledTooltipContent),"isAriaHidden"in W&&t(7,V=W.isAriaHidden),"onTooltipVisibilityChange"in W&&t(8,S=W.onTooltipVisibilityChange),"initialTranslateXPx"in W&&t(9,y=W.initialTranslateXPx),"initialTranslateYPx"in W&&t(10,E=W.initialTranslateYPx),"$$scope"in W&&t(24,s=W.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(l?t(11,ee=n?G("tooltip_disabled_when_graph_on"):C):t(11,ee=v))},[c,m,a,u,h,g,I,V,S,y,E,ee,o,N,L,l,v,C,n,r,ae,Q,$,J,s]}var gu=class extends H{constructor(e){super(),U(this,e,cb,ub,F,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},rb)}},Qi=gu;function fb(i){let e,t,n,o,r,s;return{c(){e=O("svg"),t=O("rect"),o=O("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",s=(i[0],"interactive-episode-completed-icon"))},m(a,l){k(a,e,l),_(e,t),_(e,o)},p(a,[l]){l&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),l&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),l&1&&s!==(s=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",s)},i:de,o:de,d(a){a&&w(e)}}}function db(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var bu=class extends H{constructor(e){super(),U(this,e,db,fb,F,{completed:0})}},fl=bu;function mb(i){he(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function pb(i){let e,t,n,o,r,s,a;return t=new fl({props:{completed:!!i[0].completed}}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),j(e,"disabled",i[1])},m(l,u){k(l,e,u),R(t,e,null),r=!0,s||(a=[_r(o=Mr.call(null,e)),ke(e,"fd:resize",i[3])],s=!0)},p(l,u){let c={};u&1&&(c.completed=!!l[0].completed),t.$set(c),(!r||u&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||u&2)&&j(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&w(e),B(t),s=!1,at(a)}}}function _b(i){let e,t;return e=new Qi({props:{tooltipContent:G(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[pb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=G(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function hb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r,s=a=>{t(2,r=a.target.clientWidth)};return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,s]}var vu=class extends H{constructor(e){super(),U(this,e,hb,_b,F,{videoEpisode:0,disabled:1},mb)}},em=vu;function gb(i){he(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function tm(i,e,t){let n=i.slice();return n[3]=e[t],n}function im(i){let e,t,n,o,r,s,a,l,u;return{c(){e=P("div"),t=P("div"),n=P("div"),r=Y(),s=P("div"),l=Y(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(s,"class","video-episode-filled svelte-1rzxunm"),f(s,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),j(s,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),j(e,"disabled",i[2]),j(e,"mobile",i[1])},m(c,m){k(c,e,m),_(e,t),_(t,n),_(t,r),_(t,s),_(e,l)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(s,"style",a),m&2&&j(s,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&j(e,"disabled",c[2]),m&2&&j(e,"mobile",c[1])},d(c){c&&w(e)}}}function bb(i){let e,t=kt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=im(tm(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){k(o,e,r);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,[r]){if(r&7){t=kt(o[0]);let s;for(s=0;s<t.length;s+=1){let a=tm(o,t,s);n[s]?n[s].p(a,r):(n[s]=im(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:de,o:de,d(o){o&&w(e),fi(n,o)}}}function vb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=s=>{"videoEpisodes"in s&&t(0,n=s.videoEpisodes),"isMobile"in s&&t(1,o=s.isMobile),"disabled"in s&&t(2,r=s.disabled)},[n,o,r]}var yu=class extends H{constructor(e){super(),U(this,e,vb,bb,F,{videoEpisodes:0,isMobile:1,disabled:2},gb)}},nm=yu;function yb(i){he(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function om(i,e,t){let n=i.slice();return n[50]=e[t],n}function rm(i){let e,t,n=kt(i[21]),o=[];for(let s=0;s<n.length;s+=1)o[s]=lm(om(i,n,s));let r=s=>p(o[s],1,1,()=>{o[s]=null});return{c(){e=P("div");for(let s=0;s<o.length;s+=1)o[s].c();f(e,"class","interactive-icons svelte-v8ydei"),j(e,"mobile",i[6]),j(e,"hidden",i[6]&&!i[20])},m(s,a){k(s,e,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null);t=!0},p(s,a){if(a[0]&2098176){n=kt(s[21]);let l;for(l=0;l<n.length;l+=1){let u=om(s,n,l);o[l]?(o[l].p(u,a),d(o[l],1)):(o[l]=lm(u),o[l].c(),d(o[l],1),o[l].m(e,null))}for(se(),l=n.length;l<o.length;l+=1)r(l);le()}(!t||a[0]&64)&&j(e,"mobile",s[6]),(!t||a[0]&1048640)&&j(e,"hidden",s[6]&&!s[20])},i(s){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(s){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)p(o[a]);t=!1},d(s){s&&w(e),fi(o,s)}}}function sm(i){let e,t;return e=new em({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[50]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function lm(i){let e,t,n=i[50].interactive&&sm(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=sm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function wb(i){let e,t,n,o,r,s;return{c(){e=P("div"),t=P("div"),o=Y(),r=P("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",s=`transform: translateX(${i[13]*100}%);`),j(r,"active-live",i[5]),j(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,l){k(a,e,l),_(e,t),_(e,o),_(e,r)},p(a,l){l[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),l[0]&8192&&s!==(s=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",s),l[0]&32&&j(r,"active-live",a[5]),l[0]&128&&j(r,"ads",a[7])},i:de,o:de,d(a){a&&w(e)}}}function kb(i){let e,t;return e=new nm({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Cb(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g=i[9]&&rm(i),I=[kb,wb],C=[];function V(S,y){return S[21].length?0:1}return n=V(i,[-1,-1]),o=C[n]=I[n](i),{c(){var S;g&&g.c(),e=Y(),t=P("div"),o.c(),r=Y(),s=P("div"),a=P("div"),f(a,"class","handle svelte-v8ydei"),j(a,"active-live",i[5]),f(s,"class","handleWrap svelte-v8ydei"),f(s,"style",l=`transform: translateX(${i[14]*100}%);`),j(s,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(S=i[2])!=null?S:null),j(t,"disabled",i[10]),j(t,"slider-dragging",i[20]),j(t,"hidden",i[3]),j(t,"slider-vertical",i[4]),j(t,"no-handle",i[11]),j(t,"square",i[8])},m(S,y){g&&g.m(S,y),k(S,e,y),k(S,t,y),C[n].m(t,null),_(t,r),_(t,s),_(s,a),i[44](t),m=!0,h||(v=[ke(t,"pointerdown",si(i[22])),ke(t,"pointermove",si(i[23])),ke(t,"pointerup",si(i[24])),ke(t,"pointerenter",si(i[25])),ke(t,"pointerleave",si(i[26])),ke(t,"click",gt(i[28])),ke(t,"wheel",i[27])],h=!0)},p(S,y){var z;S[9]?g?(g.p(S,y),y[0]&512&&d(g,1)):(g=rm(S),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(se(),p(g,1,1,()=>{g=null}),le());let E=n;n=V(S,y),n===E?C[n].p(S,y):(se(),p(C[E],1,1,()=>{C[E]=null}),le(),o=C[n],o?o.p(S,y):(o=C[n]=I[n](S),o.c()),d(o,1),o.m(t,r)),(!m||y[0]&32)&&j(a,"active-live",S[5]),(!m||y[0]&16384&&l!==(l=`transform: translateX(${S[14]*100}%);`))&&f(s,"style",l),(!m||y[0]&2048)&&j(s,"hidden",S[11]),(!m||y[0]&2&&u!==(u="slider "+S[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||y[0]&32768)&&f(t,"aria-label",S[15]),(!m||y[0]&65536)&&f(t,"aria-valuemin",S[16]),(!m||y[0]&131072)&&f(t,"aria-valuemax",S[17]),(!m||y[0]&262144)&&f(t,"aria-valuenow",S[18]),(!m||y[0]&524288)&&f(t,"aria-valuetext",S[19]),(!m||y[0]&4&&c!==(c=(z=S[2])!=null?z:null))&&f(t,"data-testid",c),(!m||y[0]&1026)&&j(t,"disabled",S[10]),(!m||y[0]&1048578)&&j(t,"slider-dragging",S[20]),(!m||y[0]&10)&&j(t,"hidden",S[3]),(!m||y[0]&18)&&j(t,"slider-vertical",S[4]),(!m||y[0]&2050)&&j(t,"no-handle",S[11]),(!m||y[0]&258)&&j(t,"square",S[8])},i(S){m||(d(g),d(o),m=!0)},o(S){p(g),p(o),m=!1},d(S){S&&(w(e),w(t)),g&&g.d(S),C[n].d(),i[44](null),h=!1,at(v)}}}function Sb(i,e,t){let n,o,{ref:r=void 0}=e,{className:s=""}=e,{testId:a=void 0}=e,{isHidden:l=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:v=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:I=!1}=e,{isInteractive:C=!1}=e,{disabled:V=!1}=e,{hideHandel:S=!1}=e,y,{onPointerDown:E=oo}=e,{onHandleMove:z=oo}=e,{onPointerUp:N=oo}=e,{onPointerEnter:L=oo}=e,{onPointerMove:ee=oo}=e,{onPointerLeave:ae=oo}=e,{onWheelUp:Q=oo}=e,{onWheelDown:$=oo}=e,{onWheelLeft:J=oo}=e,{onWheelRight:W=oo}=e,{onDisabledClick:ue=oo}=e,{loadedProgress:x=0}=e,{filledProgress:K=0}=e,{handleProgress:A=0}=e,{ariaLabel:fe=""}=e,{ariaValueMin:X=void 0}=e,{ariaValueMax:Me=void 0}=e,{ariaValueNow:ie=void 0}=e,{ariaValueText:be=""}=e,Te=Lt(),Ie=!1,Pe;function ot(ce){if(r&&(y=r.getBoundingClientRect()),V||Ie||!r)return;t(20,Ie=!0);let Se=nt(ce.clientX,ce.clientY);E(Se),r.setPointerCapture(ce.pointerId)}function Ee(ce){if(V)return;let Se=nt(ce.clientX,ce.clientY),$e=st(ce.clientX);ee(Se,$e,y.width),Ie&&z(Se)}function ze(ce){if(V||!Ie)return;t(20,Ie=!1);let Se=nt(ce.clientX,ce.clientY);N(Se)}function te(ce){if(r&&(y=r.getBoundingClientRect()),V)return;let Se=nt(ce.clientX,ce.clientY),$e=st(ce.clientX);L(Se,$e,y.width)}function pe(){V||ae()}function Ce(ce){V||I&&(ce.preventDefault(),ce.deltaY<0?Q():ce.deltaY>0?$():ce.deltaX>0?W():J())}function We(ce){V&&ue(nt(ce.clientX,ce.clientY))}function nt(ce,Se){return u?Math.max(0,Math.min(1,(y.height-(Se-y.top))/y.height)):Math.min(Math.max(ce-y.x,0),y.width)/y.width}function st(ce){return Math.min(Math.max(ce-y.x,0),y.width)}function rt(ce,Se){let $e=Te.features.episodesClustering&&!C?Te.episodeMinWidthPc:0,De=[],et=0,He=0,ut=0;for(let dt=1;dt<g.length;dt++)He=g[dt].time/Pe*100,He-et>$e&&(De.push({from:et,width:Math.max(0,He-et),loadedWidth:Math.max(0,Math.min(He,ce)-et),filledWidth:Math.max(0,Math.min(He,Se)-et),interactive:g[dt-1].interactive,completed:g[dt-1].completed}),et=g[dt].time/Pe*100,ut++);let ct={from:et,width:Math.max(0,100-et),loadedWidth:Math.max(0,Math.min(ce,100)-et),filledWidth:Math.max(0,Math.min(Se,100)-et),interactive:g[ut].interactive,completed:g[ut].completed};100-et<$e?(ut-=1,De[ut].width+=100-et,De[ut].loadedWidth+=Math.max(0,Math.min(ce,100)-et),De[ut].filledWidth+=Math.max(0,Math.min(Se,100)-et)):De[ut]=ct;let _e=g[0].time;if(_e!==0){let dt=_e/Pe*100;De.unshift({from:0,width:dt,loadedWidth:Math.min(dt,ce),filledWidth:Math.min(dt,Se)})}return De}function Qe(ce){ge[ce?"unshift":"push"](()=>{r=ce,t(0,r)})}return i.$$set=ce=>{"ref"in ce&&t(0,r=ce.ref),"className"in ce&&t(1,s=ce.className),"testId"in ce&&t(2,a=ce.testId),"isHidden"in ce&&t(3,l=ce.isHidden),"isVertical"in ce&&t(4,u=ce.isVertical),"isActiveLive"in ce&&t(5,c=ce.isActiveLive),"isMobile"in ce&&t(6,m=ce.isMobile),"isAds"in ce&&t(7,h=ce.isAds),"squareBorders"in ce&&t(8,v=ce.squareBorders),"videoEpisodes"in ce&&t(29,g=ce.videoEpisodes),"withWheelHandler"in ce&&t(30,I=ce.withWheelHandler),"isInteractive"in ce&&t(9,C=ce.isInteractive),"disabled"in ce&&t(10,V=ce.disabled),"hideHandel"in ce&&t(11,S=ce.hideHandel),"onPointerDown"in ce&&t(31,E=ce.onPointerDown),"onHandleMove"in ce&&t(32,z=ce.onHandleMove),"onPointerUp"in ce&&t(33,N=ce.onPointerUp),"onPointerEnter"in ce&&t(34,L=ce.onPointerEnter),"onPointerMove"in ce&&t(35,ee=ce.onPointerMove),"onPointerLeave"in ce&&t(36,ae=ce.onPointerLeave),"onWheelUp"in ce&&t(37,Q=ce.onWheelUp),"onWheelDown"in ce&&t(38,$=ce.onWheelDown),"onWheelLeft"in ce&&t(39,J=ce.onWheelLeft),"onWheelRight"in ce&&t(40,W=ce.onWheelRight),"onDisabledClick"in ce&&t(41,ue=ce.onDisabledClick),"loadedProgress"in ce&&t(12,x=ce.loadedProgress),"filledProgress"in ce&&t(13,K=ce.filledProgress),"handleProgress"in ce&&t(14,A=ce.handleProgress),"ariaLabel"in ce&&t(15,fe=ce.ariaLabel),"ariaValueMin"in ce&&t(16,X=ce.ariaValueMin),"ariaValueMax"in ce&&t(17,Me=ce.ariaValueMax),"ariaValueNow"in ce&&t(18,ie=ce.ariaValueNow),"ariaValueText"in ce&&t(19,be=ce.ariaValueText)},i.$$.update=()=>{var ce;i.$$.dirty[0]&131072&&t(42,Pe=Me!=null?Me:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((ce=g[g.length-1])==null?void 0:ce.time)<Pe),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&Pe?rt(x*100,K*100):[])},[r,s,a,l,u,c,m,h,v,C,V,S,x,K,A,fe,X,Me,ie,be,Ie,o,ot,Ee,ze,te,pe,Ce,We,g,I,E,z,N,L,ee,ae,Q,$,J,W,ue,Pe,n,Qe]}var wu=class extends H{constructor(e){super(),U(this,e,Sb,Cb,F,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},yb,[-1,-1])}},Vr=wu;var gi=(i,e)=>tr[i]>=tr[e],am=(i,e)=>tr[i]<tr[e],Rr=(i,e)=>tr[i]<=tr[e],um=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Tb(i){he(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Ib(i){let e,t;return e=new ur({props:{volume:i[3],muted:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Pb(i){let e,t;return e=new ht({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:_o.KeyM,$$slots:{default:[Ib]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function cm(i){let e,t,n;return t=new Vr({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:Oo,onPointerLeave:i[2]?i[20]:Oo,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),j(e,"volumeBar-vertical",i[2])},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,r){let s={};r[0]&4&&(s.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(s.isHidden=o[2]&&!o[5]),r[0]&4&&(s.isVertical=o[2]),r[0]&4&&(s.onPointerEnter=o[2]?o[19]:Oo),r[0]&4&&(s.onPointerLeave=o[2]?o[20]:Oo),r[0]&256&&(s.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(s.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(s.filledProgress=o[8]),r[0]&256&&(s.handleProgress=o[8]),r[0]&4&&(s.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(s),(!n||r[0]&4)&&j(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function Eb(i){let e,t,n,o,r,s;t=new Lr({props:{content:i[6],translateY:-18,$$slots:{default:[Pb]},$$scope:{ctx:i}}});let a=i[4]&&cm(i);return{c(){e=P("div"),D(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),j(e,"vertical",i[2])},m(l,u){k(l,e,u),R(t,e,null),_(e,n),a&&a.m(e,null),o=!0,r||(s=[ke(e,"mouseenter",function(){Jt(i[2]?i[21]:Oo)&&(i[2]?i[21]:Oo).apply(this,arguments)}),ke(e,"mouseleave",function(){Jt(i[2]?i[22]:Oo)&&(i[2]?i[22]:Oo).apply(this,arguments)}),ke(e,"wheel",si(i[23]))],r=!0)},p(l,u){i=l;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=cm(i),a.c(),d(a,1),a.m(e,null)):a&&(se(),p(a,1,1,()=>{a=null}),le()),(!o||u[0]&4)&&j(e,"vertical",i[2])},i(l){o||(d(t.$$.fragment,l),d(a),o=!0)},o(l){p(t.$$.fragment,l),p(a),o=!1},d(l){l&&w(e),B(t),a&&a.d(),r=!1,at(s)}}}function Ab(i,e,t){var Te,Ie;let n,o,r,s,{click:a}=e,l=it(),u=Lt(),c=l.state.volume$;q(i,c,Pe=>t(3,n=Pe));let m=l.state.muted$;q(i,m,Pe=>t(25,s=Pe));let h=l.actions.internal.setVolume,v=l.ui.currentGridType$;q(i,v,Pe=>t(24,r=Pe));let g=(Te=l.callbacks)==null?void 0:Te.onAudioDoesNotExistHint,I=(Ie=l.callbacks)==null?void 0:Ie.onAudioDisabledHint,C=l.state.isAudioAvailable$;q(i,C,Pe=>t(4,o=Pe));let V=l.state.isAudioDisabled,S=!1,y,E,z,N,L,ee,ae=1,Q=!1,$=!1;function J(Pe){ae=n,h(Pe)}function W(){il(l,n,u.controls.volumeStepWheel)}function ue(){nl(l,n,u.controls.volumeStepWheel)}function x(Pe){h(Pe)}function K(Pe){let ot=Pe;h(ot,ot===0?ae:ot)}function A(){Q=!0}function fe(){Q=!1,ie()}function X(){clearTimeout(y),t(5,S=!0)}function Me(){ie()}function ie(){y=window.setTimeout(()=>{Q||t(5,S=!1)},u.controls.volumeBarTimeout)}function be(Pe){Pe.deltaY<0?W():Pe.deltaY>0&&ue()}return i.$$set=Pe=>{"click"in Pe&&t(0,a=Pe.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,N=!o||s),i.$$.dirty[0]&16777216&&t(2,L=Rr(r,"s")),i.$$.dirty[0]&6&&(L?t(6,E=""):t(6,E=N?G("tooltip_volume"):G("tooltip_volume_muted")),t(7,z=N?G("tooltip_volume"):G("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,ee=N?0:n),i.$$.dirty[0]&16&&(o?t(9,$=V&&!I):t(9,$=!g))},[a,N,L,n,o,S,E,z,ee,$,c,m,v,C,J,W,ue,x,K,A,fe,X,Me,be,r,s]}var ku=class extends H{constructor(e){super(),U(this,e,Ab,Eb,F,{click:0},Tb,[-1,-1])}},fm=ku;import{noop as Nb}from"@vkontakte/videoplayer-shared";function Mb(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("g"),n=O("path"),o=O("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function Lb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Cu=class extends H{constructor(e){super(),U(this,e,Lb,Mb,F,{})}},dm=Cu;function Vb(i){he(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Rb(i){let e,t;return e=new dm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Bb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Su=class extends H{constructor(e){super(),U(this,e,Bb,Rb,F,{isFullscreen:0},Vb)}},mm=Su;function Db(i){let e,t;return e=new mm({props:{isFullscreen:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Ob(i){let e,t;return e=new ht({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:_o.KeyF,$$slots:{default:[Db]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Fb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Nb}=e,r;return i.$$set=s=>{"isFullscreen"in s&&t(0,n=s.isFullscreen),"click"in s&&t(1,o=s.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off"))},[n,o,r]}var Tu=class extends H{constructor(e){super(),U(this,e,Fb,Ob,F,{isFullscreen:0,click:1})}},dl=Tu;function Hb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Iu=class extends H{constructor(e){super(),U(this,e,qb,Hb,F,{})}},pm=Iu;function Ub(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=O("svg"),l&&l.c(),t=O("path"),n=O("path"),o=O("path"),r=O("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),ye(e,c)},m(m,h){k(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Re(l,a,m,m[1],s?Ve(a,m[1],h,null):Be(m[1]),null),ye(e,c=Fe(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&w(e),l&&l.d(m)}}}function zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Pu=class extends H{constructor(e){super(),U(this,e,zb,Ub,F,{})}},_m=Pu;function xb(i){he(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function Wb(i){let e,t;return e=new _m({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}var Kb="vk-video-logo-icon--short";function jb(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,s;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,r=n?21:95),t(1,s=n?Kb:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,s="vk-video-logo-icon--en")))},[r,s,n,o]}var Eu=class extends H{constructor(e){super(),U(this,e,jb,Wb,F,{short:2,isCyrillic:3},xb)}},hm=Eu;function Yb(i){let e,t;return e=new pm({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Qb(i){let e,t;return e=new hm({props:{short:i[4],isCyrillic:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Zb(i){let e,t,n,o,r=[Qb,Yb],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function Xb(i){let e,t,n;function o(s){i[14](s)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[Zb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.disabled=!s[1]),a&4&&(l.testId=s[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(l.ariaLabel=s[3]),a&131124&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Jb(i,e,t){let n,o,r,{ref:s=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:l=""}=e,{click:u}=e,c=Lt(),m=it(),h=m.ui.currentGridType$;q(i,h,E=>t(12,n=E));let v=m.ui.isMobile;q(i,v,E=>t(13,o=E));let g=m.isCyrillicRelatedInterface$;q(i,g,E=>t(5,r=E));let I,C,V,S=()=>{var E,z;u(),(E=m.callbacks)!=null&&E.onLogoClicked?(z=m.callbacks)==null||z.onLogoClicked():l&&window.open(l,"_blank")};function y(E){s=E,t(0,s)}return i.$$set=E=>{"ref"in E&&t(0,s=E.ref),"logoClickable"in E&&t(1,a=E.logoClickable),"targetUrl"in E&&t(10,l=E.targetUrl),"click"in E&&t(11,u=E.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,V=(o||Rr(n,"l"))&&C)},t(3,I=c.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo")),t(2,C=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[s,a,C,I,V,r,h,v,g,S,l,u,n,o,y]}var Au=class extends H{constructor(e){super(),U(this,e,Jb,Xb,F,{ref:0,logoClickable:1,targetUrl:10,click:11})}},ml=Au;import{ChromecastState as ov}from"@vkontakte/videoplayer-core";import{ChromecastState as gm}from"@vkontakte/videoplayer-core";function $b(i){he(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function ev(i){let e,t,n,o,r,s,a,l;return{c(){e=O("svg"),t=O("g"),n=O("path"),o=O("path"),r=O("path"),s=O("path"),a=O("path"),l=O("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(s,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(l,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(l,"fill","#fff"),j(l,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),j(e,"connecting",i[2])},m(u,c){k(u,e,c),_(e,t),_(t,n),_(t,o),_(t,r),_(t,s),_(t,a),_(t,l)},p(u,c){c&2&&j(l,"hidden",!u[1]),c&4&&j(e,"connecting",u[2])},d(u){u&&w(e)}}}function tv(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z;return{c(){e=O("svg"),t=O("g"),n=O("mask"),o=O("path"),s=O("path"),a=O("path"),u=O("path"),c=O("defs"),m=O("clipPath"),h=O("path"),g=O("filter"),I=O("feFlood"),C=O("feColorMatrix"),V=O("feOffset"),S=O("feGaussianBlur"),y=O("feColorMatrix"),E=O("feBlend"),z=O("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(s,"fill-rule","evenodd"),f(s,"clip-rule","evenodd"),f(s,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",l=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",v=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(I,"flood-opacity","0"),f(I,"result","BackgroundImageFix"),f(C,"in","SourceAlpha"),f(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(C,"result","hardAlpha"),f(S,"stdDeviation","2.5"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(E,"in2","BackgroundImageFix"),f(E,"result","effect1_dropShadow_4085_178456"),f(z,"in","SourceGraphic"),f(z,"in2","effect1_dropShadow_4085_178456"),f(z,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(N,L){k(N,e,L),_(e,t),_(t,n),_(n,o),_(n,s),_(t,a),_(t,u),_(e,c),_(c,m),_(m,h),_(c,g),_(g,I),_(g,C),_(g,V),_(g,S),_(g,y),_(g,E),_(g,z)},p(N,L){L&2&&r!==(r=N[1]?"#2688EB":"#fff")&&f(o,"fill",r),L&2&&l!==(l=N[1]?"#2688EB":"#fff")&&f(a,"fill",l),L&2&&v!==(v=N[1]?"#2688EB":"#fff")&&f(h,"fill",v)},d(N){N&&w(e)}}}function iv(i){let e;function t(r,s){return r[0]?tv:ev}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),k(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:de,o:de,d(r){r&&w(e),o.d(r)}}}function nv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,s;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,s=o===gm.CONNECTING),t(1,r=o===gm.CONNECTED))},[n,r,s,o]}var Mu=class extends H{constructor(e){super(),U(this,e,nv,iv,F,{isMobile:0,state:3},$b)}},bm=Mu;import{noop as rv}from"@vkontakte/videoplayer-shared";function sv(i){let e,t;return e=new bm({props:{isMobile:i[1],state:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function lv(i){let e,t,n;function o(s){i[5](s)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&16&&(l.ariaLabel=s[4]),a&8&&(l.click=s[3]),a&70&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function av(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:s=rv}=e,a;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,s=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===ov.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off"))},[n,o,r,s,a,l]}var Lu=class extends H{constructor(e){super(),U(this,e,av,lv,F,{ref:0,isMobile:1,state:2,click:3})}},pl=Lu;function uv(i){he(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function cv(i){let e,t,n,o,r=i[9].default,s=Le(r,i,i[8],null);return{c(){e=P("div"),t=P("div"),s&&s.c(),f(t,"class","tooltip svelte-5ygsa2"),j(t,"active",i[0]),j(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,l){k(a,e,l),_(e,t),s&&s.m(t,null),i[10](t),i[11](e),o=!0},p(a,[l]){s&&s.p&&(!o||l&256)&&Re(s,r,a,a[8],o?Ve(r,a[8],l,null):Be(a[8]),null),(!o||l&1)&&j(t,"active",a[0]),(!o||l&2)&&j(t,"pointer",a[1]),(!o||l&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(s,a),o=!0)},o(a){p(s,a),o=!1},d(a){a&&w(e),s&&s.d(a),i[10](null),i[11](null)}}}function fv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:s=!1}=e,{pointer:a=!1}=e,{translateXPx:l=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function v(C){if(!h)return 0;let{width:V}=h.getBoundingClientRect(),S=V/2;return C<S?S:C>c-S?c-S:C}function g(C){ge[C?"unshift":"push"](()=>{h=C,t(4,h)})}function I(C){ge[C?"unshift":"push"](()=>{m=C,t(3,m)})}return i.$$set=C=>{"active"in C&&t(0,s=C.active),"pointer"in C&&t(1,a=C.pointer),"translateXPx"in C&&t(6,l=C.translateXPx),"translateYPx"in C&&t(2,u=C.translateYPx),"containerWidth"in C&&t(7,c=C.containerWidth),"$$scope"in C&&t(8,r=C.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=v(l))},[s,a,u,m,h,n,l,c,r,o,g,I]}var Vu=class extends H{constructor(e){super(),U(this,e,fv,cv,F,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},uv)}},vm=Vu;var _l=(i,e,t)=>t.filter(n=>n.time<=i*e).pop();function dv(i){he(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function ym(i){let e;function t(r,s){return r[2]&&r[10].completed===!1?pv:mv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),k(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&w(e),o.d(r)}}}function mv(i){let e=(i[10].text||"")+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ke(t,e)},d(n){n&&w(t)}}}function pv(i){let e=G("tooltip_episode_unfinished")+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p:de,d(n){n&&w(t)}}}function wm(i){let e,t;return{c(){e=P("div"),t=Oe(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&w(e)}}}function _v(i){let e,t,n,o,r,s,a=i[10]&&ym(i),l=!i[2]&&wm(i);return{c(){e=P("div"),t=P("div"),o=Y(),r=P("div"),a&&a.c(),s=Y(),l&&l.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),j(e,"mobile",i[1])},m(u,c){k(u,e,c),_(e,t),_(e,o),_(e,r),a&&a.m(r,null),_(e,s),l&&l.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=ym(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?l&&(l.d(1),l=null):l?l.p(u,c):(l=wm(u),l.c(),l.m(e,null)),c&2&&j(e,"mobile",u[1])},i:de,o:de,d(u){u&&w(e),a&&a.d(),l&&l.d()}}}var Br=150;function hv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:s=[]}=e,{previewThumbsData:a}=e,{progress:l=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=it().ui.rotateAlpha;q(i,h,L=>t(11,n=L));let v,g,I,C,V,S,y,E;function z(){let L=a.frameWidth,ee=a.frameHeight;return L>Br?(ee=ee/L*Br,L=Br):ee>Br&&(L=L/ee*Br,ee=Br),{width:L,height:ee}}function N(L){let ee;a.isUV?ee=Math.floor(u*L/a.frequency):ee=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*L)));let ae=Math.floor(ee/a.countPerImage),Q=Math.floor(ee%a.countPerImage/a.countPerRow),$=ee%a.countPerRow,J=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(J=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&J++);let W=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(W=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let ue=v*W,x=g*J,K=-$*v,A=-Q*g;return{imgSrc:a.links[ae],imgWidth:ue,imgHeight:x,imgOffsetX:K,imgOffsetY:A}}return i.$$set=L=>{"time"in L&&t(0,o=L.time),"isMobile"in L&&t(1,r=L.isMobile),"videoEpisodes"in L&&t(13,s=L.videoEpisodes),"previewThumbsData"in L&&t(14,a=L.previewThumbsData),"progress"in L&&t(15,l=L.progress),"duration"in L&&t(16,u=L.duration),"isInteractive"in L&&t(2,c=L.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:I,imgWidth:C,imgHeight:V,imgOffsetX:S,imgOffsetY:y}=N(l),I,(t(6,C),t(15,l)),(t(7,V),t(15,l)),(t(8,S),t(15,l)),(t(9,y),t(15,l))),i.$$.dirty&106496&&t(10,E=_l(l,u,s))},t(3,{width:v,height:g}=z(),v,t(4,g)),[o,r,c,v,g,I,C,V,S,y,E,n,h,s,a,l,u]}var Ru=class extends H{constructor(e){super(),U(this,e,hv,_v,F,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},dv)}},km=Ru;function gv(i){he(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function bv(i){let e,t;return{c(){e=P("span"),t=Oe(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o[0]&256&&Ke(t,n[8])},i:de,o:de,d(n){n&&w(e)}}}function vv(i){let e,t;return e=new km({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function yv(i){let e,t,n,o,r=[vv,bv],s=[];function a(l,u){return l[15].features.timelinePreview&&l[22]&&!l[1]?0:1}return e=a(i,[-1,-1]),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function wv(i){let e,t,n,o,r,s=[i[10]],a={$$slots:{default:[yv]},$$scope:{ctx:i}};for(let c=0;c<s.length;c+=1)a=re(a,s[c]);e=new vm({props:a});function l(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:G("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:G("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new Vr({props:u}),ge.push(()=>Ue(n,"ref",l)),{c(){D(e.$$.fragment),t=Y(),D(n.$$.fragment)},m(c,m){R(e,c,m),k(c,t,m),R(n,c,m),r=!0},p(c,m){let h=m[0]&1024?Fe(s,[Vo(c[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let v={};m[0]&4096&&(v.isActiveLive=c[12]),m[0]&2048&&(v.isMobile=c[11]),m[0]&4&&(v.ariaValueMax=c[2]),m[0]&128&&(v.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(v.ariaValueText=G("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(v.loadedProgress=c[13]),m[0]&128&&(v.filledProgress=c[7]),m[0]&128&&(v.handleProgress=c[7]),m[0]&16&&(v.videoEpisodes=c[4]),m[0]&16384&&(v.disabled=c[14].has("TIMELINE")),m[0]&8&&(v.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,v.ref=c[0],qe(()=>o=!1)),n.$set(v)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){p(e.$$.fragment,c),p(n.$$.fragment,c),r=!1},d(c){c&&w(t),B(e,c),B(n,c)}}}function kv(i,e,t){var ce;let n,o,r,s,a,l,u,c,m,h,v,{showTimeline:g=!1}=e,{ref:I=void 0}=e,C=it(),V=Lt(),S=C.state.bufferedProgress$;q(i,S,Se=>t(13,h=Se));let y=C.state.positionWithScrubbing$;q(i,y,Se=>t(41,l=Se));let E=C.state.duration$;q(i,E,Se=>t(2,r=Se));let z=C.state.isLive$;q(i,z,Se=>t(1,o=Se));let N=C.state.isActiveLive$;q(i,N,Se=>t(12,m=Se));let L=C.ui.isMobile;q(i,L,Se=>t(11,c=Se));let ee=V.features.episodes?C.actions.internal.getVideoEpisodes():void 0,ae=C.actions.internal.getPreviewThumbsData(),Q=C.state.interactiveEpisodes$;q(i,Q,Se=>t(42,u=Se));let $=C.state.isInteractive,J=C.state.isInteractiveTime$;q(i,J,Se=>t(3,s=Se));let W=C.state.isInteractiveExpectation$;q(i,W,Se=>t(40,a=Se));let ue=C.actions.internal.correctSeekTimeToInteractive,x=(ce=C.callbacks)==null?void 0:ce.onDisabledTimelineClick,K=C.ui.controls.disabledControls$;q(i,K,Se=>t(14,v=Se));let A,fe,X,Me,ie=!1,be="",Te=0,Ie=0,Pe=0,ot;function Ee(Se){return!ue||!$?Se:ue(Se*r)/r}function ze(Se){C.actions.internal.startScrubbing(Ee(Se))}function te(Se){s||C.actions.internal.progressScrubbing(Ee(Se))}function pe(Se){C.actions.internal.completeScrubbing(Ee(Se)),t(36,ie=!1)}function Ce(Se,$e,De){st(Se,$e,De),t(36,ie=!0)}function We(Se,$e,De){st(Se,$e,De),t(36,ie=!0)}function nt(){t(36,ie=!1)}function st(Se,$e,De){t(9,Pe=Ee(Se)),t(37,Te=$e),De&&t(38,Ie=De),t(8,be=rt(Se))}function rt(Se){let $e=On((o?1-Se:Se)*r);return o?`-${$e}`:$e}function Qe(Se){I=Se,t(0,I)}return i.$$set=Se=>{"showTimeline"in Se&&t(35,g=Se.showTimeline),"ref"in Se&&t(0,I=Se.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,A=$?u:ee),i.$$.dirty[0]&4&&t(5,fe=On(r)),i.$$.dirty[1]&1024&&t(6,X=On(l)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,Me=l/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,ot=a||s),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Ie,translateXPx:Te,translateYPx:$&&ae?-36:-16,active:ie&&g&&!ot,pointer:!V.features.timelinePreview||!ae||o})},[I,o,r,s,A,fe,X,Me,be,Pe,n,c,m,h,v,V,S,y,E,z,N,L,ae,Q,$,J,W,x,K,ze,te,pe,Ce,We,nt,g,ie,Te,Ie,ot,a,l,u,Qe]}var Bu=class extends H{constructor(e){super(),U(this,e,kv,wv,F,{showTimeline:35,ref:0},gv,[-1,-1])}},Cm=Bu;function Cv(i){let e,t;return e=new Vr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:G("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=G("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Sv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=it().ui.isMobile;q(i,a,m=>t(4,n=m));let l,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=On(r)),i.$$.dirty&64&&t(2,u=On(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,l,u,c,n,a,o]}var Nu=class extends H{constructor(e){super(),U(this,e,Sv,Cv,F,{position:6,duration:0})}},hl=Nu;function Tv(i){he(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function Iv(i){let e;return{c(){e=P("div"),f(e,"class","timeline-stub svelte-1gqonyf"),j(e,"mobile",i[3])},m(t,n){k(t,e,n)},p(t,n){n&8&&j(e,"mobile",t[3])},i:de,o:de,d(t){t&&w(e)}}}function Pv(i){let e,t,n,o,r=[Av,Ev],s=[];function a(l,u){return l[1]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=P("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),j(e,"mobile",i[3])},m(l,u){k(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&j(e,"mobile",l[3])},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&w(e),s[t].d()}}}function Ev(i){let e,t,n;function o(s){i[14](s)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new Cm({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a&4&&(l.showTimeline=s[2]),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Av(i){let e,t;return e=new hl({props:{position:i[4],duration:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Mv(i){let e,t,n,o,r=[Pv,Iv],s=[];function a(l,u){return l[2]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function Lv(i,e,t){let n,o,r,s,{isAds:a=!1}=e,{canRewindLive:l}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=it(),v=h.state.isLive$;q(i,v,y=>t(13,n=y));let g=h.ads.duration;q(i,g,y=>t(5,s=y));let I=h.ads.position;q(i,I,y=>t(4,r=y));let C=h.ui.isMobile;q(i,C,y=>t(3,o=y));let V;function S(y){m=y,t(0,m)}return i.$$set=y=>{"isAds"in y&&t(1,a=y.isAds),"canRewindLive"in y&&t(10,l=y.canRewindLive),"isRewindableLive"in y&&t(11,u=y.isRewindableLive),"isHidden"in y&&t(12,c=y.isHidden),"ref"in y&&t(0,m=y.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,V=!c&&(!n||n&&l&&u||a))},[m,a,V,o,r,s,v,g,I,C,l,u,c,n,S]}var Du=class extends H{constructor(e){super(),U(this,e,Lv,Mv,F,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Tv)}},gl=Du;import{noop as Dv}from"@vkontakte/videoplayer-shared";function Vv(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("path"),n=O("path"),o=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function Rv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Ou=class extends H{constructor(e){super(),U(this,e,Rv,Vv,F,{})}},Sm=Ou;function Bv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function Nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Fu=class extends H{constructor(e){super(),U(this,e,Nv,Bv,F,{})}},Tm=Fu;function Ov(i){he(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function Fv(i){let e,t,n,o;e=new Sm({});function r(l,u){if(l[4]==="FULL")return Uv;if(l[4]==="COUNT")return qv}let s=r(i,-1),a=s&&s(i);return{c(){D(e.$$.fragment),t=Y(),a&&a.c(),n=Xe()},m(l,u){R(e,l,u),k(l,t,u),a&&a.m(l,u),k(l,n,u),o=!0},p(l,u){s===(s=r(l,u))&&a?a.p(l,u):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(n.parentNode,n)))},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){l&&(w(t),w(n)),B(e,l),a&&a.d(l)}}}function Hv(i){let e,t,n,o,r,s;return r=new Tm({}),{c(){e=P("span"),t=Oe(i[2]),n=Y(),o=P("div"),D(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,l){k(a,e,l),_(e,t),k(a,n,l),k(a,o,l),R(r,o,null),s=!0},p(a,l){(!s||l&4)&&Ke(t,a[2])},i(a){s||(d(r.$$.fragment,a),s=!0)},o(a){p(r.$$.fragment,a),s=!1},d(a){a&&(w(e),w(n),w(o)),B(r)}}}function qv(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Oe(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){k(o,e,r),_(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ke(n,t)},d(o){o&&w(e)}}}function Uv(i){let e,t;return{c(){e=P("span"),t=Oe(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&4&&Ke(t,n[2])},d(n){n&&w(e)}}}function zv(i){let e,t,n,o,r=[Hv,Fv],s=[];function a(l,u){return l[6]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function xv(i){let e,t,n;function o(s){i[19](s)}let r={className:"w-max btn-full-opacity btn-jc-l "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[zv]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&64&&(l.className="w-max btn-full-opacity btn-jc-l "+(s[6]?"px-0":"")),a&8&&(l.ariaExpanded=s[3]),a&32&&(l.ariaLabel=s[5]),a&8388693&&(l.$$scope={dirty:a,ctx:s}),!t&&a&2&&(t=!0,l.ref=s[1],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Wv(i,e,t){var Q,$,J;let n,o,r,s,a,l,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=it(),v=($=(Q=h.callbacks)==null?void 0:Q.onEpisodeChanged)!=null?$:Dv,g=!!((J=h.callbacks)!=null&&J.onEpisodeClicked),I=h.ui.currentGridType$;q(i,I,W=>t(18,a=W));let C=h.ui.episodes.openedByKeyboard$;q(i,C,W=>t(17,s=W));let V=h.ui.episodes.panelOpened$;q(i,V,W=>t(3,r=W));let S=h.ui.isMobile;q(i,S,W=>t(6,l=W));let y,E=W=>{var x,K,A;if(!!((x=h.callbacks)!=null&&x.onEpisodeClicked)){let fe=Tr(W);C.set(fe),V.set(!0),(A=(K=h.callbacks)==null?void 0:K.onEpisodeClicked)==null||A.call(K,fe)}},z,N,L,ee=async(W,ue,x)=>{await an(),(W==null?void 0:W.getAttribute("aria-expanded"))==="false"&&ue&&!x&&(C.set(!1),W.focus())};function ae(W){y=W,t(1,y)}return i.$$set=W=>{"position"in W&&t(13,u=W.position),"duration"in W&&t(14,c=W.duration),"timeCodes"in W&&t(0,m=W.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/c),i.$$.dirty&114689){let W=_l(n,c,m);W&&(z==null?void 0:z.text)!==W.text&&(v(W),t(15,z=W))}i.$$.dirty&32768&&t(2,o=(z==null?void 0:z.text)||""),i.$$.dirty&262144&&(gi(a,"xl")?t(4,N="FULL"):gi(a,"m")&&am(a,"xl")?t(4,N="COUNT"):t(4,N="SHORT")),i.$$.dirty&4&&t(5,L=`${G("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&ee(y,s,r)},[m,y,o,r,N,L,l,g,I,C,V,S,E,u,c,z,n,s,a,ae]}var Hu=class extends H{constructor(e){super(),U(this,e,Wv,xv,F,{position:13,duration:14,timeCodes:0},Ov)}},bl=Hu;import{debounceFn as P3}from"@vkontakte/videoplayer-shared";import{ChromecastState as Jv,PlaybackState as ls,Player as $v,VideoFormat as as}from"@vkontakte/videoplayer-core";import{assertNonNullable as Fn,clientChecker as e4,getHighestQuality as t4,InterfaceLanguage as i4,isInvariantQuality as n4,isNonNullable as o4,loadVKLangPack as r4,Logger as s4,map as l4,merge as a4,Observable as u4,Subject as Tl,Subscription as Ku,Tracer as c4,ValueSubject as f4,VideoQuality as d4}from"@vkontakte/videoplayer-shared";import{SeekAction as Ho}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as Kv,assertNonNullable as Mi,Subject as Zi,clearVideoElement as jv}from"@vkontakte/videoplayer-shared";var Im=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var Gv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",vl=class{constructor(e,t){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 Zi,loadStarted$:new Zi,loadEnded$:new Zi,loadError$:new Zi,ready$:new Zi,slotRequested$:new Zi,started$:new Zi,timeRemained$:new Zi,paused$:new Zi,resumed$:new Zi,ended$:new Zi,empty$:new Zi,skipped$:new Zi,clicked$:new Zi,closed$:new Zi,error$:new Zi};this.loadAdman=e=>new Promise((t,n)=>{let o;this.events.loadStarted$.next();let r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?(t(),this.events.loadEnded$.next()):n()};Kv(Gv,e,this.loadTimeout).then(()=>{window.AdmanHTML?(t(),this.events.loadEnded$.next()):(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{Mi(this.adsState),Mi(this.playerState),Mi(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),je(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=e=>{Mi(this.adsState),this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Mi(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Mi(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Mi(this.adman),Mi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.events.error$.next(),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0),this.events.loadError$.next()}initAdman(e){if(this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:l,params:u={},duration:c,previewParam:m}=e,h,v=this.playerState&&je(this.playerState.vsid);v&&(h=parseInt(v,36));let g={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Im(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u};m||delete g.preview;let I={slot:l,wrapper:s,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let C=new window.AdmanHTML;C.setDebug(!1),C.onReady(this.onAdsReady),C.onStarted(this.onAdStarted),C.onPlayed(this.onAdPlayed),C.onPaused(this.onAdPaused),C.adMidrollPoint(this.onAdMidrollPoint),C.onClosed(this.onAdClosed),C.onSkipped(this.onAdSkipped),C.onClicked(this.onAdClicked),C.onTimeRemained(this.onAdTimeRemained),C.onCompleted(this.onAdCompleted),C.onError(this.onAdError),C.init(I),this.adman=C,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(C){this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Mi(this.actions),Mi(this.adsState),Mi(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){Mi(this.adsState),this.log({message:"toggle play"});let e=je(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch(t){this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Mi(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Mi(this.adman),Mi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){Mi(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Mi(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Mi(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&jv(this.videoElement),this.isDestroyed=!0}};var Pm=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var qu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},s=o.split(this.oneLineRegExp);for(let a of s)if(!r.startTime&&!r.endTime){let l=new yl,{startTime:u,endTime:c}=l.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let l=new Uu,{texts:u}=l.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},yl=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 t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,s=Number(t)*60,a=Number(n),l=+`0.${o}`;return r+s+a+l}},Uu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let a=0,l=[];for(;a<s.length;){let u=["<",">"].reduce((c,m)=>{let h=s.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){l.push(s.substring(a));break}l.push(s.substring(a,u)),a=u+1}return l}}),r=new yl;for(let s of o)r.isTime(s)?t.texts.push({type:"timestamp",value:r.parseTime(s)}):t.texts.push({type:"text",value:s});return t}},Em=qu;import{isNonNullable as zu}from"@vkontakte/videoplayer-shared";var Fo,oi,xu=0,Wu=!1,Am=(i,e=0,t=0)=>i<e&&i<t,wl=(i,e=0,t=0)=>i>=e&&i<=t,Yv=(i,e=0,t=0)=>i>e&&i>t,Mm=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({lang:l})=>l===e.value))==null?void 0:a.subtitles;if(n){let l=o==null?void 0:o.find(({startTime:u,endTime:c})=>wl(i,u,c));return l?{...l,lang:e.value}:void 0}let r=i>=xu,s=i<xu;if(xu=i,s&&(Wu=!1),zu(Fo)&&wl(i,Fo.startTime,Fo.endTime)&&Fo.lang===e.value)return Fo;if(!zu(oi)&&(o!=null&&o.length)&&!Wu){let l=o.find(({startTime:u,endTime:c})=>wl(i,u,c)||r&&Am(i,u,c));oi=l&&{...l,lang:e.value},Fo=void 0,!zu(oi)&&o[o.length-1].endTime<i&&(Wu=!0);return}else{if(wl(i,oi==null?void 0:oi.startTime,oi==null?void 0:oi.endTime))return Fo=oi,oi=void 0,Fo;(r&&Yv(i,oi==null?void 0:oi.startTime,oi==null?void 0:oi.endTime)||s&&Am(i,oi==null?void 0:oi.startTime,oi==null?void 0:oi.endTime))&&(oi=void 0)}};var Lm={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},Qv={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"},kl=i=>{var e,t;return(t=(e=Lm[i])!=null?e:Lm[Qv[i]])!=null?t:void 0};import{Subscription as Zv}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var Cl=class{constructor(e,t=new Zv){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Sl=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(Sl||{});var go=i=>i!=null?i:0,Nr=(i,e)=>{var o,r;let t=(o=i==null?void 0:i.getBoundingClientRect)==null?void 0:o.call(i),n=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(go(t==null?void 0:t.top)-go(n==null?void 0:n.top)),left:Math.round(go(t==null?void 0:t.left)-go(n==null?void 0:n.left)),bottom:Math.round(go(t==null?void 0:t.bottom)-go(n==null?void 0:n.top)),right:Math.round(go(t==null?void 0:t.right)-go(n==null?void 0:n.left))}},Dr=i=>{var t;let e=(t=i==null?void 0:i.getBoundingClientRect)==null?void 0:t.call(i);return{width:go(e==null?void 0:e.width),height:go(e==null?void 0:e.height)}};var Vm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:s,canDownload:a,callbacks:l,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:v,player:g,disabledControls:I,isInteractive:C,interactiveRanges$:V,isInteractiveTime$:S,replayInteractive:y,stopPlayer:E,hasInteractiveBranches:z,playPrevChapterDisabledTooltip:N,additionalButtons:L,additionalSettingsMenuItems:ee,additionalContextMenuItems:ae,looped:Q=!1,statistics:$,saveRate:J})=>{var ws,ks,Cs,Ss;let W={...v,configName:[...(ws=v.configName)!=null?ws:[],"ui"],isAudioDisabled:s,live:{...(ks=v.live)!=null?ks:{},isLiveCatchUpMode:!!o}},ue=h,x=c4.createRootTracer(ue.features.saveTraceInfoToFile),K=x.createComponentTracer("Store"),A=g||new $v(W,x),fe=new s4,X=new vl(fe,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout}),Me=nr.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,be=u==null?void 0:u.annotationsApi,Te=fe.createComponentLog("Store"),Ie,Pe,ot={},Ee=new Ls,ze=$?It($.oneStat.vsid$):Wn(void 0),te=Ne(Ro()),pe=(Cs=ie==null?void 0:ie.info.isActive$)!=null?Cs:new f4(!1),Ce=ie==null?void 0:ie.info.type,We=Ne(0),nt=Ne([]),st=a4(A.events.fatalError$,A.events.managedError$).subscribe(b=>nt.update(M=>[...M,b])),rt=Wn(!1,b=>{let M=A.events.fatalError$.subscribe(()=>b(!0));return()=>M.unsubscribe()}),Qe=async b=>{var we;let M=Object.values(i4).includes(b);if(ue.downloadVKLanguages&&(M&&ue.updateBuiltinLanguages||!Sa(b))){let Je;try{Je=await r4(b,$f,ed)}catch(mt){(we=$==null?void 0:$.oneStat)==null||we.logError({errorType:"VKLangPack",fatal:!1}),Me==null||Me.report(mt,{errorType:"VKLangPack",fatal:!1})}Je&&(Ca({language:b,pack:Je,fallback:ue.defaultLanguage}),ce.set(b))}Sa(b)&&ce.set(b)},ce=Ne(i),Se=Ne(e);Qe(i);let $e=(b,M)=>{let T=je(ce);return Ta(T,b,M,ue.defaultLanguage)},De=Ne("thumb"),et=(()=>{let b=ni([rt,De],([M,T])=>M?"crashed":T);return{...b,is:M=>je(b)===M}})(),He=(()=>{let b=Ne(new Set(I));return{...b,add:M=>{b.update(T=>new Set([...T].concat(M)))},remove:M=>{b.update(T=>{let we=[...T];return new Set(Array.isArray(M)?we.filter(Je=>!M.includes(Je)):we.filter(Je=>Je!==M))})},includes:M=>{let T=je(b);return Array.isArray(M)?M.every(we=>T.has(we)):T.has(M)}}})();K.log("create store"),Te({message:"create store"});let ut=b=>{let M=b.container;M.append(A.experimental.element$.getValue()),Ye=new MutationObserver(T=>{let{removedNodes:we}=T[0];we.length&&M.append(A.experimental.element$.getValue())}),Ye.observe(M,{childList:!0})},ct=b=>{Te({message:`init video, config: ${JSON.stringify(b)}`}),C?ut(b):A.initVideo(b),K.log("init video",{isInteractive:C}),b.subtitles&&A.setExternalTextTracks(b.subtitles),Ie=b},_e=new Tl,dt=b=>_e.next(b),bt=new Tl,Ct=new Tl,yt=new Tl,Ye=null,Wt={actionRewind$:bt,actionSeek$:Ct,inPiP$:pe,inFullscreen$:new u4(b=>te.subscribe(M=>b.next(M))),actionSetSubtitle$:yt,nextMovie$:_e};if($){let{oneStat:b,statSubscription:M}=$;C||M.add(b.attachTo(A)),M.add(b.attachToUi(Wt)),M.add(b.attachToAds(X.events)),b.authorize(r).catch(T=>{Te({message:`onestat auth error ${String(T)}`})})}if(Me){let b=new Ku,M=(T,we)=>b.add(T.subscribe(we));if(M(A.events.managedError$,T=>{Me.logIError(T)}),M(A.events.fatalError$,T=>{Me.logIError(T,!0)}),$){let{oneStat:T}=$;M(T.experimental.error$,we=>{Me.logIError(we)})}Me.sentrySubscription.add(b)}let $t=()=>{e4.isIOS&&Pe&&Hd(Pe)},zt=new Ku().add(A.experimental.element$.subscribe(b=>{b&&(Pe=b,b.classList.add("player-media"),rr(ie)&&(ie.updateVideoElement(),ie.registryEventHandlers()),C&&b.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{var b;$t(),(b=l==null?void 0:l.onEnded)==null||b.call(l)})).add(A.events.started$.subscribe(async()=>{var M,T;rr(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let b=A.info.muted$.getValue();(M=l==null?void 0:l.onStarted)==null||M.call(l),(T=ot.onStarted)==null||T.call(ot,b)})).add(A.events.willSeek$.subscribe(({from:b,to:M})=>{var T;(T=l==null?void 0:l.onSeek)==null||T.call(l,b,M)})).add(A.events.autoplaySoundProhibited$.subscribe(()=>{var b;(b=l==null?void 0:l.onAutoplaySoundProhibited)==null||b.call(l)})).add(A.info.position$.subscribe(b=>{var T;let M=A.info.duration$.getValue();isFinite(M)&&M>0&&((T=l==null?void 0:l.onTimeupdate)==null||T.call(l,M,b),X.setPosition(b,M))})).add(A.events.fatalError$.subscribe(()=>{var b;(b=l==null?void 0:l.onCrashed)==null||b.call(l)})).add(A.events.loadedMetadata$.subscribe(()=>{pt.state.loadedMetadata$.set(!0)})).add(A.info.is3DVideo$.subscribe(b=>{pt.ui.is3DVideo.set(b)})).add(A.info.isEnded$.subscribe(b=>{C&&(b?(S!=null&&S.getValue()&&He.add(As),He.add("PLAY_BUTTON")):He.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(b=>{var M;(M=l==null?void 0:l.onLiveTime)==null||M.call(l,b)})).add(A.info.isStalled$.subscribe(b=>{var M;(M=l==null?void 0:l.onStalledChanged)==null||M.call(l,b)})).add(X.events.loadStarted$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadStarted)==null?void 0:M.call(b)})).add(X.events.loadEnded$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadEnded)==null?void 0:M.call(b)})).add(X.events.loadError$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onLoadError)==null?void 0:M.call(b)})).add(X.events.init$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onInit)==null?void 0:M.call(b)})).add(X.events.ready$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onReady)==null?void 0:M.call(b)})).add(X.events.started$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onStarted)==null?void 0:T.call(M,b)})).add(X.events.timeRemained$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onTimeRemained)==null?void 0:T.call(M,b)})).add(X.events.ended$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onCompleted)==null?void 0:T.call(M,b)})).add(X.events.empty$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onEmpty)==null?void 0:M.call(b)})).add(X.events.clicked$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onClicked)==null?void 0:T.call(M,b)})).add(X.events.closed$.subscribe(b=>{var M,T;return(T=(M=l==null?void 0:l.adsInfo)==null?void 0:M.onClosed)==null?void 0:T.call(M,b)})).add(X.events.error$.subscribe(()=>{var b,M;return(M=(b=l==null?void 0:l.adsInfo)==null?void 0:b.onError)==null?void 0:M.call(b)})),Dt=new Ku,Kt=()=>{Dt.add(A.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add(fe.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},Vt=()=>{Dt.unsubscribe()},xe=(b,M)=>{K.log("start camera manual rotation",{mx:b,my:M}),A.startCameraManualRotation(b,M)},Ze=(b=!1)=>{K.log("stop camera manual rotation",{immediate:b}),A.stopCameraManualRotation(b)},St=(b,M,T)=>{K.log("move camera focus px",{xpx:b,ypx:M,dt:T}),A.moveCameraFocusPX(b,M,T)},jt=()=>{A.holdCamera()},qt=()=>{A.releaseCamera()},me=Wn(A.info.position$.getValue(),b=>{let M,T,we=()=>{let Je=A.info.playbackState$.getValue(),mt=A.info.isLive$.getValue(),Tt=A.info.duration$.getValue(),_t=A.info.position$.getValue();if([ls.PLAYING,ls.PAUSED].includes(Je)){let Et=mt?_t-Tt:A.getExactTime();Et!==T&&b(Et),T=Et}M=requestAnimationFrame(we)};return we(),()=>cancelAnimationFrame(M)}),Gt=It(pe),Yt=It(A.info.playbackState$),Qt=It(A.info.currentBuffer$),At=It(A.info.isEnded$),Zt=It(A.info.isLive$),xt=ue.features.playbackRate?It(A.info.canChangePlaybackSpeed$):Wn(!1),Ot=It(A.info.liveBufferTime$),zi=It(A.info.volume$),di=It(A.info.muted$),ki=pa(A.info.autoQualityLimits$.pipe(l4(({max:b})=>b!==void 0)),((Ss=A.info.autoQualityLimits$.getValue())==null?void 0:Ss.max)!==void 0),Ci=It(A.info.autoQualityLimitingAvailable$),Ft=It(A.info.availableQualities$),Li=It(A.info.availableQualitiesFps$),Mt=It(A.info.chromecastState$),li=It(A.info.chromecastDeviceName$),bi=It(A.info.currentFormat$),ei=It(A.info.throughputEstimation$),vi=It(A.info.videoBitrate$),Vi=It(A.info.intrinsicVideoSize$),Ae=It(A.info.duration$),tt=It(A.info.isAudioAvailable$),Pt=null,yi=A.info.isBuffering$,wi=Wn(yi.getValue(),b=>{let M=yi.subscribe(T=>{T&&Pt===null?Pt=window.setTimeout(()=>{b(yi.getValue()),Pt=null},ue.loaderDelay):b(T)});return()=>{M.unsubscribe(),Pt&&clearTimeout(Pt)}}),Ht=()=>{Pt&&clearTimeout(Pt),Pt=null},Si=ni([Ae,Zt],([b,M])=>M?-b:b),mi=ni([Yt],([b])=>b===ls.PLAYING),Xi=It(A.info.atLiveEdge$),Ut=It(A.info.atLiveDurationEdge$),un=It(A.info.position$),Ti=ni([un,Ae],([b,M])=>isFinite(b)&&isFinite(M)&&!!M),cn=ni([Mt],([b])=>b===Jv.CONNECTED),fn=It(A.info.availableVideoStreams$),dn=ue.features.audioLanguages?It(A.info.availableAudioStreams$):Wn([]),Ri=It(A.info.currentVideoStream$),xi=It(A.info.currentAudioStream$),ri=b=>{b.language&&wa(b.language),A.setVideoStream(b)},Ji=b=>{b.language&&wa(b.language),A.setAudioStream(b)},Wi=b=>{let M;if(b.length===1&&(M=b.at(0)),M!=null||(M=b.find(we=>"isDefault"in we&&we.isDefault)),M)return M;let T=Pd();return T&&(M=b.find(({language:we})=>T===we)),M!=null||(M=b.at(0)),M},Bi=!1;zt.add(A.info.availableAudioStreams$.subscribe(b=>{if(!Bi&&b.length){let M=Wi(b);M&&(A.setAudioStream(M),Bi=!0)}}));let Sn=!1;zt.add(A.info.availableVideoStreams$.subscribe(b=>{if(!Sn&&b.length){let M=Wi(b);M&&(A.setVideoStream(M),Sn=!0)}}));let pi=Ne(void 0),Ni=It(A.info.isAutoQualityEnabled$,b=>b&&pi.set(void 0)),Di=It(A.info.currentQuality$,()=>pi.set(void 0)),mn=ni([pi,Di],([b,M])=>b!=null?b:M),Ii=ni([Ft,Li,Ni,mn,bi],([b,M,T,we,Je])=>{let mt=[];Je!==as.MPEG&&mt.push({value:"auto",displayValue:$e("auto_quality_option"),selected:T});let Tt=b.filter(_t=>!n4(_t));for(let _t of Tt){let Et=M[_t];mt.push({value:_t,displayValue:`${_t}${Et?Pm(Et):""}`,selected:T?!1:_t===we})}return mt}),Oi=It(A.info.currentPlaybackRate$),Pi=ni([Oi,Xi,Ut],([b,M,T])=>{let we=T||C?1:ue.controls.playbackRateMin,Je=M?1:ue.controls.playbackRateMax,mt=ue.controls.playbackRateStep,Tt=[];for(let _t=we;_t<=Je;_t+=mt)Tt.push({value:_t,displayValue:_t===1?$e("playback_rate_1"):$e("playback_rate",{multiplier:_t.toString(10)}),selected:b===_t});return Tt}),Rt={displayValue:$e("subtitles_off"),value:"off"},ti=Ne({...Rt}),ai=ue.features.subtitles?It(A.info.availableTextTracks$):Wn([]),Fi=pd(),pn=ni([ai,ti],([b,M],T)=>{var mt;let we=[],Je=b.find(({language:Tt})=>Tt===M.value);if(Je!=null&&Je.url){let[,Tt]=(mt=Fi.find(Je.url))!=null?mt:[];if(Tt){T(Tt);return}Ee.download(Je.url).then(_t=>{if(!_t||Ee.isDestroyed())return;let Et=new Em,Bn=Je.language,Z_=!!Je.isAuto,X_=Et.parse(_t);Bn&&we.push({lang:Bn,subtitles:X_,isAuto:Z_}),Fi.add(Je.url,we),je(ti).value===M.value&&T(we)}).catch(_t=>{var Et;(Et=$==null?void 0:$.oneStat)==null||Et.logError({errorType:"Subtitles download",fatal:!1}),Me==null||Me.report(_t,{errorType:"Subtitles download",fatal:!1})})}T(we)}),lt=ni([Oi,mi,ti],([b,M,T],we)=>{let Tt;if(A.info.isLive$.getValue()&&M&&T.value!==Rt.value){let Et=()=>{let Bn=1e3/(3*b);Tt=setTimeout(Et,Bn),we(Date.now())};return Et(),()=>clearTimeout(Tt)}}),Hi=ni([ai,ti],([b,M])=>{if((b==null?void 0:b.length)>0){let T=[{...Rt,selected:(M==null?void 0:M.value)===Rt.value}];for(let{language:we,isAuto:Je}of b){let mt=we&&kl(we);we&&mt&&T.push({displayValue:Je?$e("subtitles_auto",{language:mt}):mt,value:we,selected:(M==null?void 0:M.value)===we,isAuto:Je})}return T}else return[]}),ui={available:[],prev:[]},qi=ni([me,ti,pn,lt],([b,M,T,we])=>{var mt,Tt;let Je=A.info.isLive$.getValue();if(Je&&ui.prev!==T){let _t=T.find(({lang:Bn})=>Bn===M.value),Et=ui.prev.find(({lang:Bn})=>Bn===M.value);if(_t){let Bn={..._t,subtitles:[...(mt=Et==null?void 0:Et.subtitles)!=null?mt:[],..._t.subtitles]};ui.available=[Bn],ui.prev=T}}if(M&&M.value!==Rt.value){let _t=Je?(Tt=Pe==null?void 0:Pe.currentTime)!=null?Tt:0:b,Et=Je?ui.available:T;return Mm(_t,M,Et,Je)}}),Ki=ni([qi],([b])=>b!=null&&b.texts?b.texts:[]),ji=Ne(!0),Ge=ni([Qt,Si,un,Ot],([b,M,T,we])=>{var _t;let Je=(_t=b==null?void 0:b.end)!=null?_t:0;if(!we)return Je/M;let Tt=-T+we-M;return(Je-Tt)/M}),Hn=It(A.info.availableSources$),_n=ni([Hn],([b])=>Object.keys((b==null?void 0:b[as.MPEG])||{}).length>0),hn=()=>{var T,we,Je;let b=Object.keys(((we=(T=A.info.availableSources$)==null?void 0:T.getValue())==null?void 0:we[as.MPEG])||{}),M=t4(b)||d4.Q_144P;return(Je=Ie.sources[as.MPEG])==null?void 0:Je[M]},$i=()=>{var M;let b=hn();if(b)K.log("download video",{url:b}),fd(b,((M=Ie==null?void 0:Ie.meta)==null?void 0:M.title)||"video");else{let T="There is no URL for download video";K.log("download video",{message:T}),Te({message:T})}},en=()=>{Te({message:"toggle muted"});let b=A.info.muted$.getValue(),M=A.info.volume$.getValue(),T=M===0||b,we=!T;K.log("toggle muted",{muted:b,volume:M,soundIsOff:T,nextValue:we}),qn(we)},tn=()=>{var b;if(pt.ui.settingsMenu.visible$.set(!1),!je(pt.ui.settingsSubMenu.visible$)){let M=je(pt.ui.settingsMenu.ref$);if((b=l==null?void 0:l.uiInfo)!=null&&b.onSettingsMenu&&M){let we=Dr(M),Je={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:we,position:Je,name:"settings"})}}K.log("close settings menu")},nn=async(b,M=()=>Promise.resolve())=>{var Je;pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!b),pt.ui.settingsMenu.visible$.set(!0),await M();let T=je(pt.ui.settingsMenu.ref$),we=po();if((Je=l==null?void 0:l.uiInfo)!=null&&Je.onSettingsMenu&&T&&we){let Tt=Dr(T),_t=Nr(T,we);l.uiInfo.onSettingsMenu({visible:!0,size:Tt,position:_t,name:"settings"})}K.log("open settings menu",{wasOpenedByKeyboard:b})},_i=(b,M=!1)=>{var mt;pt.ui.settingsSubMenu.visible$.set(!1);let T=je(pt.ui.settingsMenu.ref$),we=po(),Je=je(pt.ui.settingsMenu.visible$);if((mt=l==null?void 0:l.uiInfo)!=null&&mt.onSettingsMenu&&T&&we)if(Je&&!M){let _t=Dr(T),Et=Nr(T,we);l.uiInfo.onSettingsMenu({visible:!0,size:_t,position:Et,name:"settings"})}else{let _t=Dr(b),Et={top:0,left:0,bottom:0,right:0},Bn=je(pt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:_t,position:Et,name:Bn})}K.log("close settings sub menu")},Tn=(b,M)=>{var we;pt.ui.settingsSubMenu.visible$.set(!0),pt.ui.settingsSubMenu.ref$.set(M),pt.ui.settingsSubMenu.name$.set(b);let T=po();if((we=l==null?void 0:l.uiInfo)!=null&&we.onSettingsMenu&&M&&T){let mt=Dr(M),Tt=Nr(M,T);l.uiInfo.onSettingsMenu({visible:!0,name:b,size:mt,position:Tt})}K.log("open settings sub menu",{name:b})},gn=(b,M=b,T=!1)=>{var mt,Tt,_t;let we=!T,Je=A.info.muted$.getValue();Te({message:`set volume, volume: ${b}, preferredVolume: ${M}, internalCall: ${we}`}),K.log("set volume",{volume:b,preferredVolume:M,internalCall:we}),A.setVolume(b),X.setVolume(b),we&&((mt=l==null?void 0:l.onVolumeChange)==null||mt.call(l,b)),ga(M),Je?(A.setMuted(!1),we&&((Tt=l==null?void 0:l.onUnmute)==null||Tt.call(l)),Rs(!1)):!Je&&b===0&&(A.setMuted(!0),we&&((_t=l==null?void 0:l.onMute)==null||_t.call(l)),Rs(!0))},qn=(b,M=!1)=>{var Je,mt,Tt,_t;let T=!M,we=A.info.volume$.getValue();if(Te({message:`set muted, currentVolume: ${we}, mute: ${b}, internalCall: ${T}`}),K.log("set muted",{mute:b,currentVolume:we,internalCall:T}),A.setMuted(b),X.setVolume(b?0:we),Rs(b),T&&(b?(Je=l==null?void 0:l.onMute)==null||Je.call(l):(mt=l==null?void 0:l.onUnmute)==null||mt.call(l)),we===0){let Et=(Tt=Vs())!=null?Tt:ue.volumeDefault;Et===0&&(Et=ue.volumeMinRestore,ga(Et)),A.setVolume(Et),X.setVolume(Et),T&&((_t=l==null?void 0:l.onVolumeChange)==null||_t.call(l,Et))}},on=Ne(!1),bn=b=>{K.log("set looped",{isLooped:b}),on.set(b),A.setLooped(b)};bn(Q);let vn=()=>{var b,M;(M=(b=l==null?void 0:l.uiInfo)==null?void 0:b.onReportProblem)==null||M.call(b)},In=b=>{Te({message:`set autoplayNextEnabled, value: ${b}`}),K.log("set autoplay next enabled",{autoplayNextEnabled:b}),pt.ui.autoplayNextEnabled$.set(b),Md(b)},Pn=b=>{Te({message:`set timerNextVideoRunning, value: ${b}`}),K.log("set timer next video running",{timerNextVideoRunning:b}),pt.ui.timerNextVideoRunning$.set(b)},rn=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementClick)==null||b.call(l)},En=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||b.call(l)},sn=()=>{var b;(b=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||b.call(l)},so=()=>{A.prepare()},lo=()=>{Fn(pt);let b=je(pt.ui.controls.disabledControls$),M=je(pt.playerPhase),T={playerPhase:M,isInteractive:C,isVideoEnded:!1,action:"none"};if(b.has("PLAY_BUTTON"))return;if(Te({message:"toggle play"}),M==="ads"){T.action="play",K.log("toggle adman play",T),X.togglePlay();return}let we=()=>{var mt;Te({message:"toggle play, call player.play"}),T.action="play",A.play(),(mt=l==null?void 0:l.onPlay)==null||mt.call(l)},Je=()=>{var mt;Te({message:"toggle play, call player.pause"}),T.action="pause",A.pause(),(mt=l==null?void 0:l.onPause)==null||mt.call(l)};if(A.info.isEnded$.getValue()){if(Te({message:"toggle play, video ended, seek to 0"}),bt.next(),Ct.next(Ho.REWIND),C){y==null||y();return}A.seekTime(0),we()}else A.info.playbackState$.getValue()!==ls.PLAYING?we():Je();K.log("toggle play",T)},ao=b=>{Te({message:`set quality, quality: ${b}`}),K.log("set quality",{quality:b}),A.setAutoQuality(b==="auto"),b!=="auto"?(kd(t,b),pi.set(b),A.setQuality(b)):ba()},ci=b=>{Te({message:`set trafficSavingEnabled, value: ${b}`}),K.log("set traffic saving enabled",{trafficSavingEnabled:b}),A.setAutoQualityLimits({max:b?ue.trafficSavingLimit:void 0}),Td(b)},Un=b=>{K.log("set playback rate",{playbackRate:b}),A.setPlaybackRate(b),ue.features.saveRate&&J&&!A.info.isLive$.getValue()&&Ed(b)},Yn=()=>{let b=je(Pi),M=b.findIndex(({selected:we})=>we);if(M===b.length-1)return;let T=b[M+1];Un(T.value)},Qn=()=>{let b=je(Pi),M=b.findIndex(({selected:we})=>we);if(M===0)return;let T=b[M-1];Un(T.value)},zn=b=>{K.log("set subtitles",{...b}),b&&b.value!==Rt.value&&yt.next(b.isAuto?b.value+"_auto":b.value),ti.set(b)},Zn=()=>{K.log("toggle subtitles");let b=je(Hi),M=je(ti),T=je(ce);if((M==null?void 0:M.value)===Rt.value){let we=b.filter(Je=>Je.value!==Rt.value).find(Je=>Je.value===T)||b[1];zn(we!=null?we:{...Rt})}else zn({...Rt,selected:!1})},Gi=(b,M,T=!0)=>{var we;if(Te({message:`seek to time, time: ${b}`}),K.log("seek to time",{time:b,action:M,forcePrecise:T}),Ct.next(M),A.info.isLive$.getValue()){let Je=A.info.duration$.getValue(),mt=Math.min(0,Je+b);A.seekTime(mt,T)}else{if(S!=null&&S.getValue())return;A.info.isEnded$.getValue()&&(Te({message:"seek after ended, call callbacks.onPlay"}),(we=l==null?void 0:l.onPlay)==null||we.call(l)),A.seekTime(ys(b),T)}},yn=b=>{Te({message:`seek to episode start time: ${b}`}),K.log("seek to episode start time",{time:b}),Gi(b,Ho.EPISODE,!0)},Xn=(b,M)=>{Te({message:`seek to percent, percent: ${b}`}),K.log("seek to percent",{percent:b,action:M});let T=Math.round(je(Si)*b);Gi(T,M,!1)},Jn=b=>{Te({message:`seek external, time: ${b}`}),K.log("seek external",{time:b}),Ct.next(Ho.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-b:b)},uo=b=>{var we,Je;let M=(we=b.max)!=null?we:"none",T=(Je=b.min)!=null?Je:"none";Te({message:`set auto quality limitation. Max: ${M}. Min: ${T}`}),K.log("set auto quality limits",{max:M,min:T}),A.setAutoQualityLimits(b)},oe=b=>{Te({message:`seek external to episode start time: ${b}`}),K.log("seek external to episode start time",{time:b}),Gi(b,Ho.EPISODE,!0)},wt=b=>{Te({message:`set playback rate to: ${b}`}),K.log("set playback rate external",{playbackRate:b}),A.setPlaybackRate(b)},ln=Ne(void 0),Ei=Ne(!1),xn=b=>{Te({message:`start scrubbing, progress: ${b}`}),K.log("start scrubbing",{progress:b}),Ei.set(!0),ne(b)},ne=b=>{ln.set(b)},$n,bo,Ao=()=>{ln.set(void 0),Ei.set(!1)},vo=()=>{clearTimeout(bo),clearTimeout($n),$n=window.setTimeout(()=>{Ao()},500),Pe==null||Pe.removeEventListener("seeked",vo)},Mo=b=>{Te({message:`complete scrubbing, progress: ${b}`}),K.log("complete scrubbing",{progress:b}),Xn(b,Ho.SLIDER),je(pt.ui.isMobile)&&je(pt.state.currentFormat$)===as.HLS?(Pe==null||Pe.addEventListener("seeked",vo),bo=window.setTimeout(()=>{vo()},300)):Ao()},zr=ni([me,Si,ln],([b,M,T],we)=>{we(o4(T)?T*M:b)}),eo=Ne({width:0,height:0}),to=ni([eo],([{width:b}],M)=>{let T=um(b);M(T)}),An=Ne(!1),co=L.filter(b=>dd(b)),yo=ni([to,An],([b,M])=>M?co.filter(T=>!T.hideOnMobile):co.filter(T=>{var we;return!((we=T.hideOnDesktopGridTypes)!=null&&we.includes(b))})),Mn=Ne(L.filter(b=>md(b))),zo=ni([Mn,to],([b,M])=>b.filter(T=>{var we;return!((we=T.hideOnDesktopGridTypes)!=null&&we.includes(M))})),xo=ni([zo,yo],([b,M])=>[...ue.features.additionalButtonsDesktopControlPanelRight?b.filter(T=>T.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?M.map((T,we)=>{var Je;return{id:we,weight:we,type:"desktop-control-panel-right",testId:T.testId,icon:T.iconUrl,onClick:T.onClick,ariaLabel:(Je=T.ariaLabel)!=null?Je:T.tooltip,tooltipText:T.tooltip}}):[]]),Ln=Ne(ee),Wo=ni([Ln],([b])=>ue.features.additionalSettingsMenuItems?b.map(M=>M.type==="SWITCH"?{...M,onClick:M.onChangeEnabled}:M):[]),Ko=(b,M)=>{let T=je(Mn).map(we=>we.id!==b?we:{...we,...M});Mn.set(T)},jo=b=>{let M=je(Mn);if(M.some(T=>T.id===b.id)){Te({message:`Additional button with id: "${b.id}" was exist! Can't add more with the same id`});return}M.push(b),Mn.set(M)},Go=b=>{let M=je(Mn);if(!M.some(T=>T.id===b)){Te({message:`Can't find additional button with id: "${b}"! Can't remove item with this id`});return}M=M.filter(T=>T.id!==b),Mn.set(M)},Yo=(b,M)=>{let T=je(Ln).map(we=>we.id!==b?we:{...we,...M});Ln.set(T)},Qo=b=>{let M=je(Ln);if(M.some(T=>T.id===b.id)){Te({message:`Settings menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}M.push(b),Ln.set(M)},Z=b=>{let M=je(Ln);if(!M.some(T=>T.id===b)){Te({message:`Can't find settings menu item with id: "${b}"! Can't remove item with this id`});return}M=M.filter(T=>T.id!==b),Ln.set(M)},vt=Ne(ae),Yi=ni([vt],([b])=>ue.features.additionalContextMenuItems?b:[]),Ui=(b,M)=>{let T=je(vt).map(we=>we.id!==b?we:{...we,...M});vt.set(T)},fo=b=>{let M=je(vt);if(M.some(T=>T.id===b.id)){Te({message:`Context menu item with id: "${b.id}" was exist! Can't add more with the same id`});return}M.push(b),vt.set(M)},wn=b=>{let M=je(vt);if(!M.some(T=>T.id===b)){Te({message:`Can't find context menu item with id: "${b}"! Can't remove item with this id`});return}M=M.filter(T=>T.id!==b),vt.set(M)},mo=ni([An,rt],([b,M],T)=>{T(b&&M)}),Zo=()=>{Ct.next(Ho.LIVE),Te({message:"switch to active live"}),K.log("switch to active live"),A.seekTime(0),A.info.playbackState$.getValue()!==ls.PLAYING&&pt.actions.internal.togglePlay()},wo=()=>{K.log("skip adman"),X.skip()},fr=(b=!0)=>{Fn(pt),Te({message:`switch from ads to video, callPlay: ${b}`}),K.log("switch from ads to video",{callPlay:b}),De.set("video"),b&&A.play()},xr=()=>{Fn(pt),Te({message:"switch from video to ads"}),K.log("switch from video to ads"),pt.actions.internal.pause(),$t(),De.set("ads")},Wr=b=>{Fn(pt);let M=b?"LiveWaitingStart":"thumb";K.log("set live waiting start",{state:b,playerPhase:M}),De.set(M)},Kr=b=>{Fn(pt);let M=b?"LiveWaitingRecover":"thumb";K.log("set live waiting recover",{state:b,playerPhase:M}),De.set(M)},jr=b=>{Fn(pt);let M=b?"LiveWaitingRecord":"thumb";K.log("set live waiting record",{state:b,playerPhase:M}),De.set(M)},Gr=()=>(Fn(pt),K.log("get debug text data"),ud(A,Ie,pt)),Xt=()=>(Fn(pt),JSON.stringify(x.getFinishedSpans())),Vn=()=>(Fn(pt),cd(A,Ie,pt)),po=()=>Pe,Yr=()=>{Te({message:"toggle chromecast"}),K.log("toggle chromecast"),A.toggleChromecast()},Qr=b=>{var T;if(Fn(pt),A.info.isEnded$.getValue())return;let M=!b;if(je(pt.playerPhase)==="ads"){Te({message:`pause ads, internalCall: ${M}`}),K.log("pause ads",{internalCall:M}),X.pause();return}Te({message:`pause video, internalCall: ${M}`}),K.log("pause video",{internalCall:M}),M&&((T=l==null?void 0:l.onPause)==null||T.call(l)),A.pause()},bs=b=>{var T;Fn(pt);let M=!b;if(je(pt.playerPhase)==="ads"){Te({message:`play ads, internalCall: ${M}`}),K.log("play ads",{internalCall:M}),X.play();return}Te({message:`play video, internalCall: ${M}`}),K.log("play video",{internalCall:M}),M&&((T=l==null?void 0:l.onPlay)==null||T.call(l)),A.play()},ia=b=>{Fn(pt);let M=!b;if(je(pt.playerPhase)==="ads"){Te({message:"player cannot be stopped during ads via external method"});return}Te({message:`player will be stopped, internalCall: ${M}`}),E==null||E()},dr=(b,M)=>{Fn(pt),Te({message:`first start, show ads: ${b}, internalCall: ${!M}`}),K.log("first start",{showAds:b,external:M}),b?De.set("ads"):(De.set("video"),M?A.play():pt.actions.internal.togglePlay())},Zr=()=>(Te({message:"getting time codes"}),c),vs=()=>{let b=Zr();if(!b||[0,1].includes(b.length))return;let M=A.info.position$.getValue();return b.find(T=>T.time>M)},na=b=>{let M=b;M||(M=vs());let T=A.info.position$.getValue();K.log("seek to next episode",{currentTime:T,...M}),M&&(Te({message:"seek to next episode"}),Gi(M.time,Ho.EPISODE,!0))},mr=()=>{let b=Zr();if(!b||[0,1].includes(b.length))return;let M=A.info.position$.getValue(),T=b.findIndex(Je=>Je.time>M),we=T===-1?b.length-2:T-2;if(!(we<0))return b[we]},Xr=b=>{let M=b;M||(M=mr());let T=A.info.position$.getValue();K.log("seek to prev episode",{currentTime:T,...M}),M&&(Te({message:"seek to prev episode"}),Gi(M.time,Ho.EPISODE,!0))},Jr=()=>(Te({message:"getting preview thumbs data"}),K.log("get preview thumbs data",{...m}),m),kn=async()=>{let b=ie==null?void 0:ie.isActive(),M="none";ie!=null&&ie.isActive()?(M="remove",await(ie==null?void 0:ie.remove())):(M="request",await(ie==null?void 0:ie.request())),K.log("toggle picture in picture",{isActive:b,action:M})},Rn=(b=-90)=>{K.log("rotate video",{alphaDiff:b}),We.update(M=>M+b)},pr=Ne([]);V==null||V.subscribe(b=>{let M=[];for(let T=0;T<b.length;T++){let{range:[we,Je],subjects:mt}=b[T];T===0&&we!==0&&M.push({time:0,text:"",interactive:!1,completed:!0}),M.push({time:we/1e3,text:"",interactive:!0,completed:!mt.length}),Je!==1/0&&M.push({time:Je/1e3,text:"",interactive:!1,completed:!0})}pr.set(M)});let oa=Ne(!1);S==null||S.subscribe(b=>{b&&je(Ei)&&Ao()});let ys=b=>{if(!C)return b;let M=je(pr),T=je(Si),Je=je(un)/T,mt=M.find(Tt=>Tt.interactive&&!Tt.completed&&Tt.time>Je);return typeof(mt==null?void 0:mt.time)=="number"?Math.min(b,mt.time-.05):b},ra=()=>{pt.ui.episodes.panelOpened$.set(!1)},sa=()=>{K.log("destroy store"),clearTimeout(bo),clearTimeout($n),zt.unsubscribe(),Dt.unsubscribe(),A.destroy(),X.destroy(),$==null||$.destroy(),Me==null||Me.destroy(),st.unsubscribe(),Ye==null||Ye.disconnect(),Ye=null,Ee.destroy()},pt={interfaceLanguage$:ce,isCyrillicRelatedInterface$:Se,initVideo:ct,videoId:t,isClip:n,playerPhase:et,vsid:ze,state:{positionExact$:me,positionWithScrubbing$:zr,duration$:Si,playbackState$:Yt,isPlaying$:mi,isLoaderVisible:wi,bufferedProgress$:Ge,isLive$:Zt,canChangePlaybackSpeed$:xt,isActiveLive$:Xi,isOldestAvailableLive$:Ut,isRewindableLive$:Ti,isEnded$:At,muted$:di,volume$:zi,trafficSavingEnabled$:ki,autoQualityLimitingAvailable$:Ci,availableVideoStreams$:fn,availableAudioStreams$:dn,videoStream$:Ri,audioStream$:xi,currentQuality$:mn,isAutoQualityEnabled$:Ni,availableQualities$:Ii,currentPlaybackRate$:Oi,availablePlaybackRates$:Pi,currentSubtitle$:ti,availableSubtitlesList$:Hi,currentSubtitleCaptions$:Ki,isAutoSubtitleCaptionVisible$:ji,chromecastState$:Mt,chromecastDeviceName$:li,chromecastConnected$:cn,currentFormat$:bi,throughputEstimation$:ei,videoBitrate$:vi,videoSize$:Vi,errorLog$:nt,crashed$:rt,isAudioAvailable$:tt,isAudioDisabled:!!s,canDownload:ue.features.download&&!!a,availableSources$:Hn,hasMpegSources$:_n,isInteractive:C,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!je(pr).length,interactiveEpisodes$:pr,isInteractiveTime$:S?It(S):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:oa,hasInteractiveBranches:z,playPrevChapterDisabledTooltip:N,looped$:on,loadedMetadata$:Ne(!1)},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIndicator:Ne(void 0),timeline:Ne(void 0),autoplayNextToggle:Ne(void 0),additionalButtons:L.length?L.reduce(b=>[...b,Ne(void 0)],[]):[],disabledControls$:He},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:te,rotateAlpha:We,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:eo,isMobile:An,mobileNotReportControlHidden$:mo,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),scrubbingInProgress:Ei,is3DVideo:Ne(!1),isPictureInPictureActive$:Gt,pictureInPictureType$:Wn(Ce),currentGridType$:to,additionalButtonsDeprecated$:yo,additionalDesktopControlPanelRightButtons$:xo,additionalSettingsMenuItems$:Wo,additionalContextMenuItems$:Yi,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1),autoplayNextEnabled$:Ne(!1),settingsMenu:{visible$:Ne(!1),ref$:Ne(void 0),openedByBtnKeyboard$:Ne(!1)},settingsSubMenu:{visible$:Ne(!1),ref$:Ne(void 0),name$:Ne(void 0)},timerNextVideoRunning$:Ne(!0)},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:be},actions:{internal:{preload:so,firstStart:b=>dr(b,!1),play:()=>bs(!1),pause:()=>Qr(!1),togglePlay:lo,toggleMuted:en,openSettingsMenu:nn,closeSettingsMenu:tn,openSettingsSubMenu:Tn,closeSettingsSubMenu:_i,setVolume:gn,setVideoStream:ri,setAudioStream:Ji,setQuality:ao,setTrafficSavingEnabled:b=>ci(b),setPlaybackRate:Un,incrementPlaybackRate:Yn,decrementPlaybackRate:Qn,setSubtitle:zn,toggleSubtitle:Zn,togglePictureInPicture:kn,startScrubbing:xn,progressScrubbing:ne,completeScrubbing:Mo,toggleChromecast:Yr,switchToActiveLive:Zo,switchFromAdsToVideo:fr,switchFromVideoToAds:xr,skipAd:wo,setLiveWaitingStart:Wr,setLiveWaitingRecover:Kr,setLiveWaitingRecord:jr,getDebugTextData:Gr,getTraceTextData:Xt,getDebugPanelData:Vn,getVideoElement:po,seekTime:(b,M,T)=>Gi(b,M,T),clearDelayedBufferingCheckTimeout:Ht,seekEpisodeStartTime:yn,seekToPercent:Xn,getNextEpisode:vs,seekToNextEpisode:na,getPrevEpisode:mr,seekToPrevEpisode:Xr,startLogging:Kt,stopLogging:Vt,startCameraManualRotation:xe,stopCameraManualRotation:Ze,moveCameraFocusPX:St,holdCamera:jt,releaseCamera:qt,getVideoEpisodes:Zr,getPreviewThumbsData:Jr,downloadVideo:$i,addLanguage:Ca,setLanguage:Qe,nextMovie:dt,videoRotate:Rn,correctSeekTimeToInteractive:ys,replayInteractive:y,setLooped:bn,reportProblem:vn,setAutoplayNextEnabled:In,setTimerNextVideoRunning:Pn,nextVideoAnnouncementClick:rn,nextVideoAnnouncementAuto:En,nextVideoAnnouncementCancel:sn},external:{firstStart:b=>dr(b,!0),play:()=>bs(!0),pause:()=>Qr(!0),stop:()=>ia(!0),seekTime:b=>Jn(b),seekEpisodeStartTime:b=>oe(b),setPlaybackRate:b=>wt(b),setAutoQualityLimits:b=>uo(b),setMuted:b=>qn(b,!0),setVolume:b=>gn(b,b,!0),returnFocusToEpisodes:ra,updateAdditionalSettingsItem:Yo,addAdditionalSettingsItem:Qo,removeAdditionalSettingsItem:Z,updateAdditionalContextItem:Ui,addAdditionalContextItem:fo,removeAdditionalContextItem:wn,updateAdditionalButton:Ko,addAdditionalButton:jo,removeAdditionalButton:Go}},callbacks:l,setUiCallbacks:b=>{ot={...b}},getAdmanWrapper:()=>X,getLogger:()=>fe,destroy:sa};return pt};var Pl=(i,e,t,n)=>{var s;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"];for(let[a,l]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=(s=t[a])==null?void 0:s.getBoundingClientRect(),c=(n||r.includes(a))&&!!u&&!!(u.right-u.left),{top:m,left:h,bottom:v,right:g}=Nr(t[a],i);l.set({positionStartX:0,positionEndX:0,left:c?h:0,right:c?g:0,top:c?m:0,bottom:c?v:0,isDisplayed:c})}};var El=async(i,e,t)=>{await an(),e&&t&&(t.focus(),i.set(!1))};function m4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function p4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ju=class extends H{constructor(e){super(),U(this,e,p4,m4,F,{})}},Rm=ju;function _4(i){let e,t;return e=new Rm({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function h4(i){let e,t,n;function o(s){i[8](s)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[_4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&8&&(l.className=s[3]?"opened":""),a&1&&(l.disabled=s[0]),a&2&&(l.ariaLabel=s[1]),a&8&&(l.ariaExpanded=s[3]),a&16384&&(l.$$scope={dirty:a,ctx:s}),!t&&a&4&&(t=!0,l.ref=s[2],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function g4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,s=it(),a=s.ui.contextMenu.visible$;q(i,a,V=>t(3,n=V));let l=s.ui.contextMenu.openedByBtnKeyboard$,u=s.ui.contextMenu.showContextMenuBtn$,c=s.ui.contextMenu.position$,m=s.ui.contextMenu.btnRef$,h,v=V=>{let S=Tr(V),y=r1(h);c.set(y),l.set(S),a.set(!n)},g=()=>{u.set(!0)},I=()=>{u.set(!1)};function C(V){h=V,t(2,h)}return i.$$set=V=>{"disabled"in V&&t(0,o=V.disabled),"ariaLabel"in V&&t(1,r=V.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,v,g,I,C]}var Gu=class extends H{constructor(e){super(),U(this,e,g4,h4,F,{disabled:0,ariaLabel:1})}},Bm=Gu;function b4(i){he(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function v4(i){let e,t;return e=new fl({props:{completed:!0}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function y4(i){let e,t,n,o,r,s,a,l,u,c;function m(v){i[22](v)}let h={tooltipContent:G("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[v4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Qi({props:h}),ge.push(()=>Ue(t,"ref",m)),t.$on("click",i[14]),{c(){e=P("div"),D(t.$$.fragment),o=Y(),r=P("div"),s=Y(),a=P("div"),f(r,"class","ref-block svelte-17imlp9"),j(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),j(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),j(e,"mobile",i[2]),j(e,"fullscreen",i[6]),j(e,"invisible",i[1])},m(v,g){k(v,e,g),R(t,e,null),_(e,o),_(e,r),i[23](r),_(e,s),_(e,a),i[24](a),l=!0,u||(c=[ke(e,"mousemove",gt(i[21])),ke(e,"mouseleave",i[15])],u=!0)},p(v,g){let I={};g[0]&32&&(I.tooltipActive=v[5]),g[1]&1&&(I.$$scope={dirty:g,ctx:v}),!n&&g[0]&1&&(n=!0,I.ref=v[0],qe(()=>n=!1)),t.$set(I),(!l||g[0]&2)&&j(r,"hidden",v[1]),(!l||g[0]&16)&&j(a,"paused",v[4]),(!l||g[0]&4)&&j(e,"mobile",v[2]),(!l||g[0]&64)&&j(e,"fullscreen",v[6]),(!l||g[0]&2)&&j(e,"invisible",v[1])},i(v){l||(d(t.$$.fragment,v),l=!0)},o(v){p(t.$$.fragment,v),l=!1},d(v){v&&w(e),B(t),i[23](null),i[24](null),u=!1,at(c)}}}function w4(i,e,t){var fe;let n,o,r,s,a,l,{ref:u=void 0}=e,c,m=it(),h=Dn(),{interactiveControlsOpacity$:v}=h;q(i,v,X=>t(18,o=X));let g=m.ui.isMobile;q(i,g,X=>t(2,a=X));let I=m.ui.isFullscreen;q(i,I,X=>t(6,l=X));let C=m.state.isInteractiveTime$;q(i,C,X=>t(19,r=X));let V=h.showInteractiveTimeIndicatorTooltip$;q(i,V,X=>t(17,n=X));let S=m.ui.controlsVisible;q(i,S,X=>t(20,s=X));let y=(fe=m.callbacks)==null?void 0:fe.onInteractiveTimeIndicatorClick,E,z,N,L=()=>{t(4,N=!0)},ee=()=>{ae(),c==null||c.addEventListener("animationiteration",L,{once:!0})},ae=()=>{t(4,N=!1),c==null||c.removeEventListener("animationiteration",L)},Q=X=>{V.set(X)},$,J=()=>{z||(V.set(!0),y==null||y())};io(()=>{V.clearTimeout(),ae()});let W=()=>{V.set(!1)};function ue(X){Nn.call(this,i,X)}function x(X){u=X,t(0,u)}function K(X){ge[X?"unshift":"push"](()=>{u=X,t(0,u)})}function A(X){ge[X?"unshift":"push"](()=>{c=X,t(3,c)})}return i.$$set=X=>{"ref"in X&&t(0,u=X.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,E=!a&&s),i.$$.dirty[0]&851968&&t(1,z=!r||!!o||E),i.$$.dirty[0]&2&&t(4,N=z),i.$$.dirty[0]&131074&&t(5,$=n&&!z),i.$$.dirty[0]&131072&&(n?ee():ae())},[u,z,a,c,N,$,l,v,g,I,C,V,S,Q,J,W,E,n,o,r,s,ue,x,K,A]}var Yu=class extends H{constructor(e){super(),U(this,e,w4,y4,F,{ref:0},b4,[-1,-1])}},Al=Yu;function k4(i){var a;let e,t,n,o=[(a=i[2])!=null?a:{}];var r=i[1];function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=re(c,o[h]);return u!==void 0&&u&4&&(c=re(c,Fe(o,[Vo((m=l[2])!=null?m:{})]))),{props:c}}return r&&(e=Bt(r,s(i))),{c(){e&&D(e.$$.fragment),t=Xe()},m(l,u){e&&R(e,l,u),k(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1])){if(e){se();let m=e;p(m.$$.fragment,1,0,()=>{B(m,1)}),le()}r?(e=Bt(r,s(l,u)),D(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}else if(r){let m=u&4?Fe(o,[Vo((c=l[2])!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&B(e,l)}}}function C4(i){let e,t,n;function o(s){i[7](s)}let r={disabled:i[5],tooltipContent:i[3],disabledTooltipContent:i[4],className:i[6],$$slots:{default:[k4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Qi({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&32&&(l.disabled=s[5]),a&8&&(l.tooltipContent=s[3]),a&16&&(l.disabledTooltipContent=s[4]),a&64&&(l.className=s[6]),a&262&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function S4(i,e,t){let{buttonComponent:n}=e,{buttonComponentProps:o}=e,{tooltipText:r}=e,{disabledTooltipContent:s}=e,{disabled:a=!1}=e,{className:l=void 0}=e,{ref:u}=e;function c(m){u=m,t(0,u)}return i.$$set=m=>{"buttonComponent"in m&&t(1,n=m.buttonComponent),"buttonComponentProps"in m&&t(2,o=m.buttonComponentProps),"tooltipText"in m&&t(3,r=m.tooltipText),"disabledTooltipContent"in m&&t(4,s=m.disabledTooltipContent),"disabled"in m&&t(5,a=m.disabled),"className"in m&&t(6,l=m.className),"ref"in m&&t(0,u=m.ref)},[u,n,o,r,s,a,l,c]}var Qu=class extends H{constructor(e){super(),U(this,e,S4,C4,F,{buttonComponent:1,buttonComponentProps:2,tooltipText:3,disabledTooltipContent:4,disabled:5,className:6,ref:0})}},Zu=Qu;var Eo={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};function I4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function P4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Xu=class extends H{constructor(e){super(),U(this,e,P4,I4,F,{})}},Nm=Xu;function E4(i){let e,t;return e=new Nm({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function A4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=s=>{"isPrev"in s&&t(0,n=s.isPrev),"isMobile"in s&&t(2,o=s.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0))},[n,r,o]}var Ju=class extends H{constructor(e){super(),U(this,e,A4,E4,F,{isPrev:0,isMobile:2})}},Dm=Ju;function M4(i){he(i,"svelte-xtk2k4",".icon-background-mobile.svelte-xtk2k4{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color)}")}function Om(i){let e;return{c(){e=P("div"),f(e,"class","icon-background-mobile svelte-xtk2k4")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function L4(i){let e,t,n,o=i[1]&&Om(i);return t=new Dm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){o&&o.c(),e=Y(),D(t.$$.fragment)},m(r,s){o&&o.m(r,s),k(r,e,s),R(t,r,s),n=!0},p(r,s){r[1]?o||(o=Om(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let a={};s&2&&(a.isMobile=r[1]),s&8&&(a.isPrev=r[3]==="prev"),t.$set(a)},i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&w(e),o&&o.d(r),B(t,r)}}}function V4(i){let e,t,n;function o(s){i[6](s)}let r={className:`btn-${i[1]?"m":"d"}--${i[3]}`,testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[L4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=`btn-${s[1]?"m":"d"}--${s[3]}`),a&8&&(l.testId="btn-"+s[3]),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&138&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function R4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:s}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,s=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s==="prev"?G("tooltip_previous"):G("tooltip_next"))},[n,o,r,s,a,l,u]}var $u=class extends H{constructor(e){super(),U(this,e,R4,V4,F,{ref:0,isMobile:1,disabled:2,type:3,click:4},M4)}},Or=$u;function B4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function N4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ec=class extends H{constructor(e){super(),U(this,e,N4,B4,F,{})}},Ml=ec;import{noop as D4}from"@vkontakte/videoplayer-shared";function O4(i){he(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Fm(i){let e;return{c(){e=P("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function F4(i){let e,t,n,o,r=i[1]&&Fm(i);return n=new Ml({}),{c(){r&&r.c(),e=Y(),t=P("div"),D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),j(t,"mobile",i[1])},m(s,a){r&&r.m(s,a),k(s,e,a),k(s,t,a),R(n,t,null),o=!0},p(s,a){s[1]?r||(r=Fm(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&j(t,"mobile",s[1])},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){p(n.$$.fragment,s),o=!1},d(s){s&&(w(e),w(t)),r&&r.d(s),B(n)}}}function H4(i){let e,t,n;function o(s){i[5](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:G("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:_o.KeyK,$$slots:{default:[F4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&4&&(l.disabled=s[2]),a&16&&(l.click=s[4]),a&66&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function q4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=D4}=e;function l(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,s=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,s,a,l]}var tc=class extends H{constructor(e){super(),U(this,e,q4,H4,F,{ref:0,isMobile:1,disabled:2,className:3,click:4},O4)}},us=tc;function U4(i){let e,t;return{c(){e=O("svg"),t=O("path"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","play-icon")},m(n,o){k(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:de,o:de,d(n){n&&w(e)}}}function z4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var ic=class extends H{constructor(e){super(),U(this,e,z4,U4,F,{width:0,height:1,viewBox:2,fill:3})}},qo=ic;function x4(i){let e,t;return{c(){e=O("svg"),t=O("path"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),f(t,"fill",i[3]),f(e,"width",i[0]),f(e,"height",i[1]),f(e,"viewBox",i[2]),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","pause-icon")},m(n,o){k(n,e,o),_(e,t)},p(n,[o]){o&8&&f(t,"fill",n[3]),o&1&&f(e,"width",n[0]),o&2&&f(e,"height",n[1]),o&4&&f(e,"viewBox",n[2])},i:de,o:de,d(n){n&&w(e)}}}function W4(i,e,t){let{width:n="24"}=e,{height:o="24"}=e,{viewBox:r="0 0 24 24"}=e,{fill:s="#fff"}=e;return i.$$set=a=>{"width"in a&&t(0,n=a.width),"height"in a&&t(1,o=a.height),"viewBox"in a&&t(2,r=a.viewBox),"fill"in a&&t(3,s=a.fill)},[n,o,r,s]}var nc=class extends H{constructor(e){super(),U(this,e,W4,x4,F,{width:0,height:1,viewBox:2,fill:3})}},Fr=nc;import{noop as K4}from"@vkontakte/videoplayer-shared";function j4(i){he(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Hm(i){let e;return{c(){e=P("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function G4(i){let e,t,n,o,r=i[1]&&Hm(i);var s=i[8];function a(l,u){return{}}return s&&(n=Bt(s,a(i))),{c(){r&&r.c(),e=Y(),t=P("div"),n&&D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),j(t,"mobile",i[1])},m(l,u){r&&r.m(l,u),k(l,e,u),k(l,t,u),n&&R(n,t,null),o=!0},p(l,u){if(l[1]?r||(r=Hm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&s!==(s=l[8])){if(n){se();let c=n;p(c.$$.fragment,1,0,()=>{B(c,1)}),le()}s?(n=Bt(s,a(l,u)),D(n.$$.fragment),d(n.$$.fragment,1),R(n,t,null)):n=null}(!o||u&2)&&j(t,"mobile",l[1])},i(l){o||(n&&d(n.$$.fragment,l),o=!0)},o(l){n&&p(n.$$.fragment,l),o=!1},d(l){l&&(w(e),w(t)),r&&r.d(l),n&&B(n)}}}function Y4(i){let e,t,n;function o(s){i[13](s)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:_o.KeyK,$$slots:{default:[G4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&10&&(l.className=(s[1]?"btn-m--play":"")+" "+s[3]),a&112&&(l.click=s[5]?s[6]:s[4]),a&4&&(l.disabled=s[2]),a&128&&(l.ariaLabel=s[7]),a&33026&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Q4(i,e,t){let n,o,{fakeIsPlaying$:r}=Dn();q(i,r,S=>t(12,o=S));let{ref:s=void 0}=e,{isMobile:a=!1}=e,{isPlaying:l=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=K4}=e,{toggle:h}=r,v,g,I,C;function V(S){s=S,t(0,s)}return i.$$set=S=>{"ref"in S&&t(0,s=S.ref),"isMobile"in S&&t(1,a=S.isMobile),"isPlaying"in S&&t(10,l=S.isPlaying),"disabled"in S&&t(2,u=S.disabled),"className"in S&&t(3,c=S.className),"click"in S&&t(4,m=S.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,I=g?o:l),i.$$.dirty&2048&&t(7,C=I?G("tooltip_pause"):G("tooltip_play")),i.$$.dirty&2048&&t(8,n=I?Fr:qo)},t(6,v=h),[s,a,u,c,m,g,v,C,n,r,l,I,o,V]}var oc=class extends H{constructor(e){super(),U(this,e,Q4,Y4,F,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},j4)}},cs=oc;function Z4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function X4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var rc=class extends H{constructor(e){super(),U(this,e,X4,Z4,F,{})}},qm=rc;function J4(i){let e,t;return e=new qm({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function $4(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:G("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[J4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function e3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var sc=class extends H{constructor(e){super(),U(this,e,e3,$4,F,{ref:0,hidden:1,disabled:2,click:3})}},Ll=sc;function t3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function i3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var lc=class extends H{constructor(e){super(),U(this,e,i3,t3,F,{})}},Um=lc;function n3(i){let e,t;return e=new Um({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function o3(i){let e,t,n;function o(s){i[4](s)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:G("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[n3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&8&&(l.click=s[3]),a&32&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function r3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:s}=e;function a(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"hidden"in l&&t(1,o=l.hidden),"disabled"in l&&t(2,r=l.disabled),"click"in l&&t(3,s=l.click)},[n,o,r,s,a]}var ac=class extends H{constructor(e){super(),U(this,e,r3,o3,F,{ref:0,hidden:1,disabled:2,click:3})}},Vl=ac;function s3(i){let e,t,n,o,r=i[2].default,s=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],l={};for(let u=0;u<a.length;u+=1)l=re(l,a[u]);return{c(){e=O("svg"),s&&s.c(),t=O("path"),n=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),ye(e,l)},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t),_(e,n),o=!0},p(u,[c]){s&&s.p&&(!o||c&2)&&Re(s,r,u,u[1],o?Ve(r,u[1],c,null):Be(u[1]),null),ye(e,l=Fe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(s,u),o=!0)},o(u){p(s,u),o=!1},d(u){u&&w(e),s&&s.d(u)}}}function l3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var uc=class extends H{constructor(e){super(),U(this,e,l3,s3,F,{})}},zm=uc;function a3(i){he(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function u3(i){let e,t;return e=new zm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function c3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var cc=class extends H{constructor(e){super(),U(this,e,c3,u3,F,{isOpened:0},a3)}},xm=cc;function f3(i){let e,t;return e=new xm({props:{isOpened:!!i[3]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=!!n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function d3(i){let e,t,n;function o(s){i[6](s)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[f3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.className=s[1]?"hidden":""),a&4&&(l.disabled=s[2]),a&32&&(l.ariaLabel=s[5]),a&16&&(l.click=s[4]),a&136&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function m3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:s=!1}=e,{click:a}=e,l;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,s=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,l=s?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off"))},[n,o,r,s,a,l,u]}var fc=class extends H{constructor(e){super(),U(this,e,m3,d3,F,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Rl=fc;import{PlaybackState as dc}from"@vkontakte/videoplayer-core";function p3(i){let e,t;return e=new Ks({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function _3(i){let e,t;return e=new ht({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===dc.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[p3]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===dc.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function h3(i,e,t){let n,{isMobile:o=!1}=e,{isLiveActive:r=!1}=e,{ariaLabel:s=""}=e,a=it(),l=a.state.playbackState$;q(i,l,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isLiveActive"in h&&t(1,r=h.isLiveActive),"ariaLabel"in h&&t(2,s=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===dc.PAUSED&&c()})},[o,r,s,n,m,l]}var mc=class extends H{constructor(e){super(),U(this,e,h3,_3,F,{isMobile:0,isLiveActive:1,ariaLabel:2})}},Bl=mc;import{noop as Wm}from"@vkontakte/videoplayer-shared";function g3(i){let e,t,n,o;return{c(){e=P("img"),f(e,"class","icon"),ko(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){k(r,e,s),n||(o=ke(e,"error",i[2]),n=!0)},p(r,s){s&1&&!ko(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function b3(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){k(t,e,n)},p:de,d(t){t&&w(e)}}}function v3(i){let e;function t(r,s){return r[1]?b3:g3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),k(r,e,s)},p(r,[s]){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:de,o:de,d(r){r&&w(e),o.d(r)}}}function y3(i,e,t){let n,{icon:o}=e,r=()=>{t(1,n=!0)};return i.$$set=s=>{"icon"in s&&t(0,o=s.icon)},t(1,n=!1),[o,n,r]}var pc=class extends H{constructor(e){super(),U(this,e,y3,v3,F,{icon:0})}},Hr=pc;function w3(i){let e,t;return e=new Hr({props:{icon:i[3]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.icon=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function k3(i){var n;let e,t;return e=new ht({props:{className:i[8],ariaLabel:i[4],click:i[7],disabled:i[9],testId:(n=i[2])!=null?n:i[1],$$slots:{default:[w3]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let s={};r&256&&(s.className=o[8]),r&16&&(s.ariaLabel=o[4]),r&128&&(s.click=o[7]),r&512&&(s.disabled=o[9]),r&6&&(s.testId=(a=o[2])!=null?a:o[1]),r&8200&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function C3(i){let e,t,n;function o(s){i[12](s)}let r={disabled:i[9],tooltipContent:i[5],disabledTooltipContent:i[6],width:40,$$slots:{default:[k3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Qi({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&512&&(l.disabled=s[9]),a&32&&(l.tooltipContent=s[5]),a&64&&(l.disabledTooltipContent=s[6]),a&9118&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function S3(i,e,t){let n,o,r,{id:s}=e,{testId:a}=e,{icon:l}=e,{ariaLabel:u}=e,{tooltipText:c}=e,{disabledTooltipContent:m}=e,{disabled:h=!1}=e,{onClick:v=Wm}=e,{ref:g}=e;function I(C){g=C,t(0,g)}return i.$$set=C=>{"id"in C&&t(1,s=C.id),"testId"in C&&t(2,a=C.testId),"icon"in C&&t(3,l=C.icon),"ariaLabel"in C&&t(4,u=C.ariaLabel),"tooltipText"in C&&t(5,c=C.tooltipText),"disabledTooltipContent"in C&&t(6,m=C.disabledTooltipContent),"disabled"in C&&t(10,h=C.disabled),"onClick"in C&&t(7,v=C.onClick),"ref"in C&&t(0,g=C.ref)},i.$$.update=()=>{i.$$.dirty&128&&t(11,n=v===Wm),i.$$.dirty&3072&&t(9,o=n||h),i.$$.dirty&2048&&t(8,r=n?"btn-full-opacity":"")},[g,s,a,l,u,c,m,v,r,o,h,n,I]}var _c=class extends H{constructor(e){super(),U(this,e,S3,C3,F,{id:1,testId:2,icon:3,ariaLabel:4,tooltipText:5,disabledTooltipContent:6,disabled:10,onClick:7,ref:0})}},Km=_c;var jm=i=>!!i.buttonComponent;var Uo={vkLogo:100,volume:200,subtitles:300,settings:400,context:500,fullscreen:600,chromecast:700};function E3(i){he(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}")}function Ym(i,e,t){let n=i.slice();return n[203]=e[t],n[204]=e,n[205]=t,n}function Qm(i,e,t){let n=i.slice();return n[203]=e[t],n[206]=e,n[207]=t,n}function Zm(i){let e,t,n;function o(s){i[167](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Zu({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&2048&&(l.buttonComponent=i[203].buttonComponent),a[0]&2048&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&2048&&(l.tooltipText=i[203].tooltipText),a[0]&2048&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&2048&&(l.disabled=i[203].disabled),a[0]&2048&&(l.className=i[203].className),!t&&a[0]&3072&&(t=!0,l.ref=i[10][i[203].id],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Xm(i){let e,t,n;function o(s){i[168](s)}let r={isMobile:!1,showDuration:i[15],position:i[5]?i[33]:i[34],duration:i[5]?i[35]:i[36]};return i[10].time!==void 0&&(r.ref=i[10].time),e=new cl({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&32768&&(l.showDuration=s[15]),a[0]&32|a[1]&12&&(l.position=s[5]?s[33]:s[34]),a[0]&32|a[1]&48&&(l.duration=s[5]?s[35]:s[36]),!t&&a[0]&1024&&(t=!0,l.ref=s[10].time,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Jm(i){let e,t;return e=new bl({props:{position:i[34],duration:i[36],timeCodes:i[50]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&8&&(r.position=n[34]),o[1]&32&&(r.duration=n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function A3(i){let e,t,n=i[8]&&Jm(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[8]?n?(n.p(o,r),r[0]&256&&d(n,1)):(n=Jm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function M3(i){let e,t,n;function o(s){i[172](s,i[203])}let r={id:i[203].id,testId:i[203].testId,icon:i[203].icon,ariaLabel:i[203].ariaLabel,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:!!i[203].disabled,onClick:i[203].onClick};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Km({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.id=i[203].id),a[0]&4096&&(l.testId=i[203].testId),a[0]&4096&&(l.icon=i[203].icon),a[0]&4096&&(l.ariaLabel=i[203].ariaLabel),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=!!i[203].disabled),a[0]&4096&&(l.onClick=i[203].onClick),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].id],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function L3(i){let e,t,n;function o(s){i[171](s,i[203])}let r={buttonComponent:i[203].buttonComponent,buttonComponentProps:i[203].buttonComponentProps,tooltipText:i[203].tooltipText,disabledTooltipContent:i[203].disabledTooltipContent,disabled:i[203].disabled,className:i[203].className};return i[10][i[203].id]!==void 0&&(r.ref=i[10][i[203].id]),e=new Zu({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){i=s;let l={};a[0]&4096&&(l.buttonComponent=i[203].buttonComponent),a[0]&4096&&(l.buttonComponentProps=i[203].buttonComponentProps),a[0]&4096&&(l.tooltipText=i[203].tooltipText),a[0]&4096&&(l.disabledTooltipContent=i[203].disabledTooltipContent),a[0]&4096&&(l.disabled=i[203].disabled),a[0]&4096&&(l.className=i[203].className),!t&&a[0]&5120&&(t=!0,l.ref=i[10][i[203].id],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function $m(i){let e,t,n,o,r,s=[L3,M3],a=[];function l(u,c){return c[0]&4096&&(e=null),e==null&&(e=!!jm(u[203])),e?0:1}return t=l(i,[-1,-1,-1,-1,-1,-1,-1]),n=a[t]=s[t](i),{c(){n.c(),o=Xe()},m(u,c){a[t].m(u,c),k(u,o,c),r=!0},p(u,c){let m=t;t=l(u,c),t===m?a[t].p(u,c):(se(),p(a[m],1,1,()=>{a[m]=null}),le(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(o.parentNode,o))},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&w(o),a[t].d(u)}}}function V3(i){let e,t,n;function o(s){i[175](s)}let r={};return i[10].interactiveTimeIndicator!==void 0&&(r.ref=i[10].interactiveTimeIndicator),e=new Al({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&1024&&(t=!0,l.ref=s[10].interactiveTimeIndicator,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function R3(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S;function y(x){i[166](x)}let E={isHidden:!i[14],isAds:i[5],canRewindLive:i[6],isRewindableLive:i[13]};i[10].timeline!==void 0&&(E.ref=i[10].timeline),t=new gl({props:E}),ge.push(()=>Ue(t,"ref",y));let z=kt(i[11]),N=[];for(let x=0;x<z.length;x+=1)N[x]=Zm(Qm(i,z,x));let L=x=>p(N[x],1,1,()=>{N[x]=null}),ee=i[7]&&Xm(i);function ae(x){i[169](x)}let Q={className:"w-max",disabled:!i[8],tooltipContent:G("tooltip_episodes"),$$slots:{default:[A3]},$$scope:{ctx:i}};i[10].episodes!==void 0&&(Q.ref=i[10].episodes),u=new Qi({props:Q}),ge.push(()=>Ue(u,"ref",ae));let $=kt(i[12]),J=[];for(let x=0;x<$.length;x+=1)J[x]=$m(Ym(i,$,x));let W=x=>p(J[x],1,1,()=>{J[x]=null}),ue=i[67]&&V3(i);return{c(){e=P("div"),D(t.$$.fragment),o=Y(),r=P("div"),s=P("div");for(let x=0;x<N.length;x+=1)N[x].c();a=Y(),ee&&ee.c(),l=Y(),D(u.$$.fragment),h=Y(),v=P("div");for(let x=0;x<J.length;x+=1)J[x].c();g=Y(),ue&&ue.c(),I=Xe(),f(s,"class","controls-left svelte-ips4nw"),f(v,"class","controls-right svelte-ips4nw"),f(r,"class","controls svelte-ips4nw"),f(e,"class","wrapper-bottom svelte-ips4nw"),j(e,"hidden",i[2]),j(e,"controls-hidden",!i[4]),j(e,"no-smooth",i[3])},m(x,K){k(x,e,K),R(t,e,null),_(e,o),_(e,r),_(r,s);for(let A=0;A<N.length;A+=1)N[A]&&N[A].m(s,null);_(s,a),ee&&ee.m(s,null),_(s,l),R(u,s,null),_(r,h),_(r,v);for(let A=0;A<J.length;A+=1)J[A]&&J[A].m(v,null);i[173](r),i[174](e),k(x,g,K),ue&&ue.m(x,K),k(x,I,K),C=!0,V||(S=[_r(m=Mr.call(null,s)),ke(s,"fd:resize",i[170])],V=!0)},p(x,K){let A={};if(K[0]&16384&&(A.isHidden=!x[14]),K[0]&32&&(A.isAds=x[5]),K[0]&64&&(A.canRewindLive=x[6]),K[0]&8192&&(A.isRewindableLive=x[13]),!n&&K[0]&1024&&(n=!0,A.ref=x[10].timeline,qe(()=>n=!1)),t.$set(A),K[0]&3072){z=kt(x[11]);let X;for(X=0;X<z.length;X+=1){let Me=Qm(x,z,X);N[X]?(N[X].p(Me,K),d(N[X],1)):(N[X]=Zm(Me),N[X].c(),d(N[X],1),N[X].m(s,a))}for(se(),X=z.length;X<N.length;X+=1)L(X);le()}x[7]?ee?(ee.p(x,K),K[0]&128&&d(ee,1)):(ee=Xm(x),ee.c(),d(ee,1),ee.m(s,l)):ee&&(se(),p(ee,1,1,()=>{ee=null}),le());let fe={};if(K[0]&256&&(fe.disabled=!x[8]),K[0]&256|K[1]&40|K[6]&4194304&&(fe.$$scope={dirty:K,ctx:x}),!c&&K[0]&1024&&(c=!0,fe.ref=x[10].episodes,qe(()=>c=!1)),u.$set(fe),K[0]&5120){$=kt(x[12]);let X;for(X=0;X<$.length;X+=1){let Me=Ym(x,$,X);J[X]?(J[X].p(Me,K),d(J[X],1)):(J[X]=$m(Me),J[X].c(),d(J[X],1),J[X].m(v,null))}for(se(),X=$.length;X<J.length;X+=1)W(X);le()}(!C||K[0]&4)&&j(e,"hidden",x[2]),(!C||K[0]&16)&&j(e,"controls-hidden",!x[4]),(!C||K[0]&8)&&j(e,"no-smooth",x[3]),x[67]&&ue.p(x,K)},i(x){if(!C){d(t.$$.fragment,x);for(let K=0;K<z.length;K+=1)d(N[K]);d(ee),d(u.$$.fragment,x);for(let K=0;K<$.length;K+=1)d(J[K]);d(ue),C=!0}},o(x){p(t.$$.fragment,x),N=N.filter(Boolean);for(let K=0;K<N.length;K+=1)p(N[K]);p(ee),p(u.$$.fragment,x),J=J.filter(Boolean);for(let K=0;K<J.length;K+=1)p(J[K]);p(ue),C=!1},d(x){x&&(w(e),w(g),w(I)),B(t),fi(N,x),ee&&ee.d(),B(u),fi(J,x),i[173](null),i[174](null),ue&&ue.d(x),V=!1,at(S)}}}function B3(i,e,t){var b,M;let n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,ae,Q,$,J,W,ue,x,K,A,fe,X,Me,ie,be,Te,Ie,Pe,ot,Ee=de,ze=()=>(Ee(),Ee=ii(Q,T=>t(137,ot=T)),Q),te,pe=de,Ce=()=>(pe(),pe=ii(ae,T=>t(138,te=T)),ae),We,nt=de,st=()=>(nt(),nt=ii(ee,T=>t(139,We=T)),ee),rt,Qe=de,ce=()=>(Qe(),Qe=ii(L,T=>t(140,rt=T)),L),Se,$e=de,De=()=>($e(),$e=ii(N,T=>t(141,Se=T)),N),et,He=de,ut=()=>(He(),He=ii(z,T=>t(142,et=T)),z),ct,_e=de,dt=()=>(_e(),_e=ii(E,T=>t(143,ct=T)),E),bt,Ct=de,yt=()=>(Ct(),Ct=ii(y,T=>t(144,bt=T)),y),Ye,Wt=de,$t=()=>(Wt(),Wt=ii(S,T=>t(145,Ye=T)),S),zt,Dt=de,Kt=()=>(Dt(),Dt=ii(V,T=>t(146,zt=T)),V),Vt,xe=de,Ze=()=>(xe(),xe=ii(C,T=>t(147,Vt=T)),C),St,jt=de,qt=()=>(jt(),jt=ii(I,T=>t(148,St=T)),I),me,Gt=de,Yt=()=>(Gt(),Gt=ii(g,T=>t(149,me=T)),g),Qt,At=de,Zt=()=>(At(),At=ii(v,T=>t(150,Qt=T)),v),xt,Ot=de,zi=()=>(Ot(),Ot=ii(h,T=>t(151,xt=T)),h),di,ki=de,Ci=()=>(ki(),ki=ii(m,T=>t(152,di=T)),m),Ft,Li=de,Mt=()=>(Li(),Li=ii(c,T=>t(153,Ft=T)),c),li,bi,ei,vi,Vi,Ae,tt,Pt,yi,wi,Ht,Si,mi,Xi,Ut,un,Ti;i.$$.on_destroy.push(()=>Ee()),i.$$.on_destroy.push(()=>pe()),i.$$.on_destroy.push(()=>nt()),i.$$.on_destroy.push(()=>Qe()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>He()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>Ct()),i.$$.on_destroy.push(()=>Wt()),i.$$.on_destroy.push(()=>Dt()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>jt()),i.$$.on_destroy.push(()=>Gt()),i.$$.on_destroy.push(()=>At()),i.$$.on_destroy.push(()=>Ot()),i.$$.on_destroy.push(()=>ki()),i.$$.on_destroy.push(()=>Li());let{bottomHidden:cn}=e,{bottomNoSmooth:fn}=e,{showControls:dn}=e,{playerControlsWrapperRef:Ri=void 0}=e,{playerControlsRef:xi=void 0}=e,{isAds:ri=!1}=e,{canRewindLive:Ji}=e,{logoClickable:Wi}=e,{logoHidden:Bi}=e,{logoTargetUrl:Sn=""}=e,{showNextPrevButtons:pi}=e,{nextButtonActive:Ni}=e,{prevButtonActive:Di}=e,{isOneVideoPlaylist:mn=!1}=e,{customFullscreenSupported:Ii=!0}=e,{playNextVideo:Oi}=e,{playPrevVideo:Pi}=e,{repeatPlaylist:Rt}=e,{toggleFullscreen:ti}=e,{seekToInteractive:ai}=e,{playPrevChapter:Fi}=e,{fakeIsPlaying$:pn}=Dn();q(i,pn,T=>t(130,fe=T));let lt=it(),Hi=Dn(),ui=Lt(),qi=lt.actions.internal.toggleMuted,Ki=lt.actions.internal.togglePlay,ji=lt.actions.internal.pause,Ge=lt.actions.internal.toggleSubtitle,Hn=(b=lt.callbacks)==null?void 0:b.onAudioDoesNotExistHint,_n=(M=lt.callbacks)==null?void 0:M.onAudioDisabledHint,hn=lt.state.duration$;q(i,hn,T=>t(36,Ti=T));let $i=lt.state.positionWithScrubbing$;q(i,$i,T=>t(34,Ut=T));let en=lt.state.playbackState$;q(i,en,T=>t(127,x=T));let tn=lt.state.isAudioAvailable$;q(i,tn,T=>t(176,X=T));let nn=lt.state.isAudioDisabled,_i=lt.state.isEnded$;q(i,_i,T=>t(162,wi=T));let Tn=lt.state.isLive$;q(i,Tn,T=>t(156,vi=T));let gn=lt.state.isActiveLive$;q(i,gn,T=>t(155,bi=T));let qn=lt.state.isRewindableLive$;q(i,qn,T=>t(13,ei=T));let on=lt.ui.isPictureInPictureActive$;q(i,on,T=>t(158,Ae=T));let bn=lt.ui.pictureInPictureType$;q(i,bn,T=>t(157,Vi=T));let vn=lt.ui.settingsMenu.visible$;q(i,vn,T=>t(126,ue=T));let In=lt.ui.settingsMenu.openedByBtnKeyboard$;q(i,In,T=>t(132,ie=T));let Pn=lt.ui.controls,rn=lt.actions.internal.getVideoEpisodes(),En=lt.state.chromecastState$;q(i,En,T=>t(124,J=T));let sn=lt.state.availableSubtitlesList$;q(i,sn,T=>t(161,yi=T));let so=lt.state.currentSubtitle$;q(i,so,T=>t(163,Ht=T));let lo=Pn.disabledControls$;q(i,lo,T=>t(165,mi=T));let ao=lt.ui.contextMenu.visible$;q(i,ao,T=>t(154,li=T));let ci=lt.ui.contextMenu.showContextMenuBtn$;q(i,ci,T=>t(159,tt=T));let Un=lt.ui.contextMenu.openedByBtnKeyboard$;q(i,Un,T=>t(160,Pt=T));let Yn=lt.ui.startedByKeyboard$;q(i,Yn,T=>t(131,Me=T));let Qn=lt.ads.duration;q(i,Qn,T=>t(35,un=T));let zn=lt.ads.position;q(i,zn,T=>t(33,Xi=T));let Zn=lt.ads.playbackState;q(i,Zn,T=>t(164,Si=T));let Gi=lt.ui.isFullscreen;q(i,Gi,T=>t(125,W=T));let yn=lt.ui.playerSize;q(i,yn,T=>t(135,Ie=T));let Xn=lt.ui.currentGridType$;q(i,Xn,T=>t(136,Pe=T));let Jn=lt.ui.additionalDesktopControlPanelRightButtons$;q(i,Jn,T=>t(123,$=T));let uo=lt.actions.internal.getVideoElement,oe=lt.actions.internal.replayInteractive,wt=lt.state.isInteractive,ln=lt.state.isInteractiveTime$;q(i,ln,T=>t(134,Te=T));let Ei=lt.state.showInteractiveGraph,xn=lt.state.showSeekToInteractive,ne=lt.state.showPlayPrevChapter,$n=lt.state.showInteractiveTimeIndicator,bo=lt.state.playPrevChapterDisabledTooltip,Ao=Hi.seekToInteractiveDisabledTooltip$;q(i,Ao,T=>t(129,A=T));let vo=Hi.graphIsOpened$;q(i,vo,T=>t(128,K=T));let Mo=ui.features.interactiveResponsiveUi,zr=()=>lt.actions.internal.toggleChromecast(),eo,to,An,co,yo,Mn,zo,xo,Ln,Wo,Ko,jo,Go,Yo,Qo,Z,vt,Yi,Ui,fo,wn,mo,Zo,wo="",fr=(T,we)=>{if(!T){t(105,wo=G("tooltip_live"));return}we===hc.PAUSED&&t(105,wo=G("tooltip_play"))},xr,Wr,Kr,jr,Gr,Xt={},Vn,po,Yr,Qr,bs=P3(Pl,260),ia,dr=Ne();q(i,dr,T=>t(133,be=T));let Zr;function vs(){Do({isAudioDisabled:nn,audioDisabledHintCallback:_n,isAudioAvailable:X,audioIsNotExistHintCallback:Hn})&&qi()}let na=wt?oe:mn?Ki:Rt,mr,Xr,Jr,kn=[],Rn=[];function pr(T){i.$$.not_equal(Xt.timeline,T)&&(Xt.timeline=T,t(10,Xt))}function oa(T,we){i.$$.not_equal(Xt[we.id],T)&&(Xt[we.id]=T,t(10,Xt))}function ys(T){i.$$.not_equal(Xt.time,T)&&(Xt.time=T,t(10,Xt))}function ra(T){i.$$.not_equal(Xt.episodes,T)&&(Xt.episodes=T,t(10,Xt))}let sa=T=>{t(9,Gr=T.target.clientWidth)};function pt(T,we){i.$$.not_equal(Xt[we.id],T)&&(Xt[we.id]=T,t(10,Xt))}function ws(T,we){i.$$.not_equal(Xt[we.id],T)&&(Xt[we.id]=T,t(10,Xt))}function ks(T){ge[T?"unshift":"push"](()=>{xi=T,t(1,xi)})}function Cs(T){ge[T?"unshift":"push"](()=>{Ri=T,t(0,Ri)})}function Ss(T){i.$$.not_equal(Xt.interactiveTimeIndicator,T)&&(Xt.interactiveTimeIndicator=T,t(10,Xt))}return i.$$set=T=>{"bottomHidden"in T&&t(2,cn=T.bottomHidden),"bottomNoSmooth"in T&&t(3,fn=T.bottomNoSmooth),"showControls"in T&&t(4,dn=T.showControls),"playerControlsWrapperRef"in T&&t(0,Ri=T.playerControlsWrapperRef),"playerControlsRef"in T&&t(1,xi=T.playerControlsRef),"isAds"in T&&t(5,ri=T.isAds),"canRewindLive"in T&&t(6,Ji=T.canRewindLive),"logoClickable"in T&&t(71,Wi=T.logoClickable),"logoHidden"in T&&t(72,Bi=T.logoHidden),"logoTargetUrl"in T&&t(73,Sn=T.logoTargetUrl),"showNextPrevButtons"in T&&t(74,pi=T.showNextPrevButtons),"nextButtonActive"in T&&t(75,Ni=T.nextButtonActive),"prevButtonActive"in T&&t(76,Di=T.prevButtonActive),"isOneVideoPlaylist"in T&&t(77,mn=T.isOneVideoPlaylist),"customFullscreenSupported"in T&&t(78,Ii=T.customFullscreenSupported),"playNextVideo"in T&&t(79,Oi=T.playNextVideo),"playPrevVideo"in T&&t(80,Pi=T.playPrevVideo),"repeatPlaylist"in T&&t(81,Rt=T.repeatPlaylist),"toggleFullscreen"in T&&t(82,ti=T.toggleFullscreen),"seekToInteractive"in T&&t(83,ai=T.seekToInteractive),"playPrevChapter"in T&&t(84,Fi=T.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&1024&&t(121,n=mi.has("EPISODE_BUTTON")),i.$$.dirty[5]&1024&&t(116,o=mi.has("GRAPH_BUTTON")),i.$$.dirty[5]&1024&&t(117,r=mi.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&1024&&t(119,s=mi.has("PLAY_BUTTON")),i.$$.dirty[5]&1024&&t(120,a=mi.has("REPLAY_BUTTON")),i.$$.dirty[5]&1024&&t(118,l=mi.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&32|i.$$.dirty[4]&8|i.$$.dirty[5]&512&&t(85,eo=ri?Si==="playing":x===hc.PLAYING),i.$$.dirty[5]&256&&t(86,to=Ht.value!=="off"),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(122,u=wi&&!ri||wt),i.$$.dirty[3]&536870912|i.$$.dirty[4]&4096&&t(87,An=Mo?u&&gi(Pe,"m"):u),i.$$.dirty[0]&32|i.$$.dirty[5]&128&&t(88,co=!wi||wt||ri),i.$$.dirty[4]&4096&&t(89,yo=gi(Pe,"m")),i.$$.dirty[0]&32|i.$$.dirty[2]&12288|i.$$.dirty[4]&4096&&t(90,Mn=pi&&gi(Pe,"m")&&!ri&&Ni),i.$$.dirty[0]&32|i.$$.dirty[2]&20480|i.$$.dirty[4]&4096&&t(91,zo=pi&&gi(Pe,"m")&&!ri&&Di),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(92,xo=!ri&&!!vi),i.$$.dirty[4]&4097|i.$$.dirty[5]&12&&t(93,Ln=J!==Gm.NOT_AVAILABLE&&!(Ae&&Vi===1)&&gi(Pe,"m")&&!wt),i.$$.dirty[4]&4096|i.$$.dirty[5]&64&&t(94,Wo=yi.length>0&&gi(Pe,"m")),i.$$.dirty[5]&48&&t(95,Ko=Pt||tt),i.$$.dirty[0]&32|i.$$.dirty[4]&4096&&t(96,jo=gi(Pe,"s")&&!ri),i.$$.dirty[0]&32|i.$$.dirty[2]&1024&&t(97,Go=!Bi&&!ri),i.$$.dirty[2]&66560|i.$$.dirty[4]&4096|i.$$.dirty[5]&12&&t(98,Yo=ui.features.fullscreen&&(Bi||gi(Pe,Mo?"xs":"s"))&&!(Ae&&Vi===1)&&(wt?Ii:!0)),i.$$.dirty[0]&32|i.$$.dirty[5]&2&&t(7,Qo=(!vi||ri)&&!(ui.features.interactiveHideTime&&wt)),i.$$.dirty[4]&2048&&t(14,Z=Ie.width>100),i.$$.dirty[4]&4096&&t(99,vt=Ei&&gi(Pe,"m")),i.$$.dirty[4]&4096&&t(100,Yi=Mo?xn&&gi(Pe,"s"):xn),i.$$.dirty[4]&4096&&t(101,Ui=Mo?ne&&gi(Pe,"s"):ne),i.$$.dirty[0]&32|i.$$.dirty[2]&134217728|i.$$.dirty[3]&268435456|i.$$.dirty[5]&2&&t(8,fo=!ri&&!vi&&!!(rn!=null&&rn.length)&&yo&&!n),i.$$.dirty[0]&8192|i.$$.dirty[5]&1&&t(102,wn=!ei||bi),i.$$.dirty[4]&16&&t(103,mo=K?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off")),i.$$.dirty[4]&1073741824&&t(104,Zo=li?G("aria_label_context_menu_close"):G("aria_label_context_menu_open")),i.$$.dirty[3]&512|i.$$.dirty[4]&8&&fr(wn,x),i.$$.dirty[2]&16777216&&t(107,Wr=to?G("tooltip_subtitles_on"):G("tooltip_subtitles_off")),i.$$.dirty[4]&2&&t(108,Kr=W?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off")),i.$$.dirty[4]&1&&t(109,jr=J===Gm.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off")),i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1073733632&&t(110,Vn={prevButton:Ft?Ft.right-Ft.left:0,replayButton:di?di.right-di.left:0,playButton:xt?xt.right-xt.left:0,nextButton:Qt?Qt.right-Qt.left:0,playPrevChapterButton:me?me.right-me.left:0,seekToInteractiveButton:St?St.right-St.left:0,interactiveGraphButton:Vt?Vt.right-Vt.left:0,liveButton:zt?zt.right-zt.left:0,time:Ye?Ye.right-Ye.left:0,episodes:bt?bt.right-bt.left:0,vkLogo:ct?ct.right-ct.left:0,volume:et?et.right-et.left:0,subtitles:Se?Se.right-Se.left:0,settings:rt?rt.right-rt.left:0,context:We?We.right-We.left:0,fullscreen:te?te.right-te.left:0,chromecast:ot?ot.right-ot.left:0,additionalButtons:$.length?$.reduce(T=>[...T,40],[]):[]}),i.$$.dirty[3]&393216&&(!po||po<Vn.time)&&t(111,po=Vn.time),i.$$.dirty[0]&896|i.$$.dirty[3]&393216|i.$$.dirty[4]&4096){let T=0;fo&&(gi(Pe,"xl")?T=Vn.time:T=60);let we=Vn.prevButton+Vn.playButton+Vn.nextButton+Vn.seekToInteractiveButton+Vn.interactiveGraphButton+Vn.liveButton+po+T;t(112,Yr=Qo&&Gr>=we)}i.$$.dirty[3]&524288|i.$$.dirty[4]&4096&&t(15,Qr=Yr&&gi(Pe,"m")),i.$$.dirty[0]&1040|i.$$.dirty[4]&3072&&bs(uo(),Pn,Xt,dn),i.$$.dirty[4]&516&&be&&Ir(be,ue,In),i.$$.dirty[4]&260&&ho(ia,ue,ie),i.$$.dirty[4]&128&&El(Yn,Me,Zr),i.$$.dirty[4]&64&&t(113,mr=fe!==null),i.$$.dirty[2]&8388608|i.$$.dirty[3]&1048576|i.$$.dirty[4]&64&&t(114,Xr=mr?fe:eo),i.$$.dirty[3]&2097152&&t(115,Jr=Xr?G("tooltip_pause"):G("tooltip_play")),i.$$.dirty[0]&2048|i.$$.dirty[2]&1994809344|i.$$.dirty[3]&264247232|i.$$.dirty[4]&56&&(t(11,kn=[]),zo&&kn.push({id:"prevButton",type:"desktop-control-panel-left",weight:Eo.prevButton,buttonComponent:Or,buttonComponentProps:{disabled:!Di,type:"prev",click:Pi},tooltipText:G("tooltip_previous"),disabled:!Di}),An&&kn.push({id:"replayButton",type:"desktop-control-panel-left",weight:Eo.replayButton,buttonComponent:us,buttonComponentProps:{disabled:a,click:na},tooltipText:G("tooltip_restart"),disabled:a}),co&&kn.push({id:"playButton",type:"desktop-control-panel-left",weight:Eo.playButton,buttonComponent:cs,buttonComponentProps:{disabled:s,isPlaying:eo,click:Ki},tooltipText:Jr,disabled:s}),Mn&&kn.push({id:"nextButton",type:"desktop-control-panel-left",weight:Eo.nextButton,buttonComponent:Or,buttonComponentProps:{disabled:!Ni,type:"next",click:Oi},tooltipText:G("tooltip_next"),disabled:!Ni}),wt&&(Ui&&kn.push({id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Eo.playPrevChapterButton,buttonComponent:Ll,buttonComponentProps:{disabled:l,click:Fi},tooltipText:G("tooltip_interactive_go_back"),disabledTooltipContent:bo,disabled:l}),Yi&&kn.push({id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Eo.seekToInteractiveButton,buttonComponent:Vl,buttonComponentProps:{disabled:r,click:ai},tooltipText:G("tooltip_interactive_seek"),disabled:r,disabledTooltipContent:G(A)}),vt&&kn.push({id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Eo.interactiveGraphButton,buttonComponent:Rl,buttonComponentProps:{disabled:o,click:vo.toggle,graphIsOpened:K},tooltipText:mo})),xo&&kn.push({id:"liveButton",type:"desktop-control-panel-left",weight:Eo.liveButton,buttonComponent:Bl,buttonComponentProps:{isLiveActive:wn,ariaLabel:wo},tooltipText:wo,disabled:wn&&x===hc.PLAYING}),t(11,kn=kn.sort(lr))),i.$$.dirty[0]&4096|i.$$.dirty[2]&17828352|i.$$.dirty[3]&1073866815|i.$$.dirty[4]&7&&(t(12,Rn=[]),Go&&Rn.push({id:"vkLogo",type:"desktop-control-panel-right",weight:Uo.vkLogo,buttonComponent:ml,buttonComponentProps:{targetUrl:Sn,logoClickable:Wi,click:ji},tooltipText:xr,disabledTooltipContent:"",disabled:!Wi}),Rn.push({id:"volume",type:"desktop-control-panel-right",weight:Uo.volume,buttonComponent:fm,buttonComponentProps:{click:vs}}),Wo&&Rn.push({id:"subtitles",type:"desktop-control-panel-right",weight:Uo.subtitles,buttonComponent:Z1,buttonComponentProps:{isSubtitlesEnabled:to,click:Ge},tooltipText:Wr}),jo&&Rn.push({id:"settings",type:"desktop-control-panel-right",weight:Uo.settings,buttonComponent:ss,buttonComponentProps:{ref$:dr},tooltipText:ue?void 0:G("tooltip_settings_off")}),ui.features.contextMenuButton&&Rn.push({id:"context",type:"desktop-control-panel-right",weight:Uo.context,buttonComponent:Bm,buttonComponentProps:{click:ti},className:Ko?"":"out-of-view",tooltipText:Zo}),Yo&&Rn.push({id:"fullscreen",type:"desktop-control-panel-right",weight:Uo.fullscreen,buttonComponent:dl,buttonComponentProps:{isFullscreen:W,click:ti},tooltipText:Kr}),Ln&&Rn.push({id:"chromecast",type:"desktop-control-panel-right",weight:Uo.chromecast,buttonComponent:pl,buttonComponentProps:{state:J,click:zr},tooltipText:jr}),t(12,Rn=[...Rn,...$].sort(lr)))},t(106,xr=ui.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo")),Mt(t(32,{prevButton:c,replayButton:m,playButton:h,nextButton:v,playPrevChapterButton:g,seekToInteractiveButton:I,interactiveGraphButton:C,liveButton:V,time:S,episodes:y,vkLogo:E,volume:z,subtitles:N,settings:L,context:ee,fullscreen:ae,chromecast:Q}=Pn,c,Ci(t(31,m)),zi(t(30,h)),Zt(t(29,v)),Yt(t(28,g)),qt(t(27,I)),Ze(t(26,C)),Kt(t(25,V)),$t(t(24,S)),yt(t(23,y)),dt(t(22,E)),ut(t(21,z)),De(t(20,N)),ce(t(19,L)),st(t(18,ee)),Ce(t(17,ae)),ze(t(16,Q)))),[Ri,xi,cn,fn,dn,ri,Ji,Qo,fo,Gr,Xt,kn,Rn,ei,Z,Qr,Q,ae,ee,L,N,z,E,y,S,V,C,I,g,v,h,m,c,Xi,Ut,un,Ti,pn,hn,$i,en,tn,_i,Tn,gn,qn,on,bn,vn,In,rn,En,sn,so,lo,ao,ci,Un,Yn,Qn,zn,Zn,Gi,yn,Xn,Jn,ln,$n,Ao,vo,dr,Wi,Bi,Sn,pi,Ni,Di,mn,Ii,Oi,Pi,Rt,ti,ai,Fi,eo,to,An,co,yo,Mn,zo,xo,Ln,Wo,Ko,jo,Go,Yo,vt,Yi,Ui,wn,mo,Zo,wo,xr,Wr,Kr,jr,Vn,po,Yr,mr,Xr,Jr,o,r,l,s,a,n,u,$,J,W,ue,x,K,A,fe,Me,ie,be,Te,Ie,Pe,ot,te,We,rt,Se,et,ct,bt,Ye,zt,Vt,St,me,Qt,xt,di,Ft,li,bi,vi,Vi,Ae,tt,Pt,yi,wi,Ht,Si,mi,pr,oa,ys,ra,sa,pt,ws,ks,Cs,Ss]}var gc=class extends H{constructor(e){super(),U(this,e,B3,R3,F,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:71,logoHidden:72,logoTargetUrl:73,showNextPrevButtons:74,nextButtonActive:75,prevButtonActive:76,isOneVideoPlaylist:77,customFullscreenSupported:78,playNextVideo:79,playPrevVideo:80,repeatPlaylist:81,toggleFullscreen:82,seekToInteractive:83,playPrevChapter:84},E3,[-1,-1,-1,-1,-1,-1,-1])}},ep=gc;import{ChromecastState as up,PlaybackState as cp}from"@vkontakte/videoplayer-core";import{noop as tp}from"@vkontakte/videoplayer-shared";function N3(i){he(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function D3(i){let e,t,n,o;return{c(){e=P("img"),f(e,"class","icon svelte-1aqpg2x"),ko(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){k(r,e,s),n||(o=ke(e,"error",i[7]),n=!0)},p(r,s){s&1&&!ko(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function O3(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',f(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){k(t,e,n)},p:de,d(t){t&&w(e)}}}function F3(i){let e;function t(r,s){return r[5]?O3:D3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),k(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&w(e),o.d(r)}}}function H3(i){let e,t;return e=new ht({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[F3]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function q3(i,e,t){let n,o,r,{iconUrl:s}=e,{ariaLabel:a}=e,{disabled:l=!1}=e,{testId:u}=e,{onClick:c=tp}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,s=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,l=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=c===tp),i.$$.dirty&272&&t(6,o=n||l)},t(5,r=!1),[s,a,u,c,n,r,o,m,l]}var vc=class extends H{constructor(e){super(),U(this,e,q3,H3,F,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},N3)}},ip=vc;function U3(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("g"),n=O("path"),o=O("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function z3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var yc=class extends H{constructor(e){super(),U(this,e,z3,U3,F,{})}},np=yc;import{noop as x3}from"@vkontakte/videoplayer-shared";function W3(i){he(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function op(i){let e;return{c(){e=P("span"),e.textContent=`${G("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){k(t,e,n)},d(t){t&&w(e)}}}function K3(i){let e,t,n,o;var r=i[4];function s(l,u){return{}}r&&(t=Bt(r,s(i)));let a=i[1]&&op(i);return{c(){e=P("div"),t&&D(t.$$.fragment),n=Y(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),j(e,"expanded",i[1])},m(l,u){k(l,e,u),t&&R(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(l,u){if(u&16&&r!==(r=l[4])){if(t){se();let c=t;p(c.$$.fragment,1,0,()=>{B(c,1)}),le()}r?(t=Bt(r,s(l,u)),D(t.$$.fragment),d(t.$$.fragment,1),R(t,e,n)):t=null}l[1]?a||(a=op(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&j(e,"expanded",l[1])},i(l){o||(t&&d(t.$$.fragment,l),o=!0)},o(l){t&&p(t.$$.fragment,l),o=!1},d(l){l&&w(e),t&&B(t),a&&a.d()}}}function j3(i){let e,t,n;function o(s){i[6](s)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&2&&(l.testId=s[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(l.click=s[2]),a&8&&(l.ariaLabel=s[3]),a&146&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function G3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=x3}=e,{ref:s=void 0}=e,a,l;function u(c){s=c,t(0,s)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,s=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?G("tooltip_volume"):G("tooltip_volume_muted")),i.$$.dirty&2&&t(4,l=o?ur:np)},[s,o,r,a,l,n,u]}var wc=class extends H{constructor(e){super(),U(this,e,G3,j3,F,{muted:5,expanded:1,click:2,ref:0},W3)}},kc=wc;function Y3(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("path"),n=O("path"),o=O("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function Q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Cc=class extends H{constructor(e){super(),U(this,e,Q3,Y3,F,{})}},rp=Cc;function Z3(i){he(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function X3(i){let e,t;return e=new rp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function J3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Sc=class extends H{constructor(e){super(),U(this,e,J3,X3,F,{isActive:0},Z3)}},sp=Sc;import{noop as $3}from"@vkontakte/videoplayer-shared";function e5(i){let e,t;return e=new sp({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function t5(i){let e,t,n;function o(s){i[3](s)}let r={testId:"btn-pip",ariaLabel:G("menu_pip"),click:i[2],$$slots:{default:[e5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&4&&(l.click=s[2]),a&18&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function i5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=$3}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,s]}var Tc=class extends H{constructor(e){super(),U(this,e,i5,t5,F,{ref:0,isPictureInPictureActive:1,click:2})}},lp=Tc;function n5(i){he(i,"svelte-sty291",".gutter.svelte-sty291{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px}.toggler.svelte-sty291{position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease}.toggler.enabled.svelte-sty291{background-color:var(--white);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}")}function o5(i){let e,t;return e=new Fr({props:{width:"14",height:"14"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function r5(i){let e,t;return e=new qo({props:{width:"14",height:"14",fill:"#000"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function s5(i){let e,t,n,o,r,s=[r5,o5],a=[];function l(u,c){return u[1]?0:1}return n=l(i,-1),o=a[n]=s[n](i),{c(){e=P("span"),t=P("span"),o.c(),f(t,"class","toggler svelte-sty291"),j(t,"enabled",i[1]),f(e,"class","gutter svelte-sty291")},m(u,c){k(u,e,c),_(e,t),a[n].m(t,null),r=!0},p(u,c){let m=n;n=l(u,c),n!==m&&(se(),p(a[m],1,1,()=>{a[m]=null}),le(),o=a[n],o||(o=a[n]=s[n](u),o.c()),d(o,1),o.m(t,null)),(!r||c&2)&&j(t,"enabled",u[1])},i(u){r||(d(o),r=!0)},o(u){p(o),r=!1},d(u){u&&w(e),a[n].d()}}}function l5(i){let e,t,n;function o(s){i[4](s)}let r={click:i[3],$$slots:{default:[s5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ht({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,[a]){let l={};a&130&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.ref=s[0],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function a5(i,e,t){let n,{ref:o=void 0}=e,r=it(),s=r.ui.autoplayNextEnabled$;q(i,s,c=>t(1,n=c));let a=r.actions.internal.setAutoplayNextEnabled;function l(){a(!n)}function u(c){o=c,t(0,o)}return i.$$set=c=>{"ref"in c&&t(0,o=c.ref)},[o,n,s,l,u]}var Ic=class extends H{constructor(e){super(),U(this,e,a5,l5,F,{ref:0},n5)}},ap=Ic;import{debounceFn as u5}from"@vkontakte/videoplayer-shared";function c5(i){he(i,"svelte-s4hj64",".wrapper-bottom.svelte-s4hj64.svelte-s4hj64{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-s4hj64>.svelte-s4hj64{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-s4hj64.svelte-s4hj64{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-s4hj64.svelte-s4hj64{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64,.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-s4hj64.svelte-s4hj64{left:12px}.wrapper-middle-left-second.svelte-s4hj64.svelte-s4hj64{left:64px}.wrapper-middle-right.svelte-s4hj64.svelte-s4hj64{right:12px}.controls.svelte-s4hj64.svelte-s4hj64{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-s4hj64 > *:not(:first-child){margin-left:8px}.hidden.svelte-s4hj64.svelte-s4hj64{visibility:hidden;opacity:0}.controls-hidden.svelte-s4hj64.svelte-s4hj64{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-s4hj64.svelte-s4hj64{transition:none}.overlay-mobile.svelte-s4hj64.svelte-s4hj64{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:16px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-s4hj64.svelte-s4hj64{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-s4hj64.svelte-s4hj64{left:44px}.wrapper-middle-left-second.fullscreen.svelte-s4hj64.svelte-s4hj64{left:96px}.wrapper-middle-right.fullscreen.svelte-s4hj64.svelte-s4hj64{right:44px}.controls-wrapper.fullscreen.svelte-s4hj64.svelte-s4hj64{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function fp(i,e,t){let n=i.slice();return n[172]=e[t].iconUrl,n[173]=e[t].ariaLabel,n[174]=e[t].testId,n[175]=e[t].onClick,n[176]=e[t].tooltip,n}function dp(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y=(!i[47]||i[49])&&mp(i),E=kt(i[52]),z=[];for(let A=0;A<E.length;A+=1)z[A]=pp(fp(i,E,A));let N=A=>p(z[A],1,1,()=>{z[A]=null}),L=i[59].features.autoplayNext&&i[9]&&_p(i),ee=i[32]&&hp(i),ae=i[33]&&gp(i),Q=i[53]&&bp(i),$=i[35]&&vp(i),J=i[29]&&yp(i),W=i[28]&&wp(i),ue=i[27]&&kp(i),x=i[30]&&Cp(i),K=i[94]&&!i[23]&&Sp(i);return{c(){e=P("div"),t=Y(),n=P("div"),y&&y.c(),o=Y(),r=P("div");for(let A=0;A<z.length;A+=1)z[A].c();s=Y(),L&&L.c(),a=Y(),ee&&ee.c(),l=Y(),ae&&ae.c(),u=Y(),Q&&Q.c(),c=Y(),$&&$.c(),m=Y(),h=P("div"),J&&J.c(),v=Y(),W&&W.c(),g=Y(),ue&&ue.c(),I=Y(),x&&x.c(),C=Y(),K&&K.c(),V=Xe(),f(e,"class","overlay-mobile svelte-s4hj64"),j(e,"hidden",!i[38]),f(n,"class","wrapper-top-left svelte-s4hj64"),j(n,"hidden",!i[4]),j(n,"fullscreen",i[48]),f(r,"class","wrapper-top-right svelte-s4hj64"),j(r,"hidden",!i[4]&&!i[21]),j(r,"fullscreen",i[48]),f(h,"class","wrapper-middle svelte-s4hj64"),j(h,"hidden",!i[4]||i[23]||i[10]&&i[9])},m(A,fe){k(A,e,fe),k(A,t,fe),k(A,n,fe),y&&y.m(n,null),k(A,o,fe),k(A,r,fe);for(let X=0;X<z.length;X+=1)z[X]&&z[X].m(r,null);_(r,s),L&&L.m(r,null),_(r,a),ee&&ee.m(r,null),_(r,l),ae&&ae.m(r,null),_(r,u),Q&&Q.m(r,null),_(r,c),$&&$.m(r,null),k(A,m,fe),k(A,h,fe),J&&J.m(h,null),_(h,v),W&&W.m(h,null),_(h,g),ue&&ue.m(h,null),_(h,I),x&&x.m(h,null),k(A,C,fe),K&&K.m(A,fe),k(A,V,fe),S=!0},p(A,fe){if((!S||fe[1]&128)&&j(e,"hidden",!A[38]),!A[47]||A[49]?y?(y.p(A,fe),fe[1]&327680&&d(y,1)):(y=mp(A),y.c(),d(y,1),y.m(n,null)):y&&(se(),p(y,1,1,()=>{y=null}),le()),(!S||fe[0]&16)&&j(n,"hidden",!A[4]),(!S||fe[1]&131072)&&j(n,"fullscreen",A[48]),fe[1]&2097152){E=kt(A[52]);let X;for(X=0;X<E.length;X+=1){let Me=fp(A,E,X);z[X]?(z[X].p(Me,fe),d(z[X],1)):(z[X]=pp(Me),z[X].c(),d(z[X],1),z[X].m(r,s))}for(se(),X=E.length;X<z.length;X+=1)N(X);le()}A[59].features.autoplayNext&&A[9]?L?(L.p(A,fe),fe[0]&512&&d(L,1)):(L=_p(A),L.c(),d(L,1),L.m(r,a)):L&&(se(),p(L,1,1,()=>{L=null}),le()),A[32]?ee?(ee.p(A,fe),fe[1]&2&&d(ee,1)):(ee=hp(A),ee.c(),d(ee,1),ee.m(r,l)):ee&&(se(),p(ee,1,1,()=>{ee=null}),le()),A[33]?ae?(ae.p(A,fe),fe[1]&4&&d(ae,1)):(ae=gp(A),ae.c(),d(ae,1),ae.m(r,u)):ae&&(se(),p(ae,1,1,()=>{ae=null}),le()),A[53]?Q?(Q.p(A,fe),fe[1]&4194304&&d(Q,1)):(Q=bp(A),Q.c(),d(Q,1),Q.m(r,c)):Q&&(se(),p(Q,1,1,()=>{Q=null}),le()),A[35]?$?($.p(A,fe),fe[1]&16&&d($,1)):($=vp(A),$.c(),d($,1),$.m(r,null)):$&&(se(),p($,1,1,()=>{$=null}),le()),(!S||fe[0]&2097168)&&j(r,"hidden",!A[4]&&!A[21]),(!S||fe[1]&131072)&&j(r,"fullscreen",A[48]),A[29]?J?(J.p(A,fe),fe[0]&536870912&&d(J,1)):(J=yp(A),J.c(),d(J,1),J.m(h,v)):J&&(se(),p(J,1,1,()=>{J=null}),le()),A[28]?W?(W.p(A,fe),fe[0]&268435456&&d(W,1)):(W=wp(A),W.c(),d(W,1),W.m(h,g)):W&&(se(),p(W,1,1,()=>{W=null}),le()),A[27]?ue?(ue.p(A,fe),fe[0]&134217728&&d(ue,1)):(ue=kp(A),ue.c(),d(ue,1),ue.m(h,I)):ue&&(se(),p(ue,1,1,()=>{ue=null}),le()),A[30]?x?(x.p(A,fe),fe[0]&1073741824&&d(x,1)):(x=Cp(A),x.c(),d(x,1),x.m(h,null)):x&&(se(),p(x,1,1,()=>{x=null}),le()),(!S||fe[0]&8390160)&&j(h,"hidden",!A[4]||A[23]||A[10]&&A[9]),A[94]&&!A[23]?K?(K.p(A,fe),fe[0]&8388608&&d(K,1)):(K=Sp(A),K.c(),d(K,1),K.m(V.parentNode,V)):K&&(se(),p(K,1,1,()=>{K=null}),le())},i(A){if(!S){d(y);for(let fe=0;fe<E.length;fe+=1)d(z[fe]);d(L),d(ee),d(ae),d(Q),d($),d(J),d(W),d(ue),d(x),d(K),S=!0}},o(A){p(y),z=z.filter(Boolean);for(let fe=0;fe<z.length;fe+=1)p(z[fe]);p(L),p(ee),p(ae),p(Q),p($),p(J),p(W),p(ue),p(x),p(K),S=!1},d(A){A&&(w(e),w(t),w(n),w(o),w(r),w(m),w(h),w(C),w(V)),y&&y.d(),fi(z,A),L&&L.d(),ee&&ee.d(),ae&&ae.d(),Q&&Q.d(),$&&$.d(),J&&J.d(),W&&W.d(),ue&&ue.d(),x&&x.d(),K&&K.d(A)}}}function mp(i){let e,t,n;function o(s){i[133](s)}let r={muted:i[50],expanded:i[47]&&!i[67]&&i[51],click:i[103]};return i[17].volume!==void 0&&(r.ref=i[17].volume),e=new kc({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&524288&&(l.muted=s[50]),a[1]&1114112&&(l.expanded=s[47]&&!s[67]&&s[51]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].volume,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function pp(i){var n;let e,t;return e=new ip({props:{iconUrl:i[172],ariaLabel:(n=i[173])!=null?n:i[176],testId:i[174],onClick:i[175]}}),{c(){D(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let s={};r[1]&2097152&&(s.iconUrl=o[172]),r[1]&2097152&&(s.ariaLabel=(a=o[173])!=null?a:o[176]),r[1]&2097152&&(s.testId=o[174]),r[1]&2097152&&(s.onClick=o[175]),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function _p(i){let e,t,n;function o(s){i[134](s)}let r={};return i[17].autoplayNextToggle!==void 0&&(r.ref=i[17].autoplayNextToggle),e=new ap({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].autoplayNextToggle,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function hp(i){let e,t,n;function o(s){i[135](s)}let r={isMobile:!0,click:i[101],state:i[22]};return i[17].chromecast!==void 0&&(r.ref=i[17].chromecast),e=new pl({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&4194304&&(l.state=s[22]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].chromecast,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function gp(i){let e,t,n;function o(s){i[136](s)}let r={click:i[102],isPictureInPictureActive:i[20]};return i[17].pip!==void 0&&(r.ref=i[17].pip),e=new lp({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&1048576&&(l.isPictureInPictureActive=s[20]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].pip,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function bp(i){let e,t;return e=new ss({props:{ref$:i[105]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function vp(i){let e,t,n;function o(s){i[137](s)}let r={click:i[61],targetUrl:i[8],logoClickable:i[7]};return i[17].vkLogo!==void 0&&(r.ref=i[17].vkLogo),e=new ml({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&256&&(l.targetUrl=s[8]),a[0]&128&&(l.logoClickable=s[7]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].vkLogo,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function yp(i){let e,t,n;function o(s){i[138](s)}let r={click:i[12],type:"prev",isMobile:!0};return i[17].prevButton!==void 0&&(r.ref=i[17].prevButton),e=new Or({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&4096&&(l.click=s[12]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].prevButton,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function wp(i){let e,t,n;function o(s){i[139](s)}let r={disabled:i[45],click:i[60],isMobile:!0,isPlaying:i[25]};return i[17].playButton!==void 0&&(r.ref=i[17].playButton),e=new cs({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&16384&&(l.disabled=s[45]),a[0]&33554432&&(l.isPlaying=s[25]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].playButton,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function kp(i){let e,t,n;function o(s){i[140](s)}let r={disabled:i[44],click:i[104],isMobile:!0};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new us({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Cp(i){let e,t,n;function o(s){i[141](s)}let r={click:i[11],type:"next",isMobile:!0};return i[17].nextButton!==void 0&&(r.ref=i[17].nextButton),e=new Or({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&2048&&(l.click=s[11]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].nextButton,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Sp(i){let e,t,n,o,r=i[97]&&f5(i),s=i[40]&&Tp(i),a=i[96]&&d5(i);return{c(){r&&r.c(),e=Y(),s&&s.c(),t=Y(),a&&a.c(),n=Xe()},m(l,u){r&&r.m(l,u),k(l,e,u),s&&s.m(l,u),k(l,t,u),a&&a.m(l,u),k(l,n,u),o=!0},p(l,u){l[97]&&r.p(l,u),l[40]?s?(s.p(l,u),u[1]&512&&d(s,1)):(s=Tp(l),s.c(),d(s,1),s.m(t.parentNode,t)):s&&(se(),p(s,1,1,()=>{s=null}),le()),l[96]&&a.p(l,u)},i(l){o||(d(r),d(s),d(a),o=!0)},o(l){p(r),p(s),p(a),o=!1},d(l){l&&(w(e),w(t),w(n)),r&&r.d(l),s&&s.d(l),a&&a.d(l)}}}function f5(i){let e,t,n,o,r,s;function a(u){i[142](u)}let l={hidden:!i[4],disabled:i[43],click:i[15]};return i[17].playPrevChapterButton!==void 0&&(l.ref=i[17].playPrevChapterButton),t=new Ll({props:l}),ge.push(()=>Ue(t,"ref",a)),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-s4hj64"),j(e,"fullscreen",i[48]),j(e,"hidden",!i[4])},m(u,c){k(u,e,c),R(t,e,null),o=!0,r||(s=ke(e,"click",i[106]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&4096&&(m.disabled=u[43]),c[0]&32768&&(m.click=u[15]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].playPrevChapterButton,qe(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&j(e,"fullscreen",u[48]),(!o||c[0]&16)&&j(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&w(e),B(t),r=!1,s()}}}function Tp(i){let e,t,n,o,r;function s(l){i[143](l)}let a={hidden:!i[4]&&!i[54],disabled:i[46],click:i[100].toggle,graphIsOpened:i[54]};return i[17].interactiveGraphButton!==void 0&&(a.ref=i[17].interactiveGraphButton),t=new Rl({props:a}),ge.push(()=>Ue(t,"ref",s)),{c(){e=P("div"),D(t.$$.fragment),f(e,"class",o=Ff(i[97]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-s4hj64"),j(e,"fullscreen",i[48]),j(e,"hidden",!i[4]&&!i[54])},m(l,u){k(l,e,u),R(t,e,null),r=!0},p(l,u){let c={};u[0]&16|u[1]&8388608&&(c.hidden=!l[4]&&!l[54]),u[1]&32768&&(c.disabled=l[46]),u[1]&8388608&&(c.graphIsOpened=l[54]),!n&&u[0]&131072&&(n=!0,c.ref=l[17].interactiveGraphButton,qe(()=>n=!1)),t.$set(c),(!r||u[1]&131072)&&j(e,"fullscreen",l[48]),(!r||u[0]&16|u[1]&8388608)&&j(e,"hidden",!l[4]&&!l[54])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&w(e),B(t)}}}function d5(i){let e,t,n,o,r,s;function a(u){i[144](u)}let l={hidden:!i[4],disabled:i[42],click:i[14]};return i[17].seekToInteractiveButton!==void 0&&(l.ref=i[17].seekToInteractiveButton),t=new Vl({props:l}),ge.push(()=>Ue(t,"ref",a)),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-s4hj64"),j(e,"fullscreen",i[48]),j(e,"hidden",!i[4])},m(u,c){k(u,e,c),R(t,e,null),o=!0,r||(s=ke(e,"click",i[107]),r=!0)},p(u,c){let m={};c[0]&16&&(m.hidden=!u[4]),c[1]&2048&&(m.disabled=u[42]),c[0]&16384&&(m.click=u[14]),!n&&c[0]&131072&&(n=!0,m.ref=u[17].seekToInteractiveButton,qe(()=>n=!1)),t.$set(m),(!o||c[1]&131072)&&j(e,"fullscreen",u[48]),(!o||c[0]&16)&&j(e,"hidden",!u[4])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){p(t.$$.fragment,u),o=!1},d(u){u&&w(e),B(t),r=!1,s()}}}function Ip(i){let e,t,n,o,r,s=i[49]&&Pp(i),a=i[26]&&Ep(i);return o=new hl({props:{position:i[55],duration:i[56]}}),{c(){s&&s.c(),e=Y(),a&&a.c(),t=Y(),n=P("div"),D(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-s4hj64"),j(n,"fullscreen",i[48])},m(l,u){s&&s.m(l,u),k(l,e,u),a&&a.m(l,u),k(l,t,u),k(l,n,u),R(o,n,null),r=!0},p(l,u){l[49]?s?(s.p(l,u),u[1]&262144&&d(s,1)):(s=Pp(l),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(se(),p(s,1,1,()=>{s=null}),le()),l[26]?a?(a.p(l,u),u[0]&67108864&&d(a,1)):(a=Ep(l),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(se(),p(a,1,1,()=>{a=null}),le());let c={};u[1]&16777216&&(c.position=l[55]),u[1]&33554432&&(c.duration=l[56]),o.$set(c),(!r||u[1]&131072)&&j(n,"fullscreen",l[48])},i(l){r||(d(s),d(a),d(o.$$.fragment,l),r=!0)},o(l){p(s),p(a),p(o.$$.fragment,l),r=!1},d(l){l&&(w(e),w(t),w(n)),s&&s.d(l),a&&a.d(l),B(o)}}}function Pp(i){let e,t,n,o;function r(a){i[145](a)}let s={muted:i[50],expanded:!1,click:i[103]};return i[17].volume!==void 0&&(s.ref=i[17].volume),t=new kc({props:s}),ge.push(()=>Ue(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","wrapper-top-right svelte-s4hj64"),j(e,"fullscreen",i[48])},m(a,l){k(a,e,l),R(t,e,null),o=!0},p(a,l){let u={};l[1]&524288&&(u.muted=a[50]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].volume,qe(()=>n=!1)),t.$set(u),(!o||l[1]&131072)&&j(e,"fullscreen",a[48])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),B(t)}}}function Ep(i){let e,t,n,o;function r(a){i[146](a)}let s={disabled:i[45],click:i[60],isMobile:!0,isPlaying:!i[26]};return i[17].playButton!==void 0&&(s.ref=i[17].playButton),t=new cs({props:s}),ge.push(()=>Ue(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","wrapper-middle svelte-s4hj64")},m(a,l){k(a,e,l),R(t,e,null),o=!0},p(a,l){let u={};l[1]&16384&&(u.disabled=a[45]),l[0]&67108864&&(u.isPlaying=!a[26]),!n&&l[0]&131072&&(n=!0,u.ref=a[17].playButton,qe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),B(t)}}}function m5(i){let e,t,n;function o(s){i[147](s)}let r={disabled:i[44],$$slots:{default:[p5]},$$scope:{ctx:i}};return i[17].replayButton!==void 0&&(r.ref=i[17].replayButton),e=new Qi({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&8192&&(l.disabled=s[44]),a[1]&8192|a[5]&16777216&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].replayButton,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function p5(i){let e,t;return e=new us({props:{disabled:i[44],click:i[93]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&8192&&(r.disabled=n[44]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Ap(i){let e,t,n;function o(s){i[148](s)}let r={$$slots:{default:[_5]},$$scope:{ctx:i}};return i[17].liveButton!==void 0&&(r.ref=i[17].liveButton),e=new Qi({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&65536|a[1]&1024|a[5]&16777216&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].liveButton,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function _5(i){let e,t;return e=new Bl({props:{isLiveActive:i[16],isMobile:!0,ariaLabel:i[41]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.isLiveActive=n[16]),o[1]&1024&&(r.ariaLabel=n[41]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Mp(i){let e,t,n;function o(s){i[149](s)}let r={showDuration:i[31],position:i[5]?i[55]:i[57],duration:i[5]?i[56]:i[58],isMobile:!0};return i[17].time!==void 0&&(r.ref=i[17].time),e=new cl({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[1]&1&&(l.showDuration=s[31]),a[0]&32|a[1]&83886080&&(l.position=s[5]?s[55]:s[57]),a[0]&32|a[1]&167772160&&(l.duration=s[5]?s[56]:s[58]),!t&&a[0]&131072&&(t=!0,l.ref=s[17].time,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Lp(i){let e,t,n,o;return n=new bl({props:{position:i[57],duration:i[58],timeCodes:i[81]}}),{c(){e=P("div"),e.textContent="\xB7",t=Y(),D(n.$$.fragment),f(e,"aria-hidden","true")},m(r,s){k(r,e,s),k(r,t,s),R(n,r,s),o=!0},p(r,s){let a={};s[1]&67108864&&(a.position=r[57]),s[1]&134217728&&(a.duration=r[58]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(w(e),w(t)),B(n,r)}}}function h5(i){let e,t,n=i[39]&&Lp(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[39]?n?(n.p(o,r),r[1]&256&&d(n,1)):(n=Lp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Vp(i){let e,t,n;function o(s){i[151](s)}let r={$$slots:{default:[g5]},$$scope:{ctx:i}};return i[17].settings!==void 0&&(r.ref=i[17].settings),e=new Qi({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[5]&16777216&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].settings,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function g5(i){let e,t;return e=new ss({props:{ref$:i[105]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Rp(i){let e,t,n;function o(s){i[152](s)}let r={$$slots:{default:[b5]},$$scope:{ctx:i}};return i[17].fullscreen!==void 0&&(r.ref=i[17].fullscreen),e=new Qi({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&8192|a[1]&131072|a[5]&16777216&&(l.$$scope={dirty:a,ctx:s}),!t&&a[0]&131072&&(t=!0,l.ref=s[17].fullscreen,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function b5(i){let e,t;return e=new dl({props:{click:i[13],isFullscreen:i[48]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[1]&131072&&(r.isFullscreen=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function v5(i){let e,t,n;function o(s){i[156](s)}let r={};return i[17].interactiveTimeIndicator!==void 0&&(r.ref=i[17].interactiveTimeIndicator),e=new Al({props:r}),ge.push(()=>Ue(e,"ref",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};!t&&a[0]&131072&&(t=!0,l.ref=s[17].interactiveTimeIndicator,qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function y5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y=!i[5]&&dp(i),E=i[5]&&i[24]!=="inactive"&&Ip(i),z=i[94]&&m5(i),N=!i[5]&&i[19]&&Ap(i),L=i[37]&&Mp(i);function ee(x){i[150](x)}let ae={className:"w-max",disabled:!i[39],$$slots:{default:[h5]},$$scope:{ctx:i}};i[17].episodes!==void 0&&(ae.ref=i[17].episodes),u=new Qi({props:ae}),ge.push(()=>Ue(u,"ref",ee));let Q=i[34]&&Vp(i),$=i[36]&&Rp(i);function J(x){i[154](x)}let W={isAds:i[5],canRewindLive:i[6],isRewindableLive:i[18]};i[17].timeline!==void 0&&(W.ref=i[17].timeline),g=new gl({props:W}),ge.push(()=>Ue(g,"ref",J));let ue=i[98]&&v5(i);return{c(){y&&y.c(),e=Y(),E&&E.c(),t=Y(),n=P("div"),o=P("div"),r=P("div"),z&&z.c(),s=Y(),N&&N.c(),a=Y(),L&&L.c(),l=Y(),D(u.$$.fragment),m=Y(),Q&&Q.c(),h=Y(),$&&$.c(),v=Y(),D(g.$$.fragment),C=Y(),ue&&ue.c(),V=Xe(),f(r,"class","controls svelte-s4hj64"),j(r,"mobile",!0),f(o,"class","controls-wrapper svelte-s4hj64"),j(o,"fullscreen",i[48]),f(n,"class","wrapper-bottom svelte-s4hj64"),j(n,"hidden",i[2]),j(n,"controls-hidden",!i[4]),j(n,"no-smooth",i[3]),j(n,"mobile",!0)},m(x,K){y&&y.m(x,K),k(x,e,K),E&&E.m(x,K),k(x,t,K),k(x,n,K),_(n,o),_(o,r),z&&z.m(r,null),_(r,s),N&&N.m(r,null),_(r,a),L&&L.m(r,null),_(r,l),R(u,r,null),_(r,m),Q&&Q.m(r,null),_(r,h),$&&$.m(r,null),i[153](r),_(o,v),R(g,o,null),i[155](n),k(x,C,K),ue&&ue.m(x,K),k(x,V,K),S=!0},p(x,K){x[5]?y&&(se(),p(y,1,1,()=>{y=null}),le()):y?(y.p(x,K),K[0]&32&&d(y,1)):(y=dp(x),y.c(),d(y,1),y.m(e.parentNode,e)),x[5]&&x[24]!=="inactive"?E?(E.p(x,K),K[0]&16777248&&d(E,1)):(E=Ip(x),E.c(),d(E,1),E.m(t.parentNode,t)):E&&(se(),p(E,1,1,()=>{E=null}),le()),x[94]&&z.p(x,K),!x[5]&&x[19]?N?(N.p(x,K),K[0]&524320&&d(N,1)):(N=Ap(x),N.c(),d(N,1),N.m(r,a)):N&&(se(),p(N,1,1,()=>{N=null}),le()),x[37]?L?(L.p(x,K),K[1]&64&&d(L,1)):(L=Mp(x),L.c(),d(L,1),L.m(r,l)):L&&(se(),p(L,1,1,()=>{L=null}),le());let A={};K[1]&256&&(A.disabled=!x[39]),K[1]&201326848|K[5]&16777216&&(A.$$scope={dirty:K,ctx:x}),!c&&K[0]&131072&&(c=!0,A.ref=x[17].episodes,qe(()=>c=!1)),u.$set(A),x[34]?Q?(Q.p(x,K),K[1]&8&&d(Q,1)):(Q=Vp(x),Q.c(),d(Q,1),Q.m(r,h)):Q&&(se(),p(Q,1,1,()=>{Q=null}),le()),x[36]?$?($.p(x,K),K[1]&32&&d($,1)):($=Rp(x),$.c(),d($,1),$.m(r,null)):$&&(se(),p($,1,1,()=>{$=null}),le());let fe={};K[0]&32&&(fe.isAds=x[5]),K[0]&64&&(fe.canRewindLive=x[6]),K[0]&262144&&(fe.isRewindableLive=x[18]),!I&&K[0]&131072&&(I=!0,fe.ref=x[17].timeline,qe(()=>I=!1)),g.$set(fe),(!S||K[1]&131072)&&j(o,"fullscreen",x[48]),(!S||K[0]&4)&&j(n,"hidden",x[2]),(!S||K[0]&16)&&j(n,"controls-hidden",!x[4]),(!S||K[0]&8)&&j(n,"no-smooth",x[3]),x[98]&&ue.p(x,K)},i(x){S||(d(y),d(E),d(z),d(N),d(L),d(u.$$.fragment,x),d(Q),d($),d(g.$$.fragment,x),d(ue),S=!0)},o(x){p(y),p(E),p(z),p(N),p(L),p(u.$$.fragment,x),p(Q),p($),p(g.$$.fragment,x),p(ue),S=!1},d(x){x&&(w(e),w(t),w(n),w(C),w(V)),y&&y.d(x),E&&E.d(x),z&&z.d(),N&&N.d(),L&&L.d(),B(u),Q&&Q.d(),$&&$.d(),i[153](null),B(g),i[155](null),ue&&ue.d(x)}}}function w5(i,e,t){var Ei,xn;let n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,ae,Q,$,J,W,ue,x,K,A,fe,X,Me,ie,be,Te,Ie,Pe,{bottomHidden:ot}=e,{bottomNoSmooth:Ee}=e,{showControls:ze}=e,{playerControlsWrapperRef:te=void 0}=e,{playerControlsRef:pe=void 0}=e,{isAds:Ce=!1}=e,{canRewindLive:We}=e,{logoClickable:nt}=e,{logoHidden:st}=e,{logoTargetUrl:rt=""}=e,{showNextPrevButtons:Qe}=e,{nextButtonActive:ce}=e,{prevButtonActive:Se}=e,{isOneVideoPlaylist:$e=!1}=e,{customFullscreenSupported:De=!0}=e,{endScreenShown:et}=e,{playNextVideo:He}=e,{playPrevVideo:ut}=e,{repeatPlaylist:ct}=e,{toggleFullscreen:_e}=e,{seekToInteractive:dt}=e,{playPrevChapter:bt}=e,{onDisabledPlayPrevChapterClick:Ct}=e,{onDisabledSeekToInteractiveClick:yt}=e,Ye=it(),Wt=Dn(),$t=Lt(),zt=Ye.actions.internal.toggleMuted,Dt=Ye.actions.internal.togglePlay,Kt=Ye.actions.internal.pause,Vt=(Ei=Ye.callbacks)==null?void 0:Ei.onAudioDoesNotExistHint,xe=(xn=Ye.callbacks)==null?void 0:xn.onAudioDisabledHint,Ze=Ye.playerPhase;q(i,Ze,ne=>t(129,ae=ne));let St=Ye.state.duration$;q(i,St,ne=>t(58,Pe=ne));let jt=Ye.state.positionWithScrubbing$;q(i,jt,ne=>t(57,Ie=ne));let qt=Ye.state.playbackState$;q(i,qt,ne=>t(123,v=ne));let me=Ye.state.isAudioAvailable$;q(i,me,ne=>t(47,g=ne));let Gt=Ye.state.isAudioDisabled,Yt=Ye.state.isEnded$;q(i,Yt,ne=>t(130,$=ne));let Qt=Ye.state.isLive$;q(i,Qt,ne=>t(19,E=ne));let At=Ye.state.muted$;q(i,At,ne=>t(50,A=ne));let Zt=Ye.state.isActiveLive$;q(i,Zt,ne=>t(127,S=ne));let xt=Ye.state.isRewindableLive$;q(i,xt,ne=>t(18,y=ne));let Ot=Ye.ui.scrubbingInProgress;q(i,Ot,ne=>t(23,Q=ne));let zi=Ye.ui.mobileNotReportControlHidden$;q(i,zi,ne=>t(21,L=ne));let di=Ye.ui.isPictureInPictureActive$;q(i,di,ne=>t(20,N=ne));let ki=Ye.ui.pictureInPictureType$;q(i,ki,ne=>t(128,z=ne));let Ci=Ye.ui.mobileUnmuteButtonExpanded;q(i,Ci,ne=>t(51,fe=ne));let Ft=Ye.ui.mobileUnmuteButtonVisible;q(i,Ft,ne=>t(49,K=ne));let Li=Ye.ui.settingsMenu.visible$;q(i,Li,ne=>t(121,m=ne));let Mt=Ye.ui.settingsMenu.openedByBtnKeyboard$;q(i,Mt,ne=>t(120,c=ne));let li=Ye.ui.controls,bi=Ye.actions.internal.getVideoEpisodes(),ei=Ye.webApi.pictureInPictureApi,vi=Ye.state.chromecastState$;q(i,vi,ne=>t(22,ee=ne));let Vi=Ye.state.crashed$;q(i,Vi,ne=>t(53,Me=ne));let Ae=li.disabledControls$;q(i,Ae,ne=>t(131,W=ne));let tt=Ye.ui.startedByKeyboard$;q(i,tt,ne=>t(119,u=ne));let Pt=Ye.ui.currentGridType$;q(i,Pt,ne=>t(126,V=ne));let yi=Ye.ads.duration;q(i,yi,ne=>t(56,Te=ne));let wi=Ye.ads.position;q(i,wi,ne=>t(55,be=ne));let Ht=Ye.ads.playbackState;q(i,Ht,ne=>t(24,J=ne));let Si=Ye.ui.isFullscreen;q(i,Si,ne=>t(48,x=ne));let mi=Ye.ui.playerSize;q(i,mi,ne=>t(125,C=ne));let Xi=Ye.ui.additionalButtonsDeprecated$;q(i,Xi,ne=>t(52,X=ne));let Ut=Ye.actions.internal.getVideoElement,un=Ye.actions.internal.replayInteractive,Ti=Ye.state.isInteractive,cn=Ye.state.isInteractiveTime$;q(i,cn,ne=>t(124,I=ne));let fn=Ye.state.showInteractiveGraph,dn=Ye.state.showSeekToInteractive,Ri=Ye.state.showPlayPrevChapter,xi=Ye.state.showInteractiveTimeIndicator,ri=Wt.seekToInteractiveDisabledTooltip$;q(i,ri,ne=>t(132,ue=ne));let Ji=Wt.graphIsOpened$;q(i,Ji,ne=>t(54,ie=ne));let Wi,Bi,Sn,pi,Ni,Di,mn,Ii,Oi,Pi,Rt,ti,ai,Fi,pn,lt,Hi,ui,qi,Ki,ji,Ge={},Hn=u5(Pl,260),_n=()=>Ye.actions.internal.toggleChromecast();function hn(){Do({isAudioDisabled:Gt,audioDisabledHintCallback:xe,isAudioAvailable:g,audioIsNotExistHintCallback:Vt})&&zt()}async function $i(){ei!=null&&ei.isActive()?await(ei==null?void 0:ei.remove()):await(ei==null?void 0:ei.request())}function en(){!Gt&&g&&Ft.set(!1),hn()}let tn=$e?Dt:ct,nn="",_i=(ne,$n)=>{if(!ne){t(41,nn=G("tooltip_live"));return}$n===cp.PAUSED&&t(41,nn=G("tooltip_play"))},Tn,gn=Ne();q(i,gn,ne=>t(122,h=ne));let qn=()=>{l&&Ct(Wi)},on=()=>{r&&yt(Bi)};function bn(ne){i.$$.not_equal(Ge.volume,ne)&&(Ge.volume=ne,t(17,Ge))}function vn(ne){i.$$.not_equal(Ge.autoplayNextToggle,ne)&&(Ge.autoplayNextToggle=ne,t(17,Ge))}function In(ne){i.$$.not_equal(Ge.chromecast,ne)&&(Ge.chromecast=ne,t(17,Ge))}function Pn(ne){i.$$.not_equal(Ge.pip,ne)&&(Ge.pip=ne,t(17,Ge))}function rn(ne){i.$$.not_equal(Ge.vkLogo,ne)&&(Ge.vkLogo=ne,t(17,Ge))}function En(ne){i.$$.not_equal(Ge.prevButton,ne)&&(Ge.prevButton=ne,t(17,Ge))}function sn(ne){i.$$.not_equal(Ge.playButton,ne)&&(Ge.playButton=ne,t(17,Ge))}function so(ne){i.$$.not_equal(Ge.replayButton,ne)&&(Ge.replayButton=ne,t(17,Ge))}function lo(ne){i.$$.not_equal(Ge.nextButton,ne)&&(Ge.nextButton=ne,t(17,Ge))}function ao(ne){i.$$.not_equal(Ge.playPrevChapterButton,ne)&&(Ge.playPrevChapterButton=ne,t(17,Ge))}function ci(ne){i.$$.not_equal(Ge.interactiveGraphButton,ne)&&(Ge.interactiveGraphButton=ne,t(17,Ge))}function Un(ne){i.$$.not_equal(Ge.seekToInteractiveButton,ne)&&(Ge.seekToInteractiveButton=ne,t(17,Ge))}function Yn(ne){i.$$.not_equal(Ge.volume,ne)&&(Ge.volume=ne,t(17,Ge))}function Qn(ne){i.$$.not_equal(Ge.playButton,ne)&&(Ge.playButton=ne,t(17,Ge))}function zn(ne){i.$$.not_equal(Ge.replayButton,ne)&&(Ge.replayButton=ne,t(17,Ge))}function Zn(ne){i.$$.not_equal(Ge.liveButton,ne)&&(Ge.liveButton=ne,t(17,Ge))}function Gi(ne){i.$$.not_equal(Ge.time,ne)&&(Ge.time=ne,t(17,Ge))}function yn(ne){i.$$.not_equal(Ge.episodes,ne)&&(Ge.episodes=ne,t(17,Ge))}function Xn(ne){i.$$.not_equal(Ge.settings,ne)&&(Ge.settings=ne,t(17,Ge))}function Jn(ne){i.$$.not_equal(Ge.fullscreen,ne)&&(Ge.fullscreen=ne,t(17,Ge))}function uo(ne){ge[ne?"unshift":"push"](()=>{pe=ne,t(1,pe)})}function oe(ne){i.$$.not_equal(Ge.timeline,ne)&&(Ge.timeline=ne,t(17,Ge))}function wt(ne){ge[ne?"unshift":"push"](()=>{te=ne,t(0,te)})}function ln(ne){i.$$.not_equal(Ge.interactiveTimeIndicator,ne)&&(Ge.interactiveTimeIndicator=ne,t(17,Ge))}return i.$$set=ne=>{"bottomHidden"in ne&&t(2,ot=ne.bottomHidden),"bottomNoSmooth"in ne&&t(3,Ee=ne.bottomNoSmooth),"showControls"in ne&&t(4,ze=ne.showControls),"playerControlsWrapperRef"in ne&&t(0,te=ne.playerControlsWrapperRef),"playerControlsRef"in ne&&t(1,pe=ne.playerControlsRef),"isAds"in ne&&t(5,Ce=ne.isAds),"canRewindLive"in ne&&t(6,We=ne.canRewindLive),"logoClickable"in ne&&t(7,nt=ne.logoClickable),"logoHidden"in ne&&t(108,st=ne.logoHidden),"logoTargetUrl"in ne&&t(8,rt=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(9,Qe=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(109,ce=ne.nextButtonActive),"prevButtonActive"in ne&&t(110,Se=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(111,$e=ne.isOneVideoPlaylist),"customFullscreenSupported"in ne&&t(112,De=ne.customFullscreenSupported),"endScreenShown"in ne&&t(10,et=ne.endScreenShown),"playNextVideo"in ne&&t(11,He=ne.playNextVideo),"playPrevVideo"in ne&&t(12,ut=ne.playPrevVideo),"repeatPlaylist"in ne&&t(113,ct=ne.repeatPlaylist),"toggleFullscreen"in ne&&t(13,_e=ne.toggleFullscreen),"seekToInteractive"in ne&&t(14,dt=ne.seekToInteractive),"playPrevChapter"in ne&&t(15,bt=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(114,Ct=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(115,yt=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&256&&(Bi=G(ue)),i.$$.dirty[4]&128&&t(118,n=W.has("EPISODE_BUTTON")),i.$$.dirty[4]&128&&t(46,o=W.has("GRAPH_BUTTON")),i.$$.dirty[4]&128&&t(42,r=W.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&128&&t(45,s=W.has("PLAY_BUTTON")),i.$$.dirty[4]&128&&t(44,a=W.has("REPLAY_BUTTON")),i.$$.dirty[4]&128&&t(43,l=W.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&1073741824&&t(25,Sn=v===cp.PLAYING),i.$$.dirty[0]&16777216&&t(26,pi=J==="paused"),i.$$.dirty[0]&32|i.$$.dirty[4]&64&&t(27,Ni=$&&!Ce&&!Ti),i.$$.dirty[0]&32|i.$$.dirty[4]&64&&t(28,Di=!$||Ce),i.$$.dirty[0]&544|i.$$.dirty[3]&131072&&t(29,mn=Qe&&!Ce&&Se),i.$$.dirty[0]&544|i.$$.dirty[3]&65536&&t(30,Ii=Qe&&!Ce&&ce),i.$$.dirty[4]&2&&t(116,Oi=C.width>300),i.$$.dirty[4]&2&&t(31,Pi=C.width>400),i.$$.dirty[0]&8388608&&t(117,Rt=Q),i.$$.dirty[0]&7340032|i.$$.dirty[4]&16&&t(32,ti=ee!==up.NOT_AVAILABLE&&!(N&&z===1)&&!L&&!Ti),i.$$.dirty[0]&6291456|i.$$.dirty[3]&16777216|i.$$.dirty[4]&48){let ne=ae==="LiveWaitingStart";t(33,ai=!!ei&&ee!==up.CONNECTED&&!L&&(z===1&&ne||!ne)&&!Rt&&!Ti)}i.$$.dirty[3]&16777216|i.$$.dirty[4]&4&&t(34,Fi=!Rt&&gi(V,"s")),i.$$.dirty[3]&32768|i.$$.dirty[4]&2&&t(35,pn=!st&&C.width>350),i.$$.dirty[0]&1048576|i.$$.dirty[3]&17301504|i.$$.dirty[4]&16&&t(36,lt=$t.features.fullscreen&&!(N&&z===1)&&(Ti?De:!0)&&!Rt),i.$$.dirty[0]&524320|i.$$.dirty[3]&16777216|i.$$.dirty[4]&2&&t(37,Hi=(!E||Ce)&&C.width>260&&!Rt&&!($t.features.interactiveHideTime&&Ti)),i.$$.dirty[0]&16|i.$$.dirty[3]&268435456&&t(38,ui=m||ze),i.$$.dirty[0]&524320|i.$$.dirty[3]&58720256&&t(39,qi=!Ce&&!E&&!!(bi!=null&&bi.length)&&Oi&&!n&&!Rt),i.$$.dirty[0]&262144|i.$$.dirty[4]&8&&t(16,Ki=!y||S),i.$$.dirty[4]&4&&t(40,ji=fn&&gi(V,"m")),i.$$.dirty[0]&131088|i.$$.dirty[4]&3&&Hn(Ut(),li,Ge,ze),i.$$.dirty[0]&65536|i.$$.dirty[3]&1073741824&&_i(Ki,v),i.$$.dirty[3]&805306368&&h&&Ir(h,m,Mt),i.$$.dirty[3]&402653184&&ho(Tn,m,c),i.$$.dirty[0]&131072|i.$$.dirty[3]&67108864&&El(tt,u,Ge.playButton)},Wi=G(Ye.state.playPrevChapterDisabledTooltip),[te,pe,ot,Ee,ze,Ce,We,nt,rt,Qe,et,He,ut,_e,dt,bt,Ki,Ge,y,E,N,L,ee,Q,J,Sn,pi,Ni,Di,mn,Ii,Pi,ti,ai,Fi,pn,lt,Hi,ui,qi,ji,nn,r,l,a,s,o,g,x,K,A,fe,X,Me,ie,be,Te,Ie,Pe,$t,Dt,Kt,Ze,St,jt,qt,me,Gt,Yt,Qt,At,Zt,xt,Ot,zi,di,ki,Ci,Ft,Li,Mt,bi,vi,Vi,Ae,tt,Pt,yi,wi,Ht,Si,mi,Xi,un,Ti,cn,dn,Ri,xi,ri,Ji,_n,$i,en,tn,gn,qn,on,st,ce,Se,$e,De,ct,Ct,yt,Oi,Rt,n,u,c,m,h,v,I,C,V,S,z,ae,$,W,ue,bn,vn,In,Pn,rn,En,sn,so,lo,ao,ci,Un,Yn,Qn,zn,Zn,Gi,yn,Xn,Jn,uo,oe,wt,ln]}var Pc=class extends H{constructor(e){super(),U(this,e,w5,y5,F,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:108,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:109,prevButtonActive:110,isOneVideoPlaylist:111,customFullscreenSupported:112,endScreenShown:10,playNextVideo:11,playPrevVideo:12,repeatPlaylist:113,toggleFullscreen:13,seekToInteractive:14,playPrevChapter:15,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},c5,[-1,-1,-1,-1,-1,-1])}},Bp=Pc;function Dp(i){let e,t,n,o,r=[C5,k5],s=[];function a(l,u){return l[25]?0:1}return e=a(i,[-1,-1]),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function k5(i){let e,t,n,o;function r(l){i[29](l)}function s(l){i[30](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],playNextVideo:i[16],playPrevVideo:i[17],repeatPlaylist:i[18],toggleFullscreen:i[19],seekToInteractive:i[20],playPrevChapter:i[21]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new ep({props:a}),ge.push(()=>Ue(e,"playerControlsWrapperRef",r)),ge.push(()=>Ue(e,"playerControlsRef",s)),{c(){D(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[0]&4&&(c.bottomHidden=l[2]),u[0]&8&&(c.bottomNoSmooth=l[3]),u[0]&16&&(c.showControls=l[4]),u[0]&32&&(c.isAds=l[5]),u[0]&64&&(c.canRewindLive=l[6]),u[0]&128&&(c.logoClickable=l[7]),u[0]&256&&(c.logoHidden=l[8]),u[0]&512&&(c.logoTargetUrl=l[9]),u[0]&1024&&(c.showNextPrevButtons=l[10]),u[0]&2048&&(c.nextButtonActive=l[11]),u[0]&4096&&(c.prevButtonActive=l[12]),u[0]&8192&&(c.isOneVideoPlaylist=l[13]),u[0]&16384&&(c.customFullscreenSupported=l[14]),u[0]&65536&&(c.playNextVideo=l[16]),u[0]&131072&&(c.playPrevVideo=l[17]),u[0]&262144&&(c.repeatPlaylist=l[18]),u[0]&524288&&(c.toggleFullscreen=l[19]),u[0]&1048576&&(c.seekToInteractive=l[20]),u[0]&2097152&&(c.playPrevChapter=l[21]),!t&&u[0]&1&&(t=!0,c.playerControlsWrapperRef=l[0],qe(()=>t=!1)),!n&&u[0]&2&&(n=!0,c.playerControlsRef=l[1],qe(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function C5(i){let e,t,n,o;function r(l){i[27](l)}function s(l){i[28](l)}let a={bottomHidden:i[2],bottomNoSmooth:i[3],showControls:i[4],isAds:i[5],canRewindLive:i[6],logoClickable:i[7],logoHidden:i[8],logoTargetUrl:i[9],showNextPrevButtons:i[10],nextButtonActive:i[11],prevButtonActive:i[12],isOneVideoPlaylist:i[13],customFullscreenSupported:i[14],endScreenShown:i[15],playNextVideo:i[16],playPrevVideo:i[17],repeatPlaylist:i[18],toggleFullscreen:i[19],seekToInteractive:i[20],playPrevChapter:i[21],onDisabledPlayPrevChapterClick:i[22],onDisabledSeekToInteractiveClick:i[23]};return i[0]!==void 0&&(a.playerControlsWrapperRef=i[0]),i[1]!==void 0&&(a.playerControlsRef=i[1]),e=new Bp({props:a}),ge.push(()=>Ue(e,"playerControlsWrapperRef",r)),ge.push(()=>Ue(e,"playerControlsRef",s)),{c(){D(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[0]&4&&(c.bottomHidden=l[2]),u[0]&8&&(c.bottomNoSmooth=l[3]),u[0]&16&&(c.showControls=l[4]),u[0]&32&&(c.isAds=l[5]),u[0]&64&&(c.canRewindLive=l[6]),u[0]&128&&(c.logoClickable=l[7]),u[0]&256&&(c.logoHidden=l[8]),u[0]&512&&(c.logoTargetUrl=l[9]),u[0]&1024&&(c.showNextPrevButtons=l[10]),u[0]&2048&&(c.nextButtonActive=l[11]),u[0]&4096&&(c.prevButtonActive=l[12]),u[0]&8192&&(c.isOneVideoPlaylist=l[13]),u[0]&16384&&(c.customFullscreenSupported=l[14]),u[0]&32768&&(c.endScreenShown=l[15]),u[0]&65536&&(c.playNextVideo=l[16]),u[0]&131072&&(c.playPrevVideo=l[17]),u[0]&262144&&(c.repeatPlaylist=l[18]),u[0]&524288&&(c.toggleFullscreen=l[19]),u[0]&1048576&&(c.seekToInteractive=l[20]),u[0]&2097152&&(c.playPrevChapter=l[21]),u[0]&4194304&&(c.onDisabledPlayPrevChapterClick=l[22]),u[0]&8388608&&(c.onDisabledSeekToInteractiveClick=l[23]),!t&&u[0]&1&&(t=!0,c.playerControlsWrapperRef=l[0],qe(()=>t=!1)),!n&&u[0]&2&&(n=!0,c.playerControlsRef=l[1],qe(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function S5(i){let e,t,n=i[24]&&Dp(i);return{c(){n&&n.c(),e=Xe()},m(o,r){n&&n.m(o,r),k(o,e,r),t=!0},p(o,r){o[24]?n?(n.p(o,r),r[0]&16777216&&d(n,1)):(n=Dp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(se(),p(n,1,1,()=>{n=null}),le())},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function T5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:s}=e,{playerControlsWrapperRef:a=void 0}=e,{playerControlsRef:l=void 0}=e,{isAds:u=!1}=e,{canRewindLive:c}=e,{logoClickable:m}=e,{logoHidden:h}=e,{logoTargetUrl:v=""}=e,{showNextPrevButtons:g}=e,{nextButtonActive:I}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:V=!1}=e,{customFullscreenSupported:S=!0}=e,{endScreenShown:y=!1}=e,{playNextVideo:E}=e,{playPrevVideo:z}=e,{repeatPlaylist:N}=e,{toggleFullscreen:L}=e,{seekToInteractive:ee}=e,{playPrevChapter:ae}=e,{onDisabledPlayPrevChapterClick:Q=Np}=e,{onDisabledSeekToInteractiveClick:$=Np}=e,W=it().ui.isMobile;q(i,W,X=>t(25,n=X));let ue=!1;Nt(()=>{let X=setTimeout(()=>t(24,ue=!0),0);return()=>clearTimeout(X)});function x(X){a=X,t(0,a)}function K(X){l=X,t(1,l)}function A(X){a=X,t(0,a)}function fe(X){l=X,t(1,l)}return i.$$set=X=>{"bottomHidden"in X&&t(2,o=X.bottomHidden),"bottomNoSmooth"in X&&t(3,r=X.bottomNoSmooth),"showControls"in X&&t(4,s=X.showControls),"playerControlsWrapperRef"in X&&t(0,a=X.playerControlsWrapperRef),"playerControlsRef"in X&&t(1,l=X.playerControlsRef),"isAds"in X&&t(5,u=X.isAds),"canRewindLive"in X&&t(6,c=X.canRewindLive),"logoClickable"in X&&t(7,m=X.logoClickable),"logoHidden"in X&&t(8,h=X.logoHidden),"logoTargetUrl"in X&&t(9,v=X.logoTargetUrl),"showNextPrevButtons"in X&&t(10,g=X.showNextPrevButtons),"nextButtonActive"in X&&t(11,I=X.nextButtonActive),"prevButtonActive"in X&&t(12,C=X.prevButtonActive),"isOneVideoPlaylist"in X&&t(13,V=X.isOneVideoPlaylist),"customFullscreenSupported"in X&&t(14,S=X.customFullscreenSupported),"endScreenShown"in X&&t(15,y=X.endScreenShown),"playNextVideo"in X&&t(16,E=X.playNextVideo),"playPrevVideo"in X&&t(17,z=X.playPrevVideo),"repeatPlaylist"in X&&t(18,N=X.repeatPlaylist),"toggleFullscreen"in X&&t(19,L=X.toggleFullscreen),"seekToInteractive"in X&&t(20,ee=X.seekToInteractive),"playPrevChapter"in X&&t(21,ae=X.playPrevChapter),"onDisabledPlayPrevChapterClick"in X&&t(22,Q=X.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in X&&t(23,$=X.onDisabledSeekToInteractiveClick)},[a,l,o,r,s,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,ae,Q,$,ue,n,W,x,K,A,fe]}var Ec=class extends H{constructor(e){super(),U(this,e,T5,S5,F,{bottomHidden:2,bottomNoSmooth:3,showControls:4,playerControlsWrapperRef:0,playerControlsRef:1,isAds:5,canRewindLive:6,logoClickable:7,logoHidden:8,logoTargetUrl:9,showNextPrevButtons:10,nextButtonActive:11,prevButtonActive:12,isOneVideoPlaylist:13,customFullscreenSupported:14,endScreenShown:15,playNextVideo:16,playPrevVideo:17,repeatPlaylist:18,toggleFullscreen:19,seekToInteractive:20,playPrevChapter:21,onDisabledPlayPrevChapterClick:22,onDisabledSeekToInteractiveClick:23},null,[-1,-1])}},Nl=Ec;function I5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I=i[2].default,C=Le(I,i,i[1],null),V=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],S={};for(let y=0;y<V.length;y+=1)S=re(S,V[y]);return{c(){e=O("svg"),C&&C.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("filter"),a=O("feFlood"),l=O("feColorMatrix"),u=O("feOffset"),c=O("feGaussianBlur"),m=O("feColorMatrix"),h=O("feBlend"),v=O("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2260_100684"),f(v,"result","shape"),f(s,"id","a"),f(s,"width","43.996"),f(s,"height","49.5"),f(s,"x","2.5"),f(s,"y","0"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ye(e,S)},m(y,E){k(y,e,E),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,v),g=!0},p(y,[E]){C&&C.p&&(!g||E&2)&&Re(C,I,y,y[1],g?Ve(I,y[1],E,null):Be(y[1]),null),ye(e,S=Fe(V,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&y[0]]))},i(y){g||(d(C,y),g=!0)},o(y){p(C,y),g=!1},d(y){y&&w(e),C&&C.d(y)}}}function P5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Ac=class extends H{constructor(e){super(),U(this,e,P5,I5,F,{})}},Op=Ac;function E5(i){let e,t;return e=new Op({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function A5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Mc=class extends H{constructor(e){super(),U(this,e,A5,E5,F,{reversed:1})}},Fp=Mc;function M5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V=i[2].default,S=Le(V,i,i[1],null),y=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],E={};for(let z=0;z<y.length;z+=1)E=re(E,y[z]);return{c(){e=O("svg"),S&&S.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("clipPath"),a=O("path"),l=O("filter"),u=O("feFlood"),c=O("feColorMatrix"),m=O("feOffset"),h=O("feGaussianBlur"),v=O("feColorMatrix"),g=O("feBlend"),I=O("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(s,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(I,"in","SourceGraphic"),f(I,"in2","effect1_dropShadow_2260_104204"),f(I,"result","shape"),f(l,"id","a"),f(l,"width","51"),f(l,"height","45"),f(l,"x","-1.5"),f(l,"y","1.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ye(e,E)},m(z,N){k(z,e,N),S&&S.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(r,l),_(l,u),_(l,c),_(l,m),_(l,h),_(l,v),_(l,g),_(l,I),C=!0},p(z,[N]){S&&S.p&&(!C||N&2)&&Re(S,V,z,z[1],C?Ve(V,z[1],N,null):Be(z[1]),null),ye(e,E=Fe(y,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},N&1&&z[0]]))},i(z){C||(d(S,z),C=!0)},o(z){p(S,z),C=!1},d(z){z&&w(e),S&&S.d(z)}}}function L5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Lc=class extends H{constructor(e){super(),U(this,e,L5,M5,F,{})}},Hp=Lc;function V5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S=i[2].default,y=Le(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],z={};for(let N=0;N<E.length;N+=1)z=re(z,E[N]);return{c(){e=O("svg"),y&&y.c(),t=O("g"),n=O("path"),o=O("path"),r=O("path"),s=O("defs"),a=O("clipPath"),l=O("path"),u=O("filter"),c=O("feFlood"),m=O("feColorMatrix"),h=O("feOffset"),v=O("feGaussianBlur"),g=O("feColorMatrix"),I=O("feBlend"),C=O("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(l,"fill","#fff"),f(l,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(v,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_2260_104293"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_104293"),f(C,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),ye(e,z)},m(N,L){k(N,e,L),y&&y.m(e,null),_(e,t),_(t,n),_(t,o),_(t,r),_(e,s),_(s,a),_(a,l),_(s,u),_(u,c),_(u,m),_(u,h),_(u,v),_(u,g),_(u,I),_(u,C),V=!0},p(N,[L]){y&&y.p&&(!V||L&2)&&Re(y,S,N,N[1],V?Ve(S,N[1],L,null):Be(N[1]),null),ye(e,z=Fe(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},L&1&&N[0]]))},i(N){V||(d(y,N),V=!0)},o(N){p(y,N),V=!1},d(N){N&&w(e),y&&y.d(N)}}}function R5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Vc=class extends H{constructor(e){super(),U(this,e,R5,V5,F,{})}},qp=Vc;function B5(i){let e,t;return e=new Hp({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function N5(i){let e,t;return e=new qp({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function D5(i){let e,t,n,o,r=[N5,B5],s=[];function a(l,u){return l[0]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e!==c&&(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t||(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function O5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Rc=class extends H{constructor(e){super(),U(this,e,O5,D5,F,{isOff:0})}},Bc=Rc;function F5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I=i[2].default,C=Le(I,i,i[1],null),V=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],S={};for(let y=0;y<V.length;y+=1)S=re(S,V[y]);return{c(){e=O("svg"),C&&C.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("filter"),a=O("feFlood"),l=O("feColorMatrix"),u=O("feOffset"),c=O("feGaussianBlur"),m=O("feColorMatrix"),h=O("feBlend"),v=O("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2260_106627"),f(v,"result","shape"),f(s,"id","a"),f(s,"width","40.098"),f(s,"height","27.785"),f(s,"x","3.402"),f(s,"y","10.105"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ye(e,S)},m(y,E){k(y,e,E),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,v),g=!0},p(y,[E]){C&&C.p&&(!g||E&2)&&Re(C,I,y,y[1],g?Ve(I,y[1],E,null):Be(y[1]),null),ye(e,S=Fe(V,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},E&1&&y[0]]))},i(y){g||(d(C,y),g=!0)},o(y){p(C,y),g=!1},d(y){y&&w(e),C&&C.d(y)}}}function H5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Nc=class extends H{constructor(e){super(),U(this,e,H5,F5,F,{})}},Up=Nc;function q5(i){let e,t;return e=new Up({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function U5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Dc=class extends H{constructor(e){super(),U(this,e,U5,q5,F,{reversed:1})}},zp=Dc;function z5(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I=i[2].default,C=Le(I,i,i[1],null),V=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],S={};for(let y=0;y<V.length;y+=1)S=re(S,V[y]);return{c(){e=O("svg"),C&&C.c(),t=O("g"),n=O("path"),o=O("path"),r=O("defs"),s=O("filter"),a=O("feFlood"),l=O("feColorMatrix"),u=O("feOffset"),c=O("feGaussianBlur"),m=O("feColorMatrix"),h=O("feBlend"),v=O("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(l,"in","SourceAlpha"),f(l,"result","hardAlpha"),f(l,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2340_106922"),f(v,"result","shape"),f(s,"id","a"),f(s,"width","37"),f(s,"height","37"),f(s,"x","5.5"),f(s,"y","5.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ye(e,S)},m(y,E){k(y,e,E),C&&C.m(e,null),_(e,t),_(t,n),_(t,o),_(e,r),_(r,s),_(s,a),_(s,l),_(s,u),_(s,c),_(s,m),_(s,h),_(s,v),g=!0},p(y,[E]){C&&C.p&&(!g||E&2)&&Re(C,I,y,y[1],g?Ve(I,y[1],E,null):Be(y[1]),null),ye(e,S=Fe(V,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},E&1&&y[0]]))},i(y){g||(d(C,y),g=!0)},o(y){p(C,y),g=!1},d(y){y&&w(e),C&&C.d(y)}}}function x5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Oc=class extends H{constructor(e){super(),U(this,e,x5,z5,F,{})}},xp=Oc;function W5(i){let e,t;return e=new xp({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function K5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Fc=class extends H{constructor(e){super(),U(this,e,K5,W5,F,{reversed:1})}},Wp=Fc;function j5(i){he(i,"svelte-1ad3n06",`.hot-key-helpers-container.svelte-1ad3n06.svelte-1ad3n06{position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-1ad3n06>div.svelte-1ad3n06{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-1ad3n06.svelte-1ad3n06{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-1ad3n06.svelte-1ad3n06{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-1ad3n06.svelte-1ad3n06{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-1ad3n06.svelte-1ad3n06{visibility:hidden;animation:svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-1ad3n06-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-1ad3n06-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function Kp(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,s,a,l,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,v,g,I,C,V=t&&jp(i),S=i[4]==="PAUSE"&&Gp(i),y=i[4]==="PLAY"&&Yp(i),E=i[4]==="REPLAY"&&Qp(i),z=i[4]==="SUBTITLES_OFF"&&Zp(i),N=i[4]==="SUBTITLES_ON"&&Xp(i),L=u&&Jp(i),ee=m&&$p(i),ae=i[4]==="MUTE"&&e0(i),Q=i[4]==="VOLUME"&&t0(i),$=i[5]&&i0(i);return{c(){e=P("div"),V&&V.c(),n=Y(),S&&S.c(),o=Y(),y&&y.c(),r=Y(),E&&E.c(),s=Y(),z&&z.c(),a=Y(),N&&N.c(),l=Y(),L&&L.c(),c=Y(),ee&&ee.c(),h=Y(),ae&&ae.c(),v=Y(),Q&&Q.c(),g=Y(),$&&$.c(),I=Xe(),f(e,"class","svelte-1ad3n06")},m(J,W){k(J,e,W),V&&V.m(e,null),_(e,n),S&&S.m(e,null),_(e,o),y&&y.m(e,null),_(e,r),E&&E.m(e,null),_(e,s),z&&z.m(e,null),_(e,a),N&&N.m(e,null),_(e,l),L&&L.m(e,null),_(e,c),ee&&ee.m(e,null),_(e,h),ae&&ae.m(e,null),_(e,v),Q&&Q.m(e,null),k(J,g,W),$&&$.m(J,W),k(J,I,W),C=!0},p(J,W){W&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(J[4])),t?V?(V.p(J,W),W&16&&d(V,1)):(V=jp(J),V.c(),d(V,1),V.m(e,n)):V&&(se(),p(V,1,1,()=>{V=null}),le()),J[4]==="PAUSE"?S?W&16&&d(S,1):(S=Gp(J),S.c(),d(S,1),S.m(e,o)):S&&(se(),p(S,1,1,()=>{S=null}),le()),J[4]==="PLAY"?y?W&16&&d(y,1):(y=Yp(J),y.c(),d(y,1),y.m(e,r)):y&&(se(),p(y,1,1,()=>{y=null}),le()),J[4]==="REPLAY"?E?W&16&&d(E,1):(E=Qp(J),E.c(),d(E,1),E.m(e,s)):E&&(se(),p(E,1,1,()=>{E=null}),le()),J[4]==="SUBTITLES_OFF"?z?W&16&&d(z,1):(z=Zp(J),z.c(),d(z,1),z.m(e,a)):z&&(se(),p(z,1,1,()=>{z=null}),le()),J[4]==="SUBTITLES_ON"?N?W&16&&d(N,1):(N=Xp(J),N.c(),d(N,1),N.m(e,l)):N&&(se(),p(N,1,1,()=>{N=null}),le()),W&16&&(u=["RATE_DOWN","RATE_UP"].includes(J[4])),u?L?(L.p(J,W),W&16&&d(L,1)):(L=Jp(J),L.c(),d(L,1),L.m(e,c)):L&&(se(),p(L,1,1,()=>{L=null}),le()),W&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(J[4])),m?ee?(ee.p(J,W),W&16&&d(ee,1)):(ee=$p(J),ee.c(),d(ee,1),ee.m(e,h)):ee&&(se(),p(ee,1,1,()=>{ee=null}),le()),J[4]==="MUTE"?ae?W&16&&d(ae,1):(ae=e0(J),ae.c(),d(ae,1),ae.m(e,v)):ae&&(se(),p(ae,1,1,()=>{ae=null}),le()),J[4]==="VOLUME"?Q?W&16&&d(Q,1):(Q=t0(J),Q.c(),d(Q,1),Q.m(e,null)):Q&&(se(),p(Q,1,1,()=>{Q=null}),le()),J[5]?$?$.p(J,W):($=i0(J),$.c(),$.m(I.parentNode,I)):$&&($.d(1),$=null)},i(J){C||(d(V),d(S),d(y),d(E),d(z),d(N),d(L),d(ee),d(ae),d(Q),C=!0)},o(J){p(V),p(S),p(y),p(E),p(z),p(N),p(L),p(ee),p(ae),p(Q),C=!1},d(J){J&&(w(e),w(g),w(I)),V&&V.d(),S&&S.d(),y&&y.d(),E&&E.d(),z&&z.d(),N&&N.d(),L&&L.d(),ee&&ee.d(),ae&&ae.d(),Q&&Q.d(),$&&$.d(J)}}}function jp(i){let e,t;return e=new Fp({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Gp(i){let e,t;return e=new Fr({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Yp(i){let e,t;return e=new qo({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Qp(i){let e,t;return e=new Ml({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Zp(i){let e,t;return e=new Bc({props:{isOff:!0}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Xp(i){let e,t;return e=new Bc({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Jp(i){let e,t;return e=new zp({props:{reversed:i[4]==="RATE_UP"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function $p(i){let e,t;return e=new Wp({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function e0(i){let e,t;return e=new ur({props:{volume:0}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function t0(i){let e,t;return e=new ur({props:{volume:1}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function i0(i){let e,t;return{c(){e=P("span"),t=Oe(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&32&&Ke(t,n[5])},d(n){n&&w(e)}}}function G5(i){let e,t,n=!i[1]&&i[4]&&Kp(i);return{c(){e=P("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),j(e,"hidden",i[1]),j(e,"hot-key-helpers-container--left",i[2]),j(e,"hot-key-helpers-container--right",i[3])},m(o,r){k(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=Kp(o),n.c(),d(n,1),n.m(e,null)):n&&(se(),p(n,1,1,()=>{n=null}),le()),(!t||r&2)&&j(e,"hidden",o[1]),(!t||r&4)&&j(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&j(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){p(n),t=!1},d(o){o&&w(e),n&&n.d()}}}function Y5(i,e,t){let n,o=de,r=()=>(o(),o=ii(s,h=>t(6,n=h)),s);i.$$.on_destroy.push(()=>o());let{data:s}=e;r();let a,l,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,s=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,l=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=G(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[s,a,l,u,c,m,n]}var Hc=class extends H{constructor(e){super(),U(this,e,Y5,G5,F,{data:0},j5)}},n0=Hc;function Q5(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function Z5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var qc=class extends H{constructor(e){super(),U(this,e,Z5,Q5,F,{})}},o0=qc;function X5(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function J5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Uc=class extends H{constructor(e){super(),U(this,e,J5,X5,F,{})}},r0=Uc;function $5(i){let e,t;return e=new r0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function e6(i){let e,t;return e=new o0({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function t6(i){let e,t,n,o,r=[e6,$5],s=[];function a(l,u){return l[1]?0:1}return e=a(i,-1),t=s[e]=r[e](i),{c(){t.c(),n=Xe()},m(l,u){s[e].m(l,u),k(l,n,u),o=!0},p(l,[u]){let c=e;e=a(l,u),e===c?s[e].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n))},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),s[e].d(l)}}}function i6(i,e,t){let n,{direction:o="left"}=e,r,s;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(o)),t(0,s=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=s?"transform: rotate(180deg);":void 0)},[s,r,n,o]}var zc=class extends H{constructor(e){super(),U(this,e,i6,t6,F,{direction:3})}},cr=zc;function n6(i){he(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function o6(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y;return r=new cr({props:{direction:"up"}}),l=new cr({props:{direction:"up"}}),h=new cr({props:{direction:"up"}}),I=new cr({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),D(r.$$.fragment),s=Y(),a=P("div"),D(l.$$.fragment),u=Y(),c=P("div"),m=P("div"),D(h.$$.fragment),v=Y(),g=P("div"),D(I.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",C=G("aria_label_spherical_control")),j(e,"m-shifted",i[0])},m(E,z){k(E,e,z),_(e,t),_(t,n),_(n,o),R(r,o,null),_(n,s),_(n,a),R(l,a,null),_(t,u),_(t,c),_(c,m),R(h,m,null),_(c,v),_(c,g),R(I,g,null),V=!0,S||(y=[ke(o,"mousedown",i[1]),ke(o,"mouseup",i[5]),ke(o,"mouseleave",i[5]),ke(a,"mousedown",i[3]),ke(a,"mouseup",i[5]),ke(a,"mouseleave",i[5]),ke(m,"mousedown",i[4]),ke(m,"mouseup",i[5]),ke(m,"mouseleave",i[5]),ke(g,"mousedown",i[2]),ke(g,"mouseup",i[5]),ke(g,"mouseleave",i[5]),ke(e,"keydown",i[6]),ke(e,"keyup",i[7])],S=!0)},p(E,[z]){(!V||z&1)&&j(e,"m-shifted",E[0])},i(E){V||(d(r.$$.fragment,E),d(l.$$.fragment,E),d(h.$$.fragment,E),d(I.$$.fragment,E),V=!0)},o(E){p(r.$$.fragment,E),p(l.$$.fragment,E),p(h.$$.fragment,E),p(I.$$.fragment,E),V=!1},d(E){E&&w(e),B(r),B(l),B(h),B(I),S=!1,at(y)}}}function r6(i,e,t){let{isShifted:n=!1}=e,o=it(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=v=>{if(r.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case"ArrowUp":s();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":l();break}},h=v=>{r.has(v.code)&&(v.preventDefault(),v.stopPropagation(),c())};return i.$$set=v=>{"isShifted"in v&&t(0,n=v.isShifted)},[n,s,a,l,u,c,m,h]}var xc=class extends H{constructor(e){super(),U(this,e,r6,o6,F,{isShifted:0},n6)}},Dl=xc;function s6(i){he(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function s0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function l0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function a0(i){let e,t;function n(s,a){return s[7]&&s[8]?u6:s[5]?a6:l6}let o=n(i,-1),r=o(i);return{c(){e=P("div"),t=P("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),j(e,"mobile",i[3])},m(s,a){k(s,e,a),_(e,t),r.m(t,null)},p(s,a){o===(o=n(s,a))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(t,null))),a&8&&j(e,"mobile",s[3])},d(s){s&&w(e),r.d()}}}function l6(i){let e,t=kt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=u0(s0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Xe()},m(o,r){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(o,r);k(o,e,r)},p(o,r){if(r&18){t=kt(o[1]);let s;for(s=0;s<t.length;s+=1){let a=s0(o,t,s);n[s]?n[s].p(a,r):(n[s]=u0(a),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&w(e),fi(n,o)}}}function a6(i){let e,t,n=kt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=f0(l0(i,n,r));return{c(){e=P("span"),t=P("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),hi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){k(r,e,s),_(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,s){if(s&68){n=kt(r[6]);let a;for(a=0;a<n.length;a+=1){let l=l0(r,n,a);o[a]?o[a].p(l,s):(o[a]=f0(l),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}s&16&&hi(t,"font-size",r[4]+"px")},d(r){r&&w(e),fi(o,r)}}}function u6(i){let e,t,n=G("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Oe(n),f(t,"class","caption-segment svelte-ovfyp5"),hi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,s){k(r,e,s),_(e,t),_(t,o)},p(r,s){s&16&&hi(t,"font-size",r[4]+"px")},d(r){r&&w(e)}}}function u0(i){let e,t,n=i[16]+"",o,r;return{c(){e=P("span"),t=P("span"),o=Oe(n),r=Y(),f(t,"class","caption-segment svelte-ovfyp5"),hi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(s,a){k(s,e,a),_(e,t),_(t,o),_(e,r)},p(s,a){a&2&&n!==(n=s[16]+"")&&Ke(o,n),a&16&&hi(t,"font-size",s[4]+"px")},d(s){s&&w(e)}}}function c0(i){let e=i[16]+"",t;return{c(){t=Oe(e)},m(n,o){k(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ke(t,e)},d(n){n&&w(t)}}}function f0(i){let e,t=(!i[17]||i[17]<=i[2])&&c0(i);return{c(){t&&t.c(),e=Xe()},m(n,o){t&&t.m(n,o),k(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=c0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&w(e),t&&t.d(n)}}}function c6(i){let e,t=i[1].length>0&&a0(i);return{c(){e=P("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),j(e,"shifted",i[0]),j(e,"auto",i[5]&&!i[8])},m(n,o){k(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=a0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&j(e,"shifted",n[0]),o&288&&j(e,"auto",n[5]&&!n[8])},i:de,o:de,d(n){n&&w(e),t&&t.d()}}}function f6(i,e,t){let n,o,{shifted:r}=e,{captions:s}=e,{position:a}=e,{playerSize:l}=e,{isMobile:u=!1}=e,c=it(),m=Lt(),h=c.state.currentSubtitle$;q(i,h,y=>t(12,n=y));let v=c.state.isAutoSubtitleCaptionVisible$;q(i,v,y=>t(8,o=y));let g,I,C,V,S;return Nt(()=>{S=window.setTimeout(()=>{v.set(!1)},m.autoSubtitlesTimeout)}),io(()=>{window.clearTimeout(S)}),i.$$set=y=>{"shifted"in y&&t(0,r=y.shifted),"captions"in y&&t(1,s=y.captions),"position"in y&&t(2,a=y.position),"playerSize"in y&&t(11,l=y.playerSize),"isMobile"in y&&t(3,u=y.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let y=l.width*.02;t(4,g=y<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:y)}i.$$.dirty&2&&t(5,I=s.some(y=>y.type==="timestamp")),i.$$.dirty&2&&t(6,C=s.reduce((y,{type:E,value:z})=>(E==="timestamp"?y.push({timeAppeared:Number(z),value:""}):y.length===0?y.push({value:String(z)}):y[y.length-1].value=String(z),y),[])),i.$$.dirty&4096&&t(7,V=!!n.isAuto)},[r,s,a,u,g,I,C,V,o,h,v,l,n]}var Wc=class extends H{constructor(e){super(),U(this,e,f6,c6,F,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},s6)}},Ol=Wc;function d6(i){he(i,"svelte-raurnb",".wrapper.svelte-raurnb{height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.wrapper.bgCover.svelte-raurnb{background-size:cover}.icon_wrapper.svelte-raurnb{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-raurnb{width:50px;height:50px}.text.svelte-raurnb{margin-top:20px}")}function d0(i){let e,t,n;return{c(){e=P("div"),t=Oe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Oe(i[1]),f(e,"class","text svelte-raurnb")},m(o,r){k(o,e,r),_(e,t),_(e,n)},p(o,r){r&2&&Ke(n,o[1])},d(o){o&&w(e)}}}function m6(i){let e,t,n,o,r,s,a=i[1]&&d0(i);return{c(){e=P("div"),t=P("div"),t.innerHTML='<svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=Y(),a&&a.c(),f(t,"class","icon_wrapper svelte-raurnb"),f(e,"class","wrapper svelte-raurnb"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`),j(e,"bgCover",i[2].features.previewNoEmptySpace)},m(l,u){k(l,e,u),_(e,t),_(e,n),a&&a.m(e,null),r||(s=ke(e,"click",i[3]),r=!0)},p(l,[u]){l[1]?a?a.p(l,u):(a=d0(l),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${l[0]||""}')`)&&f(e,"style",o)},i:de,o:de,d(l){l&&w(e),a&&a.d(),r=!1,s()}}}function p6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e,r=Lt();function s(a){Nn.call(this,i,a)}return i.$$set=a=>{"thumbUrl"in a&&t(0,n=a.thumbUrl),"chromecastDeviceName"in a&&t(1,o=a.chromecastDeviceName)},[n,o,r,s]}var Kc=class extends H{constructor(e){super(),U(this,e,p6,m6,F,{thumbUrl:0,chromecastDeviceName:1},d6)}},Fl=Kc;function _6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function h6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var jc=class extends H{constructor(e){super(),U(this,e,h6,_6,F,{})}},m0=jc;function g6(i){he(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function b6(i){let e,t,n;return t=new m0({}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}var Gc=class extends H{constructor(e){super(),U(this,e,null,b6,F,{},g6)}},Hl=Gc;function v6(i){he(i,"svelte-1xnh9dd",".container.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-1xnh9dd.svelte-1xnh9dd{opacity:0;visibility:hidden}.container.bgCover.svelte-1xnh9dd.svelte-1xnh9dd{background-size:cover}.playButton.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-1xnh9dd.svelte-1xnh9dd{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-1xnh9dd:hover .playButtonBackground.svelte-1xnh9dd{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-1xnh9dd svg{transform:scale(2)}")}function y6(i){let e,t,n,o,r,s,a,l,u,c;return r=new qo({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=Y(),D(r.$$.fragment),f(n,"class","playButtonBackground svelte-1xnh9dd"),f(t,"class","playButton svelte-1xnh9dd"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",s=G("tooltip_play")),f(e,"class","container svelte-1xnh9dd"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),j(e,"hidden",i[1]),j(e,"bgCover",i[4].features.previewNoEmptySpace)},m(m,h){k(m,e,h),_(e,t),_(t,n),_(t,o),R(r,t,null),l=!0,u||(c=[ke(t,"keydown",i[3]),ke(e,"click",gt(function(){Jt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!l||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!l||h&2)&&j(e,"hidden",i[1])},i(m){l||(d(r.$$.fragment,m),l=!0)},o(m){p(r.$$.fragment,m),l=!1},d(m){m&&w(e),B(r),u=!1,at(c)}}}function w6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,s=it(),a=Lt(),l=s.ui.startedByKeyboard$,u=c=>{let m=c.code;["Enter","Space"].includes(m)&&(c.stopPropagation(),c.preventDefault(),l.set(!0),r())};return i.$$set=c=>{"thumbUrl"in c&&t(0,n=c.thumbUrl),"hidden"in c&&t(1,o=c.hidden),"startVideo"in c&&t(2,r=c.startVideo)},[n,o,r,u,a]}var Yc=class extends H{constructor(e){super(),U(this,e,w6,y6,F,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},v6)}get handlePressKey(){return this.$$.ctx[3]}},ql=Yc;function k6(i){he(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
28
28
|
0deg,
|
|
29
29
|
rgba(0, 0, 0, 0) 0%,
|
|
30
30
|
rgba(0, 0, 0, 0.02) 19%,
|
|
31
31
|
rgba(0, 0, 0, 0.10) 34%,
|
|
32
32
|
rgba(0, 0, 0, 0.40) 60%,
|
|
33
33
|
rgba(0, 0, 0, 0.60) 100%
|
|
34
|
-
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function f6(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","title svelte-1bcvcf2"),G(e,"hidden",i[1])},m(n,o){w(n,e,o),_(e,t)},p(n,[o]){o&1&&Ge(t,n[0]),o&2&&G(e,"hidden",n[1])},i:me,o:me,d(n){n&&y(e)}}}function d6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var Fc=class extends N{constructor(e){super(),O(this,e,d6,f6,B,{title:0,isHidden:1},c6)}},i0=Fc;function m6(i){be(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function n0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[0]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_day_value")}`,s=Y(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&1&&Ge(n,l[0])},d(l){l&&(y(e),y(s),y(a))}}}function o0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[1]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_hour_value")}`,s=Y(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&2&&Ge(n,l[1])},d(l){l&&(y(e),y(s),y(a))}}}function r0(i){let e,t,n,o,r,s,a;return{c(){e=I("div"),t=I("span"),n=qe(i[2]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_minute_value")}`,s=Y(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){w(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),w(l,s,u),w(l,a,u)},p(l,u){u&4&&Ge(n,l[2])},d(l){l&&(y(e),y(s),y(a))}}}function s0(i){let e,t,n,o,r;return{c(){e=I("div"),t=I("span"),n=qe(i[3]),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(s,a){w(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(s,a){a&8&&Ge(n,s[3])},d(s){s&&y(e)}}}function p6(i){let e,t,n,o,r=i[0]&&n0(i),s=i[1]&&o0(i),a=i[2]&&r0(i),l=i[3]&&s0(i);return{c(){e=I("div"),r&&r.c(),t=Y(),s&&s.c(),n=Y(),a&&a.c(),o=Y(),l&&l.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){w(u,e,c),r&&r.m(e,null),_(e,t),s&&s.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),l&&l.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=n0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=o0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=r0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=s0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:me,o:me,d(u){u&&y(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function _6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=C=>String(C).padStart(2,"0"),m=C=>{let g=Math.floor(C/86400);g&&(C-=g*86400,t(0,r=c(g)));let S=Math.floor(C/3600);t(1,s=c(S));let k=Math.floor(C/60)%60;t(2,a=c(k));let F=C%60;t(3,l=c(F))},h=()=>{let C=Math.floor(Date.now()/1e3),g=n-C;m(g),g>=1?u=requestAnimationFrame(h):o()};return Vt(()=>{u=requestAnimationFrame(h)}),Zn(()=>{cancelAnimationFrame(u)}),i.$$set=C=>{"startTime"in C&&t(4,n=C.startTime),"onTimerOver"in C&&t(5,o=C.onTimerOver)},[r,s,a,l,n,o]}var Hc=class extends N{constructor(e){super(),O(this,e,_6,p6,B,{startTime:4,onTimerOver:5},m6)}},l0=Hc;function h6(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=se(c,u[m]);return{c(){e=M("svg"),l&&l.c(),t=M("path"),n=M("path"),o=M("path"),r=M("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),di(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),di(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),di(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),di(r,"opacity",".986"),we(e,c)},m(m,h){w(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Re(l,a,m,m[1],s?Ve(a,m[1],h,null):Be(m[1]),null),we(e,c=He(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&y(e),l&&l.d(m)}}}function g6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qc=class extends N{constructor(e){super(),O(this,e,g6,h6,B,{})}},a0=qc;function b6(i){be(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function v6(i){let e,t,n,o,r;return o=new l0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=Y(),R(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(s,a){w(s,e,a),_(e,t),_(e,n),L(o,e,null),r=!0},p(s,a){let l={};a&2&&(l.startTime=s[1]||0),a&4&&(l.onTimerOver=s[3]),o.$set(l)},i(s){r||(d(o.$$.fragment,s),r=!0)},o(s){p(o.$$.fragment,s),r=!1},d(s){s&&y(e),V(o)}}}function y6(i){let e,t,n,o,r,s;return n=new a0({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("span"),r.textContent=`${j("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,l){w(a,e,l),_(e,t),L(n,t,null),_(e,o),_(e,r),s=!0},p:me,i(a){s||(d(n.$$.fragment,a),s=!0)},o(a){p(n.$$.fragment,a),s=!1},d(a){a&&y(e),V(n)}}}function w6(i){let e,t,n,o,r,s=[y6,v6],a=[];function l(u,c){return u[2]?0:1}return t=l(i,-1),n=a[t]=s[t](i),{c(){e=I("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){w(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=l(u,c),t===m?a[t].p(u,c):(ae(),p(a[m],1,1,()=>{a[m]=null}),ue(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&y(e),a[t].d()}}}function k6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,s=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,s]}var Uc=class extends N{constructor(e){super(),O(this,e,k6,w6,B,{thumbUrl:0,startTime:1},b6)}},Ml=Uc;function C6(i){be(i,"svelte-xvqwsa",".waiting-container.svelte-xvqwsa{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-xvqwsa::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px)}.waiting-caption.svelte-xvqwsa{position:relative;display:flex;flex-direction:column;align-items:center}.waiting-title.svelte-xvqwsa{margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function S6(i){let e,t,n,o,r,s,a,l;return n=new Ar({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("p"),s=qe(i[1]),f(r,"class","waiting-title svelte-xvqwsa"),f(t,"class","waiting-caption svelte-xvqwsa"),f(e,"class","waiting-container svelte-xvqwsa"),f(e,"style",a=`background-image: url('${i[0]}')`)},m(u,c){w(u,e,c),_(e,t),L(n,t,null),_(t,o),_(t,r),_(r,s),l=!0},p(u,[c]){(!l||c&2)&&Ge(s,u[1]),(!l||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){l||(d(n.$$.fragment,u),l=!0)},o(u){p(n.$$.fragment,u),l=!1},d(u){u&&y(e),V(n)}}}function T6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=s=>{"thumbUrl"in s&&t(0,n=s.thumbUrl),"kind"in s&&t(2,o=s.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let s={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")};t(1,r=s[o]||"")}},[n,r,o]}var zc=class extends N{constructor(e){super(),O(this,e,T6,S6,B,{thumbUrl:0,kind:2},C6)}},Fr=zc;var Ll=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Vl=(i,e)=>{var s;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(s=fl(t))!=null?s:t),n&&t&&o){let a=e.filter(l=>l.label===n&&l.language===t);if(a.length===1)return j("audio_stream_display_language_label",{language:o,label:n});{let l=Ll(i,a);return j("audio_stream_display_language_label_index",{language:o,label:n,index:l})}}if(n){let a=e.filter(l=>l.label===n);if(a.length===1)return n;{let l=Ll(i,a);return j("audio_stream_display_label_index",{label:n,index:l})}}if(t&&o){let a=e.filter(l=>l.language===t);if(a.length===1)return o;{let l=Ll(i,a);return j("audio_stream_display_language_index",{language:o,index:l})}}let r=Ll(i,e);return j("audio_stream_display_unknown",{index:r})};function I6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function P6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Wc=class extends N{constructor(e){super(),O(this,e,P6,I6,B,{})}},u0=Wc;function E6(i){be(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function c0(i){let e,t,n;return t=new u0({}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){w(o,e,r),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function A6(i){var o;let e,t=((o=i[1].label)!=null?o:i[1].value)+"",n;return{c(){e=I("div"),n=qe(t),f(e,"class","menu-item-value"),G(e,"submenu-value-mobile",i[0])},m(r,s){w(r,e,s),_(e,n)},p(r,s){var a;s&2&&t!==(t=((a=r[1].label)!=null?a:r[1].value)+"")&&Ge(n,t),s&1&&G(e,"submenu-value-mobile",r[0])},i:me,o:me,d(r){r&&y(e)}}}function M6(i){var a;let e,t,n,o=[(a=i[1].valueComponentParams)!=null?a:{}];var r=i[1].valueComponent;function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=se(c,o[h]);return u!==void 0&&u&2&&(c=se(c,He(o,[Ao((m=l[1].valueComponentParams)!=null?m:{})]))),{props:c}}return r&&(e=Bt(r,s(i))),{c(){e&&R(e.$$.fragment),t=Xe()},m(l,u){e&&L(e,l,u),w(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1].valueComponent)){if(e){ae();let m=e;p(m.$$.fragment,1,0,()=>{V(m,1)}),ue()}r?(e=Bt(r,s(l,u)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}else if(r){let m=u&2?He(o,[Ao((c=l[1].valueComponentParams)!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&V(e,l)}}}function L6(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&c0(i),m=[M6,A6],h=[];function C(g,S){return g[1].valueComponent?0:1}return n=C(i,-1),o=h[n]=m[n](i),{c(){var g,S,k;e=I("li"),c&&c.c(),t=Y(),o.c(),f(e,"class","item"),f(e,"data-value",r=(g=i[1].dataValue)!=null?g:i[1].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=(k=(S=i[1].ariaLabel)!=null?S:i[1].label)!=null?k:i[1].value.toString()),G(e,"mobile",i[0])},m(g,S){w(g,e,S),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[ke(e,"click",gt(i[4])),ke(e,"keydown",i[5])],l=!0)},p(g,[S]){var F,T,v;g[1].selected?c?S&2&&d(c,1):(c=c0(g),c.c(),d(c,1),c.m(e,t)):c&&(ae(),p(c,1,1,()=>{c=null}),ue());let k=n;n=C(g,S),n===k?h[n].p(g,S):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,S):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||S&2&&r!==(r=(F=g[1].dataValue)!=null?F:g[1].value))&&f(e,"data-value",r),(!a||S&2&&s!==(s=(v=(T=g[1].ariaLabel)!=null?T:g[1].label)!=null?v:g[1].value.toString()))&&f(e,"aria-label",s),(!a||S&1)&&G(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&y(e),c&&c.d(),h[n].d(),l=!1,ct(u)}}}function V6(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Pr(u,()=>r(c))},a=()=>r(o.value),l=u=>s(u,o.value);return i.$$set=u=>{"isMobile"in u&&t(0,n=u.isMobile),"item"in u&&t(1,o=u.item),"selectItem"in u&&t(2,r=u.selectItem)},[n,o,r,s,a,l]}var Kc=class extends N{constructor(e){super(),O(this,e,V6,L6,B,{isMobile:0,item:1,selectItem:2},E6)}},f0=Kc;var eo={"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};function B6(i){be(i,"svelte-1mrc4z3",'.sub-menu.svelte-1mrc4z3.svelte-1mrc4z3{line-height:32px;padding-bottom:0;padding-top:42px}.sub-menu.mobile.svelte-1mrc4z3.svelte-1mrc4z3{padding-top:58px}.sub-menu.svelte-1mrc4z3 .item{padding:0 12px}.sub-menu.svelte-1mrc4z3 .item.mobile{padding:0 14px}.sub-menu.svelte-1mrc4z3 .item.header.svelte-1mrc4z3{padding-top:6px;box-sizing:border-box;width:100%;justify-content:space-between;column-gap:12px;border-bottom:var(--divider-border);position:absolute;top:0}.sub-menu[data-testid="sub-menu-quality-settings"].svelte-1mrc4z3 .header.svelte-1mrc4z3{padding-right:34px}')}function d0(i,e,t){let n=i.slice();return n[23]=e[t],n}function m0(i){let e,t;return e=new f0({props:{item:i[23],isMobile:i[2],selectItem:i[7]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&64&&(r.item=n[23]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[7]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function N6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g;o=new cr({props:{direction:"left"}});let S=bt(i[6]),k=[];for(let T=0;T<S.length;T+=1)k[T]=m0(d0(i,S,T));let F=T=>p(k[T],1,1,()=>{k[T]=null});return{c(){var T;e=I("div"),t=I("ul"),n=I("li"),R(o.$$.fragment),r=Y(),s=I("div"),a=qe(i[5]),l=Y();for(let v=0;v<k.length;v+=1)k[v].c();f(n,"class","item header svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),G(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[13]((T=i[9])==null?void 0:T.clientHeight)),G(t,"mobile",i[2]),f(e,"class","sub-menu menu svelte-1mrc4z3"),f(e,"data-testid",c=`sub-menu-${i[1]}`),f(e,"style",m=`min-width: ${i[8]}px`),G(e,"desktop",!i[2]),G(e,"mobile",i[2])},m(T,v){w(T,e,v),_(e,t),_(t,n),L(o,n,null),_(n,r),_(n,s),_(s,a),i[18](n),_(t,l);for(let E=0;E<k.length;E+=1)k[E]&&k[E].m(t,null);i[19](t),h=!0,C||(g=[ke(n,"click",gt(function(){Qt(i[3])&&i[3].apply(this,arguments)})),ke(t,"keydown",i[12])],C=!0)},p(T,[v]){var E;if(i=T,(!h||v&32)&&Ge(a,i[5]),(!h||v&16)&&f(n,"aria-label",i[4]),(!h||v&4)&&G(n,"mobile",i[2]),v&196){S=bt(i[6]);let H;for(H=0;H<S.length;H+=1){let U=d0(i,S,H);k[H]?(k[H].p(U,v),d(k[H],1)):(k[H]=m0(U),k[H].c(),d(k[H],1),k[H].m(t,null))}for(ae(),H=S.length;H<k.length;H+=1)F(H);ue()}(!h||v&512&&u!==(u=i[13]((E=i[9])==null?void 0:E.clientHeight)))&&f(t,"style",u),(!h||v&4)&&G(t,"mobile",i[2]),(!h||v&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||v&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||v&4)&&G(e,"desktop",!i[2]),(!h||v&4)&&G(e,"mobile",i[2])},i(T){if(!h){d(o.$$.fragment,T);for(let v=0;v<S.length;v+=1)d(k[v]);h=!0}},o(T){p(o.$$.fragment,T),k=k.filter(Boolean);for(let v=0;v<k.length;v+=1)p(k[v]);h=!1},d(T){T&&y(e),V(o),i[18](null),oi(k,T),i[19](null),C=!1,ct(g)}}}function D6(i,e,t){let n,o,{id:r}=e,{isMobile:s=!1}=e,{playerControlsHeight:a=0}=e,{returnFromSubMenu:l}=e,{ariaLabelReturnFromSubMenu:u=j("aria_label_submenu_back")}=e,{title:c}=e,{listRef:m}=e,{closeSettingsMenu:h}=e,{backToMainSettings:C}=e,{itemIdReturnCase:g}=e,{items:S}=e,{selectItem:k}=e,{minWidth:F}=e,T=nt(),v=T.ui.isFullscreen;D(i,v,q=>t(21,o=q));let E=T.ui.playerSize;D(i,E,q=>t(20,n=q));let H,U=q=>{Kd(q,C,{itemIdReturnCase:g,id:r},h)},W=(q=0)=>s&&o?`max-height: ${Math.round(n.height*.6)}px`:s?"":`max-height: ${n.height-32-q-a}px; overflow: auto;`;function ne(q){ve[q?"unshift":"push"](()=>{H=q,t(9,H)})}function de(q){ve[q?"unshift":"push"](()=>{m=q,t(0,m)})}return i.$$set=q=>{"id"in q&&t(1,r=q.id),"isMobile"in q&&t(2,s=q.isMobile),"playerControlsHeight"in q&&t(14,a=q.playerControlsHeight),"returnFromSubMenu"in q&&t(3,l=q.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in q&&t(4,u=q.ariaLabelReturnFromSubMenu),"title"in q&&t(5,c=q.title),"listRef"in q&&t(0,m=q.listRef),"closeSettingsMenu"in q&&t(15,h=q.closeSettingsMenu),"backToMainSettings"in q&&t(16,C=q.backToMainSettings),"itemIdReturnCase"in q&&t(17,g=q.itemIdReturnCase),"items"in q&&t(6,S=q.items),"selectItem"in q&&t(7,k=q.selectItem),"minWidth"in q&&t(8,F=q.minWidth)},[m,r,s,l,u,c,S,k,F,H,v,E,U,W,a,h,C,g,ne,de]}var xc=class extends N{constructor(e){super(),O(this,e,D6,N6,B,{id:1,isMobile:2,playerControlsHeight:14,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:15,backToMainSettings:16,itemIdReturnCase:17,items:6,selectItem:7,minWidth:8},B6)}},p0=xc;import{noop as O6}from"@vkontakte/videoplayer-shared";function F6(i){be(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function H6(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&256&&o!==(o=s[8])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Bt(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function q6(i){let e,t;return e=new Or({props:{icon:i[8]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&256&&(r.icon=n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function U6(i){let e,t;return{c(){e=I("div"),t=qe(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&64&&Ge(t,n[6])},i:me,o:me,d(n){n&&y(e)}}}function z6(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&128&&o!==(o=s[7])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Bt(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function W6(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g=[q6,H6],S=[];function k(E,H){return typeof E[8]=="string"?0:1}n=k(i,-1),o=S[n]=g[n](i);let F=[z6,U6],T=[];function v(E,H){return E[7]?0:1}return u=v(i,-1),c=T[u]=F[u](i),{c(){e=I("li"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(i[4]),l=Y(),c.c(),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",i[5]),f(e,"aria-haspopup","true"),f(e,"data-testid",i[1]),G(e,"mobile",i[2])},m(E,H){w(E,e,H),_(e,t),S[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),T[u].m(e,null),i[11](e),m=!0,h||(C=[ke(e,"click",gt(function(){Qt(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",i[9])],h=!0)},p(E,[H]){i=E;let U=n;n=k(i,H),n===U?S[n].p(i,H):(ae(),p(S[U],1,1,()=>{S[U]=null}),ue(),o=S[n],o?o.p(i,H):(o=S[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||H&16)&&Ge(a,i[4]);let W=u;u=v(i,H),u===W?T[u].p(i,H):(ae(),p(T[W],1,1,()=>{T[W]=null}),ue(),c=T[u],c?c.p(i,H):(c=T[u]=F[u](i),c.c()),d(c,1),c.m(e,null)),(!m||H&32)&&f(e,"aria-label",i[5]),(!m||H&2)&&f(e,"data-testid",i[1]),(!m||H&4)&&G(e,"mobile",i[2])},i(E){m||(d(o),d(c),m=!0)},o(E){p(o),p(c),m=!1},d(E){E&&y(e),S[n].d(),T[u].d(),i[11](null),h=!1,ct(C)}}}function K6(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=O6}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,C=S=>Wd(S,r,s);function g(S){ve[S?"unshift":"push"](()=>{m=S,t(0,m)})}return i.$$set=S=>{"id"in S&&t(1,n=S.id),"isMobile"in S&&t(2,o=S.isMobile),"onClick"in S&&t(3,r=S.onClick),"getSubItemForFocus"in S&&t(10,s=S.getSubItemForFocus),"label"in S&&t(4,a=S.label),"ariaLabel"in S&&t(5,l=S.ariaLabel),"value"in S&&t(6,u=S.value),"valueComponent"in S&&t(7,c=S.valueComponent),"ref"in S&&t(0,m=S.ref),"icon"in S&&t(8,h=S.icon)},[m,n,o,r,a,l,u,c,h,C,s,g]}var Gc=class extends N{constructor(e){super(),O(this,e,K6,W6,B,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},F6)}},_0=Gc;function x6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function j6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Yc=class extends N{constructor(e){super(),O(this,e,j6,x6,B,{})}},h0=Yc;function G6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function Y6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Qc=class extends N{constructor(e){super(),O(this,e,Y6,G6,B,{})}},g0=Qc;function Q6(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),we(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function Z6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Zc=class extends N{constructor(e){super(),O(this,e,Z6,Q6,B,{})}},b0=Zc;function X6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function J6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Xc=class extends N{constructor(e){super(),O(this,e,J6,X6,B,{})}},v0=Xc;function $6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function e8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Jc=class extends N{constructor(e){super(),O(this,e,e8,$6,B,{})}},$c=Jc;function t8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function i8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ef=class extends N{constructor(e){super(),O(this,e,i8,t8,B,{})}},y0=ef;function n8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function o8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var tf=class extends N{constructor(e){super(),O(this,e,o8,n8,B,{})}},w0=tf;import"@vkontakte/videoplayer-core";function r8(i){be(i,"svelte-1a7qwh6",".menu-item-value.svelte-1a7qwh6.svelte-1a7qwh6{position:relative;padding-right:22px}.menu-item-value.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:0.7}.menu-item-value.sub.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:1}.quality-icon.svelte-1a7qwh6.svelte-1a7qwh6{position:absolute;top:-8px;right:2px;width:15px}.quality-icon.svelte-1a7qwh6 svg{color:var(--blue-light)}")}function k0(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=Bt(o,r(i))),{c(){e=I("div"),t&&R(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(s,a){w(s,e,a),t&&L(t,e,null),n=!0},p(s,a){if(a&8&&o!==(o=s[3])){if(t){ae();let l=t;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(t=Bt(o,r(s,a)),R(t.$$.fragment),d(t.$$.fragment,1),L(t,e,null)):t=null}},i(s){n||(t&&d(t.$$.fragment,s),n=!0)},o(s){t&&p(t.$$.fragment,s),n=!1},d(s){s&&y(e),t&&V(t)}}}function s8(i){let e,t,n,o,r,s=i[3]&&!i[1]&&k0(i);return{c(){e=I("div"),t=I("span"),n=qe(i[0]),o=Y(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),G(e,"sub",i[2])},m(a,l){w(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,[l]){(!r||l&1)&&Ge(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=k0(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),(!r||l&4)&&G(e,"sub",a[2])},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function l8(i,e,t){let n,{quality:o}=e,{label:r}=e,{isMobile:s}=e,{isSubCase:a=!1}=e;return i.$$set=l=>{"quality"in l&&t(4,o=l.quality),"label"in l&&t(0,r=l.label),"isMobile"in l&&t(1,s=l.isMobile),"isSubCase"in l&&t(2,a=l.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=Zs(o))},[r,s,a,n,o]}var nf=class extends N{constructor(e){super(),O(this,e,l8,s8,B,{quality:4,label:0,isMobile:1,isSubCase:2},r8)}},Rl=nf;import{VideoQuality as a8}from"@vkontakte/videoplayer-core";var Bl=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===a8.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o};function u8(i){be(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function c8(i){let e,t,n;return t=new Rl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,[r]){let s={};r&1&&(s.quality=o[0]),r&2&&(s.label=o[1]),r&4&&(s.isMobile=o[2]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function f8(i,e,t){let n,o,r,s,a=nt(),l=a.state.currentQuality$;D(i,l,C=>t(0,r=C));let u=a.state.availableQualities$;D(i,u,C=>t(8,o=C));let c=a.state.isAutoQualityEnabled$;D(i,c,C=>t(7,n=C));let m=a.ui.isMobile;D(i,m,C=>t(2,s=C));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=Bl(r,o,n))},[r,h,s,l,u,c,m,n,o]}var of=class extends N{constructor(e){super(),O(this,e,f8,c8,B,{},u8)}},C0=of;import{noop as S0}from"@vkontakte/videoplayer-shared";function d8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Bt(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function m8(i){let e;function t(r,s){return r[5]?_8:p8}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),w(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(r){r&&y(e),o.d(r)}}}function p8(i){let e,t,n,o;return{c(){e=I("img"),f(e,"class","icon"),ho(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){w(r,e,s),n||(o=ke(e,"error",i[6]),n=!0)},p(r,s){s&16&&!ho(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function _8(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){w(t,e,n)},p:me,d(t){t&&y(e)}}}function h8(i){let e,t,n,o,r,s,a,l,u,c,m,h=[m8,d8],C=[];function g(S,k){return typeof S[4]=="string"?0:1}return n=g(i,-1),o=C[n]=h[n](i),{c(){var S;e=I("li"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(i[2]),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=(S=i[3])!=null?S:i[2]),f(e,"data-testid",i[0]),G(e,"mobile",i[1])},m(S,k){w(S,e,k),_(e,t),C[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[ke(e,"click",gt(i[7])),ke(e,"keydown",i[8])],c=!0)},p(S,[k]){var T;let F=n;n=g(S,k),n===F?C[n].p(S,k):(ae(),p(C[F],1,1,()=>{C[F]=null}),ue(),o=C[n],o?o.p(S,k):(o=C[n]=h[n](S),o.c()),d(o,1),o.m(t,null)),(!u||k&4)&&Ge(a,S[2]),(!u||k&12&&l!==(l=(T=S[3])!=null?T:S[2]))&&f(e,"aria-label",l),(!u||k&1)&&f(e,"data-testid",S[0]),(!u||k&2)&&G(e,"mobile",S[1])},i(S){u||(d(o),u=!0)},o(S){p(o),u=!1},d(S){S&&y(e),C[n].d(),c=!1,ct(m)}}}function g8(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=S0}=e,{closeSettings:a=S0}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},C=g=>{Pr(g,()=>h())};return i.$$set=g=>{"id"in g&&t(0,o=g.id),"isMobile"in g&&t(1,r=g.isMobile),"onClick"in g&&t(9,s=g.onClick),"closeSettings"in g&&t(10,a=g.closeSettings),"label"in g&&t(2,l=g.label),"ariaLabel"in g&&t(3,u=g.ariaLabel),"icon"in g&&t(4,c=g.icon)},t(5,n=!1),[o,r,l,u,c,n,m,h,C,s,a]}var rf=class extends N{constructor(e){super(),O(this,e,g8,h8,B,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},T0=rf;import{noop as w8}from"@vkontakte/videoplayer-shared";function b8(i){be(i,"svelte-17wbjko",'.toggle_wrap.svelte-17wbjko{min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none}.toggle.svelte-17wbjko{float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer}.toggle.svelte-17wbjko::after{content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease}.toggle.on.svelte-17wbjko::after{background-color:var(--toggle-color-on);left:13px}.toggle-label.svelte-17wbjko{overflow:hidden}')}function v8(i){let e,t,n,o;return{c(){e=I("div"),t=I("div"),n=Y(),o=I("div"),f(t,"class","toggle svelte-17wbjko"),G(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,s){w(r,e,s),_(e,t),_(e,n),_(e,o)},p(r,[s]){s&1&&G(t,"on",r[0])},i:me,o:me,d(r){r&&y(e)}}}function y8(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var sf=class extends N{constructor(e){super(),O(this,e,y8,v8,B,{enabled:0},b8)}},I0=sf;function k8(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&R(e.$$.fragment),t=Xe()},m(s,a){e&&L(e,s,a),w(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){ae();let l=e;p(l.$$.fragment,1,0,()=>{V(l,1)}),ue()}o?(e=Bt(o,r(s,a)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&y(t),e&&V(e,s)}}}function C8(i){let e,t;return e=new Or({props:{icon:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.icon=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function S8(i){let e,t,n,o,r,s,a,l,u,c,m=[C8,k8],h=[];function C(g,S){return typeof g[4]=="string"?0:1}return n=C(i,-1),o=h[n]=m[n](i),u=new I0({props:{enabled:i[5]}}),{c(){e=I("div"),t=I("div"),o.c(),r=Y(),s=I("div"),a=qe(i[2]),l=Y(),R(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),G(e,"mobile",i[1])},m(g,S){w(g,e,S),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),L(u,e,null),c=!0},p(g,S){let k=n;n=C(g,S),n===k?h[n].p(g,S):(ae(),p(h[k],1,1,()=>{h[k]=null}),ue(),o=h[n],o?o.p(g,S):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||S&4)&&Ge(a,g[2]);let F={};S&32&&(F.enabled=g[5]),u.$set(F),(!c||S&2)&&G(e,"mobile",g[1])},i(g){c||(d(o),d(u.$$.fragment,g),c=!0)},o(g){p(o),p(u.$$.fragment,g),c=!1},d(g){g&&y(e),h[n].d(),V(u)}}}function T8(i){let e,t,n,o,r,s;return t=new Lr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[S8]},$$scope:{ctx:i}}}),{c(){var a;e=I("li"),R(t.$$.fragment),f(e,"class","item switch-item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(a=i[3])!=null?a:i[2]),f(e,"data-testid",i[0]),G(e,"mobile",i[1])},m(a,l){w(a,e,l),L(t,e,null),o=!0,r||(s=[ke(e,"click",gt(i[9])),ke(e,"keydown",i[8])],r=!0)},p(a,[l]){var c;let u={};l&64&&(u.content=a[6]),l&2&&(u.isMobile=a[1]),l&128&&(u.maxTooltipWidth=a[7]),l&2102&&(u.$$scope={dirty:l,ctx:a}),t.$set(u),(!o||l&12&&n!==(n=(c=a[3])!=null?c:a[2]))&&f(e,"aria-label",n),(!o||l&1)&&f(e,"data-testid",a[0]),(!o||l&2)&&G(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t),r=!1,ct(s)}}}function I8(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=w8}=e,{label:s}=e,{ariaLabel:a}=e,{icon:l}=e,{enabled:u=!1}=e,{tooltipText:c=void 0}=e,{maxTooltipWidth:m=void 0}=e,h=g=>{xd(g,u,S=>r(S))},C=()=>r(!u);return i.$$set=g=>{"id"in g&&t(0,n=g.id),"isMobile"in g&&t(1,o=g.isMobile),"onClick"in g&&t(10,r=g.onClick),"label"in g&&t(2,s=g.label),"ariaLabel"in g&&t(3,a=g.ariaLabel),"icon"in g&&t(4,l=g.icon),"enabled"in g&&t(5,u=g.enabled),"tooltipText"in g&&t(6,c=g.tooltipText),"maxTooltipWidth"in g&&t(7,m=g.maxTooltipWidth)},[n,o,s,a,l,u,c,m,h,C,r]}var lf=class extends N{constructor(e){super(),O(this,e,I8,T8,B,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},P0=lf;import{isValidURL as P8}from"@vkontakte/videoplayer-shared";function E8(i){be(i,"svelte-1t2c6ej",".settings-menu-container.mobile.svelte-1t2c6ej.svelte-1t2c6ej{width:100%}.settings-menu-container.svelte-1t2c6ej ul{margin:0;padding:0;list-style-type:none}.settings-menu-container.svelte-1t2c6ej .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.settings-menu-container.svelte-1t2c6ej .menu .item:first-child:not(.mobile){padding-top:6px;border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu .item:last-child{padding-bottom:6px;border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu.desktop{position:absolute;right:0;bottom:0}.settings-menu.svelte-1t2c6ej.svelte-1t2c6ej{line-height:40px}.settings-menu.desktop.svelte-1t2c6ej.svelte-1t2c6ej{min-width:300px}.settings-menu-container.svelte-1t2c6ej .menu.mobile{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.settings-menu-container.svelte-1t2c6ej .menu.mobile.hidden{display:none}.settings-menu-container.svelte-1t2c6ej .menu .item:not(.switch-item),.settings-menu-container.svelte-1t2c6ej .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative}.settings-menu-container.svelte-1t2c6ej .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.svelte-1t2c6ej .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.svelte-1t2c6ej .item:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper{padding:0 32px 0 18px}.settings-menu.svelte-1t2c6ej .item.mobile:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper.mobile{padding:0 14px}.settings-menu.svelte-1t2c6ej .icon-wrapper{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.settings-menu.svelte-1t2c6ej .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.svelte-1t2c6ej .item.header.svelte-1t2c6ej{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar{width:8px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.svelte-1t2c6ej .items.mobile{overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left}.close.svelte-1t2c6ej.svelte-1t2c6ej{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1t2c6ej.svelte-1t2c6ej:before,.close.svelte-1t2c6ej.svelte-1t2c6ej:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1t2c6ej.svelte-1t2c6ej:before{transform:rotate(45deg)}.close.svelte-1t2c6ej.svelte-1t2c6ej:after{transform:rotate(-45deg)}")}function A0(i,e,t){let n=i.slice();return n[89]=e[t],n[90]=e,n[91]=t,n}function M0(i,e,t){let n=i.slice();return n[89]=e[t],n[92]=e,n[93]=t,n}function L0(i){let e,t,n,o,r,s,a,l=i[5]&&V0(i),u=bt(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=R0(M0(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=I("div"),l&&l.c(),t=Y(),n=I("ul");for(let h=0;h<c.length;h+=1)c[h].c();f(n,"class","items"),f(n,"role","menu"),f(n,"style",o=i[34]()),G(n,"mobile",i[5]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),G(e,"desktop",!i[5]),G(e,"mobile",i[5]),G(e,"hidden",!i[7])},m(h,C){w(h,e,C),l&&l.m(e,null),_(e,t),_(e,n);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(n,null);i[68](n),r=!0,s||(a=[ke(e,"keydown",i[36]),ke(e,"mouseenter",i[32]),ke(e,"mouseleave",i[33])],s=!0)},p(h,C){if(h[5]?l?l.p(h,C):(l=V0(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),C[0]&1610612788){u=bt(h[4]);let g;for(g=0;g<u.length;g+=1){let S=M0(h,u,g);c[g]?(c[g].p(S,C),d(c[g],1)):(c[g]=R0(S),c[g].c(),d(c[g],1),c[g].m(n,null))}for(ae(),g=u.length;g<c.length;g+=1)m(g);ue()}(!r||C[0]&32)&&G(n,"mobile",h[5]),(!r||C[0]&32)&&G(e,"desktop",!h[5]),(!r||C[0]&32)&&G(e,"mobile",h[5]),(!r||C[0]&128)&&G(e,"hidden",!h[7])},i(h){if(!r){for(let C=0;C<u.length;C+=1)d(c[C]);r=!0}},o(h){c=c.filter(Boolean);for(let C=0;C<c.length;C+=1)p(c[C]);r=!1},d(h){h&&y(e),l&&l.d(),oi(c,h),i[68](null),s=!1,ct(a)}}}function V0(i){let e,t,n,o,r,s;return{c(){e=I("div"),t=I("div"),t.textContent=`${j("submenu_settings")}`,n=Y(),o=I("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),G(e,"mobile",i[5])},m(a,l){w(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=ke(o,"click",gt(i[30])),r=!0)},p(a,l){l[0]&32&&G(e,"mobile",a[5])},d(a){a&&y(e),r=!1,s()}}}function A8(i){let e,t;return e=new P0({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,enabled:i[89].enabled,tooltipText:i[89].tooltipText,maxTooltipWidth:i[89].maxTooltipWidth}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32&&(r.isMobile=n[5]),o[0]&16&&(r.id=n[89].id),o[0]&16&&(r.onClick=n[89].onClick),o[0]&16&&(r.icon=n[89].icon),o[0]&16&&(r.label=n[89].label),o[0]&16&&(r.ariaLabel=n[89].ariaLabel),o[0]&16&&(r.enabled=n[89].enabled),o[0]&16&&(r.tooltipText=n[89].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[89].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function M8(i){let e,t;return e=new T0({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,closeSettings:i[30]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&32&&(r.isMobile=n[5]),o[0]&16&&(r.id=n[89].id),o[0]&16&&(r.onClick=n[89].onClick),o[0]&16&&(r.icon=n[89].icon),o[0]&16&&(r.label=n[89].label),o[0]&16&&(r.ariaLabel=n[89].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function L8(i){let e,t,n;function o(){return i[66](i[89])}function r(a){i[67](a,i[89])}let s={isMobile:i[5],id:i[89].id,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,value:i[89].value,valueComponent:i[89].valueComponent,onClick:o,getSubItemForFocus:i[89].getSubItemForFocus};return i[2][i[89].id]!==void 0&&(s.ref=i[2][i[89].id]),e=new _0({props:s}),ve.push(()=>ze(e,"ref",r)),{c(){R(e.$$.fragment)},m(a,l){L(e,a,l),n=!0},p(a,l){i=a;let u={};l[0]&32&&(u.isMobile=i[5]),l[0]&16&&(u.id=i[89].id),l[0]&16&&(u.icon=i[89].icon),l[0]&16&&(u.label=i[89].label),l[0]&16&&(u.ariaLabel=i[89].ariaLabel),l[0]&16&&(u.value=i[89].value),l[0]&16&&(u.valueComponent=i[89].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[89].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[89].id],Ue(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){p(e.$$.fragment,a),n=!1},d(a){V(e,a)}}}function R0(i){let e,t,n,o,r=[L8,M8,A8],s=[];function a(l,u){return l[89].type==="OPEN_SUB_MENU"?0:l[89].type==="CLICK"?1:l[89].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Xe()},m(l,u){~e&&s[e].m(l,u),w(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(ae(),p(s[c],1,1,()=>{s[c]=null}),ue()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&y(n),~e&&s[e].d(l)}}}function B0(i){var s,a;let e,t,n;function o(l){i[69](l,i[89])}let r={isMobile:i[5],playerControlsHeight:i[1],returnFromSubMenu:(s=i[89].subMenu.returnFromSubMenu)!=null?s:i[31],id:i[89].id,title:i[89].subMenu.title,closeSettingsMenu:i[89].subMenu.closeSettingsMenu,backToMainSettings:i[89].subMenu.backToMainSettings,itemIdReturnCase:i[89].subMenu.itemIdReturnCase,items:i[89].subMenu.items,selectItem:i[89].subMenu.selectItem,minWidth:(a=i[89].subMenu.minWidth)!=null?a:137};return i[3][i[89].id]!==void 0&&(r.listRef=i[3][i[89].id]),e=new p0({props:r}),ve.push(()=>ze(e,"listRef",o)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),n=!0},p(l,u){var m,h;i=l;let c={};u[0]&32&&(c.isMobile=i[5]),u[0]&2&&(c.playerControlsHeight=i[1]),u[0]&16&&(c.returnFromSubMenu=(m=i[89].subMenu.returnFromSubMenu)!=null?m:i[31]),u[0]&16&&(c.id=i[89].id),u[0]&16&&(c.title=i[89].subMenu.title),u[0]&16&&(c.closeSettingsMenu=i[89].subMenu.closeSettingsMenu),u[0]&16&&(c.backToMainSettings=i[89].subMenu.backToMainSettings),u[0]&16&&(c.itemIdReturnCase=i[89].subMenu.itemIdReturnCase),u[0]&16&&(c.items=i[89].subMenu.items),u[0]&16&&(c.selectItem=i[89].subMenu.selectItem),u[0]&16&&(c.minWidth=(h=i[89].subMenu.minWidth)!=null?h:137),!t&&u[0]&24&&(t=!0,c.listRef=i[3][i[89].id],Ue(()=>t=!1)),e.$set(c)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){V(e,l)}}}function N0(i){var o;let e,t,n=i[89].type==="OPEN_SUB_MENU"&&((o=i[89].subMenu)==null?void 0:o.show)&&B0(i);return{c(){n&&n.c(),e=Xe()},m(r,s){n&&n.m(r,s),w(r,e,s),t=!0},p(r,s){var a;r[89].type==="OPEN_SUB_MENU"&&((a=r[89].subMenu)!=null&&a.show)?n?(n.p(r,s),s[0]&16&&d(n,1)):(n=B0(r),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),p(n,1,1,()=>{n=null}),ue())},i(r){t||(d(n),t=!0)},o(r){p(n),t=!1},d(r){r&&y(e),n&&n.d(r)}}}function V8(i){let e,t,n,o=i[6]&&L0(i),r=bt(i[4]),s=[];for(let l=0;l<r.length;l+=1)s[l]=N0(A0(i,r,l));let a=l=>p(s[l],1,1,()=>{s[l]=null});return{c(){e=I("div"),o&&o.c(),t=Y();for(let l=0;l<s.length;l+=1)s[l].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),G(e,"hidden",!i[6]),G(e,"mobile",i[5])},m(l,u){w(l,e,u),o&&o.m(e,null),_(e,t);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);n=!0},p(l,u){if(l[6]?o?(o.p(l,u),u[0]&64&&d(o,1)):(o=L0(l),o.c(),d(o,1),o.m(e,t)):o&&(ae(),p(o,1,1,()=>{o=null}),ue()),u[0]&58|u[1]&1){r=bt(l[4]);let c;for(c=0;c<r.length;c+=1){let m=A0(l,r,c);s[c]?(s[c].p(m,u),d(s[c],1)):(s[c]=N0(m),s[c].c(),d(s[c],1),s[c].m(e,null))}for(ae(),c=r.length;c<s.length;c+=1)a(c);ue()}(!n||u[0]&64)&&G(e,"hidden",!l[6]),(!n||u[0]&32)&&G(e,"mobile",l[5])},i(l){if(!n){d(o);for(let u=0;u<r.length;u+=1)d(s[u]);n=!0}},o(l){p(o),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)p(s[u]);n=!1},d(l){l&&y(e),o&&o.d(),oi(s,l)}}}function R8(i,e,t){let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,{ref:X=void 0}=e,{supportLink:oe}=e,{playerControlsHeight:K=0}=e,{returnFocus:ce}=e,z=nt(),x=xt(),P=z.state.audioStream$;D(i,P,De=>t(57,k=De));let J=z.state.availableAudioStreams$;D(i,J,De=>t(56,S=De));let le=z.state.currentQuality$;D(i,le,De=>t(60,v=De));let Ae=z.state.availableQualities$;D(i,Ae,De=>t(58,F=De));let ee=z.state.autoQualityLimitingAvailable$;D(i,ee,De=>t(64,W=De));let ge=z.state.isAutoQualityEnabled$;D(i,ge,De=>t(61,E=De));let Ee=z.state.currentPlaybackRate$;D(i,Ee,De=>t(55,g=De));let Te=z.state.availablePlaybackRates$;D(i,Te,De=>t(54,C=De));let Ie=z.state.currentSubtitle$;D(i,Ie,De=>t(53,h=De));let ot=z.state.availableSubtitlesList$;D(i,ot,De=>t(51,c=De));let Pe=z.state.canDownload,We=z.state.hasMpegSources$;D(i,We,De=>t(65,ne=De));let $=z.ui.settingsMenuVisible;D(i,$,De=>t(6,q=De));let _e=z.ui.settingsMenuOpenedByKeyboard;D(i,_e,De=>t(71,r=De));let Ce=z.ui.isMobile;D(i,Ce,De=>t(5,s=De));let xe=z.ui.mobileNotReportControlHidden$;D(i,xe,De=>t(62,H=De));let rt=z.state.canChangePlaybackSpeed$;D(i,rt,De=>t(63,U=De));let lt=z.state.trafficSavingEnabled$;D(i,lt,De=>t(50,u=De));let it=z.ui.playerSize;D(i,it,De=>t(72,de=De));let Je=z.ui.debugPanelVisible;D(i,Je,De=>t(49,l=De));let fe=z.state.isInteractiveTime$,Se=z.ui.additionalSettingsMenuItems$;D(i,Se,De=>t(48,a=De));let $e=z.actions.internal.downloadVideo,Ne=z.actions.internal.closeSettingsMenu,et=!0,Fe=Oe({});D(i,Fe,De=>t(52,m=De));let ut=!1;function ft(De){t(7,et=!1);let tt=m;tt[De]=!0,Fe.set(tt)}function he(){r||ce==null||ce(),At(),Ne(),ut=!1}function dt(De){z.actions.internal.setQuality(De),he()}function vt(De){z.actions.internal.setAudioStream(De),he()}function yt(De){z.actions.internal.setTrafficSavingEnabled(De)}function Qe(De){z.actions.internal.setPlaybackRate(De),he()}function Tt(De){z.actions.internal.setSubtitle(De),he()}function At(){t(7,et=!0);let De=m;Object.keys(De).forEach(tt=>{De[tt]=!1}),Fe.set(De)}function ii(){$e()}function Ot(){P8(oe)&&window.open(oe,"_blank"),z.actions.internal.reportProblem(),z.actions.internal.pause()}function Ft(){Sr(z.actions.internal.getDebugTextData())}let jt=()=>{let De=z.actions.internal.getTraceTextData(),tt=new Blob([...De],{type:"application/json"}),wt=window.URL.createObjectURL(tt);ir(wt,"vk_player_trace_info","json")};function Ht(){Je.set(!l)}function Ke(){ut=!0}function Ze(){ut=!1}function Ct(){return s?`max-height: ${Math.round(de.height*.6)}px`:`max-height: ${de.height-32-K}px; overflow: auto;`}let pe,Gt,It,$t,Rt,Ut,ni,Pt=Oe();D(i,Pt,De=>t(59,T=De));let ei={},Yt={},un=De=>{Hs(De,Ne)},Lt=[];Vt(()=>{let De=fe.subscribe(tt=>{tt&&!s&&!ut&&!r&&he()});return()=>{De()}});let Oi=De=>ft(De.id);function Xi(De,tt){i.$$.not_equal(ei[tt.id],De)&&(ei[tt.id]=De,t(2,ei))}function pi(De){ve[De?"unshift":"push"](()=>{X=De,t(0,X)})}function bi(De,tt){i.$$.not_equal(Yt[tt.id],De)&&(Yt[tt.id]=De,t(3,Yt))}return i.$$set=De=>{"ref"in De&&t(0,X=De.ref),"supportLink"in De&&t(37,oe=De.supportLink),"playerControlsHeight"in De&&t(1,K=De.playerControlsHeight),"returnFocus"in De&&t(38,ce=De.returnFocus)},i.$$.update=()=>{var De;if(i.$$.dirty[0]&64&&q&&At(),i.$$.dirty[1]&1744830464&&t(46,n=Bl(v,F,E)),i.$$.dirty[2]&9&&t(39,pe=Pe&&ne&&!H),i.$$.dirty[2]&5&&t(40,Gt=x.features.trafficSaving&&!H&&W),i.$$.dirty[1]&1048576|i.$$.dirty[2]&1&&t(41,It=c.length>0&&!H),i.$$.dirty[2]&3&&t(42,$t=!!U&&!H),i.$$.dirty[1]&33554432|i.$$.dirty[2]&1&&t(43,Rt=x.features.audioLanguages&&S.length>=2&&!H),i.$$.dirty[2]&1&&t(47,o=!H),i.$$.dirty[1]&1610612736&&t(44,Ut=E?j("auto_quality_option"):v),i.$$.dirty[1]&25165824&&t(45,ni=(De=C.find(tt=>tt.value===g))==null?void 0:De.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&268435456){let tt=T;tt&&(zd(ei[tt]),Pt.set(void 0))}i.$$.dirty[0]&56|i.$$.dirty[1]&268435200&&(t(4,Lt=[]),o&&Lt.push({id:"quality-settings",weight:eo["quality-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let tt=F.findIndex(wt=>wt.selected);return Yt["quality-settings"].children[tt+1]},ariaLabel:j("aria_label_menu_quality",{actual:Ut}),icon:Xs,label:j("menu_quality"),value:n,valueComponent:C0,subMenu:{show:m["quality-settings"],title:j("submenu_quality"),closeSettingsMenu:Ne,backToMainSettings:At,itemIdReturnCase:Pt,selectItem:dt,items:F.map(tt=>({value:tt.value,valueComponent:Rl,valueComponentParams:{quality:tt.value,label:tt.displayValue,isMobile:s,isSubCase:!0},selected:tt.selected,label:tt.displayValue}))}}),Rt&&Lt.push({id:"audio-language-settings",weight:eo["audio-language-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let tt=S.findIndex(wt=>wt.id===(k==null?void 0:k.id));return Yt["audio-language-settings"].children[tt+1]},ariaLabel:j("aria_label_menu_audio_languages",{actual:Vl(k,S)}),icon:v0,label:j("menu_audio_languages"),value:Vl(k,S),subMenu:{show:m["audio-language-settings"],title:j("submenu_audio_languages"),closeSettingsMenu:Ne,backToMainSettings:At,itemIdReturnCase:Pt,selectItem:vt,items:S.map(tt=>({value:tt,dataValue:tt.id,selected:tt.id===(k==null?void 0:k.id),label:Vl(tt,S)}))}}),$t&&Lt.push({id:"playback-rate-settings",weight:eo["playback-rate-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let tt=C.findIndex(wt=>wt.selected);return Yt["playback-rate-settings"].children[tt+1]},ariaLabel:j("aria_label_menu_rate",{actual:ni}),icon:b0,label:j("menu_playback_rate"),value:`${g}x`,subMenu:{show:m["playback-rate-settings"],title:j("submenu_playback_rate"),closeSettingsMenu:Ne,backToMainSettings:At,itemIdReturnCase:Pt,selectItem:Qe,items:C.map(tt=>({value:tt.value,selected:tt.selected,label:tt.displayValue}))}}),It&&Lt.push({id:"subtitles-settings",weight:eo["subtitles-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let tt=c.findIndex(wt=>wt.selected);return Yt["subtitles-settings"].children[tt+1]},ariaLabel:j("aria_label_menu_subtitle",{actual:h.displayValue}),icon:Js,label:j("subtitles_caption"),value:h.displayValue,subMenu:{show:m["subtitles-settings"],minWidth:164,title:j("subtitles_caption"),closeSettingsMenu:Ne,backToMainSettings:At,itemIdReturnCase:Pt,selectItem:Tt,items:c.map(tt=>({value:tt,selected:tt.selected,label:tt.displayValue}))}}),Gt&&Lt.push({id:"traffic-saving-settings",weight:eo["traffic-saving-settings"],type:"SWITCH",onClick:yt,ariaLabel:u?j("aria_label_submenu_traffic_saving_off"):`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`,icon:g0,label:j("menu_traffic_saving"),enabled:u,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),pe&&Lt.push({id:"download",weight:eo.download,type:"CLICK",onClick:ii,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:h0}),x.showSupport&&Lt.push({id:"report",weight:eo.report,type:"CLICK",onClick:Ot,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:w0,isHiddenFor:["desktop"]}),Lt.push({id:"copy-data",weight:eo["copy-data"],type:"CLICK",onClick:Ft,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:$c,isHiddenFor:["desktop"]}),x.features.saveTraceInfoToFile&&Lt.push({id:"save-trace-info",weight:eo["save-trace-info"],type:"CLICK",onClick:jt,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:$c,isHiddenFor:["desktop"]}),Lt.push({id:"debug-info",weight:eo["debug-info"],type:"CLICK",onClick:Ht,label:l?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),ariaLabel:j("menu_debug_overlay"),icon:y0,isHiddenFor:["desktop"]}),t(4,Lt=[...Lt,...a.map(tt=>({...tt,isAdditional:!0}))].filter(tt=>{var wt,_i,vi;return!((wt=tt.isHiddenFor)!=null&&wt.length)||!((_i=tt.isHiddenFor)!=null&&_i.includes("desktop"))&&!s||!((vi=tt.isHiddenFor)!=null&&vi.includes("mobile"))&&s}).sort(lr)))},[X,K,ei,Yt,Lt,s,q,et,P,J,le,Ae,ee,ge,Ee,Te,Ie,ot,We,$,_e,Ce,xe,rt,lt,it,Je,Se,Fe,ft,he,At,Ke,Ze,Ct,Pt,un,oe,ce,pe,Gt,It,$t,Rt,Ut,ni,n,o,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,Oi,Xi,pi,bi]}var af=class extends N{constructor(e){super(),O(this,e,R8,V8,B,{ref:0,supportLink:37,playerControlsHeight:1,returnFocus:38},E8,[-1,-1,-1,-1])}},Nl=af;var{window:B8}=Xo;function D8(i){be(i,"svelte-13f9p53",".player-wrapper.svelte-13f9p53{position:absolute;width:100%;height:100%}.player-wrapper.svelte-13f9p53 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-13f9p53{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-13f9p53,.video-container.svelte-13f9p53,.ads-container.svelte-13f9p53{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-13f9p53{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-13f9p53{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-13f9p53{transition:none}.nocursor.svelte-13f9p53{cursor:none}.ads-container.svelte-13f9p53{z-index:var(--ads-container-z-index);background:var(--black)}.settings-menu.svelte-13f9p53{position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;transition:opacity 0.2s, visibility 0.2s}")}function O0(i){var n;let e,t;return e=new Ml({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&8&&(s.thumbUrl=o[3]),r[0]&16&&(s.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function F0(i){let e,t;return e=new Fr({props:{kind:"recover",thumbUrl:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function H0(i){let e,t;return e=new Fr({props:{kind:"record",thumbUrl:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function q0(i){let e,t,n;return t=new Ds({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),G(e,"hidden",i[38]!=="ads")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r[0]&256&&(s.adsSlotId=o[8]),r[0]&512&&(s.adsParams=o[9]),r[0]&1024&&(s.adsPreviewParam=o[10]),r[0]&2048&&(s.duration=o[11]),t.$set(s),(!n||r[1]&128)&&G(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function U0(i){let e,t;return e=new v1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function z0(i){let e,t;return e=new i0({props:{title:i[2],isHidden:!i[36]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function W0(i){let e,t;return e=new Tl({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function K0(i){let e,t,n;return t=new Is({props:{"aria-label":j("video360")}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){w(o,e,r),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function x0(i){let e,t;return e=new Pl({props:{thumbUrl:i[3],chromecastDeviceName:i[55]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function j0(i){let e,t;return e=new Il({props:{shifted:i[36],captions:i[57],position:i[58],playerSize:i[34]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&67108864&&(r.captions=n[57]),o[1]&134217728&&(r.position=n[58]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function G0(i){let e,t,n,o,r;return t=new El({}),{c(){e=I("div"),R(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=[ke(e,"contextmenu",ri(i[110])),ke(e,"click",gt(i[121]))],o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),V(t),o=!1,ct(r)}}}function Y0(i){let e,t,n,o;function r(l){i[161](l)}function s(l){i[162](l)}let a={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[51],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[59]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],customFullscreenSupported:e_,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[108],seekToInteractive:i[26],playPrevChapter:i[27]};return i[41]!==void 0&&(a.playerControlsWrapperRef=i[41]),i[42]!==void 0&&(a.playerControlsRef=i[42]),e=new Sl({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u[1]&128&&(c.bottomHidden=l[38]==="thumb"||l[38]==="LiveWaitingStart"||l[38]==="LiveWaitingRecover"||l[38]==="LiveWaitingRecord"),u[1]&1048576&&(c.bottomNoSmooth=l[51]),u[1]&32&&(c.showControls=l[36]),u[1]&128&&(c.isAds=l[38]==="ads"),u[0]&64|u[1]&268435456&&(c.canRewindLive=l[6]&&l[59]!==0),u[0]&4096&&(c.logoClickable=l[12]),u[0]&8192&&(c.logoHidden=l[13]),u[0]&16384&&(c.logoTargetUrl=l[14]),u[0]&32768&&(c.showNextPrevButtons=l[15]),u[0]&65536&&(c.nextButtonActive=l[16]),u[0]&131072&&(c.prevButtonActive=l[17]),u[0]&1048576&&(c.isOneVideoPlaylist=l[20]),u[0]&8388608&&(c.playNextVideo=l[23]),u[0]&16777216&&(c.playPrevVideo=l[24]),u[0]&33554432&&(c.repeatPlaylist=l[25]),u[0]&67108864&&(c.seekToInteractive=l[26]),u[0]&134217728&&(c.playPrevChapter=l[27]),!t&&u[1]&1024&&(t=!0,c.playerControlsWrapperRef=l[41],Ue(()=>t=!1)),!n&&u[1]&2048&&(n=!0,c.playerControlsRef=l[42],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function Q0(i){var a;let e,t,n,o;function r(l){i[164](l)}let s={supportLink:i[21],playerControlsHeight:(a=i[42])==null?void 0:a.clientHeight,returnFocus:i[163]};return i[29]!==void 0&&(s.ref=i[29]),t=new Nl({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(l,u){w(l,e,u),L(t,e,null),o=!0},p(l,u){var m;let c={};u[0]&2097152&&(c.supportLink=l[21]),u[1]&2048&&(c.playerControlsHeight=(m=l[42])==null?void 0:m.clientHeight),u[1]&262144&&(c.returnFocus=l[163]),!n&&u[0]&536870912&&(n=!0,c.ref=l[29],Ue(()=>n=!1)),t.$set(c)},i(l){o||(d(t.$$.fragment,l),o=!0)},o(l){p(t.$$.fragment,l),o=!1},d(l){l&&y(e),V(t)}}}function Z0(i){let e,t;return e=new Ar({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function X0(i){let e,t;return e=new A1({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function J0(i){let e,t;return e=new Ks({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function $0(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q;e=new Al({props:{hidden:i[38]!=="thumb"||i[37]||i[94]&&i[5],thumbUrl:i[3],startVideo:i[28]}});let X=i[38]==="LiveWaitingStart"&&O0(i),oe=i[38]==="LiveWaitingRecover"&&F0(i),K=i[38]==="LiveWaitingRecord"&&H0(i),ce=i[7]&&i[22]&&q0(i),z=i[31]&&i[18]&&i[19]&&U0(i),x=i[45]&&z0(i),P=i[50]&&W0(i),J=i[54]&&K0(i),le=i[39]&&x0(i),Ae=i[56].value!=="off"&&j0(i),ee=i[37]&&G0(i),ge=i[22]&&Y0(i),Ee=!i[39]&&i[38]!=="ads"&&Q0(i);k=new Fs({props:{isLive:i[60],isHidden:!i[44],isPlaying:i[52],position:i[58],duration:i[61]}}),T=new xp({props:{data:i[105]}});function Te($){i[166]($)}let Ie={supportLink:i[21],returnFocus:i[165],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[62]};i[32]!==void 0&&(Ie.menuElementRef=i[32]),E=new $d({props:Ie}),ve.push(()=>ze(E,"menuElementRef",Te));let ot=i[43]&&Z0(i),Pe=i[63]&&X0(i),We=i[64]&&J0(i);return{c(){R(e.$$.fragment),t=Y(),X&&X.c(),n=Y(),oe&&oe.c(),o=Y(),K&&K.c(),r=Y(),ce&&ce.c(),s=Y(),z&&z.c(),a=Y(),x&&x.c(),l=Y(),P&&P.c(),u=Y(),J&&J.c(),c=Y(),le&&le.c(),m=Y(),Ae&&Ae.c(),h=Y(),ee&&ee.c(),C=Y(),ge&&ge.c(),g=Y(),Ee&&Ee.c(),S=Y(),R(k.$$.fragment),F=Y(),R(T.$$.fragment),v=Y(),R(E.$$.fragment),U=Y(),ot&&ot.c(),W=Y(),Pe&&Pe.c(),ne=Y(),We&&We.c(),de=Xe()},m($,_e){L(e,$,_e),w($,t,_e),X&&X.m($,_e),w($,n,_e),oe&&oe.m($,_e),w($,o,_e),K&&K.m($,_e),w($,r,_e),ce&&ce.m($,_e),w($,s,_e),z&&z.m($,_e),w($,a,_e),x&&x.m($,_e),w($,l,_e),P&&P.m($,_e),w($,u,_e),J&&J.m($,_e),w($,c,_e),le&&le.m($,_e),w($,m,_e),Ae&&Ae.m($,_e),w($,h,_e),ee&&ee.m($,_e),w($,C,_e),ge&&ge.m($,_e),w($,g,_e),Ee&&Ee.m($,_e),w($,S,_e),L(k,$,_e),w($,F,_e),L(T,$,_e),w($,v,_e),L(E,$,_e),w($,U,_e),ot&&ot.m($,_e),w($,W,_e),Pe&&Pe.m($,_e),w($,ne,_e),We&&We.m($,_e),w($,de,_e),q=!0},p($,_e){let Ce={};_e[0]&32|_e[1]&192&&(Ce.hidden=$[38]!=="thumb"||$[37]||$[94]&&$[5]),_e[0]&8&&(Ce.thumbUrl=$[3]),_e[0]&268435456&&(Ce.startVideo=$[28]),e.$set(Ce),$[38]==="LiveWaitingStart"?X?(X.p($,_e),_e[1]&128&&d(X,1)):(X=O0($),X.c(),d(X,1),X.m(n.parentNode,n)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),$[38]==="LiveWaitingRecover"?oe?(oe.p($,_e),_e[1]&128&&d(oe,1)):(oe=F0($),oe.c(),d(oe,1),oe.m(o.parentNode,o)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),$[38]==="LiveWaitingRecord"?K?(K.p($,_e),_e[1]&128&&d(K,1)):(K=H0($),K.c(),d(K,1),K.m(r.parentNode,r)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),$[7]&&$[22]?ce?(ce.p($,_e),_e[0]&4194432&&d(ce,1)):(ce=q0($),ce.c(),d(ce,1),ce.m(s.parentNode,s)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),$[31]&&$[18]&&$[19]?z?(z.p($,_e),_e[0]&786432|_e[1]&1&&d(z,1)):(z=U0($),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),$[45]?x?(x.p($,_e),_e[1]&16384&&d(x,1)):(x=z0($),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),$[50]?P?(P.p($,_e),_e[1]&524288&&d(P,1)):(P=W0($),P.c(),d(P,1),P.m(u.parentNode,u)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),$[54]?J?_e[1]&8388608&&d(J,1):(J=K0($),J.c(),d(J,1),J.m(c.parentNode,c)):J&&(ae(),p(J,1,1,()=>{J=null}),ue()),$[39]?le?(le.p($,_e),_e[1]&256&&d(le,1)):(le=x0($),le.c(),d(le,1),le.m(m.parentNode,m)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),$[56].value!=="off"?Ae?(Ae.p($,_e),_e[1]&33554432&&d(Ae,1)):(Ae=j0($),Ae.c(),d(Ae,1),Ae.m(h.parentNode,h)):Ae&&(ae(),p(Ae,1,1,()=>{Ae=null}),ue()),$[37]?ee?(ee.p($,_e),_e[1]&64&&d(ee,1)):(ee=G0($),ee.c(),d(ee,1),ee.m(C.parentNode,C)):ee&&(ae(),p(ee,1,1,()=>{ee=null}),ue()),$[22]?ge?(ge.p($,_e),_e[0]&4194304&&d(ge,1)):(ge=Y0($),ge.c(),d(ge,1),ge.m(g.parentNode,g)):ge&&(ae(),p(ge,1,1,()=>{ge=null}),ue()),!$[39]&&$[38]!=="ads"?Ee?(Ee.p($,_e),_e[1]&384&&d(Ee,1)):(Ee=Q0($),Ee.c(),d(Ee,1),Ee.m(S.parentNode,S)):Ee&&(ae(),p(Ee,1,1,()=>{Ee=null}),ue());let xe={};_e[1]&536870912&&(xe.isLive=$[60]),_e[1]&8192&&(xe.isHidden=!$[44]),_e[1]&2097152&&(xe.isPlaying=$[52]),_e[1]&134217728&&(xe.position=$[58]),_e[1]&1073741824&&(xe.duration=$[61]),k.$set(xe);let rt={};_e[0]&2097152&&(rt.supportLink=$[21]),_e[1]&262144&&(rt.returnFocus=$[165]),_e[1]&4&&(rt.visible=$[33]),_e[1]&512&&(rt.playerContainerRef=$[40]),_e[1]&1024&&(rt.controlsContainerRef=$[41]),_e[2]&1&&(rt.position=$[62]),!H&&_e[1]&2&&(H=!0,rt.menuElementRef=$[32],Ue(()=>H=!1)),E.$set(rt),$[43]?ot?_e[1]&4096&&d(ot,1):(ot=Z0($),ot.c(),d(ot,1),ot.m(W.parentNode,W)):ot&&(ae(),p(ot,1,1,()=>{ot=null}),ue()),$[63]?Pe?_e[2]&2&&d(Pe,1):(Pe=X0($),Pe.c(),d(Pe,1),Pe.m(ne.parentNode,ne)):Pe&&(ae(),p(Pe,1,1,()=>{Pe=null}),ue()),$[64]?We?_e[2]&4&&d(We,1):(We=J0($),We.c(),d(We,1),We.m(de.parentNode,de)):We&&(ae(),p(We,1,1,()=>{We=null}),ue())},i($){q||(d(e.$$.fragment,$),d(X),d(oe),d(K),d(ce),d(z),d(x),d(P),d(J),d(le),d(Ae),d(ee),d(ge),d(Ee),d(k.$$.fragment,$),d(T.$$.fragment,$),d(E.$$.fragment,$),d(ot),d(Pe),d(We),q=!0)},o($){p(e.$$.fragment,$),p(X),p(oe),p(K),p(ce),p(z),p(x),p(P),p(J),p(le),p(Ae),p(ee),p(ge),p(Ee),p(k.$$.fragment,$),p(T.$$.fragment,$),p(E.$$.fragment,$),p(ot),p(Pe),p(We),q=!1},d($){$&&(y(t),y(n),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(C),y(g),y(S),y(F),y(v),y(U),y(W),y(ne),y(de)),V(e,$),X&&X.d($),oe&&oe.d($),K&&K.d($),ce&&ce.d($),z&&z.d($),x&&x.d($),P&&P.d($),J&&J.d($),le&&le.d($),Ae&&Ae.d($),ee&&ee.d($),ge&&ge.d($),Ee&&Ee.d($),V(k,$),V(T,$),V(E,$),ot&&ot.d($),Pe&&Pe.d($),We&&We.d($)}}}function O8(i){let e,t,n,o,r=i[53],s,a,l,u,c=$0(i);return{c(){e=I("div"),t=I("div"),o=Y(),c.c(),s=Xe(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[47]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[52]),G(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),G(e,"hidden",i[38]!=="video"),G(e,"nocursor",i[46])},m(m,h){w(m,e,h),_(e,t),i[160](t),w(m,o,h),c.m(m,h),w(m,s,h),a=!0,l||(u=[ke(e,"contextmenu",ri(i[110])),ke(e,"mousedown",ri(i[115])),ke(e,"mouseup",ri(i[116])),ke(e,"click",ri(i[118])),ke(e,"dblclick",ri(i[117]))],l=!0)},p(m,h){(!a||h[1]&65552&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[47]})`))&&f(t,"style",n),(!a||h[1]&2097152)&&f(t,"data-is-playing",m[52]),(!a||h[0]&2)&&G(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&G(e,"hidden",m[38]!=="video"),(!a||h[1]&32768)&&G(e,"nocursor",m[46]),h[1]&4194304&&B(r,r=m[53])?(ae(),p(c,1,1,me),ue(),c=$0(m),c.c(),d(c,1),c.m(s.parentNode,s)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){p(c),a=!1},d(m){m&&(y(e),y(o),y(s)),i[160](null),c.d(m),l=!1,ct(u)}}}function F8(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[108],hideContextMenu:i[109],showHotKeyHelpers:i[119],showKeyMap:i[120],isAds:i[38]==="ads",fakePlayButtonHandler:i[48]?i[107]:void 0,$$slots:{default:[O8]},$$scope:{ctx:i}};return t=new y1({props:l}),i[167](t),{c(){e=I("div"),R(t.$$.fragment),n=Y(),o=I("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){w(u,e,c),L(t,e,null),_(e,n),_(e,o),i[168](o),i[169](e),r=!0,s||(a=[ke(B8,"blur",i[109]),ke(e,"mouseenter",i[111]),ke(e,"mouseleave",i[113]),ke(e,"mousemove",i[114]),ke(e,"click",i[122],!0),ke(e,"focusin",i[112],!0)],s=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&131072&&(m.fakePlayButtonHandler=u[48]?u[107]:void 0),c[0]&1073741823|c[1]&2147352575|c[2]&7|c[6]&1024&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){p(t.$$.fragment,u),r=!1},d(u){u&&y(e),i[167](null),V(t),i[168](null),i[169](null),s=!1,ct(a)}}}var e_=!0;function cf(i){return i?i.offsetTop+cf(i.offsetParent):0}function t_(i){return i?i.offsetLeft+t_(i.offsetParent):0}function H8(i,e,t){let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Te,Ie,ot,Pe,We,$,_e,{store:Ce}=e,{uiConfig:xe}=e,{title:rt}=e,{thumbUrl:lt}=e,{videoContainer:it}=e,{interactiveContainer:Je}=e,{live:fe}=e,{autoplay:Se}=e,{canRewindLive:$e}=e,{showAds:Ne}=e,{adsSlotId:et=void 0}=e,{adsParams:Fe=void 0}=e,{adsPreviewParam:ut=void 0}=e,{duration:ft=void 0}=e,{logoClickable:he}=e,{logoHidden:dt}=e,{logoTargetUrl:vt=""}=e,{showNextPrevButtons:yt=!1}=e,{nextButtonActive:Qe=!1}=e,{prevButtonActive:Tt=!1}=e,{endScreenVideoTitle:At=void 0}=e,{endScreenVideoThumb:ii=void 0}=e,{isOneVideoPlaylist:Ot=!1}=e,{supportLink:Ft}=e,{shadowRootContainer:jt=void 0}=e,{outerContainerRef:Ht=void 0}=e,{playerStarted:Ke=!1}=e,{fullScreenTarget:Ze=void 0}=e,{showMiniTimer:Ct=!1}=e,{showEndScreen:pe=!0}=e,{playNextVideo:Gt=uf}=e,{playPrevVideo:It=uf}=e,{repeatPlaylist:$t=uf}=e,{seekToInteractive:Rt}=e,{playPrevChapter:Ut}=e,{firstStart:ni}=e,Pt=Ce.getLogger().createComponentLog("Root component"),ei=Ce.interfaceLanguage$;D(i,ei,Q=>t(53,le=Q));let Yt=Ce.state.playbackState$;D(i,Yt,Q=>t(157,z=Q));let un=Ce.ads.playbackState;D(i,un,Q=>t(158,x=Q));let Lt=Ce.state.positionWithScrubbing$;D(i,Lt,Q=>t(58,Te=Q));let Oi=Ce.state.duration$;D(i,Oi,Q=>t(61,Pe=Q));let Xi=Ce.playerPhase;D(i,Xi,Q=>t(38,q=Q));let pi=Ce.ui.isFullscreen;D(i,pi,Q=>t(147,S=Q));let bi=Ce.ui.controlsVisible;D(i,bi,Q=>t(36,H=Q));let De=Ce.ui.settingsMenuVisible;D(i,De,Q=>t(145,u=Q));let tt=Ce.ui.settingsMenuOpenedByKeyboard;D(i,tt,Q=>t(144,l=Q));let wt=Ce.ui.scrubbingInProgress;D(i,wt,Q=>t(149,v=Q));let _i=Ce.ui.contextMenu.visible$;D(i,_i,Q=>t(33,n=Q));let vi=Ce.ui.debugPanelVisible;D(i,vi,Q=>t(64,_e=Q));let Ji=Ce.state.isLoaderVisible;D(i,Ji,Q=>t(159,P=Q));let Ii=Ce.state.isEnded$;D(i,Ii,Q=>t(146,m=Q));let cn=Ce.state.chromecastConnected$;D(i,cn,Q=>t(39,K=Q));let ci=Ce.state.chromecastDeviceName$;D(i,ci,Q=>t(55,ee=Q));let Fi=Ce.ads.postrollPassed;D(i,Fi,Q=>t(152,ne=Q));let Hi=Ce.state.isLive$;D(i,Hi,Q=>t(60,ot=Q));let Nt=Ce.state.isPlaying$;D(i,Nt,Q=>t(52,J=Q));let yi=Ce.state.crashed$;D(i,yi,Q=>t(37,W=Q));let si=Ce.webApi.annotationsApi,qt=Ce.webApi.pictureInPictureApi,Cn=Ce.state.currentSubtitle$;D(i,Cn,Q=>t(56,ge=Q));let hi=Ce.state.currentSubtitleCaptions$;D(i,hi,Q=>t(57,Ee=Q));let fn=Ce.state.duration$;D(i,fn,Q=>t(59,Ie=Q));let Sn=Ce.state.graphIsOpened$;D(i,Sn,Q=>t(153,de=Q));let $i=Ce.ui.playerSize;D(i,$i,Q=>t(34,C=Q));let dn=Ce.ui.is3DVideo;D(i,dn,Q=>t(50,h=Q));let wi=Ce.ui.icon3DVideoVisible;D(i,wi,Q=>t(54,Ae=Q));let en=Ce.ui.rotateAlpha;D(i,en,Q=>t(35,T=Q));let zt=Ce.state.isInteractive,On=Ce.state.isInteractiveTime$;D(i,On,Q=>t(150,E=Q));let qi=Ce.state.isInteractiveExpectation$;D(i,qi,Q=>t(156,ce=Q));let Ui=Ce.state.hasInteractiveBranches,zi=Ce.ui.touched;D(i,zi,Q=>t(154,X=Q));let gi=Ce.ui.modals.hotKeyMap.data;D(i,gi,Q=>t(176,c=Q));let Pi=Ce.ui.modals.hotKeyMap.show;D(i,Pi,Q=>t(63,$=Q));let tn=Ce.ui.overlayContainer$,nn=Ce.ui.controls.interactiveTimeIndicator;D(i,nn,Q=>t(177,g=Q));let ki=Ce.state.showInteractiveTimeIndicator,Ci=Ce.ui.contextMenu.position$;D(i,Ci,Q=>t(62,We=Q));let li=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Wt}=Bn();D(i,Wt,Q=>t(148,F=Q));let Dt,Ei,Ai,on,at,Mi,ai;gi.set(Ed());let Li,Vi,je=Oe(!1);D(i,je,Q=>t(51,k=Q));let Fn,rn=Oe(!1);D(i,rn,Q=>t(155,oe=Q));let Tn=Oe(),mn=Oe(!1);D(i,mn,Q=>t(151,U=Q));let Wi=!1,Ki=!1,xi=!1,pn=!(Se&&!xe.controls.showOnStartupAtAutoplay),fi,In,Pn,En,_n,hn=!1,An,gn=!1,{toggle:Hn}=Wt,Ri=!1,sn=null,ti;qt==null||qt.setContext(Gr());let to=()=>{Se&&!zt&&xe.controls.showOnStartupAtAutoplay&&ui(xe.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:to});let io=()=>{window.clearTimeout(at),rn.set(!1)},qn=()=>{window.clearTimeout(Mi),Tn.set(null)},ui=Q=>{io(),rn.set(!0),at=window.setTimeout(()=>rn.set(!1),Q);let Et=Q-100;Fn=window.setTimeout(()=>{k&&je.set(!1)},Et>0?Et:Q)},ln=(Q,Et)=>{qn(),Tn.set(Et),Mi=window.setTimeout(()=>Tn.set(null),Q)},jn=dn.subscribe(Q=>{wi.set(Q),Q&&(window.clearTimeout(ai),ai=window.setTimeout(()=>wi.set(!1),xe.controls.hide360IconTimeout))}),Un=async()=>{var Et,Yi,Di,ro;let Q=Mo();if(Q){let yn=Xr(),so=Gn();Q=yn===so||yn===jt}if(Q){ui(xe.controls.hideTimeoutFullscreen);try{await(qt==null?void 0:qt.remove())}catch(yn){Pt({message:String(yn)})}}pi.set(Q),Ce.getAdmanWrapper().setFullscreen(Q),S?(Yi=(Et=Ce.callbacks)==null?void 0:Et.onFullscreenEnter)==null||Yi.call(Et):(ro=(Di=Ce.callbacks)==null?void 0:Di.onFullscreenExit)==null||ro.call(Di)},no=Q=>{let Et=Q;$i.set({width:Et.target.width,height:Et.target.height})};Vt(()=>{var Et;return Bs(Un),xe.features.annotationsInside&&(si==null||si.init(Dt)),rr(qt)&&(qt==null||qt.assignPlayerContainer(Dt),qt==null||qt.registryExternalEventHandlers({resize:no})),Je&&((Et=it.parentElement)==null||Et.insertBefore(Je,it.nextSibling)),()=>{window.clearTimeout(at),window.clearTimeout(Fn),window.clearTimeout(Mi),window.clearTimeout(ai),jn(),qt==null||qt.dispose(),Ns(Un)}});let Gn=()=>{let Q=xe.features.fullscreenInternalTargetPlayerContainer||!Ht?Dt:Ht,Et=Q.getRootNode(),Yi=Et instanceof ShadowRoot?Et.host:Et,Di=Ze instanceof HTMLElement&&Ze.contains(Yi);return xe.allowChangingFullscreenTarget&&Ze&&Di?Ze:Q},Yn=async()=>{Mo()?(await Rs(document),Pt({message:"exit fullscreen"})):(Pt({message:"request fullscreen"}),await Vs(Gn()))},bn=()=>{li(),_i.set(!1)},zn=Q=>{_i.set(!0),Ci.set({left:Q.clientX,top:Q.clientY})};function vn(){mn.set(!0),zt||ui(xe.controls.hideTimeoutCursor)}function oo(){zt||(je.set(!0),ui(xe.controls.hideTimeoutCursor))}function ie(){mn.set(!1),t(135,Ki=!1),t(134,Wi=!1),Ri=!1,Ce.actions.internal.releaseCamera()}function ht(Q){if(g&&ki){let Et=Q.currentTarget,Yi=cf(Et),Di=t_(Et),ro=Q.pageX-Di,yn=Q.pageY-Yi,{left:so,bottom:Qo,right:_o}=g,dr=_o-so;return ro>=so-dr&&yn<=Qo+dr}}function ji(Q){if(Dt){let Et=cf(Q.currentTarget),Yi=C.height,Di=Q.pageY-Et;if(ht(Q)){t(135,Ki=!1);return}Di<40?t(135,Ki=!0):Di>Yi-40?t(134,Wi=!0):(t(135,Ki=!1),u||t(134,Wi=!1))}}function Bi(Q){ji(Q),fi||ui(xe.controls.hideTimeoutCursor),h&&Ri&&sn&&Ce.actions.internal.moveCameraFocusPX(sn.clientX-Q.clientX,sn.clientY-Q.clientY,Q.timeStamp-sn.timeStamp),sn=Q}let te=Q=>{Q.button===0&&(Ri=!0,Ce.actions.internal.holdCamera()),ui(xe.controls.hideTimeoutCursor)},Ni=Q=>{Q.button===0&&(sn=Q,Ri=!1,Ce.actions.internal.releaseCamera()),ui(xe.controls.hideTimeoutCursor)},Ho=()=>{e_&&(Pt({message:"double click on video"}),Yn(),ui(xe.controls.hideTimeoutCursor))},Co=()=>{if(n||u){bn();return}if(!(m&&!Ui)){if(gn)return Hn();if(ti==null||ti.focus(),!Ke){ni(),ui(xe.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),ui(xe.controls.hideTimeoutCursor)}},So=Q=>{bn(),zi.set(!0),ui(xe.controls.hideTimeout),Q&&ln(xe.controls.hideHotKeyHelpers,Q)},fo=()=>{var Q,Et;bn(),(Q=Ce.callbacks)!=null&&Q.onOpenHotKeyMap?(Et=Ce.callbacks)==null||Et.onOpenHotKeyMap(c):Pi.update(Yi=>!Yi)},mo=()=>{if(n||u){bn();return}},fr=()=>{zi.set(!0)},Gi=Ce.ui.contextMenu.openedByBtnKeyboard$;D(i,Gi,Q=>t(143,a=Q));let po=Ce.ui.contextMenu.btnRef$;D(i,po,Q=>t(142,s=Q));let Qn,an=Ce.ui.contextMenu.openedByHotKey$;D(i,an,Q=>t(141,r=Q));let To=Ce.ui.contextMenu.lastActiveElem$;D(i,To,Q=>t(140,o=Q));function qo(Q){ve[Q?"unshift":"push"](()=>{it=Q,t(0,it)})}function Uo(Q){Ei=Q,t(41,Ei)}function zo(Q){Ai=Q,t(42,Ai)}let Wo=()=>ti==null?void 0:ti.focus();function Ko(Q){on=Q,t(29,on)}let xo=()=>ti==null?void 0:ti.focus();function Mn(Q){Qn=Q,t(32,Qn)}function jo(Q){ve[Q?"unshift":"push"](()=>{ti=Q,t(49,ti)})}function Go(Q){ve[Q?"unshift":"push"](()=>{Vi=Q,t(30,Vi)})}function Yo(Q){ve[Q?"unshift":"push"](()=>{Dt=Q,t(40,Dt)})}return i.$$set=Q=>{"store"in Q&&t(127,Ce=Q.store),"uiConfig"in Q&&t(1,xe=Q.uiConfig),"title"in Q&&t(2,rt=Q.title),"thumbUrl"in Q&&t(3,lt=Q.thumbUrl),"videoContainer"in Q&&t(0,it=Q.videoContainer),"interactiveContainer"in Q&&t(128,Je=Q.interactiveContainer),"live"in Q&&t(4,fe=Q.live),"autoplay"in Q&&t(5,Se=Q.autoplay),"canRewindLive"in Q&&t(6,$e=Q.canRewindLive),"showAds"in Q&&t(7,Ne=Q.showAds),"adsSlotId"in Q&&t(8,et=Q.adsSlotId),"adsParams"in Q&&t(9,Fe=Q.adsParams),"adsPreviewParam"in Q&&t(10,ut=Q.adsPreviewParam),"duration"in Q&&t(11,ft=Q.duration),"logoClickable"in Q&&t(12,he=Q.logoClickable),"logoHidden"in Q&&t(13,dt=Q.logoHidden),"logoTargetUrl"in Q&&t(14,vt=Q.logoTargetUrl),"showNextPrevButtons"in Q&&t(15,yt=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(16,Qe=Q.nextButtonActive),"prevButtonActive"in Q&&t(17,Tt=Q.prevButtonActive),"endScreenVideoTitle"in Q&&t(18,At=Q.endScreenVideoTitle),"endScreenVideoThumb"in Q&&t(19,ii=Q.endScreenVideoThumb),"isOneVideoPlaylist"in Q&&t(20,Ot=Q.isOneVideoPlaylist),"supportLink"in Q&&t(21,Ft=Q.supportLink),"shadowRootContainer"in Q&&t(129,jt=Q.shadowRootContainer),"outerContainerRef"in Q&&t(130,Ht=Q.outerContainerRef),"playerStarted"in Q&&t(22,Ke=Q.playerStarted),"fullScreenTarget"in Q&&t(131,Ze=Q.fullScreenTarget),"showMiniTimer"in Q&&t(132,Ct=Q.showMiniTimer),"showEndScreen"in Q&&t(133,pe=Q.showEndScreen),"playNextVideo"in Q&&t(23,Gt=Q.playNextVideo),"playPrevVideo"in Q&&t(24,It=Q.playPrevVideo),"repeatPlaylist"in Q&&t(25,$t=Q.repeatPlaylist),"seekToInteractive"in Q&&t(26,Rt=Q.seekToInteractive),"playPrevChapter"in Q&&t(27,Ut=Q.playPrevChapter),"firstStart"in Q&&t(28,ni=Q.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[5]&24&&t(43,Li=(q==="video"&&P||q==="ads"&&x==="inactive")&&!W),i.$$.dirty[0]&1073741824&&tn.set(Vi),i.$$.dirty[4]&8192|i.$$.dirty[5]&4&&(t(136,xi=pn&&z!==N8.PLAYING),pn||t(137,pn=!0)),i.$$.dirty[4]&69213184|i.$$.dirty[5]&2&&t(138,fi=E&&!u&&!(Wi||Ki)&&!(xi&&!ce)),i.$$.dirty[1]&448|i.$$.dirty[4]&35672064|i.$$.dirty[5]&1&&bi.set((xi||u||v||K||oe)&&!fi&&(q==="video"||q==="ads")&&!W),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&1073742080&&t(44,In=xe.features.thumbTimer&&Ct&&q==="video"&&!H&&!W&&!zt&&(xe.hideThumbTimerAfterTouch&&!X||!xe.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&545259520&&t(45,Pn=q==="video"&&!de&&S),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&272630272&&t(31,En=pe&&(Ne&&ne||!Ne)&&m&&!W),i.$$.dirty[1]&33|i.$$.dirty[4]&201326592&&t(46,_n=U&&!(H||En)&&!E),i.$$.dirty[0]&2|i.$$.dirty[4]&100696064&&(!v&&hn&&!E&&ui(xe.controls.hideTimeoutCursor),t(139,hn=v)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(47,An=it&&T%180?C.height/C.width:1),i.$$.dirty[4]&16777216&&t(48,gn=F!==null),i.$$.dirty[0]&536870912|i.$$.dirty[4]&3145728&&co(on,u,l),i.$$.dirty[1]&6|i.$$.dirty[4]&524288&&co(Qn,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&262144){let Q=s;Q&&Ir(Q,n,Gi)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&131072&&co(Qn,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&65536){let Q=o;Q&&Ud(Q,n,an)}},[it,xe,rt,lt,fe,Se,$e,Ne,et,Fe,ut,ft,he,dt,vt,yt,Qe,Tt,At,ii,Ot,Ft,Ke,Gt,It,$t,Rt,Ut,ni,on,Vi,En,Qn,n,C,T,H,W,q,K,Dt,Ei,Ai,Li,In,Pn,_n,An,gn,ti,h,k,J,le,Ae,ee,ge,Ee,Te,Ie,ot,Pe,We,$,_e,ei,Yt,un,Lt,Oi,Xi,pi,bi,De,tt,wt,_i,vi,Ji,Ii,cn,ci,Fi,Hi,Nt,yi,Cn,hi,fn,Sn,$i,dn,wi,en,zt,On,qi,zi,gi,Pi,nn,Ci,Wt,je,rn,Tn,mn,Hn,Yn,bn,zn,vn,oo,ie,Bi,te,Ni,Ho,Co,So,fo,mo,fr,Gi,po,an,To,Ce,Je,jt,Ht,Ze,Ct,pe,Wi,Ki,xi,pn,fi,hn,o,r,s,a,l,u,m,S,F,v,E,U,ne,de,X,oe,ce,z,x,P,qo,Uo,zo,Wo,Ko,xo,Mn,jo,Go,Yo]}var ff=class extends N{constructor(e){super(),O(this,e,H8,F8,B,{store:127,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:128,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:129,outerContainerRef:130,playerStarted:22,fullScreenTarget:131,showMiniTimer:132,showEndScreen:133,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,playPrevChapter:27,firstStart:28},D8,[-1,-1,-1,-1,-1,-1,-1])}},i_=ff;import{PlaybackState as x8}from"@vkontakte/videoplayer-core";import{clientChecker as Dl,noop as Ol}from"@vkontakte/videoplayer-shared";function q8(i){be(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function n_(i){let e,t,n,o,r,s,a,l,u,c,m,h,C,g,S,k=j("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",F;return{c(){e=I("div"),n=Y(),o=I("div"),r=I("div"),s=I("div"),l=Y(),u=I("div"),m=Y(),h=I("div"),g=Y(),S=I("p"),F=qe(k),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(s,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",C="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(S,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(T,v){w(T,e,v),w(T,n,v),w(T,o,v),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,S),_(S,F)},p(T,v){v&1&&t!==(t="semicircle "+T[0]+" svelte-nhq2ld")&&f(e,"class",t),v&1&&a!==(a="triangle "+T[0]+" svelte-nhq2ld")&&f(s,"class",a),v&1&&c!==(c="triangle "+T[0]+" svelte-nhq2ld")&&f(u,"class",c),v&1&&C!==(C="triangle "+T[0]+" svelte-nhq2ld")&&f(h,"class",C),v&4&&k!==(k=j("doubletap_seek_step",{seconds:T[2].toFixed(0)})+"")&&Ge(F,k)},d(T){T&&(y(e),y(n),y(o))}}}function U8(i){let e,t,n,o,r=i[1]&&n_(i);return{c(){e=I("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(s,a){w(s,e,a),r&&r.m(e,null),n||(o=ke(e,"click",gt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=n_(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+s[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:me,o:me,d(s){s&&y(e),r&&r.d(),n=!1,o()}}}function z8(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:s}=e,a=!1,l=0,u=0,c=o,m=()=>()=>{u+=1,t(2,c=o*(u-1)),u===1?r():(t(1,a=!0),s()),window.clearTimeout(l),l=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Zn(()=>{window.clearTimeout(l)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,r=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,s=h.handleSecondClick)},[n,a,c,m,o,r,s]}var df=class extends N{constructor(e){super(),O(this,e,z8,U8,B,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},q8)}},mf=df;function W8(i,e,t){let n,{playNextVideo:o}=e,s=nt().ui.autoplayNextEnabled$;return D(i,s,a=>t(2,n=a)),Vt(()=>{n&&o()}),i.$$set=a=>{"playNextVideo"in a&&t(1,o=a.playNextVideo)},[s,o]}var pf=class extends N{constructor(e){super(),O(this,e,W8,null,B,{playNextVideo:1})}},o_=pf;var{window:K8}=Xo;function j8(i){be(i,"svelte-dtyj47",".player-wrapper.svelte-dtyj47{position:absolute;width:100%;height:100%}.player-wrapper.svelte-dtyj47 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-dtyj47{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-dtyj47,.video-container.svelte-dtyj47,.ads-container.svelte-dtyj47{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-dtyj47{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-dtyj47{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-dtyj47{transition:none}.ads-container.svelte-dtyj47{z-index:var(--ads-container-z-index);background:var(--black)}.settings-mobile.svelte-dtyj47{position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}")}function r_(i){let e,t,n,o=i[47]&&s_(i),r=i[48]&&l_(i);return{c(){o&&o.c(),e=Y(),r&&r.c(),t=Xe()},m(s,a){o&&o.m(s,a),w(s,e,a),r&&r.m(s,a),w(s,t,a),n=!0},p(s,a){s[47]?o?(o.p(s,a),a[1]&65536&&d(o,1)):(o=s_(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ae(),p(o,1,1,()=>{o=null}),ue()),s[48]?r?(r.p(s,a),a[1]&131072&&d(r,1)):(r=l_(s),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(ae(),p(r,1,1,()=>{r=null}),ue())},i(s){n||(d(o),d(r),n=!0)},o(s){p(o),p(r),n=!1},d(s){s&&(y(e),y(t)),o&&o.d(s),r&&r.d(s)}}}function s_(i){let e,t;return e=new mf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[136]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function l_(i){let e,t;return e=new mf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[137]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function a_(i){var n;let e,t;return e=new Ml({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){R(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&4&&(s.thumbUrl=o[2]),r[0]&8&&(s.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){V(e,o)}}}function u_(i){let e,t;return e=new Fr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function c_(i){let e,t;return e=new Fr({props:{kind:"record",thumbUrl:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function f_(i){let e,t,n;return t=new Ds({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),G(e,"hidden",i[37]!=="ads")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let s={};r[0]&128&&(s.adsSlotId=o[7]),r[0]&256&&(s.adsParams=o[8]),r[0]&512&&(s.adsPreviewParam=o[9]),r[0]&1024&&(s.duration=o[10]),t.$set(s),(!n||r[1]&64)&&G(e,"hidden",o[37]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function d_(i){let e,t;return e=new o_({props:{playNextVideo:i[22]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function m_(i){let e,t;return e=new Tl({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function p_(i){let e,t,n;return t=new Is({props:{"aria-label":j("video360")}}),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){w(o,e,r),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),V(t)}}}function __(i){let e,t;return e=new Pl({props:{thumbUrl:i[2],chromecastDeviceName:i[55]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function h_(i){let e,t;return e=new Il({props:{shifted:i[31],captions:i[57],position:i[33],playerSize:i[34],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&1&&(r.shifted=n[31]),o[1]&67108864&&(r.captions=n[57]),o[1]&4&&(r.position=n[33]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function g_(i){let e,t,n,o,r;return t=new El({}),{c(){e=I("div"),R(t.$$.fragment)},m(s,a){w(s,e,a),L(t,e,null),n=!0,o||(r=ke(e,"click",gt(i[104])),o=!0)},p:me,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),V(t),o=!1,r()}}}function b_(i){let e,t,n,o;function r(l){i[138](l)}function s(l){i[139](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord"||i[37]==="ads",showControls:i[31],bottomNoSmooth:i[49],isAds:i[37]==="ads",canRewindLive:i[5]&&i[58]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],customFullscreenSupported:i[43],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[101],seekToInteractive:i[25],playPrevChapter:i[26],onDisabledPlayPrevChapterClick:i[107],onDisabledSeekToInteractiveClick:i[108]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Sl({props:a}),ve.push(()=>ze(e,"playerControlsWrapperRef",r)),ve.push(()=>ze(e,"playerControlsRef",s)),{c(){R(e.$$.fragment)},m(l,u){L(e,l,u),o=!0},p(l,u){let c={};u[1]&64&&(c.bottomHidden=l[37]==="thumb"||l[37]==="LiveWaitingStart"||l[37]==="LiveWaitingRecover"||l[37]==="LiveWaitingRecord"||l[37]==="ads"),u[1]&1&&(c.showControls=l[31]),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&32|u[1]&134217728&&(c.canRewindLive=l[5]&&l[58]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&16384&&(c.showNextPrevButtons=l[14]),u[0]&32768&&(c.nextButtonActive=l[15]),u[0]&65536&&(c.prevButtonActive=l[16]),u[0]&524288&&(c.isOneVideoPlaylist=l[19]),u[1]&4096&&(c.customFullscreenSupported=l[43]),u[0]&4194304&&(c.playNextVideo=l[22]),u[0]&8388608&&(c.playPrevVideo=l[23]),u[0]&16777216&&(c.repeatPlaylist=l[24]),u[0]&33554432&&(c.seekToInteractive=l[25]),u[0]&67108864&&(c.playPrevChapter=l[26]),!t&&u[1]&512&&(t=!0,c.playerControlsWrapperRef=l[40],Ue(()=>t=!1)),!n&&u[1]&1024&&(n=!0,c.playerControlsRef=l[41],Ue(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){V(e,l)}}}function v_(i){let e,t,n,o;function r(a){i[140](a)}let s={supportLink:i[20],returnFocus:Ol};return i[28]!==void 0&&(s.ref=i[28]),t=new Nl({props:s}),ve.push(()=>ze(t,"ref",r)),{c(){e=I("div"),R(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,l){w(a,e,l),L(t,e,null),o=!0},p(a,l){let u={};l[0]&1048576&&(u.supportLink=a[20]),!n&&l[0]&268435456&&(n=!0,u.ref=a[28],Ue(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&y(e),V(t)}}}function y_(i){let e,t;return e=new Ar({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function w_(i){let e,t;return e=new Ks({}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function k_(i){let e,t,n=i[5]&&i[82]&&!i[52].has("TIMELINE"),o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H;e=new Al({props:{hidden:i[37]!=="thumb"||i[36]||i[93]&&i[4],thumbUrl:i[2],startVideo:i[27]}});let U=n&&r_(i),W=i[37]==="LiveWaitingStart"&&a_(i),ne=i[37]==="LiveWaitingRecover"&&u_(i),de=i[37]==="LiveWaitingRecord"&&c_(i),q=i[6]&&i[21]&&f_(i),X=i[45]&&i[17]&&i[18]&&d_(i),oe=i[53]&&m_(i),K=i[54]&&p_(i),ce=i[38]&&__(i),z=i[56].value!=="off"&&h_(i),x=i[36]&&g_(i),P=i[21]&&b_(i),J=i[30]&&v_(i);F=new Fs({props:{isLive:i[59],isHidden:!i[44],isPlaying:i[50],position:i[33],duration:i[32]}});let le=i[42]&&y_(i),Ae=i[60]&&w_(i);return{c(){R(e.$$.fragment),t=Y(),U&&U.c(),o=Y(),W&&W.c(),r=Y(),ne&&ne.c(),s=Y(),de&&de.c(),a=Y(),q&&q.c(),l=Y(),X&&X.c(),u=Y(),oe&&oe.c(),c=Y(),K&&K.c(),m=Y(),ce&&ce.c(),h=Y(),z&&z.c(),C=Y(),x&&x.c(),g=Y(),P&&P.c(),S=Y(),J&&J.c(),k=Y(),R(F.$$.fragment),T=Y(),le&&le.c(),v=Y(),Ae&&Ae.c(),E=Xe()},m(ee,ge){L(e,ee,ge),w(ee,t,ge),U&&U.m(ee,ge),w(ee,o,ge),W&&W.m(ee,ge),w(ee,r,ge),ne&&ne.m(ee,ge),w(ee,s,ge),de&&de.m(ee,ge),w(ee,a,ge),q&&q.m(ee,ge),w(ee,l,ge),X&&X.m(ee,ge),w(ee,u,ge),oe&&oe.m(ee,ge),w(ee,c,ge),K&&K.m(ee,ge),w(ee,m,ge),ce&&ce.m(ee,ge),w(ee,h,ge),z&&z.m(ee,ge),w(ee,C,ge),x&&x.m(ee,ge),w(ee,g,ge),P&&P.m(ee,ge),w(ee,S,ge),J&&J.m(ee,ge),w(ee,k,ge),L(F,ee,ge),w(ee,T,ge),le&&le.m(ee,ge),w(ee,v,ge),Ae&&Ae.m(ee,ge),w(ee,E,ge),H=!0},p(ee,ge){let Ee={};ge[0]&16|ge[1]&96&&(Ee.hidden=ee[37]!=="thumb"||ee[36]||ee[93]&&ee[4]),ge[0]&4&&(Ee.thumbUrl=ee[2]),ge[0]&134217728&&(Ee.startVideo=ee[27]),e.$set(Ee),ge[0]&32|ge[1]&2097152&&(n=ee[5]&&ee[82]&&!ee[52].has("TIMELINE")),n?U?(U.p(ee,ge),ge[0]&32|ge[1]&2097152&&d(U,1)):(U=r_(ee),U.c(),d(U,1),U.m(o.parentNode,o)):U&&(ae(),p(U,1,1,()=>{U=null}),ue()),ee[37]==="LiveWaitingStart"?W?(W.p(ee,ge),ge[1]&64&&d(W,1)):(W=a_(ee),W.c(),d(W,1),W.m(r.parentNode,r)):W&&(ae(),p(W,1,1,()=>{W=null}),ue()),ee[37]==="LiveWaitingRecover"?ne?(ne.p(ee,ge),ge[1]&64&&d(ne,1)):(ne=u_(ee),ne.c(),d(ne,1),ne.m(s.parentNode,s)):ne&&(ae(),p(ne,1,1,()=>{ne=null}),ue()),ee[37]==="LiveWaitingRecord"?de?(de.p(ee,ge),ge[1]&64&&d(de,1)):(de=c_(ee),de.c(),d(de,1),de.m(a.parentNode,a)):de&&(ae(),p(de,1,1,()=>{de=null}),ue()),ee[6]&&ee[21]?q?(q.p(ee,ge),ge[0]&2097216&&d(q,1)):(q=f_(ee),q.c(),d(q,1),q.m(l.parentNode,l)):q&&(ae(),p(q,1,1,()=>{q=null}),ue()),ee[45]&&ee[17]&&ee[18]?X?(X.p(ee,ge),ge[0]&393216|ge[1]&16384&&d(X,1)):(X=d_(ee),X.c(),d(X,1),X.m(u.parentNode,u)):X&&(ae(),p(X,1,1,()=>{X=null}),ue()),ee[53]?oe?ge[1]&4194304&&d(oe,1):(oe=m_(ee),oe.c(),d(oe,1),oe.m(c.parentNode,c)):oe&&(ae(),p(oe,1,1,()=>{oe=null}),ue()),ee[54]?K?ge[1]&8388608&&d(K,1):(K=p_(ee),K.c(),d(K,1),K.m(m.parentNode,m)):K&&(ae(),p(K,1,1,()=>{K=null}),ue()),ee[38]?ce?(ce.p(ee,ge),ge[1]&128&&d(ce,1)):(ce=__(ee),ce.c(),d(ce,1),ce.m(h.parentNode,h)):ce&&(ae(),p(ce,1,1,()=>{ce=null}),ue()),ee[56].value!=="off"?z?(z.p(ee,ge),ge[1]&33554432&&d(z,1)):(z=h_(ee),z.c(),d(z,1),z.m(C.parentNode,C)):z&&(ae(),p(z,1,1,()=>{z=null}),ue()),ee[36]?x?(x.p(ee,ge),ge[1]&32&&d(x,1)):(x=g_(ee),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(ae(),p(x,1,1,()=>{x=null}),ue()),ee[21]?P?(P.p(ee,ge),ge[0]&2097152&&d(P,1)):(P=b_(ee),P.c(),d(P,1),P.m(S.parentNode,S)):P&&(ae(),p(P,1,1,()=>{P=null}),ue()),ee[30]?J?(J.p(ee,ge),ge[0]&1073741824&&d(J,1)):(J=v_(ee),J.c(),d(J,1),J.m(k.parentNode,k)):J&&(ae(),p(J,1,1,()=>{J=null}),ue());let Te={};ge[1]&268435456&&(Te.isLive=ee[59]),ge[1]&8192&&(Te.isHidden=!ee[44]),ge[1]&524288&&(Te.isPlaying=ee[50]),ge[1]&4&&(Te.position=ee[33]),ge[1]&2&&(Te.duration=ee[32]),F.$set(Te),ee[42]?le?ge[1]&2048&&d(le,1):(le=y_(ee),le.c(),d(le,1),le.m(v.parentNode,v)):le&&(ae(),p(le,1,1,()=>{le=null}),ue()),ee[60]?Ae?ge[1]&536870912&&d(Ae,1):(Ae=w_(ee),Ae.c(),d(Ae,1),Ae.m(E.parentNode,E)):Ae&&(ae(),p(Ae,1,1,()=>{Ae=null}),ue())},i(ee){H||(d(e.$$.fragment,ee),d(U),d(W),d(ne),d(de),d(q),d(X),d(oe),d(K),d(ce),d(z),d(x),d(P),d(J),d(F.$$.fragment,ee),d(le),d(Ae),H=!0)},o(ee){p(e.$$.fragment,ee),p(U),p(W),p(ne),p(de),p(q),p(X),p(oe),p(K),p(ce),p(z),p(x),p(P),p(J),p(F.$$.fragment,ee),p(le),p(Ae),H=!1},d(ee){ee&&(y(t),y(o),y(r),y(s),y(a),y(l),y(u),y(c),y(m),y(h),y(C),y(g),y(S),y(k),y(T),y(v),y(E)),V(e,ee),U&&U.d(ee),W&&W.d(ee),ne&&ne.d(ee),de&&de.d(ee),q&&q.d(ee),X&&X.d(ee),oe&&oe.d(ee),K&&K.d(ee),ce&&ce.d(ee),z&&z.d(ee),x&&x.d(ee),P&&P.d(ee),J&&J.d(ee),V(F,ee),le&&le.d(ee),Ae&&Ae.d(ee)}}}function G8(i){let e,t,n,o,r,s=i[51],a,l,u,c,m,h,C=k_(i);return{c(){e=I("div"),t=I("div"),n=I("div"),r=Y(),C.c(),a=Y(),l=I("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[50]),G(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),G(t,"hidden",i[37]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=j("aria_label_video_player")),f(e,"tabindex","-1")},m(g,S){w(g,e,S),_(e,t),_(t,n),i[135](n),_(e,r),C.m(e,null),_(e,a),_(e,l),i[141](l),i[142](e),c=!0,m||(h=[ke(K8,"blur",i[102]),ke(t,"click",ri(i[103])),ke(e,"click",i[105],!0),ke(e,"focusin",i[106],!0)],m=!0)},p(g,S){(!c||S[1]&32784&&o!==(o=`transform: rotate(${g[35]}deg) scale(${g[46]})`))&&f(n,"style",o),(!c||S[1]&524288)&&f(n,"data-is-playing",g[50]),(!c||S[0]&2)&&G(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||S[1]&64)&&G(t,"hidden",g[37]!=="video"),S[1]&1048576&&B(s,s=g[51])?(ae(),p(C,1,1,me),ue(),C=k_(g),C.c(),d(C,1),C.m(e,a)):C.p(g,S)},i(g){c||(d(C),c=!0)},o(g){p(C),c=!1},d(g){g&&y(e),i[135](null),C.d(g),i[141](null),i[142](null),m=!1,ct(h)}}}function Y8(i,e,t){var vn,oo;let n,o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,{store:Te}=e,{uiConfig:Ie}=e,{thumbUrl:ot}=e,{videoContainer:Pe}=e,{interactiveContainer:We}=e,{live:$}=e,{autoplay:_e}=e,{canRewindLive:Ce}=e,{showAds:xe}=e,{adsSlotId:rt=void 0}=e,{adsParams:lt=void 0}=e,{adsPreviewParam:it=void 0}=e,{duration:Je=void 0}=e,{logoClickable:fe}=e,{logoHidden:Se}=e,{logoTargetUrl:$e=""}=e,{showNextPrevButtons:Ne=!1}=e,{nextButtonActive:et=!1}=e,{prevButtonActive:Fe=!1}=e,{endScreenVideoTitle:ut=void 0}=e,{endScreenVideoThumb:ft=void 0}=e,{isOneVideoPlaylist:he=!1}=e,{supportLink:dt}=e,{shadowRootContainer:vt=void 0}=e,{outerContainerRef:yt=void 0}=e,{showMiniTimer:Qe=!1}=e,{fullScreenTarget:Tt=void 0}=e,{playerStarted:At=!1}=e,{showEndScreen:ii=!0}=e,{playNextVideo:Ot=Ol}=e,{playPrevVideo:Ft=Ol}=e,{repeatPlaylist:jt=Ol}=e,{seekToInteractive:Ht}=e,{playPrevChapter:Ke}=e,{firstStart:Ze}=e,{seekTime:Ct}=e,pe=Te.getLogger().createComponentLog("Root component"),Gt=Te.interfaceLanguage$;D(i,Gt,ie=>t(51,ce=ie));let It=Te.state.playbackState$;D(i,It,ie=>t(132,q=ie));let $t=Te.ads.playbackState;D(i,$t,ie=>t(133,X=ie));let Rt=Te.state.positionWithScrubbing$;D(i,Rt,ie=>t(33,l=ie));let Ut=Te.state.duration$;D(i,Ut,ie=>t(32,a=ie));let ni=Te.playerPhase;D(i,ni,ie=>t(37,U=ie));let Pt=Te.ui.isFullscreen;D(i,Pt,ie=>t(148,c=ie));let ei=Te.ui.controlsVisible;D(i,ei,ie=>t(31,r=ie));let Yt=Te.ui.interactiveHideMobileControls;D(i,Yt,ie=>t(124,g=ie));let un=Te.ui.settingsMenuVisible;D(i,un,ie=>t(30,o=ie));let Lt=Te.ui.settingsMenuOpenedByKeyboard;D(i,Lt,ie=>t(122,n=ie));let Oi=Te.ui.scrubbingInProgress;D(i,Oi,ie=>t(125,k=ie));let Xi=Te.ui.debugPanelVisible;D(i,Xi,ie=>t(60,Ee=ie));let pi=Te.state.isLoaderVisible;D(i,pi,ie=>t(134,oe=ie));let bi=Te.state.isEnded$;D(i,bi,ie=>t(127,v=ie));let De=Te.state.chromecastConnected$;D(i,De,ie=>t(38,W=ie));let tt=Te.state.chromecastDeviceName$;D(i,tt,ie=>t(55,J=ie));let wt=Te.ads.postrollPassed;D(i,wt,ie=>t(128,E=ie));let _i=Te.ui.mobileUnmuteButtonExpanded,vi=Te.ui.mobileUnmuteButtonVisible,Ji=Te.state.isLive$;D(i,Ji,ie=>t(59,ge=ie));let Ii=Te.state.isPlaying$;D(i,Ii,ie=>t(50,K=ie));let cn=Te.state.isActiveLive$;D(i,cn,ie=>t(123,u=ie));let ci=Te.state.isRewindableLive$,Fi=Te.state.crashed$;D(i,Fi,ie=>t(36,T=ie));let Hi=Te.webApi.annotationsApi,Nt=Te.webApi.pictureInPictureApi,yi=Te.state.videoSize$;D(i,yi,ie=>t(149,h=ie));let si=Te.state.currentSubtitle$;D(i,si,ie=>t(56,le=ie));let qt=Te.state.currentSubtitleCaptions$;D(i,qt,ie=>t(57,Ae=ie));let Cn=Te.state.duration$;D(i,Cn,ie=>t(58,ee=ie));let hi=Te.state.graphIsOpened$;D(i,hi,ie=>t(131,de=ie));let fn=Te.ui.playerSize;D(i,fn,ie=>t(34,m=ie));let Sn=Te.ui.is3DVideo;D(i,Sn,ie=>t(53,x=ie));let $i=Te.ui.icon3DVideoVisible;D(i,$i,ie=>t(54,P=ie));let dn=Te.ui.rotateAlpha;D(i,dn,ie=>t(35,S=ie));let wi=Te.state.isInteractive,en=Te.state.isInteractiveTime$;D(i,en,ie=>t(126,F=ie));let zt=Te.state.isInteractiveExpectation$;D(i,zt,ie=>t(130,ne=ie));let On=Te.state.hasInteractiveBranches,qi=Te.ui.controls.disabledControls$;D(i,qi,ie=>t(52,z=ie));let Ui=Te.ui.touched;D(i,Ui,ie=>t(129,H=ie));let zi=Te.ui.overlayContainer$,gi=Te.state.loadedMetadata$;D(i,gi,ie=>t(147,s=ie));let Pi=Te.actions.internal.closeSettingsMenu,tn=(vn=Te.callbacks)==null?void 0:vn.onDisabledPlayPrevChapterClick,nn=(oo=Te.callbacks)==null?void 0:oo.onDisabledSeekToInteractiveClick,ki,Ci,li,Wt,Dt,Ei,Ai,on,at,Mi=Oe(!1);D(i,Mi,ie=>t(49,C=ie));let ai,Li=!1,Vi,je=!1,Fn,rn=!0,Tn,mn,Wi=!1,Ki;Nt==null||Nt.setContext(Gr());let xi=ie=>{clearTimeout(Ei),ie&&(vi.set(!0),_i.set(!0),Ei=window.setTimeout(()=>{_i.set(!1)},Ie.controls.collapseMobileUnmute),wi||fi(Ie.controls.hideTimeoutMobile))};Te.setUiCallbacks({onStarted:xi});let pn=()=>{window.clearTimeout(Dt),t(117,Li=!1),g&&Yt.set(!1)},fi=ie=>{pn(),t(117,Li=!0),Dt=window.setTimeout(()=>t(117,Li=!1),ie);let ht=ie-100;ai=window.setTimeout(()=>{C&&Mi.set(!1)},ht>0?ht:ie)},In=Sn.subscribe(ie=>{$i.set(ie),ie&&(window.clearTimeout(Ai),Ai=window.setTimeout(()=>$i.set(!1),Ie.controls.hide360IconTimeout))}),Pn=async()=>{var ht,ji,Bi,te;let ie=Mo();if(ie){let Ni=Xr(),Ho=gn(),Co=Dl.isSamsungBrowser&&Ni===vt;ie=Ni===Ho||Co}if(ie){fi(Ie.controls.hideTimeoutFullscreen);try{await(Nt==null?void 0:Nt.remove())}catch(Ni){pe({message:String(Ni)})}try{let Ni=h!=null&&h.width&&(h!=null&&h.height)?h:m;await Id(Ni)}catch(Ni){pe({message:String(Ni)})}}Pt.set(ie),Te.getAdmanWrapper().setFullscreen(ie),c?(ji=(ht=Te.callbacks)==null?void 0:ht.onFullscreenEnter)==null||ji.call(ht):(te=(Bi=Te.callbacks)==null?void 0:Bi.onFullscreenExit)==null||te.call(Bi)},En=ie=>{let ht=ie;fn.set({width:ht.target.width,height:ht.target.height})};Vt(()=>{var ht;return Bs(Pn),Ie.features.annotationsInside&&(Hi==null||Hi.init(ki)),rr(Nt)&&(Nt==null||Nt.assignPlayerContainer(ki),Nt==null||Nt.registryExternalEventHandlers({resize:En})),t(43,rn=!Dl.isIphoneOrOldIpad),We&&((ht=Pe.parentElement)==null||ht.insertBefore(We,Pe.nextSibling)),()=>{window.clearTimeout(Dt),window.clearTimeout(ai),window.clearTimeout(Ei),window.clearTimeout(Ai),In(),Nt==null||Nt.dispose(),Ns(Pn)}});let _n=!0,hn=!0,An=ie=>{let ht=l+(ie==="forward"?1:-1)*Ie.controls.seekStepMobile/1e3;ht<0?(t(47,_n=!1),ht=0):ht>=a&&(t(48,hn=!1),ht=a),t(119,je=!0),Ct(ht)},gn=()=>{let ie=Dl.isIOS||Ie.features.fullscreenInternalTargetPlayerContainer||!yt?ki:yt,ht=ie.getRootNode(),ji=ht instanceof ShadowRoot?ht.host:ht,Bi=Tt instanceof HTMLElement&&Tt.contains(ji);return Ie.allowChangingFullscreenTarget&&Tt&&Bi?Tt:ie},Hn=async()=>{if(Mo())await Rs(document),pe({message:"exit fullscreen"});else{if(pe({message:"request fullscreen"}),Dl.isIOS&&!s)return;await Vs(gn())}},Ri=()=>{Pi()},sn=()=>{if(o){Ri();return}if(!At){Ze(),fi(Ie.controls.hideTimeoutCursor);return}t(119,je=!1),r?pn():fi(Ie.controls.hideTimeoutMobile)},ti=()=>{if(o){Ri();return}},to=()=>{Ui.set(!0)},io=()=>{wi||(Mi.set(!0),fi(Ie.controls.hideTimeoutCursor))},qn=ie=>{tn&&(tn(ie),fi(Ie.controls.hideTimeoutMobile))},ui=ie=>{nn&&(nn(ie),fi(Ie.controls.hideTimeoutMobile))};function ln(ie){ve[ie?"unshift":"push"](()=>{Pe=ie,t(0,Pe)})}let jn=()=>An("backward"),Un=()=>An("forward");function no(ie){Ci=ie,t(40,Ci)}function Gn(ie){li=ie,t(41,li)}function Yn(ie){Wt=ie,t(28,Wt)}function bn(ie){ve[ie?"unshift":"push"](()=>{at=ie,t(29,at)})}function zn(ie){ve[ie?"unshift":"push"](()=>{ki=ie,t(39,ki)})}return i.$$set=ie=>{"store"in ie&&t(109,Te=ie.store),"uiConfig"in ie&&t(1,Ie=ie.uiConfig),"thumbUrl"in ie&&t(2,ot=ie.thumbUrl),"videoContainer"in ie&&t(0,Pe=ie.videoContainer),"interactiveContainer"in ie&&t(110,We=ie.interactiveContainer),"live"in ie&&t(3,$=ie.live),"autoplay"in ie&&t(4,_e=ie.autoplay),"canRewindLive"in ie&&t(5,Ce=ie.canRewindLive),"showAds"in ie&&t(6,xe=ie.showAds),"adsSlotId"in ie&&t(7,rt=ie.adsSlotId),"adsParams"in ie&&t(8,lt=ie.adsParams),"adsPreviewParam"in ie&&t(9,it=ie.adsPreviewParam),"duration"in ie&&t(10,Je=ie.duration),"logoClickable"in ie&&t(11,fe=ie.logoClickable),"logoHidden"in ie&&t(12,Se=ie.logoHidden),"logoTargetUrl"in ie&&t(13,$e=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,Ne=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,et=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,Fe=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ut=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,ft=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,he=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,dt=ie.supportLink),"shadowRootContainer"in ie&&t(111,vt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(112,yt=ie.outerContainerRef),"showMiniTimer"in ie&&t(113,Qe=ie.showMiniTimer),"fullScreenTarget"in ie&&t(114,Tt=ie.fullScreenTarget),"playerStarted"in ie&&t(21,At=ie.playerStarted),"showEndScreen"in ie&&t(115,ii=ie.showEndScreen),"playNextVideo"in ie&&t(22,Ot=ie.playNextVideo),"playPrevVideo"in ie&&t(23,Ft=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,jt=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,Ht=ie.seekToInteractive),"playPrevChapter"in ie&&t(26,Ke=ie.playPrevChapter),"firstStart"in ie&&t(27,Ze=ie.firstStart),"seekTime"in ie&&t(116,Ct=ie.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&96|i.$$.dirty[4]&1536&&t(42,on=(U==="video"&&oe||U==="ads"&&X==="inactive")&&!T),i.$$.dirty[0]&536870912&&zi.set(at),i.$$.dirty[4]&256&&t(118,Vi=q!==x8.PLAYING),i.$$.dirty[3]&50331648|i.$$.dirty[4]&201&&t(120,Fn=de||g||!Li&&(v&&!!On||Vi&&ne)),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&224|i.$$.dirty[3]&251658240|i.$$.dirty[4]&2&&ei.set((Vi||o||k||W||Li&&!je)&&!Fn&&U==="video"&&!T),i.$$.dirty[0]&2|i.$$.dirty[1]&97|i.$$.dirty[3]&1048576|i.$$.dirty[4]&32&&t(44,Tn=Ie.features.thumbTimer&&Qe&&U==="video"&&!r&&!T&&!wi&&(Ie.hideThumbTimerAfterTouch&&!H||!Ie.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&32|i.$$.dirty[3]&4194304|i.$$.dirty[4]&24&&t(45,mn=ii&&(xe&&E||!xe)&&v&&!T),i.$$.dirty[0]&2|i.$$.dirty[3]&268435456|i.$$.dirty[4]&6&&(!k&&Wi&&!F&&fi(Ie.controls.hideTimeoutMobile),t(121,Wi=k)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,Ki=Pe&&S%180?m.height/m.width:1),i.$$.dirty[1]&6|i.$$.dirty[3]&1073741824&&(t(47,_n=l>0),t(48,hn=!u&&l<a)),i.$$.dirty[0]&1342177280|i.$$.dirty[3]&536870912&&co(Wt,o,n)},[Pe,Ie,ot,$,_e,Ce,xe,rt,lt,it,Je,fe,Se,$e,Ne,et,Fe,ut,ft,he,dt,At,Ot,Ft,jt,Ht,Ke,Ze,Wt,at,o,r,a,l,m,S,T,U,W,ki,Ci,li,on,rn,Tn,mn,Ki,_n,hn,C,K,ce,z,x,P,J,le,Ae,ee,ge,Ee,Gt,It,$t,Rt,Ut,ni,Pt,ei,Yt,un,Lt,Oi,Xi,pi,bi,De,tt,wt,Ji,Ii,cn,ci,Fi,yi,si,qt,Cn,hi,fn,Sn,$i,dn,wi,en,zt,qi,Ui,gi,Mi,An,Hn,Ri,sn,ti,to,io,qn,ui,Te,We,vt,yt,Qe,Tt,ii,Ct,Li,Vi,je,Fn,Wi,n,u,g,k,F,v,E,H,ne,de,q,X,oe,ln,jn,Un,no,Gn,Yn,bn,zn]}var _f=class extends N{constructor(e){super(),O(this,e,Y8,G8,B,{store:109,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:110,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:111,outerContainerRef:112,showMiniTimer:113,fullScreenTarget:114,playerStarted:21,showEndScreen:115,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,playPrevChapter:26,firstStart:27,seekTime:116},j8,[-1,-1,-1,-1,-1,-1])}},C_=_f;function $8(i){be(i,"svelte-w727va",`.root.svelte-w727va{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
34
|
+
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function C6(i){let e,t;return{c(){e=P("div"),t=Oe(i[0]),f(e,"class","title svelte-1bcvcf2"),j(e,"hidden",i[1])},m(n,o){k(n,e,o),_(e,t)},p(n,[o]){o&1&&Ke(t,n[0]),o&2&&j(e,"hidden",n[1])},i:de,o:de,d(n){n&&w(e)}}}function S6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var Qc=class extends H{constructor(e){super(),U(this,e,S6,C6,F,{title:0,isHidden:1},k6)}},p0=Qc;function T6(i){he(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function _0(i){let e,t,n,o,r,s,a;return{c(){e=P("div"),t=P("span"),n=Oe(i[0]),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_day_value")}`,s=Y(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){k(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(l,s,u),k(l,a,u)},p(l,u){u&1&&Ke(n,l[0])},d(l){l&&(w(e),w(s),w(a))}}}function h0(i){let e,t,n,o,r,s,a;return{c(){e=P("div"),t=P("span"),n=Oe(i[1]),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_hour_value")}`,s=Y(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){k(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(l,s,u),k(l,a,u)},p(l,u){u&2&&Ke(n,l[1])},d(l){l&&(w(e),w(s),w(a))}}}function g0(i){let e,t,n,o,r,s,a;return{c(){e=P("div"),t=P("span"),n=Oe(i[2]),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_minute_value")}`,s=Y(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(l,u){k(l,e,u),_(e,t),_(t,n),_(e,o),_(e,r),k(l,s,u),k(l,a,u)},p(l,u){u&4&&Ke(n,l[2])},d(l){l&&(w(e),w(s),w(a))}}}function b0(i){let e,t,n,o,r;return{c(){e=P("div"),t=P("span"),n=Oe(i[3]),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(s,a){k(s,e,a),_(e,t),_(t,n),_(e,o),_(e,r)},p(s,a){a&8&&Ke(n,s[3])},d(s){s&&w(e)}}}function I6(i){let e,t,n,o,r=i[0]&&_0(i),s=i[1]&&h0(i),a=i[2]&&g0(i),l=i[3]&&b0(i);return{c(){e=P("div"),r&&r.c(),t=Y(),s&&s.c(),n=Y(),a&&a.c(),o=Y(),l&&l.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){k(u,e,c),r&&r.m(e,null),_(e,t),s&&s.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),l&&l.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=_0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?s?s.p(u,c):(s=h0(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null),u[2]?a?a.p(u,c):(a=g0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?l?l.p(u,c):(l=b0(u),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:de,o:de,d(u){u&&w(e),r&&r.d(),s&&s.d(),a&&a.d(),l&&l.d()}}}function P6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,s,a,l,u,c=v=>String(v).padStart(2,"0"),m=v=>{let g=Math.floor(v/86400);g&&(v-=g*86400,t(0,r=c(g)));let I=Math.floor(v/3600);t(1,s=c(I));let C=Math.floor(v/60)%60;t(2,a=c(C));let V=v%60;t(3,l=c(V))},h=()=>{let v=Math.floor(Date.now()/1e3),g=n-v;m(g),g>=1?u=requestAnimationFrame(h):o()};return Nt(()=>{u=requestAnimationFrame(h)}),io(()=>{cancelAnimationFrame(u)}),i.$$set=v=>{"startTime"in v&&t(4,n=v.startTime),"onTimerOver"in v&&t(5,o=v.onTimerOver)},[r,s,a,l,n,o]}var Zc=class extends H{constructor(e){super(),U(this,e,P6,I6,F,{startTime:4,onTimerOver:5},T6)}},v0=Zc;function E6(i){let e,t,n,o,r,s,a=i[2].default,l=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=O("svg"),l&&l.c(),t=O("path"),n=O("path"),o=O("path"),r=O("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),hi(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),hi(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),hi(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),hi(r,"opacity",".986"),ye(e,c)},m(m,h){k(m,e,h),l&&l.m(e,null),_(e,t),_(e,n),_(e,o),_(e,r),s=!0},p(m,[h]){l&&l.p&&(!s||h&2)&&Re(l,a,m,m[1],s?Ve(a,m[1],h,null):Be(m[1]),null),ye(e,c=Fe(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){s||(d(l,m),s=!0)},o(m){p(l,m),s=!1},d(m){m&&w(e),l&&l.d(m)}}}function A6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Xc=class extends H{constructor(e){super(),U(this,e,A6,E6,F,{})}},y0=Xc;function M6(i){he(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function L6(i){let e,t,n,o,r;return o=new v0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${G("waiting_live_timer_title")}`,n=Y(),D(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(s,a){k(s,e,a),_(e,t),_(e,n),R(o,e,null),r=!0},p(s,a){let l={};a&2&&(l.startTime=s[1]||0),a&4&&(l.onTimerOver=s[3]),o.$set(l)},i(s){r||(d(o.$$.fragment,s),r=!0)},o(s){p(o.$$.fragment,s),r=!1},d(s){s&&w(e),B(o)}}}function V6(i){let e,t,n,o,r,s;return n=new y0({}),{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=Y(),r=P("span"),r.textContent=`${G("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,l){k(a,e,l),_(e,t),R(n,t,null),_(e,o),_(e,r),s=!0},p:de,i(a){s||(d(n.$$.fragment,a),s=!0)},o(a){p(n.$$.fragment,a),s=!1},d(a){a&&w(e),B(n)}}}function R6(i){let e,t,n,o,r,s=[V6,L6],a=[];function l(u,c){return u[2]?0:1}return t=l(i,-1),n=a[t]=s[t](i),{c(){e=P("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){k(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=l(u,c),t===m?a[t].p(u,c):(se(),p(a[m],1,1,()=>{a[m]=null}),le(),n=a[t],n?n.p(u,c):(n=a[t]=s[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){p(n),r=!1},d(u){u&&w(e),a[t].d()}}}function B6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,s=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,s]}var Jc=class extends H{constructor(e){super(),U(this,e,B6,R6,F,{thumbUrl:0,startTime:1},M6)}},Ul=Jc;function N6(i){he(i,"svelte-xvqwsa",".waiting-container.svelte-xvqwsa{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-xvqwsa::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px)}.waiting-caption.svelte-xvqwsa{position:relative;display:flex;flex-direction:column;align-items:center}.waiting-title.svelte-xvqwsa{margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function D6(i){let e,t,n,o,r,s,a,l;return n=new Ar({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=Y(),r=P("p"),s=Oe(i[1]),f(r,"class","waiting-title svelte-xvqwsa"),f(t,"class","waiting-caption svelte-xvqwsa"),f(e,"class","waiting-container svelte-xvqwsa"),f(e,"style",a=`background-image: url('${i[0]}')`)},m(u,c){k(u,e,c),_(e,t),R(n,t,null),_(t,o),_(t,r),_(r,s),l=!0},p(u,[c]){(!l||c&2)&&Ke(s,u[1]),(!l||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){l||(d(n.$$.fragment,u),l=!0)},o(u){p(n.$$.fragment,u),l=!1},d(u){u&&w(e),B(n)}}}function O6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=s=>{"thumbUrl"in s&&t(0,n=s.thumbUrl),"kind"in s&&t(2,o=s.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let s={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")};t(1,r=s[o]||"")}},[n,r,o]}var $c=class extends H{constructor(e){super(),U(this,e,O6,D6,F,{thumbUrl:0,kind:2},N6)}},qr=$c;var zl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),xl=(i,e)=>{var s;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(s=kl(t))!=null?s:t),n&&t&&o){let a=e.filter(l=>l.label===n&&l.language===t);if(a.length===1)return G("audio_stream_display_language_label",{language:o,label:n});{let l=zl(i,a);return G("audio_stream_display_language_label_index",{language:o,label:n,index:l})}}if(n){let a=e.filter(l=>l.label===n);if(a.length===1)return n;{let l=zl(i,a);return G("audio_stream_display_label_index",{label:n,index:l})}}if(t&&o){let a=e.filter(l=>l.language===t);if(a.length===1)return o;{let l=zl(i,a);return G("audio_stream_display_language_index",{language:o,index:l})}}let r=zl(i,e);return G("audio_stream_display_unknown",{index:r})};function F6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"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"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function H6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ef=class extends H{constructor(e){super(),U(this,e,H6,F6,F,{})}},w0=ef;function q6(i){he(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function k0(i){let e,t,n;return t=new w0({}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","select-icon svelte-124aexk")},m(o,r){k(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function U6(i){var o;let e,t=((o=i[1].label)!=null?o:i[1].value)+"",n;return{c(){e=P("div"),n=Oe(t),f(e,"class","menu-item-value"),j(e,"submenu-value-mobile",i[0])},m(r,s){k(r,e,s),_(e,n)},p(r,s){var a;s&2&&t!==(t=((a=r[1].label)!=null?a:r[1].value)+"")&&Ke(n,t),s&1&&j(e,"submenu-value-mobile",r[0])},i:de,o:de,d(r){r&&w(e)}}}function z6(i){var a;let e,t,n,o=[(a=i[1].valueComponentParams)!=null?a:{}];var r=i[1].valueComponent;function s(l,u){var m;let c={};for(let h=0;h<o.length;h+=1)c=re(c,o[h]);return u!==void 0&&u&2&&(c=re(c,Fe(o,[Vo((m=l[1].valueComponentParams)!=null?m:{})]))),{props:c}}return r&&(e=Bt(r,s(i))),{c(){e&&D(e.$$.fragment),t=Xe()},m(l,u){e&&R(e,l,u),k(l,t,u),n=!0},p(l,u){var c;if(u&2&&r!==(r=l[1].valueComponent)){if(e){se();let m=e;p(m.$$.fragment,1,0,()=>{B(m,1)}),le()}r?(e=Bt(r,s(l,u)),D(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}else if(r){let m=u&2?Fe(o,[Vo((c=l[1].valueComponentParams)!=null?c:{})]):{};e.$set(m)}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&w(t),e&&B(e,l)}}}function x6(i){let e,t,n,o,r,s,a,l,u,c=i[1].selected&&k0(i),m=[z6,U6],h=[];function v(g,I){return g[1].valueComponent?0:1}return n=v(i,-1),o=h[n]=m[n](i),{c(){var g,I,C;e=P("li"),c&&c.c(),t=Y(),o.c(),f(e,"class","item"),f(e,"data-value",r=(g=i[1].dataValue)!=null?g:i[1].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=(C=(I=i[1].ariaLabel)!=null?I:i[1].label)!=null?C:i[1].value.toString()),j(e,"mobile",i[0])},m(g,I){k(g,e,I),c&&c.m(e,null),_(e,t),h[n].m(e,null),a=!0,l||(u=[ke(e,"click",gt(i[4])),ke(e,"keydown",i[5])],l=!0)},p(g,[I]){var V,S,y;g[1].selected?c?I&2&&d(c,1):(c=k0(g),c.c(),d(c,1),c.m(e,t)):c&&(se(),p(c,1,1,()=>{c=null}),le());let C=n;n=v(g,I),n===C?h[n].p(g,I):(se(),p(h[C],1,1,()=>{h[C]=null}),le(),o=h[n],o?o.p(g,I):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(e,null)),(!a||I&2&&r!==(r=(V=g[1].dataValue)!=null?V:g[1].value))&&f(e,"data-value",r),(!a||I&2&&s!==(s=(y=(S=g[1].ariaLabel)!=null?S:g[1].label)!=null?y:g[1].value.toString()))&&f(e,"aria-label",s),(!a||I&1)&&j(e,"mobile",g[0])},i(g){a||(d(c),d(o),a=!0)},o(g){p(c),p(o),a=!1},d(g){g&&w(e),c&&c.d(),h[n].d(),l=!1,at(u)}}}function W6(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:r}=e,s=(u,c)=>{Pr(u,()=>r(c))},a=()=>r(o.value),l=u=>s(u,o.value);return i.$$set=u=>{"isMobile"in u&&t(0,n=u.isMobile),"item"in u&&t(1,o=u.item),"selectItem"in u&&t(2,r=u.selectItem)},[n,o,r,s,a,l]}var tf=class extends H{constructor(e){super(),U(this,e,W6,x6,F,{isMobile:0,item:1,selectItem:2},q6)}},C0=tf;function K6(i){let e,t,n=i[2].label+"",o,r,s,a,l;return{c(){var u;e=P("li"),t=P("div"),o=Oe(n),f(t,"class","menu-item-value"),j(t,"submenu-value-mobile",i[1]),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",r=(u=i[2].ariaLabel)!=null?u:i[2].label),f(e,"aria-haspopup","true"),f(e,"data-testid",s=i[2].id),j(e,"mobile",i[1])},m(u,c){k(u,e,c),_(e,t),_(t,o),i[6](e),a||(l=[ke(e,"click",gt(function(){Jt(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",function(){Jt(i[4])&&i[4].apply(this,arguments)})],a=!0)},p(u,[c]){var m;i=u,c&4&&n!==(n=i[2].label+"")&&Ke(o,n),c&2&&j(t,"submenu-value-mobile",i[1]),c&4&&r!==(r=(m=i[2].ariaLabel)!=null?m:i[2].label)&&f(e,"aria-label",r),c&4&&s!==(s=i[2].id)&&f(e,"data-testid",s),c&2&&j(e,"mobile",i[1])},i:de,o:de,d(u){u&&w(e),i[6](null),a=!1,at(l)}}}function j6(i,e,t){let n,o,{isMobile:r=!1}=e,{item:s}=e,{openSubMenuList:a}=e,{refMenuItems:l}=e;function u(c){ge[c?"unshift":"push"](()=>{l[s.id]=c,t(0,l)})}return i.$$set=c=>{"isMobile"in c&&t(1,r=c.isMobile),"item"in c&&t(2,s=c.item),"openSubMenuList"in c&&t(5,a=c.openSubMenuList),"refMenuItems"in c&&t(0,l=c.refMenuItems)},i.$$.update=()=>{i.$$.dirty&36&&t(3,n=()=>a(s.subMenuId)),i.$$.dirty&12&&t(4,o=c=>Ys(c,n,s.getSubItemForFocus))},[l,r,s,n,o,a,u]}var nf=class extends H{constructor(e){super(),U(this,e,j6,K6,F,{isMobile:1,item:2,openSubMenuList:5,refMenuItems:0})}},S0=nf;var ro={"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};function Q6(i){he(i,"svelte-1mrc4z3",'.sub-menu.svelte-1mrc4z3.svelte-1mrc4z3{line-height:32px;padding-bottom:0;padding-top:42px}.sub-menu.mobile.svelte-1mrc4z3.svelte-1mrc4z3{padding-top:58px}.sub-menu.svelte-1mrc4z3 .item{padding:0 12px}.sub-menu.svelte-1mrc4z3 .item.mobile{padding:0 14px}.sub-menu.svelte-1mrc4z3 .item.header.svelte-1mrc4z3{padding-top:6px;box-sizing:border-box;width:100%;justify-content:space-between;column-gap:12px;border-bottom:var(--divider-border);position:absolute;top:0}.sub-menu[data-testid="sub-menu-quality-settings"].svelte-1mrc4z3 .header.svelte-1mrc4z3{padding-right:34px}')}function T0(i,e,t){let n=i.slice();return n[25]=e[t],n}function Z6(i){let e,t;return e=new S0({props:{isMobile:i[2],item:i[25],openSubMenuList:i[6],refMenuItems:i[9]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.isMobile=n[2]),o&128&&(r.item=n[25]),o&64&&(r.openSubMenuList=n[6]),o&512&&(r.refMenuItems=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function X6(i){let e,t;return e=new C0({props:{item:i[25],isMobile:i[2],selectItem:i[25].selectItem}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&128&&(r.item=n[25]),o&4&&(r.isMobile=n[2]),o&128&&(r.selectItem=n[25].selectItem),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function I0(i){let e,t,n,o,r=[X6,Z6],s=[];function a(l,u){return l[25].type==="SELECT_VALUE"?0:l[25].type==="OPEN_SUB_MENU"?1:-1}return~(e=a(i,-1))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Xe()},m(l,u){~e&&s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(se(),p(s[c],1,1,()=>{s[c]=null}),le()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),~e&&s[e].d(l)}}}function J6(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g;o=new cr({props:{direction:"left"}});let I=kt(i[7]),C=[];for(let S=0;S<I.length;S+=1)C[S]=I0(T0(i,I,S));let V=S=>p(C[S],1,1,()=>{C[S]=null});return{c(){var S;e=P("div"),t=P("ul"),n=P("li"),D(o.$$.fragment),r=Y(),s=P("div"),a=Oe(i[5]),l=Y();for(let y=0;y<C.length;y+=1)C[y].c();f(n,"class","item header back svelte-1mrc4z3"),f(n,"role","menuitem"),f(n,"tabindex","0"),f(n,"data-testid","return-to-settings-menu"),f(n,"aria-label",i[4]),j(n,"mobile",i[2]),f(t,"class","items"),f(t,"role","menu"),f(t,"style",u=i[15]((S=i[10])==null?void 0:S.clientHeight)),j(t,"mobile",i[2]),f(e,"class","sub-menu menu svelte-1mrc4z3"),f(e,"data-testid",c=`sub-menu-${i[1]}`),f(e,"style",m=`min-width: ${i[8]}px`),j(e,"desktop",!i[2]),j(e,"mobile",i[2])},m(S,y){k(S,e,y),_(e,t),_(t,n),R(o,n,null),_(n,r),_(n,s),_(s,a),i[20](n),_(t,l);for(let E=0;E<C.length;E+=1)C[E]&&C[E].m(t,null);i[21](t),h=!0,v||(g=[ke(n,"click",gt(function(){Jt(i[3])&&i[3].apply(this,arguments)})),ke(n,"keydown",i[14]),ke(t,"keydown",i[13])],v=!0)},p(S,[y]){var E;if(i=S,(!h||y&32)&&Ke(a,i[5]),(!h||y&16)&&f(n,"aria-label",i[4]),(!h||y&4)&&j(n,"mobile",i[2]),y&708){I=kt(i[7]);let z;for(z=0;z<I.length;z+=1){let N=T0(i,I,z);C[z]?(C[z].p(N,y),d(C[z],1)):(C[z]=I0(N),C[z].c(),d(C[z],1),C[z].m(t,null))}for(se(),z=I.length;z<C.length;z+=1)V(z);le()}(!h||y&1024&&u!==(u=i[15]((E=i[10])==null?void 0:E.clientHeight)))&&f(t,"style",u),(!h||y&4)&&j(t,"mobile",i[2]),(!h||y&2&&c!==(c=`sub-menu-${i[1]}`))&&f(e,"data-testid",c),(!h||y&256&&m!==(m=`min-width: ${i[8]}px`))&&f(e,"style",m),(!h||y&4)&&j(e,"desktop",!i[2]),(!h||y&4)&&j(e,"mobile",i[2])},i(S){if(!h){d(o.$$.fragment,S);for(let y=0;y<I.length;y+=1)d(C[y]);h=!0}},o(S){p(o.$$.fragment,S),C=C.filter(Boolean);for(let y=0;y<C.length;y+=1)p(C[y]);h=!1},d(S){S&&w(e),B(o),i[20](null),fi(C,S),i[21](null),v=!1,at(g)}}}function $6(i,e,t){let n,o,{id:r}=e,{parentItemId:s}=e,{isMobile:a=!1}=e,{playerControlsHeight:l=0}=e,{returnFromSubMenu:u}=e,{ariaLabelReturnFromSubMenu:c=G("aria_label_submenu_back")}=e,{title:m}=e,{listRef:h}=e,{closeSettingsMenu:v}=e,{openSubMenuList:g}=e,{itemIdReturnCase:I}=e,{items:C}=e,{minWidth:V}=e,{refMenuItems:S}=e,y=it(),E=y.ui.isFullscreen;q(i,E,J=>t(23,o=J));let z=y.ui.playerSize;q(i,z,J=>t(22,n=J));let N,L=J=>{n1(J,u,{itemIdReturnCase:I,id:s},v)},ee=J=>{os(J)&&(jn(J),u(),I.set(s))},ae=(J=0)=>a&&o?`max-height: ${Math.round(n.height*.6)}px`:a?"":`max-height: ${n.height-32-J-l}px; overflow: auto;`;function Q(J){ge[J?"unshift":"push"](()=>{N=J,t(10,N)})}function $(J){ge[J?"unshift":"push"](()=>{h=J,t(0,h)})}return i.$$set=J=>{"id"in J&&t(1,r=J.id),"parentItemId"in J&&t(16,s=J.parentItemId),"isMobile"in J&&t(2,a=J.isMobile),"playerControlsHeight"in J&&t(17,l=J.playerControlsHeight),"returnFromSubMenu"in J&&t(3,u=J.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in J&&t(4,c=J.ariaLabelReturnFromSubMenu),"title"in J&&t(5,m=J.title),"listRef"in J&&t(0,h=J.listRef),"closeSettingsMenu"in J&&t(18,v=J.closeSettingsMenu),"openSubMenuList"in J&&t(6,g=J.openSubMenuList),"itemIdReturnCase"in J&&t(19,I=J.itemIdReturnCase),"items"in J&&t(7,C=J.items),"minWidth"in J&&t(8,V=J.minWidth),"refMenuItems"in J&&t(9,S=J.refMenuItems)},[h,r,a,u,c,m,g,C,V,S,N,E,z,L,ee,ae,s,l,v,I,Q,$]}var of=class extends H{constructor(e){super(),U(this,e,$6,J6,F,{id:1,parentItemId:16,isMobile:2,playerControlsHeight:17,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:18,openSubMenuList:6,itemIdReturnCase:19,items:7,minWidth:8,refMenuItems:9},Q6)}},P0=of;import{noop as ey}from"@vkontakte/videoplayer-shared";function ty(i){he(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function iy(i){let e,t,n;var o=i[8];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&D(e.$$.fragment),t=Xe()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&256&&o!==(o=s[8])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Bt(o,r(s,a)),D(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function ny(i){let e,t;return e=new Hr({props:{icon:i[8]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&256&&(r.icon=n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function oy(i){let e,t;return{c(){e=P("div"),t=Oe(i[6]),f(e,"class","value svelte-1ikfjte")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&64&&Ke(t,n[6])},i:de,o:de,d(n){n&&w(e)}}}function ry(i){let e,t,n;var o=i[7];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&D(e.$$.fragment),t=Xe()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&128&&o!==(o=s[7])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Bt(o,r(s,a)),D(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function sy(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g=[ny,iy],I=[];function C(E,z){return typeof E[8]=="string"?0:1}n=C(i,-1),o=I[n]=g[n](i);let V=[ry,oy],S=[];function y(E,z){return E[7]?0:1}return u=y(i,-1),c=S[u]=V[u](i),{c(){e=P("li"),t=P("div"),o.c(),r=Y(),s=P("div"),a=Oe(i[4]),l=Y(),c.c(),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",i[5]),f(e,"aria-haspopup","true"),f(e,"data-testid",i[1]),j(e,"mobile",i[2])},m(E,z){k(E,e,z),_(e,t),I[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),S[u].m(e,null),i[11](e),m=!0,h||(v=[ke(e,"click",gt(function(){Jt(i[3])&&i[3].apply(this,arguments)})),ke(e,"keydown",i[9])],h=!0)},p(E,[z]){i=E;let N=n;n=C(i,z),n===N?I[n].p(i,z):(se(),p(I[N],1,1,()=>{I[N]=null}),le(),o=I[n],o?o.p(i,z):(o=I[n]=g[n](i),o.c()),d(o,1),o.m(t,null)),(!m||z&16)&&Ke(a,i[4]);let L=u;u=y(i,z),u===L?S[u].p(i,z):(se(),p(S[L],1,1,()=>{S[L]=null}),le(),c=S[u],c?c.p(i,z):(c=S[u]=V[u](i),c.c()),d(c,1),c.m(e,null)),(!m||z&32)&&f(e,"aria-label",i[5]),(!m||z&2)&&f(e,"data-testid",i[1]),(!m||z&4)&&j(e,"mobile",i[2])},i(E){m||(d(o),d(c),m=!0)},o(E){p(o),p(c),m=!1},d(E){E&&w(e),I[n].d(),S[u].d(),i[11](null),h=!1,at(v)}}}function ly(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=ey}=e,{getSubItemForFocus:s}=e,{label:a}=e,{ariaLabel:l}=e,{value:u}=e,{valueComponent:c=void 0}=e,{ref:m}=e,{icon:h}=e,v=I=>Ys(I,r,s);function g(I){ge[I?"unshift":"push"](()=>{m=I,t(0,m)})}return i.$$set=I=>{"id"in I&&t(1,n=I.id),"isMobile"in I&&t(2,o=I.isMobile),"onClick"in I&&t(3,r=I.onClick),"getSubItemForFocus"in I&&t(10,s=I.getSubItemForFocus),"label"in I&&t(4,a=I.label),"ariaLabel"in I&&t(5,l=I.ariaLabel),"value"in I&&t(6,u=I.value),"valueComponent"in I&&t(7,c=I.valueComponent),"ref"in I&&t(0,m=I.ref),"icon"in I&&t(8,h=I.icon)},[m,n,o,r,a,l,u,c,h,v,s,g]}var sf=class extends H{constructor(e){super(),U(this,e,ly,sy,F,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},ty)}},E0=sf;function ay(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function uy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var lf=class extends H{constructor(e){super(),U(this,e,uy,ay,F,{})}},A0=lf;function cy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function fy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var af=class extends H{constructor(e){super(),U(this,e,fy,cy,F,{})}},M0=af;function dy(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("g"),n=O("path"),o=O("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function my(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var uf=class extends H{constructor(e){super(),U(this,e,my,dy,F,{})}},L0=uf;function py(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function _y(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var cf=class extends H{constructor(e){super(),U(this,e,_y,py,F,{})}},V0=cf;function hy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function gy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var ff=class extends H{constructor(e){super(),U(this,e,gy,hy,F,{})}},df=ff;function by(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function vy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var mf=class extends H{constructor(e){super(),U(this,e,vy,by,F,{})}},R0=mf;function yy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function wy(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var pf=class extends H{constructor(e){super(),U(this,e,wy,yy,F,{})}},B0=pf;import"@vkontakte/videoplayer-core";function ky(i){he(i,"svelte-1a7qwh6",".menu-item-value.svelte-1a7qwh6.svelte-1a7qwh6{position:relative;padding-right:22px}.menu-item-value.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:0.7}.menu-item-value.sub.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:1}.quality-icon.svelte-1a7qwh6.svelte-1a7qwh6{position:absolute;top:-8px;right:2px;width:15px}.quality-icon.svelte-1a7qwh6 svg{color:var(--blue-light)}")}function N0(i){let e,t,n;var o=i[3];function r(s,a){return{}}return o&&(t=Bt(o,r(i))),{c(){e=P("div"),t&&D(t.$$.fragment),f(e,"class","quality-icon svelte-1a7qwh6")},m(s,a){k(s,e,a),t&&R(t,e,null),n=!0},p(s,a){if(a&8&&o!==(o=s[3])){if(t){se();let l=t;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(t=Bt(o,r(s,a)),D(t.$$.fragment),d(t.$$.fragment,1),R(t,e,null)):t=null}},i(s){n||(t&&d(t.$$.fragment,s),n=!0)},o(s){t&&p(t.$$.fragment,s),n=!1},d(s){s&&w(e),t&&B(t)}}}function Cy(i){let e,t,n,o,r,s=i[3]&&!i[1]&&N0(i);return{c(){e=P("div"),t=P("span"),n=Oe(i[0]),o=Y(),s&&s.c(),f(t,"class","svelte-1a7qwh6"),f(e,"class","menu-item-value svelte-1a7qwh6"),j(e,"sub",i[2])},m(a,l){k(a,e,l),_(e,t),_(t,n),_(e,o),s&&s.m(e,null),r=!0},p(a,[l]){(!r||l&1)&&Ke(n,a[0]),a[3]&&!a[1]?s?(s.p(a,l),l&10&&d(s,1)):(s=N0(a),s.c(),d(s,1),s.m(e,null)):s&&(se(),p(s,1,1,()=>{s=null}),le()),(!r||l&4)&&j(e,"sub",a[2])},i(a){r||(d(s),r=!0)},o(a){p(s),r=!1},d(a){a&&w(e),s&&s.d()}}}function Sy(i,e,t){let n,{quality:o}=e,{label:r}=e,{isMobile:s}=e,{isSubCase:a=!1}=e;return i.$$set=l=>{"quality"in l&&t(4,o=l.quality),"label"in l&&t(0,r=l.label),"isMobile"in l&&t(1,s=l.isMobile),"isSubCase"in l&&t(2,a=l.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=ll(o))},[r,s,a,n,o]}var _f=class extends H{constructor(e){super(),U(this,e,Sy,Cy,F,{quality:4,label:0,isMobile:1,isSubCase:2},ky)}},Wl=_f;import{VideoQuality as Ty}from"@vkontakte/videoplayer-core";var Kl=(i,e,t)=>{if(!i)return"...";let n=e.find(r=>r.value===i),o=n?n.displayValue:i;return t?i===Ty.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o};function Iy(i){he(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function Py(i){let e,t,n;return t=new Wl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,[r]){let s={};r&1&&(s.quality=o[0]),r&2&&(s.label=o[1]),r&4&&(s.isMobile=o[2]),t.$set(s)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function Ey(i,e,t){let n,o,r,s,a=it(),l=a.state.currentQuality$;q(i,l,v=>t(0,r=v));let u=a.state.availableQualities$;q(i,u,v=>t(8,o=v));let c=a.state.isAutoQualityEnabled$;q(i,c,v=>t(7,n=v));let m=a.ui.isMobile;q(i,m,v=>t(2,s=v));let h;return i.$$.update=()=>{i.$$.dirty&385&&t(1,h=Kl(r,o,n))},[r,h,s,l,u,c,m,n,o]}var hf=class extends H{constructor(e){super(),U(this,e,Ey,Py,F,{},Iy)}},D0=hf;import{noop as O0}from"@vkontakte/videoplayer-shared";function Ay(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&D(e.$$.fragment),t=Xe()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Bt(o,r(s,a)),D(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function My(i){let e;function t(r,s){return r[5]?Vy:Ly}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(r,s){o.m(r,s),k(r,e,s)},p(r,s){n===(n=t(r,s))&&o?o.p(r,s):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:de,o:de,d(r){r&&w(e),o.d(r)}}}function Ly(i){let e,t,n,o;return{c(){e=P("img"),f(e,"class","icon"),ko(e.src,t=i[4])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,s){k(r,e,s),n||(o=ke(e,"error",i[6]),n=!0)},p(r,s){s&16&&!ko(e.src,t=r[4])&&f(e,"src",t)},d(r){r&&w(e),n=!1,o()}}}function Vy(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner"></div>',f(e,"class","icon icon-error-stub")},m(t,n){k(t,e,n)},p:de,d(t){t&&w(e)}}}function Ry(i){let e,t,n,o,r,s,a,l,u,c,m,h=[My,Ay],v=[];function g(I,C){return typeof I[4]=="string"?0:1}return n=g(i,-1),o=v[n]=h[n](i),{c(){var I;e=P("li"),t=P("div"),o.c(),r=Y(),s=P("div"),a=Oe(i[2]),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=(I=i[3])!=null?I:i[2]),f(e,"data-testid",i[0]),j(e,"mobile",i[1])},m(I,C){k(I,e,C),_(e,t),v[n].m(t,null),_(e,r),_(e,s),_(s,a),u=!0,c||(m=[ke(e,"click",gt(i[7])),ke(e,"keydown",i[8])],c=!0)},p(I,[C]){var S;let V=n;n=g(I,C),n===V?v[n].p(I,C):(se(),p(v[V],1,1,()=>{v[V]=null}),le(),o=v[n],o?o.p(I,C):(o=v[n]=h[n](I),o.c()),d(o,1),o.m(t,null)),(!u||C&4)&&Ke(a,I[2]),(!u||C&12&&l!==(l=(S=I[3])!=null?S:I[2]))&&f(e,"aria-label",l),(!u||C&1)&&f(e,"data-testid",I[0]),(!u||C&2)&&j(e,"mobile",I[1])},i(I){u||(d(o),u=!0)},o(I){p(o),u=!1},d(I){I&&w(e),v[n].d(),c=!1,at(m)}}}function By(i,e,t){let n,{id:o}=e,{isMobile:r=!1}=e,{onClick:s=O0}=e,{closeSettings:a=O0}=e,{label:l}=e,{ariaLabel:u}=e,{icon:c}=e,m=()=>{t(5,n=!0)},h=()=>{s(),a()},v=g=>{Pr(g,()=>h())};return i.$$set=g=>{"id"in g&&t(0,o=g.id),"isMobile"in g&&t(1,r=g.isMobile),"onClick"in g&&t(9,s=g.onClick),"closeSettings"in g&&t(10,a=g.closeSettings),"label"in g&&t(2,l=g.label),"ariaLabel"in g&&t(3,u=g.ariaLabel),"icon"in g&&t(4,c=g.icon)},t(5,n=!1),[o,r,l,u,c,n,m,h,v,s,a]}var gf=class extends H{constructor(e){super(),U(this,e,By,Ry,F,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},F0=gf;import{noop as Fy}from"@vkontakte/videoplayer-shared";function Ny(i){he(i,"svelte-17wbjko",'.toggle_wrap.svelte-17wbjko{min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none}.toggle.svelte-17wbjko{float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer}.toggle.svelte-17wbjko::after{content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease}.toggle.on.svelte-17wbjko::after{background-color:var(--toggle-color-on);left:13px}.toggle-label.svelte-17wbjko{overflow:hidden}')}function Dy(i){let e,t,n,o;return{c(){e=P("div"),t=P("div"),n=Y(),o=P("div"),f(t,"class","toggle svelte-17wbjko"),j(t,"on",i[0]),f(o,"class","toggle-label svelte-17wbjko"),f(e,"class","toggle_wrap svelte-17wbjko")},m(r,s){k(r,e,s),_(e,t),_(e,n),_(e,o)},p(r,[s]){s&1&&j(t,"on",r[0])},i:de,o:de,d(r){r&&w(e)}}}function Oy(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var bf=class extends H{constructor(e){super(),U(this,e,Oy,Dy,F,{enabled:0},Ny)}},H0=bf;function Hy(i){let e,t,n;var o=i[4];function r(s,a){return{}}return o&&(e=Bt(o,r(i))),{c(){e&&D(e.$$.fragment),t=Xe()},m(s,a){e&&R(e,s,a),k(s,t,a),n=!0},p(s,a){if(a&16&&o!==(o=s[4])){if(e){se();let l=e;p(l.$$.fragment,1,0,()=>{B(l,1)}),le()}o?(e=Bt(o,r(s,a)),D(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(s){n||(e&&d(e.$$.fragment,s),n=!0)},o(s){e&&p(e.$$.fragment,s),n=!1},d(s){s&&w(t),e&&B(e,s)}}}function qy(i){let e,t;return e=new Hr({props:{icon:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.icon=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Uy(i){let e,t,n,o,r,s,a,l,u,c,m=[qy,Hy],h=[];function v(g,I){return typeof g[4]=="string"?0:1}return n=v(i,-1),o=h[n]=m[n](i),u=new H0({props:{enabled:i[5]}}),{c(){e=P("div"),t=P("div"),o.c(),r=Y(),s=P("div"),a=Oe(i[2]),l=Y(),D(u.$$.fragment),f(t,"class","icon-wrapper"),f(s,"class","label"),f(e,"class","switch-wrapper"),j(e,"mobile",i[1])},m(g,I){k(g,e,I),_(e,t),h[n].m(t,null),_(e,r),_(e,s),_(s,a),_(e,l),R(u,e,null),c=!0},p(g,I){let C=n;n=v(g,I),n===C?h[n].p(g,I):(se(),p(h[C],1,1,()=>{h[C]=null}),le(),o=h[n],o?o.p(g,I):(o=h[n]=m[n](g),o.c()),d(o,1),o.m(t,null)),(!c||I&4)&&Ke(a,g[2]);let V={};I&32&&(V.enabled=g[5]),u.$set(V),(!c||I&2)&&j(e,"mobile",g[1])},i(g){c||(d(o),d(u.$$.fragment,g),c=!0)},o(g){p(o),p(u.$$.fragment,g),c=!1},d(g){g&&w(e),h[n].d(),B(u)}}}function zy(i){let e,t,n,o,r,s;return t=new Lr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[Uy]},$$scope:{ctx:i}}}),{c(){var a;e=P("li"),D(t.$$.fragment),f(e,"class","item switch-item"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",n=(a=i[3])!=null?a:i[2]),f(e,"data-testid",i[0]),j(e,"mobile",i[1])},m(a,l){k(a,e,l),R(t,e,null),o=!0,r||(s=[ke(e,"click",gt(i[9])),ke(e,"keydown",i[8])],r=!0)},p(a,[l]){var c;let u={};l&64&&(u.content=a[6]),l&2&&(u.isMobile=a[1]),l&128&&(u.maxTooltipWidth=a[7]),l&2102&&(u.$$scope={dirty:l,ctx:a}),t.$set(u),(!o||l&12&&n!==(n=(c=a[3])!=null?c:a[2]))&&f(e,"aria-label",n),(!o||l&1)&&f(e,"data-testid",a[0]),(!o||l&2)&&j(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),B(t),r=!1,at(s)}}}function xy(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:r=Fy}=e,{label:s}=e,{ariaLabel:a}=e,{icon:l}=e,{enabled:u=!1}=e,{tooltipText:c=void 0}=e,{maxTooltipWidth:m=void 0}=e,h=g=>{o1(g,u,I=>r(I))},v=()=>r(!u);return i.$$set=g=>{"id"in g&&t(0,n=g.id),"isMobile"in g&&t(1,o=g.isMobile),"onClick"in g&&t(10,r=g.onClick),"label"in g&&t(2,s=g.label),"ariaLabel"in g&&t(3,a=g.ariaLabel),"icon"in g&&t(4,l=g.icon),"enabled"in g&&t(5,u=g.enabled),"tooltipText"in g&&t(6,c=g.tooltipText),"maxTooltipWidth"in g&&t(7,m=g.maxTooltipWidth)},[n,o,s,a,l,u,c,m,h,v,r]}var vf=class extends H{constructor(e){super(),U(this,e,xy,zy,F,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},q0=vf;import{isValidURL as Wy}from"@vkontakte/videoplayer-shared";function Ky(i){he(i,"svelte-1t2c6ej",".settings-menu-container.mobile.svelte-1t2c6ej.svelte-1t2c6ej{width:100%}.settings-menu-container.svelte-1t2c6ej ul{margin:0;padding:0;list-style-type:none}.settings-menu-container.svelte-1t2c6ej .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.settings-menu-container.svelte-1t2c6ej .menu .item:first-child:not(.mobile){padding-top:6px;border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu .item:last-child{padding-bottom:6px;border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius)}.settings-menu-container.svelte-1t2c6ej .menu.desktop{position:absolute;right:0;bottom:0}.settings-menu.svelte-1t2c6ej.svelte-1t2c6ej{line-height:40px}.settings-menu.desktop.svelte-1t2c6ej.svelte-1t2c6ej{min-width:300px}.settings-menu-container.svelte-1t2c6ej .menu.mobile{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.settings-menu-container.svelte-1t2c6ej .menu.mobile.hidden{display:none}.settings-menu-container.svelte-1t2c6ej .menu .item:not(.switch-item),.settings-menu-container.svelte-1t2c6ej .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative}.settings-menu-container.svelte-1t2c6ej .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.svelte-1t2c6ej .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.svelte-1t2c6ej .item:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper{padding:0 32px 0 18px}.settings-menu.svelte-1t2c6ej .item.mobile:not(.switch-item),.settings-menu.svelte-1t2c6ej .switch-wrapper.mobile{padding:0 14px}.settings-menu.svelte-1t2c6ej .icon-wrapper{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.settings-menu.svelte-1t2c6ej .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.svelte-1t2c6ej .item.header.svelte-1t2c6ej{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar{width:8px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.settings-menu-container.svelte-1t2c6ej .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.svelte-1t2c6ej .items.mobile{overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left}.close.svelte-1t2c6ej.svelte-1t2c6ej{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1t2c6ej.svelte-1t2c6ej:before,.close.svelte-1t2c6ej.svelte-1t2c6ej:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1t2c6ej.svelte-1t2c6ej:before{transform:rotate(45deg)}.close.svelte-1t2c6ej.svelte-1t2c6ej:after{transform:rotate(-45deg)}")}function z0(i,e,t){let n=i.slice();return n[95]=e[t],n[96]=e,n[97]=t,n}function x0(i,e,t){let n=i.slice();return n[95]=e[t],n[98]=e,n[99]=t,n}function W0(i){let e,t,n,o,r,s,a,l=i[6]&&K0(i),u=kt(i[4]),c=[];for(let h=0;h<u.length;h+=1)c[h]=j0(x0(i,u,h));let m=h=>p(c[h],1,1,()=>{c[h]=null});return{c(){e=P("div"),l&&l.c(),t=Y(),n=P("ul");for(let h=0;h<c.length;h+=1)c[h].c();f(n,"class","items"),f(n,"role","menu"),f(n,"style",o=i[35]()),j(n,"mobile",i[6]),f(e,"class","settings-menu menu svelte-1t2c6ej"),f(e,"data-testid","settings-menu"),j(e,"desktop",!i[6]),j(e,"mobile",i[6]),j(e,"hidden",!i[8])},m(h,v){k(h,e,v),l&&l.m(e,null),_(e,t),_(e,n);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(n,null);i[70](n),r=!0,s||(a=[ke(e,"keydown",i[37]),ke(e,"mouseenter",i[33]),ke(e,"mouseleave",i[34])],s=!0)},p(h,v){if(h[6]?l?l.p(h,v):(l=K0(h),l.c(),l.m(e,t)):l&&(l.d(1),l=null),v[0]&1073741908|v[1]&1){u=kt(h[4]);let g;for(g=0;g<u.length;g+=1){let I=x0(h,u,g);c[g]?(c[g].p(I,v),d(c[g],1)):(c[g]=j0(I),c[g].c(),d(c[g],1),c[g].m(n,null))}for(se(),g=u.length;g<c.length;g+=1)m(g);le()}(!r||v[0]&64)&&j(n,"mobile",h[6]),(!r||v[0]&64)&&j(e,"desktop",!h[6]),(!r||v[0]&64)&&j(e,"mobile",h[6]),(!r||v[0]&256)&&j(e,"hidden",!h[8])},i(h){if(!r){for(let v=0;v<u.length;v+=1)d(c[v]);r=!0}},o(h){c=c.filter(Boolean);for(let v=0;v<c.length;v+=1)p(c[v]);r=!1},d(h){h&&w(e),l&&l.d(),fi(c,h),i[70](null),s=!1,at(a)}}}function K0(i){let e,t,n,o,r,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${G("submenu_settings")}`,n=Y(),o=P("div"),f(o,"class","close svelte-1t2c6ej"),f(e,"class","item header svelte-1t2c6ej"),j(e,"mobile",i[6])},m(a,l){k(a,e,l),_(e,t),_(e,n),_(e,o),r||(s=ke(o,"click",gt(i[31])),r=!0)},p(a,l){l[0]&64&&j(e,"mobile",a[6])},d(a){a&&w(e),r=!1,s()}}}function jy(i){let e,t;return e=new q0({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,enabled:i[95].enabled,tooltipText:i[95].tooltipText,maxTooltipWidth:i[95].maxTooltipWidth}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),o[0]&16&&(r.enabled=n[95].enabled),o[0]&16&&(r.tooltipText=n[95].tooltipText),o[0]&16&&(r.maxTooltipWidth=n[95].maxTooltipWidth),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Gy(i){let e,t;return e=new F0({props:{isMobile:i[6],id:i[95].id,onClick:i[95].onClick,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,closeSettings:i[31]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&64&&(r.isMobile=n[6]),o[0]&16&&(r.id=n[95].id),o[0]&16&&(r.onClick=n[95].onClick),o[0]&16&&(r.icon=n[95].icon),o[0]&16&&(r.label=n[95].label),o[0]&16&&(r.ariaLabel=n[95].ariaLabel),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Yy(i){let e,t,n;function o(){return i[68](i[95])}function r(a){i[69](a,i[95])}let s={isMobile:i[6],id:i[95].id,icon:i[95].icon,label:i[95].label,ariaLabel:i[95].ariaLabel,value:i[95].value,valueComponent:i[95].valueComponent,onClick:o,getSubItemForFocus:i[95].getSubItemForFocus};return i[2][i[95].id]!==void 0&&(s.ref=i[2][i[95].id]),e=new E0({props:s}),ge.push(()=>Ue(e,"ref",r)),{c(){D(e.$$.fragment)},m(a,l){R(e,a,l),n=!0},p(a,l){i=a;let u={};l[0]&64&&(u.isMobile=i[6]),l[0]&16&&(u.id=i[95].id),l[0]&16&&(u.icon=i[95].icon),l[0]&16&&(u.label=i[95].label),l[0]&16&&(u.ariaLabel=i[95].ariaLabel),l[0]&16&&(u.value=i[95].value),l[0]&16&&(u.valueComponent=i[95].valueComponent),l[0]&16&&(u.onClick=o),l[0]&16&&(u.getSubItemForFocus=i[95].getSubItemForFocus),!t&&l[0]&20&&(t=!0,u.ref=i[2][i[95].id],qe(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){p(e.$$.fragment,a),n=!1},d(a){B(e,a)}}}function j0(i){let e,t,n,o,r=[Yy,Gy,jy],s=[];function a(l,u){return l[95].type==="OPEN_SUB_MENU"?0:l[95].type==="CLICK"?1:l[95].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=s[e]=r[e](i)),{c(){t&&t.c(),n=Xe()},m(l,u){~e&&s[e].m(l,u),k(l,n,u),o=!0},p(l,u){let c=e;e=a(l,u),e===c?~e&&s[e].p(l,u):(t&&(se(),p(s[c],1,1,()=>{s[c]=null}),le()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=r[e](l),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(l){o||(d(t),o=!0)},o(l){p(t),o=!1},d(l){l&&w(n),~e&&s[e].d(l)}}}function G0(i,e){var l,u;let t,n,o,r;function s(c){e[71](c,e[95])}let a={isMobile:e[6],playerControlsHeight:e[1],itemIdReturnCase:e[36],returnFromSubMenu:(l=e[95].returnFromSubMenu)!=null?l:e[32].bind(null,!1),id:e[95].id,parentItemId:e[95].parentItemId,title:e[95].title,closeSettingsMenu:e[95].closeSettingsMenu,openSubMenuList:e[30],items:e[95].items,minWidth:(u=e[95].minWidth)!=null?u:137,refMenuItems:e[2]};return e[3][e[95].id]!==void 0&&(a.listRef=e[3][e[95].id]),n=new P0({props:a}),ge.push(()=>Ue(n,"listRef",s)),{key:i,first:null,c(){t=Xe(),D(n.$$.fragment),this.first=t},m(c,m){k(c,t,m),R(n,c,m),r=!0},p(c,m){var v,g;e=c;let h={};m[0]&64&&(h.isMobile=e[6]),m[0]&2&&(h.playerControlsHeight=e[1]),m[0]&32&&(h.returnFromSubMenu=(v=e[95].returnFromSubMenu)!=null?v:e[32].bind(null,!1)),m[0]&32&&(h.id=e[95].id),m[0]&32&&(h.parentItemId=e[95].parentItemId),m[0]&32&&(h.title=e[95].title),m[0]&32&&(h.closeSettingsMenu=e[95].closeSettingsMenu),m[0]&32&&(h.items=e[95].items),m[0]&32&&(h.minWidth=(g=e[95].minWidth)!=null?g:137),m[0]&4&&(h.refMenuItems=e[2]),!o&&m[0]&40&&(o=!0,h.listRef=e[3][e[95].id],qe(()=>o=!1)),n.$set(h)},i(c){r||(d(n.$$.fragment,c),r=!0)},o(c){p(n.$$.fragment,c),r=!1},d(c){c&&w(t),B(n,c)}}}function Qy(i){let e,t,n=[],o=new Map,r,s=i[7]&&W0(i),a=kt(i[5]),l=u=>u[95].id;for(let u=0;u<a.length;u+=1){let c=z0(i,a,u),m=l(c);o.set(m,n[u]=G0(m,c))}return{c(){e=P("div"),s&&s.c(),t=Y();for(let u=0;u<n.length;u+=1)n[u].c();f(e,"class","settings-menu-container svelte-1t2c6ej"),j(e,"hidden",!i[7]),j(e,"mobile",i[6])},m(u,c){k(u,e,c),s&&s.m(e,null),_(e,t);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(e,null);r=!0},p(u,c){u[7]?s?(s.p(u,c),c[0]&128&&d(s,1)):(s=W0(u),s.c(),d(s,1),s.m(e,t)):s&&(se(),p(s,1,1,()=>{s=null}),le()),c[0]&1073741934|c[1]&34&&(a=kt(u[5]),se(),n=Qf(n,c,l,1,u,a,o,e,Yf,G0,null,z0),le()),(!r||c[0]&128)&&j(e,"hidden",!u[7]),(!r||c[0]&64)&&j(e,"mobile",u[6])},i(u){if(!r){d(s);for(let c=0;c<a.length;c+=1)d(n[c]);r=!0}},o(u){p(s);for(let c=0;c<n.length;c+=1)p(n[c]);r=!1},d(u){u&&w(e),s&&s.d();for(let c=0;c<n.length;c+=1)n[c].d()}}}function Zy(i,e,t){let n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,ae,Q,{ref:$=void 0}=e,{supportLink:J}=e,{playerControlsHeight:W=0}=e,{returnFocus:ue}=e,x=it(),K=Lt(),A=x.state.audioStream$;q(i,A,Ae=>t(54,m=Ae));let fe=x.state.availableAudioStreams$;q(i,fe,Ae=>t(53,c=Ae));let X=x.state.currentQuality$;q(i,X,Ae=>t(62,y=Ae));let Me=x.state.availableQualities$;q(i,Me,Ae=>t(55,h=Ae));let ie=x.state.autoQualityLimitingAvailable$;q(i,ie,Ae=>t(66,L=Ae));let be=x.state.isAutoQualityEnabled$;q(i,be,Ae=>t(63,E=Ae));let Te=x.state.currentPlaybackRate$;q(i,Te,Ae=>t(60,V=Ae));let Ie=x.state.availablePlaybackRates$;q(i,Ie,Ae=>t(52,u=Ae));let Pe=x.state.currentSubtitle$;q(i,Pe,Ae=>t(59,C=Ae));let ot=x.state.availableSubtitlesList$;q(i,ot,Ae=>t(50,a=Ae));let Ee=x.state.canDownload,ze=x.state.hasMpegSources$;q(i,ze,Ae=>t(67,ee=Ae));let te=x.ui.settingsMenu.visible$;q(i,te,Ae=>t(7,Q=Ae));let pe=x.ui.settingsMenu.openedByBtnKeyboard$;q(i,pe,Ae=>t(73,r=Ae));let Ce=x.ui.settingsMenu.ref$,We=x.ui.isMobile;q(i,We,Ae=>t(6,s=Ae));let nt=x.ui.mobileNotReportControlHidden$;q(i,nt,Ae=>t(64,z=Ae));let st=x.state.canChangePlaybackSpeed$;q(i,st,Ae=>t(65,N=Ae));let rt=x.state.trafficSavingEnabled$;q(i,rt,Ae=>t(58,I=Ae));let Qe=x.ui.playerSize;q(i,Qe,Ae=>t(74,ae=Ae));let ce=x.ui.debugPanelVisible;q(i,ce,Ae=>t(57,g=Ae));let Se=x.state.isInteractiveTime$,$e=x.ui.additionalSettingsMenuItems$;q(i,$e,Ae=>t(56,v=Ae));let De=x.actions.internal.downloadVideo,et=x.actions.internal.closeSettingsMenu,He=x.actions.internal.openSettingsSubMenu,ut=x.actions.internal.closeSettingsSubMenu,ct=!0,_e=Ne({});q(i,_e,Ae=>t(51,l=Ae));let dt="",bt=!1;async function Ct(Ae){t(8,ct=!1),t(40,dt=Ae);let tt=Kt();tt[Ae]=!0,_e.set(tt),await an(),He(Ae,Ft[Ae])}function yt(){r||ue==null||ue(),et(),Vt(!0),bt=!1}function Ye(Ae){x.actions.internal.setQuality(Ae),yt()}function Wt(Ae){x.actions.internal.setAudioStream(Ae),yt()}function $t(Ae){x.actions.internal.setTrafficSavingEnabled(Ae)}function zt(Ae){x.actions.internal.setPlaybackRate(Ae),yt()}function Dt(Ae){x.actions.internal.setSubtitle(Ae),yt()}function Kt(){let Ae=l;return Object.keys(Ae).forEach(tt=>{Ae[tt]=!1}),Ae}function Vt(Ae=!1){t(8,ct=!0);let tt=Kt();_e.set(tt),ut(Ft[dt],Ae),t(40,dt="")}function xe(){De()}function Ze(){Wy(J)&&window.open(J,"_blank"),x.actions.internal.reportProblem(),x.actions.internal.pause()}function St(){Sr(x.actions.internal.getDebugTextData())}let jt=()=>{let Ae=x.actions.internal.getTraceTextData(),tt=new Blob([...Ae],{type:"application/json"}),Pt=window.URL.createObjectURL(tt);ir(Pt,"vk_player_trace_info","json")};function qt(){ce.set(!g)}function me(){bt=!0}function Gt(){bt=!1}function Yt(){return s?`max-height: ${Math.round(ae.height*.6)}px`:`max-height: ${ae.height-32-W}px; overflow: auto;`}let Qt,At,Zt,xt,Ot,zi,di,ki=Ne();q(i,ki,Ae=>t(61,S=Ae));let Ci={},Ft={},Li=Ae=>{Gs(Ae,et)},Mt=[],li=[];Nt(()=>{let Ae=Se.subscribe(tt=>{tt&&!s&&!bt&&!r&&yt()});return()=>{Ae()}});let bi=Ae=>Ct(Ae.subMenuId);function ei(Ae,tt){i.$$.not_equal(Ci[tt.id],Ae)&&(Ci[tt.id]=Ae,t(2,Ci))}function vi(Ae){ge[Ae?"unshift":"push"](()=>{$=Ae,t(0,$)})}function Vi(Ae,tt){i.$$.not_equal(Ft[tt.id],Ae)&&(Ft[tt.id]=Ae,t(3,Ft))}return i.$$set=Ae=>{"ref"in Ae&&t(0,$=Ae.ref),"supportLink"in Ae&&t(38,J=Ae.supportLink),"playerControlsHeight"in Ae&&t(1,W=Ae.playerControlsHeight),"returnFocus"in Ae&&t(39,ue=Ae.returnFocus)},i.$$.update=()=>{var Ae;if(i.$$.dirty[0]&128|i.$$.dirty[1]&512&&!Q&&dt&&Vt(),i.$$.dirty[0]&1&&$&&Ce.set($),i.$$.dirty[1]&16777216|i.$$.dirty[2]&3&&t(48,n=Kl(y,h,E)),i.$$.dirty[2]&36&&t(41,Qt=Ee&&ee&&!z),i.$$.dirty[2]&20&&t(42,At=K.features.trafficSaving&&!z&&L),i.$$.dirty[1]&524288|i.$$.dirty[2]&4&&t(43,Zt=a.length>0&&!z),i.$$.dirty[2]&12&&t(44,xt=!!N&&!z),i.$$.dirty[1]&4194304|i.$$.dirty[2]&4&&t(45,Ot=K.features.audioLanguages&&c.length>=2&&!z),i.$$.dirty[2]&4&&t(49,o=!z),i.$$.dirty[2]&3&&t(46,zi=E?G("auto_quality_option"):y),i.$$.dirty[1]&538968064&&t(47,di=(Ae=u.find(tt=>tt.value===V))==null?void 0:Ae.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&1073741824){let tt=S;tt&&(i1(Ci,tt),ki.set(void 0))}i.$$.dirty[0]&88|i.$$.dirty[1]&1072692224&&(t(4,Mt=[]),o&&Mt.push({id:"quality-settings",weight:ro["quality-settings"],type:"OPEN_SUB_MENU",subMenuId:"quality-sub",getSubItemForFocus:()=>{let tt=h.findIndex(Pt=>Pt.selected);return Ft["quality-sub"].children[tt+1]},ariaLabel:G("aria_label_menu_quality",{actual:zi}),icon:al,label:G("menu_quality"),value:n,valueComponent:D0}),Ot&&Mt.push({id:"audio-language-settings",weight:ro["audio-language-settings"],type:"OPEN_SUB_MENU",subMenuId:"audio-language-sub",getSubItemForFocus:()=>{let tt=c.findIndex(Pt=>Pt.id===(m==null?void 0:m.id));return Ft["audio-language-sub"].children[tt+1]},ariaLabel:G("aria_label_menu_audio_languages",{actual:xl(m,c)}),icon:V0,label:G("menu_audio_languages"),value:xl(m,c)}),xt&&Mt.push({id:"playback-rate-settings",weight:ro["playback-rate-settings"],type:"OPEN_SUB_MENU",subMenuId:"playback-rate-sub",getSubItemForFocus:()=>{let tt=u.findIndex(Pt=>Pt.selected);return Ft["playback-rate-sub"].children[tt+1]},ariaLabel:G("aria_label_menu_rate",{actual:di}),icon:L0,label:G("menu_playback_rate"),value:`${V}x`}),Zt&&Mt.push({id:"subtitles-settings",weight:ro["subtitles-settings"],type:"OPEN_SUB_MENU",subMenuId:"subtitles-sub",getSubItemForFocus:()=>{let tt=a.findIndex(Pt=>Pt.selected);return Ft["subtitles-sub"].children[tt+1]},ariaLabel:G("aria_label_menu_subtitle",{actual:C.displayValue}),icon:ul,label:G("subtitles_caption"),value:C.displayValue}),At&&Mt.push({id:"traffic-saving-settings",weight:ro["traffic-saving-settings"],type:"SWITCH",onClick:$t,ariaLabel:I?G("aria_label_submenu_traffic_saving_off"):`${G("aria_label_submenu_traffic_saving_on")}. ${G("traffic_saving_helper_text")}`,icon:M0,label:G("menu_traffic_saving"),enabled:I,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),Qt&&Mt.push({id:"download",weight:ro.download,type:"CLICK",onClick:xe,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:A0}),K.showSupport&&Mt.push({id:"report",weight:ro.report,type:"CLICK",onClick:Ze,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:B0,isHiddenFor:["desktop"]}),Mt.push({id:"copy-data",weight:ro["copy-data"],type:"CLICK",onClick:St,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:df,isHiddenFor:["desktop"]}),K.features.saveTraceInfoToFile&&Mt.push({id:"save-trace-info",weight:ro["save-trace-info"],type:"CLICK",onClick:jt,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:df,isHiddenFor:["desktop"]}),Mt.push({id:"debug-info",weight:ro["debug-info"],type:"CLICK",onClick:qt,label:g?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"),ariaLabel:G("menu_debug_overlay"),icon:R0,isHiddenFor:["desktop"]}),t(4,Mt=[...Mt,...v.map(tt=>({...tt,isAdditional:!0}))].filter(tt=>{var Pt,yi,wi;return!((Pt=tt.isHiddenFor)!=null&&Pt.length)||!((yi=tt.isHiddenFor)!=null&&yi.includes("desktop"))&&!s||!((wi=tt.isHiddenFor)!=null&&wi.includes("mobile"))&&s}).sort(lr))),i.$$.dirty[0]&96|i.$$.dirty[1]&33030144&&(t(5,li=[]),l["quality-sub"]&&li.push({id:"quality-sub",parentItemId:"quality-settings",title:G("submenu_quality"),closeSettingsMenu:et,items:[...h.map(tt=>({type:"SELECT_VALUE",value:tt.value,valueComponent:Wl,valueComponentParams:{quality:tt.value,label:tt.displayValue,isMobile:s,isSubCase:!0},selectItem:Ye,selected:tt.selected,label:tt.displayValue}))]}),l["audio-language-sub"]&&li.push({id:"audio-language-sub",parentItemId:"audio-language-settings",title:G("submenu_audio_languages"),closeSettingsMenu:et,items:c.map(tt=>({type:"SELECT_VALUE",value:tt,dataValue:tt.id,selectItem:Wt,selected:tt.id===(m==null?void 0:m.id),label:xl(tt,c)}))}),l["playback-rate-sub"]&&li.push({id:"playback-rate-sub",parentItemId:"playback-rate-settings",title:G("submenu_playback_rate"),closeSettingsMenu:et,items:u.map(tt=>({type:"SELECT_VALUE",value:tt.value,selectItem:zt,selected:tt.selected,label:tt.displayValue}))}),l["subtitles-sub"]&&li.push({id:"subtitles-sub",parentItemId:"subtitles-settings",minWidth:164,title:G("subtitles_caption"),closeSettingsMenu:et,items:a.map(tt=>({type:"SELECT_VALUE",value:tt,selectItem:Dt,selected:tt.selected,label:tt.displayValue}))}))},[$,W,Ci,Ft,Mt,li,s,Q,ct,A,fe,X,Me,ie,be,Te,Ie,Pe,ot,ze,te,pe,We,nt,st,rt,Qe,ce,$e,_e,Ct,yt,Vt,me,Gt,Yt,ki,Li,J,ue,dt,Qt,At,Zt,xt,Ot,zi,di,n,o,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,bi,ei,vi,Vi]}var yf=class extends H{constructor(e){super(),U(this,e,Zy,Qy,F,{ref:0,supportLink:38,playerControlsHeight:1,returnFocus:39},Ky,[-1,-1,-1,-1])}},jl=yf;var{window:Xy}=Xo;function $y(i){he(i,"svelte-13f9p53",".player-wrapper.svelte-13f9p53{position:absolute;width:100%;height:100%}.player-wrapper.svelte-13f9p53 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-13f9p53{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-13f9p53,.video-container.svelte-13f9p53,.ads-container.svelte-13f9p53{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-13f9p53{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-13f9p53{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-13f9p53{transition:none}.nocursor.svelte-13f9p53{cursor:none}.ads-container.svelte-13f9p53{z-index:var(--ads-container-z-index);background:var(--black)}.settings-menu.svelte-13f9p53{position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;transition:opacity 0.2s, visibility 0.2s}")}function Q0(i){var n;let e,t;return e=new Ul({props:{thumbUrl:i[4],startTime:(n=i[5])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&16&&(s.thumbUrl=o[4]),r[0]&32&&(s.startTime=(a=o[5])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function Z0(i){let e,t;return e=new qr({props:{kind:"recover",thumbUrl:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function X0(i){let e,t;return e=new qr({props:{kind:"record",thumbUrl:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function J0(i){let e,t,n;return t=new Ws({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-13f9p53"),j(e,"hidden",i[39]!=="ads")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,r){let s={};r[0]&512&&(s.adsSlotId=o[9]),r[0]&1024&&(s.adsParams=o[10]),r[0]&2048&&(s.adsPreviewParam=o[11]),r[0]&4096&&(s.duration=o[12]),t.$set(s),(!n||r[1]&256)&&j(e,"hidden",o[39]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function $0(i){let e,t;return e=new L1({props:{title:i[19],thumb:i[20],playNextVideo:i[24]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.title=n[19]),o[0]&1048576&&(r.thumb=n[20]),o[0]&16777216&&(r.playNextVideo=n[24]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function e_(i){let e,t;return e=new p0({props:{title:i[3],isHidden:!i[37]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.title=n[3]),o[1]&64&&(r.isHidden=!n[37]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function t_(i){let e,t;return e=new Dl({props:{isShifted:i[39]==="video"&&i[37]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&320&&(r.isShifted=n[39]==="video"&&n[37]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function i_(i){let e,t,n;return t=new Bs({props:{"aria-label":G("video360")}}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-13f9p53")},m(o,r){k(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function n_(i){let e,t;return e=new Fl({props:{thumbUrl:i[4],chromecastDeviceName:i[55]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16&&(r.thumbUrl=n[4]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function o_(i){let e,t;return e=new Ol({props:{shifted:i[37],captions:i[57],position:i[58],playerSize:i[35]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&64&&(r.shifted=n[37]),o[1]&67108864&&(r.captions=n[57]),o[1]&134217728&&(r.position=n[58]),o[1]&16&&(r.playerSize=n[35]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function r_(i){let e,t,n,o,r;return t=new Hl({}),{c(){e=P("div"),D(t.$$.fragment)},m(s,a){k(s,e,a),R(t,e,null),n=!0,o||(r=[ke(e,"contextmenu",si(i[110])),ke(e,"click",gt(i[121]))],o=!0)},p:de,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&w(e),B(t),o=!1,at(r)}}}function s_(i){let e,t,n,o;function r(l){i[161](l)}function s(l){i[162](l)}let a={bottomHidden:i[39]==="thumb"||i[39]==="LiveWaitingStart"||i[39]==="LiveWaitingRecover"||i[39]==="LiveWaitingRecord",bottomNoSmooth:i[51],showControls:i[37],isAds:i[39]==="ads",canRewindLive:i[7]&&i[59]!==0,logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[15],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],isOneVideoPlaylist:i[21],customFullscreenSupported:d_,playNextVideo:i[24],playPrevVideo:i[25],repeatPlaylist:i[26],toggleFullscreen:i[108],seekToInteractive:i[27],playPrevChapter:i[28]};return i[42]!==void 0&&(a.playerControlsWrapperRef=i[42]),i[43]!==void 0&&(a.playerControlsRef=i[43]),e=new Nl({props:a}),ge.push(()=>Ue(e,"playerControlsWrapperRef",r)),ge.push(()=>Ue(e,"playerControlsRef",s)),{c(){D(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[1]&256&&(c.bottomHidden=l[39]==="thumb"||l[39]==="LiveWaitingStart"||l[39]==="LiveWaitingRecover"||l[39]==="LiveWaitingRecord"),u[1]&1048576&&(c.bottomNoSmooth=l[51]),u[1]&64&&(c.showControls=l[37]),u[1]&256&&(c.isAds=l[39]==="ads"),u[0]&128|u[1]&268435456&&(c.canRewindLive=l[7]&&l[59]!==0),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&32768&&(c.logoTargetUrl=l[15]),u[0]&65536&&(c.showNextPrevButtons=l[16]),u[0]&131072&&(c.nextButtonActive=l[17]),u[0]&262144&&(c.prevButtonActive=l[18]),u[0]&2097152&&(c.isOneVideoPlaylist=l[21]),u[0]&16777216&&(c.playNextVideo=l[24]),u[0]&33554432&&(c.playPrevVideo=l[25]),u[0]&67108864&&(c.repeatPlaylist=l[26]),u[0]&134217728&&(c.seekToInteractive=l[27]),u[0]&268435456&&(c.playPrevChapter=l[28]),!t&&u[1]&2048&&(t=!0,c.playerControlsWrapperRef=l[42],qe(()=>t=!1)),!n&&u[1]&4096&&(n=!0,c.playerControlsRef=l[43],qe(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function l_(i){var a;let e,t,n,o;function r(l){i[164](l)}let s={supportLink:i[22],playerControlsHeight:(a=i[43])==null?void 0:a.clientHeight,returnFocus:i[163]};return i[30]!==void 0&&(s.ref=i[30]),t=new jl({props:s}),ge.push(()=>Ue(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","settings-menu svelte-13f9p53")},m(l,u){k(l,e,u),R(t,e,null),o=!0},p(l,u){var m;let c={};u[0]&4194304&&(c.supportLink=l[22]),u[1]&4096&&(c.playerControlsHeight=(m=l[43])==null?void 0:m.clientHeight),u[0]&2&&(c.returnFocus=l[163]),!n&&u[0]&1073741824&&(n=!0,c.ref=l[30],qe(()=>n=!1)),t.$set(c)},i(l){o||(d(t.$$.fragment,l),o=!0)},o(l){p(t.$$.fragment,l),o=!1},d(l){l&&w(e),B(t)}}}function a_(i){let e,t;return e=new Ar({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function u_(i){let e,t;return e=new U1({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function c_(i){let e,t;return e=new $s({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function f_(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,ae,Q;e=new ql({props:{hidden:i[39]!=="thumb"||i[38]||i[94]&&i[6],thumbUrl:i[4],startVideo:i[29]}});let $=i[39]==="LiveWaitingStart"&&Q0(i),J=i[39]==="LiveWaitingRecover"&&Z0(i),W=i[39]==="LiveWaitingRecord"&&X0(i),ue=i[8]&&i[23]&&J0(i),x=i[32]&&i[19]&&i[20]&&$0(i),K=i[46]&&e_(i),A=i[50]&&t_(i),fe=i[54]&&i_(i),X=i[40]&&n_(i),Me=i[56].value!=="off"&&o_(i),ie=i[38]&&r_(i),be=i[23]&&s_(i),Te=!i[40]&&i[39]!=="ads"&&l_(i);C=new js({props:{isLive:i[60],isHidden:!i[45],isPlaying:i[52],position:i[58],duration:i[61]}}),S=new n0({props:{data:i[105]}});function Ie(te){i[166](te)}let Pe={supportLink:i[22],returnFocus:i[165],visible:i[34],playerContainerRef:i[41],controlsContainerRef:i[42],position:i[62]};i[33]!==void 0&&(Pe.menuElementRef=i[33]),E=new d1({props:Pe}),ge.push(()=>Ue(E,"menuElementRef",Ie));let ot=i[44]&&a_(i),Ee=i[63]&&u_(i),ze=i[64]&&c_(i);return{c(){D(e.$$.fragment),t=Y(),$&&$.c(),n=Y(),J&&J.c(),o=Y(),W&&W.c(),r=Y(),ue&&ue.c(),s=Y(),x&&x.c(),a=Y(),K&&K.c(),l=Y(),A&&A.c(),u=Y(),fe&&fe.c(),c=Y(),X&&X.c(),m=Y(),Me&&Me.c(),h=Y(),ie&&ie.c(),v=Y(),be&&be.c(),g=Y(),Te&&Te.c(),I=Y(),D(C.$$.fragment),V=Y(),D(S.$$.fragment),y=Y(),D(E.$$.fragment),N=Y(),ot&&ot.c(),L=Y(),Ee&&Ee.c(),ee=Y(),ze&&ze.c(),ae=Xe()},m(te,pe){R(e,te,pe),k(te,t,pe),$&&$.m(te,pe),k(te,n,pe),J&&J.m(te,pe),k(te,o,pe),W&&W.m(te,pe),k(te,r,pe),ue&&ue.m(te,pe),k(te,s,pe),x&&x.m(te,pe),k(te,a,pe),K&&K.m(te,pe),k(te,l,pe),A&&A.m(te,pe),k(te,u,pe),fe&&fe.m(te,pe),k(te,c,pe),X&&X.m(te,pe),k(te,m,pe),Me&&Me.m(te,pe),k(te,h,pe),ie&&ie.m(te,pe),k(te,v,pe),be&&be.m(te,pe),k(te,g,pe),Te&&Te.m(te,pe),k(te,I,pe),R(C,te,pe),k(te,V,pe),R(S,te,pe),k(te,y,pe),R(E,te,pe),k(te,N,pe),ot&&ot.m(te,pe),k(te,L,pe),Ee&&Ee.m(te,pe),k(te,ee,pe),ze&&ze.m(te,pe),k(te,ae,pe),Q=!0},p(te,pe){let Ce={};pe[0]&64|pe[1]&384&&(Ce.hidden=te[39]!=="thumb"||te[38]||te[94]&&te[6]),pe[0]&16&&(Ce.thumbUrl=te[4]),pe[0]&536870912&&(Ce.startVideo=te[29]),e.$set(Ce),te[39]==="LiveWaitingStart"?$?($.p(te,pe),pe[1]&256&&d($,1)):($=Q0(te),$.c(),d($,1),$.m(n.parentNode,n)):$&&(se(),p($,1,1,()=>{$=null}),le()),te[39]==="LiveWaitingRecover"?J?(J.p(te,pe),pe[1]&256&&d(J,1)):(J=Z0(te),J.c(),d(J,1),J.m(o.parentNode,o)):J&&(se(),p(J,1,1,()=>{J=null}),le()),te[39]==="LiveWaitingRecord"?W?(W.p(te,pe),pe[1]&256&&d(W,1)):(W=X0(te),W.c(),d(W,1),W.m(r.parentNode,r)):W&&(se(),p(W,1,1,()=>{W=null}),le()),te[8]&&te[23]?ue?(ue.p(te,pe),pe[0]&8388864&&d(ue,1)):(ue=J0(te),ue.c(),d(ue,1),ue.m(s.parentNode,s)):ue&&(se(),p(ue,1,1,()=>{ue=null}),le()),te[32]&&te[19]&&te[20]?x?(x.p(te,pe),pe[0]&1572864|pe[1]&2&&d(x,1)):(x=$0(te),x.c(),d(x,1),x.m(a.parentNode,a)):x&&(se(),p(x,1,1,()=>{x=null}),le()),te[46]?K?(K.p(te,pe),pe[1]&32768&&d(K,1)):(K=e_(te),K.c(),d(K,1),K.m(l.parentNode,l)):K&&(se(),p(K,1,1,()=>{K=null}),le()),te[50]?A?(A.p(te,pe),pe[1]&524288&&d(A,1)):(A=t_(te),A.c(),d(A,1),A.m(u.parentNode,u)):A&&(se(),p(A,1,1,()=>{A=null}),le()),te[54]?fe?pe[1]&8388608&&d(fe,1):(fe=i_(te),fe.c(),d(fe,1),fe.m(c.parentNode,c)):fe&&(se(),p(fe,1,1,()=>{fe=null}),le()),te[40]?X?(X.p(te,pe),pe[1]&512&&d(X,1)):(X=n_(te),X.c(),d(X,1),X.m(m.parentNode,m)):X&&(se(),p(X,1,1,()=>{X=null}),le()),te[56].value!=="off"?Me?(Me.p(te,pe),pe[1]&33554432&&d(Me,1)):(Me=o_(te),Me.c(),d(Me,1),Me.m(h.parentNode,h)):Me&&(se(),p(Me,1,1,()=>{Me=null}),le()),te[38]?ie?(ie.p(te,pe),pe[1]&128&&d(ie,1)):(ie=r_(te),ie.c(),d(ie,1),ie.m(v.parentNode,v)):ie&&(se(),p(ie,1,1,()=>{ie=null}),le()),te[23]?be?(be.p(te,pe),pe[0]&8388608&&d(be,1)):(be=s_(te),be.c(),d(be,1),be.m(g.parentNode,g)):be&&(se(),p(be,1,1,()=>{be=null}),le()),!te[40]&&te[39]!=="ads"?Te?(Te.p(te,pe),pe[1]&768&&d(Te,1)):(Te=l_(te),Te.c(),d(Te,1),Te.m(I.parentNode,I)):Te&&(se(),p(Te,1,1,()=>{Te=null}),le());let We={};pe[1]&536870912&&(We.isLive=te[60]),pe[1]&16384&&(We.isHidden=!te[45]),pe[1]&2097152&&(We.isPlaying=te[52]),pe[1]&134217728&&(We.position=te[58]),pe[1]&1073741824&&(We.duration=te[61]),C.$set(We);let nt={};pe[0]&4194304&&(nt.supportLink=te[22]),pe[0]&2&&(nt.returnFocus=te[165]),pe[1]&8&&(nt.visible=te[34]),pe[1]&1024&&(nt.playerContainerRef=te[41]),pe[1]&2048&&(nt.controlsContainerRef=te[42]),pe[2]&1&&(nt.position=te[62]),!z&&pe[1]&4&&(z=!0,nt.menuElementRef=te[33],qe(()=>z=!1)),E.$set(nt),te[44]?ot?pe[1]&8192&&d(ot,1):(ot=a_(te),ot.c(),d(ot,1),ot.m(L.parentNode,L)):ot&&(se(),p(ot,1,1,()=>{ot=null}),le()),te[63]?Ee?pe[2]&2&&d(Ee,1):(Ee=u_(te),Ee.c(),d(Ee,1),Ee.m(ee.parentNode,ee)):Ee&&(se(),p(Ee,1,1,()=>{Ee=null}),le()),te[64]?ze?pe[2]&4&&d(ze,1):(ze=c_(te),ze.c(),d(ze,1),ze.m(ae.parentNode,ae)):ze&&(se(),p(ze,1,1,()=>{ze=null}),le())},i(te){Q||(d(e.$$.fragment,te),d($),d(J),d(W),d(ue),d(x),d(K),d(A),d(fe),d(X),d(Me),d(ie),d(be),d(Te),d(C.$$.fragment,te),d(S.$$.fragment,te),d(E.$$.fragment,te),d(ot),d(Ee),d(ze),Q=!0)},o(te){p(e.$$.fragment,te),p($),p(J),p(W),p(ue),p(x),p(K),p(A),p(fe),p(X),p(Me),p(ie),p(be),p(Te),p(C.$$.fragment,te),p(S.$$.fragment,te),p(E.$$.fragment,te),p(ot),p(Ee),p(ze),Q=!1},d(te){te&&(w(t),w(n),w(o),w(r),w(s),w(a),w(l),w(u),w(c),w(m),w(h),w(v),w(g),w(I),w(V),w(y),w(N),w(L),w(ee),w(ae)),B(e,te),$&&$.d(te),J&&J.d(te),W&&W.d(te),ue&&ue.d(te),x&&x.d(te),K&&K.d(te),A&&A.d(te),fe&&fe.d(te),X&&X.d(te),Me&&Me.d(te),ie&&ie.d(te),be&&be.d(te),Te&&Te.d(te),B(C,te),B(S,te),B(E,te),ot&&ot.d(te),Ee&&Ee.d(te),ze&&ze.d(te)}}}function e8(i){let e,t,n,o,r=i[53],s,a,l,u,c=f_(i);return{c(){e=P("div"),t=P("div"),o=Y(),c.c(),s=Xe(),f(t,"class","video-container svelte-13f9p53"),f(t,"style",n=`transform: rotate(${i[36]}deg) scale(${i[48]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[52]),j(t,"fast-rotate",!i[2].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-13f9p53"),j(e,"hidden",i[39]!=="video"),j(e,"nocursor",i[47])},m(m,h){k(m,e,h),_(e,t),i[160](t),k(m,o,h),c.m(m,h),k(m,s,h),a=!0,l||(u=[ke(e,"contextmenu",si(i[110])),ke(e,"mousedown",si(i[115])),ke(e,"mouseup",si(i[116])),ke(e,"click",si(i[118])),ke(e,"dblclick",si(i[117]))],l=!0)},p(m,h){(!a||h[1]&131104&&n!==(n=`transform: rotate(${m[36]}deg) scale(${m[48]})`))&&f(t,"style",n),(!a||h[1]&2097152)&&f(t,"data-is-playing",m[52]),(!a||h[0]&4)&&j(t,"fast-rotate",!m[2].isSmoothVideoRotate),(!a||h[1]&256)&&j(e,"hidden",m[39]!=="video"),(!a||h[1]&65536)&&j(e,"nocursor",m[47]),h[1]&4194304&&F(r,r=m[53])?(se(),p(c,1,1,de),le(),c=f_(m),c.c(),d(c,1),c.m(s.parentNode,s)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){p(c),a=!1},d(m){m&&(w(e),w(o),w(s)),i[160](null),c.d(m),l=!1,at(u)}}}function t8(i){let e,t,n,o,r,s,a,l={toggleFullscreen:i[108],hideContextMenu:i[109],showHotKeyHelpers:i[119],showKeyMap:i[120],isAds:i[39]==="ads",fakePlayButtonHandler:i[49]?i[107]:void 0,$$slots:{default:[e8]},$$scope:{ctx:i}};return t=new V1({props:l}),i[167](t),{c(){e=P("div"),D(t.$$.fragment),n=Y(),o=P("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-13f9p53")},m(u,c){k(u,e,c),R(t,e,null),_(e,n),_(e,o),i[168](o),i[169](e),r=!0,s||(a=[ke(Xy,"blur",i[109]),ke(e,"mouseenter",i[111]),ke(e,"mouseleave",i[113]),ke(e,"mousemove",i[114]),ke(e,"click",i[122],!0),ke(e,"focusin",i[112],!0)],s=!0)},p(u,c){let m={};c[1]&256&&(m.isAds=u[39]==="ads"),c[1]&262144&&(m.fakePlayButtonHandler=u[49]?u[107]:void 0),c[0]&2147483647|c[1]&2147221502|c[2]&7|c[6]&1024&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){p(t.$$.fragment,u),r=!1},d(u){u&&w(e),i[167](null),B(t),i[168](null),i[169](null),s=!1,at(a)}}}var d_=!0;function kf(i){return i?i.offsetTop+kf(i.offsetParent):0}function m_(i){return i?i.offsetLeft+m_(i.offsetParent):0}function i8(i,e,t){let n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,ae,Q,$,J,W,ue,x,K,A,fe,X,Me,ie,be,Te,Ie,Pe,ot,Ee,ze,te,pe,{store:Ce}=e,{uiConfig:We}=e,{title:nt}=e,{thumbUrl:st}=e,{videoContainer:rt}=e,{interactiveContainer:Qe}=e,{live:ce}=e,{autoplay:Se}=e,{canRewindLive:$e}=e,{showAds:De}=e,{adsSlotId:et=void 0}=e,{adsParams:He=void 0}=e,{adsPreviewParam:ut=void 0}=e,{duration:ct=void 0}=e,{logoClickable:_e}=e,{logoHidden:dt}=e,{logoTargetUrl:bt=""}=e,{showNextPrevButtons:Ct=!1}=e,{nextButtonActive:yt=!1}=e,{prevButtonActive:Ye=!1}=e,{endScreenVideoTitle:Wt=void 0}=e,{endScreenVideoThumb:$t=void 0}=e,{isOneVideoPlaylist:zt=!1}=e,{supportLink:Dt}=e,{shadowRootContainer:Kt=void 0}=e,{outerContainerRef:Vt=void 0}=e,{playerStarted:xe=!1}=e,{fullScreenTarget:Ze=void 0}=e,{showMiniTimer:St=!1}=e,{showEndScreen:jt=!0}=e,{keyboardControls:qt}=e,{playNextVideo:me=wf}=e,{playPrevVideo:Gt=wf}=e,{repeatPlaylist:Yt=wf}=e,{seekToInteractive:Qt}=e,{playPrevChapter:At}=e,{firstStart:Zt}=e,xt=Ce.getLogger().createComponentLog("Root component"),Ot=Ce.interfaceLanguage$;q(i,Ot,Z=>t(53,X=Z));let zi=Ce.state.playbackState$;q(i,zi,Z=>t(157,x=Z));let di=Ce.ads.playbackState;q(i,di,Z=>t(158,K=Z));let ki=Ce.state.positionWithScrubbing$;q(i,ki,Z=>t(58,Ie=Z));let Ci=Ce.state.duration$;q(i,Ci,Z=>t(61,Ee=Z));let Ft=Ce.playerPhase;q(i,Ft,Z=>t(39,Q=Z));let Li=Ce.ui.isFullscreen;q(i,Li,Z=>t(147,I=Z));let Mt=Ce.ui.controlsVisible;q(i,Mt,Z=>t(37,z=Z));let li=Ce.ui.settingsMenu.visible$;q(i,li,Z=>t(145,u=Z));let bi=Ce.ui.settingsMenu.openedByBtnKeyboard$;q(i,bi,Z=>t(144,l=Z));let ei=Ce.ui.scrubbingInProgress;q(i,ei,Z=>t(149,y=Z));let vi=Ce.ui.contextMenu.visible$;q(i,vi,Z=>t(34,n=Z));let Vi=Ce.ui.debugPanelVisible;q(i,Vi,Z=>t(64,pe=Z));let Ae=Ce.state.isLoaderVisible;q(i,Ae,Z=>t(159,A=Z));let tt=Ce.state.isEnded$;q(i,tt,Z=>t(146,m=Z));let Pt=Ce.state.chromecastConnected$;q(i,Pt,Z=>t(40,W=Z));let yi=Ce.state.chromecastDeviceName$;q(i,yi,Z=>t(55,ie=Z));let wi=Ce.ads.postrollPassed;q(i,wi,Z=>t(152,ee=Z));let Ht=Ce.state.isLive$;q(i,Ht,Z=>t(60,ot=Z));let Si=Ce.state.isPlaying$;q(i,Si,Z=>t(52,fe=Z));let mi=Ce.state.crashed$;q(i,mi,Z=>t(38,L=Z));let Xi=Ce.webApi.annotationsApi,Ut=Ce.webApi.pictureInPictureApi,un=Ce.state.currentSubtitle$;q(i,un,Z=>t(56,be=Z));let Ti=Ce.state.currentSubtitleCaptions$;q(i,Ti,Z=>t(57,Te=Z));let cn=Ce.state.duration$;q(i,cn,Z=>t(59,Pe=Z));let fn=Ce.state.graphIsOpened$;q(i,fn,Z=>t(153,ae=Z));let dn=Ce.ui.playerSize;q(i,dn,Z=>t(35,v=Z));let Ri=Ce.ui.is3DVideo;q(i,Ri,Z=>t(50,h=Z));let xi=Ce.ui.icon3DVideoVisible;q(i,xi,Z=>t(54,Me=Z));let ri=Ce.ui.rotateAlpha;q(i,ri,Z=>t(36,S=Z));let Ji=Ce.state.isInteractive,Wi=Ce.state.isInteractiveTime$;q(i,Wi,Z=>t(150,E=Z));let Bi=Ce.state.isInteractiveExpectation$;q(i,Bi,Z=>t(156,ue=Z));let Sn=Ce.state.hasInteractiveBranches,pi=Ce.ui.touched;q(i,pi,Z=>t(154,$=Z));let Ni=Ce.ui.modals.hotKeyMap.data;q(i,Ni,Z=>t(176,c=Z));let Di=Ce.ui.modals.hotKeyMap.show;q(i,Di,Z=>t(63,te=Z));let mn=Ce.ui.overlayContainer$,Ii=Ce.ui.controls.interactiveTimeIndicator;q(i,Ii,Z=>t(177,g=Z));let Oi=Ce.state.showInteractiveTimeIndicator,Pi=Ce.ui.contextMenu.position$;q(i,Pi,Z=>t(62,ze=Z));let Rt=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:ti}=Dn();q(i,ti,Z=>t(148,V=Z));let ai,Fi,pn,lt,Hi,ui,qi;Ni.set(zd());let Ki,ji,Ge=Ne(!1);q(i,Ge,Z=>t(51,C=Z));let Hn,_n=Ne(!1);q(i,_n,Z=>t(155,J=Z));let hn=Ne(),$i=Ne(!1);q(i,$i,Z=>t(151,N=Z));let en=!1,tn=!1,nn=!1,_i=!(Se&&!We.controls.showOnStartupAtAutoplay),Tn,gn,qn,on,bn,vn=!1,In,Pn=!1,{toggle:rn}=ti,En=!1,sn=null;Ut==null||Ut.setContext($r());let so=()=>{Se&&!Ji&&We.controls.showOnStartupAtAutoplay&&ci(We.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:so});let lo=()=>{window.clearTimeout(Hi),_n.set(!1)},ao=()=>{window.clearTimeout(ui),hn.set(null)},ci=Z=>{lo(),_n.set(!0),Hi=window.setTimeout(()=>_n.set(!1),Z);let vt=Z-100;Hn=window.setTimeout(()=>{C&&Ge.set(!1)},vt>0?vt:Z)},Un=(Z,vt)=>{ao(),hn.set(vt),ui=window.setTimeout(()=>hn.set(null),Z)},Yn=Ri.subscribe(Z=>{xi.set(Z),Z&&(window.clearTimeout(qi),qi=window.setTimeout(()=>xi.set(!1),We.controls.hide360IconTimeout))}),Qn=async()=>{var vt,Yi,Ui,fo;let Z=Ro();if(Z){let wn=ns(),mo=Zn();Z=wn===mo||wn===Kt}if(Z){ci(We.controls.hideTimeoutFullscreen);try{await(Ut==null?void 0:Ut.remove())}catch(wn){xt({message:String(wn)})}}Li.set(Z),Ce.getAdmanWrapper().setFullscreen(Z),I?(Yi=(vt=Ce.callbacks)==null?void 0:vt.onFullscreenEnter)==null||Yi.call(vt):(fo=(Ui=Ce.callbacks)==null?void 0:Ui.onFullscreenExit)==null||fo.call(Ui)},zn=Z=>{let vt=Z;dn.set({width:vt.target.width,height:vt.target.height})};Nt(()=>{var vt;return zs(Qn),We.features.annotationsInside&&(Xi==null||Xi.init(ai)),rr(Ut)&&(Ut==null||Ut.assignPlayerContainer(ai),Ut==null||Ut.registryExternalEventHandlers({resize:zn})),Qe&&((vt=rt.parentElement)==null||vt.insertBefore(Qe,rt.nextSibling)),()=>{window.clearTimeout(Hi),window.clearTimeout(Hn),window.clearTimeout(ui),window.clearTimeout(qi),Yn(),Ut==null||Ut.dispose(),xs(Qn)}});let Zn=()=>{let Z=We.features.fullscreenInternalTargetPlayerContainer||!Vt?ai:Vt,vt=Z.getRootNode(),Yi=vt instanceof ShadowRoot?vt.host:vt,Ui=Ze instanceof HTMLElement&&Ze.contains(Yi);return We.allowChangingFullscreenTarget&&Ze&&Ui?Ze:Z},Gi=async()=>{Ro()?(await Us(document),xt({message:"exit fullscreen"})):(xt({message:"request fullscreen"}),await qs(Zn()))},yn=()=>{Rt(),vi.set(!1)},Xn=Z=>{vi.set(!0),Pi.set({left:Z.clientX,top:Z.clientY})};function Jn(){$i.set(!0),Ji||ci(We.controls.hideTimeoutCursor)}function uo(){Ji||(Ge.set(!0),ci(We.controls.hideTimeoutCursor))}function oe(){$i.set(!1),t(135,tn=!1),t(134,en=!1),En=!1,Ce.actions.internal.releaseCamera()}function wt(Z){if(g&&Oi){let vt=Z.currentTarget,Yi=kf(vt),Ui=m_(vt),fo=Z.pageX-Ui,wn=Z.pageY-Yi,{left:mo,bottom:Zo,right:wo}=g,fr=wo-mo;return fo>=mo-fr&&wn<=Zo+fr}}function ln(Z){if(ai){let vt=kf(Z.currentTarget),Yi=v.height,Ui=Z.pageY-vt;if(wt(Z)){t(135,tn=!1);return}Ui<40?t(135,tn=!0):Ui>Yi-40?t(134,en=!0):(t(135,tn=!1),u||t(134,en=!1))}}function Ei(Z){ln(Z),Tn||ci(We.controls.hideTimeoutCursor),h&&En&&sn&&Ce.actions.internal.moveCameraFocusPX(sn.clientX-Z.clientX,sn.clientY-Z.clientY,Z.timeStamp-sn.timeStamp),sn=Z}let xn=Z=>{Z.button===0&&(En=!0,Ce.actions.internal.holdCamera()),ci(We.controls.hideTimeoutCursor)},ne=Z=>{Z.button===0&&(sn=Z,En=!1,Ce.actions.internal.releaseCamera()),ci(We.controls.hideTimeoutCursor)},$n=()=>{d_&&(xt({message:"double click on video"}),Gi(),ci(We.controls.hideTimeoutCursor))},bo=()=>{if(n||u){yn();return}if(!(m&&!Sn)){if(Pn)return rn();if(qt==null||qt.focus(),!xe){Zt(),ci(We.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),ci(We.controls.hideTimeoutCursor)}},Ao=Z=>{yn(),pi.set(!0),ci(We.controls.hideTimeout),Z&&Un(We.controls.hideHotKeyHelpers,Z)},vo=()=>{var Z,vt;yn(),(Z=Ce.callbacks)!=null&&Z.onOpenHotKeyMap?(vt=Ce.callbacks)==null||vt.onOpenHotKeyMap(c):Di.update(Yi=>!Yi)},Mo=()=>{if(n||u){yn();return}},zr=()=>{pi.set(!0)},eo=Ce.ui.contextMenu.openedByBtnKeyboard$;q(i,eo,Z=>t(143,a=Z));let to=Ce.ui.contextMenu.btnRef$;q(i,to,Z=>t(142,s=Z));let An,co=Ce.ui.contextMenu.openedByHotKey$;q(i,co,Z=>t(141,r=Z));let yo=Ce.ui.contextMenu.lastActiveElem$;q(i,yo,Z=>t(140,o=Z));function Mn(Z){ge[Z?"unshift":"push"](()=>{rt=Z,t(0,rt)})}function zo(Z){Fi=Z,t(42,Fi)}function xo(Z){pn=Z,t(43,pn)}let Ln=()=>qt==null?void 0:qt.focus();function Wo(Z){lt=Z,t(30,lt)}let Ko=()=>qt==null?void 0:qt.focus();function jo(Z){An=Z,t(33,An)}function Go(Z){ge[Z?"unshift":"push"](()=>{qt=Z,t(1,qt)})}function Yo(Z){ge[Z?"unshift":"push"](()=>{ji=Z,t(31,ji)})}function Qo(Z){ge[Z?"unshift":"push"](()=>{ai=Z,t(41,ai)})}return i.$$set=Z=>{"store"in Z&&t(127,Ce=Z.store),"uiConfig"in Z&&t(2,We=Z.uiConfig),"title"in Z&&t(3,nt=Z.title),"thumbUrl"in Z&&t(4,st=Z.thumbUrl),"videoContainer"in Z&&t(0,rt=Z.videoContainer),"interactiveContainer"in Z&&t(128,Qe=Z.interactiveContainer),"live"in Z&&t(5,ce=Z.live),"autoplay"in Z&&t(6,Se=Z.autoplay),"canRewindLive"in Z&&t(7,$e=Z.canRewindLive),"showAds"in Z&&t(8,De=Z.showAds),"adsSlotId"in Z&&t(9,et=Z.adsSlotId),"adsParams"in Z&&t(10,He=Z.adsParams),"adsPreviewParam"in Z&&t(11,ut=Z.adsPreviewParam),"duration"in Z&&t(12,ct=Z.duration),"logoClickable"in Z&&t(13,_e=Z.logoClickable),"logoHidden"in Z&&t(14,dt=Z.logoHidden),"logoTargetUrl"in Z&&t(15,bt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(16,Ct=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(17,yt=Z.nextButtonActive),"prevButtonActive"in Z&&t(18,Ye=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(19,Wt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(20,$t=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(21,zt=Z.isOneVideoPlaylist),"supportLink"in Z&&t(22,Dt=Z.supportLink),"shadowRootContainer"in Z&&t(129,Kt=Z.shadowRootContainer),"outerContainerRef"in Z&&t(130,Vt=Z.outerContainerRef),"playerStarted"in Z&&t(23,xe=Z.playerStarted),"fullScreenTarget"in Z&&t(131,Ze=Z.fullScreenTarget),"showMiniTimer"in Z&&t(132,St=Z.showMiniTimer),"showEndScreen"in Z&&t(133,jt=Z.showEndScreen),"keyboardControls"in Z&&t(1,qt=Z.keyboardControls),"playNextVideo"in Z&&t(24,me=Z.playNextVideo),"playPrevVideo"in Z&&t(25,Gt=Z.playPrevVideo),"repeatPlaylist"in Z&&t(26,Yt=Z.repeatPlaylist),"seekToInteractive"in Z&&t(27,Qt=Z.seekToInteractive),"playPrevChapter"in Z&&t(28,At=Z.playPrevChapter),"firstStart"in Z&&t(29,Zt=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&384|i.$$.dirty[5]&24&&t(44,Ki=(Q==="video"&&A||Q==="ads"&&K==="inactive")&&!L),i.$$.dirty[1]&1&&mn.set(ji),i.$$.dirty[4]&8192|i.$$.dirty[5]&4&&(t(136,nn=_i&&x!==Jy.PLAYING),_i||t(137,_i=!0)),i.$$.dirty[4]&69213184|i.$$.dirty[5]&2&&t(138,Tn=E&&!u&&!(en||tn)&&!(nn&&!ue)),i.$$.dirty[1]&896|i.$$.dirty[4]&35672064|i.$$.dirty[5]&1&&Mt.set((nn||u||y||W||J)&&!Tn&&(Q==="video"||Q==="ads")&&!L),i.$$.dirty[0]&4|i.$$.dirty[1]&448|i.$$.dirty[4]&1073742080&&t(45,gn=We.features.thumbTimer&&St&&Q==="video"&&!z&&!L&&!Ji&&(We.hideThumbTimerAfterTouch&&!$||!We.hideThumbTimerAfterTouch)),i.$$.dirty[1]&256|i.$$.dirty[4]&545259520&&t(46,qn=Q==="video"&&!ae&&I),i.$$.dirty[0]&256|i.$$.dirty[1]&128|i.$$.dirty[4]&272630272&&t(32,on=jt&&(De&&ee||!De)&&m&&!L),i.$$.dirty[1]&66|i.$$.dirty[4]&201326592&&t(47,bn=N&&!(z||on)&&!E),i.$$.dirty[0]&4|i.$$.dirty[4]&100696064&&(!y&&vn&&!E&&ci(We.controls.hideTimeoutCursor),t(139,vn=y)),i.$$.dirty[0]&1|i.$$.dirty[1]&48&&t(48,In=rt&&S%180?v.height/v.width:1),i.$$.dirty[4]&16777216&&t(49,Pn=V!==null),i.$$.dirty[0]&1073741824|i.$$.dirty[4]&3145728&&ho(lt,u,l),i.$$.dirty[1]&12|i.$$.dirty[4]&524288&&ho(An,n,a),i.$$.dirty[1]&8|i.$$.dirty[4]&262144){let Z=s;Z&&Ir(Z,n,eo)}if(i.$$.dirty[1]&12|i.$$.dirty[4]&131072&&ho(An,n,r),i.$$.dirty[1]&8|i.$$.dirty[4]&65536){let Z=o;Z&&t1(Z,n,co)}},[rt,qt,We,nt,st,ce,Se,$e,De,et,He,ut,ct,_e,dt,bt,Ct,yt,Ye,Wt,$t,zt,Dt,xe,me,Gt,Yt,Qt,At,Zt,lt,ji,on,An,n,v,S,z,L,Q,W,ai,Fi,pn,Ki,gn,qn,bn,In,Pn,h,C,fe,X,Me,ie,be,Te,Ie,Pe,ot,Ee,ze,te,pe,Ot,zi,di,ki,Ci,Ft,Li,Mt,li,bi,ei,vi,Vi,Ae,tt,Pt,yi,wi,Ht,Si,mi,un,Ti,cn,fn,dn,Ri,xi,ri,Ji,Wi,Bi,pi,Ni,Di,Ii,Pi,ti,Ge,_n,hn,$i,rn,Gi,yn,Xn,Jn,uo,oe,Ei,xn,ne,$n,bo,Ao,vo,Mo,zr,eo,to,co,yo,Ce,Qe,Kt,Vt,Ze,St,jt,en,tn,nn,_i,Tn,vn,o,r,s,a,l,u,m,I,V,y,E,N,ee,ae,$,J,ue,x,K,A,Mn,zo,xo,Ln,Wo,Ko,jo,Go,Yo,Qo]}var Cf=class extends H{constructor(e){super(),U(this,e,i8,t8,F,{store:127,uiConfig:2,title:3,thumbUrl:4,videoContainer:0,interactiveContainer:128,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,logoTargetUrl:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,shadowRootContainer:129,outerContainerRef:130,playerStarted:23,fullScreenTarget:131,showMiniTimer:132,showEndScreen:133,keyboardControls:1,playNextVideo:24,playPrevVideo:25,repeatPlaylist:26,seekToInteractive:27,playPrevChapter:28,firstStart:29},$y,[-1,-1,-1,-1,-1,-1,-1])}},p_=Cf;import{PlaybackState as c8}from"@vkontakte/videoplayer-core";import{clientChecker as Gl,noop as Yl}from"@vkontakte/videoplayer-shared";function n8(i){he(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function __(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C=G("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",V;return{c(){e=P("div"),n=Y(),o=P("div"),r=P("div"),s=P("div"),l=Y(),u=P("div"),m=Y(),h=P("div"),g=Y(),I=P("p"),V=Oe(C),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(s,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",v="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(I,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(S,y){k(S,e,y),k(S,n,y),k(S,o,y),_(o,r),_(r,s),_(r,l),_(r,u),_(r,m),_(r,h),_(o,g),_(o,I),_(I,V)},p(S,y){y&1&&t!==(t="semicircle "+S[0]+" svelte-nhq2ld")&&f(e,"class",t),y&1&&a!==(a="triangle "+S[0]+" svelte-nhq2ld")&&f(s,"class",a),y&1&&c!==(c="triangle "+S[0]+" svelte-nhq2ld")&&f(u,"class",c),y&1&&v!==(v="triangle "+S[0]+" svelte-nhq2ld")&&f(h,"class",v),y&4&&C!==(C=G("doubletap_seek_step",{seconds:S[2].toFixed(0)})+"")&&Ke(V,C)},d(S){S&&(w(e),w(n),w(o))}}}function o8(i){let e,t,n,o,r=i[1]&&__(i);return{c(){e=P("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(s,a){k(s,e,a),r&&r.m(e,null),n||(o=ke(e,"click",gt(i[3]())),n=!0)},p(s,[a]){s[1]?r?r.p(s,a):(r=__(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+s[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:de,o:de,d(s){s&&w(e),r&&r.d(),n=!1,o()}}}function r8(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:s}=e,a=!1,l=0,u=0,c=o,m=()=>()=>{u+=1,t(2,c=o*(u-1)),u===1?r():(t(1,a=!0),s()),window.clearTimeout(l),l=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return io(()=>{window.clearTimeout(l)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(4,o=h.seekStep),"handleSingleFirstClick"in h&&t(5,r=h.handleSingleFirstClick),"handleSecondClick"in h&&t(6,s=h.handleSecondClick)},[n,a,c,m,o,r,s]}var Sf=class extends H{constructor(e){super(),U(this,e,r8,o8,F,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},n8)}},Tf=Sf;function s8(i){he(i,"svelte-i9411",".overlay.svelte-i9411{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-i9411{position:absolute;top:50%;left:16px;right:16px;z-index:var(--end-screen-mobile-z-index);transform:translateY(-50%);display:flex;flex-direction:column;max-width:362px;margin:0 auto}.top.svelte-i9411{display:flex;justify-content:space-between}.caption.svelte-i9411{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-i9411{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-i9411{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-i9411{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-i9411{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-i9411{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function h_(i){let e,t;return e=new tl({props:{isRunning:i[3],onTimerEnded:i[7]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isRunning=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function l8(i){let e,t,n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z;a=new el({}),a.$on("click",i[8]);let N=i[2]&&h_(i);return{c(){e=P("div"),t=Y(),n=P("div"),o=P("div"),r=P("div"),r.textContent=`${G("end_screen_next_video")}`,s=Y(),D(a.$$.fragment),l=Y(),u=P("div"),c=P("div"),m=P("div"),h=P("div"),v=Y(),N&&N.c(),I=Y(),C=P("div"),V=P("div"),S=Oe(i[0]),f(e,"class","overlay svelte-i9411"),f(r,"class","caption svelte-i9411"),f(o,"class","top svelte-i9411"),f(h,"class","thumb-overlay svelte-i9411"),f(m,"class","thumb svelte-i9411"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-i9411"),f(V,"class","title svelte-i9411"),f(C,"class","column svelte-i9411"),f(u,"class","row svelte-i9411"),f(n,"class","next-video svelte-i9411")},m(L,ee){k(L,e,ee),k(L,t,ee),k(L,n,ee),_(n,o),_(o,r),_(o,s),R(a,o,null),_(n,l),_(n,u),_(u,c),_(c,m),_(m,h),_(m,v),N&&N.m(m,null),_(u,I),_(u,C),_(C,V),_(V,S),y=!0,E||(z=ke(u,"click",i[6]),E=!0)},p(L,[ee]){L[2]?N?(N.p(L,ee),ee&4&&d(N,1)):(N=h_(L),N.c(),d(N,1),N.m(m,null)):N&&(se(),p(N,1,1,()=>{N=null}),le()),(!y||ee&2&&g!==(g=`background-image: url('${L[1]}')`))&&f(m,"style",g),(!y||ee&1)&&Ke(S,L[0])},i(L){y||(d(a.$$.fragment,L),d(N),y=!0)},o(L){p(a.$$.fragment,L),p(N),y=!1},d(L){L&&(w(e),w(t),w(n)),B(a),N&&N.d(),E=!1,z()}}}function a8(i,e,t){let n,o,{title:r}=e,{thumb:s}=e,{playNextVideo:a}=e,l=it(),u=l.ui.autoplayNextEnabled$;q(i,u,S=>t(10,n=S));let c=l.ui.timerNextVideoRunning$;q(i,c,S=>t(3,o=S));let m=l.actions.internal.nextVideoAnnouncementClick,h=l.actions.internal.nextVideoAnnouncementAuto,v=l.actions.internal.nextVideoAnnouncementCancel,g,I=()=>{a(),m()},C=()=>{a(),h()},V=()=>{g&&(t(2,g=!1),v())};return i.$$set=S=>{"title"in S&&t(0,r=S.title),"thumb"in S&&t(1,s=S.thumb),"playNextVideo"in S&&t(9,a=S.playNextVideo)},i.$$.update=()=>{i.$$.dirty&1024&&t(2,g=n),i.$$.dirty&1024&&(n||v())},[r,s,g,o,u,c,I,C,V,a,n]}var If=class extends H{constructor(e){super(),U(this,e,a8,l8,F,{title:0,thumb:1,playNextVideo:9},s8)}},g_=If;var{window:u8}=Xo;function f8(i){he(i,"svelte-dtyj47",".player-wrapper.svelte-dtyj47{position:absolute;width:100%;height:100%}.player-wrapper.svelte-dtyj47 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-dtyj47{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-dtyj47,.video-container.svelte-dtyj47,.ads-container.svelte-dtyj47{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-dtyj47{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-dtyj47{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-dtyj47{transition:none}.ads-container.svelte-dtyj47{z-index:var(--ads-container-z-index);background:var(--black)}.settings-mobile.svelte-dtyj47{position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}")}function b_(i){let e,t,n,o=i[47]&&v_(i),r=i[48]&&y_(i);return{c(){o&&o.c(),e=Y(),r&&r.c(),t=Xe()},m(s,a){o&&o.m(s,a),k(s,e,a),r&&r.m(s,a),k(s,t,a),n=!0},p(s,a){s[47]?o?(o.p(s,a),a[1]&65536&&d(o,1)):(o=v_(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(se(),p(o,1,1,()=>{o=null}),le()),s[48]?r?(r.p(s,a),a[1]&131072&&d(r,1)):(r=y_(s),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(se(),p(r,1,1,()=>{r=null}),le())},i(s){n||(d(o),d(r),n=!0)},o(s){p(o),p(r),n=!1},d(s){s&&(w(e),w(t)),o&&o.d(s),r&&r.d(s)}}}function v_(i){let e,t;return e=new Tf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[136]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function y_(i){let e,t;return e=new Tf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[103],handleSecondClick:i[137]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function w_(i){var n;let e,t;return e=new Ul({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let s={};r[0]&4&&(s.thumbUrl=o[2]),r[0]&8&&(s.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(s)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function k_(i){let e,t;return e=new qr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function C_(i){let e,t;return e=new qr({props:{kind:"record",thumbUrl:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function S_(i){let e,t,n;return t=new Ws({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-dtyj47"),j(e,"hidden",i[37]!=="ads")},m(o,r){k(o,e,r),R(t,e,null),n=!0},p(o,r){let s={};r[0]&128&&(s.adsSlotId=o[7]),r[0]&256&&(s.adsParams=o[8]),r[0]&512&&(s.adsPreviewParam=o[9]),r[0]&1024&&(s.duration=o[10]),t.$set(s),(!n||r[1]&64)&&j(e,"hidden",o[37]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function T_(i){let e,t;return e=new g_({props:{title:i[17],thumb:i[18],playNextVideo:i[22]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&131072&&(r.title=n[17]),o[0]&262144&&(r.thumb=n[18]),o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function I_(i){let e,t;return e=new Dl({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function P_(i){let e,t,n;return t=new Bs({props:{"aria-label":G("video360")}}),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-dtyj47")},m(o,r){k(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&w(e),B(t)}}}function E_(i){let e,t;return e=new Fl({props:{thumbUrl:i[2],chromecastDeviceName:i[55]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function A_(i){let e,t;return e=new Ol({props:{shifted:i[31],captions:i[57],position:i[33],playerSize:i[34],isMobile:!0}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&1&&(r.shifted=n[31]),o[1]&67108864&&(r.captions=n[57]),o[1]&4&&(r.position=n[33]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function M_(i){let e,t,n,o,r;return t=new Hl({}),{c(){e=P("div"),D(t.$$.fragment)},m(s,a){k(s,e,a),R(t,e,null),n=!0,o||(r=ke(e,"click",gt(i[104])),o=!0)},p:de,i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&w(e),B(t),o=!1,r()}}}function L_(i){let e,t,n,o;function r(l){i[138](l)}function s(l){i[139](l)}let a={bottomHidden:i[37]==="thumb"||i[37]==="LiveWaitingStart"||i[37]==="LiveWaitingRecover"||i[37]==="LiveWaitingRecord"||i[37]==="ads",showControls:i[31],bottomNoSmooth:i[49],isAds:i[37]==="ads",canRewindLive:i[5]&&i[58]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],customFullscreenSupported:i[43],endScreenShown:i[45],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[101],seekToInteractive:i[25],playPrevChapter:i[26],onDisabledPlayPrevChapterClick:i[107],onDisabledSeekToInteractiveClick:i[108]};return i[40]!==void 0&&(a.playerControlsWrapperRef=i[40]),i[41]!==void 0&&(a.playerControlsRef=i[41]),e=new Nl({props:a}),ge.push(()=>Ue(e,"playerControlsWrapperRef",r)),ge.push(()=>Ue(e,"playerControlsRef",s)),{c(){D(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[1]&64&&(c.bottomHidden=l[37]==="thumb"||l[37]==="LiveWaitingStart"||l[37]==="LiveWaitingRecover"||l[37]==="LiveWaitingRecord"||l[37]==="ads"),u[1]&1&&(c.showControls=l[31]),u[1]&262144&&(c.bottomNoSmooth=l[49]),u[1]&64&&(c.isAds=l[37]==="ads"),u[0]&32|u[1]&134217728&&(c.canRewindLive=l[5]&&l[58]!==0),u[0]&2048&&(c.logoClickable=l[11]),u[0]&4096&&(c.logoHidden=l[12]),u[0]&8192&&(c.logoTargetUrl=l[13]),u[0]&16384&&(c.showNextPrevButtons=l[14]),u[0]&32768&&(c.nextButtonActive=l[15]),u[0]&65536&&(c.prevButtonActive=l[16]),u[0]&524288&&(c.isOneVideoPlaylist=l[19]),u[1]&4096&&(c.customFullscreenSupported=l[43]),u[1]&16384&&(c.endScreenShown=l[45]),u[0]&4194304&&(c.playNextVideo=l[22]),u[0]&8388608&&(c.playPrevVideo=l[23]),u[0]&16777216&&(c.repeatPlaylist=l[24]),u[0]&33554432&&(c.seekToInteractive=l[25]),u[0]&67108864&&(c.playPrevChapter=l[26]),!t&&u[1]&512&&(t=!0,c.playerControlsWrapperRef=l[40],qe(()=>t=!1)),!n&&u[1]&1024&&(n=!0,c.playerControlsRef=l[41],qe(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function V_(i){let e,t,n,o;function r(a){i[140](a)}let s={supportLink:i[20],returnFocus:Yl};return i[28]!==void 0&&(s.ref=i[28]),t=new jl({props:s}),ge.push(()=>Ue(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),f(e,"class","settings-mobile svelte-dtyj47")},m(a,l){k(a,e,l),R(t,e,null),o=!0},p(a,l){let u={};l[0]&1048576&&(u.supportLink=a[20]),!n&&l[0]&268435456&&(n=!0,u.ref=a[28],qe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){p(t.$$.fragment,a),o=!1},d(a){a&&w(e),B(t)}}}function R_(i){let e,t;return e=new Ar({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function B_(i){let e,t;return e=new $s({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function N_(i){let e,t,n=i[5]&&i[82]&&!i[52].has("TIMELINE"),o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z;e=new ql({props:{hidden:i[37]!=="thumb"||i[36]||i[93]&&i[4],thumbUrl:i[2],startVideo:i[27]}});let N=n&&b_(i),L=i[37]==="LiveWaitingStart"&&w_(i),ee=i[37]==="LiveWaitingRecover"&&k_(i),ae=i[37]==="LiveWaitingRecord"&&C_(i),Q=i[6]&&i[21]&&S_(i),$=i[45]&&i[17]&&i[18]&&T_(i),J=i[53]&&I_(i),W=i[54]&&P_(i),ue=i[38]&&E_(i),x=i[56].value!=="off"&&A_(i),K=i[36]&&M_(i),A=i[21]&&L_(i),fe=i[30]&&V_(i);V=new js({props:{isLive:i[59],isHidden:!i[44],isPlaying:i[50],position:i[33],duration:i[32]}});let X=i[42]&&R_(i),Me=i[60]&&B_(i);return{c(){D(e.$$.fragment),t=Y(),N&&N.c(),o=Y(),L&&L.c(),r=Y(),ee&&ee.c(),s=Y(),ae&&ae.c(),a=Y(),Q&&Q.c(),l=Y(),$&&$.c(),u=Y(),J&&J.c(),c=Y(),W&&W.c(),m=Y(),ue&&ue.c(),h=Y(),x&&x.c(),v=Y(),K&&K.c(),g=Y(),A&&A.c(),I=Y(),fe&&fe.c(),C=Y(),D(V.$$.fragment),S=Y(),X&&X.c(),y=Y(),Me&&Me.c(),E=Xe()},m(ie,be){R(e,ie,be),k(ie,t,be),N&&N.m(ie,be),k(ie,o,be),L&&L.m(ie,be),k(ie,r,be),ee&&ee.m(ie,be),k(ie,s,be),ae&&ae.m(ie,be),k(ie,a,be),Q&&Q.m(ie,be),k(ie,l,be),$&&$.m(ie,be),k(ie,u,be),J&&J.m(ie,be),k(ie,c,be),W&&W.m(ie,be),k(ie,m,be),ue&&ue.m(ie,be),k(ie,h,be),x&&x.m(ie,be),k(ie,v,be),K&&K.m(ie,be),k(ie,g,be),A&&A.m(ie,be),k(ie,I,be),fe&&fe.m(ie,be),k(ie,C,be),R(V,ie,be),k(ie,S,be),X&&X.m(ie,be),k(ie,y,be),Me&&Me.m(ie,be),k(ie,E,be),z=!0},p(ie,be){let Te={};be[0]&16|be[1]&96&&(Te.hidden=ie[37]!=="thumb"||ie[36]||ie[93]&&ie[4]),be[0]&4&&(Te.thumbUrl=ie[2]),be[0]&134217728&&(Te.startVideo=ie[27]),e.$set(Te),be[0]&32|be[1]&2097152&&(n=ie[5]&&ie[82]&&!ie[52].has("TIMELINE")),n?N?(N.p(ie,be),be[0]&32|be[1]&2097152&&d(N,1)):(N=b_(ie),N.c(),d(N,1),N.m(o.parentNode,o)):N&&(se(),p(N,1,1,()=>{N=null}),le()),ie[37]==="LiveWaitingStart"?L?(L.p(ie,be),be[1]&64&&d(L,1)):(L=w_(ie),L.c(),d(L,1),L.m(r.parentNode,r)):L&&(se(),p(L,1,1,()=>{L=null}),le()),ie[37]==="LiveWaitingRecover"?ee?(ee.p(ie,be),be[1]&64&&d(ee,1)):(ee=k_(ie),ee.c(),d(ee,1),ee.m(s.parentNode,s)):ee&&(se(),p(ee,1,1,()=>{ee=null}),le()),ie[37]==="LiveWaitingRecord"?ae?(ae.p(ie,be),be[1]&64&&d(ae,1)):(ae=C_(ie),ae.c(),d(ae,1),ae.m(a.parentNode,a)):ae&&(se(),p(ae,1,1,()=>{ae=null}),le()),ie[6]&&ie[21]?Q?(Q.p(ie,be),be[0]&2097216&&d(Q,1)):(Q=S_(ie),Q.c(),d(Q,1),Q.m(l.parentNode,l)):Q&&(se(),p(Q,1,1,()=>{Q=null}),le()),ie[45]&&ie[17]&&ie[18]?$?($.p(ie,be),be[0]&393216|be[1]&16384&&d($,1)):($=T_(ie),$.c(),d($,1),$.m(u.parentNode,u)):$&&(se(),p($,1,1,()=>{$=null}),le()),ie[53]?J?be[1]&4194304&&d(J,1):(J=I_(ie),J.c(),d(J,1),J.m(c.parentNode,c)):J&&(se(),p(J,1,1,()=>{J=null}),le()),ie[54]?W?be[1]&8388608&&d(W,1):(W=P_(ie),W.c(),d(W,1),W.m(m.parentNode,m)):W&&(se(),p(W,1,1,()=>{W=null}),le()),ie[38]?ue?(ue.p(ie,be),be[1]&128&&d(ue,1)):(ue=E_(ie),ue.c(),d(ue,1),ue.m(h.parentNode,h)):ue&&(se(),p(ue,1,1,()=>{ue=null}),le()),ie[56].value!=="off"?x?(x.p(ie,be),be[1]&33554432&&d(x,1)):(x=A_(ie),x.c(),d(x,1),x.m(v.parentNode,v)):x&&(se(),p(x,1,1,()=>{x=null}),le()),ie[36]?K?(K.p(ie,be),be[1]&32&&d(K,1)):(K=M_(ie),K.c(),d(K,1),K.m(g.parentNode,g)):K&&(se(),p(K,1,1,()=>{K=null}),le()),ie[21]?A?(A.p(ie,be),be[0]&2097152&&d(A,1)):(A=L_(ie),A.c(),d(A,1),A.m(I.parentNode,I)):A&&(se(),p(A,1,1,()=>{A=null}),le()),ie[30]?fe?(fe.p(ie,be),be[0]&1073741824&&d(fe,1)):(fe=V_(ie),fe.c(),d(fe,1),fe.m(C.parentNode,C)):fe&&(se(),p(fe,1,1,()=>{fe=null}),le());let Ie={};be[1]&268435456&&(Ie.isLive=ie[59]),be[1]&8192&&(Ie.isHidden=!ie[44]),be[1]&524288&&(Ie.isPlaying=ie[50]),be[1]&4&&(Ie.position=ie[33]),be[1]&2&&(Ie.duration=ie[32]),V.$set(Ie),ie[42]?X?be[1]&2048&&d(X,1):(X=R_(ie),X.c(),d(X,1),X.m(y.parentNode,y)):X&&(se(),p(X,1,1,()=>{X=null}),le()),ie[60]?Me?be[1]&536870912&&d(Me,1):(Me=B_(ie),Me.c(),d(Me,1),Me.m(E.parentNode,E)):Me&&(se(),p(Me,1,1,()=>{Me=null}),le())},i(ie){z||(d(e.$$.fragment,ie),d(N),d(L),d(ee),d(ae),d(Q),d($),d(J),d(W),d(ue),d(x),d(K),d(A),d(fe),d(V.$$.fragment,ie),d(X),d(Me),z=!0)},o(ie){p(e.$$.fragment,ie),p(N),p(L),p(ee),p(ae),p(Q),p($),p(J),p(W),p(ue),p(x),p(K),p(A),p(fe),p(V.$$.fragment,ie),p(X),p(Me),z=!1},d(ie){ie&&(w(t),w(o),w(r),w(s),w(a),w(l),w(u),w(c),w(m),w(h),w(v),w(g),w(I),w(C),w(S),w(y),w(E)),B(e,ie),N&&N.d(ie),L&&L.d(ie),ee&&ee.d(ie),ae&&ae.d(ie),Q&&Q.d(ie),$&&$.d(ie),J&&J.d(ie),W&&W.d(ie),ue&&ue.d(ie),x&&x.d(ie),K&&K.d(ie),A&&A.d(ie),fe&&fe.d(ie),B(V,ie),X&&X.d(ie),Me&&Me.d(ie)}}}function d8(i){let e,t,n,o,r,s=i[51],a,l,u,c,m,h,v=N_(i);return{c(){e=P("div"),t=P("div"),n=P("div"),r=Y(),v.c(),a=Y(),l=P("div"),f(n,"class","video-container svelte-dtyj47"),f(n,"style",o=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[50]),j(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-dtyj47"),j(t,"hidden",i[37]!=="video"),f(l,"class","overlay-container"),f(e,"class","player-wrapper svelte-dtyj47"),f(e,"role","region"),f(e,"aria-label",u=G("aria_label_video_player")),f(e,"tabindex","-1")},m(g,I){k(g,e,I),_(e,t),_(t,n),i[135](n),_(e,r),v.m(e,null),_(e,a),_(e,l),i[141](l),i[142](e),c=!0,m||(h=[ke(u8,"blur",i[102]),ke(t,"click",si(i[103])),ke(e,"click",i[105],!0),ke(e,"focusin",i[106],!0)],m=!0)},p(g,I){(!c||I[1]&32784&&o!==(o=`transform: rotate(${g[35]}deg) scale(${g[46]})`))&&f(n,"style",o),(!c||I[1]&524288)&&f(n,"data-is-playing",g[50]),(!c||I[0]&2)&&j(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||I[1]&64)&&j(t,"hidden",g[37]!=="video"),I[1]&1048576&&F(s,s=g[51])?(se(),p(v,1,1,de),le(),v=N_(g),v.c(),d(v,1),v.m(e,a)):v.p(g,I)},i(g){c||(d(v),c=!0)},o(g){p(v),c=!1},d(g){g&&w(e),i[135](null),v.d(g),i[141](null),i[142](null),m=!1,at(h)}}}function m8(i,e,t){var Jn,uo;let n,o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee,ae,Q,$,J,W,ue,x,K,A,fe,X,Me,ie,be,Te,{store:Ie}=e,{uiConfig:Pe}=e,{thumbUrl:ot}=e,{videoContainer:Ee}=e,{interactiveContainer:ze}=e,{live:te}=e,{autoplay:pe}=e,{canRewindLive:Ce}=e,{showAds:We}=e,{adsSlotId:nt=void 0}=e,{adsParams:st=void 0}=e,{adsPreviewParam:rt=void 0}=e,{duration:Qe=void 0}=e,{logoClickable:ce}=e,{logoHidden:Se}=e,{logoTargetUrl:$e=""}=e,{showNextPrevButtons:De=!1}=e,{nextButtonActive:et=!1}=e,{prevButtonActive:He=!1}=e,{endScreenVideoTitle:ut=void 0}=e,{endScreenVideoThumb:ct=void 0}=e,{isOneVideoPlaylist:_e=!1}=e,{supportLink:dt}=e,{shadowRootContainer:bt=void 0}=e,{outerContainerRef:Ct=void 0}=e,{showMiniTimer:yt=!1}=e,{fullScreenTarget:Ye=void 0}=e,{playerStarted:Wt=!1}=e,{showEndScreen:$t=!0}=e,{playNextVideo:zt=Yl}=e,{playPrevVideo:Dt=Yl}=e,{repeatPlaylist:Kt=Yl}=e,{seekToInteractive:Vt}=e,{playPrevChapter:xe}=e,{firstStart:Ze}=e,{seekTime:St}=e,jt=Ie.getLogger().createComponentLog("Root component"),qt=Ie.interfaceLanguage$;q(i,qt,oe=>t(51,ue=oe));let me=Ie.state.playbackState$;q(i,me,oe=>t(132,Q=oe));let Gt=Ie.ads.playbackState;q(i,Gt,oe=>t(133,$=oe));let Yt=Ie.state.positionWithScrubbing$;q(i,Yt,oe=>t(33,l=oe));let Qt=Ie.state.duration$;q(i,Qt,oe=>t(32,a=oe));let At=Ie.playerPhase;q(i,At,oe=>t(37,N=oe));let Zt=Ie.ui.isFullscreen;q(i,Zt,oe=>t(148,c=oe));let xt=Ie.ui.controlsVisible;q(i,xt,oe=>t(31,r=oe));let Ot=Ie.ui.interactiveHideMobileControls;q(i,Ot,oe=>t(124,g=oe));let zi=Ie.ui.settingsMenu.visible$;q(i,zi,oe=>t(30,o=oe));let di=Ie.ui.settingsMenu.openedByBtnKeyboard$;q(i,di,oe=>t(122,n=oe));let ki=Ie.ui.scrubbingInProgress;q(i,ki,oe=>t(125,C=oe));let Ci=Ie.ui.debugPanelVisible;q(i,Ci,oe=>t(60,Te=oe));let Ft=Ie.state.isLoaderVisible;q(i,Ft,oe=>t(134,J=oe));let Li=Ie.state.isEnded$;q(i,Li,oe=>t(127,y=oe));let Mt=Ie.state.chromecastConnected$;q(i,Mt,oe=>t(38,L=oe));let li=Ie.state.chromecastDeviceName$;q(i,li,oe=>t(55,fe=oe));let bi=Ie.ads.postrollPassed;q(i,bi,oe=>t(128,E=oe));let ei=Ie.ui.mobileUnmuteButtonExpanded,vi=Ie.ui.mobileUnmuteButtonVisible,Vi=Ie.state.isLive$;q(i,Vi,oe=>t(59,be=oe));let Ae=Ie.state.isPlaying$;q(i,Ae,oe=>t(50,W=oe));let tt=Ie.state.isActiveLive$;q(i,tt,oe=>t(123,u=oe));let Pt=Ie.state.isRewindableLive$,yi=Ie.state.crashed$;q(i,yi,oe=>t(36,S=oe));let wi=Ie.webApi.annotationsApi,Ht=Ie.webApi.pictureInPictureApi,Si=Ie.state.videoSize$;q(i,Si,oe=>t(149,h=oe));let mi=Ie.state.currentSubtitle$;q(i,mi,oe=>t(56,X=oe));let Xi=Ie.state.currentSubtitleCaptions$;q(i,Xi,oe=>t(57,Me=oe));let Ut=Ie.state.duration$;q(i,Ut,oe=>t(58,ie=oe));let un=Ie.state.graphIsOpened$;q(i,un,oe=>t(131,ae=oe));let Ti=Ie.ui.playerSize;q(i,Ti,oe=>t(34,m=oe));let cn=Ie.ui.is3DVideo;q(i,cn,oe=>t(53,K=oe));let fn=Ie.ui.icon3DVideoVisible;q(i,fn,oe=>t(54,A=oe));let dn=Ie.ui.rotateAlpha;q(i,dn,oe=>t(35,I=oe));let Ri=Ie.state.isInteractive,xi=Ie.state.isInteractiveTime$;q(i,xi,oe=>t(126,V=oe));let ri=Ie.state.isInteractiveExpectation$;q(i,ri,oe=>t(130,ee=oe));let Ji=Ie.state.hasInteractiveBranches,Wi=Ie.ui.controls.disabledControls$;q(i,Wi,oe=>t(52,x=oe));let Bi=Ie.ui.touched;q(i,Bi,oe=>t(129,z=oe));let Sn=Ie.ui.overlayContainer$,pi=Ie.state.loadedMetadata$;q(i,pi,oe=>t(147,s=oe));let Ni=Ie.actions.internal.closeSettingsMenu,Di=(Jn=Ie.callbacks)==null?void 0:Jn.onDisabledPlayPrevChapterClick,mn=(uo=Ie.callbacks)==null?void 0:uo.onDisabledSeekToInteractiveClick,Ii,Oi,Pi,Rt,ti,ai,Fi,pn,lt,Hi=Ne(!1);q(i,Hi,oe=>t(49,v=oe));let ui,qi=!1,Ki,ji=!1,Ge,Hn=!0,_n,hn,$i=!1,en;Ht==null||Ht.setContext($r());let tn=oe=>{clearTimeout(ai),oe&&(vi.set(!0),ei.set(!0),ai=window.setTimeout(()=>{ei.set(!1)},Pe.controls.collapseMobileUnmute),Ri||_i(Pe.controls.hideTimeoutMobile))};Ie.setUiCallbacks({onStarted:tn});let nn=()=>{window.clearTimeout(ti),t(117,qi=!1),g&&Ot.set(!1)},_i=oe=>{nn(),t(117,qi=!0),ti=window.setTimeout(()=>t(117,qi=!1),oe);let wt=oe-100;ui=window.setTimeout(()=>{v&&Hi.set(!1)},wt>0?wt:oe)},Tn=cn.subscribe(oe=>{fn.set(oe),oe&&(window.clearTimeout(Fi),Fi=window.setTimeout(()=>fn.set(!1),Pe.controls.hide360IconTimeout))}),gn=async()=>{var wt,ln,Ei,xn;let oe=Ro();if(oe){let ne=ns(),$n=In(),bo=Gl.isSamsungBrowser&&ne===bt;oe=ne===$n||bo}if(oe){_i(Pe.controls.hideTimeoutFullscreen);try{await(Ht==null?void 0:Ht.remove())}catch(ne){jt({message:String(ne)})}try{let ne=h!=null&&h.width&&(h!=null&&h.height)?h:m;await qd(ne)}catch(ne){jt({message:String(ne)})}}Zt.set(oe),Ie.getAdmanWrapper().setFullscreen(oe),c?(ln=(wt=Ie.callbacks)==null?void 0:wt.onFullscreenEnter)==null||ln.call(wt):(xn=(Ei=Ie.callbacks)==null?void 0:Ei.onFullscreenExit)==null||xn.call(Ei)},qn=oe=>{let wt=oe;Ti.set({width:wt.target.width,height:wt.target.height})};Nt(()=>{var wt;return zs(gn),Pe.features.annotationsInside&&(wi==null||wi.init(Ii)),rr(Ht)&&(Ht==null||Ht.assignPlayerContainer(Ii),Ht==null||Ht.registryExternalEventHandlers({resize:qn})),t(43,Hn=!Gl.isIphoneOrOldIpad),ze&&((wt=Ee.parentElement)==null||wt.insertBefore(ze,Ee.nextSibling)),()=>{window.clearTimeout(ti),window.clearTimeout(ui),window.clearTimeout(ai),window.clearTimeout(Fi),Tn(),Ht==null||Ht.dispose(),xs(gn)}});let on=!0,bn=!0,vn=oe=>{let wt=l+(oe==="forward"?1:-1)*Pe.controls.seekStepMobile/1e3;wt<0?(t(47,on=!1),wt=0):wt>=a&&(t(48,bn=!1),wt=a),t(119,ji=!0),St(wt)},In=()=>{let oe=Gl.isIOS||Pe.features.fullscreenInternalTargetPlayerContainer||!Ct?Ii:Ct,wt=oe.getRootNode(),ln=wt instanceof ShadowRoot?wt.host:wt,Ei=Ye instanceof HTMLElement&&Ye.contains(ln);return Pe.allowChangingFullscreenTarget&&Ye&&Ei?Ye:oe},Pn=async()=>{if(Ro())await Us(document),jt({message:"exit fullscreen"});else{if(jt({message:"request fullscreen"}),Gl.isIOS&&!s)return;await qs(In())}},rn=()=>{Ni()},En=()=>{if(o){rn();return}if(!Wt){Ze(),_i(Pe.controls.hideTimeoutCursor);return}t(119,ji=!1),r?nn():_i(Pe.controls.hideTimeoutMobile)},sn=()=>{if(o){rn();return}},so=()=>{Bi.set(!0)},lo=()=>{Ri||(Hi.set(!0),_i(Pe.controls.hideTimeoutCursor))},ao=oe=>{Di&&(Di(oe),_i(Pe.controls.hideTimeoutMobile))},ci=oe=>{mn&&(mn(oe),_i(Pe.controls.hideTimeoutMobile))};function Un(oe){ge[oe?"unshift":"push"](()=>{Ee=oe,t(0,Ee)})}let Yn=()=>vn("backward"),Qn=()=>vn("forward");function zn(oe){Oi=oe,t(40,Oi)}function Zn(oe){Pi=oe,t(41,Pi)}function Gi(oe){Rt=oe,t(28,Rt)}function yn(oe){ge[oe?"unshift":"push"](()=>{lt=oe,t(29,lt)})}function Xn(oe){ge[oe?"unshift":"push"](()=>{Ii=oe,t(39,Ii)})}return i.$$set=oe=>{"store"in oe&&t(109,Ie=oe.store),"uiConfig"in oe&&t(1,Pe=oe.uiConfig),"thumbUrl"in oe&&t(2,ot=oe.thumbUrl),"videoContainer"in oe&&t(0,Ee=oe.videoContainer),"interactiveContainer"in oe&&t(110,ze=oe.interactiveContainer),"live"in oe&&t(3,te=oe.live),"autoplay"in oe&&t(4,pe=oe.autoplay),"canRewindLive"in oe&&t(5,Ce=oe.canRewindLive),"showAds"in oe&&t(6,We=oe.showAds),"adsSlotId"in oe&&t(7,nt=oe.adsSlotId),"adsParams"in oe&&t(8,st=oe.adsParams),"adsPreviewParam"in oe&&t(9,rt=oe.adsPreviewParam),"duration"in oe&&t(10,Qe=oe.duration),"logoClickable"in oe&&t(11,ce=oe.logoClickable),"logoHidden"in oe&&t(12,Se=oe.logoHidden),"logoTargetUrl"in oe&&t(13,$e=oe.logoTargetUrl),"showNextPrevButtons"in oe&&t(14,De=oe.showNextPrevButtons),"nextButtonActive"in oe&&t(15,et=oe.nextButtonActive),"prevButtonActive"in oe&&t(16,He=oe.prevButtonActive),"endScreenVideoTitle"in oe&&t(17,ut=oe.endScreenVideoTitle),"endScreenVideoThumb"in oe&&t(18,ct=oe.endScreenVideoThumb),"isOneVideoPlaylist"in oe&&t(19,_e=oe.isOneVideoPlaylist),"supportLink"in oe&&t(20,dt=oe.supportLink),"shadowRootContainer"in oe&&t(111,bt=oe.shadowRootContainer),"outerContainerRef"in oe&&t(112,Ct=oe.outerContainerRef),"showMiniTimer"in oe&&t(113,yt=oe.showMiniTimer),"fullScreenTarget"in oe&&t(114,Ye=oe.fullScreenTarget),"playerStarted"in oe&&t(21,Wt=oe.playerStarted),"showEndScreen"in oe&&t(115,$t=oe.showEndScreen),"playNextVideo"in oe&&t(22,zt=oe.playNextVideo),"playPrevVideo"in oe&&t(23,Dt=oe.playPrevVideo),"repeatPlaylist"in oe&&t(24,Kt=oe.repeatPlaylist),"seekToInteractive"in oe&&t(25,Vt=oe.seekToInteractive),"playPrevChapter"in oe&&t(26,xe=oe.playPrevChapter),"firstStart"in oe&&t(27,Ze=oe.firstStart),"seekTime"in oe&&t(116,St=oe.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&96|i.$$.dirty[4]&1536&&t(42,pn=(N==="video"&&J||N==="ads"&&$==="inactive")&&!S),i.$$.dirty[0]&536870912&&Sn.set(lt),i.$$.dirty[4]&256&&t(118,Ki=Q!==c8.PLAYING),i.$$.dirty[3]&50331648|i.$$.dirty[4]&201&&t(120,Ge=ae||g||!qi&&(y&&!!Ji||Ki&&ee)),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&224|i.$$.dirty[3]&251658240|i.$$.dirty[4]&10&&xt.set((Ki||y||o||C||L||qi&&!ji)&&!Ge&&N==="video"&&!S),i.$$.dirty[0]&2|i.$$.dirty[1]&97|i.$$.dirty[3]&1048576|i.$$.dirty[4]&32&&t(44,_n=Pe.features.thumbTimer&&yt&&N==="video"&&!r&&!S&&!Ri&&(Pe.hideThumbTimerAfterTouch&&!z||!Pe.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&32|i.$$.dirty[3]&4194304|i.$$.dirty[4]&24&&t(45,hn=$t&&(We&&E||!We)&&y&&!S),i.$$.dirty[0]&2|i.$$.dirty[3]&268435456|i.$$.dirty[4]&6&&(!C&&$i&&!V&&_i(Pe.controls.hideTimeoutMobile),t(121,$i=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,en=Ee&&I%180?m.height/m.width:1),i.$$.dirty[1]&6|i.$$.dirty[3]&1073741824&&(t(47,on=l>0),t(48,bn=!u&&l<a)),i.$$.dirty[0]&1342177280|i.$$.dirty[3]&536870912&&ho(Rt,o,n)},[Ee,Pe,ot,te,pe,Ce,We,nt,st,rt,Qe,ce,Se,$e,De,et,He,ut,ct,_e,dt,Wt,zt,Dt,Kt,Vt,xe,Ze,Rt,lt,o,r,a,l,m,I,S,N,L,Ii,Oi,Pi,pn,Hn,_n,hn,en,on,bn,v,W,ue,x,K,A,fe,X,Me,ie,be,Te,qt,me,Gt,Yt,Qt,At,Zt,xt,Ot,zi,di,ki,Ci,Ft,Li,Mt,li,bi,Vi,Ae,tt,Pt,yi,Si,mi,Xi,Ut,un,Ti,cn,fn,dn,Ri,xi,ri,Wi,Bi,pi,Hi,vn,Pn,rn,En,sn,so,lo,ao,ci,Ie,ze,bt,Ct,yt,Ye,$t,St,qi,Ki,ji,Ge,$i,n,u,g,C,V,y,E,z,ee,ae,Q,$,J,Un,Yn,Qn,zn,Zn,Gi,yn,Xn]}var Pf=class extends H{constructor(e){super(),U(this,e,m8,d8,F,{store:109,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:110,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:111,outerContainerRef:112,showMiniTimer:113,fullScreenTarget:114,playerStarted:21,showEndScreen:115,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,playPrevChapter:26,firstStart:27,seekTime:116},f8,[-1,-1,-1,-1,-1,-1])}},D_=Pf;function b8(i){he(i,"svelte-zbipwr",`.root.svelte-zbipwr{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
35
35
|
180deg,
|
|
36
36
|
rgba(0, 0, 0, 0.00) 0%,
|
|
37
37
|
rgba(0, 0, 0, 0.01) 6.67%,
|
|
@@ -49,5 +49,5 @@ var H_=Object.defineProperty;var q_=(i,e,t)=>e in i?H_(i,e,{enumerable:!0,config
|
|
|
49
49
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
50
50
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
51
51
|
#000 100%
|
|
52
|
-
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function ey(i){let e,t,n;function o(s){i[62](s)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],playPrevChapter:i[30],firstStart:i[38],showEndScreen:i[31]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new i_({props:r}),ve.push(()=>ze(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1&&(l.store=s[0]),a[0]&2&&(l.title=s[1]),a[0]&4&&(l.thumbUrl=s[2]),a[0]&8&&(l.interactiveContainer=s[3]),a[0]&16&&(l.live=s[4]),a[0]&32&&(l.autoplay=s[5]),a[0]&64&&(l.canRewindLive=s[6]),a[0]&128&&(l.showAds=s[7]),a[0]&256&&(l.adsSlotId=s[8]),a[0]&512&&(l.adsParams=s[9]),a[0]&1024&&(l.adsPreviewParam=s[10]),a[0]&2048&&(l.duration=s[11]),a[0]&4096&&(l.logoClickable=s[12]),a[0]&8192&&(l.logoHidden=s[13]),a[0]&32768&&(l.showNextPrevButtons=s[15]),a[0]&65536&&(l.nextButtonActive=s[16]),a[0]&131072&&(l.prevButtonActive=s[17]),a[0]&262144&&(l.endScreenVideoTitle=s[18]),a[0]&524288&&(l.endScreenVideoThumb=s[19]),a[0]&1048576&&(l.isOneVideoPlaylist=s[20]),a[0]&2097152&&(l.supportLink=s[21]),a[0]&4194304&&(l.shadowRootContainer=s[22]),a[0]&8388608&&(l.outerContainerRef=s[23]),a[0]&16777216&&(l.fullScreenTarget=s[24]),a[0]&33554432&&(l.showMiniTimer=s[25]),a[1]&8&&(l.playerStarted=s[34]),a[0]&67108864&&(l.playNextVideo=s[26]),a[0]&134217728&&(l.playPrevVideo=s[27]),a[0]&268435456&&(l.repeatPlaylist=s[28]),a[0]&536870912&&(l.seekToInteractive=s[29]),a[0]&1073741824&&(l.playPrevChapter=s[30]),a[1]&1&&(l.showEndScreen=s[31]),!t&&a[1]&4&&(t=!0,l.videoContainer=s[33],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function ty(i){let e,t,n;function o(s){i[61](s)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],playPrevChapter:i[30],firstStart:i[38],seekTime:i[32],showEndScreen:i[31]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new C_({props:r}),ve.push(()=>ze(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(s,a){L(e,s,a),n=!0},p(s,a){let l={};a[0]&1&&(l.store=s[0]),a[0]&4&&(l.thumbUrl=s[2]),a[0]&8&&(l.interactiveContainer=s[3]),a[0]&16&&(l.live=s[4]),a[0]&32&&(l.autoplay=s[5]),a[0]&64&&(l.canRewindLive=s[6]),a[0]&128&&(l.showAds=s[7]),a[0]&256&&(l.adsSlotId=s[8]),a[0]&512&&(l.adsParams=s[9]),a[0]&1024&&(l.adsPreviewParam=s[10]),a[0]&2048&&(l.duration=s[11]),a[0]&4096&&(l.logoClickable=s[12]),a[0]&8192&&(l.logoHidden=s[13]),a[0]&32768&&(l.showNextPrevButtons=s[15]),a[0]&65536&&(l.nextButtonActive=s[16]),a[0]&131072&&(l.prevButtonActive=s[17]),a[0]&262144&&(l.endScreenVideoTitle=s[18]),a[0]&524288&&(l.endScreenVideoThumb=s[19]),a[0]&1048576&&(l.isOneVideoPlaylist=s[20]),a[0]&2097152&&(l.supportLink=s[21]),a[0]&4194304&&(l.shadowRootContainer=s[22]),a[0]&8388608&&(l.outerContainerRef=s[23]),a[0]&16777216&&(l.fullScreenTarget=s[24]),a[0]&33554432&&(l.showMiniTimer=s[25]),a[1]&8&&(l.playerStarted=s[34]),a[0]&67108864&&(l.playNextVideo=s[26]),a[0]&134217728&&(l.playPrevVideo=s[27]),a[0]&268435456&&(l.repeatPlaylist=s[28]),a[0]&536870912&&(l.seekToInteractive=s[29]),a[0]&1073741824&&(l.playPrevChapter=s[30]),a[1]&1&&(l.showEndScreen=s[31]),!t&&a[1]&4&&(t=!0,l.videoContainer=s[33],Ue(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){V(e,s)}}}function iy(i){let e,t,n,o,r=[ty,ey],s=[];function a(l,u){return l[14]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=I("div"),n.c(),f(e,"class","root svelte-w727va")},m(l,u){w(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(ae(),p(s[c],1,1,()=>{s[c]=null}),ue(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null))},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&y(e),s[t].d()}}}function ny(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:s}=e,{videoConfig:a}=e,{uiConfig:l}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{interactiveController:h}=e,{subtitles:C}=e,{live:g}=e,{preload:S}=e,{autoplay:k}=e,{volume:F=void 0}=e,{muted:T=void 0}=e,{fromTime:v}=e,{canRewindLive:E}=e,{showAds:H}=e,{adsSlotId:U=void 0}=e,{adsParams:W=void 0}=e,{adsPreviewParam:ne=void 0}=e,{duration:de=void 0}=e,{logoClickable:q}=e,{logoHidden:X}=e,{isMobile:oe}=e,{showNextPrevButtons:K=!1}=e,{nextButtonActive:ce=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:x=void 0}=e,{endScreenVideoThumb:P=void 0}=e,{isOneVideoPlaylist:J=!1}=e,{supportLink:le}=e,{shadowRootContainer:Ae=void 0}=e,{outerContainerRef:ee=void 0}=e,{fullScreenTarget:ge=void 0}=e,{failoverHosts:Ee=void 0}=e,{showMiniTimer:Te=!1}=e,{saveRate:Ie}=e,{playNextVideo:ot=os}=e,{playPrevVideo:Pe=os}=e,{repeatPlaylist:We=os}=e,{seekToInteractive:$=os}=e,{playPrevChapter:_e=os}=e,{volumeMultiplier:Ce}=e,{showEndScreen:xe=!0}=e,{subscribers:rt,stores:lt}=s;Ff(l);let it=xt(),Je=l.logoLink,fe=r.ui.debugPanelVisible,Se=r.ui.playerSize,$e=r.state.isLive$;D(i,$e,pe=>t(64,n=pe));let et=r.state.isInteractive&&X8.isAndroid,Fe,ut=null,ft=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),Yf(r,lt);let he=(pe=!1)=>{t(34,ft=!0),pe?r.actions.external.firstStart(H):r.actions.internal.firstStart(H)};function dt(pe){var ni;let Gt=o||pe;Gt&&r.initVideo({container:Fe,sources:Gt,failoverHosts:Ee,subtitles:C,volumeMultiplier:Ce});let It=Q8.get(Qr)==="true";fe.set(It),v>0&&r.actions.external.seekTime(v);let $t=oe?it.volumeDefault:(ni=F!=null?F:Ss())!=null?ni:it.volumeDefault,Rt=T!=null?T:cd();if(r.actions.external.setVolume($t),r.actions.external.setMuted(Rt),r.getAdmanWrapper().setInitialVolume(Rt?0:$t),it.features.trafficSaving){let Pt=dd();Pt&&r.actions.internal.setTrafficSavingEnabled(Pt)}if(it.features.saveRate&&Ie){let Pt=_d();Pt&&!n&&r.actions.internal.setPlaybackRate(Pt)}if(it.features.autoplayNext){let Pt=gd();Pt&&r.actions.internal.setAutoplayNextEnabled(Pt)}let Ut=ud(r.videoId);Ut&&r.actions.internal.setQuality(Ut),r.ui.isAutoplay.set(k),k?he():S&&it.features.preload&&r.actions.internal.preload()}let vt=pe=>{if(window.ResizeObserver){let Gt,It;ut=new ResizeObserver(Z8($t=>{let Rt=$t[0];if(Rt){if(Rt.contentBoxSize){let Ut=Array.isArray(Rt.contentBoxSize)?Rt.contentBoxSize[0]:Rt.contentBoxSize;Gt=Ut.inlineSize,It=Ut.blockSize}else Rt.contentRect&&(Gt=Rt.contentRect.width,It=Rt.contentRect.height);Se.set({width:Gt,height:It})}},300)),ut.observe(pe)}Se.set({width:pe.clientWidth,height:pe.clientHeight})},yt=()=>{document.hidden&&r.actions.external.stop()};Vt(()=>{et&&document.addEventListener("visibilitychange",yt),vt(Fe);let pe=rt.map(It=>It.init({store:r,microStores:lt,config:a,interactiveController:h}));if((g==null?void 0:g.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((g==null?void 0:g.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((g==null?void 0:g.status)==="finished"||(g==null?void 0:g.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return dt(),()=>{et&&document.removeEventListener("visibilitychange",yt),ut==null||ut.disconnect(),pe.forEach(It=>It.unsubscribe()),r.destroy()}});function Qe(){ft?r.actions.external.play():he(!0)}function Tt(){r.actions.external.pause()}function At(pe){oe||r.actions.external.setMuted(pe)}function ii(pe){oe||pe>=0&&pe<=1&&r.actions.external.setVolume(pe)}function Ot(pe){r.actions.internal.seekTime(pe,J8.UNKNOWN)}function Ft(pe){r.actions.external.seekEpisodeStartTime(pe)}function jt(){r.actions.external.returnFocusToEpisodes()}function Ht(pe){r.actions.external.setPlaybackRate(pe)}function Ke(pe){r.actions.external.setAutoQualityLimits(pe)}function Ze(pe){Fe=pe,t(33,Fe)}function Ct(pe){Fe=pe,t(33,Fe)}return i.$$set=pe=>{"sources"in pe&&t(39,o=pe.sources),"store"in pe&&t(0,r=pe.store),"microStoresRoot"in pe&&t(40,s=pe.microStoresRoot),"videoConfig"in pe&&t(41,a=pe.videoConfig),"uiConfig"in pe&&t(42,l=pe.uiConfig),"title"in pe&&t(1,u=pe.title),"thumbUrl"in pe&&t(2,c=pe.thumbUrl),"interactiveContainer"in pe&&t(3,m=pe.interactiveContainer),"interactiveController"in pe&&t(43,h=pe.interactiveController),"subtitles"in pe&&t(44,C=pe.subtitles),"live"in pe&&t(4,g=pe.live),"preload"in pe&&t(45,S=pe.preload),"autoplay"in pe&&t(5,k=pe.autoplay),"volume"in pe&&t(46,F=pe.volume),"muted"in pe&&t(47,T=pe.muted),"fromTime"in pe&&t(48,v=pe.fromTime),"canRewindLive"in pe&&t(6,E=pe.canRewindLive),"showAds"in pe&&t(7,H=pe.showAds),"adsSlotId"in pe&&t(8,U=pe.adsSlotId),"adsParams"in pe&&t(9,W=pe.adsParams),"adsPreviewParam"in pe&&t(10,ne=pe.adsPreviewParam),"duration"in pe&&t(11,de=pe.duration),"logoClickable"in pe&&t(12,q=pe.logoClickable),"logoHidden"in pe&&t(13,X=pe.logoHidden),"isMobile"in pe&&t(14,oe=pe.isMobile),"showNextPrevButtons"in pe&&t(15,K=pe.showNextPrevButtons),"nextButtonActive"in pe&&t(16,ce=pe.nextButtonActive),"prevButtonActive"in pe&&t(17,z=pe.prevButtonActive),"endScreenVideoTitle"in pe&&t(18,x=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(19,P=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(20,J=pe.isOneVideoPlaylist),"supportLink"in pe&&t(21,le=pe.supportLink),"shadowRootContainer"in pe&&t(22,Ae=pe.shadowRootContainer),"outerContainerRef"in pe&&t(23,ee=pe.outerContainerRef),"fullScreenTarget"in pe&&t(24,ge=pe.fullScreenTarget),"failoverHosts"in pe&&t(49,Ee=pe.failoverHosts),"showMiniTimer"in pe&&t(25,Te=pe.showMiniTimer),"saveRate"in pe&&t(50,Ie=pe.saveRate),"playNextVideo"in pe&&t(26,ot=pe.playNextVideo),"playPrevVideo"in pe&&t(27,Pe=pe.playPrevVideo),"repeatPlaylist"in pe&&t(28,We=pe.repeatPlaylist),"seekToInteractive"in pe&&t(29,$=pe.seekToInteractive),"playPrevChapter"in pe&&t(30,_e=pe.playPrevChapter),"volumeMultiplier"in pe&&t(51,Ce=pe.volumeMultiplier),"showEndScreen"in pe&&t(31,xe=pe.showEndScreen)},i.$$.update=()=>{i.$$.dirty[0]&16385&&r.ui.isMobile.set(oe)},[r,u,c,m,g,k,E,H,U,W,ne,de,q,X,oe,K,ce,z,x,P,J,le,Ae,ee,ge,Te,ot,Pe,We,$,_e,xe,Ot,Fe,ft,it,Je,$e,he,o,s,a,l,h,C,S,F,T,v,Ee,Ie,Ce,dt,Qe,Tt,At,ii,Ft,jt,Ht,Ke,Ze,Ct]}var hf=class extends N{constructor(e){super(),O(this,e,ny,iy,B,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,interactiveController:43,subtitles:44,live:4,preload:45,autoplay:5,volume:46,muted:47,fromTime:48,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:49,showMiniTimer:25,saveRate:50,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,playPrevChapter:30,volumeMultiplier:51,showEndScreen:31,initVideo:52,play:53,pause:54,setMuted:55,setVolume:56,seekTime:32,seekEpisodeStartTime:57,returnFocusToEpisodes:58,setPlaybackRate:59,setAutoQualityLimits:60},$8,[-1,-1,-1])}get initVideo(){return this.$$.ctx[52]}get play(){return this.$$.ctx[53]}get pause(){return this.$$.ctx[54]}get setMuted(){return this.$$.ctx[55]}get setVolume(){return this.$$.ctx[56]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[57]}get returnFocusToEpisodes(){return this.$$.ctx[58]}get setPlaybackRate(){return this.$$.ctx[59]}get setAutoQualityLimits(){return this.$$.ctx[60]}},S_=hf;function oy(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=se(a,s[l]);return{c(){e=M("svg"),r&&r.c(),t=M("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),we(e,a)},m(l,u){w(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),we(e,a=He(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&y(e),r&&r.d(l)}}}function ry(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var gf=class extends N{constructor(e){super(),O(this,e,ry,oy,B,{})}},T_=gf;function sy(i){let e,t;return e=new T_({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function ly(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var bf=class extends N{constructor(e){super(),O(this,e,ly,sy,B,{isWhite:1})}},I_=bf;function ay(i){be(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function P_(i){let e,t;return{c(){e=I("div"),t=qe(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){w(n,e,o),_(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&y(e)}}}function E_(i){let e,t;return e=new I_({props:{isWhite:!!i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){V(e,n)}}}function uy(i){let e,t,n,o,r=i[0]&&P_(i),s=(!i[0]||!i[1])&&E_(i);return{c(){e=I("div"),r&&r.c(),t=Y(),s&&s.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,l){w(a,e,l),r&&r.m(e,null),_(e,t),s&&s.m(e,null),o=!0},p(a,[l]){a[0]?r?r.p(a,l):(r=P_(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?s?(s.p(a,l),l&3&&d(s,1)):(s=E_(a),s.c(),d(s,1),s.m(e,null)):s&&(ae(),p(s,1,1,()=>{s=null}),ue()),(!o||l&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(s),o=!0)},o(a){p(s),o=!1},d(a){a&&y(e),r&&r.d(),s&&s.d()}}}function cy(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var vf=class extends N{constructor(e){super(),O(this,e,cy,uy,B,{title:0,thumbUrl:1},ay)}},A_=vf;import{cloneDeepWith as Vy,InterfaceLanguage as Ry,clientChecker as By,isMobile as Ny,isNonNullable as Cf,Logger as Dy,Subscription as Oy}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as Fy}from"@vkontakte/videoplayer-statistics";import{Logger as fy,Subscription as dy}from"@vkontakte/videoplayer-shared";var Fl=class{constructor(){this.subscription=new dy,this.logger=new fy,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,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",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){var t,n;if(this.isSupported())for(let[o,r]of e)try{(n=(t=navigator.mediaSession).setActionHandler)==null||n.call(t,o,r)}catch(s){throw new Error(`The media session action "${o}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{var r,s;let n=Ye(e.state.currentPlaybackRate$),o=Ye(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{(s=(r=navigator.mediaSession).setPositionState)==null||s.call(r,{position:t,playbackRate:n,duration:o})}catch(a){this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as by,clientChecker as vy,detectEmbed as yy}from"@vkontakte/videoplayer-shared";function my(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=se(u,l[c]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),we(e,u)},m(c,m){w(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),we(e,u=He(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&y(e),a&&a.d(c)}}}function py(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var yf=class extends N{constructor(e){super(),O(this,e,py,my,B,{})}},M_=yf;function _y(i){be(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function hy(i){let e,t,n,o,r,s,a;return n=new M_({}),{c(){e=I("div"),t=I("div"),R(n.$$.fragment),o=Y(),r=I("span"),s=qe(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),G(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),G(e,"is-pip-api",i[2])},m(l,u){w(l,e,u),_(e,t),L(n,t,null),_(e,o),_(e,r),_(r,s),a=!0},p(l,[u]){(!a||u&2)&&G(t,"desktop",!l[1]),(!a||u&1)&&Ge(s,l[0])},i(l){a||(d(n.$$.fragment,l),a=!0)},o(l){p(n.$$.fragment,l),a=!1},d(l){l&&y(e),V(n)}}}function gy(i,e,t){let n,o,r=nt(),s=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;D(i,a,c=>t(5,n=c));let l=r.ui.isMobile;D(i,l,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&j("pip_dummy_title"))},[u,o,s,a,l,n]}var wf=class extends N{constructor(e){super(),O(this,e,gy,hy,B,{},_y)}},L_=wf;var wy=460,ky=280,rs=class{constructor(){this.info={isActive$:new by(!1),type:1}}isSupported(){let{isEmbed:e}=yy();return"documentPictureInPicture"in window&&!vy.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){var r,s;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:wy,height:ky,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
-
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new L_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(s=this.pipWindow)==null||s.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function V_(i){return i instanceof rs}var Hl=class{static getLatestSupportedVersion(){let e=new or,t=new rs;if(t.isSupported())return t;if(e.isSupported())return e}};function ql(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let s of t)n[s]=(r=(o=e[s])!=null?o:i[s])!=null?r:void 0;return n}var R_="Inner error. Unexpectedly root annotation container null reference exception",B_="Annotation with such name already exists",N_="Annotation with such name does not exist";var Hr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Cy,Subscription as Sy,throttleFn as Ty}from"@vkontakte/videoplayer-shared";var Iy="1",Py=100,Ul=class{constructor(){this.annotations=new Map;this.subscriptions=new Sy}init(e){this.rootAnnotationsContainer=e;let t=Ty(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Py);this.subscriptions.add(Cy(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new Hr(R_);if(this.annotations.has(e))throw new Hr(B_);t.style.zIndex=(n=t.style.zIndex)!=null?n:Iy,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new Hr(N_);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,s=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+s>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as zl,Subscription as Ey}from"@vkontakte/videoplayer-shared";var xn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return zl(e),zl(t),zl(o),o.interactiveData&&zl(n),this.subscription=new Ey,this.subscription}};var ss=class extends xn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Oe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var ls=class extends xn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Oe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:s}=o,{isInteractiveExpectation$:a,isPlaying$:l}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=Ye(c),h=()=>m&&Ye(u);return n.add(u.subscribe(C=>{if(!m)return;let g=Ye(s);Ye(l)?this.state$.set(C):g!==null&&this.state$.set(!g||C)})),n.add(l.subscribe(C=>{this.state$.set(!C||h())})),n.add(s.subscribe(C=>{if(C===null)return;let g=Ye(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!C)})),n}};var as=class extends xn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Oe("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as Ay}from"@vkontakte/videoplayer-shared";var kf=Oe(!1),Wl=null,us=class extends xn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...kf,set:(t,n=!1)=>{t!==Ye(kf)&&(this.clearTimeout(),kf.set(t),!t&&Wl&&(Wl=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:s,isPlaying$:a}=o.state,l=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(l.subscribe(m=>{Ye(s)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(Ay({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:C})=>{var g,S;if(!(!m||!(C!=null&&C.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&Wl===null&&(Wl=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(S=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||S.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as My,noop as Ly}from"@vkontakte/videoplayer-shared";var cs=class extends xn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...Oe(null),toggle:Ly};this.checkIfShouldHide=t=>Rr(t,"s")}init(t){let n=super.init(t),{store:o,interactiveController:r}=t,s=o.ui.currentGridType$;return this.state$.toggle=()=>{if(this.checkIfShouldHide(Ye(s)))return;let a=Ye(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=Ye(l),h=Ye(u);a?(this.state$.set(!1),r==null||r.toggleGraphView(!1),c.remove(ta),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r==null||r.toggleGraphView(!0),c.add(ta),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add(My({graphIsOpened:this.state$,currentGridType:s}).subscribe(({graphIsOpened:a,currentGridType:l})=>{this.checkIfShouldHide(l)&&a&&(r==null||r.toggleGraphView(!1),this.state$.set(!1))})),n}};var D_=()=>[ss,ls,as,us,cs].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var Hy={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ry.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:Ny(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},Kl=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{var v,E,H,U;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:C}=ql(this.videoConfig,n),g=(v=C==null?void 0:C.projectInfo)==null?void 0:v.pid,S=(H=(E=this.interactiveController)==null?void 0:E.state.isReplay$.getValue())!=null?H:!1;S&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:F=!1}=t;if(this.uiConfig.features.statistics&&k)return new Fy({movieId:k,albumId:o,place:r,trackCode:a,autoplay:(U=u&&!this.interactiveController)!=null?U:!1,mobile:c,clip:F,refDomain:m,deviceId:h,...g&&(!this.isInited||S)&&{projectId:Number(g)}},{refreshAuthToken:l,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new Dy,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Oy,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new A_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,s,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(a=this.interactiveController)==null||a.destroy()}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.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!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(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var dt,vt,yt,Qe,Tt,At,ii,Ot,Ft,jt,Ht;if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:C,supportLink:g,showAds:S,adsSlotId:k,adsParams:F={},adsPreviewParam:T,interfaceLanguage:v,isCyrillicRelatedInterface:E,logoClickable:H,logoHidden:U,isMobile:W,isAudioDisabled:ne,isLiveCatchUpMode:de,fullScreenTarget:q,failoverHosts:X,canDownload:oe,callbacks:K,interactiveData:ce,showThumbTimer:z,additionalButtons:x=[],additionalSettingsMenuItems:P=[],additionalContextMenuItems:J=[],repeat:le,saveRate:Ae,volumeMultiplier:ee,showEndScreen:ge}=ql(this.videoConfig,n),{sources:Ee,title:Te,thumbUrl:Ie,unitedVideoId:ot,isClip:Pe=!1,duration:We,adsParams:$={},videoEpisodes:_e,previewThumbsData:Ce,subtitles:xe,live:rt}=t,lt={...F,...$},it=this.getNextVideoInfo(),Je={sources:Ee,title:Te,thumbUrl:Ie,subtitles:xe,unitedVideoId:ot,isClip:Pe,live:rt,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:C,showAds:S,adsSlotId:k,adsParams:lt,adsPreviewParam:T,duration:We,logoClickable:H,logoHidden:U,isMobile:W,repeat:le,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:it.nextVideoTitle,endScreenVideoThumb:it.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Je)}`});let Se=(dt=this.interactiveController)==null?void 0:dt.state.statistics$.getValue(),$e=(Se==null?void 0:Se.oneStat)||this.createOneStat(t,n);$e&&(this.statistics=new dl($e,Se==null?void 0:Se.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new nr(this.uiConfig.sentry,{version:kr,env:ks},{movieId:ot,albumId:r,place:s,autoplay:(vt=u&&!this.interactiveController)!=null?vt:!1,mobile:W,clip:Pe}),this.interactiveController&&((Qe=this.prevIsid)!=null||(this.prevIsid=(yt=this.statistics)==null?void 0:yt.oneStat.isid$.getValue())),this.sentry={...this.sentry,...nr.getInstance()};let et=!!ce,Fe=[],ut="tooltip_interactive_go_back_disabled_first";if(et&&this.interactiveController){let Ke=this.interactiveController.state.isInitialChapter$.getValue(),Ze=this.interactiveController.getHistoryState();Ke&&Fe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Fe.push("SEEK_TO_INTERACTIVE_BUTTON"),Ze.hasPrevChapter$.getValue()||(Fe.push("PLAY_PREV_CHAPTER_BUTTON"),Ke||(Ze.isGoBackLimited$.getValue()?ut="tooltip_interactive_go_back_disabled_limit":ut="tooltip_interactive_go_back_disabled"))}let ft=()=>{var Ze;this.isInited=!1,this.prevIsid=void 0;let Ke=(o==null?void 0:o.info.isEnded$.getValue())&&((Ze=this.interactiveController)==null?void 0:Ze.state.isEndChapter$.getValue());K.onReplayInteractiveVideo&&!Ke?K.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=ym({player:o,interfaceLanguage:v,isCyrillicRelatedInterface:E,videoId:ot,isClip:Pe,isLiveCatchUpMode:de,isAudioDisabled:ne,statAuthToken:a,callbacks:K,webApi:fe,videoEpisodes:_e,previewThumbsData:Ce,canDownload:oe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Fe,isInteractive:et,saveRate:Ae,interactiveRanges$:(Tt=this.interactiveController)==null?void 0:Tt.state.interactiveRanges$,isInteractiveTime$:(At=this.interactiveController)==null?void 0:At.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ft,playPrevChapterDisabledTooltip:ut,hasInteractiveBranches:!!((Ot=(ii=this.interactiveController)==null?void 0:ii.getChapterBranches())!=null&&Ot.length),additionalButtons:this.uiConfig.features.additionalButtons?x:[],additionalSettingsMenuItems:P!=null?P:[],additionalContextMenuItems:J!=null?J:[],looped:le&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:he}=this.microStoresRoot=D_();this.subscription.add(this.store.state.currentFormat$.subscribe(Ke=>{var Ze;return(Ze=K==null?void 0:K.onCurrentFormatChanged)==null?void 0:Ze.call(K,Ke)})),this.subscription.add(he.interactiveControlsOpacity$.subscribe(Ke=>{var Ze;Ke!==null&&((Ze=this==null?void 0:this.interactiveController)==null||Ze.setDisabledControls(Ke))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ke=>{var Ze;return(Ze=K==null?void 0:K.onThroughputEstimationChanged)==null?void 0:Ze.call(K,Ke)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ke=>{var Ze;return(Ze=K==null?void 0:K.onTrafficSavingEnabledChanged)==null?void 0:Ze.call(K,Ke)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>{var Ze;return(Ze=K==null?void 0:K.onCurrentPlaybackRateChanged)==null?void 0:Ze.call(K,Ke)})),this.subscription.add(this.store.state.volume$.subscribe(Ke=>{var Ze;return(Ze=K==null?void 0:K.onVolumeChange)==null?void 0:Ze.call(K,Ke)})),this.subscription.add(this.store.state.muted$.subscribe(Ke=>{var Ze,Ct;return Ke?(Ze=K==null?void 0:K.onMute)==null?void 0:Ze.call(K):(Ct=K==null?void 0:K.onUnmute)==null?void 0:Ct.call(K)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ke=>{var Ze;return(Ze=K==null?void 0:K.onVideoBitrateChanged)==null?void 0:Ze.call(K,Ke)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ke=>{var Ct;let Ze=(Ct=this.store)==null?void 0:Ct.ui.controls.disabledControls$;Ze&&(Ke&&!Ze.includes(Zr)&&Ze.add(Zr),Ke||Ze.remove(Zr))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Ke=>{var Ct;if(!By.isSamsungBrowser||!Ke||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((Ct=this.videoConfig)==null?void 0:Ct.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ke=>{var Ze;return(Ze=K==null?void 0:K.onVSIDChanged)==null?void 0:Ze.call(K,Ke)})),this.initMediaSession(),this.svelteRootComponent=new S_({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Ie,subtitles:xe,live:rt,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:C,supportLink:g,showAds:S,adsSlotId:k,adsParams:lt,adsPreviewParam:T,duration:We,logoClickable:H,logoHidden:U,isMobile:W,failoverHosts:X,fullScreenTarget:q,saveRate:Ae,shadowRootContainer:this.shadowRootContainer,showMiniTimer:z,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:it.nextVideoTitle,endScreenVideoThumb:it.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ee,showEndScreen:ge}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ht=(jt=(Ft=this.videoConfig)==null?void 0:Ft.callbacks)==null?void 0:jt.onInited)==null||Ht.call(jt))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(s=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,s)})).add(t.state.playbackState$.subscribe(s=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,s)})).add(t.state.isLive$.subscribe(s=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isActiveLive$.subscribe(s=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isAudioAvailable$.subscribe(s=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,s)})).add(t.state.currentQuality$.subscribe(s=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,s)})).add(t.state.availableQualities$.subscribe(s=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,s.map(({value:l})=>l).filter(l=>l!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(s=>{s.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(s=>{var a,l;return s?(a=n.onPiPEnter)==null?void 0:a.call(n):(l=n.onPiPExit)==null?void 0:l.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(s=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,s)})).add(t.ui.isMobile.subscribe(s=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,s)})).add(t.ui.playerSize.subscribe(s=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.prevButton.subscribe(s=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playButton.subscribe(s=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.replayButton.subscribe(s=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.nextButton.subscribe(s=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playPrevChapterButton.subscribe(s=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.seekToInteractiveButton.subscribe(s=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveGraphButton.subscribe(s=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.liveButton.subscribe(s=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.time.subscribe(s=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.episodes.subscribe(s=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.subtitles.subscribe(s=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.settings.subscribe(s=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.fullscreen.subscribe(s=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.chromecast.subscribe(s=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.pip.subscribe(s=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.vkLogo.subscribe(s=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(s=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.timeline.subscribe(s=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,s)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Cf(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:s,EVENT_NAMES:a,CustomError:l}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?Ye(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:C,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new s({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:C,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:S,isSeekable$:k}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(k.subscribe(T=>{if(!this.isInited)return;let v=this.store;T?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(S.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let F=!0;if(this.interactiveController.on(a.playerChanged,T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(m==null?void 0:m.title)||T.config.title};let v=F?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,v),F&&(F=!1)}),this.interactiveController.on(a.interactives,({type:T,actionType:v})=>{var H,U,W,ne;if(!this.store)return;let E=S.getValue();if(T==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ws)),T==="action-choice-canceled"){let de=Ye(this.store.state.isPlaying$)||E;if((H=this.videoConfig)!=null&&H.isMobile&&de){this.store.ui.interactiveHideMobileControls.set(!0);return}(ne=(U=this.videoConfig)==null?void 0:(W=U.callbacks).onDisabledInteractiveClick)==null||ne.call(W)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(v=>{var E,H,U;v.length&&((U=(H=(E=this.videoConfig)==null?void 0:E.callbacks)==null?void 0:H.onInteractiveHistoryChanged)==null||U.call(H,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,v,E,H;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(H=(v=this.videoConfig)==null?void 0:(E=v.callbacks).onInteractiveTimeIndicatorClick)==null||H.call(E)})),this.interactiveController.on(a.errors,T=>{this.log({message:T.toString()})})}catch(s){this.log({message:s.message})}}initPlayer(t,n={}){var o,r,s,a,l,u,c,m,h,C,g,S,k,F,T,v,E,H,U,W;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=ql(Hy,Vy(t,ne=>ne instanceof HTMLElement?ne:void 0)),this.uiConfig=Of((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(s=n.statistics)!=null?s:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},Cf(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(l=this.uiConfig.features.mediaSession)!=null?l:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),Cf(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(m=(c=this.uiConfig.features.pip)!=null?c:this.videoConfig.isPictureInPictureEnabled)!=null?m:!0,this.uiConfig.features.dpip=(C=(h=this.uiConfig.features.dpip)!=null?h:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!=null?g:this.videoConfig.isMobile,(S=this.videoConfig).autoplay&&(S.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(F=this.uiConfig.ads.slot)!=null?F:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(E=this.videoConfig).canRewindLive&&(E.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Hl.getLatestSupportedVersion():this.pictureInPictureApi=new or),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Fl:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ul:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(U=this.svelteStubComponent)==null||U.$destroy(),(W=this.svelteRootComponent)==null||W.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),V_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){var t,n,o,r;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("LiveWaitingStart")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var o,r,s;if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),(o=this.svelteStubComponent)==null||o.$destroy(),(r=this.mediaSessionApi)==null||r.destroy();let n=this.videoConfig.videos[0];n&&((s=this.svelteRootComponent)==null||s.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}async setLanguage(t){var n;await((n=this.store)==null?void 0:n.actions.internal.setLanguage(t))}setLiveStart(t){var n,o,r;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){var t,n;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()}setLiveWaitingRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o,r;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=await import("@vkontakte/videoplayer-interactive"),r=Ye(this.store.state.positionExact$),a=Ye(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let l=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:l.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalContextItem(t)}updateAdditionalButton(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(t,n)}addAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.addAdditionalButton(t)}removeAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalButton(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};import{InterfaceLanguage as lz,VKNumericLanguage as az,loadVKLangPack as uz}from"@vkontakte/videoplayer-shared";import{VideoQuality as fz,VideoFormat as dz}from"@vkontakte/videoplayer-core";var tz=()=>{window.customElements.define("vk-video-player",Kl)};export{ml as ControlButtonType,bo as GridTypes,lz as InterfaceLanguage,qs as MenuItemType,kr as VERSION,az as VKNumericLanguage,dz as VideoFormat,fz as VideoQuality,uz as loadVKLangPack,tz as registerPlayerWebComponent};
|
|
52
|
+
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--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;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function v8(i){let e,t,n,o;function r(l){i[63](l)}function s(l){i[64](l)}let a={store:i[1],uiConfig:i[36],title:i[2],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[37],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],shadowRootContainer:i[23],outerContainerRef:i[24],fullScreenTarget:i[25],showMiniTimer:i[26],playerStarted:i[35],playNextVideo:i[27],playPrevVideo:i[28],repeatPlaylist:i[29],seekToInteractive:i[30],playPrevChapter:i[31],firstStart:i[39],showEndScreen:i[32]};return i[34]!==void 0&&(a.videoContainer=i[34]),i[0]!==void 0&&(a.keyboardControls=i[0]),e=new p_({props:a}),ge.push(()=>Ue(e,"videoContainer",r)),ge.push(()=>Ue(e,"keyboardControls",s)),{c(){D(e.$$.fragment)},m(l,u){R(e,l,u),o=!0},p(l,u){let c={};u[0]&2&&(c.store=l[1]),u[0]&4&&(c.title=l[2]),u[0]&8&&(c.thumbUrl=l[3]),u[0]&16&&(c.interactiveContainer=l[4]),u[0]&32&&(c.live=l[5]),u[0]&64&&(c.autoplay=l[6]),u[0]&128&&(c.canRewindLive=l[7]),u[0]&256&&(c.showAds=l[8]),u[0]&512&&(c.adsSlotId=l[9]),u[0]&1024&&(c.adsParams=l[10]),u[0]&2048&&(c.adsPreviewParam=l[11]),u[0]&4096&&(c.duration=l[12]),u[0]&8192&&(c.logoClickable=l[13]),u[0]&16384&&(c.logoHidden=l[14]),u[0]&65536&&(c.showNextPrevButtons=l[16]),u[0]&131072&&(c.nextButtonActive=l[17]),u[0]&262144&&(c.prevButtonActive=l[18]),u[0]&524288&&(c.endScreenVideoTitle=l[19]),u[0]&1048576&&(c.endScreenVideoThumb=l[20]),u[0]&2097152&&(c.isOneVideoPlaylist=l[21]),u[0]&4194304&&(c.supportLink=l[22]),u[0]&8388608&&(c.shadowRootContainer=l[23]),u[0]&16777216&&(c.outerContainerRef=l[24]),u[0]&33554432&&(c.fullScreenTarget=l[25]),u[0]&67108864&&(c.showMiniTimer=l[26]),u[1]&16&&(c.playerStarted=l[35]),u[0]&134217728&&(c.playNextVideo=l[27]),u[0]&268435456&&(c.playPrevVideo=l[28]),u[0]&536870912&&(c.repeatPlaylist=l[29]),u[0]&1073741824&&(c.seekToInteractive=l[30]),u[1]&1&&(c.playPrevChapter=l[31]),u[1]&2&&(c.showEndScreen=l[32]),!t&&u[1]&8&&(t=!0,c.videoContainer=l[34],qe(()=>t=!1)),!n&&u[0]&1&&(n=!0,c.keyboardControls=l[0],qe(()=>n=!1)),e.$set(c)},i(l){o||(d(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function y8(i){let e,t,n;function o(s){i[62](s)}let r={store:i[1],uiConfig:i[36],thumbUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],logoTargetUrl:i[37],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],shadowRootContainer:i[23],outerContainerRef:i[24],fullScreenTarget:i[25],showMiniTimer:i[26],playerStarted:i[35],playNextVideo:i[27],playPrevVideo:i[28],repeatPlaylist:i[29],seekToInteractive:i[30],playPrevChapter:i[31],firstStart:i[39],seekTime:i[33],showEndScreen:i[32]};return i[34]!==void 0&&(r.videoContainer=i[34]),e=new D_({props:r}),ge.push(()=>Ue(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(s,a){R(e,s,a),n=!0},p(s,a){let l={};a[0]&2&&(l.store=s[1]),a[0]&8&&(l.thumbUrl=s[3]),a[0]&16&&(l.interactiveContainer=s[4]),a[0]&32&&(l.live=s[5]),a[0]&64&&(l.autoplay=s[6]),a[0]&128&&(l.canRewindLive=s[7]),a[0]&256&&(l.showAds=s[8]),a[0]&512&&(l.adsSlotId=s[9]),a[0]&1024&&(l.adsParams=s[10]),a[0]&2048&&(l.adsPreviewParam=s[11]),a[0]&4096&&(l.duration=s[12]),a[0]&8192&&(l.logoClickable=s[13]),a[0]&16384&&(l.logoHidden=s[14]),a[0]&65536&&(l.showNextPrevButtons=s[16]),a[0]&131072&&(l.nextButtonActive=s[17]),a[0]&262144&&(l.prevButtonActive=s[18]),a[0]&524288&&(l.endScreenVideoTitle=s[19]),a[0]&1048576&&(l.endScreenVideoThumb=s[20]),a[0]&2097152&&(l.isOneVideoPlaylist=s[21]),a[0]&4194304&&(l.supportLink=s[22]),a[0]&8388608&&(l.shadowRootContainer=s[23]),a[0]&16777216&&(l.outerContainerRef=s[24]),a[0]&33554432&&(l.fullScreenTarget=s[25]),a[0]&67108864&&(l.showMiniTimer=s[26]),a[1]&16&&(l.playerStarted=s[35]),a[0]&134217728&&(l.playNextVideo=s[27]),a[0]&268435456&&(l.playPrevVideo=s[28]),a[0]&536870912&&(l.repeatPlaylist=s[29]),a[0]&1073741824&&(l.seekToInteractive=s[30]),a[1]&1&&(l.playPrevChapter=s[31]),a[1]&2&&(l.showEndScreen=s[32]),!t&&a[1]&8&&(t=!0,l.videoContainer=s[34],qe(()=>t=!1)),e.$set(l)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){p(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function w8(i){let e,t,n,o,r=[y8,v8],s=[];function a(l,u){return l[15]?0:1}return t=a(i,[-1,-1,-1]),n=s[t]=r[t](i),{c(){e=P("div"),n.c(),f(e,"class","root svelte-zbipwr")},m(l,u){k(l,e,u),s[t].m(e,null),o=!0},p(l,u){let c=t;t=a(l,u),t===c?s[t].p(l,u):(se(),p(s[c],1,1,()=>{s[c]=null}),le(),n=s[t],n?n.p(l,u):(n=s[t]=r[t](l),n.c()),d(n,1),n.m(e,null))},i(l){o||(d(n),o=!0)},o(l){p(n),o=!1},d(l){l&&w(e),s[t].d()}}}function k8(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:s}=e,{videoConfig:a}=e,{uiConfig:l}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{interactiveController:h}=e,{subtitles:v}=e,{live:g}=e,{preload:I}=e,{autoplay:C}=e,{volume:V=void 0}=e,{muted:S=void 0}=e,{fromTime:y}=e,{canRewindLive:E}=e,{showAds:z}=e,{adsSlotId:N=void 0}=e,{adsParams:L=void 0}=e,{adsPreviewParam:ee=void 0}=e,{duration:ae=void 0}=e,{logoClickable:Q}=e,{logoHidden:$}=e,{isMobile:J}=e,{showNextPrevButtons:W=!1}=e,{nextButtonActive:ue=!1}=e,{prevButtonActive:x=!1}=e,{endScreenVideoTitle:K=void 0}=e,{endScreenVideoThumb:A=void 0}=e,{isOneVideoPlaylist:fe=!1}=e,{supportLink:X}=e,{shadowRootContainer:Me=void 0}=e,{outerContainerRef:ie=void 0}=e,{fullScreenTarget:be=void 0}=e,{failoverHosts:Te=void 0}=e,{showMiniTimer:Ie=!1}=e,{saveRate:Pe}=e,{playNextVideo:ot=fs}=e,{playPrevVideo:Ee=fs}=e,{repeatPlaylist:ze=fs}=e,{seekToInteractive:te=fs}=e,{playPrevChapter:pe=fs}=e,{volumeMultiplier:Ce}=e,{showEndScreen:We=!0}=e,{keyboardControls:nt=void 0}=e,{subscribers:st,stores:rt}=s;Jf(l);let Qe=Lt(),ce=l.logoLink,Se=r.ui.debugPanelVisible,$e=r.ui.playerSize,De=r.state.isLive$;q(i,De,me=>t(66,n=me));let He=r.state.isInteractive&&h8.isAndroid,ut,ct=null,_e=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),ad(r,rt);let dt=(me=!1)=>{t(35,_e=!0),me?r.actions.external.firstStart(z):r.actions.internal.firstStart(z)};function bt(me){var xt;let Gt=o||me;Gt&&r.initVideo({container:ut,sources:Gt,failoverHosts:Te,subtitles:v,volumeMultiplier:Ce});let Yt=p8.get(ts)==="true";Se.set(Yt),y>0&&r.actions.external.seekTime(y);let Qt=J?Qe.volumeDefault:(xt=V!=null?V:Vs())!=null?xt:Qe.volumeDefault,At=S!=null?S:Sd();if(r.actions.external.setVolume(Qt),r.actions.external.setMuted(At),r.getAdmanWrapper().setInitialVolume(At?0:Qt),Qe.features.trafficSaving){let Ot=Id();Ot&&r.actions.internal.setTrafficSavingEnabled(Ot)}if(Qe.features.saveRate&&Pe){let Ot=Ad();Ot&&!n&&r.actions.internal.setPlaybackRate(Ot)}if(Qe.features.autoplayNext){let Ot=Ld();Ot&&r.actions.internal.setAutoplayNextEnabled(Ot)}let Zt=Cd(r.videoId);Zt&&r.actions.internal.setQuality(Zt),r.ui.isAutoplay.set(C),C?dt():I&&Qe.features.preload&&r.actions.internal.preload()}let Ct=me=>{if(window.ResizeObserver){let Gt,Yt;ct=new ResizeObserver(_8(Qt=>{let At=Qt[0];if(At){if(At.contentBoxSize){let Zt=Array.isArray(At.contentBoxSize)?At.contentBoxSize[0]:At.contentBoxSize;Gt=Zt.inlineSize,Yt=Zt.blockSize}else At.contentRect&&(Gt=At.contentRect.width,Yt=At.contentRect.height);$e.set({width:Gt,height:Yt})}},300)),ct.observe(me)}$e.set({width:me.clientWidth,height:me.clientHeight})},yt=()=>{document.hidden&&r.actions.external.stop()};Nt(()=>{He&&document.addEventListener("visibilitychange",yt),Ct(ut);let me=st.map(Yt=>Yt.init({store:r,microStores:rt,config:a,interactiveController:h}));if((g==null?void 0:g.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((g==null?void 0:g.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((g==null?void 0:g.status)==="finished"||(g==null?void 0:g.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return bt(),()=>{He&&document.removeEventListener("visibilitychange",yt),ct==null||ct.disconnect(),me.forEach(Yt=>Yt.unsubscribe()),r.destroy()}});function Ye(){_e?r.actions.external.play():dt(!0)}function Wt(){r.actions.external.pause()}function $t(me){J||r.actions.external.setMuted(me)}function zt(me){J||me>=0&&me<=1&&r.actions.external.setVolume(me)}function Dt(me){r.actions.internal.seekTime(me,g8.UNKNOWN)}function Kt(me){r.actions.external.seekEpisodeStartTime(me)}function Vt(){r.actions.external.returnFocusToEpisodes()}function xe(me){r.actions.external.setPlaybackRate(me)}function Ze(me){r.actions.external.setAutoQualityLimits(me)}function St(me){ut=me,t(34,ut)}function jt(me){ut=me,t(34,ut)}function qt(me){nt=me,t(0,nt)}return i.$$set=me=>{"sources"in me&&t(40,o=me.sources),"store"in me&&t(1,r=me.store),"microStoresRoot"in me&&t(41,s=me.microStoresRoot),"videoConfig"in me&&t(42,a=me.videoConfig),"uiConfig"in me&&t(43,l=me.uiConfig),"title"in me&&t(2,u=me.title),"thumbUrl"in me&&t(3,c=me.thumbUrl),"interactiveContainer"in me&&t(4,m=me.interactiveContainer),"interactiveController"in me&&t(44,h=me.interactiveController),"subtitles"in me&&t(45,v=me.subtitles),"live"in me&&t(5,g=me.live),"preload"in me&&t(46,I=me.preload),"autoplay"in me&&t(6,C=me.autoplay),"volume"in me&&t(47,V=me.volume),"muted"in me&&t(48,S=me.muted),"fromTime"in me&&t(49,y=me.fromTime),"canRewindLive"in me&&t(7,E=me.canRewindLive),"showAds"in me&&t(8,z=me.showAds),"adsSlotId"in me&&t(9,N=me.adsSlotId),"adsParams"in me&&t(10,L=me.adsParams),"adsPreviewParam"in me&&t(11,ee=me.adsPreviewParam),"duration"in me&&t(12,ae=me.duration),"logoClickable"in me&&t(13,Q=me.logoClickable),"logoHidden"in me&&t(14,$=me.logoHidden),"isMobile"in me&&t(15,J=me.isMobile),"showNextPrevButtons"in me&&t(16,W=me.showNextPrevButtons),"nextButtonActive"in me&&t(17,ue=me.nextButtonActive),"prevButtonActive"in me&&t(18,x=me.prevButtonActive),"endScreenVideoTitle"in me&&t(19,K=me.endScreenVideoTitle),"endScreenVideoThumb"in me&&t(20,A=me.endScreenVideoThumb),"isOneVideoPlaylist"in me&&t(21,fe=me.isOneVideoPlaylist),"supportLink"in me&&t(22,X=me.supportLink),"shadowRootContainer"in me&&t(23,Me=me.shadowRootContainer),"outerContainerRef"in me&&t(24,ie=me.outerContainerRef),"fullScreenTarget"in me&&t(25,be=me.fullScreenTarget),"failoverHosts"in me&&t(50,Te=me.failoverHosts),"showMiniTimer"in me&&t(26,Ie=me.showMiniTimer),"saveRate"in me&&t(51,Pe=me.saveRate),"playNextVideo"in me&&t(27,ot=me.playNextVideo),"playPrevVideo"in me&&t(28,Ee=me.playPrevVideo),"repeatPlaylist"in me&&t(29,ze=me.repeatPlaylist),"seekToInteractive"in me&&t(30,te=me.seekToInteractive),"playPrevChapter"in me&&t(31,pe=me.playPrevChapter),"volumeMultiplier"in me&&t(52,Ce=me.volumeMultiplier),"showEndScreen"in me&&t(32,We=me.showEndScreen),"keyboardControls"in me&&t(0,nt=me.keyboardControls)},i.$$.update=()=>{i.$$.dirty[0]&32770&&r.ui.isMobile.set(J)},[nt,r,u,c,m,g,C,E,z,N,L,ee,ae,Q,$,J,W,ue,x,K,A,fe,X,Me,ie,be,Ie,ot,Ee,ze,te,pe,We,Dt,ut,_e,Qe,ce,De,dt,o,s,a,l,h,v,I,V,S,y,Te,Pe,Ce,bt,Ye,Wt,$t,zt,Kt,Vt,xe,Ze,St,jt,qt]}var Ef=class extends H{constructor(e){super(),U(this,e,k8,w8,F,{sources:40,store:1,microStoresRoot:41,videoConfig:42,uiConfig:43,title:2,thumbUrl:3,interactiveContainer:4,interactiveController:44,subtitles:45,live:5,preload:46,autoplay:6,volume:47,muted:48,fromTime:49,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,shadowRootContainer:23,outerContainerRef:24,fullScreenTarget:25,failoverHosts:50,showMiniTimer:26,saveRate:51,playNextVideo:27,playPrevVideo:28,repeatPlaylist:29,seekToInteractive:30,playPrevChapter:31,volumeMultiplier:52,showEndScreen:32,keyboardControls:0,initVideo:53,play:54,pause:55,setMuted:56,setVolume:57,seekTime:33,seekEpisodeStartTime:58,returnFocusToEpisodes:59,setPlaybackRate:60,setAutoQualityLimits:61},b8,[-1,-1,-1])}get sources(){return this.$$.ctx[40]}set sources(e){this.$$set({sources:e}),ft()}get store(){return this.$$.ctx[1]}set store(e){this.$$set({store:e}),ft()}get microStoresRoot(){return this.$$.ctx[41]}set microStoresRoot(e){this.$$set({microStoresRoot:e}),ft()}get videoConfig(){return this.$$.ctx[42]}set videoConfig(e){this.$$set({videoConfig:e}),ft()}get uiConfig(){return this.$$.ctx[43]}set uiConfig(e){this.$$set({uiConfig:e}),ft()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),ft()}get thumbUrl(){return this.$$.ctx[3]}set thumbUrl(e){this.$$set({thumbUrl:e}),ft()}get interactiveContainer(){return this.$$.ctx[4]}set interactiveContainer(e){this.$$set({interactiveContainer:e}),ft()}get interactiveController(){return this.$$.ctx[44]}set interactiveController(e){this.$$set({interactiveController:e}),ft()}get subtitles(){return this.$$.ctx[45]}set subtitles(e){this.$$set({subtitles:e}),ft()}get live(){return this.$$.ctx[5]}set live(e){this.$$set({live:e}),ft()}get preload(){return this.$$.ctx[46]}set preload(e){this.$$set({preload:e}),ft()}get autoplay(){return this.$$.ctx[6]}set autoplay(e){this.$$set({autoplay:e}),ft()}get volume(){return this.$$.ctx[47]}set volume(e){this.$$set({volume:e}),ft()}get muted(){return this.$$.ctx[48]}set muted(e){this.$$set({muted:e}),ft()}get fromTime(){return this.$$.ctx[49]}set fromTime(e){this.$$set({fromTime:e}),ft()}get canRewindLive(){return this.$$.ctx[7]}set canRewindLive(e){this.$$set({canRewindLive:e}),ft()}get showAds(){return this.$$.ctx[8]}set showAds(e){this.$$set({showAds:e}),ft()}get adsSlotId(){return this.$$.ctx[9]}set adsSlotId(e){this.$$set({adsSlotId:e}),ft()}get adsParams(){return this.$$.ctx[10]}set adsParams(e){this.$$set({adsParams:e}),ft()}get adsPreviewParam(){return this.$$.ctx[11]}set adsPreviewParam(e){this.$$set({adsPreviewParam:e}),ft()}get duration(){return this.$$.ctx[12]}set duration(e){this.$$set({duration:e}),ft()}get logoClickable(){return this.$$.ctx[13]}set logoClickable(e){this.$$set({logoClickable:e}),ft()}get logoHidden(){return this.$$.ctx[14]}set logoHidden(e){this.$$set({logoHidden:e}),ft()}get isMobile(){return this.$$.ctx[15]}set isMobile(e){this.$$set({isMobile:e}),ft()}get showNextPrevButtons(){return this.$$.ctx[16]}set showNextPrevButtons(e){this.$$set({showNextPrevButtons:e}),ft()}get nextButtonActive(){return this.$$.ctx[17]}set nextButtonActive(e){this.$$set({nextButtonActive:e}),ft()}get prevButtonActive(){return this.$$.ctx[18]}set prevButtonActive(e){this.$$set({prevButtonActive:e}),ft()}get endScreenVideoTitle(){return this.$$.ctx[19]}set endScreenVideoTitle(e){this.$$set({endScreenVideoTitle:e}),ft()}get endScreenVideoThumb(){return this.$$.ctx[20]}set endScreenVideoThumb(e){this.$$set({endScreenVideoThumb:e}),ft()}get isOneVideoPlaylist(){return this.$$.ctx[21]}set isOneVideoPlaylist(e){this.$$set({isOneVideoPlaylist:e}),ft()}get supportLink(){return this.$$.ctx[22]}set supportLink(e){this.$$set({supportLink:e}),ft()}get shadowRootContainer(){return this.$$.ctx[23]}set shadowRootContainer(e){this.$$set({shadowRootContainer:e}),ft()}get outerContainerRef(){return this.$$.ctx[24]}set outerContainerRef(e){this.$$set({outerContainerRef:e}),ft()}get fullScreenTarget(){return this.$$.ctx[25]}set fullScreenTarget(e){this.$$set({fullScreenTarget:e}),ft()}get failoverHosts(){return this.$$.ctx[50]}set failoverHosts(e){this.$$set({failoverHosts:e}),ft()}get showMiniTimer(){return this.$$.ctx[26]}set showMiniTimer(e){this.$$set({showMiniTimer:e}),ft()}get saveRate(){return this.$$.ctx[51]}set saveRate(e){this.$$set({saveRate:e}),ft()}get playNextVideo(){return this.$$.ctx[27]}set playNextVideo(e){this.$$set({playNextVideo:e}),ft()}get playPrevVideo(){return this.$$.ctx[28]}set playPrevVideo(e){this.$$set({playPrevVideo:e}),ft()}get repeatPlaylist(){return this.$$.ctx[29]}set repeatPlaylist(e){this.$$set({repeatPlaylist:e}),ft()}get seekToInteractive(){return this.$$.ctx[30]}set seekToInteractive(e){this.$$set({seekToInteractive:e}),ft()}get playPrevChapter(){return this.$$.ctx[31]}set playPrevChapter(e){this.$$set({playPrevChapter:e}),ft()}get volumeMultiplier(){return this.$$.ctx[52]}set volumeMultiplier(e){this.$$set({volumeMultiplier:e}),ft()}get showEndScreen(){return this.$$.ctx[32]}set showEndScreen(e){this.$$set({showEndScreen:e}),ft()}get keyboardControls(){return this.$$.ctx[0]}set keyboardControls(e){this.$$set({keyboardControls:e}),ft()}get initVideo(){return this.$$.ctx[53]}get play(){return this.$$.ctx[54]}get pause(){return this.$$.ctx[55]}get setMuted(){return this.$$.ctx[56]}get setVolume(){return this.$$.ctx[57]}get seekTime(){return this.$$.ctx[33]}get seekEpisodeStartTime(){return this.$$.ctx[58]}get returnFocusToEpisodes(){return this.$$.ctx[59]}get setPlaybackRate(){return this.$$.ctx[60]}get setAutoQualityLimits(){return this.$$.ctx[61]}},O_=Ef;function C8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let l=0;l<s.length;l+=1)a=re(a,s[l]);return{c(){e=O("svg"),r&&r.c(),t=O("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),ye(e,a)},m(l,u){k(l,e,u),r&&r.m(e,null),_(e,t),n=!0},p(l,[u]){r&&r.p&&(!n||u&2)&&Re(r,o,l,l[1],n?Ve(o,l[1],u,null):Be(l[1]),null),ye(e,a=Fe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&l[0]]))},i(l){n||(d(r,l),n=!0)},o(l){p(r,l),n=!1},d(l){l&&w(e),r&&r.d(l)}}}function S8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Af=class extends H{constructor(e){super(),U(this,e,S8,C8,F,{})}},F_=Af;function T8(i){let e,t;return e=new F_({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function I8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Mf=class extends H{constructor(e){super(),U(this,e,I8,T8,F,{isWhite:1})}},H_=Mf;function P8(i){he(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function q_(i){let e,t;return{c(){e=P("div"),t=Oe(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){k(n,e,o),_(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&w(e)}}}function U_(i){let e,t;return e=new H_({props:{isWhite:!!i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function E8(i){let e,t,n,o,r=i[0]&&q_(i),s=(!i[0]||!i[1])&&U_(i);return{c(){e=P("div"),r&&r.c(),t=Y(),s&&s.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,l){k(a,e,l),r&&r.m(e,null),_(e,t),s&&s.m(e,null),o=!0},p(a,[l]){a[0]?r?r.p(a,l):(r=q_(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?s?(s.p(a,l),l&3&&d(s,1)):(s=U_(a),s.c(),d(s,1),s.m(e,null)):s&&(se(),p(s,1,1,()=>{s=null}),le()),(!o||l&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(s),o=!0)},o(a){p(s),o=!1},d(a){a&&w(e),r&&r.d(),s&&s.d()}}}function A8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Lf=class extends H{constructor(e){super(),U(this,e,A8,E8,F,{title:0,thumbUrl:1},P8)}},z_=Lf;import{cloneDeepWith as X8,InterfaceLanguage as J8,clientChecker as $8,isMobile as e7,isNonNullable as Nf,Logger as t7,Subscription as i7}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as n7}from"@vkontakte/videoplayer-statistics";import{Logger as M8,Subscription as L8}from"@vkontakte/videoplayer-shared";var Ql=class{constructor(){this.subscription=new L8,this.logger=new M8,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,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",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){var t,n;if(this.isSupported())for(let[o,r]of e)try{(n=(t=navigator.mediaSession).setActionHandler)==null||n.call(t,o,r)}catch(s){throw new Error(`The media session action "${o}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{var r,s;let n=je(e.state.currentPlaybackRate$),o=je(e.state.duration$);if(!(!isFinite(t)||!isFinite(o)))try{(s=(r=navigator.mediaSession).setPositionState)==null||s.call(r,{position:t,playbackRate:n,duration:o})}catch(a){this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${o}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as O8,clientChecker as F8,detectEmbed as H8}from"@vkontakte/videoplayer-shared";function V8(i){let e,t,n,o,r,s=i[2].default,a=Le(s,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<l.length;c+=1)u=re(u,l[c]);return{c(){e=O("svg"),a&&a.c(),t=O("g"),n=O("path"),o=O("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),ye(e,u)},m(c,m){k(c,e,m),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Re(a,s,c,c[1],r?Ve(s,c[1],m,null):Be(c[1]),null),ye(e,u=Fe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){p(a,c),r=!1},d(c){c&&w(e),a&&a.d(c)}}}function R8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ve(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ve(e),[e,o,n]}var Vf=class extends H{constructor(e){super(),U(this,e,R8,V8,F,{})}},x_=Vf;function B8(i){he(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function N8(i){let e,t,n,o,r,s,a;return n=new x_({}),{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=Y(),r=P("span"),s=Oe(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),j(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),j(e,"is-pip-api",i[2])},m(l,u){k(l,e,u),_(e,t),R(n,t,null),_(e,o),_(e,r),_(r,s),a=!0},p(l,[u]){(!a||u&2)&&j(t,"desktop",!l[1]),(!a||u&1)&&Ke(s,l[0])},i(l){a||(d(n.$$.fragment,l),a=!0)},o(l){p(n.$$.fragment,l),a=!1},d(l){l&&w(e),B(n)}}}function D8(i,e,t){let n,o,r=it(),s=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;q(i,a,c=>t(5,n=c));let l=r.ui.isMobile;q(i,l,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&G("pip_dummy_title"))},[u,o,s,a,l,n]}var Rf=class extends H{constructor(e){super(),U(this,e,D8,N8,F,{},B8)}},W_=Rf;var q8=460,U8=280,ds=class{constructor(){this.info={isActive$:new O8(!1),type:1}}isSupported(){let{isEmbed:e}=H8();return"documentPictureInPicture"in window&&!F8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){var r,s;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:q8,height:U8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
+
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new W_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(s=this.pipWindow)==null||s.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function K_(i){return i instanceof ds}var Zl=class{static getLatestSupportedVersion(){let e=new or,t=new ds;if(t.isSupported())return t;if(e.isSupported())return e}};function Xl(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let s of t)n[s]=(r=(o=e[s])!=null?o:i[s])!=null?r:void 0;return n}var j_="Inner error. Unexpectedly root annotation container null reference exception",G_="Annotation with such name already exists",Y_="Annotation with such name does not exist";var Ur=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as z8,Subscription as x8,throttleFn as W8}from"@vkontakte/videoplayer-shared";var K8="1",j8=100,Jl=class{constructor(){this.annotations=new Map;this.subscriptions=new x8}init(e){this.rootAnnotationsContainer=e;let t=W8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},j8);this.subscriptions.add(z8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new Ur(j_);if(this.annotations.has(e))throw new Ur(G_);t.style.zIndex=(n=t.style.zIndex)!=null?n:K8,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new Ur(Y_);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,s=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+s>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as $l,Subscription as G8}from"@vkontakte/videoplayer-shared";var Gn=class{init({store:e,microStores:t,interactiveController:n,config:o}){return $l(e),$l(t),$l(o),o.interactiveData&&$l(n),this.subscription=new G8,this.subscription}};var ms=class extends Gn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var ps=class extends Gn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:s}=o,{isInteractiveExpectation$:a,isPlaying$:l}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=je(c),h=()=>m&&je(u);return n.add(u.subscribe(v=>{if(!m)return;let g=je(s);je(l)?this.state$.set(v):g!==null&&this.state$.set(!g||v)})),n.add(l.subscribe(v=>{this.state$.set(!v||h())})),n.add(s.subscribe(v=>{if(v===null)return;let g=je(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!v)})),n}};var _s=class extends Gn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as Y8}from"@vkontakte/videoplayer-shared";var Bf=Ne(!1),ea=null,hs=class extends Gn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bf,set:(t,n=!1)=>{t!==je(Bf)&&(this.clearTimeout(),Bf.set(t),!t&&ea&&(ea=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:s,isPlaying$:a}=o.state,l=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(l.subscribe(m=>{je(s)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(Y8({isPlaying$:a,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:v})=>{var g,I;if(!(!m||!(v!=null&&v.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&ea===null&&(ea=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(I=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||I.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Q8,noop as Z8}from"@vkontakte/videoplayer-shared";var gs=class extends Gn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...Ne(null),toggle:Z8};this.checkIfShouldHide=t=>Rr(t,"s")}init(t){let n=super.init(t),{store:o,interactiveController:r}=t,s=o.ui.currentGridType$;return this.state$.toggle=()=>{if(this.checkIfShouldHide(je(s)))return;let a=je(this.state$),{isEnded$:l,playbackState$:u}=o.state,{disabledControls$:c}=o.ui.controls,m=je(l),h=je(u);a?(this.state$.set(!1),r==null||r.toggleGraphView(!1),c.remove(ma),!m&&this.graphMadePause&&o.actions.internal.play()):(this.graphMadePause=h==="playing",this.state$.set(!0),r==null||r.toggleGraphView(!0),c.add(ma),!m&&this.graphMadePause&&o.actions.internal.pause())},n.add(Q8({graphIsOpened:this.state$,currentGridType:s}).subscribe(({graphIsOpened:a,currentGridType:l})=>{this.checkIfShouldHide(l)&&a&&(r==null||r.toggleGraphView(!1),this.state$.set(!1))})),n}};var Q_=()=>[ms,ps,_s,hs,gs].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var o7={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:J8.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:e7(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},ta=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{var y,E,z,N;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,refreshStatAuthToken:l,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:v}=Xl(this.videoConfig,n),g=(y=v==null?void 0:v.projectInfo)==null?void 0:y.pid,I=(z=(E=this.interactiveController)==null?void 0:E.state.isReplay$.getValue())!=null?z:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:C,isClip:V=!1}=t;if(this.uiConfig.features.statistics&&C)return new n7({movieId:C,albumId:o,place:r,trackCode:a,autoplay:(N=u&&!this.interactiveController)!=null?N:!1,mobile:c,clip:V,refDomain:m,deviceId:h,...g&&(!this.isInited||I)&&{projectId:Number(g)}},{refreshAuthToken:l,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new t7,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new i7,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new z_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,s,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(a=this.interactiveController)==null||a.destroy()}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.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!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(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var dt,bt,Ct,yt,Ye,Wt,$t,zt,Dt,Kt,Vt;if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:v,supportLink:g,showAds:I,adsSlotId:C,adsParams:V={},adsPreviewParam:S,interfaceLanguage:y,isCyrillicRelatedInterface:E,logoClickable:z,logoHidden:N,isMobile:L,isAudioDisabled:ee,isLiveCatchUpMode:ae,fullScreenTarget:Q,failoverHosts:$,canDownload:J,callbacks:W,interactiveData:ue,showThumbTimer:x,additionalButtons:K=[],additionalSettingsMenuItems:A=[],additionalContextMenuItems:fe=[],repeat:X,saveRate:Me,volumeMultiplier:ie,showEndScreen:be}=Xl(this.videoConfig,n),{sources:Te,title:Ie,thumbUrl:Pe,unitedVideoId:ot,isClip:Ee=!1,duration:ze,adsParams:te={},videoEpisodes:pe,previewThumbsData:Ce,subtitles:We,live:nt}=t,st={...V,...te},rt=this.getNextVideoInfo(),Qe={sources:Te,title:Ie,thumbUrl:Pe,subtitles:We,unitedVideoId:ot,isClip:Ee,live:nt,albumId:r,statPlace:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:v,showAds:I,adsSlotId:C,adsParams:st,adsPreviewParam:S,duration:ze,logoClickable:z,logoHidden:N,isMobile:L,repeat:X,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:rt.nextVideoTitle,endScreenVideoThumb:rt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ce={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Qe)}`});let Se=(dt=this.interactiveController)==null?void 0:dt.state.statistics$.getValue(),$e=(Se==null?void 0:Se.oneStat)||this.createOneStat(t,n);$e&&(this.statistics=new Cl($e,Se==null?void 0:Se.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new nr(this.uiConfig.sentry,{version:kr,env:Ms},{movieId:ot,albumId:r,place:s,autoplay:(bt=u&&!this.interactiveController)!=null?bt:!1,mobile:L,clip:Ee}),this.interactiveController&&((yt=this.prevIsid)!=null||(this.prevIsid=(Ct=this.statistics)==null?void 0:Ct.oneStat.isid$.getValue())),this.sentry={...this.sentry,...nr.getInstance()};let et=!!ue,He=[],ut="tooltip_interactive_go_back_disabled_first";if(et&&this.interactiveController){let xe=this.interactiveController.state.isInitialChapter$.getValue(),Ze=this.interactiveController.getHistoryState();xe&&He.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||He.push("SEEK_TO_INTERACTIVE_BUTTON"),Ze.hasPrevChapter$.getValue()||(He.push("PLAY_PREV_CHAPTER_BUTTON"),xe||(Ze.isGoBackLimited$.getValue()?ut="tooltip_interactive_go_back_disabled_limit":ut="tooltip_interactive_go_back_disabled"))}let ct=()=>{var Ze;this.isInited=!1,this.prevIsid=void 0;let xe=(o==null?void 0:o.info.isEnded$.getValue())&&((Ze=this.interactiveController)==null?void 0:Ze.state.isEndChapter$.getValue());W.onReplayInteractiveVideo&&!xe?W.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Vm({player:o,interfaceLanguage:y,isCyrillicRelatedInterface:E,videoId:ot,isClip:Ee,isLiveCatchUpMode:ae,isAudioDisabled:ee,statAuthToken:a,callbacks:W,webApi:ce,videoEpisodes:pe,previewThumbsData:Ce,canDownload:J,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:He,isInteractive:et,saveRate:Me,interactiveRanges$:(Ye=this.interactiveController)==null?void 0:Ye.state.interactiveRanges$,isInteractiveTime$:(Wt=this.interactiveController)==null?void 0:Wt.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ct,playPrevChapterDisabledTooltip:ut,hasInteractiveBranches:!!((zt=($t=this.interactiveController)==null?void 0:$t.getChapterBranches())!=null&&zt.length),additionalButtons:this.uiConfig.features.additionalButtons?K:[],additionalSettingsMenuItems:A!=null?A:[],additionalContextMenuItems:fe!=null?fe:[],looped:X&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:_e}=this.microStoresRoot=Q_();this.subscription.add(this.store.state.currentFormat$.subscribe(xe=>{var Ze;return(Ze=W==null?void 0:W.onCurrentFormatChanged)==null?void 0:Ze.call(W,xe)})),this.subscription.add(_e.interactiveControlsOpacity$.subscribe(xe=>{var Ze;xe!==null&&((Ze=this==null?void 0:this.interactiveController)==null||Ze.setDisabledControls(xe))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(xe=>{var Ze;return(Ze=W==null?void 0:W.onThroughputEstimationChanged)==null?void 0:Ze.call(W,xe)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(xe=>{var Ze;return(Ze=W==null?void 0:W.onTrafficSavingEnabledChanged)==null?void 0:Ze.call(W,xe)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(xe=>{var Ze;return(Ze=W==null?void 0:W.onCurrentPlaybackRateChanged)==null?void 0:Ze.call(W,xe)})),this.subscription.add(this.store.state.volume$.subscribe(xe=>{var Ze;return(Ze=W==null?void 0:W.onVolumeChange)==null?void 0:Ze.call(W,xe)})),this.subscription.add(this.store.state.muted$.subscribe(xe=>{var Ze,St;return xe?(Ze=W==null?void 0:W.onMute)==null?void 0:Ze.call(W):(St=W==null?void 0:W.onUnmute)==null?void 0:St.call(W)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(xe=>{var Ze;return(Ze=W==null?void 0:W.onVideoBitrateChanged)==null?void 0:Ze.call(W,xe)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(xe=>{var St;let Ze=(St=this.store)==null?void 0:St.ui.controls.disabledControls$;Ze&&(xe&&!Ze.includes(is)&&Ze.add(is),xe||Ze.remove(is))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async xe=>{var St;if(!$8.isSamsungBrowser||!xe||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((St=this.videoConfig)==null?void 0:St.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(xe=>{var Ze;return(Ze=W==null?void 0:W.onVSIDChanged)==null?void 0:Ze.call(W,xe)})),this.initMediaSession(),this.svelteRootComponent=new O_({target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ie,thumbUrl:Pe,subtitles:We,live:nt,preload:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:v,supportLink:g,showAds:I,adsSlotId:C,adsParams:st,adsPreviewParam:S,duration:ze,logoClickable:z,logoHidden:N,isMobile:L,failoverHosts:$,fullScreenTarget:Q,saveRate:Me,shadowRootContainer:this.shadowRootContainer,showMiniTimer:x,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:rt.nextVideoTitle,endScreenVideoThumb:rt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ie,showEndScreen:be}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Vt=(Kt=(Dt=this.videoConfig)==null?void 0:Dt.callbacks)==null?void 0:Kt.onInited)==null||Vt.call(Kt))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(s=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,s)})).add(t.state.playbackState$.subscribe(s=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,s)})).add(t.state.isLive$.subscribe(s=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isActiveLive$.subscribe(s=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,s)})).add(t.state.isAudioAvailable$.subscribe(s=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,s)})).add(t.state.currentQuality$.subscribe(s=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,s)})).add(t.state.availableQualities$.subscribe(s=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,s.map(({value:l})=>l).filter(l=>l!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(s=>{s.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(s=>{var a,l;return s?(a=n.onPiPEnter)==null?void 0:a.call(n):(l=n.onPiPExit)==null?void 0:l.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(s=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,s)})).add(t.ui.isMobile.subscribe(s=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,s)})).add(t.ui.playerSize.subscribe(s=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.prevButton.subscribe(s=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playButton.subscribe(s=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.replayButton.subscribe(s=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.nextButton.subscribe(s=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.playPrevChapterButton.subscribe(s=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.seekToInteractiveButton.subscribe(s=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveGraphButton.subscribe(s=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.liveButton.subscribe(s=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.time.subscribe(s=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.episodes.subscribe(s=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.subtitles.subscribe(s=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.settings.subscribe(s=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.fullscreen.subscribe(s=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.chromecast.subscribe(s=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.pip.subscribe(s=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.vkLogo.subscribe(s=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(s=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,s)})).add(t.ui.controls.timeline.subscribe(s=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,s)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Nf(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:s,EVENT_NAMES:a,CustomError:l}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?je(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:v,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new s({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:v,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:I,isSeekable$:C}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(C.subscribe(S=>{if(!this.isInited)return;let y=this.store;S?y.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):y.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(I.subscribe(S=>{this.store&&this.store.state.isInteractiveExpectation$.set(S)}));let V=!0;if(this.interactiveController.on(a.playerChanged,S=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...S.config,title:(m==null?void 0:m.title)||S.config.title};let y=V?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(S.player,y),V&&(V=!1)}),this.interactiveController.on(a.interactives,({type:S,actionType:y})=>{var z,N,L,ee;if(!this.store)return;let E=I.getValue();if(S==="action-choice"&&y==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(As)),S==="action-choice-canceled"){let ae=je(this.store.state.isPlaying$)||E;if((z=this.videoConfig)!=null&&z.isMobile&&ae){this.store.ui.interactiveHideMobileControls.set(!0);return}(ee=(N=this.videoConfig)==null?void 0:(L=N.callbacks).onDisabledInteractiveClick)==null||ee.call(L)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let S=this.interactiveController.getHistoryState();this.subscription.add(S.history$.subscribe(y=>{var E,z,N;y.length&&((N=(z=(E=this.videoConfig)==null?void 0:E.callbacks)==null?void 0:z.onInteractiveHistoryChanged)==null||N.call(z,y))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var S,y,E,z;(S=this.microStoresRoot)==null||S.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(z=(y=this.videoConfig)==null?void 0:(E=y.callbacks).onInteractiveTimeIndicatorClick)==null||z.call(E)})),this.interactiveController.on(a.errors,S=>{this.log({message:S.toString()})})}catch(s){this.log({message:s.message})}}initPlayer(t,n={}){var o,r,s,a,l,u,c,m,h,v,g,I,C,V,S,y,E,z,N,L,ee;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Xl(o7,X8(t,ae=>ae instanceof HTMLElement?ae:void 0)),this.uiConfig=Xf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(s=n.statistics)!=null?s:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},Nf(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(l=this.uiConfig.features.mediaSession)!=null?l:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),Nf(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(m=(c=this.uiConfig.features.pip)!=null?c:this.videoConfig.isPictureInPictureEnabled)!=null?m:!0,this.uiConfig.features.dpip=(v=(h=this.uiConfig.features.dpip)!=null?h:this.videoConfig.isPictureInPictureEnabled)!=null?v:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!=null?g:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(C=this.uiConfig.ads.enable)!=null?C:this.videoConfig.showAds,this.videoConfig.adsSlotId=(V=this.uiConfig.ads.slot)!=null?V:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(S=this.uiConfig.ads.preview)!=null?S:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((y=this.uiConfig.showLogo)!=null?y:!this.videoConfig.logoHidden),(E=this.videoConfig).canRewindLive&&(E.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((N=this.videoConfig.videos)!=null&&N[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Zl.getLatestSupportedVersion():this.pictureInPictureApi=new or),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ql:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Jl:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(L=this.svelteStubComponent)==null||L.$destroy(),(ee=this.svelteRootComponent)==null||ee.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[this.currentPlayingVideoIndex]),K_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){var t,n,o,r;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("LiveWaitingStart")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var o,r,s;if(!this.videoConfig)return;this.log({message:"stop"});let t=!!this.interactiveController;t&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0),(o=this.svelteStubComponent)==null||o.$destroy(),(r=this.mediaSessionApi)==null||r.destroy();let n=this.videoConfig.videos[0];n&&((s=this.svelteRootComponent)==null||s.$destroy(),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(n))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}async setLanguage(t){var n;await((n=this.store)==null?void 0:n.actions.internal.setLanguage(t))}setLiveStart(t){var n,o,r;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){var t,n;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()}setLiveWaitingRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o,r;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=await import("@vkontakte/videoplayer-interactive"),r=je(this.store.state.positionExact$),a=je(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let l=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:l.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalContextItem(t)}updateAdditionalButton(t,n){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(t,n)}addAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.addAdditionalButton(t)}removeAdditionalButton(t){var n;(n=this.store)==null||n.actions.external.removeAdditionalButton(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}focus(){var t,n,o;(o=(n=(t=this.svelteRootComponent)==null?void 0:t.keyboardControls)==null?void 0:n.focus)==null||o.call(n)}handleTimerNextVideo(t){var n;(n=this.store)==null||n.actions.internal.setTimerNextVideoRunning(t)}};import{InterfaceLanguage as Qz,VKNumericLanguage as Zz,loadVKLangPack as Xz}from"@vkontakte/videoplayer-shared";import{VideoQuality as $z,VideoFormat as ex}from"@vkontakte/videoplayer-core";var xz=()=>{window.customElements.define("vk-video-player",ta)};export{Sl as ControlButtonType,So as GridTypes,Qz as InterfaceLanguage,Qs as MenuItemType,kr as VERSION,Zz as VKNumericLanguage,ex as VideoFormat,$z as VideoQuality,Xz as loadVKLangPack,xz as registerPlayerWebComponent};
|