@vkontakte/videoplayer 1.1.44-dev.77649358.0 → 1.1.44-dev.cd2e6e92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.cjs.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.44-dev.77649358.0
3
- * Fri, 13 Sep 2024 11:13:18 GMT
2
+ * @vkontakte/videoplayer v1.1.44-dev.cd2e6e92.0
3
+ * Mon, 16 Sep 2024 09:53:49 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-44/doc/
5
5
  */
6
- "use strict";var z_=Object.create;var Hl=Object.defineProperty;var U_=Object.getOwnPropertyDescriptor;var K_=Object.getOwnPropertyNames;var W_=Object.getPrototypeOf,j_=Object.prototype.hasOwnProperty;var G_=(i,e,t)=>e in i?Hl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Q_=(i,e)=>{for(var t in e)Hl(i,t,{get:e[t],enumerable:!0})},Hc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of K_(e))!j_.call(i,o)&&o!==t&&Hl(i,o,{get:()=>e[o],enumerable:!(n=U_(e,o))||n.enumerable});return i};var zc=(i,e,t)=>(t=i!=null?z_(W_(i)):{},Hc(e||!i||!i.__esModule?Hl(t,"default",{value:i,enumerable:!0}):t,i)),Y_=i=>Hc(Hl({},"__esModule",{value:!0}),i);var Hi=(i,e,t)=>G_(i,typeof e!="symbol"?e+"":e,t);var Z6={};Q_(Z6,{GridTypes:()=>go,InterfaceLanguage:()=>ql.InterfaceLanguage,VERSION:()=>No,VKNumericLanguage:()=>ql.VKNumericLanguage,VideoFormat:()=>Ps.VideoFormat,VideoQuality:()=>Ps.VideoQuality,loadVKLangPack:()=>ql.loadVKLangPack,registerPlayerWebComponent:()=>Y6});module.exports=Y_(Z6);function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function Es(i){return i()}function or(){return Object.create(null)}function nt(i){i.forEach(Es)}function Li(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var nr;function Ls(i,e){return i===e?!0:(nr||(nr=document.createElement("a")),nr.href=e,i===nr.href)}function Uc(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Qt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function Ae(i,e,t,n){if(i){let o=Kc(i,e,t,n);return i[0](o)}}function Kc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(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=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Kc(e,t,n,r);i.p(l,o)}}function Re(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 Wc(i){return i==null?"":i}var Vo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var lr=class i{constructor(e){Hi(this,"_listeners","WeakMap"in Vo?new WeakMap:void 0);Hi(this,"_observer");Hi(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)})}};lr.entries="WeakMap"in Vo?new WeakMap:void 0;var jc=!1;function Gc(){jc=!0}function Qc(){jc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=Yc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,J_(n,o)}}function Yc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function J_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ai(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function dt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Yt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(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)c(i,t,e[t])}function Zc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var rr;function x_(){if(rr===void 0){rr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){rr=!0}}return rr}function ol(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=x_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Xc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Mn(i,e){return new i(e)}var ho;function oo(i){ho=i}function ll(){if(!ho)throw new Error("Function called outside component initialization");return ho}function qt(i){ll().$$.on_mount.push(i)}function Gn(i){ll().$$.on_destroy.push(i)}function rl(i,e){return ll().$$.context.set(i,e),e}function sl(i){return ll().$$.context.get(i)}function zl(){return ll().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ro=[];var ge=[],ul=[],Ms=[],xc=Promise.resolve(),Vs=!1;function Rs(){Vs||(Vs=!0,xc.then(sr))}function Qn(){return Rs(),xc}function Yn(i){ul.push(i)}function He(i){Ms.push(i)}var As=new Set,al=0;function sr(){if(al!==0)return;let i=ho;do{try{for(;al<Ro.length;){let e=Ro[al];al++,oo(e),oh(e.$$)}}catch(e){throw Ro.length=0,al=0,e}for(oo(null),Ro.length=0,al=0;ge.length;)ge.pop()();for(let e=0;e<ul.length;e+=1){let t=ul[e];As.has(t)||(As.add(t),t())}ul.length=0}while(Ro.length);for(;Ms.length;)Ms.pop()();Vs=!1,As.clear(),oo(i)}function oh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Yn)}}function $c(i){let e=[],t=[];ul.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ul=e}var ar=new Set,Bo;function fe(){Bo={r:0,c:[],p:Bo}}function de(){Bo.r||nt(Bo.c),Bo=Bo.p}function d(i,e){i&&i.i&&(ar.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ar.has(i))return;ar.add(i),Bo.c.push(()=>{ar.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Et(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function ef(i){return typeof i=="object"&&i!==null?i:{}}var lh=["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"],rh=new Set([...lh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Yn(()=>{let r=i.$$.on_mount.map(Es).filter(Li);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Yn)}function R(i,e){let t=i.$$;t.fragment!==null&&($c(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ah(i,e){i.$$.dirty[0]===-1&&(Ro.push(i),Rs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=ho;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:or(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:or(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&ah(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Gc();let m=Zc(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Qc(),sr()}oo(s)}var uh;typeof HTMLElement=="function"&&(uh=class extends HTMLElement{constructor(e,t,n){super();Hi(this,"$$ctor");Hi(this,"$$s");Hi(this,"$$c");Hi(this,"$$cn",!1);Hi(this,"$$d",{});Hi(this,"$$r",!1);Hi(this,"$$p_d",{});Hi(this,"$$l",{});Hi(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(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Xc(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Bs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Bs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Bs(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 Bs(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 W=class{constructor(){Hi(this,"$$");Hi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Li(t))return Se;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&&!Uc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var tf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tf);var GB=require("@vkontakte/videoplayer-core"),Xn=require("@vkontakte/videoplayer-shared"),Jp=require("@vkontakte/videoplayer-statistics");var cl=require("@vkontakte/videoplayer-shared");var ch={isMobile:void 0,defaultLanguage:cl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:cl.VideoQuality.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,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!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}},nf=i=>(0,cl.fillWithDefault)(i,ch),of=i=>rl("ui-config",i),Ht=()=>sl("ui-config");var Ul="vk_player_debug_panel_opened";var lf="videoplayer",rf="videoplayer";var xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},sf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),af=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),uf=new Set(["ShiftRight","ShiftLeft"]);var cf=["TIMELINE"],Kl=[...cf,"GRAPH_BUTTON"],qs=[...cf,"PLAY_BUTTON"],ur=[...Kl,"PLAY_BUTTON"];var go=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(go||{}),Do={xs:0,s:1,m:2,l:3,xl:4};var fl=[];function Kn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!fl.length;for(let u of n)u[1](),fl.push(u,i);if(s){for(let u=0;u<fl.length;u+=2)fl[u][0](fl[u+1]);fl.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Mi(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 Kn(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Li(g)?g:Se},w=o.map((g,C)=>Qt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Wl=require("@vkontakte/videoplayer-shared"),ff=require("@vkontakte/videoplayer-core"),df=require("@vkontakte/videoplayer-statistics");var cr="prod",No="1.1.44-dev.77649358.0";var Oo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var mf=Symbol("storeContext"),pf=Symbol("microStoresContext"),_f=(i,e)=>{rl(mf,i),rl(pf,e),cr==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=sl(mf);return(0,Wl.assertNonNullable)(i,"Store context is empty!"),i},Wn=()=>{let i=sl(pf);return(0,Wl.assertNonNullable)(i,"MicroStores context is empty!"),i},Tt=(i,e)=>Ds(i,i.getValue(),e),Ds=(i,e,t)=>Kn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),hf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${No} (core: ${ff.VERSION}, stat: ${df.VERSION}, shared: ${Wl.VERSION})`,f=$e(t.state.errorLog$),m=f.length?`
6
+ "use strict";var U_=Object.create;var Hl=Object.defineProperty;var K_=Object.getOwnPropertyDescriptor;var W_=Object.getOwnPropertyNames;var j_=Object.getPrototypeOf,G_=Object.prototype.hasOwnProperty;var Q_=(i,e,t)=>e in i?Hl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Y_=(i,e)=>{for(var t in e)Hl(i,t,{get:e[t],enumerable:!0})},Hc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of W_(e))!G_.call(i,o)&&o!==t&&Hl(i,o,{get:()=>e[o],enumerable:!(n=K_(e,o))||n.enumerable});return i};var zc=(i,e,t)=>(t=i!=null?U_(j_(i)):{},Hc(e||!i||!i.__esModule?Hl(t,"default",{value:i,enumerable:!0}):t,i)),Z_=i=>Hc(Hl({},"__esModule",{value:!0}),i);var Ki=(i,e,t)=>Q_(i,typeof e!="symbol"?e+"":e,t);var X6={};Y_(X6,{GridTypes:()=>go,InterfaceLanguage:()=>Dl.InterfaceLanguage,VERSION:()=>No,VKNumericLanguage:()=>Dl.VKNumericLanguage,VideoFormat:()=>Ps.VideoFormat,VideoQuality:()=>Ps.VideoQuality,loadVKLangPack:()=>Dl.loadVKLangPack,registerPlayerWebComponent:()=>Z6});module.exports=Z_(X6);function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function Es(i){return i()}function or(){return Object.create(null)}function nt(i){i.forEach(Es)}function Mi(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var nr;function Ls(i,e){return i===e?!0:(nr||(nr=document.createElement("a")),nr.href=e,i===nr.href)}function Uc(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Qt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function Ae(i,e,t,n){if(i){let o=Kc(i,e,t,n);return i[0](o)}}function Kc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(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=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Kc(e,t,n,r);i.p(l,o)}}function Re(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 Wc(i){return i==null?"":i}var Vo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var lr=class i{constructor(e){Ki(this,"_listeners","WeakMap"in Vo?new WeakMap:void 0);Ki(this,"_observer");Ki(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)})}};lr.entries="WeakMap"in Vo?new WeakMap:void 0;var jc=!1;function Gc(){jc=!0}function Qc(){jc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=Yc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,x_(n,o)}}function Yc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function x_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Vi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function q(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function ft(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Yt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(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)c(i,t,e[t])}function Zc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function yi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var rr;function $_(){if(rr===void 0){rr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){rr=!0}}return rr}function ol(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=$_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Xc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Vn(i,e){return new i(e)}var ho;function oo(i){ho=i}function ll(){if(!ho)throw new Error("Function called outside component initialization");return ho}function Dt(i){ll().$$.on_mount.push(i)}function Gn(i){ll().$$.on_destroy.push(i)}function rl(i,e){return ll().$$.context.set(i,e),e}function sl(i){return ll().$$.context.get(i)}function zl(){return ll().$$.context}function Nn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ro=[];var ge=[],ul=[],Ms=[],xc=Promise.resolve(),Vs=!1;function Rs(){Vs||(Vs=!0,xc.then(sr))}function Qn(){return Rs(),xc}function Yn(i){ul.push(i)}function He(i){Ms.push(i)}var As=new Set,al=0;function sr(){if(al!==0)return;let i=ho;do{try{for(;al<Ro.length;){let e=Ro[al];al++,oo(e),lh(e.$$)}}catch(e){throw Ro.length=0,al=0,e}for(oo(null),Ro.length=0,al=0;ge.length;)ge.pop()();for(let e=0;e<ul.length;e+=1){let t=ul[e];As.has(t)||(As.add(t),t())}ul.length=0}while(Ro.length);for(;Ms.length;)Ms.pop()();Vs=!1,As.clear(),oo(i)}function lh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Yn)}}function $c(i){let e=[],t=[];ul.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ul=e}var ar=new Set,Bo;function fe(){Bo={r:0,c:[],p:Bo}}function de(){Bo.r||nt(Bo.c),Bo=Bo.p}function d(i,e){i&&i.i&&(ar.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ar.has(i))return;ar.add(i),Bo.c.push(()=>{ar.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Et(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function ef(i){return typeof i=="object"&&i!==null?i:{}}var rh=["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"],sh=new Set([...rh]);function ze(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 V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Yn(()=>{let r=i.$$.on_mount.map(Es).filter(Mi);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Yn)}function R(i,e){let t=i.$$;t.fragment!==null&&($c(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function uh(i,e){i.$$.dirty[0]===-1&&(Ro.push(i),Rs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=ho;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:or(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:or(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&uh(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Gc();let m=Zc(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Qc(),sr()}oo(s)}var ch;typeof HTMLElement=="function"&&(ch=class extends HTMLElement{constructor(e,t,n){super();Ki(this,"$$ctor");Ki(this,"$$s");Ki(this,"$$c");Ki(this,"$$cn",!1);Ki(this,"$$d",{});Ki(this,"$$r",!1);Ki(this,"$$p_d",{});Ki(this,"$$l",{});Ki(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(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&C(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Xc(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Bs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Bs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Bs(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 Bs(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 W=class{constructor(){Ki(this,"$$");Ki(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Mi(t))return Se;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&&!Uc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var tf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tf);var QB=require("@vkontakte/videoplayer-core"),Xn=require("@vkontakte/videoplayer-shared"),xp=require("@vkontakte/videoplayer-statistics");var cl=require("@vkontakte/videoplayer-shared");var fh={isMobile:void 0,defaultLanguage:cl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:cl.VideoQuality.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,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!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}},nf=i=>(0,cl.fillWithDefault)(i,fh),of=i=>rl("ui-config",i),Ht=()=>sl("ui-config");var Ul="vk_player_debug_panel_opened";var lf="videoplayer",rf="videoplayer";var xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},sf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),af=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),uf=new Set(["ShiftRight","ShiftLeft"]);var cf=["TIMELINE"],Kl=[...cf,"GRAPH_BUTTON"],Ds=[...cf,"PLAY_BUTTON"],ur=[...Kl,"PLAY_BUTTON"];var go=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(go||{}),qo={xs:0,s:1,m:2,l:3,xl:4};var fl=[];function Kn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!fl.length;for(let u of n)u[1](),fl.push(u,i);if(s){for(let u=0;u<fl.length;u+=2)fl[u][0](fl[u+1]);fl.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ri(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 Kn(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Mi(g)?g:Se},w=o.map((g,k)=>Qt(g,v=>{u[k]=v,f&=~(1<<k),s&&h()},()=>{f|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Wl=require("@vkontakte/videoplayer-shared"),ff=require("@vkontakte/videoplayer-core"),df=require("@vkontakte/videoplayer-statistics");var cr="prod",No="1.1.44-dev.cd2e6e92.0";var Oo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var mf=Symbol("storeContext"),pf=Symbol("microStoresContext"),_f=(i,e)=>{rl(mf,i),rl(pf,e),cr==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=sl(mf);return(0,Wl.assertNonNullable)(i,"Store context is empty!"),i},Wn=()=>{let i=sl(pf);return(0,Wl.assertNonNullable)(i,"MicroStores context is empty!"),i},Tt=(i,e)=>qs(i,i.getValue(),e),qs=(i,e,t)=>Kn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),hf=(i,e,t)=>{var I,y,b,P,L,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${No} (core: ${ff.VERSION}, stat: ${df.VERSION}, shared: ${Wl.VERSION})`,f=$e(t.state.errorLog$),m=f.length?`
7
7
  `+f.map((N,te)=>{var se;let _e=`${te}) Type: ${N.id}
8
8
  `,Z=`Message: ${N.message} (${N.thrown})
9
9
  `,x=`Trace: ${(se=N.thrown)==null?void 0:se.stack}
10
10
  `;return _e+Z+x}).join(`
11
- `):void 0,h=t.state.isAudioDisabled?"disabled":$e(t.state.isAudioAvailable$)?void 0:"unavailable",w=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(A=w==null?void 0:w.codec)!=null?A:""}`+(w!=null&&w.hdr?" (HDR)":"")),g&&C.push(`Audio: ${(M=g==null?void 0:g.codec)!=null?M:""}`+(g!=null&&g.language?` (${g.language})`:""));let v={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:$e(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${$e(t.state.positionExact$)}s`,State:`${$e(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(v).filter(([N,te])=>te!==void 0).map(([N,te])=>`${N}: ${te}`).join(`
12
- `)},gf=(i,e,t)=>{var M,N,te,_e;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l={version:No,viewport:`${o}x${r}`,volume:Math.round($e(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(m&&h?l.buffer=f.end-h:l.buffer=Math.max(f.end-$e(t.state.positionExact$),0));let w=n.throughputEstimation$.getValue();w&&(l.speed=w);let g=n.videoBitrate$.getValue();g&&(l.bitrate=g);let C=n.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let v=n.currentAudioSegmentLength$.getValue();v&&(l.currentAudioSegmentLength=v);let I=$e(t.vsid);typeof I=="string"&&(l.vsid=I);let y=(M=i.info.currentVideoStream$.getValue())==null?void 0:M.codec;y&&(l.videoCodec=y);let b=(N=i.info.currentAudioStream$.getValue())==null?void 0:N.codec;b&&(l.audioCodec=b),((te=i.info.currentVideoStream$.getValue())==null?void 0:te.hdr)&&(l.hdr=!0);let A=(_e=i.info.currentAudioStream$.getValue())==null?void 0:_e.language;return A&&(l.audioLanguage=A),l},bf=(i,e)=>Oo(i,e,"mp4");var sn=require("@vkontakte/videoplayer-shared"),b9=require("@vkontakte/videoplayer-core"),vf="vk_player_prefer_traffic_saving_enabled",yf="vk_player_preferred_volume",wf="vk_player_prefer_volume_mute",Ns="vk_player_preferred_quality",kf="vk_player_preferred_stream_language",Cf="vk_player_preferred_rate",Sf=i=>i>1?1:i<0?0:i,Os=i=>sn.safeStorage.set(yf,Sf(i).toString(10)),fr=()=>{let i=sn.safeStorage.get(yf);return(0,sn.isNullable)(i)?void 0:Sf(parseFloat(i))},Tf=(i,e)=>sn.safeStorage.set(Ns,JSON.stringify({videoId:i,value:e})),Fs=()=>sn.safeStorage.remove(Ns),Pf=i=>{let e=sn.safeStorage.get(Ns);if((0,sn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Fs();return}return n},If=(i,e)=>{e?sn.safeStorage.set(i,"true"):sn.safeStorage.remove(i)},Ef=i=>sn.safeStorage.get(i)==="true",dr=i=>If(wf,i),Lf=()=>Ef(wf),Af=i=>If(vf,i),Mf=()=>Ef(vf),Vf=()=>sn.safeStorage.get(kf),Hs=i=>sn.safeStorage.set(kf,i),Rf=i=>sn.safeStorage.set(Cf,JSON.stringify({rate:i})),Bf=()=>{let i=sn.safeStorage.get(Cf);if((0,sn.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var Ip=require("@vkontakte/videoplayer-core"),vs=require("@vkontakte/videoplayer-shared");function fh(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y=i[2].default,b=Ae(y,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],A={};for(let M=0;M<P.length;M+=1)A=ue(A,P[M]);return{c(){e=D("svg"),b&&b.c(),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("path"),a=D("path"),s=D("defs"),u=D("filter"),f=D("feFlood"),m=D("feColorMatrix"),h=D("feOffset"),w=D("feGaussianBlur"),g=D("feColorMatrix"),C=D("feBlend"),v=D("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(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"),c(r,"clip-rule","evenodd"),c(l,"fill","#fff"),c(l,"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"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(m,"in","SourceAlpha"),c(m,"result","hardAlpha"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_618_12297"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_618_12297"),c(v,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),we(e,A)},m(M,N){S(M,e,N),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,f),p(u,m),p(u,h),p(u,w),p(u,g),p(u,C),p(u,v),I=!0},p(M,[N]){b&&b.p&&(!I||N&2)&&Ve(b,y,M,M[1],I?Me(y,M[1],N,null):Re(M[1]),null),we(e,A=Oe(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},N&1&&M[0]]))},i(M){I||(d(b,M),I=!0)},o(M){_(b,M),I=!1},d(M){M&&k(e),b&&b.d(M)}}}function dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var zs=class extends W{constructor(e){super(),j(this,e,dh,fh,U,{})}},mr=zs;var dl=require("@vkontakte/videoplayer-shared");var mh={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_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {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"},qf=mh;var ph={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_traffic_saving:"Data saving: {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"},Df=ph;var lo=new Map;lo.set(dl.InterfaceLanguage.EN,Df);lo.set(dl.InterfaceLanguage.RU,qf);var Nf=new Map,Us=({language:i,pack:e,fallback:t})=>{if(lo.has(i)){let n=lo.get(i);lo.set(i,{...n,...e})}else lo.set(i,e);Nf.set(i,t)},Ks=i=>lo.has(i),Ws=(i,e,t,n)=>{var l;let o=lo.get(i),r=o==null?void 0:o[e];if((0,dl.isNullable)(r)){let a=(l=Nf.get(i))!=null?l:n,s=a?lo.get(a):void 0;r=s==null?void 0:s[e]}return(0,dl.isNullable)(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},z=(i,e)=>{let{interfaceLanguage$:t}=rt(),n=$e(t),o=Ht();return Ws(n,i,e,o.defaultLanguage)};var O9=require("@vkontakte/videoplayer-core");var ml;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(ml||(ml={}));var _h=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,gh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pr="?",bh="X-Sentry-Auth",vh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function yh(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=_h.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||pr,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=gh.exec(t[r]))o={filename:n[2],function:n[1]||pr,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=hh.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||pr,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=pr),e.push(o)}return e.length?{value:Of(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Of(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function wh(i){try{let e=yh(i);if(e)return e}catch(e){}return{value:Of(i),type:i&&i.name,stacktrace:{frames:[]}}}function kh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var _r=class{constructor(e){if(e&&e.dsn){let t=vh.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:[wh(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(bh,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:kh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ff(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Ch(){return window}var hr=class i extends _r{constructor(e,t=Ch()){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:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}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=>Ff(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=>Ff(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,l=e[n],a=Array.isArray(l)?l:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Fo=require("@vkontakte/videoplayer-shared");var gr=null,Ho=class{constructor(e,t,n={}){!gr&&e.dsn&&(this.sentryClient=new hr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Fo.Subscription,this.options=e,this.context=n,gr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),gr=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:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:h,category:w}=t;if((0,Fo.isNonNullable)(w)&&m.includes(w)||(0,Fo.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,Fo.isNonNullable)(w)&&u.includes(w)||(0,Fo.isNonNullable)(h)&&s.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?ml.fatal:ml.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return gr}};var br=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()},vr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Hf=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},jl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},bo=()=>!!jl(),yr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},wr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},zf=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))};var js=require("@vkontakte/videoplayer-shared"),Uf=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:js.clientChecker.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:js.clientChecker.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var pl=require("@vkontakte/videoplayer-shared");var zo=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:(0,pl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new pl.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!pl.clientChecker.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,l;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),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function Uo(i){return i instanceof zo}function Sh(i){let e=rt();return qt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ys=class extends W{constructor(e){super(),j(this,e,Sh,null,U,{})}},Kf=Ys;var Wf=require("@vkontakte/videoplayer-shared");function Th(i){Ie(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 Ph(i){let e=z("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=z("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Qe(t,e)},d(n){n&&k(t)}}}function Ih(i){let e,t=z("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=Ne(t),o=B(),r=D("svg"),l=D("path"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(l,"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"),c(r,"class","icon svelte-1k4i25s"),c(r,"width","7"),c(r,"height","12"),c(r,"viewBox","0 0 7 12"),c(r,"fill","none"),c(r,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){S(u,e,f),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=pe(e,"click",st(function(){Li(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&k(e),a=!1,s()}}}function Eh(i){let e;function t(r,l){return r[3]?Ih:Ph}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),c(e,"class","container svelte-1k4i25s"),O(e,"container-mobile",i[4]),O(e,"skippable",i[3])},m(r,l){S(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&O(e,"container-mobile",r[4]),l&8&&O(e,"skippable",r[3])},i:Se,o:Se,d(r){r&&k(e),o.d()}}}function Lh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Wf.noop}=e,s=rt().ui.isMobile;H(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,r=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,l=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Zs=class extends W{constructor(e){super(),j(this,e,Lh,Eh,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Th)}},jf=Zs;function Ah(i){Ie(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 Mh(i){let e;return{c(){e=T("button"),e.textContent=`${z("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:Se,i:Se,o:Se,d(t){t&&k(e)}}}var Xs=class extends W{constructor(e){super(),j(this,e,null,Mh,U,{},Ah)}},Gf=Xs;function Vh(i){Ie(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(
11
+ `):void 0,h=t.state.isAudioDisabled?"disabled":$e(t.state.isAudioAvailable$)?void 0:"unavailable",w=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),k=[];w&&k.push(`Video: ${(L=w==null?void 0:w.codec)!=null?L:""}`+(w!=null&&w.hdr?" (HDR)":"")),g&&k.push(`Audio: ${(M=g==null?void 0:g.codec)!=null?M:""}`+(g!=null&&g.language?` (${g.language})`:""));let v={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:$e(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:k.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${$e(t.state.positionExact$)}s`,State:`${$e(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(v).filter(([N,te])=>te!==void 0).map(([N,te])=>`${N}: ${te}`).join(`
12
+ `)},gf=(i,e,t)=>{var M,N,te,_e;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l={version:No,viewport:`${o}x${r}`,volume:Math.round($e(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(m&&h?l.buffer=f.end-h:l.buffer=Math.max(f.end-$e(t.state.positionExact$),0));let w=n.throughputEstimation$.getValue();w&&(l.speed=w);let g=n.videoBitrate$.getValue();g&&(l.bitrate=g);let k=n.currentVideoSegmentLength$.getValue();k&&(l.currentVideoSegmentLength=k);let v=n.currentAudioSegmentLength$.getValue();v&&(l.currentAudioSegmentLength=v);let I=$e(t.vsid);typeof I=="string"&&(l.vsid=I);let y=(M=i.info.currentVideoStream$.getValue())==null?void 0:M.codec;y&&(l.videoCodec=y);let b=(N=i.info.currentAudioStream$.getValue())==null?void 0:N.codec;b&&(l.audioCodec=b),((te=i.info.currentVideoStream$.getValue())==null?void 0:te.hdr)&&(l.hdr=!0);let L=(_e=i.info.currentAudioStream$.getValue())==null?void 0:_e.language;return L&&(l.audioLanguage=L),l},bf=(i,e)=>Oo(i,e,"mp4");var un=require("@vkontakte/videoplayer-shared"),v9=require("@vkontakte/videoplayer-core"),vf="vk_player_prefer_traffic_saving_enabled",yf="vk_player_preferred_volume",wf="vk_player_prefer_volume_mute",Ns="vk_player_preferred_quality",kf="vk_player_preferred_stream_language",Cf="vk_player_preferred_rate",Sf=i=>i>1?1:i<0?0:i,Os=i=>un.safeStorage.set(yf,Sf(i).toString(10)),fr=()=>{let i=un.safeStorage.get(yf);return(0,un.isNullable)(i)?void 0:Sf(parseFloat(i))},Tf=(i,e)=>un.safeStorage.set(Ns,JSON.stringify({videoId:i,value:e})),Fs=()=>un.safeStorage.remove(Ns),Pf=i=>{let e=un.safeStorage.get(Ns);if((0,un.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Fs();return}return n},If=(i,e)=>{e?un.safeStorage.set(i,"true"):un.safeStorage.remove(i)},Ef=i=>un.safeStorage.get(i)==="true",dr=i=>If(wf,i),Lf=()=>Ef(wf),Af=i=>If(vf,i),Mf=()=>Ef(vf),Vf=()=>un.safeStorage.get(kf),Hs=i=>un.safeStorage.set(kf,i),Rf=i=>un.safeStorage.set(Cf,JSON.stringify({rate:i})),Bf=()=>{let i=un.safeStorage.get(Cf);if((0,un.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var Ip=require("@vkontakte/videoplayer-core"),vs=require("@vkontakte/videoplayer-shared");function dh(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y=i[2].default,b=Ae(y,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],L={};for(let M=0;M<P.length;M+=1)L=ue(L,P[M]);return{c(){e=q("svg"),b&&b.c(),t=q("g"),n=q("path"),o=q("path"),r=q("path"),l=q("path"),a=q("path"),s=q("defs"),u=q("filter"),f=q("feFlood"),m=q("feColorMatrix"),h=q("feOffset"),w=q("feGaussianBlur"),g=q("feColorMatrix"),k=q("feBlend"),v=q("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(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"),c(r,"clip-rule","evenodd"),c(l,"fill","#fff"),c(l,"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"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(m,"in","SourceAlpha"),c(m,"result","hardAlpha"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(k,"in2","BackgroundImageFix"),c(k,"result","effect1_dropShadow_618_12297"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_618_12297"),c(v,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),we(e,L)},m(M,N){S(M,e,N),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,f),p(u,m),p(u,h),p(u,w),p(u,g),p(u,k),p(u,v),I=!0},p(M,[N]){b&&b.p&&(!I||N&2)&&Ve(b,y,M,M[1],I?Me(y,M[1],N,null):Re(M[1]),null),we(e,L=Oe(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},N&1&&M[0]]))},i(M){I||(d(b,M),I=!0)},o(M){_(b,M),I=!1},d(M){M&&C(e),b&&b.d(M)}}}function mh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var zs=class extends W{constructor(e){super(),j(this,e,mh,dh,U,{})}},mr=zs;var dl=require("@vkontakte/videoplayer-shared");var ph={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_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {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"},Df=ph;var _h={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_traffic_saving:"Data saving: {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"},qf=_h;var lo=new Map;lo.set(dl.InterfaceLanguage.EN,qf);lo.set(dl.InterfaceLanguage.RU,Df);var Nf=new Map,Us=({language:i,pack:e,fallback:t})=>{if(lo.has(i)){let n=lo.get(i);lo.set(i,{...n,...e})}else lo.set(i,e);Nf.set(i,t)},Ks=i=>lo.has(i),Ws=(i,e,t,n)=>{var l;let o=lo.get(i),r=o==null?void 0:o[e];if((0,dl.isNullable)(r)){let a=(l=Nf.get(i))!=null?l:n,s=a?lo.get(a):void 0;r=s==null?void 0:s[e]}return(0,dl.isNullable)(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},z=(i,e)=>{let{interfaceLanguage$:t}=rt(),n=$e(t),o=Ht();return Ws(n,i,e,o.defaultLanguage)};var F9=require("@vkontakte/videoplayer-core");var ml;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(ml||(ml={}));var hh=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,bh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pr="?",vh="X-Sentry-Auth",yh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function wh(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=hh.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||pr,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=bh.exec(t[r]))o={filename:n[2],function:n[1]||pr,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=gh.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||pr,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=pr),e.push(o)}return e.length?{value:Of(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Of(i){return(i&&i.message||"No error message").split(`
14
+ `).filter(t=>!!t)[0]}function kh(i){try{let e=wh(i);if(e)return e}catch(e){}return{value:Of(i),type:i&&i.name,stacktrace:{frames:[]}}}function Ch(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var _r=class{constructor(e){if(e&&e.dsn){let t=yh.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:[kh(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(vh,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Ch(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ff(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Sh(){return window}var hr=class i extends _r{constructor(e,t=Sh()){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:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}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=>Ff(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=>Ff(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,l=e[n],a=Array.isArray(l)?l:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Fo=require("@vkontakte/videoplayer-shared");var gr=null,Ho=class{constructor(e,t,n={}){!gr&&e.dsn&&(this.sentryClient=new hr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Fo.Subscription,this.options=e,this.context=n,gr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),gr=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:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:h,category:w}=t;if((0,Fo.isNonNullable)(w)&&m.includes(w)||(0,Fo.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,Fo.isNonNullable)(w)&&u.includes(w)||(0,Fo.isNonNullable)(h)&&s.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?ml.fatal:ml.error),o.report(e)}catch(k){console.error(k)}}}static getInstance(){return gr}};var br=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()},vr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Hf=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},jl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},bo=()=>!!jl(),yr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},wr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},zf=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))};var js=require("@vkontakte/videoplayer-shared"),Uf=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:js.clientChecker.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:js.clientChecker.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var pl=require("@vkontakte/videoplayer-shared");var zo=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:(0,pl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new pl.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!pl.clientChecker.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,l;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),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function Uo(i){return i instanceof zo}function Th(i){let e=rt();return Dt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ys=class extends W{constructor(e){super(),j(this,e,Th,null,U,{})}},Kf=Ys;var Wf=require("@vkontakte/videoplayer-shared");function Ph(i){Ie(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 Ih(i){let e=z("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=z("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Qe(t,e)},d(n){n&&C(t)}}}function Eh(i){let e,t=z("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=Ne(t),o=B(),r=q("svg"),l=q("path"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(l,"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"),c(r,"class","icon svelte-1k4i25s"),c(r,"width","7"),c(r,"height","12"),c(r,"viewBox","0 0 7 12"),c(r,"fill","none"),c(r,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){S(u,e,f),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=pe(e,"click",st(function(){Mi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&C(e),a=!1,s()}}}function Lh(i){let e;function t(r,l){return r[3]?Eh:Ih}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),c(e,"class","container svelte-1k4i25s"),O(e,"container-mobile",i[4]),O(e,"skippable",i[3])},m(r,l){S(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&O(e,"container-mobile",r[4]),l&8&&O(e,"skippable",r[3])},i:Se,o:Se,d(r){r&&C(e),o.d()}}}function Ah(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Wf.noop}=e,s=rt().ui.isMobile;H(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,r=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,l=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Zs=class extends W{constructor(e){super(),j(this,e,Ah,Lh,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Ph)}},jf=Zs;function Mh(i){Ie(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 Vh(i){let e;return{c(){e=T("button"),e.textContent=`${z("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:Se,i:Se,o:Se,d(t){t&&C(e)}}}var Xs=class extends W{constructor(e){super(),j(this,e,null,Vh,U,{},Mh)}},Gf=Xs;function Rh(i){Ie(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 @@
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 Qf(i){let e;return{c(){e=T("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function Yf(i){let e,t;return e=new jf({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zf(i){let e,t;return e=new Kf({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xf(i){let e,t;return e=new Gf({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rh(i){let e,t,n,o,r,l,a,s=i[0]&&Qf(i),u=i[3]&&Yf(i),f=i[7]&&Zf(i),m=i[4]&&Xf(i);return{c(){e=T("div"),s&&s.c(),t=B(),n=T("video"),o=B(),u&&u.c(),r=B(),f&&f.c(),l=B(),m&&m.c(),vi(n,"width","100%"),vi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,w){S(h,e,w),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),f&&f.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[w]){h[0]?s||(s=Qf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=Yf(h),u.c(),d(u,1),u.m(e,r)):u&&(fe(),_(u,1,1,()=>{u=null}),de()),h[7]?f?w&128&&d(f,1):(f=Zf(h),f.c(),d(f,1),f.m(e,l)):f&&(fe(),_(f,1,1,()=>{f=null}),de()),h[4]?m?w&16&&d(m,1):(m=Xf(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),de())},i(h){a||(d(u),d(f),d(m),a=!0)},o(h){_(u),_(f),_(m),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),m&&m.d(),i[20](null)}}}function Bh(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:m=0}=e,h=rt(),w=h.state.isEnded$;H(i,w,Z=>t(7,a=Z));let g=h.ui.isMobile;H(i,g,Z=>t(0,o=Z));let C,v,I=!1,y=h.ads.playbackState;H(i,y,Z=>t(18,n=Z));let b=h.ads.canSkip,P=h.ads.position;H(i,P,Z=>t(5,r=Z));let A=h.ads.secondsToWatchBeforeSkip;H(i,A,Z=>t(6,l=Z));let M,N;qt(()=>{let Z=h.getAdmanWrapper();if(!s){Z.onAdmanLoadingError();return}let x=new AbortController,se=()=>{x.abort()},{width:L,height:K}=$e(h.ui.playerSize),J=$e(h.ui.isFullscreen),Y=$e(h.ui.isAutoplay),F={width:L,height:K,isFullscreen:J,isAutoplay:Y,adsContainer:C,adsVideoElement:v,slotId:s,params:u,previewParam:f,duration:m};return window.AdmanHTML?(Z.initAdman(F),I=!0):Z.loadAdman(x.signal).then(()=>{Z.initAdman(F),I=!0}).catch(()=>{Z.onAdmanLoadingError()}),()=>{!I&&se()}});function te(Z){ge[Z?"unshift":"push"](()=>{v=Z,t(2,v)})}function _e(Z){ge[Z?"unshift":"push"](()=>{C=Z,t(1,C)})}return i.$$set=Z=>{"adsSlotId"in Z&&t(14,s=Z.adsSlotId),"adsParams"in Z&&t(15,u=Z.adsParams),"adsPreviewParam"in Z&&t(16,f=Z.adsPreviewParam),"duration"in Z&&t(17,m=Z.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,M=b&&n!=="inactive"),i.$$.dirty&262145&&t(4,N=o&&n!=="inactive")},[o,C,v,M,N,r,l,a,h,w,g,y,P,A,s,u,f,m,n,te,_e]}var Js=class extends W{constructor(e){super(),j(this,e,Bh,Rh,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Vh)}},kr=Js;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 qh(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(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"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(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,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xs=class extends W{constructor(e){super(),j(this,e,Dh,qh,U,{})}},Jf=xs;function Nh(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("rect"),n=D("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Oh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $s=class extends W{constructor(e){super(),j(this,e,Oh,Nh,U,{})}},xf=$s;function Fh(i){let e,t;return e=new Jf({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hh(i){let e,t;return e=new xf({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zh(i){let e,t,n,o,r=[Hh,Fh],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Uh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var ea=class extends W{constructor(e){super(),j(this,e,Uh,zh,U,{isActive:0})}},Cr=ea;function Kh(i){Ie(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 Wh(i){let e=Nn(i[4]-i[3])+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=Nn(n[4]-n[3])+"")&&Qe(t,e)},i:Se,o:Se,d(n){n&&k(t)}}}function jh(i){let e,t,n;return t=new Cr({props:{isActive:!0}}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Gh(i){let e,t,n,o,r,l,a,s=[jh,Wh],u=[];function f(m,h){return m[1]?0:1}return r=f(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=B(),o=T("span"),l.c(),c(t,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),O(e,"live",i[1]),O(e,"hidden",i[0]),O(e,"playing",i[2])},m(m,h){S(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let w=r;r=f(m,h),r===w?u[r].p(m,h):(fe(),_(u[w],1,1,()=>{u[w]=null}),de(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&O(e,"live",m[1]),(!a||h&1)&&O(e,"hidden",m[0]),(!a||h&4)&&O(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&k(e),u[r].d()}}}function Qh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var ta=class extends W{constructor(e){super(),j(this,e,Qh,Gh,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Kh)}},Sr=ta;var _l=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)}}};var na=require("@vkontakte/videoplayer-core");var ia=require("@vkontakte/videoplayer-shared"),Wo=i=>{i.stopPropagation(),i.preventDefault()},Zh=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},Xh=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},Jh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},xh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},$f=i=>i.code==="Escape",$h=i=>i.code==="ArrowLeft",ed=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},td=i=>{if(Jh(i)){Wo(i),Xh(i.target);return}xh(i)&&(Wo(i),Zh(i.target))},gl=i=>!ia.clientChecker.isAndroid&&(i==null?void 0:i.detail)===0||ia.clientChecker.isAndroid&&(i==null?void 0:i.pointerType)==="",bl=async(i,e,t)=>{await Qn(),i&&!i.classList.contains("opened")&&!e&&$e(t)&&(await Qn(),t.set(!1),i.focus())},id=async(i,e,t)=>{await Qn(),i&&!e&&$e(t)&&(t.set(!1),i.focus())},jo=async(i,e,t)=>{var o;await Qn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())},vl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},Tr=(i,e)=>{td(i),$f(i)&&(Wo(i),e())},yl=async(i,e,t)=>{if(ed(i,!1)){Wo(i),e(),await Qn();let n=t();n==null||n.focus()}},wl=async(i,e,t,n)=>{if(td(i),$h(i)){Wo(i),e(),t.set(!0);return}$f(i)&&(Wo(i),n())},ui=(i,e)=>{ed(i)&&(Wo(i),e())},nd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},od=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}};var Gl=require("@vkontakte/videoplayer-shared");function eg(i){Ie(i,"svelte-9tsdtv","ul.svelte-9tsdtv{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}li.svelte-9tsdtv{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}li.svelte-9tsdtv:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function ld(i){var J;let e,t,n,o,r,l,a,s,u,f,m=(i[10].features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug"))+"",h,w,g,C,v,I=z("menu_debug_overlay")+"",y,b,P,A,M=i[10].features.copyVideoLink&&((J=i[9].callbacks)==null?void 0:J.onCopyVideoLink)&&tg(i),N=i[19]&&ig(i),te=i[12]&&i[6]!==na.ChromecastState.CONNECTED&&!i[17]&&sd(i);function _e(Y,F){return Y[4]?og:ng}let Z=_e(i,[-1,-1]),x=Z(i),se=i[10].features.videoRotate&&!i[17]&&lg(i),L=i[10].showSupport&&!i[7]&&ad(i),K=i[10].features.saveTraceInfoToFile&&rg(i);return{c(){e=T("ul"),M&&M.c(),t=B(),N&&N.c(),n=B(),te&&te.c(),o=B(),r=T("li"),x.c(),a=B(),se&&se.c(),s=B(),L&&L.c(),u=B(),f=T("li"),h=Ne(m),g=B(),K&&K.c(),C=B(),v=T("li"),y=Ne(I),c(r,"tabindex","0"),c(r,"role","menuitem"),c(r,"aria-label",l=z("aria_label_menu_loop")),c(r,"class","svelte-9tsdtv"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",w=i[10].features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),c(f,"class","svelte-9tsdtv"),c(v,"tabindex","0"),c(v,"role","menuitem"),c(v,"aria-label",b=i[8]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable")),c(v,"class","svelte-9tsdtv"),c(e,"role","menu"),vi(e,"top",i[3]+"px"),vi(e,"left",i[2]+"px"),c(e,"class","svelte-9tsdtv")},m(Y,F){S(Y,e,F),M&&M.m(e,null),p(e,t),N&&N.m(e,null),p(e,n),te&&te.m(e,null),p(e,o),p(e,r),x.m(r,null),p(e,a),se&&se.m(e,null),p(e,s),L&&L.m(e,null),p(e,u),p(e,f),p(f,h),p(e,g),K&&K.m(e,null),p(e,C),p(e,v),p(v,y),i[48](e),P||(A=[pe(r,"click",st(i[26])),pe(r,"keydown",i[39]),pe(f,"click",st(i[22])),pe(f,"keydown",i[35]),pe(v,"click",st(i[24])),pe(v,"keydown",i[37]),pe(e,"contextmenu",Yt(i[45])),pe(e,"keydown",i[29])],P=!0)},p(Y,F){var G;Y[10].features.copyVideoLink&&((G=Y[9].callbacks)!=null&&G.onCopyVideoLink)&&M.p(Y,F),Y[19]&&N.p(Y,F),Y[12]&&Y[6]!==na.ChromecastState.CONNECTED&&!Y[17]?te?te.p(Y,F):(te=sd(Y),te.c(),te.m(e,o)):te&&(te.d(1),te=null),Z!==(Z=_e(Y,F))&&(x.d(1),x=Z(Y),x&&(x.c(),x.m(r,null))),Y[10].features.videoRotate&&!Y[17]&&se.p(Y,F),Y[10].showSupport&&!Y[7]?L?L.p(Y,F):(L=ad(Y),L.c(),L.m(e,u)):L&&(L.d(1),L=null),Y[10].features.saveTraceInfoToFile&&K.p(Y,F),F[0]&256&&b!==(b=Y[8]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"))&&c(v,"aria-label",b),F[0]&8&&vi(e,"top",Y[3]+"px"),F[0]&4&&vi(e,"left",Y[2]+"px")},d(Y){Y&&k(e),M&&M.d(),N&&N.d(),te&&te.d(),x.d(),se&&se.d(),L&&L.d(),K&&K.d(),i[48](null),P=!1,nt(A)}}}function tg(i){let e,t,n,o,r,l,a=!i[5]&&!i[17]&&rd(i);return{c(){e=T("li"),e.textContent=`${z("menu_copy_video_link")}`,n=B(),a&&a.c(),o=dt(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_copy_video_link")),c(e,"class","svelte-9tsdtv")},m(s,u){S(s,e,u),S(s,n,u),a&&a.m(s,u),S(s,o,u),r||(l=[pe(e,"click",st(i[46])),pe(e,"keydown",i[30])],r=!0)},p(s,u){!s[5]&&!s[17]?a?a.p(s,u):(a=rd(s),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(s){s&&(k(e),k(n),k(o)),a&&a.d(s),r=!1,nt(l)}}}function rd(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_copy_video_link_with_timestamp")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[47])),pe(e,"keydown",i[31])],n=!0)},p:Se,d(r){r&&k(e),n=!1,nt(o)}}}function ig(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_copy_embed_code")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_copy_embed_code")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[27])),pe(e,"keydown",i[38])],n=!0)},p:Se,d(r){r&&k(e),n=!1,nt(o)}}}function sd(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_pip")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_pip")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[25])),pe(e,"keydown",i[32])],n=!0)},p:Se,d(r){r&&k(e),n=!1,nt(o)}}}function ng(i){let e=z("menu_video_loop_on")+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},d(n){n&&k(t)}}}function og(i){let e=z("menu_video_loop_off")+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},d(n){n&&k(t)}}}function lg(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_video_rotate")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("aria_label_menu_rotate")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[20])),pe(e,"keydown",i[33])],n=!0)},p:Se,d(r){r&&k(e),n=!1,nt(o)}}}function ad(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_report")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[21])),pe(e,"keydown",i[34])],n=!0)},p:Se,d(r){r&&k(e),n=!1,nt(o)}}}function rg(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_save_debug")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_save_debug")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[23])),pe(e,"keydown",i[36])],n=!0)},p:Se,d(r){r&&k(e),n=!1,nt(o)}}}function sg(i){let e,t=i[1]&&ld(i);return{c(){t&&t.c(),e=dt()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=ld(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Se,o:Se,d(n){n&&k(e),t&&t.d(n)}}}function ag(i,e,t){var Te,pt;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:w=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:C}=e,v=0,I=0,y=rt(),b=Ht(),P=y.ui.contextMenu.visible$,A=y.ui.debugPanelVisible;H(i,A,Le=>t(8,s=Le));let M=y.webApi.pictureInPictureApi,N=(Te=y.webApi.pictureInPictureApi)==null?void 0:Te.info.isActive$;H(i,N,Le=>t(7,a=Le));let te=y.actions.internal.togglePictureInPicture,_e=y.state.chromecastState$;H(i,_e,Le=>t(6,l=Le));let Z=y.state.isLive$;H(i,Z,Le=>t(5,r=Le));let x=y.state.positionExact$;H(i,x,Le=>t(49,n=Le));let se=y.state.isInteractive,L=y.state.looped$;H(i,L,Le=>t(4,o=Le));let K=!!((pt=y.callbacks)!=null&&pt.onCopyEmbedCodeClicked),J=()=>{P.set(!1)},Y=(Le,ut)=>{if(!g||!h||!w)return;let me=g.getBoundingClientRect(),tt=h.getBoundingClientRect();t(2,v=Le-tt.left),t(3,I=ut-tt.top),v+me.width>tt.width&&t(2,v=tt.width-me.width),I+me.height>tt.height&&t(3,I=tt.height-me.height),t(2,v=Math.max(v,0)),t(3,I=Math.max(I,0))},F=()=>{J(),y.actions.internal.videoRotate()},G=()=>{window.open(f,"_blank"),J(),y.actions.internal.pause()},X=()=>{let Le=y.actions.internal.getDebugTextData();if(b.features.saveDebugInfoToFile){let ut=new Blob([...Le],{type:"plain/text"}),me=window.URL.createObjectURL(ut);Oo(me,"vk_player_debug_info","txt")}else _l(y.actions.internal.getDebugTextData());J(),C==null||C()},le=()=>{let Le=y.actions.internal.getTraceTextData(),ut=new Blob([...Le],{type:"application/json"}),me=window.URL.createObjectURL(ut);Oo(me,"vk_player_trace_info","json"),J(),C==null||C()},qe=()=>{A.set(!0),J(),C==null||C()},Xe=async()=>{try{te()}finally{J(),C==null||C()}},Ee=()=>{y.actions.internal.setLooped(!o),J()},Be=()=>{var Le,ut;if(K){let me=(ut=(Le=y.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:ut.call(Le);me&&_l(me)}J()},De=(Le=!1)=>{var ut,me;if((ut=y.callbacks)!=null&&ut.onCopyVideoLink){let tt=(me=y.callbacks)==null?void 0:me.onCopyVideoLink(Le,n);tt&&_l(tt)}J()},xe=Le=>{Tr(Le,J)},ae=Le=>{ui(Le,()=>De())},he=Le=>{ui(Le,()=>De(!0))},at=Le=>{ui(Le,()=>Xe())},Ce=Le=>{ui(Le,()=>F())},Ke=Le=>{ui(Le,()=>G())},mt=Le=>{ui(Le,()=>X())},Ye=Le=>{ui(Le,()=>le())},Ge=Le=>{ui(Le,()=>qe())},Ze=Le=>{ui(Le,()=>Be())},et=Le=>{ui(Le,()=>Ee())};function ce(Le){Dn.call(this,i,Le)}let Pe=()=>De(),We=()=>De(!0);function re(Le){ge[Le?"unshift":"push"](()=>{g=Le,t(0,g)})}return i.$$set=Le=>{"visible"in Le&&t(1,u=Le.visible),"supportLink"in Le&&t(40,f=Le.supportLink),"position"in Le&&t(41,m=Le.position),"playerContainerRef"in Le&&t(42,h=Le.playerContainerRef),"controlsContainerRef"in Le&&t(43,w=Le.controlsContainerRef),"menuElementRef"in Le&&t(0,g=Le.menuElementRef),"returnFocus"in Le&&t(44,C=Le.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&7168&&g&&h&&w){let{top:Le,left:ut,bottom:me,right:tt}=m,Ct=ut!=null?ut:0,bt=Le!=null?Le:0,Ue=g.getBoundingClientRect();(0,Gl.isNullable)(ut)&&!(0,Gl.isNullable)(tt)&&(Ct=tt-Ue.width),(0,Gl.isNullable)(Le)&&!(0,Gl.isNullable)(me)&&(bt=me-Ue.height),Ct=Math.max(Ct,0),bt=Math.max(bt,0),Y(Ct,bt)}},[g,u,v,I,o,r,l,a,s,y,b,A,M,N,_e,Z,x,se,L,K,F,G,X,le,qe,Xe,Ee,Be,De,xe,ae,he,at,Ce,Ke,mt,Ye,Ge,Ze,et,f,m,h,w,C,ce,Pe,We,re]}var oa=class extends W{constructor(e){super(),j(this,e,ag,sg,U,{visible:1,supportLink:40,position:41,playerContainerRef:42,controlsContainerRef:43,menuElementRef:0,returnFocus:44},eg,[-1,-1])}},ud=oa;var Pr=class{constructor(e){this.value=e,this.next=null}};var kl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Pr(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 ug(i){Ie(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function cg(i){let e,t;return{c(){e=T("div"),t=T("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),p(e,t),i[3](t)},p:Se,i:Se,o:Se,d(n){n&&k(e),i[3](null)}}}var la=16,ra=120,cd=60;function fg(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function dg(i,e,t){let{values:n=[]}=e,o,r,l=ra/cd;qt(()=>{t(0,o.width=ra,o),t(0,o.height=la,o),t(2,r=o.getContext("2d"))});function a(s){ge[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,ra,la);let f=cd-1;for(let m=n.length-1;m>=0;m--){let h=f*l,w=u>0?la*(n[m]/u):0;fg(r,h,0,l,w),s=w+" "+s,f--}}}},[o,n,r,a]}var sa=class extends W{constructor(e){super(),j(this,e,dg,cg,U,{values:1},ug)}},Ir=sa;var aa=require("@vkontakte/videoplayer-shared");function mg(i){Ie(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 fd(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Qe(l,r)},d(a){a&&k(e)}}}function dd(i){let e,t,n,o,r=i[0].vsid+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="VSID",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].vsid+"")&&Qe(l,r)},d(a){a&&k(e)}}}function md(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Qe(l,r)},d(a){a&&k(e)}}}function pd(i){let e,t,n,o,r,l=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,m,h=(i[0].audioCodec||"")+"",w,g,C=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",v;return{c(){e=T("div"),t=T("div"),t.textContent="Streams",n=B(),o=T("span"),r=Ne("Video: "),a=Ne(l),s=B(),f=Ne(u),m=Ne(`
24
+ )}`)}function Qf(i){let e;return{c(){e=T("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function Yf(i){let e,t;return e=new jf({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zf(i){let e,t;return e=new Kf({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xf(i){let e,t;return e=new Gf({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bh(i){let e,t,n,o,r,l,a,s=i[0]&&Qf(i),u=i[3]&&Yf(i),f=i[7]&&Zf(i),m=i[4]&&Xf(i);return{c(){e=T("div"),s&&s.c(),t=B(),n=T("video"),o=B(),u&&u.c(),r=B(),f&&f.c(),l=B(),m&&m.c(),yi(n,"width","100%"),yi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,w){S(h,e,w),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),f&&f.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[w]){h[0]?s||(s=Qf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=Yf(h),u.c(),d(u,1),u.m(e,r)):u&&(fe(),_(u,1,1,()=>{u=null}),de()),h[7]?f?w&128&&d(f,1):(f=Zf(h),f.c(),d(f,1),f.m(e,l)):f&&(fe(),_(f,1,1,()=>{f=null}),de()),h[4]?m?w&16&&d(m,1):(m=Xf(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),de())},i(h){a||(d(u),d(f),d(m),a=!0)},o(h){_(u),_(f),_(m),a=!1},d(h){h&&C(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),m&&m.d(),i[20](null)}}}function Dh(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:m=0}=e,h=rt(),w=h.state.isEnded$;H(i,w,Z=>t(7,a=Z));let g=h.ui.isMobile;H(i,g,Z=>t(0,o=Z));let k,v,I=!1,y=h.ads.playbackState;H(i,y,Z=>t(18,n=Z));let b=h.ads.canSkip,P=h.ads.position;H(i,P,Z=>t(5,r=Z));let L=h.ads.secondsToWatchBeforeSkip;H(i,L,Z=>t(6,l=Z));let M,N;Dt(()=>{let Z=h.getAdmanWrapper();if(!s){Z.onAdmanLoadingError();return}let x=new AbortController,se=()=>{x.abort()},{width:A,height:K}=$e(h.ui.playerSize),J=$e(h.ui.isFullscreen),Y=$e(h.ui.isAutoplay),F={width:A,height:K,isFullscreen:J,isAutoplay:Y,adsContainer:k,adsVideoElement:v,slotId:s,params:u,previewParam:f,duration:m};return window.AdmanHTML?(Z.initAdman(F),I=!0):Z.loadAdman(x.signal).then(()=>{Z.initAdman(F),I=!0}).catch(()=>{Z.onAdmanLoadingError()}),()=>{!I&&se()}});function te(Z){ge[Z?"unshift":"push"](()=>{v=Z,t(2,v)})}function _e(Z){ge[Z?"unshift":"push"](()=>{k=Z,t(1,k)})}return i.$$set=Z=>{"adsSlotId"in Z&&t(14,s=Z.adsSlotId),"adsParams"in Z&&t(15,u=Z.adsParams),"adsPreviewParam"in Z&&t(16,f=Z.adsPreviewParam),"duration"in Z&&t(17,m=Z.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,M=b&&n!=="inactive"),i.$$.dirty&262145&&t(4,N=o&&n!=="inactive")},[o,k,v,M,N,r,l,a,h,w,g,y,P,L,s,u,f,m,n,te,_e]}var Js=class extends W{constructor(e){super(),j(this,e,Dh,Bh,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Rh)}},kr=Js;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 qh(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(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"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(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,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function Nh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xs=class extends W{constructor(e){super(),j(this,e,Nh,qh,U,{})}},Jf=xs;function Oh(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("rect"),n=q("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $s=class extends W{constructor(e){super(),j(this,e,Fh,Oh,U,{})}},xf=$s;function Hh(i){let e,t;return e=new Jf({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zh(i){let e,t;return e=new xf({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Uh(i){let e,t,n,o,r=[zh,Hh],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Kh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var ea=class extends W{constructor(e){super(),j(this,e,Kh,Uh,U,{isActive:0})}},Cr=ea;function Wh(i){Ie(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=On(i[4]-i[3])+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=On(n[4]-n[3])+"")&&Qe(t,e)},i:Se,o:Se,d(n){n&&C(t)}}}function Gh(i){let e,t,n;return t=new Cr({props:{isActive:!0}}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function Qh(i){let e,t,n,o,r,l,a,s=[Gh,jh],u=[];function f(m,h){return m[1]?0:1}return r=f(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=B(),o=T("span"),l.c(),c(t,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),O(e,"live",i[1]),O(e,"hidden",i[0]),O(e,"playing",i[2])},m(m,h){S(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let w=r;r=f(m,h),r===w?u[r].p(m,h):(fe(),_(u[w],1,1,()=>{u[w]=null}),de(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&O(e,"live",m[1]),(!a||h&1)&&O(e,"hidden",m[0]),(!a||h&4)&&O(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&C(e),u[r].d()}}}function Yh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var ta=class extends W{constructor(e){super(),j(this,e,Yh,Qh,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Wh)}},Sr=ta;var _l=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)}}};var na=require("@vkontakte/videoplayer-core");var ia=require("@vkontakte/videoplayer-shared"),Wo=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()},xh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},$h=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},$f=i=>i.code==="Escape",eg=i=>i.code==="ArrowLeft",ed=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},td=i=>{if(xh(i)){Wo(i),Jh(i.target);return}$h(i)&&(Wo(i),Xh(i.target))},gl=i=>!ia.clientChecker.isAndroid&&(i==null?void 0:i.detail)===0||ia.clientChecker.isAndroid&&(i==null?void 0:i.pointerType)==="",bl=async(i,e,t)=>{await Qn(),i&&!i.classList.contains("opened")&&!e&&$e(t)&&(await Qn(),t.set(!1),i.focus())},id=async(i,e,t)=>{await Qn(),i&&!e&&$e(t)&&(t.set(!1),i.focus())},jo=async(i,e,t)=>{var o;await Qn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())},vl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},Tr=(i,e)=>{td(i),$f(i)&&(Wo(i),e())},yl=async(i,e,t)=>{if(ed(i,!1)){Wo(i),e(),await Qn();let n=t();n==null||n.focus()}},wl=async(i,e,t,n)=>{if(td(i),eg(i)){Wo(i),e(),t.set(!0);return}$f(i)&&(Wo(i),n())},ui=(i,e)=>{ed(i)&&(Wo(i),e())},nd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},od=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}};var Gl=require("@vkontakte/videoplayer-shared");function tg(i){Ie(i,"svelte-9tsdtv","ul.svelte-9tsdtv{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}li.svelte-9tsdtv{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}li.svelte-9tsdtv:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function ld(i){var J;let e,t,n,o,r,l,a,s,u,f,m=(i[10].features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug"))+"",h,w,g,k,v,I=z("menu_debug_overlay")+"",y,b,P,L,M=i[10].features.copyVideoLink&&((J=i[9].callbacks)==null?void 0:J.onCopyVideoLink)&&ig(i),N=i[19]&&ng(i),te=i[12]&&i[6]!==na.ChromecastState.CONNECTED&&!i[17]&&sd(i);function _e(Y,F){return Y[4]?lg:og}let Z=_e(i,[-1,-1]),x=Z(i),se=i[10].features.videoRotate&&!i[17]&&rg(i),A=i[10].showSupport&&!i[7]&&ad(i),K=i[10].features.saveTraceInfoToFile&&sg(i);return{c(){e=T("ul"),M&&M.c(),t=B(),N&&N.c(),n=B(),te&&te.c(),o=B(),r=T("li"),x.c(),a=B(),se&&se.c(),s=B(),A&&A.c(),u=B(),f=T("li"),h=Ne(m),g=B(),K&&K.c(),k=B(),v=T("li"),y=Ne(I),c(r,"tabindex","0"),c(r,"role","menuitem"),c(r,"aria-label",l=z("aria_label_menu_loop")),c(r,"class","svelte-9tsdtv"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",w=i[10].features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),c(f,"class","svelte-9tsdtv"),c(v,"tabindex","0"),c(v,"role","menuitem"),c(v,"aria-label",b=i[8]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable")),c(v,"class","svelte-9tsdtv"),c(e,"role","menu"),yi(e,"top",i[3]+"px"),yi(e,"left",i[2]+"px"),c(e,"class","svelte-9tsdtv")},m(Y,F){S(Y,e,F),M&&M.m(e,null),p(e,t),N&&N.m(e,null),p(e,n),te&&te.m(e,null),p(e,o),p(e,r),x.m(r,null),p(e,a),se&&se.m(e,null),p(e,s),A&&A.m(e,null),p(e,u),p(e,f),p(f,h),p(e,g),K&&K.m(e,null),p(e,k),p(e,v),p(v,y),i[48](e),P||(L=[pe(r,"click",st(i[26])),pe(r,"keydown",i[39]),pe(f,"click",st(i[22])),pe(f,"keydown",i[35]),pe(v,"click",st(i[24])),pe(v,"keydown",i[37]),pe(e,"contextmenu",Yt(i[45])),pe(e,"keydown",i[29])],P=!0)},p(Y,F){var G;Y[10].features.copyVideoLink&&((G=Y[9].callbacks)!=null&&G.onCopyVideoLink)&&M.p(Y,F),Y[19]&&N.p(Y,F),Y[12]&&Y[6]!==na.ChromecastState.CONNECTED&&!Y[17]?te?te.p(Y,F):(te=sd(Y),te.c(),te.m(e,o)):te&&(te.d(1),te=null),Z!==(Z=_e(Y,F))&&(x.d(1),x=Z(Y),x&&(x.c(),x.m(r,null))),Y[10].features.videoRotate&&!Y[17]&&se.p(Y,F),Y[10].showSupport&&!Y[7]?A?A.p(Y,F):(A=ad(Y),A.c(),A.m(e,u)):A&&(A.d(1),A=null),Y[10].features.saveTraceInfoToFile&&K.p(Y,F),F[0]&256&&b!==(b=Y[8]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"))&&c(v,"aria-label",b),F[0]&8&&yi(e,"top",Y[3]+"px"),F[0]&4&&yi(e,"left",Y[2]+"px")},d(Y){Y&&C(e),M&&M.d(),N&&N.d(),te&&te.d(),x.d(),se&&se.d(),A&&A.d(),K&&K.d(),i[48](null),P=!1,nt(L)}}}function ig(i){let e,t,n,o,r,l,a=!i[5]&&!i[17]&&rd(i);return{c(){e=T("li"),e.textContent=`${z("menu_copy_video_link")}`,n=B(),a&&a.c(),o=ft(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_copy_video_link")),c(e,"class","svelte-9tsdtv")},m(s,u){S(s,e,u),S(s,n,u),a&&a.m(s,u),S(s,o,u),r||(l=[pe(e,"click",st(i[46])),pe(e,"keydown",i[30])],r=!0)},p(s,u){!s[5]&&!s[17]?a?a.p(s,u):(a=rd(s),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(s){s&&(C(e),C(n),C(o)),a&&a.d(s),r=!1,nt(l)}}}function rd(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_copy_video_link_with_timestamp")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[47])),pe(e,"keydown",i[31])],n=!0)},p:Se,d(r){r&&C(e),n=!1,nt(o)}}}function ng(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_copy_embed_code")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_copy_embed_code")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[27])),pe(e,"keydown",i[38])],n=!0)},p:Se,d(r){r&&C(e),n=!1,nt(o)}}}function sd(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_pip")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_pip")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[25])),pe(e,"keydown",i[32])],n=!0)},p:Se,d(r){r&&C(e),n=!1,nt(o)}}}function og(i){let e=z("menu_video_loop_on")+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},d(n){n&&C(t)}}}function lg(i){let e=z("menu_video_loop_off")+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},d(n){n&&C(t)}}}function rg(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_video_rotate")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("aria_label_menu_rotate")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[20])),pe(e,"keydown",i[33])],n=!0)},p:Se,d(r){r&&C(e),n=!1,nt(o)}}}function ad(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_report")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[21])),pe(e,"keydown",i[34])],n=!0)},p:Se,d(r){r&&C(e),n=!1,nt(o)}}}function sg(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${z("menu_save_debug")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",t=z("menu_save_debug")),c(e,"class","svelte-9tsdtv")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",st(i[23])),pe(e,"keydown",i[36])],n=!0)},p:Se,d(r){r&&C(e),n=!1,nt(o)}}}function ag(i){let e,t=i[1]&&ld(i);return{c(){t&&t.c(),e=ft()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=ld(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Se,o:Se,d(n){n&&C(e),t&&t.d(n)}}}function ug(i,e,t){var Te,pt;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:w=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:k}=e,v=0,I=0,y=rt(),b=Ht(),P=y.ui.contextMenu.visible$,L=y.ui.debugPanelVisible;H(i,L,Le=>t(8,s=Le));let M=y.webApi.pictureInPictureApi,N=(Te=y.webApi.pictureInPictureApi)==null?void 0:Te.info.isActive$;H(i,N,Le=>t(7,a=Le));let te=y.actions.internal.togglePictureInPicture,_e=y.state.chromecastState$;H(i,_e,Le=>t(6,l=Le));let Z=y.state.isLive$;H(i,Z,Le=>t(5,r=Le));let x=y.state.positionExact$;H(i,x,Le=>t(49,n=Le));let se=y.state.isInteractive,A=y.state.looped$;H(i,A,Le=>t(4,o=Le));let K=!!((pt=y.callbacks)!=null&&pt.onCopyEmbedCodeClicked),J=()=>{P.set(!1)},Y=(Le,ut)=>{if(!g||!h||!w)return;let me=g.getBoundingClientRect(),tt=h.getBoundingClientRect();t(2,v=Le-tt.left),t(3,I=ut-tt.top),v+me.width>tt.width&&t(2,v=tt.width-me.width),I+me.height>tt.height&&t(3,I=tt.height-me.height),t(2,v=Math.max(v,0)),t(3,I=Math.max(I,0))},F=()=>{J(),y.actions.internal.videoRotate()},G=()=>{window.open(f,"_blank"),J(),y.actions.internal.pause()},X=()=>{let Le=y.actions.internal.getDebugTextData();if(b.features.saveDebugInfoToFile){let ut=new Blob([...Le],{type:"plain/text"}),me=window.URL.createObjectURL(ut);Oo(me,"vk_player_debug_info","txt")}else _l(y.actions.internal.getDebugTextData());J(),k==null||k()},oe=()=>{let Le=y.actions.internal.getTraceTextData(),ut=new Blob([...Le],{type:"application/json"}),me=window.URL.createObjectURL(ut);Oo(me,"vk_player_trace_info","json"),J(),k==null||k()},De=()=>{L.set(!0),J(),k==null||k()},Xe=async()=>{try{te()}finally{J(),k==null||k()}},Ee=()=>{y.actions.internal.setLooped(!o),J()},Be=()=>{var Le,ut;if(K){let me=(ut=(Le=y.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:ut.call(Le);me&&_l(me)}J()},qe=(Le=!1)=>{var ut,me;if((ut=y.callbacks)!=null&&ut.onCopyVideoLink){let tt=(me=y.callbacks)==null?void 0:me.onCopyVideoLink(Le,n);tt&&_l(tt)}J()},xe=Le=>{Tr(Le,J)},ae=Le=>{ui(Le,()=>qe())},he=Le=>{ui(Le,()=>qe(!0))},at=Le=>{ui(Le,()=>Xe())},Ce=Le=>{ui(Le,()=>F())},Ke=Le=>{ui(Le,()=>G())},mt=Le=>{ui(Le,()=>X())},Ye=Le=>{ui(Le,()=>oe())},Ge=Le=>{ui(Le,()=>De())},Ze=Le=>{ui(Le,()=>Be())},et=Le=>{ui(Le,()=>Ee())};function ce(Le){Nn.call(this,i,Le)}let Pe=()=>qe(),We=()=>qe(!0);function le(Le){ge[Le?"unshift":"push"](()=>{g=Le,t(0,g)})}return i.$$set=Le=>{"visible"in Le&&t(1,u=Le.visible),"supportLink"in Le&&t(40,f=Le.supportLink),"position"in Le&&t(41,m=Le.position),"playerContainerRef"in Le&&t(42,h=Le.playerContainerRef),"controlsContainerRef"in Le&&t(43,w=Le.controlsContainerRef),"menuElementRef"in Le&&t(0,g=Le.menuElementRef),"returnFocus"in Le&&t(44,k=Le.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&7168&&g&&h&&w){let{top:Le,left:ut,bottom:me,right:tt}=m,Ct=ut!=null?ut:0,bt=Le!=null?Le:0,Ue=g.getBoundingClientRect();(0,Gl.isNullable)(ut)&&!(0,Gl.isNullable)(tt)&&(Ct=tt-Ue.width),(0,Gl.isNullable)(Le)&&!(0,Gl.isNullable)(me)&&(bt=me-Ue.height),Ct=Math.max(Ct,0),bt=Math.max(bt,0),Y(Ct,bt)}},[g,u,v,I,o,r,l,a,s,y,b,L,M,N,_e,Z,x,se,A,K,F,G,X,oe,De,Xe,Ee,Be,qe,xe,ae,he,at,Ce,Ke,mt,Ye,Ge,Ze,et,f,m,h,w,k,ce,Pe,We,le]}var oa=class extends W{constructor(e){super(),j(this,e,ug,ag,U,{visible:1,supportLink:40,position:41,playerContainerRef:42,controlsContainerRef:43,menuElementRef:0,returnFocus:44},tg,[-1,-1])}},ud=oa;var Pr=class{constructor(e){this.value=e,this.next=null}};var kl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Pr(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 cg(i){Ie(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function fg(i){let e,t;return{c(){e=T("div"),t=T("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),p(e,t),i[3](t)},p:Se,i:Se,o:Se,d(n){n&&C(e),i[3](null)}}}var la=16,ra=120,cd=60;function dg(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function mg(i,e,t){let{values:n=[]}=e,o,r,l=ra/cd;Dt(()=>{t(0,o.width=ra,o),t(0,o.height=la,o),t(2,r=o.getContext("2d"))});function a(s){ge[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,ra,la);let f=cd-1;for(let m=n.length-1;m>=0;m--){let h=f*l,w=u>0?la*(n[m]/u):0;dg(r,h,0,l,w),s=w+" "+s,f--}}}},[o,n,r,a]}var sa=class extends W{constructor(e){super(),j(this,e,mg,fg,U,{values:1},cg)}},Ir=sa;var aa=require("@vkontakte/videoplayer-shared");function pg(i){Ie(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 fd(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Qe(l,r)},d(a){a&&C(e)}}}function dd(i){let e,t,n,o,r=i[0].vsid+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="VSID",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].vsid+"")&&Qe(l,r)},d(a){a&&C(e)}}}function md(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Qe(l,r)},d(a){a&&C(e)}}}function pd(i){let e,t,n,o,r,l=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,m,h=(i[0].audioCodec||"")+"",w,g,k=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",v;return{c(){e=T("div"),t=T("div"),t.textContent="Streams",n=B(),o=T("span"),r=Ne("Video: "),a=Ne(l),s=B(),f=Ne(u),m=Ne(`
25
25
  &
26
- Audio: `),w=Ne(h),g=B(),v=Ne(C),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(I,y){S(I,e,y),p(e,t),p(e,n),p(e,o),p(o,r),p(o,a),p(o,s),p(o,f),p(o,m),p(o,w),p(o,g),p(o,v)},p(I,y){y&1&&l!==(l=(I[0].videoCodec||"")+"")&&Qe(a,l),y&1&&u!==(u=I[0].hdr?"(HDR)":"")&&Qe(f,u),y&1&&h!==(h=(I[0].audioCodec||"")+"")&&Qe(w,h),y&1&&C!==(C=I[0].audioLanguage?`(${I[0].audioLanguage})`:"")&&Qe(v,C)},d(I){I&&k(e)}}}function _d(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Qe(l,r)},d(a){a&&k(e)}}}function hd(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Qe(l,r)},d(a){a&&k(e)}}}function gd(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Qe(l,r)},d(a){a&&k(e)}}}function bd(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=B(),o=T("span"),l=Ne(r),a=Ne(" %"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Qe(l,r)},d(s){s&&k(e)}}}function vd(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=B(),o=T("span"),l=Ne(r),a=Ne(" s"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Qe(l,r)},d(s){s&&k(e)}}}function yd(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(Cd).map(Sd).join(" & ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(Cd).map(Sd).join(" & ")+"")&&Qe(l,r)},d(a){a&&k(e)}}}function wd(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new Ir({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=B(),q(o.$$.fragment),r=B(),l=T("span"),s=Ne(a),u=Ne(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(m,h){S(m,e,h),p(e,t),p(e,n),V(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),f=!0},p(m,h){let w={};h&32&&(w.values=m[5]),o.$set(w),(!f||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Qe(s,a)},i(m){f||(d(o.$$.fragment,m),f=!0)},o(m){_(o.$$.fragment,m),f=!1},d(m){m&&k(e),R(o)}}}function kd(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new Ir({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=B(),q(o.$$.fragment),r=B(),l=T("span"),s=Ne(a),u=Ne(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(m,h){S(m,e,h),p(e,t),p(e,n),V(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),f=!0},p(m,h){let w={};h&64&&(w.values=m[6]),o.$set(w),(!f||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Qe(s,a)},i(m){f||(d(o.$$.fragment,m),f=!0)},o(m){_(o.$$.fragment,m),f=!1},d(m){m&&k(e),R(o)}}}function pg(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,L,K,J,Y,F,G,X,le,qe,Xe,Ee,Be,De,xe,ae,he=i[0].id&&fd(i),at=i[0].vsid&&dd(i),Ce=i[0].provider&&md(i),Ke=(i[0].videoCodec||i[0].audioCodec)&&pd(i),mt=i[0].viewport&&_d(i),Ye=i[0].videoSize&&hd(i),Ge=i[0].cdn&&gd(i),Ze=i[0].volume&&bd(i),et=i[0].buffer&&vd(i),ce=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&yd(i),Pe=i[0].speed&&wd(i),We=i[0].bitrate&&kd(i);return le=new Ir({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=B(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=B(),s=T("span"),f=Ne(u),m=B(),he&&he.c(),h=B(),at&&at.c(),w=B(),Ce&&Ce.c(),g=B(),Ke&&Ke.c(),C=B(),mt&&mt.c(),v=B(),Ye&&Ye.c(),I=B(),Ge&&Ge.c(),y=B(),Ze&&Ze.c(),b=B(),et&&et.c(),P=B(),ce&&ce.c(),A=B(),M=T("div"),N=T("div"),N.textContent="Dropped",te=B(),_e=T("span"),Z=Ne(i[2]),x=Ne(" / "),se=Ne(i[1]),L=Ne(" frames"),K=B(),Pe&&Pe.c(),J=B(),We&&We.c(),Y=B(),F=T("div"),G=T("div"),G.textContent="FPS",X=B(),q(le.$$.fragment),qe=B(),Xe=T("span"),Ee=Ne(i[3]),c(t,"class","close svelte-k5ymwy"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(l,"class","svelte-k5ymwy"),c(r,"class","svelte-k5ymwy"),c(N,"class","svelte-k5ymwy"),c(M,"class","svelte-k5ymwy"),c(G,"class","svelte-k5ymwy"),c(F,"class","svelte-k5ymwy"),c(o,"class","content svelte-k5ymwy"),c(e,"class","container svelte-k5ymwy"),c(e,"role","region"),c(e,"aria-label",Be=z("aria_label_debug_panel")),O(e,"container-mobile",i[7])},m(re,Te){S(re,e,Te),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,f),p(o,m),he&&he.m(o,null),p(o,h),at&&at.m(o,null),p(o,w),Ce&&Ce.m(o,null),p(o,g),Ke&&Ke.m(o,null),p(o,C),mt&&mt.m(o,null),p(o,v),Ye&&Ye.m(o,null),p(o,I),Ge&&Ge.m(o,null),p(o,y),Ze&&Ze.m(o,null),p(o,b),et&&et.m(o,null),p(o,P),ce&&ce.m(o,null),p(o,A),p(o,M),p(M,N),p(M,te),p(M,_e),p(_e,Z),p(_e,x),p(_e,se),p(_e,L),p(o,K),Pe&&Pe.m(o,null),p(o,J),We&&We.m(o,null),p(o,Y),p(o,F),p(F,G),p(F,X),V(le,F,null),p(F,qe),p(F,Xe),p(Xe,Ee),De=!0,xe||(ae=pe(t,"click",st(i[9])),xe=!0)},p(re,[Te]){(!De||Te&1)&&u!==(u=re[0].version+"")&&Qe(f,u),re[0].id?he?he.p(re,Te):(he=fd(re),he.c(),he.m(o,h)):he&&(he.d(1),he=null),re[0].vsid?at?at.p(re,Te):(at=dd(re),at.c(),at.m(o,w)):at&&(at.d(1),at=null),re[0].provider?Ce?Ce.p(re,Te):(Ce=md(re),Ce.c(),Ce.m(o,g)):Ce&&(Ce.d(1),Ce=null),re[0].videoCodec||re[0].audioCodec?Ke?Ke.p(re,Te):(Ke=pd(re),Ke.c(),Ke.m(o,C)):Ke&&(Ke.d(1),Ke=null),re[0].viewport?mt?mt.p(re,Te):(mt=_d(re),mt.c(),mt.m(o,v)):mt&&(mt.d(1),mt=null),re[0].videoSize?Ye?Ye.p(re,Te):(Ye=hd(re),Ye.c(),Ye.m(o,I)):Ye&&(Ye.d(1),Ye=null),re[0].cdn?Ge?Ge.p(re,Te):(Ge=gd(re),Ge.c(),Ge.m(o,y)):Ge&&(Ge.d(1),Ge=null),re[0].volume?Ze?Ze.p(re,Te):(Ze=bd(re),Ze.c(),Ze.m(o,b)):Ze&&(Ze.d(1),Ze=null),re[0].buffer?et?et.p(re,Te):(et=vd(re),et.c(),et.m(o,P)):et&&(et.d(1),et=null),re[0].currentVideoSegmentLength||re[0].currentAudioSegmentLength?ce?ce.p(re,Te):(ce=yd(re),ce.c(),ce.m(o,A)):ce&&(ce.d(1),ce=null),(!De||Te&4)&&Qe(Z,re[2]),(!De||Te&2)&&Qe(se,re[1]),re[0].speed?Pe?(Pe.p(re,Te),Te&1&&d(Pe,1)):(Pe=wd(re),Pe.c(),d(Pe,1),Pe.m(o,J)):Pe&&(fe(),_(Pe,1,1,()=>{Pe=null}),de()),re[0].bitrate?We?(We.p(re,Te),Te&1&&d(We,1)):(We=kd(re),We.c(),d(We,1),We.m(o,Y)):We&&(fe(),_(We,1,1,()=>{We=null}),de());let pt={};Te&16&&(pt.values=re[4]),le.$set(pt),(!De||Te&8)&&Qe(Ee,re[3]),(!De||Te&128)&&O(e,"container-mobile",re[7])},i(re){De||(d(Pe),d(We),d(le.$$.fragment,re),De=!0)},o(re){_(Pe),_(We),_(le.$$.fragment,re),De=!1},d(re){re&&k(e),he&&he.d(),at&&at.d(),Ce&&Ce.d(),Ke&&Ke.d(),mt&&mt.d(),Ye&&Ye.d(),Ge&&Ge.d(),Ze&&Ze.d(),et&&et.d(),ce&&ce.d(),Pe&&Pe.d(),We&&We.d(),R(le),xe=!1,ae()}}}var Cd=({value:i})=>i,Sd=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function _g(i,e,t){let n,o=rt(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;H(i,l,b=>t(7,n=b));let a=()=>{aa.safeStorage.remove(Ul),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,m=0,h=0,w=new kl(60),g=new kl(60),C=new kl(60),v=[],I=[],y=[];return qt(()=>{aa.safeStorage.set(Ul,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let b=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let A=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=A-f),t(1,f=A),w.push(h),s.speed&&g.push(s.speed),s.bitrate&&C.push(s.bitrate),t(4,v=w.getValuesFromBottom()),t(5,I=g.getValuesFromBottom()),t(6,y=C.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(b),P&&clearInterval(P)}}),[s,f,m,h,v,I,y,n,l,a]}var ua=class extends W{constructor(e){super(),j(this,e,_g,pg,U,{},mg)}},Er=ua;function hg(i){Ie(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 gg(i){let e,t,n;return{c(){e=T("div"),c(e,"class","close svelte-1ome55p")},m(o,r){S(o,e,r),t||(n=pe(e,"click",st(i[0])),t=!0)},p:Se,i:Se,o:Se,d(o){o&&k(e),t=!1,n()}}}function bg(i){function e(t){Dn.call(this,i,t)}return[e]}var ca=class extends W{constructor(e){super(),j(this,e,bg,gg,U,{},hg)}},Td=ca;var Pd=require("@vkontakte/videoplayer-shared");function vg(i){Ie(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 yg(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=B(),o=D("svg"),r=D("g"),l=D("g"),a=D("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(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"),c(a,"fill","#fff"),c(l,"fill-rule","nonzero"),c(r,"fill","none"),c(r,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:Se,i:Se,o:Se,d(s){s&&k(e),i[2](null)}}}var wg=5e3;function kg(i,e,t){let{onTimerEnded:n=Pd.noop}=e,o;qt(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/wg;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){ge[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var fa=class extends W{constructor(e){super(),j(this,e,kg,yg,U,{onTimerEnded:1},vg)}},Id=fa;function Cg(i){Ie(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 Ed(i){let e,t;return e=new Id({props:{onTimerEnded:i[2]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sg(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A;a=new Td({}),a.$on("click",i[4]);let M=i[3]&&Ed(i);return{c(){e=T("div"),t=B(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=B(),q(a.$$.fragment),s=B(),u=T("div"),f=T("div"),m=T("div"),h=T("div"),w=B(),M&&M.c(),C=B(),v=T("div"),I=T("div"),y=Ne(i[0]),c(e,"class","overlay svelte-kisfwc"),c(r,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(m,"class","thumb svelte-kisfwc"),c(m,"style",g=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(I,"class","title svelte-kisfwc"),c(v,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(N,te){S(N,e,te),S(N,t,te),S(N,n,te),p(n,o),p(o,r),p(o,l),V(a,o,null),p(n,s),p(n,u),p(u,f),p(f,m),p(m,h),p(m,w),M&&M.m(m,null),p(u,C),p(u,v),p(v,I),p(I,y),b=!0,P||(A=pe(u,"click",function(){Li(i[2])&&i[2].apply(this,arguments)}),P=!0)},p(N,[te]){i=N,i[3]?M?(M.p(i,te),te&8&&d(M,1)):(M=Ed(i),M.c(),d(M,1),M.m(m,null)):M&&(fe(),_(M,1,1,()=>{M=null}),de()),(!b||te&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(m,"style",g),(!b||te&1)&&Qe(y,i[0])},i(N){b||(d(a.$$.fragment,N),d(M),b=!0)},o(N){_(a.$$.fragment,N),_(M),b=!1},d(N){N&&(k(e),k(t),k(n)),R(a),M&&M.d(),P=!1,A()}}}function Tg(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,r=s.playNextVideo)},[n,o,r,l,a]}var da=class extends W{constructor(e){super(),j(this,e,Tg,Sg,U,{title:0,thumb:1,playNextVideo:2},Cg)}},Ld=da;var wo=require("@vkontakte/videoplayer-core"),Ad=require("@vkontakte/videoplayer-shared"),Ln=require("@vkontakte/videoplayer-statistics");var ma=(i,e)=>Math.min(+(i+e).toFixed(2),1),pa=(i,e)=>Math.max(+(i-e).toFixed(2),0),Lr=(i,e,t)=>{let n=ma(e,t);e<1&&i.actions.internal.setVolume(n)},Ar=(i,e,t)=>{let n=pa(e,t);e>0&&i.actions.internal.setVolume(n)};var yo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function Ig(i){Ie(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Eg(i){let e,t,n,o,r,l=i[26].default,a=Ae(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=z("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[pe(e,"keyup",i[17]),pe(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Re(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,nt(r)}}}function Lg(i,e,t){var Le,ut;let n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,{$$slots:y={},$$scope:b}=e,{isAds:P}=e,{hideContextMenu:A}=e,{toggleFullscreen:M}=e,{showHotKeyHelpers:N}=e,{showKeyMap:te}=e,{fakePlayButtonHandler:_e}=e,Z=rt(),x=Ht(),se=Z.getLogger().createComponentLog("KeyboardControls component"),L=Z.state.playbackState$;H(i,L,me=>t(31,o=me));let K=Z.ads.playbackState;H(i,K,me=>t(30,n=me));let J=Z.state.positionExact$;H(i,J,me=>t(41,g=me));let Y=Z.state.duration$;H(i,Y,me=>t(40,w=me));let F=Z.state.volume$;H(i,F,me=>t(44,I=me));let G=Z.ui.controls.disabledControls$;H(i,G,me=>t(39,h=me));let X=Z.state.muted$;H(i,X,me=>t(34,a=me));let le=Z.state.currentSubtitle$;H(i,le,me=>t(33,l=me));let qe=Z.state.currentPlaybackRate$;H(i,qe,me=>t(42,C=me));let Xe=Z.state.availablePlaybackRates$;H(i,Xe,me=>t(43,v=me));let Ee=Z.ui.contextMenu.openedByHotKey$,Be=Z.ui.contextMenu.lastActiveElem$,De=Z.ui.contextMenu.visible$,xe=Z.ui.contextMenu.position$,ae=Z.state.isEnded$;H(i,ae,me=>t(36,u=me));let he=Z.ui.overlayContainer$;H(i,he,me=>t(32,r=me));let at=(Le=Z.callbacks)==null?void 0:Le.onAudioDoesNotExistHint,Ce=(ut=Z.callbacks)==null?void 0:ut.onAudioDisabledHint,Ke=Z.state.isAudioAvailable$;H(i,Ke,me=>t(35,s=me));let mt=Z.state.isAudioDisabled,Ye=Z.state.isInteractiveTime$;H(i,Ye,me=>t(38,m=me));let{showInteractiveTimeIndicatorTooltip$:Ge}=Wn();H(i,Ge,me=>t(37,f=me));let Ze=0,et=!0,ce,Pe=()=>ce==null?void 0:ce.focus(),We=me=>(me!==et&&(et=me,Ze=0),Ze+=1,(x.controls.seekStepKeyboard+x.controls.seekStepKeyboard*Ze)/1e3),re=me=>{var be;let tt=me.target,Ct=(be=tt==null?void 0:tt.getAttribute("role"))==null?void 0:be.includes("menuitem"),bt=tt.classList.contains("btn"),Ue=me.code;if(bt&&Ue==="Space")return;let Ot=af.has(Ue);if(Ct&&Ot)return;let Vt=!sf.has(Ue);if(me.ctrlKey&&Vt||me.altKey&&Vt||me.metaKey)return;let St=Ct&&Ue==="Escape";uf.has(Ue)||St||A();let ni=o===wo.PlaybackState.PLAYING||o===wo.PlaybackState.PAUSED,ct=P&&(n==="paused"||n==="playing"),lt=!ct&&!h.has("TIMELINE");if(ni||ct)switch(se({message:`key down, code: ${Ue}`}),Ue){case"KeyJ":case"ArrowLeft":{if(!lt)break;if(me.ctrlKey||me.altKey){let Je=Z.actions.internal.getPrevEpisode();Z.actions.internal.seekToPrevEpisode(Je),Je&&N({type:"EPISODE_PREV",text:Je.text}),me.preventDefault()}else{let Je=me.shiftKey?We(!1):x.controls.seekStepKeyboard/1e3,_t=Math.max(g-Je,0);g>0&&(Z.actions.internal.seekTime(_t,Ln.SeekAction.DOUBLE_TAP),N({type:"BACKWARD_SEEK",text:Je.toString()}),me.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!lt)break;if(me.ctrlKey||me.altKey){let Je=Z.actions.internal.getNextEpisode();Z.actions.internal.seekToNextEpisode(Je),Je&&N({type:"EPISODE_NEXT",text:Je.text}),me.preventDefault()}else{let Je=me.shiftKey?We(!0):x.controls.seekStepKeyboard/1e3,_t=Math.min(g+Je,w);Math.round(g)<Math.round(w)&&(Z.actions.internal.seekTime(_t,Ln.SeekAction.DOUBLE_TAP),N({type:"FORWARD_SEEK",text:Je.toString()}),me.preventDefault())}break}case"ArrowUp":{if(yo({isAudioDisabled:mt,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let Je=I,_t=x.controls.volumeStepKeyboard,Ft=Je<=1;if(Lr(Z,Je,_t),Ft){let yt=Math.round(ma(Je,_t)*100).toString();N({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}me.preventDefault();break}case"ArrowDown":{if(yo({isAudioDisabled:mt,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let Je=I,_t=x.controls.volumeStepKeyboard,Ft=Je>=0;if(Ar(Z,Je,_t),Ft){let yt=Math.round(pa(Je,_t)*100).toString();N({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}me.preventDefault();break}case"Comma":{if(me.shiftKey){Z.actions.internal.decrementPlaybackRate();let Je=v.find(_t=>_t.value===C);N({type:"RATE_DOWN",text:Je==null?void 0:Je.displayValue}),me.preventDefault()}else{if(ct||o!==wo.PlaybackState.PAUSED)break;let Je=Math.max(g-x.controls.seekStepFrame/1e3,0);g>0&&(N({type:"BACKWARD_SEEK"}),Z.actions.internal.clearDelayedBufferingCheckTimeout(),Z.actions.internal.seekTime(Je,Ln.SeekAction.DOUBLE_TAP),me.preventDefault())}break}case"Period":{if(me.shiftKey){Z.actions.internal.incrementPlaybackRate();let Je=v.find(_t=>_t.value===C);N({type:"RATE_UP",text:Je==null?void 0:Je.displayValue}),me.preventDefault()}else{if(ct||o!==wo.PlaybackState.PAUSED)break;let Je=Math.min(g+x.controls.seekStepFrame/1e3,w);g<w&&(N({type:"FORWARD_SEEK"}),Z.actions.internal.clearDelayedBufferingCheckTimeout(),Z.actions.internal.seekTime(Je,Ln.SeekAction.DOUBLE_TAP),me.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&f&&Ge.set(!1),_e)_e();else{Z.actions.internal.togglePlay();let Je="PLAY";o===wo.PlaybackState.PAUSED?Je="PAUSE":u&&(Je="REPLAY"),N({type:Je})}me.preventDefault();break;case"KeyM":{yo({isAudioDisabled:mt,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:at})&&(N({type:a?"VOLUME":"MUTE"}),Z.actions.internal.toggleMuted()),me.preventDefault();break}case"KeyF":M(),me.preventDefault();break;case"KeyC":Z.actions.internal.toggleSubtitle(),l.value!=="off"?N({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):N({type:"SUBTITLES_OFF"}),me.preventDefault();break;case"KeyI":Z.actions.internal.togglePictureInPicture(),me.preventDefault();break;case"Digit1":case"Numpad1":if(me.shiftKey){let Je=od(r);xe.set(Je),Be.set(tt),Ee.set(!0),De.set(!0),me.preventDefault();break}N(),Z.actions.internal.seekToPercent(.1,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit2":case"Numpad2":N(),Z.actions.internal.seekToPercent(.2,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit3":case"Numpad3":N(),Z.actions.internal.seekToPercent(.3,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit4":case"Numpad4":N(),Z.actions.internal.seekToPercent(.4,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit5":case"Numpad5":N(),Z.actions.internal.seekToPercent(.5,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit6":case"Numpad6":N(),Z.actions.internal.seekToPercent(.6,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit7":case"Numpad7":N(),Z.actions.internal.seekToPercent(.7,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit8":case"Numpad8":N(),Z.actions.internal.seekToPercent(.8,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit9":case"Numpad9":N(),Z.actions.internal.seekToPercent(.9,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit0":case"Numpad0":N(),Z.actions.internal.seekToPercent(0,Ln.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Slash":{me.shiftKey&&x.features.hotKeyMapModal&&(te(),me.preventDefault());break}case"ShiftLeft":case"ShiftRight":me.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Ad.checkNever)(Ue);break}},Te=me=>{let tt=me.code;if(me.ctrlKey||me.altKey||me.metaKey)return;let Ct=o===wo.PlaybackState.PLAYING||o===wo.PlaybackState.PAUSED,bt=P&&(n==="paused"||n==="playing");if(Ct||bt)switch(tt){case"ShiftLeft":case"ShiftRight":Ze=0;break}};function pt(me){ge[me?"unshift":"push"](()=>{ce=me,t(0,ce)})}return i.$$set=me=>{"isAds"in me&&t(18,P=me.isAds),"hideContextMenu"in me&&t(19,A=me.hideContextMenu),"toggleFullscreen"in me&&t(20,M=me.toggleFullscreen),"showHotKeyHelpers"in me&&t(21,N=me.showHotKeyHelpers),"showKeyMap"in me&&t(22,te=me.showKeyMap),"fakePlayButtonHandler"in me&&t(23,_e=me.fakePlayButtonHandler),"$$scope"in me&&t(25,b=me.$$scope)},[ce,L,K,J,Y,F,G,X,le,qe,Xe,ae,he,Ke,Ye,Ge,re,Te,P,A,M,N,te,_e,Pe,b,y,pt]}var _a=class extends W{constructor(e){super(),j(this,e,Lg,Eg,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Ig,[-1,-1])}get focus(){return this.$$.ctx[24]}},Md=_a;function Ag(i){Ie(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 Mg(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),n=B(),o=T("div"),r=B(),l=T("div"),c(t,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(l,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",i[0])},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(e,r),p(e,l)},p(a,[s]){s&1&&c(e,"style",a[0])},i:Se,o:Se,d(a){a&&k(e)}}}function Vg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var ha=class extends W{constructor(e){super(),j(this,e,Vg,Mg,U,{style:0},Ag)}},Cl=ha;function Rg(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C=i[2].default,v=Ae(C,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],y={};for(let b=0;b<I.length;b+=1)y=ue(y,I[b]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2422_111980"),c(w,"result","shape"),c(l,"id","a"),c(l,"width","23"),c(l,"height","23"),c(l,"x",".5"),c(l,"y",".5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Ve(v,C,b,b[1],g?Me(C,b[1],P,null):Re(b[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&k(e),v&&v.d(b)}}}function Bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ga=class extends W{constructor(e){super(),j(this,e,Bg,Rg,U,{})}},Vd=ga;var $n=require("@vkontakte/videoplayer-shared");function qg(i){Ie(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{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-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function Dg(i){let e,t,n,o,r,l,a,s,u,f,m,h,w=i[14].default,g=Ae(w,i,i[13],null);return{c(){var C,v,I,y,b,P;e=T("button"),g&&g.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=(C=i[3])!=null?C:null,c(e,"aria-hidden",r=(v=i[5])!=null?v:null),c(e,"aria-label",l=(I=i[6])!=null?I:null),c(e,"aria-keyshortcuts",a=(y=i[7])!=null?y:null),c(e,"aria-expanded",s=(b=i[8])!=null?b:null),c(e,"data-testid",u=(P=i[4])!=null?P:null),c(e,"tabindex",i[9])},m(C,v){S(C,e,v),g&&g.m(e,null),i[16](e),f=!0,m||(h=[pe(e,"pointerdown",st(i[15])),pe(e,"click",st(function(){Li(i[10]===$n.noop?null:i[10])&&(i[10]===$n.noop?null:i[10]).apply(this,arguments)})),pe(e,"focus",Yt(function(){Li(i[11]===$n.noop?null:i[11])&&(i[11]===$n.noop?null:i[11]).apply(this,arguments)})),pe(e,"blur",Yt(function(){Li(i[12]===$n.noop?null:i[12])&&(i[12]===$n.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(C,[v]){var I,y,b,P,A,M;i=C,g&&g.p&&(!f||v&8192)&&Ve(g,w,i,i[13],f?Me(w,i[13],v,null):Re(i[13]),null),(!f||v&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||v&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||v&8&&o!==(o=(I=i[3])!=null?I:null))&&(e.disabled=o),(!f||v&32&&r!==(r=(y=i[5])!=null?y:null))&&c(e,"aria-hidden",r),(!f||v&64&&l!==(l=(b=i[6])!=null?b:null))&&c(e,"aria-label",l),(!f||v&128&&a!==(a=(P=i[7])!=null?P:null))&&c(e,"aria-keyshortcuts",a),(!f||v&256&&s!==(s=(A=i[8])!=null?A:null))&&c(e,"aria-expanded",s),(!f||v&16&&u!==(u=(M=i[4])!=null?M:null))&&c(e,"data-testid",u),(!f||v&512)&&c(e,"tabindex",i[9])},i(C){f||(d(g,C),f=!0)},o(C){_(g,C),f=!1},d(C){C&&k(e),g&&g.d(C),i[16](null),m=!1,nt(h)}}}function Ng(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:w=void 0}=e,{tabIndex:g=0}=e,{click:C=$n.noop}=e,{focus:v=$n.noop}=e,{blur:I=$n.noop}=e;function y(P){Dn.call(this,i,P)}function b(P){ge[P?"unshift":"push"](()=>{m=P,t(0,m)})}return i.$$set=P=>{"className"in P&&t(1,r=P.className),"style"in P&&t(2,l=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,s=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,f=P.ariaLabel),"ref"in P&&t(0,m=P.ref),"ariaKeyShortCut"in P&&t(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,w=P.ariaExpanded),"tabIndex"in P&&t(9,g=P.tabIndex),"click"in P&&t(10,C=P.click),"focus"in P&&t(11,v=P.focus),"blur"in P&&t(12,I=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[m,r,l,a,s,u,f,h,w,g,C,v,I,o,n,y,b]}var ba=class extends W{constructor(e){super(),j(this,e,Ng,Dg,U,{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},qg)}},vt=ba;function Og(i){Ie(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 Rd(i){let e,t,n,o,r,l=i[2]&&Bd(i);return{c(){e=T("div"),t=T("h3"),n=Ne(i[3]),o=B(),l&&l.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Qe(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=Bd(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),de())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&k(e),l&&l.d()}}}function Bd(i){let e,t;return e=new vt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:z("hotkey_map_modal_close_btn_text"),$$slots:{default:[Fg]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fg(i){let e,t;return e=new Vd({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hg(i){let e,t,n,o,r,l,a=i[1]&&Rd(i),s=i[4].default,u=Ae(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=B(),o=T("div"),r=T("div"),u&&u.c(),c(r,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,m){S(f,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(f,[m]){f[1]?a?(a.p(f,m),m&2&&d(a,1)):(a=Rd(f),a.c(),d(a,1),a.m(t,n)):a&&(fe(),_(a,1,1,()=>{a=null}),de()),u&&u.p&&(!l||m&32)&&Ve(u,s,f,f[5],l?Me(s,f[5],m,null):Re(f[5]),null)},i(f){l||(d(a),d(u,f),l=!0)},o(f){_(a),_(u,f),l=!1},d(f){f&&k(e),a&&a.d(),u&&u.d(f)}}}function zg(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var va=class extends W{constructor(e){super(),j(this,e,zg,Hg,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},Og)}},qd=va;var Ug=new Set(["BR"]),ya=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;Ug.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Kg(i){Ie(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 Dd(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function Nd(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function Od(i){let e,t,n=ya(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=B(),r=T("span"),a=Ne(l),s=B(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(r,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){S(u,e,f),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,f){f&1&&n!==(n=ya(u[9])+"")&&(t.innerHTML=n),f&1&&l!==(l=u[10]+"")&&Qe(a,l)},d(u){u&&k(e)}}}function Fd(i){let e,t,n=i[5]+"",o,r,l,a,s=Et(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=Od(Nd(i,s,f));return{c(){e=T("div"),t=T("h5"),o=Ne(n),r=B(),l=T("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=B(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(l,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,m){S(f,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(f,m){if(m&1&&n!==(n=f[5]+"")&&Qe(o,n),m&1){s=Et(f[6]);let h;for(h=0;h<s.length;h+=1){let w=Nd(f,s,h);u[h]?u[h].p(w,m):(u[h]=Od(w),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&k(e),Ai(u,f)}}}function Wg(i){let e,t=Et(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=Fd(Dd(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=Et(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=Dd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Fd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Ai(n,o)}}}function jg(i){let e,t;return e=new qd({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Wg]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Gg(i,e,t){let n,o=rt(),{data:r,show:l}=o.ui.modals.hotKeyMap;return H(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var wa=class extends W{constructor(e){super(),j(this,e,Gg,jg,U,{},Kg)}},Hd=wa;var fs=require("@vkontakte/videoplayer-shared");var Zo=require("@vkontakte/videoplayer-core");var R1=require("@vkontakte/videoplayer-core");var Go={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"},zd={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"};var Qg=i=>{var e,t;return(t=(e=Go[i])!=null?e:Go[zd[i]])!=null?t:void 0},Mr=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),ro=(i,e)=>{var l;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(l=Qg(t))!=null?l:t),n&&t&&o){let a=e.filter(s=>s.label===n&&s.language===t);if(a.length===1)return z("audio_stream_display_language_label",{language:o,label:n});{let s=Mr(i,a);return z("audio_stream_display_language_label_index",{language:o,label:n,index:s})}}if(n){let a=e.filter(s=>s.label===n);if(a.length===1)return n;{let s=Mr(i,a);return z("audio_stream_display_label_index",{label:n,index:s})}}if(t&&o){let a=e.filter(s=>s.language===t);if(a.length===1)return o;{let s=Mr(i,a);return z("audio_stream_display_language_index",{language:o,index:s})}}let r=Mr(i,e);return z("audio_stream_display_unknown",{index:r})};var Qk=require("@vkontakte/videoplayer-shared");function Yg(i){Ie(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 Zg(i){let e,t,n=i[1].default,o=Ae(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(r,l){S(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Re(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function Xg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var ka=class extends W{constructor(e){super(),j(this,e,Xg,Zg,U,{},Yg)}},Ud=ka;var Sl=require("@vkontakte/videoplayer-core");function Jg(i){let e,t,n,o,r=i[2].default,l=Ae(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function xg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ca=class extends W{constructor(e){super(),j(this,e,xg,Jg,U,{})}},Kd=Ca;function $g(i){let e,t,n,o,r=i[2].default,l=Ae(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function e2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sa=class extends W{constructor(e){super(),j(this,e,e2,$g,U,{})}},Wd=Sa;function t2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","currentColor"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function i2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ta=class extends W{constructor(e){super(),j(this,e,i2,t2,U,{})}},jd=Ta;function n2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","currentColor"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function o2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pa=class extends W{constructor(e){super(),j(this,e,o2,n2,U,{})}},Vr=Pa;function l2(i){let e,t,n,o,r=i[2].default,l=Ae(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function r2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ia=class extends W{constructor(e){super(),j(this,e,r2,l2,U,{})}},Rr=Ia;var ko=i=>{switch(i){case Sl.VideoQuality.Q_720P:return jd;case Sl.VideoQuality.Q_1080P:return Vr;case Sl.VideoQuality.Q_1440P:return Rr;case Sl.VideoQuality.Q_2160P:return Kd;case Sl.VideoQuality.Q_4320P:return Wd}};function s2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function a2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ea=class extends W{constructor(e){super(),j(this,e,a2,s2,U,{})}},Gd=Ea;function u2(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),c(n,"class","_full"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function c2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var La=class extends W{constructor(e){super(),j(this,e,c2,u2,U,{})}},Qd=La;function f2(i){Ie(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 d2(i){let e,t,n,o,r=i[1]&&Yd(i);return n=new Qd({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=B(),q(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),O(e,"triple",i[2])},m(l,a){S(l,e,a),r&&r.m(e,null),p(e,t),V(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=Yd(l),r.c(),d(r,1),r.m(e,t)):r&&(fe(),_(r,1,1,()=>{r=null}),de());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&O(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&k(e),r&&r.d(),R(n)}}}function m2(i){let e,t;return e=new Gd({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yd(i){let e,t;return e=new Ud({props:{$$slots:{default:[p2]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function p2(i){let e,t,n;var o=i[1];function r(l,a){return{}}return o&&(e=Mn(o,r(i))),{c(){e&&q(e.$$.fragment),t=dt()},m(l,a){e&&V(e,l,a),S(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){fe();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(e=Mn(o,r(l,a)),q(e.$$.fragment),d(e.$$.fragment,1),V(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&k(t),e&&R(e,l)}}}function _2(i){let e,t,n,o,r=[m2,d2],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function h2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;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=ko(r)),i.$$.dirty&2&&t(2,l=!!n&&[Vr,Rr].includes(n))},[o,n,l,r]}var Aa=class extends W{constructor(e){super(),j(this,e,h2,_2,U,{isMobile:0,currentQuality:3},f2)}},Br=Aa;function g2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function b2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ma=class extends W{constructor(e){super(),j(this,e,b2,g2,U,{})}},qr=Ma;function v2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Va=class extends W{constructor(e){super(),j(this,e,y2,v2,U,{})}},Zd=Va;function w2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function k2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ra=class extends W{constructor(e){super(),j(this,e,k2,w2,U,{})}},Xd=Ra;function C2(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{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 f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function S2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ba=class extends W{constructor(e){super(),j(this,e,S2,C2,U,{})}},Jd=Ba;function T2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function P2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qa=class extends W{constructor(e){super(),j(this,e,P2,T2,U,{})}},xd=qa;function I2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function E2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Da=class extends W{constructor(e){super(),j(this,e,E2,I2,U,{})}},$d=Da;function L2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function A2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Na=class extends W{constructor(e){super(),j(this,e,A2,L2,U,{})}},e1=Na;function M2(i){let e,t;return e=new e1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function V2(i){let e,t;return e=new $d({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function R2(i){let e,t,n,o,r=[V2,M2],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function B2(i,e,t){let n,{direction:o="left"}=e,r,l;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,l=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Oa=class extends W{constructor(e){super(),j(this,e,B2,R2,U,{direction:3})}},Zn=Oa;function q2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function D2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Fa=class extends W{constructor(e){super(),j(this,e,D2,q2,U,{})}},t1=Fa;function N2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function O2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ha=class extends W{constructor(e){super(),j(this,e,O2,N2,U,{})}},Qo=Ha;function F2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function H2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var za=class extends W{constructor(e){super(),j(this,e,H2,F2,U,{})}},Ua=za;function z2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function U2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ka=class extends W{constructor(e){super(),j(this,e,U2,z2,U,{})}},i1=Ka;function K2(i){Ie(i,"svelte-1h807jq","ul.svelte-1h807jq.svelte-1h807jq{margin:0;padding:0}.menu.svelte-1h807jq.svelte-1h807jq{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-1h807jq.svelte-1h807jq{width:100%}.menu-desktop.svelte-1h807jq.svelte-1h807jq{position:absolute;right:0;bottom:0}.menu-mobile.svelte-1h807jq.svelte-1h807jq{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-1h807jq.svelte-1h807jq{display:none}.menu-subList.svelte-1h807jq.svelte-1h807jq{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-1h807jq.svelte-1h807jq{min-width:164px}.menu-subList-traffic-saving.svelte-1h807jq.svelte-1h807jq{min-width:286px}.item.svelte-1h807jq.svelte-1h807jq{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:0 14px}.item-quality.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-traffic-saving.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{flex-direction:row-reverse}.item-helper-text.svelte-1h807jq.svelte-1h807jq{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-1h807jq span.svelte-1h807jq{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:7px 14px}.item-helper-text.item-mobile.svelte-1h807jq span.svelte-1h807jq{text-align:start}.submenu-value.svelte-1h807jq.svelte-1h807jq{overflow:hidden;;;text-overflow:ellipsis}.submenu-value-mobile.svelte-1h807jq.svelte-1h807jq{flex-grow:1}.item.svelte-1h807jq.svelte-1h807jq:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-1h807jq.svelte-1h807jq:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-1h807jq.svelte-1h807jq:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-1h807jq.svelte-1h807jq:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-1h807jq.svelte-1h807jq{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-1h807jq.svelte-1h807jq{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-1h807jq.svelte-1h807jq{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}.menu-valueIcon.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-1h807jq svg,.menu-valueIcon-list.svelte-1h807jq svg{color:var(--blue-light)}.menu-divider.svelte-1h807jq.svelte-1h807jq{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-1h807jq.svelte-1h807jq{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex}.itemIcon.svelte-1h807jq.svelte-1h807jq{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar{width:8px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-1h807jq.svelte-1h807jq{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-1h807jq.svelte-1h807jq{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1h807jq.svelte-1h807jq:before,.close.svelte-1h807jq.svelte-1h807jq:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1h807jq.svelte-1h807jq:before{transform:rotate(45deg)}.close.svelte-1h807jq.svelte-1h807jq:after{transform:rotate(-45deg)}")}function n1(i,e,t){let n=i.slice();return n[165]=e[t],n}function o1(i,e,t){let n=i.slice();return n[168]=e[t],n}function l1(i,e,t){let n=i.slice();return n[171]=e[t],n}function r1(i,e,t){let n=i.slice();return n[174]=e[t],n}function s1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g=i[40]&&a1(i),C=i[30]&&u1(i),v=i[29]&&f1(i),I=i[28]&&d1(i),y=i[27]&&m1(i),b=i[26]&&p1(i),P=i[25]&&_1(i),A=i[40]&&h1(i);return{c(){e=T("div"),g&&g.c(),t=B(),n=T("ul"),C&&C.c(),o=B(),v&&v.c(),r=B(),I&&I.c(),l=B(),y&&y.c(),a=B(),b&&b.c(),s=B(),P&&P.c(),u=B(),A&&A.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=i[85]()),O(n,"items-mobile",i[40]),c(e,"class","menu svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40]),O(e,"hidden",!i[13])},m(M,N){S(M,e,N),g&&g.m(e,null),p(e,t),p(e,n),C&&C.m(n,null),p(n,o),v&&v.m(n,null),p(n,r),I&&I.m(n,null),p(n,l),y&&y.m(n,null),p(n,a),b&&b.m(n,null),p(n,s),P&&P.m(n,null),p(n,u),A&&A.m(n,null),i[131](n),m=!0,h||(w=[pe(e,"keydown",i[91]),pe(e,"mouseenter",i[83]),pe(e,"mouseleave",i[84])],h=!0)},p(M,N){M[40]?g?g.p(M,N):(g=a1(M),g.c(),g.m(e,t)):g&&(g.d(1),g=null),M[30]?C?(C.p(M,N),N[0]&1073741824&&d(C,1)):(C=u1(M),C.c(),d(C,1),C.m(n,o)):C&&(fe(),_(C,1,1,()=>{C=null}),de()),M[29]?v?(v.p(M,N),N[0]&536870912&&d(v,1)):(v=f1(M),v.c(),d(v,1),v.m(n,r)):v&&(fe(),_(v,1,1,()=>{v=null}),de()),M[28]?I?(I.p(M,N),N[0]&268435456&&d(I,1)):(I=d1(M),I.c(),d(I,1),I.m(n,l)):I&&(fe(),_(I,1,1,()=>{I=null}),de()),M[27]?y?(y.p(M,N),N[0]&134217728&&d(y,1)):(y=m1(M),y.c(),d(y,1),y.m(n,a)):y&&(fe(),_(y,1,1,()=>{y=null}),de()),M[26]?b?(b.p(M,N),N[0]&67108864&&d(b,1)):(b=p1(M),b.c(),d(b,1),b.m(n,s)):b&&(fe(),_(b,1,1,()=>{b=null}),de()),M[25]?P?(P.p(M,N),N[0]&33554432&&d(P,1)):(P=_1(M),P.c(),d(P,1),P.m(n,u)):P&&(fe(),_(P,1,1,()=>{P=null}),de()),M[40]?A?(A.p(M,N),N[1]&512&&d(A,1)):(A=h1(M),A.c(),d(A,1),A.m(n,null)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),(!m||N[1]&512)&&O(n,"items-mobile",M[40]),(!m||N[1]&512)&&O(e,"menu-desktop",!M[40]),(!m||N[1]&512)&&O(e,"menu-mobile",M[40]),(!m||N[0]&8192)&&O(e,"hidden",!M[13])},i(M){m||(d(C),d(v),d(I),d(y),d(b),d(P),d(A),m=!0)},o(M){_(C),_(v),_(I),_(y),_(b),_(P),_(A),m=!1},d(M){M&&k(e),g&&g.d(),C&&C.d(),v&&v.d(),I&&I.d(),y&&y.d(),b&&b.d(),P&&P.d(),A&&A.d(),i[131](null),h=!1,nt(w)}}}function a1(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${z("submenu_settings")}`,n=B(),o=T("div"),r=B(),l=T("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),O(e,"item-mobile",i[40]),c(l,"class","menu-divider svelte-1h807jq")},m(u,f){S(u,e,f),p(e,t),p(e,n),p(e,o),S(u,r,f),S(u,l,f),a||(s=pe(o,"click",st(i[66])),a=!0)},p(u,f){f[1]&512&&O(e,"item-mobile",u[40])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function u1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w;n=new Br({});let g=i[39]&&!i[40]&&c1(i);return{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_quality")}`,l=B(),a=T("div"),s=Ne(i[19]),u=B(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=z("aria_label_menu_quality",{actual:i[32]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(C,v){S(C,e,v),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),g&&g.m(a,null),i[126](e),m=!0,h||(w=[pe(e,"click",st(i[67])),pe(e,"keydown",i[92])],h=!0)},p(C,v){(!m||v[0]&524288)&&Qe(s,C[19]),C[39]&&!C[40]?g?(g.p(C,v),v[1]&768&&d(g,1)):(g=c1(C),g.c(),d(g,1),g.m(a,null)):g&&(fe(),_(g,1,1,()=>{g=null}),de()),(!m||v[1]&2&&f!==(f=z("aria_label_menu_quality",{actual:C[32]})))&&c(e,"aria-label",f),(!m||v[1]&512)&&O(e,"item-mobile",C[40])},i(C){m||(d(n.$$.fragment,C),d(g),m=!0)},o(C){_(n.$$.fragment,C),_(g),m=!1},d(C){C&&k(e),R(n),g&&g.d(),i[126](null),h=!1,nt(w)}}}function c1(i){let e,t,n;var o=i[39];function r(l,a){return{}}return o&&(t=Mn(o,r(i))),{c(){e=T("div"),t&&q(t.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(l,a){S(l,e,a),t&&V(t,e,null),n=!0},p(l,a){if(a[1]&256&&o!==(o=l[39])){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(t=Mn(o,r(l,a)),q(t.$$.fragment),d(t.$$.fragment,1),V(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function f1(i){let e,t,n,o,r,l,a,s=ro(i[41],i[9])+"",u,f,m,h,w;return n=new xd({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_audio_languages")}`,l=B(),a=T("div"),u=Ne(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=z("aria_label_menu_audio_languages",{actual:ro(i[41],i[9])})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,C){S(g,e,C),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[127](e),m=!0,h||(w=[pe(e,"click",st(i[68])),pe(e,"keydown",i[93])],h=!0)},p(g,C){(!m||C[0]&512|C[1]&1024)&&s!==(s=ro(g[41],g[9])+"")&&Qe(u,s),(!m||C[0]&512|C[1]&1024&&f!==(f=z("aria_label_menu_audio_languages",{actual:ro(g[41],g[9])})))&&c(e,"aria-label",f),(!m||C[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&k(e),R(n),i[127](null),h=!1,nt(w)}}}function d1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w;return n=new Jd({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_playback_rate")}`,l=B(),a=T("div"),s=Ne(i[11]),u=Ne("x"),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=z("aria_label_menu_rate",{actual:i[33]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,C){S(g,e,C),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[128](e),m=!0,h||(w=[pe(e,"click",st(Yt(i[73]))),pe(e,"keydown",i[98])],h=!0)},p(g,C){(!m||C[0]&2048)&&Qe(s,g[11]),(!m||C[1]&4&&f!==(f=z("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!m||C[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&k(e),R(n),i[128](null),h=!1,nt(w)}}}function m1(i){let e,t,n,o,r,l,a,s=i[42].displayValue+"",u,f,m,h,w;return n=new qr({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("subtitles_caption")}`,l=B(),a=T("div"),u=Ne(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=z("aria_label_menu_subtitle",{actual:i[42].displayValue})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,C){S(g,e,C),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[129](e),m=!0,h||(w=[pe(e,"click",st(i[75])),pe(e,"keydown",i[101])],h=!0)},p(g,C){(!m||C[1]&2048)&&s!==(s=g[42].displayValue+"")&&Qe(u,s),(!m||C[1]&2048&&f!==(f=z("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!m||C[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&k(e),R(n),i[129](null),h=!1,nt(w)}}}function p1(i){let e,t,n,o,r,l,a,s,u,f,m,h;return n=new Xd({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_traffic_saving")}`,l=B(),a=T("div"),s=Ne(i[31]),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=z("aria_label_menu_traffic_saving",{actual:i[31]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(w,g){S(w,e,g),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[130](e),f=!0,m||(h=[pe(e,"click",st(i[69])),pe(e,"keydown",i[104])],m=!0)},p(w,g){(!f||g[1]&1)&&Qe(s,w[31]),(!f||g[1]&1&&u!==(u=z("aria_label_menu_traffic_saving",{actual:w[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&O(e,"item-mobile",w[40])},i(w){f||(d(n.$$.fragment,w),f=!0)},o(w){_(n.$$.fragment,w),f=!1},d(w){w&&k(e),R(n),i[130](null),m=!1,nt(h)}}}function _1(i){let e,t,n,o,r,l,a,s,u;return n=new Zd({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=z("aria_label_menu_download")),O(e,"item-mobile",i[40])},m(f,m){S(f,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",st(i[78])),pe(e,"keydown",i[107])],s=!0)},p(f,m){(!a||m[1]&512)&&O(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),R(n),s=!1,nt(u)}}}function h1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b=i[44].showSupport&&W2(i);o=new Ua({});let P=i[44].features.saveTraceInfoToFile&&j2(i);return h=new i1({}),{c(){b&&b.c(),e=B(),t=T("li"),n=T("div"),q(o.$$.fragment),r=B(),l=T("div"),l.textContent=`${z("menu_copy_debug")}`,s=B(),P&&P.c(),u=B(),f=T("li"),m=T("div"),q(h.$$.fragment),w=B(),g=T("div"),g.textContent=`${z("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(t,"class","item item-mobile svelte-1h807jq"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=z("menu_copy_debug")),c(m,"class","menu-icon-wrapper svelte-1h807jq"),c(g,"class","menu-title svelte-1h807jq"),c(f,"class","item item-mobile svelte-1h807jq"),c(f,"role","menuitem"),c(f,"tabindex","0"),c(f,"aria-label",C=i[43]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"))},m(A,M){b&&b.m(A,M),S(A,e,M),S(A,t,M),p(t,n),V(o,n,null),p(t,r),p(t,l),S(A,s,M),P&&P.m(A,M),S(A,u,M),S(A,f,M),p(f,m),V(h,m,null),p(f,w),p(f,g),v=!0,I||(y=[pe(t,"click",st(i[80])),pe(t,"keydown",i[109]),pe(f,"click",st(i[81])),pe(f,"keydown",i[110])],I=!0)},p(A,M){A[44].showSupport&&b.p(A,M),A[44].features.saveTraceInfoToFile&&P.p(A,M),(!v||M[1]&4096&&C!==(C=A[43]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable")))&&c(f,"aria-label",C)},i(A){v||(d(b),d(o.$$.fragment,A),d(P),d(h.$$.fragment,A),v=!0)},o(A){_(b),_(o.$$.fragment,A),_(P),_(h.$$.fragment,A),v=!1},d(A){A&&(k(e),k(t),k(s),k(u),k(f)),b&&b.d(A),R(o),P&&P.d(A),R(h),I=!1,nt(y)}}}function W2(i){let e,t,n,o,r,l,a,s,u;return n=new t1({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`)},m(f,m){S(f,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",st(i[79])),pe(e,"keydown",i[108])],s=!0)},p:Se,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),R(n),s=!1,nt(u)}}}function j2(i){let e,t,n,o,r,l,a,s,u;return n=new Ua({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_save_debug")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=z("menu_save_debug"))},m(f,m){S(f,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",st(i[82])),pe(e,"keydown",i[111])],s=!0)},p:Se,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),R(n),s=!1,nt(u)}}}function g1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g;n=new Zn({props:{direction:"left"}});let C=Et(i[10]),v=[];for(let y=0;y<C.length;y+=1)v[y]=y1(r1(i,C,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("submenu_quality")}`,a=B(),s=T("div"),u=B(),f=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",m=i[85]((y=i[20])==null?void 0:y.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[132](t),p(e,a),p(e,s),p(e,u),p(e,f);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(f,null);i[135](f),h=!0,w||(g=[pe(t,"click",st(i[77])),pe(f,"keydown",i[94])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&1024|b[1]&512|b[2]&256|b[3]&4){C=Et(y[10]);let A;for(A=0;A<C.length;A+=1){let M=r1(y,C,A);v[A]?(v[A].p(M,b),d(v[A],1)):(v[A]=y1(M),v[A].c(),d(v[A],1),v[A].m(f,null))}for(fe(),A=C.length;A<v.length;A+=1)I(A);de()}(!h||b[0]&1048576&&m!==(m=y[85]((P=y[20])==null?void 0:P.clientHeight,!0)))&&c(f,"style",m),(!h||b[1]&512)&&O(f,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<C.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&k(e),R(n),i[132](null),Ai(v,y),i[135](null),w=!1,nt(g)}}}function b1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function v1(i){let e,t,n;var o=ko(i[174].value);function r(l,a){return{}}return o&&(t=Mn(o,r(i))),{c(){e=T("div"),t&&q(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(l,a){S(l,e,a),t&&V(t,e,null),n=!0},p(l,a){if(a[0]&1024&&o!==(o=ko(l[174].value))){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(t=Mn(o,r(l,a)),q(t.$$.fragment),d(t.$$.fragment,1),V(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function y1(i){let e,t,n,o=i[174].displayValue+"",r,l,a=!i[40]&&ko(i[174].value),s,u,f,m,h,w,g=i[174].selected&&b1(i),C=a&&v1(i);function v(){return i[133](i[174])}function I(...y){return i[134](i[174],...y)}return{c(){e=T("li"),g&&g.c(),t=B(),n=T("div"),r=Ne(o),l=B(),C&&C.c(),s=B(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=i[174].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[174].displayValue),O(e,"item-mobile",i[40])},m(y,b){S(y,e,b),g&&g.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),C&&C.m(e,null),p(e,s),m=!0,h||(w=[pe(e,"click",st(v)),pe(e,"keydown",I)],h=!0)},p(y,b){i=y,i[174].selected?g?b[0]&1024&&d(g,1):(g=b1(i),g.c(),d(g,1),g.m(e,t)):g&&(fe(),_(g,1,1,()=>{g=null}),de()),(!m||b[0]&1024)&&o!==(o=i[174].displayValue+"")&&Qe(r,o),(!m||b[1]&512)&&O(n,"submenu-value-mobile",i[40]),b[0]&1024|b[1]&512&&(a=!i[40]&&ko(i[174].value)),a?C?(C.p(i,b),b[0]&1024|b[1]&512&&d(C,1)):(C=v1(i),C.c(),d(C,1),C.m(e,s)):C&&(fe(),_(C,1,1,()=>{C=null}),de()),(!m||b[0]&1024&&u!==(u=i[174].value))&&c(e,"data-value",u),(!m||b[0]&1024&&f!==(f=i[174].displayValue))&&c(e,"aria-label",f),(!m||b[1]&512)&&O(e,"item-mobile",i[40])},i(y){m||(d(g),d(C),m=!0)},o(y){_(g),_(C),m=!1},d(y){y&&k(e),g&&g.d(),C&&C.d(),h=!1,nt(w)}}}function w1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g;n=new Zn({props:{direction:"left"}});let C=Et(i[9]),v=[];for(let y=0;y<C.length;y+=1)v[y]=C1(l1(i,C,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("submenu_audio_languages")}`,a=B(),s=T("div"),u=B(),f=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",m=i[85]((y=i[21])==null?void 0:y.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[136](t),p(e,a),p(e,s),p(e,u),p(e,f);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(f,null);i[139](f),h=!0,w||(g=[pe(t,"click",st(i[77])),pe(f,"keydown",i[96])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&512|b[1]&1536|b[2]&512|b[3]&16){C=Et(y[9]);let A;for(A=0;A<C.length;A+=1){let M=l1(y,C,A);v[A]?(v[A].p(M,b),d(v[A],1)):(v[A]=C1(M),v[A].c(),d(v[A],1),v[A].m(f,null))}for(fe(),A=C.length;A<v.length;A+=1)I(A);de()}(!h||b[0]&2097152&&m!==(m=y[85]((P=y[21])==null?void 0:P.clientHeight,!0)))&&c(f,"style",m),(!h||b[1]&512)&&O(f,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<C.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&k(e),R(n),i[136](null),Ai(v,y),i[139](null),w=!1,nt(g)}}}function k1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function C1(i){var C;let e,t,n,o=ro(i[171],i[9])+"",r,l,a,s,u,f,m,h=i[171].id===((C=i[41])==null?void 0:C.id)&&k1(i);function w(){return i[137](i[171])}function g(...v){return i[138](i[171],...v)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=Ne(o),l=B(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[171].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=ro(i[171],i[9])),O(e,"item-mobile",i[40])},m(v,I){S(v,e,I),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,f||(m=[pe(e,"click",st(w)),pe(e,"keydown",g)],f=!0)},p(v,I){var y;i=v,i[171].id===((y=i[41])==null?void 0:y.id)?h?I[0]&512|I[1]&1024&&d(h,1):(h=k1(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),de()),(!u||I[0]&512)&&o!==(o=ro(i[171],i[9])+"")&&Qe(r,o),(!u||I[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||I[0]&512&&a!==(a=i[171].id))&&c(e,"data-value",a),(!u||I[0]&512&&s!==(s=ro(i[171],i[9])))&&c(e,"aria-label",s),(!u||I[1]&512)&&O(e,"item-mobile",i[40])},i(v){u||(d(h),u=!0)},o(v){_(h),u=!1},d(v){v&&k(e),h&&h.d(),f=!1,nt(m)}}}function S1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g;n=new Zn({props:{direction:"left"}});let C=Et(i[8]),v=[];for(let y=0;y<C.length;y+=1)v[y]=P1(o1(i,C,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("submenu_playback_rate")}`,a=B(),s=T("div"),u=B(),f=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",m=i[85]((y=i[22])==null?void 0:y.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[140](t),p(e,a),p(e,s),p(e,u),p(e,f);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(f,null);i[143](f),h=!0,w||(g=[pe(t,"click",st(i[77])),pe(f,"keydown",i[99])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&256|b[1]&512|b[2]&4096|b[3]&128){C=Et(y[8]);let A;for(A=0;A<C.length;A+=1){let M=o1(y,C,A);v[A]?(v[A].p(M,b),d(v[A],1)):(v[A]=P1(M),v[A].c(),d(v[A],1),v[A].m(f,null))}for(fe(),A=C.length;A<v.length;A+=1)I(A);de()}(!h||b[0]&4194304&&m!==(m=y[85]((P=y[22])==null?void 0:P.clientHeight,!0)))&&c(f,"style",m),(!h||b[1]&512)&&O(f,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<C.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&k(e),R(n),i[140](null),Ai(v,y),i[143](null),w=!1,nt(g)}}}function T1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function P1(i){let e,t,n,o=i[168].displayValue+"",r,l,a,s,u,f,m,h=i[168].selected&&T1(i);function w(){return i[141](i[168])}function g(...C){return i[142](i[168],...C)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=Ne(o),l=B(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[168].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[168].displayValue),O(e,"item-mobile",i[40])},m(C,v){S(C,e,v),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,f||(m=[pe(e,"click",st(w)),pe(e,"keydown",g)],f=!0)},p(C,v){i=C,i[168].selected?h?v[0]&256&&d(h,1):(h=T1(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),de()),(!u||v[0]&256)&&o!==(o=i[168].displayValue+"")&&Qe(r,o),(!u||v[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||v[0]&256&&a!==(a=i[168].value))&&c(e,"data-value",a),(!u||v[0]&256&&s!==(s=i[168].displayValue))&&c(e,"aria-label",s),(!u||v[1]&512)&&O(e,"item-mobile",i[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),f=!1,nt(m)}}}function I1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,L;n=new Zn({props:{direction:"left"}});let K=!i[6]&&E1(i),J=i[6]&&L1(i);return{c(){var Y;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("submenu_traffic_saving")}`,a=B(),s=T("div"),u=B(),f=T("div"),m=T("ul"),h=T("li"),K&&K.c(),w=B(),g=T("div"),g.textContent=`${z("traffic_saving_disable")}`,v=B(),I=T("li"),J&&J.c(),y=B(),b=T("div"),b.textContent=`${z("traffic_saving_enable")}`,A=B(),M=T("div"),N=B(),te=T("div"),_e=T("span"),_e.textContent=`${z("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),O(g,"submenu-value-mobile",i[40]),c(h,"class","item item-traffic-saving svelte-1h807jq"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",C=z("aria_label_submenu_traffic_saving_off")),O(h,"item-mobile",i[40]),c(b,"class","submenu-value svelte-1h807jq"),O(b,"submenu-value-mobile",i[40]),c(I,"class","item item-traffic-saving svelte-1h807jq"),c(I,"role","menuitem"),c(I,"tabindex","0"),c(I,"aria-label",P=`${z("aria_label_submenu_traffic_saving_on")}. ${z("traffic_saving_helper_text")}`),O(I,"item-mobile",i[40]),c(m,"class","items svelte-1h807jq"),c(m,"role","menu"),O(m,"items-mobile",i[40]),c(M,"class","menu-divider svelte-1h807jq"),c(_e,"class","svelte-1h807jq"),c(te,"class","item item-helper-text svelte-1h807jq"),O(te,"item-mobile",i[40]),c(f,"style",Z=i[85]((Y=i[23])==null?void 0:Y.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(Y,F){S(Y,e,F),p(e,t),V(n,t,null),p(t,o),p(t,r),i[144](t),p(e,a),p(e,s),p(e,u),p(e,f),p(f,m),p(m,h),K&&K.m(h,null),p(h,w),p(h,g),p(m,v),p(m,I),J&&J.m(I,null),p(I,y),p(I,b),i[149](m),p(f,A),p(f,M),p(f,N),p(f,te),p(te,_e),x=!0,se||(L=[pe(t,"click",st(i[77])),pe(h,"click",st(i[145])),pe(h,"keydown",i[146]),pe(I,"click",st(i[147])),pe(I,"keydown",i[148]),pe(m,"keydown",i[105])],se=!0)},p(Y,F){var G;(!x||F[1]&512)&&O(t,"item-mobile",Y[40]),Y[6]?K&&(fe(),_(K,1,1,()=>{K=null}),de()):K?F[0]&64&&d(K,1):(K=E1(Y),K.c(),d(K,1),K.m(h,w)),(!x||F[1]&512)&&O(g,"submenu-value-mobile",Y[40]),(!x||F[1]&512)&&O(h,"item-mobile",Y[40]),Y[6]?J?F[0]&64&&d(J,1):(J=L1(Y),J.c(),d(J,1),J.m(I,y)):J&&(fe(),_(J,1,1,()=>{J=null}),de()),(!x||F[1]&512)&&O(b,"submenu-value-mobile",Y[40]),(!x||F[1]&512)&&O(I,"item-mobile",Y[40]),(!x||F[1]&512)&&O(m,"items-mobile",Y[40]),(!x||F[1]&512)&&O(te,"item-mobile",Y[40]),(!x||F[0]&8388608&&Z!==(Z=Y[85]((G=Y[23])==null?void 0:G.clientHeight,!0)))&&c(f,"style",Z),(!x||F[1]&512)&&O(e,"menu-desktop",!Y[40]),(!x||F[1]&512)&&O(e,"menu-mobile",Y[40])},i(Y){x||(d(n.$$.fragment,Y),d(K),d(J),x=!0)},o(Y){_(n.$$.fragment,Y),_(K),_(J),x=!1},d(Y){Y&&k(e),R(n),i[144](null),K&&K.d(),J&&J.d(),i[149](null),se=!1,nt(L)}}}function E1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function L1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function A1(i){let e,t,n,o,r,l,a,s,u,f,m,h;n=new Zn({props:{direction:"left"}});let w=Et(i[7]),g=[];for(let v=0;v<w.length;v+=1)g[v]=V1(n1(i,w,v));let C=v=>_(g[v],1,1,()=>{g[v]=null});return{c(){var v;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("subtitles_caption")}`,a=B(),s=T("ul");for(let I=0;I<g.length;I+=1)g[I].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=i[85]((v=i[24])==null?void 0:v.clientHeight,!0)),O(s,"items-mobile",i[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(v,I){S(v,e,I),p(e,t),V(n,t,null),p(t,o),p(t,r),i[150](t),p(e,a),p(e,s);for(let y=0;y<g.length;y+=1)g[y]&&g[y].m(s,null);i[153](s),f=!0,m||(h=[pe(t,"click",st(i[77])),pe(s,"keydown",i[102])],m=!0)},p(v,I){var y;if((!f||I[1]&512)&&O(t,"item-mobile",v[40]),I[0]&128|I[1]&512|I[2]&16384|I[3]&1024){w=Et(v[7]);let b;for(b=0;b<w.length;b+=1){let P=n1(v,w,b);g[b]?(g[b].p(P,I),d(g[b],1)):(g[b]=V1(P),g[b].c(),d(g[b],1),g[b].m(s,null))}for(fe(),b=w.length;b<g.length;b+=1)C(b);de()}(!f||I[0]&16777216&&u!==(u=v[85]((y=v[24])==null?void 0:y.clientHeight,!0)))&&c(s,"style",u),(!f||I[1]&512)&&O(s,"items-mobile",v[40]),(!f||I[1]&512)&&O(e,"menu-desktop",!v[40]),(!f||I[1]&512)&&O(e,"menu-mobile",v[40])},i(v){if(!f){d(n.$$.fragment,v);for(let I=0;I<w.length;I+=1)d(g[I]);f=!0}},o(v){_(n.$$.fragment,v),g=g.filter(Boolean);for(let I=0;I<g.length;I+=1)_(g[I]);f=!1},d(v){v&&k(e),R(n),i[150](null),Ai(g,v),i[153](null),m=!1,nt(h)}}}function M1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function V1(i){let e,t,n,o=i[165].displayValue+"",r,l,a,s,u,f,m,h=i[165].selected&&M1(i);function w(){return i[151](i[165])}function g(...C){return i[152](i[165],...C)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=Ne(o),l=B(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[165].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[165].displayValue),O(e,"item-mobile",i[40])},m(C,v){S(C,e,v),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,f||(m=[pe(e,"click",st(w)),pe(e,"keydown",g)],f=!0)},p(C,v){i=C,i[165].selected?h?v[0]&128&&d(h,1):(h=M1(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),de()),(!u||v[0]&128)&&o!==(o=i[165].displayValue+"")&&Qe(r,o),(!u||v[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||v[0]&128&&a!==(a=i[165].value))&&c(e,"data-value",a),(!u||v[0]&128&&s!==(s=i[165].displayValue))&&c(e,"aria-label",s),(!u||v[1]&512)&&O(e,"item-mobile",i[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),f=!1,nt(m)}}}function G2(i){let e,t,n,o,r,l,a,s=i[12]&&s1(i),u=i[14]&&g1(i),f=i[15]&&w1(i),m=i[16]&&S1(i),h=i[18]&&I1(i),w=i[17]&&A1(i);return{c(){e=T("div"),s&&s.c(),t=B(),u&&u.c(),n=B(),f&&f.c(),o=B(),m&&m.c(),r=B(),h&&h.c(),l=B(),w&&w.c(),c(e,"class","svelte-1h807jq"),O(e,"hidden",!i[12]),O(e,"container-mobile",i[40])},m(g,C){S(g,e,C),s&&s.m(e,null),p(e,t),u&&u.m(e,null),p(e,n),f&&f.m(e,null),p(e,o),m&&m.m(e,null),p(e,r),h&&h.m(e,null),p(e,l),w&&w.m(e,null),a=!0},p(g,C){g[12]?s?(s.p(g,C),C[0]&4096&&d(s,1)):(s=s1(g),s.c(),d(s,1),s.m(e,t)):s&&(fe(),_(s,1,1,()=>{s=null}),de()),g[14]?u?(u.p(g,C),C[0]&16384&&d(u,1)):(u=g1(g),u.c(),d(u,1),u.m(e,n)):u&&(fe(),_(u,1,1,()=>{u=null}),de()),g[15]?f?(f.p(g,C),C[0]&32768&&d(f,1)):(f=w1(g),f.c(),d(f,1),f.m(e,o)):f&&(fe(),_(f,1,1,()=>{f=null}),de()),g[16]?m?(m.p(g,C),C[0]&65536&&d(m,1)):(m=S1(g),m.c(),d(m,1),m.m(e,r)):m&&(fe(),_(m,1,1,()=>{m=null}),de()),g[18]?h?(h.p(g,C),C[0]&262144&&d(h,1)):(h=I1(g),h.c(),d(h,1),h.m(e,l)):h&&(fe(),_(h,1,1,()=>{h=null}),de()),g[17]?w?(w.p(g,C),C[0]&131072&&d(w,1)):(w=A1(g),w.c(),d(w,1),w.m(e,null)):w&&(fe(),_(w,1,1,()=>{w=null}),de()),(!a||C[0]&4096)&&O(e,"hidden",!g[12]),(!a||C[1]&512)&&O(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(m),d(h),d(w),a=!0)},o(g){_(s),_(u),_(f),_(m),_(h),_(w),a=!1},d(g){g&&k(e),s&&s.d(),u&&u.d(),f&&f.d(),m&&m.d(),h&&h.d(),w&&w.d()}}}var Q2=18;function Y2(i,e,t){let n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,L,{ref:K=void 0}=e,{supportLink:J}=e,{playerControlsHeight:Y=0}=e,{returnFocus:F}=e,G=rt(),X=Ht(),le=G.state.audioStream$;H(i,le,ie=>t(41,g=ie));let qe=G.state.availableAudioStreams$;H(i,qe,ie=>t(9,C=ie));let Xe=G.state.currentQuality$;H(i,Xe,ie=>t(120,y=ie));let Ee=G.state.availableQualities$;H(i,Ee,ie=>t(10,v=ie));let Be=G.state.autoQualityLimitingAvailable$;H(i,Be,ie=>t(124,M=ie));let De=G.state.isAutoQualityEnabled$;H(i,De,ie=>t(121,b=ie));let xe=G.state.currentPlaybackRate$;H(i,xe,ie=>t(11,I=ie));let ae=G.state.availablePlaybackRates$;H(i,ae,ie=>t(8,m=ie));let he=G.state.currentSubtitle$;H(i,he,ie=>t(42,se=ie));let at=G.state.availableSubtitlesList$;H(i,at,ie=>t(7,u=ie));let Ce=G.state.canDownload,Ke=G.state.hasMpegSources$;H(i,Ke,ie=>t(125,N=ie));let mt=G.ui.settingsMenuVisible;H(i,mt,ie=>t(12,x=ie));let Ye=G.ui.settingsMenuOpenedByKeyboard;H(i,Ye,ie=>t(155,o=ie));let Ge=G.ui.isMobile;H(i,Ge,ie=>t(40,r=ie));let Ze=G.ui.mobileNotReportControlHidden$;H(i,Ze,ie=>t(122,P=ie));let et=G.state.canChangePlaybackSpeed$;H(i,et,ie=>t(123,A=ie));let ce=G.ui.isFullscreen;H(i,ce,ie=>t(158,Z=ie));let Pe=G.state.trafficSavingEnabled$;H(i,Pe,ie=>t(6,a=ie));let We=G.ui.playerSize;H(i,We,ie=>t(157,_e=ie));let re=G.ui.debugPanelVisible;H(i,re,ie=>t(43,L=ie));let Te=G.ui.playerSize;H(i,Te,ie=>t(156,te=ie));let pt=G.state.isInteractiveTime$,Le=G.actions.internal.downloadVideo,ut=G.actions.internal.closeSettingsMenu,me=!0,tt=!1,Ct=!1,bt=!1,Ue=!1,Ot=!1,Vt=!1;function St(){o||F==null||F(),ut(),Vt=!1}function ni(){t(13,me=!1),t(14,tt=!0)}function ct(){t(13,me=!1),t(15,Ct=!0)}function lt(){t(13,me=!1),t(18,Ot=!0)}function be(ie){G.actions.internal.setQuality(ie),St()}function Je(ie){G.actions.internal.setAudioStream(ie),St()}function _t(ie){G.actions.internal.setTrafficSavingEnabled(ie),St()}function Ft(){t(13,me=!1),t(16,bt=!0)}function yt(ie){G.actions.internal.setPlaybackRate(ie),St()}function Xt(){t(13,me=!1),t(17,Ue=!0)}function mi(ie){G.actions.internal.setSubtitle(ie),St()}function Mt(){t(13,me=!0),t(14,tt=!1),t(15,Ct=!1),t(16,bt=!1),t(17,Ue=!1),t(18,Ot=!1)}function zi(){Le(),St()}function an(){window.open(J,"_blank"),St(),G.actions.internal.pause()}function oi(){_l(G.actions.internal.getDebugTextData()),St()}function Vi(){re.set(!0),St()}let un=()=>{let ie=G.actions.internal.getTraceTextData(),ft=new Blob([...ie],{type:"application/json"}),Gt=window.URL.createObjectURL(ft);Oo(Gt,"vk_player_trace_info","json"),St()};function Ui(){Vt=!0}function cn(){Vt=!1}function Ri(ie,ft,Gt){if(!ie)return"...";let qn=ft.find(hn=>hn.value===ie),Un=qn?qn.displayValue:ie;return Gt?ie===R1.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:Un}):Un}let Bi,pi,_i,yi,wi,Jt;function zt(ie=0,ft=!1){return r&&Z&&ft?`max-height: ${Math.round(_e.height*.6)}px`:r?"":`max-height: ${te.height-Q2-ie-Y}px; overflow: auto;`}let Ki,Wt,ki,qi,Wi,li,wt,ji,Di,Pt,Gi,Qi,xt,Ci=Fe(!1);H(i,Ci,ie=>t(119,w=ie));let hi=Fe(!1);H(i,hi,ie=>t(118,h=ie));let Si,$t,jt=Fe(!1);H(i,jt,ie=>t(117,f=ie));let ri,Ni,ci=Fe(!1);H(i,ci,ie=>t(116,s=ie));let fi,si,gi=Fe(!1);H(i,gi,ie=>t(115,l=ie));let Yi=ie=>{Tr(ie,ut)},vn=async ie=>{yl(ie,ni,()=>{let ft=v.findIndex(Gt=>Gt.selected);return Qi.childNodes[ft]})},Zi=async ie=>{yl(ie,ct,()=>{let ft=C.findIndex(Gt=>Gt.id===(g==null?void 0:g.id));return xt.childNodes[ft]})},di=async ie=>{wl(ie,Mt,Ci,ut)},ei=(ie,ft)=>{ui(ie,()=>be(ft))},Xi=async ie=>{wl(ie,Mt,hi,ut)},Nt=(ie,ft)=>{ui(ie,()=>Je(ft))},Ut=async ie=>{yl(ie,Ft,()=>{let ft=m.findIndex(Gt=>Gt.selected);return $t.childNodes[ft]})},Ji=async ie=>{wl(ie,Mt,jt,ut)},Ti=(ie,ft)=>{ui(ie,()=>yt(ft))},Oi=async ie=>{yl(ie,Xt,()=>{let ft=u.findIndex(Gt=>Gt.selected);return Ni.childNodes[ft]})},fn=async ie=>{wl(ie,Mt,ci,ut)},it=(ie,ft)=>{ui(ie,()=>mi(ft))},bi=async ie=>{yl(ie,lt,()=>{let ft=a?2:0;return si.childNodes[ft]})},ai=async ie=>{wl(ie,Mt,gi,ut)},je=(ie,ft)=>{ui(ie,()=>_t(ft))},xi=ie=>{ui(ie,()=>zi())},yn=ie=>{ui(ie,()=>an())},dn=ie=>{ui(ie,()=>oi())},Fi=ie=>{ui(ie,()=>Vi())},$i=ie=>{ui(ie,()=>un())};qt(()=>{let ie=pt.subscribe(ft=>{ft&&!r&&!Vt&&!o&&St()});return()=>{ie()}});function mn(ie){ge[ie?"unshift":"push"](()=>{Pt=ie,t(1,Pt)})}function Pi(ie){ge[ie?"unshift":"push"](()=>{Gi=ie,t(2,Gi)})}function ti(ie){ge[ie?"unshift":"push"](()=>{Si=ie,t(3,Si)})}function en(ie){ge[ie?"unshift":"push"](()=>{ri=ie,t(4,ri)})}function Ii(ie){ge[ie?"unshift":"push"](()=>{fi=ie,t(5,fi)})}function Vn(ie){ge[ie?"unshift":"push"](()=>{K=ie,t(0,K)})}function wn(ie){ge[ie?"unshift":"push"](()=>{pi=ie,t(20,pi)})}let kn=ie=>be(ie.value),Cn=(ie,ft)=>ei(ft,ie.value);function pn(ie){ge[ie?"unshift":"push"](()=>{Qi=ie,t(34,Qi)})}function Rn(ie){ge[ie?"unshift":"push"](()=>{_i=ie,t(21,_i)})}let tn=ie=>Je(ie),nn=(ie,ft)=>Nt(ft,ie);function Rt(ie){ge[ie?"unshift":"push"](()=>{xt=ie,t(35,xt)})}function Bn(ie){ge[ie?"unshift":"push"](()=>{yi=ie,t(22,yi)})}let Sn=ie=>yt(ie.value),Fn=(ie,ft)=>Ti(ft,ie.value);function ii(ie){ge[ie?"unshift":"push"](()=>{$t=ie,t(36,$t)})}function Hn(ie){ge[ie?"unshift":"push"](()=>{wi=ie,t(23,wi)})}let zn=()=>_t(!1),Tn=ie=>je(ie,!1),Pn=()=>_t(!0),An=ie=>je(ie,!0);function _n(ie){ge[ie?"unshift":"push"](()=>{si=ie,t(38,si)})}function ne(ie){ge[ie?"unshift":"push"](()=>{Jt=ie,t(24,Jt)})}let kt=ie=>mi(ie),on=(ie,ft)=>it(ft,ie);function Ei(ie){ge[ie?"unshift":"push"](()=>{Ni=ie,t(37,Ni)})}return i.$$set=ie=>{"ref"in ie&&t(0,K=ie.ref),"supportLink"in ie&&t(112,J=ie.supportLink),"playerControlsHeight"in ie&&t(113,Y=ie.playerControlsHeight),"returnFocus"in ie&&t(114,F=ie.returnFocus)},i.$$.update=()=>{var ie;i.$$.dirty[0]&4096&&x&&(t(13,me=!0),t(14,tt=!1),t(15,Ct=!1),t(16,bt=!1),t(17,Ue=!1),t(18,Ot=!1)),i.$$.dirty[3]&134217728&&t(39,n=ko(y)),i.$$.dirty[0]&1024|i.$$.dirty[3]&402653184&&t(19,Bi=Ri(y,v,b)),i.$$.dirty[3]&536870912|i.$$.dirty[4]&2&&t(25,Ki=Ce&&N&&!P),i.$$.dirty[3]&536870912|i.$$.dirty[4]&1&&t(26,Wt=X.features.trafficSaving&&!P&&M),i.$$.dirty[0]&128|i.$$.dirty[3]&536870912&&t(27,ki=u.length>0&&!P),i.$$.dirty[3]&1610612736&&t(28,qi=!!A&&!P),i.$$.dirty[0]&512|i.$$.dirty[3]&536870912&&t(29,Wi=X.features.audioLanguages&&C.length>=2&&!P),i.$$.dirty[3]&536870912&&t(30,li=!P),i.$$.dirty[0]&64&&t(31,wt=a?z("traffic_saving_on"):z("traffic_saving_off")),i.$$.dirty[3]&402653184&&t(32,ji=b?z("auto_quality_option"):y),i.$$.dirty[0]&2304&&t(33,Di=(ie=m.find(ft=>ft.value===I))==null?void 0:ie.displayValue),i.$$.dirty[0]&2|i.$$.dirty[3]&67108864&&vl(Pt,Ci,w),i.$$.dirty[0]&4|i.$$.dirty[3]&33554432&&vl(Gi,hi,h),i.$$.dirty[0]&8|i.$$.dirty[3]&16777216&&vl(Si,jt,f),i.$$.dirty[0]&16|i.$$.dirty[3]&8388608&&vl(ri,ci,s),i.$$.dirty[0]&32|i.$$.dirty[3]&4194304&&vl(fi,gi,l)},[K,Pt,Gi,Si,ri,fi,a,u,m,C,v,I,x,me,tt,Ct,bt,Ue,Ot,Bi,pi,_i,yi,wi,Jt,Ki,Wt,ki,qi,Wi,li,wt,ji,Di,Qi,xt,$t,Ni,si,n,r,g,se,L,X,le,qe,Xe,Ee,Be,De,xe,ae,he,at,Ke,mt,Ye,Ge,Ze,et,ce,Pe,We,re,Te,St,ni,ct,lt,be,Je,_t,Ft,yt,Xt,mi,Mt,zi,an,oi,Vi,un,Ui,cn,zt,Ci,hi,jt,ci,gi,Yi,vn,Zi,di,ei,Xi,Nt,Ut,Ji,Ti,Oi,fn,it,bi,ai,je,xi,yn,dn,Fi,$i,J,Y,F,l,s,f,h,w,y,b,P,A,M,N,mn,Pi,ti,en,Ii,Vn,wn,kn,Cn,pn,Rn,tn,nn,Rt,Bn,Sn,Fn,ii,Hn,zn,Tn,Pn,An,_n,ne,kt,on,Ei]}var Wa=class extends W{constructor(e){super(),j(this,e,Y2,G2,U,{ref:0,supportLink:112,playerControlsHeight:113,returnFocus:114},K2,[-1,-1,-1,-1,-1,-1])}},Dr=Wa;function Z2(i){Ie(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function X2(i){let e,t,n;return t=new Br({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),q(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function J2(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[X2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function x2(i,e,t){let n,o,r,{ref:l=void 0}=e,a=rt(),s=a.state.currentQuality$;H(i,s,C=>t(4,r=C));let u=a.ui.settingsMenuVisible;H(i,u,C=>t(1,n=C));let f=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;H(i,m,C=>t(3,o=C));let h;function w(C){let v=gl(C);f(v)}function g(C){l=C,t(0,l)}return i.$$set=C=>{"ref"in C&&t(0,l=C.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,h=n?z("tooltip_settings_on"):z("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,w,g]}var ja=class extends W{constructor(e){super(),j(this,e,x2,J2,U,{ref:0},Z2)}},Ql=ja;function $2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function eb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ga=class extends W{constructor(e){super(),j(this,e,eb,$2,U,{})}},B1=Ga;function tb(i){let e,t;return e=new qr({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ib(i){let e,t;return e=new B1({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function nb(i){let e,t,n,o,r=[ib,tb],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function ob(i){let e,t;return e=new vt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:xn.KeyC,$$slots:{default:[nb]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lb(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?z("tooltip_subtitles_on"):z("tooltip_subtitles_off"))},[n,o,r]}var Qa=class extends W{constructor(e){super(),j(this,e,lb,ob,U,{isSubtitlesEnabled:0,click:1})}},q1=Qa;function rb(i){Ie(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 D1(i){let e,t;return{c(){e=T("span"),t=Ne(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&8&&Qe(t,n[3])},d(n){n&&k(e)}}}function sb(i){let e,t,n,o,r=i[2]&&D1(i);return{c(){e=T("div"),t=T("span"),n=Ne(i[4]),o=B(),r&&r.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),O(e,"mobile",i[1])},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Qe(n,l[4]),l[2]?r?r.p(l,a):(r=D1(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&O(e,"mobile",l[1])},i:Se,o:Se,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function ab(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function f(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,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Nn(o)),i.$$.dirty&64&&t(4,u=Nn(r))},[a,n,l,s,u,o,r,f]}var Ya=class extends W{constructor(e){super(),j(this,e,ab,sb,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},rb)}},Nr=Ya;var so=require("@vkontakte/videoplayer-shared");function ub(i){Ie(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 cb(i){let e,t,n,o,r,l;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),r=D("path"),c(n,"class","wave2 svelte-1n5yyua"),c(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"),c(o,"class","wave1 svelte-1n5yyua"),c(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"),c(r,"class","cross svelte-1n5yyua"),c(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"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",l="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&c(e,"data-testid",l)},i:Se,o:Se,d(a){a&&k(e)}}}function fb(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;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,l=r(n,o))},[l,n,o]}var Za=class extends W{constructor(e){super(),j(this,e,fb,cb,U,{volume:1,muted:2},ub)}},Yo=Za;var jn=require("@vkontakte/videoplayer-shared");var H1=require("@vkontakte/videoplayer-shared");var F1=require("@vkontakte/videoplayer-shared");function db(i){let e,t,n=i[4].default,o=Ae(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","overlay")},m(r,l){S(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Re(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function mb(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=rt().ui.overlayContainer$;H(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};qt(()=>(f(n),()=>u(n)));function m(h){ge[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[s,a,n,r,o,m]}var Xa=class extends W{constructor(e){super(),j(this,e,mb,db,U,{})}},N1=Xa;function pb(i){Ie(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{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}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function O1(i){let e,t;return e=new N1({props:{$$slots:{default:[_b]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function _b(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=Ne(i[1]),o=B(),r=T("div"),c(t,"class","content svelte-tny135"),c(r,"class","tooltip-pointer svelte-tny135"),c(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),O(r,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),O(e,"active",i[0])},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Qe(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&O(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function hb(i){let e,t,n,o,r,l,a=i[18].default,s=Ae(a,i,i[21],null),u=i[1]&&O1(i);return{c(){e=T("div"),s&&s.c(),t=B(),u&&u.c(),n=dt(),c(e,"class","tooltip-wrapper svelte-tny135"),O(e,"full-width",i[2])},m(f,m){S(f,e,m),s&&s.m(e,null),i[19](e),S(f,t,m),u&&u.m(f,m),S(f,n,m),o=!0,r||(l=[pe(e,"mouseenter",i[12]),pe(e,"mousemove",i[12]),pe(e,"mouseleave",i[13]),pe(e,"mousedown",i[13]),pe(e,"mouseup",i[12])],r=!0)},p(f,[m]){s&&s.p&&(!o||m&2097152)&&Ve(s,a,f,f[21],o?Me(a,f[21],m,null):Re(f[21]),null),(!o||m&4)&&O(e,"full-width",f[2]),f[1]?u?(u.p(f,m),m&2&&d(u,1)):(u=O1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(fe(),_(u,1,1,()=>{u=null}),de())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(k(e),k(t),k(n)),s&&s.d(f),i[19](null),u&&u.d(f),r=!1,nt(l)}}}var Yl=5;function gb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:w=F1.noop}=e,g=h==="top",C,v,I,y=0,b=g?Yl:-Yl,P=0,A=0,M=Ht(),N=rt(),te=N.ui.playerSize;H(i,te,G=>t(24,o=G));let _e=N.ui.overlayContainer$;H(i,_e,G=>t(23,n=G));let Z=N.getLogger().createComponentLog("Tooltip component"),x=()=>{if(!n||!v||!C)return;let G=n.getBoundingClientRect(),X=C.getBoundingClientRect(),le=X.width,qe=v.clientWidth,Xe=o.width,Ee=(le-qe)/2,Be=X.left+u-G.left,De=Be+Ee,xe=X.top+f-G.top,ae=qe/2-Yl,he=De<8,at=De+qe>Xe-8;he&&(De=8,ae=Be+X.width/2-2.5*Yl),at&&(De=Xe-8-qe,ae=X.left-G.left+X.width/2-De-Yl),t(6,P=De),t(7,A=xe),t(5,y=ae)},se=()=>{try{if(!n||!C)return;x(),t(0,s=!0)}catch(G){Z({message:String(G)})}},L=()=>{t(0,s=!1)},K=()=>{v&&(I||(I=window.setTimeout(se,M.controls.hideTimeoutTooltips)),s&&se())},J=()=>{L(),window.clearTimeout(I),I=void 0};qt(x),Gn(()=>window.clearTimeout(I));function Y(G){ge[G?"unshift":"push"](()=>{C=G,t(3,C)})}function F(G){ge[G?"unshift":"push"](()=>{v=G,t(4,v)})}return i.$$set=G=>{"content"in G&&t(1,a=G.content),"active"in G&&t(0,s=G.active),"translateX"in G&&t(14,u=G.translateX),"translateY"in G&&t(15,f=G.translateY),"isFullWidthWrapper"in G&&t(2,m=G.isFullWidthWrapper),"placement"in G&&t(16,h=G.placement),"onVisibilityChange"in G&&t(17,w=G.onVisibilityChange),"$$scope"in G&&t(21,l=G.$$scope)},i.$$.update=()=>{i.$$.dirty&131073&&w(s)},[s,a,m,C,v,y,P,A,g,b,te,_e,K,J,u,f,h,w,r,Y,F,l]}var Ja=class extends W{constructor(e){super(),j(this,e,gb,hb,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},pb)}},Or=Ja;function bb(i){Ie(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 vb(i){let e,t=i[19].default,n=Ae(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)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Re(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function yb(i){let e,t;return e=new Or({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[wb]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function wb(i){let e,t=i[19].default,n=Ae(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)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Re(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function kb(i){let e,t,n,o,r,l,a,s,u,f=[yb,vb],m=[];function h(w,g){return w[3]&&w[11]&&!w[12]?0:1}return t=h(i,-1),n=m[t]=f[t](i),{c(){e=T("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",r=i[7]||null),Yn(()=>i[23].call(e))},m(w,g){S(w,e,g),m[t].m(e,null),i[22](e),l=ol(e,i[23].bind(e)),a=!0,s||(u=[pe(e,"pointerdown",st(i[20])),pe(e,"click",st(i[21]))],s=!0)},p(w,[g]){let C=t;t=h(w,g),t===C?m[t].p(w,g):(fe(),_(m[C],1,1,()=>{m[C]=null}),de(),n=m[t],n?n.p(w,g):(n=m[t]=f[t](w),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&r!==(r=w[7]||null))&&c(e,"aria-hidden",r)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&k(e),m[t].d(),i[22](null),l(),s=!1,nt(u)}}}function Cb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:w=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:v=z("tooltip_button_disabled")}=e,{isAriaHidden:I=!1}=e,{onTooltipVisibilityChange:y=H1.noop}=e,{initialTranslateXPx:b=0}=e,{initialTranslateYPx:P=-18}=e,A=rt(),M=A.ui.isMobile;H(i,M,L=>t(12,o=L));let N=A.state.graphIsOpened$;H(i,N,L=>t(18,n=L));let te;function _e(L){Dn.call(this,i,L)}function Z(L){Dn.call(this,i,L)}function x(L){ge[L?"unshift":"push"](()=>{f=L,t(0,f)})}function se(){m=this.clientWidth,t(1,m)}return i.$$set=L=>{"className"in L&&t(2,a=L.className),"disabled"in L&&t(15,s=L.disabled),"hasTooltip"in L&&t(3,u=L.hasTooltip),"ref"in L&&t(0,f=L.ref),"width"in L&&t(1,m=L.width),"isFullWidthTooltip"in L&&t(4,h=L.isFullWidthTooltip),"tooltipContent"in L&&t(16,w=L.tooltipContent),"tooltipActive"in L&&t(5,g=L.tooltipActive),"tooltipPlacement"in L&&t(6,C=L.tooltipPlacement),"disabledTooltipContent"in L&&t(17,v=L.disabledTooltipContent),"isAriaHidden"in L&&t(7,I=L.isAriaHidden),"onTooltipVisibilityChange"in L&&t(8,y=L.onTooltipVisibilityChange),"initialTranslateXPx"in L&&t(9,b=L.initialTranslateXPx),"initialTranslateYPx"in L&&t(10,P=L.initialTranslateYPx),"$$scope"in L&&t(24,l=L.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,te=n?z("tooltip_disabled_when_graph_on"):v):t(11,te=w))},[f,m,a,u,h,g,C,I,y,b,P,te,o,M,N,s,w,v,n,r,_e,Z,x,se,l]}var xa=class extends W{constructor(e){super(),j(this,e,Cb,kb,U,{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},bb)}},Dt=xa;function Sb(i){let e,t,n,o,r,l;return{c(){e=D("svg"),t=D("rect"),o=D("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(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"),c(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",l)},i:Se,o:Se,d(a){a&&k(e)}}}function Tb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var $a=class extends W{constructor(e){super(),j(this,e,Tb,Sb,U,{completed:0})}},Fr=$a;function Pb(i){Ie(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;return t=new Fr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Yn(()=>i[3].call(e)),O(e,"disabled",i[1])},m(l,a){S(l,e,a),V(t,e,null),o=ol(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&c(e,"style",n),(!r||a&2)&&O(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&k(e),R(t),o()}}}function Eb(i){let e,t;return e=new Dt({props:{tooltipContent:z(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(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=z(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Lb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var eu=class extends W{constructor(e){super(),j(this,e,Lb,Eb,U,{videoEpisode:0,disabled:1},Pb)}},z1=eu;function Ab(i){Ie(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 U1(i,e,t){let n=i.slice();return n[3]=e[t],n}function K1(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=B(),l=T("div"),s=B(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(l,"class","video-episode-filled svelte-1rzxunm"),c(l,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),O(l,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),O(e,"disabled",i[2]),O(e,"mobile",i[1])},m(f,m){S(f,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(f,m){m&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),m&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(l,"style",a),m&2&&O(l,"mobile",f[1]),m&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),m&4&&O(e,"disabled",f[2]),m&2&&O(e,"mobile",f[1])},d(f){f&&k(e)}}}function Mb(i){let e,t=Et(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=K1(U1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&7){t=Et(o[0]);let l;for(l=0;l<t.length;l+=1){let a=U1(o,t,l);n[l]?n[l].p(a,r):(n[l]=K1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:Se,o:Se,d(o){o&&k(e),Ai(n,o)}}}function Vb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile),"disabled"in l&&t(2,r=l.disabled)},[n,o,r]}var tu=class extends W{constructor(e){super(),j(this,e,Vb,Mb,U,{videoEpisodes:0,isMobile:1,disabled:2},Ab)}},W1=tu;function Rb(i){Ie(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=Et(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Y1(j1(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();c(e,"class","interactive-icons svelte-v8ydei"),O(e,"mobile",i[6]),O(e,"hidden",i[6]&&!i[20])},m(l,a){S(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2098176){n=Et(l[21]);let s;for(s=0;s<n.length;s+=1){let u=j1(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Y1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(fe(),s=n.length;s<o.length;s+=1)r(s);de()}(!t||a[0]&64)&&O(e,"mobile",l[6]),(!t||a[0]&1048640)&&O(e,"hidden",l[6]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&k(e),Ai(o,l)}}}function Q1(i){let e,t;return e=new z1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Y1(i){let e,t,n=i[50].interactive&&Q1(i);return{c(){n&&n.c(),e=dt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Q1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function Bb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=B(),r=T("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(r,"class","filled svelte-v8ydei"),c(r,"style",l=`transform: translateX(${i[13]*100}%);`),O(r,"active-live",i[5]),O(r,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&l!==(l=`transform: translateX(${a[13]*100}%);`)&&c(r,"style",l),s[0]&32&&O(r,"active-live",a[5]),s[0]&128&&O(r,"ads",a[7])},i:Se,o:Se,d(a){a&&k(e)}}}function qb(i){let e,t;return e=new W1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Db(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g=i[9]&&G1(i),C=[qb,Bb],v=[];function I(y,b){return y[21].length?0:1}return n=I(i,[-1,-1]),o=v[n]=C[n](i),{c(){var y;g&&g.c(),e=B(),t=T("div"),o.c(),r=B(),l=T("div"),a=T("div"),c(a,"class","handle svelte-v8ydei"),O(a,"active-live",i[5]),c(l,"class","handleWrap svelte-v8ydei"),c(l,"style",s=`transform: translateX(${i[14]*100}%);`),O(l,"hidden",i[11]),c(t,"class",u="slider "+i[1]+" svelte-v8ydei"),c(t,"aria-label",i[15]),c(t,"aria-valuemin",i[16]),c(t,"aria-valuemax",i[17]),c(t,"aria-valuenow",i[18]),c(t,"aria-valuetext",i[19]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=(y=i[2])!=null?y:null),O(t,"disabled",i[10]),O(t,"slider-dragging",i[20]),O(t,"hidden",i[3]),O(t,"slider-vertical",i[4]),O(t,"no-handle",i[11]),O(t,"square",i[8])},m(y,b){g&&g.m(y,b),S(y,e,b),S(y,t,b),v[n].m(t,null),p(t,r),p(t,l),p(l,a),i[44](t),m=!0,h||(w=[pe(t,"pointerdown",Yt(i[22])),pe(t,"pointermove",Yt(i[23])),pe(t,"pointerup",Yt(i[24])),pe(t,"pointerenter",Yt(i[25])),pe(t,"pointerleave",Yt(i[26])),pe(t,"click",st(i[28])),pe(t,"wheel",i[27])],h=!0)},p(y,b){var A;y[9]?g?(g.p(y,b),b[0]&512&&d(g,1)):(g=G1(y),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(fe(),_(g,1,1,()=>{g=null}),de());let P=n;n=I(y,b),n===P?v[n].p(y,b):(fe(),_(v[P],1,1,()=>{v[P]=null}),de(),o=v[n],o?o.p(y,b):(o=v[n]=C[n](y),o.c()),d(o,1),o.m(t,r)),(!m||b[0]&32)&&O(a,"active-live",y[5]),(!m||b[0]&16384&&s!==(s=`transform: translateX(${y[14]*100}%);`))&&c(l,"style",s),(!m||b[0]&2048)&&O(l,"hidden",y[11]),(!m||b[0]&2&&u!==(u="slider "+y[1]+" svelte-v8ydei"))&&c(t,"class",u),(!m||b[0]&32768)&&c(t,"aria-label",y[15]),(!m||b[0]&65536)&&c(t,"aria-valuemin",y[16]),(!m||b[0]&131072)&&c(t,"aria-valuemax",y[17]),(!m||b[0]&262144)&&c(t,"aria-valuenow",y[18]),(!m||b[0]&524288)&&c(t,"aria-valuetext",y[19]),(!m||b[0]&4&&f!==(f=(A=y[2])!=null?A:null))&&c(t,"data-testid",f),(!m||b[0]&1026)&&O(t,"disabled",y[10]),(!m||b[0]&1048578)&&O(t,"slider-dragging",y[20]),(!m||b[0]&10)&&O(t,"hidden",y[3]),(!m||b[0]&18)&&O(t,"slider-vertical",y[4]),(!m||b[0]&2050)&&O(t,"no-handle",y[11]),(!m||b[0]&258)&&O(t,"square",y[8])},i(y){m||(d(g),d(o),m=!0)},o(y){_(g),_(o),m=!1},d(y){y&&(k(e),k(t)),g&&g.d(y),v[n].d(),i[44](null),h=!1,nt(w)}}}function Nb(i,e,t){let n,o,{ref:r=void 0}=e,{className:l=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:w=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:v=!1}=e,{disabled:I=!1}=e,{hideHandel:y=!1}=e,b,{onPointerDown:P=jn.noop}=e,{onHandleMove:A=jn.noop}=e,{onPointerUp:M=jn.noop}=e,{onPointerEnter:N=jn.noop}=e,{onPointerMove:te=jn.noop}=e,{onPointerLeave:_e=jn.noop}=e,{onWheelUp:Z=jn.noop}=e,{onWheelDown:x=jn.noop}=e,{onWheelLeft:se=jn.noop}=e,{onWheelRight:L=jn.noop}=e,{onDisabledClick:K=jn.noop}=e,{loadedProgress:J=0}=e,{filledProgress:Y=0}=e,{handleProgress:F=0}=e,{ariaLabel:G=""}=e,{ariaValueMin:X=void 0}=e,{ariaValueMax:le=void 0}=e,{ariaValueNow:qe=void 0}=e,{ariaValueText:Xe=""}=e,Ee=Ht(),Be=!1,De;function xe(ce){if(r&&(b=r.getBoundingClientRect()),I||Be||!r)return;t(20,Be=!0);let Pe=Ye(ce.clientX,ce.clientY);P(Pe),r.setPointerCapture(ce.pointerId)}function ae(ce){if(I)return;let Pe=Ye(ce.clientX,ce.clientY),We=Ge(ce.clientX);te(Pe,We,b.width),Be&&A(Pe)}function he(ce){if(I||!Be)return;t(20,Be=!1);let Pe=Ye(ce.clientX,ce.clientY);M(Pe)}function at(ce){if(r&&(b=r.getBoundingClientRect()),I)return;let Pe=Ye(ce.clientX,ce.clientY),We=Ge(ce.clientX);N(Pe,We,b.width)}function Ce(){I||_e()}function Ke(ce){I||C&&(ce.preventDefault(),ce.deltaY<0?Z():ce.deltaY>0?x():ce.deltaX>0?L():se())}function mt(ce){I&&K(Ye(ce.clientX,ce.clientY))}function Ye(ce,Pe){return u?Math.max(0,Math.min(1,(b.height-(Pe-b.top))/b.height)):Math.min(Math.max(ce-b.x,0),b.width)/b.width}function Ge(ce){return Math.min(Math.max(ce-b.x,0),b.width)}function Ze(ce,Pe){let We=Ee.features.episodesClustering&&!v?Ee.episodeMinWidthPc:0,re=[],Te=0,pt=0,Le=0;for(let tt=1;tt<g.length;tt++)pt=g[tt].time/De*100,pt-Te>We&&(re.push({from:Te,width:Math.max(0,pt-Te),loadedWidth:Math.max(0,Math.min(pt,ce)-Te),filledWidth:Math.max(0,Math.min(pt,Pe)-Te),interactive:g[tt-1].interactive,completed:g[tt-1].completed}),Te=g[tt].time/De*100,Le++);let ut={from:Te,width:Math.max(0,100-Te),loadedWidth:Math.max(0,Math.min(ce,100)-Te),filledWidth:Math.max(0,Math.min(Pe,100)-Te),interactive:g[Le].interactive,completed:g[Le].completed};100-Te<We?(Le-=1,re[Le].width+=100-Te,re[Le].loadedWidth+=Math.max(0,Math.min(ce,100)-Te),re[Le].filledWidth+=Math.max(0,Math.min(Pe,100)-Te)):re[Le]=ut;let me=g[0].time;if(me!==0){let tt=me/De*100;re.unshift({from:0,width:tt,loadedWidth:Math.min(tt,ce),filledWidth:Math.min(tt,Pe)})}return re}function et(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,l=ce.className),"testId"in ce&&t(2,a=ce.testId),"isHidden"in ce&&t(3,s=ce.isHidden),"isVertical"in ce&&t(4,u=ce.isVertical),"isActiveLive"in ce&&t(5,f=ce.isActiveLive),"isMobile"in ce&&t(6,m=ce.isMobile),"isAds"in ce&&t(7,h=ce.isAds),"squareBorders"in ce&&t(8,w=ce.squareBorders),"videoEpisodes"in ce&&t(29,g=ce.videoEpisodes),"withWheelHandler"in ce&&t(30,C=ce.withWheelHandler),"isInteractive"in ce&&t(9,v=ce.isInteractive),"disabled"in ce&&t(10,I=ce.disabled),"hideHandel"in ce&&t(11,y=ce.hideHandel),"onPointerDown"in ce&&t(31,P=ce.onPointerDown),"onHandleMove"in ce&&t(32,A=ce.onHandleMove),"onPointerUp"in ce&&t(33,M=ce.onPointerUp),"onPointerEnter"in ce&&t(34,N=ce.onPointerEnter),"onPointerMove"in ce&&t(35,te=ce.onPointerMove),"onPointerLeave"in ce&&t(36,_e=ce.onPointerLeave),"onWheelUp"in ce&&t(37,Z=ce.onWheelUp),"onWheelDown"in ce&&t(38,x=ce.onWheelDown),"onWheelLeft"in ce&&t(39,se=ce.onWheelLeft),"onWheelRight"in ce&&t(40,L=ce.onWheelRight),"onDisabledClick"in ce&&t(41,K=ce.onDisabledClick),"loadedProgress"in ce&&t(12,J=ce.loadedProgress),"filledProgress"in ce&&t(13,Y=ce.filledProgress),"handleProgress"in ce&&t(14,F=ce.handleProgress),"ariaLabel"in ce&&t(15,G=ce.ariaLabel),"ariaValueMin"in ce&&t(16,X=ce.ariaValueMin),"ariaValueMax"in ce&&t(17,le=ce.ariaValueMax),"ariaValueNow"in ce&&t(18,qe=ce.ariaValueNow),"ariaValueText"in ce&&t(19,Xe=ce.ariaValueText)},i.$$.update=()=>{var ce;i.$$.dirty[0]&131072&&t(42,De=le!=null?le:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((ce=g[g.length-1])==null?void 0:ce.time)<De),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&De?Ze(J*100,Y*100):[])},[r,l,a,s,u,f,m,h,w,v,I,y,J,Y,F,G,X,le,qe,Xe,Be,o,xe,ae,he,at,Ce,Ke,mt,g,C,P,A,M,N,te,_e,Z,x,se,L,K,De,n,et]}var iu=class extends W{constructor(e){super(),j(this,e,Nb,Db,U,{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},Rb,[-1,-1])}},Tl=iu;var On=(i,e)=>Do[i]>=Do[e],Z1=(i,e)=>Do[i]<Do[e],Hr=(i,e)=>Do[i]<=Do[e],X1=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Ob(i){Ie(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 Fb(i){let e,t;return e=new Yo({props:{volume:i[3],muted:i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hb(i){let e,t;return e=new vt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:xn.KeyM,$$slots:{default:[Fb]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function J1(i){let e,t,n;return t=new Tl({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]:so.noop,onPointerLeave:i[2]?i[20]:so.noop,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=T("div"),q(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),O(e,"volumeBar-vertical",i[2])},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:so.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:so.noop),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&O(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function zb(i){let e,t,n,o,r,l;t=new Or({props:{content:i[6],translateY:-18,$$slots:{default:[Hb]},$$scope:{ctx:i}}});let a=i[4]&&J1(i);return{c(){e=T("div"),q(t.$$.fragment),n=B(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),O(e,"vertical",i[2])},m(s,u){S(s,e,u),V(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[pe(e,"mouseenter",function(){Li(i[2]?i[21]:so.noop)&&(i[2]?i[21]:so.noop).apply(this,arguments)}),pe(e,"mouseleave",function(){Li(i[2]?i[22]:so.noop)&&(i[2]?i[22]:so.noop).apply(this,arguments)}),pe(e,"wheel",Yt(i[23]))],r=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),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&&(fe(),_(a,1,1,()=>{a=null}),de()),(!o||u[0]&4)&&O(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),R(t),a&&a.d(),r=!1,nt(l)}}}function Ub(i,e,t){var Ee,Be;let n,o,r,l,{click:a}=e,s=rt(),u=Ht(),f=s.state.volume$;H(i,f,De=>t(3,n=De));let m=s.state.muted$;H(i,m,De=>t(25,l=De));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;H(i,w,De=>t(24,r=De));let g=(Ee=s.callbacks)==null?void 0:Ee.onAudioDoesNotExistHint,C=(Be=s.callbacks)==null?void 0:Be.onAudioDisabledHint,v=s.state.isAudioAvailable$;H(i,v,De=>t(4,o=De));let I=s.state.isAudioDisabled,y=!1,b,P,A,M,N,te,_e=1,Z=!1,x=!1;function se(De){_e=n,h(De)}function L(){Lr(s,n,u.controls.volumeStepWheel)}function K(){Ar(s,n,u.controls.volumeStepWheel)}function J(De){h(De)}function Y(De){let xe=De;h(xe,xe===0?_e:xe)}function F(){Z=!0}function G(){Z=!1,qe()}function X(){clearTimeout(b),t(5,y=!0)}function le(){qe()}function qe(){b=window.setTimeout(()=>{Z||t(5,y=!1)},u.controls.volumeBarTimeout)}function Xe(De){De.deltaY<0?L():De.deltaY>0&&K()}return i.$$set=De=>{"click"in De&&t(0,a=De.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,M=!o||l),i.$$.dirty[0]&16777216&&t(2,N=Hr(r,"s")),i.$$.dirty[0]&6&&(N?t(6,P=""):t(6,P=M?z("tooltip_volume"):z("tooltip_volume_muted")),t(7,A=M?z("tooltip_volume"):z("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,te=M?0:n),i.$$.dirty[0]&16&&(o?t(9,x=I&&!C):t(9,x=!g))},[a,M,N,n,o,y,P,A,te,x,f,m,w,v,se,L,K,J,Y,F,G,X,le,Xe,r,l]}var nu=class extends W{constructor(e){super(),j(this,e,Ub,zb,U,{click:0},Ob,[-1,-1])}},x1=nu;var tm=require("@vkontakte/videoplayer-shared");function Kb(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),c(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"),c(n,"class","_exit"),c(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"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function Wb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ou=class extends W{constructor(e){super(),j(this,e,Wb,Kb,U,{})}},$1=ou;function jb(i){Ie(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Gb(i){let e,t;return e=new $1({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var lu=class extends W{constructor(e){super(),j(this,e,Qb,Gb,U,{isFullscreen:0},jb)}},em=lu;function Yb(i){let e,t;return e=new em({props:{isFullscreen:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zb(i){let e,t;return e=new vt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:xn.KeyF,$$slots:{default:[Yb]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=tm.noop}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off"))},[n,o,r]}var ru=class extends W{constructor(e){super(),j(this,e,Xb,Zb,U,{isFullscreen:0,click:1})}},zr=ru;function Jb(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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.078z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function xb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var su=class extends W{constructor(e){super(),j(this,e,xb,Jb,U,{})}},Pl=su;function $b(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ev(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var au=class extends W{constructor(e){super(),j(this,e,ev,$b,U,{})}},Ur=au;var nm=require("@vkontakte/videoplayer-shared");function tv(i){Ie(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=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function iv(i){let e,t,n,o,r=i[1]&&im(i);var l=i[8];function a(s,u){return{}}return l&&(n=Mn(l,a(i))),{c(){r&&r.c(),e=B(),t=T("div"),n&&q(n.$$.fragment),c(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),S(s,e,u),S(s,t,u),n&&V(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=im(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){fe();let f=n;_(f.$$.fragment,1,0,()=>{R(f,1)}),de()}l?(n=Mn(l,a(s,u)),q(n.$$.fragment),d(n.$$.fragment,1),V(n,t,null)):n=null}(!o||u&2)&&O(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),r&&r.d(s),n&&R(n)}}}function nv(i){let e,t,n;function o(l){i[13](l)}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:xn.KeyK,$$slots:{default:[iv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function ov(i,e,t){let n,o,{fakeIsPlaying$:r}=Wn();H(i,r,y=>t(12,o=y));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:m=nm.noop}=e,{toggle:h}=r,w,g,C,v;function I(y){l=y,t(0,l)}return i.$$set=y=>{"ref"in y&&t(0,l=y.ref),"isMobile"in y&&t(1,a=y.isMobile),"isPlaying"in y&&t(10,s=y.isPlaying),"disabled"in y&&t(2,u=y.disabled),"className"in y&&t(3,f=y.className),"click"in y&&t(4,m=y.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,C=g?o:s),i.$$.dirty&2048&&t(7,v=C?z("tooltip_pause"):z("tooltip_play")),i.$$.dirty&2048&&t(8,n=C?Ur:Pl)},t(6,w=h),[l,a,u,f,m,g,w,v,n,r,s,C,o,I]}var uu=class extends W{constructor(e){super(),j(this,e,ov,nv,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},tv)}},Zl=uu;function lv(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function rv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var cu=class extends W{constructor(e){super(),j(this,e,rv,lv,U,{})}},om=cu;function sv(i){let e,t;return e=new om({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function av(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.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 fu=class extends W{constructor(e){super(),j(this,e,av,sv,U,{isPrev:0,isMobile:2})}},lm=fu;function uv(i){let e,t;return e=new lm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function cv(i){let e,t,n;function o(l){i[6](l)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[uv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function fv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,r=f.disabled),"type"in f&&t(3,l=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l==="prev"?z("tooltip_previous"):z("tooltip_next"))},[n,o,r,l,a,s,u]}var du=class extends W{constructor(e){super(),j(this,e,fv,cv,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Il=du;function dv(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function mv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var mu=class extends W{constructor(e){super(),j(this,e,mv,dv,U,{})}},rm=mu;function pv(i){let e,t,n,o,r,l,a=i[2].default,s=Ae(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]],f={};for(let m=0;m<u.length;m+=1)f=ue(f,u[m]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),r=D("path"),c(t,"fill","#fff"),c(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"),c(n,"fill","#fff"),c(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"),c(n,"class","_ru"),c(o,"fill","#fff"),c(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"),c(o,"class","_en"),c(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(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"),c(r,"clip-rule","evenodd"),we(e,f)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Re(m[1]),null),we(e,f=Oe(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){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function _v(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var pu=class extends W{constructor(e){super(),j(this,e,_v,pv,U,{})}},sm=pu;function hv(i){Ie(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 gv(i){let e,t;return e=new sm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}var bv="vk-video-logo-icon--short";function vv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;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,l=n?bv:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en")))},[r,l,n,o]}var _u=class extends W{constructor(e){super(),j(this,e,vv,gv,U,{short:2,isCyrillic:3},hv)}},am=_u;function wv(i){let e,t;return e=new rm({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function kv(i){let e,t;return e=new am({props:{short:i[4],isCyrillic:i[5]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Cv(i){let e,t,n,o,r=[kv,wv],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Sv(i){let e,t,n;function o(l){i[14](l)}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:[Cv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&131124&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Tv(i,e,t){let n,o,r,{ref:l=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Ht(),m=rt(),h=m.ui.currentGridType$;H(i,h,P=>t(12,n=P));let w=m.ui.isMobile;H(i,w,P=>t(13,o=P));let g=m.isCyrillicRelatedInterface$;H(i,g,P=>t(5,r=P));let C,v,I,y=()=>{var P,A;u(),(P=m.callbacks)!=null&&P.onLogoClicked?(A=m.callbacks)==null||A.onLogoClicked():s&&window.open(s,"_blank")};function b(P){l=P,t(0,l)}return i.$$set=P=>{"ref"in P&&t(0,l=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,s=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,I=(o||Hr(n,"l"))&&v)},t(3,C=f.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo")),t(2,v=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[l,a,v,C,I,r,h,w,g,y,s,u,n,o,b]}var hu=class extends W{constructor(e){super(),j(this,e,Tv,Sv,U,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Kr=hu;var cm=require("@vkontakte/videoplayer-core");var gu=require("@vkontakte/videoplayer-core");function Pv(i){Ie(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 Iv(i){let e,t,n,o,r,l,a,s;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("path"),a=D("path"),s=D("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(r,"class","wave wave3 svelte-8z1bf5"),c(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(r,"fill","#fff"),c(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(l,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),O(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),O(e,"connecting",i[2])},m(u,f){S(u,e,f),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,f){f&2&&O(s,"hidden",!u[1]),f&4&&O(e,"connecting",u[2])},d(u){u&&k(e)}}}function Ev(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A;return{c(){e=D("svg"),t=D("g"),n=D("mask"),o=D("path"),l=D("path"),a=D("path"),u=D("path"),f=D("defs"),m=D("clipPath"),h=D("path"),g=D("filter"),C=D("feFlood"),v=D("feColorMatrix"),I=D("feOffset"),y=D("feGaussianBlur"),b=D("feColorMatrix"),P=D("feBlend"),A=D("feBlend"),c(o,"fill",r=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(l,"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"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(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"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(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"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(h,"fill",w=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(m,"id","a"),c(C,"flood-opacity","0"),c(C,"result","BackgroundImageFix"),c(v,"in","SourceAlpha"),c(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(v,"result","hardAlpha"),c(y,"stdDeviation","2.5"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_4085_178456"),c(A,"in","SourceGraphic"),c(A,"in2","effect1_dropShadow_4085_178456"),c(A,"result","shape"),c(g,"id","b"),c(g,"x","-3.4"),c(g,"y","-1.4"),c(g,"width","30.8"),c(g,"height","26.802"),c(g,"filterUnits","userSpaceOnUse"),c(g,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(M,N){S(M,e,N),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,f),p(f,m),p(m,h),p(f,g),p(g,C),p(g,v),p(g,I),p(g,y),p(g,b),p(g,P),p(g,A)},p(M,N){N&2&&r!==(r=M[1]?"#2688EB":"#fff")&&c(o,"fill",r),N&2&&s!==(s=M[1]?"#2688EB":"#fff")&&c(a,"fill",s),N&2&&w!==(w=M[1]?"#2688EB":"#fff")&&c(h,"fill",w)},d(M){M&&k(e)}}}function Lv(i){let e;function t(r,l){return r[0]?Ev:Iv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:Se,o:Se,d(r){r&&k(e),o.d(r)}}}function Av(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;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,l=o===gu.ChromecastState.CONNECTING),t(1,r=o===gu.ChromecastState.CONNECTED))},[n,r,l,o]}var bu=class extends W{constructor(e){super(),j(this,e,Av,Lv,U,{isMobile:0,state:3},Pv)}},um=bu;var fm=require("@vkontakte/videoplayer-shared");function Mv(i){let e,t;return e=new um({props:{isMobile:i[1],state:i[2]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vv(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Mv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Rv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=fm.noop}=e,a;function s(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,l=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===cm.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var vu=class extends W{constructor(e){super(),j(this,e,Rv,Vv,U,{ref:0,isMobile:1,state:2,click:3})}},Wr=vu;var jr=require("@vkontakte/videoplayer-core");function Bv(i){let e,t;return e=new Cr({props:{isActive:i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qv(i){let e,t;return e=new vt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===jr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[Bv]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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]===jr.PlaybackState.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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Dv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=rt(),s=a.state.playbackState$;H(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===jr.PlaybackState.PAUSED&&f()})},[o,r,l,n,m,s]}var yu=class extends W{constructor(e){super(),j(this,e,Dv,qv,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Gr=yu;function Nv(i){Ie(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 Ov(i){let e,t,n,o,r=i[9].default,l=Ae(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),c(t,"class","tooltip svelte-5ygsa2"),O(t,"active",i[0]),O(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){S(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Re(a[8]),null),(!o||s&1)&&O(t,"active",a[0]),(!o||s&2)&&O(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function Fv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,m,h;function w(v){if(!h)return 0;let{width:I}=h.getBoundingClientRect(),y=I/2;return v<y?y:v>f-y?f-y:v}function g(v){ge[v?"unshift":"push"](()=>{h=v,t(4,h)})}function C(v){ge[v?"unshift":"push"](()=>{m=v,t(3,m)})}return i.$$set=v=>{"active"in v&&t(0,l=v.active),"pointer"in v&&t(1,a=v.pointer),"translateXPx"in v&&t(6,s=v.translateXPx),"translateYPx"in v&&t(2,u=v.translateYPx),"containerWidth"in v&&t(7,f=v.containerWidth),"$$scope"in v&&t(8,r=v.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=w(s))},[l,a,u,m,h,n,s,f,r,o,g,C]}var wu=class extends W{constructor(e){super(),j(this,e,Fv,Ov,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Nv)}},dm=wu;var Qr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Hv(i){Ie(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 mm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?Uv:zv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function zv(i){let e=(i[10].text||"")+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Qe(t,e)},d(n){n&&k(t)}}}function Uv(i){let e=z("tooltip_episode_unfinished")+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p:Se,d(n){n&&k(t)}}}function pm(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&k(e)}}}function Kv(i){let e,t,n,o,r,l,a=i[10]&&mm(i),s=!i[2]&&pm(i);return{c(){e=T("div"),t=T("div"),o=B(),r=T("div"),a&&a.c(),l=B(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(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);`),c(r,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),O(e,"mobile",i[1])},m(u,f){S(u,e,f),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[f]){f&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);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=mm(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=pm(u),s.c(),s.m(e,null)),f&2&&O(e,"mobile",u[1])},i:Se,o:Se,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var El=150;function Wv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=rt().ui.rotateAlpha;H(i,h,N=>t(11,n=N));let w,g,C,v,I,y,b,P;function A(){let N=a.frameWidth,te=a.frameHeight;return N>El?(te=te/N*El,N=El):te>El&&(N=N/te*El,te=El),{width:N,height:te}}function M(N){let te;a.isUV?te=Math.floor(u*N/a.frequency):te=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*N)));let _e=Math.floor(te/a.countPerImage),Z=Math.floor(te%a.countPerImage/a.countPerRow),x=te%a.countPerRow,se=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&_e===Math.floor(a.countTotal/a.countPerImage)&&(se=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&se++);let L=a.countPerRow;!a.isUV&&_e===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(L=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let K=w*L,J=g*se,Y=-x*w,F=-Z*g;return{imgSrc:a.links[_e],imgWidth:K,imgHeight:J,imgOffsetX:Y,imgOffsetY:F}}return i.$$set=N=>{"time"in N&&t(0,o=N.time),"isMobile"in N&&t(1,r=N.isMobile),"videoEpisodes"in N&&t(13,l=N.videoEpisodes),"previewThumbsData"in N&&t(14,a=N.previewThumbsData),"progress"in N&&t(15,s=N.progress),"duration"in N&&t(16,u=N.duration),"isInteractive"in N&&t(2,f=N.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:C,imgWidth:v,imgHeight:I,imgOffsetX:y,imgOffsetY:b}=M(s),C,(t(6,v),t(15,s)),(t(7,I),t(15,s)),(t(8,y),t(15,s)),(t(9,b),t(15,s))),i.$$.dirty&106496&&t(10,P=Qr(s,u,l))},t(3,{width:w,height:g}=A(),w,t(4,g)),[o,r,f,w,g,C,v,I,y,b,P,n,h,l,a,s,u]}var ku=class extends W{constructor(e){super(),j(this,e,Wv,Kv,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Hv)}},_m=ku;function jv(i){Ie(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 Gv(i){let e,t;return{c(){e=T("span"),t=Ne(i[8]),c(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o[0]&256&&Qe(t,n[8])},i:Se,o:Se,d(n){n&&k(e)}}}function Qv(i){let e,t;return e=new _m({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yv(i){let e,t,n,o,r=[Qv,Gv],l=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Zv(i){let e,t,n,o,r,l=[i[10]],a={$$slots:{default:[Yv]},$$scope:{ctx:i}};for(let f=0;f<l.length;f+=1)a=ue(a,l[f]);e=new dm({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:z("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:z("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 Tl({props:u}),ge.push(()=>ze(n,"ref",s)),{c(){q(e.$$.fragment),t=B(),q(n.$$.fragment)},m(f,m){V(e,f,m),S(f,t,m),V(n,f,m),r=!0},p(f,m){let h=m[0]&1024?Oe(l,[ef(f[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:f}),e.$set(h);let w={};m[0]&4096&&(w.isActiveLive=f[12]),m[0]&2048&&(w.isMobile=f[11]),m[0]&4&&(w.ariaValueMax=f[2]),m[0]&128&&(w.ariaValueNow=Math.round(f[7]*100)),m[0]&96&&(w.ariaValueText=z("aria_timeline_value",{position:f[6],duration:f[5]})),m[0]&8192&&(w.loadedProgress=f[13]),m[0]&128&&(w.filledProgress=f[7]),m[0]&128&&(w.handleProgress=f[7]),m[0]&16&&(w.videoEpisodes=f[4]),m[0]&16384&&(w.disabled=f[14].has("TIMELINE")),m[0]&8&&(w.hideHandel=f[3]),!o&&m[0]&1&&(o=!0,w.ref=f[0],He(()=>o=!1)),n.$set(w)},i(f){r||(d(e.$$.fragment,f),d(n.$$.fragment,f),r=!0)},o(f){_(e.$$.fragment,f),_(n.$$.fragment,f),r=!1},d(f){f&&k(t),R(e,f),R(n,f)}}}function Xv(i,e,t){var ce;let n,o,r,l,a,s,u,f,m,h,w,{showTimeline:g=!1}=e,{ref:C=void 0}=e,v=rt(),I=Ht(),y=v.state.bufferedProgress$;H(i,y,Pe=>t(13,h=Pe));let b=v.state.positionWithScrubbing$;H(i,b,Pe=>t(41,s=Pe));let P=v.state.duration$;H(i,P,Pe=>t(2,r=Pe));let A=v.state.isLive$;H(i,A,Pe=>t(1,o=Pe));let M=v.state.isActiveLive$;H(i,M,Pe=>t(12,m=Pe));let N=v.ui.isMobile;H(i,N,Pe=>t(11,f=Pe));let te=I.features.episodes?v.actions.internal.getVideoEpisodes():void 0,_e=v.actions.internal.getPreviewThumbsData(),Z=v.state.interactiveEpisodes$;H(i,Z,Pe=>t(42,u=Pe));let x=v.state.isInteractive,se=v.state.isInteractiveTime$;H(i,se,Pe=>t(3,l=Pe));let L=v.state.isInteractiveExpectation$;H(i,L,Pe=>t(40,a=Pe));let K=v.actions.internal.correctSeekTimeToInteractive,J=(ce=v.callbacks)==null?void 0:ce.onDisabledTimelineClick,Y=v.ui.controls.disabledControls$;H(i,Y,Pe=>t(14,w=Pe));let F,G,X,le,qe=!1,Xe="",Ee=0,Be=0,De=0,xe;function ae(Pe){return!K||!x?Pe:K(Pe*r)/r}function he(Pe){v.actions.internal.startScrubbing(ae(Pe))}function at(Pe){l||v.actions.internal.progressScrubbing(ae(Pe))}function Ce(Pe){v.actions.internal.completeScrubbing(ae(Pe)),t(36,qe=!1)}function Ke(Pe,We,re){Ge(Pe,We,re),t(36,qe=!0)}function mt(Pe,We,re){Ge(Pe,We,re),t(36,qe=!0)}function Ye(){t(36,qe=!1)}function Ge(Pe,We,re){t(9,De=ae(Pe)),t(37,Ee=We),re&&t(38,Be=re),t(8,Xe=Ze(Pe))}function Ze(Pe){let We=Nn((o?1-Pe:Pe)*r);return o?`-${We}`:We}function et(Pe){C=Pe,t(0,C)}return i.$$set=Pe=>{"showTimeline"in Pe&&t(35,g=Pe.showTimeline),"ref"in Pe&&t(0,C=Pe.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,F=x?u:te),i.$$.dirty[0]&4&&t(5,G=Nn(r)),i.$$.dirty[1]&1024&&t(6,X=Nn(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,le=s/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,xe=a||l),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Be,translateXPx:Ee,translateYPx:x&&_e?-36:-16,active:qe&&g&&!xe,pointer:!I.features.timelinePreview||!_e||o})},[C,o,r,l,F,G,X,le,Xe,De,n,f,m,h,w,I,y,b,P,A,M,N,_e,Z,x,se,L,J,Y,he,at,Ce,Ke,mt,Ye,g,qe,Ee,Be,xe,a,s,u,et]}var Cu=class extends W{constructor(e){super(),j(this,e,Xv,Zv,U,{showTimeline:35,ref:0},jv,[-1,-1])}},hm=Cu;function Jv(i){let e,t;return e=new Tl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:z("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){q(e.$$.fragment)},m(n,o){V(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=z("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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function xv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=rt().ui.isMobile;H(i,a,m=>t(4,n=m));let s,u,f;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,s=Nn(r)),i.$$.dirty&64&&t(2,u=Nn(o)),i.$$.dirty&65&&t(3,f=o/r)},[r,s,u,f,n,a,o]}var Su=class extends W{constructor(e){super(),j(this,e,xv,Jv,U,{position:6,duration:0})}},Yr=Su;function $v(i){Ie(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 e4(i){let e;return{c(){e=T("div"),c(e,"class","timeline-stub svelte-1gqonyf"),O(e,"mobile",i[3])},m(t,n){S(t,e,n)},p(t,n){n&8&&O(e,"mobile",t[3])},i:Se,o:Se,d(t){t&&k(e)}}}function t4(i){let e,t,n,o,r=[n4,i4],l=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),O(e,"mobile",i[3])},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&O(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function i4(i){let e,t,n;function o(l){i[14](l)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new hm({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&4&&(s.showTimeline=l[2]),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function n4(i){let e,t;return e=new Yr({props:{position:i[4],duration:i[5]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function o4(i){let e,t,n,o,r=[t4,e4],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function l4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:m=void 0}=e,h=rt(),w=h.state.isLive$;H(i,w,b=>t(13,n=b));let g=h.ads.duration;H(i,g,b=>t(5,l=b));let C=h.ads.position;H(i,C,b=>t(4,r=b));let v=h.ui.isMobile;H(i,v,b=>t(3,o=b));let I;function y(b){m=b,t(0,m)}return i.$$set=b=>{"isAds"in b&&t(1,a=b.isAds),"canRewindLive"in b&&t(10,s=b.canRewindLive),"isRewindableLive"in b&&t(11,u=b.isRewindableLive),"isHidden"in b&&t(12,f=b.isHidden),"ref"in b&&t(0,m=b.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,I=!f&&(!n||n&&s&&u||a))},[m,a,I,o,r,l,w,g,C,v,s,u,f,n,y]}var Tu=class extends W{constructor(e){super(),j(this,e,l4,o4,U,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},$v)}},Zr=Tu;var vm=require("@vkontakte/videoplayer-shared");function r4(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{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 f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{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&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function s4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pu=class extends W{constructor(e){super(),j(this,e,s4,r4,U,{})}},gm=Pu;function a4(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function u4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Iu=class extends W{constructor(e){super(),j(this,e,u4,a4,U,{})}},bm=Iu;function c4(i){Ie(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 f4(i){let e,t,n,o;e=new gm({});function r(s,u){if(s[4]==="FULL")return p4;if(s[4]==="COUNT")return m4}let l=r(i,-1),a=l&&l(i);return{c(){q(e.$$.fragment),t=B(),a&&a.c(),n=dt()},m(s,u){V(e,s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),R(e,s),a&&a.d(s)}}}function d4(i){let e,t,n,o,r,l;return r=new bm({}),{c(){e=T("span"),t=Ne(i[2]),n=B(),o=T("div"),q(r.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),p(e,t),S(a,n,s),S(a,o,s),V(r,o,null),l=!0},p(a,s){(!l||s&4)&&Qe(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),R(r)}}}function m4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Ne(t),c(e,"class","text count svelte-1yhs2ga")},m(o,r){S(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Qe(n,t)},d(o){o&&k(e)}}}function p4(i){let e,t;return{c(){e=T("span"),t=Ne(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&4&&Qe(t,n[2])},d(n){n&&k(e)}}}function _4(i){let e,t,n,o,r=[d4,f4],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function h4(i){let e,t,n;function o(l){i[19](l)}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:[_4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function g4(i,e,t){var Z,x,se;let n,o,r,l,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:m=[]}=e,h=rt(),w=(x=(Z=h.callbacks)==null?void 0:Z.onEpisodeChanged)!=null?x:vm.noop,g=!!((se=h.callbacks)!=null&&se.onEpisodeClicked),C=h.ui.currentGridType$;H(i,C,L=>t(18,a=L));let v=h.ui.episodes.openedByKeyboard$;H(i,v,L=>t(17,l=L));let I=h.ui.episodes.panelOpened$;H(i,I,L=>t(3,r=L));let y=h.ui.isMobile;H(i,y,L=>t(6,s=L));let b,P=L=>{var J,Y,F;if(!!((J=h.callbacks)!=null&&J.onEpisodeClicked)){let G=gl(L);v.set(G),I.set(!0),(F=(Y=h.callbacks)==null?void 0:Y.onEpisodeClicked)==null||F.call(Y,G)}},A,M,N,te=async(L,K,J)=>{await Qn(),(L==null?void 0:L.getAttribute("aria-expanded"))==="false"&&K&&!J&&(v.set(!1),L.focus())};function _e(L){b=L,t(1,b)}return i.$$set=L=>{"position"in L&&t(13,u=L.position),"duration"in L&&t(14,f=L.duration),"timeCodes"in L&&t(0,m=L.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/f),i.$$.dirty&114689){let L=Qr(n,f,m);L&&(A==null?void 0:A.text)!==L.text&&(w(L),t(15,A=L))}i.$$.dirty&32768&&t(2,o=(A==null?void 0:A.text)||""),i.$$.dirty&262144&&(On(a,"xl")?t(4,M="FULL"):On(a,"m")&&Z1(a,"xl")?t(4,M="COUNT"):t(4,M="SHORT")),i.$$.dirty&4&&t(5,N=`${z("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&te(b,l,r)},[m,b,o,r,M,N,s,g,C,v,I,y,P,u,f,A,n,l,a,_e]}var Eu=class extends W{constructor(e){super(),j(this,e,g4,h4,U,{position:13,duration:14,timeCodes:0},c4)}},Xr=Eu;function b4(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(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"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function v4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Lu=class extends W{constructor(e){super(),j(this,e,v4,b4,U,{})}},ym=Lu;function y4(i){let e,t;return e=new ym({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function w4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:z("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[y4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function k4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Au=class extends W{constructor(e){super(),j(this,e,k4,w4,U,{ref:0,hidden:1,disabled:2,click:3})}},Jr=Au;function C4(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function S4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Mu=class extends W{constructor(e){super(),j(this,e,S4,C4,U,{})}},wm=Mu;function T4(i){Ie(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function P4(i){let e,t;return e=new wm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function I4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Vu=class extends W{constructor(e){super(),j(this,e,I4,P4,U,{isOpened:0},T4)}},km=Vu;function E4(i){let e,t;return e=new km({props:{isOpened:i[3]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L4(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[E4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function A4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,r=f.disabled),"graphIsOpened"in f&&t(3,l=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var Ru=class extends W{constructor(e){super(),j(this,e,A4,L4,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},xr=Ru;function M4(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function V4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Bu=class extends W{constructor(e){super(),j(this,e,V4,M4,U,{})}},$r=Bu;var Sm=require("@vkontakte/videoplayer-shared");function R4(i){Ie(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 Cm(i){let e;return{c(){e=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function B4(i){let e,t,n,o,r=i[1]&&Cm(i);return n=new $r({}),{c(){r&&r.c(),e=B(),t=T("div"),q(n.$$.fragment),c(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),S(l,e,a),S(l,t,a),V(n,t,null),o=!0},p(l,a){l[1]?r||(r=Cm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&O(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),r&&r.d(l),R(n)}}}function q4(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:z("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:xn.KeyK,$$slots:{default:[B4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function D4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=Sm.noop}=e;function s(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,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var qu=class extends W{constructor(e){super(),j(this,e,D4,q4,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},R4)}},Xl=qu;function N4(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function O4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Du=class extends W{constructor(e){super(),j(this,e,O4,N4,U,{})}},Tm=Du;function F4(i){let e,t;return e=new Tm({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function H4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:z("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[F4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function z4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Nu=class extends W{constructor(e){super(),j(this,e,z4,H4,U,{ref:0,hidden:1,disabled:2,click:3})}},es=Nu;var Ou=require("@vkontakte/videoplayer-shared");function U4(i){Ie(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function K4(i){let e,t,n,o;return{c(){e=T("img"),c(e,"class","icon svelte-1x1zctw"),Ls(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(r,l){S(r,e,l),n||(o=pe(e,"error",i[7]),n=!0)},p(r,l){l&1&&!Ls(e.src,t=r[0])&&c(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function W4(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){S(t,e,n)},p:Se,d(t){t&&k(e)}}}function j4(i){let e;function t(r,l){return r[5]?W4:K4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function G4(i){let e,t;return e=new vt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[j4]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q4(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=Ou.noop}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,f=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===Ou.noop),i.$$.dirty&272&&t(6,o=n||s)},t(5,r=!1),[l,a,u,f,n,r,o,m,s]}var Fu=class extends W{constructor(e){super(),j(this,e,Q4,G4,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},U4)}},ts=Fu;var Zm=require("@vkontakte/videoplayer-shared");var gn=require("@vkontakte/videoplayer-core"),ss=require("@vkontakte/videoplayer-shared"),ht=require("@vkontakte/videoplayer-shared"),ao=require("@vkontakte/videoplayer-statistics"),aL=require("@vkontakte/videoplayer-interactive");var At=require("@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 Y4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",is=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={slotRequested$:new At.Subject,started$:new At.Subject,paused$:new At.Subject,resumed$:new At.Subject,ended$:new At.Subject,skipped$:new At.Subject,clicked$:new At.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,At.addScript)(Y4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,At.assertNonNullable)(this.adsState),(0,At.assertNonNullable)(this.playerState),(0,At.assertNonNullable)(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"}),$e(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=({currentTime:e})=>{(0,At.assertNonNullable)(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),(0,At.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,At.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{(0,At.assertNonNullable)(this.adman),(0,At.assertNonNullable)(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.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),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)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:m}=e,h,w=this.playerState&&$e(this.playerState.vsid);w&&(h=parseInt(w,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:f,...u};m||delete g.preview;let C={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(C),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch(v){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}(0,At.assertNonNullable)(this.actions),(0,At.assertNonNullable)(this.adsState),(0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=$e(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((0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(this.adman),(0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(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&&(0,At.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Im=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 Hu=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:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new ns,{startTime:u,endTime:f}=s.parse(a);r.startTime=u,r.endTime=f}else if(a.trim()!==""){let s=new zu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},ns=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,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},zu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((f,m)=>{let h=l.indexOf(m,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new ns;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},Em=Hu;var os=require("@vkontakte/videoplayer-shared"),Co,Zt,Uu=0,Ku=!1,Lm=(i,e,t)=>{var u;let n=i>=Uu,o=i<Uu,r=(f,m=0,h=0)=>f<m&&f<h,l=(f,m=0,h=0)=>f>=m&&f<=h,a=(f,m=0,h=0)=>f>m&&f>h,s=(u=t.find(({lang:f})=>f===e.value))==null?void 0:u.subtitles;if(Uu=i,o&&(Ku=!1),(0,os.isNonNullable)(Co)&&l(i,Co.startTime,Co.endTime)&&Co.lang===e.value)return Co;if(!(0,os.isNonNullable)(Zt)&&(s!=null&&s.length)&&!Ku){let f=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Zt=f&&{...f,lang:e.value},Co=void 0,!(0,os.isNonNullable)(Zt)&&s[s.length-1].endTime<i&&(Ku=!0);return}else{if(l(i,Zt==null?void 0:Zt.startTime,Zt==null?void 0:Zt.endTime))return Co=Zt,Zt=void 0,Co;(n&&a(i,Zt==null?void 0:Zt.startTime,Zt==null?void 0:Zt.endTime)||o&&r(i,Zt==null?void 0:Zt.startTime,Zt==null?void 0:Zt.endTime))&&(Zt=void 0)}};var Am=require("@vkontakte/videoplayer-shared"),rL=require("@vkontakte/videoplayer-statistics"),ls=class{constructor(e,t=new Am.Subscription){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Mm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:l,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:m,uiConfig:h,coreConfig:w,player:g,disabledControls:C,isInteractive:v,interactiveRanges$:I,isInteractiveTime$:y,replayInteractive:b,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:A,additionalButtons:M,looped:N=!1,statistics:te,saveRate:_e})=>{var il,ir,Ol,Fl;let Z={...w,configName:[...(il=w.configName)!=null?il:[],"ui"],isAudioDisabled:l,live:{...(ir=w.live)!=null?ir:{},isLiveCatchUpMode:!!o}},x=h,se=ss.Tracer.createRootTracer(x.features.saveTraceInfoToFile),L=se.createComponentTracer("Store"),K=g||new gn.Player(Z,se),J=new ht.Logger,Y=new is(J,{loadTimeout:x.ads.loadTimeout,initTimeout:x.ads.initTimeout,runtimeTimeout:x.ads.runtimeTimeout}),F=Ho.getInstance(),G=u==null?void 0:u.pictureInPictureApi,X=u==null?void 0:u.annotationsApi,le=J.createComponentLog("Store"),qe,Xe,Ee={},Be=te?Tt(te.oneStat.vsid$):Kn(void 0),De=Fe(bo()),xe=(Ol=G==null?void 0:G.info.isActive$)!=null?Ol:new ht.ValueSubject(!1),ae=G==null?void 0:G.info.type,he=Fe(0),at=Fe([]),Ce=(0,ht.merge)(K.events.fatalError$,K.events.managedError$).subscribe(E=>at.update(ee=>[...ee,E])),Ke=Kn(!1,E=>{let ee=K.events.fatalError$.subscribe(()=>E(!0));return()=>ee.unsubscribe()}),mt=async E=>{var ve;let ee=Object.values(ht.InterfaceLanguage).includes(E);if(x.downloadVKLanguages&&(ee&&x.updateBuiltinLanguages||!Ks(E))){let ot;try{ot=await(0,ht.loadVKLangPack)(E,lf,rf)}catch(gt){(ve=te==null?void 0:te.oneStat)==null||ve.logError({errorType:"VKLangPack",fatal:!1}),F==null||F.report(gt,{errorType:"VKLangPack",fatal:!1})}ot&&(Us({language:E,pack:ot,fallback:x.defaultLanguage}),Ye.set(E))}Ks(E)&&Ye.set(E)},Ye=Fe(i),Ge=Fe(e);mt(i);let Ze=(E,ee)=>{let ke=$e(Ye);return Ws(ke,E,ee,x.defaultLanguage)},et=Fe("thumb"),ce=(()=>{let E=Mi([Ke,et],([ee,ke])=>ee?"crashed":ke);return{...E,is:ee=>$e(E)===ee}})(),Pe=(()=>{let E=Fe(new Set(C));return{...E,add:ee=>{E.update(ke=>new Set([...ke].concat(ee)))},remove:ee=>{E.update(ke=>{let ve=[...ke];return new Set(Array.isArray(ee)?ve.filter(ot=>!ee.includes(ot)):ve.filter(ot=>ot!==ee))})},includes:ee=>{let ke=$e(E);return Array.isArray(ee)?ee.every(ve=>ke.has(ve)):ke.has(ee)}}})();L.log("create store"),le({message:"create store"});let We=E=>{let ee=E.container;ee.append(K.experimental.element$.getValue()),tt=new MutationObserver(ke=>{let{removedNodes:ve}=ke[0];ve.length&&ee.append(K.experimental.element$.getValue())}),tt.observe(ee,{childList:!0})},re=E=>{le({message:`init video, config: ${JSON.stringify(E)}`}),v?We(E):K.initVideo(E),L.log("init video",{isInteractive:v}),E.subtitles&&K.setExternalTextTracks(E.subtitles),qe=E},Te=new ht.Subject,pt=E=>Te.next(E),Le=new ht.Subject,ut=new ht.Subject,me=new ht.Subject,tt=null,Ct={actionRewind$:Le,actionSeek$:ut,inPiP$:xe,inFullscreen$:new ht.Observable(E=>De.subscribe(ee=>E.next(ee))),actionSetSubtitle$:me,nextMovie$:Te};if(te){let{oneStat:E,statSubscription:ee}=te;v||ee.add(E.attachTo(K)),ee.add(E.attachToUi(Ct)),ee.add(E.attachToAds(Y.events)),E.authorize(r).catch(ke=>{le({message:`onestat auth error ${String(ke)}`})})}if(F){let E=new ht.Subscription,ee=(ke,ve)=>E.add(ke.subscribe(ve));if(ee(K.events.managedError$,ke=>{F.logIError(ke)}),ee(K.events.fatalError$,ke=>{F.logIError(ke,!0)}),te){let{oneStat:ke}=te;ee(ke.experimental.error$,ve=>{F.logIError(ve)})}F.sentrySubscription.add(E)}let bt=()=>{ht.clientChecker.isIOS&&Xe&&Hf(Xe)},Ue=new ht.Subscription().add(K.experimental.element$.subscribe(E=>{E&&(Xe=E,E.classList.add("player-media"),Uo(G)&&(G.updateVideoElement(),G.registryEventHandlers()),v&&E.setAttribute("pip","false"))})).add(K.events.ended$.subscribe(()=>{var E;bt(),(E=s==null?void 0:s.onEnded)==null||E.call(s)})).add(K.events.started$.subscribe(async()=>{var ee,ke;Uo(G)&&await(G==null?void 0:G.revealPictureInPicture());let E=K.info.muted$.getValue();(ee=s==null?void 0:s.onStarted)==null||ee.call(s),(ke=Ee.onStarted)==null||ke.call(Ee,E)})).add(K.events.willSeek$.subscribe(({from:E,to:ee})=>{var ke;(ke=s==null?void 0:s.onSeek)==null||ke.call(s,E,ee)})).add(K.info.position$.subscribe(E=>{var ke;let ee=K.info.duration$.getValue();isFinite(ee)&&ee>0&&((ke=s==null?void 0:s.onTimeupdate)==null||ke.call(s,ee,E),Y.setPosition(E,ee))})).add(K.events.fatalError$.subscribe(()=>{var E;(E=s==null?void 0:s.onCrashed)==null||E.call(s)})).add(K.events.loadedMetadata$.subscribe(()=>{It.state.loadedMetadata$.set(!0)})).add(K.info.is3DVideo$.subscribe(E=>{It.ui.is3DVideo.set(E)})).add(K.info.isEnded$.subscribe(E=>{v&&(E?(y!=null&&y.getValue()&&Pe.add(ur),Pe.add("PLAY_BUTTON")):Pe.remove("PLAY_BUTTON"))})).add(K.info.liveTime$.subscribe(E=>{var ee;(ee=s==null?void 0:s.onLiveTime)==null||ee.call(s,E)})).add(K.info.isStalled$.subscribe(E=>{var ee;(ee=s==null?void 0:s.onStalledChanged)==null||ee.call(s,E)})).add(Y.events.started$.subscribe(()=>{var E,ee;(ee=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onStarted)==null||ee.call(E)})).add(Y.events.ended$.subscribe(()=>{var E,ee;(ee=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onCompleted)==null||ee.call(E)})),Ot=new ht.Subscription,Vt=()=>{Ot.add(K.events.log$.subscribe(E=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${E.component}`,E.message)})).add(J.log$.subscribe(E=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${E.component}.`,E.message)}))},St=()=>{Ot.unsubscribe()},ni=(E,ee)=>{L.log("start camera manual rotation",{mx:E,my:ee}),K.startCameraManualRotation(E,ee)},ct=(E=!1)=>{L.log("stop camera manual rotation",{immediate:E}),K.stopCameraManualRotation(E)},lt=(E,ee,ke)=>{L.log("move camera focus px",{xpx:E,ypx:ee,dt:ke}),K.moveCameraFocusPX(E,ee,ke)},be=()=>{K.holdCamera()},Je=()=>{K.releaseCamera()},_t=Kn(K.info.position$.getValue(),E=>{let ee,ke,ve=()=>{let ot=K.info.playbackState$.getValue(),gt=K.info.isLive$.getValue(),Kt=K.info.duration$.getValue(),Bt=K.info.position$.getValue();if([gn.PlaybackState.PLAYING,gn.PlaybackState.PAUSED].includes(ot)){let rn=gt?Bt-Kt:K.getExactTime();rn!==ke&&E(rn),ke=rn}ee=requestAnimationFrame(ve)};return ve(),()=>cancelAnimationFrame(ee)}),Ft=Tt(xe),yt=Tt(K.info.playbackState$),Xt=Tt(K.info.currentBuffer$),mi=Tt(K.info.isEnded$),Mt=Tt(K.info.isLive$),zi=x.features.playbackRate?Tt(K.info.canChangePlaybackSpeed$):Kn(!1),an=Tt(K.info.liveBufferTime$),oi=Tt(K.info.volume$),Vi=Tt(K.info.muted$),un=Ds(K.info.autoQualityLimits$.pipe((0,ht.map)(({max:E})=>E!==void 0)),((Fl=K.info.autoQualityLimits$.getValue())==null?void 0:Fl.max)!==void 0),Ui=Tt(K.info.autoQualityLimitingAvailable$),cn=Tt(K.info.availableQualities$),Ri=Tt(K.info.availableQualitiesFps$),Bi=Tt(K.info.chromecastState$),pi=Tt(K.info.chromecastDeviceName$),_i=Tt(K.info.currentFormat$),yi=Tt(K.info.throughputEstimation$),wi=Tt(K.info.videoBitrate$),Jt=Tt(K.info.intrinsicVideoSize$),zt=Tt(K.info.duration$),Ki=Tt(K.info.isAudioAvailable$),Wt=null,ki=K.info.isBuffering$,qi=Kn(ki.getValue(),E=>{let ee=ki.subscribe(ke=>{ke&&Wt===null?Wt=window.setTimeout(()=>{E(ki.getValue()),Wt=null},x.loaderDelay):E(ke)});return()=>{ee.unsubscribe(),Wt&&clearTimeout(Wt)}}),Wi=()=>{Wt&&clearTimeout(Wt),Wt=null},li=Mi([zt,Mt],([E,ee])=>ee?-E:E),wt=Mi([yt],([E])=>E===gn.PlaybackState.PLAYING),ji=Tt(K.info.atLiveEdge$),Di=Tt(K.info.atLiveDurationEdge$),Pt=Tt(K.info.position$),Gi=Mi([Pt,zt],([E,ee])=>isFinite(E)&&isFinite(ee)&&!!ee),Qi=Mi([Bi],([E])=>E===gn.ChromecastState.CONNECTED),xt=Tt(K.info.availableVideoStreams$),Ci=x.features.audioLanguages?Tt(K.info.availableAudioStreams$):Kn([]),hi=Tt(K.info.currentVideoStream$),Si=Tt(K.info.currentAudioStream$),$t=E=>{E.language&&Hs(E.language),K.setVideoStream(E)},jt=E=>{E.language&&Hs(E.language),K.setAudioStream(E)},ri=E=>{let ee;if(E.length===1&&(ee=E.at(0)),ee!=null||(ee=E.find(ve=>"isDefault"in ve&&ve.isDefault)),ee)return ee;let ke=Vf();return ke&&(ee=E.find(({language:ve})=>ke===ve)),ee!=null||(ee=E.at(0)),ee},Ni=!1;Ue.add(K.info.availableAudioStreams$.subscribe(E=>{if(!Ni&&E.length){let ee=ri(E);ee&&(K.setAudioStream(ee),Ni=!0)}}));let ci=!1;Ue.add(K.info.availableVideoStreams$.subscribe(E=>{if(!ci&&E.length){let ee=ri(E);ee&&(K.setVideoStream(ee),ci=!0)}}));let fi=Fe(void 0),si=Tt(K.info.isAutoQualityEnabled$,E=>E&&fi.set(void 0)),gi=Tt(K.info.currentQuality$,()=>fi.set(void 0)),Yi=Mi([fi,gi],([E,ee])=>E!=null?E:ee),vn=Mi([cn,Ri,si,Yi,_i],([E,ee,ke,ve,ot])=>{let gt=[];ot!==gn.VideoFormat.MPEG&&gt.push({value:"auto",displayValue:Ze("auto_quality_option"),selected:ke});let Kt=E.filter(Bt=>!(0,ss.isInvariantQuality)(Bt));for(let Bt of Kt){let rn=ee[Bt];gt.push({value:Bt,displayValue:`${Bt}${rn?Im(rn):""}`,selected:ke?!1:Bt===ve})}return gt}),Zi=Tt(K.info.currentPlaybackRate$),di=Mi([Zi,ji,Di],([E,ee,ke])=>{let ve=ke||v?1:x.controls.playbackRateMin,ot=ee?1:x.controls.playbackRateMax,gt=x.controls.playbackRateStep,Kt=[];for(let Bt=ve;Bt<=ot;Bt+=gt)Kt.push({value:Bt,displayValue:Bt===1?Ze("playback_rate_1"):Ze("playback_rate",{multiplier:Bt.toString(10)}),selected:E===Bt});return Kt}),ei=x.features.subtitles?Tt(K.info.availableTextTracks$):Kn([]),Xi=Mi([ei],([E],ee)=>{let ke=[],ve=[];for(let ot of E)ot.url&&ke.push(fetch(ot.url));Promise.allSettled(ke).then(ot=>{for(let[gt,Kt]of ot.entries())Kt.status==="fulfilled"&&Kt.value.text().then(Bt=>{let rn=new Em,Ao=E[gt].language,nl=!!E[gt].isAuto,Mo=rn.parse(Bt);Ao&&Mo&&ve.push({lang:Ao,subtitles:Mo,isAuto:nl}),gt===ot.length-1&&ee(ve)})})}),Nt={displayValue:Ze("subtitles_off"),value:"off"},Ut=Fe({...Nt}),Ji=Mi([Xi,Ut,Xi],([E,ee])=>{if((E==null?void 0:E.length)>0){let ke=[{...Nt,selected:(ee==null?void 0:ee.value)===Nt.value}];for(let{lang:ve,isAuto:ot}of E)Go[ve]&&ke.push({displayValue:ot?Ze("subtitles_auto",{language:Go[ve]}):Go[ve],value:ve,selected:(ee==null?void 0:ee.value)===ve,isAuto:ot});return ke}else return[]}),Ti=Mi([_t,Ut,Xi],([E,ee,ke])=>{if(ee&&ee.value!==Nt.value)return Lm(E,ee,ke)}),Oi=Mi([Ti],([E])=>E!=null&&E.texts?E.texts:[]),fn=Fe(!0),it=Mi([Xt,li,Pt,an],([E,ee,ke,ve])=>{var Bt;let ot=(Bt=E==null?void 0:E.end)!=null?Bt:0;if(!ve)return ot/ee;let Kt=-ke+ve-ee;return(ot-Kt)/ee}),bi=Tt(K.info.availableSources$),ai=Mi([bi],([E])=>Object.keys((E==null?void 0:E[gn.VideoFormat.MPEG])||{}).length>0),je=()=>{var ke,ve,ot;let E=Object.keys(((ve=(ke=K.info.availableSources$)==null?void 0:ke.getValue())==null?void 0:ve[gn.VideoFormat.MPEG])||{}),ee=(0,ht.getHighestQuality)(E)||ht.VideoQuality.Q_144P;return(ot=qe.sources[gn.VideoFormat.MPEG])==null?void 0:ot[ee]},xi=()=>{var ee;let E=je();if(E)L.log("download video",{url:E}),bf(E,((ee=qe==null?void 0:qe.meta)==null?void 0:ee.title)||"video");else{let ke="There is no URL for download video";L.log("download video",{message:ke}),le({message:ke})}},yn=()=>{le({message:"toggle muted"});let E=K.info.muted$.getValue(),ee=K.info.volume$.getValue(),ke=ee===0||E,ve=!ke;L.log("toggle muted",{muted:E,volume:ee,soundIsOff:ke,nextValue:ve}),Pi(ve)},dn=()=>{L.log("close settings menu"),It.ui.settingsMenuVisible.set(!1)},Fi=E=>{L.log("open settings menu",{wasOpenedByKeyboard:E}),It.ui.settingsMenuOpenedByKeyboard.set(!!E),It.ui.settingsMenuVisible.set(!0)},$i=E=>{$e(It.ui.settingsMenuVisible)?dn():Fi(E)},mn=(E,ee=E,ke=!1)=>{var gt,Kt,Bt;let ve=!ke,ot=K.info.muted$.getValue();le({message:`set volume, volume: ${E}, preferredVolume: ${ee}, internalCall: ${ve}`}),L.log("set volume",{volume:E,preferredVolume:ee,internalCall:ve}),K.setVolume(E),Y.setVolume(E),ve&&((gt=s==null?void 0:s.onVolumeChange)==null||gt.call(s,E)),Os(ee),ot?(K.setMuted(!1),ve&&((Kt=s==null?void 0:s.onUnmute)==null||Kt.call(s)),dr(!1)):!ot&&E===0&&(K.setMuted(!0),ve&&((Bt=s==null?void 0:s.onMute)==null||Bt.call(s)),dr(!0))},Pi=(E,ee=!1)=>{var ot,gt,Kt,Bt;let ke=!ee,ve=K.info.volume$.getValue();if(le({message:`set muted, currentVolume: ${ve}, mute: ${E}, internalCall: ${ke}`}),L.log("set muted",{mute:E,currentVolume:ve,internalCall:ke}),K.setMuted(E),Y.setVolume(E?0:ve),dr(E),ke&&(E?(ot=s==null?void 0:s.onMute)==null||ot.call(s):(gt=s==null?void 0:s.onUnmute)==null||gt.call(s)),ve===0){let rn=(Kt=fr())!=null?Kt:x.volumeDefault;rn===0&&(rn=x.volumeMinRestore,Os(rn)),K.setVolume(rn),Y.setVolume(rn),ke&&((Bt=s==null?void 0:s.onVolumeChange)==null||Bt.call(s,rn))}},ti=Fe(!1),en=E=>{L.log("set looped",{isLooped:E}),ti.set(E),K.setLooped(E)};en(N);let Ii=()=>{K.prepare()},Vn=()=>{(0,ht.assertNonNullable)(It);let E=$e(It.ui.controls.disabledControls$),ee=$e(It.playerPhase),ke={playerPhase:ee,isInteractive:v,isVideoEnded:!1,action:"none"};if(E.has("PLAY_BUTTON"))return;if(le({message:"toggle play"}),ee==="ads"){ke.action="play",L.log("toggle adman play",ke),Y.togglePlay();return}let ve=()=>{var gt;le({message:"toggle play, call player.play"}),ke.action="play",K.play(),(gt=s==null?void 0:s.onPlay)==null||gt.call(s)},ot=()=>{var gt;le({message:"toggle play, call player.pause"}),ke.action="pause",K.pause(),(gt=s==null?void 0:s.onPause)==null||gt.call(s)};if(K.info.isEnded$.getValue()){if(le({message:"toggle play, video ended, seek to 0"}),Le.next(),ut.next(ao.SeekAction.REWIND),v){b==null||b();return}K.seekTime(0),ve()}else K.info.playbackState$.getValue()!==gn.PlaybackState.PLAYING?ve():ot();L.log("toggle play",ke)},wn=E=>{le({message:`set quality, quality: ${E}`}),L.log("set quality",{quality:E}),K.setAutoQuality(E==="auto"),E!=="auto"?(Tf(t,E),fi.set(E),K.setQuality(E)):Fs()},kn=E=>{le({message:`set trafficSavingEnabled, value: ${E}`}),L.log("set traffic saving enabled",{trafficSavingEnabled:E}),K.setAutoQualityLimits({max:E?x.trafficSavingLimit:void 0}),Af(E)},Cn=E=>{L.log("set playback rate",{playbackRate:E}),K.setPlaybackRate(E),x.features.saveRate&&_e&&!K.info.isLive$.getValue()&&Rf(E)},pn=()=>{let E=$e(di),ee=E.findIndex(({selected:ve})=>ve);if(ee===E.length-1)return;let ke=E[ee+1];Cn(ke.value)},Rn=()=>{let E=$e(di),ee=E.findIndex(({selected:ve})=>ve);if(ee===0)return;let ke=E[ee-1];Cn(ke.value)},tn=E=>{L.log("set subtitles",{...E}),E&&E.value!==Nt.value&&me.next(E.isAuto?E.value+"_auto":E.value),Ut.set(E)},nn=()=>{L.log("toggle subtitles");let E=$e(Ji),ee=$e(Ut),ke=$e(Ye);if((ee==null?void 0:ee.value)===Nt.value){let ve=E.filter(ot=>ot.value!==Nt.value).find(ot=>ot.value===ke)||E[1];tn(ve!=null?ve:{...Nt})}else tn({...Nt,selected:!1})},Rt=(E,ee,ke=!0)=>{if(le({message:`seek to time, time: ${E}`}),L.log("seek to time",{time:E,action:ee,forcePrecise:ke}),ut.next(ee),K.info.isLive$.getValue()){let ve=K.info.duration$.getValue(),ot=Math.min(0,ve+E);K.seekTime(ot,ke)}else{if(y!=null&&y.getValue())return;K.seekTime(_o(E),ke)}},Bn=E=>{le({message:`seek to episode start time: ${E}`}),L.log("seek to episode start time",{time:E}),Rt(E,ao.SeekAction.EPISODE,!0)},Sn=(E,ee)=>{le({message:`seek to percent, percent: ${E}`}),L.log("seek to percent",{percent:E,action:ee});let ke=Math.round($e(li)*E);Rt(ke,ee,!1)},Fn=E=>{le({message:`seek external, time: ${E}`}),L.log("seek external",{time:E}),ut.next(ao.SeekAction.UNKNOWN),K.seekTime(K.info.isLive$.getValue()?-E:E)},ii=E=>{var ve,ot;let ee=(ve=E.max)!=null?ve:"none",ke=(ot=E.min)!=null?ot:"none";le({message:`set auto quality limitation. Max: ${ee}. Min: ${ke}`}),L.log("set auto quality limits",{max:ee,min:ke}),K.setAutoQualityLimits(E)},Hn=E=>{le({message:`seek external to episode start time: ${E}`}),L.log("seek external to episode start time",{time:E}),Rt(E,ao.SeekAction.EPISODE,!0)},zn=E=>{le({message:`set playback rate to: ${E}`}),L.log("set playback rate external",{playbackRate:E}),K.setPlaybackRate(E)},Tn=Fe(void 0),Pn=Fe(!1),An=E=>{le({message:`start scrubbing, progress: ${E}`}),L.log("start scrubbing",{progress:E}),Pn.set(!0),_n(E)},_n=E=>{Tn.set(E)},ne,kt,on=()=>{Tn.set(void 0),Pn.set(!1)},Ei=()=>{clearTimeout(kt),clearTimeout(ne),ne=window.setTimeout(()=>{on()},500),Xe==null||Xe.removeEventListener("seeked",Ei)},ie=E=>{le({message:`complete scrubbing, progress: ${E}`}),L.log("complete scrubbing",{progress:E}),Sn(E,ao.SeekAction.SLIDER),$e(It.ui.isMobile)&&$e(It.state.currentFormat$)===gn.VideoFormat.HLS?(Xe==null||Xe.addEventListener("seeked",Ei),kt=window.setTimeout(()=>{Ei()},300)):on()},ft=Mi([_t,li,Tn],([E,ee,ke],ve)=>{ve((0,ht.isNonNullable)(ke)?ke*ee:E)}),Gt=Fe({width:0,height:0}),qn=Mi([Gt],([{width:E}],ee)=>{let ke=X1(E);ee(ke)}),Un=Fe(!1),hn=Mi([qn,Un],([E,ee])=>ee?M.filter(ke=>!ke.hideOnMobile):M.filter(ke=>{var ve;return!((ve=ke.hideOnDesktopGridTypes)!=null&&ve.includes(E))})),to=Mi([Un,Ke],([E,ee],ke)=>{ke(E&&ee)}),oe=()=>{ut.next(ao.SeekAction.LIVE),le({message:"switch to active live"}),L.log("switch to active live"),K.seekTime(0),K.info.playbackState$.getValue()!==gn.PlaybackState.PLAYING&&It.actions.internal.togglePlay()},So=()=>{L.log("skip adman"),Y.skip()},Dl=(E=!0)=>{(0,ht.assertNonNullable)(It),le({message:`switch from ads to video, callPlay: ${E}`}),L.log("switch from ads to video",{callPlay:E}),et.set("video"),E&&K.play()},Nl=()=>{(0,ht.assertNonNullable)(It),le({message:"switch from video to ads"}),L.log("switch from video to ads"),It.actions.internal.pause(),bt(),et.set("ads")},Xo=E=>{(0,ht.assertNonNullable)(It);let ee=E?"LiveWaitingStart":"thumb";L.log("set live waiting start",{state:E,playerPhase:ee}),et.set(ee)},To=E=>{(0,ht.assertNonNullable)(It);let ee=E?"LiveWaitingRecover":"thumb";L.log("set live waiting recover",{state:E,playerPhase:ee}),et.set(ee)},Po=E=>{(0,ht.assertNonNullable)(It);let ee=E?"LiveWaitingRecord":"thumb";L.log("set live waiting record",{state:E,playerPhase:ee}),et.set(ee)},io=()=>((0,ht.assertNonNullable)(It),L.log("get debug text data"),hf(K,qe,It)),co=()=>((0,ht.assertNonNullable)(It),JSON.stringify(se.getFinishedSpans())),fo=()=>((0,ht.assertNonNullable)(It),gf(K,qe,It)),Jo=()=>Xe,xo=()=>{le({message:"toggle chromecast"}),L.log("toggle chromecast"),K.toggleChromecast()},mo=E=>{var ke;if((0,ht.assertNonNullable)(It),K.info.isEnded$.getValue())return;let ee=!E;if($e(It.playerPhase)==="ads"){le({message:`pause ads, internalCall: ${ee}`}),L.log("pause ads",{internalCall:ee}),Y.pause();return}le({message:`pause video, internalCall: ${ee}`}),L.log("pause video",{internalCall:ee}),ee&&((ke=s==null?void 0:s.onPause)==null||ke.call(s)),K.pause()},$o=E=>{var ke;(0,ht.assertNonNullable)(It);let ee=!E;if($e(It.playerPhase)==="ads"){le({message:`play ads, internalCall: ${ee}`}),L.log("play ads",{internalCall:ee}),Y.play();return}le({message:`play video, internalCall: ${ee}`}),L.log("play video",{internalCall:ee}),ee&&((ke=s==null?void 0:s.onPlay)==null||ke.call(s)),K.play()},Io=(E,ee)=>{(0,ht.assertNonNullable)(It),le({message:`first start, show ads: ${E}, internalCall: ${!ee}`}),L.log("first start",{showAds:E,external:ee}),E?et.set("ads"):(et.set("video"),ee?K.play():It.actions.internal.togglePlay())},po=()=>(le({message:"getting time codes"}),f),Eo=()=>{let E=po();if(!E||[0,1].includes(E.length))return;let ee=K.info.position$.getValue();return E.find(ke=>ke.time>ee)},el=E=>{let ee=E;ee||(ee=Eo());let ke=K.info.position$.getValue();L.log("seek to next episode",{currentTime:ke,...ee}),ee&&(le({message:"seek to next episode"}),Rt(ee.time,ao.SeekAction.EPISODE,!0))},Q=()=>{let E=po();if(!E||[0,1].includes(E.length))return;let ee=K.info.position$.getValue(),ke=E.findIndex(ot=>ot.time>ee),ve=ke===-1?E.length-2:ke-2;if(!(ve<0))return E[ve]},Lt=E=>{let ee=E;ee||(ee=Q());let ke=K.info.position$.getValue();L.log("seek to prev episode",{currentTime:ke,...ee}),ee&&(le({message:"seek to prev episode"}),Rt(ee.time,ao.SeekAction.EPISODE,!0))},In=()=>(le({message:"getting preview thumbs data"}),L.log("get preview thumbs data",{...m}),m),ln=async()=>{let E=G==null?void 0:G.isActive(),ee="none";G!=null&&G.isActive()?(ee="remove",await(G==null?void 0:G.remove())):(ee="request",await(G==null?void 0:G.request())),L.log("toggle picture in picture",{isActive:E,action:ee})},no=(E=-90)=>{L.log("rotate video",{alphaDiff:E}),he.update(ee=>ee+E)},En=Fe([]);I==null||I.subscribe(E=>{let ee=[];for(let ke=0;ke<E.length;ke++){let{range:[ve,ot],subjects:gt}=E[ke];ke===0&&ve!==0&&ee.push({time:0,text:"",interactive:!1,completed:!0}),ee.push({time:ve/1e3,text:"",interactive:!0,completed:!gt.length}),ot!==1/0&&ee.push({time:ot/1e3,text:"",interactive:!1,completed:!0})}En.set(ee)});let Jn=Fe(!1);y==null||y.subscribe(E=>{E&&$e(Pn)&&on()});let _o=E=>{if(!v)return E;let ee=$e(En),ke=$e(li),ot=$e(Pt)/ke,gt=ee.find(Kt=>Kt.interactive&&!Kt.completed&&Kt.time>ot);return typeof(gt==null?void 0:gt.time)=="number"?Math.min(E,gt.time-.05):E},tl=()=>{It.ui.episodes.panelOpened$.set(!1)},Lo=()=>{L.log("destroy store"),clearTimeout(kt),clearTimeout(ne),Ue.unsubscribe(),Ot.unsubscribe(),K.destroy(),Y.destroy(),te==null||te.destroy(),F==null||F.destroy(),Ce.unsubscribe(),tt==null||tt.disconnect(),tt=null},It={interfaceLanguage$:Ye,isCyrillicRelatedInterface$:Ge,initVideo:re,videoId:t,isClip:n,playerPhase:ce,vsid:Be,state:{positionExact$:_t,positionWithScrubbing$:ft,duration$:li,playbackState$:yt,isPlaying$:wt,isLoaderVisible:qi,bufferedProgress$:it,isLive$:Mt,canChangePlaybackSpeed$:zi,isActiveLive$:ji,isOldestAvailableLive$:Di,isRewindableLive$:Gi,isEnded$:mi,muted$:Vi,volume$:oi,trafficSavingEnabled$:un,autoQualityLimitingAvailable$:Ui,availableVideoStreams$:xt,availableAudioStreams$:Ci,videoStream$:hi,audioStream$:Si,currentQuality$:Yi,isAutoQualityEnabled$:si,availableQualities$:vn,currentPlaybackRate$:Zi,availablePlaybackRates$:di,currentSubtitle$:Ut,availableSubtitlesList$:Ji,currentSubtitleCaptions$:Oi,isAutoSubtitleCaptionVisible$:fn,chromecastState$:Bi,chromecastDeviceName$:pi,chromecastConnected$:Qi,currentFormat$:_i,throughputEstimation$:yi,videoBitrate$:wi,videoSize$:Jt,errorLog$:at,crashed$:Ke,isAudioAvailable$:Ki,isAudioDisabled:!!l,canDownload:x.features.download&&!!a,availableSources$:bi,hasMpegSources$:ai,isInteractive:v,showInteractiveGraph:x.features.interactiveGraph,showSeekToInteractive:x.features.seekToInteractive,showPlayPrevChapter:x.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:x.features.interactiveTimeIndicator&&!!$e(En).length,interactiveEpisodes$:En,isInteractiveTime$:y?Tt(y):Fe(!1),graphIsOpened$:Fe(!1),isInteractiveExpectation$:Jn,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:A,looped$:ti,loadedMetadata$:Fe(!1)},ui:{controlsVisible:Fe(!1),touched:Fe(!1),controls:{prevButton:Fe(void 0),playButton:Fe(void 0),replayButton:Fe(void 0),nextButton:Fe(void 0),playPrevChapterButton:Fe(void 0),seekToInteractiveButton:Fe(void 0),interactiveGraphButton:Fe(void 0),liveButton:Fe(void 0),time:Fe(void 0),episodes:Fe(void 0),volume:Fe(void 0),subtitles:Fe(void 0),settings:Fe(void 0),context:Fe(void 0),chromecast:Fe(void 0),pip:Fe(void 0),fullscreen:Fe(void 0),vkLogo:Fe(void 0),interactiveTimeIndicator:Fe(void 0),timeline:Fe(void 0),additionalButtons:M.length?M.reduce(E=>[...E,Fe(void 0)],[]):[],disabledControls$:Pe},modals:{hotKeyMap:{show:Fe(!1),data:Fe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:De,rotateAlpha:he,isAutoplay:Fe(!1),debugPanelVisible:Fe(!1),episodes:{panelOpened$:Fe(!1),openedByKeyboard$:Fe(!1)},contextMenu:{visible$:Fe(!1),btnRef$:Fe(void 0),openedByBtnKeyboard$:Fe(!1),openedByHotKey$:Fe(!1),lastActiveElem$:Fe(void 0),showContextMenuBtn$:Fe(!1),position$:Fe({top:0,left:0})},playerSize:Gt,isMobile:Un,mobileNotReportControlHidden$:to,mobileUnmuteButtonExpanded:Fe(!1),mobileUnmuteButtonVisible:Fe(!1),icon3DVideoVisible:Fe(!1),settingsMenuVisible:Fe(!1),settingsMenuOpenedByKeyboard:Fe(!1),scrubbingInProgress:Pn,is3DVideo:Fe(!1),isPictureInPictureActive$:Ft,pictureInPictureType$:Kn(ae),currentGridType$:qn,additionalButtons$:hn,interactiveHideMobileControls:Fe(!1),overlayContainer$:Fe(void 0),startedByKeyboard$:Fe(!1)},ads:{position:Fe(0),duration:Fe(0),playbackState:Fe("inactive"),canSkip:Fe(!1),secondsToWatchBeforeSkip:Fe(0),postrollPassed:Fe(!1)},webApi:{pictureInPictureApi:G,annotationsApi:X},actions:{internal:{preload:Ii,firstStart:E=>Io(E,!1),pause:()=>mo(!1),togglePlay:Vn,toggleMuted:yn,toggleSettingsMenu:$i,openSettingsMenu:Fi,closeSettingsMenu:dn,setVolume:mn,setVideoStream:$t,setAudioStream:jt,setQuality:wn,setTrafficSavingEnabled:E=>kn(E),setPlaybackRate:Cn,incrementPlaybackRate:pn,decrementPlaybackRate:Rn,setSubtitle:tn,toggleSubtitle:nn,togglePictureInPicture:ln,startScrubbing:An,progressScrubbing:_n,completeScrubbing:ie,toggleChromecast:xo,switchToActiveLive:oe,switchFromAdsToVideo:Dl,switchFromVideoToAds:Nl,skipAd:So,setLiveWaitingStart:Xo,setLiveWaitingRecover:To,setLiveWaitingRecord:Po,getDebugTextData:io,getTraceTextData:co,getDebugPanelData:fo,getVideoElement:Jo,seekTime:(E,ee,ke)=>Rt(E,ee,ke),clearDelayedBufferingCheckTimeout:Wi,seekEpisodeStartTime:Bn,seekToPercent:Sn,getNextEpisode:Eo,seekToNextEpisode:el,getPrevEpisode:Q,seekToPrevEpisode:Lt,startLogging:Vt,stopLogging:St,startCameraManualRotation:ni,stopCameraManualRotation:ct,moveCameraFocusPX:lt,holdCamera:be,releaseCamera:Je,getVideoEpisodes:po,getPreviewThumbsData:In,downloadVideo:xi,addLanguage:Us,setLanguage:mt,nextMovie:pt,videoRotate:no,correctSeekTimeToInteractive:_o,replayInteractive:b,setLooped:en},external:{firstStart:E=>Io(E,!0),play:()=>$o(!0),pause:()=>mo(!0),seekTime:E=>Fn(E),seekEpisodeStartTime:E=>Hn(E),setPlaybackRate:E=>zn(E),setAutoQualityLimits:E=>ii(E),setMuted:E=>Pi(E,!0),setVolume:E=>mn(E,E,!0),returnFocusToEpisodes:tl}},callbacks:s,setUiCallbacks:E=>{Ee={...E}},getAdmanWrapper:()=>Y,getLogger:()=>J,destroy:Lo};return It};var as=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let f=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!f&&!!(f.right-f.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(f.left-l.left):0,right:m?Math.round(f.right-l.left):0,top:m?Math.round(f.top-l.top):0,bottom:m?Math.round(f.bottom-l.top):0,isDisplayed:m})}};var us=async(i,e,t)=>{await Qn(),e&&t&&(t.focus(),i.set(!1))};function X4(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function J4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Wu=class extends W{constructor(e){super(),j(this,e,J4,X4,U,{})}},Vm=Wu;function x4(i){let e,t;return e=new Vm({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $4(i){let e,t,n;function o(l){i[8](l)}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:[x4]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function e3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=rt(),a=l.ui.contextMenu.visible$;H(i,a,I=>t(3,n=I));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,w=I=>{let y=gl(I),b=nd(h);f.set(b),s.set(y),a.set(!n)},g=()=>{u.set(!0)},C=()=>{u.set(!1)};function v(I){h=I,t(2,h)}return i.$$set=I=>{"disabled"in I&&t(0,o=I.disabled),"ariaLabel"in I&&t(1,r=I.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,w,g,C,v]}var ju=class extends W{constructor(e){super(),j(this,e,e3,$4,U,{disabled:0,ariaLabel:1})}},Rm=ju;function t3(i){Ie(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 i3(i){let e,t;return e=new Fr({props:{completed:!0}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function n3(i){let e,t,n,o,r,l,a,s,u,f;function m(w){i[22](w)}let h={tooltipContent:z("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[i3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Dt({props:h}),ge.push(()=>ze(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),q(t.$$.fragment),o=B(),r=T("div"),l=B(),a=T("div"),c(r,"class","ref-block svelte-17imlp9"),O(r,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),O(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),O(e,"mobile",i[2]),O(e,"fullscreen",i[6]),O(e,"invisible",i[1])},m(w,g){S(w,e,g),V(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(f=[pe(e,"mousemove",st(i[21])),pe(e,"mouseleave",i[15])],u=!0)},p(w,g){let C={};g[0]&32&&(C.tooltipActive=w[5]),g[1]&1&&(C.$$scope={dirty:g,ctx:w}),!n&&g[0]&1&&(n=!0,C.ref=w[0],He(()=>n=!1)),t.$set(C),(!s||g[0]&2)&&O(r,"hidden",w[1]),(!s||g[0]&16)&&O(a,"paused",w[4]),(!s||g[0]&4)&&O(e,"mobile",w[2]),(!s||g[0]&64)&&O(e,"fullscreen",w[6]),(!s||g[0]&2)&&O(e,"invisible",w[1])},i(w){s||(d(t.$$.fragment,w),s=!0)},o(w){_(t.$$.fragment,w),s=!1},d(w){w&&k(e),R(t),i[23](null),i[24](null),u=!1,nt(f)}}}function o3(i,e,t){var G;let n,o,r,l,a,s,{ref:u=void 0}=e,f,m=rt(),h=Wn(),{interactiveControlsOpacity$:w}=h;H(i,w,X=>t(18,o=X));let g=m.ui.isMobile;H(i,g,X=>t(2,a=X));let C=m.ui.isFullscreen;H(i,C,X=>t(6,s=X));let v=m.state.isInteractiveTime$;H(i,v,X=>t(19,r=X));let I=h.showInteractiveTimeIndicatorTooltip$;H(i,I,X=>t(17,n=X));let y=m.ui.controlsVisible;H(i,y,X=>t(20,l=X));let b=(G=m.callbacks)==null?void 0:G.onInteractiveTimeIndicatorClick,P,A,M,N=()=>{t(4,M=!0)},te=()=>{_e(),f==null||f.addEventListener("animationiteration",N,{once:!0})},_e=()=>{t(4,M=!1),f==null||f.removeEventListener("animationiteration",N)},Z=X=>{I.set(X)},x,se=()=>{A||(I.set(!0),b==null||b())};Gn(()=>{I.clearTimeout(),_e()});let L=()=>{I.set(!1)};function K(X){Dn.call(this,i,X)}function J(X){u=X,t(0,u)}function Y(X){ge[X?"unshift":"push"](()=>{u=X,t(0,u)})}function F(X){ge[X?"unshift":"push"](()=>{f=X,t(3,f)})}return i.$$set=X=>{"ref"in X&&t(0,u=X.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,P=!a&&l),i.$$.dirty[0]&851968&&t(1,A=!r||!!o||P),i.$$.dirty[0]&2&&t(4,M=A),i.$$.dirty[0]&131074&&t(5,x=n&&!A),i.$$.dirty[0]&131072&&(n?te():_e())},[u,A,a,f,M,x,s,w,g,C,v,I,y,Z,se,L,P,n,o,r,l,K,J,Y,F]}var Gu=class extends W{constructor(e){super(),j(this,e,o3,n3,U,{ref:0},t3,[-1,-1])}},cs=Gu;function r3(i){Ie(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}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Bm(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function qm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:!i[9],tooltipContent:z("tooltip_previous"),$$slots:{default:[s3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s3(i){let e,t;return e=new Il({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Dm(i){let e,t,n;function o(l){i[175](l)}let r={disabled:i[74],tooltipContent:z("tooltip_restart"),$$slots:{default:[a3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function a3(i){let e,t;return e=new Xl({props:{click:i[128],disabled:i[74]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nm(i){let e,t,n;function o(l){i[177](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[u3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u3(i){let e,t,n;function o(l){i[176](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Zl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Om(i){let e,t,n;function o(l){i[178](l)}let r={disabled:!i[8],tooltipContent:z("tooltip_next"),$$slots:{default:[c3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function c3(i){let e,t;return e=new Il({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function f3(i){let e,t,n,o,r=i[121]&&d3(i),l=i[120]&&p3(i),a=i[119]&&h3(i);return{c(){r&&r.c(),e=B(),l&&l.c(),t=B(),a&&a.c(),n=dt()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function d3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[73],tooltipContent:z("tooltip_interactive_go_back"),disabledTooltipContent:z(i[124]),$$slots:{default:[m3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function m3(i){let e,t;return e=new es({props:{disabled:i[73],click:i[17]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function p3(i){let e,t,n;function o(l){i[180](l)}let r={disabled:i[76],tooltipContent:z("tooltip_interactive_seek"),disabledTooltipContent:z(i[78]),$$slots:{default:[_3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=z(l[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function _3(i){let e,t;return e=new Jr({props:{disabled:i[76],click:i[15]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function h3(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function g3(i){let e,t;return e=new xr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fm(i){let e,t,n;function o(l){i[182](l)}let r={tooltipContent:i[50],$$slots:{default:[b3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function b3(i){let e,t;return e=new Gr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hm(i){let e,t,n;function o(l){i[183](l)}let r={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Nr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function zm(i){let e,t;return e=new Xr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function v3(i){let e,t,n=i[20]&&zm(i);return{c(){n&&n.c(),e=dt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=zm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function y3(i){var n;let e,t;return e=new ts({props:{iconUrl:i[210],ariaLabel:(n=i[211])!=null?n:i[214],testId:i[212],onClick:i[213]}}),{c(){q(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[210]),r[0]&268435456&&(l.ariaLabel=(a=o[211])!=null?a:o[214]),r[0]&268435456&&(l.testId=o[212]),r[0]&268435456&&(l.onClick=o[213]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Um(i){let e,t;return e=new Dt({props:{tooltipContent:i[214],width:40,$$slots:{default:[y3]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Km(i){let e,t,n;function o(l){i[186](l)}let r={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[w3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function w3(i){let e,t;return e=new Kr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function k3(i){let e,t;return e=new x1({props:{click:i[127]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wm(i){let e,t,n;function o(l){i[188](l)}let r={tooltipContent:i[52],$$slots:{default:[C3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function C3(i){let e,t;return e=new q1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jm(i){var a;let e,t,n,o;function r(s){i[189](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Dr({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(s,u){S(s,e,u),V(t,e,null),o=!0},p(s,u){var m;let f={};u[0]&1024&&(f.supportLink=s[10]),u[1]&32768&&(f.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(f.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,f.ref=s[24],He(()=>n=!1)),t.$set(f)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),R(t)}}}function Gm(i){let e,t,n;function o(l){i[191](l)}let r={tooltipContent:i[27]?void 0:z("tooltip_settings_off"),$$slots:{default:[S3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:z("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function S3(i){let e,t,n;function o(l){i[190](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Ql({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function T3(i){let e,t,n;function o(l){i[192](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[P3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function P3(i){let e,t;return e=new Rm({props:{ariaLabel:i[49]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[53],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function I3(i){let e,t;return e=new zr({props:{click:i[13],isFullscreen:i[30]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ym(i){let e,t,n;function o(l){i[194](l)}let r={tooltipContent:i[54],$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function E3(i){let e,t;return e=new Wr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L3(i){let e,t,n;function o(l){i[197](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new cs({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function A3(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,L,K,J;function Y(re){i[173](re)}let F={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(F.ref=i[23].timeline),t=new Zr({props:F}),ge.push(()=>ze(t,"ref",Y));let G=i[38]&&qm(i),X=i[35]&&Dm(i),le=i[36]&&Nm(i),qe=i[37]&&Om(i),Xe=i[117]&&f3(i),Ee=!i[4]&&i[33]&&Fm(i),Be=i[19]&&Hm(i);function De(re){i[184](re)}let xe={className:"w-max",disabled:!i[20],tooltipContent:z("tooltip_episodes"),$$slots:{default:[v3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(xe.ref=i[23].episodes),g=new Dt({props:xe}),ge.push(()=>ze(g,"ref",De));let ae=Et(i[28]),he=[];for(let re=0;re<ae.length;re+=1)he[re]=Um(Bm(i,ae,re));let at=re=>_(he[re],1,1,()=>{he[re]=null}),Ce=i[43]&&!i[4]&&Km(i);function Ke(re){i[187](re)}let mt={$$slots:{default:[k3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(mt.ref=i[23].volume),A=new Dt({props:mt}),ge.push(()=>ze(A,"ref",Ke));let Ye=i[40]&&Wm(i),Ge=!i[83]&&!i[4]&&jm(i),Ze=i[42]&&!i[4]&&Gm(i),et=i[84].features.contextMenuButton&&T3(i),ce=i[44]&&Qm(i),Pe=i[39]&&Ym(i),We=i[122]&&L3(i);return{c(){e=T("div"),q(t.$$.fragment),o=B(),r=T("div"),l=T("div"),G&&G.c(),a=B(),X&&X.c(),s=B(),le&&le.c(),u=B(),qe&&qe.c(),f=B(),Xe&&Xe.c(),m=B(),Ee&&Ee.c(),h=B(),Be&&Be.c(),w=B(),q(g.$$.fragment),I=B(),y=T("div");for(let re=0;re<he.length;re+=1)he[re].c();b=B(),Ce&&Ce.c(),P=B(),q(A.$$.fragment),N=B(),Ye&&Ye.c(),te=B(),Ge&&Ge.c(),_e=B(),Ze&&Ze.c(),Z=B(),et&&et.c(),x=B(),ce&&ce.c(),se=B(),Pe&&Pe.c(),L=B(),We&&We.c(),K=dt(),c(l,"class","controls-left svelte-ips4nw"),Yn(()=>i[185].call(l)),c(y,"class","controls-right svelte-ips4nw"),c(r,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),O(e,"hidden",i[1]),O(e,"controls-hidden",!i[3]),O(e,"no-smooth",i[2])},m(re,Te){S(re,e,Te),V(t,e,null),p(e,o),p(e,r),p(r,l),G&&G.m(l,null),p(l,a),X&&X.m(l,null),p(l,s),le&&le.m(l,null),p(l,u),qe&&qe.m(l,null),p(l,f),Xe&&Xe.m(l,null),p(l,m),Ee&&Ee.m(l,null),p(l,h),Be&&Be.m(l,null),p(l,w),V(g,l,null),v=ol(l,i[185].bind(l)),p(r,I),p(r,y);for(let pt=0;pt<he.length;pt+=1)he[pt]&&he[pt].m(y,null);p(y,b),Ce&&Ce.m(y,null),p(y,P),V(A,y,null),p(y,N),Ye&&Ye.m(y,null),p(y,te),Ge&&Ge.m(y,null),p(y,_e),Ze&&Ze.m(y,null),p(y,Z),et&&et.m(y,null),p(y,x),ce&&ce.m(y,null),p(y,se),Pe&&Pe.m(y,null),i[195](r),i[196](e),S(re,L,Te),We&&We.m(re,Te),S(re,K,Te),J=!0},p(re,Te){let pt={};Te[1]&16384&&(pt.isHidden=!re[45]),Te[0]&16&&(pt.isAds=re[4]),Te[0]&32&&(pt.canRewindLive=re[5]),Te[1]&2&&(pt.isRewindableLive=re[32]),!n&&Te[0]&8388608&&(n=!0,pt.ref=re[23].timeline,He(()=>n=!1)),t.$set(pt),re[38]?G?(G.p(re,Te),Te[1]&128&&d(G,1)):(G=qm(re),G.c(),d(G,1),G.m(l,a)):G&&(fe(),_(G,1,1,()=>{G=null}),de()),re[35]?X?(X.p(re,Te),Te[1]&16&&d(X,1)):(X=Dm(re),X.c(),d(X,1),X.m(l,s)):X&&(fe(),_(X,1,1,()=>{X=null}),de()),re[36]?le?(le.p(re,Te),Te[1]&32&&d(le,1)):(le=Nm(re),le.c(),d(le,1),le.m(l,u)):le&&(fe(),_(le,1,1,()=>{le=null}),de()),re[37]?qe?(qe.p(re,Te),Te[1]&64&&d(qe,1)):(qe=Om(re),qe.c(),d(qe,1),qe.m(l,f)):qe&&(fe(),_(qe,1,1,()=>{qe=null}),de()),re[117]&&Xe.p(re,Te),!re[4]&&re[33]?Ee?(Ee.p(re,Te),Te[0]&16|Te[1]&4&&d(Ee,1)):(Ee=Fm(re),Ee.c(),d(Ee,1),Ee.m(l,h)):Ee&&(fe(),_(Ee,1,1,()=>{Ee=null}),de()),re[19]?Be?(Be.p(re,Te),Te[0]&524288&&d(Be,1)):(Be=Hm(re),Be.c(),d(Be,1),Be.m(l,w)):Be&&(fe(),_(Be,1,1,()=>{Be=null}),de());let Le={};if(Te[0]&1048576&&(Le.disabled=!re[20]),Te[0]&1048576|Te[2]&1310720|Te[7]&1&&(Le.$$scope={dirty:Te,ctx:re}),!C&&Te[0]&8388608&&(C=!0,Le.ref=re[23].episodes,He(()=>C=!1)),g.$set(Le),Te[0]&268435456){ae=Et(re[28]);let me;for(me=0;me<ae.length;me+=1){let tt=Bm(re,ae,me);he[me]?(he[me].p(tt,Te),d(he[me],1)):(he[me]=Um(tt),he[me].c(),d(he[me],1),he[me].m(y,b))}for(fe(),me=ae.length;me<he.length;me+=1)at(me);de()}re[43]&&!re[4]?Ce?(Ce.p(re,Te),Te[0]&16|Te[1]&4096&&d(Ce,1)):(Ce=Km(re),Ce.c(),d(Ce,1),Ce.m(y,P)):Ce&&(fe(),_(Ce,1,1,()=>{Ce=null}),de());let ut={};Te[7]&1&&(ut.$$scope={dirty:Te,ctx:re}),!M&&Te[0]&8388608&&(M=!0,ut.ref=re[23].volume,He(()=>M=!1)),A.$set(ut),re[40]?Ye?(Ye.p(re,Te),Te[1]&512&&d(Ye,1)):(Ye=Wm(re),Ye.c(),d(Ye,1),Ye.m(y,te)):Ye&&(fe(),_(Ye,1,1,()=>{Ye=null}),de()),!re[83]&&!re[4]?Ge?(Ge.p(re,Te),Te[0]&16|Te[2]&2097152&&d(Ge,1)):(Ge=jm(re),Ge.c(),d(Ge,1),Ge.m(y,_e)):Ge&&(fe(),_(Ge,1,1,()=>{Ge=null}),de()),re[42]&&!re[4]?Ze?(Ze.p(re,Te),Te[0]&16|Te[1]&2048&&d(Ze,1)):(Ze=Gm(re),Ze.c(),d(Ze,1),Ze.m(y,Z)):Ze&&(fe(),_(Ze,1,1,()=>{Ze=null}),de()),re[84].features.contextMenuButton&&et.p(re,Te),re[44]?ce?(ce.p(re,Te),Te[1]&8192&&d(ce,1)):(ce=Qm(re),ce.c(),d(ce,1),ce.m(y,se)):ce&&(fe(),_(ce,1,1,()=>{ce=null}),de()),re[39]?Pe?(Pe.p(re,Te),Te[1]&256&&d(Pe,1)):(Pe=Ym(re),Pe.c(),d(Pe,1),Pe.m(y,null)):Pe&&(fe(),_(Pe,1,1,()=>{Pe=null}),de()),(!J||Te[0]&2)&&O(e,"hidden",re[1]),(!J||Te[0]&8)&&O(e,"controls-hidden",!re[3]),(!J||Te[0]&4)&&O(e,"no-smooth",re[2]),re[122]&&We.p(re,Te)},i(re){if(!J){d(t.$$.fragment,re),d(G),d(X),d(le),d(qe),d(Xe),d(Ee),d(Be),d(g.$$.fragment,re);for(let Te=0;Te<ae.length;Te+=1)d(he[Te]);d(Ce),d(A.$$.fragment,re),d(Ye),d(Ge),d(Ze),d(et),d(ce),d(Pe),d(We),J=!0}},o(re){_(t.$$.fragment,re),_(G),_(X),_(le),_(qe),_(Xe),_(Ee),_(Be),_(g.$$.fragment,re),he=he.filter(Boolean);for(let Te=0;Te<he.length;Te+=1)_(he[Te]);_(Ce),_(A.$$.fragment,re),_(Ye),_(Ge),_(Ze),_(et),_(ce),_(Pe),_(We),J=!1},d(re){re&&(k(e),k(L),k(K)),R(t),G&&G.d(),X&&X.d(),le&&le.d(),qe&&qe.d(),Xe&&Xe.d(),Ee&&Ee.d(),Be&&Be.d(),R(g),v(),Ai(he,re),Ce&&Ce.d(),R(A),Ye&&Ye.d(),Ge&&Ge.d(),Ze&&Ze.d(),et&&et.d(),ce&&ce.d(),Pe&&Pe.d(),i[195](null),i[196](null),We&&We.d(re)}}}function M3(i,e,t){var Oc,Fc;let n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,L,K,J,Y,F,G,X=Se,le=()=>(X(),X=Qt(_e,$=>t(144,G=$)),_e),qe,Xe=Se,Ee=()=>(Xe(),Xe=Qt(te,$=>t(145,qe=$)),te),Be,De=Se,xe=()=>(De(),De=Qt(N,$=>t(146,Be=$)),N),ae,he=Se,at=()=>(he(),he=Qt(M,$=>t(147,ae=$)),M),Ce,Ke=Se,mt=()=>(Ke(),Ke=Qt(A,$=>t(148,Ce=$)),A),Ye,Ge=Se,Ze=()=>(Ge(),Ge=Qt(P,$=>t(149,Ye=$)),P),et,ce=Se,Pe=()=>(ce(),ce=Qt(b,$=>t(150,et=$)),b),We,re=Se,Te=()=>(re(),re=Qt(y,$=>t(151,We=$)),y),pt,Le=Se,ut=()=>(Le(),Le=Qt(I,$=>t(152,pt=$)),I),me,tt=Se,Ct=()=>(tt(),tt=Qt(v,$=>t(153,me=$)),v),bt,Ue=Se,Ot=()=>(Ue(),Ue=Qt(C,$=>t(154,bt=$)),C),Vt,St=Se,ni=()=>(St(),St=Qt(g,$=>t(155,Vt=$)),g),ct,lt=Se,be=()=>(lt(),lt=Qt(w,$=>t(156,ct=$)),w),Je,_t=Se,Ft=()=>(_t(),_t=Qt(h,$=>t(157,Je=$)),h),yt,Xt=Se,mi=()=>(Xt(),Xt=Qt(m,$=>t(158,yt=$)),m),Mt,zi=Se,an=()=>(zi(),zi=Qt(f,$=>t(159,Mt=$)),f),oi,Vi=Se,un=()=>(Vi(),Vi=Qt(u,$=>t(160,oi=$)),u),Ui,cn,Ri,Bi,pi,_i,yi,wi,Jt,zt,Ki,Wt,ki,qi,Wi,li,wt,ji,Di,Pt,Gi,Qi,xt;i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>De()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Ge()),i.$$.on_destroy.push(()=>ce()),i.$$.on_destroy.push(()=>re()),i.$$.on_destroy.push(()=>Le()),i.$$.on_destroy.push(()=>tt()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>St()),i.$$.on_destroy.push(()=>lt()),i.$$.on_destroy.push(()=>_t()),i.$$.on_destroy.push(()=>Xt()),i.$$.on_destroy.push(()=>zi()),i.$$.on_destroy.push(()=>Vi());let{bottomHidden:Ci}=e,{bottomNoSmooth:hi}=e,{showControls:Si}=e,{controlsElementRef:$t=void 0}=e,{isAds:jt=!1}=e,{canRewindLive:ri}=e,{logoClickable:Ni}=e,{logoHidden:ci}=e,{logoTargetUrl:fi=""}=e,{showNextPrevButtons:si}=e,{nextButtonActive:gi}=e,{prevButtonActive:Yi}=e,{isOneVideoPlaylist:vn=!1}=e,{supportLink:Zi}=e,{customFullscreenSupported:di=!0}=e,{playNextVideo:ei}=e,{playPrevVideo:Xi}=e,{repeatPlaylist:Nt}=e,{toggleFullscreen:Ut}=e,{returnFocus:Ji}=e,{seekToInteractive:Ti}=e,{toggleGraph:Oi}=e,{playPrevChapter:fn}=e,it=rt(),bi=Wn(),ai=Ht(),je=it.actions.internal.toggleMuted,xi=it.actions.internal.togglePlay,yn=it.actions.internal.pause,dn=it.actions.internal.toggleSubtitle,Fi=(Oc=it.callbacks)==null?void 0:Oc.onAudioDoesNotExistHint,$i=(Fc=it.callbacks)==null?void 0:Fc.onAudioDisabledHint,mn=it.state.duration$;H(i,mn,$=>t(82,Qi=$));let Pi=it.state.positionWithScrubbing$;H(i,Pi,$=>t(80,Pt=$));let ti=it.state.playbackState$;H(i,ti,$=>t(161,Ri=$));let en=it.state.chromecastConnected$;H(i,en,$=>t(83,xt=$));let Ii=it.state.isAudioAvailable$;H(i,Ii,$=>t(198,Z=$));let Vn=it.state.isAudioDisabled,wn=it.state.isEnded$;H(i,wn,$=>t(169,qi=$));let kn=it.state.isLive$;H(i,kn,$=>t(33,wi=$));let Cn=it.state.isActiveLive$;H(i,Cn,$=>t(163,_i=$));let pn=it.state.isRewindableLive$;H(i,pn,$=>t(32,yi=$));let Rn=it.ui.isPictureInPictureActive$;H(i,Rn,$=>t(165,zt=$));let tn=it.ui.pictureInPictureType$;H(i,tn,$=>t(164,Jt=$));let nn=it.ui.settingsMenuVisible;H(i,nn,$=>t(27,L=$));let Rt=it.ui.settingsMenuOpenedByKeyboard;H(i,Rt,$=>t(140,se=$));let Bn=it.ui.controls,Sn=it.actions.internal.getVideoEpisodes(),Fn=it.state.chromecastState$;H(i,Fn,$=>t(29,Ui=$));let ii=it.state.availableSubtitlesList$;H(i,ii,$=>t(168,ki=$));let Hn=it.state.currentSubtitle$;H(i,Hn,$=>t(170,Wi=$));let zn=Bn.disabledControls$;H(i,zn,$=>t(172,wt=$));let Tn=it.ui.contextMenu.visible$;H(i,Tn,$=>t(162,Bi=$));let Pn=it.ui.contextMenu.showContextMenuBtn$;H(i,Pn,$=>t(166,Ki=$));let An=it.ui.contextMenu.openedByBtnKeyboard$;H(i,An,$=>t(167,Wt=$));let _n=it.ui.startedByKeyboard$;H(i,_n,$=>t(139,x=$));let ne=it.ads.duration;H(i,ne,$=>t(81,Gi=$));let kt=it.ads.position;H(i,kt,$=>t(79,Di=$));let on=it.ads.playbackState;H(i,on,$=>t(171,li=$));let Ei=it.ui.isFullscreen;H(i,Ei,$=>t(30,cn=$));let ie=it.ui.playerSize;H(i,ie,$=>t(142,J=$));let ft=it.ui.currentGridType$;H(i,ft,$=>t(143,Y=$));let Gt=it.ui.additionalButtons$;H(i,Gt,$=>t(28,F=$));let qn=it.actions.internal.getVideoElement,Un=it.actions.internal.replayInteractive,hn=it.state.isInteractive,to=it.state.isInteractiveTime$;H(i,to,$=>t(141,K=$));let oe=it.state.showInteractiveGraph,So=it.state.showSeekToInteractive,Dl=it.state.showPlayPrevChapter,Nl=it.state.showInteractiveTimeIndicator,Xo=it.state.graphIsOpened$;H(i,Xo,$=>t(31,pi=$));let To=it.state.playPrevChapterDisabledTooltip,Po=bi.seekToInteractiveDisabledTooltip$;H(i,Po,$=>t(78,ji=$));let io=()=>it.actions.internal.toggleChromecast(),co,fo,Jo,xo,mo,$o,Io,po,Eo,el,Q,Lt,In,ln,no,En,Jn,_o,tl,Lo,It,il="",ir=($,Is)=>{if(!$){t(50,il=z("tooltip_live"));return}Is===Zo.PlaybackState.PAUSED&&t(50,il=z("tooltip_play"))},Ol,Fl,E,ee,ke,ve={},ot,gt,Kt,Bt,rn=(0,Zm.debounceFn)(as,260),Ao,nl,Mo;function p_(){yo({isAudioDisabled:Vn,audioDisabledHintCallback:$i,isAudioAvailable:Z,audioIsNotExistHintCallback:Fi})&&je()}let __=hn?Un:vn?xi:Nt;function h_($){i.$$.not_equal(ve.timeline,$)&&(ve.timeline=$,t(23,ve))}function g_($){i.$$.not_equal(ve.prevButton,$)&&(ve.prevButton=$,t(23,ve))}function b_($){i.$$.not_equal(ve.replayButton,$)&&(ve.replayButton=$,t(23,ve))}function v_($){Mo=$,t(26,Mo)}function y_($){i.$$.not_equal(ve.playButton,$)&&(ve.playButton=$,t(23,ve))}function w_($){i.$$.not_equal(ve.nextButton,$)&&(ve.nextButton=$,t(23,ve))}function k_($){i.$$.not_equal(ve.playPrevChapterButton,$)&&(ve.playPrevChapterButton=$,t(23,ve))}function C_($){i.$$.not_equal(ve.seekToInteractiveButton,$)&&(ve.seekToInteractiveButton=$,t(23,ve))}function S_($){i.$$.not_equal(ve.interactiveGraphButton,$)&&(ve.interactiveGraphButton=$,t(23,ve))}function T_($){i.$$.not_equal(ve.liveButton,$)&&(ve.liveButton=$,t(23,ve))}function P_($){i.$$.not_equal(ve.time,$)&&(ve.time=$,t(23,ve))}function I_($){i.$$.not_equal(ve.episodes,$)&&(ve.episodes=$,t(23,ve))}function E_(){ke=this.clientWidth,t(22,ke)}function L_($){i.$$.not_equal(ve.vkLogo,$)&&(ve.vkLogo=$,t(23,ve))}function A_($){i.$$.not_equal(ve.volume,$)&&(ve.volume=$,t(23,ve))}function M_($){i.$$.not_equal(ve.subtitles,$)&&(ve.subtitles=$,t(23,ve))}function V_($){Ao=$,t(24,Ao)}function R_($){nl=$,t(25,nl)}function B_($){i.$$.not_equal(ve.settings,$)&&(ve.settings=$,t(23,ve))}function q_($){i.$$.not_equal(ve.context,$)&&(ve.context=$,t(23,ve))}function D_($){i.$$.not_equal(ve.fullscreen,$)&&(ve.fullscreen=$,t(23,ve))}function N_($){i.$$.not_equal(ve.chromecast,$)&&(ve.chromecast=$,t(23,ve))}function O_($){ge[$?"unshift":"push"](()=>{Jn=$,t(46,Jn)})}function F_($){ge[$?"unshift":"push"](()=>{$t=$,t(0,$t)})}function H_($){i.$$.not_equal(ve.interactiveTimeIndicator,$)&&(ve.interactiveTimeIndicator=$,t(23,ve))}return i.$$set=$=>{"bottomHidden"in $&&t(1,Ci=$.bottomHidden),"bottomNoSmooth"in $&&t(2,hi=$.bottomNoSmooth),"showControls"in $&&t(3,Si=$.showControls),"controlsElementRef"in $&&t(0,$t=$.controlsElementRef),"isAds"in $&&t(4,jt=$.isAds),"canRewindLive"in $&&t(5,ri=$.canRewindLive),"logoClickable"in $&&t(6,Ni=$.logoClickable),"logoHidden"in $&&t(129,ci=$.logoHidden),"logoTargetUrl"in $&&t(7,fi=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,si=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,gi=$.nextButtonActive),"prevButtonActive"in $&&t(9,Yi=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,vn=$.isOneVideoPlaylist),"supportLink"in $&&t(10,Zi=$.supportLink),"customFullscreenSupported"in $&&t(132,di=$.customFullscreenSupported),"playNextVideo"in $&&t(11,ei=$.playNextVideo),"playPrevVideo"in $&&t(12,Xi=$.playPrevVideo),"repeatPlaylist"in $&&t(133,Nt=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,Ut=$.toggleFullscreen),"returnFocus"in $&&t(14,Ji=$.returnFocus),"seekToInteractive"in $&&t(15,Ti=$.seekToInteractive),"toggleGraph"in $&&t(16,Oi=$.toggleGraph),"playPrevChapter"in $&&t(17,fn=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=wt.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=wt.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,r=wt.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,l=wt.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=wt.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=wt.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,co=jt?li==="playing":Ri===Zo.PlaybackState.PLAYING),i.$$.dirty[5]&32768&&t(18,fo=Wi.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,Jo=qi&&!jt||hn),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,xo=!qi||hn||jt),i.$$.dirty[4]&524288&&t(134,mo=On(Y,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,$o=si&&On(Y,"m")&&!jt&&gi),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,Io=si&&On(Y,"m")&&!jt&&Yi),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,po=Ui!==Zo.ChromecastState.NOT_AVAILABLE&&!(zt&&Jt===1)&&On(Y,"m")&&!hn),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,Eo=ki.length>0&&On(Y,"m")),i.$$.dirty[5]&6144&&t(41,el=Wt||Ki),i.$$.dirty[4]&524288&&t(42,Q=On(Y,"s")),i.$$.dirty[4]&32&&t(43,Lt=!ci),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,In=ai.features.fullscreen&&(ci||On(Y,"s"))&&!(zt&&Jt===1)&&(hn?di:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,ln=(!wi||jt)&&!(ai.features.interactiveHideTime&&hn)),i.$$.dirty[4]&262144&&t(45,no=J.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,En=!jt&&!wi&&!!(Sn!=null&&Sn.length)&&mo&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,_o=!yi||_i),i.$$.dirty[5]&64&&t(47,tl=Ri===Zo.PlaybackState.PLAYING?z("tooltip_pause"):z("tooltip_play")),i.$$.dirty[1]&1&&t(48,Lo=pi?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,It=Bi?z("aria_label_context_menu_close"):z("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&ir(_o,Ri),i.$$.dirty[0]&262144&&t(52,Fl=fo?z("tooltip_subtitles_on"):z("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,E=cn?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,ee=Ui===Zo.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,ot={prevButton:oi?oi.right-oi.left:0,replayButton:Mt?Mt.right-Mt.left:0,playButton:yt?yt.right-yt.left:0,nextButton:Je?Je.right-Je.left:0,playPrevChapterButton:ct?ct.right-ct.left:0,seekToInteractiveButton:Vt?Vt.right-Vt.left:0,interactiveGraphButton:bt?bt.right-bt.left:0,liveButton:me?me.right-me.left:0,time:pt?pt.right-pt.left:0,episodes:We?We.right-We.left:0,vkLogo:et?et.right-et.left:0,volume:Ye?Ye.right-Ye.left:0,subtitles:Ce?Ce.right-Ce.left:0,settings:ae?ae.right-ae.left:0,context:Be?Be.right-Be.left:0,fullscreen:qe?qe.right-qe.left:0,chromecast:G?G.right-G.left:0,additionalButtons:F.length?F.reduce($=>[...$,40],[]):[]}),i.$$.dirty[4]&6144&&(!gt||gt<ot.time)&&t(136,gt=ot.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let $=0;En&&(On(Y,"xl")?$=ot.time:$=60);let Is=ot.prevButton+ot.playButton+ot.nextButton+ot.seekToInteractiveButton+ot.interactiveGraphButton+ot.liveButton+gt+$;t(137,Kt=ln&&ke>=Is)}i.$$.dirty[4]&532480&&t(55,Bt=Kt&&On(Y,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&rn(qn(),Bn,ve,Si),i.$$.dirty[0]&167772160&&bl(nl,L,Rt),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&jo(Ao,L,se),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&us(_n,x,Mo)},t(51,Ol=ai.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo")),un(t(72,{prevButton:u,replayButton:f,playButton:m,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:g,interactiveGraphButton:C,liveButton:v,time:I,episodes:y,vkLogo:b,volume:P,subtitles:A,settings:M,context:N,fullscreen:te,chromecast:_e}=Bn,u,an(t(71,f)),mi(t(70,m)),Ft(t(69,h)),be(t(68,w)),ni(t(67,g)),Ot(t(66,C)),Ct(t(65,v)),ut(t(64,I)),Te(t(63,y)),Pe(t(62,b)),Ze(t(61,P)),mt(t(60,A)),at(t(59,M)),xe(t(58,N)),Ee(t(57,te)),le(t(56,_e)))),[$t,Ci,hi,Si,jt,ri,Ni,fi,gi,Yi,Zi,ei,Xi,Ut,Ji,Ti,Oi,fn,fo,ln,En,_o,ke,ve,Ao,nl,Mo,L,F,Ui,cn,pi,yi,wi,co,Jo,xo,$o,Io,po,Eo,el,Q,Lt,In,no,Jn,tl,Lo,It,il,Ol,Fl,E,ee,Bt,_e,te,N,M,A,P,b,y,I,v,C,g,w,h,m,f,u,s,a,l,r,o,ji,Di,Pt,Gi,Qi,xt,ai,xi,yn,dn,mn,Pi,ti,en,Ii,wn,kn,Cn,pn,Rn,tn,nn,Rt,Sn,Fn,ii,Hn,zn,Tn,Pn,An,_n,ne,kt,on,Ei,ie,ft,Gt,hn,to,oe,So,Dl,Nl,Xo,To,Po,io,p_,__,ci,si,vn,di,Nt,mo,ot,gt,Kt,n,x,se,K,J,Y,G,qe,Be,ae,Ce,Ye,et,We,pt,me,bt,Vt,ct,Je,yt,Mt,oi,Ri,Bi,_i,Jt,zt,Ki,Wt,ki,qi,Wi,li,wt,h_,g_,b_,v_,y_,w_,k_,C_,S_,T_,P_,I_,E_,L_,A_,M_,V_,R_,B_,q_,D_,N_,O_,F_,H_]}var Qu=class extends W{constructor(e){super(),j(this,e,M3,A3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},r3,[-1,-1,-1,-1,-1,-1,-1,-1])}},Xm=Qu;var Ll=require("@vkontakte/videoplayer-core");function V3(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{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 f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function R3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Zu=class extends W{constructor(e){super(),j(this,e,R3,V3,U,{})}},Jm=Zu;var $m=require("@vkontakte/videoplayer-shared");function B3(i){Ie(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 xm(i){let e;return{c(){e=T("span"),e.textContent=`${z("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function q3(i){let e,t,n,o;var r=i[4];function l(s,u){return{}}r&&(t=Mn(r,l(i)));let a=i[1]&&xm(i);return{c(){e=T("div"),t&&q(t.$$.fragment),n=B(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),O(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&V(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){fe();let f=t;_(f.$$.fragment,1,0,()=>{R(f,1)}),de()}r?(t=Mn(r,l(s,u)),q(t.$$.fragment),d(t.$$.fragment,1),V(t,e,n)):t=null}s[1]?a||(a=xm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&O(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&R(t),a&&a.d()}}}function D3(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[q3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function N3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=$m.noop}=e,{ref:l=void 0}=e,a,s;function u(f){l=f,t(0,l)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,r=f.click),"ref"in f&&t(0,l=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?z("tooltip_volume"):z("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?Yo:Jm)},[l,o,r,a,s,n,u]}var Xu=class extends W{constructor(e){super(),j(this,e,N3,D3,U,{muted:5,expanded:1,click:2,ref:0},B3)}},Ju=Xu;function O3(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),c(t,"fill","currentColor"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(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"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(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"),c(o,"class","hidden-active"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function F3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xu=class extends W{constructor(e){super(),j(this,e,F3,O3,U,{})}},e0=xu;function H3(i){Ie(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function z3(i){let e,t;return e=new e0({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function U3(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 $u=class extends W{constructor(e){super(),j(this,e,U3,z3,U,{isActive:0},H3)}},t0=$u;var i0=require("@vkontakte/videoplayer-shared");function K3(i){let e,t;return e=new t0({props:{isActive:i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function W3(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:z("menu_pip"),click:i[2],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function j3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=i0.noop}=e;function l(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,l]}var ec=class extends W{constructor(e){super(),j(this,e,j3,W3,U,{ref:0,isPictureInPictureActive:1,click:2})}},n0=ec;var P0=require("@vkontakte/videoplayer-shared");function G3(i){Ie(i,"svelte-17qsgob",".wrapper-bottom.svelte-17qsgob.svelte-17qsgob{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-17qsgob>.svelte-17qsgob{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-17qsgob.svelte-17qsgob{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{left:12px}.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob{left:64px}.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{right:12px}.controls.svelte-17qsgob.svelte-17qsgob{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-17qsgob > *:not(:first-child){margin-left:8px}.hidden.svelte-17qsgob.svelte-17qsgob{visibility:hidden;opacity:0}.controls-hidden.svelte-17qsgob.svelte-17qsgob{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-17qsgob.svelte-17qsgob{transition:none}.settings-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;z-index:var(--mobile-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%}.overlay-mobile.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{top:16px}.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-17qsgob.svelte-17qsgob{left:44px}.wrapper-middle-left-second.fullscreen.svelte-17qsgob.svelte-17qsgob{left:96px}.wrapper-middle-right.fullscreen.svelte-17qsgob.svelte-17qsgob{right:44px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function o0(i,e,t){let n=i.slice();return n[170]=e[t].iconUrl,n[171]=e[t].ariaLabel,n[172]=e[t].testId,n[173]=e[t].onClick,n[174]=e[t].tooltip,n}function l0(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y=(!i[51]||i[53])&&r0(i),b=Et(i[56]),P=[];for(let J=0;J<b.length;J+=1)P[J]=s0(o0(i,b,J));let A=J=>_(P[J],1,1,()=>{P[J]=null}),M=i[36]&&a0(i),N=i[37]&&u0(i),te=i[57]&&c0(i),_e=i[39]&&f0(i),Z=i[8]&&d0(i),x=i[34]&&m0(i),se=i[33]&&p0(i),L=i[8]&&_0(i),K=i[96]&&!i[29]&&h0(i);return{c(){e=T("div"),t=B(),n=T("div"),y&&y.c(),o=B(),r=T("div");for(let J=0;J<P.length;J+=1)P[J].c();l=B(),M&&M.c(),a=B(),N&&N.c(),s=B(),te&&te.c(),u=B(),_e&&_e.c(),f=B(),m=T("div"),Z&&Z.c(),h=B(),x&&x.c(),w=B(),se&&se.c(),g=B(),L&&L.c(),C=B(),K&&K.c(),v=dt(),c(e,"class","overlay-mobile svelte-17qsgob"),O(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-17qsgob"),O(n,"hidden",!i[3]),O(n,"fullscreen",i[52]),c(r,"class","wrapper-top-right svelte-17qsgob"),O(r,"hidden",!i[3]&&!i[27]),O(r,"fullscreen",i[52]),c(m,"class","wrapper-middle svelte-17qsgob"),O(m,"hidden",!i[3]||i[29])},m(J,Y){S(J,e,Y),S(J,t,Y),S(J,n,Y),y&&y.m(n,null),S(J,o,Y),S(J,r,Y);for(let F=0;F<P.length;F+=1)P[F]&&P[F].m(r,null);p(r,l),M&&M.m(r,null),p(r,a),N&&N.m(r,null),p(r,s),te&&te.m(r,null),p(r,u),_e&&_e.m(r,null),S(J,f,Y),S(J,m,Y),Z&&Z.m(m,null),p(m,h),x&&x.m(m,null),p(m,w),se&&se.m(m,null),p(m,g),L&&L.m(m,null),S(J,C,Y),K&&K.m(J,Y),S(J,v,Y),I=!0},p(J,Y){if((!I||Y[1]&2048)&&O(e,"hidden",!J[42]),!J[51]||J[53]?y?(y.p(J,Y),Y[1]&5242880&&d(y,1)):(y=r0(J),y.c(),d(y,1),y.m(n,null)):y&&(fe(),_(y,1,1,()=>{y=null}),de()),(!I||Y[0]&8)&&O(n,"hidden",!J[3]),(!I||Y[1]&2097152)&&O(n,"fullscreen",J[52]),Y[1]&33554432){b=Et(J[56]);let F;for(F=0;F<b.length;F+=1){let G=o0(J,b,F);P[F]?(P[F].p(G,Y),d(P[F],1)):(P[F]=s0(G),P[F].c(),d(P[F],1),P[F].m(r,l))}for(fe(),F=b.length;F<P.length;F+=1)A(F);de()}J[36]?M?(M.p(J,Y),Y[1]&32&&d(M,1)):(M=a0(J),M.c(),d(M,1),M.m(r,a)):M&&(fe(),_(M,1,1,()=>{M=null}),de()),J[37]?N?(N.p(J,Y),Y[1]&64&&d(N,1)):(N=u0(J),N.c(),d(N,1),N.m(r,s)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),J[57]?te?(te.p(J,Y),Y[1]&67108864&&d(te,1)):(te=c0(J),te.c(),d(te,1),te.m(r,u)):te&&(fe(),_(te,1,1,()=>{te=null}),de()),J[39]?_e?(_e.p(J,Y),Y[1]&256&&d(_e,1)):(_e=f0(J),_e.c(),d(_e,1),_e.m(r,null)):_e&&(fe(),_(_e,1,1,()=>{_e=null}),de()),(!I||Y[0]&134217736)&&O(r,"hidden",!J[3]&&!J[27]),(!I||Y[1]&2097152)&&O(r,"fullscreen",J[52]),J[8]?Z?(Z.p(J,Y),Y[0]&256&&d(Z,1)):(Z=d0(J),Z.c(),d(Z,1),Z.m(m,h)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),de()),J[34]?x?(x.p(J,Y),Y[1]&8&&d(x,1)):(x=m0(J),x.c(),d(x,1),x.m(m,w)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),J[33]?se?(se.p(J,Y),Y[1]&4&&d(se,1)):(se=p0(J),se.c(),d(se,1),se.m(m,g)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),J[8]?L?(L.p(J,Y),Y[0]&256&&d(L,1)):(L=_0(J),L.c(),d(L,1),L.m(m,null)):L&&(fe(),_(L,1,1,()=>{L=null}),de()),(!I||Y[0]&536870920)&&O(m,"hidden",!J[3]||J[29]),J[96]&&!J[29]?K?(K.p(J,Y),Y[0]&536870912&&d(K,1)):(K=h0(J),K.c(),d(K,1),K.m(v.parentNode,v)):K&&(fe(),_(K,1,1,()=>{K=null}),de())},i(J){if(!I){d(y);for(let Y=0;Y<b.length;Y+=1)d(P[Y]);d(M),d(N),d(te),d(_e),d(Z),d(x),d(se),d(L),d(K),I=!0}},o(J){_(y),P=P.filter(Boolean);for(let Y=0;Y<P.length;Y+=1)_(P[Y]);_(M),_(N),_(te),_(_e),_(Z),_(x),_(se),_(L),_(K),I=!1},d(J){J&&(k(e),k(t),k(n),k(o),k(r),k(f),k(m),k(C),k(v)),y&&y.d(),Ai(P,J),M&&M.d(),N&&N.d(),te&&te.d(),_e&&_e.d(),Z&&Z.d(),x&&x.d(),se&&se.d(),L&&L.d(),K&&K.d(J)}}}function r0(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new Ju({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s0(i){var n;let e,t;return e=new ts({props:{iconUrl:i[170],ariaLabel:(n=i[171])!=null?n:i[174],testId:i[172],onClick:i[173]}}),{c(){q(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[170]),r[1]&33554432&&(l.ariaLabel=(a=o[171])!=null?a:o[174]),r[1]&33554432&&(l.testId=o[172]),r[1]&33554432&&(l.onClick=o[173]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function a0(i){let e,t,n;function o(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new Wr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u0(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new n0({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function c0(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ql({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function f0(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Kr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function d0(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new Il({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function m0(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Zl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function p0(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Xl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function _0(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new Il({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function h0(i){let e,t,n,o,r=i[100]&&Q3(i),l=i[98]&&Y3(i),a=i[99]&&Z3(i);return{c(){r&&r.c(),e=B(),l&&l.c(),t=B(),a&&a.c(),n=dt()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function Q3(i){let e,t,n,o,r,l;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new es({props:s}),ge.push(()=>ze(t,"ref",a)),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-17qsgob"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3])},m(u,f){S(u,e,f),V(t,e,null),o=!0,r||(l=pe(e,"click",i[108]),r=!0)},p(u,f){let m={};f[0]&8&&(m.hidden=!u[3]),f[1]&65536&&(m.disabled=u[47]),f[0]&262144&&(m.click=u[18]),!n&&f[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,He(()=>n=!1)),t.$set(m),(!o||f[1]&2097152)&&O(e,"fullscreen",u[52]),(!o||f[0]&8)&&O(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function Y3(i){let e,t,n,o,r;function l(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new xr({props:a}),ge.push(()=>ze(t,"ref",l)),{c(){e=T("div"),q(t.$$.fragment),c(e,"class",o=Wc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-17qsgob"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),V(t,e,null),r=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,He(()=>n=!1)),t.$set(f),(!r||u[1]&2097152)&&O(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&O(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&k(e),R(t)}}}function Z3(i){let e,t,n,o,r,l;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new Jr({props:s}),ge.push(()=>ze(t,"ref",a)),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-17qsgob"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3])},m(u,f){S(u,e,f),V(t,e,null),o=!0,r||(l=pe(e,"click",i[109]),r=!0)},p(u,f){let m={};f[0]&8&&(m.hidden=!u[3]),f[1]&32768&&(m.disabled=u[46]),f[0]&65536&&(m.click=u[16]),!n&&f[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,He(()=>n=!1)),t.$set(m),(!o||f[1]&2097152)&&O(e,"fullscreen",u[52]),(!o||f[0]&8)&&O(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function g0(i){let e,t,n,o,r,l=i[53]&&b0(i),a=i[32]&&v0(i);return o=new Yr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=B(),a&&a.c(),t=B(),n=T("div"),q(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-17qsgob"),O(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,t,u),S(s,n,u),V(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=b0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(fe(),_(l,1,1,()=>{l=null}),de()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=v0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(fe(),_(a,1,1,()=>{a=null}),de());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!r||u[1]&2097152)&&O(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),R(o)}}}function b0(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new Ju({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","wrapper-top-right svelte-17qsgob"),O(e,"fullscreen",i[52])},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,He(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&O(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function v0(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Zl({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","wrapper-middle svelte-17qsgob")},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,He(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function X3(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[J3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function J3(i){let e,t;return e=new Xl({props:{disabled:i[48],click:i[95]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[x3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function x3(i){let e,t;return e=new Gr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function w0(i){let e,t,n;function o(l){i[146](l)}let r={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Nr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function k0(i){let e,t,n,o;return n=new Xr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=B(),q(n.$$.fragment),c(e,"aria-hidden","true")},m(r,l){S(r,e,l),S(r,t,l),V(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),R(n,r)}}}function $3(i){let e,t,n=i[43]&&k0(i);return{c(){n&&n.c(),e=dt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=k0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function C0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[e5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function e5(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ql({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function S0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[t5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Dt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function t5(i){let e,t;return e=new zr({props:{click:i[14],isFullscreen:i[52]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function T0(i){let e,t,n,o;function r(a){i[154](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new Dr({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","settings-mobile svelte-17qsgob")},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],He(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function i5(i){let e,t,n;function o(l){i[155](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new cs({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function n5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P=!i[4]&&l0(i),A=i[4]&&i[30]!=="inactive"&&g0(i),M=i[96]&&X3(i),N=!i[4]&&i[25]&&y0(i),te=i[41]&&w0(i);function _e(F){i[147](F)}let Z={className:"w-max",disabled:!i[43],$$slots:{default:[$3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(Z.ref=i[20].episodes),u=new Dt({props:Z}),ge.push(()=>ze(u,"ref",_e));let x=i[38]&&C0(i),se=i[40]&&S0(i);function L(F){i[152](F)}let K={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(K.ref=i[20].timeline),g=new Zr({props:K}),ge.push(()=>ze(g,"ref",L));let J=i[23]&&T0(i),Y=i[101]&&i5(i);return{c(){P&&P.c(),e=B(),A&&A.c(),t=B(),n=T("div"),o=T("div"),r=T("div"),M&&M.c(),l=B(),N&&N.c(),a=B(),te&&te.c(),s=B(),q(u.$$.fragment),m=B(),x&&x.c(),h=B(),se&&se.c(),w=B(),q(g.$$.fragment),v=B(),J&&J.c(),I=B(),Y&&Y.c(),y=dt(),c(r,"class","controls svelte-17qsgob"),O(r,"mobile",!0),c(o,"class","controls-wrapper svelte-17qsgob"),O(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-17qsgob"),O(n,"hidden",i[1]),O(n,"controls-hidden",!i[3]),O(n,"no-smooth",i[2]),O(n,"mobile",!0)},m(F,G){P&&P.m(F,G),S(F,e,G),A&&A.m(F,G),S(F,t,G),S(F,n,G),p(n,o),p(o,r),M&&M.m(r,null),p(r,l),N&&N.m(r,null),p(r,a),te&&te.m(r,null),p(r,s),V(u,r,null),p(r,m),x&&x.m(r,null),p(r,h),se&&se.m(r,null),i[151](r),p(o,w),V(g,o,null),i[153](n),S(F,v,G),J&&J.m(F,G),S(F,I,G),Y&&Y.m(F,G),S(F,y,G),b=!0},p(F,G){F[4]?P&&(fe(),_(P,1,1,()=>{P=null}),de()):P?(P.p(F,G),G[0]&16&&d(P,1)):(P=l0(F),P.c(),d(P,1),P.m(e.parentNode,e)),F[4]&&F[30]!=="inactive"?A?(A.p(F,G),G[0]&1073741840&&d(A,1)):(A=g0(F),A.c(),d(A,1),A.m(t.parentNode,t)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),F[96]&&M.p(F,G),!F[4]&&F[25]?N?(N.p(F,G),G[0]&33554448&&d(N,1)):(N=y0(F),N.c(),d(N,1),N.m(r,a)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),F[41]?te?(te.p(F,G),G[1]&1024&&d(te,1)):(te=w0(F),te.c(),d(te,1),te.m(r,s)):te&&(fe(),_(te,1,1,()=>{te=null}),de());let X={};G[1]&4096&&(X.disabled=!F[43]),G[1]&1073745920|G[2]&1|G[5]&4194304&&(X.$$scope={dirty:G,ctx:F}),!f&&G[0]&1048576&&(f=!0,X.ref=F[20].episodes,He(()=>f=!1)),u.$set(X),F[38]?x?(x.p(F,G),G[1]&128&&d(x,1)):(x=C0(F),x.c(),d(x,1),x.m(r,h)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),F[40]?se?(se.p(F,G),G[1]&512&&d(se,1)):(se=S0(F),se.c(),d(se,1),se.m(r,null)):se&&(fe(),_(se,1,1,()=>{se=null}),de());let le={};G[0]&16&&(le.isAds=F[4]),G[0]&32&&(le.canRewindLive=F[5]),G[0]&16777216&&(le.isRewindableLive=F[24]),!C&&G[0]&1048576&&(C=!0,le.ref=F[20].timeline,He(()=>C=!1)),g.$set(le),(!b||G[1]&2097152)&&O(o,"fullscreen",F[52]),(!b||G[0]&2)&&O(n,"hidden",F[1]),(!b||G[0]&8)&&O(n,"controls-hidden",!F[3]),(!b||G[0]&4)&&O(n,"no-smooth",F[2]),F[23]?J?(J.p(F,G),G[0]&8388608&&d(J,1)):(J=T0(F),J.c(),d(J,1),J.m(I.parentNode,I)):J&&(fe(),_(J,1,1,()=>{J=null}),de()),F[101]&&Y.p(F,G)},i(F){b||(d(P),d(A),d(M),d(N),d(te),d(u.$$.fragment,F),d(x),d(se),d(g.$$.fragment,F),d(J),d(Y),b=!0)},o(F){_(P),_(A),_(M),_(N),_(te),_(u.$$.fragment,F),_(x),_(se),_(g.$$.fragment,F),_(J),_(Y),b=!1},d(F){F&&(k(e),k(t),k(n),k(v),k(I),k(y)),P&&P.d(F),A&&A.d(F),M&&M.d(),N&&N.d(),te&&te.d(),R(u),x&&x.d(),se&&se.d(),i[151](null),R(g),i[153](null),J&&J.d(F),Y&&Y.d(F)}}}function o5(i,e,t){var hn,to;let n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,L,K,J,Y,F,G,X,le,qe,Xe,Ee,{bottomHidden:Be}=e,{bottomNoSmooth:De}=e,{showControls:xe}=e,{controlsElementRef:ae=void 0}=e,{isAds:he=!1}=e,{canRewindLive:at}=e,{logoClickable:Ce}=e,{logoHidden:Ke}=e,{logoTargetUrl:mt=""}=e,{showNextPrevButtons:Ye}=e,{nextButtonActive:Ge}=e,{prevButtonActive:Ze}=e,{isOneVideoPlaylist:et=!1}=e,{supportLink:ce}=e,{customFullscreenSupported:Pe=!0}=e,{playNextVideo:We}=e,{playPrevVideo:re}=e,{repeatPlaylist:Te}=e,{toggleFullscreen:pt}=e,{returnFocus:Le}=e,{seekToInteractive:ut}=e,{toggleGraph:me}=e,{playPrevChapter:tt}=e,{onDisabledPlayPrevChapterClick:Ct}=e,{onDisabledSeekToInteractiveClick:bt}=e,Ue=rt(),Ot=Wn(),Vt=Ht(),St=Ue.actions.internal.toggleMuted,ni=Ue.actions.internal.togglePlay,ct=Ue.actions.internal.pause,lt=(hn=Ue.callbacks)==null?void 0:hn.onAudioDoesNotExistHint,be=(to=Ue.callbacks)==null?void 0:to.onAudioDisabledHint,Je=Ue.playerPhase;H(i,Je,oe=>t(126,N=oe));let _t=Ue.state.duration$;H(i,_t,oe=>t(62,Ee=oe));let Ft=Ue.state.positionWithScrubbing$;H(i,Ft,oe=>t(61,Xe=oe));let yt=Ue.state.playbackState$;H(i,yt,oe=>t(121,h=oe));let Xt=Ue.state.isAudioAvailable$;H(i,Xt,oe=>t(51,w=oe));let mi=Ue.state.isAudioDisabled,Mt=Ue.state.isEnded$;H(i,Mt,oe=>t(127,_e=oe));let zi=Ue.state.isLive$;H(i,zi,oe=>t(25,y=oe));let an=Ue.state.muted$;H(i,an,oe=>t(54,J=oe));let oi=Ue.state.isActiveLive$;H(i,oi,oe=>t(124,v=oe));let Vi=Ue.state.isRewindableLive$;H(i,Vi,oe=>t(24,I=oe));let un=Ue.ui.scrubbingInProgress;H(i,un,oe=>t(29,te=oe));let Ui=Ue.ui.mobileNotReportControlHidden$;H(i,Ui,oe=>t(27,A=oe));let cn=Ue.ui.isPictureInPictureActive$;H(i,cn,oe=>t(26,P=oe));let Ri=Ue.ui.pictureInPictureType$;H(i,Ri,oe=>t(125,b=oe));let Bi=Ue.ui.mobileUnmuteButtonExpanded;H(i,Bi,oe=>t(55,Y=oe));let pi=Ue.ui.mobileUnmuteButtonVisible;H(i,pi,oe=>t(53,K=oe));let _i=Ue.ui.settingsMenuVisible;H(i,_i,oe=>t(23,m=oe));let yi=Ue.ui.settingsMenuOpenedByKeyboard;H(i,yi,oe=>t(120,f=oe));let wi=Ue.ui.controls,Jt=Ue.actions.internal.getVideoEpisodes(),zt=Ue.webApi.pictureInPictureApi,Ki=Ue.state.chromecastState$;H(i,Ki,oe=>t(28,M=oe));let Wt=Ue.state.crashed$;H(i,Wt,oe=>t(57,G=oe));let ki=wi.disabledControls$;H(i,ki,oe=>t(128,x=oe));let qi=Ue.ui.startedByKeyboard$;H(i,qi,oe=>t(119,u=oe));let Wi=Ue.ads.duration;H(i,Wi,oe=>t(60,qe=oe));let li=Ue.ads.position;H(i,li,oe=>t(59,le=oe));let wt=Ue.ads.playbackState;H(i,wt,oe=>t(30,Z=oe));let ji=Ue.ui.isFullscreen;H(i,ji,oe=>t(52,L=oe));let Di=Ue.ui.playerSize;H(i,Di,oe=>t(123,C=oe));let Pt=Ue.ui.additionalButtons$;H(i,Pt,oe=>t(56,F=oe));let Gi=Ue.actions.internal.getVideoElement,Qi=Ue.actions.internal.replayInteractive,xt=Ue.state.isInteractive,Ci=Ue.state.isInteractiveTime$;H(i,Ci,oe=>t(122,g=oe));let hi=Ue.state.showInteractiveGraph,Si=Ue.state.showSeekToInteractive,$t=Ue.state.showPlayPrevChapter,jt=Ue.state.showInteractiveTimeIndicator,ri=Ue.state.graphIsOpened$;H(i,ri,oe=>t(58,X=oe));let Ni=Ot.seekToInteractiveDisabledTooltip$;H(i,Ni,oe=>t(129,se=oe));let ci,fi,si,gi,Yi,vn,Zi,di,ei,Xi,Nt,Ut,Ji,Ti,Oi,fn,it,bi,ai,je={},xi=(0,P0.debounceFn)(as,260),yn=()=>Ue.actions.internal.toggleChromecast();function dn(){yo({isAudioDisabled:mi,audioDisabledHintCallback:be,isAudioAvailable:w,audioIsNotExistHintCallback:lt})&&St()}async function Fi(){zt!=null&&zt.isActive()?await(zt==null?void 0:zt.remove()):await(zt==null?void 0:zt.request())}function $i(){!mi&&w&&pi.set(!1),dn()}let mn=et?ni:Te,Pi="",ti=(oe,So)=>{if(!oe){t(45,Pi=z("tooltip_live"));return}So===Ll.PlaybackState.PAUSED&&t(45,Pi=z("tooltip_play"))},en,Ii,Vn=()=>{s&&Ct(ci)},wn=()=>{r&&bt(fi)};function kn(oe){i.$$.not_equal(je.volume,oe)&&(je.volume=oe,t(20,je))}function Cn(oe){i.$$.not_equal(je.chromecast,oe)&&(je.chromecast=oe,t(20,je))}function pn(oe){i.$$.not_equal(je.pip,oe)&&(je.pip=oe,t(20,je))}function Rn(oe){Ii=oe,t(22,Ii)}function tn(oe){i.$$.not_equal(je.vkLogo,oe)&&(je.vkLogo=oe,t(20,je))}function nn(oe){i.$$.not_equal(je.prevButton,oe)&&(je.prevButton=oe,t(20,je))}function Rt(oe){i.$$.not_equal(je.playButton,oe)&&(je.playButton=oe,t(20,je))}function Bn(oe){i.$$.not_equal(je.replayButton,oe)&&(je.replayButton=oe,t(20,je))}function Sn(oe){i.$$.not_equal(je.nextButton,oe)&&(je.nextButton=oe,t(20,je))}function Fn(oe){i.$$.not_equal(je.playPrevChapterButton,oe)&&(je.playPrevChapterButton=oe,t(20,je))}function ii(oe){i.$$.not_equal(je.interactiveGraphButton,oe)&&(je.interactiveGraphButton=oe,t(20,je))}function Hn(oe){i.$$.not_equal(je.seekToInteractiveButton,oe)&&(je.seekToInteractiveButton=oe,t(20,je))}function zn(oe){i.$$.not_equal(je.volume,oe)&&(je.volume=oe,t(20,je))}function Tn(oe){i.$$.not_equal(je.playButton,oe)&&(je.playButton=oe,t(20,je))}function Pn(oe){i.$$.not_equal(je.replayButton,oe)&&(je.replayButton=oe,t(20,je))}function An(oe){i.$$.not_equal(je.liveButton,oe)&&(je.liveButton=oe,t(20,je))}function _n(oe){i.$$.not_equal(je.time,oe)&&(je.time=oe,t(20,je))}function ne(oe){i.$$.not_equal(je.episodes,oe)&&(je.episodes=oe,t(20,je))}function kt(oe){Ii=oe,t(22,Ii)}function on(oe){i.$$.not_equal(je.settings,oe)&&(je.settings=oe,t(20,je))}function Ei(oe){i.$$.not_equal(je.fullscreen,oe)&&(je.fullscreen=oe,t(20,je))}function ie(oe){ge[oe?"unshift":"push"](()=>{bi=oe,t(44,bi)})}function ft(oe){i.$$.not_equal(je.timeline,oe)&&(je.timeline=oe,t(20,je))}function Gt(oe){ge[oe?"unshift":"push"](()=>{ae=oe,t(0,ae)})}function qn(oe){en=oe,t(21,en)}function Un(oe){i.$$.not_equal(je.interactiveTimeIndicator,oe)&&(je.interactiveTimeIndicator=oe,t(20,je))}return i.$$set=oe=>{"bottomHidden"in oe&&t(1,Be=oe.bottomHidden),"bottomNoSmooth"in oe&&t(2,De=oe.bottomNoSmooth),"showControls"in oe&&t(3,xe=oe.showControls),"controlsElementRef"in oe&&t(0,ae=oe.controlsElementRef),"isAds"in oe&&t(4,he=oe.isAds),"canRewindLive"in oe&&t(5,at=oe.canRewindLive),"logoClickable"in oe&&t(6,Ce=oe.logoClickable),"logoHidden"in oe&&t(110,Ke=oe.logoHidden),"logoTargetUrl"in oe&&t(7,mt=oe.logoTargetUrl),"showNextPrevButtons"in oe&&t(8,Ye=oe.showNextPrevButtons),"nextButtonActive"in oe&&t(9,Ge=oe.nextButtonActive),"prevButtonActive"in oe&&t(10,Ze=oe.prevButtonActive),"isOneVideoPlaylist"in oe&&t(111,et=oe.isOneVideoPlaylist),"supportLink"in oe&&t(11,ce=oe.supportLink),"customFullscreenSupported"in oe&&t(112,Pe=oe.customFullscreenSupported),"playNextVideo"in oe&&t(12,We=oe.playNextVideo),"playPrevVideo"in oe&&t(13,re=oe.playPrevVideo),"repeatPlaylist"in oe&&t(113,Te=oe.repeatPlaylist),"toggleFullscreen"in oe&&t(14,pt=oe.toggleFullscreen),"returnFocus"in oe&&t(15,Le=oe.returnFocus),"seekToInteractive"in oe&&t(16,ut=oe.seekToInteractive),"toggleGraph"in oe&&t(17,me=oe.toggleGraph),"playPrevChapter"in oe&&t(18,tt=oe.playPrevChapter),"onDisabledPlayPrevChapterClick"in oe&&t(114,Ct=oe.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in oe&&t(115,bt=oe.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32&&(fi=z(se)),i.$$.dirty[4]&16&&t(118,n=x.has("EPISODE_BUTTON")),i.$$.dirty[4]&16&&t(50,o=x.has("GRAPH_BUTTON")),i.$$.dirty[4]&16&&t(46,r=x.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&16&&t(49,l=x.has("PLAY_BUTTON")),i.$$.dirty[4]&16&&t(48,a=x.has("REPLAY_BUTTON")),i.$$.dirty[4]&16&&t(47,s=x.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(31,si=h===Ll.PlaybackState.PLAYING),i.$$.dirty[0]&1073741824&&t(32,gi=Z==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(33,Yi=_e&&!he&&!xt),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(34,vn=!_e||he),i.$$.dirty[3]&1073741824&&t(116,Zi=C.width>300),i.$$.dirty[3]&1073741824&&t(35,di=C.width>400),i.$$.dirty[0]&536870912&&t(117,ei=te),i.$$.dirty[0]&469762048|i.$$.dirty[4]&2&&t(36,Xi=M!==Ll.ChromecastState.NOT_AVAILABLE&&!(P&&b===1)&&!A&&!xt),i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6){let oe=N==="LiveWaitingStart";t(37,Nt=!!zt&&M!==Ll.ChromecastState.CONNECTED&&!A&&(b===1&&oe||!oe)&&!ei&&!xt)}i.$$.dirty[3]&16777216&&t(38,Ut=!ei),i.$$.dirty[3]&1073872896&&t(39,Ji=!Ke&&C.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2&&t(40,Ti=Vt.features.fullscreen&&!(P&&b===1)&&(xt?Pe:!0)&&!ei),i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040&&t(41,Oi=(!y||he)&&C.width>260&&!ei&&!(Vt.features.interactiveHideTime&&xt)),i.$$.dirty[0]&8388616&&t(42,fn=m||xe),i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256&&t(43,it=!he&&!y&&!!(Jt!=null&&Jt.length)&&Zi&&!n&&!ei),i.$$.dirty[0]&16777216|i.$$.dirty[4]&1&&t(19,ai=!I||v),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736&&xi(Gi(),wi,je,xe),i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456&&ti(ai,h),i.$$.dirty[0]&12582912&&bl(Ii,m,yi),i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728&&jo(en,m,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864&&us(qi,u,je.playButton)},ci=z(Ue.state.playPrevChapterDisabledTooltip),[ae,Be,De,xe,he,at,Ce,mt,Ye,Ge,Ze,ce,We,re,pt,Le,ut,me,tt,ai,je,en,Ii,m,I,y,P,A,M,te,Z,si,gi,Yi,vn,di,Xi,Nt,Ut,Ji,Ti,Oi,fn,it,bi,Pi,r,s,a,l,o,w,L,K,J,Y,F,G,X,le,qe,Xe,Ee,ni,ct,Je,_t,Ft,yt,Xt,mi,Mt,zi,an,oi,Vi,un,Ui,cn,Ri,Bi,pi,_i,yi,Jt,Ki,Wt,ki,qi,Wi,li,wt,ji,Di,Pt,Qi,xt,Ci,hi,Si,$t,jt,ri,Ni,yn,Fi,$i,mn,Vn,wn,Ke,et,Pe,Te,Ct,bt,Zi,ei,n,u,f,h,g,C,v,b,N,_e,x,se,kn,Cn,pn,Rn,tn,nn,Rt,Bn,Sn,Fn,ii,Hn,zn,Tn,Pn,An,_n,ne,kt,on,Ei,ie,ft,Gt,qn,Un]}var tc=class extends W{constructor(e){super(),j(this,e,o5,n5,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},G3,[-1,-1,-1,-1,-1,-1])}},I0=tc;function l5(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new Xm({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function r5(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new I0({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s5(i){let e,t,n,o,r=[r5,l5],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function a5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:w}=e,{nextButtonActive:g}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:v=!1}=e,{supportLink:I}=e,{customFullscreenSupported:y=!0}=e,{playNextVideo:b}=e,{playPrevVideo:P}=e,{repeatPlaylist:A}=e,{toggleFullscreen:M}=e,{returnFocus:N=fs.noop}=e,{seekToInteractive:te}=e,{toggleGraph:_e}=e,{playPrevChapter:Z}=e,{onDisabledPlayPrevChapterClick:x=fs.noop}=e,{onDisabledSeekToInteractiveClick:se=fs.noop}=e,K=rt().ui.isMobile;H(i,K,F=>t(25,n=F));function J(F){a=F,t(0,a)}function Y(F){a=F,t(0,a)}return i.$$set=F=>{"bottomHidden"in F&&t(1,o=F.bottomHidden),"bottomNoSmooth"in F&&t(2,r=F.bottomNoSmooth),"showControls"in F&&t(3,l=F.showControls),"controlsElementRef"in F&&t(0,a=F.controlsElementRef),"isAds"in F&&t(4,s=F.isAds),"canRewindLive"in F&&t(5,u=F.canRewindLive),"logoClickable"in F&&t(6,f=F.logoClickable),"logoHidden"in F&&t(7,m=F.logoHidden),"logoTargetUrl"in F&&t(8,h=F.logoTargetUrl),"showNextPrevButtons"in F&&t(9,w=F.showNextPrevButtons),"nextButtonActive"in F&&t(10,g=F.nextButtonActive),"prevButtonActive"in F&&t(11,C=F.prevButtonActive),"isOneVideoPlaylist"in F&&t(12,v=F.isOneVideoPlaylist),"supportLink"in F&&t(13,I=F.supportLink),"customFullscreenSupported"in F&&t(14,y=F.customFullscreenSupported),"playNextVideo"in F&&t(15,b=F.playNextVideo),"playPrevVideo"in F&&t(16,P=F.playPrevVideo),"repeatPlaylist"in F&&t(17,A=F.repeatPlaylist),"toggleFullscreen"in F&&t(18,M=F.toggleFullscreen),"returnFocus"in F&&t(19,N=F.returnFocus),"seekToInteractive"in F&&t(20,te=F.seekToInteractive),"toggleGraph"in F&&t(21,_e=F.toggleGraph),"playPrevChapter"in F&&t(22,Z=F.playPrevChapter),"onDisabledPlayPrevChapterClick"in F&&t(23,x=F.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in F&&t(24,se=F.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,n,K,J,Y]}var ic=class extends W{constructor(e){super(),j(this,e,a5,s5,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},ds=ic;function u5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C=i[2].default,v=Ae(C,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],y={};for(let b=0;b<I.length;b+=1)y=ue(y,I[b]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_100684"),c(w,"result","shape"),c(l,"id","a"),c(l,"width","43.996"),c(l,"height","49.5"),c(l,"x","2.5"),c(l,"y","0"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Ve(v,C,b,b[1],g?Me(C,b[1],P,null):Re(b[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&k(e),v&&v.d(b)}}}function c5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var nc=class extends W{constructor(e){super(),j(this,e,c5,u5,U,{})}},E0=nc;function f5(i){let e,t;return e=new E0({props:{style:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d5(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 oc=class extends W{constructor(e){super(),j(this,e,d5,f5,U,{reversed:1})}},L0=oc;function m5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I=i[2].default,y=Ae(I,i,i[1],null),b=[{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]],P={};for(let A=0;A<b.length;A+=1)P=ue(P,b[A]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("clipPath"),a=D("path"),s=D("filter"),u=D("feFlood"),f=D("feColorMatrix"),m=D("feOffset"),h=D("feGaussianBlur"),w=D("feColorMatrix"),g=D("feBlend"),C=D("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(l,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_104204"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_104204"),c(C,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),we(e,P)},m(A,M){S(A,e,M),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,f),p(s,m),p(s,h),p(s,w),p(s,g),p(s,C),v=!0},p(A,[M]){y&&y.p&&(!v||M&2)&&Ve(y,I,A,A[1],v?Me(I,A[1],M,null):Re(A[1]),null),we(e,P=Oe(b,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},M&1&&A[0]]))},i(A){v||(d(y,A),v=!0)},o(A){_(y,A),v=!1},d(A){A&&k(e),y&&y.d(A)}}}function p5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var lc=class extends W{constructor(e){super(),j(this,e,p5,m5,U,{})}},A0=lc;function _5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y=i[2].default,b=Ae(y,i,i[1],null),P=[{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]],A={};for(let M=0;M<P.length;M+=1)A=ue(A,P[M]);return{c(){e=D("svg"),b&&b.c(),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("defs"),a=D("clipPath"),s=D("path"),u=D("filter"),f=D("feFlood"),m=D("feColorMatrix"),h=D("feOffset"),w=D("feGaussianBlur"),g=D("feColorMatrix"),C=D("feBlend"),v=D("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(r,"stroke","#000"),c(r,"stroke-opacity",".12"),c(r,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(m,"in","SourceAlpha"),c(m,"result","hardAlpha"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_2260_104293"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_2260_104293"),c(v,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),we(e,A)},m(M,N){S(M,e,N),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,f),p(u,m),p(u,h),p(u,w),p(u,g),p(u,C),p(u,v),I=!0},p(M,[N]){b&&b.p&&(!I||N&2)&&Ve(b,y,M,M[1],I?Me(y,M[1],N,null):Re(M[1]),null),we(e,A=Oe(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},N&1&&M[0]]))},i(M){I||(d(b,M),I=!0)},o(M){_(b,M),I=!1},d(M){M&&k(e),b&&b.d(M)}}}function h5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var rc=class extends W{constructor(e){super(),j(this,e,h5,_5,U,{})}},M0=rc;function g5(i){let e,t;return e=new A0({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function b5(i){let e,t;return e=new M0({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function v5(i){let e,t,n,o,r=[b5,g5],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function y5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var sc=class extends W{constructor(e){super(),j(this,e,y5,v5,U,{isOff:0})}},ac=sc;function w5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C=i[2].default,v=Ae(C,i,i[1],null),I=[{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]],y={};for(let b=0;b<I.length;b+=1)y=ue(y,I[b]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_106627"),c(w,"result","shape"),c(l,"id","a"),c(l,"width","40.098"),c(l,"height","27.785"),c(l,"x","3.402"),c(l,"y","10.105"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Ve(v,C,b,b[1],g?Me(C,b[1],P,null):Re(b[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&k(e),v&&v.d(b)}}}function k5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var uc=class extends W{constructor(e){super(),j(this,e,k5,w5,U,{})}},V0=uc;function C5(i){let e,t;return e=new V0({props:{style:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function S5(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 cc=class extends W{constructor(e){super(),j(this,e,S5,C5,U,{reversed:1})}},R0=cc;function T5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C=i[2].default,v=Ae(C,i,i[1],null),I=[{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]],y={};for(let b=0;b<I.length;b+=1)y=ue(y,I[b]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2340_106922"),c(w,"result","shape"),c(l,"id","a"),c(l,"width","37"),c(l,"height","37"),c(l,"x","5.5"),c(l,"y","5.5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Ve(v,C,b,b[1],g?Me(C,b[1],P,null):Re(b[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&k(e),v&&v.d(b)}}}function P5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var fc=class extends W{constructor(e){super(),j(this,e,P5,T5,U,{})}},B0=fc;function I5(i){let e,t;return e=new B0({props:{style:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E5(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 W{constructor(e){super(),j(this,e,E5,I5,U,{reversed:1})}},q0=dc;function L5(i){Ie(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 D0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,w,g,C,v,I=t&&N0(i),y=i[4]==="PAUSE"&&O0(i),b=i[4]==="PLAY"&&F0(i),P=i[4]==="REPLAY"&&H0(i),A=i[4]==="SUBTITLES_OFF"&&z0(i),M=i[4]==="SUBTITLES_ON"&&U0(i),N=u&&K0(i),te=m&&W0(i),_e=i[4]==="MUTE"&&j0(i),Z=i[4]==="VOLUME"&&G0(i),x=i[5]&&Q0(i);return{c(){e=T("div"),I&&I.c(),n=B(),y&&y.c(),o=B(),b&&b.c(),r=B(),P&&P.c(),l=B(),A&&A.c(),a=B(),M&&M.c(),s=B(),N&&N.c(),f=B(),te&&te.c(),h=B(),_e&&_e.c(),w=B(),Z&&Z.c(),g=B(),x&&x.c(),C=dt(),c(e,"class","svelte-1ad3n06")},m(se,L){S(se,e,L),I&&I.m(e,null),p(e,n),y&&y.m(e,null),p(e,o),b&&b.m(e,null),p(e,r),P&&P.m(e,null),p(e,l),A&&A.m(e,null),p(e,a),M&&M.m(e,null),p(e,s),N&&N.m(e,null),p(e,f),te&&te.m(e,null),p(e,h),_e&&_e.m(e,null),p(e,w),Z&&Z.m(e,null),S(se,g,L),x&&x.m(se,L),S(se,C,L),v=!0},p(se,L){L&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(se[4])),t?I?(I.p(se,L),L&16&&d(I,1)):(I=N0(se),I.c(),d(I,1),I.m(e,n)):I&&(fe(),_(I,1,1,()=>{I=null}),de()),se[4]==="PAUSE"?y?L&16&&d(y,1):(y=O0(se),y.c(),d(y,1),y.m(e,o)):y&&(fe(),_(y,1,1,()=>{y=null}),de()),se[4]==="PLAY"?b?L&16&&d(b,1):(b=F0(se),b.c(),d(b,1),b.m(e,r)):b&&(fe(),_(b,1,1,()=>{b=null}),de()),se[4]==="REPLAY"?P?L&16&&d(P,1):(P=H0(se),P.c(),d(P,1),P.m(e,l)):P&&(fe(),_(P,1,1,()=>{P=null}),de()),se[4]==="SUBTITLES_OFF"?A?L&16&&d(A,1):(A=z0(se),A.c(),d(A,1),A.m(e,a)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),se[4]==="SUBTITLES_ON"?M?L&16&&d(M,1):(M=U0(se),M.c(),d(M,1),M.m(e,s)):M&&(fe(),_(M,1,1,()=>{M=null}),de()),L&16&&(u=["RATE_DOWN","RATE_UP"].includes(se[4])),u?N?(N.p(se,L),L&16&&d(N,1)):(N=K0(se),N.c(),d(N,1),N.m(e,f)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),L&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(se[4])),m?te?(te.p(se,L),L&16&&d(te,1)):(te=W0(se),te.c(),d(te,1),te.m(e,h)):te&&(fe(),_(te,1,1,()=>{te=null}),de()),se[4]==="MUTE"?_e?L&16&&d(_e,1):(_e=j0(se),_e.c(),d(_e,1),_e.m(e,w)):_e&&(fe(),_(_e,1,1,()=>{_e=null}),de()),se[4]==="VOLUME"?Z?L&16&&d(Z,1):(Z=G0(se),Z.c(),d(Z,1),Z.m(e,null)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),de()),se[5]?x?x.p(se,L):(x=Q0(se),x.c(),x.m(C.parentNode,C)):x&&(x.d(1),x=null)},i(se){v||(d(I),d(y),d(b),d(P),d(A),d(M),d(N),d(te),d(_e),d(Z),v=!0)},o(se){_(I),_(y),_(b),_(P),_(A),_(M),_(N),_(te),_(_e),_(Z),v=!1},d(se){se&&(k(e),k(g),k(C)),I&&I.d(),y&&y.d(),b&&b.d(),P&&P.d(),A&&A.d(),M&&M.d(),N&&N.d(),te&&te.d(),_e&&_e.d(),Z&&Z.d(),x&&x.d(se)}}}function N0(i){let e,t;return e=new L0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function O0(i){let e,t;return e=new Ur({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F0(i){let e,t;return e=new Pl({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function H0(i){let e,t;return e=new $r({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function z0(i){let e,t;return e=new ac({props:{isOff:!0}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function U0(i){let e,t;return e=new ac({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function K0(i){let e,t;return e=new R0({props:{reversed:i[4]==="RATE_UP"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function W0(i){let e,t;return e=new q0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function j0(i){let e,t;return e=new Yo({props:{volume:0}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function G0(i){let e,t;return e=new Yo({props:{volume:1}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q0(i){let e,t;return{c(){e=T("span"),t=Ne(i[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&32&&Qe(t,n[5])},d(n){n&&k(e)}}}function A5(i){let e,t,n=!i[1]&&i[4]&&D0(i);return{c(){e=T("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),O(e,"hidden",i[1]),O(e,"hot-key-helpers-container--left",i[2]),O(e,"hot-key-helpers-container--right",i[3])},m(o,r){S(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=D0(o),n.c(),d(n,1),n.m(e,null)):n&&(fe(),_(n,1,1,()=>{n=null}),de()),(!t||r&2)&&O(e,"hidden",o[1]),(!t||r&4)&&O(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&O(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function M5(i,e,t){let n,o=Se,r=()=>(o(),o=Qt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,f,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,f=n==null?void 0:n.type),n!=null&&n.t?t(5,m=z(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[l,a,s,u,f,m,n]}var mc=class extends W{constructor(e){super(),j(this,e,M5,A5,U,{data:0},L5)}},Y0=mc;function V5(i){Ie(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 R5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b;return r=new Zn({props:{direction:"up"}}),s=new Zn({props:{direction:"up"}}),h=new Zn({props:{direction:"up"}}),C=new Zn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),q(r.$$.fragment),l=B(),a=T("div"),q(s.$$.fragment),u=B(),f=T("div"),m=T("div"),q(h.$$.fragment),w=B(),g=T("div"),q(C.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(m,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",v=z("aria_label_spherical_control")),O(e,"m-shifted",i[0])},m(P,A){S(P,e,A),p(e,t),p(t,n),p(n,o),V(r,o,null),p(n,l),p(n,a),V(s,a,null),p(t,u),p(t,f),p(f,m),V(h,m,null),p(f,w),p(f,g),V(C,g,null),I=!0,y||(b=[pe(o,"mousedown",i[1]),pe(o,"mouseup",i[5]),pe(o,"mouseleave",i[5]),pe(a,"mousedown",i[3]),pe(a,"mouseup",i[5]),pe(a,"mouseleave",i[5]),pe(m,"mousedown",i[4]),pe(m,"mouseup",i[5]),pe(m,"mouseleave",i[5]),pe(g,"mousedown",i[2]),pe(g,"mouseup",i[5]),pe(g,"mouseleave",i[5]),pe(e,"keydown",i[6]),pe(e,"keyup",i[7])],y=!0)},p(P,[A]){(!I||A&1)&&O(e,"m-shifted",P[0])},i(P){I||(d(r.$$.fragment,P),d(s.$$.fragment,P),d(h.$$.fragment,P),d(C.$$.fragment,P),I=!0)},o(P){_(r.$$.fragment,P),_(s.$$.fragment,P),_(h.$$.fragment,P),_(C.$$.fragment,P),I=!1},d(P){P&&k(e),R(r),R(s),R(h),R(C),y=!1,nt(b)}}}function B5(i,e,t){let{isShifted:n=!1}=e,o=rt(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),m=w=>{if(r.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{r.has(w.code)&&(w.preventDefault(),w.stopPropagation(),f())};return i.$$set=w=>{"isShifted"in w&&t(0,n=w.isShifted)},[n,l,a,s,u,f,m,h]}var pc=class extends W{constructor(e){super(),j(this,e,B5,R5,U,{isShifted:0},V5)}},ms=pc;function q5(i){Ie(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 Z0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function X0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function J0(i){let e,t;function n(l,a){return l[7]&&l[8]?O5:l[5]?N5:D5}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),O(e,"mobile",i[3])},m(l,a){S(l,e,a),p(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&O(e,"mobile",l[3])},d(l){l&&k(e),r.d()}}}function D5(i){let e,t=Et(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=x0(Z0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=dt()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);S(o,e,r)},p(o,r){if(r&18){t=Et(o[1]);let l;for(l=0;l<t.length;l+=1){let a=Z0(o,t,l);n[l]?n[l].p(a,r):(n[l]=x0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Ai(n,o)}}}function N5(i){let e,t,n=Et(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=ep(X0(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();c(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=Et(r[6]);let a;for(a=0;a<n.length;a+=1){let s=X0(r,n,a);o[a]?o[a].p(s,l):(o[a]=ep(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&vi(t,"font-size",r[4]+"px")},d(r){r&&k(e),Ai(o,r)}}}function O5(i){let e,t,n=z("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Ne(n),c(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&vi(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function x0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=Ne(n),r=B(),c(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,a){S(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Qe(o,n),a&16&&vi(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function $0(i){let e=i[16]+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Qe(t,e)},d(n){n&&k(t)}}}function ep(i){let e,t=(!i[17]||i[17]<=i[2])&&$0(i);return{c(){t&&t.c(),e=dt()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=$0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function F5(i){let e,t=i[1].length>0&&J0(i);return{c(){e=T("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),O(e,"shifted",i[0]),O(e,"auto",i[5]&&!i[8])},m(n,o){S(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=J0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&O(e,"shifted",n[0]),o&288&&O(e,"auto",n[5]&&!n[8])},i:Se,o:Se,d(n){n&&k(e),t&&t.d()}}}function H5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=rt(),m=Ht(),h=f.state.currentSubtitle$;H(i,h,b=>t(12,n=b));let w=f.state.isAutoSubtitleCaptionVisible$;H(i,w,b=>t(8,o=b));let g,C,v,I,y;return qt(()=>{y=window.setTimeout(()=>{w.set(!1)},m.autoSubtitlesTimeout)}),Gn(()=>{window.clearTimeout(y)}),i.$$set=b=>{"shifted"in b&&t(0,r=b.shifted),"captions"in b&&t(1,l=b.captions),"position"in b&&t(2,a=b.position),"playerSize"in b&&t(11,s=b.playerSize),"isMobile"in b&&t(3,u=b.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let b=s.width*.02;t(4,g=b<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:b)}i.$$.dirty&2&&t(5,C=l.some(b=>b.type==="timestamp")),i.$$.dirty&2&&t(6,v=l.reduce((b,{type:P,value:A})=>(P==="timestamp"?b.push({timeAppeared:Number(A),value:""}):b.length===0?b.push({value:String(A)}):b[b.length-1].value=String(A),b),[])),i.$$.dirty&4096&&t(7,I=!!n.isAuto)},[r,l,a,u,g,C,v,I,o,h,w,s,n]}var _c=class extends W{constructor(e){super(),j(this,e,H5,F5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},q5)}},ps=_c;function z5(i){Ie(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 tp(i){let e,t,n;return{c(){e=T("div"),t=Ne("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Ne(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,r){S(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Qe(n,o[1])},d(o){o&&k(e)}}}function U5(i){let e,t,n,o,r,l,a=i[1]&&tp(i);return{c(){e=T("div"),t=T("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=B(),a&&a.c(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){S(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),r||(l=pe(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=tp(s),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('${s[0]||""}')`)&&c(e,"style",o)},i:Se,o:Se,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function K5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Dn.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var hc=class extends W{constructor(e){super(),j(this,e,K5,U5,U,{thumbUrl:0,chromecastDeviceName:1},z5)}},_s=hc;function W5(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function j5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var gc=class extends W{constructor(e){super(),j(this,e,j5,W5,U,{})}},ip=gc;function G5(i){Ie(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 Q5(i){let e,t,n;return t=new ip({}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}var bc=class extends W{constructor(e){super(),j(this,e,null,Q5,U,{},G5)}},hs=bc;function Y5(i){Ie(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 Z5(i){let e,t,n,o,r,l,a,s,u,f;return r=new Pl({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=B(),q(r.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",l=z("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),O(e,"hidden",i[1])},m(m,h){S(m,e,h),p(e,t),p(t,n),p(t,o),V(r,t,null),s=!0,u||(f=[pe(t,"keydown",i[3]),pe(e,"click",st(function(){Li(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&O(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&k(e),R(r),u=!1,nt(f)}}}function X5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=rt().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(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,s]}var vc=class extends W{constructor(e){super(),j(this,e,X5,Z5,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Y5)}get handlePressKey(){return this.$$.ctx[3]}},gs=vc;function J5(i){Ie(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: `),w=Ne(h),g=B(),v=Ne(k),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(I,y){S(I,e,y),p(e,t),p(e,n),p(e,o),p(o,r),p(o,a),p(o,s),p(o,f),p(o,m),p(o,w),p(o,g),p(o,v)},p(I,y){y&1&&l!==(l=(I[0].videoCodec||"")+"")&&Qe(a,l),y&1&&u!==(u=I[0].hdr?"(HDR)":"")&&Qe(f,u),y&1&&h!==(h=(I[0].audioCodec||"")+"")&&Qe(w,h),y&1&&k!==(k=I[0].audioLanguage?`(${I[0].audioLanguage})`:"")&&Qe(v,k)},d(I){I&&C(e)}}}function _d(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Qe(l,r)},d(a){a&&C(e)}}}function hd(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Qe(l,r)},d(a){a&&C(e)}}}function gd(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Qe(l,r)},d(a){a&&C(e)}}}function bd(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=B(),o=T("span"),l=Ne(r),a=Ne(" %"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Qe(l,r)},d(s){s&&C(e)}}}function vd(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=B(),o=T("span"),l=Ne(r),a=Ne(" s"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Qe(l,r)},d(s){s&&C(e)}}}function yd(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(Cd).map(Sd).join(" & ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=B(),o=T("span"),l=Ne(r),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(Cd).map(Sd).join(" & ")+"")&&Qe(l,r)},d(a){a&&C(e)}}}function wd(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new Ir({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=B(),D(o.$$.fragment),r=B(),l=T("span"),s=Ne(a),u=Ne(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(m,h){S(m,e,h),p(e,t),p(e,n),V(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),f=!0},p(m,h){let w={};h&32&&(w.values=m[5]),o.$set(w),(!f||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Qe(s,a)},i(m){f||(d(o.$$.fragment,m),f=!0)},o(m){_(o.$$.fragment,m),f=!1},d(m){m&&C(e),R(o)}}}function kd(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new Ir({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=B(),D(o.$$.fragment),r=B(),l=T("span"),s=Ne(a),u=Ne(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(m,h){S(m,e,h),p(e,t),p(e,n),V(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),f=!0},p(m,h){let w={};h&64&&(w.values=m[6]),o.$set(w),(!f||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Qe(s,a)},i(m){f||(d(o.$$.fragment,m),f=!0)},o(m){_(o.$$.fragment,m),f=!1},d(m){m&&C(e),R(o)}}}function _g(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,A,K,J,Y,F,G,X,oe,De,Xe,Ee,Be,qe,xe,ae,he=i[0].id&&fd(i),at=i[0].vsid&&dd(i),Ce=i[0].provider&&md(i),Ke=(i[0].videoCodec||i[0].audioCodec)&&pd(i),mt=i[0].viewport&&_d(i),Ye=i[0].videoSize&&hd(i),Ge=i[0].cdn&&gd(i),Ze=i[0].volume&&bd(i),et=i[0].buffer&&vd(i),ce=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&yd(i),Pe=i[0].speed&&wd(i),We=i[0].bitrate&&kd(i);return oe=new Ir({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=B(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=B(),s=T("span"),f=Ne(u),m=B(),he&&he.c(),h=B(),at&&at.c(),w=B(),Ce&&Ce.c(),g=B(),Ke&&Ke.c(),k=B(),mt&&mt.c(),v=B(),Ye&&Ye.c(),I=B(),Ge&&Ge.c(),y=B(),Ze&&Ze.c(),b=B(),et&&et.c(),P=B(),ce&&ce.c(),L=B(),M=T("div"),N=T("div"),N.textContent="Dropped",te=B(),_e=T("span"),Z=Ne(i[2]),x=Ne(" / "),se=Ne(i[1]),A=Ne(" frames"),K=B(),Pe&&Pe.c(),J=B(),We&&We.c(),Y=B(),F=T("div"),G=T("div"),G.textContent="FPS",X=B(),D(oe.$$.fragment),De=B(),Xe=T("span"),Ee=Ne(i[3]),c(t,"class","close svelte-k5ymwy"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(l,"class","svelte-k5ymwy"),c(r,"class","svelte-k5ymwy"),c(N,"class","svelte-k5ymwy"),c(M,"class","svelte-k5ymwy"),c(G,"class","svelte-k5ymwy"),c(F,"class","svelte-k5ymwy"),c(o,"class","content svelte-k5ymwy"),c(e,"class","container svelte-k5ymwy"),c(e,"role","region"),c(e,"aria-label",Be=z("aria_label_debug_panel")),O(e,"container-mobile",i[7])},m(le,Te){S(le,e,Te),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,f),p(o,m),he&&he.m(o,null),p(o,h),at&&at.m(o,null),p(o,w),Ce&&Ce.m(o,null),p(o,g),Ke&&Ke.m(o,null),p(o,k),mt&&mt.m(o,null),p(o,v),Ye&&Ye.m(o,null),p(o,I),Ge&&Ge.m(o,null),p(o,y),Ze&&Ze.m(o,null),p(o,b),et&&et.m(o,null),p(o,P),ce&&ce.m(o,null),p(o,L),p(o,M),p(M,N),p(M,te),p(M,_e),p(_e,Z),p(_e,x),p(_e,se),p(_e,A),p(o,K),Pe&&Pe.m(o,null),p(o,J),We&&We.m(o,null),p(o,Y),p(o,F),p(F,G),p(F,X),V(oe,F,null),p(F,De),p(F,Xe),p(Xe,Ee),qe=!0,xe||(ae=pe(t,"click",st(i[9])),xe=!0)},p(le,[Te]){(!qe||Te&1)&&u!==(u=le[0].version+"")&&Qe(f,u),le[0].id?he?he.p(le,Te):(he=fd(le),he.c(),he.m(o,h)):he&&(he.d(1),he=null),le[0].vsid?at?at.p(le,Te):(at=dd(le),at.c(),at.m(o,w)):at&&(at.d(1),at=null),le[0].provider?Ce?Ce.p(le,Te):(Ce=md(le),Ce.c(),Ce.m(o,g)):Ce&&(Ce.d(1),Ce=null),le[0].videoCodec||le[0].audioCodec?Ke?Ke.p(le,Te):(Ke=pd(le),Ke.c(),Ke.m(o,k)):Ke&&(Ke.d(1),Ke=null),le[0].viewport?mt?mt.p(le,Te):(mt=_d(le),mt.c(),mt.m(o,v)):mt&&(mt.d(1),mt=null),le[0].videoSize?Ye?Ye.p(le,Te):(Ye=hd(le),Ye.c(),Ye.m(o,I)):Ye&&(Ye.d(1),Ye=null),le[0].cdn?Ge?Ge.p(le,Te):(Ge=gd(le),Ge.c(),Ge.m(o,y)):Ge&&(Ge.d(1),Ge=null),le[0].volume?Ze?Ze.p(le,Te):(Ze=bd(le),Ze.c(),Ze.m(o,b)):Ze&&(Ze.d(1),Ze=null),le[0].buffer?et?et.p(le,Te):(et=vd(le),et.c(),et.m(o,P)):et&&(et.d(1),et=null),le[0].currentVideoSegmentLength||le[0].currentAudioSegmentLength?ce?ce.p(le,Te):(ce=yd(le),ce.c(),ce.m(o,L)):ce&&(ce.d(1),ce=null),(!qe||Te&4)&&Qe(Z,le[2]),(!qe||Te&2)&&Qe(se,le[1]),le[0].speed?Pe?(Pe.p(le,Te),Te&1&&d(Pe,1)):(Pe=wd(le),Pe.c(),d(Pe,1),Pe.m(o,J)):Pe&&(fe(),_(Pe,1,1,()=>{Pe=null}),de()),le[0].bitrate?We?(We.p(le,Te),Te&1&&d(We,1)):(We=kd(le),We.c(),d(We,1),We.m(o,Y)):We&&(fe(),_(We,1,1,()=>{We=null}),de());let pt={};Te&16&&(pt.values=le[4]),oe.$set(pt),(!qe||Te&8)&&Qe(Ee,le[3]),(!qe||Te&128)&&O(e,"container-mobile",le[7])},i(le){qe||(d(Pe),d(We),d(oe.$$.fragment,le),qe=!0)},o(le){_(Pe),_(We),_(oe.$$.fragment,le),qe=!1},d(le){le&&C(e),he&&he.d(),at&&at.d(),Ce&&Ce.d(),Ke&&Ke.d(),mt&&mt.d(),Ye&&Ye.d(),Ge&&Ge.d(),Ze&&Ze.d(),et&&et.d(),ce&&ce.d(),Pe&&Pe.d(),We&&We.d(),R(oe),xe=!1,ae()}}}var Cd=({value:i})=>i,Sd=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function hg(i,e,t){let n,o=rt(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;H(i,l,b=>t(7,n=b));let a=()=>{aa.safeStorage.remove(Ul),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,m=0,h=0,w=new kl(60),g=new kl(60),k=new kl(60),v=[],I=[],y=[];return Dt(()=>{aa.safeStorage.set(Ul,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let b=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let L=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=L-f),t(1,f=L),w.push(h),s.speed&&g.push(s.speed),s.bitrate&&k.push(s.bitrate),t(4,v=w.getValuesFromBottom()),t(5,I=g.getValuesFromBottom()),t(6,y=k.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(b),P&&clearInterval(P)}}),[s,f,m,h,v,I,y,n,l,a]}var ua=class extends W{constructor(e){super(),j(this,e,hg,_g,U,{},pg)}},Er=ua;function gg(i){Ie(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 bg(i){let e,t,n;return{c(){e=T("div"),c(e,"class","close svelte-1ome55p")},m(o,r){S(o,e,r),t||(n=pe(e,"click",st(i[0])),t=!0)},p:Se,i:Se,o:Se,d(o){o&&C(e),t=!1,n()}}}function vg(i){function e(t){Nn.call(this,i,t)}return[e]}var ca=class extends W{constructor(e){super(),j(this,e,vg,bg,U,{},gg)}},Td=ca;var Pd=require("@vkontakte/videoplayer-shared");function yg(i){Ie(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 wg(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=B(),o=q("svg"),r=q("g"),l=q("g"),a=q("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(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"),c(a,"fill","#fff"),c(l,"fill-rule","nonzero"),c(r,"fill","none"),c(r,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:Se,i:Se,o:Se,d(s){s&&C(e),i[2](null)}}}var kg=5e3;function Cg(i,e,t){let{onTimerEnded:n=Pd.noop}=e,o;Dt(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/kg;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){ge[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var fa=class extends W{constructor(e){super(),j(this,e,Cg,wg,U,{onTimerEnded:1},yg)}},Id=fa;function Sg(i){Ie(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 Ed(i){let e,t;return e=new Id({props:{onTimerEnded:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tg(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L;a=new Td({}),a.$on("click",i[4]);let M=i[3]&&Ed(i);return{c(){e=T("div"),t=B(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=B(),D(a.$$.fragment),s=B(),u=T("div"),f=T("div"),m=T("div"),h=T("div"),w=B(),M&&M.c(),k=B(),v=T("div"),I=T("div"),y=Ne(i[0]),c(e,"class","overlay svelte-kisfwc"),c(r,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(m,"class","thumb svelte-kisfwc"),c(m,"style",g=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(I,"class","title svelte-kisfwc"),c(v,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(N,te){S(N,e,te),S(N,t,te),S(N,n,te),p(n,o),p(o,r),p(o,l),V(a,o,null),p(n,s),p(n,u),p(u,f),p(f,m),p(m,h),p(m,w),M&&M.m(m,null),p(u,k),p(u,v),p(v,I),p(I,y),b=!0,P||(L=pe(u,"click",function(){Mi(i[2])&&i[2].apply(this,arguments)}),P=!0)},p(N,[te]){i=N,i[3]?M?(M.p(i,te),te&8&&d(M,1)):(M=Ed(i),M.c(),d(M,1),M.m(m,null)):M&&(fe(),_(M,1,1,()=>{M=null}),de()),(!b||te&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(m,"style",g),(!b||te&1)&&Qe(y,i[0])},i(N){b||(d(a.$$.fragment,N),d(M),b=!0)},o(N){_(a.$$.fragment,N),_(M),b=!1},d(N){N&&(C(e),C(t),C(n)),R(a),M&&M.d(),P=!1,L()}}}function Pg(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,r=s.playNextVideo)},[n,o,r,l,a]}var da=class extends W{constructor(e){super(),j(this,e,Pg,Tg,U,{title:0,thumb:1,playNextVideo:2},Sg)}},Ld=da;var wo=require("@vkontakte/videoplayer-core"),Ad=require("@vkontakte/videoplayer-shared"),An=require("@vkontakte/videoplayer-statistics");var ma=(i,e)=>Math.min(+(i+e).toFixed(2),1),pa=(i,e)=>Math.max(+(i-e).toFixed(2),0),Lr=(i,e,t)=>{let n=ma(e,t);e<1&&i.actions.internal.setVolume(n)},Ar=(i,e,t)=>{let n=pa(e,t);e>0&&i.actions.internal.setVolume(n)};var yo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function Eg(i){Ie(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Lg(i){let e,t,n,o,r,l=i[26].default,a=Ae(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=z("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[pe(e,"keyup",i[17]),pe(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Re(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&C(e),a&&a.d(s),i[27](null),o=!1,nt(r)}}}function Ag(i,e,t){var Le,ut;let n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,{$$slots:y={},$$scope:b}=e,{isAds:P}=e,{hideContextMenu:L}=e,{toggleFullscreen:M}=e,{showHotKeyHelpers:N}=e,{showKeyMap:te}=e,{fakePlayButtonHandler:_e}=e,Z=rt(),x=Ht(),se=Z.getLogger().createComponentLog("KeyboardControls component"),A=Z.state.playbackState$;H(i,A,me=>t(31,o=me));let K=Z.ads.playbackState;H(i,K,me=>t(30,n=me));let J=Z.state.positionExact$;H(i,J,me=>t(41,g=me));let Y=Z.state.duration$;H(i,Y,me=>t(40,w=me));let F=Z.state.volume$;H(i,F,me=>t(44,I=me));let G=Z.ui.controls.disabledControls$;H(i,G,me=>t(39,h=me));let X=Z.state.muted$;H(i,X,me=>t(34,a=me));let oe=Z.state.currentSubtitle$;H(i,oe,me=>t(33,l=me));let De=Z.state.currentPlaybackRate$;H(i,De,me=>t(42,k=me));let Xe=Z.state.availablePlaybackRates$;H(i,Xe,me=>t(43,v=me));let Ee=Z.ui.contextMenu.openedByHotKey$,Be=Z.ui.contextMenu.lastActiveElem$,qe=Z.ui.contextMenu.visible$,xe=Z.ui.contextMenu.position$,ae=Z.state.isEnded$;H(i,ae,me=>t(36,u=me));let he=Z.ui.overlayContainer$;H(i,he,me=>t(32,r=me));let at=(Le=Z.callbacks)==null?void 0:Le.onAudioDoesNotExistHint,Ce=(ut=Z.callbacks)==null?void 0:ut.onAudioDisabledHint,Ke=Z.state.isAudioAvailable$;H(i,Ke,me=>t(35,s=me));let mt=Z.state.isAudioDisabled,Ye=Z.state.isInteractiveTime$;H(i,Ye,me=>t(38,m=me));let{showInteractiveTimeIndicatorTooltip$:Ge}=Wn();H(i,Ge,me=>t(37,f=me));let Ze=0,et=!0,ce,Pe=()=>ce==null?void 0:ce.focus(),We=me=>(me!==et&&(et=me,Ze=0),Ze+=1,(x.controls.seekStepKeyboard+x.controls.seekStepKeyboard*Ze)/1e3),le=me=>{var be;let tt=me.target,Ct=(be=tt==null?void 0:tt.getAttribute("role"))==null?void 0:be.includes("menuitem"),bt=tt.classList.contains("btn"),Ue=me.code;if(bt&&Ue==="Space")return;let Ot=af.has(Ue);if(Ct&&Ot)return;let Vt=!sf.has(Ue);if(me.ctrlKey&&Vt||me.altKey&&Vt||me.metaKey)return;let St=Ct&&Ue==="Escape";uf.has(Ue)||St||L();let ni=o===wo.PlaybackState.PLAYING||o===wo.PlaybackState.PAUSED,ct=P&&(n==="paused"||n==="playing"),lt=!ct&&!h.has("TIMELINE");if(ni||ct)switch(se({message:`key down, code: ${Ue}`}),Ue){case"KeyJ":case"ArrowLeft":{if(!lt)break;if(me.ctrlKey||me.altKey){let Je=Z.actions.internal.getPrevEpisode();Z.actions.internal.seekToPrevEpisode(Je),Je&&N({type:"EPISODE_PREV",text:Je.text}),me.preventDefault()}else{let Je=me.shiftKey?We(!1):x.controls.seekStepKeyboard/1e3,_t=Math.max(g-Je,0);g>0&&(Z.actions.internal.seekTime(_t,An.SeekAction.DOUBLE_TAP),N({type:"BACKWARD_SEEK",text:Je.toString()}),me.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!lt)break;if(me.ctrlKey||me.altKey){let Je=Z.actions.internal.getNextEpisode();Z.actions.internal.seekToNextEpisode(Je),Je&&N({type:"EPISODE_NEXT",text:Je.text}),me.preventDefault()}else{let Je=me.shiftKey?We(!0):x.controls.seekStepKeyboard/1e3,_t=Math.min(g+Je,w);Math.round(g)<Math.round(w)&&(Z.actions.internal.seekTime(_t,An.SeekAction.DOUBLE_TAP),N({type:"FORWARD_SEEK",text:Je.toString()}),me.preventDefault())}break}case"ArrowUp":{if(yo({isAudioDisabled:mt,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let Je=I,_t=x.controls.volumeStepKeyboard,Ft=Je<=1;if(Lr(Z,Je,_t),Ft){let yt=Math.round(ma(Je,_t)*100).toString();N({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}me.preventDefault();break}case"ArrowDown":{if(yo({isAudioDisabled:mt,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let Je=I,_t=x.controls.volumeStepKeyboard,Ft=Je>=0;if(Ar(Z,Je,_t),Ft){let yt=Math.round(pa(Je,_t)*100).toString();N({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}me.preventDefault();break}case"Comma":{if(me.shiftKey){Z.actions.internal.decrementPlaybackRate();let Je=v.find(_t=>_t.value===k);N({type:"RATE_DOWN",text:Je==null?void 0:Je.displayValue}),me.preventDefault()}else{if(ct||o!==wo.PlaybackState.PAUSED)break;let Je=Math.max(g-x.controls.seekStepFrame/1e3,0);g>0&&(N({type:"BACKWARD_SEEK"}),Z.actions.internal.clearDelayedBufferingCheckTimeout(),Z.actions.internal.seekTime(Je,An.SeekAction.DOUBLE_TAP),me.preventDefault())}break}case"Period":{if(me.shiftKey){Z.actions.internal.incrementPlaybackRate();let Je=v.find(_t=>_t.value===k);N({type:"RATE_UP",text:Je==null?void 0:Je.displayValue}),me.preventDefault()}else{if(ct||o!==wo.PlaybackState.PAUSED)break;let Je=Math.min(g+x.controls.seekStepFrame/1e3,w);g<w&&(N({type:"FORWARD_SEEK"}),Z.actions.internal.clearDelayedBufferingCheckTimeout(),Z.actions.internal.seekTime(Je,An.SeekAction.DOUBLE_TAP),me.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&f&&Ge.set(!1),_e)_e();else{Z.actions.internal.togglePlay();let Je="PLAY";o===wo.PlaybackState.PAUSED?Je="PAUSE":u&&(Je="REPLAY"),N({type:Je})}me.preventDefault();break;case"KeyM":{yo({isAudioDisabled:mt,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:at})&&(N({type:a?"VOLUME":"MUTE"}),Z.actions.internal.toggleMuted()),me.preventDefault();break}case"KeyF":M(),me.preventDefault();break;case"KeyC":Z.actions.internal.toggleSubtitle(),l.value!=="off"?N({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):N({type:"SUBTITLES_OFF"}),me.preventDefault();break;case"KeyI":Z.actions.internal.togglePictureInPicture(),me.preventDefault();break;case"Digit1":case"Numpad1":if(me.shiftKey){let Je=od(r);xe.set(Je),Be.set(tt),Ee.set(!0),qe.set(!0),me.preventDefault();break}N(),Z.actions.internal.seekToPercent(.1,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit2":case"Numpad2":N(),Z.actions.internal.seekToPercent(.2,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit3":case"Numpad3":N(),Z.actions.internal.seekToPercent(.3,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit4":case"Numpad4":N(),Z.actions.internal.seekToPercent(.4,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit5":case"Numpad5":N(),Z.actions.internal.seekToPercent(.5,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit6":case"Numpad6":N(),Z.actions.internal.seekToPercent(.6,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit7":case"Numpad7":N(),Z.actions.internal.seekToPercent(.7,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit8":case"Numpad8":N(),Z.actions.internal.seekToPercent(.8,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit9":case"Numpad9":N(),Z.actions.internal.seekToPercent(.9,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit0":case"Numpad0":N(),Z.actions.internal.seekToPercent(0,An.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Slash":{me.shiftKey&&x.features.hotKeyMapModal&&(te(),me.preventDefault());break}case"ShiftLeft":case"ShiftRight":me.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Ad.checkNever)(Ue);break}},Te=me=>{let tt=me.code;if(me.ctrlKey||me.altKey||me.metaKey)return;let Ct=o===wo.PlaybackState.PLAYING||o===wo.PlaybackState.PAUSED,bt=P&&(n==="paused"||n==="playing");if(Ct||bt)switch(tt){case"ShiftLeft":case"ShiftRight":Ze=0;break}};function pt(me){ge[me?"unshift":"push"](()=>{ce=me,t(0,ce)})}return i.$$set=me=>{"isAds"in me&&t(18,P=me.isAds),"hideContextMenu"in me&&t(19,L=me.hideContextMenu),"toggleFullscreen"in me&&t(20,M=me.toggleFullscreen),"showHotKeyHelpers"in me&&t(21,N=me.showHotKeyHelpers),"showKeyMap"in me&&t(22,te=me.showKeyMap),"fakePlayButtonHandler"in me&&t(23,_e=me.fakePlayButtonHandler),"$$scope"in me&&t(25,b=me.$$scope)},[ce,A,K,J,Y,F,G,X,oe,De,Xe,ae,he,Ke,Ye,Ge,le,Te,P,L,M,N,te,_e,Pe,b,y,pt]}var _a=class extends W{constructor(e){super(),j(this,e,Ag,Lg,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Eg,[-1,-1])}get focus(){return this.$$.ctx[24]}},Md=_a;function Mg(i){Ie(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 Vg(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),n=B(),o=T("div"),r=B(),l=T("div"),c(t,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(l,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",i[0])},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(e,r),p(e,l)},p(a,[s]){s&1&&c(e,"style",a[0])},i:Se,o:Se,d(a){a&&C(e)}}}function Rg(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var ha=class extends W{constructor(e){super(),j(this,e,Rg,Vg,U,{style:0},Mg)}},Cl=ha;function Bg(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k=i[2].default,v=Ae(k,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],y={};for(let b=0;b<I.length;b+=1)y=ue(y,I[b]);return{c(){e=q("svg"),v&&v.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("filter"),a=q("feFlood"),s=q("feColorMatrix"),u=q("feOffset"),f=q("feGaussianBlur"),m=q("feColorMatrix"),h=q("feBlend"),w=q("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2422_111980"),c(w,"result","shape"),c(l,"id","a"),c(l,"width","23"),c(l,"height","23"),c(l,"x",".5"),c(l,"y",".5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Ve(v,k,b,b[1],g?Me(k,b[1],P,null):Re(b[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&C(e),v&&v.d(b)}}}function Dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ga=class extends W{constructor(e){super(),j(this,e,Dg,Bg,U,{})}},Vd=ga;var $n=require("@vkontakte/videoplayer-shared");function qg(i){Ie(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{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-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function Ng(i){let e,t,n,o,r,l,a,s,u,f,m,h,w=i[14].default,g=Ae(w,i,i[13],null);return{c(){var k,v,I,y,b,P;e=T("button"),g&&g.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=(k=i[3])!=null?k:null,c(e,"aria-hidden",r=(v=i[5])!=null?v:null),c(e,"aria-label",l=(I=i[6])!=null?I:null),c(e,"aria-keyshortcuts",a=(y=i[7])!=null?y:null),c(e,"aria-expanded",s=(b=i[8])!=null?b:null),c(e,"data-testid",u=(P=i[4])!=null?P:null),c(e,"tabindex",i[9])},m(k,v){S(k,e,v),g&&g.m(e,null),i[16](e),f=!0,m||(h=[pe(e,"pointerdown",st(i[15])),pe(e,"click",st(function(){Mi(i[10]===$n.noop?null:i[10])&&(i[10]===$n.noop?null:i[10]).apply(this,arguments)})),pe(e,"focus",Yt(function(){Mi(i[11]===$n.noop?null:i[11])&&(i[11]===$n.noop?null:i[11]).apply(this,arguments)})),pe(e,"blur",Yt(function(){Mi(i[12]===$n.noop?null:i[12])&&(i[12]===$n.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(k,[v]){var I,y,b,P,L,M;i=k,g&&g.p&&(!f||v&8192)&&Ve(g,w,i,i[13],f?Me(w,i[13],v,null):Re(i[13]),null),(!f||v&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||v&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||v&8&&o!==(o=(I=i[3])!=null?I:null))&&(e.disabled=o),(!f||v&32&&r!==(r=(y=i[5])!=null?y:null))&&c(e,"aria-hidden",r),(!f||v&64&&l!==(l=(b=i[6])!=null?b:null))&&c(e,"aria-label",l),(!f||v&128&&a!==(a=(P=i[7])!=null?P:null))&&c(e,"aria-keyshortcuts",a),(!f||v&256&&s!==(s=(L=i[8])!=null?L:null))&&c(e,"aria-expanded",s),(!f||v&16&&u!==(u=(M=i[4])!=null?M:null))&&c(e,"data-testid",u),(!f||v&512)&&c(e,"tabindex",i[9])},i(k){f||(d(g,k),f=!0)},o(k){_(g,k),f=!1},d(k){k&&C(e),g&&g.d(k),i[16](null),m=!1,nt(h)}}}function Og(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:w=void 0}=e,{tabIndex:g=0}=e,{click:k=$n.noop}=e,{focus:v=$n.noop}=e,{blur:I=$n.noop}=e;function y(P){Nn.call(this,i,P)}function b(P){ge[P?"unshift":"push"](()=>{m=P,t(0,m)})}return i.$$set=P=>{"className"in P&&t(1,r=P.className),"style"in P&&t(2,l=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,s=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,f=P.ariaLabel),"ref"in P&&t(0,m=P.ref),"ariaKeyShortCut"in P&&t(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,w=P.ariaExpanded),"tabIndex"in P&&t(9,g=P.tabIndex),"click"in P&&t(10,k=P.click),"focus"in P&&t(11,v=P.focus),"blur"in P&&t(12,I=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[m,r,l,a,s,u,f,h,w,g,k,v,I,o,n,y,b]}var ba=class extends W{constructor(e){super(),j(this,e,Og,Ng,U,{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},qg)}},vt=ba;function Fg(i){Ie(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 Rd(i){let e,t,n,o,r,l=i[2]&&Bd(i);return{c(){e=T("div"),t=T("h3"),n=Ne(i[3]),o=B(),l&&l.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Qe(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=Bd(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),de())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&C(e),l&&l.d()}}}function Bd(i){let e,t;return e=new vt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:z("hotkey_map_modal_close_btn_text"),$$slots:{default:[Hg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hg(i){let e,t;return e=new Vd({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zg(i){let e,t,n,o,r,l,a=i[1]&&Rd(i),s=i[4].default,u=Ae(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=B(),o=T("div"),r=T("div"),u&&u.c(),c(r,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,m){S(f,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(f,[m]){f[1]?a?(a.p(f,m),m&2&&d(a,1)):(a=Rd(f),a.c(),d(a,1),a.m(t,n)):a&&(fe(),_(a,1,1,()=>{a=null}),de()),u&&u.p&&(!l||m&32)&&Ve(u,s,f,f[5],l?Me(s,f[5],m,null):Re(f[5]),null)},i(f){l||(d(a),d(u,f),l=!0)},o(f){_(a),_(u,f),l=!1},d(f){f&&C(e),a&&a.d(),u&&u.d(f)}}}function Ug(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var va=class extends W{constructor(e){super(),j(this,e,Ug,zg,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},Fg)}},Dd=va;var Kg=new Set(["BR"]),ya=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;Kg.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Wg(i){Ie(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 qd(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function Nd(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function Od(i){let e,t,n=ya(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=B(),r=T("span"),a=Ne(l),s=B(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(r,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){S(u,e,f),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,f){f&1&&n!==(n=ya(u[9])+"")&&(t.innerHTML=n),f&1&&l!==(l=u[10]+"")&&Qe(a,l)},d(u){u&&C(e)}}}function Fd(i){let e,t,n=i[5]+"",o,r,l,a,s=Et(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=Od(Nd(i,s,f));return{c(){e=T("div"),t=T("h5"),o=Ne(n),r=B(),l=T("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=B(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(l,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,m){S(f,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(f,m){if(m&1&&n!==(n=f[5]+"")&&Qe(o,n),m&1){s=Et(f[6]);let h;for(h=0;h<s.length;h+=1){let w=Nd(f,s,h);u[h]?u[h].p(w,m):(u[h]=Od(w),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&C(e),Vi(u,f)}}}function jg(i){let e,t=Et(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=Fd(qd(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=Et(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=qd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Fd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&C(e),Vi(n,o)}}}function Gg(i){let e,t;return e=new Dd({props:{title:i[0].title,onClose:i[2],$$slots:{default:[jg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qg(i,e,t){let n,o=rt(),{data:r,show:l}=o.ui.modals.hotKeyMap;return H(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var wa=class extends W{constructor(e){super(),j(this,e,Qg,Gg,U,{},Wg)}},Hd=wa;var fs=require("@vkontakte/videoplayer-shared");var Zo=require("@vkontakte/videoplayer-core");var R1=require("@vkontakte/videoplayer-core");var Go={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"},zd={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"};var Yg=i=>{var e,t;return(t=(e=Go[i])!=null?e:Go[zd[i]])!=null?t:void 0},Mr=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),ro=(i,e)=>{var l;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(l=Yg(t))!=null?l:t),n&&t&&o){let a=e.filter(s=>s.label===n&&s.language===t);if(a.length===1)return z("audio_stream_display_language_label",{language:o,label:n});{let s=Mr(i,a);return z("audio_stream_display_language_label_index",{language:o,label:n,index:s})}}if(n){let a=e.filter(s=>s.label===n);if(a.length===1)return n;{let s=Mr(i,a);return z("audio_stream_display_label_index",{label:n,index:s})}}if(t&&o){let a=e.filter(s=>s.language===t);if(a.length===1)return o;{let s=Mr(i,a);return z("audio_stream_display_language_index",{language:o,index:s})}}let r=Mr(i,e);return z("audio_stream_display_unknown",{index:r})};var Yk=require("@vkontakte/videoplayer-shared");function Zg(i){Ie(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 Xg(i){let e,t,n=i[1].default,o=Ae(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(r,l){S(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Re(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&C(e),o&&o.d(r)}}}function Jg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var ka=class extends W{constructor(e){super(),j(this,e,Jg,Xg,U,{},Zg)}},Ud=ka;var Sl=require("@vkontakte/videoplayer-core");function xg(i){let e,t,n,o,r=i[2].default,l=Ae(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function $g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ca=class extends W{constructor(e){super(),j(this,e,$g,xg,U,{})}},Kd=Ca;function e2(i){let e,t,n,o,r=i[2].default,l=Ae(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function t2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sa=class extends W{constructor(e){super(),j(this,e,t2,e2,U,{})}},Wd=Sa;function i2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","currentColor"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function n2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ta=class extends W{constructor(e){super(),j(this,e,n2,i2,U,{})}},jd=Ta;function o2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","currentColor"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function l2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pa=class extends W{constructor(e){super(),j(this,e,l2,o2,U,{})}},Vr=Pa;function r2(i){let e,t,n,o,r=i[2].default,l=Ae(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function s2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ia=class extends W{constructor(e){super(),j(this,e,s2,r2,U,{})}},Rr=Ia;var ko=i=>{switch(i){case Sl.VideoQuality.Q_720P:return jd;case Sl.VideoQuality.Q_1080P:return Vr;case Sl.VideoQuality.Q_1440P:return Rr;case Sl.VideoQuality.Q_2160P:return Kd;case Sl.VideoQuality.Q_4320P:return Wd}};function a2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function u2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ea=class extends W{constructor(e){super(),j(this,e,u2,a2,U,{})}},Gd=Ea;function c2(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),c(n,"class","_full"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function f2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var La=class extends W{constructor(e){super(),j(this,e,f2,c2,U,{})}},Qd=La;function d2(i){Ie(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 m2(i){let e,t,n,o,r=i[1]&&Yd(i);return n=new Qd({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=B(),D(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),O(e,"triple",i[2])},m(l,a){S(l,e,a),r&&r.m(e,null),p(e,t),V(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=Yd(l),r.c(),d(r,1),r.m(e,t)):r&&(fe(),_(r,1,1,()=>{r=null}),de());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&O(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&C(e),r&&r.d(),R(n)}}}function p2(i){let e,t;return e=new Gd({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yd(i){let e,t;return e=new Ud({props:{$$slots:{default:[_2]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function _2(i){let e,t,n;var o=i[1];function r(l,a){return{}}return o&&(e=Vn(o,r(i))),{c(){e&&D(e.$$.fragment),t=ft()},m(l,a){e&&V(e,l,a),S(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){fe();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(e=Vn(o,r(l,a)),D(e.$$.fragment),d(e.$$.fragment,1),V(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&C(t),e&&R(e,l)}}}function h2(i){let e,t,n,o,r=[p2,m2],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function g2(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;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=ko(r)),i.$$.dirty&2&&t(2,l=!!n&&[Vr,Rr].includes(n))},[o,n,l,r]}var Aa=class extends W{constructor(e){super(),j(this,e,g2,h2,U,{isMobile:0,currentQuality:3},d2)}},Br=Aa;function b2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function v2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ma=class extends W{constructor(e){super(),j(this,e,v2,b2,U,{})}},Dr=Ma;function y2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function w2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Va=class extends W{constructor(e){super(),j(this,e,w2,y2,U,{})}},Zd=Va;function k2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function C2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ra=class extends W{constructor(e){super(),j(this,e,C2,k2,U,{})}},Xd=Ra;function S2(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{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 f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=q("svg"),a&&a.c(),t=q("g"),n=q("path"),o=q("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function T2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ba=class extends W{constructor(e){super(),j(this,e,T2,S2,U,{})}},Jd=Ba;function P2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function I2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Da=class extends W{constructor(e){super(),j(this,e,I2,P2,U,{})}},xd=Da;function E2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function L2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qa=class extends W{constructor(e){super(),j(this,e,L2,E2,U,{})}},$d=qa;function A2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function M2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Na=class extends W{constructor(e){super(),j(this,e,M2,A2,U,{})}},e1=Na;function V2(i){let e,t;return e=new e1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function R2(i){let e,t;return e=new $d({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function B2(i){let e,t,n,o,r=[R2,V2],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function D2(i,e,t){let n,{direction:o="left"}=e,r,l;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,l=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Oa=class extends W{constructor(e){super(),j(this,e,D2,B2,U,{direction:3})}},Zn=Oa;function q2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function N2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Fa=class extends W{constructor(e){super(),j(this,e,N2,q2,U,{})}},t1=Fa;function O2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function F2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ha=class extends W{constructor(e){super(),j(this,e,F2,O2,U,{})}},Qo=Ha;function H2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function z2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var za=class extends W{constructor(e){super(),j(this,e,z2,H2,U,{})}},Ua=za;function U2(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function K2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ka=class extends W{constructor(e){super(),j(this,e,K2,U2,U,{})}},i1=Ka;function W2(i){Ie(i,"svelte-1h807jq","ul.svelte-1h807jq.svelte-1h807jq{margin:0;padding:0}.menu.svelte-1h807jq.svelte-1h807jq{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-1h807jq.svelte-1h807jq{width:100%}.menu-desktop.svelte-1h807jq.svelte-1h807jq{position:absolute;right:0;bottom:0}.menu-mobile.svelte-1h807jq.svelte-1h807jq{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-1h807jq.svelte-1h807jq{display:none}.menu-subList.svelte-1h807jq.svelte-1h807jq{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-1h807jq.svelte-1h807jq{min-width:164px}.menu-subList-traffic-saving.svelte-1h807jq.svelte-1h807jq{min-width:286px}.item.svelte-1h807jq.svelte-1h807jq{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:0 14px}.item-quality.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-traffic-saving.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{flex-direction:row-reverse}.item-helper-text.svelte-1h807jq.svelte-1h807jq{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-1h807jq span.svelte-1h807jq{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:7px 14px}.item-helper-text.item-mobile.svelte-1h807jq span.svelte-1h807jq{text-align:start}.submenu-value.svelte-1h807jq.svelte-1h807jq{overflow:hidden;;;text-overflow:ellipsis}.submenu-value-mobile.svelte-1h807jq.svelte-1h807jq{flex-grow:1}.item.svelte-1h807jq.svelte-1h807jq:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-1h807jq.svelte-1h807jq:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-1h807jq.svelte-1h807jq:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-1h807jq.svelte-1h807jq:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-1h807jq.svelte-1h807jq{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-1h807jq.svelte-1h807jq{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-1h807jq.svelte-1h807jq{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}.menu-valueIcon.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-1h807jq svg,.menu-valueIcon-list.svelte-1h807jq svg{color:var(--blue-light)}.menu-divider.svelte-1h807jq.svelte-1h807jq{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-1h807jq.svelte-1h807jq{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex}.itemIcon.svelte-1h807jq.svelte-1h807jq{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar{width:8px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-1h807jq.svelte-1h807jq{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-1h807jq.svelte-1h807jq{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1h807jq.svelte-1h807jq:before,.close.svelte-1h807jq.svelte-1h807jq:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1h807jq.svelte-1h807jq:before{transform:rotate(45deg)}.close.svelte-1h807jq.svelte-1h807jq:after{transform:rotate(-45deg)}")}function n1(i,e,t){let n=i.slice();return n[165]=e[t],n}function o1(i,e,t){let n=i.slice();return n[168]=e[t],n}function l1(i,e,t){let n=i.slice();return n[171]=e[t],n}function r1(i,e,t){let n=i.slice();return n[174]=e[t],n}function s1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g=i[40]&&a1(i),k=i[30]&&u1(i),v=i[29]&&f1(i),I=i[28]&&d1(i),y=i[27]&&m1(i),b=i[26]&&p1(i),P=i[25]&&_1(i),L=i[40]&&h1(i);return{c(){e=T("div"),g&&g.c(),t=B(),n=T("ul"),k&&k.c(),o=B(),v&&v.c(),r=B(),I&&I.c(),l=B(),y&&y.c(),a=B(),b&&b.c(),s=B(),P&&P.c(),u=B(),L&&L.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=i[85]()),O(n,"items-mobile",i[40]),c(e,"class","menu svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40]),O(e,"hidden",!i[13])},m(M,N){S(M,e,N),g&&g.m(e,null),p(e,t),p(e,n),k&&k.m(n,null),p(n,o),v&&v.m(n,null),p(n,r),I&&I.m(n,null),p(n,l),y&&y.m(n,null),p(n,a),b&&b.m(n,null),p(n,s),P&&P.m(n,null),p(n,u),L&&L.m(n,null),i[131](n),m=!0,h||(w=[pe(e,"keydown",i[91]),pe(e,"mouseenter",i[83]),pe(e,"mouseleave",i[84])],h=!0)},p(M,N){M[40]?g?g.p(M,N):(g=a1(M),g.c(),g.m(e,t)):g&&(g.d(1),g=null),M[30]?k?(k.p(M,N),N[0]&1073741824&&d(k,1)):(k=u1(M),k.c(),d(k,1),k.m(n,o)):k&&(fe(),_(k,1,1,()=>{k=null}),de()),M[29]?v?(v.p(M,N),N[0]&536870912&&d(v,1)):(v=f1(M),v.c(),d(v,1),v.m(n,r)):v&&(fe(),_(v,1,1,()=>{v=null}),de()),M[28]?I?(I.p(M,N),N[0]&268435456&&d(I,1)):(I=d1(M),I.c(),d(I,1),I.m(n,l)):I&&(fe(),_(I,1,1,()=>{I=null}),de()),M[27]?y?(y.p(M,N),N[0]&134217728&&d(y,1)):(y=m1(M),y.c(),d(y,1),y.m(n,a)):y&&(fe(),_(y,1,1,()=>{y=null}),de()),M[26]?b?(b.p(M,N),N[0]&67108864&&d(b,1)):(b=p1(M),b.c(),d(b,1),b.m(n,s)):b&&(fe(),_(b,1,1,()=>{b=null}),de()),M[25]?P?(P.p(M,N),N[0]&33554432&&d(P,1)):(P=_1(M),P.c(),d(P,1),P.m(n,u)):P&&(fe(),_(P,1,1,()=>{P=null}),de()),M[40]?L?(L.p(M,N),N[1]&512&&d(L,1)):(L=h1(M),L.c(),d(L,1),L.m(n,null)):L&&(fe(),_(L,1,1,()=>{L=null}),de()),(!m||N[1]&512)&&O(n,"items-mobile",M[40]),(!m||N[1]&512)&&O(e,"menu-desktop",!M[40]),(!m||N[1]&512)&&O(e,"menu-mobile",M[40]),(!m||N[0]&8192)&&O(e,"hidden",!M[13])},i(M){m||(d(k),d(v),d(I),d(y),d(b),d(P),d(L),m=!0)},o(M){_(k),_(v),_(I),_(y),_(b),_(P),_(L),m=!1},d(M){M&&C(e),g&&g.d(),k&&k.d(),v&&v.d(),I&&I.d(),y&&y.d(),b&&b.d(),P&&P.d(),L&&L.d(),i[131](null),h=!1,nt(w)}}}function a1(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${z("submenu_settings")}`,n=B(),o=T("div"),r=B(),l=T("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),O(e,"item-mobile",i[40]),c(l,"class","menu-divider svelte-1h807jq")},m(u,f){S(u,e,f),p(e,t),p(e,n),p(e,o),S(u,r,f),S(u,l,f),a||(s=pe(o,"click",st(i[66])),a=!0)},p(u,f){f[1]&512&&O(e,"item-mobile",u[40])},d(u){u&&(C(e),C(r),C(l)),a=!1,s()}}}function u1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w;n=new Br({});let g=i[39]&&!i[40]&&c1(i);return{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_quality")}`,l=B(),a=T("div"),s=Ne(i[19]),u=B(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=z("aria_label_menu_quality",{actual:i[32]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(k,v){S(k,e,v),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),g&&g.m(a,null),i[126](e),m=!0,h||(w=[pe(e,"click",st(i[67])),pe(e,"keydown",i[92])],h=!0)},p(k,v){(!m||v[0]&524288)&&Qe(s,k[19]),k[39]&&!k[40]?g?(g.p(k,v),v[1]&768&&d(g,1)):(g=c1(k),g.c(),d(g,1),g.m(a,null)):g&&(fe(),_(g,1,1,()=>{g=null}),de()),(!m||v[1]&2&&f!==(f=z("aria_label_menu_quality",{actual:k[32]})))&&c(e,"aria-label",f),(!m||v[1]&512)&&O(e,"item-mobile",k[40])},i(k){m||(d(n.$$.fragment,k),d(g),m=!0)},o(k){_(n.$$.fragment,k),_(g),m=!1},d(k){k&&C(e),R(n),g&&g.d(),i[126](null),h=!1,nt(w)}}}function c1(i){let e,t,n;var o=i[39];function r(l,a){return{}}return o&&(t=Vn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(l,a){S(l,e,a),t&&V(t,e,null),n=!0},p(l,a){if(a[1]&256&&o!==(o=l[39])){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(t=Vn(o,r(l,a)),D(t.$$.fragment),d(t.$$.fragment,1),V(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&C(e),t&&R(t)}}}function f1(i){let e,t,n,o,r,l,a,s=ro(i[41],i[9])+"",u,f,m,h,w;return n=new xd({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_audio_languages")}`,l=B(),a=T("div"),u=Ne(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=z("aria_label_menu_audio_languages",{actual:ro(i[41],i[9])})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,k){S(g,e,k),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[127](e),m=!0,h||(w=[pe(e,"click",st(i[68])),pe(e,"keydown",i[93])],h=!0)},p(g,k){(!m||k[0]&512|k[1]&1024)&&s!==(s=ro(g[41],g[9])+"")&&Qe(u,s),(!m||k[0]&512|k[1]&1024&&f!==(f=z("aria_label_menu_audio_languages",{actual:ro(g[41],g[9])})))&&c(e,"aria-label",f),(!m||k[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),R(n),i[127](null),h=!1,nt(w)}}}function d1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w;return n=new Jd({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_playback_rate")}`,l=B(),a=T("div"),s=Ne(i[11]),u=Ne("x"),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=z("aria_label_menu_rate",{actual:i[33]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,k){S(g,e,k),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[128](e),m=!0,h||(w=[pe(e,"click",st(Yt(i[73]))),pe(e,"keydown",i[98])],h=!0)},p(g,k){(!m||k[0]&2048)&&Qe(s,g[11]),(!m||k[1]&4&&f!==(f=z("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!m||k[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),R(n),i[128](null),h=!1,nt(w)}}}function m1(i){let e,t,n,o,r,l,a,s=i[42].displayValue+"",u,f,m,h,w;return n=new Dr({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("subtitles_caption")}`,l=B(),a=T("div"),u=Ne(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=z("aria_label_menu_subtitle",{actual:i[42].displayValue})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,k){S(g,e,k),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[129](e),m=!0,h||(w=[pe(e,"click",st(i[75])),pe(e,"keydown",i[101])],h=!0)},p(g,k){(!m||k[1]&2048)&&s!==(s=g[42].displayValue+"")&&Qe(u,s),(!m||k[1]&2048&&f!==(f=z("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!m||k[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),R(n),i[129](null),h=!1,nt(w)}}}function p1(i){let e,t,n,o,r,l,a,s,u,f,m,h;return n=new Xd({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_traffic_saving")}`,l=B(),a=T("div"),s=Ne(i[31]),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=z("aria_label_menu_traffic_saving",{actual:i[31]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(w,g){S(w,e,g),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[130](e),f=!0,m||(h=[pe(e,"click",st(i[69])),pe(e,"keydown",i[104])],m=!0)},p(w,g){(!f||g[1]&1)&&Qe(s,w[31]),(!f||g[1]&1&&u!==(u=z("aria_label_menu_traffic_saving",{actual:w[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&O(e,"item-mobile",w[40])},i(w){f||(d(n.$$.fragment,w),f=!0)},o(w){_(n.$$.fragment,w),f=!1},d(w){w&&C(e),R(n),i[130](null),m=!1,nt(h)}}}function _1(i){let e,t,n,o,r,l,a,s,u;return n=new Zd({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=z("aria_label_menu_download")),O(e,"item-mobile",i[40])},m(f,m){S(f,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",st(i[78])),pe(e,"keydown",i[107])],s=!0)},p(f,m){(!a||m[1]&512)&&O(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),R(n),s=!1,nt(u)}}}function h1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b=i[44].showSupport&&j2(i);o=new Ua({});let P=i[44].features.saveTraceInfoToFile&&G2(i);return h=new i1({}),{c(){b&&b.c(),e=B(),t=T("li"),n=T("div"),D(o.$$.fragment),r=B(),l=T("div"),l.textContent=`${z("menu_copy_debug")}`,s=B(),P&&P.c(),u=B(),f=T("li"),m=T("div"),D(h.$$.fragment),w=B(),g=T("div"),g.textContent=`${z("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(t,"class","item item-mobile svelte-1h807jq"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=z("menu_copy_debug")),c(m,"class","menu-icon-wrapper svelte-1h807jq"),c(g,"class","menu-title svelte-1h807jq"),c(f,"class","item item-mobile svelte-1h807jq"),c(f,"role","menuitem"),c(f,"tabindex","0"),c(f,"aria-label",k=i[43]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"))},m(L,M){b&&b.m(L,M),S(L,e,M),S(L,t,M),p(t,n),V(o,n,null),p(t,r),p(t,l),S(L,s,M),P&&P.m(L,M),S(L,u,M),S(L,f,M),p(f,m),V(h,m,null),p(f,w),p(f,g),v=!0,I||(y=[pe(t,"click",st(i[80])),pe(t,"keydown",i[109]),pe(f,"click",st(i[81])),pe(f,"keydown",i[110])],I=!0)},p(L,M){L[44].showSupport&&b.p(L,M),L[44].features.saveTraceInfoToFile&&P.p(L,M),(!v||M[1]&4096&&k!==(k=L[43]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable")))&&c(f,"aria-label",k)},i(L){v||(d(b),d(o.$$.fragment,L),d(P),d(h.$$.fragment,L),v=!0)},o(L){_(b),_(o.$$.fragment,L),_(P),_(h.$$.fragment,L),v=!1},d(L){L&&(C(e),C(t),C(s),C(u),C(f)),b&&b.d(L),R(o),P&&P.d(L),R(h),I=!1,nt(y)}}}function j2(i){let e,t,n,o,r,l,a,s,u;return n=new t1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`)},m(f,m){S(f,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",st(i[79])),pe(e,"keydown",i[108])],s=!0)},p:Se,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),R(n),s=!1,nt(u)}}}function G2(i){let e,t,n,o,r,l,a,s,u;return n=new Ua({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("menu_save_debug")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=z("menu_save_debug"))},m(f,m){S(f,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",st(i[82])),pe(e,"keydown",i[111])],s=!0)},p:Se,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),R(n),s=!1,nt(u)}}}function g1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g;n=new Zn({props:{direction:"left"}});let k=Et(i[10]),v=[];for(let y=0;y<k.length;y+=1)v[y]=y1(r1(i,k,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("submenu_quality")}`,a=B(),s=T("div"),u=B(),f=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",m=i[85]((y=i[20])==null?void 0:y.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[132](t),p(e,a),p(e,s),p(e,u),p(e,f);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(f,null);i[135](f),h=!0,w||(g=[pe(t,"click",st(i[77])),pe(f,"keydown",i[94])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&1024|b[1]&512|b[2]&256|b[3]&4){k=Et(y[10]);let L;for(L=0;L<k.length;L+=1){let M=r1(y,k,L);v[L]?(v[L].p(M,b),d(v[L],1)):(v[L]=y1(M),v[L].c(),d(v[L],1),v[L].m(f,null))}for(fe(),L=k.length;L<v.length;L+=1)I(L);de()}(!h||b[0]&1048576&&m!==(m=y[85]((P=y[20])==null?void 0:P.clientHeight,!0)))&&c(f,"style",m),(!h||b[1]&512)&&O(f,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<k.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&C(e),R(n),i[132](null),Vi(v,y),i[135](null),w=!1,nt(g)}}}function b1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function v1(i){let e,t,n;var o=ko(i[174].value);function r(l,a){return{}}return o&&(t=Vn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(l,a){S(l,e,a),t&&V(t,e,null),n=!0},p(l,a){if(a[0]&1024&&o!==(o=ko(l[174].value))){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(t=Vn(o,r(l,a)),D(t.$$.fragment),d(t.$$.fragment,1),V(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&C(e),t&&R(t)}}}function y1(i){let e,t,n,o=i[174].displayValue+"",r,l,a=!i[40]&&ko(i[174].value),s,u,f,m,h,w,g=i[174].selected&&b1(i),k=a&&v1(i);function v(){return i[133](i[174])}function I(...y){return i[134](i[174],...y)}return{c(){e=T("li"),g&&g.c(),t=B(),n=T("div"),r=Ne(o),l=B(),k&&k.c(),s=B(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=i[174].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[174].displayValue),O(e,"item-mobile",i[40])},m(y,b){S(y,e,b),g&&g.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),k&&k.m(e,null),p(e,s),m=!0,h||(w=[pe(e,"click",st(v)),pe(e,"keydown",I)],h=!0)},p(y,b){i=y,i[174].selected?g?b[0]&1024&&d(g,1):(g=b1(i),g.c(),d(g,1),g.m(e,t)):g&&(fe(),_(g,1,1,()=>{g=null}),de()),(!m||b[0]&1024)&&o!==(o=i[174].displayValue+"")&&Qe(r,o),(!m||b[1]&512)&&O(n,"submenu-value-mobile",i[40]),b[0]&1024|b[1]&512&&(a=!i[40]&&ko(i[174].value)),a?k?(k.p(i,b),b[0]&1024|b[1]&512&&d(k,1)):(k=v1(i),k.c(),d(k,1),k.m(e,s)):k&&(fe(),_(k,1,1,()=>{k=null}),de()),(!m||b[0]&1024&&u!==(u=i[174].value))&&c(e,"data-value",u),(!m||b[0]&1024&&f!==(f=i[174].displayValue))&&c(e,"aria-label",f),(!m||b[1]&512)&&O(e,"item-mobile",i[40])},i(y){m||(d(g),d(k),m=!0)},o(y){_(g),_(k),m=!1},d(y){y&&C(e),g&&g.d(),k&&k.d(),h=!1,nt(w)}}}function w1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g;n=new Zn({props:{direction:"left"}});let k=Et(i[9]),v=[];for(let y=0;y<k.length;y+=1)v[y]=C1(l1(i,k,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("submenu_audio_languages")}`,a=B(),s=T("div"),u=B(),f=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",m=i[85]((y=i[21])==null?void 0:y.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[136](t),p(e,a),p(e,s),p(e,u),p(e,f);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(f,null);i[139](f),h=!0,w||(g=[pe(t,"click",st(i[77])),pe(f,"keydown",i[96])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&512|b[1]&1536|b[2]&512|b[3]&16){k=Et(y[9]);let L;for(L=0;L<k.length;L+=1){let M=l1(y,k,L);v[L]?(v[L].p(M,b),d(v[L],1)):(v[L]=C1(M),v[L].c(),d(v[L],1),v[L].m(f,null))}for(fe(),L=k.length;L<v.length;L+=1)I(L);de()}(!h||b[0]&2097152&&m!==(m=y[85]((P=y[21])==null?void 0:P.clientHeight,!0)))&&c(f,"style",m),(!h||b[1]&512)&&O(f,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<k.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&C(e),R(n),i[136](null),Vi(v,y),i[139](null),w=!1,nt(g)}}}function k1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function C1(i){var k;let e,t,n,o=ro(i[171],i[9])+"",r,l,a,s,u,f,m,h=i[171].id===((k=i[41])==null?void 0:k.id)&&k1(i);function w(){return i[137](i[171])}function g(...v){return i[138](i[171],...v)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=Ne(o),l=B(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[171].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=ro(i[171],i[9])),O(e,"item-mobile",i[40])},m(v,I){S(v,e,I),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,f||(m=[pe(e,"click",st(w)),pe(e,"keydown",g)],f=!0)},p(v,I){var y;i=v,i[171].id===((y=i[41])==null?void 0:y.id)?h?I[0]&512|I[1]&1024&&d(h,1):(h=k1(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),de()),(!u||I[0]&512)&&o!==(o=ro(i[171],i[9])+"")&&Qe(r,o),(!u||I[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||I[0]&512&&a!==(a=i[171].id))&&c(e,"data-value",a),(!u||I[0]&512&&s!==(s=ro(i[171],i[9])))&&c(e,"aria-label",s),(!u||I[1]&512)&&O(e,"item-mobile",i[40])},i(v){u||(d(h),u=!0)},o(v){_(h),u=!1},d(v){v&&C(e),h&&h.d(),f=!1,nt(m)}}}function S1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g;n=new Zn({props:{direction:"left"}});let k=Et(i[8]),v=[];for(let y=0;y<k.length;y+=1)v[y]=P1(o1(i,k,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("submenu_playback_rate")}`,a=B(),s=T("div"),u=B(),f=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",m=i[85]((y=i[22])==null?void 0:y.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[140](t),p(e,a),p(e,s),p(e,u),p(e,f);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(f,null);i[143](f),h=!0,w||(g=[pe(t,"click",st(i[77])),pe(f,"keydown",i[99])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&256|b[1]&512|b[2]&4096|b[3]&128){k=Et(y[8]);let L;for(L=0;L<k.length;L+=1){let M=o1(y,k,L);v[L]?(v[L].p(M,b),d(v[L],1)):(v[L]=P1(M),v[L].c(),d(v[L],1),v[L].m(f,null))}for(fe(),L=k.length;L<v.length;L+=1)I(L);de()}(!h||b[0]&4194304&&m!==(m=y[85]((P=y[22])==null?void 0:P.clientHeight,!0)))&&c(f,"style",m),(!h||b[1]&512)&&O(f,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<k.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&C(e),R(n),i[140](null),Vi(v,y),i[143](null),w=!1,nt(g)}}}function T1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function P1(i){let e,t,n,o=i[168].displayValue+"",r,l,a,s,u,f,m,h=i[168].selected&&T1(i);function w(){return i[141](i[168])}function g(...k){return i[142](i[168],...k)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=Ne(o),l=B(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[168].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[168].displayValue),O(e,"item-mobile",i[40])},m(k,v){S(k,e,v),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,f||(m=[pe(e,"click",st(w)),pe(e,"keydown",g)],f=!0)},p(k,v){i=k,i[168].selected?h?v[0]&256&&d(h,1):(h=T1(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),de()),(!u||v[0]&256)&&o!==(o=i[168].displayValue+"")&&Qe(r,o),(!u||v[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||v[0]&256&&a!==(a=i[168].value))&&c(e,"data-value",a),(!u||v[0]&256&&s!==(s=i[168].displayValue))&&c(e,"aria-label",s),(!u||v[1]&512)&&O(e,"item-mobile",i[40])},i(k){u||(d(h),u=!0)},o(k){_(h),u=!1},d(k){k&&C(e),h&&h.d(),f=!1,nt(m)}}}function I1(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,A;n=new Zn({props:{direction:"left"}});let K=!i[6]&&E1(i),J=i[6]&&L1(i);return{c(){var Y;e=T("div"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("submenu_traffic_saving")}`,a=B(),s=T("div"),u=B(),f=T("div"),m=T("ul"),h=T("li"),K&&K.c(),w=B(),g=T("div"),g.textContent=`${z("traffic_saving_disable")}`,v=B(),I=T("li"),J&&J.c(),y=B(),b=T("div"),b.textContent=`${z("traffic_saving_enable")}`,L=B(),M=T("div"),N=B(),te=T("div"),_e=T("span"),_e.textContent=`${z("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),O(g,"submenu-value-mobile",i[40]),c(h,"class","item item-traffic-saving svelte-1h807jq"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",k=z("aria_label_submenu_traffic_saving_off")),O(h,"item-mobile",i[40]),c(b,"class","submenu-value svelte-1h807jq"),O(b,"submenu-value-mobile",i[40]),c(I,"class","item item-traffic-saving svelte-1h807jq"),c(I,"role","menuitem"),c(I,"tabindex","0"),c(I,"aria-label",P=`${z("aria_label_submenu_traffic_saving_on")}. ${z("traffic_saving_helper_text")}`),O(I,"item-mobile",i[40]),c(m,"class","items svelte-1h807jq"),c(m,"role","menu"),O(m,"items-mobile",i[40]),c(M,"class","menu-divider svelte-1h807jq"),c(_e,"class","svelte-1h807jq"),c(te,"class","item item-helper-text svelte-1h807jq"),O(te,"item-mobile",i[40]),c(f,"style",Z=i[85]((Y=i[23])==null?void 0:Y.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(Y,F){S(Y,e,F),p(e,t),V(n,t,null),p(t,o),p(t,r),i[144](t),p(e,a),p(e,s),p(e,u),p(e,f),p(f,m),p(m,h),K&&K.m(h,null),p(h,w),p(h,g),p(m,v),p(m,I),J&&J.m(I,null),p(I,y),p(I,b),i[149](m),p(f,L),p(f,M),p(f,N),p(f,te),p(te,_e),x=!0,se||(A=[pe(t,"click",st(i[77])),pe(h,"click",st(i[145])),pe(h,"keydown",i[146]),pe(I,"click",st(i[147])),pe(I,"keydown",i[148]),pe(m,"keydown",i[105])],se=!0)},p(Y,F){var G;(!x||F[1]&512)&&O(t,"item-mobile",Y[40]),Y[6]?K&&(fe(),_(K,1,1,()=>{K=null}),de()):K?F[0]&64&&d(K,1):(K=E1(Y),K.c(),d(K,1),K.m(h,w)),(!x||F[1]&512)&&O(g,"submenu-value-mobile",Y[40]),(!x||F[1]&512)&&O(h,"item-mobile",Y[40]),Y[6]?J?F[0]&64&&d(J,1):(J=L1(Y),J.c(),d(J,1),J.m(I,y)):J&&(fe(),_(J,1,1,()=>{J=null}),de()),(!x||F[1]&512)&&O(b,"submenu-value-mobile",Y[40]),(!x||F[1]&512)&&O(I,"item-mobile",Y[40]),(!x||F[1]&512)&&O(m,"items-mobile",Y[40]),(!x||F[1]&512)&&O(te,"item-mobile",Y[40]),(!x||F[0]&8388608&&Z!==(Z=Y[85]((G=Y[23])==null?void 0:G.clientHeight,!0)))&&c(f,"style",Z),(!x||F[1]&512)&&O(e,"menu-desktop",!Y[40]),(!x||F[1]&512)&&O(e,"menu-mobile",Y[40])},i(Y){x||(d(n.$$.fragment,Y),d(K),d(J),x=!0)},o(Y){_(n.$$.fragment,Y),_(K),_(J),x=!1},d(Y){Y&&C(e),R(n),i[144](null),K&&K.d(),J&&J.d(),i[149](null),se=!1,nt(A)}}}function E1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function L1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function A1(i){let e,t,n,o,r,l,a,s,u,f,m,h;n=new Zn({props:{direction:"left"}});let w=Et(i[7]),g=[];for(let v=0;v<w.length;v+=1)g[v]=V1(n1(i,w,v));let k=v=>_(g[v],1,1,()=>{g[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${z("subtitles_caption")}`,a=B(),s=T("ul");for(let I=0;I<g.length;I+=1)g[I].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",l=z("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=i[85]((v=i[24])==null?void 0:v.clientHeight,!0)),O(s,"items-mobile",i[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(v,I){S(v,e,I),p(e,t),V(n,t,null),p(t,o),p(t,r),i[150](t),p(e,a),p(e,s);for(let y=0;y<g.length;y+=1)g[y]&&g[y].m(s,null);i[153](s),f=!0,m||(h=[pe(t,"click",st(i[77])),pe(s,"keydown",i[102])],m=!0)},p(v,I){var y;if((!f||I[1]&512)&&O(t,"item-mobile",v[40]),I[0]&128|I[1]&512|I[2]&16384|I[3]&1024){w=Et(v[7]);let b;for(b=0;b<w.length;b+=1){let P=n1(v,w,b);g[b]?(g[b].p(P,I),d(g[b],1)):(g[b]=V1(P),g[b].c(),d(g[b],1),g[b].m(s,null))}for(fe(),b=w.length;b<g.length;b+=1)k(b);de()}(!f||I[0]&16777216&&u!==(u=v[85]((y=v[24])==null?void 0:y.clientHeight,!0)))&&c(s,"style",u),(!f||I[1]&512)&&O(s,"items-mobile",v[40]),(!f||I[1]&512)&&O(e,"menu-desktop",!v[40]),(!f||I[1]&512)&&O(e,"menu-mobile",v[40])},i(v){if(!f){d(n.$$.fragment,v);for(let I=0;I<w.length;I+=1)d(g[I]);f=!0}},o(v){_(n.$$.fragment,v),g=g.filter(Boolean);for(let I=0;I<g.length;I+=1)_(g[I]);f=!1},d(v){v&&C(e),R(n),i[150](null),Vi(g,v),i[153](null),m=!1,nt(h)}}}function M1(i){let e,t,n;return t=new Qo({}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function V1(i){let e,t,n,o=i[165].displayValue+"",r,l,a,s,u,f,m,h=i[165].selected&&M1(i);function w(){return i[151](i[165])}function g(...k){return i[152](i[165],...k)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=Ne(o),l=B(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[165].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[165].displayValue),O(e,"item-mobile",i[40])},m(k,v){S(k,e,v),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,f||(m=[pe(e,"click",st(w)),pe(e,"keydown",g)],f=!0)},p(k,v){i=k,i[165].selected?h?v[0]&128&&d(h,1):(h=M1(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),de()),(!u||v[0]&128)&&o!==(o=i[165].displayValue+"")&&Qe(r,o),(!u||v[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||v[0]&128&&a!==(a=i[165].value))&&c(e,"data-value",a),(!u||v[0]&128&&s!==(s=i[165].displayValue))&&c(e,"aria-label",s),(!u||v[1]&512)&&O(e,"item-mobile",i[40])},i(k){u||(d(h),u=!0)},o(k){_(h),u=!1},d(k){k&&C(e),h&&h.d(),f=!1,nt(m)}}}function Q2(i){let e,t,n,o,r,l,a,s=i[12]&&s1(i),u=i[14]&&g1(i),f=i[15]&&w1(i),m=i[16]&&S1(i),h=i[18]&&I1(i),w=i[17]&&A1(i);return{c(){e=T("div"),s&&s.c(),t=B(),u&&u.c(),n=B(),f&&f.c(),o=B(),m&&m.c(),r=B(),h&&h.c(),l=B(),w&&w.c(),c(e,"class","svelte-1h807jq"),O(e,"hidden",!i[12]),O(e,"container-mobile",i[40])},m(g,k){S(g,e,k),s&&s.m(e,null),p(e,t),u&&u.m(e,null),p(e,n),f&&f.m(e,null),p(e,o),m&&m.m(e,null),p(e,r),h&&h.m(e,null),p(e,l),w&&w.m(e,null),a=!0},p(g,k){g[12]?s?(s.p(g,k),k[0]&4096&&d(s,1)):(s=s1(g),s.c(),d(s,1),s.m(e,t)):s&&(fe(),_(s,1,1,()=>{s=null}),de()),g[14]?u?(u.p(g,k),k[0]&16384&&d(u,1)):(u=g1(g),u.c(),d(u,1),u.m(e,n)):u&&(fe(),_(u,1,1,()=>{u=null}),de()),g[15]?f?(f.p(g,k),k[0]&32768&&d(f,1)):(f=w1(g),f.c(),d(f,1),f.m(e,o)):f&&(fe(),_(f,1,1,()=>{f=null}),de()),g[16]?m?(m.p(g,k),k[0]&65536&&d(m,1)):(m=S1(g),m.c(),d(m,1),m.m(e,r)):m&&(fe(),_(m,1,1,()=>{m=null}),de()),g[18]?h?(h.p(g,k),k[0]&262144&&d(h,1)):(h=I1(g),h.c(),d(h,1),h.m(e,l)):h&&(fe(),_(h,1,1,()=>{h=null}),de()),g[17]?w?(w.p(g,k),k[0]&131072&&d(w,1)):(w=A1(g),w.c(),d(w,1),w.m(e,null)):w&&(fe(),_(w,1,1,()=>{w=null}),de()),(!a||k[0]&4096)&&O(e,"hidden",!g[12]),(!a||k[1]&512)&&O(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(m),d(h),d(w),a=!0)},o(g){_(s),_(u),_(f),_(m),_(h),_(w),a=!1},d(g){g&&C(e),s&&s.d(),u&&u.d(),f&&f.d(),m&&m.d(),h&&h.d(),w&&w.d()}}}var Y2=18;function Z2(i,e,t){let n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,A,{ref:K=void 0}=e,{supportLink:J}=e,{playerControlsHeight:Y=0}=e,{returnFocus:F}=e,G=rt(),X=Ht(),oe=G.state.audioStream$;H(i,oe,ie=>t(41,g=ie));let De=G.state.availableAudioStreams$;H(i,De,ie=>t(9,k=ie));let Xe=G.state.currentQuality$;H(i,Xe,ie=>t(120,y=ie));let Ee=G.state.availableQualities$;H(i,Ee,ie=>t(10,v=ie));let Be=G.state.autoQualityLimitingAvailable$;H(i,Be,ie=>t(124,M=ie));let qe=G.state.isAutoQualityEnabled$;H(i,qe,ie=>t(121,b=ie));let xe=G.state.currentPlaybackRate$;H(i,xe,ie=>t(11,I=ie));let ae=G.state.availablePlaybackRates$;H(i,ae,ie=>t(8,m=ie));let he=G.state.currentSubtitle$;H(i,he,ie=>t(42,se=ie));let at=G.state.availableSubtitlesList$;H(i,at,ie=>t(7,u=ie));let Ce=G.state.canDownload,Ke=G.state.hasMpegSources$;H(i,Ke,ie=>t(125,N=ie));let mt=G.ui.settingsMenuVisible;H(i,mt,ie=>t(12,x=ie));let Ye=G.ui.settingsMenuOpenedByKeyboard;H(i,Ye,ie=>t(155,o=ie));let Ge=G.ui.isMobile;H(i,Ge,ie=>t(40,r=ie));let Ze=G.ui.mobileNotReportControlHidden$;H(i,Ze,ie=>t(122,P=ie));let et=G.state.canChangePlaybackSpeed$;H(i,et,ie=>t(123,L=ie));let ce=G.ui.isFullscreen;H(i,ce,ie=>t(158,Z=ie));let Pe=G.state.trafficSavingEnabled$;H(i,Pe,ie=>t(6,a=ie));let We=G.ui.playerSize;H(i,We,ie=>t(157,_e=ie));let le=G.ui.debugPanelVisible;H(i,le,ie=>t(43,A=ie));let Te=G.ui.playerSize;H(i,Te,ie=>t(156,te=ie));let pt=G.state.isInteractiveTime$,Le=G.actions.internal.downloadVideo,ut=G.actions.internal.closeSettingsMenu,me=!0,tt=!1,Ct=!1,bt=!1,Ue=!1,Ot=!1,Vt=!1;function St(){o||F==null||F(),ut(),Vt=!1}function ni(){t(13,me=!1),t(14,tt=!0)}function ct(){t(13,me=!1),t(15,Ct=!0)}function lt(){t(13,me=!1),t(18,Ot=!0)}function be(ie){G.actions.internal.setQuality(ie),St()}function Je(ie){G.actions.internal.setAudioStream(ie),St()}function _t(ie){G.actions.internal.setTrafficSavingEnabled(ie),St()}function Ft(){t(13,me=!1),t(16,bt=!0)}function yt(ie){G.actions.internal.setPlaybackRate(ie),St()}function Xt(){t(13,me=!1),t(17,Ue=!0)}function mi(ie){G.actions.internal.setSubtitle(ie),St()}function Mt(){t(13,me=!0),t(14,tt=!1),t(15,Ct=!1),t(16,bt=!1),t(17,Ue=!1),t(18,Ot=!1)}function Wi(){Le(),St()}function cn(){window.open(J,"_blank"),St(),G.actions.internal.pause()}function oi(){_l(G.actions.internal.getDebugTextData()),St()}function Bi(){le.set(!0),St()}let fn=()=>{let ie=G.actions.internal.getTraceTextData(),dt=new Blob([...ie],{type:"application/json"}),Kt=window.URL.createObjectURL(dt);Oo(Kt,"vk_player_trace_info","json"),St()};function ji(){Vt=!0}function dn(){Vt=!1}function Di(ie,dt,Kt){if(!ie)return"...";let vi=dt.find(Ui=>Ui.value===ie),Mn=vi?vi.displayValue:ie;return Kt?ie===R1.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:Mn}):Mn}let qi,pi,_i,wi,ki,Jt;function zt(ie=0,dt=!1){return r&&Z&&dt?`max-height: ${Math.round(_e.height*.6)}px`:r?"":`max-height: ${te.height-Y2-ie-Y}px; overflow: auto;`}let Gi,jt,Ci,Ni,Qi,li,wt,Yi,Oi,Pt,Zi,Xi,xt,Si=Fe(!1);H(i,Si,ie=>t(119,w=ie));let hi=Fe(!1);H(i,hi,ie=>t(118,h=ie));let Ti,$t,Gt=Fe(!1);H(i,Gt,ie=>t(117,f=ie));let ri,Fi,ci=Fe(!1);H(i,ci,ie=>t(116,s=ie));let fi,si,gi=Fe(!1);H(i,gi,ie=>t(115,l=ie));let Ji=ie=>{Tr(ie,ut)},vn=async ie=>{yl(ie,ni,()=>{let dt=v.findIndex(Kt=>Kt.selected);return Xi.childNodes[dt]})},xi=async ie=>{yl(ie,ct,()=>{let dt=k.findIndex(Kt=>Kt.id===(g==null?void 0:g.id));return xt.childNodes[dt]})},di=async ie=>{wl(ie,Mt,Si,ut)},ei=(ie,dt)=>{ui(ie,()=>be(dt))},$i=async ie=>{wl(ie,Mt,hi,ut)},Nt=(ie,dt)=>{ui(ie,()=>Je(dt))},Ut=async ie=>{yl(ie,Ft,()=>{let dt=m.findIndex(Kt=>Kt.selected);return $t.childNodes[dt]})},en=async ie=>{wl(ie,Mt,Gt,ut)},Pi=(ie,dt)=>{ui(ie,()=>yt(dt))},Hi=async ie=>{yl(ie,Xt,()=>{let dt=u.findIndex(Kt=>Kt.selected);return Fi.childNodes[dt]})},mn=async ie=>{wl(ie,Mt,ci,ut)},it=(ie,dt)=>{ui(ie,()=>mi(dt))},bi=async ie=>{yl(ie,lt,()=>{let dt=a?2:0;return si.childNodes[dt]})},ai=async ie=>{wl(ie,Mt,gi,ut)},je=(ie,dt)=>{ui(ie,()=>_t(dt))},tn=ie=>{ui(ie,()=>Wi())},yn=ie=>{ui(ie,()=>cn())},pn=ie=>{ui(ie,()=>oi())},zi=ie=>{ui(ie,()=>Bi())},nn=ie=>{ui(ie,()=>fn())};Dt(()=>{let ie=pt.subscribe(dt=>{dt&&!r&&!Vt&&!o&&St()});return()=>{ie()}});function _n(ie){ge[ie?"unshift":"push"](()=>{Pt=ie,t(1,Pt)})}function Ii(ie){ge[ie?"unshift":"push"](()=>{Zi=ie,t(2,Zi)})}function ti(ie){ge[ie?"unshift":"push"](()=>{Ti=ie,t(3,Ti)})}function on(ie){ge[ie?"unshift":"push"](()=>{ri=ie,t(4,ri)})}function Ei(ie){ge[ie?"unshift":"push"](()=>{fi=ie,t(5,fi)})}function Rn(ie){ge[ie?"unshift":"push"](()=>{K=ie,t(0,K)})}function wn(ie){ge[ie?"unshift":"push"](()=>{pi=ie,t(20,pi)})}let hn=ie=>be(ie.value),ln=(ie,dt)=>ei(dt,ie.value);function kn(ie){ge[ie?"unshift":"push"](()=>{Xi=ie,t(34,Xi)})}function Bn(ie){ge[ie?"unshift":"push"](()=>{_i=ie,t(21,_i)})}let Li=ie=>Je(ie),rn=(ie,dt)=>Nt(dt,ie);function Rt(ie){ge[ie?"unshift":"push"](()=>{xt=ie,t(35,xt)})}function Dn(ie){ge[ie?"unshift":"push"](()=>{wi=ie,t(22,wi)})}let Cn=ie=>yt(ie.value),Hn=(ie,dt)=>Pi(dt,ie.value);function ii(ie){ge[ie?"unshift":"push"](()=>{$t=ie,t(36,$t)})}function zn(ie){ge[ie?"unshift":"push"](()=>{ki=ie,t(23,ki)})}let Un=()=>_t(!1),Sn=ie=>je(ie,!1),Tn=()=>_t(!0),qn=ie=>je(ie,!0);function Pn(ie){ge[ie?"unshift":"push"](()=>{si=ie,t(38,si)})}function Ai(ie){ge[ie?"unshift":"push"](()=>{Jt=ie,t(24,Jt)})}let In=ie=>mi(ie),re=(ie,dt)=>it(dt,ie);function kt(ie){ge[ie?"unshift":"push"](()=>{Fi=ie,t(37,Fi)})}return i.$$set=ie=>{"ref"in ie&&t(0,K=ie.ref),"supportLink"in ie&&t(112,J=ie.supportLink),"playerControlsHeight"in ie&&t(113,Y=ie.playerControlsHeight),"returnFocus"in ie&&t(114,F=ie.returnFocus)},i.$$.update=()=>{var ie;i.$$.dirty[0]&4096&&x&&(t(13,me=!0),t(14,tt=!1),t(15,Ct=!1),t(16,bt=!1),t(17,Ue=!1),t(18,Ot=!1)),i.$$.dirty[3]&134217728&&t(39,n=ko(y)),i.$$.dirty[0]&1024|i.$$.dirty[3]&402653184&&t(19,qi=Di(y,v,b)),i.$$.dirty[3]&536870912|i.$$.dirty[4]&2&&t(25,Gi=Ce&&N&&!P),i.$$.dirty[3]&536870912|i.$$.dirty[4]&1&&t(26,jt=X.features.trafficSaving&&!P&&M),i.$$.dirty[0]&128|i.$$.dirty[3]&536870912&&t(27,Ci=u.length>0&&!P),i.$$.dirty[3]&1610612736&&t(28,Ni=!!L&&!P),i.$$.dirty[0]&512|i.$$.dirty[3]&536870912&&t(29,Qi=X.features.audioLanguages&&k.length>=2&&!P),i.$$.dirty[3]&536870912&&t(30,li=!P),i.$$.dirty[0]&64&&t(31,wt=a?z("traffic_saving_on"):z("traffic_saving_off")),i.$$.dirty[3]&402653184&&t(32,Yi=b?z("auto_quality_option"):y),i.$$.dirty[0]&2304&&t(33,Oi=(ie=m.find(dt=>dt.value===I))==null?void 0:ie.displayValue),i.$$.dirty[0]&2|i.$$.dirty[3]&67108864&&vl(Pt,Si,w),i.$$.dirty[0]&4|i.$$.dirty[3]&33554432&&vl(Zi,hi,h),i.$$.dirty[0]&8|i.$$.dirty[3]&16777216&&vl(Ti,Gt,f),i.$$.dirty[0]&16|i.$$.dirty[3]&8388608&&vl(ri,ci,s),i.$$.dirty[0]&32|i.$$.dirty[3]&4194304&&vl(fi,gi,l)},[K,Pt,Zi,Ti,ri,fi,a,u,m,k,v,I,x,me,tt,Ct,bt,Ue,Ot,qi,pi,_i,wi,ki,Jt,Gi,jt,Ci,Ni,Qi,li,wt,Yi,Oi,Xi,xt,$t,Fi,si,n,r,g,se,A,X,oe,De,Xe,Ee,Be,qe,xe,ae,he,at,Ke,mt,Ye,Ge,Ze,et,ce,Pe,We,le,Te,St,ni,ct,lt,be,Je,_t,Ft,yt,Xt,mi,Mt,Wi,cn,oi,Bi,fn,ji,dn,zt,Si,hi,Gt,ci,gi,Ji,vn,xi,di,ei,$i,Nt,Ut,en,Pi,Hi,mn,it,bi,ai,je,tn,yn,pn,zi,nn,J,Y,F,l,s,f,h,w,y,b,P,L,M,N,_n,Ii,ti,on,Ei,Rn,wn,hn,ln,kn,Bn,Li,rn,Rt,Dn,Cn,Hn,ii,zn,Un,Sn,Tn,qn,Pn,Ai,In,re,kt]}var Wa=class extends W{constructor(e){super(),j(this,e,Z2,Q2,U,{ref:0,supportLink:112,playerControlsHeight:113,returnFocus:114},W2,[-1,-1,-1,-1,-1,-1])}},qr=Wa;function X2(i){Ie(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function J2(i){let e,t,n;return t=new Br({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),D(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function x2(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[J2]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function $2(i,e,t){let n,o,r,{ref:l=void 0}=e,a=rt(),s=a.state.currentQuality$;H(i,s,k=>t(4,r=k));let u=a.ui.settingsMenuVisible;H(i,u,k=>t(1,n=k));let f=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;H(i,m,k=>t(3,o=k));let h;function w(k){let v=gl(k);f(v)}function g(k){l=k,t(0,l)}return i.$$set=k=>{"ref"in k&&t(0,l=k.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,h=n?z("tooltip_settings_on"):z("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,w,g]}var ja=class extends W{constructor(e){super(),j(this,e,$2,x2,U,{ref:0},X2)}},Ql=ja;function eb(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function tb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ga=class extends W{constructor(e){super(),j(this,e,tb,eb,U,{})}},B1=Ga;function ib(i){let e,t;return e=new Dr({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function nb(i){let e,t;return e=new B1({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ob(i){let e,t,n,o,r=[nb,ib],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function lb(i){let e,t;return e=new vt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:xn.KeyC,$$slots:{default:[ob]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rb(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?z("tooltip_subtitles_on"):z("tooltip_subtitles_off"))},[n,o,r]}var Qa=class extends W{constructor(e){super(),j(this,e,rb,lb,U,{isSubtitlesEnabled:0,click:1})}},D1=Qa;function sb(i){Ie(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 q1(i){let e,t;return{c(){e=T("span"),t=Ne(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&8&&Qe(t,n[3])},d(n){n&&C(e)}}}function ab(i){let e,t,n,o,r=i[2]&&q1(i);return{c(){e=T("div"),t=T("span"),n=Ne(i[4]),o=B(),r&&r.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),O(e,"mobile",i[1])},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Qe(n,l[4]),l[2]?r?r.p(l,a):(r=q1(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&O(e,"mobile",l[1])},i:Se,o:Se,d(l){l&&C(e),r&&r.d(),i[7](null)}}}function ub(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function f(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,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=On(o)),i.$$.dirty&64&&t(4,u=On(r))},[a,n,l,s,u,o,r,f]}var Ya=class extends W{constructor(e){super(),j(this,e,ub,ab,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},sb)}},Nr=Ya;var so=require("@vkontakte/videoplayer-shared");function cb(i){Ie(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 fb(i){let e,t,n,o,r,l;return{c(){e=q("svg"),t=q("g"),n=q("path"),o=q("path"),r=q("path"),c(n,"class","wave2 svelte-1n5yyua"),c(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"),c(o,"class","wave1 svelte-1n5yyua"),c(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"),c(r,"class","cross svelte-1n5yyua"),c(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"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",l="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&c(e,"data-testid",l)},i:Se,o:Se,d(a){a&&C(e)}}}function db(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;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,l=r(n,o))},[l,n,o]}var Za=class extends W{constructor(e){super(),j(this,e,db,fb,U,{volume:1,muted:2},cb)}},Yo=Za;var jn=require("@vkontakte/videoplayer-shared");var H1=require("@vkontakte/videoplayer-shared");var F1=require("@vkontakte/videoplayer-shared");function mb(i){let e,t,n=i[4].default,o=Ae(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","overlay")},m(r,l){S(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Re(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&C(e),o&&o.d(r),i[5](null)}}}function pb(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=rt().ui.overlayContainer$;H(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Dt(()=>(f(n),()=>u(n)));function m(h){ge[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[s,a,n,r,o,m]}var Xa=class extends W{constructor(e){super(),j(this,e,pb,mb,U,{})}},N1=Xa;function _b(i){Ie(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{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}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function O1(i){let e,t;return e=new N1({props:{$$slots:{default:[hb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function hb(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=Ne(i[1]),o=B(),r=T("div"),c(t,"class","content svelte-tny135"),c(r,"class","tooltip-pointer svelte-tny135"),c(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),O(r,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),O(e,"active",i[0])},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Qe(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&O(e,"active",s[0])},d(s){s&&C(e),i[20](null)}}}function gb(i){let e,t,n,o,r,l,a=i[18].default,s=Ae(a,i,i[21],null),u=i[1]&&O1(i);return{c(){e=T("div"),s&&s.c(),t=B(),u&&u.c(),n=ft(),c(e,"class","tooltip-wrapper svelte-tny135"),O(e,"full-width",i[2])},m(f,m){S(f,e,m),s&&s.m(e,null),i[19](e),S(f,t,m),u&&u.m(f,m),S(f,n,m),o=!0,r||(l=[pe(e,"mouseenter",i[12]),pe(e,"mousemove",i[12]),pe(e,"mouseleave",i[13]),pe(e,"mousedown",i[13]),pe(e,"mouseup",i[12])],r=!0)},p(f,[m]){s&&s.p&&(!o||m&2097152)&&Ve(s,a,f,f[21],o?Me(a,f[21],m,null):Re(f[21]),null),(!o||m&4)&&O(e,"full-width",f[2]),f[1]?u?(u.p(f,m),m&2&&d(u,1)):(u=O1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(fe(),_(u,1,1,()=>{u=null}),de())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(C(e),C(t),C(n)),s&&s.d(f),i[19](null),u&&u.d(f),r=!1,nt(l)}}}var Yl=5;function bb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:w=F1.noop}=e,g=h==="top",k,v,I,y=0,b=g?Yl:-Yl,P=0,L=0,M=Ht(),N=rt(),te=N.ui.playerSize;H(i,te,G=>t(24,o=G));let _e=N.ui.overlayContainer$;H(i,_e,G=>t(23,n=G));let Z=N.getLogger().createComponentLog("Tooltip component"),x=()=>{if(!n||!v||!k)return;let G=n.getBoundingClientRect(),X=k.getBoundingClientRect(),oe=X.width,De=v.clientWidth,Xe=o.width,Ee=(oe-De)/2,Be=X.left+u-G.left,qe=Be+Ee,xe=X.top+f-G.top,ae=De/2-Yl,he=qe<8,at=qe+De>Xe-8;he&&(qe=8,ae=Be+X.width/2-2.5*Yl),at&&(qe=Xe-8-De,ae=X.left-G.left+X.width/2-qe-Yl),t(6,P=qe),t(7,L=xe),t(5,y=ae)},se=()=>{try{if(!n||!k)return;x(),t(0,s=!0)}catch(G){Z({message:String(G)})}},A=()=>{t(0,s=!1)},K=()=>{v&&(I||(I=window.setTimeout(se,M.controls.hideTimeoutTooltips)),s&&se())},J=()=>{A(),window.clearTimeout(I),I=void 0};Dt(x),Gn(()=>window.clearTimeout(I));function Y(G){ge[G?"unshift":"push"](()=>{k=G,t(3,k)})}function F(G){ge[G?"unshift":"push"](()=>{v=G,t(4,v)})}return i.$$set=G=>{"content"in G&&t(1,a=G.content),"active"in G&&t(0,s=G.active),"translateX"in G&&t(14,u=G.translateX),"translateY"in G&&t(15,f=G.translateY),"isFullWidthWrapper"in G&&t(2,m=G.isFullWidthWrapper),"placement"in G&&t(16,h=G.placement),"onVisibilityChange"in G&&t(17,w=G.onVisibilityChange),"$$scope"in G&&t(21,l=G.$$scope)},i.$$.update=()=>{i.$$.dirty&131073&&w(s)},[s,a,m,k,v,y,P,L,g,b,te,_e,K,J,u,f,h,w,r,Y,F,l]}var Ja=class extends W{constructor(e){super(),j(this,e,bb,gb,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},_b)}},Or=Ja;function vb(i){Ie(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 yb(i){let e,t=i[19].default,n=Ae(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)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Re(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function wb(i){let e,t;return e=new Or({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[kb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function kb(i){let e,t=i[19].default,n=Ae(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)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Re(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Cb(i){let e,t,n,o,r,l,a,s,u,f=[wb,yb],m=[];function h(w,g){return w[3]&&w[11]&&!w[12]?0:1}return t=h(i,-1),n=m[t]=f[t](i),{c(){e=T("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",r=i[7]||null),Yn(()=>i[23].call(e))},m(w,g){S(w,e,g),m[t].m(e,null),i[22](e),l=ol(e,i[23].bind(e)),a=!0,s||(u=[pe(e,"pointerdown",st(i[20])),pe(e,"click",st(i[21]))],s=!0)},p(w,[g]){let k=t;t=h(w,g),t===k?m[t].p(w,g):(fe(),_(m[k],1,1,()=>{m[k]=null}),de(),n=m[t],n?n.p(w,g):(n=m[t]=f[t](w),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&r!==(r=w[7]||null))&&c(e,"aria-hidden",r)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&C(e),m[t].d(),i[22](null),l(),s=!1,nt(u)}}}function Sb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:w=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:k="top"}=e,{disabledTooltipContent:v=z("tooltip_button_disabled")}=e,{isAriaHidden:I=!1}=e,{onTooltipVisibilityChange:y=H1.noop}=e,{initialTranslateXPx:b=0}=e,{initialTranslateYPx:P=-18}=e,L=rt(),M=L.ui.isMobile;H(i,M,A=>t(12,o=A));let N=L.state.graphIsOpened$;H(i,N,A=>t(18,n=A));let te;function _e(A){Nn.call(this,i,A)}function Z(A){Nn.call(this,i,A)}function x(A){ge[A?"unshift":"push"](()=>{f=A,t(0,f)})}function se(){m=this.clientWidth,t(1,m)}return i.$$set=A=>{"className"in A&&t(2,a=A.className),"disabled"in A&&t(15,s=A.disabled),"hasTooltip"in A&&t(3,u=A.hasTooltip),"ref"in A&&t(0,f=A.ref),"width"in A&&t(1,m=A.width),"isFullWidthTooltip"in A&&t(4,h=A.isFullWidthTooltip),"tooltipContent"in A&&t(16,w=A.tooltipContent),"tooltipActive"in A&&t(5,g=A.tooltipActive),"tooltipPlacement"in A&&t(6,k=A.tooltipPlacement),"disabledTooltipContent"in A&&t(17,v=A.disabledTooltipContent),"isAriaHidden"in A&&t(7,I=A.isAriaHidden),"onTooltipVisibilityChange"in A&&t(8,y=A.onTooltipVisibilityChange),"initialTranslateXPx"in A&&t(9,b=A.initialTranslateXPx),"initialTranslateYPx"in A&&t(10,P=A.initialTranslateYPx),"$$scope"in A&&t(24,l=A.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,te=n?z("tooltip_disabled_when_graph_on"):v):t(11,te=w))},[f,m,a,u,h,g,k,I,y,b,P,te,o,M,N,s,w,v,n,r,_e,Z,x,se,l]}var xa=class extends W{constructor(e){super(),j(this,e,Sb,Cb,U,{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},vb)}},qt=xa;function Tb(i){let e,t,n,o,r,l;return{c(){e=q("svg"),t=q("rect"),o=q("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(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"),c(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",l)},i:Se,o:Se,d(a){a&&C(e)}}}function Pb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var $a=class extends W{constructor(e){super(),j(this,e,Pb,Tb,U,{completed:0})}},Fr=$a;function Ib(i){Ie(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 Eb(i){let e,t,n,o,r;return t=new Fr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Yn(()=>i[3].call(e)),O(e,"disabled",i[1])},m(l,a){S(l,e,a),V(t,e,null),o=ol(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&c(e,"style",n),(!r||a&2)&&O(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&C(e),R(t),o()}}}function Lb(i){let e,t;return e=new qt({props:{tooltipContent:z(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:[Eb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=z(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ab(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var eu=class extends W{constructor(e){super(),j(this,e,Ab,Lb,U,{videoEpisode:0,disabled:1},Ib)}},z1=eu;function Mb(i){Ie(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 U1(i,e,t){let n=i.slice();return n[3]=e[t],n}function K1(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=B(),l=T("div"),s=B(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(l,"class","video-episode-filled svelte-1rzxunm"),c(l,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),O(l,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),O(e,"disabled",i[2]),O(e,"mobile",i[1])},m(f,m){S(f,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(f,m){m&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),m&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(l,"style",a),m&2&&O(l,"mobile",f[1]),m&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),m&4&&O(e,"disabled",f[2]),m&2&&O(e,"mobile",f[1])},d(f){f&&C(e)}}}function Vb(i){let e,t=Et(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=K1(U1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&7){t=Et(o[0]);let l;for(l=0;l<t.length;l+=1){let a=U1(o,t,l);n[l]?n[l].p(a,r):(n[l]=K1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:Se,o:Se,d(o){o&&C(e),Vi(n,o)}}}function Rb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile),"disabled"in l&&t(2,r=l.disabled)},[n,o,r]}var tu=class extends W{constructor(e){super(),j(this,e,Rb,Vb,U,{videoEpisodes:0,isMobile:1,disabled:2},Mb)}},W1=tu;function Bb(i){Ie(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=Et(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Y1(j1(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();c(e,"class","interactive-icons svelte-v8ydei"),O(e,"mobile",i[6]),O(e,"hidden",i[6]&&!i[20])},m(l,a){S(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2098176){n=Et(l[21]);let s;for(s=0;s<n.length;s+=1){let u=j1(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Y1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(fe(),s=n.length;s<o.length;s+=1)r(s);de()}(!t||a[0]&64)&&O(e,"mobile",l[6]),(!t||a[0]&1048640)&&O(e,"hidden",l[6]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&C(e),Vi(o,l)}}}function Q1(i){let e,t;return e=new z1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Y1(i){let e,t,n=i[50].interactive&&Q1(i);return{c(){n&&n.c(),e=ft()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Q1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function Db(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=B(),r=T("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(r,"class","filled svelte-v8ydei"),c(r,"style",l=`transform: translateX(${i[13]*100}%);`),O(r,"active-live",i[5]),O(r,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&l!==(l=`transform: translateX(${a[13]*100}%);`)&&c(r,"style",l),s[0]&32&&O(r,"active-live",a[5]),s[0]&128&&O(r,"ads",a[7])},i:Se,o:Se,d(a){a&&C(e)}}}function qb(i){let e,t;return e=new W1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nb(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g=i[9]&&G1(i),k=[qb,Db],v=[];function I(y,b){return y[21].length?0:1}return n=I(i,[-1,-1]),o=v[n]=k[n](i),{c(){var y;g&&g.c(),e=B(),t=T("div"),o.c(),r=B(),l=T("div"),a=T("div"),c(a,"class","handle svelte-v8ydei"),O(a,"active-live",i[5]),c(l,"class","handleWrap svelte-v8ydei"),c(l,"style",s=`transform: translateX(${i[14]*100}%);`),O(l,"hidden",i[11]),c(t,"class",u="slider "+i[1]+" svelte-v8ydei"),c(t,"aria-label",i[15]),c(t,"aria-valuemin",i[16]),c(t,"aria-valuemax",i[17]),c(t,"aria-valuenow",i[18]),c(t,"aria-valuetext",i[19]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=(y=i[2])!=null?y:null),O(t,"disabled",i[10]),O(t,"slider-dragging",i[20]),O(t,"hidden",i[3]),O(t,"slider-vertical",i[4]),O(t,"no-handle",i[11]),O(t,"square",i[8])},m(y,b){g&&g.m(y,b),S(y,e,b),S(y,t,b),v[n].m(t,null),p(t,r),p(t,l),p(l,a),i[44](t),m=!0,h||(w=[pe(t,"pointerdown",Yt(i[22])),pe(t,"pointermove",Yt(i[23])),pe(t,"pointerup",Yt(i[24])),pe(t,"pointerenter",Yt(i[25])),pe(t,"pointerleave",Yt(i[26])),pe(t,"click",st(i[28])),pe(t,"wheel",i[27])],h=!0)},p(y,b){var L;y[9]?g?(g.p(y,b),b[0]&512&&d(g,1)):(g=G1(y),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(fe(),_(g,1,1,()=>{g=null}),de());let P=n;n=I(y,b),n===P?v[n].p(y,b):(fe(),_(v[P],1,1,()=>{v[P]=null}),de(),o=v[n],o?o.p(y,b):(o=v[n]=k[n](y),o.c()),d(o,1),o.m(t,r)),(!m||b[0]&32)&&O(a,"active-live",y[5]),(!m||b[0]&16384&&s!==(s=`transform: translateX(${y[14]*100}%);`))&&c(l,"style",s),(!m||b[0]&2048)&&O(l,"hidden",y[11]),(!m||b[0]&2&&u!==(u="slider "+y[1]+" svelte-v8ydei"))&&c(t,"class",u),(!m||b[0]&32768)&&c(t,"aria-label",y[15]),(!m||b[0]&65536)&&c(t,"aria-valuemin",y[16]),(!m||b[0]&131072)&&c(t,"aria-valuemax",y[17]),(!m||b[0]&262144)&&c(t,"aria-valuenow",y[18]),(!m||b[0]&524288)&&c(t,"aria-valuetext",y[19]),(!m||b[0]&4&&f!==(f=(L=y[2])!=null?L:null))&&c(t,"data-testid",f),(!m||b[0]&1026)&&O(t,"disabled",y[10]),(!m||b[0]&1048578)&&O(t,"slider-dragging",y[20]),(!m||b[0]&10)&&O(t,"hidden",y[3]),(!m||b[0]&18)&&O(t,"slider-vertical",y[4]),(!m||b[0]&2050)&&O(t,"no-handle",y[11]),(!m||b[0]&258)&&O(t,"square",y[8])},i(y){m||(d(g),d(o),m=!0)},o(y){_(g),_(o),m=!1},d(y){y&&(C(e),C(t)),g&&g.d(y),v[n].d(),i[44](null),h=!1,nt(w)}}}function Ob(i,e,t){let n,o,{ref:r=void 0}=e,{className:l=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:w=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:k=!1}=e,{isInteractive:v=!1}=e,{disabled:I=!1}=e,{hideHandel:y=!1}=e,b,{onPointerDown:P=jn.noop}=e,{onHandleMove:L=jn.noop}=e,{onPointerUp:M=jn.noop}=e,{onPointerEnter:N=jn.noop}=e,{onPointerMove:te=jn.noop}=e,{onPointerLeave:_e=jn.noop}=e,{onWheelUp:Z=jn.noop}=e,{onWheelDown:x=jn.noop}=e,{onWheelLeft:se=jn.noop}=e,{onWheelRight:A=jn.noop}=e,{onDisabledClick:K=jn.noop}=e,{loadedProgress:J=0}=e,{filledProgress:Y=0}=e,{handleProgress:F=0}=e,{ariaLabel:G=""}=e,{ariaValueMin:X=void 0}=e,{ariaValueMax:oe=void 0}=e,{ariaValueNow:De=void 0}=e,{ariaValueText:Xe=""}=e,Ee=Ht(),Be=!1,qe;function xe(ce){if(r&&(b=r.getBoundingClientRect()),I||Be||!r)return;t(20,Be=!0);let Pe=Ye(ce.clientX,ce.clientY);P(Pe),r.setPointerCapture(ce.pointerId)}function ae(ce){if(I)return;let Pe=Ye(ce.clientX,ce.clientY),We=Ge(ce.clientX);te(Pe,We,b.width),Be&&L(Pe)}function he(ce){if(I||!Be)return;t(20,Be=!1);let Pe=Ye(ce.clientX,ce.clientY);M(Pe)}function at(ce){if(r&&(b=r.getBoundingClientRect()),I)return;let Pe=Ye(ce.clientX,ce.clientY),We=Ge(ce.clientX);N(Pe,We,b.width)}function Ce(){I||_e()}function Ke(ce){I||k&&(ce.preventDefault(),ce.deltaY<0?Z():ce.deltaY>0?x():ce.deltaX>0?A():se())}function mt(ce){I&&K(Ye(ce.clientX,ce.clientY))}function Ye(ce,Pe){return u?Math.max(0,Math.min(1,(b.height-(Pe-b.top))/b.height)):Math.min(Math.max(ce-b.x,0),b.width)/b.width}function Ge(ce){return Math.min(Math.max(ce-b.x,0),b.width)}function Ze(ce,Pe){let We=Ee.features.episodesClustering&&!v?Ee.episodeMinWidthPc:0,le=[],Te=0,pt=0,Le=0;for(let tt=1;tt<g.length;tt++)pt=g[tt].time/qe*100,pt-Te>We&&(le.push({from:Te,width:Math.max(0,pt-Te),loadedWidth:Math.max(0,Math.min(pt,ce)-Te),filledWidth:Math.max(0,Math.min(pt,Pe)-Te),interactive:g[tt-1].interactive,completed:g[tt-1].completed}),Te=g[tt].time/qe*100,Le++);let ut={from:Te,width:Math.max(0,100-Te),loadedWidth:Math.max(0,Math.min(ce,100)-Te),filledWidth:Math.max(0,Math.min(Pe,100)-Te),interactive:g[Le].interactive,completed:g[Le].completed};100-Te<We?(Le-=1,le[Le].width+=100-Te,le[Le].loadedWidth+=Math.max(0,Math.min(ce,100)-Te),le[Le].filledWidth+=Math.max(0,Math.min(Pe,100)-Te)):le[Le]=ut;let me=g[0].time;if(me!==0){let tt=me/qe*100;le.unshift({from:0,width:tt,loadedWidth:Math.min(tt,ce),filledWidth:Math.min(tt,Pe)})}return le}function et(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,l=ce.className),"testId"in ce&&t(2,a=ce.testId),"isHidden"in ce&&t(3,s=ce.isHidden),"isVertical"in ce&&t(4,u=ce.isVertical),"isActiveLive"in ce&&t(5,f=ce.isActiveLive),"isMobile"in ce&&t(6,m=ce.isMobile),"isAds"in ce&&t(7,h=ce.isAds),"squareBorders"in ce&&t(8,w=ce.squareBorders),"videoEpisodes"in ce&&t(29,g=ce.videoEpisodes),"withWheelHandler"in ce&&t(30,k=ce.withWheelHandler),"isInteractive"in ce&&t(9,v=ce.isInteractive),"disabled"in ce&&t(10,I=ce.disabled),"hideHandel"in ce&&t(11,y=ce.hideHandel),"onPointerDown"in ce&&t(31,P=ce.onPointerDown),"onHandleMove"in ce&&t(32,L=ce.onHandleMove),"onPointerUp"in ce&&t(33,M=ce.onPointerUp),"onPointerEnter"in ce&&t(34,N=ce.onPointerEnter),"onPointerMove"in ce&&t(35,te=ce.onPointerMove),"onPointerLeave"in ce&&t(36,_e=ce.onPointerLeave),"onWheelUp"in ce&&t(37,Z=ce.onWheelUp),"onWheelDown"in ce&&t(38,x=ce.onWheelDown),"onWheelLeft"in ce&&t(39,se=ce.onWheelLeft),"onWheelRight"in ce&&t(40,A=ce.onWheelRight),"onDisabledClick"in ce&&t(41,K=ce.onDisabledClick),"loadedProgress"in ce&&t(12,J=ce.loadedProgress),"filledProgress"in ce&&t(13,Y=ce.filledProgress),"handleProgress"in ce&&t(14,F=ce.handleProgress),"ariaLabel"in ce&&t(15,G=ce.ariaLabel),"ariaValueMin"in ce&&t(16,X=ce.ariaValueMin),"ariaValueMax"in ce&&t(17,oe=ce.ariaValueMax),"ariaValueNow"in ce&&t(18,De=ce.ariaValueNow),"ariaValueText"in ce&&t(19,Xe=ce.ariaValueText)},i.$$.update=()=>{var ce;i.$$.dirty[0]&131072&&t(42,qe=oe!=null?oe:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((ce=g[g.length-1])==null?void 0:ce.time)<qe),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&qe?Ze(J*100,Y*100):[])},[r,l,a,s,u,f,m,h,w,v,I,y,J,Y,F,G,X,oe,De,Xe,Be,o,xe,ae,he,at,Ce,Ke,mt,g,k,P,L,M,N,te,_e,Z,x,se,A,K,qe,n,et]}var iu=class extends W{constructor(e){super(),j(this,e,Ob,Nb,U,{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},Bb,[-1,-1])}},Tl=iu;var Fn=(i,e)=>qo[i]>=qo[e],Z1=(i,e)=>qo[i]<qo[e],Hr=(i,e)=>qo[i]<=qo[e],X1=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Fb(i){Ie(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 Hb(i){let e,t;return e=new Yo({props:{volume:i[3],muted:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zb(i){let e,t;return e=new vt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:xn.KeyM,$$slots:{default:[Hb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function J1(i){let e,t,n;return t=new Tl({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]:so.noop,onPointerLeave:i[2]?i[20]:so.noop,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=T("div"),D(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),O(e,"volumeBar-vertical",i[2])},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:so.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:so.noop),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&O(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function Ub(i){let e,t,n,o,r,l;t=new Or({props:{content:i[6],translateY:-18,$$slots:{default:[zb]},$$scope:{ctx:i}}});let a=i[4]&&J1(i);return{c(){e=T("div"),D(t.$$.fragment),n=B(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),O(e,"vertical",i[2])},m(s,u){S(s,e,u),V(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[pe(e,"mouseenter",function(){Mi(i[2]?i[21]:so.noop)&&(i[2]?i[21]:so.noop).apply(this,arguments)}),pe(e,"mouseleave",function(){Mi(i[2]?i[22]:so.noop)&&(i[2]?i[22]:so.noop).apply(this,arguments)}),pe(e,"wheel",Yt(i[23]))],r=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),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&&(fe(),_(a,1,1,()=>{a=null}),de()),(!o||u[0]&4)&&O(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&C(e),R(t),a&&a.d(),r=!1,nt(l)}}}function Kb(i,e,t){var Ee,Be;let n,o,r,l,{click:a}=e,s=rt(),u=Ht(),f=s.state.volume$;H(i,f,qe=>t(3,n=qe));let m=s.state.muted$;H(i,m,qe=>t(25,l=qe));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;H(i,w,qe=>t(24,r=qe));let g=(Ee=s.callbacks)==null?void 0:Ee.onAudioDoesNotExistHint,k=(Be=s.callbacks)==null?void 0:Be.onAudioDisabledHint,v=s.state.isAudioAvailable$;H(i,v,qe=>t(4,o=qe));let I=s.state.isAudioDisabled,y=!1,b,P,L,M,N,te,_e=1,Z=!1,x=!1;function se(qe){_e=n,h(qe)}function A(){Lr(s,n,u.controls.volumeStepWheel)}function K(){Ar(s,n,u.controls.volumeStepWheel)}function J(qe){h(qe)}function Y(qe){let xe=qe;h(xe,xe===0?_e:xe)}function F(){Z=!0}function G(){Z=!1,De()}function X(){clearTimeout(b),t(5,y=!0)}function oe(){De()}function De(){b=window.setTimeout(()=>{Z||t(5,y=!1)},u.controls.volumeBarTimeout)}function Xe(qe){qe.deltaY<0?A():qe.deltaY>0&&K()}return i.$$set=qe=>{"click"in qe&&t(0,a=qe.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,M=!o||l),i.$$.dirty[0]&16777216&&t(2,N=Hr(r,"s")),i.$$.dirty[0]&6&&(N?t(6,P=""):t(6,P=M?z("tooltip_volume"):z("tooltip_volume_muted")),t(7,L=M?z("tooltip_volume"):z("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,te=M?0:n),i.$$.dirty[0]&16&&(o?t(9,x=I&&!k):t(9,x=!g))},[a,M,N,n,o,y,P,L,te,x,f,m,w,v,se,A,K,J,Y,F,G,X,oe,Xe,r,l]}var nu=class extends W{constructor(e){super(),j(this,e,Kb,Ub,U,{click:0},Fb,[-1,-1])}},x1=nu;var tm=require("@vkontakte/videoplayer-shared");function Wb(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=q("svg"),a&&a.c(),t=q("g"),n=q("path"),o=q("path"),c(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"),c(n,"class","_exit"),c(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"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ou=class extends W{constructor(e){super(),j(this,e,jb,Wb,U,{})}},$1=ou;function Gb(i){Ie(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Qb(i){let e,t;return e=new $1({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var lu=class extends W{constructor(e){super(),j(this,e,Yb,Qb,U,{isFullscreen:0},Gb)}},em=lu;function Zb(i){let e,t;return e=new em({props:{isFullscreen:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xb(i){let e,t;return e=new vt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:xn.KeyF,$$slots:{default:[Zb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Jb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=tm.noop}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off"))},[n,o,r]}var ru=class extends W{constructor(e){super(),j(this,e,Jb,Xb,U,{isFullscreen:0,click:1})}},zr=ru;function xb(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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.078z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function $b(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var su=class extends W{constructor(e){super(),j(this,e,$b,xb,U,{})}},Pl=su;function ev(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function tv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var au=class extends W{constructor(e){super(),j(this,e,tv,ev,U,{})}},Ur=au;var nm=require("@vkontakte/videoplayer-shared");function iv(i){Ie(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=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function nv(i){let e,t,n,o,r=i[1]&&im(i);var l=i[8];function a(s,u){return{}}return l&&(n=Vn(l,a(i))),{c(){r&&r.c(),e=B(),t=T("div"),n&&D(n.$$.fragment),c(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),S(s,e,u),S(s,t,u),n&&V(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=im(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){fe();let f=n;_(f.$$.fragment,1,0,()=>{R(f,1)}),de()}l?(n=Vn(l,a(s,u)),D(n.$$.fragment),d(n.$$.fragment,1),V(n,t,null)):n=null}(!o||u&2)&&O(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(C(e),C(t)),r&&r.d(s),n&&R(n)}}}function ov(i){let e,t,n;function o(l){i[13](l)}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:xn.KeyK,$$slots:{default:[nv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function lv(i,e,t){let n,o,{fakeIsPlaying$:r}=Wn();H(i,r,y=>t(12,o=y));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:m=nm.noop}=e,{toggle:h}=r,w,g,k,v;function I(y){l=y,t(0,l)}return i.$$set=y=>{"ref"in y&&t(0,l=y.ref),"isMobile"in y&&t(1,a=y.isMobile),"isPlaying"in y&&t(10,s=y.isPlaying),"disabled"in y&&t(2,u=y.disabled),"className"in y&&t(3,f=y.className),"click"in y&&t(4,m=y.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,k=g?o:s),i.$$.dirty&2048&&t(7,v=k?z("tooltip_pause"):z("tooltip_play")),i.$$.dirty&2048&&t(8,n=k?Ur:Pl)},t(6,w=h),[l,a,u,f,m,g,w,v,n,r,s,k,o,I]}var uu=class extends W{constructor(e){super(),j(this,e,lv,ov,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},iv)}},Zl=uu;function rv(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function sv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var cu=class extends W{constructor(e){super(),j(this,e,sv,rv,U,{})}},om=cu;function av(i){let e,t;return e=new om({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function uv(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.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 fu=class extends W{constructor(e){super(),j(this,e,uv,av,U,{isPrev:0,isMobile:2})}},lm=fu;function cv(i){let e,t;return e=new lm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function fv(i){let e,t,n;function o(l){i[6](l)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[cv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function dv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,r=f.disabled),"type"in f&&t(3,l=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l==="prev"?z("tooltip_previous"):z("tooltip_next"))},[n,o,r,l,a,s,u]}var du=class extends W{constructor(e){super(),j(this,e,dv,fv,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Il=du;function mv(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function pv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var mu=class extends W{constructor(e){super(),j(this,e,pv,mv,U,{})}},rm=mu;function _v(i){let e,t,n,o,r,l,a=i[2].default,s=Ae(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]],f={};for(let m=0;m<u.length;m+=1)f=ue(f,u[m]);return{c(){e=q("svg"),s&&s.c(),t=q("path"),n=q("path"),o=q("path"),r=q("path"),c(t,"fill","#fff"),c(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"),c(n,"fill","#fff"),c(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"),c(n,"class","_ru"),c(o,"fill","#fff"),c(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"),c(o,"class","_en"),c(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(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"),c(r,"clip-rule","evenodd"),we(e,f)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Re(m[1]),null),we(e,f=Oe(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){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&C(e),s&&s.d(m)}}}function hv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var pu=class extends W{constructor(e){super(),j(this,e,hv,_v,U,{})}},sm=pu;function gv(i){Ie(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 bv(i){let e,t;return e=new sm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}var vv="vk-video-logo-icon--short";function yv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;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,l=n?vv:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en")))},[r,l,n,o]}var _u=class extends W{constructor(e){super(),j(this,e,yv,bv,U,{short:2,isCyrillic:3},gv)}},am=_u;function kv(i){let e,t;return e=new rm({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Cv(i){let e,t;return e=new am({props:{short:i[4],isCyrillic:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sv(i){let e,t,n,o,r=[Cv,kv],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Tv(i){let e,t,n;function o(l){i[14](l)}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:[Sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&131124&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Pv(i,e,t){let n,o,r,{ref:l=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Ht(),m=rt(),h=m.ui.currentGridType$;H(i,h,P=>t(12,n=P));let w=m.ui.isMobile;H(i,w,P=>t(13,o=P));let g=m.isCyrillicRelatedInterface$;H(i,g,P=>t(5,r=P));let k,v,I,y=()=>{var P,L;u(),(P=m.callbacks)!=null&&P.onLogoClicked?(L=m.callbacks)==null||L.onLogoClicked():s&&window.open(s,"_blank")};function b(P){l=P,t(0,l)}return i.$$set=P=>{"ref"in P&&t(0,l=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,s=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,I=(o||Hr(n,"l"))&&v)},t(3,k=f.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo")),t(2,v=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[l,a,v,k,I,r,h,w,g,y,s,u,n,o,b]}var hu=class extends W{constructor(e){super(),j(this,e,Pv,Tv,U,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Kr=hu;var cm=require("@vkontakte/videoplayer-core");var gu=require("@vkontakte/videoplayer-core");function Iv(i){Ie(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,l,a,s;return{c(){e=q("svg"),t=q("g"),n=q("path"),o=q("path"),r=q("path"),l=q("path"),a=q("path"),s=q("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(r,"class","wave wave3 svelte-8z1bf5"),c(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(r,"fill","#fff"),c(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(l,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),O(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),O(e,"connecting",i[2])},m(u,f){S(u,e,f),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,f){f&2&&O(s,"hidden",!u[1]),f&4&&O(e,"connecting",u[2])},d(u){u&&C(e)}}}function Lv(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L;return{c(){e=q("svg"),t=q("g"),n=q("mask"),o=q("path"),l=q("path"),a=q("path"),u=q("path"),f=q("defs"),m=q("clipPath"),h=q("path"),g=q("filter"),k=q("feFlood"),v=q("feColorMatrix"),I=q("feOffset"),y=q("feGaussianBlur"),b=q("feColorMatrix"),P=q("feBlend"),L=q("feBlend"),c(o,"fill",r=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(l,"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"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(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"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(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"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(h,"fill",w=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(m,"id","a"),c(k,"flood-opacity","0"),c(k,"result","BackgroundImageFix"),c(v,"in","SourceAlpha"),c(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(v,"result","hardAlpha"),c(y,"stdDeviation","2.5"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_4085_178456"),c(L,"in","SourceGraphic"),c(L,"in2","effect1_dropShadow_4085_178456"),c(L,"result","shape"),c(g,"id","b"),c(g,"x","-3.4"),c(g,"y","-1.4"),c(g,"width","30.8"),c(g,"height","26.802"),c(g,"filterUnits","userSpaceOnUse"),c(g,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(M,N){S(M,e,N),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,f),p(f,m),p(m,h),p(f,g),p(g,k),p(g,v),p(g,I),p(g,y),p(g,b),p(g,P),p(g,L)},p(M,N){N&2&&r!==(r=M[1]?"#2688EB":"#fff")&&c(o,"fill",r),N&2&&s!==(s=M[1]?"#2688EB":"#fff")&&c(a,"fill",s),N&2&&w!==(w=M[1]?"#2688EB":"#fff")&&c(h,"fill",w)},d(M){M&&C(e)}}}function Av(i){let e;function t(r,l){return r[0]?Lv:Ev}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ft()},m(r,l){o.m(r,l),S(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:Se,o:Se,d(r){r&&C(e),o.d(r)}}}function Mv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;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,l=o===gu.ChromecastState.CONNECTING),t(1,r=o===gu.ChromecastState.CONNECTED))},[n,r,l,o]}var bu=class extends W{constructor(e){super(),j(this,e,Mv,Av,U,{isMobile:0,state:3},Iv)}},um=bu;var fm=require("@vkontakte/videoplayer-shared");function Vv(i){let e,t;return e=new um({props:{isMobile:i[1],state:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rv(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Vv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Bv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=fm.noop}=e,a;function s(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,l=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===cm.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var vu=class extends W{constructor(e){super(),j(this,e,Bv,Rv,U,{ref:0,isMobile:1,state:2,click:3})}},Wr=vu;var jr=require("@vkontakte/videoplayer-core");function Dv(i){let e,t;return e=new Cr({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qv(i){let e,t;return e=new vt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===jr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[Dv]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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]===jr.PlaybackState.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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=rt(),s=a.state.playbackState$;H(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===jr.PlaybackState.PAUSED&&f()})},[o,r,l,n,m,s]}var yu=class extends W{constructor(e){super(),j(this,e,Nv,qv,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Gr=yu;function Ov(i){Ie(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 Fv(i){let e,t,n,o,r=i[9].default,l=Ae(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),c(t,"class","tooltip svelte-5ygsa2"),O(t,"active",i[0]),O(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){S(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Re(a[8]),null),(!o||s&1)&&O(t,"active",a[0]),(!o||s&2)&&O(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&C(e),l&&l.d(a),i[10](null),i[11](null)}}}function Hv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,m,h;function w(v){if(!h)return 0;let{width:I}=h.getBoundingClientRect(),y=I/2;return v<y?y:v>f-y?f-y:v}function g(v){ge[v?"unshift":"push"](()=>{h=v,t(4,h)})}function k(v){ge[v?"unshift":"push"](()=>{m=v,t(3,m)})}return i.$$set=v=>{"active"in v&&t(0,l=v.active),"pointer"in v&&t(1,a=v.pointer),"translateXPx"in v&&t(6,s=v.translateXPx),"translateYPx"in v&&t(2,u=v.translateYPx),"containerWidth"in v&&t(7,f=v.containerWidth),"$$scope"in v&&t(8,r=v.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=w(s))},[l,a,u,m,h,n,s,f,r,o,g,k]}var wu=class extends W{constructor(e){super(),j(this,e,Hv,Fv,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Ov)}},dm=wu;var Qr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function zv(i){Ie(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 mm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?Kv:Uv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ft()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&C(e),o.d(r)}}}function Uv(i){let e=(i[10].text||"")+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Qe(t,e)},d(n){n&&C(t)}}}function Kv(i){let e=z("tooltip_episode_unfinished")+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p:Se,d(n){n&&C(t)}}}function pm(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&C(e)}}}function Wv(i){let e,t,n,o,r,l,a=i[10]&&mm(i),s=!i[2]&&pm(i);return{c(){e=T("div"),t=T("div"),o=B(),r=T("div"),a&&a.c(),l=B(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(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);`),c(r,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),O(e,"mobile",i[1])},m(u,f){S(u,e,f),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[f]){f&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);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=mm(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=pm(u),s.c(),s.m(e,null)),f&2&&O(e,"mobile",u[1])},i:Se,o:Se,d(u){u&&C(e),a&&a.d(),s&&s.d()}}}var El=150;function jv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=rt().ui.rotateAlpha;H(i,h,N=>t(11,n=N));let w,g,k,v,I,y,b,P;function L(){let N=a.frameWidth,te=a.frameHeight;return N>El?(te=te/N*El,N=El):te>El&&(N=N/te*El,te=El),{width:N,height:te}}function M(N){let te;a.isUV?te=Math.floor(u*N/a.frequency):te=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*N)));let _e=Math.floor(te/a.countPerImage),Z=Math.floor(te%a.countPerImage/a.countPerRow),x=te%a.countPerRow,se=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&_e===Math.floor(a.countTotal/a.countPerImage)&&(se=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&se++);let A=a.countPerRow;!a.isUV&&_e===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(A=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let K=w*A,J=g*se,Y=-x*w,F=-Z*g;return{imgSrc:a.links[_e],imgWidth:K,imgHeight:J,imgOffsetX:Y,imgOffsetY:F}}return i.$$set=N=>{"time"in N&&t(0,o=N.time),"isMobile"in N&&t(1,r=N.isMobile),"videoEpisodes"in N&&t(13,l=N.videoEpisodes),"previewThumbsData"in N&&t(14,a=N.previewThumbsData),"progress"in N&&t(15,s=N.progress),"duration"in N&&t(16,u=N.duration),"isInteractive"in N&&t(2,f=N.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:k,imgWidth:v,imgHeight:I,imgOffsetX:y,imgOffsetY:b}=M(s),k,(t(6,v),t(15,s)),(t(7,I),t(15,s)),(t(8,y),t(15,s)),(t(9,b),t(15,s))),i.$$.dirty&106496&&t(10,P=Qr(s,u,l))},t(3,{width:w,height:g}=L(),w,t(4,g)),[o,r,f,w,g,k,v,I,y,b,P,n,h,l,a,s,u]}var ku=class extends W{constructor(e){super(),j(this,e,jv,Wv,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},zv)}},_m=ku;function Gv(i){Ie(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 Qv(i){let e,t;return{c(){e=T("span"),t=Ne(i[8]),c(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o[0]&256&&Qe(t,n[8])},i:Se,o:Se,d(n){n&&C(e)}}}function Yv(i){let e,t;return e=new _m({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){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zv(i){let e,t,n,o,r=[Yv,Qv],l=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Xv(i){let e,t,n,o,r,l=[i[10]],a={$$slots:{default:[Zv]},$$scope:{ctx:i}};for(let f=0;f<l.length;f+=1)a=ue(a,l[f]);e=new dm({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:z("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:z("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 Tl({props:u}),ge.push(()=>ze(n,"ref",s)),{c(){D(e.$$.fragment),t=B(),D(n.$$.fragment)},m(f,m){V(e,f,m),S(f,t,m),V(n,f,m),r=!0},p(f,m){let h=m[0]&1024?Oe(l,[ef(f[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:f}),e.$set(h);let w={};m[0]&4096&&(w.isActiveLive=f[12]),m[0]&2048&&(w.isMobile=f[11]),m[0]&4&&(w.ariaValueMax=f[2]),m[0]&128&&(w.ariaValueNow=Math.round(f[7]*100)),m[0]&96&&(w.ariaValueText=z("aria_timeline_value",{position:f[6],duration:f[5]})),m[0]&8192&&(w.loadedProgress=f[13]),m[0]&128&&(w.filledProgress=f[7]),m[0]&128&&(w.handleProgress=f[7]),m[0]&16&&(w.videoEpisodes=f[4]),m[0]&16384&&(w.disabled=f[14].has("TIMELINE")),m[0]&8&&(w.hideHandel=f[3]),!o&&m[0]&1&&(o=!0,w.ref=f[0],He(()=>o=!1)),n.$set(w)},i(f){r||(d(e.$$.fragment,f),d(n.$$.fragment,f),r=!0)},o(f){_(e.$$.fragment,f),_(n.$$.fragment,f),r=!1},d(f){f&&C(t),R(e,f),R(n,f)}}}function Jv(i,e,t){var ce;let n,o,r,l,a,s,u,f,m,h,w,{showTimeline:g=!1}=e,{ref:k=void 0}=e,v=rt(),I=Ht(),y=v.state.bufferedProgress$;H(i,y,Pe=>t(13,h=Pe));let b=v.state.positionWithScrubbing$;H(i,b,Pe=>t(41,s=Pe));let P=v.state.duration$;H(i,P,Pe=>t(2,r=Pe));let L=v.state.isLive$;H(i,L,Pe=>t(1,o=Pe));let M=v.state.isActiveLive$;H(i,M,Pe=>t(12,m=Pe));let N=v.ui.isMobile;H(i,N,Pe=>t(11,f=Pe));let te=I.features.episodes?v.actions.internal.getVideoEpisodes():void 0,_e=v.actions.internal.getPreviewThumbsData(),Z=v.state.interactiveEpisodes$;H(i,Z,Pe=>t(42,u=Pe));let x=v.state.isInteractive,se=v.state.isInteractiveTime$;H(i,se,Pe=>t(3,l=Pe));let A=v.state.isInteractiveExpectation$;H(i,A,Pe=>t(40,a=Pe));let K=v.actions.internal.correctSeekTimeToInteractive,J=(ce=v.callbacks)==null?void 0:ce.onDisabledTimelineClick,Y=v.ui.controls.disabledControls$;H(i,Y,Pe=>t(14,w=Pe));let F,G,X,oe,De=!1,Xe="",Ee=0,Be=0,qe=0,xe;function ae(Pe){return!K||!x?Pe:K(Pe*r)/r}function he(Pe){v.actions.internal.startScrubbing(ae(Pe))}function at(Pe){l||v.actions.internal.progressScrubbing(ae(Pe))}function Ce(Pe){v.actions.internal.completeScrubbing(ae(Pe)),t(36,De=!1)}function Ke(Pe,We,le){Ge(Pe,We,le),t(36,De=!0)}function mt(Pe,We,le){Ge(Pe,We,le),t(36,De=!0)}function Ye(){t(36,De=!1)}function Ge(Pe,We,le){t(9,qe=ae(Pe)),t(37,Ee=We),le&&t(38,Be=le),t(8,Xe=Ze(Pe))}function Ze(Pe){let We=On((o?1-Pe:Pe)*r);return o?`-${We}`:We}function et(Pe){k=Pe,t(0,k)}return i.$$set=Pe=>{"showTimeline"in Pe&&t(35,g=Pe.showTimeline),"ref"in Pe&&t(0,k=Pe.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,F=x?u:te),i.$$.dirty[0]&4&&t(5,G=On(r)),i.$$.dirty[1]&1024&&t(6,X=On(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,oe=s/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,xe=a||l),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Be,translateXPx:Ee,translateYPx:x&&_e?-36:-16,active:De&&g&&!xe,pointer:!I.features.timelinePreview||!_e||o})},[k,o,r,l,F,G,X,oe,Xe,qe,n,f,m,h,w,I,y,b,P,L,M,N,_e,Z,x,se,A,J,Y,he,at,Ce,Ke,mt,Ye,g,De,Ee,Be,xe,a,s,u,et]}var Cu=class extends W{constructor(e){super(),j(this,e,Jv,Xv,U,{showTimeline:35,ref:0},Gv,[-1,-1])}},hm=Cu;function xv(i){let e,t;return e=new Tl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:z("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){V(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=z("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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $v(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=rt().ui.isMobile;H(i,a,m=>t(4,n=m));let s,u,f;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,s=On(r)),i.$$.dirty&64&&t(2,u=On(o)),i.$$.dirty&65&&t(3,f=o/r)},[r,s,u,f,n,a,o]}var Su=class extends W{constructor(e){super(),j(this,e,$v,xv,U,{position:6,duration:0})}},Yr=Su;function e4(i){Ie(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 t4(i){let e;return{c(){e=T("div"),c(e,"class","timeline-stub svelte-1gqonyf"),O(e,"mobile",i[3])},m(t,n){S(t,e,n)},p(t,n){n&8&&O(e,"mobile",t[3])},i:Se,o:Se,d(t){t&&C(e)}}}function i4(i){let e,t,n,o,r=[o4,n4],l=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),O(e,"mobile",i[3])},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&O(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),l[t].d()}}}function n4(i){let e,t,n;function o(l){i[14](l)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new hm({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&4&&(s.showTimeline=l[2]),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function o4(i){let e,t;return e=new Yr({props:{position:i[4],duration:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function l4(i){let e,t,n,o,r=[i4,t4],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function r4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:m=void 0}=e,h=rt(),w=h.state.isLive$;H(i,w,b=>t(13,n=b));let g=h.ads.duration;H(i,g,b=>t(5,l=b));let k=h.ads.position;H(i,k,b=>t(4,r=b));let v=h.ui.isMobile;H(i,v,b=>t(3,o=b));let I;function y(b){m=b,t(0,m)}return i.$$set=b=>{"isAds"in b&&t(1,a=b.isAds),"canRewindLive"in b&&t(10,s=b.canRewindLive),"isRewindableLive"in b&&t(11,u=b.isRewindableLive),"isHidden"in b&&t(12,f=b.isHidden),"ref"in b&&t(0,m=b.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,I=!f&&(!n||n&&s&&u||a))},[m,a,I,o,r,l,w,g,k,v,s,u,f,n,y]}var Tu=class extends W{constructor(e){super(),j(this,e,r4,l4,U,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},e4)}},Zr=Tu;var vm=require("@vkontakte/videoplayer-shared");function s4(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{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 f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=q("svg"),a&&a.c(),t=q("path"),n=q("path"),o=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{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&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function a4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pu=class extends W{constructor(e){super(),j(this,e,a4,s4,U,{})}},gm=Pu;function u4(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function c4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Iu=class extends W{constructor(e){super(),j(this,e,c4,u4,U,{})}},bm=Iu;function f4(i){Ie(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 d4(i){let e,t,n,o;e=new gm({});function r(s,u){if(s[4]==="FULL")return _4;if(s[4]==="COUNT")return p4}let l=r(i,-1),a=l&&l(i);return{c(){D(e.$$.fragment),t=B(),a&&a.c(),n=ft()},m(s,u){V(e,s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(C(t),C(n)),R(e,s),a&&a.d(s)}}}function m4(i){let e,t,n,o,r,l;return r=new bm({}),{c(){e=T("span"),t=Ne(i[2]),n=B(),o=T("div"),D(r.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),p(e,t),S(a,n,s),S(a,o,s),V(r,o,null),l=!0},p(a,s){(!l||s&4)&&Qe(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(C(e),C(n),C(o)),R(r)}}}function p4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Ne(t),c(e,"class","text count svelte-1yhs2ga")},m(o,r){S(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Qe(n,t)},d(o){o&&C(e)}}}function _4(i){let e,t;return{c(){e=T("span"),t=Ne(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&4&&Qe(t,n[2])},d(n){n&&C(e)}}}function h4(i){let e,t,n,o,r=[m4,d4],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function g4(i){let e,t,n;function o(l){i[19](l)}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:[h4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function b4(i,e,t){var Z,x,se;let n,o,r,l,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:m=[]}=e,h=rt(),w=(x=(Z=h.callbacks)==null?void 0:Z.onEpisodeChanged)!=null?x:vm.noop,g=!!((se=h.callbacks)!=null&&se.onEpisodeClicked),k=h.ui.currentGridType$;H(i,k,A=>t(18,a=A));let v=h.ui.episodes.openedByKeyboard$;H(i,v,A=>t(17,l=A));let I=h.ui.episodes.panelOpened$;H(i,I,A=>t(3,r=A));let y=h.ui.isMobile;H(i,y,A=>t(6,s=A));let b,P=A=>{var J,Y,F;if(!!((J=h.callbacks)!=null&&J.onEpisodeClicked)){let G=gl(A);v.set(G),I.set(!0),(F=(Y=h.callbacks)==null?void 0:Y.onEpisodeClicked)==null||F.call(Y,G)}},L,M,N,te=async(A,K,J)=>{await Qn(),(A==null?void 0:A.getAttribute("aria-expanded"))==="false"&&K&&!J&&(v.set(!1),A.focus())};function _e(A){b=A,t(1,b)}return i.$$set=A=>{"position"in A&&t(13,u=A.position),"duration"in A&&t(14,f=A.duration),"timeCodes"in A&&t(0,m=A.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/f),i.$$.dirty&114689){let A=Qr(n,f,m);A&&(L==null?void 0:L.text)!==A.text&&(w(A),t(15,L=A))}i.$$.dirty&32768&&t(2,o=(L==null?void 0:L.text)||""),i.$$.dirty&262144&&(Fn(a,"xl")?t(4,M="FULL"):Fn(a,"m")&&Z1(a,"xl")?t(4,M="COUNT"):t(4,M="SHORT")),i.$$.dirty&4&&t(5,N=`${z("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&te(b,l,r)},[m,b,o,r,M,N,s,g,k,v,I,y,P,u,f,L,n,l,a,_e]}var Eu=class extends W{constructor(e){super(),j(this,e,b4,g4,U,{position:13,duration:14,timeCodes:0},f4)}},Xr=Eu;function v4(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(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"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function y4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Lu=class extends W{constructor(e){super(),j(this,e,y4,v4,U,{})}},ym=Lu;function w4(i){let e,t;return e=new ym({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function k4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:z("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[w4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function C4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Au=class extends W{constructor(e){super(),j(this,e,C4,k4,U,{ref:0,hidden:1,disabled:2,click:3})}},Jr=Au;function S4(i){let e,t,n,o,r=i[2].default,l=Ae(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]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),we(e,s)},m(u,f){S(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function T4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Mu=class extends W{constructor(e){super(),j(this,e,T4,S4,U,{})}},wm=Mu;function P4(i){Ie(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function I4(i){let e,t;return e=new wm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Vu=class extends W{constructor(e){super(),j(this,e,E4,I4,U,{isOpened:0},P4)}},km=Vu;function L4(i){let e,t;return e=new km({props:{isOpened:i[3]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function A4(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",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 vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function M4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,r=f.disabled),"graphIsOpened"in f&&t(3,l=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var Ru=class extends W{constructor(e){super(),j(this,e,M4,A4,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},xr=Ru;function V4(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function R4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Bu=class extends W{constructor(e){super(),j(this,e,R4,V4,U,{})}},$r=Bu;var Sm=require("@vkontakte/videoplayer-shared");function B4(i){Ie(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 Cm(i){let e;return{c(){e=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function D4(i){let e,t,n,o,r=i[1]&&Cm(i);return n=new $r({}),{c(){r&&r.c(),e=B(),t=T("div"),D(n.$$.fragment),c(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),S(l,e,a),S(l,t,a),V(n,t,null),o=!0},p(l,a){l[1]?r||(r=Cm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&O(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(C(e),C(t)),r&&r.d(l),R(n)}}}function q4(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:z("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:xn.KeyK,$$slots:{default:[D4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function N4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=Sm.noop}=e;function s(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,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var Du=class extends W{constructor(e){super(),j(this,e,N4,q4,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},B4)}},Xl=Du;function O4(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function F4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qu=class extends W{constructor(e){super(),j(this,e,F4,O4,U,{})}},Tm=qu;function H4(i){let e,t;return e=new Tm({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function z4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:z("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[H4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function U4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Nu=class extends W{constructor(e){super(),j(this,e,U4,z4,U,{ref:0,hidden:1,disabled:2,click:3})}},es=Nu;var Ou=require("@vkontakte/videoplayer-shared");function K4(i){Ie(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function W4(i){let e,t,n,o;return{c(){e=T("img"),c(e,"class","icon svelte-1x1zctw"),Ls(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(r,l){S(r,e,l),n||(o=pe(e,"error",i[7]),n=!0)},p(r,l){l&1&&!Ls(e.src,t=r[0])&&c(e,"src",t)},d(r){r&&C(e),n=!1,o()}}}function j4(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){S(t,e,n)},p:Se,d(t){t&&C(e)}}}function G4(i){let e;function t(r,l){return r[5]?j4:W4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ft()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&C(e),o.d(r)}}}function Q4(i){let e,t;return e=new vt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[G4]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Y4(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=Ou.noop}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,f=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===Ou.noop),i.$$.dirty&272&&t(6,o=n||s)},t(5,r=!1),[l,a,u,f,n,r,o,m,s]}var Fu=class extends W{constructor(e){super(),j(this,e,Y4,Q4,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},K4)}},ts=Fu;var Zm=require("@vkontakte/videoplayer-shared");var gn=require("@vkontakte/videoplayer-core"),ss=require("@vkontakte/videoplayer-shared"),ht=require("@vkontakte/videoplayer-shared"),ao=require("@vkontakte/videoplayer-statistics"),uL=require("@vkontakte/videoplayer-interactive");var At=require("@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 Z4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",is=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={slotRequested$:new At.Subject,started$:new At.Subject,paused$:new At.Subject,resumed$:new At.Subject,ended$:new At.Subject,skipped$:new At.Subject,clicked$:new At.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,At.addScript)(Z4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,At.assertNonNullable)(this.adsState),(0,At.assertNonNullable)(this.playerState),(0,At.assertNonNullable)(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"}),$e(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=({currentTime:e})=>{(0,At.assertNonNullable)(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),(0,At.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,At.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{(0,At.assertNonNullable)(this.adman),(0,At.assertNonNullable)(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.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),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)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:m}=e,h,w=this.playerState&&$e(this.playerState.vsid);w&&(h=parseInt(w,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:f,...u};m||delete g.preview;let k={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(k),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(v){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}(0,At.assertNonNullable)(this.actions),(0,At.assertNonNullable)(this.adsState),(0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=$e(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((0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(this.adman),(0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(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(){(0,At.assertNonNullable)(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&&(0,At.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Im=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 Hu=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:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new ns,{startTime:u,endTime:f}=s.parse(a);r.startTime=u,r.endTime=f}else if(a.trim()!==""){let s=new zu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},ns=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,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},zu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((f,m)=>{let h=l.indexOf(m,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new ns;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},Em=Hu;var os=require("@vkontakte/videoplayer-shared"),Co,Zt,Uu=0,Ku=!1,Lm=(i,e,t)=>{var u;let n=i>=Uu,o=i<Uu,r=(f,m=0,h=0)=>f<m&&f<h,l=(f,m=0,h=0)=>f>=m&&f<=h,a=(f,m=0,h=0)=>f>m&&f>h,s=(u=t.find(({lang:f})=>f===e.value))==null?void 0:u.subtitles;if(Uu=i,o&&(Ku=!1),(0,os.isNonNullable)(Co)&&l(i,Co.startTime,Co.endTime)&&Co.lang===e.value)return Co;if(!(0,os.isNonNullable)(Zt)&&(s!=null&&s.length)&&!Ku){let f=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Zt=f&&{...f,lang:e.value},Co=void 0,!(0,os.isNonNullable)(Zt)&&s[s.length-1].endTime<i&&(Ku=!0);return}else{if(l(i,Zt==null?void 0:Zt.startTime,Zt==null?void 0:Zt.endTime))return Co=Zt,Zt=void 0,Co;(n&&a(i,Zt==null?void 0:Zt.startTime,Zt==null?void 0:Zt.endTime)||o&&r(i,Zt==null?void 0:Zt.startTime,Zt==null?void 0:Zt.endTime))&&(Zt=void 0)}};var Am=require("@vkontakte/videoplayer-shared"),sL=require("@vkontakte/videoplayer-statistics"),ls=class{constructor(e,t=new Am.Subscription){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Mm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:l,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:m,uiConfig:h,coreConfig:w,player:g,disabledControls:k,isInteractive:v,interactiveRanges$:I,isInteractiveTime$:y,replayInteractive:b,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:L,additionalButtons:M,looped:N=!1,statistics:te,saveRate:_e})=>{var il,ir,Ol,Fl;let Z={...w,configName:[...(il=w.configName)!=null?il:[],"ui"],isAudioDisabled:l,live:{...(ir=w.live)!=null?ir:{},isLiveCatchUpMode:!!o}},x=h,se=ss.Tracer.createRootTracer(x.features.saveTraceInfoToFile),A=se.createComponentTracer("Store"),K=g||new gn.Player(Z,se),J=new ht.Logger,Y=new is(J,{loadTimeout:x.ads.loadTimeout,initTimeout:x.ads.initTimeout,runtimeTimeout:x.ads.runtimeTimeout}),F=Ho.getInstance(),G=u==null?void 0:u.pictureInPictureApi,X=u==null?void 0:u.annotationsApi,oe=J.createComponentLog("Store"),De,Xe,Ee={},Be=te?Tt(te.oneStat.vsid$):Kn(void 0),qe=Fe(bo()),xe=(Ol=G==null?void 0:G.info.isActive$)!=null?Ol:new ht.ValueSubject(!1),ae=G==null?void 0:G.info.type,he=Fe(0),at=Fe([]),Ce=(0,ht.merge)(K.events.fatalError$,K.events.managedError$).subscribe(E=>at.update(ee=>[...ee,E])),Ke=Kn(!1,E=>{let ee=K.events.fatalError$.subscribe(()=>E(!0));return()=>ee.unsubscribe()}),mt=async E=>{var ve;let ee=Object.values(ht.InterfaceLanguage).includes(E);if(x.downloadVKLanguages&&(ee&&x.updateBuiltinLanguages||!Ks(E))){let ot;try{ot=await(0,ht.loadVKLangPack)(E,lf,rf)}catch(gt){(ve=te==null?void 0:te.oneStat)==null||ve.logError({errorType:"VKLangPack",fatal:!1}),F==null||F.report(gt,{errorType:"VKLangPack",fatal:!1})}ot&&(Us({language:E,pack:ot,fallback:x.defaultLanguage}),Ye.set(E))}Ks(E)&&Ye.set(E)},Ye=Fe(i),Ge=Fe(e);mt(i);let Ze=(E,ee)=>{let ke=$e(Ye);return Ws(ke,E,ee,x.defaultLanguage)},et=Fe("thumb"),ce=(()=>{let E=Ri([Ke,et],([ee,ke])=>ee?"crashed":ke);return{...E,is:ee=>$e(E)===ee}})(),Pe=(()=>{let E=Fe(new Set(k));return{...E,add:ee=>{E.update(ke=>new Set([...ke].concat(ee)))},remove:ee=>{E.update(ke=>{let ve=[...ke];return new Set(Array.isArray(ee)?ve.filter(ot=>!ee.includes(ot)):ve.filter(ot=>ot!==ee))})},includes:ee=>{let ke=$e(E);return Array.isArray(ee)?ee.every(ve=>ke.has(ve)):ke.has(ee)}}})();A.log("create store"),oe({message:"create store"});let We=E=>{let ee=E.container;ee.append(K.experimental.element$.getValue()),tt=new MutationObserver(ke=>{let{removedNodes:ve}=ke[0];ve.length&&ee.append(K.experimental.element$.getValue())}),tt.observe(ee,{childList:!0})},le=E=>{oe({message:`init video, config: ${JSON.stringify(E)}`}),v?We(E):K.initVideo(E),A.log("init video",{isInteractive:v}),E.subtitles&&K.setExternalTextTracks(E.subtitles),De=E},Te=new ht.Subject,pt=E=>Te.next(E),Le=new ht.Subject,ut=new ht.Subject,me=new ht.Subject,tt=null,Ct={actionRewind$:Le,actionSeek$:ut,inPiP$:xe,inFullscreen$:new ht.Observable(E=>qe.subscribe(ee=>E.next(ee))),actionSetSubtitle$:me,nextMovie$:Te};if(te){let{oneStat:E,statSubscription:ee}=te;v||ee.add(E.attachTo(K)),ee.add(E.attachToUi(Ct)),ee.add(E.attachToAds(Y.events)),E.authorize(r).catch(ke=>{oe({message:`onestat auth error ${String(ke)}`})})}if(F){let E=new ht.Subscription,ee=(ke,ve)=>E.add(ke.subscribe(ve));if(ee(K.events.managedError$,ke=>{F.logIError(ke)}),ee(K.events.fatalError$,ke=>{F.logIError(ke,!0)}),te){let{oneStat:ke}=te;ee(ke.experimental.error$,ve=>{F.logIError(ve)})}F.sentrySubscription.add(E)}let bt=()=>{ht.clientChecker.isIOS&&Xe&&Hf(Xe)},Ue=new ht.Subscription().add(K.experimental.element$.subscribe(E=>{E&&(Xe=E,E.classList.add("player-media"),Uo(G)&&(G.updateVideoElement(),G.registryEventHandlers()),v&&E.setAttribute("pip","false"))})).add(K.events.ended$.subscribe(()=>{var E;bt(),(E=s==null?void 0:s.onEnded)==null||E.call(s)})).add(K.events.started$.subscribe(async()=>{var ee,ke;Uo(G)&&await(G==null?void 0:G.revealPictureInPicture());let E=K.info.muted$.getValue();(ee=s==null?void 0:s.onStarted)==null||ee.call(s),(ke=Ee.onStarted)==null||ke.call(Ee,E)})).add(K.events.willSeek$.subscribe(({from:E,to:ee})=>{var ke;(ke=s==null?void 0:s.onSeek)==null||ke.call(s,E,ee)})).add(K.info.position$.subscribe(E=>{var ke;let ee=K.info.duration$.getValue();isFinite(ee)&&ee>0&&((ke=s==null?void 0:s.onTimeupdate)==null||ke.call(s,ee,E),Y.setPosition(E,ee))})).add(K.events.fatalError$.subscribe(()=>{var E;(E=s==null?void 0:s.onCrashed)==null||E.call(s)})).add(K.events.loadedMetadata$.subscribe(()=>{It.state.loadedMetadata$.set(!0)})).add(K.info.is3DVideo$.subscribe(E=>{It.ui.is3DVideo.set(E)})).add(K.info.isEnded$.subscribe(E=>{v&&(E?(y!=null&&y.getValue()&&Pe.add(ur),Pe.add("PLAY_BUTTON")):Pe.remove("PLAY_BUTTON"))})).add(K.info.liveTime$.subscribe(E=>{var ee;(ee=s==null?void 0:s.onLiveTime)==null||ee.call(s,E)})).add(K.info.isStalled$.subscribe(E=>{var ee;(ee=s==null?void 0:s.onStalledChanged)==null||ee.call(s,E)})).add(Y.events.started$.subscribe(()=>{var E,ee;(ee=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onStarted)==null||ee.call(E)})).add(Y.events.ended$.subscribe(()=>{var E,ee;(ee=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onCompleted)==null||ee.call(E)})),Ot=new ht.Subscription,Vt=()=>{Ot.add(K.events.log$.subscribe(E=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${E.component}`,E.message)})).add(J.log$.subscribe(E=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${E.component}.`,E.message)}))},St=()=>{Ot.unsubscribe()},ni=(E,ee)=>{A.log("start camera manual rotation",{mx:E,my:ee}),K.startCameraManualRotation(E,ee)},ct=(E=!1)=>{A.log("stop camera manual rotation",{immediate:E}),K.stopCameraManualRotation(E)},lt=(E,ee,ke)=>{A.log("move camera focus px",{xpx:E,ypx:ee,dt:ke}),K.moveCameraFocusPX(E,ee,ke)},be=()=>{K.holdCamera()},Je=()=>{K.releaseCamera()},_t=Kn(K.info.position$.getValue(),E=>{let ee,ke,ve=()=>{let ot=K.info.playbackState$.getValue(),gt=K.info.isLive$.getValue(),Wt=K.info.duration$.getValue(),Bt=K.info.position$.getValue();if([gn.PlaybackState.PLAYING,gn.PlaybackState.PAUSED].includes(ot)){let an=gt?Bt-Wt:K.getExactTime();an!==ke&&E(an),ke=an}ee=requestAnimationFrame(ve)};return ve(),()=>cancelAnimationFrame(ee)}),Ft=Tt(xe),yt=Tt(K.info.playbackState$),Xt=Tt(K.info.currentBuffer$),mi=Tt(K.info.isEnded$),Mt=Tt(K.info.isLive$),Wi=x.features.playbackRate?Tt(K.info.canChangePlaybackSpeed$):Kn(!1),cn=Tt(K.info.liveBufferTime$),oi=Tt(K.info.volume$),Bi=Tt(K.info.muted$),fn=qs(K.info.autoQualityLimits$.pipe((0,ht.map)(({max:E})=>E!==void 0)),((Fl=K.info.autoQualityLimits$.getValue())==null?void 0:Fl.max)!==void 0),ji=Tt(K.info.autoQualityLimitingAvailable$),dn=Tt(K.info.availableQualities$),Di=Tt(K.info.availableQualitiesFps$),qi=Tt(K.info.chromecastState$),pi=Tt(K.info.chromecastDeviceName$),_i=Tt(K.info.currentFormat$),wi=Tt(K.info.throughputEstimation$),ki=Tt(K.info.videoBitrate$),Jt=Tt(K.info.intrinsicVideoSize$),zt=Tt(K.info.duration$),Gi=Tt(K.info.isAudioAvailable$),jt=null,Ci=K.info.isBuffering$,Ni=Kn(Ci.getValue(),E=>{let ee=Ci.subscribe(ke=>{ke&&jt===null?jt=window.setTimeout(()=>{E(Ci.getValue()),jt=null},x.loaderDelay):E(ke)});return()=>{ee.unsubscribe(),jt&&clearTimeout(jt)}}),Qi=()=>{jt&&clearTimeout(jt),jt=null},li=Ri([zt,Mt],([E,ee])=>ee?-E:E),wt=Ri([yt],([E])=>E===gn.PlaybackState.PLAYING),Yi=Tt(K.info.atLiveEdge$),Oi=Tt(K.info.atLiveDurationEdge$),Pt=Tt(K.info.position$),Zi=Ri([Pt,zt],([E,ee])=>isFinite(E)&&isFinite(ee)&&!!ee),Xi=Ri([qi],([E])=>E===gn.ChromecastState.CONNECTED),xt=Tt(K.info.availableVideoStreams$),Si=x.features.audioLanguages?Tt(K.info.availableAudioStreams$):Kn([]),hi=Tt(K.info.currentVideoStream$),Ti=Tt(K.info.currentAudioStream$),$t=E=>{E.language&&Hs(E.language),K.setVideoStream(E)},Gt=E=>{E.language&&Hs(E.language),K.setAudioStream(E)},ri=E=>{let ee;if(E.length===1&&(ee=E.at(0)),ee!=null||(ee=E.find(ve=>"isDefault"in ve&&ve.isDefault)),ee)return ee;let ke=Vf();return ke&&(ee=E.find(({language:ve})=>ke===ve)),ee!=null||(ee=E.at(0)),ee},Fi=!1;Ue.add(K.info.availableAudioStreams$.subscribe(E=>{if(!Fi&&E.length){let ee=ri(E);ee&&(K.setAudioStream(ee),Fi=!0)}}));let ci=!1;Ue.add(K.info.availableVideoStreams$.subscribe(E=>{if(!ci&&E.length){let ee=ri(E);ee&&(K.setVideoStream(ee),ci=!0)}}));let fi=Fe(void 0),si=Tt(K.info.isAutoQualityEnabled$,E=>E&&fi.set(void 0)),gi=Tt(K.info.currentQuality$,()=>fi.set(void 0)),Ji=Ri([fi,gi],([E,ee])=>E!=null?E:ee),vn=Ri([dn,Di,si,Ji,_i],([E,ee,ke,ve,ot])=>{let gt=[];ot!==gn.VideoFormat.MPEG&&gt.push({value:"auto",displayValue:Ze("auto_quality_option"),selected:ke});let Wt=E.filter(Bt=>!(0,ss.isInvariantQuality)(Bt));for(let Bt of Wt){let an=ee[Bt];gt.push({value:Bt,displayValue:`${Bt}${an?Im(an):""}`,selected:ke?!1:Bt===ve})}return gt}),xi=Tt(K.info.currentPlaybackRate$),di=Ri([xi,Yi,Oi],([E,ee,ke])=>{let ve=ke||v?1:x.controls.playbackRateMin,ot=ee?1:x.controls.playbackRateMax,gt=x.controls.playbackRateStep,Wt=[];for(let Bt=ve;Bt<=ot;Bt+=gt)Wt.push({value:Bt,displayValue:Bt===1?Ze("playback_rate_1"):Ze("playback_rate",{multiplier:Bt.toString(10)}),selected:E===Bt});return Wt}),ei=x.features.subtitles?Tt(K.info.availableTextTracks$):Kn([]),$i=Ri([ei],([E],ee)=>{let ke=[],ve=[];for(let ot of E)ot.url&&ke.push(fetch(ot.url));Promise.allSettled(ke).then(ot=>{for(let[gt,Wt]of ot.entries())Wt.status==="fulfilled"&&Wt.value.text().then(Bt=>{let an=new Em,Ao=E[gt].language,nl=!!E[gt].isAuto,Mo=an.parse(Bt);Ao&&Mo&&ve.push({lang:Ao,subtitles:Mo,isAuto:nl}),gt===ot.length-1&&ee(ve)})})}),Nt={displayValue:Ze("subtitles_off"),value:"off"},Ut=Fe({...Nt}),en=Ri([$i,Ut,$i],([E,ee])=>{if((E==null?void 0:E.length)>0){let ke=[{...Nt,selected:(ee==null?void 0:ee.value)===Nt.value}];for(let{lang:ve,isAuto:ot}of E)Go[ve]&&ke.push({displayValue:ot?Ze("subtitles_auto",{language:Go[ve]}):Go[ve],value:ve,selected:(ee==null?void 0:ee.value)===ve,isAuto:ot});return ke}else return[]}),Pi=Ri([_t,Ut,$i],([E,ee,ke])=>{if(ee&&ee.value!==Nt.value)return Lm(E,ee,ke)}),Hi=Ri([Pi],([E])=>E!=null&&E.texts?E.texts:[]),mn=Fe(!0),it=Ri([Xt,li,Pt,cn],([E,ee,ke,ve])=>{var Bt;let ot=(Bt=E==null?void 0:E.end)!=null?Bt:0;if(!ve)return ot/ee;let Wt=-ke+ve-ee;return(ot-Wt)/ee}),bi=Tt(K.info.availableSources$),ai=Ri([bi],([E])=>Object.keys((E==null?void 0:E[gn.VideoFormat.MPEG])||{}).length>0),je=()=>{var ke,ve,ot;let E=Object.keys(((ve=(ke=K.info.availableSources$)==null?void 0:ke.getValue())==null?void 0:ve[gn.VideoFormat.MPEG])||{}),ee=(0,ht.getHighestQuality)(E)||ht.VideoQuality.Q_144P;return(ot=De.sources[gn.VideoFormat.MPEG])==null?void 0:ot[ee]},tn=()=>{var ee;let E=je();if(E)A.log("download video",{url:E}),bf(E,((ee=De==null?void 0:De.meta)==null?void 0:ee.title)||"video");else{let ke="There is no URL for download video";A.log("download video",{message:ke}),oe({message:ke})}},yn=()=>{oe({message:"toggle muted"});let E=K.info.muted$.getValue(),ee=K.info.volume$.getValue(),ke=ee===0||E,ve=!ke;A.log("toggle muted",{muted:E,volume:ee,soundIsOff:ke,nextValue:ve}),Ii(ve)},pn=()=>{A.log("close settings menu"),It.ui.settingsMenuVisible.set(!1)},zi=E=>{A.log("open settings menu",{wasOpenedByKeyboard:E}),It.ui.settingsMenuOpenedByKeyboard.set(!!E),It.ui.settingsMenuVisible.set(!0)},nn=E=>{$e(It.ui.settingsMenuVisible)?pn():zi(E)},_n=(E,ee=E,ke=!1)=>{var gt,Wt,Bt;let ve=!ke,ot=K.info.muted$.getValue();oe({message:`set volume, volume: ${E}, preferredVolume: ${ee}, internalCall: ${ve}`}),A.log("set volume",{volume:E,preferredVolume:ee,internalCall:ve}),K.setVolume(E),Y.setVolume(E),ve&&((gt=s==null?void 0:s.onVolumeChange)==null||gt.call(s,E)),Os(ee),ot?(K.setMuted(!1),ve&&((Wt=s==null?void 0:s.onUnmute)==null||Wt.call(s)),dr(!1)):!ot&&E===0&&(K.setMuted(!0),ve&&((Bt=s==null?void 0:s.onMute)==null||Bt.call(s)),dr(!0))},Ii=(E,ee=!1)=>{var ot,gt,Wt,Bt;let ke=!ee,ve=K.info.volume$.getValue();if(oe({message:`set muted, currentVolume: ${ve}, mute: ${E}, internalCall: ${ke}`}),A.log("set muted",{mute:E,currentVolume:ve,internalCall:ke}),K.setMuted(E),Y.setVolume(E?0:ve),dr(E),ke&&(E?(ot=s==null?void 0:s.onMute)==null||ot.call(s):(gt=s==null?void 0:s.onUnmute)==null||gt.call(s)),ve===0){let an=(Wt=fr())!=null?Wt:x.volumeDefault;an===0&&(an=x.volumeMinRestore,Os(an)),K.setVolume(an),Y.setVolume(an),ke&&((Bt=s==null?void 0:s.onVolumeChange)==null||Bt.call(s,an))}},ti=Fe(!1),on=E=>{A.log("set looped",{isLooped:E}),ti.set(E),K.setLooped(E)};on(N);let Ei=()=>{K.prepare()},Rn=()=>{(0,ht.assertNonNullable)(It);let E=$e(It.ui.controls.disabledControls$),ee=$e(It.playerPhase),ke={playerPhase:ee,isInteractive:v,isVideoEnded:!1,action:"none"};if(E.has("PLAY_BUTTON"))return;if(oe({message:"toggle play"}),ee==="ads"){ke.action="play",A.log("toggle adman play",ke),Y.togglePlay();return}let ve=()=>{var gt;oe({message:"toggle play, call player.play"}),ke.action="play",K.play(),(gt=s==null?void 0:s.onPlay)==null||gt.call(s)},ot=()=>{var gt;oe({message:"toggle play, call player.pause"}),ke.action="pause",K.pause(),(gt=s==null?void 0:s.onPause)==null||gt.call(s)};if(K.info.isEnded$.getValue()){if(oe({message:"toggle play, video ended, seek to 0"}),Le.next(),ut.next(ao.SeekAction.REWIND),v){b==null||b();return}K.seekTime(0),ve()}else K.info.playbackState$.getValue()!==gn.PlaybackState.PLAYING?ve():ot();A.log("toggle play",ke)},wn=E=>{oe({message:`set quality, quality: ${E}`}),A.log("set quality",{quality:E}),K.setAutoQuality(E==="auto"),E!=="auto"?(Tf(t,E),fi.set(E),K.setQuality(E)):Fs()},hn=E=>{oe({message:`set trafficSavingEnabled, value: ${E}`}),A.log("set traffic saving enabled",{trafficSavingEnabled:E}),K.setAutoQualityLimits({max:E?x.trafficSavingLimit:void 0}),Af(E)},ln=E=>{A.log("set playback rate",{playbackRate:E}),K.setPlaybackRate(E),x.features.saveRate&&_e&&!K.info.isLive$.getValue()&&Rf(E)},kn=()=>{let E=$e(di),ee=E.findIndex(({selected:ve})=>ve);if(ee===E.length-1)return;let ke=E[ee+1];ln(ke.value)},Bn=()=>{let E=$e(di),ee=E.findIndex(({selected:ve})=>ve);if(ee===0)return;let ke=E[ee-1];ln(ke.value)},Li=E=>{A.log("set subtitles",{...E}),E&&E.value!==Nt.value&&me.next(E.isAuto?E.value+"_auto":E.value),Ut.set(E)},rn=()=>{A.log("toggle subtitles");let E=$e(en),ee=$e(Ut),ke=$e(Ye);if((ee==null?void 0:ee.value)===Nt.value){let ve=E.filter(ot=>ot.value!==Nt.value).find(ot=>ot.value===ke)||E[1];Li(ve!=null?ve:{...Nt})}else Li({...Nt,selected:!1})},Rt=(E,ee,ke=!0)=>{if(oe({message:`seek to time, time: ${E}`}),A.log("seek to time",{time:E,action:ee,forcePrecise:ke}),ut.next(ee),K.info.isLive$.getValue()){let ve=K.info.duration$.getValue(),ot=Math.min(0,ve+E);K.seekTime(ot,ke)}else{if(y!=null&&y.getValue())return;K.seekTime(_o(E),ke)}},Dn=E=>{oe({message:`seek to episode start time: ${E}`}),A.log("seek to episode start time",{time:E}),Rt(E,ao.SeekAction.EPISODE,!0)},Cn=(E,ee)=>{oe({message:`seek to percent, percent: ${E}`}),A.log("seek to percent",{percent:E,action:ee});let ke=Math.round($e(li)*E);Rt(ke,ee,!1)},Hn=E=>{oe({message:`seek external, time: ${E}`}),A.log("seek external",{time:E}),ut.next(ao.SeekAction.UNKNOWN),K.seekTime(K.info.isLive$.getValue()?-E:E)},ii=E=>{var ve,ot;let ee=(ve=E.max)!=null?ve:"none",ke=(ot=E.min)!=null?ot:"none";oe({message:`set auto quality limitation. Max: ${ee}. Min: ${ke}`}),A.log("set auto quality limits",{max:ee,min:ke}),K.setAutoQualityLimits(E)},zn=E=>{oe({message:`seek external to episode start time: ${E}`}),A.log("seek external to episode start time",{time:E}),Rt(E,ao.SeekAction.EPISODE,!0)},Un=E=>{oe({message:`set playback rate to: ${E}`}),A.log("set playback rate external",{playbackRate:E}),K.setPlaybackRate(E)},Sn=Fe(void 0),Tn=Fe(!1),qn=E=>{oe({message:`start scrubbing, progress: ${E}`}),A.log("start scrubbing",{progress:E}),Tn.set(!0),Pn(E)},Pn=E=>{Sn.set(E)},Ai,In,re=()=>{Sn.set(void 0),Tn.set(!1)},kt=()=>{clearTimeout(In),clearTimeout(Ai),Ai=window.setTimeout(()=>{re()},500),Xe==null||Xe.removeEventListener("seeked",kt)},ie=E=>{oe({message:`complete scrubbing, progress: ${E}`}),A.log("complete scrubbing",{progress:E}),Cn(E,ao.SeekAction.SLIDER),$e(It.ui.isMobile)&&$e(It.state.currentFormat$)===gn.VideoFormat.HLS?(Xe==null||Xe.addEventListener("seeked",kt),In=window.setTimeout(()=>{kt()},300)):re()},dt=Ri([_t,li,Sn],([E,ee,ke],ve)=>{ve((0,ht.isNonNullable)(ke)?ke*ee:E)}),Kt=Fe({width:0,height:0}),vi=Ri([Kt],([{width:E}],ee)=>{let ke=X1(E);ee(ke)}),Mn=Fe(!1),Ui=Ri([vi,Mn],([E,ee])=>ee?M.filter(ke=>!ke.hideOnMobile):M.filter(ke=>{var ve;return!((ve=ke.hideOnDesktopGridTypes)!=null&&ve.includes(E))})),to=Ri([Mn,Ke],([E,ee],ke)=>{ke(E&&ee)}),ne=()=>{ut.next(ao.SeekAction.LIVE),oe({message:"switch to active live"}),A.log("switch to active live"),K.seekTime(0),K.info.playbackState$.getValue()!==gn.PlaybackState.PLAYING&&It.actions.internal.togglePlay()},So=()=>{A.log("skip adman"),Y.skip()},ql=(E=!0)=>{(0,ht.assertNonNullable)(It),oe({message:`switch from ads to video, callPlay: ${E}`}),A.log("switch from ads to video",{callPlay:E}),et.set("video"),E&&K.play()},Nl=()=>{(0,ht.assertNonNullable)(It),oe({message:"switch from video to ads"}),A.log("switch from video to ads"),It.actions.internal.pause(),bt(),et.set("ads")},Xo=E=>{(0,ht.assertNonNullable)(It);let ee=E?"LiveWaitingStart":"thumb";A.log("set live waiting start",{state:E,playerPhase:ee}),et.set(ee)},To=E=>{(0,ht.assertNonNullable)(It);let ee=E?"LiveWaitingRecover":"thumb";A.log("set live waiting recover",{state:E,playerPhase:ee}),et.set(ee)},Po=E=>{(0,ht.assertNonNullable)(It);let ee=E?"LiveWaitingRecord":"thumb";A.log("set live waiting record",{state:E,playerPhase:ee}),et.set(ee)},io=()=>((0,ht.assertNonNullable)(It),A.log("get debug text data"),hf(K,De,It)),co=()=>((0,ht.assertNonNullable)(It),JSON.stringify(se.getFinishedSpans())),fo=()=>((0,ht.assertNonNullable)(It),gf(K,De,It)),Jo=()=>Xe,xo=()=>{oe({message:"toggle chromecast"}),A.log("toggle chromecast"),K.toggleChromecast()},mo=E=>{var ke;if((0,ht.assertNonNullable)(It),K.info.isEnded$.getValue())return;let ee=!E;if($e(It.playerPhase)==="ads"){oe({message:`pause ads, internalCall: ${ee}`}),A.log("pause ads",{internalCall:ee}),Y.pause();return}oe({message:`pause video, internalCall: ${ee}`}),A.log("pause video",{internalCall:ee}),ee&&((ke=s==null?void 0:s.onPause)==null||ke.call(s)),K.pause()},$o=E=>{var ke;(0,ht.assertNonNullable)(It);let ee=!E;if($e(It.playerPhase)==="ads"){oe({message:`play ads, internalCall: ${ee}`}),A.log("play ads",{internalCall:ee}),Y.play();return}oe({message:`play video, internalCall: ${ee}`}),A.log("play video",{internalCall:ee}),ee&&((ke=s==null?void 0:s.onPlay)==null||ke.call(s)),K.play()},Io=(E,ee)=>{(0,ht.assertNonNullable)(It),oe({message:`first start, show ads: ${E}, internalCall: ${!ee}`}),A.log("first start",{showAds:E,external:ee}),E?et.set("ads"):(et.set("video"),ee?K.play():It.actions.internal.togglePlay())},po=()=>(oe({message:"getting time codes"}),f),Eo=()=>{let E=po();if(!E||[0,1].includes(E.length))return;let ee=K.info.position$.getValue();return E.find(ke=>ke.time>ee)},el=E=>{let ee=E;ee||(ee=Eo());let ke=K.info.position$.getValue();A.log("seek to next episode",{currentTime:ke,...ee}),ee&&(oe({message:"seek to next episode"}),Rt(ee.time,ao.SeekAction.EPISODE,!0))},Q=()=>{let E=po();if(!E||[0,1].includes(E.length))return;let ee=K.info.position$.getValue(),ke=E.findIndex(ot=>ot.time>ee),ve=ke===-1?E.length-2:ke-2;if(!(ve<0))return E[ve]},Lt=E=>{let ee=E;ee||(ee=Q());let ke=K.info.position$.getValue();A.log("seek to prev episode",{currentTime:ke,...ee}),ee&&(oe({message:"seek to prev episode"}),Rt(ee.time,ao.SeekAction.EPISODE,!0))},En=()=>(oe({message:"getting preview thumbs data"}),A.log("get preview thumbs data",{...m}),m),sn=async()=>{let E=G==null?void 0:G.isActive(),ee="none";G!=null&&G.isActive()?(ee="remove",await(G==null?void 0:G.remove())):(ee="request",await(G==null?void 0:G.request())),A.log("toggle picture in picture",{isActive:E,action:ee})},no=(E=-90)=>{A.log("rotate video",{alphaDiff:E}),he.update(ee=>ee+E)},Ln=Fe([]);I==null||I.subscribe(E=>{let ee=[];for(let ke=0;ke<E.length;ke++){let{range:[ve,ot],subjects:gt}=E[ke];ke===0&&ve!==0&&ee.push({time:0,text:"",interactive:!1,completed:!0}),ee.push({time:ve/1e3,text:"",interactive:!0,completed:!gt.length}),ot!==1/0&&ee.push({time:ot/1e3,text:"",interactive:!1,completed:!0})}Ln.set(ee)});let Jn=Fe(!1);y==null||y.subscribe(E=>{E&&$e(Tn)&&re()});let _o=E=>{if(!v)return E;let ee=$e(Ln),ke=$e(li),ot=$e(Pt)/ke,gt=ee.find(Wt=>Wt.interactive&&!Wt.completed&&Wt.time>ot);return typeof(gt==null?void 0:gt.time)=="number"?Math.min(E,gt.time-.05):E},tl=()=>{It.ui.episodes.panelOpened$.set(!1)},Lo=()=>{A.log("destroy store"),clearTimeout(In),clearTimeout(Ai),Ue.unsubscribe(),Ot.unsubscribe(),K.destroy(),Y.destroy(),te==null||te.destroy(),F==null||F.destroy(),Ce.unsubscribe(),tt==null||tt.disconnect(),tt=null},It={interfaceLanguage$:Ye,isCyrillicRelatedInterface$:Ge,initVideo:le,videoId:t,isClip:n,playerPhase:ce,vsid:Be,state:{positionExact$:_t,positionWithScrubbing$:dt,duration$:li,playbackState$:yt,isPlaying$:wt,isLoaderVisible:Ni,bufferedProgress$:it,isLive$:Mt,canChangePlaybackSpeed$:Wi,isActiveLive$:Yi,isOldestAvailableLive$:Oi,isRewindableLive$:Zi,isEnded$:mi,muted$:Bi,volume$:oi,trafficSavingEnabled$:fn,autoQualityLimitingAvailable$:ji,availableVideoStreams$:xt,availableAudioStreams$:Si,videoStream$:hi,audioStream$:Ti,currentQuality$:Ji,isAutoQualityEnabled$:si,availableQualities$:vn,currentPlaybackRate$:xi,availablePlaybackRates$:di,currentSubtitle$:Ut,availableSubtitlesList$:en,currentSubtitleCaptions$:Hi,isAutoSubtitleCaptionVisible$:mn,chromecastState$:qi,chromecastDeviceName$:pi,chromecastConnected$:Xi,currentFormat$:_i,throughputEstimation$:wi,videoBitrate$:ki,videoSize$:Jt,errorLog$:at,crashed$:Ke,isAudioAvailable$:Gi,isAudioDisabled:!!l,canDownload:x.features.download&&!!a,availableSources$:bi,hasMpegSources$:ai,isInteractive:v,showInteractiveGraph:x.features.interactiveGraph,showSeekToInteractive:x.features.seekToInteractive,showPlayPrevChapter:x.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:x.features.interactiveTimeIndicator&&!!$e(Ln).length,interactiveEpisodes$:Ln,isInteractiveTime$:y?Tt(y):Fe(!1),graphIsOpened$:Fe(!1),isInteractiveExpectation$:Jn,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:L,looped$:ti,loadedMetadata$:Fe(!1)},ui:{controlsVisible:Fe(!1),touched:Fe(!1),controls:{prevButton:Fe(void 0),playButton:Fe(void 0),replayButton:Fe(void 0),nextButton:Fe(void 0),playPrevChapterButton:Fe(void 0),seekToInteractiveButton:Fe(void 0),interactiveGraphButton:Fe(void 0),liveButton:Fe(void 0),time:Fe(void 0),episodes:Fe(void 0),volume:Fe(void 0),subtitles:Fe(void 0),settings:Fe(void 0),context:Fe(void 0),chromecast:Fe(void 0),pip:Fe(void 0),fullscreen:Fe(void 0),vkLogo:Fe(void 0),interactiveTimeIndicator:Fe(void 0),timeline:Fe(void 0),additionalButtons:M.length?M.reduce(E=>[...E,Fe(void 0)],[]):[],disabledControls$:Pe},modals:{hotKeyMap:{show:Fe(!1),data:Fe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:qe,rotateAlpha:he,isAutoplay:Fe(!1),debugPanelVisible:Fe(!1),episodes:{panelOpened$:Fe(!1),openedByKeyboard$:Fe(!1)},contextMenu:{visible$:Fe(!1),btnRef$:Fe(void 0),openedByBtnKeyboard$:Fe(!1),openedByHotKey$:Fe(!1),lastActiveElem$:Fe(void 0),showContextMenuBtn$:Fe(!1),position$:Fe({top:0,left:0})},playerSize:Kt,isMobile:Mn,mobileNotReportControlHidden$:to,mobileUnmuteButtonExpanded:Fe(!1),mobileUnmuteButtonVisible:Fe(!1),icon3DVideoVisible:Fe(!1),settingsMenuVisible:Fe(!1),settingsMenuOpenedByKeyboard:Fe(!1),scrubbingInProgress:Tn,is3DVideo:Fe(!1),isPictureInPictureActive$:Ft,pictureInPictureType$:Kn(ae),currentGridType$:vi,additionalButtons$:Ui,interactiveHideMobileControls:Fe(!1),overlayContainer$:Fe(void 0),startedByKeyboard$:Fe(!1)},ads:{position:Fe(0),duration:Fe(0),playbackState:Fe("inactive"),canSkip:Fe(!1),secondsToWatchBeforeSkip:Fe(0),postrollPassed:Fe(!1)},webApi:{pictureInPictureApi:G,annotationsApi:X},actions:{internal:{preload:Ei,firstStart:E=>Io(E,!1),pause:()=>mo(!1),togglePlay:Rn,toggleMuted:yn,toggleSettingsMenu:nn,openSettingsMenu:zi,closeSettingsMenu:pn,setVolume:_n,setVideoStream:$t,setAudioStream:Gt,setQuality:wn,setTrafficSavingEnabled:E=>hn(E),setPlaybackRate:ln,incrementPlaybackRate:kn,decrementPlaybackRate:Bn,setSubtitle:Li,toggleSubtitle:rn,togglePictureInPicture:sn,startScrubbing:qn,progressScrubbing:Pn,completeScrubbing:ie,toggleChromecast:xo,switchToActiveLive:ne,switchFromAdsToVideo:ql,switchFromVideoToAds:Nl,skipAd:So,setLiveWaitingStart:Xo,setLiveWaitingRecover:To,setLiveWaitingRecord:Po,getDebugTextData:io,getTraceTextData:co,getDebugPanelData:fo,getVideoElement:Jo,seekTime:(E,ee,ke)=>Rt(E,ee,ke),clearDelayedBufferingCheckTimeout:Qi,seekEpisodeStartTime:Dn,seekToPercent:Cn,getNextEpisode:Eo,seekToNextEpisode:el,getPrevEpisode:Q,seekToPrevEpisode:Lt,startLogging:Vt,stopLogging:St,startCameraManualRotation:ni,stopCameraManualRotation:ct,moveCameraFocusPX:lt,holdCamera:be,releaseCamera:Je,getVideoEpisodes:po,getPreviewThumbsData:En,downloadVideo:tn,addLanguage:Us,setLanguage:mt,nextMovie:pt,videoRotate:no,correctSeekTimeToInteractive:_o,replayInteractive:b,setLooped:on},external:{firstStart:E=>Io(E,!0),play:()=>$o(!0),pause:()=>mo(!0),seekTime:E=>Hn(E),seekEpisodeStartTime:E=>zn(E),setPlaybackRate:E=>Un(E),setAutoQualityLimits:E=>ii(E),setMuted:E=>Ii(E,!0),setVolume:E=>_n(E,E,!0),returnFocusToEpisodes:tl}},callbacks:s,setUiCallbacks:E=>{Ee={...E}},getAdmanWrapper:()=>Y,getLogger:()=>J,destroy:Lo};return It};var as=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let f=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!f&&!!(f.right-f.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(f.left-l.left):0,right:m?Math.round(f.right-l.left):0,top:m?Math.round(f.top-l.top):0,bottom:m?Math.round(f.bottom-l.top):0,isDisplayed:m})}};var us=async(i,e,t)=>{await Qn(),e&&t&&(t.focus(),i.set(!1))};function J4(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function x4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Wu=class extends W{constructor(e){super(),j(this,e,x4,J4,U,{})}},Vm=Wu;function $4(i){let e,t;return e=new Vm({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function e3(i){let e,t,n;function o(l){i[8](l)}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 vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function t3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=rt(),a=l.ui.contextMenu.visible$;H(i,a,I=>t(3,n=I));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,w=I=>{let y=gl(I),b=nd(h);f.set(b),s.set(y),a.set(!n)},g=()=>{u.set(!0)},k=()=>{u.set(!1)};function v(I){h=I,t(2,h)}return i.$$set=I=>{"disabled"in I&&t(0,o=I.disabled),"ariaLabel"in I&&t(1,r=I.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,w,g,k,v]}var ju=class extends W{constructor(e){super(),j(this,e,t3,e3,U,{disabled:0,ariaLabel:1})}},Rm=ju;function i3(i){Ie(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 n3(i){let e,t;return e=new Fr({props:{completed:!0}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function o3(i){let e,t,n,o,r,l,a,s,u,f;function m(w){i[22](w)}let h={tooltipContent:z("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[n3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new qt({props:h}),ge.push(()=>ze(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),D(t.$$.fragment),o=B(),r=T("div"),l=B(),a=T("div"),c(r,"class","ref-block svelte-17imlp9"),O(r,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),O(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),O(e,"mobile",i[2]),O(e,"fullscreen",i[6]),O(e,"invisible",i[1])},m(w,g){S(w,e,g),V(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(f=[pe(e,"mousemove",st(i[21])),pe(e,"mouseleave",i[15])],u=!0)},p(w,g){let k={};g[0]&32&&(k.tooltipActive=w[5]),g[1]&1&&(k.$$scope={dirty:g,ctx:w}),!n&&g[0]&1&&(n=!0,k.ref=w[0],He(()=>n=!1)),t.$set(k),(!s||g[0]&2)&&O(r,"hidden",w[1]),(!s||g[0]&16)&&O(a,"paused",w[4]),(!s||g[0]&4)&&O(e,"mobile",w[2]),(!s||g[0]&64)&&O(e,"fullscreen",w[6]),(!s||g[0]&2)&&O(e,"invisible",w[1])},i(w){s||(d(t.$$.fragment,w),s=!0)},o(w){_(t.$$.fragment,w),s=!1},d(w){w&&C(e),R(t),i[23](null),i[24](null),u=!1,nt(f)}}}function l3(i,e,t){var G;let n,o,r,l,a,s,{ref:u=void 0}=e,f,m=rt(),h=Wn(),{interactiveControlsOpacity$:w}=h;H(i,w,X=>t(18,o=X));let g=m.ui.isMobile;H(i,g,X=>t(2,a=X));let k=m.ui.isFullscreen;H(i,k,X=>t(6,s=X));let v=m.state.isInteractiveTime$;H(i,v,X=>t(19,r=X));let I=h.showInteractiveTimeIndicatorTooltip$;H(i,I,X=>t(17,n=X));let y=m.ui.controlsVisible;H(i,y,X=>t(20,l=X));let b=(G=m.callbacks)==null?void 0:G.onInteractiveTimeIndicatorClick,P,L,M,N=()=>{t(4,M=!0)},te=()=>{_e(),f==null||f.addEventListener("animationiteration",N,{once:!0})},_e=()=>{t(4,M=!1),f==null||f.removeEventListener("animationiteration",N)},Z=X=>{I.set(X)},x,se=()=>{L||(I.set(!0),b==null||b())};Gn(()=>{I.clearTimeout(),_e()});let A=()=>{I.set(!1)};function K(X){Nn.call(this,i,X)}function J(X){u=X,t(0,u)}function Y(X){ge[X?"unshift":"push"](()=>{u=X,t(0,u)})}function F(X){ge[X?"unshift":"push"](()=>{f=X,t(3,f)})}return i.$$set=X=>{"ref"in X&&t(0,u=X.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,P=!a&&l),i.$$.dirty[0]&851968&&t(1,L=!r||!!o||P),i.$$.dirty[0]&2&&t(4,M=L),i.$$.dirty[0]&131074&&t(5,x=n&&!L),i.$$.dirty[0]&131072&&(n?te():_e())},[u,L,a,f,M,x,s,w,g,k,v,I,y,Z,se,A,P,n,o,r,l,K,J,Y,F]}var Gu=class extends W{constructor(e){super(),j(this,e,l3,o3,U,{ref:0},i3,[-1,-1])}},cs=Gu;function s3(i){Ie(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}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Bm(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function Dm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:!i[9],tooltipContent:z("tooltip_previous"),$$slots:{default:[a3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function a3(i){let e,t;return e=new Il({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qm(i){let e,t,n;function o(l){i[175](l)}let r={disabled:i[74],tooltipContent:z("tooltip_restart"),$$slots:{default:[u3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u3(i){let e,t;return e=new Xl({props:{click:i[128],disabled:i[74]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nm(i){let e,t,n;function o(l){i[177](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[c3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function c3(i){let e,t,n;function o(l){i[176](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Zl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Om(i){let e,t,n;function o(l){i[178](l)}let r={disabled:!i[8],tooltipContent:z("tooltip_next"),$$slots:{default:[f3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function f3(i){let e,t;return e=new Il({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d3(i){let e,t,n,o,r=i[121]&&m3(i),l=i[120]&&_3(i),a=i[119]&&g3(i);return{c(){r&&r.c(),e=B(),l&&l.c(),t=B(),a&&a.c(),n=ft()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(C(e),C(t),C(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function m3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[73],tooltipContent:z("tooltip_interactive_go_back"),disabledTooltipContent:z(i[124]),$$slots:{default:[p3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function p3(i){let e,t;return e=new es({props:{disabled:i[73],click:i[17]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function _3(i){let e,t,n;function o(l){i[180](l)}let r={disabled:i[76],tooltipContent:z("tooltip_interactive_seek"),disabledTooltipContent:z(i[78]),$$slots:{default:[h3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=z(l[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function h3(i){let e,t;return e=new Jr({props:{disabled:i[76],click:i[15]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function g3(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[b3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function b3(i){let e,t;return e=new xr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fm(i){let e,t,n;function o(l){i[182](l)}let r={tooltipContent:i[50],$$slots:{default:[v3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function v3(i){let e,t;return e=new Gr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hm(i){let e,t,n;function o(l){i[183](l)}let r={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Nr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function zm(i){let e,t;return e=new Xr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y3(i){let e,t,n=i[20]&&zm(i);return{c(){n&&n.c(),e=ft()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=zm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function w3(i){var n;let e,t;return e=new ts({props:{iconUrl:i[210],ariaLabel:(n=i[211])!=null?n:i[214],testId:i[212],onClick:i[213]}}),{c(){D(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[210]),r[0]&268435456&&(l.ariaLabel=(a=o[211])!=null?a:o[214]),r[0]&268435456&&(l.testId=o[212]),r[0]&268435456&&(l.onClick=o[213]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Um(i){let e,t;return e=new qt({props:{tooltipContent:i[214],width:40,$$slots:{default:[w3]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Km(i){let e,t,n;function o(l){i[186](l)}let r={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[k3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function k3(i){let e,t;return e=new Kr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function C3(i){let e,t;return e=new x1({props:{click:i[127]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wm(i){let e,t,n;function o(l){i[188](l)}let r={tooltipContent:i[52],$$slots:{default:[S3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function S3(i){let e,t;return e=new D1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jm(i){var a;let e,t,n,o;function r(s){i[189](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new qr({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(s,u){S(s,e,u),V(t,e,null),o=!0},p(s,u){var m;let f={};u[0]&1024&&(f.supportLink=s[10]),u[1]&32768&&(f.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(f.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,f.ref=s[24],He(()=>n=!1)),t.$set(f)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&C(e),R(t)}}}function Gm(i){let e,t,n;function o(l){i[191](l)}let r={tooltipContent:i[27]?void 0:z("tooltip_settings_off"),$$slots:{default:[T3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:z("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function T3(i){let e,t,n;function o(l){i[190](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Ql({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function P3(i){let e,t,n;function o(l){i[192](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function I3(i){let e,t;return e=new Rm({props:{ariaLabel:i[49]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[53],$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function E3(i){let e,t;return e=new zr({props:{click:i[13],isFullscreen:i[30]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ym(i){let e,t,n;function o(l){i[194](l)}let r={tooltipContent:i[54],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function L3(i){let e,t;return e=new Wr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function A3(i){let e,t,n;function o(l){i[197](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new cs({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function M3(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,A,K,J;function Y(le){i[173](le)}let F={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(F.ref=i[23].timeline),t=new Zr({props:F}),ge.push(()=>ze(t,"ref",Y));let G=i[38]&&Dm(i),X=i[35]&&qm(i),oe=i[36]&&Nm(i),De=i[37]&&Om(i),Xe=i[117]&&d3(i),Ee=!i[4]&&i[33]&&Fm(i),Be=i[19]&&Hm(i);function qe(le){i[184](le)}let xe={className:"w-max",disabled:!i[20],tooltipContent:z("tooltip_episodes"),$$slots:{default:[y3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(xe.ref=i[23].episodes),g=new qt({props:xe}),ge.push(()=>ze(g,"ref",qe));let ae=Et(i[28]),he=[];for(let le=0;le<ae.length;le+=1)he[le]=Um(Bm(i,ae,le));let at=le=>_(he[le],1,1,()=>{he[le]=null}),Ce=i[43]&&!i[4]&&Km(i);function Ke(le){i[187](le)}let mt={$$slots:{default:[C3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(mt.ref=i[23].volume),L=new qt({props:mt}),ge.push(()=>ze(L,"ref",Ke));let Ye=i[40]&&Wm(i),Ge=!i[83]&&!i[4]&&jm(i),Ze=i[42]&&!i[4]&&Gm(i),et=i[84].features.contextMenuButton&&P3(i),ce=i[44]&&Qm(i),Pe=i[39]&&Ym(i),We=i[122]&&A3(i);return{c(){e=T("div"),D(t.$$.fragment),o=B(),r=T("div"),l=T("div"),G&&G.c(),a=B(),X&&X.c(),s=B(),oe&&oe.c(),u=B(),De&&De.c(),f=B(),Xe&&Xe.c(),m=B(),Ee&&Ee.c(),h=B(),Be&&Be.c(),w=B(),D(g.$$.fragment),I=B(),y=T("div");for(let le=0;le<he.length;le+=1)he[le].c();b=B(),Ce&&Ce.c(),P=B(),D(L.$$.fragment),N=B(),Ye&&Ye.c(),te=B(),Ge&&Ge.c(),_e=B(),Ze&&Ze.c(),Z=B(),et&&et.c(),x=B(),ce&&ce.c(),se=B(),Pe&&Pe.c(),A=B(),We&&We.c(),K=ft(),c(l,"class","controls-left svelte-ips4nw"),Yn(()=>i[185].call(l)),c(y,"class","controls-right svelte-ips4nw"),c(r,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),O(e,"hidden",i[1]),O(e,"controls-hidden",!i[3]),O(e,"no-smooth",i[2])},m(le,Te){S(le,e,Te),V(t,e,null),p(e,o),p(e,r),p(r,l),G&&G.m(l,null),p(l,a),X&&X.m(l,null),p(l,s),oe&&oe.m(l,null),p(l,u),De&&De.m(l,null),p(l,f),Xe&&Xe.m(l,null),p(l,m),Ee&&Ee.m(l,null),p(l,h),Be&&Be.m(l,null),p(l,w),V(g,l,null),v=ol(l,i[185].bind(l)),p(r,I),p(r,y);for(let pt=0;pt<he.length;pt+=1)he[pt]&&he[pt].m(y,null);p(y,b),Ce&&Ce.m(y,null),p(y,P),V(L,y,null),p(y,N),Ye&&Ye.m(y,null),p(y,te),Ge&&Ge.m(y,null),p(y,_e),Ze&&Ze.m(y,null),p(y,Z),et&&et.m(y,null),p(y,x),ce&&ce.m(y,null),p(y,se),Pe&&Pe.m(y,null),i[195](r),i[196](e),S(le,A,Te),We&&We.m(le,Te),S(le,K,Te),J=!0},p(le,Te){let pt={};Te[1]&16384&&(pt.isHidden=!le[45]),Te[0]&16&&(pt.isAds=le[4]),Te[0]&32&&(pt.canRewindLive=le[5]),Te[1]&2&&(pt.isRewindableLive=le[32]),!n&&Te[0]&8388608&&(n=!0,pt.ref=le[23].timeline,He(()=>n=!1)),t.$set(pt),le[38]?G?(G.p(le,Te),Te[1]&128&&d(G,1)):(G=Dm(le),G.c(),d(G,1),G.m(l,a)):G&&(fe(),_(G,1,1,()=>{G=null}),de()),le[35]?X?(X.p(le,Te),Te[1]&16&&d(X,1)):(X=qm(le),X.c(),d(X,1),X.m(l,s)):X&&(fe(),_(X,1,1,()=>{X=null}),de()),le[36]?oe?(oe.p(le,Te),Te[1]&32&&d(oe,1)):(oe=Nm(le),oe.c(),d(oe,1),oe.m(l,u)):oe&&(fe(),_(oe,1,1,()=>{oe=null}),de()),le[37]?De?(De.p(le,Te),Te[1]&64&&d(De,1)):(De=Om(le),De.c(),d(De,1),De.m(l,f)):De&&(fe(),_(De,1,1,()=>{De=null}),de()),le[117]&&Xe.p(le,Te),!le[4]&&le[33]?Ee?(Ee.p(le,Te),Te[0]&16|Te[1]&4&&d(Ee,1)):(Ee=Fm(le),Ee.c(),d(Ee,1),Ee.m(l,h)):Ee&&(fe(),_(Ee,1,1,()=>{Ee=null}),de()),le[19]?Be?(Be.p(le,Te),Te[0]&524288&&d(Be,1)):(Be=Hm(le),Be.c(),d(Be,1),Be.m(l,w)):Be&&(fe(),_(Be,1,1,()=>{Be=null}),de());let Le={};if(Te[0]&1048576&&(Le.disabled=!le[20]),Te[0]&1048576|Te[2]&1310720|Te[7]&1&&(Le.$$scope={dirty:Te,ctx:le}),!k&&Te[0]&8388608&&(k=!0,Le.ref=le[23].episodes,He(()=>k=!1)),g.$set(Le),Te[0]&268435456){ae=Et(le[28]);let me;for(me=0;me<ae.length;me+=1){let tt=Bm(le,ae,me);he[me]?(he[me].p(tt,Te),d(he[me],1)):(he[me]=Um(tt),he[me].c(),d(he[me],1),he[me].m(y,b))}for(fe(),me=ae.length;me<he.length;me+=1)at(me);de()}le[43]&&!le[4]?Ce?(Ce.p(le,Te),Te[0]&16|Te[1]&4096&&d(Ce,1)):(Ce=Km(le),Ce.c(),d(Ce,1),Ce.m(y,P)):Ce&&(fe(),_(Ce,1,1,()=>{Ce=null}),de());let ut={};Te[7]&1&&(ut.$$scope={dirty:Te,ctx:le}),!M&&Te[0]&8388608&&(M=!0,ut.ref=le[23].volume,He(()=>M=!1)),L.$set(ut),le[40]?Ye?(Ye.p(le,Te),Te[1]&512&&d(Ye,1)):(Ye=Wm(le),Ye.c(),d(Ye,1),Ye.m(y,te)):Ye&&(fe(),_(Ye,1,1,()=>{Ye=null}),de()),!le[83]&&!le[4]?Ge?(Ge.p(le,Te),Te[0]&16|Te[2]&2097152&&d(Ge,1)):(Ge=jm(le),Ge.c(),d(Ge,1),Ge.m(y,_e)):Ge&&(fe(),_(Ge,1,1,()=>{Ge=null}),de()),le[42]&&!le[4]?Ze?(Ze.p(le,Te),Te[0]&16|Te[1]&2048&&d(Ze,1)):(Ze=Gm(le),Ze.c(),d(Ze,1),Ze.m(y,Z)):Ze&&(fe(),_(Ze,1,1,()=>{Ze=null}),de()),le[84].features.contextMenuButton&&et.p(le,Te),le[44]?ce?(ce.p(le,Te),Te[1]&8192&&d(ce,1)):(ce=Qm(le),ce.c(),d(ce,1),ce.m(y,se)):ce&&(fe(),_(ce,1,1,()=>{ce=null}),de()),le[39]?Pe?(Pe.p(le,Te),Te[1]&256&&d(Pe,1)):(Pe=Ym(le),Pe.c(),d(Pe,1),Pe.m(y,null)):Pe&&(fe(),_(Pe,1,1,()=>{Pe=null}),de()),(!J||Te[0]&2)&&O(e,"hidden",le[1]),(!J||Te[0]&8)&&O(e,"controls-hidden",!le[3]),(!J||Te[0]&4)&&O(e,"no-smooth",le[2]),le[122]&&We.p(le,Te)},i(le){if(!J){d(t.$$.fragment,le),d(G),d(X),d(oe),d(De),d(Xe),d(Ee),d(Be),d(g.$$.fragment,le);for(let Te=0;Te<ae.length;Te+=1)d(he[Te]);d(Ce),d(L.$$.fragment,le),d(Ye),d(Ge),d(Ze),d(et),d(ce),d(Pe),d(We),J=!0}},o(le){_(t.$$.fragment,le),_(G),_(X),_(oe),_(De),_(Xe),_(Ee),_(Be),_(g.$$.fragment,le),he=he.filter(Boolean);for(let Te=0;Te<he.length;Te+=1)_(he[Te]);_(Ce),_(L.$$.fragment,le),_(Ye),_(Ge),_(Ze),_(et),_(ce),_(Pe),_(We),J=!1},d(le){le&&(C(e),C(A),C(K)),R(t),G&&G.d(),X&&X.d(),oe&&oe.d(),De&&De.d(),Xe&&Xe.d(),Ee&&Ee.d(),Be&&Be.d(),R(g),v(),Vi(he,le),Ce&&Ce.d(),R(L),Ye&&Ye.d(),Ge&&Ge.d(),Ze&&Ze.d(),et&&et.d(),ce&&ce.d(),Pe&&Pe.d(),i[195](null),i[196](null),We&&We.d(le)}}}function V3(i,e,t){var Oc,Fc;let n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,A,K,J,Y,F,G,X=Se,oe=()=>(X(),X=Qt(_e,$=>t(144,G=$)),_e),De,Xe=Se,Ee=()=>(Xe(),Xe=Qt(te,$=>t(145,De=$)),te),Be,qe=Se,xe=()=>(qe(),qe=Qt(N,$=>t(146,Be=$)),N),ae,he=Se,at=()=>(he(),he=Qt(M,$=>t(147,ae=$)),M),Ce,Ke=Se,mt=()=>(Ke(),Ke=Qt(L,$=>t(148,Ce=$)),L),Ye,Ge=Se,Ze=()=>(Ge(),Ge=Qt(P,$=>t(149,Ye=$)),P),et,ce=Se,Pe=()=>(ce(),ce=Qt(b,$=>t(150,et=$)),b),We,le=Se,Te=()=>(le(),le=Qt(y,$=>t(151,We=$)),y),pt,Le=Se,ut=()=>(Le(),Le=Qt(I,$=>t(152,pt=$)),I),me,tt=Se,Ct=()=>(tt(),tt=Qt(v,$=>t(153,me=$)),v),bt,Ue=Se,Ot=()=>(Ue(),Ue=Qt(k,$=>t(154,bt=$)),k),Vt,St=Se,ni=()=>(St(),St=Qt(g,$=>t(155,Vt=$)),g),ct,lt=Se,be=()=>(lt(),lt=Qt(w,$=>t(156,ct=$)),w),Je,_t=Se,Ft=()=>(_t(),_t=Qt(h,$=>t(157,Je=$)),h),yt,Xt=Se,mi=()=>(Xt(),Xt=Qt(m,$=>t(158,yt=$)),m),Mt,Wi=Se,cn=()=>(Wi(),Wi=Qt(f,$=>t(159,Mt=$)),f),oi,Bi=Se,fn=()=>(Bi(),Bi=Qt(u,$=>t(160,oi=$)),u),ji,dn,Di,qi,pi,_i,wi,ki,Jt,zt,Gi,jt,Ci,Ni,Qi,li,wt,Yi,Oi,Pt,Zi,Xi,xt;i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>qe()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Ge()),i.$$.on_destroy.push(()=>ce()),i.$$.on_destroy.push(()=>le()),i.$$.on_destroy.push(()=>Le()),i.$$.on_destroy.push(()=>tt()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>St()),i.$$.on_destroy.push(()=>lt()),i.$$.on_destroy.push(()=>_t()),i.$$.on_destroy.push(()=>Xt()),i.$$.on_destroy.push(()=>Wi()),i.$$.on_destroy.push(()=>Bi());let{bottomHidden:Si}=e,{bottomNoSmooth:hi}=e,{showControls:Ti}=e,{controlsElementRef:$t=void 0}=e,{isAds:Gt=!1}=e,{canRewindLive:ri}=e,{logoClickable:Fi}=e,{logoHidden:ci}=e,{logoTargetUrl:fi=""}=e,{showNextPrevButtons:si}=e,{nextButtonActive:gi}=e,{prevButtonActive:Ji}=e,{isOneVideoPlaylist:vn=!1}=e,{supportLink:xi}=e,{customFullscreenSupported:di=!0}=e,{playNextVideo:ei}=e,{playPrevVideo:$i}=e,{repeatPlaylist:Nt}=e,{toggleFullscreen:Ut}=e,{returnFocus:en}=e,{seekToInteractive:Pi}=e,{toggleGraph:Hi}=e,{playPrevChapter:mn}=e,it=rt(),bi=Wn(),ai=Ht(),je=it.actions.internal.toggleMuted,tn=it.actions.internal.togglePlay,yn=it.actions.internal.pause,pn=it.actions.internal.toggleSubtitle,zi=(Oc=it.callbacks)==null?void 0:Oc.onAudioDoesNotExistHint,nn=(Fc=it.callbacks)==null?void 0:Fc.onAudioDisabledHint,_n=it.state.duration$;H(i,_n,$=>t(82,Xi=$));let Ii=it.state.positionWithScrubbing$;H(i,Ii,$=>t(80,Pt=$));let ti=it.state.playbackState$;H(i,ti,$=>t(161,Di=$));let on=it.state.chromecastConnected$;H(i,on,$=>t(83,xt=$));let Ei=it.state.isAudioAvailable$;H(i,Ei,$=>t(198,Z=$));let Rn=it.state.isAudioDisabled,wn=it.state.isEnded$;H(i,wn,$=>t(169,Ni=$));let hn=it.state.isLive$;H(i,hn,$=>t(33,ki=$));let ln=it.state.isActiveLive$;H(i,ln,$=>t(163,_i=$));let kn=it.state.isRewindableLive$;H(i,kn,$=>t(32,wi=$));let Bn=it.ui.isPictureInPictureActive$;H(i,Bn,$=>t(165,zt=$));let Li=it.ui.pictureInPictureType$;H(i,Li,$=>t(164,Jt=$));let rn=it.ui.settingsMenuVisible;H(i,rn,$=>t(27,A=$));let Rt=it.ui.settingsMenuOpenedByKeyboard;H(i,Rt,$=>t(140,se=$));let Dn=it.ui.controls,Cn=it.actions.internal.getVideoEpisodes(),Hn=it.state.chromecastState$;H(i,Hn,$=>t(29,ji=$));let ii=it.state.availableSubtitlesList$;H(i,ii,$=>t(168,Ci=$));let zn=it.state.currentSubtitle$;H(i,zn,$=>t(170,Qi=$));let Un=Dn.disabledControls$;H(i,Un,$=>t(172,wt=$));let Sn=it.ui.contextMenu.visible$;H(i,Sn,$=>t(162,qi=$));let Tn=it.ui.contextMenu.showContextMenuBtn$;H(i,Tn,$=>t(166,Gi=$));let qn=it.ui.contextMenu.openedByBtnKeyboard$;H(i,qn,$=>t(167,jt=$));let Pn=it.ui.startedByKeyboard$;H(i,Pn,$=>t(139,x=$));let Ai=it.ads.duration;H(i,Ai,$=>t(81,Zi=$));let In=it.ads.position;H(i,In,$=>t(79,Oi=$));let re=it.ads.playbackState;H(i,re,$=>t(171,li=$));let kt=it.ui.isFullscreen;H(i,kt,$=>t(30,dn=$));let ie=it.ui.playerSize;H(i,ie,$=>t(142,J=$));let dt=it.ui.currentGridType$;H(i,dt,$=>t(143,Y=$));let Kt=it.ui.additionalButtons$;H(i,Kt,$=>t(28,F=$));let vi=it.actions.internal.getVideoElement,Mn=it.actions.internal.replayInteractive,Ui=it.state.isInteractive,to=it.state.isInteractiveTime$;H(i,to,$=>t(141,K=$));let ne=it.state.showInteractiveGraph,So=it.state.showSeekToInteractive,ql=it.state.showPlayPrevChapter,Nl=it.state.showInteractiveTimeIndicator,Xo=it.state.graphIsOpened$;H(i,Xo,$=>t(31,pi=$));let To=it.state.playPrevChapterDisabledTooltip,Po=bi.seekToInteractiveDisabledTooltip$;H(i,Po,$=>t(78,Yi=$));let io=()=>it.actions.internal.toggleChromecast(),co,fo,Jo,xo,mo,$o,Io,po,Eo,el,Q,Lt,En,sn,no,Ln,Jn,_o,tl,Lo,It,il="",ir=($,Is)=>{if(!$){t(50,il=z("tooltip_live"));return}Is===Zo.PlaybackState.PAUSED&&t(50,il=z("tooltip_play"))},Ol,Fl,E,ee,ke,ve={},ot,gt,Wt,Bt,an=(0,Zm.debounceFn)(as,260),Ao,nl,Mo;function __(){yo({isAudioDisabled:Rn,audioDisabledHintCallback:nn,isAudioAvailable:Z,audioIsNotExistHintCallback:zi})&&je()}let h_=Ui?Mn:vn?tn:Nt;function g_($){i.$$.not_equal(ve.timeline,$)&&(ve.timeline=$,t(23,ve))}function b_($){i.$$.not_equal(ve.prevButton,$)&&(ve.prevButton=$,t(23,ve))}function v_($){i.$$.not_equal(ve.replayButton,$)&&(ve.replayButton=$,t(23,ve))}function y_($){Mo=$,t(26,Mo)}function w_($){i.$$.not_equal(ve.playButton,$)&&(ve.playButton=$,t(23,ve))}function k_($){i.$$.not_equal(ve.nextButton,$)&&(ve.nextButton=$,t(23,ve))}function C_($){i.$$.not_equal(ve.playPrevChapterButton,$)&&(ve.playPrevChapterButton=$,t(23,ve))}function S_($){i.$$.not_equal(ve.seekToInteractiveButton,$)&&(ve.seekToInteractiveButton=$,t(23,ve))}function T_($){i.$$.not_equal(ve.interactiveGraphButton,$)&&(ve.interactiveGraphButton=$,t(23,ve))}function P_($){i.$$.not_equal(ve.liveButton,$)&&(ve.liveButton=$,t(23,ve))}function I_($){i.$$.not_equal(ve.time,$)&&(ve.time=$,t(23,ve))}function E_($){i.$$.not_equal(ve.episodes,$)&&(ve.episodes=$,t(23,ve))}function L_(){ke=this.clientWidth,t(22,ke)}function A_($){i.$$.not_equal(ve.vkLogo,$)&&(ve.vkLogo=$,t(23,ve))}function M_($){i.$$.not_equal(ve.volume,$)&&(ve.volume=$,t(23,ve))}function V_($){i.$$.not_equal(ve.subtitles,$)&&(ve.subtitles=$,t(23,ve))}function R_($){Ao=$,t(24,Ao)}function B_($){nl=$,t(25,nl)}function D_($){i.$$.not_equal(ve.settings,$)&&(ve.settings=$,t(23,ve))}function q_($){i.$$.not_equal(ve.context,$)&&(ve.context=$,t(23,ve))}function N_($){i.$$.not_equal(ve.fullscreen,$)&&(ve.fullscreen=$,t(23,ve))}function O_($){i.$$.not_equal(ve.chromecast,$)&&(ve.chromecast=$,t(23,ve))}function F_($){ge[$?"unshift":"push"](()=>{Jn=$,t(46,Jn)})}function H_($){ge[$?"unshift":"push"](()=>{$t=$,t(0,$t)})}function z_($){i.$$.not_equal(ve.interactiveTimeIndicator,$)&&(ve.interactiveTimeIndicator=$,t(23,ve))}return i.$$set=$=>{"bottomHidden"in $&&t(1,Si=$.bottomHidden),"bottomNoSmooth"in $&&t(2,hi=$.bottomNoSmooth),"showControls"in $&&t(3,Ti=$.showControls),"controlsElementRef"in $&&t(0,$t=$.controlsElementRef),"isAds"in $&&t(4,Gt=$.isAds),"canRewindLive"in $&&t(5,ri=$.canRewindLive),"logoClickable"in $&&t(6,Fi=$.logoClickable),"logoHidden"in $&&t(129,ci=$.logoHidden),"logoTargetUrl"in $&&t(7,fi=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,si=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,gi=$.nextButtonActive),"prevButtonActive"in $&&t(9,Ji=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,vn=$.isOneVideoPlaylist),"supportLink"in $&&t(10,xi=$.supportLink),"customFullscreenSupported"in $&&t(132,di=$.customFullscreenSupported),"playNextVideo"in $&&t(11,ei=$.playNextVideo),"playPrevVideo"in $&&t(12,$i=$.playPrevVideo),"repeatPlaylist"in $&&t(133,Nt=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,Ut=$.toggleFullscreen),"returnFocus"in $&&t(14,en=$.returnFocus),"seekToInteractive"in $&&t(15,Pi=$.seekToInteractive),"toggleGraph"in $&&t(16,Hi=$.toggleGraph),"playPrevChapter"in $&&t(17,mn=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=wt.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=wt.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,r=wt.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,l=wt.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=wt.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=wt.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,co=Gt?li==="playing":Di===Zo.PlaybackState.PLAYING),i.$$.dirty[5]&32768&&t(18,fo=Qi.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,Jo=Ni&&!Gt||Ui),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,xo=!Ni||Ui||Gt),i.$$.dirty[4]&524288&&t(134,mo=Fn(Y,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,$o=si&&Fn(Y,"m")&&!Gt&&gi),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,Io=si&&Fn(Y,"m")&&!Gt&&Ji),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,po=ji!==Zo.ChromecastState.NOT_AVAILABLE&&!(zt&&Jt===1)&&Fn(Y,"m")&&!Ui),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,Eo=Ci.length>0&&Fn(Y,"m")),i.$$.dirty[5]&6144&&t(41,el=jt||Gi),i.$$.dirty[4]&524288&&t(42,Q=Fn(Y,"s")),i.$$.dirty[4]&32&&t(43,Lt=!ci),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,En=ai.features.fullscreen&&(ci||Fn(Y,"s"))&&!(zt&&Jt===1)&&(Ui?di:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,sn=(!ki||Gt)&&!(ai.features.interactiveHideTime&&Ui)),i.$$.dirty[4]&262144&&t(45,no=J.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,Ln=!Gt&&!ki&&!!(Cn!=null&&Cn.length)&&mo&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,_o=!wi||_i),i.$$.dirty[5]&64&&t(47,tl=Di===Zo.PlaybackState.PLAYING?z("tooltip_pause"):z("tooltip_play")),i.$$.dirty[1]&1&&t(48,Lo=pi?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,It=qi?z("aria_label_context_menu_close"):z("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&ir(_o,Di),i.$$.dirty[0]&262144&&t(52,Fl=fo?z("tooltip_subtitles_on"):z("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,E=dn?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,ee=ji===Zo.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,ot={prevButton:oi?oi.right-oi.left:0,replayButton:Mt?Mt.right-Mt.left:0,playButton:yt?yt.right-yt.left:0,nextButton:Je?Je.right-Je.left:0,playPrevChapterButton:ct?ct.right-ct.left:0,seekToInteractiveButton:Vt?Vt.right-Vt.left:0,interactiveGraphButton:bt?bt.right-bt.left:0,liveButton:me?me.right-me.left:0,time:pt?pt.right-pt.left:0,episodes:We?We.right-We.left:0,vkLogo:et?et.right-et.left:0,volume:Ye?Ye.right-Ye.left:0,subtitles:Ce?Ce.right-Ce.left:0,settings:ae?ae.right-ae.left:0,context:Be?Be.right-Be.left:0,fullscreen:De?De.right-De.left:0,chromecast:G?G.right-G.left:0,additionalButtons:F.length?F.reduce($=>[...$,40],[]):[]}),i.$$.dirty[4]&6144&&(!gt||gt<ot.time)&&t(136,gt=ot.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let $=0;Ln&&(Fn(Y,"xl")?$=ot.time:$=60);let Is=ot.prevButton+ot.playButton+ot.nextButton+ot.seekToInteractiveButton+ot.interactiveGraphButton+ot.liveButton+gt+$;t(137,Wt=sn&&ke>=Is)}i.$$.dirty[4]&532480&&t(55,Bt=Wt&&Fn(Y,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&an(vi(),Dn,ve,Ti),i.$$.dirty[0]&167772160&&bl(nl,A,Rt),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&jo(Ao,A,se),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&us(Pn,x,Mo)},t(51,Ol=ai.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo")),fn(t(72,{prevButton:u,replayButton:f,playButton:m,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:g,interactiveGraphButton:k,liveButton:v,time:I,episodes:y,vkLogo:b,volume:P,subtitles:L,settings:M,context:N,fullscreen:te,chromecast:_e}=Dn,u,cn(t(71,f)),mi(t(70,m)),Ft(t(69,h)),be(t(68,w)),ni(t(67,g)),Ot(t(66,k)),Ct(t(65,v)),ut(t(64,I)),Te(t(63,y)),Pe(t(62,b)),Ze(t(61,P)),mt(t(60,L)),at(t(59,M)),xe(t(58,N)),Ee(t(57,te)),oe(t(56,_e)))),[$t,Si,hi,Ti,Gt,ri,Fi,fi,gi,Ji,xi,ei,$i,Ut,en,Pi,Hi,mn,fo,sn,Ln,_o,ke,ve,Ao,nl,Mo,A,F,ji,dn,pi,wi,ki,co,Jo,xo,$o,Io,po,Eo,el,Q,Lt,En,no,Jn,tl,Lo,It,il,Ol,Fl,E,ee,Bt,_e,te,N,M,L,P,b,y,I,v,k,g,w,h,m,f,u,s,a,l,r,o,Yi,Oi,Pt,Zi,Xi,xt,ai,tn,yn,pn,_n,Ii,ti,on,Ei,wn,hn,ln,kn,Bn,Li,rn,Rt,Cn,Hn,ii,zn,Un,Sn,Tn,qn,Pn,Ai,In,re,kt,ie,dt,Kt,Ui,to,ne,So,ql,Nl,Xo,To,Po,io,__,h_,ci,si,vn,di,Nt,mo,ot,gt,Wt,n,x,se,K,J,Y,G,De,Be,ae,Ce,Ye,et,We,pt,me,bt,Vt,ct,Je,yt,Mt,oi,Di,qi,_i,Jt,zt,Gi,jt,Ci,Ni,Qi,li,wt,g_,b_,v_,y_,w_,k_,C_,S_,T_,P_,I_,E_,L_,A_,M_,V_,R_,B_,D_,q_,N_,O_,F_,H_,z_]}var Qu=class extends W{constructor(e){super(),j(this,e,V3,M3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},s3,[-1,-1,-1,-1,-1,-1,-1,-1])}},Xm=Qu;var Ll=require("@vkontakte/videoplayer-core");function R3(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{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 f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=q("svg"),a&&a.c(),t=q("g"),n=q("path"),o=q("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function B3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Zu=class extends W{constructor(e){super(),j(this,e,B3,R3,U,{})}},Jm=Zu;var $m=require("@vkontakte/videoplayer-shared");function D3(i){Ie(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 xm(i){let e;return{c(){e=T("span"),e.textContent=`${z("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function q3(i){let e,t,n,o;var r=i[4];function l(s,u){return{}}r&&(t=Vn(r,l(i)));let a=i[1]&&xm(i);return{c(){e=T("div"),t&&D(t.$$.fragment),n=B(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),O(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&V(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){fe();let f=t;_(f.$$.fragment,1,0,()=>{R(f,1)}),de()}r?(t=Vn(r,l(s,u)),D(t.$$.fragment),d(t.$$.fragment,1),V(t,e,n)):t=null}s[1]?a||(a=xm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&O(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&C(e),t&&R(t),a&&a.d()}}}function N3(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[q3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function O3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=$m.noop}=e,{ref:l=void 0}=e,a,s;function u(f){l=f,t(0,l)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,r=f.click),"ref"in f&&t(0,l=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?z("tooltip_volume"):z("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?Yo:Jm)},[l,o,r,a,s,n,u]}var Xu=class extends W{constructor(e){super(),j(this,e,O3,N3,U,{muted:5,expanded:1,click:2,ref:0},D3)}},Ju=Xu;function F3(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=q("svg"),a&&a.c(),t=q("path"),n=q("path"),o=q("path"),c(t,"fill","currentColor"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(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"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(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"),c(o,"class","hidden-active"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function H3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xu=class extends W{constructor(e){super(),j(this,e,H3,F3,U,{})}},e0=xu;function z3(i){Ie(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function U3(i){let e,t;return e=new e0({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function K3(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 $u=class extends W{constructor(e){super(),j(this,e,K3,U3,U,{isActive:0},z3)}},t0=$u;var i0=require("@vkontakte/videoplayer-shared");function W3(i){let e,t;return e=new t0({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function j3(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:z("menu_pip"),click:i[2],$$slots:{default:[W3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new vt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function G3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=i0.noop}=e;function l(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,l]}var ec=class extends W{constructor(e){super(),j(this,e,G3,j3,U,{ref:0,isPictureInPictureActive:1,click:2})}},n0=ec;var P0=require("@vkontakte/videoplayer-shared");function Q3(i){Ie(i,"svelte-17qsgob",".wrapper-bottom.svelte-17qsgob.svelte-17qsgob{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-17qsgob>.svelte-17qsgob{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-17qsgob.svelte-17qsgob{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{left:12px}.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob{left:64px}.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{right:12px}.controls.svelte-17qsgob.svelte-17qsgob{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-17qsgob > *:not(:first-child){margin-left:8px}.hidden.svelte-17qsgob.svelte-17qsgob{visibility:hidden;opacity:0}.controls-hidden.svelte-17qsgob.svelte-17qsgob{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-17qsgob.svelte-17qsgob{transition:none}.settings-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;z-index:var(--mobile-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%}.overlay-mobile.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{top:16px}.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-17qsgob.svelte-17qsgob{left:44px}.wrapper-middle-left-second.fullscreen.svelte-17qsgob.svelte-17qsgob{left:96px}.wrapper-middle-right.fullscreen.svelte-17qsgob.svelte-17qsgob{right:44px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function o0(i,e,t){let n=i.slice();return n[170]=e[t].iconUrl,n[171]=e[t].ariaLabel,n[172]=e[t].testId,n[173]=e[t].onClick,n[174]=e[t].tooltip,n}function l0(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y=(!i[51]||i[53])&&r0(i),b=Et(i[56]),P=[];for(let J=0;J<b.length;J+=1)P[J]=s0(o0(i,b,J));let L=J=>_(P[J],1,1,()=>{P[J]=null}),M=i[36]&&a0(i),N=i[37]&&u0(i),te=i[57]&&c0(i),_e=i[39]&&f0(i),Z=i[8]&&d0(i),x=i[34]&&m0(i),se=i[33]&&p0(i),A=i[8]&&_0(i),K=i[96]&&!i[29]&&h0(i);return{c(){e=T("div"),t=B(),n=T("div"),y&&y.c(),o=B(),r=T("div");for(let J=0;J<P.length;J+=1)P[J].c();l=B(),M&&M.c(),a=B(),N&&N.c(),s=B(),te&&te.c(),u=B(),_e&&_e.c(),f=B(),m=T("div"),Z&&Z.c(),h=B(),x&&x.c(),w=B(),se&&se.c(),g=B(),A&&A.c(),k=B(),K&&K.c(),v=ft(),c(e,"class","overlay-mobile svelte-17qsgob"),O(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-17qsgob"),O(n,"hidden",!i[3]),O(n,"fullscreen",i[52]),c(r,"class","wrapper-top-right svelte-17qsgob"),O(r,"hidden",!i[3]&&!i[27]),O(r,"fullscreen",i[52]),c(m,"class","wrapper-middle svelte-17qsgob"),O(m,"hidden",!i[3]||i[29])},m(J,Y){S(J,e,Y),S(J,t,Y),S(J,n,Y),y&&y.m(n,null),S(J,o,Y),S(J,r,Y);for(let F=0;F<P.length;F+=1)P[F]&&P[F].m(r,null);p(r,l),M&&M.m(r,null),p(r,a),N&&N.m(r,null),p(r,s),te&&te.m(r,null),p(r,u),_e&&_e.m(r,null),S(J,f,Y),S(J,m,Y),Z&&Z.m(m,null),p(m,h),x&&x.m(m,null),p(m,w),se&&se.m(m,null),p(m,g),A&&A.m(m,null),S(J,k,Y),K&&K.m(J,Y),S(J,v,Y),I=!0},p(J,Y){if((!I||Y[1]&2048)&&O(e,"hidden",!J[42]),!J[51]||J[53]?y?(y.p(J,Y),Y[1]&5242880&&d(y,1)):(y=r0(J),y.c(),d(y,1),y.m(n,null)):y&&(fe(),_(y,1,1,()=>{y=null}),de()),(!I||Y[0]&8)&&O(n,"hidden",!J[3]),(!I||Y[1]&2097152)&&O(n,"fullscreen",J[52]),Y[1]&33554432){b=Et(J[56]);let F;for(F=0;F<b.length;F+=1){let G=o0(J,b,F);P[F]?(P[F].p(G,Y),d(P[F],1)):(P[F]=s0(G),P[F].c(),d(P[F],1),P[F].m(r,l))}for(fe(),F=b.length;F<P.length;F+=1)L(F);de()}J[36]?M?(M.p(J,Y),Y[1]&32&&d(M,1)):(M=a0(J),M.c(),d(M,1),M.m(r,a)):M&&(fe(),_(M,1,1,()=>{M=null}),de()),J[37]?N?(N.p(J,Y),Y[1]&64&&d(N,1)):(N=u0(J),N.c(),d(N,1),N.m(r,s)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),J[57]?te?(te.p(J,Y),Y[1]&67108864&&d(te,1)):(te=c0(J),te.c(),d(te,1),te.m(r,u)):te&&(fe(),_(te,1,1,()=>{te=null}),de()),J[39]?_e?(_e.p(J,Y),Y[1]&256&&d(_e,1)):(_e=f0(J),_e.c(),d(_e,1),_e.m(r,null)):_e&&(fe(),_(_e,1,1,()=>{_e=null}),de()),(!I||Y[0]&134217736)&&O(r,"hidden",!J[3]&&!J[27]),(!I||Y[1]&2097152)&&O(r,"fullscreen",J[52]),J[8]?Z?(Z.p(J,Y),Y[0]&256&&d(Z,1)):(Z=d0(J),Z.c(),d(Z,1),Z.m(m,h)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),de()),J[34]?x?(x.p(J,Y),Y[1]&8&&d(x,1)):(x=m0(J),x.c(),d(x,1),x.m(m,w)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),J[33]?se?(se.p(J,Y),Y[1]&4&&d(se,1)):(se=p0(J),se.c(),d(se,1),se.m(m,g)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),J[8]?A?(A.p(J,Y),Y[0]&256&&d(A,1)):(A=_0(J),A.c(),d(A,1),A.m(m,null)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),(!I||Y[0]&536870920)&&O(m,"hidden",!J[3]||J[29]),J[96]&&!J[29]?K?(K.p(J,Y),Y[0]&536870912&&d(K,1)):(K=h0(J),K.c(),d(K,1),K.m(v.parentNode,v)):K&&(fe(),_(K,1,1,()=>{K=null}),de())},i(J){if(!I){d(y);for(let Y=0;Y<b.length;Y+=1)d(P[Y]);d(M),d(N),d(te),d(_e),d(Z),d(x),d(se),d(A),d(K),I=!0}},o(J){_(y),P=P.filter(Boolean);for(let Y=0;Y<P.length;Y+=1)_(P[Y]);_(M),_(N),_(te),_(_e),_(Z),_(x),_(se),_(A),_(K),I=!1},d(J){J&&(C(e),C(t),C(n),C(o),C(r),C(f),C(m),C(k),C(v)),y&&y.d(),Vi(P,J),M&&M.d(),N&&N.d(),te&&te.d(),_e&&_e.d(),Z&&Z.d(),x&&x.d(),se&&se.d(),A&&A.d(),K&&K.d(J)}}}function r0(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new Ju({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s0(i){var n;let e,t;return e=new ts({props:{iconUrl:i[170],ariaLabel:(n=i[171])!=null?n:i[174],testId:i[172],onClick:i[173]}}),{c(){D(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[170]),r[1]&33554432&&(l.ariaLabel=(a=o[171])!=null?a:o[174]),r[1]&33554432&&(l.testId=o[172]),r[1]&33554432&&(l.onClick=o[173]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function a0(i){let e,t,n;function o(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new Wr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u0(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new n0({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function c0(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ql({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function f0(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Kr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function d0(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new Il({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function m0(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Zl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function p0(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Xl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function _0(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new Il({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function h0(i){let e,t,n,o,r=i[100]&&Y3(i),l=i[98]&&Z3(i),a=i[99]&&X3(i);return{c(){r&&r.c(),e=B(),l&&l.c(),t=B(),a&&a.c(),n=ft()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(C(e),C(t),C(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function Y3(i){let e,t,n,o,r,l;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new es({props:s}),ge.push(()=>ze(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-17qsgob"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3])},m(u,f){S(u,e,f),V(t,e,null),o=!0,r||(l=pe(e,"click",i[108]),r=!0)},p(u,f){let m={};f[0]&8&&(m.hidden=!u[3]),f[1]&65536&&(m.disabled=u[47]),f[0]&262144&&(m.click=u[18]),!n&&f[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,He(()=>n=!1)),t.$set(m),(!o||f[1]&2097152)&&O(e,"fullscreen",u[52]),(!o||f[0]&8)&&O(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&C(e),R(t),r=!1,l()}}}function Z3(i){let e,t,n,o,r;function l(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new xr({props:a}),ge.push(()=>ze(t,"ref",l)),{c(){e=T("div"),D(t.$$.fragment),c(e,"class",o=Wc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-17qsgob"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),V(t,e,null),r=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,He(()=>n=!1)),t.$set(f),(!r||u[1]&2097152)&&O(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&O(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&C(e),R(t)}}}function X3(i){let e,t,n,o,r,l;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new Jr({props:s}),ge.push(()=>ze(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-17qsgob"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3])},m(u,f){S(u,e,f),V(t,e,null),o=!0,r||(l=pe(e,"click",i[109]),r=!0)},p(u,f){let m={};f[0]&8&&(m.hidden=!u[3]),f[1]&32768&&(m.disabled=u[46]),f[0]&65536&&(m.click=u[16]),!n&&f[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,He(()=>n=!1)),t.$set(m),(!o||f[1]&2097152)&&O(e,"fullscreen",u[52]),(!o||f[0]&8)&&O(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&C(e),R(t),r=!1,l()}}}function g0(i){let e,t,n,o,r,l=i[53]&&b0(i),a=i[32]&&v0(i);return o=new Yr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=B(),a&&a.c(),t=B(),n=T("div"),D(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-17qsgob"),O(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,t,u),S(s,n,u),V(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=b0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(fe(),_(l,1,1,()=>{l=null}),de()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=v0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(fe(),_(a,1,1,()=>{a=null}),de());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!r||u[1]&2097152)&&O(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(C(e),C(t),C(n)),l&&l.d(s),a&&a.d(s),R(o)}}}function b0(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new Ju({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","wrapper-top-right svelte-17qsgob"),O(e,"fullscreen",i[52])},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,He(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&O(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),R(t)}}}function v0(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Zl({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","wrapper-middle svelte-17qsgob")},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,He(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),R(t)}}}function J3(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[x3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function x3(i){let e,t;return e=new Xl({props:{disabled:i[48],click:i[95]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[$3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function $3(i){let e,t;return e=new Gr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function w0(i){let e,t,n;function o(l){i[146](l)}let r={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Nr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function k0(i){let e,t,n,o;return n=new Xr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=B(),D(n.$$.fragment),c(e,"aria-hidden","true")},m(r,l){S(r,e,l),S(r,t,l),V(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(C(e),C(t)),R(n,r)}}}function e5(i){let e,t,n=i[43]&&k0(i);return{c(){n&&n.c(),e=ft()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=k0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function C0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[t5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function t5(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ql({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function S0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[i5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new qt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i5(i){let e,t;return e=new zr({props:{click:i[14],isFullscreen:i[52]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function T0(i){let e,t,n,o;function r(a){i[154](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new qr({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","settings-mobile svelte-17qsgob")},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],He(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),R(t)}}}function n5(i){let e,t,n;function o(l){i[155](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new cs({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function o5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P=!i[4]&&l0(i),L=i[4]&&i[30]!=="inactive"&&g0(i),M=i[96]&&J3(i),N=!i[4]&&i[25]&&y0(i),te=i[41]&&w0(i);function _e(F){i[147](F)}let Z={className:"w-max",disabled:!i[43],$$slots:{default:[e5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(Z.ref=i[20].episodes),u=new qt({props:Z}),ge.push(()=>ze(u,"ref",_e));let x=i[38]&&C0(i),se=i[40]&&S0(i);function A(F){i[152](F)}let K={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(K.ref=i[20].timeline),g=new Zr({props:K}),ge.push(()=>ze(g,"ref",A));let J=i[23]&&T0(i),Y=i[101]&&n5(i);return{c(){P&&P.c(),e=B(),L&&L.c(),t=B(),n=T("div"),o=T("div"),r=T("div"),M&&M.c(),l=B(),N&&N.c(),a=B(),te&&te.c(),s=B(),D(u.$$.fragment),m=B(),x&&x.c(),h=B(),se&&se.c(),w=B(),D(g.$$.fragment),v=B(),J&&J.c(),I=B(),Y&&Y.c(),y=ft(),c(r,"class","controls svelte-17qsgob"),O(r,"mobile",!0),c(o,"class","controls-wrapper svelte-17qsgob"),O(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-17qsgob"),O(n,"hidden",i[1]),O(n,"controls-hidden",!i[3]),O(n,"no-smooth",i[2]),O(n,"mobile",!0)},m(F,G){P&&P.m(F,G),S(F,e,G),L&&L.m(F,G),S(F,t,G),S(F,n,G),p(n,o),p(o,r),M&&M.m(r,null),p(r,l),N&&N.m(r,null),p(r,a),te&&te.m(r,null),p(r,s),V(u,r,null),p(r,m),x&&x.m(r,null),p(r,h),se&&se.m(r,null),i[151](r),p(o,w),V(g,o,null),i[153](n),S(F,v,G),J&&J.m(F,G),S(F,I,G),Y&&Y.m(F,G),S(F,y,G),b=!0},p(F,G){F[4]?P&&(fe(),_(P,1,1,()=>{P=null}),de()):P?(P.p(F,G),G[0]&16&&d(P,1)):(P=l0(F),P.c(),d(P,1),P.m(e.parentNode,e)),F[4]&&F[30]!=="inactive"?L?(L.p(F,G),G[0]&1073741840&&d(L,1)):(L=g0(F),L.c(),d(L,1),L.m(t.parentNode,t)):L&&(fe(),_(L,1,1,()=>{L=null}),de()),F[96]&&M.p(F,G),!F[4]&&F[25]?N?(N.p(F,G),G[0]&33554448&&d(N,1)):(N=y0(F),N.c(),d(N,1),N.m(r,a)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),F[41]?te?(te.p(F,G),G[1]&1024&&d(te,1)):(te=w0(F),te.c(),d(te,1),te.m(r,s)):te&&(fe(),_(te,1,1,()=>{te=null}),de());let X={};G[1]&4096&&(X.disabled=!F[43]),G[1]&1073745920|G[2]&1|G[5]&4194304&&(X.$$scope={dirty:G,ctx:F}),!f&&G[0]&1048576&&(f=!0,X.ref=F[20].episodes,He(()=>f=!1)),u.$set(X),F[38]?x?(x.p(F,G),G[1]&128&&d(x,1)):(x=C0(F),x.c(),d(x,1),x.m(r,h)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),F[40]?se?(se.p(F,G),G[1]&512&&d(se,1)):(se=S0(F),se.c(),d(se,1),se.m(r,null)):se&&(fe(),_(se,1,1,()=>{se=null}),de());let oe={};G[0]&16&&(oe.isAds=F[4]),G[0]&32&&(oe.canRewindLive=F[5]),G[0]&16777216&&(oe.isRewindableLive=F[24]),!k&&G[0]&1048576&&(k=!0,oe.ref=F[20].timeline,He(()=>k=!1)),g.$set(oe),(!b||G[1]&2097152)&&O(o,"fullscreen",F[52]),(!b||G[0]&2)&&O(n,"hidden",F[1]),(!b||G[0]&8)&&O(n,"controls-hidden",!F[3]),(!b||G[0]&4)&&O(n,"no-smooth",F[2]),F[23]?J?(J.p(F,G),G[0]&8388608&&d(J,1)):(J=T0(F),J.c(),d(J,1),J.m(I.parentNode,I)):J&&(fe(),_(J,1,1,()=>{J=null}),de()),F[101]&&Y.p(F,G)},i(F){b||(d(P),d(L),d(M),d(N),d(te),d(u.$$.fragment,F),d(x),d(se),d(g.$$.fragment,F),d(J),d(Y),b=!0)},o(F){_(P),_(L),_(M),_(N),_(te),_(u.$$.fragment,F),_(x),_(se),_(g.$$.fragment,F),_(J),_(Y),b=!1},d(F){F&&(C(e),C(t),C(n),C(v),C(I),C(y)),P&&P.d(F),L&&L.d(F),M&&M.d(),N&&N.d(),te&&te.d(),R(u),x&&x.d(),se&&se.d(),i[151](null),R(g),i[153](null),J&&J.d(F),Y&&Y.d(F)}}}function l5(i,e,t){var Ui,to;let n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,A,K,J,Y,F,G,X,oe,De,Xe,Ee,{bottomHidden:Be}=e,{bottomNoSmooth:qe}=e,{showControls:xe}=e,{controlsElementRef:ae=void 0}=e,{isAds:he=!1}=e,{canRewindLive:at}=e,{logoClickable:Ce}=e,{logoHidden:Ke}=e,{logoTargetUrl:mt=""}=e,{showNextPrevButtons:Ye}=e,{nextButtonActive:Ge}=e,{prevButtonActive:Ze}=e,{isOneVideoPlaylist:et=!1}=e,{supportLink:ce}=e,{customFullscreenSupported:Pe=!0}=e,{playNextVideo:We}=e,{playPrevVideo:le}=e,{repeatPlaylist:Te}=e,{toggleFullscreen:pt}=e,{returnFocus:Le}=e,{seekToInteractive:ut}=e,{toggleGraph:me}=e,{playPrevChapter:tt}=e,{onDisabledPlayPrevChapterClick:Ct}=e,{onDisabledSeekToInteractiveClick:bt}=e,Ue=rt(),Ot=Wn(),Vt=Ht(),St=Ue.actions.internal.toggleMuted,ni=Ue.actions.internal.togglePlay,ct=Ue.actions.internal.pause,lt=(Ui=Ue.callbacks)==null?void 0:Ui.onAudioDoesNotExistHint,be=(to=Ue.callbacks)==null?void 0:to.onAudioDisabledHint,Je=Ue.playerPhase;H(i,Je,ne=>t(126,N=ne));let _t=Ue.state.duration$;H(i,_t,ne=>t(62,Ee=ne));let Ft=Ue.state.positionWithScrubbing$;H(i,Ft,ne=>t(61,Xe=ne));let yt=Ue.state.playbackState$;H(i,yt,ne=>t(121,h=ne));let Xt=Ue.state.isAudioAvailable$;H(i,Xt,ne=>t(51,w=ne));let mi=Ue.state.isAudioDisabled,Mt=Ue.state.isEnded$;H(i,Mt,ne=>t(127,_e=ne));let Wi=Ue.state.isLive$;H(i,Wi,ne=>t(25,y=ne));let cn=Ue.state.muted$;H(i,cn,ne=>t(54,J=ne));let oi=Ue.state.isActiveLive$;H(i,oi,ne=>t(124,v=ne));let Bi=Ue.state.isRewindableLive$;H(i,Bi,ne=>t(24,I=ne));let fn=Ue.ui.scrubbingInProgress;H(i,fn,ne=>t(29,te=ne));let ji=Ue.ui.mobileNotReportControlHidden$;H(i,ji,ne=>t(27,L=ne));let dn=Ue.ui.isPictureInPictureActive$;H(i,dn,ne=>t(26,P=ne));let Di=Ue.ui.pictureInPictureType$;H(i,Di,ne=>t(125,b=ne));let qi=Ue.ui.mobileUnmuteButtonExpanded;H(i,qi,ne=>t(55,Y=ne));let pi=Ue.ui.mobileUnmuteButtonVisible;H(i,pi,ne=>t(53,K=ne));let _i=Ue.ui.settingsMenuVisible;H(i,_i,ne=>t(23,m=ne));let wi=Ue.ui.settingsMenuOpenedByKeyboard;H(i,wi,ne=>t(120,f=ne));let ki=Ue.ui.controls,Jt=Ue.actions.internal.getVideoEpisodes(),zt=Ue.webApi.pictureInPictureApi,Gi=Ue.state.chromecastState$;H(i,Gi,ne=>t(28,M=ne));let jt=Ue.state.crashed$;H(i,jt,ne=>t(57,G=ne));let Ci=ki.disabledControls$;H(i,Ci,ne=>t(128,x=ne));let Ni=Ue.ui.startedByKeyboard$;H(i,Ni,ne=>t(119,u=ne));let Qi=Ue.ads.duration;H(i,Qi,ne=>t(60,De=ne));let li=Ue.ads.position;H(i,li,ne=>t(59,oe=ne));let wt=Ue.ads.playbackState;H(i,wt,ne=>t(30,Z=ne));let Yi=Ue.ui.isFullscreen;H(i,Yi,ne=>t(52,A=ne));let Oi=Ue.ui.playerSize;H(i,Oi,ne=>t(123,k=ne));let Pt=Ue.ui.additionalButtons$;H(i,Pt,ne=>t(56,F=ne));let Zi=Ue.actions.internal.getVideoElement,Xi=Ue.actions.internal.replayInteractive,xt=Ue.state.isInteractive,Si=Ue.state.isInteractiveTime$;H(i,Si,ne=>t(122,g=ne));let hi=Ue.state.showInteractiveGraph,Ti=Ue.state.showSeekToInteractive,$t=Ue.state.showPlayPrevChapter,Gt=Ue.state.showInteractiveTimeIndicator,ri=Ue.state.graphIsOpened$;H(i,ri,ne=>t(58,X=ne));let Fi=Ot.seekToInteractiveDisabledTooltip$;H(i,Fi,ne=>t(129,se=ne));let ci,fi,si,gi,Ji,vn,xi,di,ei,$i,Nt,Ut,en,Pi,Hi,mn,it,bi,ai,je={},tn=(0,P0.debounceFn)(as,260),yn=()=>Ue.actions.internal.toggleChromecast();function pn(){yo({isAudioDisabled:mi,audioDisabledHintCallback:be,isAudioAvailable:w,audioIsNotExistHintCallback:lt})&&St()}async function zi(){zt!=null&&zt.isActive()?await(zt==null?void 0:zt.remove()):await(zt==null?void 0:zt.request())}function nn(){!mi&&w&&pi.set(!1),pn()}let _n=et?ni:Te,Ii="",ti=(ne,So)=>{if(!ne){t(45,Ii=z("tooltip_live"));return}So===Ll.PlaybackState.PAUSED&&t(45,Ii=z("tooltip_play"))},on,Ei,Rn=()=>{s&&Ct(ci)},wn=()=>{r&&bt(fi)};function hn(ne){i.$$.not_equal(je.volume,ne)&&(je.volume=ne,t(20,je))}function ln(ne){i.$$.not_equal(je.chromecast,ne)&&(je.chromecast=ne,t(20,je))}function kn(ne){i.$$.not_equal(je.pip,ne)&&(je.pip=ne,t(20,je))}function Bn(ne){Ei=ne,t(22,Ei)}function Li(ne){i.$$.not_equal(je.vkLogo,ne)&&(je.vkLogo=ne,t(20,je))}function rn(ne){i.$$.not_equal(je.prevButton,ne)&&(je.prevButton=ne,t(20,je))}function Rt(ne){i.$$.not_equal(je.playButton,ne)&&(je.playButton=ne,t(20,je))}function Dn(ne){i.$$.not_equal(je.replayButton,ne)&&(je.replayButton=ne,t(20,je))}function Cn(ne){i.$$.not_equal(je.nextButton,ne)&&(je.nextButton=ne,t(20,je))}function Hn(ne){i.$$.not_equal(je.playPrevChapterButton,ne)&&(je.playPrevChapterButton=ne,t(20,je))}function ii(ne){i.$$.not_equal(je.interactiveGraphButton,ne)&&(je.interactiveGraphButton=ne,t(20,je))}function zn(ne){i.$$.not_equal(je.seekToInteractiveButton,ne)&&(je.seekToInteractiveButton=ne,t(20,je))}function Un(ne){i.$$.not_equal(je.volume,ne)&&(je.volume=ne,t(20,je))}function Sn(ne){i.$$.not_equal(je.playButton,ne)&&(je.playButton=ne,t(20,je))}function Tn(ne){i.$$.not_equal(je.replayButton,ne)&&(je.replayButton=ne,t(20,je))}function qn(ne){i.$$.not_equal(je.liveButton,ne)&&(je.liveButton=ne,t(20,je))}function Pn(ne){i.$$.not_equal(je.time,ne)&&(je.time=ne,t(20,je))}function Ai(ne){i.$$.not_equal(je.episodes,ne)&&(je.episodes=ne,t(20,je))}function In(ne){Ei=ne,t(22,Ei)}function re(ne){i.$$.not_equal(je.settings,ne)&&(je.settings=ne,t(20,je))}function kt(ne){i.$$.not_equal(je.fullscreen,ne)&&(je.fullscreen=ne,t(20,je))}function ie(ne){ge[ne?"unshift":"push"](()=>{bi=ne,t(44,bi)})}function dt(ne){i.$$.not_equal(je.timeline,ne)&&(je.timeline=ne,t(20,je))}function Kt(ne){ge[ne?"unshift":"push"](()=>{ae=ne,t(0,ae)})}function vi(ne){on=ne,t(21,on)}function Mn(ne){i.$$.not_equal(je.interactiveTimeIndicator,ne)&&(je.interactiveTimeIndicator=ne,t(20,je))}return i.$$set=ne=>{"bottomHidden"in ne&&t(1,Be=ne.bottomHidden),"bottomNoSmooth"in ne&&t(2,qe=ne.bottomNoSmooth),"showControls"in ne&&t(3,xe=ne.showControls),"controlsElementRef"in ne&&t(0,ae=ne.controlsElementRef),"isAds"in ne&&t(4,he=ne.isAds),"canRewindLive"in ne&&t(5,at=ne.canRewindLive),"logoClickable"in ne&&t(6,Ce=ne.logoClickable),"logoHidden"in ne&&t(110,Ke=ne.logoHidden),"logoTargetUrl"in ne&&t(7,mt=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(8,Ye=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(9,Ge=ne.nextButtonActive),"prevButtonActive"in ne&&t(10,Ze=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(111,et=ne.isOneVideoPlaylist),"supportLink"in ne&&t(11,ce=ne.supportLink),"customFullscreenSupported"in ne&&t(112,Pe=ne.customFullscreenSupported),"playNextVideo"in ne&&t(12,We=ne.playNextVideo),"playPrevVideo"in ne&&t(13,le=ne.playPrevVideo),"repeatPlaylist"in ne&&t(113,Te=ne.repeatPlaylist),"toggleFullscreen"in ne&&t(14,pt=ne.toggleFullscreen),"returnFocus"in ne&&t(15,Le=ne.returnFocus),"seekToInteractive"in ne&&t(16,ut=ne.seekToInteractive),"toggleGraph"in ne&&t(17,me=ne.toggleGraph),"playPrevChapter"in ne&&t(18,tt=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(114,Ct=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(115,bt=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32&&(fi=z(se)),i.$$.dirty[4]&16&&t(118,n=x.has("EPISODE_BUTTON")),i.$$.dirty[4]&16&&t(50,o=x.has("GRAPH_BUTTON")),i.$$.dirty[4]&16&&t(46,r=x.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&16&&t(49,l=x.has("PLAY_BUTTON")),i.$$.dirty[4]&16&&t(48,a=x.has("REPLAY_BUTTON")),i.$$.dirty[4]&16&&t(47,s=x.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(31,si=h===Ll.PlaybackState.PLAYING),i.$$.dirty[0]&1073741824&&t(32,gi=Z==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(33,Ji=_e&&!he&&!xt),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(34,vn=!_e||he),i.$$.dirty[3]&1073741824&&t(116,xi=k.width>300),i.$$.dirty[3]&1073741824&&t(35,di=k.width>400),i.$$.dirty[0]&536870912&&t(117,ei=te),i.$$.dirty[0]&469762048|i.$$.dirty[4]&2&&t(36,$i=M!==Ll.ChromecastState.NOT_AVAILABLE&&!(P&&b===1)&&!L&&!xt),i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6){let ne=N==="LiveWaitingStart";t(37,Nt=!!zt&&M!==Ll.ChromecastState.CONNECTED&&!L&&(b===1&&ne||!ne)&&!ei&&!xt)}i.$$.dirty[3]&16777216&&t(38,Ut=!ei),i.$$.dirty[3]&1073872896&&t(39,en=!Ke&&k.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2&&t(40,Pi=Vt.features.fullscreen&&!(P&&b===1)&&(xt?Pe:!0)&&!ei),i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040&&t(41,Hi=(!y||he)&&k.width>260&&!ei&&!(Vt.features.interactiveHideTime&&xt)),i.$$.dirty[0]&8388616&&t(42,mn=m||xe),i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256&&t(43,it=!he&&!y&&!!(Jt!=null&&Jt.length)&&xi&&!n&&!ei),i.$$.dirty[0]&16777216|i.$$.dirty[4]&1&&t(19,ai=!I||v),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736&&tn(Zi(),ki,je,xe),i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456&&ti(ai,h),i.$$.dirty[0]&12582912&&bl(Ei,m,wi),i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728&&jo(on,m,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864&&us(Ni,u,je.playButton)},ci=z(Ue.state.playPrevChapterDisabledTooltip),[ae,Be,qe,xe,he,at,Ce,mt,Ye,Ge,Ze,ce,We,le,pt,Le,ut,me,tt,ai,je,on,Ei,m,I,y,P,L,M,te,Z,si,gi,Ji,vn,di,$i,Nt,Ut,en,Pi,Hi,mn,it,bi,Ii,r,s,a,l,o,w,A,K,J,Y,F,G,X,oe,De,Xe,Ee,ni,ct,Je,_t,Ft,yt,Xt,mi,Mt,Wi,cn,oi,Bi,fn,ji,dn,Di,qi,pi,_i,wi,Jt,Gi,jt,Ci,Ni,Qi,li,wt,Yi,Oi,Pt,Xi,xt,Si,hi,Ti,$t,Gt,ri,Fi,yn,zi,nn,_n,Rn,wn,Ke,et,Pe,Te,Ct,bt,xi,ei,n,u,f,h,g,k,v,b,N,_e,x,se,hn,ln,kn,Bn,Li,rn,Rt,Dn,Cn,Hn,ii,zn,Un,Sn,Tn,qn,Pn,Ai,In,re,kt,ie,dt,Kt,vi,Mn]}var tc=class extends W{constructor(e){super(),j(this,e,l5,o5,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},Q3,[-1,-1,-1,-1,-1,-1])}},I0=tc;function r5(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new Xm({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s5(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new I0({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function a5(i){let e,t,n,o,r=[s5,r5],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function u5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:w}=e,{nextButtonActive:g}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:v=!1}=e,{supportLink:I}=e,{customFullscreenSupported:y=!0}=e,{playNextVideo:b}=e,{playPrevVideo:P}=e,{repeatPlaylist:L}=e,{toggleFullscreen:M}=e,{returnFocus:N=fs.noop}=e,{seekToInteractive:te}=e,{toggleGraph:_e}=e,{playPrevChapter:Z}=e,{onDisabledPlayPrevChapterClick:x=fs.noop}=e,{onDisabledSeekToInteractiveClick:se=fs.noop}=e,K=rt().ui.isMobile;H(i,K,F=>t(25,n=F));function J(F){a=F,t(0,a)}function Y(F){a=F,t(0,a)}return i.$$set=F=>{"bottomHidden"in F&&t(1,o=F.bottomHidden),"bottomNoSmooth"in F&&t(2,r=F.bottomNoSmooth),"showControls"in F&&t(3,l=F.showControls),"controlsElementRef"in F&&t(0,a=F.controlsElementRef),"isAds"in F&&t(4,s=F.isAds),"canRewindLive"in F&&t(5,u=F.canRewindLive),"logoClickable"in F&&t(6,f=F.logoClickable),"logoHidden"in F&&t(7,m=F.logoHidden),"logoTargetUrl"in F&&t(8,h=F.logoTargetUrl),"showNextPrevButtons"in F&&t(9,w=F.showNextPrevButtons),"nextButtonActive"in F&&t(10,g=F.nextButtonActive),"prevButtonActive"in F&&t(11,k=F.prevButtonActive),"isOneVideoPlaylist"in F&&t(12,v=F.isOneVideoPlaylist),"supportLink"in F&&t(13,I=F.supportLink),"customFullscreenSupported"in F&&t(14,y=F.customFullscreenSupported),"playNextVideo"in F&&t(15,b=F.playNextVideo),"playPrevVideo"in F&&t(16,P=F.playPrevVideo),"repeatPlaylist"in F&&t(17,L=F.repeatPlaylist),"toggleFullscreen"in F&&t(18,M=F.toggleFullscreen),"returnFocus"in F&&t(19,N=F.returnFocus),"seekToInteractive"in F&&t(20,te=F.seekToInteractive),"toggleGraph"in F&&t(21,_e=F.toggleGraph),"playPrevChapter"in F&&t(22,Z=F.playPrevChapter),"onDisabledPlayPrevChapterClick"in F&&t(23,x=F.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in F&&t(24,se=F.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,n,K,J,Y]}var ic=class extends W{constructor(e){super(),j(this,e,u5,a5,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},ds=ic;function c5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k=i[2].default,v=Ae(k,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],y={};for(let b=0;b<I.length;b+=1)y=ue(y,I[b]);return{c(){e=q("svg"),v&&v.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("filter"),a=q("feFlood"),s=q("feColorMatrix"),u=q("feOffset"),f=q("feGaussianBlur"),m=q("feColorMatrix"),h=q("feBlend"),w=q("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_100684"),c(w,"result","shape"),c(l,"id","a"),c(l,"width","43.996"),c(l,"height","49.5"),c(l,"x","2.5"),c(l,"y","0"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Ve(v,k,b,b[1],g?Me(k,b[1],P,null):Re(b[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&C(e),v&&v.d(b)}}}function f5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var nc=class extends W{constructor(e){super(),j(this,e,f5,c5,U,{})}},E0=nc;function d5(i){let e,t;return e=new E0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function m5(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 oc=class extends W{constructor(e){super(),j(this,e,m5,d5,U,{reversed:1})}},L0=oc;function p5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I=i[2].default,y=Ae(I,i,i[1],null),b=[{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]],P={};for(let L=0;L<b.length;L+=1)P=ue(P,b[L]);return{c(){e=q("svg"),y&&y.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("clipPath"),a=q("path"),s=q("filter"),u=q("feFlood"),f=q("feColorMatrix"),m=q("feOffset"),h=q("feGaussianBlur"),w=q("feColorMatrix"),g=q("feBlend"),k=q("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(l,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_104204"),c(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2260_104204"),c(k,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),we(e,P)},m(L,M){S(L,e,M),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,f),p(s,m),p(s,h),p(s,w),p(s,g),p(s,k),v=!0},p(L,[M]){y&&y.p&&(!v||M&2)&&Ve(y,I,L,L[1],v?Me(I,L[1],M,null):Re(L[1]),null),we(e,P=Oe(b,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},M&1&&L[0]]))},i(L){v||(d(y,L),v=!0)},o(L){_(y,L),v=!1},d(L){L&&C(e),y&&y.d(L)}}}function _5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var lc=class extends W{constructor(e){super(),j(this,e,_5,p5,U,{})}},A0=lc;function h5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y=i[2].default,b=Ae(y,i,i[1],null),P=[{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]],L={};for(let M=0;M<P.length;M+=1)L=ue(L,P[M]);return{c(){e=q("svg"),b&&b.c(),t=q("g"),n=q("path"),o=q("path"),r=q("path"),l=q("defs"),a=q("clipPath"),s=q("path"),u=q("filter"),f=q("feFlood"),m=q("feColorMatrix"),h=q("feOffset"),w=q("feGaussianBlur"),g=q("feColorMatrix"),k=q("feBlend"),v=q("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(r,"stroke","#000"),c(r,"stroke-opacity",".12"),c(r,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(m,"in","SourceAlpha"),c(m,"result","hardAlpha"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(k,"in2","BackgroundImageFix"),c(k,"result","effect1_dropShadow_2260_104293"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_2260_104293"),c(v,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),we(e,L)},m(M,N){S(M,e,N),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,f),p(u,m),p(u,h),p(u,w),p(u,g),p(u,k),p(u,v),I=!0},p(M,[N]){b&&b.p&&(!I||N&2)&&Ve(b,y,M,M[1],I?Me(y,M[1],N,null):Re(M[1]),null),we(e,L=Oe(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},N&1&&M[0]]))},i(M){I||(d(b,M),I=!0)},o(M){_(b,M),I=!1},d(M){M&&C(e),b&&b.d(M)}}}function g5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var rc=class extends W{constructor(e){super(),j(this,e,g5,h5,U,{})}},M0=rc;function b5(i){let e,t;return e=new A0({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function v5(i){let e,t;return e=new M0({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y5(i){let e,t,n,o,r=[v5,b5],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ft()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function w5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var sc=class extends W{constructor(e){super(),j(this,e,w5,y5,U,{isOff:0})}},ac=sc;function k5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k=i[2].default,v=Ae(k,i,i[1],null),I=[{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]],y={};for(let b=0;b<I.length;b+=1)y=ue(y,I[b]);return{c(){e=q("svg"),v&&v.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("filter"),a=q("feFlood"),s=q("feColorMatrix"),u=q("feOffset"),f=q("feGaussianBlur"),m=q("feColorMatrix"),h=q("feBlend"),w=q("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_106627"),c(w,"result","shape"),c(l,"id","a"),c(l,"width","40.098"),c(l,"height","27.785"),c(l,"x","3.402"),c(l,"y","10.105"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Ve(v,k,b,b[1],g?Me(k,b[1],P,null):Re(b[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&C(e),v&&v.d(b)}}}function C5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var uc=class extends W{constructor(e){super(),j(this,e,C5,k5,U,{})}},V0=uc;function S5(i){let e,t;return e=new V0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function T5(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 cc=class extends W{constructor(e){super(),j(this,e,T5,S5,U,{reversed:1})}},R0=cc;function P5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k=i[2].default,v=Ae(k,i,i[1],null),I=[{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]],y={};for(let b=0;b<I.length;b+=1)y=ue(y,I[b]);return{c(){e=q("svg"),v&&v.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("filter"),a=q("feFlood"),s=q("feColorMatrix"),u=q("feOffset"),f=q("feGaussianBlur"),m=q("feColorMatrix"),h=q("feBlend"),w=q("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2340_106922"),c(w,"result","shape"),c(l,"id","a"),c(l,"width","37"),c(l,"height","37"),c(l,"x","5.5"),c(l,"y","5.5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Ve(v,k,b,b[1],g?Me(k,b[1],P,null):Re(b[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&C(e),v&&v.d(b)}}}function I5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var fc=class extends W{constructor(e){super(),j(this,e,I5,P5,U,{})}},B0=fc;function E5(i){let e,t;return e=new B0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L5(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 W{constructor(e){super(),j(this,e,L5,E5,U,{reversed:1})}},D0=dc;function A5(i){Ie(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 q0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,w,g,k,v,I=t&&N0(i),y=i[4]==="PAUSE"&&O0(i),b=i[4]==="PLAY"&&F0(i),P=i[4]==="REPLAY"&&H0(i),L=i[4]==="SUBTITLES_OFF"&&z0(i),M=i[4]==="SUBTITLES_ON"&&U0(i),N=u&&K0(i),te=m&&W0(i),_e=i[4]==="MUTE"&&j0(i),Z=i[4]==="VOLUME"&&G0(i),x=i[5]&&Q0(i);return{c(){e=T("div"),I&&I.c(),n=B(),y&&y.c(),o=B(),b&&b.c(),r=B(),P&&P.c(),l=B(),L&&L.c(),a=B(),M&&M.c(),s=B(),N&&N.c(),f=B(),te&&te.c(),h=B(),_e&&_e.c(),w=B(),Z&&Z.c(),g=B(),x&&x.c(),k=ft(),c(e,"class","svelte-1ad3n06")},m(se,A){S(se,e,A),I&&I.m(e,null),p(e,n),y&&y.m(e,null),p(e,o),b&&b.m(e,null),p(e,r),P&&P.m(e,null),p(e,l),L&&L.m(e,null),p(e,a),M&&M.m(e,null),p(e,s),N&&N.m(e,null),p(e,f),te&&te.m(e,null),p(e,h),_e&&_e.m(e,null),p(e,w),Z&&Z.m(e,null),S(se,g,A),x&&x.m(se,A),S(se,k,A),v=!0},p(se,A){A&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(se[4])),t?I?(I.p(se,A),A&16&&d(I,1)):(I=N0(se),I.c(),d(I,1),I.m(e,n)):I&&(fe(),_(I,1,1,()=>{I=null}),de()),se[4]==="PAUSE"?y?A&16&&d(y,1):(y=O0(se),y.c(),d(y,1),y.m(e,o)):y&&(fe(),_(y,1,1,()=>{y=null}),de()),se[4]==="PLAY"?b?A&16&&d(b,1):(b=F0(se),b.c(),d(b,1),b.m(e,r)):b&&(fe(),_(b,1,1,()=>{b=null}),de()),se[4]==="REPLAY"?P?A&16&&d(P,1):(P=H0(se),P.c(),d(P,1),P.m(e,l)):P&&(fe(),_(P,1,1,()=>{P=null}),de()),se[4]==="SUBTITLES_OFF"?L?A&16&&d(L,1):(L=z0(se),L.c(),d(L,1),L.m(e,a)):L&&(fe(),_(L,1,1,()=>{L=null}),de()),se[4]==="SUBTITLES_ON"?M?A&16&&d(M,1):(M=U0(se),M.c(),d(M,1),M.m(e,s)):M&&(fe(),_(M,1,1,()=>{M=null}),de()),A&16&&(u=["RATE_DOWN","RATE_UP"].includes(se[4])),u?N?(N.p(se,A),A&16&&d(N,1)):(N=K0(se),N.c(),d(N,1),N.m(e,f)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),A&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(se[4])),m?te?(te.p(se,A),A&16&&d(te,1)):(te=W0(se),te.c(),d(te,1),te.m(e,h)):te&&(fe(),_(te,1,1,()=>{te=null}),de()),se[4]==="MUTE"?_e?A&16&&d(_e,1):(_e=j0(se),_e.c(),d(_e,1),_e.m(e,w)):_e&&(fe(),_(_e,1,1,()=>{_e=null}),de()),se[4]==="VOLUME"?Z?A&16&&d(Z,1):(Z=G0(se),Z.c(),d(Z,1),Z.m(e,null)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),de()),se[5]?x?x.p(se,A):(x=Q0(se),x.c(),x.m(k.parentNode,k)):x&&(x.d(1),x=null)},i(se){v||(d(I),d(y),d(b),d(P),d(L),d(M),d(N),d(te),d(_e),d(Z),v=!0)},o(se){_(I),_(y),_(b),_(P),_(L),_(M),_(N),_(te),_(_e),_(Z),v=!1},d(se){se&&(C(e),C(g),C(k)),I&&I.d(),y&&y.d(),b&&b.d(),P&&P.d(),L&&L.d(),M&&M.d(),N&&N.d(),te&&te.d(),_e&&_e.d(),Z&&Z.d(),x&&x.d(se)}}}function N0(i){let e,t;return e=new L0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function O0(i){let e,t;return e=new Ur({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F0(i){let e,t;return e=new Pl({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function H0(i){let e,t;return e=new $r({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function z0(i){let e,t;return e=new ac({props:{isOff:!0}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function U0(i){let e,t;return e=new ac({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function K0(i){let e,t;return e=new R0({props:{reversed:i[4]==="RATE_UP"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function W0(i){let e,t;return e=new D0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function j0(i){let e,t;return e=new Yo({props:{volume:0}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function G0(i){let e,t;return e=new Yo({props:{volume:1}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q0(i){let e,t;return{c(){e=T("span"),t=Ne(i[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&32&&Qe(t,n[5])},d(n){n&&C(e)}}}function M5(i){let e,t,n=!i[1]&&i[4]&&q0(i);return{c(){e=T("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),O(e,"hidden",i[1]),O(e,"hot-key-helpers-container--left",i[2]),O(e,"hot-key-helpers-container--right",i[3])},m(o,r){S(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=q0(o),n.c(),d(n,1),n.m(e,null)):n&&(fe(),_(n,1,1,()=>{n=null}),de()),(!t||r&2)&&O(e,"hidden",o[1]),(!t||r&4)&&O(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&O(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d()}}}function V5(i,e,t){let n,o=Se,r=()=>(o(),o=Qt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,f,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,f=n==null?void 0:n.type),n!=null&&n.t?t(5,m=z(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[l,a,s,u,f,m,n]}var mc=class extends W{constructor(e){super(),j(this,e,V5,M5,U,{data:0},A5)}},Y0=mc;function R5(i){Ie(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 B5(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b;return r=new Zn({props:{direction:"up"}}),s=new Zn({props:{direction:"up"}}),h=new Zn({props:{direction:"up"}}),k=new Zn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),D(r.$$.fragment),l=B(),a=T("div"),D(s.$$.fragment),u=B(),f=T("div"),m=T("div"),D(h.$$.fragment),w=B(),g=T("div"),D(k.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(m,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",v=z("aria_label_spherical_control")),O(e,"m-shifted",i[0])},m(P,L){S(P,e,L),p(e,t),p(t,n),p(n,o),V(r,o,null),p(n,l),p(n,a),V(s,a,null),p(t,u),p(t,f),p(f,m),V(h,m,null),p(f,w),p(f,g),V(k,g,null),I=!0,y||(b=[pe(o,"mousedown",i[1]),pe(o,"mouseup",i[5]),pe(o,"mouseleave",i[5]),pe(a,"mousedown",i[3]),pe(a,"mouseup",i[5]),pe(a,"mouseleave",i[5]),pe(m,"mousedown",i[4]),pe(m,"mouseup",i[5]),pe(m,"mouseleave",i[5]),pe(g,"mousedown",i[2]),pe(g,"mouseup",i[5]),pe(g,"mouseleave",i[5]),pe(e,"keydown",i[6]),pe(e,"keyup",i[7])],y=!0)},p(P,[L]){(!I||L&1)&&O(e,"m-shifted",P[0])},i(P){I||(d(r.$$.fragment,P),d(s.$$.fragment,P),d(h.$$.fragment,P),d(k.$$.fragment,P),I=!0)},o(P){_(r.$$.fragment,P),_(s.$$.fragment,P),_(h.$$.fragment,P),_(k.$$.fragment,P),I=!1},d(P){P&&C(e),R(r),R(s),R(h),R(k),y=!1,nt(b)}}}function D5(i,e,t){let{isShifted:n=!1}=e,o=rt(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),m=w=>{if(r.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{r.has(w.code)&&(w.preventDefault(),w.stopPropagation(),f())};return i.$$set=w=>{"isShifted"in w&&t(0,n=w.isShifted)},[n,l,a,s,u,f,m,h]}var pc=class extends W{constructor(e){super(),j(this,e,D5,B5,U,{isShifted:0},R5)}},ms=pc;function q5(i){Ie(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 Z0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function X0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function J0(i){let e,t;function n(l,a){return l[7]&&l[8]?F5:l[5]?O5:N5}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),O(e,"mobile",i[3])},m(l,a){S(l,e,a),p(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&O(e,"mobile",l[3])},d(l){l&&C(e),r.d()}}}function N5(i){let e,t=Et(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=x0(Z0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ft()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);S(o,e,r)},p(o,r){if(r&18){t=Et(o[1]);let l;for(l=0;l<t.length;l+=1){let a=Z0(o,t,l);n[l]?n[l].p(a,r):(n[l]=x0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&C(e),Vi(n,o)}}}function O5(i){let e,t,n=Et(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=ep(X0(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();c(t,"class","caption-segment svelte-ovfyp5"),yi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=Et(r[6]);let a;for(a=0;a<n.length;a+=1){let s=X0(r,n,a);o[a]?o[a].p(s,l):(o[a]=ep(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&yi(t,"font-size",r[4]+"px")},d(r){r&&C(e),Vi(o,r)}}}function F5(i){let e,t,n=z("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Ne(n),c(t,"class","caption-segment svelte-ovfyp5"),yi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&yi(t,"font-size",r[4]+"px")},d(r){r&&C(e)}}}function x0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=Ne(n),r=B(),c(t,"class","caption-segment svelte-ovfyp5"),yi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,a){S(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Qe(o,n),a&16&&yi(t,"font-size",l[4]+"px")},d(l){l&&C(e)}}}function $0(i){let e=i[16]+"",t;return{c(){t=Ne(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Qe(t,e)},d(n){n&&C(t)}}}function ep(i){let e,t=(!i[17]||i[17]<=i[2])&&$0(i);return{c(){t&&t.c(),e=ft()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=$0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&C(e),t&&t.d(n)}}}function H5(i){let e,t=i[1].length>0&&J0(i);return{c(){e=T("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),O(e,"shifted",i[0]),O(e,"auto",i[5]&&!i[8])},m(n,o){S(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=J0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&O(e,"shifted",n[0]),o&288&&O(e,"auto",n[5]&&!n[8])},i:Se,o:Se,d(n){n&&C(e),t&&t.d()}}}function z5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=rt(),m=Ht(),h=f.state.currentSubtitle$;H(i,h,b=>t(12,n=b));let w=f.state.isAutoSubtitleCaptionVisible$;H(i,w,b=>t(8,o=b));let g,k,v,I,y;return Dt(()=>{y=window.setTimeout(()=>{w.set(!1)},m.autoSubtitlesTimeout)}),Gn(()=>{window.clearTimeout(y)}),i.$$set=b=>{"shifted"in b&&t(0,r=b.shifted),"captions"in b&&t(1,l=b.captions),"position"in b&&t(2,a=b.position),"playerSize"in b&&t(11,s=b.playerSize),"isMobile"in b&&t(3,u=b.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let b=s.width*.02;t(4,g=b<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:b)}i.$$.dirty&2&&t(5,k=l.some(b=>b.type==="timestamp")),i.$$.dirty&2&&t(6,v=l.reduce((b,{type:P,value:L})=>(P==="timestamp"?b.push({timeAppeared:Number(L),value:""}):b.length===0?b.push({value:String(L)}):b[b.length-1].value=String(L),b),[])),i.$$.dirty&4096&&t(7,I=!!n.isAuto)},[r,l,a,u,g,k,v,I,o,h,w,s,n]}var _c=class extends W{constructor(e){super(),j(this,e,z5,H5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},q5)}},ps=_c;function U5(i){Ie(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 tp(i){let e,t,n;return{c(){e=T("div"),t=Ne("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Ne(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,r){S(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Qe(n,o[1])},d(o){o&&C(e)}}}function K5(i){let e,t,n,o,r,l,a=i[1]&&tp(i);return{c(){e=T("div"),t=T("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=B(),a&&a.c(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){S(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),r||(l=pe(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=tp(s),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('${s[0]||""}')`)&&c(e,"style",o)},i:Se,o:Se,d(s){s&&C(e),a&&a.d(),r=!1,l()}}}function W5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Nn.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var hc=class extends W{constructor(e){super(),j(this,e,W5,K5,U,{thumbUrl:0,chromecastDeviceName:1},U5)}},_s=hc;function j5(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function G5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var gc=class extends W{constructor(e){super(),j(this,e,G5,j5,U,{})}},ip=gc;function Q5(i){Ie(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 Y5(i){let e,t,n;return t=new ip({}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}var bc=class extends W{constructor(e){super(),j(this,e,null,Y5,U,{},Q5)}},hs=bc;function Z5(i){Ie(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 X5(i){let e,t,n,o,r,l,a,s,u,f;return r=new Pl({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=B(),D(r.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",l=z("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),O(e,"hidden",i[1])},m(m,h){S(m,e,h),p(e,t),p(t,n),p(t,o),V(r,t,null),s=!0,u||(f=[pe(t,"keydown",i[3]),pe(e,"click",st(function(){Mi(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&O(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&C(e),R(r),u=!1,nt(f)}}}function J5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=rt().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(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,s]}var vc=class extends W{constructor(e){super(),j(this,e,J5,X5,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Z5)}get handlePressKey(){return this.$$.ctx[3]}},gs=vc;function x5(i){Ie(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 x5(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","title svelte-1bcvcf2"),O(e,"hidden",i[1])},m(n,o){S(n,e,o),p(e,t)},p(n,[o]){o&1&&Qe(t,n[0]),o&2&&O(e,"hidden",n[1])},i:Se,o:Se,d(n){n&&k(e)}}}function $5(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 yc=class extends W{constructor(e){super(),j(this,e,$5,x5,U,{title:0,isHidden:1},J5)}},np=yc;function e6(i){Ie(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 op(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[0]),o=B(),r=T("span"),r.textContent=`${z("waiting_live_day_value")}`,l=B(),a=T("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&1&&Qe(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function lp(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[1]),o=B(),r=T("span"),r.textContent=`${z("waiting_live_hour_value")}`,l=B(),a=T("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&2&&Qe(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function rp(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[2]),o=B(),r=T("span"),r.textContent=`${z("waiting_live_minute_value")}`,l=B(),a=T("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&4&&Qe(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function sp(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=Ne(i[3]),o=B(),r=T("span"),r.textContent=`${z("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Qe(n,l[3])},d(l){l&&k(e)}}}function t6(i){let e,t,n,o,r=i[0]&&op(i),l=i[1]&&lp(i),a=i[2]&&rp(i),s=i[3]&&sp(i);return{c(){e=T("div"),r&&r.c(),t=B(),l&&l.c(),n=B(),a&&a.c(),o=B(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){S(u,e,f),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?r?r.p(u,f):(r=op(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,f):(l=lp(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,f):(a=rp(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=sp(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:Se,o:Se,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function i6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,f=w=>String(w).padStart(2,"0"),m=w=>{let g=Math.floor(w/86400);g&&(w-=g*86400,t(0,r=f(g)));let C=Math.floor(w/3600);t(1,l=f(C));let v=Math.floor(w/60)%60;t(2,a=f(v));let I=w%60;t(3,s=f(I))},h=()=>{let w=Math.floor(Date.now()/1e3),g=n-w;m(g),g>=1?u=requestAnimationFrame(h):o()};return qt(()=>{u=requestAnimationFrame(h)}),Gn(()=>{cancelAnimationFrame(u)}),i.$$set=w=>{"startTime"in w&&t(4,n=w.startTime),"onTimerOver"in w&&t(5,o=w.onTimerOver)},[r,l,a,s,n,o]}var wc=class extends W{constructor(e){super(),j(this,e,i6,t6,U,{startTime:4,onTimerOver:5},e6)}},ap=wc;function n6(i){let e,t,n,o,r,l,a=i[2].default,s=Ae(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]],f={};for(let m=0;m<u.length;m+=1)f=ue(f,u[m]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),r=D("path"),c(t,"fill","#fefffe"),c(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"),vi(t,"opacity",".965"),c(n,"fill","#fefffe"),c(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"),vi(n,"opacity",".965"),c(o,"fill","#fefffe"),c(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"),vi(o,"opacity",".985"),c(r,"fill","#fefffe"),c(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"),vi(r,"opacity",".986"),we(e,f)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Re(m[1]),null),we(e,f=Oe(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){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function o6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var kc=class extends W{constructor(e){super(),j(this,e,o6,n6,U,{})}},up=kc;function l6(i){Ie(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 r6(i){let e,t,n,o,r;return o=new ap({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${z("waiting_live_timer_title")}`,n=B(),q(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){S(l,e,a),p(e,t),p(e,n),V(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&k(e),R(o)}}}function s6(i){let e,t,n,o,r,l;return n=new up({}),{c(){e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("span"),r.textContent=`${z("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(r,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),p(e,t),V(n,t,null),p(e,o),p(e,r),l=!0},p:Se,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),R(n)}}}function a6(i){let e,t,n,o,r,l=[s6,r6],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){S(u,e,f),a[t].m(e,null),r=!0},p(u,[f]){let m=t;t=s(u,f),t===m?a[t].p(u,f):(fe(),_(a[m],1,1,()=>{a[m]=null}),de(),n=a[t],n?n.p(u,f):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&k(e),a[t].d()}}}function u6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>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,l]}var Cc=class extends W{constructor(e){super(),j(this,e,u6,a6,U,{thumbUrl:0,startTime:1},l6)}},bs=Cc;function c6(i){Ie(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 f6(i){let e,t,n,o,r,l,a,s;return n=new Cl({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("p"),l=Ne(i[1]),c(r,"class","waiting-title svelte-xvqwsa"),c(t,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${i[0]}')`)},m(u,f){S(u,e,f),p(e,t),V(n,t,null),p(t,o),p(t,r),p(r,l),s=!0},p(u,[f]){(!s||f&2)&&Qe(l,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){_(n.$$.fragment,u),s=!1},d(u){u&&k(e),R(n)}}}function d6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"kind"in l&&t(2,o=l.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let l={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")};t(1,r=l[o]||"")}},[n,r,o]}var Sc=class extends W{constructor(e){super(),j(this,e,d6,f6,U,{thumbUrl:0,kind:2},c6)}},Al=Sc;var{window:m6}=Vo;function p6(i){Ie(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .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-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function fp(i){var n;let e,t;return e=new bs({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){q(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function dp(i){let e,t;return e=new Al({props:{kind:"recover",thumbUrl:i[3]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mp(i){let e,t;return e=new Al({props:{kind:"record",thumbUrl:i[3]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function pp(i){let e,t,n;return t=new kr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),O(e,"hidden",i[38]!=="ads")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&O(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function _p(i){let e,t;return e=new Ld({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function hp(i){let e,t;return e=new np({props:{title:i[2],isHidden:!i[36]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gp(i){let e,t;return e=new ms({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function bp(i){let e,t,n;return t=new mr({props:{"aria-label":z("video360")}}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function vp(i){let e,t;return e=new _s({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&8388608&&(r.chromecastDeviceName=n[54]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function yp(i){let e,t;return e=new ps({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&33554432&&(r.captions=n[56]),o[1]&67108864&&(r.position=n[57]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function wp(i){let e,t,n,o,r;return t=new hs({}),{c(){e=T("div"),q(t.$$.fragment)},m(l,a){S(l,e,a),V(t,e,null),n=!0,o||(r=[pe(e,"contextmenu",Yt(i[108])),pe(e,"click",st(i[119]))],o=!0)},p:Se,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,nt(r)}}}function kp(i){let e,t,n;function o(l){i[158](l)}let r={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:Ep,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[157],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new ds({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="LiveWaitingStart"||l[38]==="LiveWaitingRecover"||l[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=l[6]&&l[58]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[157]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Cp(i){let e,t;return e=new Cl({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sp(i){let e,t;return e=new Hd({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tp(i){let e,t;return e=new Er({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Pp(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e;e=new gs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let Z=i[38]==="LiveWaitingStart"&&fp(i),x=i[38]==="LiveWaitingRecover"&&dp(i),se=i[38]==="LiveWaitingRecord"&&mp(i),L=i[7]&&i[22]&&pp(i),K=i[31]&&i[18]&&i[19]&&_p(i),J=i[44]&&hp(i),Y=i[49]&&gp(i),F=i[53]&&bp(i),G=i[39]&&vp(i),X=i[55].value!=="off"&&yp(i),le=i[37]&&wp(i),qe=i[22]&&kp(i);C=new Sr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),I=new Y0({props:{data:i[103]}});function Xe(ae){i[160](ae)}let Ee={supportLink:i[21],returnFocus:i[159],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ee.menuElementRef=i[32]),b=new ud({props:Ee}),ge.push(()=>ze(b,"menuElementRef",Xe));let Be=i[42]&&Cp(i),De=i[62]&&Sp(i),xe=i[63]&&Tp(i);return{c(){q(e.$$.fragment),t=B(),Z&&Z.c(),n=B(),x&&x.c(),o=B(),se&&se.c(),r=B(),L&&L.c(),l=B(),K&&K.c(),a=B(),J&&J.c(),s=B(),Y&&Y.c(),u=B(),F&&F.c(),f=B(),G&&G.c(),m=B(),X&&X.c(),h=B(),le&&le.c(),w=B(),qe&&qe.c(),g=B(),q(C.$$.fragment),v=B(),q(I.$$.fragment),y=B(),q(b.$$.fragment),A=B(),Be&&Be.c(),M=B(),De&&De.c(),N=B(),xe&&xe.c(),te=dt()},m(ae,he){V(e,ae,he),S(ae,t,he),Z&&Z.m(ae,he),S(ae,n,he),x&&x.m(ae,he),S(ae,o,he),se&&se.m(ae,he),S(ae,r,he),L&&L.m(ae,he),S(ae,l,he),K&&K.m(ae,he),S(ae,a,he),J&&J.m(ae,he),S(ae,s,he),Y&&Y.m(ae,he),S(ae,u,he),F&&F.m(ae,he),S(ae,f,he),G&&G.m(ae,he),S(ae,m,he),X&&X.m(ae,he),S(ae,h,he),le&&le.m(ae,he),S(ae,w,he),qe&&qe.m(ae,he),S(ae,g,he),V(C,ae,he),S(ae,v,he),V(I,ae,he),S(ae,y,he),V(b,ae,he),S(ae,A,he),Be&&Be.m(ae,he),S(ae,M,he),De&&De.m(ae,he),S(ae,N,he),xe&&xe.m(ae,he),S(ae,te,he),_e=!0},p(ae,he){let at={};he[0]&32|he[1]&192&&(at.hidden=ae[38]!=="thumb"||ae[37]||ae[92]&&ae[5]),he[0]&8&&(at.thumbUrl=ae[3]),he[0]&536870912&&(at.startVideo=ae[29]),e.$set(at),ae[38]==="LiveWaitingStart"?Z?(Z.p(ae,he),he[1]&128&&d(Z,1)):(Z=fp(ae),Z.c(),d(Z,1),Z.m(n.parentNode,n)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),de()),ae[38]==="LiveWaitingRecover"?x?(x.p(ae,he),he[1]&128&&d(x,1)):(x=dp(ae),x.c(),d(x,1),x.m(o.parentNode,o)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),ae[38]==="LiveWaitingRecord"?se?(se.p(ae,he),he[1]&128&&d(se,1)):(se=mp(ae),se.c(),d(se,1),se.m(r.parentNode,r)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),ae[7]&&ae[22]?L?(L.p(ae,he),he[0]&4194432&&d(L,1)):(L=pp(ae),L.c(),d(L,1),L.m(l.parentNode,l)):L&&(fe(),_(L,1,1,()=>{L=null}),de()),ae[31]&&ae[18]&&ae[19]?K?(K.p(ae,he),he[0]&786432|he[1]&1&&d(K,1)):(K=_p(ae),K.c(),d(K,1),K.m(a.parentNode,a)):K&&(fe(),_(K,1,1,()=>{K=null}),de()),ae[44]?J?(J.p(ae,he),he[1]&8192&&d(J,1)):(J=hp(ae),J.c(),d(J,1),J.m(s.parentNode,s)):J&&(fe(),_(J,1,1,()=>{J=null}),de()),ae[49]?Y?(Y.p(ae,he),he[1]&262144&&d(Y,1)):(Y=gp(ae),Y.c(),d(Y,1),Y.m(u.parentNode,u)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),de()),ae[53]?F?he[1]&4194304&&d(F,1):(F=bp(ae),F.c(),d(F,1),F.m(f.parentNode,f)):F&&(fe(),_(F,1,1,()=>{F=null}),de()),ae[39]?G?(G.p(ae,he),he[1]&256&&d(G,1)):(G=vp(ae),G.c(),d(G,1),G.m(m.parentNode,m)):G&&(fe(),_(G,1,1,()=>{G=null}),de()),ae[55].value!=="off"?X?(X.p(ae,he),he[1]&16777216&&d(X,1)):(X=yp(ae),X.c(),d(X,1),X.m(h.parentNode,h)):X&&(fe(),_(X,1,1,()=>{X=null}),de()),ae[37]?le?(le.p(ae,he),he[1]&64&&d(le,1)):(le=wp(ae),le.c(),d(le,1),le.m(w.parentNode,w)):le&&(fe(),_(le,1,1,()=>{le=null}),de()),ae[22]?qe?(qe.p(ae,he),he[0]&4194304&&d(qe,1)):(qe=kp(ae),qe.c(),d(qe,1),qe.m(g.parentNode,g)):qe&&(fe(),_(qe,1,1,()=>{qe=null}),de());let Ce={};he[1]&268435456&&(Ce.isLive=ae[59]),he[1]&4096&&(Ce.isHidden=!ae[43]),he[1]&1048576&&(Ce.isPlaying=ae[51]),he[1]&67108864&&(Ce.position=ae[57]),he[1]&536870912&&(Ce.duration=ae[60]),C.$set(Ce);let Ke={};he[0]&2097152&&(Ke.supportLink=ae[21]),he[1]&131072&&(Ke.returnFocus=ae[159]),he[1]&4&&(Ke.visible=ae[33]),he[1]&512&&(Ke.playerContainerRef=ae[40]),he[1]&1024&&(Ke.controlsContainerRef=ae[41]),he[1]&1073741824&&(Ke.position=ae[61]),!P&&he[1]&2&&(P=!0,Ke.menuElementRef=ae[32],He(()=>P=!1)),b.$set(Ke),ae[42]?Be?he[1]&2048&&d(Be,1):(Be=Cp(ae),Be.c(),d(Be,1),Be.m(M.parentNode,M)):Be&&(fe(),_(Be,1,1,()=>{Be=null}),de()),ae[62]?De?he[2]&1&&d(De,1):(De=Sp(ae),De.c(),d(De,1),De.m(N.parentNode,N)):De&&(fe(),_(De,1,1,()=>{De=null}),de()),ae[63]?xe?he[2]&2&&d(xe,1):(xe=Tp(ae),xe.c(),d(xe,1),xe.m(te.parentNode,te)):xe&&(fe(),_(xe,1,1,()=>{xe=null}),de())},i(ae){_e||(d(e.$$.fragment,ae),d(Z),d(x),d(se),d(L),d(K),d(J),d(Y),d(F),d(G),d(X),d(le),d(qe),d(C.$$.fragment,ae),d(I.$$.fragment,ae),d(b.$$.fragment,ae),d(Be),d(De),d(xe),_e=!0)},o(ae){_(e.$$.fragment,ae),_(Z),_(x),_(se),_(L),_(K),_(J),_(Y),_(F),_(G),_(X),_(le),_(qe),_(C.$$.fragment,ae),_(I.$$.fragment,ae),_(b.$$.fragment,ae),_(Be),_(De),_(xe),_e=!1},d(ae){ae&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(f),k(m),k(h),k(w),k(g),k(v),k(y),k(A),k(M),k(N),k(te)),R(e,ae),Z&&Z.d(ae),x&&x.d(ae),se&&se.d(ae),L&&L.d(ae),K&&K.d(ae),J&&J.d(ae),Y&&Y.d(ae),F&&F.d(ae),G&&G.d(ae),X&&X.d(ae),le&&le.d(ae),qe&&qe.d(ae),R(C,ae),R(I,ae),R(b,ae),Be&&Be.d(ae),De&&De.d(ae),xe&&xe.d(ae)}}}function _6(i){let e,t,n,o,r=i[52],l,a,s,u,f=Pp(i);return{c(){e=T("div"),t=T("div"),o=B(),f.c(),l=dt(),c(t,"class","video-container svelte-12e19rp"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),O(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),O(e,"hidden",i[38]!=="video"),O(e,"nocursor",i[45])},m(m,h){S(m,e,h),p(e,t),i[156](t),S(m,o,h),f.m(m,h),S(m,l,h),a=!0,s||(u=[pe(e,"contextmenu",Yt(i[108])),pe(e,"mousedown",Yt(i[113])),pe(e,"mouseup",Yt(i[114])),pe(e,"click",Yt(i[116])),pe(e,"dblclick",Yt(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&c(t,"style",n),(!a||h[1]&1048576)&&c(t,"data-is-playing",m[51]),(!a||h[0]&2)&&O(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&O(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&O(e,"nocursor",m[45]),h[1]&2097152&&U(r,r=m[52])?(fe(),_(f,1,1,Se),de(),f=Pp(m),f.c(),d(f,1),f.m(l.parentNode,l)):f.p(m,h)},i(m){a||(d(f),a=!0)},o(m){_(f),a=!1},d(m){m&&(k(e),k(o),k(l)),i[156](null),f.d(m),s=!1,nt(u)}}}function h6(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[_6]},$$scope:{ctx:i}};return t=new Md({props:s}),i[161](t),{c(){e=T("div"),q(t.$$.fragment),n=B(),o=T("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){S(u,e,f),V(t,e,null),p(e,n),p(e,o),i[162](o),i[163](e),r=!0,l||(a=[pe(m6,"blur",i[107]),pe(e,"mouseenter",i[109]),pe(e,"mouseleave",i[111]),pe(e,"mousemove",i[112]),pe(e,"click",i[120],!0),pe(e,"focusin",i[110],!0)],l=!0)},p(u,f){let m={};f[1]&128&&(m.isAds=u[38]==="ads"),f[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&16&&(m.$$scope={dirty:f,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&k(e),i[161](null),R(t),i[162](null),i[163](null),l=!1,nt(a)}}}var Ep=!0;function Tc(i){return i?i.offsetTop+Tc(i.offsetParent):0}function Lp(i){return i?i.offsetLeft+Lp(i.offsetParent):0}function g6(i,e,t){let n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,L,K,J,Y,F,G,X,le,qe,Xe,Ee,Be,De,xe,ae,he,at,{store:Ce}=e,{uiConfig:Ke}=e,{title:mt}=e,{thumbUrl:Ye}=e,{videoContainer:Ge}=e,{interactiveContainer:Ze}=e,{live:et}=e,{autoplay:ce}=e,{canRewindLive:Pe}=e,{showAds:We}=e,{adsSlotId:re=void 0}=e,{adsParams:Te=void 0}=e,{adsPreviewParam:pt=void 0}=e,{duration:Le=void 0}=e,{logoClickable:ut}=e,{logoHidden:me}=e,{logoTargetUrl:tt=""}=e,{showNextPrevButtons:Ct=!1}=e,{nextButtonActive:bt=!1}=e,{prevButtonActive:Ue=!1}=e,{endScreenVideoTitle:Ot=void 0}=e,{endScreenVideoThumb:Vt=void 0}=e,{isOneVideoPlaylist:St=!1}=e,{supportLink:ni}=e,{shadowRootContainer:ct=void 0}=e,{outerContainerRef:lt=void 0}=e,{playerStarted:be=!1}=e,{fullScreenTarget:Je=void 0}=e,{showMiniTimer:_t=!1}=e,{playNextVideo:Ft=vs.noop}=e,{playPrevVideo:yt=vs.noop}=e,{repeatPlaylist:Xt=vs.noop}=e,{seekToInteractive:mi}=e,{toggleGraph:Mt}=e,{playPrevChapter:zi}=e,{firstStart:an}=e,oi=Ce.getLogger().createComponentLog("Root component"),Vi=Ce.interfaceLanguage$;H(i,Vi,Q=>t(52,G=Q));let un=Ce.state.playbackState$;H(i,un,Q=>t(153,K=Q));let Ui=Ce.ads.playbackState;H(i,Ui,Q=>t(154,J=Q));let cn=Ce.state.positionWithScrubbing$;H(i,cn,Q=>t(57,Ee=Q));let Ri=Ce.state.duration$;H(i,Ri,Q=>t(60,xe=Q));let Bi=Ce.playerPhase;H(i,Bi,Q=>t(38,_e=Q));let pi=Ce.ui.isFullscreen;H(i,pi,Q=>t(143,g=Q));let _i=Ce.ui.controlsVisible;H(i,_i,Q=>t(36,P=Q));let yi=Ce.ui.settingsMenuVisible;H(i,yi,Q=>t(141,s=Q));let wi=Ce.ui.scrubbingInProgress;H(i,wi,Q=>t(145,y=Q));let Jt=Ce.ui.contextMenu.visible$;H(i,Jt,Q=>t(33,n=Q));let zt=Ce.ui.debugPanelVisible;H(i,zt,Q=>t(63,at=Q));let Ki=Ce.state.isLoaderVisible;H(i,Ki,Q=>t(155,Y=Q));let Wt=Ce.state.isEnded$;H(i,Wt,Q=>t(142,f=Q));let ki=Ce.state.chromecastConnected$;H(i,ki,Q=>t(39,se=Q));let qi=Ce.state.chromecastDeviceName$;H(i,qi,Q=>t(54,le=Q));let Wi=Ce.ads.postrollPassed;H(i,Wi,Q=>t(148,N=Q));let li=Ce.state.isLive$;H(i,li,Q=>t(59,De=Q));let wt=Ce.state.isPlaying$;H(i,wt,Q=>t(51,F=Q));let ji=Ce.state.crashed$;H(i,ji,Q=>t(37,M=Q));let Di=Ce.webApi.annotationsApi,Pt=Ce.webApi.pictureInPictureApi,Gi=Ce.state.currentSubtitle$;H(i,Gi,Q=>t(55,qe=Q));let Qi=Ce.state.currentSubtitleCaptions$;H(i,Qi,Q=>t(56,Xe=Q));let xt=Ce.state.duration$;H(i,xt,Q=>t(58,Be=Q));let Ci=Ce.state.graphIsOpened$;H(i,Ci,Q=>t(149,te=Q));let hi=Ce.ui.playerSize;H(i,hi,Q=>t(34,h=Q));let Si=Ce.ui.is3DVideo;H(i,Si,Q=>t(49,m=Q));let $t=Ce.ui.icon3DVideoVisible;H(i,$t,Q=>t(53,X=Q));let jt=Ce.ui.rotateAlpha;H(i,jt,Q=>t(35,I=Q));let ri=Ce.state.isInteractive,Ni=Ce.state.isInteractiveTime$;H(i,Ni,Q=>t(146,b=Q));let ci=Ce.state.isInteractiveExpectation$;H(i,ci,Q=>t(152,L=Q));let fi=Ce.state.hasInteractiveBranches,si=Ce.ui.touched;H(i,si,Q=>t(150,Z=Q));let gi=Ce.ui.modals.hotKeyMap.data;H(i,gi,Q=>t(170,u=Q));let Yi=Ce.ui.modals.hotKeyMap.show;H(i,Yi,Q=>t(62,he=Q));let vn=Ce.ui.overlayContainer$,Zi=Ce.ui.controls.interactiveTimeIndicator;H(i,Zi,Q=>t(171,w=Q));let di=Ce.state.showInteractiveTimeIndicator,ei=Ce.ui.contextMenu.position$;H(i,ei,Q=>t(61,ae=Q));let Xi=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Nt}=Wn();H(i,Nt,Q=>t(144,v=Q));let Ut,Ji,Ti,Oi,fn;gi.set(Uf());let it,bi,ai=Fe(!1);H(i,ai,Q=>t(50,C=Q));let je,xi=Fe(!1);H(i,xi,Q=>t(151,x=Q));let yn=Fe(),dn=Fe(!1);H(i,dn,Q=>t(147,A=Q));let Fi=!1,$i=!1,mn=!1,Pi=!(ce&&!Ke.controls.showOnStartupAtAutoplay),ti,en,Ii,Vn,wn,kn=!1,Cn,pn=!1,{toggle:Rn}=Nt,tn=!1,nn=null,Rt;Pt==null||Pt.setContext(zl());let Bn=()=>{ce&&!ri&&Ke.controls.showOnStartupAtAutoplay&&ii(Ke.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:Bn});let Sn=()=>{window.clearTimeout(Ti),xi.set(!1)},Fn=()=>{window.clearTimeout(Oi),yn.set(null)},ii=Q=>{Sn(),xi.set(!0),Ti=window.setTimeout(()=>xi.set(!1),Q);let Lt=Q-100;je=window.setTimeout(()=>{C&&ai.set(!1)},Lt>0?Lt:Q)},Hn=(Q,Lt)=>{Fn(),yn.set(Lt),Oi=window.setTimeout(()=>yn.set(null),Q)},zn=Si.subscribe(Q=>{$t.set(Q),Q&&(window.clearTimeout(fn),fn=window.setTimeout(()=>$t.set(!1),Ke.controls.hide360IconTimeout))}),Tn=async()=>{var Lt,In,ln,no;let Q=bo();if(Q){let En=jl(),Jn=An();Q=En===Jn||En===ct}if(Q){ii(Ke.controls.hideTimeoutFullscreen);try{await(Pt==null?void 0:Pt.remove())}catch(En){oi({message:String(En)})}}pi.set(Q),Ce.getAdmanWrapper().setFullscreen(Q),g?(In=(Lt=Ce.callbacks)==null?void 0:Lt.onFullscreenEnter)==null||In.call(Lt):(no=(ln=Ce.callbacks)==null?void 0:ln.onFullscreenExit)==null||no.call(ln)},Pn=Q=>{let Lt=Q;hi.set({width:Lt.target.width,height:Lt.target.height})};qt(()=>{var Lt;return yr(Tn),Ke.features.annotationsInside&&(Di==null||Di.init(Ut)),Uo(Pt)&&(Pt==null||Pt.assignPlayerContainer(Ut),Pt==null||Pt.registryExternalEventHandlers({resize:Pn})),Ze&&((Lt=Ge.parentElement)==null||Lt.insertBefore(Ze,Ge.nextSibling)),()=>{window.clearTimeout(Ti),window.clearTimeout(je),window.clearTimeout(Oi),window.clearTimeout(fn),zn(),Pt==null||Pt.dispose(),wr(Tn)}});let An=()=>{let Q=Ke.features.fullscreenInternalTargetPlayerContainer||!lt?Ut:lt,Lt=Q.getRootNode(),In=Lt instanceof ShadowRoot?Lt.host:Lt,ln=Je instanceof HTMLElement&&Je.contains(In);return Ke.allowChangingFullscreenTarget&&Je&&ln?Je:Q},_n=async()=>{bo()?(await vr(document),oi({message:"exit fullscreen"})):(oi({message:"request fullscreen"}),await br(An()))},ne=()=>{Xi(),Jt.set(!1)},kt=Q=>{Jt.set(!0),ei.set({left:Q.clientX,top:Q.clientY})};function on(){dn.set(!0),ri||ii(Ke.controls.hideTimeoutCursor)}function Ei(){ri||(ai.set(!0),ii(Ke.controls.hideTimeoutCursor))}function ie(){dn.set(!1),t(132,$i=!1),t(131,Fi=!1),tn=!1,Ce.actions.internal.releaseCamera()}function ft(Q){if(w&&di){let Lt=Q.currentTarget,In=Tc(Lt),ln=Lp(Lt),no=Q.pageX-ln,En=Q.pageY-In,{left:Jn,bottom:_o,right:tl}=w,Lo=tl-Jn;return no>=Jn-Lo&&En<=_o+Lo}}function Gt(Q){if(Ut){let Lt=Tc(Q.currentTarget),In=h.height,ln=Q.pageY-Lt;if(ft(Q)){t(132,$i=!1);return}ln<40?t(132,$i=!0):ln>In-40?t(131,Fi=!0):(t(132,$i=!1),s||t(131,Fi=!1))}}function qn(Q){Gt(Q),ti||ii(Ke.controls.hideTimeoutCursor),m&&tn&&nn&&Ce.actions.internal.moveCameraFocusPX(nn.clientX-Q.clientX,nn.clientY-Q.clientY,Q.timeStamp-nn.timeStamp),nn=Q}let Un=Q=>{Q.button===0&&(tn=!0,Ce.actions.internal.holdCamera()),ii(Ke.controls.hideTimeoutCursor)},hn=Q=>{Q.button===0&&(nn=Q,tn=!1,Ce.actions.internal.releaseCamera()),ii(Ke.controls.hideTimeoutCursor)},to=()=>{Ep&&(oi({message:"double click on video"}),_n(),ii(Ke.controls.hideTimeoutCursor))},oe=()=>{if(n||s){ne();return}if(!(f&&!fi)){if(pn)return Rn();if(Rt==null||Rt.focus(),!be){an(),ii(Ke.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),ii(Ke.controls.hideTimeoutCursor)}},So=Q=>{ne(),si.set(!0),ii(Ke.controls.hideTimeout),Q&&Hn(Ke.controls.hideHotKeyHelpers,Q)},Dl=()=>{var Q,Lt;ne(),(Q=Ce.callbacks)!=null&&Q.onOpenHotKeyMap?(Lt=Ce.callbacks)==null||Lt.onOpenHotKeyMap(u):Yi.update(In=>!In)},Nl=()=>{if(n||s){ne();return}},Xo=()=>{si.set(!0)},To=Ce.ui.contextMenu.openedByBtnKeyboard$;H(i,To,Q=>t(140,a=Q));let Po=Ce.ui.contextMenu.btnRef$;H(i,Po,Q=>t(139,l=Q));let io,co=Ce.ui.contextMenu.openedByHotKey$;H(i,co,Q=>t(138,r=Q));let fo=Ce.ui.contextMenu.lastActiveElem$;H(i,fo,Q=>t(137,o=Q));function Jo(Q){ge[Q?"unshift":"push"](()=>{Ge=Q,t(0,Ge)})}let xo=()=>Rt==null?void 0:Rt.focus();function mo(Q){Ji=Q,t(41,Ji)}let $o=()=>Rt==null?void 0:Rt.focus();function Io(Q){io=Q,t(32,io)}function po(Q){ge[Q?"unshift":"push"](()=>{Rt=Q,t(48,Rt)})}function Eo(Q){ge[Q?"unshift":"push"](()=>{bi=Q,t(30,bi)})}function el(Q){ge[Q?"unshift":"push"](()=>{Ut=Q,t(40,Ut)})}return i.$$set=Q=>{"store"in Q&&t(125,Ce=Q.store),"uiConfig"in Q&&t(1,Ke=Q.uiConfig),"title"in Q&&t(2,mt=Q.title),"thumbUrl"in Q&&t(3,Ye=Q.thumbUrl),"videoContainer"in Q&&t(0,Ge=Q.videoContainer),"interactiveContainer"in Q&&t(126,Ze=Q.interactiveContainer),"live"in Q&&t(4,et=Q.live),"autoplay"in Q&&t(5,ce=Q.autoplay),"canRewindLive"in Q&&t(6,Pe=Q.canRewindLive),"showAds"in Q&&t(7,We=Q.showAds),"adsSlotId"in Q&&t(8,re=Q.adsSlotId),"adsParams"in Q&&t(9,Te=Q.adsParams),"adsPreviewParam"in Q&&t(10,pt=Q.adsPreviewParam),"duration"in Q&&t(11,Le=Q.duration),"logoClickable"in Q&&t(12,ut=Q.logoClickable),"logoHidden"in Q&&t(13,me=Q.logoHidden),"logoTargetUrl"in Q&&t(14,tt=Q.logoTargetUrl),"showNextPrevButtons"in Q&&t(15,Ct=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(16,bt=Q.nextButtonActive),"prevButtonActive"in Q&&t(17,Ue=Q.prevButtonActive),"endScreenVideoTitle"in Q&&t(18,Ot=Q.endScreenVideoTitle),"endScreenVideoThumb"in Q&&t(19,Vt=Q.endScreenVideoThumb),"isOneVideoPlaylist"in Q&&t(20,St=Q.isOneVideoPlaylist),"supportLink"in Q&&t(21,ni=Q.supportLink),"shadowRootContainer"in Q&&t(127,ct=Q.shadowRootContainer),"outerContainerRef"in Q&&t(128,lt=Q.outerContainerRef),"playerStarted"in Q&&t(22,be=Q.playerStarted),"fullScreenTarget"in Q&&t(129,Je=Q.fullScreenTarget),"showMiniTimer"in Q&&t(130,_t=Q.showMiniTimer),"playNextVideo"in Q&&t(23,Ft=Q.playNextVideo),"playPrevVideo"in Q&&t(24,yt=Q.playPrevVideo),"repeatPlaylist"in Q&&t(25,Xt=Q.repeatPlaylist),"seekToInteractive"in Q&&t(26,mi=Q.seekToInteractive),"toggleGraph"in Q&&t(27,Mt=Q.toggleGraph),"playPrevChapter"in Q&&t(28,zi=Q.playPrevChapter),"firstStart"in Q&&t(29,an=Q.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1073741824|i.$$.dirty[5]&1&&t(42,it=(_e==="video"&&Y||_e==="ads"&&J==="inactive")&&!M),i.$$.dirty[0]&1073741824&&vn.set(bi),i.$$.dirty[4]&536871936&&(t(133,mn=Pi&&K!==Ip.PlaybackState.PLAYING),Pi||t(134,Pi=!0)),i.$$.dirty[4]&272761728&&t(135,ti=b&&!s&&!(Fi||$i)&&!(mn&&!L)),i.$$.dirty[1]&448|i.$$.dirty[4]&136448512&&_i.set((mn||s||y||se||x)&&!ti&&(_e==="video"||_e==="ads")&&!M),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&67108928&&t(43,en=Ke.features.thumbTimer&&_t&&_e==="video"&&!P&&!M&&!ri&&(Ke.hideThumbTimerAfterTouch&&!Z||!Ke.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&34078720&&t(44,Ii=_e==="video"&&!te&&g),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&17039360&&t(31,Vn=(We&&N||!We)&&f&&!M),i.$$.dirty[1]&33|i.$$.dirty[4]&12582912&&t(45,wn=A&&!(P||Vn)&&!b),i.$$.dirty[0]&2|i.$$.dirty[4]&6295552&&(!y&&kn&&!b&&ii(Ke.controls.hideTimeoutCursor),t(136,kn=y)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,Cn=Ge&&I%180?h.height/h.width:1),i.$$.dirty[4]&1048576&&t(47,pn=v!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&65536&&jo(io,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&32768){let Q=l;Q&&bl(Q,n,To)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384&&jo(io,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&8192){let Q=o;Q&&id(Q,n,co)}},[Ge,Ke,mt,Ye,et,ce,Pe,We,re,Te,pt,Le,ut,me,tt,Ct,bt,Ue,Ot,Vt,St,ni,be,Ft,yt,Xt,mi,Mt,zi,an,bi,Vn,io,n,h,I,P,M,_e,se,Ut,Ji,it,en,Ii,wn,Cn,pn,Rt,m,C,F,G,X,le,qe,Xe,Ee,Be,De,xe,ae,he,at,Vi,un,Ui,cn,Ri,Bi,pi,_i,yi,wi,Jt,zt,Ki,Wt,ki,qi,Wi,li,wt,ji,Gi,Qi,xt,Ci,hi,Si,$t,jt,ri,Ni,ci,si,gi,Yi,Zi,ei,Nt,ai,xi,yn,dn,Rn,_n,ne,kt,on,Ei,ie,qn,Un,hn,to,oe,So,Dl,Nl,Xo,To,Po,co,fo,Ce,Ze,ct,lt,Je,_t,Fi,$i,mn,Pi,ti,kn,o,r,l,a,s,f,g,v,y,b,A,N,te,Z,x,L,K,J,Y,Jo,xo,mo,$o,Io,po,Eo,el]}var Pc=class extends W{constructor(e){super(),j(this,e,g6,h6,U,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,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:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},p6,[-1,-1,-1,-1,-1,-1,-1])}},Ap=Pc;var Zp=require("@vkontakte/videoplayer-core"),uo=require("@vkontakte/videoplayer-shared");function b6(i){Ie(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 Mp(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,C,v=z("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",I;return{c(){e=T("div"),n=B(),o=T("div"),r=T("div"),l=T("div"),s=B(),u=T("div"),m=B(),h=T("div"),g=B(),C=T("p"),I=Ne(v),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",w="triangle "+i[0]+" svelte-nhq2ld"),c(r,"class","triangles-wrapper svelte-nhq2ld"),c(C,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(y,b){S(y,e,b),S(y,n,b),S(y,o,b),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,g),p(o,C),p(C,I)},p(y,b){b&1&&t!==(t="semicircle "+y[0]+" svelte-nhq2ld")&&c(e,"class",t),b&1&&a!==(a="triangle "+y[0]+" svelte-nhq2ld")&&c(l,"class",a),b&1&&f!==(f="triangle "+y[0]+" svelte-nhq2ld")&&c(u,"class",f),b&1&&w!==(w="triangle "+y[0]+" svelte-nhq2ld")&&c(h,"class",w),b&2&&v!==(v=z("doubletap_seek_step",{seconds:y[1].toFixed(0)})+"")&&Qe(I,v)},d(y){y&&(k(e),k(n),k(o))}}}function v6(i){let e,t,n,o,r=i[2]&&Mp(i);return{c(){e=T("div"),r&&r.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){S(l,e,a),r&&r.m(e,null),n||(o=pe(e,"click",st(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=Mp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:Se,o:Se,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function y6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,f=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(s),h=0,l(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Gn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,f,r,l]}var Ic=class extends W{constructor(e){super(),j(this,e,y6,v6,U,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},b6)}},Ec=Ic;function w6(i,e,t){let{playNextVideo:n}=e;return qt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var Lc=class extends W{constructor(e){super(),j(this,e,w6,null,U,{playNextVideo:0})}},Vp=Lc;var{window:k6}=Vo;function C6(i){Ie(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .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-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function Rp(i){let e,t,n,o;e=new Ec({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[99],handleSecondClick:i[130]}});let r=!i[49]&&Bp(i);return{c(){q(e.$$.fragment),t=B(),r&&r.c(),n=dt()},m(l,a){V(e,l,a),S(l,t,a),r&&r.m(l,a),S(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[49]?r&&(fe(),_(r,1,1,()=>{r=null}),de()):r?(r.p(l,a),a[1]&262144&&d(r,1)):(r=Bp(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(k(t),k(n)),R(e,l),r&&r.d(l)}}}function Bp(i){let e,t;return e=new Ec({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[99],handleSecondClick:i[131]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qp(i){var n;let e,t;return e=new bs({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){q(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Dp(i){let e,t;return e=new Al({props:{kind:"recover",thumbUrl:i[2]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Np(i){let e,t;return e=new Al({props:{kind:"record",thumbUrl:i[2]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Op(i){let e,t,n;return t=new kr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),O(e,"hidden",i[34]!=="ads")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&8)&&O(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Fp(i){let e,t;return e=new Vp({props:{playNextVideo:i[22]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hp(i){let e,t;return e=new ms({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zp(i){let e,t,n;return t=new mr({props:{"aria-label":z("video360")}}),{c(){e=T("div"),q(t.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Up(i){let e,t;return e=new _s({props:{thumbUrl:i[2],chromecastDeviceName:i[52]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&2097152&&(r.chromecastDeviceName=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Kp(i){let e,t;return e=new ps({props:{shifted:i[30],captions:i[54],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&8388608&&(r.captions=n[54]),o[1]&8192&&(r.position=n[44]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wp(i){let e,t,n,o,r;return t=new hs({}),{c(){e=T("div"),q(t.$$.fragment)},m(l,a){S(l,e,a),V(t,e,null),n=!0,o||(r=pe(e,"click",st(i[100])),o=!0)},p:Se,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,r()}}}function jp(i){let e,t,n;function o(l){i[132](l)}let r={bottomHidden:i[34]==="thumb"||i[34]==="LiveWaitingStart"||i[34]==="LiveWaitingRecover"||i[34]==="LiveWaitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[55]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[97],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[103],onDisabledSeekToInteractiveClick:i[104]};return i[37]!==void 0&&(r.controlsElementRef=i[37]),e=new ds({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.bottomHidden=l[34]==="thumb"||l[34]==="LiveWaitingStart"||l[34]==="LiveWaitingRecover"||l[34]==="LiveWaitingRecord"||l[34]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&16384&&(s.bottomNoSmooth=l[45]),a[1]&8&&(s.isAds=l[34]==="ads"),a[0]&32|a[1]&16777216&&(s.canRewindLive=l[5]&&l[55]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&256&&(s.customFullscreenSupported=l[39]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=l[37],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Gp(i){let e,t;return e=new Cl({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qp(i){let e,t;return e=new Er({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yp(i){let e,t,n=i[5]&&i[78]&&!i[48].has("TIMELINE"),o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P;e=new gs({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let A=n&&Rp(i),M=i[34]==="LiveWaitingStart"&&qp(i),N=i[34]==="LiveWaitingRecover"&&Dp(i),te=i[34]==="LiveWaitingRecord"&&Np(i),_e=i[6]&&i[21]&&Op(i),Z=i[41]&&i[17]&&i[18]&&Fp(i),x=i[50]&&Hp(i),se=i[51]&&zp(i),L=i[35]&&Up(i),K=i[53].value!=="off"&&Kp(i),J=i[33]&&Wp(i),Y=i[21]&&jp(i);v=new Sr({props:{isLive:i[56],isHidden:!i[40],isPlaying:i[46],position:i[44],duration:i[43]}});let F=i[38]&&Gp(i),G=i[57]&&Qp(i);return{c(){q(e.$$.fragment),t=B(),A&&A.c(),o=B(),M&&M.c(),r=B(),N&&N.c(),l=B(),te&&te.c(),a=B(),_e&&_e.c(),s=B(),Z&&Z.c(),u=B(),x&&x.c(),f=B(),se&&se.c(),m=B(),L&&L.c(),h=B(),K&&K.c(),w=B(),J&&J.c(),g=B(),Y&&Y.c(),C=B(),q(v.$$.fragment),I=B(),F&&F.c(),y=B(),G&&G.c(),b=dt()},m(X,le){V(e,X,le),S(X,t,le),A&&A.m(X,le),S(X,o,le),M&&M.m(X,le),S(X,r,le),N&&N.m(X,le),S(X,l,le),te&&te.m(X,le),S(X,a,le),_e&&_e.m(X,le),S(X,s,le),Z&&Z.m(X,le),S(X,u,le),x&&x.m(X,le),S(X,f,le),se&&se.m(X,le),S(X,m,le),L&&L.m(X,le),S(X,h,le),K&&K.m(X,le),S(X,w,le),J&&J.m(X,le),S(X,g,le),Y&&Y.m(X,le),S(X,C,le),V(v,X,le),S(X,I,le),F&&F.m(X,le),S(X,y,le),G&&G.m(X,le),S(X,b,le),P=!0},p(X,le){let qe={};le[0]&16|le[1]&12&&(qe.hidden=X[34]!=="thumb"||X[33]||X[89]&&X[4]),le[0]&4&&(qe.thumbUrl=X[2]),le[0]&268435456&&(qe.startVideo=X[28]),e.$set(qe),le[0]&32|le[1]&131072&&(n=X[5]&&X[78]&&!X[48].has("TIMELINE")),n?A?(A.p(X,le),le[0]&32|le[1]&131072&&d(A,1)):(A=Rp(X),A.c(),d(A,1),A.m(o.parentNode,o)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),X[34]==="LiveWaitingStart"?M?(M.p(X,le),le[1]&8&&d(M,1)):(M=qp(X),M.c(),d(M,1),M.m(r.parentNode,r)):M&&(fe(),_(M,1,1,()=>{M=null}),de()),X[34]==="LiveWaitingRecover"?N?(N.p(X,le),le[1]&8&&d(N,1)):(N=Dp(X),N.c(),d(N,1),N.m(l.parentNode,l)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),X[34]==="LiveWaitingRecord"?te?(te.p(X,le),le[1]&8&&d(te,1)):(te=Np(X),te.c(),d(te,1),te.m(a.parentNode,a)):te&&(fe(),_(te,1,1,()=>{te=null}),de()),X[6]&&X[21]?_e?(_e.p(X,le),le[0]&2097216&&d(_e,1)):(_e=Op(X),_e.c(),d(_e,1),_e.m(s.parentNode,s)):_e&&(fe(),_(_e,1,1,()=>{_e=null}),de()),X[41]&&X[17]&&X[18]?Z?(Z.p(X,le),le[0]&393216|le[1]&1024&&d(Z,1)):(Z=Fp(X),Z.c(),d(Z,1),Z.m(u.parentNode,u)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),de()),X[50]?x?le[1]&524288&&d(x,1):(x=Hp(X),x.c(),d(x,1),x.m(f.parentNode,f)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),X[51]?se?le[1]&1048576&&d(se,1):(se=zp(X),se.c(),d(se,1),se.m(m.parentNode,m)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),X[35]?L?(L.p(X,le),le[1]&16&&d(L,1)):(L=Up(X),L.c(),d(L,1),L.m(h.parentNode,h)):L&&(fe(),_(L,1,1,()=>{L=null}),de()),X[53].value!=="off"?K?(K.p(X,le),le[1]&4194304&&d(K,1)):(K=Kp(X),K.c(),d(K,1),K.m(w.parentNode,w)):K&&(fe(),_(K,1,1,()=>{K=null}),de()),X[33]?J?(J.p(X,le),le[1]&4&&d(J,1)):(J=Wp(X),J.c(),d(J,1),J.m(g.parentNode,g)):J&&(fe(),_(J,1,1,()=>{J=null}),de()),X[21]?Y?(Y.p(X,le),le[0]&2097152&&d(Y,1)):(Y=jp(X),Y.c(),d(Y,1),Y.m(C.parentNode,C)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),de());let Xe={};le[1]&33554432&&(Xe.isLive=X[56]),le[1]&512&&(Xe.isHidden=!X[40]),le[1]&32768&&(Xe.isPlaying=X[46]),le[1]&8192&&(Xe.position=X[44]),le[1]&4096&&(Xe.duration=X[43]),v.$set(Xe),X[38]?F?le[1]&128&&d(F,1):(F=Gp(X),F.c(),d(F,1),F.m(y.parentNode,y)):F&&(fe(),_(F,1,1,()=>{F=null}),de()),X[57]?G?le[1]&67108864&&d(G,1):(G=Qp(X),G.c(),d(G,1),G.m(b.parentNode,b)):G&&(fe(),_(G,1,1,()=>{G=null}),de())},i(X){P||(d(e.$$.fragment,X),d(A),d(M),d(N),d(te),d(_e),d(Z),d(x),d(se),d(L),d(K),d(J),d(Y),d(v.$$.fragment,X),d(F),d(G),P=!0)},o(X){_(e.$$.fragment,X),_(A),_(M),_(N),_(te),_(_e),_(Z),_(x),_(se),_(L),_(K),_(J),_(Y),_(v.$$.fragment,X),_(F),_(G),P=!1},d(X){X&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(f),k(m),k(h),k(w),k(g),k(C),k(I),k(y),k(b)),R(e,X),A&&A.d(X),M&&M.d(X),N&&N.d(X),te&&te.d(X),_e&&_e.d(X),Z&&Z.d(X),x&&x.d(X),se&&se.d(X),L&&L.d(X),K&&K.d(X),J&&J.d(X),Y&&Y.d(X),R(v,X),F&&F.d(X),G&&G.d(X)}}}function S6(i){let e,t,n,o,r,l=i[47],a,s,u,f,m,h,w=Yp(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=B(),w.c(),a=B(),s=T("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[46]),O(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-6x5lql"),O(t,"hidden",i[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=z("aria_label_video_player")),c(e,"tabindex","-1")},m(g,C){S(g,e,C),p(e,t),p(t,n),i[129](n),p(e,r),w.m(e,null),p(e,a),p(e,s),i[133](s),i[134](e),f=!0,m||(h=[pe(k6,"blur",i[98]),pe(t,"click",Yt(i[99])),pe(e,"click",i[101],!0),pe(e,"focusin",i[102],!0)],m=!0)},p(g,C){(!f||C[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||C[1]&32768)&&c(n,"data-is-playing",g[46]),(!f||C[0]&2)&&O(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||C[1]&8)&&O(t,"hidden",g[34]!=="video"),C[1]&65536&&U(l,l=g[47])?(fe(),_(w,1,1,Se),de(),w=Yp(g),w.c(),d(w,1),w.m(e,a)):w.p(g,C)},i(g){f||(d(w),f=!0)},o(g){_(w),f=!1},d(g){g&&k(e),i[129](null),w.d(g),i[133](null),i[134](null),m=!1,nt(h)}}}function T6(i,e,t){var An,_n;let n,o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M,N,te,_e,Z,x,se,L,K,J,Y,F,G,X,le,qe,Xe,{store:Ee}=e,{uiConfig:Be}=e,{thumbUrl:De}=e,{videoContainer:xe}=e,{interactiveContainer:ae}=e,{live:he}=e,{autoplay:at}=e,{canRewindLive:Ce}=e,{showAds:Ke}=e,{adsSlotId:mt=void 0}=e,{adsParams:Ye=void 0}=e,{adsPreviewParam:Ge=void 0}=e,{duration:Ze=void 0}=e,{logoClickable:et}=e,{logoHidden:ce}=e,{logoTargetUrl:Pe=""}=e,{showNextPrevButtons:We=!1}=e,{nextButtonActive:re=!1}=e,{prevButtonActive:Te=!1}=e,{endScreenVideoTitle:pt=void 0}=e,{endScreenVideoThumb:Le=void 0}=e,{isOneVideoPlaylist:ut=!1}=e,{supportLink:me}=e,{shadowRootContainer:tt=void 0}=e,{outerContainerRef:Ct=void 0}=e,{showMiniTimer:bt=!1}=e,{fullScreenTarget:Ue=void 0}=e,{playerStarted:Ot=!1}=e,{playNextVideo:Vt=uo.noop}=e,{playPrevVideo:St=uo.noop}=e,{repeatPlaylist:ni=uo.noop}=e,{seekToInteractive:ct}=e,{toggleGraph:lt}=e,{playPrevChapter:be}=e,{firstStart:Je}=e,{seekTime:_t}=e,Ft=Ee.getLogger().createComponentLog("Root component"),yt=Ee.interfaceLanguage$;H(i,yt,ne=>t(47,se=ne));let Xt=Ee.state.playbackState$;H(i,Xt,ne=>t(126,te=ne));let mi=Ee.ads.playbackState;H(i,mi,ne=>t(127,_e=ne));let Mt=Ee.state.positionWithScrubbing$;H(i,Mt,ne=>t(44,a=ne));let zi=Ee.state.duration$;H(i,zi,ne=>t(43,l=ne));let an=Ee.playerPhase;H(i,an,ne=>t(34,P=ne));let oi=Ee.ui.isFullscreen;H(i,oi,ne=>t(140,s=ne));let Vi=Ee.ui.controlsVisible;H(i,Vi,ne=>t(30,o=ne));let un=Ee.ui.interactiveHideMobileControls;H(i,un,ne=>t(118,h=ne));let Ui=Ee.ui.settingsMenuVisible;H(i,Ui,ne=>t(117,n=ne));let cn=Ee.ui.scrubbingInProgress;H(i,cn,ne=>t(119,g=ne));let Ri=Ee.ui.debugPanelVisible;H(i,Ri,ne=>t(57,Xe=ne));let Bi=Ee.state.isLoaderVisible;H(i,Bi,ne=>t(128,Z=ne));let pi=Ee.state.isEnded$;H(i,pi,ne=>t(121,I=ne));let _i=Ee.state.chromecastConnected$;H(i,_i,ne=>t(35,A=ne));let yi=Ee.state.chromecastDeviceName$;H(i,yi,ne=>t(52,F=ne));let wi=Ee.ads.postrollPassed;H(i,wi,ne=>t(122,y=ne));let Jt=Ee.ui.mobileUnmuteButtonExpanded,zt=Ee.ui.mobileUnmuteButtonVisible,Ki=Ee.state.isLive$;H(i,Ki,ne=>t(56,qe=ne));let Wt=Ee.state.isPlaying$;H(i,Wt,ne=>t(46,x=ne));let ki=Ee.state.isActiveLive$;H(i,ki,ne=>t(49,K=ne));let qi=Ee.state.isRewindableLive$,Wi=Ee.state.crashed$;H(i,Wi,ne=>t(33,v=ne));let li=Ee.webApi.annotationsApi,wt=Ee.webApi.pictureInPictureApi,ji=Ee.state.videoSize$;H(i,ji,ne=>t(141,f=ne));let Di=Ee.state.currentSubtitle$;H(i,Di,ne=>t(53,G=ne));let Pt=Ee.state.currentSubtitleCaptions$;H(i,Pt,ne=>t(54,X=ne));let Gi=Ee.state.duration$;H(i,Gi,ne=>t(55,le=ne));let Qi=Ee.state.graphIsOpened$;H(i,Qi,ne=>t(125,N=ne));let xt=Ee.ui.playerSize;H(i,xt,ne=>t(31,u=ne));let Ci=Ee.ui.is3DVideo;H(i,Ci,ne=>t(50,J=ne));let hi=Ee.ui.icon3DVideoVisible;H(i,hi,ne=>t(51,Y=ne));let Si=Ee.ui.rotateAlpha;H(i,Si,ne=>t(32,w=ne));let $t=Ee.state.isInteractive,jt=Ee.state.isInteractiveTime$;H(i,jt,ne=>t(120,C=ne));let ri=Ee.state.isInteractiveExpectation$;H(i,ri,ne=>t(124,M=ne));let Ni=Ee.state.hasInteractiveBranches,ci=Ee.ui.controls.disabledControls$;H(i,ci,ne=>t(48,L=ne));let fi=Ee.ui.touched;H(i,fi,ne=>t(123,b=ne));let si=Ee.ui.overlayContainer$,gi=Ee.state.loadedMetadata$;H(i,gi,ne=>t(139,r=ne));let Yi=Ee.actions.internal.closeSettingsMenu,vn=(An=Ee.callbacks)==null?void 0:An.onDisabledPlayPrevChapterClick,Zi=(_n=Ee.callbacks)==null?void 0:_n.onDisabledSeekToInteractiveClick,di,ei,Xi,Nt,Ut,Ji,Ti,Oi=Fe(!1);H(i,Oi,ne=>t(45,m=ne));let fn,it=!1,bi,ai=!1,je,xi=!0,yn,dn,Fi=!1,$i;wt==null||wt.setContext(zl());let mn=ne=>{clearTimeout(Nt),ne&&(zt.set(!0),Jt.set(!0),Nt=window.setTimeout(()=>{Jt.set(!1)},Be.controls.collapseMobileUnmute),$t||ti(Be.controls.hideTimeoutMobile))};Ee.setUiCallbacks({onStarted:mn});let Pi=()=>{window.clearTimeout(Xi),t(112,it=!1),h&&un.set(!1)},ti=ne=>{Pi(),t(112,it=!0),Xi=window.setTimeout(()=>t(112,it=!1),ne);let kt=ne-100;fn=window.setTimeout(()=>{m&&Oi.set(!1)},kt>0?kt:ne)},en=Ci.subscribe(ne=>{hi.set(ne),ne&&(window.clearTimeout(Ut),Ut=window.setTimeout(()=>hi.set(!1),Be.controls.hide360IconTimeout))}),Ii=async()=>{var kt,on,Ei,ie;let ne=bo();if(ne){let ft=jl(),Gt=kn(),qn=uo.clientChecker.isSamsungBrowser&&ft===tt;ne=ft===Gt||qn}if(ne){ti(Be.controls.hideTimeoutFullscreen);try{await(wt==null?void 0:wt.remove())}catch(ft){Ft({message:String(ft)})}try{let ft=f!=null&&f.width&&(f!=null&&f.height)?f:u;await zf(ft)}catch(ft){Ft({message:String(ft)})}}oi.set(ne),Ee.getAdmanWrapper().setFullscreen(ne),s?(on=(kt=Ee.callbacks)==null?void 0:kt.onFullscreenEnter)==null||on.call(kt):(ie=(Ei=Ee.callbacks)==null?void 0:Ei.onFullscreenExit)==null||ie.call(Ei)},Vn=ne=>{let kt=ne;xt.set({width:kt.target.width,height:kt.target.height})};qt(()=>{var kt;return yr(Ii),Be.features.annotationsInside&&(li==null||li.init(di)),Uo(wt)&&(wt==null||wt.assignPlayerContainer(di),wt==null||wt.registryExternalEventHandlers({resize:Vn})),t(39,xi=!uo.clientChecker.isIphoneOrOldIpad),ae&&((kt=xe.parentElement)==null||kt.insertBefore(ae,xe.nextSibling)),()=>{window.clearTimeout(Xi),window.clearTimeout(fn),window.clearTimeout(Nt),window.clearTimeout(Ut),en(),wt==null||wt.dispose(),wr(Ii)}});let wn=ne=>{let kt=a+(ne==="forward"?1:-1)*Be.controls.seekStepMobile/1e3;kt<0?kt=0:kt>l&&(kt=l-1),t(114,ai=!0),_t(kt)},kn=()=>{let ne=uo.clientChecker.isIOS||Be.features.fullscreenInternalTargetPlayerContainer||!Ct?di:Ct,kt=ne.getRootNode(),on=kt instanceof ShadowRoot?kt.host:kt,Ei=Ue instanceof HTMLElement&&Ue.contains(on);return Be.allowChangingFullscreenTarget&&Ue&&Ei?Ue:ne},Cn=async()=>{if(bo())await vr(document),Ft({message:"exit fullscreen"});else{if(Ft({message:"request fullscreen"}),uo.clientChecker.isIOS&&!r)return;await br(kn())}},pn=()=>{Yi()},Rn=()=>{if(n){pn();return}if(!Ot){Je(),ti(Be.controls.hideTimeoutCursor);return}t(114,ai=!1),o?Pi():ti(Be.controls.hideTimeoutMobile)},tn=()=>{if(n){pn();return}},nn=()=>{fi.set(!0)},Rt=()=>{$t||(Oi.set(!0),ti(Be.controls.hideTimeoutCursor))},Bn=ne=>{vn&&(vn(ne),ti(Be.controls.hideTimeoutMobile))},Sn=ne=>{Zi&&(Zi(ne),ti(Be.controls.hideTimeoutMobile))};function Fn(ne){ge[ne?"unshift":"push"](()=>{xe=ne,t(0,xe)})}let ii=()=>wn("backward"),Hn=()=>wn("forward");function zn(ne){ei=ne,t(37,ei)}function Tn(ne){ge[ne?"unshift":"push"](()=>{Ti=ne,t(29,Ti)})}function Pn(ne){ge[ne?"unshift":"push"](()=>{di=ne,t(36,di)})}return i.$$set=ne=>{"store"in ne&&t(105,Ee=ne.store),"uiConfig"in ne&&t(1,Be=ne.uiConfig),"thumbUrl"in ne&&t(2,De=ne.thumbUrl),"videoContainer"in ne&&t(0,xe=ne.videoContainer),"interactiveContainer"in ne&&t(106,ae=ne.interactiveContainer),"live"in ne&&t(3,he=ne.live),"autoplay"in ne&&t(4,at=ne.autoplay),"canRewindLive"in ne&&t(5,Ce=ne.canRewindLive),"showAds"in ne&&t(6,Ke=ne.showAds),"adsSlotId"in ne&&t(7,mt=ne.adsSlotId),"adsParams"in ne&&t(8,Ye=ne.adsParams),"adsPreviewParam"in ne&&t(9,Ge=ne.adsPreviewParam),"duration"in ne&&t(10,Ze=ne.duration),"logoClickable"in ne&&t(11,et=ne.logoClickable),"logoHidden"in ne&&t(12,ce=ne.logoHidden),"logoTargetUrl"in ne&&t(13,Pe=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(14,We=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(15,re=ne.nextButtonActive),"prevButtonActive"in ne&&t(16,Te=ne.prevButtonActive),"endScreenVideoTitle"in ne&&t(17,pt=ne.endScreenVideoTitle),"endScreenVideoThumb"in ne&&t(18,Le=ne.endScreenVideoThumb),"isOneVideoPlaylist"in ne&&t(19,ut=ne.isOneVideoPlaylist),"supportLink"in ne&&t(20,me=ne.supportLink),"shadowRootContainer"in ne&&t(107,tt=ne.shadowRootContainer),"outerContainerRef"in ne&&t(108,Ct=ne.outerContainerRef),"showMiniTimer"in ne&&t(109,bt=ne.showMiniTimer),"fullScreenTarget"in ne&&t(110,Ue=ne.fullScreenTarget),"playerStarted"in ne&&t(21,Ot=ne.playerStarted),"playNextVideo"in ne&&t(22,Vt=ne.playNextVideo),"playPrevVideo"in ne&&t(23,St=ne.playPrevVideo),"repeatPlaylist"in ne&&t(24,ni=ne.repeatPlaylist),"seekToInteractive"in ne&&t(25,ct=ne.seekToInteractive),"toggleGraph"in ne&&t(26,lt=ne.toggleGraph),"playPrevChapter"in ne&&t(27,be=ne.playPrevChapter),"firstStart"in ne&&t(28,Je=ne.firstStart),"seekTime"in ne&&t(111,_t=ne.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&12|i.$$.dirty[4]&24&&t(38,Ji=(P==="video"&&Z||P==="ads"&&_e==="inactive")&&!v),i.$$.dirty[0]&536870912&&si.set(Ti),i.$$.dirty[4]&4&&t(113,bi=te!==Zp.PlaybackState.PLAYING),i.$$.dirty[3]&303562752|i.$$.dirty[4]&3&&t(115,je=N||h||!it&&(I&&!!Ni||bi&&M)),i.$$.dirty[1]&28|i.$$.dirty[3]&91750400&&Vi.set((bi||n||g||A||it&&!ai)&&!je&&P==="video"&&!v),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360&&t(40,yn=Be.features.thumbTimer&&bt&&P==="video"&&!o&&!v&&!$t&&(Be.hideThumbTimerAfterTouch&&!b||!Be.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368&&t(41,dn=(Ke&&y||!Ke)&&I&&!v),i.$$.dirty[0]&2|i.$$.dirty[3]&209715200&&(!g&&Fi&&!C&&ti(Be.controls.hideTimeoutMobile),t(116,Fi=g)),i.$$.dirty[0]&1|i.$$.dirty[1]&3&&t(42,$i=xe&&w%180?u.height/u.width:1)},[xe,Be,De,he,at,Ce,Ke,mt,Ye,Ge,Ze,et,ce,Pe,We,re,Te,pt,Le,ut,me,Ot,Vt,St,ni,ct,lt,be,Je,Ti,o,u,w,v,P,A,di,ei,Ji,xi,yn,dn,$i,l,a,m,x,se,L,K,J,Y,F,G,X,le,qe,Xe,yt,Xt,mi,Mt,zi,an,oi,Vi,un,Ui,cn,Ri,Bi,pi,_i,yi,wi,Ki,Wt,ki,qi,Wi,ji,Di,Pt,Gi,Qi,xt,Ci,hi,Si,$t,jt,ri,ci,fi,gi,Oi,wn,Cn,pn,Rn,tn,nn,Rt,Bn,Sn,Ee,ae,tt,Ct,bt,Ue,_t,it,bi,ai,je,Fi,n,h,g,C,I,y,b,M,N,te,_e,Z,Fn,ii,Hn,zn,Tn,Pn]}var Ac=class extends W{constructor(e){super(),j(this,e,T6,S6,U,{store:105,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:106,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:107,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},C6,[-1,-1,-1,-1,-1,-1])}},Xp=Ac;function P6(i){Ie(i,"svelte-1tl3een",`.root.svelte-1tl3een{--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 $5(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","title svelte-1bcvcf2"),O(e,"hidden",i[1])},m(n,o){S(n,e,o),p(e,t)},p(n,[o]){o&1&&Qe(t,n[0]),o&2&&O(e,"hidden",n[1])},i:Se,o:Se,d(n){n&&C(e)}}}function e6(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 yc=class extends W{constructor(e){super(),j(this,e,e6,$5,U,{title:0,isHidden:1},x5)}},np=yc;function t6(i){Ie(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 op(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[0]),o=B(),r=T("span"),r.textContent=`${z("waiting_live_day_value")}`,l=B(),a=T("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&1&&Qe(n,s[0])},d(s){s&&(C(e),C(l),C(a))}}}function lp(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[1]),o=B(),r=T("span"),r.textContent=`${z("waiting_live_hour_value")}`,l=B(),a=T("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&2&&Qe(n,s[1])},d(s){s&&(C(e),C(l),C(a))}}}function rp(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ne(i[2]),o=B(),r=T("span"),r.textContent=`${z("waiting_live_minute_value")}`,l=B(),a=T("span"),a.textContent=`${z("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&4&&Qe(n,s[2])},d(s){s&&(C(e),C(l),C(a))}}}function sp(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=Ne(i[3]),o=B(),r=T("span"),r.textContent=`${z("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Qe(n,l[3])},d(l){l&&C(e)}}}function i6(i){let e,t,n,o,r=i[0]&&op(i),l=i[1]&&lp(i),a=i[2]&&rp(i),s=i[3]&&sp(i);return{c(){e=T("div"),r&&r.c(),t=B(),l&&l.c(),n=B(),a&&a.c(),o=B(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){S(u,e,f),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?r?r.p(u,f):(r=op(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,f):(l=lp(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,f):(a=rp(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=sp(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:Se,o:Se,d(u){u&&C(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function n6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,f=w=>String(w).padStart(2,"0"),m=w=>{let g=Math.floor(w/86400);g&&(w-=g*86400,t(0,r=f(g)));let k=Math.floor(w/3600);t(1,l=f(k));let v=Math.floor(w/60)%60;t(2,a=f(v));let I=w%60;t(3,s=f(I))},h=()=>{let w=Math.floor(Date.now()/1e3),g=n-w;m(g),g>=1?u=requestAnimationFrame(h):o()};return Dt(()=>{u=requestAnimationFrame(h)}),Gn(()=>{cancelAnimationFrame(u)}),i.$$set=w=>{"startTime"in w&&t(4,n=w.startTime),"onTimerOver"in w&&t(5,o=w.onTimerOver)},[r,l,a,s,n,o]}var wc=class extends W{constructor(e){super(),j(this,e,n6,i6,U,{startTime:4,onTimerOver:5},t6)}},ap=wc;function o6(i){let e,t,n,o,r,l,a=i[2].default,s=Ae(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]],f={};for(let m=0;m<u.length;m+=1)f=ue(f,u[m]);return{c(){e=q("svg"),s&&s.c(),t=q("path"),n=q("path"),o=q("path"),r=q("path"),c(t,"fill","#fefffe"),c(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"),yi(t,"opacity",".965"),c(n,"fill","#fefffe"),c(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"),yi(n,"opacity",".965"),c(o,"fill","#fefffe"),c(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"),yi(o,"opacity",".985"),c(r,"fill","#fefffe"),c(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"),yi(r,"opacity",".986"),we(e,f)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Re(m[1]),null),we(e,f=Oe(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){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&C(e),s&&s.d(m)}}}function l6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var kc=class extends W{constructor(e){super(),j(this,e,l6,o6,U,{})}},up=kc;function r6(i){Ie(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 s6(i){let e,t,n,o,r;return o=new ap({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${z("waiting_live_timer_title")}`,n=B(),D(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){S(l,e,a),p(e,t),p(e,n),V(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&C(e),R(o)}}}function a6(i){let e,t,n,o,r,l;return n=new up({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=B(),r=T("span"),r.textContent=`${z("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(r,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),p(e,t),V(n,t,null),p(e,o),p(e,r),l=!0},p:Se,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&C(e),R(n)}}}function u6(i){let e,t,n,o,r,l=[a6,s6],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){S(u,e,f),a[t].m(e,null),r=!0},p(u,[f]){let m=t;t=s(u,f),t===m?a[t].p(u,f):(fe(),_(a[m],1,1,()=>{a[m]=null}),de(),n=a[t],n?n.p(u,f):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&C(e),a[t].d()}}}function c6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>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,l]}var Cc=class extends W{constructor(e){super(),j(this,e,c6,u6,U,{thumbUrl:0,startTime:1},r6)}},bs=Cc;function f6(i){Ie(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,l,a,s;return n=new Cl({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=B(),r=T("p"),l=Ne(i[1]),c(r,"class","waiting-title svelte-xvqwsa"),c(t,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${i[0]}')`)},m(u,f){S(u,e,f),p(e,t),V(n,t,null),p(t,o),p(t,r),p(r,l),s=!0},p(u,[f]){(!s||f&2)&&Qe(l,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){_(n.$$.fragment,u),s=!1},d(u){u&&C(e),R(n)}}}function m6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"kind"in l&&t(2,o=l.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let l={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")};t(1,r=l[o]||"")}},[n,r,o]}var Sc=class extends W{constructor(e){super(),j(this,e,m6,d6,U,{thumbUrl:0,kind:2},f6)}},Al=Sc;var{window:p6}=Vo;function _6(i){Ie(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .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-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function fp(i){var n;let e,t;return e=new bs({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function dp(i){let e,t;return e=new Al({props:{kind:"recover",thumbUrl:i[3]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mp(i){let e,t;return e=new Al({props:{kind:"record",thumbUrl:i[3]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function pp(i){let e,t,n;return t=new kr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),O(e,"hidden",i[38]!=="ads")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&O(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function _p(i){let e,t;return e=new Ld({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function hp(i){let e,t;return e=new np({props:{title:i[2],isHidden:!i[36]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gp(i){let e,t;return e=new ms({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function bp(i){let e,t,n;return t=new mr({props:{"aria-label":z("video360")}}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function vp(i){let e,t;return e=new _s({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&8388608&&(r.chromecastDeviceName=n[54]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function yp(i){let e,t;return e=new ps({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&33554432&&(r.captions=n[56]),o[1]&67108864&&(r.position=n[57]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function wp(i){let e,t,n,o,r;return t=new hs({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){S(l,e,a),V(t,e,null),n=!0,o||(r=[pe(e,"contextmenu",Yt(i[108])),pe(e,"click",st(i[119]))],o=!0)},p:Se,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&C(e),R(t),o=!1,nt(r)}}}function kp(i){let e,t,n;function o(l){i[158](l)}let r={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:Ep,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[157],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new ds({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="LiveWaitingStart"||l[38]==="LiveWaitingRecover"||l[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=l[6]&&l[58]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[157]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Cp(i){let e,t;return e=new Cl({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sp(i){let e,t;return e=new Hd({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tp(i){let e,t;return e=new Er({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Pp(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e;e=new gs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let Z=i[38]==="LiveWaitingStart"&&fp(i),x=i[38]==="LiveWaitingRecover"&&dp(i),se=i[38]==="LiveWaitingRecord"&&mp(i),A=i[7]&&i[22]&&pp(i),K=i[31]&&i[18]&&i[19]&&_p(i),J=i[44]&&hp(i),Y=i[49]&&gp(i),F=i[53]&&bp(i),G=i[39]&&vp(i),X=i[55].value!=="off"&&yp(i),oe=i[37]&&wp(i),De=i[22]&&kp(i);k=new Sr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),I=new Y0({props:{data:i[103]}});function Xe(ae){i[160](ae)}let Ee={supportLink:i[21],returnFocus:i[159],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ee.menuElementRef=i[32]),b=new ud({props:Ee}),ge.push(()=>ze(b,"menuElementRef",Xe));let Be=i[42]&&Cp(i),qe=i[62]&&Sp(i),xe=i[63]&&Tp(i);return{c(){D(e.$$.fragment),t=B(),Z&&Z.c(),n=B(),x&&x.c(),o=B(),se&&se.c(),r=B(),A&&A.c(),l=B(),K&&K.c(),a=B(),J&&J.c(),s=B(),Y&&Y.c(),u=B(),F&&F.c(),f=B(),G&&G.c(),m=B(),X&&X.c(),h=B(),oe&&oe.c(),w=B(),De&&De.c(),g=B(),D(k.$$.fragment),v=B(),D(I.$$.fragment),y=B(),D(b.$$.fragment),L=B(),Be&&Be.c(),M=B(),qe&&qe.c(),N=B(),xe&&xe.c(),te=ft()},m(ae,he){V(e,ae,he),S(ae,t,he),Z&&Z.m(ae,he),S(ae,n,he),x&&x.m(ae,he),S(ae,o,he),se&&se.m(ae,he),S(ae,r,he),A&&A.m(ae,he),S(ae,l,he),K&&K.m(ae,he),S(ae,a,he),J&&J.m(ae,he),S(ae,s,he),Y&&Y.m(ae,he),S(ae,u,he),F&&F.m(ae,he),S(ae,f,he),G&&G.m(ae,he),S(ae,m,he),X&&X.m(ae,he),S(ae,h,he),oe&&oe.m(ae,he),S(ae,w,he),De&&De.m(ae,he),S(ae,g,he),V(k,ae,he),S(ae,v,he),V(I,ae,he),S(ae,y,he),V(b,ae,he),S(ae,L,he),Be&&Be.m(ae,he),S(ae,M,he),qe&&qe.m(ae,he),S(ae,N,he),xe&&xe.m(ae,he),S(ae,te,he),_e=!0},p(ae,he){let at={};he[0]&32|he[1]&192&&(at.hidden=ae[38]!=="thumb"||ae[37]||ae[92]&&ae[5]),he[0]&8&&(at.thumbUrl=ae[3]),he[0]&536870912&&(at.startVideo=ae[29]),e.$set(at),ae[38]==="LiveWaitingStart"?Z?(Z.p(ae,he),he[1]&128&&d(Z,1)):(Z=fp(ae),Z.c(),d(Z,1),Z.m(n.parentNode,n)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),de()),ae[38]==="LiveWaitingRecover"?x?(x.p(ae,he),he[1]&128&&d(x,1)):(x=dp(ae),x.c(),d(x,1),x.m(o.parentNode,o)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),ae[38]==="LiveWaitingRecord"?se?(se.p(ae,he),he[1]&128&&d(se,1)):(se=mp(ae),se.c(),d(se,1),se.m(r.parentNode,r)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),ae[7]&&ae[22]?A?(A.p(ae,he),he[0]&4194432&&d(A,1)):(A=pp(ae),A.c(),d(A,1),A.m(l.parentNode,l)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),ae[31]&&ae[18]&&ae[19]?K?(K.p(ae,he),he[0]&786432|he[1]&1&&d(K,1)):(K=_p(ae),K.c(),d(K,1),K.m(a.parentNode,a)):K&&(fe(),_(K,1,1,()=>{K=null}),de()),ae[44]?J?(J.p(ae,he),he[1]&8192&&d(J,1)):(J=hp(ae),J.c(),d(J,1),J.m(s.parentNode,s)):J&&(fe(),_(J,1,1,()=>{J=null}),de()),ae[49]?Y?(Y.p(ae,he),he[1]&262144&&d(Y,1)):(Y=gp(ae),Y.c(),d(Y,1),Y.m(u.parentNode,u)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),de()),ae[53]?F?he[1]&4194304&&d(F,1):(F=bp(ae),F.c(),d(F,1),F.m(f.parentNode,f)):F&&(fe(),_(F,1,1,()=>{F=null}),de()),ae[39]?G?(G.p(ae,he),he[1]&256&&d(G,1)):(G=vp(ae),G.c(),d(G,1),G.m(m.parentNode,m)):G&&(fe(),_(G,1,1,()=>{G=null}),de()),ae[55].value!=="off"?X?(X.p(ae,he),he[1]&16777216&&d(X,1)):(X=yp(ae),X.c(),d(X,1),X.m(h.parentNode,h)):X&&(fe(),_(X,1,1,()=>{X=null}),de()),ae[37]?oe?(oe.p(ae,he),he[1]&64&&d(oe,1)):(oe=wp(ae),oe.c(),d(oe,1),oe.m(w.parentNode,w)):oe&&(fe(),_(oe,1,1,()=>{oe=null}),de()),ae[22]?De?(De.p(ae,he),he[0]&4194304&&d(De,1)):(De=kp(ae),De.c(),d(De,1),De.m(g.parentNode,g)):De&&(fe(),_(De,1,1,()=>{De=null}),de());let Ce={};he[1]&268435456&&(Ce.isLive=ae[59]),he[1]&4096&&(Ce.isHidden=!ae[43]),he[1]&1048576&&(Ce.isPlaying=ae[51]),he[1]&67108864&&(Ce.position=ae[57]),he[1]&536870912&&(Ce.duration=ae[60]),k.$set(Ce);let Ke={};he[0]&2097152&&(Ke.supportLink=ae[21]),he[1]&131072&&(Ke.returnFocus=ae[159]),he[1]&4&&(Ke.visible=ae[33]),he[1]&512&&(Ke.playerContainerRef=ae[40]),he[1]&1024&&(Ke.controlsContainerRef=ae[41]),he[1]&1073741824&&(Ke.position=ae[61]),!P&&he[1]&2&&(P=!0,Ke.menuElementRef=ae[32],He(()=>P=!1)),b.$set(Ke),ae[42]?Be?he[1]&2048&&d(Be,1):(Be=Cp(ae),Be.c(),d(Be,1),Be.m(M.parentNode,M)):Be&&(fe(),_(Be,1,1,()=>{Be=null}),de()),ae[62]?qe?he[2]&1&&d(qe,1):(qe=Sp(ae),qe.c(),d(qe,1),qe.m(N.parentNode,N)):qe&&(fe(),_(qe,1,1,()=>{qe=null}),de()),ae[63]?xe?he[2]&2&&d(xe,1):(xe=Tp(ae),xe.c(),d(xe,1),xe.m(te.parentNode,te)):xe&&(fe(),_(xe,1,1,()=>{xe=null}),de())},i(ae){_e||(d(e.$$.fragment,ae),d(Z),d(x),d(se),d(A),d(K),d(J),d(Y),d(F),d(G),d(X),d(oe),d(De),d(k.$$.fragment,ae),d(I.$$.fragment,ae),d(b.$$.fragment,ae),d(Be),d(qe),d(xe),_e=!0)},o(ae){_(e.$$.fragment,ae),_(Z),_(x),_(se),_(A),_(K),_(J),_(Y),_(F),_(G),_(X),_(oe),_(De),_(k.$$.fragment,ae),_(I.$$.fragment,ae),_(b.$$.fragment,ae),_(Be),_(qe),_(xe),_e=!1},d(ae){ae&&(C(t),C(n),C(o),C(r),C(l),C(a),C(s),C(u),C(f),C(m),C(h),C(w),C(g),C(v),C(y),C(L),C(M),C(N),C(te)),R(e,ae),Z&&Z.d(ae),x&&x.d(ae),se&&se.d(ae),A&&A.d(ae),K&&K.d(ae),J&&J.d(ae),Y&&Y.d(ae),F&&F.d(ae),G&&G.d(ae),X&&X.d(ae),oe&&oe.d(ae),De&&De.d(ae),R(k,ae),R(I,ae),R(b,ae),Be&&Be.d(ae),qe&&qe.d(ae),xe&&xe.d(ae)}}}function h6(i){let e,t,n,o,r=i[52],l,a,s,u,f=Pp(i);return{c(){e=T("div"),t=T("div"),o=B(),f.c(),l=ft(),c(t,"class","video-container svelte-12e19rp"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),O(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),O(e,"hidden",i[38]!=="video"),O(e,"nocursor",i[45])},m(m,h){S(m,e,h),p(e,t),i[156](t),S(m,o,h),f.m(m,h),S(m,l,h),a=!0,s||(u=[pe(e,"contextmenu",Yt(i[108])),pe(e,"mousedown",Yt(i[113])),pe(e,"mouseup",Yt(i[114])),pe(e,"click",Yt(i[116])),pe(e,"dblclick",Yt(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&c(t,"style",n),(!a||h[1]&1048576)&&c(t,"data-is-playing",m[51]),(!a||h[0]&2)&&O(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&O(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&O(e,"nocursor",m[45]),h[1]&2097152&&U(r,r=m[52])?(fe(),_(f,1,1,Se),de(),f=Pp(m),f.c(),d(f,1),f.m(l.parentNode,l)):f.p(m,h)},i(m){a||(d(f),a=!0)},o(m){_(f),a=!1},d(m){m&&(C(e),C(o),C(l)),i[156](null),f.d(m),s=!1,nt(u)}}}function g6(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[h6]},$$scope:{ctx:i}};return t=new Md({props:s}),i[161](t),{c(){e=T("div"),D(t.$$.fragment),n=B(),o=T("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){S(u,e,f),V(t,e,null),p(e,n),p(e,o),i[162](o),i[163](e),r=!0,l||(a=[pe(p6,"blur",i[107]),pe(e,"mouseenter",i[109]),pe(e,"mouseleave",i[111]),pe(e,"mousemove",i[112]),pe(e,"click",i[120],!0),pe(e,"focusin",i[110],!0)],l=!0)},p(u,f){let m={};f[1]&128&&(m.isAds=u[38]==="ads"),f[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&16&&(m.$$scope={dirty:f,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&C(e),i[161](null),R(t),i[162](null),i[163](null),l=!1,nt(a)}}}var Ep=!0;function Tc(i){return i?i.offsetTop+Tc(i.offsetParent):0}function Lp(i){return i?i.offsetLeft+Lp(i.offsetParent):0}function b6(i,e,t){let n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,A,K,J,Y,F,G,X,oe,De,Xe,Ee,Be,qe,xe,ae,he,at,{store:Ce}=e,{uiConfig:Ke}=e,{title:mt}=e,{thumbUrl:Ye}=e,{videoContainer:Ge}=e,{interactiveContainer:Ze}=e,{live:et}=e,{autoplay:ce}=e,{canRewindLive:Pe}=e,{showAds:We}=e,{adsSlotId:le=void 0}=e,{adsParams:Te=void 0}=e,{adsPreviewParam:pt=void 0}=e,{duration:Le=void 0}=e,{logoClickable:ut}=e,{logoHidden:me}=e,{logoTargetUrl:tt=""}=e,{showNextPrevButtons:Ct=!1}=e,{nextButtonActive:bt=!1}=e,{prevButtonActive:Ue=!1}=e,{endScreenVideoTitle:Ot=void 0}=e,{endScreenVideoThumb:Vt=void 0}=e,{isOneVideoPlaylist:St=!1}=e,{supportLink:ni}=e,{shadowRootContainer:ct=void 0}=e,{outerContainerRef:lt=void 0}=e,{playerStarted:be=!1}=e,{fullScreenTarget:Je=void 0}=e,{showMiniTimer:_t=!1}=e,{playNextVideo:Ft=vs.noop}=e,{playPrevVideo:yt=vs.noop}=e,{repeatPlaylist:Xt=vs.noop}=e,{seekToInteractive:mi}=e,{toggleGraph:Mt}=e,{playPrevChapter:Wi}=e,{firstStart:cn}=e,oi=Ce.getLogger().createComponentLog("Root component"),Bi=Ce.interfaceLanguage$;H(i,Bi,Q=>t(52,G=Q));let fn=Ce.state.playbackState$;H(i,fn,Q=>t(153,K=Q));let ji=Ce.ads.playbackState;H(i,ji,Q=>t(154,J=Q));let dn=Ce.state.positionWithScrubbing$;H(i,dn,Q=>t(57,Ee=Q));let Di=Ce.state.duration$;H(i,Di,Q=>t(60,xe=Q));let qi=Ce.playerPhase;H(i,qi,Q=>t(38,_e=Q));let pi=Ce.ui.isFullscreen;H(i,pi,Q=>t(143,g=Q));let _i=Ce.ui.controlsVisible;H(i,_i,Q=>t(36,P=Q));let wi=Ce.ui.settingsMenuVisible;H(i,wi,Q=>t(141,s=Q));let ki=Ce.ui.scrubbingInProgress;H(i,ki,Q=>t(145,y=Q));let Jt=Ce.ui.contextMenu.visible$;H(i,Jt,Q=>t(33,n=Q));let zt=Ce.ui.debugPanelVisible;H(i,zt,Q=>t(63,at=Q));let Gi=Ce.state.isLoaderVisible;H(i,Gi,Q=>t(155,Y=Q));let jt=Ce.state.isEnded$;H(i,jt,Q=>t(142,f=Q));let Ci=Ce.state.chromecastConnected$;H(i,Ci,Q=>t(39,se=Q));let Ni=Ce.state.chromecastDeviceName$;H(i,Ni,Q=>t(54,oe=Q));let Qi=Ce.ads.postrollPassed;H(i,Qi,Q=>t(148,N=Q));let li=Ce.state.isLive$;H(i,li,Q=>t(59,qe=Q));let wt=Ce.state.isPlaying$;H(i,wt,Q=>t(51,F=Q));let Yi=Ce.state.crashed$;H(i,Yi,Q=>t(37,M=Q));let Oi=Ce.webApi.annotationsApi,Pt=Ce.webApi.pictureInPictureApi,Zi=Ce.state.currentSubtitle$;H(i,Zi,Q=>t(55,De=Q));let Xi=Ce.state.currentSubtitleCaptions$;H(i,Xi,Q=>t(56,Xe=Q));let xt=Ce.state.duration$;H(i,xt,Q=>t(58,Be=Q));let Si=Ce.state.graphIsOpened$;H(i,Si,Q=>t(149,te=Q));let hi=Ce.ui.playerSize;H(i,hi,Q=>t(34,h=Q));let Ti=Ce.ui.is3DVideo;H(i,Ti,Q=>t(49,m=Q));let $t=Ce.ui.icon3DVideoVisible;H(i,$t,Q=>t(53,X=Q));let Gt=Ce.ui.rotateAlpha;H(i,Gt,Q=>t(35,I=Q));let ri=Ce.state.isInteractive,Fi=Ce.state.isInteractiveTime$;H(i,Fi,Q=>t(146,b=Q));let ci=Ce.state.isInteractiveExpectation$;H(i,ci,Q=>t(152,A=Q));let fi=Ce.state.hasInteractiveBranches,si=Ce.ui.touched;H(i,si,Q=>t(150,Z=Q));let gi=Ce.ui.modals.hotKeyMap.data;H(i,gi,Q=>t(170,u=Q));let Ji=Ce.ui.modals.hotKeyMap.show;H(i,Ji,Q=>t(62,he=Q));let vn=Ce.ui.overlayContainer$,xi=Ce.ui.controls.interactiveTimeIndicator;H(i,xi,Q=>t(171,w=Q));let di=Ce.state.showInteractiveTimeIndicator,ei=Ce.ui.contextMenu.position$;H(i,ei,Q=>t(61,ae=Q));let $i=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Nt}=Wn();H(i,Nt,Q=>t(144,v=Q));let Ut,en,Pi,Hi,mn;gi.set(Uf());let it,bi,ai=Fe(!1);H(i,ai,Q=>t(50,k=Q));let je,tn=Fe(!1);H(i,tn,Q=>t(151,x=Q));let yn=Fe(),pn=Fe(!1);H(i,pn,Q=>t(147,L=Q));let zi=!1,nn=!1,_n=!1,Ii=!(ce&&!Ke.controls.showOnStartupAtAutoplay),ti,on,Ei,Rn,wn,hn=!1,ln,kn=!1,{toggle:Bn}=Nt,Li=!1,rn=null,Rt;Pt==null||Pt.setContext(zl());let Dn=()=>{ce&&!ri&&Ke.controls.showOnStartupAtAutoplay&&ii(Ke.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:Dn});let Cn=()=>{window.clearTimeout(Pi),tn.set(!1)},Hn=()=>{window.clearTimeout(Hi),yn.set(null)},ii=Q=>{Cn(),tn.set(!0),Pi=window.setTimeout(()=>tn.set(!1),Q);let Lt=Q-100;je=window.setTimeout(()=>{k&&ai.set(!1)},Lt>0?Lt:Q)},zn=(Q,Lt)=>{Hn(),yn.set(Lt),Hi=window.setTimeout(()=>yn.set(null),Q)},Un=Ti.subscribe(Q=>{$t.set(Q),Q&&(window.clearTimeout(mn),mn=window.setTimeout(()=>$t.set(!1),Ke.controls.hide360IconTimeout))}),Sn=async()=>{var Lt,En,sn,no;let Q=bo();if(Q){let Ln=jl(),Jn=qn();Q=Ln===Jn||Ln===ct}if(Q){ii(Ke.controls.hideTimeoutFullscreen);try{await(Pt==null?void 0:Pt.remove())}catch(Ln){oi({message:String(Ln)})}}pi.set(Q),Ce.getAdmanWrapper().setFullscreen(Q),g?(En=(Lt=Ce.callbacks)==null?void 0:Lt.onFullscreenEnter)==null||En.call(Lt):(no=(sn=Ce.callbacks)==null?void 0:sn.onFullscreenExit)==null||no.call(sn)},Tn=Q=>{let Lt=Q;hi.set({width:Lt.target.width,height:Lt.target.height})};Dt(()=>{var Lt;return yr(Sn),Ke.features.annotationsInside&&(Oi==null||Oi.init(Ut)),Uo(Pt)&&(Pt==null||Pt.assignPlayerContainer(Ut),Pt==null||Pt.registryExternalEventHandlers({resize:Tn})),Ze&&((Lt=Ge.parentElement)==null||Lt.insertBefore(Ze,Ge.nextSibling)),()=>{window.clearTimeout(Pi),window.clearTimeout(je),window.clearTimeout(Hi),window.clearTimeout(mn),Un(),Pt==null||Pt.dispose(),wr(Sn)}});let qn=()=>{let Q=Ke.features.fullscreenInternalTargetPlayerContainer||!lt?Ut:lt,Lt=Q.getRootNode(),En=Lt instanceof ShadowRoot?Lt.host:Lt,sn=Je instanceof HTMLElement&&Je.contains(En);return Ke.allowChangingFullscreenTarget&&Je&&sn?Je:Q},Pn=async()=>{bo()?(await vr(document),oi({message:"exit fullscreen"})):(oi({message:"request fullscreen"}),await br(qn()))},Ai=()=>{$i(),Jt.set(!1)},In=Q=>{Jt.set(!0),ei.set({left:Q.clientX,top:Q.clientY})};function re(){pn.set(!0),ri||ii(Ke.controls.hideTimeoutCursor)}function kt(){ri||(ai.set(!0),ii(Ke.controls.hideTimeoutCursor))}function ie(){pn.set(!1),t(132,nn=!1),t(131,zi=!1),Li=!1,Ce.actions.internal.releaseCamera()}function dt(Q){if(w&&di){let Lt=Q.currentTarget,En=Tc(Lt),sn=Lp(Lt),no=Q.pageX-sn,Ln=Q.pageY-En,{left:Jn,bottom:_o,right:tl}=w,Lo=tl-Jn;return no>=Jn-Lo&&Ln<=_o+Lo}}function Kt(Q){if(Ut){let Lt=Tc(Q.currentTarget),En=h.height,sn=Q.pageY-Lt;if(dt(Q)){t(132,nn=!1);return}sn<40?t(132,nn=!0):sn>En-40?t(131,zi=!0):(t(132,nn=!1),s||t(131,zi=!1))}}function vi(Q){Kt(Q),ti||ii(Ke.controls.hideTimeoutCursor),m&&Li&&rn&&Ce.actions.internal.moveCameraFocusPX(rn.clientX-Q.clientX,rn.clientY-Q.clientY,Q.timeStamp-rn.timeStamp),rn=Q}let Mn=Q=>{Q.button===0&&(Li=!0,Ce.actions.internal.holdCamera()),ii(Ke.controls.hideTimeoutCursor)},Ui=Q=>{Q.button===0&&(rn=Q,Li=!1,Ce.actions.internal.releaseCamera()),ii(Ke.controls.hideTimeoutCursor)},to=()=>{Ep&&(oi({message:"double click on video"}),Pn(),ii(Ke.controls.hideTimeoutCursor))},ne=()=>{if(n||s){Ai();return}if(!(f&&!fi)){if(kn)return Bn();if(Rt==null||Rt.focus(),!be){cn(),ii(Ke.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),ii(Ke.controls.hideTimeoutCursor)}},So=Q=>{Ai(),si.set(!0),ii(Ke.controls.hideTimeout),Q&&zn(Ke.controls.hideHotKeyHelpers,Q)},ql=()=>{var Q,Lt;Ai(),(Q=Ce.callbacks)!=null&&Q.onOpenHotKeyMap?(Lt=Ce.callbacks)==null||Lt.onOpenHotKeyMap(u):Ji.update(En=>!En)},Nl=()=>{if(n||s){Ai();return}},Xo=()=>{si.set(!0)},To=Ce.ui.contextMenu.openedByBtnKeyboard$;H(i,To,Q=>t(140,a=Q));let Po=Ce.ui.contextMenu.btnRef$;H(i,Po,Q=>t(139,l=Q));let io,co=Ce.ui.contextMenu.openedByHotKey$;H(i,co,Q=>t(138,r=Q));let fo=Ce.ui.contextMenu.lastActiveElem$;H(i,fo,Q=>t(137,o=Q));function Jo(Q){ge[Q?"unshift":"push"](()=>{Ge=Q,t(0,Ge)})}let xo=()=>Rt==null?void 0:Rt.focus();function mo(Q){en=Q,t(41,en)}let $o=()=>Rt==null?void 0:Rt.focus();function Io(Q){io=Q,t(32,io)}function po(Q){ge[Q?"unshift":"push"](()=>{Rt=Q,t(48,Rt)})}function Eo(Q){ge[Q?"unshift":"push"](()=>{bi=Q,t(30,bi)})}function el(Q){ge[Q?"unshift":"push"](()=>{Ut=Q,t(40,Ut)})}return i.$$set=Q=>{"store"in Q&&t(125,Ce=Q.store),"uiConfig"in Q&&t(1,Ke=Q.uiConfig),"title"in Q&&t(2,mt=Q.title),"thumbUrl"in Q&&t(3,Ye=Q.thumbUrl),"videoContainer"in Q&&t(0,Ge=Q.videoContainer),"interactiveContainer"in Q&&t(126,Ze=Q.interactiveContainer),"live"in Q&&t(4,et=Q.live),"autoplay"in Q&&t(5,ce=Q.autoplay),"canRewindLive"in Q&&t(6,Pe=Q.canRewindLive),"showAds"in Q&&t(7,We=Q.showAds),"adsSlotId"in Q&&t(8,le=Q.adsSlotId),"adsParams"in Q&&t(9,Te=Q.adsParams),"adsPreviewParam"in Q&&t(10,pt=Q.adsPreviewParam),"duration"in Q&&t(11,Le=Q.duration),"logoClickable"in Q&&t(12,ut=Q.logoClickable),"logoHidden"in Q&&t(13,me=Q.logoHidden),"logoTargetUrl"in Q&&t(14,tt=Q.logoTargetUrl),"showNextPrevButtons"in Q&&t(15,Ct=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(16,bt=Q.nextButtonActive),"prevButtonActive"in Q&&t(17,Ue=Q.prevButtonActive),"endScreenVideoTitle"in Q&&t(18,Ot=Q.endScreenVideoTitle),"endScreenVideoThumb"in Q&&t(19,Vt=Q.endScreenVideoThumb),"isOneVideoPlaylist"in Q&&t(20,St=Q.isOneVideoPlaylist),"supportLink"in Q&&t(21,ni=Q.supportLink),"shadowRootContainer"in Q&&t(127,ct=Q.shadowRootContainer),"outerContainerRef"in Q&&t(128,lt=Q.outerContainerRef),"playerStarted"in Q&&t(22,be=Q.playerStarted),"fullScreenTarget"in Q&&t(129,Je=Q.fullScreenTarget),"showMiniTimer"in Q&&t(130,_t=Q.showMiniTimer),"playNextVideo"in Q&&t(23,Ft=Q.playNextVideo),"playPrevVideo"in Q&&t(24,yt=Q.playPrevVideo),"repeatPlaylist"in Q&&t(25,Xt=Q.repeatPlaylist),"seekToInteractive"in Q&&t(26,mi=Q.seekToInteractive),"toggleGraph"in Q&&t(27,Mt=Q.toggleGraph),"playPrevChapter"in Q&&t(28,Wi=Q.playPrevChapter),"firstStart"in Q&&t(29,cn=Q.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1073741824|i.$$.dirty[5]&1&&t(42,it=(_e==="video"&&Y||_e==="ads"&&J==="inactive")&&!M),i.$$.dirty[0]&1073741824&&vn.set(bi),i.$$.dirty[4]&536871936&&(t(133,_n=Ii&&K!==Ip.PlaybackState.PLAYING),Ii||t(134,Ii=!0)),i.$$.dirty[4]&272761728&&t(135,ti=b&&!s&&!(zi||nn)&&!(_n&&!A)),i.$$.dirty[1]&448|i.$$.dirty[4]&136448512&&_i.set((_n||s||y||se||x)&&!ti&&(_e==="video"||_e==="ads")&&!M),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&67108928&&t(43,on=Ke.features.thumbTimer&&_t&&_e==="video"&&!P&&!M&&!ri&&(Ke.hideThumbTimerAfterTouch&&!Z||!Ke.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&34078720&&t(44,Ei=_e==="video"&&!te&&g),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&17039360&&t(31,Rn=(We&&N||!We)&&f&&!M),i.$$.dirty[1]&33|i.$$.dirty[4]&12582912&&t(45,wn=L&&!(P||Rn)&&!b),i.$$.dirty[0]&2|i.$$.dirty[4]&6295552&&(!y&&hn&&!b&&ii(Ke.controls.hideTimeoutCursor),t(136,hn=y)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,ln=Ge&&I%180?h.height/h.width:1),i.$$.dirty[4]&1048576&&t(47,kn=v!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&65536&&jo(io,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&32768){let Q=l;Q&&bl(Q,n,To)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384&&jo(io,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&8192){let Q=o;Q&&id(Q,n,co)}},[Ge,Ke,mt,Ye,et,ce,Pe,We,le,Te,pt,Le,ut,me,tt,Ct,bt,Ue,Ot,Vt,St,ni,be,Ft,yt,Xt,mi,Mt,Wi,cn,bi,Rn,io,n,h,I,P,M,_e,se,Ut,en,it,on,Ei,wn,ln,kn,Rt,m,k,F,G,X,oe,De,Xe,Ee,Be,qe,xe,ae,he,at,Bi,fn,ji,dn,Di,qi,pi,_i,wi,ki,Jt,zt,Gi,jt,Ci,Ni,Qi,li,wt,Yi,Zi,Xi,xt,Si,hi,Ti,$t,Gt,ri,Fi,ci,si,gi,Ji,xi,ei,Nt,ai,tn,yn,pn,Bn,Pn,Ai,In,re,kt,ie,vi,Mn,Ui,to,ne,So,ql,Nl,Xo,To,Po,co,fo,Ce,Ze,ct,lt,Je,_t,zi,nn,_n,Ii,ti,hn,o,r,l,a,s,f,g,v,y,b,L,N,te,Z,x,A,K,J,Y,Jo,xo,mo,$o,Io,po,Eo,el]}var Pc=class extends W{constructor(e){super(),j(this,e,b6,g6,U,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,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:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},_6,[-1,-1,-1,-1,-1,-1,-1])}},Ap=Pc;var Xp=require("@vkontakte/videoplayer-core"),uo=require("@vkontakte/videoplayer-shared");function v6(i){Ie(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 Mp(i){let e,t,n,o,r,l,a,s,u,f,m,h,w,g,k,v=z("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",I;return{c(){e=T("div"),n=B(),o=T("div"),r=T("div"),l=T("div"),s=B(),u=T("div"),m=B(),h=T("div"),g=B(),k=T("p"),I=Ne(v),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",w="triangle "+i[0]+" svelte-nhq2ld"),c(r,"class","triangles-wrapper svelte-nhq2ld"),c(k,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(y,b){S(y,e,b),S(y,n,b),S(y,o,b),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,g),p(o,k),p(k,I)},p(y,b){b&1&&t!==(t="semicircle "+y[0]+" svelte-nhq2ld")&&c(e,"class",t),b&1&&a!==(a="triangle "+y[0]+" svelte-nhq2ld")&&c(l,"class",a),b&1&&f!==(f="triangle "+y[0]+" svelte-nhq2ld")&&c(u,"class",f),b&1&&w!==(w="triangle "+y[0]+" svelte-nhq2ld")&&c(h,"class",w),b&4&&v!==(v=z("doubletap_seek_step",{seconds:y[2].toFixed(0)})+"")&&Qe(I,v)},d(y){y&&(C(e),C(n),C(o))}}}function y6(i){let e,t,n,o,r=i[1]&&Mp(i);return{c(){e=T("div"),r&&r.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){S(l,e,a),r&&r.m(e,null),n||(o=pe(e,"click",st(i[3]())),n=!0)},p(l,[a]){l[1]?r?r.p(l,a):(r=Mp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:Se,o:Se,d(l){l&&C(e),r&&r.d(),n=!1,o()}}}function w6(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,f=o,m=()=>()=>{u+=1,t(2,f=o*(u-1)),u===1?r():(t(1,a=!0),l()),window.clearTimeout(s),s=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Gn(()=>{window.clearTimeout(s)}),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,l=h.handleSecondClick)},[n,a,f,m,o,r,l]}var Ic=class extends W{constructor(e){super(),j(this,e,w6,y6,U,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},v6)}},Ec=Ic;function k6(i,e,t){let{playNextVideo:n}=e;return Dt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var Lc=class extends W{constructor(e){super(),j(this,e,k6,null,U,{playNextVideo:0})}},Vp=Lc;var{window:C6}=Vo;function S6(i){Ie(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .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-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function Rp(i){let e,t,n,o=i[45]&&Bp(i),r=i[46]&&Dp(i);return{c(){o&&o.c(),e=B(),r&&r.c(),t=ft()},m(l,a){o&&o.m(l,a),S(l,e,a),r&&r.m(l,a),S(l,t,a),n=!0},p(l,a){l[45]?o?(o.p(l,a),a[1]&16384&&d(o,1)):(o=Bp(l),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(fe(),_(o,1,1,()=>{o=null}),de()),l[46]?r?(r.p(l,a),a[1]&32768&&d(r,1)):(r=Dp(l),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(fe(),_(r,1,1,()=>{r=null}),de())},i(l){n||(d(o),d(r),n=!0)},o(l){_(o),_(r),n=!1},d(l){l&&(C(e),C(t)),o&&o.d(l),r&&r.d(l)}}}function Bp(i){let e,t;return e=new Ec({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Dp(i){let e,t;return e=new Ec({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[133]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qp(i){var n;let e,t;return e=new bs({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Np(i){let e,t;return e=new Al({props:{kind:"recover",thumbUrl:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Op(i){let e,t;return e=new Al({props:{kind:"record",thumbUrl:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fp(i){let e,t,n;return t=new kr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),O(e,"hidden",i[36]!=="ads")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&32)&&O(e,"hidden",o[36]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function Hp(i){let e,t;return e=new Vp({props:{playNextVideo:i[22]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zp(i){let e,t;return e=new ms({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Up(i){let e,t,n;return t=new mr({props:{"aria-label":z("video360")}}),{c(){e=T("div"),D(t.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),R(t)}}}function Kp(i){let e,t;return e=new _s({props:{thumbUrl:i[2],chromecastDeviceName:i[53]}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wp(i){let e,t;return e=new ps({props:{shifted:i[30],captions:i[55],position:i[32],playerSize:i[33],isMobile:!0}}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&16777216&&(r.captions=n[55]),o[1]&2&&(r.position=n[32]),o[1]&4&&(r.playerSize=n[33]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jp(i){let e,t,n,o,r;return t=new hs({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){S(l,e,a),V(t,e,null),n=!0,o||(r=pe(e,"click",st(i[101])),o=!0)},p:Se,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&C(e),R(t),o=!1,r()}}}function Gp(i){let e,t,n;function o(l){i[134](l)}let r={bottomHidden:i[36]==="thumb"||i[36]==="LiveWaitingStart"||i[36]==="LiveWaitingRecover"||i[36]==="LiveWaitingRecord"||i[36]==="ads",showControls:i[30],bottomNoSmooth:i[47],isAds:i[36]==="ads",canRewindLive:i[5]&&i[56]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[41],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[39]!==void 0&&(r.controlsElementRef=i[39]),e=new ds({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&32&&(s.bottomHidden=l[36]==="thumb"||l[36]==="LiveWaitingStart"||l[36]==="LiveWaitingRecover"||l[36]==="LiveWaitingRecord"||l[36]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&65536&&(s.bottomNoSmooth=l[47]),a[1]&32&&(s.isAds=l[36]==="ads"),a[0]&32|a[1]&33554432&&(s.canRewindLive=l[5]&&l[56]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&1024&&(s.customFullscreenSupported=l[41]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&256&&(t=!0,s.controlsElementRef=l[39],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Qp(i){let e,t;return e=new Cl({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yp(i){let e,t;return e=new Er({}),{c(){D(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zp(i){let e,t,n=i[5]&&i[79]&&!i[50].has("TIMELINE"),o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P;e=new gs({props:{hidden:i[36]!=="thumb"||i[35]||i[90]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let L=n&&Rp(i),M=i[36]==="LiveWaitingStart"&&qp(i),N=i[36]==="LiveWaitingRecover"&&Np(i),te=i[36]==="LiveWaitingRecord"&&Op(i),_e=i[6]&&i[21]&&Fp(i),Z=i[43]&&i[17]&&i[18]&&Hp(i),x=i[51]&&zp(i),se=i[52]&&Up(i),A=i[37]&&Kp(i),K=i[54].value!=="off"&&Wp(i),J=i[35]&&jp(i),Y=i[21]&&Gp(i);v=new Sr({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[48],position:i[32],duration:i[31]}});let F=i[40]&&Qp(i),G=i[58]&&Yp(i);return{c(){D(e.$$.fragment),t=B(),L&&L.c(),o=B(),M&&M.c(),r=B(),N&&N.c(),l=B(),te&&te.c(),a=B(),_e&&_e.c(),s=B(),Z&&Z.c(),u=B(),x&&x.c(),f=B(),se&&se.c(),m=B(),A&&A.c(),h=B(),K&&K.c(),w=B(),J&&J.c(),g=B(),Y&&Y.c(),k=B(),D(v.$$.fragment),I=B(),F&&F.c(),y=B(),G&&G.c(),b=ft()},m(X,oe){V(e,X,oe),S(X,t,oe),L&&L.m(X,oe),S(X,o,oe),M&&M.m(X,oe),S(X,r,oe),N&&N.m(X,oe),S(X,l,oe),te&&te.m(X,oe),S(X,a,oe),_e&&_e.m(X,oe),S(X,s,oe),Z&&Z.m(X,oe),S(X,u,oe),x&&x.m(X,oe),S(X,f,oe),se&&se.m(X,oe),S(X,m,oe),A&&A.m(X,oe),S(X,h,oe),K&&K.m(X,oe),S(X,w,oe),J&&J.m(X,oe),S(X,g,oe),Y&&Y.m(X,oe),S(X,k,oe),V(v,X,oe),S(X,I,oe),F&&F.m(X,oe),S(X,y,oe),G&&G.m(X,oe),S(X,b,oe),P=!0},p(X,oe){let De={};oe[0]&16|oe[1]&48&&(De.hidden=X[36]!=="thumb"||X[35]||X[90]&&X[4]),oe[0]&4&&(De.thumbUrl=X[2]),oe[0]&268435456&&(De.startVideo=X[28]),e.$set(De),oe[0]&32|oe[1]&524288&&(n=X[5]&&X[79]&&!X[50].has("TIMELINE")),n?L?(L.p(X,oe),oe[0]&32|oe[1]&524288&&d(L,1)):(L=Rp(X),L.c(),d(L,1),L.m(o.parentNode,o)):L&&(fe(),_(L,1,1,()=>{L=null}),de()),X[36]==="LiveWaitingStart"?M?(M.p(X,oe),oe[1]&32&&d(M,1)):(M=qp(X),M.c(),d(M,1),M.m(r.parentNode,r)):M&&(fe(),_(M,1,1,()=>{M=null}),de()),X[36]==="LiveWaitingRecover"?N?(N.p(X,oe),oe[1]&32&&d(N,1)):(N=Np(X),N.c(),d(N,1),N.m(l.parentNode,l)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),X[36]==="LiveWaitingRecord"?te?(te.p(X,oe),oe[1]&32&&d(te,1)):(te=Op(X),te.c(),d(te,1),te.m(a.parentNode,a)):te&&(fe(),_(te,1,1,()=>{te=null}),de()),X[6]&&X[21]?_e?(_e.p(X,oe),oe[0]&2097216&&d(_e,1)):(_e=Fp(X),_e.c(),d(_e,1),_e.m(s.parentNode,s)):_e&&(fe(),_(_e,1,1,()=>{_e=null}),de()),X[43]&&X[17]&&X[18]?Z?(Z.p(X,oe),oe[0]&393216|oe[1]&4096&&d(Z,1)):(Z=Hp(X),Z.c(),d(Z,1),Z.m(u.parentNode,u)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),de()),X[51]?x?oe[1]&1048576&&d(x,1):(x=zp(X),x.c(),d(x,1),x.m(f.parentNode,f)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),X[52]?se?oe[1]&2097152&&d(se,1):(se=Up(X),se.c(),d(se,1),se.m(m.parentNode,m)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),X[37]?A?(A.p(X,oe),oe[1]&64&&d(A,1)):(A=Kp(X),A.c(),d(A,1),A.m(h.parentNode,h)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),X[54].value!=="off"?K?(K.p(X,oe),oe[1]&8388608&&d(K,1)):(K=Wp(X),K.c(),d(K,1),K.m(w.parentNode,w)):K&&(fe(),_(K,1,1,()=>{K=null}),de()),X[35]?J?(J.p(X,oe),oe[1]&16&&d(J,1)):(J=jp(X),J.c(),d(J,1),J.m(g.parentNode,g)):J&&(fe(),_(J,1,1,()=>{J=null}),de()),X[21]?Y?(Y.p(X,oe),oe[0]&2097152&&d(Y,1)):(Y=Gp(X),Y.c(),d(Y,1),Y.m(k.parentNode,k)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),de());let Xe={};oe[1]&67108864&&(Xe.isLive=X[57]),oe[1]&2048&&(Xe.isHidden=!X[42]),oe[1]&131072&&(Xe.isPlaying=X[48]),oe[1]&2&&(Xe.position=X[32]),oe[1]&1&&(Xe.duration=X[31]),v.$set(Xe),X[40]?F?oe[1]&512&&d(F,1):(F=Qp(X),F.c(),d(F,1),F.m(y.parentNode,y)):F&&(fe(),_(F,1,1,()=>{F=null}),de()),X[58]?G?oe[1]&134217728&&d(G,1):(G=Yp(X),G.c(),d(G,1),G.m(b.parentNode,b)):G&&(fe(),_(G,1,1,()=>{G=null}),de())},i(X){P||(d(e.$$.fragment,X),d(L),d(M),d(N),d(te),d(_e),d(Z),d(x),d(se),d(A),d(K),d(J),d(Y),d(v.$$.fragment,X),d(F),d(G),P=!0)},o(X){_(e.$$.fragment,X),_(L),_(M),_(N),_(te),_(_e),_(Z),_(x),_(se),_(A),_(K),_(J),_(Y),_(v.$$.fragment,X),_(F),_(G),P=!1},d(X){X&&(C(t),C(o),C(r),C(l),C(a),C(s),C(u),C(f),C(m),C(h),C(w),C(g),C(k),C(I),C(y),C(b)),R(e,X),L&&L.d(X),M&&M.d(X),N&&N.d(X),te&&te.d(X),_e&&_e.d(X),Z&&Z.d(X),x&&x.d(X),se&&se.d(X),A&&A.d(X),K&&K.d(X),J&&J.d(X),Y&&Y.d(X),R(v,X),F&&F.d(X),G&&G.d(X)}}}function T6(i){let e,t,n,o,r,l=i[49],a,s,u,f,m,h,w=Zp(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=B(),w.c(),a=B(),s=T("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${i[34]}deg) scale(${i[44]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[48]),O(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-6x5lql"),O(t,"hidden",i[36]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=z("aria_label_video_player")),c(e,"tabindex","-1")},m(g,k){S(g,e,k),p(e,t),p(t,n),i[131](n),p(e,r),w.m(e,null),p(e,a),p(e,s),i[135](s),i[136](e),f=!0,m||(h=[pe(C6,"blur",i[99]),pe(t,"click",Yt(i[100])),pe(e,"click",i[102],!0),pe(e,"focusin",i[103],!0)],m=!0)},p(g,k){(!f||k[1]&8200&&o!==(o=`transform: rotate(${g[34]}deg) scale(${g[44]})`))&&c(n,"style",o),(!f||k[1]&131072)&&c(n,"data-is-playing",g[48]),(!f||k[0]&2)&&O(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||k[1]&32)&&O(t,"hidden",g[36]!=="video"),k[1]&262144&&U(l,l=g[49])?(fe(),_(w,1,1,Se),de(),w=Zp(g),w.c(),d(w,1),w.m(e,a)):w.p(g,k)},i(g){f||(d(w),f=!0)},o(g){_(w),f=!1},d(g){g&&C(e),i[131](null),w.d(g),i[135](null),i[136](null),m=!1,nt(h)}}}function P6(i,e,t){var Ai,In;let n,o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M,N,te,_e,Z,x,se,A,K,J,Y,F,G,X,oe,De,Xe,{store:Ee}=e,{uiConfig:Be}=e,{thumbUrl:qe}=e,{videoContainer:xe}=e,{interactiveContainer:ae}=e,{live:he}=e,{autoplay:at}=e,{canRewindLive:Ce}=e,{showAds:Ke}=e,{adsSlotId:mt=void 0}=e,{adsParams:Ye=void 0}=e,{adsPreviewParam:Ge=void 0}=e,{duration:Ze=void 0}=e,{logoClickable:et}=e,{logoHidden:ce}=e,{logoTargetUrl:Pe=""}=e,{showNextPrevButtons:We=!1}=e,{nextButtonActive:le=!1}=e,{prevButtonActive:Te=!1}=e,{endScreenVideoTitle:pt=void 0}=e,{endScreenVideoThumb:Le=void 0}=e,{isOneVideoPlaylist:ut=!1}=e,{supportLink:me}=e,{shadowRootContainer:tt=void 0}=e,{outerContainerRef:Ct=void 0}=e,{showMiniTimer:bt=!1}=e,{fullScreenTarget:Ue=void 0}=e,{playerStarted:Ot=!1}=e,{playNextVideo:Vt=uo.noop}=e,{playPrevVideo:St=uo.noop}=e,{repeatPlaylist:ni=uo.noop}=e,{seekToInteractive:ct}=e,{toggleGraph:lt}=e,{playPrevChapter:be}=e,{firstStart:Je}=e,{seekTime:_t}=e,Ft=Ee.getLogger().createComponentLog("Root component"),yt=Ee.interfaceLanguage$;H(i,yt,re=>t(49,A=re));let Xt=Ee.state.playbackState$;H(i,Xt,re=>t(128,_e=re));let mi=Ee.ads.playbackState;H(i,mi,re=>t(129,Z=re));let Mt=Ee.state.positionWithScrubbing$;H(i,Mt,re=>t(32,a=re));let Wi=Ee.state.duration$;H(i,Wi,re=>t(31,l=re));let cn=Ee.playerPhase;H(i,cn,re=>t(36,L=re));let oi=Ee.ui.isFullscreen;H(i,oi,re=>t(142,u=re));let Bi=Ee.ui.controlsVisible;H(i,Bi,re=>t(30,o=re));let fn=Ee.ui.interactiveHideMobileControls;H(i,fn,re=>t(120,w=re));let ji=Ee.ui.settingsMenuVisible;H(i,ji,re=>t(118,n=re));let dn=Ee.ui.scrubbingInProgress;H(i,dn,re=>t(121,k=re));let Di=Ee.ui.debugPanelVisible;H(i,Di,re=>t(58,Xe=re));let qi=Ee.state.isLoaderVisible;H(i,qi,re=>t(130,x=re));let pi=Ee.state.isEnded$;H(i,pi,re=>t(123,y=re));let _i=Ee.state.chromecastConnected$;H(i,_i,re=>t(37,M=re));let wi=Ee.state.chromecastDeviceName$;H(i,wi,re=>t(53,F=re));let ki=Ee.ads.postrollPassed;H(i,ki,re=>t(124,b=re));let Jt=Ee.ui.mobileUnmuteButtonExpanded,zt=Ee.ui.mobileUnmuteButtonVisible,Gi=Ee.state.isLive$;H(i,Gi,re=>t(57,De=re));let jt=Ee.state.isPlaying$;H(i,jt,re=>t(48,se=re));let Ci=Ee.state.isActiveLive$;H(i,Ci,re=>t(119,s=re));let Ni=Ee.state.isRewindableLive$,Qi=Ee.state.crashed$;H(i,Qi,re=>t(35,I=re));let li=Ee.webApi.annotationsApi,wt=Ee.webApi.pictureInPictureApi,Yi=Ee.state.videoSize$;H(i,Yi,re=>t(143,m=re));let Oi=Ee.state.currentSubtitle$;H(i,Oi,re=>t(54,G=re));let Pt=Ee.state.currentSubtitleCaptions$;H(i,Pt,re=>t(55,X=re));let Zi=Ee.state.duration$;H(i,Zi,re=>t(56,oe=re));let Xi=Ee.state.graphIsOpened$;H(i,Xi,re=>t(127,te=re));let xt=Ee.ui.playerSize;H(i,xt,re=>t(33,f=re));let Si=Ee.ui.is3DVideo;H(i,Si,re=>t(51,J=re));let hi=Ee.ui.icon3DVideoVisible;H(i,hi,re=>t(52,Y=re));let Ti=Ee.ui.rotateAlpha;H(i,Ti,re=>t(34,g=re));let $t=Ee.state.isInteractive,Gt=Ee.state.isInteractiveTime$;H(i,Gt,re=>t(122,v=re));let ri=Ee.state.isInteractiveExpectation$;H(i,ri,re=>t(126,N=re));let Fi=Ee.state.hasInteractiveBranches,ci=Ee.ui.controls.disabledControls$;H(i,ci,re=>t(50,K=re));let fi=Ee.ui.touched;H(i,fi,re=>t(125,P=re));let si=Ee.ui.overlayContainer$,gi=Ee.state.loadedMetadata$;H(i,gi,re=>t(141,r=re));let Ji=Ee.actions.internal.closeSettingsMenu,vn=(Ai=Ee.callbacks)==null?void 0:Ai.onDisabledPlayPrevChapterClick,xi=(In=Ee.callbacks)==null?void 0:In.onDisabledSeekToInteractiveClick,di,ei,$i,Nt,Ut,en,Pi,Hi=Fe(!1);H(i,Hi,re=>t(47,h=re));let mn,it=!1,bi,ai=!1,je,tn=!0,yn,pn,zi=!1,nn;wt==null||wt.setContext(zl());let _n=re=>{clearTimeout(Nt),re&&(zt.set(!0),Jt.set(!0),Nt=window.setTimeout(()=>{Jt.set(!1)},Be.controls.collapseMobileUnmute),$t||ti(Be.controls.hideTimeoutMobile))};Ee.setUiCallbacks({onStarted:_n});let Ii=()=>{window.clearTimeout($i),t(113,it=!1),w&&fn.set(!1)},ti=re=>{Ii(),t(113,it=!0),$i=window.setTimeout(()=>t(113,it=!1),re);let kt=re-100;mn=window.setTimeout(()=>{h&&Hi.set(!1)},kt>0?kt:re)},on=Si.subscribe(re=>{hi.set(re),re&&(window.clearTimeout(Ut),Ut=window.setTimeout(()=>hi.set(!1),Be.controls.hide360IconTimeout))}),Ei=async()=>{var kt,ie,dt,Kt;let re=bo();if(re){let vi=jl(),Mn=kn(),Ui=uo.clientChecker.isSamsungBrowser&&vi===tt;re=vi===Mn||Ui}if(re){ti(Be.controls.hideTimeoutFullscreen);try{await(wt==null?void 0:wt.remove())}catch(vi){Ft({message:String(vi)})}try{let vi=m!=null&&m.width&&(m!=null&&m.height)?m:f;await zf(vi)}catch(vi){Ft({message:String(vi)})}}oi.set(re),Ee.getAdmanWrapper().setFullscreen(re),u?(ie=(kt=Ee.callbacks)==null?void 0:kt.onFullscreenEnter)==null||ie.call(kt):(Kt=(dt=Ee.callbacks)==null?void 0:dt.onFullscreenExit)==null||Kt.call(dt)},Rn=re=>{let kt=re;xt.set({width:kt.target.width,height:kt.target.height})};Dt(()=>{var kt;return yr(Ei),Be.features.annotationsInside&&(li==null||li.init(di)),Uo(wt)&&(wt==null||wt.assignPlayerContainer(di),wt==null||wt.registryExternalEventHandlers({resize:Rn})),t(41,tn=!uo.clientChecker.isIphoneOrOldIpad),ae&&((kt=xe.parentElement)==null||kt.insertBefore(ae,xe.nextSibling)),()=>{window.clearTimeout($i),window.clearTimeout(mn),window.clearTimeout(Nt),window.clearTimeout(Ut),on(),wt==null||wt.dispose(),wr(Ei)}});let wn=!0,hn=!0,ln=re=>{let kt=a+(re==="forward"?1:-1)*Be.controls.seekStepMobile/1e3;kt<0?(t(45,wn=!1),kt=0):kt>=l&&(t(46,hn=!1),kt=l),t(115,ai=!0),_t(kt)},kn=()=>{let re=uo.clientChecker.isIOS||Be.features.fullscreenInternalTargetPlayerContainer||!Ct?di:Ct,kt=re.getRootNode(),ie=kt instanceof ShadowRoot?kt.host:kt,dt=Ue instanceof HTMLElement&&Ue.contains(ie);return Be.allowChangingFullscreenTarget&&Ue&&dt?Ue:re},Bn=async()=>{if(bo())await vr(document),Ft({message:"exit fullscreen"});else{if(Ft({message:"request fullscreen"}),uo.clientChecker.isIOS&&!r)return;await br(kn())}},Li=()=>{Ji()},rn=()=>{if(n){Li();return}if(!Ot){Je(),ti(Be.controls.hideTimeoutCursor);return}t(115,ai=!1),o?Ii():ti(Be.controls.hideTimeoutMobile)},Rt=()=>{if(n){Li();return}},Dn=()=>{fi.set(!0)},Cn=()=>{$t||(Hi.set(!0),ti(Be.controls.hideTimeoutCursor))},Hn=re=>{vn&&(vn(re),ti(Be.controls.hideTimeoutMobile))},ii=re=>{xi&&(xi(re),ti(Be.controls.hideTimeoutMobile))};function zn(re){ge[re?"unshift":"push"](()=>{xe=re,t(0,xe)})}let Un=()=>ln("backward"),Sn=()=>ln("forward");function Tn(re){ei=re,t(39,ei)}function qn(re){ge[re?"unshift":"push"](()=>{Pi=re,t(29,Pi)})}function Pn(re){ge[re?"unshift":"push"](()=>{di=re,t(38,di)})}return i.$$set=re=>{"store"in re&&t(106,Ee=re.store),"uiConfig"in re&&t(1,Be=re.uiConfig),"thumbUrl"in re&&t(2,qe=re.thumbUrl),"videoContainer"in re&&t(0,xe=re.videoContainer),"interactiveContainer"in re&&t(107,ae=re.interactiveContainer),"live"in re&&t(3,he=re.live),"autoplay"in re&&t(4,at=re.autoplay),"canRewindLive"in re&&t(5,Ce=re.canRewindLive),"showAds"in re&&t(6,Ke=re.showAds),"adsSlotId"in re&&t(7,mt=re.adsSlotId),"adsParams"in re&&t(8,Ye=re.adsParams),"adsPreviewParam"in re&&t(9,Ge=re.adsPreviewParam),"duration"in re&&t(10,Ze=re.duration),"logoClickable"in re&&t(11,et=re.logoClickable),"logoHidden"in re&&t(12,ce=re.logoHidden),"logoTargetUrl"in re&&t(13,Pe=re.logoTargetUrl),"showNextPrevButtons"in re&&t(14,We=re.showNextPrevButtons),"nextButtonActive"in re&&t(15,le=re.nextButtonActive),"prevButtonActive"in re&&t(16,Te=re.prevButtonActive),"endScreenVideoTitle"in re&&t(17,pt=re.endScreenVideoTitle),"endScreenVideoThumb"in re&&t(18,Le=re.endScreenVideoThumb),"isOneVideoPlaylist"in re&&t(19,ut=re.isOneVideoPlaylist),"supportLink"in re&&t(20,me=re.supportLink),"shadowRootContainer"in re&&t(108,tt=re.shadowRootContainer),"outerContainerRef"in re&&t(109,Ct=re.outerContainerRef),"showMiniTimer"in re&&t(110,bt=re.showMiniTimer),"fullScreenTarget"in re&&t(111,Ue=re.fullScreenTarget),"playerStarted"in re&&t(21,Ot=re.playerStarted),"playNextVideo"in re&&t(22,Vt=re.playNextVideo),"playPrevVideo"in re&&t(23,St=re.playPrevVideo),"repeatPlaylist"in re&&t(24,ni=re.repeatPlaylist),"seekToInteractive"in re&&t(25,ct=re.seekToInteractive),"toggleGraph"in re&&t(26,lt=re.toggleGraph),"playPrevChapter"in re&&t(27,be=re.playPrevChapter),"firstStart"in re&&t(28,Je=re.firstStart),"seekTime"in re&&t(112,_t=re.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&48|i.$$.dirty[4]&96&&t(40,en=(L==="video"&&x||L==="ads"&&Z==="inactive")&&!I),i.$$.dirty[0]&536870912&&si.set(Pi),i.$$.dirty[4]&16&&t(114,bi=_e!==Xp.PlaybackState.PLAYING),i.$$.dirty[3]&1211105280|i.$$.dirty[4]&12&&t(116,je=te||w||!it&&(y&&!!Fi||bi&&N)),i.$$.dirty[1]&112|i.$$.dirty[3]&317718528&&Bi.set((bi||n||k||M||it&&!ai)&&!je&&L==="video"&&!I),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&48|i.$$.dirty[3]&131072|i.$$.dirty[4]&2&&t(42,yn=Be.features.thumbTimer&&bt&&L==="video"&&!o&&!I&&!$t&&(Be.hideThumbTimerAfterTouch&&!P||!Be.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&16|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&t(43,pn=(Ke&&b||!Ke)&&y&&!I),i.$$.dirty[0]&2|i.$$.dirty[3]&822083584&&(!k&&zi&&!v&&ti(Be.controls.hideTimeoutMobile),t(117,zi=k)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(44,nn=xe&&g%180?f.height/f.width:1),i.$$.dirty[1]&3|i.$$.dirty[3]&67108864&&(t(45,wn=a>0),t(46,hn=!s&&a<l))},[xe,Be,qe,he,at,Ce,Ke,mt,Ye,Ge,Ze,et,ce,Pe,We,le,Te,pt,Le,ut,me,Ot,Vt,St,ni,ct,lt,be,Je,Pi,o,l,a,f,g,I,L,M,di,ei,en,tn,yn,pn,nn,wn,hn,h,se,A,K,J,Y,F,G,X,oe,De,Xe,yt,Xt,mi,Mt,Wi,cn,oi,Bi,fn,ji,dn,Di,qi,pi,_i,wi,ki,Gi,jt,Ci,Ni,Qi,Yi,Oi,Pt,Zi,Xi,xt,Si,hi,Ti,$t,Gt,ri,ci,fi,gi,Hi,ln,Bn,Li,rn,Rt,Dn,Cn,Hn,ii,Ee,ae,tt,Ct,bt,Ue,_t,it,bi,ai,je,zi,n,s,w,k,v,y,b,P,N,te,_e,Z,x,zn,Un,Sn,Tn,qn,Pn]}var Ac=class extends W{constructor(e){super(),j(this,e,P6,T6,U,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,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:108,outerContainerRef:109,showMiniTimer:110,fullScreenTarget:111,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:112},S6,[-1,-1,-1,-1,-1,-1])}},Jp=Ac;function I6(i){Ie(i,"svelte-1tl3een",`.root.svelte-1tl3een{--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 @@
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);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--mobile-settings-menu-z-index:1;--thumb-timer-z-index:2;--debug-panel-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}`)}function I6(i){let e,t,n;function o(l){i[61](l)}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],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new Ap({props:r}),ge.push(()=>ze(e,"videoContainer",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function E6(i){let e,t,n;function o(l){i[60](l)}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],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new Xp({props:r}),ge.push(()=>ze(e,"videoContainer",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function L6(i){let e,t,n,o,r=[E6,I6],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),c(e,"class","root svelte-1tl3een")},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function A6(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:w}=e,{preload:g}=e,{autoplay:C}=e,{volume:v=void 0}=e,{muted:I=void 0}=e,{fromTime:y}=e,{canRewindLive:b}=e,{showAds:P}=e,{adsSlotId:A=void 0}=e,{adsParams:M=void 0}=e,{adsPreviewParam:N=void 0}=e,{duration:te=void 0}=e,{logoClickable:_e}=e,{logoHidden:Z}=e,{isMobile:x}=e,{showNextPrevButtons:se=!1}=e,{nextButtonActive:L=!1}=e,{prevButtonActive:K=!1}=e,{endScreenVideoTitle:J=void 0}=e,{endScreenVideoThumb:Y=void 0}=e,{isOneVideoPlaylist:F=!1}=e,{supportLink:G}=e,{shadowRootContainer:X=void 0}=e,{outerContainerRef:le=void 0}=e,{fullScreenTarget:qe=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:Ee=!1}=e,{saveRate:Be}=e,{playNextVideo:De=Xn.noop}=e,{playPrevVideo:xe=Xn.noop}=e,{repeatPlaylist:ae=Xn.noop}=e,{seekToInteractive:he=Xn.noop}=e,{toggleGraph:at=Xn.noop}=e,{playPrevChapter:Ce=Xn.noop}=e,{volumeMultiplier:Ke}=e,{subscribers:mt,stores:Ye}=l;of(s);let Ge=Ht(),Ze=s.logoLink,et=r.ui.debugPanelVisible,ce=r.ui.playerSize,Pe=r.state.isLive$;H(i,Pe,be=>t(63,n=be));let We,re=null,Te=!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}),_f(r,Ye);let pt=(be=!1)=>{t(34,Te=!0),be?r.actions.external.firstStart(P):r.actions.internal.firstStart(P)};function Le(be){var mi;let Je=o||be;Je&&r.initVideo({container:We,sources:Je,failoverHosts:Xe,subtitles:h,volumeMultiplier:Ke});let _t=Xn.safeStorage.get(Ul)==="true";et.set(_t),y>0&&r.actions.external.seekTime(y);let Ft=x?Ge.volumeDefault:(mi=v!=null?v:fr())!=null?mi:Ge.volumeDefault,yt=I!=null?I:Lf();if(r.actions.external.setVolume(Ft),r.actions.external.setMuted(yt),r.getAdmanWrapper().setInitialVolume(yt?0:Ft),Ge.features.trafficSaving){let Mt=Mf();Mt&&r.actions.internal.setTrafficSavingEnabled(Mt)}if(Ge.features.saveRate&&Be){let Mt=Bf();Mt&&!n&&r.actions.internal.setPlaybackRate(Mt)}let Xt=Pf(r.videoId);Xt&&r.actions.internal.setQuality(Xt),r.ui.isAutoplay.set(C),C?pt():g&&Ge.features.preload&&r.actions.internal.preload()}let ut=be=>{if(window.ResizeObserver){let Je,_t;re=new ResizeObserver((0,Xn.throttleFn)(Ft=>{let yt=Ft[0];if(yt){if(yt.contentBoxSize){let Xt=Array.isArray(yt.contentBoxSize)?yt.contentBoxSize[0]:yt.contentBoxSize;Je=Xt.inlineSize,_t=Xt.blockSize}else yt.contentRect&&(Je=yt.contentRect.width,_t=yt.contentRect.height);ce.set({width:Je,height:_t})}},300)),re.observe(be)}ce.set({width:be.clientWidth,height:be.clientHeight})};qt(()=>{ut(We);let be=mt.map(_t=>_t.init({store:r,microStores:Ye,config:a}));if((w==null?void 0:w.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((w==null?void 0:w.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((w==null?void 0:w.status)==="finished"||(w==null?void 0:w.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return Le(),()=>{re==null||re.disconnect(),be.forEach(_t=>_t.unsubscribe()),r.destroy()}});function me(){Te?r.actions.external.play():pt(!0)}function tt(){r.actions.external.pause()}function Ct(be){x||r.actions.external.setMuted(be)}function bt(be){x||be>=0&&be<=1&&r.actions.external.setVolume(be)}function Ue(be){r.actions.internal.seekTime(be,Jp.SeekAction.UNKNOWN)}function Ot(be){r.actions.external.seekEpisodeStartTime(be)}function Vt(){r.actions.external.returnFocusToEpisodes()}function St(be){r.actions.external.setPlaybackRate(be)}function ni(be){r.actions.external.setAutoQualityLimits(be)}function ct(be){We=be,t(33,We)}function lt(be){We=be,t(33,We)}return i.$$set=be=>{"sources"in be&&t(39,o=be.sources),"store"in be&&t(0,r=be.store),"microStoresRoot"in be&&t(40,l=be.microStoresRoot),"videoConfig"in be&&t(41,a=be.videoConfig),"uiConfig"in be&&t(42,s=be.uiConfig),"title"in be&&t(1,u=be.title),"thumbUrl"in be&&t(2,f=be.thumbUrl),"interactiveContainer"in be&&t(3,m=be.interactiveContainer),"subtitles"in be&&t(43,h=be.subtitles),"live"in be&&t(4,w=be.live),"preload"in be&&t(44,g=be.preload),"autoplay"in be&&t(5,C=be.autoplay),"volume"in be&&t(45,v=be.volume),"muted"in be&&t(46,I=be.muted),"fromTime"in be&&t(47,y=be.fromTime),"canRewindLive"in be&&t(6,b=be.canRewindLive),"showAds"in be&&t(7,P=be.showAds),"adsSlotId"in be&&t(8,A=be.adsSlotId),"adsParams"in be&&t(9,M=be.adsParams),"adsPreviewParam"in be&&t(10,N=be.adsPreviewParam),"duration"in be&&t(11,te=be.duration),"logoClickable"in be&&t(12,_e=be.logoClickable),"logoHidden"in be&&t(13,Z=be.logoHidden),"isMobile"in be&&t(14,x=be.isMobile),"showNextPrevButtons"in be&&t(15,se=be.showNextPrevButtons),"nextButtonActive"in be&&t(16,L=be.nextButtonActive),"prevButtonActive"in be&&t(17,K=be.prevButtonActive),"endScreenVideoTitle"in be&&t(18,J=be.endScreenVideoTitle),"endScreenVideoThumb"in be&&t(19,Y=be.endScreenVideoThumb),"isOneVideoPlaylist"in be&&t(20,F=be.isOneVideoPlaylist),"supportLink"in be&&t(21,G=be.supportLink),"shadowRootContainer"in be&&t(22,X=be.shadowRootContainer),"outerContainerRef"in be&&t(23,le=be.outerContainerRef),"fullScreenTarget"in be&&t(24,qe=be.fullScreenTarget),"failoverHosts"in be&&t(48,Xe=be.failoverHosts),"showMiniTimer"in be&&t(25,Ee=be.showMiniTimer),"saveRate"in be&&t(49,Be=be.saveRate),"playNextVideo"in be&&t(26,De=be.playNextVideo),"playPrevVideo"in be&&t(27,xe=be.playPrevVideo),"repeatPlaylist"in be&&t(28,ae=be.repeatPlaylist),"seekToInteractive"in be&&t(29,he=be.seekToInteractive),"toggleGraph"in be&&t(30,at=be.toggleGraph),"playPrevChapter"in be&&t(31,Ce=be.playPrevChapter),"volumeMultiplier"in be&&t(50,Ke=be.volumeMultiplier)},i.$$.update=()=>{i.$$.dirty[0]&16385&&r.ui.isMobile.set(x)},[r,u,f,m,w,C,b,P,A,M,N,te,_e,Z,x,se,L,K,J,Y,F,G,X,le,qe,Ee,De,xe,ae,he,at,Ce,Ue,We,Te,Ge,Ze,Pe,pt,o,l,a,s,h,g,v,I,y,Xe,Be,Ke,Le,me,tt,Ct,bt,Ot,Vt,St,ni,ct,lt]}var Mc=class extends W{constructor(e){super(),j(this,e,A6,L6,U,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,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:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},P6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},xp=Mc;function M6(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),c(t,"fill","currentColor"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function V6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Vc=class extends W{constructor(e){super(),j(this,e,V6,M6,U,{})}},$p=Vc;function R6(i){let e,t;return e=new $p({props:{style:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function B6(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 Rc=class extends W{constructor(e){super(),j(this,e,B6,R6,U,{isWhite:1})}},e_=Rc;function q6(i){Ie(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 t_(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&k(e)}}}function i_(i){let e,t;return e=new e_({props:{isWhite:!!i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function D6(i){let e,t,n,o,r=i[0]&&t_(i),l=(!i[0]||!i[1])&&i_(i);return{c(){e=T("div"),r&&r.c(),t=B(),l&&l.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){S(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=t_(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=i_(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),de()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&k(e),r&&r.d(),l&&l.d()}}}function N6(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 Bc=class extends W{constructor(e){super(),j(this,e,N6,D6,U,{title:0,thumbUrl:1},q6)}},n_=Bc;var bn=require("@vkontakte/videoplayer-shared"),rD=require("@vkontakte/videoplayer-core"),m_=require("@vkontakte/videoplayer-statistics");var o_=require("@vkontakte/videoplayer-shared"),ys=class{constructor(){this.subscription=new o_.Subscription}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){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=$e(e.state.currentPlaybackRate$),o=$e(e.state.duration$);!isFinite(t)||!isFinite(o)||navigator.mediaSession.setPositionState({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Ml=require("@vkontakte/videoplayer-shared");function O6(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{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 f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),c(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"),c(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"),c(t,"fill","#fff"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{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&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function F6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qc=class extends W{constructor(e){super(),j(this,e,F6,O6,U,{})}},l_=qc;function H6(i){Ie(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 z6(i){let e,t,n,o,r,l,a;return n=new l_({}),{c(){e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("span"),l=Ne(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),O(t,"desktop",!i[1]),c(r,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),O(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),p(e,t),V(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&O(t,"desktop",!s[1]),(!a||u&1)&&Qe(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),R(n)}}}function U6(i,e,t){let n,o,r=rt(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;H(i,a,f=>t(5,n=f));let s=r.ui.isMobile;H(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&z("pip_dummy_title"))},[u,o,l,a,s,n]}var Dc=class extends W{constructor(e){super(),j(this,e,U6,z6,U,{},H6)}},r_=Dc;var K6=460,W6=280,Jl=class{constructor(){this.info={isActive$:new Ml.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,Ml.detectEmbed)();return"documentPictureInPicture"in window&&!Ml.clientChecker.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,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:K6,height:W6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.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 r_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.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 s_(i){return i instanceof Jl}var ws=class{static getLatestSupportedVersion(){let e=new zo,t=new Jl;if(t.isSupported())return t;if(e.isSupported())return e}};function ks(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var a_="Inner error. Unexpectedly root annotation container null reference exception",u_="Annotation with such name already exists",c_="Annotation with such name does not exist";var Vl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Rl=require("@vkontakte/videoplayer-shared"),j6="1",G6=100,Cs=class{constructor(){this.annotations=new Map;this.subscriptions=new Rl.Subscription}init(e){this.rootAnnotationsContainer=e;let t=(0,Rl.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},G6);this.subscriptions.add((0,Rl.observeElementSize)(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 Vl(a_);if(this.annotations.has(e))throw new Vl(u_);t.style.zIndex=(n=t.style.zIndex)!=null?n:j6,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 Vl(c_);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,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Bl=require("@vkontakte/videoplayer-shared"),eo=class{init({store:e,microStores:t,config:n}){return(0,Bl.assertNonNullable)(e),(0,Bl.assertNonNullable)(t),(0,Bl.assertNonNullable)(n),this.subscription=new Bl.Subscription,this.subscription}};var xl=class extends eo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Fe(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 $l=class extends eo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Fe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:f}=r.ui,m=$e(f),h=()=>m&&$e(u);return n.add(u.subscribe(w=>{if(!m)return;let g=$e(l);$e(s)?this.state$.set(w):g!==null&&this.state$.set(!g||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(l.subscribe(w=>{if(w===null)return;let g=$e(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!w)})),n}};var er=class extends eo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Fe("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(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var f_=require("@vkontakte/videoplayer-shared"),Nc=Fe(!1),Ss=null,tr=class extends eo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Nc,set:(t,n=!1)=>{t!==$e(Nc)&&(this.clearTimeout(),Nc.set(t),!t&&Ss&&(Ss=!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$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{$e(l)&&m&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add((0,f_.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{var g,C;if(!(!m||!(w!=null&&w.isDisplayed))){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&Ss===null&&(Ss=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(C=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||C.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var d_=()=>[xl,$l,er,tr].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var Q6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:bn.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,bn.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},Ts=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,b;let{albumId:o,statPlace:r,statUserSalt:l,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:m,deviceId:h,interactiveData:w}=ks(this.videoConfig,n),g=(y=w==null?void 0:w.projectInfo)==null?void 0:y.pid,{unitedVideoId:C,isClip:v=!1}=t;if(this.uiConfig.features.statistics&&C)return new m_.OneStat({movieId:C,albumId:o,place:r,trackCode:a,autoplay:(b=u&&!this.interactiveController)!=null?b:!1,mobile:f,clip:v,refDomain:m,deviceId:h,...g&&!this.isInited&&{projectId:Number(g)}},{refreshAuthToken:s,userSalt:l,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new bn.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new bn.Subscription,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 n_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l,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(),(l=this.unsubscribePlayerPhaseSubscription)==null||l.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 Le,ut,me,tt,Ct,bt,Ue,Ot,Vt,St,ni;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:m,fromTime:h,canRewindLive:w,supportLink:g,showAds:C,adsSlotId:v,adsParams:I={},adsPreviewParam:y,interfaceLanguage:b,isCyrillicRelatedInterface:P,logoClickable:A,logoHidden:M,isMobile:N,isAudioDisabled:te,isLiveCatchUpMode:_e,fullScreenTarget:Z,failoverHosts:x,canDownload:se,callbacks:L,interactiveData:K,showThumbTimer:J,additionalButtons:Y=[],repeat:F,saveRate:G,volumeMultiplier:X}=ks(this.videoConfig,n),{sources:le,title:qe,thumbUrl:Xe,unitedVideoId:Ee,isClip:Be=!1,duration:De,adsParams:xe={},videoEpisodes:ae,previewThumbsData:he,subtitles:at,live:Ce}=t,Ke={...I,...xe},mt=this.getNextVideoInfo(),Ye={sources:le,title:qe,thumbUrl:Xe,subtitles:at,unitedVideoId:Ee,isClip:Be,live:Ce,albumId:r,statPlace:l,autoplay:u,muted:m,volume:f,fromTime:h,canRewindLive:w,showAds:C,adsSlotId:v,adsParams:Ke,adsPreviewParam:y,duration:De,logoClickable:A,logoHidden:M,isMobile:N,repeat:F,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:mt.nextVideoTitle,endScreenVideoThumb:mt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ge={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Ye)}`});let Ze=(Le=this.interactiveController)==null?void 0:Le.state.statistics$.getValue(),et=(Ze==null?void 0:Ze.oneStat)||this.createOneStat(t,n);et&&(this.statistics=new ls(et,Ze==null?void 0:Ze.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ho(this.uiConfig.sentry,{version:No,env:cr},{movieId:Ee,albumId:r,place:l,autoplay:(ut=u&&!this.interactiveController)!=null?ut:!1,mobile:N,clip:Be}),this.interactiveController&&((tt=this.prevIsid)!=null||(this.prevIsid=(me=this.statistics)==null?void 0:me.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Ho.getInstance()};let Pe=!!K,We=[],re="tooltip_interactive_go_back_disabled_first";if(Pe&&this.interactiveController){let ct=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();ct&&We.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||We.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||(We.push("PLAY_PREV_CHAPTER_BUTTON"),ct||(lt.isGoBackLimited$.getValue()?re="tooltip_interactive_go_back_disabled_limit":re="tooltip_interactive_go_back_disabled"))}let Te=()=>{var lt;this.isInited=!1,this.prevIsid=void 0;let ct=(o==null?void 0:o.info.isEnded$.getValue())&&((lt=this.interactiveController)==null?void 0:lt.state.isEndChapter$.getValue());L.onReplayInteractiveVideo&&!ct?L.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Mm({player:o,interfaceLanguage:b,isCyrillicRelatedInterface:P,videoId:Ee,isClip:Be,isLiveCatchUpMode:_e,isAudioDisabled:te,statAuthToken:a,callbacks:L,webApi:Ge,videoEpisodes:ae,previewThumbsData:he,canDownload:se,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:We,isInteractive:Pe,saveRate:G,interactiveRanges$:(Ct=this.interactiveController)==null?void 0:Ct.state.interactiveRanges$,isInteractiveTime$:(bt=this.interactiveController)==null?void 0:bt.state.isInteractiveTime$,replayInteractive:Te,playPrevChapterDisabledTooltip:re,hasInteractiveBranches:!!((Ot=(Ue=this.interactiveController)==null?void 0:Ue.getChapterBranches())!=null&&Ot.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],looped:F&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:pt}=this.microStoresRoot=d_();this.subscription.add(this.store.state.currentFormat$.subscribe(ct=>{var lt;return(lt=L==null?void 0:L.onCurrentFormatChanged)==null?void 0:lt.call(L,ct)})),this.subscription.add(pt.interactiveControlsOpacity$.subscribe(ct=>{var lt;ct!==null&&((lt=this==null?void 0:this.interactiveController)==null||lt.setDisabledControls(ct))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ct=>{var lt;return(lt=L==null?void 0:L.onThroughputEstimationChanged)==null?void 0:lt.call(L,ct)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ct=>{var lt;return(lt=L==null?void 0:L.onTrafficSavingEnabledChanged)==null?void 0:lt.call(L,ct)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ct=>{var lt;return(lt=L==null?void 0:L.onCurrentPlaybackRateChanged)==null?void 0:lt.call(L,ct)})),this.subscription.add(this.store.state.volume$.subscribe(ct=>{var lt;return(lt=L==null?void 0:L.onVolumeChange)==null?void 0:lt.call(L,ct)})),this.subscription.add(this.store.state.muted$.subscribe(ct=>{var lt,be;return ct?(lt=L==null?void 0:L.onMute)==null?void 0:lt.call(L):(be=L==null?void 0:L.onUnmute)==null?void 0:be.call(L)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ct=>{var lt;return(lt=L==null?void 0:L.onVideoBitrateChanged)==null?void 0:lt.call(L,ct)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ct=>{var be;let lt=(be=this.store)==null?void 0:be.ui.controls.disabledControls$;lt&&(ct&&!lt.includes(Kl)&&lt.add(Kl),ct||lt.remove(Kl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ct=>{var be;if(!bn.clientChecker.isSamsungBrowser||!ct||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((be=this.videoConfig)==null?void 0:be.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ct=>{var lt;return(lt=L==null?void 0:L.onVSIDChanged)==null?void 0:lt.call(L,ct)})),this.initMediaSession(),this.svelteRootComponent=new xp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:le,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:qe,thumbUrl:Xe,subtitles:at,live:Ce,preload:s,autoplay:u,muted:m,volume:f,fromTime:h,canRewindLive:w,supportLink:g,showAds:C,adsSlotId:v,adsParams:Ke,adsPreviewParam:y,duration:De,logoClickable:A,logoHidden:M,isMobile:N,failoverHosts:x,fullScreenTarget:Z,saveRate:G,shadowRootContainer:this.shadowRootContainer,showMiniTimer:J,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:mt.nextVideoTitle,endScreenVideoThumb:mt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:X}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ni=(St=(Vt=this.videoConfig)==null?void 0:Vt.callbacks)==null?void 0:St.onInited)==null||ni.call(St))}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(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.timeline.subscribe(l=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,l)}))}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&&(0,bn.isNonNullable)(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)}toggleGraph(){var f,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=$e(n),s=$e(o);$e(r)?(r.set(!1),(f=this.interactiveController)==null||f.toggleGraphView(!1),l.remove(qs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(qs),!a&&this.graphMadePause&&this.pause())}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=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$,f=u?$e(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:w,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:f,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:w,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$:C}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(I=>{if(!this.isInited)return;let y=this.store;I?y.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):y.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(C.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let v=!0;if(this.interactiveController.on(a.playerChanged,I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(m==null?void 0:m.title)||I.config.title};let y=v?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,y),v&&(v=!1)}),this.interactiveController.on(a.interactives,({type:I,actionType:y})=>{var P,A,M,N;if(!this.store)return;let b=C.getValue();if(I==="action-choice"&&y==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ur)),I==="action-choice-canceled"){let te=$e(this.store.state.isPlaying$)||b;if((P=this.videoConfig)!=null&&P.isMobile&&te){this.store.ui.interactiveHideMobileControls.set(!0);return}(N=(A=this.videoConfig)==null?void 0:(M=A.callbacks).onDisabledInteractiveClick)==null||N.call(M)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(y=>{var b,P,A;y.length&&((A=(P=(b=this.videoConfig)==null?void 0:b.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||A.call(P,y))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,y,b,P;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(y=this.videoConfig)==null?void 0:(b=y.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(b)})),this.interactiveController.on(a.errors,I=>{this.log({message:I.toString()})})}catch(l){this.log({message:l.message})}}initPlayer(t,n={}){var o,r,l,a,s,u,f,m,h,w,g,C,v,I,y,b,P,A,M;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=ks(Q6,(0,bn.cloneDeepWith)(t,N=>N instanceof HTMLElement?N:void 0)),this.uiConfig=nf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},(0,bn.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,bn.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(f=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?f:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(w=this.uiConfig.isMobile)!=null?w:this.videoConfig.isMobile,(g=this.videoConfig).autoplay&&(g.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=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((y=this.uiConfig.showLogo)!=null?y:!this.videoConfig.logoHidden),(b=this.videoConfig).canRewindLive&&(b.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(P=this.videoConfig.supportLink)!=null?P:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ws.getLatestSupportedVersion():this.pictureInPictureApi=new zo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ys:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Cs:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(A=this.svelteStubComponent)==null||A.$destroy(),(M=this.svelteRootComponent)==null||M.$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]),s_(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 n,o,r;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy(),(o=this.mediaSessionApi)==null||o.destroy();let t=this.videoConfig.videos[0];t&&((r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t))}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=$e(this.store.state.positionExact$),a=$e(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 s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s.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()}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};var ql=require("@vkontakte/videoplayer-shared"),Ps=require("@vkontakte/videoplayer-core"),Y6=()=>{window.customElements.define("vk-video-player",Ts)};
52
+ );--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--mobile-settings-menu-z-index:1;--thumb-timer-z-index:2;--debug-panel-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}`)}function E6(i){let e,t,n;function o(l){i[61](l)}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],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new Ap({props:r}),ge.push(()=>ze(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function L6(i){let e,t,n;function o(l){i[60](l)}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],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new Jp({props:r}),ge.push(()=>ze(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function A6(i){let e,t,n,o,r=[L6,E6],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),c(e,"class","root svelte-1tl3een")},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(fe(),_(l[f],1,1,()=>{l[f]=null}),de(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),l[t].d()}}}function M6(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:w}=e,{preload:g}=e,{autoplay:k}=e,{volume:v=void 0}=e,{muted:I=void 0}=e,{fromTime:y}=e,{canRewindLive:b}=e,{showAds:P}=e,{adsSlotId:L=void 0}=e,{adsParams:M=void 0}=e,{adsPreviewParam:N=void 0}=e,{duration:te=void 0}=e,{logoClickable:_e}=e,{logoHidden:Z}=e,{isMobile:x}=e,{showNextPrevButtons:se=!1}=e,{nextButtonActive:A=!1}=e,{prevButtonActive:K=!1}=e,{endScreenVideoTitle:J=void 0}=e,{endScreenVideoThumb:Y=void 0}=e,{isOneVideoPlaylist:F=!1}=e,{supportLink:G}=e,{shadowRootContainer:X=void 0}=e,{outerContainerRef:oe=void 0}=e,{fullScreenTarget:De=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:Ee=!1}=e,{saveRate:Be}=e,{playNextVideo:qe=Xn.noop}=e,{playPrevVideo:xe=Xn.noop}=e,{repeatPlaylist:ae=Xn.noop}=e,{seekToInteractive:he=Xn.noop}=e,{toggleGraph:at=Xn.noop}=e,{playPrevChapter:Ce=Xn.noop}=e,{volumeMultiplier:Ke}=e,{subscribers:mt,stores:Ye}=l;of(s);let Ge=Ht(),Ze=s.logoLink,et=r.ui.debugPanelVisible,ce=r.ui.playerSize,Pe=r.state.isLive$;H(i,Pe,be=>t(63,n=be));let We,le=null,Te=!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}),_f(r,Ye);let pt=(be=!1)=>{t(34,Te=!0),be?r.actions.external.firstStart(P):r.actions.internal.firstStart(P)};function Le(be){var mi;let Je=o||be;Je&&r.initVideo({container:We,sources:Je,failoverHosts:Xe,subtitles:h,volumeMultiplier:Ke});let _t=Xn.safeStorage.get(Ul)==="true";et.set(_t),y>0&&r.actions.external.seekTime(y);let Ft=x?Ge.volumeDefault:(mi=v!=null?v:fr())!=null?mi:Ge.volumeDefault,yt=I!=null?I:Lf();if(r.actions.external.setVolume(Ft),r.actions.external.setMuted(yt),r.getAdmanWrapper().setInitialVolume(yt?0:Ft),Ge.features.trafficSaving){let Mt=Mf();Mt&&r.actions.internal.setTrafficSavingEnabled(Mt)}if(Ge.features.saveRate&&Be){let Mt=Bf();Mt&&!n&&r.actions.internal.setPlaybackRate(Mt)}let Xt=Pf(r.videoId);Xt&&r.actions.internal.setQuality(Xt),r.ui.isAutoplay.set(k),k?pt():g&&Ge.features.preload&&r.actions.internal.preload()}let ut=be=>{if(window.ResizeObserver){let Je,_t;le=new ResizeObserver((0,Xn.throttleFn)(Ft=>{let yt=Ft[0];if(yt){if(yt.contentBoxSize){let Xt=Array.isArray(yt.contentBoxSize)?yt.contentBoxSize[0]:yt.contentBoxSize;Je=Xt.inlineSize,_t=Xt.blockSize}else yt.contentRect&&(Je=yt.contentRect.width,_t=yt.contentRect.height);ce.set({width:Je,height:_t})}},300)),le.observe(be)}ce.set({width:be.clientWidth,height:be.clientHeight})};Dt(()=>{ut(We);let be=mt.map(_t=>_t.init({store:r,microStores:Ye,config:a}));if((w==null?void 0:w.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((w==null?void 0:w.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((w==null?void 0:w.status)==="finished"||(w==null?void 0:w.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return Le(),()=>{le==null||le.disconnect(),be.forEach(_t=>_t.unsubscribe()),r.destroy()}});function me(){Te?r.actions.external.play():pt(!0)}function tt(){r.actions.external.pause()}function Ct(be){x||r.actions.external.setMuted(be)}function bt(be){x||be>=0&&be<=1&&r.actions.external.setVolume(be)}function Ue(be){r.actions.internal.seekTime(be,xp.SeekAction.UNKNOWN)}function Ot(be){r.actions.external.seekEpisodeStartTime(be)}function Vt(){r.actions.external.returnFocusToEpisodes()}function St(be){r.actions.external.setPlaybackRate(be)}function ni(be){r.actions.external.setAutoQualityLimits(be)}function ct(be){We=be,t(33,We)}function lt(be){We=be,t(33,We)}return i.$$set=be=>{"sources"in be&&t(39,o=be.sources),"store"in be&&t(0,r=be.store),"microStoresRoot"in be&&t(40,l=be.microStoresRoot),"videoConfig"in be&&t(41,a=be.videoConfig),"uiConfig"in be&&t(42,s=be.uiConfig),"title"in be&&t(1,u=be.title),"thumbUrl"in be&&t(2,f=be.thumbUrl),"interactiveContainer"in be&&t(3,m=be.interactiveContainer),"subtitles"in be&&t(43,h=be.subtitles),"live"in be&&t(4,w=be.live),"preload"in be&&t(44,g=be.preload),"autoplay"in be&&t(5,k=be.autoplay),"volume"in be&&t(45,v=be.volume),"muted"in be&&t(46,I=be.muted),"fromTime"in be&&t(47,y=be.fromTime),"canRewindLive"in be&&t(6,b=be.canRewindLive),"showAds"in be&&t(7,P=be.showAds),"adsSlotId"in be&&t(8,L=be.adsSlotId),"adsParams"in be&&t(9,M=be.adsParams),"adsPreviewParam"in be&&t(10,N=be.adsPreviewParam),"duration"in be&&t(11,te=be.duration),"logoClickable"in be&&t(12,_e=be.logoClickable),"logoHidden"in be&&t(13,Z=be.logoHidden),"isMobile"in be&&t(14,x=be.isMobile),"showNextPrevButtons"in be&&t(15,se=be.showNextPrevButtons),"nextButtonActive"in be&&t(16,A=be.nextButtonActive),"prevButtonActive"in be&&t(17,K=be.prevButtonActive),"endScreenVideoTitle"in be&&t(18,J=be.endScreenVideoTitle),"endScreenVideoThumb"in be&&t(19,Y=be.endScreenVideoThumb),"isOneVideoPlaylist"in be&&t(20,F=be.isOneVideoPlaylist),"supportLink"in be&&t(21,G=be.supportLink),"shadowRootContainer"in be&&t(22,X=be.shadowRootContainer),"outerContainerRef"in be&&t(23,oe=be.outerContainerRef),"fullScreenTarget"in be&&t(24,De=be.fullScreenTarget),"failoverHosts"in be&&t(48,Xe=be.failoverHosts),"showMiniTimer"in be&&t(25,Ee=be.showMiniTimer),"saveRate"in be&&t(49,Be=be.saveRate),"playNextVideo"in be&&t(26,qe=be.playNextVideo),"playPrevVideo"in be&&t(27,xe=be.playPrevVideo),"repeatPlaylist"in be&&t(28,ae=be.repeatPlaylist),"seekToInteractive"in be&&t(29,he=be.seekToInteractive),"toggleGraph"in be&&t(30,at=be.toggleGraph),"playPrevChapter"in be&&t(31,Ce=be.playPrevChapter),"volumeMultiplier"in be&&t(50,Ke=be.volumeMultiplier)},i.$$.update=()=>{i.$$.dirty[0]&16385&&r.ui.isMobile.set(x)},[r,u,f,m,w,k,b,P,L,M,N,te,_e,Z,x,se,A,K,J,Y,F,G,X,oe,De,Ee,qe,xe,ae,he,at,Ce,Ue,We,Te,Ge,Ze,Pe,pt,o,l,a,s,h,g,v,I,y,Xe,Be,Ke,Le,me,tt,Ct,bt,Ot,Vt,St,ni,ct,lt]}var Mc=class extends W{constructor(e){super(),j(this,e,M6,A6,U,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,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:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},I6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},$p=Mc;function V6(i){let e,t,n,o=i[2].default,r=Ae(o,i,i[1],null),l=[{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 s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),c(t,"fill","currentColor"),c(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(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&C(e),r&&r.d(s)}}}function R6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Vc=class extends W{constructor(e){super(),j(this,e,R6,V6,U,{})}},e_=Vc;function B6(i){let e,t;return e=new e_({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function D6(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 Rc=class extends W{constructor(e){super(),j(this,e,D6,B6,U,{isWhite:1})}},t_=Rc;function q6(i){Ie(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 i_(i){let e,t;return{c(){e=T("div"),t=Ne(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&C(e)}}}function n_(i){let e,t;return e=new t_({props:{isWhite:!!i[1]}}),{c(){D(e.$$.fragment)},m(n,o){V(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){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function N6(i){let e,t,n,o,r=i[0]&&i_(i),l=(!i[0]||!i[1])&&n_(i);return{c(){e=T("div"),r&&r.c(),t=B(),l&&l.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){S(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=i_(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=n_(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),de()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&C(e),r&&r.d(),l&&l.d()}}}function O6(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 Bc=class extends W{constructor(e){super(),j(this,e,O6,N6,U,{title:0,thumbUrl:1},q6)}},o_=Bc;var bn=require("@vkontakte/videoplayer-shared"),sq=require("@vkontakte/videoplayer-core"),p_=require("@vkontakte/videoplayer-statistics");var l_=require("@vkontakte/videoplayer-shared"),ys=class{constructor(){this.subscription=new l_.Subscription}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){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=$e(e.state.currentPlaybackRate$),o=$e(e.state.duration$);!isFinite(t)||!isFinite(o)||navigator.mediaSession.setPositionState({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Ml=require("@vkontakte/videoplayer-shared");function F6(i){let e,t,n,o,r,l=i[2].default,a=Ae(l,i,i[1],null),s=[{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 f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=q("svg"),a&&a.c(),t=q("g"),n=q("path"),o=q("path"),c(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"),c(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"),c(t,"fill","#fff"),we(e,u)},m(f,m){S(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Re(f[1]),null),we(e,u=Oe(s,[{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&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&C(e),a&&a.d(f)}}}function H6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Dc=class extends W{constructor(e){super(),j(this,e,H6,F6,U,{})}},r_=Dc;function z6(i){Ie(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 U6(i){let e,t,n,o,r,l,a;return n=new r_({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=B(),r=T("span"),l=Ne(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),O(t,"desktop",!i[1]),c(r,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),O(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),p(e,t),V(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&O(t,"desktop",!s[1]),(!a||u&1)&&Qe(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&C(e),R(n)}}}function K6(i,e,t){let n,o,r=rt(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;H(i,a,f=>t(5,n=f));let s=r.ui.isMobile;H(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&z("pip_dummy_title"))},[u,o,l,a,s,n]}var qc=class extends W{constructor(e){super(),j(this,e,K6,U6,U,{},z6)}},s_=qc;var W6=460,j6=280,Jl=class{constructor(){this.info={isActive$:new Ml.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,Ml.detectEmbed)();return"documentPictureInPicture"in window&&!Ml.clientChecker.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,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:W6,height:j6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.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 s_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.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 a_(i){return i instanceof Jl}var ws=class{static getLatestSupportedVersion(){let e=new zo,t=new Jl;if(t.isSupported())return t;if(e.isSupported())return e}};function ks(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var u_="Inner error. Unexpectedly root annotation container null reference exception",c_="Annotation with such name already exists",f_="Annotation with such name does not exist";var Vl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Rl=require("@vkontakte/videoplayer-shared"),G6="1",Q6=100,Cs=class{constructor(){this.annotations=new Map;this.subscriptions=new Rl.Subscription}init(e){this.rootAnnotationsContainer=e;let t=(0,Rl.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Q6);this.subscriptions.add((0,Rl.observeElementSize)(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 Vl(u_);if(this.annotations.has(e))throw new Vl(c_);t.style.zIndex=(n=t.style.zIndex)!=null?n:G6,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 Vl(f_);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,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Bl=require("@vkontakte/videoplayer-shared"),eo=class{init({store:e,microStores:t,config:n}){return(0,Bl.assertNonNullable)(e),(0,Bl.assertNonNullable)(t),(0,Bl.assertNonNullable)(n),this.subscription=new Bl.Subscription,this.subscription}};var xl=class extends eo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Fe(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 $l=class extends eo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Fe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:f}=r.ui,m=$e(f),h=()=>m&&$e(u);return n.add(u.subscribe(w=>{if(!m)return;let g=$e(l);$e(s)?this.state$.set(w):g!==null&&this.state$.set(!g||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(l.subscribe(w=>{if(w===null)return;let g=$e(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!w)})),n}};var er=class extends eo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Fe("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(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var d_=require("@vkontakte/videoplayer-shared"),Nc=Fe(!1),Ss=null,tr=class extends eo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Nc,set:(t,n=!1)=>{t!==$e(Nc)&&(this.clearTimeout(),Nc.set(t),!t&&Ss&&(Ss=!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$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{$e(l)&&m&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add((0,d_.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{var g,k;if(!(!m||!(w!=null&&w.isDisplayed))){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&Ss===null&&(Ss=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(k=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||k.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var m_=()=>[xl,$l,er,tr].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var Y6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:bn.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,bn.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},Ts=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,b;let{albumId:o,statPlace:r,statUserSalt:l,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:m,deviceId:h,interactiveData:w}=ks(this.videoConfig,n),g=(y=w==null?void 0:w.projectInfo)==null?void 0:y.pid,{unitedVideoId:k,isClip:v=!1}=t;if(this.uiConfig.features.statistics&&k)return new p_.OneStat({movieId:k,albumId:o,place:r,trackCode:a,autoplay:(b=u&&!this.interactiveController)!=null?b:!1,mobile:f,clip:v,refDomain:m,deviceId:h,...g&&!this.isInited&&{projectId:Number(g)}},{refreshAuthToken:s,userSalt:l,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new bn.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new bn.Subscription,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 o_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l,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(),(l=this.unsubscribePlayerPhaseSubscription)==null||l.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 Le,ut,me,tt,Ct,bt,Ue,Ot,Vt,St,ni;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:m,fromTime:h,canRewindLive:w,supportLink:g,showAds:k,adsSlotId:v,adsParams:I={},adsPreviewParam:y,interfaceLanguage:b,isCyrillicRelatedInterface:P,logoClickable:L,logoHidden:M,isMobile:N,isAudioDisabled:te,isLiveCatchUpMode:_e,fullScreenTarget:Z,failoverHosts:x,canDownload:se,callbacks:A,interactiveData:K,showThumbTimer:J,additionalButtons:Y=[],repeat:F,saveRate:G,volumeMultiplier:X}=ks(this.videoConfig,n),{sources:oe,title:De,thumbUrl:Xe,unitedVideoId:Ee,isClip:Be=!1,duration:qe,adsParams:xe={},videoEpisodes:ae,previewThumbsData:he,subtitles:at,live:Ce}=t,Ke={...I,...xe},mt=this.getNextVideoInfo(),Ye={sources:oe,title:De,thumbUrl:Xe,subtitles:at,unitedVideoId:Ee,isClip:Be,live:Ce,albumId:r,statPlace:l,autoplay:u,muted:m,volume:f,fromTime:h,canRewindLive:w,showAds:k,adsSlotId:v,adsParams:Ke,adsPreviewParam:y,duration:qe,logoClickable:L,logoHidden:M,isMobile:N,repeat:F,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:mt.nextVideoTitle,endScreenVideoThumb:mt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ge={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Ye)}`});let Ze=(Le=this.interactiveController)==null?void 0:Le.state.statistics$.getValue(),et=(Ze==null?void 0:Ze.oneStat)||this.createOneStat(t,n);et&&(this.statistics=new ls(et,Ze==null?void 0:Ze.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ho(this.uiConfig.sentry,{version:No,env:cr},{movieId:Ee,albumId:r,place:l,autoplay:(ut=u&&!this.interactiveController)!=null?ut:!1,mobile:N,clip:Be}),this.interactiveController&&((tt=this.prevIsid)!=null||(this.prevIsid=(me=this.statistics)==null?void 0:me.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Ho.getInstance()};let Pe=!!K,We=[],le="tooltip_interactive_go_back_disabled_first";if(Pe&&this.interactiveController){let ct=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();ct&&We.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||We.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||(We.push("PLAY_PREV_CHAPTER_BUTTON"),ct||(lt.isGoBackLimited$.getValue()?le="tooltip_interactive_go_back_disabled_limit":le="tooltip_interactive_go_back_disabled"))}let Te=()=>{var lt;this.isInited=!1,this.prevIsid=void 0;let ct=(o==null?void 0:o.info.isEnded$.getValue())&&((lt=this.interactiveController)==null?void 0:lt.state.isEndChapter$.getValue());A.onReplayInteractiveVideo&&!ct?A.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Mm({player:o,interfaceLanguage:b,isCyrillicRelatedInterface:P,videoId:Ee,isClip:Be,isLiveCatchUpMode:_e,isAudioDisabled:te,statAuthToken:a,callbacks:A,webApi:Ge,videoEpisodes:ae,previewThumbsData:he,canDownload:se,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:We,isInteractive:Pe,saveRate:G,interactiveRanges$:(Ct=this.interactiveController)==null?void 0:Ct.state.interactiveRanges$,isInteractiveTime$:(bt=this.interactiveController)==null?void 0:bt.state.isInteractiveTime$,replayInteractive:Te,playPrevChapterDisabledTooltip:le,hasInteractiveBranches:!!((Ot=(Ue=this.interactiveController)==null?void 0:Ue.getChapterBranches())!=null&&Ot.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],looped:F&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:pt}=this.microStoresRoot=m_();this.subscription.add(this.store.state.currentFormat$.subscribe(ct=>{var lt;return(lt=A==null?void 0:A.onCurrentFormatChanged)==null?void 0:lt.call(A,ct)})),this.subscription.add(pt.interactiveControlsOpacity$.subscribe(ct=>{var lt;ct!==null&&((lt=this==null?void 0:this.interactiveController)==null||lt.setDisabledControls(ct))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ct=>{var lt;return(lt=A==null?void 0:A.onThroughputEstimationChanged)==null?void 0:lt.call(A,ct)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ct=>{var lt;return(lt=A==null?void 0:A.onTrafficSavingEnabledChanged)==null?void 0:lt.call(A,ct)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ct=>{var lt;return(lt=A==null?void 0:A.onCurrentPlaybackRateChanged)==null?void 0:lt.call(A,ct)})),this.subscription.add(this.store.state.volume$.subscribe(ct=>{var lt;return(lt=A==null?void 0:A.onVolumeChange)==null?void 0:lt.call(A,ct)})),this.subscription.add(this.store.state.muted$.subscribe(ct=>{var lt,be;return ct?(lt=A==null?void 0:A.onMute)==null?void 0:lt.call(A):(be=A==null?void 0:A.onUnmute)==null?void 0:be.call(A)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ct=>{var lt;return(lt=A==null?void 0:A.onVideoBitrateChanged)==null?void 0:lt.call(A,ct)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ct=>{var be;let lt=(be=this.store)==null?void 0:be.ui.controls.disabledControls$;lt&&(ct&&!lt.includes(Kl)&&lt.add(Kl),ct||lt.remove(Kl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ct=>{var be;if(!bn.clientChecker.isSamsungBrowser||!ct||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((be=this.videoConfig)==null?void 0:be.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ct=>{var lt;return(lt=A==null?void 0:A.onVSIDChanged)==null?void 0:lt.call(A,ct)})),this.initMediaSession(),this.svelteRootComponent=new $p({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:oe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:De,thumbUrl:Xe,subtitles:at,live:Ce,preload:s,autoplay:u,muted:m,volume:f,fromTime:h,canRewindLive:w,supportLink:g,showAds:k,adsSlotId:v,adsParams:Ke,adsPreviewParam:y,duration:qe,logoClickable:L,logoHidden:M,isMobile:N,failoverHosts:x,fullScreenTarget:Z,saveRate:G,shadowRootContainer:this.shadowRootContainer,showMiniTimer:J,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:mt.nextVideoTitle,endScreenVideoThumb:mt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:X}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ni=(St=(Vt=this.videoConfig)==null?void 0:Vt.callbacks)==null?void 0:St.onInited)==null||ni.call(St))}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(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.timeline.subscribe(l=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,l)}))}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&&(0,bn.isNonNullable)(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)}toggleGraph(){var f,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=$e(n),s=$e(o);$e(r)?(r.set(!1),(f=this.interactiveController)==null||f.toggleGraphView(!1),l.remove(Ds),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(Ds),!a&&this.graphMadePause&&this.pause())}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=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$,f=u?$e(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:w,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:f,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:w,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$:k}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(I=>{if(!this.isInited)return;let y=this.store;I?y.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):y.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(k.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let v=!0;if(this.interactiveController.on(a.playerChanged,I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(m==null?void 0:m.title)||I.config.title};let y=v?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,y),v&&(v=!1)}),this.interactiveController.on(a.interactives,({type:I,actionType:y})=>{var P,L,M,N;if(!this.store)return;let b=k.getValue();if(I==="action-choice"&&y==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ur)),I==="action-choice-canceled"){let te=$e(this.store.state.isPlaying$)||b;if((P=this.videoConfig)!=null&&P.isMobile&&te){this.store.ui.interactiveHideMobileControls.set(!0);return}(N=(L=this.videoConfig)==null?void 0:(M=L.callbacks).onDisabledInteractiveClick)==null||N.call(M)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(y=>{var b,P,L;y.length&&((L=(P=(b=this.videoConfig)==null?void 0:b.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||L.call(P,y))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,y,b,P;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(y=this.videoConfig)==null?void 0:(b=y.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(b)})),this.interactiveController.on(a.errors,I=>{this.log({message:I.toString()})})}catch(l){this.log({message:l.message})}}initPlayer(t,n={}){var o,r,l,a,s,u,f,m,h,w,g,k,v,I,y,b,P,L,M;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=ks(Y6,(0,bn.cloneDeepWith)(t,N=>N instanceof HTMLElement?N:void 0)),this.uiConfig=nf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},(0,bn.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,bn.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(f=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?f:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(w=this.uiConfig.isMobile)!=null?w:this.videoConfig.isMobile,(g=this.videoConfig).autoplay&&(g.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(v=this.uiConfig.ads.slot)!=null?v:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((y=this.uiConfig.showLogo)!=null?y:!this.videoConfig.logoHidden),(b=this.videoConfig).canRewindLive&&(b.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(P=this.videoConfig.supportLink)!=null?P:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ws.getLatestSupportedVersion():this.pictureInPictureApi=new zo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ys:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Cs:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(L=this.svelteStubComponent)==null||L.$destroy(),(M=this.svelteRootComponent)==null||M.$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]),a_(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 n,o,r;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy(),(o=this.mediaSessionApi)==null||o.destroy();let t=this.videoConfig.videos[0];t&&((r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t))}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=$e(this.store.state.positionExact$),a=$e(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 s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s.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()}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};var Dl=require("@vkontakte/videoplayer-shared"),Ps=require("@vkontakte/videoplayer-core"),Z6=()=>{window.customElements.define("vk-video-player",Ts)};