@vkontakte/videoplayer 1.1.36-dev.35d4a782.0 → 1.1.36-dev.3e8d23ea.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/esnext.cjs.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.36-dev.35d4a782.0
3
- * Tue, 28 May 2024 11:15:16 GMT
2
+ * @vkontakte/videoplayer v1.1.36-dev.3e8d23ea.0
3
+ * Mon, 03 Jun 2024 08:07:02 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
5
5
  */
6
- "use strict";var ac=Object.create;var Zl=Object.defineProperty;var uc=Object.getOwnPropertyDescriptor;var cc=Object.getOwnPropertyNames;var fc=Object.getPrototypeOf,dc=Object.prototype.hasOwnProperty;var mc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of cc(e))!dc.call(t,o)&&o!==i&&Zl(t,o,{get:()=>e[o],enumerable:!(n=uc(e,o))||n.enumerable});return t};var Wl=(t,e,i)=>(i=t!=null?ac(fc(t)):{},mc(e||!t||!t.__esModule?Zl(i,"default",{value:t,enumerable:!0}):i,t));var xe=require("@vkontakte/videoplayer-core/esnext.cjs.js"),ie=require("@vkontakte/videoplayer-shared/esnext.cjs.js"),mt=require("@vkontakte/videoplayer-statistics/esnext.cjs.js");require("@vkontakte/videoplayer-interactive/esnext.cjs.js");function j(){}function t1(t,e){for(const i in e)t[i]=e[i];return t}function i1(t){return t()}function Kl(){return Object.create(null)}function nt(t){t.forEach(i1)}function mn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Io;function Gl(t,e){return Io||(Io=document.createElement("a")),Io.href=e,t===Io.href}function pc(t){return Object.keys(t).length===0}function Wt(t,...e){if(t==null){for(const n of e)n(void 0);return j}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function et(t){let e;return Wt(t,i=>e=i)(),e}function O(t,e,i){t.$$.on_destroy.push(Wt(e,i))}function An(t,e,i,n){if(t){const o=n1(t,e,i,n);return t[0](o)}}function n1(t,e,i,n){return t[1]&&n?t1(i.ctx.slice(),t[1](n(e))):i.ctx}function In(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Ln(t,e,i,n,o,s){if(o){const l=n1(e,i,n,s);t.p(l,o)}}function Vn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function hc(t){return t??""}const jo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function m(t,e){t.appendChild(e)}function Ze(t,e,i){const n=gc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,bc(n,o)}}function gc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function bc(t,e){return m(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function P(t){t.parentNode&&t.parentNode.removeChild(t)}function pn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function De(t){return document.createTextNode(t)}function R(){return De(" ")}function ct(){return De("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function _c(t){return Array.from(t.childNodes)}function $e(t,e){e=""+e,t.data!==e&&(t.data=e)}function Tt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Lo;function vc(){if(Lo===void 0){Lo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Lo=!0}}return Lo}function _l(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("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;const o=vc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||s&&n.contentWindow)&&s(),P(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function kn(t,e){return new t(e)}let _o;function bo(t){_o=t}function ko(){if(!_o)throw new Error("Function called outside component initialization");return _o}function ln(t){ko().$$.on_mount.push(t)}function Zo(t){ko().$$.on_destroy.push(t)}function dl(t,e){return ko().$$.context.set(t,e),e}function vl(t){return ko().$$.context.get(t)}function o1(){return ko().$$.context}function lo(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const to=[],ke=[];let no=[];const ml=[],l1=Promise.resolve();let pl=!1;function s1(){pl||(pl=!0,l1.then(r1))}function wo(){return s1(),l1}function so(t){no.push(t)}function qe(t){ml.push(t)}const il=new Set;let xn=0;function r1(){if(xn!==0)return;const t=_o;do{try{for(;xn<to.length;){const e=to[xn];xn++,bo(e),kc(e.$$)}}catch(e){throw to.length=0,xn=0,e}for(bo(null),to.length=0,xn=0;ke.length;)ke.pop()();for(let e=0;e<no.length;e+=1){const i=no[e];il.has(i)||(il.add(i),i())}no.length=0}while(to.length);for(;ml.length;)ml.pop()();pl=!1,il.clear(),bo(t)}function kc(t){if(t.fragment!==null){t.update(),nt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(so)}}function wc(t){const e=[],i=[];no.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),no=e}const Fo=new Set;let jn;function ce(){jn={r:0,c:[],p:jn}}function fe(){jn.r||nt(jn.c),jn=jn.p}function d(t,e){t&&t.i&&(Fo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(Fo.has(t))return;Fo.add(t),jn.c.push(()=>{Fo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Rt(t){return t?.length!==void 0?t:Array.from(t)}function yc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function Cc(t){return typeof t=="object"&&t!==null?t:{}}function je(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function D(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),so(()=>{const s=t.$$.on_mount.map(i1).filter(mn);t.$$.on_destroy?t.$$.on_destroy.push(...s):nt(s),t.$$.on_mount=[]}),o.forEach(so)}function F(t,e){const i=t.$$;i.fragment!==null&&(wc(i.after_update),nt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Sc(t,e){t.$$.dirty[0]===-1&&(to.push(t),s1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function be(t,e,i,n,o,s,l,r=[-1]){const a=_o;bo(t);const c=t.$$={fragment:null,ctx:[],props:s,update:j,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Kl(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(p,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[p],c.ctx[p]=b)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](b),f&&Sc(t,p)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const p=_c(e.target);c.fragment&&c.fragment.l(p),p.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),D(t,e.target,e.anchor),r1()}bo(a)}class _e{$$=void 0;$$set=void 0;$destroy(){F(this,1),this.$destroy=j}$on(e,i){if(!mn(i))return j;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Pc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pc);var ro;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(ro||(ro={}));const Tc={isMobile:void 0,defaultLanguage:ie.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:ro.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ie.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,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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Ec=t=>ie.fillWithDefault(t,Tc),Ac=t=>dl("ui-config",t),sn=()=>vl("ui-config"),hl="vk_player_debug_panel_opened",a1=300,Ic=100,Lc="videoplayer",Vc="videoplayer";var Ae;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ae||(Ae={}));const yo={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},Mc=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),Bc=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),Nc=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var rt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(rt||(rt={}));const Yl=40,u1=260,Rc=60,Vo=8,c1=[rt.TIMELINE],Ho=[...c1,rt.GRAPH_BUTTON],Ql=[...c1,rt.PLAY_BUTTON],f1=[...Ho,rt.PLAY_BUTTON];var io;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(io||(io={}));exports.GridTypes=void 0;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const ao={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},$n=[];function vn(t,e){return{subscribe:Me(t,e).subscribe}}function Me(t,e=j){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!$n.length;for(const c of n)c[1](),$n.push(c,t);if(a){for(let c=0;c<$n.length;c+=2)$n[c][0]($n[c+1]);$n.length=0}}}function s(r){o(r(t))}function l(r,a=j){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||j),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function Bi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return vn(i,(l,r)=>{let a=!1;const c=[];let f=0,p=j;const h=()=>{if(f)return;p();const b=e(n?c[0]:c,l,r);s?l(b):p=mn(b)?b:j},_=o.map((b,k)=>Wt(b,v=>{c[k]=v,f&=~(1<<k),a&&h()},()=>{f|=1<<k}));return a=!0,h(),function(){nt(_),p(),a=!1}})}const Oc="prod",Wo="1.1.36-dev.35d4a782.0",d1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},m1=Symbol("storeContext"),p1=Symbol("microStoresContext"),zc=(t,e)=>{dl(m1,t),dl(p1,e)},pt=()=>{const t=vl(m1);return ie.assertNonNullable(t,"Store context is empty!"),t},Ko=()=>{const t=vl(p1);return ie.assertNonNullable(t,"MicroStores context is empty!"),t},dt=(t,e)=>h1(t,t.getValue(),e),h1=(t,e,i)=>vn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),Dc=(t,e,i)=>{const n=t.info,{width:o,height:s}=et(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Wo} (core: ${xe.VERSION}, stat: ${mt.VERSION}, shared: ${ie.VERSION})`,f=et(i.state.errorLog$),p=f.length?`
6
+ "use strict";var ic=Object.create;var Hl=Object.defineProperty;var nc=Object.getOwnPropertyDescriptor;var oc=Object.getOwnPropertyNames;var lc=Object.getPrototypeOf,sc=Object.prototype.hasOwnProperty;var rc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of oc(e))!sc.call(t,o)&&o!==i&&Hl(t,o,{get:()=>e[o],enumerable:!(n=nc(e,o))||n.enumerable});return t};var Fl=(t,e,i)=>(i=t!=null?ic(lc(t)):{},rc(e||!t||!t.__esModule?Hl(i,"default",{value:t,enumerable:!0}):i,t));var $e=require("@vkontakte/videoplayer-core/esnext.cjs.js"),te=require("@vkontakte/videoplayer-shared/esnext.cjs.js"),pt=require("@vkontakte/videoplayer-statistics/esnext.cjs.js");require("@vkontakte/videoplayer-interactive/esnext.cjs.js");function W(){}function Ya(t,e){for(const i in e)t[i]=e[i];return t}function Qa(t){return t()}function Ul(){return Object.create(null)}function nt(t){t.forEach(Qa)}function vn(t){return typeof t=="function"}function be(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Bo;function ql(t,e){return Bo||(Bo=document.createElement("a")),Bo.href=e,t===Bo.href}function ac(t){return Object.keys(t).length===0}function qt(t,...e){if(t==null){for(const n of e)n(void 0);return W}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function xe(t){let e;return qt(t,i=>e=i)(),e}function O(t,e,i){t.$$.on_destroy.push(qt(e,i))}function Mn(t,e,i,n){if(t){const o=Xa(t,e,i,n);return t[0](o)}}function Xa(t,e,i,n){return t[1]&&n?Ya(i.ctx.slice(),t[1](n(e))):i.ctx}function Bn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Nn(t,e,i,n,o,s){if(o){const l=Xa(e,i,n,s);t.p(l,o)}}function Rn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function uc(t){return t??""}const Ja=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Ke(t,e,i){const n=cc(t);if(!n.getElementById(e)){const o=I("style");o.id=e,o.textContent=i,fc(n,o)}}function cc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function fc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function P(t){t.parentNode&&t.parentNode.removeChild(t)}function kn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function I(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function De(t){return document.createTextNode(t)}function D(){return De(" ")}function at(){return De("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Wt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function dc(t){return Array.from(t.childNodes)}function et(t,e){e=""+e,t.data!==e&&(t.data=e)}function It(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let No;function mc(){if(No===void 0){No=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{No=!0}}return No}function hl(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=I("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;const o=mc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=he(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=he(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),P(n)}}function M(t,e,i){t.classList.toggle(e,!!i)}function Tn(t,e){return new t(e)}let ko;function vo(t){ko=t}function yo(){if(!ko)throw new Error("Function called outside component initialization");return ko}function sn(t){yo().$$.on_mount.push(t)}function Co(t){yo().$$.on_destroy.push(t)}function ul(t,e){return yo().$$.context.set(t,e),e}function gl(t){return yo().$$.context.get(t)}function xa(){return yo().$$.context}function Qn(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const oo=[],we=[];let so=[];const cl=[],$a=Promise.resolve();let fl=!1;function e1(){fl||(fl=!0,$a.then(t1))}function Po(){return e1(),$a}function ao(t){so.push(t)}function Fe(t){cl.push(t)}const el=new Set;let to=0;function t1(){if(to!==0)return;const t=ko;do{try{for(;to<oo.length;){const e=oo[to];to++,vo(e),pc(e.$$)}}catch(e){throw oo.length=0,to=0,e}for(vo(null),oo.length=0,to=0;we.length;)we.pop()();for(let e=0;e<so.length;e+=1){const i=so[e];el.has(i)||(el.add(i),i())}so.length=0}while(oo.length);for(;cl.length;)cl.pop()();fl=!1,el.clear(),vo(t)}function pc(t){if(t.fragment!==null){t.update(),nt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ao)}}function hc(t){const e=[],i=[];so.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),so=e}const qo=new Set;let Gn;function fe(){Gn={r:0,c:[],p:Gn}}function de(){Gn.r||nt(Gn.c),Gn=Gn.p}function d(t,e){t&&t.i&&(qo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(qo.has(t))return;qo.add(t),Gn.c.push(()=>{qo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Rt(t){return t?.length!==void 0?t:Array.from(t)}function gc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function bc(t){return typeof t=="object"&&t!==null?t:{}}function Ue(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function z(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),ao(()=>{const s=t.$$.on_mount.map(Qa).filter(vn);t.$$.on_destroy?t.$$.on_destroy.push(...s):nt(s),t.$$.on_mount=[]}),o.forEach(ao)}function H(t,e){const i=t.$$;i.fragment!==null&&(hc(i.after_update),nt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function _c(t,e){t.$$.dirty[0]===-1&&(oo.push(t),e1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function _e(t,e,i,n,o,s,l,r=[-1]){const a=ko;vo(t);const c=t.$$={fragment:null,ctx:[],props:s,update:W,not_equal:o,bound:Ul(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Ul(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=b)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](b),f&&_c(t,m)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=dc(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),z(t,e.target,e.anchor),t1()}vo(a)}class ve{$$=void 0;$$set=void 0;$destroy(){H(this,1),this.$destroy=W}$on(e,i){if(!vn(i))return W;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!ac(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const vc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(vc);var uo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(uo||(uo={}));const kc={isMobile:void 0,defaultLanguage:te.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:uo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:te.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,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,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},wc=t=>te.fillWithDefault(t,kc),yc=t=>ul("ui-config",t),an=()=>gl("ui-config"),dl="vk_player_debug_panel_opened",i1=300,Cc=100,Pc="videoplayer",Sc="videoplayer";var Ae;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ae||(Ae={}));const So={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},Tc=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),Ic=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),Ac=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var st;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(st||(st={}));const Zl=40,n1=260,Ec=60,Ro=8,o1=[st.TIMELINE],Zo=[...o1,st.GRAPH_BUTTON],Wl=[...o1,st.PLAY_BUTTON],l1=[...Zo,st.PLAY_BUTTON];var lo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(lo||(lo={}));exports.GridTypes=void 0;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const co={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},io=[];function Sn(t,e){return{subscribe:Le(t,e).subscribe}}function Le(t,e=W){let i;const n=new Set;function o(r){if(be(t,r)&&(t=r,i)){const a=!io.length;for(const c of n)c[1](),io.push(c,t);if(a){for(let c=0;c<io.length;c+=2)io[c][0](io[c+1]);io.length=0}}}function s(r){o(r(t))}function l(r,a=W){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||W),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function Oi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Sn(i,(l,r)=>{let a=!1;const c=[];let f=0,m=W;const h=()=>{if(f)return;m();const b=e(n?c[0]:c,l,r);s?l(b):m=vn(b)?b:W},_=o.map((b,k)=>qt(b,v=>{c[k]=v,f&=~(1<<k),a&&h()},()=>{f|=1<<k}));return a=!0,h(),function(){nt(_),m(),a=!1}})}const Lc="prod",jo="1.1.36-dev.3e8d23ea.0",s1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},r1=Symbol("storeContext"),a1=Symbol("microStoresContext"),Vc=(t,e)=>{ul(r1,t),ul(a1,e)},ht=()=>{const t=gl(r1);return te.assertNonNullable(t,"Store context is empty!"),t},To=()=>{const t=gl(a1);return te.assertNonNullable(t,"MicroStores context is empty!"),t},mt=(t,e)=>u1(t,t.getValue(),e),u1=(t,e,i)=>Sn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),Mc=(t,e,i)=>{const n=t.info,{width:o,height:s}=xe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${jo} (core: ${$e.VERSION}, stat: ${pt.VERSION}, shared: ${te.VERSION})`,f=xe(i.state.errorLog$),m=f.length?`
7
7
  `+f.map((b,k)=>{const v=`${k}) Type: ${b.id}
8
8
  `,S=`Message: ${b.message} (${b.thrown})
9
9
  `,w=`Trace: ${b.thrown?.stack}
10
10
  `;return v+S+w}).join(`
11
- `):void 0,h=i.state.isAudioDisabled?"disabled":et(i.state.isAudioAvailable$)?void 0:"unavailable",_={Version:c,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${r}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${a} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${et(i.state.positionExact$)}s`,State:`${et(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${s}`,URL:window.location.href,Errors:p};return Object.entries(_).filter(([b,k])=>k!==void 0).map(([b,k])=>`${b}: ${k}`).join(`
12
- `)},Fc=(t,e,i)=>{const n=t.info,{width:o,height:s}=et(i.ui.playerSize),l={version:Wo,viewport:`${o}x${s}`,volume:Math.round(et(i.state.volume$)*100)};l.id=i.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());const c=n.intrinsicVideoSize$.getValue();c&&(l.videoSize=`${c.width}x${c.height}`);const f=n.currentBuffer$.getValue();f&&(l.buffer=Math.max(f.end-et(i.state.positionExact$),0));const p=n.throughputEstimation$.getValue();p&&(l.speed=p);const h=n.videoBitrate$.getValue();return h&&(l.bitrate=h),l},Hc=(t,e)=>d1(t,e,"mp4"),g1="vk_player_prefer_traffic_saving_enabled",b1="vk_player_preferred_volume",_1="vk_player_prefer_volume_mute",kl="vk_player_preferred_quality",v1=t=>t>1?1:t<0?0:t,Xl=t=>ie.safeStorage.set(b1,v1(t).toString(10)),k1=()=>{const t=ie.safeStorage.get(b1);return ie.isNullable(t)?void 0:v1(parseFloat(t))},Uc=(t,e)=>ie.safeStorage.set(kl,JSON.stringify({videoId:t,value:e})),w1=()=>ie.safeStorage.remove(kl),qc=t=>{const e=ie.safeStorage.get(kl);if(ie.isNullable(e))return;const{videoId:i,value:n}=JSON.parse(e);if(t!==i){w1();return}return n},y1=(t,e)=>{e?ie.safeStorage.set(t,"true"):ie.safeStorage.remove(t)},C1=t=>ie.safeStorage.get(t)==="true",nl=t=>y1(_1,t),jc=()=>C1(_1),Zc=t=>y1(g1,t),Wc=()=>C1(g1);function Kc(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("path"),l=N("path"),r=N("path"),a=N("defs"),c=N("filter"),f=N("feFlood"),p=N("feColorMatrix"),h=N("feOffset"),_=N("feGaussianBlur"),b=N("feColorMatrix"),k=N("feBlend"),v=N("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M67 9.489A3.489 3.489 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.489 3.489 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489Zm-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.492Z"),u(n,"fill","#fff"),u(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.181 10.181 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.893Z"),u(o,"fill","#fff"),u(s,"fill-rule","evenodd"),u(s,"clip-rule","evenodd"),u(s,"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.557Zm-.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.142ZM58 15.512c0 5.041-2.697 8.441-6.627 8.441-3.93 0-6.628-3.4-6.628-8.441 0-5.042 2.698-8.442 6.628-8.442S58 10.47 58 15.512Zm-10.348 0c0 3.564 1.488 5.862 3.72 5.862 2.233 0 3.721-2.298 3.721-5.862s-1.488-5.862-3.72-5.862c-2.233 0-3.72 2.298-3.72 5.862Z"),u(s,"fill","#fff"),u(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.5ZM38.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.495 1.495 0 0 1 .317 1.624 1.499 1.499 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),u(l,"fill","#fff"),u(r,"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.556 0 0 0 0 0 0l-.23.096A1.49 1.49 0 0 1 44 33.5c0 .203-.04.396-.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.275L7.908 19.245Zm29.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.807Zm25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.739 3.739 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761Zm0-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.264Zm-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-.375-.432-.245-.801-.614-1.125-1.114a10.48 10.48 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.174Zm7.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.085.531-.504 1.298-.807 2.232-.807.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.425Zm0-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.48 1.017 0 1.873.52 2.486 1.48.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.096Z"),u(r,"stroke","#000"),u(r,"stroke-opacity",".12"),u(r,"stroke-width",".5"),u(r,"stroke-linecap","round"),u(r,"stroke-linejoin","round"),u(i,"filter","url(#a)"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(p,"in","SourceAlpha"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(p,"result","hardAlpha"),u(_,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(k,"in2","BackgroundImageFix"),u(k,"result","effect1_dropShadow_618_12297"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_618_12297"),u(v,"result","shape"),u(c,"id","a"),u(c,"x",".5"),u(c,"y",".5"),u(c,"width","75"),u(c,"height","44"),u(c,"filterUnits","userSpaceOnUse"),u(c,"color-interpolation-filters","sRGB"),u(e,"width","76"),u(e,"height","45"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"data-testid","video-360-icon"),u(e,"aria-hidden",S=!t[0]||null),u(e,"aria-label",w=t[0]||null)},m(y,A){T(y,e,A),m(e,i),m(i,n),m(i,o),m(i,s),m(i,l),m(i,r),m(e,a),m(a,c),m(c,f),m(c,p),m(c,h),m(c,_),m(c,b),m(c,k),m(c,v)},p(y,[A]){A&1&&S!==(S=!y[0]||null)&&u(e,"aria-hidden",S),A&1&&w!==(w=y[0]||null)&&u(e,"aria-label",w)},i:j,o:j,d(y){y&&P(e)}}}function Gc(t,e,i){let{ariaLabel:n=""}=e;return t.$$set=o=>{"ariaLabel"in o&&i(0,n=o.ariaLabel)},[n]}class S1 extends _e{constructor(e){super(),be(this,e,Gc,Kc,ge,{ariaLabel:0})}}const Yc={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_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",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",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_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_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_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",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_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_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"},Qc={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_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",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",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_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_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_record_title:"The broadcast has ended and the recording will be available soon",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_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_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"},Pn=new Map;Pn.set(ie.InterfaceLanguage.EN,Qc);Pn.set(ie.InterfaceLanguage.RU,Yc);const P1=new Map,Jl=({language:t,pack:e,fallback:i})=>{if(Pn.has(t)){const n=Pn.get(t);Pn.set(t,{...n,...e})}else Pn.set(t,e);P1.set(t,i)},xl=t=>Pn.has(t),T1=(t,e,i,n)=>{let s=Pn.get(t)?.[e];if(ie.isNullable(s)){const l=P1.get(t)??n;s=(l?Pn.get(l):void 0)?.[e]}return ie.isNullable(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(l,r)=>i[r]??""):s},W=(t,e)=>{const{interfaceLanguage$:i}=pt(),n=et(i),o=sn();return T1(n,t,e,o.defaultLanguage)};var Uo;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Uo||(Uo={}));const Xc=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Jc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,xc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Mo="?",$c="X-Sentry-Auth",ef=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tf(t){if(!t.stack)return null;const e=[],i=t.stack.split(`
13
- `);let n,o;for(let s=0;s<i.length;++s){if(n=Xc.exec(i[s]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Mo,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=xc.exec(i[s]))o={filename:n[2],function:n[1]||Mo,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Jc.exec(i[s]))s===0&&!n[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),o={filename:n[3],function:n[1]||Mo,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Mo),e.push(o)}return e.length?{value:E1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function E1(t){return(t&&t.message||"No error message").split(`
14
- `).filter(i=>!!i)[0]}function nf(t){try{const e=tf(t);if(e)return e}catch{}return{value:E1(t),type:t&&t.name,stacktrace:{frames:[]}}}function of(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}class lf{constructor(e){if(e&&e.dsn){const i=ef.exec(e.dsn),n=i?i.slice(1):[],o=n[5].split("/"),s=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(s?"/"+s:"")+"/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:[nf(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){const i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader($c,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:of(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function $l(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function sf(){return window}class wl extends lf{constructor(e,i=sf()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};const{plugins:n=[],beforeSend:o=c=>c,beforeBreadcrumb:s=c=>c,blacklistUrls:l=[],ignoreErrors:r=[],release:a=void 0}=this.options||{};this.plugins=n.map(c=>new c(this)),this.beforeSend=o,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=r,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){const e=new wl({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){const i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(n=>$l(i,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{const{type:i="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${i}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>$l(i,n)):!1}getEventFilterUrl(e){try{if(e.exception){const i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((i,n)=>{const o=this._state[n],s=Array.isArray(o)?o:null,l=e[n],r=Array.isArray(l)?l:null;return{...i,[n]:s||r?[...s||[],...r||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}}let Bo=null;class gl{sentrySubscription;options;version;context;sentryClient;constructor(e,i,n={}){!Bo&&e.dsn&&(this.sentryClient=new wl({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ie.Subscription,this.options=e,this.context=n,Bo=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Bo=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},n={}){const{sentryClient:o,context:s,options:l}=this,{sampleRate:r=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:p}=l,{errorType:h,category:_}=i;if(ie.isNonNullable(_)&&p.includes(_)||ie.isNonNullable(h)&&f.includes(h))return;if(Math.random()<=r||ie.isNonNullable(_)&&c.includes(_)||ie.isNonNullable(h)&&a.includes(h)){Object.keys(i).length&&o.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(n).length)&&o.setExtras({...s,...n});try{h&&o.captureMessage(h,i.fatal?Uo.fatal:Uo.error),o.report(e)}catch(k){console.error(k)}}}static getInstance(){return Bo}}var oo;(function(t){t.AUTO="auto"})(oo||(oo={}));var Oe;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed",t.WaitingLive="waitingLive",t.WaitingRecord="waitingRecord"})(Oe||(Oe={}));var Sn;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(Sn||(Sn={}));var Kt;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Kt||(Kt={}));var Tn;(function(t){t[t.PictureInPicture=0]="PictureInPicture",t[t.DocumentPictureInPicture=1]="DocumentPictureInPicture"})(Tn||(Tn={}));var Ye;(function(t){t.PLAY="PLAY",t.PAUSE="PAUSE",t.REPLAY="REPLAY",t.BACKWARD_SEEK="BACKWARD_SEEK",t.FORWARD_SEEK="FORWARD_SEEK",t.SUBTITLES_ON="SUBTITLES_ON",t.SUBTITLES_OFF="SUBTITLES_OFF",t.RATE_UP="RATE_UP",t.RATE_DOWN="RATE_DOWN",t.EPISODE_PREV="EPISODE_PREV",t.EPISODE_NEXT="EPISODE_NEXT",t.MUTE="MUTE",t.VOLUME="VOLUME"})(Ye||(Ye={}));var Zn;(function(t){t.FULL="FULL",t.COUNT="COUNT",t.SHORT="SHORT"})(Zn||(Zn={}));const A1=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();const e=t.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},I1=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),rf=t=>{const e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},vo=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},L1=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},V1=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},af=t=>{const 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")(t))},uf=()=>({title:W("hotkey_map_modal_title"),closeBtnText:W("hotkey_map_modal_close_btn_text"),groups:[{title:W("hotkey_map_group_title_common"),items:[{description:W("hotkey_map_item_mute_description"),value:W("hotkey_map_item_mute_value")},{description:W("hotkey_map_item_volume_up_description"),value:W("hotkey_map_item_volume_up_value")},{description:W("hotkey_map_item_volume_down_description"),value:W("hotkey_map_item_volume_down_value")},{description:W("hotkey_map_item_pip_description"),value:W("hotkey_map_item_pip_value")},{description:W("hotkey_map_item_full_screen_description"),value:W("hotkey_map_item_full_screen_value")},{description:W("hotkey_map_item_show_hotkey_map_description"),value:W("hotkey_map_item_show_hotkey_map_value")}]},{title:W("hotkey_map_group_title_playback"),items:[{description:W("hotkey_map_item_play_toggle_description"),value:W("hotkey_map_item_play_toggle_value")},{description:W("hotkey_map_item_seek_backward_description"),value:W("hotkey_map_item_seek_backward_value")},{description:W("hotkey_map_item_seek_forward_description"),value:W("hotkey_map_item_seek_forward_value")},{description:W("hotkey_map_item_fast_seek_backward_description"),value:W("hotkey_map_item_fast_seek_backward_value")},{description:W("hotkey_map_item_fast_seek_forward_description"),value:W("hotkey_map_item_fast_seek_forward_value")},{description:W("hotkey_map_item_rate_down_description"),value:W("hotkey_map_item_rate_down_value")},{description:W("hotkey_map_item_rate_up_description"),value:W("hotkey_map_item_rate_up_value")},{description:W("hotkey_map_item_prev_frame_description"),value:W("hotkey_map_item_prev_frame_value")},{description:W("hotkey_map_item_next_frame_description"),value:W("hotkey_map_item_next_frame_value")},{description:W("hotkey_map_item_jump_seek_description"),value:W("hotkey_map_item_jump_seek_value")}]},{title:W("hotkey_map_group_title_subtitles"),items:[{description:W("hotkey_map_item_subtitles_toggle_description"),value:W("hotkey_map_item_subtitles_toggle_value")}]},{title:W("hotkey_map_group_title_episodes"),items:[{description:W("hotkey_map_item_prev_episode_description"),value:ie.isMacLike()?W("hotkey_map_item_prev_episode_mac_value"):W("hotkey_map_item_prev_episode_pc_value")},{description:W("hotkey_map_item_next_episode_description"),value:ie.isMacLike()?W("hotkey_map_item_next_episode_mac_value"):W("hotkey_map_item_next_episode_pc_value")}]}]});class yl{isRequested=!1;videoElement=void 0;playerContainer=void 0;playerDummyElement;svelteContext;externalEventHandlers={};eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:ie.debounceFn(this.onResize.bind(this),a1)};info={isActive$:new ie.ValueSubject(this.isActive()),type:Tn.PictureInPicture};isSupported(){const e=ie.getCurrentBrowser().browser===ie.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){const n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){const n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}}function qo(t){return t instanceof yl}function cf(t){const e=pt();return ln(()=>{e.getAdmanWrapper().startPostroll()}),[]}class ff extends _e{constructor(e){super(),be(this,e,cf,null,ge,{})}}function df(t){Ze(t,"v-22jj8o",".container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}")}function mf(t){let e=W("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p(n,o){o&3&&e!==(e=W("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&$e(i,e)},d(n){n&&P(i)}}}function pf(t){let e,i=W("skip_ads_now")+"",n,o,s,l,r,a;return{c(){e=E("div"),n=De(i),o=R(),s=N("svg"),l=N("path"),u(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(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"),u(s,"class","icon v-22jj8o"),u(s,"width","7"),u(s,"height","12"),u(s,"viewBox","0 0 7 12"),u(s,"fill","none"),u(s,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","skip v-22jj8o")},m(c,f){T(c,e,f),m(e,n),m(e,o),m(e,s),m(s,l),r||(a=pe(e,"click",ot(function(){mn(t[2])&&t[2].apply(this,arguments)})),r=!0)},p(c,f){t=c},d(c){c&&P(e),r=!1,a()}}}function hf(t){let e;function i(s,l){return s[3]?pf:mf}let n=i(t),o=n(t);return{c(){e=E("div"),o.c(),u(e,"class","container v-22jj8o"),B(e,"container-mobile",t[4]),B(e,"skippable",t[3])},m(s,l){T(s,e,l),o.m(e,null)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e,null))),l&16&&B(e,"container-mobile",s[4]),l&8&&B(e,"skippable",s[3])},i:j,o:j,d(s){s&&P(e),o.d()}}}function gf(t,e,i){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:s=0}=e,{skipAd:l=ie.noop}=e;const a=pt().ui.isMobile;O(t,a,f=>i(4,n=f));let c;return t.$$set=f=>{"position"in f&&i(0,o=f.position),"secondsToWatchBeforeSkip"in f&&i(1,s=f.secondsToWatchBeforeSkip),"skipAd"in f&&i(2,l=f.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,c=o>0&&o>=s)},[o,s,l,c,n,a]}class bf extends _e{constructor(e){super(),be(this,e,gf,hf,ge,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},df)}}function _f(t){Ze(t,"v-1wy3dql","button.v-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 vf(t){let e;return{c(){e=E("button"),e.textContent=`${W("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(i,n){T(i,e,n)},p:j,i:j,o:j,d(i){i&&P(e)}}}class kf extends _e{constructor(e){super(),be(this,e,null,vf,ge,{},_f)}}function wf(t){Ze(t,"v-354ajf",`.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
11
+ `):void 0,h=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",_={Version:c,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${r}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${a} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${xe(i.state.positionExact$)}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${s}`,URL:window.location.href,Errors:m};return Object.entries(_).filter(([b,k])=>k!==void 0).map(([b,k])=>`${b}: ${k}`).join(`
12
+ `)},Bc=(t,e,i)=>{const n=t.info,{width:o,height:s}=xe(i.ui.playerSize),l={version:jo,viewport:`${o}x${s}`,volume:Math.round(xe(i.state.volume$)*100)};l.id=i.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());const c=n.intrinsicVideoSize$.getValue();c&&(l.videoSize=`${c.width}x${c.height}`);const f=n.currentBuffer$.getValue();f&&(l.buffer=Math.max(f.end-xe(i.state.positionExact$),0));const m=n.throughputEstimation$.getValue();m&&(l.speed=m);const h=n.videoBitrate$.getValue();return h&&(l.bitrate=h),l},Nc=(t,e)=>s1(t,e,"mp4"),c1="vk_player_prefer_traffic_saving_enabled",f1="vk_player_preferred_volume",d1="vk_player_prefer_volume_mute",bl="vk_player_preferred_quality",m1=t=>t>1?1:t<0?0:t,Kl=t=>te.safeStorage.set(f1,m1(t).toString(10)),p1=()=>{const t=te.safeStorage.get(f1);return te.isNullable(t)?void 0:m1(parseFloat(t))},Rc=(t,e)=>te.safeStorage.set(bl,JSON.stringify({videoId:t,value:e})),h1=()=>te.safeStorage.remove(bl),Dc=t=>{const e=te.safeStorage.get(bl);if(te.isNullable(e))return;const{videoId:i,value:n}=JSON.parse(e);if(t!==i){h1();return}return n},g1=(t,e)=>{e?te.safeStorage.set(t,"true"):te.safeStorage.remove(t)},b1=t=>te.safeStorage.get(t)==="true",tl=t=>g1(d1,t),Oc=()=>b1(d1),zc=t=>g1(c1,t),Hc=()=>b1(c1);function Fc(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("path"),l=B("path"),r=B("path"),a=B("defs"),c=B("filter"),f=B("feFlood"),m=B("feColorMatrix"),h=B("feOffset"),_=B("feGaussianBlur"),b=B("feColorMatrix"),k=B("feBlend"),v=B("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M67 9.489A3.489 3.489 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.489 3.489 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489Zm-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.492Z"),u(n,"fill","#fff"),u(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.181 10.181 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.893Z"),u(o,"fill","#fff"),u(s,"fill-rule","evenodd"),u(s,"clip-rule","evenodd"),u(s,"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.557Zm-.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.142ZM58 15.512c0 5.041-2.697 8.441-6.627 8.441-3.93 0-6.628-3.4-6.628-8.441 0-5.042 2.698-8.442 6.628-8.442S58 10.47 58 15.512Zm-10.348 0c0 3.564 1.488 5.862 3.72 5.862 2.233 0 3.721-2.298 3.721-5.862s-1.488-5.862-3.72-5.862c-2.233 0-3.72 2.298-3.72 5.862Z"),u(s,"fill","#fff"),u(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.5ZM38.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.495 1.495 0 0 1 .317 1.624 1.499 1.499 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),u(l,"fill","#fff"),u(r,"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.556 0 0 0 0 0 0l-.23.096A1.49 1.49 0 0 1 44 33.5c0 .203-.04.396-.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.275L7.908 19.245Zm29.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.807Zm25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.739 3.739 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761Zm0-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.264Zm-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-.375-.432-.245-.801-.614-1.125-1.114a10.48 10.48 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.174Zm7.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.085.531-.504 1.298-.807 2.232-.807.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.425Zm0-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.48 1.017 0 1.873.52 2.486 1.48.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.096Z"),u(r,"stroke","#000"),u(r,"stroke-opacity",".12"),u(r,"stroke-width",".5"),u(r,"stroke-linecap","round"),u(r,"stroke-linejoin","round"),u(i,"filter","url(#a)"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(m,"in","SourceAlpha"),u(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(m,"result","hardAlpha"),u(_,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(k,"in2","BackgroundImageFix"),u(k,"result","effect1_dropShadow_618_12297"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_618_12297"),u(v,"result","shape"),u(c,"id","a"),u(c,"x",".5"),u(c,"y",".5"),u(c,"width","75"),u(c,"height","44"),u(c,"filterUnits","userSpaceOnUse"),u(c,"color-interpolation-filters","sRGB"),u(e,"width","76"),u(e,"height","45"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"data-testid","video-360-icon"),u(e,"aria-hidden",S=!t[0]||null),u(e,"aria-label",w=t[0]||null)},m(y,E){T(y,e,E),p(e,i),p(i,n),p(i,o),p(i,s),p(i,l),p(i,r),p(e,a),p(a,c),p(c,f),p(c,m),p(c,h),p(c,_),p(c,b),p(c,k),p(c,v)},p(y,[E]){E&1&&S!==(S=!y[0]||null)&&u(e,"aria-hidden",S),E&1&&w!==(w=y[0]||null)&&u(e,"aria-label",w)},i:W,o:W,d(y){y&&P(e)}}}function Uc(t,e,i){let{ariaLabel:n=""}=e;return t.$$set=o=>{"ariaLabel"in o&&i(0,n=o.ariaLabel)},[n]}class _1 extends ve{constructor(e){super(),_e(this,e,Uc,Fc,be,{ariaLabel:0})}}const qc={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_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",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",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_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_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",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_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_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"},Zc={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_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",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",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_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_record_title:"The broadcast has ended and the recording will be available soon",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_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_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"},En=new Map;En.set(te.InterfaceLanguage.EN,Zc);En.set(te.InterfaceLanguage.RU,qc);const v1=new Map,jl=({language:t,pack:e,fallback:i})=>{if(En.has(t)){const n=En.get(t);En.set(t,{...n,...e})}else En.set(t,e);v1.set(t,i)},Gl=t=>En.has(t),k1=(t,e,i,n)=>{let s=En.get(t)?.[e];if(te.isNullable(s)){const l=v1.get(t)??n;s=(l?En.get(l):void 0)?.[e]}return te.isNullable(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(l,r)=>i[r]??""):s},K=(t,e)=>{const{interfaceLanguage$:i}=ht(),n=xe(i),o=an();return k1(n,t,e,o.defaultLanguage)};var Wo;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Wo||(Wo={}));const Wc=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Kc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,jc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Do="?",Gc="X-Sentry-Auth",Yc=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Qc(t){if(!t.stack)return null;const e=[],i=t.stack.split(`
13
+ `);let n,o;for(let s=0;s<i.length;++s){if(n=Wc.exec(i[s]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Do,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=jc.exec(i[s]))o={filename:n[2],function:n[1]||Do,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Kc.exec(i[s]))s===0&&!n[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),o={filename:n[3],function:n[1]||Do,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Do),e.push(o)}return e.length?{value:w1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function w1(t){return(t&&t.message||"No error message").split(`
14
+ `).filter(i=>!!i)[0]}function Xc(t){try{const e=Qc(t);if(e)return e}catch{}return{value:w1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Jc(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}class xc{constructor(e){if(e&&e.dsn){const i=Yc.exec(e.dsn),n=i?i.slice(1):[],o=n[5].split("/"),s=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(s?"/"+s:"")+"/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:[Xc(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){const i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(Gc,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Jc(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function Yl(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function $c(){return window}class _l extends xc{constructor(e,i=$c()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};const{plugins:n=[],beforeSend:o=c=>c,beforeBreadcrumb:s=c=>c,blacklistUrls:l=[],ignoreErrors:r=[],release:a=void 0}=this.options||{};this.plugins=n.map(c=>new c(this)),this.beforeSend=o,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=r,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){const e=new _l({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){const i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(n=>Yl(i,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{const{type:i="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${i}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>Yl(i,n)):!1}getEventFilterUrl(e){try{if(e.exception){const i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((i,n)=>{const o=this._state[n],s=Array.isArray(o)?o:null,l=e[n],r=Array.isArray(l)?l:null;return{...i,[n]:s||r?[...s||[],...r||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}}let Oo=null;class ml{sentrySubscription;options;version;context;sentryClient;constructor(e,i,n={}){!Oo&&e.dsn&&(this.sentryClient=new _l({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new te.Subscription,this.options=e,this.context=n,Oo=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Oo=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},n={}){const{sentryClient:o,context:s,options:l}=this,{sampleRate:r=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:h,category:_}=i;if(te.isNonNullable(_)&&m.includes(_)||te.isNonNullable(h)&&f.includes(h))return;if(Math.random()<=r||te.isNonNullable(_)&&c.includes(_)||te.isNonNullable(h)&&a.includes(h)){Object.keys(i).length&&o.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(n).length)&&o.setExtras({...s,...n});try{h&&o.captureMessage(h,i.fatal?Wo.fatal:Wo.error),o.report(e)}catch(k){console.error(k)}}}static getInstance(){return Oo}}var ro;(function(t){t.AUTO="auto"})(ro||(ro={}));var Re;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed",t.WaitingLive="waitingLive",t.WaitingRecord="waitingRecord"})(Re||(Re={}));var An;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(An||(An={}));var Zt;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Zt||(Zt={}));var Ln;(function(t){t[t.PictureInPicture=0]="PictureInPicture",t[t.DocumentPictureInPicture=1]="DocumentPictureInPicture"})(Ln||(Ln={}));var Ye;(function(t){t.PLAY="PLAY",t.PAUSE="PAUSE",t.REPLAY="REPLAY",t.BACKWARD_SEEK="BACKWARD_SEEK",t.FORWARD_SEEK="FORWARD_SEEK",t.SUBTITLES_ON="SUBTITLES_ON",t.SUBTITLES_OFF="SUBTITLES_OFF",t.RATE_UP="RATE_UP",t.RATE_DOWN="RATE_DOWN",t.EPISODE_PREV="EPISODE_PREV",t.EPISODE_NEXT="EPISODE_NEXT",t.MUTE="MUTE",t.VOLUME="VOLUME"})(Ye||(Ye={}));var Yn;(function(t){t.FULL="FULL",t.COUNT="COUNT",t.SHORT="SHORT"})(Yn||(Yn={}));const y1=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();const e=t.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},C1=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),ef=t=>{const e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},wo=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},P1=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},S1=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},tf=t=>{const 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")(t))},nf=()=>({title:K("hotkey_map_modal_title"),closeBtnText:K("hotkey_map_modal_close_btn_text"),groups:[{title:K("hotkey_map_group_title_common"),items:[{description:K("hotkey_map_item_mute_description"),value:K("hotkey_map_item_mute_value")},{description:K("hotkey_map_item_volume_up_description"),value:K("hotkey_map_item_volume_up_value")},{description:K("hotkey_map_item_volume_down_description"),value:K("hotkey_map_item_volume_down_value")},{description:K("hotkey_map_item_pip_description"),value:K("hotkey_map_item_pip_value")},{description:K("hotkey_map_item_full_screen_description"),value:K("hotkey_map_item_full_screen_value")},{description:K("hotkey_map_item_show_hotkey_map_description"),value:K("hotkey_map_item_show_hotkey_map_value")}]},{title:K("hotkey_map_group_title_playback"),items:[{description:K("hotkey_map_item_play_toggle_description"),value:K("hotkey_map_item_play_toggle_value")},{description:K("hotkey_map_item_seek_backward_description"),value:K("hotkey_map_item_seek_backward_value")},{description:K("hotkey_map_item_seek_forward_description"),value:K("hotkey_map_item_seek_forward_value")},{description:K("hotkey_map_item_fast_seek_backward_description"),value:K("hotkey_map_item_fast_seek_backward_value")},{description:K("hotkey_map_item_fast_seek_forward_description"),value:K("hotkey_map_item_fast_seek_forward_value")},{description:K("hotkey_map_item_rate_down_description"),value:K("hotkey_map_item_rate_down_value")},{description:K("hotkey_map_item_rate_up_description"),value:K("hotkey_map_item_rate_up_value")},{description:K("hotkey_map_item_prev_frame_description"),value:K("hotkey_map_item_prev_frame_value")},{description:K("hotkey_map_item_next_frame_description"),value:K("hotkey_map_item_next_frame_value")},{description:K("hotkey_map_item_jump_seek_description"),value:K("hotkey_map_item_jump_seek_value")}]},{title:K("hotkey_map_group_title_subtitles"),items:[{description:K("hotkey_map_item_subtitles_toggle_description"),value:K("hotkey_map_item_subtitles_toggle_value")}]},{title:K("hotkey_map_group_title_episodes"),items:[{description:K("hotkey_map_item_prev_episode_description"),value:te.isMacLike()?K("hotkey_map_item_prev_episode_mac_value"):K("hotkey_map_item_prev_episode_pc_value")},{description:K("hotkey_map_item_next_episode_description"),value:te.isMacLike()?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});class vl{isRequested=!1;videoElement=void 0;playerContainer=void 0;playerDummyElement;svelteContext;externalEventHandlers={};eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:te.debounceFn(this.onResize.bind(this),i1)};info={isActive$:new te.ValueSubject(this.isActive()),type:Ln.PictureInPicture};isSupported(){const e=te.getCurrentBrowser().browser===te.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){const n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){const n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}}function Ko(t){return t instanceof vl}function of(t){const e=ht();return sn(()=>{e.getAdmanWrapper().startPostroll()}),[]}class lf extends ve{constructor(e){super(),_e(this,e,of,null,be,{})}}function sf(t){Ke(t,"v-22jj8o",".container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}")}function rf(t){let e=K("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p(n,o){o&3&&e!==(e=K("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&et(i,e)},d(n){n&&P(i)}}}function af(t){let e,i=K("skip_ads_now")+"",n,o,s,l,r,a;return{c(){e=I("div"),n=De(i),o=D(),s=B("svg"),l=B("path"),u(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(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"),u(s,"class","icon v-22jj8o"),u(s,"width","7"),u(s,"height","12"),u(s,"viewBox","0 0 7 12"),u(s,"fill","none"),u(s,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","skip v-22jj8o")},m(c,f){T(c,e,f),p(e,n),p(e,o),p(e,s),p(s,l),r||(a=he(e,"click",ot(function(){vn(t[2])&&t[2].apply(this,arguments)})),r=!0)},p(c,f){t=c},d(c){c&&P(e),r=!1,a()}}}function uf(t){let e;function i(s,l){return s[3]?af:rf}let n=i(t),o=n(t);return{c(){e=I("div"),o.c(),u(e,"class","container v-22jj8o"),M(e,"container-mobile",t[4]),M(e,"skippable",t[3])},m(s,l){T(s,e,l),o.m(e,null)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e,null))),l&16&&M(e,"container-mobile",s[4]),l&8&&M(e,"skippable",s[3])},i:W,o:W,d(s){s&&P(e),o.d()}}}function cf(t,e,i){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:s=0}=e,{skipAd:l=te.noop}=e;const a=ht().ui.isMobile;O(t,a,f=>i(4,n=f));let c;return t.$$set=f=>{"position"in f&&i(0,o=f.position),"secondsToWatchBeforeSkip"in f&&i(1,s=f.secondsToWatchBeforeSkip),"skipAd"in f&&i(2,l=f.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,c=o>0&&o>=s)},[o,s,l,c,n,a]}class ff extends ve{constructor(e){super(),_e(this,e,cf,uf,be,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},sf)}}function df(t){Ke(t,"v-1wy3dql","button.v-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 mf(t){let e;return{c(){e=I("button"),e.textContent=`${K("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(i,n){T(i,e,n)},p:W,i:W,o:W,d(i){i&&P(e)}}}class pf extends ve{constructor(e){super(),_e(this,e,null,mf,be,{},df)}}function hf(t){Ke(t,"v-354ajf",`.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-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,15 +21,15 @@
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 es(t){let e;return{c(){e=E("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function ts(t){let e,i;return e=new bf({props:{position:t[5],secondsToWatchBeforeSkip:t[6],skipAd:t[8].actions.internal.skipAd}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&32&&(s.position=n[5]),o&64&&(s.secondsToWatchBeforeSkip=n[6]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function is(t){let e,i;return e=new ff({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ns(t){let e,i;return e=new kf({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function yf(t){let e,i,n,o,s,l,r,a=t[0]&&es(),c=t[3]&&ts(t),f=t[7]&&is(),p=t[4]&&ns();return{c(){e=E("div"),a&&a.c(),i=R(),n=E("video"),o=R(),c&&c.c(),s=R(),f&&f.c(),l=R(),p&&p.c(),Tt(n,"width","100%"),Tt(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(h,_){T(h,e,_),a&&a.m(e,null),m(e,i),m(e,n),t[19](n),m(e,o),c&&c.m(e,null),m(e,s),f&&f.m(e,null),m(e,l),p&&p.m(e,null),t[20](e),r=!0},p(h,[_]){h[0]?a||(a=es(),a.c(),a.m(e,i)):a&&(a.d(1),a=null),h[3]?c?(c.p(h,_),_&8&&d(c,1)):(c=ts(h),c.c(),d(c,1),c.m(e,s)):c&&(ce(),g(c,1,1,()=>{c=null}),fe()),h[7]?f?_&128&&d(f,1):(f=is(),f.c(),d(f,1),f.m(e,l)):f&&(ce(),g(f,1,1,()=>{f=null}),fe()),h[4]?p?_&16&&d(p,1):(p=ns(),p.c(),d(p,1),p.m(e,null)):p&&(ce(),g(p,1,1,()=>{p=null}),fe())},i(h){r||(d(c),d(f),d(p),r=!0)},o(h){g(c),g(f),g(p),r=!1},d(h){h&&P(e),a&&a.d(),t[19](null),c&&c.d(),f&&f.d(),p&&p.d(),t[20](null)}}}function Cf(t,e,i){let n,o,s,l,r,{adsSlotId:a=void 0}=e,{adsParams:c=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e;const h=pt(),_=h.state.isEnded$;O(t,_,V=>i(7,r=V));const b=h.ui.isMobile;O(t,b,V=>i(0,o=V));let k,v,S=!1;const w=h.ads.playbackState;O(t,w,V=>i(18,n=V));const y=h.ads.canSkip,A=h.ads.position;O(t,A,V=>i(5,s=V));const oe=h.ads.secondsToWatchBeforeSkip;O(t,oe,V=>i(6,l=V));let M,Z;ln(()=>{const V=new AbortController;let x=()=>{V.abort()};const Y=h.getAdmanWrapper();if(!a){Y.onAdmanLoadingError();return}const{width:le,height:K}=et(h.ui.playerSize),C=et(h.ui.isFullscreen),G=et(h.ui.isAutoplay),z={width:le,height:K,isFullscreen:C,isAutoplay:G,adsContainer:k,adsVideoElement:v,slotId:a,params:c,previewParam:f,duration:p};return window.AdmanHTML?(Y.initAdman(z),S=!0):Y.loadAdman(V.signal).then(()=>{Y.initAdman(z),S=!0}).catch(()=>{Y.onAdmanLoadingError()}),()=>{!S&&x()}});function ne(V){ke[V?"unshift":"push"](()=>{v=V,i(2,v)})}function L(V){ke[V?"unshift":"push"](()=>{k=V,i(1,k)})}return t.$$set=V=>{"adsSlotId"in V&&i(14,a=V.adsSlotId),"adsParams"in V&&i(15,c=V.adsParams),"adsPreviewParam"in V&&i(16,f=V.adsPreviewParam),"duration"in V&&i(17,p=V.duration)},t.$$.update=()=>{t.$$.dirty&262144&&i(3,M=y&&n!==Kt.INACTIVE),t.$$.dirty&262145&&i(4,Z=o&&n!==Kt.INACTIVE)},[o,k,v,M,Z,s,l,r,h,_,b,w,A,oe,a,c,f,p,n,ne,L]}class M1 extends _e{constructor(e){super(),be(this,e,Cf,yf,ge,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},wf)}}const En=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t);const i=Math.floor(e/(60*60));e-=i*(60*60);const n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(s=>s>9?String(s):`0${s}`).join(":")};function Sf(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),n=N("path"),u(i,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 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.52 3.52 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.52 3.52 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.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),u(i,"fill","none"),u(i,"stroke","#fff"),u(i,"stroke-width","2"),u(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.49.49 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.49.49 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.89.89 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.89.89 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-.9z"),u(n,"fill","#f0f2f5"),u(n,"fill-rule","evenodd"),u(e,"width","42"),u(e,"height","20"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","live-icon")},m(o,s){T(o,e,s),m(e,i),m(e,n)},d(o){o&&P(e)}}}function Pf(t){let e,i,n;return{c(){e=N("svg"),i=N("rect"),n=N("path"),u(i,"width","42"),u(i,"height","20"),u(i,"rx","5"),u(i,"fill","#FF3347"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-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-2h-4zm-8.325 9.31-2.55-7.824a.993.993 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.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),u(n,"fill","#F2F3F5"),u(e,"width","42"),u(e,"height","20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","live-active-icon")},m(o,s){T(o,e,s),m(e,i),m(e,n)},d(o){o&&P(e)}}}function Tf(t){let e;function i(s,l){return s[0]?Pf:Sf}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),T(s,e,l)},p(s,[l]){n!==(n=i(s))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:j,o:j,d(s){s&&P(e),o.d(s)}}}function Ef(t,e,i){let{isActive:n=!1}=e;return t.$$set=o=>{"isActive"in o&&i(0,n=o.isActive)},[n]}class B1 extends _e{constructor(e){super(),be(this,e,Ef,Tf,ge,{isActive:0})}}function Af(t){Ze(t,"v-7pnl2h",".thumb-timer.v-7pnl2h.v-7pnl2h{position:absolute;z-index:2;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.v-7pnl2h.v-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.v-7pnl2h.v-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.v-7pnl2h.v-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.v-7pnl2h.v-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.v-7pnl2h.v-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.v-7pnl2h .thumb-timer-equalizer.v-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h{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.v-7pnl2h .thumb-timer-equalizer .col.v-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(1){left:0;animation-name:v-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(2){left:3px;animation-name:v-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(3){left:6px;animation-name:v-7pnl2h-thumb-timer-equalizer-col3}@keyframes v-7pnl2h-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 v-7pnl2h-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 v-7pnl2h-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.v-7pnl2h.v-7pnl2h{display:inline-block;text-align:right}")}function If(t){let e=En(t[4]-t[3])+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p(n,o){o&24&&e!==(e=En(n[4]-n[3])+"")&&$e(i,e)},i:j,o:j,d(n){n&&P(i)}}}function Lf(t){let e,i,n;return i=new B1({props:{isActive:!0}}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","thumb-timer-live-icon v-7pnl2h")},m(o,s){T(o,e,s),D(i,e,null),n=!0},p:j,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Vf(t){let e,i,n,o,s,l,r;const a=[Lf,If],c=[];function f(p,h){return p[1]?0:1}return s=f(t),l=c[s]=a[s](t),{c(){e=E("div"),i=E("div"),i.innerHTML='<div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div>',n=R(),o=E("span"),l.c(),u(i,"class","thumb-timer-equalizer v-7pnl2h"),u(o,"class","thumb-timer-text v-7pnl2h"),u(e,"role","timer"),u(e,"class","thumb-timer v-7pnl2h"),u(e,"data-testid","thumb-timer"),B(e,"live",t[1]),B(e,"hidden",t[0]),B(e,"playing",t[2])},m(p,h){T(p,e,h),m(e,i),m(e,n),m(e,o),c[s].m(o,null),r=!0},p(p,[h]){let _=s;s=f(p),s===_?c[s].p(p,h):(ce(),g(c[_],1,1,()=>{c[_]=null}),fe(),l=c[s],l?l.p(p,h):(l=c[s]=a[s](p),l.c()),d(l,1),l.m(o,null)),(!r||h&2)&&B(e,"live",p[1]),(!r||h&1)&&B(e,"hidden",p[0]),(!r||h&4)&&B(e,"playing",p[2])},i(p){r||(d(l),r=!0)},o(p){g(l),r=!1},d(p){p&&P(e),c[s].d()}}}function Mf(t,e,i){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:s=!1}=e,{position:l}=e,{duration:r}=e;return t.$$set=a=>{"isHidden"in a&&i(0,n=a.isHidden),"isLive"in a&&i(1,o=a.isLive),"isPlaying"in a&&i(2,s=a.isPlaying),"position"in a&&i(3,l=a.position),"duration"in a&&i(4,r=a.duration)},[n,o,s,l,r]}class N1 extends _e{constructor(e){super(),be(this,e,Mf,Vf,ge,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Af)}}const bl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}},Wn=t=>{t.stopPropagation(),t.preventDefault()},Bf=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},Nf=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},Rf=t=>{const e=t.code;return e===Ae.Tab&&!t.shiftKey||e===Ae.ArrowDown},Of=t=>{const e=t.code;return e===Ae.Tab||e===Ae.ArrowUp},R1=t=>t.code===Ae.Escape,zf=t=>t.code===Ae.ArrowLeft,O1=(t,e=!0)=>{const i=t.code;return[Ae.Enter,Ae.Space].includes(i)||!e&&i===Ae.ArrowRight},z1=t=>{if(Rf(t)){Wn(t),Nf(t.target);return}Of(t)&&(Wn(t),Bf(t.target))},Cl=t=>t?.detail===0,Sl=async(t,e,i)=>{await wo(),t&&!t.classList.contains("opened")&&!e&&et(i)&&(i.set(!1),t.focus())},Pl=async(t,e,i)=>{await wo(),!!t&&e&&i&&t.firstChild.focus()},No=async(t,e,i)=>{!!t&&i&&(e.set(!1),setTimeout(()=>{t.focus()},Ic))},D1=(t,e)=>{z1(t),R1(t)&&(Wn(t),e())},Ro=async(t,e,i)=>{O1(t,!1)&&(Wn(t),e(),await wo(),i()?.focus())},Oo=async(t,e,i,n)=>{if(z1(t),zf(t)){Wn(t),e(),i.set(!0);return}R1(t)&&(Wn(t),n())},Yi=(t,e)=>{O1(t)&&(Wn(t),e())};function Df(t){Ze(t,"v-gew86s","ul.v-gew86s{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.v-gew86s{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-gew86s:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function os(t){let e,i,n,o,s,l,r=(t[9].features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug"))+"",a,c,f,p=W("menu_debug_overlay")+"",h,_,b,k,v=t[9].features.copyVideoLink&&t[8].callbacks?.onCopyVideoLink&&Ff(t),S=t[11]&&t[5]!==xe.ChromecastState.CONNECTED&&!t[16]&&ss(t),w=t[9].features.videoRotate&&!t[16]&&Hf(t),y=t[9].showSupport&&!t[6]&&rs(t);return{c(){e=E("ul"),v&&v.c(),i=R(),S&&S.c(),n=R(),w&&w.c(),o=R(),y&&y.c(),s=R(),l=E("li"),a=De(r),c=R(),f=E("li"),h=De(p),u(l,"tabindex","0"),u(l,"role","menuitem"),u(l,"aria-label",t[9].features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug")),u(l,"class","v-gew86s"),u(f,"tabindex","0"),u(f,"role","menuitem"),u(f,"aria-label",_=t[7]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable")),u(f,"class","v-gew86s"),u(e,"role","menu"),Tt(e,"top",t[3]+"px"),Tt(e,"left",t[2]+"px"),u(e,"class","v-gew86s")},m(A,oe){T(A,e,oe),v&&v.m(e,null),m(e,i),S&&S.m(e,null),m(e,n),w&&w.m(e,null),m(e,o),y&&y.m(e,null),m(e,s),m(e,l),m(l,a),m(e,c),m(e,f),m(f,h),t[40](e),b||(k=[pe(l,"click",ot(t[19])),pe(l,"keydown",t[29]),pe(f,"click",ot(t[20])),pe(f,"keydown",t[30]),pe(e,"contextmenu",Gt(t[37])),pe(e,"keydown",t[23])],b=!0)},p(A,oe){A[9].features.copyVideoLink&&A[8].callbacks?.onCopyVideoLink&&v.p(A,oe),A[11]&&A[5]!==xe.ChromecastState.CONNECTED&&!A[16]?S?S.p(A,oe):(S=ss(A),S.c(),S.m(e,n)):S&&(S.d(1),S=null),A[9].features.videoRotate&&!A[16]&&w.p(A,oe),A[9].showSupport&&!A[6]?y?y.p(A,oe):(y=rs(A),y.c(),y.m(e,s)):y&&(y.d(1),y=null),oe[0]&128&&_!==(_=A[7]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"))&&u(f,"aria-label",_),oe[0]&8&&Tt(e,"top",A[3]+"px"),oe[0]&4&&Tt(e,"left",A[2]+"px")},d(A){A&&P(e),v&&v.d(),S&&S.d(),w&&w.d(),y&&y.d(),t[40](null),b=!1,nt(k)}}}function Ff(t){let e,i=W("menu_copy_video_link")+"",n,o,s,l,r,a=!t[4]&&!t[16]&&ls(t);return{c(){e=E("li"),n=De(i),o=R(),a&&a.c(),s=ct(),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",W("menu_copy_video_link")),u(e,"class","v-gew86s")},m(c,f){T(c,e,f),m(e,n),T(c,o,f),a&&a.m(c,f),T(c,s,f),l||(r=[pe(e,"click",ot(t[38])),pe(e,"keydown",t[24])],l=!0)},p(c,f){!c[4]&&!c[16]?a?a.p(c,f):(a=ls(c),a.c(),a.m(s.parentNode,s)):a&&(a.d(1),a=null)},d(c){c&&(P(e),P(o),P(s)),a&&a.d(c),l=!1,nt(r)}}}function ls(t){let e,i=W("menu_copy_video_link_with_timestamp")+"",n,o,s;return{c(){e=E("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",W("menu_copy_video_link_with_timestamp")),u(e,"class","v-gew86s")},m(l,r){T(l,e,r),m(e,n),o||(s=[pe(e,"click",ot(t[39])),pe(e,"keydown",t[25])],o=!0)},p:j,d(l){l&&P(e),o=!1,nt(s)}}}function ss(t){let e,i=W("menu_pip")+"",n,o,s;return{c(){e=E("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",W("menu_pip")),u(e,"class","v-gew86s")},m(l,r){T(l,e,r),m(e,n),o||(s=[pe(e,"click",ot(t[21])),pe(e,"keydown",t[26])],o=!0)},p:j,d(l){l&&P(e),o=!1,nt(s)}}}function Hf(t){let e,i=W("menu_video_rotate")+"",n,o,s;return{c(){e=E("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",W("aria_label_menu_rotate")),u(e,"class","v-gew86s")},m(l,r){T(l,e,r),m(e,n),o||(s=[pe(e,"click",ot(t[17])),pe(e,"keydown",t[27])],o=!0)},p:j,d(l){l&&P(e),o=!1,nt(s)}}}function rs(t){let e,i=W("menu_report")+"",n,o,s;return{c(){e=E("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`),u(e,"class","v-gew86s")},m(l,r){T(l,e,r),m(e,n),o||(s=[pe(e,"click",ot(t[18])),pe(e,"keydown",t[28])],o=!0)},p:j,d(l){l&&P(e),o=!1,nt(s)}}}function Uf(t){let e,i=t[1]&&os(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),T(n,e,o)},p(n,o){n[1]?i?i.p(n,o):(i=os(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:j,o:j,d(n){n&&P(e),i&&i.d(n)}}}function qf(t,e,i){let n,o,s,l,r,{visible:a=!1}=e,{supportLink:c}=e,{x:f=0}=e,{y:p=0}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:_=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:k}=e,v=0,S=0;const w=pt(),y=sn(),A=w.ui.contextMenuVisible,oe=w.ui.debugPanelVisible;O(t,oe,ue=>i(7,r=ue));const M=w.webApi.pictureInPictureApi,Z=w.webApi.pictureInPictureApi?.info.isActive$;O(t,Z,ue=>i(6,l=ue));const ne=w.state.chromecastState$;O(t,ne,ue=>i(5,s=ue));const L=w.state.isLive$;O(t,L,ue=>i(4,o=ue));const V=w.state.positionExact$;O(t,V,ue=>i(41,n=ue));const x=w.state.isInteractive,Y=()=>{A.set(!1)},le=(ue,Se)=>{if(!b||!h||!_)return;const he=b.getBoundingClientRect(),se=h.getBoundingClientRect();i(2,v=ue-se.left),i(3,S=Se-se.top),v+he.width>se.width&&i(2,v=se.width-he.width),S+he.height>se.height&&i(3,S=se.height-he.height),i(2,v=Math.max(v,0)),i(3,S=Math.max(S,0))},K=()=>{Y(),w.actions.internal.videoRotate()},C=()=>{window.open(c,"_blank"),Y(),w.actions.internal.pause()},G=()=>{const ue=w.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){const Se=new Blob([...ue],{type:"plain/text"}),he=window.URL.createObjectURL(Se);d1(he,"vk_player_debug_info","txt")}else bl(w.actions.internal.getDebugTextData());Y(),k?.()},z=()=>{oe.set(!0),Y(),k?.()},ee=async()=>{try{M?.isActive()?await M?.remove():await M?.request()}finally{Y(),k?.()}},Ee=(ue=!1)=>{if(w.callbacks?.onCopyVideoLink){const Se=w.callbacks?.onCopyVideoLink(ue,n);Se&&bl(Se)}Y()},Re=ue=>{D1(ue,Y)},Ne=ue=>{Yi(ue,()=>Ee())},ze=ue=>{Yi(ue,()=>Ee(!0))},ve=ue=>{Yi(ue,()=>ee())},we=ue=>{Yi(ue,()=>K())},Q=ue=>{Yi(ue,()=>C())},$=ue=>{Yi(ue,()=>G())},ye=ue=>{Yi(ue,()=>z())};function re(ue){lo.call(this,t,ue)}const We=()=>Ee(),Le=()=>Ee(!0);function Ie(ue){ke[ue?"unshift":"push"](()=>{b=ue,i(0,b)})}return t.$$set=ue=>{"visible"in ue&&i(1,a=ue.visible),"supportLink"in ue&&i(31,c=ue.supportLink),"x"in ue&&i(32,f=ue.x),"y"in ue&&i(33,p=ue.y),"playerContainerRef"in ue&&i(34,h=ue.playerContainerRef),"controlsContainerRef"in ue&&i(35,_=ue.controlsContainerRef),"menuElementRef"in ue&&i(0,b=ue.menuElementRef),"returnFocus"in ue&&i(36,k=ue.returnFocus)},t.$$.update=()=>{t.$$.dirty[0]&1|t.$$.dirty[1]&30&&b&&h&&_&&le(f,p)},[b,a,v,S,o,s,l,r,w,y,oe,M,Z,ne,L,V,x,K,C,G,z,ee,Ee,Re,Ne,ze,ve,we,Q,$,ye,c,f,p,h,_,k,re,We,Le,Ie]}class jf extends _e{constructor(e){super(),be(this,e,qf,Uf,ge,{visible:1,supportLink:31,x:32,y:33,playerContainerRef:34,controlsContainerRef:35,menuElementRef:0,returnFocus:36},Df,[-1,-1])}}class Zf{value;next;constructor(e){this.value=e,this.next=null}}class ol{top;bottom;size;maxSize;constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new Zf(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){const e=[];let i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}}function Wf(t){Ze(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Kf(t){let e,i;return{c(){e=E("div"),i=E("canvas"),u(i,"class","v-1ssl9eb"),u(e,"class","container v-1ssl9eb")},m(n,o){T(n,e,o),m(e,i),t[3](i)},p:j,i:j,o:j,d(n){n&&P(e),t[3](null)}}}const ll=16,sl=120,as=60;function Gf(t,e,i,n,o){o===0&&(o=1),t.fillStyle="#fff",t.fillRect(e,i,n,o)}function Yf(t,e,i){let{values:n=[]}=e,o,s;const l=sl/as;ln(()=>{i(0,o.width=sl,o),i(0,o.height=ll,o),i(2,s=o.getContext("2d"))});function r(a){ke[a?"unshift":"push"](()=>{o=a,i(0,o)})}return t.$$set=a=>{"values"in a&&i(1,n=a.values)},t.$$.update=()=>{if(t.$$.dirty&6&&s){let a=n[0];for(let f=1;f<n.length;f++)n[f]>a&&(a=n[f]);s.clearRect(0,0,sl,ll);let c=as-1;for(let f=n.length-1;f>=0;f--){const p=c*l,h=a>0?ll*(n[f]/a):0;Gf(s,p,0,l,h),c--}}},[o,n,s,r]}class Tl extends _e{constructor(e){super(),be(this,e,Yf,Kf,ge,{values:1},Wf)}}function Qf(t){Ze(t,"v-1gy2e68",".container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}")}function us(t){let e,i,n,o,s=t[0].id+"",l;return{c(){e=E("div"),i=E("div"),i.textContent="Video id",n=R(),o=E("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].id+"")&&$e(l,s)},d(r){r&&P(e)}}}function cs(t){let e,i,n,o,s=t[0].provider+"",l;return{c(){e=E("div"),i=E("div"),i.textContent="Provider",n=R(),o=E("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].provider+"")&&$e(l,s)},d(r){r&&P(e)}}}function fs(t){let e,i,n,o,s=t[0].viewport+"",l;return{c(){e=E("div"),i=E("div"),i.textContent="Viewport",n=R(),o=E("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].viewport+"")&&$e(l,s)},d(r){r&&P(e)}}}function ds(t){let e,i,n,o,s=t[0].videoSize+"",l;return{c(){e=E("div"),i=E("div"),i.textContent="Video size",n=R(),o=E("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].videoSize+"")&&$e(l,s)},d(r){r&&P(e)}}}function ms(t){let e,i,n,o,s=t[0].cdn+"",l;return{c(){e=E("div"),i=E("div"),i.textContent="CDN host",n=R(),o=E("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].cdn+"")&&$e(l,s)},d(r){r&&P(e)}}}function ps(t){let e,i,n,o,s=t[0].volume+"",l,r;return{c(){e=E("div"),i=E("div"),i.textContent="Volume",n=R(),o=E("span"),l=De(s),r=De(" %"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){T(a,e,c),m(e,i),m(e,n),m(e,o),m(o,l),m(o,r)},p(a,c){c&1&&s!==(s=a[0].volume+"")&&$e(l,s)},d(a){a&&P(e)}}}function hs(t){let e,i,n,o,s=t[0].buffer.toFixed(2)+"",l,r;return{c(){e=E("div"),i=E("div"),i.textContent="Buffer",n=R(),o=E("span"),l=De(s),r=De(" s"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){T(a,e,c),m(e,i),m(e,n),m(e,o),m(o,l),m(o,r)},p(a,c){c&1&&s!==(s=a[0].buffer.toFixed(2)+"")&&$e(l,s)},d(a){a&&P(e)}}}function gs(t){let e,i,n,o,s,l,r=t[0].speed.toFixed(2)+"",a,c,f;return o=new Tl({props:{values:t[5]}}),{c(){e=E("div"),i=E("div"),i.textContent="Network",n=R(),U(o.$$.fragment),s=R(),l=E("span"),a=De(r),c=De(" Kbps"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(p,h){T(p,e,h),m(e,i),m(e,n),D(o,e,null),m(e,s),m(e,l),m(l,a),m(l,c),f=!0},p(p,h){const _={};h&32&&(_.values=p[5]),o.$set(_),(!f||h&1)&&r!==(r=p[0].speed.toFixed(2)+"")&&$e(a,r)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){g(o.$$.fragment,p),f=!1},d(p){p&&P(e),F(o)}}}function bs(t){let e,i,n,o,s,l,r=t[0].bitrate.toFixed(2)+"",a,c,f;return o=new Tl({props:{values:t[6]}}),{c(){e=E("div"),i=E("div"),i.textContent="V bitrate",n=R(),U(o.$$.fragment),s=R(),l=E("span"),a=De(r),c=De(" Kbps"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(p,h){T(p,e,h),m(e,i),m(e,n),D(o,e,null),m(e,s),m(e,l),m(l,a),m(l,c),f=!0},p(p,h){const _={};h&64&&(_.values=p[6]),o.$set(_),(!f||h&1)&&r!==(r=p[0].bitrate.toFixed(2)+"")&&$e(a,r)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){g(o.$$.fragment,p),f=!1},d(p){p&&P(e),F(o)}}}function Xf(t){let e,i,n,o,s,l,r,a,c=t[0].version+"",f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne,L,V,x,Y,le,K,C,G,z,ee,Ee,Re,Ne,ze,ve,we=t[0].id&&us(t),Q=t[0].provider&&cs(t),$=t[0].viewport&&fs(t),ye=t[0].videoSize&&ds(t),re=t[0].cdn&&ms(t),We=t[0].volume&&ps(t),Le=t[0].buffer&&hs(t),Ie=t[0].speed&&gs(t),ue=t[0].bitrate&&bs(t);return z=new Tl({props:{values:t[4]}}),{c(){e=E("div"),i=E("button"),i.textContent="[x]",n=R(),o=E("div"),s=E("div"),l=E("div"),l.textContent="Version",r=R(),a=E("span"),f=De(c),p=R(),we&&we.c(),h=R(),Q&&Q.c(),_=R(),$&&$.c(),b=R(),ye&&ye.c(),k=R(),re&&re.c(),v=R(),We&&We.c(),S=R(),Le&&Le.c(),w=R(),y=E("div"),A=E("div"),A.textContent="Dropped",oe=R(),M=E("span"),Z=De(t[2]),ne=De(" / "),L=De(t[1]),V=De(" frames"),x=R(),Ie&&Ie.c(),Y=R(),ue&&ue.c(),le=R(),K=E("div"),C=E("div"),C.textContent="FPS",G=R(),U(z.$$.fragment),ee=R(),Ee=E("span"),Re=De(t[3]),u(i,"class","close v-1gy2e68"),u(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(l,"class","v-1gy2e68"),u(s,"class","v-1gy2e68"),u(A,"class","v-1gy2e68"),u(y,"class","v-1gy2e68"),u(C,"class","v-1gy2e68"),u(K,"class","v-1gy2e68"),u(o,"class","content v-1gy2e68"),u(e,"class","container v-1gy2e68"),u(e,"role","region"),u(e,"aria-label",W("aria_label_debug_panel")),B(e,"container-mobile",t[7])},m(Se,he){T(Se,e,he),m(e,i),m(e,n),m(e,o),m(o,s),m(s,l),m(s,r),m(s,a),m(a,f),m(o,p),we&&we.m(o,null),m(o,h),Q&&Q.m(o,null),m(o,_),$&&$.m(o,null),m(o,b),ye&&ye.m(o,null),m(o,k),re&&re.m(o,null),m(o,v),We&&We.m(o,null),m(o,S),Le&&Le.m(o,null),m(o,w),m(o,y),m(y,A),m(y,oe),m(y,M),m(M,Z),m(M,ne),m(M,L),m(M,V),m(o,x),Ie&&Ie.m(o,null),m(o,Y),ue&&ue.m(o,null),m(o,le),m(o,K),m(K,C),m(K,G),D(z,K,null),m(K,ee),m(K,Ee),m(Ee,Re),Ne=!0,ze||(ve=pe(i,"click",ot(t[9])),ze=!0)},p(Se,[he]){(!Ne||he&1)&&c!==(c=Se[0].version+"")&&$e(f,c),Se[0].id?we?we.p(Se,he):(we=us(Se),we.c(),we.m(o,h)):we&&(we.d(1),we=null),Se[0].provider?Q?Q.p(Se,he):(Q=cs(Se),Q.c(),Q.m(o,_)):Q&&(Q.d(1),Q=null),Se[0].viewport?$?$.p(Se,he):($=fs(Se),$.c(),$.m(o,b)):$&&($.d(1),$=null),Se[0].videoSize?ye?ye.p(Se,he):(ye=ds(Se),ye.c(),ye.m(o,k)):ye&&(ye.d(1),ye=null),Se[0].cdn?re?re.p(Se,he):(re=ms(Se),re.c(),re.m(o,v)):re&&(re.d(1),re=null),Se[0].volume?We?We.p(Se,he):(We=ps(Se),We.c(),We.m(o,S)):We&&(We.d(1),We=null),Se[0].buffer?Le?Le.p(Se,he):(Le=hs(Se),Le.c(),Le.m(o,w)):Le&&(Le.d(1),Le=null),(!Ne||he&4)&&$e(Z,Se[2]),(!Ne||he&2)&&$e(L,Se[1]),Se[0].speed?Ie?(Ie.p(Se,he),he&1&&d(Ie,1)):(Ie=gs(Se),Ie.c(),d(Ie,1),Ie.m(o,Y)):Ie&&(ce(),g(Ie,1,1,()=>{Ie=null}),fe()),Se[0].bitrate?ue?(ue.p(Se,he),he&1&&d(ue,1)):(ue=bs(Se),ue.c(),d(ue,1),ue.m(o,le)):ue&&(ce(),g(ue,1,1,()=>{ue=null}),fe());const se={};he&16&&(se.values=Se[4]),z.$set(se),(!Ne||he&8)&&$e(Re,Se[3]),(!Ne||he&128)&&B(e,"container-mobile",Se[7])},i(Se){Ne||(d(Ie),d(ue),d(z.$$.fragment,Se),Ne=!0)},o(Se){g(Ie),g(ue),g(z.$$.fragment,Se),Ne=!1},d(Se){Se&&P(e),we&&we.d(),Q&&Q.d(),$&&$.d(),ye&&ye.d(),re&&re.d(),We&&We.d(),Le&&Le.d(),Ie&&Ie.d(),ue&&ue.d(),F(z),ze=!1,ve()}}}function Jf(t,e,i){let n;const o=pt(),s=o.ui.debugPanelVisible,l=o.ui.isMobile;O(t,l,y=>i(7,n=y));const r=()=>{ie.safeStorage.remove(hl),s.set(!1)};let a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,p=0,h=0;const _=new ol(60),b=new ol(60),k=new ol(60);let v=[],S=[],w=[];return ln(()=>{ie.safeStorage.set(hl,"true"),o.actions.internal.startLogging(),c&&(i(2,p=c.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=c.getVideoPlaybackQuality().totalVideoFrames));const y=window.setInterval(()=>{i(0,a=o.actions.internal.getDebugPanelData())},500);let A;return c&&(A=window.setInterval(()=>{if(c){i(2,p=c.getVideoPlaybackQuality().droppedVideoFrames);const oe=c.getVideoPlaybackQuality().totalVideoFrames;i(3,h=oe-f),i(1,f=oe),_.push(h),a.speed&&b.push(a.speed),a.bitrate&&k.push(a.bitrate),i(4,v=_.getValuesFromBottom()),i(5,S=b.getValuesFromBottom()),i(6,w=k.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),A&&clearInterval(A)}}),[a,f,p,h,v,S,w,n,l,r]}class F1 extends _e{constructor(e){super(),be(this,e,Jf,Xf,ge,{},Qf)}}function xf(t){Ze(t,"v-1ome55p",".close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}")}function $f(t){let e,i,n;return{c(){e=E("div"),u(e,"class","close v-1ome55p")},m(o,s){T(o,e,s),i||(n=pe(e,"click",ot(t[0])),i=!0)},p:j,i:j,o:j,d(o){o&&P(e),i=!1,n()}}}function e0(t){function e(i){lo.call(this,t,i)}return[e]}class t0 extends _e{constructor(e){super(),be(this,e,e0,$f,ge,{},xf)}}function i0(t){Ze(t,"v-8jhsry",`.timer.v-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.v-8jhsry:hover{background:rgba(31, 31, 31, .85)
25
- }.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}`)}function n0(t){let e,i,n,o,s,l,r;return{c(){e=E("div"),i=E("canvas"),n=R(),o=N("svg"),s=N("g"),l=N("g"),r=N("path"),u(i,"class","timer-canvas v-8jhsry"),u(i,"width","100"),u(i,"height","100"),u(r,"class","_play"),u(r,"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"),u(r,"fill","#fff"),u(l,"fill-rule","nonzero"),u(s,"fill","none"),u(s,"fill-rule","evenodd"),u(o,"class","timer-play-icon v-8jhsry"),u(o,"viewBox","0 0 24 24"),u(o,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","timer v-8jhsry")},m(a,c){T(a,e,c),m(e,i),t[2](i),m(e,n),m(e,o),m(o,s),m(s,l),m(l,r)},p:j,i:j,o:j,d(a){a&&P(e),t[2](null)}}}const o0=5e3;function l0(t,e,i){let{onTimerEnded:n=ie.noop}=e,o;ln(()=>{let l;const r=o.getContext("2d");if(!r)return;r.lineWidth=6,r.lineCap="round",r.strokeStyle="#fff";const a=Date.now(),c=()=>{const f=(Date.now()-a)/o0;f<1?(r.clearRect(0,0,100,100),r.beginPath(),r.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),r.stroke(),l=requestAnimationFrame(c)):n()};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}});function s(l){ke[l?"unshift":"push"](()=>{o=l,i(0,o)})}return t.$$set=l=>{"onTimerEnded"in l&&i(1,n=l.onTimerEnded)},[o,n,s]}class s0 extends _e{constructor(e){super(),be(this,e,l0,n0,ge,{onTimerEnded:1},i0)}}function r0(t){Ze(t,"v-kisfwc",".overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-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.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-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.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function _s(t){let e,i;return e=new s0({props:{onTimerEnded:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&4&&(s.onTimerEnded=n[2]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function a0(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe;r=new t0({}),r.$on("click",t[4]);let M=t[3]&&_s(t);return{c(){e=E("div"),i=R(),n=E("div"),o=E("div"),s=E("div"),s.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=R(),U(r.$$.fragment),a=R(),c=E("div"),f=E("div"),p=E("div"),h=E("div"),_=R(),M&&M.c(),k=R(),v=E("div"),S=E("div"),w=De(t[0]),u(e,"class","overlay v-kisfwc"),u(s,"class","caption v-kisfwc"),u(o,"class","top v-kisfwc"),u(h,"class","thumb-overlay v-kisfwc"),u(p,"class","thumb v-kisfwc"),u(p,"style",b=`background-image: url('${t[1]}')`),u(f,"class","column v-kisfwc"),u(S,"class","title v-kisfwc"),u(v,"class","column v-kisfwc"),u(c,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(Z,ne){T(Z,e,ne),T(Z,i,ne),T(Z,n,ne),m(n,o),m(o,s),m(o,l),D(r,o,null),m(n,a),m(n,c),m(c,f),m(f,p),m(p,h),m(p,_),M&&M.m(p,null),m(c,k),m(c,v),m(v,S),m(S,w),y=!0,A||(oe=pe(c,"click",function(){mn(t[2])&&t[2].apply(this,arguments)}),A=!0)},p(Z,[ne]){t=Z,t[3]?M?(M.p(t,ne),ne&8&&d(M,1)):(M=_s(t),M.c(),d(M,1),M.m(p,null)):M&&(ce(),g(M,1,1,()=>{M=null}),fe()),(!y||ne&2&&b!==(b=`background-image: url('${t[1]}')`))&&u(p,"style",b),(!y||ne&1)&&$e(w,t[0])},i(Z){y||(d(r.$$.fragment,Z),d(M),y=!0)},o(Z){g(r.$$.fragment,Z),g(M),y=!1},d(Z){Z&&(P(e),P(i),P(n)),F(r),M&&M.d(),A=!1,oe()}}}function u0(t,e,i){let{title:n}=e,{thumb:o}=e,{playNextVideo:s}=e,l=!0;const r=()=>i(3,l=!1);return t.$$set=a=>{"title"in a&&i(0,n=a.title),"thumb"in a&&i(1,o=a.thumb),"playNextVideo"in a&&i(2,s=a.playNextVideo)},[n,o,s,l,r]}class c0 extends _e{constructor(e){super(),be(this,e,u0,a0,ge,{title:0,thumb:1,playNextVideo:2},r0)}}const H1=(t,e)=>Math.min(+(t+e).toFixed(2),1),U1=(t,e)=>Math.max(+(t-e).toFixed(2),0),q1=(t,e,i)=>{const n=H1(e,i);e<1&&t.actions.internal.setVolume(n)},j1=(t,e,i)=>{const n=U1(e,i);e>0&&t.actions.internal.setVolume(n)};function f0(t){Ze(t,"v-10kkmxz",".keyboard-controls.v-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function d0(t){let e,i,n,o;const s=t[22].default,l=An(s,t,t[21],null);return{c(){e=E("div"),l&&l.c(),u(e,"class","keyboard-controls v-10kkmxz"),u(e,"tabindex","-1"),u(e,"role","region"),u(e,"aria-label",W("aria_label_video_player"))},m(r,a){T(r,e,a),l&&l.m(e,null),t[23](e),i=!0,n||(o=[pe(e,"keyup",t[13]),pe(e,"keydown",t[12])],n=!0)},p(r,a){l&&l.p&&(!i||a[0]&2097152)&&Ln(l,s,r,r[21],i?In(s,r[21],a,null):Vn(r[21]),null)},i(r){i||(d(l,r),i=!0)},o(r){g(l,r),i=!1},d(r){r&&P(e),l&&l.d(r),t[23](null),n=!1,nt(o)}}}function m0(t,e,i){let n,o,s,l,r,a,c,f,p,h,_,{$$slots:b={},$$scope:k}=e,{isAds:v}=e,{hideContextMenu:S}=e,{toggleFullscreen:w}=e,{showHotKeyHelpers:y}=e,{showKeyMap:A}=e,{fakePlayButtonHandler:oe}=e;const M=pt(),Z=sn(),ne=M.getLogger().createComponentLog("KeyboardControls component"),L=M.state.playbackState$;O(t,L,re=>i(27,o=re));const V=M.ads.playbackState;O(t,V,re=>i(26,n=re));const x=M.state.positionExact$;O(t,x,re=>i(33,f=re));const Y=M.state.duration$;O(t,Y,re=>i(32,c=re));const le=M.state.volume$;O(t,le,re=>i(36,_=re));const K=M.ui.controls.disabledControls$;O(t,K,re=>i(31,a=re));const C=M.state.muted$;O(t,C,re=>i(29,l=re));const G=M.state.currentSubtitle$;O(t,G,re=>i(28,s=re));const z=M.state.currentPlaybackRate$;O(t,z,re=>i(34,p=re));const ee=M.state.availablePlaybackRates$;O(t,ee,re=>i(35,h=re));const Ee=M.state.isEnded$;O(t,Ee,re=>i(30,r=re));let Re=0,Ne=!0,ze;const ve=()=>ze?.focus(),we=re=>(re!==Ne&&(Ne=re,Re=0),Re+=1,(Z.controls.seekStepKeyboard+Z.controls.seekStepKeyboard*Re)/1e3),Q=re=>{const We=re.target,Le=We?.getAttribute("role")?.includes("menuitem"),Ie=We.classList.contains("btn"),ue=re.code;if(Ie&&ue===Ae.Space)return;const Se=Bc.has(ue);if(Le&&Se)return;const he=!Mc.has(ue);if(re.ctrlKey&&he||re.altKey&&he||re.metaKey)return;const se=Le&&ue===Ae.Escape;Nc.has(ue)||se||S();const Be=o===xe.PlaybackState.PLAYING||o===xe.PlaybackState.PAUSED,me=v&&(n===Kt.PAUSED||n===Kt.PLAYING),Ce=!me&&!a.has(rt.TIMELINE);if(Be||me)switch(ne({message:`key down, code: ${ue}`}),ue){case Ae.KeyJ:case Ae.ArrowLeft:{if(!Ce)break;if(re.ctrlKey||re.altKey){const Pe=M.actions.internal.getPrevEpisode();M.actions.internal.seekToPrevEpisode(Pe),Pe&&y({type:Ye.EPISODE_PREV,text:Pe.text}),re.preventDefault()}else{const Pe=re.shiftKey?we(!1):Z.controls.seekStepKeyboard/1e3,Ge=Math.max(f-Pe,0);f>0&&(M.actions.internal.seekTime(Ge,mt.SeekAction.DOUBLE_TAP),y({type:Ye.BACKWARD_SEEK,text:Pe.toString()}),re.preventDefault())}break}case Ae.KeyL:case Ae.ArrowRight:{if(!Ce)break;if(re.ctrlKey||re.altKey){const Pe=M.actions.internal.getNextEpisode();M.actions.internal.seekToNextEpisode(Pe),Pe&&y({type:Ye.EPISODE_NEXT,text:Pe.text}),re.preventDefault()}else{const Pe=re.shiftKey?we(!0):Z.controls.seekStepKeyboard/1e3,Ge=Math.min(f+Pe,c);Math.round(f)<Math.round(c)&&(M.actions.internal.seekTime(Ge,mt.SeekAction.DOUBLE_TAP),y({type:Ye.FORWARD_SEEK,text:Pe.toString()}),re.preventDefault())}break}case Ae.ArrowUp:{const Pe=_,Ge=Z.controls.volumeStepKeyboard,it=Pe<=1;if(q1(M,Pe,Ge),it){const Je=Math.round(H1(Pe,Ge)*100).toString();y({type:Ye.VOLUME,t:{key:"hotkey_helper_current_volume",value:Je}})}re.preventDefault();break}case Ae.ArrowDown:{const Pe=_,Ge=Z.controls.volumeStepKeyboard,it=Pe>=0;if(j1(M,Pe,Ge),it){const Je=Math.round(U1(Pe,Ge)*100).toString();y({type:Ye.VOLUME,t:{key:"hotkey_helper_current_volume",value:Je}})}re.preventDefault();break}case Ae.Comma:{if(re.shiftKey){M.actions.internal.decrementPlaybackRate();const Pe=h.find(Ge=>Ge.value===p);y({type:Ye.RATE_DOWN,text:Pe?.displayValue}),re.preventDefault()}else{if(me||o!==xe.PlaybackState.PAUSED)break;const Pe=Math.max(f-Z.controls.seekStepFrame/1e3,0);f>0&&(y({type:Ye.BACKWARD_SEEK}),M.actions.internal.clearDelayedBufferingCheckTimeout(),M.actions.internal.seekTime(Pe,mt.SeekAction.DOUBLE_TAP),re.preventDefault())}break}case Ae.Period:{if(re.shiftKey){M.actions.internal.incrementPlaybackRate();const Pe=h.find(Ge=>Ge.value===p);y({type:Ye.RATE_UP,text:Pe?.displayValue}),re.preventDefault()}else{if(me||o!==xe.PlaybackState.PAUSED)break;const Pe=Math.min(f+Z.controls.seekStepFrame/1e3,c);f<c&&(y({type:Ye.FORWARD_SEEK}),M.actions.internal.clearDelayedBufferingCheckTimeout(),M.actions.internal.seekTime(Pe,mt.SeekAction.DOUBLE_TAP),re.preventDefault())}break}case Ae.KeyK:case Ae.Space:if(!a.has(rt.PLAY_BUTTON))if(oe)oe();else{M.actions.internal.togglePlay();let Pe=Ye.PLAY;o===xe.PlaybackState.PAUSED?Pe=Ye.PAUSE:r&&(Pe=Ye.REPLAY),y({type:Pe})}re.preventDefault();break;case Ae.KeyM:{y({type:l?Ye.VOLUME:Ye.MUTE}),M.actions.internal.toggleMuted(),re.preventDefault();break}case Ae.KeyF:w(),re.preventDefault();break;case Ae.KeyC:M.actions.internal.toggleSubtitle(),s.value!=="off"?y({type:Ye.SUBTITLES_ON,text:s?.displayValue}):y({type:Ye.SUBTITLES_OFF}),re.preventDefault();break;case Ae.KeyI:M.actions.internal.togglePictureInPicture(),re.preventDefault();break;case Ae.Digit1:case Ae.Numpad1:y(),M.actions.internal.seekToPercent(.1,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit2:case Ae.Numpad2:y(),M.actions.internal.seekToPercent(.2,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit3:case Ae.Numpad3:y(),M.actions.internal.seekToPercent(.3,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit4:case Ae.Numpad4:y(),M.actions.internal.seekToPercent(.4,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit5:case Ae.Numpad5:y(),M.actions.internal.seekToPercent(.5,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit6:case Ae.Numpad6:y(),M.actions.internal.seekToPercent(.6,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit7:case Ae.Numpad7:y(),M.actions.internal.seekToPercent(.7,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit8:case Ae.Numpad8:y(),M.actions.internal.seekToPercent(.8,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit9:case Ae.Numpad9:y(),M.actions.internal.seekToPercent(.9,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit0:case Ae.Numpad0:y(),M.actions.internal.seekToPercent(0,mt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Slash:{re.shiftKey&&Z.features.hotKeyMapModal&&(A(),re.preventDefault());break}case Ae.ShiftLeft:case Ae.ShiftRight:re.preventDefault();break;case Ae.Tab:case Ae.Escape:case Ae.Enter:break;default:ie.checkNever(ue);break}},$=re=>{const We=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;const Le=o===xe.PlaybackState.PLAYING||o===xe.PlaybackState.PAUSED,Ie=v&&(n===Kt.PAUSED||n===Kt.PLAYING);if(Le||Ie)switch(We){case Ae.ShiftLeft:case Ae.ShiftRight:Re=0;break}};function ye(re){ke[re?"unshift":"push"](()=>{ze=re,i(0,ze)})}return t.$$set=re=>{"isAds"in re&&i(14,v=re.isAds),"hideContextMenu"in re&&i(15,S=re.hideContextMenu),"toggleFullscreen"in re&&i(16,w=re.toggleFullscreen),"showHotKeyHelpers"in re&&i(17,y=re.showHotKeyHelpers),"showKeyMap"in re&&i(18,A=re.showKeyMap),"fakePlayButtonHandler"in re&&i(19,oe=re.fakePlayButtonHandler),"$$scope"in re&&i(21,k=re.$$scope)},[ze,L,V,x,Y,le,K,C,G,z,ee,Ee,Q,$,v,S,w,y,A,oe,ve,k,b,ye]}class p0 extends _e{constructor(e){super(),be(this,e,m0,d0,ge,{isAds:14,hideContextMenu:15,toggleFullscreen:16,showHotKeyHelpers:17,showKeyMap:18,fakePlayButtonHandler:19,focus:20},f0,[-1,-1])}get focus(){return this.$$.ctx[20]}}function h0(t){Ze(t,"v-8nkw5s",".container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}")}function g0(t){let e;return{c(){e=E("div"),e.innerHTML='<div class="dot v-8nkw5s"></div> <div class="dot v-8nkw5s"></div> <div class="dot v-8nkw5s"></div>',u(e,"class","container v-8nkw5s")},m(i,n){T(i,e,n)},p:j,i:j,o:j,d(i){i&&P(e)}}}class Z1 extends _e{constructor(e){super(),be(this,e,null,g0,ge,{},h0)}}function b0(t){let e,i,n,o,s,l,r,a,c,f,p,h,_;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("defs"),l=N("filter"),r=N("feFlood"),a=N("feColorMatrix"),c=N("feOffset"),f=N("feGaussianBlur"),p=N("feColorMatrix"),h=N("feBlend"),_=N("feBlend"),u(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.727 7.536 6.264Z"),u(n,"fill","#fff"),u(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.374 7.713 6.087Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2422_111980"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2422_111980"),u(_,"result","shape"),u(l,"id","a"),u(l,"x",".5"),u(l,"y",".5"),u(l,"width","23"),u(l,"height","23"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","cross-icon")},m(b,k){T(b,e,k),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,_)},p:j,i:j,o:j,d(b){b&&P(e)}}}class _0 extends _e{constructor(e){super(),be(this,e,null,b0,ge,{})}}function v0(t){Ze(t,"v-1anemql",".btn.v-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.v-1anemql{width:100%}.btn--live.v-1anemql{padding:10px 4px}.btn-m.v-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.v-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.v-1anemql:disabled{cursor:default;pointer-events:none}.btn.v-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.v-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.v-1anemql{padding-right:0}.pl-0.v-1anemql{padding-left:0}")}function k0(t){let e,i,n,o,s,l,r,a,c,f,p,h;const _=t[14].default,b=An(_,t,t[13],null);return{c(){e=E("button"),b&&b.c(),u(e,"class",i="btn "+t[1]+" v-1anemql"),u(e,"style",n=t[2]||null),e.disabled=o=t[3]??null,u(e,"aria-hidden",s=t[5]??null),u(e,"aria-label",l=t[6]??null),u(e,"aria-keyshortcuts",r=t[7]??null),u(e,"aria-expanded",a=t[8]??null),u(e,"data-testid",c=t[4]??null),u(e,"tabindex",t[9])},m(k,v){T(k,e,v),b&&b.m(e,null),t[16](e),f=!0,p||(h=[pe(e,"pointerdown",ot(Gt(t[15]))),pe(e,"click",ot(Gt(function(){mn(t[10]===ie.noop?null:t[10])&&(t[10]===ie.noop?null:t[10]).apply(this,arguments)}))),pe(e,"focus",Gt(function(){mn(t[11]===ie.noop?null:t[11])&&(t[11]===ie.noop?null:t[11]).apply(this,arguments)})),pe(e,"blur",Gt(function(){mn(t[12]===ie.noop?null:t[12])&&(t[12]===ie.noop?null:t[12]).apply(this,arguments)}))],p=!0)},p(k,[v]){t=k,b&&b.p&&(!f||v&8192)&&Ln(b,_,t,t[13],f?In(_,t[13],v,null):Vn(t[13]),null),(!f||v&2&&i!==(i="btn "+t[1]+" v-1anemql"))&&u(e,"class",i),(!f||v&4&&n!==(n=t[2]||null))&&u(e,"style",n),(!f||v&8&&o!==(o=t[3]??null))&&(e.disabled=o),(!f||v&32&&s!==(s=t[5]??null))&&u(e,"aria-hidden",s),(!f||v&64&&l!==(l=t[6]??null))&&u(e,"aria-label",l),(!f||v&128&&r!==(r=t[7]??null))&&u(e,"aria-keyshortcuts",r),(!f||v&256&&a!==(a=t[8]??null))&&u(e,"aria-expanded",a),(!f||v&16&&c!==(c=t[4]??null))&&u(e,"data-testid",c),(!f||v&512)&&u(e,"tabindex",t[9])},i(k){f||(d(b,k),f=!0)},o(k){g(b,k),f=!1},d(k){k&&P(e),b&&b.d(k),t[16](null),p=!1,nt(h)}}}function w0(t,e,i){let{$$slots:n={},$$scope:o}=e,{className:s=""}=e,{style:l=""}=e,{disabled:r=void 0}=e,{testId:a=void 0}=e,{ariaHidden:c=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:_=void 0}=e,{tabIndex:b=0}=e,{click:k=ie.noop}=e,{focus:v=ie.noop}=e,{blur:S=ie.noop}=e;function w(A){lo.call(this,t,A)}function y(A){ke[A?"unshift":"push"](()=>{p=A,i(0,p)})}return t.$$set=A=>{"className"in A&&i(1,s=A.className),"style"in A&&i(2,l=A.style),"disabled"in A&&i(3,r=A.disabled),"testId"in A&&i(4,a=A.testId),"ariaHidden"in A&&i(5,c=A.ariaHidden),"ariaLabel"in A&&i(6,f=A.ariaLabel),"ref"in A&&i(0,p=A.ref),"ariaKeyShortCut"in A&&i(7,h=A.ariaKeyShortCut),"ariaExpanded"in A&&i(8,_=A.ariaExpanded),"tabIndex"in A&&i(9,b=A.tabIndex),"click"in A&&i(10,k=A.click),"focus"in A&&i(11,v=A.focus),"blur"in A&&i(12,S=A.blur),"$$scope"in A&&i(13,o=A.$$scope)},[p,s,l,r,a,c,f,h,_,b,k,v,S,o,n,w,y]}class vi extends _e{constructor(e){super(),be(this,e,w0,k0,ge,{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},v0)}}function y0(t){Ze(t,"v-1witlsj",".modal-overlay.v-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.v-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.v-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.v-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.v-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.v-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.v-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.v-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.v-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.v-1witlsj{margin:-8px -4px 0 0}")}function vs(t){let e,i,n,o,s,l=t[2]&&ks(t);return{c(){e=E("div"),i=E("h3"),n=De(t[3]),o=R(),l&&l.c(),u(i,"class","modal-title v-1witlsj"),u(e,"class","modal-header v-1witlsj")},m(r,a){T(r,e,a),m(e,i),m(i,n),m(e,o),l&&l.m(e,null),s=!0},p(r,a){(!s||a&8)&&$e(n,r[3]),r[2]?l?(l.p(r,a),a&4&&d(l,1)):(l=ks(r),l.c(),d(l,1),l.m(e,null)):l&&(ce(),g(l,1,1,()=>{l=null}),fe())},i(r){s||(d(l),s=!0)},o(r){g(l),s=!1},d(r){r&&P(e),l&&l.d()}}}function ks(t){let e,i;return e=new vi({props:{click:t[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:W("hotkey_map_modal_close_btn_text"),$$slots:{default:[C0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&1&&(s.click=n[0]),o&32&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function C0(t){let e,i;return e=new _0({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function S0(t){let e,i,n,o,s,l,r=t[1]&&vs(t);const a=t[4].default,c=An(a,t,t[5],null);return{c(){e=E("div"),i=E("div"),r&&r.c(),n=R(),o=E("div"),s=E("div"),c&&c.c(),u(s,"class","modal-main v-1witlsj"),u(o,"class","modal-scroll v-1witlsj"),u(i,"class","modal-container v-1witlsj"),u(e,"class","modal-overlay v-1witlsj")},m(f,p){T(f,e,p),m(e,i),r&&r.m(i,null),m(i,n),m(i,o),m(o,s),c&&c.m(s,null),l=!0},p(f,[p]){f[1]?r?(r.p(f,p),p&2&&d(r,1)):(r=vs(f),r.c(),d(r,1),r.m(i,n)):r&&(ce(),g(r,1,1,()=>{r=null}),fe()),c&&c.p&&(!l||p&32)&&Ln(c,a,f,f[5],l?In(a,f[5],p,null):Vn(f[5]),null)},i(f){l||(d(r),d(c,f),l=!0)},o(f){g(r),g(c,f),l=!1},d(f){f&&P(e),r&&r.d(),c&&c.d(f)}}}function P0(t,e,i){let{$$slots:n={},$$scope:o}=e,{onClose:s}=e,{showHeader:l=!0}=e,{showCloseCross:r=!0}=e,{title:a}=e;return t.$$set=c=>{"onClose"in c&&i(0,s=c.onClose),"showHeader"in c&&i(1,l=c.showHeader),"showCloseCross"in c&&i(2,r=c.showCloseCross),"title"in c&&i(3,a=c.title),"$$scope"in c&&i(5,o=c.$$scope)},[s,l,r,a,n,o]}class T0 extends _e{constructor(e){super(),be(this,e,P0,S0,ge,{onClose:0,showHeader:1,showCloseCross:2,title:3},y0)}}const E0=new Set(["BR"]),ws=t=>{const e=document.createElement("DIV");e.innerHTML=t;const i=e.querySelectorAll("*");let n=i.length;for(;n--;){const o=i[n],s=o.tagName;E0.has(s)||o.parentElement?.removeChild(o)}return e.innerHTML};function A0(t){Ze(t,"v-quklnq",".hot-key-map.v-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.v-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.v-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.v-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.v-quklnq,.hot-key-map-item.v-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.v-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.v-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.v-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.v-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.v-quklnq,.hot-key-map-item-value.v-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function ys(t,e,i){const n=t.slice();return n[5]=e[i].title,n[6]=e[i].items,n}function Cs(t,e,i){const n=t.slice();return n[9]=e[i].description,n[10]=e[i].value,n}function Ss(t){let e,i,n=ws(t[9])+"",o,s,l=t[10]+"",r,a;return{c(){e=E("li"),i=E("span"),o=R(),s=E("span"),r=De(l),a=R(),u(i,"class","hot-key-map-item-description v-quklnq"),u(s,"class","hot-key-map-item-value v-quklnq"),u(e,"class","hot-key-map-item v-quklnq")},m(c,f){T(c,e,f),m(e,i),i.innerHTML=n,m(e,o),m(e,s),m(s,r),m(e,a)},p(c,f){f&1&&n!==(n=ws(c[9])+"")&&(i.innerHTML=n),f&1&&l!==(l=c[10]+"")&&$e(r,l)},d(c){c&&P(e)}}}function Ps(t){let e,i,n=t[5]+"",o,s,l,r,a=Rt(t[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=Ss(Cs(t,a,f));return{c(){e=E("div"),i=E("h5"),o=De(n),s=R(),l=E("ul");for(let f=0;f<c.length;f+=1)c[f].c();r=R(),u(i,"class","hot-key-map-group-title v-quklnq"),u(l,"class","hot-key-map-group-items v-quklnq"),u(e,"class","hot-key-map-group v-quklnq")},m(f,p){T(f,e,p),m(e,i),m(i,o),m(e,s),m(e,l);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(l,null);m(e,r)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&$e(o,n),p&1){a=Rt(f[6]);let h;for(h=0;h<a.length;h+=1){const _=Cs(f,a,h);c[h]?c[h].p(_,p):(c[h]=Ss(_),c[h].c(),c[h].m(l,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=a.length}},d(f){f&&P(e),pn(c,f)}}}function I0(t){let e,i=Rt(t[0].groups),n=[];for(let o=0;o<i.length;o+=1)n[o]=Ps(ys(t,i,o));return{c(){e=E("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","hot-key-map v-quklnq")},m(o,s){T(o,e,s);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,s){if(s&1){i=Rt(o[0].groups);let l;for(l=0;l<i.length;l+=1){const r=ys(o,i,l);n[l]?n[l].p(r,s):(n[l]=Ps(r),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},d(o){o&&P(e),pn(n,o)}}}function L0(t){let e,i;return e=new T0({props:{title:t[0].title,onClose:t[2],$$slots:{default:[I0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.title=n[0].title),o&8193&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function V0(t,e,i){let n;const o=pt(),{data:s,show:l}=o.ui.modals.hotKeyMap;return O(t,s,a=>i(0,n=a)),[n,s,()=>{l.set(!1)}]}class M0 extends _e{constructor(e){super(),be(this,e,V0,L0,ge,{},A0)}}function B0(t){Ze(t,"v-1oe0j8n",".pillow.v-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function N0(t){let e,i;const n=t[1].default,o=An(n,t,t[0],null);return{c(){e=E("div"),o&&o.c(),u(e,"class","pillow v-1oe0j8n")},m(s,l){T(s,e,l),o&&o.m(e,null),i=!0},p(s,[l]){o&&o.p&&(!i||l&1)&&Ln(o,n,s,s[0],i?In(n,s[0],l,null):Vn(s[0]),null)},i(s){i||(d(o,s),i=!0)},o(s){g(o,s),i=!1},d(s){s&&P(e),o&&o.d(s)}}}function R0(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=s=>{"$$scope"in s&&i(0,o=s.$$scope)},[o,n]}class O0 extends _e{constructor(e){super(),be(this,e,R0,N0,ge,{},B0)}}function z0(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),n=N("path"),u(i,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 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.536Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","m2.551 1.052-1.51 2.052h1.51V1.052ZM3.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-.9H3.5Z"),u(n,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){T(o,e,s),m(e,i),m(e,n)},p:j,i:j,o:j,d(o){o&&P(e)}}}class D0 extends _e{constructor(e){super(),be(this,e,null,z0,ge,{})}}function F0(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),n=N("path"),u(i,"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.537Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995-.23.112-.412.258-.547.44-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0Zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43c0 .19-.07.333-.204.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43Zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524Z"),u(n,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){T(o,e,s),m(e,i),m(e,n)},p:j,i:j,o:j,d(o){o&&P(e)}}}class H0 extends _e{constructor(e){super(),be(this,e,null,F0,ge,{})}}function U0(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"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.54Zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468ZM.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 5Z"),u(i,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class q0 extends _e{constructor(e){super(),be(this,e,null,U0,ge,{})}}function j0(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"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.54Zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468ZM4.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.471ZM.516 5c.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 5Z"),u(i,"fill","currentColor"),u(e,"width","13"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class W1 extends _e{constructor(e){super(),be(this,e,null,j0,ge,{})}}function Z0(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),n=N("path"),u(i,"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.54Zm.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468ZM6.516 5.75c.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.471Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M3.338 5.659a3.9 3.9 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.554l-.246-.368Zm-.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-.02Z"),u(n,"fill","currentColor"),u(e,"width","15"),u(e,"height","7"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){T(o,e,s),m(e,i),m(e,n)},p:j,i:j,o:j,d(o){o&&P(e)}}}class K1 extends _e{constructor(e){super(),be(this,e,null,Z0,ge,{})}}const uo=t=>{switch(t){case xe.VideoQuality.Q_720P:return q0;case xe.VideoQuality.Q_1080P:return W1;case xe.VideoQuality.Q_1440P:return K1;case xe.VideoQuality.Q_2160P:return D0;case xe.VideoQuality.Q_4320P:return H0}};function W0(t){Ze(t,"v-1fzhlx0",".icon.v-1fzhlx0{display:flex;position:relative;width:24px;height:24px}.icon.v-1fzhlx0 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.v-1fzhlx0 .pillow{right:-13px}")}function K0(t){let e,i,n,o,s,l,r=t[1]&&Ts(t);return{c(){e=E("div"),r&&r.c(),i=R(),n=N("svg"),o=N("path"),s=N("path"),u(o,"fill-rule","evenodd"),u(o,"clip-rule","evenodd"),u(o,"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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967Z"),u(o,"fill","#fff"),u(s,"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.833ZM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5Z"),u(s,"fill","#fff"),B(s,"hidden",!!t[1]),u(n,"width","24"),u(n,"height","24"),u(n,"fill","none"),u(n,"xmlns","http://www.w3.org/2000/svg"),u(n,"data-testid","settings-icon"),u(e,"class","icon v-1fzhlx0"),u(e,"aria-hidden","true"),B(e,"triple",t[2])},m(a,c){T(a,e,c),r&&r.m(e,null),m(e,i),m(e,n),m(n,o),m(n,s),l=!0},p(a,c){a[1]?r?(r.p(a,c),c&2&&d(r,1)):(r=Ts(a),r.c(),d(r,1),r.m(e,i)):r&&(ce(),g(r,1,1,()=>{r=null}),fe()),(!l||c&2)&&B(s,"hidden",!!a[1]),(!l||c&4)&&B(e,"triple",a[2])},i(a){l||(d(r),l=!0)},o(a){g(r),l=!1},d(a){a&&P(e),r&&r.d()}}}function G0(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191c.018.074.041.153.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.315 3.315 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.006c-.077.002-.16.006-.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.333 3.333 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-.225c.016-.075.03-.157.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.36 3.36 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.081c.068.032.143.063.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.33 6.33 0 0 1-.468 1.134 5.851 5.851 0 0 0-1.147.558 6.45 6.45 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.102-.13.384-.22.786-.27 1.201-.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.204.224.35.484.674.776.968a6.258 6.258 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-.295c.257-.278.585-.574.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.747.747 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.19 6.19 0 0 1-.117-1.445c.29-.294.55-.619.775-.97a6.466 6.466 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.428 6.428 0 0 1-1.014-.722 5.955 5.955 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.364 6.364 0 0 1-1.158.348 5.873 5.873 0 0 0-1.15-.556 6.495 6.495 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828l-.076-.004ZM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6Zm0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","settings-mobile-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}function Ts(t){let e,i;return e=new O0({props:{$$slots:{default:[Y0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&18&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Y0(t){let e,i,n;var o=t[1];function s(l){return{}}return o&&(e=kn(o,s())),{c(){e&&U(e.$$.fragment),i=ct()},m(l,r){e&&D(e,l,r),T(l,i,r),n=!0},p(l,r){if(r&2&&o!==(o=l[1])){if(e){ce();const a=e;g(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(e=kn(o,s()),U(e.$$.fragment),d(e.$$.fragment,1),D(e,i.parentNode,i)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&g(e.$$.fragment,l),n=!1},d(l){l&&P(i),e&&F(e,l)}}}function Q0(t){let e,i,n,o;const s=[G0,K0],l=[];function r(a,c){return a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function X0(t,e,i){let n,{isMobile:o=!1}=e,{currentQuality:s=void 0}=e,l;return t.$$set=r=>{"isMobile"in r&&i(0,o=r.isMobile),"currentQuality"in r&&i(3,s=r.currentQuality)},t.$$.update=()=>{t.$$.dirty&8&&i(1,n=uo(s)),t.$$.dirty&2&&i(2,l=!!n&&[W1,K1].includes(n))},[o,n,l,s]}class G1 extends _e{constructor(e){super(),be(this,e,X0,Q0,ge,{isMobile:0,currentQuality:3},W0)}}function J0(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.673 4.673 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.673 4.673 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.673 4.673 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.673 4.673 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428h7.385Zm.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.153.289.54.702.952 1.241 1.24.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.714H11Zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714h1.714Zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714h5.142Zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714H7.57Z"),u(i,"fill","#fff"),u(e,"width","22"),u(e,"height","18"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","subtitle-empty-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class Y1 extends _e{constructor(e){super(),be(this,e,null,J0,ge,{})}}function x0(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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 0ZM0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18Z"),u(i,"fill","#fff"),u(e,"width","16"),u(e,"height","19"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","download-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class $0 extends _e{constructor(e){super(),be(this,e,null,x0,ge,{})}}function ed(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.5Zm11.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.919.211.414.548.75.962.961.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.48 0-1.15-.002-1.905-.049-2.482-.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-.049Zm-3.298 11-.55 2.2h2.695l-.55-2.2H8.202Z"),u(i,"fill","#fff"),u(e,"width","18"),u(e,"height","17"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","traffic-saving-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class td extends _e{constructor(e){super(),be(this,e,null,ed,ge,{})}}function id(t){let e,i,n,o;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),u(n,"d","M0 0h24v24H0z"),u(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 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 12zM10.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-.686z"),u(o,"fill","#fff"),u(o,"fill-rule","nonzero"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"height","24"),u(e,"width","24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","play-speed-icon")},m(s,l){T(s,e,l),m(e,i),m(i,n),m(i,o)},p:j,i:j,o:j,d(s){s&&P(e)}}}class nd extends _e{constructor(e){super(),be(this,e,null,id,ge,{})}}function od(t){Ze(t,"v-2dg73m",".reverted.v-2dg73m{transform:rotate(180deg)}")}function ld(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),u(i,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z"),u(i,"fill",t[0]),u(e,"width","12"),u(e,"height","16"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[2]?"chevron-icon--right":"chevron-icon--left"),u(e,"class","v-2dg73m"),B(e,"reverted",t[2])},m(o,s){T(o,e,s),m(e,i)},p(o,s){s&1&&u(i,"fill",o[0]),s&4&&n!==(n=o[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),s&4&&B(e,"reverted",o[2])},d(o){o&&P(e)}}}function sd(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.272Z"),u(i,"fill",t[0]),u(i,"fill-opacity",".72"),u(e,"width","12"),u(e,"height","7"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[2]?"chevron-icon--down":"chevron-icon--up"),u(e,"class","v-2dg73m"),B(e,"reverted",t[2])},m(o,s){T(o,e,s),m(e,i)},p(o,s){s&1&&u(i,"fill",o[0]),s&4&&n!==(n=o[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),s&4&&B(e,"reverted",o[2])},d(o){o&&P(e)}}}function rd(t){let e;function i(s,l){return s[1]?sd:ld}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),T(s,e,l)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:j,o:j,d(s){s&&P(e),o.d(s)}}}function ad(t,e,i){let{direction:n="left"}=e,{color:o="#fff"}=e,s,l;return t.$$set=r=>{"direction"in r&&i(3,n=r.direction),"color"in r&&i(0,o=r.color)},t.$$.update=()=>{t.$$.dirty&8&&(i(1,s=["up","down"].includes(n)),i(2,l=["right","down"].includes(n)))},[o,s,l,n]}class Fn extends _e{constructor(e){super(),be(this,e,ad,rd,ge,{direction:3,color:0},od)}}function ud(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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-.697zm-.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.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","report-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class cd extends _e{constructor(e){super(),be(this,e,null,ud,ge,{})}}function fd(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"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"),u(i,"fill","#fff"),u(e,"height","16"),u(e,"width","16"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","check-mark-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class Co extends _e{constructor(e){super(),be(this,e,null,fd,ge,{})}}function dd(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 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 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093a17.65 17.65 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.093a17.65 17.65 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.057 17.057 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-.492z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","copy-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class md extends _e{constructor(e){super(),be(this,e,null,dd,ge,{})}}function pd(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","info-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class hd extends _e{constructor(e){super(),be(this,e,null,pd,ge,{})}}function gd(t){Ze(t,"v-5r0p3","ul.v-5r0p3.v-5r0p3{margin:0;padding:0}.menu.v-5r0p3.v-5r0p3{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.v-5r0p3.v-5r0p3{width:100%}.menu-desktop.v-5r0p3.v-5r0p3{position:absolute;right:0;bottom:0}.menu-mobile.v-5r0p3.v-5r0p3{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.v-5r0p3.v-5r0p3{display:none}.menu-subList.v-5r0p3.v-5r0p3{min-width:134px;padding-bottom:0}.menu-subList-subtitles.v-5r0p3.v-5r0p3{min-width:164px}.menu-subList-traffic-saving.v-5r0p3.v-5r0p3{min-width:286px}.item.v-5r0p3.v-5r0p3{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.v-5r0p3.v-5r0p3{padding:0 14px}.item-quality.item-mobile.v-5r0p3.v-5r0p3,.item-traffic-saving.item-mobile.v-5r0p3.v-5r0p3,.item-helper-text.item-mobile.v-5r0p3.v-5r0p3{flex-direction:row-reverse}.item-helper-text.v-5r0p3.v-5r0p3{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.v-5r0p3 span.v-5r0p3{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.v-5r0p3.v-5r0p3{padding:7px 14px}.item-helper-text.item-mobile.v-5r0p3 span.v-5r0p3{text-align:start}.quality-title-mobile.v-5r0p3.v-5r0p3{flex-grow:1}.item.v-5r0p3.v-5r0p3:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-5r0p3.v-5r0p3:hover{background:var(--mobile-settings-bg)}.menu-subList.v-5r0p3 .item.v-5r0p3{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-5r0p3 .item.v-5r0p3:last-child{margin-bottom:4px}.menu-icon-wrapper.v-5r0p3.v-5r0p3{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.v-5r0p3.v-5r0p3{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-5r0p3.v-5r0p3{position:relative;opacity:0.7}.menu-valueIcon.v-5r0p3.v-5r0p3{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.v-5r0p3.v-5r0p3{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.v-5r0p3 svg,.menu-valueIcon-list.v-5r0p3 svg{color:var(--blue-light)}.menu-divider.v-5r0p3.v-5r0p3{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-5r0p3.v-5r0p3{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.v-5r0p3.v-5r0p3{margin-right:auto;padding-right:12px;opacity:0.9}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar{width:8px}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-5r0p3.v-5r0p3{overflow-y:auto;max-height:160px;text-align:left}.close.v-5r0p3.v-5r0p3{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-5r0p3.v-5r0p3:before,.close.v-5r0p3.v-5r0p3:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.v-5r0p3.v-5r0p3:before{transform:rotate(45deg)}.close.v-5r0p3.v-5r0p3:after{transform:rotate(-45deg)}")}function Es(t,e,i){const n=t.slice();return n[142]=e[i],n}function As(t,e,i){const n=t.slice();return n[145]=e[i],n}function Is(t,e,i){const n=t.slice();return n[148]=e[i],n}function Ls(t){let e,i,n,o,s,l,r,a,c,f,p,h=t[8]&&Vs(t),_=t[28]&&Ms(t),b=t[27]&&Ns(t),k=t[26]&&Rs(t),v=t[25]&&Os(t),S=t[24]&&zs(t),w=t[8]&&Ds(t);return{c(){e=E("div"),h&&h.c(),i=R(),n=E("ul"),_&&_.c(),o=R(),b&&b.c(),s=R(),k&&k.c(),l=R(),v&&v.c(),r=R(),S&&S.c(),a=R(),w&&w.c(),u(n,"class","items v-5r0p3"),u(n,"role","menu"),B(n,"items-mobile",t[8]),u(e,"class","menu v-5r0p3"),B(e,"menu-desktop",!t[8]),B(e,"menu-mobile",t[8]),B(e,"hidden",!t[15])},m(y,A){T(y,e,A),h&&h.m(e,null),m(e,i),m(e,n),_&&_.m(n,null),m(n,o),b&&b.m(n,null),m(n,s),k&&k.m(n,null),m(n,l),v&&v.m(n,null),m(n,r),S&&S.m(n,null),m(n,a),w&&w.m(n,null),t[116](n),c=!0,f||(p=[pe(e,"keydown",t[79]),pe(e,"mouseenter",t[73]),pe(e,"mouseleave",t[74])],f=!0)},p(y,A){y[8]?h?h.p(y,A):(h=Vs(y),h.c(),h.m(e,i)):h&&(h.d(1),h=null),y[28]?_?(_.p(y,A),A[0]&268435456&&d(_,1)):(_=Ms(y),_.c(),d(_,1),_.m(n,o)):_&&(ce(),g(_,1,1,()=>{_=null}),fe()),y[27]?b?(b.p(y,A),A[0]&134217728&&d(b,1)):(b=Ns(y),b.c(),d(b,1),b.m(n,s)):b&&(ce(),g(b,1,1,()=>{b=null}),fe()),y[26]?k?(k.p(y,A),A[0]&67108864&&d(k,1)):(k=Rs(y),k.c(),d(k,1),k.m(n,l)):k&&(ce(),g(k,1,1,()=>{k=null}),fe()),y[25]?v?(v.p(y,A),A[0]&33554432&&d(v,1)):(v=Os(y),v.c(),d(v,1),v.m(n,r)):v&&(ce(),g(v,1,1,()=>{v=null}),fe()),y[24]?S?(S.p(y,A),A[0]&16777216&&d(S,1)):(S=zs(y),S.c(),d(S,1),S.m(n,a)):S&&(ce(),g(S,1,1,()=>{S=null}),fe()),y[8]?w?(w.p(y,A),A[0]&256&&d(w,1)):(w=Ds(y),w.c(),d(w,1),w.m(n,null)):w&&(ce(),g(w,1,1,()=>{w=null}),fe()),(!c||A[0]&256)&&B(n,"items-mobile",y[8]),(!c||A[0]&256)&&B(e,"menu-desktop",!y[8]),(!c||A[0]&256)&&B(e,"menu-mobile",y[8]),(!c||A[0]&32768)&&B(e,"hidden",!y[15])},i(y){c||(d(_),d(b),d(k),d(v),d(S),d(w),c=!0)},o(y){g(_),g(b),g(k),g(v),g(S),g(w),c=!1},d(y){y&&P(e),h&&h.d(),_&&_.d(),b&&b.d(),k&&k.d(),v&&v.d(),S&&S.d(),w&&w.d(),t[116](null),f=!1,nt(p)}}}function Vs(t){let e,i,n,o,s,l,r,a;return{c(){e=E("div"),i=E("div"),i.textContent=`${W("submenu_settings")}`,n=R(),o=E("div"),s=R(),l=E("div"),u(o,"class","close v-5r0p3"),u(e,"class","item menu-header v-5r0p3"),B(e,"item-mobile",t[8]),u(l,"class","menu-divider v-5r0p3")},m(c,f){T(c,e,f),m(e,i),m(e,n),m(e,o),T(c,s,f),T(c,l,f),r||(a=pe(o,"click",ot(t[59])),r=!0)},p(c,f){f[0]&256&&B(e,"item-mobile",c[8])},d(c){c&&(P(e),P(s),P(l)),r=!1,a()}}}function Ms(t){let e,i,n,o,s,l,r,a,c,f,p,h,_;n=new G1({});let b=t[36]&&!t[8]&&Bs(t);return{c(){e=E("li"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("menu_quality")}`,l=R(),r=E("div"),a=De(t[20]),c=R(),b&&b.c(),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=W("aria_label_menu_quality",{actual:t[30]})),u(e,"aria-haspopup","true"),B(e,"item-mobile",t[8])},m(k,v){T(k,e,v),m(e,i),D(n,i,null),m(e,o),m(e,s),m(e,l),m(e,r),m(r,a),m(r,c),b&&b.m(r,null),t[112](e),p=!0,h||(_=[pe(e,"click",ot(t[60])),pe(e,"keydown",t[80])],h=!0)},p(k,v){(!p||v[0]&1048576)&&$e(a,k[20]),k[36]&&!k[8]?b?(b.p(k,v),v[0]&256|v[1]&32&&d(b,1)):(b=Bs(k),b.c(),d(b,1),b.m(r,null)):b&&(ce(),g(b,1,1,()=>{b=null}),fe()),(!p||v[0]&1073741824&&f!==(f=W("aria_label_menu_quality",{actual:k[30]})))&&u(e,"aria-label",f),(!p||v[0]&256)&&B(e,"item-mobile",k[8])},i(k){p||(d(n.$$.fragment,k),d(b),p=!0)},o(k){g(n.$$.fragment,k),g(b),p=!1},d(k){k&&P(e),F(n),b&&b.d(),t[112](null),h=!1,nt(_)}}}function Bs(t){let e,i,n;var o=t[36];function s(l){return{}}return o&&(i=kn(o,s())),{c(){e=E("div"),i&&U(i.$$.fragment),u(e,"class","menu-valueIcon v-5r0p3")},m(l,r){T(l,e,r),i&&D(i,e,null),n=!0},p(l,r){if(r[1]&32&&o!==(o=l[36])){if(i){ce();const a=i;g(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(i=kn(o,s()),U(i.$$.fragment),d(i.$$.fragment,1),D(i,e,null)):i=null}},i(l){n||(i&&d(i.$$.fragment,l),n=!0)},o(l){i&&g(i.$$.fragment,l),n=!1},d(l){l&&P(e),i&&F(i)}}}function Ns(t){let e,i,n,o,s,l,r,a,c,f,p,h,_;return n=new nd({}),{c(){e=E("li"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("menu_playback_rate")}`,l=R(),r=E("div"),a=De(t[13]),c=De("x"),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=W("aria_label_menu_rate",{actual:t[31]})),u(e,"aria-haspopup","true"),B(e,"item-mobile",t[8])},m(b,k){T(b,e,k),m(e,i),D(n,i,null),m(e,o),m(e,s),m(e,l),m(e,r),m(r,a),m(r,c),t[113](e),p=!0,h||(_=[pe(e,"click",ot(Gt(t[64]))),pe(e,"keydown",t[83])],h=!0)},p(b,k){(!p||k[0]&8192)&&$e(a,b[13]),(!p||k[1]&1&&f!==(f=W("aria_label_menu_rate",{actual:b[31]})))&&u(e,"aria-label",f),(!p||k[0]&256)&&B(e,"item-mobile",b[8])},i(b){p||(d(n.$$.fragment,b),p=!0)},o(b){g(n.$$.fragment,b),p=!1},d(b){b&&P(e),F(n),t[113](null),h=!1,nt(_)}}}function Rs(t){let e,i,n,o,s,l,r,a=t[37].displayValue+"",c,f,p,h,_;return n=new Y1({}),{c(){e=E("li"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("subtitles_caption")}`,l=R(),r=E("div"),c=De(a),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=W("aria_label_menu_subtitle",{actual:t[37].displayValue})),u(e,"aria-haspopup","true"),B(e,"item-mobile",t[8])},m(b,k){T(b,e,k),m(e,i),D(n,i,null),m(e,o),m(e,s),m(e,l),m(e,r),m(r,c),t[114](e),p=!0,h||(_=[pe(e,"click",ot(t[66])),pe(e,"keydown",t[86])],h=!0)},p(b,k){(!p||k[1]&64)&&a!==(a=b[37].displayValue+"")&&$e(c,a),(!p||k[1]&64&&f!==(f=W("aria_label_menu_subtitle",{actual:b[37].displayValue})))&&u(e,"aria-label",f),(!p||k[0]&256)&&B(e,"item-mobile",b[8])},i(b){p||(d(n.$$.fragment,b),p=!0)},o(b){g(n.$$.fragment,b),p=!1},d(b){b&&P(e),F(n),t[114](null),h=!1,nt(_)}}}function Os(t){let e,i,n,o,s,l,r,a,c,f,p,h;return n=new td({}),{c(){e=E("li"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("menu_traffic_saving")}`,l=R(),r=E("div"),a=De(t[29]),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",c=W("aria_label_menu_traffic_saving",{actual:t[29]})),u(e,"aria-haspopup","true"),B(e,"item-mobile",t[8])},m(_,b){T(_,e,b),m(e,i),D(n,i,null),m(e,o),m(e,s),m(e,l),m(e,r),m(r,a),t[115](e),f=!0,p||(h=[pe(e,"click",ot(t[61])),pe(e,"keydown",t[89])],p=!0)},p(_,b){(!f||b[0]&536870912)&&$e(a,_[29]),(!f||b[0]&536870912&&c!==(c=W("aria_label_menu_traffic_saving",{actual:_[29]})))&&u(e,"aria-label",c),(!f||b[0]&256)&&B(e,"item-mobile",_[8])},i(_){f||(d(n.$$.fragment,_),f=!0)},o(_){g(n.$$.fragment,_),f=!1},d(_){_&&P(e),F(n),t[115](null),p=!1,nt(h)}}}function zs(t){let e,i,n,o,s,l,r,a;return n=new $0({}),{c(){e=E("li"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("download_video_caption")}`,u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",W("aria_label_menu_download")),B(e,"item-mobile",t[8])},m(c,f){T(c,e,f),m(e,i),D(n,i,null),m(e,o),m(e,s),l=!0,r||(a=[pe(e,"click",ot(t[69])),pe(e,"keydown",t[92])],r=!0)},p(c,f){(!l||f[0]&256)&&B(e,"item-mobile",c[8])},i(c){l||(d(n.$$.fragment,c),l=!0)},o(c){g(n.$$.fragment,c),l=!1},d(c){c&&P(e),F(n),r=!1,nt(a)}}}function Ds(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S=t[39].showSupport&&bd(t);return o=new md({}),f=new hd({}),{c(){S&&S.c(),e=R(),i=E("li"),n=E("div"),U(o.$$.fragment),s=R(),l=E("div"),l.textContent=`${W("menu_copy_debug")}`,r=R(),a=E("li"),c=E("div"),U(f.$$.fragment),p=R(),h=E("div"),h.textContent=`${W("menu_debug_overlay")}`,u(n,"class","menu-icon-wrapper v-5r0p3"),u(l,"class","menu-title v-5r0p3"),u(i,"class","item item-mobile v-5r0p3"),u(i,"role","menuitem"),u(i,"tabindex","0"),u(i,"aria-label",W("menu_copy_debug")),u(c,"class","menu-icon-wrapper v-5r0p3"),u(h,"class","menu-title v-5r0p3"),u(a,"class","item item-mobile v-5r0p3"),u(a,"role","menuitem"),u(a,"tabindex","0"),u(a,"aria-label",_=t[38]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"))},m(w,y){S&&S.m(w,y),T(w,e,y),T(w,i,y),m(i,n),D(o,n,null),m(i,s),m(i,l),T(w,r,y),T(w,a,y),m(a,c),D(f,c,null),m(a,p),m(a,h),b=!0,k||(v=[pe(i,"click",ot(t[71])),pe(i,"keydown",t[94]),pe(a,"click",ot(t[72])),pe(a,"keydown",t[95])],k=!0)},p(w,y){w[39].showSupport&&S.p(w,y),(!b||y[1]&128&&_!==(_=w[38]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable")))&&u(a,"aria-label",_)},i(w){b||(d(S),d(o.$$.fragment,w),d(f.$$.fragment,w),b=!0)},o(w){g(S),g(o.$$.fragment,w),g(f.$$.fragment,w),b=!1},d(w){w&&(P(e),P(i),P(r),P(a)),S&&S.d(w),F(o),F(f),k=!1,nt(v)}}}function bd(t){let e,i,n,o,s,l,r,a;return n=new cd({}),{c(){e=E("li"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("menu_report")}`,u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(e,"class","item item-mobile v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`)},m(c,f){T(c,e,f),m(e,i),D(n,i,null),m(e,o),m(e,s),l=!0,r||(a=[pe(e,"click",ot(t[70])),pe(e,"keydown",t[93])],r=!0)},p:j,i(c){l||(d(n.$$.fragment,c),l=!0)},o(c){g(n.$$.fragment,c),l=!1},d(c){c&&P(e),F(n),r=!1,nt(a)}}}function Fs(t){let e,i,n,o,s,l,r,a,c,f,p,h;n=new Fn({props:{direction:"left"}});let _=Rt(t[12]),b=[];for(let v=0;v<_.length;v+=1)b[v]=qs(Is(t,_,v));const k=v=>g(b[v],1,1,()=>{b[v]=null});return{c(){e=E("div"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("submenu_quality")}`,l=R(),r=E("div"),a=R(),c=E("ul");for(let v=0;v<b.length;v+=1)b[v].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",W("aria_label_submenu_back")),B(i,"item-mobile",t[8]),u(r,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",t[21]),B(c,"items-mobile",t[8]),u(e,"class","menu menu-subList v-5r0p3"),B(e,"menu-desktop",!t[8]),B(e,"menu-mobile",t[8])},m(v,S){T(v,e,S),m(e,i),D(n,i,null),m(i,o),m(i,s),t[117](i),m(e,l),m(e,r),m(e,a),m(e,c);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(c,null);t[120](c),f=!0,p||(h=[pe(i,"click",ot(t[68])),pe(c,"keydown",t[81])],p=!0)},p(v,S){if((!f||S[0]&256)&&B(i,"item-mobile",v[8]),S[0]&4352|S[2]&1048577){_=Rt(v[12]);let w;for(w=0;w<_.length;w+=1){const y=Is(v,_,w);b[w]?(b[w].p(y,S),d(b[w],1)):(b[w]=qs(y),b[w].c(),d(b[w],1),b[w].m(c,null))}for(ce(),w=_.length;w<b.length;w+=1)k(w);fe()}(!f||S[0]&2097152)&&u(c,"style",v[21]),(!f||S[0]&256)&&B(c,"items-mobile",v[8]),(!f||S[0]&256)&&B(e,"menu-desktop",!v[8]),(!f||S[0]&256)&&B(e,"menu-mobile",v[8])},i(v){if(!f){d(n.$$.fragment,v);for(let S=0;S<_.length;S+=1)d(b[S]);f=!0}},o(v){g(n.$$.fragment,v),b=b.filter(Boolean);for(let S=0;S<b.length;S+=1)g(b[S]);f=!1},d(v){v&&P(e),F(n),t[117](null),pn(b,v),t[120](null),p=!1,nt(h)}}}function Hs(t){let e,i,n;return i=new Co({}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),D(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Us(t){let e,i,n;var o=uo(t[148].value);function s(l){return{}}return o&&(i=kn(o,s())),{c(){e=E("div"),i&&U(i.$$.fragment),u(e,"class","menu-valueIcon-list v-5r0p3")},m(l,r){T(l,e,r),i&&D(i,e,null),n=!0},p(l,r){if(r[0]&4096&&o!==(o=uo(l[148].value))){if(i){ce();const a=i;g(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(i=kn(o,s()),U(i.$$.fragment),d(i.$$.fragment,1),D(i,e,null)):i=null}},i(l){n||(i&&d(i.$$.fragment,l),n=!0)},o(l){i&&g(i.$$.fragment,l),n=!1},d(l){l&&P(e),i&&F(i)}}}function qs(t){let e,i,n,o=t[148].displayValue+"",s,l,r=!t[8]&&uo(t[148].value),a,c,f,p,h,_,b=t[148].selected&&Hs(),k=r&&Us(t);function v(){return t[118](t[148])}function S(...w){return t[119](t[148],...w)}return{c(){e=E("li"),b&&b.c(),i=R(),n=E("div"),s=De(o),l=R(),k&&k.c(),a=R(),u(n,"class","v-5r0p3"),B(n,"quality-title-mobile",t[8]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",c=t[148].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=t[148].displayValue),B(e,"item-mobile",t[8])},m(w,y){T(w,e,y),b&&b.m(e,null),m(e,i),m(e,n),m(n,s),m(e,l),k&&k.m(e,null),m(e,a),p=!0,h||(_=[pe(e,"click",ot(v)),pe(e,"keydown",S)],h=!0)},p(w,y){t=w,t[148].selected?b?y[0]&4096&&d(b,1):(b=Hs(),b.c(),d(b,1),b.m(e,i)):b&&(ce(),g(b,1,1,()=>{b=null}),fe()),(!p||y[0]&4096)&&o!==(o=t[148].displayValue+"")&&$e(s,o),(!p||y[0]&256)&&B(n,"quality-title-mobile",t[8]),y[0]&4352&&(r=!t[8]&&uo(t[148].value)),r?k?(k.p(t,y),y[0]&4352&&d(k,1)):(k=Us(t),k.c(),d(k,1),k.m(e,a)):k&&(ce(),g(k,1,1,()=>{k=null}),fe()),(!p||y[0]&4096&&c!==(c=t[148].value))&&u(e,"data-value",c),(!p||y[0]&4096&&f!==(f=t[148].displayValue))&&u(e,"aria-label",f),(!p||y[0]&256)&&B(e,"item-mobile",t[8])},i(w){p||(d(b),d(k),p=!0)},o(w){g(b),g(k),p=!1},d(w){w&&P(e),b&&b.d(),k&&k.d(),h=!1,nt(_)}}}function js(t){let e,i,n,o,s,l,r,a,c,f,p,h;n=new Fn({props:{direction:"left"}});let _=Rt(t[11]),b=[];for(let v=0;v<_.length;v+=1)b[v]=Ws(As(t,_,v));const k=v=>g(b[v],1,1,()=>{b[v]=null});return{c(){e=E("div"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("submenu_playback_rate")}`,l=R(),r=E("div"),a=R(),c=E("ul");for(let v=0;v<b.length;v+=1)b[v].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",W("aria_label_submenu_back")),B(i,"item-mobile",t[8]),u(r,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",t[22]),B(c,"items-mobile",t[8]),u(e,"class","menu menu-subList v-5r0p3"),B(e,"menu-desktop",!t[8]),B(e,"menu-mobile",t[8])},m(v,S){T(v,e,S),m(e,i),D(n,i,null),m(i,o),m(i,s),t[121](i),m(e,l),m(e,r),m(e,a),m(e,c);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(c,null);t[124](c),f=!0,p||(h=[pe(i,"click",ot(t[68])),pe(c,"keydown",t[84])],p=!0)},p(v,S){if((!f||S[0]&256)&&B(i,"item-mobile",v[8]),S[0]&2304|S[2]&8388616){_=Rt(v[11]);let w;for(w=0;w<_.length;w+=1){const y=As(v,_,w);b[w]?(b[w].p(y,S),d(b[w],1)):(b[w]=Ws(y),b[w].c(),d(b[w],1),b[w].m(c,null))}for(ce(),w=_.length;w<b.length;w+=1)k(w);fe()}(!f||S[0]&4194304)&&u(c,"style",v[22]),(!f||S[0]&256)&&B(c,"items-mobile",v[8]),(!f||S[0]&256)&&B(e,"menu-desktop",!v[8]),(!f||S[0]&256)&&B(e,"menu-mobile",v[8])},i(v){if(!f){d(n.$$.fragment,v);for(let S=0;S<_.length;S+=1)d(b[S]);f=!0}},o(v){g(n.$$.fragment,v),b=b.filter(Boolean);for(let S=0;S<b.length;S+=1)g(b[S]);f=!1},d(v){v&&P(e),F(n),t[121](null),pn(b,v),t[124](null),p=!1,nt(h)}}}function Zs(t){let e,i,n;return i=new Co({}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),D(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Ws(t){let e,i,n,o=t[145].displayValue+"",s,l,r,a,c,f,p,h=t[145].selected&&Zs();function _(){return t[122](t[145])}function b(...k){return t[123](t[145],...k)}return{c(){e=E("li"),h&&h.c(),i=R(),n=E("div"),s=De(o),l=R(),u(n,"class","v-5r0p3"),B(n,"quality-title-mobile",t[8]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",r=t[145].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=t[145].displayValue),B(e,"item-mobile",t[8])},m(k,v){T(k,e,v),h&&h.m(e,null),m(e,i),m(e,n),m(n,s),m(e,l),c=!0,f||(p=[pe(e,"click",ot(_)),pe(e,"keydown",b)],f=!0)},p(k,v){t=k,t[145].selected?h?v[0]&2048&&d(h,1):(h=Zs(),h.c(),d(h,1),h.m(e,i)):h&&(ce(),g(h,1,1,()=>{h=null}),fe()),(!c||v[0]&2048)&&o!==(o=t[145].displayValue+"")&&$e(s,o),(!c||v[0]&256)&&B(n,"quality-title-mobile",t[8]),(!c||v[0]&2048&&r!==(r=t[145].value))&&u(e,"data-value",r),(!c||v[0]&2048&&a!==(a=t[145].displayValue))&&u(e,"aria-label",a),(!c||v[0]&256)&&B(e,"item-mobile",t[8])},i(k){c||(d(h),c=!0)},o(k){g(h),c=!1},d(k){k&&P(e),h&&h.d(),f=!1,nt(p)}}}function Ks(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne;n=new Fn({props:{direction:"left"}});let L=!t[9]&&Gs(),V=t[9]&&Ys();return{c(){e=E("div"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("submenu_traffic_saving")}`,l=R(),r=E("div"),a=R(),c=E("ul"),f=E("li"),L&&L.c(),p=R(),h=E("div"),h.textContent=`${W("traffic_saving_disable")}`,_=R(),b=E("li"),V&&V.c(),k=R(),v=E("div"),v.textContent=`${W("traffic_saving_enable")}`,S=R(),w=E("div"),y=R(),A=E("div"),oe=E("span"),oe.textContent=`${W("traffic_saving_helper_text")}`,u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",W("aria_label_submenu_back")),B(i,"item-mobile",t[8]),u(r,"class","menu-divider v-5r0p3"),u(h,"class","v-5r0p3"),B(h,"quality-title-mobile",t[8]),u(f,"class","item item-traffic-saving v-5r0p3"),u(f,"role","menuitem"),u(f,"tabindex","0"),u(f,"aria-label",W("aria_label_submenu_traffic_saving_off")),B(f,"item-mobile",t[8]),u(v,"class","v-5r0p3"),B(v,"quality-title-mobile",t[8]),u(b,"class","item item-traffic-saving v-5r0p3"),u(b,"role","menuitem"),u(b,"tabindex","0"),u(b,"aria-label",`${W("aria_label_submenu_traffic_saving_on")}. ${W("traffic_saving_helper_text")}`),B(b,"item-mobile",t[8]),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",t[23]),B(c,"items-mobile",t[8]),u(w,"class","menu-divider v-5r0p3"),u(oe,"class","v-5r0p3"),u(A,"class","item item-helper-text v-5r0p3"),B(A,"item-mobile",t[8]),u(e,"class","menu menu-subList menu-subList-traffic-saving v-5r0p3"),B(e,"menu-desktop",!t[8]),B(e,"menu-mobile",t[8])},m(x,Y){T(x,e,Y),m(e,i),D(n,i,null),m(i,o),m(i,s),t[125](i),m(e,l),m(e,r),m(e,a),m(e,c),m(c,f),L&&L.m(f,null),m(f,p),m(f,h),m(c,_),m(c,b),V&&V.m(b,null),m(b,k),m(b,v),t[130](c),m(e,S),m(e,w),m(e,y),m(e,A),m(A,oe),M=!0,Z||(ne=[pe(i,"click",ot(t[68])),pe(f,"click",ot(t[126])),pe(f,"keydown",t[127]),pe(b,"click",ot(t[128])),pe(b,"keydown",t[129]),pe(c,"keydown",t[90])],Z=!0)},p(x,Y){(!M||Y[0]&256)&&B(i,"item-mobile",x[8]),x[9]?L&&(ce(),g(L,1,1,()=>{L=null}),fe()):L?Y[0]&512&&d(L,1):(L=Gs(),L.c(),d(L,1),L.m(f,p)),(!M||Y[0]&256)&&B(h,"quality-title-mobile",x[8]),(!M||Y[0]&256)&&B(f,"item-mobile",x[8]),x[9]?V?Y[0]&512&&d(V,1):(V=Ys(),V.c(),d(V,1),V.m(b,k)):V&&(ce(),g(V,1,1,()=>{V=null}),fe()),(!M||Y[0]&256)&&B(v,"quality-title-mobile",x[8]),(!M||Y[0]&256)&&B(b,"item-mobile",x[8]),(!M||Y[0]&8388608)&&u(c,"style",x[23]),(!M||Y[0]&256)&&B(c,"items-mobile",x[8]),(!M||Y[0]&256)&&B(A,"item-mobile",x[8]),(!M||Y[0]&256)&&B(e,"menu-desktop",!x[8]),(!M||Y[0]&256)&&B(e,"menu-mobile",x[8])},i(x){M||(d(n.$$.fragment,x),d(L),d(V),M=!0)},o(x){g(n.$$.fragment,x),g(L),g(V),M=!1},d(x){x&&P(e),F(n),t[125](null),L&&L.d(),V&&V.d(),t[130](null),Z=!1,nt(ne)}}}function Gs(t){let e,i,n;return i=new Co({}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),D(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Ys(t){let e,i,n;return i=new Co({}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),D(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Qs(t){let e,i,n,o,s,l,r,a,c,f;n=new Fn({props:{direction:"left"}});let p=Rt(t[10]),h=[];for(let b=0;b<p.length;b+=1)h[b]=Js(Es(t,p,b));const _=b=>g(h[b],1,1,()=>{h[b]=null});return{c(){e=E("div"),i=E("div"),U(n.$$.fragment),o=R(),s=E("div"),s.textContent=`${W("subtitles_caption")}`,l=R(),r=E("ul");for(let b=0;b<h.length;b+=1)h[b].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",W("aria_label_submenu_back")),B(i,"item-mobile",t[8]),u(r,"class","items v-5r0p3"),u(r,"role","menu"),B(r,"items-mobile",t[8]),u(e,"class","menu menu-subList menu-subList-subtitles v-5r0p3"),B(e,"menu-desktop",!t[8]),B(e,"menu-mobile",t[8])},m(b,k){T(b,e,k),m(e,i),D(n,i,null),m(i,o),m(i,s),m(e,l),m(e,r);for(let v=0;v<h.length;v+=1)h[v]&&h[v].m(r,null);t[133](r),a=!0,c||(f=[pe(i,"click",ot(t[68])),pe(r,"keydown",t[87])],c=!0)},p(b,k){if((!a||k[0]&256)&&B(i,"item-mobile",b[8]),k[0]&1280|k[2]&67108896){p=Rt(b[10]);let v;for(v=0;v<p.length;v+=1){const S=Es(b,p,v);h[v]?(h[v].p(S,k),d(h[v],1)):(h[v]=Js(S),h[v].c(),d(h[v],1),h[v].m(r,null))}for(ce(),v=p.length;v<h.length;v+=1)_(v);fe()}(!a||k[0]&256)&&B(r,"items-mobile",b[8]),(!a||k[0]&256)&&B(e,"menu-desktop",!b[8]),(!a||k[0]&256)&&B(e,"menu-mobile",b[8])},i(b){if(!a){d(n.$$.fragment,b);for(let k=0;k<p.length;k+=1)d(h[k]);a=!0}},o(b){g(n.$$.fragment,b),h=h.filter(Boolean);for(let k=0;k<h.length;k+=1)g(h[k]);a=!1},d(b){b&&P(e),F(n),pn(h,b),t[133](null),c=!1,nt(f)}}}function Xs(t){let e,i,n;return i=new Co({}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),D(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Js(t){let e,i,n,o=t[142].displayValue+"",s,l,r,a,c,f,p,h=t[142].selected&&Xs();function _(){return t[131](t[142])}function b(...k){return t[132](t[142],...k)}return{c(){e=E("li"),h&&h.c(),i=R(),n=E("div"),s=De(o),l=R(),u(n,"class","v-5r0p3"),B(n,"quality-title-mobile",t[8]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",r=t[142].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=t[142].displayValue),B(e,"item-mobile",t[8])},m(k,v){T(k,e,v),h&&h.m(e,null),m(e,i),m(e,n),m(n,s),m(e,l),c=!0,f||(p=[pe(e,"click",ot(_)),pe(e,"keydown",b)],f=!0)},p(k,v){t=k,t[142].selected?h?v[0]&1024&&d(h,1):(h=Xs(),h.c(),d(h,1),h.m(e,i)):h&&(ce(),g(h,1,1,()=>{h=null}),fe()),(!c||v[0]&1024)&&o!==(o=t[142].displayValue+"")&&$e(s,o),(!c||v[0]&256)&&B(n,"quality-title-mobile",t[8]),(!c||v[0]&1024&&r!==(r=t[142].value))&&u(e,"data-value",r),(!c||v[0]&1024&&a!==(a=t[142].displayValue))&&u(e,"aria-label",a),(!c||v[0]&256)&&B(e,"item-mobile",t[8])},i(k){c||(d(h),c=!0)},o(k){g(h),c=!1},d(k){k&&P(e),h&&h.d(),f=!1,nt(p)}}}function _d(t){let e,i,n,o,s,l,r=t[14]&&Ls(t),a=t[16]&&Fs(t),c=t[17]&&js(t),f=t[19]&&Ks(t),p=t[18]&&Qs(t);return{c(){e=E("div"),r&&r.c(),i=R(),a&&a.c(),n=R(),c&&c.c(),o=R(),f&&f.c(),s=R(),p&&p.c(),u(e,"class","v-5r0p3"),B(e,"hidden",!t[14]),B(e,"container-mobile",t[8])},m(h,_){T(h,e,_),r&&r.m(e,null),m(e,i),a&&a.m(e,null),m(e,n),c&&c.m(e,null),m(e,o),f&&f.m(e,null),m(e,s),p&&p.m(e,null),l=!0},p(h,_){h[14]?r?(r.p(h,_),_[0]&16384&&d(r,1)):(r=Ls(h),r.c(),d(r,1),r.m(e,i)):r&&(ce(),g(r,1,1,()=>{r=null}),fe()),h[16]?a?(a.p(h,_),_[0]&65536&&d(a,1)):(a=Fs(h),a.c(),d(a,1),a.m(e,n)):a&&(ce(),g(a,1,1,()=>{a=null}),fe()),h[17]?c?(c.p(h,_),_[0]&131072&&d(c,1)):(c=js(h),c.c(),d(c,1),c.m(e,o)):c&&(ce(),g(c,1,1,()=>{c=null}),fe()),h[19]?f?(f.p(h,_),_[0]&524288&&d(f,1)):(f=Ks(h),f.c(),d(f,1),f.m(e,s)):f&&(ce(),g(f,1,1,()=>{f=null}),fe()),h[18]?p?(p.p(h,_),_[0]&262144&&d(p,1)):(p=Qs(h),p.c(),d(p,1),p.m(e,null)):p&&(ce(),g(p,1,1,()=>{p=null}),fe()),(!l||_[0]&16384)&&B(e,"hidden",!h[14]),(!l||_[0]&256)&&B(e,"container-mobile",h[8])},i(h){l||(d(r),d(a),d(c),d(f),d(p),l=!0)},o(h){g(r),g(a),g(c),g(f),g(p),l=!1},d(h){h&&P(e),r&&r.d(),a&&a.d(),c&&c.d(),f&&f.d(),p&&p.d()}}}const rl=18;function vd(t,e,i){let n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne,L,V,{ref:x=void 0}=e,{supportLink:Y}=e,{playerControlsHeight:le=0}=e,{returnFocus:K}=e;const C=pt(),G=sn(),z=C.state.currentQuality$;O(t,z,te=>i(103,k=te));const ee=C.state.availableQualities$;O(t,ee,te=>i(12,_=te));const Ee=C.state.autoQualityLimitingAvailable$;O(t,Ee,te=>i(107,y=te));const Re=C.state.isAutoQualityEnabled$;O(t,Re,te=>i(104,v=te));const Ne=C.state.currentPlaybackRate$;O(t,Ne,te=>i(13,b=te));const ze=C.state.availablePlaybackRates$;O(t,ze,te=>i(11,p=te));const ve=C.state.currentSubtitle$;O(t,ve,te=>i(37,L=te));const we=C.state.availableSubtitlesList$;O(t,we,te=>i(10,c=te));const Q=C.state.canDownload,$=C.state.hasMpegSources$;O(t,$,te=>i(108,A=te));const ye=C.ui.settingsMenuVisible;O(t,ye,te=>i(14,ne=te));const re=C.ui.settingsMenuOpenedByKeyboard;O(t,re,te=>i(135,o=te));const We=C.ui.isMobile;O(t,We,te=>i(8,s=te));const Le=C.ui.mobileNotReportControlHidden$;O(t,Le,te=>i(105,S=te));const Ie=C.state.canChangePlaybackSpeed$;O(t,Ie,te=>i(106,w=te));const ue=C.ui.isFullscreen;O(t,ue,te=>i(111,Z=te));const Se=C.state.trafficSavingEnabled$;O(t,Se,te=>i(9,r=te));const he=C.ui.playerSize;O(t,he,te=>i(110,M=te));const se=C.ui.debugPanelVisible;O(t,se,te=>i(38,V=te));const Be=C.ui.playerSize;O(t,Be,te=>i(109,oe=te));const me=C.state.isInteractiveTime$,Ce=C.actions.internal.downloadVideo,Pe=C.actions.internal.closeSettingsMenu;let Ge=!0,it=!1,Je=!1,Qe=!1,tt=!1,Et=!1;function ht(){o||K?.(),Pe(),Et=!1}function Fe(){i(15,Ge=!1),i(16,it=!0)}function yt(){i(15,Ge=!1),i(19,tt=!0)}function Yt(te){C.actions.internal.setQuality(te),ht()}function de(te){C.actions.internal.setTrafficSavingEnabled(te),ht()}function bt(){i(15,Ge=!1),i(17,Je=!0)}function at(te){C.actions.internal.setPlaybackRate(te),ht()}function Qt(){i(15,Ge=!1),i(18,Qe=!0)}function ut(te){C.actions.internal.setSubtitle(te),ht()}function vt(){i(15,Ge=!0),i(16,it=!1),i(17,Je=!1),i(18,Qe=!1),i(19,tt=!1)}function ri(){Ce(),ht()}function Ot(){window.open(Y,"_blank"),ht(),C.actions.internal.pause()}function ai(){bl(C.actions.internal.getDebugTextData()),ht()}function Ui(){se.set(!0),ht()}function ui(){Et=!0}function ki(){Et=!1}function Qi(te,lt,oi){if(!te)return"...";const Gi=lt.find($i=>$i.value===te),wt=Gi?Gi.displayValue:te;return oi?te===xe.VideoQuality.INVARIANT?W("auto_quality_invariant"):W("auto_quality",{actual:wt}):wt}let ci,fi,wi,At,Xt,yi,Jt,Ci,di,zt,Ni,St,Dt,Si,Ri,Pt,xt,$t=Me(!1);O(t,$t,te=>i(102,h=te));let mi,kt,It=Me(!1);O(t,It,te=>i(101,f=te));let pi,_t,Pi=Me(!1);O(t,Pi,te=>i(100,a=te));let Ti,Ct,Ft=Me(!1);O(t,Ft,te=>i(99,l=te));const qi=te=>{D1(te,Pe)},Ht=async te=>{Ro(te,Fe,()=>{const lt=_.findIndex(oi=>oi.selected);return xt.childNodes[lt]})},Xi=async te=>{Oo(te,vt,$t,Pe)},ei=(te,lt)=>{Yi(te,()=>Yt(lt))},Mt=async te=>{Ro(te,bt,()=>{const lt=p.findIndex(oi=>oi.selected);return kt.childNodes[lt]})},Bt=async te=>{Oo(te,vt,It,Pe)},hi=(te,lt)=>{Yi(te,()=>at(lt))},Lt=async te=>{Ro(te,Qt,()=>{const lt=c.findIndex(oi=>oi.selected);return _t.childNodes[lt]})},ji=async te=>{Oo(te,vt,Pi,Pe)},Zi=(te,lt)=>{Yi(te,()=>ut(lt))},Ei=async te=>{Ro(te,yt,()=>{const lt=r?2:0;return Ct.childNodes[lt]})},gi=async te=>{Oo(te,vt,Ft,Pe)},gt=(te,lt)=>{Yi(te,()=>de(lt))},Oi=te=>{Yi(te,()=>ri())},zi=te=>{Yi(te,()=>Ot())},Ai=te=>{Yi(te,()=>ai())},Ii=te=>{Yi(te,()=>Ui())};ln(()=>{const te=me.subscribe(lt=>{lt&&!s&&!Et&&!o&&ht()});return()=>{te()}});function Li(te){ke[te?"unshift":"push"](()=>{Pt=te,i(4,Pt)})}function Di(te){ke[te?"unshift":"push"](()=>{mi=te,i(5,mi)})}function ti(te){ke[te?"unshift":"push"](()=>{pi=te,i(6,pi)})}function bi(te){ke[te?"unshift":"push"](()=>{Ti=te,i(7,Ti)})}function ii(te){ke[te?"unshift":"push"](()=>{x=te,i(0,x)})}function Ut(te){ke[te?"unshift":"push"](()=>{fi=te,i(1,fi)})}const Ve=te=>Yt(te.value),Fi=(te,lt)=>ei(lt,te.value);function _i(te){ke[te?"unshift":"push"](()=>{xt=te,i(32,xt)})}function He(te){ke[te?"unshift":"push"](()=>{wi=te,i(2,wi)})}const Wi=te=>at(te.value),qt=(te,lt)=>hi(lt,te.value);function en(te){ke[te?"unshift":"push"](()=>{kt=te,i(33,kt)})}function ni(te){ke[te?"unshift":"push"](()=>{At=te,i(3,At)})}const Ji=()=>de(!1),jt=te=>gt(te,!1),Vi=()=>de(!0),tn=te=>gt(te,!0);function xi(te){ke[te?"unshift":"push"](()=>{Ct=te,i(35,Ct)})}const Ki=te=>ut(te),Hi=(te,lt)=>Zi(lt,te);function Nt(te){ke[te?"unshift":"push"](()=>{_t=te,i(34,_t)})}return t.$$set=te=>{"ref"in te&&i(0,x=te.ref),"supportLink"in te&&i(96,Y=te.supportLink),"playerControlsHeight"in te&&i(97,le=te.playerControlsHeight),"returnFocus"in te&&i(98,K=te.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&16384&&ne&&(i(15,Ge=!0),i(16,it=!1),i(17,Je=!1),i(18,Qe=!1),i(19,tt=!1)),t.$$.dirty[3]&1024&&i(36,n=uo(k)),t.$$.dirty[0]&4096|t.$$.dirty[3]&3072&&i(20,ci=Qi(k,_,v)),t.$$.dirty[0]&258|t.$$.dirty[3]&458768)if(s&&Z)i(21,Xt=`max-height: ${Math.round(M.height*.6)}px`);else if(s)i(21,Xt="");else{const te=oe.height-rl-(fi?.clientHeight??0)-le;i(21,Xt=`max-height: ${te}px; overflow: auto;`)}if(t.$$.dirty[0]&260|t.$$.dirty[3]&65552)if(s)i(22,yi="");else{const te=oe.height-rl-(wi?.clientHeight??0)-le;i(22,yi=`max-height: ${te}px; overflow: auto;`)}if(t.$$.dirty[0]&264|t.$$.dirty[3]&65552)if(s)i(23,Jt="");else{const te=oe.height-rl-(At?.clientHeight??0)-le;i(23,Jt=`max-height: ${te}px; overflow: auto;`)}t.$$.dirty[3]&36864&&i(24,Ci=Q&&A&&!S),t.$$.dirty[3]&20480&&i(25,di=G.features.trafficSaving&&!S&&y),t.$$.dirty[0]&1024|t.$$.dirty[3]&4096&&i(26,zt=c.length>0&&!S),t.$$.dirty[3]&12288&&i(27,Ni=!!w&&!S),t.$$.dirty[3]&4096&&i(28,St=!S),t.$$.dirty[0]&512&&i(29,Dt=W(r?"traffic_saving_on":"traffic_saving_off")),t.$$.dirty[3]&3072&&i(30,Si=v?W("auto_quality_option"):k),t.$$.dirty[0]&10240&&i(31,Ri=p.find(te=>te.value===b)?.displayValue),t.$$.dirty[0]&16|t.$$.dirty[3]&512&&No(Pt,$t,h),t.$$.dirty[0]&32|t.$$.dirty[3]&256&&No(mi,It,f),t.$$.dirty[0]&64|t.$$.dirty[3]&128&&No(pi,Pi,a),t.$$.dirty[0]&128|t.$$.dirty[3]&64&&No(Ti,Ft,l)},[x,fi,wi,At,Pt,mi,pi,Ti,s,r,c,p,_,b,ne,Ge,it,Je,Qe,tt,ci,Xt,yi,Jt,Ci,di,zt,Ni,St,Dt,Si,Ri,xt,kt,_t,Ct,n,L,V,G,z,ee,Ee,Re,Ne,ze,ve,we,$,ye,re,We,Le,Ie,ue,Se,he,se,Be,ht,Fe,yt,Yt,de,bt,at,Qt,ut,vt,ri,Ot,ai,Ui,ui,ki,$t,It,Pi,Ft,qi,Ht,Xi,ei,Mt,Bt,hi,Lt,ji,Zi,Ei,gi,gt,Oi,zi,Ai,Ii,Y,le,K,l,a,f,h,k,v,S,w,y,A,oe,M,Z,Li,Di,ti,bi,ii,Ut,Ve,Fi,_i,He,Wi,qt,en,ni,Ji,jt,Vi,tn,xi,Ki,Hi,Nt]}class Q1 extends _e{constructor(e){super(),be(this,e,vd,_d,ge,{ref:0,supportLink:96,playerControlsHeight:97,returnFocus:98},gd,[-1,-1,-1,-1,-1])}}function kd(t){Ze(t,"v-d9t49t",".settings-icon-wrapper.v-d9t49t{position:relative;width:24px}")}function wd(t){let e,i,n;return i=new G1({props:{isMobile:t[3],currentQuality:t[4]}}),{c(){e=E("span"),U(i.$$.fragment),u(e,"class","settings-icon-wrapper v-d9t49t")},m(o,s){T(o,e,s),D(i,e,null),n=!0},p(o,s){const l={};s&8&&(l.isMobile=o[3]),s&16&&(l.currentQuality=o[4]),i.$set(l)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function yd(t){let e,i,n;function o(l){t[9](l)}let s={className:t[1]?"opened":"",testId:"btn-settings",click:t[8],ariaLabel:t[2],ariaExpanded:t[1],$$slots:{default:[wd]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"opened":""),r&4&&(a.ariaLabel=l[2]),r&2&&(a.ariaExpanded=l[1]),r&4120&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Cd(t,e,i){let n,o,s,{ref:l=void 0}=e;const r=pt(),a=r.state.currentQuality$;O(t,a,k=>i(4,s=k));const c=r.ui.settingsMenuVisible;O(t,c,k=>i(1,n=k));const f=r.actions.internal.toggleSettingsMenu,p=r.ui.isMobile;O(t,p,k=>i(3,o=k));let h;function _(k){const v=Cl(k);f(v)}function b(k){l=k,i(0,l)}return t.$$set=k=>{"ref"in k&&i(0,l=k.ref)},t.$$.update=()=>{t.$$.dirty&2&&i(2,h=W(n?"tooltip_settings_on":"tooltip_settings_off"))},[l,n,h,o,s,a,c,p,_,b]}class El extends _e{constructor(e){super(),be(this,e,Cd,yd,ge,{ref:0},kd)}}function Sd(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"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-3Zm1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2Zm5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2Zm-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2Zm10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2Z"),u(i,"fill","#fff"),u(e,"width","22"),u(e,"height","16"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","subtitle-pained-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class Pd extends _e{constructor(e){super(),be(this,e,null,Sd,ge,{})}}function Td(t){let e,i;return e=new Y1({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ed(t){let e,i;return e=new Pd({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ad(t){let e,i,n,o;const s=[Ed,Td],l=[];function r(a,c){return a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e!==f&&(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i||(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function Id(t){let e,i;return e=new vi({props:{testId:"btn-Subtitles",ariaLabel:t[2],click:t[1],ariaKeyShortCut:yo[Ae.KeyC],$$slots:{default:[Ad]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,[o]){const s={};o&4&&(s.ariaLabel=n[2]),o&2&&(s.click=n[1]),o&9&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ld(t,e,i){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,s;return t.$$set=l=>{"isSubtitlesEnabled"in l&&i(0,n=l.isSubtitlesEnabled),"click"in l&&i(1,o=l.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,s=W(n?"tooltip_subtitles_on":"tooltip_subtitles_off"))},[n,o,s]}class Vd extends _e{constructor(e){super(),be(this,e,Ld,Id,ge,{isSubtitlesEnabled:0,click:1})}}function Md(t){Ze(t,"v-19o2urr",".time.v-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.v-19o2urr{padding:0 0 0 8px}.current.v-19o2urr{position:relative}.duration.v-19o2urr{opacity:0.7}.duration.v-19o2urr:before{content:' / ';white-space:pre}")}function xs(t){let e,i;return{c(){e=E("span"),i=De(t[3]),u(e,"class","duration v-19o2urr")},m(n,o){T(n,e,o),m(e,i)},p(n,o){o&8&&$e(i,n[3])},d(n){n&&P(e)}}}function Bd(t){let e,i,n,o,s=t[2]&&xs(t);return{c(){e=E("div"),i=E("span"),n=De(t[4]),o=R(),s&&s.c(),u(i,"class","current v-19o2urr"),u(e,"class","time v-19o2urr"),B(e,"mobile",t[1])},m(l,r){T(l,e,r),m(e,i),m(i,n),m(e,o),s&&s.m(e,null),t[7](e)},p(l,[r]){r&16&&$e(n,l[4]),l[2]?s?s.p(l,r):(s=xs(l),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&2&&B(e,"mobile",l[1])},i:j,o:j,d(l){l&&P(e),s&&s.d(),t[7](null)}}}function Nd(t,e,i){let{isMobile:n=!1}=e,{duration:o}=e,{position:s}=e,{showDuration:l=!0}=e,{ref:r}=e,a,c;function f(p){ke[p?"unshift":"push"](()=>{r=p,i(0,r)})}return t.$$set=p=>{"isMobile"in p&&i(1,n=p.isMobile),"duration"in p&&i(5,o=p.duration),"position"in p&&i(6,s=p.position),"showDuration"in p&&i(2,l=p.showDuration),"ref"in p&&i(0,r=p.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,a=En(o)),t.$$.dirty&64&&i(4,c=En(s))},[r,n,l,a,c,o,s,f]}class X1 extends _e{constructor(e){super(),be(this,e,Nd,Bd,ge,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Md)}}function Rd(t){Ze(t,"v-1n5yyua",".icon.v-1n5yyua.v-1n5yyua{display:block;width:24px;height:24px}.icon.v-1n5yyua .cross.v-1n5yyua{visibility:hidden}.icon[data-value='off'].v-1n5yyua .wave1.v-1n5yyua,.icon[data-value='off'].v-1n5yyua .wave2.v-1n5yyua{visibility:hidden}.icon[data-value='off'].v-1n5yyua .cross.v-1n5yyua{visibility:visible}.icon[data-value='mid'].v-1n5yyua .wave2.v-1n5yyua,.icon[data-value='min'].v-1n5yyua .wave2.v-1n5yyua{visibility:hidden}")}function Od(t){let e,i,n,o,s,l;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("path"),u(n,"class","wave2 v-1n5yyua"),u(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"),u(o,"class","wave1 v-1n5yyua"),u(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"),u(s,"class","cross v-1n5yyua"),u(s,"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"),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"data-value",t[0]),u(e,"data-testid",l="volume-"+t[0]+"-icon"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","icon v-1n5yyua"),u(e,"aria-hidden","true")},m(r,a){T(r,e,a),m(e,i),m(i,n),m(i,o),m(i,s)},p(r,[a]){a&1&&u(e,"data-value",r[0]),a&1&&l!==(l="volume-"+r[0]+"-icon")&&u(e,"data-testid",l)},i:j,o:j,d(r){r&&P(e)}}}function zd(t,e,i){let{volume:n=1}=e,{muted:o=!1}=e;const s=(r,a)=>a?"off":r>.5?"max":r>.2?"mid":r>0?"min":"off";let l;return t.$$set=r=>{"volume"in r&&i(1,n=r.volume),"muted"in r&&i(2,o=r.muted)},t.$$.update=()=>{t.$$.dirty&6&&i(0,l=s(n,o))},[l,n,o]}class Go extends _e{constructor(e){super(),be(this,e,zd,Od,ge,{volume:1,muted:2},Rd)}}function Dd(t){let e,i;const n=t[4].default,o=An(n,t,t[3],null);return{c(){e=E("div"),o&&o.c(),u(e,"class","overlay")},m(s,l){T(s,e,l),o&&o.m(e,null),t[5](e),i=!0},p(s,[l]){o&&o.p&&(!i||l&8)&&Ln(o,n,s,s[3],i?In(n,s[3],l,null):Vn(s[3]),null)},i(s){i||(d(o,s),i=!0)},o(s){g(o,s),i=!1},d(s){s&&P(e),o&&o.d(s),t[5](null)}}}function Fd(t,e,i){let n,{$$slots:o={},$$scope:s}=e;const r=pt().ui.overlayContainer$;O(t,r,h=>i(2,n=h));let a;const c=h=>{!h||!a||!h.contains(a)||h.removeChild(a)},f=h=>{!h||!a||h.contains(a)||h.appendChild(a)};ln(()=>(f(n),()=>c(n)));function p(h){ke[h?"unshift":"push"](()=>{a=h,i(0,a)})}return t.$$set=h=>{"$$scope"in h&&i(3,s=h.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&f(n)},[a,r,n,s,o,p]}class Hd extends _e{constructor(e){super(),be(this,e,Fd,Dd,ge,{})}}function Ud(t){Ze(t,"v-1jbbzcj",'.tooltip-wrapper.v-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.v-1jbbzcj{width:100%}.tooltip.v-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.v-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.v-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function $s(t){let e,i;return e=new Hd({props:{$$slots:{default:[qd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&262387&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function qd(t){let e,i,n,o,s,l,r;return{c(){e=E("div"),i=E("div"),n=De(t[1]),o=R(),s=E("div"),u(i,"class","content v-1jbbzcj"),u(s,"class","tooltip-pointer v-1jbbzcj"),u(s,"style",l=`transform: translate(${t[5]}px, ${t[8]}px);`),u(e,"class","tooltip v-1jbbzcj"),u(e,"style",r=`transform: translate(${t[6]}px, ${t[7]}px);`),B(e,"active",t[0])},m(a,c){T(a,e,c),m(e,i),m(i,n),m(e,o),m(e,s),t[17](e)},p(a,c){c&2&&$e(n,a[1]),c&32&&l!==(l=`transform: translate(${a[5]}px, ${a[8]}px);`)&&u(s,"style",l),c&192&&r!==(r=`transform: translate(${a[6]}px, ${a[7]}px);`)&&u(e,"style",r),c&1&&B(e,"active",a[0])},d(a){a&&P(e),t[17](null)}}}function jd(t){let e,i,n,o,s,l;const r=t[15].default,a=An(r,t,t[18],null);let c=t[1]&&$s(t);return{c(){e=E("div"),a&&a.c(),i=R(),c&&c.c(),n=ct(),u(e,"class","tooltip-wrapper v-1jbbzcj"),B(e,"full-width",t[2])},m(f,p){T(f,e,p),a&&a.m(e,null),t[16](e),T(f,i,p),c&&c.m(f,p),T(f,n,p),o=!0,s||(l=[pe(e,"mouseenter",t[11]),pe(e,"mousemove",t[11]),pe(e,"mouseleave",t[12]),pe(e,"mousedown",t[12]),pe(e,"mouseup",t[11])],s=!0)},p(f,[p]){a&&a.p&&(!o||p&262144)&&Ln(a,r,f,f[18],o?In(r,f[18],p,null):Vn(f[18]),null),(!o||p&4)&&B(e,"full-width",f[2]),f[1]?c?(c.p(f,p),p&2&&d(c,1)):(c=$s(f),c.c(),d(c,1),c.m(n.parentNode,n)):c&&(ce(),g(c,1,1,()=>{c=null}),fe())},i(f){o||(d(a,f),d(c),o=!0)},o(f){g(a,f),g(c),o=!1},d(f){f&&(P(e),P(i),P(n)),a&&a.d(f),t[16](null),c&&c.d(f),s=!1,nt(l)}}}const zo=5;function Zd(t,e,i){let n,o,{$$slots:s={},$$scope:l}=e,{content:r=""}=e,{active:a=!1}=e,{translateX:c=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,h,_,b,k=0,v=zo,S=0,w=0;const y=sn(),A=pt(),oe=A.ui.playerSize;O(t,oe,C=>i(21,o=C));const M=A.ui.overlayContainer$;O(t,M,C=>i(20,n=C));const Z=A.getLogger().createComponentLog("Tooltip component"),ne=()=>{if(!n)return;const C=n.getBoundingClientRect(),G=h.getBoundingClientRect(),z=G.width,ee=_.clientWidth,Ee=o.width,Re=(z-ee)/2,Ne=G.left+c-C.left;let ze=Ne+Re;const ve=G.top+f-C.top;let we=ee/2-zo;const Q=ze<Vo,$=ze+ee>Ee-Vo;Q&&(ze=Vo,we=Ne+G.width/2-2.5*zo),$&&(ze=Ee-Vo-ee,we=G.left-C.left+G.width/2-ze-zo),i(6,S=ze),i(7,w=ve),i(5,k=we)},L=()=>{try{if(!n||!h)return;ne(),i(0,a=!0)}catch(C){Z({message:String(C)})}},V=()=>{i(0,a=!1)},x=()=>{_&&(b||(b=window.setTimeout(L,y.controls.hideTimeoutTooltips)),a&&L())},Y=()=>{V(),window.clearTimeout(b),b=void 0};Zo(()=>window.clearTimeout(b));function le(C){ke[C?"unshift":"push"](()=>{h=C,i(3,h)})}function K(C){ke[C?"unshift":"push"](()=>{_=C,i(4,_)})}return t.$$set=C=>{"content"in C&&i(1,r=C.content),"active"in C&&i(0,a=C.active),"translateX"in C&&i(13,c=C.translateX),"translateY"in C&&i(14,f=C.translateY),"isFullWidthWrapper"in C&&i(2,p=C.isFullWidthWrapper),"$$scope"in C&&i(18,l=C.$$scope)},[a,r,p,h,_,k,S,w,v,oe,M,x,Y,c,f,s,le,K,l]}class J1 extends _e{constructor(e){super(),be(this,e,Zd,jd,ge,{content:1,active:0,translateX:13,translateY:14,isFullWidthWrapper:2},Ud)}}function Wd(t){Ze(t,"v-p9r045",".btn-container.v-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.v-p9r045{width:100%;min-width:0}")}function Kd(t){let e;const i=t[16].default,n=An(i,t,t[21],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),e=!0},p(o,s){n&&n.p&&(!e||s&2097152)&&Ln(n,i,o,o[21],e?In(i,o[21],s,null):Vn(o[21]),null)},i(o){e||(d(n,o),e=!0)},o(o){g(n,o),e=!1},d(o){n&&n.d(o)}}}function Gd(t){let e,i;return e=new J1({props:{content:t[9],translateX:t[7],translateY:t[8],isFullWidthWrapper:t[4],$$slots:{default:[Yd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&512&&(s.content=n[9]),o&128&&(s.translateX=n[7]),o&256&&(s.translateY=n[8]),o&16&&(s.isFullWidthWrapper=n[4]),o&2097152&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Yd(t){let e;const i=t[16].default,n=An(i,t,t[21],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),e=!0},p(o,s){n&&n.p&&(!e||s&2097152)&&Ln(n,i,o,o[21],e?In(i,o[21],s,null):Vn(o[21]),null)},i(o){e||(d(n,o),e=!0)},o(o){g(n,o),e=!1},d(o){n&&n.d(o)}}}function Qd(t){let e,i,n,o,s,l,r,a,c;const f=[Gd,Kd],p=[];function h(_,b){return _[3]&&_[5]&&!_[10]?0:1}return i=h(t),n=p[i]=f[i](t),{c(){e=E("div"),n.c(),u(e,"class",o="btn-container "+t[2]+" v-p9r045"),u(e,"aria-hidden",s=t[6]||null),so(()=>t[20].call(e))},m(_,b){T(_,e,b),p[i].m(e,null),t[19](e),l=_l(e,t[20].bind(e)),r=!0,a||(c=[pe(e,"pointerdown",ot(Gt(t[17]))),pe(e,"click",ot(Gt(t[18])))],a=!0)},p(_,[b]){let k=i;i=h(_),i===k?p[i].p(_,b):(ce(),g(p[k],1,1,()=>{p[k]=null}),fe(),n=p[i],n?n.p(_,b):(n=p[i]=f[i](_),n.c()),d(n,1),n.m(e,null)),(!r||b&4&&o!==(o="btn-container "+_[2]+" v-p9r045"))&&u(e,"class",o),(!r||b&64&&s!==(s=_[6]||null))&&u(e,"aria-hidden",s)},i(_){r||(d(n),r=!0)},o(_){g(n),r=!1},d(_){_&&P(e),p[i].d(),t[19](null),l(),a=!1,nt(c)}}}function Xd(t,e,i){let n,o,{$$slots:s={},$$scope:l}=e,{className:r=""}=e,{disabled:a=!1}=e,{hasTooltip:c=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:_=""}=e,{disabledTooltipContent:b=W("tooltip_button_disabled")}=e,{isAriaHidden:k=!1}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:S=-18}=e;const w=pt(),y=w.ui.isMobile;O(t,y,V=>i(10,o=V));const A=w.state.graphIsOpened$;O(t,A,V=>i(15,n=V));let oe;function M(V){lo.call(this,t,V)}function Z(V){lo.call(this,t,V)}function ne(V){ke[V?"unshift":"push"](()=>{f=V,i(0,f)})}function L(){p=this.clientWidth,i(1,p)}return t.$$set=V=>{"className"in V&&i(2,r=V.className),"disabled"in V&&i(13,a=V.disabled),"hasTooltip"in V&&i(3,c=V.hasTooltip),"ref"in V&&i(0,f=V.ref),"width"in V&&i(1,p=V.width),"isFullWidthTooltip"in V&&i(4,h=V.isFullWidthTooltip),"tooltipContent"in V&&i(5,_=V.tooltipContent),"disabledTooltipContent"in V&&i(14,b=V.disabledTooltipContent),"isAriaHidden"in V&&i(6,k=V.isAriaHidden),"initialTranslateXPx"in V&&i(7,v=V.initialTranslateXPx),"initialTranslateYPx"in V&&i(8,S=V.initialTranslateYPx),"$$scope"in V&&i(21,l=V.$$scope)},t.$$.update=()=>{t.$$.dirty&57376&&(a?i(9,oe=n?W("tooltip_disabled_when_graph_on"):b):i(9,oe=_))},[f,p,r,c,h,_,k,v,S,oe,o,y,A,a,b,n,s,M,Z,ne,L,l]}class Vt extends _e{constructor(e){super(),be(this,e,Xd,Qd,ge,{className:2,disabled:13,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,disabledTooltipContent:14,isAriaHidden:6,initialTranslateXPx:7,initialTranslateYPx:8},Wd)}}function Jd(t){let e,i,n,o,s;return{c(){e=N("svg"),i=N("rect"),o=N("path"),u(i,"width","20"),u(i,"height","20"),u(i,"rx","10"),u(i,"fill","white"),u(i,"fill-opacity",n=t[0]?1:.24),u(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"),u(o,"fill",s=t[0]?"var(--interactive-episode-complete)":"white"),u(e,"width","20"),u(e,"height","20"),u(e,"viewBox","0 0 20 20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(l,r){T(l,e,r),m(e,i),m(e,o)},p(l,[r]){r&1&&n!==(n=l[0]?1:.24)&&u(i,"fill-opacity",n),r&1&&s!==(s=l[0]?"var(--interactive-episode-complete)":"white")&&u(o,"fill",s)},i:j,o:j,d(l){l&&P(e)}}}function xd(t,e,i){let{completed:n}=e;return t.$$set=o=>{"completed"in o&&i(0,n=o.completed)},[n]}class x1 extends _e{constructor(e){super(),be(this,e,xd,Jd,ge,{completed:0})}}function $d(t){Ze(t,"v-bklhpe",".interactive-episode-icon.v-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.v-bklhpe{pointer-events:none;opacity:0.4}")}function e2(t){let e,i,n,o,s;return i=new x1({props:{completed:!!t[0].completed}}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","interactive-episode-icon v-bklhpe"),u(e,"style",n=`left: ${t[0].from+t[0].width/2}%`),so(()=>t[3].call(e)),B(e,"disabled",t[1])},m(l,r){T(l,e,r),D(i,e,null),o=_l(e,t[3].bind(e)),s=!0},p(l,r){const a={};r&1&&(a.completed=!!l[0].completed),i.$set(a),(!s||r&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&u(e,"style",n),(!s||r&2)&&B(e,"disabled",l[1])},i(l){s||(d(i.$$.fragment,l),s=!0)},o(l){g(i.$$.fragment,l),s=!1},d(l){l&&P(e),F(i),o()}}}function t2(t){let e,i;return e=new Vt({props:{tooltipContent:W(t[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:t[1],width:t[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[e2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.tooltipContent=W(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(s.disabled=n[1]),o&4&&(s.width=n[2]||0),o&23&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function i2(t,e,i){let{videoEpisode:n}=e,{disabled:o}=e,s;function l(){s=this.clientWidth,i(2,s)}return t.$$set=r=>{"videoEpisode"in r&&i(0,n=r.videoEpisode),"disabled"in r&&i(1,o=r.disabled)},[n,o,s,l]}class n2 extends _e{constructor(e){super(),be(this,e,i2,t2,ge,{videoEpisode:0,disabled:1},$d)}}function o2(t){Ze(t,"v-1h9p3m2",".video-episodes-wrap.v-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.v-1h9p3m2{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.v-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.v-1h9p3m2,.video-episode-loaded.v-1h9p3m2,.video-episode-filled.v-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.v-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.v-1h9p3m2{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.v-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function er(t,e,i){const n=t.slice();return n[2]=e[i],n}function tr(t){let e,i,n,o,s,l,r,a,c;return{c(){e=E("div"),i=E("div"),n=E("div"),s=R(),l=E("div"),a=R(),u(n,"class","video-episode-loaded v-1h9p3m2"),u(n,"style",o=`transform: translateX(${t[2].loadedWidth/t[2].width*100}%)`),u(l,"class","video-episode-filled v-1h9p3m2"),u(l,"style",r=`transform: translateX(${t[2].filledWidth/t[2].width*100}%)`),B(l,"mobile",t[1]),u(i,"class","video-episode-inner v-1h9p3m2"),u(e,"class","video-episode v-1h9p3m2"),u(e,"style",c=`left: ${t[2].from}%; width: ${t[2].width}%`),B(e,"mobile",t[1])},m(f,p){T(f,e,p),m(e,i),m(i,n),m(i,s),m(i,l),m(e,a)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&u(n,"style",o),p&1&&r!==(r=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(l,"style",r),p&2&&B(l,"mobile",f[1]),p&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),p&2&&B(e,"mobile",f[1])},d(f){f&&P(e)}}}function l2(t){let e,i=Rt(t[0]),n=[];for(let o=0;o<i.length;o+=1)n[o]=tr(er(t,i,o));return{c(){e=E("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","video-episodes-wrap v-1h9p3m2")},m(o,s){T(o,e,s);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[s]){if(s&3){i=Rt(o[0]);let l;for(l=0;l<i.length;l+=1){const r=er(o,i,l);n[l]?n[l].p(r,s):(n[l]=tr(r),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},i:j,o:j,d(o){o&&P(e),pn(n,o)}}}function s2(t,e,i){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return t.$$set=s=>{"videoEpisodes"in s&&i(0,n=s.videoEpisodes),"isMobile"in s&&i(1,o=s.isMobile)},[n,o]}class r2 extends _e{constructor(e){super(),be(this,e,s2,l2,ge,{videoEpisodes:0,isMobile:1},o2)}}function a2(t){Ze(t,"v-1golz1y",".interactive-icons.v-1golz1y.v-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.v-1golz1y.v-1golz1y{top:-10px}.slider.v-1golz1y.v-1golz1y{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.v-1golz1y.v-1golz1y{cursor:default}.slider.v-1golz1y.v-1golz1y: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.v-1golz1y.v-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.v-1golz1y.v-1golz1y,.slider.square.v-1golz1y>.bars.v-1golz1y,.slider.square.v-1golz1y .loaded.v-1golz1y,.slider.square.v-1golz1y .filled.v-1golz1y{border-radius:unset}.filled.active-live.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%}.handle.v-1golz1y.v-1golz1y{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.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.v-1golz1y:hover .handle.v-1golz1y,.slider-dragging.v-1golz1y .handle.v-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-1golz1y .handle.v-1golz1y{transform:scale(1.3)}.slider-vertical.v-1golz1y.v-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.v-1golz1y.v-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function ir(t,e,i){const n=t.slice();return n[48]=e[i],n}function nr(t){let e,i,n=Rt(t[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=lr(ir(t,n,l));const s=l=>g(o[l],1,1,()=>{o[l]=null});return{c(){e=E("div");for(let l=0;l<o.length;l+=1)o[l].c();u(e,"class","interactive-icons v-1golz1y"),B(e,"mobile",t[5]),B(e,"hidden",t[5]&&!t[20])},m(l,r){T(l,e,r);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);i=!0},p(l,r){if(r[0]&2097664){n=Rt(l[21]);let a;for(a=0;a<n.length;a+=1){const c=ir(l,n,a);o[a]?(o[a].p(c,r),d(o[a],1)):(o[a]=lr(c),o[a].c(),d(o[a],1),o[a].m(e,null))}for(ce(),a=n.length;a<o.length;a+=1)s(a);fe()}(!i||r[0]&32)&&B(e,"mobile",l[5]),(!i||r[0]&1048608)&&B(e,"hidden",l[5]&&!l[20])},i(l){if(!i){for(let r=0;r<n.length;r+=1)d(o[r]);i=!0}},o(l){o=o.filter(Boolean);for(let r=0;r<o.length;r+=1)g(o[r]);i=!1},d(l){l&&P(e),pn(o,l)}}}function or(t){let e,i;return e=new n2({props:{videoEpisode:t[48],disabled:t[9]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.videoEpisode=n[48]),o[0]&512&&(s.disabled=n[9]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function lr(t){let e,i,n=t[48].interactive&&or(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),T(o,e,s),i=!0},p(o,s){o[48].interactive?n?(n.p(o,s),s[0]&2097152&&d(n,1)):(n=or(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),g(n,1,1,()=>{n=null}),fe())},i(o){i||(d(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d(o)}}}function u2(t){let e,i,n,o,s,l;return{c(){e=E("div"),i=E("div"),o=R(),s=E("div"),u(i,"class","loaded v-1golz1y"),u(i,"style",n=`transform: translateX(${t[11]*100}%);`),u(s,"class","filled v-1golz1y"),u(s,"style",l=`transform: translateX(${t[12]*100}%);`),B(s,"active-live",t[4]),B(s,"ads",t[6]),u(e,"class","bars v-1golz1y")},m(r,a){T(r,e,a),m(e,i),m(e,o),m(e,s)},p(r,a){a[0]&2048&&n!==(n=`transform: translateX(${r[11]*100}%);`)&&u(i,"style",n),a[0]&4096&&l!==(l=`transform: translateX(${r[12]*100}%);`)&&u(s,"style",l),a[0]&16&&B(s,"active-live",r[4]),a[0]&64&&B(s,"ads",r[6])},i:j,o:j,d(r){r&&P(e)}}}function c2(t){let e,i;return e=new r2({props:{videoEpisodes:t[21],isMobile:t[5]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.videoEpisodes=n[21]),o[0]&32&&(s.isMobile=n[5]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function f2(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b=t[8]&&nr(t);const k=[c2,u2],v=[];function S(w,y){return w[21].length?0:1}return n=S(t),o=v[n]=k[n](t),{c(){b&&b.c(),e=R(),i=E("div"),o.c(),s=R(),l=E("div"),r=E("div"),u(r,"class","handle v-1golz1y"),B(r,"active-live",t[4]),u(l,"class","handleWrap v-1golz1y"),u(l,"style",a=`transform: translateX(${t[13]*100}%);`),B(l,"hidden",t[10]),u(i,"class",c="slider "+t[0]+" v-1golz1y"),u(i,"aria-label",t[14]),u(i,"aria-valuemin",t[15]),u(i,"aria-valuemax",t[16]),u(i,"aria-valuenow",t[17]),u(i,"aria-valuetext",t[18]),u(i,"role","slider"),u(i,"tabindex","0"),u(i,"data-testid",f=t[1]??null),B(i,"disabled",t[9]),B(i,"slider-dragging",t[20]),B(i,"hidden",t[2]),B(i,"slider-vertical",t[3]),B(i,"no-handle",t[10]),B(i,"square",t[7])},m(w,y){b&&b.m(w,y),T(w,e,y),T(w,i,y),v[n].m(i,null),m(i,s),m(i,l),m(l,r),t[42](i),p=!0,h||(_=[pe(i,"pointerdown",Gt(t[22])),pe(i,"pointermove",Gt(t[23])),pe(i,"pointerup",Gt(t[24])),pe(i,"pointerenter",Gt(t[25])),pe(i,"pointerleave",Gt(t[26])),pe(i,"click",ot(ie.noop)),pe(i,"wheel",t[27])],h=!0)},p(w,y){w[8]?b?(b.p(w,y),y[0]&256&&d(b,1)):(b=nr(w),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(ce(),g(b,1,1,()=>{b=null}),fe());let A=n;n=S(w),n===A?v[n].p(w,y):(ce(),g(v[A],1,1,()=>{v[A]=null}),fe(),o=v[n],o?o.p(w,y):(o=v[n]=k[n](w),o.c()),d(o,1),o.m(i,s)),(!p||y[0]&16)&&B(r,"active-live",w[4]),(!p||y[0]&8192&&a!==(a=`transform: translateX(${w[13]*100}%);`))&&u(l,"style",a),(!p||y[0]&1024)&&B(l,"hidden",w[10]),(!p||y[0]&1&&c!==(c="slider "+w[0]+" v-1golz1y"))&&u(i,"class",c),(!p||y[0]&16384)&&u(i,"aria-label",w[14]),(!p||y[0]&32768)&&u(i,"aria-valuemin",w[15]),(!p||y[0]&65536)&&u(i,"aria-valuemax",w[16]),(!p||y[0]&131072)&&u(i,"aria-valuenow",w[17]),(!p||y[0]&262144)&&u(i,"aria-valuetext",w[18]),(!p||y[0]&2&&f!==(f=w[1]??null))&&u(i,"data-testid",f),(!p||y[0]&513)&&B(i,"disabled",w[9]),(!p||y[0]&1048577)&&B(i,"slider-dragging",w[20]),(!p||y[0]&5)&&B(i,"hidden",w[2]),(!p||y[0]&9)&&B(i,"slider-vertical",w[3]),(!p||y[0]&1025)&&B(i,"no-handle",w[10]),(!p||y[0]&129)&&B(i,"square",w[7])},i(w){p||(d(b),d(o),p=!0)},o(w){g(b),g(o),p=!1},d(w){w&&(P(e),P(i)),b&&b.d(w),v[n].d(),t[42](null),h=!1,nt(_)}}}function d2(t,e,i){let n,o,{className:s=""}=e,{testId:l=void 0}=e,{isHidden:r=!1}=e,{isVertical:a=!1}=e,{isActiveLive:c=!1}=e,{isMobile:f=!1}=e,{isAds:p=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:_=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:k=!1}=e,{disabled:v=!1}=e,{hideHandel:S=!1}=e,w,y,{onPointerDown:A=ie.noop}=e,{onHandleMove:oe=ie.noop}=e,{onPointerUp:M=ie.noop}=e,{onPointerEnter:Z=ie.noop}=e,{onPointerMove:ne=ie.noop}=e,{onPointerLeave:L=ie.noop}=e,{onWheelUp:V=ie.noop}=e,{onWheelDown:x=ie.noop}=e,{onWheelLeft:Y=ie.noop}=e,{onWheelRight:le=ie.noop}=e,{loadedProgress:K=0}=e,{filledProgress:C=0}=e,{handleProgress:G=0}=e,{ariaLabel:z=""}=e,{ariaValueMin:ee=void 0}=e,{ariaValueMax:Ee=void 0}=e,{ariaValueNow:Re=void 0}=e,{ariaValueText:Ne=""}=e;const ze=sn();let ve=!1,we;function Q(se){if(ve)return;i(20,ve=!0),y=w.getBoundingClientRect();const Be=Ie(se.clientX,se.clientY);A(Be),w.setPointerCapture(se.pointerId)}function $(se){const Be=Ie(se.clientX,se.clientY),me=ue(se.clientX);ne(Be,me,y.width),ve&&oe(Be)}function ye(se){if(!ve)return;i(20,ve=!1);const Be=Ie(se.clientX,se.clientY);M(Be)}function re(se){y=w.getBoundingClientRect();const Be=Ie(se.clientX,se.clientY),me=ue(se.clientX);Z(Be,me,y.width)}function We(){L()}function Le(se){b&&(se.preventDefault(),se.deltaY<0?V():se.deltaY>0?x():se.deltaX>0?le():Y())}function Ie(se,Be){return a?Math.max(0,Math.min(1,(y.height-(Be-y.top))/y.height)):Math.min(Math.max(se-y.x,0),y.width)/y.width}function ue(se){return Math.min(Math.max(se-y.x,0),y.width)}function Se(se,Be){const me=ze.features.episodesClustering&&!k?ze.episodeMinWidthPc:0,Ce=[];let Pe=0,Ge=0,it=0;for(let tt=1;tt<_.length;tt++)Ge=_[tt].time/we*100,Ge-Pe>me&&(Ce.push({from:Pe,width:Math.max(0,Ge-Pe),loadedWidth:Math.max(0,Math.min(Ge,se)-Pe),filledWidth:Math.max(0,Math.min(Ge,Be)-Pe),interactive:_[tt-1].interactive,completed:_[tt-1].completed}),Pe=_[tt].time/we*100,it++);const Je={from:Pe,width:Math.max(0,100-Pe),loadedWidth:Math.max(0,Math.min(se,100)-Pe),filledWidth:Math.max(0,Math.min(Be,100)-Pe),interactive:_[it].interactive,completed:_[it].completed};100-Pe<me?(it-=1,Ce[it].width+=100-Pe,Ce[it].loadedWidth+=Math.max(0,Math.min(se,100)-Pe),Ce[it].filledWidth+=Math.max(0,Math.min(Be,100)-Pe)):Ce[it]=Je;const Qe=_[0].time;if(Qe!==0){const tt=Qe/we*100;Ce.unshift({from:0,width:tt,loadedWidth:Math.min(tt,se),filledWidth:Math.min(tt,Be)})}return Ce}function he(se){ke[se?"unshift":"push"](()=>{w=se,i(19,w)})}return t.$$set=se=>{"className"in se&&i(0,s=se.className),"testId"in se&&i(1,l=se.testId),"isHidden"in se&&i(2,r=se.isHidden),"isVertical"in se&&i(3,a=se.isVertical),"isActiveLive"in se&&i(4,c=se.isActiveLive),"isMobile"in se&&i(5,f=se.isMobile),"isAds"in se&&i(6,p=se.isAds),"squareBorders"in se&&i(7,h=se.squareBorders),"videoEpisodes"in se&&i(28,_=se.videoEpisodes),"withWheelHandler"in se&&i(29,b=se.withWheelHandler),"isInteractive"in se&&i(8,k=se.isInteractive),"disabled"in se&&i(9,v=se.disabled),"hideHandel"in se&&i(10,S=se.hideHandel),"onPointerDown"in se&&i(30,A=se.onPointerDown),"onHandleMove"in se&&i(31,oe=se.onHandleMove),"onPointerUp"in se&&i(32,M=se.onPointerUp),"onPointerEnter"in se&&i(33,Z=se.onPointerEnter),"onPointerMove"in se&&i(34,ne=se.onPointerMove),"onPointerLeave"in se&&i(35,L=se.onPointerLeave),"onWheelUp"in se&&i(36,V=se.onWheelUp),"onWheelDown"in se&&i(37,x=se.onWheelDown),"onWheelLeft"in se&&i(38,Y=se.onWheelLeft),"onWheelRight"in se&&i(39,le=se.onWheelRight),"loadedProgress"in se&&i(11,K=se.loadedProgress),"filledProgress"in se&&i(12,C=se.filledProgress),"handleProgress"in se&&i(13,G=se.handleProgress),"ariaLabel"in se&&i(14,z=se.ariaLabel),"ariaValueMin"in se&&i(15,ee=se.ariaValueMin),"ariaValueMax"in se&&i(16,Ee=se.ariaValueMax),"ariaValueNow"in se&&i(17,Re=se.ariaValueNow),"ariaValueText"in se&&i(18,Ne=se.ariaValueText)},t.$$.update=()=>{t.$$.dirty[0]&65536&&i(40,we=Ee??0),t.$$.dirty[0]&268435456|t.$$.dirty[1]&512&&i(41,n=_[_.length-1]?.time<we),t.$$.dirty[0]&268441600|t.$$.dirty[1]&1536&&i(21,o=_.length&&n&&we?Se(K*100,C*100):[])},[s,l,r,a,c,f,p,h,k,v,S,K,C,G,z,ee,Ee,Re,Ne,w,ve,o,Q,$,ye,re,We,Le,_,b,A,oe,M,Z,ne,L,V,x,Y,le,we,n,he]}class Al extends _e{constructor(e){super(),be(this,e,d2,f2,ge,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},a2,[-1,-1])}}const dn=(t,e)=>ao[t]>=ao[e],m2=(t,e)=>ao[t]<ao[e],$1=(t,e)=>ao[t]<=ao[e],p2=t=>t>io.L?exports.GridTypes.XL:t>io.M?exports.GridTypes.L:t>io.S?exports.GridTypes.M:t>io.XS?exports.GridTypes.S:exports.GridTypes.XS;function h2(t){Ze(t,"v-1l78lz9",".volumeBar-container.v-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.v-1l78lz9,.vertical.v-1l78lz9 .tooltip-wrapper,.vertical.v-1l78lz9 .btn{width:40px}.volumeBar.v-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-1l78lz9{padding:0 8px 0 0;width:0}")}function g2(t){let e,i;return e=new Go({props:{volume:t[4],muted:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&16&&(s.volume=n[4]),o[0]&4&&(s.muted=n[2]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function b2(t){let e,i;return e=new vi({props:{className:"btn-full-opacity",disabled:!t[0],testId:t[3]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:t[7],click:t[1],ariaKeyShortCut:yo[Ae.KeyM],$$slots:{default:[g2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&1&&(s.disabled=!n[0]),o[0]&8&&(s.testId=n[3]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(s.ariaLabel=n[7]),o[0]&2&&(s.click=n[1]),o[0]&20|o[1]&1&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function sr(t){let e,i,n;return i=new Al({props:{className:t[3]?"volumeBar-slider-vertical":"",isHidden:t[3]&&!t[5],isVertical:t[3],withWheelHandler:!0,onWheelUp:t[13],onWheelDown:t[14],onPointerDown:t[12],onHandleMove:t[15],onPointerUp:t[16],onPointerEnter:t[3]?t[17]:ie.noop,onPointerLeave:t[3]?t[18]:ie.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(t[8]*100),ariaValueText:`${Math.round(t[8]*100)}%`,filledProgress:t[8],handleProgress:t[8],testId:t[3]?"volume-slider-vertical":"volume-slider"}}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","volumeBar v-1l78lz9"),B(e,"volumeBar-vertical",t[3])},m(o,s){T(o,e,s),D(i,e,null),n=!0},p(o,s){const l={};s[0]&8&&(l.className=o[3]?"volumeBar-slider-vertical":""),s[0]&40&&(l.isHidden=o[3]&&!o[5]),s[0]&8&&(l.isVertical=o[3]),s[0]&8&&(l.onPointerEnter=o[3]?o[17]:ie.noop),s[0]&8&&(l.onPointerLeave=o[3]?o[18]:ie.noop),s[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),s[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),s[0]&256&&(l.filledProgress=o[8]),s[0]&256&&(l.handleProgress=o[8]),s[0]&8&&(l.testId=o[3]?"volume-slider-vertical":"volume-slider"),i.$set(l),(!n||s[0]&8)&&B(e,"volumeBar-vertical",o[3])},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function _2(t){let e,i,n,o,s,l;i=new J1({props:{content:t[6],translateY:-18,$$slots:{default:[b2]},$$scope:{ctx:t}}});let r=t[0]&&sr(t);return{c(){e=E("div"),U(i.$$.fragment),n=R(),r&&r.c(),u(e,"class","volumeBar-container v-1l78lz9"),B(e,"vertical",t[3])},m(a,c){T(a,e,c),D(i,e,null),m(e,n),r&&r.m(e,null),o=!0,s||(l=[pe(e,"mouseenter",function(){mn(t[3]?t[19]:ie.noop)&&(t[3]?t[19]:ie.noop).apply(this,arguments)}),pe(e,"mouseleave",function(){mn(t[3]?t[20]:ie.noop)&&(t[3]?t[20]:ie.noop).apply(this,arguments)}),pe(e,"wheel",Gt(t[21]))],s=!0)},p(a,c){t=a;const f={};c[0]&64&&(f.content=t[6]),c[0]&159|c[1]&1&&(f.$$scope={dirty:c,ctx:t}),i.$set(f),t[0]?r?(r.p(t,c),c[0]&1&&d(r,1)):(r=sr(t),r.c(),d(r,1),r.m(e,null)):r&&(ce(),g(r,1,1,()=>{r=null}),fe()),(!o||c[0]&8)&&B(e,"vertical",t[3])},i(a){o||(d(i.$$.fragment,a),d(r),o=!0)},o(a){g(i.$$.fragment,a),g(r),o=!1},d(a){a&&P(e),F(i),r&&r.d(),s=!1,nt(l)}}}function v2(t,e,i){let n,o,s,{isAudioAvailable:l=!0}=e,{click:r}=e;const a=pt(),c=sn(),f=a.state.volume$;O(t,f,ee=>i(4,n=ee));const p=a.state.muted$;O(t,p,ee=>i(23,s=ee));const h=a.actions.internal.setVolume,_=a.ui.currentGridType$;O(t,_,ee=>i(22,o=ee));let b=!1,k,v,S,w,y,A,oe=1,M=!1;function Z(ee){oe=n,h(ee)}function ne(){q1(a,n,c.controls.volumeStepWheel)}function L(){j1(a,n,c.controls.volumeStepWheel)}function V(ee){h(ee)}function x(ee){const Ee=ee;h(Ee,Ee===0?oe:Ee)}function Y(){M=!0}function le(){M=!1,G()}function K(){clearTimeout(k),i(5,b=!0)}function C(){G()}function G(){k=window.setTimeout(()=>{M||i(5,b=!1)},c.controls.volumeBarTimeout)}function z(ee){ee.deltaY<0?ne():ee.deltaY>0&&L()}return t.$$set=ee=>{"isAudioAvailable"in ee&&i(0,l=ee.isAudioAvailable),"click"in ee&&i(1,r=ee.click)},t.$$.update=()=>{t.$$.dirty[0]&8388609&&i(2,w=!l||s),t.$$.dirty[0]&4194304&&i(3,y=$1(o,exports.GridTypes.S)),t.$$.dirty[0]&12&&(y?i(6,v=""):i(6,v=W(w?"tooltip_volume":"tooltip_volume_muted")),i(7,S=W(w?"tooltip_volume":"tooltip_volume_muted"))),t.$$.dirty[0]&20&&i(8,A=w?0:n)},[l,r,w,y,n,b,v,S,A,f,p,_,Z,ne,L,V,x,Y,le,K,C,z,o,s]}class k2 extends _e{constructor(e){super(),be(this,e,v2,_2,ge,{isAudioAvailable:0,click:1},h2,[-1,-1])}}function w2(t){let e;return{c(){e=N("path"),u(e,"class","_enter"),u(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function y2(t){let e;return{c(){e=N("path"),u(e,"class","_exit"),u(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function C2(t){let e,i,n;function o(r,a){return r[0]?y2:w2}let s=o(t),l=s(t);return{c(){e=N("svg"),i=N("g"),l.c(),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"width","24"),u(e,"height","24"),u(e,"viewBox","0 0 24 24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[0]?"close-fullscreen-icon":"open-fullscreen-icon")},m(r,a){T(r,e,a),m(e,i),l.m(i,null)},p(r,[a]){s!==(s=o(r))&&(l.d(1),l=s(r),l&&(l.c(),l.m(i,null))),a&1&&n!==(n=r[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:j,o:j,d(r){r&&P(e),l.d()}}}function S2(t,e,i){let{isFullscreen:n=!1}=e;return t.$$set=o=>{"isFullscreen"in o&&i(0,n=o.isFullscreen)},[n]}class P2 extends _e{constructor(e){super(),be(this,e,S2,C2,ge,{isFullscreen:0})}}function T2(t){let e,i;return e=new P2({props:{isFullscreen:t[0]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&1&&(s.isFullscreen=n[0]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function E2(t){let e,i;return e=new vi({props:{testId:"btn-fullscreen",ariaLabel:t[2],click:t[1],ariaKeyShortCut:yo[Ae.KeyF],$$slots:{default:[T2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,[o]){const s={};o&4&&(s.ariaLabel=n[2]),o&2&&(s.click=n[1]),o&9&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function A2(t,e,i){let{isFullscreen:n=!1}=e,{click:o=ie.noop}=e,s;return t.$$set=l=>{"isFullscreen"in l&&i(0,n=l.isFullscreen),"click"in l&&i(1,o=l.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,s=W(n?"tooltip_fullscreen_on":"tooltip_fullscreen_off"))},[n,o,s]}class eu extends _e{constructor(e){super(),be(this,e,A2,E2,ge,{isFullscreen:0,click:1})}}function I2(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","play-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class Il extends _e{constructor(e){super(),be(this,e,null,I2,ge,{})}}function L2(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","pause-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class tu extends _e{constructor(e){super(),be(this,e,null,L2,ge,{})}}function V2(t){Ze(t,"v-1ot3duq",".mobile.v-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.v-1ot3duq svg{transform:scale(2)}.icon-background-mobile.v-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 rr(t){let e;return{c(){e=E("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function M2(t){let e,i,n,o,s=t[1]&&rr();var l=t[8];function r(a){return{}}return l&&(n=kn(l,r())),{c(){s&&s.c(),e=R(),i=E("div"),n&&U(n.$$.fragment),u(i,"class","v-1ot3duq"),B(i,"mobile",t[1])},m(a,c){s&&s.m(a,c),T(a,e,c),T(a,i,c),n&&D(n,i,null),o=!0},p(a,c){if(a[1]?s||(s=rr(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),c&256&&l!==(l=a[8])){if(n){ce();const f=n;g(f.$$.fragment,1,0,()=>{F(f,1)}),fe()}l?(n=kn(l,r()),U(n.$$.fragment),d(n.$$.fragment,1),D(n,i,null)):n=null}(!o||c&2)&&B(i,"mobile",a[1])},i(a){o||(n&&d(n.$$.fragment,a),o=!0)},o(a){n&&g(n.$$.fragment,a),o=!1},d(a){a&&(P(e),P(i)),s&&s.d(a),n&&F(n)}}}function B2(t){let e,i,n;function o(l){t[13](l)}let s={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-play",click:t[5]?t[6]:t[4],disabled:t[2],ariaLabel:t[7],ariaKeyShortCut:yo[Ae.KeyK],$$slots:{default:[M2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&10&&(a.className=(l[1]?"btn-m--play":"")+" "+l[3]),r&112&&(a.click=l[5]?l[6]:l[4]),r&4&&(a.disabled=l[2]),r&128&&(a.ariaLabel=l[7]),r&33026&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function N2(t,e,i){let n,o;const{fakeIsPlaying$:s}=Ko();O(t,s,w=>i(12,o=w));let{ref:l=void 0}=e,{isMobile:r=!1}=e,{isPlaying:a=!1}=e,{disabled:c=!1}=e,{className:f=""}=e,{click:p=ie.noop}=e;const{toggle:h}=s;let _,b,k,v;function S(w){l=w,i(0,l)}return t.$$set=w=>{"ref"in w&&i(0,l=w.ref),"isMobile"in w&&i(1,r=w.isMobile),"isPlaying"in w&&i(10,a=w.isPlaying),"disabled"in w&&i(2,c=w.disabled),"className"in w&&i(3,f=w.className),"click"in w&&i(4,p=w.click)},t.$$.update=()=>{t.$$.dirty&4096&&i(5,b=o!==null),t.$$.dirty&5152&&i(11,k=b?o:a),t.$$.dirty&2048&&i(7,v=W(k?"tooltip_pause":"tooltip_play")),t.$$.dirty&2048&&i(8,n=k?tu:Il)},i(6,_=h),[l,r,c,f,p,b,_,v,n,s,a,k,o,S]}class Ll extends _e{constructor(e){super(),be(this,e,N2,B2,ge,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},V2)}}function R2(t){Ze(t,"v-mb3pjo",".prev.v-mb3pjo{transform:scaleX(-1)}.mobile.v-mb3pjo{transform:scale(1.3333)}.mobile.prev.v-mb3pjo{transform:scaleX(-1) scale(1.3333)}")}function O2(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),u(i,"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"),u(i,"fill","#fff"),u(e,"data-testid",n=t[0]?"prev-icon":"next-icon"),u(e,"width","26"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"class","v-mb3pjo"),B(e,"prev",t[0]),B(e,"mobile",t[1])},m(o,s){T(o,e,s),m(e,i)},p(o,[s]){s&1&&n!==(n=o[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),s&1&&B(e,"prev",o[0]),s&2&&B(e,"mobile",o[1])},i:j,o:j,d(o){o&&P(e)}}}function z2(t,e,i){let{isPrev:n=!1}=e,{isMobile:o=!1}=e;return t.$$set=s=>{"isPrev"in s&&i(0,n=s.isPrev),"isMobile"in s&&i(1,o=s.isMobile)},[n,o]}class D2 extends _e{constructor(e){super(),be(this,e,z2,O2,ge,{isPrev:0,isMobile:1},R2)}}function F2(t){let e,i;return e=new D2({props:{isMobile:t[1],isPrev:t[3]==="prev"}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isMobile=n[1]),o&8&&(s.isPrev=n[3]==="prev"),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function H2(t){let e,i,n;function o(l){t[6](l)}let s={testId:"btn-"+t[3],disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[F2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&8&&(a.testId="btn-"+l[3]),r&4&&(a.disabled=l[2]),r&32&&(a.ariaLabel=l[5]),r&16&&(a.click=l[4]),r&138&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function U2(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{type:l}=e,{click:r}=e,a;function c(f){n=f,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"isMobile"in f&&i(1,o=f.isMobile),"disabled"in f&&i(2,s=f.disabled),"type"in f&&i(3,l=f.type),"click"in f&&i(4,r=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,a=W(l==="prev"?"tooltip_previous":"tooltip_next"))},[n,o,s,l,r,a,c]}class Yo extends _e{constructor(e){super(),be(this,e,U2,H2,ge,{ref:0,isMobile:1,disabled:2,type:3,click:4})}}function q2(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.265zM6 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.197H6z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","vk-logo-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class j2 extends _e{constructor(e){super(),be(this,e,null,q2,ge,{})}}function Z2(t){Ze(t,"v-1bbobod",".mobile.v-1bbobod{transform:scale(1.1) translateY(-1px)}")}function ar(t){let e,i,n,o,s,l,r;return{c(){e=N("path"),i=N("path"),n=N("path"),o=N("path"),s=N("path"),l=N("path"),r=N("path"),u(e,"d","M30.7286 15.0483H33.2239L36.8885 5H35.0776L32.1402 13.2809H31.8551L29.0175 5H27.1781L30.7286 15.0483Z"),u(e,"fill","white"),u(i,"d","M46.2591 15.0483L41.6392 9.84599L45.9026 5H43.7923L40.2276 9.09059H39.814V5H38.103V15.0483H39.814V10.7439H40.2418L44.0062 15.0483H46.2591Z"),u(i,"fill","white"),u(n,"d","M56.0753 9.88875C56.9594 9.54668 57.5155 8.76277 57.5155 7.73656C57.5155 6.14023 56.1894 5 54.2502 5H50.329V15.0483H54.5354C56.4888 15.0483 57.8149 13.9081 57.8149 12.2405C57.8149 11.0717 57.159 10.2023 56.0753 9.88875ZM52.04 6.49656H54.2502C55.1628 6.49656 55.7902 7.05242 55.7902 7.87909C55.7902 8.69151 55.1628 9.24737 54.2502 9.24737H52.04V6.49656ZM54.5354 13.5518H52.04V10.7439H54.5354C55.4337 10.7439 56.0611 11.314 56.0611 12.1407C56.0611 12.9816 55.4337 13.5518 54.5354 13.5518Z"),u(n,"fill","white"),u(o,"d","M59.3767 15.0483H61.701L64.4672 9.54668H64.6954V15.0483H66.2638V7.63679H63.9396L61.1734 13.1384H60.9452V7.63679H59.3767V15.0483Z"),u(o,"fill","white"),u(s,"d","M67.3373 17.2575H68.9771V15.0483H74.3099V17.2575H75.9497V13.5518H74.6664V7.63679H69.2337L68.863 11.4281C68.7347 12.7678 68.3354 13.5518 67.5227 13.5518H67.3373V17.2575ZM69.8326 13.5518C70.2319 13.1669 70.403 12.5113 70.517 11.3996L70.7452 9.13335H73.0266V13.5518H69.8326Z"),u(s,"fill","white"),u(l,"d","M84.222 11.257C84.222 9.11909 82.625 7.49426 80.372 7.49426C78.1191 7.49426 76.5221 9.10484 76.5221 11.3425C76.5221 13.5803 78.1191 15.1908 80.372 15.1908C81.912 15.1908 83.3664 14.4639 83.9225 13.0529L82.3826 12.7963C82.0261 13.3237 81.3416 13.6943 80.4718 13.6943C79.217 13.6943 78.39 12.9246 78.2332 11.7844H84.1934C84.2077 11.6276 84.222 11.4566 84.222 11.257ZM80.372 8.91955C81.3987 8.91955 82.1687 9.57519 82.4396 10.5016H78.333C78.6039 9.54668 79.3739 8.91955 80.372 8.91955Z"),u(l,"fill","white"),u(r,"d","M89.0359 15.1908C91.3602 15.1908 92.9999 13.5945 92.9999 11.3425C92.9999 9.09059 91.3602 7.49426 89.0359 7.49426C86.7117 7.49426 85.0719 9.09059 85.0719 11.3425C85.0719 13.5945 86.7117 15.1908 89.0359 15.1908ZM89.0359 13.6943C87.6956 13.6943 86.783 12.7393 86.783 11.3425C86.783 9.94576 87.6956 8.99082 89.0359 8.99082C90.3763 8.99082 91.2889 9.94576 91.2889 11.3425C91.2889 12.7393 90.3763 13.6943 89.0359 13.6943Z"),u(r,"fill","white")},m(a,c){T(a,e,c),T(a,i,c),T(a,n,c),T(a,o,c),T(a,s,c),T(a,l,c),T(a,r,c)},d(a){a&&(P(e),P(i),P(n),P(o),P(s),P(l),P(r))}}}function W2(t){let e,i,n,o=!t[0]&&ar();return{c(){e=N("svg"),i=N("path"),o&&o.c(),u(i,"d","M19.0283 1.47947C17.5482 1.47862e-05 15.3189 -2.59106e-06 10.8969 -1.8179e-06L10.1111 -1.68051e-06C5.68913 -9.0734e-07 3.47814 1.72463e-05 1.97977 1.47947C0.499685 2.95892 0.499757 5.18723 0.499758 9.60732L0.499758 10.3927C0.499758 14.8128 0.499687 17.0228 1.97978 18.5205C3.45987 20 5.68914 20 10.1111 20L10.8969 20C15.3189 20 17.5299 20 19.0283 18.5205C20.5084 17.0411 20.5084 14.8128 20.5084 10.3927L20.5084 9.60732C20.5084 5.16896 20.5084 2.95892 19.0283 1.47947ZM8.06464 14.8128C6.69419 15.3242 5.21408 14.4658 4.93999 13.0046C4.73899 12.0183 4.64761 10.9954 4.64761 9.93605C4.64761 8.91322 4.73899 7.90867 4.93999 6.94064C5.21408 5.47945 6.69419 4.62102 8.06464 5.13244C9.91018 5.80823 11.5913 6.84928 13.0166 8.18261C14.0581 9.15064 14.0581 10.8128 13.0166 11.7808C11.573 13.0959 9.89191 14.137 8.06464 14.8128ZM19.9602 10.3744C19.9602 14.6484 19.9601 16.7854 18.6262 18.1005C17.5116 19.2146 15.8305 19.3972 12.7973 19.4155C13.9302 19.2328 14.7342 18.9041 15.3554 18.2648C16.6893 16.9132 16.6893 14.7397 16.6893 10.3744L16.6893 9.57075C16.6893 5.20546 16.6893 3.032 15.3554 1.6804C14.7342 1.04113 13.9302 0.712308 12.7973 0.52966C15.8305 0.566189 17.5116 0.748873 18.6079 1.84476C19.9418 3.1781 19.9419 5.31505 19.9419 9.57075L19.9419 10.3744L19.9602 10.3744ZM11.6826 9.68036C11.8653 9.84474 11.8653 10.137 11.6826 10.3013C10.4401 11.4338 8.99653 12.3105 7.40681 12.895C7.16926 12.9863 6.91344 12.8402 6.85863 12.5845C6.69417 11.7443 6.60283 10.8676 6.60283 9.97262C6.60282 9.09591 6.69417 8.23744 6.85862 7.39726C6.91344 7.14155 7.16926 6.9954 7.40681 7.08672C8.97826 7.67119 10.4401 8.54794 11.6826 9.68036Z"),u(i,"fill","white"),u(e,"width",t[2]),u(e,"height","20"),u(e,"viewBox",n="0 0 "+(t[2]+1)+" 20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",t[3]),u(e,"class","v-1bbobod"),B(e,"mobile",t[1])},m(s,l){T(s,e,l),m(e,i),o&&o.m(e,null)},p(s,[l]){s[0]?o&&(o.d(1),o=null):o||(o=ar(),o.c(),o.m(e,null)),l&4&&u(e,"width",s[2]),l&4&&n!==(n="0 0 "+(s[2]+1)+" 20")&&u(e,"viewBox",n),l&8&&u(e,"data-testid",s[3]),l&2&&B(e,"mobile",s[1])},i:j,o:j,d(s){s&&P(e),o&&o.d()}}}function K2(t,e,i){let{short:n=!1}=e,{isMobile:o=!1}=e,s,l;return t.$$set=r=>{"short"in r&&i(0,n=r.short),"isMobile"in r&&i(1,o=r.isMobile)},t.$$.update=()=>{t.$$.dirty&1&&(i(2,s=n?20:93),i(3,l=n?"vk-video-logo-icon--short":"vk-video-logo-icon"))},[n,o,s,l]}class G2 extends _e{constructor(e){super(),be(this,e,K2,W2,ge,{short:0,isMobile:1},Z2)}}function Y2(t){let e,i;return e=new j2({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p:j,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Q2(t){let e,i;return e=new G2({props:{short:t[4],isMobile:!!t[7]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.short=n[4]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function X2(t){let e,i,n,o;const s=[Q2,Y2],l=[];function r(a,c){return a[2]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function J2(t){let e,i,n;function o(l){t[13](l)}let s={className:"btn-full-opacity",disabled:!t[1],click:t[8],testId:t[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:t[3],$$slots:{default:[X2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.disabled=!l[1]),r&4&&(a.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),r&8&&(a.ariaLabel=l[3]),r&524308&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function x2(t,e,i){let n,o,s,{ref:l=void 0}=e,{logoClickable:r=!1}=e,{videoLogoUrl:a=void 0}=e,{click:c}=e;const f=sn(),{logoLink:p,addTimeToLogoLink:h}=f,_=pt(),b=_.state.positionWithScrubbing$;O(t,b,M=>i(14,n=M));const k=_.ui.currentGridType$;O(t,k,M=>i(11,o=M));const v=_.ui.isMobile;O(t,v,M=>i(12,s=M));let S,w,y;const A=()=>{let M;if(w||!a)M=p;else{const Z=Math.round(n);if(h&&Z){const ne=new URL(a);ne.searchParams.append("t",ie.timeCodeToString(Z)),M=ne.toString()}else M=a}c(),window.open(M,"_blank")};function oe(M){l=M,i(0,l)}return t.$$set=M=>{"ref"in M&&i(0,l=M.ref),"logoClickable"in M&&i(1,r=M.logoClickable),"videoLogoUrl"in M&&i(9,a=M.videoLogoUrl),"click"in M&&i(10,c=M.click)},t.$$.update=()=>{t.$$.dirty&6148&&i(4,y=(s||$1(o,exports.GridTypes.L))&&w)},i(3,S=f.logoType===ro.VK_VIDEO?W("tooltip_vk_video_logo"):W("tooltip_vk_logo")),i(2,w=f.logoType===ro.VK_VIDEO),[l,r,w,S,y,b,k,v,A,a,c,o,s,oe]}class iu extends _e{constructor(e){super(),be(this,e,x2,J2,ge,{ref:0,logoClickable:1,videoLogoUrl:9,click:10})}}function $2(t){Ze(t,"v-8z1bf5",".connecting.v-8z1bf5 .wave.v-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.v-8z1bf5 .wave1.v-8z1bf5{animation-name:v-8z1bf5-wave1}.connecting.v-8z1bf5 .wave2.v-8z1bf5{animation-name:v-8z1bf5-wave2}.connecting.v-8z1bf5 .wave3.v-8z1bf5{animation-name:v-8z1bf5-wave3}@keyframes v-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function em(t){let e,i,n,o,s,l,r,a;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("path"),l=N("path"),r=N("path"),a=N("path"),u(n,"class","wave wave1 v-8z1bf5"),u(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),u(n,"fill","#fff"),u(o,"class","wave wave2 v-8z1bf5"),u(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),u(o,"fill","#fff"),u(s,"class","wave wave3 v-8z1bf5"),u(s,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(s,"fill","#fff"),u(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),u(l,"fill","#fff"),u(r,"d","M0 0h24v24H0z"),u(a,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),u(a,"fill","#fff"),B(a,"hidden",!t[1]),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"width","24"),u(e,"height","24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chromecast-icon"),u(e,"class","v-8z1bf5"),B(e,"connecting",t[2])},m(c,f){T(c,e,f),m(e,i),m(i,n),m(i,o),m(i,s),m(i,l),m(i,r),m(i,a)},p(c,f){f&2&&B(a,"hidden",!c[1]),f&4&&B(e,"connecting",c[2])},d(c){c&&P(e)}}}function tm(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe;return{c(){e=N("svg"),i=N("g"),n=N("mask"),o=N("path"),l=N("path"),r=N("path"),c=N("path"),f=N("defs"),p=N("clipPath"),h=N("path"),b=N("filter"),k=N("feFlood"),v=N("feColorMatrix"),S=N("feOffset"),w=N("feGaussianBlur"),y=N("feColorMatrix"),A=N("feBlend"),oe=N("feBlend"),u(o,"fill",s=t[1]?"#2688EB":"#fff"),u(o,"d","M1.1 3.1h22v18h-22z"),u(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(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"),u(n,"id","c"),u(n,"maskUnits","userSpaceOnUse"),u(n,"x","1.1"),u(n,"y","3.1"),u(n,"width","22"),u(n,"height","18"),u(n,"fill","#000"),u(r,"fill-rule","evenodd"),u(r,"clip-rule","evenodd"),u(r,"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"),u(r,"fill",a=t[1]?"#2688EB":"#fff"),u(c,"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"),u(c,"fill","#000"),u(c,"fill-opacity",".12"),u(c,"mask","url(#c)"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(h,"fill",_=t[1]?"#2688EB":"#fff"),u(h,"d","M0 0h24v24H0z"),u(p,"id","a"),u(k,"flood-opacity","0"),u(k,"result","BackgroundImageFix"),u(v,"in","SourceAlpha"),u(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(v,"result","hardAlpha"),u(w,"stdDeviation","2.5"),u(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(A,"in2","BackgroundImageFix"),u(A,"result","effect1_dropShadow_4085_178456"),u(oe,"in","SourceGraphic"),u(oe,"in2","effect1_dropShadow_4085_178456"),u(oe,"result","shape"),u(b,"id","b"),u(b,"x","-3.4"),u(b,"y","-1.4"),u(b,"width","30.8"),u(b,"height","26.802"),u(b,"filterUnits","userSpaceOnUse"),u(b,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chromecast-mobile-icon")},m(M,Z){T(M,e,Z),m(e,i),m(i,n),m(n,o),m(n,l),m(i,r),m(i,c),m(e,f),m(f,p),m(p,h),m(f,b),m(b,k),m(b,v),m(b,S),m(b,w),m(b,y),m(b,A),m(b,oe)},p(M,Z){Z&2&&s!==(s=M[1]?"#2688EB":"#fff")&&u(o,"fill",s),Z&2&&a!==(a=M[1]?"#2688EB":"#fff")&&u(r,"fill",a),Z&2&&_!==(_=M[1]?"#2688EB":"#fff")&&u(h,"fill",_)},d(M){M&&P(e)}}}function im(t){let e;function i(s,l){return s[0]?tm:em}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),T(s,e,l)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:j,o:j,d(s){s&&P(e),o.d(s)}}}function nm(t,e,i){let{isMobile:n=!1}=e,{state:o}=e,s,l;return t.$$set=r=>{"isMobile"in r&&i(0,n=r.isMobile),"state"in r&&i(3,o=r.state)},t.$$.update=()=>{t.$$.dirty&8&&(i(2,l=o===xe.ChromecastState.CONNECTING),i(1,s=o===xe.ChromecastState.CONNECTED))},[n,s,l,o]}class om extends _e{constructor(e){super(),be(this,e,nm,im,ge,{isMobile:0,state:3},$2)}}function lm(t){let e,i;return e=new om({props:{isMobile:t[1],state:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isMobile=n[1]),o&4&&(s.state=n[2]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function sm(t){let e,i,n;function o(l){t[5](l)}let s={ariaLabel:t[4],click:t[3],testId:"btn-chromecast",$$slots:{default:[lm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&16&&(a.ariaLabel=l[4]),r&8&&(a.click=l[3]),r&70&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function rm(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:s}=e,{click:l=ie.noop}=e,r;function a(c){n=c,i(0,n)}return t.$$set=c=>{"ref"in c&&i(0,n=c.ref),"isMobile"in c&&i(1,o=c.isMobile),"state"in c&&i(2,s=c.state),"click"in c&&i(3,l=c.click)},t.$$.update=()=>{t.$$.dirty&4&&i(4,r=s===xe.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off"))},[n,o,s,l,r,a]}class nu extends _e{constructor(e){super(),be(this,e,rm,sm,ge,{ref:0,isMobile:1,state:2,click:3})}}function am(t){let e,i;return e=new B1({props:{isActive:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isActive=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function um(t){let e,i;return e=new vi({props:{className:t[0]?"":"btn--live btn-full-opacity",testId:t[1]?"btn-live":"btn-live-offset",disabled:t[1]&&t[3]===xe.PlaybackState.PLAYING,ariaLabel:t[2],click:t[4],$$slots:{default:[am]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(s.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(s.disabled=n[1]&&n[3]===xe.PlaybackState.PLAYING),o&4&&(s.ariaLabel=n[2]),o&16&&(s.click=n[4]),o&514&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function cm(t,e,i){let n,{isMobile:o=!1}=e,{isActiveLive:s=!1}=e,{ariaLabel:l=""}=e;const r=pt(),a=r.state.playbackState$;O(t,a,h=>i(3,n=h));const c=r.actions.internal.switchToActiveLive,f=r.actions.internal.togglePlay;let p;return t.$$set=h=>{"isMobile"in h&&i(0,o=h.isMobile),"isActiveLive"in h&&i(1,s=h.isActiveLive),"ariaLabel"in h&&i(2,l=h.ariaLabel)},t.$$.update=()=>{t.$$.dirty&10&&i(4,p=()=>{if(!s){c();return}n===xe.PlaybackState.PAUSED&&f()})},[o,s,l,n,p,a]}class ou extends _e{constructor(e){super(),be(this,e,cm,um,ge,{isMobile:0,isActiveLive:1,ariaLabel:2})}}function fm(t){Ze(t,"v-5ygsa2",'.tooltip-wrapper.v-5ygsa2{position:relative;display:block}.tooltip.v-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.v-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.v-5ygsa2{opacity:1;visibility:visible}')}function dm(t){let e,i,n,o;const s=t[9].default,l=An(s,t,t[8],null);return{c(){e=E("div"),i=E("div"),l&&l.c(),u(i,"class","tooltip v-5ygsa2"),B(i,"active",t[0]),B(i,"pointer",t[1]),u(e,"class","tooltip-wrapper v-5ygsa2"),u(e,"style",n=`transform: translate(${t[5]}px, ${t[2]}px);`)},m(r,a){T(r,e,a),m(e,i),l&&l.m(i,null),t[10](i),t[11](e),o=!0},p(r,[a]){l&&l.p&&(!o||a&256)&&Ln(l,s,r,r[8],o?In(s,r[8],a,null):Vn(r[8]),null),(!o||a&1)&&B(i,"active",r[0]),(!o||a&2)&&B(i,"pointer",r[1]),(!o||a&36&&n!==(n=`transform: translate(${r[5]}px, ${r[2]}px);`))&&u(e,"style",n)},i(r){o||(d(l,r),o=!0)},o(r){g(l,r),o=!1},d(r){r&&P(e),l&&l.d(r),t[10](null),t[11](null)}}}function mm(t,e,i){let n,{$$slots:o={},$$scope:s}=e,{active:l=!1}=e,{pointer:r=!1}=e,{translateXPx:a=0}=e,{translateYPx:c=0}=e,{containerWidth:f}=e,p,h;function _(v){if(!h)return 0;const{width:S}=h.getBoundingClientRect(),w=S/2;return v<w?w:v>f-w?f-w:v}function b(v){ke[v?"unshift":"push"](()=>{h=v,i(4,h)})}function k(v){ke[v?"unshift":"push"](()=>{p=v,i(3,p)})}return t.$$set=v=>{"active"in v&&i(0,l=v.active),"pointer"in v&&i(1,r=v.pointer),"translateXPx"in v&&i(6,a=v.translateXPx),"translateYPx"in v&&i(2,c=v.translateYPx),"containerWidth"in v&&i(7,f=v.containerWidth),"$$scope"in v&&i(8,s=v.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&i(5,n=_(a))},[l,r,c,p,h,n,a,f,s,o,b,k]}class pm extends _e{constructor(e){super(),be(this,e,mm,dm,ge,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},fm)}}const lu=(t,e,i)=>i.filter(n=>n.time<t*e).pop();function hm(t){Ze(t,"v-l51fc1",".timeline-preview.v-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.v-l51fc1{bottom:72px}.preview.v-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.v-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.v-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 ur(t){let e;function i(s,l){return s[2]&&s[10].completed===!1?bm:gm}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),T(s,e,l)},p(s,l){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&P(e),o.d(s)}}}function gm(t){let e=(t[10].text||"")+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&$e(i,e)},d(n){n&&P(i)}}}function bm(t){let e=W("tooltip_episode_unfinished")+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p:j,d(n){n&&P(i)}}}function _m(t){let e,i,n,o,s,l,r,a,c=t[10]&&ur(t);return{c(){e=E("div"),i=E("div"),o=R(),s=E("div"),c&&c.c(),l=R(),r=E("div"),a=De(t[0]),u(i,"class","preview v-l51fc1"),u(i,"style",n=`width: ${t[3]}px; height: ${t[4]}px; background-image: url(${t[5]}); background-size: ${t[6]}px ${t[7]}px; background-position: ${t[8]}px ${t[9]}px; transform: translateY(${t[11]%180?-35:0}px) rotate(${t[11]}deg);`),u(s,"class","episode v-l51fc1"),u(r,"class","time v-l51fc1"),u(e,"class","timeline-preview v-l51fc1"),B(e,"mobile",t[1])},m(f,p){T(f,e,p),m(e,i),m(e,o),m(e,s),c&&c.m(s,null),m(e,l),m(e,r),m(r,a)},p(f,[p]){p&3064&&n!==(n=`width: ${f[3]}px; height: ${f[4]}px; background-image: url(${f[5]}); background-size: ${f[6]}px ${f[7]}px; background-position: ${f[8]}px ${f[9]}px; transform: translateY(${f[11]%180?-35:0}px) rotate(${f[11]}deg);`)&&u(i,"style",n),f[10]?c?c.p(f,p):(c=ur(f),c.c(),c.m(s,null)):c&&(c.d(1),c=null),p&1&&$e(a,f[0]),p&2&&B(e,"mobile",f[1])},i:j,o:j,d(f){f&&P(e),c&&c.d()}}}const eo=150;function vm(t,e,i){let n,{time:o=""}=e,{isMobile:s=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:r}=e,{progress:a=0}=e,{duration:c=0}=e,{isInteractive:f=!1}=e;const h=pt().ui.rotateAlpha;O(t,h,Z=>i(11,n=Z));let _,b,k,v,S,w,y,A;function oe(){let Z=r.frameWidth,ne=r.frameHeight;return Z>eo?(ne=ne/Z*eo,Z=eo):ne>eo&&(Z=Z/ne*eo,ne=eo),{width:Z,height:ne}}function M(Z){let ne;r.isUV?ne=Math.floor(c*Z/r.frequency):ne=Math.min(r.countTotal,Math.max(0,Math.floor(r.countTotal*Z)));const L=Math.floor(ne/r.countPerImage),V=Math.floor(ne%r.countPerImage/r.countPerRow),x=ne%r.countPerRow;let Y=Math.floor(r.countPerImage/r.countPerRow);!r.isUV&&L===Math.floor(r.countTotal/r.countPerImage)&&(Y=Math.floor(r.countTotal%r.countPerImage/r.countPerRow),r.countTotal%r.countPerImage%r.countPerRow>0&&Y++);let le=r.countPerRow;!r.isUV&&L===Math.floor(r.countTotal/r.countPerImage)&&r.countTotal%r.countPerImage>0&&(le=Math.min(r.countPerRow,r.countTotal%r.countPerImage));const K=_*le,C=b*Y,G=-x*_,z=-V*b;return{imgSrc:r.links[L],imgWidth:K,imgHeight:C,imgOffsetX:G,imgOffsetY:z}}return t.$$set=Z=>{"time"in Z&&i(0,o=Z.time),"isMobile"in Z&&i(1,s=Z.isMobile),"videoEpisodes"in Z&&i(13,l=Z.videoEpisodes),"previewThumbsData"in Z&&i(14,r=Z.previewThumbsData),"progress"in Z&&i(15,a=Z.progress),"duration"in Z&&i(16,c=Z.duration),"isInteractive"in Z&&i(2,f=Z.isInteractive)},t.$$.update=()=>{t.$$.dirty&32768&&i(5,{imgSrc:k,imgWidth:v,imgHeight:S,imgOffsetX:w,imgOffsetY:y}=M(a),k,(i(6,v),i(15,a)),(i(7,S),i(15,a)),(i(8,w),i(15,a)),(i(9,y),i(15,a))),t.$$.dirty&106496&&i(10,A=lu(a,c,l))},i(3,{width:_,height:b}=oe(),_,i(4,b)),[o,s,f,_,b,k,v,S,w,y,A,n,h,l,r,a,c]}class km extends _e{constructor(e){super(),be(this,e,vm,_m,ge,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},hm)}}function wm(t){Ze(t,"v-5lzly8",".time.v-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function ym(t){let e,i;return{c(){e=E("span"),i=De(t[7]),u(e,"class","time v-5lzly8")},m(n,o){T(n,e,o),m(e,i)},p(n,o){o[0]&128&&$e(i,n[7])},i:j,o:j,d(n){n&&P(e)}}}function Cm(t){let e,i;return e=new km({props:{time:t[7],isMobile:t[10],videoEpisodes:t[3],previewThumbsData:t[21],progress:t[8],duration:t[1],isInteractive:t[23]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&128&&(s.time=n[7]),o[0]&1024&&(s.isMobile=n[10]),o[0]&8&&(s.videoEpisodes=n[3]),o[0]&256&&(s.progress=n[8]),o[0]&2&&(s.duration=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Sm(t){let e,i,n,o;const s=[Cm,ym],l=[];function r(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function Pm(t){let e,i,n,o;const s=[t[9]];let l={$$slots:{default:[Sm]},$$scope:{ctx:t}};for(let r=0;r<s.length;r+=1)l=t1(l,s[r]);return e=new pm({props:l}),n=new Al({props:{isActiveLive:t[11],isMobile:t[10],ariaLabel:W("aria_timeline"),ariaValueMin:0,ariaValueMax:t[1],ariaValueNow:Math.round(t[6]*100),ariaValueText:W("aria_timeline_value",{position:t[5],duration:t[4]}),loadedProgress:t[12],filledProgress:t[6],handleProgress:t[6],videoEpisodes:t[3],onPointerDown:t[27],onHandleMove:t[28],onPointerMove:t[31],onPointerUp:t[29],onPointerEnter:t[30],onPointerLeave:t[32],isInteractive:t[23],disabled:t[13].has(rt.TIMELINE),hideHandel:t[2]}}),{c(){U(e.$$.fragment),i=R(),U(n.$$.fragment)},m(r,a){D(e,r,a),T(r,i,a),D(n,r,a),o=!0},p(r,a){const c=a[0]&512?yc(s,[Cc(r[9])]):{};a[0]&1419|a[1]&65536&&(c.$$scope={dirty:a,ctx:r}),e.$set(c);const f={};a[0]&2048&&(f.isActiveLive=r[11]),a[0]&1024&&(f.isMobile=r[10]),a[0]&2&&(f.ariaValueMax=r[1]),a[0]&64&&(f.ariaValueNow=Math.round(r[6]*100)),a[0]&48&&(f.ariaValueText=W("aria_timeline_value",{position:r[5],duration:r[4]})),a[0]&4096&&(f.loadedProgress=r[12]),a[0]&64&&(f.filledProgress=r[6]),a[0]&64&&(f.handleProgress=r[6]),a[0]&8&&(f.videoEpisodes=r[3]),a[0]&8192&&(f.disabled=r[13].has(rt.TIMELINE)),a[0]&4&&(f.hideHandel=r[2]),n.$set(f)},i(r){o||(d(e.$$.fragment,r),d(n.$$.fragment,r),o=!0)},o(r){g(e.$$.fragment,r),g(n.$$.fragment,r),o=!1},d(r){r&&P(i),F(e,r),F(n,r)}}}function Tm(t,e,i){let n,o,s,l,r,a,c,f,p,h,_,{showTimeline:b=!1}=e;const k=pt(),v=sn(),S=k.state.bufferedProgress$;O(t,S,he=>i(12,h=he));const w=k.state.positionWithScrubbing$;O(t,w,he=>i(39,a=he));const y=k.state.duration$;O(t,y,he=>i(1,s=he));const A=k.state.isLive$;O(t,A,he=>i(0,o=he));const oe=k.state.isActiveLive$;O(t,oe,he=>i(11,p=he));const M=k.ui.isMobile;O(t,M,he=>i(10,f=he));const Z=v.features.episodes?k.actions.internal.getVideoEpisodes():void 0,ne=k.actions.internal.getPreviewThumbsData(),L=k.state.interactiveEpisodes$;O(t,L,he=>i(40,c=he));const V=k.state.isInteractive,x=k.state.isInteractiveTime$;O(t,x,he=>i(2,l=he));const Y=k.state.isInteractiveExpectation$;O(t,Y,he=>i(38,r=he));const le=k.actions.internal.correctSeekTimeToInteractive,K=k.ui.controls.disabledControls$;O(t,K,he=>i(13,_=he));let C,G,z,ee,Ee=!1,Re="",Ne=0,ze=0,ve=0,we;function Q(he){return!le||!V?he:le(he*s)/s}function $(he){k.actions.internal.startScrubbing(Q(he))}function ye(he){l||k.actions.internal.progressScrubbing(Q(he))}function re(he){k.actions.internal.completeScrubbing(Q(he)),i(34,Ee=!1)}function We(he,se,Be){ue(he,se,Be),i(34,Ee=!0)}function Le(he,se,Be){ue(he,se,Be),i(34,Ee=!0)}function Ie(){i(34,Ee=!1)}function ue(he,se,Be){i(8,ve=he),i(35,Ne=se),Be&&i(36,ze=Be),i(7,Re=Se(he))}function Se(he){const se=En((o?1-he:he)*s);return o?`-${se}`:se}return t.$$set=he=>{"showTimeline"in he&&i(33,b=he.showTimeline)},t.$$.update=()=>{t.$$.dirty[1]&512&&i(3,C=V?c:Z),t.$$.dirty[0]&2&&i(4,G=En(s)),t.$$.dirty[1]&256&&i(5,z=En(a)),t.$$.dirty[0]&2|t.$$.dirty[1]&256&&i(6,ee=a/s),t.$$.dirty[0]&4|t.$$.dirty[1]&128&&i(37,we=r||l),t.$$.dirty[0]&1|t.$$.dirty[1]&124&&i(9,n={containerWidth:ze,translateXPx:Ne,translateYPx:V&&ne?-36:-16,active:Ee&&b&&!we,pointer:!v.features.timelinePreview||!ne||o})},[o,s,l,C,G,z,ee,Re,ve,n,f,p,h,_,v,S,w,y,A,oe,M,ne,L,V,x,Y,K,$,ye,re,We,Le,Ie,b,Ee,Ne,ze,we,r,a,c]}let Em=class extends _e{constructor(e){super(),be(this,e,Tm,Pm,ge,{showTimeline:33},wm,[-1,-1])}};function Am(t){let e,i;return e=new Al({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:W("aria_timeline_value",{position:t[2],duration:t[1]}),filledProgress:t[3],isAds:!0,hideHandel:!0,squareBorders:t[4]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.ariaValueMax=n[0]),o&8&&(s.ariaValueNow=Math.round(n[3]*100)),o&6&&(s.ariaValueText=W("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(s.filledProgress=n[3]),o&16&&(s.squareBorders=n[4]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Im(t,e,i){let n,{position:o=0}=e,{duration:s=0}=e;const r=pt().ui.isMobile;O(t,r,p=>i(4,n=p));let a,c,f;return t.$$set=p=>{"position"in p&&i(6,o=p.position),"duration"in p&&i(0,s=p.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,a=En(s)),t.$$.dirty&64&&i(2,c=En(o)),t.$$.dirty&65&&i(3,f=o/s)},[s,a,c,f,n,r,o]}class su extends _e{constructor(e){super(),be(this,e,Im,Am,ge,{position:6,duration:0})}}function Lm(t){Ze(t,"v-1gqonyf",".timeline.v-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.v-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.v-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.v-1gqonyf{height:8px}")}function Vm(t){let e;return{c(){e=E("div"),u(e,"class","timeline-stub v-1gqonyf"),B(e,"mobile",t[2])},m(i,n){T(i,e,n)},p(i,n){n&4&&B(e,"mobile",i[2])},i:j,o:j,d(i){i&&P(e)}}}function Mm(t){let e,i,n,o;const s=[Nm,Bm],l=[];function r(a,c){return a[0]?0:1}return i=r(t),n=l[i]=s[i](t),{c(){e=E("div"),n.c(),u(e,"class","timeline v-1gqonyf"),B(e,"mobile",t[2])},m(a,c){T(a,e,c),l[i].m(e,null),o=!0},p(a,c){let f=i;i=r(a),i===f?l[i].p(a,c):(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),n=l[i],n?n.p(a,c):(n=l[i]=s[i](a),n.c()),d(n,1),n.m(e,null)),(!o||c&4)&&B(e,"mobile",a[2])},i(a){o||(d(n),o=!0)},o(a){g(n),o=!1},d(a){a&&P(e),l[i].d()}}}function Bm(t){let e,i;return e=new Em({props:{showTimeline:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.showTimeline=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Nm(t){let e,i;return e=new su({props:{position:t[3],duration:t[4]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&8&&(s.position=n[3]),o&16&&(s.duration=n[4]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Rm(t){let e,i,n,o;const s=[Mm,Vm],l=[];function r(a,c){return a[1]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function Om(t,e,i){let n,o,s,l,{isAds:r=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e;const p=pt(),h=p.state.isLive$;O(t,h,S=>i(12,n=S));const _=p.ads.duration;O(t,_,S=>i(4,l=S));const b=p.ads.position;O(t,b,S=>i(3,s=S));const k=p.ui.isMobile;O(t,k,S=>i(2,o=S));let v;return t.$$set=S=>{"isAds"in S&&i(0,r=S.isAds),"canRewindLive"in S&&i(9,a=S.canRewindLive),"isRewindableLive"in S&&i(10,c=S.isRewindableLive),"isHidden"in S&&i(11,f=S.isHidden)},t.$$.update=()=>{t.$$.dirty&7681&&i(1,v=!f&&(!n||n&&a&&c||r))},[r,v,o,s,l,h,_,b,k,a,c,f,n]}class ru extends _e{constructor(e){super(),be(this,e,Om,Rm,ge,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},Lm)}}function zm(t){let e,i,n,o;return{c(){e=N("svg"),i=N("path"),n=N("path"),o=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.398 4.398 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.398 4.398 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.397 4.397 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.398 4.398 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11Zm-1.446-2.3c.052-.483.035-.769-.022-.993a2.599 2.599 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.998-.164.895-.277 1.518-.33 2.01-.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.598 2.598 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998.164-.895.278-1.518.33-2.01Z"),u(i,"fill","#fff"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.598 2.598 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.599 2.599 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-.093a350.712 350.712 0 0 0-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.398 4.398 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.397 4.397 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045Z"),u(n,"fill","#fff"),u(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.405.405 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68l-2.95-2.71Z"),u(o,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),Tt(e,"flex-shrink","0"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","episodes-icon")},m(s,l){T(s,e,l),m(e,i),m(e,n),m(e,o)},p:j,i:j,o:j,d(s){s&&P(e)}}}class Dm extends _e{constructor(e){super(),be(this,e,null,zm,ge,{})}}function Fm(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"opacity",".7"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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-.708Z"),u(i,"fill","#fff"),u(e,"width","12"),u(e,"height","13"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chevron-light-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class Hm extends _e{constructor(e){super(),be(this,e,null,Fm,ge,{})}}function Um(t){Ze(t,"v-1yhs2ga",".text.v-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.v-1yhs2ga{overflow:visible}.text.mobile.v-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.v-1yhs2ga{margin-bottom:-4px}")}function qm(t){let e,i,n,o;e=new Dm({});function s(a,c){if(a[4]===Zn.FULL)return Wm;if(a[4]===Zn.COUNT)return Zm}let l=s(t),r=l&&l(t);return{c(){U(e.$$.fragment),i=R(),r&&r.c(),n=ct()},m(a,c){D(e,a,c),T(a,i,c),r&&r.m(a,c),T(a,n,c),o=!0},p(a,c){l===(l=s(a))&&r?r.p(a,c):(r&&r.d(1),r=l&&l(a),r&&(r.c(),r.m(n.parentNode,n)))},i(a){o||(d(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){a&&(P(i),P(n)),F(e,a),r&&r.d(a)}}}function jm(t){let e,i,n,o,s,l;return s=new Hm({}),{c(){e=E("span"),i=De(t[2]),n=R(),o=E("div"),U(s.$$.fragment),u(e,"class","text mobile v-1yhs2ga"),u(o,"class","chevron-episodes v-1yhs2ga")},m(r,a){T(r,e,a),m(e,i),T(r,n,a),T(r,o,a),D(s,o,null),l=!0},p(r,a){(!l||a&4)&&$e(i,r[2])},i(r){l||(d(s.$$.fragment,r),l=!0)},o(r){g(s.$$.fragment,r),l=!1},d(r){r&&(P(e),P(n),P(o)),F(s)}}}function Zm(t){let e,i=t[0].length+"",n;return{c(){e=E("span"),n=De(i),u(e,"class","text count v-1yhs2ga")},m(o,s){T(o,e,s),m(e,n)},p(o,s){s&1&&i!==(i=o[0].length+"")&&$e(n,i)},d(o){o&&P(e)}}}function Wm(t){let e,i;return{c(){e=E("span"),i=De(t[2]),u(e,"class","text v-1yhs2ga")},m(n,o){T(n,e,o),m(e,i)},p(n,o){o&4&&$e(i,n[2])},d(n){n&&P(e)}}}function Km(t){let e,i,n,o;const s=[jm,qm],l=[];function r(a,c){return a[6]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function Gm(t){let e,i,n;function o(l){t[19](l)}let s={className:"w-max btn-full-opacity "+(t[6]?"px-0":""),testId:"btn-episodes",click:t[12],disabled:!t[7],ariaExpanded:t[3],ariaLabel:t[5],$$slots:{default:[Km]},$$scope:{ctx:t}};return t[1]!==void 0&&(s.ref=t[1]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&64&&(a.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),r&8&&(a.ariaExpanded=l[3]),r&32&&(a.ariaLabel=l[5]),r&8388693&&(a.$$scope={dirty:r,ctx:l}),!i&&r&2&&(i=!0,a.ref=l[1],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ym(t,e,i){let n,o,s,l,r,a,{position:c=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e;const h=pt(),_=h.callbacks?.onEpisodeChanged??ie.noop,b=!!h.callbacks?.onEpisodeClicked,k=h.ui.currentGridType$;O(t,k,V=>i(18,r=V));const v=h.ui.episodes.openedByKeyboard$;O(t,v,V=>i(17,l=V));const S=h.ui.episodes.panelOpened$;O(t,S,V=>i(3,s=V));const w=h.ui.isMobile;O(t,w,V=>i(6,a=V));let y;const A=V=>{if(!!h.callbacks?.onEpisodeClicked){const Y=Cl(V);v.set(Y),S.set(!0),h.callbacks?.onEpisodeClicked?.(Y)}};let oe,M,Z;const ne=async(V,x,Y)=>{await wo(),V?.getAttribute("aria-expanded")==="false"&&x&&!Y&&(v.set(!1),V.focus())};function L(V){y=V,i(1,y)}return t.$$set=V=>{"position"in V&&i(13,c=V.position),"duration"in V&&i(14,f=V.duration),"timeCodes"in V&&i(0,p=V.timeCodes)},t.$$.update=()=>{if(t.$$.dirty&24576&&i(16,n=c/f),t.$$.dirty&114689){const V=lu(n,f,p);V&&oe?.text!==V.text&&(_(V),i(15,oe=V))}t.$$.dirty&32768&&i(2,o=oe?.text||""),t.$$.dirty&262144&&(dn(r,exports.GridTypes.XL)?i(4,M=Zn.FULL):dn(r,exports.GridTypes.M)&&m2(r,exports.GridTypes.XL)?i(4,M=Zn.COUNT):i(4,M=Zn.SHORT)),t.$$.dirty&4&&i(5,Z=`${W("tooltip_episodes")}: ${o}`),t.$$.dirty&131082&&ne(y,l,s)},[p,y,o,s,M,Z,a,b,k,v,S,w,A,c,f,oe,n,l,r,L]}class au extends _e{constructor(e){super(),be(this,e,Ym,Gm,ge,{position:13,duration:14,timeCodes:0},Um)}}function Qm(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),n=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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-.238Z"),u(i,"fill","#fff"),u(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-.774L7.76 11.17Z"),u(n,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","seek-to-interactive-icon")},m(o,s){T(o,e,s),m(e,i),m(e,n)},p:j,i:j,o:j,d(o){o&&P(e)}}}class Xm extends _e{constructor(e){super(),be(this,e,null,Qm,ge,{})}}function Jm(t){let e,i;return e=new Xm({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function xm(t){let e,i,n;function o(l){t[4](l)}let s={className:t[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:W("tooltip_interactive_seek"),disabled:t[2],click:t[3],$$slots:{default:[Jm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"hidden":""),r&4&&(a.disabled=l[2]),r&8&&(a.click=l[3]),r&32&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function $m(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{click:l}=e;function r(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"hidden"in a&&i(1,o=a.hidden),"disabled"in a&&i(2,s=a.disabled),"click"in a&&i(3,l=a.click)},[n,o,s,l,r]}class uu extends _e{constructor(e){super(),be(this,e,$m,xm,ge,{ref:0,hidden:1,disabled:2,click:3})}}function e4(t){let e,i,n;return{c(){e=N("svg"),i=N("path"),n=N("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.107 2.107 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.148 2.148 0 0 1-.817-.21 2.107 2.107 0 0 1-.923-.919 2.125 2.125 0 0 1-.21-.813 8.287 8.287 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.803.803 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.003c.001-.23.004-.443.02-.627.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.108 2.108 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.148 2.148 0 0 1-.817-.21 2.108 2.108 0 0 1-.923-.918 2.125 2.125 0 0 1-.21-.814 8.288 8.288 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.61 2.61 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.61 2.61 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003c.001-.23.004-.443.02-.627.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 3Zm-.833 1.837a.76.76 0 0 1 .146-.02c.156-.013.366-.014.72-.014h1.354c.353 0 .563 0 .719.013a.76.76 0 0 1 .146.021.301.301 0 0 1 .126.126.75.75 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a.75.75 0 0 1-.02.146.301.301 0 0 1-.127.125.76.76 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a.76.76 0 0 1-.146-.022.301.301 0 0 1-.126-.125.75.75 0 0 1-.021-.146 9.929 9.929 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a.75.75 0 0 1 .021-.145.301.301 0 0 1 .126-.126Zm0 11.018a.765.765 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a.765.765 0 0 1 .146.022.3.3 0 0 1 .126.125.75.75 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a.75.75 0 0 1-.02.145.3.3 0 0 1-.127.126.755.755 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a.746.746 0 0 1-.146-.021.3.3 0 0 1-.126-.126.75.75 0 0 1-.021-.145 9.93 9.93 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a.75.75 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),u(i,"fill","#fff"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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.062 1.062 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"),u(n,"fill","#fff"),B(n,"hidden",!t[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){T(o,e,s),m(e,i),m(e,n)},p(o,[s]){s&1&&B(n,"hidden",!o[0])},i:j,o:j,d(o){o&&P(e)}}}function t4(t,e,i){let{isOpened:n=!1}=e;return t.$$set=o=>{"isOpened"in o&&i(0,n=o.isOpened)},[n]}class i4 extends _e{constructor(e){super(),be(this,e,t4,e4,ge,{isOpened:0})}}function n4(t){let e,i;return e=new i4({props:{isOpened:t[3]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&8&&(s.isOpened=n[3]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function o4(t){let e,i,n;function o(l){t[6](l)}let s={className:t[1]?"hidden":"",testId:"btn-graph",disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[n4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"hidden":""),r&4&&(a.disabled=l[2]),r&32&&(a.ariaLabel=l[5]),r&16&&(a.click=l[4]),r&136&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function l4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{graphIsOpened:l=!1}=e,{click:r}=e,a;function c(f){n=f,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"hidden"in f&&i(1,o=f.hidden),"disabled"in f&&i(2,s=f.disabled),"graphIsOpened"in f&&i(3,l=f.graphIsOpened),"click"in f&&i(4,r=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,a=W(l?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off"))},[n,o,s,l,r,a,c]}class cu extends _e{constructor(e){super(),be(this,e,l4,o4,ge,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}}function s4(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 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-6v3.096z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","replay-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class fu extends _e{constructor(e){super(),be(this,e,null,s4,ge,{})}}function r4(t){Ze(t,"v-1ot3duq",".mobile.v-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.v-1ot3duq svg{transform:scale(2)}.icon-background-mobile.v-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 cr(t){let e;return{c(){e=E("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function a4(t){let e,i,n,o,s=t[1]&&cr();return n=new fu({}),{c(){s&&s.c(),e=R(),i=E("div"),U(n.$$.fragment),u(i,"class","v-1ot3duq"),B(i,"mobile",t[1])},m(l,r){s&&s.m(l,r),T(l,e,r),T(l,i,r),D(n,i,null),o=!0},p(l,r){l[1]?s||(s=cr(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),(!o||r&2)&&B(i,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){g(n.$$.fragment,l),o=!1},d(l){l&&(P(e),P(i)),s&&s.d(l),F(n)}}}function u4(t){let e,i,n;function o(l){t[5](l)}let s={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-replay",ariaLabel:W("tooltip_restart"),disabled:t[2],click:t[4],ariaKeyShortCut:yo[Ae.KeyK],$$slots:{default:[a4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&10&&(a.className=(l[1]?"btn-m--play":"")+" "+l[3]),r&4&&(a.disabled=l[2]),r&16&&(a.click=l[4]),r&66&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function c4(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{className:l=""}=e,{click:r=ie.noop}=e;function a(c){n=c,i(0,n)}return t.$$set=c=>{"ref"in c&&i(0,n=c.ref),"isMobile"in c&&i(1,o=c.isMobile),"disabled"in c&&i(2,s=c.disabled),"className"in c&&i(3,l=c.className),"click"in c&&i(4,r=c.click)},[n,o,s,l,r,a]}class Vl extends _e{constructor(e){super(),be(this,e,c4,u4,ge,{ref:0,isMobile:1,disabled:2,className:3,click:4},r4)}}function f4(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"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.853l-5.478-3.349Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"data-testid","play-prev-chapter-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class d4 extends _e{constructor(e){super(),be(this,e,null,f4,ge,{})}}function m4(t){let e,i;return e=new d4({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function p4(t){let e,i;return e=new vi({props:{className:t[0]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:W("tooltip_interactive_go_back"),disabled:t[1],click:t[2],$$slots:{default:[m4]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.className=n[0]?"hidden":""),o&2&&(s.disabled=n[1]),o&4&&(s.click=n[2]),o&8&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function h4(t,e,i){let{hidden:n=!1}=e,{disabled:o=!1}=e,{click:s}=e;return t.$$set=l=>{"hidden"in l&&i(0,n=l.hidden),"disabled"in l&&i(1,o=l.disabled),"click"in l&&i(2,s=l.click)},[n,o,s]}class du extends _e{constructor(e){super(),be(this,e,h4,p4,ge,{hidden:0,disabled:1,click:2})}}function g4(t){Ze(t,"v-1x1zctw",".icon.v-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.v-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.v-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function b4(t){let e,i,n,o;return{c(){e=E("img"),u(e,"class","icon v-1x1zctw"),Gl(e.src,i=t[0])||u(e,"src",i),u(e,"aria-hidden","true")},m(s,l){T(s,e,l),n||(o=pe(e,"error",t[7]),n=!0)},p(s,l){l&1&&!Gl(e.src,i=s[0])&&u(e,"src",i)},d(s){s&&P(e),n=!1,o()}}}function _4(t){let e;return{c(){e=E("div"),e.innerHTML='<div class="inner v-1x1zctw"></div>',u(e,"class","icon error-stub v-1x1zctw")},m(i,n){T(i,e,n)},p:j,d(i){i&&P(e)}}}function v4(t){let e;function i(s,l){return s[5]?_4:b4}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),T(s,e,l)},p(s,l){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&P(e),o.d(s)}}}function k4(t){let e,i;return e=new vi({props:{className:t[4]?"btn-full-opacity":"",ariaLabel:t[1],click:t[3],disabled:t[6],testId:t[2],$$slots:{default:[v4]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,[o]){const s={};o&16&&(s.className=n[4]?"btn-full-opacity":""),o&2&&(s.ariaLabel=n[1]),o&8&&(s.click=n[3]),o&64&&(s.disabled=n[6]),o&4&&(s.testId=n[2]),o&545&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function w4(t,e,i){let n,o,s,{iconUrl:l}=e,{ariaLabel:r}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=ie.noop}=e;const p=()=>{i(5,s=!0)};return t.$$set=h=>{"iconUrl"in h&&i(0,l=h.iconUrl),"ariaLabel"in h&&i(1,r=h.ariaLabel),"disabled"in h&&i(8,a=h.disabled),"testId"in h&&i(2,c=h.testId),"onClick"in h&&i(3,f=h.onClick)},t.$$.update=()=>{t.$$.dirty&8&&i(4,n=f===ie.noop),t.$$.dirty&272&&i(6,o=n||a)},i(5,s=!1),[l,r,c,f,n,s,o,p,a]}class mu extends _e{constructor(e){super(),be(this,e,w4,k4,ge,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},g4)}}class fr{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,i,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:i,options:n})}removeEventListener(e,i){if(!(e in this.listeners))return;const n=this.listeners[e];for(let o=0,s=n.length;o<s;o++)if(n[o].callback===i){n.splice(o,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;const n=this.listeners[e.type].slice();for(let o=0,s=n.length;o<s;o++){const l=n[o];try{l.callback.call(this,e)}catch(r){Promise.resolve().then(()=>{throw r})}l.options&&l.options.once&&this.removeEventListener(e.type,l.callback)}return!e.defaultPrevented}}class pu extends fr{constructor(){super(),this.listeners||fr.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,e)),super.dispatchEvent(e)}}let y4=class{constructor(){Object.defineProperty(this,"signal",{value:new pu,writable:!0,configurable:!0})}abort(e){let i;try{i=new Event("abort")}catch{typeof document<"u"?document.createEvent?(i=document.createEvent("Event"),i.initEvent("abort",!1,!1)):(i=document.createEventObject(),i.type="abort"):i={type:"abort",bubbles:!1,cancelable:!1}}let n=e;if(n===void 0)if(typeof document>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(i)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(y4.prototype[Symbol.toStringTag]="AbortController",pu.prototype[Symbol.toStringTag]="AbortSignal");function hu(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof t.Request=="function"&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}function C4(t){typeof t=="function"&&(t={fetch:t});const{fetch:e,Request:i=e.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=t;if(!hu({fetch:e,Request:i,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:e,Request:s};let s=i;(s&&!s.prototype.hasOwnProperty("signal")||o)&&(s=function(c,f){let p;f&&f.signal&&(p=f.signal,delete f.signal);const h=new i(c,f);return p&&Object.defineProperty(h,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),h},s.prototype=i.prototype);const l=e;return{fetch:(a,c)=>{const f=s&&s.prototype.isPrototypeOf(a)?a.signal:c?c.signal:void 0;if(f){let p;try{p=new DOMException("Aborted","AbortError")}catch{p=new Error("Aborted"),p.name="AbortError"}if(f.aborted)return Promise.reject(p);const h=new Promise((_,b)=>{f.addEventListener("abort",()=>b(p),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([h,l(a,c)])}return l(a,c)},Request:s}}const Ml=hu({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),gu=Ml?C4({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,S4=Ml?gu.fetch:window.fetch;Ml?gu.Request:window.Request;const P4=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,T4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js";class E4{adman=null;initialVolume=1;videoElement=null;currentAdSection=null;actions=null;adsState=null;playerState=null;log;loadTimeout;initTimeout;events={slotRequested$:new ie.Subject,started$:new ie.Subject,paused$:new ie.Subject,resumed$:new ie.Subject,ended$:new ie.Subject,skipped$:new ie.Subject,clicked$:new ie.Subject};constructor(e,i){this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout}init(e,i,n){this.actions=e,this.adsState=i,this.playerState=n}loadAdman=e=>new Promise((i,n)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?i():n()};ie.addScript(T4,e,this.loadTimeout).then(()=>{window.AdmanHTML?i():(window.admanAsyncInit=s,o=window.setTimeout(s,this.initTimeout))}).catch(()=>{n()})});onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:o,isAutoplay:s,adsContainer:l,adsVideoElement:r,slotId:a,params:c={},duration:f,previewParam:p}=e;let h;const _=this.playerState&&et(this.playerState.vsid);_&&(h=parseInt(_,36));const b={dl:encodeURIComponent(window.location.href),autoplay:s,player_width:i,player_height:n,puid10:P4(i,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...c},k={slot:a,wrapper:l,videoEl:r,videoQuality:n,params:b,browser:{mobile:!1}},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=r,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}ie.assertNonNullable(this.actions),ie.assertNonNullable(this.adsState),ie.assertNonNullable(this.playerState);const i=this.currentAdSection===Sn.Postroll;this.adsState.playbackState.set(Kt.INACTIVE),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){ie.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=et(this.adsState.playbackState);e===Kt.PLAYING?this.pause():e===Kt.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){ie.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=Sn.Preroll,this.adman.start(Sn.Preroll)}startPostroll(){ie.assertNonNullable(this.adman),ie.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Sn.Postroll,this.adman.start(Sn.Postroll)}onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};onAdStarted=(e,i)=>{ie.assertNonNullable(this.adsState),ie.assertNonNullable(this.playerState),ie.assertNonNullable(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),et(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set(Kt.PLAYING),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay)};onAdTimeRemained=({currentTime:e})=>{ie.assertNonNullable(this.adsState),this.adsState.position.set(e)};onAdPaused=()=>{ie.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Kt.PAUSED)};onAdPlayed=()=>{ie.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Kt.PLAYING)};onAdMidrollPoint=()=>{ie.assertNonNullable(this.adman),ie.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Sn.Midroll,this.adman.start(Sn.Midroll)};onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};play(){ie.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){ie.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){ie.assertNonNullable(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}}const A4=t=>{const e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};class I4{oneLineRegExp=/\r\n|\n|\r/;twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/;parse(e){const i=[],n=e.split(this.twoLinesRegExp);for(const o of n){const s={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(const r of l)if(!s.startTime&&!s.endTime){const a=new bu,{startTime:c,endTime:f}=a.parse(r);s.startTime=c,s.endTime=f}else if(r.trim()!==""){const a=new L4,{texts:c}=a.parse(r);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&i.push(s)}return i}}class bu{timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`);parse(e){const i={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(i.startTime=this.calcTime(n[1],n[2],n[3],n[4]),i.endTime=this.calcTime(n[6],n[7],n[8],n[9])),i}parseTime(e){const i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",n="0",o="0"){const s=Number(e)*60*60,l=Number(i)*60,r=Number(n),a=+`0.${o}`;return s+l+r+a}}class L4{letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/;parse(e){const i={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let r=0;const a=[];for(;r<l.length;){const c=["<",">"].reduce((f,p)=>{const h=l.indexOf(p,r);return f===-1||f>h?h:f},-1);if(c===-1){a.push(l.substring(r));break}a.push(l.substring(r,c)),r=c+1}return a}}),s=new bu;for(const l of o)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}}let Dn,rn,al=0,ul=!1;const V4=(t,e,i)=>{const n=t>=al,o=t<al,s=(c,f=0,p=0)=>c<f&&c<p,l=(c,f=0,p=0)=>c>=f&&c<=p,r=(c,f=0,p=0)=>c>f&&c>p,a=i.find(({lang:c})=>c===e.value)?.subtitles;if(al=t,o&&(ul=!1),ie.isNonNullable(Dn)&&l(t,Dn.startTime,Dn.endTime)&&Dn.lang===e.value)return Dn;if(!ie.isNonNullable(rn)&&a?.length&&!ul){const c=a.find(({startTime:f,endTime:p})=>l(t,f,p)||n&&s(t,f,p));rn=c&&{...c,lang:e.value},Dn=void 0,!ie.isNonNullable(rn)&&a[a.length-1].endTime<t&&(ul=!0);return}else{if(l(t,rn?.startTime,rn?.endTime))return Dn=rn,rn=void 0,Dn;(n&&r(t,rn?.startTime,rn?.endTime)||o&&s(t,rn?.startTime,rn?.endTime))&&(rn=void 0)}},cl={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-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"};let Do=null;class go{constructor(e,i){if(!Do){const n=new mt.OneStat(e,i),o=new ie.Subscription;Do=Object.freeze({oneStat:n,statSubscription:o,destroy:()=>{n?.destroy(),o?.unsubscribe(),Do=null}})}}static getInstance(){return Do}}const M4=({interfaceLanguage:t,videoId:e,isClip:i,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:s,canDownload:l,callbacks:r,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:p,coreConfig:h,player:_,disabledControls:b,isInteractive:k,interactiveRanges$:v,isInteractiveTime$:S,replayInteractive:w,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:A,additionalButtons:oe,looped:M=!1})=>{const Z={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:s,live:{...h.live??{},isLiveCatchUpMode:!!n}},ne=p,L=_||new xe.Player(Z);L.setLooped(M);const V=new ie.Logger,x=new E4(V,{loadTimeout:ne.ads.loadTimeout,initTimeout:ne.ads.initTimeout}),Y=go.getInstance(),le=gl.getInstance(),K=a?.pictureInPictureApi,C=a?.annotationsApi,G=V.createComponentLog("Store");let z,ee,Ee={};const Re=ie.getCurrentBrowser(),Ne=Y?dt(Y.oneStat.vsid$):vn(void 0),ze=Me(vo()),ve=K?.info.isActive$??new ie.ValueSubject(!1),we=K?.info.type,Q=Me(0),$=Me([]),ye=ie.merge(L.events.fatalError$,L.events.managedError$).subscribe(I=>$.update(ae=>[...ae,I])),re=vn(!1,I=>{const ae=L.events.fatalError$.subscribe(()=>I(!0));return()=>ae.unsubscribe()}),We=async I=>{const ae=Object.values(ie.InterfaceLanguage).includes(I);if(ne.downloadVKLanguages&&(ae&&ne.updateBuiltinLanguages||!xl(I))){let Ue;try{Ue=await ie.loadVKLangPack(I,Lc,Vc)}catch(Xe){Y?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),le?.report(Xe,{errorType:"VKLangPack",fatal:!1})}Ue&&(Jl({language:I,pack:Ue,fallback:ne.defaultLanguage}),Le.set(I))}xl(I)&&Le.set(I)},Le=Me(t);We(t);const Ie=(I,ae)=>{const Te=et(Le);return T1(Te,I,ae,ne.defaultLanguage)},ue=Me(Oe.Thumb),Se=(()=>{const I=Bi([re,ue],([ae,Te])=>ae?Oe.Crashed:Te);return{...I,is:ae=>et(I)===ae}})(),he=(()=>{const I=Me(new Set(b));return{...I,add:ae=>{I.update(Te=>new Set([...Te].concat(ae)))},remove:ae=>{I.update(Te=>{const Ue=[...Te];return new Set(Array.isArray(ae)?Ue.filter(Xe=>!ae.includes(Xe)):Ue.filter(Xe=>Xe!==ae))})},includes:ae=>{const Te=et(I);return Array.isArray(ae)?ae.every(Ue=>Te.has(Ue)):Te.has(ae)}}})();G({message:"create store"});const se=I=>{G({message:`init video, config: ${JSON.stringify(I)}`}),k?I.container.append(L.experimental.element$.getValue()):L.initVideo(I),I.subtitles&&L.setExternalTextTracks(I.subtitles),z=I},Be=new ie.Subject,me=I=>Be.next(I),Ce=new ie.Subject,Pe=new ie.Subject,Ge=new ie.Subject,it={actionRewind$:Ce,actionSeek$:Pe,inPiP$:ve,inFullscreen$:new ie.Observable(I=>ze.subscribe(ae=>I.next(ae))),actionSetSubtitle$:Ge,nextMovie$:Be};if(Y){const{oneStat:I,statSubscription:ae}=Y;ae.add(I.attachTo(L)),ae.add(I.attachToUi(it)),ae.add(I.attachToAds(x.events)),I.authorize(o).catch(Te=>{G({message:`onestat auth error ${String(Te)}`})})}if(le){const I=new ie.Subscription,ae=(Te,Ue)=>I.add(Te.subscribe(Ue));if(ae(L.events.managedError$,Te=>{le.logIError(Te)}),ae(L.events.fatalError$,Te=>{le.logIError(Te,!0)}),Y){const{oneStat:Te}=Y;ae(Te.experimental.error$,Ue=>{le.logIError(Ue)})}le.sentrySubscription.add(I)}const Je=()=>{ie.isIOS()&&ee&&rf(ee)},Qe=new ie.Subscription().add(L.experimental.element$.subscribe(I=>{I&&(ee=I,I.classList.add("player-media"),qo(K)&&(K.updateVideoElement(),K.registryEventHandlers()),k&&I.setAttribute("pip","false"))})).add(L.events.ended$.subscribe(()=>{Je(),r?.onEnded?.()})).add(L.events.started$.subscribe(async()=>{qo(K)&&await K?.revealPictureInPicture();const I=L.info.muted$.getValue();r?.onStarted?.(),Ee.onStarted?.(I)})).add(L.events.willSeek$.subscribe(({from:I,to:ae})=>{r?.onSeek?.(I,ae)})).add(L.info.position$.subscribe(I=>{const ae=L.info.duration$.getValue();r?.onTimeupdate?.(ae,I),x.setPosition(I,ae)})).add(L.events.fatalError$.subscribe(()=>{r?.onCrashed?.()})).add(L.info.is3DVideo$.subscribe(I=>{st.ui.is3DVideo.set(I)})).add(L.info.isEnded$.subscribe(I=>{k&&(I?(S?.getValue()&&he.add(f1),he.add(rt.PLAY_BUTTON)):he.remove(rt.PLAY_BUTTON))})).add(L.info.liveTime$.subscribe(I=>{r?.onLiveTime?.(I)})).add(L.info.isStalled$.subscribe(I=>{r?.onStalledChanged?.(I)})),tt=new ie.Subscription,Et=()=>{tt.add(L.events.log$.subscribe(I=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${I.component}`,I.message)})).add(V.log$.subscribe(I=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${I.component}.`,I.message)}))},ht=()=>{tt.unsubscribe()},Fe=(I,ae)=>{L.startCameraManualRotation(I,ae)},yt=(I=!1)=>{L.stopCameraManualRotation(I)},Yt=(I,ae,Te)=>{L.moveCameraFocusPX(I,ae,Te)},de=()=>{L.holdCamera()},bt=()=>{L.releaseCamera()},at=vn(L.info.position$.getValue(),I=>{let ae,Te;const Ue=()=>{const Xe=L.info.playbackState$.getValue(),si=L.info.isLive$.getValue(),Mi=L.info.duration$.getValue(),Zt=L.info.position$.getValue();if([xe.PlaybackState.PLAYING,xe.PlaybackState.PAUSED].includes(Xe)){const cn=si?Zt-Mi:L.getExactTime();cn!==Te&&I(cn),Te=cn}ae=requestAnimationFrame(Ue)};return Ue(),()=>cancelAnimationFrame(ae)}),Qt=dt(ve),ut=dt(L.info.playbackState$),vt=dt(L.info.currentBuffer$),ri=dt(L.info.isEnded$),Ot=dt(L.info.isLive$),ai=ne.features.playbackRate?dt(L.info.canChangePlaybackSpeed$):vn(!1),Ui=dt(L.info.liveBufferTime$),ui=dt(L.info.volume$),ki=dt(L.info.muted$),Qi=h1(L.info.autoQualityLimits$.pipe(ie.map(({max:I})=>I!==void 0)),L.info.autoQualityLimits$.getValue()?.max!==void 0),ci=dt(L.info.autoQualityLimitingAvailable$),fi=dt(L.info.availableQualities$),wi=dt(L.info.availableQualitiesFps$),At=dt(L.info.chromecastState$),Xt=dt(L.info.chromecastDeviceName$),yi=dt(L.info.currentFormat$),Jt=dt(L.info.throughputEstimation$),Ci=dt(L.info.videoBitrate$),di=dt(L.info.intrinsicVideoSize$),zt=dt(L.info.duration$),Ni=dt(L.info.isAudioAvailable$);let St=null;const Dt=L.info.isBuffering$,Si=vn(Dt.getValue(),I=>{const ae=Dt.subscribe(Te=>{Te&&St===null?St=window.setTimeout(()=>{I(Dt.getValue()),St=null},ne.loaderDelay):I(Te)});return()=>{ae.unsubscribe(),St&&clearTimeout(St)}}),Ri=()=>{St&&clearTimeout(St),St=null},Pt=Bi([zt,Ot],([I,ae])=>ae?-I:I),xt=Bi([ut],([I])=>I===xe.PlaybackState.PLAYING),$t=dt(L.info.atLiveEdge$),mi=dt(L.info.atLiveDurationEdge$),kt=dt(L.info.position$),It=Bi([kt,zt],([I,ae])=>isFinite(I)&&isFinite(ae)&&!!ae),pi=Bi([At],([I])=>I===xe.ChromecastState.CONNECTED),_t=Me(void 0),Pi=dt(L.info.isAutoQualityEnabled$,I=>I&&_t.set(void 0)),Ti=dt(L.info.currentQuality$,()=>_t.set(void 0)),Ct=Bi([_t,Ti],([I,ae])=>I??ae),Ft=Bi([fi,wi,Pi,Ct,yi],([I,ae,Te,Ue,Xe])=>{const si=[];Xe!==xe.VideoFormat.MPEG&&si.push({value:oo.AUTO,displayValue:Ie("auto_quality_option"),selected:Te});const Mi=I.filter(Zt=>Zt!==ie.VideoQuality.INVARIANT);for(const Zt of Mi){const cn=ae[Zt],qn=Zt===ie.VideoQuality.INVARIANT?Ie("auto_quality_option"):Zt;si.push({value:Zt,displayValue:`${qn}${cn?A4(cn):""}`,selected:Te?!1:Zt===Ue})}return si}),qi=dt(L.info.currentPlaybackRate$),Ht=Bi([qi,$t,mi],([I,ae,Te])=>{const Ue=Te||k?1:ne.controls.playbackRateMin,Xe=ae?1:ne.controls.playbackRateMax,si=ne.controls.playbackRateStep,Mi=[];for(let Zt=Ue;Zt<=Xe;Zt+=si)Mi.push({value:Zt,displayValue:Zt===1?Ie("playback_rate_1"):Ie("playback_rate",{multiplier:Zt.toString(10)}),selected:I===Zt});return Mi}),Xi=ne.features.subtitles?dt(L.info.availableTextTracks$):vn([]),ei=Bi([Xi],([I],ae)=>{const Te=[],Ue=[];for(const Xe of I)Xe.url&&Te.push(S4(Xe.url));Promise.allSettled(Te).then(Xe=>{for(const[si,Mi]of Xe.entries())Mi.status==="fulfilled"&&Mi.value.text().then(Zt=>{const cn=new I4,qn=I[si].language,So=!!I[si].isAuto,po=cn.parse(Zt);qn&&po&&Ue.push({lang:qn,subtitles:po,isAuto:So}),si===Xe.length-1&&ae(Ue)})})}),Mt={displayValue:Ie("subtitles_off"),value:"off"},Bt=Me({...Mt}),hi=Bi([ei,Bt,ei],([I,ae])=>{if(I?.length>0){const Te=[{...Mt,selected:ae?.value===Mt.value}];for(const{lang:Ue,isAuto:Xe}of I)cl[Ue]&&Te.push({displayValue:Xe?Ie("subtitles_auto",{language:cl[Ue]}):cl[Ue],value:Ue,selected:ae?.value===Ue,isAuto:Xe});return Te}else return[]}),Lt=Bi([at,Bt,ei],([I,ae,Te])=>{if(ae&&ae.value!==Mt.value)return V4(I,ae,Te)}),ji=Bi([Lt],([I])=>I?.texts?I.texts:[]),Zi=Me(!0),Ei=Bi([vt,Pt,kt,Ui],([I,ae,Te,Ue])=>{const Xe=I?.end??0;if(!Ue)return Xe/ae;const Mi=-Te+Ue-ae;return(Xe-Mi)/ae}),gi=dt(L.info.availableSources$),gt=Bi([gi],([I])=>Object.keys(I?.[xe.VideoFormat.MPEG]||{}).length>0),Oi=()=>{const I=Object.keys(L.info.availableSources$?.getValue()?.[xe.VideoFormat.MPEG]||{}),ae=ie.getHighestQuality(I)||ie.VideoQuality.Q_144P;return z.sources[xe.VideoFormat.MPEG]?.[ae]},zi=()=>{const I=Oi();I?Hc(I,z?.meta?.title||"video"):G({message:"There is no URL for download video"})},Ai=()=>{G({message:"toggle muted"});const I=L.info.muted$.getValue(),Ue=!(L.info.volume$.getValue()===0||I);bi(Ue)},Ii=()=>{st.ui.settingsMenuVisible.set(!1)},Li=I=>{st.ui.settingsMenuOpenedByKeyboard.set(!!I),st.ui.settingsMenuVisible.set(!0)},Di=I=>{et(st.ui.settingsMenuVisible)?Ii():Li(I)},ti=(I,ae=I,Te=!1)=>{const Ue=!Te,Xe=L.info.muted$.getValue();G({message:`set volume, volume: ${I}, preferredVolume: ${ae}, internalCall: ${Ue}`}),L.setVolume(I),x.setVolume(I),Ue&&r?.onVolumeChange?.(I),Xl(ae),Xe?(L.setMuted(!1),Ue&&r?.onUnmute?.(),nl(!1)):!Xe&&I===0&&(L.setMuted(!0),Ue&&r?.onMute?.(),nl(!0))},bi=(I,ae=!1)=>{const Te=!ae,Ue=L.info.volume$.getValue();if(G({message:`set muted, currentVolume: ${Ue}, mute: ${I}, internalCall: ${Te}`}),L.setMuted(I),x.setVolume(I?0:Ue),nl(I),Te&&(I?r?.onMute?.():r?.onUnmute?.()),Ue===0){let Xe=k1()??ne.volumeDefault;Xe===0&&(Xe=ne.volumeMinRestore,Xl(Xe)),L.setVolume(Xe),x.setVolume(Xe),Te&&r?.onVolumeChange?.(Xe)}},ii=()=>{L.prepare()},Ut=()=>{if(ie.assertNonNullable(st),!et(st.ui.controls.disabledControls$).has(rt.PLAY_BUTTON)){if(G({message:"toggle play"}),et(st.playerPhase)===Oe.Ads){x.togglePlay();return}if(L.info.playbackState$.getValue()!==xe.PlaybackState.PLAYING){if(L.info.isEnded$.getValue()){if(G({message:"toggle play, video ended, seek to 0"}),Ce.next(),Pe.next(mt.SeekAction.REWIND),k){w?.();return}L.seekTime(0)}G({message:"toggle play, call player.play"}),L.play(),r?.onPlay?.()}else G({message:"toggle play, call player.pause"}),L.pause(),r?.onPause?.()}},Ve=I=>{G({message:`set quality, quality: ${I}`}),L.setAutoQuality(I===oo.AUTO),I!==oo.AUTO?(Uc(e,I),_t.set(I),L.setQuality(I)):w1()},Fi=I=>{G({message:`set trafficSavingEnabled, value: ${I}`}),L.setAutoQualityLimits({max:I?ne.trafficSavingLimit:void 0}),Zc(I)},_i=I=>{L.setPlaybackRate(I)},He=()=>{const I=et(Ht),ae=I.findIndex(({selected:Ue})=>Ue);if(ae===I.length-1)return;const Te=I[ae+1];_i(Te.value)},Wi=()=>{const I=et(Ht),ae=I.findIndex(({selected:Ue})=>Ue);if(ae===0)return;const Te=I[ae-1];_i(Te.value)},qt=I=>{I&&I.value!==Mt.value&&Ge.next(I.isAuto?I.value+"_auto":I.value),Bt.set(I)},en=()=>{const I=et(hi),ae=et(Bt),Te=et(Le);if(ae?.value===Mt.value){const Ue=I.filter(Xe=>Xe.value!==Mt.value).find(Xe=>Xe.value===Te)||I[1];qt(Ue??{...Mt})}else qt({...Mt,selected:!1})},ni=(I,ae,Te=!0)=>{if(G({message:`seek to time, time: ${I}`}),Pe.next(ae),L.info.isLive$.getValue()){const Ue=L.info.duration$.getValue(),Xe=Math.min(0,Ue+I);L.seekTime(Xe,Te)}else{if(S?.getValue())return;L.seekTime(q(I),Te)}},Ji=I=>{G({message:`seek to episode start time: ${I}`}),ni(I,mt.SeekAction.EPISODE,!0)},jt=(I,ae)=>{G({message:`seek to percent, percent: ${I}`});const Te=Math.round(et(Pt)*I);ni(Te,ae,!1)},Vi=I=>{G({message:`seek external, time: ${I}`}),Pe.next(mt.SeekAction.UNKNOWN),L.seekTime(L.info.isLive$.getValue()?-I:I)},tn=I=>{G({message:`set auto quality limitation. Max: ${I.max??"none"}. Min: ${I.min??"none"}`}),L.setAutoQualityLimits(I)},xi=I=>{G({message:`seek external to episode start time: ${I}`}),ni(I,mt.SeekAction.EPISODE,!0)},Ki=I=>{G({message:`set playback rate to: ${I}`}),L.setPlaybackRate(I)},Hi=Me(void 0),Nt=Me(!1),te=I=>{G({message:`start scrubbing, progress: ${I}`}),Nt.set(!0),lt(I)},lt=I=>{Hi.set(I)};let oi,Gi;const wt=()=>{Hi.set(void 0),Nt.set(!1)},$i=()=>{clearTimeout(Gi),clearTimeout(oi),oi=window.setTimeout(()=>{wt()},500),ee?.removeEventListener("seeked",$i)},hn=I=>{G({message:`complete scrubbing, progress: ${I}`}),jt(I,mt.SeekAction.SLIDER),et(st.ui.isMobile)&&et(st.state.currentFormat$)===xe.VideoFormat.HLS?(ee?.addEventListener("seeked",$i),Gi=window.setTimeout(()=>{$i()},300)):wt()},an=Bi([at,Pt,Hi],([I,ae,Te],Ue)=>{Ue(ie.isNonNullable(Te)?Te*ae:I)}),un=Me({width:0,height:0}),nn=Bi([un],([{width:I}],ae)=>{const Te=p2(I);ae(Te)}),X=Me(!1),ft=Bi([nn,X],([I,ae])=>ae?oe.filter(Te=>!Te.hideOnMobile):oe.filter(Te=>!Te.hideOnDesktopGridTypes?.includes(I))),gn=Bi([X,re],([I,ae],Te)=>{Te(I&&ae)}),bn=()=>{Pe.next(mt.SeekAction.LIVE),G({message:"switch to active live"}),L.seekTime(0),L.info.playbackState$.getValue()!==xe.PlaybackState.PLAYING&&st.actions.internal.togglePlay()},_n=()=>x.skip(),Mn=(I=!0)=>{ie.assertNonNullable(st),G({message:`switch from ads to video, callPlay: ${I}`}),ue.set(Oe.Video),I&&L.play()},Bn=()=>{ie.assertNonNullable(st),G({message:"switch from video to ads"}),st.actions.internal.pause(),Je(),ue.set(Oe.Ads)},Nn=I=>{ie.assertNonNullable(st);const ae=I?Oe.WaitingLive:Oe.Thumb;ue.set(ae)},Rn=I=>{ie.assertNonNullable(st);const ae=I?Oe.WaitingRecord:Oe.Thumb;ue.set(ae)},J=()=>(ie.assertNonNullable(st),Dc(L,z,st)),On=()=>(ie.assertNonNullable(st),Fc(L,z,st)),Kn=()=>ee,Gn=()=>{G({message:"toggle chromecast"}),L.toggleChromecast()},Hn=I=>{ie.assertNonNullable(st);const ae=!I;if(et(st.playerPhase)===Oe.Ads){G({message:`pause ads, internalCall: ${ae}`}),x.pause();return}G({message:`pause video, internalCall: ${ae}`}),ae&&r?.onPause?.(),L.pause()},Yn=I=>{ie.assertNonNullable(st);const ae=!I;if(et(st.playerPhase)===Oe.Ads){G({message:`play ads, internalCall: ${ae}`}),x.play();return}G({message:`play video, internalCall: ${ae}`}),ae&&r?.onPlay?.(),L.play()},wn=(I,ae)=>{ie.assertNonNullable(st),G({message:`first start, show ads: ${I}, internalCall: ${!ae}`}),I?ue.set(Oe.Ads):(ue.set(Oe.Video),ae?L.play():st.actions.internal.togglePlay())},yn=()=>(G({message:"getting time codes"}),c),Cn=()=>{const I=yn();if(!I||[0,1].includes(I.length))return;const ae=L.info.position$.getValue();return I.find(Te=>Te.time>ae)},co=I=>{let ae=I;ae||(ae=Cn()),ae&&(G({message:"seek to next episode"}),ni(ae.time,mt.SeekAction.EPISODE,!0))},on=()=>{const I=yn();if(!I||[0,1].includes(I.length))return;const ae=L.info.position$.getValue(),Te=I.findIndex(Xe=>Xe.time>ae),Ue=Te===-1?I.length-2:Te-2;if(!(Ue<0))return I[Ue]},Qn=I=>{let ae=I;ae||(ae=on()),ae&&(G({message:"seek to prev episode"}),ni(ae.time,mt.SeekAction.EPISODE,!0))},Xn=()=>(G({message:"getting preview thumbs data"}),f),fo=async()=>{K?.isActive()?await K?.remove():await K?.request()},mo=(I=-90)=>{Q.update(ae=>ae+I)},Un=Me([]);v?.subscribe(I=>{const ae=[];for(let Te=0;Te<I.length;Te++){const{range:[Ue,Xe],subjects:si}=I[Te];Te===0&&Ue!==0&&ae.push({time:0,text:"",interactive:!1,completed:!0}),ae.push({time:Ue/1e3,text:"",interactive:!0,completed:!si.length}),Xe!==1/0&&ae.push({time:Xe/1e3,text:"",interactive:!1,completed:!0})}Un.set(ae)});const Jn=Me(!1);S?.subscribe(I=>{I&&et(Nt)&&wt()});const q=I=>{if(!k)return I;const ae=et(Un),Te=et(Pt),Xe=et(kt)/Te,si=ae.find(Mi=>Mi.interactive&&!Mi.completed&&Mi.time>Xe);return typeof si?.time=="number"?Math.min(I,si.time-.05):I},li=()=>{st.ui.episodes.panelOpened$.set(!1)},zn=()=>{clearTimeout(Gi),clearTimeout(oi),Qe.unsubscribe(),tt.unsubscribe(),L.destroy(),x.destroy(),Y?.destroy(),le?.destroy(),ye.unsubscribe()},st={interfaceLanguage$:Le,initVideo:se,videoId:e,isClip:i,playerPhase:Se,vsid:Ne,state:{positionExact$:at,positionWithScrubbing$:an,duration$:Pt,playbackState$:ut,isPlaying$:xt,isLoaderVisible:Si,bufferedProgress$:Ei,isLive$:Ot,canChangePlaybackSpeed$:ai,isActiveLive$:$t,isOldestAvailableLive$:mi,isRewindableLive$:It,isEnded$:ri,muted$:ki,volume$:ui,trafficSavingEnabled$:Qi,autoQualityLimitingAvailable$:ci,currentQuality$:Ct,isAutoQualityEnabled$:Pi,availableQualities$:Ft,currentPlaybackRate$:qi,availablePlaybackRates$:Ht,currentSubtitle$:Bt,availableSubtitlesList$:hi,currentSubtitleCaptions$:ji,isAutoSubtitleCaptionVisible$:Zi,chromecastState$:At,chromecastDeviceName$:Xt,chromecastConnected$:pi,currentFormat$:yi,throughputEstimation$:Jt,videoBitrate$:Ci,videoSize$:di,errorLog$:$,crashed$:re,isAudioAvailable$:Ni,isAudioDisabled:!!s,canDownload:ne.features.download&&!!l,availableSources$:gi,hasMpegSources$:gt,isInteractive:k,isInteractiveGraphEnabled:ne.features.interactiveGraph,isSeekToInteractiveEnable:ne.features.seekToInteractive,isPlayPrevChapterEnabled:ne.features.interactivePlayPrevChapter,interactiveEpisodes$:Un,isInteractiveTime$:S?dt(S):Me(!1),graphIsOpened$:Me(!1),isInteractiveExpectation$:Jn,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:A},ui:{controlsVisible:Me(!1),touched:Me(!1),controls:{prevButton:Me(void 0),playButton:Me(void 0),replayButton:Me(void 0),nextButton:Me(void 0),playPrevChapterButton:Me(void 0),seekToInteractiveButton:Me(void 0),interactiveGraphButton:Me(void 0),liveButton:Me(void 0),time:Me(void 0),episodes:Me(void 0),volume:Me(void 0),subtitles:Me(void 0),settings:Me(void 0),context:Me(void 0),chromecast:Me(void 0),pip:Me(void 0),fullscreen:Me(void 0),vkLogo:Me(void 0),interactiveTimeIcon:Me(void 0),additionalButtons:oe.length?oe.reduce(I=>[...I,Me(void 0)],[]):[],disabledControls$:he},modals:{hotKeyMap:{show:Me(!1),data:Me({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ze,rotateAlpha:Q,isAutoplay:Me(!1),contextMenuVisible:Me(!1),debugPanelVisible:Me(!1),episodes:{panelOpened$:Me(!1),openedByKeyboard$:Me(!1)},contextMenu:{btnRef$:Me(void 0),openedByKeyboard$:Me(!1),showContextMenuBtn$:Me(!1)},playerSize:un,isMobile:X,mobileNotReportControlHidden$:gn,mobileUnmuteButtonExpanded:Me(!1),mobileUnmuteButtonVisible:Me(!1),icon3DVideoVisible:Me(!1),settingsMenuVisible:Me(!1),settingsMenuOpenedByKeyboard:Me(!1),scrubbingInProgress:Nt,is3DVideo:Me(!1),isPictureInPictureActive$:Qt,pictureInPictureType$:vn(we),clientInfo$:vn(Re),currentGridType$:nn,additionalButtons$:ft,interactiveHideMobileControls:Me(!1),overlayContainer$:Me(void 0),startedByKeyboard$:Me(!1)},ads:{position:Me(0),duration:Me(0),playbackState:Me(Kt.INACTIVE),canSkip:Me(!1),secondsToWatchBeforeSkip:Me(0),postrollPassed:Me(!1)},webApi:{pictureInPictureApi:K,annotationsApi:C},actions:{internal:{preload:ii,firstStart:I=>wn(I,!1),pause:()=>Hn(!1),togglePlay:Ut,toggleMuted:Ai,toggleSettingsMenu:Di,openSettingsMenu:Li,closeSettingsMenu:Ii,setVolume:ti,setQuality:Ve,setTrafficSavingEnabled:I=>Fi(I),setPlaybackRate:_i,incrementPlaybackRate:He,decrementPlaybackRate:Wi,setSubtitle:qt,toggleSubtitle:en,togglePictureInPicture:fo,startScrubbing:te,progressScrubbing:lt,completeScrubbing:hn,toggleChromecast:Gn,switchToActiveLive:bn,switchFromAdsToVideo:Mn,switchFromVideoToAds:Bn,skipAd:_n,setWaitingLive:Nn,setWaitingRecord:Rn,getDebugTextData:J,getDebugPanelData:On,getVideoElement:Kn,seekTime:(I,ae,Te)=>ni(I,ae,Te),clearDelayedBufferingCheckTimeout:Ri,seekEpisodeStartTime:Ji,seekToPercent:jt,getNextEpisode:Cn,seekToNextEpisode:co,getPrevEpisode:on,seekToPrevEpisode:Qn,startLogging:Et,stopLogging:ht,startCameraManualRotation:Fe,stopCameraManualRotation:yt,moveCameraFocusPX:Yt,holdCamera:de,releaseCamera:bt,getVideoEpisodes:yn,getPreviewThumbsData:Xn,downloadVideo:zi,addLanguage:Jl,setLanguage:We,nextMovie:me,videoRotate:mo,correctSeekTimeToInteractive:q,replayInteractive:w},external:{firstStart:I=>wn(I,!0),play:()=>Yn(!0),pause:()=>Hn(!0),seekTime:I=>Vi(I),seekEpisodeStartTime:I=>xi(I),setPlaybackRate:I=>Ki(I),setAutoQualityLimits:I=>tn(I),setMuted:I=>bi(I,!0),setVolume:I=>ti(I,I,!0),returnFocusToEpisodes:li}},callbacks:r,setUiCallbacks:I=>{Ee={...I}},getAdmanWrapper:()=>x,getLogger:()=>V,destroy:zn};return st},_u=(t,e,i,n)=>{if(!t)return;const o=["interactiveTimeIcon"],s=t.getBoundingClientRect();for(const[l,r]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(l)){const a=i[l]?.getBoundingClientRect(),c=(n||o.includes(l))&&!!a&&!!(a.right-a.left);r.set({positionStartX:0,positionEndX:0,left:c?Math.round(a.left-s.left):0,right:c?Math.round(a.right-s.left):0,top:c?Math.round(a.top-s.top):0,bottom:c?Math.round(a.bottom-s.top):0,isDisplayed:c})}},vu=async(t,e,i)=>{await wo(),e&&i&&(i.focus(),t.set(!1))};function B4(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","dots-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class N4 extends _e{constructor(e){super(),be(this,e,null,B4,ge,{})}}function R4(t){let e,i;return e=new N4({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function O4(t){let e,i,n;function o(l){t[8](l)}let s={className:t[3]?"opened":"",testId:"btn-context-menu",disabled:t[0],ariaLabel:t[1],click:t[5],focus:t[6],blur:t[7],ariaExpanded:t[3],$$slots:{default:[R4]},$$scope:{ctx:t}};return t[2]!==void 0&&(s.ref=t[2]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&8&&(a.className=l[3]?"opened":""),r&1&&(a.disabled=l[0]),r&2&&(a.ariaLabel=l[1]),r&8&&(a.ariaExpanded=l[3]),r&8192&&(a.$$scope={dirty:r,ctx:l}),!i&&r&4&&(i=!0,a.ref=l[2],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function z4(t,e,i){let n,{disabled:o=!1}=e,{ariaLabel:s=""}=e;const l=pt(),r=l.ui.contextMenuVisible;O(t,r,v=>i(3,n=v));const a=l.ui.contextMenu.openedByKeyboard$,c=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.btnRef$,p=v=>{const S=Cl(v);a.set(S),r.set(!n)};let h;const _=()=>{c.set(!0)},b=()=>{c.set(!1)};function k(v){h=v,i(2,h)}return t.$$set=v=>{"disabled"in v&&i(0,o=v.disabled),"ariaLabel"in v&&i(1,s=v.ariaLabel)},t.$$.update=()=>{t.$$.dirty&4&&h&&f.set(h)},[o,s,h,n,r,p,_,b,k]}class D4 extends _e{constructor(e){super(),be(this,e,z4,O4,ge,{disabled:0,ariaLabel:1})}}function F4(t){Ze(t,"v-1syq7kl",".interactive-episode-icon-animated.v-1syq7kl{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.7s;opacity:1}.invisible.v-1syq7kl{opacity:0;visibility:hidden}.fullscreen.v-1syq7kl:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.v-1syq7kl{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.v-1syq7kl{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.v-1syq7kl{top:40px;right:16px}}@keyframes v-1syq7kl-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}}.interactive-episode-icon-animated.v-1syq7kl:after{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 v-1syq7kl-pulse infinite;transition:0.3ms}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.v-1syq7kl{position:absolute;top:0;width:100%;height:100%}.hidden.v-1syq7kl{display:none}")}function H4(t){let e,i,n,o,s,l,r;return i=new x1({props:{completed:!0}}),{c(){e=E("div"),U(i.$$.fragment),n=R(),o=E("div"),u(o,"class","ref-block v-1syq7kl"),B(o,"hidden",t[2]),u(e,"class","interactive-episode-icon-animated v-1syq7kl"),B(e,"mobile",t[1]),B(e,"fullscreen",t[3]),B(e,"invisible",t[2])},m(a,c){T(a,e,c),D(i,e,null),m(e,n),m(e,o),t[14](o),s=!0,l||(r=pe(e,"click",t[9]),l=!0)},p(a,[c]){(!s||c&4)&&B(o,"hidden",a[2]),(!s||c&2)&&B(e,"mobile",a[1]),(!s||c&8)&&B(e,"fullscreen",a[3]),(!s||c&4)&&B(e,"invisible",a[2])},i(a){s||(d(i.$$.fragment,a),s=!0)},o(a){g(i.$$.fragment,a),s=!1},d(a){a&&P(e),F(i),t[14](null),l=!1,r()}}}function U4(t,e,i){let n,o,s,l,r,{ref:a=void 0}=e;const c=pt(),f=c.ui.isMobile;O(t,f,A=>i(1,l=A));const p=c.ui.isFullscreen;O(t,p,A=>i(3,r=A));const h=c.state.isInteractiveTime$;O(t,h,A=>i(12,o=A));const _=c.ui.controlsVisible;O(t,_,A=>i(13,s=A));const b=c.callbacks?.onInteractiveTimeIconClick,{interactiveControlsOpacity$:k}=Ko();O(t,k,A=>i(11,n=A));let v,S;const w=()=>{S||b?.()};function y(A){ke[A?"unshift":"push"](()=>{a=A,i(0,a)})}return t.$$set=A=>{"ref"in A&&i(0,a=A.ref)},t.$$.update=()=>{t.$$.dirty&8194&&i(10,v=!l&&s),t.$$.dirty&7168&&i(2,S=!o||!!n||v)},[a,l,S,r,f,p,h,_,k,w,v,n,o,s,y]}class ku extends _e{constructor(e){super(),be(this,e,U4,H4,ge,{ref:0},F4)}}const{Boolean:q4}=jo;function j4(t){Ze(t,"v-st0uzk",".wrapper-bottom.v-st0uzk.v-st0uzk{pointer-events:none;position:absolute;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.v-st0uzk>.v-st0uzk{pointer-events:auto}.controls.v-st0uzk.v-st0uzk{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.v-st0uzk.v-st0uzk,.controls-right.v-st0uzk.v-st0uzk{display:flex;align-content:center}.controls-left.v-st0uzk.v-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.v-st0uzk > *:not(:first-child),.controls-right.v-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.v-st0uzk.v-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.v-st0uzk.v-st0uzk{transition:none}.settings-menu.v-st0uzk.v-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function dr(t,e,i){const n=t.slice();return n[211]=e[i].iconUrl,n[212]=e[i].ariaLabel,n[213]=e[i].testId,n[214]=e[i].onClick,n[215]=e[i].tooltip,n}function mr(t){let e,i,n;function o(l){t[175](l)}let s={disabled:!t[9],tooltipContent:W("tooltip_previous"),$$slots:{default:[Z4]},$$scope:{ctx:t}};return t[23].prevButton!==void 0&&(s.ref=t[23].prevButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&512&&(a.disabled=!l[9]),r[0]&4608|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].prevButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Z4(t){let e,i;return e=new Yo({props:{click:t[12],type:"prev",disabled:!t[9],isMobile:!1}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&4096&&(s.click=n[12]),o[0]&512&&(s.disabled=!n[9]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function pr(t){let e,i,n;function o(l){t[176](l)}let s={disabled:t[75],tooltipContent:W("tooltip_restart"),$$slots:{default:[W4]},$$scope:{ctx:t}};return t[23].replayButton!==void 0&&(s.ref=t[23].replayButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[2]&8192&&(a.disabled=l[75]),r[2]&8192|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].replayButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function W4(t){let e,i;return e=new Vl({props:{click:t[130],disabled:t[75]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[2]&8192&&(s.disabled=n[75]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function hr(t){let e,i,n;function o(l){t[178](l)}let s={tooltipContent:t[48],disabled:t[76],$$slots:{default:[K4]},$$scope:{ctx:t}};return t[23].playButton!==void 0&&(s.ref=t[23].playButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.tooltipContent=l[48]),r[2]&16384&&(a.disabled=l[76]),r[0]&67108864|r[1]&16|r[2]&16384|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].playButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function K4(t){let e,i,n;function o(l){t[177](l)}let s={isMobile:!1,isPlaying:t[35],click:t[87],disabled:t[76]};return t[26]!==void 0&&(s.ref=t[26]),e=new Ll({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&16&&(a.isPlaying=l[35]),r[2]&16384&&(a.disabled=l[76]),!i&&r[0]&67108864&&(i=!0,a.ref=l[26],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function gr(t){let e,i,n;function o(l){t[179](l)}let s={disabled:!t[8],tooltipContent:W("tooltip_next"),$$slots:{default:[G4]},$$scope:{ctx:t}};return t[23].nextButton!==void 0&&(s.ref=t[23].nextButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&256&&(a.disabled=!l[8]),r[0]&2304|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].nextButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function G4(t){let e,i;return e=new Yo({props:{click:t[11],type:"next",disabled:!t[8],isMobile:!1}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&2048&&(s.click=n[11]),o[0]&256&&(s.disabled=!n[8]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Y4(t){let e,i,n,o,s=t[124]&&Q4(t),l=t[123]&&J4(t),r=t[122]&&$4(t);return{c(){s&&s.c(),e=R(),l&&l.c(),i=R(),r&&r.c(),n=ct()},m(a,c){s&&s.m(a,c),T(a,e,c),l&&l.m(a,c),T(a,i,c),r&&r.m(a,c),T(a,n,c),o=!0},p(a,c){a[124]&&s.p(a,c),a[123]&&l.p(a,c),a[122]&&r.p(a,c)},i(a){o||(d(s),d(l),d(r),o=!0)},o(a){g(s),g(l),g(r),o=!1},d(a){a&&(P(e),P(i),P(n)),s&&s.d(a),l&&l.d(a),r&&r.d(a)}}}function Q4(t){let e,i,n;function o(l){t[180](l)}let s={disabled:t[74],tooltipContent:W("tooltip_interactive_go_back"),disabledTooltipContent:W(t[126]),$$slots:{default:[X4]},$$scope:{ctx:t}};return t[23].playPrevChapterButton!==void 0&&(s.ref=t[23].playPrevChapterButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[2]&4096&&(a.disabled=l[74]),r[0]&131072|r[2]&4096|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].playPrevChapterButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function X4(t){let e,i;return e=new du({props:{disabled:t[74],click:t[17]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[2]&4096&&(s.disabled=n[74]),o[0]&131072&&(s.click=n[17]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function J4(t){let e,i,n;function o(l){t[181](l)}let s={disabled:t[77],tooltipContent:W("tooltip_interactive_seek"),disabledTooltipContent:W(t[80]),$$slots:{default:[x4]},$$scope:{ctx:t}};return t[23].seekToInteractiveButton!==void 0&&(s.ref=t[23].seekToInteractiveButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[2]&32768&&(a.disabled=l[77]),r[2]&262144&&(a.disabledTooltipContent=W(l[80])),r[0]&32768|r[2]&32768|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].seekToInteractiveButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function x4(t){let e,i;return e=new uu({props:{disabled:t[77],click:t[15]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[2]&32768&&(s.disabled=n[77]),o[0]&32768&&(s.click=n[15]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function $4(t){let e,i,n;function o(l){t[182](l)}let s={tooltipContent:t[49],disabled:t[78],$$slots:{default:[e3]},$$scope:{ctx:t}};return t[23].interactiveGraphButton!==void 0&&(s.ref=t[23].interactiveGraphButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&262144&&(a.tooltipContent=l[49]),r[2]&65536&&(a.disabled=l[78]),r[0]&65536|r[1]&1|r[2]&65536|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].interactiveGraphButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function e3(t){let e,i;return e=new cu({props:{click:t[16],graphIsOpened:t[31],disabled:t[78]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&65536&&(s.click=n[16]),o[1]&1&&(s.graphIsOpened=n[31]),o[2]&65536&&(s.disabled=n[78]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function br(t){let e,i,n;function o(l){t[183](l)}let s={tooltipContent:t[51],$$slots:{default:[t3]},$$scope:{ctx:t}};return t[23].liveButton!==void 0&&(s.ref=t[23].liveButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&1048576&&(a.tooltipContent=l[51]),r[0]&2097152|r[1]&1048576|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].liveButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function t3(t){let e,i;return e=new ou({props:{isActiveLive:t[21],isMobile:!1,ariaLabel:t[51]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.isActiveLive=n[21]),o[1]&1048576&&(s.ariaLabel=n[51]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function _r(t){let e,i,n;function o(l){t[184](l)}let s={isMobile:!1,showDuration:t[56],position:t[4]?t[81]:t[82],duration:t[4]?t[83]:t[84]};return t[23].time!==void 0&&(s.ref=t[23].time),e=new X1({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&33554432&&(a.showDuration=l[56]),r[0]&16|r[2]&1572864&&(a.position=l[4]?l[81]:l[82]),r[0]&16|r[2]&6291456&&(a.duration=l[4]?l[83]:l[84]),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].time,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function vr(t){let e,i;return e=new au({props:{position:t[82],duration:t[84],timeCodes:t[103]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[2]&1048576&&(s.position=n[82]),o[2]&4194304&&(s.duration=n[84]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function i3(t){let e,i,n=t[20]&&vr(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),T(o,e,s),i=!0},p(o,s){o[20]?n?(n.p(o,s),s[0]&1048576&&d(n,1)):(n=vr(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),g(n,1,1,()=>{n=null}),fe())},i(o){i||(d(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d(o)}}}function n3(t){let e,i;return e=new mu({props:{iconUrl:t[211],ariaLabel:t[212]??t[215],testId:t[213],onClick:t[214]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&268435456&&(s.iconUrl=n[211]),o[0]&268435456&&(s.ariaLabel=n[212]??n[215]),o[0]&268435456&&(s.testId=n[213]),o[0]&268435456&&(s.onClick=n[214]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function kr(t){let e,i;return e=new Vt({props:{tooltipContent:t[215],width:40,$$slots:{default:[n3]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&268435456&&(s.tooltipContent=n[215]),o[0]&268435456|o[7]&2&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function wr(t){let e,i,n;function o(l){t[187](l)}let s={disabled:!t[6],tooltipContent:t[52],$$slots:{default:[o3]},$$scope:{ctx:t}};return t[23].vkLogo!==void 0&&(s.ref=t[23].vkLogo),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&64&&(a.disabled=!l[6]),r[1]&2097152&&(a.tooltipContent=l[52]),r[0]&192|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].vkLogo,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function o3(t){let e,i;return e=new iu({props:{click:t[88],logoClickable:t[6],videoLogoUrl:t[7]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&64&&(s.logoClickable=n[6]),o[0]&128&&(s.videoLogoUrl=n[7]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function l3(t){let e,i;return e=new k2({props:{isAudioAvailable:t[79],click:t[129]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[2]&131072&&(s.isAudioAvailable=n[79]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function yr(t){let e,i,n;function o(l){t[189](l)}let s={tooltipContent:t[53],$$slots:{default:[s3]},$$scope:{ctx:t}};return t[23].subtitles!==void 0&&(s.ref=t[23].subtitles),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&4194304&&(a.tooltipContent=l[53]),r[0]&262144|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].subtitles,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function s3(t){let e,i;return e=new Vd({props:{isSubtitlesEnabled:t[18],click:t[89]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&262144&&(s.isSubtitlesEnabled=n[18]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Cr(t){let e,i,n,o;function s(r){t[190](r)}let l={supportLink:t[10],playerControlsHeight:t[47]?.clientHeight,returnFocus:t[14]};return t[24]!==void 0&&(l.ref=t[24]),i=new Q1({props:l}),ke.push(()=>je(i,"ref",s)),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","settings-menu v-st0uzk")},m(r,a){T(r,e,a),D(i,e,null),o=!0},p(r,a){const c={};a[0]&1024&&(c.supportLink=r[10]),a[1]&65536&&(c.playerControlsHeight=r[47]?.clientHeight),a[0]&16384&&(c.returnFocus=r[14]),!n&&a[0]&16777216&&(n=!0,c.ref=r[24],qe(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function Sr(t){let e,i,n;function o(l){t[192](l)}let s={tooltipContent:t[27]?void 0:W("tooltip_settings_off"),$$slots:{default:[r3]},$$scope:{ctx:t}};return t[23].settings!==void 0&&(s.ref=t[23].settings),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&134217728&&(a.tooltipContent=l[27]?void 0:W("tooltip_settings_off")),r[0]&33554432|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].settings,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function r3(t){let e,i,n;function o(l){t[191](l)}let s={};return t[25]!==void 0&&(s.ref=t[25]),e=new El({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&33554432&&(i=!0,a.ref=l[25],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function a3(t){let e,i,n;function o(l){t[193](l)}let s={className:t[42]?"":"out-of-view",tooltipContent:t[50],$$slots:{default:[u3]},$$scope:{ctx:t}};return t[23].context!==void 0&&(s.ref=t[23].context),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&2048&&(a.className=l[42]?"":"out-of-view"),r[1]&524288&&(a.tooltipContent=l[50]),r[1]&524288|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].context,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function u3(t){let e,i;return e=new D4({props:{ariaLabel:t[50]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[1]&524288&&(s.ariaLabel=n[50]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Pr(t){let e,i,n;function o(l){t[194](l)}let s={tooltipContent:t[54],$$slots:{default:[c3]},$$scope:{ctx:t}};return t[23].fullscreen!==void 0&&(s.ref=t[23].fullscreen),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&8388608&&(a.tooltipContent=l[54]),r[0]&1073750016|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].fullscreen,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function c3(t){let e,i;return e=new eu({props:{click:t[13],isFullscreen:t[30]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&8192&&(s.click=n[13]),o[0]&1073741824&&(s.isFullscreen=n[30]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Tr(t){let e,i,n;function o(l){t[195](l)}let s={tooltipContent:t[55],$$slots:{default:[f3]},$$scope:{ctx:t}};return t[23].chromecast!==void 0&&(s.ref=t[23].chromecast),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&16777216&&(a.tooltipContent=l[55]),r[0]&536870912|r[7]&2&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].chromecast,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function f3(t){let e,i;return e=new nu({props:{isMobile:!1,state:t[29],click:t[128]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&536870912&&(s.state=n[29]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Er(t){let e,i,n;function o(l){t[198](l)}let s={};return t[23].interactiveTimeIcon!==void 0&&(s.ref=t[23].interactiveTimeIcon),e=new ku({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&8388608&&(i=!0,a.ref=l[23].interactiveTimeIcon,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function d3(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne,L,V,x,Y,le,K;i=new ru({props:{isHidden:!t[46],isAds:t[4],canRewindLive:t[5],isRewindableLive:t[32]}});let C=t[39]&&mr(t),G=t[36]&&pr(t),z=t[37]&&hr(t),ee=t[38]&&gr(t),Ee=t[119]&&Y4(t),Re=!t[4]&&t[33]&&br(t),Ne=t[19]&&_r(t);function ze(me){t[185](me)}let ve={className:"w-max",disabled:!t[20],tooltipContent:W("tooltip_episodes"),$$slots:{default:[i3]},$$scope:{ctx:t}};t[23].episodes!==void 0&&(ve.ref=t[23].episodes),_=new Vt({props:ve}),ke.push(()=>je(_,"ref",ze));let we=Rt(t[28]),Q=[];for(let me=0;me<we.length;me+=1)Q[me]=kr(dr(t,we,me));const $=me=>g(Q[me],1,1,()=>{Q[me]=null});let ye=t[44]&&wr(t);function re(me){t[188](me)}let We={$$slots:{default:[l3]},$$scope:{ctx:t}};t[23].volume!==void 0&&(We.ref=t[23].volume),A=new Vt({props:We}),ke.push(()=>je(A,"ref",re));let Le=t[41]&&yr(t),Ie=!t[85]&&!t[4]&&Cr(t),ue=t[43]&&Sr(t),Se=t[86].features.contextMenuButton&&a3(t),he=t[45]&&Pr(t),se=t[40]&&Tr(t),Be=t[34]&&Er(t);return{c(){e=E("div"),U(i.$$.fragment),n=R(),o=E("div"),s=E("div"),C&&C.c(),l=R(),G&&G.c(),r=R(),z&&z.c(),a=R(),ee&&ee.c(),c=R(),Ee&&Ee.c(),f=R(),Re&&Re.c(),p=R(),Ne&&Ne.c(),h=R(),U(_.$$.fragment),v=R(),S=E("div");for(let me=0;me<Q.length;me+=1)Q[me].c();w=R(),ye&&ye.c(),y=R(),U(A.$$.fragment),M=R(),Le&&Le.c(),Z=R(),Ie&&Ie.c(),ne=R(),ue&&ue.c(),L=R(),Se&&Se.c(),V=R(),he&&he.c(),x=R(),se&&se.c(),Y=R(),Be&&Be.c(),le=ct(),u(s,"class","controls-left v-st0uzk"),so(()=>t[186].call(s)),u(S,"class","controls-right v-st0uzk"),u(o,"class","controls v-st0uzk"),u(e,"class","wrapper-bottom v-st0uzk"),B(e,"hidden",t[1]),B(e,"controls-hidden",!t[3]),B(e,"no-smooth",t[2])},m(me,Ce){T(me,e,Ce),D(i,e,null),m(e,n),m(e,o),m(o,s),C&&C.m(s,null),m(s,l),G&&G.m(s,null),m(s,r),z&&z.m(s,null),m(s,a),ee&&ee.m(s,null),m(s,c),Ee&&Ee.m(s,null),m(s,f),Re&&Re.m(s,null),m(s,p),Ne&&Ne.m(s,null),m(s,h),D(_,s,null),k=_l(s,t[186].bind(s)),m(o,v),m(o,S);for(let Pe=0;Pe<Q.length;Pe+=1)Q[Pe]&&Q[Pe].m(S,null);m(S,w),ye&&ye.m(S,null),m(S,y),D(A,S,null),m(S,M),Le&&Le.m(S,null),m(S,Z),Ie&&Ie.m(S,null),m(S,ne),ue&&ue.m(S,null),m(S,L),Se&&Se.m(S,null),m(S,V),he&&he.m(S,null),m(S,x),se&&se.m(S,null),t[196](o),t[197](e),T(me,Y,Ce),Be&&Be.m(me,Ce),T(me,le,Ce),K=!0},p(me,Ce){const Pe={};Ce[1]&32768&&(Pe.isHidden=!me[46]),Ce[0]&16&&(Pe.isAds=me[4]),Ce[0]&32&&(Pe.canRewindLive=me[5]),Ce[1]&2&&(Pe.isRewindableLive=me[32]),i.$set(Pe),me[39]?C?(C.p(me,Ce),Ce[1]&256&&d(C,1)):(C=mr(me),C.c(),d(C,1),C.m(s,l)):C&&(ce(),g(C,1,1,()=>{C=null}),fe()),me[36]?G?(G.p(me,Ce),Ce[1]&32&&d(G,1)):(G=pr(me),G.c(),d(G,1),G.m(s,r)):G&&(ce(),g(G,1,1,()=>{G=null}),fe()),me[37]?z?(z.p(me,Ce),Ce[1]&64&&d(z,1)):(z=hr(me),z.c(),d(z,1),z.m(s,a)):z&&(ce(),g(z,1,1,()=>{z=null}),fe()),me[38]?ee?(ee.p(me,Ce),Ce[1]&128&&d(ee,1)):(ee=gr(me),ee.c(),d(ee,1),ee.m(s,c)):ee&&(ce(),g(ee,1,1,()=>{ee=null}),fe()),me[119]&&Ee.p(me,Ce),!me[4]&&me[33]?Re?(Re.p(me,Ce),Ce[0]&16|Ce[1]&4&&d(Re,1)):(Re=br(me),Re.c(),d(Re,1),Re.m(s,p)):Re&&(ce(),g(Re,1,1,()=>{Re=null}),fe()),me[19]?Ne?(Ne.p(me,Ce),Ce[0]&524288&&d(Ne,1)):(Ne=_r(me),Ne.c(),d(Ne,1),Ne.m(s,h)):Ne&&(ce(),g(Ne,1,1,()=>{Ne=null}),fe());const Ge={};if(Ce[0]&1048576&&(Ge.disabled=!me[20]),Ce[0]&1048576|Ce[2]&5242880|Ce[7]&2&&(Ge.$$scope={dirty:Ce,ctx:me}),!b&&Ce[0]&8388608&&(b=!0,Ge.ref=me[23].episodes,qe(()=>b=!1)),_.$set(Ge),Ce[0]&268435456){we=Rt(me[28]);let Je;for(Je=0;Je<we.length;Je+=1){const Qe=dr(me,we,Je);Q[Je]?(Q[Je].p(Qe,Ce),d(Q[Je],1)):(Q[Je]=kr(Qe),Q[Je].c(),d(Q[Je],1),Q[Je].m(S,w))}for(ce(),Je=we.length;Je<Q.length;Je+=1)$(Je);fe()}me[44]?ye?(ye.p(me,Ce),Ce[1]&8192&&d(ye,1)):(ye=wr(me),ye.c(),d(ye,1),ye.m(S,y)):ye&&(ce(),g(ye,1,1,()=>{ye=null}),fe());const it={};Ce[2]&131072|Ce[7]&2&&(it.$$scope={dirty:Ce,ctx:me}),!oe&&Ce[0]&8388608&&(oe=!0,it.ref=me[23].volume,qe(()=>oe=!1)),A.$set(it),me[41]?Le?(Le.p(me,Ce),Ce[1]&1024&&d(Le,1)):(Le=yr(me),Le.c(),d(Le,1),Le.m(S,Z)):Le&&(ce(),g(Le,1,1,()=>{Le=null}),fe()),!me[85]&&!me[4]?Ie?(Ie.p(me,Ce),Ce[0]&16|Ce[2]&8388608&&d(Ie,1)):(Ie=Cr(me),Ie.c(),d(Ie,1),Ie.m(S,ne)):Ie&&(ce(),g(Ie,1,1,()=>{Ie=null}),fe()),me[43]?ue?(ue.p(me,Ce),Ce[1]&4096&&d(ue,1)):(ue=Sr(me),ue.c(),d(ue,1),ue.m(S,L)):ue&&(ce(),g(ue,1,1,()=>{ue=null}),fe()),me[86].features.contextMenuButton&&Se.p(me,Ce),me[45]?he?(he.p(me,Ce),Ce[1]&16384&&d(he,1)):(he=Pr(me),he.c(),d(he,1),he.m(S,x)):he&&(ce(),g(he,1,1,()=>{he=null}),fe()),me[40]?se?(se.p(me,Ce),Ce[1]&512&&d(se,1)):(se=Tr(me),se.c(),d(se,1),se.m(S,null)):se&&(ce(),g(se,1,1,()=>{se=null}),fe()),(!K||Ce[0]&2)&&B(e,"hidden",me[1]),(!K||Ce[0]&8)&&B(e,"controls-hidden",!me[3]),(!K||Ce[0]&4)&&B(e,"no-smooth",me[2]),me[34]?Be?(Be.p(me,Ce),Ce[1]&8&&d(Be,1)):(Be=Er(me),Be.c(),d(Be,1),Be.m(le.parentNode,le)):Be&&(ce(),g(Be,1,1,()=>{Be=null}),fe())},i(me){if(!K){d(i.$$.fragment,me),d(C),d(G),d(z),d(ee),d(Ee),d(Re),d(Ne),d(_.$$.fragment,me);for(let Ce=0;Ce<we.length;Ce+=1)d(Q[Ce]);d(ye),d(A.$$.fragment,me),d(Le),d(Ie),d(ue),d(Se),d(he),d(se),d(Be),K=!0}},o(me){g(i.$$.fragment,me),g(C),g(G),g(z),g(ee),g(Ee),g(Re),g(Ne),g(_.$$.fragment,me),Q=Q.filter(q4);for(let Ce=0;Ce<Q.length;Ce+=1)g(Q[Ce]);g(ye),g(A.$$.fragment,me),g(Le),g(Ie),g(ue),g(Se),g(he),g(se),g(Be),K=!1},d(me){me&&(P(e),P(Y),P(le)),F(i),C&&C.d(),G&&G.d(),z&&z.d(),ee&&ee.d(),Ee&&Ee.d(),Re&&Re.d(),Ne&&Ne.d(),F(_),k(),pn(Q,me),ye&&ye.d(),F(A),Le&&Le.d(),Ie&&Ie.d(),ue&&ue.d(),Se&&Se.d(),he&&he.d(),se&&se.d(),t[196](null),t[197](null),Be&&Be.d(me)}}}function m3(t,e,i){let n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne,L,V,x,Y,le,K,C,G,z,ee,Ee=j,Re=()=>(Ee(),Ee=Wt(L,H=>i(146,ee=H)),L),Ne,ze=j,ve=()=>(ze(),ze=Wt(ne,H=>i(147,Ne=H)),ne),we,Q=j,$=()=>(Q(),Q=Wt(Z,H=>i(148,we=H)),Z),ye,re=j,We=()=>(re(),re=Wt(M,H=>i(149,ye=H)),M),Le,Ie=j,ue=()=>(Ie(),Ie=Wt(oe,H=>i(150,Le=H)),oe),Se,he=j,se=()=>(he(),he=Wt(A,H=>i(151,Se=H)),A),Be,me=j,Ce=()=>(me(),me=Wt(y,H=>i(152,Be=H)),y),Pe,Ge=j,it=()=>(Ge(),Ge=Wt(w,H=>i(153,Pe=H)),w),Je,Qe=j,tt=()=>(Qe(),Qe=Wt(S,H=>i(154,Je=H)),S),Et,ht=j,Fe=()=>(ht(),ht=Wt(v,H=>i(155,Et=H)),v),yt,Yt=j,de=()=>(Yt(),Yt=Wt(k,H=>i(156,yt=H)),k),bt,at=j,Qt=()=>(at(),at=Wt(b,H=>i(157,bt=H)),b),ut,vt=j,ri=()=>(vt(),vt=Wt(_,H=>i(158,ut=H)),_),Ot,ai=j,Ui=()=>(ai(),ai=Wt(h,H=>i(159,Ot=H)),h),ui,ki=j,Qi=()=>(ki(),ki=Wt(p,H=>i(160,ui=H)),p),ci,fi=j,wi=()=>(fi(),fi=Wt(f,H=>i(161,ci=H)),f),At,Xt=j,yi=()=>(Xt(),Xt=Wt(c,H=>i(162,At=H)),c),Jt,Ci,di,zt,Ni,St,Dt,Si,Ri,Pt,xt,$t,mi,kt,It,pi,_t,Pi,Ti,Ct,Ft,qi,Ht,Xi;t.$$.on_destroy.push(()=>Ee()),t.$$.on_destroy.push(()=>ze()),t.$$.on_destroy.push(()=>Q()),t.$$.on_destroy.push(()=>re()),t.$$.on_destroy.push(()=>Ie()),t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>me()),t.$$.on_destroy.push(()=>Ge()),t.$$.on_destroy.push(()=>Qe()),t.$$.on_destroy.push(()=>ht()),t.$$.on_destroy.push(()=>Yt()),t.$$.on_destroy.push(()=>at()),t.$$.on_destroy.push(()=>vt()),t.$$.on_destroy.push(()=>ai()),t.$$.on_destroy.push(()=>ki()),t.$$.on_destroy.push(()=>fi()),t.$$.on_destroy.push(()=>Xt());let{bottomHidden:ei}=e,{bottomNoSmooth:Mt}=e,{showControls:Bt}=e,{controlsElementRef:hi=void 0}=e,{isAds:Lt=!1}=e,{canRewindLive:ji}=e,{logoClickable:Zi}=e,{logoHidden:Ei}=e,{videoLogoUrl:gi}=e,{showNextPrevButtons:gt}=e,{nextButtonActive:Oi}=e,{prevButtonActive:zi}=e,{isOneVideoPlaylist:Ai=!1}=e,{supportLink:Ii}=e,{customFullscreenSupported:Li=!0}=e,{playNextVideo:Di}=e,{playPrevVideo:ti}=e,{repeatPlaylist:bi}=e,{toggleFullscreen:ii}=e,{returnFocus:Ut}=e,{seekToInteractive:Ve}=e,{toggleGraph:Fi}=e,{playPrevChapter:_i}=e;const He=pt(),Wi=Ko(),qt=sn(),en=He.actions.internal.toggleMuted,ni=He.actions.internal.togglePlay,Ji=He.actions.internal.pause,jt=He.actions.internal.toggleSubtitle,Vi=He.callbacks?.onAudioDoesNotExistHint,tn=He.callbacks?.onAudioDisabledHint,xi=He.state.duration$;O(t,xi,H=>i(84,Ht=H));const Ki=He.state.positionWithScrubbing$;O(t,Ki,H=>i(82,Ft=H));const Hi=He.state.playbackState$;O(t,Hi,H=>i(163,di=H));const Nt=He.state.chromecastConnected$;O(t,Nt,H=>i(85,Xi=H));const te=He.state.isAudioAvailable$;O(t,te,H=>i(79,V=H));const lt=He.state.isAudioDisabled,oi=He.state.isEnded$;O(t,oi,H=>i(171,kt=H));const Gi=He.state.isLive$;O(t,Gi,H=>i(33,Si=H));const wt=He.state.isActiveLive$;O(t,wt,H=>i(165,St=H));const $i=He.state.isRewindableLive$;O(t,$i,H=>i(32,Dt=H));const hn=He.ui.isPictureInPictureActive$;O(t,hn,H=>i(167,Pt=H));const an=He.ui.pictureInPictureType$;O(t,an,H=>i(166,Ri=H));const un=He.ui.settingsMenuVisible;O(t,un,H=>i(27,le=H));const nn=He.ui.settingsMenuOpenedByKeyboard;O(t,nn,H=>i(142,Y=H));const X=He.ui.controls,ft=He.actions.internal.getVideoEpisodes(),gn=He.state.chromecastState$;O(t,gn,H=>i(29,Jt=H));const bn=He.state.availableSubtitlesList$;O(t,bn,H=>i(170,mi=H));const _n=He.state.currentSubtitle$;O(t,_n,H=>i(172,It=H));const Mn=X.disabledControls$;O(t,Mn,H=>i(174,_t=H));const Bn=He.ui.contextMenuVisible;O(t,Bn,H=>i(164,zt=H));const Nn=He.ui.contextMenu.showContextMenuBtn$;O(t,Nn,H=>i(168,xt=H));const Rn=He.ui.contextMenu.openedByKeyboard$;O(t,Rn,H=>i(169,$t=H));const J=He.ui.startedByKeyboard$;O(t,J,H=>i(141,x=H));const On=He.ads.duration;O(t,On,H=>i(83,qi=H));const Kn=He.ads.position;O(t,Kn,H=>i(81,Ct=H));const Gn=He.ads.playbackState;O(t,Gn,H=>i(173,pi=H));const Hn=He.ui.isFullscreen;O(t,Hn,H=>i(30,Ci=H));const Yn=He.ui.playerSize;O(t,Yn,H=>i(144,C=H));const wn=He.ui.currentGridType$;O(t,wn,H=>i(145,G=H));const yn=He.ui.additionalButtons$;O(t,yn,H=>i(28,z=H));const Cn=He.actions.internal.getVideoElement,co=He.actions.internal.replayInteractive,on=He.state.isInteractive,Qn=He.state.isInteractiveTime$;O(t,Qn,H=>i(143,K=H));const Xn=He.state.interactiveEpisodes$;O(t,Xn,H=>i(199,Pi=H));const fo=He.state.isInteractiveGraphEnabled,mo=He.state.isSeekToInteractiveEnable,Un=He.state.isPlayPrevChapterEnabled,Jn=He.state.graphIsOpened$;O(t,Jn,H=>i(31,Ni=H));const q=He.state.playPrevChapterDisabledTooltip,li=Wi.seekToInteractiveDisabledTooltip$;O(t,li,H=>i(80,Ti=H));let zn;zn=!!(on&&Pi.length);const st=()=>He.actions.internal.toggleChromecast();let I,ae,Te,Ue,Xe,si,Mi,Zt,cn,qn,So,po,Nl,Qo,Rl,Xo,Jo,xo,Ol,zl,Dl,$o="";const Nu=(H,tl)=>{if(!H){i(51,$o=W("tooltip_live"));return}tl===xe.PlaybackState.PAUSED&&i(51,$o=W("tooltip_play"))};let Fl,Hl,Ul,ql,Po;const Ke={};let fn,ho,el,jl;const Ru=ie.throttleFn(_u,u1,{leading:!1});let To,Eo,Ao;function Ou(){lt?tn?.():V?en():Vi?.()}const zu=on?co:Ai?ni:bi;function Du(H){t.$$.not_equal(Ke.prevButton,H)&&(Ke.prevButton=H,i(23,Ke))}function Fu(H){t.$$.not_equal(Ke.replayButton,H)&&(Ke.replayButton=H,i(23,Ke))}function Hu(H){Ao=H,i(26,Ao)}function Uu(H){t.$$.not_equal(Ke.playButton,H)&&(Ke.playButton=H,i(23,Ke))}function qu(H){t.$$.not_equal(Ke.nextButton,H)&&(Ke.nextButton=H,i(23,Ke))}function ju(H){t.$$.not_equal(Ke.playPrevChapterButton,H)&&(Ke.playPrevChapterButton=H,i(23,Ke))}function Zu(H){t.$$.not_equal(Ke.seekToInteractiveButton,H)&&(Ke.seekToInteractiveButton=H,i(23,Ke))}function Wu(H){t.$$.not_equal(Ke.interactiveGraphButton,H)&&(Ke.interactiveGraphButton=H,i(23,Ke))}function Ku(H){t.$$.not_equal(Ke.liveButton,H)&&(Ke.liveButton=H,i(23,Ke))}function Gu(H){t.$$.not_equal(Ke.time,H)&&(Ke.time=H,i(23,Ke))}function Yu(H){t.$$.not_equal(Ke.episodes,H)&&(Ke.episodes=H,i(23,Ke))}function Qu(){Po=this.clientWidth,i(22,Po)}function Xu(H){t.$$.not_equal(Ke.vkLogo,H)&&(Ke.vkLogo=H,i(23,Ke))}function Ju(H){t.$$.not_equal(Ke.volume,H)&&(Ke.volume=H,i(23,Ke))}function xu(H){t.$$.not_equal(Ke.subtitles,H)&&(Ke.subtitles=H,i(23,Ke))}function $u(H){To=H,i(24,To)}function ec(H){Eo=H,i(25,Eo)}function tc(H){t.$$.not_equal(Ke.settings,H)&&(Ke.settings=H,i(23,Ke))}function ic(H){t.$$.not_equal(Ke.context,H)&&(Ke.context=H,i(23,Ke))}function nc(H){t.$$.not_equal(Ke.fullscreen,H)&&(Ke.fullscreen=H,i(23,Ke))}function oc(H){t.$$.not_equal(Ke.chromecast,H)&&(Ke.chromecast=H,i(23,Ke))}function lc(H){ke[H?"unshift":"push"](()=>{Jo=H,i(47,Jo)})}function sc(H){ke[H?"unshift":"push"](()=>{hi=H,i(0,hi)})}function rc(H){t.$$.not_equal(Ke.interactiveTimeIcon,H)&&(Ke.interactiveTimeIcon=H,i(23,Ke))}return t.$$set=H=>{"bottomHidden"in H&&i(1,ei=H.bottomHidden),"bottomNoSmooth"in H&&i(2,Mt=H.bottomNoSmooth),"showControls"in H&&i(3,Bt=H.showControls),"controlsElementRef"in H&&i(0,hi=H.controlsElementRef),"isAds"in H&&i(4,Lt=H.isAds),"canRewindLive"in H&&i(5,ji=H.canRewindLive),"logoClickable"in H&&i(6,Zi=H.logoClickable),"logoHidden"in H&&i(131,Ei=H.logoHidden),"videoLogoUrl"in H&&i(7,gi=H.videoLogoUrl),"showNextPrevButtons"in H&&i(132,gt=H.showNextPrevButtons),"nextButtonActive"in H&&i(8,Oi=H.nextButtonActive),"prevButtonActive"in H&&i(9,zi=H.prevButtonActive),"isOneVideoPlaylist"in H&&i(133,Ai=H.isOneVideoPlaylist),"supportLink"in H&&i(10,Ii=H.supportLink),"customFullscreenSupported"in H&&i(134,Li=H.customFullscreenSupported),"playNextVideo"in H&&i(11,Di=H.playNextVideo),"playPrevVideo"in H&&i(12,ti=H.playPrevVideo),"repeatPlaylist"in H&&i(135,bi=H.repeatPlaylist),"toggleFullscreen"in H&&i(13,ii=H.toggleFullscreen),"returnFocus"in H&&i(14,Ut=H.returnFocus),"seekToInteractive"in H&&i(15,Ve=H.seekToInteractive),"toggleGraph"in H&&i(16,Fi=H.toggleGraph),"playPrevChapter"in H&&i(17,_i=H.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[5]&524288&&i(140,n=_t.has(rt.EPISODE_BUTTON)),t.$$.dirty[5]&524288&&i(78,o=_t.has(rt.GRAPH_BUTTON)),t.$$.dirty[5]&524288&&i(77,s=_t.has(rt.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[5]&524288&&i(76,l=_t.has(rt.PLAY_BUTTON)),t.$$.dirty[5]&524288&&i(75,r=_t.has(rt.REPLAY_BUTTON)),t.$$.dirty[5]&524288&&i(74,a=_t.has(rt.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[0]&16|t.$$.dirty[5]&262400&&i(35,I=Lt?pi===Kt.PLAYING:di===xe.PlaybackState.PLAYING),t.$$.dirty[5]&131072&&i(18,ae=It.value!=="off"),t.$$.dirty[0]&16|t.$$.dirty[5]&65536&&i(36,Te=kt&&!Lt||on),t.$$.dirty[0]&16|t.$$.dirty[5]&65536&&i(37,Ue=!kt||on||Lt),t.$$.dirty[4]&2097152&&i(136,Xe=dn(G,exports.GridTypes.M)),t.$$.dirty[0]&272|t.$$.dirty[4]&2097408&&i(38,si=gt&&dn(G,exports.GridTypes.M)&&!Lt&&Oi),t.$$.dirty[0]&528|t.$$.dirty[4]&2097408&&i(39,Mi=gt&&dn(G,exports.GridTypes.M)&&!Lt&&zi),t.$$.dirty[0]&536870912|t.$$.dirty[4]&2097152|t.$$.dirty[5]&6144&&i(40,Zt=Jt!==xe.ChromecastState.NOT_AVAILABLE&&!(Pt&&Ri===Tn.DocumentPictureInPicture)&&dn(G,exports.GridTypes.M)&&!on),t.$$.dirty[4]&2097152|t.$$.dirty[5]&32768&&i(41,cn=mi.length>0&&dn(G,exports.GridTypes.M)),t.$$.dirty[5]&24576&&i(42,qn=$t||xt),t.$$.dirty[4]&2097152&&i(43,So=dn(G,exports.GridTypes.S)),t.$$.dirty[4]&128&&i(44,po=!Ei),t.$$.dirty[4]&2098304|t.$$.dirty[5]&6144&&i(45,Nl=qt.features.fullscreen&&(Ei||dn(G,exports.GridTypes.S))&&!(Pt&&Ri===Tn.DocumentPictureInPicture)&&(on?Li:!0)),t.$$.dirty[0]&16|t.$$.dirty[1]&4&&i(19,Qo=(!Si||Lt)&&!(qt.features.interactiveHideTime&&on)),t.$$.dirty[4]&1048576&&i(46,Rl=C.width>100),t.$$.dirty[0]&16|t.$$.dirty[1]&4|t.$$.dirty[4]&69632&&i(20,Xo=!Lt&&!Si&&!!ft?.length&&Xe&&!n),t.$$.dirty[1]&2|t.$$.dirty[5]&1024&&i(21,xo=!Dt||St),t.$$.dirty[5]&256&&i(48,Ol=di===xe.PlaybackState.PLAYING?W("tooltip_pause"):W("tooltip_play")),t.$$.dirty[1]&1&&i(49,zl=W(Ni?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off")),t.$$.dirty[5]&512&&i(50,Dl=W(zt?"aria_label_context_menu_close":"aria_label_context_menu_open")),t.$$.dirty[0]&2097152|t.$$.dirty[5]&256&&Nu(xo,di),t.$$.dirty[0]&262144&&i(53,Hl=W(ae?"tooltip_subtitles_on":"tooltip_subtitles_off")),t.$$.dirty[0]&1073741824&&i(54,Ul=W(Ci?"tooltip_fullscreen_on":"tooltip_fullscreen_off")),t.$$.dirty[0]&536870912&&i(55,ql=Jt===xe.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off")),t.$$.dirty[0]&268435456|t.$$.dirty[4]&2143289344|t.$$.dirty[5]&255&&i(137,fn={prevButton:At?At.right-At.left:0,replayButton:ci?ci.right-ci.left:0,playButton:ui?ui.right-ui.left:0,nextButton:Ot?Ot.right-Ot.left:0,playPrevChapterButton:ut?ut.right-ut.left:0,seekToInteractiveButton:bt?bt.right-bt.left:0,interactiveGraphButton:yt?yt.right-yt.left:0,liveButton:Et?Et.right-Et.left:0,time:Je?Je.right-Je.left:0,episodes:Pe?Pe.right-Pe.left:0,vkLogo:Be?Be.right-Be.left:0,volume:Se?Se.right-Se.left:0,subtitles:Le?Le.right-Le.left:0,settings:ye?ye.right-ye.left:0,context:we?we.right-we.left:0,fullscreen:Ne?Ne.right-Ne.left:0,chromecast:ee?ee.right-ee.left:0,additionalButtons:z.length?z.reduce(H=>[...H,40],[]):[]}),t.$$.dirty[4]&24576&&(!ho||ho<fn.time)&&i(138,ho=fn.time),t.$$.dirty[0]&5767168|t.$$.dirty[4]&2121728){let H=0;Xo&&(dn(G,exports.GridTypes.XL)?H=fn.time:H=Rc);const tl=fn.prevButton+fn.playButton+fn.nextButton+fn.seekToInteractiveButton+fn.interactiveGraphButton+fn.liveButton+ho+H;i(139,el=Qo&&Po>=tl)}t.$$.dirty[4]&2129920&&i(56,jl=el&&dn(G,exports.GridTypes.M)),t.$$.dirty[0]&8388616|t.$$.dirty[4]&1572864&&Ru(Cn(),X,Ke,Bt),t.$$.dirty[0]&167772160&&Sl(Eo,le,nn),t.$$.dirty[0]&150994944|t.$$.dirty[4]&262144&&Pl(To,le,Y),t.$$.dirty[0]&67108864|t.$$.dirty[4]&131072&&vu(J,x,Ao)},i(52,Fl=qt.logoType===ro.VK_VIDEO?W("tooltip_vk_video_logo"):W("tooltip_vk_logo")),yi(i(73,{prevButton:c,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:_,seekToInteractiveButton:b,interactiveGraphButton:k,liveButton:v,time:S,episodes:w,vkLogo:y,volume:A,subtitles:oe,settings:M,context:Z,fullscreen:ne,chromecast:L}=X,c,wi(i(72,f)),Qi(i(71,p)),Ui(i(70,h)),ri(i(69,_)),Qt(i(68,b)),de(i(67,k)),Fe(i(66,v)),tt(i(65,S)),it(i(64,w)),Ce(i(63,y)),se(i(62,A)),ue(i(61,oe)),We(i(60,M)),$(i(59,Z)),ve(i(58,ne)),Re(i(57,L)))),[hi,ei,Mt,Bt,Lt,ji,Zi,gi,Oi,zi,Ii,Di,ti,ii,Ut,Ve,Fi,_i,ae,Qo,Xo,xo,Po,Ke,To,Eo,Ao,le,z,Jt,Ci,Ni,Dt,Si,zn,I,Te,Ue,si,Mi,Zt,cn,qn,So,po,Nl,Rl,Jo,Ol,zl,Dl,$o,Fl,Hl,Ul,ql,jl,L,ne,Z,M,oe,A,y,w,S,v,k,b,_,h,p,f,c,a,r,l,s,o,V,Ti,Ct,Ft,qi,Ht,Xi,qt,ni,Ji,jt,xi,Ki,Hi,Nt,te,oi,Gi,wt,$i,hn,an,un,nn,ft,gn,bn,_n,Mn,Bn,Nn,Rn,J,On,Kn,Gn,Hn,Yn,wn,yn,on,Qn,Xn,fo,mo,Un,Jn,q,li,st,Ou,zu,Ei,gt,Ai,Li,bi,Xe,fn,ho,el,n,x,Y,K,C,G,ee,Ne,we,ye,Le,Se,Be,Pe,Je,Et,yt,bt,ut,Ot,ui,ci,At,di,zt,St,Ri,Pt,xt,$t,mi,kt,It,pi,_t,Du,Fu,Hu,Uu,qu,ju,Zu,Wu,Ku,Gu,Yu,Qu,Xu,Ju,xu,$u,ec,tc,ic,nc,oc,lc,sc,rc]}class p3 extends _e{constructor(e){super(),be(this,e,m3,d3,ge,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:131,videoLogoUrl:7,showNextPrevButtons:132,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:133,supportLink:10,customFullscreenSupported:134,playNextVideo:11,playPrevVideo:12,repeatPlaylist:135,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},j4,[-1,-1,-1,-1,-1,-1,-1,-1])}}function h3(t){let e,i,n,o;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),u(n,"d","M0 0h24v24H0z"),u(o,"fill","#fff"),u(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.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"width","24"),u(e,"height","24"),u(e,"aria-hidden","true"),u(e,"data-testid","muted-icon")},m(s,l){T(s,e,l),m(e,i),m(i,n),m(i,o)},p:j,i:j,o:j,d(s){s&&P(e)}}}class g3 extends _e{constructor(e){super(),be(this,e,null,h3,ge,{})}}function b3(t){Ze(t,"v-6gmlbk",".container.v-6gmlbk{display:flex;align-items:center}.expanded.v-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.v-6gmlbk{font-size:15px;margin-left:8px}")}function Ar(t){let e;return{c(){e=E("span"),e.textContent=`${W("mobile_unmute")}`,u(e,"class","text v-6gmlbk")},m(i,n){T(i,e,n)},p:j,d(i){i&&P(e)}}}function _3(t){let e,i,n,o;var s=t[4];function l(a){return{}}s&&(i=kn(s,l()));let r=t[1]&&Ar();return{c(){e=E("div"),i&&U(i.$$.fragment),n=R(),r&&r.c(),u(e,"class","container v-6gmlbk"),u(e,"aria-hidden","true"),B(e,"expanded",t[1])},m(a,c){T(a,e,c),i&&D(i,e,null),m(e,n),r&&r.m(e,null),o=!0},p(a,c){if(c&16&&s!==(s=a[4])){if(i){ce();const f=i;g(f.$$.fragment,1,0,()=>{F(f,1)}),fe()}s?(i=kn(s,l()),U(i.$$.fragment),d(i.$$.fragment,1),D(i,e,n)):i=null}a[1]?r?r.p(a,c):(r=Ar(),r.c(),r.m(e,null)):r&&(r.d(1),r=null),(!o||c&2)&&B(e,"expanded",a[1])},i(a){o||(i&&d(i.$$.fragment,a),o=!0)},o(a){i&&g(i.$$.fragment,a),o=!1},d(a){a&&P(e),i&&F(i),r&&r.d()}}}function v3(t){let e,i,n;function o(l){t[6](l)}let s={testId:t[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:t[2],ariaLabel:t[3],$$slots:{default:[_3]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),r&4&&(a.click=l[2]),r&8&&(a.ariaLabel=l[3]),r&146&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function k3(t,e,i){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:s=ie.noop}=e,{ref:l=void 0}=e,r,a;function c(f){l=f,i(0,l)}return t.$$set=f=>{"muted"in f&&i(5,n=f.muted),"expanded"in f&&i(1,o=f.expanded),"click"in f&&i(2,s=f.click),"ref"in f&&i(0,l=f.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,r=W(n?"tooltip_volume":"tooltip_volume_muted")),t.$$.dirty&2&&i(4,a=o?Go:g3)},[l,o,s,r,a,n,c]}class wu extends _e{constructor(e){super(),be(this,e,k3,v3,ge,{muted:5,expanded:1,click:2,ref:0},b3)}}function w3(t){let e,i,n,o;return{c(){e=N("svg"),i=N("path"),n=N("path"),o=N("path"),u(i,"fill",t[1]),u(i,"clip-rule","evenodd"),u(i,"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 4ZM13 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.2v-.4Z"),u(n,"fill",t[1]),u(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.272l-.093-.094Z"),B(n,"hidden",!t[0]),u(o,"fill",t[1]),u(o,"d","M6.357 9.63a.865.865 0 0 0 .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.272l.093.094Z"),B(o,"hidden",t[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(s,l){T(s,e,l),m(e,i),m(e,n),m(e,o)},p(s,[l]){l&2&&u(i,"fill",s[1]),l&2&&u(n,"fill",s[1]),l&1&&B(n,"hidden",!s[0]),l&2&&u(o,"fill",s[1]),l&1&&B(o,"hidden",s[0])},i:j,o:j,d(s){s&&P(e)}}}function y3(t,e,i){let n,{isActive:o=!1}=e;return t.$$set=s=>{"isActive"in s&&i(0,o=s.isActive)},t.$$.update=()=>{t.$$.dirty&1&&i(1,n=o?"#2688EB":"#fff")},[o,n]}class C3 extends _e{constructor(e){super(),be(this,e,y3,w3,ge,{isActive:0})}}function S3(t){let e,i;return e=new C3({props:{isActive:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isActive=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function P3(t){let e,i,n;function o(l){t[3](l)}let s={testId:"btn-pip",ariaLabel:W("menu_pip"),click:t[2],$$slots:{default:[S3]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new vi({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,[r]){const a={};r&4&&(a.click=l[2]),r&18&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function T3(t,e,i){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:s=ie.noop}=e;function l(r){n=r,i(0,n)}return t.$$set=r=>{"ref"in r&&i(0,n=r.ref),"isPictureInPictureActive"in r&&i(1,o=r.isPictureInPictureActive),"click"in r&&i(2,s=r.click)},[n,o,s,l]}class E3 extends _e{constructor(e){super(),be(this,e,T3,P3,ge,{ref:0,isPictureInPictureActive:1,click:2})}}const{Boolean:A3}=jo;function I3(t){Ze(t,"v-1tcstu3",".wrapper-bottom.v-1tcstu3.v-1tcstu3{pointer-events:none;position:absolute;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.v-1tcstu3>.v-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.v-1tcstu3.v-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.v-1tcstu3.v-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-1tcstu3.v-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.v-1tcstu3.v-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.v-1tcstu3.v-1tcstu3,.wrapper-middle-left-second.v-1tcstu3.v-1tcstu3,.wrapper-middle-right.v-1tcstu3.v-1tcstu3{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.v-1tcstu3.v-1tcstu3{left:12px}.wrapper-middle-left-second.v-1tcstu3.v-1tcstu3{left:64px}.wrapper-middle-right.v-1tcstu3.v-1tcstu3{right:12px}.controls.v-1tcstu3.v-1tcstu3{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.v-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.v-1tcstu3.v-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.v-1tcstu3.v-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.v-1tcstu3.v-1tcstu3{transition:none}.settings-mobile.v-1tcstu3.v-1tcstu3{position:absolute;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.v-1tcstu3.v-1tcstu3{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.v-1tcstu3.v-1tcstu3{top:16px}.wrapper-top-left.fullscreen.v-1tcstu3.v-1tcstu3{top:16px}.controls-wrapper.fullscreen.v-1tcstu3.v-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.v-1tcstu3.v-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.v-1tcstu3.v-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.v-1tcstu3.v-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.v-1tcstu3.v-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.v-1tcstu3.v-1tcstu3{right:44px}.controls-wrapper.fullscreen.v-1tcstu3.v-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Ir(t,e,i){const n=t.slice();return n[161]=e[i].iconUrl,n[162]=e[i].ariaLabel,n[163]=e[i].testId,n[164]=e[i].onClick,n[165]=e[i].tooltip,n}function Lr(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w=(!t[52]||t[54])&&Vr(t),y=Rt(t[57]),A=[];for(let C=0;C<y.length;C+=1)A[C]=Mr(Ir(t,y,C));const oe=C=>g(A[C],1,1,()=>{A[C]=null});let M=t[37]&&Br(t),Z=t[38]&&Nr(t),ne=t[58]&&Rr(t),L=t[40]&&Or(t),V=t[8]&&zr(t),x=t[35]&&Dr(t),Y=t[34]&&Fr(t),le=t[8]&&Hr(t),K=t[97]&&!t[29]&&Ur(t);return{c(){e=E("div"),i=R(),n=E("div"),w&&w.c(),o=R(),s=E("div");for(let C=0;C<A.length;C+=1)A[C].c();l=R(),M&&M.c(),r=R(),Z&&Z.c(),a=R(),ne&&ne.c(),c=R(),L&&L.c(),f=R(),p=E("div"),V&&V.c(),h=R(),x&&x.c(),_=R(),Y&&Y.c(),b=R(),le&&le.c(),k=R(),K&&K.c(),v=ct(),u(e,"class","overlay-mobile v-1tcstu3"),B(e,"hidden",!t[43]),u(n,"class","wrapper-top-left v-1tcstu3"),B(n,"hidden",!t[3]),B(n,"fullscreen",t[53]),u(s,"class","wrapper-top-right v-1tcstu3"),B(s,"hidden",!t[3]&&!t[27]),B(s,"fullscreen",t[53]),u(p,"class","wrapper-middle v-1tcstu3"),B(p,"hidden",!t[3]||t[29])},m(C,G){T(C,e,G),T(C,i,G),T(C,n,G),w&&w.m(n,null),T(C,o,G),T(C,s,G);for(let z=0;z<A.length;z+=1)A[z]&&A[z].m(s,null);m(s,l),M&&M.m(s,null),m(s,r),Z&&Z.m(s,null),m(s,a),ne&&ne.m(s,null),m(s,c),L&&L.m(s,null),T(C,f,G),T(C,p,G),V&&V.m(p,null),m(p,h),x&&x.m(p,null),m(p,_),Y&&Y.m(p,null),m(p,b),le&&le.m(p,null),T(C,k,G),K&&K.m(C,G),T(C,v,G),S=!0},p(C,G){if((!S||G[1]&4096)&&B(e,"hidden",!C[43]),!C[52]||C[54]?w?(w.p(C,G),G[1]&10485760&&d(w,1)):(w=Vr(C),w.c(),d(w,1),w.m(n,null)):w&&(ce(),g(w,1,1,()=>{w=null}),fe()),(!S||G[0]&8)&&B(n,"hidden",!C[3]),(!S||G[1]&4194304)&&B(n,"fullscreen",C[53]),G[1]&67108864){y=Rt(C[57]);let z;for(z=0;z<y.length;z+=1){const ee=Ir(C,y,z);A[z]?(A[z].p(ee,G),d(A[z],1)):(A[z]=Mr(ee),A[z].c(),d(A[z],1),A[z].m(s,l))}for(ce(),z=y.length;z<A.length;z+=1)oe(z);fe()}C[37]?M?(M.p(C,G),G[1]&64&&d(M,1)):(M=Br(C),M.c(),d(M,1),M.m(s,r)):M&&(ce(),g(M,1,1,()=>{M=null}),fe()),C[38]?Z?(Z.p(C,G),G[1]&128&&d(Z,1)):(Z=Nr(C),Z.c(),d(Z,1),Z.m(s,a)):Z&&(ce(),g(Z,1,1,()=>{Z=null}),fe()),C[58]?ne?(ne.p(C,G),G[1]&134217728&&d(ne,1)):(ne=Rr(C),ne.c(),d(ne,1),ne.m(s,c)):ne&&(ce(),g(ne,1,1,()=>{ne=null}),fe()),C[40]?L?(L.p(C,G),G[1]&512&&d(L,1)):(L=Or(C),L.c(),d(L,1),L.m(s,null)):L&&(ce(),g(L,1,1,()=>{L=null}),fe()),(!S||G[0]&134217736)&&B(s,"hidden",!C[3]&&!C[27]),(!S||G[1]&4194304)&&B(s,"fullscreen",C[53]),C[8]?V?(V.p(C,G),G[0]&256&&d(V,1)):(V=zr(C),V.c(),d(V,1),V.m(p,h)):V&&(ce(),g(V,1,1,()=>{V=null}),fe()),C[35]?x?(x.p(C,G),G[1]&16&&d(x,1)):(x=Dr(C),x.c(),d(x,1),x.m(p,_)):x&&(ce(),g(x,1,1,()=>{x=null}),fe()),C[34]?Y?(Y.p(C,G),G[1]&8&&d(Y,1)):(Y=Fr(C),Y.c(),d(Y,1),Y.m(p,b)):Y&&(ce(),g(Y,1,1,()=>{Y=null}),fe()),C[8]?le?(le.p(C,G),G[0]&256&&d(le,1)):(le=Hr(C),le.c(),d(le,1),le.m(p,null)):le&&(ce(),g(le,1,1,()=>{le=null}),fe()),(!S||G[0]&536870920)&&B(p,"hidden",!C[3]||C[29]),C[97]&&!C[29]?K?(K.p(C,G),G[0]&536870912&&d(K,1)):(K=Ur(C),K.c(),d(K,1),K.m(v.parentNode,v)):K&&(ce(),g(K,1,1,()=>{K=null}),fe())},i(C){if(!S){d(w);for(let G=0;G<y.length;G+=1)d(A[G]);d(M),d(Z),d(ne),d(L),d(V),d(x),d(Y),d(le),d(K),S=!0}},o(C){g(w),A=A.filter(A3);for(let G=0;G<A.length;G+=1)g(A[G]);g(M),g(Z),g(ne),g(L),g(V),g(x),g(Y),g(le),g(K),S=!1},d(C){C&&(P(e),P(i),P(n),P(o),P(s),P(f),P(p),P(k),P(v)),w&&w.d(),pn(A,C),M&&M.d(),Z&&Z.d(),ne&&ne.d(),L&&L.d(),V&&V.d(),x&&x.d(),Y&&Y.d(),le&&le.d(),K&&K.d(C)}}}function Vr(t){let e,i,n;function o(l){t[125](l)}let s={muted:t[55],expanded:t[52]&&!t[71]&&t[56],click:t[106]};return t[20].volume!==void 0&&(s.ref=t[20].volume),e=new wu({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&16777216&&(a.muted=l[55]),r[1]&35651584&&(a.expanded=l[52]&&!l[71]&&l[56]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].volume,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Mr(t){let e,i;return e=new mu({props:{iconUrl:t[161],ariaLabel:t[162]??t[165],testId:t[163],onClick:t[164]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[1]&67108864&&(s.iconUrl=n[161]),o[1]&67108864&&(s.ariaLabel=n[162]??n[165]),o[1]&67108864&&(s.testId=n[163]),o[1]&67108864&&(s.onClick=n[164]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Br(t){let e,i,n;function o(l){t[126](l)}let s={isMobile:!0,click:t[104],state:t[28]};return t[20].chromecast!==void 0&&(s.ref=t[20].chromecast),e=new nu({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&268435456&&(a.state=l[28]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].chromecast,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Nr(t){let e,i,n;function o(l){t[127](l)}let s={click:t[105],isPictureInPictureActive:t[26]};return t[20].pip!==void 0&&(s.ref=t[20].pip),e=new E3({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&67108864&&(a.isPictureInPictureActive=l[26]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].pip,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Rr(t){let e,i,n;function o(l){t[128](l)}let s={};return t[22]!==void 0&&(s.ref=t[22]),e=new El({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&4194304&&(i=!0,a.ref=l[22],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Or(t){let e,i,n;function o(l){t[129](l)}let s={click:t[65],logoClickable:t[6],videoLogoUrl:t[7]};return t[20].vkLogo!==void 0&&(s.ref=t[20].vkLogo),e=new iu({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&64&&(a.logoClickable=l[6]),r[0]&128&&(a.videoLogoUrl=l[7]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].vkLogo,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function zr(t){let e,i,n;function o(l){t[130](l)}let s={click:t[13],type:"prev",disabled:!t[10],isMobile:!0};return t[20].prevButton!==void 0&&(s.ref=t[20].prevButton),e=new Yo({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&8192&&(a.click=l[13]),r[0]&1024&&(a.disabled=!l[10]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].prevButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Dr(t){let e,i,n;function o(l){t[131](l)}let s={disabled:t[49],click:t[64],isMobile:!0,isPlaying:t[32]};return t[20].playButton!==void 0&&(s.ref=t[20].playButton),e=new Ll({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&262144&&(a.disabled=l[49]),r[1]&2&&(a.isPlaying=l[32]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].playButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Fr(t){let e,i,n;function o(l){t[132](l)}let s={disabled:t[48],click:t[107],isMobile:!0};return t[20].replayButton!==void 0&&(s.ref=t[20].replayButton),e=new Vl({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.disabled=l[48]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].replayButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Hr(t){let e,i,n;function o(l){t[133](l)}let s={click:t[12],type:"next",disabled:!t[9],isMobile:!0};return t[20].nextButton!==void 0&&(s.ref=t[20].nextButton),e=new Yo({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&4096&&(a.click=l[12]),r[0]&512&&(a.disabled=!l[9]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].nextButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ur(t){let e,i,n,o,s=t[101]&&L3(t),l=t[99]&&V3(t),r=t[100]&&M3(t);return{c(){s&&s.c(),e=R(),l&&l.c(),i=R(),r&&r.c(),n=ct()},m(a,c){s&&s.m(a,c),T(a,e,c),l&&l.m(a,c),T(a,i,c),r&&r.m(a,c),T(a,n,c),o=!0},p(a,c){a[101]&&s.p(a,c),a[99]&&l.p(a,c),a[100]&&r.p(a,c)},i(a){o||(d(s),d(l),d(r),o=!0)},o(a){g(s),g(l),g(r),o=!1},d(a){a&&(P(e),P(i),P(n)),s&&s.d(a),l&&l.d(a),r&&r.d(a)}}}function L3(t){let e,i,n;return i=new du({props:{hidden:!t[3],disabled:t[47],click:t[18]}}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","wrapper-middle-left v-1tcstu3"),B(e,"fullscreen",t[53]),B(e,"hidden",!t[3])},m(o,s){T(o,e,s),D(i,e,null),n=!0},p(o,s){const l={};s[0]&8&&(l.hidden=!o[3]),s[1]&65536&&(l.disabled=o[47]),s[0]&262144&&(l.click=o[18]),i.$set(l),(!n||s[1]&4194304)&&B(e,"fullscreen",o[53]),(!n||s[0]&8)&&B(e,"hidden",!o[3])},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function V3(t){let e,i,n,o;function s(r){t[134](r)}let l={hidden:!t[3]&&!t[59],disabled:t[51],click:t[17],graphIsOpened:t[59]};return t[20].interactiveGraphButton!==void 0&&(l.ref=t[20].interactiveGraphButton),i=new cu({props:l}),ke.push(()=>je(i,"ref",s)),{c(){e=E("div"),U(i.$$.fragment),u(e,"class",hc(t[101]?"wrapper-middle-left-second":"wrapper-middle-left")+" v-1tcstu3"),B(e,"fullscreen",t[53]),B(e,"hidden",!t[3]&&!t[59])},m(r,a){T(r,e,a),D(i,e,null),o=!0},p(r,a){const c={};a[0]&8|a[1]&268435456&&(c.hidden=!r[3]&&!r[59]),a[1]&1048576&&(c.disabled=r[51]),a[0]&131072&&(c.click=r[17]),a[1]&268435456&&(c.graphIsOpened=r[59]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].interactiveGraphButton,qe(()=>n=!1)),i.$set(c),(!o||a[1]&4194304)&&B(e,"fullscreen",r[53]),(!o||a[0]&8|a[1]&268435456)&&B(e,"hidden",!r[3]&&!r[59])},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function M3(t){let e,i,n,o;function s(r){t[135](r)}let l={hidden:!t[3],disabled:t[50],click:t[16]};return t[20].seekToInteractiveButton!==void 0&&(l.ref=t[20].seekToInteractiveButton),i=new uu({props:l}),ke.push(()=>je(i,"ref",s)),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","wrapper-middle-right v-1tcstu3"),B(e,"fullscreen",t[53]),B(e,"hidden",!t[3])},m(r,a){T(r,e,a),D(i,e,null),o=!0},p(r,a){const c={};a[0]&8&&(c.hidden=!r[3]),a[1]&524288&&(c.disabled=r[50]),a[0]&65536&&(c.click=r[16]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].seekToInteractiveButton,qe(()=>n=!1)),i.$set(c),(!o||a[1]&4194304)&&B(e,"fullscreen",r[53]),(!o||a[0]&8)&&B(e,"hidden",!r[3])},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function qr(t){let e,i,n,o,s,l=t[54]&&jr(t),r=t[33]&&Zr(t);return o=new su({props:{position:t[60],duration:t[61]}}),{c(){l&&l.c(),e=R(),r&&r.c(),i=R(),n=E("div"),U(o.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile v-1tcstu3"),B(n,"fullscreen",t[53])},m(a,c){l&&l.m(a,c),T(a,e,c),r&&r.m(a,c),T(a,i,c),T(a,n,c),D(o,n,null),s=!0},p(a,c){a[54]?l?(l.p(a,c),c[1]&8388608&&d(l,1)):(l=jr(a),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ce(),g(l,1,1,()=>{l=null}),fe()),a[33]?r?(r.p(a,c),c[1]&4&&d(r,1)):(r=Zr(a),r.c(),d(r,1),r.m(i.parentNode,i)):r&&(ce(),g(r,1,1,()=>{r=null}),fe());const f={};c[1]&536870912&&(f.position=a[60]),c[1]&1073741824&&(f.duration=a[61]),o.$set(f),(!s||c[1]&4194304)&&B(n,"fullscreen",a[53])},i(a){s||(d(l),d(r),d(o.$$.fragment,a),s=!0)},o(a){g(l),g(r),g(o.$$.fragment,a),s=!1},d(a){a&&(P(e),P(i),P(n)),l&&l.d(a),r&&r.d(a),F(o)}}}function jr(t){let e,i,n,o;function s(r){t[136](r)}let l={muted:t[55],expanded:!1,click:t[106]};return t[20].volume!==void 0&&(l.ref=t[20].volume),i=new wu({props:l}),ke.push(()=>je(i,"ref",s)),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","wrapper-top-right v-1tcstu3"),B(e,"fullscreen",t[53])},m(r,a){T(r,e,a),D(i,e,null),o=!0},p(r,a){const c={};a[1]&16777216&&(c.muted=r[55]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].volume,qe(()=>n=!1)),i.$set(c),(!o||a[1]&4194304)&&B(e,"fullscreen",r[53])},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function Zr(t){let e,i,n,o;function s(r){t[137](r)}let l={disabled:t[49],click:t[64],isMobile:!0,isPlaying:!t[33]};return t[20].playButton!==void 0&&(l.ref=t[20].playButton),i=new Ll({props:l}),ke.push(()=>je(i,"ref",s)),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","wrapper-middle v-1tcstu3")},m(r,a){T(r,e,a),D(i,e,null),o=!0},p(r,a){const c={};a[1]&262144&&(c.disabled=r[49]),a[1]&4&&(c.isPlaying=!r[33]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].playButton,qe(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function B3(t){let e,i,n;function o(l){t[138](l)}let s={disabled:t[48],$$slots:{default:[N3]},$$scope:{ctx:t}};return t[20].replayButton!==void 0&&(s.ref=t[20].replayButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.disabled=l[48]),r[1]&131072|r[5]&8192&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].replayButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function N3(t){let e,i;return e=new Vl({props:{disabled:t[48],click:t[96]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[1]&131072&&(s.disabled=n[48]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Wr(t){let e,i,n;function o(l){t[139](l)}let s={$$slots:{default:[R3]},$$scope:{ctx:t}};return t[20].liveButton!==void 0&&(s.ref=t[20].liveButton),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&524288|r[1]&32768|r[5]&8192&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].liveButton,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function R3(t){let e,i;return e=new ou({props:{isActiveLive:t[19],isMobile:!0,ariaLabel:t[46]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&524288&&(s.isActiveLive=n[19]),o[1]&32768&&(s.ariaLabel=n[46]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Kr(t){let e,i,n;function o(l){t[140](l)}let s={showDuration:t[36],position:t[4]?t[60]:t[62],duration:t[4]?t[61]:t[63],isMobile:!0};return t[20].time!==void 0&&(s.ref=t[20].time),e=new X1({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&32&&(a.showDuration=l[36]),r[0]&16|r[1]&536870912|r[2]&1&&(a.position=l[4]?l[60]:l[62]),r[0]&16|r[1]&1073741824|r[2]&2&&(a.duration=l[4]?l[61]:l[63]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].time,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Gr(t){let e,i,n,o;return n=new au({props:{position:t[62],duration:t[63],timeCodes:t[85]}}),{c(){e=E("div"),e.textContent="\xB7",i=R(),U(n.$$.fragment),u(e,"aria-hidden","true")},m(s,l){T(s,e,l),T(s,i,l),D(n,s,l),o=!0},p(s,l){const r={};l[2]&1&&(r.position=s[62]),l[2]&2&&(r.duration=s[63]),n.$set(r)},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){g(n.$$.fragment,s),o=!1},d(s){s&&(P(e),P(i)),F(n,s)}}}function O3(t){let e,i,n=t[44]&&Gr(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),T(o,e,s),i=!0},p(o,s){o[44]?n?(n.p(o,s),s[1]&8192&&d(n,1)):(n=Gr(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),g(n,1,1,()=>{n=null}),fe())},i(o){i||(d(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d(o)}}}function Yr(t){let e,i,n;function o(l){t[143](l)}let s={$$slots:{default:[z3]},$$scope:{ctx:t}};return t[20].settings!==void 0&&(s.ref=t[20].settings),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&4194304|r[5]&8192&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].settings,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function z3(t){let e,i,n;function o(l){t[142](l)}let s={};return t[22]!==void 0&&(s.ref=t[22]),e=new El({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&4194304&&(i=!0,a.ref=l[22],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Qr(t){let e,i,n;function o(l){t[144](l)}let s={$$slots:{default:[D3]},$$scope:{ctx:t}};return t[20].fullscreen!==void 0&&(s.ref=t[20].fullscreen),e=new Vt({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&16384|r[1]&4194304|r[5]&8192&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].fullscreen,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function D3(t){let e,i;return e=new eu({props:{click:t[14],isFullscreen:t[53]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&16384&&(s.click=n[14]),o[1]&4194304&&(s.isFullscreen=n[53]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Xr(t){let e,i,n,o;function s(r){t[147](r)}let l={supportLink:t[11],returnFocus:t[15]};return t[21]!==void 0&&(l.ref=t[21]),i=new Q1({props:l}),ke.push(()=>je(i,"ref",s)),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","settings-mobile v-1tcstu3")},m(r,a){T(r,e,a),D(i,e,null),o=!0},p(r,a){const c={};a[0]&2048&&(c.supportLink=r[11]),a[0]&32768&&(c.returnFocus=r[15]),!n&&a[0]&2097152&&(n=!0,c.ref=r[21],qe(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function Jr(t){let e,i,n;function o(l){t[148](l)}let s={};return t[20].interactiveTimeIcon!==void 0&&(s.ref=t[20].interactiveTimeIcon),e=new ku({props:s}),ke.push(()=>je(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&1048576&&(i=!0,a.ref=l[20].interactiveTimeIcon,qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function F3(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y=!t[4]&&Lr(t),A=t[4]&&t[30]!==Kt.INACTIVE&&qr(t),oe=t[97]&&B3(t),M=!t[4]&&t[25]&&Wr(t),Z=t[42]&&Kr(t);function ne(K){t[141](K)}let L={className:"w-max",disabled:!t[44],$$slots:{default:[O3]},$$scope:{ctx:t}};t[20].episodes!==void 0&&(L.ref=t[20].episodes),c=new Vt({props:L}),ke.push(()=>je(c,"ref",ne));let V=t[39]&&Yr(t),x=t[41]&&Qr(t);b=new ru({props:{isAds:t[4],canRewindLive:t[5],isRewindableLive:t[24]}});let Y=t[23]&&Xr(t),le=t[31]&&Jr(t);return{c(){y&&y.c(),e=R(),A&&A.c(),i=R(),n=E("div"),o=E("div"),s=E("div"),oe&&oe.c(),l=R(),M&&M.c(),r=R(),Z&&Z.c(),a=R(),U(c.$$.fragment),p=R(),V&&V.c(),h=R(),x&&x.c(),_=R(),U(b.$$.fragment),k=R(),Y&&Y.c(),v=R(),le&&le.c(),S=ct(),u(s,"class","controls v-1tcstu3"),B(s,"mobile",!0),u(o,"class","controls-wrapper v-1tcstu3"),B(o,"fullscreen",t[53]),u(n,"class","wrapper-bottom v-1tcstu3"),B(n,"hidden",t[1]),B(n,"controls-hidden",!t[3]),B(n,"no-smooth",t[2]),B(n,"mobile",!0)},m(K,C){y&&y.m(K,C),T(K,e,C),A&&A.m(K,C),T(K,i,C),T(K,n,C),m(n,o),m(o,s),oe&&oe.m(s,null),m(s,l),M&&M.m(s,null),m(s,r),Z&&Z.m(s,null),m(s,a),D(c,s,null),m(s,p),V&&V.m(s,null),m(s,h),x&&x.m(s,null),t[145](s),m(o,_),D(b,o,null),t[146](n),T(K,k,C),Y&&Y.m(K,C),T(K,v,C),le&&le.m(K,C),T(K,S,C),w=!0},p(K,C){K[4]?y&&(ce(),g(y,1,1,()=>{y=null}),fe()):y?(y.p(K,C),C[0]&16&&d(y,1)):(y=Lr(K),y.c(),d(y,1),y.m(e.parentNode,e)),K[4]&&K[30]!==Kt.INACTIVE?A?(A.p(K,C),C[0]&1073741840&&d(A,1)):(A=qr(K),A.c(),d(A,1),A.m(i.parentNode,i)):A&&(ce(),g(A,1,1,()=>{A=null}),fe()),K[97]&&oe.p(K,C),!K[4]&&K[25]?M?(M.p(K,C),C[0]&33554448&&d(M,1)):(M=Wr(K),M.c(),d(M,1),M.m(s,r)):M&&(ce(),g(M,1,1,()=>{M=null}),fe()),K[42]?Z?(Z.p(K,C),C[1]&2048&&d(Z,1)):(Z=Kr(K),Z.c(),d(Z,1),Z.m(s,a)):Z&&(ce(),g(Z,1,1,()=>{Z=null}),fe());const G={};C[1]&8192&&(G.disabled=!K[44]),C[1]&8192|C[2]&3|C[5]&8192&&(G.$$scope={dirty:C,ctx:K}),!f&&C[0]&1048576&&(f=!0,G.ref=K[20].episodes,qe(()=>f=!1)),c.$set(G),K[39]?V?(V.p(K,C),C[1]&256&&d(V,1)):(V=Yr(K),V.c(),d(V,1),V.m(s,h)):V&&(ce(),g(V,1,1,()=>{V=null}),fe()),K[41]?x?(x.p(K,C),C[1]&1024&&d(x,1)):(x=Qr(K),x.c(),d(x,1),x.m(s,null)):x&&(ce(),g(x,1,1,()=>{x=null}),fe());const z={};C[0]&16&&(z.isAds=K[4]),C[0]&32&&(z.canRewindLive=K[5]),C[0]&16777216&&(z.isRewindableLive=K[24]),b.$set(z),(!w||C[1]&4194304)&&B(o,"fullscreen",K[53]),(!w||C[0]&2)&&B(n,"hidden",K[1]),(!w||C[0]&8)&&B(n,"controls-hidden",!K[3]),(!w||C[0]&4)&&B(n,"no-smooth",K[2]),K[23]?Y?(Y.p(K,C),C[0]&8388608&&d(Y,1)):(Y=Xr(K),Y.c(),d(Y,1),Y.m(v.parentNode,v)):Y&&(ce(),g(Y,1,1,()=>{Y=null}),fe()),K[31]?le?(le.p(K,C),C[1]&1&&d(le,1)):(le=Jr(K),le.c(),d(le,1),le.m(S.parentNode,S)):le&&(ce(),g(le,1,1,()=>{le=null}),fe())},i(K){w||(d(y),d(A),d(oe),d(M),d(Z),d(c.$$.fragment,K),d(V),d(x),d(b.$$.fragment,K),d(Y),d(le),w=!0)},o(K){g(y),g(A),g(oe),g(M),g(Z),g(c.$$.fragment,K),g(V),g(x),g(b.$$.fragment,K),g(Y),g(le),w=!1},d(K){K&&(P(e),P(i),P(n),P(k),P(v),P(S)),y&&y.d(K),A&&A.d(K),oe&&oe.d(),M&&M.d(),Z&&Z.d(),F(c),V&&V.d(),x&&x.d(),t[145](null),F(b),t[146](null),Y&&Y.d(K),le&&le.d(K)}}}function H3(t,e,i){let n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne,L,V,x,Y,le,K,C,G,z,ee,Ee,Re,Ne,ze,ve,{bottomHidden:we}=e,{bottomNoSmooth:Q}=e,{showControls:$}=e,{controlsElementRef:ye=void 0}=e,{isAds:re=!1}=e,{canRewindLive:We}=e,{logoClickable:Le}=e,{logoHidden:Ie}=e,{videoLogoUrl:ue}=e,{showNextPrevButtons:Se}=e,{nextButtonActive:he}=e,{prevButtonActive:se}=e,{isOneVideoPlaylist:Be=!1}=e,{supportLink:me}=e,{customFullscreenSupported:Ce=!0}=e,{playNextVideo:Pe}=e,{playPrevVideo:Ge}=e,{repeatPlaylist:it}=e,{toggleFullscreen:Je}=e,{returnFocus:Qe}=e,{seekToInteractive:tt}=e,{toggleGraph:Et}=e,{playPrevChapter:ht}=e;const Fe=pt(),yt=sn(),Yt=Fe.actions.internal.toggleMuted,de=Fe.actions.internal.togglePlay,bt=Fe.actions.internal.pause,at=Fe.callbacks?.onAudioDoesNotExistHint,Qt=Fe.callbacks?.onAudioDisabledHint,ut=Fe.playerPhase;O(t,ut,J=>i(122,Z=J));const vt=Fe.state.duration$;O(t,vt,J=>i(63,ve=J));const ri=Fe.state.positionWithScrubbing$;O(t,ri,J=>i(62,ze=J));const Ot=Fe.state.playbackState$;O(t,Ot,J=>i(117,h=J));const ai=Fe.state.isAudioAvailable$;O(t,ai,J=>i(52,_=J));const Ui=Fe.state.isAudioDisabled,ui=Fe.state.isEnded$;O(t,ui,J=>i(123,L=J));const ki=Fe.state.isLive$;O(t,ki,J=>i(25,w=J));const Qi=Fe.state.muted$;O(t,Qi,J=>i(55,C=J));const ci=Fe.state.isActiveLive$;O(t,ci,J=>i(120,v=J));const fi=Fe.state.isRewindableLive$;O(t,fi,J=>i(24,S=J));const wi=Fe.ui.scrubbingInProgress;O(t,wi,J=>i(29,ne=J));const At=Fe.ui.mobileNotReportControlHidden$;O(t,At,J=>i(27,oe=J));const Xt=Fe.ui.isPictureInPictureActive$;O(t,Xt,J=>i(26,A=J));const yi=Fe.ui.pictureInPictureType$;O(t,yi,J=>i(121,y=J));const Jt=Fe.ui.mobileUnmuteButtonExpanded;O(t,Jt,J=>i(56,G=J));const Ci=Fe.ui.mobileUnmuteButtonVisible;O(t,Ci,J=>i(54,K=J));const di=Fe.ui.settingsMenuVisible;O(t,di,J=>i(23,p=J));const zt=Fe.ui.settingsMenuOpenedByKeyboard;O(t,zt,J=>i(116,f=J));const Ni=Fe.ui.controls,St=Fe.actions.internal.getVideoEpisodes(),Dt=Fe.webApi.pictureInPictureApi,Si=Fe.state.chromecastState$;O(t,Si,J=>i(28,M=J));const Ri=Fe.state.crashed$;O(t,Ri,J=>i(58,ee=J));const Pt=Ni.disabledControls$;O(t,Pt,J=>i(124,x=J));const xt=Fe.ui.startedByKeyboard$;O(t,xt,J=>i(115,c=J));const $t=Fe.ads.duration;O(t,$t,J=>i(61,Ne=J));const mi=Fe.ads.position;O(t,mi,J=>i(60,Re=J));const kt=Fe.ads.playbackState;O(t,kt,J=>i(30,V=J));const It=Fe.ui.isFullscreen;O(t,It,J=>i(53,le=J));const pi=Fe.ui.playerSize;O(t,pi,J=>i(119,k=J));const _t=Fe.ui.additionalButtons$;O(t,_t,J=>i(57,z=J));const Pi=Fe.actions.internal.getVideoElement,Ti=Fe.actions.internal.replayInteractive,Ct=Fe.state.isInteractive,Ft=Fe.state.isInteractiveTime$;O(t,Ft,J=>i(118,b=J));const qi=Fe.state.isInteractiveGraphEnabled,Ht=Fe.state.isSeekToInteractiveEnable,Xi=Fe.state.isPlayPrevChapterEnabled,ei=Fe.state.interactiveEpisodes$;O(t,ei,J=>i(149,Y=J));const Mt=Fe.state.graphIsOpened$;O(t,Mt,J=>i(59,Ee=J));let Bt;Bt=!!(Ct&&Y.length);let hi,Lt,ji,Zi,Ei,gi,gt,Oi,zi,Ai,Ii,Li,Di,ti,bi,ii,Ut;const Ve={},Fi=ie.throttleFn(_u,u1,{leading:!1}),_i=()=>Fe.actions.internal.toggleChromecast();function He(){Ui?Qt?.():_?Yt():at?.()}async function Wi(){Dt?.isActive()?await Dt?.remove():await Dt?.request()}function qt(){!Ui&&_&&Ci.set(!1),He()}const en=Be?de:it;let ni="";const Ji=(J,On)=>{if(!J){i(46,ni=W("tooltip_live"));return}On===xe.PlaybackState.PAUSED&&i(46,ni=W("tooltip_play"))};let jt,Vi;function tn(J){t.$$.not_equal(Ve.volume,J)&&(Ve.volume=J,i(20,Ve))}function xi(J){t.$$.not_equal(Ve.chromecast,J)&&(Ve.chromecast=J,i(20,Ve))}function Ki(J){t.$$.not_equal(Ve.pip,J)&&(Ve.pip=J,i(20,Ve))}function Hi(J){Vi=J,i(22,Vi)}function Nt(J){t.$$.not_equal(Ve.vkLogo,J)&&(Ve.vkLogo=J,i(20,Ve))}function te(J){t.$$.not_equal(Ve.prevButton,J)&&(Ve.prevButton=J,i(20,Ve))}function lt(J){t.$$.not_equal(Ve.playButton,J)&&(Ve.playButton=J,i(20,Ve))}function oi(J){t.$$.not_equal(Ve.replayButton,J)&&(Ve.replayButton=J,i(20,Ve))}function Gi(J){t.$$.not_equal(Ve.nextButton,J)&&(Ve.nextButton=J,i(20,Ve))}function wt(J){t.$$.not_equal(Ve.interactiveGraphButton,J)&&(Ve.interactiveGraphButton=J,i(20,Ve))}function $i(J){t.$$.not_equal(Ve.seekToInteractiveButton,J)&&(Ve.seekToInteractiveButton=J,i(20,Ve))}function hn(J){t.$$.not_equal(Ve.volume,J)&&(Ve.volume=J,i(20,Ve))}function an(J){t.$$.not_equal(Ve.playButton,J)&&(Ve.playButton=J,i(20,Ve))}function un(J){t.$$.not_equal(Ve.replayButton,J)&&(Ve.replayButton=J,i(20,Ve))}function nn(J){t.$$.not_equal(Ve.liveButton,J)&&(Ve.liveButton=J,i(20,Ve))}function X(J){t.$$.not_equal(Ve.time,J)&&(Ve.time=J,i(20,Ve))}function ft(J){t.$$.not_equal(Ve.episodes,J)&&(Ve.episodes=J,i(20,Ve))}function gn(J){Vi=J,i(22,Vi)}function bn(J){t.$$.not_equal(Ve.settings,J)&&(Ve.settings=J,i(20,Ve))}function _n(J){t.$$.not_equal(Ve.fullscreen,J)&&(Ve.fullscreen=J,i(20,Ve))}function Mn(J){ke[J?"unshift":"push"](()=>{ii=J,i(45,ii)})}function Bn(J){ke[J?"unshift":"push"](()=>{ye=J,i(0,ye)})}function Nn(J){jt=J,i(21,jt)}function Rn(J){t.$$.not_equal(Ve.interactiveTimeIcon,J)&&(Ve.interactiveTimeIcon=J,i(20,Ve))}return t.$$set=J=>{"bottomHidden"in J&&i(1,we=J.bottomHidden),"bottomNoSmooth"in J&&i(2,Q=J.bottomNoSmooth),"showControls"in J&&i(3,$=J.showControls),"controlsElementRef"in J&&i(0,ye=J.controlsElementRef),"isAds"in J&&i(4,re=J.isAds),"canRewindLive"in J&&i(5,We=J.canRewindLive),"logoClickable"in J&&i(6,Le=J.logoClickable),"logoHidden"in J&&i(108,Ie=J.logoHidden),"videoLogoUrl"in J&&i(7,ue=J.videoLogoUrl),"showNextPrevButtons"in J&&i(8,Se=J.showNextPrevButtons),"nextButtonActive"in J&&i(9,he=J.nextButtonActive),"prevButtonActive"in J&&i(10,se=J.prevButtonActive),"isOneVideoPlaylist"in J&&i(109,Be=J.isOneVideoPlaylist),"supportLink"in J&&i(11,me=J.supportLink),"customFullscreenSupported"in J&&i(110,Ce=J.customFullscreenSupported),"playNextVideo"in J&&i(12,Pe=J.playNextVideo),"playPrevVideo"in J&&i(13,Ge=J.playPrevVideo),"repeatPlaylist"in J&&i(111,it=J.repeatPlaylist),"toggleFullscreen"in J&&i(14,Je=J.toggleFullscreen),"returnFocus"in J&&i(15,Qe=J.returnFocus),"seekToInteractive"in J&&i(16,tt=J.seekToInteractive),"toggleGraph"in J&&i(17,Et=J.toggleGraph),"playPrevChapter"in J&&i(18,ht=J.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[4]&1&&i(114,n=x.has(rt.EPISODE_BUTTON)),t.$$.dirty[4]&1&&i(51,o=x.has(rt.GRAPH_BUTTON)),t.$$.dirty[4]&1&&i(50,s=x.has(rt.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[4]&1&&i(49,l=x.has(rt.PLAY_BUTTON)),t.$$.dirty[4]&1&&i(48,r=x.has(rt.REPLAY_BUTTON)),t.$$.dirty[4]&1&&i(47,a=x.has(rt.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[3]&16777216&&i(32,hi=h===xe.PlaybackState.PLAYING),t.$$.dirty[0]&1073741824&&i(33,Lt=V===Kt.PAUSED),t.$$.dirty[0]&16|t.$$.dirty[3]&1073741824&&i(34,ji=L&&!re&&!Ct),t.$$.dirty[0]&16|t.$$.dirty[3]&1073741824&&i(35,Zi=!L||re),t.$$.dirty[3]&67108864&&i(112,Ei=k.width>300),t.$$.dirty[3]&67108864&&i(36,gi=k.width>400),t.$$.dirty[0]&536870912&&i(113,gt=ne),t.$$.dirty[0]&469762048|t.$$.dirty[3]&268435456&&i(37,Oi=M!==xe.ChromecastState.NOT_AVAILABLE&&!(A&&y===Tn.DocumentPictureInPicture)&&!oe&&!Ct),t.$$.dirty[0]&402653184|t.$$.dirty[3]&806354944){const J=Z===Oe.WaitingLive;i(38,zi=!!Dt&&M!==xe.ChromecastState.CONNECTED&&!oe&&(y===Tn.DocumentPictureInPicture&&J||!J)&&!gt&&!Ct)}t.$$.dirty[3]&1048576&&i(39,Ai=!gt),t.$$.dirty[3]&67141632&&i(40,Ii=!Ie&&k.width>350),t.$$.dirty[0]&67108864|t.$$.dirty[3]&269615104&&i(41,Li=yt.features.fullscreen&&!(A&&y===Tn.DocumentPictureInPicture)&&(Ct?Ce:!0)&&!gt),t.$$.dirty[0]&33554448|t.$$.dirty[3]&68157440&&i(42,Di=(!w||re)&&k.width>260&&!gt&&!(yt.features.interactiveHideTime&&Ct)),t.$$.dirty[0]&8388616&&i(43,ti=p||$),t.$$.dirty[0]&33554448|t.$$.dirty[3]&3670016&&i(44,bi=!re&&!w&&!!St?.length&&Ei&&!n&&!gt),t.$$.dirty[0]&16777216|t.$$.dirty[3]&134217728&&i(19,Ut=!S||v),t.$$.dirty[0]&1048584|t.$$.dirty[3]&100663296&&Fi(Pi(),Ni,Ve,$),t.$$.dirty[0]&524288|t.$$.dirty[3]&16777216&&Ji(Ut,h),t.$$.dirty[0]&12582912&&Sl(Vi,p,zt),t.$$.dirty[0]&10485760|t.$$.dirty[3]&8388608&&Pl(jt,p,f),t.$$.dirty[0]&1048576|t.$$.dirty[3]&4194304&&vu(xt,c,Ve.playButton)},[ye,we,Q,$,re,We,Le,ue,Se,he,se,me,Pe,Ge,Je,Qe,tt,Et,ht,Ut,Ve,jt,Vi,p,S,w,A,oe,M,ne,V,Bt,hi,Lt,ji,Zi,gi,Oi,zi,Ai,Ii,Li,Di,ti,bi,ii,ni,a,r,l,s,o,_,le,K,C,G,z,ee,Ee,Re,Ne,ze,ve,de,bt,ut,vt,ri,Ot,ai,Ui,ui,ki,Qi,ci,fi,wi,At,Xt,yi,Jt,Ci,di,zt,St,Si,Ri,Pt,xt,$t,mi,kt,It,pi,_t,Ti,Ct,Ft,qi,Ht,Xi,ei,Mt,_i,Wi,qt,en,Ie,Be,Ce,it,Ei,gt,n,c,f,h,b,k,v,y,Z,L,x,tn,xi,Ki,Hi,Nt,te,lt,oi,Gi,wt,$i,hn,an,un,nn,X,ft,gn,bn,_n,Mn,Bn,Nn,Rn]}class U3 extends _e{constructor(e){super(),be(this,e,H3,F3,ge,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:108,videoLogoUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:109,supportLink:11,customFullscreenSupported:110,playNextVideo:12,playPrevVideo:13,repeatPlaylist:111,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18},I3,[-1,-1,-1,-1,-1,-1])}}function q3(t){let e,i,n;function o(l){t[26](l)}let s={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],videoLogoUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22]};return t[0]!==void 0&&(s.controlsElementRef=t[0]),e=new p3({props:s}),ke.push(()=>je(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r&2&&(a.bottomHidden=l[1]),r&4&&(a.bottomNoSmooth=l[2]),r&8&&(a.showControls=l[3]),r&16&&(a.isAds=l[4]),r&32&&(a.canRewindLive=l[5]),r&64&&(a.logoClickable=l[6]),r&128&&(a.logoHidden=l[7]),r&256&&(a.videoLogoUrl=l[8]),r&512&&(a.showNextPrevButtons=l[9]),r&1024&&(a.nextButtonActive=l[10]),r&2048&&(a.prevButtonActive=l[11]),r&4096&&(a.isOneVideoPlaylist=l[12]),r&8192&&(a.supportLink=l[13]),r&16384&&(a.customFullscreenSupported=l[14]),r&32768&&(a.playNextVideo=l[15]),r&65536&&(a.playPrevVideo=l[16]),r&131072&&(a.repeatPlaylist=l[17]),r&262144&&(a.toggleFullscreen=l[18]),r&524288&&(a.returnFocus=l[19]),r&1048576&&(a.seekToInteractive=l[20]),r&2097152&&(a.toggleGraph=l[21]),r&4194304&&(a.playPrevChapter=l[22]),!i&&r&1&&(i=!0,a.controlsElementRef=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function j3(t){let e,i,n;function o(l){t[25](l)}let s={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],videoLogoUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22]};return t[0]!==void 0&&(s.controlsElementRef=t[0]),e=new U3({props:s}),ke.push(()=>je(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r&2&&(a.bottomHidden=l[1]),r&4&&(a.bottomNoSmooth=l[2]),r&8&&(a.showControls=l[3]),r&16&&(a.isAds=l[4]),r&32&&(a.canRewindLive=l[5]),r&64&&(a.logoClickable=l[6]),r&128&&(a.logoHidden=l[7]),r&256&&(a.videoLogoUrl=l[8]),r&512&&(a.showNextPrevButtons=l[9]),r&1024&&(a.nextButtonActive=l[10]),r&2048&&(a.prevButtonActive=l[11]),r&4096&&(a.isOneVideoPlaylist=l[12]),r&8192&&(a.supportLink=l[13]),r&16384&&(a.customFullscreenSupported=l[14]),r&32768&&(a.playNextVideo=l[15]),r&65536&&(a.playPrevVideo=l[16]),r&131072&&(a.repeatPlaylist=l[17]),r&262144&&(a.toggleFullscreen=l[18]),r&524288&&(a.returnFocus=l[19]),r&1048576&&(a.seekToInteractive=l[20]),r&2097152&&(a.toggleGraph=l[21]),r&4194304&&(a.playPrevChapter=l[22]),!i&&r&1&&(i=!0,a.controlsElementRef=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Z3(t){let e,i,n,o;const s=[j3,q3],l=[];function r(a,c){return a[23]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function W3(t,e,i){let n,{bottomHidden:o}=e,{bottomNoSmooth:s=!1}=e,{showControls:l}=e,{controlsElementRef:r=void 0}=e,{isAds:a=!1}=e,{canRewindLive:c}=e,{logoClickable:f}=e,{logoHidden:p}=e,{videoLogoUrl:h}=e,{showNextPrevButtons:_}=e,{nextButtonActive:b}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:v=!1}=e,{supportLink:S}=e,{customFullscreenSupported:w=!0}=e,{playNextVideo:y}=e,{playPrevVideo:A}=e,{repeatPlaylist:oe}=e,{toggleFullscreen:M}=e,{returnFocus:Z=ie.noop}=e,{seekToInteractive:ne}=e,{toggleGraph:L}=e,{playPrevChapter:V}=e;const Y=pt().ui.isMobile;O(t,Y,C=>i(23,n=C));function le(C){r=C,i(0,r)}function K(C){r=C,i(0,r)}return t.$$set=C=>{"bottomHidden"in C&&i(1,o=C.bottomHidden),"bottomNoSmooth"in C&&i(2,s=C.bottomNoSmooth),"showControls"in C&&i(3,l=C.showControls),"controlsElementRef"in C&&i(0,r=C.controlsElementRef),"isAds"in C&&i(4,a=C.isAds),"canRewindLive"in C&&i(5,c=C.canRewindLive),"logoClickable"in C&&i(6,f=C.logoClickable),"logoHidden"in C&&i(7,p=C.logoHidden),"videoLogoUrl"in C&&i(8,h=C.videoLogoUrl),"showNextPrevButtons"in C&&i(9,_=C.showNextPrevButtons),"nextButtonActive"in C&&i(10,b=C.nextButtonActive),"prevButtonActive"in C&&i(11,k=C.prevButtonActive),"isOneVideoPlaylist"in C&&i(12,v=C.isOneVideoPlaylist),"supportLink"in C&&i(13,S=C.supportLink),"customFullscreenSupported"in C&&i(14,w=C.customFullscreenSupported),"playNextVideo"in C&&i(15,y=C.playNextVideo),"playPrevVideo"in C&&i(16,A=C.playPrevVideo),"repeatPlaylist"in C&&i(17,oe=C.repeatPlaylist),"toggleFullscreen"in C&&i(18,M=C.toggleFullscreen),"returnFocus"in C&&i(19,Z=C.returnFocus),"seekToInteractive"in C&&i(20,ne=C.seekToInteractive),"toggleGraph"in C&&i(21,L=C.toggleGraph),"playPrevChapter"in C&&i(22,V=C.playPrevChapter)},[r,o,s,l,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne,L,V,n,Y,le,K]}class yu extends _e{constructor(e){super(),be(this,e,W3,Z3,ge,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,videoLogoUrl: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})}}function K3(t){Ze(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function G3(t){let e,i,n,o,s,l,r,a,c,f,p,h,_;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("defs"),l=N("filter"),r=N("feFlood"),a=N("feColorMatrix"),c=N("feOffset"),f=N("feGaussianBlur"),p=N("feColorMatrix"),h=N("feBlend"),_=N("feBlend"),u(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-.98l-7.659 4.85Z"),u(n,"fill","#fff"),u(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.19l-7.658 4.848Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2260_100684"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_100684"),u(_,"result","shape"),u(l,"id","a"),u(l,"x","2.5"),u(l,"y","0"),u(l,"width","43.996"),u(l,"height","49.5"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","51"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","seek-icon"),u(e,"class","v-1ub874v"),B(e,"reversed",t[0])},m(b,k){T(b,e,k),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,_)},p(b,[k]){k&1&&B(e,"reversed",b[0])},i:j,o:j,d(b){b&&P(e)}}}function Y3(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class Q3 extends _e{constructor(e){super(),be(this,e,Y3,G3,ge,{reversed:0},K3)}}function X3(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("defs"),l=N("clipPath"),r=N("path"),a=N("filter"),c=N("feFlood"),f=N("feColorMatrix"),p=N("feOffset"),h=N("feGaussianBlur"),_=N("feColorMatrix"),b=N("feBlend"),k=N("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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 7ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3h-11ZM12 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 22Zm18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3h-4ZM22 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 22Z"),u(n,"fill","#fff"),u(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.977V25.177c0 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.977V22.823c0-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-.01ZM12.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"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(r,"fill","#fff"),u(r,"d","M0 0h48v48H0z"),u(l,"id","a"),u(c,"flood-opacity","0"),u(c,"result","BackgroundImageFix"),u(f,"in","SourceAlpha"),u(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(f,"result","hardAlpha"),u(h,"stdDeviation","2.5"),u(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2260_104204"),u(k,"in","SourceGraphic"),u(k,"in2","effect1_dropShadow_2260_104204"),u(k,"result","shape"),u(a,"id","b"),u(a,"x","-1.5"),u(a,"y","1.5"),u(a,"width","51"),u(a,"height","45"),u(a,"filterUnits","userSpaceOnUse"),u(a,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(v,S){T(v,e,S),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(s,a),m(a,c),m(a,f),m(a,p),m(a,h),m(a,_),m(a,b),m(a,k)},d(v){v&&P(e)}}}function J3(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("path"),l=N("defs"),r=N("clipPath"),a=N("path"),c=N("filter"),f=N("feFlood"),p=N("feColorMatrix"),h=N("feOffset"),_=N("feGaussianBlur"),b=N("feColorMatrix"),k=N("feBlend"),v=N("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.499 10.499 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-3h-11ZM12 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 22Z"),u(n,"fill","#fff"),u(o,"d","M34.5 23.5h-4.639l12.552 12.551c.158-.254.306-.516.443-.784.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.5H34.5a1.5 1.5 0 0 1 0 3Z"),u(o,"fill","#fff"),u(s,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268c.162-.26.313-.528.453-.803.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977V22.823c0-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.128-.118.01-.235.02-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5h-4.639ZM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.75 10.75 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.977V25.177c0 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.474l-37-37ZM12.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"),u(s,"stroke","#000"),u(s,"stroke-opacity",".12"),u(s,"stroke-width",".5"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(a,"fill","#fff"),u(a,"d","M0 0h48v48H0z"),u(r,"id","a"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(p,"in","SourceAlpha"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(p,"result","hardAlpha"),u(_,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(k,"in2","BackgroundImageFix"),u(k,"result","effect1_dropShadow_2260_104293"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_104293"),u(v,"result","shape"),u(c,"id","b"),u(c,"x","-1.5"),u(c,"y","-1.5"),u(c,"width","51"),u(c,"height","51"),u(c,"filterUnits","userSpaceOnUse"),u(c,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(S,w){T(S,e,w),m(e,i),m(i,n),m(i,o),m(i,s),m(e,l),m(l,r),m(r,a),m(l,c),m(c,f),m(c,p),m(c,h),m(c,_),m(c,b),m(c,k),m(c,v)},d(S){S&&P(e)}}}function x3(t){let e;function i(s,l){return s[0]?J3:X3}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),T(s,e,l)},p(s,[l]){n!==(n=i(s))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:j,o:j,d(s){s&&P(e),o.d(s)}}}function $3(t,e,i){let{isOff:n=!1}=e;return t.$$set=o=>{"isOff"in o&&i(0,n=o.isOff)},[n]}class Cu extends _e{constructor(e){super(),be(this,e,$3,x3,ge,{isOff:0})}}function ep(t){Ze(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function tp(t){let e,i,n,o,s,l,r,a,c,f,p,h,_;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("defs"),l=N("filter"),r=N("feFlood"),a=N("feColorMatrix"),c=N("feOffset"),f=N("feGaussianBlur"),p=N("feColorMatrix"),h=N("feBlend"),_=N("feBlend"),u(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.044l-12.21 6.916Z"),u(n,"fill","#fff"),u(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"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2260_106627"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_106627"),u(_,"result","shape"),u(l,"id","a"),u(l,"x","3.402"),u(l,"y","10.105"),u(l,"width","40.098"),u(l,"height","27.785"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","rate-change-icon"),u(e,"class","v-1ub874v"),B(e,"reversed",t[0])},m(b,k){T(b,e,k),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,_)},p(b,[k]){k&1&&B(e,"reversed",b[0])},i:j,o:j,d(b){b&&P(e)}}}function ip(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class np extends _e{constructor(e){super(),be(this,e,ip,tp,ge,{reversed:0},ep)}}function op(t){Ze(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function lp(t){let e,i,n,o,s,l,r,a,c,f,p,h,_;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),s=N("defs"),l=N("filter"),r=N("feFlood"),a=N("feColorMatrix"),c=N("feOffset"),f=N("feGaussianBlur"),p=N("feColorMatrix"),h=N("feBlend"),_=N("feBlend"),u(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.908 2.908 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.909 2.909 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 0v8.317Z"),u(n,"fill","#fff"),u(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.158 3.158 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.158 3.158 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.006-13.008 7.172Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2340_106922"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2340_106922"),u(_,"result","shape"),u(l,"id","a"),u(l,"x","5.5"),u(l,"y","5.5"),u(l,"width","37"),u(l,"height","37"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","episodes-seek-icon"),u(e,"class","v-1ub874v"),B(e,"reversed",t[0])},m(b,k){T(b,e,k),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,_)},p(b,[k]){k&1&&B(e,"reversed",b[0])},i:j,o:j,d(b){b&&P(e)}}}function sp(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class rp extends _e{constructor(e){super(),be(this,e,sp,lp,ge,{reversed:0},op)}}function ap(t){Ze(t,"v-4ftgwp",`.hot-key-helpers-container.v-4ftgwp.v-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:v-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.v-4ftgwp>div.v-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.v-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.v-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.v-4ftgwp.v-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.v-4ftgwp.v-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.v-4ftgwp.v-4ftgwp{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.v-4ftgwp.v-4ftgwp{visibility:hidden;animation:v-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes v-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes v-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function xr(t){let e,i=[Ye.BACKWARD_SEEK,Ye.FORWARD_SEEK].includes(t[4]),n,o,s,l,r,a,c=[Ye.RATE_DOWN,Ye.RATE_UP].includes(t[4]),f,p=[Ye.EPISODE_PREV,Ye.EPISODE_NEXT].includes(t[4]),h,_,b,k,v,S=i&&$r(t),w=t[4]===Ye.PAUSE&&ea(),y=t[4]===Ye.PLAY&&ta(),A=t[4]===Ye.REPLAY&&ia(),oe=t[4]===Ye.SUBTITLES_OFF&&na(),M=t[4]===Ye.SUBTITLES_ON&&oa(),Z=c&&la(t),ne=p&&sa(t),L=t[4]===Ye.MUTE&&ra(),V=t[4]===Ye.VOLUME&&aa(),x=t[5]&&ua(t);return{c(){e=E("div"),S&&S.c(),n=R(),w&&w.c(),o=R(),y&&y.c(),s=R(),A&&A.c(),l=R(),oe&&oe.c(),r=R(),M&&M.c(),a=R(),Z&&Z.c(),f=R(),ne&&ne.c(),h=R(),L&&L.c(),_=R(),V&&V.c(),b=R(),x&&x.c(),k=ct(),u(e,"class","v-4ftgwp")},m(Y,le){T(Y,e,le),S&&S.m(e,null),m(e,n),w&&w.m(e,null),m(e,o),y&&y.m(e,null),m(e,s),A&&A.m(e,null),m(e,l),oe&&oe.m(e,null),m(e,r),M&&M.m(e,null),m(e,a),Z&&Z.m(e,null),m(e,f),ne&&ne.m(e,null),m(e,h),L&&L.m(e,null),m(e,_),V&&V.m(e,null),T(Y,b,le),x&&x.m(Y,le),T(Y,k,le),v=!0},p(Y,le){le&16&&(i=[Ye.BACKWARD_SEEK,Ye.FORWARD_SEEK].includes(Y[4])),i?S?(S.p(Y,le),le&16&&d(S,1)):(S=$r(Y),S.c(),d(S,1),S.m(e,n)):S&&(ce(),g(S,1,1,()=>{S=null}),fe()),Y[4]===Ye.PAUSE?w?le&16&&d(w,1):(w=ea(),w.c(),d(w,1),w.m(e,o)):w&&(ce(),g(w,1,1,()=>{w=null}),fe()),Y[4]===Ye.PLAY?y?le&16&&d(y,1):(y=ta(),y.c(),d(y,1),y.m(e,s)):y&&(ce(),g(y,1,1,()=>{y=null}),fe()),Y[4]===Ye.REPLAY?A?le&16&&d(A,1):(A=ia(),A.c(),d(A,1),A.m(e,l)):A&&(ce(),g(A,1,1,()=>{A=null}),fe()),Y[4]===Ye.SUBTITLES_OFF?oe?le&16&&d(oe,1):(oe=na(),oe.c(),d(oe,1),oe.m(e,r)):oe&&(ce(),g(oe,1,1,()=>{oe=null}),fe()),Y[4]===Ye.SUBTITLES_ON?M?le&16&&d(M,1):(M=oa(),M.c(),d(M,1),M.m(e,a)):M&&(ce(),g(M,1,1,()=>{M=null}),fe()),le&16&&(c=[Ye.RATE_DOWN,Ye.RATE_UP].includes(Y[4])),c?Z?(Z.p(Y,le),le&16&&d(Z,1)):(Z=la(Y),Z.c(),d(Z,1),Z.m(e,f)):Z&&(ce(),g(Z,1,1,()=>{Z=null}),fe()),le&16&&(p=[Ye.EPISODE_PREV,Ye.EPISODE_NEXT].includes(Y[4])),p?ne?(ne.p(Y,le),le&16&&d(ne,1)):(ne=sa(Y),ne.c(),d(ne,1),ne.m(e,h)):ne&&(ce(),g(ne,1,1,()=>{ne=null}),fe()),Y[4]===Ye.MUTE?L?le&16&&d(L,1):(L=ra(),L.c(),d(L,1),L.m(e,_)):L&&(ce(),g(L,1,1,()=>{L=null}),fe()),Y[4]===Ye.VOLUME?V?le&16&&d(V,1):(V=aa(),V.c(),d(V,1),V.m(e,null)):V&&(ce(),g(V,1,1,()=>{V=null}),fe()),Y[5]?x?x.p(Y,le):(x=ua(Y),x.c(),x.m(k.parentNode,k)):x&&(x.d(1),x=null)},i(Y){v||(d(S),d(w),d(y),d(A),d(oe),d(M),d(Z),d(ne),d(L),d(V),v=!0)},o(Y){g(S),g(w),g(y),g(A),g(oe),g(M),g(Z),g(ne),g(L),g(V),v=!1},d(Y){Y&&(P(e),P(b),P(k)),S&&S.d(),w&&w.d(),y&&y.d(),A&&A.d(),oe&&oe.d(),M&&M.d(),Z&&Z.d(),ne&&ne.d(),L&&L.d(),V&&V.d(),x&&x.d(Y)}}}function $r(t){let e,i;return e=new Q3({props:{reversed:t[4]===Ye.FORWARD_SEEK}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Ye.FORWARD_SEEK),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ea(t){let e,i;return e=new tu({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ta(t){let e,i;return e=new Il({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ia(t){let e,i;return e=new fu({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function na(t){let e,i;return e=new Cu({props:{isOff:!0}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function oa(t){let e,i;return e=new Cu({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function la(t){let e,i;return e=new np({props:{reversed:t[4]===Ye.RATE_UP}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Ye.RATE_UP),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function sa(t){let e,i;return e=new rp({props:{reversed:t[4]===Ye.EPISODE_NEXT}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Ye.EPISODE_NEXT),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ra(t){let e,i;return e=new Go({props:{volume:0}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function aa(t){let e,i;return e=new Go({props:{volume:1}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ua(t){let e,i;return{c(){e=E("span"),i=De(t[5]),u(e,"class","hot-key-helpers-text v-4ftgwp")},m(n,o){T(n,e,o),m(e,i)},p(n,o){o&32&&$e(i,n[5])},d(n){n&&P(e)}}}function up(t){let e,i,n=!t[1]&&t[4]&&xr(t);return{c(){e=E("div"),n&&n.c(),u(e,"class","hot-key-helpers-container v-4ftgwp"),B(e,"hidden",t[1]),B(e,"hot-key-helpers-container--left",t[2]),B(e,"hot-key-helpers-container--right",t[3])},m(o,s){T(o,e,s),n&&n.m(e,null),i=!0},p(o,[s]){!o[1]&&o[4]?n?(n.p(o,s),s&18&&d(n,1)):(n=xr(o),n.c(),d(n,1),n.m(e,null)):n&&(ce(),g(n,1,1,()=>{n=null}),fe()),(!i||s&2)&&B(e,"hidden",o[1]),(!i||s&4)&&B(e,"hot-key-helpers-container--left",o[2]),(!i||s&8)&&B(e,"hot-key-helpers-container--right",o[3])},i(o){i||(d(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d()}}}function cp(t,e,i){let n,o=j,s=()=>(o(),o=Wt(l,h=>i(6,n=h)),l);t.$$.on_destroy.push(()=>o());let{data:l}=e;s();let r,a,c,f,p;return t.$$set=h=>{"data"in h&&s(i(0,l=h.data))},t.$$.update=()=>{t.$$.dirty&64&&(i(1,r=!n),i(2,a=n?.type===Ye.BACKWARD_SEEK),i(3,c=n?.type===Ye.FORWARD_SEEK),i(4,f=n?.type),n?.t?i(5,p=W(n.t.key,{value:n.t.value||""})):i(5,p=n?.text))},[l,r,a,c,f,p,n]}class fp extends _e{constructor(e){super(),be(this,e,cp,up,ge,{data:0},ap)}}function dp(t){Ze(t,"v-1yzc86r",".immersive-controls.v-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.v-1yzc86r{top:50px;left:20px}.button-block.v-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.v-1yzc86r{display:flex;flex-direction:row;position:relative}.button.v-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.v-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.v-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.v-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.v-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.v-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.v-1yzc86r:hover svg{opacity:1}")}function mp(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w;return s=new Fn({props:{direction:"up"}}),a=new Fn({props:{direction:"up"}}),h=new Fn({props:{direction:"up"}}),k=new Fn({props:{direction:"up"}}),{c(){e=E("div"),i=E("div"),n=E("div"),o=E("div"),U(s.$$.fragment),l=R(),r=E("div"),U(a.$$.fragment),c=R(),f=E("div"),p=E("div"),U(h.$$.fragment),_=R(),b=E("div"),U(k.$$.fragment),u(o,"class","button button-up v-1yzc86r"),u(r,"class","button button-right v-1yzc86r"),u(n,"class","button-row v-1yzc86r"),u(p,"class","button button-left v-1yzc86r"),u(b,"class","button button-down v-1yzc86r"),u(f,"class","button-row v-1yzc86r"),u(i,"class","button-block v-1yzc86r"),u(i,"aria-hidden","true"),u(e,"class","immersive-controls v-1yzc86r"),u(e,"tabindex","0"),u(e,"role","button"),u(e,"aria-label",W("aria_label_spherical_control")),B(e,"m-shifted",t[0])},m(y,A){T(y,e,A),m(e,i),m(i,n),m(n,o),D(s,o,null),m(n,l),m(n,r),D(a,r,null),m(i,c),m(i,f),m(f,p),D(h,p,null),m(f,_),m(f,b),D(k,b,null),v=!0,S||(w=[pe(o,"mousedown",t[1]),pe(o,"mouseup",t[5]),pe(o,"mouseleave",t[5]),pe(r,"mousedown",t[3]),pe(r,"mouseup",t[5]),pe(r,"mouseleave",t[5]),pe(p,"mousedown",t[4]),pe(p,"mouseup",t[5]),pe(p,"mouseleave",t[5]),pe(b,"mousedown",t[2]),pe(b,"mouseup",t[5]),pe(b,"mouseleave",t[5]),pe(e,"keydown",t[6]),pe(e,"keyup",t[7])],S=!0)},p(y,[A]){(!v||A&1)&&B(e,"m-shifted",y[0])},i(y){v||(d(s.$$.fragment,y),d(a.$$.fragment,y),d(h.$$.fragment,y),d(k.$$.fragment,y),v=!0)},o(y){g(s.$$.fragment,y),g(a.$$.fragment,y),g(h.$$.fragment,y),g(k.$$.fragment,y),v=!1},d(y){y&&P(e),F(s),F(a),F(h),F(k),S=!1,nt(w)}}}function pp(t,e,i){let{isShifted:n=!1}=e;const o=pt(),s=new Set([Ae.ArrowUp,Ae.ArrowDown,Ae.ArrowLeft,Ae.ArrowRight]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},r=()=>{o.actions.internal.startCameraManualRotation(0,-1)},a=()=>{o.actions.internal.startCameraManualRotation(1,0)},c=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=_=>{if(s.has(_.code))switch(_.preventDefault(),_.stopPropagation(),_.code){case Ae.ArrowUp:l();break;case Ae.ArrowDown:r();break;case Ae.ArrowLeft:c();break;case Ae.ArrowRight:a();break}},h=_=>{s.has(_.code)&&(_.preventDefault(),_.stopPropagation(),f())};return t.$$set=_=>{"isShifted"in _&&i(0,n=_.isShifted)},[n,l,r,a,c,f,p,h]}class Su extends _e{constructor(e){super(),be(this,e,pp,mp,ge,{isShifted:0},dp)}}function hp(t){Ze(t,"v-ovfyp5",".subtitles-container.v-ovfyp5.v-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.v-ovfyp5.v-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.v-ovfyp5.v-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.v-ovfyp5.v-ovfyp5{bottom:8%}.subtitles-container.auto.v-ovfyp5 .subtitles-caption.v-ovfyp5{left:24%;right:24%}.caption.v-ovfyp5.v-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.v-ovfyp5 .caption.v-ovfyp5{width:100%}.caption-line.v-ovfyp5.v-ovfyp5{display:block;text-align:center}.subtitles-container.auto.v-ovfyp5 .caption-line.v-ovfyp5{text-align:left}.caption-segment.v-ovfyp5.v-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function ca(t,e,i){const n=t.slice();return n[16]=e[i].value,n}function fa(t,e,i){const n=t.slice();return n[16]=e[i].value,n[17]=e[i].timeAppeared,n}function da(t){let e,i;function n(l,r){return l[7]&&l[8]?_p:l[5]?bp:gp}let o=n(t),s=o(t);return{c(){e=E("div"),i=E("span"),s.c(),u(i,"class","caption v-ovfyp5"),u(e,"class","subtitles-caption v-ovfyp5"),B(e,"mobile",t[3])},m(l,r){T(l,e,r),m(e,i),s.m(i,null)},p(l,r){o===(o=n(l))&&s?s.p(l,r):(s.d(1),s=o(l),s&&(s.c(),s.m(i,null))),r&8&&B(e,"mobile",l[3])},d(l){l&&P(e),s.d()}}}function gp(t){let e,i=Rt(t[1]),n=[];for(let o=0;o<i.length;o+=1)n[o]=ma(ca(t,i,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ct()},m(o,s){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,s);T(o,e,s)},p(o,s){if(s&18){i=Rt(o[1]);let l;for(l=0;l<i.length;l+=1){const r=ca(o,i,l);n[l]?n[l].p(r,s):(n[l]=ma(r),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},d(o){o&&P(e),pn(n,o)}}}function bp(t){let e,i,n=Rt(t[6]),o=[];for(let s=0;s<n.length;s+=1)o[s]=ha(fa(t,n,s));return{c(){e=E("span"),i=E("span");for(let s=0;s<o.length;s+=1)o[s].c();u(i,"class","caption-segment v-ovfyp5"),Tt(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(s,l){T(s,e,l),m(e,i);for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(i,null)},p(s,l){if(l&68){n=Rt(s[6]);let r;for(r=0;r<n.length;r+=1){const a=fa(s,n,r);o[r]?o[r].p(a,l):(o[r]=ha(a),o[r].c(),o[r].m(i,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}l&16&&Tt(i,"font-size",s[4]+"px")},d(s){s&&P(e),pn(o,s)}}}function _p(t){let e,i,n=W("subtitles_auto_caption")+"",o;return{c(){e=E("span"),i=E("span"),o=De(n),u(i,"class","caption-segment v-ovfyp5"),Tt(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(s,l){T(s,e,l),m(e,i),m(i,o)},p(s,l){l&16&&Tt(i,"font-size",s[4]+"px")},d(s){s&&P(e)}}}function ma(t){let e,i,n=t[16]+"",o,s;return{c(){e=E("span"),i=E("span"),o=De(n),s=R(),u(i,"class","caption-segment v-ovfyp5"),Tt(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(l,r){T(l,e,r),m(e,i),m(i,o),m(e,s)},p(l,r){r&2&&n!==(n=l[16]+"")&&$e(o,n),r&16&&Tt(i,"font-size",l[4]+"px")},d(l){l&&P(e)}}}function pa(t){let e=t[16]+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&$e(i,e)},d(n){n&&P(i)}}}function ha(t){let e,i=(!t[17]||t[17]<=t[2])&&pa(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),T(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?i?i.p(n,o):(i=pa(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(n){n&&P(e),i&&i.d(n)}}}function vp(t){let e,i=t[1].length>0&&da(t);return{c(){e=E("div"),i&&i.c(),u(e,"class","subtitles-container v-ovfyp5"),B(e,"shifted",t[0]),B(e,"auto",t[5]&&!t[8])},m(n,o){T(n,e,o),i&&i.m(e,null)},p(n,[o]){n[1].length>0?i?i.p(n,o):(i=da(n),i.c(),i.m(e,null)):i&&(i.d(1),i=null),o&1&&B(e,"shifted",n[0]),o&288&&B(e,"auto",n[5]&&!n[8])},i:j,o:j,d(n){n&&P(e),i&&i.d()}}}function kp(t,e,i){let n,o,{shifted:s}=e,{captions:l}=e,{position:r}=e,{playerSize:a}=e,{isMobile:c=!1}=e;const f=pt(),p=sn(),h=f.state.currentSubtitle$;O(t,h,y=>i(12,n=y));const _=f.state.isAutoSubtitleCaptionVisible$;O(t,_,y=>i(8,o=y));let b,k,v,S,w;return ln(()=>{w=window.setTimeout(()=>{_.set(!1)},p.autoSubtitlesTimeout)}),Zo(()=>{window.clearTimeout(w)}),t.$$set=y=>{"shifted"in y&&i(0,s=y.shifted),"captions"in y&&i(1,l=y.captions),"position"in y&&i(2,r=y.position),"playerSize"in y&&i(11,a=y.playerSize),"isMobile"in y&&i(3,c=y.isMobile)},t.$$.update=()=>{if(t.$$.dirty&2048){const y=a.width*.02;i(4,b=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}t.$$.dirty&2&&i(5,k=l.some(y=>y.type==="timestamp")),t.$$.dirty&2&&i(6,v=l.reduce((y,{type:A,value:oe})=>(A==="timestamp"?y.push({timeAppeared:Number(oe),value:""}):y.length===0?y.push({value:String(oe)}):y[y.length-1].value=String(oe),y),[])),t.$$.dirty&4096&&i(7,S=!!n.isAuto)},[s,l,r,c,b,k,v,S,o,h,_,a,n]}class Pu extends _e{constructor(e){super(),be(this,e,kp,vp,ge,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},hp)}}function wp(t){Ze(t,"v-1o62kpz",".wrapper.v-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.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}")}function ga(t){let e,i,n;return{c(){e=E("div"),i=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(t[1]),u(e,"class","text v-1o62kpz")},m(o,s){T(o,e,s),m(e,i),m(e,n)},p(o,s){s&2&&$e(n,o[1])},d(o){o&&P(e)}}}function yp(t){let e,i,n,o,s,l,r=t[1]&&ga(t);return{c(){e=E("div"),i=E("div"),i.innerHTML='<svg class="icon v-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=R(),r&&r.c(),u(i,"class","icon_wrapper v-1o62kpz"),u(e,"class","wrapper v-1o62kpz"),u(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(a,c){T(a,e,c),m(e,i),m(e,n),r&&r.m(e,null),s||(l=pe(e,"click",t[2]),s=!0)},p(a,[c]){a[1]?r?r.p(a,c):(r=ga(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),c&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${a[0]||""}')`)&&u(e,"style",o)},i:j,o:j,d(a){a&&P(e),r&&r.d(),s=!1,l()}}}function Cp(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function s(l){lo.call(this,t,l)}return t.$$set=l=>{"thumbUrl"in l&&i(0,n=l.thumbUrl),"chromecastDeviceName"in l&&i(1,o=l.chromecastDeviceName)},[n,o,s]}class Tu extends _e{constructor(e){super(),be(this,e,Cp,yp,ge,{thumbUrl:0,chromecastDeviceName:1},wp)}}function Sp(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"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 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-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.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z"),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"width","200"),u(e,"height","200"),u(e,"viewBox","460 190 130 90"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","error-icon")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class Pp extends _e{constructor(e){super(),be(this,e,null,Sp,ge,{})}}function Tp(t){Ze(t,"v-13zpvm8",".container.v-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function Ep(t){let e,i,n;return i=new Pp({}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","container v-13zpvm8")},m(o,s){T(o,e,s),D(i,e,null),n=!0},p:j,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}class Eu extends _e{constructor(e){super(),be(this,e,null,Ep,ge,{},Tp)}}function Ap(t){Ze(t,"v-17wno3",".container.v-17wno3.v-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.v-17wno3.v-17wno3{opacity:0;visibility:hidden}.playButton.v-17wno3.v-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.v-17wno3.v-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.v-17wno3:hover .playButtonBackground.v-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.v-17wno3 svg{transform:scale(2)}")}function Ip(t){let e,i,n,o,s,l,r,a,c;return s=new Il({}),{c(){e=E("div"),i=E("div"),n=E("div"),o=R(),U(s.$$.fragment),u(n,"class","playButtonBackground v-17wno3"),u(i,"class","playButton v-17wno3"),u(i,"tabindex","0"),u(i,"role","button"),u(i,"aria-label",W("tooltip_play")),u(e,"class","container v-17wno3"),u(e,"style",l=`background-color: #222; background-image: url('${t[0]||""}')`),B(e,"hidden",t[1])},m(f,p){T(f,e,p),m(e,i),m(i,n),m(i,o),D(s,i,null),r=!0,a||(c=[pe(i,"keydown",t[3]),pe(e,"click",ot(function(){mn(t[2])&&t[2].apply(this,arguments)}))],a=!0)},p(f,[p]){t=f,(!r||p&1&&l!==(l=`background-color: #222; background-image: url('${t[0]||""}')`))&&u(e,"style",l),(!r||p&2)&&B(e,"hidden",t[1])},i(f){r||(d(s.$$.fragment,f),r=!0)},o(f){g(s.$$.fragment,f),r=!1},d(f){f&&P(e),F(s),a=!1,nt(c)}}}function Lp(t,e,i){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:s}=e;const r=pt().ui.startedByKeyboard$,a=c=>{const f=c.code;[Ae.Enter,Ae.Space].includes(f)&&(c.stopPropagation(),c.preventDefault(),r.set(!0),s())};return t.$$set=c=>{"thumbUrl"in c&&i(0,n=c.thumbUrl),"hidden"in c&&i(1,o=c.hidden),"startVideo"in c&&i(2,s=c.startVideo)},[n,o,s,a]}class Au extends _e{constructor(e){super(),be(this,e,Lp,Ip,ge,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Ap)}get handlePressKey(){return this.$$.ctx[3]}}function Vp(t){Ze(t,"v-1bcvcf2",`.title.v-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(
24
+ )}`)}function Ql(t){let e;return{c(){e=I("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function Xl(t){let e,i;return e=new ff({props:{position:t[5],secondsToWatchBeforeSkip:t[6],skipAd:t[8].actions.internal.skipAd}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&32&&(s.position=n[5]),o&64&&(s.secondsToWatchBeforeSkip=n[6]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Jl(t){let e,i;return e=new lf({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function xl(t){let e,i;return e=new pf({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function gf(t){let e,i,n,o,s,l,r,a=t[0]&&Ql(),c=t[3]&&Xl(t),f=t[7]&&Jl(),m=t[4]&&xl();return{c(){e=I("div"),a&&a.c(),i=D(),n=I("video"),o=D(),c&&c.c(),s=D(),f&&f.c(),l=D(),m&&m.c(),It(n,"width","100%"),It(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(h,_){T(h,e,_),a&&a.m(e,null),p(e,i),p(e,n),t[19](n),p(e,o),c&&c.m(e,null),p(e,s),f&&f.m(e,null),p(e,l),m&&m.m(e,null),t[20](e),r=!0},p(h,[_]){h[0]?a||(a=Ql(),a.c(),a.m(e,i)):a&&(a.d(1),a=null),h[3]?c?(c.p(h,_),_&8&&d(c,1)):(c=Xl(h),c.c(),d(c,1),c.m(e,s)):c&&(fe(),g(c,1,1,()=>{c=null}),de()),h[7]?f?_&128&&d(f,1):(f=Jl(),f.c(),d(f,1),f.m(e,l)):f&&(fe(),g(f,1,1,()=>{f=null}),de()),h[4]?m?_&16&&d(m,1):(m=xl(),m.c(),d(m,1),m.m(e,null)):m&&(fe(),g(m,1,1,()=>{m=null}),de())},i(h){r||(d(c),d(f),d(m),r=!0)},o(h){g(c),g(f),g(m),r=!1},d(h){h&&P(e),a&&a.d(),t[19](null),c&&c.d(),f&&f.d(),m&&m.d(),t[20](null)}}}function bf(t,e,i){let n,o,s,l,r,{adsSlotId:a=void 0}=e,{adsParams:c=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:m=0}=e;const h=ht(),_=h.state.isEnded$;O(t,_,C=>i(7,r=C));const b=h.ui.isMobile;O(t,b,C=>i(0,o=C));let k,v,S=!1;const w=h.ads.playbackState;O(t,w,C=>i(18,n=C));const y=h.ads.canSkip,E=h.ads.position;O(t,E,C=>i(5,s=C));const ie=h.ads.secondsToWatchBeforeSkip;O(t,ie,C=>i(6,l=C));let V,F;sn(()=>{const C=new AbortController;let $=()=>{C.abort()};const R=h.getAdmanWrapper();if(!a){R.onAdmanLoadingError();return}const{width:se,height:j}=xe(h.ui.playerSize),N=xe(h.ui.isFullscreen),Q=xe(h.ui.isAutoplay),A={width:se,height:j,isFullscreen:N,isAutoplay:Q,adsContainer:k,adsVideoElement:v,slotId:a,params:c,previewParam:f,duration:m};return window.AdmanHTML?(R.initAdman(A),S=!0):R.loadAdman(C.signal).then(()=>{R.initAdman(A),S=!0}).catch(()=>{R.onAdmanLoadingError()}),()=>{!S&&$()}});function oe(C){we[C?"unshift":"push"](()=>{v=C,i(2,v)})}function x(C){we[C?"unshift":"push"](()=>{k=C,i(1,k)})}return t.$$set=C=>{"adsSlotId"in C&&i(14,a=C.adsSlotId),"adsParams"in C&&i(15,c=C.adsParams),"adsPreviewParam"in C&&i(16,f=C.adsPreviewParam),"duration"in C&&i(17,m=C.duration)},t.$$.update=()=>{t.$$.dirty&262144&&i(3,V=y&&n!==Zt.INACTIVE),t.$$.dirty&262145&&i(4,F=o&&n!==Zt.INACTIVE)},[o,k,v,V,F,s,l,r,h,_,b,w,E,ie,a,c,f,m,n,oe,x]}class T1 extends ve{constructor(e){super(),_e(this,e,bf,gf,be,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},hf)}}const Vn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t);const i=Math.floor(e/(60*60));e-=i*(60*60);const n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(s=>s>9?String(s):`0${s}`).join(":")};function _f(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),n=B("path"),u(i,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 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.52 3.52 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.52 3.52 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.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),u(i,"fill","none"),u(i,"stroke","#fff"),u(i,"stroke-width","2"),u(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.49.49 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.49.49 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.89.89 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.89.89 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-.9z"),u(n,"fill","#f0f2f5"),u(n,"fill-rule","evenodd"),u(e,"width","42"),u(e,"height","20"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","live-icon")},m(o,s){T(o,e,s),p(e,i),p(e,n)},d(o){o&&P(e)}}}function vf(t){let e,i,n;return{c(){e=B("svg"),i=B("rect"),n=B("path"),u(i,"width","42"),u(i,"height","20"),u(i,"rx","5"),u(i,"fill","#FF3347"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-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-2h-4zm-8.325 9.31-2.55-7.824a.993.993 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.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),u(n,"fill","#F2F3F5"),u(e,"width","42"),u(e,"height","20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","live-active-icon")},m(o,s){T(o,e,s),p(e,i),p(e,n)},d(o){o&&P(e)}}}function kf(t){let e;function i(s,l){return s[0]?vf:_f}let n=i(t),o=n(t);return{c(){o.c(),e=at()},m(s,l){o.m(s,l),T(s,e,l)},p(s,[l]){n!==(n=i(s))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:W,o:W,d(s){s&&P(e),o.d(s)}}}function wf(t,e,i){let{isActive:n=!1}=e;return t.$$set=o=>{"isActive"in o&&i(0,n=o.isActive)},[n]}class I1 extends ve{constructor(e){super(),_e(this,e,wf,kf,be,{isActive:0})}}function yf(t){Ke(t,"v-7pnl2h",".thumb-timer.v-7pnl2h.v-7pnl2h{position:absolute;z-index:2;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.v-7pnl2h.v-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.v-7pnl2h.v-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.v-7pnl2h.v-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.v-7pnl2h.v-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.v-7pnl2h.v-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.v-7pnl2h .thumb-timer-equalizer.v-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h{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.v-7pnl2h .thumb-timer-equalizer .col.v-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(1){left:0;animation-name:v-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(2){left:3px;animation-name:v-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(3){left:6px;animation-name:v-7pnl2h-thumb-timer-equalizer-col3}@keyframes v-7pnl2h-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 v-7pnl2h-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 v-7pnl2h-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.v-7pnl2h.v-7pnl2h{display:inline-block;text-align:right}")}function Cf(t){let e=Vn(t[4]-t[3])+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p(n,o){o&24&&e!==(e=Vn(n[4]-n[3])+"")&&et(i,e)},i:W,o:W,d(n){n&&P(i)}}}function Pf(t){let e,i,n;return i=new I1({props:{isActive:!0}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","thumb-timer-live-icon v-7pnl2h")},m(o,s){T(o,e,s),z(i,e,null),n=!0},p:W,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function Sf(t){let e,i,n,o,s,l,r;const a=[Pf,Cf],c=[];function f(m,h){return m[1]?0:1}return s=f(t),l=c[s]=a[s](t),{c(){e=I("div"),i=I("div"),i.innerHTML='<div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div>',n=D(),o=I("span"),l.c(),u(i,"class","thumb-timer-equalizer v-7pnl2h"),u(o,"class","thumb-timer-text v-7pnl2h"),u(e,"role","timer"),u(e,"class","thumb-timer v-7pnl2h"),u(e,"data-testid","thumb-timer"),M(e,"live",t[1]),M(e,"hidden",t[0]),M(e,"playing",t[2])},m(m,h){T(m,e,h),p(e,i),p(e,n),p(e,o),c[s].m(o,null),r=!0},p(m,[h]){let _=s;s=f(m),s===_?c[s].p(m,h):(fe(),g(c[_],1,1,()=>{c[_]=null}),de(),l=c[s],l?l.p(m,h):(l=c[s]=a[s](m),l.c()),d(l,1),l.m(o,null)),(!r||h&2)&&M(e,"live",m[1]),(!r||h&1)&&M(e,"hidden",m[0]),(!r||h&4)&&M(e,"playing",m[2])},i(m){r||(d(l),r=!0)},o(m){g(l),r=!1},d(m){m&&P(e),c[s].d()}}}function Tf(t,e,i){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:s=!1}=e,{position:l}=e,{duration:r}=e;return t.$$set=a=>{"isHidden"in a&&i(0,n=a.isHidden),"isLive"in a&&i(1,o=a.isLive),"isPlaying"in a&&i(2,s=a.isPlaying),"position"in a&&i(3,l=a.position),"duration"in a&&i(4,r=a.duration)},[n,o,s,l,r]}class A1 extends ve{constructor(e){super(),_e(this,e,Tf,Sf,be,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},yf)}}const pl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}},Xn=t=>{t.stopPropagation(),t.preventDefault()},If=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},Af=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},Ef=t=>{const e=t.code;return e===Ae.Tab&&!t.shiftKey||e===Ae.ArrowDown},Lf=t=>{const e=t.code;return e===Ae.Tab||e===Ae.ArrowUp},E1=t=>t.code===Ae.Escape,Vf=t=>t.code===Ae.ArrowLeft,L1=(t,e=!0)=>{const i=t.code;return[Ae.Enter,Ae.Space].includes(i)||!e&&i===Ae.ArrowRight},V1=t=>{if(Ef(t)){Xn(t),Af(t.target);return}Lf(t)&&(Xn(t),If(t.target))},kl=t=>t?.detail===0,wl=async(t,e,i)=>{await Po(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(i.set(!1),t.focus())},yl=async(t,e,i)=>{await Po(),!!t&&e&&i&&t.firstChild.focus()},zo=async(t,e,i)=>{!!t&&i&&(e.set(!1),setTimeout(()=>{t.focus()},Cc))},M1=(t,e)=>{V1(t),E1(t)&&(Xn(t),e())},Ho=async(t,e,i)=>{L1(t,!1)&&(Xn(t),e(),await Po(),i()?.focus())},Fo=async(t,e,i,n)=>{if(V1(t),Vf(t)){Xn(t),e(),i.set(!0);return}E1(t)&&(Xn(t),n())},$i=(t,e)=>{L1(t)&&(Xn(t),e())};function Mf(t){Ke(t,"v-gew86s","ul.v-gew86s{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.v-gew86s{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-gew86s:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function $l(t){let e,i,n,o,s,l,r=(t[9].features.saveDebugInfoToFile?K("menu_save_debug"):K("menu_copy_debug"))+"",a,c,f,m=K("menu_debug_overlay")+"",h,_,b,k,v=t[9].features.copyVideoLink&&t[8].callbacks?.onCopyVideoLink&&Bf(t),S=t[11]&&t[5]!==$e.ChromecastState.CONNECTED&&!t[16]&&ts(t),w=t[9].features.videoRotate&&!t[16]&&Nf(t),y=t[9].showSupport&&!t[6]&&is(t);return{c(){e=I("ul"),v&&v.c(),i=D(),S&&S.c(),n=D(),w&&w.c(),o=D(),y&&y.c(),s=D(),l=I("li"),a=De(r),c=D(),f=I("li"),h=De(m),u(l,"tabindex","0"),u(l,"role","menuitem"),u(l,"aria-label",t[9].features.saveDebugInfoToFile?K("menu_save_debug"):K("menu_copy_debug")),u(l,"class","v-gew86s"),u(f,"tabindex","0"),u(f,"role","menuitem"),u(f,"aria-label",_=t[7]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable")),u(f,"class","v-gew86s"),u(e,"role","menu"),It(e,"top",t[3]+"px"),It(e,"left",t[2]+"px"),u(e,"class","v-gew86s")},m(E,ie){T(E,e,ie),v&&v.m(e,null),p(e,i),S&&S.m(e,null),p(e,n),w&&w.m(e,null),p(e,o),y&&y.m(e,null),p(e,s),p(e,l),p(l,a),p(e,c),p(e,f),p(f,h),t[40](e),b||(k=[he(l,"click",ot(t[19])),he(l,"keydown",t[29]),he(f,"click",ot(t[20])),he(f,"keydown",t[30]),he(e,"contextmenu",Wt(t[37])),he(e,"keydown",t[23])],b=!0)},p(E,ie){E[9].features.copyVideoLink&&E[8].callbacks?.onCopyVideoLink&&v.p(E,ie),E[11]&&E[5]!==$e.ChromecastState.CONNECTED&&!E[16]?S?S.p(E,ie):(S=ts(E),S.c(),S.m(e,n)):S&&(S.d(1),S=null),E[9].features.videoRotate&&!E[16]&&w.p(E,ie),E[9].showSupport&&!E[6]?y?y.p(E,ie):(y=is(E),y.c(),y.m(e,s)):y&&(y.d(1),y=null),ie[0]&128&&_!==(_=E[7]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable"))&&u(f,"aria-label",_),ie[0]&8&&It(e,"top",E[3]+"px"),ie[0]&4&&It(e,"left",E[2]+"px")},d(E){E&&P(e),v&&v.d(),S&&S.d(),w&&w.d(),y&&y.d(),t[40](null),b=!1,nt(k)}}}function Bf(t){let e,i=K("menu_copy_video_link")+"",n,o,s,l,r,a=!t[4]&&!t[16]&&es(t);return{c(){e=I("li"),n=De(i),o=D(),a&&a.c(),s=at(),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",K("menu_copy_video_link")),u(e,"class","v-gew86s")},m(c,f){T(c,e,f),p(e,n),T(c,o,f),a&&a.m(c,f),T(c,s,f),l||(r=[he(e,"click",ot(t[38])),he(e,"keydown",t[24])],l=!0)},p(c,f){!c[4]&&!c[16]?a?a.p(c,f):(a=es(c),a.c(),a.m(s.parentNode,s)):a&&(a.d(1),a=null)},d(c){c&&(P(e),P(o),P(s)),a&&a.d(c),l=!1,nt(r)}}}function es(t){let e,i=K("menu_copy_video_link_with_timestamp")+"",n,o,s;return{c(){e=I("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",K("menu_copy_video_link_with_timestamp")),u(e,"class","v-gew86s")},m(l,r){T(l,e,r),p(e,n),o||(s=[he(e,"click",ot(t[39])),he(e,"keydown",t[25])],o=!0)},p:W,d(l){l&&P(e),o=!1,nt(s)}}}function ts(t){let e,i=K("menu_pip")+"",n,o,s;return{c(){e=I("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",K("menu_pip")),u(e,"class","v-gew86s")},m(l,r){T(l,e,r),p(e,n),o||(s=[he(e,"click",ot(t[21])),he(e,"keydown",t[26])],o=!0)},p:W,d(l){l&&P(e),o=!1,nt(s)}}}function Nf(t){let e,i=K("menu_video_rotate")+"",n,o,s;return{c(){e=I("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",K("aria_label_menu_rotate")),u(e,"class","v-gew86s")},m(l,r){T(l,e,r),p(e,n),o||(s=[he(e,"click",ot(t[17])),he(e,"keydown",t[27])],o=!0)},p:W,d(l){l&&P(e),o=!1,nt(s)}}}function is(t){let e,i=K("menu_report")+"",n,o,s;return{c(){e=I("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`),u(e,"class","v-gew86s")},m(l,r){T(l,e,r),p(e,n),o||(s=[he(e,"click",ot(t[18])),he(e,"keydown",t[28])],o=!0)},p:W,d(l){l&&P(e),o=!1,nt(s)}}}function Rf(t){let e,i=t[1]&&$l(t);return{c(){i&&i.c(),e=at()},m(n,o){i&&i.m(n,o),T(n,e,o)},p(n,o){n[1]?i?i.p(n,o):(i=$l(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:W,o:W,d(n){n&&P(e),i&&i.d(n)}}}function Df(t,e,i){let n,o,s,l,r,{visible:a=!1}=e,{supportLink:c}=e,{x:f=0}=e,{y:m=0}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:_=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:k}=e,v=0,S=0;const w=ht(),y=an(),E=w.ui.contextMenuVisible,ie=w.ui.debugPanelVisible;O(t,ie,ue=>i(7,r=ue));const V=w.webApi.pictureInPictureApi,F=w.webApi.pictureInPictureApi?.info.isActive$;O(t,F,ue=>i(6,l=ue));const oe=w.state.chromecastState$;O(t,oe,ue=>i(5,s=ue));const x=w.state.isLive$;O(t,x,ue=>i(4,o=ue));const C=w.state.positionExact$;O(t,C,ue=>i(41,n=ue));const $=w.state.isInteractive,R=()=>{E.set(!1)},se=(ue,Ce)=>{if(!b||!h||!_)return;const ge=b.getBoundingClientRect(),le=h.getBoundingClientRect();i(2,v=ue-le.left),i(3,S=Ce-le.top),v+ge.width>le.width&&i(2,v=le.width-ge.width),S+ge.height>le.height&&i(3,S=le.height-ge.height),i(2,v=Math.max(v,0)),i(3,S=Math.max(S,0))},j=()=>{R(),w.actions.internal.videoRotate()},N=()=>{window.open(c,"_blank"),R(),w.actions.internal.pause()},Q=()=>{const ue=w.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){const Ce=new Blob([...ue],{type:"plain/text"}),ge=window.URL.createObjectURL(Ce);s1(ge,"vk_player_debug_info","txt")}else pl(w.actions.internal.getDebugTextData());R(),k?.()},A=()=>{ie.set(!0),R(),k?.()},ne=async()=>{try{V?.isActive()?await V?.remove():await V?.request()}finally{R(),k?.()}},Ie=(ue=!1)=>{if(w.callbacks?.onCopyVideoLink){const Ce=w.callbacks?.onCopyVideoLink(ue,n);Ce&&pl(Ce)}R()},Ne=ue=>{M1(ue,R)},Be=ue=>{$i(ue,()=>Ie())},ze=ue=>{$i(ue,()=>Ie(!0))},ce=ue=>{$i(ue,()=>ne())},ke=ue=>{$i(ue,()=>j())},G=ue=>{$i(ue,()=>N())},J=ue=>{$i(ue,()=>Q())},ye=ue=>{$i(ue,()=>A())};function re(ue){Qn.call(this,t,ue)}const We=()=>Ie(),Ve=()=>Ie(!0);function Ee(ue){we[ue?"unshift":"push"](()=>{b=ue,i(0,b)})}return t.$$set=ue=>{"visible"in ue&&i(1,a=ue.visible),"supportLink"in ue&&i(31,c=ue.supportLink),"x"in ue&&i(32,f=ue.x),"y"in ue&&i(33,m=ue.y),"playerContainerRef"in ue&&i(34,h=ue.playerContainerRef),"controlsContainerRef"in ue&&i(35,_=ue.controlsContainerRef),"menuElementRef"in ue&&i(0,b=ue.menuElementRef),"returnFocus"in ue&&i(36,k=ue.returnFocus)},t.$$.update=()=>{t.$$.dirty[0]&1|t.$$.dirty[1]&30&&b&&h&&_&&se(f,m)},[b,a,v,S,o,s,l,r,w,y,ie,V,F,oe,x,C,$,j,N,Q,A,ne,Ie,Ne,Be,ze,ce,ke,G,J,ye,c,f,m,h,_,k,re,We,Ve,Ee]}class Of extends ve{constructor(e){super(),_e(this,e,Df,Rf,be,{visible:1,supportLink:31,x:32,y:33,playerContainerRef:34,controlsContainerRef:35,menuElementRef:0,returnFocus:36},Mf,[-1,-1])}}class zf{value;next;constructor(e){this.value=e,this.next=null}}class il{top;bottom;size;maxSize;constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new zf(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){const e=[];let i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}}function Hf(t){Ke(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Ff(t){let e,i;return{c(){e=I("div"),i=I("canvas"),u(i,"class","v-1ssl9eb"),u(e,"class","container v-1ssl9eb")},m(n,o){T(n,e,o),p(e,i),t[3](i)},p:W,i:W,o:W,d(n){n&&P(e),t[3](null)}}}const nl=16,ol=120,ns=60;function Uf(t,e,i,n,o){o===0&&(o=1),t.fillStyle="#fff",t.fillRect(e,i,n,o)}function qf(t,e,i){let{values:n=[]}=e,o,s;const l=ol/ns;sn(()=>{i(0,o.width=ol,o),i(0,o.height=nl,o),i(2,s=o.getContext("2d"))});function r(a){we[a?"unshift":"push"](()=>{o=a,i(0,o)})}return t.$$set=a=>{"values"in a&&i(1,n=a.values)},t.$$.update=()=>{if(t.$$.dirty&6&&s){let a=n[0];for(let f=1;f<n.length;f++)n[f]>a&&(a=n[f]);s.clearRect(0,0,ol,nl);let c=ns-1;for(let f=n.length-1;f>=0;f--){const m=c*l,h=a>0?nl*(n[f]/a):0;Uf(s,m,0,l,h),c--}}},[o,n,s,r]}class Cl extends ve{constructor(e){super(),_e(this,e,qf,Ff,be,{values:1},Hf)}}function Zf(t){Ke(t,"v-1gy2e68",".container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}")}function os(t){let e,i,n,o,s=t[0].id+"",l;return{c(){e=I("div"),i=I("div"),i.textContent="Video id",n=D(),o=I("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),p(e,i),p(e,n),p(e,o),p(o,l)},p(r,a){a&1&&s!==(s=r[0].id+"")&&et(l,s)},d(r){r&&P(e)}}}function ls(t){let e,i,n,o,s=t[0].provider+"",l;return{c(){e=I("div"),i=I("div"),i.textContent="Provider",n=D(),o=I("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),p(e,i),p(e,n),p(e,o),p(o,l)},p(r,a){a&1&&s!==(s=r[0].provider+"")&&et(l,s)},d(r){r&&P(e)}}}function ss(t){let e,i,n,o,s=t[0].viewport+"",l;return{c(){e=I("div"),i=I("div"),i.textContent="Viewport",n=D(),o=I("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),p(e,i),p(e,n),p(e,o),p(o,l)},p(r,a){a&1&&s!==(s=r[0].viewport+"")&&et(l,s)},d(r){r&&P(e)}}}function rs(t){let e,i,n,o,s=t[0].videoSize+"",l;return{c(){e=I("div"),i=I("div"),i.textContent="Video size",n=D(),o=I("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),p(e,i),p(e,n),p(e,o),p(o,l)},p(r,a){a&1&&s!==(s=r[0].videoSize+"")&&et(l,s)},d(r){r&&P(e)}}}function as(t){let e,i,n,o,s=t[0].cdn+"",l;return{c(){e=I("div"),i=I("div"),i.textContent="CDN host",n=D(),o=I("span"),l=De(s),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(r,a){T(r,e,a),p(e,i),p(e,n),p(e,o),p(o,l)},p(r,a){a&1&&s!==(s=r[0].cdn+"")&&et(l,s)},d(r){r&&P(e)}}}function us(t){let e,i,n,o,s=t[0].volume+"",l,r;return{c(){e=I("div"),i=I("div"),i.textContent="Volume",n=D(),o=I("span"),l=De(s),r=De(" %"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){T(a,e,c),p(e,i),p(e,n),p(e,o),p(o,l),p(o,r)},p(a,c){c&1&&s!==(s=a[0].volume+"")&&et(l,s)},d(a){a&&P(e)}}}function cs(t){let e,i,n,o,s=t[0].buffer.toFixed(2)+"",l,r;return{c(){e=I("div"),i=I("div"),i.textContent="Buffer",n=D(),o=I("span"),l=De(s),r=De(" s"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){T(a,e,c),p(e,i),p(e,n),p(e,o),p(o,l),p(o,r)},p(a,c){c&1&&s!==(s=a[0].buffer.toFixed(2)+"")&&et(l,s)},d(a){a&&P(e)}}}function fs(t){let e,i,n,o,s,l,r=t[0].speed.toFixed(2)+"",a,c,f;return o=new Cl({props:{values:t[5]}}),{c(){e=I("div"),i=I("div"),i.textContent="Network",n=D(),U(o.$$.fragment),s=D(),l=I("span"),a=De(r),c=De(" Kbps"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(m,h){T(m,e,h),p(e,i),p(e,n),z(o,e,null),p(e,s),p(e,l),p(l,a),p(l,c),f=!0},p(m,h){const _={};h&32&&(_.values=m[5]),o.$set(_),(!f||h&1)&&r!==(r=m[0].speed.toFixed(2)+"")&&et(a,r)},i(m){f||(d(o.$$.fragment,m),f=!0)},o(m){g(o.$$.fragment,m),f=!1},d(m){m&&P(e),H(o)}}}function ds(t){let e,i,n,o,s,l,r=t[0].bitrate.toFixed(2)+"",a,c,f;return o=new Cl({props:{values:t[6]}}),{c(){e=I("div"),i=I("div"),i.textContent="V bitrate",n=D(),U(o.$$.fragment),s=D(),l=I("span"),a=De(r),c=De(" Kbps"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(m,h){T(m,e,h),p(e,i),p(e,n),z(o,e,null),p(e,s),p(e,l),p(l,a),p(l,c),f=!0},p(m,h){const _={};h&64&&(_.values=m[6]),o.$set(_),(!f||h&1)&&r!==(r=m[0].bitrate.toFixed(2)+"")&&et(a,r)},i(m){f||(d(o.$$.fragment,m),f=!0)},o(m){g(o.$$.fragment,m),f=!1},d(m){m&&P(e),H(o)}}}function Wf(t){let e,i,n,o,s,l,r,a,c=t[0].version+"",f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe,x,C,$,R,se,j,N,Q,A,ne,Ie,Ne,Be,ze,ce,ke=t[0].id&&os(t),G=t[0].provider&&ls(t),J=t[0].viewport&&ss(t),ye=t[0].videoSize&&rs(t),re=t[0].cdn&&as(t),We=t[0].volume&&us(t),Ve=t[0].buffer&&cs(t),Ee=t[0].speed&&fs(t),ue=t[0].bitrate&&ds(t);return A=new Cl({props:{values:t[4]}}),{c(){e=I("div"),i=I("button"),i.textContent="[x]",n=D(),o=I("div"),s=I("div"),l=I("div"),l.textContent="Version",r=D(),a=I("span"),f=De(c),m=D(),ke&&ke.c(),h=D(),G&&G.c(),_=D(),J&&J.c(),b=D(),ye&&ye.c(),k=D(),re&&re.c(),v=D(),We&&We.c(),S=D(),Ve&&Ve.c(),w=D(),y=I("div"),E=I("div"),E.textContent="Dropped",ie=D(),V=I("span"),F=De(t[2]),oe=De(" / "),x=De(t[1]),C=De(" frames"),$=D(),Ee&&Ee.c(),R=D(),ue&&ue.c(),se=D(),j=I("div"),N=I("div"),N.textContent="FPS",Q=D(),U(A.$$.fragment),ne=D(),Ie=I("span"),Ne=De(t[3]),u(i,"class","close v-1gy2e68"),u(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(l,"class","v-1gy2e68"),u(s,"class","v-1gy2e68"),u(E,"class","v-1gy2e68"),u(y,"class","v-1gy2e68"),u(N,"class","v-1gy2e68"),u(j,"class","v-1gy2e68"),u(o,"class","content v-1gy2e68"),u(e,"class","container v-1gy2e68"),u(e,"role","region"),u(e,"aria-label",K("aria_label_debug_panel")),M(e,"container-mobile",t[7])},m(Ce,ge){T(Ce,e,ge),p(e,i),p(e,n),p(e,o),p(o,s),p(s,l),p(s,r),p(s,a),p(a,f),p(o,m),ke&&ke.m(o,null),p(o,h),G&&G.m(o,null),p(o,_),J&&J.m(o,null),p(o,b),ye&&ye.m(o,null),p(o,k),re&&re.m(o,null),p(o,v),We&&We.m(o,null),p(o,S),Ve&&Ve.m(o,null),p(o,w),p(o,y),p(y,E),p(y,ie),p(y,V),p(V,F),p(V,oe),p(V,x),p(V,C),p(o,$),Ee&&Ee.m(o,null),p(o,R),ue&&ue.m(o,null),p(o,se),p(o,j),p(j,N),p(j,Q),z(A,j,null),p(j,ne),p(j,Ie),p(Ie,Ne),Be=!0,ze||(ce=he(i,"click",ot(t[9])),ze=!0)},p(Ce,[ge]){(!Be||ge&1)&&c!==(c=Ce[0].version+"")&&et(f,c),Ce[0].id?ke?ke.p(Ce,ge):(ke=os(Ce),ke.c(),ke.m(o,h)):ke&&(ke.d(1),ke=null),Ce[0].provider?G?G.p(Ce,ge):(G=ls(Ce),G.c(),G.m(o,_)):G&&(G.d(1),G=null),Ce[0].viewport?J?J.p(Ce,ge):(J=ss(Ce),J.c(),J.m(o,b)):J&&(J.d(1),J=null),Ce[0].videoSize?ye?ye.p(Ce,ge):(ye=rs(Ce),ye.c(),ye.m(o,k)):ye&&(ye.d(1),ye=null),Ce[0].cdn?re?re.p(Ce,ge):(re=as(Ce),re.c(),re.m(o,v)):re&&(re.d(1),re=null),Ce[0].volume?We?We.p(Ce,ge):(We=us(Ce),We.c(),We.m(o,S)):We&&(We.d(1),We=null),Ce[0].buffer?Ve?Ve.p(Ce,ge):(Ve=cs(Ce),Ve.c(),Ve.m(o,w)):Ve&&(Ve.d(1),Ve=null),(!Be||ge&4)&&et(F,Ce[2]),(!Be||ge&2)&&et(x,Ce[1]),Ce[0].speed?Ee?(Ee.p(Ce,ge),ge&1&&d(Ee,1)):(Ee=fs(Ce),Ee.c(),d(Ee,1),Ee.m(o,R)):Ee&&(fe(),g(Ee,1,1,()=>{Ee=null}),de()),Ce[0].bitrate?ue?(ue.p(Ce,ge),ge&1&&d(ue,1)):(ue=ds(Ce),ue.c(),d(ue,1),ue.m(o,se)):ue&&(fe(),g(ue,1,1,()=>{ue=null}),de());const le={};ge&16&&(le.values=Ce[4]),A.$set(le),(!Be||ge&8)&&et(Ne,Ce[3]),(!Be||ge&128)&&M(e,"container-mobile",Ce[7])},i(Ce){Be||(d(Ee),d(ue),d(A.$$.fragment,Ce),Be=!0)},o(Ce){g(Ee),g(ue),g(A.$$.fragment,Ce),Be=!1},d(Ce){Ce&&P(e),ke&&ke.d(),G&&G.d(),J&&J.d(),ye&&ye.d(),re&&re.d(),We&&We.d(),Ve&&Ve.d(),Ee&&Ee.d(),ue&&ue.d(),H(A),ze=!1,ce()}}}function Kf(t,e,i){let n;const o=ht(),s=o.ui.debugPanelVisible,l=o.ui.isMobile;O(t,l,y=>i(7,n=y));const r=()=>{te.safeStorage.remove(dl),s.set(!1)};let a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,m=0,h=0;const _=new il(60),b=new il(60),k=new il(60);let v=[],S=[],w=[];return sn(()=>{te.safeStorage.set(dl,"true"),o.actions.internal.startLogging(),c&&(i(2,m=c.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=c.getVideoPlaybackQuality().totalVideoFrames));const y=window.setInterval(()=>{i(0,a=o.actions.internal.getDebugPanelData())},500);let E;return c&&(E=window.setInterval(()=>{if(c){i(2,m=c.getVideoPlaybackQuality().droppedVideoFrames);const ie=c.getVideoPlaybackQuality().totalVideoFrames;i(3,h=ie-f),i(1,f=ie),_.push(h),a.speed&&b.push(a.speed),a.bitrate&&k.push(a.bitrate),i(4,v=_.getValuesFromBottom()),i(5,S=b.getValuesFromBottom()),i(6,w=k.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),E&&clearInterval(E)}}),[a,f,m,h,v,S,w,n,l,r]}class B1 extends ve{constructor(e){super(),_e(this,e,Kf,Wf,be,{},Zf)}}function jf(t){Ke(t,"v-1ome55p",".close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}")}function Gf(t){let e,i,n;return{c(){e=I("div"),u(e,"class","close v-1ome55p")},m(o,s){T(o,e,s),i||(n=he(e,"click",ot(t[0])),i=!0)},p:W,i:W,o:W,d(o){o&&P(e),i=!1,n()}}}function Yf(t){function e(i){Qn.call(this,t,i)}return[e]}class Qf extends ve{constructor(e){super(),_e(this,e,Yf,Gf,be,{},jf)}}function Xf(t){Ke(t,"v-8jhsry",`.timer.v-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.v-8jhsry:hover{background:rgba(31, 31, 31, .85)
25
+ }.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}`)}function Jf(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("canvas"),n=D(),o=B("svg"),s=B("g"),l=B("g"),r=B("path"),u(i,"class","timer-canvas v-8jhsry"),u(i,"width","100"),u(i,"height","100"),u(r,"class","_play"),u(r,"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"),u(r,"fill","#fff"),u(l,"fill-rule","nonzero"),u(s,"fill","none"),u(s,"fill-rule","evenodd"),u(o,"class","timer-play-icon v-8jhsry"),u(o,"viewBox","0 0 24 24"),u(o,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","timer v-8jhsry")},m(a,c){T(a,e,c),p(e,i),t[2](i),p(e,n),p(e,o),p(o,s),p(s,l),p(l,r)},p:W,i:W,o:W,d(a){a&&P(e),t[2](null)}}}const xf=5e3;function $f(t,e,i){let{onTimerEnded:n=te.noop}=e,o;sn(()=>{let l;const r=o.getContext("2d");if(!r)return;r.lineWidth=6,r.lineCap="round",r.strokeStyle="#fff";const a=Date.now(),c=()=>{const f=(Date.now()-a)/xf;f<1?(r.clearRect(0,0,100,100),r.beginPath(),r.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),r.stroke(),l=requestAnimationFrame(c)):n()};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}});function s(l){we[l?"unshift":"push"](()=>{o=l,i(0,o)})}return t.$$set=l=>{"onTimerEnded"in l&&i(1,n=l.onTimerEnded)},[o,n,s]}class e0 extends ve{constructor(e){super(),_e(this,e,$f,Jf,be,{onTimerEnded:1},Xf)}}function t0(t){Ke(t,"v-kisfwc",".overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-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.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-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.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function ms(t){let e,i;return e=new e0({props:{onTimerEnded:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&4&&(s.onTimerEnded=n[2]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function i0(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie;r=new Qf({}),r.$on("click",t[4]);let V=t[3]&&ms(t);return{c(){e=I("div"),i=D(),n=I("div"),o=I("div"),s=I("div"),s.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=D(),U(r.$$.fragment),a=D(),c=I("div"),f=I("div"),m=I("div"),h=I("div"),_=D(),V&&V.c(),k=D(),v=I("div"),S=I("div"),w=De(t[0]),u(e,"class","overlay v-kisfwc"),u(s,"class","caption v-kisfwc"),u(o,"class","top v-kisfwc"),u(h,"class","thumb-overlay v-kisfwc"),u(m,"class","thumb v-kisfwc"),u(m,"style",b=`background-image: url('${t[1]}')`),u(f,"class","column v-kisfwc"),u(S,"class","title v-kisfwc"),u(v,"class","column v-kisfwc"),u(c,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(F,oe){T(F,e,oe),T(F,i,oe),T(F,n,oe),p(n,o),p(o,s),p(o,l),z(r,o,null),p(n,a),p(n,c),p(c,f),p(f,m),p(m,h),p(m,_),V&&V.m(m,null),p(c,k),p(c,v),p(v,S),p(S,w),y=!0,E||(ie=he(c,"click",function(){vn(t[2])&&t[2].apply(this,arguments)}),E=!0)},p(F,[oe]){t=F,t[3]?V?(V.p(t,oe),oe&8&&d(V,1)):(V=ms(t),V.c(),d(V,1),V.m(m,null)):V&&(fe(),g(V,1,1,()=>{V=null}),de()),(!y||oe&2&&b!==(b=`background-image: url('${t[1]}')`))&&u(m,"style",b),(!y||oe&1)&&et(w,t[0])},i(F){y||(d(r.$$.fragment,F),d(V),y=!0)},o(F){g(r.$$.fragment,F),g(V),y=!1},d(F){F&&(P(e),P(i),P(n)),H(r),V&&V.d(),E=!1,ie()}}}function n0(t,e,i){let{title:n}=e,{thumb:o}=e,{playNextVideo:s}=e,l=!0;const r=()=>i(3,l=!1);return t.$$set=a=>{"title"in a&&i(0,n=a.title),"thumb"in a&&i(1,o=a.thumb),"playNextVideo"in a&&i(2,s=a.playNextVideo)},[n,o,s,l,r]}class o0 extends ve{constructor(e){super(),_e(this,e,n0,i0,be,{title:0,thumb:1,playNextVideo:2},t0)}}const N1=(t,e)=>Math.min(+(t+e).toFixed(2),1),R1=(t,e)=>Math.max(+(t-e).toFixed(2),0),D1=(t,e,i)=>{const n=N1(e,i);e<1&&t.actions.internal.setVolume(n)},O1=(t,e,i)=>{const n=R1(e,i);e>0&&t.actions.internal.setVolume(n)};function l0(t){Ke(t,"v-10kkmxz",".keyboard-controls.v-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function s0(t){let e,i,n,o;const s=t[22].default,l=Mn(s,t,t[21],null);return{c(){e=I("div"),l&&l.c(),u(e,"class","keyboard-controls v-10kkmxz"),u(e,"tabindex","-1"),u(e,"role","region"),u(e,"aria-label",K("aria_label_video_player"))},m(r,a){T(r,e,a),l&&l.m(e,null),t[23](e),i=!0,n||(o=[he(e,"keyup",t[13]),he(e,"keydown",t[12])],n=!0)},p(r,a){l&&l.p&&(!i||a[0]&2097152)&&Nn(l,s,r,r[21],i?Bn(s,r[21],a,null):Rn(r[21]),null)},i(r){i||(d(l,r),i=!0)},o(r){g(l,r),i=!1},d(r){r&&P(e),l&&l.d(r),t[23](null),n=!1,nt(o)}}}function r0(t,e,i){let n,o,s,l,r,a,c,f,m,h,_,{$$slots:b={},$$scope:k}=e,{isAds:v}=e,{hideContextMenu:S}=e,{toggleFullscreen:w}=e,{showHotKeyHelpers:y}=e,{showKeyMap:E}=e,{fakePlayButtonHandler:ie}=e;const V=ht(),F=an(),oe=V.getLogger().createComponentLog("KeyboardControls component"),x=V.state.playbackState$;O(t,x,re=>i(27,o=re));const C=V.ads.playbackState;O(t,C,re=>i(26,n=re));const $=V.state.positionExact$;O(t,$,re=>i(33,f=re));const R=V.state.duration$;O(t,R,re=>i(32,c=re));const se=V.state.volume$;O(t,se,re=>i(36,_=re));const j=V.ui.controls.disabledControls$;O(t,j,re=>i(31,a=re));const N=V.state.muted$;O(t,N,re=>i(29,l=re));const Q=V.state.currentSubtitle$;O(t,Q,re=>i(28,s=re));const A=V.state.currentPlaybackRate$;O(t,A,re=>i(34,m=re));const ne=V.state.availablePlaybackRates$;O(t,ne,re=>i(35,h=re));const Ie=V.state.isEnded$;O(t,Ie,re=>i(30,r=re));let Ne=0,Be=!0,ze;const ce=()=>ze?.focus(),ke=re=>(re!==Be&&(Be=re,Ne=0),Ne+=1,(F.controls.seekStepKeyboard+F.controls.seekStepKeyboard*Ne)/1e3),G=re=>{const We=re.target,Ve=We?.getAttribute("role")?.includes("menuitem"),Ee=We.classList.contains("btn"),ue=re.code;if(Ee&&ue===Ae.Space)return;const Ce=Ic.has(ue);if(Ve&&Ce)return;const ge=!Tc.has(ue);if(re.ctrlKey&&ge||re.altKey&&ge||re.metaKey)return;const le=Ve&&ue===Ae.Escape;Ac.has(ue)||le||S();const qe=o===$e.PlaybackState.PLAYING||o===$e.PlaybackState.PAUSED,pe=v&&(n===Zt.PAUSED||n===Zt.PLAYING),Pe=!pe&&!a.has(st.TIMELINE);if(qe||pe)switch(oe({message:`key down, code: ${ue}`}),ue){case Ae.KeyJ:case Ae.ArrowLeft:{if(!Pe)break;if(re.ctrlKey||re.altKey){const Te=V.actions.internal.getPrevEpisode();V.actions.internal.seekToPrevEpisode(Te),Te&&y({type:Ye.EPISODE_PREV,text:Te.text}),re.preventDefault()}else{const Te=re.shiftKey?ke(!1):F.controls.seekStepKeyboard/1e3,je=Math.max(f-Te,0);f>0&&(V.actions.internal.seekTime(je,pt.SeekAction.DOUBLE_TAP),y({type:Ye.BACKWARD_SEEK,text:Te.toString()}),re.preventDefault())}break}case Ae.KeyL:case Ae.ArrowRight:{if(!Pe)break;if(re.ctrlKey||re.altKey){const Te=V.actions.internal.getNextEpisode();V.actions.internal.seekToNextEpisode(Te),Te&&y({type:Ye.EPISODE_NEXT,text:Te.text}),re.preventDefault()}else{const Te=re.shiftKey?ke(!0):F.controls.seekStepKeyboard/1e3,je=Math.min(f+Te,c);Math.round(f)<Math.round(c)&&(V.actions.internal.seekTime(je,pt.SeekAction.DOUBLE_TAP),y({type:Ye.FORWARD_SEEK,text:Te.toString()}),re.preventDefault())}break}case Ae.ArrowUp:{const Te=_,je=F.controls.volumeStepKeyboard,tt=Te<=1;if(D1(V,Te,je),tt){const Xe=Math.round(N1(Te,je)*100).toString();y({type:Ye.VOLUME,t:{key:"hotkey_helper_current_volume",value:Xe}})}re.preventDefault();break}case Ae.ArrowDown:{const Te=_,je=F.controls.volumeStepKeyboard,tt=Te>=0;if(O1(V,Te,je),tt){const Xe=Math.round(R1(Te,je)*100).toString();y({type:Ye.VOLUME,t:{key:"hotkey_helper_current_volume",value:Xe}})}re.preventDefault();break}case Ae.Comma:{if(re.shiftKey){V.actions.internal.decrementPlaybackRate();const Te=h.find(je=>je.value===m);y({type:Ye.RATE_DOWN,text:Te?.displayValue}),re.preventDefault()}else{if(pe||o!==$e.PlaybackState.PAUSED)break;const Te=Math.max(f-F.controls.seekStepFrame/1e3,0);f>0&&(y({type:Ye.BACKWARD_SEEK}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(Te,pt.SeekAction.DOUBLE_TAP),re.preventDefault())}break}case Ae.Period:{if(re.shiftKey){V.actions.internal.incrementPlaybackRate();const Te=h.find(je=>je.value===m);y({type:Ye.RATE_UP,text:Te?.displayValue}),re.preventDefault()}else{if(pe||o!==$e.PlaybackState.PAUSED)break;const Te=Math.min(f+F.controls.seekStepFrame/1e3,c);f<c&&(y({type:Ye.FORWARD_SEEK}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(Te,pt.SeekAction.DOUBLE_TAP),re.preventDefault())}break}case Ae.KeyK:case Ae.Space:if(!a.has(st.PLAY_BUTTON))if(ie)ie();else{V.actions.internal.togglePlay();let Te=Ye.PLAY;o===$e.PlaybackState.PAUSED?Te=Ye.PAUSE:r&&(Te=Ye.REPLAY),y({type:Te})}re.preventDefault();break;case Ae.KeyM:{y({type:l?Ye.VOLUME:Ye.MUTE}),V.actions.internal.toggleMuted(),re.preventDefault();break}case Ae.KeyF:w(),re.preventDefault();break;case Ae.KeyC:V.actions.internal.toggleSubtitle(),s.value!=="off"?y({type:Ye.SUBTITLES_ON,text:s?.displayValue}):y({type:Ye.SUBTITLES_OFF}),re.preventDefault();break;case Ae.KeyI:V.actions.internal.togglePictureInPicture(),re.preventDefault();break;case Ae.Digit1:case Ae.Numpad1:y(),V.actions.internal.seekToPercent(.1,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit2:case Ae.Numpad2:y(),V.actions.internal.seekToPercent(.2,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit3:case Ae.Numpad3:y(),V.actions.internal.seekToPercent(.3,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit4:case Ae.Numpad4:y(),V.actions.internal.seekToPercent(.4,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit5:case Ae.Numpad5:y(),V.actions.internal.seekToPercent(.5,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit6:case Ae.Numpad6:y(),V.actions.internal.seekToPercent(.6,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit7:case Ae.Numpad7:y(),V.actions.internal.seekToPercent(.7,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit8:case Ae.Numpad8:y(),V.actions.internal.seekToPercent(.8,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit9:case Ae.Numpad9:y(),V.actions.internal.seekToPercent(.9,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Digit0:case Ae.Numpad0:y(),V.actions.internal.seekToPercent(0,pt.SeekAction.DOUBLE_TAP),re.preventDefault();break;case Ae.Slash:{re.shiftKey&&F.features.hotKeyMapModal&&(E(),re.preventDefault());break}case Ae.ShiftLeft:case Ae.ShiftRight:re.preventDefault();break;case Ae.Tab:case Ae.Escape:case Ae.Enter:break;default:te.checkNever(ue);break}},J=re=>{const We=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;const Ve=o===$e.PlaybackState.PLAYING||o===$e.PlaybackState.PAUSED,Ee=v&&(n===Zt.PAUSED||n===Zt.PLAYING);if(Ve||Ee)switch(We){case Ae.ShiftLeft:case Ae.ShiftRight:Ne=0;break}};function ye(re){we[re?"unshift":"push"](()=>{ze=re,i(0,ze)})}return t.$$set=re=>{"isAds"in re&&i(14,v=re.isAds),"hideContextMenu"in re&&i(15,S=re.hideContextMenu),"toggleFullscreen"in re&&i(16,w=re.toggleFullscreen),"showHotKeyHelpers"in re&&i(17,y=re.showHotKeyHelpers),"showKeyMap"in re&&i(18,E=re.showKeyMap),"fakePlayButtonHandler"in re&&i(19,ie=re.fakePlayButtonHandler),"$$scope"in re&&i(21,k=re.$$scope)},[ze,x,C,$,R,se,j,N,Q,A,ne,Ie,G,J,v,S,w,y,E,ie,ce,k,b,ye]}class a0 extends ve{constructor(e){super(),_e(this,e,r0,s0,be,{isAds:14,hideContextMenu:15,toggleFullscreen:16,showHotKeyHelpers:17,showKeyMap:18,fakePlayButtonHandler:19,focus:20},l0,[-1,-1])}get focus(){return this.$$.ctx[20]}}function u0(t){Ke(t,"v-8nkw5s",".container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}")}function c0(t){let e;return{c(){e=I("div"),e.innerHTML='<div class="dot v-8nkw5s"></div> <div class="dot v-8nkw5s"></div> <div class="dot v-8nkw5s"></div>',u(e,"class","container v-8nkw5s")},m(i,n){T(i,e,n)},p:W,i:W,o:W,d(i){i&&P(e)}}}class z1 extends ve{constructor(e){super(),_e(this,e,null,c0,be,{},u0)}}function f0(t){let e,i,n,o,s,l,r,a,c,f,m,h,_;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("defs"),l=B("filter"),r=B("feFlood"),a=B("feColorMatrix"),c=B("feOffset"),f=B("feGaussianBlur"),m=B("feColorMatrix"),h=B("feBlend"),_=B("feBlend"),u(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.727 7.536 6.264Z"),u(n,"fill","#fff"),u(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.374 7.713 6.087Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2422_111980"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2422_111980"),u(_,"result","shape"),u(l,"id","a"),u(l,"x",".5"),u(l,"y",".5"),u(l,"width","23"),u(l,"height","23"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","cross-icon")},m(b,k){T(b,e,k),p(e,i),p(i,n),p(i,o),p(e,s),p(s,l),p(l,r),p(l,a),p(l,c),p(l,f),p(l,m),p(l,h),p(l,_)},p:W,i:W,o:W,d(b){b&&P(e)}}}class d0 extends ve{constructor(e){super(),_e(this,e,null,f0,be,{})}}function m0(t){Ke(t,"v-1anemql",".btn.v-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.v-1anemql{width:100%}.btn--live.v-1anemql{padding:10px 4px}.btn-m.v-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.v-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.v-1anemql:disabled{cursor:default;pointer-events:none}.btn.v-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.v-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.v-1anemql{padding-right:0}.pl-0.v-1anemql{padding-left:0}")}function p0(t){let e,i,n,o,s,l,r,a,c,f,m,h;const _=t[14].default,b=Mn(_,t,t[13],null);return{c(){e=I("button"),b&&b.c(),u(e,"class",i="btn "+t[1]+" v-1anemql"),u(e,"style",n=t[2]||null),e.disabled=o=t[3]??null,u(e,"aria-hidden",s=t[5]??null),u(e,"aria-label",l=t[6]??null),u(e,"aria-keyshortcuts",r=t[7]??null),u(e,"aria-expanded",a=t[8]??null),u(e,"data-testid",c=t[4]??null),u(e,"tabindex",t[9])},m(k,v){T(k,e,v),b&&b.m(e,null),t[16](e),f=!0,m||(h=[he(e,"pointerdown",ot(Wt(t[15]))),he(e,"click",ot(Wt(function(){vn(t[10]===te.noop?null:t[10])&&(t[10]===te.noop?null:t[10]).apply(this,arguments)}))),he(e,"focus",Wt(function(){vn(t[11]===te.noop?null:t[11])&&(t[11]===te.noop?null:t[11]).apply(this,arguments)})),he(e,"blur",Wt(function(){vn(t[12]===te.noop?null:t[12])&&(t[12]===te.noop?null:t[12]).apply(this,arguments)}))],m=!0)},p(k,[v]){t=k,b&&b.p&&(!f||v&8192)&&Nn(b,_,t,t[13],f?Bn(_,t[13],v,null):Rn(t[13]),null),(!f||v&2&&i!==(i="btn "+t[1]+" v-1anemql"))&&u(e,"class",i),(!f||v&4&&n!==(n=t[2]||null))&&u(e,"style",n),(!f||v&8&&o!==(o=t[3]??null))&&(e.disabled=o),(!f||v&32&&s!==(s=t[5]??null))&&u(e,"aria-hidden",s),(!f||v&64&&l!==(l=t[6]??null))&&u(e,"aria-label",l),(!f||v&128&&r!==(r=t[7]??null))&&u(e,"aria-keyshortcuts",r),(!f||v&256&&a!==(a=t[8]??null))&&u(e,"aria-expanded",a),(!f||v&16&&c!==(c=t[4]??null))&&u(e,"data-testid",c),(!f||v&512)&&u(e,"tabindex",t[9])},i(k){f||(d(b,k),f=!0)},o(k){g(b,k),f=!1},d(k){k&&P(e),b&&b.d(k),t[16](null),m=!1,nt(h)}}}function h0(t,e,i){let{$$slots:n={},$$scope:o}=e,{className:s=""}=e,{style:l=""}=e,{disabled:r=void 0}=e,{testId:a=void 0}=e,{ariaHidden:c=void 0}=e,{ariaLabel:f=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:_=void 0}=e,{tabIndex:b=0}=e,{click:k=te.noop}=e,{focus:v=te.noop}=e,{blur:S=te.noop}=e;function w(E){Qn.call(this,t,E)}function y(E){we[E?"unshift":"push"](()=>{m=E,i(0,m)})}return t.$$set=E=>{"className"in E&&i(1,s=E.className),"style"in E&&i(2,l=E.style),"disabled"in E&&i(3,r=E.disabled),"testId"in E&&i(4,a=E.testId),"ariaHidden"in E&&i(5,c=E.ariaHidden),"ariaLabel"in E&&i(6,f=E.ariaLabel),"ref"in E&&i(0,m=E.ref),"ariaKeyShortCut"in E&&i(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&i(8,_=E.ariaExpanded),"tabIndex"in E&&i(9,b=E.tabIndex),"click"in E&&i(10,k=E.click),"focus"in E&&i(11,v=E.focus),"blur"in E&&i(12,S=E.blur),"$$scope"in E&&i(13,o=E.$$scope)},[m,s,l,r,a,c,f,h,_,b,k,v,S,o,n,w,y]}class yi extends ve{constructor(e){super(),_e(this,e,h0,p0,be,{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},m0)}}function g0(t){Ke(t,"v-1witlsj",".modal-overlay.v-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.v-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.v-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.v-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.v-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.v-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.v-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.v-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.v-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.v-1witlsj{margin:-8px -4px 0 0}")}function ps(t){let e,i,n,o,s,l=t[2]&&hs(t);return{c(){e=I("div"),i=I("h3"),n=De(t[3]),o=D(),l&&l.c(),u(i,"class","modal-title v-1witlsj"),u(e,"class","modal-header v-1witlsj")},m(r,a){T(r,e,a),p(e,i),p(i,n),p(e,o),l&&l.m(e,null),s=!0},p(r,a){(!s||a&8)&&et(n,r[3]),r[2]?l?(l.p(r,a),a&4&&d(l,1)):(l=hs(r),l.c(),d(l,1),l.m(e,null)):l&&(fe(),g(l,1,1,()=>{l=null}),de())},i(r){s||(d(l),s=!0)},o(r){g(l),s=!1},d(r){r&&P(e),l&&l.d()}}}function hs(t){let e,i;return e=new yi({props:{click:t[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:K("hotkey_map_modal_close_btn_text"),$$slots:{default:[b0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&1&&(s.click=n[0]),o&32&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function b0(t){let e,i;return e=new d0({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function _0(t){let e,i,n,o,s,l,r=t[1]&&ps(t);const a=t[4].default,c=Mn(a,t,t[5],null);return{c(){e=I("div"),i=I("div"),r&&r.c(),n=D(),o=I("div"),s=I("div"),c&&c.c(),u(s,"class","modal-main v-1witlsj"),u(o,"class","modal-scroll v-1witlsj"),u(i,"class","modal-container v-1witlsj"),u(e,"class","modal-overlay v-1witlsj")},m(f,m){T(f,e,m),p(e,i),r&&r.m(i,null),p(i,n),p(i,o),p(o,s),c&&c.m(s,null),l=!0},p(f,[m]){f[1]?r?(r.p(f,m),m&2&&d(r,1)):(r=ps(f),r.c(),d(r,1),r.m(i,n)):r&&(fe(),g(r,1,1,()=>{r=null}),de()),c&&c.p&&(!l||m&32)&&Nn(c,a,f,f[5],l?Bn(a,f[5],m,null):Rn(f[5]),null)},i(f){l||(d(r),d(c,f),l=!0)},o(f){g(r),g(c,f),l=!1},d(f){f&&P(e),r&&r.d(),c&&c.d(f)}}}function v0(t,e,i){let{$$slots:n={},$$scope:o}=e,{onClose:s}=e,{showHeader:l=!0}=e,{showCloseCross:r=!0}=e,{title:a}=e;return t.$$set=c=>{"onClose"in c&&i(0,s=c.onClose),"showHeader"in c&&i(1,l=c.showHeader),"showCloseCross"in c&&i(2,r=c.showCloseCross),"title"in c&&i(3,a=c.title),"$$scope"in c&&i(5,o=c.$$scope)},[s,l,r,a,n,o]}class k0 extends ve{constructor(e){super(),_e(this,e,v0,_0,be,{onClose:0,showHeader:1,showCloseCross:2,title:3},g0)}}const w0=new Set(["BR"]),gs=t=>{const e=document.createElement("DIV");e.innerHTML=t;const i=e.querySelectorAll("*");let n=i.length;for(;n--;){const o=i[n],s=o.tagName;w0.has(s)||o.parentElement?.removeChild(o)}return e.innerHTML};function y0(t){Ke(t,"v-quklnq",".hot-key-map.v-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.v-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.v-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.v-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.v-quklnq,.hot-key-map-item.v-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.v-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.v-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.v-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.v-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.v-quklnq,.hot-key-map-item-value.v-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function bs(t,e,i){const n=t.slice();return n[5]=e[i].title,n[6]=e[i].items,n}function _s(t,e,i){const n=t.slice();return n[9]=e[i].description,n[10]=e[i].value,n}function vs(t){let e,i,n=gs(t[9])+"",o,s,l=t[10]+"",r,a;return{c(){e=I("li"),i=I("span"),o=D(),s=I("span"),r=De(l),a=D(),u(i,"class","hot-key-map-item-description v-quklnq"),u(s,"class","hot-key-map-item-value v-quklnq"),u(e,"class","hot-key-map-item v-quklnq")},m(c,f){T(c,e,f),p(e,i),i.innerHTML=n,p(e,o),p(e,s),p(s,r),p(e,a)},p(c,f){f&1&&n!==(n=gs(c[9])+"")&&(i.innerHTML=n),f&1&&l!==(l=c[10]+"")&&et(r,l)},d(c){c&&P(e)}}}function ks(t){let e,i,n=t[5]+"",o,s,l,r,a=Rt(t[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=vs(_s(t,a,f));return{c(){e=I("div"),i=I("h5"),o=De(n),s=D(),l=I("ul");for(let f=0;f<c.length;f+=1)c[f].c();r=D(),u(i,"class","hot-key-map-group-title v-quklnq"),u(l,"class","hot-key-map-group-items v-quklnq"),u(e,"class","hot-key-map-group v-quklnq")},m(f,m){T(f,e,m),p(e,i),p(i,o),p(e,s),p(e,l);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(l,null);p(e,r)},p(f,m){if(m&1&&n!==(n=f[5]+"")&&et(o,n),m&1){a=Rt(f[6]);let h;for(h=0;h<a.length;h+=1){const _=_s(f,a,h);c[h]?c[h].p(_,m):(c[h]=vs(_),c[h].c(),c[h].m(l,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=a.length}},d(f){f&&P(e),kn(c,f)}}}function C0(t){let e,i=Rt(t[0].groups),n=[];for(let o=0;o<i.length;o+=1)n[o]=ks(bs(t,i,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","hot-key-map v-quklnq")},m(o,s){T(o,e,s);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,s){if(s&1){i=Rt(o[0].groups);let l;for(l=0;l<i.length;l+=1){const r=bs(o,i,l);n[l]?n[l].p(r,s):(n[l]=ks(r),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},d(o){o&&P(e),kn(n,o)}}}function P0(t){let e,i;return e=new k0({props:{title:t[0].title,onClose:t[2],$$slots:{default:[C0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.title=n[0].title),o&8193&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function S0(t,e,i){let n;const o=ht(),{data:s,show:l}=o.ui.modals.hotKeyMap;return O(t,s,a=>i(0,n=a)),[n,s,()=>{l.set(!1)}]}class T0 extends ve{constructor(e){super(),_e(this,e,S0,P0,be,{},y0)}}function I0(t){Ke(t,"v-1oe0j8n",".pillow.v-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function A0(t){let e,i;const n=t[1].default,o=Mn(n,t,t[0],null);return{c(){e=I("div"),o&&o.c(),u(e,"class","pillow v-1oe0j8n")},m(s,l){T(s,e,l),o&&o.m(e,null),i=!0},p(s,[l]){o&&o.p&&(!i||l&1)&&Nn(o,n,s,s[0],i?Bn(n,s[0],l,null):Rn(s[0]),null)},i(s){i||(d(o,s),i=!0)},o(s){g(o,s),i=!1},d(s){s&&P(e),o&&o.d(s)}}}function E0(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=s=>{"$$scope"in s&&i(0,o=s.$$scope)},[o,n]}class L0 extends ve{constructor(e){super(),_e(this,e,E0,A0,be,{},I0)}}function V0(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),n=B("path"),u(i,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 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.536Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","m2.551 1.052-1.51 2.052h1.51V1.052ZM3.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-.9H3.5Z"),u(n,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){T(o,e,s),p(e,i),p(e,n)},p:W,i:W,o:W,d(o){o&&P(e)}}}class M0 extends ve{constructor(e){super(),_e(this,e,null,V0,be,{})}}function B0(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),n=B("path"),u(i,"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.537Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995-.23.112-.412.258-.547.44-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0Zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43c0 .19-.07.333-.204.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43Zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524Z"),u(n,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){T(o,e,s),p(e,i),p(e,n)},p:W,i:W,o:W,d(o){o&&P(e)}}}class N0 extends ve{constructor(e){super(),_e(this,e,null,B0,be,{})}}function R0(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"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.54Zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468ZM.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 5Z"),u(i,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class D0 extends ve{constructor(e){super(),_e(this,e,null,R0,be,{})}}function O0(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"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.54Zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468ZM4.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.471ZM.516 5c.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 5Z"),u(i,"fill","currentColor"),u(e,"width","13"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class H1 extends ve{constructor(e){super(),_e(this,e,null,O0,be,{})}}function z0(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),n=B("path"),u(i,"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.54Zm.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468ZM6.516 5.75c.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.471Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M3.338 5.659a3.9 3.9 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.554l-.246-.368Zm-.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-.02Z"),u(n,"fill","currentColor"),u(e,"width","15"),u(e,"height","7"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){T(o,e,s),p(e,i),p(e,n)},p:W,i:W,o:W,d(o){o&&P(e)}}}class F1 extends ve{constructor(e){super(),_e(this,e,null,z0,be,{})}}const fo=t=>{switch(t){case $e.VideoQuality.Q_720P:return D0;case $e.VideoQuality.Q_1080P:return H1;case $e.VideoQuality.Q_1440P:return F1;case $e.VideoQuality.Q_2160P:return M0;case $e.VideoQuality.Q_4320P:return N0}};function H0(t){Ke(t,"v-1fzhlx0",".icon.v-1fzhlx0{display:flex;position:relative;width:24px;height:24px}.icon.v-1fzhlx0 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.v-1fzhlx0 .pillow{right:-13px}")}function F0(t){let e,i,n,o,s,l,r=t[1]&&ws(t);return{c(){e=I("div"),r&&r.c(),i=D(),n=B("svg"),o=B("path"),s=B("path"),u(o,"fill-rule","evenodd"),u(o,"clip-rule","evenodd"),u(o,"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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967Z"),u(o,"fill","#fff"),u(s,"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.833ZM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5Z"),u(s,"fill","#fff"),M(s,"hidden",!!t[1]),u(n,"width","24"),u(n,"height","24"),u(n,"fill","none"),u(n,"xmlns","http://www.w3.org/2000/svg"),u(n,"data-testid","settings-icon"),u(e,"class","icon v-1fzhlx0"),u(e,"aria-hidden","true"),M(e,"triple",t[2])},m(a,c){T(a,e,c),r&&r.m(e,null),p(e,i),p(e,n),p(n,o),p(n,s),l=!0},p(a,c){a[1]?r?(r.p(a,c),c&2&&d(r,1)):(r=ws(a),r.c(),d(r,1),r.m(e,i)):r&&(fe(),g(r,1,1,()=>{r=null}),de()),(!l||c&2)&&M(s,"hidden",!!a[1]),(!l||c&4)&&M(e,"triple",a[2])},i(a){l||(d(r),l=!0)},o(a){g(r),l=!1},d(a){a&&P(e),r&&r.d()}}}function U0(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191c.018.074.041.153.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.315 3.315 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.006c-.077.002-.16.006-.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.333 3.333 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-.225c.016-.075.03-.157.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.36 3.36 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.081c.068.032.143.063.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.33 6.33 0 0 1-.468 1.134 5.851 5.851 0 0 0-1.147.558 6.45 6.45 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.102-.13.384-.22.786-.27 1.201-.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.204.224.35.484.674.776.968a6.258 6.258 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-.295c.257-.278.585-.574.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.747.747 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.19 6.19 0 0 1-.117-1.445c.29-.294.55-.619.775-.97a6.466 6.466 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.428 6.428 0 0 1-1.014-.722 5.955 5.955 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.364 6.364 0 0 1-1.158.348 5.873 5.873 0 0 0-1.15-.556 6.495 6.495 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828l-.076-.004ZM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6Zm0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","settings-mobile-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}function ws(t){let e,i;return e=new L0({props:{$$slots:{default:[q0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&18&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function q0(t){let e,i,n;var o=t[1];function s(l){return{}}return o&&(e=Tn(o,s())),{c(){e&&U(e.$$.fragment),i=at()},m(l,r){e&&z(e,l,r),T(l,i,r),n=!0},p(l,r){if(r&2&&o!==(o=l[1])){if(e){fe();const a=e;g(a.$$.fragment,1,0,()=>{H(a,1)}),de()}o?(e=Tn(o,s()),U(e.$$.fragment),d(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&g(e.$$.fragment,l),n=!1},d(l){l&&P(i),e&&H(e,l)}}}function Z0(t){let e,i,n,o;const s=[U0,F0],l=[];function r(a,c){return a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=at()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function W0(t,e,i){let n,{isMobile:o=!1}=e,{currentQuality:s=void 0}=e,l;return t.$$set=r=>{"isMobile"in r&&i(0,o=r.isMobile),"currentQuality"in r&&i(3,s=r.currentQuality)},t.$$.update=()=>{t.$$.dirty&8&&i(1,n=fo(s)),t.$$.dirty&2&&i(2,l=!!n&&[H1,F1].includes(n))},[o,n,l,s]}class U1 extends ve{constructor(e){super(),_e(this,e,W0,Z0,be,{isMobile:0,currentQuality:3},H0)}}function K0(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.673 4.673 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.673 4.673 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.673 4.673 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.673 4.673 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428h7.385Zm.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.153.289.54.702.952 1.241 1.24.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.714H11Zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714h1.714Zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714h5.142Zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714H7.57Z"),u(i,"fill","#fff"),u(e,"width","22"),u(e,"height","18"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","subtitle-empty-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class q1 extends ve{constructor(e){super(),_e(this,e,null,K0,be,{})}}function j0(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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 0ZM0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18Z"),u(i,"fill","#fff"),u(e,"width","16"),u(e,"height","19"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","download-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class G0 extends ve{constructor(e){super(),_e(this,e,null,j0,be,{})}}function Y0(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.5Zm11.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.919.211.414.548.75.962.961.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.48 0-1.15-.002-1.905-.049-2.482-.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-.049Zm-3.298 11-.55 2.2h2.695l-.55-2.2H8.202Z"),u(i,"fill","#fff"),u(e,"width","18"),u(e,"height","17"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","traffic-saving-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class Q0 extends ve{constructor(e){super(),_e(this,e,null,Y0,be,{})}}function X0(t){let e,i,n,o;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),u(n,"d","M0 0h24v24H0z"),u(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 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 12zM10.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-.686z"),u(o,"fill","#fff"),u(o,"fill-rule","nonzero"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"height","24"),u(e,"width","24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","play-speed-icon")},m(s,l){T(s,e,l),p(e,i),p(i,n),p(i,o)},p:W,i:W,o:W,d(s){s&&P(e)}}}class J0 extends ve{constructor(e){super(),_e(this,e,null,X0,be,{})}}function x0(t){Ke(t,"v-2dg73m",".reverted.v-2dg73m{transform:rotate(180deg)}")}function $0(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),u(i,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z"),u(i,"fill",t[0]),u(e,"width","12"),u(e,"height","16"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[2]?"chevron-icon--right":"chevron-icon--left"),u(e,"class","v-2dg73m"),M(e,"reverted",t[2])},m(o,s){T(o,e,s),p(e,i)},p(o,s){s&1&&u(i,"fill",o[0]),s&4&&n!==(n=o[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),s&4&&M(e,"reverted",o[2])},d(o){o&&P(e)}}}function ed(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.272Z"),u(i,"fill",t[0]),u(i,"fill-opacity",".72"),u(e,"width","12"),u(e,"height","7"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[2]?"chevron-icon--down":"chevron-icon--up"),u(e,"class","v-2dg73m"),M(e,"reverted",t[2])},m(o,s){T(o,e,s),p(e,i)},p(o,s){s&1&&u(i,"fill",o[0]),s&4&&n!==(n=o[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),s&4&&M(e,"reverted",o[2])},d(o){o&&P(e)}}}function td(t){let e;function i(s,l){return s[1]?ed:$0}let n=i(t),o=n(t);return{c(){o.c(),e=at()},m(s,l){o.m(s,l),T(s,e,l)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:W,o:W,d(s){s&&P(e),o.d(s)}}}function id(t,e,i){let{direction:n="left"}=e,{color:o="#fff"}=e,s,l;return t.$$set=r=>{"direction"in r&&i(3,n=r.direction),"color"in r&&i(0,o=r.color)},t.$$.update=()=>{t.$$.dirty&8&&(i(1,s=["up","down"].includes(n)),i(2,l=["right","down"].includes(n)))},[o,s,l,n]}class Kn extends ve{constructor(e){super(),_e(this,e,id,td,be,{direction:3,color:0},x0)}}function nd(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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-.697zm-.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.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","report-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class od extends ve{constructor(e){super(),_e(this,e,null,nd,be,{})}}function ld(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"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"),u(i,"fill","#fff"),u(e,"height","16"),u(e,"width","16"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","check-mark-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class Io extends ve{constructor(e){super(),_e(this,e,null,ld,be,{})}}function sd(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 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 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093a17.65 17.65 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.093a17.65 17.65 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.057 17.057 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-.492z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","copy-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class rd extends ve{constructor(e){super(),_e(this,e,null,sd,be,{})}}function ad(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","info-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class ud extends ve{constructor(e){super(),_e(this,e,null,ad,be,{})}}function cd(t){Ke(t,"v-5r0p3","ul.v-5r0p3.v-5r0p3{margin:0;padding:0}.menu.v-5r0p3.v-5r0p3{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.v-5r0p3.v-5r0p3{width:100%}.menu-desktop.v-5r0p3.v-5r0p3{position:absolute;right:0;bottom:0}.menu-mobile.v-5r0p3.v-5r0p3{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.v-5r0p3.v-5r0p3{display:none}.menu-subList.v-5r0p3.v-5r0p3{min-width:134px;padding-bottom:0}.menu-subList-subtitles.v-5r0p3.v-5r0p3{min-width:164px}.menu-subList-traffic-saving.v-5r0p3.v-5r0p3{min-width:286px}.item.v-5r0p3.v-5r0p3{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.v-5r0p3.v-5r0p3{padding:0 14px}.item-quality.item-mobile.v-5r0p3.v-5r0p3,.item-traffic-saving.item-mobile.v-5r0p3.v-5r0p3,.item-helper-text.item-mobile.v-5r0p3.v-5r0p3{flex-direction:row-reverse}.item-helper-text.v-5r0p3.v-5r0p3{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.v-5r0p3 span.v-5r0p3{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.v-5r0p3.v-5r0p3{padding:7px 14px}.item-helper-text.item-mobile.v-5r0p3 span.v-5r0p3{text-align:start}.quality-title-mobile.v-5r0p3.v-5r0p3{flex-grow:1}.item.v-5r0p3.v-5r0p3:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-5r0p3.v-5r0p3:hover{background:var(--mobile-settings-bg)}.menu-subList.v-5r0p3 .item.v-5r0p3{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-5r0p3 .item.v-5r0p3:last-child{margin-bottom:4px}.menu-icon-wrapper.v-5r0p3.v-5r0p3{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.v-5r0p3.v-5r0p3{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-5r0p3.v-5r0p3{position:relative;opacity:0.7}.menu-valueIcon.v-5r0p3.v-5r0p3{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.v-5r0p3.v-5r0p3{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.v-5r0p3 svg,.menu-valueIcon-list.v-5r0p3 svg{color:var(--blue-light)}.menu-divider.v-5r0p3.v-5r0p3{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-5r0p3.v-5r0p3{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.v-5r0p3.v-5r0p3{margin-right:auto;padding-right:12px;opacity:0.9}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar{width:8px}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-5r0p3.v-5r0p3{overflow-y:auto;max-height:160px;text-align:left}.close.v-5r0p3.v-5r0p3{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-5r0p3.v-5r0p3:before,.close.v-5r0p3.v-5r0p3:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.v-5r0p3.v-5r0p3:before{transform:rotate(45deg)}.close.v-5r0p3.v-5r0p3:after{transform:rotate(-45deg)}")}function ys(t,e,i){const n=t.slice();return n[143]=e[i],n}function Cs(t,e,i){const n=t.slice();return n[146]=e[i],n}function Ps(t,e,i){const n=t.slice();return n[149]=e[i],n}function Ss(t){let e,i,n,o,s,l,r,a,c,f,m,h=t[8]&&Ts(t),_=t[29]&&Is(t),b=t[28]&&Es(t),k=t[27]&&Ls(t),v=t[26]&&Vs(t),S=t[25]&&Ms(t),w=t[8]&&Bs(t);return{c(){e=I("div"),h&&h.c(),i=D(),n=I("ul"),_&&_.c(),o=D(),b&&b.c(),s=D(),k&&k.c(),l=D(),v&&v.c(),r=D(),S&&S.c(),a=D(),w&&w.c(),u(n,"class","items v-5r0p3"),u(n,"role","menu"),u(n,"style",t[21]),M(n,"items-mobile",t[8]),u(e,"class","menu v-5r0p3"),M(e,"menu-desktop",!t[8]),M(e,"menu-mobile",t[8]),M(e,"hidden",!t[15])},m(y,E){T(y,e,E),h&&h.m(e,null),p(e,i),p(e,n),_&&_.m(n,null),p(n,o),b&&b.m(n,null),p(n,s),k&&k.m(n,null),p(n,l),v&&v.m(n,null),p(n,r),S&&S.m(n,null),p(n,a),w&&w.m(n,null),t[117](n),c=!0,f||(m=[he(e,"keydown",t[80]),he(e,"mouseenter",t[74]),he(e,"mouseleave",t[75])],f=!0)},p(y,E){y[8]?h?h.p(y,E):(h=Ts(y),h.c(),h.m(e,i)):h&&(h.d(1),h=null),y[29]?_?(_.p(y,E),E[0]&536870912&&d(_,1)):(_=Is(y),_.c(),d(_,1),_.m(n,o)):_&&(fe(),g(_,1,1,()=>{_=null}),de()),y[28]?b?(b.p(y,E),E[0]&268435456&&d(b,1)):(b=Es(y),b.c(),d(b,1),b.m(n,s)):b&&(fe(),g(b,1,1,()=>{b=null}),de()),y[27]?k?(k.p(y,E),E[0]&134217728&&d(k,1)):(k=Ls(y),k.c(),d(k,1),k.m(n,l)):k&&(fe(),g(k,1,1,()=>{k=null}),de()),y[26]?v?(v.p(y,E),E[0]&67108864&&d(v,1)):(v=Vs(y),v.c(),d(v,1),v.m(n,r)):v&&(fe(),g(v,1,1,()=>{v=null}),de()),y[25]?S?(S.p(y,E),E[0]&33554432&&d(S,1)):(S=Ms(y),S.c(),d(S,1),S.m(n,a)):S&&(fe(),g(S,1,1,()=>{S=null}),de()),y[8]?w?(w.p(y,E),E[0]&256&&d(w,1)):(w=Bs(y),w.c(),d(w,1),w.m(n,null)):w&&(fe(),g(w,1,1,()=>{w=null}),de()),(!c||E[0]&2097152)&&u(n,"style",y[21]),(!c||E[0]&256)&&M(n,"items-mobile",y[8]),(!c||E[0]&256)&&M(e,"menu-desktop",!y[8]),(!c||E[0]&256)&&M(e,"menu-mobile",y[8]),(!c||E[0]&32768)&&M(e,"hidden",!y[15])},i(y){c||(d(_),d(b),d(k),d(v),d(S),d(w),c=!0)},o(y){g(_),g(b),g(k),g(v),g(S),g(w),c=!1},d(y){y&&P(e),h&&h.d(),_&&_.d(),b&&b.d(),k&&k.d(),v&&v.d(),S&&S.d(),w&&w.d(),t[117](null),f=!1,nt(m)}}}function Ts(t){let e,i,n,o,s,l,r,a;return{c(){e=I("div"),i=I("div"),i.textContent=`${K("submenu_settings")}`,n=D(),o=I("div"),s=D(),l=I("div"),u(o,"class","close v-5r0p3"),u(e,"class","item menu-header v-5r0p3"),M(e,"item-mobile",t[8]),u(l,"class","menu-divider v-5r0p3")},m(c,f){T(c,e,f),p(e,i),p(e,n),p(e,o),T(c,s,f),T(c,l,f),r||(a=he(o,"click",ot(t[60])),r=!0)},p(c,f){f[0]&256&&M(e,"item-mobile",c[8])},d(c){c&&(P(e),P(s),P(l)),r=!1,a()}}}function Is(t){let e,i,n,o,s,l,r,a,c,f,m,h,_;n=new U1({});let b=t[37]&&!t[8]&&As(t);return{c(){e=I("li"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("menu_quality")}`,l=D(),r=I("div"),a=De(t[20]),c=D(),b&&b.c(),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=K("aria_label_menu_quality",{actual:t[31]})),u(e,"aria-haspopup","true"),M(e,"item-mobile",t[8])},m(k,v){T(k,e,v),p(e,i),z(n,i,null),p(e,o),p(e,s),p(e,l),p(e,r),p(r,a),p(r,c),b&&b.m(r,null),t[113](e),m=!0,h||(_=[he(e,"click",ot(t[61])),he(e,"keydown",t[81])],h=!0)},p(k,v){(!m||v[0]&1048576)&&et(a,k[20]),k[37]&&!k[8]?b?(b.p(k,v),v[0]&256|v[1]&64&&d(b,1)):(b=As(k),b.c(),d(b,1),b.m(r,null)):b&&(fe(),g(b,1,1,()=>{b=null}),de()),(!m||v[1]&1&&f!==(f=K("aria_label_menu_quality",{actual:k[31]})))&&u(e,"aria-label",f),(!m||v[0]&256)&&M(e,"item-mobile",k[8])},i(k){m||(d(n.$$.fragment,k),d(b),m=!0)},o(k){g(n.$$.fragment,k),g(b),m=!1},d(k){k&&P(e),H(n),b&&b.d(),t[113](null),h=!1,nt(_)}}}function As(t){let e,i,n;var o=t[37];function s(l){return{}}return o&&(i=Tn(o,s())),{c(){e=I("div"),i&&U(i.$$.fragment),u(e,"class","menu-valueIcon v-5r0p3")},m(l,r){T(l,e,r),i&&z(i,e,null),n=!0},p(l,r){if(r[1]&64&&o!==(o=l[37])){if(i){fe();const a=i;g(a.$$.fragment,1,0,()=>{H(a,1)}),de()}o?(i=Tn(o,s()),U(i.$$.fragment),d(i.$$.fragment,1),z(i,e,null)):i=null}},i(l){n||(i&&d(i.$$.fragment,l),n=!0)},o(l){i&&g(i.$$.fragment,l),n=!1},d(l){l&&P(e),i&&H(i)}}}function Es(t){let e,i,n,o,s,l,r,a,c,f,m,h,_;return n=new J0({}),{c(){e=I("li"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("menu_playback_rate")}`,l=D(),r=I("div"),a=De(t[13]),c=De("x"),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=K("aria_label_menu_rate",{actual:t[32]})),u(e,"aria-haspopup","true"),M(e,"item-mobile",t[8])},m(b,k){T(b,e,k),p(e,i),z(n,i,null),p(e,o),p(e,s),p(e,l),p(e,r),p(r,a),p(r,c),t[114](e),m=!0,h||(_=[he(e,"click",ot(Wt(t[65]))),he(e,"keydown",t[84])],h=!0)},p(b,k){(!m||k[0]&8192)&&et(a,b[13]),(!m||k[1]&2&&f!==(f=K("aria_label_menu_rate",{actual:b[32]})))&&u(e,"aria-label",f),(!m||k[0]&256)&&M(e,"item-mobile",b[8])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){g(n.$$.fragment,b),m=!1},d(b){b&&P(e),H(n),t[114](null),h=!1,nt(_)}}}function Ls(t){let e,i,n,o,s,l,r,a=t[38].displayValue+"",c,f,m,h,_;return n=new q1({}),{c(){e=I("li"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("subtitles_caption")}`,l=D(),r=I("div"),c=De(a),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=K("aria_label_menu_subtitle",{actual:t[38].displayValue})),u(e,"aria-haspopup","true"),M(e,"item-mobile",t[8])},m(b,k){T(b,e,k),p(e,i),z(n,i,null),p(e,o),p(e,s),p(e,l),p(e,r),p(r,c),t[115](e),m=!0,h||(_=[he(e,"click",ot(t[67])),he(e,"keydown",t[87])],h=!0)},p(b,k){(!m||k[1]&128)&&a!==(a=b[38].displayValue+"")&&et(c,a),(!m||k[1]&128&&f!==(f=K("aria_label_menu_subtitle",{actual:b[38].displayValue})))&&u(e,"aria-label",f),(!m||k[0]&256)&&M(e,"item-mobile",b[8])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){g(n.$$.fragment,b),m=!1},d(b){b&&P(e),H(n),t[115](null),h=!1,nt(_)}}}function Vs(t){let e,i,n,o,s,l,r,a,c,f,m,h;return n=new Q0({}),{c(){e=I("li"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("menu_traffic_saving")}`,l=D(),r=I("div"),a=De(t[30]),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",c=K("aria_label_menu_traffic_saving",{actual:t[30]})),u(e,"aria-haspopup","true"),M(e,"item-mobile",t[8])},m(_,b){T(_,e,b),p(e,i),z(n,i,null),p(e,o),p(e,s),p(e,l),p(e,r),p(r,a),t[116](e),f=!0,m||(h=[he(e,"click",ot(t[62])),he(e,"keydown",t[90])],m=!0)},p(_,b){(!f||b[0]&1073741824)&&et(a,_[30]),(!f||b[0]&1073741824&&c!==(c=K("aria_label_menu_traffic_saving",{actual:_[30]})))&&u(e,"aria-label",c),(!f||b[0]&256)&&M(e,"item-mobile",_[8])},i(_){f||(d(n.$$.fragment,_),f=!0)},o(_){g(n.$$.fragment,_),f=!1},d(_){_&&P(e),H(n),t[116](null),m=!1,nt(h)}}}function Ms(t){let e,i,n,o,s,l,r,a;return n=new G0({}),{c(){e=I("li"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("download_video_caption")}`,u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",K("aria_label_menu_download")),M(e,"item-mobile",t[8])},m(c,f){T(c,e,f),p(e,i),z(n,i,null),p(e,o),p(e,s),l=!0,r||(a=[he(e,"click",ot(t[70])),he(e,"keydown",t[93])],r=!0)},p(c,f){(!l||f[0]&256)&&M(e,"item-mobile",c[8])},i(c){l||(d(n.$$.fragment,c),l=!0)},o(c){g(n.$$.fragment,c),l=!1},d(c){c&&P(e),H(n),r=!1,nt(a)}}}function Bs(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S=t[40].showSupport&&fd(t);return o=new rd({}),f=new ud({}),{c(){S&&S.c(),e=D(),i=I("li"),n=I("div"),U(o.$$.fragment),s=D(),l=I("div"),l.textContent=`${K("menu_copy_debug")}`,r=D(),a=I("li"),c=I("div"),U(f.$$.fragment),m=D(),h=I("div"),h.textContent=`${K("menu_debug_overlay")}`,u(n,"class","menu-icon-wrapper v-5r0p3"),u(l,"class","menu-title v-5r0p3"),u(i,"class","item item-mobile v-5r0p3"),u(i,"role","menuitem"),u(i,"tabindex","0"),u(i,"aria-label",K("menu_copy_debug")),u(c,"class","menu-icon-wrapper v-5r0p3"),u(h,"class","menu-title v-5r0p3"),u(a,"class","item item-mobile v-5r0p3"),u(a,"role","menuitem"),u(a,"tabindex","0"),u(a,"aria-label",_=t[39]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable"))},m(w,y){S&&S.m(w,y),T(w,e,y),T(w,i,y),p(i,n),z(o,n,null),p(i,s),p(i,l),T(w,r,y),T(w,a,y),p(a,c),z(f,c,null),p(a,m),p(a,h),b=!0,k||(v=[he(i,"click",ot(t[72])),he(i,"keydown",t[95]),he(a,"click",ot(t[73])),he(a,"keydown",t[96])],k=!0)},p(w,y){w[40].showSupport&&S.p(w,y),(!b||y[1]&256&&_!==(_=w[39]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable")))&&u(a,"aria-label",_)},i(w){b||(d(S),d(o.$$.fragment,w),d(f.$$.fragment,w),b=!0)},o(w){g(S),g(o.$$.fragment,w),g(f.$$.fragment,w),b=!1},d(w){w&&(P(e),P(i),P(r),P(a)),S&&S.d(w),H(o),H(f),k=!1,nt(v)}}}function fd(t){let e,i,n,o,s,l,r,a;return n=new od({}),{c(){e=I("li"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("menu_report")}`,u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(e,"class","item item-mobile v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`)},m(c,f){T(c,e,f),p(e,i),z(n,i,null),p(e,o),p(e,s),l=!0,r||(a=[he(e,"click",ot(t[71])),he(e,"keydown",t[94])],r=!0)},p:W,i(c){l||(d(n.$$.fragment,c),l=!0)},o(c){g(n.$$.fragment,c),l=!1},d(c){c&&P(e),H(n),r=!1,nt(a)}}}function Ns(t){let e,i,n,o,s,l,r,a,c,f,m,h;n=new Kn({props:{direction:"left"}});let _=Rt(t[12]),b=[];for(let v=0;v<_.length;v+=1)b[v]=Os(Ps(t,_,v));const k=v=>g(b[v],1,1,()=>{b[v]=null});return{c(){e=I("div"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("submenu_quality")}`,l=D(),r=I("div"),a=D(),c=I("ul");for(let v=0;v<b.length;v+=1)b[v].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",K("aria_label_submenu_back")),M(i,"item-mobile",t[8]),u(r,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",t[22]),M(c,"items-mobile",t[8]),u(e,"class","menu menu-subList v-5r0p3"),M(e,"menu-desktop",!t[8]),M(e,"menu-mobile",t[8])},m(v,S){T(v,e,S),p(e,i),z(n,i,null),p(i,o),p(i,s),t[118](i),p(e,l),p(e,r),p(e,a),p(e,c);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(c,null);t[121](c),f=!0,m||(h=[he(i,"click",ot(t[69])),he(c,"keydown",t[82])],m=!0)},p(v,S){if((!f||S[0]&256)&&M(i,"item-mobile",v[8]),S[0]&4352|S[2]&2097154){_=Rt(v[12]);let w;for(w=0;w<_.length;w+=1){const y=Ps(v,_,w);b[w]?(b[w].p(y,S),d(b[w],1)):(b[w]=Os(y),b[w].c(),d(b[w],1),b[w].m(c,null))}for(fe(),w=_.length;w<b.length;w+=1)k(w);de()}(!f||S[0]&4194304)&&u(c,"style",v[22]),(!f||S[0]&256)&&M(c,"items-mobile",v[8]),(!f||S[0]&256)&&M(e,"menu-desktop",!v[8]),(!f||S[0]&256)&&M(e,"menu-mobile",v[8])},i(v){if(!f){d(n.$$.fragment,v);for(let S=0;S<_.length;S+=1)d(b[S]);f=!0}},o(v){g(n.$$.fragment,v),b=b.filter(Boolean);for(let S=0;S<b.length;S+=1)g(b[S]);f=!1},d(v){v&&P(e),H(n),t[118](null),kn(b,v),t[121](null),m=!1,nt(h)}}}function Rs(t){let e,i,n;return i=new Io({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),z(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function Ds(t){let e,i,n;var o=fo(t[149].value);function s(l){return{}}return o&&(i=Tn(o,s())),{c(){e=I("div"),i&&U(i.$$.fragment),u(e,"class","menu-valueIcon-list v-5r0p3")},m(l,r){T(l,e,r),i&&z(i,e,null),n=!0},p(l,r){if(r[0]&4096&&o!==(o=fo(l[149].value))){if(i){fe();const a=i;g(a.$$.fragment,1,0,()=>{H(a,1)}),de()}o?(i=Tn(o,s()),U(i.$$.fragment),d(i.$$.fragment,1),z(i,e,null)):i=null}},i(l){n||(i&&d(i.$$.fragment,l),n=!0)},o(l){i&&g(i.$$.fragment,l),n=!1},d(l){l&&P(e),i&&H(i)}}}function Os(t){let e,i,n,o=t[149].displayValue+"",s,l,r=!t[8]&&fo(t[149].value),a,c,f,m,h,_,b=t[149].selected&&Rs(),k=r&&Ds(t);function v(){return t[119](t[149])}function S(...w){return t[120](t[149],...w)}return{c(){e=I("li"),b&&b.c(),i=D(),n=I("div"),s=De(o),l=D(),k&&k.c(),a=D(),u(n,"class","v-5r0p3"),M(n,"quality-title-mobile",t[8]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",c=t[149].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=t[149].displayValue),M(e,"item-mobile",t[8])},m(w,y){T(w,e,y),b&&b.m(e,null),p(e,i),p(e,n),p(n,s),p(e,l),k&&k.m(e,null),p(e,a),m=!0,h||(_=[he(e,"click",ot(v)),he(e,"keydown",S)],h=!0)},p(w,y){t=w,t[149].selected?b?y[0]&4096&&d(b,1):(b=Rs(),b.c(),d(b,1),b.m(e,i)):b&&(fe(),g(b,1,1,()=>{b=null}),de()),(!m||y[0]&4096)&&o!==(o=t[149].displayValue+"")&&et(s,o),(!m||y[0]&256)&&M(n,"quality-title-mobile",t[8]),y[0]&4352&&(r=!t[8]&&fo(t[149].value)),r?k?(k.p(t,y),y[0]&4352&&d(k,1)):(k=Ds(t),k.c(),d(k,1),k.m(e,a)):k&&(fe(),g(k,1,1,()=>{k=null}),de()),(!m||y[0]&4096&&c!==(c=t[149].value))&&u(e,"data-value",c),(!m||y[0]&4096&&f!==(f=t[149].displayValue))&&u(e,"aria-label",f),(!m||y[0]&256)&&M(e,"item-mobile",t[8])},i(w){m||(d(b),d(k),m=!0)},o(w){g(b),g(k),m=!1},d(w){w&&P(e),b&&b.d(),k&&k.d(),h=!1,nt(_)}}}function zs(t){let e,i,n,o,s,l,r,a,c,f,m,h;n=new Kn({props:{direction:"left"}});let _=Rt(t[11]),b=[];for(let v=0;v<_.length;v+=1)b[v]=Fs(Cs(t,_,v));const k=v=>g(b[v],1,1,()=>{b[v]=null});return{c(){e=I("div"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("submenu_playback_rate")}`,l=D(),r=I("div"),a=D(),c=I("ul");for(let v=0;v<b.length;v+=1)b[v].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",K("aria_label_submenu_back")),M(i,"item-mobile",t[8]),u(r,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",t[23]),M(c,"items-mobile",t[8]),u(e,"class","menu menu-subList v-5r0p3"),M(e,"menu-desktop",!t[8]),M(e,"menu-mobile",t[8])},m(v,S){T(v,e,S),p(e,i),z(n,i,null),p(i,o),p(i,s),t[122](i),p(e,l),p(e,r),p(e,a),p(e,c);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(c,null);t[125](c),f=!0,m||(h=[he(i,"click",ot(t[69])),he(c,"keydown",t[85])],m=!0)},p(v,S){if((!f||S[0]&256)&&M(i,"item-mobile",v[8]),S[0]&2304|S[2]&16777232){_=Rt(v[11]);let w;for(w=0;w<_.length;w+=1){const y=Cs(v,_,w);b[w]?(b[w].p(y,S),d(b[w],1)):(b[w]=Fs(y),b[w].c(),d(b[w],1),b[w].m(c,null))}for(fe(),w=_.length;w<b.length;w+=1)k(w);de()}(!f||S[0]&8388608)&&u(c,"style",v[23]),(!f||S[0]&256)&&M(c,"items-mobile",v[8]),(!f||S[0]&256)&&M(e,"menu-desktop",!v[8]),(!f||S[0]&256)&&M(e,"menu-mobile",v[8])},i(v){if(!f){d(n.$$.fragment,v);for(let S=0;S<_.length;S+=1)d(b[S]);f=!0}},o(v){g(n.$$.fragment,v),b=b.filter(Boolean);for(let S=0;S<b.length;S+=1)g(b[S]);f=!1},d(v){v&&P(e),H(n),t[122](null),kn(b,v),t[125](null),m=!1,nt(h)}}}function Hs(t){let e,i,n;return i=new Io({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),z(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function Fs(t){let e,i,n,o=t[146].displayValue+"",s,l,r,a,c,f,m,h=t[146].selected&&Hs();function _(){return t[123](t[146])}function b(...k){return t[124](t[146],...k)}return{c(){e=I("li"),h&&h.c(),i=D(),n=I("div"),s=De(o),l=D(),u(n,"class","v-5r0p3"),M(n,"quality-title-mobile",t[8]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",r=t[146].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=t[146].displayValue),M(e,"item-mobile",t[8])},m(k,v){T(k,e,v),h&&h.m(e,null),p(e,i),p(e,n),p(n,s),p(e,l),c=!0,f||(m=[he(e,"click",ot(_)),he(e,"keydown",b)],f=!0)},p(k,v){t=k,t[146].selected?h?v[0]&2048&&d(h,1):(h=Hs(),h.c(),d(h,1),h.m(e,i)):h&&(fe(),g(h,1,1,()=>{h=null}),de()),(!c||v[0]&2048)&&o!==(o=t[146].displayValue+"")&&et(s,o),(!c||v[0]&256)&&M(n,"quality-title-mobile",t[8]),(!c||v[0]&2048&&r!==(r=t[146].value))&&u(e,"data-value",r),(!c||v[0]&2048&&a!==(a=t[146].displayValue))&&u(e,"aria-label",a),(!c||v[0]&256)&&M(e,"item-mobile",t[8])},i(k){c||(d(h),c=!0)},o(k){g(h),c=!1},d(k){k&&P(e),h&&h.d(),f=!1,nt(m)}}}function Us(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe;n=new Kn({props:{direction:"left"}});let x=!t[9]&&qs(),C=t[9]&&Zs();return{c(){e=I("div"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("submenu_traffic_saving")}`,l=D(),r=I("div"),a=D(),c=I("ul"),f=I("li"),x&&x.c(),m=D(),h=I("div"),h.textContent=`${K("traffic_saving_disable")}`,_=D(),b=I("li"),C&&C.c(),k=D(),v=I("div"),v.textContent=`${K("traffic_saving_enable")}`,S=D(),w=I("div"),y=D(),E=I("div"),ie=I("span"),ie.textContent=`${K("traffic_saving_helper_text")}`,u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",K("aria_label_submenu_back")),M(i,"item-mobile",t[8]),u(r,"class","menu-divider v-5r0p3"),u(h,"class","v-5r0p3"),M(h,"quality-title-mobile",t[8]),u(f,"class","item item-traffic-saving v-5r0p3"),u(f,"role","menuitem"),u(f,"tabindex","0"),u(f,"aria-label",K("aria_label_submenu_traffic_saving_off")),M(f,"item-mobile",t[8]),u(v,"class","v-5r0p3"),M(v,"quality-title-mobile",t[8]),u(b,"class","item item-traffic-saving v-5r0p3"),u(b,"role","menuitem"),u(b,"tabindex","0"),u(b,"aria-label",`${K("aria_label_submenu_traffic_saving_on")}. ${K("traffic_saving_helper_text")}`),M(b,"item-mobile",t[8]),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",t[24]),M(c,"items-mobile",t[8]),u(w,"class","menu-divider v-5r0p3"),u(ie,"class","v-5r0p3"),u(E,"class","item item-helper-text v-5r0p3"),M(E,"item-mobile",t[8]),u(e,"class","menu menu-subList menu-subList-traffic-saving v-5r0p3"),M(e,"menu-desktop",!t[8]),M(e,"menu-mobile",t[8])},m($,R){T($,e,R),p(e,i),z(n,i,null),p(i,o),p(i,s),t[126](i),p(e,l),p(e,r),p(e,a),p(e,c),p(c,f),x&&x.m(f,null),p(f,m),p(f,h),p(c,_),p(c,b),C&&C.m(b,null),p(b,k),p(b,v),t[131](c),p(e,S),p(e,w),p(e,y),p(e,E),p(E,ie),V=!0,F||(oe=[he(i,"click",ot(t[69])),he(f,"click",ot(t[127])),he(f,"keydown",t[128]),he(b,"click",ot(t[129])),he(b,"keydown",t[130]),he(c,"keydown",t[91])],F=!0)},p($,R){(!V||R[0]&256)&&M(i,"item-mobile",$[8]),$[9]?x&&(fe(),g(x,1,1,()=>{x=null}),de()):x?R[0]&512&&d(x,1):(x=qs(),x.c(),d(x,1),x.m(f,m)),(!V||R[0]&256)&&M(h,"quality-title-mobile",$[8]),(!V||R[0]&256)&&M(f,"item-mobile",$[8]),$[9]?C?R[0]&512&&d(C,1):(C=Zs(),C.c(),d(C,1),C.m(b,k)):C&&(fe(),g(C,1,1,()=>{C=null}),de()),(!V||R[0]&256)&&M(v,"quality-title-mobile",$[8]),(!V||R[0]&256)&&M(b,"item-mobile",$[8]),(!V||R[0]&16777216)&&u(c,"style",$[24]),(!V||R[0]&256)&&M(c,"items-mobile",$[8]),(!V||R[0]&256)&&M(E,"item-mobile",$[8]),(!V||R[0]&256)&&M(e,"menu-desktop",!$[8]),(!V||R[0]&256)&&M(e,"menu-mobile",$[8])},i($){V||(d(n.$$.fragment,$),d(x),d(C),V=!0)},o($){g(n.$$.fragment,$),g(x),g(C),V=!1},d($){$&&P(e),H(n),t[126](null),x&&x.d(),C&&C.d(),t[131](null),F=!1,nt(oe)}}}function qs(t){let e,i,n;return i=new Io({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),z(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function Zs(t){let e,i,n;return i=new Io({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),z(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function Ws(t){let e,i,n,o,s,l,r,a,c,f;n=new Kn({props:{direction:"left"}});let m=Rt(t[10]),h=[];for(let b=0;b<m.length;b+=1)h[b]=js(ys(t,m,b));const _=b=>g(h[b],1,1,()=>{h[b]=null});return{c(){e=I("div"),i=I("div"),U(n.$$.fragment),o=D(),s=I("div"),s.textContent=`${K("subtitles_caption")}`,l=D(),r=I("ul");for(let b=0;b<h.length;b+=1)h[b].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",K("aria_label_submenu_back")),M(i,"item-mobile",t[8]),u(r,"class","items v-5r0p3"),u(r,"role","menu"),M(r,"items-mobile",t[8]),u(e,"class","menu menu-subList menu-subList-subtitles v-5r0p3"),M(e,"menu-desktop",!t[8]),M(e,"menu-mobile",t[8])},m(b,k){T(b,e,k),p(e,i),z(n,i,null),p(i,o),p(i,s),p(e,l),p(e,r);for(let v=0;v<h.length;v+=1)h[v]&&h[v].m(r,null);t[134](r),a=!0,c||(f=[he(i,"click",ot(t[69])),he(r,"keydown",t[88])],c=!0)},p(b,k){if((!a||k[0]&256)&&M(i,"item-mobile",b[8]),k[0]&1280|k[2]&134217792){m=Rt(b[10]);let v;for(v=0;v<m.length;v+=1){const S=ys(b,m,v);h[v]?(h[v].p(S,k),d(h[v],1)):(h[v]=js(S),h[v].c(),d(h[v],1),h[v].m(r,null))}for(fe(),v=m.length;v<h.length;v+=1)_(v);de()}(!a||k[0]&256)&&M(r,"items-mobile",b[8]),(!a||k[0]&256)&&M(e,"menu-desktop",!b[8]),(!a||k[0]&256)&&M(e,"menu-mobile",b[8])},i(b){if(!a){d(n.$$.fragment,b);for(let k=0;k<m.length;k+=1)d(h[k]);a=!0}},o(b){g(n.$$.fragment,b),h=h.filter(Boolean);for(let k=0;k<h.length;k+=1)g(h[k]);a=!1},d(b){b&&P(e),H(n),kn(h,b),t[134](null),c=!1,nt(f)}}}function Ks(t){let e,i,n;return i=new Io({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){T(o,e,s),z(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function js(t){let e,i,n,o=t[143].displayValue+"",s,l,r,a,c,f,m,h=t[143].selected&&Ks();function _(){return t[132](t[143])}function b(...k){return t[133](t[143],...k)}return{c(){e=I("li"),h&&h.c(),i=D(),n=I("div"),s=De(o),l=D(),u(n,"class","v-5r0p3"),M(n,"quality-title-mobile",t[8]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",r=t[143].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=t[143].displayValue),M(e,"item-mobile",t[8])},m(k,v){T(k,e,v),h&&h.m(e,null),p(e,i),p(e,n),p(n,s),p(e,l),c=!0,f||(m=[he(e,"click",ot(_)),he(e,"keydown",b)],f=!0)},p(k,v){t=k,t[143].selected?h?v[0]&1024&&d(h,1):(h=Ks(),h.c(),d(h,1),h.m(e,i)):h&&(fe(),g(h,1,1,()=>{h=null}),de()),(!c||v[0]&1024)&&o!==(o=t[143].displayValue+"")&&et(s,o),(!c||v[0]&256)&&M(n,"quality-title-mobile",t[8]),(!c||v[0]&1024&&r!==(r=t[143].value))&&u(e,"data-value",r),(!c||v[0]&1024&&a!==(a=t[143].displayValue))&&u(e,"aria-label",a),(!c||v[0]&256)&&M(e,"item-mobile",t[8])},i(k){c||(d(h),c=!0)},o(k){g(h),c=!1},d(k){k&&P(e),h&&h.d(),f=!1,nt(m)}}}function dd(t){let e,i,n,o,s,l,r=t[14]&&Ss(t),a=t[16]&&Ns(t),c=t[17]&&zs(t),f=t[19]&&Us(t),m=t[18]&&Ws(t);return{c(){e=I("div"),r&&r.c(),i=D(),a&&a.c(),n=D(),c&&c.c(),o=D(),f&&f.c(),s=D(),m&&m.c(),u(e,"class","v-5r0p3"),M(e,"hidden",!t[14]),M(e,"container-mobile",t[8])},m(h,_){T(h,e,_),r&&r.m(e,null),p(e,i),a&&a.m(e,null),p(e,n),c&&c.m(e,null),p(e,o),f&&f.m(e,null),p(e,s),m&&m.m(e,null),l=!0},p(h,_){h[14]?r?(r.p(h,_),_[0]&16384&&d(r,1)):(r=Ss(h),r.c(),d(r,1),r.m(e,i)):r&&(fe(),g(r,1,1,()=>{r=null}),de()),h[16]?a?(a.p(h,_),_[0]&65536&&d(a,1)):(a=Ns(h),a.c(),d(a,1),a.m(e,n)):a&&(fe(),g(a,1,1,()=>{a=null}),de()),h[17]?c?(c.p(h,_),_[0]&131072&&d(c,1)):(c=zs(h),c.c(),d(c,1),c.m(e,o)):c&&(fe(),g(c,1,1,()=>{c=null}),de()),h[19]?f?(f.p(h,_),_[0]&524288&&d(f,1)):(f=Us(h),f.c(),d(f,1),f.m(e,s)):f&&(fe(),g(f,1,1,()=>{f=null}),de()),h[18]?m?(m.p(h,_),_[0]&262144&&d(m,1)):(m=Ws(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),g(m,1,1,()=>{m=null}),de()),(!l||_[0]&16384)&&M(e,"hidden",!h[14]),(!l||_[0]&256)&&M(e,"container-mobile",h[8])},i(h){l||(d(r),d(a),d(c),d(f),d(m),l=!0)},o(h){g(r),g(a),g(c),g(f),g(m),l=!1},d(h){h&&P(e),r&&r.d(),a&&a.d(),c&&c.d(),f&&f.d(),m&&m.d()}}}const Uo=18;function md(t,e,i){let n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe,x,C,{ref:$=void 0}=e,{supportLink:R}=e,{playerControlsHeight:se=0}=e,{returnFocus:j}=e;const N=ht(),Q=an(),A=N.state.currentQuality$;O(t,A,ee=>i(104,k=ee));const ne=N.state.availableQualities$;O(t,ne,ee=>i(12,_=ee));const Ie=N.state.autoQualityLimitingAvailable$;O(t,Ie,ee=>i(108,y=ee));const Ne=N.state.isAutoQualityEnabled$;O(t,Ne,ee=>i(105,v=ee));const Be=N.state.currentPlaybackRate$;O(t,Be,ee=>i(13,b=ee));const ze=N.state.availablePlaybackRates$;O(t,ze,ee=>i(11,m=ee));const ce=N.state.currentSubtitle$;O(t,ce,ee=>i(38,x=ee));const ke=N.state.availableSubtitlesList$;O(t,ke,ee=>i(10,c=ee));const G=N.state.canDownload,J=N.state.hasMpegSources$;O(t,J,ee=>i(109,E=ee));const ye=N.ui.settingsMenuVisible;O(t,ye,ee=>i(14,oe=ee));const re=N.ui.settingsMenuOpenedByKeyboard;O(t,re,ee=>i(136,o=ee));const We=N.ui.isMobile;O(t,We,ee=>i(8,s=ee));const Ve=N.ui.mobileNotReportControlHidden$;O(t,Ve,ee=>i(106,S=ee));const Ee=N.state.canChangePlaybackSpeed$;O(t,Ee,ee=>i(107,w=ee));const ue=N.ui.isFullscreen;O(t,ue,ee=>i(112,F=ee));const Ce=N.state.trafficSavingEnabled$;O(t,Ce,ee=>i(9,r=ee));const ge=N.ui.playerSize;O(t,ge,ee=>i(111,V=ee));const le=N.ui.debugPanelVisible;O(t,le,ee=>i(39,C=ee));const qe=N.ui.playerSize;O(t,qe,ee=>i(110,ie=ee));const pe=N.state.isInteractiveTime$,Pe=N.actions.internal.downloadVideo,Te=N.actions.internal.closeSettingsMenu;let je=!0,tt=!1,Xe=!1,Qe=!1,it=!1,Et=!1;function ut(){o||j?.(),Te(),Et=!1}function $t(){i(15,je=!1),i(16,tt=!0)}function _t(){i(15,je=!1),i(19,it=!0)}function Oe(ee){N.actions.internal.setQuality(ee),ut()}function me(ee){N.actions.internal.setTrafficSavingEnabled(ee),ut()}function bt(){i(15,je=!1),i(17,Xe=!0)}function ct(ee){N.actions.internal.setPlaybackRate(ee),ut()}function Dt(){i(15,je=!1),i(18,Qe=!0)}function rt(ee){N.actions.internal.setSubtitle(ee),ut()}function wt(){i(15,je=!0),i(16,tt=!1),i(17,Xe=!1),i(18,Qe=!1),i(19,it=!1)}function ei(){Pe(),ut()}function Kt(){window.open(R,"_blank"),ut(),N.actions.internal.pause()}function ti(){pl(N.actions.internal.getDebugTextData()),ut()}function Ui(){le.set(!0),ut()}function ii(){Et=!0}function Ci(){Et=!1}function Yi(ee,lt,ki){if(!ee)return"...";const kt=lt.find(ln=>ln.value===ee),Xi=kt?kt.displayValue:ee;return ki?ee===$e.VideoQuality.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:Xi}):Xi}let ni,oi,Pi,Vt,li,si,jt,ri,ai,ui,Si,Ti,Ii,yt,ci,Gt,fi,Lt,Ai=Le(!1);O(t,Ai,ee=>i(103,h=ee));let vt,Ct,Ot=Le(!1);O(t,Ot,ee=>i(102,f=ee));let Pt,Ei,Mt=Le(!1);O(t,Mt,ee=>i(101,a=ee));let Yt,Qt,di=Le(!1);O(t,di,ee=>i(100,l=ee));const St=ee=>{M1(ee,Te)},qi=async ee=>{Ho(ee,$t,()=>{const lt=_.findIndex(ki=>ki.selected);return Lt.childNodes[lt]})},Li=async ee=>{Fo(ee,wt,Ai,Te)},Qi=(ee,lt)=>{$i(ee,()=>Oe(lt))},Xt=async ee=>{Ho(ee,bt,()=>{const lt=m.findIndex(ki=>ki.selected);return Ct.childNodes[lt]})},gt=async ee=>{Fo(ee,wt,Ot,Te)},zt=(ee,lt)=>{$i(ee,()=>ct(lt))},Zi=async ee=>{Ho(ee,Dt,()=>{const lt=c.findIndex(ki=>ki.selected);return Ei.childNodes[lt]})},Wi=async ee=>{Fo(ee,wt,Mt,Te)},Ki=(ee,lt)=>{$i(ee,()=>rt(lt))},Jt=async ee=>{Ho(ee,_t,()=>{const lt=r?2:0;return Qt.childNodes[lt]})},zi=async ee=>{Fo(ee,wt,di,Te)},mi=(ee,lt)=>{$i(ee,()=>me(lt))},pi=ee=>{$i(ee,()=>ei())},Vi=ee=>{$i(ee,()=>Kt())},Mi=ee=>{$i(ee,()=>ti())},Bt=ee=>{$i(ee,()=>Ui())};sn(()=>{const ee=pe.subscribe(lt=>{lt&&!s&&!Et&&!o&&ut()});return()=>{ee()}});function Hi(ee){we[ee?"unshift":"push"](()=>{fi=ee,i(4,fi)})}function hi(ee){we[ee?"unshift":"push"](()=>{vt=ee,i(5,vt)})}function gi(ee){we[ee?"unshift":"push"](()=>{Pt=ee,i(6,Pt)})}function Bi(ee){we[ee?"unshift":"push"](()=>{Yt=ee,i(7,Yt)})}function bi(ee){we[ee?"unshift":"push"](()=>{$=ee,i(0,$)})}function Ht(ee){we[ee?"unshift":"push"](()=>{oi=ee,i(1,oi)})}const _i=ee=>Oe(ee.value),He=(ee,lt)=>Qi(lt,ee.value);function vi(ee){we[ee?"unshift":"push"](()=>{Lt=ee,i(33,Lt)})}function Nt(ee){we[ee?"unshift":"push"](()=>{Pi=ee,i(2,Pi)})}const Me=ee=>ct(ee.value),en=(ee,lt)=>zt(lt,ee.value);function ji(ee){we[ee?"unshift":"push"](()=>{Ct=ee,i(34,Ct)})}function tn(ee){we[ee?"unshift":"push"](()=>{Vt=ee,i(3,Vt)})}const Fi=()=>me(!1),nn=ee=>mi(ee,!1),Ft=()=>me(!0),Gi=ee=>mi(ee,!0);function on(ee){we[ee?"unshift":"push"](()=>{Qt=ee,i(36,Qt)})}const Ni=ee=>rt(ee),Tt=(ee,lt)=>Ki(lt,ee);function Ri(ee){we[ee?"unshift":"push"](()=>{Ei=ee,i(35,Ei)})}return t.$$set=ee=>{"ref"in ee&&i(0,$=ee.ref),"supportLink"in ee&&i(97,R=ee.supportLink),"playerControlsHeight"in ee&&i(98,se=ee.playerControlsHeight),"returnFocus"in ee&&i(99,j=ee.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&16384&&oe&&(i(15,je=!0),i(16,tt=!1),i(17,Xe=!1),i(18,Qe=!1),i(19,it=!1)),t.$$.dirty[3]&2048&&i(37,n=fo(k)),t.$$.dirty[0]&4096|t.$$.dirty[3]&6144&&i(20,ni=Yi(k,_,v)),t.$$.dirty[0]&256|t.$$.dirty[3]&131104)if(s)i(21,li="");else{const ee=ie.height-Uo-se;i(21,li=`max-height: ${ee}px; overflow: auto`)}if(t.$$.dirty[0]&258|t.$$.dirty[3]&917536)if(s&&F)i(22,si=`max-height: ${Math.round(V.height*.6)}px`);else if(s)i(22,si="");else{const ee=ie.height-Uo-(oi?.clientHeight??0)-se;i(22,si=`max-height: ${ee}px; overflow: auto;`)}if(t.$$.dirty[0]&260|t.$$.dirty[3]&131104)if(s)i(23,jt="");else{const ee=ie.height-Uo-(Pi?.clientHeight??0)-se;i(23,jt=`max-height: ${ee}px; overflow: auto;`)}if(t.$$.dirty[0]&264|t.$$.dirty[3]&131104)if(s)i(24,ri="");else{const ee=ie.height-Uo-(Vt?.clientHeight??0)-se;i(24,ri=`max-height: ${ee}px; overflow: auto;`)}t.$$.dirty[3]&73728&&i(25,ai=G&&E&&!S),t.$$.dirty[3]&40960&&i(26,ui=Q.features.trafficSaving&&!S&&y),t.$$.dirty[0]&1024|t.$$.dirty[3]&8192&&i(27,Si=c.length>0&&!S),t.$$.dirty[3]&24576&&i(28,Ti=!!w&&!S),t.$$.dirty[3]&8192&&i(29,Ii=!S),t.$$.dirty[0]&512&&i(30,yt=K(r?"traffic_saving_on":"traffic_saving_off")),t.$$.dirty[3]&6144&&i(31,ci=v?K("auto_quality_option"):k),t.$$.dirty[0]&10240&&i(32,Gt=m.find(ee=>ee.value===b)?.displayValue),t.$$.dirty[0]&16|t.$$.dirty[3]&1024&&zo(fi,Ai,h),t.$$.dirty[0]&32|t.$$.dirty[3]&512&&zo(vt,Ot,f),t.$$.dirty[0]&64|t.$$.dirty[3]&256&&zo(Pt,Mt,a),t.$$.dirty[0]&128|t.$$.dirty[3]&128&&zo(Yt,di,l)},[$,oi,Pi,Vt,fi,vt,Pt,Yt,s,r,c,m,_,b,oe,je,tt,Xe,Qe,it,ni,li,si,jt,ri,ai,ui,Si,Ti,Ii,yt,ci,Gt,Lt,Ct,Ei,Qt,n,x,C,Q,A,ne,Ie,Ne,Be,ze,ce,ke,J,ye,re,We,Ve,Ee,ue,Ce,ge,le,qe,ut,$t,_t,Oe,me,bt,ct,Dt,rt,wt,ei,Kt,ti,Ui,ii,Ci,Ai,Ot,Mt,di,St,qi,Li,Qi,Xt,gt,zt,Zi,Wi,Ki,Jt,zi,mi,pi,Vi,Mi,Bt,R,se,j,l,a,f,h,k,v,S,w,y,E,ie,V,F,Hi,hi,gi,Bi,bi,Ht,_i,He,vi,Nt,Me,en,ji,tn,Fi,nn,Ft,Gi,on,Ni,Tt,Ri]}class Z1 extends ve{constructor(e){super(),_e(this,e,md,dd,be,{ref:0,supportLink:97,playerControlsHeight:98,returnFocus:99},cd,[-1,-1,-1,-1,-1])}}function pd(t){Ke(t,"v-d9t49t",".settings-icon-wrapper.v-d9t49t{position:relative;width:24px}")}function hd(t){let e,i,n;return i=new U1({props:{isMobile:t[3],currentQuality:t[4]}}),{c(){e=I("span"),U(i.$$.fragment),u(e,"class","settings-icon-wrapper v-d9t49t")},m(o,s){T(o,e,s),z(i,e,null),n=!0},p(o,s){const l={};s&8&&(l.isMobile=o[3]),s&16&&(l.currentQuality=o[4]),i.$set(l)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function gd(t){let e,i,n;function o(l){t[9](l)}let s={className:t[1]?"opened":"",testId:"btn-settings",click:t[8],ariaLabel:t[2],ariaExpanded:t[1],$$slots:{default:[hd]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"opened":""),r&4&&(a.ariaLabel=l[2]),r&2&&(a.ariaExpanded=l[1]),r&4120&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function bd(t,e,i){let n,o,s,{ref:l=void 0}=e;const r=ht(),a=r.state.currentQuality$;O(t,a,k=>i(4,s=k));const c=r.ui.settingsMenuVisible;O(t,c,k=>i(1,n=k));const f=r.actions.internal.toggleSettingsMenu,m=r.ui.isMobile;O(t,m,k=>i(3,o=k));let h;function _(k){const v=kl(k);f(v)}function b(k){l=k,i(0,l)}return t.$$set=k=>{"ref"in k&&i(0,l=k.ref)},t.$$.update=()=>{t.$$.dirty&2&&i(2,h=K(n?"tooltip_settings_on":"tooltip_settings_off"))},[l,n,h,o,s,a,c,m,_,b]}class Pl extends ve{constructor(e){super(),_e(this,e,bd,gd,be,{ref:0},pd)}}function _d(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"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-3Zm1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2Zm5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2Zm-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2Zm10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2Z"),u(i,"fill","#fff"),u(e,"width","22"),u(e,"height","16"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","subtitle-pained-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class vd extends ve{constructor(e){super(),_e(this,e,null,_d,be,{})}}function kd(t){let e,i;return e=new q1({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function wd(t){let e,i;return e=new vd({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function yd(t){let e,i,n,o;const s=[wd,kd],l=[];function r(a,c){return a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=at()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e!==f&&(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),i=l[e],i||(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function Cd(t){let e,i;return e=new yi({props:{testId:"btn-Subtitles",ariaLabel:t[2],click:t[1],ariaKeyShortCut:So[Ae.KeyC],$$slots:{default:[yd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,[o]){const s={};o&4&&(s.ariaLabel=n[2]),o&2&&(s.click=n[1]),o&9&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Pd(t,e,i){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,s;return t.$$set=l=>{"isSubtitlesEnabled"in l&&i(0,n=l.isSubtitlesEnabled),"click"in l&&i(1,o=l.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,s=K(n?"tooltip_subtitles_on":"tooltip_subtitles_off"))},[n,o,s]}class Sd extends ve{constructor(e){super(),_e(this,e,Pd,Cd,be,{isSubtitlesEnabled:0,click:1})}}function Td(t){Ke(t,"v-19o2urr",".time.v-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.v-19o2urr{padding:0 0 0 8px}.current.v-19o2urr{position:relative}.duration.v-19o2urr{opacity:0.7}.duration.v-19o2urr:before{content:' / ';white-space:pre}")}function Gs(t){let e,i;return{c(){e=I("span"),i=De(t[3]),u(e,"class","duration v-19o2urr")},m(n,o){T(n,e,o),p(e,i)},p(n,o){o&8&&et(i,n[3])},d(n){n&&P(e)}}}function Id(t){let e,i,n,o,s=t[2]&&Gs(t);return{c(){e=I("div"),i=I("span"),n=De(t[4]),o=D(),s&&s.c(),u(i,"class","current v-19o2urr"),u(e,"class","time v-19o2urr"),M(e,"mobile",t[1])},m(l,r){T(l,e,r),p(e,i),p(i,n),p(e,o),s&&s.m(e,null),t[7](e)},p(l,[r]){r&16&&et(n,l[4]),l[2]?s?s.p(l,r):(s=Gs(l),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&2&&M(e,"mobile",l[1])},i:W,o:W,d(l){l&&P(e),s&&s.d(),t[7](null)}}}function Ad(t,e,i){let{isMobile:n=!1}=e,{duration:o}=e,{position:s}=e,{showDuration:l=!0}=e,{ref:r}=e,a,c;function f(m){we[m?"unshift":"push"](()=>{r=m,i(0,r)})}return t.$$set=m=>{"isMobile"in m&&i(1,n=m.isMobile),"duration"in m&&i(5,o=m.duration),"position"in m&&i(6,s=m.position),"showDuration"in m&&i(2,l=m.showDuration),"ref"in m&&i(0,r=m.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,a=Vn(o)),t.$$.dirty&64&&i(4,c=Vn(s))},[r,n,l,a,c,o,s,f]}class W1 extends ve{constructor(e){super(),_e(this,e,Ad,Id,be,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Td)}}function Ed(t){Ke(t,"v-1n5yyua",".icon.v-1n5yyua.v-1n5yyua{display:block;width:24px;height:24px}.icon.v-1n5yyua .cross.v-1n5yyua{visibility:hidden}.icon[data-value='off'].v-1n5yyua .wave1.v-1n5yyua,.icon[data-value='off'].v-1n5yyua .wave2.v-1n5yyua{visibility:hidden}.icon[data-value='off'].v-1n5yyua .cross.v-1n5yyua{visibility:visible}.icon[data-value='mid'].v-1n5yyua .wave2.v-1n5yyua,.icon[data-value='min'].v-1n5yyua .wave2.v-1n5yyua{visibility:hidden}")}function Ld(t){let e,i,n,o,s,l;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("path"),u(n,"class","wave2 v-1n5yyua"),u(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"),u(o,"class","wave1 v-1n5yyua"),u(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"),u(s,"class","cross v-1n5yyua"),u(s,"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"),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"data-value",t[0]),u(e,"data-testid",l="volume-"+t[0]+"-icon"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","icon v-1n5yyua"),u(e,"aria-hidden","true")},m(r,a){T(r,e,a),p(e,i),p(i,n),p(i,o),p(i,s)},p(r,[a]){a&1&&u(e,"data-value",r[0]),a&1&&l!==(l="volume-"+r[0]+"-icon")&&u(e,"data-testid",l)},i:W,o:W,d(r){r&&P(e)}}}function Vd(t,e,i){let{volume:n=1}=e,{muted:o=!1}=e;const s=(r,a)=>a?"off":r>.5?"max":r>.2?"mid":r>0?"min":"off";let l;return t.$$set=r=>{"volume"in r&&i(1,n=r.volume),"muted"in r&&i(2,o=r.muted)},t.$$.update=()=>{t.$$.dirty&6&&i(0,l=s(n,o))},[l,n,o]}class Go extends ve{constructor(e){super(),_e(this,e,Vd,Ld,be,{volume:1,muted:2},Ed)}}function Md(t){let e,i;const n=t[4].default,o=Mn(n,t,t[3],null);return{c(){e=I("div"),o&&o.c(),u(e,"class","overlay")},m(s,l){T(s,e,l),o&&o.m(e,null),t[5](e),i=!0},p(s,[l]){o&&o.p&&(!i||l&8)&&Nn(o,n,s,s[3],i?Bn(n,s[3],l,null):Rn(s[3]),null)},i(s){i||(d(o,s),i=!0)},o(s){g(o,s),i=!1},d(s){s&&P(e),o&&o.d(s),t[5](null)}}}function Bd(t,e,i){let n,{$$slots:o={},$$scope:s}=e;const r=ht().ui.overlayContainer$;O(t,r,h=>i(2,n=h));let a;const c=h=>{!h||!a||!h.contains(a)||h.removeChild(a)},f=h=>{!h||!a||h.contains(a)||h.appendChild(a)};sn(()=>(f(n),()=>c(n)));function m(h){we[h?"unshift":"push"](()=>{a=h,i(0,a)})}return t.$$set=h=>{"$$scope"in h&&i(3,s=h.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&f(n)},[a,r,n,s,o,m]}class Nd extends ve{constructor(e){super(),_e(this,e,Bd,Md,be,{})}}function Rd(t){Ke(t,"v-tny135",'.tooltip-wrapper.v-tny135{display:flex;flex-direction:column;min-width:0}.full-width.v-tny135{width:100%}.tooltip.v-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.v-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-tny135{opacity:1;visibility:visible}.tooltip-pointer.v-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.v-tny135{top:0;bottom:auto}')}function Ys(t){let e,i;return e=new Nd({props:{$$slots:{default:[Dd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&1048819&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Dd(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("div"),n=De(t[1]),o=D(),s=I("div"),u(i,"class","content v-tny135"),u(s,"class","tooltip-pointer v-tny135"),u(s,"style",l=`transform: translate(${t[5]}px, ${t[9]}px) rotate(${t[8]?0:"180deg"});`),M(s,"bottom-placement-pointer",!t[8]),u(e,"class","tooltip v-tny135"),u(e,"style",r=`transform: translate(${t[6]}px, ${t[7]}px);`),M(e,"active",t[0])},m(a,c){T(a,e,c),p(e,i),p(i,n),p(e,o),p(e,s),t[19](e)},p(a,c){c&2&&et(n,a[1]),c&32&&l!==(l=`transform: translate(${a[5]}px, ${a[9]}px) rotate(${a[8]?0:"180deg"});`)&&u(s,"style",l),c&192&&r!==(r=`transform: translate(${a[6]}px, ${a[7]}px);`)&&u(e,"style",r),c&1&&M(e,"active",a[0])},d(a){a&&P(e),t[19](null)}}}function Od(t){let e,i,n,o,s,l;const r=t[17].default,a=Mn(r,t,t[20],null);let c=t[1]&&Ys(t);return{c(){e=I("div"),a&&a.c(),i=D(),c&&c.c(),n=at(),u(e,"class","tooltip-wrapper v-tny135"),M(e,"full-width",t[2])},m(f,m){T(f,e,m),a&&a.m(e,null),t[18](e),T(f,i,m),c&&c.m(f,m),T(f,n,m),o=!0,s||(l=[he(e,"mouseenter",t[12]),he(e,"mousemove",t[12]),he(e,"mouseleave",t[13]),he(e,"mousedown",t[13]),he(e,"mouseup",t[12])],s=!0)},p(f,[m]){a&&a.p&&(!o||m&1048576)&&Nn(a,r,f,f[20],o?Bn(r,f[20],m,null):Rn(f[20]),null),(!o||m&4)&&M(e,"full-width",f[2]),f[1]?c?(c.p(f,m),m&2&&d(c,1)):(c=Ys(f),c.c(),d(c,1),c.m(n.parentNode,n)):c&&(fe(),g(c,1,1,()=>{c=null}),de())},i(f){o||(d(a,f),d(c),o=!0)},o(f){g(a,f),g(c),o=!1},d(f){f&&(P(e),P(i),P(n)),a&&a.d(f),t[18](null),c&&c.d(f),s=!1,nt(l)}}}const _o=5;function zd(t,e,i){let n,o,{$$slots:s={},$$scope:l}=e,{content:r=""}=e,{active:a=!1}=e,{translateX:c=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e;const _=h==="top";let b,k,v,S=0,w=_?_o:-_o,y=0,E=0;const ie=an(),V=ht(),F=V.ui.playerSize;O(t,F,A=>i(23,o=A));const oe=V.ui.overlayContainer$;O(t,oe,A=>i(22,n=A));const x=V.getLogger().createComponentLog("Tooltip component"),C=()=>{if(!n)return;const A=n.getBoundingClientRect(),ne=b.getBoundingClientRect(),Ie=ne.width,Ne=k.clientWidth,Be=o.width,ze=(Ie-Ne)/2,ce=ne.left+c-A.left;let ke=ce+ze;const G=ne.top+f-A.top;let J=Ne/2-_o;const ye=ke<Ro,re=ke+Ne>Be-Ro;ye&&(ke=Ro,J=ce+ne.width/2-2.5*_o),re&&(ke=Be-Ro-Ne,J=ne.left-A.left+ne.width/2-ke-_o),i(6,y=ke),i(7,E=G),i(5,S=J)},$=()=>{try{if(!n||!b)return;C(),i(0,a=!0)}catch(A){x({message:String(A)})}},R=()=>{i(0,a=!1)},se=()=>{k&&(v||(v=window.setTimeout($,ie.controls.hideTimeoutTooltips)),a&&$())},j=()=>{R(),window.clearTimeout(v),v=void 0};sn(C),Co(()=>window.clearTimeout(v));function N(A){we[A?"unshift":"push"](()=>{b=A,i(3,b)})}function Q(A){we[A?"unshift":"push"](()=>{k=A,i(4,k)})}return t.$$set=A=>{"content"in A&&i(1,r=A.content),"active"in A&&i(0,a=A.active),"translateX"in A&&i(14,c=A.translateX),"translateY"in A&&i(15,f=A.translateY),"isFullWidthWrapper"in A&&i(2,m=A.isFullWidthWrapper),"placement"in A&&i(16,h=A.placement),"$$scope"in A&&i(20,l=A.$$scope)},[a,r,m,b,k,S,y,E,_,w,F,oe,se,j,c,f,h,s,N,Q,l]}class K1 extends ve{constructor(e){super(),_e(this,e,zd,Od,be,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16},Rd)}}function Hd(t){Ke(t,"v-p9r045",".btn-container.v-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.v-p9r045{width:100%;min-width:0}")}function Fd(t){let e;const i=t[18].default,n=Mn(i,t,t[23],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),e=!0},p(o,s){n&&n.p&&(!e||s&8388608)&&Nn(n,i,o,o[23],e?Bn(i,o[23],s,null):Rn(o[23]),null)},i(o){e||(d(n,o),e=!0)},o(o){g(n,o),e=!1},d(o){n&&n.d(o)}}}function Ud(t){let e,i;return e=new K1({props:{content:t[11],translateX:t[9],translateY:t[10],isFullWidthWrapper:t[4],active:t[6],placement:t[7],$$slots:{default:[qd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&2048&&(s.content=n[11]),o&512&&(s.translateX=n[9]),o&1024&&(s.translateY=n[10]),o&16&&(s.isFullWidthWrapper=n[4]),o&64&&(s.active=n[6]),o&128&&(s.placement=n[7]),o&8388608&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function qd(t){let e;const i=t[18].default,n=Mn(i,t,t[23],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),e=!0},p(o,s){n&&n.p&&(!e||s&8388608)&&Nn(n,i,o,o[23],e?Bn(i,o[23],s,null):Rn(o[23]),null)},i(o){e||(d(n,o),e=!0)},o(o){g(n,o),e=!1},d(o){n&&n.d(o)}}}function Zd(t){let e,i,n,o,s,l,r,a,c;const f=[Ud,Fd],m=[];function h(_,b){return _[3]&&_[5]&&!_[12]?0:1}return i=h(t),n=m[i]=f[i](t),{c(){e=I("div"),n.c(),u(e,"class",o="btn-container "+t[2]+" v-p9r045"),u(e,"aria-hidden",s=t[8]||null),ao(()=>t[22].call(e))},m(_,b){T(_,e,b),m[i].m(e,null),t[21](e),l=hl(e,t[22].bind(e)),r=!0,a||(c=[he(e,"pointerdown",ot(Wt(t[19]))),he(e,"click",ot(Wt(t[20])))],a=!0)},p(_,[b]){let k=i;i=h(_),i===k?m[i].p(_,b):(fe(),g(m[k],1,1,()=>{m[k]=null}),de(),n=m[i],n?n.p(_,b):(n=m[i]=f[i](_),n.c()),d(n,1),n.m(e,null)),(!r||b&4&&o!==(o="btn-container "+_[2]+" v-p9r045"))&&u(e,"class",o),(!r||b&256&&s!==(s=_[8]||null))&&u(e,"aria-hidden",s)},i(_){r||(d(n),r=!0)},o(_){g(n),r=!1},d(_){_&&P(e),m[i].d(),t[21](null),l(),a=!1,nt(c)}}}function Wd(t,e,i){let n,o,{$$slots:s={},$$scope:l}=e,{className:r=""}=e,{disabled:a=!1}=e,{hasTooltip:c=!0}=e,{ref:f=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:_=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:k="top"}=e,{disabledTooltipContent:v=K("tooltip_button_disabled")}=e,{isAriaHidden:S=!1}=e,{initialTranslateXPx:w=0}=e,{initialTranslateYPx:y=-18}=e;const E=ht(),ie=E.ui.isMobile;O(t,ie,R=>i(12,o=R));const V=E.state.graphIsOpened$;O(t,V,R=>i(17,n=R));let F;function oe(R){Qn.call(this,t,R)}function x(R){Qn.call(this,t,R)}function C(R){we[R?"unshift":"push"](()=>{f=R,i(0,f)})}function $(){m=this.clientWidth,i(1,m)}return t.$$set=R=>{"className"in R&&i(2,r=R.className),"disabled"in R&&i(15,a=R.disabled),"hasTooltip"in R&&i(3,c=R.hasTooltip),"ref"in R&&i(0,f=R.ref),"width"in R&&i(1,m=R.width),"isFullWidthTooltip"in R&&i(4,h=R.isFullWidthTooltip),"tooltipContent"in R&&i(5,_=R.tooltipContent),"tooltipActive"in R&&i(6,b=R.tooltipActive),"tooltipPlacement"in R&&i(7,k=R.tooltipPlacement),"disabledTooltipContent"in R&&i(16,v=R.disabledTooltipContent),"isAriaHidden"in R&&i(8,S=R.isAriaHidden),"initialTranslateXPx"in R&&i(9,w=R.initialTranslateXPx),"initialTranslateYPx"in R&&i(10,y=R.initialTranslateYPx),"$$scope"in R&&i(23,l=R.$$scope)},t.$$.update=()=>{t.$$.dirty&229408&&(a?i(11,F=n?K("tooltip_disabled_when_graph_on"):v):i(11,F=_))},[f,m,r,c,h,_,b,k,S,w,y,F,o,ie,V,a,v,n,s,oe,x,C,$,l]}class At extends ve{constructor(e){super(),_e(this,e,Wd,Zd,be,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:16,isAriaHidden:8,initialTranslateXPx:9,initialTranslateYPx:10},Hd)}}function Kd(t){let e,i,n,o,s;return{c(){e=B("svg"),i=B("rect"),o=B("path"),u(i,"width","20"),u(i,"height","20"),u(i,"rx","10"),u(i,"fill","white"),u(i,"fill-opacity",n=t[0]?1:.24),u(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"),u(o,"fill",s=t[0]?"var(--interactive-episode-complete)":"white"),u(e,"width","20"),u(e,"height","20"),u(e,"viewBox","0 0 20 20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(l,r){T(l,e,r),p(e,i),p(e,o)},p(l,[r]){r&1&&n!==(n=l[0]?1:.24)&&u(i,"fill-opacity",n),r&1&&s!==(s=l[0]?"var(--interactive-episode-complete)":"white")&&u(o,"fill",s)},i:W,o:W,d(l){l&&P(e)}}}function jd(t,e,i){let{completed:n}=e;return t.$$set=o=>{"completed"in o&&i(0,n=o.completed)},[n]}class j1 extends ve{constructor(e){super(),_e(this,e,jd,Kd,be,{completed:0})}}function Gd(t){Ke(t,"v-bklhpe",".interactive-episode-icon.v-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.v-bklhpe{pointer-events:none;opacity:0.4}")}function Yd(t){let e,i,n,o,s;return i=new j1({props:{completed:!!t[0].completed}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","interactive-episode-icon v-bklhpe"),u(e,"style",n=`left: ${t[0].from+t[0].width/2}%`),ao(()=>t[3].call(e)),M(e,"disabled",t[1])},m(l,r){T(l,e,r),z(i,e,null),o=hl(e,t[3].bind(e)),s=!0},p(l,r){const a={};r&1&&(a.completed=!!l[0].completed),i.$set(a),(!s||r&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&u(e,"style",n),(!s||r&2)&&M(e,"disabled",l[1])},i(l){s||(d(i.$$.fragment,l),s=!0)},o(l){g(i.$$.fragment,l),s=!1},d(l){l&&P(e),H(i),o()}}}function Qd(t){let e,i;return e=new At({props:{tooltipContent:K(t[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:t[1],width:t[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[Yd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.tooltipContent=K(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(s.disabled=n[1]),o&4&&(s.width=n[2]||0),o&23&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Xd(t,e,i){let{videoEpisode:n}=e,{disabled:o}=e,s;function l(){s=this.clientWidth,i(2,s)}return t.$$set=r=>{"videoEpisode"in r&&i(0,n=r.videoEpisode),"disabled"in r&&i(1,o=r.disabled)},[n,o,s,l]}class Jd extends ve{constructor(e){super(),_e(this,e,Xd,Qd,be,{videoEpisode:0,disabled:1},Gd)}}function xd(t){Ke(t,"v-1h9p3m2",".video-episodes-wrap.v-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.v-1h9p3m2{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.v-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.v-1h9p3m2,.video-episode-loaded.v-1h9p3m2,.video-episode-filled.v-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.v-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.v-1h9p3m2{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.v-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function Qs(t,e,i){const n=t.slice();return n[2]=e[i],n}function Xs(t){let e,i,n,o,s,l,r,a,c;return{c(){e=I("div"),i=I("div"),n=I("div"),s=D(),l=I("div"),a=D(),u(n,"class","video-episode-loaded v-1h9p3m2"),u(n,"style",o=`transform: translateX(${t[2].loadedWidth/t[2].width*100}%)`),u(l,"class","video-episode-filled v-1h9p3m2"),u(l,"style",r=`transform: translateX(${t[2].filledWidth/t[2].width*100}%)`),M(l,"mobile",t[1]),u(i,"class","video-episode-inner v-1h9p3m2"),u(e,"class","video-episode v-1h9p3m2"),u(e,"style",c=`left: ${t[2].from}%; width: ${t[2].width}%`),M(e,"mobile",t[1])},m(f,m){T(f,e,m),p(e,i),p(i,n),p(i,s),p(i,l),p(e,a)},p(f,m){m&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&u(n,"style",o),m&1&&r!==(r=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(l,"style",r),m&2&&M(l,"mobile",f[1]),m&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),m&2&&M(e,"mobile",f[1])},d(f){f&&P(e)}}}function $d(t){let e,i=Rt(t[0]),n=[];for(let o=0;o<i.length;o+=1)n[o]=Xs(Qs(t,i,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","video-episodes-wrap v-1h9p3m2")},m(o,s){T(o,e,s);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[s]){if(s&3){i=Rt(o[0]);let l;for(l=0;l<i.length;l+=1){const r=Qs(o,i,l);n[l]?n[l].p(r,s):(n[l]=Xs(r),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},i:W,o:W,d(o){o&&P(e),kn(n,o)}}}function e2(t,e,i){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return t.$$set=s=>{"videoEpisodes"in s&&i(0,n=s.videoEpisodes),"isMobile"in s&&i(1,o=s.isMobile)},[n,o]}class t2 extends ve{constructor(e){super(),_e(this,e,e2,$d,be,{videoEpisodes:0,isMobile:1},xd)}}function i2(t){Ke(t,"v-1golz1y",".interactive-icons.v-1golz1y.v-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.v-1golz1y.v-1golz1y{top:-10px}.slider.v-1golz1y.v-1golz1y{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.v-1golz1y.v-1golz1y{cursor:default}.slider.v-1golz1y.v-1golz1y: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.v-1golz1y.v-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.v-1golz1y.v-1golz1y,.slider.square.v-1golz1y>.bars.v-1golz1y,.slider.square.v-1golz1y .loaded.v-1golz1y,.slider.square.v-1golz1y .filled.v-1golz1y{border-radius:unset}.filled.active-live.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%}.handle.v-1golz1y.v-1golz1y{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.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.v-1golz1y:hover .handle.v-1golz1y,.slider-dragging.v-1golz1y .handle.v-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-1golz1y .handle.v-1golz1y{transform:scale(1.3)}.slider-vertical.v-1golz1y.v-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.v-1golz1y.v-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function Js(t,e,i){const n=t.slice();return n[48]=e[i],n}function xs(t){let e,i,n=Rt(t[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=er(Js(t,n,l));const s=l=>g(o[l],1,1,()=>{o[l]=null});return{c(){e=I("div");for(let l=0;l<o.length;l+=1)o[l].c();u(e,"class","interactive-icons v-1golz1y"),M(e,"mobile",t[5]),M(e,"hidden",t[5]&&!t[20])},m(l,r){T(l,e,r);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);i=!0},p(l,r){if(r[0]&2097664){n=Rt(l[21]);let a;for(a=0;a<n.length;a+=1){const c=Js(l,n,a);o[a]?(o[a].p(c,r),d(o[a],1)):(o[a]=er(c),o[a].c(),d(o[a],1),o[a].m(e,null))}for(fe(),a=n.length;a<o.length;a+=1)s(a);de()}(!i||r[0]&32)&&M(e,"mobile",l[5]),(!i||r[0]&1048608)&&M(e,"hidden",l[5]&&!l[20])},i(l){if(!i){for(let r=0;r<n.length;r+=1)d(o[r]);i=!0}},o(l){o=o.filter(Boolean);for(let r=0;r<o.length;r+=1)g(o[r]);i=!1},d(l){l&&P(e),kn(o,l)}}}function $s(t){let e,i;return e=new Jd({props:{videoEpisode:t[48],disabled:t[9]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.videoEpisode=n[48]),o[0]&512&&(s.disabled=n[9]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function er(t){let e,i,n=t[48].interactive&&$s(t);return{c(){n&&n.c(),e=at()},m(o,s){n&&n.m(o,s),T(o,e,s),i=!0},p(o,s){o[48].interactive?n?(n.p(o,s),s[0]&2097152&&d(n,1)):(n=$s(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),g(n,1,1,()=>{n=null}),de())},i(o){i||(d(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d(o)}}}function n2(t){let e,i,n,o,s,l;return{c(){e=I("div"),i=I("div"),o=D(),s=I("div"),u(i,"class","loaded v-1golz1y"),u(i,"style",n=`transform: translateX(${t[11]*100}%);`),u(s,"class","filled v-1golz1y"),u(s,"style",l=`transform: translateX(${t[12]*100}%);`),M(s,"active-live",t[4]),M(s,"ads",t[6]),u(e,"class","bars v-1golz1y")},m(r,a){T(r,e,a),p(e,i),p(e,o),p(e,s)},p(r,a){a[0]&2048&&n!==(n=`transform: translateX(${r[11]*100}%);`)&&u(i,"style",n),a[0]&4096&&l!==(l=`transform: translateX(${r[12]*100}%);`)&&u(s,"style",l),a[0]&16&&M(s,"active-live",r[4]),a[0]&64&&M(s,"ads",r[6])},i:W,o:W,d(r){r&&P(e)}}}function o2(t){let e,i;return e=new t2({props:{videoEpisodes:t[21],isMobile:t[5]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.videoEpisodes=n[21]),o[0]&32&&(s.isMobile=n[5]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function l2(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b=t[8]&&xs(t);const k=[o2,n2],v=[];function S(w,y){return w[21].length?0:1}return n=S(t),o=v[n]=k[n](t),{c(){b&&b.c(),e=D(),i=I("div"),o.c(),s=D(),l=I("div"),r=I("div"),u(r,"class","handle v-1golz1y"),M(r,"active-live",t[4]),u(l,"class","handleWrap v-1golz1y"),u(l,"style",a=`transform: translateX(${t[13]*100}%);`),M(l,"hidden",t[10]),u(i,"class",c="slider "+t[0]+" v-1golz1y"),u(i,"aria-label",t[14]),u(i,"aria-valuemin",t[15]),u(i,"aria-valuemax",t[16]),u(i,"aria-valuenow",t[17]),u(i,"aria-valuetext",t[18]),u(i,"role","slider"),u(i,"tabindex","0"),u(i,"data-testid",f=t[1]??null),M(i,"disabled",t[9]),M(i,"slider-dragging",t[20]),M(i,"hidden",t[2]),M(i,"slider-vertical",t[3]),M(i,"no-handle",t[10]),M(i,"square",t[7])},m(w,y){b&&b.m(w,y),T(w,e,y),T(w,i,y),v[n].m(i,null),p(i,s),p(i,l),p(l,r),t[42](i),m=!0,h||(_=[he(i,"pointerdown",Wt(t[22])),he(i,"pointermove",Wt(t[23])),he(i,"pointerup",Wt(t[24])),he(i,"pointerenter",Wt(t[25])),he(i,"pointerleave",Wt(t[26])),he(i,"click",ot(te.noop)),he(i,"wheel",t[27])],h=!0)},p(w,y){w[8]?b?(b.p(w,y),y[0]&256&&d(b,1)):(b=xs(w),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(fe(),g(b,1,1,()=>{b=null}),de());let E=n;n=S(w),n===E?v[n].p(w,y):(fe(),g(v[E],1,1,()=>{v[E]=null}),de(),o=v[n],o?o.p(w,y):(o=v[n]=k[n](w),o.c()),d(o,1),o.m(i,s)),(!m||y[0]&16)&&M(r,"active-live",w[4]),(!m||y[0]&8192&&a!==(a=`transform: translateX(${w[13]*100}%);`))&&u(l,"style",a),(!m||y[0]&1024)&&M(l,"hidden",w[10]),(!m||y[0]&1&&c!==(c="slider "+w[0]+" v-1golz1y"))&&u(i,"class",c),(!m||y[0]&16384)&&u(i,"aria-label",w[14]),(!m||y[0]&32768)&&u(i,"aria-valuemin",w[15]),(!m||y[0]&65536)&&u(i,"aria-valuemax",w[16]),(!m||y[0]&131072)&&u(i,"aria-valuenow",w[17]),(!m||y[0]&262144)&&u(i,"aria-valuetext",w[18]),(!m||y[0]&2&&f!==(f=w[1]??null))&&u(i,"data-testid",f),(!m||y[0]&513)&&M(i,"disabled",w[9]),(!m||y[0]&1048577)&&M(i,"slider-dragging",w[20]),(!m||y[0]&5)&&M(i,"hidden",w[2]),(!m||y[0]&9)&&M(i,"slider-vertical",w[3]),(!m||y[0]&1025)&&M(i,"no-handle",w[10]),(!m||y[0]&129)&&M(i,"square",w[7])},i(w){m||(d(b),d(o),m=!0)},o(w){g(b),g(o),m=!1},d(w){w&&(P(e),P(i)),b&&b.d(w),v[n].d(),t[42](null),h=!1,nt(_)}}}function s2(t,e,i){let n,o,{className:s=""}=e,{testId:l=void 0}=e,{isHidden:r=!1}=e,{isVertical:a=!1}=e,{isActiveLive:c=!1}=e,{isMobile:f=!1}=e,{isAds:m=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:_=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:k=!1}=e,{disabled:v=!1}=e,{hideHandel:S=!1}=e,w,y,{onPointerDown:E=te.noop}=e,{onHandleMove:ie=te.noop}=e,{onPointerUp:V=te.noop}=e,{onPointerEnter:F=te.noop}=e,{onPointerMove:oe=te.noop}=e,{onPointerLeave:x=te.noop}=e,{onWheelUp:C=te.noop}=e,{onWheelDown:$=te.noop}=e,{onWheelLeft:R=te.noop}=e,{onWheelRight:se=te.noop}=e,{loadedProgress:j=0}=e,{filledProgress:N=0}=e,{handleProgress:Q=0}=e,{ariaLabel:A=""}=e,{ariaValueMin:ne=void 0}=e,{ariaValueMax:Ie=void 0}=e,{ariaValueNow:Ne=void 0}=e,{ariaValueText:Be=""}=e;const ze=an();let ce=!1,ke;function G(le){if(ce)return;i(20,ce=!0),y=w.getBoundingClientRect();const qe=Ee(le.clientX,le.clientY);E(qe),w.setPointerCapture(le.pointerId)}function J(le){const qe=Ee(le.clientX,le.clientY),pe=ue(le.clientX);oe(qe,pe,y.width),ce&&ie(qe)}function ye(le){if(!ce)return;i(20,ce=!1);const qe=Ee(le.clientX,le.clientY);V(qe)}function re(le){y=w.getBoundingClientRect();const qe=Ee(le.clientX,le.clientY),pe=ue(le.clientX);F(qe,pe,y.width)}function We(){x()}function Ve(le){b&&(le.preventDefault(),le.deltaY<0?C():le.deltaY>0?$():le.deltaX>0?se():R())}function Ee(le,qe){return a?Math.max(0,Math.min(1,(y.height-(qe-y.top))/y.height)):Math.min(Math.max(le-y.x,0),y.width)/y.width}function ue(le){return Math.min(Math.max(le-y.x,0),y.width)}function Ce(le,qe){const pe=ze.features.episodesClustering&&!k?ze.episodeMinWidthPc:0,Pe=[];let Te=0,je=0,tt=0;for(let it=1;it<_.length;it++)je=_[it].time/ke*100,je-Te>pe&&(Pe.push({from:Te,width:Math.max(0,je-Te),loadedWidth:Math.max(0,Math.min(je,le)-Te),filledWidth:Math.max(0,Math.min(je,qe)-Te),interactive:_[it-1].interactive,completed:_[it-1].completed}),Te=_[it].time/ke*100,tt++);const Xe={from:Te,width:Math.max(0,100-Te),loadedWidth:Math.max(0,Math.min(le,100)-Te),filledWidth:Math.max(0,Math.min(qe,100)-Te),interactive:_[tt].interactive,completed:_[tt].completed};100-Te<pe?(tt-=1,Pe[tt].width+=100-Te,Pe[tt].loadedWidth+=Math.max(0,Math.min(le,100)-Te),Pe[tt].filledWidth+=Math.max(0,Math.min(qe,100)-Te)):Pe[tt]=Xe;const Qe=_[0].time;if(Qe!==0){const it=Qe/ke*100;Pe.unshift({from:0,width:it,loadedWidth:Math.min(it,le),filledWidth:Math.min(it,qe)})}return Pe}function ge(le){we[le?"unshift":"push"](()=>{w=le,i(19,w)})}return t.$$set=le=>{"className"in le&&i(0,s=le.className),"testId"in le&&i(1,l=le.testId),"isHidden"in le&&i(2,r=le.isHidden),"isVertical"in le&&i(3,a=le.isVertical),"isActiveLive"in le&&i(4,c=le.isActiveLive),"isMobile"in le&&i(5,f=le.isMobile),"isAds"in le&&i(6,m=le.isAds),"squareBorders"in le&&i(7,h=le.squareBorders),"videoEpisodes"in le&&i(28,_=le.videoEpisodes),"withWheelHandler"in le&&i(29,b=le.withWheelHandler),"isInteractive"in le&&i(8,k=le.isInteractive),"disabled"in le&&i(9,v=le.disabled),"hideHandel"in le&&i(10,S=le.hideHandel),"onPointerDown"in le&&i(30,E=le.onPointerDown),"onHandleMove"in le&&i(31,ie=le.onHandleMove),"onPointerUp"in le&&i(32,V=le.onPointerUp),"onPointerEnter"in le&&i(33,F=le.onPointerEnter),"onPointerMove"in le&&i(34,oe=le.onPointerMove),"onPointerLeave"in le&&i(35,x=le.onPointerLeave),"onWheelUp"in le&&i(36,C=le.onWheelUp),"onWheelDown"in le&&i(37,$=le.onWheelDown),"onWheelLeft"in le&&i(38,R=le.onWheelLeft),"onWheelRight"in le&&i(39,se=le.onWheelRight),"loadedProgress"in le&&i(11,j=le.loadedProgress),"filledProgress"in le&&i(12,N=le.filledProgress),"handleProgress"in le&&i(13,Q=le.handleProgress),"ariaLabel"in le&&i(14,A=le.ariaLabel),"ariaValueMin"in le&&i(15,ne=le.ariaValueMin),"ariaValueMax"in le&&i(16,Ie=le.ariaValueMax),"ariaValueNow"in le&&i(17,Ne=le.ariaValueNow),"ariaValueText"in le&&i(18,Be=le.ariaValueText)},t.$$.update=()=>{t.$$.dirty[0]&65536&&i(40,ke=Ie??0),t.$$.dirty[0]&268435456|t.$$.dirty[1]&512&&i(41,n=_[_.length-1]?.time<ke),t.$$.dirty[0]&268441600|t.$$.dirty[1]&1536&&i(21,o=_.length&&n&&ke?Ce(j*100,N*100):[])},[s,l,r,a,c,f,m,h,k,v,S,j,N,Q,A,ne,Ie,Ne,Be,w,ce,o,G,J,ye,re,We,Ve,_,b,E,ie,V,F,oe,x,C,$,R,se,ke,n,ge]}class Sl extends ve{constructor(e){super(),_e(this,e,s2,l2,be,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},i2,[-1,-1])}}const _n=(t,e)=>co[t]>=co[e],r2=(t,e)=>co[t]<co[e],G1=(t,e)=>co[t]<=co[e],a2=t=>t>lo.L?exports.GridTypes.XL:t>lo.M?exports.GridTypes.L:t>lo.S?exports.GridTypes.M:t>lo.XS?exports.GridTypes.S:exports.GridTypes.XS;function u2(t){Ke(t,"v-1l78lz9",".volumeBar-container.v-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.v-1l78lz9,.vertical.v-1l78lz9 .tooltip-wrapper,.vertical.v-1l78lz9 .btn{width:40px}.volumeBar.v-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-1l78lz9{padding:0 8px 0 0;width:0}")}function c2(t){let e,i;return e=new Go({props:{volume:t[3],muted:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.volume=n[3]),o[0]&2&&(s.muted=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function f2(t){let e,i;return e=new yi({props:{className:"btn-full-opacity",disabled:t[9],testId:t[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:t[7],click:t[0],ariaKeyShortCut:So[Ae.KeyM],$$slots:{default:[c2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&512&&(s.disabled=n[9]),o[0]&4&&(s.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(s.ariaLabel=n[7]),o[0]&1&&(s.click=n[0]),o[0]&10|o[1]&32&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function tr(t){let e,i,n;return i=new Sl({props:{className:t[2]?"volumeBar-slider-vertical":"",isHidden:t[2]&&!t[5],isVertical:t[2],withWheelHandler:!0,onWheelUp:t[15],onWheelDown:t[16],onPointerDown:t[14],onHandleMove:t[17],onPointerUp:t[18],onPointerEnter:t[2]?t[19]:te.noop,onPointerLeave:t[2]?t[20]:te.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(t[8]*100),ariaValueText:`${Math.round(t[8]*100)}%`,filledProgress:t[8],handleProgress:t[8],testId:t[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","volumeBar v-1l78lz9"),M(e,"volumeBar-vertical",t[2])},m(o,s){T(o,e,s),z(i,e,null),n=!0},p(o,s){const l={};s[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),s[0]&36&&(l.isHidden=o[2]&&!o[5]),s[0]&4&&(l.isVertical=o[2]),s[0]&4&&(l.onPointerEnter=o[2]?o[19]:te.noop),s[0]&4&&(l.onPointerLeave=o[2]?o[20]:te.noop),s[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),s[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),s[0]&256&&(l.filledProgress=o[8]),s[0]&256&&(l.handleProgress=o[8]),s[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),i.$set(l),(!n||s[0]&4)&&M(e,"volumeBar-vertical",o[2])},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function d2(t){let e,i,n,o,s,l;i=new K1({props:{content:t[6],translateY:-18,$$slots:{default:[f2]},$$scope:{ctx:t}}});let r=t[4]&&tr(t);return{c(){e=I("div"),U(i.$$.fragment),n=D(),r&&r.c(),u(e,"class","volumeBar-container v-1l78lz9"),M(e,"vertical",t[2])},m(a,c){T(a,e,c),z(i,e,null),p(e,n),r&&r.m(e,null),o=!0,s||(l=[he(e,"mouseenter",function(){vn(t[2]?t[21]:te.noop)&&(t[2]?t[21]:te.noop).apply(this,arguments)}),he(e,"mouseleave",function(){vn(t[2]?t[22]:te.noop)&&(t[2]?t[22]:te.noop).apply(this,arguments)}),he(e,"wheel",Wt(t[23]))],s=!0)},p(a,c){t=a;const f={};c[0]&64&&(f.content=t[6]),c[0]&655|c[1]&32&&(f.$$scope={dirty:c,ctx:t}),i.$set(f),t[4]?r?(r.p(t,c),c[0]&16&&d(r,1)):(r=tr(t),r.c(),d(r,1),r.m(e,null)):r&&(fe(),g(r,1,1,()=>{r=null}),de()),(!o||c[0]&4)&&M(e,"vertical",t[2])},i(a){o||(d(i.$$.fragment,a),d(r),o=!0)},o(a){g(i.$$.fragment,a),g(r),o=!1},d(a){a&&P(e),H(i),r&&r.d(),s=!1,nt(l)}}}function m2(t,e,i){let n,o,s,l,{click:r}=e;const a=ht(),c=an(),f=a.state.volume$;O(t,f,ce=>i(3,n=ce));const m=a.state.muted$;O(t,m,ce=>i(25,l=ce));const h=a.actions.internal.setVolume,_=a.ui.currentGridType$;O(t,_,ce=>i(24,s=ce));const b=a.callbacks?.onAudioDoesNotExistHint,k=a.callbacks?.onAudioDisabledHint,v=a.state.isAudioAvailable$;O(t,v,ce=>i(4,o=ce));const S=a.state.isAudioDisabled;let w=!1,y,E,ie,V,F,oe,x=1,C=!1,$=!1;function R(ce){x=n,h(ce)}function se(){D1(a,n,c.controls.volumeStepWheel)}function j(){O1(a,n,c.controls.volumeStepWheel)}function N(ce){h(ce)}function Q(ce){const ke=ce;h(ke,ke===0?x:ke)}function A(){C=!0}function ne(){C=!1,Be()}function Ie(){clearTimeout(y),i(5,w=!0)}function Ne(){Be()}function Be(){y=window.setTimeout(()=>{C||i(5,w=!1)},c.controls.volumeBarTimeout)}function ze(ce){ce.deltaY<0?se():ce.deltaY>0&&j()}return t.$$set=ce=>{"click"in ce&&i(0,r=ce.click)},t.$$.update=()=>{t.$$.dirty[0]&33554448&&i(1,V=!o||l),t.$$.dirty[0]&16777216&&i(2,F=G1(s,exports.GridTypes.S)),t.$$.dirty[0]&6&&(F?i(6,E=""):i(6,E=K(V?"tooltip_volume":"tooltip_volume_muted")),i(7,ie=K(V?"tooltip_volume":"tooltip_volume_muted"))),t.$$.dirty[0]&10&&i(8,oe=V?0:n),t.$$.dirty[0]&16&&i(9,$=S&&!k||!o&&!b)},[r,V,F,n,o,w,E,ie,oe,$,f,m,_,v,R,se,j,N,Q,A,ne,Ie,Ne,ze,s,l]}class p2 extends ve{constructor(e){super(),_e(this,e,m2,d2,be,{click:0},u2,[-1,-1])}}function h2(t){let e;return{c(){e=B("path"),u(e,"class","_enter"),u(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function g2(t){let e;return{c(){e=B("path"),u(e,"class","_exit"),u(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function b2(t){let e,i,n;function o(r,a){return r[0]?g2:h2}let s=o(t),l=s(t);return{c(){e=B("svg"),i=B("g"),l.c(),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"width","24"),u(e,"height","24"),u(e,"viewBox","0 0 24 24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[0]?"close-fullscreen-icon":"open-fullscreen-icon")},m(r,a){T(r,e,a),p(e,i),l.m(i,null)},p(r,[a]){s!==(s=o(r))&&(l.d(1),l=s(r),l&&(l.c(),l.m(i,null))),a&1&&n!==(n=r[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:W,o:W,d(r){r&&P(e),l.d()}}}function _2(t,e,i){let{isFullscreen:n=!1}=e;return t.$$set=o=>{"isFullscreen"in o&&i(0,n=o.isFullscreen)},[n]}class v2 extends ve{constructor(e){super(),_e(this,e,_2,b2,be,{isFullscreen:0})}}function k2(t){let e,i;return e=new v2({props:{isFullscreen:t[0]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&1&&(s.isFullscreen=n[0]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function w2(t){let e,i;return e=new yi({props:{testId:"btn-fullscreen",ariaLabel:t[2],click:t[1],ariaKeyShortCut:So[Ae.KeyF],$$slots:{default:[k2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,[o]){const s={};o&4&&(s.ariaLabel=n[2]),o&2&&(s.click=n[1]),o&9&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function y2(t,e,i){let{isFullscreen:n=!1}=e,{click:o=te.noop}=e,s;return t.$$set=l=>{"isFullscreen"in l&&i(0,n=l.isFullscreen),"click"in l&&i(1,o=l.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,s=K(n?"tooltip_fullscreen_on":"tooltip_fullscreen_off"))},[n,o,s]}class Y1 extends ve{constructor(e){super(),_e(this,e,y2,w2,be,{isFullscreen:0,click:1})}}function C2(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","play-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class Tl extends ve{constructor(e){super(),_e(this,e,null,C2,be,{})}}function P2(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","pause-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class Q1 extends ve{constructor(e){super(),_e(this,e,null,P2,be,{})}}function S2(t){Ke(t,"v-1ot3duq",".mobile.v-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.v-1ot3duq svg{transform:scale(2)}.icon-background-mobile.v-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 ir(t){let e;return{c(){e=I("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function T2(t){let e,i,n,o,s=t[1]&&ir();var l=t[8];function r(a){return{}}return l&&(n=Tn(l,r())),{c(){s&&s.c(),e=D(),i=I("div"),n&&U(n.$$.fragment),u(i,"class","v-1ot3duq"),M(i,"mobile",t[1])},m(a,c){s&&s.m(a,c),T(a,e,c),T(a,i,c),n&&z(n,i,null),o=!0},p(a,c){if(a[1]?s||(s=ir(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),c&256&&l!==(l=a[8])){if(n){fe();const f=n;g(f.$$.fragment,1,0,()=>{H(f,1)}),de()}l?(n=Tn(l,r()),U(n.$$.fragment),d(n.$$.fragment,1),z(n,i,null)):n=null}(!o||c&2)&&M(i,"mobile",a[1])},i(a){o||(n&&d(n.$$.fragment,a),o=!0)},o(a){n&&g(n.$$.fragment,a),o=!1},d(a){a&&(P(e),P(i)),s&&s.d(a),n&&H(n)}}}function I2(t){let e,i,n;function o(l){t[13](l)}let s={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-play",click:t[5]?t[6]:t[4],disabled:t[2],ariaLabel:t[7],ariaKeyShortCut:So[Ae.KeyK],$$slots:{default:[T2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&10&&(a.className=(l[1]?"btn-m--play":"")+" "+l[3]),r&112&&(a.click=l[5]?l[6]:l[4]),r&4&&(a.disabled=l[2]),r&128&&(a.ariaLabel=l[7]),r&33026&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function A2(t,e,i){let n,o;const{fakeIsPlaying$:s}=To();O(t,s,w=>i(12,o=w));let{ref:l=void 0}=e,{isMobile:r=!1}=e,{isPlaying:a=!1}=e,{disabled:c=!1}=e,{className:f=""}=e,{click:m=te.noop}=e;const{toggle:h}=s;let _,b,k,v;function S(w){l=w,i(0,l)}return t.$$set=w=>{"ref"in w&&i(0,l=w.ref),"isMobile"in w&&i(1,r=w.isMobile),"isPlaying"in w&&i(10,a=w.isPlaying),"disabled"in w&&i(2,c=w.disabled),"className"in w&&i(3,f=w.className),"click"in w&&i(4,m=w.click)},t.$$.update=()=>{t.$$.dirty&4096&&i(5,b=o!==null),t.$$.dirty&5152&&i(11,k=b?o:a),t.$$.dirty&2048&&i(7,v=K(k?"tooltip_pause":"tooltip_play")),t.$$.dirty&2048&&i(8,n=k?Q1:Tl)},i(6,_=h),[l,r,c,f,m,b,_,v,n,s,a,k,o,S]}class Il extends ve{constructor(e){super(),_e(this,e,A2,I2,be,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},S2)}}function E2(t){Ke(t,"v-mb3pjo",".prev.v-mb3pjo{transform:scaleX(-1)}.mobile.v-mb3pjo{transform:scale(1.3333)}.mobile.prev.v-mb3pjo{transform:scaleX(-1) scale(1.3333)}")}function L2(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),u(i,"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"),u(i,"fill","#fff"),u(e,"data-testid",n=t[0]?"prev-icon":"next-icon"),u(e,"width","26"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"class","v-mb3pjo"),M(e,"prev",t[0]),M(e,"mobile",t[1])},m(o,s){T(o,e,s),p(e,i)},p(o,[s]){s&1&&n!==(n=o[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),s&1&&M(e,"prev",o[0]),s&2&&M(e,"mobile",o[1])},i:W,o:W,d(o){o&&P(e)}}}function V2(t,e,i){let{isPrev:n=!1}=e,{isMobile:o=!1}=e;return t.$$set=s=>{"isPrev"in s&&i(0,n=s.isPrev),"isMobile"in s&&i(1,o=s.isMobile)},[n,o]}class M2 extends ve{constructor(e){super(),_e(this,e,V2,L2,be,{isPrev:0,isMobile:1},E2)}}function B2(t){let e,i;return e=new M2({props:{isMobile:t[1],isPrev:t[3]==="prev"}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isMobile=n[1]),o&8&&(s.isPrev=n[3]==="prev"),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function N2(t){let e,i,n;function o(l){t[6](l)}let s={testId:"btn-"+t[3],disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[B2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&8&&(a.testId="btn-"+l[3]),r&4&&(a.disabled=l[2]),r&32&&(a.ariaLabel=l[5]),r&16&&(a.click=l[4]),r&138&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function R2(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{type:l}=e,{click:r}=e,a;function c(f){n=f,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"isMobile"in f&&i(1,o=f.isMobile),"disabled"in f&&i(2,s=f.disabled),"type"in f&&i(3,l=f.type),"click"in f&&i(4,r=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,a=K(l==="prev"?"tooltip_previous":"tooltip_next"))},[n,o,s,l,r,a,c]}class Yo extends ve{constructor(e){super(),_e(this,e,R2,N2,be,{ref:0,isMobile:1,disabled:2,type:3,click:4})}}function D2(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.265zM6 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.197H6z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","vk-logo-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class O2 extends ve{constructor(e){super(),_e(this,e,null,D2,be,{})}}function z2(t){Ke(t,"v-1bbobod",".mobile.v-1bbobod{transform:scale(1.1) translateY(-1px)}")}function nr(t){let e,i,n,o,s,l,r;return{c(){e=B("path"),i=B("path"),n=B("path"),o=B("path"),s=B("path"),l=B("path"),r=B("path"),u(e,"d","M30.7286 15.0483H33.2239L36.8885 5H35.0776L32.1402 13.2809H31.8551L29.0175 5H27.1781L30.7286 15.0483Z"),u(e,"fill","white"),u(i,"d","M46.2591 15.0483L41.6392 9.84599L45.9026 5H43.7923L40.2276 9.09059H39.814V5H38.103V15.0483H39.814V10.7439H40.2418L44.0062 15.0483H46.2591Z"),u(i,"fill","white"),u(n,"d","M56.0753 9.88875C56.9594 9.54668 57.5155 8.76277 57.5155 7.73656C57.5155 6.14023 56.1894 5 54.2502 5H50.329V15.0483H54.5354C56.4888 15.0483 57.8149 13.9081 57.8149 12.2405C57.8149 11.0717 57.159 10.2023 56.0753 9.88875ZM52.04 6.49656H54.2502C55.1628 6.49656 55.7902 7.05242 55.7902 7.87909C55.7902 8.69151 55.1628 9.24737 54.2502 9.24737H52.04V6.49656ZM54.5354 13.5518H52.04V10.7439H54.5354C55.4337 10.7439 56.0611 11.314 56.0611 12.1407C56.0611 12.9816 55.4337 13.5518 54.5354 13.5518Z"),u(n,"fill","white"),u(o,"d","M59.3767 15.0483H61.701L64.4672 9.54668H64.6954V15.0483H66.2638V7.63679H63.9396L61.1734 13.1384H60.9452V7.63679H59.3767V15.0483Z"),u(o,"fill","white"),u(s,"d","M67.3373 17.2575H68.9771V15.0483H74.3099V17.2575H75.9497V13.5518H74.6664V7.63679H69.2337L68.863 11.4281C68.7347 12.7678 68.3354 13.5518 67.5227 13.5518H67.3373V17.2575ZM69.8326 13.5518C70.2319 13.1669 70.403 12.5113 70.517 11.3996L70.7452 9.13335H73.0266V13.5518H69.8326Z"),u(s,"fill","white"),u(l,"d","M84.222 11.257C84.222 9.11909 82.625 7.49426 80.372 7.49426C78.1191 7.49426 76.5221 9.10484 76.5221 11.3425C76.5221 13.5803 78.1191 15.1908 80.372 15.1908C81.912 15.1908 83.3664 14.4639 83.9225 13.0529L82.3826 12.7963C82.0261 13.3237 81.3416 13.6943 80.4718 13.6943C79.217 13.6943 78.39 12.9246 78.2332 11.7844H84.1934C84.2077 11.6276 84.222 11.4566 84.222 11.257ZM80.372 8.91955C81.3987 8.91955 82.1687 9.57519 82.4396 10.5016H78.333C78.6039 9.54668 79.3739 8.91955 80.372 8.91955Z"),u(l,"fill","white"),u(r,"d","M89.0359 15.1908C91.3602 15.1908 92.9999 13.5945 92.9999 11.3425C92.9999 9.09059 91.3602 7.49426 89.0359 7.49426C86.7117 7.49426 85.0719 9.09059 85.0719 11.3425C85.0719 13.5945 86.7117 15.1908 89.0359 15.1908ZM89.0359 13.6943C87.6956 13.6943 86.783 12.7393 86.783 11.3425C86.783 9.94576 87.6956 8.99082 89.0359 8.99082C90.3763 8.99082 91.2889 9.94576 91.2889 11.3425C91.2889 12.7393 90.3763 13.6943 89.0359 13.6943Z"),u(r,"fill","white")},m(a,c){T(a,e,c),T(a,i,c),T(a,n,c),T(a,o,c),T(a,s,c),T(a,l,c),T(a,r,c)},d(a){a&&(P(e),P(i),P(n),P(o),P(s),P(l),P(r))}}}function H2(t){let e,i,n,o=!t[0]&&nr();return{c(){e=B("svg"),i=B("path"),o&&o.c(),u(i,"d","M19.0283 1.47947C17.5482 1.47862e-05 15.3189 -2.59106e-06 10.8969 -1.8179e-06L10.1111 -1.68051e-06C5.68913 -9.0734e-07 3.47814 1.72463e-05 1.97977 1.47947C0.499685 2.95892 0.499757 5.18723 0.499758 9.60732L0.499758 10.3927C0.499758 14.8128 0.499687 17.0228 1.97978 18.5205C3.45987 20 5.68914 20 10.1111 20L10.8969 20C15.3189 20 17.5299 20 19.0283 18.5205C20.5084 17.0411 20.5084 14.8128 20.5084 10.3927L20.5084 9.60732C20.5084 5.16896 20.5084 2.95892 19.0283 1.47947ZM8.06464 14.8128C6.69419 15.3242 5.21408 14.4658 4.93999 13.0046C4.73899 12.0183 4.64761 10.9954 4.64761 9.93605C4.64761 8.91322 4.73899 7.90867 4.93999 6.94064C5.21408 5.47945 6.69419 4.62102 8.06464 5.13244C9.91018 5.80823 11.5913 6.84928 13.0166 8.18261C14.0581 9.15064 14.0581 10.8128 13.0166 11.7808C11.573 13.0959 9.89191 14.137 8.06464 14.8128ZM19.9602 10.3744C19.9602 14.6484 19.9601 16.7854 18.6262 18.1005C17.5116 19.2146 15.8305 19.3972 12.7973 19.4155C13.9302 19.2328 14.7342 18.9041 15.3554 18.2648C16.6893 16.9132 16.6893 14.7397 16.6893 10.3744L16.6893 9.57075C16.6893 5.20546 16.6893 3.032 15.3554 1.6804C14.7342 1.04113 13.9302 0.712308 12.7973 0.52966C15.8305 0.566189 17.5116 0.748873 18.6079 1.84476C19.9418 3.1781 19.9419 5.31505 19.9419 9.57075L19.9419 10.3744L19.9602 10.3744ZM11.6826 9.68036C11.8653 9.84474 11.8653 10.137 11.6826 10.3013C10.4401 11.4338 8.99653 12.3105 7.40681 12.895C7.16926 12.9863 6.91344 12.8402 6.85863 12.5845C6.69417 11.7443 6.60283 10.8676 6.60283 9.97262C6.60282 9.09591 6.69417 8.23744 6.85862 7.39726C6.91344 7.14155 7.16926 6.9954 7.40681 7.08672C8.97826 7.67119 10.4401 8.54794 11.6826 9.68036Z"),u(i,"fill","white"),u(e,"width",t[2]),u(e,"height","20"),u(e,"viewBox",n="0 0 "+(t[2]+1)+" 20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",t[3]),u(e,"class","v-1bbobod"),M(e,"mobile",t[1])},m(s,l){T(s,e,l),p(e,i),o&&o.m(e,null)},p(s,[l]){s[0]?o&&(o.d(1),o=null):o||(o=nr(),o.c(),o.m(e,null)),l&4&&u(e,"width",s[2]),l&4&&n!==(n="0 0 "+(s[2]+1)+" 20")&&u(e,"viewBox",n),l&8&&u(e,"data-testid",s[3]),l&2&&M(e,"mobile",s[1])},i:W,o:W,d(s){s&&P(e),o&&o.d()}}}function F2(t,e,i){let{short:n=!1}=e,{isMobile:o=!1}=e,s,l;return t.$$set=r=>{"short"in r&&i(0,n=r.short),"isMobile"in r&&i(1,o=r.isMobile)},t.$$.update=()=>{t.$$.dirty&1&&(i(2,s=n?20:93),i(3,l=n?"vk-video-logo-icon--short":"vk-video-logo-icon"))},[n,o,s,l]}class U2 extends ve{constructor(e){super(),_e(this,e,F2,H2,be,{short:0,isMobile:1},z2)}}function q2(t){let e,i;return e=new O2({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p:W,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Z2(t){let e,i;return e=new U2({props:{short:t[4],isMobile:!!t[7]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.short=n[4]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function W2(t){let e,i,n,o;const s=[Z2,q2],l=[];function r(a,c){return a[2]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=at()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function K2(t){let e,i,n;function o(l){t[13](l)}let s={className:"btn-full-opacity",disabled:!t[1],click:t[8],testId:t[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:t[3],$$slots:{default:[W2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.disabled=!l[1]),r&4&&(a.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),r&8&&(a.ariaLabel=l[3]),r&524308&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function j2(t,e,i){let n,o,s,{ref:l=void 0}=e,{logoClickable:r=!1}=e,{videoLogoUrl:a=void 0}=e,{click:c}=e;const f=an(),{logoLink:m,addTimeToLogoLink:h}=f,_=ht(),b=_.state.positionWithScrubbing$;O(t,b,V=>i(14,n=V));const k=_.ui.currentGridType$;O(t,k,V=>i(11,o=V));const v=_.ui.isMobile;O(t,v,V=>i(12,s=V));let S,w,y;const E=()=>{let V;if(w||!a)V=m;else{const F=Math.round(n);if(h&&F){const oe=new URL(a);oe.searchParams.append("t",te.timeCodeToString(F)),V=oe.toString()}else V=a}c(),window.open(V,"_blank")};function ie(V){l=V,i(0,l)}return t.$$set=V=>{"ref"in V&&i(0,l=V.ref),"logoClickable"in V&&i(1,r=V.logoClickable),"videoLogoUrl"in V&&i(9,a=V.videoLogoUrl),"click"in V&&i(10,c=V.click)},t.$$.update=()=>{t.$$.dirty&6148&&i(4,y=(s||G1(o,exports.GridTypes.L))&&w)},i(3,S=f.logoType===uo.VK_VIDEO?K("tooltip_vk_video_logo"):K("tooltip_vk_logo")),i(2,w=f.logoType===uo.VK_VIDEO),[l,r,w,S,y,b,k,v,E,a,c,o,s,ie]}class X1 extends ve{constructor(e){super(),_e(this,e,j2,K2,be,{ref:0,logoClickable:1,videoLogoUrl:9,click:10})}}function G2(t){Ke(t,"v-8z1bf5",".connecting.v-8z1bf5 .wave.v-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.v-8z1bf5 .wave1.v-8z1bf5{animation-name:v-8z1bf5-wave1}.connecting.v-8z1bf5 .wave2.v-8z1bf5{animation-name:v-8z1bf5-wave2}.connecting.v-8z1bf5 .wave3.v-8z1bf5{animation-name:v-8z1bf5-wave3}@keyframes v-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function Y2(t){let e,i,n,o,s,l,r,a;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("path"),l=B("path"),r=B("path"),a=B("path"),u(n,"class","wave wave1 v-8z1bf5"),u(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),u(n,"fill","#fff"),u(o,"class","wave wave2 v-8z1bf5"),u(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),u(o,"fill","#fff"),u(s,"class","wave wave3 v-8z1bf5"),u(s,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(s,"fill","#fff"),u(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),u(l,"fill","#fff"),u(r,"d","M0 0h24v24H0z"),u(a,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),u(a,"fill","#fff"),M(a,"hidden",!t[1]),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"width","24"),u(e,"height","24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chromecast-icon"),u(e,"class","v-8z1bf5"),M(e,"connecting",t[2])},m(c,f){T(c,e,f),p(e,i),p(i,n),p(i,o),p(i,s),p(i,l),p(i,r),p(i,a)},p(c,f){f&2&&M(a,"hidden",!c[1]),f&4&&M(e,"connecting",c[2])},d(c){c&&P(e)}}}function Q2(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie;return{c(){e=B("svg"),i=B("g"),n=B("mask"),o=B("path"),l=B("path"),r=B("path"),c=B("path"),f=B("defs"),m=B("clipPath"),h=B("path"),b=B("filter"),k=B("feFlood"),v=B("feColorMatrix"),S=B("feOffset"),w=B("feGaussianBlur"),y=B("feColorMatrix"),E=B("feBlend"),ie=B("feBlend"),u(o,"fill",s=t[1]?"#2688EB":"#fff"),u(o,"d","M1.1 3.1h22v18h-22z"),u(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(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"),u(n,"id","c"),u(n,"maskUnits","userSpaceOnUse"),u(n,"x","1.1"),u(n,"y","3.1"),u(n,"width","22"),u(n,"height","18"),u(n,"fill","#000"),u(r,"fill-rule","evenodd"),u(r,"clip-rule","evenodd"),u(r,"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"),u(r,"fill",a=t[1]?"#2688EB":"#fff"),u(c,"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"),u(c,"fill","#000"),u(c,"fill-opacity",".12"),u(c,"mask","url(#c)"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(h,"fill",_=t[1]?"#2688EB":"#fff"),u(h,"d","M0 0h24v24H0z"),u(m,"id","a"),u(k,"flood-opacity","0"),u(k,"result","BackgroundImageFix"),u(v,"in","SourceAlpha"),u(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(v,"result","hardAlpha"),u(w,"stdDeviation","2.5"),u(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(E,"in2","BackgroundImageFix"),u(E,"result","effect1_dropShadow_4085_178456"),u(ie,"in","SourceGraphic"),u(ie,"in2","effect1_dropShadow_4085_178456"),u(ie,"result","shape"),u(b,"id","b"),u(b,"x","-3.4"),u(b,"y","-1.4"),u(b,"width","30.8"),u(b,"height","26.802"),u(b,"filterUnits","userSpaceOnUse"),u(b,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chromecast-mobile-icon")},m(V,F){T(V,e,F),p(e,i),p(i,n),p(n,o),p(n,l),p(i,r),p(i,c),p(e,f),p(f,m),p(m,h),p(f,b),p(b,k),p(b,v),p(b,S),p(b,w),p(b,y),p(b,E),p(b,ie)},p(V,F){F&2&&s!==(s=V[1]?"#2688EB":"#fff")&&u(o,"fill",s),F&2&&a!==(a=V[1]?"#2688EB":"#fff")&&u(r,"fill",a),F&2&&_!==(_=V[1]?"#2688EB":"#fff")&&u(h,"fill",_)},d(V){V&&P(e)}}}function X2(t){let e;function i(s,l){return s[0]?Q2:Y2}let n=i(t),o=n(t);return{c(){o.c(),e=at()},m(s,l){o.m(s,l),T(s,e,l)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:W,o:W,d(s){s&&P(e),o.d(s)}}}function J2(t,e,i){let{isMobile:n=!1}=e,{state:o}=e,s,l;return t.$$set=r=>{"isMobile"in r&&i(0,n=r.isMobile),"state"in r&&i(3,o=r.state)},t.$$.update=()=>{t.$$.dirty&8&&(i(2,l=o===$e.ChromecastState.CONNECTING),i(1,s=o===$e.ChromecastState.CONNECTED))},[n,s,l,o]}class x2 extends ve{constructor(e){super(),_e(this,e,J2,X2,be,{isMobile:0,state:3},G2)}}function $2(t){let e,i;return e=new x2({props:{isMobile:t[1],state:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isMobile=n[1]),o&4&&(s.state=n[2]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function em(t){let e,i,n;function o(l){t[5](l)}let s={ariaLabel:t[4],click:t[3],testId:"btn-chromecast",$$slots:{default:[$2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&16&&(a.ariaLabel=l[4]),r&8&&(a.click=l[3]),r&70&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function tm(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:s}=e,{click:l=te.noop}=e,r;function a(c){n=c,i(0,n)}return t.$$set=c=>{"ref"in c&&i(0,n=c.ref),"isMobile"in c&&i(1,o=c.isMobile),"state"in c&&i(2,s=c.state),"click"in c&&i(3,l=c.click)},t.$$.update=()=>{t.$$.dirty&4&&i(4,r=s===$e.ChromecastState.CONNECTED?K("tooltip_chromecast_on"):K("tooltip_chromecast_off"))},[n,o,s,l,r,a]}class J1 extends ve{constructor(e){super(),_e(this,e,tm,em,be,{ref:0,isMobile:1,state:2,click:3})}}function im(t){let e,i;return e=new I1({props:{isActive:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isActive=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function nm(t){let e,i;return e=new yi({props:{className:t[0]?"":"btn--live btn-full-opacity",testId:t[1]?"btn-live":"btn-live-offset",disabled:t[1]&&t[3]===$e.PlaybackState.PLAYING,ariaLabel:t[2],click:t[4],$$slots:{default:[im]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(s.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(s.disabled=n[1]&&n[3]===$e.PlaybackState.PLAYING),o&4&&(s.ariaLabel=n[2]),o&16&&(s.click=n[4]),o&514&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function om(t,e,i){let n,{isMobile:o=!1}=e,{isActiveLive:s=!1}=e,{ariaLabel:l=""}=e;const r=ht(),a=r.state.playbackState$;O(t,a,h=>i(3,n=h));const c=r.actions.internal.switchToActiveLive,f=r.actions.internal.togglePlay;let m;return t.$$set=h=>{"isMobile"in h&&i(0,o=h.isMobile),"isActiveLive"in h&&i(1,s=h.isActiveLive),"ariaLabel"in h&&i(2,l=h.ariaLabel)},t.$$.update=()=>{t.$$.dirty&10&&i(4,m=()=>{if(!s){c();return}n===$e.PlaybackState.PAUSED&&f()})},[o,s,l,n,m,a]}class x1 extends ve{constructor(e){super(),_e(this,e,om,nm,be,{isMobile:0,isActiveLive:1,ariaLabel:2})}}function lm(t){Ke(t,"v-5ygsa2",'.tooltip-wrapper.v-5ygsa2{position:relative;display:block}.tooltip.v-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.v-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.v-5ygsa2{opacity:1;visibility:visible}')}function sm(t){let e,i,n,o;const s=t[9].default,l=Mn(s,t,t[8],null);return{c(){e=I("div"),i=I("div"),l&&l.c(),u(i,"class","tooltip v-5ygsa2"),M(i,"active",t[0]),M(i,"pointer",t[1]),u(e,"class","tooltip-wrapper v-5ygsa2"),u(e,"style",n=`transform: translate(${t[5]}px, ${t[2]}px);`)},m(r,a){T(r,e,a),p(e,i),l&&l.m(i,null),t[10](i),t[11](e),o=!0},p(r,[a]){l&&l.p&&(!o||a&256)&&Nn(l,s,r,r[8],o?Bn(s,r[8],a,null):Rn(r[8]),null),(!o||a&1)&&M(i,"active",r[0]),(!o||a&2)&&M(i,"pointer",r[1]),(!o||a&36&&n!==(n=`transform: translate(${r[5]}px, ${r[2]}px);`))&&u(e,"style",n)},i(r){o||(d(l,r),o=!0)},o(r){g(l,r),o=!1},d(r){r&&P(e),l&&l.d(r),t[10](null),t[11](null)}}}function rm(t,e,i){let n,{$$slots:o={},$$scope:s}=e,{active:l=!1}=e,{pointer:r=!1}=e,{translateXPx:a=0}=e,{translateYPx:c=0}=e,{containerWidth:f}=e,m,h;function _(v){if(!h)return 0;const{width:S}=h.getBoundingClientRect(),w=S/2;return v<w?w:v>f-w?f-w:v}function b(v){we[v?"unshift":"push"](()=>{h=v,i(4,h)})}function k(v){we[v?"unshift":"push"](()=>{m=v,i(3,m)})}return t.$$set=v=>{"active"in v&&i(0,l=v.active),"pointer"in v&&i(1,r=v.pointer),"translateXPx"in v&&i(6,a=v.translateXPx),"translateYPx"in v&&i(2,c=v.translateYPx),"containerWidth"in v&&i(7,f=v.containerWidth),"$$scope"in v&&i(8,s=v.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&i(5,n=_(a))},[l,r,c,m,h,n,a,f,s,o,b,k]}class am extends ve{constructor(e){super(),_e(this,e,rm,sm,be,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},lm)}}const $1=(t,e,i)=>i.filter(n=>n.time<t*e).pop();function um(t){Ke(t,"v-l51fc1",".timeline-preview.v-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.v-l51fc1{bottom:72px}.preview.v-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.v-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.v-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 or(t){let e;function i(s,l){return s[2]&&s[10].completed===!1?fm:cm}let n=i(t),o=n(t);return{c(){o.c(),e=at()},m(s,l){o.m(s,l),T(s,e,l)},p(s,l){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&P(e),o.d(s)}}}function cm(t){let e=(t[10].text||"")+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&et(i,e)},d(n){n&&P(i)}}}function fm(t){let e=K("tooltip_episode_unfinished")+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p:W,d(n){n&&P(i)}}}function dm(t){let e,i,n,o,s,l,r,a,c=t[10]&&or(t);return{c(){e=I("div"),i=I("div"),o=D(),s=I("div"),c&&c.c(),l=D(),r=I("div"),a=De(t[0]),u(i,"class","preview v-l51fc1"),u(i,"style",n=`width: ${t[3]}px; height: ${t[4]}px; background-image: url(${t[5]}); background-size: ${t[6]}px ${t[7]}px; background-position: ${t[8]}px ${t[9]}px; transform: translateY(${t[11]%180?-35:0}px) rotate(${t[11]}deg);`),u(s,"class","episode v-l51fc1"),u(r,"class","time v-l51fc1"),u(e,"class","timeline-preview v-l51fc1"),M(e,"mobile",t[1])},m(f,m){T(f,e,m),p(e,i),p(e,o),p(e,s),c&&c.m(s,null),p(e,l),p(e,r),p(r,a)},p(f,[m]){m&3064&&n!==(n=`width: ${f[3]}px; height: ${f[4]}px; background-image: url(${f[5]}); background-size: ${f[6]}px ${f[7]}px; background-position: ${f[8]}px ${f[9]}px; transform: translateY(${f[11]%180?-35:0}px) rotate(${f[11]}deg);`)&&u(i,"style",n),f[10]?c?c.p(f,m):(c=or(f),c.c(),c.m(s,null)):c&&(c.d(1),c=null),m&1&&et(a,f[0]),m&2&&M(e,"mobile",f[1])},i:W,o:W,d(f){f&&P(e),c&&c.d()}}}const no=150;function mm(t,e,i){let n,{time:o=""}=e,{isMobile:s=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:r}=e,{progress:a=0}=e,{duration:c=0}=e,{isInteractive:f=!1}=e;const h=ht().ui.rotateAlpha;O(t,h,F=>i(11,n=F));let _,b,k,v,S,w,y,E;function ie(){let F=r.frameWidth,oe=r.frameHeight;return F>no?(oe=oe/F*no,F=no):oe>no&&(F=F/oe*no,oe=no),{width:F,height:oe}}function V(F){let oe;r.isUV?oe=Math.floor(c*F/r.frequency):oe=Math.min(r.countTotal,Math.max(0,Math.floor(r.countTotal*F)));const x=Math.floor(oe/r.countPerImage),C=Math.floor(oe%r.countPerImage/r.countPerRow),$=oe%r.countPerRow;let R=Math.floor(r.countPerImage/r.countPerRow);!r.isUV&&x===Math.floor(r.countTotal/r.countPerImage)&&(R=Math.floor(r.countTotal%r.countPerImage/r.countPerRow),r.countTotal%r.countPerImage%r.countPerRow>0&&R++);let se=r.countPerRow;!r.isUV&&x===Math.floor(r.countTotal/r.countPerImage)&&r.countTotal%r.countPerImage>0&&(se=Math.min(r.countPerRow,r.countTotal%r.countPerImage));const j=_*se,N=b*R,Q=-$*_,A=-C*b;return{imgSrc:r.links[x],imgWidth:j,imgHeight:N,imgOffsetX:Q,imgOffsetY:A}}return t.$$set=F=>{"time"in F&&i(0,o=F.time),"isMobile"in F&&i(1,s=F.isMobile),"videoEpisodes"in F&&i(13,l=F.videoEpisodes),"previewThumbsData"in F&&i(14,r=F.previewThumbsData),"progress"in F&&i(15,a=F.progress),"duration"in F&&i(16,c=F.duration),"isInteractive"in F&&i(2,f=F.isInteractive)},t.$$.update=()=>{t.$$.dirty&32768&&i(5,{imgSrc:k,imgWidth:v,imgHeight:S,imgOffsetX:w,imgOffsetY:y}=V(a),k,(i(6,v),i(15,a)),(i(7,S),i(15,a)),(i(8,w),i(15,a)),(i(9,y),i(15,a))),t.$$.dirty&106496&&i(10,E=$1(a,c,l))},i(3,{width:_,height:b}=ie(),_,i(4,b)),[o,s,f,_,b,k,v,S,w,y,E,n,h,l,r,a,c]}class pm extends ve{constructor(e){super(),_e(this,e,mm,dm,be,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},um)}}function hm(t){Ke(t,"v-5lzly8",".time.v-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function gm(t){let e,i;return{c(){e=I("span"),i=De(t[7]),u(e,"class","time v-5lzly8")},m(n,o){T(n,e,o),p(e,i)},p(n,o){o[0]&128&&et(i,n[7])},i:W,o:W,d(n){n&&P(e)}}}function bm(t){let e,i;return e=new pm({props:{time:t[7],isMobile:t[10],videoEpisodes:t[3],previewThumbsData:t[21],progress:t[8],duration:t[1],isInteractive:t[23]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&128&&(s.time=n[7]),o[0]&1024&&(s.isMobile=n[10]),o[0]&8&&(s.videoEpisodes=n[3]),o[0]&256&&(s.progress=n[8]),o[0]&2&&(s.duration=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function _m(t){let e,i,n,o;const s=[bm,gm],l=[];function r(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=at()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function vm(t){let e,i,n,o;const s=[t[9]];let l={$$slots:{default:[_m]},$$scope:{ctx:t}};for(let r=0;r<s.length;r+=1)l=Ya(l,s[r]);return e=new am({props:l}),n=new Sl({props:{isActiveLive:t[11],isMobile:t[10],ariaLabel:K("aria_timeline"),ariaValueMin:0,ariaValueMax:t[1],ariaValueNow:Math.round(t[6]*100),ariaValueText:K("aria_timeline_value",{position:t[5],duration:t[4]}),loadedProgress:t[12],filledProgress:t[6],handleProgress:t[6],videoEpisodes:t[3],onPointerDown:t[27],onHandleMove:t[28],onPointerMove:t[31],onPointerUp:t[29],onPointerEnter:t[30],onPointerLeave:t[32],isInteractive:t[23],disabled:t[13].has(st.TIMELINE),hideHandel:t[2]}}),{c(){U(e.$$.fragment),i=D(),U(n.$$.fragment)},m(r,a){z(e,r,a),T(r,i,a),z(n,r,a),o=!0},p(r,a){const c=a[0]&512?gc(s,[bc(r[9])]):{};a[0]&1419|a[1]&65536&&(c.$$scope={dirty:a,ctx:r}),e.$set(c);const f={};a[0]&2048&&(f.isActiveLive=r[11]),a[0]&1024&&(f.isMobile=r[10]),a[0]&2&&(f.ariaValueMax=r[1]),a[0]&64&&(f.ariaValueNow=Math.round(r[6]*100)),a[0]&48&&(f.ariaValueText=K("aria_timeline_value",{position:r[5],duration:r[4]})),a[0]&4096&&(f.loadedProgress=r[12]),a[0]&64&&(f.filledProgress=r[6]),a[0]&64&&(f.handleProgress=r[6]),a[0]&8&&(f.videoEpisodes=r[3]),a[0]&8192&&(f.disabled=r[13].has(st.TIMELINE)),a[0]&4&&(f.hideHandel=r[2]),n.$set(f)},i(r){o||(d(e.$$.fragment,r),d(n.$$.fragment,r),o=!0)},o(r){g(e.$$.fragment,r),g(n.$$.fragment,r),o=!1},d(r){r&&P(i),H(e,r),H(n,r)}}}function km(t,e,i){let n,o,s,l,r,a,c,f,m,h,_,{showTimeline:b=!1}=e;const k=ht(),v=an(),S=k.state.bufferedProgress$;O(t,S,ge=>i(12,h=ge));const w=k.state.positionWithScrubbing$;O(t,w,ge=>i(39,a=ge));const y=k.state.duration$;O(t,y,ge=>i(1,s=ge));const E=k.state.isLive$;O(t,E,ge=>i(0,o=ge));const ie=k.state.isActiveLive$;O(t,ie,ge=>i(11,m=ge));const V=k.ui.isMobile;O(t,V,ge=>i(10,f=ge));const F=v.features.episodes?k.actions.internal.getVideoEpisodes():void 0,oe=k.actions.internal.getPreviewThumbsData(),x=k.state.interactiveEpisodes$;O(t,x,ge=>i(40,c=ge));const C=k.state.isInteractive,$=k.state.isInteractiveTime$;O(t,$,ge=>i(2,l=ge));const R=k.state.isInteractiveExpectation$;O(t,R,ge=>i(38,r=ge));const se=k.actions.internal.correctSeekTimeToInteractive,j=k.ui.controls.disabledControls$;O(t,j,ge=>i(13,_=ge));let N,Q,A,ne,Ie=!1,Ne="",Be=0,ze=0,ce=0,ke;function G(ge){return!se||!C?ge:se(ge*s)/s}function J(ge){k.actions.internal.startScrubbing(G(ge))}function ye(ge){l||k.actions.internal.progressScrubbing(G(ge))}function re(ge){k.actions.internal.completeScrubbing(G(ge)),i(34,Ie=!1)}function We(ge,le,qe){ue(ge,le,qe),i(34,Ie=!0)}function Ve(ge,le,qe){ue(ge,le,qe),i(34,Ie=!0)}function Ee(){i(34,Ie=!1)}function ue(ge,le,qe){i(8,ce=ge),i(35,Be=le),qe&&i(36,ze=qe),i(7,Ne=Ce(ge))}function Ce(ge){const le=Vn((o?1-ge:ge)*s);return o?`-${le}`:le}return t.$$set=ge=>{"showTimeline"in ge&&i(33,b=ge.showTimeline)},t.$$.update=()=>{t.$$.dirty[1]&512&&i(3,N=C?c:F),t.$$.dirty[0]&2&&i(4,Q=Vn(s)),t.$$.dirty[1]&256&&i(5,A=Vn(a)),t.$$.dirty[0]&2|t.$$.dirty[1]&256&&i(6,ne=a/s),t.$$.dirty[0]&4|t.$$.dirty[1]&128&&i(37,ke=r||l),t.$$.dirty[0]&1|t.$$.dirty[1]&124&&i(9,n={containerWidth:ze,translateXPx:Be,translateYPx:C&&oe?-36:-16,active:Ie&&b&&!ke,pointer:!v.features.timelinePreview||!oe||o})},[o,s,l,N,Q,A,ne,Ne,ce,n,f,m,h,_,v,S,w,y,E,ie,V,oe,x,C,$,R,j,J,ye,re,We,Ve,Ee,b,Ie,Be,ze,ke,r,a,c]}let wm=class extends ve{constructor(e){super(),_e(this,e,km,vm,be,{showTimeline:33},hm,[-1,-1])}};function ym(t){let e,i;return e=new Sl({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:K("aria_timeline_value",{position:t[2],duration:t[1]}),filledProgress:t[3],isAds:!0,hideHandel:!0,squareBorders:t[4]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.ariaValueMax=n[0]),o&8&&(s.ariaValueNow=Math.round(n[3]*100)),o&6&&(s.ariaValueText=K("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(s.filledProgress=n[3]),o&16&&(s.squareBorders=n[4]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Cm(t,e,i){let n,{position:o=0}=e,{duration:s=0}=e;const r=ht().ui.isMobile;O(t,r,m=>i(4,n=m));let a,c,f;return t.$$set=m=>{"position"in m&&i(6,o=m.position),"duration"in m&&i(0,s=m.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,a=Vn(s)),t.$$.dirty&64&&i(2,c=Vn(o)),t.$$.dirty&65&&i(3,f=o/s)},[s,a,c,f,n,r,o]}class eu extends ve{constructor(e){super(),_e(this,e,Cm,ym,be,{position:6,duration:0})}}function Pm(t){Ke(t,"v-1gqonyf",".timeline.v-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.v-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.v-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.v-1gqonyf{height:8px}")}function Sm(t){let e;return{c(){e=I("div"),u(e,"class","timeline-stub v-1gqonyf"),M(e,"mobile",t[2])},m(i,n){T(i,e,n)},p(i,n){n&4&&M(e,"mobile",i[2])},i:W,o:W,d(i){i&&P(e)}}}function Tm(t){let e,i,n,o;const s=[Am,Im],l=[];function r(a,c){return a[0]?0:1}return i=r(t),n=l[i]=s[i](t),{c(){e=I("div"),n.c(),u(e,"class","timeline v-1gqonyf"),M(e,"mobile",t[2])},m(a,c){T(a,e,c),l[i].m(e,null),o=!0},p(a,c){let f=i;i=r(a),i===f?l[i].p(a,c):(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),n=l[i],n?n.p(a,c):(n=l[i]=s[i](a),n.c()),d(n,1),n.m(e,null)),(!o||c&4)&&M(e,"mobile",a[2])},i(a){o||(d(n),o=!0)},o(a){g(n),o=!1},d(a){a&&P(e),l[i].d()}}}function Im(t){let e,i;return e=new wm({props:{showTimeline:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.showTimeline=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Am(t){let e,i;return e=new eu({props:{position:t[3],duration:t[4]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&8&&(s.position=n[3]),o&16&&(s.duration=n[4]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Em(t){let e,i,n,o;const s=[Tm,Sm],l=[];function r(a,c){return a[1]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=at()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function Lm(t,e,i){let n,o,s,l,{isAds:r=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e;const m=ht(),h=m.state.isLive$;O(t,h,S=>i(12,n=S));const _=m.ads.duration;O(t,_,S=>i(4,l=S));const b=m.ads.position;O(t,b,S=>i(3,s=S));const k=m.ui.isMobile;O(t,k,S=>i(2,o=S));let v;return t.$$set=S=>{"isAds"in S&&i(0,r=S.isAds),"canRewindLive"in S&&i(9,a=S.canRewindLive),"isRewindableLive"in S&&i(10,c=S.isRewindableLive),"isHidden"in S&&i(11,f=S.isHidden)},t.$$.update=()=>{t.$$.dirty&7681&&i(1,v=!f&&(!n||n&&a&&c||r))},[r,v,o,s,l,h,_,b,k,a,c,f,n]}class tu extends ve{constructor(e){super(),_e(this,e,Lm,Em,be,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},Pm)}}function Vm(t){let e,i,n,o;return{c(){e=B("svg"),i=B("path"),n=B("path"),o=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.398 4.398 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.398 4.398 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.397 4.397 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.398 4.398 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11Zm-1.446-2.3c.052-.483.035-.769-.022-.993a2.599 2.599 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.998-.164.895-.277 1.518-.33 2.01-.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.598 2.598 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998.164-.895.278-1.518.33-2.01Z"),u(i,"fill","#fff"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.598 2.598 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.599 2.599 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-.093a350.712 350.712 0 0 0-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.398 4.398 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.397 4.397 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045Z"),u(n,"fill","#fff"),u(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.405.405 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68l-2.95-2.71Z"),u(o,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),It(e,"flex-shrink","0"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","episodes-icon")},m(s,l){T(s,e,l),p(e,i),p(e,n),p(e,o)},p:W,i:W,o:W,d(s){s&&P(e)}}}class Mm extends ve{constructor(e){super(),_e(this,e,null,Vm,be,{})}}function Bm(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"opacity",".7"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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-.708Z"),u(i,"fill","#fff"),u(e,"width","12"),u(e,"height","13"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chevron-light-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class Nm extends ve{constructor(e){super(),_e(this,e,null,Bm,be,{})}}function Rm(t){Ke(t,"v-1yhs2ga",".text.v-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.v-1yhs2ga{overflow:visible}.text.mobile.v-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.v-1yhs2ga{margin-bottom:-4px}")}function Dm(t){let e,i,n,o;e=new Mm({});function s(a,c){if(a[4]===Yn.FULL)return Hm;if(a[4]===Yn.COUNT)return zm}let l=s(t),r=l&&l(t);return{c(){U(e.$$.fragment),i=D(),r&&r.c(),n=at()},m(a,c){z(e,a,c),T(a,i,c),r&&r.m(a,c),T(a,n,c),o=!0},p(a,c){l===(l=s(a))&&r?r.p(a,c):(r&&r.d(1),r=l&&l(a),r&&(r.c(),r.m(n.parentNode,n)))},i(a){o||(d(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){a&&(P(i),P(n)),H(e,a),r&&r.d(a)}}}function Om(t){let e,i,n,o,s,l;return s=new Nm({}),{c(){e=I("span"),i=De(t[2]),n=D(),o=I("div"),U(s.$$.fragment),u(e,"class","text mobile v-1yhs2ga"),u(o,"class","chevron-episodes v-1yhs2ga")},m(r,a){T(r,e,a),p(e,i),T(r,n,a),T(r,o,a),z(s,o,null),l=!0},p(r,a){(!l||a&4)&&et(i,r[2])},i(r){l||(d(s.$$.fragment,r),l=!0)},o(r){g(s.$$.fragment,r),l=!1},d(r){r&&(P(e),P(n),P(o)),H(s)}}}function zm(t){let e,i=t[0].length+"",n;return{c(){e=I("span"),n=De(i),u(e,"class","text count v-1yhs2ga")},m(o,s){T(o,e,s),p(e,n)},p(o,s){s&1&&i!==(i=o[0].length+"")&&et(n,i)},d(o){o&&P(e)}}}function Hm(t){let e,i;return{c(){e=I("span"),i=De(t[2]),u(e,"class","text v-1yhs2ga")},m(n,o){T(n,e,o),p(e,i)},p(n,o){o&4&&et(i,n[2])},d(n){n&&P(e)}}}function Fm(t){let e,i,n,o;const s=[Om,Dm],l=[];function r(a,c){return a[6]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=at()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function Um(t){let e,i,n;function o(l){t[19](l)}let s={className:"w-max btn-full-opacity "+(t[6]?"px-0":""),testId:"btn-episodes",click:t[12],disabled:!t[7],ariaExpanded:t[3],ariaLabel:t[5],$$slots:{default:[Fm]},$$scope:{ctx:t}};return t[1]!==void 0&&(s.ref=t[1]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&64&&(a.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),r&8&&(a.ariaExpanded=l[3]),r&32&&(a.ariaLabel=l[5]),r&8388693&&(a.$$scope={dirty:r,ctx:l}),!i&&r&2&&(i=!0,a.ref=l[1],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function qm(t,e,i){let n,o,s,l,r,a,{position:c=0}=e,{duration:f=0}=e,{timeCodes:m=[]}=e;const h=ht(),_=h.callbacks?.onEpisodeChanged??te.noop,b=!!h.callbacks?.onEpisodeClicked,k=h.ui.currentGridType$;O(t,k,C=>i(18,r=C));const v=h.ui.episodes.openedByKeyboard$;O(t,v,C=>i(17,l=C));const S=h.ui.episodes.panelOpened$;O(t,S,C=>i(3,s=C));const w=h.ui.isMobile;O(t,w,C=>i(6,a=C));let y;const E=C=>{if(!!h.callbacks?.onEpisodeClicked){const R=kl(C);v.set(R),S.set(!0),h.callbacks?.onEpisodeClicked?.(R)}};let ie,V,F;const oe=async(C,$,R)=>{await Po(),C?.getAttribute("aria-expanded")==="false"&&$&&!R&&(v.set(!1),C.focus())};function x(C){y=C,i(1,y)}return t.$$set=C=>{"position"in C&&i(13,c=C.position),"duration"in C&&i(14,f=C.duration),"timeCodes"in C&&i(0,m=C.timeCodes)},t.$$.update=()=>{if(t.$$.dirty&24576&&i(16,n=c/f),t.$$.dirty&114689){const C=$1(n,f,m);C&&ie?.text!==C.text&&(_(C),i(15,ie=C))}t.$$.dirty&32768&&i(2,o=ie?.text||""),t.$$.dirty&262144&&(_n(r,exports.GridTypes.XL)?i(4,V=Yn.FULL):_n(r,exports.GridTypes.M)&&r2(r,exports.GridTypes.XL)?i(4,V=Yn.COUNT):i(4,V=Yn.SHORT)),t.$$.dirty&4&&i(5,F=`${K("tooltip_episodes")}: ${o}`),t.$$.dirty&131082&&oe(y,l,s)},[m,y,o,s,V,F,a,b,k,v,S,w,E,c,f,ie,n,l,r,x]}class iu extends ve{constructor(e){super(),_e(this,e,qm,Um,be,{position:13,duration:14,timeCodes:0},Rm)}}function Zm(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),n=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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-.238Z"),u(i,"fill","#fff"),u(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-.774L7.76 11.17Z"),u(n,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","seek-to-interactive-icon")},m(o,s){T(o,e,s),p(e,i),p(e,n)},p:W,i:W,o:W,d(o){o&&P(e)}}}class Wm extends ve{constructor(e){super(),_e(this,e,null,Zm,be,{})}}function Km(t){let e,i;return e=new Wm({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function jm(t){let e,i,n;function o(l){t[4](l)}let s={className:t[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:K("tooltip_interactive_seek"),disabled:t[2],click:t[3],$$slots:{default:[Km]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"hidden":""),r&4&&(a.disabled=l[2]),r&8&&(a.click=l[3]),r&32&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Gm(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{click:l}=e;function r(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"hidden"in a&&i(1,o=a.hidden),"disabled"in a&&i(2,s=a.disabled),"click"in a&&i(3,l=a.click)},[n,o,s,l,r]}class nu extends ve{constructor(e){super(),_e(this,e,Gm,jm,be,{ref:0,hidden:1,disabled:2,click:3})}}function Ym(t){let e,i,n;return{c(){e=B("svg"),i=B("path"),n=B("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"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.107 2.107 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.148 2.148 0 0 1-.817-.21 2.107 2.107 0 0 1-.923-.919 2.125 2.125 0 0 1-.21-.813 8.287 8.287 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.803.803 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.003c.001-.23.004-.443.02-.627.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.108 2.108 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.148 2.148 0 0 1-.817-.21 2.108 2.108 0 0 1-.923-.918 2.125 2.125 0 0 1-.21-.814 8.288 8.288 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.61 2.61 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.61 2.61 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003c.001-.23.004-.443.02-.627.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 3Zm-.833 1.837a.76.76 0 0 1 .146-.02c.156-.013.366-.014.72-.014h1.354c.353 0 .563 0 .719.013a.76.76 0 0 1 .146.021.301.301 0 0 1 .126.126.75.75 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a.75.75 0 0 1-.02.146.301.301 0 0 1-.127.125.76.76 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a.76.76 0 0 1-.146-.022.301.301 0 0 1-.126-.125.75.75 0 0 1-.021-.146 9.929 9.929 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a.75.75 0 0 1 .021-.145.301.301 0 0 1 .126-.126Zm0 11.018a.765.765 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a.765.765 0 0 1 .146.022.3.3 0 0 1 .126.125.75.75 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a.75.75 0 0 1-.02.145.3.3 0 0 1-.127.126.755.755 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a.746.746 0 0 1-.146-.021.3.3 0 0 1-.126-.126.75.75 0 0 1-.021-.145 9.93 9.93 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a.75.75 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),u(i,"fill","#fff"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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.062 1.062 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"),u(n,"fill","#fff"),M(n,"hidden",!t[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){T(o,e,s),p(e,i),p(e,n)},p(o,[s]){s&1&&M(n,"hidden",!o[0])},i:W,o:W,d(o){o&&P(e)}}}function Qm(t,e,i){let{isOpened:n=!1}=e;return t.$$set=o=>{"isOpened"in o&&i(0,n=o.isOpened)},[n]}class Xm extends ve{constructor(e){super(),_e(this,e,Qm,Ym,be,{isOpened:0})}}function Jm(t){let e,i;return e=new Xm({props:{isOpened:t[3]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&8&&(s.isOpened=n[3]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function xm(t){let e,i,n;function o(l){t[6](l)}let s={className:t[1]?"hidden":"",testId:"btn-graph",disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[Jm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"hidden":""),r&4&&(a.disabled=l[2]),r&32&&(a.ariaLabel=l[5]),r&16&&(a.click=l[4]),r&136&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function $m(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{graphIsOpened:l=!1}=e,{click:r}=e,a;function c(f){n=f,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"hidden"in f&&i(1,o=f.hidden),"disabled"in f&&i(2,s=f.disabled),"graphIsOpened"in f&&i(3,l=f.graphIsOpened),"click"in f&&i(4,r=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,a=K(l?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off"))},[n,o,s,l,r,a,c]}class ou extends ve{constructor(e){super(),_e(this,e,$m,xm,be,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}}function e4(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 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-6v3.096z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","replay-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class lu extends ve{constructor(e){super(),_e(this,e,null,e4,be,{})}}function t4(t){Ke(t,"v-1ot3duq",".mobile.v-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.v-1ot3duq svg{transform:scale(2)}.icon-background-mobile.v-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 lr(t){let e;return{c(){e=I("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){T(i,e,n)},d(i){i&&P(e)}}}function i4(t){let e,i,n,o,s=t[1]&&lr();return n=new lu({}),{c(){s&&s.c(),e=D(),i=I("div"),U(n.$$.fragment),u(i,"class","v-1ot3duq"),M(i,"mobile",t[1])},m(l,r){s&&s.m(l,r),T(l,e,r),T(l,i,r),z(n,i,null),o=!0},p(l,r){l[1]?s||(s=lr(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),(!o||r&2)&&M(i,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){g(n.$$.fragment,l),o=!1},d(l){l&&(P(e),P(i)),s&&s.d(l),H(n)}}}function n4(t){let e,i,n;function o(l){t[5](l)}let s={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-replay",ariaLabel:K("tooltip_restart"),disabled:t[2],click:t[4],ariaKeyShortCut:So[Ae.KeyK],$$slots:{default:[i4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&10&&(a.className=(l[1]?"btn-m--play":"")+" "+l[3]),r&4&&(a.disabled=l[2]),r&16&&(a.click=l[4]),r&66&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function o4(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{className:l=""}=e,{click:r=te.noop}=e;function a(c){n=c,i(0,n)}return t.$$set=c=>{"ref"in c&&i(0,n=c.ref),"isMobile"in c&&i(1,o=c.isMobile),"disabled"in c&&i(2,s=c.disabled),"className"in c&&i(3,l=c.className),"click"in c&&i(4,r=c.click)},[n,o,s,l,r,a]}class Al extends ve{constructor(e){super(),_e(this,e,o4,n4,be,{ref:0,isMobile:1,disabled:2,className:3,click:4},t4)}}function l4(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"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.853l-5.478-3.349Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"data-testid","play-prev-chapter-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class s4 extends ve{constructor(e){super(),_e(this,e,null,l4,be,{})}}function r4(t){let e,i;return e=new s4({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function a4(t){let e,i,n;function o(l){t[4](l)}let s={className:t[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:K("tooltip_interactive_go_back"),disabled:t[2],click:t[3],$$slots:{default:[r4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"hidden":""),r&4&&(a.disabled=l[2]),r&8&&(a.click=l[3]),r&32&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function u4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{click:l}=e;function r(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"hidden"in a&&i(1,o=a.hidden),"disabled"in a&&i(2,s=a.disabled),"click"in a&&i(3,l=a.click)},[n,o,s,l,r]}class su extends ve{constructor(e){super(),_e(this,e,u4,a4,be,{ref:0,hidden:1,disabled:2,click:3})}}function c4(t){Ke(t,"v-1x1zctw",".icon.v-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.v-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.v-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function f4(t){let e,i,n,o;return{c(){e=I("img"),u(e,"class","icon v-1x1zctw"),ql(e.src,i=t[0])||u(e,"src",i),u(e,"aria-hidden","true")},m(s,l){T(s,e,l),n||(o=he(e,"error",t[7]),n=!0)},p(s,l){l&1&&!ql(e.src,i=s[0])&&u(e,"src",i)},d(s){s&&P(e),n=!1,o()}}}function d4(t){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner v-1x1zctw"></div>',u(e,"class","icon error-stub v-1x1zctw")},m(i,n){T(i,e,n)},p:W,d(i){i&&P(e)}}}function m4(t){let e;function i(s,l){return s[5]?d4:f4}let n=i(t),o=n(t);return{c(){o.c(),e=at()},m(s,l){o.m(s,l),T(s,e,l)},p(s,l){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&P(e),o.d(s)}}}function p4(t){let e,i;return e=new yi({props:{className:t[4]?"btn-full-opacity":"",ariaLabel:t[1],click:t[3],disabled:t[6],testId:t[2],$$slots:{default:[m4]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,[o]){const s={};o&16&&(s.className=n[4]?"btn-full-opacity":""),o&2&&(s.ariaLabel=n[1]),o&8&&(s.click=n[3]),o&64&&(s.disabled=n[6]),o&4&&(s.testId=n[2]),o&545&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function h4(t,e,i){let n,o,s,{iconUrl:l}=e,{ariaLabel:r}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=te.noop}=e;const m=()=>{i(5,s=!0)};return t.$$set=h=>{"iconUrl"in h&&i(0,l=h.iconUrl),"ariaLabel"in h&&i(1,r=h.ariaLabel),"disabled"in h&&i(8,a=h.disabled),"testId"in h&&i(2,c=h.testId),"onClick"in h&&i(3,f=h.onClick)},t.$$.update=()=>{t.$$.dirty&8&&i(4,n=f===te.noop),t.$$.dirty&272&&i(6,o=n||a)},i(5,s=!1),[l,r,c,f,n,s,o,m,a]}class ru extends ve{constructor(e){super(),_e(this,e,h4,p4,be,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},c4)}}class sr{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,i,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:i,options:n})}removeEventListener(e,i){if(!(e in this.listeners))return;const n=this.listeners[e];for(let o=0,s=n.length;o<s;o++)if(n[o].callback===i){n.splice(o,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;const n=this.listeners[e.type].slice();for(let o=0,s=n.length;o<s;o++){const l=n[o];try{l.callback.call(this,e)}catch(r){Promise.resolve().then(()=>{throw r})}l.options&&l.options.once&&this.removeEventListener(e.type,l.callback)}return!e.defaultPrevented}}class au extends sr{constructor(){super(),this.listeners||sr.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,e)),super.dispatchEvent(e)}}let g4=class{constructor(){Object.defineProperty(this,"signal",{value:new au,writable:!0,configurable:!0})}abort(e){let i;try{i=new Event("abort")}catch{typeof document<"u"?document.createEvent?(i=document.createEvent("Event"),i.initEvent("abort",!1,!1)):(i=document.createEventObject(),i.type="abort"):i={type:"abort",bubbles:!1,cancelable:!1}}let n=e;if(n===void 0)if(typeof document>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(i)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(g4.prototype[Symbol.toStringTag]="AbortController",au.prototype[Symbol.toStringTag]="AbortSignal");function uu(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof t.Request=="function"&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}function b4(t){typeof t=="function"&&(t={fetch:t});const{fetch:e,Request:i=e.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=t;if(!uu({fetch:e,Request:i,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:e,Request:s};let s=i;(s&&!s.prototype.hasOwnProperty("signal")||o)&&(s=function(c,f){let m;f&&f.signal&&(m=f.signal,delete f.signal);const h=new i(c,f);return m&&Object.defineProperty(h,"signal",{writable:!1,enumerable:!1,configurable:!0,value:m}),h},s.prototype=i.prototype);const l=e;return{fetch:(a,c)=>{const f=s&&s.prototype.isPrototypeOf(a)?a.signal:c?c.signal:void 0;if(f){let m;try{m=new DOMException("Aborted","AbortError")}catch{m=new Error("Aborted"),m.name="AbortError"}if(f.aborted)return Promise.reject(m);const h=new Promise((_,b)=>{f.addEventListener("abort",()=>b(m),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([h,l(a,c)])}return l(a,c)},Request:s}}const El=uu({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),cu=El?b4({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,_4=El?cu.fetch:window.fetch;El?cu.Request:window.Request;const v4=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,k4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js";class w4{adman=null;initialVolume=1;videoElement=null;currentAdSection=null;actions=null;adsState=null;playerState=null;log;loadTimeout;initTimeout;events={slotRequested$:new te.Subject,started$:new te.Subject,paused$:new te.Subject,resumed$:new te.Subject,ended$:new te.Subject,skipped$:new te.Subject,clicked$:new te.Subject};constructor(e,i){this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout}init(e,i,n){this.actions=e,this.adsState=i,this.playerState=n}loadAdman=e=>new Promise((i,n)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?i():n()};te.addScript(k4,e,this.loadTimeout).then(()=>{window.AdmanHTML?i():(window.admanAsyncInit=s,o=window.setTimeout(s,this.initTimeout))}).catch(()=>{n()})});onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:o,isAutoplay:s,adsContainer:l,adsVideoElement:r,slotId:a,params:c={},duration:f,previewParam:m}=e;let h;const _=this.playerState&&xe(this.playerState.vsid);_&&(h=parseInt(_,36));const b={dl:encodeURIComponent(window.location.href),autoplay:s,player_width:i,player_height:n,puid10:v4(i,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:f,...c},k={slot:a,wrapper:l,videoEl:r,videoQuality:n,params:b,browser:{mobile:!1}},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=r,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}te.assertNonNullable(this.actions),te.assertNonNullable(this.adsState),te.assertNonNullable(this.playerState);const i=this.currentAdSection===An.Postroll;this.adsState.playbackState.set(Zt.INACTIVE),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){te.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=xe(this.adsState.playbackState);e===Zt.PLAYING?this.pause():e===Zt.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){te.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=An.Preroll,this.adman.start(An.Preroll)}startPostroll(){te.assertNonNullable(this.adman),te.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=An.Postroll,this.adman.start(An.Postroll)}onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};onAdStarted=(e,i)=>{te.assertNonNullable(this.adsState),te.assertNonNullable(this.playerState),te.assertNonNullable(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set(Zt.PLAYING),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay)};onAdTimeRemained=({currentTime:e})=>{te.assertNonNullable(this.adsState),this.adsState.position.set(e)};onAdPaused=()=>{te.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Zt.PAUSED)};onAdPlayed=()=>{te.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Zt.PLAYING)};onAdMidrollPoint=()=>{te.assertNonNullable(this.adman),te.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=An.Midroll,this.adman.start(An.Midroll)};onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};play(){te.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){te.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){te.assertNonNullable(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}}const y4=t=>{const e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};class C4{oneLineRegExp=/\r\n|\n|\r/;twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/;parse(e){const i=[],n=e.split(this.twoLinesRegExp);for(const o of n){const s={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(const r of l)if(!s.startTime&&!s.endTime){const a=new fu,{startTime:c,endTime:f}=a.parse(r);s.startTime=c,s.endTime=f}else if(r.trim()!==""){const a=new P4,{texts:c}=a.parse(r);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&i.push(s)}return i}}class fu{timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`);parse(e){const i={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(i.startTime=this.calcTime(n[1],n[2],n[3],n[4]),i.endTime=this.calcTime(n[6],n[7],n[8],n[9])),i}parseTime(e){const i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",n="0",o="0"){const s=Number(e)*60*60,l=Number(i)*60,r=Number(n),a=+`0.${o}`;return s+l+r+a}}class P4{letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/;parse(e){const i={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let r=0;const a=[];for(;r<l.length;){const c=["<",">"].reduce((f,m)=>{const h=l.indexOf(m,r);return f===-1||f>h?h:f},-1);if(c===-1){a.push(l.substring(r));break}a.push(l.substring(r,c)),r=c+1}return a}}),s=new fu;for(const l of o)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}}let Wn,fn,ll=0,sl=!1;const S4=(t,e,i)=>{const n=t>=ll,o=t<ll,s=(c,f=0,m=0)=>c<f&&c<m,l=(c,f=0,m=0)=>c>=f&&c<=m,r=(c,f=0,m=0)=>c>f&&c>m,a=i.find(({lang:c})=>c===e.value)?.subtitles;if(ll=t,o&&(sl=!1),te.isNonNullable(Wn)&&l(t,Wn.startTime,Wn.endTime)&&Wn.lang===e.value)return Wn;if(!te.isNonNullable(fn)&&a?.length&&!sl){const c=a.find(({startTime:f,endTime:m})=>l(t,f,m)||n&&s(t,f,m));fn=c&&{...c,lang:e.value},Wn=void 0,!te.isNonNullable(fn)&&a[a.length-1].endTime<t&&(sl=!0);return}else{if(l(t,fn?.startTime,fn?.endTime))return Wn=fn,fn=void 0,Wn;(n&&r(t,fn?.startTime,fn?.endTime)||o&&s(t,fn?.startTime,fn?.endTime))&&(fn=void 0)}},rl={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-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"};class T4{oneStat;statSubscription;constructor(e,i){this.oneStat=new pt.OneStat(e,i),this.statSubscription=new te.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}}const I4=({interfaceLanguage:t,videoId:e,isClip:i,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:s,canDownload:l,callbacks:r,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:m,coreConfig:h,player:_,disabledControls:b,isInteractive:k,interactiveRanges$:v,isInteractiveTime$:S,replayInteractive:w,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:E,additionalButtons:ie,looped:V=!1,statistics:F})=>{const oe={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:s,live:{...h.live??{},isLiveCatchUpMode:!!n}},x=m,C=_||new $e.Player(oe);C.setLooped(V);const $=new te.Logger,R=new w4($,{loadTimeout:x.ads.loadTimeout,initTimeout:x.ads.initTimeout}),se=ml.getInstance(),j=a?.pictureInPictureApi,N=a?.annotationsApi,Q=$.createComponentLog("Store");let A,ne,Ie={};const Ne=te.getCurrentBrowser(),Be=F?mt(F.oneStat.vsid$):Sn(void 0),ze=Le(wo()),ce=j?.info.isActive$??new te.ValueSubject(!1),ke=j?.info.type,G=Le(0),J=Le([]),ye=te.merge(C.events.fatalError$,C.events.managedError$).subscribe(L=>J.update(ae=>[...ae,L])),re=Sn(!1,L=>{const ae=C.events.fatalError$.subscribe(()=>L(!0));return()=>ae.unsubscribe()}),We=async L=>{const ae=Object.values(te.InterfaceLanguage).includes(L);if(x.downloadVKLanguages&&(ae&&x.updateBuiltinLanguages||!Gl(L))){let Ze;try{Ze=await te.loadVKLangPack(L,Pc,Sc)}catch(Je){F?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),se?.report(Je,{errorType:"VKLangPack",fatal:!1})}Ze&&(jl({language:L,pack:Ze,fallback:x.defaultLanguage}),Ve.set(L))}Gl(L)&&Ve.set(L)},Ve=Le(t);We(t);const Ee=(L,ae)=>{const Se=xe(Ve);return k1(Se,L,ae,x.defaultLanguage)},ue=Le(Re.Thumb),Ce=(()=>{const L=Oi([re,ue],([ae,Se])=>ae?Re.Crashed:Se);return{...L,is:ae=>xe(L)===ae}})(),ge=(()=>{const L=Le(new Set(b));return{...L,add:ae=>{L.update(Se=>new Set([...Se].concat(ae)))},remove:ae=>{L.update(Se=>{const Ze=[...Se];return new Set(Array.isArray(ae)?Ze.filter(Je=>!ae.includes(Je)):Ze.filter(Je=>Je!==ae))})},includes:ae=>{const Se=xe(L);return Array.isArray(ae)?ae.every(Ze=>Se.has(Ze)):Se.has(ae)}}})();Q({message:"create store"});const le=L=>{const ae=L.container;ae.append(C.experimental.element$.getValue()),Xe=new MutationObserver(Se=>{const{removedNodes:Ze}=Se[0];Ze.length&&ae.append(C.experimental.element$.getValue())}),Xe.observe(ae,{childList:!0})},qe=L=>{Q({message:`init video, config: ${JSON.stringify(L)}`}),k?le(L):C.initVideo(L),L.subtitles&&C.setExternalTextTracks(L.subtitles),A=L},pe=new te.Subject,Pe=L=>pe.next(L),Te=new te.Subject,je=new te.Subject,tt=new te.Subject;let Xe=null;const Qe={actionRewind$:Te,actionSeek$:je,inPiP$:ce,inFullscreen$:new te.Observable(L=>ze.subscribe(ae=>L.next(ae))),actionSetSubtitle$:tt,nextMovie$:pe};if(F){const{oneStat:L,statSubscription:ae}=F;ae.add(L.attachTo(C)),ae.add(L.attachToUi(Qe)),ae.add(L.attachToAds(R.events)),L.authorize(o).catch(Se=>{Q({message:`onestat auth error ${String(Se)}`})})}if(se){const L=new te.Subscription,ae=(Se,Ze)=>L.add(Se.subscribe(Ze));if(ae(C.events.managedError$,Se=>{se.logIError(Se)}),ae(C.events.fatalError$,Se=>{se.logIError(Se,!0)}),F){const{oneStat:Se}=F;ae(Se.experimental.error$,Ze=>{se.logIError(Ze)})}se.sentrySubscription.add(L)}const it=()=>{te.isIOS()&&ne&&ef(ne)},Et=new te.Subscription().add(C.experimental.element$.subscribe(L=>{L&&(ne=L,L.classList.add("player-media"),Ko(j)&&(j.updateVideoElement(),j.registryEventHandlers()),k&&L.setAttribute("pip","false"))})).add(C.events.ended$.subscribe(()=>{it(),r?.onEnded?.()})).add(C.events.started$.subscribe(async()=>{Ko(j)&&await j?.revealPictureInPicture();const L=C.info.muted$.getValue();r?.onStarted?.(),Ie.onStarted?.(L)})).add(C.events.willSeek$.subscribe(({from:L,to:ae})=>{r?.onSeek?.(L,ae)})).add(C.info.position$.subscribe(L=>{const ae=C.info.duration$.getValue();r?.onTimeupdate?.(ae,L),R.setPosition(L,ae)})).add(C.events.fatalError$.subscribe(()=>{r?.onCrashed?.()})).add(C.info.is3DVideo$.subscribe(L=>{ft.ui.is3DVideo.set(L)})).add(C.info.isEnded$.subscribe(L=>{k&&(L?(S?.getValue()&&ge.add(l1),ge.add(st.PLAY_BUTTON)):ge.remove(st.PLAY_BUTTON))})).add(C.info.liveTime$.subscribe(L=>{r?.onLiveTime?.(L)})).add(C.info.isStalled$.subscribe(L=>{r?.onStalledChanged?.(L)})),ut=new te.Subscription,$t=()=>{ut.add(C.events.log$.subscribe(L=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${L.component}`,L.message)})).add($.log$.subscribe(L=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${L.component}.`,L.message)}))},_t=()=>{ut.unsubscribe()},Oe=(L,ae)=>{C.startCameraManualRotation(L,ae)},me=(L=!1)=>{C.stopCameraManualRotation(L)},bt=(L,ae,Se)=>{C.moveCameraFocusPX(L,ae,Se)},ct=()=>{C.holdCamera()},Dt=()=>{C.releaseCamera()},rt=Sn(C.info.position$.getValue(),L=>{let ae,Se;const Ze=()=>{const Je=C.info.playbackState$.getValue(),xt=C.info.isLive$.getValue(),Di=C.info.duration$.getValue(),Ut=C.info.position$.getValue();if([$e.PlaybackState.PLAYING,$e.PlaybackState.PAUSED].includes(Je)){const gn=xt?Ut-Di:C.getExactTime();gn!==Se&&L(gn),Se=gn}ae=requestAnimationFrame(Ze)};return Ze(),()=>cancelAnimationFrame(ae)}),wt=mt(ce),ei=mt(C.info.playbackState$),Kt=mt(C.info.currentBuffer$),ti=mt(C.info.isEnded$),Ui=mt(C.info.isLive$),ii=x.features.playbackRate?mt(C.info.canChangePlaybackSpeed$):Sn(!1),Ci=mt(C.info.liveBufferTime$),Yi=mt(C.info.volume$),ni=mt(C.info.muted$),oi=u1(C.info.autoQualityLimits$.pipe(te.map(({max:L})=>L!==void 0)),C.info.autoQualityLimits$.getValue()?.max!==void 0),Pi=mt(C.info.autoQualityLimitingAvailable$),Vt=mt(C.info.availableQualities$),li=mt(C.info.availableQualitiesFps$),si=mt(C.info.chromecastState$),jt=mt(C.info.chromecastDeviceName$),ri=mt(C.info.currentFormat$),ai=mt(C.info.throughputEstimation$),ui=mt(C.info.videoBitrate$),Si=mt(C.info.intrinsicVideoSize$),Ti=mt(C.info.duration$),Ii=mt(C.info.isAudioAvailable$);let yt=null;const ci=C.info.isBuffering$,Gt=Sn(ci.getValue(),L=>{const ae=ci.subscribe(Se=>{Se&&yt===null?yt=window.setTimeout(()=>{L(ci.getValue()),yt=null},x.loaderDelay):L(Se)});return()=>{ae.unsubscribe(),yt&&clearTimeout(yt)}}),fi=()=>{yt&&clearTimeout(yt),yt=null},Lt=Oi([Ti,Ui],([L,ae])=>ae?-L:L),Ai=Oi([ei],([L])=>L===$e.PlaybackState.PLAYING),vt=mt(C.info.atLiveEdge$),Ct=mt(C.info.atLiveDurationEdge$),Ot=mt(C.info.position$),Pt=Oi([Ot,Ti],([L,ae])=>isFinite(L)&&isFinite(ae)&&!!ae),Ei=Oi([si],([L])=>L===$e.ChromecastState.CONNECTED),Mt=Le(void 0),Yt=mt(C.info.isAutoQualityEnabled$,L=>L&&Mt.set(void 0)),Qt=mt(C.info.currentQuality$,()=>Mt.set(void 0)),di=Oi([Mt,Qt],([L,ae])=>L??ae),St=Oi([Vt,li,Yt,di,ri],([L,ae,Se,Ze,Je])=>{const xt=[];Je!==$e.VideoFormat.MPEG&&xt.push({value:ro.AUTO,displayValue:Ee("auto_quality_option"),selected:Se});const Di=L.filter(Ut=>Ut!==te.VideoQuality.INVARIANT);for(const Ut of Di){const gn=ae[Ut],Zn=Ut===te.VideoQuality.INVARIANT?Ee("auto_quality_option"):Ut;xt.push({value:Ut,displayValue:`${Zn}${gn?y4(gn):""}`,selected:Se?!1:Ut===Ze})}return xt}),qi=mt(C.info.currentPlaybackRate$),Li=Oi([qi,vt,Ct],([L,ae,Se])=>{const Ze=Se||k?1:x.controls.playbackRateMin,Je=ae?1:x.controls.playbackRateMax,xt=x.controls.playbackRateStep,Di=[];for(let Ut=Ze;Ut<=Je;Ut+=xt)Di.push({value:Ut,displayValue:Ut===1?Ee("playback_rate_1"):Ee("playback_rate",{multiplier:Ut.toString(10)}),selected:L===Ut});return Di}),Qi=x.features.subtitles?mt(C.info.availableTextTracks$):Sn([]),Xt=Oi([Qi],([L],ae)=>{const Se=[],Ze=[];for(const Je of L)Je.url&&Se.push(_4(Je.url));Promise.allSettled(Se).then(Je=>{for(const[xt,Di]of Je.entries())Di.status==="fulfilled"&&Di.value.text().then(Ut=>{const gn=new C4,Zn=L[xt].language,Ao=!!L[xt].isAuto,eo=gn.parse(Ut);Zn&&eo&&Ze.push({lang:Zn,subtitles:eo,isAuto:Ao}),xt===Je.length-1&&ae(Ze)})})}),gt={displayValue:Ee("subtitles_off"),value:"off"},zt=Le({...gt}),Zi=Oi([Xt,zt,Xt],([L,ae])=>{if(L?.length>0){const Se=[{...gt,selected:ae?.value===gt.value}];for(const{lang:Ze,isAuto:Je}of L)rl[Ze]&&Se.push({displayValue:Je?Ee("subtitles_auto",{language:rl[Ze]}):rl[Ze],value:Ze,selected:ae?.value===Ze,isAuto:Je});return Se}else return[]}),Wi=Oi([rt,zt,Xt],([L,ae,Se])=>{if(ae&&ae.value!==gt.value)return S4(L,ae,Se)}),Ki=Oi([Wi],([L])=>L?.texts?L.texts:[]),Jt=Le(!0),zi=Oi([Kt,Lt,Ot,Ci],([L,ae,Se,Ze])=>{const Je=L?.end??0;if(!Ze)return Je/ae;const Di=-Se+Ze-ae;return(Je-Di)/ae}),mi=mt(C.info.availableSources$),pi=Oi([mi],([L])=>Object.keys(L?.[$e.VideoFormat.MPEG]||{}).length>0),Vi=()=>{const L=Object.keys(C.info.availableSources$?.getValue()?.[$e.VideoFormat.MPEG]||{}),ae=te.getHighestQuality(L)||te.VideoQuality.Q_144P;return A.sources[$e.VideoFormat.MPEG]?.[ae]},Mi=()=>{const L=Vi();L?Nc(L,A?.meta?.title||"video"):Q({message:"There is no URL for download video"})},Bt=()=>{Q({message:"toggle muted"});const L=C.info.muted$.getValue(),Ze=!(C.info.volume$.getValue()===0||L);bi(Ze)},Hi=()=>{ft.ui.settingsMenuVisible.set(!1)},hi=L=>{ft.ui.settingsMenuOpenedByKeyboard.set(!!L),ft.ui.settingsMenuVisible.set(!0)},gi=L=>{xe(ft.ui.settingsMenuVisible)?Hi():hi(L)},Bi=(L,ae=L,Se=!1)=>{const Ze=!Se,Je=C.info.muted$.getValue();Q({message:`set volume, volume: ${L}, preferredVolume: ${ae}, internalCall: ${Ze}`}),C.setVolume(L),R.setVolume(L),Ze&&r?.onVolumeChange?.(L),Kl(ae),Je?(C.setMuted(!1),Ze&&r?.onUnmute?.(),tl(!1)):!Je&&L===0&&(C.setMuted(!0),Ze&&r?.onMute?.(),tl(!0))},bi=(L,ae=!1)=>{const Se=!ae,Ze=C.info.volume$.getValue();if(Q({message:`set muted, currentVolume: ${Ze}, mute: ${L}, internalCall: ${Se}`}),C.setMuted(L),R.setVolume(L?0:Ze),tl(L),Se&&(L?r?.onMute?.():r?.onUnmute?.()),Ze===0){let Je=p1()??x.volumeDefault;Je===0&&(Je=x.volumeMinRestore,Kl(Je)),C.setVolume(Je),R.setVolume(Je),Se&&r?.onVolumeChange?.(Je)}},Ht=()=>{C.prepare()},_i=()=>{if(te.assertNonNullable(ft),!xe(ft.ui.controls.disabledControls$).has(st.PLAY_BUTTON)){if(Q({message:"toggle play"}),xe(ft.playerPhase)===Re.Ads){R.togglePlay();return}if(C.info.playbackState$.getValue()!==$e.PlaybackState.PLAYING){if(C.info.isEnded$.getValue()){if(Q({message:"toggle play, video ended, seek to 0"}),Te.next(),je.next(pt.SeekAction.REWIND),k){w?.();return}C.seekTime(0)}Q({message:"toggle play, call player.play"}),C.play(),r?.onPlay?.()}else Q({message:"toggle play, call player.pause"}),C.pause(),r?.onPause?.()}},He=L=>{Q({message:`set quality, quality: ${L}`}),C.setAutoQuality(L===ro.AUTO),L!==ro.AUTO?(Rc(e,L),Mt.set(L),C.setQuality(L)):h1()},vi=L=>{Q({message:`set trafficSavingEnabled, value: ${L}`}),C.setAutoQualityLimits({max:L?x.trafficSavingLimit:void 0}),zc(L)},Nt=L=>{C.setPlaybackRate(L)},Me=()=>{const L=xe(Li),ae=L.findIndex(({selected:Ze})=>Ze);if(ae===L.length-1)return;const Se=L[ae+1];Nt(Se.value)},en=()=>{const L=xe(Li),ae=L.findIndex(({selected:Ze})=>Ze);if(ae===0)return;const Se=L[ae-1];Nt(Se.value)},ji=L=>{L&&L.value!==gt.value&&tt.next(L.isAuto?L.value+"_auto":L.value),zt.set(L)},tn=()=>{const L=xe(Zi),ae=xe(zt),Se=xe(Ve);if(ae?.value===gt.value){const Ze=L.filter(Je=>Je.value!==gt.value).find(Je=>Je.value===Se)||L[1];ji(Ze??{...gt})}else ji({...gt,selected:!1})},Fi=(L,ae,Se=!0)=>{if(Q({message:`seek to time, time: ${L}`}),je.next(ae),C.info.isLive$.getValue()){const Ze=C.info.duration$.getValue(),Je=Math.min(0,Ze+L);C.seekTime(Je,Se)}else{if(S?.getValue())return;C.seekTime(In(L),Se)}},nn=L=>{Q({message:`seek to episode start time: ${L}`}),Fi(L,pt.SeekAction.EPISODE,!0)},Ft=(L,ae)=>{Q({message:`seek to percent, percent: ${L}`});const Se=Math.round(xe(Lt)*L);Fi(Se,ae,!1)},Gi=L=>{Q({message:`seek external, time: ${L}`}),je.next(pt.SeekAction.UNKNOWN),C.seekTime(C.info.isLive$.getValue()?-L:L)},on=L=>{Q({message:`set auto quality limitation. Max: ${L.max??"none"}. Min: ${L.min??"none"}`}),C.setAutoQualityLimits(L)},Ni=L=>{Q({message:`seek external to episode start time: ${L}`}),Fi(L,pt.SeekAction.EPISODE,!0)},Tt=L=>{Q({message:`set playback rate to: ${L}`}),C.setPlaybackRate(L)},Ri=Le(void 0),ee=Le(!1),lt=L=>{Q({message:`start scrubbing, progress: ${L}`}),ee.set(!0),ki(L)},ki=L=>{Ri.set(L)};let kt,Xi;const ln=()=>{Ri.set(void 0),ee.set(!1)},rn=()=>{clearTimeout(Xi),clearTimeout(kt),kt=window.setTimeout(()=>{ln()},500),ne?.removeEventListener("seeked",rn)},dn=L=>{Q({message:`complete scrubbing, progress: ${L}`}),Ft(L,pt.SeekAction.SLIDER),xe(ft.ui.isMobile)&&xe(ft.state.currentFormat$)===$e.VideoFormat.HLS?(ne?.addEventListener("seeked",rn),Xi=window.setTimeout(()=>{rn()},300)):ln()},un=Oi([rt,Lt,Ri],([L,ae,Se],Ze)=>{Ze(te.isNonNullable(Se)?Se*ae:L)}),Ji=Le({width:0,height:0}),mn=Oi([Ji],([{width:L}],ae)=>{const Se=a2(L);ae(Se)}),cn=Le(!1),wn=Oi([mn,cn],([L,ae])=>ae?ie.filter(Se=>!Se.hideOnMobile):ie.filter(Se=>!Se.hideOnDesktopGridTypes?.includes(L))),X=Oi([cn,re],([L,ae],Se)=>{Se(L&&ae)}),dt=()=>{je.next(pt.SeekAction.LIVE),Q({message:"switch to active live"}),C.seekTime(0),C.info.playbackState$.getValue()!==$e.PlaybackState.PLAYING&&ft.actions.internal.togglePlay()},yn=()=>R.skip(),Cn=(L=!0)=>{te.assertNonNullable(ft),Q({message:`switch from ads to video, callPlay: ${L}`}),ue.set(Re.Video),L&&C.play()},pn=()=>{te.assertNonNullable(ft),Q({message:"switch from video to ads"}),ft.actions.internal.pause(),it(),ue.set(Re.Ads)},Dn=L=>{te.assertNonNullable(ft);const ae=L?Re.WaitingLive:Re.Thumb;ue.set(ae)},On=L=>{te.assertNonNullable(ft);const ae=L?Re.WaitingRecord:Re.Thumb;ue.set(ae)},zn=()=>(te.assertNonNullable(ft),Mc(C,A,ft)),Hn=()=>(te.assertNonNullable(ft),Bc(C,A,ft)),Fn=()=>ne,Un=()=>{Q({message:"toggle chromecast"}),C.toggleChromecast()},hn=L=>{te.assertNonNullable(ft);const ae=!L;if(xe(ft.playerPhase)===Re.Ads){Q({message:`pause ads, internalCall: ${ae}`}),R.pause();return}Q({message:`pause video, internalCall: ${ae}`}),ae&&r?.onPause?.(),C.pause()},qn=L=>{te.assertNonNullable(ft);const ae=!L;if(xe(ft.playerPhase)===Re.Ads){Q({message:`play ads, internalCall: ${ae}`}),R.play();return}Q({message:`play video, internalCall: ${ae}`}),ae&&r?.onPlay?.(),C.play()},Y=(L,ae)=>{te.assertNonNullable(ft),Q({message:`first start, show ads: ${L}, internalCall: ${!ae}`}),L?ue.set(Re.Ads):(ue.set(Re.Video),ae?C.play():ft.actions.internal.togglePlay())},xi=()=>(Q({message:"getting time codes"}),c),jn=()=>{const L=xi();if(!L||[0,1].includes(L.length))return;const ae=C.info.position$.getValue();return L.find(Se=>Se.time>ae)},mo=L=>{let ae=L;ae||(ae=jn()),ae&&(Q({message:"seek to next episode"}),Fi(ae.time,pt.SeekAction.EPISODE,!0))},Jn=()=>{const L=xi();if(!L||[0,1].includes(L.length))return;const ae=C.info.position$.getValue(),Se=L.findIndex(Je=>Je.time>ae),Ze=Se===-1?L.length-2:Se-2;if(!(Ze<0))return L[Ze]},po=L=>{let ae=L;ae||(ae=Jn()),ae&&(Q({message:"seek to prev episode"}),Fi(ae.time,pt.SeekAction.EPISODE,!0))},ho=()=>(Q({message:"getting preview thumbs data"}),f),xn=async()=>{j?.isActive()?await j?.remove():await j?.request()},go=(L=-90)=>{G.update(ae=>ae+L)},q=Le([]);v?.subscribe(L=>{const ae=[];for(let Se=0;Se<L.length;Se++){const{range:[Ze,Je],subjects:xt}=L[Se];Se===0&&Ze!==0&&ae.push({time:0,text:"",interactive:!1,completed:!0}),ae.push({time:Ze/1e3,text:"",interactive:!0,completed:!xt.length}),Je!==1/0&&ae.push({time:Je/1e3,text:"",interactive:!1,completed:!0})}q.set(ae)});const wi=Le(!1);S?.subscribe(L=>{L&&xe(ee)&&ln()});const In=L=>{if(!k)return L;const ae=xe(q),Se=xe(Lt),Je=xe(Ot)/Se,xt=ae.find(Di=>Di.interactive&&!Di.completed&&Di.time>Je);return typeof xt?.time=="number"?Math.min(L,xt.time-.05):L},Pn=()=>{ft.ui.episodes.panelOpened$.set(!1)},$n=()=>{clearTimeout(Xi),clearTimeout(kt),Et.unsubscribe(),ut.unsubscribe(),C.destroy(),R.destroy(),F?.destroy(),se?.destroy(),ye.unsubscribe(),Xe?.disconnect(),Xe=null},ft={interfaceLanguage$:Ve,initVideo:qe,videoId:e,isClip:i,playerPhase:Ce,vsid:Be,state:{positionExact$:rt,positionWithScrubbing$:un,duration$:Lt,playbackState$:ei,isPlaying$:Ai,isLoaderVisible:Gt,bufferedProgress$:zi,isLive$:Ui,canChangePlaybackSpeed$:ii,isActiveLive$:vt,isOldestAvailableLive$:Ct,isRewindableLive$:Pt,isEnded$:ti,muted$:ni,volume$:Yi,trafficSavingEnabled$:oi,autoQualityLimitingAvailable$:Pi,currentQuality$:di,isAutoQualityEnabled$:Yt,availableQualities$:St,currentPlaybackRate$:qi,availablePlaybackRates$:Li,currentSubtitle$:zt,availableSubtitlesList$:Zi,currentSubtitleCaptions$:Ki,isAutoSubtitleCaptionVisible$:Jt,chromecastState$:si,chromecastDeviceName$:jt,chromecastConnected$:Ei,currentFormat$:ri,throughputEstimation$:ai,videoBitrate$:ui,videoSize$:Si,errorLog$:J,crashed$:re,isAudioAvailable$:Ii,isAudioDisabled:!!s,canDownload:x.features.download&&!!l,availableSources$:mi,hasMpegSources$:pi,isInteractive:k,showInteractiveGraph:x.features.interactiveGraph,showSeekToInteractive:x.features.seekToInteractive,showPlayPrevChapter:x.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:x.features.interactiveTimeIndicator&&!!xe(q).length,interactiveEpisodes$:q,isInteractiveTime$:S?mt(S):Le(!1),graphIsOpened$:Le(!1),isInteractiveExpectation$:wi,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:E,showInteractiveTimeIndicatorTooltip$:Le(!1)},ui:{controlsVisible:Le(!1),touched:Le(!1),controls:{prevButton:Le(void 0),playButton:Le(void 0),replayButton:Le(void 0),nextButton:Le(void 0),playPrevChapterButton:Le(void 0),seekToInteractiveButton:Le(void 0),interactiveGraphButton:Le(void 0),liveButton:Le(void 0),time:Le(void 0),episodes:Le(void 0),volume:Le(void 0),subtitles:Le(void 0),settings:Le(void 0),context:Le(void 0),chromecast:Le(void 0),pip:Le(void 0),fullscreen:Le(void 0),vkLogo:Le(void 0),interactiveTimeIndicator:Le(void 0),additionalButtons:ie.length?ie.reduce(L=>[...L,Le(void 0)],[]):[],disabledControls$:ge},modals:{hotKeyMap:{show:Le(!1),data:Le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ze,rotateAlpha:G,isAutoplay:Le(!1),contextMenuVisible:Le(!1),debugPanelVisible:Le(!1),episodes:{panelOpened$:Le(!1),openedByKeyboard$:Le(!1)},contextMenu:{btnRef$:Le(void 0),openedByKeyboard$:Le(!1),showContextMenuBtn$:Le(!1)},playerSize:Ji,isMobile:cn,mobileNotReportControlHidden$:X,mobileUnmuteButtonExpanded:Le(!1),mobileUnmuteButtonVisible:Le(!1),icon3DVideoVisible:Le(!1),settingsMenuVisible:Le(!1),settingsMenuOpenedByKeyboard:Le(!1),scrubbingInProgress:ee,is3DVideo:Le(!1),isPictureInPictureActive$:wt,pictureInPictureType$:Sn(ke),clientInfo$:Sn(Ne),currentGridType$:mn,additionalButtons$:wn,interactiveHideMobileControls:Le(!1),overlayContainer$:Le(void 0),startedByKeyboard$:Le(!1)},ads:{position:Le(0),duration:Le(0),playbackState:Le(Zt.INACTIVE),canSkip:Le(!1),secondsToWatchBeforeSkip:Le(0),postrollPassed:Le(!1)},webApi:{pictureInPictureApi:j,annotationsApi:N},actions:{internal:{preload:Ht,firstStart:L=>Y(L,!1),pause:()=>hn(!1),togglePlay:_i,toggleMuted:Bt,toggleSettingsMenu:gi,openSettingsMenu:hi,closeSettingsMenu:Hi,setVolume:Bi,setQuality:He,setTrafficSavingEnabled:L=>vi(L),setPlaybackRate:Nt,incrementPlaybackRate:Me,decrementPlaybackRate:en,setSubtitle:ji,toggleSubtitle:tn,togglePictureInPicture:xn,startScrubbing:lt,progressScrubbing:ki,completeScrubbing:dn,toggleChromecast:Un,switchToActiveLive:dt,switchFromAdsToVideo:Cn,switchFromVideoToAds:pn,skipAd:yn,setWaitingLive:Dn,setWaitingRecord:On,getDebugTextData:zn,getDebugPanelData:Hn,getVideoElement:Fn,seekTime:(L,ae,Se)=>Fi(L,ae,Se),clearDelayedBufferingCheckTimeout:fi,seekEpisodeStartTime:nn,seekToPercent:Ft,getNextEpisode:jn,seekToNextEpisode:mo,getPrevEpisode:Jn,seekToPrevEpisode:po,startLogging:$t,stopLogging:_t,startCameraManualRotation:Oe,stopCameraManualRotation:me,moveCameraFocusPX:bt,holdCamera:ct,releaseCamera:Dt,getVideoEpisodes:xi,getPreviewThumbsData:ho,downloadVideo:Mi,addLanguage:jl,setLanguage:We,nextMovie:Pe,videoRotate:go,correctSeekTimeToInteractive:In,replayInteractive:w},external:{firstStart:L=>Y(L,!0),play:()=>qn(!0),pause:()=>hn(!0),seekTime:L=>Gi(L),seekEpisodeStartTime:L=>Ni(L),setPlaybackRate:L=>Tt(L),setAutoQualityLimits:L=>on(L),setMuted:L=>bi(L,!0),setVolume:L=>Bi(L,L,!0),returnFocusToEpisodes:Pn}},callbacks:r,setUiCallbacks:L=>{Ie={...L}},getAdmanWrapper:()=>R,getLogger:()=>$,destroy:$n};return ft},du=(t,e,i,n)=>{if(!t)return;const o=["interactiveTimeIndicator"],s=t.getBoundingClientRect();for(const[l,r]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(l)){const a=i[l]?.getBoundingClientRect(),c=(n||o.includes(l))&&!!a&&!!(a.right-a.left);r.set({positionStartX:0,positionEndX:0,left:c?Math.round(a.left-s.left):0,right:c?Math.round(a.right-s.left):0,top:c?Math.round(a.top-s.top):0,bottom:c?Math.round(a.bottom-s.top):0,isDisplayed:c})}},mu=async(t,e,i)=>{await Po(),e&&i&&(i.focus(),t.set(!1))};function A4(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","dots-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class E4 extends ve{constructor(e){super(),_e(this,e,null,A4,be,{})}}function L4(t){let e,i;return e=new E4({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function V4(t){let e,i,n;function o(l){t[8](l)}let s={className:t[3]?"opened":"",testId:"btn-context-menu",disabled:t[0],ariaLabel:t[1],click:t[5],focus:t[6],blur:t[7],ariaExpanded:t[3],$$slots:{default:[L4]},$$scope:{ctx:t}};return t[2]!==void 0&&(s.ref=t[2]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&8&&(a.className=l[3]?"opened":""),r&1&&(a.disabled=l[0]),r&2&&(a.ariaLabel=l[1]),r&8&&(a.ariaExpanded=l[3]),r&8192&&(a.$$scope={dirty:r,ctx:l}),!i&&r&4&&(i=!0,a.ref=l[2],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function M4(t,e,i){let n,{disabled:o=!1}=e,{ariaLabel:s=""}=e;const l=ht(),r=l.ui.contextMenuVisible;O(t,r,v=>i(3,n=v));const a=l.ui.contextMenu.openedByKeyboard$,c=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.btnRef$,m=v=>{const S=kl(v);a.set(S),r.set(!n)};let h;const _=()=>{c.set(!0)},b=()=>{c.set(!1)};function k(v){h=v,i(2,h)}return t.$$set=v=>{"disabled"in v&&i(0,o=v.disabled),"ariaLabel"in v&&i(1,s=v.ariaLabel)},t.$$.update=()=>{t.$$.dirty&4&&h&&f.set(h)},[o,s,h,n,r,m,_,b,k]}class B4 extends ve{constructor(e){super(),_e(this,e,M4,V4,be,{disabled:0,ariaLabel:1})}}function N4(t){Ke(t,"v-iigqlx",".interactive-episode-icon-animated.v-iigqlx{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.7s;opacity:1}.invisible.v-iigqlx{opacity:0;visibility:hidden}.fullscreen.v-iigqlx:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.v-iigqlx{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.v-iigqlx{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.v-iigqlx{top:40px;right:16px}}@keyframes v-iigqlx-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}}.interactive-episode-icon-animated.v-iigqlx:after{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 v-iigqlx-pulse infinite;transition:0.3ms;pointer-events:none}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.v-iigqlx{position:absolute;top:0;width:100%;height:100%}.hidden.v-iigqlx{display:none}")}function R4(t){let e,i,n,o;return e=new j1({props:{completed:!0}}),{c(){U(e.$$.fragment),i=D(),n=I("div"),u(n,"class","ref-block v-iigqlx"),M(n,"hidden",t[1])},m(s,l){z(e,s,l),T(s,i,l),T(s,n,l),t[18](n),o=!0},p(s,l){(!o||l&2)&&M(n,"hidden",s[1])},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){g(e.$$.fragment,s),o=!1},d(s){s&&(P(i),P(n)),H(e,s),t[18](null)}}}function D4(t){let e,i,n,o,s,l;function r(c){t[19](c)}let a={tooltipContent:K("tooltip_interactive_interaction_time_indicator"),tooltipActive:t[2],initialTranslateYPx:72,tooltipPlacement:"bottom",$$slots:{default:[R4]},$$scope:{ctx:t}};return t[0]!==void 0&&(a.ref=t[0]),i=new At({props:a}),we.push(()=>Ue(i,"ref",r)),i.$on("click",t[11]),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","interactive-episode-icon-animated v-iigqlx"),M(e,"mobile",t[3]),M(e,"fullscreen",t[4]),M(e,"invisible",t[1])},m(c,f){T(c,e,f),z(i,e,null),o=!0,s||(l=he(e,"mousemove",ot(t[17])),s=!0)},p(c,[f]){const m={};f&4&&(m.tooltipActive=c[2]),f&8388611&&(m.$$scope={dirty:f,ctx:c}),!n&&f&1&&(n=!0,m.ref=c[0],Fe(()=>n=!1)),i.$set(m),(!o||f&8)&&M(e,"mobile",c[3]),(!o||f&16)&&M(e,"fullscreen",c[4]),(!o||f&2)&&M(e,"invisible",c[1])},i(c){o||(d(i.$$.fragment,c),o=!0)},o(c){g(i.$$.fragment,c),o=!1},d(c){c&&P(e),H(i),s=!1,l()}}}function O4(t,e,i){let n,o,s,l,r,a,{ref:c=void 0}=e;const f=ht(),m=f.ui.isMobile;O(t,m,C=>i(3,r=C));const h=f.ui.isFullscreen;O(t,h,C=>i(4,a=C));const _=f.state.isInteractiveTime$;O(t,_,C=>i(15,s=C));const b=f.state.showInteractiveTimeIndicatorTooltip$;O(t,b,C=>i(13,n=C));const k=f.ui.controlsVisible;O(t,k,C=>i(16,l=C));const v=f.callbacks?.onInteractiveTimeIndicatorClick,{interactiveControlsOpacity$:S}=To();O(t,S,C=>i(14,o=C));let w,y,E,ie;const V=()=>{E||v?.()};Co(()=>{window.clearTimeout(w)});function F(C){Qn.call(this,t,C)}function oe(C){we[C?"unshift":"push"](()=>{c=C,i(0,c)})}function x(C){c=C,i(0,c)}return t.$$set=C=>{"ref"in C&&i(0,c=C.ref)},t.$$.update=()=>{t.$$.dirty&65544&&i(12,y=!r&&l),t.$$.dirty&53248&&i(1,E=!s||!!o||y),t.$$.dirty&8194&&i(2,ie=n&&!E),t.$$.dirty&4&&ie&&(w=window.setTimeout(()=>{b.set(!1)},3e3))},[c,E,ie,r,a,m,h,_,b,k,S,V,y,n,o,s,l,F,oe,x]}class pu extends ve{constructor(e){super(),_e(this,e,O4,D4,be,{ref:0},N4)}}function z4(t){Ke(t,"v-st0uzk",".wrapper-bottom.v-st0uzk.v-st0uzk{pointer-events:none;position:absolute;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.v-st0uzk>.v-st0uzk{pointer-events:auto}.controls.v-st0uzk.v-st0uzk{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.v-st0uzk.v-st0uzk,.controls-right.v-st0uzk.v-st0uzk{display:flex;align-content:center}.controls-left.v-st0uzk.v-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.v-st0uzk > *:not(:first-child),.controls-right.v-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.v-st0uzk.v-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.v-st0uzk.v-st0uzk{transition:none}.settings-menu.v-st0uzk.v-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function rr(t,e,i){const n=t.slice();return n[209]=e[i].iconUrl,n[210]=e[i].ariaLabel,n[211]=e[i].testId,n[212]=e[i].onClick,n[213]=e[i].tooltip,n}function ar(t){let e,i,n;function o(l){t[173](l)}let s={disabled:!t[9],tooltipContent:K("tooltip_previous"),$$slots:{default:[H4]},$$scope:{ctx:t}};return t[23].prevButton!==void 0&&(s.ref=t[23].prevButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&512&&(a.disabled=!l[9]),r[0]&4608|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].prevButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function H4(t){let e,i;return e=new Yo({props:{click:t[12],type:"prev",disabled:!t[9],isMobile:!1}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&4096&&(s.click=n[12]),o[0]&512&&(s.disabled=!n[9]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function ur(t){let e,i,n;function o(l){t[174](l)}let s={disabled:t[74],tooltipContent:K("tooltip_restart"),$$slots:{default:[F4]},$$scope:{ctx:t}};return t[23].replayButton!==void 0&&(s.ref=t[23].replayButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[2]&4096&&(a.disabled=l[74]),r[2]&4096|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].replayButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function F4(t){let e,i;return e=new Al({props:{click:t[128],disabled:t[74]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[2]&4096&&(s.disabled=n[74]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function cr(t){let e,i,n;function o(l){t[176](l)}let s={tooltipContent:t[47],disabled:t[75],$$slots:{default:[U4]},$$scope:{ctx:t}};return t[23].playButton!==void 0&&(s.ref=t[23].playButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&65536&&(a.tooltipContent=l[47]),r[2]&8192&&(a.disabled=l[75]),r[0]&67108864|r[1]&8|r[2]&8192|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].playButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function U4(t){let e,i,n;function o(l){t[175](l)}let s={isMobile:!1,isPlaying:t[34],click:t[85],disabled:t[75]};return t[26]!==void 0&&(s.ref=t[26]),e=new Il({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&8&&(a.isPlaying=l[34]),r[2]&8192&&(a.disabled=l[75]),!i&&r[0]&67108864&&(i=!0,a.ref=l[26],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function fr(t){let e,i,n;function o(l){t[177](l)}let s={disabled:!t[8],tooltipContent:K("tooltip_next"),$$slots:{default:[q4]},$$scope:{ctx:t}};return t[23].nextButton!==void 0&&(s.ref=t[23].nextButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&256&&(a.disabled=!l[8]),r[0]&2304|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].nextButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function q4(t){let e,i;return e=new Yo({props:{click:t[11],type:"next",disabled:!t[8],isMobile:!1}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&2048&&(s.click=n[11]),o[0]&256&&(s.disabled=!n[8]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Z4(t){let e,i,n,o,s=t[121]&&W4(t),l=t[120]&&j4(t),r=t[119]&&Y4(t);return{c(){s&&s.c(),e=D(),l&&l.c(),i=D(),r&&r.c(),n=at()},m(a,c){s&&s.m(a,c),T(a,e,c),l&&l.m(a,c),T(a,i,c),r&&r.m(a,c),T(a,n,c),o=!0},p(a,c){a[121]&&s.p(a,c),a[120]&&l.p(a,c),a[119]&&r.p(a,c)},i(a){o||(d(s),d(l),d(r),o=!0)},o(a){g(s),g(l),g(r),o=!1},d(a){a&&(P(e),P(i),P(n)),s&&s.d(a),l&&l.d(a),r&&r.d(a)}}}function W4(t){let e,i,n;function o(l){t[178](l)}let s={disabled:t[73],tooltipContent:K("tooltip_interactive_go_back"),disabledTooltipContent:K(t[124]),$$slots:{default:[K4]},$$scope:{ctx:t}};return t[23].playPrevChapterButton!==void 0&&(s.ref=t[23].playPrevChapterButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[2]&2048&&(a.disabled=l[73]),r[0]&131072|r[2]&2048|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].playPrevChapterButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function K4(t){let e,i;return e=new su({props:{disabled:t[73],click:t[17]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[2]&2048&&(s.disabled=n[73]),o[0]&131072&&(s.click=n[17]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function j4(t){let e,i,n;function o(l){t[179](l)}let s={disabled:t[76],tooltipContent:K("tooltip_interactive_seek"),disabledTooltipContent:K(t[78]),$$slots:{default:[G4]},$$scope:{ctx:t}};return t[23].seekToInteractiveButton!==void 0&&(s.ref=t[23].seekToInteractiveButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[2]&16384&&(a.disabled=l[76]),r[2]&65536&&(a.disabledTooltipContent=K(l[78])),r[0]&32768|r[2]&16384|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].seekToInteractiveButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function G4(t){let e,i;return e=new nu({props:{disabled:t[76],click:t[15]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[2]&16384&&(s.disabled=n[76]),o[0]&32768&&(s.click=n[15]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Y4(t){let e,i,n;function o(l){t[180](l)}let s={tooltipContent:t[48],disabled:t[77],$$slots:{default:[Q4]},$$scope:{ctx:t}};return t[23].interactiveGraphButton!==void 0&&(s.ref=t[23].interactiveGraphButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.tooltipContent=l[48]),r[2]&32768&&(a.disabled=l[77]),r[0]&65536|r[1]&1|r[2]&32768|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].interactiveGraphButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Q4(t){let e,i;return e=new ou({props:{click:t[16],graphIsOpened:t[31],disabled:t[77]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&65536&&(s.click=n[16]),o[1]&1&&(s.graphIsOpened=n[31]),o[2]&32768&&(s.disabled=n[77]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function dr(t){let e,i,n;function o(l){t[181](l)}let s={tooltipContent:t[50],$$slots:{default:[X4]},$$scope:{ctx:t}};return t[23].liveButton!==void 0&&(s.ref=t[23].liveButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&524288&&(a.tooltipContent=l[50]),r[0]&2097152|r[1]&524288|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].liveButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function X4(t){let e,i;return e=new x1({props:{isActiveLive:t[21],isMobile:!1,ariaLabel:t[50]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.isActiveLive=n[21]),o[1]&524288&&(s.ariaLabel=n[50]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function mr(t){let e,i,n;function o(l){t[182](l)}let s={isMobile:!1,showDuration:t[55],position:t[4]?t[79]:t[80],duration:t[4]?t[81]:t[82]};return t[23].time!==void 0&&(s.ref=t[23].time),e=new W1({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&16777216&&(a.showDuration=l[55]),r[0]&16|r[2]&393216&&(a.position=l[4]?l[79]:l[80]),r[0]&16|r[2]&1572864&&(a.duration=l[4]?l[81]:l[82]),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].time,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function pr(t){let e,i;return e=new iu({props:{position:t[80],duration:t[82],timeCodes:t[101]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[2]&262144&&(s.position=n[80]),o[2]&1048576&&(s.duration=n[82]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function J4(t){let e,i,n=t[20]&&pr(t);return{c(){n&&n.c(),e=at()},m(o,s){n&&n.m(o,s),T(o,e,s),i=!0},p(o,s){o[20]?n?(n.p(o,s),s[0]&1048576&&d(n,1)):(n=pr(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),g(n,1,1,()=>{n=null}),de())},i(o){i||(d(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d(o)}}}function x4(t){let e,i;return e=new ru({props:{iconUrl:t[209],ariaLabel:t[210]??t[213],testId:t[211],onClick:t[212]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&268435456&&(s.iconUrl=n[209]),o[0]&268435456&&(s.ariaLabel=n[210]??n[213]),o[0]&268435456&&(s.testId=n[211]),o[0]&268435456&&(s.onClick=n[212]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function hr(t){let e,i;return e=new At({props:{tooltipContent:t[213],width:40,$$slots:{default:[x4]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&268435456&&(s.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function gr(t){let e,i,n;function o(l){t[185](l)}let s={disabled:!t[6],tooltipContent:t[51],$$slots:{default:[$4]},$$scope:{ctx:t}};return t[23].vkLogo!==void 0&&(s.ref=t[23].vkLogo),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&64&&(a.disabled=!l[6]),r[1]&1048576&&(a.tooltipContent=l[51]),r[0]&192|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].vkLogo,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function $4(t){let e,i;return e=new X1({props:{click:t[86],logoClickable:t[6],videoLogoUrl:t[7]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&64&&(s.logoClickable=n[6]),o[0]&128&&(s.videoLogoUrl=n[7]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function e3(t){let e,i;return e=new p2({props:{click:t[127]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p:W,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function br(t){let e,i,n;function o(l){t[187](l)}let s={tooltipContent:t[52],$$slots:{default:[t3]},$$scope:{ctx:t}};return t[23].subtitles!==void 0&&(s.ref=t[23].subtitles),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&2097152&&(a.tooltipContent=l[52]),r[0]&262144|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].subtitles,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function t3(t){let e,i;return e=new Sd({props:{isSubtitlesEnabled:t[18],click:t[87]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&262144&&(s.isSubtitlesEnabled=n[18]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function _r(t){let e,i,n,o;function s(r){t[188](r)}let l={supportLink:t[10],playerControlsHeight:t[46]?.clientHeight,returnFocus:t[14]};return t[24]!==void 0&&(l.ref=t[24]),i=new Z1({props:l}),we.push(()=>Ue(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","settings-menu v-st0uzk")},m(r,a){T(r,e,a),z(i,e,null),o=!0},p(r,a){const c={};a[0]&1024&&(c.supportLink=r[10]),a[1]&32768&&(c.playerControlsHeight=r[46]?.clientHeight),a[0]&16384&&(c.returnFocus=r[14]),!n&&a[0]&16777216&&(n=!0,c.ref=r[24],Fe(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),H(i)}}}function vr(t){let e,i,n;function o(l){t[190](l)}let s={tooltipContent:t[27]?void 0:K("tooltip_settings_off"),$$slots:{default:[i3]},$$scope:{ctx:t}};return t[23].settings!==void 0&&(s.ref=t[23].settings),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&134217728&&(a.tooltipContent=l[27]?void 0:K("tooltip_settings_off")),r[0]&33554432|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].settings,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function i3(t){let e,i,n;function o(l){t[189](l)}let s={};return t[25]!==void 0&&(s.ref=t[25]),e=new Pl({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&33554432&&(i=!0,a.ref=l[25],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function n3(t){let e,i,n;function o(l){t[191](l)}let s={className:t[41]?"":"out-of-view",tooltipContent:t[49],$$slots:{default:[o3]},$$scope:{ctx:t}};return t[23].context!==void 0&&(s.ref=t[23].context),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&1024&&(a.className=l[41]?"":"out-of-view"),r[1]&262144&&(a.tooltipContent=l[49]),r[1]&262144|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].context,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function o3(t){let e,i;return e=new B4({props:{ariaLabel:t[49]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[1]&262144&&(s.ariaLabel=n[49]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function kr(t){let e,i,n;function o(l){t[192](l)}let s={tooltipContent:t[53],$$slots:{default:[l3]},$$scope:{ctx:t}};return t[23].fullscreen!==void 0&&(s.ref=t[23].fullscreen),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&4194304&&(a.tooltipContent=l[53]),r[0]&1073750016|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].fullscreen,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function l3(t){let e,i;return e=new Y1({props:{click:t[13],isFullscreen:t[30]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&8192&&(s.click=n[13]),o[0]&1073741824&&(s.isFullscreen=n[30]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function wr(t){let e,i,n;function o(l){t[193](l)}let s={tooltipContent:t[54],$$slots:{default:[s3]},$$scope:{ctx:t}};return t[23].chromecast!==void 0&&(s.ref=t[23].chromecast),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&8388608&&(a.tooltipContent=l[54]),r[0]&536870912|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].chromecast,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function s3(t){let e,i;return e=new J1({props:{isMobile:!1,state:t[29],click:t[126]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&536870912&&(s.state=n[29]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function r3(t){let e,i,n;function o(l){t[196](l)}let s={};return t[23].interactiveTimeIndicator!==void 0&&(s.ref=t[23].interactiveTimeIndicator),e=new pu({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&8388608&&(i=!0,a.ref=l[23].interactiveTimeIndicator,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function a3(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe,x,C,$,R,se,j;i=new tu({props:{isHidden:!t[45],isAds:t[4],canRewindLive:t[5],isRewindableLive:t[32]}});let N=t[38]&&ar(t),Q=t[35]&&ur(t),A=t[36]&&cr(t),ne=t[37]&&fr(t),Ie=t[117]&&Z4(t),Ne=!t[4]&&t[33]&&dr(t),Be=t[19]&&mr(t);function ze(pe){t[183](pe)}let ce={className:"w-max",disabled:!t[20],tooltipContent:K("tooltip_episodes"),$$slots:{default:[J4]},$$scope:{ctx:t}};t[23].episodes!==void 0&&(ce.ref=t[23].episodes),_=new At({props:ce}),we.push(()=>Ue(_,"ref",ze));let ke=Rt(t[28]),G=[];for(let pe=0;pe<ke.length;pe+=1)G[pe]=hr(rr(t,ke,pe));const J=pe=>g(G[pe],1,1,()=>{G[pe]=null});let ye=t[43]&&gr(t);function re(pe){t[186](pe)}let We={$$slots:{default:[e3]},$$scope:{ctx:t}};t[23].volume!==void 0&&(We.ref=t[23].volume),E=new At({props:We}),we.push(()=>Ue(E,"ref",re));let Ve=t[40]&&br(t),Ee=!t[83]&&!t[4]&&_r(t),ue=t[42]&&vr(t),Ce=t[84].features.contextMenuButton&&n3(t),ge=t[44]&&kr(t),le=t[39]&&wr(t),qe=t[122]&&r3(t);return{c(){e=I("div"),U(i.$$.fragment),n=D(),o=I("div"),s=I("div"),N&&N.c(),l=D(),Q&&Q.c(),r=D(),A&&A.c(),a=D(),ne&&ne.c(),c=D(),Ie&&Ie.c(),f=D(),Ne&&Ne.c(),m=D(),Be&&Be.c(),h=D(),U(_.$$.fragment),v=D(),S=I("div");for(let pe=0;pe<G.length;pe+=1)G[pe].c();w=D(),ye&&ye.c(),y=D(),U(E.$$.fragment),V=D(),Ve&&Ve.c(),F=D(),Ee&&Ee.c(),oe=D(),ue&&ue.c(),x=D(),Ce&&Ce.c(),C=D(),ge&&ge.c(),$=D(),le&&le.c(),R=D(),qe&&qe.c(),se=at(),u(s,"class","controls-left v-st0uzk"),ao(()=>t[184].call(s)),u(S,"class","controls-right v-st0uzk"),u(o,"class","controls v-st0uzk"),u(e,"class","wrapper-bottom v-st0uzk"),M(e,"hidden",t[1]),M(e,"controls-hidden",!t[3]),M(e,"no-smooth",t[2])},m(pe,Pe){T(pe,e,Pe),z(i,e,null),p(e,n),p(e,o),p(o,s),N&&N.m(s,null),p(s,l),Q&&Q.m(s,null),p(s,r),A&&A.m(s,null),p(s,a),ne&&ne.m(s,null),p(s,c),Ie&&Ie.m(s,null),p(s,f),Ne&&Ne.m(s,null),p(s,m),Be&&Be.m(s,null),p(s,h),z(_,s,null),k=hl(s,t[184].bind(s)),p(o,v),p(o,S);for(let Te=0;Te<G.length;Te+=1)G[Te]&&G[Te].m(S,null);p(S,w),ye&&ye.m(S,null),p(S,y),z(E,S,null),p(S,V),Ve&&Ve.m(S,null),p(S,F),Ee&&Ee.m(S,null),p(S,oe),ue&&ue.m(S,null),p(S,x),Ce&&Ce.m(S,null),p(S,C),ge&&ge.m(S,null),p(S,$),le&&le.m(S,null),t[194](o),t[195](e),T(pe,R,Pe),qe&&qe.m(pe,Pe),T(pe,se,Pe),j=!0},p(pe,Pe){const Te={};Pe[1]&16384&&(Te.isHidden=!pe[45]),Pe[0]&16&&(Te.isAds=pe[4]),Pe[0]&32&&(Te.canRewindLive=pe[5]),Pe[1]&2&&(Te.isRewindableLive=pe[32]),i.$set(Te),pe[38]?N?(N.p(pe,Pe),Pe[1]&128&&d(N,1)):(N=ar(pe),N.c(),d(N,1),N.m(s,l)):N&&(fe(),g(N,1,1,()=>{N=null}),de()),pe[35]?Q?(Q.p(pe,Pe),Pe[1]&16&&d(Q,1)):(Q=ur(pe),Q.c(),d(Q,1),Q.m(s,r)):Q&&(fe(),g(Q,1,1,()=>{Q=null}),de()),pe[36]?A?(A.p(pe,Pe),Pe[1]&32&&d(A,1)):(A=cr(pe),A.c(),d(A,1),A.m(s,a)):A&&(fe(),g(A,1,1,()=>{A=null}),de()),pe[37]?ne?(ne.p(pe,Pe),Pe[1]&64&&d(ne,1)):(ne=fr(pe),ne.c(),d(ne,1),ne.m(s,c)):ne&&(fe(),g(ne,1,1,()=>{ne=null}),de()),pe[117]&&Ie.p(pe,Pe),!pe[4]&&pe[33]?Ne?(Ne.p(pe,Pe),Pe[0]&16|Pe[1]&4&&d(Ne,1)):(Ne=dr(pe),Ne.c(),d(Ne,1),Ne.m(s,m)):Ne&&(fe(),g(Ne,1,1,()=>{Ne=null}),de()),pe[19]?Be?(Be.p(pe,Pe),Pe[0]&524288&&d(Be,1)):(Be=mr(pe),Be.c(),d(Be,1),Be.m(s,h)):Be&&(fe(),g(Be,1,1,()=>{Be=null}),de());const je={};if(Pe[0]&1048576&&(je.disabled=!pe[20]),Pe[0]&1048576|Pe[2]&1310720|Pe[6]&1073741824&&(je.$$scope={dirty:Pe,ctx:pe}),!b&&Pe[0]&8388608&&(b=!0,je.ref=pe[23].episodes,Fe(()=>b=!1)),_.$set(je),Pe[0]&268435456){ke=Rt(pe[28]);let Xe;for(Xe=0;Xe<ke.length;Xe+=1){const Qe=rr(pe,ke,Xe);G[Xe]?(G[Xe].p(Qe,Pe),d(G[Xe],1)):(G[Xe]=hr(Qe),G[Xe].c(),d(G[Xe],1),G[Xe].m(S,w))}for(fe(),Xe=ke.length;Xe<G.length;Xe+=1)J(Xe);de()}pe[43]?ye?(ye.p(pe,Pe),Pe[1]&4096&&d(ye,1)):(ye=gr(pe),ye.c(),d(ye,1),ye.m(S,y)):ye&&(fe(),g(ye,1,1,()=>{ye=null}),de());const tt={};Pe[6]&1073741824&&(tt.$$scope={dirty:Pe,ctx:pe}),!ie&&Pe[0]&8388608&&(ie=!0,tt.ref=pe[23].volume,Fe(()=>ie=!1)),E.$set(tt),pe[40]?Ve?(Ve.p(pe,Pe),Pe[1]&512&&d(Ve,1)):(Ve=br(pe),Ve.c(),d(Ve,1),Ve.m(S,F)):Ve&&(fe(),g(Ve,1,1,()=>{Ve=null}),de()),!pe[83]&&!pe[4]?Ee?(Ee.p(pe,Pe),Pe[0]&16|Pe[2]&2097152&&d(Ee,1)):(Ee=_r(pe),Ee.c(),d(Ee,1),Ee.m(S,oe)):Ee&&(fe(),g(Ee,1,1,()=>{Ee=null}),de()),pe[42]?ue?(ue.p(pe,Pe),Pe[1]&2048&&d(ue,1)):(ue=vr(pe),ue.c(),d(ue,1),ue.m(S,x)):ue&&(fe(),g(ue,1,1,()=>{ue=null}),de()),pe[84].features.contextMenuButton&&Ce.p(pe,Pe),pe[44]?ge?(ge.p(pe,Pe),Pe[1]&8192&&d(ge,1)):(ge=kr(pe),ge.c(),d(ge,1),ge.m(S,$)):ge&&(fe(),g(ge,1,1,()=>{ge=null}),de()),pe[39]?le?(le.p(pe,Pe),Pe[1]&256&&d(le,1)):(le=wr(pe),le.c(),d(le,1),le.m(S,null)):le&&(fe(),g(le,1,1,()=>{le=null}),de()),(!j||Pe[0]&2)&&M(e,"hidden",pe[1]),(!j||Pe[0]&8)&&M(e,"controls-hidden",!pe[3]),(!j||Pe[0]&4)&&M(e,"no-smooth",pe[2]),pe[122]&&qe.p(pe,Pe)},i(pe){if(!j){d(i.$$.fragment,pe),d(N),d(Q),d(A),d(ne),d(Ie),d(Ne),d(Be),d(_.$$.fragment,pe);for(let Pe=0;Pe<ke.length;Pe+=1)d(G[Pe]);d(ye),d(E.$$.fragment,pe),d(Ve),d(Ee),d(ue),d(Ce),d(ge),d(le),d(qe),j=!0}},o(pe){g(i.$$.fragment,pe),g(N),g(Q),g(A),g(ne),g(Ie),g(Ne),g(Be),g(_.$$.fragment,pe),G=G.filter(Boolean);for(let Pe=0;Pe<G.length;Pe+=1)g(G[Pe]);g(ye),g(E.$$.fragment,pe),g(Ve),g(Ee),g(ue),g(Ce),g(ge),g(le),g(qe),j=!1},d(pe){pe&&(P(e),P(R),P(se)),H(i),N&&N.d(),Q&&Q.d(),A&&A.d(),ne&&ne.d(),Ie&&Ie.d(),Ne&&Ne.d(),Be&&Be.d(),H(_),k(),kn(G,pe),ye&&ye.d(),H(E),Ve&&Ve.d(),Ee&&Ee.d(),ue&&ue.d(),Ce&&Ce.d(),ge&&ge.d(),le&&le.d(),t[194](null),t[195](null),qe&&qe.d(pe)}}}function u3(t,e,i){let n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe,x,C,$,R,se,j,N,Q,A,ne,Ie=W,Ne=()=>(Ie(),Ie=qt(x,Z=>i(144,ne=Z)),x),Be,ze=W,ce=()=>(ze(),ze=qt(oe,Z=>i(145,Be=Z)),oe),ke,G=W,J=()=>(G(),G=qt(F,Z=>i(146,ke=Z)),F),ye,re=W,We=()=>(re(),re=qt(V,Z=>i(147,ye=Z)),V),Ve,Ee=W,ue=()=>(Ee(),Ee=qt(ie,Z=>i(148,Ve=Z)),ie),Ce,ge=W,le=()=>(ge(),ge=qt(E,Z=>i(149,Ce=Z)),E),qe,pe=W,Pe=()=>(pe(),pe=qt(y,Z=>i(150,qe=Z)),y),Te,je=W,tt=()=>(je(),je=qt(w,Z=>i(151,Te=Z)),w),Xe,Qe=W,it=()=>(Qe(),Qe=qt(S,Z=>i(152,Xe=Z)),S),Et,ut=W,$t=()=>(ut(),ut=qt(v,Z=>i(153,Et=Z)),v),_t,Oe=W,me=()=>(Oe(),Oe=qt(k,Z=>i(154,_t=Z)),k),bt,ct=W,Dt=()=>(ct(),ct=qt(b,Z=>i(155,bt=Z)),b),rt,wt=W,ei=()=>(wt(),wt=qt(_,Z=>i(156,rt=Z)),_),Kt,ti=W,Ui=()=>(ti(),ti=qt(h,Z=>i(157,Kt=Z)),h),ii,Ci=W,Yi=()=>(Ci(),Ci=qt(m,Z=>i(158,ii=Z)),m),ni,oi=W,Pi=()=>(oi(),oi=qt(f,Z=>i(159,ni=Z)),f),Vt,li=W,si=()=>(li(),li=qt(c,Z=>i(160,Vt=Z)),c),jt,ri,ai,ui,Si,Ti,Ii,yt,ci,Gt,fi,Lt,Ai,vt,Ct,Ot,Pt,Ei,Mt,Yt,Qt,di,St;t.$$.on_destroy.push(()=>Ie()),t.$$.on_destroy.push(()=>ze()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>re()),t.$$.on_destroy.push(()=>Ee()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>pe()),t.$$.on_destroy.push(()=>je()),t.$$.on_destroy.push(()=>Qe()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>Oe()),t.$$.on_destroy.push(()=>ct()),t.$$.on_destroy.push(()=>wt()),t.$$.on_destroy.push(()=>ti()),t.$$.on_destroy.push(()=>Ci()),t.$$.on_destroy.push(()=>oi()),t.$$.on_destroy.push(()=>li());let{bottomHidden:qi}=e,{bottomNoSmooth:Li}=e,{showControls:Qi}=e,{controlsElementRef:Xt=void 0}=e,{isAds:gt=!1}=e,{canRewindLive:zt}=e,{logoClickable:Zi}=e,{logoHidden:Wi}=e,{videoLogoUrl:Ki}=e,{showNextPrevButtons:Jt}=e,{nextButtonActive:zi}=e,{prevButtonActive:mi}=e,{isOneVideoPlaylist:pi=!1}=e,{supportLink:Vi}=e,{customFullscreenSupported:Mi=!0}=e,{playNextVideo:Bt}=e,{playPrevVideo:Hi}=e,{repeatPlaylist:hi}=e,{toggleFullscreen:gi}=e,{returnFocus:Bi}=e,{seekToInteractive:bi}=e,{toggleGraph:Ht}=e,{playPrevChapter:_i}=e;const He=ht(),vi=To(),Nt=an(),Me=He.actions.internal.toggleMuted,en=He.actions.internal.togglePlay,ji=He.actions.internal.pause,tn=He.actions.internal.toggleSubtitle,Fi=He.callbacks?.onAudioDoesNotExistHint,nn=He.callbacks?.onAudioDisabledHint,Ft=He.state.duration$;O(t,Ft,Z=>i(82,di=Z));const Gi=He.state.positionWithScrubbing$;O(t,Gi,Z=>i(80,Yt=Z));const on=He.state.playbackState$;O(t,on,Z=>i(161,ai=Z));const Ni=He.state.chromecastConnected$;O(t,Ni,Z=>i(83,St=Z));const Tt=He.state.isAudioAvailable$;O(t,Tt,Z=>i(197,C=Z));const Ri=He.state.isAudioDisabled,ee=He.state.isEnded$;O(t,ee,Z=>i(169,vt=Z));const lt=He.state.isLive$;O(t,lt,Z=>i(33,yt=Z));const ki=He.state.isActiveLive$;O(t,ki,Z=>i(163,Ti=Z));const kt=He.state.isRewindableLive$;O(t,kt,Z=>i(32,Ii=Z));const Xi=He.ui.isPictureInPictureActive$;O(t,Xi,Z=>i(165,Gt=Z));const ln=He.ui.pictureInPictureType$;O(t,ln,Z=>i(164,ci=Z));const rn=He.ui.settingsMenuVisible;O(t,rn,Z=>i(27,se=Z));const dn=He.ui.settingsMenuOpenedByKeyboard;O(t,dn,Z=>i(140,R=Z));const un=He.ui.controls,Ji=He.actions.internal.getVideoEpisodes(),mn=He.state.chromecastState$;O(t,mn,Z=>i(29,jt=Z));const cn=He.state.availableSubtitlesList$;O(t,cn,Z=>i(168,Ai=Z));const wn=He.state.currentSubtitle$;O(t,wn,Z=>i(170,Ct=Z));const X=un.disabledControls$;O(t,X,Z=>i(172,Pt=Z));const dt=He.ui.contextMenuVisible;O(t,dt,Z=>i(162,ui=Z));const yn=He.ui.contextMenu.showContextMenuBtn$;O(t,yn,Z=>i(166,fi=Z));const Cn=He.ui.contextMenu.openedByKeyboard$;O(t,Cn,Z=>i(167,Lt=Z));const pn=He.ui.startedByKeyboard$;O(t,pn,Z=>i(139,$=Z));const Dn=He.ads.duration;O(t,Dn,Z=>i(81,Qt=Z));const On=He.ads.position;O(t,On,Z=>i(79,Mt=Z));const zn=He.ads.playbackState;O(t,zn,Z=>i(171,Ot=Z));const Hn=He.ui.isFullscreen;O(t,Hn,Z=>i(30,ri=Z));const Fn=He.ui.playerSize;O(t,Fn,Z=>i(142,N=Z));const Un=He.ui.currentGridType$;O(t,Un,Z=>i(143,Q=Z));const hn=He.ui.additionalButtons$;O(t,hn,Z=>i(28,A=Z));const qn=He.actions.internal.getVideoElement,Y=He.actions.internal.replayInteractive,xi=He.state.isInteractive,jn=He.state.isInteractiveTime$;O(t,jn,Z=>i(141,j=Z));const mo=He.state.showInteractiveGraph,Jn=He.state.showSeekToInteractive,po=He.state.showPlayPrevChapter,ho=He.state.showInteractiveTimeIndicator,xn=He.state.graphIsOpened$;O(t,xn,Z=>i(31,Si=Z));const go=He.state.playPrevChapterDisabledTooltip,q=vi.seekToInteractiveDisabledTooltip$;O(t,q,Z=>i(78,Ei=Z));const wi=()=>He.actions.internal.toggleChromecast();let In,Pn,$n,ft,L,ae,Se,Ze,Je,xt,Di,Ut,gn,Zn,Ao,eo,Qo,Xo,Vl,Ml,Bl,Jo="";const Au=(Z,$o)=>{if(!Z){i(50,Jo=K("tooltip_live"));return}$o===$e.PlaybackState.PAUSED&&i(50,Jo=K("tooltip_play"))};let Nl,Rl,Dl,Ol,Eo;const Ge={};let bn,bo,xo,zl;const Eu=te.throttleFn(du,n1,{leading:!1});let Lo,Vo,Mo;function Lu(){Ri?nn?.():C?Me():Fi?.()}const Vu=xi?Y:pi?en:hi;function Mu(Z){t.$$.not_equal(Ge.prevButton,Z)&&(Ge.prevButton=Z,i(23,Ge))}function Bu(Z){t.$$.not_equal(Ge.replayButton,Z)&&(Ge.replayButton=Z,i(23,Ge))}function Nu(Z){Mo=Z,i(26,Mo)}function Ru(Z){t.$$.not_equal(Ge.playButton,Z)&&(Ge.playButton=Z,i(23,Ge))}function Du(Z){t.$$.not_equal(Ge.nextButton,Z)&&(Ge.nextButton=Z,i(23,Ge))}function Ou(Z){t.$$.not_equal(Ge.playPrevChapterButton,Z)&&(Ge.playPrevChapterButton=Z,i(23,Ge))}function zu(Z){t.$$.not_equal(Ge.seekToInteractiveButton,Z)&&(Ge.seekToInteractiveButton=Z,i(23,Ge))}function Hu(Z){t.$$.not_equal(Ge.interactiveGraphButton,Z)&&(Ge.interactiveGraphButton=Z,i(23,Ge))}function Fu(Z){t.$$.not_equal(Ge.liveButton,Z)&&(Ge.liveButton=Z,i(23,Ge))}function Uu(Z){t.$$.not_equal(Ge.time,Z)&&(Ge.time=Z,i(23,Ge))}function qu(Z){t.$$.not_equal(Ge.episodes,Z)&&(Ge.episodes=Z,i(23,Ge))}function Zu(){Eo=this.clientWidth,i(22,Eo)}function Wu(Z){t.$$.not_equal(Ge.vkLogo,Z)&&(Ge.vkLogo=Z,i(23,Ge))}function Ku(Z){t.$$.not_equal(Ge.volume,Z)&&(Ge.volume=Z,i(23,Ge))}function ju(Z){t.$$.not_equal(Ge.subtitles,Z)&&(Ge.subtitles=Z,i(23,Ge))}function Gu(Z){Lo=Z,i(24,Lo)}function Yu(Z){Vo=Z,i(25,Vo)}function Qu(Z){t.$$.not_equal(Ge.settings,Z)&&(Ge.settings=Z,i(23,Ge))}function Xu(Z){t.$$.not_equal(Ge.context,Z)&&(Ge.context=Z,i(23,Ge))}function Ju(Z){t.$$.not_equal(Ge.fullscreen,Z)&&(Ge.fullscreen=Z,i(23,Ge))}function xu(Z){t.$$.not_equal(Ge.chromecast,Z)&&(Ge.chromecast=Z,i(23,Ge))}function $u(Z){we[Z?"unshift":"push"](()=>{Qo=Z,i(46,Qo)})}function ec(Z){we[Z?"unshift":"push"](()=>{Xt=Z,i(0,Xt)})}function tc(Z){t.$$.not_equal(Ge.interactiveTimeIndicator,Z)&&(Ge.interactiveTimeIndicator=Z,i(23,Ge))}return t.$$set=Z=>{"bottomHidden"in Z&&i(1,qi=Z.bottomHidden),"bottomNoSmooth"in Z&&i(2,Li=Z.bottomNoSmooth),"showControls"in Z&&i(3,Qi=Z.showControls),"controlsElementRef"in Z&&i(0,Xt=Z.controlsElementRef),"isAds"in Z&&i(4,gt=Z.isAds),"canRewindLive"in Z&&i(5,zt=Z.canRewindLive),"logoClickable"in Z&&i(6,Zi=Z.logoClickable),"logoHidden"in Z&&i(129,Wi=Z.logoHidden),"videoLogoUrl"in Z&&i(7,Ki=Z.videoLogoUrl),"showNextPrevButtons"in Z&&i(130,Jt=Z.showNextPrevButtons),"nextButtonActive"in Z&&i(8,zi=Z.nextButtonActive),"prevButtonActive"in Z&&i(9,mi=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&i(131,pi=Z.isOneVideoPlaylist),"supportLink"in Z&&i(10,Vi=Z.supportLink),"customFullscreenSupported"in Z&&i(132,Mi=Z.customFullscreenSupported),"playNextVideo"in Z&&i(11,Bt=Z.playNextVideo),"playPrevVideo"in Z&&i(12,Hi=Z.playPrevVideo),"repeatPlaylist"in Z&&i(133,hi=Z.repeatPlaylist),"toggleFullscreen"in Z&&i(13,gi=Z.toggleFullscreen),"returnFocus"in Z&&i(14,Bi=Z.returnFocus),"seekToInteractive"in Z&&i(15,bi=Z.seekToInteractive),"toggleGraph"in Z&&i(16,Ht=Z.toggleGraph),"playPrevChapter"in Z&&i(17,_i=Z.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[5]&131072&&i(138,n=Pt.has(st.EPISODE_BUTTON)),t.$$.dirty[5]&131072&&i(77,o=Pt.has(st.GRAPH_BUTTON)),t.$$.dirty[5]&131072&&i(76,s=Pt.has(st.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[5]&131072&&i(75,l=Pt.has(st.PLAY_BUTTON)),t.$$.dirty[5]&131072&&i(74,r=Pt.has(st.REPLAY_BUTTON)),t.$$.dirty[5]&131072&&i(73,a=Pt.has(st.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[0]&16|t.$$.dirty[5]&65600&&i(34,In=gt?Ot===Zt.PLAYING:ai===$e.PlaybackState.PLAYING),t.$$.dirty[5]&32768&&i(18,Pn=Ct.value!=="off"),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(35,$n=vt&&!gt||xi),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(36,ft=!vt||xi||gt),t.$$.dirty[4]&524288&&i(134,L=_n(Q,exports.GridTypes.M)),t.$$.dirty[0]&272|t.$$.dirty[4]&524352&&i(37,ae=Jt&&_n(Q,exports.GridTypes.M)&&!gt&&zi),t.$$.dirty[0]&528|t.$$.dirty[4]&524352&&i(38,Se=Jt&&_n(Q,exports.GridTypes.M)&&!gt&&mi),t.$$.dirty[0]&536870912|t.$$.dirty[4]&524288|t.$$.dirty[5]&1536&&i(39,Ze=jt!==$e.ChromecastState.NOT_AVAILABLE&&!(Gt&&ci===Ln.DocumentPictureInPicture)&&_n(Q,exports.GridTypes.M)&&!xi),t.$$.dirty[4]&524288|t.$$.dirty[5]&8192&&i(40,Je=Ai.length>0&&_n(Q,exports.GridTypes.M)),t.$$.dirty[5]&6144&&i(41,xt=Lt||fi),t.$$.dirty[4]&524288&&i(42,Di=_n(Q,exports.GridTypes.S)),t.$$.dirty[4]&32&&i(43,Ut=!Wi),t.$$.dirty[4]&524576|t.$$.dirty[5]&1536&&i(44,gn=Nt.features.fullscreen&&(Wi||_n(Q,exports.GridTypes.S))&&!(Gt&&ci===Ln.DocumentPictureInPicture)&&(xi?Mi:!0)),t.$$.dirty[0]&16|t.$$.dirty[1]&4&&i(19,Zn=(!yt||gt)&&!(Nt.features.interactiveHideTime&&xi)),t.$$.dirty[4]&262144&&i(45,Ao=N.width>100),t.$$.dirty[0]&16|t.$$.dirty[1]&4|t.$$.dirty[4]&17408&&i(20,eo=!gt&&!yt&&!!Ji?.length&&L&&!n),t.$$.dirty[1]&2|t.$$.dirty[5]&256&&i(21,Xo=!Ii||Ti),t.$$.dirty[5]&64&&i(47,Vl=ai===$e.PlaybackState.PLAYING?K("tooltip_pause"):K("tooltip_play")),t.$$.dirty[1]&1&&i(48,Ml=K(Si?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off")),t.$$.dirty[5]&128&&i(49,Bl=K(ui?"aria_label_context_menu_close":"aria_label_context_menu_open")),t.$$.dirty[0]&2097152|t.$$.dirty[5]&64&&Au(Xo,ai),t.$$.dirty[0]&262144&&i(52,Rl=K(Pn?"tooltip_subtitles_on":"tooltip_subtitles_off")),t.$$.dirty[0]&1073741824&&i(53,Dl=K(ri?"tooltip_fullscreen_on":"tooltip_fullscreen_off")),t.$$.dirty[0]&536870912&&i(54,Ol=jt===$e.ChromecastState.CONNECTED?K("tooltip_chromecast_on"):K("tooltip_chromecast_off")),t.$$.dirty[0]&268435456|t.$$.dirty[4]&2146435072|t.$$.dirty[5]&63&&i(135,bn={prevButton:Vt?Vt.right-Vt.left:0,replayButton:ni?ni.right-ni.left:0,playButton:ii?ii.right-ii.left:0,nextButton:Kt?Kt.right-Kt.left:0,playPrevChapterButton:rt?rt.right-rt.left:0,seekToInteractiveButton:bt?bt.right-bt.left:0,interactiveGraphButton:_t?_t.right-_t.left:0,liveButton:Et?Et.right-Et.left:0,time:Xe?Xe.right-Xe.left:0,episodes:Te?Te.right-Te.left:0,vkLogo:qe?qe.right-qe.left:0,volume:Ce?Ce.right-Ce.left:0,subtitles:Ve?Ve.right-Ve.left:0,settings:ye?ye.right-ye.left:0,context:ke?ke.right-ke.left:0,fullscreen:Be?Be.right-Be.left:0,chromecast:ne?ne.right-ne.left:0,additionalButtons:A.length?A.reduce(Z=>[...Z,40],[]):[]}),t.$$.dirty[4]&6144&&(!bo||bo<bn.time)&&i(136,bo=bn.time),t.$$.dirty[0]&5767168|t.$$.dirty[4]&530432){let Z=0;eo&&(_n(Q,exports.GridTypes.XL)?Z=bn.time:Z=Ec);const $o=bn.prevButton+bn.playButton+bn.nextButton+bn.seekToInteractiveButton+bn.interactiveGraphButton+bn.liveButton+bo+Z;i(137,xo=Zn&&Eo>=$o)}t.$$.dirty[4]&532480&&i(55,zl=xo&&_n(Q,exports.GridTypes.M)),t.$$.dirty[0]&8388616|t.$$.dirty[4]&393216&&Eu(qn(),un,Ge,Qi),t.$$.dirty[0]&167772160&&wl(Vo,se,dn),t.$$.dirty[0]&150994944|t.$$.dirty[4]&65536&&yl(Lo,se,R),t.$$.dirty[0]&67108864|t.$$.dirty[4]&32768&&mu(pn,$,Mo)},i(51,Nl=Nt.logoType===uo.VK_VIDEO?K("tooltip_vk_video_logo"):K("tooltip_vk_logo")),si(i(72,{prevButton:c,replayButton:f,playButton:m,nextButton:h,playPrevChapterButton:_,seekToInteractiveButton:b,interactiveGraphButton:k,liveButton:v,time:S,episodes:w,vkLogo:y,volume:E,subtitles:ie,settings:V,context:F,fullscreen:oe,chromecast:x}=un,c,Pi(i(71,f)),Yi(i(70,m)),Ui(i(69,h)),ei(i(68,_)),Dt(i(67,b)),me(i(66,k)),$t(i(65,v)),it(i(64,S)),tt(i(63,w)),Pe(i(62,y)),le(i(61,E)),ue(i(60,ie)),We(i(59,V)),J(i(58,F)),ce(i(57,oe)),Ne(i(56,x)))),[Xt,qi,Li,Qi,gt,zt,Zi,Ki,zi,mi,Vi,Bt,Hi,gi,Bi,bi,Ht,_i,Pn,Zn,eo,Xo,Eo,Ge,Lo,Vo,Mo,se,A,jt,ri,Si,Ii,yt,In,$n,ft,ae,Se,Ze,Je,xt,Di,Ut,gn,Ao,Qo,Vl,Ml,Bl,Jo,Nl,Rl,Dl,Ol,zl,x,oe,F,V,ie,E,y,w,S,v,k,b,_,h,m,f,c,a,r,l,s,o,Ei,Mt,Yt,Qt,di,St,Nt,en,ji,tn,Ft,Gi,on,Ni,Tt,ee,lt,ki,kt,Xi,ln,rn,dn,Ji,mn,cn,wn,X,dt,yn,Cn,pn,Dn,On,zn,Hn,Fn,Un,hn,xi,jn,mo,Jn,po,ho,xn,go,q,wi,Lu,Vu,Wi,Jt,pi,Mi,hi,L,bn,bo,xo,n,$,R,j,N,Q,ne,Be,ke,ye,Ve,Ce,qe,Te,Xe,Et,_t,bt,rt,Kt,ii,ni,Vt,ai,ui,Ti,ci,Gt,fi,Lt,Ai,vt,Ct,Ot,Pt,Mu,Bu,Nu,Ru,Du,Ou,zu,Hu,Fu,Uu,qu,Zu,Wu,Ku,ju,Gu,Yu,Qu,Xu,Ju,xu,$u,ec,tc]}class c3 extends ve{constructor(e){super(),_e(this,e,u3,a3,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,videoLogoUrl: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},z4,[-1,-1,-1,-1,-1,-1,-1])}}function f3(t){let e,i,n,o;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),u(n,"d","M0 0h24v24H0z"),u(o,"fill","#fff"),u(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.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"width","24"),u(e,"height","24"),u(e,"aria-hidden","true"),u(e,"data-testid","muted-icon")},m(s,l){T(s,e,l),p(e,i),p(i,n),p(i,o)},p:W,i:W,o:W,d(s){s&&P(e)}}}class d3 extends ve{constructor(e){super(),_e(this,e,null,f3,be,{})}}function m3(t){Ke(t,"v-6gmlbk",".container.v-6gmlbk{display:flex;align-items:center}.expanded.v-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.v-6gmlbk{font-size:15px;margin-left:8px}")}function yr(t){let e;return{c(){e=I("span"),e.textContent=`${K("mobile_unmute")}`,u(e,"class","text v-6gmlbk")},m(i,n){T(i,e,n)},p:W,d(i){i&&P(e)}}}function p3(t){let e,i,n,o;var s=t[4];function l(a){return{}}s&&(i=Tn(s,l()));let r=t[1]&&yr();return{c(){e=I("div"),i&&U(i.$$.fragment),n=D(),r&&r.c(),u(e,"class","container v-6gmlbk"),u(e,"aria-hidden","true"),M(e,"expanded",t[1])},m(a,c){T(a,e,c),i&&z(i,e,null),p(e,n),r&&r.m(e,null),o=!0},p(a,c){if(c&16&&s!==(s=a[4])){if(i){fe();const f=i;g(f.$$.fragment,1,0,()=>{H(f,1)}),de()}s?(i=Tn(s,l()),U(i.$$.fragment),d(i.$$.fragment,1),z(i,e,n)):i=null}a[1]?r?r.p(a,c):(r=yr(),r.c(),r.m(e,null)):r&&(r.d(1),r=null),(!o||c&2)&&M(e,"expanded",a[1])},i(a){o||(i&&d(i.$$.fragment,a),o=!0)},o(a){i&&g(i.$$.fragment,a),o=!1},d(a){a&&P(e),i&&H(i),r&&r.d()}}}function h3(t){let e,i,n;function o(l){t[6](l)}let s={testId:t[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:t[2],ariaLabel:t[3],$$slots:{default:[p3]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),r&4&&(a.click=l[2]),r&8&&(a.ariaLabel=l[3]),r&146&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function g3(t,e,i){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:s=te.noop}=e,{ref:l=void 0}=e,r,a;function c(f){l=f,i(0,l)}return t.$$set=f=>{"muted"in f&&i(5,n=f.muted),"expanded"in f&&i(1,o=f.expanded),"click"in f&&i(2,s=f.click),"ref"in f&&i(0,l=f.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,r=K(n?"tooltip_volume":"tooltip_volume_muted")),t.$$.dirty&2&&i(4,a=o?Go:d3)},[l,o,s,r,a,n,c]}class hu extends ve{constructor(e){super(),_e(this,e,g3,h3,be,{muted:5,expanded:1,click:2,ref:0},m3)}}function b3(t){let e,i,n,o;return{c(){e=B("svg"),i=B("path"),n=B("path"),o=B("path"),u(i,"fill",t[1]),u(i,"clip-rule","evenodd"),u(i,"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 4ZM13 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.2v-.4Z"),u(n,"fill",t[1]),u(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.272l-.093-.094Z"),M(n,"hidden",!t[0]),u(o,"fill",t[1]),u(o,"d","M6.357 9.63a.865.865 0 0 0 .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.272l.093.094Z"),M(o,"hidden",t[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(s,l){T(s,e,l),p(e,i),p(e,n),p(e,o)},p(s,[l]){l&2&&u(i,"fill",s[1]),l&2&&u(n,"fill",s[1]),l&1&&M(n,"hidden",!s[0]),l&2&&u(o,"fill",s[1]),l&1&&M(o,"hidden",s[0])},i:W,o:W,d(s){s&&P(e)}}}function _3(t,e,i){let n,{isActive:o=!1}=e;return t.$$set=s=>{"isActive"in s&&i(0,o=s.isActive)},t.$$.update=()=>{t.$$.dirty&1&&i(1,n=o?"#2688EB":"#fff")},[o,n]}class v3 extends ve{constructor(e){super(),_e(this,e,_3,b3,be,{isActive:0})}}function k3(t){let e,i;return e=new v3({props:{isActive:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isActive=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function w3(t){let e,i,n;function o(l){t[3](l)}let s={testId:"btn-pip",ariaLabel:K("menu_pip"),click:t[2],$$slots:{default:[k3]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new yi({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,[r]){const a={};r&4&&(a.click=l[2]),r&18&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function y3(t,e,i){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:s=te.noop}=e;function l(r){n=r,i(0,n)}return t.$$set=r=>{"ref"in r&&i(0,n=r.ref),"isPictureInPictureActive"in r&&i(1,o=r.isPictureInPictureActive),"click"in r&&i(2,s=r.click)},[n,o,s,l]}class C3 extends ve{constructor(e){super(),_e(this,e,y3,w3,be,{ref:0,isPictureInPictureActive:1,click:2})}}function P3(t){Ke(t,"v-1tcstu3",".wrapper-bottom.v-1tcstu3.v-1tcstu3{pointer-events:none;position:absolute;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.v-1tcstu3>.v-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.v-1tcstu3.v-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.v-1tcstu3.v-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-1tcstu3.v-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.v-1tcstu3.v-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.v-1tcstu3.v-1tcstu3,.wrapper-middle-left-second.v-1tcstu3.v-1tcstu3,.wrapper-middle-right.v-1tcstu3.v-1tcstu3{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.v-1tcstu3.v-1tcstu3{left:12px}.wrapper-middle-left-second.v-1tcstu3.v-1tcstu3{left:64px}.wrapper-middle-right.v-1tcstu3.v-1tcstu3{right:12px}.controls.v-1tcstu3.v-1tcstu3{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.v-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.v-1tcstu3.v-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.v-1tcstu3.v-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.v-1tcstu3.v-1tcstu3{transition:none}.settings-mobile.v-1tcstu3.v-1tcstu3{position:absolute;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.v-1tcstu3.v-1tcstu3{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.v-1tcstu3.v-1tcstu3{top:16px}.wrapper-top-left.fullscreen.v-1tcstu3.v-1tcstu3{top:16px}.controls-wrapper.fullscreen.v-1tcstu3.v-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.v-1tcstu3.v-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.v-1tcstu3.v-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.v-1tcstu3.v-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.v-1tcstu3.v-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.v-1tcstu3.v-1tcstu3{right:44px}.controls-wrapper.fullscreen.v-1tcstu3.v-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Cr(t,e,i){const n=t.slice();return n[169]=e[i].iconUrl,n[170]=e[i].ariaLabel,n[171]=e[i].testId,n[172]=e[i].onClick,n[173]=e[i].tooltip,n}function Pr(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w=(!t[51]||t[53])&&Sr(t),y=Rt(t[56]),E=[];for(let N=0;N<y.length;N+=1)E[N]=Tr(Cr(t,y,N));const ie=N=>g(E[N],1,1,()=>{E[N]=null});let V=t[36]&&Ir(t),F=t[37]&&Ar(t),oe=t[57]&&Er(t),x=t[39]&&Lr(t),C=t[8]&&Vr(t),$=t[34]&&Mr(t),R=t[33]&&Br(t),se=t[8]&&Nr(t),j=t[96]&&!t[29]&&Rr(t);return{c(){e=I("div"),i=D(),n=I("div"),w&&w.c(),o=D(),s=I("div");for(let N=0;N<E.length;N+=1)E[N].c();l=D(),V&&V.c(),r=D(),F&&F.c(),a=D(),oe&&oe.c(),c=D(),x&&x.c(),f=D(),m=I("div"),C&&C.c(),h=D(),$&&$.c(),_=D(),R&&R.c(),b=D(),se&&se.c(),k=D(),j&&j.c(),v=at(),u(e,"class","overlay-mobile v-1tcstu3"),M(e,"hidden",!t[42]),u(n,"class","wrapper-top-left v-1tcstu3"),M(n,"hidden",!t[3]),M(n,"fullscreen",t[52]),u(s,"class","wrapper-top-right v-1tcstu3"),M(s,"hidden",!t[3]&&!t[27]),M(s,"fullscreen",t[52]),u(m,"class","wrapper-middle v-1tcstu3"),M(m,"hidden",!t[3]||t[29])},m(N,Q){T(N,e,Q),T(N,i,Q),T(N,n,Q),w&&w.m(n,null),T(N,o,Q),T(N,s,Q);for(let A=0;A<E.length;A+=1)E[A]&&E[A].m(s,null);p(s,l),V&&V.m(s,null),p(s,r),F&&F.m(s,null),p(s,a),oe&&oe.m(s,null),p(s,c),x&&x.m(s,null),T(N,f,Q),T(N,m,Q),C&&C.m(m,null),p(m,h),$&&$.m(m,null),p(m,_),R&&R.m(m,null),p(m,b),se&&se.m(m,null),T(N,k,Q),j&&j.m(N,Q),T(N,v,Q),S=!0},p(N,Q){if((!S||Q[1]&2048)&&M(e,"hidden",!N[42]),!N[51]||N[53]?w?(w.p(N,Q),Q[1]&5242880&&d(w,1)):(w=Sr(N),w.c(),d(w,1),w.m(n,null)):w&&(fe(),g(w,1,1,()=>{w=null}),de()),(!S||Q[0]&8)&&M(n,"hidden",!N[3]),(!S||Q[1]&2097152)&&M(n,"fullscreen",N[52]),Q[1]&33554432){y=Rt(N[56]);let A;for(A=0;A<y.length;A+=1){const ne=Cr(N,y,A);E[A]?(E[A].p(ne,Q),d(E[A],1)):(E[A]=Tr(ne),E[A].c(),d(E[A],1),E[A].m(s,l))}for(fe(),A=y.length;A<E.length;A+=1)ie(A);de()}N[36]?V?(V.p(N,Q),Q[1]&32&&d(V,1)):(V=Ir(N),V.c(),d(V,1),V.m(s,r)):V&&(fe(),g(V,1,1,()=>{V=null}),de()),N[37]?F?(F.p(N,Q),Q[1]&64&&d(F,1)):(F=Ar(N),F.c(),d(F,1),F.m(s,a)):F&&(fe(),g(F,1,1,()=>{F=null}),de()),N[57]?oe?(oe.p(N,Q),Q[1]&67108864&&d(oe,1)):(oe=Er(N),oe.c(),d(oe,1),oe.m(s,c)):oe&&(fe(),g(oe,1,1,()=>{oe=null}),de()),N[39]?x?(x.p(N,Q),Q[1]&256&&d(x,1)):(x=Lr(N),x.c(),d(x,1),x.m(s,null)):x&&(fe(),g(x,1,1,()=>{x=null}),de()),(!S||Q[0]&134217736)&&M(s,"hidden",!N[3]&&!N[27]),(!S||Q[1]&2097152)&&M(s,"fullscreen",N[52]),N[8]?C?(C.p(N,Q),Q[0]&256&&d(C,1)):(C=Vr(N),C.c(),d(C,1),C.m(m,h)):C&&(fe(),g(C,1,1,()=>{C=null}),de()),N[34]?$?($.p(N,Q),Q[1]&8&&d($,1)):($=Mr(N),$.c(),d($,1),$.m(m,_)):$&&(fe(),g($,1,1,()=>{$=null}),de()),N[33]?R?(R.p(N,Q),Q[1]&4&&d(R,1)):(R=Br(N),R.c(),d(R,1),R.m(m,b)):R&&(fe(),g(R,1,1,()=>{R=null}),de()),N[8]?se?(se.p(N,Q),Q[0]&256&&d(se,1)):(se=Nr(N),se.c(),d(se,1),se.m(m,null)):se&&(fe(),g(se,1,1,()=>{se=null}),de()),(!S||Q[0]&536870920)&&M(m,"hidden",!N[3]||N[29]),N[96]&&!N[29]?j?(j.p(N,Q),Q[0]&536870912&&d(j,1)):(j=Rr(N),j.c(),d(j,1),j.m(v.parentNode,v)):j&&(fe(),g(j,1,1,()=>{j=null}),de())},i(N){if(!S){d(w);for(let Q=0;Q<y.length;Q+=1)d(E[Q]);d(V),d(F),d(oe),d(x),d(C),d($),d(R),d(se),d(j),S=!0}},o(N){g(w),E=E.filter(Boolean);for(let Q=0;Q<E.length;Q+=1)g(E[Q]);g(V),g(F),g(oe),g(x),g(C),g($),g(R),g(se),g(j),S=!1},d(N){N&&(P(e),P(i),P(n),P(o),P(s),P(f),P(m),P(k),P(v)),w&&w.d(),kn(E,N),V&&V.d(),F&&F.d(),oe&&oe.d(),x&&x.d(),C&&C.d(),$&&$.d(),R&&R.d(),se&&se.d(),j&&j.d(N)}}}function Sr(t){let e,i,n;function o(l){t[130](l)}let s={muted:t[54],expanded:t[51]&&!t[70]&&t[55],click:t[106]};return t[20].volume!==void 0&&(s.ref=t[20].volume),e=new hu({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&8388608&&(a.muted=l[54]),r[1]&17825792&&(a.expanded=l[51]&&!l[70]&&l[55]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].volume,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Tr(t){let e,i;return e=new ru({props:{iconUrl:t[169],ariaLabel:t[170]??t[173],testId:t[171],onClick:t[172]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[1]&33554432&&(s.iconUrl=n[169]),o[1]&33554432&&(s.ariaLabel=n[170]??n[173]),o[1]&33554432&&(s.testId=n[171]),o[1]&33554432&&(s.onClick=n[172]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Ir(t){let e,i,n;function o(l){t[131](l)}let s={isMobile:!0,click:t[104],state:t[28]};return t[20].chromecast!==void 0&&(s.ref=t[20].chromecast),e=new J1({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&268435456&&(a.state=l[28]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].chromecast,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Ar(t){let e,i,n;function o(l){t[132](l)}let s={click:t[105],isPictureInPictureActive:t[26]};return t[20].pip!==void 0&&(s.ref=t[20].pip),e=new C3({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&67108864&&(a.isPictureInPictureActive=l[26]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].pip,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Er(t){let e,i,n;function o(l){t[133](l)}let s={};return t[22]!==void 0&&(s.ref=t[22]),e=new Pl({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&4194304&&(i=!0,a.ref=l[22],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Lr(t){let e,i,n;function o(l){t[134](l)}let s={click:t[64],logoClickable:t[6],videoLogoUrl:t[7]};return t[20].vkLogo!==void 0&&(s.ref=t[20].vkLogo),e=new X1({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&64&&(a.logoClickable=l[6]),r[0]&128&&(a.videoLogoUrl=l[7]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].vkLogo,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Vr(t){let e,i,n;function o(l){t[135](l)}let s={click:t[13],type:"prev",disabled:!t[10],isMobile:!0};return t[20].prevButton!==void 0&&(s.ref=t[20].prevButton),e=new Yo({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&8192&&(a.click=l[13]),r[0]&1024&&(a.disabled=!l[10]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].prevButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Mr(t){let e,i,n;function o(l){t[136](l)}let s={disabled:t[49],click:t[63],isMobile:!0,isPlaying:t[31]};return t[20].playButton!==void 0&&(s.ref=t[20].playButton),e=new Il({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&262144&&(a.disabled=l[49]),r[1]&1&&(a.isPlaying=l[31]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].playButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Br(t){let e,i,n;function o(l){t[137](l)}let s={disabled:t[48],click:t[107],isMobile:!0};return t[20].replayButton!==void 0&&(s.ref=t[20].replayButton),e=new Al({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.disabled=l[48]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].replayButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Nr(t){let e,i,n;function o(l){t[138](l)}let s={click:t[12],type:"next",disabled:!t[9],isMobile:!0};return t[20].nextButton!==void 0&&(s.ref=t[20].nextButton),e=new Yo({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&4096&&(a.click=l[12]),r[0]&512&&(a.disabled=!l[9]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].nextButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Rr(t){let e,i,n,o,s=t[100]&&S3(t),l=t[98]&&T3(t),r=t[99]&&I3(t);return{c(){s&&s.c(),e=D(),l&&l.c(),i=D(),r&&r.c(),n=at()},m(a,c){s&&s.m(a,c),T(a,e,c),l&&l.m(a,c),T(a,i,c),r&&r.m(a,c),T(a,n,c),o=!0},p(a,c){a[100]&&s.p(a,c),a[98]&&l.p(a,c),a[99]&&r.p(a,c)},i(a){o||(d(s),d(l),d(r),o=!0)},o(a){g(s),g(l),g(r),o=!1},d(a){a&&(P(e),P(i),P(n)),s&&s.d(a),l&&l.d(a),r&&r.d(a)}}}function S3(t){let e,i,n,o,s,l;function r(c){t[139](c)}let a={hidden:!t[3],disabled:t[47],click:t[18]};return t[20].playPrevChapterButton!==void 0&&(a.ref=t[20].playPrevChapterButton),i=new su({props:a}),we.push(()=>Ue(i,"ref",r)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","wrapper-middle-left v-1tcstu3"),M(e,"fullscreen",t[52]),M(e,"hidden",!t[3])},m(c,f){T(c,e,f),z(i,e,null),o=!0,s||(l=he(e,"click",t[108]),s=!0)},p(c,f){const m={};f[0]&8&&(m.hidden=!c[3]),f[1]&65536&&(m.disabled=c[47]),f[0]&262144&&(m.click=c[18]),!n&&f[0]&1048576&&(n=!0,m.ref=c[20].playPrevChapterButton,Fe(()=>n=!1)),i.$set(m),(!o||f[1]&2097152)&&M(e,"fullscreen",c[52]),(!o||f[0]&8)&&M(e,"hidden",!c[3])},i(c){o||(d(i.$$.fragment,c),o=!0)},o(c){g(i.$$.fragment,c),o=!1},d(c){c&&P(e),H(i),s=!1,l()}}}function T3(t){let e,i,n,o;function s(r){t[140](r)}let l={hidden:!t[3]&&!t[58],disabled:t[50],click:t[17],graphIsOpened:t[58]};return t[20].interactiveGraphButton!==void 0&&(l.ref=t[20].interactiveGraphButton),i=new ou({props:l}),we.push(()=>Ue(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class",uc(t[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" v-1tcstu3"),M(e,"fullscreen",t[52]),M(e,"hidden",!t[3]&&!t[58])},m(r,a){T(r,e,a),z(i,e,null),o=!0},p(r,a){const c={};a[0]&8|a[1]&134217728&&(c.hidden=!r[3]&&!r[58]),a[1]&524288&&(c.disabled=r[50]),a[0]&131072&&(c.click=r[17]),a[1]&134217728&&(c.graphIsOpened=r[58]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].interactiveGraphButton,Fe(()=>n=!1)),i.$set(c),(!o||a[1]&2097152)&&M(e,"fullscreen",r[52]),(!o||a[0]&8|a[1]&134217728)&&M(e,"hidden",!r[3]&&!r[58])},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),H(i)}}}function I3(t){let e,i,n,o,s,l;function r(c){t[141](c)}let a={hidden:!t[3],disabled:t[46],click:t[16]};return t[20].seekToInteractiveButton!==void 0&&(a.ref=t[20].seekToInteractiveButton),i=new nu({props:a}),we.push(()=>Ue(i,"ref",r)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","wrapper-middle-right v-1tcstu3"),M(e,"fullscreen",t[52]),M(e,"hidden",!t[3])},m(c,f){T(c,e,f),z(i,e,null),o=!0,s||(l=he(e,"click",t[109]),s=!0)},p(c,f){const m={};f[0]&8&&(m.hidden=!c[3]),f[1]&32768&&(m.disabled=c[46]),f[0]&65536&&(m.click=c[16]),!n&&f[0]&1048576&&(n=!0,m.ref=c[20].seekToInteractiveButton,Fe(()=>n=!1)),i.$set(m),(!o||f[1]&2097152)&&M(e,"fullscreen",c[52]),(!o||f[0]&8)&&M(e,"hidden",!c[3])},i(c){o||(d(i.$$.fragment,c),o=!0)},o(c){g(i.$$.fragment,c),o=!1},d(c){c&&P(e),H(i),s=!1,l()}}}function Dr(t){let e,i,n,o,s,l=t[53]&&Or(t),r=t[32]&&zr(t);return o=new eu({props:{position:t[59],duration:t[60]}}),{c(){l&&l.c(),e=D(),r&&r.c(),i=D(),n=I("div"),U(o.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile v-1tcstu3"),M(n,"fullscreen",t[52])},m(a,c){l&&l.m(a,c),T(a,e,c),r&&r.m(a,c),T(a,i,c),T(a,n,c),z(o,n,null),s=!0},p(a,c){a[53]?l?(l.p(a,c),c[1]&4194304&&d(l,1)):(l=Or(a),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(fe(),g(l,1,1,()=>{l=null}),de()),a[32]?r?(r.p(a,c),c[1]&2&&d(r,1)):(r=zr(a),r.c(),d(r,1),r.m(i.parentNode,i)):r&&(fe(),g(r,1,1,()=>{r=null}),de());const f={};c[1]&268435456&&(f.position=a[59]),c[1]&536870912&&(f.duration=a[60]),o.$set(f),(!s||c[1]&2097152)&&M(n,"fullscreen",a[52])},i(a){s||(d(l),d(r),d(o.$$.fragment,a),s=!0)},o(a){g(l),g(r),g(o.$$.fragment,a),s=!1},d(a){a&&(P(e),P(i),P(n)),l&&l.d(a),r&&r.d(a),H(o)}}}function Or(t){let e,i,n,o;function s(r){t[142](r)}let l={muted:t[54],expanded:!1,click:t[106]};return t[20].volume!==void 0&&(l.ref=t[20].volume),i=new hu({props:l}),we.push(()=>Ue(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","wrapper-top-right v-1tcstu3"),M(e,"fullscreen",t[52])},m(r,a){T(r,e,a),z(i,e,null),o=!0},p(r,a){const c={};a[1]&8388608&&(c.muted=r[54]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].volume,Fe(()=>n=!1)),i.$set(c),(!o||a[1]&2097152)&&M(e,"fullscreen",r[52])},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),H(i)}}}function zr(t){let e,i,n,o;function s(r){t[143](r)}let l={disabled:t[49],click:t[63],isMobile:!0,isPlaying:!t[32]};return t[20].playButton!==void 0&&(l.ref=t[20].playButton),i=new Il({props:l}),we.push(()=>Ue(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","wrapper-middle v-1tcstu3")},m(r,a){T(r,e,a),z(i,e,null),o=!0},p(r,a){const c={};a[1]&262144&&(c.disabled=r[49]),a[1]&2&&(c.isPlaying=!r[32]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].playButton,Fe(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),H(i)}}}function A3(t){let e,i,n;function o(l){t[144](l)}let s={disabled:t[48],$$slots:{default:[E3]},$$scope:{ctx:t}};return t[20].replayButton!==void 0&&(s.ref=t[20].replayButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.disabled=l[48]),r[1]&131072|r[5]&2097152&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].replayButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function E3(t){let e,i;return e=new Al({props:{disabled:t[48],click:t[95]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[1]&131072&&(s.disabled=n[48]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Hr(t){let e,i,n;function o(l){t[145](l)}let s={$$slots:{default:[L3]},$$scope:{ctx:t}};return t[20].liveButton!==void 0&&(s.ref=t[20].liveButton),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&524288|r[1]&16384|r[5]&2097152&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].liveButton,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function L3(t){let e,i;return e=new x1({props:{isActiveLive:t[19],isMobile:!0,ariaLabel:t[45]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&524288&&(s.isActiveLive=n[19]),o[1]&16384&&(s.ariaLabel=n[45]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Fr(t){let e,i,n;function o(l){t[146](l)}let s={showDuration:t[35],position:t[4]?t[59]:t[61],duration:t[4]?t[60]:t[62],isMobile:!0};return t[20].time!==void 0&&(s.ref=t[20].time),e=new W1({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&16&&(a.showDuration=l[35]),r[0]&16|r[1]&1342177280&&(a.position=l[4]?l[59]:l[61]),r[0]&16|r[1]&536870912|r[2]&1&&(a.duration=l[4]?l[60]:l[62]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].time,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Ur(t){let e,i,n,o;return n=new iu({props:{position:t[61],duration:t[62],timeCodes:t[84]}}),{c(){e=I("div"),e.textContent="\xB7",i=D(),U(n.$$.fragment),u(e,"aria-hidden","true")},m(s,l){T(s,e,l),T(s,i,l),z(n,s,l),o=!0},p(s,l){const r={};l[1]&1073741824&&(r.position=s[61]),l[2]&1&&(r.duration=s[62]),n.$set(r)},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){g(n.$$.fragment,s),o=!1},d(s){s&&(P(e),P(i)),H(n,s)}}}function V3(t){let e,i,n=t[43]&&Ur(t);return{c(){n&&n.c(),e=at()},m(o,s){n&&n.m(o,s),T(o,e,s),i=!0},p(o,s){o[43]?n?(n.p(o,s),s[1]&4096&&d(n,1)):(n=Ur(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),g(n,1,1,()=>{n=null}),de())},i(o){i||(d(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d(o)}}}function qr(t){let e,i,n;function o(l){t[149](l)}let s={$$slots:{default:[M3]},$$scope:{ctx:t}};return t[20].settings!==void 0&&(s.ref=t[20].settings),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&4194304|r[5]&2097152&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].settings,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function M3(t){let e,i,n;function o(l){t[148](l)}let s={};return t[22]!==void 0&&(s.ref=t[22]),e=new Pl({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&4194304&&(i=!0,a.ref=l[22],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Zr(t){let e,i,n;function o(l){t[150](l)}let s={$$slots:{default:[B3]},$$scope:{ctx:t}};return t[20].fullscreen!==void 0&&(s.ref=t[20].fullscreen),e=new At({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&16384|r[1]&2097152|r[5]&2097152&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].fullscreen,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function B3(t){let e,i;return e=new Y1({props:{click:t[14],isFullscreen:t[52]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&16384&&(s.click=n[14]),o[1]&2097152&&(s.isFullscreen=n[52]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Wr(t){let e,i,n,o;function s(r){t[153](r)}let l={supportLink:t[11],returnFocus:t[15]};return t[21]!==void 0&&(l.ref=t[21]),i=new Z1({props:l}),we.push(()=>Ue(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","settings-mobile v-1tcstu3")},m(r,a){T(r,e,a),z(i,e,null),o=!0},p(r,a){const c={};a[0]&2048&&(c.supportLink=r[11]),a[0]&32768&&(c.returnFocus=r[15]),!n&&a[0]&2097152&&(n=!0,c.ref=r[21],Fe(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),H(i)}}}function N3(t){let e,i,n;function o(l){t[154](l)}let s={};return t[20].interactiveTimeIndicator!==void 0&&(s.ref=t[20].interactiveTimeIndicator),e=new pu({props:s}),we.push(()=>Ue(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&1048576&&(i=!0,a.ref=l[20].interactiveTimeIndicator,Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function R3(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y=!t[4]&&Pr(t),E=t[4]&&t[30]!==Zt.INACTIVE&&Dr(t),ie=t[96]&&A3(t),V=!t[4]&&t[25]&&Hr(t),F=t[41]&&Fr(t);function oe(j){t[147](j)}let x={className:"w-max",disabled:!t[43],$$slots:{default:[V3]},$$scope:{ctx:t}};t[20].episodes!==void 0&&(x.ref=t[20].episodes),c=new At({props:x}),we.push(()=>Ue(c,"ref",oe));let C=t[38]&&qr(t),$=t[40]&&Zr(t);b=new tu({props:{isAds:t[4],canRewindLive:t[5],isRewindableLive:t[24]}});let R=t[23]&&Wr(t),se=t[101]&&N3(t);return{c(){y&&y.c(),e=D(),E&&E.c(),i=D(),n=I("div"),o=I("div"),s=I("div"),ie&&ie.c(),l=D(),V&&V.c(),r=D(),F&&F.c(),a=D(),U(c.$$.fragment),m=D(),C&&C.c(),h=D(),$&&$.c(),_=D(),U(b.$$.fragment),k=D(),R&&R.c(),v=D(),se&&se.c(),S=at(),u(s,"class","controls v-1tcstu3"),M(s,"mobile",!0),u(o,"class","controls-wrapper v-1tcstu3"),M(o,"fullscreen",t[52]),u(n,"class","wrapper-bottom v-1tcstu3"),M(n,"hidden",t[1]),M(n,"controls-hidden",!t[3]),M(n,"no-smooth",t[2]),M(n,"mobile",!0)},m(j,N){y&&y.m(j,N),T(j,e,N),E&&E.m(j,N),T(j,i,N),T(j,n,N),p(n,o),p(o,s),ie&&ie.m(s,null),p(s,l),V&&V.m(s,null),p(s,r),F&&F.m(s,null),p(s,a),z(c,s,null),p(s,m),C&&C.m(s,null),p(s,h),$&&$.m(s,null),t[151](s),p(o,_),z(b,o,null),t[152](n),T(j,k,N),R&&R.m(j,N),T(j,v,N),se&&se.m(j,N),T(j,S,N),w=!0},p(j,N){j[4]?y&&(fe(),g(y,1,1,()=>{y=null}),de()):y?(y.p(j,N),N[0]&16&&d(y,1)):(y=Pr(j),y.c(),d(y,1),y.m(e.parentNode,e)),j[4]&&j[30]!==Zt.INACTIVE?E?(E.p(j,N),N[0]&1073741840&&d(E,1)):(E=Dr(j),E.c(),d(E,1),E.m(i.parentNode,i)):E&&(fe(),g(E,1,1,()=>{E=null}),de()),j[96]&&ie.p(j,N),!j[4]&&j[25]?V?(V.p(j,N),N[0]&33554448&&d(V,1)):(V=Hr(j),V.c(),d(V,1),V.m(s,r)):V&&(fe(),g(V,1,1,()=>{V=null}),de()),j[41]?F?(F.p(j,N),N[1]&1024&&d(F,1)):(F=Fr(j),F.c(),d(F,1),F.m(s,a)):F&&(fe(),g(F,1,1,()=>{F=null}),de());const Q={};N[1]&4096&&(Q.disabled=!j[43]),N[1]&1073745920|N[2]&1|N[5]&2097152&&(Q.$$scope={dirty:N,ctx:j}),!f&&N[0]&1048576&&(f=!0,Q.ref=j[20].episodes,Fe(()=>f=!1)),c.$set(Q),j[38]?C?(C.p(j,N),N[1]&128&&d(C,1)):(C=qr(j),C.c(),d(C,1),C.m(s,h)):C&&(fe(),g(C,1,1,()=>{C=null}),de()),j[40]?$?($.p(j,N),N[1]&512&&d($,1)):($=Zr(j),$.c(),d($,1),$.m(s,null)):$&&(fe(),g($,1,1,()=>{$=null}),de());const A={};N[0]&16&&(A.isAds=j[4]),N[0]&32&&(A.canRewindLive=j[5]),N[0]&16777216&&(A.isRewindableLive=j[24]),b.$set(A),(!w||N[1]&2097152)&&M(o,"fullscreen",j[52]),(!w||N[0]&2)&&M(n,"hidden",j[1]),(!w||N[0]&8)&&M(n,"controls-hidden",!j[3]),(!w||N[0]&4)&&M(n,"no-smooth",j[2]),j[23]?R?(R.p(j,N),N[0]&8388608&&d(R,1)):(R=Wr(j),R.c(),d(R,1),R.m(v.parentNode,v)):R&&(fe(),g(R,1,1,()=>{R=null}),de()),j[101]&&se.p(j,N)},i(j){w||(d(y),d(E),d(ie),d(V),d(F),d(c.$$.fragment,j),d(C),d($),d(b.$$.fragment,j),d(R),d(se),w=!0)},o(j){g(y),g(E),g(ie),g(V),g(F),g(c.$$.fragment,j),g(C),g($),g(b.$$.fragment,j),g(R),g(se),w=!1},d(j){j&&(P(e),P(i),P(n),P(k),P(v),P(S)),y&&y.d(j),E&&E.d(j),ie&&ie.d(),V&&V.d(),F&&F.d(),H(c),C&&C.d(),$&&$.d(),t[151](null),H(b),t[152](null),R&&R.d(j),se&&se.d(j)}}}function D3(t,e,i){let n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe,x,C,$,R,se,j,N,Q,A,ne,Ie,Ne,Be,ze,ce,{bottomHidden:ke}=e,{bottomNoSmooth:G}=e,{showControls:J}=e,{controlsElementRef:ye=void 0}=e,{isAds:re=!1}=e,{canRewindLive:We}=e,{logoClickable:Ve}=e,{logoHidden:Ee}=e,{videoLogoUrl:ue}=e,{showNextPrevButtons:Ce}=e,{nextButtonActive:ge}=e,{prevButtonActive:le}=e,{isOneVideoPlaylist:qe=!1}=e,{supportLink:pe}=e,{customFullscreenSupported:Pe=!0}=e,{playNextVideo:Te}=e,{playPrevVideo:je}=e,{repeatPlaylist:tt}=e,{toggleFullscreen:Xe}=e,{returnFocus:Qe}=e,{seekToInteractive:it}=e,{toggleGraph:Et}=e,{playPrevChapter:ut}=e,{onDisabledPlayPrevChapterClick:$t}=e,{onDisabledSeekToInteractiveClick:_t}=e;const Oe=ht(),me=To(),bt=an(),ct=Oe.actions.internal.toggleMuted,Dt=Oe.actions.internal.togglePlay,rt=Oe.actions.internal.pause,wt=Oe.callbacks?.onAudioDoesNotExistHint,ei=Oe.callbacks?.onAudioDisabledHint,Kt=Oe.playerPhase;O(t,Kt,Y=>i(126,F=Y));const ti=Oe.state.duration$;O(t,ti,Y=>i(62,ce=Y));const Ui=Oe.state.positionWithScrubbing$;O(t,Ui,Y=>i(61,ze=Y));const ii=Oe.state.playbackState$;O(t,ii,Y=>i(121,h=Y));const Ci=Oe.state.isAudioAvailable$;O(t,Ci,Y=>i(51,_=Y));const Yi=Oe.state.isAudioDisabled,ni=Oe.state.isEnded$;O(t,ni,Y=>i(127,x=Y));const oi=Oe.state.isLive$;O(t,oi,Y=>i(25,w=Y));const Pi=Oe.state.muted$;O(t,Pi,Y=>i(54,N=Y));const Vt=Oe.state.isActiveLive$;O(t,Vt,Y=>i(124,v=Y));const li=Oe.state.isRewindableLive$;O(t,li,Y=>i(24,S=Y));const si=Oe.ui.scrubbingInProgress;O(t,si,Y=>i(29,oe=Y));const jt=Oe.ui.mobileNotReportControlHidden$;O(t,jt,Y=>i(27,ie=Y));const ri=Oe.ui.isPictureInPictureActive$;O(t,ri,Y=>i(26,E=Y));const ai=Oe.ui.pictureInPictureType$;O(t,ai,Y=>i(125,y=Y));const ui=Oe.ui.mobileUnmuteButtonExpanded;O(t,ui,Y=>i(55,Q=Y));const Si=Oe.ui.mobileUnmuteButtonVisible;O(t,Si,Y=>i(53,j=Y));const Ti=Oe.ui.settingsMenuVisible;O(t,Ti,Y=>i(23,m=Y));const Ii=Oe.ui.settingsMenuOpenedByKeyboard;O(t,Ii,Y=>i(120,f=Y));const yt=Oe.ui.controls,ci=Oe.actions.internal.getVideoEpisodes(),Gt=Oe.webApi.pictureInPictureApi,fi=Oe.state.chromecastState$;O(t,fi,Y=>i(28,V=Y));const Lt=Oe.state.crashed$;O(t,Lt,Y=>i(57,ne=Y));const Ai=yt.disabledControls$;O(t,Ai,Y=>i(128,$=Y));const vt=Oe.ui.startedByKeyboard$;O(t,vt,Y=>i(119,c=Y));const Ct=Oe.ads.duration;O(t,Ct,Y=>i(60,Be=Y));const Ot=Oe.ads.position;O(t,Ot,Y=>i(59,Ne=Y));const Pt=Oe.ads.playbackState;O(t,Pt,Y=>i(30,C=Y));const Ei=Oe.ui.isFullscreen;O(t,Ei,Y=>i(52,se=Y));const Mt=Oe.ui.playerSize;O(t,Mt,Y=>i(123,k=Y));const Yt=Oe.ui.additionalButtons$;O(t,Yt,Y=>i(56,A=Y));const Qt=Oe.actions.internal.getVideoElement,di=Oe.actions.internal.replayInteractive,St=Oe.state.isInteractive,qi=Oe.state.isInteractiveTime$;O(t,qi,Y=>i(122,b=Y));const Li=Oe.state.showInteractiveGraph,Qi=Oe.state.showSeekToInteractive,Xt=Oe.state.showPlayPrevChapter,gt=Oe.state.showInteractiveTimeIndicator,zt=Oe.state.graphIsOpened$;O(t,zt,Y=>i(58,Ie=Y));const Zi=me.seekToInteractiveDisabledTooltip$;O(t,Zi,Y=>i(129,R=Y));let Wi,Ki,Jt,zi,mi,pi,Vi,Mi,Bt,Hi,hi,gi,Bi,bi,Ht,_i,He,vi,Nt;const Me={},en=te.throttleFn(du,n1,{leading:!1}),ji=()=>Oe.actions.internal.toggleChromecast();function tn(){Yi?ei?.():_?ct():wt?.()}async function Fi(){Gt?.isActive()?await Gt?.remove():await Gt?.request()}function nn(){!Yi&&_&&Si.set(!1),tn()}const Ft=qe?Dt:tt;let Gi="";const on=(Y,xi)=>{if(!Y){i(45,Gi=K("tooltip_live"));return}xi===$e.PlaybackState.PAUSED&&i(45,Gi=K("tooltip_play"))};let Ni,Tt;const Ri=()=>{a&&$t(Wi)},ee=()=>{s&&_t(Ki)};function lt(Y){t.$$.not_equal(Me.volume,Y)&&(Me.volume=Y,i(20,Me))}function ki(Y){t.$$.not_equal(Me.chromecast,Y)&&(Me.chromecast=Y,i(20,Me))}function kt(Y){t.$$.not_equal(Me.pip,Y)&&(Me.pip=Y,i(20,Me))}function Xi(Y){Tt=Y,i(22,Tt)}function ln(Y){t.$$.not_equal(Me.vkLogo,Y)&&(Me.vkLogo=Y,i(20,Me))}function rn(Y){t.$$.not_equal(Me.prevButton,Y)&&(Me.prevButton=Y,i(20,Me))}function dn(Y){t.$$.not_equal(Me.playButton,Y)&&(Me.playButton=Y,i(20,Me))}function un(Y){t.$$.not_equal(Me.replayButton,Y)&&(Me.replayButton=Y,i(20,Me))}function Ji(Y){t.$$.not_equal(Me.nextButton,Y)&&(Me.nextButton=Y,i(20,Me))}function mn(Y){t.$$.not_equal(Me.playPrevChapterButton,Y)&&(Me.playPrevChapterButton=Y,i(20,Me))}function cn(Y){t.$$.not_equal(Me.interactiveGraphButton,Y)&&(Me.interactiveGraphButton=Y,i(20,Me))}function wn(Y){t.$$.not_equal(Me.seekToInteractiveButton,Y)&&(Me.seekToInteractiveButton=Y,i(20,Me))}function X(Y){t.$$.not_equal(Me.volume,Y)&&(Me.volume=Y,i(20,Me))}function dt(Y){t.$$.not_equal(Me.playButton,Y)&&(Me.playButton=Y,i(20,Me))}function yn(Y){t.$$.not_equal(Me.replayButton,Y)&&(Me.replayButton=Y,i(20,Me))}function Cn(Y){t.$$.not_equal(Me.liveButton,Y)&&(Me.liveButton=Y,i(20,Me))}function pn(Y){t.$$.not_equal(Me.time,Y)&&(Me.time=Y,i(20,Me))}function Dn(Y){t.$$.not_equal(Me.episodes,Y)&&(Me.episodes=Y,i(20,Me))}function On(Y){Tt=Y,i(22,Tt)}function zn(Y){t.$$.not_equal(Me.settings,Y)&&(Me.settings=Y,i(20,Me))}function Hn(Y){t.$$.not_equal(Me.fullscreen,Y)&&(Me.fullscreen=Y,i(20,Me))}function Fn(Y){we[Y?"unshift":"push"](()=>{vi=Y,i(44,vi)})}function Un(Y){we[Y?"unshift":"push"](()=>{ye=Y,i(0,ye)})}function hn(Y){Ni=Y,i(21,Ni)}function qn(Y){t.$$.not_equal(Me.interactiveTimeIndicator,Y)&&(Me.interactiveTimeIndicator=Y,i(20,Me))}return t.$$set=Y=>{"bottomHidden"in Y&&i(1,ke=Y.bottomHidden),"bottomNoSmooth"in Y&&i(2,G=Y.bottomNoSmooth),"showControls"in Y&&i(3,J=Y.showControls),"controlsElementRef"in Y&&i(0,ye=Y.controlsElementRef),"isAds"in Y&&i(4,re=Y.isAds),"canRewindLive"in Y&&i(5,We=Y.canRewindLive),"logoClickable"in Y&&i(6,Ve=Y.logoClickable),"logoHidden"in Y&&i(110,Ee=Y.logoHidden),"videoLogoUrl"in Y&&i(7,ue=Y.videoLogoUrl),"showNextPrevButtons"in Y&&i(8,Ce=Y.showNextPrevButtons),"nextButtonActive"in Y&&i(9,ge=Y.nextButtonActive),"prevButtonActive"in Y&&i(10,le=Y.prevButtonActive),"isOneVideoPlaylist"in Y&&i(111,qe=Y.isOneVideoPlaylist),"supportLink"in Y&&i(11,pe=Y.supportLink),"customFullscreenSupported"in Y&&i(112,Pe=Y.customFullscreenSupported),"playNextVideo"in Y&&i(12,Te=Y.playNextVideo),"playPrevVideo"in Y&&i(13,je=Y.playPrevVideo),"repeatPlaylist"in Y&&i(113,tt=Y.repeatPlaylist),"toggleFullscreen"in Y&&i(14,Xe=Y.toggleFullscreen),"returnFocus"in Y&&i(15,Qe=Y.returnFocus),"seekToInteractive"in Y&&i(16,it=Y.seekToInteractive),"toggleGraph"in Y&&i(17,Et=Y.toggleGraph),"playPrevChapter"in Y&&i(18,ut=Y.playPrevChapter),"onDisabledPlayPrevChapterClick"in Y&&i(114,$t=Y.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in Y&&i(115,_t=Y.onDisabledSeekToInteractiveClick)},t.$$.update=()=>{if(t.$$.dirty[4]&32&&(Ki=K(R)),t.$$.dirty[4]&16&&i(118,n=$.has(st.EPISODE_BUTTON)),t.$$.dirty[4]&16&&i(50,o=$.has(st.GRAPH_BUTTON)),t.$$.dirty[4]&16&&i(46,s=$.has(st.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[4]&16&&i(49,l=$.has(st.PLAY_BUTTON)),t.$$.dirty[4]&16&&i(48,r=$.has(st.REPLAY_BUTTON)),t.$$.dirty[4]&16&&i(47,a=$.has(st.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[3]&268435456&&i(31,Jt=h===$e.PlaybackState.PLAYING),t.$$.dirty[0]&1073741824&&i(32,zi=C===Zt.PAUSED),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(33,mi=x&&!re&&!St),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(34,pi=!x||re),t.$$.dirty[3]&1073741824&&i(116,Vi=k.width>300),t.$$.dirty[3]&1073741824&&i(35,Mi=k.width>400),t.$$.dirty[0]&536870912&&i(117,Bt=oe),t.$$.dirty[0]&469762048|t.$$.dirty[4]&2&&i(36,Hi=V!==$e.ChromecastState.NOT_AVAILABLE&&!(E&&y===Ln.DocumentPictureInPicture)&&!ie&&!St),t.$$.dirty[0]&402653184|t.$$.dirty[3]&16777216|t.$$.dirty[4]&6){const Y=F===Re.WaitingLive;i(37,hi=!!Gt&&V!==$e.ChromecastState.CONNECTED&&!ie&&(y===Ln.DocumentPictureInPicture&&Y||!Y)&&!Bt&&!St)}t.$$.dirty[3]&16777216&&i(38,gi=!Bt),t.$$.dirty[3]&1073872896&&i(39,Bi=!Ee&&k.width>350),t.$$.dirty[0]&67108864|t.$$.dirty[3]&17301504|t.$$.dirty[4]&2&&i(40,bi=bt.features.fullscreen&&!(E&&y===Ln.DocumentPictureInPicture)&&(St?Pe:!0)&&!Bt),t.$$.dirty[0]&33554448|t.$$.dirty[3]&1090519040&&i(41,Ht=(!w||re)&&k.width>260&&!Bt&&!(bt.features.interactiveHideTime&&St)),t.$$.dirty[0]&8388616&&i(42,_i=m||J),t.$$.dirty[0]&33554448|t.$$.dirty[3]&58720256&&i(43,He=!re&&!w&&!!ci?.length&&Vi&&!n&&!Bt),t.$$.dirty[0]&16777216|t.$$.dirty[4]&1&&i(19,Nt=!S||v),t.$$.dirty[0]&1048584|t.$$.dirty[3]&1610612736&&en(Qt(),yt,Me,J),t.$$.dirty[0]&524288|t.$$.dirty[3]&268435456&&on(Nt,h),t.$$.dirty[0]&12582912&&wl(Tt,m,Ii),t.$$.dirty[0]&10485760|t.$$.dirty[3]&134217728&&yl(Ni,m,f),t.$$.dirty[0]&1048576|t.$$.dirty[3]&67108864&&mu(vt,c,Me.playButton)},Wi=K(Oe.state.playPrevChapterDisabledTooltip),[ye,ke,G,J,re,We,Ve,ue,Ce,ge,le,pe,Te,je,Xe,Qe,it,Et,ut,Nt,Me,Ni,Tt,m,S,w,E,ie,V,oe,C,Jt,zi,mi,pi,Mi,Hi,hi,gi,Bi,bi,Ht,_i,He,vi,Gi,s,a,r,l,o,_,se,j,N,Q,A,ne,Ie,Ne,Be,ze,ce,Dt,rt,Kt,ti,Ui,ii,Ci,Yi,ni,oi,Pi,Vt,li,si,jt,ri,ai,ui,Si,Ti,Ii,ci,fi,Lt,Ai,vt,Ct,Ot,Pt,Ei,Mt,Yt,di,St,qi,Li,Qi,Xt,gt,zt,Zi,ji,Fi,nn,Ft,Ri,ee,Ee,qe,Pe,tt,$t,_t,Vi,Bt,n,c,f,h,b,k,v,y,F,x,$,R,lt,ki,kt,Xi,ln,rn,dn,un,Ji,mn,cn,wn,X,dt,yn,Cn,pn,Dn,On,zn,Hn,Fn,Un,hn,qn]}class O3 extends ve{constructor(e){super(),_e(this,e,D3,R3,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,videoLogoUrl: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},P3,[-1,-1,-1,-1,-1,-1])}}function z3(t){let e,i,n;function o(l){t[28](l)}let s={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],videoLogoUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22]};return t[0]!==void 0&&(s.controlsElementRef=t[0]),e=new c3({props:s}),we.push(()=>Ue(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r&2&&(a.bottomHidden=l[1]),r&4&&(a.bottomNoSmooth=l[2]),r&8&&(a.showControls=l[3]),r&16&&(a.isAds=l[4]),r&32&&(a.canRewindLive=l[5]),r&64&&(a.logoClickable=l[6]),r&128&&(a.logoHidden=l[7]),r&256&&(a.videoLogoUrl=l[8]),r&512&&(a.showNextPrevButtons=l[9]),r&1024&&(a.nextButtonActive=l[10]),r&2048&&(a.prevButtonActive=l[11]),r&4096&&(a.isOneVideoPlaylist=l[12]),r&8192&&(a.supportLink=l[13]),r&16384&&(a.customFullscreenSupported=l[14]),r&32768&&(a.playNextVideo=l[15]),r&65536&&(a.playPrevVideo=l[16]),r&131072&&(a.repeatPlaylist=l[17]),r&262144&&(a.toggleFullscreen=l[18]),r&524288&&(a.returnFocus=l[19]),r&1048576&&(a.seekToInteractive=l[20]),r&2097152&&(a.toggleGraph=l[21]),r&4194304&&(a.playPrevChapter=l[22]),!i&&r&1&&(i=!0,a.controlsElementRef=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function H3(t){let e,i,n;function o(l){t[27](l)}let s={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],videoLogoUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22],onDisabledPlayPrevChapterClick:t[23],onDisabledSeekToInteractiveClick:t[24]};return t[0]!==void 0&&(s.controlsElementRef=t[0]),e=new O3({props:s}),we.push(()=>Ue(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r&2&&(a.bottomHidden=l[1]),r&4&&(a.bottomNoSmooth=l[2]),r&8&&(a.showControls=l[3]),r&16&&(a.isAds=l[4]),r&32&&(a.canRewindLive=l[5]),r&64&&(a.logoClickable=l[6]),r&128&&(a.logoHidden=l[7]),r&256&&(a.videoLogoUrl=l[8]),r&512&&(a.showNextPrevButtons=l[9]),r&1024&&(a.nextButtonActive=l[10]),r&2048&&(a.prevButtonActive=l[11]),r&4096&&(a.isOneVideoPlaylist=l[12]),r&8192&&(a.supportLink=l[13]),r&16384&&(a.customFullscreenSupported=l[14]),r&32768&&(a.playNextVideo=l[15]),r&65536&&(a.playPrevVideo=l[16]),r&131072&&(a.repeatPlaylist=l[17]),r&262144&&(a.toggleFullscreen=l[18]),r&524288&&(a.returnFocus=l[19]),r&1048576&&(a.seekToInteractive=l[20]),r&2097152&&(a.toggleGraph=l[21]),r&4194304&&(a.playPrevChapter=l[22]),r&8388608&&(a.onDisabledPlayPrevChapterClick=l[23]),r&16777216&&(a.onDisabledSeekToInteractiveClick=l[24]),!i&&r&1&&(i=!0,a.controlsElementRef=l[0],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function F3(t){let e,i,n,o;const s=[H3,z3],l=[];function r(a,c){return a[25]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=at()},m(a,c){l[e].m(a,c),T(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function U3(t,e,i){let n,{bottomHidden:o}=e,{bottomNoSmooth:s=!1}=e,{showControls:l}=e,{controlsElementRef:r=void 0}=e,{isAds:a=!1}=e,{canRewindLive:c}=e,{logoClickable:f}=e,{logoHidden:m}=e,{videoLogoUrl:h}=e,{showNextPrevButtons:_}=e,{nextButtonActive:b}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:v=!1}=e,{supportLink:S}=e,{customFullscreenSupported:w=!0}=e,{playNextVideo:y}=e,{playPrevVideo:E}=e,{repeatPlaylist:ie}=e,{toggleFullscreen:V}=e,{returnFocus:F=te.noop}=e,{seekToInteractive:oe}=e,{toggleGraph:x}=e,{playPrevChapter:C}=e,{onDisabledPlayPrevChapterClick:$=te.noop}=e,{onDisabledSeekToInteractiveClick:R=te.noop}=e;const j=ht().ui.isMobile;O(t,j,A=>i(25,n=A));function N(A){r=A,i(0,r)}function Q(A){r=A,i(0,r)}return t.$$set=A=>{"bottomHidden"in A&&i(1,o=A.bottomHidden),"bottomNoSmooth"in A&&i(2,s=A.bottomNoSmooth),"showControls"in A&&i(3,l=A.showControls),"controlsElementRef"in A&&i(0,r=A.controlsElementRef),"isAds"in A&&i(4,a=A.isAds),"canRewindLive"in A&&i(5,c=A.canRewindLive),"logoClickable"in A&&i(6,f=A.logoClickable),"logoHidden"in A&&i(7,m=A.logoHidden),"videoLogoUrl"in A&&i(8,h=A.videoLogoUrl),"showNextPrevButtons"in A&&i(9,_=A.showNextPrevButtons),"nextButtonActive"in A&&i(10,b=A.nextButtonActive),"prevButtonActive"in A&&i(11,k=A.prevButtonActive),"isOneVideoPlaylist"in A&&i(12,v=A.isOneVideoPlaylist),"supportLink"in A&&i(13,S=A.supportLink),"customFullscreenSupported"in A&&i(14,w=A.customFullscreenSupported),"playNextVideo"in A&&i(15,y=A.playNextVideo),"playPrevVideo"in A&&i(16,E=A.playPrevVideo),"repeatPlaylist"in A&&i(17,ie=A.repeatPlaylist),"toggleFullscreen"in A&&i(18,V=A.toggleFullscreen),"returnFocus"in A&&i(19,F=A.returnFocus),"seekToInteractive"in A&&i(20,oe=A.seekToInteractive),"toggleGraph"in A&&i(21,x=A.toggleGraph),"playPrevChapter"in A&&i(22,C=A.playPrevChapter),"onDisabledPlayPrevChapterClick"in A&&i(23,$=A.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in A&&i(24,R=A.onDisabledSeekToInteractiveClick)},[r,o,s,l,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe,x,C,$,R,n,j,N,Q]}class gu extends ve{constructor(e){super(),_e(this,e,U3,F3,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,videoLogoUrl: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})}}function q3(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function Z3(t){let e,i,n,o,s,l,r,a,c,f,m,h,_;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("defs"),l=B("filter"),r=B("feFlood"),a=B("feColorMatrix"),c=B("feOffset"),f=B("feGaussianBlur"),m=B("feColorMatrix"),h=B("feBlend"),_=B("feBlend"),u(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-.98l-7.659 4.85Z"),u(n,"fill","#fff"),u(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.19l-7.658 4.848Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2260_100684"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_100684"),u(_,"result","shape"),u(l,"id","a"),u(l,"x","2.5"),u(l,"y","0"),u(l,"width","43.996"),u(l,"height","49.5"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","51"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","seek-icon"),u(e,"class","v-1ub874v"),M(e,"reversed",t[0])},m(b,k){T(b,e,k),p(e,i),p(i,n),p(i,o),p(e,s),p(s,l),p(l,r),p(l,a),p(l,c),p(l,f),p(l,m),p(l,h),p(l,_)},p(b,[k]){k&1&&M(e,"reversed",b[0])},i:W,o:W,d(b){b&&P(e)}}}function W3(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class K3 extends ve{constructor(e){super(),_e(this,e,W3,Z3,be,{reversed:0},q3)}}function j3(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("defs"),l=B("clipPath"),r=B("path"),a=B("filter"),c=B("feFlood"),f=B("feColorMatrix"),m=B("feOffset"),h=B("feGaussianBlur"),_=B("feColorMatrix"),b=B("feBlend"),k=B("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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 7ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3h-11ZM12 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 22Zm18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3h-4ZM22 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 22Z"),u(n,"fill","#fff"),u(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.977V25.177c0 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.977V22.823c0-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-.01ZM12.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"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(r,"fill","#fff"),u(r,"d","M0 0h48v48H0z"),u(l,"id","a"),u(c,"flood-opacity","0"),u(c,"result","BackgroundImageFix"),u(f,"in","SourceAlpha"),u(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(f,"result","hardAlpha"),u(h,"stdDeviation","2.5"),u(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2260_104204"),u(k,"in","SourceGraphic"),u(k,"in2","effect1_dropShadow_2260_104204"),u(k,"result","shape"),u(a,"id","b"),u(a,"x","-1.5"),u(a,"y","1.5"),u(a,"width","51"),u(a,"height","45"),u(a,"filterUnits","userSpaceOnUse"),u(a,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(v,S){T(v,e,S),p(e,i),p(i,n),p(i,o),p(e,s),p(s,l),p(l,r),p(s,a),p(a,c),p(a,f),p(a,m),p(a,h),p(a,_),p(a,b),p(a,k)},d(v){v&&P(e)}}}function G3(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("path"),l=B("defs"),r=B("clipPath"),a=B("path"),c=B("filter"),f=B("feFlood"),m=B("feColorMatrix"),h=B("feOffset"),_=B("feGaussianBlur"),b=B("feColorMatrix"),k=B("feBlend"),v=B("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.499 10.499 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-3h-11ZM12 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 22Z"),u(n,"fill","#fff"),u(o,"d","M34.5 23.5h-4.639l12.552 12.551c.158-.254.306-.516.443-.784.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.5H34.5a1.5 1.5 0 0 1 0 3Z"),u(o,"fill","#fff"),u(s,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268c.162-.26.313-.528.453-.803.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977V22.823c0-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.128-.118.01-.235.02-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5h-4.639ZM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.75 10.75 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.977V25.177c0 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.474l-37-37ZM12.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"),u(s,"stroke","#000"),u(s,"stroke-opacity",".12"),u(s,"stroke-width",".5"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(a,"fill","#fff"),u(a,"d","M0 0h48v48H0z"),u(r,"id","a"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(m,"in","SourceAlpha"),u(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(m,"result","hardAlpha"),u(_,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(k,"in2","BackgroundImageFix"),u(k,"result","effect1_dropShadow_2260_104293"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_104293"),u(v,"result","shape"),u(c,"id","b"),u(c,"x","-1.5"),u(c,"y","-1.5"),u(c,"width","51"),u(c,"height","51"),u(c,"filterUnits","userSpaceOnUse"),u(c,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(S,w){T(S,e,w),p(e,i),p(i,n),p(i,o),p(i,s),p(e,l),p(l,r),p(r,a),p(l,c),p(c,f),p(c,m),p(c,h),p(c,_),p(c,b),p(c,k),p(c,v)},d(S){S&&P(e)}}}function Y3(t){let e;function i(s,l){return s[0]?G3:j3}let n=i(t),o=n(t);return{c(){o.c(),e=at()},m(s,l){o.m(s,l),T(s,e,l)},p(s,[l]){n!==(n=i(s))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:W,o:W,d(s){s&&P(e),o.d(s)}}}function Q3(t,e,i){let{isOff:n=!1}=e;return t.$$set=o=>{"isOff"in o&&i(0,n=o.isOff)},[n]}class bu extends ve{constructor(e){super(),_e(this,e,Q3,Y3,be,{isOff:0})}}function X3(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function J3(t){let e,i,n,o,s,l,r,a,c,f,m,h,_;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("defs"),l=B("filter"),r=B("feFlood"),a=B("feColorMatrix"),c=B("feOffset"),f=B("feGaussianBlur"),m=B("feColorMatrix"),h=B("feBlend"),_=B("feBlend"),u(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.044l-12.21 6.916Z"),u(n,"fill","#fff"),u(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"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2260_106627"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_106627"),u(_,"result","shape"),u(l,"id","a"),u(l,"x","3.402"),u(l,"y","10.105"),u(l,"width","40.098"),u(l,"height","27.785"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","rate-change-icon"),u(e,"class","v-1ub874v"),M(e,"reversed",t[0])},m(b,k){T(b,e,k),p(e,i),p(i,n),p(i,o),p(e,s),p(s,l),p(l,r),p(l,a),p(l,c),p(l,f),p(l,m),p(l,h),p(l,_)},p(b,[k]){k&1&&M(e,"reversed",b[0])},i:W,o:W,d(b){b&&P(e)}}}function x3(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class $3 extends ve{constructor(e){super(),_e(this,e,x3,J3,be,{reversed:0},X3)}}function ep(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function tp(t){let e,i,n,o,s,l,r,a,c,f,m,h,_;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),s=B("defs"),l=B("filter"),r=B("feFlood"),a=B("feColorMatrix"),c=B("feOffset"),f=B("feGaussianBlur"),m=B("feColorMatrix"),h=B("feBlend"),_=B("feBlend"),u(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.908 2.908 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.909 2.909 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 0v8.317Z"),u(n,"fill","#fff"),u(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.158 3.158 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.158 3.158 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.006-13.008 7.172Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2340_106922"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2340_106922"),u(_,"result","shape"),u(l,"id","a"),u(l,"x","5.5"),u(l,"y","5.5"),u(l,"width","37"),u(l,"height","37"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","episodes-seek-icon"),u(e,"class","v-1ub874v"),M(e,"reversed",t[0])},m(b,k){T(b,e,k),p(e,i),p(i,n),p(i,o),p(e,s),p(s,l),p(l,r),p(l,a),p(l,c),p(l,f),p(l,m),p(l,h),p(l,_)},p(b,[k]){k&1&&M(e,"reversed",b[0])},i:W,o:W,d(b){b&&P(e)}}}function ip(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class np extends ve{constructor(e){super(),_e(this,e,ip,tp,be,{reversed:0},ep)}}function op(t){Ke(t,"v-4ftgwp",`.hot-key-helpers-container.v-4ftgwp.v-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:v-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.v-4ftgwp>div.v-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.v-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.v-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.v-4ftgwp.v-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.v-4ftgwp.v-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.v-4ftgwp.v-4ftgwp{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.v-4ftgwp.v-4ftgwp{visibility:hidden;animation:v-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes v-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes v-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function Kr(t){let e,i=[Ye.BACKWARD_SEEK,Ye.FORWARD_SEEK].includes(t[4]),n,o,s,l,r,a,c=[Ye.RATE_DOWN,Ye.RATE_UP].includes(t[4]),f,m=[Ye.EPISODE_PREV,Ye.EPISODE_NEXT].includes(t[4]),h,_,b,k,v,S=i&&jr(t),w=t[4]===Ye.PAUSE&&Gr(),y=t[4]===Ye.PLAY&&Yr(),E=t[4]===Ye.REPLAY&&Qr(),ie=t[4]===Ye.SUBTITLES_OFF&&Xr(),V=t[4]===Ye.SUBTITLES_ON&&Jr(),F=c&&xr(t),oe=m&&$r(t),x=t[4]===Ye.MUTE&&ea(),C=t[4]===Ye.VOLUME&&ta(),$=t[5]&&ia(t);return{c(){e=I("div"),S&&S.c(),n=D(),w&&w.c(),o=D(),y&&y.c(),s=D(),E&&E.c(),l=D(),ie&&ie.c(),r=D(),V&&V.c(),a=D(),F&&F.c(),f=D(),oe&&oe.c(),h=D(),x&&x.c(),_=D(),C&&C.c(),b=D(),$&&$.c(),k=at(),u(e,"class","v-4ftgwp")},m(R,se){T(R,e,se),S&&S.m(e,null),p(e,n),w&&w.m(e,null),p(e,o),y&&y.m(e,null),p(e,s),E&&E.m(e,null),p(e,l),ie&&ie.m(e,null),p(e,r),V&&V.m(e,null),p(e,a),F&&F.m(e,null),p(e,f),oe&&oe.m(e,null),p(e,h),x&&x.m(e,null),p(e,_),C&&C.m(e,null),T(R,b,se),$&&$.m(R,se),T(R,k,se),v=!0},p(R,se){se&16&&(i=[Ye.BACKWARD_SEEK,Ye.FORWARD_SEEK].includes(R[4])),i?S?(S.p(R,se),se&16&&d(S,1)):(S=jr(R),S.c(),d(S,1),S.m(e,n)):S&&(fe(),g(S,1,1,()=>{S=null}),de()),R[4]===Ye.PAUSE?w?se&16&&d(w,1):(w=Gr(),w.c(),d(w,1),w.m(e,o)):w&&(fe(),g(w,1,1,()=>{w=null}),de()),R[4]===Ye.PLAY?y?se&16&&d(y,1):(y=Yr(),y.c(),d(y,1),y.m(e,s)):y&&(fe(),g(y,1,1,()=>{y=null}),de()),R[4]===Ye.REPLAY?E?se&16&&d(E,1):(E=Qr(),E.c(),d(E,1),E.m(e,l)):E&&(fe(),g(E,1,1,()=>{E=null}),de()),R[4]===Ye.SUBTITLES_OFF?ie?se&16&&d(ie,1):(ie=Xr(),ie.c(),d(ie,1),ie.m(e,r)):ie&&(fe(),g(ie,1,1,()=>{ie=null}),de()),R[4]===Ye.SUBTITLES_ON?V?se&16&&d(V,1):(V=Jr(),V.c(),d(V,1),V.m(e,a)):V&&(fe(),g(V,1,1,()=>{V=null}),de()),se&16&&(c=[Ye.RATE_DOWN,Ye.RATE_UP].includes(R[4])),c?F?(F.p(R,se),se&16&&d(F,1)):(F=xr(R),F.c(),d(F,1),F.m(e,f)):F&&(fe(),g(F,1,1,()=>{F=null}),de()),se&16&&(m=[Ye.EPISODE_PREV,Ye.EPISODE_NEXT].includes(R[4])),m?oe?(oe.p(R,se),se&16&&d(oe,1)):(oe=$r(R),oe.c(),d(oe,1),oe.m(e,h)):oe&&(fe(),g(oe,1,1,()=>{oe=null}),de()),R[4]===Ye.MUTE?x?se&16&&d(x,1):(x=ea(),x.c(),d(x,1),x.m(e,_)):x&&(fe(),g(x,1,1,()=>{x=null}),de()),R[4]===Ye.VOLUME?C?se&16&&d(C,1):(C=ta(),C.c(),d(C,1),C.m(e,null)):C&&(fe(),g(C,1,1,()=>{C=null}),de()),R[5]?$?$.p(R,se):($=ia(R),$.c(),$.m(k.parentNode,k)):$&&($.d(1),$=null)},i(R){v||(d(S),d(w),d(y),d(E),d(ie),d(V),d(F),d(oe),d(x),d(C),v=!0)},o(R){g(S),g(w),g(y),g(E),g(ie),g(V),g(F),g(oe),g(x),g(C),v=!1},d(R){R&&(P(e),P(b),P(k)),S&&S.d(),w&&w.d(),y&&y.d(),E&&E.d(),ie&&ie.d(),V&&V.d(),F&&F.d(),oe&&oe.d(),x&&x.d(),C&&C.d(),$&&$.d(R)}}}function jr(t){let e,i;return e=new K3({props:{reversed:t[4]===Ye.FORWARD_SEEK}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Ye.FORWARD_SEEK),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Gr(t){let e,i;return e=new Q1({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Yr(t){let e,i;return e=new Tl({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Qr(t){let e,i;return e=new lu({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Xr(t){let e,i;return e=new bu({props:{isOff:!0}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Jr(t){let e,i;return e=new bu({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function xr(t){let e,i;return e=new $3({props:{reversed:t[4]===Ye.RATE_UP}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Ye.RATE_UP),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function $r(t){let e,i;return e=new np({props:{reversed:t[4]===Ye.EPISODE_NEXT}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Ye.EPISODE_NEXT),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function ea(t){let e,i;return e=new Go({props:{volume:0}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function ta(t){let e,i;return e=new Go({props:{volume:1}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function ia(t){let e,i;return{c(){e=I("span"),i=De(t[5]),u(e,"class","hot-key-helpers-text v-4ftgwp")},m(n,o){T(n,e,o),p(e,i)},p(n,o){o&32&&et(i,n[5])},d(n){n&&P(e)}}}function lp(t){let e,i,n=!t[1]&&t[4]&&Kr(t);return{c(){e=I("div"),n&&n.c(),u(e,"class","hot-key-helpers-container v-4ftgwp"),M(e,"hidden",t[1]),M(e,"hot-key-helpers-container--left",t[2]),M(e,"hot-key-helpers-container--right",t[3])},m(o,s){T(o,e,s),n&&n.m(e,null),i=!0},p(o,[s]){!o[1]&&o[4]?n?(n.p(o,s),s&18&&d(n,1)):(n=Kr(o),n.c(),d(n,1),n.m(e,null)):n&&(fe(),g(n,1,1,()=>{n=null}),de()),(!i||s&2)&&M(e,"hidden",o[1]),(!i||s&4)&&M(e,"hot-key-helpers-container--left",o[2]),(!i||s&8)&&M(e,"hot-key-helpers-container--right",o[3])},i(o){i||(d(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d()}}}function sp(t,e,i){let n,o=W,s=()=>(o(),o=qt(l,h=>i(6,n=h)),l);t.$$.on_destroy.push(()=>o());let{data:l}=e;s();let r,a,c,f,m;return t.$$set=h=>{"data"in h&&s(i(0,l=h.data))},t.$$.update=()=>{t.$$.dirty&64&&(i(1,r=!n),i(2,a=n?.type===Ye.BACKWARD_SEEK),i(3,c=n?.type===Ye.FORWARD_SEEK),i(4,f=n?.type),n?.t?i(5,m=K(n.t.key,{value:n.t.value||""})):i(5,m=n?.text))},[l,r,a,c,f,m,n]}class rp extends ve{constructor(e){super(),_e(this,e,sp,lp,be,{data:0},op)}}function ap(t){Ke(t,"v-1yzc86r",".immersive-controls.v-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.v-1yzc86r{top:50px;left:20px}.button-block.v-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.v-1yzc86r{display:flex;flex-direction:row;position:relative}.button.v-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.v-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.v-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.v-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.v-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.v-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.v-1yzc86r:hover svg{opacity:1}")}function up(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w;return s=new Kn({props:{direction:"up"}}),a=new Kn({props:{direction:"up"}}),h=new Kn({props:{direction:"up"}}),k=new Kn({props:{direction:"up"}}),{c(){e=I("div"),i=I("div"),n=I("div"),o=I("div"),U(s.$$.fragment),l=D(),r=I("div"),U(a.$$.fragment),c=D(),f=I("div"),m=I("div"),U(h.$$.fragment),_=D(),b=I("div"),U(k.$$.fragment),u(o,"class","button button-up v-1yzc86r"),u(r,"class","button button-right v-1yzc86r"),u(n,"class","button-row v-1yzc86r"),u(m,"class","button button-left v-1yzc86r"),u(b,"class","button button-down v-1yzc86r"),u(f,"class","button-row v-1yzc86r"),u(i,"class","button-block v-1yzc86r"),u(i,"aria-hidden","true"),u(e,"class","immersive-controls v-1yzc86r"),u(e,"tabindex","0"),u(e,"role","button"),u(e,"aria-label",K("aria_label_spherical_control")),M(e,"m-shifted",t[0])},m(y,E){T(y,e,E),p(e,i),p(i,n),p(n,o),z(s,o,null),p(n,l),p(n,r),z(a,r,null),p(i,c),p(i,f),p(f,m),z(h,m,null),p(f,_),p(f,b),z(k,b,null),v=!0,S||(w=[he(o,"mousedown",t[1]),he(o,"mouseup",t[5]),he(o,"mouseleave",t[5]),he(r,"mousedown",t[3]),he(r,"mouseup",t[5]),he(r,"mouseleave",t[5]),he(m,"mousedown",t[4]),he(m,"mouseup",t[5]),he(m,"mouseleave",t[5]),he(b,"mousedown",t[2]),he(b,"mouseup",t[5]),he(b,"mouseleave",t[5]),he(e,"keydown",t[6]),he(e,"keyup",t[7])],S=!0)},p(y,[E]){(!v||E&1)&&M(e,"m-shifted",y[0])},i(y){v||(d(s.$$.fragment,y),d(a.$$.fragment,y),d(h.$$.fragment,y),d(k.$$.fragment,y),v=!0)},o(y){g(s.$$.fragment,y),g(a.$$.fragment,y),g(h.$$.fragment,y),g(k.$$.fragment,y),v=!1},d(y){y&&P(e),H(s),H(a),H(h),H(k),S=!1,nt(w)}}}function cp(t,e,i){let{isShifted:n=!1}=e;const o=ht(),s=new Set([Ae.ArrowUp,Ae.ArrowDown,Ae.ArrowLeft,Ae.ArrowRight]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},r=()=>{o.actions.internal.startCameraManualRotation(0,-1)},a=()=>{o.actions.internal.startCameraManualRotation(1,0)},c=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),m=_=>{if(s.has(_.code))switch(_.preventDefault(),_.stopPropagation(),_.code){case Ae.ArrowUp:l();break;case Ae.ArrowDown:r();break;case Ae.ArrowLeft:c();break;case Ae.ArrowRight:a();break}},h=_=>{s.has(_.code)&&(_.preventDefault(),_.stopPropagation(),f())};return t.$$set=_=>{"isShifted"in _&&i(0,n=_.isShifted)},[n,l,r,a,c,f,m,h]}class _u extends ve{constructor(e){super(),_e(this,e,cp,up,be,{isShifted:0},ap)}}function fp(t){Ke(t,"v-ovfyp5",".subtitles-container.v-ovfyp5.v-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.v-ovfyp5.v-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.v-ovfyp5.v-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.v-ovfyp5.v-ovfyp5{bottom:8%}.subtitles-container.auto.v-ovfyp5 .subtitles-caption.v-ovfyp5{left:24%;right:24%}.caption.v-ovfyp5.v-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.v-ovfyp5 .caption.v-ovfyp5{width:100%}.caption-line.v-ovfyp5.v-ovfyp5{display:block;text-align:center}.subtitles-container.auto.v-ovfyp5 .caption-line.v-ovfyp5{text-align:left}.caption-segment.v-ovfyp5.v-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function na(t,e,i){const n=t.slice();return n[16]=e[i].value,n}function oa(t,e,i){const n=t.slice();return n[16]=e[i].value,n[17]=e[i].timeAppeared,n}function la(t){let e,i;function n(l,r){return l[7]&&l[8]?pp:l[5]?mp:dp}let o=n(t),s=o(t);return{c(){e=I("div"),i=I("span"),s.c(),u(i,"class","caption v-ovfyp5"),u(e,"class","subtitles-caption v-ovfyp5"),M(e,"mobile",t[3])},m(l,r){T(l,e,r),p(e,i),s.m(i,null)},p(l,r){o===(o=n(l))&&s?s.p(l,r):(s.d(1),s=o(l),s&&(s.c(),s.m(i,null))),r&8&&M(e,"mobile",l[3])},d(l){l&&P(e),s.d()}}}function dp(t){let e,i=Rt(t[1]),n=[];for(let o=0;o<i.length;o+=1)n[o]=sa(na(t,i,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=at()},m(o,s){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,s);T(o,e,s)},p(o,s){if(s&18){i=Rt(o[1]);let l;for(l=0;l<i.length;l+=1){const r=na(o,i,l);n[l]?n[l].p(r,s):(n[l]=sa(r),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},d(o){o&&P(e),kn(n,o)}}}function mp(t){let e,i,n=Rt(t[6]),o=[];for(let s=0;s<n.length;s+=1)o[s]=aa(oa(t,n,s));return{c(){e=I("span"),i=I("span");for(let s=0;s<o.length;s+=1)o[s].c();u(i,"class","caption-segment v-ovfyp5"),It(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(s,l){T(s,e,l),p(e,i);for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(i,null)},p(s,l){if(l&68){n=Rt(s[6]);let r;for(r=0;r<n.length;r+=1){const a=oa(s,n,r);o[r]?o[r].p(a,l):(o[r]=aa(a),o[r].c(),o[r].m(i,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}l&16&&It(i,"font-size",s[4]+"px")},d(s){s&&P(e),kn(o,s)}}}function pp(t){let e,i,n=K("subtitles_auto_caption")+"",o;return{c(){e=I("span"),i=I("span"),o=De(n),u(i,"class","caption-segment v-ovfyp5"),It(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(s,l){T(s,e,l),p(e,i),p(i,o)},p(s,l){l&16&&It(i,"font-size",s[4]+"px")},d(s){s&&P(e)}}}function sa(t){let e,i,n=t[16]+"",o,s;return{c(){e=I("span"),i=I("span"),o=De(n),s=D(),u(i,"class","caption-segment v-ovfyp5"),It(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(l,r){T(l,e,r),p(e,i),p(i,o),p(e,s)},p(l,r){r&2&&n!==(n=l[16]+"")&&et(o,n),r&16&&It(i,"font-size",l[4]+"px")},d(l){l&&P(e)}}}function ra(t){let e=t[16]+"",i;return{c(){i=De(e)},m(n,o){T(n,i,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&et(i,e)},d(n){n&&P(i)}}}function aa(t){let e,i=(!t[17]||t[17]<=t[2])&&ra(t);return{c(){i&&i.c(),e=at()},m(n,o){i&&i.m(n,o),T(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?i?i.p(n,o):(i=ra(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(n){n&&P(e),i&&i.d(n)}}}function hp(t){let e,i=t[1].length>0&&la(t);return{c(){e=I("div"),i&&i.c(),u(e,"class","subtitles-container v-ovfyp5"),M(e,"shifted",t[0]),M(e,"auto",t[5]&&!t[8])},m(n,o){T(n,e,o),i&&i.m(e,null)},p(n,[o]){n[1].length>0?i?i.p(n,o):(i=la(n),i.c(),i.m(e,null)):i&&(i.d(1),i=null),o&1&&M(e,"shifted",n[0]),o&288&&M(e,"auto",n[5]&&!n[8])},i:W,o:W,d(n){n&&P(e),i&&i.d()}}}function gp(t,e,i){let n,o,{shifted:s}=e,{captions:l}=e,{position:r}=e,{playerSize:a}=e,{isMobile:c=!1}=e;const f=ht(),m=an(),h=f.state.currentSubtitle$;O(t,h,y=>i(12,n=y));const _=f.state.isAutoSubtitleCaptionVisible$;O(t,_,y=>i(8,o=y));let b,k,v,S,w;return sn(()=>{w=window.setTimeout(()=>{_.set(!1)},m.autoSubtitlesTimeout)}),Co(()=>{window.clearTimeout(w)}),t.$$set=y=>{"shifted"in y&&i(0,s=y.shifted),"captions"in y&&i(1,l=y.captions),"position"in y&&i(2,r=y.position),"playerSize"in y&&i(11,a=y.playerSize),"isMobile"in y&&i(3,c=y.isMobile)},t.$$.update=()=>{if(t.$$.dirty&2048){const y=a.width*.02;i(4,b=y<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:y)}t.$$.dirty&2&&i(5,k=l.some(y=>y.type==="timestamp")),t.$$.dirty&2&&i(6,v=l.reduce((y,{type:E,value:ie})=>(E==="timestamp"?y.push({timeAppeared:Number(ie),value:""}):y.length===0?y.push({value:String(ie)}):y[y.length-1].value=String(ie),y),[])),t.$$.dirty&4096&&i(7,S=!!n.isAuto)},[s,l,r,c,b,k,v,S,o,h,_,a,n]}class vu extends ve{constructor(e){super(),_e(this,e,gp,hp,be,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},fp)}}function bp(t){Ke(t,"v-1o62kpz",".wrapper.v-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.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}")}function ua(t){let e,i,n;return{c(){e=I("div"),i=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(t[1]),u(e,"class","text v-1o62kpz")},m(o,s){T(o,e,s),p(e,i),p(e,n)},p(o,s){s&2&&et(n,o[1])},d(o){o&&P(e)}}}function _p(t){let e,i,n,o,s,l,r=t[1]&&ua(t);return{c(){e=I("div"),i=I("div"),i.innerHTML='<svg class="icon v-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=D(),r&&r.c(),u(i,"class","icon_wrapper v-1o62kpz"),u(e,"class","wrapper v-1o62kpz"),u(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(a,c){T(a,e,c),p(e,i),p(e,n),r&&r.m(e,null),s||(l=he(e,"click",t[2]),s=!0)},p(a,[c]){a[1]?r?r.p(a,c):(r=ua(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),c&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${a[0]||""}')`)&&u(e,"style",o)},i:W,o:W,d(a){a&&P(e),r&&r.d(),s=!1,l()}}}function vp(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function s(l){Qn.call(this,t,l)}return t.$$set=l=>{"thumbUrl"in l&&i(0,n=l.thumbUrl),"chromecastDeviceName"in l&&i(1,o=l.chromecastDeviceName)},[n,o,s]}class ku extends ve{constructor(e){super(),_e(this,e,vp,_p,be,{thumbUrl:0,chromecastDeviceName:1},bp)}}function kp(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"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 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-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.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z"),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"width","200"),u(e,"height","200"),u(e,"viewBox","460 190 130 90"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","error-icon")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class wp extends ve{constructor(e){super(),_e(this,e,null,kp,be,{})}}function yp(t){Ke(t,"v-13zpvm8",".container.v-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function Cp(t){let e,i,n;return i=new wp({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","container v-13zpvm8")},m(o,s){T(o,e,s),z(i,e,null),n=!0},p:W,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}class wu extends ve{constructor(e){super(),_e(this,e,null,Cp,be,{},yp)}}function Pp(t){Ke(t,"v-17wno3",".container.v-17wno3.v-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.v-17wno3.v-17wno3{opacity:0;visibility:hidden}.playButton.v-17wno3.v-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.v-17wno3.v-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.v-17wno3:hover .playButtonBackground.v-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.v-17wno3 svg{transform:scale(2)}")}function Sp(t){let e,i,n,o,s,l,r,a,c;return s=new Tl({}),{c(){e=I("div"),i=I("div"),n=I("div"),o=D(),U(s.$$.fragment),u(n,"class","playButtonBackground v-17wno3"),u(i,"class","playButton v-17wno3"),u(i,"tabindex","0"),u(i,"role","button"),u(i,"aria-label",K("tooltip_play")),u(e,"class","container v-17wno3"),u(e,"style",l=`background-color: #222; background-image: url('${t[0]||""}')`),M(e,"hidden",t[1])},m(f,m){T(f,e,m),p(e,i),p(i,n),p(i,o),z(s,i,null),r=!0,a||(c=[he(i,"keydown",t[3]),he(e,"click",ot(function(){vn(t[2])&&t[2].apply(this,arguments)}))],a=!0)},p(f,[m]){t=f,(!r||m&1&&l!==(l=`background-color: #222; background-image: url('${t[0]||""}')`))&&u(e,"style",l),(!r||m&2)&&M(e,"hidden",t[1])},i(f){r||(d(s.$$.fragment,f),r=!0)},o(f){g(s.$$.fragment,f),r=!1},d(f){f&&P(e),H(s),a=!1,nt(c)}}}function Tp(t,e,i){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:s}=e;const r=ht().ui.startedByKeyboard$,a=c=>{const f=c.code;[Ae.Enter,Ae.Space].includes(f)&&(c.stopPropagation(),c.preventDefault(),r.set(!0),s())};return t.$$set=c=>{"thumbUrl"in c&&i(0,n=c.thumbUrl),"hidden"in c&&i(1,o=c.hidden),"startVideo"in c&&i(2,s=c.startVideo)},[n,o,s,a]}class yu extends ve{constructor(e){super(),_e(this,e,Tp,Sp,be,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Pp)}get handlePressKey(){return this.$$.ctx[3]}}function Ip(t){Ke(t,"v-1bcvcf2",`.title.v-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
26
  0deg,
27
27
  rgba(0, 0, 0, 0) 0%,
28
28
  rgba(0, 0, 0, 0.02) 19%,
29
29
  rgba(0, 0, 0, 0.10) 34%,
30
30
  rgba(0, 0, 0, 0.40) 60%,
31
31
  rgba(0, 0, 0, 0.60) 100%
32
- )}.hidden.v-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function Mp(t){let e,i;return{c(){e=E("div"),i=De(t[0]),u(e,"class","title v-1bcvcf2"),B(e,"hidden",t[1])},m(n,o){T(n,e,o),m(e,i)},p(n,[o]){o&1&&$e(i,n[0]),o&2&&B(e,"hidden",n[1])},i:j,o:j,d(n){n&&P(e)}}}function Bp(t,e,i){let{title:n=""}=e,{isHidden:o=!1}=e;return t.$$set=s=>{"title"in s&&i(0,n=s.title),"isHidden"in s&&i(1,o=s.isHidden)},[n,o]}class Np extends _e{constructor(e){super(),be(this,e,Bp,Mp,ge,{title:0,isHidden:1},Vp)}}function Rp(t){Ze(t,"v-1qpxtfg",".timer__container.v-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.v-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.v-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.v-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.v-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function ba(t){let e,i,n,o,s,l,r;return{c(){e=E("div"),i=E("span"),n=De(t[0]),o=R(),s=E("span"),s.textContent=`${W("waiting_live_day_value")}`,l=R(),r=E("span"),r.textContent=`${W("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){T(a,e,c),m(e,i),m(i,n),m(e,o),m(e,s),T(a,l,c),T(a,r,c)},p(a,c){c&1&&$e(n,a[0])},d(a){a&&(P(e),P(l),P(r))}}}function _a(t){let e,i,n,o,s,l,r;return{c(){e=E("div"),i=E("span"),n=De(t[1]),o=R(),s=E("span"),s.textContent=`${W("waiting_live_hour_value")}`,l=R(),r=E("span"),r.textContent=`${W("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){T(a,e,c),m(e,i),m(i,n),m(e,o),m(e,s),T(a,l,c),T(a,r,c)},p(a,c){c&2&&$e(n,a[1])},d(a){a&&(P(e),P(l),P(r))}}}function va(t){let e,i,n,o,s,l,r;return{c(){e=E("div"),i=E("span"),n=De(t[2]),o=R(),s=E("span"),s.textContent=`${W("waiting_live_minute_value")}`,l=R(),r=E("span"),r.textContent=`${W("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){T(a,e,c),m(e,i),m(i,n),m(e,o),m(e,s),T(a,l,c),T(a,r,c)},p(a,c){c&4&&$e(n,a[2])},d(a){a&&(P(e),P(l),P(r))}}}function ka(t){let e,i,n,o,s;return{c(){e=E("div"),i=E("span"),n=De(t[3]),o=R(),s=E("span"),s.textContent=`${W("waiting_live_second_value")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg")},m(l,r){T(l,e,r),m(e,i),m(i,n),m(e,o),m(e,s)},p(l,r){r&8&&$e(n,l[3])},d(l){l&&P(e)}}}function Op(t){let e,i,n,o,s=t[0]&&ba(t),l=t[1]&&_a(t),r=t[2]&&va(t),a=t[3]&&ka(t);return{c(){e=E("div"),s&&s.c(),i=R(),l&&l.c(),n=R(),r&&r.c(),o=R(),a&&a.c(),u(e,"class","timer__container v-1qpxtfg")},m(c,f){T(c,e,f),s&&s.m(e,null),m(e,i),l&&l.m(e,null),m(e,n),r&&r.m(e,null),m(e,o),a&&a.m(e,null)},p(c,[f]){c[0]?s?s.p(c,f):(s=ba(c),s.c(),s.m(e,i)):s&&(s.d(1),s=null),c[1]?l?l.p(c,f):(l=_a(c),l.c(),l.m(e,n)):l&&(l.d(1),l=null),c[2]?r?r.p(c,f):(r=va(c),r.c(),r.m(e,o)):r&&(r.d(1),r=null),c[3]?a?a.p(c,f):(a=ka(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:j,o:j,d(c){c&&P(e),s&&s.d(),l&&l.d(),r&&r.d(),a&&a.d()}}}function zp(t,e,i){let{startTime:n}=e,{onTimerOver:o}=e,s,l,r,a,c;const f=_=>String(_).padStart(2,"0"),p=_=>{const b=Math.floor(_/86400);b&&(_-=b*86400,i(0,s=f(b)));const k=Math.floor(_/3600);i(1,l=f(k));const v=Math.floor(_/60)%60;i(2,r=f(v));const S=_%60;i(3,a=f(S))},h=()=>{const _=Math.floor(Date.now()/1e3),b=n-_;p(b),b>=1?c=requestAnimationFrame(h):o()};return ln(()=>{c=requestAnimationFrame(h)}),Zo(()=>{cancelAnimationFrame(c)}),t.$$set=_=>{"startTime"in _&&i(4,n=_.startTime),"onTimerOver"in _&&i(5,o=_.onTimerOver)},[s,l,r,a,n,o]}class Dp extends _e{constructor(e){super(),be(this,e,zp,Op,ge,{startTime:4,onTimerOver:5},Rp)}}function Fp(t){let e,i,n,o,s;return{c(){e=N("svg"),i=N("path"),n=N("path"),o=N("path"),s=N("path"),u(i,"fill","#fefffe"),u(i,"d","M179.5-.5h40c85.04 12.447 142.207 59.113 171.5 140 3.816 13.264 6.649 26.597 8.5 40v40c-3.699 34.4-15.533 65.733-35.5 94-6.417-8.409-14.584-14.576-24.5-18.5-1.017-1.049-1.184-2.216-.5-3.5 26.495-41.134 34.161-85.467 23-133-21.84-72.167-70.006-114-144.5-125.5C147.251 28.707 93.084 55.874 55 114.5c-26.93 49.402-29.93 100.068-9 152a152.324 152.324 0 0 0 14 25c.684 1.284.517 2.451-.5 3.5-9.916 3.924-18.083 10.091-24.5 18.5-19.967-28.267-31.8-59.6-35.5-94v-40C11.947 94.46 58.613 37.293 139.5 8c13.264-3.816 26.597-6.649 40-8.5Z"),Tt(i,"opacity",".965"),u(n,"fill","#fefffe"),u(n,"d","M183.5 63.5c57.529-3.65 102.029 18.35 133.5 66 21.628 40.092 24.295 81.425 8 124a186.647 186.647 0 0 1-17.5 29.5 632.842 632.842 0 0 1-38-7c36.445-38.176 42.945-81.01 19.5-128.5-24.178-37.504-58.678-54.337-103.5-50.5-49.5 9.5-79 39-88.5 88.5-3.944 35.587 6.889 65.753 32.5 90.5a1149.466 1149.466 0 0 0-36 7.5c-1.53-.029-2.696-.696-3.5-2-29.298-42.431-34.631-87.764-16-136 21.866-46.852 58.366-74.185 109.5-82Z"),Tt(n,"opacity",".965"),u(o,"fill","#fefffe"),u(o,"d","M187.5 127.5c44.524-2.948 72.357 17.052 83.5 60 3.431 44.55-16.403 72.383-59.5 83.5-44.55 3.431-72.383-16.403-83.5-59.5-3.229-44.571 16.604-72.571 59.5-84Z"),Tt(o,"opacity",".985"),u(s,"fill","#fefffe"),u(s,"d","M219.5 399.5h-40c-44.969-5.321-83.969-23.321-117-54a31.738 31.738 0 0 1 3.5-10c5.692-6.431 12.526-11.264 20.5-14.5 36.524-12.956 74.191-18.79 113-17.5 38.809-1.29 76.476 4.544 113 17.5 7.974 3.236 14.808 8.069 20.5 14.5a31.731 31.731 0 0 1 3.5 10c-33.031 30.679-72.031 48.679-117 54Z"),Tt(s,"opacity",".986"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"viewBox","0 0 400 400"),u(e,"aria-hidden","true"),u(e,"data-testid","podcast-icon"),Tt(e,"shape-rendering","geometricPrecision"),Tt(e,"text-rendering","geometricPrecision"),Tt(e,"image-rendering","optimizeQuality"),Tt(e,"fill-rule","evenodd"),Tt(e,"clip-rule","evenodd"),Tt(e,"width","100%"),Tt(e,"height","100%")},m(l,r){T(l,e,r),m(e,i),m(e,n),m(e,o),m(e,s)},p:j,i:j,o:j,d(l){l&&P(e)}}}class Hp extends _e{constructor(e){super(),be(this,e,null,Fp,ge,{})}}function Up(t){Ze(t,"v-15pewff",".waiting-container.v-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.v-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.v-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.v-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.v-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.v-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.v-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.v-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function qp(t){let e,i,n,o,s;return o=new Dp({props:{startTime:t[1]||0,onTimerOver:t[3]}}),{c(){e=E("div"),i=E("span"),i.textContent=`${W("waiting_live_timer_title")}`,n=R(),U(o.$$.fragment),u(i,"class","timer__title v-15pewff"),u(e,"class","waiting-timer timer v-15pewff")},m(l,r){T(l,e,r),m(e,i),m(e,n),D(o,e,null),s=!0},p(l,r){const a={};r&2&&(a.startTime=l[1]||0),r&4&&(a.onTimerOver=l[3]),o.$set(a)},i(l){s||(d(o.$$.fragment,l),s=!0)},o(l){g(o.$$.fragment,l),s=!1},d(l){l&&P(e),F(o)}}}function jp(t){let e,i,n,o,s,l;return n=new Hp({}),{c(){e=E("div"),i=E("div"),U(n.$$.fragment),o=R(),s=E("span"),s.textContent=`${W("waiting_live_upcoming_title")}`,u(i,"class","upcoming-icon v-15pewff"),u(s,"class","upcoming__title v-15pewff"),u(e,"class","upcoming v-15pewff")},m(r,a){T(r,e,a),m(e,i),D(n,i,null),m(e,o),m(e,s),l=!0},p:j,i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){g(n.$$.fragment,r),l=!1},d(r){r&&P(e),F(n)}}}function Zp(t){let e,i,n,o,s;const l=[jp,qp],r=[];function a(c,f){return c[2]?0:1}return i=a(t),n=r[i]=l[i](t),{c(){e=E("div"),n.c(),u(e,"class","waiting-container v-15pewff"),u(e,"style",o=`background-image: url(${t[2]?"":t[0]})`)},m(c,f){T(c,e,f),r[i].m(e,null),s=!0},p(c,[f]){let p=i;i=a(c),i===p?r[i].p(c,f):(ce(),g(r[p],1,1,()=>{r[p]=null}),fe(),n=r[i],n?n.p(c,f):(n=r[i]=l[i](c),n.c()),d(n,1),n.m(e,null)),(!s||f&5&&o!==(o=`background-image: url(${c[2]?"":c[0]})`))&&u(e,"style",o)},i(c){s||(d(n),s=!0)},o(c){g(n),s=!1},d(c){c&&P(e),r[i].d()}}}function Wp(t,e,i){let n,{thumbUrl:o}=e,{startTime:s}=e;const l=()=>i(2,n=!0);return t.$$set=r=>{"thumbUrl"in r&&i(0,o=r.thumbUrl),"startTime"in r&&i(1,s=r.startTime)},t.$$.update=()=>{t.$$.dirty&2&&i(2,n=s===void 0||s<Math.floor(Date.now()/1e3))},[o,s,n,l]}class Iu extends _e{constructor(e){super(),be(this,e,Wp,Zp,ge,{thumbUrl:0,startTime:1},Up)}}function Kp(t){Ze(t,"v-1bcnzdw",".waiting-container.v-1bcnzdw{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black)}.waiting-title.v-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function Gp(t){let e,i;return{c(){e=E("div"),i=E("p"),i.textContent=`${W("waiting_record_title")}`,u(i,"class","waiting-title v-1bcnzdw"),u(e,"class","waiting-container v-1bcnzdw")},m(n,o){T(n,e,o),m(e,i)},p:j,i:j,o:j,d(n){n&&P(e)}}}class Lu extends _e{constructor(e){super(),be(this,e,null,Gp,ge,{},Kp)}}const{window:Yp}=jo;function Qp(t){Ze(t,"v-1o4wf3x",".player-wrapper.v-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.v-1o4wf3x .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.v-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.v-1o4wf3x,.video-container.v-1o4wf3x,.ads-container.v-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.v-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.v-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.v-1o4wf3x{transition:none}.nocursor.v-1o4wf3x{cursor:none}.ads-container.v-1o4wf3x{background:var(--black)}")}function wa(t){let e,i;return e=new Iu({props:{thumbUrl:t[3],startTime:t[5]?.startTime}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.thumbUrl=n[3]),o[0]&32&&(s.startTime=n[5]?.startTime),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ya(t){let e,i;return e=new Lu({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ca(t){let e,i,n;return i=new M1({props:{adsSlotId:t[9],adsParams:t[10],adsPreviewParam:t[11],duration:t[12]}}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","ads-container v-1o4wf3x"),B(e,"hidden",t[38]!==Oe.Ads)},m(o,s){T(o,e,s),D(i,e,null),n=!0},p(o,s){const l={};s[0]&512&&(l.adsSlotId=o[9]),s[0]&1024&&(l.adsParams=o[10]),s[0]&2048&&(l.adsPreviewParam=o[11]),s[0]&4096&&(l.duration=o[12]),i.$set(l),(!n||s[1]&128)&&B(e,"hidden",o[38]!==Oe.Ads)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Sa(t){let e,i;return e=new c0({props:{title:t[18],thumb:t[19],playNextVideo:t[23]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&262144&&(s.title=n[18]),o[0]&524288&&(s.thumb=n[19]),o[0]&8388608&&(s.playNextVideo=n[23]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Pa(t){let e,i;return e=new Np({props:{title:t[2],isHidden:!t[36]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.title=n[2]),o[1]&32&&(s.isHidden=!n[36]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ta(t){let e,i;return e=new Su({props:{isShifted:t[38]===Oe.Video&&t[36]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[1]&160&&(s.isShifted=n[38]===Oe.Video&&n[36]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ea(t){let e,i,n;return i=new S1({props:{ariaLabel:W("video360")}}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","spherical-video-icon v-1o4wf3x")},m(o,s){T(o,e,s),D(i,e,null),n=!0},p:j,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Aa(t){let e,i;return e=new Tu({props:{thumbUrl:t[3],chromecastDeviceName:t[55]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.thumbUrl=n[3]),o[1]&16777216&&(s.chromecastDeviceName=n[55]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ia(t){let e,i;return e=new Pu({props:{shifted:t[36],captions:t[57],position:t[58],playerSize:t[34]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[1]&32&&(s.shifted=n[36]),o[1]&67108864&&(s.captions=n[57]),o[1]&134217728&&(s.position=n[58]),o[1]&8&&(s.playerSize=n[34]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function La(t){let e,i,n,o,s;return i=new Eu({}),{c(){e=E("div"),U(i.$$.fragment)},m(l,r){T(l,e,r),D(i,e,null),n=!0,o||(s=[pe(e,"contextmenu",Gt(t[107])),pe(e,"click",ot(t[118]))],o=!0)},p:j,i(l){n||(d(i.$$.fragment,l),n=!0)},o(l){g(i.$$.fragment,l),n=!1},d(l){l&&P(e),F(i),o=!1,nt(s)}}}function Va(t){let e,i,n;function o(l){t[151](l)}let s={bottomHidden:t[38]===Oe.Thumb||t[38]===Oe.WaitingLive||t[38]===Oe.WaitingRecord,bottomNoSmooth:t[52],showControls:t[36],isAds:t[38]===Oe.Ads,canRewindLive:t[7]&&t[59]!==0,logoClickable:t[13],logoHidden:t[14],videoLogoUrl:t[4],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],isOneVideoPlaylist:t[20],supportLink:t[21],customFullscreenSupported:xp,playNextVideo:t[23],playPrevVideo:t[24],repeatPlaylist:t[25],toggleFullscreen:t[105],returnFocus:t[150],seekToInteractive:t[26],toggleGraph:t[27],playPrevChapter:t[28]};return t[41]!==void 0&&(s.controlsElementRef=t[41]),e=new yu({props:s}),ke.push(()=>je(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&128&&(a.bottomHidden=l[38]===Oe.Thumb||l[38]===Oe.WaitingLive||l[38]===Oe.WaitingRecord),r[1]&2097152&&(a.bottomNoSmooth=l[52]),r[1]&32&&(a.showControls=l[36]),r[1]&128&&(a.isAds=l[38]===Oe.Ads),r[0]&128|r[1]&268435456&&(a.canRewindLive=l[7]&&l[59]!==0),r[0]&8192&&(a.logoClickable=l[13]),r[0]&16384&&(a.logoHidden=l[14]),r[0]&16&&(a.videoLogoUrl=l[4]),r[0]&32768&&(a.showNextPrevButtons=l[15]),r[0]&65536&&(a.nextButtonActive=l[16]),r[0]&131072&&(a.prevButtonActive=l[17]),r[0]&1048576&&(a.isOneVideoPlaylist=l[20]),r[0]&2097152&&(a.supportLink=l[21]),r[0]&8388608&&(a.playNextVideo=l[23]),r[0]&16777216&&(a.playPrevVideo=l[24]),r[0]&33554432&&(a.repeatPlaylist=l[25]),r[1]&524288&&(a.returnFocus=l[150]),r[0]&67108864&&(a.seekToInteractive=l[26]),r[0]&134217728&&(a.toggleGraph=l[27]),r[0]&268435456&&(a.playPrevChapter=l[28]),!i&&r[1]&1024&&(i=!0,a.controlsElementRef=l[41],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ma(t){let e,i;return e=new Z1({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ba(t){let e,i;return e=new M0({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Na(t){let e,i;return e=new F1({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ra(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne;e=new Au({props:{hidden:t[38]!==Oe.Thumb||t[37]||t[93]&&t[6],thumbUrl:t[3],startVideo:t[29]}});let L=t[38]===Oe.WaitingLive&&wa(t),V=t[38]===Oe.WaitingRecord&&ya(),x=t[8]&&t[22]&&Ca(t),Y=t[31]&&t[18]&&t[19]&&Sa(t),le=t[46]&&Pa(t),K=t[51]&&Ta(t),C=t[54]&&Ea(),G=t[39]&&Aa(t),z=t[56].value!=="off"&&Ia(t),ee=t[37]&&La(t),Ee=t[22]&&Va(t);b=new N1({props:{isLive:t[60],isHidden:!t[45],isPlaying:t[61],position:t[58],duration:t[62]}}),v=new fp({props:{data:t[102]}});function Re(Q){t[153](Q)}let Ne={supportLink:t[21],returnFocus:t[152],visible:t[33],playerContainerRef:t[40],controlsContainerRef:t[41],x:t[42],y:t[43]};t[32]!==void 0&&(Ne.menuElementRef=t[32]),w=new jf({props:Ne}),ke.push(()=>je(w,"menuElementRef",Re));let ze=t[44]&&Ma(),ve=t[63]&&Ba(),we=t[64]&&Na();return{c(){U(e.$$.fragment),i=R(),L&&L.c(),n=R(),V&&V.c(),o=R(),x&&x.c(),s=R(),Y&&Y.c(),l=R(),le&&le.c(),r=R(),K&&K.c(),a=R(),C&&C.c(),c=R(),G&&G.c(),f=R(),z&&z.c(),p=R(),ee&&ee.c(),h=R(),Ee&&Ee.c(),_=R(),U(b.$$.fragment),k=R(),U(v.$$.fragment),S=R(),U(w.$$.fragment),A=R(),ze&&ze.c(),oe=R(),ve&&ve.c(),M=R(),we&&we.c(),Z=ct()},m(Q,$){D(e,Q,$),T(Q,i,$),L&&L.m(Q,$),T(Q,n,$),V&&V.m(Q,$),T(Q,o,$),x&&x.m(Q,$),T(Q,s,$),Y&&Y.m(Q,$),T(Q,l,$),le&&le.m(Q,$),T(Q,r,$),K&&K.m(Q,$),T(Q,a,$),C&&C.m(Q,$),T(Q,c,$),G&&G.m(Q,$),T(Q,f,$),z&&z.m(Q,$),T(Q,p,$),ee&&ee.m(Q,$),T(Q,h,$),Ee&&Ee.m(Q,$),T(Q,_,$),D(b,Q,$),T(Q,k,$),D(v,Q,$),T(Q,S,$),D(w,Q,$),T(Q,A,$),ze&&ze.m(Q,$),T(Q,oe,$),ve&&ve.m(Q,$),T(Q,M,$),we&&we.m(Q,$),T(Q,Z,$),ne=!0},p(Q,$){const ye={};$[0]&64|$[1]&192&&(ye.hidden=Q[38]!==Oe.Thumb||Q[37]||Q[93]&&Q[6]),$[0]&8&&(ye.thumbUrl=Q[3]),$[0]&536870912&&(ye.startVideo=Q[29]),e.$set(ye),Q[38]===Oe.WaitingLive?L?(L.p(Q,$),$[1]&128&&d(L,1)):(L=wa(Q),L.c(),d(L,1),L.m(n.parentNode,n)):L&&(ce(),g(L,1,1,()=>{L=null}),fe()),Q[38]===Oe.WaitingRecord?V?$[1]&128&&d(V,1):(V=ya(),V.c(),d(V,1),V.m(o.parentNode,o)):V&&(ce(),g(V,1,1,()=>{V=null}),fe()),Q[8]&&Q[22]?x?(x.p(Q,$),$[0]&4194560&&d(x,1)):(x=Ca(Q),x.c(),d(x,1),x.m(s.parentNode,s)):x&&(ce(),g(x,1,1,()=>{x=null}),fe()),Q[31]&&Q[18]&&Q[19]?Y?(Y.p(Q,$),$[0]&786432|$[1]&1&&d(Y,1)):(Y=Sa(Q),Y.c(),d(Y,1),Y.m(l.parentNode,l)):Y&&(ce(),g(Y,1,1,()=>{Y=null}),fe()),Q[46]?le?(le.p(Q,$),$[1]&32768&&d(le,1)):(le=Pa(Q),le.c(),d(le,1),le.m(r.parentNode,r)):le&&(ce(),g(le,1,1,()=>{le=null}),fe()),Q[51]?K?(K.p(Q,$),$[1]&1048576&&d(K,1)):(K=Ta(Q),K.c(),d(K,1),K.m(a.parentNode,a)):K&&(ce(),g(K,1,1,()=>{K=null}),fe()),Q[54]?C?(C.p(Q,$),$[1]&8388608&&d(C,1)):(C=Ea(),C.c(),d(C,1),C.m(c.parentNode,c)):C&&(ce(),g(C,1,1,()=>{C=null}),fe()),Q[39]?G?(G.p(Q,$),$[1]&256&&d(G,1)):(G=Aa(Q),G.c(),d(G,1),G.m(f.parentNode,f)):G&&(ce(),g(G,1,1,()=>{G=null}),fe()),Q[56].value!=="off"?z?(z.p(Q,$),$[1]&33554432&&d(z,1)):(z=Ia(Q),z.c(),d(z,1),z.m(p.parentNode,p)):z&&(ce(),g(z,1,1,()=>{z=null}),fe()),Q[37]?ee?(ee.p(Q,$),$[1]&64&&d(ee,1)):(ee=La(Q),ee.c(),d(ee,1),ee.m(h.parentNode,h)):ee&&(ce(),g(ee,1,1,()=>{ee=null}),fe()),Q[22]?Ee?(Ee.p(Q,$),$[0]&4194304&&d(Ee,1)):(Ee=Va(Q),Ee.c(),d(Ee,1),Ee.m(_.parentNode,_)):Ee&&(ce(),g(Ee,1,1,()=>{Ee=null}),fe());const re={};$[1]&536870912&&(re.isLive=Q[60]),$[1]&16384&&(re.isHidden=!Q[45]),$[1]&1073741824&&(re.isPlaying=Q[61]),$[1]&134217728&&(re.position=Q[58]),$[2]&1&&(re.duration=Q[62]),b.$set(re);const We={};$[0]&2097152&&(We.supportLink=Q[21]),$[1]&524288&&(We.returnFocus=Q[152]),$[1]&4&&(We.visible=Q[33]),$[1]&512&&(We.playerContainerRef=Q[40]),$[1]&1024&&(We.controlsContainerRef=Q[41]),$[1]&2048&&(We.x=Q[42]),$[1]&4096&&(We.y=Q[43]),!y&&$[1]&2&&(y=!0,We.menuElementRef=Q[32],qe(()=>y=!1)),w.$set(We),Q[44]?ze?$[1]&8192&&d(ze,1):(ze=Ma(),ze.c(),d(ze,1),ze.m(oe.parentNode,oe)):ze&&(ce(),g(ze,1,1,()=>{ze=null}),fe()),Q[63]?ve?$[2]&2&&d(ve,1):(ve=Ba(),ve.c(),d(ve,1),ve.m(M.parentNode,M)):ve&&(ce(),g(ve,1,1,()=>{ve=null}),fe()),Q[64]?we?$[2]&4&&d(we,1):(we=Na(),we.c(),d(we,1),we.m(Z.parentNode,Z)):we&&(ce(),g(we,1,1,()=>{we=null}),fe())},i(Q){ne||(d(e.$$.fragment,Q),d(L),d(V),d(x),d(Y),d(le),d(K),d(C),d(G),d(z),d(ee),d(Ee),d(b.$$.fragment,Q),d(v.$$.fragment,Q),d(w.$$.fragment,Q),d(ze),d(ve),d(we),ne=!0)},o(Q){g(e.$$.fragment,Q),g(L),g(V),g(x),g(Y),g(le),g(K),g(C),g(G),g(z),g(ee),g(Ee),g(b.$$.fragment,Q),g(v.$$.fragment,Q),g(w.$$.fragment,Q),g(ze),g(ve),g(we),ne=!1},d(Q){Q&&(P(i),P(n),P(o),P(s),P(l),P(r),P(a),P(c),P(f),P(p),P(h),P(_),P(k),P(S),P(A),P(oe),P(M),P(Z)),F(e,Q),L&&L.d(Q),V&&V.d(Q),x&&x.d(Q),Y&&Y.d(Q),le&&le.d(Q),K&&K.d(Q),C&&C.d(Q),G&&G.d(Q),z&&z.d(Q),ee&&ee.d(Q),Ee&&Ee.d(Q),F(b,Q),F(v,Q),F(w,Q),ze&&ze.d(Q),ve&&ve.d(Q),we&&we.d(Q)}}}function Xp(t){let e,i,n,o,s=t[53],l,r,a,c,f=Ra(t);return{c(){e=E("div"),i=E("div"),o=R(),f.c(),l=ct(),u(i,"class","video-container v-1o4wf3x"),u(i,"style",n=`transform: rotate(${t[35]}deg) scale(${t[48]})`),B(i,"fast-rotate",!t[1].isSmoothVideoRotate),u(e,"class","video-wrapper v-1o4wf3x"),B(e,"hidden",t[38]!==Oe.Video),B(e,"nocursor",t[47])},m(p,h){T(p,e,h),m(e,i),t[149](i),T(p,o,h),f.m(p,h),T(p,l,h),r=!0,a||(c=[pe(e,"contextmenu",Gt(t[107])),pe(e,"mousedown",Gt(t[112])),pe(e,"mouseup",Gt(t[113])),pe(e,"click",Gt(t[115])),pe(e,"dblclick",Gt(t[114]))],a=!0)},p(p,h){(!r||h[1]&131088&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[48]})`))&&u(i,"style",n),(!r||h[0]&2)&&B(i,"fast-rotate",!p[1].isSmoothVideoRotate),(!r||h[1]&128)&&B(e,"hidden",p[38]!==Oe.Video),(!r||h[1]&65536)&&B(e,"nocursor",p[47]),h[1]&4194304&&ge(s,s=p[53])?(ce(),g(f,1,1,j),fe(),f=Ra(p),f.c(),d(f,1),f.m(l.parentNode,l)):f.p(p,h)},i(p){r||(d(f),r=!0)},o(p){g(f),r=!1},d(p){p&&(P(e),P(o),P(l)),t[149](null),f.d(p),a=!1,nt(c)}}}function Jp(t){let e,i,n,o,s,l,r,a={toggleFullscreen:t[105],hideContextMenu:t[106],showHotKeyHelpers:t[116],showKeyMap:t[117],isAds:t[38]===Oe.Ads,fakePlayButtonHandler:t[49]?t[104]:void 0,$$slots:{default:[Xp]},$$scope:{ctx:t}};return i=new p0({props:a}),t[154](i),{c(){e=E("div"),U(i.$$.fragment),n=R(),o=E("div"),u(o,"class","overlay-container"),u(e,"class","player-wrapper v-1o4wf3x")},m(c,f){T(c,e,f),D(i,e,null),m(e,n),m(e,o),t[155](o),t[156](e),s=!0,l||(r=[pe(Yp,"blur",t[106]),pe(e,"mouseenter",t[108]),pe(e,"mouseleave",t[110]),pe(e,"mousemove",t[111]),pe(e,"click",t[119],!0),pe(e,"focusin",t[109],!0)],l=!0)},p(c,f){const p={};f[1]&128&&(p.isAds=c[38]===Oe.Ads),f[1]&262144&&(p.fakePlayButtonHandler=c[49]?c[104]:void 0),f[0]&1073741823|f[1]&2147221503|f[2]&7|f[5]&8388608&&(p.$$scope={dirty:f,ctx:c}),i.$set(p)},i(c){s||(d(i.$$.fragment,c),s=!0)},o(c){g(i.$$.fragment,c),s=!1},d(c){c&&P(e),t[154](null),F(i),t[155](null),t[156](null),l=!1,nt(r)}}}let xp=!0;function Vu(t){return t?t.offsetTop+Vu(t.offsetParent):0}function $p(t,e,i){let n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne,L,V,x,Y,le,K,C,G,z,ee,Ee,Re,Ne,ze,ve,we,Q,{store:$}=e,{uiConfig:ye}=e,{title:re}=e,{thumbUrl:We}=e,{videoLogoUrl:Le}=e,{videoContainer:Ie}=e,{interactiveContainer:ue}=e,{live:Se}=e,{autoplay:he}=e,{canRewindLive:se}=e,{showAds:Be}=e,{adsSlotId:me=void 0}=e,{adsParams:Ce=void 0}=e,{adsPreviewParam:Pe=void 0}=e,{duration:Ge=void 0}=e,{logoClickable:it}=e,{logoHidden:Je}=e,{showNextPrevButtons:Qe=!1}=e,{nextButtonActive:tt=!1}=e,{prevButtonActive:Et=!1}=e,{endScreenVideoTitle:ht=void 0}=e,{endScreenVideoThumb:Fe=void 0}=e,{isOneVideoPlaylist:yt=!1}=e,{supportLink:Yt}=e,{outerContainerRef:de=void 0}=e,{playerStarted:bt=!1}=e,{fullScreenTarget:at=void 0}=e,{showMiniTimer:Qt=!1}=e,{playNextVideo:ut=ie.noop}=e,{playPrevVideo:vt=ie.noop}=e,{repeatPlaylist:ri=ie.noop}=e,{seekToInteractive:Ot}=e,{toggleGraph:ai}=e,{playPrevChapter:Ui}=e,{firstStart:ui}=e;const ki=$.getLogger().createComponentLog("Root component"),Qi=$.interfaceLanguage$;O(t,Qi,q=>i(53,K=q));const ci=$.state.playbackState$;O(t,ci,q=>i(146,x=q));const fi=$.ads.playbackState;O(t,fi,q=>i(147,Y=q));const wi=$.state.positionWithScrubbing$;O(t,wi,q=>i(58,Ee=q));const At=$.state.duration$;O(t,At,q=>i(62,ve=q));const Xt=$.playerPhase;O(t,Xt,q=>i(38,M=q));const yi=$.ui.isFullscreen;O(t,yi,q=>i(136,p=q));const Jt=$.ui.controlsVisible;O(t,Jt,q=>i(36,S=q));const Ci=$.ui.settingsMenuVisible;O(t,Ci,q=>i(134,l=q));const di=$.ui.scrubbingInProgress;O(t,di,q=>i(138,k=q));const zt=$.ui.contextMenuVisible;O(t,zt,q=>i(33,n=q));const Ni=$.ui.debugPanelVisible;O(t,Ni,q=>i(64,Q=q));const St=$.state.isLoaderVisible;O(t,St,q=>i(148,le=q));const Dt=$.state.isEnded$;O(t,Dt,q=>i(135,a=q));const Si=$.state.chromecastConnected$;O(t,Si,q=>i(39,L=q));const Ri=$.state.chromecastDeviceName$;O(t,Ri,q=>i(55,G=q));const Pt=$.ads.postrollPassed;O(t,Pt,q=>i(141,A=q));const xt=$.state.isLive$;O(t,xt,q=>i(60,Ne=q));const $t=$.state.isPlaying$;O(t,$t,q=>i(61,ze=q));const mi=$.state.crashed$;O(t,mi,q=>i(37,y=q));const kt=$.webApi.pictureInPictureApi,It=$.state.currentSubtitle$;O(t,It,q=>i(56,z=q));const pi=$.state.currentSubtitleCaptions$;O(t,pi,q=>i(57,ee=q));const _t=$.state.duration$;O(t,_t,q=>i(59,Re=q));const Pi=$.state.graphIsOpened$;O(t,Pi,q=>i(142,oe=q));const Ti=$.ui.playerSize;O(t,Ti,q=>i(34,f=q));const Ct=$.ui.is3DVideo;O(t,Ct,q=>i(51,c=q));const Ft=$.ui.icon3DVideoVisible;O(t,Ft,q=>i(54,C=q));const qi=$.ui.rotateAlpha;O(t,qi,q=>i(35,b=q));const Ht=$.state.isInteractive,Xi=$.state.isInteractiveTime$;O(t,Xi,q=>i(139,v=q));const ei=$.state.isInteractiveExpectation$;O(t,ei,q=>i(145,V=q));const Mt=$.state.hasInteractiveBranches,Bt=$.ui.touched;O(t,Bt,q=>i(143,Z=q));const hi=$.ui.modals.hotKeyMap.data;O(t,hi,q=>i(163,r=q));const Lt=$.ui.modals.hotKeyMap.show;O(t,Lt,q=>i(63,we=q));const ji=$.ui.overlayContainer$,Zi=$.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Ei}=Ko();O(t,Ei,q=>i(137,_=q));let gi,gt,Oi=0,zi=0,Ai,Ii,Li;hi.set(uf());let Di,ti;const bi=Me(!1);O(t,bi,q=>i(52,h=q));let ii;const Ut=Me(!1);O(t,Ut,q=>i(144,ne=q));const Ve=Me(),Fi=Me(!1);O(t,Fi,q=>i(140,w=q));let _i=!1,He=!1,Wi,qt,en,ni,Ji,jt,Vi=!1,tn,xi=!1;const{toggle:Ki}=Ei;let Hi=!1,Nt=null,te;kt?.setContext(o1());const lt=()=>{he&&!Ht&&wt(ye.controls.hideTimeout)};$.setUiCallbacks({onStarted:lt});const oi=()=>{window.clearTimeout(Ai),Ut.set(!1)},Gi=()=>{window.clearTimeout(Ii),Ve.set(null)},wt=q=>{oi(),Ut.set(!0),Ai=window.setTimeout(()=>Ut.set(!1),q);const li=q-100;ii=window.setTimeout(()=>{h&&bi.set(!1)},li>0?li:q)},$i=(q,li)=>{Gi(),Ve.set(li),Ii=window.setTimeout(()=>Ve.set(null),q)},hn=Ct.subscribe(q=>{Ft.set(q),q&&(window.clearTimeout(Li),Li=window.setTimeout(()=>Ft.set(!1),ye.controls.hide360IconTimeout))}),an=async()=>{const q=vo();if(q){wt(ye.controls.hideTimeoutFullscreen);try{await kt?.remove()}catch(li){ki({message:String(li)})}}yi.set(q),$.getAdmanWrapper().setFullscreen(q),p?$.callbacks?.onFullscreenEnter?.():$.callbacks?.onFullscreenExit?.()},un=q=>{const li=q;Ti.set({width:li.target.width,height:li.target.height})};ln(()=>(L1(an),qo(kt)&&(kt?.assignPlayerContainer(gi),kt?.registryExternalEventHandlers({resize:un})),ue&&Ie.parentElement?.insertBefore(ue,Ie.nextSibling),()=>{window.clearTimeout(Ai),window.clearTimeout(ii),window.clearTimeout(Ii),window.clearTimeout(Li),hn(),kt?.dispose(),V1(an)}));const nn=async()=>{if(vo())await I1(document),ki({message:"exit fullscreen"});else{ki({message:"request fullscreen"});const q=de??gi,li=q.getRootNode(),zn=li instanceof ShadowRoot?li.host:li,st=at instanceof HTMLElement&&at.contains(zn),I=ye.allowChangingFullscreenTarget&&at&&st?at:q;await A1(I)}},X=()=>{Zi(),zt.set(!1)},ft=q=>{zt.set(!0),i(42,Oi=q.clientX),i(43,zi=q.clientY)};function gn(){Fi.set(!0),Ht||wt(ye.controls.hideTimeoutCursor)}function bn(){Ht||(bi.set(!0),wt(ye.controls.hideTimeoutCursor))}function _n(){Fi.set(!1),i(128,He=!1),i(127,_i=!1),Hi=!1,$.actions.internal.releaseCamera()}function Mn(q){if(gi){const li=Vu(q.currentTarget),zn=f.height,st=q.pageY-li;st<Yl?i(128,He=!0):st>zn-Yl?i(127,_i=!0):(i(128,He=!1),l||i(127,_i=!1))}}function Bn(q){Mn(q),qt||wt(ye.controls.hideTimeoutCursor),c&&Hi&&Nt&&$.actions.internal.moveCameraFocusPX(Nt.clientX-q.clientX,Nt.clientY-q.clientY,q.timeStamp-Nt.timeStamp),Nt=q}const Nn=q=>{q.button===0&&(Hi=!0,$.actions.internal.holdCamera()),wt(ye.controls.hideTimeoutCursor)},Rn=q=>{q.button===0&&(Nt=q,Hi=!1,$.actions.internal.releaseCamera()),wt(ye.controls.hideTimeoutCursor)},J=()=>{ki({message:"double click on video"}),nn(),wt(ye.controls.hideTimeoutCursor)},On=()=>{if(n||l){X();return}if(!(a&&!Mt)){if(xi)return Ki();if(te?.focus(),!bt){ui(),wt(ye.controls.hideTimeoutCursor);return}$.actions.internal.togglePlay(),wt(ye.controls.hideTimeoutCursor)}},Kn=q=>{X(),Bt.set(!0),wt(ye.controls.hideTimeout),q&&$i(ye.controls.hideHotKeyHelpers,q)},Gn=()=>{X(),$.callbacks?.onOpenHotKeyMap?$.callbacks?.onOpenHotKeyMap(r):Lt.update(q=>!q)},Hn=()=>{if(n||l){X();return}},Yn=()=>{Bt.set(!0)},wn=$.ui.contextMenu.openedByKeyboard$;O(t,wn,q=>i(133,s=q));let yn=$.ui.contextMenu.btnRef$;O(t,yn,q=>i(132,o=q));let Cn;function co(q){ke[q?"unshift":"push"](()=>{Ie=q,i(0,Ie)})}const on=()=>te?.focus();function Qn(q){gt=q,i(41,gt)}const Xn=()=>te?.focus();function fo(q){Cn=q,i(32,Cn)}function mo(q){ke[q?"unshift":"push"](()=>{te=q,i(50,te)})}function Un(q){ke[q?"unshift":"push"](()=>{ti=q,i(30,ti)})}function Jn(q){ke[q?"unshift":"push"](()=>{gi=q,i(40,gi)})}return t.$$set=q=>{"store"in q&&i(122,$=q.store),"uiConfig"in q&&i(1,ye=q.uiConfig),"title"in q&&i(2,re=q.title),"thumbUrl"in q&&i(3,We=q.thumbUrl),"videoLogoUrl"in q&&i(4,Le=q.videoLogoUrl),"videoContainer"in q&&i(0,Ie=q.videoContainer),"interactiveContainer"in q&&i(123,ue=q.interactiveContainer),"live"in q&&i(5,Se=q.live),"autoplay"in q&&i(6,he=q.autoplay),"canRewindLive"in q&&i(7,se=q.canRewindLive),"showAds"in q&&i(8,Be=q.showAds),"adsSlotId"in q&&i(9,me=q.adsSlotId),"adsParams"in q&&i(10,Ce=q.adsParams),"adsPreviewParam"in q&&i(11,Pe=q.adsPreviewParam),"duration"in q&&i(12,Ge=q.duration),"logoClickable"in q&&i(13,it=q.logoClickable),"logoHidden"in q&&i(14,Je=q.logoHidden),"showNextPrevButtons"in q&&i(15,Qe=q.showNextPrevButtons),"nextButtonActive"in q&&i(16,tt=q.nextButtonActive),"prevButtonActive"in q&&i(17,Et=q.prevButtonActive),"endScreenVideoTitle"in q&&i(18,ht=q.endScreenVideoTitle),"endScreenVideoThumb"in q&&i(19,Fe=q.endScreenVideoThumb),"isOneVideoPlaylist"in q&&i(20,yt=q.isOneVideoPlaylist),"supportLink"in q&&i(21,Yt=q.supportLink),"outerContainerRef"in q&&i(124,de=q.outerContainerRef),"playerStarted"in q&&i(22,bt=q.playerStarted),"fullScreenTarget"in q&&i(125,at=q.fullScreenTarget),"showMiniTimer"in q&&i(126,Qt=q.showMiniTimer),"playNextVideo"in q&&i(23,ut=q.playNextVideo),"playPrevVideo"in q&&i(24,vt=q.playPrevVideo),"repeatPlaylist"in q&&i(25,ri=q.repeatPlaylist),"seekToInteractive"in q&&i(26,Ot=q.seekToInteractive),"toggleGraph"in q&&i(27,ai=q.toggleGraph),"playPrevChapter"in q&&i(28,Ui=q.playPrevChapter),"firstStart"in q&&i(29,ui=q.firstStart)},t.$$.update=()=>{if(t.$$.dirty[1]&192|t.$$.dirty[4]&25165824&&i(44,Di=(M===Oe.Video&&le||M===Oe.Ads&&Y===Kt.INACTIVE)&&!y),t.$$.dirty[0]&1073741824&&ji.set(ti),t.$$.dirty[4]&4194304&&i(129,Wi=x!==xe.PlaybackState.PLAYING),t.$$.dirty[4]&2131e3&&i(130,qt=v&&!l&&!(_i||He)&&!(Wi&&!V)),t.$$.dirty[1]&448|t.$$.dirty[4]&1066080&&Jt.set((Wi||l||k||L||ne)&&!qt&&M===Oe.Video&&!y),t.$$.dirty[0]&2|t.$$.dirty[1]&224|t.$$.dirty[4]&524292&&i(45,en=ye.features.thumbTimer&&Qt&&M===Oe.Video&&!S&&!y&&!Ht&&(ye.hideThumbTimerAfterTouch&&!Z||!ye.hideThumbTimerAfterTouch)),t.$$.dirty[1]&128|t.$$.dirty[4]&266240&&i(46,ni=M===Oe.Video&&!oe&&p),t.$$.dirty[0]&256|t.$$.dirty[1]&64|t.$$.dirty[4]&133120&&i(31,Ji=(Be&&A||!Be)&&a&&!y),t.$$.dirty[1]&33|t.$$.dirty[4]&98304&&i(47,jt=w&&!(S||Ji)&&!v),t.$$.dirty[0]&2|t.$$.dirty[4]&49280&&(!k&&Vi&&!v&&wt(ye.controls.hideTimeoutCursor),i(131,Vi=k)),t.$$.dirty[0]&1|t.$$.dirty[1]&24&&i(48,tn=Ie&&b%180?f.height/f.width:1),t.$$.dirty[4]&8192&&i(49,xi=_!==null),t.$$.dirty[1]&6|t.$$.dirty[4]&512&&Pl(Cn,n,s),t.$$.dirty[1]&4|t.$$.dirty[4]&256){const q=o;q&&Sl(q,n,wn)}},[Ie,ye,re,We,Le,Se,he,se,Be,me,Ce,Pe,Ge,it,Je,Qe,tt,Et,ht,Fe,yt,Yt,bt,ut,vt,ri,Ot,ai,Ui,ui,ti,Ji,Cn,n,f,b,S,y,M,L,gi,gt,Oi,zi,Di,en,ni,jt,tn,xi,te,c,h,K,C,G,z,ee,Ee,Re,Ne,ze,ve,we,Q,Qi,ci,fi,wi,At,Xt,yi,Jt,Ci,di,zt,Ni,St,Dt,Si,Ri,Pt,xt,$t,mi,It,pi,_t,Pi,Ti,Ct,Ft,qi,Ht,Xi,ei,Bt,hi,Lt,Ei,bi,Ut,Ve,Fi,Ki,nn,X,ft,gn,bn,_n,Bn,Nn,Rn,J,On,Kn,Gn,Hn,Yn,wn,yn,$,ue,de,at,Qt,_i,He,Wi,qt,Vi,o,s,l,a,p,_,k,v,w,A,oe,Z,ne,V,x,Y,le,co,on,Qn,Xn,fo,mo,Un,Jn]}class eh extends _e{constructor(e){super(),be(this,e,$p,Jp,ge,{store:122,uiConfig:1,title:2,thumbUrl:3,videoLogoUrl:4,videoContainer:0,interactiveContainer:123,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:124,playerStarted:22,fullScreenTarget:125,showMiniTimer:126,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},Qp,[-1,-1,-1,-1,-1,-1])}}const th=t=>{if(!ie.isIOS(!0))return!1;const e=t.device===ie.CurrentClientDevice.iPad||window?.screen.width>700,i=ie.getIOSVersion();return!e||e&&!!i&&i<16};function ih(t){Ze(t,"v-nhq2ld",".double-click-area.v-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-nhq2ld{left:0}.double-click-area.right.v-nhq2ld{right:0}.semicircle.v-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.v-nhq2ld:nth-child(1),.triangle.left.v-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.v-nhq2ld:nth-child(2),.triangle.left.v-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.v-nhq2ld:nth-child(3),.triangle.left.v-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes v-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-nhq2ld{border-right:8px solid var(--white)}.triangle.right.v-nhq2ld{border-left:8px solid var(--white)}.triangle.v-nhq2ld:not(:last-child){margin-right:5px}.step-caption.v-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Oa(t){let e,i,n,o,s,l,r,a,c,f,p,h,_,b,k,v=W("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",S;return{c(){e=E("div"),n=R(),o=E("div"),s=E("div"),l=E("div"),a=R(),c=E("div"),p=R(),h=E("div"),b=R(),k=E("p"),S=De(v),u(e,"class",i="semicircle "+t[0]+" v-nhq2ld"),u(l,"class",r="triangle "+t[0]+" v-nhq2ld"),u(c,"class",f="triangle "+t[0]+" v-nhq2ld"),u(h,"class",_="triangle "+t[0]+" v-nhq2ld"),u(s,"class","triangles-wrapper v-nhq2ld"),u(k,"class","step-caption v-nhq2ld"),u(o,"class","info v-nhq2ld")},m(w,y){T(w,e,y),T(w,n,y),T(w,o,y),m(o,s),m(s,l),m(s,a),m(s,c),m(s,p),m(s,h),m(o,b),m(o,k),m(k,S)},p(w,y){y&1&&i!==(i="semicircle "+w[0]+" v-nhq2ld")&&u(e,"class",i),y&1&&r!==(r="triangle "+w[0]+" v-nhq2ld")&&u(l,"class",r),y&1&&f!==(f="triangle "+w[0]+" v-nhq2ld")&&u(c,"class",f),y&1&&_!==(_="triangle "+w[0]+" v-nhq2ld")&&u(h,"class",_),y&2&&v!==(v=W("doubletap_seek_step",{seconds:w[1].toFixed(0)})+"")&&$e(S,v)},d(w){w&&(P(e),P(n),P(o))}}}function nh(t){let e,i,n,o,s=t[2]&&Oa(t);return{c(){e=E("div"),s&&s.c(),u(e,"class",i="double-click-area "+t[0]+" v-nhq2ld")},m(l,r){T(l,e,r),s&&s.m(e,null),n||(o=pe(e,"click",ot(t[3]())),n=!0)},p(l,[r]){l[2]?s?s.p(l,r):(s=Oa(l),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&1&&i!==(i="double-click-area "+l[0]+" v-nhq2ld")&&u(e,"class",i)},i:j,o:j,d(l){l&&P(e),s&&s.d(),n=!1,o()}}}function oh(t,e,i){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:s}=e,{handleSecondClick:l}=e,r=!1,a=0,c=0;const f=()=>{let h=0;return()=>{h+=1,h===1?a=window.setTimeout(()=>{s(),h=0},300):(window.clearTimeout(a),h=0,l(),i(2,r=!0),c=window.setTimeout(()=>{i(2,r=!1)},500))}};return Zo(()=>{window.clearTimeout(a),window.clearTimeout(c)}),t.$$set=p=>{"side"in p&&i(0,n=p.side),"seekStep"in p&&i(1,o=p.seekStep),"handleSingleFirstClick"in p&&i(4,s=p.handleSingleFirstClick),"handleSecondClick"in p&&i(5,l=p.handleSecondClick)},[n,o,r,f,s,l]}class Mu extends _e{constructor(e){super(),be(this,e,oh,nh,ge,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},ih)}}function lh(t,e,i){let{playNextVideo:n}=e;return ln(()=>{n()}),t.$$set=o=>{"playNextVideo"in o&&i(0,n=o.playNextVideo)},[n]}class sh extends _e{constructor(e){super(),be(this,e,lh,null,ge,{playNextVideo:0})}}const{window:rh}=jo;function ah(t){Ze(t,"v-1jy89ut",".player-wrapper.v-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.v-1jy89ut .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.v-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.v-1jy89ut,.video-container.v-1jy89ut,.ads-container.v-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.v-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.v-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.v-1jy89ut{transition:none}.ads-container.v-1jy89ut{background:var(--black)}")}function za(t){let e,i,n,o;e=new Mu({props:{side:"left",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[127]}});let s=!t[48]&&Da(t);return{c(){U(e.$$.fragment),i=R(),s&&s.c(),n=ct()},m(l,r){D(e,l,r),T(l,i,r),s&&s.m(l,r),T(l,n,r),o=!0},p(l,r){const a={};r[0]&2&&(a.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(a),l[48]?s&&(ce(),g(s,1,1,()=>{s=null}),fe()):s?(s.p(l,r),r[1]&131072&&d(s,1)):(s=Da(l),s.c(),d(s,1),s.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(s),o=!0)},o(l){g(e.$$.fragment,l),g(s),o=!1},d(l){l&&(P(i),P(n)),F(e,l),s&&s.d(l)}}}function Da(t){let e,i;return e=new Mu({props:{side:"right",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[128]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&2&&(s.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Fa(t){let e,i;return e=new Iu({props:{thumbUrl:t[2],startTime:t[4]?.startTime}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.thumbUrl=n[2]),o[0]&16&&(s.startTime=n[4]?.startTime),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ha(t){let e,i;return e=new Lu({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ua(t){let e,i,n;return i=new M1({props:{adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11]}}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","ads-container v-1jy89ut"),B(e,"hidden",t[34]!==Oe.Ads)},m(o,s){T(o,e,s),D(i,e,null),n=!0},p(o,s){const l={};s[0]&256&&(l.adsSlotId=o[8]),s[0]&512&&(l.adsParams=o[9]),s[0]&1024&&(l.adsPreviewParam=o[10]),s[0]&2048&&(l.duration=o[11]),i.$set(l),(!n||s[1]&8)&&B(e,"hidden",o[34]!==Oe.Ads)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function qa(t){let e,i;return e=new sh({props:{playNextVideo:t[22]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&4194304&&(s.playNextVideo=n[22]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ja(t){let e,i;return e=new Su({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Za(t){let e,i,n;return i=new S1({props:{ariaLabel:W("video360")}}),{c(){e=E("div"),U(i.$$.fragment),u(e,"class","spherical-video-icon v-1jy89ut")},m(o,s){T(o,e,s),D(i,e,null),n=!0},p:j,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Wa(t){let e,i;return e=new Tu({props:{thumbUrl:t[2],chromecastDeviceName:t[51]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.thumbUrl=n[2]),o[1]&1048576&&(s.chromecastDeviceName=n[51]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ka(t){let e,i;return e=new Pu({props:{shifted:t[30],captions:t[53],position:t[44],playerSize:t[31],isMobile:!0}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o[0]&1073741824&&(s.shifted=n[30]),o[1]&4194304&&(s.captions=n[53]),o[1]&8192&&(s.position=n[44]),o[1]&1&&(s.playerSize=n[31]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ga(t){let e,i,n,o,s;return i=new Eu({}),{c(){e=E("div"),U(i.$$.fragment)},m(l,r){T(l,e,r),D(i,e,null),n=!0,o||(s=pe(e,"click",ot(t[100])),o=!0)},p:j,i(l){n||(d(i.$$.fragment,l),n=!0)},o(l){g(i.$$.fragment,l),n=!1},d(l){l&&P(e),F(i),o=!1,s()}}}function Ya(t){let e,i,n;function o(l){t[129](l)}let s={bottomHidden:t[34]===Oe.Thumb||t[34]===Oe.WaitingLive||t[34]===Oe.WaitingRecord||t[34]===Oe.Ads,showControls:t[30],bottomNoSmooth:t[45],isAds:t[34]===Oe.Ads,canRewindLive:t[6]&&t[54]!==0,logoClickable:t[12],logoHidden:t[13],videoLogoUrl:t[3],showNextPrevButtons:t[14],nextButtonActive:t[15],prevButtonActive:t[16],isOneVideoPlaylist:t[19],supportLink:t[20],customFullscreenSupported:t[39],playNextVideo:t[22],playPrevVideo:t[23],repeatPlaylist:t[24],toggleFullscreen:t[97],seekToInteractive:t[25],toggleGraph:t[26],playPrevChapter:t[27]};return t[37]!==void 0&&(s.controlsElementRef=t[37]),e=new yu({props:s}),ke.push(()=>je(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[1]&8&&(a.bottomHidden=l[34]===Oe.Thumb||l[34]===Oe.WaitingLive||l[34]===Oe.WaitingRecord||l[34]===Oe.Ads),r[0]&1073741824&&(a.showControls=l[30]),r[1]&16384&&(a.bottomNoSmooth=l[45]),r[1]&8&&(a.isAds=l[34]===Oe.Ads),r[0]&64|r[1]&8388608&&(a.canRewindLive=l[6]&&l[54]!==0),r[0]&4096&&(a.logoClickable=l[12]),r[0]&8192&&(a.logoHidden=l[13]),r[0]&8&&(a.videoLogoUrl=l[3]),r[0]&16384&&(a.showNextPrevButtons=l[14]),r[0]&32768&&(a.nextButtonActive=l[15]),r[0]&65536&&(a.prevButtonActive=l[16]),r[0]&524288&&(a.isOneVideoPlaylist=l[19]),r[0]&1048576&&(a.supportLink=l[20]),r[1]&256&&(a.customFullscreenSupported=l[39]),r[0]&4194304&&(a.playNextVideo=l[22]),r[0]&8388608&&(a.playPrevVideo=l[23]),r[0]&16777216&&(a.repeatPlaylist=l[24]),r[0]&33554432&&(a.seekToInteractive=l[25]),r[0]&67108864&&(a.toggleGraph=l[26]),r[0]&134217728&&(a.playPrevChapter=l[27]),!i&&r[1]&64&&(i=!0,a.controlsElementRef=l[37],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Qa(t){let e,i;return e=new Z1({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Xa(t){let e,i;return e=new F1({}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ja(t){let e,i,n=t[6]&&t[78]&&!t[47].has(rt.TIMELINE),o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y;e=new Au({props:{hidden:t[34]!==Oe.Thumb||t[33]||t[89]&&t[5],thumbUrl:t[2],startVideo:t[28]}});let A=n&&za(t),oe=t[34]===Oe.WaitingLive&&Fa(t),M=t[34]===Oe.WaitingRecord&&Ha(),Z=t[7]&&t[21]&&Ua(t),ne=t[41]&&t[17]&&t[18]&&qa(t),L=t[49]&&ja(),V=t[50]&&Za(),x=t[35]&&Wa(t),Y=t[52].value!=="off"&&Ka(t),le=t[33]&&Ga(t),K=t[21]&&Ya(t);k=new N1({props:{isLive:t[55],isHidden:!t[40],isPlaying:t[56],position:t[44],duration:t[43]}});let C=t[38]&&Qa(),G=t[57]&&Xa();return{c(){U(e.$$.fragment),i=R(),A&&A.c(),o=R(),oe&&oe.c(),s=R(),M&&M.c(),l=R(),Z&&Z.c(),r=R(),ne&&ne.c(),a=R(),L&&L.c(),c=R(),V&&V.c(),f=R(),x&&x.c(),p=R(),Y&&Y.c(),h=R(),le&&le.c(),_=R(),K&&K.c(),b=R(),U(k.$$.fragment),v=R(),C&&C.c(),S=R(),G&&G.c(),w=ct()},m(z,ee){D(e,z,ee),T(z,i,ee),A&&A.m(z,ee),T(z,o,ee),oe&&oe.m(z,ee),T(z,s,ee),M&&M.m(z,ee),T(z,l,ee),Z&&Z.m(z,ee),T(z,r,ee),ne&&ne.m(z,ee),T(z,a,ee),L&&L.m(z,ee),T(z,c,ee),V&&V.m(z,ee),T(z,f,ee),x&&x.m(z,ee),T(z,p,ee),Y&&Y.m(z,ee),T(z,h,ee),le&&le.m(z,ee),T(z,_,ee),K&&K.m(z,ee),T(z,b,ee),D(k,z,ee),T(z,v,ee),C&&C.m(z,ee),T(z,S,ee),G&&G.m(z,ee),T(z,w,ee),y=!0},p(z,ee){const Ee={};ee[0]&32|ee[1]&12&&(Ee.hidden=z[34]!==Oe.Thumb||z[33]||z[89]&&z[5]),ee[0]&4&&(Ee.thumbUrl=z[2]),ee[0]&268435456&&(Ee.startVideo=z[28]),e.$set(Ee),ee[0]&64|ee[1]&65536&&(n=z[6]&&z[78]&&!z[47].has(rt.TIMELINE)),n?A?(A.p(z,ee),ee[0]&64|ee[1]&65536&&d(A,1)):(A=za(z),A.c(),d(A,1),A.m(o.parentNode,o)):A&&(ce(),g(A,1,1,()=>{A=null}),fe()),z[34]===Oe.WaitingLive?oe?(oe.p(z,ee),ee[1]&8&&d(oe,1)):(oe=Fa(z),oe.c(),d(oe,1),oe.m(s.parentNode,s)):oe&&(ce(),g(oe,1,1,()=>{oe=null}),fe()),z[34]===Oe.WaitingRecord?M?ee[1]&8&&d(M,1):(M=Ha(),M.c(),d(M,1),M.m(l.parentNode,l)):M&&(ce(),g(M,1,1,()=>{M=null}),fe()),z[7]&&z[21]?Z?(Z.p(z,ee),ee[0]&2097280&&d(Z,1)):(Z=Ua(z),Z.c(),d(Z,1),Z.m(r.parentNode,r)):Z&&(ce(),g(Z,1,1,()=>{Z=null}),fe()),z[41]&&z[17]&&z[18]?ne?(ne.p(z,ee),ee[0]&393216|ee[1]&1024&&d(ne,1)):(ne=qa(z),ne.c(),d(ne,1),ne.m(a.parentNode,a)):ne&&(ce(),g(ne,1,1,()=>{ne=null}),fe()),z[49]?L?ee[1]&262144&&d(L,1):(L=ja(),L.c(),d(L,1),L.m(c.parentNode,c)):L&&(ce(),g(L,1,1,()=>{L=null}),fe()),z[50]?V?(V.p(z,ee),ee[1]&524288&&d(V,1)):(V=Za(),V.c(),d(V,1),V.m(f.parentNode,f)):V&&(ce(),g(V,1,1,()=>{V=null}),fe()),z[35]?x?(x.p(z,ee),ee[1]&16&&d(x,1)):(x=Wa(z),x.c(),d(x,1),x.m(p.parentNode,p)):x&&(ce(),g(x,1,1,()=>{x=null}),fe()),z[52].value!=="off"?Y?(Y.p(z,ee),ee[1]&2097152&&d(Y,1)):(Y=Ka(z),Y.c(),d(Y,1),Y.m(h.parentNode,h)):Y&&(ce(),g(Y,1,1,()=>{Y=null}),fe()),z[33]?le?(le.p(z,ee),ee[1]&4&&d(le,1)):(le=Ga(z),le.c(),d(le,1),le.m(_.parentNode,_)):le&&(ce(),g(le,1,1,()=>{le=null}),fe()),z[21]?K?(K.p(z,ee),ee[0]&2097152&&d(K,1)):(K=Ya(z),K.c(),d(K,1),K.m(b.parentNode,b)):K&&(ce(),g(K,1,1,()=>{K=null}),fe());const Re={};ee[1]&16777216&&(Re.isLive=z[55]),ee[1]&512&&(Re.isHidden=!z[40]),ee[1]&33554432&&(Re.isPlaying=z[56]),ee[1]&8192&&(Re.position=z[44]),ee[1]&4096&&(Re.duration=z[43]),k.$set(Re),z[38]?C?ee[1]&128&&d(C,1):(C=Qa(),C.c(),d(C,1),C.m(S.parentNode,S)):C&&(ce(),g(C,1,1,()=>{C=null}),fe()),z[57]?G?ee[1]&67108864&&d(G,1):(G=Xa(),G.c(),d(G,1),G.m(w.parentNode,w)):G&&(ce(),g(G,1,1,()=>{G=null}),fe())},i(z){y||(d(e.$$.fragment,z),d(A),d(oe),d(M),d(Z),d(ne),d(L),d(V),d(x),d(Y),d(le),d(K),d(k.$$.fragment,z),d(C),d(G),y=!0)},o(z){g(e.$$.fragment,z),g(A),g(oe),g(M),g(Z),g(ne),g(L),g(V),g(x),g(Y),g(le),g(K),g(k.$$.fragment,z),g(C),g(G),y=!1},d(z){z&&(P(i),P(o),P(s),P(l),P(r),P(a),P(c),P(f),P(p),P(h),P(_),P(b),P(v),P(S),P(w)),F(e,z),A&&A.d(z),oe&&oe.d(z),M&&M.d(z),Z&&Z.d(z),ne&&ne.d(z),L&&L.d(z),V&&V.d(z),x&&x.d(z),Y&&Y.d(z),le&&le.d(z),K&&K.d(z),F(k,z),C&&C.d(z),G&&G.d(z)}}}function uh(t){let e,i,n,o,s,l=t[46],r,a,c,f,p,h=Ja(t);return{c(){e=E("div"),i=E("div"),n=E("div"),s=R(),h.c(),r=R(),a=E("div"),u(n,"class","video-container v-1jy89ut"),u(n,"style",o=`transform: rotate(${t[32]}deg) scale(${t[42]})`),B(n,"fast-rotate",!t[1].isSmoothVideoRotate),u(i,"class","video-wrapper v-1jy89ut"),B(i,"hidden",t[34]!==Oe.Video),u(a,"class","overlay-container"),u(e,"class","player-wrapper v-1jy89ut"),u(e,"role","region"),u(e,"aria-label",W("aria_label_video_player")),u(e,"tabindex","-1")},m(_,b){T(_,e,b),m(e,i),m(i,n),t[126](n),m(e,s),h.m(e,null),m(e,r),m(e,a),t[130](a),t[131](e),c=!0,f||(p=[pe(rh,"blur",t[98]),pe(i,"click",Gt(t[99])),pe(e,"click",t[101],!0),pe(e,"focusin",t[102],!0)],f=!0)},p(_,b){(!c||b[1]&2050&&o!==(o=`transform: rotate(${_[32]}deg) scale(${_[42]})`))&&u(n,"style",o),(!c||b[0]&2)&&B(n,"fast-rotate",!_[1].isSmoothVideoRotate),(!c||b[1]&8)&&B(i,"hidden",_[34]!==Oe.Video),b[1]&32768&&ge(l,l=_[46])?(ce(),g(h,1,1,j),fe(),h=Ja(_),h.c(),d(h,1),h.m(e,r)):h.p(_,b)},i(_){c||(d(h),c=!0)},o(_){g(h),c=!1},d(_){_&&P(e),t[126](null),h.d(_),t[130](null),t[131](null),f=!1,nt(p)}}}function ch(t,e,i){let n,o,s,l,r,a,c,f,p,h,_,b,k,v,S,w,y,A,oe,M,Z,ne,L,V,x,Y,le,K,C,G,z,ee,Ee,Re,Ne,ze,{store:ve}=e,{uiConfig:we}=e,{thumbUrl:Q}=e,{videoLogoUrl:$}=e,{videoContainer:ye}=e,{interactiveContainer:re}=e,{live:We}=e,{autoplay:Le}=e,{canRewindLive:Ie}=e,{showAds:ue}=e,{adsSlotId:Se=void 0}=e,{adsParams:he=void 0}=e,{adsPreviewParam:se=void 0}=e,{duration:Be=void 0}=e,{logoClickable:me}=e,{logoHidden:Ce}=e,{showNextPrevButtons:Pe=!1}=e,{nextButtonActive:Ge=!1}=e,{prevButtonActive:it=!1}=e,{endScreenVideoTitle:Je=void 0}=e,{endScreenVideoThumb:Qe=void 0}=e,{isOneVideoPlaylist:tt=!1}=e,{supportLink:Et}=e,{outerContainerRef:ht=void 0}=e,{showMiniTimer:Fe=!1}=e,{fullScreenTarget:yt=void 0}=e,{playerStarted:Yt=!1}=e,{playNextVideo:de=ie.noop}=e,{playPrevVideo:bt=ie.noop}=e,{repeatPlaylist:at=ie.noop}=e,{seekToInteractive:Qt}=e,{toggleGraph:ut}=e,{playPrevChapter:vt}=e,{firstStart:ri}=e,{seekTime:Ot}=e;const ai=ve.getLogger().createComponentLog("Root component"),Ui=ve.interfaceLanguage$;O(t,Ui,X=>i(46,x=X));const ui=ve.state.playbackState$;O(t,ui,X=>i(123,ne=X));const ki=ve.ads.playbackState;O(t,ki,X=>i(124,L=X));const Qi=ve.state.positionWithScrubbing$;O(t,Qi,X=>i(44,l=X));const ci=ve.state.duration$;O(t,ci,X=>i(43,s=X));const fi=ve.playerPhase;O(t,fi,X=>i(34,A=X));const wi=ve.ui.isFullscreen;O(t,wi,X=>i(137,a=X));const At=ve.ui.controlsVisible;O(t,At,X=>i(30,o=X));const Xt=ve.ui.interactiveHideMobileControls;O(t,Xt,X=>i(115,h=X));const yi=ve.ui.settingsMenuVisible;O(t,yi,X=>i(114,n=X));const Jt=ve.ui.scrubbingInProgress;O(t,Jt,X=>i(116,b=X));const Ci=ve.ui.debugPanelVisible;O(t,Ci,X=>i(57,ze=X));const di=ve.state.isLoaderVisible;O(t,di,X=>i(125,V=X));const zt=ve.state.isEnded$;O(t,zt,X=>i(118,S=X));const Ni=ve.state.chromecastConnected$;O(t,Ni,X=>i(35,oe=X));const St=ve.state.chromecastDeviceName$;O(t,St,X=>i(51,G=X));const Dt=ve.ads.postrollPassed;O(t,Dt,X=>i(119,w=X));const Si=ve.ui.mobileUnmuteButtonExpanded,Ri=ve.ui.mobileUnmuteButtonVisible,Pt=ve.state.isLive$;O(t,Pt,X=>i(55,Re=X));const xt=ve.state.isPlaying$;O(t,xt,X=>i(56,Ne=X));const $t=ve.state.isActiveLive$;O(t,$t,X=>i(48,le=X));const mi=ve.state.isRewindableLive$,kt=ve.state.crashed$;O(t,kt,X=>i(33,v=X));const It=ve.webApi.pictureInPictureApi,pi=ve.state.videoSize$;O(t,pi,X=>i(138,f=X));const _t=ve.state.currentSubtitle$;O(t,_t,X=>i(52,z=X));const Pi=ve.state.currentSubtitleCaptions$;O(t,Pi,X=>i(53,ee=X));const Ti=ve.state.duration$;O(t,Ti,X=>i(54,Ee=X));const Ct=ve.state.graphIsOpened$;O(t,Ct,X=>i(122,Z=X));const Ft=ve.ui.playerSize;O(t,Ft,X=>i(31,c=X));const qi=ve.ui.is3DVideo;O(t,qi,X=>i(49,K=X));const Ht=ve.ui.icon3DVideoVisible;O(t,Ht,X=>i(50,C=X));const Xi=ve.ui.rotateAlpha;O(t,Xi,X=>i(32,_=X));const ei=ve.state.isInteractive,Mt=ve.state.isInteractiveTime$;O(t,Mt,X=>i(117,k=X));const Bt=ve.state.isInteractiveExpectation$;O(t,Bt,X=>i(121,M=X));const hi=ve.state.hasInteractiveBranches,Lt=ve.ui.controls.disabledControls$;O(t,Lt,X=>i(47,Y=X));const ji=ve.ui.touched;O(t,ji,X=>i(120,y=X));const Zi=ve.ui.clientInfo$;O(t,Zi,X=>i(136,r=X));const Ei=ve.ui.overlayContainer$,gi=ve.actions.internal.closeSettingsMenu;let gt,Oi,zi,Ai,Ii,Li,Di;const ti=Me(!1);O(t,ti,X=>i(45,p=X));let bi,ii=!1,Ut,Ve=!1,Fi,_i=!0,He,Wi,qt=!1,en;It?.setContext(o1());const ni=X=>{clearTimeout(Ai),X&&(Ri.set(!0),Si.set(!0),Ai=window.setTimeout(()=>{Si.set(!1)},we.controls.collapseMobileUnmute),ei||jt(we.controls.hideTimeoutMobile))};ve.setUiCallbacks({onStarted:ni});const Ji=()=>{window.clearTimeout(zi),i(109,ii=!1),h&&Xt.set(!1)},jt=X=>{Ji(),i(109,ii=!0),zi=window.setTimeout(()=>i(109,ii=!1),X);const ft=X-100;bi=window.setTimeout(()=>{p&&ti.set(!1)},ft>0?ft:X)},Vi=qi.subscribe(X=>{Ht.set(X),X&&(window.clearTimeout(Ii),Ii=window.setTimeout(()=>Ht.set(!1),we.controls.hide360IconTimeout))}),tn=async()=>{const X=vo();if(X){jt(we.controls.hideTimeoutFullscreen);try{await It?.remove()}catch(ft){ai({message:String(ft)})}try{const ft=f?.width&&f?.height?f:c;await af(ft)}catch(ft){ai({message:String(ft)})}}wi.set(X),ve.getAdmanWrapper().setFullscreen(X),a?ve.callbacks?.onFullscreenEnter?.():ve.callbacks?.onFullscreenExit?.()},xi=X=>{const ft=X;Ft.set({width:ft.target.width,height:ft.target.height})};ln(()=>(L1(tn),qo(It)&&(It?.assignPlayerContainer(gt),It?.registryExternalEventHandlers({resize:xi})),i(39,_i=!th(r)),re&&ye.parentElement?.insertBefore(re,ye.nextSibling),()=>{window.clearTimeout(zi),window.clearTimeout(bi),window.clearTimeout(Ai),window.clearTimeout(Ii),Vi(),It?.dispose(),V1(tn)}));const Ki=X=>{let ft=l+(X==="forward"?1:-1)*we.controls.seekStepMobile/1e3;ft<0?ft=0:ft>s&&(ft=s-1),i(111,Ve=!0),Ot(ft)},Hi=async()=>{if(vo())await I1(document),ai({message:"exit fullscreen"});else{ai({message:"request fullscreen"});const X=ie.isIOS()||!ht?gt:ht,ft=X.getRootNode(),gn=ft instanceof ShadowRoot?ft.host:ft,bn=yt instanceof HTMLElement&&yt.contains(gn),_n=we.allowChangingFullscreenTarget&&yt&&bn?yt:X;await A1(_n)}},Nt=()=>{gi()},te=()=>{if(n){Nt();return}if(!Yt){ri(),jt(we.controls.hideTimeoutCursor);return}i(111,Ve=!1),o?Ji():jt(we.controls.hideTimeoutMobile)},lt=()=>{if(n){Nt();return}},oi=()=>{ji.set(!0)},Gi=()=>{ei||(ti.set(!0),jt(we.controls.hideTimeoutCursor))};function wt(X){ke[X?"unshift":"push"](()=>{ye=X,i(0,ye)})}const $i=()=>Ki("backward"),hn=()=>Ki("forward");function an(X){Oi=X,i(37,Oi)}function un(X){ke[X?"unshift":"push"](()=>{Di=X,i(29,Di)})}function nn(X){ke[X?"unshift":"push"](()=>{gt=X,i(36,gt)})}return t.$$set=X=>{"store"in X&&i(103,ve=X.store),"uiConfig"in X&&i(1,we=X.uiConfig),"thumbUrl"in X&&i(2,Q=X.thumbUrl),"videoLogoUrl"in X&&i(3,$=X.videoLogoUrl),"videoContainer"in X&&i(0,ye=X.videoContainer),"interactiveContainer"in X&&i(104,re=X.interactiveContainer),"live"in X&&i(4,We=X.live),"autoplay"in X&&i(5,Le=X.autoplay),"canRewindLive"in X&&i(6,Ie=X.canRewindLive),"showAds"in X&&i(7,ue=X.showAds),"adsSlotId"in X&&i(8,Se=X.adsSlotId),"adsParams"in X&&i(9,he=X.adsParams),"adsPreviewParam"in X&&i(10,se=X.adsPreviewParam),"duration"in X&&i(11,Be=X.duration),"logoClickable"in X&&i(12,me=X.logoClickable),"logoHidden"in X&&i(13,Ce=X.logoHidden),"showNextPrevButtons"in X&&i(14,Pe=X.showNextPrevButtons),"nextButtonActive"in X&&i(15,Ge=X.nextButtonActive),"prevButtonActive"in X&&i(16,it=X.prevButtonActive),"endScreenVideoTitle"in X&&i(17,Je=X.endScreenVideoTitle),"endScreenVideoThumb"in X&&i(18,Qe=X.endScreenVideoThumb),"isOneVideoPlaylist"in X&&i(19,tt=X.isOneVideoPlaylist),"supportLink"in X&&i(20,Et=X.supportLink),"outerContainerRef"in X&&i(105,ht=X.outerContainerRef),"showMiniTimer"in X&&i(106,Fe=X.showMiniTimer),"fullScreenTarget"in X&&i(107,yt=X.fullScreenTarget),"playerStarted"in X&&i(21,Yt=X.playerStarted),"playNextVideo"in X&&i(22,de=X.playNextVideo),"playPrevVideo"in X&&i(23,bt=X.playPrevVideo),"repeatPlaylist"in X&&i(24,at=X.repeatPlaylist),"seekToInteractive"in X&&i(25,Qt=X.seekToInteractive),"toggleGraph"in X&&i(26,ut=X.toggleGraph),"playPrevChapter"in X&&i(27,vt=X.playPrevChapter),"firstStart"in X&&i(28,ri=X.firstStart),"seekTime"in X&&i(108,Ot=X.seekTime)},t.$$.update=()=>{t.$$.dirty[1]&12|t.$$.dirty[4]&3&&i(38,Li=(A===Oe.Video&&V||A===Oe.Ads&&L===Kt.INACTIVE)&&!v),t.$$.dirty[0]&536870912&&Ei.set(Di),t.$$.dirty[3]&1073741824&&i(110,Ut=ne!==xe.PlaybackState.PLAYING),t.$$.dirty[3]&843251712&&i(112,Fi=Z||h||!ii&&(S&&!!hi||Ut&&M)),t.$$.dirty[1]&28|t.$$.dirty[3]&11468800&&At.set((Ut||n||b||oe||ii&&!Ve)&&!Fi&&A===Oe.Video&&!v),t.$$.dirty[0]&1073741826|t.$$.dirty[1]&12|t.$$.dirty[3]&134225920&&i(40,He=we.features.thumbTimer&&Fe&&A===Oe.Video&&!o&&!v&&!ei&&(we.hideThumbTimerAfterTouch&&!y||!we.hideThumbTimerAfterTouch)),t.$$.dirty[0]&128|t.$$.dirty[1]&4|t.$$.dirty[3]&100663296&&i(41,Wi=(ue&&w||!ue)&&S&&!v),t.$$.dirty[0]&2|t.$$.dirty[3]&26214400&&(!b&&qt&&!k&&jt(we.controls.hideTimeoutMobile),i(113,qt=b)),t.$$.dirty[0]&1|t.$$.dirty[1]&3&&i(42,en=ye&&_%180?c.height/c.width:1)},[ye,we,Q,$,We,Le,Ie,ue,Se,he,se,Be,me,Ce,Pe,Ge,it,Je,Qe,tt,Et,Yt,de,bt,at,Qt,ut,vt,ri,Di,o,c,_,v,A,oe,gt,Oi,Li,_i,He,Wi,en,s,l,p,x,Y,le,K,C,G,z,ee,Ee,Re,Ne,ze,Ui,ui,ki,Qi,ci,fi,wi,At,Xt,yi,Jt,Ci,di,zt,Ni,St,Dt,Pt,xt,$t,mi,kt,pi,_t,Pi,Ti,Ct,Ft,qi,Ht,Xi,ei,Mt,Bt,Lt,ji,Zi,ti,Ki,Hi,Nt,te,lt,oi,Gi,ve,re,ht,Fe,yt,Ot,ii,Ut,Ve,Fi,qt,n,h,b,k,S,w,y,M,Z,ne,L,V,wt,$i,hn,an,un,nn]}class fh extends _e{constructor(e){super(),be(this,e,ch,uh,ge,{store:103,uiConfig:1,thumbUrl:2,videoLogoUrl:3,videoContainer:0,interactiveContainer:104,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:105,showMiniTimer:106,fullScreenTarget:107,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:108},ah,[-1,-1,-1,-1,-1])}}function dh(t){Ze(t,"v-cghoty",`.root.v-cghoty{--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(
32
+ )}.hidden.v-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function Ap(t){let e,i;return{c(){e=I("div"),i=De(t[0]),u(e,"class","title v-1bcvcf2"),M(e,"hidden",t[1])},m(n,o){T(n,e,o),p(e,i)},p(n,[o]){o&1&&et(i,n[0]),o&2&&M(e,"hidden",n[1])},i:W,o:W,d(n){n&&P(e)}}}function Ep(t,e,i){let{title:n=""}=e,{isHidden:o=!1}=e;return t.$$set=s=>{"title"in s&&i(0,n=s.title),"isHidden"in s&&i(1,o=s.isHidden)},[n,o]}class Lp extends ve{constructor(e){super(),_e(this,e,Ep,Ap,be,{title:0,isHidden:1},Ip)}}function Vp(t){Ke(t,"v-1qpxtfg",".timer__container.v-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.v-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.v-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.v-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.v-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function ca(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("span"),n=De(t[0]),o=D(),s=I("span"),s.textContent=`${K("waiting_live_day_value")}`,l=D(),r=I("span"),r.textContent=`${K("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){T(a,e,c),p(e,i),p(i,n),p(e,o),p(e,s),T(a,l,c),T(a,r,c)},p(a,c){c&1&&et(n,a[0])},d(a){a&&(P(e),P(l),P(r))}}}function fa(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("span"),n=De(t[1]),o=D(),s=I("span"),s.textContent=`${K("waiting_live_hour_value")}`,l=D(),r=I("span"),r.textContent=`${K("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){T(a,e,c),p(e,i),p(i,n),p(e,o),p(e,s),T(a,l,c),T(a,r,c)},p(a,c){c&2&&et(n,a[1])},d(a){a&&(P(e),P(l),P(r))}}}function da(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("span"),n=De(t[2]),o=D(),s=I("span"),s.textContent=`${K("waiting_live_minute_value")}`,l=D(),r=I("span"),r.textContent=`${K("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){T(a,e,c),p(e,i),p(i,n),p(e,o),p(e,s),T(a,l,c),T(a,r,c)},p(a,c){c&4&&et(n,a[2])},d(a){a&&(P(e),P(l),P(r))}}}function ma(t){let e,i,n,o,s;return{c(){e=I("div"),i=I("span"),n=De(t[3]),o=D(),s=I("span"),s.textContent=`${K("waiting_live_second_value")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg")},m(l,r){T(l,e,r),p(e,i),p(i,n),p(e,o),p(e,s)},p(l,r){r&8&&et(n,l[3])},d(l){l&&P(e)}}}function Mp(t){let e,i,n,o,s=t[0]&&ca(t),l=t[1]&&fa(t),r=t[2]&&da(t),a=t[3]&&ma(t);return{c(){e=I("div"),s&&s.c(),i=D(),l&&l.c(),n=D(),r&&r.c(),o=D(),a&&a.c(),u(e,"class","timer__container v-1qpxtfg")},m(c,f){T(c,e,f),s&&s.m(e,null),p(e,i),l&&l.m(e,null),p(e,n),r&&r.m(e,null),p(e,o),a&&a.m(e,null)},p(c,[f]){c[0]?s?s.p(c,f):(s=ca(c),s.c(),s.m(e,i)):s&&(s.d(1),s=null),c[1]?l?l.p(c,f):(l=fa(c),l.c(),l.m(e,n)):l&&(l.d(1),l=null),c[2]?r?r.p(c,f):(r=da(c),r.c(),r.m(e,o)):r&&(r.d(1),r=null),c[3]?a?a.p(c,f):(a=ma(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:W,o:W,d(c){c&&P(e),s&&s.d(),l&&l.d(),r&&r.d(),a&&a.d()}}}function Bp(t,e,i){let{startTime:n}=e,{onTimerOver:o}=e,s,l,r,a,c;const f=_=>String(_).padStart(2,"0"),m=_=>{const b=Math.floor(_/86400);b&&(_-=b*86400,i(0,s=f(b)));const k=Math.floor(_/3600);i(1,l=f(k));const v=Math.floor(_/60)%60;i(2,r=f(v));const S=_%60;i(3,a=f(S))},h=()=>{const _=Math.floor(Date.now()/1e3),b=n-_;m(b),b>=1?c=requestAnimationFrame(h):o()};return sn(()=>{c=requestAnimationFrame(h)}),Co(()=>{cancelAnimationFrame(c)}),t.$$set=_=>{"startTime"in _&&i(4,n=_.startTime),"onTimerOver"in _&&i(5,o=_.onTimerOver)},[s,l,r,a,n,o]}class Np extends ve{constructor(e){super(),_e(this,e,Bp,Mp,be,{startTime:4,onTimerOver:5},Vp)}}function Rp(t){let e,i,n,o,s;return{c(){e=B("svg"),i=B("path"),n=B("path"),o=B("path"),s=B("path"),u(i,"fill","#fefffe"),u(i,"d","M179.5-.5h40c85.04 12.447 142.207 59.113 171.5 140 3.816 13.264 6.649 26.597 8.5 40v40c-3.699 34.4-15.533 65.733-35.5 94-6.417-8.409-14.584-14.576-24.5-18.5-1.017-1.049-1.184-2.216-.5-3.5 26.495-41.134 34.161-85.467 23-133-21.84-72.167-70.006-114-144.5-125.5C147.251 28.707 93.084 55.874 55 114.5c-26.93 49.402-29.93 100.068-9 152a152.324 152.324 0 0 0 14 25c.684 1.284.517 2.451-.5 3.5-9.916 3.924-18.083 10.091-24.5 18.5-19.967-28.267-31.8-59.6-35.5-94v-40C11.947 94.46 58.613 37.293 139.5 8c13.264-3.816 26.597-6.649 40-8.5Z"),It(i,"opacity",".965"),u(n,"fill","#fefffe"),u(n,"d","M183.5 63.5c57.529-3.65 102.029 18.35 133.5 66 21.628 40.092 24.295 81.425 8 124a186.647 186.647 0 0 1-17.5 29.5 632.842 632.842 0 0 1-38-7c36.445-38.176 42.945-81.01 19.5-128.5-24.178-37.504-58.678-54.337-103.5-50.5-49.5 9.5-79 39-88.5 88.5-3.944 35.587 6.889 65.753 32.5 90.5a1149.466 1149.466 0 0 0-36 7.5c-1.53-.029-2.696-.696-3.5-2-29.298-42.431-34.631-87.764-16-136 21.866-46.852 58.366-74.185 109.5-82Z"),It(n,"opacity",".965"),u(o,"fill","#fefffe"),u(o,"d","M187.5 127.5c44.524-2.948 72.357 17.052 83.5 60 3.431 44.55-16.403 72.383-59.5 83.5-44.55 3.431-72.383-16.403-83.5-59.5-3.229-44.571 16.604-72.571 59.5-84Z"),It(o,"opacity",".985"),u(s,"fill","#fefffe"),u(s,"d","M219.5 399.5h-40c-44.969-5.321-83.969-23.321-117-54a31.738 31.738 0 0 1 3.5-10c5.692-6.431 12.526-11.264 20.5-14.5 36.524-12.956 74.191-18.79 113-17.5 38.809-1.29 76.476 4.544 113 17.5 7.974 3.236 14.808 8.069 20.5 14.5a31.731 31.731 0 0 1 3.5 10c-33.031 30.679-72.031 48.679-117 54Z"),It(s,"opacity",".986"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"viewBox","0 0 400 400"),u(e,"aria-hidden","true"),u(e,"data-testid","podcast-icon"),It(e,"shape-rendering","geometricPrecision"),It(e,"text-rendering","geometricPrecision"),It(e,"image-rendering","optimizeQuality"),It(e,"fill-rule","evenodd"),It(e,"clip-rule","evenodd"),It(e,"width","100%"),It(e,"height","100%")},m(l,r){T(l,e,r),p(e,i),p(e,n),p(e,o),p(e,s)},p:W,i:W,o:W,d(l){l&&P(e)}}}class Dp extends ve{constructor(e){super(),_e(this,e,null,Rp,be,{})}}function Op(t){Ke(t,"v-15pewff",".waiting-container.v-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.v-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.v-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.v-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.v-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.v-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.v-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.v-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function zp(t){let e,i,n,o,s;return o=new Np({props:{startTime:t[1]||0,onTimerOver:t[3]}}),{c(){e=I("div"),i=I("span"),i.textContent=`${K("waiting_live_timer_title")}`,n=D(),U(o.$$.fragment),u(i,"class","timer__title v-15pewff"),u(e,"class","waiting-timer timer v-15pewff")},m(l,r){T(l,e,r),p(e,i),p(e,n),z(o,e,null),s=!0},p(l,r){const a={};r&2&&(a.startTime=l[1]||0),r&4&&(a.onTimerOver=l[3]),o.$set(a)},i(l){s||(d(o.$$.fragment,l),s=!0)},o(l){g(o.$$.fragment,l),s=!1},d(l){l&&P(e),H(o)}}}function Hp(t){let e,i,n,o,s,l;return n=new Dp({}),{c(){e=I("div"),i=I("div"),U(n.$$.fragment),o=D(),s=I("span"),s.textContent=`${K("waiting_live_upcoming_title")}`,u(i,"class","upcoming-icon v-15pewff"),u(s,"class","upcoming__title v-15pewff"),u(e,"class","upcoming v-15pewff")},m(r,a){T(r,e,a),p(e,i),z(n,i,null),p(e,o),p(e,s),l=!0},p:W,i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){g(n.$$.fragment,r),l=!1},d(r){r&&P(e),H(n)}}}function Fp(t){let e,i,n,o,s;const l=[Hp,zp],r=[];function a(c,f){return c[2]?0:1}return i=a(t),n=r[i]=l[i](t),{c(){e=I("div"),n.c(),u(e,"class","waiting-container v-15pewff"),u(e,"style",o=`background-image: url(${t[2]?"":t[0]})`)},m(c,f){T(c,e,f),r[i].m(e,null),s=!0},p(c,[f]){let m=i;i=a(c),i===m?r[i].p(c,f):(fe(),g(r[m],1,1,()=>{r[m]=null}),de(),n=r[i],n?n.p(c,f):(n=r[i]=l[i](c),n.c()),d(n,1),n.m(e,null)),(!s||f&5&&o!==(o=`background-image: url(${c[2]?"":c[0]})`))&&u(e,"style",o)},i(c){s||(d(n),s=!0)},o(c){g(n),s=!1},d(c){c&&P(e),r[i].d()}}}function Up(t,e,i){let n,{thumbUrl:o}=e,{startTime:s}=e;const l=()=>i(2,n=!0);return t.$$set=r=>{"thumbUrl"in r&&i(0,o=r.thumbUrl),"startTime"in r&&i(1,s=r.startTime)},t.$$.update=()=>{t.$$.dirty&2&&i(2,n=s===void 0||s<Math.floor(Date.now()/1e3))},[o,s,n,l]}class Cu extends ve{constructor(e){super(),_e(this,e,Up,Fp,be,{thumbUrl:0,startTime:1},Op)}}function qp(t){Ke(t,"v-1bcnzdw",".waiting-container.v-1bcnzdw{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black)}.waiting-title.v-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function Zp(t){let e,i;return{c(){e=I("div"),i=I("p"),i.textContent=`${K("waiting_record_title")}`,u(i,"class","waiting-title v-1bcnzdw"),u(e,"class","waiting-container v-1bcnzdw")},m(n,o){T(n,e,o),p(e,i)},p:W,i:W,o:W,d(n){n&&P(e)}}}class Pu extends ve{constructor(e){super(),_e(this,e,null,Zp,be,{},qp)}}const{window:Wp}=Ja;function Kp(t){Ke(t,"v-1o4wf3x",".player-wrapper.v-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.v-1o4wf3x .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.v-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.v-1o4wf3x,.video-container.v-1o4wf3x,.ads-container.v-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.v-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.v-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.v-1o4wf3x{transition:none}.nocursor.v-1o4wf3x{cursor:none}.ads-container.v-1o4wf3x{background:var(--black)}")}function pa(t){let e,i;return e=new Cu({props:{thumbUrl:t[3],startTime:t[5]?.startTime}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.thumbUrl=n[3]),o[0]&32&&(s.startTime=n[5]?.startTime),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function ha(t){let e,i;return e=new Pu({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function ga(t){let e,i,n;return i=new T1({props:{adsSlotId:t[9],adsParams:t[10],adsPreviewParam:t[11],duration:t[12]}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","ads-container v-1o4wf3x"),M(e,"hidden",t[38]!==Re.Ads)},m(o,s){T(o,e,s),z(i,e,null),n=!0},p(o,s){const l={};s[0]&512&&(l.adsSlotId=o[9]),s[0]&1024&&(l.adsParams=o[10]),s[0]&2048&&(l.adsPreviewParam=o[11]),s[0]&4096&&(l.duration=o[12]),i.$set(l),(!n||s[1]&128)&&M(e,"hidden",o[38]!==Re.Ads)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function ba(t){let e,i;return e=new o0({props:{title:t[18],thumb:t[19],playNextVideo:t[23]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&262144&&(s.title=n[18]),o[0]&524288&&(s.thumb=n[19]),o[0]&8388608&&(s.playNextVideo=n[23]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function _a(t){let e,i;return e=new Lp({props:{title:t[2],isHidden:!t[36]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.title=n[2]),o[1]&32&&(s.isHidden=!n[36]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function va(t){let e,i;return e=new _u({props:{isShifted:t[38]===Re.Video&&t[36]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[1]&160&&(s.isShifted=n[38]===Re.Video&&n[36]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function ka(t){let e,i,n;return i=new _1({props:{ariaLabel:K("video360")}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","spherical-video-icon v-1o4wf3x")},m(o,s){T(o,e,s),z(i,e,null),n=!0},p:W,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function wa(t){let e,i;return e=new ku({props:{thumbUrl:t[3],chromecastDeviceName:t[55]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.thumbUrl=n[3]),o[1]&16777216&&(s.chromecastDeviceName=n[55]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function ya(t){let e,i;return e=new vu({props:{shifted:t[36],captions:t[57],position:t[58],playerSize:t[34]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[1]&32&&(s.shifted=n[36]),o[1]&67108864&&(s.captions=n[57]),o[1]&134217728&&(s.position=n[58]),o[1]&8&&(s.playerSize=n[34]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Ca(t){let e,i,n,o,s;return i=new wu({}),{c(){e=I("div"),U(i.$$.fragment)},m(l,r){T(l,e,r),z(i,e,null),n=!0,o||(s=[he(e,"contextmenu",Wt(t[107])),he(e,"click",ot(t[118]))],o=!0)},p:W,i(l){n||(d(i.$$.fragment,l),n=!0)},o(l){g(i.$$.fragment,l),n=!1},d(l){l&&P(e),H(i),o=!1,nt(s)}}}function Pa(t){let e,i,n;function o(l){t[151](l)}let s={bottomHidden:t[38]===Re.Thumb||t[38]===Re.WaitingLive||t[38]===Re.WaitingRecord,bottomNoSmooth:t[52],showControls:t[36],isAds:t[38]===Re.Ads,canRewindLive:t[7]&&t[59]!==0,logoClickable:t[13],logoHidden:t[14],videoLogoUrl:t[4],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],isOneVideoPlaylist:t[20],supportLink:t[21],customFullscreenSupported:Yp,playNextVideo:t[23],playPrevVideo:t[24],repeatPlaylist:t[25],toggleFullscreen:t[105],returnFocus:t[150],seekToInteractive:t[26],toggleGraph:t[27],playPrevChapter:t[28]};return t[41]!==void 0&&(s.controlsElementRef=t[41]),e=new gu({props:s}),we.push(()=>Ue(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&128&&(a.bottomHidden=l[38]===Re.Thumb||l[38]===Re.WaitingLive||l[38]===Re.WaitingRecord),r[1]&2097152&&(a.bottomNoSmooth=l[52]),r[1]&32&&(a.showControls=l[36]),r[1]&128&&(a.isAds=l[38]===Re.Ads),r[0]&128|r[1]&268435456&&(a.canRewindLive=l[7]&&l[59]!==0),r[0]&8192&&(a.logoClickable=l[13]),r[0]&16384&&(a.logoHidden=l[14]),r[0]&16&&(a.videoLogoUrl=l[4]),r[0]&32768&&(a.showNextPrevButtons=l[15]),r[0]&65536&&(a.nextButtonActive=l[16]),r[0]&131072&&(a.prevButtonActive=l[17]),r[0]&1048576&&(a.isOneVideoPlaylist=l[20]),r[0]&2097152&&(a.supportLink=l[21]),r[0]&8388608&&(a.playNextVideo=l[23]),r[0]&16777216&&(a.playPrevVideo=l[24]),r[0]&33554432&&(a.repeatPlaylist=l[25]),r[1]&524288&&(a.returnFocus=l[150]),r[0]&67108864&&(a.seekToInteractive=l[26]),r[0]&134217728&&(a.toggleGraph=l[27]),r[0]&268435456&&(a.playPrevChapter=l[28]),!i&&r[1]&1024&&(i=!0,a.controlsElementRef=l[41],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Sa(t){let e,i;return e=new z1({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Ta(t){let e,i;return e=new T0({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Ia(t){let e,i;return e=new B1({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Aa(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe;e=new yu({props:{hidden:t[38]!==Re.Thumb||t[37]||t[93]&&t[6],thumbUrl:t[3],startVideo:t[29]}});let x=t[38]===Re.WaitingLive&&pa(t),C=t[38]===Re.WaitingRecord&&ha(),$=t[8]&&t[22]&&ga(t),R=t[31]&&t[18]&&t[19]&&ba(t),se=t[46]&&_a(t),j=t[51]&&va(t),N=t[54]&&ka(),Q=t[39]&&wa(t),A=t[56].value!=="off"&&ya(t),ne=t[37]&&Ca(t),Ie=t[22]&&Pa(t);b=new A1({props:{isLive:t[60],isHidden:!t[45],isPlaying:t[61],position:t[58],duration:t[62]}}),v=new rp({props:{data:t[102]}});function Ne(G){t[153](G)}let Be={supportLink:t[21],returnFocus:t[152],visible:t[33],playerContainerRef:t[40],controlsContainerRef:t[41],x:t[42],y:t[43]};t[32]!==void 0&&(Be.menuElementRef=t[32]),w=new Of({props:Be}),we.push(()=>Ue(w,"menuElementRef",Ne));let ze=t[44]&&Sa(),ce=t[63]&&Ta(),ke=t[64]&&Ia();return{c(){U(e.$$.fragment),i=D(),x&&x.c(),n=D(),C&&C.c(),o=D(),$&&$.c(),s=D(),R&&R.c(),l=D(),se&&se.c(),r=D(),j&&j.c(),a=D(),N&&N.c(),c=D(),Q&&Q.c(),f=D(),A&&A.c(),m=D(),ne&&ne.c(),h=D(),Ie&&Ie.c(),_=D(),U(b.$$.fragment),k=D(),U(v.$$.fragment),S=D(),U(w.$$.fragment),E=D(),ze&&ze.c(),ie=D(),ce&&ce.c(),V=D(),ke&&ke.c(),F=at()},m(G,J){z(e,G,J),T(G,i,J),x&&x.m(G,J),T(G,n,J),C&&C.m(G,J),T(G,o,J),$&&$.m(G,J),T(G,s,J),R&&R.m(G,J),T(G,l,J),se&&se.m(G,J),T(G,r,J),j&&j.m(G,J),T(G,a,J),N&&N.m(G,J),T(G,c,J),Q&&Q.m(G,J),T(G,f,J),A&&A.m(G,J),T(G,m,J),ne&&ne.m(G,J),T(G,h,J),Ie&&Ie.m(G,J),T(G,_,J),z(b,G,J),T(G,k,J),z(v,G,J),T(G,S,J),z(w,G,J),T(G,E,J),ze&&ze.m(G,J),T(G,ie,J),ce&&ce.m(G,J),T(G,V,J),ke&&ke.m(G,J),T(G,F,J),oe=!0},p(G,J){const ye={};J[0]&64|J[1]&192&&(ye.hidden=G[38]!==Re.Thumb||G[37]||G[93]&&G[6]),J[0]&8&&(ye.thumbUrl=G[3]),J[0]&536870912&&(ye.startVideo=G[29]),e.$set(ye),G[38]===Re.WaitingLive?x?(x.p(G,J),J[1]&128&&d(x,1)):(x=pa(G),x.c(),d(x,1),x.m(n.parentNode,n)):x&&(fe(),g(x,1,1,()=>{x=null}),de()),G[38]===Re.WaitingRecord?C?J[1]&128&&d(C,1):(C=ha(),C.c(),d(C,1),C.m(o.parentNode,o)):C&&(fe(),g(C,1,1,()=>{C=null}),de()),G[8]&&G[22]?$?($.p(G,J),J[0]&4194560&&d($,1)):($=ga(G),$.c(),d($,1),$.m(s.parentNode,s)):$&&(fe(),g($,1,1,()=>{$=null}),de()),G[31]&&G[18]&&G[19]?R?(R.p(G,J),J[0]&786432|J[1]&1&&d(R,1)):(R=ba(G),R.c(),d(R,1),R.m(l.parentNode,l)):R&&(fe(),g(R,1,1,()=>{R=null}),de()),G[46]?se?(se.p(G,J),J[1]&32768&&d(se,1)):(se=_a(G),se.c(),d(se,1),se.m(r.parentNode,r)):se&&(fe(),g(se,1,1,()=>{se=null}),de()),G[51]?j?(j.p(G,J),J[1]&1048576&&d(j,1)):(j=va(G),j.c(),d(j,1),j.m(a.parentNode,a)):j&&(fe(),g(j,1,1,()=>{j=null}),de()),G[54]?N?(N.p(G,J),J[1]&8388608&&d(N,1)):(N=ka(),N.c(),d(N,1),N.m(c.parentNode,c)):N&&(fe(),g(N,1,1,()=>{N=null}),de()),G[39]?Q?(Q.p(G,J),J[1]&256&&d(Q,1)):(Q=wa(G),Q.c(),d(Q,1),Q.m(f.parentNode,f)):Q&&(fe(),g(Q,1,1,()=>{Q=null}),de()),G[56].value!=="off"?A?(A.p(G,J),J[1]&33554432&&d(A,1)):(A=ya(G),A.c(),d(A,1),A.m(m.parentNode,m)):A&&(fe(),g(A,1,1,()=>{A=null}),de()),G[37]?ne?(ne.p(G,J),J[1]&64&&d(ne,1)):(ne=Ca(G),ne.c(),d(ne,1),ne.m(h.parentNode,h)):ne&&(fe(),g(ne,1,1,()=>{ne=null}),de()),G[22]?Ie?(Ie.p(G,J),J[0]&4194304&&d(Ie,1)):(Ie=Pa(G),Ie.c(),d(Ie,1),Ie.m(_.parentNode,_)):Ie&&(fe(),g(Ie,1,1,()=>{Ie=null}),de());const re={};J[1]&536870912&&(re.isLive=G[60]),J[1]&16384&&(re.isHidden=!G[45]),J[1]&1073741824&&(re.isPlaying=G[61]),J[1]&134217728&&(re.position=G[58]),J[2]&1&&(re.duration=G[62]),b.$set(re);const We={};J[0]&2097152&&(We.supportLink=G[21]),J[1]&524288&&(We.returnFocus=G[152]),J[1]&4&&(We.visible=G[33]),J[1]&512&&(We.playerContainerRef=G[40]),J[1]&1024&&(We.controlsContainerRef=G[41]),J[1]&2048&&(We.x=G[42]),J[1]&4096&&(We.y=G[43]),!y&&J[1]&2&&(y=!0,We.menuElementRef=G[32],Fe(()=>y=!1)),w.$set(We),G[44]?ze?J[1]&8192&&d(ze,1):(ze=Sa(),ze.c(),d(ze,1),ze.m(ie.parentNode,ie)):ze&&(fe(),g(ze,1,1,()=>{ze=null}),de()),G[63]?ce?J[2]&2&&d(ce,1):(ce=Ta(),ce.c(),d(ce,1),ce.m(V.parentNode,V)):ce&&(fe(),g(ce,1,1,()=>{ce=null}),de()),G[64]?ke?J[2]&4&&d(ke,1):(ke=Ia(),ke.c(),d(ke,1),ke.m(F.parentNode,F)):ke&&(fe(),g(ke,1,1,()=>{ke=null}),de())},i(G){oe||(d(e.$$.fragment,G),d(x),d(C),d($),d(R),d(se),d(j),d(N),d(Q),d(A),d(ne),d(Ie),d(b.$$.fragment,G),d(v.$$.fragment,G),d(w.$$.fragment,G),d(ze),d(ce),d(ke),oe=!0)},o(G){g(e.$$.fragment,G),g(x),g(C),g($),g(R),g(se),g(j),g(N),g(Q),g(A),g(ne),g(Ie),g(b.$$.fragment,G),g(v.$$.fragment,G),g(w.$$.fragment,G),g(ze),g(ce),g(ke),oe=!1},d(G){G&&(P(i),P(n),P(o),P(s),P(l),P(r),P(a),P(c),P(f),P(m),P(h),P(_),P(k),P(S),P(E),P(ie),P(V),P(F)),H(e,G),x&&x.d(G),C&&C.d(G),$&&$.d(G),R&&R.d(G),se&&se.d(G),j&&j.d(G),N&&N.d(G),Q&&Q.d(G),A&&A.d(G),ne&&ne.d(G),Ie&&Ie.d(G),H(b,G),H(v,G),H(w,G),ze&&ze.d(G),ce&&ce.d(G),ke&&ke.d(G)}}}function jp(t){let e,i,n,o,s=t[53],l,r,a,c,f=Aa(t);return{c(){e=I("div"),i=I("div"),o=D(),f.c(),l=at(),u(i,"class","video-container v-1o4wf3x"),u(i,"style",n=`transform: rotate(${t[35]}deg) scale(${t[48]})`),M(i,"fast-rotate",!t[1].isSmoothVideoRotate),u(e,"class","video-wrapper v-1o4wf3x"),M(e,"hidden",t[38]!==Re.Video),M(e,"nocursor",t[47])},m(m,h){T(m,e,h),p(e,i),t[149](i),T(m,o,h),f.m(m,h),T(m,l,h),r=!0,a||(c=[he(e,"contextmenu",Wt(t[107])),he(e,"mousedown",Wt(t[112])),he(e,"mouseup",Wt(t[113])),he(e,"click",Wt(t[115])),he(e,"dblclick",Wt(t[114]))],a=!0)},p(m,h){(!r||h[1]&131088&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[48]})`))&&u(i,"style",n),(!r||h[0]&2)&&M(i,"fast-rotate",!m[1].isSmoothVideoRotate),(!r||h[1]&128)&&M(e,"hidden",m[38]!==Re.Video),(!r||h[1]&65536)&&M(e,"nocursor",m[47]),h[1]&4194304&&be(s,s=m[53])?(fe(),g(f,1,1,W),de(),f=Aa(m),f.c(),d(f,1),f.m(l.parentNode,l)):f.p(m,h)},i(m){r||(d(f),r=!0)},o(m){g(f),r=!1},d(m){m&&(P(e),P(o),P(l)),t[149](null),f.d(m),a=!1,nt(c)}}}function Gp(t){let e,i,n,o,s,l,r,a={toggleFullscreen:t[105],hideContextMenu:t[106],showHotKeyHelpers:t[116],showKeyMap:t[117],isAds:t[38]===Re.Ads,fakePlayButtonHandler:t[49]?t[104]:void 0,$$slots:{default:[jp]},$$scope:{ctx:t}};return i=new a0({props:a}),t[154](i),{c(){e=I("div"),U(i.$$.fragment),n=D(),o=I("div"),u(o,"class","overlay-container"),u(e,"class","player-wrapper v-1o4wf3x")},m(c,f){T(c,e,f),z(i,e,null),p(e,n),p(e,o),t[155](o),t[156](e),s=!0,l||(r=[he(Wp,"blur",t[106]),he(e,"mouseenter",t[108]),he(e,"mouseleave",t[110]),he(e,"mousemove",t[111]),he(e,"click",t[119],!0),he(e,"focusin",t[109],!0)],l=!0)},p(c,f){const m={};f[1]&128&&(m.isAds=c[38]===Re.Ads),f[1]&262144&&(m.fakePlayButtonHandler=c[49]?c[104]:void 0),f[0]&1073741823|f[1]&2147221503|f[2]&7|f[5]&8388608&&(m.$$scope={dirty:f,ctx:c}),i.$set(m)},i(c){s||(d(i.$$.fragment,c),s=!0)},o(c){g(i.$$.fragment,c),s=!1},d(c){c&&P(e),t[154](null),H(i),t[155](null),t[156](null),l=!1,nt(r)}}}let Yp=!0;function Su(t){return t?t.offsetTop+Su(t.offsetParent):0}function Qp(t,e,i){let n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe,x,C,$,R,se,j,N,Q,A,ne,Ie,Ne,Be,ze,ce,ke,G,{store:J}=e,{uiConfig:ye}=e,{title:re}=e,{thumbUrl:We}=e,{videoLogoUrl:Ve}=e,{videoContainer:Ee}=e,{interactiveContainer:ue}=e,{live:Ce}=e,{autoplay:ge}=e,{canRewindLive:le}=e,{showAds:qe}=e,{adsSlotId:pe=void 0}=e,{adsParams:Pe=void 0}=e,{adsPreviewParam:Te=void 0}=e,{duration:je=void 0}=e,{logoClickable:tt}=e,{logoHidden:Xe}=e,{showNextPrevButtons:Qe=!1}=e,{nextButtonActive:it=!1}=e,{prevButtonActive:Et=!1}=e,{endScreenVideoTitle:ut=void 0}=e,{endScreenVideoThumb:$t=void 0}=e,{isOneVideoPlaylist:_t=!1}=e,{supportLink:Oe}=e,{outerContainerRef:me=void 0}=e,{playerStarted:bt=!1}=e,{fullScreenTarget:ct=void 0}=e,{showMiniTimer:Dt=!1}=e,{playNextVideo:rt=te.noop}=e,{playPrevVideo:wt=te.noop}=e,{repeatPlaylist:ei=te.noop}=e,{seekToInteractive:Kt}=e,{toggleGraph:ti}=e,{playPrevChapter:Ui}=e,{firstStart:ii}=e;const Ci=J.getLogger().createComponentLog("Root component"),Yi=J.interfaceLanguage$;O(t,Yi,q=>i(53,j=q));const ni=J.state.playbackState$;O(t,ni,q=>i(146,$=q));const oi=J.ads.playbackState;O(t,oi,q=>i(147,R=q));const Pi=J.state.positionWithScrubbing$;O(t,Pi,q=>i(58,Ie=q));const Vt=J.state.duration$;O(t,Vt,q=>i(62,ce=q));const li=J.playerPhase;O(t,li,q=>i(38,V=q));const si=J.ui.isFullscreen;O(t,si,q=>i(136,m=q));const jt=J.ui.controlsVisible;O(t,jt,q=>i(36,S=q));const ri=J.ui.settingsMenuVisible;O(t,ri,q=>i(134,l=q));const ai=J.ui.scrubbingInProgress;O(t,ai,q=>i(138,k=q));const ui=J.ui.contextMenuVisible;O(t,ui,q=>i(33,n=q));const Si=J.ui.debugPanelVisible;O(t,Si,q=>i(64,G=q));const Ti=J.state.isLoaderVisible;O(t,Ti,q=>i(148,se=q));const Ii=J.state.isEnded$;O(t,Ii,q=>i(135,a=q));const yt=J.state.chromecastConnected$;O(t,yt,q=>i(39,x=q));const ci=J.state.chromecastDeviceName$;O(t,ci,q=>i(55,Q=q));const Gt=J.ads.postrollPassed;O(t,Gt,q=>i(141,E=q));const fi=J.state.isLive$;O(t,fi,q=>i(60,Be=q));const Lt=J.state.isPlaying$;O(t,Lt,q=>i(61,ze=q));const Ai=J.state.crashed$;O(t,Ai,q=>i(37,y=q));const vt=J.webApi.pictureInPictureApi,Ct=J.state.currentSubtitle$;O(t,Ct,q=>i(56,A=q));const Ot=J.state.currentSubtitleCaptions$;O(t,Ot,q=>i(57,ne=q));const Pt=J.state.duration$;O(t,Pt,q=>i(59,Ne=q));const Ei=J.state.graphIsOpened$;O(t,Ei,q=>i(142,ie=q));const Mt=J.ui.playerSize;O(t,Mt,q=>i(34,f=q));const Yt=J.ui.is3DVideo;O(t,Yt,q=>i(51,c=q));const Qt=J.ui.icon3DVideoVisible;O(t,Qt,q=>i(54,N=q));const di=J.ui.rotateAlpha;O(t,di,q=>i(35,b=q));const St=J.state.isInteractive,qi=J.state.isInteractiveTime$;O(t,qi,q=>i(139,v=q));const Li=J.state.isInteractiveExpectation$;O(t,Li,q=>i(145,C=q));const Qi=J.state.hasInteractiveBranches,Xt=J.ui.touched;O(t,Xt,q=>i(143,F=q));const gt=J.ui.modals.hotKeyMap.data;O(t,gt,q=>i(163,r=q));const zt=J.ui.modals.hotKeyMap.show;O(t,zt,q=>i(63,ke=q));const Zi=J.ui.overlayContainer$,Wi=J.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Ki}=To();O(t,Ki,q=>i(137,_=q));let Jt,zi,mi=0,pi=0,Vi,Mi,Bt;gt.set(nf());let Hi,hi;const gi=Le(!1);O(t,gi,q=>i(52,h=q));let Bi;const bi=Le(!1);O(t,bi,q=>i(144,oe=q));const Ht=Le(),_i=Le(!1);O(t,_i,q=>i(140,w=q));let He=!1,vi=!1,Nt,Me,en,ji,tn,Fi,nn=!1,Ft,Gi=!1;const{toggle:on}=Ki;let Ni=!1,Tt=null,Ri;vt?.setContext(xa());const ee=()=>{ge&&!St&&kt(ye.controls.hideTimeout)};J.setUiCallbacks({onStarted:ee});const lt=()=>{window.clearTimeout(Vi),bi.set(!1)},ki=()=>{window.clearTimeout(Mi),Ht.set(null)},kt=q=>{lt(),bi.set(!0),Vi=window.setTimeout(()=>bi.set(!1),q);const wi=q-100;Bi=window.setTimeout(()=>{h&&gi.set(!1)},wi>0?wi:q)},Xi=(q,wi)=>{ki(),Ht.set(wi),Mi=window.setTimeout(()=>Ht.set(null),q)},ln=Yt.subscribe(q=>{Qt.set(q),q&&(window.clearTimeout(Bt),Bt=window.setTimeout(()=>Qt.set(!1),ye.controls.hide360IconTimeout))}),rn=async()=>{const q=wo();if(q){kt(ye.controls.hideTimeoutFullscreen);try{await vt?.remove()}catch(wi){Ci({message:String(wi)})}}si.set(q),J.getAdmanWrapper().setFullscreen(q),m?J.callbacks?.onFullscreenEnter?.():J.callbacks?.onFullscreenExit?.()},dn=q=>{const wi=q;Mt.set({width:wi.target.width,height:wi.target.height})};sn(()=>(P1(rn),Ko(vt)&&(vt?.assignPlayerContainer(Jt),vt?.registryExternalEventHandlers({resize:dn})),ue&&Ee.parentElement?.insertBefore(ue,Ee.nextSibling),()=>{window.clearTimeout(Vi),window.clearTimeout(Bi),window.clearTimeout(Mi),window.clearTimeout(Bt),ln(),vt?.dispose(),S1(rn)}));const un=async()=>{if(wo())await C1(document),Ci({message:"exit fullscreen"});else{Ci({message:"request fullscreen"});const q=me??Jt,wi=q.getRootNode(),In=wi instanceof ShadowRoot?wi.host:wi,Pn=ct instanceof HTMLElement&&ct.contains(In),$n=ye.allowChangingFullscreenTarget&&ct&&Pn?ct:q;await y1($n)}},Ji=()=>{Wi(),ui.set(!1)},mn=q=>{ui.set(!0),i(42,mi=q.clientX),i(43,pi=q.clientY)};function cn(){_i.set(!0),St||kt(ye.controls.hideTimeoutCursor)}function wn(){St||(gi.set(!0),kt(ye.controls.hideTimeoutCursor))}function X(){_i.set(!1),i(128,vi=!1),i(127,He=!1),Ni=!1,J.actions.internal.releaseCamera()}function dt(q){if(Jt){const wi=Su(q.currentTarget),In=f.height,Pn=q.pageY-wi;Pn<Zl?i(128,vi=!0):Pn>In-Zl?i(127,He=!0):(i(128,vi=!1),l||i(127,He=!1))}}function yn(q){dt(q),Me||kt(ye.controls.hideTimeoutCursor),c&&Ni&&Tt&&J.actions.internal.moveCameraFocusPX(Tt.clientX-q.clientX,Tt.clientY-q.clientY,q.timeStamp-Tt.timeStamp),Tt=q}const Cn=q=>{q.button===0&&(Ni=!0,J.actions.internal.holdCamera()),kt(ye.controls.hideTimeoutCursor)},pn=q=>{q.button===0&&(Tt=q,Ni=!1,J.actions.internal.releaseCamera()),kt(ye.controls.hideTimeoutCursor)},Dn=()=>{Ci({message:"double click on video"}),un(),kt(ye.controls.hideTimeoutCursor)},On=()=>{if(n||l){Ji();return}if(!(a&&!Qi)){if(Gi)return on();if(Ri?.focus(),!bt){ii(),kt(ye.controls.hideTimeoutCursor);return}J.actions.internal.togglePlay(),kt(ye.controls.hideTimeoutCursor)}},zn=q=>{Ji(),Xt.set(!0),kt(ye.controls.hideTimeout),q&&Xi(ye.controls.hideHotKeyHelpers,q)},Hn=()=>{Ji(),J.callbacks?.onOpenHotKeyMap?J.callbacks?.onOpenHotKeyMap(r):zt.update(q=>!q)},Fn=()=>{if(n||l){Ji();return}},Un=()=>{Xt.set(!0)},hn=J.ui.contextMenu.openedByKeyboard$;O(t,hn,q=>i(133,s=q));let qn=J.ui.contextMenu.btnRef$;O(t,qn,q=>i(132,o=q));let Y;function xi(q){we[q?"unshift":"push"](()=>{Ee=q,i(0,Ee)})}const jn=()=>Ri?.focus();function mo(q){zi=q,i(41,zi)}const Jn=()=>Ri?.focus();function po(q){Y=q,i(32,Y)}function ho(q){we[q?"unshift":"push"](()=>{Ri=q,i(50,Ri)})}function xn(q){we[q?"unshift":"push"](()=>{hi=q,i(30,hi)})}function go(q){we[q?"unshift":"push"](()=>{Jt=q,i(40,Jt)})}return t.$$set=q=>{"store"in q&&i(122,J=q.store),"uiConfig"in q&&i(1,ye=q.uiConfig),"title"in q&&i(2,re=q.title),"thumbUrl"in q&&i(3,We=q.thumbUrl),"videoLogoUrl"in q&&i(4,Ve=q.videoLogoUrl),"videoContainer"in q&&i(0,Ee=q.videoContainer),"interactiveContainer"in q&&i(123,ue=q.interactiveContainer),"live"in q&&i(5,Ce=q.live),"autoplay"in q&&i(6,ge=q.autoplay),"canRewindLive"in q&&i(7,le=q.canRewindLive),"showAds"in q&&i(8,qe=q.showAds),"adsSlotId"in q&&i(9,pe=q.adsSlotId),"adsParams"in q&&i(10,Pe=q.adsParams),"adsPreviewParam"in q&&i(11,Te=q.adsPreviewParam),"duration"in q&&i(12,je=q.duration),"logoClickable"in q&&i(13,tt=q.logoClickable),"logoHidden"in q&&i(14,Xe=q.logoHidden),"showNextPrevButtons"in q&&i(15,Qe=q.showNextPrevButtons),"nextButtonActive"in q&&i(16,it=q.nextButtonActive),"prevButtonActive"in q&&i(17,Et=q.prevButtonActive),"endScreenVideoTitle"in q&&i(18,ut=q.endScreenVideoTitle),"endScreenVideoThumb"in q&&i(19,$t=q.endScreenVideoThumb),"isOneVideoPlaylist"in q&&i(20,_t=q.isOneVideoPlaylist),"supportLink"in q&&i(21,Oe=q.supportLink),"outerContainerRef"in q&&i(124,me=q.outerContainerRef),"playerStarted"in q&&i(22,bt=q.playerStarted),"fullScreenTarget"in q&&i(125,ct=q.fullScreenTarget),"showMiniTimer"in q&&i(126,Dt=q.showMiniTimer),"playNextVideo"in q&&i(23,rt=q.playNextVideo),"playPrevVideo"in q&&i(24,wt=q.playPrevVideo),"repeatPlaylist"in q&&i(25,ei=q.repeatPlaylist),"seekToInteractive"in q&&i(26,Kt=q.seekToInteractive),"toggleGraph"in q&&i(27,ti=q.toggleGraph),"playPrevChapter"in q&&i(28,Ui=q.playPrevChapter),"firstStart"in q&&i(29,ii=q.firstStart)},t.$$.update=()=>{if(t.$$.dirty[1]&192|t.$$.dirty[4]&25165824&&i(44,Hi=(V===Re.Video&&se||V===Re.Ads&&R===Zt.INACTIVE)&&!y),t.$$.dirty[0]&1073741824&&Zi.set(hi),t.$$.dirty[4]&4194304&&i(129,Nt=$!==$e.PlaybackState.PLAYING),t.$$.dirty[4]&2131e3&&i(130,Me=v&&!l&&!(He||vi)&&!(Nt&&!C)),t.$$.dirty[1]&448|t.$$.dirty[4]&1066080&&jt.set((Nt||l||k||x||oe)&&!Me&&V===Re.Video&&!y),t.$$.dirty[0]&2|t.$$.dirty[1]&224|t.$$.dirty[4]&524292&&i(45,en=ye.features.thumbTimer&&Dt&&V===Re.Video&&!S&&!y&&!St&&(ye.hideThumbTimerAfterTouch&&!F||!ye.hideThumbTimerAfterTouch)),t.$$.dirty[1]&128|t.$$.dirty[4]&266240&&i(46,ji=V===Re.Video&&!ie&&m),t.$$.dirty[0]&256|t.$$.dirty[1]&64|t.$$.dirty[4]&133120&&i(31,tn=(qe&&E||!qe)&&a&&!y),t.$$.dirty[1]&33|t.$$.dirty[4]&98304&&i(47,Fi=w&&!(S||tn)&&!v),t.$$.dirty[0]&2|t.$$.dirty[4]&49280&&(!k&&nn&&!v&&kt(ye.controls.hideTimeoutCursor),i(131,nn=k)),t.$$.dirty[0]&1|t.$$.dirty[1]&24&&i(48,Ft=Ee&&b%180?f.height/f.width:1),t.$$.dirty[4]&8192&&i(49,Gi=_!==null),t.$$.dirty[1]&6|t.$$.dirty[4]&512&&yl(Y,n,s),t.$$.dirty[1]&4|t.$$.dirty[4]&256){const q=o;q&&wl(q,n,hn)}},[Ee,ye,re,We,Ve,Ce,ge,le,qe,pe,Pe,Te,je,tt,Xe,Qe,it,Et,ut,$t,_t,Oe,bt,rt,wt,ei,Kt,ti,Ui,ii,hi,tn,Y,n,f,b,S,y,V,x,Jt,zi,mi,pi,Hi,en,ji,Fi,Ft,Gi,Ri,c,h,j,N,Q,A,ne,Ie,Ne,Be,ze,ce,ke,G,Yi,ni,oi,Pi,Vt,li,si,jt,ri,ai,ui,Si,Ti,Ii,yt,ci,Gt,fi,Lt,Ai,Ct,Ot,Pt,Ei,Mt,Yt,Qt,di,St,qi,Li,Xt,gt,zt,Ki,gi,bi,Ht,_i,on,un,Ji,mn,cn,wn,X,yn,Cn,pn,Dn,On,zn,Hn,Fn,Un,hn,qn,J,ue,me,ct,Dt,He,vi,Nt,Me,nn,o,s,l,a,m,_,k,v,w,E,ie,F,oe,C,$,R,se,xi,jn,mo,Jn,po,ho,xn,go]}class Xp extends ve{constructor(e){super(),_e(this,e,Qp,Gp,be,{store:122,uiConfig:1,title:2,thumbUrl:3,videoLogoUrl:4,videoContainer:0,interactiveContainer:123,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:124,playerStarted:22,fullScreenTarget:125,showMiniTimer:126,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},Kp,[-1,-1,-1,-1,-1,-1])}}const Jp=t=>{if(!te.isIOS(!0))return!1;const e=t.device===te.CurrentClientDevice.iPad||window?.screen.width>700,i=te.getIOSVersion();return!e||e&&!!i&&i<16};function xp(t){Ke(t,"v-nhq2ld",".double-click-area.v-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-nhq2ld{left:0}.double-click-area.right.v-nhq2ld{right:0}.semicircle.v-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.v-nhq2ld:nth-child(1),.triangle.left.v-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.v-nhq2ld:nth-child(2),.triangle.left.v-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.v-nhq2ld:nth-child(3),.triangle.left.v-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes v-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-nhq2ld{border-right:8px solid var(--white)}.triangle.right.v-nhq2ld{border-left:8px solid var(--white)}.triangle.v-nhq2ld:not(:last-child){margin-right:5px}.step-caption.v-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Ea(t){let e,i,n,o,s,l,r,a,c,f,m,h,_,b,k,v=K("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",S;return{c(){e=I("div"),n=D(),o=I("div"),s=I("div"),l=I("div"),a=D(),c=I("div"),m=D(),h=I("div"),b=D(),k=I("p"),S=De(v),u(e,"class",i="semicircle "+t[0]+" v-nhq2ld"),u(l,"class",r="triangle "+t[0]+" v-nhq2ld"),u(c,"class",f="triangle "+t[0]+" v-nhq2ld"),u(h,"class",_="triangle "+t[0]+" v-nhq2ld"),u(s,"class","triangles-wrapper v-nhq2ld"),u(k,"class","step-caption v-nhq2ld"),u(o,"class","info v-nhq2ld")},m(w,y){T(w,e,y),T(w,n,y),T(w,o,y),p(o,s),p(s,l),p(s,a),p(s,c),p(s,m),p(s,h),p(o,b),p(o,k),p(k,S)},p(w,y){y&1&&i!==(i="semicircle "+w[0]+" v-nhq2ld")&&u(e,"class",i),y&1&&r!==(r="triangle "+w[0]+" v-nhq2ld")&&u(l,"class",r),y&1&&f!==(f="triangle "+w[0]+" v-nhq2ld")&&u(c,"class",f),y&1&&_!==(_="triangle "+w[0]+" v-nhq2ld")&&u(h,"class",_),y&2&&v!==(v=K("doubletap_seek_step",{seconds:w[1].toFixed(0)})+"")&&et(S,v)},d(w){w&&(P(e),P(n),P(o))}}}function $p(t){let e,i,n,o,s=t[2]&&Ea(t);return{c(){e=I("div"),s&&s.c(),u(e,"class",i="double-click-area "+t[0]+" v-nhq2ld")},m(l,r){T(l,e,r),s&&s.m(e,null),n||(o=he(e,"click",ot(t[3]())),n=!0)},p(l,[r]){l[2]?s?s.p(l,r):(s=Ea(l),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&1&&i!==(i="double-click-area "+l[0]+" v-nhq2ld")&&u(e,"class",i)},i:W,o:W,d(l){l&&P(e),s&&s.d(),n=!1,o()}}}function eh(t,e,i){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:s}=e,{handleSecondClick:l}=e,r=!1,a=0,c=0;const f=()=>{let h=0;return()=>{h+=1,h===1?a=window.setTimeout(()=>{s(),h=0},300):(window.clearTimeout(a),h=0,l(),i(2,r=!0),c=window.setTimeout(()=>{i(2,r=!1)},500))}};return Co(()=>{window.clearTimeout(a),window.clearTimeout(c)}),t.$$set=m=>{"side"in m&&i(0,n=m.side),"seekStep"in m&&i(1,o=m.seekStep),"handleSingleFirstClick"in m&&i(4,s=m.handleSingleFirstClick),"handleSecondClick"in m&&i(5,l=m.handleSecondClick)},[n,o,r,f,s,l]}class Tu extends ve{constructor(e){super(),_e(this,e,eh,$p,be,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},xp)}}function th(t,e,i){let{playNextVideo:n}=e;return sn(()=>{n()}),t.$$set=o=>{"playNextVideo"in o&&i(0,n=o.playNextVideo)},[n]}class ih extends ve{constructor(e){super(),_e(this,e,th,null,be,{playNextVideo:0})}}const{window:nh}=Ja;function oh(t){Ke(t,"v-1jy89ut",".player-wrapper.v-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.v-1jy89ut .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.v-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.v-1jy89ut,.video-container.v-1jy89ut,.ads-container.v-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.v-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.v-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.v-1jy89ut{transition:none}.ads-container.v-1jy89ut{background:var(--black)}")}function La(t){let e,i,n,o;e=new Tu({props:{side:"left",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[129]}});let s=!t[48]&&Va(t);return{c(){U(e.$$.fragment),i=D(),s&&s.c(),n=at()},m(l,r){z(e,l,r),T(l,i,r),s&&s.m(l,r),T(l,n,r),o=!0},p(l,r){const a={};r[0]&2&&(a.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(a),l[48]?s&&(fe(),g(s,1,1,()=>{s=null}),de()):s?(s.p(l,r),r[1]&131072&&d(s,1)):(s=Va(l),s.c(),d(s,1),s.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(s),o=!0)},o(l){g(e.$$.fragment,l),g(s),o=!1},d(l){l&&(P(i),P(n)),H(e,l),s&&s.d(l)}}}function Va(t){let e,i;return e=new Tu({props:{side:"right",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[130]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&2&&(s.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Ma(t){let e,i;return e=new Cu({props:{thumbUrl:t[2],startTime:t[4]?.startTime}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.thumbUrl=n[2]),o[0]&16&&(s.startTime=n[4]?.startTime),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Ba(t){let e,i;return e=new Pu({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Na(t){let e,i,n;return i=new T1({props:{adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11]}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","ads-container v-1jy89ut"),M(e,"hidden",t[34]!==Re.Ads)},m(o,s){T(o,e,s),z(i,e,null),n=!0},p(o,s){const l={};s[0]&256&&(l.adsSlotId=o[8]),s[0]&512&&(l.adsParams=o[9]),s[0]&1024&&(l.adsPreviewParam=o[10]),s[0]&2048&&(l.duration=o[11]),i.$set(l),(!n||s[1]&8)&&M(e,"hidden",o[34]!==Re.Ads)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function Ra(t){let e,i;return e=new ih({props:{playNextVideo:t[22]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&4194304&&(s.playNextVideo=n[22]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Da(t){let e,i;return e=new _u({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Oa(t){let e,i,n;return i=new _1({props:{ariaLabel:K("video360")}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","spherical-video-icon v-1jy89ut")},m(o,s){T(o,e,s),z(i,e,null),n=!0},p:W,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),H(i)}}}function za(t){let e,i;return e=new ku({props:{thumbUrl:t[2],chromecastDeviceName:t[51]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.thumbUrl=n[2]),o[1]&1048576&&(s.chromecastDeviceName=n[51]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Ha(t){let e,i;return e=new vu({props:{shifted:t[30],captions:t[53],position:t[44],playerSize:t[31],isMobile:!0}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o[0]&1073741824&&(s.shifted=n[30]),o[1]&4194304&&(s.captions=n[53]),o[1]&8192&&(s.position=n[44]),o[1]&1&&(s.playerSize=n[31]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Fa(t){let e,i,n,o,s;return i=new wu({}),{c(){e=I("div"),U(i.$$.fragment)},m(l,r){T(l,e,r),z(i,e,null),n=!0,o||(s=he(e,"click",ot(t[100])),o=!0)},p:W,i(l){n||(d(i.$$.fragment,l),n=!0)},o(l){g(i.$$.fragment,l),n=!1},d(l){l&&P(e),H(i),o=!1,s()}}}function Ua(t){let e,i,n;function o(l){t[131](l)}let s={bottomHidden:t[34]===Re.Thumb||t[34]===Re.WaitingLive||t[34]===Re.WaitingRecord||t[34]===Re.Ads,showControls:t[30],bottomNoSmooth:t[45],isAds:t[34]===Re.Ads,canRewindLive:t[6]&&t[54]!==0,logoClickable:t[12],logoHidden:t[13],videoLogoUrl:t[3],showNextPrevButtons:t[14],nextButtonActive:t[15],prevButtonActive:t[16],isOneVideoPlaylist:t[19],supportLink:t[20],customFullscreenSupported:t[39],playNextVideo:t[22],playPrevVideo:t[23],repeatPlaylist:t[24],toggleFullscreen:t[97],seekToInteractive:t[25],toggleGraph:t[26],playPrevChapter:t[27],onDisabledPlayPrevChapterClick:t[103],onDisabledSeekToInteractiveClick:t[104]};return t[37]!==void 0&&(s.controlsElementRef=t[37]),e=new gu({props:s}),we.push(()=>Ue(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[1]&8&&(a.bottomHidden=l[34]===Re.Thumb||l[34]===Re.WaitingLive||l[34]===Re.WaitingRecord||l[34]===Re.Ads),r[0]&1073741824&&(a.showControls=l[30]),r[1]&16384&&(a.bottomNoSmooth=l[45]),r[1]&8&&(a.isAds=l[34]===Re.Ads),r[0]&64|r[1]&8388608&&(a.canRewindLive=l[6]&&l[54]!==0),r[0]&4096&&(a.logoClickable=l[12]),r[0]&8192&&(a.logoHidden=l[13]),r[0]&8&&(a.videoLogoUrl=l[3]),r[0]&16384&&(a.showNextPrevButtons=l[14]),r[0]&32768&&(a.nextButtonActive=l[15]),r[0]&65536&&(a.prevButtonActive=l[16]),r[0]&524288&&(a.isOneVideoPlaylist=l[19]),r[0]&1048576&&(a.supportLink=l[20]),r[1]&256&&(a.customFullscreenSupported=l[39]),r[0]&4194304&&(a.playNextVideo=l[22]),r[0]&8388608&&(a.playPrevVideo=l[23]),r[0]&16777216&&(a.repeatPlaylist=l[24]),r[0]&33554432&&(a.seekToInteractive=l[25]),r[0]&67108864&&(a.toggleGraph=l[26]),r[0]&134217728&&(a.playPrevChapter=l[27]),!i&&r[1]&64&&(i=!0,a.controlsElementRef=l[37],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function qa(t){let e,i;return e=new z1({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Za(t){let e,i;return e=new B1({}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function Wa(t){let e,i,n=t[6]&&t[78]&&!t[47].has(st.TIMELINE),o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y;e=new yu({props:{hidden:t[34]!==Re.Thumb||t[33]||t[89]&&t[5],thumbUrl:t[2],startVideo:t[28]}});let E=n&&La(t),ie=t[34]===Re.WaitingLive&&Ma(t),V=t[34]===Re.WaitingRecord&&Ba(),F=t[7]&&t[21]&&Na(t),oe=t[41]&&t[17]&&t[18]&&Ra(t),x=t[49]&&Da(),C=t[50]&&Oa(),$=t[35]&&za(t),R=t[52].value!=="off"&&Ha(t),se=t[33]&&Fa(t),j=t[21]&&Ua(t);k=new A1({props:{isLive:t[55],isHidden:!t[40],isPlaying:t[56],position:t[44],duration:t[43]}});let N=t[38]&&qa(),Q=t[57]&&Za();return{c(){U(e.$$.fragment),i=D(),E&&E.c(),o=D(),ie&&ie.c(),s=D(),V&&V.c(),l=D(),F&&F.c(),r=D(),oe&&oe.c(),a=D(),x&&x.c(),c=D(),C&&C.c(),f=D(),$&&$.c(),m=D(),R&&R.c(),h=D(),se&&se.c(),_=D(),j&&j.c(),b=D(),U(k.$$.fragment),v=D(),N&&N.c(),S=D(),Q&&Q.c(),w=at()},m(A,ne){z(e,A,ne),T(A,i,ne),E&&E.m(A,ne),T(A,o,ne),ie&&ie.m(A,ne),T(A,s,ne),V&&V.m(A,ne),T(A,l,ne),F&&F.m(A,ne),T(A,r,ne),oe&&oe.m(A,ne),T(A,a,ne),x&&x.m(A,ne),T(A,c,ne),C&&C.m(A,ne),T(A,f,ne),$&&$.m(A,ne),T(A,m,ne),R&&R.m(A,ne),T(A,h,ne),se&&se.m(A,ne),T(A,_,ne),j&&j.m(A,ne),T(A,b,ne),z(k,A,ne),T(A,v,ne),N&&N.m(A,ne),T(A,S,ne),Q&&Q.m(A,ne),T(A,w,ne),y=!0},p(A,ne){const Ie={};ne[0]&32|ne[1]&12&&(Ie.hidden=A[34]!==Re.Thumb||A[33]||A[89]&&A[5]),ne[0]&4&&(Ie.thumbUrl=A[2]),ne[0]&268435456&&(Ie.startVideo=A[28]),e.$set(Ie),ne[0]&64|ne[1]&65536&&(n=A[6]&&A[78]&&!A[47].has(st.TIMELINE)),n?E?(E.p(A,ne),ne[0]&64|ne[1]&65536&&d(E,1)):(E=La(A),E.c(),d(E,1),E.m(o.parentNode,o)):E&&(fe(),g(E,1,1,()=>{E=null}),de()),A[34]===Re.WaitingLive?ie?(ie.p(A,ne),ne[1]&8&&d(ie,1)):(ie=Ma(A),ie.c(),d(ie,1),ie.m(s.parentNode,s)):ie&&(fe(),g(ie,1,1,()=>{ie=null}),de()),A[34]===Re.WaitingRecord?V?ne[1]&8&&d(V,1):(V=Ba(),V.c(),d(V,1),V.m(l.parentNode,l)):V&&(fe(),g(V,1,1,()=>{V=null}),de()),A[7]&&A[21]?F?(F.p(A,ne),ne[0]&2097280&&d(F,1)):(F=Na(A),F.c(),d(F,1),F.m(r.parentNode,r)):F&&(fe(),g(F,1,1,()=>{F=null}),de()),A[41]&&A[17]&&A[18]?oe?(oe.p(A,ne),ne[0]&393216|ne[1]&1024&&d(oe,1)):(oe=Ra(A),oe.c(),d(oe,1),oe.m(a.parentNode,a)):oe&&(fe(),g(oe,1,1,()=>{oe=null}),de()),A[49]?x?ne[1]&262144&&d(x,1):(x=Da(),x.c(),d(x,1),x.m(c.parentNode,c)):x&&(fe(),g(x,1,1,()=>{x=null}),de()),A[50]?C?(C.p(A,ne),ne[1]&524288&&d(C,1)):(C=Oa(),C.c(),d(C,1),C.m(f.parentNode,f)):C&&(fe(),g(C,1,1,()=>{C=null}),de()),A[35]?$?($.p(A,ne),ne[1]&16&&d($,1)):($=za(A),$.c(),d($,1),$.m(m.parentNode,m)):$&&(fe(),g($,1,1,()=>{$=null}),de()),A[52].value!=="off"?R?(R.p(A,ne),ne[1]&2097152&&d(R,1)):(R=Ha(A),R.c(),d(R,1),R.m(h.parentNode,h)):R&&(fe(),g(R,1,1,()=>{R=null}),de()),A[33]?se?(se.p(A,ne),ne[1]&4&&d(se,1)):(se=Fa(A),se.c(),d(se,1),se.m(_.parentNode,_)):se&&(fe(),g(se,1,1,()=>{se=null}),de()),A[21]?j?(j.p(A,ne),ne[0]&2097152&&d(j,1)):(j=Ua(A),j.c(),d(j,1),j.m(b.parentNode,b)):j&&(fe(),g(j,1,1,()=>{j=null}),de());const Ne={};ne[1]&16777216&&(Ne.isLive=A[55]),ne[1]&512&&(Ne.isHidden=!A[40]),ne[1]&33554432&&(Ne.isPlaying=A[56]),ne[1]&8192&&(Ne.position=A[44]),ne[1]&4096&&(Ne.duration=A[43]),k.$set(Ne),A[38]?N?ne[1]&128&&d(N,1):(N=qa(),N.c(),d(N,1),N.m(S.parentNode,S)):N&&(fe(),g(N,1,1,()=>{N=null}),de()),A[57]?Q?ne[1]&67108864&&d(Q,1):(Q=Za(),Q.c(),d(Q,1),Q.m(w.parentNode,w)):Q&&(fe(),g(Q,1,1,()=>{Q=null}),de())},i(A){y||(d(e.$$.fragment,A),d(E),d(ie),d(V),d(F),d(oe),d(x),d(C),d($),d(R),d(se),d(j),d(k.$$.fragment,A),d(N),d(Q),y=!0)},o(A){g(e.$$.fragment,A),g(E),g(ie),g(V),g(F),g(oe),g(x),g(C),g($),g(R),g(se),g(j),g(k.$$.fragment,A),g(N),g(Q),y=!1},d(A){A&&(P(i),P(o),P(s),P(l),P(r),P(a),P(c),P(f),P(m),P(h),P(_),P(b),P(v),P(S),P(w)),H(e,A),E&&E.d(A),ie&&ie.d(A),V&&V.d(A),F&&F.d(A),oe&&oe.d(A),x&&x.d(A),C&&C.d(A),$&&$.d(A),R&&R.d(A),se&&se.d(A),j&&j.d(A),H(k,A),N&&N.d(A),Q&&Q.d(A)}}}function lh(t){let e,i,n,o,s,l=t[46],r,a,c,f,m,h=Wa(t);return{c(){e=I("div"),i=I("div"),n=I("div"),s=D(),h.c(),r=D(),a=I("div"),u(n,"class","video-container v-1jy89ut"),u(n,"style",o=`transform: rotate(${t[32]}deg) scale(${t[42]})`),M(n,"fast-rotate",!t[1].isSmoothVideoRotate),u(i,"class","video-wrapper v-1jy89ut"),M(i,"hidden",t[34]!==Re.Video),u(a,"class","overlay-container"),u(e,"class","player-wrapper v-1jy89ut"),u(e,"role","region"),u(e,"aria-label",K("aria_label_video_player")),u(e,"tabindex","-1")},m(_,b){T(_,e,b),p(e,i),p(i,n),t[128](n),p(e,s),h.m(e,null),p(e,r),p(e,a),t[132](a),t[133](e),c=!0,f||(m=[he(nh,"blur",t[98]),he(i,"click",Wt(t[99])),he(e,"click",t[101],!0),he(e,"focusin",t[102],!0)],f=!0)},p(_,b){(!c||b[1]&2050&&o!==(o=`transform: rotate(${_[32]}deg) scale(${_[42]})`))&&u(n,"style",o),(!c||b[0]&2)&&M(n,"fast-rotate",!_[1].isSmoothVideoRotate),(!c||b[1]&8)&&M(i,"hidden",_[34]!==Re.Video),b[1]&32768&&be(l,l=_[46])?(fe(),g(h,1,1,W),de(),h=Wa(_),h.c(),d(h,1),h.m(e,r)):h.p(_,b)},i(_){c||(d(h),c=!0)},o(_){g(h),c=!1},d(_){_&&P(e),t[128](null),h.d(_),t[132](null),t[133](null),f=!1,nt(m)}}}function sh(t,e,i){let n,o,s,l,r,a,c,f,m,h,_,b,k,v,S,w,y,E,ie,V,F,oe,x,C,$,R,se,j,N,Q,A,ne,Ie,Ne,Be,ze,{store:ce}=e,{uiConfig:ke}=e,{thumbUrl:G}=e,{videoLogoUrl:J}=e,{videoContainer:ye}=e,{interactiveContainer:re}=e,{live:We}=e,{autoplay:Ve}=e,{canRewindLive:Ee}=e,{showAds:ue}=e,{adsSlotId:Ce=void 0}=e,{adsParams:ge=void 0}=e,{adsPreviewParam:le=void 0}=e,{duration:qe=void 0}=e,{logoClickable:pe}=e,{logoHidden:Pe}=e,{showNextPrevButtons:Te=!1}=e,{nextButtonActive:je=!1}=e,{prevButtonActive:tt=!1}=e,{endScreenVideoTitle:Xe=void 0}=e,{endScreenVideoThumb:Qe=void 0}=e,{isOneVideoPlaylist:it=!1}=e,{supportLink:Et}=e,{outerContainerRef:ut=void 0}=e,{showMiniTimer:$t=!1}=e,{fullScreenTarget:_t=void 0}=e,{playerStarted:Oe=!1}=e,{playNextVideo:me=te.noop}=e,{playPrevVideo:bt=te.noop}=e,{repeatPlaylist:ct=te.noop}=e,{seekToInteractive:Dt}=e,{toggleGraph:rt}=e,{playPrevChapter:wt}=e,{firstStart:ei}=e,{seekTime:Kt}=e;const ti=ce.getLogger().createComponentLog("Root component"),Ui=ce.interfaceLanguage$;O(t,Ui,X=>i(46,$=X));const ii=ce.state.playbackState$;O(t,ii,X=>i(125,oe=X));const Ci=ce.ads.playbackState;O(t,Ci,X=>i(126,x=X));const Yi=ce.state.positionWithScrubbing$;O(t,Yi,X=>i(44,l=X));const ni=ce.state.duration$;O(t,ni,X=>i(43,s=X));const oi=ce.playerPhase;O(t,oi,X=>i(34,E=X));const Pi=ce.ui.isFullscreen;O(t,Pi,X=>i(139,a=X));const Vt=ce.ui.controlsVisible;O(t,Vt,X=>i(30,o=X));const li=ce.ui.interactiveHideMobileControls;O(t,li,X=>i(117,h=X));const si=ce.ui.settingsMenuVisible;O(t,si,X=>i(116,n=X));const jt=ce.ui.scrubbingInProgress;O(t,jt,X=>i(118,b=X));const ri=ce.ui.debugPanelVisible;O(t,ri,X=>i(57,ze=X));const ai=ce.state.isLoaderVisible;O(t,ai,X=>i(127,C=X));const ui=ce.state.isEnded$;O(t,ui,X=>i(120,S=X));const Si=ce.state.chromecastConnected$;O(t,Si,X=>i(35,ie=X));const Ti=ce.state.chromecastDeviceName$;O(t,Ti,X=>i(51,Q=X));const Ii=ce.ads.postrollPassed;O(t,Ii,X=>i(121,w=X));const yt=ce.ui.mobileUnmuteButtonExpanded,ci=ce.ui.mobileUnmuteButtonVisible,Gt=ce.state.isLive$;O(t,Gt,X=>i(55,Ne=X));const fi=ce.state.isPlaying$;O(t,fi,X=>i(56,Be=X));const Lt=ce.state.isActiveLive$;O(t,Lt,X=>i(48,se=X));const Ai=ce.state.isRewindableLive$,vt=ce.state.crashed$;O(t,vt,X=>i(33,v=X));const Ct=ce.webApi.pictureInPictureApi,Ot=ce.state.videoSize$;O(t,Ot,X=>i(140,f=X));const Pt=ce.state.currentSubtitle$;O(t,Pt,X=>i(52,A=X));const Ei=ce.state.currentSubtitleCaptions$;O(t,Ei,X=>i(53,ne=X));const Mt=ce.state.duration$;O(t,Mt,X=>i(54,Ie=X));const Yt=ce.state.graphIsOpened$;O(t,Yt,X=>i(124,F=X));const Qt=ce.ui.playerSize;O(t,Qt,X=>i(31,c=X));const di=ce.ui.is3DVideo;O(t,di,X=>i(49,j=X));const St=ce.ui.icon3DVideoVisible;O(t,St,X=>i(50,N=X));const qi=ce.ui.rotateAlpha;O(t,qi,X=>i(32,_=X));const Li=ce.state.isInteractive,Qi=ce.state.isInteractiveTime$;O(t,Qi,X=>i(119,k=X));const Xt=ce.state.isInteractiveExpectation$;O(t,Xt,X=>i(123,V=X));const gt=ce.state.hasInteractiveBranches,zt=ce.ui.controls.disabledControls$;O(t,zt,X=>i(47,R=X));const Zi=ce.ui.touched;O(t,Zi,X=>i(122,y=X));const Wi=ce.ui.clientInfo$;O(t,Wi,X=>i(138,r=X));const Ki=ce.ui.overlayContainer$,Jt=ce.actions.internal.closeSettingsMenu,zi=ce.callbacks?.onDisabledPlayPrevChapterClick,mi=ce.callbacks?.onDisabledSeekToInteractiveClick;let pi,Vi,Mi,Bt,Hi,hi,gi;const Bi=Le(!1);O(t,Bi,X=>i(45,m=X));let bi,Ht=!1,_i,He=!1,vi,Nt=!0,Me,en,ji=!1,tn;Ct?.setContext(xa());const Fi=X=>{clearTimeout(Bt),X&&(ci.set(!0),yt.set(!0),Bt=window.setTimeout(()=>{yt.set(!1)},ke.controls.collapseMobileUnmute),Li||Ft(ke.controls.hideTimeoutMobile))};ce.setUiCallbacks({onStarted:Fi});const nn=()=>{window.clearTimeout(Mi),i(111,Ht=!1),h&&li.set(!1)},Ft=X=>{nn(),i(111,Ht=!0),Mi=window.setTimeout(()=>i(111,Ht=!1),X);const dt=X-100;bi=window.setTimeout(()=>{m&&Bi.set(!1)},dt>0?dt:X)},Gi=di.subscribe(X=>{St.set(X),X&&(window.clearTimeout(Hi),Hi=window.setTimeout(()=>St.set(!1),ke.controls.hide360IconTimeout))}),on=async()=>{const X=wo();if(X){Ft(ke.controls.hideTimeoutFullscreen);try{await Ct?.remove()}catch(dt){ti({message:String(dt)})}try{const dt=f?.width&&f?.height?f:c;await tf(dt)}catch(dt){ti({message:String(dt)})}}Pi.set(X),ce.getAdmanWrapper().setFullscreen(X),a?ce.callbacks?.onFullscreenEnter?.():ce.callbacks?.onFullscreenExit?.()},Ni=X=>{const dt=X;Qt.set({width:dt.target.width,height:dt.target.height})};sn(()=>(P1(on),Ko(Ct)&&(Ct?.assignPlayerContainer(pi),Ct?.registryExternalEventHandlers({resize:Ni})),i(39,Nt=!Jp(r)),re&&ye.parentElement?.insertBefore(re,ye.nextSibling),()=>{window.clearTimeout(Mi),window.clearTimeout(bi),window.clearTimeout(Bt),window.clearTimeout(Hi),Gi(),Ct?.dispose(),S1(on)}));const Tt=X=>{let dt=l+(X==="forward"?1:-1)*ke.controls.seekStepMobile/1e3;dt<0?dt=0:dt>s&&(dt=s-1),i(113,He=!0),Kt(dt)},Ri=async()=>{if(wo())await C1(document),ti({message:"exit fullscreen"});else{ti({message:"request fullscreen"});const X=te.isIOS()||!ut?pi:ut,dt=X.getRootNode(),yn=dt instanceof ShadowRoot?dt.host:dt,Cn=_t instanceof HTMLElement&&_t.contains(yn),pn=ke.allowChangingFullscreenTarget&&_t&&Cn?_t:X;await y1(pn)}},ee=()=>{Jt()},lt=()=>{if(n){ee();return}if(!Oe){ei(),Ft(ke.controls.hideTimeoutCursor);return}i(113,He=!1),o?nn():Ft(ke.controls.hideTimeoutMobile)},ki=()=>{if(n){ee();return}},kt=()=>{Zi.set(!0)},Xi=()=>{Li||(Bi.set(!0),Ft(ke.controls.hideTimeoutCursor))},ln=X=>{zi&&(zi(X),Ft(ke.controls.hideTimeoutMobile))},rn=X=>{mi&&(mi(X),Ft(ke.controls.hideTimeoutMobile))};function dn(X){we[X?"unshift":"push"](()=>{ye=X,i(0,ye)})}const un=()=>Tt("backward"),Ji=()=>Tt("forward");function mn(X){Vi=X,i(37,Vi)}function cn(X){we[X?"unshift":"push"](()=>{gi=X,i(29,gi)})}function wn(X){we[X?"unshift":"push"](()=>{pi=X,i(36,pi)})}return t.$$set=X=>{"store"in X&&i(105,ce=X.store),"uiConfig"in X&&i(1,ke=X.uiConfig),"thumbUrl"in X&&i(2,G=X.thumbUrl),"videoLogoUrl"in X&&i(3,J=X.videoLogoUrl),"videoContainer"in X&&i(0,ye=X.videoContainer),"interactiveContainer"in X&&i(106,re=X.interactiveContainer),"live"in X&&i(4,We=X.live),"autoplay"in X&&i(5,Ve=X.autoplay),"canRewindLive"in X&&i(6,Ee=X.canRewindLive),"showAds"in X&&i(7,ue=X.showAds),"adsSlotId"in X&&i(8,Ce=X.adsSlotId),"adsParams"in X&&i(9,ge=X.adsParams),"adsPreviewParam"in X&&i(10,le=X.adsPreviewParam),"duration"in X&&i(11,qe=X.duration),"logoClickable"in X&&i(12,pe=X.logoClickable),"logoHidden"in X&&i(13,Pe=X.logoHidden),"showNextPrevButtons"in X&&i(14,Te=X.showNextPrevButtons),"nextButtonActive"in X&&i(15,je=X.nextButtonActive),"prevButtonActive"in X&&i(16,tt=X.prevButtonActive),"endScreenVideoTitle"in X&&i(17,Xe=X.endScreenVideoTitle),"endScreenVideoThumb"in X&&i(18,Qe=X.endScreenVideoThumb),"isOneVideoPlaylist"in X&&i(19,it=X.isOneVideoPlaylist),"supportLink"in X&&i(20,Et=X.supportLink),"outerContainerRef"in X&&i(107,ut=X.outerContainerRef),"showMiniTimer"in X&&i(108,$t=X.showMiniTimer),"fullScreenTarget"in X&&i(109,_t=X.fullScreenTarget),"playerStarted"in X&&i(21,Oe=X.playerStarted),"playNextVideo"in X&&i(22,me=X.playNextVideo),"playPrevVideo"in X&&i(23,bt=X.playPrevVideo),"repeatPlaylist"in X&&i(24,ct=X.repeatPlaylist),"seekToInteractive"in X&&i(25,Dt=X.seekToInteractive),"toggleGraph"in X&&i(26,rt=X.toggleGraph),"playPrevChapter"in X&&i(27,wt=X.playPrevChapter),"firstStart"in X&&i(28,ei=X.firstStart),"seekTime"in X&&i(110,Kt=X.seekTime)},t.$$.update=()=>{t.$$.dirty[1]&12|t.$$.dirty[4]&12&&i(38,hi=(E===Re.Video&&C||E===Re.Ads&&x===Zt.INACTIVE)&&!v),t.$$.dirty[0]&536870912&&Ki.set(gi),t.$$.dirty[4]&2&&i(112,_i=oe!==$e.PlaybackState.PLAYING),t.$$.dirty[3]&1225523200|t.$$.dirty[4]&1&&i(114,vi=F||h||!Ht&&(S&&!!gt||_i&&V)),t.$$.dirty[1]&28|t.$$.dirty[3]&45875200&&Vt.set((_i||n||b||ie||Ht&&!He)&&!vi&&E===Re.Video&&!v),t.$$.dirty[0]&1073741826|t.$$.dirty[1]&12|t.$$.dirty[3]&536903680&&i(40,Me=ke.features.thumbTimer&&$t&&E===Re.Video&&!o&&!v&&!Li&&(ke.hideThumbTimerAfterTouch&&!y||!ke.hideThumbTimerAfterTouch)),t.$$.dirty[0]&128|t.$$.dirty[1]&4|t.$$.dirty[3]&402653184&&i(41,en=(ue&&w||!ue)&&S&&!v),t.$$.dirty[0]&2|t.$$.dirty[3]&104857600&&(!b&&ji&&!k&&Ft(ke.controls.hideTimeoutMobile),i(115,ji=b)),t.$$.dirty[0]&1|t.$$.dirty[1]&3&&i(42,tn=ye&&_%180?c.height/c.width:1)},[ye,ke,G,J,We,Ve,Ee,ue,Ce,ge,le,qe,pe,Pe,Te,je,tt,Xe,Qe,it,Et,Oe,me,bt,ct,Dt,rt,wt,ei,gi,o,c,_,v,E,ie,pi,Vi,hi,Nt,Me,en,tn,s,l,m,$,R,se,j,N,Q,A,ne,Ie,Ne,Be,ze,Ui,ii,Ci,Yi,ni,oi,Pi,Vt,li,si,jt,ri,ai,ui,Si,Ti,Ii,Gt,fi,Lt,Ai,vt,Ot,Pt,Ei,Mt,Yt,Qt,di,St,qi,Li,Qi,Xt,zt,Zi,Wi,Bi,Tt,Ri,ee,lt,ki,kt,Xi,ln,rn,ce,re,ut,$t,_t,Kt,Ht,_i,He,vi,ji,n,h,b,k,S,w,y,V,F,oe,x,C,dn,un,Ji,mn,cn,wn]}class rh extends ve{constructor(e){super(),_e(this,e,sh,lh,be,{store:105,uiConfig:1,thumbUrl:2,videoLogoUrl:3,videoContainer:0,interactiveContainer:106,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:107,showMiniTimer:108,fullScreenTarget:109,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:110},oh,[-1,-1,-1,-1,-1,-1])}}function ah(t){Ke(t,"v-cghoty",`.root.v-cghoty{--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(
33
33
  180deg,
34
34
  rgba(0, 0, 0, 0.00) 0%,
35
35
  rgba(0, 0, 0, 0.01) 6.67%,
@@ -47,5 +47,5 @@
47
47
  rgba(0, 0, 0, 0.96) 86.67%,
48
48
  rgba(0, 0, 0, 0.99) 93.33%,
49
49
  #000 100%
50
- );--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;--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)}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:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function mh(t){let e,i,n;function o(l){t[56](l)}let s={store:t[0],uiConfig:t[35],title:t[1],thumbUrl:t[2],videoLogoUrl:t[3],interactiveContainer:t[4],live:t[5],autoplay:t[6],canRewindLive:t[7],showAds:t[8],adsSlotId:t[9],adsParams:t[10],adsPreviewParam:t[11],duration:t[12],logoClickable:t[13],logoHidden:t[14],showNextPrevButtons:t[16],nextButtonActive:t[17],prevButtonActive:t[18],endScreenVideoTitle:t[19],endScreenVideoThumb:t[20],isOneVideoPlaylist:t[21],supportLink:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[36]};return t[33]!==void 0&&(s.videoContainer=t[33]),e=new eh({props:s}),ke.push(()=>je(e,"videoContainer",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&1&&(a.store=l[0]),r[0]&2&&(a.title=l[1]),r[0]&4&&(a.thumbUrl=l[2]),r[0]&8&&(a.videoLogoUrl=l[3]),r[0]&16&&(a.interactiveContainer=l[4]),r[0]&32&&(a.live=l[5]),r[0]&64&&(a.autoplay=l[6]),r[0]&128&&(a.canRewindLive=l[7]),r[0]&256&&(a.showAds=l[8]),r[0]&512&&(a.adsSlotId=l[9]),r[0]&1024&&(a.adsParams=l[10]),r[0]&2048&&(a.adsPreviewParam=l[11]),r[0]&4096&&(a.duration=l[12]),r[0]&8192&&(a.logoClickable=l[13]),r[0]&16384&&(a.logoHidden=l[14]),r[0]&65536&&(a.showNextPrevButtons=l[16]),r[0]&131072&&(a.nextButtonActive=l[17]),r[0]&262144&&(a.prevButtonActive=l[18]),r[0]&524288&&(a.endScreenVideoTitle=l[19]),r[0]&1048576&&(a.endScreenVideoThumb=l[20]),r[0]&2097152&&(a.isOneVideoPlaylist=l[21]),r[0]&4194304&&(a.supportLink=l[22]),r[0]&8388608&&(a.outerContainerRef=l[23]),r[0]&16777216&&(a.fullScreenTarget=l[24]),r[0]&33554432&&(a.showMiniTimer=l[25]),r[1]&8&&(a.playerStarted=l[34]),r[0]&67108864&&(a.playNextVideo=l[26]),r[0]&134217728&&(a.playPrevVideo=l[27]),r[0]&268435456&&(a.repeatPlaylist=l[28]),r[0]&536870912&&(a.seekToInteractive=l[29]),r[0]&1073741824&&(a.toggleGraph=l[30]),r[1]&1&&(a.playPrevChapter=l[31]),!i&&r[1]&4&&(i=!0,a.videoContainer=l[33],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function ph(t){let e,i,n;function o(l){t[55](l)}let s={store:t[0],uiConfig:t[35],thumbUrl:t[2],videoLogoUrl:t[3],interactiveContainer:t[4],live:t[5],autoplay:t[6],canRewindLive:t[7],showAds:t[8],adsSlotId:t[9],adsParams:t[10],adsPreviewParam:t[11],duration:t[12],logoClickable:t[13],logoHidden:t[14],showNextPrevButtons:t[16],nextButtonActive:t[17],prevButtonActive:t[18],endScreenVideoTitle:t[19],endScreenVideoThumb:t[20],isOneVideoPlaylist:t[21],supportLink:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[36],seekTime:t[32]};return t[33]!==void 0&&(s.videoContainer=t[33]),e=new fh({props:s}),ke.push(()=>je(e,"videoContainer",o)),{c(){U(e.$$.fragment)},m(l,r){D(e,l,r),n=!0},p(l,r){const a={};r[0]&1&&(a.store=l[0]),r[0]&4&&(a.thumbUrl=l[2]),r[0]&8&&(a.videoLogoUrl=l[3]),r[0]&16&&(a.interactiveContainer=l[4]),r[0]&32&&(a.live=l[5]),r[0]&64&&(a.autoplay=l[6]),r[0]&128&&(a.canRewindLive=l[7]),r[0]&256&&(a.showAds=l[8]),r[0]&512&&(a.adsSlotId=l[9]),r[0]&1024&&(a.adsParams=l[10]),r[0]&2048&&(a.adsPreviewParam=l[11]),r[0]&4096&&(a.duration=l[12]),r[0]&8192&&(a.logoClickable=l[13]),r[0]&16384&&(a.logoHidden=l[14]),r[0]&65536&&(a.showNextPrevButtons=l[16]),r[0]&131072&&(a.nextButtonActive=l[17]),r[0]&262144&&(a.prevButtonActive=l[18]),r[0]&524288&&(a.endScreenVideoTitle=l[19]),r[0]&1048576&&(a.endScreenVideoThumb=l[20]),r[0]&2097152&&(a.isOneVideoPlaylist=l[21]),r[0]&4194304&&(a.supportLink=l[22]),r[0]&8388608&&(a.outerContainerRef=l[23]),r[0]&16777216&&(a.fullScreenTarget=l[24]),r[0]&33554432&&(a.showMiniTimer=l[25]),r[1]&8&&(a.playerStarted=l[34]),r[0]&67108864&&(a.playNextVideo=l[26]),r[0]&134217728&&(a.playPrevVideo=l[27]),r[0]&268435456&&(a.repeatPlaylist=l[28]),r[0]&536870912&&(a.seekToInteractive=l[29]),r[0]&1073741824&&(a.toggleGraph=l[30]),r[1]&1&&(a.playPrevChapter=l[31]),!i&&r[1]&4&&(i=!0,a.videoContainer=l[33],qe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function hh(t){let e,i,n,o;const s=[ph,mh],l=[];function r(a,c){return a[15]?0:1}return i=r(t),n=l[i]=s[i](t),{c(){e=E("div"),n.c(),u(e,"class","root v-cghoty")},m(a,c){T(a,e,c),l[i].m(e,null),o=!0},p(a,c){let f=i;i=r(a),i===f?l[i].p(a,c):(ce(),g(l[f],1,1,()=>{l[f]=null}),fe(),n=l[i],n?n.p(a,c):(n=l[i]=s[i](a),n.c()),d(n,1),n.m(e,null))},i(a){o||(d(n),o=!0)},o(a){g(n),o=!1},d(a){a&&P(e),l[i].d()}}}function gh(t,e,i){let{sources:n}=e,{store:o}=e,{microStoresRoot:s}=e,{uiConfig:l}=e,{title:r}=e,{thumbUrl:a}=e,{videoLogoUrl:c}=e,{interactiveContainer:f}=e,{subtitles:p}=e,{live:h}=e,{preload:_}=e,{autoplay:b}=e,{volume:k=void 0}=e,{muted:v=void 0}=e,{fromTime:S}=e,{canRewindLive:w}=e,{showAds:y}=e,{adsSlotId:A=void 0}=e,{adsParams:oe=void 0}=e,{adsPreviewParam:M=void 0}=e,{duration:Z=void 0}=e,{logoClickable:ne}=e,{logoHidden:L}=e,{isMobile:V}=e,{showNextPrevButtons:x=!1}=e,{nextButtonActive:Y=!1}=e,{prevButtonActive:le=!1}=e,{endScreenVideoTitle:K=void 0}=e,{endScreenVideoThumb:C=void 0}=e,{isOneVideoPlaylist:G=!1}=e,{supportLink:z}=e,{outerContainerRef:ee=void 0}=e,{fullScreenTarget:Ee=void 0}=e,{failoverHosts:Re=void 0}=e,{showMiniTimer:Ne=!1}=e,{playNextVideo:ze=ie.noop}=e,{playPrevVideo:ve=ie.noop}=e,{repeatPlaylist:we=ie.noop}=e,{seekToInteractive:Q=ie.noop}=e,{toggleGraph:$=ie.noop}=e,{playPrevChapter:ye=ie.noop}=e;const{subscribers:re,stores:We}=s;Ac(l);const Le=sn(),Ie=o.ui.debugPanelVisible,ue=o.ui.playerSize;let Se,he=null,se=!1;o.getAdmanWrapper().init({switchFromAdsToVideo:o.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:o.actions.internal.switchFromVideoToAds,setMuted:o.actions.external.setMuted},o.ads,{isMobile:o.ui.isMobile,mobileUnmuteButtonVisible:o.ui.mobileUnmuteButtonVisible,vsid:o.vsid}),zc(o,We);const Be=(de=!1)=>{i(34,se=!0),de?o.actions.external.firstStart(y):o.actions.internal.firstStart(y)};function me(de){const bt=n||de;bt&&o.initVideo({container:Se,sources:bt,failoverHosts:Re,subtitles:p});const at=ie.safeStorage.get(hl)==="true";Ie.set(at),S>0&&o.actions.external.seekTime(S);const Qt=V?Le.volumeDefault:k??k1()??Le.volumeDefault,ut=v??jc();if(o.actions.external.setVolume(Qt),o.actions.external.setMuted(ut),o.getAdmanWrapper().setInitialVolume(ut?0:Qt),Le.features.trafficSaving){const ri=Wc();ri&&o.actions.internal.setTrafficSavingEnabled(ri)}const vt=qc(o.videoId);vt&&o.actions.internal.setQuality(vt),o.ui.isAutoplay.set(b),b?Be():_&&Le.features.preload&&o.actions.internal.preload()}const Ce=de=>{if(window.ResizeObserver){let bt,at;he=new ResizeObserver(ie.throttleFn(Qt=>{const ut=Qt[0];if(ut){if(ut.contentBoxSize){const vt=Array.isArray(ut.contentBoxSize)?ut.contentBoxSize[0]:ut.contentBoxSize;bt=vt.inlineSize,at=vt.blockSize}else ut.contentRect&&(bt=ut.contentRect.width,at=ut.contentRect.height);ue.set({width:bt,height:at})}},a1)),he.observe(de)}ue.set({width:de.clientWidth,height:de.clientHeight})};ln(()=>{Ce(Se);const de=re.map(at=>at.init(o,We));if(h?.status==="upcoming"||h?.status==="waiting"){o.actions.internal.setWaitingLive(!0);return}if((h?.status==="finished"||h?.status==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return me(),()=>{he?.disconnect(),de.forEach(at=>at.unsubscribe()),o.destroy()}});function Pe(){se?o.actions.external.play():Be(!0)}function Ge(){o.actions.external.pause()}function it(de){V||o.actions.external.setMuted(de)}function Je(de){V||de>=0&&de<=1&&o.actions.external.setVolume(de)}function Qe(de){o.actions.internal.seekTime(de,mt.SeekAction.UNKNOWN)}function tt(de){o.actions.external.seekEpisodeStartTime(de)}function Et(){o.actions.external.returnFocusToEpisodes()}function ht(de){o.actions.external.setPlaybackRate(de)}function Fe(de){o.actions.external.setAutoQualityLimits(de)}function yt(de){Se=de,i(33,Se)}function Yt(de){Se=de,i(33,Se)}return t.$$set=de=>{"sources"in de&&i(37,n=de.sources),"store"in de&&i(0,o=de.store),"microStoresRoot"in de&&i(38,s=de.microStoresRoot),"uiConfig"in de&&i(39,l=de.uiConfig),"title"in de&&i(1,r=de.title),"thumbUrl"in de&&i(2,a=de.thumbUrl),"videoLogoUrl"in de&&i(3,c=de.videoLogoUrl),"interactiveContainer"in de&&i(4,f=de.interactiveContainer),"subtitles"in de&&i(40,p=de.subtitles),"live"in de&&i(5,h=de.live),"preload"in de&&i(41,_=de.preload),"autoplay"in de&&i(6,b=de.autoplay),"volume"in de&&i(42,k=de.volume),"muted"in de&&i(43,v=de.muted),"fromTime"in de&&i(44,S=de.fromTime),"canRewindLive"in de&&i(7,w=de.canRewindLive),"showAds"in de&&i(8,y=de.showAds),"adsSlotId"in de&&i(9,A=de.adsSlotId),"adsParams"in de&&i(10,oe=de.adsParams),"adsPreviewParam"in de&&i(11,M=de.adsPreviewParam),"duration"in de&&i(12,Z=de.duration),"logoClickable"in de&&i(13,ne=de.logoClickable),"logoHidden"in de&&i(14,L=de.logoHidden),"isMobile"in de&&i(15,V=de.isMobile),"showNextPrevButtons"in de&&i(16,x=de.showNextPrevButtons),"nextButtonActive"in de&&i(17,Y=de.nextButtonActive),"prevButtonActive"in de&&i(18,le=de.prevButtonActive),"endScreenVideoTitle"in de&&i(19,K=de.endScreenVideoTitle),"endScreenVideoThumb"in de&&i(20,C=de.endScreenVideoThumb),"isOneVideoPlaylist"in de&&i(21,G=de.isOneVideoPlaylist),"supportLink"in de&&i(22,z=de.supportLink),"outerContainerRef"in de&&i(23,ee=de.outerContainerRef),"fullScreenTarget"in de&&i(24,Ee=de.fullScreenTarget),"failoverHosts"in de&&i(45,Re=de.failoverHosts),"showMiniTimer"in de&&i(25,Ne=de.showMiniTimer),"playNextVideo"in de&&i(26,ze=de.playNextVideo),"playPrevVideo"in de&&i(27,ve=de.playPrevVideo),"repeatPlaylist"in de&&i(28,we=de.repeatPlaylist),"seekToInteractive"in de&&i(29,Q=de.seekToInteractive),"toggleGraph"in de&&i(30,$=de.toggleGraph),"playPrevChapter"in de&&i(31,ye=de.playPrevChapter)},t.$$.update=()=>{t.$$.dirty[0]&32769&&o.ui.isMobile.set(V)},[o,r,a,c,f,h,b,w,y,A,oe,M,Z,ne,L,V,x,Y,le,K,C,G,z,ee,Ee,Ne,ze,ve,we,Q,$,ye,Qe,Se,se,Le,Be,n,s,l,p,_,k,v,S,Re,me,Pe,Ge,it,Je,tt,Et,ht,Fe,yt,Yt]}class bh extends _e{constructor(e){super(),be(this,e,gh,hh,ge,{sources:37,store:0,microStoresRoot:38,uiConfig:39,title:1,thumbUrl:2,videoLogoUrl:3,interactiveContainer:4,subtitles:40,live:5,preload:41,autoplay:6,volume:42,muted:43,fromTime:44,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:45,showMiniTimer:25,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,initVideo:46,play:47,pause:48,setMuted:49,setVolume:50,seekTime:32,seekEpisodeStartTime:51,returnFocusToEpisodes:52,setPlaybackRate:53,setAutoQualityLimits:54},dh,[-1,-1,-1])}get initVideo(){return this.$$.ctx[46]}get play(){return this.$$.ctx[47]}get pause(){return this.$$.ctx[48]}get setMuted(){return this.$$.ctx[49]}get setVolume(){return this.$$.ctx[50]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[51]}get returnFocusToEpisodes(){return this.$$.ctx[52]}get setPlaybackRate(){return this.$$.ctx[53]}get setAutoQualityLimits(){return this.$$.ctx[54]}}function _h(t){let e,i;return{c(){e=N("svg"),i=N("path"),u(i,"fill",t[0]),u(i,"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 6h19.489zm.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.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z"),u(e,"width","57"),u(e,"height","60"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","stub-icon")},m(n,o){T(n,e,o),m(e,i)},p(n,[o]){o&1&&u(i,"fill",n[0])},i:j,o:j,d(n){n&&P(e)}}}function vh(t,e,i){let{isWhite:n=!1}=e,o;return t.$$set=s=>{"isWhite"in s&&i(1,n=s.isWhite)},t.$$.update=()=>{t.$$.dirty&2&&i(0,o=n?"#fff":"#909499")},[o,n]}class kh extends _e{constructor(e){super(),be(this,e,vh,_h,ge,{isWhite:1})}}function wh(t){Ze(t,"v-1y9fytq",".playerStub.v-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.v-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 xa(t){let e,i;return{c(){e=E("div"),i=De(t[0]),u(e,"class","title v-1y9fytq")},m(n,o){T(n,e,o),m(e,i)},p(n,o){o&1&&$e(i,n[0])},d(n){n&&P(e)}}}function $a(t){let e,i;return e=new kh({props:{isWhite:!!t[1]}}),{c(){U(e.$$.fragment)},m(n,o){D(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isWhite=!!n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function yh(t){let e,i,n,o,s=t[0]&&xa(t),l=(!t[0]||!t[1])&&$a(t);return{c(){e=E("div"),s&&s.c(),i=R(),l&&l.c(),u(e,"class","playerStub v-1y9fytq"),u(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(r,a){T(r,e,a),s&&s.m(e,null),m(e,i),l&&l.m(e,null),o=!0},p(r,[a]){r[0]?s?s.p(r,a):(s=xa(r),s.c(),s.m(e,i)):s&&(s.d(1),s=null),!r[0]||!r[1]?l?(l.p(r,a),a&3&&d(l,1)):(l=$a(r),l.c(),d(l,1),l.m(e,null)):l&&(ce(),g(l,1,1,()=>{l=null}),fe()),(!o||a&2&&n!==(n=r[1]?`background-image: url('${r[1]}')`:""))&&u(e,"style",n)},i(r){o||(d(l),o=!0)},o(r){g(l),o=!1},d(r){r&&P(e),s&&s.d(),l&&l.d()}}}function Ch(t,e,i){let{title:n}=e,{thumbUrl:o}=e;return t.$$set=s=>{"title"in s&&i(0,n=s.title),"thumbUrl"in s&&i(1,o=s.thumbUrl)},[n,o]}class Sh extends _e{constructor(e){super(),be(this,e,Ch,yh,ge,{title:0,thumbUrl:1},wh)}}class Ph{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,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(){const e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(const[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}}function Th(t){let e,i,n,o;return{c(){e=N("svg"),i=N("g"),n=N("path"),o=N("path"),u(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.766 8.766 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.769 5.769 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.766 8.766 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.765 8.765 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4h8.488Z"),u(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.2V33.8Z"),u(i,"fill","#fff"),u(e,"width","57"),u(e,"height","56"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-label","dummy-image"),u(e,"data-testid","pip-dummy-icon")},m(s,l){T(s,e,l),m(e,i),m(i,n),m(i,o)},p:j,i:j,o:j,d(s){s&&P(e)}}}class Eh extends _e{constructor(e){super(),be(this,e,null,Th,ge,{})}}function Ah(t){Ze(t,"v-1pbsod4",".player-pip-dummy.v-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.v-1pbsod4{position:relative}.dummy-image.v-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.v-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.v-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function Ih(t){let e,i,n,o,s,l,r;return n=new Eh({}),{c(){e=E("div"),i=E("div"),U(n.$$.fragment),o=R(),s=E("span"),l=De(t[0]),u(i,"class","dummy-image v-1pbsod4"),B(i,"desktop",!t[1]),u(s,"class","title v-1pbsod4"),u(e,"class","player-pip-dummy v-1pbsod4"),B(e,"is-pip-api",t[2])},m(a,c){T(a,e,c),m(e,i),D(n,i,null),m(e,o),m(e,s),m(s,l),r=!0},p(a,[c]){(!r||c&2)&&B(i,"desktop",!a[1]),(!r||c&1)&&$e(l,a[0])},i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){g(n.$$.fragment,a),r=!1},d(a){a&&P(e),F(n)}}}function Lh(t,e,i){let n,o;const s=pt(),l=!!s.webApi.pictureInPictureApi,r=s.interfaceLanguage$;O(t,r,f=>i(5,n=f));const a=s.ui.isMobile;O(t,a,f=>i(1,o=f));let c;return t.$$.update=()=>{t.$$.dirty&32&&i(0,c=n&&W("pip_dummy_title"))},[c,o,l,r,a,n]}class Vh extends _e{constructor(e){super(),be(this,e,Lh,Ih,ge,{},Ah)}}const Mh=460,Bh=280;class Bu{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new ie.ValueSubject(!1),type:Tn.DocumentPictureInPicture};isSupported(){const e=ie.getCurrentBrowser().browser===ie.CurrentClientBrowser.Yandex,{isEmbed:i}=ie.detectEmbed();return"documentPictureInPicture"in window&&!e&&!i}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Mh,height:Bh,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";const e=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
51
- `),i=document.createElement("style");i.textContent=e;const n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(i),o.append(this.playerDomElement),this.playerDummyElement=new Vh({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!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=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}}function Nh(t){return t instanceof Bu}class Rh{static getLatestSupportedVersion(){const e=new yl,i=new Bu;if(i.isSupported())return i;if(e.isSupported())return e}}function e1(t,e){const i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(const o of i)n[o]=e[o]??t[o]??void 0;return n}const Oh="Inner error. Unexpectedly root annotation container null reference exception",zh="Annotation with such name already exists",Dh="Annotation with such name does not exist";class fl extends Error{constructor(e){super(e),this.name="AnnotationError"}}const Fh="1",Hh=100;class Uh{rootAnnotationsContainer;annotations=new Map;subscriptions=new ie.Subscription;mutationObserver;playerSize;constructor(e){this.rootAnnotationsContainer=e;const i=ie.throttleFn(()=>{for(const n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Hh);this.subscriptions.add(ie.observeElementSize(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){if(!this.rootAnnotationsContainer)throw new fl(Oh);if(this.annotations.has(e))throw new fl(zh);i.style.zIndex=i.style.zIndex??Fh,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){const i=this.annotations.get(e);if(!i)throw new fl(Dh);return i}remove(e){const i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(const e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,n){const o=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,r=e.offsetHeight;return o<0||s<0||s+l>i||o+r>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}}class Bl{stateName;state$;subscription;init(e,i){return ie.assertNonNullable(e),ie.assertNonNullable(i),this.subscription=new ie.Subscription,this.subscription}}class qh extends Bl{stateName="fakeIsPlaying$";state$={...Me(null),toggle:()=>this.state$.update(e=>!e)};init(e,i){const n=super.init(e,i),{isInteractiveExpectation$:o}=e.state;return n.add(o.subscribe(s=>{this.state$.set(s?!0:null)})),n}}class jh extends Bl{stateName="interactiveControlsOpacity$";state$={...Me(null),toggle:()=>this.state$.update(e=>!e)};init(e,i){const n=super.init(e,i),{fakeIsPlaying$:o}=i,{isInteractiveExpectation$:s,isPlaying$:l}=e.state,{controlsVisible:r,isMobile:a}=e.ui,c=et(a),f=()=>c&&et(r);return n.add(r.subscribe(p=>{if(!c)return;const h=et(o);et(l)?this.state$.set(p):h!==null&&this.state$.set(!h||p)})),n.add(l.subscribe(p=>{this.state$.set(!p||f())})),n.add(o.subscribe(p=>{if(p===null)return;const h=et(s);if(f()){this.state$.set(!0);return}h&&this.state$.set(!p)})),n}}class Zh extends Bl{stateName="seekToInteractiveDisabledTooltip$";state$=Me("tooltip_chapter_without_interactive");init(e,i){const n=super.init(e,i);return n.add(e.state.interactiveEpisodes$.subscribe(o=>{o.length&&(o.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}}const Wh=()=>[qh,jh,Zh].reduce(({subscribers:t,stores:e},i)=>{const n=new i;return{subscribers:[...t,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}}),Kh={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ie.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:ie.isMobile(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}};class Gh extends HTMLElement{svelteStubComponent;svelteRootComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;uiConfig;coreConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;annotationsApi=void 0;createPlayerTimeout;prevIsid=void 0;isInited=!1;constructor(){super(),this.logger=new ie.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ie.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(e=>{console.log("%c player web component ","background:#77dd77;",`${e.component}`,e.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();const e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new Sh({target:this.playerContainer,props:{title:e,thumbUrl:i}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.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%";const e=document.createElement("div");e.style.position="absolute",e.className="shadow-root-container",e.style.width="100%",e.style.height="100%",this._shadowRoot=e.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(e),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(e){return this.store?.ui.controls.disabledControls$?.includes(e)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},n){if(!this.videoConfig)return;const{albumId:o,statPlace:s,statUserSalt:l,statAuthToken:r,statTrackCode:a,refreshStatAuthToken:c,preload:f,autoplay:p,volume:h,muted:_,fromTime:b,canRewindLive:k,supportLink:v,showAds:S,adsSlotId:w,adsParams:y={},adsPreviewParam:A,interfaceLanguage:oe,logoClickable:M,logoHidden:Z,isMobile:ne,isAudioDisabled:L,isLiveCatchUpMode:V,fullScreenTarget:x,failoverHosts:Y,canDownload:le,callbacks:K,interactiveData:C,showThumbTimer:G,additionalButtons:z=[],repeat:ee}=e1(this.videoConfig,i),{sources:Ee,title:Re,thumbUrl:Ne,videoLogoUrl:ze,unitedVideoId:ve,isClip:we=!1,duration:Q,adsParams:$={},videoEpisodes:ye,previewThumbsData:re,subtitles:We,live:Le}=e,Ie={...y,...$},ue=this.getNextVideoInfo(),Se={sources:Ee,title:Re,thumbUrl:Ne,subtitles:We,unitedVideoId:ve,isClip:we,live:Le,albumId:o,statPlace:s,autoplay:p,muted:_,volume:h,fromTime:b,canRewindLive:k,showAds:S,adsSlotId:w,adsParams:Ie,adsPreviewParam:A,duration:Q,logoClickable:M,logoHidden:Z,isMobile:ne,repeat:ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ue.nextVideoTitle,endScreenVideoThumb:ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},he={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Se)}`});const se=this.uiConfig.features.statistics&&!!ve,{pid:Be}=this.videoConfig?.interactiveData?.projectInfo||{};se&&new go({movieId:ve,albumId:o,place:s,trackCode:a,autoplay:(p&&!this.interactiveController)??!1,mobile:ne,clip:we,...Be&&!this.isInited&&{projectId:Number(Be)}},{refreshAuthToken:c,userSalt:l,config:this.statistics.config,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}}),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new gl(this.uiConfig.sentry,{version:Wo,env:Oc},{movieId:ve,albumId:o,place:s,autoplay:(p&&!this.interactiveController)??!1,mobile:ne,clip:we}),this.interactiveController&&(this.prevIsid??=go.getInstance()?.oneStat.isid$.getValue()),this.statistics={...this.statistics,...go.getInstance()},this.sentry={...this.sentry,...gl.getInstance()};const Ce=!!C,Pe=[];let Ge="tooltip_interactive_go_back_disabled_first";if(Ce&&this.interactiveController){const Qe=this.interactiveController.state.isInitialChapter$.getValue(),tt=this.interactiveController.getHistoryState();Qe&&Pe.push(rt.REPLAY_BUTTON),this.interactiveController.getIsSeekable().getValue()||Pe.push(rt.SEEK_TO_INTERACTIVE_BUTTON),tt.hasPrevChapter$.getValue()||(Pe.push(rt.PLAY_PREV_CHAPTER_BUTTON),Qe||(tt.isGoBackLimited$.getValue()?Ge="tooltip_interactive_go_back_disabled_limit":Ge="tooltip_interactive_go_back_disabled"))}const it=()=>{this.isInited=!1,this.prevIsid=void 0;const Qe=n?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();K.onReplayInteractiveVideo&&!Qe?K.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=M4({player:n,interfaceLanguage:oe,videoId:ve,isClip:we,isLiveCatchUpMode:V,isAudioDisabled:L,statAuthToken:r,callbacks:K,webApi:he,videoEpisodes:ye,previewThumbsData:re,canDownload:le,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Pe,isInteractive:Ce,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:it,playPrevChapterDisabledTooltip:Ge,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?z:[],looped:ee&&this.videoConfig.videos.length===1});const{stores:Je}=this.microStoresRoot=Wh();this.subscription.add(this.store.state.currentFormat$.subscribe(Qe=>K?.onCurrentFormatChanged?.(Qe))),this.subscription.add(Je.interactiveControlsOpacity$.subscribe(Qe=>{Qe!==null&&this?.interactiveController?.setDisabledControls(Qe)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Qe=>K?.onThroughputEstimationChanged?.(Qe))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Qe=>K?.onTrafficSavingEnabledChanged?.(Qe))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Qe=>K?.onCurrentPlaybackRateChanged?.(Qe))),this.subscription.add(this.store.state.volume$.subscribe(Qe=>K?.onVolumeChange?.(Qe))),this.subscription.add(this.store.state.muted$.subscribe(Qe=>Qe?K?.onMute?.():K?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Qe=>K?.onVideoBitrateChanged?.(Qe))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Qe=>{const tt=this.store?.ui.controls.disabledControls$;tt&&(Qe&&!tt.includes(Ho)&&tt.add(Ho),Qe||tt.remove(Ho))})),this.initMediaSession(),this.interactiveController&&se&&this.initInteractivesStatistics(),this.svelteRootComponent=new bh({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,uiConfig:this.uiConfig,title:Re,thumbUrl:Ne,videoLogoUrl:ze,subtitles:We,live:Le,preload:f,autoplay:p,muted:_,volume:h,fromTime:b,canRewindLive:k,supportLink:v,showAds:S,adsSlotId:w,adsParams:Ie,adsPreviewParam:A,duration:Q,logoClickable:M,logoHidden:Z,isMobile:ne,failoverHosts:Y,fullScreenTarget:x,showMiniTimer:G,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ue.nextVideoTitle,endScreenVideoThumb:ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){if(this.isInited)return;const e=this.store,i=this.videoConfig?.callbacks;i&&this.subscription.add(e.playerPhase.subscribe(o=>i.onPlayerPhaseChanged?.(o))).add(e.state.playbackState$.subscribe(o=>i.onPlaybackStateChanged?.(o))).add(e.state.isLive$.subscribe(o=>i.onIsLiveChanged?.(o))).add(e.state.isActiveLive$.subscribe(o=>i.onIsActiveLiveChanged?.(o))).add(e.state.isAudioAvailable$.subscribe(o=>i.onIsAudioAvailableChanged?.(o))).add(e.state.currentQuality$.subscribe(o=>i.onCurrentQualityChanged?.(o))).add(e.state.availableQualities$.subscribe(o=>i.onAvailableQualitiesChanged?.(o.map(({value:s})=>s).filter(s=>s!==oo.AUTO)))).add(e.ui.isPictureInPictureActive$.subscribe(o=>o?i.onPiPEnter?.():i.onPiPExit?.()));const n=i?.uiInfo;n&&this.subscription.add(e.ui.controlsVisible.subscribe(o=>n.onControlsVisibleChanged?.(o))).add(e.ui.isMobile.subscribe(o=>n.onIsMobileChanged?.(o))).add(e.ui.playerSize.subscribe(o=>n.onPlayerSizeChanged?.(o))).add(e.ui.controls.prevButton.subscribe(o=>n.onPrevButtonChanged?.(o))).add(e.ui.controls.playButton.subscribe(o=>n.onPlayButtonChanged?.(o))).add(e.ui.controls.replayButton.subscribe(o=>n.onReplayButtonChanged?.(o))).add(e.ui.controls.nextButton.subscribe(o=>n.onNextButtonChanged?.(o))).add(e.ui.controls.playPrevChapterButton.subscribe(o=>n.onPlayPrevChapterChanged?.(o))).add(e.ui.controls.seekToInteractiveButton.subscribe(o=>n.onSeekToInteractiveButtonChanged?.(o))).add(e.ui.controls.interactiveGraphButton.subscribe(o=>n.onGraphButtonChanged?.(o))).add(e.ui.controls.liveButton.subscribe(o=>n.onLiveButtonChanged?.(o))).add(e.ui.controls.time.subscribe(o=>n.onTimeUpdateChanged?.(o))).add(e.ui.controls.episodes.subscribe(o=>n.onEpisodesChanged?.(o))).add(e.ui.controls.subtitles.subscribe(o=>n.onSubtitlesChanged?.(o))).add(e.ui.controls.settings.subscribe(o=>n.onSettingsChanged?.(o))).add(e.ui.controls.fullscreen.subscribe(o=>n.onFullscreenChanged?.(o))).add(e.ui.controls.chromecast.subscribe(o=>n.onChromecastChanged?.(o))).add(e.ui.controls.pip.subscribe(o=>n.onPipChanged?.(o))).add(e.ui.controls.vkLogo.subscribe(o=>n.onVkLogoChanged?.(o))).add(e.ui.controls.interactiveTimeIcon.subscribe(o=>n.onInteractiveTimeIconChanged?.(o)))}playNextVideo(){if(!this.videoConfig)return;let e=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{e=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}e&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let e=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{e=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}e&&(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(e,i=!0){if(!this.videoConfig)return;const n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&ie.isNonNullable(n.unitedVideoId)&&this.store.actions.internal.nextMovie(n.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){const e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}toggleGraph(){if(!this.isInited)return;const e=this.store,{isEnded$:i,playbackState$:n,graphIsOpened$:o}=e.state,{disabledControls$:s}=e.ui.controls,l=et(i),r=et(n);et(o)?(o.set(!1),this.interactiveController?.toggleGraphView(!1),s.remove(Ql),!l&&this.graphMadePause&&this.play()):(this.graphMadePause=r==="playing",o.set(!0),this.interactiveController?.toggleGraphView(!0),s.add(Ql),!l&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{const{Interactives:e,EVENT_NAMES:i,CustomError:n}=await import("@vkontakte/videoplayer-interactive/esnext.cjs.js");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");const o=this.store?.interfaceLanguage$,s=o?et(o):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:r,historyApi:a,videoLoader:c}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:s,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:r,historyApi:a,vkVideoLoader:c,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest);const{isInteractiveExpectation$:f}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(h=>{if(!this.isInited)return;const _=this.store;h?_.ui.controls.disabledControls$.remove(rt.SEEK_TO_INTERACTIVE_BUTTON):_.ui.controls.disabledControls$.add(rt.SEEK_TO_INTERACTIVE_BUTTON)})),this.subscription.add(f.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let p=!0;if(this.interactiveController.on(i.playerChanged,h=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...h.config,title:l?.title||h.config.title};const _=p?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,_),p&&(p=!1)}),this.interactiveController.on(i.interactives,({type:h,actionType:_})=>{if(!this.store)return;const b=f.getValue();if(h==="action-choice"&&_==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(f1)),h==="action-choice-canceled"){const k=et(this.store.state.isPlaying$)||b;if(this.videoConfig?.isMobile&&k){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){const h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(_=>{_.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(_)}))}this.interactiveController.events.noInteraction$.subscribe(()=>{this.videoConfig?.callbacks.onInteractiveTimeIconClick?.()}),this.interactiveController.on(i.errors,h=>{this.log({message:h.toString()})})}catch(e){this.log({message:e.message})}}async initInteractivesStatistics(){const{statSubscription:e,oneStat:i}=this.statistics;if(!(!e||!i||!this.interactiveController))try{const{INTERACTIVE_CLICK_ACTIONS:n}=await import("@vkontakte/videoplayer-interactive/esnext.cjs.js"),o={[n.GO_NEXT_BUTTON]:mt.InteractiveInterfaceClick.NEXT_BUTTON,[n.GO_NEXT_AREA]:mt.InteractiveInterfaceClick.NEXT_AREA,[n.WATCH_AGAIN]:mt.InteractiveInterfaceClick.WATCH_AGAIN,[n.OPEN_GRAPH]:mt.InteractiveInterfaceClick.GRAPH_SHOW,[n.CLOSE_GRAPH]:mt.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:l}=this.interactiveController.getStatEvents(),r=new ie.Subject;s.subscribe(a=>{a in o?r.next(o[a]):(i?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),e.add(i.attachToInteractive({click$:r,nextMovie$:l}))}catch(n){i?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(n,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");this.videoConfig=e1(Kh,ie.cloneDeepWith(e,n=>n instanceof HTMLElement?n:void 0)),this.uiConfig=Ec(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statistics={config:i.statistics??{}},this.sentry={config:this.uiConfig.sentry??{}},ie.isNonNullable(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),ie.isNonNullable(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Rh.getLatestSupportedVersion():this.pictureInPictureApi=new yl),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ph:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Uh(this.rootContainer):void 0,this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),e.interactiveData?this.initInteractives():this.createPlayer(e.videos[0]),Nh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(e){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e);const i=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:i.nextVideoTitle,endScreenVideoThumb:i.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e===Oe.Video?this.setupMediaSessionForVideo():e===Oe.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",o=>this.seekTime(o.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&n.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&n.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i)}catch(e){this.log({message:e.message})}}play(){this.isControlDisabled(rt.PLAY_BUTTON)||this.store?.playerPhase.is(Oe.WaitingLive)||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy();const e=this.videoConfig.videos[0];e&&(this.svelteRootComponent?.$destroy(),this.createPlayer(e))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){this.isControlDisabled(rt.TIMELINE)||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(e),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(e){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(e,{autoplay:!1})}getDeviceId(){return go.getInstance()?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}}const Yh=()=>{window.customElements.define("vk-video-player",Gh)};Object.defineProperty(exports,"VideoFormat",{enumerable:!0,get:function(){return xe.VideoFormat}});Object.defineProperty(exports,"VideoQuality",{enumerable:!0,get:function(){return xe.VideoQuality}});Object.defineProperty(exports,"InterfaceLanguage",{enumerable:!0,get:function(){return ie.InterfaceLanguage}});Object.defineProperty(exports,"VKNumericLanguage",{enumerable:!0,get:function(){return ie.VKNumericLanguage}});Object.defineProperty(exports,"loadVKLangPack",{enumerable:!0,get:function(){return ie.loadVKLangPack}});exports.VERSION=Wo;exports.registerPlayerWebComponent=Yh;
50
+ );--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;--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)}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:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function uh(t){let e,i,n;function o(l){t[56](l)}let s={store:t[0],uiConfig:t[35],title:t[1],thumbUrl:t[2],videoLogoUrl:t[3],interactiveContainer:t[4],live:t[5],autoplay:t[6],canRewindLive:t[7],showAds:t[8],adsSlotId:t[9],adsParams:t[10],adsPreviewParam:t[11],duration:t[12],logoClickable:t[13],logoHidden:t[14],showNextPrevButtons:t[16],nextButtonActive:t[17],prevButtonActive:t[18],endScreenVideoTitle:t[19],endScreenVideoThumb:t[20],isOneVideoPlaylist:t[21],supportLink:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[36]};return t[33]!==void 0&&(s.videoContainer=t[33]),e=new Xp({props:s}),we.push(()=>Ue(e,"videoContainer",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&1&&(a.store=l[0]),r[0]&2&&(a.title=l[1]),r[0]&4&&(a.thumbUrl=l[2]),r[0]&8&&(a.videoLogoUrl=l[3]),r[0]&16&&(a.interactiveContainer=l[4]),r[0]&32&&(a.live=l[5]),r[0]&64&&(a.autoplay=l[6]),r[0]&128&&(a.canRewindLive=l[7]),r[0]&256&&(a.showAds=l[8]),r[0]&512&&(a.adsSlotId=l[9]),r[0]&1024&&(a.adsParams=l[10]),r[0]&2048&&(a.adsPreviewParam=l[11]),r[0]&4096&&(a.duration=l[12]),r[0]&8192&&(a.logoClickable=l[13]),r[0]&16384&&(a.logoHidden=l[14]),r[0]&65536&&(a.showNextPrevButtons=l[16]),r[0]&131072&&(a.nextButtonActive=l[17]),r[0]&262144&&(a.prevButtonActive=l[18]),r[0]&524288&&(a.endScreenVideoTitle=l[19]),r[0]&1048576&&(a.endScreenVideoThumb=l[20]),r[0]&2097152&&(a.isOneVideoPlaylist=l[21]),r[0]&4194304&&(a.supportLink=l[22]),r[0]&8388608&&(a.outerContainerRef=l[23]),r[0]&16777216&&(a.fullScreenTarget=l[24]),r[0]&33554432&&(a.showMiniTimer=l[25]),r[1]&8&&(a.playerStarted=l[34]),r[0]&67108864&&(a.playNextVideo=l[26]),r[0]&134217728&&(a.playPrevVideo=l[27]),r[0]&268435456&&(a.repeatPlaylist=l[28]),r[0]&536870912&&(a.seekToInteractive=l[29]),r[0]&1073741824&&(a.toggleGraph=l[30]),r[1]&1&&(a.playPrevChapter=l[31]),!i&&r[1]&4&&(i=!0,a.videoContainer=l[33],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function ch(t){let e,i,n;function o(l){t[55](l)}let s={store:t[0],uiConfig:t[35],thumbUrl:t[2],videoLogoUrl:t[3],interactiveContainer:t[4],live:t[5],autoplay:t[6],canRewindLive:t[7],showAds:t[8],adsSlotId:t[9],adsParams:t[10],adsPreviewParam:t[11],duration:t[12],logoClickable:t[13],logoHidden:t[14],showNextPrevButtons:t[16],nextButtonActive:t[17],prevButtonActive:t[18],endScreenVideoTitle:t[19],endScreenVideoThumb:t[20],isOneVideoPlaylist:t[21],supportLink:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[36],seekTime:t[32]};return t[33]!==void 0&&(s.videoContainer=t[33]),e=new rh({props:s}),we.push(()=>Ue(e,"videoContainer",o)),{c(){U(e.$$.fragment)},m(l,r){z(e,l,r),n=!0},p(l,r){const a={};r[0]&1&&(a.store=l[0]),r[0]&4&&(a.thumbUrl=l[2]),r[0]&8&&(a.videoLogoUrl=l[3]),r[0]&16&&(a.interactiveContainer=l[4]),r[0]&32&&(a.live=l[5]),r[0]&64&&(a.autoplay=l[6]),r[0]&128&&(a.canRewindLive=l[7]),r[0]&256&&(a.showAds=l[8]),r[0]&512&&(a.adsSlotId=l[9]),r[0]&1024&&(a.adsParams=l[10]),r[0]&2048&&(a.adsPreviewParam=l[11]),r[0]&4096&&(a.duration=l[12]),r[0]&8192&&(a.logoClickable=l[13]),r[0]&16384&&(a.logoHidden=l[14]),r[0]&65536&&(a.showNextPrevButtons=l[16]),r[0]&131072&&(a.nextButtonActive=l[17]),r[0]&262144&&(a.prevButtonActive=l[18]),r[0]&524288&&(a.endScreenVideoTitle=l[19]),r[0]&1048576&&(a.endScreenVideoThumb=l[20]),r[0]&2097152&&(a.isOneVideoPlaylist=l[21]),r[0]&4194304&&(a.supportLink=l[22]),r[0]&8388608&&(a.outerContainerRef=l[23]),r[0]&16777216&&(a.fullScreenTarget=l[24]),r[0]&33554432&&(a.showMiniTimer=l[25]),r[1]&8&&(a.playerStarted=l[34]),r[0]&67108864&&(a.playNextVideo=l[26]),r[0]&134217728&&(a.playPrevVideo=l[27]),r[0]&268435456&&(a.repeatPlaylist=l[28]),r[0]&536870912&&(a.seekToInteractive=l[29]),r[0]&1073741824&&(a.toggleGraph=l[30]),r[1]&1&&(a.playPrevChapter=l[31]),!i&&r[1]&4&&(i=!0,a.videoContainer=l[33],Fe(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function fh(t){let e,i,n,o;const s=[ch,uh],l=[];function r(a,c){return a[15]?0:1}return i=r(t),n=l[i]=s[i](t),{c(){e=I("div"),n.c(),u(e,"class","root v-cghoty")},m(a,c){T(a,e,c),l[i].m(e,null),o=!0},p(a,c){let f=i;i=r(a),i===f?l[i].p(a,c):(fe(),g(l[f],1,1,()=>{l[f]=null}),de(),n=l[i],n?n.p(a,c):(n=l[i]=s[i](a),n.c()),d(n,1),n.m(e,null))},i(a){o||(d(n),o=!0)},o(a){g(n),o=!1},d(a){a&&P(e),l[i].d()}}}function dh(t,e,i){let{sources:n}=e,{store:o}=e,{microStoresRoot:s}=e,{uiConfig:l}=e,{title:r}=e,{thumbUrl:a}=e,{videoLogoUrl:c}=e,{interactiveContainer:f}=e,{subtitles:m}=e,{live:h}=e,{preload:_}=e,{autoplay:b}=e,{volume:k=void 0}=e,{muted:v=void 0}=e,{fromTime:S}=e,{canRewindLive:w}=e,{showAds:y}=e,{adsSlotId:E=void 0}=e,{adsParams:ie=void 0}=e,{adsPreviewParam:V=void 0}=e,{duration:F=void 0}=e,{logoClickable:oe}=e,{logoHidden:x}=e,{isMobile:C}=e,{showNextPrevButtons:$=!1}=e,{nextButtonActive:R=!1}=e,{prevButtonActive:se=!1}=e,{endScreenVideoTitle:j=void 0}=e,{endScreenVideoThumb:N=void 0}=e,{isOneVideoPlaylist:Q=!1}=e,{supportLink:A}=e,{outerContainerRef:ne=void 0}=e,{fullScreenTarget:Ie=void 0}=e,{failoverHosts:Ne=void 0}=e,{showMiniTimer:Be=!1}=e,{playNextVideo:ze=te.noop}=e,{playPrevVideo:ce=te.noop}=e,{repeatPlaylist:ke=te.noop}=e,{seekToInteractive:G=te.noop}=e,{toggleGraph:J=te.noop}=e,{playPrevChapter:ye=te.noop}=e;const{subscribers:re,stores:We}=s;yc(l);const Ve=an(),Ee=o.ui.debugPanelVisible,ue=o.ui.playerSize;let Ce,ge=null,le=!1;o.getAdmanWrapper().init({switchFromAdsToVideo:o.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:o.actions.internal.switchFromVideoToAds,setMuted:o.actions.external.setMuted},o.ads,{isMobile:o.ui.isMobile,mobileUnmuteButtonVisible:o.ui.mobileUnmuteButtonVisible,vsid:o.vsid}),Vc(o,We);const qe=(me=!1)=>{i(34,le=!0),me?o.actions.external.firstStart(y):o.actions.internal.firstStart(y)};function pe(me){const bt=n||me;bt&&o.initVideo({container:Ce,sources:bt,failoverHosts:Ne,subtitles:m});const ct=te.safeStorage.get(dl)==="true";Ee.set(ct),S>0&&o.actions.external.seekTime(S);const Dt=C?Ve.volumeDefault:k??p1()??Ve.volumeDefault,rt=v??Oc();if(o.actions.external.setVolume(Dt),o.actions.external.setMuted(rt),o.getAdmanWrapper().setInitialVolume(rt?0:Dt),Ve.features.trafficSaving){const ei=Hc();ei&&o.actions.internal.setTrafficSavingEnabled(ei)}const wt=Dc(o.videoId);wt&&o.actions.internal.setQuality(wt),o.ui.isAutoplay.set(b),b?qe():_&&Ve.features.preload&&o.actions.internal.preload()}const Pe=me=>{if(window.ResizeObserver){let bt,ct;ge=new ResizeObserver(te.throttleFn(Dt=>{const rt=Dt[0];if(rt){if(rt.contentBoxSize){const wt=Array.isArray(rt.contentBoxSize)?rt.contentBoxSize[0]:rt.contentBoxSize;bt=wt.inlineSize,ct=wt.blockSize}else rt.contentRect&&(bt=rt.contentRect.width,ct=rt.contentRect.height);ue.set({width:bt,height:ct})}},i1)),ge.observe(me)}ue.set({width:me.clientWidth,height:me.clientHeight})};sn(()=>{Pe(Ce);const me=re.map(ct=>ct.init(o,We));if(h?.status==="upcoming"||h?.status==="waiting"){o.actions.internal.setWaitingLive(!0);return}if((h?.status==="finished"||h?.status==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return pe(),()=>{ge?.disconnect(),me.forEach(ct=>ct.unsubscribe()),o.destroy()}});function Te(){le?o.actions.external.play():qe(!0)}function je(){o.actions.external.pause()}function tt(me){C||o.actions.external.setMuted(me)}function Xe(me){C||me>=0&&me<=1&&o.actions.external.setVolume(me)}function Qe(me){o.actions.internal.seekTime(me,pt.SeekAction.UNKNOWN)}function it(me){o.actions.external.seekEpisodeStartTime(me)}function Et(){o.actions.external.returnFocusToEpisodes()}function ut(me){o.actions.external.setPlaybackRate(me)}function $t(me){o.actions.external.setAutoQualityLimits(me)}function _t(me){Ce=me,i(33,Ce)}function Oe(me){Ce=me,i(33,Ce)}return t.$$set=me=>{"sources"in me&&i(37,n=me.sources),"store"in me&&i(0,o=me.store),"microStoresRoot"in me&&i(38,s=me.microStoresRoot),"uiConfig"in me&&i(39,l=me.uiConfig),"title"in me&&i(1,r=me.title),"thumbUrl"in me&&i(2,a=me.thumbUrl),"videoLogoUrl"in me&&i(3,c=me.videoLogoUrl),"interactiveContainer"in me&&i(4,f=me.interactiveContainer),"subtitles"in me&&i(40,m=me.subtitles),"live"in me&&i(5,h=me.live),"preload"in me&&i(41,_=me.preload),"autoplay"in me&&i(6,b=me.autoplay),"volume"in me&&i(42,k=me.volume),"muted"in me&&i(43,v=me.muted),"fromTime"in me&&i(44,S=me.fromTime),"canRewindLive"in me&&i(7,w=me.canRewindLive),"showAds"in me&&i(8,y=me.showAds),"adsSlotId"in me&&i(9,E=me.adsSlotId),"adsParams"in me&&i(10,ie=me.adsParams),"adsPreviewParam"in me&&i(11,V=me.adsPreviewParam),"duration"in me&&i(12,F=me.duration),"logoClickable"in me&&i(13,oe=me.logoClickable),"logoHidden"in me&&i(14,x=me.logoHidden),"isMobile"in me&&i(15,C=me.isMobile),"showNextPrevButtons"in me&&i(16,$=me.showNextPrevButtons),"nextButtonActive"in me&&i(17,R=me.nextButtonActive),"prevButtonActive"in me&&i(18,se=me.prevButtonActive),"endScreenVideoTitle"in me&&i(19,j=me.endScreenVideoTitle),"endScreenVideoThumb"in me&&i(20,N=me.endScreenVideoThumb),"isOneVideoPlaylist"in me&&i(21,Q=me.isOneVideoPlaylist),"supportLink"in me&&i(22,A=me.supportLink),"outerContainerRef"in me&&i(23,ne=me.outerContainerRef),"fullScreenTarget"in me&&i(24,Ie=me.fullScreenTarget),"failoverHosts"in me&&i(45,Ne=me.failoverHosts),"showMiniTimer"in me&&i(25,Be=me.showMiniTimer),"playNextVideo"in me&&i(26,ze=me.playNextVideo),"playPrevVideo"in me&&i(27,ce=me.playPrevVideo),"repeatPlaylist"in me&&i(28,ke=me.repeatPlaylist),"seekToInteractive"in me&&i(29,G=me.seekToInteractive),"toggleGraph"in me&&i(30,J=me.toggleGraph),"playPrevChapter"in me&&i(31,ye=me.playPrevChapter)},t.$$.update=()=>{t.$$.dirty[0]&32769&&o.ui.isMobile.set(C)},[o,r,a,c,f,h,b,w,y,E,ie,V,F,oe,x,C,$,R,se,j,N,Q,A,ne,Ie,Be,ze,ce,ke,G,J,ye,Qe,Ce,le,Ve,qe,n,s,l,m,_,k,v,S,Ne,pe,Te,je,tt,Xe,it,Et,ut,$t,_t,Oe]}class mh extends ve{constructor(e){super(),_e(this,e,dh,fh,be,{sources:37,store:0,microStoresRoot:38,uiConfig:39,title:1,thumbUrl:2,videoLogoUrl:3,interactiveContainer:4,subtitles:40,live:5,preload:41,autoplay:6,volume:42,muted:43,fromTime:44,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:45,showMiniTimer:25,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,initVideo:46,play:47,pause:48,setMuted:49,setVolume:50,seekTime:32,seekEpisodeStartTime:51,returnFocusToEpisodes:52,setPlaybackRate:53,setAutoQualityLimits:54},ah,[-1,-1,-1])}get initVideo(){return this.$$.ctx[46]}get play(){return this.$$.ctx[47]}get pause(){return this.$$.ctx[48]}get setMuted(){return this.$$.ctx[49]}get setVolume(){return this.$$.ctx[50]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[51]}get returnFocusToEpisodes(){return this.$$.ctx[52]}get setPlaybackRate(){return this.$$.ctx[53]}get setAutoQualityLimits(){return this.$$.ctx[54]}}function ph(t){let e,i;return{c(){e=B("svg"),i=B("path"),u(i,"fill",t[0]),u(i,"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 6h19.489zm.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.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z"),u(e,"width","57"),u(e,"height","60"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","stub-icon")},m(n,o){T(n,e,o),p(e,i)},p(n,[o]){o&1&&u(i,"fill",n[0])},i:W,o:W,d(n){n&&P(e)}}}function hh(t,e,i){let{isWhite:n=!1}=e,o;return t.$$set=s=>{"isWhite"in s&&i(1,n=s.isWhite)},t.$$.update=()=>{t.$$.dirty&2&&i(0,o=n?"#fff":"#909499")},[o,n]}class gh extends ve{constructor(e){super(),_e(this,e,hh,ph,be,{isWhite:1})}}function bh(t){Ke(t,"v-1y9fytq",".playerStub.v-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.v-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 Ka(t){let e,i;return{c(){e=I("div"),i=De(t[0]),u(e,"class","title v-1y9fytq")},m(n,o){T(n,e,o),p(e,i)},p(n,o){o&1&&et(i,n[0])},d(n){n&&P(e)}}}function ja(t){let e,i;return e=new gh({props:{isWhite:!!t[1]}}),{c(){U(e.$$.fragment)},m(n,o){z(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isWhite=!!n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){H(e,n)}}}function _h(t){let e,i,n,o,s=t[0]&&Ka(t),l=(!t[0]||!t[1])&&ja(t);return{c(){e=I("div"),s&&s.c(),i=D(),l&&l.c(),u(e,"class","playerStub v-1y9fytq"),u(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(r,a){T(r,e,a),s&&s.m(e,null),p(e,i),l&&l.m(e,null),o=!0},p(r,[a]){r[0]?s?s.p(r,a):(s=Ka(r),s.c(),s.m(e,i)):s&&(s.d(1),s=null),!r[0]||!r[1]?l?(l.p(r,a),a&3&&d(l,1)):(l=ja(r),l.c(),d(l,1),l.m(e,null)):l&&(fe(),g(l,1,1,()=>{l=null}),de()),(!o||a&2&&n!==(n=r[1]?`background-image: url('${r[1]}')`:""))&&u(e,"style",n)},i(r){o||(d(l),o=!0)},o(r){g(l),o=!1},d(r){r&&P(e),s&&s.d(),l&&l.d()}}}function vh(t,e,i){let{title:n}=e,{thumbUrl:o}=e;return t.$$set=s=>{"title"in s&&i(0,n=s.title),"thumbUrl"in s&&i(1,o=s.thumbUrl)},[n,o]}class kh extends ve{constructor(e){super(),_e(this,e,vh,_h,be,{title:0,thumbUrl:1},bh)}}class wh{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,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(){const e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(const[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}}function yh(t){let e,i,n,o;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),u(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.766 8.766 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.769 5.769 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.766 8.766 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.765 8.765 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4h8.488Z"),u(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.2V33.8Z"),u(i,"fill","#fff"),u(e,"width","57"),u(e,"height","56"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-label","dummy-image"),u(e,"data-testid","pip-dummy-icon")},m(s,l){T(s,e,l),p(e,i),p(i,n),p(i,o)},p:W,i:W,o:W,d(s){s&&P(e)}}}class Ch extends ve{constructor(e){super(),_e(this,e,null,yh,be,{})}}function Ph(t){Ke(t,"v-1pbsod4",".player-pip-dummy.v-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.v-1pbsod4{position:relative}.dummy-image.v-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.v-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.v-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function Sh(t){let e,i,n,o,s,l,r;return n=new Ch({}),{c(){e=I("div"),i=I("div"),U(n.$$.fragment),o=D(),s=I("span"),l=De(t[0]),u(i,"class","dummy-image v-1pbsod4"),M(i,"desktop",!t[1]),u(s,"class","title v-1pbsod4"),u(e,"class","player-pip-dummy v-1pbsod4"),M(e,"is-pip-api",t[2])},m(a,c){T(a,e,c),p(e,i),z(n,i,null),p(e,o),p(e,s),p(s,l),r=!0},p(a,[c]){(!r||c&2)&&M(i,"desktop",!a[1]),(!r||c&1)&&et(l,a[0])},i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){g(n.$$.fragment,a),r=!1},d(a){a&&P(e),H(n)}}}function Th(t,e,i){let n,o;const s=ht(),l=!!s.webApi.pictureInPictureApi,r=s.interfaceLanguage$;O(t,r,f=>i(5,n=f));const a=s.ui.isMobile;O(t,a,f=>i(1,o=f));let c;return t.$$.update=()=>{t.$$.dirty&32&&i(0,c=n&&K("pip_dummy_title"))},[c,o,l,r,a,n]}class Ih extends ve{constructor(e){super(),_e(this,e,Th,Sh,be,{},Ph)}}const Ah=460,Eh=280;class Iu{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new te.ValueSubject(!1),type:Ln.DocumentPictureInPicture};isSupported(){const e=te.getCurrentBrowser().browser===te.CurrentClientBrowser.Yandex,{isEmbed:i}=te.detectEmbed();return"documentPictureInPicture"in window&&!e&&!i}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Ah,height:Eh,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";const e=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
51
+ `),i=document.createElement("style");i.textContent=e;const n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(i),o.append(this.playerDomElement),this.playerDummyElement=new Ih({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!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=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}}function Lh(t){return t instanceof Iu}class Vh{static getLatestSupportedVersion(){const e=new vl,i=new Iu;if(i.isSupported())return i;if(e.isSupported())return e}}function Ga(t,e){const i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(const o of i)n[o]=e[o]??t[o]??void 0;return n}const Mh="Inner error. Unexpectedly root annotation container null reference exception",Bh="Annotation with such name already exists",Nh="Annotation with such name does not exist";class al extends Error{constructor(e){super(e),this.name="AnnotationError"}}const Rh="1",Dh=100;class Oh{rootAnnotationsContainer;annotations=new Map;subscriptions=new te.Subscription;mutationObserver;playerSize;constructor(e){this.rootAnnotationsContainer=e;const i=te.throttleFn(()=>{for(const n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Dh);this.subscriptions.add(te.observeElementSize(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){if(!this.rootAnnotationsContainer)throw new al(Mh);if(this.annotations.has(e))throw new al(Bh);i.style.zIndex=i.style.zIndex??Rh,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){const i=this.annotations.get(e);if(!i)throw new al(Nh);return i}remove(e){const i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(const e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,n){const o=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,r=e.offsetHeight;return o<0||s<0||s+l>i||o+r>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}}class Ll{stateName;state$;subscription;init(e,i){return te.assertNonNullable(e),te.assertNonNullable(i),this.subscription=new te.Subscription,this.subscription}}class zh extends Ll{stateName="fakeIsPlaying$";state$={...Le(null),toggle:()=>this.state$.update(e=>!e)};init(e,i){const n=super.init(e,i),{isInteractiveExpectation$:o}=e.state;return n.add(o.subscribe(s=>{this.state$.set(s?!0:null)})),n}}class Hh extends Ll{stateName="interactiveControlsOpacity$";state$={...Le(null),toggle:()=>this.state$.update(e=>!e)};init(e,i){const n=super.init(e,i),{fakeIsPlaying$:o}=i,{isInteractiveExpectation$:s,isPlaying$:l}=e.state,{controlsVisible:r,isMobile:a}=e.ui,c=xe(a),f=()=>c&&xe(r);return n.add(r.subscribe(m=>{if(!c)return;const h=xe(o);xe(l)?this.state$.set(m):h!==null&&this.state$.set(!h||m)})),n.add(l.subscribe(m=>{this.state$.set(!m||f())})),n.add(o.subscribe(m=>{if(m===null)return;const h=xe(s);if(f()){this.state$.set(!0);return}h&&this.state$.set(!m)})),n}}class Fh extends Ll{stateName="seekToInteractiveDisabledTooltip$";state$=Le("tooltip_chapter_without_interactive");init(e,i){const n=super.init(e,i);return n.add(e.state.interactiveEpisodes$.subscribe(o=>{o.length&&(o.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}}const Uh=()=>[zh,Hh,Fh].reduce(({subscribers:t,stores:e},i)=>{const n=new i;return{subscribers:[...t,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}}),qh={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:te.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:te.isMobile(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}};class Zh extends HTMLElement{svelteStubComponent;svelteRootComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;annotationsApi=void 0;createPlayerTimeout;prevIsid=void 0;isInited=!1;constructor(){super(),this.logger=new te.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new te.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(e=>{console.log("%c player web component ","background:#77dd77;",`${e.component}`,e.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();const e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new kh({target:this.playerContainer,props:{title:e,thumbUrl:i}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.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%";const e=document.createElement("div");e.style.position="absolute",e.className="shadow-root-container",e.style.width="100%",e.style.height="100%",this._shadowRoot=e.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(e),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(e){return this.store?.ui.controls.disabledControls$?.includes(e)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},n){if(!this.videoConfig)return;const{albumId:o,statPlace:s,statUserSalt:l,statAuthToken:r,statTrackCode:a,refreshStatAuthToken:c,preload:f,autoplay:m,volume:h,muted:_,fromTime:b,canRewindLive:k,supportLink:v,showAds:S,adsSlotId:w,adsParams:y={},adsPreviewParam:E,interfaceLanguage:ie,logoClickable:V,logoHidden:F,isMobile:oe,isAudioDisabled:x,isLiveCatchUpMode:C,fullScreenTarget:$,failoverHosts:R,canDownload:se,callbacks:j,interactiveData:N,showThumbTimer:Q,additionalButtons:A=[],repeat:ne}=Ga(this.videoConfig,i),{sources:Ie,title:Ne,thumbUrl:Be,videoLogoUrl:ze,unitedVideoId:ce,isClip:ke=!1,duration:G,adsParams:J={},videoEpisodes:ye,previewThumbsData:re,subtitles:We,live:Ve}=e,Ee={...y,...J},ue=this.getNextVideoInfo(),Ce={sources:Ie,title:Ne,thumbUrl:Be,subtitles:We,unitedVideoId:ce,isClip:ke,live:Ve,albumId:o,statPlace:s,autoplay:m,muted:_,volume:h,fromTime:b,canRewindLive:k,showAds:S,adsSlotId:w,adsParams:Ee,adsPreviewParam:E,duration:G,logoClickable:V,logoHidden:F,isMobile:oe,repeat:ne,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ue.nextVideoTitle,endScreenVideoThumb:ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ge={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Ce)}`});const le=this.uiConfig.features.statistics&&!!ce,{pid:qe}=this.videoConfig?.interactiveData?.projectInfo||{};le&&(this.statistics=new T4({movieId:ce,albumId:o,place:s,trackCode:a,autoplay:(m&&!this.interactiveController)??!1,mobile:oe,clip:ke,refDomain:this.videoConfig.refDomain,...qe&&!this.isInited&&{projectId:Number(qe)}},{refreshAuthToken:c,userSalt:l,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ml(this.uiConfig.sentry,{version:jo,env:Lc},{movieId:ce,albumId:o,place:s,autoplay:(m&&!this.interactiveController)??!1,mobile:oe,clip:ke}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...ml.getInstance()};const Pe=!!N,Te=[];let je="tooltip_interactive_go_back_disabled_first";if(Pe&&this.interactiveController){const Qe=this.interactiveController.state.isInitialChapter$.getValue(),it=this.interactiveController.getHistoryState();Qe&&Te.push(st.REPLAY_BUTTON),this.interactiveController.getIsSeekable().getValue()||Te.push(st.SEEK_TO_INTERACTIVE_BUTTON),it.hasPrevChapter$.getValue()||(Te.push(st.PLAY_PREV_CHAPTER_BUTTON),Qe||(it.isGoBackLimited$.getValue()?je="tooltip_interactive_go_back_disabled_limit":je="tooltip_interactive_go_back_disabled"))}const tt=()=>{this.isInited=!1,this.prevIsid=void 0;const Qe=n?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();j.onReplayInteractiveVideo&&!Qe?j.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=I4({player:n,interfaceLanguage:ie,videoId:ce,isClip:ke,isLiveCatchUpMode:C,isAudioDisabled:x,statAuthToken:r,callbacks:j,webApi:ge,videoEpisodes:ye,previewThumbsData:re,canDownload:se,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Te,isInteractive:Pe,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:tt,playPrevChapterDisabledTooltip:je,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?A:[],looped:ne&&this.videoConfig.videos.length===1,statistics:this.statistics});const{stores:Xe}=this.microStoresRoot=Uh();this.subscription.add(this.store.state.currentFormat$.subscribe(Qe=>j?.onCurrentFormatChanged?.(Qe))),this.subscription.add(Xe.interactiveControlsOpacity$.subscribe(Qe=>{Qe!==null&&this?.interactiveController?.setDisabledControls(Qe)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Qe=>j?.onThroughputEstimationChanged?.(Qe))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Qe=>j?.onTrafficSavingEnabledChanged?.(Qe))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Qe=>j?.onCurrentPlaybackRateChanged?.(Qe))),this.subscription.add(this.store.state.volume$.subscribe(Qe=>j?.onVolumeChange?.(Qe))),this.subscription.add(this.store.state.muted$.subscribe(Qe=>Qe?j?.onMute?.():j?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Qe=>j?.onVideoBitrateChanged?.(Qe))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Qe=>{const it=this.store?.ui.controls.disabledControls$;it&&(Qe&&!it.includes(Zo)&&it.add(Zo),Qe||it.remove(Zo))})),this.initMediaSession(),this.interactiveController&&le&&this.initInteractivesStatistics(),this.svelteRootComponent=new mh({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ie,store:this.store,microStoresRoot:this.microStoresRoot,uiConfig:this.uiConfig,title:Ne,thumbUrl:Be,videoLogoUrl:ze,subtitles:We,live:Ve,preload:f,autoplay:m,muted:_,volume:h,fromTime:b,canRewindLive:k,supportLink:v,showAds:S,adsSlotId:w,adsParams:Ee,adsPreviewParam:E,duration:G,logoClickable:V,logoHidden:F,isMobile:oe,failoverHosts:R,fullScreenTarget:$,showMiniTimer:Q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ue.nextVideoTitle,endScreenVideoThumb:ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){const e=this.store;if(!e)return;const i=this.videoConfig?.callbacks;i&&this.subscription.add(e.playerPhase.subscribe(o=>i.onPlayerPhaseChanged?.(o))).add(e.state.playbackState$.subscribe(o=>i.onPlaybackStateChanged?.(o))).add(e.state.isLive$.subscribe(o=>i.onIsLiveChanged?.(o))).add(e.state.isActiveLive$.subscribe(o=>i.onIsActiveLiveChanged?.(o))).add(e.state.isAudioAvailable$.subscribe(o=>i.onIsAudioAvailableChanged?.(o))).add(e.state.currentQuality$.subscribe(o=>i.onCurrentQualityChanged?.(o))).add(e.state.availableQualities$.subscribe(o=>i.onAvailableQualitiesChanged?.(o.map(({value:s})=>s).filter(s=>s!==ro.AUTO)))).add(e.ui.isPictureInPictureActive$.subscribe(o=>o?i.onPiPEnter?.():i.onPiPExit?.()));const n=i?.uiInfo;n&&this.subscription.add(e.ui.controlsVisible.subscribe(o=>n.onControlsVisibleChanged?.(o))).add(e.ui.isMobile.subscribe(o=>n.onIsMobileChanged?.(o))).add(e.ui.playerSize.subscribe(o=>n.onPlayerSizeChanged?.(o))).add(e.ui.controls.prevButton.subscribe(o=>n.onPrevButtonChanged?.(o))).add(e.ui.controls.playButton.subscribe(o=>n.onPlayButtonChanged?.(o))).add(e.ui.controls.replayButton.subscribe(o=>n.onReplayButtonChanged?.(o))).add(e.ui.controls.nextButton.subscribe(o=>n.onNextButtonChanged?.(o))).add(e.ui.controls.playPrevChapterButton.subscribe(o=>n.onPlayPrevChapterChanged?.(o))).add(e.ui.controls.seekToInteractiveButton.subscribe(o=>n.onSeekToInteractiveButtonChanged?.(o))).add(e.ui.controls.interactiveGraphButton.subscribe(o=>n.onGraphButtonChanged?.(o))).add(e.ui.controls.liveButton.subscribe(o=>n.onLiveButtonChanged?.(o))).add(e.ui.controls.time.subscribe(o=>n.onTimeUpdateChanged?.(o))).add(e.ui.controls.episodes.subscribe(o=>n.onEpisodesChanged?.(o))).add(e.ui.controls.subtitles.subscribe(o=>n.onSubtitlesChanged?.(o))).add(e.ui.controls.settings.subscribe(o=>n.onSettingsChanged?.(o))).add(e.ui.controls.fullscreen.subscribe(o=>n.onFullscreenChanged?.(o))).add(e.ui.controls.chromecast.subscribe(o=>n.onChromecastChanged?.(o))).add(e.ui.controls.pip.subscribe(o=>n.onPipChanged?.(o))).add(e.ui.controls.vkLogo.subscribe(o=>n.onVkLogoChanged?.(o))).add(e.ui.controls.interactiveTimeIndicator.subscribe(o=>n.onInteractiveTimeIconChanged?.(o)))}playNextVideo(){if(!this.videoConfig)return;let e=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{e=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}e&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let e=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{e=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}e&&(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(e,i=!0){if(!this.videoConfig)return;const n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&te.isNonNullable(n.unitedVideoId)&&this.store.actions.internal.nextMovie(n.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){const e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}toggleGraph(){if(!this.isInited)return;const e=this.store,{isEnded$:i,playbackState$:n,graphIsOpened$:o}=e.state,{disabledControls$:s}=e.ui.controls,l=xe(i),r=xe(n);xe(o)?(o.set(!1),this.interactiveController?.toggleGraphView(!1),s.remove(Wl),!l&&this.graphMadePause&&this.play()):(this.graphMadePause=r==="playing",o.set(!0),this.interactiveController?.toggleGraphView(!0),s.add(Wl),!l&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{const{Interactives:e,EVENT_NAMES:i,CustomError:n}=await import("@vkontakte/videoplayer-interactive/esnext.cjs.js");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");const o=this.store?.interfaceLanguage$,s=o?xe(o):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:r,historyApi:a,videoLoader:c}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:s,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:r,historyApi:a,vkVideoLoader:c,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest);const{isInteractiveExpectation$:f}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(h=>{if(!this.isInited)return;const _=this.store;h?_.ui.controls.disabledControls$.remove(st.SEEK_TO_INTERACTIVE_BUTTON):_.ui.controls.disabledControls$.add(st.SEEK_TO_INTERACTIVE_BUTTON)})),this.subscription.add(f.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let m=!0;if(this.interactiveController.on(i.playerChanged,h=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...h.config,title:l?.title||h.config.title};const _=m?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,_),m&&(m=!1)}),this.interactiveController.on(i.interactives,({type:h,actionType:_})=>{if(!this.store)return;const b=f.getValue();if(h==="action-choice"&&_==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(l1)),h==="action-choice-canceled"){const k=xe(this.store.state.isPlaying$)||b;if(this.videoConfig?.isMobile&&k){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){const h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(_=>{_.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(_)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.store?.state.showInteractiveTimeIndicatorTooltip$.set(!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(i.errors,h=>{this.log({message:h.toString()})})}catch(e){this.log({message:e.message})}}async initInteractivesStatistics(){const{statSubscription:e,oneStat:i}=this.statistics;if(!(!e||!i||!this.interactiveController))try{const{INTERACTIVE_CLICK_ACTIONS:n}=await import("@vkontakte/videoplayer-interactive/esnext.cjs.js"),o={[n.GO_NEXT_BUTTON]:pt.InteractiveInterfaceClick.NEXT_BUTTON,[n.GO_NEXT_AREA]:pt.InteractiveInterfaceClick.NEXT_AREA,[n.WATCH_AGAIN]:pt.InteractiveInterfaceClick.WATCH_AGAIN,[n.OPEN_GRAPH]:pt.InteractiveInterfaceClick.GRAPH_SHOW,[n.CLOSE_GRAPH]:pt.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:l}=this.interactiveController.getStatEvents(),r=new te.Subject;s.subscribe(a=>{a in o?r.next(o[a]):(i?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),e.add(i.attachToInteractive({click$:r,nextMovie$:l}))}catch(n){i?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(n,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");this.videoConfig=Ga(qh,te.cloneDeepWith(e,n=>n instanceof HTMLElement?n:void 0)),this.uiConfig=wc(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},te.isNonNullable(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),te.isNonNullable(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Vh.getLatestSupportedVersion():this.pictureInPictureApi=new vl),this.mediaSessionApi=this.uiConfig.features.mediaSession?new wh:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Oh(this.rootContainer):void 0,this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),e.interactiveData?this.initInteractives():this.createPlayer(e.videos[0]),Lh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(e){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e);const i=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:i.nextVideoTitle,endScreenVideoThumb:i.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e===Re.Video?this.setupMediaSessionForVideo():e===Re.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",o=>this.seekTime(o.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&n.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&n.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i)}catch(e){this.log({message:e.message})}}play(){this.isControlDisabled(st.PLAY_BUTTON)||this.store?.playerPhase.is(Re.WaitingLive)||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy();const e=this.videoConfig.videos[0];e&&(this.svelteRootComponent?.$destroy(),this.createPlayer(e))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){this.isControlDisabled(st.TIMELINE)||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(e),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(e){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(e,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}}const Wh=()=>{window.customElements.define("vk-video-player",Zh)};Object.defineProperty(exports,"VideoFormat",{enumerable:!0,get:function(){return $e.VideoFormat}});Object.defineProperty(exports,"VideoQuality",{enumerable:!0,get:function(){return $e.VideoQuality}});Object.defineProperty(exports,"InterfaceLanguage",{enumerable:!0,get:function(){return te.InterfaceLanguage}});Object.defineProperty(exports,"VKNumericLanguage",{enumerable:!0,get:function(){return te.VKNumericLanguage}});Object.defineProperty(exports,"loadVKLangPack",{enumerable:!0,get:function(){return te.loadVKLangPack}});exports.VERSION=jo;exports.registerPlayerWebComponent=Wh;