@vkontakte/videoplayer 1.1.37-dev.aaebf6d2.0 → 1.1.38-dev.1460d424.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +17 -17
- package/es2015.esm.js +17 -17
- package/es2018.cjs.js +17 -17
- package/es2018.esm.js +17 -17
- package/esnext.cjs.js +17 -17
- package/esnext.esm.js +17 -17
- package/evergreen.esm.js +17 -17
- package/package.json +10 -10
- package/types/VKVideoPlayer/index.d.ts +85 -0
- package/types/components/Ads/admanWrapper.d.ts +82 -0
- package/types/components/Ads/utils.d.ts +1 -0
- package/types/config.d.ts +117 -0
- package/types/constans/controls.d.ts +27 -0
- package/types/constans/debounce-timers.d.ts +1 -0
- package/types/constans/grid.d.ts +14 -0
- package/types/constans/index.d.ts +8 -0
- package/types/constans/interactives.d.ts +7 -0
- package/types/constans/keyboard.d.ts +51 -0
- package/types/constans/lang.d.ts +2 -0
- package/types/constans/storage-keys.d.ts +1 -0
- package/types/constans/throttle-timers.d.ts +1 -0
- package/types/env.d.ts +2 -0
- package/types/index.d.ts +12 -0
- package/types/services/sentry.d.ts +28 -0
- package/types/services/statistics.d.ts +13 -0
- package/types/store/index.d.ts +276 -0
- package/types/store/micro/base.d.ts +8 -0
- package/types/store/micro/fakeIsPlaying.d.ts +13 -0
- package/types/store/micro/index.d.ts +2 -0
- package/types/store/micro/interactiveControlsOpacity.d.ts +13 -0
- package/types/store/micro/seekToInteractiveDisabledTooltip.d.ts +9 -0
- package/types/store/micro/showInteractiveTimeIndicatorTooltip.d.ts +15 -0
- package/types/store/utils.d.ts +30 -0
- package/types/translation/index.d.ts +6 -0
- package/types/translation/packs/en.d.ts +3 -0
- package/types/translation/packs/ru.d.ts +3 -0
- package/types/translation/types.d.ts +8 -0
- package/types/types/index.d.ts +462 -0
- package/types/utils/WebVttParser.d.ts +19 -0
- package/types/utils/changeVolume.d.ts +6 -0
- package/types/utils/clipboard.d.ts +1 -0
- package/types/utils/dom.d.ts +2 -0
- package/types/utils/fetchFile.d.ts +1 -0
- package/types/utils/findCurrentSubtltlePhrase.d.ts +2 -0
- package/types/utils/formatSeconds.d.ts +1 -0
- package/types/utils/fullscreen.d.ts +24 -0
- package/types/utils/getActualEpisode.d.ts +10 -0
- package/types/utils/getHotKeyMapData.d.ts +2 -0
- package/types/utils/getQualityLabel.d.ts +3 -0
- package/types/utils/grid.d.ts +6 -0
- package/types/utils/isIphoneOrOldIpad.d.ts +2 -0
- package/types/utils/keyboardHandleCases.d.ts +2 -0
- package/types/utils/menuNavigation.d.ts +13 -0
- package/types/utils/roundFps.d.ts +1 -0
- package/types/utils/sanitizeHtml.d.ts +5 -0
- package/types/utils/stack/index.d.ts +9 -0
- package/types/utils/stack/node.d.ts +5 -0
- package/types/utils/subtitleLanguages.d.ts +1 -0
- package/types/utils/updatePlayerControlsInfo.d.ts +3 -0
- package/types/utils/userSettings.d.ts +10 -0
- package/types/utils/videoConfig.d.ts +2 -0
- package/types/utils/volumeChange.d.ts +5 -0
- package/types/utils/webAPI/annotationsApi/annotationsApi.d.ts +29 -0
- package/types/utils/webAPI/annotationsApi/errors.d.ts +7 -0
- package/types/utils/webAPI/language.d.ts +2 -0
- package/types/utils/webAPI/mediaSessionApi.d.ts +8 -0
- package/types/utils/webAPI/pictureInPictureApi/documentPictureInPictureApi.d.ts +23 -0
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +38 -0
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApiFactory.d.ts +4 -0
- package/index.d.ts +0 -477
package/esnext.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.38-dev.1460d424.0
|
|
3
|
+
* Wed, 26 Jun 2024 08:22:05 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var ac=Object.create;var ql=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&&ql(t,o,{get:()=>e[o],enumerable:!(n=uc(e,o))||n.enumerable});return t};var Zl=(t,e,i)=>(i=t!=null?ac(fc(t)):{},mc(e||!t||!t.__esModule?ql(i,"default",{value:t,enumerable:!0}):i,t));var $e=require("@vkontakte/videoplayer-core/esnext.cjs.js"),ie=require("@vkontakte/videoplayer-shared/esnext.cjs.js"),pt=require("@vkontakte/videoplayer-statistics/esnext.cjs.js");require("@vkontakte/videoplayer-interactive/esnext.cjs.js");function q(){}function e1(t,e){for(const i in e)t[i]=e[i];return t}function t1(t){return t()}function Wl(){return Object.create(null)}function nt(t){t.forEach(t1)}function _n(t){return typeof t=="function"}function be(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Oo;function jl(t,e){return Oo||(Oo=document.createElement("a")),Oo.href=e,t===Oo.href}function pc(t){return Object.keys(t).length===0}function Qt(t,...e){if(t==null){for(const n of e)n(void 0);return q}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Qt(t,i=>e=i)(),e}function R(t,e,i){t.$$.on_destroy.push(Qt(e,i))}function Mn(t,e,i,n){if(t){const o=i1(t,e,i,n);return t[0](o)}}function i1(t,e,i,n){return t[1]&&n?e1(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=i1(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 hc(t){return t??""}const n1=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Ke(t,e,i){const n=bc(t);if(!n.getElementById(e)){const o=I("style");o.id=e,o.textContent=i,gc(n,o)}}function bc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function gc(t,e){return p(t.head||t,e),e.sheet}function A(t,e,i){t.insertBefore(e,i||null)}function P(t){t.parentNode&&t.parentNode.removeChild(t)}function vn(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 M(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Oe(t){return document.createTextNode(t)}function D(){return Oe(" ")}function ct(){return Oe("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Jt(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 xe(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 zo;function vc(){if(zo===void 0){zo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{zo=!0}}return zo}function kl(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=vc();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 V(t,e,i){t.classList.toggle(e,!!i)}function Pn(t,e){return new t(e)}let Ao;function So(t){Ao=t}function Eo(){if(!Ao)throw new Error("Function called outside component initialization");return Ao}function nn(t){Eo().$$.on_mount.push(t)}function Vo(t){Eo().$$.on_destroy.push(t)}function ml(t,e){return Eo().$$.context.set(t,e),e}function wl(t){return Eo().$$.context.get(t)}function o1(){return Eo().$$.context}function to(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const fo=[],ve=[];let po=[];const pl=[],l1=Promise.resolve();let hl=!1;function s1(){hl||(hl=!0,l1.then(r1))}function jn(){return s1(),l1}function bo(t){po.push(t)}function qe(t){pl.push(t)}const nl=new Set;let ao=0;function r1(){if(ao!==0)return;const t=Ao;do{try{for(;ao<fo.length;){const e=fo[ao];ao++,So(e),kc(e.$$)}}catch(e){throw fo.length=0,ao=0,e}for(So(null),fo.length=0,ao=0;ve.length;)ve.pop()();for(let e=0;e<po.length;e+=1){const i=po[e];nl.has(i)||(nl.add(i),i())}po.length=0}while(fo.length);for(;pl.length;)pl.pop()();hl=!1,nl.clear(),So(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(bo)}}function wc(t){const e=[],i=[];po.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),po=e}const jo=new Set;let xn;function fe(){xn={r:0,c:[],p:xn}}function de(){xn.r||nt(xn.c),xn=xn.p}function m(t,e){t&&t.i&&(jo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(jo.has(t))return;jo.add(t),xn.c.push(()=>{jo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ht(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 Ze(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 H(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),bo(()=>{const s=t.$$.on_mount.map(t1).filter(_n);t.$$.on_destroy?t.$$.on_destroy.push(...s):nt(s),t.$$.on_mount=[]}),o.forEach(bo)}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 Tc(t,e){t.$$.dirty[0]===-1&&(fo.push(t),s1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ge(t,e,i,n,o,s,l,r=[-1]){const a=Ao;So(t);const c=t.$$={fragment:null,ctx:[],props:s,update:q,not_equal:o,bound:Wl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Wl(),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||{},(d,h,...v)=>{const k=v.length?v[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=k)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](k),f&&Tc(t,d)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const d=_c(e.target);c.fragment&&c.fragment.l(d),d.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&m(t.$$.fragment),H(t,e.target,e.anchor),r1()}So(a)}class _e{$$=void 0;$$set=void 0;$destroy(){F(this,1),this.$destroy=q}$on(e,i){if(!_n(i))return q;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 Sc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Sc);var $n;(function(t){t.VK="vk",t.VK_VIDEO="vk_video",t.VK_VIDEO_MOBILE="vk_video_mobile"})($n||($n={}));const Pc={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:$n.VK_VIDEO,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,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}},Ac=t=>ie.fillWithDefault(t,Pc),Ic=t=>ml("ui-config",t),an=()=>wl("ui-config"),bl="vk_player_debug_panel_opened",a1=300,Ec=100,Vc="videoplayer",Lc="videoplayer";var Se;(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"})(Se||(Se={}));const Lo={[Se.KeyF]:"f",[Se.KeyK]:"k",[Se.KeyC]:"c",[Se.KeyM]:"m"},Mc=new Set([Se.ArrowLeft,Se.ArrowRight,Se.KeyL,Se.KeyJ]),Bc=new Set([Se.Tab,Se.Space,Se.ArrowLeft,Se.ArrowRight,Se.ArrowUp,Se.ArrowDown]),Nc=new Set([Se.ShiftRight,Se.ShiftLeft]);var at;(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"})(at||(at={}));const Kl=40,u1=260,Rc=60,To=8,c1=[at.TIMELINE],Ko=[...c1,at.GRAPH_BUTTON],Gl=[...c1,at.PLAY_BUTTON],f1=[...Ko,at.PLAY_BUTTON];var mo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(mo||(mo={}));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 go={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},uo=[];function Sn(t,e){return{subscribe:Ie(t,e).subscribe}}function Ie(t,e=q){let i;const n=new Set;function o(r){if(be(t,r)&&(t=r,i)){const a=!uo.length;for(const c of n)c[1](),uo.push(c,t);if(a){for(let c=0;c<uo.length;c+=2)uo[c][0](uo[c+1]);uo.length=0}}}function s(r){o(r(t))}function l(r,a=q){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||q),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function mi(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,d=q;const h=()=>{if(f)return;d();const k=e(n?c[0]:c,l,r);s?l(k):d=_n(k)?k:q},v=o.map((k,_)=>Qt(k,S=>{c[_]=S,f&=~(1<<_),a&&h()},()=>{f|=1<<_}));return a=!0,h(),function(){nt(v),d(),a=!1}})}const Dc="prod",Xo="1.1.37-dev.aaebf6d2.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"),Oc=(t,e)=>{ml(m1,t),ml(p1,e)},ht=()=>{const t=wl(m1);return ie.assertNonNullable(t,"Store context is empty!"),t},vo=()=>{const t=wl(p1);return ie.assertNonNullable(t,"MicroStores context is empty!"),t},mt=(t,e)=>h1(t,t.getValue(),e),h1=(t,e,i)=>Sn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),zc=(t,e,i)=>{const n=t.info,{width:o,height:s}=Je(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Xo} (core: ${$e.VERSION}, stat: ${pt.VERSION}, shared: ${ie.VERSION})`,f=Je(i.state.errorLog$),d=f.length?`
|
|
7
|
-
`+f.map((
|
|
8
|
-
`,
|
|
9
|
-
`,
|
|
10
|
-
`;return
|
|
11
|
-
`):void 0,
|
|
12
|
-
`)},Hc=(t,e,i)=>{const n=t.info,{width:o,height:s}=Je(i.ui.playerSize),l={version:Xo,viewport:`${o}x${s}`,volume:Math.round(Je(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-Je(i.state.positionExact$),0));const d=n.throughputEstimation$.getValue();d&&(l.speed=d);const h=n.videoBitrate$.getValue();h&&(l.bitrate=h);const v=n.currentVideoSegmentLength$.getValue();v&&(l.currentVideoSegmentLength=v);const k=n.currentAudioSegmentLength$.getValue();return k&&(l.currentAudioSegmentLength=k),l},Fc=(t,e)=>d1(t,e,"mp4"),b1="vk_player_prefer_traffic_saving_enabled",g1="vk_player_preferred_volume",_1="vk_player_prefer_volume_mute",yl="vk_player_preferred_quality",v1=t=>t>1?1:t<0?0:t,Yl=t=>ie.safeStorage.set(g1,v1(t).toString(10)),k1=()=>{const t=ie.safeStorage.get(g1);return ie.isNullable(t)?void 0:v1(parseFloat(t))},Uc=(t,e)=>ie.safeStorage.set(yl,JSON.stringify({videoId:t,value:e})),w1=()=>ie.safeStorage.remove(yl),qc=t=>{const e=ie.safeStorage.get(yl);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",ol=t=>y1(_1,t),Zc=()=>C1(_1),Wc=t=>y1(b1,t),jc=()=>C1(b1);function Kc(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("path"),l=M("path"),r=M("path"),a=M("defs"),c=M("filter"),f=M("feFlood"),d=M("feColorMatrix"),h=M("feOffset"),v=M("feGaussianBlur"),k=M("feColorMatrix"),_=M("feBlend"),S=M("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(d,"in","SourceAlpha"),u(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(d,"result","hardAlpha"),u(v,"stdDeviation","2.5"),u(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_618_12297"),u(S,"in","SourceGraphic"),u(S,"in2","effect1_dropShadow_618_12297"),u(S,"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",C=!t[0]||null),u(e,"aria-label",T=t[0]||null)},m(y,L){A(y,e,L),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,d),p(c,h),p(c,v),p(c,k),p(c,_),p(c,S)},p(y,[L]){L&1&&C!==(C=!y[0]||null)&&u(e,"aria-hidden",C),L&1&&T!==(T=y[0]||null)&&u(e,"aria-label",T)},i:q,o:q,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 T1 extends _e{constructor(e){super(),ge(this,e,Gc,Kc,be,{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_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",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_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_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_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},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_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",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_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_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_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode"},En=new Map;En.set(ie.InterfaceLanguage.EN,Qc);En.set(ie.InterfaceLanguage.RU,Yc);const S1=new Map,Ql=({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);S1.set(t,i)},Xl=t=>En.has(t),P1=(t,e,i,n)=>{let s=En.get(t)?.[e];if(ie.isNullable(s)){const l=S1.get(t)??n;s=(l?En.get(l):void 0)?.[e]}return ie.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=Je(i),o=an();return P1(n,t,e,o.defaultLanguage)};var Go;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Go||(Go={}));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,Ho="?",$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
|
-
`)
|
|
14
|
-
`).filter(i=>!!i)[0]}function nf(t){try{const e=tf(t);if(e)return e}catch{}return{value:A1(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 Jl(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 Cl 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 Cl({...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=>Jl(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=>Jl(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 Fo=null;class gl{sentrySubscription;options;version;context;sentryClient;constructor(e,i,n={}){!Fo&&e.dsn&&(this.sentryClient=new Cl({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ie.Subscription,this.options=e,this.context=n,Fo=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Fo=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:d}=l,{errorType:h,category:v}=i;if(ie.isNonNullable(v)&&d.includes(v)||ie.isNonNullable(h)&&f.includes(h))return;if(Math.random()<=r||ie.isNonNullable(v)&&c.includes(v)||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?Go.fatal:Go.error),o.report(e)}catch(_){console.error(_)}}}static getInstance(){return Fo}}var ho;(function(t){t.AUTO="auto"})(ho||(ho={}));var De;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed",t.WaitingLive="waitingLive",t.WaitingRecord="waitingRecord"})(De||(De={}));var In;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(In||(In={}));var Xt;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Xt||(Xt={}));var Vn;(function(t){t[t.PictureInPicture=0]="PictureInPicture",t[t.DocumentPictureInPicture=1]="DocumentPictureInPicture"})(Vn||(Vn={}));var Xe;(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"})(Xe||(Xe={}));var eo;(function(t){t.FULL="FULL",t.COUNT="COUNT",t.SHORT="SHORT"})(eo||(eo={}));const I1=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()},E1=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()},Io=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},V1=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},L1=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: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_context_menu_description"),value:K("hotkey_map_item_show_context_menu_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:ie.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:ie.isMacLike()?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});class Tl{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:Vn.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 Yo(t){return t instanceof Tl}function cf(t){const e=ht();return nn(()=>{e.getAdmanWrapper().startPostroll()}),[]}class ff extends _e{constructor(e){super(),ge(this,e,cf,null,be,{})}}function df(t){Ke(t,"v-1k4i25s",".container.v-1k4i25s.v-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.v-1k4i25s.v-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-1k4i25s.v-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-1k4i25s.v-1k4i25s{width:86px}.skippable.v-1k4i25s.v-1k4i25s{cursor:pointer;color:var(--white)}.skippable.v-1k4i25s.v-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.v-1k4i25s:hover .icon.v-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function mf(t){let e=K("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=Oe(e)},m(n,o){A(n,i,o)},p(n,o){o&3&&e!==(e=K("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&xe(i,e)},d(n){n&&P(i)}}}function pf(t){let e,i=K("skip_ads_now")+"",n,o,s,l,r,a;return{c(){e=I("div"),n=Oe(i),o=D(),s=M("svg"),l=M("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-1k4i25s"),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-1k4i25s")},m(c,f){A(c,e,f),p(e,n),p(e,o),p(e,s),p(s,l),r||(a=he(e,"click",ot(function(){_n(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=I("div"),o.c(),u(e,"class","container v-1k4i25s"),V(e,"container-mobile",t[4]),V(e,"skippable",t[3])},m(s,l){A(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&&V(e,"container-mobile",s[4]),l&8&&V(e,"skippable",s[3])},i:q,o:q,d(s){s&&P(e),o.d()}}}function bf(t,e,i){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:s=0}=e,{skipAd:l=ie.noop}=e;const a=ht().ui.isMobile;R(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 gf extends _e{constructor(e){super(),ge(this,e,bf,hf,be,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},df)}}function _f(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 vf(t){let e;return{c(){e=I("button"),e.textContent=`${K("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(i,n){A(i,e,n)},p:q,i:q,o:q,d(i){i&&P(e)}}}class kf extends _e{constructor(e){super(),ge(this,e,null,vf,be,{},_f)}}function wf(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(
|
|
6
|
+
"use strict";var Np=Object.create;var Nr=Object.defineProperty;var Dp=Object.getOwnPropertyDescriptor;var Op=Object.getOwnPropertyNames;var Fp=Object.getPrototypeOf,Hp=Object.prototype.hasOwnProperty;var zp=(i,e)=>{for(var t in e)Nr(i,t,{get:e[t],enumerable:!0})},uc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Op(e))!Hp.call(i,o)&&o!==t&&Nr(i,o,{get:()=>e[o],enumerable:!(n=Dp(e,o))||n.enumerable});return i};var cc=(i,e,t)=>(t=i!=null?Np(Fp(i)):{},uc(e||!i||!i.__esModule?Nr(t,"default",{value:i,enumerable:!0}):t,i)),Up=i=>uc(Nr({},"__esModule",{value:!0}),i);var Vv={};zp(Vv,{GridTypes:()=>eo,InterfaceLanguage:()=>ur.InterfaceLanguage,VERSION:()=>ko,VKNumericLanguage:()=>ur.VKNumericLanguage,VideoFormat:()=>ls.VideoFormat,VideoQuality:()=>ls.VideoQuality,loadVKLangPack:()=>ur.loadVKLangPack,registerPlayerWebComponent:()=>Av});module.exports=Up(Vv);function L(){}function cs(i,e){for(let t in e)i[t]=e[t];return i}function fs(i){return i()}function Or(){return Object.create(null)}function xe(i){i.forEach(fs)}function di(i){return typeof i=="function"}function q(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Dr;function ds(i,e){return Dr||(Dr=document.createElement("a")),Dr.href=e,i===Dr.href}function fc(i){return Object.keys(i).length===0}function Mt(i,...e){if(i==null){for(let n of e)n(void 0);return L}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function We(i){let e;return Mt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Mt(e,t))}function Fi(i,e,t,n){if(i){let o=dc(i,e,t,n);return i[0](o)}}function dc(i,e,t,n){return i[1]&&n?cs(t.ctx.slice(),i[1](n(e))):t.ctx}function Hi(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let s=0;s<r;s+=1)l[s]=e.dirty[s]|o[s];return l}return e.dirty|o}return e.dirty}function zi(i,e,t,n,o,l){if(o){let r=dc(e,t,n,l);i.p(r,o)}}function Ui(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function mc(i){return i??""}var bo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Fr=class i{_listeners="WeakMap"in bo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Fr.entries="WeakMap"in bo?new WeakMap:void 0;var pc=!1;function hc(){pc=!0}function bc(){pc=!1}function d(i,e){i.appendChild(e)}function ve(i,e,t){let n=_c(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,Wp(n,o)}}function _c(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Wp(i,e){return d(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function Vi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function A(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Se(i){return document.createTextNode(i)}function N(){return Se(" ")}function Ye(){return Se("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function bt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function Je(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function gc(i){return Array.from(i.childNodes)}function Fe(i,e){e=""+e,i.data!==e&&(i.data=e)}function _t(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Hr;function Zp(){if(Hr===void 0){Hr=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Hr=!0}}return Hr}function Oo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=Zp(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),d(i,n),()=>{(o||l&&n.contentWindow)&&l(),y(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function vc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function an(i,e){return new i(e)}var $n;function qn(i){$n=i}function Fo(){if(!$n)throw new Error("Function called outside component initialization");return $n}function gt(i){Fo().$$.on_mount.push(i)}function Mn(i){Fo().$$.on_destroy.push(i)}function Ho(i,e){return Fo().$$.context.set(i,e),e}function zo(i){return Fo().$$.context.get(i)}function mr(){return Fo().$$.context}function mn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var _o=[];var me=[],qo=[],ps=[],kc=Promise.resolve(),hs=!1;function bs(){hs||(hs=!0,kc.then(zr))}function vn(){return bs(),kc}function An(i){qo.push(i)}function Ee(i){ps.push(i)}var ms=new Set,Uo=0;function zr(){if(Uo!==0)return;let i=$n;do{try{for(;Uo<_o.length;){let e=_o[Uo];Uo++,qn(e),Xp(e.$$)}}catch(e){throw _o.length=0,Uo=0,e}for(qn(null),_o.length=0,Uo=0;me.length;)me.pop()();for(let e=0;e<qo.length;e+=1){let t=qo[e];ms.has(t)||(ms.add(t),t())}qo.length=0}while(_o.length);for(;ps.length;)ps.pop()();hs=!1,ms.clear(),qn(i)}function Xp(i){if(i.fragment!==null){i.update(),xe(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(An)}}function wc(i){let e=[],t=[];qo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),qo=e}var Ur=new Set,go;function ce(){go={r:0,c:[],p:go}}function fe(){go.r||xe(go.c),go=go.p}function m(i,e){i&&i.i&&(Ur.delete(i),i.i(e))}function h(i,e,t,n){if(i&&i.o){if(Ur.has(i))return;Ur.add(i),go.c.push(()=>{Ur.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function ft(i){return i?.length!==void 0?i:Array.from(i)}function Cc(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],s=e[l];if(s){for(let a in r)a in s||(n[a]=1);for(let a in s)o[a]||(t[a]=s[a],o[a]=1);i[l]=s}else for(let a in r)o[a]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Sc(i){return typeof i=="object"&&i!==null?i:{}}var Jp=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],$p=new Set([...Jp]);function Me(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function H(i){i&&i.c()}function O(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),An(()=>{let l=i.$$.on_mount.map(fs).filter(di);i.$$.on_destroy?i.$$.on_destroy.push(...l):xe(l),i.$$.on_mount=[]}),o.forEach(An)}function F(i,e){let t=i.$$;t.fragment!==null&&(wc(t.after_update),xe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function t2(i,e){i.$$.dirty[0]===-1&&(_o.push(i),bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function W(i,e,t,n,o,l,r,s=[-1]){let a=$n;qn(i);let c=i.$$={fragment:null,ctx:[],props:l,update:L,not_equal:o,bound:Or(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Or(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};r&&r(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(p,b,...v)=>{let g=v.length?v[0]:b;return c.ctx&&o(c.ctx[p],c.ctx[p]=g)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](g),f&&t2(i,p)),b}):[],c.update(),f=!0,xe(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){hc();let p=gc(e.target);c.fragment&&c.fragment.l(p),p.forEach(y)}else c.fragment&&c.fragment.c();e.intro&&m(i.$$.fragment),O(i,e.target,e.anchor),bc(),zr()}qn(a)}var i2;typeof HTMLElement=="function"&&(i2=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(a,c){k(a,l,c)},d:function(a){a&&y(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=vc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Pc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Pc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Pc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var K=class{$$=void 0;$$set=void 0;$destroy(){F(this,1),this.$destroy=L}$on(e,t){if(!di(t))return L;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!fc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Tc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Tc);var aV=require("@vkontakte/videoplayer-core"),Vn=require("@vkontakte/videoplayer-shared"),xm=require("@vkontakte/videoplayer-statistics");var Ko=require("@vkontakte/videoplayer-shared");var n2={isMobile:void 0,defaultLanguage:Ko.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ko.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}},Ic=i=>(0,Ko.fillWithDefault)(i,n2),Ec=i=>Ho("ui-config",i),Ct=()=>zo("ui-config");var pr="vk_player_debug_panel_opened";var Mc="videoplayer",Ac="videoplayer";var On={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Vc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Lc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Bc=new Set(["ShiftRight","ShiftLeft"]);var Rc=["TIMELINE"],hr=[...Rc,"GRAPH_BUTTON"],_s=[...Rc,"PLAY_BUTTON"],qr=[...hr,"PLAY_BUTTON"];var eo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(eo||{}),yo={xs:0,s:1,m:2,l:3,xl:4};var Wo=[];function yn(i,e){return{subscribe:Pe(i,e).subscribe}}function Pe(i,e=L){let t,n=new Set;function o(s){if(q(i,s)&&(i=s,t)){let a=!Wo.length;for(let c of n)c[1](),Wo.push(c,i);if(a){for(let c=0;c<Wo.length;c+=2)Wo[c][0](Wo[c+1]);Wo.length=0}}}function l(s){o(s(i))}function r(s,a=L){let c=[s,a];return n.add(c),n.size===1&&(t=e(o,l)||L),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Yt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return yn(t,(r,s)=>{let a=!1,c=[],f=0,p=L,b=()=>{if(f)return;p();let g=e(n?c[0]:c,r,s);l?r(g):p=di(g)?g:L},v=o.map((g,w)=>Mt(g,P=>{c[w]=P,f&=~(1<<w),a&&b()},()=>{f|=1<<w}));return a=!0,b(),function(){xe(v),p(),a=!1}})}var br=require("@vkontakte/videoplayer-shared"),Nc=require("@vkontakte/videoplayer-core"),Dc=require("@vkontakte/videoplayer-statistics");var Kr="prod",ko="1.1.38-dev.1460d424.0";var Wr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Oc=Symbol("storeContext"),Fc=Symbol("microStoresContext"),Hc=(i,e)=>{Ho(Oc,i),Ho(Fc,e),Kr==="dev"&&(window.app={store:i,microStores:e})},je=()=>{let i=zo(Oc);return(0,br.assertNonNullable)(i,"Store context is empty!"),i},kn=()=>{let i=zo(Fc);return(0,br.assertNonNullable)(i,"MicroStores context is empty!"),i},dt=(i,e)=>gs(i,i.getValue(),e),gs=(i,e,t)=>yn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),zc=(i,e,t)=>{let n=i.info,{width:o,height:l}=We(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,s=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${ko} (core: ${Nc.VERSION}, stat: ${Dc.VERSION}, shared: ${br.VERSION})`,f=We(t.state.errorLog$),p=f.length?`
|
|
7
|
+
`+f.map((g,w)=>{let P=`${w}) Type: ${g.id}
|
|
8
|
+
`,M=`Message: ${g.message} (${g.thrown})
|
|
9
|
+
`,C=`Trace: ${g.thrown?.stack}
|
|
10
|
+
`;return P+M+C}).join(`
|
|
11
|
+
`):void 0,b=t.state.isAudioDisabled?"disabled":We(t.state.isAudioAvailable$)?void 0:"unavailable",v={Version:c,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${r}Kbps @ ${s}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:b,Position:`${We(t.state.positionExact$)}s`,State:`${We(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(v).filter(([g,w])=>w!==void 0).map(([g,w])=>`${g}: ${w}`).join(`
|
|
12
|
+
`)},Uc=(i,e,t)=>{let n=i.info,{width:o,height:l}=We(t.ui.playerSize),r={version:ko,viewport:`${o}x${l}`,volume:Math.round(We(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let c=n.intrinsicVideoSize$.getValue();c&&(r.videoSize=`${c.width}x${c.height}`);let f=n.currentBuffer$.getValue();f&&(r.buffer=Math.max(f.end-We(t.state.positionExact$),0));let p=n.throughputEstimation$.getValue();p&&(r.speed=p);let b=n.videoBitrate$.getValue();b&&(r.bitrate=b);let v=n.currentVideoSegmentLength$.getValue();v&&(r.currentVideoSegmentLength=v);let g=n.currentAudioSegmentLength$.getValue();return g&&(r.currentAudioSegmentLength=g),r},qc=(i,e)=>Wr(i,e,"mp4");var wn=require("@vkontakte/videoplayer-shared"),Kc="vk_player_prefer_traffic_saving_enabled",Wc="vk_player_preferred_volume",Zc="vk_player_prefer_volume_mute",vs="vk_player_preferred_quality",jc=i=>i>1?1:i<0?0:i,ys=i=>wn.safeStorage.set(Wc,jc(i).toString(10)),Zr=()=>{let i=wn.safeStorage.get(Wc);return(0,wn.isNullable)(i)?void 0:jc(parseFloat(i))},Gc=(i,e)=>wn.safeStorage.set(vs,JSON.stringify({videoId:i,value:e})),ks=()=>wn.safeStorage.remove(vs),xc=i=>{let e=wn.safeStorage.get(vs);if((0,wn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){ks();return}return n},Qc=(i,e)=>{e?wn.safeStorage.set(i,"true"):wn.safeStorage.remove(i)},Yc=i=>wn.safeStorage.get(i)==="true",jr=i=>Qc(Zc,i),Xc=()=>Yc(Zc),Jc=i=>Qc(Kc,i),$c=()=>Yc(Kc);var Sm=require("@vkontakte/videoplayer-core"),es=require("@vkontakte/videoplayer-shared");function o2(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("path"),r=A("path"),s=A("path"),a=A("defs"),c=A("filter"),f=A("feFlood"),p=A("feColorMatrix"),b=A("feOffset"),v=A("feGaussianBlur"),g=A("feColorMatrix"),w=A("feBlend"),P=A("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(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(l,"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(l,"fill","#fff"),u(r,"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(r,"fill","#fff"),u(s,"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(s,"stroke","#000"),u(s,"stroke-opacity",".12"),u(s,"stroke-width",".5"),u(s,"stroke-linecap","round"),u(s,"stroke-linejoin","round"),u(t,"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(v,"stdDeviation","2.5"),u(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(w,"in2","BackgroundImageFix"),u(w,"result","effect1_dropShadow_618_12297"),u(P,"in","SourceGraphic"),u(P,"in2","effect1_dropShadow_618_12297"),u(P,"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",M=!i[0]||null),u(e,"aria-label",C=i[0]||null)},m(I,E){k(I,e,E),d(e,t),d(t,n),d(t,o),d(t,l),d(t,r),d(t,s),d(e,a),d(a,c),d(c,f),d(c,p),d(c,b),d(c,v),d(c,g),d(c,w),d(c,P)},p(I,[E]){E&1&&M!==(M=!I[0]||null)&&u(e,"aria-hidden",M),E&1&&C!==(C=I[0]||null)&&u(e,"aria-label",C)},i:L,o:L,d(I){I&&y(e)}}}function r2(i,e,t){let{ariaLabel:n=""}=e;return i.$$set=o=>{"ariaLabel"in o&&t(0,n=o.ariaLabel)},[n]}var ws=class extends K{constructor(e){super(),W(this,e,r2,o2,q,{ariaLabel:0})}},Gr=ws;var Zo=require("@vkontakte/videoplayer-shared");var l2={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",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_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_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_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},ef=l2;var s2={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",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_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_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_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode"},tf=s2;var Kn=new Map;Kn.set(Zo.InterfaceLanguage.EN,tf);Kn.set(Zo.InterfaceLanguage.RU,ef);var nf=new Map,Cs=({language:i,pack:e,fallback:t})=>{if(Kn.has(i)){let n=Kn.get(i);Kn.set(i,{...n,...e})}else Kn.set(i,e);nf.set(i,t)},Ss=i=>Kn.has(i),Ps=(i,e,t,n)=>{let l=Kn.get(i)?.[e];if((0,Zo.isNullable)(l)){let r=nf.get(i)??n;l=(r?Kn.get(r):void 0)?.[e]}return(0,Zo.isNullable)(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,s)=>t[s]??""):l},z=(i,e)=>{let{interfaceLanguage$:t}=je(),n=We(t),o=Ct();return Ps(n,i,e,o.defaultLanguage)};var h8=require("@vkontakte/videoplayer-core");var jo;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(jo||(jo={}));var a2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,c2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xr="?",f2="X-Sentry-Auth",d2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function m2(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let l=0;l<t.length;++l){if(n=a2.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||xr,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=c2.exec(t[l]))o={filename:n[2],function:n[1]||xr,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=u2.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||xr,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=xr),e.push(o)}return e.length?{value:of(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function of(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function p2(i){try{let e=m2(i);if(e)return e}catch{}return{value:of(i),type:i&&i.name,stacktrace:{frames:[]}}}function h2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Qr=class{constructor(e){if(e&&e.dsn){let t=d2.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/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:[p2(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(f2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:h2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function rf(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function b2(){return window}var Yr=class i extends Qr{constructor(e,t=b2()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=c=>c,beforeBreadcrumb:l=c=>c,blacklistUrls:r=[],ignoreErrors:s=[],release:a=void 0}=this.options||{};this.plugins=n.map(c=>new c(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,this.ignoreErrors=s,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>rf(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>rf(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],s=Array.isArray(r)?r:null;return{...t,[n]:l||s?[...l||[],...s||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var wo=require("@vkontakte/videoplayer-shared");var Xr=null,Co=class{constructor(e,t,n={}){!Xr&&e.dsn&&(this.sentryClient=new Yr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new wo.Subscription,this.options=e,this.context=n,Xr=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Xr=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:s=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:b,category:v}=t;if((0,wo.isNonNullable)(v)&&p.includes(v)||(0,wo.isNonNullable)(b)&&f.includes(b))return;if(Math.random()<=s||(0,wo.isNonNullable)(v)&&c.includes(v)||(0,wo.isNonNullable)(b)&&a.includes(b)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{b&&o.captureMessage(b,t.fatal?jo.fatal:jo.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return Xr}};var Jr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},$r=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),lf=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},to=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},el=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},tl=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},sf=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Ts=require("@vkontakte/videoplayer-shared"),af=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:(0,Ts.isMacLike)()?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:(0,Ts.isMacLike)()?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var io=require("@vkontakte/videoplayer-shared");var So=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,io.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new io.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,io.getCurrentBrowser)().browser===io.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){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let 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 Po(i){return i instanceof So}function _2(i){let e=je();return gt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ms=class extends K{constructor(e){super(),W(this,e,_2,null,q,{})}},uf=Ms;var cf=require("@vkontakte/videoplayer-shared");function g2(i){ve(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function v2(i){let e=z("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Se(e)},m(n,o){k(n,t,o)},p(n,o){o&3&&e!==(e=z("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Fe(t,e)},d(n){n&&y(t)}}}function y2(i){let e,t=z("skip_ads_now")+"",n,o,l,r,s,a;return{c(){e=T("div"),n=Se(t),o=N(),l=A("svg"),r=A("path"),u(r,"fill-rule","evenodd"),u(r,"clip-rule","evenodd"),u(r,"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(l,"class","icon svelte-1k4i25s"),u(l,"width","7"),u(l,"height","12"),u(l,"viewBox","0 0 7 12"),u(l,"fill","none"),u(l,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","skip svelte-1k4i25s")},m(c,f){k(c,e,f),d(e,n),d(e,o),d(e,l),d(l,r),s||(a=de(e,"click",Je(function(){di(i[2])&&i[2].apply(this,arguments)})),s=!0)},p(c,f){i=c},d(c){c&&y(e),s=!1,a()}}}function k2(i){let e;function t(l,r){return l[3]?y2:v2}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),u(e,"class","container svelte-1k4i25s"),V(e,"container-mobile",i[4]),V(e,"skippable",i[3])},m(l,r){k(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&V(e,"container-mobile",l[4]),r&8&&V(e,"skippable",l[3])},i:L,o:L,d(l){l&&y(e),o.d()}}}function w2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=cf.noop}=e,a=je().ui.isMobile;D(i,a,f=>t(4,n=f));let c;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,c=o>0&&o>=l)},[o,l,r,c,n,a]}var As=class extends K{constructor(e){super(),W(this,e,w2,k2,q,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},g2)}},ff=As;function C2(i){ve(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function S2(i){let e;return{c(){e=T("button"),e.textContent=`${z("visit_advertiser")}`,u(e,"class","svelte-1wy3dql")},m(t,n){k(t,e,n)},p:L,i:L,o:L,d(t){t&&y(e)}}}var Vs=class extends K{constructor(e){super(),W(this,e,null,S2,q,{},C2)}},df=Vs;function P2(i){ve(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
15
15
|
360deg,
|
|
16
16
|
rgba(0, 0, 0, 0) 0%,
|
|
17
17
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -21,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 xl(t){let e;return{c(){e=I("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(i,n){A(i,e,n)},d(i){i&&P(e)}}}function $l(t){let e,i;return e=new gf({props:{position:t[5],secondsToWatchBeforeSkip:t[6],skipAd:t[8].actions.internal.skipAd}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function es(t){let e,i;return e=new ff({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ts(t){let e,i;return e=new kf({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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]&&xl(),c=t[3]&&$l(t),f=t[7]&&es(),d=t[4]&&ts();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(),d&&d.c(),It(n,"width","100%"),It(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(h,v){A(h,e,v),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),d&&d.m(e,null),t[20](e),r=!0},p(h,[v]){h[0]?a||(a=xl(),a.c(),a.m(e,i)):a&&(a.d(1),a=null),h[3]?c?(c.p(h,v),v&8&&m(c,1)):(c=$l(h),c.c(),m(c,1),c.m(e,s)):c&&(fe(),g(c,1,1,()=>{c=null}),de()),h[7]?f?v&128&&m(f,1):(f=es(),f.c(),m(f,1),f.m(e,l)):f&&(fe(),g(f,1,1,()=>{f=null}),de()),h[4]?d?v&16&&m(d,1):(d=ts(),d.c(),m(d,1),d.m(e,null)):d&&(fe(),g(d,1,1,()=>{d=null}),de())},i(h){r||(m(c),m(f),m(d),r=!0)},o(h){g(c),g(f),g(d),r=!1},d(h){h&&P(e),a&&a.d(),t[19](null),c&&c.d(),f&&f.d(),d&&d.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:d=0}=e;const h=ht(),v=h.state.isEnded$;R(t,v,w=>i(7,r=w));const k=h.ui.isMobile;R(t,k,w=>i(0,o=w));let _,S,C=!1;const T=h.ads.playbackState;R(t,T,w=>i(18,n=w));const y=h.ads.canSkip,L=h.ads.position;R(t,L,w=>i(5,s=w));const le=h.ads.secondsToWatchBeforeSkip;R(t,le,w=>i(6,l=w));let Y,N;nn(()=>{const w=new AbortController;let $=()=>{w.abort()};const X=h.getAdmanWrapper();if(!a){X.onAdmanLoadingError();return}const{width:O,height:W}=Je(h.ui.playerSize),B=Je(h.ui.isFullscreen),J=Je(h.ui.isAutoplay),E={width:O,height:W,isFullscreen:B,isAutoplay:J,adsContainer:_,adsVideoElement:S,slotId:a,params:c,previewParam:f,duration:d};return window.AdmanHTML?(X.initAdman(E),C=!0):X.loadAdman(w.signal).then(()=>{X.initAdman(E),C=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!C&&$()}});function ee(w){ve[w?"unshift":"push"](()=>{S=w,i(2,S)})}function Q(w){ve[w?"unshift":"push"](()=>{_=w,i(1,_)})}return t.$$set=w=>{"adsSlotId"in w&&i(14,a=w.adsSlotId),"adsParams"in w&&i(15,c=w.adsParams),"adsPreviewParam"in w&&i(16,f=w.adsPreviewParam),"duration"in w&&i(17,d=w.duration)},t.$$.update=()=>{t.$$.dirty&262144&&i(3,Y=y&&n!==Xt.INACTIVE),t.$$.dirty&262145&&i(4,N=o&&n!==Xt.INACTIVE)},[o,_,S,Y,N,s,l,r,h,v,k,T,L,le,a,c,f,d,n,ee,Q]}class M1 extends _e{constructor(e){super(),ge(this,e,Cf,yf,be,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},wf)}}const Ln=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 Tf(t){let e,i,n;return{c(){e=M("svg"),i=M("path"),n=M("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){A(o,e,s),p(e,i),p(e,n)},d(o){o&&P(e)}}}function Sf(t){let e,i,n;return{c(){e=M("svg"),i=M("rect"),n=M("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){A(o,e,s),p(e,i),p(e,n)},d(o){o&&P(e)}}}function Pf(t){let e;function i(s,l){return s[0]?Sf:Tf}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),A(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:q,o:q,d(s){s&&P(e),o.d(s)}}}function Af(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(),ge(this,e,Af,Pf,be,{isActive:0})}}function If(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 Ef(t){let e=Ln(t[4]-t[3])+"",i;return{c(){i=Oe(e)},m(n,o){A(n,i,o)},p(n,o){o&24&&e!==(e=Ln(n[4]-n[3])+"")&&xe(i,e)},i:q,o:q,d(n){n&&P(i)}}}function Vf(t){let e,i,n;return i=new B1({props:{isActive:!0}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","thumb-timer-live-icon v-7pnl2h")},m(o,s){A(o,e,s),H(i,e,null),n=!0},p:q,i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Lf(t){let e,i,n,o,s,l,r;const a=[Vf,Ef],c=[];function f(d,h){return d[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"),V(e,"live",t[1]),V(e,"hidden",t[0]),V(e,"playing",t[2])},m(d,h){A(d,e,h),p(e,i),p(e,n),p(e,o),c[s].m(o,null),r=!0},p(d,[h]){let v=s;s=f(d),s===v?c[s].p(d,h):(fe(),g(c[v],1,1,()=>{c[v]=null}),de(),l=c[s],l?l.p(d,h):(l=c[s]=a[s](d),l.c()),m(l,1),l.m(o,null)),(!r||h&2)&&V(e,"live",d[1]),(!r||h&1)&&V(e,"hidden",d[0]),(!r||h&4)&&V(e,"playing",d[2])},i(d){r||(m(l),r=!0)},o(d){g(l),r=!1},d(d){d&&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(),ge(this,e,Mf,Lf,be,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},If)}}const _l=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)}}},io=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===Se.Tab&&!t.shiftKey||e===Se.ArrowDown},Df=t=>{const e=t.code;return e===Se.Tab||e===Se.ArrowUp},R1=t=>t.code===Se.Escape,Of=t=>t.code===Se.ArrowLeft,D1=(t,e=!0)=>{const i=t.code;return[Se.Enter,Se.Space].includes(i)||!e&&i===Se.ArrowRight},O1=t=>{if(Rf(t)){io(t),Nf(t.target);return}Df(t)&&(io(t),Bf(t.target))},Sl=t=>t?.detail===0,Pl=async(t,e,i)=>{await jn(),t&&!t.classList.contains("opened")&&!e&&Je(i)&&(await jn(),i.set(!1),t.focus())},zf=async(t,e,i)=>{await jn(),t&&!e&&Je(i)&&(i.set(!1),t.focus())},Qo=async(t,e,i)=>{await jn(),!!t&&e&&i&&(await jn(),t.firstChild.focus())},Uo=async(t,e,i)=>{!!t&&i&&(e.set(!1),setTimeout(()=>{t.focus()},Ec))},z1=(t,e)=>{O1(t),R1(t)&&(io(t),e())},qo=async(t,e,i)=>{D1(t,!1)&&(io(t),e(),await jn(),i()?.focus())},Zo=async(t,e,i,n)=>{if(O1(t),Of(t)){io(t),e(),i.set(!0);return}R1(t)&&(io(t),n())},$i=(t,e)=>{D1(t)&&(io(t),e())},Hf=t=>{const e=t.getBoundingClientRect(),i=-14,n=e.left+e.width,o=e.top+i;return{right:n,bottom:o}},Ff=t=>{if(!t)return{top:0,left:0};const e=t.getBoundingClientRect(),i=-58,n=To,o=e.left+n;return{bottom:e.bottom+i,left:o}};function Uf(t){Ke(t,"v-1vzqlps","ul.v-1vzqlps{position:absolute;border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.v-1vzqlps{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}li.v-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function is(t){let e,i,n,o,s,l,r,a,c=(t[10].features.saveDebugInfoToFile?K("menu_save_debug"):K("menu_copy_debug"))+"",f,d,h,v=K("menu_debug_overlay")+"",k,_,S,C,T=t[10].features.copyVideoLink&&t[9].callbacks?.onCopyVideoLink&&qf(t),y=t[12]&&t[6]!==$e.ChromecastState.CONNECTED&&!t[17]&&os(t);function L(Q,w){return Q[4]?Wf:Zf}let le=L(t),Y=le(t),N=t[10].features.videoRotate&&!t[17]&&jf(t),ee=t[10].showSupport&&!t[7]&&ls(t);return{c(){e=I("ul"),T&&T.c(),i=D(),y&&y.c(),n=D(),o=I("li"),Y.c(),s=D(),N&&N.c(),l=D(),ee&&ee.c(),r=D(),a=I("li"),f=Oe(c),d=D(),h=I("li"),k=Oe(v),u(o,"tabindex","0"),u(o,"role","menuitem"),u(o,"aria-label",K("aria_label_menu_loop")),u(o,"class","v-1vzqlps"),u(a,"tabindex","0"),u(a,"role","menuitem"),u(a,"aria-label",t[10].features.saveDebugInfoToFile?K("menu_save_debug"):K("menu_copy_debug")),u(a,"class","v-1vzqlps"),u(h,"tabindex","0"),u(h,"role","menuitem"),u(h,"aria-label",_=t[8]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable")),u(h,"class","v-1vzqlps"),u(e,"role","menu"),It(e,"top",t[3]+"px"),It(e,"left",t[2]+"px"),u(e,"class","v-1vzqlps")},m(Q,w){A(Q,e,w),T&&T.m(e,null),p(e,i),y&&y.m(e,null),p(e,n),p(e,o),Y.m(o,null),p(e,s),N&&N.m(e,null),p(e,l),ee&&ee.m(e,null),p(e,r),p(e,a),p(a,f),p(e,d),p(e,h),p(h,k),t[42](e),S||(C=[he(o,"click",ot(t[24])),he(o,"keydown",t[30]),he(a,"click",ot(t[21])),he(a,"keydown",t[32]),he(h,"click",ot(t[22])),he(h,"keydown",t[33]),he(e,"contextmenu",Jt(t[39])),he(e,"keydown",t[26])],S=!0)},p(Q,w){Q[10].features.copyVideoLink&&Q[9].callbacks?.onCopyVideoLink&&T.p(Q,w),Q[12]&&Q[6]!==$e.ChromecastState.CONNECTED&&!Q[17]?y?y.p(Q,w):(y=os(Q),y.c(),y.m(e,n)):y&&(y.d(1),y=null),le===(le=L(Q))&&Y?Y.p(Q,w):(Y.d(1),Y=le(Q),Y&&(Y.c(),Y.m(o,null))),Q[10].features.videoRotate&&!Q[17]&&N.p(Q,w),Q[10].showSupport&&!Q[7]?ee?ee.p(Q,w):(ee=ls(Q),ee.c(),ee.m(e,r)):ee&&(ee.d(1),ee=null),w[0]&256&&_!==(_=Q[8]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable"))&&u(h,"aria-label",_),w[0]&8&&It(e,"top",Q[3]+"px"),w[0]&4&&It(e,"left",Q[2]+"px")},d(Q){Q&&P(e),T&&T.d(),y&&y.d(),Y.d(),N&&N.d(),ee&&ee.d(),t[42](null),S=!1,nt(C)}}}function qf(t){let e,i=K("menu_copy_video_link")+"",n,o,s,l,r,a=!t[5]&&!t[17]&&ns(t);return{c(){e=I("li"),n=Oe(i),o=D(),a&&a.c(),s=ct(),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",K("menu_copy_video_link")),u(e,"class","v-1vzqlps")},m(c,f){A(c,e,f),p(e,n),A(c,o,f),a&&a.m(c,f),A(c,s,f),l||(r=[he(e,"click",ot(t[40])),he(e,"keydown",t[27])],l=!0)},p(c,f){!c[5]&&!c[17]?a?a.p(c,f):(a=ns(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 ns(t){let e,i=K("menu_copy_video_link_with_timestamp")+"",n,o,s;return{c(){e=I("li"),n=Oe(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",K("menu_copy_video_link_with_timestamp")),u(e,"class","v-1vzqlps")},m(l,r){A(l,e,r),p(e,n),o||(s=[he(e,"click",ot(t[41])),he(e,"keydown",t[28])],o=!0)},p:q,d(l){l&&P(e),o=!1,nt(s)}}}function os(t){let e,i=K("menu_pip")+"",n,o,s;return{c(){e=I("li"),n=Oe(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",K("menu_pip")),u(e,"class","v-1vzqlps")},m(l,r){A(l,e,r),p(e,n),o||(s=[he(e,"click",ot(t[23])),he(e,"keydown",t[29])],o=!0)},p:q,d(l){l&&P(e),o=!1,nt(s)}}}function Zf(t){let e=K("menu_video_loop_on")+"",i;return{c(){i=Oe(e)},m(n,o){A(n,i,o)},p:q,d(n){n&&P(i)}}}function Wf(t){let e=K("menu_video_loop_off")+"",i;return{c(){i=Oe(e)},m(n,o){A(n,i,o)},p:q,d(n){n&&P(i)}}}function jf(t){let e,i=K("menu_video_rotate")+"",n,o,s;return{c(){e=I("li"),n=Oe(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",K("aria_label_menu_rotate")),u(e,"class","v-1vzqlps")},m(l,r){A(l,e,r),p(e,n),o||(s=[he(e,"click",ot(t[19])),he(e,"keydown",t[30])],o=!0)},p:q,d(l){l&&P(e),o=!1,nt(s)}}}function ls(t){let e,i=K("menu_report")+"",n,o,s;return{c(){e=I("li"),n=Oe(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-1vzqlps")},m(l,r){A(l,e,r),p(e,n),o||(s=[he(e,"click",ot(t[20])),he(e,"keydown",t[31])],o=!0)},p:q,d(l){l&&P(e),o=!1,nt(s)}}}function Kf(t){let e,i=t[1]&&is(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),A(n,e,o)},p(n,o){n[1]?i?i.p(n,o):(i=is(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:q,o:q,d(n){n&&P(e),i&&i.d(n)}}}function Gf(t,e,i){let n,o,s,l,r,a,{visible:c=!1}=e,{supportLink:f}=e,{position:d={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:v=void 0}=e,{menuElementRef:k=void 0}=e,{returnFocus:_}=e,S=0,C=0;const T=ht(),y=an(),L=T.ui.contextMenu.visible$,le=T.ui.debugPanelVisible;R(t,le,ne=>i(8,a=ne));const Y=T.webApi.pictureInPictureApi,N=T.webApi.pictureInPictureApi?.info.isActive$;R(t,N,ne=>i(7,r=ne));const ee=T.state.chromecastState$;R(t,ee,ne=>i(6,l=ne));const Q=T.state.isLive$;R(t,Q,ne=>i(5,s=ne));const w=T.state.positionExact$;R(t,w,ne=>i(43,n=ne));const $=T.state.isInteractive,X=T.state.looped$;R(t,X,ne=>i(4,o=ne));const O=()=>{L.set(!1)},W=(ne,G)=>{if(!k||!h||!v)return;const Ce=k.getBoundingClientRect(),re=h.getBoundingClientRect();i(2,S=ne-re.left),i(3,C=G-re.top),S+Ce.width>re.width&&i(2,S=re.width-Ce.width),C+Ce.height>re.height&&i(3,C=re.height-Ce.height),i(2,S=Math.max(S,0)),i(3,C=Math.max(C,0))},B=()=>{O(),T.actions.internal.videoRotate()},J=()=>{window.open(f,"_blank"),O(),T.actions.internal.pause()},E=()=>{const ne=T.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){const G=new Blob([...ne],{type:"plain/text"}),Ce=window.URL.createObjectURL(G);d1(Ce,"vk_player_debug_info","txt")}else _l(T.actions.internal.getDebugTextData());O(),_?.()},z=()=>{le.set(!0),O(),_?.()},Te=async()=>{try{Y?.isActive()?await Y?.remove():await Y?.request()}finally{O(),_?.()}},ze=()=>{T.actions.internal.setLooped(!o),O()},Ve=(ne=!1)=>{if(T.callbacks?.onCopyVideoLink){const G=T.callbacks?.onCopyVideoLink(ne,n);G&&_l(G)}O()},Le=ne=>{z1(ne,O)},Pe=ne=>{$i(ne,()=>Ve())},pe=ne=>{$i(ne,()=>Ve(!0))},Z=ne=>{$i(ne,()=>Te())},me=ne=>{$i(ne,()=>B())},Ae=ne=>{$i(ne,()=>J())},Ue=ne=>{$i(ne,()=>E())},Ge=ne=>{$i(ne,()=>z())};function ae(ne){to.call(this,t,ne)}const ye=()=>Ve(),Me=()=>Ve(!0);function je(ne){ve[ne?"unshift":"push"](()=>{k=ne,i(0,k)})}return t.$$set=ne=>{"visible"in ne&&i(1,c=ne.visible),"supportLink"in ne&&i(34,f=ne.supportLink),"position"in ne&&i(35,d=ne.position),"playerContainerRef"in ne&&i(36,h=ne.playerContainerRef),"controlsContainerRef"in ne&&i(37,v=ne.controlsContainerRef),"menuElementRef"in ne&&i(0,k=ne.menuElementRef),"returnFocus"in ne&&i(38,_=ne.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&1|t.$$.dirty[1]&112&&k&&h&&v){const{top:ne,left:G,bottom:Ce,right:re}=d;let ke=G??0,He=ne??0;const et=k.getBoundingClientRect();ie.isNullable(G)&&!ie.isNullable(re)&&(ke=re-et.width),ie.isNullable(ne)&&!ie.isNullable(Ce)&&(He=Ce-et.height),ke=Math.max(ke,0),He=Math.max(He,0),W(ke,He)}},[k,c,S,C,o,s,l,r,a,T,y,le,Y,N,ee,Q,w,$,X,B,J,E,z,Te,ze,Ve,Le,Pe,pe,Z,me,Ae,Ue,Ge,f,d,h,v,_,ae,ye,Me,je]}class Yf extends _e{constructor(e){super(),ge(this,e,Gf,Kf,be,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},Uf,[-1,-1])}}class Qf{value;next;constructor(e){this.value=e,this.next=null}}class ll{top;bottom;size;maxSize;constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new Qf(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 Xf(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 Jf(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){A(n,e,o),p(e,i),t[3](i)},p:q,i:q,o:q,d(n){n&&P(e),t[3](null)}}}const sl=16,rl=120,ss=60;function xf(t,e,i,n,o){o===0&&(o=1),t.fillStyle="#fff",t.fillRect(e,i,n,o)}function $f(t,e,i){let{values:n=[]}=e,o,s;const l=rl/ss;nn(()=>{i(0,o.width=rl,o),i(0,o.height=sl,o),i(2,s=o.getContext("2d"))});function r(a){ve[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,rl,sl);let c=ss-1;for(let f=n.length-1;f>=0;f--){const d=c*l,h=a>0?sl*(n[f]/a):0;xf(s,d,0,l,h),c--}}},[o,n,s,r]}class Al extends _e{constructor(e){super(),ge(this,e,$f,Jf,be,{values:1},Xf)}}function e0(t){Ke(t,"v-1fypj5i",".container.v-1fypj5i.v-1fypj5i.v-1fypj5i{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-1fypj5i.v-1fypj5i.v-1fypj5i{top:16px;left:16px}button.v-1fypj5i.v-1fypj5i.v-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1fypj5i.v-1fypj5i.v-1fypj5i{padding:5px}.content.v-1fypj5i>div.v-1fypj5i>div.v-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function rs(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=Oe(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){A(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+"")&&xe(l,s)},d(r){r&&P(e)}}}function as(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=Oe(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){A(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+"")&&xe(l,s)},d(r){r&&P(e)}}}function us(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=Oe(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){A(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+"")&&xe(l,s)},d(r){r&&P(e)}}}function cs(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=Oe(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){A(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+"")&&xe(l,s)},d(r){r&&P(e)}}}function fs(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=Oe(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){A(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+"")&&xe(l,s)},d(r){r&&P(e)}}}function ds(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=Oe(s),r=Oe(" %"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(a,c){A(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+"")&&xe(l,s)},d(a){a&&P(e)}}}function ms(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=Oe(s),r=Oe(" s"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(a,c){A(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)+"")&&xe(l,s)},d(a){a&&P(e)}}}function ps(t){let e,i,n,o,s=[{value:t[0].currentVideoSegmentLength,title:"Video"},{value:t[0].currentAudioSegmentLength,title:"Audio"}].filter(gs).map(_s).join(" / ")+"",l;return{c(){e=I("div"),i=I("div"),i.textContent="Segment",n=D(),o=I("span"),l=Oe(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){A(r,e,a),p(e,i),p(e,n),p(e,o),p(o,l)},p(r,a){a&1&&s!==(s=[{value:r[0].currentVideoSegmentLength,title:"Video"},{value:r[0].currentAudioSegmentLength,title:"Audio"}].filter(gs).map(_s).join(" / ")+"")&&xe(l,s)},d(r){r&&P(e)}}}function hs(t){let e,i,n,o,s,l,r=t[0].speed.toFixed(2)+"",a,c,f;return o=new Al({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=Oe(r),c=Oe(" Kbps"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(d,h){A(d,e,h),p(e,i),p(e,n),H(o,e,null),p(e,s),p(e,l),p(l,a),p(l,c),f=!0},p(d,h){const v={};h&32&&(v.values=d[5]),o.$set(v),(!f||h&1)&&r!==(r=d[0].speed.toFixed(2)+"")&&xe(a,r)},i(d){f||(m(o.$$.fragment,d),f=!0)},o(d){g(o.$$.fragment,d),f=!1},d(d){d&&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 Al({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=Oe(r),c=Oe(" Kbps"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(d,h){A(d,e,h),p(e,i),p(e,n),H(o,e,null),p(e,s),p(e,l),p(l,a),p(l,c),f=!0},p(d,h){const v={};h&64&&(v.values=d[6]),o.$set(v),(!f||h&1)&&r!==(r=d[0].bitrate.toFixed(2)+"")&&xe(a,r)},i(d){f||(m(o.$$.fragment,d),f=!0)},o(d){g(o.$$.fragment,d),f=!1},d(d){d&&P(e),F(o)}}}function t0(t){let e,i,n,o,s,l,r,a,c=t[0].version+"",f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w,$,X,O,W,B,J,E,z,Te,ze,Ve,Le,Pe,pe,Z=t[0].id&&rs(t),me=t[0].provider&&as(t),Ae=t[0].viewport&&us(t),Ue=t[0].videoSize&&cs(t),Ge=t[0].cdn&&fs(t),ae=t[0].volume&&ds(t),ye=t[0].buffer&&ms(t),Me=(t[0].currentVideoSegmentLength||t[0].currentAudioSegmentLength)&&ps(t),je=t[0].speed&&hs(t),ne=t[0].bitrate&&bs(t);return z=new Al({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=Oe(c),d=D(),Z&&Z.c(),h=D(),me&&me.c(),v=D(),Ae&&Ae.c(),k=D(),Ue&&Ue.c(),_=D(),Ge&&Ge.c(),S=D(),ae&&ae.c(),C=D(),ye&&ye.c(),T=D(),Me&&Me.c(),y=D(),L=I("div"),le=I("div"),le.textContent="Dropped",Y=D(),N=I("span"),ee=Oe(t[2]),Q=Oe(" / "),w=Oe(t[1]),$=Oe(" frames"),X=D(),je&&je.c(),O=D(),ne&&ne.c(),W=D(),B=I("div"),J=I("div"),J.textContent="FPS",E=D(),U(z.$$.fragment),Te=D(),ze=I("span"),Ve=Oe(t[3]),u(i,"class","close v-1fypj5i"),u(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(l,"class","v-1fypj5i"),u(s,"class","v-1fypj5i"),u(le,"class","v-1fypj5i"),u(L,"class","v-1fypj5i"),u(J,"class","v-1fypj5i"),u(B,"class","v-1fypj5i"),u(o,"class","content v-1fypj5i"),u(e,"class","container v-1fypj5i"),u(e,"role","region"),u(e,"aria-label",K("aria_label_debug_panel")),V(e,"container-mobile",t[7])},m(G,Ce){A(G,e,Ce),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,d),Z&&Z.m(o,null),p(o,h),me&&me.m(o,null),p(o,v),Ae&&Ae.m(o,null),p(o,k),Ue&&Ue.m(o,null),p(o,_),Ge&&Ge.m(o,null),p(o,S),ae&&ae.m(o,null),p(o,C),ye&&ye.m(o,null),p(o,T),Me&&Me.m(o,null),p(o,y),p(o,L),p(L,le),p(L,Y),p(L,N),p(N,ee),p(N,Q),p(N,w),p(N,$),p(o,X),je&&je.m(o,null),p(o,O),ne&&ne.m(o,null),p(o,W),p(o,B),p(B,J),p(B,E),H(z,B,null),p(B,Te),p(B,ze),p(ze,Ve),Le=!0,Pe||(pe=he(i,"click",ot(t[9])),Pe=!0)},p(G,[Ce]){(!Le||Ce&1)&&c!==(c=G[0].version+"")&&xe(f,c),G[0].id?Z?Z.p(G,Ce):(Z=rs(G),Z.c(),Z.m(o,h)):Z&&(Z.d(1),Z=null),G[0].provider?me?me.p(G,Ce):(me=as(G),me.c(),me.m(o,v)):me&&(me.d(1),me=null),G[0].viewport?Ae?Ae.p(G,Ce):(Ae=us(G),Ae.c(),Ae.m(o,k)):Ae&&(Ae.d(1),Ae=null),G[0].videoSize?Ue?Ue.p(G,Ce):(Ue=cs(G),Ue.c(),Ue.m(o,_)):Ue&&(Ue.d(1),Ue=null),G[0].cdn?Ge?Ge.p(G,Ce):(Ge=fs(G),Ge.c(),Ge.m(o,S)):Ge&&(Ge.d(1),Ge=null),G[0].volume?ae?ae.p(G,Ce):(ae=ds(G),ae.c(),ae.m(o,C)):ae&&(ae.d(1),ae=null),G[0].buffer?ye?ye.p(G,Ce):(ye=ms(G),ye.c(),ye.m(o,T)):ye&&(ye.d(1),ye=null),G[0].currentVideoSegmentLength||G[0].currentAudioSegmentLength?Me?Me.p(G,Ce):(Me=ps(G),Me.c(),Me.m(o,y)):Me&&(Me.d(1),Me=null),(!Le||Ce&4)&&xe(ee,G[2]),(!Le||Ce&2)&&xe(w,G[1]),G[0].speed?je?(je.p(G,Ce),Ce&1&&m(je,1)):(je=hs(G),je.c(),m(je,1),je.m(o,O)):je&&(fe(),g(je,1,1,()=>{je=null}),de()),G[0].bitrate?ne?(ne.p(G,Ce),Ce&1&&m(ne,1)):(ne=bs(G),ne.c(),m(ne,1),ne.m(o,W)):ne&&(fe(),g(ne,1,1,()=>{ne=null}),de());const re={};Ce&16&&(re.values=G[4]),z.$set(re),(!Le||Ce&8)&&xe(Ve,G[3]),(!Le||Ce&128)&&V(e,"container-mobile",G[7])},i(G){Le||(m(je),m(ne),m(z.$$.fragment,G),Le=!0)},o(G){g(je),g(ne),g(z.$$.fragment,G),Le=!1},d(G){G&&P(e),Z&&Z.d(),me&&me.d(),Ae&&Ae.d(),Ue&&Ue.d(),Ge&&Ge.d(),ae&&ae.d(),ye&&ye.d(),Me&&Me.d(),je&&je.d(),ne&&ne.d(),F(z),Pe=!1,pe()}}}const gs=({value:t})=>t,_s=({value:t,title:e})=>`${e} ${((t??0)/1e3).toFixed(2)} s`;function i0(t,e,i){let n;const o=ht(),s=o.ui.debugPanelVisible,l=o.ui.isMobile;R(t,l,y=>i(7,n=y));const r=()=>{ie.safeStorage.remove(bl),s.set(!1)};let a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,d=0,h=0;const v=new ll(60),k=new ll(60),_=new ll(60);let S=[],C=[],T=[];return nn(()=>{ie.safeStorage.set(bl,"true"),o.actions.internal.startLogging(),c&&(i(2,d=c.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=c.getVideoPlaybackQuality().totalVideoFrames));const y=window.setInterval(()=>{i(0,a=o.actions.internal.getDebugPanelData())},500);let L;return c&&(L=window.setInterval(()=>{if(c){i(2,d=c.getVideoPlaybackQuality().droppedVideoFrames);const le=c.getVideoPlaybackQuality().totalVideoFrames;i(3,h=le-f),i(1,f=le),v.push(h),a.speed&&k.push(a.speed),a.bitrate&&_.push(a.bitrate),i(4,S=v.getValuesFromBottom()),i(5,C=k.getValuesFromBottom()),i(6,T=_.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),L&&clearInterval(L)}}),[a,f,d,h,S,C,T,n,l,r]}class H1 extends _e{constructor(e){super(),ge(this,e,i0,t0,be,{},e0)}}function n0(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 o0(t){let e,i,n;return{c(){e=I("div"),u(e,"class","close v-1ome55p")},m(o,s){A(o,e,s),i||(n=he(e,"click",ot(t[0])),i=!0)},p:q,i:q,o:q,d(o){o&&P(e),i=!1,n()}}}function l0(t){function e(i){to.call(this,t,i)}return[e]}class s0 extends _e{constructor(e){super(),ge(this,e,l0,o0,be,{},n0)}}function r0(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 a0(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("canvas"),n=D(),o=M("svg"),s=M("g"),l=M("g"),r=M("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){A(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:q,i:q,o:q,d(a){a&&P(e),t[2](null)}}}const u0=5e3;function c0(t,e,i){let{onTimerEnded:n=ie.noop}=e,o;nn(()=>{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)/u0;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){ve[l?"unshift":"push"](()=>{o=l,i(0,o)})}return t.$$set=l=>{"onTimerEnded"in l&&i(1,n=l.onTimerEnded)},[o,n,s]}class f0 extends _e{constructor(e){super(),ge(this,e,c0,a0,be,{onTimerEnded:1},r0)}}function d0(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 vs(t){let e,i;return e=new f0({props:{onTimerEnded:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&4&&(s.onTimerEnded=n[2]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function m0(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le;r=new s0({}),r.$on("click",t[4]);let Y=t[3]&&vs(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"),d=I("div"),h=I("div"),v=D(),Y&&Y.c(),_=D(),S=I("div"),C=I("div"),T=Oe(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(d,"class","thumb v-kisfwc"),u(d,"style",k=`background-image: url('${t[1]}')`),u(f,"class","column v-kisfwc"),u(C,"class","title v-kisfwc"),u(S,"class","column v-kisfwc"),u(c,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(N,ee){A(N,e,ee),A(N,i,ee),A(N,n,ee),p(n,o),p(o,s),p(o,l),H(r,o,null),p(n,a),p(n,c),p(c,f),p(f,d),p(d,h),p(d,v),Y&&Y.m(d,null),p(c,_),p(c,S),p(S,C),p(C,T),y=!0,L||(le=he(c,"click",function(){_n(t[2])&&t[2].apply(this,arguments)}),L=!0)},p(N,[ee]){t=N,t[3]?Y?(Y.p(t,ee),ee&8&&m(Y,1)):(Y=vs(t),Y.c(),m(Y,1),Y.m(d,null)):Y&&(fe(),g(Y,1,1,()=>{Y=null}),de()),(!y||ee&2&&k!==(k=`background-image: url('${t[1]}')`))&&u(d,"style",k),(!y||ee&1)&&xe(T,t[0])},i(N){y||(m(r.$$.fragment,N),m(Y),y=!0)},o(N){g(r.$$.fragment,N),g(Y),y=!1},d(N){N&&(P(e),P(i),P(n)),F(r),Y&&Y.d(),L=!1,le()}}}function p0(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 h0 extends _e{constructor(e){super(),ge(this,e,p0,m0,be,{title:0,thumb:1,playNextVideo:2},d0)}}const F1=(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=F1(e,i);e<1&&t.actions.internal.setVolume(n)},Z1=(t,e,i)=>{const n=U1(e,i);e>0&&t.actions.internal.setVolume(n)},Po=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:n})=>t?(e?.(),!1):i?!0:(n?.(),!1);function b0(t){Ke(t,"v-10kkmxz",".keyboard-controls.v-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function g0(t){let e,i,n,o;const s=t[26].default,l=Mn(s,t,t[25],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){A(r,e,a),l&&l.m(e,null),t[27](e),i=!0,n||(o=[he(e,"keyup",t[17]),he(e,"keydown",t[16])],n=!0)},p(r,a){l&&l.p&&(!i||a[0]&33554432)&&Nn(l,s,r,r[25],i?Bn(s,r[25],a,null):Rn(r[25]),null)},i(r){i||(m(l,r),i=!0)},o(r){g(l,r),i=!1},d(r){r&&P(e),l&&l.d(r),t[27](null),n=!1,nt(o)}}}function _0(t,e,i){let n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,{$$slots:T={},$$scope:y}=e,{isAds:L}=e,{hideContextMenu:le}=e,{toggleFullscreen:Y}=e,{showHotKeyHelpers:N}=e,{showKeyMap:ee}=e,{fakePlayButtonHandler:Q}=e;const w=ht(),$=an(),X=w.getLogger().createComponentLog("KeyboardControls component"),O=w.state.playbackState$;R(t,O,ue=>i(31,o=ue));const W=w.ads.playbackState;R(t,W,ue=>i(30,n=ue));const B=w.state.positionExact$;R(t,B,ue=>i(41,k=ue));const J=w.state.duration$;R(t,J,ue=>i(40,v=ue));const E=w.state.volume$;R(t,E,ue=>i(44,C=ue));const z=w.ui.controls.disabledControls$;R(t,z,ue=>i(39,h=ue));const Te=w.state.muted$;R(t,Te,ue=>i(34,r=ue));const ze=w.state.currentSubtitle$;R(t,ze,ue=>i(33,l=ue));const Ve=w.state.currentPlaybackRate$;R(t,Ve,ue=>i(42,_=ue));const Le=w.state.availablePlaybackRates$;R(t,Le,ue=>i(43,S=ue));const Pe=w.ui.contextMenu.openedByHotKey$,pe=w.ui.contextMenu.lastActiveElem$,Z=w.ui.contextMenu.visible$,me=w.ui.contextMenu.position$,Ae=w.state.isEnded$;R(t,Ae,ue=>i(36,c=ue));const Ue=w.ui.overlayContainer$;R(t,Ue,ue=>i(32,s=ue));const Ge=w.callbacks?.onAudioDoesNotExistHint,ae=w.callbacks?.onAudioDisabledHint,ye=w.state.isAudioAvailable$;R(t,ye,ue=>i(35,a=ue));const Me=w.state.isAudioDisabled,je=w.state.isInteractiveTime$;R(t,je,ue=>i(38,d=ue));const{showInteractiveTimeIndicatorTooltip$:ne}=vo();R(t,ne,ue=>i(37,f=ue));let G=0,Ce=!0,re;const ke=()=>re?.focus(),He=ue=>(ue!==Ce&&(Ce=ue,G=0),G+=1,($.controls.seekStepKeyboard+$.controls.seekStepKeyboard*G)/1e3),et=ue=>{const st=ue.target,vt=st?.getAttribute("role")?.includes("menuitem"),ut=st.classList.contains("btn"),bt=ue.code;if(ut&&bt===Se.Space)return;const Ct=Bc.has(bt);if(vt&&Ct)return;const Be=!Mc.has(bt);if(ue.ctrlKey&&Be||ue.altKey&&Be||ue.metaKey)return;const Ft=vt&&bt===Se.Escape;Nc.has(bt)||Ft||le();const ce=o===$e.PlaybackState.PLAYING||o===$e.PlaybackState.PAUSED,ft=L&&(n===Xt.PAUSED||n===Xt.PLAYING),kt=!ft&&!h.has(at.TIMELINE);if(ce||ft)switch(X({message:`key down, code: ${bt}`}),bt){case Se.KeyJ:case Se.ArrowLeft:{if(!kt)break;if(ue.ctrlKey||ue.altKey){const We=w.actions.internal.getPrevEpisode();w.actions.internal.seekToPrevEpisode(We),We&&N({type:Xe.EPISODE_PREV,text:We.text}),ue.preventDefault()}else{const We=ue.shiftKey?He(!1):$.controls.seekStepKeyboard/1e3,tt=Math.max(k-We,0);k>0&&(w.actions.internal.seekTime(tt,pt.SeekAction.DOUBLE_TAP),N({type:Xe.BACKWARD_SEEK,text:We.toString()}),ue.preventDefault())}break}case Se.KeyL:case Se.ArrowRight:{if(!kt)break;if(ue.ctrlKey||ue.altKey){const We=w.actions.internal.getNextEpisode();w.actions.internal.seekToNextEpisode(We),We&&N({type:Xe.EPISODE_NEXT,text:We.text}),ue.preventDefault()}else{const We=ue.shiftKey?He(!0):$.controls.seekStepKeyboard/1e3,tt=Math.min(k+We,v);Math.round(k)<Math.round(v)&&(w.actions.internal.seekTime(tt,pt.SeekAction.DOUBLE_TAP),N({type:Xe.FORWARD_SEEK,text:We.toString()}),ue.preventDefault())}break}case Se.ArrowUp:{if(Po({isAudioDisabled:Me,audioDisabledHintCallback:ae,isAudioAvailable:a,audioIsNotExistHintCallback:Ge})){const We=C,tt=$.controls.volumeStepKeyboard,gt=We<=1;if(q1(w,We,tt),gt){const wt=Math.round(F1(We,tt)*100).toString();N({type:Xe.VOLUME,t:{key:"hotkey_helper_current_volume",value:wt}})}}ue.preventDefault();break}case Se.ArrowDown:{if(Po({isAudioDisabled:Me,audioDisabledHintCallback:ae,isAudioAvailable:a,audioIsNotExistHintCallback:Ge})){const We=C,tt=$.controls.volumeStepKeyboard,gt=We>=0;if(Z1(w,We,tt),gt){const wt=Math.round(U1(We,tt)*100).toString();N({type:Xe.VOLUME,t:{key:"hotkey_helper_current_volume",value:wt}})}}ue.preventDefault();break}case Se.Comma:{if(ue.shiftKey){w.actions.internal.decrementPlaybackRate();const We=S.find(tt=>tt.value===_);N({type:Xe.RATE_DOWN,text:We?.displayValue}),ue.preventDefault()}else{if(ft||o!==$e.PlaybackState.PAUSED)break;const We=Math.max(k-$.controls.seekStepFrame/1e3,0);k>0&&(N({type:Xe.BACKWARD_SEEK}),w.actions.internal.clearDelayedBufferingCheckTimeout(),w.actions.internal.seekTime(We,pt.SeekAction.DOUBLE_TAP),ue.preventDefault())}break}case Se.Period:{if(ue.shiftKey){w.actions.internal.incrementPlaybackRate();const We=S.find(tt=>tt.value===_);N({type:Xe.RATE_UP,text:We?.displayValue}),ue.preventDefault()}else{if(ft||o!==$e.PlaybackState.PAUSED)break;const We=Math.min(k+$.controls.seekStepFrame/1e3,v);k<v&&(N({type:Xe.FORWARD_SEEK}),w.actions.internal.clearDelayedBufferingCheckTimeout(),w.actions.internal.seekTime(We,pt.SeekAction.DOUBLE_TAP),ue.preventDefault())}break}case Se.KeyK:case Se.Space:if(!h.has(at.PLAY_BUTTON))if(d&&f&&ne.set(!1),Q)Q();else{w.actions.internal.togglePlay();let We=Xe.PLAY;o===$e.PlaybackState.PAUSED?We=Xe.PAUSE:c&&(We=Xe.REPLAY),N({type:We})}ue.preventDefault();break;case Se.KeyM:{Po({isAudioDisabled:Me,audioDisabledHintCallback:ae,isAudioAvailable:a,audioIsNotExistHintCallback:Ge})&&(N({type:r?Xe.VOLUME:Xe.MUTE}),w.actions.internal.toggleMuted()),ue.preventDefault();break}case Se.KeyF:Y(),ue.preventDefault();break;case Se.KeyC:w.actions.internal.toggleSubtitle(),l.value!=="off"?N({type:Xe.SUBTITLES_ON,text:l?.displayValue}):N({type:Xe.SUBTITLES_OFF}),ue.preventDefault();break;case Se.KeyI:w.actions.internal.togglePictureInPicture(),ue.preventDefault();break;case Se.Digit1:case Se.Numpad1:if(ue.shiftKey){const We=Ff(s);me.set(We),pe.set(st),Pe.set(!0),Z.set(!0),ue.preventDefault();break}N(),w.actions.internal.seekToPercent(.1,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit2:case Se.Numpad2:N(),w.actions.internal.seekToPercent(.2,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit3:case Se.Numpad3:N(),w.actions.internal.seekToPercent(.3,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit4:case Se.Numpad4:N(),w.actions.internal.seekToPercent(.4,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit5:case Se.Numpad5:N(),w.actions.internal.seekToPercent(.5,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit6:case Se.Numpad6:N(),w.actions.internal.seekToPercent(.6,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit7:case Se.Numpad7:N(),w.actions.internal.seekToPercent(.7,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit8:case Se.Numpad8:N(),w.actions.internal.seekToPercent(.8,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit9:case Se.Numpad9:N(),w.actions.internal.seekToPercent(.9,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Digit0:case Se.Numpad0:N(),w.actions.internal.seekToPercent(0,pt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Se.Slash:{ue.shiftKey&&$.features.hotKeyMapModal&&(ee(),ue.preventDefault());break}case Se.ShiftLeft:case Se.ShiftRight:ue.preventDefault();break;case Se.Tab:case Se.Escape:case Se.Enter:break;default:ie.checkNever(bt);break}},lt=ue=>{const st=ue.code;if(ue.ctrlKey||ue.altKey||ue.metaKey)return;const vt=o===$e.PlaybackState.PLAYING||o===$e.PlaybackState.PAUSED,ut=L&&(n===Xt.PAUSED||n===Xt.PLAYING);if(vt||ut)switch(st){case Se.ShiftLeft:case Se.ShiftRight:G=0;break}};function Ne(ue){ve[ue?"unshift":"push"](()=>{re=ue,i(0,re)})}return t.$$set=ue=>{"isAds"in ue&&i(18,L=ue.isAds),"hideContextMenu"in ue&&i(19,le=ue.hideContextMenu),"toggleFullscreen"in ue&&i(20,Y=ue.toggleFullscreen),"showHotKeyHelpers"in ue&&i(21,N=ue.showHotKeyHelpers),"showKeyMap"in ue&&i(22,ee=ue.showKeyMap),"fakePlayButtonHandler"in ue&&i(23,Q=ue.fakePlayButtonHandler),"$$scope"in ue&&i(25,y=ue.$$scope)},[re,O,W,B,J,E,z,Te,ze,Ve,Le,Ae,Ue,ye,je,ne,et,lt,L,le,Y,N,ee,Q,ke,y,T,Ne]}class v0 extends _e{constructor(e){super(),ge(this,e,_0,g0,be,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},b0,[-1,-1])}get focus(){return this.$$.ctx[24]}}function k0(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 w0(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){A(i,e,n)},p:q,i:q,o:q,d(i){i&&P(e)}}}class W1 extends _e{constructor(e){super(),ge(this,e,null,w0,be,{},k0)}}function y0(t){let e,i,n,o,s,l,r,a,c,f,d,h,v;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("defs"),l=M("filter"),r=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),h=M("feBlend"),v=M("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(d,"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(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2422_111980"),u(v,"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(k,_){A(k,e,_),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,d),p(l,h),p(l,v)},p:q,i:q,o:q,d(k){k&&P(e)}}}class C0 extends _e{constructor(e){super(),ge(this,e,null,y0,be,{})}}function T0(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 S0(t){let e,i,n,o,s,l,r,a,c,f,d,h;const v=t[14].default,k=Mn(v,t,t[13],null);return{c(){e=I("button"),k&&k.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(_,S){A(_,e,S),k&&k.m(e,null),t[16](e),f=!0,d||(h=[he(e,"pointerdown",ot(Jt(t[15]))),he(e,"click",ot(Jt(function(){_n(t[10]===ie.noop?null:t[10])&&(t[10]===ie.noop?null:t[10]).apply(this,arguments)}))),he(e,"focus",Jt(function(){_n(t[11]===ie.noop?null:t[11])&&(t[11]===ie.noop?null:t[11]).apply(this,arguments)})),he(e,"blur",Jt(function(){_n(t[12]===ie.noop?null:t[12])&&(t[12]===ie.noop?null:t[12]).apply(this,arguments)}))],d=!0)},p(_,[S]){t=_,k&&k.p&&(!f||S&8192)&&Nn(k,v,t,t[13],f?Bn(v,t[13],S,null):Rn(t[13]),null),(!f||S&2&&i!==(i="btn "+t[1]+" v-1anemql"))&&u(e,"class",i),(!f||S&4&&n!==(n=t[2]||null))&&u(e,"style",n),(!f||S&8&&o!==(o=t[3]??null))&&(e.disabled=o),(!f||S&32&&s!==(s=t[5]??null))&&u(e,"aria-hidden",s),(!f||S&64&&l!==(l=t[6]??null))&&u(e,"aria-label",l),(!f||S&128&&r!==(r=t[7]??null))&&u(e,"aria-keyshortcuts",r),(!f||S&256&&a!==(a=t[8]??null))&&u(e,"aria-expanded",a),(!f||S&16&&c!==(c=t[4]??null))&&u(e,"data-testid",c),(!f||S&512)&&u(e,"tabindex",t[9])},i(_){f||(m(k,_),f=!0)},o(_){g(k,_),f=!1},d(_){_&&P(e),k&&k.d(_),t[16](null),d=!1,nt(h)}}}function P0(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:d=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:v=void 0}=e,{tabIndex:k=0}=e,{click:_=ie.noop}=e,{focus:S=ie.noop}=e,{blur:C=ie.noop}=e;function T(L){to.call(this,t,L)}function y(L){ve[L?"unshift":"push"](()=>{d=L,i(0,d)})}return t.$$set=L=>{"className"in L&&i(1,s=L.className),"style"in L&&i(2,l=L.style),"disabled"in L&&i(3,r=L.disabled),"testId"in L&&i(4,a=L.testId),"ariaHidden"in L&&i(5,c=L.ariaHidden),"ariaLabel"in L&&i(6,f=L.ariaLabel),"ref"in L&&i(0,d=L.ref),"ariaKeyShortCut"in L&&i(7,h=L.ariaKeyShortCut),"ariaExpanded"in L&&i(8,v=L.ariaExpanded),"tabIndex"in L&&i(9,k=L.tabIndex),"click"in L&&i(10,_=L.click),"focus"in L&&i(11,S=L.focus),"blur"in L&&i(12,C=L.blur),"$$scope"in L&&i(13,o=L.$$scope)},[d,s,l,r,a,c,f,h,v,k,_,S,C,o,n,T,y]}class pi extends _e{constructor(e){super(),ge(this,e,P0,S0,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},T0)}}function A0(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 ks(t){let e,i,n,o,s,l=t[2]&&ws(t);return{c(){e=I("div"),i=I("h3"),n=Oe(t[3]),o=D(),l&&l.c(),u(i,"class","modal-title v-1witlsj"),u(e,"class","modal-header v-1witlsj")},m(r,a){A(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)&&xe(n,r[3]),r[2]?l?(l.p(r,a),a&4&&m(l,1)):(l=ws(r),l.c(),m(l,1),l.m(e,null)):l&&(fe(),g(l,1,1,()=>{l=null}),de())},i(r){s||(m(l),s=!0)},o(r){g(l),s=!1},d(r){r&&P(e),l&&l.d()}}}function ws(t){let e,i;return e=new pi({props:{click:t[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:K("hotkey_map_modal_close_btn_text"),$$slots:{default:[I0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function I0(t){let e,i;return e=new C0({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function E0(t){let e,i,n,o,s,l,r=t[1]&&ks(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,d){A(f,e,d),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,[d]){f[1]?r?(r.p(f,d),d&2&&m(r,1)):(r=ks(f),r.c(),m(r,1),r.m(i,n)):r&&(fe(),g(r,1,1,()=>{r=null}),de()),c&&c.p&&(!l||d&32)&&Nn(c,a,f,f[5],l?Bn(a,f[5],d,null):Rn(f[5]),null)},i(f){l||(m(r),m(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 L0 extends _e{constructor(e){super(),ge(this,e,V0,E0,be,{onClose:0,showHeader:1,showCloseCross:2,title:3},A0)}}const M0=new Set(["BR"]),ys=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;M0.has(s)||o.parentElement?.removeChild(o)}return e.innerHTML};function B0(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 Cs(t,e,i){const n=t.slice();return n[5]=e[i].title,n[6]=e[i].items,n}function Ts(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=ys(t[9])+"",o,s,l=t[10]+"",r,a;return{c(){e=I("li"),i=I("span"),o=D(),s=I("span"),r=Oe(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){A(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=ys(c[9])+"")&&(i.innerHTML=n),f&1&&l!==(l=c[10]+"")&&xe(r,l)},d(c){c&&P(e)}}}function Ps(t){let e,i,n=t[5]+"",o,s,l,r,a=Ht(t[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=Ss(Ts(t,a,f));return{c(){e=I("div"),i=I("h5"),o=Oe(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,d){A(f,e,d),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,d){if(d&1&&n!==(n=f[5]+"")&&xe(o,n),d&1){a=Ht(f[6]);let h;for(h=0;h<a.length;h+=1){const v=Ts(f,a,h);c[h]?c[h].p(v,d):(c[h]=Ss(v),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),vn(c,f)}}}function N0(t){let e,i=Ht(t[0].groups),n=[];for(let o=0;o<i.length;o+=1)n[o]=Ps(Cs(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){A(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=Ht(o[0].groups);let l;for(l=0;l<i.length;l+=1){const r=Cs(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),vn(n,o)}}}function R0(t){let e,i;return e=new L0({props:{title:t[0].title,onClose:t[2],$$slots:{default:[N0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function D0(t,e,i){let n;const o=ht(),{data:s,show:l}=o.ui.modals.hotKeyMap;return R(t,s,a=>i(0,n=a)),[n,s,()=>{l.set(!1)}]}class O0 extends _e{constructor(e){super(),ge(this,e,D0,R0,be,{},B0)}}function z0(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 H0(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){A(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||(m(o,s),i=!0)},o(s){g(o,s),i=!1},d(s){s&&P(e),o&&o.d(s)}}}function F0(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=s=>{"$$scope"in s&&i(0,o=s.$$scope)},[o,n]}class U0 extends _e{constructor(e){super(),ge(this,e,F0,H0,be,{},z0)}}function q0(t){let e,i,n;return{c(){e=M("svg"),i=M("path"),n=M("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){A(o,e,s),p(e,i),p(e,n)},p:q,i:q,o:q,d(o){o&&P(e)}}}class Z0 extends _e{constructor(e){super(),ge(this,e,null,q0,be,{})}}function W0(t){let e,i,n;return{c(){e=M("svg"),i=M("path"),n=M("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){A(o,e,s),p(e,i),p(e,n)},p:q,i:q,o:q,d(o){o&&P(e)}}}class j0 extends _e{constructor(e){super(),ge(this,e,null,W0,be,{})}}function K0(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class G0 extends _e{constructor(e){super(),ge(this,e,null,K0,be,{})}}function Y0(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class j1 extends _e{constructor(e){super(),ge(this,e,null,Y0,be,{})}}function Q0(t){let e,i,n;return{c(){e=M("svg"),i=M("path"),n=M("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){A(o,e,s),p(e,i),p(e,n)},p:q,i:q,o:q,d(o){o&&P(e)}}}class K1 extends _e{constructor(e){super(),ge(this,e,null,Q0,be,{})}}const _o=t=>{switch(t){case $e.VideoQuality.Q_720P:return G0;case $e.VideoQuality.Q_1080P:return j1;case $e.VideoQuality.Q_1440P:return K1;case $e.VideoQuality.Q_2160P:return Z0;case $e.VideoQuality.Q_4320P:return j0}};function X0(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 J0(t){let e,i,n,o,s,l,r=t[1]&&As(t);return{c(){e=I("div"),r&&r.c(),i=D(),n=M("svg"),o=M("path"),s=M("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"),V(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"),V(e,"triple",t[2])},m(a,c){A(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&&m(r,1)):(r=As(a),r.c(),m(r,1),r.m(e,i)):r&&(fe(),g(r,1,1,()=>{r=null}),de()),(!l||c&2)&&V(s,"hidden",!!a[1]),(!l||c&4)&&V(e,"triple",a[2])},i(a){l||(m(r),l=!0)},o(a){g(r),l=!1},d(a){a&&P(e),r&&r.d()}}}function x0(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}function As(t){let e,i;return e=new U0({props:{$$slots:{default:[$0]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&18&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function $0(t){let e,i,n;var o=t[1];function s(l){return{}}return o&&(e=Pn(o,s())),{c(){e&&U(e.$$.fragment),i=ct()},m(l,r){e&&H(e,l,r),A(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,()=>{F(a,1)}),de()}o?(e=Pn(o,s()),U(e.$$.fragment),m(e.$$.fragment,1),H(e,i.parentNode,i)):e=null}},i(l){n||(e&&m(e.$$.fragment,l),n=!0)},o(l){e&&g(e.$$.fragment,l),n=!1},d(l){l&&P(i),e&&F(e,l)}}}function ed(t){let e,i,n,o;const s=[x0,J0],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),A(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()),m(i,1),i.m(n.parentNode,n))},i(a){o||(m(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function td(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=_o(s)),t.$$.dirty&2&&i(2,l=!!n&&[j1,K1].includes(n))},[o,n,l,s]}class G1 extends _e{constructor(e){super(),ge(this,e,td,ed,be,{isMobile:0,currentQuality:3},X0)}}function id(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Y1 extends _e{constructor(e){super(),ge(this,e,null,id,be,{})}}function nd(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class od extends _e{constructor(e){super(),ge(this,e,null,nd,be,{})}}function ld(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class sd extends _e{constructor(e){super(),ge(this,e,null,ld,be,{})}}function rd(t){let e,i,n,o;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("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){A(s,e,l),p(e,i),p(i,n),p(i,o)},p:q,i:q,o:q,d(s){s&&P(e)}}}class ad extends _e{constructor(e){super(),ge(this,e,null,rd,be,{})}}function ud(t){Ke(t,"v-2dg73m",".reverted.v-2dg73m{transform:rotate(180deg)}")}function cd(t){let e,i,n;return{c(){e=M("svg"),i=M("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"),V(e,"reverted",t[2])},m(o,s){A(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&&V(e,"reverted",o[2])},d(o){o&&P(e)}}}function fd(t){let e,i,n;return{c(){e=M("svg"),i=M("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"),V(e,"reverted",t[2])},m(o,s){A(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&&V(e,"reverted",o[2])},d(o){o&&P(e)}}}function dd(t){let e;function i(s,l){return s[1]?fd:cd}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),A(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:q,o:q,d(s){s&&P(e),o.d(s)}}}function md(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 Wn extends _e{constructor(e){super(),ge(this,e,md,dd,be,{direction:3,color:0},ud)}}function pd(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class hd extends _e{constructor(e){super(),ge(this,e,null,pd,be,{})}}function bd(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Mo extends _e{constructor(e){super(),ge(this,e,null,bd,be,{})}}function gd(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class _d extends _e{constructor(e){super(),ge(this,e,null,gd,be,{})}}function vd(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class kd extends _e{constructor(e){super(),ge(this,e,null,vd,be,{})}}function wd(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 Is(t,e,i){const n=t.slice();return n[142]=e[i],n}function Es(t,e,i){const n=t.slice();return n[145]=e[i],n}function Vs(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,d,h=t[34]&&Ms(t),v=t[25]&&Bs(t),k=t[24]&&Rs(t),_=t[23]&&Ds(t),S=t[22]&&Os(t),C=t[21]&&zs(t),T=t[34]&&Hs(t);return{c(){e=I("div"),h&&h.c(),i=D(),n=I("ul"),v&&v.c(),o=D(),k&&k.c(),s=D(),_&&_.c(),l=D(),S&&S.c(),r=D(),C&&C.c(),a=D(),T&&T.c(),u(n,"class","items v-5r0p3"),u(n,"role","menu"),u(n,"style",t[73]()),V(n,"items-mobile",t[34]),u(e,"class","menu v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34]),V(e,"hidden",!t[11])},m(y,L){A(y,e,L),h&&h.m(e,null),p(e,i),p(e,n),v&&v.m(n,null),p(n,o),k&&k.m(n,null),p(n,s),_&&_.m(n,null),p(n,l),S&&S.m(n,null),p(n,r),C&&C.m(n,null),p(n,a),T&&T.m(n,null),t[112](n),c=!0,f||(d=[he(e,"keydown",t[78]),he(e,"mouseenter",t[71]),he(e,"mouseleave",t[72])],f=!0)},p(y,L){y[34]?h?h.p(y,L):(h=Ms(y),h.c(),h.m(e,i)):h&&(h.d(1),h=null),y[25]?v?(v.p(y,L),L[0]&33554432&&m(v,1)):(v=Bs(y),v.c(),m(v,1),v.m(n,o)):v&&(fe(),g(v,1,1,()=>{v=null}),de()),y[24]?k?(k.p(y,L),L[0]&16777216&&m(k,1)):(k=Rs(y),k.c(),m(k,1),k.m(n,s)):k&&(fe(),g(k,1,1,()=>{k=null}),de()),y[23]?_?(_.p(y,L),L[0]&8388608&&m(_,1)):(_=Ds(y),_.c(),m(_,1),_.m(n,l)):_&&(fe(),g(_,1,1,()=>{_=null}),de()),y[22]?S?(S.p(y,L),L[0]&4194304&&m(S,1)):(S=Os(y),S.c(),m(S,1),S.m(n,r)):S&&(fe(),g(S,1,1,()=>{S=null}),de()),y[21]?C?(C.p(y,L),L[0]&2097152&&m(C,1)):(C=zs(y),C.c(),m(C,1),C.m(n,a)):C&&(fe(),g(C,1,1,()=>{C=null}),de()),y[34]?T?(T.p(y,L),L[1]&8&&m(T,1)):(T=Hs(y),T.c(),m(T,1),T.m(n,null)):T&&(fe(),g(T,1,1,()=>{T=null}),de()),(!c||L[1]&8)&&V(n,"items-mobile",y[34]),(!c||L[1]&8)&&V(e,"menu-desktop",!y[34]),(!c||L[1]&8)&&V(e,"menu-mobile",y[34]),(!c||L[0]&2048)&&V(e,"hidden",!y[11])},i(y){c||(m(v),m(k),m(_),m(S),m(C),m(T),c=!0)},o(y){g(v),g(k),g(_),g(S),g(C),g(T),c=!1},d(y){y&&P(e),h&&h.d(),v&&v.d(),k&&k.d(),_&&_.d(),S&&S.d(),C&&C.d(),T&&T.d(),t[112](null),f=!1,nt(d)}}}function Ms(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"),V(e,"item-mobile",t[34]),u(l,"class","menu-divider v-5r0p3")},m(c,f){A(c,e,f),p(e,i),p(e,n),p(e,o),A(c,s,f),A(c,l,f),r||(a=he(o,"click",ot(t[57])),r=!0)},p(c,f){f[1]&8&&V(e,"item-mobile",c[34])},d(c){c&&(P(e),P(s),P(l)),r=!1,a()}}}function Bs(t){let e,i,n,o,s,l,r,a,c,f,d,h,v;n=new G1({});let k=t[33]&&!t[34]&&Ns(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=Oe(t[16]),c=D(),k&&k.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[27]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",t[34])},m(_,S){A(_,e,S),p(e,i),H(n,i,null),p(e,o),p(e,s),p(e,l),p(e,r),p(r,a),p(r,c),k&&k.m(r,null),t[108](e),d=!0,h||(v=[he(e,"click",ot(t[58])),he(e,"keydown",t[79])],h=!0)},p(_,S){(!d||S[0]&65536)&&xe(a,_[16]),_[33]&&!_[34]?k?(k.p(_,S),S[1]&12&&m(k,1)):(k=Ns(_),k.c(),m(k,1),k.m(r,null)):k&&(fe(),g(k,1,1,()=>{k=null}),de()),(!d||S[0]&134217728&&f!==(f=K("aria_label_menu_quality",{actual:_[27]})))&&u(e,"aria-label",f),(!d||S[1]&8)&&V(e,"item-mobile",_[34])},i(_){d||(m(n.$$.fragment,_),m(k),d=!0)},o(_){g(n.$$.fragment,_),g(k),d=!1},d(_){_&&P(e),F(n),k&&k.d(),t[108](null),h=!1,nt(v)}}}function Ns(t){let e,i,n;var o=t[33];function s(l){return{}}return o&&(i=Pn(o,s())),{c(){e=I("div"),i&&U(i.$$.fragment),u(e,"class","menu-valueIcon v-5r0p3")},m(l,r){A(l,e,r),i&&H(i,e,null),n=!0},p(l,r){if(r[1]&4&&o!==(o=l[33])){if(i){fe();const a=i;g(a.$$.fragment,1,0,()=>{F(a,1)}),de()}o?(i=Pn(o,s()),U(i.$$.fragment),m(i.$$.fragment,1),H(i,e,null)):i=null}},i(l){n||(i&&m(i.$$.fragment,l),n=!0)},o(l){i&&g(i.$$.fragment,l),n=!1},d(l){l&&P(e),i&&F(i)}}}function Rs(t){let e,i,n,o,s,l,r,a,c,f,d,h,v;return n=new ad({}),{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=Oe(t[9]),c=Oe("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[28]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",t[34])},m(k,_){A(k,e,_),p(e,i),H(n,i,null),p(e,o),p(e,s),p(e,l),p(e,r),p(r,a),p(r,c),t[109](e),d=!0,h||(v=[he(e,"click",ot(Jt(t[62]))),he(e,"keydown",t[82])],h=!0)},p(k,_){(!d||_[0]&512)&&xe(a,k[9]),(!d||_[0]&268435456&&f!==(f=K("aria_label_menu_rate",{actual:k[28]})))&&u(e,"aria-label",f),(!d||_[1]&8)&&V(e,"item-mobile",k[34])},i(k){d||(m(n.$$.fragment,k),d=!0)},o(k){g(n.$$.fragment,k),d=!1},d(k){k&&P(e),F(n),t[109](null),h=!1,nt(v)}}}function Ds(t){let e,i,n,o,s,l,r,a=t[35].displayValue+"",c,f,d,h,v;return n=new Y1({}),{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=Oe(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[35].displayValue})),u(e,"aria-haspopup","true"),V(e,"item-mobile",t[34])},m(k,_){A(k,e,_),p(e,i),H(n,i,null),p(e,o),p(e,s),p(e,l),p(e,r),p(r,c),t[110](e),d=!0,h||(v=[he(e,"click",ot(t[64])),he(e,"keydown",t[85])],h=!0)},p(k,_){(!d||_[1]&16)&&a!==(a=k[35].displayValue+"")&&xe(c,a),(!d||_[1]&16&&f!==(f=K("aria_label_menu_subtitle",{actual:k[35].displayValue})))&&u(e,"aria-label",f),(!d||_[1]&8)&&V(e,"item-mobile",k[34])},i(k){d||(m(n.$$.fragment,k),d=!0)},o(k){g(n.$$.fragment,k),d=!1},d(k){k&&P(e),F(n),t[110](null),h=!1,nt(v)}}}function Os(t){let e,i,n,o,s,l,r,a,c,f,d,h;return n=new sd({}),{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=Oe(t[26]),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[26]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",t[34])},m(v,k){A(v,e,k),p(e,i),H(n,i,null),p(e,o),p(e,s),p(e,l),p(e,r),p(r,a),t[111](e),f=!0,d||(h=[he(e,"click",ot(t[59])),he(e,"keydown",t[88])],d=!0)},p(v,k){(!f||k[0]&67108864)&&xe(a,v[26]),(!f||k[0]&67108864&&c!==(c=K("aria_label_menu_traffic_saving",{actual:v[26]})))&&u(e,"aria-label",c),(!f||k[1]&8)&&V(e,"item-mobile",v[34])},i(v){f||(m(n.$$.fragment,v),f=!0)},o(v){g(n.$$.fragment,v),f=!1},d(v){v&&P(e),F(n),t[111](null),d=!1,nt(h)}}}function zs(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("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")),V(e,"item-mobile",t[34])},m(c,f){A(c,e,f),p(e,i),H(n,i,null),p(e,o),p(e,s),l=!0,r||(a=[he(e,"click",ot(t[67])),he(e,"keydown",t[91])],r=!0)},p(c,f){(!l||f[1]&8)&&V(e,"item-mobile",c[34])},i(c){l||(m(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 Hs(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C=t[37].showSupport&&yd(t);return o=new _d({}),f=new kd({}),{c(){C&&C.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),d=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",v=t[36]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable"))},m(T,y){C&&C.m(T,y),A(T,e,y),A(T,i,y),p(i,n),H(o,n,null),p(i,s),p(i,l),A(T,r,y),A(T,a,y),p(a,c),H(f,c,null),p(a,d),p(a,h),k=!0,_||(S=[he(i,"click",ot(t[69])),he(i,"keydown",t[93]),he(a,"click",ot(t[70])),he(a,"keydown",t[94])],_=!0)},p(T,y){T[37].showSupport&&C.p(T,y),(!k||y[1]&32&&v!==(v=T[36]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable")))&&u(a,"aria-label",v)},i(T){k||(m(C),m(o.$$.fragment,T),m(f.$$.fragment,T),k=!0)},o(T){g(C),g(o.$$.fragment,T),g(f.$$.fragment,T),k=!1},d(T){T&&(P(e),P(i),P(r),P(a)),C&&C.d(T),F(o),F(f),_=!1,nt(S)}}}function yd(t){let e,i,n,o,s,l,r,a;return n=new hd({}),{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){A(c,e,f),p(e,i),H(n,i,null),p(e,o),p(e,s),l=!0,r||(a=[he(e,"click",ot(t[68])),he(e,"keydown",t[92])],r=!0)},p:q,i(c){l||(m(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,d,h,v;n=new Wn({props:{direction:"left"}});let k=Ht(t[8]),_=[];for(let C=0;C<k.length;C+=1)_[C]=Zs(Vs(t,k,C));const S=C=>g(_[C],1,1,()=>{_[C]=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 C=0;C<_.length;C+=1)_[C].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",K("aria_label_submenu_back")),V(i,"item-mobile",t[34]),u(r,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",f=t[73](t[17]?.clientHeight,!0)),V(c,"items-mobile",t[34]),u(e,"class","menu menu-subList v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34])},m(C,T){A(C,e,T),p(e,i),H(n,i,null),p(i,o),p(i,s),t[113](i),p(e,l),p(e,r),p(e,a),p(e,c);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(c,null);t[116](c),d=!0,h||(v=[he(i,"click",ot(t[66])),he(c,"keydown",t[80])],h=!0)},p(C,T){if((!d||T[1]&8)&&V(i,"item-mobile",C[34]),T[0]&256|T[1]&536870920|T[2]&524288){k=Ht(C[8]);let y;for(y=0;y<k.length;y+=1){const L=Vs(C,k,y);_[y]?(_[y].p(L,T),m(_[y],1)):(_[y]=Zs(L),_[y].c(),m(_[y],1),_[y].m(c,null))}for(fe(),y=k.length;y<_.length;y+=1)S(y);de()}(!d||T[0]&131072&&f!==(f=C[73](C[17]?.clientHeight,!0)))&&u(c,"style",f),(!d||T[1]&8)&&V(c,"items-mobile",C[34]),(!d||T[1]&8)&&V(e,"menu-desktop",!C[34]),(!d||T[1]&8)&&V(e,"menu-mobile",C[34])},i(C){if(!d){m(n.$$.fragment,C);for(let T=0;T<k.length;T+=1)m(_[T]);d=!0}},o(C){g(n.$$.fragment,C),_=_.filter(Boolean);for(let T=0;T<_.length;T+=1)g(_[T]);d=!1},d(C){C&&P(e),F(n),t[113](null),vn(_,C),t[116](null),h=!1,nt(v)}}}function Us(t){let e,i,n;return i=new Mo({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){A(o,e,s),H(i,e,null),n=!0},i(o){n||(m(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;var o=_o(t[148].value);function s(l){return{}}return o&&(i=Pn(o,s())),{c(){e=I("div"),i&&U(i.$$.fragment),u(e,"class","menu-valueIcon-list v-5r0p3")},m(l,r){A(l,e,r),i&&H(i,e,null),n=!0},p(l,r){if(r[0]&256&&o!==(o=_o(l[148].value))){if(i){fe();const a=i;g(a.$$.fragment,1,0,()=>{F(a,1)}),de()}o?(i=Pn(o,s()),U(i.$$.fragment),m(i.$$.fragment,1),H(i,e,null)):i=null}},i(l){n||(i&&m(i.$$.fragment,l),n=!0)},o(l){i&&g(i.$$.fragment,l),n=!1},d(l){l&&P(e),i&&F(i)}}}function Zs(t){let e,i,n,o=t[148].displayValue+"",s,l,r=!t[34]&&_o(t[148].value),a,c,f,d,h,v,k=t[148].selected&&Us(),_=r&&qs(t);function S(){return t[114](t[148])}function C(...T){return t[115](t[148],...T)}return{c(){e=I("li"),k&&k.c(),i=D(),n=I("div"),s=Oe(o),l=D(),_&&_.c(),a=D(),u(n,"class","v-5r0p3"),V(n,"quality-title-mobile",t[34]),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),V(e,"item-mobile",t[34])},m(T,y){A(T,e,y),k&&k.m(e,null),p(e,i),p(e,n),p(n,s),p(e,l),_&&_.m(e,null),p(e,a),d=!0,h||(v=[he(e,"click",ot(S)),he(e,"keydown",C)],h=!0)},p(T,y){t=T,t[148].selected?k?y[0]&256&&m(k,1):(k=Us(),k.c(),m(k,1),k.m(e,i)):k&&(fe(),g(k,1,1,()=>{k=null}),de()),(!d||y[0]&256)&&o!==(o=t[148].displayValue+"")&&xe(s,o),(!d||y[1]&8)&&V(n,"quality-title-mobile",t[34]),y[0]&256|y[1]&8&&(r=!t[34]&&_o(t[148].value)),r?_?(_.p(t,y),y[0]&256|y[1]&8&&m(_,1)):(_=qs(t),_.c(),m(_,1),_.m(e,a)):_&&(fe(),g(_,1,1,()=>{_=null}),de()),(!d||y[0]&256&&c!==(c=t[148].value))&&u(e,"data-value",c),(!d||y[0]&256&&f!==(f=t[148].displayValue))&&u(e,"aria-label",f),(!d||y[1]&8)&&V(e,"item-mobile",t[34])},i(T){d||(m(k),m(_),d=!0)},o(T){g(k),g(_),d=!1},d(T){T&&P(e),k&&k.d(),_&&_.d(),h=!1,nt(v)}}}function Ws(t){let e,i,n,o,s,l,r,a,c,f,d,h,v;n=new Wn({props:{direction:"left"}});let k=Ht(t[7]),_=[];for(let C=0;C<k.length;C+=1)_[C]=Ks(Es(t,k,C));const S=C=>g(_[C],1,1,()=>{_[C]=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 C=0;C<_.length;C+=1)_[C].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",K("aria_label_submenu_back")),V(i,"item-mobile",t[34]),u(r,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",f=t[73](t[18]?.clientHeight,!0)),V(c,"items-mobile",t[34]),u(e,"class","menu menu-subList v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34])},m(C,T){A(C,e,T),p(e,i),H(n,i,null),p(i,o),p(i,s),t[117](i),p(e,l),p(e,r),p(e,a),p(e,c);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(c,null);t[120](c),d=!0,h||(v=[he(i,"click",ot(t[66])),he(c,"keydown",t[83])],h=!0)},p(C,T){if((!d||T[1]&8)&&V(i,"item-mobile",C[34]),T[0]&128|T[1]&8|T[2]&4194306){k=Ht(C[7]);let y;for(y=0;y<k.length;y+=1){const L=Es(C,k,y);_[y]?(_[y].p(L,T),m(_[y],1)):(_[y]=Ks(L),_[y].c(),m(_[y],1),_[y].m(c,null))}for(fe(),y=k.length;y<_.length;y+=1)S(y);de()}(!d||T[0]&262144&&f!==(f=C[73](C[18]?.clientHeight,!0)))&&u(c,"style",f),(!d||T[1]&8)&&V(c,"items-mobile",C[34]),(!d||T[1]&8)&&V(e,"menu-desktop",!C[34]),(!d||T[1]&8)&&V(e,"menu-mobile",C[34])},i(C){if(!d){m(n.$$.fragment,C);for(let T=0;T<k.length;T+=1)m(_[T]);d=!0}},o(C){g(n.$$.fragment,C),_=_.filter(Boolean);for(let T=0;T<_.length;T+=1)g(_[T]);d=!1},d(C){C&&P(e),F(n),t[117](null),vn(_,C),t[120](null),h=!1,nt(v)}}}function js(t){let e,i,n;return i=new Mo({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){A(o,e,s),H(i,e,null),n=!0},i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Ks(t){let e,i,n,o=t[145].displayValue+"",s,l,r,a,c,f,d,h=t[145].selected&&js();function v(){return t[118](t[145])}function k(..._){return t[119](t[145],..._)}return{c(){e=I("li"),h&&h.c(),i=D(),n=I("div"),s=Oe(o),l=D(),u(n,"class","v-5r0p3"),V(n,"quality-title-mobile",t[34]),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),V(e,"item-mobile",t[34])},m(_,S){A(_,e,S),h&&h.m(e,null),p(e,i),p(e,n),p(n,s),p(e,l),c=!0,f||(d=[he(e,"click",ot(v)),he(e,"keydown",k)],f=!0)},p(_,S){t=_,t[145].selected?h?S[0]&128&&m(h,1):(h=js(),h.c(),m(h,1),h.m(e,i)):h&&(fe(),g(h,1,1,()=>{h=null}),de()),(!c||S[0]&128)&&o!==(o=t[145].displayValue+"")&&xe(s,o),(!c||S[1]&8)&&V(n,"quality-title-mobile",t[34]),(!c||S[0]&128&&r!==(r=t[145].value))&&u(e,"data-value",r),(!c||S[0]&128&&a!==(a=t[145].displayValue))&&u(e,"aria-label",a),(!c||S[1]&8)&&V(e,"item-mobile",t[34])},i(_){c||(m(h),c=!0)},o(_){g(h),c=!1},d(_){_&&P(e),h&&h.d(),f=!1,nt(d)}}}function Gs(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w;n=new Wn({props:{direction:"left"}});let $=!t[5]&&Ys(),X=t[5]&&Qs();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("div"),f=I("ul"),d=I("li"),$&&$.c(),h=D(),v=I("div"),v.textContent=`${K("traffic_saving_disable")}`,k=D(),_=I("li"),X&&X.c(),S=D(),C=I("div"),C.textContent=`${K("traffic_saving_enable")}`,T=D(),y=I("div"),L=D(),le=I("div"),Y=I("span"),Y.textContent=`${K("traffic_saving_helper_text")}`,u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",K("aria_label_submenu_back")),V(i,"item-mobile",t[34]),u(r,"class","menu-divider v-5r0p3"),u(v,"class","v-5r0p3"),V(v,"quality-title-mobile",t[34]),u(d,"class","item item-traffic-saving v-5r0p3"),u(d,"role","menuitem"),u(d,"tabindex","0"),u(d,"aria-label",K("aria_label_submenu_traffic_saving_off")),V(d,"item-mobile",t[34]),u(C,"class","v-5r0p3"),V(C,"quality-title-mobile",t[34]),u(_,"class","item item-traffic-saving v-5r0p3"),u(_,"role","menuitem"),u(_,"tabindex","0"),u(_,"aria-label",`${K("aria_label_submenu_traffic_saving_on")}. ${K("traffic_saving_helper_text")}`),V(_,"item-mobile",t[34]),u(f,"class","items v-5r0p3"),u(f,"role","menu"),V(f,"items-mobile",t[34]),u(y,"class","menu-divider v-5r0p3"),u(Y,"class","v-5r0p3"),u(le,"class","item item-helper-text v-5r0p3"),V(le,"item-mobile",t[34]),u(c,"style",N=t[73](t[19]?.clientHeight,!0)),u(e,"class","menu menu-subList menu-subList-traffic-saving v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34])},m(O,W){A(O,e,W),p(e,i),H(n,i,null),p(i,o),p(i,s),t[121](i),p(e,l),p(e,r),p(e,a),p(e,c),p(c,f),p(f,d),$&&$.m(d,null),p(d,h),p(d,v),p(f,k),p(f,_),X&&X.m(_,null),p(_,S),p(_,C),t[126](f),p(c,T),p(c,y),p(c,L),p(c,le),p(le,Y),ee=!0,Q||(w=[he(i,"click",ot(t[66])),he(d,"click",ot(t[122])),he(d,"keydown",t[123]),he(_,"click",ot(t[124])),he(_,"keydown",t[125]),he(f,"keydown",t[89])],Q=!0)},p(O,W){(!ee||W[1]&8)&&V(i,"item-mobile",O[34]),O[5]?$&&(fe(),g($,1,1,()=>{$=null}),de()):$?W[0]&32&&m($,1):($=Ys(),$.c(),m($,1),$.m(d,h)),(!ee||W[1]&8)&&V(v,"quality-title-mobile",O[34]),(!ee||W[1]&8)&&V(d,"item-mobile",O[34]),O[5]?X?W[0]&32&&m(X,1):(X=Qs(),X.c(),m(X,1),X.m(_,S)):X&&(fe(),g(X,1,1,()=>{X=null}),de()),(!ee||W[1]&8)&&V(C,"quality-title-mobile",O[34]),(!ee||W[1]&8)&&V(_,"item-mobile",O[34]),(!ee||W[1]&8)&&V(f,"items-mobile",O[34]),(!ee||W[1]&8)&&V(le,"item-mobile",O[34]),(!ee||W[0]&524288&&N!==(N=O[73](O[19]?.clientHeight,!0)))&&u(c,"style",N),(!ee||W[1]&8)&&V(e,"menu-desktop",!O[34]),(!ee||W[1]&8)&&V(e,"menu-mobile",O[34])},i(O){ee||(m(n.$$.fragment,O),m($),m(X),ee=!0)},o(O){g(n.$$.fragment,O),g($),g(X),ee=!1},d(O){O&&P(e),F(n),t[121](null),$&&$.d(),X&&X.d(),t[126](null),Q=!1,nt(w)}}}function Ys(t){let e,i,n;return i=new Mo({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){A(o,e,s),H(i,e,null),n=!0},i(o){n||(m(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;return i=new Mo({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){A(o,e,s),H(i,e,null),n=!0},i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Xs(t){let e,i,n,o,s,l,r,a,c,f,d;n=new Wn({props:{direction:"left"}});let h=Ht(t[6]),v=[];for(let _=0;_<h.length;_+=1)v[_]=xs(Is(t,h,_));const k=_=>g(v[_],1,1,()=>{v[_]=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 _=0;_<v.length;_+=1)v[_].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",K("aria_label_submenu_back")),V(i,"item-mobile",t[34]),u(r,"class","items v-5r0p3"),u(r,"role","menu"),u(r,"style",a=t[73](t[20]?.clientHeight,!0)),V(r,"items-mobile",t[34]),u(e,"class","menu menu-subList menu-subList-subtitles v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34])},m(_,S){A(_,e,S),p(e,i),H(n,i,null),p(i,o),p(i,s),t[127](i),p(e,l),p(e,r);for(let C=0;C<v.length;C+=1)v[C]&&v[C].m(r,null);t[130](r),c=!0,f||(d=[he(i,"click",ot(t[66])),he(r,"keydown",t[86])],f=!0)},p(_,S){if((!c||S[1]&8)&&V(i,"item-mobile",_[34]),S[0]&64|S[1]&8|S[2]&33554440){h=Ht(_[6]);let C;for(C=0;C<h.length;C+=1){const T=Is(_,h,C);v[C]?(v[C].p(T,S),m(v[C],1)):(v[C]=xs(T),v[C].c(),m(v[C],1),v[C].m(r,null))}for(fe(),C=h.length;C<v.length;C+=1)k(C);de()}(!c||S[0]&1048576&&a!==(a=_[73](_[20]?.clientHeight,!0)))&&u(r,"style",a),(!c||S[1]&8)&&V(r,"items-mobile",_[34]),(!c||S[1]&8)&&V(e,"menu-desktop",!_[34]),(!c||S[1]&8)&&V(e,"menu-mobile",_[34])},i(_){if(!c){m(n.$$.fragment,_);for(let S=0;S<h.length;S+=1)m(v[S]);c=!0}},o(_){g(n.$$.fragment,_),v=v.filter(Boolean);for(let S=0;S<v.length;S+=1)g(v[S]);c=!1},d(_){_&&P(e),F(n),t[127](null),vn(v,_),t[130](null),f=!1,nt(d)}}}function Js(t){let e,i,n;return i=new Mo({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){A(o,e,s),H(i,e,null),n=!0},i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function xs(t){let e,i,n,o=t[142].displayValue+"",s,l,r,a,c,f,d,h=t[142].selected&&Js();function v(){return t[128](t[142])}function k(..._){return t[129](t[142],..._)}return{c(){e=I("li"),h&&h.c(),i=D(),n=I("div"),s=Oe(o),l=D(),u(n,"class","v-5r0p3"),V(n,"quality-title-mobile",t[34]),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),V(e,"item-mobile",t[34])},m(_,S){A(_,e,S),h&&h.m(e,null),p(e,i),p(e,n),p(n,s),p(e,l),c=!0,f||(d=[he(e,"click",ot(v)),he(e,"keydown",k)],f=!0)},p(_,S){t=_,t[142].selected?h?S[0]&64&&m(h,1):(h=Js(),h.c(),m(h,1),h.m(e,i)):h&&(fe(),g(h,1,1,()=>{h=null}),de()),(!c||S[0]&64)&&o!==(o=t[142].displayValue+"")&&xe(s,o),(!c||S[1]&8)&&V(n,"quality-title-mobile",t[34]),(!c||S[0]&64&&r!==(r=t[142].value))&&u(e,"data-value",r),(!c||S[0]&64&&a!==(a=t[142].displayValue))&&u(e,"aria-label",a),(!c||S[1]&8)&&V(e,"item-mobile",t[34])},i(_){c||(m(h),c=!0)},o(_){g(h),c=!1},d(_){_&&P(e),h&&h.d(),f=!1,nt(d)}}}function Cd(t){let e,i,n,o,s,l,r=t[10]&&Ls(t),a=t[12]&&Fs(t),c=t[13]&&Ws(t),f=t[15]&&Gs(t),d=t[14]&&Xs(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(),d&&d.c(),u(e,"class","v-5r0p3"),V(e,"hidden",!t[10]),V(e,"container-mobile",t[34])},m(h,v){A(h,e,v),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),d&&d.m(e,null),l=!0},p(h,v){h[10]?r?(r.p(h,v),v[0]&1024&&m(r,1)):(r=Ls(h),r.c(),m(r,1),r.m(e,i)):r&&(fe(),g(r,1,1,()=>{r=null}),de()),h[12]?a?(a.p(h,v),v[0]&4096&&m(a,1)):(a=Fs(h),a.c(),m(a,1),a.m(e,n)):a&&(fe(),g(a,1,1,()=>{a=null}),de()),h[13]?c?(c.p(h,v),v[0]&8192&&m(c,1)):(c=Ws(h),c.c(),m(c,1),c.m(e,o)):c&&(fe(),g(c,1,1,()=>{c=null}),de()),h[15]?f?(f.p(h,v),v[0]&32768&&m(f,1)):(f=Gs(h),f.c(),m(f,1),f.m(e,s)):f&&(fe(),g(f,1,1,()=>{f=null}),de()),h[14]?d?(d.p(h,v),v[0]&16384&&m(d,1)):(d=Xs(h),d.c(),m(d,1),d.m(e,null)):d&&(fe(),g(d,1,1,()=>{d=null}),de()),(!l||v[0]&1024)&&V(e,"hidden",!h[10]),(!l||v[1]&8)&&V(e,"container-mobile",h[34])},i(h){l||(m(r),m(a),m(c),m(f),m(d),l=!0)},o(h){g(r),g(a),g(c),g(f),g(d),l=!1},d(h){h&&P(e),r&&r.d(),a&&a.d(),c&&c.d(),f&&f.d(),d&&d.d()}}}const Td=18;function Sd(t,e,i){let n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w,{ref:$=void 0}=e,{supportLink:X}=e,{playerControlsHeight:O=0}=e,{returnFocus:W}=e;const B=ht(),J=an(),E=B.state.currentQuality$;R(t,E,oe=>i(102,_=oe));const z=B.state.availableQualities$;R(t,z,oe=>i(8,v=oe));const Te=B.state.autoQualityLimitingAvailable$;R(t,Te,oe=>i(106,y=oe));const ze=B.state.isAutoQualityEnabled$;R(t,ze,oe=>i(103,S=oe));const Ve=B.state.currentPlaybackRate$;R(t,Ve,oe=>i(9,k=oe));const Le=B.state.availablePlaybackRates$;R(t,Le,oe=>i(7,d=oe));const Pe=B.state.currentSubtitle$;R(t,Pe,oe=>i(35,Q=oe));const pe=B.state.availableSubtitlesList$;R(t,pe,oe=>i(6,c=oe));const Z=B.state.canDownload,me=B.state.hasMpegSources$;R(t,me,oe=>i(107,L=oe));const Ae=B.ui.settingsMenuVisible;R(t,Ae,oe=>i(10,ee=oe));const Ue=B.ui.settingsMenuOpenedByKeyboard;R(t,Ue,oe=>i(132,o=oe));const Ge=B.ui.isMobile;R(t,Ge,oe=>i(34,s=oe));const ae=B.ui.mobileNotReportControlHidden$;R(t,ae,oe=>i(104,C=oe));const ye=B.state.canChangePlaybackSpeed$;R(t,ye,oe=>i(105,T=oe));const Me=B.ui.isFullscreen;R(t,Me,oe=>i(135,N=oe));const je=B.state.trafficSavingEnabled$;R(t,je,oe=>i(5,r=oe));const ne=B.ui.playerSize;R(t,ne,oe=>i(134,Y=oe));const G=B.ui.debugPanelVisible;R(t,G,oe=>i(36,w=oe));const Ce=B.ui.playerSize;R(t,Ce,oe=>i(133,le=oe));const re=B.state.isInteractiveTime$,ke=B.actions.internal.downloadVideo,He=B.actions.internal.closeSettingsMenu;let et=!0,lt=!1,Ne=!1,ue=!1,st=!1,vt=!1;function ut(){o||W?.(),He(),vt=!1}function bt(){i(11,et=!1),i(12,lt=!0)}function Ct(){i(11,et=!1),i(15,st=!0)}function Be(oe){B.actions.internal.setQuality(oe),ut()}function Ft(oe){B.actions.internal.setTrafficSavingEnabled(oe),ut()}function ce(){i(11,et=!1),i(13,Ne=!0)}function ft(oe){B.actions.internal.setPlaybackRate(oe),ut()}function kt(){i(11,et=!1),i(14,ue=!0)}function We(oe){B.actions.internal.setSubtitle(oe),ut()}function tt(){i(11,et=!0),i(12,lt=!1),i(13,Ne=!1),i(14,ue=!1),i(15,st=!1)}function gt(){ke(),ut()}function wt(){window.open(X,"_blank"),ut(),B.actions.internal.pause()}function hi(){_l(B.actions.internal.getDebugTextData()),ut()}function bi(){G.set(!0),ut()}function gi(){vt=!0}function Fi(){vt=!1}function Qi(oe,it,Ot){if(!oe)return"...";const Gt=it.find(Bi=>Bi.value===oe),Mi=Gt?Gt.displayValue:oe;return Ot?oe===$e.VideoQuality.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:Mi}):Mi}let ii,ni,_i,Ut,oi;function Ui(oe=0,it=!1){return s&&N&&it?`max-height: ${Math.round(Y.height*.6)}px`:s?"":`max-height: ${le.height-Td-oe-O}px; overflow: auto;`}let vi,ki,li,wi,si,yi,Ci,yt,Mt,qt,ri=Ie(!1);R(t,ri,oe=>i(101,h=oe));let Vt,ai,Zt=Ie(!1);R(t,Zt,oe=>i(100,f=oe));let xt,Tt,St=Ie(!1);R(t,St,oe=>i(99,a=oe));let Bt,Wt,ui=Ie(!1);R(t,ui,oe=>i(98,l=oe));const en=oe=>{z1(oe,He)},qi=async oe=>{qo(oe,bt,()=>{const it=v.findIndex(Ot=>Ot.selected);return qt.childNodes[it]})},jt=async oe=>{Zo(oe,tt,ri,He)},$t=(oe,it)=>{$i(oe,()=>Be(it))},Ti=async oe=>{qo(oe,ce,()=>{const it=d.findIndex(Ot=>Ot.selected);return ai.childNodes[it]})},Ni=async oe=>{Zo(oe,tt,Zt,He)},Nt=(oe,it)=>{$i(oe,()=>ft(it))},_t=async oe=>{qo(oe,kt,()=>{const it=c.findIndex(Ot=>Ot.selected);return Tt.childNodes[it]})},Si=async oe=>{Zo(oe,tt,St,He)},Zi=(oe,it)=>{$i(oe,()=>We(it))},ei=async oe=>{qo(oe,Ct,()=>{const it=r?2:0;return Wt.childNodes[it]})},Wi=async oe=>{Zo(oe,tt,ui,He)},ci=(oe,it)=>{$i(oe,()=>Ft(it))},Xi=oe=>{$i(oe,()=>gt())},ji=oe=>{$i(oe,()=>wt())},Ji=oe=>{$i(oe,()=>hi())},Ri=oe=>{$i(oe,()=>bi())};nn(()=>{const oe=re.subscribe(it=>{it&&!s&&!vt&&!o&&ut()});return()=>{oe()}});function Pi(oe){ve[oe?"unshift":"push"](()=>{Mt=oe,i(1,Mt)})}function Rt(oe){ve[oe?"unshift":"push"](()=>{Vt=oe,i(2,Vt)})}function Kt(oe){ve[oe?"unshift":"push"](()=>{xt=oe,i(3,xt)})}function fi(oe){ve[oe?"unshift":"push"](()=>{Bt=oe,i(4,Bt)})}function Di(oe){ve[oe?"unshift":"push"](()=>{$=oe,i(0,$)})}function Oi(oe){ve[oe?"unshift":"push"](()=>{ni=oe,i(17,ni)})}const di=oe=>Be(oe.value),Ai=(oe,it)=>$t(it,oe.value);function Ii(oe){ve[oe?"unshift":"push"](()=>{qt=oe,i(29,qt)})}function Fe(oe){ve[oe?"unshift":"push"](()=>{_i=oe,i(18,_i)})}const zi=oe=>ft(oe.value),Lt=(oe,it)=>Nt(it,oe.value);function Ee(oe){ve[oe?"unshift":"push"](()=>{ai=oe,i(30,ai)})}function Ei(oe){ve[oe?"unshift":"push"](()=>{Ut=oe,i(19,Ut)})}const Ki=()=>Ft(!1),Hi=oe=>ci(oe,!1),Vi=()=>Ft(!0),xi=oe=>ci(oe,!0);function Li(oe){ve[oe?"unshift":"push"](()=>{Wt=oe,i(32,Wt)})}function Gi(oe){ve[oe?"unshift":"push"](()=>{oi=oe,i(20,oi)})}const Dt=oe=>We(oe),Yi=(oe,it)=>Zi(it,oe);function ti(oe){ve[oe?"unshift":"push"](()=>{Tt=oe,i(31,Tt)})}return t.$$set=oe=>{"ref"in oe&&i(0,$=oe.ref),"supportLink"in oe&&i(95,X=oe.supportLink),"playerControlsHeight"in oe&&i(96,O=oe.playerControlsHeight),"returnFocus"in oe&&i(97,W=oe.returnFocus)},t.$$.update=()=>{t.$$.dirty[0]&1024&&ee&&(i(11,et=!0),i(12,lt=!1),i(13,Ne=!1),i(14,ue=!1),i(15,st=!1)),t.$$.dirty[3]&512&&i(33,n=_o(_)),t.$$.dirty[0]&256|t.$$.dirty[3]&1536&&i(16,ii=Qi(_,v,S)),t.$$.dirty[3]&18432&&i(21,vi=Z&&L&&!C),t.$$.dirty[3]&10240&&i(22,ki=J.features.trafficSaving&&!C&&y),t.$$.dirty[0]&64|t.$$.dirty[3]&2048&&i(23,li=c.length>0&&!C),t.$$.dirty[3]&6144&&i(24,wi=!!T&&!C),t.$$.dirty[3]&2048&&i(25,si=!C),t.$$.dirty[0]&32&&i(26,yi=K(r?"traffic_saving_on":"traffic_saving_off")),t.$$.dirty[3]&1536&&i(27,Ci=S?K("auto_quality_option"):_),t.$$.dirty[0]&640&&i(28,yt=d.find(oe=>oe.value===k)?.displayValue),t.$$.dirty[0]&2|t.$$.dirty[3]&256&&Uo(Mt,ri,h),t.$$.dirty[0]&4|t.$$.dirty[3]&128&&Uo(Vt,Zt,f),t.$$.dirty[0]&8|t.$$.dirty[3]&64&&Uo(xt,St,a),t.$$.dirty[0]&16|t.$$.dirty[3]&32&&Uo(Bt,ui,l)},[$,Mt,Vt,xt,Bt,r,c,d,v,k,ee,et,lt,Ne,ue,st,ii,ni,_i,Ut,oi,vi,ki,li,wi,si,yi,Ci,yt,qt,ai,Tt,Wt,n,s,Q,w,J,E,z,Te,ze,Ve,Le,Pe,pe,me,Ae,Ue,Ge,ae,ye,Me,je,ne,G,Ce,ut,bt,Ct,Be,Ft,ce,ft,kt,We,tt,gt,wt,hi,bi,gi,Fi,Ui,ri,Zt,St,ui,en,qi,jt,$t,Ti,Ni,Nt,_t,Si,Zi,ei,Wi,ci,Xi,ji,Ji,Ri,X,O,W,l,a,f,h,_,S,C,T,y,L,Pi,Rt,Kt,fi,Di,Oi,di,Ai,Ii,Fe,zi,Lt,Ee,Ei,Ki,Hi,Vi,xi,Li,Gi,Dt,Yi,ti]}class Q1 extends _e{constructor(e){super(),ge(this,e,Sd,Cd,be,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},wd,[-1,-1,-1,-1,-1])}}function Pd(t){Ke(t,"v-d9t49t",".settings-icon-wrapper.v-d9t49t{position:relative;width:24px}")}function Ad(t){let e,i,n;return i=new G1({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){A(o,e,s),H(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||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Id(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:[Ad]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ed(t,e,i){let n,o,s,{ref:l=void 0}=e;const r=ht(),a=r.state.currentQuality$;R(t,a,_=>i(4,s=_));const c=r.ui.settingsMenuVisible;R(t,c,_=>i(1,n=_));const f=r.actions.internal.toggleSettingsMenu,d=r.ui.isMobile;R(t,d,_=>i(3,o=_));let h;function v(_){const S=Sl(_);f(S)}function k(_){l=_,i(0,l)}return t.$$set=_=>{"ref"in _&&i(0,l=_.ref)},t.$$.update=()=>{t.$$.dirty&2&&i(2,h=K(n?"tooltip_settings_on":"tooltip_settings_off"))},[l,n,h,o,s,a,c,d,v,k]}class Il extends _e{constructor(e){super(),ge(this,e,Ed,Id,be,{ref:0},Pd)}}function Vd(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Ld extends _e{constructor(e){super(),ge(this,e,null,Vd,be,{})}}function Md(t){let e,i;return e=new Y1({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Bd(t){let e,i;return e=new Ld({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Nd(t){let e,i,n,o;const s=[Bd,Md],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),A(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()),m(i,1),i.m(n.parentNode,n))},i(a){o||(m(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function Rd(t){let e,i;return e=new pi({props:{testId:"btn-Subtitles",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Lo[Se.KeyC],$$slots:{default:[Nd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Dd(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 Od extends _e{constructor(e){super(),ge(this,e,Dd,Rd,be,{isSubtitlesEnabled:0,click:1})}}function zd(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 $s(t){let e,i;return{c(){e=I("span"),i=Oe(t[3]),u(e,"class","duration v-19o2urr")},m(n,o){A(n,e,o),p(e,i)},p(n,o){o&8&&xe(i,n[3])},d(n){n&&P(e)}}}function Hd(t){let e,i,n,o,s=t[2]&&$s(t);return{c(){e=I("div"),i=I("span"),n=Oe(t[4]),o=D(),s&&s.c(),u(i,"class","current v-19o2urr"),u(e,"class","time v-19o2urr"),V(e,"mobile",t[1])},m(l,r){A(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&&xe(n,l[4]),l[2]?s?s.p(l,r):(s=$s(l),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&2&&V(e,"mobile",l[1])},i:q,o:q,d(l){l&&P(e),s&&s.d(),t[7](null)}}}function Fd(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(d){ve[d?"unshift":"push"](()=>{r=d,i(0,r)})}return t.$$set=d=>{"isMobile"in d&&i(1,n=d.isMobile),"duration"in d&&i(5,o=d.duration),"position"in d&&i(6,s=d.position),"showDuration"in d&&i(2,l=d.showDuration),"ref"in d&&i(0,r=d.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,a=Ln(o)),t.$$.dirty&64&&i(4,c=Ln(s))},[r,n,l,a,c,o,s,f]}class X1 extends _e{constructor(e){super(),ge(this,e,Fd,Hd,be,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},zd)}}function Ud(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 qd(t){let e,i,n,o,s,l;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("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){A(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:q,o:q,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 Jo extends _e{constructor(e){super(),ge(this,e,Zd,qd,be,{volume:1,muted:2},Ud)}}function Wd(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){A(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||(m(o,s),i=!0)},o(s){g(o,s),i=!1},d(s){s&&P(e),o&&o.d(s),t[5](null)}}}function jd(t,e,i){let n,{$$slots:o={},$$scope:s}=e;const r=ht().ui.overlayContainer$;R(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)};nn(()=>(f(n),()=>c(n)));function d(h){ve[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,d]}class Kd extends _e{constructor(e){super(),ge(this,e,jd,Wd,be,{})}}function Gd(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 er(t){let e,i;return e=new Kd({props:{$$slots:{default:[Yd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2097395&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Yd(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("div"),n=Oe(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"});`),V(s,"bottom-placement-pointer",!t[8]),u(e,"class","tooltip v-tny135"),u(e,"style",r=`transform: translate(${t[6]}px, ${t[7]}px);`),V(e,"active",t[0])},m(a,c){A(a,e,c),p(e,i),p(i,n),p(e,o),p(e,s),t[20](e)},p(a,c){c&2&&xe(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&&V(e,"active",a[0])},d(a){a&&P(e),t[20](null)}}}function Qd(t){let e,i,n,o,s,l;const r=t[18].default,a=Mn(r,t,t[21],null);let c=t[1]&&er(t);return{c(){e=I("div"),a&&a.c(),i=D(),c&&c.c(),n=ct(),u(e,"class","tooltip-wrapper v-tny135"),V(e,"full-width",t[2])},m(f,d){A(f,e,d),a&&a.m(e,null),t[19](e),A(f,i,d),c&&c.m(f,d),A(f,n,d),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,[d]){a&&a.p&&(!o||d&2097152)&&Nn(a,r,f,f[21],o?Bn(r,f[21],d,null):Rn(f[21]),null),(!o||d&4)&&V(e,"full-width",f[2]),f[1]?c?(c.p(f,d),d&2&&m(c,1)):(c=er(f),c.c(),m(c,1),c.m(n.parentNode,n)):c&&(fe(),g(c,1,1,()=>{c=null}),de())},i(f){o||(m(a,f),m(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[19](null),c&&c.d(f),s=!1,nt(l)}}}const Co=5;function Xd(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:d=!1}=e,{placement:h="top"}=e,{onVisibilityChange:v=ie.noop}=e;const k=h==="top";let _,S,C,T=0,y=k?Co:-Co,L=0,le=0;const Y=an(),N=ht(),ee=N.ui.playerSize;R(t,ee,z=>i(24,o=z));const Q=N.ui.overlayContainer$;R(t,Q,z=>i(23,n=z));const w=N.getLogger().createComponentLog("Tooltip component"),$=()=>{if(!n||!S||!_)return;const z=n.getBoundingClientRect(),Te=_.getBoundingClientRect(),ze=Te.width,Ve=S.clientWidth,Le=o.width,Pe=(ze-Ve)/2,pe=Te.left+c-z.left;let Z=pe+Pe;const me=Te.top+f-z.top;let Ae=Ve/2-Co;const Ue=Z<To,Ge=Z+Ve>Le-To;Ue&&(Z=To,Ae=pe+Te.width/2-2.5*Co),Ge&&(Z=Le-To-Ve,Ae=Te.left-z.left+Te.width/2-Z-Co),i(6,L=Z),i(7,le=me),i(5,T=Ae)},X=()=>{try{if(!n||!_)return;$(),i(0,a=!0)}catch(z){w({message:String(z)})}},O=()=>{i(0,a=!1)},W=()=>{S&&(C||(C=window.setTimeout(X,Y.controls.hideTimeoutTooltips)),a&&X())},B=()=>{O(),window.clearTimeout(C),C=void 0};nn($),Vo(()=>window.clearTimeout(C));function J(z){ve[z?"unshift":"push"](()=>{_=z,i(3,_)})}function E(z){ve[z?"unshift":"push"](()=>{S=z,i(4,S)})}return t.$$set=z=>{"content"in z&&i(1,r=z.content),"active"in z&&i(0,a=z.active),"translateX"in z&&i(14,c=z.translateX),"translateY"in z&&i(15,f=z.translateY),"isFullWidthWrapper"in z&&i(2,d=z.isFullWidthWrapper),"placement"in z&&i(16,h=z.placement),"onVisibilityChange"in z&&i(17,v=z.onVisibilityChange),"$$scope"in z&&i(21,l=z.$$scope)},t.$$.update=()=>{t.$$.dirty&131073&&v(a)},[a,r,d,_,S,T,L,le,k,y,ee,Q,W,B,c,f,h,v,s,J,E,l]}class J1 extends _e{constructor(e){super(),ge(this,e,Xd,Qd,be,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Gd)}}function Jd(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 xd(t){let e;const i=t[19].default,n=Mn(i,t,t[24],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),e=!0},p(o,s){n&&n.p&&(!e||s&16777216)&&Nn(n,i,o,o[24],e?Bn(i,o[24],s,null):Rn(o[24]),null)},i(o){e||(m(n,o),e=!0)},o(o){g(n,o),e=!1},d(o){n&&n.d(o)}}}function $d(t){let e,i;return e=new J1({props:{content:t[12],translateX:t[10],translateY:t[11],isFullWidthWrapper:t[4],active:t[6],placement:t[7],onVisibilityChange:t[9],$$slots:{default:[e2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&4096&&(s.content=n[12]),o&1024&&(s.translateX=n[10]),o&2048&&(s.translateY=n[11]),o&16&&(s.isFullWidthWrapper=n[4]),o&64&&(s.active=n[6]),o&128&&(s.placement=n[7]),o&512&&(s.onVisibilityChange=n[9]),o&16777216&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function e2(t){let e;const i=t[19].default,n=Mn(i,t,t[24],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),e=!0},p(o,s){n&&n.p&&(!e||s&16777216)&&Nn(n,i,o,o[24],e?Bn(i,o[24],s,null):Rn(o[24]),null)},i(o){e||(m(n,o),e=!0)},o(o){g(n,o),e=!1},d(o){n&&n.d(o)}}}function t2(t){let e,i,n,o,s,l,r,a,c;const f=[$d,xd],d=[];function h(v,k){return v[3]&&v[5]&&!v[13]?0:1}return i=h(t),n=d[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),bo(()=>t[23].call(e))},m(v,k){A(v,e,k),d[i].m(e,null),t[22](e),l=kl(e,t[23].bind(e)),r=!0,a||(c=[he(e,"pointerdown",ot(Jt(t[20]))),he(e,"click",ot(Jt(t[21])))],a=!0)},p(v,[k]){let _=i;i=h(v),i===_?d[i].p(v,k):(fe(),g(d[_],1,1,()=>{d[_]=null}),de(),n=d[i],n?n.p(v,k):(n=d[i]=f[i](v),n.c()),m(n,1),n.m(e,null)),(!r||k&4&&o!==(o="btn-container "+v[2]+" v-p9r045"))&&u(e,"class",o),(!r||k&256&&s!==(s=v[8]||null))&&u(e,"aria-hidden",s)},i(v){r||(m(n),r=!0)},o(v){g(n),r=!1},d(v){v&&P(e),d[i].d(),t[22](null),l(),a=!1,nt(c)}}}function i2(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:d=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:v=""}=e,{tooltipActive:k=!1}=e,{tooltipPlacement:_="top"}=e,{disabledTooltipContent:S=K("tooltip_button_disabled")}=e,{isAriaHidden:C=!1}=e,{onTooltipVisibilityChange:T=ie.noop}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:L=-18}=e;const le=ht(),Y=le.ui.isMobile;R(t,Y,O=>i(13,o=O));const N=le.state.graphIsOpened$;R(t,N,O=>i(18,n=O));let ee;function Q(O){to.call(this,t,O)}function w(O){to.call(this,t,O)}function $(O){ve[O?"unshift":"push"](()=>{f=O,i(0,f)})}function X(){d=this.clientWidth,i(1,d)}return t.$$set=O=>{"className"in O&&i(2,r=O.className),"disabled"in O&&i(16,a=O.disabled),"hasTooltip"in O&&i(3,c=O.hasTooltip),"ref"in O&&i(0,f=O.ref),"width"in O&&i(1,d=O.width),"isFullWidthTooltip"in O&&i(4,h=O.isFullWidthTooltip),"tooltipContent"in O&&i(5,v=O.tooltipContent),"tooltipActive"in O&&i(6,k=O.tooltipActive),"tooltipPlacement"in O&&i(7,_=O.tooltipPlacement),"disabledTooltipContent"in O&&i(17,S=O.disabledTooltipContent),"isAriaHidden"in O&&i(8,C=O.isAriaHidden),"onTooltipVisibilityChange"in O&&i(9,T=O.onTooltipVisibilityChange),"initialTranslateXPx"in O&&i(10,y=O.initialTranslateXPx),"initialTranslateYPx"in O&&i(11,L=O.initialTranslateYPx),"$$scope"in O&&i(24,l=O.$$scope)},t.$$.update=()=>{t.$$.dirty&458784&&(a?i(12,ee=n?K("tooltip_disabled_when_graph_on"):S):i(12,ee=v))},[f,d,r,c,h,v,k,_,C,T,y,L,ee,o,Y,N,a,S,n,s,Q,w,$,X,l]}class Et extends _e{constructor(e){super(),ge(this,e,i2,t2,be,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},Jd)}}function n2(t){let e,i,n,o,s;return{c(){e=M("svg"),i=M("rect"),o=M("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){A(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:q,o:q,d(l){l&&P(e)}}}function o2(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(),ge(this,e,o2,n2,be,{completed:0})}}function l2(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 s2(t){let e,i,n,o,s;return i=new x1({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}%`),bo(()=>t[3].call(e)),V(e,"disabled",t[1])},m(l,r){A(l,e,r),H(i,e,null),o=kl(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)&&V(e,"disabled",l[1])},i(l){s||(m(i.$$.fragment,l),s=!0)},o(l){g(i.$$.fragment,l),s=!1},d(l){l&&P(e),F(i),o()}}}function r2(t){let e,i;return e=new Et({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:[s2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function a2(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 u2 extends _e{constructor(e){super(),ge(this,e,a2,r2,be,{videoEpisode:0,disabled:1},l2)}}function c2(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 tr(t,e,i){const n=t.slice();return n[2]=e[i],n}function ir(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}%)`),V(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}%`),V(e,"mobile",t[1])},m(f,d){A(f,e,d),p(e,i),p(i,n),p(i,s),p(i,l),p(e,a)},p(f,d){d&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&u(n,"style",o),d&1&&r!==(r=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(l,"style",r),d&2&&V(l,"mobile",f[1]),d&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),d&2&&V(e,"mobile",f[1])},d(f){f&&P(e)}}}function f2(t){let e,i=Ht(t[0]),n=[];for(let o=0;o<i.length;o+=1)n[o]=ir(tr(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){A(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=Ht(o[0]);let l;for(l=0;l<i.length;l+=1){const r=tr(o,i,l);n[l]?n[l].p(r,s):(n[l]=ir(r),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},i:q,o:q,d(o){o&&P(e),vn(n,o)}}}function d2(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 m2 extends _e{constructor(e){super(),ge(this,e,d2,f2,be,{videoEpisodes:0,isMobile:1},c2)}}function p2(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 nr(t,e,i){const n=t.slice();return n[48]=e[i],n}function or(t){let e,i,n=Ht(t[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=sr(nr(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"),V(e,"mobile",t[5]),V(e,"hidden",t[5]&&!t[20])},m(l,r){A(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=Ht(l[21]);let a;for(a=0;a<n.length;a+=1){const c=nr(l,n,a);o[a]?(o[a].p(c,r),m(o[a],1)):(o[a]=sr(c),o[a].c(),m(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)&&V(e,"mobile",l[5]),(!i||r[0]&1048608)&&V(e,"hidden",l[5]&&!l[20])},i(l){if(!i){for(let r=0;r<n.length;r+=1)m(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),vn(o,l)}}}function lr(t){let e,i;return e=new u2({props:{videoEpisode:t[48],disabled:t[9]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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=t[48].interactive&&lr(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),A(o,e,s),i=!0},p(o,s){o[48].interactive?n?(n.p(o,s),s[0]&2097152&&m(n,1)):(n=lr(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(fe(),g(n,1,1,()=>{n=null}),de())},i(o){i||(m(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d(o)}}}function h2(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}%);`),V(s,"active-live",t[4]),V(s,"ads",t[6]),u(e,"class","bars v-1golz1y")},m(r,a){A(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&&V(s,"active-live",r[4]),a[0]&64&&V(s,"ads",r[6])},i:q,o:q,d(r){r&&P(e)}}}function b2(t){let e,i;return e=new m2({props:{videoEpisodes:t[21],isMobile:t[5]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function g2(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k=t[8]&&or(t);const _=[b2,h2],S=[];function C(T,y){return T[21].length?0:1}return n=C(t),o=S[n]=_[n](t),{c(){k&&k.c(),e=D(),i=I("div"),o.c(),s=D(),l=I("div"),r=I("div"),u(r,"class","handle v-1golz1y"),V(r,"active-live",t[4]),u(l,"class","handleWrap v-1golz1y"),u(l,"style",a=`transform: translateX(${t[13]*100}%);`),V(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),V(i,"disabled",t[9]),V(i,"slider-dragging",t[20]),V(i,"hidden",t[2]),V(i,"slider-vertical",t[3]),V(i,"no-handle",t[10]),V(i,"square",t[7])},m(T,y){k&&k.m(T,y),A(T,e,y),A(T,i,y),S[n].m(i,null),p(i,s),p(i,l),p(l,r),t[42](i),d=!0,h||(v=[he(i,"pointerdown",Jt(t[22])),he(i,"pointermove",Jt(t[23])),he(i,"pointerup",Jt(t[24])),he(i,"pointerenter",Jt(t[25])),he(i,"pointerleave",Jt(t[26])),he(i,"click",ot(ie.noop)),he(i,"wheel",t[27])],h=!0)},p(T,y){T[8]?k?(k.p(T,y),y[0]&256&&m(k,1)):(k=or(T),k.c(),m(k,1),k.m(e.parentNode,e)):k&&(fe(),g(k,1,1,()=>{k=null}),de());let L=n;n=C(T),n===L?S[n].p(T,y):(fe(),g(S[L],1,1,()=>{S[L]=null}),de(),o=S[n],o?o.p(T,y):(o=S[n]=_[n](T),o.c()),m(o,1),o.m(i,s)),(!d||y[0]&16)&&V(r,"active-live",T[4]),(!d||y[0]&8192&&a!==(a=`transform: translateX(${T[13]*100}%);`))&&u(l,"style",a),(!d||y[0]&1024)&&V(l,"hidden",T[10]),(!d||y[0]&1&&c!==(c="slider "+T[0]+" v-1golz1y"))&&u(i,"class",c),(!d||y[0]&16384)&&u(i,"aria-label",T[14]),(!d||y[0]&32768)&&u(i,"aria-valuemin",T[15]),(!d||y[0]&65536)&&u(i,"aria-valuemax",T[16]),(!d||y[0]&131072)&&u(i,"aria-valuenow",T[17]),(!d||y[0]&262144)&&u(i,"aria-valuetext",T[18]),(!d||y[0]&2&&f!==(f=T[1]??null))&&u(i,"data-testid",f),(!d||y[0]&513)&&V(i,"disabled",T[9]),(!d||y[0]&1048577)&&V(i,"slider-dragging",T[20]),(!d||y[0]&5)&&V(i,"hidden",T[2]),(!d||y[0]&9)&&V(i,"slider-vertical",T[3]),(!d||y[0]&1025)&&V(i,"no-handle",T[10]),(!d||y[0]&129)&&V(i,"square",T[7])},i(T){d||(m(k),m(o),d=!0)},o(T){g(k),g(o),d=!1},d(T){T&&(P(e),P(i)),k&&k.d(T),S[n].d(),t[42](null),h=!1,nt(v)}}}function _2(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:d=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:v=[]}=e,{withWheelHandler:k=!1}=e,{isInteractive:_=!1}=e,{disabled:S=!1}=e,{hideHandel:C=!1}=e,T,y,{onPointerDown:L=ie.noop}=e,{onHandleMove:le=ie.noop}=e,{onPointerUp:Y=ie.noop}=e,{onPointerEnter:N=ie.noop}=e,{onPointerMove:ee=ie.noop}=e,{onPointerLeave:Q=ie.noop}=e,{onWheelUp:w=ie.noop}=e,{onWheelDown:$=ie.noop}=e,{onWheelLeft:X=ie.noop}=e,{onWheelRight:O=ie.noop}=e,{loadedProgress:W=0}=e,{filledProgress:B=0}=e,{handleProgress:J=0}=e,{ariaLabel:E=""}=e,{ariaValueMin:z=void 0}=e,{ariaValueMax:Te=void 0}=e,{ariaValueNow:ze=void 0}=e,{ariaValueText:Ve=""}=e;const Le=an();let Pe=!1,pe;function Z(G){if(Pe)return;i(20,Pe=!0),y=T.getBoundingClientRect();const Ce=ye(G.clientX,G.clientY);L(Ce),T.setPointerCapture(G.pointerId)}function me(G){const Ce=ye(G.clientX,G.clientY),re=Me(G.clientX);ee(Ce,re,y.width),Pe&&le(Ce)}function Ae(G){if(!Pe)return;i(20,Pe=!1);const Ce=ye(G.clientX,G.clientY);Y(Ce)}function Ue(G){y=T.getBoundingClientRect();const Ce=ye(G.clientX,G.clientY),re=Me(G.clientX);N(Ce,re,y.width)}function Ge(){Q()}function ae(G){k&&(G.preventDefault(),G.deltaY<0?w():G.deltaY>0?$():G.deltaX>0?O():X())}function ye(G,Ce){return a?Math.max(0,Math.min(1,(y.height-(Ce-y.top))/y.height)):Math.min(Math.max(G-y.x,0),y.width)/y.width}function Me(G){return Math.min(Math.max(G-y.x,0),y.width)}function je(G,Ce){const re=Le.features.episodesClustering&&!_?Le.episodeMinWidthPc:0,ke=[];let He=0,et=0,lt=0;for(let st=1;st<v.length;st++)et=v[st].time/pe*100,et-He>re&&(ke.push({from:He,width:Math.max(0,et-He),loadedWidth:Math.max(0,Math.min(et,G)-He),filledWidth:Math.max(0,Math.min(et,Ce)-He),interactive:v[st-1].interactive,completed:v[st-1].completed}),He=v[st].time/pe*100,lt++);const Ne={from:He,width:Math.max(0,100-He),loadedWidth:Math.max(0,Math.min(G,100)-He),filledWidth:Math.max(0,Math.min(Ce,100)-He),interactive:v[lt].interactive,completed:v[lt].completed};100-He<re?(lt-=1,ke[lt].width+=100-He,ke[lt].loadedWidth+=Math.max(0,Math.min(G,100)-He),ke[lt].filledWidth+=Math.max(0,Math.min(Ce,100)-He)):ke[lt]=Ne;const ue=v[0].time;if(ue!==0){const st=ue/pe*100;ke.unshift({from:0,width:st,loadedWidth:Math.min(st,G),filledWidth:Math.min(st,Ce)})}return ke}function ne(G){ve[G?"unshift":"push"](()=>{T=G,i(19,T)})}return t.$$set=G=>{"className"in G&&i(0,s=G.className),"testId"in G&&i(1,l=G.testId),"isHidden"in G&&i(2,r=G.isHidden),"isVertical"in G&&i(3,a=G.isVertical),"isActiveLive"in G&&i(4,c=G.isActiveLive),"isMobile"in G&&i(5,f=G.isMobile),"isAds"in G&&i(6,d=G.isAds),"squareBorders"in G&&i(7,h=G.squareBorders),"videoEpisodes"in G&&i(28,v=G.videoEpisodes),"withWheelHandler"in G&&i(29,k=G.withWheelHandler),"isInteractive"in G&&i(8,_=G.isInteractive),"disabled"in G&&i(9,S=G.disabled),"hideHandel"in G&&i(10,C=G.hideHandel),"onPointerDown"in G&&i(30,L=G.onPointerDown),"onHandleMove"in G&&i(31,le=G.onHandleMove),"onPointerUp"in G&&i(32,Y=G.onPointerUp),"onPointerEnter"in G&&i(33,N=G.onPointerEnter),"onPointerMove"in G&&i(34,ee=G.onPointerMove),"onPointerLeave"in G&&i(35,Q=G.onPointerLeave),"onWheelUp"in G&&i(36,w=G.onWheelUp),"onWheelDown"in G&&i(37,$=G.onWheelDown),"onWheelLeft"in G&&i(38,X=G.onWheelLeft),"onWheelRight"in G&&i(39,O=G.onWheelRight),"loadedProgress"in G&&i(11,W=G.loadedProgress),"filledProgress"in G&&i(12,B=G.filledProgress),"handleProgress"in G&&i(13,J=G.handleProgress),"ariaLabel"in G&&i(14,E=G.ariaLabel),"ariaValueMin"in G&&i(15,z=G.ariaValueMin),"ariaValueMax"in G&&i(16,Te=G.ariaValueMax),"ariaValueNow"in G&&i(17,ze=G.ariaValueNow),"ariaValueText"in G&&i(18,Ve=G.ariaValueText)},t.$$.update=()=>{t.$$.dirty[0]&65536&&i(40,pe=Te??0),t.$$.dirty[0]&268435456|t.$$.dirty[1]&512&&i(41,n=v[v.length-1]?.time<pe),t.$$.dirty[0]&268441600|t.$$.dirty[1]&1536&&i(21,o=v.length&&n&&pe?je(W*100,B*100):[])},[s,l,r,a,c,f,d,h,_,S,C,W,B,J,E,z,Te,ze,Ve,T,Pe,o,Z,me,Ae,Ue,Ge,ae,v,k,L,le,Y,N,ee,Q,w,$,X,O,pe,n,ne]}class El extends _e{constructor(e){super(),ge(this,e,_2,g2,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},p2,[-1,-1])}}const gn=(t,e)=>go[t]>=go[e],v2=(t,e)=>go[t]<go[e],$1=(t,e)=>go[t]<=go[e],k2=t=>t>mo.L?exports.GridTypes.XL:t>mo.M?exports.GridTypes.L:t>mo.S?exports.GridTypes.M:t>mo.XS?exports.GridTypes.S:exports.GridTypes.XS;function w2(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 y2(t){let e,i;return e=new Jo({props:{volume:t[3],muted:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function C2(t){let e,i;return e=new pi({props:{className:"btn-full-opacity",disabled:t[9],testId:t[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:t[7],click:t[0],ariaKeyShortCut:Lo[Se.KeyM],$$slots:{default:[y2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function rr(t){let e,i,n;return i=new El({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]:ie.noop,onPointerLeave:t[2]?t[20]: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[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","volumeBar v-1l78lz9"),V(e,"volumeBar-vertical",t[2])},m(o,s){A(o,e,s),H(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]:ie.noop),s[0]&4&&(l.onPointerLeave=o[2]?o[20]: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]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),i.$set(l),(!n||s[0]&4)&&V(e,"volumeBar-vertical",o[2])},i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function T2(t){let e,i,n,o,s,l;i=new J1({props:{content:t[6],translateY:-18,$$slots:{default:[C2]},$$scope:{ctx:t}}});let r=t[4]&&rr(t);return{c(){e=I("div"),U(i.$$.fragment),n=D(),r&&r.c(),u(e,"class","volumeBar-container v-1l78lz9"),V(e,"vertical",t[2])},m(a,c){A(a,e,c),H(i,e,null),p(e,n),r&&r.m(e,null),o=!0,s||(l=[he(e,"mouseenter",function(){_n(t[2]?t[21]:ie.noop)&&(t[2]?t[21]:ie.noop).apply(this,arguments)}),he(e,"mouseleave",function(){_n(t[2]?t[22]:ie.noop)&&(t[2]?t[22]:ie.noop).apply(this,arguments)}),he(e,"wheel",Jt(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&&m(r,1)):(r=rr(t),r.c(),m(r,1),r.m(e,null)):r&&(fe(),g(r,1,1,()=>{r=null}),de()),(!o||c[0]&4)&&V(e,"vertical",t[2])},i(a){o||(m(i.$$.fragment,a),m(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 S2(t,e,i){let n,o,s,l,{click:r}=e;const a=ht(),c=an(),f=a.state.volume$;R(t,f,Pe=>i(3,n=Pe));const d=a.state.muted$;R(t,d,Pe=>i(25,l=Pe));const h=a.actions.internal.setVolume,v=a.ui.currentGridType$;R(t,v,Pe=>i(24,s=Pe));const k=a.callbacks?.onAudioDoesNotExistHint,_=a.callbacks?.onAudioDisabledHint,S=a.state.isAudioAvailable$;R(t,S,Pe=>i(4,o=Pe));const C=a.state.isAudioDisabled;let T=!1,y,L,le,Y,N,ee,Q=1,w=!1,$=!1;function X(Pe){Q=n,h(Pe)}function O(){q1(a,n,c.controls.volumeStepWheel)}function W(){Z1(a,n,c.controls.volumeStepWheel)}function B(Pe){h(Pe)}function J(Pe){const pe=Pe;h(pe,pe===0?Q:pe)}function E(){w=!0}function z(){w=!1,Ve()}function Te(){clearTimeout(y),i(5,T=!0)}function ze(){Ve()}function Ve(){y=window.setTimeout(()=>{w||i(5,T=!1)},c.controls.volumeBarTimeout)}function Le(Pe){Pe.deltaY<0?O():Pe.deltaY>0&&W()}return t.$$set=Pe=>{"click"in Pe&&i(0,r=Pe.click)},t.$$.update=()=>{t.$$.dirty[0]&33554448&&i(1,Y=!o||l),t.$$.dirty[0]&16777216&&i(2,N=$1(s,exports.GridTypes.S)),t.$$.dirty[0]&6&&(N?i(6,L=""):i(6,L=K(Y?"tooltip_volume":"tooltip_volume_muted")),i(7,le=K(Y?"tooltip_volume":"tooltip_volume_muted"))),t.$$.dirty[0]&10&&i(8,ee=Y?0:n),t.$$.dirty[0]&16&&i(9,$=C&&!_||!o&&!k)},[r,Y,N,n,o,T,L,le,ee,$,f,d,v,S,X,O,W,B,J,E,z,Te,ze,Le,s,l]}class P2 extends _e{constructor(e){super(),ge(this,e,S2,T2,be,{click:0},w2,[-1,-1])}}function A2(t){let e;return{c(){e=M("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){A(i,e,n)},d(i){i&&P(e)}}}function I2(t){let e;return{c(){e=M("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){A(i,e,n)},d(i){i&&P(e)}}}function E2(t){let e,i,n;function o(r,a){return r[0]?I2:A2}let s=o(t),l=s(t);return{c(){e=M("svg"),i=M("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){A(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:q,o:q,d(r){r&&P(e),l.d()}}}function V2(t,e,i){let{isFullscreen:n=!1}=e;return t.$$set=o=>{"isFullscreen"in o&&i(0,n=o.isFullscreen)},[n]}class L2 extends _e{constructor(e){super(),ge(this,e,V2,E2,be,{isFullscreen:0})}}function M2(t){let e,i;return e=new L2({props:{isFullscreen:t[0]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&1&&(s.isFullscreen=n[0]),e.$set(s)},i(n){i||(m(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 pi({props:{testId:"btn-fullscreen",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Lo[Se.KeyF],$$slots:{default:[M2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function N2(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=K(n?"tooltip_fullscreen_on":"tooltip_fullscreen_off"))},[n,o,s]}class eu extends _e{constructor(e){super(),ge(this,e,N2,B2,be,{isFullscreen:0,click:1})}}function R2(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Vl extends _e{constructor(e){super(),ge(this,e,null,R2,be,{})}}function D2(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class tu extends _e{constructor(e){super(),ge(this,e,null,D2,be,{})}}function O2(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 ar(t){let e;return{c(){e=I("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){A(i,e,n)},d(i){i&&P(e)}}}function z2(t){let e,i,n,o,s=t[1]&&ar();var l=t[8];function r(a){return{}}return l&&(n=Pn(l,r())),{c(){s&&s.c(),e=D(),i=I("div"),n&&U(n.$$.fragment),u(i,"class","v-1ot3duq"),V(i,"mobile",t[1])},m(a,c){s&&s.m(a,c),A(a,e,c),A(a,i,c),n&&H(n,i,null),o=!0},p(a,c){if(a[1]?s||(s=ar(),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,()=>{F(f,1)}),de()}l?(n=Pn(l,r()),U(n.$$.fragment),m(n.$$.fragment,1),H(n,i,null)):n=null}(!o||c&2)&&V(i,"mobile",a[1])},i(a){o||(n&&m(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 H2(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:Lo[Se.KeyK],$$slots:{default:[z2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function F2(t,e,i){let n,o;const{fakeIsPlaying$:s}=vo();R(t,s,T=>i(12,o=T));let{ref:l=void 0}=e,{isMobile:r=!1}=e,{isPlaying:a=!1}=e,{disabled:c=!1}=e,{className:f=""}=e,{click:d=ie.noop}=e;const{toggle:h}=s;let v,k,_,S;function C(T){l=T,i(0,l)}return t.$$set=T=>{"ref"in T&&i(0,l=T.ref),"isMobile"in T&&i(1,r=T.isMobile),"isPlaying"in T&&i(10,a=T.isPlaying),"disabled"in T&&i(2,c=T.disabled),"className"in T&&i(3,f=T.className),"click"in T&&i(4,d=T.click)},t.$$.update=()=>{t.$$.dirty&4096&&i(5,k=o!==null),t.$$.dirty&5152&&i(11,_=k?o:a),t.$$.dirty&2048&&i(7,S=K(_?"tooltip_pause":"tooltip_play")),t.$$.dirty&2048&&i(8,n=_?tu:Vl)},i(6,v=h),[l,r,c,f,d,k,v,S,n,s,a,_,o,C]}class Ll extends _e{constructor(e){super(),ge(this,e,F2,H2,be,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},O2)}}function U2(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 q2(t){let e,i,n;return{c(){e=M("svg"),i=M("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"),V(e,"prev",t[0]),V(e,"mobile",t[1])},m(o,s){A(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&&V(e,"prev",o[0]),s&2&&V(e,"mobile",o[1])},i:q,o:q,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 W2 extends _e{constructor(e){super(),ge(this,e,Z2,q2,be,{isPrev:0,isMobile:1},U2)}}function j2(t){let e,i;return e=new W2({props:{isMobile:t[1],isPrev:t[3]==="prev"}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function K2(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:[j2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function G2(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 xo extends _e{constructor(e){super(),ge(this,e,G2,K2,be,{ref:0,isMobile:1,disabled:2,type:3,click:4})}}function Y2(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Q2 extends _e{constructor(e){super(),ge(this,e,null,Y2,be,{})}}function X2(t){Ke(t,"v-1bbobod",".mobile.v-1bbobod{transform:scale(1.1) translateY(-1px)}")}function ur(t){let e,i,n,o,s,l,r;return{c(){e=M("path"),i=M("path"),n=M("path"),o=M("path"),s=M("path"),l=M("path"),r=M("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){A(a,e,c),A(a,i,c),A(a,n,c),A(a,o,c),A(a,s,c),A(a,l,c),A(a,r,c)},d(a){a&&(P(e),P(i),P(n),P(o),P(s),P(l),P(r))}}}function J2(t){let e,i,n,o=!t[0]&&ur();return{c(){e=M("svg"),i=M("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"),V(e,"mobile",t[1])},m(s,l){A(s,e,l),p(e,i),o&&o.m(e,null)},p(s,[l]){s[0]?o&&(o.d(1),o=null):o||(o=ur(),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&&V(e,"mobile",s[1])},i:q,o:q,d(s){s&&P(e),o&&o.d()}}}function x2(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 $2 extends _e{constructor(e){super(),ge(this,e,x2,J2,be,{short:0,isMobile:1},X2)}}function e4(t){let e,i,n,o,s,l,r,a,c,f,d,h,v;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("defs"),l=M("filter"),r=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),h=M("feBlend"),v=M("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M15 16.6C15 14.6398 15 13.6597 15.3815 12.911C15.717 12.2525 16.2525 11.717 16.911 11.3815C17.6597 11 18.6398 11 20.6 11H21.96C24.4242 11 25.6563 11 26.5976 11.4796C27.4255 11.9014 28.0986 12.5745 28.5204 13.4024C29 14.3437 29 15.5758 29 18.04V21.96C29 24.4242 29 25.6563 28.5204 26.5976C28.0986 27.4255 27.4255 28.0986 26.5976 28.5204C25.6563 29 24.4242 29 21.96 29H20.6C18.6398 29 17.6597 29 16.911 28.6185C16.2525 28.283 15.717 27.7475 15.3815 27.089C15 26.3403 15 25.3602 15 23.4V16.6ZM24.2646 18.3443C25.1663 18.8828 25.6171 19.1521 25.7699 19.5007C25.9032 19.805 25.9032 20.1511 25.7699 20.4554C25.6171 20.804 25.1663 21.0733 24.2646 21.6118L21.8788 23.0367C20.9363 23.5997 20.465 23.8812 20.0774 23.8445C19.7393 23.8125 19.4311 23.6376 19.2303 23.3638C19 23.0498 19 22.5008 19 21.403V18.5531C19 17.4552 19 16.9063 19.2303 16.5923C19.4311 16.3185 19.7393 16.1436 20.0774 16.1116C20.465 16.0749 20.9363 16.3564 21.8788 16.9193L24.2646 18.3443ZM13 17.04C13 14.5758 13 13.3437 13.4796 12.4025C13.7214 11.9278 14.0459 11.504 14.4348 11.1493C14.0394 11.2203 13.7058 11.325 13.4024 11.4796C12.5745 11.9015 11.9014 12.5746 11.4796 13.4025C11 14.3437 11 15.5758 11 18.04V21.96C11 24.4243 11 25.6564 11.4796 26.5976C11.9014 27.4255 12.5745 28.0986 13.4024 28.5205C13.7058 28.6751 14.0394 28.7798 14.4348 28.8508C14.0459 28.4961 13.7214 28.0723 13.4796 27.5976C13 26.6564 13 25.4243 13 22.96V17.04Z"),u(n,"fill","white"),u(o,"d","M14.6032 11.334L15.2433 10.7501L14.3906 10.9032C13.9767 10.9775 13.6187 11.0888 13.2889 11.2569C12.414 11.7027 11.7026 12.414 11.2568 13.289C10.9961 13.8007 10.872 14.3806 10.8108 15.1298C10.75 15.8737 10.75 16.8061 10.75 18.0284V18.04V21.96V21.9717C10.75 23.194 10.75 24.1264 10.8108 24.8703C10.872 25.6195 10.9961 26.1994 11.2568 26.7111C11.7026 27.5861 12.414 28.2974 13.2889 28.7432C13.6187 28.9113 13.9767 29.0225 14.3906 29.0969L15.2433 29.25L14.6032 28.6661C14.2365 28.3315 13.9304 27.9318 13.7023 27.4841C13.4835 27.0546 13.3678 26.5478 13.3091 25.8296C13.2502 25.1084 13.25 24.1963 13.25 22.96V17.04C13.25 15.8038 13.2502 14.8917 13.3091 14.1705C13.3678 13.4522 13.4835 12.9455 13.7023 12.516C13.9304 12.0683 14.2365 11.6686 14.6032 11.334ZM15.1587 12.7975C14.947 13.213 14.8475 13.6818 14.7985 14.2808C14.75 14.8747 14.75 15.6181 14.75 16.5884V16.6V23.4V23.4116C14.75 24.3819 14.75 25.1253 14.7985 25.7192C14.8475 26.3182 14.947 26.787 15.1587 27.2025C15.5183 27.9081 16.0919 28.4818 16.7975 28.8413C17.213 29.053 17.6818 29.1525 18.2808 29.2015C18.8747 29.25 19.6181 29.25 20.5884 29.25H20.6H21.96H21.9717C23.1939 29.25 24.1264 29.25 24.8703 29.1892C25.6194 29.128 26.1993 29.0039 26.7111 28.7432C27.586 28.2974 28.2974 27.586 28.7432 26.7111C29.0039 26.1993 29.128 25.6194 29.1892 24.8703C29.25 24.1264 29.25 23.1939 29.25 21.9717V21.96V18.04V18.0283C29.25 16.8061 29.25 15.8736 29.1892 15.1297C29.128 14.3806 29.0039 13.8007 28.7432 13.2889C28.2974 12.414 27.586 11.7026 26.7111 11.2568C26.1993 10.9961 25.6194 10.872 24.8703 10.8108C24.1264 10.75 23.1939 10.75 21.9717 10.75H21.96H20.6H20.5884C19.6181 10.75 18.8747 10.75 18.2808 10.7985C17.6818 10.8475 17.213 10.947 16.7975 11.1587C16.0919 11.5183 15.5183 12.0919 15.1587 12.7975ZM24.1364 18.5589C24.5914 18.8307 24.9178 19.0259 25.1508 19.1958C25.3846 19.3661 25.4915 19.4884 25.5409 19.601C25.6462 19.8413 25.6462 20.1147 25.5409 20.355C25.4915 20.4677 25.3846 20.59 25.1508 20.7603C24.9178 20.9302 24.5914 21.1254 24.1364 21.3972L21.7506 22.8221C21.2751 23.1061 20.9332 23.31 20.662 23.44C20.3893 23.5707 20.2254 23.6074 20.1009 23.5956C19.8339 23.5703 19.5905 23.4322 19.4319 23.2159C19.358 23.1151 19.3054 22.9556 19.2778 22.6545C19.2503 22.3549 19.25 21.9568 19.25 21.403V18.5531C19.25 17.9992 19.2503 17.6012 19.2778 17.3016C19.3054 17.0005 19.358 16.841 19.4319 16.7402C19.5905 16.5239 19.8339 16.3858 20.1009 16.3605C20.2254 16.3487 20.3893 16.3854 20.662 16.5161C20.9332 16.6461 21.2751 16.85 21.7506 17.134L24.1364 18.5589Z"),u(o,"stroke","black"),u(o,"stroke-opacity","0.12"),u(o,"stroke-width","0.5"),u(i,"filter","url(#filter0_d_207_5101)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"type","matrix"),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(d,"type","matrix"),u(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"mode","normal"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_207_5101"),u(v,"mode","normal"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_207_5101"),u(v,"result","shape"),u(l,"id","filter0_d_207_5101"),u(l,"x","5.5"),u(l,"y","5.35095"),u(l,"width","29"),u(l,"height","29.2982"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","40"),u(e,"height","40"),u(e,"viewBox","0 0 40 40"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(k,_){A(k,e,_),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,d),p(l,h),p(l,v)},p:q,i:q,o:q,d(k){k&&P(e)}}}class t4 extends _e{constructor(e){super(),ge(this,e,null,e4,be,{})}}function i4(t){let e,i;return e=new Q2({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p:q,i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function n4(t){let e,i;return e=new $2({props:{short:t[5]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&32&&(s.short=n[5]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function o4(t){let e,i;return e=new t4({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p:q,i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function l4(t){let e,i,n,o;const s=[o4,n4,i4],l=[];function r(a,c){return a[7]||a[4]?0:a[2]?1:2}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),A(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()),m(i,1),i.m(n.parentNode,n))},i(a){o||(m(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function s4(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:[l4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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&65588&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function r4(t,e,i){let n,o,{ref:s=void 0}=e,{logoClickable:l=!1}=e,{targetUrl:r=""}=e,{click:a}=e;const c=an(),f=ht(),d=f.ui.currentGridType$;R(t,d,y=>i(11,n=y));const h=f.ui.isMobile;R(t,h,y=>i(12,o=y));let v,k,_,S;const C=()=>{a(),f.callbacks?.onLogoClicked?.(),r&&window.open(r,"_blank")};function T(y){s=y,i(0,s)}return t.$$set=y=>{"ref"in y&&i(0,s=y.ref),"logoClickable"in y&&i(1,l=y.logoClickable),"targetUrl"in y&&i(9,r=y.targetUrl),"click"in y&&i(10,a=y.click)},t.$$.update=()=>{t.$$.dirty&6148&&i(5,S=(o||$1(n,exports.GridTypes.L))&&k)},i(3,v=c.logoType===$n.VK_VIDEO?K("tooltip_vk_video_logo"):K("tooltip_vk_logo")),i(2,k=c.logoType===$n.VK_VIDEO),i(4,_=c.logoType===$n.VK_VIDEO_MOBILE),[s,l,k,v,_,S,d,h,C,r,a,n,o,T]}class iu extends _e{constructor(e){super(),ge(this,e,r4,s4,be,{ref:0,logoClickable:1,targetUrl:9,click:10})}}function a4(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 u4(t){let e,i,n,o,s,l,r,a;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("path"),l=M("path"),r=M("path"),a=M("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"),V(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"),V(e,"connecting",t[2])},m(c,f){A(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&&V(a,"hidden",!c[1]),f&4&&V(e,"connecting",c[2])},d(c){c&&P(e)}}}function c4(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le;return{c(){e=M("svg"),i=M("g"),n=M("mask"),o=M("path"),l=M("path"),r=M("path"),c=M("path"),f=M("defs"),d=M("clipPath"),h=M("path"),k=M("filter"),_=M("feFlood"),S=M("feColorMatrix"),C=M("feOffset"),T=M("feGaussianBlur"),y=M("feColorMatrix"),L=M("feBlend"),le=M("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",v=t[1]?"#2688EB":"#fff"),u(h,"d","M0 0h24v24H0z"),u(d,"id","a"),u(_,"flood-opacity","0"),u(_,"result","BackgroundImageFix"),u(S,"in","SourceAlpha"),u(S,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(S,"result","hardAlpha"),u(T,"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(L,"in2","BackgroundImageFix"),u(L,"result","effect1_dropShadow_4085_178456"),u(le,"in","SourceGraphic"),u(le,"in2","effect1_dropShadow_4085_178456"),u(le,"result","shape"),u(k,"id","b"),u(k,"x","-3.4"),u(k,"y","-1.4"),u(k,"width","30.8"),u(k,"height","26.802"),u(k,"filterUnits","userSpaceOnUse"),u(k,"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(Y,N){A(Y,e,N),p(e,i),p(i,n),p(n,o),p(n,l),p(i,r),p(i,c),p(e,f),p(f,d),p(d,h),p(f,k),p(k,_),p(k,S),p(k,C),p(k,T),p(k,y),p(k,L),p(k,le)},p(Y,N){N&2&&s!==(s=Y[1]?"#2688EB":"#fff")&&u(o,"fill",s),N&2&&a!==(a=Y[1]?"#2688EB":"#fff")&&u(r,"fill",a),N&2&&v!==(v=Y[1]?"#2688EB":"#fff")&&u(h,"fill",v)},d(Y){Y&&P(e)}}}function f4(t){let e;function i(s,l){return s[0]?c4:u4}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),A(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:q,o:q,d(s){s&&P(e),o.d(s)}}}function d4(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 m4 extends _e{constructor(e){super(),ge(this,e,d4,f4,be,{isMobile:0,state:3},a4)}}function p4(t){let e,i;return e=new m4({props:{isMobile:t[1],state:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function h4(t){let e,i,n;function o(l){t[5](l)}let s={ariaLabel:t[4],click:t[3],testId:"btn-chromecast",$$slots:{default:[p4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function b4(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===$e.ChromecastState.CONNECTED?K("tooltip_chromecast_on"):K("tooltip_chromecast_off"))},[n,o,s,l,r,a]}class nu extends _e{constructor(e){super(),ge(this,e,b4,h4,be,{ref:0,isMobile:1,state:2,click:3})}}function g4(t){let e,i;return e=new B1({props:{isActive:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isActive=n[1]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function _4(t){let e,i;return e=new pi({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:[g4]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function v4(t,e,i){let n,{isMobile:o=!1}=e,{isActiveLive:s=!1}=e,{ariaLabel:l=""}=e;const r=ht(),a=r.state.playbackState$;R(t,a,h=>i(3,n=h));const c=r.actions.internal.switchToActiveLive,f=r.actions.internal.togglePlay;let d;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,d=()=>{if(!s){c();return}n===$e.PlaybackState.PAUSED&&f()})},[o,s,l,n,d,a]}class ou extends _e{constructor(e){super(),ge(this,e,v4,_4,be,{isMobile:0,isActiveLive:1,ariaLabel:2})}}function k4(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 w4(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"),V(i,"active",t[0]),V(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){A(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)&&V(i,"active",r[0]),(!o||a&2)&&V(i,"pointer",r[1]),(!o||a&36&&n!==(n=`transform: translate(${r[5]}px, ${r[2]}px);`))&&u(e,"style",n)},i(r){o||(m(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 y4(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,d,h;function v(S){if(!h)return 0;const{width:C}=h.getBoundingClientRect(),T=C/2;return S<T?T:S>f-T?f-T:S}function k(S){ve[S?"unshift":"push"](()=>{h=S,i(4,h)})}function _(S){ve[S?"unshift":"push"](()=>{d=S,i(3,d)})}return t.$$set=S=>{"active"in S&&i(0,l=S.active),"pointer"in S&&i(1,r=S.pointer),"translateXPx"in S&&i(6,a=S.translateXPx),"translateYPx"in S&&i(2,c=S.translateYPx),"containerWidth"in S&&i(7,f=S.containerWidth),"$$scope"in S&&i(8,s=S.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&i(5,n=v(a))},[l,r,c,d,h,n,a,f,s,o,k,_]}class C4 extends _e{constructor(e){super(),ge(this,e,y4,w4,be,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},k4)}}const lu=(t,e,i)=>i.filter(n=>n.time<t*e).pop();function T4(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 cr(t){let e;function i(s,l){return s[2]&&s[10].completed===!1?P4:S4}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),A(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 S4(t){let e=(t[10].text||"")+"",i;return{c(){i=Oe(e)},m(n,o){A(n,i,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&xe(i,e)},d(n){n&&P(i)}}}function P4(t){let e=K("tooltip_episode_unfinished")+"",i;return{c(){i=Oe(e)},m(n,o){A(n,i,o)},p:q,d(n){n&&P(i)}}}function A4(t){let e,i,n,o,s,l,r,a,c=t[10]&&cr(t);return{c(){e=I("div"),i=I("div"),o=D(),s=I("div"),c&&c.c(),l=D(),r=I("div"),a=Oe(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"),V(e,"mobile",t[1])},m(f,d){A(f,e,d),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,[d]){d&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,d):(c=cr(f),c.c(),c.m(s,null)):c&&(c.d(1),c=null),d&1&&xe(a,f[0]),d&2&&V(e,"mobile",f[1])},i:q,o:q,d(f){f&&P(e),c&&c.d()}}}const co=150;function I4(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;R(t,h,N=>i(11,n=N));let v,k,_,S,C,T,y,L;function le(){let N=r.frameWidth,ee=r.frameHeight;return N>co?(ee=ee/N*co,N=co):ee>co&&(N=N/ee*co,ee=co),{width:N,height:ee}}function Y(N){let ee;r.isUV?ee=Math.floor(c*N/r.frequency):ee=Math.min(r.countTotal,Math.max(0,Math.floor(r.countTotal*N)));const Q=Math.floor(ee/r.countPerImage),w=Math.floor(ee%r.countPerImage/r.countPerRow),$=ee%r.countPerRow;let X=Math.floor(r.countPerImage/r.countPerRow);!r.isUV&&Q===Math.floor(r.countTotal/r.countPerImage)&&(X=Math.floor(r.countTotal%r.countPerImage/r.countPerRow),r.countTotal%r.countPerImage%r.countPerRow>0&&X++);let O=r.countPerRow;!r.isUV&&Q===Math.floor(r.countTotal/r.countPerImage)&&r.countTotal%r.countPerImage>0&&(O=Math.min(r.countPerRow,r.countTotal%r.countPerImage));const W=v*O,B=k*X,J=-$*v,E=-w*k;return{imgSrc:r.links[Q],imgWidth:W,imgHeight:B,imgOffsetX:J,imgOffsetY:E}}return t.$$set=N=>{"time"in N&&i(0,o=N.time),"isMobile"in N&&i(1,s=N.isMobile),"videoEpisodes"in N&&i(13,l=N.videoEpisodes),"previewThumbsData"in N&&i(14,r=N.previewThumbsData),"progress"in N&&i(15,a=N.progress),"duration"in N&&i(16,c=N.duration),"isInteractive"in N&&i(2,f=N.isInteractive)},t.$$.update=()=>{t.$$.dirty&32768&&i(5,{imgSrc:_,imgWidth:S,imgHeight:C,imgOffsetX:T,imgOffsetY:y}=Y(a),_,(i(6,S),i(15,a)),(i(7,C),i(15,a)),(i(8,T),i(15,a)),(i(9,y),i(15,a))),t.$$.dirty&106496&&i(10,L=lu(a,c,l))},i(3,{width:v,height:k}=le(),v,i(4,k)),[o,s,f,v,k,_,S,C,T,y,L,n,h,l,r,a,c]}class E4 extends _e{constructor(e){super(),ge(this,e,I4,A4,be,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},T4)}}function V4(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 L4(t){let e,i;return{c(){e=I("span"),i=Oe(t[7]),u(e,"class","time v-5lzly8")},m(n,o){A(n,e,o),p(e,i)},p(n,o){o[0]&128&&xe(i,n[7])},i:q,o:q,d(n){n&&P(e)}}}function M4(t){let e,i;return e=new E4({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){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function B4(t){let e,i,n,o;const s=[M4,L4],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),A(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()),m(i,1),i.m(n.parentNode,n))},i(a){o||(m(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function N4(t){let e,i,n,o;const s=[t[9]];let l={$$slots:{default:[B4]},$$scope:{ctx:t}};for(let r=0;r<s.length;r+=1)l=e1(l,s[r]);return e=new C4({props:l}),n=new El({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(at.TIMELINE),hideHandel:t[2]}}),{c(){U(e.$$.fragment),i=D(),U(n.$$.fragment)},m(r,a){H(e,r,a),A(r,i,a),H(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=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(at.TIMELINE)),a[0]&4&&(f.hideHandel=r[2]),n.$set(f)},i(r){o||(m(e.$$.fragment,r),m(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 R4(t,e,i){let n,o,s,l,r,a,c,f,d,h,v,{showTimeline:k=!1}=e;const _=ht(),S=an(),C=_.state.bufferedProgress$;R(t,C,ne=>i(12,h=ne));const T=_.state.positionWithScrubbing$;R(t,T,ne=>i(39,a=ne));const y=_.state.duration$;R(t,y,ne=>i(1,s=ne));const L=_.state.isLive$;R(t,L,ne=>i(0,o=ne));const le=_.state.isActiveLive$;R(t,le,ne=>i(11,d=ne));const Y=_.ui.isMobile;R(t,Y,ne=>i(10,f=ne));const N=S.features.episodes?_.actions.internal.getVideoEpisodes():void 0,ee=_.actions.internal.getPreviewThumbsData(),Q=_.state.interactiveEpisodes$;R(t,Q,ne=>i(40,c=ne));const w=_.state.isInteractive,$=_.state.isInteractiveTime$;R(t,$,ne=>i(2,l=ne));const X=_.state.isInteractiveExpectation$;R(t,X,ne=>i(38,r=ne));const O=_.actions.internal.correctSeekTimeToInteractive,W=_.ui.controls.disabledControls$;R(t,W,ne=>i(13,v=ne));let B,J,E,z,Te=!1,ze="",Ve=0,Le=0,Pe=0,pe;function Z(ne){return!O||!w?ne:O(ne*s)/s}function me(ne){_.actions.internal.startScrubbing(Z(ne))}function Ae(ne){l||_.actions.internal.progressScrubbing(Z(ne))}function Ue(ne){_.actions.internal.completeScrubbing(Z(ne)),i(34,Te=!1)}function Ge(ne,G,Ce){Me(ne,G,Ce),i(34,Te=!0)}function ae(ne,G,Ce){Me(ne,G,Ce),i(34,Te=!0)}function ye(){i(34,Te=!1)}function Me(ne,G,Ce){i(8,Pe=ne),i(35,Ve=G),Ce&&i(36,Le=Ce),i(7,ze=je(ne))}function je(ne){const G=Ln((o?1-ne:ne)*s);return o?`-${G}`:G}return t.$$set=ne=>{"showTimeline"in ne&&i(33,k=ne.showTimeline)},t.$$.update=()=>{t.$$.dirty[1]&512&&i(3,B=w?c:N),t.$$.dirty[0]&2&&i(4,J=Ln(s)),t.$$.dirty[1]&256&&i(5,E=Ln(a)),t.$$.dirty[0]&2|t.$$.dirty[1]&256&&i(6,z=a/s),t.$$.dirty[0]&4|t.$$.dirty[1]&128&&i(37,pe=r||l),t.$$.dirty[0]&1|t.$$.dirty[1]&124&&i(9,n={containerWidth:Le,translateXPx:Ve,translateYPx:w&&ee?-36:-16,active:Te&&k&&!pe,pointer:!S.features.timelinePreview||!ee||o})},[o,s,l,B,J,E,z,ze,Pe,n,f,d,h,v,S,C,T,y,L,le,Y,ee,Q,w,$,X,W,me,Ae,Ue,Ge,ae,ye,k,Te,Ve,Le,pe,r,a,c]}let D4=class extends _e{constructor(e){super(),ge(this,e,R4,N4,be,{showTimeline:33},V4,[-1,-1])}};function O4(t){let e,i;return e=new El({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){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function z4(t,e,i){let n,{position:o=0}=e,{duration:s=0}=e;const r=ht().ui.isMobile;R(t,r,d=>i(4,n=d));let a,c,f;return t.$$set=d=>{"position"in d&&i(6,o=d.position),"duration"in d&&i(0,s=d.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,a=Ln(s)),t.$$.dirty&64&&i(2,c=Ln(o)),t.$$.dirty&65&&i(3,f=o/s)},[s,a,c,f,n,r,o]}class su extends _e{constructor(e){super(),ge(this,e,z4,O4,be,{position:6,duration:0})}}function H4(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 F4(t){let e;return{c(){e=I("div"),u(e,"class","timeline-stub v-1gqonyf"),V(e,"mobile",t[2])},m(i,n){A(i,e,n)},p(i,n){n&4&&V(e,"mobile",i[2])},i:q,o:q,d(i){i&&P(e)}}}function U4(t){let e,i,n,o;const s=[Z4,q4],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"),V(e,"mobile",t[2])},m(a,c){A(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()),m(n,1),n.m(e,null)),(!o||c&4)&&V(e,"mobile",a[2])},i(a){o||(m(n),o=!0)},o(a){g(n),o=!1},d(a){a&&P(e),l[i].d()}}}function q4(t){let e,i;return e=new D4({props:{showTimeline:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.showTimeline=n[1]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Z4(t){let e,i;return e=new su({props:{position:t[3],duration:t[4]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function W4(t){let e,i,n,o;const s=[U4,F4],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),A(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()),m(i,1),i.m(n.parentNode,n))},i(a){o||(m(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function j4(t,e,i){let n,o,s,l,{isAds:r=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e;const d=ht(),h=d.state.isLive$;R(t,h,C=>i(12,n=C));const v=d.ads.duration;R(t,v,C=>i(4,l=C));const k=d.ads.position;R(t,k,C=>i(3,s=C));const _=d.ui.isMobile;R(t,_,C=>i(2,o=C));let S;return t.$$set=C=>{"isAds"in C&&i(0,r=C.isAds),"canRewindLive"in C&&i(9,a=C.canRewindLive),"isRewindableLive"in C&&i(10,c=C.isRewindableLive),"isHidden"in C&&i(11,f=C.isHidden)},t.$$.update=()=>{t.$$.dirty&7681&&i(1,S=!f&&(!n||n&&a&&c||r))},[r,S,o,s,l,h,v,k,_,a,c,f,n]}class ru extends _e{constructor(e){super(),ge(this,e,j4,W4,be,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},H4)}}function K4(t){let e,i,n,o;return{c(){e=M("svg"),i=M("path"),n=M("path"),o=M("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){A(s,e,l),p(e,i),p(e,n),p(e,o)},p:q,i:q,o:q,d(s){s&&P(e)}}}class G4 extends _e{constructor(e){super(),ge(this,e,null,K4,be,{})}}function Y4(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Q4 extends _e{constructor(e){super(),ge(this,e,null,Y4,be,{})}}function X4(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 J4(t){let e,i,n,o;e=new G4({});function s(a,c){if(a[4]===eo.FULL)return em;if(a[4]===eo.COUNT)return $4}let l=s(t),r=l&&l(t);return{c(){U(e.$$.fragment),i=D(),r&&r.c(),n=ct()},m(a,c){H(e,a,c),A(a,i,c),r&&r.m(a,c),A(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||(m(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 x4(t){let e,i,n,o,s,l;return s=new Q4({}),{c(){e=I("span"),i=Oe(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){A(r,e,a),p(e,i),A(r,n,a),A(r,o,a),H(s,o,null),l=!0},p(r,a){(!l||a&4)&&xe(i,r[2])},i(r){l||(m(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 $4(t){let e,i=t[0].length+"",n;return{c(){e=I("span"),n=Oe(i),u(e,"class","text count v-1yhs2ga")},m(o,s){A(o,e,s),p(e,n)},p(o,s){s&1&&i!==(i=o[0].length+"")&&xe(n,i)},d(o){o&&P(e)}}}function em(t){let e,i;return{c(){e=I("span"),i=Oe(t[2]),u(e,"class","text v-1yhs2ga")},m(n,o){A(n,e,o),p(e,i)},p(n,o){o&4&&xe(i,n[2])},d(n){n&&P(e)}}}function tm(t){let e,i,n,o;const s=[x4,J4],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),A(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()),m(i,1),i.m(n.parentNode,n))},i(a){o||(m(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function im(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:[tm]},$$scope:{ctx:t}};return t[1]!==void 0&&(s.ref=t[1]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function nm(t,e,i){let n,o,s,l,r,a,{position:c=0}=e,{duration:f=0}=e,{timeCodes:d=[]}=e;const h=ht(),v=h.callbacks?.onEpisodeChanged??ie.noop,k=!!h.callbacks?.onEpisodeClicked,_=h.ui.currentGridType$;R(t,_,w=>i(18,r=w));const S=h.ui.episodes.openedByKeyboard$;R(t,S,w=>i(17,l=w));const C=h.ui.episodes.panelOpened$;R(t,C,w=>i(3,s=w));const T=h.ui.isMobile;R(t,T,w=>i(6,a=w));let y;const L=w=>{if(!!h.callbacks?.onEpisodeClicked){const X=Sl(w);S.set(X),C.set(!0),h.callbacks?.onEpisodeClicked?.(X)}};let le,Y,N;const ee=async(w,$,X)=>{await jn(),w?.getAttribute("aria-expanded")==="false"&&$&&!X&&(S.set(!1),w.focus())};function Q(w){y=w,i(1,y)}return t.$$set=w=>{"position"in w&&i(13,c=w.position),"duration"in w&&i(14,f=w.duration),"timeCodes"in w&&i(0,d=w.timeCodes)},t.$$.update=()=>{if(t.$$.dirty&24576&&i(16,n=c/f),t.$$.dirty&114689){const w=lu(n,f,d);w&&le?.text!==w.text&&(v(w),i(15,le=w))}t.$$.dirty&32768&&i(2,o=le?.text||""),t.$$.dirty&262144&&(gn(r,exports.GridTypes.XL)?i(4,Y=eo.FULL):gn(r,exports.GridTypes.M)&&v2(r,exports.GridTypes.XL)?i(4,Y=eo.COUNT):i(4,Y=eo.SHORT)),t.$$.dirty&4&&i(5,N=`${K("tooltip_episodes")}: ${o}`),t.$$.dirty&131082&&ee(y,l,s)},[d,y,o,s,Y,N,a,k,_,S,C,T,L,c,f,le,n,l,r,Q]}class au extends _e{constructor(e){super(),ge(this,e,nm,im,be,{position:13,duration:14,timeCodes:0},X4)}}function om(t){let e,i,n;return{c(){e=M("svg"),i=M("path"),n=M("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){A(o,e,s),p(e,i),p(e,n)},p:q,i:q,o:q,d(o){o&&P(e)}}}class lm extends _e{constructor(e){super(),ge(this,e,null,om,be,{})}}function sm(t){let e,i;return e=new lm({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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;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:[sm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function am(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(),ge(this,e,am,rm,be,{ref:0,hidden:1,disabled:2,click:3})}}function um(t){let e,i,n;return{c(){e=M("svg"),i=M("path"),n=M("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"),V(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){A(o,e,s),p(e,i),p(e,n)},p(o,[s]){s&1&&V(n,"hidden",!o[0])},i:q,o:q,d(o){o&&P(e)}}}function cm(t,e,i){let{isOpened:n=!1}=e;return t.$$set=o=>{"isOpened"in o&&i(0,n=o.isOpened)},[n]}class fm extends _e{constructor(e){super(),ge(this,e,cm,um,be,{isOpened:0})}}function dm(t){let e,i;return e=new fm({props:{isOpened:t[3]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&8&&(s.isOpened=n[3]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function mm(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:[dm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function pm(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 cu extends _e{constructor(e){super(),ge(this,e,pm,mm,be,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}}function hm(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class fu extends _e{constructor(e){super(),ge(this,e,null,hm,be,{})}}function bm(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 fr(t){let e;return{c(){e=I("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){A(i,e,n)},d(i){i&&P(e)}}}function gm(t){let e,i,n,o,s=t[1]&&fr();return n=new fu({}),{c(){s&&s.c(),e=D(),i=I("div"),U(n.$$.fragment),u(i,"class","v-1ot3duq"),V(i,"mobile",t[1])},m(l,r){s&&s.m(l,r),A(l,e,r),A(l,i,r),H(n,i,null),o=!0},p(l,r){l[1]?s||(s=fr(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),(!o||r&2)&&V(i,"mobile",l[1])},i(l){o||(m(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 _m(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:Lo[Se.KeyK],$$slots:{default:[gm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function vm(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 Ml extends _e{constructor(e){super(),ge(this,e,vm,_m,be,{ref:0,isMobile:1,disabled:2,className:3,click:4},bm)}}function km(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class wm extends _e{constructor(e){super(),ge(this,e,null,km,be,{})}}function ym(t){let e,i;return e=new wm({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Cm(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:[ym]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Tm(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 du extends _e{constructor(e){super(),ge(this,e,Tm,Cm,be,{ref:0,hidden:1,disabled:2,click:3})}}function Sm(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 Pm(t){let e,i,n,o;return{c(){e=I("img"),u(e,"class","icon v-1x1zctw"),jl(e.src,i=t[0])||u(e,"src",i),u(e,"aria-hidden","true")},m(s,l){A(s,e,l),n||(o=he(e,"error",t[7]),n=!0)},p(s,l){l&1&&!jl(e.src,i=s[0])&&u(e,"src",i)},d(s){s&&P(e),n=!1,o()}}}function Am(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){A(i,e,n)},p:q,d(i){i&&P(e)}}}function Im(t){let e;function i(s,l){return s[5]?Am:Pm}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),A(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 Em(t){let e,i;return e=new pi({props:{className:t[4]?"btn-full-opacity":"",ariaLabel:t[1],click:t[3],disabled:t[6],testId:t[2],$$slots:{default:[Im]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Vm(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 d=()=>{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,d,a]}class mu extends _e{constructor(e){super(),ge(this,e,Vm,Em,be,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},Sm)}}class dr{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 dr{constructor(){super(),this.listeners||dr.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 Lm=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&&(Lm.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 Mm(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 d;f&&f.signal&&(d=f.signal,delete f.signal);const h=new i(c,f);return d&&Object.defineProperty(h,"signal",{writable:!1,enumerable:!1,configurable:!0,value:d}),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 d;try{d=new DOMException("Aborted","AbortError")}catch{d=new Error("Aborted"),d.name="AbortError"}if(f.aborted)return Promise.reject(d);const h=new Promise((v,k)=>{f.addEventListener("abort",()=>k(d),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([h,l(a,c)])}return l(a,c)},Request:s}}const Bl=hu({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),bu=Bl?Mm({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Bm=Bl?bu.fetch:window.fetch;Bl?bu.Request:window.Request;const Nm=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,Rm="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js";class Dm{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(Rm,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:d}=e;let h;const v=this.playerState&&Je(this.playerState.vsid);v&&(h=parseInt(v,36));const k={dl:encodeURIComponent(window.location.href),autoplay:s,player_width:i,player_height:n,puid10:Nm(i,n),puid11:o?0:1,preview:d,...h?{request_id:h}:{},duration:f,...c},_={slot:a,wrapper:l,videoEl:r,videoQuality:n,params:k,browser:{mobile:!1}},S=new window.AdmanHTML;S.setDebug(!1),S.onReady(this.onAdsReady),S.onStarted(this.onAdStarted),S.onPlayed(this.onAdPlayed),S.onPaused(this.onAdPaused),S.adMidrollPoint(this.onAdMidrollPoint),S.onClosed(this.onAdClosed),S.onSkipped(this.onAdSkipped),S.onClicked(this.onAdClicked),S.onTimeRemained(this.onAdTimeRemained),S.onCompleted(this.onAdCompleted),S.onError(this.onAdError),S.init(_),this.adman=S,this.videoElement=r,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(_)}`})}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===In.Postroll;this.adsState.playbackState.set(Xt.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=Je(this.adsState.playbackState);e===Xt.PLAYING?this.pause():e===Xt.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=In.Preroll,this.adman.start(In.Preroll)}startPostroll(){ie.assertNonNullable(this.adman),ie.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=In.Postroll,this.adman.start(In.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"}),Je(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set(Xt.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(Xt.PAUSED)};onAdPlayed=()=>{ie.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Xt.PLAYING)};onAdMidrollPoint=()=>{ie.assertNonNullable(this.adman),ie.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=In.Midroll,this.adman.start(In.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 Om=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 zm{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 gu,{startTime:c,endTime:f}=a.parse(r);s.startTime=c,s.endTime=f}else if(r.trim()!==""){const a=new Hm,{texts:c}=a.parse(r);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&i.push(s)}return i}}class gu{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 Hm{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,d)=>{const h=l.indexOf(d,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 gu;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 Zn,dn,al=0,ul=!1;const Fm=(t,e,i)=>{const n=t>=al,o=t<al,s=(c,f=0,d=0)=>c<f&&c<d,l=(c,f=0,d=0)=>c>=f&&c<=d,r=(c,f=0,d=0)=>c>f&&c>d,a=i.find(({lang:c})=>c===e.value)?.subtitles;if(al=t,o&&(ul=!1),ie.isNonNullable(Zn)&&l(t,Zn.startTime,Zn.endTime)&&Zn.lang===e.value)return Zn;if(!ie.isNonNullable(dn)&&a?.length&&!ul){const c=a.find(({startTime:f,endTime:d})=>l(t,f,d)||n&&s(t,f,d));dn=c&&{...c,lang:e.value},Zn=void 0,!ie.isNonNullable(dn)&&a[a.length-1].endTime<t&&(ul=!0);return}else{if(l(t,dn?.startTime,dn?.endTime))return Zn=dn,dn=void 0,Zn;(n&&r(t,dn?.startTime,dn?.endTime)||o&&s(t,dn?.startTime,dn?.endTime))&&(dn=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"};class Um{oneStat;statSubscription;constructor(e,i){this.oneStat=new pt.OneStat(e,i),this.statSubscription=new ie.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}}const qm=({interfaceLanguage:t,videoId:e,isClip:i,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:s,canDownload:l,callbacks:r,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:d,coreConfig:h,player:v,disabledControls:k,isInteractive:_,interactiveRanges$:S,isInteractiveTime$:C,replayInteractive:T,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:L,additionalButtons:le,looped:Y=!1,statistics:N})=>{const ee={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:s,live:{...h.live??{},isLiveCatchUpMode:!!n}},Q=d,w=v||new $e.Player(ee),$=new ie.Logger,X=new Dm($,{loadTimeout:Q.ads.loadTimeout,initTimeout:Q.ads.initTimeout}),O=gl.getInstance(),W=a?.pictureInPictureApi,B=a?.annotationsApi,J=$.createComponentLog("Store");let E,z,Te={};const ze=ie.getCurrentBrowser(),Ve=N?mt(N.oneStat.vsid$):Sn(void 0),Le=Ie(Io()),Pe=W?.info.isActive$??new ie.ValueSubject(!1),pe=W?.info.type,Z=Ie(0),me=Ie([]),Ae=ie.merge(w.events.fatalError$,w.events.managedError$).subscribe(b=>me.update(se=>[...se,b])),Ue=Sn(!1,b=>{const se=w.events.fatalError$.subscribe(()=>b(!0));return()=>se.unsubscribe()}),Ge=async b=>{const se=Object.values(ie.InterfaceLanguage).includes(b);if(Q.downloadVKLanguages&&(se&&Q.updateBuiltinLanguages||!Xl(b))){let Re;try{Re=await ie.loadVKLangPack(b,Vc,Lc)}catch(Qe){N?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),O?.report(Qe,{errorType:"VKLangPack",fatal:!1})}Re&&(Ql({language:b,pack:Re,fallback:Q.defaultLanguage}),ae.set(b))}Xl(b)&&ae.set(b)},ae=Ie(t);Ge(t);const ye=(b,se)=>{const we=Je(ae);return P1(we,b,se,Q.defaultLanguage)},Me=Ie(De.Thumb),je=(()=>{const b=mi([Ue,Me],([se,we])=>se?De.Crashed:we);return{...b,is:se=>Je(b)===se}})(),ne=(()=>{const b=Ie(new Set(k));return{...b,add:se=>{b.update(we=>new Set([...we].concat(se)))},remove:se=>{b.update(we=>{const Re=[...we];return new Set(Array.isArray(se)?Re.filter(Qe=>!se.includes(Qe)):Re.filter(Qe=>Qe!==se))})},includes:se=>{const we=Je(b);return Array.isArray(se)?se.every(Re=>we.has(Re)):we.has(se)}}})();J({message:"create store"});const G=b=>{const se=b.container;se.append(w.experimental.element$.getValue()),Ne=new MutationObserver(we=>{const{removedNodes:Re}=we[0];Re.length&&se.append(w.experimental.element$.getValue())}),Ne.observe(se,{childList:!0})},Ce=b=>{J({message:`init video, config: ${JSON.stringify(b)}`}),_?G(b):w.initVideo(b),b.subtitles&&w.setExternalTextTracks(b.subtitles),E=b},re=new ie.Subject,ke=b=>re.next(b),He=new ie.Subject,et=new ie.Subject,lt=new ie.Subject;let Ne=null;const ue={actionRewind$:He,actionSeek$:et,inPiP$:Pe,inFullscreen$:new ie.Observable(b=>Le.subscribe(se=>b.next(se))),actionSetSubtitle$:lt,nextMovie$:re};if(N){const{oneStat:b,statSubscription:se}=N;se.add(b.attachTo(w)),se.add(b.attachToUi(ue)),se.add(b.attachToAds(X.events)),b.authorize(o).catch(we=>{J({message:`onestat auth error ${String(we)}`})})}if(O){const b=new ie.Subscription,se=(we,Re)=>b.add(we.subscribe(Re));if(se(w.events.managedError$,we=>{O.logIError(we)}),se(w.events.fatalError$,we=>{O.logIError(we,!0)}),N){const{oneStat:we}=N;se(we.experimental.error$,Re=>{O.logIError(Re)})}O.sentrySubscription.add(b)}const st=()=>{ie.isIOS()&&z&&rf(z)},vt=new ie.Subscription().add(w.experimental.element$.subscribe(b=>{b&&(z=b,b.classList.add("player-media"),Yo(W)&&(W.updateVideoElement(),W.registryEventHandlers()),_&&b.setAttribute("pip","false"))})).add(w.events.ended$.subscribe(()=>{st(),r?.onEnded?.()})).add(w.events.started$.subscribe(async()=>{Yo(W)&&await W?.revealPictureInPicture();const b=w.info.muted$.getValue();r?.onStarted?.(),Te.onStarted?.(b)})).add(w.events.willSeek$.subscribe(({from:b,to:se})=>{r?.onSeek?.(b,se)})).add(w.info.position$.subscribe(b=>{const se=w.info.duration$.getValue();r?.onTimeupdate?.(se,b),X.setPosition(b,se)})).add(w.events.fatalError$.subscribe(()=>{r?.onCrashed?.()})).add(w.events.firstBytes$.subscribe(()=>{rt.state.isFirstBytes$.set(!0)})).add(w.info.is3DVideo$.subscribe(b=>{rt.ui.is3DVideo.set(b)})).add(w.info.isEnded$.subscribe(b=>{_&&(b?(C?.getValue()&&ne.add(f1),ne.add(at.PLAY_BUTTON)):ne.remove(at.PLAY_BUTTON))})).add(w.info.liveTime$.subscribe(b=>{r?.onLiveTime?.(b)})).add(w.info.isStalled$.subscribe(b=>{r?.onStalledChanged?.(b)})),ut=new ie.Subscription,bt=()=>{ut.add(w.events.log$.subscribe(b=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${b.component}`,b.message)})).add($.log$.subscribe(b=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${b.component}.`,b.message)}))},Ct=()=>{ut.unsubscribe()},Be=(b,se)=>{w.startCameraManualRotation(b,se)},Ft=(b=!1)=>{w.stopCameraManualRotation(b)},ce=(b,se,we)=>{w.moveCameraFocusPX(b,se,we)},ft=()=>{w.holdCamera()},kt=()=>{w.releaseCamera()},We=Sn(w.info.position$.getValue(),b=>{let se,we;const Re=()=>{const Qe=w.info.playbackState$.getValue(),zt=w.info.isLive$.getValue(),Yt=w.info.duration$.getValue(),At=w.info.position$.getValue();if([$e.PlaybackState.PLAYING,$e.PlaybackState.PAUSED].includes(Qe)){const rn=zt?At-Yt:w.getExactTime();rn!==we&&b(rn),we=rn}se=requestAnimationFrame(Re)};return Re(),()=>cancelAnimationFrame(se)}),tt=mt(Pe),gt=mt(w.info.playbackState$),wt=mt(w.info.currentBuffer$),hi=mt(w.info.isEnded$),bi=mt(w.info.isLive$),gi=Q.features.playbackRate?mt(w.info.canChangePlaybackSpeed$):Sn(!1),Fi=mt(w.info.liveBufferTime$),Qi=mt(w.info.volume$),ii=mt(w.info.muted$),ni=h1(w.info.autoQualityLimits$.pipe(ie.map(({max:b})=>b!==void 0)),w.info.autoQualityLimits$.getValue()?.max!==void 0),_i=mt(w.info.autoQualityLimitingAvailable$),Ut=mt(w.info.availableQualities$),oi=mt(w.info.availableQualitiesFps$),Ui=mt(w.info.chromecastState$),vi=mt(w.info.chromecastDeviceName$),ki=mt(w.info.currentFormat$),li=mt(w.info.throughputEstimation$),wi=mt(w.info.videoBitrate$),si=mt(w.info.intrinsicVideoSize$),yi=mt(w.info.duration$),Ci=mt(w.info.isAudioAvailable$);let yt=null;const Mt=w.info.isBuffering$,qt=Sn(Mt.getValue(),b=>{const se=Mt.subscribe(we=>{we&&yt===null?yt=window.setTimeout(()=>{b(Mt.getValue()),yt=null},Q.loaderDelay):b(we)});return()=>{se.unsubscribe(),yt&&clearTimeout(yt)}}),ri=()=>{yt&&clearTimeout(yt),yt=null},Vt=mi([yi,bi],([b,se])=>se?-b:b),ai=mi([gt],([b])=>b===$e.PlaybackState.PLAYING),Zt=mt(w.info.atLiveEdge$),xt=mt(w.info.atLiveDurationEdge$),Tt=mt(w.info.position$),St=mi([Tt,yi],([b,se])=>isFinite(b)&&isFinite(se)&&!!se),Bt=mi([Ui],([b])=>b===$e.ChromecastState.CONNECTED),Wt=Ie(void 0),ui=mt(w.info.isAutoQualityEnabled$,b=>b&&Wt.set(void 0)),en=mt(w.info.currentQuality$,()=>Wt.set(void 0)),qi=mi([Wt,en],([b,se])=>b??se),jt=mi([Ut,oi,ui,qi,ki],([b,se,we,Re,Qe])=>{const zt=[];Qe!==$e.VideoFormat.MPEG&&zt.push({value:ho.AUTO,displayValue:ye("auto_quality_option"),selected:we});const Yt=b.filter(At=>At!==ie.VideoQuality.INVARIANT);for(const At of Yt){const rn=se[At],hn=At===ie.VideoQuality.INVARIANT?ye("auto_quality_option"):At;zt.push({value:At,displayValue:`${hn}${rn?Om(rn):""}`,selected:we?!1:At===Re})}return zt}),$t=mt(w.info.currentPlaybackRate$),Ti=mi([$t,Zt,xt],([b,se,we])=>{const Re=we||_?1:Q.controls.playbackRateMin,Qe=se?1:Q.controls.playbackRateMax,zt=Q.controls.playbackRateStep,Yt=[];for(let At=Re;At<=Qe;At+=zt)Yt.push({value:At,displayValue:At===1?ye("playback_rate_1"):ye("playback_rate",{multiplier:At.toString(10)}),selected:b===At});return Yt}),Ni=Q.features.subtitles?mt(w.info.availableTextTracks$):Sn([]),Nt=mi([Ni],([b],se)=>{const we=[],Re=[];for(const Qe of b)Qe.url&&we.push(Bm(Qe.url));Promise.allSettled(we).then(Qe=>{for(const[zt,Yt]of Qe.entries())Yt.status==="fulfilled"&&Yt.value.text().then(At=>{const rn=new zm,hn=b[zt].language,wo=!!b[zt].isAuto,ro=rn.parse(At);hn&&ro&&Re.push({lang:hn,subtitles:ro,isAuto:wo}),zt===Qe.length-1&&se(Re)})})}),_t={displayValue:ye("subtitles_off"),value:"off"},Si=Ie({..._t}),Zi=mi([Nt,Si,Nt],([b,se])=>{if(b?.length>0){const we=[{..._t,selected:se?.value===_t.value}];for(const{lang:Re,isAuto:Qe}of b)cl[Re]&&we.push({displayValue:Qe?ye("subtitles_auto",{language:cl[Re]}):cl[Re],value:Re,selected:se?.value===Re,isAuto:Qe});return we}else return[]}),ei=mi([We,Si,Nt],([b,se,we])=>{if(se&&se.value!==_t.value)return Fm(b,se,we)}),Wi=mi([ei],([b])=>b?.texts?b.texts:[]),ci=Ie(!0),Xi=mi([wt,Vt,Tt,Fi],([b,se,we,Re])=>{const Qe=b?.end??0;if(!Re)return Qe/se;const Yt=-we+Re-se;return(Qe-Yt)/se}),ji=mt(w.info.availableSources$),Ji=mi([ji],([b])=>Object.keys(b?.[$e.VideoFormat.MPEG]||{}).length>0),Ri=()=>{const b=Object.keys(w.info.availableSources$?.getValue()?.[$e.VideoFormat.MPEG]||{}),se=ie.getHighestQuality(b)||ie.VideoQuality.Q_144P;return E.sources[$e.VideoFormat.MPEG]?.[se]},Pi=()=>{const b=Ri();b?Fc(b,E?.meta?.title||"video"):J({message:"There is no URL for download video"})},Rt=()=>{J({message:"toggle muted"});const b=w.info.muted$.getValue(),Re=!(w.info.volume$.getValue()===0||b);di(Re)},Kt=()=>{rt.ui.settingsMenuVisible.set(!1)},fi=b=>{rt.ui.settingsMenuOpenedByKeyboard.set(!!b),rt.ui.settingsMenuVisible.set(!0)},Di=b=>{Je(rt.ui.settingsMenuVisible)?Kt():fi(b)},Oi=(b,se=b,we=!1)=>{const Re=!we,Qe=w.info.muted$.getValue();J({message:`set volume, volume: ${b}, preferredVolume: ${se}, internalCall: ${Re}`}),w.setVolume(b),X.setVolume(b),Re&&r?.onVolumeChange?.(b),Yl(se),Qe?(w.setMuted(!1),Re&&r?.onUnmute?.(),ol(!1)):!Qe&&b===0&&(w.setMuted(!0),Re&&r?.onMute?.(),ol(!0))},di=(b,se=!1)=>{const we=!se,Re=w.info.volume$.getValue();if(J({message:`set muted, currentVolume: ${Re}, mute: ${b}, internalCall: ${we}`}),w.setMuted(b),X.setVolume(b?0:Re),ol(b),we&&(b?r?.onMute?.():r?.onUnmute?.()),Re===0){let Qe=k1()??Q.volumeDefault;Qe===0&&(Qe=Q.volumeMinRestore,Yl(Qe)),w.setVolume(Qe),X.setVolume(Qe),we&&r?.onVolumeChange?.(Qe)}},Ai=Ie(!1),Ii=b=>{Ai.set(b),w.setLooped(b)};Ii(Y);const Fe=()=>{w.prepare()},zi=()=>{if(ie.assertNonNullable(rt),!Je(rt.ui.controls.disabledControls$).has(at.PLAY_BUTTON)){if(J({message:"toggle play"}),Je(rt.playerPhase)===De.Ads){X.togglePlay();return}if(w.info.playbackState$.getValue()!==$e.PlaybackState.PLAYING){if(w.info.isEnded$.getValue()){if(J({message:"toggle play, video ended, seek to 0"}),He.next(),et.next(pt.SeekAction.REWIND),_){T?.();return}w.seekTime(0)}J({message:"toggle play, call player.play"}),w.play(),r?.onPlay?.()}else J({message:"toggle play, call player.pause"}),w.pause(),r?.onPause?.()}},Lt=b=>{J({message:`set quality, quality: ${b}`}),w.setAutoQuality(b===ho.AUTO),b!==ho.AUTO?(Uc(e,b),Wt.set(b),w.setQuality(b)):w1()},Ee=b=>{J({message:`set trafficSavingEnabled, value: ${b}`}),w.setAutoQualityLimits({max:b?Q.trafficSavingLimit:void 0}),Wc(b)},Ei=b=>{w.setPlaybackRate(b)},Ki=()=>{const b=Je(Ti),se=b.findIndex(({selected:Re})=>Re);if(se===b.length-1)return;const we=b[se+1];Ei(we.value)},Hi=()=>{const b=Je(Ti),se=b.findIndex(({selected:Re})=>Re);if(se===0)return;const we=b[se-1];Ei(we.value)},Vi=b=>{b&&b.value!==_t.value&<.next(b.isAuto?b.value+"_auto":b.value),Si.set(b)},xi=()=>{const b=Je(Zi),se=Je(Si),we=Je(ae);if(se?.value===_t.value){const Re=b.filter(Qe=>Qe.value!==_t.value).find(Qe=>Qe.value===we)||b[1];Vi(Re??{..._t})}else Vi({..._t,selected:!1})},Li=(b,se,we=!0)=>{if(J({message:`seek to time, time: ${b}`}),et.next(se),w.info.isLive$.getValue()){const Re=w.info.duration$.getValue(),Qe=Math.min(0,Re+b);w.seekTime(Qe,we)}else{if(C?.getValue())return;w.seekTime(Xn(b),we)}},Gi=b=>{J({message:`seek to episode start time: ${b}`}),Li(b,pt.SeekAction.EPISODE,!0)},Dt=(b,se)=>{J({message:`seek to percent, percent: ${b}`});const we=Math.round(Je(Vt)*b);Li(we,se,!1)},Yi=b=>{J({message:`seek external, time: ${b}`}),et.next(pt.SeekAction.UNKNOWN),w.seekTime(w.info.isLive$.getValue()?-b:b)},ti=b=>{J({message:`set auto quality limitation. Max: ${b.max??"none"}. Min: ${b.min??"none"}`}),w.setAutoQualityLimits(b)},oe=b=>{J({message:`seek external to episode start time: ${b}`}),Li(b,pt.SeekAction.EPISODE,!0)},it=b=>{J({message:`set playback rate to: ${b}`}),w.setPlaybackRate(b)},Ot=Ie(void 0),Gt=Ie(!1),Mi=b=>{J({message:`start scrubbing, progress: ${b}`}),Gt.set(!0),Bi(b)},Bi=b=>{Ot.set(b)};let un,cn;const on=()=>{Ot.set(void 0),Gt.set(!1)},Pt=()=>{clearTimeout(cn),clearTimeout(un),un=window.setTimeout(()=>{on()},500),z?.removeEventListener("seeked",Pt)},kn=b=>{J({message:`complete scrubbing, progress: ${b}`}),Dt(b,pt.SeekAction.SLIDER),Je(rt.ui.isMobile)&&Je(rt.state.currentFormat$)===$e.VideoFormat.HLS?(z?.addEventListener("seeked",Pt),cn=window.setTimeout(()=>{Pt()},300)):on()},wn=mi([We,Vt,Ot],([b,se,we],Re)=>{Re(ie.isNonNullable(we)?we*se:b)}),fn=Ie({width:0,height:0}),mn=mi([fn],([{width:b}],se)=>{const we=k2(b);se(we)}),ln=Ie(!1),tn=mi([mn,ln],([b,se])=>se?le.filter(we=>!we.hideOnMobile):le.filter(we=>!we.hideOnDesktopGridTypes?.includes(b))),te=mi([ln,Ue],([b,se],we)=>{we(b&&se)}),dt=()=>{et.next(pt.SeekAction.LIVE),J({message:"switch to active live"}),w.seekTime(0),w.info.playbackState$.getValue()!==$e.PlaybackState.PLAYING&&rt.actions.internal.togglePlay()},pn=()=>X.skip(),yn=(b=!0)=>{ie.assertNonNullable(rt),J({message:`switch from ads to video, callPlay: ${b}`}),Me.set(De.Video),b&&w.play()},Cn=()=>{ie.assertNonNullable(rt),J({message:"switch from video to ads"}),rt.actions.internal.pause(),st(),Me.set(De.Ads)},Dn=b=>{ie.assertNonNullable(rt);const se=b?De.WaitingLive:De.Thumb;Me.set(se)},On=b=>{ie.assertNonNullable(rt);const se=b?De.WaitingRecord:De.Thumb;Me.set(se)},zn=()=>(ie.assertNonNullable(rt),zc(w,E,rt)),Hn=()=>(ie.assertNonNullable(rt),Hc(w,E,rt)),Fn=()=>z,Kn=()=>{J({message:"toggle chromecast"}),w.toggleChromecast()},x=b=>{ie.assertNonNullable(rt);const se=!b;if(Je(rt.playerPhase)===De.Ads){J({message:`pause ads, internalCall: ${se}`}),X.pause();return}J({message:`pause video, internalCall: ${se}`}),se&&r?.onPause?.(),w.pause()},sn=b=>{ie.assertNonNullable(rt);const se=!b;if(Je(rt.playerPhase)===De.Ads){J({message:`play ads, internalCall: ${se}`}),X.play();return}J({message:`play video, internalCall: ${se}`}),se&&r?.onPlay?.(),w.play()},Gn=(b,se)=>{ie.assertNonNullable(rt),J({message:`first start, show ads: ${b}, internalCall: ${!se}`}),b?Me.set(De.Ads):(Me.set(De.Video),se?w.play():rt.actions.internal.togglePlay())},Yn=()=>(J({message:"getting time codes"}),c),Un=()=>{const b=Yn();if(!b||[0,1].includes(b.length))return;const se=w.info.position$.getValue();return b.find(we=>we.time>se)},no=b=>{let se=b;se||(se=Un()),se&&(J({message:"seek to next episode"}),Li(se.time,pt.SeekAction.EPISODE,!0))},Tn=()=>{const b=Yn();if(!b||[0,1].includes(b.length))return;const se=w.info.position$.getValue(),we=b.findIndex(Qe=>Qe.time>se),Re=we===-1?b.length-2:we-2;if(!(Re<0))return b[Re]},qn=b=>{let se=b;se||(se=Tn()),se&&(J({message:"seek to prev episode"}),Li(se.time,pt.SeekAction.EPISODE,!0))},oo=()=>(J({message:"getting preview thumbs data"}),f),lo=async()=>{W?.isActive()?await W?.remove():await W?.request()},ko=(b=-90)=>{Z.update(se=>se+b)},An=Ie([]);S?.subscribe(b=>{const se=[];for(let we=0;we<b.length;we++){const{range:[Re,Qe],subjects:zt}=b[we];we===0&&Re!==0&&se.push({time:0,text:"",interactive:!1,completed:!0}),se.push({time:Re/1e3,text:"",interactive:!0,completed:!zt.length}),Qe!==1/0&&se.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}An.set(se)});const Qn=Ie(!1);C?.subscribe(b=>{b&&Je(Gt)&&on()});const Xn=b=>{if(!_)return b;const se=Je(An),we=Je(Vt),Qe=Je(Tt)/we,zt=se.find(Yt=>Yt.interactive&&!Yt.completed&&Yt.time>Qe);return typeof zt?.time=="number"?Math.min(b,zt.time-.05):b},so=()=>{rt.ui.episodes.panelOpened$.set(!1)},Jn=()=>{clearTimeout(cn),clearTimeout(un),vt.unsubscribe(),ut.unsubscribe(),w.destroy(),X.destroy(),N?.destroy(),O?.destroy(),Ae.unsubscribe(),Ne?.disconnect(),Ne=null},rt={interfaceLanguage$:ae,initVideo:Ce,videoId:e,isClip:i,playerPhase:je,vsid:Ve,state:{positionExact$:We,positionWithScrubbing$:wn,duration$:Vt,playbackState$:gt,isPlaying$:ai,isLoaderVisible:qt,bufferedProgress$:Xi,isLive$:bi,canChangePlaybackSpeed$:gi,isActiveLive$:Zt,isOldestAvailableLive$:xt,isRewindableLive$:St,isEnded$:hi,muted$:ii,volume$:Qi,trafficSavingEnabled$:ni,autoQualityLimitingAvailable$:_i,currentQuality$:qi,isAutoQualityEnabled$:ui,availableQualities$:jt,currentPlaybackRate$:$t,availablePlaybackRates$:Ti,currentSubtitle$:Si,availableSubtitlesList$:Zi,currentSubtitleCaptions$:Wi,isAutoSubtitleCaptionVisible$:ci,chromecastState$:Ui,chromecastDeviceName$:vi,chromecastConnected$:Bt,currentFormat$:ki,throughputEstimation$:li,videoBitrate$:wi,videoSize$:si,errorLog$:me,crashed$:Ue,isAudioAvailable$:Ci,isAudioDisabled:!!s,canDownload:Q.features.download&&!!l,availableSources$:ji,hasMpegSources$:Ji,isInteractive:_,showInteractiveGraph:Q.features.interactiveGraph,showSeekToInteractive:Q.features.seekToInteractive,showPlayPrevChapter:Q.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Q.features.interactiveTimeIndicator&&!!Je(An).length,interactiveEpisodes$:An,isInteractiveTime$:C?mt(C):Ie(!1),graphIsOpened$:Ie(!1),isInteractiveExpectation$:Qn,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:L,looped$:Ai,isFirstBytes$:Ie(!1)},ui:{controlsVisible:Ie(!1),touched:Ie(!1),controls:{prevButton:Ie(void 0),playButton:Ie(void 0),replayButton:Ie(void 0),nextButton:Ie(void 0),playPrevChapterButton:Ie(void 0),seekToInteractiveButton:Ie(void 0),interactiveGraphButton:Ie(void 0),liveButton:Ie(void 0),time:Ie(void 0),episodes:Ie(void 0),volume:Ie(void 0),subtitles:Ie(void 0),settings:Ie(void 0),context:Ie(void 0),chromecast:Ie(void 0),pip:Ie(void 0),fullscreen:Ie(void 0),vkLogo:Ie(void 0),interactiveTimeIndicator:Ie(void 0),additionalButtons:le.length?le.reduce(b=>[...b,Ie(void 0)],[]):[],disabledControls$:ne},modals:{hotKeyMap:{show:Ie(!1),data:Ie({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Le,rotateAlpha:Z,isAutoplay:Ie(!1),debugPanelVisible:Ie(!1),episodes:{panelOpened$:Ie(!1),openedByKeyboard$:Ie(!1)},contextMenu:{visible$:Ie(!1),btnRef$:Ie(void 0),openedByBtnKeyboard$:Ie(!1),openedByHotKey$:Ie(!1),lastActiveElem$:Ie(void 0),showContextMenuBtn$:Ie(!1),position$:Ie({top:0,left:0})},playerSize:fn,isMobile:ln,mobileNotReportControlHidden$:te,mobileUnmuteButtonExpanded:Ie(!1),mobileUnmuteButtonVisible:Ie(!1),icon3DVideoVisible:Ie(!1),settingsMenuVisible:Ie(!1),settingsMenuOpenedByKeyboard:Ie(!1),scrubbingInProgress:Gt,is3DVideo:Ie(!1),isPictureInPictureActive$:tt,pictureInPictureType$:Sn(pe),clientInfo$:Sn(ze),currentGridType$:mn,additionalButtons$:tn,interactiveHideMobileControls:Ie(!1),overlayContainer$:Ie(void 0),startedByKeyboard$:Ie(!1)},ads:{position:Ie(0),duration:Ie(0),playbackState:Ie(Xt.INACTIVE),canSkip:Ie(!1),secondsToWatchBeforeSkip:Ie(0),postrollPassed:Ie(!1)},webApi:{pictureInPictureApi:W,annotationsApi:B},actions:{internal:{preload:Fe,firstStart:b=>Gn(b,!1),pause:()=>x(!1),togglePlay:zi,toggleMuted:Rt,toggleSettingsMenu:Di,openSettingsMenu:fi,closeSettingsMenu:Kt,setVolume:Oi,setQuality:Lt,setTrafficSavingEnabled:b=>Ee(b),setPlaybackRate:Ei,incrementPlaybackRate:Ki,decrementPlaybackRate:Hi,setSubtitle:Vi,toggleSubtitle:xi,togglePictureInPicture:lo,startScrubbing:Mi,progressScrubbing:Bi,completeScrubbing:kn,toggleChromecast:Kn,switchToActiveLive:dt,switchFromAdsToVideo:yn,switchFromVideoToAds:Cn,skipAd:pn,setWaitingLive:Dn,setWaitingRecord:On,getDebugTextData:zn,getDebugPanelData:Hn,getVideoElement:Fn,seekTime:(b,se,we)=>Li(b,se,we),clearDelayedBufferingCheckTimeout:ri,seekEpisodeStartTime:Gi,seekToPercent:Dt,getNextEpisode:Un,seekToNextEpisode:no,getPrevEpisode:Tn,seekToPrevEpisode:qn,startLogging:bt,stopLogging:Ct,startCameraManualRotation:Be,stopCameraManualRotation:Ft,moveCameraFocusPX:ce,holdCamera:ft,releaseCamera:kt,getVideoEpisodes:Yn,getPreviewThumbsData:oo,downloadVideo:Pi,addLanguage:Ql,setLanguage:Ge,nextMovie:ke,videoRotate:ko,correctSeekTimeToInteractive:Xn,replayInteractive:T,setLooped:Ii},external:{firstStart:b=>Gn(b,!0),play:()=>sn(!0),pause:()=>x(!0),seekTime:b=>Yi(b),seekEpisodeStartTime:b=>oe(b),setPlaybackRate:b=>it(b),setAutoQualityLimits:b=>ti(b),setMuted:b=>di(b,!0),setVolume:b=>Oi(b,b,!0),returnFocusToEpisodes:so}},callbacks:r,setUiCallbacks:b=>{Te={...b}},getAdmanWrapper:()=>X,getLogger:()=>$,destroy:Jn};return rt},_u=(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})}},vu=async(t,e,i)=>{await jn(),e&&i&&(i.focus(),t.set(!1))};function Zm(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Wm extends _e{constructor(e){super(),ge(this,e,null,Zm,be,{})}}function jm(t){let e,i;return e=new Wm({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Km(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:[jm]},$$scope:{ctx:t}};return t[2]!==void 0&&(s.ref=t[2]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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&16384&&(a.$$scope={dirty:r,ctx:l}),!i&&r&4&&(i=!0,a.ref=l[2],qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Gm(t,e,i){let n,{disabled:o=!1}=e,{ariaLabel:s=""}=e;const l=ht(),r=l.ui.contextMenu.visible$;R(t,r,C=>i(3,n=C));const a=l.ui.contextMenu.openedByBtnKeyboard$,c=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.position$,d=l.ui.contextMenu.btnRef$;let h;const v=C=>{const T=Sl(C),y=Hf(h);f.set(y),a.set(T),r.set(!n)},k=()=>{c.set(!0)},_=()=>{c.set(!1)};function S(C){h=C,i(2,h)}return t.$$set=C=>{"disabled"in C&&i(0,o=C.disabled),"ariaLabel"in C&&i(1,s=C.ariaLabel)},t.$$.update=()=>{t.$$.dirty&4&&h&&d.set(h)},[o,s,h,n,r,v,k,_,S]}class Ym extends _e{constructor(e){super(),ge(this,e,Gm,Km,be,{disabled:0,ariaLabel:1})}}function Qm(t){Ke(t,"v-17imlp9",".interactive-episode-icon-animated.v-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.v-17imlp9{opacity:0;visibility:hidden}.fullscreen.v-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.v-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.v-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.v-17imlp9{top:40px;right:16px}}@keyframes v-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.v-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s v-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.v-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.v-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.v-17imlp9{display:none}")}function Xm(t){let e,i;return e=new x1({props:{completed:!0}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p:q,i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Jm(t){let e,i,n,o,s,l,r,a,c,f;function d(v){t[22](v)}let h={tooltipContent:K("tooltip_interactive_interaction_time_indicator"),tooltipActive:t[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:t[13],$$slots:{default:[Xm]},$$scope:{ctx:t}};return t[0]!==void 0&&(h.ref=t[0]),i=new Et({props:h}),ve.push(()=>Ze(i,"ref",d)),i.$on("click",t[14]),{c(){e=I("div"),U(i.$$.fragment),o=D(),s=I("div"),l=D(),r=I("div"),u(s,"class","ref-block v-17imlp9"),V(s,"hidden",t[1]),u(r,"class","pulse v-17imlp9"),V(r,"paused",t[4]),u(e,"class","interactive-episode-icon-animated v-17imlp9"),V(e,"mobile",t[2]),V(e,"fullscreen",t[6]),V(e,"invisible",t[1])},m(v,k){A(v,e,k),H(i,e,null),p(e,o),p(e,s),t[23](s),p(e,l),p(e,r),t[24](r),a=!0,c||(f=[he(e,"mousemove",ot(t[21])),he(e,"mouseleave",t[15])],c=!0)},p(v,k){const _={};k[0]&32&&(_.tooltipActive=v[5]),k[1]&1&&(_.$$scope={dirty:k,ctx:v}),!n&&k[0]&1&&(n=!0,_.ref=v[0],qe(()=>n=!1)),i.$set(_),(!a||k[0]&2)&&V(s,"hidden",v[1]),(!a||k[0]&16)&&V(r,"paused",v[4]),(!a||k[0]&4)&&V(e,"mobile",v[2]),(!a||k[0]&64)&&V(e,"fullscreen",v[6]),(!a||k[0]&2)&&V(e,"invisible",v[1])},i(v){a||(m(i.$$.fragment,v),a=!0)},o(v){g(i.$$.fragment,v),a=!1},d(v){v&&P(e),F(i),t[23](null),t[24](null),c=!1,nt(f)}}}function xm(t,e,i){let n,o,s,l,r,a,{ref:c=void 0}=e,f;const d=ht(),h=vo(),{interactiveControlsOpacity$:v}=h;R(t,v,z=>i(18,o=z));const k=d.ui.isMobile;R(t,k,z=>i(2,r=z));const _=d.ui.isFullscreen;R(t,_,z=>i(6,a=z));const S=d.state.isInteractiveTime$;R(t,S,z=>i(19,s=z));const C=h.showInteractiveTimeIndicatorTooltip$;R(t,C,z=>i(17,n=z));const T=d.ui.controlsVisible;R(t,T,z=>i(20,l=z));const y=d.callbacks?.onInteractiveTimeIndicatorClick;let L,le,Y;const N=()=>{i(4,Y=!0)},ee=()=>{Q(),f?.addEventListener("animationiteration",N,{once:!0})},Q=()=>{i(4,Y=!1),f?.removeEventListener("animationiteration",N)},w=z=>{C.set(z)};let $;const X=()=>{le||(C.set(!0),y?.())};Vo(()=>{C.clearTimeout(),Q()});const O=()=>{C.set(!1)};function W(z){to.call(this,t,z)}function B(z){c=z,i(0,c)}function J(z){ve[z?"unshift":"push"](()=>{c=z,i(0,c)})}function E(z){ve[z?"unshift":"push"](()=>{f=z,i(3,f)})}return t.$$set=z=>{"ref"in z&&i(0,c=z.ref)},t.$$.update=()=>{t.$$.dirty[0]&1048580&&i(16,L=!r&&l),t.$$.dirty[0]&851968&&i(1,le=!s||!!o||L),t.$$.dirty[0]&2&&i(4,Y=le),t.$$.dirty[0]&131074&&i(5,$=n&&!le),t.$$.dirty[0]&131072&&(n?ee():Q())},[c,le,r,f,Y,$,a,v,k,_,S,C,T,w,X,O,L,n,o,s,l,W,B,J,E]}class ku extends _e{constructor(e){super(),ge(this,e,xm,Jm,be,{ref:0},Qm,[-1,-1])}}function $m(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 mr(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 pr(t){let e,i,n;function o(l){t[173](l)}let s={disabled:!t[9],tooltipContent:K("tooltip_previous"),$$slots:{default:[e3]},$$scope:{ctx:t}};return t[23].prevButton!==void 0&&(s.ref=t[23].prevButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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 xo({props:{click:t[12],type:"prev",disabled:!t[9],isMobile:!1}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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[174](l)}let s={disabled:t[74],tooltipContent:K("tooltip_restart"),$$slots:{default:[t3]},$$scope:{ctx:t}};return t[23].replayButton!==void 0&&(s.ref=t[23].replayButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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 Ml({props:{click:t[128],disabled:t[74]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[2]&4096&&(s.disabled=n[74]),e.$set(s)},i(n){i||(m(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[176](l)}let s={tooltipContent:t[47],disabled:t[75],$$slots:{default:[i3]},$$scope:{ctx:t}};return t[23].playButton!==void 0&&(s.ref=t[23].playButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function i3(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 Ll({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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],qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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[177](l)}let s={disabled:!t[8],tooltipContent:K("tooltip_next"),$$slots:{default:[n3]},$$scope:{ctx:t}};return t[23].nextButton!==void 0&&(s.ref=t[23].nextButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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 xo({props:{click:t[11],type:"next",disabled:!t[8],isMobile:!1}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function o3(t){let e,i,n,o,s=t[121]&&l3(t),l=t[120]&&r3(t),r=t[119]&&u3(t);return{c(){s&&s.c(),e=D(),l&&l.c(),i=D(),r&&r.c(),n=ct()},m(a,c){s&&s.m(a,c),A(a,e,c),l&&l.m(a,c),A(a,i,c),r&&r.m(a,c),A(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||(m(s),m(l),m(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;function o(l){t[178](l)}let s={disabled:t[73],tooltipContent:K("tooltip_interactive_go_back"),disabledTooltipContent:K(t[124]),$$slots:{default:[s3]},$$scope:{ctx:t}};return t[23].playPrevChapterButton!==void 0&&(s.ref=t[23].playPrevChapterButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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 du({props:{disabled:t[73],click:t[17]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function r3(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:[a3]},$$scope:{ctx:t}};return t[23].seekToInteractiveButton!==void 0&&(s.ref=t[23].seekToInteractiveButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function a3(t){let e,i;return e=new uu({props:{disabled:t[76],click:t[15]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function u3(t){let e,i,n;function o(l){t[180](l)}let s={tooltipContent:t[48],disabled:t[77],$$slots:{default:[c3]},$$scope:{ctx:t}};return t[23].interactiveGraphButton!==void 0&&(s.ref=t[23].interactiveGraphButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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 cu({props:{click:t[16],graphIsOpened:t[31],disabled:t[77]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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[181](l)}let s={tooltipContent:t[50],$$slots:{default:[f3]},$$scope:{ctx:t}};return t[23].liveButton!==void 0&&(s.ref=t[23].liveButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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 ou({props:{isActiveLive:t[21],isMobile:!1,ariaLabel:t[50]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function vr(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 X1({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function kr(t){let e,i;return e=new au({props:{position:t[80],duration:t[82],timeCodes:t[101]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function d3(t){let e,i,n=t[20]&&kr(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),A(o,e,s),i=!0},p(o,s){o[20]?n?(n.p(o,s),s[0]&1048576&&m(n,1)):(n=kr(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(fe(),g(n,1,1,()=>{n=null}),de())},i(o){i||(m(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d(o)}}}function m3(t){let e,i;return e=new mu({props:{iconUrl:t[209],ariaLabel:t[210]??t[213],testId:t[211],onClick:t[212]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function wr(t){let e,i;return e=new Et({props:{tooltipContent:t[213],width:40,$$slots:{default:[m3]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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[185](l)}let s={disabled:!t[6],tooltipContent:t[51],$$slots:{default:[p3]},$$scope:{ctx:t}};return t[23].vkLogo!==void 0&&(s.ref=t[23].vkLogo),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function p3(t){let e,i;return e=new iu({props:{click:t[86],targetUrl:t[7],logoClickable:t[6]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&128&&(s.targetUrl=n[7]),o[0]&64&&(s.logoClickable=n[6]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function h3(t){let e,i;return e=new P2({props:{click:t[127]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p:q,i(n){i||(m(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;function o(l){t[187](l)}let s={tooltipContent:t[52],$$slots:{default:[b3]},$$scope:{ctx:t}};return t[23].subtitles!==void 0&&(s.ref=t[23].subtitles),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function b3(t){let e,i;return e=new Od({props:{isSubtitlesEnabled:t[18],click:t[87]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&262144&&(s.isSubtitlesEnabled=n[18]),e.$set(s)},i(n){i||(m(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,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 Q1({props:l}),ve.push(()=>Ze(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","settings-menu v-st0uzk")},m(r,a){A(r,e,a),H(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],qe(()=>n=!1)),i.$set(c)},i(r){o||(m(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[190](l)}let s={tooltipContent:t[27]?void 0:K("tooltip_settings_off"),$$slots:{default:[g3]},$$scope:{ctx:t}};return t[23].settings!==void 0&&(s.ref=t[23].settings),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function g3(t){let e,i,n;function o(l){t[189](l)}let s={};return t[25]!==void 0&&(s.ref=t[25]),e=new Il({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function _3(t){let e,i,n;function o(l){t[191](l)}let s={className:t[41]?"":"out-of-view",tooltipContent:t[49],$$slots:{default:[v3]},$$scope:{ctx:t}};return t[23].context!==void 0&&(s.ref=t[23].context),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function v3(t){let e,i;return e=new Ym({props:{ariaLabel:t[49]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&262144&&(s.ariaLabel=n[49]),e.$set(s)},i(n){i||(m(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[192](l)}let s={tooltipContent:t[53],$$slots:{default:[k3]},$$scope:{ctx:t}};return t[23].fullscreen!==void 0&&(s.ref=t[23].fullscreen),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function k3(t){let e,i;return e=new eu({props:{click:t[13],isFullscreen:t[30]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ar(t){let e,i,n;function o(l){t[193](l)}let s={tooltipContent:t[54],$$slots:{default:[w3]},$$scope:{ctx:t}};return t[23].chromecast!==void 0&&(s.ref=t[23].chromecast),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function w3(t){let e,i;return e=new nu({props:{isMobile:!1,state:t[29],click:t[126]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&536870912&&(s.state=n[29]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function y3(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 ku({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&8388608&&(i=!0,a.ref=l[23].interactiveTimeIndicator,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function C3(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w,$,X,O,W;i=new ru({props:{isHidden:!t[45],isAds:t[4],canRewindLive:t[5],isRewindableLive:t[32]}});let B=t[38]&&pr(t),J=t[35]&&hr(t),E=t[36]&&br(t),z=t[37]&&gr(t),Te=t[117]&&o3(t),ze=!t[4]&&t[33]&&_r(t),Ve=t[19]&&vr(t);function Le(re){t[183](re)}let Pe={className:"w-max",disabled:!t[20],tooltipContent:K("tooltip_episodes"),$$slots:{default:[d3]},$$scope:{ctx:t}};t[23].episodes!==void 0&&(Pe.ref=t[23].episodes),v=new Et({props:Pe}),ve.push(()=>Ze(v,"ref",Le));let pe=Ht(t[28]),Z=[];for(let re=0;re<pe.length;re+=1)Z[re]=wr(mr(t,pe,re));const me=re=>g(Z[re],1,1,()=>{Z[re]=null});let Ae=t[43]&&!t[4]&&yr(t);function Ue(re){t[186](re)}let Ge={$$slots:{default:[h3]},$$scope:{ctx:t}};t[23].volume!==void 0&&(Ge.ref=t[23].volume),L=new Et({props:Ge}),ve.push(()=>Ze(L,"ref",Ue));let ae=t[40]&&Cr(t),ye=!t[83]&&!t[4]&&Tr(t),Me=t[42]&&!t[4]&&Sr(t),je=t[84].features.contextMenuButton&&_3(t),ne=t[44]&&Pr(t),G=t[39]&&Ar(t),Ce=t[122]&&y3(t);return{c(){e=I("div"),U(i.$$.fragment),n=D(),o=I("div"),s=I("div"),B&&B.c(),l=D(),J&&J.c(),r=D(),E&&E.c(),a=D(),z&&z.c(),c=D(),Te&&Te.c(),f=D(),ze&&ze.c(),d=D(),Ve&&Ve.c(),h=D(),U(v.$$.fragment),S=D(),C=I("div");for(let re=0;re<Z.length;re+=1)Z[re].c();T=D(),Ae&&Ae.c(),y=D(),U(L.$$.fragment),Y=D(),ae&&ae.c(),N=D(),ye&&ye.c(),ee=D(),Me&&Me.c(),Q=D(),je&&je.c(),w=D(),ne&&ne.c(),$=D(),G&&G.c(),X=D(),Ce&&Ce.c(),O=ct(),u(s,"class","controls-left v-st0uzk"),bo(()=>t[184].call(s)),u(C,"class","controls-right v-st0uzk"),u(o,"class","controls v-st0uzk"),u(e,"class","wrapper-bottom v-st0uzk"),V(e,"hidden",t[1]),V(e,"controls-hidden",!t[3]),V(e,"no-smooth",t[2])},m(re,ke){A(re,e,ke),H(i,e,null),p(e,n),p(e,o),p(o,s),B&&B.m(s,null),p(s,l),J&&J.m(s,null),p(s,r),E&&E.m(s,null),p(s,a),z&&z.m(s,null),p(s,c),Te&&Te.m(s,null),p(s,f),ze&&ze.m(s,null),p(s,d),Ve&&Ve.m(s,null),p(s,h),H(v,s,null),_=kl(s,t[184].bind(s)),p(o,S),p(o,C);for(let He=0;He<Z.length;He+=1)Z[He]&&Z[He].m(C,null);p(C,T),Ae&&Ae.m(C,null),p(C,y),H(L,C,null),p(C,Y),ae&&ae.m(C,null),p(C,N),ye&&ye.m(C,null),p(C,ee),Me&&Me.m(C,null),p(C,Q),je&&je.m(C,null),p(C,w),ne&&ne.m(C,null),p(C,$),G&&G.m(C,null),t[194](o),t[195](e),A(re,X,ke),Ce&&Ce.m(re,ke),A(re,O,ke),W=!0},p(re,ke){const He={};ke[1]&16384&&(He.isHidden=!re[45]),ke[0]&16&&(He.isAds=re[4]),ke[0]&32&&(He.canRewindLive=re[5]),ke[1]&2&&(He.isRewindableLive=re[32]),i.$set(He),re[38]?B?(B.p(re,ke),ke[1]&128&&m(B,1)):(B=pr(re),B.c(),m(B,1),B.m(s,l)):B&&(fe(),g(B,1,1,()=>{B=null}),de()),re[35]?J?(J.p(re,ke),ke[1]&16&&m(J,1)):(J=hr(re),J.c(),m(J,1),J.m(s,r)):J&&(fe(),g(J,1,1,()=>{J=null}),de()),re[36]?E?(E.p(re,ke),ke[1]&32&&m(E,1)):(E=br(re),E.c(),m(E,1),E.m(s,a)):E&&(fe(),g(E,1,1,()=>{E=null}),de()),re[37]?z?(z.p(re,ke),ke[1]&64&&m(z,1)):(z=gr(re),z.c(),m(z,1),z.m(s,c)):z&&(fe(),g(z,1,1,()=>{z=null}),de()),re[117]&&Te.p(re,ke),!re[4]&&re[33]?ze?(ze.p(re,ke),ke[0]&16|ke[1]&4&&m(ze,1)):(ze=_r(re),ze.c(),m(ze,1),ze.m(s,d)):ze&&(fe(),g(ze,1,1,()=>{ze=null}),de()),re[19]?Ve?(Ve.p(re,ke),ke[0]&524288&&m(Ve,1)):(Ve=vr(re),Ve.c(),m(Ve,1),Ve.m(s,h)):Ve&&(fe(),g(Ve,1,1,()=>{Ve=null}),de());const et={};if(ke[0]&1048576&&(et.disabled=!re[20]),ke[0]&1048576|ke[2]&1310720|ke[6]&1073741824&&(et.$$scope={dirty:ke,ctx:re}),!k&&ke[0]&8388608&&(k=!0,et.ref=re[23].episodes,qe(()=>k=!1)),v.$set(et),ke[0]&268435456){pe=Ht(re[28]);let Ne;for(Ne=0;Ne<pe.length;Ne+=1){const ue=mr(re,pe,Ne);Z[Ne]?(Z[Ne].p(ue,ke),m(Z[Ne],1)):(Z[Ne]=wr(ue),Z[Ne].c(),m(Z[Ne],1),Z[Ne].m(C,T))}for(fe(),Ne=pe.length;Ne<Z.length;Ne+=1)me(Ne);de()}re[43]&&!re[4]?Ae?(Ae.p(re,ke),ke[0]&16|ke[1]&4096&&m(Ae,1)):(Ae=yr(re),Ae.c(),m(Ae,1),Ae.m(C,y)):Ae&&(fe(),g(Ae,1,1,()=>{Ae=null}),de());const lt={};ke[6]&1073741824&&(lt.$$scope={dirty:ke,ctx:re}),!le&&ke[0]&8388608&&(le=!0,lt.ref=re[23].volume,qe(()=>le=!1)),L.$set(lt),re[40]?ae?(ae.p(re,ke),ke[1]&512&&m(ae,1)):(ae=Cr(re),ae.c(),m(ae,1),ae.m(C,N)):ae&&(fe(),g(ae,1,1,()=>{ae=null}),de()),!re[83]&&!re[4]?ye?(ye.p(re,ke),ke[0]&16|ke[2]&2097152&&m(ye,1)):(ye=Tr(re),ye.c(),m(ye,1),ye.m(C,ee)):ye&&(fe(),g(ye,1,1,()=>{ye=null}),de()),re[42]&&!re[4]?Me?(Me.p(re,ke),ke[0]&16|ke[1]&2048&&m(Me,1)):(Me=Sr(re),Me.c(),m(Me,1),Me.m(C,Q)):Me&&(fe(),g(Me,1,1,()=>{Me=null}),de()),re[84].features.contextMenuButton&&je.p(re,ke),re[44]?ne?(ne.p(re,ke),ke[1]&8192&&m(ne,1)):(ne=Pr(re),ne.c(),m(ne,1),ne.m(C,$)):ne&&(fe(),g(ne,1,1,()=>{ne=null}),de()),re[39]?G?(G.p(re,ke),ke[1]&256&&m(G,1)):(G=Ar(re),G.c(),m(G,1),G.m(C,null)):G&&(fe(),g(G,1,1,()=>{G=null}),de()),(!W||ke[0]&2)&&V(e,"hidden",re[1]),(!W||ke[0]&8)&&V(e,"controls-hidden",!re[3]),(!W||ke[0]&4)&&V(e,"no-smooth",re[2]),re[122]&&Ce.p(re,ke)},i(re){if(!W){m(i.$$.fragment,re),m(B),m(J),m(E),m(z),m(Te),m(ze),m(Ve),m(v.$$.fragment,re);for(let ke=0;ke<pe.length;ke+=1)m(Z[ke]);m(Ae),m(L.$$.fragment,re),m(ae),m(ye),m(Me),m(je),m(ne),m(G),m(Ce),W=!0}},o(re){g(i.$$.fragment,re),g(B),g(J),g(E),g(z),g(Te),g(ze),g(Ve),g(v.$$.fragment,re),Z=Z.filter(Boolean);for(let ke=0;ke<Z.length;ke+=1)g(Z[ke]);g(Ae),g(L.$$.fragment,re),g(ae),g(ye),g(Me),g(je),g(ne),g(G),g(Ce),W=!1},d(re){re&&(P(e),P(X),P(O)),F(i),B&&B.d(),J&&J.d(),E&&E.d(),z&&z.d(),Te&&Te.d(),ze&&ze.d(),Ve&&Ve.d(),F(v),_(),vn(Z,re),Ae&&Ae.d(),F(L),ae&&ae.d(),ye&&ye.d(),Me&&Me.d(),je&&je.d(),ne&&ne.d(),G&&G.d(),t[194](null),t[195](null),Ce&&Ce.d(re)}}}function T3(t,e,i){let n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w,$,X,O,W,B,J,E,z,Te=q,ze=()=>(Te(),Te=Qt(Q,j=>i(144,z=j)),Q),Ve,Le=q,Pe=()=>(Le(),Le=Qt(ee,j=>i(145,Ve=j)),ee),pe,Z=q,me=()=>(Z(),Z=Qt(N,j=>i(146,pe=j)),N),Ae,Ue=q,Ge=()=>(Ue(),Ue=Qt(Y,j=>i(147,Ae=j)),Y),ae,ye=q,Me=()=>(ye(),ye=Qt(le,j=>i(148,ae=j)),le),je,ne=q,G=()=>(ne(),ne=Qt(L,j=>i(149,je=j)),L),Ce,re=q,ke=()=>(re(),re=Qt(y,j=>i(150,Ce=j)),y),He,et=q,lt=()=>(et(),et=Qt(T,j=>i(151,He=j)),T),Ne,ue=q,st=()=>(ue(),ue=Qt(C,j=>i(152,Ne=j)),C),vt,ut=q,bt=()=>(ut(),ut=Qt(S,j=>i(153,vt=j)),S),Ct,Be=q,Ft=()=>(Be(),Be=Qt(_,j=>i(154,Ct=j)),_),ce,ft=q,kt=()=>(ft(),ft=Qt(k,j=>i(155,ce=j)),k),We,tt=q,gt=()=>(tt(),tt=Qt(v,j=>i(156,We=j)),v),wt,hi=q,bi=()=>(hi(),hi=Qt(h,j=>i(157,wt=j)),h),gi,Fi=q,Qi=()=>(Fi(),Fi=Qt(d,j=>i(158,gi=j)),d),ii,ni=q,_i=()=>(ni(),ni=Qt(f,j=>i(159,ii=j)),f),Ut,oi=q,Ui=()=>(oi(),oi=Qt(c,j=>i(160,Ut=j)),c),vi,ki,li,wi,si,yi,Ci,yt,Mt,qt,ri,Vt,ai,Zt,xt,Tt,St,Bt,Wt,ui,en,qi,jt;t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>Le()),t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>Ue()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ue()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>Be()),t.$$.on_destroy.push(()=>ft()),t.$$.on_destroy.push(()=>tt()),t.$$.on_destroy.push(()=>hi()),t.$$.on_destroy.push(()=>Fi()),t.$$.on_destroy.push(()=>ni()),t.$$.on_destroy.push(()=>oi());let{bottomHidden:$t}=e,{bottomNoSmooth:Ti}=e,{showControls:Ni}=e,{controlsElementRef:Nt=void 0}=e,{isAds:_t=!1}=e,{canRewindLive:Si}=e,{logoClickable:Zi}=e,{logoHidden:ei}=e,{logoTargetUrl:Wi=""}=e,{showNextPrevButtons:ci}=e,{nextButtonActive:Xi}=e,{prevButtonActive:ji}=e,{isOneVideoPlaylist:Ji=!1}=e,{supportLink:Ri}=e,{customFullscreenSupported:Pi=!0}=e,{playNextVideo:Rt}=e,{playPrevVideo:Kt}=e,{repeatPlaylist:fi}=e,{toggleFullscreen:Di}=e,{returnFocus:Oi}=e,{seekToInteractive:di}=e,{toggleGraph:Ai}=e,{playPrevChapter:Ii}=e;const Fe=ht(),zi=vo(),Lt=an(),Ee=Fe.actions.internal.toggleMuted,Ei=Fe.actions.internal.togglePlay,Ki=Fe.actions.internal.pause,Hi=Fe.actions.internal.toggleSubtitle,Vi=Fe.callbacks?.onAudioDoesNotExistHint,xi=Fe.callbacks?.onAudioDisabledHint,Li=Fe.state.duration$;R(t,Li,j=>i(82,qi=j));const Gi=Fe.state.positionWithScrubbing$;R(t,Gi,j=>i(80,ui=j));const Dt=Fe.state.playbackState$;R(t,Dt,j=>i(161,li=j));const Yi=Fe.state.chromecastConnected$;R(t,Yi,j=>i(83,jt=j));const ti=Fe.state.isAudioAvailable$;R(t,ti,j=>i(197,w=j));const oe=Fe.state.isAudioDisabled,it=Fe.state.isEnded$;R(t,it,j=>i(169,Zt=j));const Ot=Fe.state.isLive$;R(t,Ot,j=>i(33,yt=j));const Gt=Fe.state.isActiveLive$;R(t,Gt,j=>i(163,yi=j));const Mi=Fe.state.isRewindableLive$;R(t,Mi,j=>i(32,Ci=j));const Bi=Fe.ui.isPictureInPictureActive$;R(t,Bi,j=>i(165,qt=j));const un=Fe.ui.pictureInPictureType$;R(t,un,j=>i(164,Mt=j));const cn=Fe.ui.settingsMenuVisible;R(t,cn,j=>i(27,O=j));const on=Fe.ui.settingsMenuOpenedByKeyboard;R(t,on,j=>i(140,X=j));const Pt=Fe.ui.controls,kn=Fe.actions.internal.getVideoEpisodes(),wn=Fe.state.chromecastState$;R(t,wn,j=>i(29,vi=j));const fn=Fe.state.availableSubtitlesList$;R(t,fn,j=>i(168,ai=j));const mn=Fe.state.currentSubtitle$;R(t,mn,j=>i(170,xt=j));const ln=Pt.disabledControls$;R(t,ln,j=>i(172,St=j));const tn=Fe.ui.contextMenu.visible$;R(t,tn,j=>i(162,wi=j));const te=Fe.ui.contextMenu.showContextMenuBtn$;R(t,te,j=>i(166,ri=j));const dt=Fe.ui.contextMenu.openedByBtnKeyboard$;R(t,dt,j=>i(167,Vt=j));const pn=Fe.ui.startedByKeyboard$;R(t,pn,j=>i(139,$=j));const yn=Fe.ads.duration;R(t,yn,j=>i(81,en=j));const Cn=Fe.ads.position;R(t,Cn,j=>i(79,Wt=j));const Dn=Fe.ads.playbackState;R(t,Dn,j=>i(171,Tt=j));const On=Fe.ui.isFullscreen;R(t,On,j=>i(30,ki=j));const zn=Fe.ui.playerSize;R(t,zn,j=>i(142,B=j));const Hn=Fe.ui.currentGridType$;R(t,Hn,j=>i(143,J=j));const Fn=Fe.ui.additionalButtons$;R(t,Fn,j=>i(28,E=j));const Kn=Fe.actions.internal.getVideoElement,x=Fe.actions.internal.replayInteractive,sn=Fe.state.isInteractive,Gn=Fe.state.isInteractiveTime$;R(t,Gn,j=>i(141,W=j));const Yn=Fe.state.showInteractiveGraph,Un=Fe.state.showSeekToInteractive,no=Fe.state.showPlayPrevChapter,Tn=Fe.state.showInteractiveTimeIndicator,qn=Fe.state.graphIsOpened$;R(t,qn,j=>i(31,si=j));const oo=Fe.state.playPrevChapterDisabledTooltip,lo=zi.seekToInteractiveDisabledTooltip$;R(t,lo,j=>i(78,Bt=j));const ko=()=>Fe.actions.internal.toggleChromecast();let An,Qn,Xn,so,Jn,rt,b,se,we,Re,Qe,zt,Yt,At,rn,hn,wo,ro,Nl,Rl,Dl,el="";const Nu=(j,il)=>{if(!j){i(50,el=K("tooltip_live"));return}il===$e.PlaybackState.PAUSED&&i(50,el=K("tooltip_play"))};let Ol,zl,Hl,Fl,Bo;const Ye={};let bn,yo,tl,Ul;const Ru=ie.throttleFn(_u,u1,{leading:!1});let No,Ro,Do;function Du(){Po({isAudioDisabled:oe,audioDisabledHintCallback:xi,isAudioAvailable:w,audioIsNotExistHintCallback:Vi})&&Ee()}const Ou=sn?x:Ji?Ei:fi;function zu(j){t.$$.not_equal(Ye.prevButton,j)&&(Ye.prevButton=j,i(23,Ye))}function Hu(j){t.$$.not_equal(Ye.replayButton,j)&&(Ye.replayButton=j,i(23,Ye))}function Fu(j){Do=j,i(26,Do)}function Uu(j){t.$$.not_equal(Ye.playButton,j)&&(Ye.playButton=j,i(23,Ye))}function qu(j){t.$$.not_equal(Ye.nextButton,j)&&(Ye.nextButton=j,i(23,Ye))}function Zu(j){t.$$.not_equal(Ye.playPrevChapterButton,j)&&(Ye.playPrevChapterButton=j,i(23,Ye))}function Wu(j){t.$$.not_equal(Ye.seekToInteractiveButton,j)&&(Ye.seekToInteractiveButton=j,i(23,Ye))}function ju(j){t.$$.not_equal(Ye.interactiveGraphButton,j)&&(Ye.interactiveGraphButton=j,i(23,Ye))}function Ku(j){t.$$.not_equal(Ye.liveButton,j)&&(Ye.liveButton=j,i(23,Ye))}function Gu(j){t.$$.not_equal(Ye.time,j)&&(Ye.time=j,i(23,Ye))}function Yu(j){t.$$.not_equal(Ye.episodes,j)&&(Ye.episodes=j,i(23,Ye))}function Qu(){Bo=this.clientWidth,i(22,Bo)}function Xu(j){t.$$.not_equal(Ye.vkLogo,j)&&(Ye.vkLogo=j,i(23,Ye))}function Ju(j){t.$$.not_equal(Ye.volume,j)&&(Ye.volume=j,i(23,Ye))}function xu(j){t.$$.not_equal(Ye.subtitles,j)&&(Ye.subtitles=j,i(23,Ye))}function $u(j){No=j,i(24,No)}function ec(j){Ro=j,i(25,Ro)}function tc(j){t.$$.not_equal(Ye.settings,j)&&(Ye.settings=j,i(23,Ye))}function ic(j){t.$$.not_equal(Ye.context,j)&&(Ye.context=j,i(23,Ye))}function nc(j){t.$$.not_equal(Ye.fullscreen,j)&&(Ye.fullscreen=j,i(23,Ye))}function oc(j){t.$$.not_equal(Ye.chromecast,j)&&(Ye.chromecast=j,i(23,Ye))}function lc(j){ve[j?"unshift":"push"](()=>{wo=j,i(46,wo)})}function sc(j){ve[j?"unshift":"push"](()=>{Nt=j,i(0,Nt)})}function rc(j){t.$$.not_equal(Ye.interactiveTimeIndicator,j)&&(Ye.interactiveTimeIndicator=j,i(23,Ye))}return t.$$set=j=>{"bottomHidden"in j&&i(1,$t=j.bottomHidden),"bottomNoSmooth"in j&&i(2,Ti=j.bottomNoSmooth),"showControls"in j&&i(3,Ni=j.showControls),"controlsElementRef"in j&&i(0,Nt=j.controlsElementRef),"isAds"in j&&i(4,_t=j.isAds),"canRewindLive"in j&&i(5,Si=j.canRewindLive),"logoClickable"in j&&i(6,Zi=j.logoClickable),"logoHidden"in j&&i(129,ei=j.logoHidden),"logoTargetUrl"in j&&i(7,Wi=j.logoTargetUrl),"showNextPrevButtons"in j&&i(130,ci=j.showNextPrevButtons),"nextButtonActive"in j&&i(8,Xi=j.nextButtonActive),"prevButtonActive"in j&&i(9,ji=j.prevButtonActive),"isOneVideoPlaylist"in j&&i(131,Ji=j.isOneVideoPlaylist),"supportLink"in j&&i(10,Ri=j.supportLink),"customFullscreenSupported"in j&&i(132,Pi=j.customFullscreenSupported),"playNextVideo"in j&&i(11,Rt=j.playNextVideo),"playPrevVideo"in j&&i(12,Kt=j.playPrevVideo),"repeatPlaylist"in j&&i(133,fi=j.repeatPlaylist),"toggleFullscreen"in j&&i(13,Di=j.toggleFullscreen),"returnFocus"in j&&i(14,Oi=j.returnFocus),"seekToInteractive"in j&&i(15,di=j.seekToInteractive),"toggleGraph"in j&&i(16,Ai=j.toggleGraph),"playPrevChapter"in j&&i(17,Ii=j.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[5]&131072&&i(138,n=St.has(at.EPISODE_BUTTON)),t.$$.dirty[5]&131072&&i(77,o=St.has(at.GRAPH_BUTTON)),t.$$.dirty[5]&131072&&i(76,s=St.has(at.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[5]&131072&&i(75,l=St.has(at.PLAY_BUTTON)),t.$$.dirty[5]&131072&&i(74,r=St.has(at.REPLAY_BUTTON)),t.$$.dirty[5]&131072&&i(73,a=St.has(at.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[0]&16|t.$$.dirty[5]&65600&&i(34,An=_t?Tt===Xt.PLAYING:li===$e.PlaybackState.PLAYING),t.$$.dirty[5]&32768&&i(18,Qn=xt.value!=="off"),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(35,Xn=Zt&&!_t||sn),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(36,so=!Zt||sn||_t),t.$$.dirty[4]&524288&&i(134,Jn=gn(J,exports.GridTypes.M)),t.$$.dirty[0]&272|t.$$.dirty[4]&524352&&i(37,rt=ci&&gn(J,exports.GridTypes.M)&&!_t&&Xi),t.$$.dirty[0]&528|t.$$.dirty[4]&524352&&i(38,b=ci&&gn(J,exports.GridTypes.M)&&!_t&&ji),t.$$.dirty[0]&536870912|t.$$.dirty[4]&524288|t.$$.dirty[5]&1536&&i(39,se=vi!==$e.ChromecastState.NOT_AVAILABLE&&!(qt&&Mt===Vn.DocumentPictureInPicture)&&gn(J,exports.GridTypes.M)&&!sn),t.$$.dirty[4]&524288|t.$$.dirty[5]&8192&&i(40,we=ai.length>0&&gn(J,exports.GridTypes.M)),t.$$.dirty[5]&6144&&i(41,Re=Vt||ri),t.$$.dirty[4]&524288&&i(42,Qe=gn(J,exports.GridTypes.S)),t.$$.dirty[4]&32&&i(43,zt=!ei),t.$$.dirty[4]&524576|t.$$.dirty[5]&1536&&i(44,Yt=Lt.features.fullscreen&&(ei||gn(J,exports.GridTypes.S))&&!(qt&&Mt===Vn.DocumentPictureInPicture)&&(sn?Pi:!0)),t.$$.dirty[0]&16|t.$$.dirty[1]&4&&i(19,At=(!yt||_t)&&!(Lt.features.interactiveHideTime&&sn)),t.$$.dirty[4]&262144&&i(45,rn=B.width>100),t.$$.dirty[0]&16|t.$$.dirty[1]&4|t.$$.dirty[4]&17408&&i(20,hn=!_t&&!yt&&!!kn?.length&&Jn&&!n),t.$$.dirty[1]&2|t.$$.dirty[5]&256&&i(21,ro=!Ci||yi),t.$$.dirty[5]&64&&i(47,Nl=li===$e.PlaybackState.PLAYING?K("tooltip_pause"):K("tooltip_play")),t.$$.dirty[1]&1&&i(48,Rl=K(si?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off")),t.$$.dirty[5]&128&&i(49,Dl=K(wi?"aria_label_context_menu_close":"aria_label_context_menu_open")),t.$$.dirty[0]&2097152|t.$$.dirty[5]&64&&Nu(ro,li),t.$$.dirty[0]&262144&&i(52,zl=K(Qn?"tooltip_subtitles_on":"tooltip_subtitles_off")),t.$$.dirty[0]&1073741824&&i(53,Hl=K(ki?"tooltip_fullscreen_on":"tooltip_fullscreen_off")),t.$$.dirty[0]&536870912&&i(54,Fl=vi===$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:Ut?Ut.right-Ut.left:0,replayButton:ii?ii.right-ii.left:0,playButton:gi?gi.right-gi.left:0,nextButton:wt?wt.right-wt.left:0,playPrevChapterButton:We?We.right-We.left:0,seekToInteractiveButton:ce?ce.right-ce.left:0,interactiveGraphButton:Ct?Ct.right-Ct.left:0,liveButton:vt?vt.right-vt.left:0,time:Ne?Ne.right-Ne.left:0,episodes:He?He.right-He.left:0,vkLogo:Ce?Ce.right-Ce.left:0,volume:je?je.right-je.left:0,subtitles:ae?ae.right-ae.left:0,settings:Ae?Ae.right-Ae.left:0,context:pe?pe.right-pe.left:0,fullscreen:Ve?Ve.right-Ve.left:0,chromecast:z?z.right-z.left:0,additionalButtons:E.length?E.reduce(j=>[...j,40],[]):[]}),t.$$.dirty[4]&6144&&(!yo||yo<bn.time)&&i(136,yo=bn.time),t.$$.dirty[0]&5767168|t.$$.dirty[4]&530432){let j=0;hn&&(gn(J,exports.GridTypes.XL)?j=bn.time:j=Rc);const il=bn.prevButton+bn.playButton+bn.nextButton+bn.seekToInteractiveButton+bn.interactiveGraphButton+bn.liveButton+yo+j;i(137,tl=At&&Bo>=il)}t.$$.dirty[4]&532480&&i(55,Ul=tl&&gn(J,exports.GridTypes.M)),t.$$.dirty[0]&8388616|t.$$.dirty[4]&393216&&Ru(Kn(),Pt,Ye,Ni),t.$$.dirty[0]&167772160&&Pl(Ro,O,on),t.$$.dirty[0]&150994944|t.$$.dirty[4]&65536&&Qo(No,O,X),t.$$.dirty[0]&67108864|t.$$.dirty[4]&32768&&vu(pn,$,Do)},i(51,Ol=Lt.logoType===$n.VK_VIDEO?K("tooltip_vk_video_logo"):K("tooltip_vk_logo")),Ui(i(72,{prevButton:c,replayButton:f,playButton:d,nextButton:h,playPrevChapterButton:v,seekToInteractiveButton:k,interactiveGraphButton:_,liveButton:S,time:C,episodes:T,vkLogo:y,volume:L,subtitles:le,settings:Y,context:N,fullscreen:ee,chromecast:Q}=Pt,c,_i(i(71,f)),Qi(i(70,d)),bi(i(69,h)),gt(i(68,v)),kt(i(67,k)),Ft(i(66,_)),bt(i(65,S)),st(i(64,C)),lt(i(63,T)),ke(i(62,y)),G(i(61,L)),Me(i(60,le)),Ge(i(59,Y)),me(i(58,N)),Pe(i(57,ee)),ze(i(56,Q)))),[Nt,$t,Ti,Ni,_t,Si,Zi,Wi,Xi,ji,Ri,Rt,Kt,Di,Oi,di,Ai,Ii,Qn,At,hn,ro,Bo,Ye,No,Ro,Do,O,E,vi,ki,si,Ci,yt,An,Xn,so,rt,b,se,we,Re,Qe,zt,Yt,rn,wo,Nl,Rl,Dl,el,Ol,zl,Hl,Fl,Ul,Q,ee,N,Y,le,L,y,T,C,S,_,k,v,h,d,f,c,a,r,l,s,o,Bt,Wt,ui,en,qi,jt,Lt,Ei,Ki,Hi,Li,Gi,Dt,Yi,ti,it,Ot,Gt,Mi,Bi,un,cn,on,kn,wn,fn,mn,ln,tn,te,dt,pn,yn,Cn,Dn,On,zn,Hn,Fn,sn,Gn,Yn,Un,no,Tn,qn,oo,lo,ko,Du,Ou,ei,ci,Ji,Pi,fi,Jn,bn,yo,tl,n,$,X,W,B,J,z,Ve,pe,Ae,ae,je,Ce,He,Ne,vt,Ct,ce,We,wt,gi,ii,Ut,li,wi,yi,Mt,qt,ri,Vt,ai,Zt,xt,Tt,St,zu,Hu,Fu,Uu,qu,Zu,Wu,ju,Ku,Gu,Yu,Qu,Xu,Ju,xu,$u,ec,tc,ic,nc,oc,lc,sc,rc]}class S3 extends _e{constructor(e){super(),ge(this,e,T3,C3,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},$m,[-1,-1,-1,-1,-1,-1,-1])}}function P3(t){let e,i,n,o;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("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){A(s,e,l),p(e,i),p(i,n),p(i,o)},p:q,i:q,o:q,d(s){s&&P(e)}}}class A3 extends _e{constructor(e){super(),ge(this,e,null,P3,be,{})}}function I3(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 Ir(t){let e;return{c(){e=I("span"),e.textContent=`${K("mobile_unmute")}`,u(e,"class","text v-6gmlbk")},m(i,n){A(i,e,n)},p:q,d(i){i&&P(e)}}}function E3(t){let e,i,n,o;var s=t[4];function l(a){return{}}s&&(i=Pn(s,l()));let r=t[1]&&Ir();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"),V(e,"expanded",t[1])},m(a,c){A(a,e,c),i&&H(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,()=>{F(f,1)}),de()}s?(i=Pn(s,l()),U(i.$$.fragment),m(i.$$.fragment,1),H(i,e,n)):i=null}a[1]?r?r.p(a,c):(r=Ir(),r.c(),r.m(e,null)):r&&(r.d(1),r=null),(!o||c&2)&&V(e,"expanded",a[1])},i(a){o||(i&&m(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:[E3]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function L3(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=K(n?"tooltip_volume":"tooltip_volume_muted")),t.$$.dirty&2&&i(4,a=o?Jo:A3)},[l,o,s,r,a,n,c]}class wu extends _e{constructor(e){super(),ge(this,e,L3,V3,be,{muted:5,expanded:1,click:2,ref:0},I3)}}function M3(t){let e,i,n,o;return{c(){e=M("svg"),i=M("path"),n=M("path"),o=M("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"),V(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"),V(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){A(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&&V(n,"hidden",!s[0]),l&2&&u(o,"fill",s[1]),l&1&&V(o,"hidden",s[0])},i:q,o:q,d(s){s&&P(e)}}}function B3(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 N3 extends _e{constructor(e){super(),ge(this,e,B3,M3,be,{isActive:0})}}function R3(t){let e,i;return e=new N3({props:{isActive:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isActive=n[1]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function D3(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:[R3]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new pi({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function O3(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 z3 extends _e{constructor(e){super(),ge(this,e,O3,D3,be,{ref:0,isPictureInPictureActive:1,click:2})}}function H3(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 Er(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 Vr(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T=(!t[51]||t[53])&&Lr(t),y=Ht(t[56]),L=[];for(let B=0;B<y.length;B+=1)L[B]=Mr(Er(t,y,B));const le=B=>g(L[B],1,1,()=>{L[B]=null});let Y=t[36]&&Br(t),N=t[37]&&Nr(t),ee=t[57]&&Rr(t),Q=t[39]&&Dr(t),w=t[8]&&Or(t),$=t[34]&&zr(t),X=t[33]&&Hr(t),O=t[8]&&Fr(t),W=t[96]&&!t[29]&&Ur(t);return{c(){e=I("div"),i=D(),n=I("div"),T&&T.c(),o=D(),s=I("div");for(let B=0;B<L.length;B+=1)L[B].c();l=D(),Y&&Y.c(),r=D(),N&&N.c(),a=D(),ee&&ee.c(),c=D(),Q&&Q.c(),f=D(),d=I("div"),w&&w.c(),h=D(),$&&$.c(),v=D(),X&&X.c(),k=D(),O&&O.c(),_=D(),W&&W.c(),S=ct(),u(e,"class","overlay-mobile v-1tcstu3"),V(e,"hidden",!t[42]),u(n,"class","wrapper-top-left v-1tcstu3"),V(n,"hidden",!t[3]),V(n,"fullscreen",t[52]),u(s,"class","wrapper-top-right v-1tcstu3"),V(s,"hidden",!t[3]&&!t[27]),V(s,"fullscreen",t[52]),u(d,"class","wrapper-middle v-1tcstu3"),V(d,"hidden",!t[3]||t[29])},m(B,J){A(B,e,J),A(B,i,J),A(B,n,J),T&&T.m(n,null),A(B,o,J),A(B,s,J);for(let E=0;E<L.length;E+=1)L[E]&&L[E].m(s,null);p(s,l),Y&&Y.m(s,null),p(s,r),N&&N.m(s,null),p(s,a),ee&&ee.m(s,null),p(s,c),Q&&Q.m(s,null),A(B,f,J),A(B,d,J),w&&w.m(d,null),p(d,h),$&&$.m(d,null),p(d,v),X&&X.m(d,null),p(d,k),O&&O.m(d,null),A(B,_,J),W&&W.m(B,J),A(B,S,J),C=!0},p(B,J){if((!C||J[1]&2048)&&V(e,"hidden",!B[42]),!B[51]||B[53]?T?(T.p(B,J),J[1]&5242880&&m(T,1)):(T=Lr(B),T.c(),m(T,1),T.m(n,null)):T&&(fe(),g(T,1,1,()=>{T=null}),de()),(!C||J[0]&8)&&V(n,"hidden",!B[3]),(!C||J[1]&2097152)&&V(n,"fullscreen",B[52]),J[1]&33554432){y=Ht(B[56]);let E;for(E=0;E<y.length;E+=1){const z=Er(B,y,E);L[E]?(L[E].p(z,J),m(L[E],1)):(L[E]=Mr(z),L[E].c(),m(L[E],1),L[E].m(s,l))}for(fe(),E=y.length;E<L.length;E+=1)le(E);de()}B[36]?Y?(Y.p(B,J),J[1]&32&&m(Y,1)):(Y=Br(B),Y.c(),m(Y,1),Y.m(s,r)):Y&&(fe(),g(Y,1,1,()=>{Y=null}),de()),B[37]?N?(N.p(B,J),J[1]&64&&m(N,1)):(N=Nr(B),N.c(),m(N,1),N.m(s,a)):N&&(fe(),g(N,1,1,()=>{N=null}),de()),B[57]?ee?(ee.p(B,J),J[1]&67108864&&m(ee,1)):(ee=Rr(B),ee.c(),m(ee,1),ee.m(s,c)):ee&&(fe(),g(ee,1,1,()=>{ee=null}),de()),B[39]?Q?(Q.p(B,J),J[1]&256&&m(Q,1)):(Q=Dr(B),Q.c(),m(Q,1),Q.m(s,null)):Q&&(fe(),g(Q,1,1,()=>{Q=null}),de()),(!C||J[0]&134217736)&&V(s,"hidden",!B[3]&&!B[27]),(!C||J[1]&2097152)&&V(s,"fullscreen",B[52]),B[8]?w?(w.p(B,J),J[0]&256&&m(w,1)):(w=Or(B),w.c(),m(w,1),w.m(d,h)):w&&(fe(),g(w,1,1,()=>{w=null}),de()),B[34]?$?($.p(B,J),J[1]&8&&m($,1)):($=zr(B),$.c(),m($,1),$.m(d,v)):$&&(fe(),g($,1,1,()=>{$=null}),de()),B[33]?X?(X.p(B,J),J[1]&4&&m(X,1)):(X=Hr(B),X.c(),m(X,1),X.m(d,k)):X&&(fe(),g(X,1,1,()=>{X=null}),de()),B[8]?O?(O.p(B,J),J[0]&256&&m(O,1)):(O=Fr(B),O.c(),m(O,1),O.m(d,null)):O&&(fe(),g(O,1,1,()=>{O=null}),de()),(!C||J[0]&536870920)&&V(d,"hidden",!B[3]||B[29]),B[96]&&!B[29]?W?(W.p(B,J),J[0]&536870912&&m(W,1)):(W=Ur(B),W.c(),m(W,1),W.m(S.parentNode,S)):W&&(fe(),g(W,1,1,()=>{W=null}),de())},i(B){if(!C){m(T);for(let J=0;J<y.length;J+=1)m(L[J]);m(Y),m(N),m(ee),m(Q),m(w),m($),m(X),m(O),m(W),C=!0}},o(B){g(T),L=L.filter(Boolean);for(let J=0;J<L.length;J+=1)g(L[J]);g(Y),g(N),g(ee),g(Q),g(w),g($),g(X),g(O),g(W),C=!1},d(B){B&&(P(e),P(i),P(n),P(o),P(s),P(f),P(d),P(_),P(S)),T&&T.d(),vn(L,B),Y&&Y.d(),N&&N.d(),ee&&ee.d(),Q&&Q.d(),w&&w.d(),$&&$.d(),X&&X.d(),O&&O.d(),W&&W.d(B)}}}function Lr(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 wu({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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[169],ariaLabel:t[170]??t[173],testId:t[171],onClick:t[172]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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[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 nu({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(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[132](l)}let s={click:t[105],isPictureInPictureActive:t[26]};return t[20].pip!==void 0&&(s.ref=t[20].pip),e=new z3({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(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[133](l)}let s={};return t[22]!==void 0&&(s.ref=t[22]),e=new Il({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(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[134](l)}let s={click:t[64],targetUrl:t[7],logoClickable:t[6]};return t[20].vkLogo!==void 0&&(s.ref=t[20].vkLogo),e=new iu({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&128&&(a.targetUrl=l[7]),r[0]&64&&(a.logoClickable=l[6]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].vkLogo,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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[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 xo({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(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[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 Ll({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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[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 Ml({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(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[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 xo({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(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[100]&&F3(t),l=t[98]&&U3(t),r=t[99]&&q3(t);return{c(){s&&s.c(),e=D(),l&&l.c(),i=D(),r&&r.c(),n=ct()},m(a,c){s&&s.m(a,c),A(a,e,c),l&&l.m(a,c),A(a,i,c),r&&r.m(a,c),A(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||(m(s),m(l),m(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 F3(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 du({props:a}),ve.push(()=>Ze(i,"ref",r)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","wrapper-middle-left v-1tcstu3"),V(e,"fullscreen",t[52]),V(e,"hidden",!t[3])},m(c,f){A(c,e,f),H(i,e,null),o=!0,s||(l=he(e,"click",t[108]),s=!0)},p(c,f){const d={};f[0]&8&&(d.hidden=!c[3]),f[1]&65536&&(d.disabled=c[47]),f[0]&262144&&(d.click=c[18]),!n&&f[0]&1048576&&(n=!0,d.ref=c[20].playPrevChapterButton,qe(()=>n=!1)),i.$set(d),(!o||f[1]&2097152)&&V(e,"fullscreen",c[52]),(!o||f[0]&8)&&V(e,"hidden",!c[3])},i(c){o||(m(i.$$.fragment,c),o=!0)},o(c){g(i.$$.fragment,c),o=!1},d(c){c&&P(e),F(i),s=!1,l()}}}function U3(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 cu({props:l}),ve.push(()=>Ze(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class",hc(t[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" v-1tcstu3"),V(e,"fullscreen",t[52]),V(e,"hidden",!t[3]&&!t[58])},m(r,a){A(r,e,a),H(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,qe(()=>n=!1)),i.$set(c),(!o||a[1]&2097152)&&V(e,"fullscreen",r[52]),(!o||a[0]&8|a[1]&134217728)&&V(e,"hidden",!r[3]&&!r[58])},i(r){o||(m(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function q3(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 uu({props:a}),ve.push(()=>Ze(i,"ref",r)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","wrapper-middle-right v-1tcstu3"),V(e,"fullscreen",t[52]),V(e,"hidden",!t[3])},m(c,f){A(c,e,f),H(i,e,null),o=!0,s||(l=he(e,"click",t[109]),s=!0)},p(c,f){const d={};f[0]&8&&(d.hidden=!c[3]),f[1]&32768&&(d.disabled=c[46]),f[0]&65536&&(d.click=c[16]),!n&&f[0]&1048576&&(n=!0,d.ref=c[20].seekToInteractiveButton,qe(()=>n=!1)),i.$set(d),(!o||f[1]&2097152)&&V(e,"fullscreen",c[52]),(!o||f[0]&8)&&V(e,"hidden",!c[3])},i(c){o||(m(i.$$.fragment,c),o=!0)},o(c){g(i.$$.fragment,c),o=!1},d(c){c&&P(e),F(i),s=!1,l()}}}function qr(t){let e,i,n,o,s,l=t[53]&&Zr(t),r=t[32]&&Wr(t);return o=new su({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"),V(n,"fullscreen",t[52])},m(a,c){l&&l.m(a,c),A(a,e,c),r&&r.m(a,c),A(a,i,c),A(a,n,c),H(o,n,null),s=!0},p(a,c){a[53]?l?(l.p(a,c),c[1]&4194304&&m(l,1)):(l=Zr(a),l.c(),m(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&&m(r,1)):(r=Wr(a),r.c(),m(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)&&V(n,"fullscreen",a[52])},i(a){s||(m(l),m(r),m(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 Zr(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 wu({props:l}),ve.push(()=>Ze(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","wrapper-top-right v-1tcstu3"),V(e,"fullscreen",t[52])},m(r,a){A(r,e,a),H(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,qe(()=>n=!1)),i.$set(c),(!o||a[1]&2097152)&&V(e,"fullscreen",r[52])},i(r){o||(m(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function Wr(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 Ll({props:l}),ve.push(()=>Ze(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","wrapper-middle v-1tcstu3")},m(r,a){A(r,e,a),H(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,qe(()=>n=!1)),i.$set(c)},i(r){o||(m(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function Z3(t){let e,i,n;function o(l){t[144](l)}let s={disabled:t[48],$$slots:{default:[W3]},$$scope:{ctx:t}};return t[20].replayButton!==void 0&&(s.ref=t[20].replayButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function W3(t){let e,i;return e=new Ml({props:{disabled:t[48],click:t[95]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&131072&&(s.disabled=n[48]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function jr(t){let e,i,n;function o(l){t[145](l)}let s={$$slots:{default:[j3]},$$scope:{ctx:t}};return t[20].liveButton!==void 0&&(s.ref=t[20].liveButton),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function j3(t){let e,i;return e=new ou({props:{isActiveLive:t[19],isMobile:!0,ariaLabel:t[45]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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[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 X1({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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[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){A(s,e,l),A(s,i,l),H(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||(m(n.$$.fragment,s),o=!0)},o(s){g(n.$$.fragment,s),o=!1},d(s){s&&(P(e),P(i)),F(n,s)}}}function K3(t){let e,i,n=t[43]&&Gr(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),A(o,e,s),i=!0},p(o,s){o[43]?n?(n.p(o,s),s[1]&4096&&m(n,1)):(n=Gr(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(fe(),g(n,1,1,()=>{n=null}),de())},i(o){i||(m(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[149](l)}let s={$$slots:{default:[G3]},$$scope:{ctx:t}};return t[20].settings!==void 0&&(s.ref=t[20].settings),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function G3(t){let e,i,n;function o(l){t[148](l)}let s={};return t[22]!==void 0&&(s.ref=t[22]),e=new Il({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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||(m(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[150](l)}let s={$$slots:{default:[Y3]},$$scope:{ctx:t}};return t[20].fullscreen!==void 0&&(s.ref=t[20].fullscreen),e=new Et({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(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,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Y3(t){let e,i;return e=new eu({props:{click:t[14],isFullscreen:t[52]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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[153](r)}let l={supportLink:t[11],returnFocus:t[15]};return t[21]!==void 0&&(l.ref=t[21]),i=new Q1({props:l}),ve.push(()=>Ze(i,"ref",s)),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","settings-mobile v-1tcstu3")},m(r,a){A(r,e,a),H(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||(m(i.$$.fragment,r),o=!0)},o(r){g(i.$$.fragment,r),o=!1},d(r){r&&P(e),F(i)}}}function Q3(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 ku({props:s}),ve.push(()=>Ze(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&1048576&&(i=!0,a.ref=l[20].interactiveTimeIndicator,qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function X3(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y=!t[4]&&Vr(t),L=t[4]&&t[30]!==Xt.INACTIVE&&qr(t),le=t[96]&&Z3(t),Y=!t[4]&&t[25]&&jr(t),N=t[41]&&Kr(t);function ee(W){t[147](W)}let Q={className:"w-max",disabled:!t[43],$$slots:{default:[K3]},$$scope:{ctx:t}};t[20].episodes!==void 0&&(Q.ref=t[20].episodes),c=new Et({props:Q}),ve.push(()=>Ze(c,"ref",ee));let w=t[38]&&Yr(t),$=t[40]&&Qr(t);k=new ru({props:{isAds:t[4],canRewindLive:t[5],isRewindableLive:t[24]}});let X=t[23]&&Xr(t),O=t[101]&&Q3(t);return{c(){y&&y.c(),e=D(),L&&L.c(),i=D(),n=I("div"),o=I("div"),s=I("div"),le&&le.c(),l=D(),Y&&Y.c(),r=D(),N&&N.c(),a=D(),U(c.$$.fragment),d=D(),w&&w.c(),h=D(),$&&$.c(),v=D(),U(k.$$.fragment),_=D(),X&&X.c(),S=D(),O&&O.c(),C=ct(),u(s,"class","controls v-1tcstu3"),V(s,"mobile",!0),u(o,"class","controls-wrapper v-1tcstu3"),V(o,"fullscreen",t[52]),u(n,"class","wrapper-bottom v-1tcstu3"),V(n,"hidden",t[1]),V(n,"controls-hidden",!t[3]),V(n,"no-smooth",t[2]),V(n,"mobile",!0)},m(W,B){y&&y.m(W,B),A(W,e,B),L&&L.m(W,B),A(W,i,B),A(W,n,B),p(n,o),p(o,s),le&&le.m(s,null),p(s,l),Y&&Y.m(s,null),p(s,r),N&&N.m(s,null),p(s,a),H(c,s,null),p(s,d),w&&w.m(s,null),p(s,h),$&&$.m(s,null),t[151](s),p(o,v),H(k,o,null),t[152](n),A(W,_,B),X&&X.m(W,B),A(W,S,B),O&&O.m(W,B),A(W,C,B),T=!0},p(W,B){W[4]?y&&(fe(),g(y,1,1,()=>{y=null}),de()):y?(y.p(W,B),B[0]&16&&m(y,1)):(y=Vr(W),y.c(),m(y,1),y.m(e.parentNode,e)),W[4]&&W[30]!==Xt.INACTIVE?L?(L.p(W,B),B[0]&1073741840&&m(L,1)):(L=qr(W),L.c(),m(L,1),L.m(i.parentNode,i)):L&&(fe(),g(L,1,1,()=>{L=null}),de()),W[96]&&le.p(W,B),!W[4]&&W[25]?Y?(Y.p(W,B),B[0]&33554448&&m(Y,1)):(Y=jr(W),Y.c(),m(Y,1),Y.m(s,r)):Y&&(fe(),g(Y,1,1,()=>{Y=null}),de()),W[41]?N?(N.p(W,B),B[1]&1024&&m(N,1)):(N=Kr(W),N.c(),m(N,1),N.m(s,a)):N&&(fe(),g(N,1,1,()=>{N=null}),de());const J={};B[1]&4096&&(J.disabled=!W[43]),B[1]&1073745920|B[2]&1|B[5]&2097152&&(J.$$scope={dirty:B,ctx:W}),!f&&B[0]&1048576&&(f=!0,J.ref=W[20].episodes,qe(()=>f=!1)),c.$set(J),W[38]?w?(w.p(W,B),B[1]&128&&m(w,1)):(w=Yr(W),w.c(),m(w,1),w.m(s,h)):w&&(fe(),g(w,1,1,()=>{w=null}),de()),W[40]?$?($.p(W,B),B[1]&512&&m($,1)):($=Qr(W),$.c(),m($,1),$.m(s,null)):$&&(fe(),g($,1,1,()=>{$=null}),de());const E={};B[0]&16&&(E.isAds=W[4]),B[0]&32&&(E.canRewindLive=W[5]),B[0]&16777216&&(E.isRewindableLive=W[24]),k.$set(E),(!T||B[1]&2097152)&&V(o,"fullscreen",W[52]),(!T||B[0]&2)&&V(n,"hidden",W[1]),(!T||B[0]&8)&&V(n,"controls-hidden",!W[3]),(!T||B[0]&4)&&V(n,"no-smooth",W[2]),W[23]?X?(X.p(W,B),B[0]&8388608&&m(X,1)):(X=Xr(W),X.c(),m(X,1),X.m(S.parentNode,S)):X&&(fe(),g(X,1,1,()=>{X=null}),de()),W[101]&&O.p(W,B)},i(W){T||(m(y),m(L),m(le),m(Y),m(N),m(c.$$.fragment,W),m(w),m($),m(k.$$.fragment,W),m(X),m(O),T=!0)},o(W){g(y),g(L),g(le),g(Y),g(N),g(c.$$.fragment,W),g(w),g($),g(k.$$.fragment,W),g(X),g(O),T=!1},d(W){W&&(P(e),P(i),P(n),P(_),P(S),P(C)),y&&y.d(W),L&&L.d(W),le&&le.d(),Y&&Y.d(),N&&N.d(),F(c),w&&w.d(),$&&$.d(),t[151](null),F(k),t[152](null),X&&X.d(W),O&&O.d(W)}}}function J3(t,e,i){let n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w,$,X,O,W,B,J,E,z,Te,ze,Ve,Le,Pe,{bottomHidden:pe}=e,{bottomNoSmooth:Z}=e,{showControls:me}=e,{controlsElementRef:Ae=void 0}=e,{isAds:Ue=!1}=e,{canRewindLive:Ge}=e,{logoClickable:ae}=e,{logoHidden:ye}=e,{logoTargetUrl:Me=""}=e,{showNextPrevButtons:je}=e,{nextButtonActive:ne}=e,{prevButtonActive:G}=e,{isOneVideoPlaylist:Ce=!1}=e,{supportLink:re}=e,{customFullscreenSupported:ke=!0}=e,{playNextVideo:He}=e,{playPrevVideo:et}=e,{repeatPlaylist:lt}=e,{toggleFullscreen:Ne}=e,{returnFocus:ue}=e,{seekToInteractive:st}=e,{toggleGraph:vt}=e,{playPrevChapter:ut}=e,{onDisabledPlayPrevChapterClick:bt}=e,{onDisabledSeekToInteractiveClick:Ct}=e;const Be=ht(),Ft=vo(),ce=an(),ft=Be.actions.internal.toggleMuted,kt=Be.actions.internal.togglePlay,We=Be.actions.internal.pause,tt=Be.callbacks?.onAudioDoesNotExistHint,gt=Be.callbacks?.onAudioDisabledHint,wt=Be.playerPhase;R(t,wt,x=>i(126,N=x));const hi=Be.state.duration$;R(t,hi,x=>i(62,Pe=x));const bi=Be.state.positionWithScrubbing$;R(t,bi,x=>i(61,Le=x));const gi=Be.state.playbackState$;R(t,gi,x=>i(121,h=x));const Fi=Be.state.isAudioAvailable$;R(t,Fi,x=>i(51,v=x));const Qi=Be.state.isAudioDisabled,ii=Be.state.isEnded$;R(t,ii,x=>i(127,Q=x));const ni=Be.state.isLive$;R(t,ni,x=>i(25,T=x));const _i=Be.state.muted$;R(t,_i,x=>i(54,B=x));const Ut=Be.state.isActiveLive$;R(t,Ut,x=>i(124,S=x));const oi=Be.state.isRewindableLive$;R(t,oi,x=>i(24,C=x));const Ui=Be.ui.scrubbingInProgress;R(t,Ui,x=>i(29,ee=x));const vi=Be.ui.mobileNotReportControlHidden$;R(t,vi,x=>i(27,le=x));const ki=Be.ui.isPictureInPictureActive$;R(t,ki,x=>i(26,L=x));const li=Be.ui.pictureInPictureType$;R(t,li,x=>i(125,y=x));const wi=Be.ui.mobileUnmuteButtonExpanded;R(t,wi,x=>i(55,J=x));const si=Be.ui.mobileUnmuteButtonVisible;R(t,si,x=>i(53,W=x));const yi=Be.ui.settingsMenuVisible;R(t,yi,x=>i(23,d=x));const Ci=Be.ui.settingsMenuOpenedByKeyboard;R(t,Ci,x=>i(120,f=x));const yt=Be.ui.controls,Mt=Be.actions.internal.getVideoEpisodes(),qt=Be.webApi.pictureInPictureApi,ri=Be.state.chromecastState$;R(t,ri,x=>i(28,Y=x));const Vt=Be.state.crashed$;R(t,Vt,x=>i(57,z=x));const ai=yt.disabledControls$;R(t,ai,x=>i(128,$=x));const Zt=Be.ui.startedByKeyboard$;R(t,Zt,x=>i(119,c=x));const xt=Be.ads.duration;R(t,xt,x=>i(60,Ve=x));const Tt=Be.ads.position;R(t,Tt,x=>i(59,ze=x));const St=Be.ads.playbackState;R(t,St,x=>i(30,w=x));const Bt=Be.ui.isFullscreen;R(t,Bt,x=>i(52,O=x));const Wt=Be.ui.playerSize;R(t,Wt,x=>i(123,_=x));const ui=Be.ui.additionalButtons$;R(t,ui,x=>i(56,E=x));const en=Be.actions.internal.getVideoElement,qi=Be.actions.internal.replayInteractive,jt=Be.state.isInteractive,$t=Be.state.isInteractiveTime$;R(t,$t,x=>i(122,k=x));const Ti=Be.state.showInteractiveGraph,Ni=Be.state.showSeekToInteractive,Nt=Be.state.showPlayPrevChapter,_t=Be.state.showInteractiveTimeIndicator,Si=Be.state.graphIsOpened$;R(t,Si,x=>i(58,Te=x));const Zi=Ft.seekToInteractiveDisabledTooltip$;R(t,Zi,x=>i(129,X=x));let ei,Wi,ci,Xi,ji,Ji,Ri,Pi,Rt,Kt,fi,Di,Oi,di,Ai,Ii,Fe,zi,Lt;const Ee={},Ei=ie.throttleFn(_u,u1,{leading:!1}),Ki=()=>Be.actions.internal.toggleChromecast();function Hi(){Po({isAudioDisabled:Qi,audioDisabledHintCallback:gt,isAudioAvailable:v,audioIsNotExistHintCallback:tt})&&ft()}async function Vi(){qt?.isActive()?await qt?.remove():await qt?.request()}function xi(){!Qi&&v&&si.set(!1),Hi()}const Li=Ce?kt:lt;let Gi="";const Dt=(x,sn)=>{if(!x){i(45,Gi=K("tooltip_live"));return}sn===$e.PlaybackState.PAUSED&&i(45,Gi=K("tooltip_play"))};let Yi,ti;const oe=()=>{a&&bt(ei)},it=()=>{s&&Ct(Wi)};function Ot(x){t.$$.not_equal(Ee.volume,x)&&(Ee.volume=x,i(20,Ee))}function Gt(x){t.$$.not_equal(Ee.chromecast,x)&&(Ee.chromecast=x,i(20,Ee))}function Mi(x){t.$$.not_equal(Ee.pip,x)&&(Ee.pip=x,i(20,Ee))}function Bi(x){ti=x,i(22,ti)}function un(x){t.$$.not_equal(Ee.vkLogo,x)&&(Ee.vkLogo=x,i(20,Ee))}function cn(x){t.$$.not_equal(Ee.prevButton,x)&&(Ee.prevButton=x,i(20,Ee))}function on(x){t.$$.not_equal(Ee.playButton,x)&&(Ee.playButton=x,i(20,Ee))}function Pt(x){t.$$.not_equal(Ee.replayButton,x)&&(Ee.replayButton=x,i(20,Ee))}function kn(x){t.$$.not_equal(Ee.nextButton,x)&&(Ee.nextButton=x,i(20,Ee))}function wn(x){t.$$.not_equal(Ee.playPrevChapterButton,x)&&(Ee.playPrevChapterButton=x,i(20,Ee))}function fn(x){t.$$.not_equal(Ee.interactiveGraphButton,x)&&(Ee.interactiveGraphButton=x,i(20,Ee))}function mn(x){t.$$.not_equal(Ee.seekToInteractiveButton,x)&&(Ee.seekToInteractiveButton=x,i(20,Ee))}function ln(x){t.$$.not_equal(Ee.volume,x)&&(Ee.volume=x,i(20,Ee))}function tn(x){t.$$.not_equal(Ee.playButton,x)&&(Ee.playButton=x,i(20,Ee))}function te(x){t.$$.not_equal(Ee.replayButton,x)&&(Ee.replayButton=x,i(20,Ee))}function dt(x){t.$$.not_equal(Ee.liveButton,x)&&(Ee.liveButton=x,i(20,Ee))}function pn(x){t.$$.not_equal(Ee.time,x)&&(Ee.time=x,i(20,Ee))}function yn(x){t.$$.not_equal(Ee.episodes,x)&&(Ee.episodes=x,i(20,Ee))}function Cn(x){ti=x,i(22,ti)}function Dn(x){t.$$.not_equal(Ee.settings,x)&&(Ee.settings=x,i(20,Ee))}function On(x){t.$$.not_equal(Ee.fullscreen,x)&&(Ee.fullscreen=x,i(20,Ee))}function zn(x){ve[x?"unshift":"push"](()=>{zi=x,i(44,zi)})}function Hn(x){ve[x?"unshift":"push"](()=>{Ae=x,i(0,Ae)})}function Fn(x){Yi=x,i(21,Yi)}function Kn(x){t.$$.not_equal(Ee.interactiveTimeIndicator,x)&&(Ee.interactiveTimeIndicator=x,i(20,Ee))}return t.$$set=x=>{"bottomHidden"in x&&i(1,pe=x.bottomHidden),"bottomNoSmooth"in x&&i(2,Z=x.bottomNoSmooth),"showControls"in x&&i(3,me=x.showControls),"controlsElementRef"in x&&i(0,Ae=x.controlsElementRef),"isAds"in x&&i(4,Ue=x.isAds),"canRewindLive"in x&&i(5,Ge=x.canRewindLive),"logoClickable"in x&&i(6,ae=x.logoClickable),"logoHidden"in x&&i(110,ye=x.logoHidden),"logoTargetUrl"in x&&i(7,Me=x.logoTargetUrl),"showNextPrevButtons"in x&&i(8,je=x.showNextPrevButtons),"nextButtonActive"in x&&i(9,ne=x.nextButtonActive),"prevButtonActive"in x&&i(10,G=x.prevButtonActive),"isOneVideoPlaylist"in x&&i(111,Ce=x.isOneVideoPlaylist),"supportLink"in x&&i(11,re=x.supportLink),"customFullscreenSupported"in x&&i(112,ke=x.customFullscreenSupported),"playNextVideo"in x&&i(12,He=x.playNextVideo),"playPrevVideo"in x&&i(13,et=x.playPrevVideo),"repeatPlaylist"in x&&i(113,lt=x.repeatPlaylist),"toggleFullscreen"in x&&i(14,Ne=x.toggleFullscreen),"returnFocus"in x&&i(15,ue=x.returnFocus),"seekToInteractive"in x&&i(16,st=x.seekToInteractive),"toggleGraph"in x&&i(17,vt=x.toggleGraph),"playPrevChapter"in x&&i(18,ut=x.playPrevChapter),"onDisabledPlayPrevChapterClick"in x&&i(114,bt=x.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in x&&i(115,Ct=x.onDisabledSeekToInteractiveClick)},t.$$.update=()=>{if(t.$$.dirty[4]&32&&(Wi=K(X)),t.$$.dirty[4]&16&&i(118,n=$.has(at.EPISODE_BUTTON)),t.$$.dirty[4]&16&&i(50,o=$.has(at.GRAPH_BUTTON)),t.$$.dirty[4]&16&&i(46,s=$.has(at.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[4]&16&&i(49,l=$.has(at.PLAY_BUTTON)),t.$$.dirty[4]&16&&i(48,r=$.has(at.REPLAY_BUTTON)),t.$$.dirty[4]&16&&i(47,a=$.has(at.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[3]&268435456&&i(31,ci=h===$e.PlaybackState.PLAYING),t.$$.dirty[0]&1073741824&&i(32,Xi=w===Xt.PAUSED),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(33,ji=Q&&!Ue&&!jt),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(34,Ji=!Q||Ue),t.$$.dirty[3]&1073741824&&i(116,Ri=_.width>300),t.$$.dirty[3]&1073741824&&i(35,Pi=_.width>400),t.$$.dirty[0]&536870912&&i(117,Rt=ee),t.$$.dirty[0]&469762048|t.$$.dirty[4]&2&&i(36,Kt=Y!==$e.ChromecastState.NOT_AVAILABLE&&!(L&&y===Vn.DocumentPictureInPicture)&&!le&&!jt),t.$$.dirty[0]&402653184|t.$$.dirty[3]&16777216|t.$$.dirty[4]&6){const x=N===De.WaitingLive;i(37,fi=!!qt&&Y!==$e.ChromecastState.CONNECTED&&!le&&(y===Vn.DocumentPictureInPicture&&x||!x)&&!Rt&&!jt)}t.$$.dirty[3]&16777216&&i(38,Di=!Rt),t.$$.dirty[3]&1073872896&&i(39,Oi=!ye&&_.width>350),t.$$.dirty[0]&67108864|t.$$.dirty[3]&17301504|t.$$.dirty[4]&2&&i(40,di=ce.features.fullscreen&&!(L&&y===Vn.DocumentPictureInPicture)&&(jt?ke:!0)&&!Rt),t.$$.dirty[0]&33554448|t.$$.dirty[3]&1090519040&&i(41,Ai=(!T||Ue)&&_.width>260&&!Rt&&!(ce.features.interactiveHideTime&&jt)),t.$$.dirty[0]&8388616&&i(42,Ii=d||me),t.$$.dirty[0]&33554448|t.$$.dirty[3]&58720256&&i(43,Fe=!Ue&&!T&&!!Mt?.length&&Ri&&!n&&!Rt),t.$$.dirty[0]&16777216|t.$$.dirty[4]&1&&i(19,Lt=!C||S),t.$$.dirty[0]&1048584|t.$$.dirty[3]&1610612736&&Ei(en(),yt,Ee,me),t.$$.dirty[0]&524288|t.$$.dirty[3]&268435456&&Dt(Lt,h),t.$$.dirty[0]&12582912&&Pl(ti,d,Ci),t.$$.dirty[0]&10485760|t.$$.dirty[3]&134217728&&Qo(Yi,d,f),t.$$.dirty[0]&1048576|t.$$.dirty[3]&67108864&&vu(Zt,c,Ee.playButton)},ei=K(Be.state.playPrevChapterDisabledTooltip),[Ae,pe,Z,me,Ue,Ge,ae,Me,je,ne,G,re,He,et,Ne,ue,st,vt,ut,Lt,Ee,Yi,ti,d,C,T,L,le,Y,ee,w,ci,Xi,ji,Ji,Pi,Kt,fi,Di,Oi,di,Ai,Ii,Fe,zi,Gi,s,a,r,l,o,v,O,W,B,J,E,z,Te,ze,Ve,Le,Pe,kt,We,wt,hi,bi,gi,Fi,Qi,ii,ni,_i,Ut,oi,Ui,vi,ki,li,wi,si,yi,Ci,Mt,ri,Vt,ai,Zt,xt,Tt,St,Bt,Wt,ui,qi,jt,$t,Ti,Ni,Nt,_t,Si,Zi,Ki,Vi,xi,Li,oe,it,ye,Ce,ke,lt,bt,Ct,Ri,Rt,n,c,f,h,k,_,S,y,N,Q,$,X,Ot,Gt,Mi,Bi,un,cn,on,Pt,kn,wn,fn,mn,ln,tn,te,dt,pn,yn,Cn,Dn,On,zn,Hn,Fn,Kn]}class x3 extends _e{constructor(e){super(),ge(this,e,J3,X3,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},H3,[-1,-1,-1,-1,-1,-1])}}function $3(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],logoTargetUrl: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 S3({props:s}),ve.push(()=>Ze(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){H(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.logoTargetUrl=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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function ep(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],logoTargetUrl: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 x3({props:s}),ve.push(()=>Ze(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){H(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.logoTargetUrl=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],qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function tp(t){let e,i,n,o;const s=[ep,$3],l=[];function r(a,c){return a[25]?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),A(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()),m(i,1),i.m(n.parentNode,n))},i(a){o||(m(i),o=!0)},o(a){g(i),o=!1},d(a){a&&P(n),l[e].d(a)}}}function ip(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:d}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:v}=e,{nextButtonActive:k}=e,{prevButtonActive:_}=e,{isOneVideoPlaylist:S=!1}=e,{supportLink:C}=e,{customFullscreenSupported:T=!0}=e,{playNextVideo:y}=e,{playPrevVideo:L}=e,{repeatPlaylist:le}=e,{toggleFullscreen:Y}=e,{returnFocus:N=ie.noop}=e,{seekToInteractive:ee}=e,{toggleGraph:Q}=e,{playPrevChapter:w}=e,{onDisabledPlayPrevChapterClick:$=ie.noop}=e,{onDisabledSeekToInteractiveClick:X=ie.noop}=e;const W=ht().ui.isMobile;R(t,W,E=>i(25,n=E));function B(E){r=E,i(0,r)}function J(E){r=E,i(0,r)}return t.$$set=E=>{"bottomHidden"in E&&i(1,o=E.bottomHidden),"bottomNoSmooth"in E&&i(2,s=E.bottomNoSmooth),"showControls"in E&&i(3,l=E.showControls),"controlsElementRef"in E&&i(0,r=E.controlsElementRef),"isAds"in E&&i(4,a=E.isAds),"canRewindLive"in E&&i(5,c=E.canRewindLive),"logoClickable"in E&&i(6,f=E.logoClickable),"logoHidden"in E&&i(7,d=E.logoHidden),"logoTargetUrl"in E&&i(8,h=E.logoTargetUrl),"showNextPrevButtons"in E&&i(9,v=E.showNextPrevButtons),"nextButtonActive"in E&&i(10,k=E.nextButtonActive),"prevButtonActive"in E&&i(11,_=E.prevButtonActive),"isOneVideoPlaylist"in E&&i(12,S=E.isOneVideoPlaylist),"supportLink"in E&&i(13,C=E.supportLink),"customFullscreenSupported"in E&&i(14,T=E.customFullscreenSupported),"playNextVideo"in E&&i(15,y=E.playNextVideo),"playPrevVideo"in E&&i(16,L=E.playPrevVideo),"repeatPlaylist"in E&&i(17,le=E.repeatPlaylist),"toggleFullscreen"in E&&i(18,Y=E.toggleFullscreen),"returnFocus"in E&&i(19,N=E.returnFocus),"seekToInteractive"in E&&i(20,ee=E.seekToInteractive),"toggleGraph"in E&&i(21,Q=E.toggleGraph),"playPrevChapter"in E&&i(22,w=E.playPrevChapter),"onDisabledPlayPrevChapterClick"in E&&i(23,$=E.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in E&&i(24,X=E.onDisabledSeekToInteractiveClick)},[r,o,s,l,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w,$,X,n,W,B,J]}class yu extends _e{constructor(e){super(),ge(this,e,ip,tp,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}}function np(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function op(t){let e,i,n,o,s,l,r,a,c,f,d,h,v;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("defs"),l=M("filter"),r=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),h=M("feBlend"),v=M("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(d,"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(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_100684"),u(v,"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"),V(e,"reversed",t[0])},m(k,_){A(k,e,_),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,d),p(l,h),p(l,v)},p(k,[_]){_&1&&V(e,"reversed",k[0])},i:q,o:q,d(k){k&&P(e)}}}function lp(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class sp extends _e{constructor(e){super(),ge(this,e,lp,op,be,{reversed:0},np)}}function rp(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("defs"),l=M("clipPath"),r=M("path"),a=M("filter"),c=M("feFlood"),f=M("feColorMatrix"),d=M("feOffset"),h=M("feGaussianBlur"),v=M("feColorMatrix"),k=M("feBlend"),_=M("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(v,"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_104204"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_104204"),u(_,"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(S,C){A(S,e,C),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,d),p(a,h),p(a,v),p(a,k),p(a,_)},d(S){S&&P(e)}}}function ap(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("path"),l=M("defs"),r=M("clipPath"),a=M("path"),c=M("filter"),f=M("feFlood"),d=M("feColorMatrix"),h=M("feOffset"),v=M("feGaussianBlur"),k=M("feColorMatrix"),_=M("feBlend"),S=M("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(d,"in","SourceAlpha"),u(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(d,"result","hardAlpha"),u(v,"stdDeviation","2.5"),u(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_2260_104293"),u(S,"in","SourceGraphic"),u(S,"in2","effect1_dropShadow_2260_104293"),u(S,"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(C,T){A(C,e,T),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,d),p(c,h),p(c,v),p(c,k),p(c,_),p(c,S)},d(C){C&&P(e)}}}function up(t){let e;function i(s,l){return s[0]?ap:rp}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),A(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:q,o:q,d(s){s&&P(e),o.d(s)}}}function cp(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(),ge(this,e,cp,up,be,{isOff:0})}}function fp(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function dp(t){let e,i,n,o,s,l,r,a,c,f,d,h,v;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("defs"),l=M("filter"),r=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),h=M("feBlend"),v=M("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(d,"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(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_106627"),u(v,"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"),V(e,"reversed",t[0])},m(k,_){A(k,e,_),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,d),p(l,h),p(l,v)},p(k,[_]){_&1&&V(e,"reversed",k[0])},i:q,o:q,d(k){k&&P(e)}}}function mp(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class pp extends _e{constructor(e){super(),ge(this,e,mp,dp,be,{reversed:0},fp)}}function hp(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function bp(t){let e,i,n,o,s,l,r,a,c,f,d,h,v;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("path"),s=M("defs"),l=M("filter"),r=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),h=M("feBlend"),v=M("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(d,"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(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2340_106922"),u(v,"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"),V(e,"reversed",t[0])},m(k,_){A(k,e,_),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,d),p(l,h),p(l,v)},p(k,[_]){_&1&&V(e,"reversed",k[0])},i:q,o:q,d(k){k&&P(e)}}}function gp(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class _p extends _e{constructor(e){super(),ge(this,e,gp,bp,be,{reversed:0},hp)}}function vp(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 Jr(t){let e,i=[Xe.BACKWARD_SEEK,Xe.FORWARD_SEEK].includes(t[4]),n,o,s,l,r,a,c=[Xe.RATE_DOWN,Xe.RATE_UP].includes(t[4]),f,d=[Xe.EPISODE_PREV,Xe.EPISODE_NEXT].includes(t[4]),h,v,k,_,S,C=i&&xr(t),T=t[4]===Xe.PAUSE&&$r(),y=t[4]===Xe.PLAY&&ea(),L=t[4]===Xe.REPLAY&&ta(),le=t[4]===Xe.SUBTITLES_OFF&&ia(),Y=t[4]===Xe.SUBTITLES_ON&&na(),N=c&&oa(t),ee=d&&la(t),Q=t[4]===Xe.MUTE&&sa(),w=t[4]===Xe.VOLUME&&ra(),$=t[5]&&aa(t);return{c(){e=I("div"),C&&C.c(),n=D(),T&&T.c(),o=D(),y&&y.c(),s=D(),L&&L.c(),l=D(),le&&le.c(),r=D(),Y&&Y.c(),a=D(),N&&N.c(),f=D(),ee&&ee.c(),h=D(),Q&&Q.c(),v=D(),w&&w.c(),k=D(),$&&$.c(),_=ct(),u(e,"class","v-4ftgwp")},m(X,O){A(X,e,O),C&&C.m(e,null),p(e,n),T&&T.m(e,null),p(e,o),y&&y.m(e,null),p(e,s),L&&L.m(e,null),p(e,l),le&&le.m(e,null),p(e,r),Y&&Y.m(e,null),p(e,a),N&&N.m(e,null),p(e,f),ee&&ee.m(e,null),p(e,h),Q&&Q.m(e,null),p(e,v),w&&w.m(e,null),A(X,k,O),$&&$.m(X,O),A(X,_,O),S=!0},p(X,O){O&16&&(i=[Xe.BACKWARD_SEEK,Xe.FORWARD_SEEK].includes(X[4])),i?C?(C.p(X,O),O&16&&m(C,1)):(C=xr(X),C.c(),m(C,1),C.m(e,n)):C&&(fe(),g(C,1,1,()=>{C=null}),de()),X[4]===Xe.PAUSE?T?O&16&&m(T,1):(T=$r(),T.c(),m(T,1),T.m(e,o)):T&&(fe(),g(T,1,1,()=>{T=null}),de()),X[4]===Xe.PLAY?y?O&16&&m(y,1):(y=ea(),y.c(),m(y,1),y.m(e,s)):y&&(fe(),g(y,1,1,()=>{y=null}),de()),X[4]===Xe.REPLAY?L?O&16&&m(L,1):(L=ta(),L.c(),m(L,1),L.m(e,l)):L&&(fe(),g(L,1,1,()=>{L=null}),de()),X[4]===Xe.SUBTITLES_OFF?le?O&16&&m(le,1):(le=ia(),le.c(),m(le,1),le.m(e,r)):le&&(fe(),g(le,1,1,()=>{le=null}),de()),X[4]===Xe.SUBTITLES_ON?Y?O&16&&m(Y,1):(Y=na(),Y.c(),m(Y,1),Y.m(e,a)):Y&&(fe(),g(Y,1,1,()=>{Y=null}),de()),O&16&&(c=[Xe.RATE_DOWN,Xe.RATE_UP].includes(X[4])),c?N?(N.p(X,O),O&16&&m(N,1)):(N=oa(X),N.c(),m(N,1),N.m(e,f)):N&&(fe(),g(N,1,1,()=>{N=null}),de()),O&16&&(d=[Xe.EPISODE_PREV,Xe.EPISODE_NEXT].includes(X[4])),d?ee?(ee.p(X,O),O&16&&m(ee,1)):(ee=la(X),ee.c(),m(ee,1),ee.m(e,h)):ee&&(fe(),g(ee,1,1,()=>{ee=null}),de()),X[4]===Xe.MUTE?Q?O&16&&m(Q,1):(Q=sa(),Q.c(),m(Q,1),Q.m(e,v)):Q&&(fe(),g(Q,1,1,()=>{Q=null}),de()),X[4]===Xe.VOLUME?w?O&16&&m(w,1):(w=ra(),w.c(),m(w,1),w.m(e,null)):w&&(fe(),g(w,1,1,()=>{w=null}),de()),X[5]?$?$.p(X,O):($=aa(X),$.c(),$.m(_.parentNode,_)):$&&($.d(1),$=null)},i(X){S||(m(C),m(T),m(y),m(L),m(le),m(Y),m(N),m(ee),m(Q),m(w),S=!0)},o(X){g(C),g(T),g(y),g(L),g(le),g(Y),g(N),g(ee),g(Q),g(w),S=!1},d(X){X&&(P(e),P(k),P(_)),C&&C.d(),T&&T.d(),y&&y.d(),L&&L.d(),le&&le.d(),Y&&Y.d(),N&&N.d(),ee&&ee.d(),Q&&Q.d(),w&&w.d(),$&&$.d(X)}}}function xr(t){let e,i;return e=new sp({props:{reversed:t[4]===Xe.FORWARD_SEEK}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Xe.FORWARD_SEEK),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function $r(t){let e,i;return e=new tu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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 Vl({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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 fu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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 Cu({props:{isOff:!0}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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 pp({props:{reversed:t[4]===Xe.RATE_UP}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Xe.RATE_UP),e.$set(s)},i(n){i||(m(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 _p({props:{reversed:t[4]===Xe.EPISODE_NEXT}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Xe.EPISODE_NEXT),e.$set(s)},i(n){i||(m(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 Jo({props:{volume:0}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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 Jo({props:{volume:1}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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{c(){e=I("span"),i=Oe(t[5]),u(e,"class","hot-key-helpers-text v-4ftgwp")},m(n,o){A(n,e,o),p(e,i)},p(n,o){o&32&&xe(i,n[5])},d(n){n&&P(e)}}}function kp(t){let e,i,n=!t[1]&&t[4]&&Jr(t);return{c(){e=I("div"),n&&n.c(),u(e,"class","hot-key-helpers-container v-4ftgwp"),V(e,"hidden",t[1]),V(e,"hot-key-helpers-container--left",t[2]),V(e,"hot-key-helpers-container--right",t[3])},m(o,s){A(o,e,s),n&&n.m(e,null),i=!0},p(o,[s]){!o[1]&&o[4]?n?(n.p(o,s),s&18&&m(n,1)):(n=Jr(o),n.c(),m(n,1),n.m(e,null)):n&&(fe(),g(n,1,1,()=>{n=null}),de()),(!i||s&2)&&V(e,"hidden",o[1]),(!i||s&4)&&V(e,"hot-key-helpers-container--left",o[2]),(!i||s&8)&&V(e,"hot-key-helpers-container--right",o[3])},i(o){i||(m(n),i=!0)},o(o){g(n),i=!1},d(o){o&&P(e),n&&n.d()}}}function wp(t,e,i){let n,o=q,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,d;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===Xe.BACKWARD_SEEK),i(3,c=n?.type===Xe.FORWARD_SEEK),i(4,f=n?.type),n?.t?i(5,d=K(n.t.key,{value:n.t.value||""})):i(5,d=n?.text))},[l,r,a,c,f,d,n]}class yp extends _e{constructor(e){super(),ge(this,e,wp,kp,be,{data:0},vp)}}function Cp(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 Tp(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T;return s=new Wn({props:{direction:"up"}}),a=new Wn({props:{direction:"up"}}),h=new Wn({props:{direction:"up"}}),_=new Wn({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"),d=I("div"),U(h.$$.fragment),v=D(),k=I("div"),U(_.$$.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(d,"class","button button-left v-1yzc86r"),u(k,"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")),V(e,"m-shifted",t[0])},m(y,L){A(y,e,L),p(e,i),p(i,n),p(n,o),H(s,o,null),p(n,l),p(n,r),H(a,r,null),p(i,c),p(i,f),p(f,d),H(h,d,null),p(f,v),p(f,k),H(_,k,null),S=!0,C||(T=[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(d,"mousedown",t[4]),he(d,"mouseup",t[5]),he(d,"mouseleave",t[5]),he(k,"mousedown",t[2]),he(k,"mouseup",t[5]),he(k,"mouseleave",t[5]),he(e,"keydown",t[6]),he(e,"keyup",t[7])],C=!0)},p(y,[L]){(!S||L&1)&&V(e,"m-shifted",y[0])},i(y){S||(m(s.$$.fragment,y),m(a.$$.fragment,y),m(h.$$.fragment,y),m(_.$$.fragment,y),S=!0)},o(y){g(s.$$.fragment,y),g(a.$$.fragment,y),g(h.$$.fragment,y),g(_.$$.fragment,y),S=!1},d(y){y&&P(e),F(s),F(a),F(h),F(_),C=!1,nt(T)}}}function Sp(t,e,i){let{isShifted:n=!1}=e;const o=ht(),s=new Set([Se.ArrowUp,Se.ArrowDown,Se.ArrowLeft,Se.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),d=v=>{if(s.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case Se.ArrowUp:l();break;case Se.ArrowDown:r();break;case Se.ArrowLeft:c();break;case Se.ArrowRight:a();break}},h=v=>{s.has(v.code)&&(v.preventDefault(),v.stopPropagation(),f())};return t.$$set=v=>{"isShifted"in v&&i(0,n=v.isShifted)},[n,l,r,a,c,f,d,h]}class Tu extends _e{constructor(e){super(),ge(this,e,Sp,Tp,be,{isShifted:0},Cp)}}function Pp(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 ua(t,e,i){const n=t.slice();return n[16]=e[i].value,n}function ca(t,e,i){const n=t.slice();return n[16]=e[i].value,n[17]=e[i].timeAppeared,n}function fa(t){let e,i;function n(l,r){return l[7]&&l[8]?Ep:l[5]?Ip:Ap}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"),V(e,"mobile",t[3])},m(l,r){A(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&&V(e,"mobile",l[3])},d(l){l&&P(e),s.d()}}}function Ap(t){let e,i=Ht(t[1]),n=[];for(let o=0;o<i.length;o+=1)n[o]=da(ua(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);A(o,e,s)},p(o,s){if(s&18){i=Ht(o[1]);let l;for(l=0;l<i.length;l+=1){const r=ua(o,i,l);n[l]?n[l].p(r,s):(n[l]=da(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),vn(n,o)}}}function Ip(t){let e,i,n=Ht(t[6]),o=[];for(let s=0;s<n.length;s+=1)o[s]=pa(ca(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){A(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=Ht(s[6]);let r;for(r=0;r<n.length;r+=1){const a=ca(s,n,r);o[r]?o[r].p(a,l):(o[r]=pa(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),vn(o,s)}}}function Ep(t){let e,i,n=K("subtitles_auto_caption")+"",o;return{c(){e=I("span"),i=I("span"),o=Oe(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){A(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 da(t){let e,i,n=t[16]+"",o,s;return{c(){e=I("span"),i=I("span"),o=Oe(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){A(l,e,r),p(e,i),p(i,o),p(e,s)},p(l,r){r&2&&n!==(n=l[16]+"")&&xe(o,n),r&16&&It(i,"font-size",l[4]+"px")},d(l){l&&P(e)}}}function ma(t){let e=t[16]+"",i;return{c(){i=Oe(e)},m(n,o){A(n,i,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&xe(i,e)},d(n){n&&P(i)}}}function pa(t){let e,i=(!t[17]||t[17]<=t[2])&&ma(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),A(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?i?i.p(n,o):(i=ma(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&&fa(t);return{c(){e=I("div"),i&&i.c(),u(e,"class","subtitles-container v-ovfyp5"),V(e,"shifted",t[0]),V(e,"auto",t[5]&&!t[8])},m(n,o){A(n,e,o),i&&i.m(e,null)},p(n,[o]){n[1].length>0?i?i.p(n,o):(i=fa(n),i.c(),i.m(e,null)):i&&(i.d(1),i=null),o&1&&V(e,"shifted",n[0]),o&288&&V(e,"auto",n[5]&&!n[8])},i:q,o:q,d(n){n&&P(e),i&&i.d()}}}function Lp(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(),d=an(),h=f.state.currentSubtitle$;R(t,h,y=>i(12,n=y));const v=f.state.isAutoSubtitleCaptionVisible$;R(t,v,y=>i(8,o=y));let k,_,S,C,T;return nn(()=>{T=window.setTimeout(()=>{v.set(!1)},d.autoSubtitlesTimeout)}),Vo(()=>{window.clearTimeout(T)}),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,k=y<=d.minSubtitlesFontSize?d.minSubtitlesFontSize:y)}t.$$.dirty&2&&i(5,_=l.some(y=>y.type==="timestamp")),t.$$.dirty&2&&i(6,S=l.reduce((y,{type:L,value:le})=>(L==="timestamp"?y.push({timeAppeared:Number(le),value:""}):y.length===0?y.push({value:String(le)}):y[y.length-1].value=String(le),y),[])),t.$$.dirty&4096&&i(7,C=!!n.isAuto)},[s,l,r,c,k,_,S,C,o,h,v,a,n]}class Su extends _e{constructor(e){super(),ge(this,e,Lp,Vp,be,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},Pp)}}function Mp(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 ha(t){let e,i,n;return{c(){e=I("div"),i=Oe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Oe(t[1]),u(e,"class","text v-1o62kpz")},m(o,s){A(o,e,s),p(e,i),p(e,n)},p(o,s){s&2&&xe(n,o[1])},d(o){o&&P(e)}}}function Bp(t){let e,i,n,o,s,l,r=t[1]&&ha(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){A(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=ha(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:q,o:q,d(a){a&&P(e),r&&r.d(),s=!1,l()}}}function Np(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function s(l){to.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 Pu extends _e{constructor(e){super(),ge(this,e,Np,Bp,be,{thumbUrl:0,chromecastDeviceName:1},Mp)}}function Rp(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Dp extends _e{constructor(e){super(),ge(this,e,null,Rp,be,{})}}function Op(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 zp(t){let e,i,n;return i=new Dp({}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","container v-13zpvm8")},m(o,s){A(o,e,s),H(i,e,null),n=!0},p:q,i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}class Au extends _e{constructor(e){super(),ge(this,e,null,zp,be,{},Op)}}function Hp(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 Fp(t){let e,i,n,o,s,l,r,a,c;return s=new Vl({}),{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]||""}')`),V(e,"hidden",t[1])},m(f,d){A(f,e,d),p(e,i),p(i,n),p(i,o),H(s,i,null),r=!0,a||(c=[he(i,"keydown",t[3]),he(e,"click",ot(function(){_n(t[2])&&t[2].apply(this,arguments)}))],a=!0)},p(f,[d]){t=f,(!r||d&1&&l!==(l=`background-color: #222; background-image: url('${t[0]||""}')`))&&u(e,"style",l),(!r||d&2)&&V(e,"hidden",t[1])},i(f){r||(m(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 Up(t,e,i){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:s}=e;const r=ht().ui.startedByKeyboard$,a=c=>{const f=c.code;[Se.Enter,Se.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 Iu extends _e{constructor(e){super(),ge(this,e,Up,Fp,be,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Hp)}get handlePressKey(){return this.$$.ctx[3]}}function qp(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(
|
|
24
|
+
)}`)}function mf(i){let e;return{c(){e=T("div"),u(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function pf(i){let e,t;return e=new ff({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function hf(i){let e,t;return e=new uf({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function bf(i){let e,t;return e=new df({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function T2(i){let e,t,n,o,l,r,s,a=i[0]&&mf(i),c=i[3]&&pf(i),f=i[7]&&hf(i),p=i[4]&&bf(i);return{c(){e=T("div"),a&&a.c(),t=N(),n=T("video"),o=N(),c&&c.c(),l=N(),f&&f.c(),r=N(),p&&p.c(),_t(n,"width","100%"),_t(n,"height","100%"),n.playsInline=!0,u(e,"class","container svelte-354ajf")},m(b,v){k(b,e,v),a&&a.m(e,null),d(e,t),d(e,n),i[19](n),d(e,o),c&&c.m(e,null),d(e,l),f&&f.m(e,null),d(e,r),p&&p.m(e,null),i[20](e),s=!0},p(b,[v]){b[0]?a||(a=mf(b),a.c(),a.m(e,t)):a&&(a.d(1),a=null),b[3]?c?(c.p(b,v),v&8&&m(c,1)):(c=pf(b),c.c(),m(c,1),c.m(e,l)):c&&(ce(),h(c,1,1,()=>{c=null}),fe()),b[7]?f?v&128&&m(f,1):(f=hf(b),f.c(),m(f,1),f.m(e,r)):f&&(ce(),h(f,1,1,()=>{f=null}),fe()),b[4]?p?v&16&&m(p,1):(p=bf(b),p.c(),m(p,1),p.m(e,null)):p&&(ce(),h(p,1,1,()=>{p=null}),fe())},i(b){s||(m(c),m(f),m(p),s=!0)},o(b){h(c),h(f),h(p),s=!1},d(b){b&&y(e),a&&a.d(),i[19](null),c&&c.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function I2(i,e,t){let n,o,l,r,s,{adsSlotId:a=void 0}=e,{adsParams:c=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,b=je(),v=b.state.isEnded$;D(i,v,S=>t(7,s=S));let g=b.ui.isMobile;D(i,g,S=>t(0,o=S));let w,P,M=!1,C=b.ads.playbackState;D(i,C,S=>t(18,n=S));let I=b.ads.canSkip,E=b.ads.position;D(i,E,S=>t(5,l=S));let $=b.ads.secondsToWatchBeforeSkip;D(i,$,S=>t(6,r=S));let ee,U;gt(()=>{let S=new AbortController,G=()=>{S.abort()},Y=b.getAdmanWrapper();if(!a){Y.onAdmanLoadingError();return}let{width:J,height:X}=We(b.ui.playerSize),R=We(b.ui.isFullscreen),Z=We(b.ui.isAutoplay),B={width:J,height:X,isFullscreen:R,isAutoplay:Z,adsContainer:w,adsVideoElement:P,slotId:a,params:c,previewParam:f,duration:p};return window.AdmanHTML?(Y.initAdman(B),M=!0):Y.loadAdman(S.signal).then(()=>{Y.initAdman(B),M=!0}).catch(()=>{Y.onAdmanLoadingError()}),()=>{!M&&G()}});function re(S){me[S?"unshift":"push"](()=>{P=S,t(2,P)})}function ie(S){me[S?"unshift":"push"](()=>{w=S,t(1,w)})}return i.$$set=S=>{"adsSlotId"in S&&t(14,a=S.adsSlotId),"adsParams"in S&&t(15,c=S.adsParams),"adsPreviewParam"in S&&t(16,f=S.adsPreviewParam),"duration"in S&&t(17,p=S.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,ee=I&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,U=o&&n!=="inactive")},[o,w,P,ee,U,l,r,s,b,v,g,C,E,$,a,c,f,p,n,re,ie]}var Ls=class extends K{constructor(e){super(),W(this,e,I2,T2,q,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},P2)}},il=Ls;var pn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function E2(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),n=A("path"),u(t,"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(t,"fill","none"),u(t,"stroke","#fff"),u(t,"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,l){k(o,e,l),d(e,t),d(e,n)},d(o){o&&y(e)}}}function M2(i){let e,t,n;return{c(){e=A("svg"),t=A("rect"),n=A("path"),u(t,"width","42"),u(t,"height","20"),u(t,"rx","5"),u(t,"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,l){k(o,e,l),d(e,t),d(e,n)},d(o){o&&y(e)}}}function A2(i){let e;function t(l,r){return l[0]?M2:E2}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ye()},m(l,r){o.m(l,r),k(l,e,r)},p(l,[r]){n!==(n=t(l,r))&&(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:L,o:L,d(l){l&&y(e),o.d(l)}}}function V2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Bs=class extends K{constructor(e){super(),W(this,e,V2,A2,q,{isActive:0})}},nl=Bs;function L2(i){ve(i,"svelte-7pnl2h",".thumb-timer.svelte-7pnl2h.svelte-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.svelte-7pnl2h.svelte-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-7pnl2h.svelte-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.svelte-7pnl2h.svelte-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-7pnl2h .thumb-timer-equalizer.svelte-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-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.svelte-7pnl2h .thumb-timer-equalizer .col.svelte-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(1){left:0;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(2){left:3px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(3){left:6px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col3}@keyframes svelte-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 svelte-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 svelte-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.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;text-align:right}")}function B2(i){let e=pn(i[4]-i[3])+"",t;return{c(){t=Se(e)},m(n,o){k(n,t,o)},p(n,o){o&24&&e!==(e=pn(n[4]-n[3])+"")&&Fe(t,e)},i:L,o:L,d(n){n&&y(t)}}}function R2(i){let e,t,n;return t=new nl({props:{isActive:!0}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p:L,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function N2(i){let e,t,n,o,l,r,s,a=[R2,B2],c=[];function f(p,b){return p[1]?0:1}return l=f(i,-1),r=c[l]=a[l](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=N(),o=T("span"),r.c(),u(t,"class","thumb-timer-equalizer svelte-7pnl2h"),u(o,"class","thumb-timer-text svelte-7pnl2h"),u(e,"role","timer"),u(e,"class","thumb-timer svelte-7pnl2h"),u(e,"data-testid","thumb-timer"),V(e,"live",i[1]),V(e,"hidden",i[0]),V(e,"playing",i[2])},m(p,b){k(p,e,b),d(e,t),d(e,n),d(e,o),c[l].m(o,null),s=!0},p(p,[b]){let v=l;l=f(p,b),l===v?c[l].p(p,b):(ce(),h(c[v],1,1,()=>{c[v]=null}),fe(),r=c[l],r?r.p(p,b):(r=c[l]=a[l](p),r.c()),m(r,1),r.m(o,null)),(!s||b&2)&&V(e,"live",p[1]),(!s||b&1)&&V(e,"hidden",p[0]),(!s||b&4)&&V(e,"playing",p[2])},i(p){s||(m(r),s=!0)},o(p){h(r),s=!1},d(p){p&&y(e),c[l].d()}}}function D2(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:s}=e;return i.$$set=a=>{"isHidden"in a&&t(0,n=a.isHidden),"isLive"in a&&t(1,o=a.isLive),"isPlaying"in a&&t(2,l=a.isPlaying),"position"in a&&t(3,r=a.position),"duration"in a&&t(4,s=a.duration)},[n,o,l,r,s]}var Rs=class extends K{constructor(e){super(),W(this,e,D2,N2,q,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},L2)}},ol=Rs;var _r=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var Ns=require("@vkontakte/videoplayer-core");var Io=i=>{i.stopPropagation(),i.preventDefault()},F2=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},H2=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},z2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},U2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},_f=i=>i.code==="Escape",q2=i=>i.code==="ArrowLeft",gf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},vf=i=>{if(z2(i)){Io(i),H2(i.target);return}U2(i)&&(Io(i),F2(i.target))},xo=i=>i?.detail===0,Qo=async(i,e,t)=>{await vn(),i&&!i.classList.contains("opened")&&!e&&We(t)&&(await vn(),t.set(!1),i.focus())},yf=async(i,e,t)=>{await vn(),i&&!e&&We(t)&&(t.set(!1),i.focus())},Eo=async(i,e,t)=>{await vn(),!!i&&e&&t&&(await vn(),i.firstChild.focus())},gr=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},rl=(i,e)=>{vf(i),_f(i)&&(Io(i),e())},vr=async(i,e,t)=>{gf(i,!1)&&(Io(i),e(),await vn(),t()?.focus())},yr=async(i,e,t,n)=>{if(vf(i),q2(i)){Io(i),e(),t.set(!0);return}_f(i)&&(Io(i),n())},qi=(i,e)=>{gf(i)&&(Io(i),e())},kf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},wf=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var kr=require("@vkontakte/videoplayer-shared");function K2(i){ve(i,"svelte-1vzqlps","ul.svelte-1vzqlps{position:absolute;border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.svelte-1vzqlps{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}li.svelte-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function Cf(i){let e,t,n,o,l,r,s,a,c,f=(i[10].features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug"))+"",p,b,v,g,w=z("menu_debug_overlay")+"",P,M,C,I,E=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&W2(i),$=i[12]&&i[6]!==Ns.ChromecastState.CONNECTED&&!i[17]&&Pf(i);function ee(G,Y){return G[4]?j2:Z2}let U=ee(i,[-1,-1]),re=U(i),ie=i[10].features.videoRotate&&!i[17]&&G2(i),S=i[10].showSupport&&!i[7]&&Tf(i);return{c(){e=T("ul"),E&&E.c(),t=N(),$&&$.c(),n=N(),o=T("li"),re.c(),r=N(),ie&&ie.c(),s=N(),S&&S.c(),a=N(),c=T("li"),p=Se(f),v=N(),g=T("li"),P=Se(w),u(o,"tabindex","0"),u(o,"role","menuitem"),u(o,"aria-label",l=z("aria_label_menu_loop")),u(o,"class","svelte-1vzqlps"),u(c,"tabindex","0"),u(c,"role","menuitem"),u(c,"aria-label",b=i[10].features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),u(c,"class","svelte-1vzqlps"),u(g,"tabindex","0"),u(g,"role","menuitem"),u(g,"aria-label",M=i[8]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable")),u(g,"class","svelte-1vzqlps"),u(e,"role","menu"),_t(e,"top",i[3]+"px"),_t(e,"left",i[2]+"px"),u(e,"class","svelte-1vzqlps")},m(G,Y){k(G,e,Y),E&&E.m(e,null),d(e,t),$&&$.m(e,null),d(e,n),d(e,o),re.m(o,null),d(e,r),ie&&ie.m(e,null),d(e,s),S&&S.m(e,null),d(e,a),d(e,c),d(c,p),d(e,v),d(e,g),d(g,P),i[42](e),C||(I=[de(o,"click",Je(i[24])),de(o,"keydown",i[30]),de(c,"click",Je(i[21])),de(c,"keydown",i[32]),de(g,"click",Je(i[22])),de(g,"keydown",i[33]),de(e,"contextmenu",bt(i[39])),de(e,"keydown",i[26])],C=!0)},p(G,Y){G[10].features.copyVideoLink&&G[9].callbacks?.onCopyVideoLink&&E.p(G,Y),G[12]&&G[6]!==Ns.ChromecastState.CONNECTED&&!G[17]?$?$.p(G,Y):($=Pf(G),$.c(),$.m(e,n)):$&&($.d(1),$=null),U===(U=ee(G,Y))&&re?re.p(G,Y):(re.d(1),re=U(G),re&&(re.c(),re.m(o,null))),G[10].features.videoRotate&&!G[17]&&ie.p(G,Y),G[10].showSupport&&!G[7]?S?S.p(G,Y):(S=Tf(G),S.c(),S.m(e,a)):S&&(S.d(1),S=null),Y[0]&256&&M!==(M=G[8]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"))&&u(g,"aria-label",M),Y[0]&8&&_t(e,"top",G[3]+"px"),Y[0]&4&&_t(e,"left",G[2]+"px")},d(G){G&&y(e),E&&E.d(),$&&$.d(),re.d(),ie&&ie.d(),S&&S.d(),i[42](null),C=!1,xe(I)}}}function W2(i){let e,t=z("menu_copy_video_link")+"",n,o,l,r,s,a,c=!i[5]&&!i[17]&&Sf(i);return{c(){e=T("li"),n=Se(t),l=N(),c&&c.c(),r=Ye(),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",o=z("menu_copy_video_link")),u(e,"class","svelte-1vzqlps")},m(f,p){k(f,e,p),d(e,n),k(f,l,p),c&&c.m(f,p),k(f,r,p),s||(a=[de(e,"click",Je(i[40])),de(e,"keydown",i[27])],s=!0)},p(f,p){!f[5]&&!f[17]?c?c.p(f,p):(c=Sf(f),c.c(),c.m(r.parentNode,r)):c&&(c.d(1),c=null)},d(f){f&&(y(e),y(l),y(r)),c&&c.d(f),s=!1,xe(a)}}}function Sf(i){let e,t=z("menu_copy_video_link_with_timestamp")+"",n,o,l,r;return{c(){e=T("li"),n=Se(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",o=z("menu_copy_video_link_with_timestamp")),u(e,"class","svelte-1vzqlps")},m(s,a){k(s,e,a),d(e,n),l||(r=[de(e,"click",Je(i[41])),de(e,"keydown",i[28])],l=!0)},p:L,d(s){s&&y(e),l=!1,xe(r)}}}function Pf(i){let e,t=z("menu_pip")+"",n,o,l,r;return{c(){e=T("li"),n=Se(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",o=z("menu_pip")),u(e,"class","svelte-1vzqlps")},m(s,a){k(s,e,a),d(e,n),l||(r=[de(e,"click",Je(i[23])),de(e,"keydown",i[29])],l=!0)},p:L,d(s){s&&y(e),l=!1,xe(r)}}}function Z2(i){let e=z("menu_video_loop_on")+"",t;return{c(){t=Se(e)},m(n,o){k(n,t,o)},p:L,d(n){n&&y(t)}}}function j2(i){let e=z("menu_video_loop_off")+"",t;return{c(){t=Se(e)},m(n,o){k(n,t,o)},p:L,d(n){n&&y(t)}}}function G2(i){let e,t=z("menu_video_rotate")+"",n,o,l,r;return{c(){e=T("li"),n=Se(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",o=z("aria_label_menu_rotate")),u(e,"class","svelte-1vzqlps")},m(s,a){k(s,e,a),d(e,n),l||(r=[de(e,"click",Je(i[19])),de(e,"keydown",i[30])],l=!0)},p:L,d(s){s&&y(e),l=!1,xe(r)}}}function Tf(i){let e,t=z("menu_report")+"",n,o,l,r;return{c(){e=T("li"),n=Se(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",o=`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`),u(e,"class","svelte-1vzqlps")},m(s,a){k(s,e,a),d(e,n),l||(r=[de(e,"click",Je(i[20])),de(e,"keydown",i[31])],l=!0)},p:L,d(s){s&&y(e),l=!1,xe(r)}}}function x2(i){let e,t=i[1]&&Cf(i);return{c(){t&&t.c(),e=Ye()},m(n,o){t&&t.m(n,o),k(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Cf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:L,o:L,d(n){n&&y(e),t&&t.d(n)}}}function Q2(i,e,t){let n,o,l,r,s,a,{visible:c=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:b=void 0}=e,{controlsContainerRef:v=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:w}=e,P=0,M=0,C=je(),I=Ct(),E=C.ui.contextMenu.visible$,$=C.ui.debugPanelVisible;D(i,$,le=>t(8,a=le));let ee=C.webApi.pictureInPictureApi,U=C.webApi.pictureInPictureApi?.info.isActive$;D(i,U,le=>t(7,s=le));let re=C.state.chromecastState$;D(i,re,le=>t(6,r=le));let ie=C.state.isLive$;D(i,ie,le=>t(5,l=le));let S=C.state.positionExact$;D(i,S,le=>t(43,n=le));let G=C.state.isInteractive,Y=C.state.looped$;D(i,Y,le=>t(4,o=le));let J=()=>{E.set(!1)},X=(le,oe)=>{if(!g||!b||!v)return;let ye=g.getBoundingClientRect(),ue=b.getBoundingClientRect();t(2,P=le-ue.left),t(3,M=oe-ue.top),P+ye.width>ue.width&&t(2,P=ue.width-ye.width),M+ye.height>ue.height&&t(3,M=ue.height-ye.height),t(2,P=Math.max(P,0)),t(3,M=Math.max(M,0))},R=()=>{J(),C.actions.internal.videoRotate()},Z=()=>{window.open(f,"_blank"),J(),C.actions.internal.pause()},B=()=>{let le=C.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let oe=new Blob([...le],{type:"plain/text"}),ye=window.URL.createObjectURL(oe);Wr(ye,"vk_player_debug_info","txt")}else _r(C.actions.internal.getDebugTextData());J(),w?.()},j=()=>{$.set(!0),J(),w?.()},Ie=async()=>{try{ee?.isActive()?await ee?.remove():await ee?.request()}finally{J(),w?.()}},De=()=>{C.actions.internal.setLooped(!o),J()},Le=(le=!1)=>{if(C.callbacks?.onCopyVideoLink){let oe=C.callbacks?.onCopyVideoLink(le,n);oe&&_r(oe)}J()},qe=le=>{rl(le,J)},Te=le=>{qi(le,()=>Le())},he=le=>{qi(le,()=>Le(!0))},Q=le=>{qi(le,()=>Ie())},_e=le=>{qi(le,()=>R())},Ae=le=>{qi(le,()=>Z())},He=le=>{qi(le,()=>B())},Ge=le=>{qi(le,()=>j())};function be(le){mn.call(this,i,le)}let Ce=()=>Le(),Be=()=>Le(!0);function Ze(le){me[le?"unshift":"push"](()=>{g=le,t(0,g)})}return i.$$set=le=>{"visible"in le&&t(1,c=le.visible),"supportLink"in le&&t(34,f=le.supportLink),"position"in le&&t(35,p=le.position),"playerContainerRef"in le&&t(36,b=le.playerContainerRef),"controlsContainerRef"in le&&t(37,v=le.controlsContainerRef),"menuElementRef"in le&&t(0,g=le.menuElementRef),"returnFocus"in le&&t(38,w=le.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(g&&b&&v){let{top:le,left:oe,bottom:ye,right:ue}=p,ke=oe??0,ze=le??0,$e=g.getBoundingClientRect();(0,kr.isNullable)(oe)&&!(0,kr.isNullable)(ue)&&(ke=ue-$e.width),(0,kr.isNullable)(le)&&!(0,kr.isNullable)(ye)&&(ze=ye-$e.height),ke=Math.max(ke,0),ze=Math.max(ze,0),X(ke,ze)}}},[g,c,P,M,o,l,r,s,a,C,I,$,ee,U,re,ie,S,G,Y,R,Z,B,j,Ie,De,Le,qe,Te,he,Q,_e,Ae,He,Ge,f,p,b,v,w,be,Ce,Be,Ze]}var Ds=class extends K{constructor(e){super(),W(this,e,Q2,x2,q,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},K2,[-1,-1])}},If=Ds;var ll=class{constructor(e){this.value=e,this.next=null}};var Yo=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new ll(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function Y2(i){ve(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function X2(i){let e,t;return{c(){e=T("div"),t=T("canvas"),u(t,"class","svelte-1ssl9eb"),u(e,"class","container svelte-1ssl9eb")},m(n,o){k(n,e,o),d(e,t),i[3](t)},p:L,i:L,o:L,d(n){n&&y(e),i[3](null)}}}var Os=16,Fs=120,Ef=60;function J2(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function $2(i,e,t){let{values:n=[]}=e,o,l,r=Fs/Ef;gt(()=>{t(0,o.width=Fs,o),t(0,o.height=Os,o),t(2,l=o.getContext("2d"))});function s(a){me[a?"unshift":"push"](()=>{o=a,t(0,o)})}return i.$$set=a=>{"values"in a&&t(1,n=a.values)},i.$$.update=()=>{if(i.$$.dirty&6)e:{let a="";if(l){let c=n[0];for(let p=1;p<n.length;p++)n[p]>c&&(c=n[p]);l.clearRect(0,0,Fs,Os);let f=Ef-1;for(let p=n.length-1;p>=0;p--){let b=f*r,v=c>0?Os*(n[p]/c):0;J2(l,b,0,r,v),a=v+" "+a,f--}}}},[o,n,l,s]}var Hs=class extends K{constructor(e){super(),W(this,e,$2,X2,q,{values:1},Y2)}},sl=Hs;var zs=require("@vkontakte/videoplayer-shared");function eh(i){ve(i,"svelte-1fypj5i",".container.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{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.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{top:16px;left:16px}button.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{padding:5px}.content.svelte-1fypj5i>div.svelte-1fypj5i>div.svelte-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function Mf(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=N(),o=T("span"),r=Se(l),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].id+"")&&Fe(r,l)},d(s){s&&y(e)}}}function Af(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=N(),o=T("span"),r=Se(l),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].provider+"")&&Fe(r,l)},d(s){s&&y(e)}}}function Vf(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=N(),o=T("span"),r=Se(l),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].viewport+"")&&Fe(r,l)},d(s){s&&y(e)}}}function Lf(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=N(),o=T("span"),r=Se(l),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].videoSize+"")&&Fe(r,l)},d(s){s&&y(e)}}}function Bf(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=N(),o=T("span"),r=Se(l),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].cdn+"")&&Fe(r,l)},d(s){s&&y(e)}}}function Rf(i){let e,t,n,o,l=i[0].volume+"",r,s;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=N(),o=T("span"),r=Se(l),s=Se(" %"),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(a,c){k(a,e,c),d(e,t),d(e,n),d(e,o),d(o,r),d(o,s)},p(a,c){c&1&&l!==(l=a[0].volume+"")&&Fe(r,l)},d(a){a&&y(e)}}}function Nf(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,s;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=N(),o=T("span"),r=Se(l),s=Se(" s"),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(a,c){k(a,e,c),d(e,t),d(e,n),d(e,o),d(o,r),d(o,s)},p(a,c){c&1&&l!==(l=a[0].buffer.toFixed(2)+"")&&Fe(r,l)},d(a){a&&y(e)}}}function Df(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(Hf).map(zf).join(" / ")+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=N(),o=T("span"),r=Se(l),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=[{value:s[0].currentVideoSegmentLength,title:"Video"},{value:s[0].currentAudioSegmentLength,title:"Audio"}].filter(Hf).map(zf).join(" / ")+"")&&Fe(r,l)},d(s){s&&y(e)}}}function Of(i){let e,t,n,o,l,r,s=i[0].speed.toFixed(2)+"",a,c,f;return o=new sl({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=N(),H(o.$$.fragment),l=N(),r=T("span"),a=Se(s),c=Se(" Kbps"),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(p,b){k(p,e,b),d(e,t),d(e,n),O(o,e,null),d(e,l),d(e,r),d(r,a),d(r,c),f=!0},p(p,b){let v={};b&32&&(v.values=p[5]),o.$set(v),(!f||b&1)&&s!==(s=p[0].speed.toFixed(2)+"")&&Fe(a,s)},i(p){f||(m(o.$$.fragment,p),f=!0)},o(p){h(o.$$.fragment,p),f=!1},d(p){p&&y(e),F(o)}}}function Ff(i){let e,t,n,o,l,r,s=i[0].bitrate.toFixed(2)+"",a,c,f;return o=new sl({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=N(),H(o.$$.fragment),l=N(),r=T("span"),a=Se(s),c=Se(" Kbps"),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(p,b){k(p,e,b),d(e,t),d(e,n),O(o,e,null),d(e,l),d(e,r),d(r,a),d(r,c),f=!0},p(p,b){let v={};b&64&&(v.values=p[6]),o.$set(v),(!f||b&1)&&s!==(s=p[0].bitrate.toFixed(2)+"")&&Fe(a,s)},i(p){f||(m(o.$$.fragment,p),f=!0)},o(p){h(o.$$.fragment,p),f=!1},d(p){p&&y(e),F(o)}}}function th(i){let e,t,n,o,l,r,s,a,c=i[0].version+"",f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,G,Y,J,X,R,Z,B,j,Ie,De,Le,qe,Te,he,Q,_e=i[0].id&&Mf(i),Ae=i[0].provider&&Af(i),He=i[0].viewport&&Vf(i),Ge=i[0].videoSize&&Lf(i),be=i[0].cdn&&Bf(i),Ce=i[0].volume&&Rf(i),Be=i[0].buffer&&Nf(i),Ze=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&Df(i),le=i[0].speed&&Of(i),oe=i[0].bitrate&&Ff(i);return j=new sl({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=N(),o=T("div"),l=T("div"),r=T("div"),r.textContent="Version",s=N(),a=T("span"),f=Se(c),p=N(),_e&&_e.c(),b=N(),Ae&&Ae.c(),v=N(),He&&He.c(),g=N(),Ge&&Ge.c(),w=N(),be&&be.c(),P=N(),Ce&&Ce.c(),M=N(),Be&&Be.c(),C=N(),Ze&&Ze.c(),I=N(),E=T("div"),$=T("div"),$.textContent="Dropped",ee=N(),U=T("span"),re=Se(i[2]),ie=Se(" / "),S=Se(i[1]),G=Se(" frames"),Y=N(),le&&le.c(),J=N(),oe&&oe.c(),X=N(),R=T("div"),Z=T("div"),Z.textContent="FPS",B=N(),H(j.$$.fragment),Ie=N(),De=T("span"),Le=Se(i[3]),u(t,"class","close svelte-1fypj5i"),u(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(r,"class","svelte-1fypj5i"),u(l,"class","svelte-1fypj5i"),u($,"class","svelte-1fypj5i"),u(E,"class","svelte-1fypj5i"),u(Z,"class","svelte-1fypj5i"),u(R,"class","svelte-1fypj5i"),u(o,"class","content svelte-1fypj5i"),u(e,"class","container svelte-1fypj5i"),u(e,"role","region"),u(e,"aria-label",qe=z("aria_label_debug_panel")),V(e,"container-mobile",i[7])},m(ye,ue){k(ye,e,ue),d(e,t),d(e,n),d(e,o),d(o,l),d(l,r),d(l,s),d(l,a),d(a,f),d(o,p),_e&&_e.m(o,null),d(o,b),Ae&&Ae.m(o,null),d(o,v),He&&He.m(o,null),d(o,g),Ge&&Ge.m(o,null),d(o,w),be&&be.m(o,null),d(o,P),Ce&&Ce.m(o,null),d(o,M),Be&&Be.m(o,null),d(o,C),Ze&&Ze.m(o,null),d(o,I),d(o,E),d(E,$),d(E,ee),d(E,U),d(U,re),d(U,ie),d(U,S),d(U,G),d(o,Y),le&&le.m(o,null),d(o,J),oe&&oe.m(o,null),d(o,X),d(o,R),d(R,Z),d(R,B),O(j,R,null),d(R,Ie),d(R,De),d(De,Le),Te=!0,he||(Q=de(t,"click",Je(i[9])),he=!0)},p(ye,[ue]){(!Te||ue&1)&&c!==(c=ye[0].version+"")&&Fe(f,c),ye[0].id?_e?_e.p(ye,ue):(_e=Mf(ye),_e.c(),_e.m(o,b)):_e&&(_e.d(1),_e=null),ye[0].provider?Ae?Ae.p(ye,ue):(Ae=Af(ye),Ae.c(),Ae.m(o,v)):Ae&&(Ae.d(1),Ae=null),ye[0].viewport?He?He.p(ye,ue):(He=Vf(ye),He.c(),He.m(o,g)):He&&(He.d(1),He=null),ye[0].videoSize?Ge?Ge.p(ye,ue):(Ge=Lf(ye),Ge.c(),Ge.m(o,w)):Ge&&(Ge.d(1),Ge=null),ye[0].cdn?be?be.p(ye,ue):(be=Bf(ye),be.c(),be.m(o,P)):be&&(be.d(1),be=null),ye[0].volume?Ce?Ce.p(ye,ue):(Ce=Rf(ye),Ce.c(),Ce.m(o,M)):Ce&&(Ce.d(1),Ce=null),ye[0].buffer?Be?Be.p(ye,ue):(Be=Nf(ye),Be.c(),Be.m(o,C)):Be&&(Be.d(1),Be=null),ye[0].currentVideoSegmentLength||ye[0].currentAudioSegmentLength?Ze?Ze.p(ye,ue):(Ze=Df(ye),Ze.c(),Ze.m(o,I)):Ze&&(Ze.d(1),Ze=null),(!Te||ue&4)&&Fe(re,ye[2]),(!Te||ue&2)&&Fe(S,ye[1]),ye[0].speed?le?(le.p(ye,ue),ue&1&&m(le,1)):(le=Of(ye),le.c(),m(le,1),le.m(o,J)):le&&(ce(),h(le,1,1,()=>{le=null}),fe()),ye[0].bitrate?oe?(oe.p(ye,ue),ue&1&&m(oe,1)):(oe=Ff(ye),oe.c(),m(oe,1),oe.m(o,X)):oe&&(ce(),h(oe,1,1,()=>{oe=null}),fe());let ke={};ue&16&&(ke.values=ye[4]),j.$set(ke),(!Te||ue&8)&&Fe(Le,ye[3]),(!Te||ue&128)&&V(e,"container-mobile",ye[7])},i(ye){Te||(m(le),m(oe),m(j.$$.fragment,ye),Te=!0)},o(ye){h(le),h(oe),h(j.$$.fragment,ye),Te=!1},d(ye){ye&&y(e),_e&&_e.d(),Ae&&Ae.d(),He&&He.d(),Ge&&Ge.d(),be&&be.d(),Ce&&Ce.d(),Be&&Be.d(),Ze&&Ze.d(),le&&le.d(),oe&&oe.d(),F(j),he=!1,Q()}}}var Hf=({value:i})=>i,zf=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function ih(i,e,t){let n,o=je(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;D(i,r,I=>t(7,n=I));let s=()=>{zs.safeStorage.remove(pr),l.set(!1)},a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,p=0,b=0,v=new Yo(60),g=new Yo(60),w=new Yo(60),P=[],M=[],C=[];return gt(()=>{zs.safeStorage.set(pr,"true"),o.actions.internal.startLogging(),c&&(t(2,p=c.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=c.getVideoPlaybackQuality().totalVideoFrames));let I=window.setInterval(()=>{t(0,a=o.actions.internal.getDebugPanelData())},500),E;return c&&(E=window.setInterval(()=>{if(c){t(2,p=c.getVideoPlaybackQuality().droppedVideoFrames);let $=c.getVideoPlaybackQuality().totalVideoFrames;t(3,b=$-f),t(1,f=$),v.push(b),a.speed&&g.push(a.speed),a.bitrate&&w.push(a.bitrate),t(4,P=v.getValuesFromBottom()),t(5,M=g.getValuesFromBottom()),t(6,C=w.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(I),E&&clearInterval(E)}}),[a,f,p,b,P,M,C,n,r,s]}var Us=class extends K{constructor(e){super(),W(this,e,ih,th,q,{},eh)}},al=Us;function nh(i){ve(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function oh(i){let e,t,n;return{c(){e=T("div"),u(e,"class","close svelte-1ome55p")},m(o,l){k(o,e,l),t||(n=de(e,"click",Je(i[0])),t=!0)},p:L,i:L,o:L,d(o){o&&y(e),t=!1,n()}}}function rh(i){function e(t){mn.call(this,i,t)}return[e]}var qs=class extends K{constructor(e){super(),W(this,e,rh,oh,q,{},nh)}},Uf=qs;var qf=require("@vkontakte/videoplayer-shared");function lh(i){ve(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
|
|
25
|
+
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function sh(i){let e,t,n,o,l,r,s;return{c(){e=T("div"),t=T("canvas"),n=N(),o=A("svg"),l=A("g"),r=A("g"),s=A("path"),u(t,"class","timer-canvas svelte-8jhsry"),u(t,"width","100"),u(t,"height","100"),u(s,"class","_play"),u(s,"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(s,"fill","#fff"),u(r,"fill-rule","nonzero"),u(l,"fill","none"),u(l,"fill-rule","evenodd"),u(o,"class","timer-play-icon svelte-8jhsry"),u(o,"viewBox","0 0 24 24"),u(o,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","timer svelte-8jhsry")},m(a,c){k(a,e,c),d(e,t),i[2](t),d(e,n),d(e,o),d(o,l),d(l,r),d(r,s)},p:L,i:L,o:L,d(a){a&&y(e),i[2](null)}}}var ah=5e3;function uh(i,e,t){let{onTimerEnded:n=qf.noop}=e,o;gt(()=>{let r,s=o.getContext("2d");if(!s)return;s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff";let a=Date.now(),c=()=>{let f=(Date.now()-a)/ah;f<1?(s.clearRect(0,0,100,100),s.beginPath(),s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),s.stroke(),r=requestAnimationFrame(c)):n()};return r=requestAnimationFrame(c),()=>{cancelAnimationFrame(r)}});function l(r){me[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Ks=class extends K{constructor(e){super(),W(this,e,uh,sh,q,{onTimerEnded:1},lh)}},Kf=Ks;function ch(i){ve(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Wf(i){let e,t;return e=new Kf({props:{onTimerEnded:i[2]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function fh(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$;s=new Uf({}),s.$on("click",i[4]);let ee=i[3]&&Wf(i);return{c(){e=T("div"),t=N(),n=T("div"),o=T("div"),l=T("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=N(),H(s.$$.fragment),a=N(),c=T("div"),f=T("div"),p=T("div"),b=T("div"),v=N(),ee&&ee.c(),w=N(),P=T("div"),M=T("div"),C=Se(i[0]),u(e,"class","overlay svelte-kisfwc"),u(l,"class","caption svelte-kisfwc"),u(o,"class","top svelte-kisfwc"),u(b,"class","thumb-overlay svelte-kisfwc"),u(p,"class","thumb svelte-kisfwc"),u(p,"style",g=`background-image: url('${i[1]}')`),u(f,"class","column svelte-kisfwc"),u(M,"class","title svelte-kisfwc"),u(P,"class","column svelte-kisfwc"),u(c,"class","row svelte-kisfwc"),u(n,"class","next-video svelte-kisfwc")},m(U,re){k(U,e,re),k(U,t,re),k(U,n,re),d(n,o),d(o,l),d(o,r),O(s,o,null),d(n,a),d(n,c),d(c,f),d(f,p),d(p,b),d(p,v),ee&&ee.m(p,null),d(c,w),d(c,P),d(P,M),d(M,C),I=!0,E||($=de(c,"click",function(){di(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(U,[re]){i=U,i[3]?ee?(ee.p(i,re),re&8&&m(ee,1)):(ee=Wf(i),ee.c(),m(ee,1),ee.m(p,null)):ee&&(ce(),h(ee,1,1,()=>{ee=null}),fe()),(!I||re&2&&g!==(g=`background-image: url('${i[1]}')`))&&u(p,"style",g),(!I||re&1)&&Fe(C,i[0])},i(U){I||(m(s.$$.fragment,U),m(ee),I=!0)},o(U){h(s.$$.fragment,U),h(ee),I=!1},d(U){U&&(y(e),y(t),y(n)),F(s),ee&&ee.d(),E=!1,$()}}}function dh(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,s=()=>t(3,r=!1);return i.$$set=a=>{"title"in a&&t(0,n=a.title),"thumb"in a&&t(1,o=a.thumb),"playNextVideo"in a&&t(2,l=a.playNextVideo)},[n,o,l,r,s]}var Ws=class extends K{constructor(e){super(),W(this,e,dh,fh,q,{title:0,thumb:1,playNextVideo:2},ch)}},Zf=Ws;var ro=require("@vkontakte/videoplayer-core"),jf=require("@vkontakte/videoplayer-shared"),rn=require("@vkontakte/videoplayer-statistics");var Zs=(i,e)=>Math.min(+(i+e).toFixed(2),1),js=(i,e)=>Math.max(+(i-e).toFixed(2),0),ul=(i,e,t)=>{let n=Zs(e,t);e<1&&i.actions.internal.setVolume(n)},cl=(i,e,t)=>{let n=js(e,t);e>0&&i.actions.internal.setVolume(n)};var oo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function ph(i){ve(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function hh(i){let e,t,n,o,l,r=i[26].default,s=Fi(r,i,i[25],null);return{c(){e=T("div"),s&&s.c(),u(e,"class","keyboard-controls svelte-10kkmxz"),u(e,"tabindex","-1"),u(e,"role","region"),u(e,"aria-label",t=z("aria_label_video_player"))},m(a,c){k(a,e,c),s&&s.m(e,null),i[27](e),n=!0,o||(l=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(a,c){s&&s.p&&(!n||c[0]&33554432)&&zi(s,r,a,a[25],n?Hi(r,a[25],c,null):Ui(a[25]),null)},i(a){n||(m(s,a),n=!0)},o(a){h(s,a),n=!1},d(a){a&&y(e),s&&s.d(a),i[27](null),o=!1,xe(l)}}}function bh(i,e,t){let n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,{$$slots:C={},$$scope:I}=e,{isAds:E}=e,{hideContextMenu:$}=e,{toggleFullscreen:ee}=e,{showHotKeyHelpers:U}=e,{showKeyMap:re}=e,{fakePlayButtonHandler:ie}=e,S=je(),G=Ct(),Y=S.getLogger().createComponentLog("KeyboardControls component"),J=S.state.playbackState$;D(i,J,ge=>t(31,o=ge));let X=S.ads.playbackState;D(i,X,ge=>t(30,n=ge));let R=S.state.positionExact$;D(i,R,ge=>t(41,g=ge));let Z=S.state.duration$;D(i,Z,ge=>t(40,v=ge));let B=S.state.volume$;D(i,B,ge=>t(44,M=ge));let j=S.ui.controls.disabledControls$;D(i,j,ge=>t(39,b=ge));let Ie=S.state.muted$;D(i,Ie,ge=>t(34,s=ge));let De=S.state.currentSubtitle$;D(i,De,ge=>t(33,r=ge));let Le=S.state.currentPlaybackRate$;D(i,Le,ge=>t(42,w=ge));let qe=S.state.availablePlaybackRates$;D(i,qe,ge=>t(43,P=ge));let Te=S.ui.contextMenu.openedByHotKey$,he=S.ui.contextMenu.lastActiveElem$,Q=S.ui.contextMenu.visible$,_e=S.ui.contextMenu.position$,Ae=S.state.isEnded$;D(i,Ae,ge=>t(36,c=ge));let He=S.ui.overlayContainer$;D(i,He,ge=>t(32,l=ge));let Ge=S.callbacks?.onAudioDoesNotExistHint,be=S.callbacks?.onAudioDisabledHint,Ce=S.state.isAudioAvailable$;D(i,Ce,ge=>t(35,a=ge));let Be=S.state.isAudioDisabled,Ze=S.state.isInteractiveTime$;D(i,Ze,ge=>t(38,p=ge));let{showInteractiveTimeIndicatorTooltip$:le}=kn();D(i,le,ge=>t(37,f=ge));let oe=0,ye=!0,ue,ke=()=>ue?.focus(),ze=ge=>(ge!==ye&&(ye=ge,oe=0),oe+=1,(G.controls.seekStepKeyboard+G.controls.seekStepKeyboard*oe)/1e3),$e=ge=>{let Ke=ge.target,lt=Ke?.getAttribute("role")?.includes("menuitem"),ut=Ke.classList.contains("btn"),pt=ge.code;if(ut&&pt==="Space")return;let St=Lc.has(pt);if(lt&&St)return;let Re=!Vc.has(pt);if(ge.ctrlKey&&Re||ge.altKey&&Re||ge.metaKey)return;let zt=lt&&pt==="Escape";Bc.has(pt)||zt||$();let At=o===ro.PlaybackState.PLAYING||o===ro.PlaybackState.PAUSED,pe=E&&(n==="paused"||n==="playing"),wt=!pe&&!b.has("TIMELINE");if(At||pe)switch(Y({message:`key down, code: ${pt}`}),pt){case"KeyJ":case"ArrowLeft":{if(!wt)break;if(ge.ctrlKey||ge.altKey){let Oe=S.actions.internal.getPrevEpisode();S.actions.internal.seekToPrevEpisode(Oe),Oe&&U({type:"EPISODE_PREV",text:Oe.text}),ge.preventDefault()}else{let Oe=ge.shiftKey?ze(!1):G.controls.seekStepKeyboard/1e3,ot=Math.max(g-Oe,0);g>0&&(S.actions.internal.seekTime(ot,rn.SeekAction.DOUBLE_TAP),U({type:"BACKWARD_SEEK",text:Oe.toString()}),ge.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!wt)break;if(ge.ctrlKey||ge.altKey){let Oe=S.actions.internal.getNextEpisode();S.actions.internal.seekToNextEpisode(Oe),Oe&&U({type:"EPISODE_NEXT",text:Oe.text}),ge.preventDefault()}else{let Oe=ge.shiftKey?ze(!0):G.controls.seekStepKeyboard/1e3,ot=Math.min(g+Oe,v);Math.round(g)<Math.round(v)&&(S.actions.internal.seekTime(ot,rn.SeekAction.DOUBLE_TAP),U({type:"FORWARD_SEEK",text:Oe.toString()}),ge.preventDefault())}break}case"ArrowUp":{if(oo({isAudioDisabled:Be,audioDisabledHintCallback:be,isAudioAvailable:a,audioIsNotExistHintCallback:Ge})){let Oe=M,ot=G.controls.volumeStepKeyboard,st=Oe<=1;if(ul(S,Oe,ot),st){let ct=Math.round(Zs(Oe,ot)*100).toString();U({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ct}})}}ge.preventDefault();break}case"ArrowDown":{if(oo({isAudioDisabled:Be,audioDisabledHintCallback:be,isAudioAvailable:a,audioIsNotExistHintCallback:Ge})){let Oe=M,ot=G.controls.volumeStepKeyboard,st=Oe>=0;if(cl(S,Oe,ot),st){let ct=Math.round(js(Oe,ot)*100).toString();U({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ct}})}}ge.preventDefault();break}case"Comma":{if(ge.shiftKey){S.actions.internal.decrementPlaybackRate();let Oe=P.find(ot=>ot.value===w);U({type:"RATE_DOWN",text:Oe?.displayValue}),ge.preventDefault()}else{if(pe||o!==ro.PlaybackState.PAUSED)break;let Oe=Math.max(g-G.controls.seekStepFrame/1e3,0);g>0&&(U({type:"BACKWARD_SEEK"}),S.actions.internal.clearDelayedBufferingCheckTimeout(),S.actions.internal.seekTime(Oe,rn.SeekAction.DOUBLE_TAP),ge.preventDefault())}break}case"Period":{if(ge.shiftKey){S.actions.internal.incrementPlaybackRate();let Oe=P.find(ot=>ot.value===w);U({type:"RATE_UP",text:Oe?.displayValue}),ge.preventDefault()}else{if(pe||o!==ro.PlaybackState.PAUSED)break;let Oe=Math.min(g+G.controls.seekStepFrame/1e3,v);g<v&&(U({type:"FORWARD_SEEK"}),S.actions.internal.clearDelayedBufferingCheckTimeout(),S.actions.internal.seekTime(Oe,rn.SeekAction.DOUBLE_TAP),ge.preventDefault())}break}case"KeyK":case"Space":if(!b.has("PLAY_BUTTON"))if(p&&f&&le.set(!1),ie)ie();else{S.actions.internal.togglePlay();let Oe="PLAY";o===ro.PlaybackState.PAUSED?Oe="PAUSE":c&&(Oe="REPLAY"),U({type:Oe})}ge.preventDefault();break;case"KeyM":{oo({isAudioDisabled:Be,audioDisabledHintCallback:be,isAudioAvailable:a,audioIsNotExistHintCallback:Ge})&&(U({type:s?"VOLUME":"MUTE"}),S.actions.internal.toggleMuted()),ge.preventDefault();break}case"KeyF":ee(),ge.preventDefault();break;case"KeyC":S.actions.internal.toggleSubtitle(),r.value!=="off"?U({type:"SUBTITLES_ON",text:r?.displayValue}):U({type:"SUBTITLES_OFF"}),ge.preventDefault();break;case"KeyI":S.actions.internal.togglePictureInPicture(),ge.preventDefault();break;case"Digit1":case"Numpad1":if(ge.shiftKey){let Oe=wf(l);_e.set(Oe),he.set(Ke),Te.set(!0),Q.set(!0),ge.preventDefault();break}U(),S.actions.internal.seekToPercent(.1,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit2":case"Numpad2":U(),S.actions.internal.seekToPercent(.2,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit3":case"Numpad3":U(),S.actions.internal.seekToPercent(.3,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit4":case"Numpad4":U(),S.actions.internal.seekToPercent(.4,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit5":case"Numpad5":U(),S.actions.internal.seekToPercent(.5,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit6":case"Numpad6":U(),S.actions.internal.seekToPercent(.6,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit7":case"Numpad7":U(),S.actions.internal.seekToPercent(.7,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit8":case"Numpad8":U(),S.actions.internal.seekToPercent(.8,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit9":case"Numpad9":U(),S.actions.internal.seekToPercent(.9,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit0":case"Numpad0":U(),S.actions.internal.seekToPercent(0,rn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Slash":{ge.shiftKey&&G.features.hotKeyMapModal&&(re(),ge.preventDefault());break}case"ShiftLeft":case"ShiftRight":ge.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,jf.checkNever)(pt);break}},nt=ge=>{let Ke=ge.code;if(ge.ctrlKey||ge.altKey||ge.metaKey)return;let lt=o===ro.PlaybackState.PLAYING||o===ro.PlaybackState.PAUSED,ut=E&&(n==="paused"||n==="playing");if(lt||ut)switch(Ke){case"ShiftLeft":case"ShiftRight":oe=0;break}};function et(ge){me[ge?"unshift":"push"](()=>{ue=ge,t(0,ue)})}return i.$$set=ge=>{"isAds"in ge&&t(18,E=ge.isAds),"hideContextMenu"in ge&&t(19,$=ge.hideContextMenu),"toggleFullscreen"in ge&&t(20,ee=ge.toggleFullscreen),"showHotKeyHelpers"in ge&&t(21,U=ge.showHotKeyHelpers),"showKeyMap"in ge&&t(22,re=ge.showKeyMap),"fakePlayButtonHandler"in ge&&t(23,ie=ge.fakePlayButtonHandler),"$$scope"in ge&&t(25,I=ge.$$scope)},[ue,J,X,R,Z,B,j,Ie,De,Le,qe,Ae,He,Ce,Ze,le,$e,nt,E,$,ee,U,re,ie,ke,I,C,et]}var Gs=class extends K{constructor(e){super(),W(this,e,bh,hh,q,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},ph,[-1,-1])}get focus(){return this.$$.ctx[24]}},Gf=Gs;function _h(i){ve(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function gh(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',u(e,"class","container svelte-8nkw5s")},m(t,n){k(t,e,n)},p:L,i:L,o:L,d(t){t&&y(e)}}}var xs=class extends K{constructor(e){super(),W(this,e,null,gh,q,{},_h)}},fl=xs;function vh(i){let e,t,n,o,l,r,s,a,c,f,p,b,v;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("defs"),r=A("filter"),s=A("feFlood"),a=A("feColorMatrix"),c=A("feOffset"),f=A("feGaussianBlur"),p=A("feColorMatrix"),b=A("feBlend"),v=A("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2422_111980"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2422_111980"),u(v,"result","shape"),u(r,"id","a"),u(r,"x",".5"),u(r,"y",".5"),u(r,"width","23"),u(r,"height","23"),u(r,"filterUnits","userSpaceOnUse"),u(r,"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(g,w){k(g,e,w),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,p),d(r,b),d(r,v)},p:L,i:L,o:L,d(g){g&&y(e)}}}var Qs=class extends K{constructor(e){super(),W(this,e,null,vh,q,{})}},xf=Qs;var Fn=require("@vkontakte/videoplayer-shared");function yh(i){ve(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function kh(i){let e,t,n,o,l,r,s,a,c,f,p,b,v=i[14].default,g=Fi(v,i,i[13],null);return{c(){e=T("button"),g&&g.c(),u(e,"class",t="btn "+i[1]+" svelte-1anemql"),u(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,u(e,"aria-hidden",l=i[5]??null),u(e,"aria-label",r=i[6]??null),u(e,"aria-keyshortcuts",s=i[7]??null),u(e,"aria-expanded",a=i[8]??null),u(e,"data-testid",c=i[4]??null),u(e,"tabindex",i[9])},m(w,P){k(w,e,P),g&&g.m(e,null),i[16](e),f=!0,p||(b=[de(e,"pointerdown",Je(bt(i[15]))),de(e,"click",Je(bt(function(){di(i[10]===Fn.noop?null:i[10])&&(i[10]===Fn.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",bt(function(){di(i[11]===Fn.noop?null:i[11])&&(i[11]===Fn.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",bt(function(){di(i[12]===Fn.noop?null:i[12])&&(i[12]===Fn.noop?null:i[12]).apply(this,arguments)}))],p=!0)},p(w,[P]){i=w,g&&g.p&&(!f||P&8192)&&zi(g,v,i,i[13],f?Hi(v,i[13],P,null):Ui(i[13]),null),(!f||P&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&u(e,"class",t),(!f||P&4&&n!==(n=i[2]||null))&&u(e,"style",n),(!f||P&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||P&32&&l!==(l=i[5]??null))&&u(e,"aria-hidden",l),(!f||P&64&&r!==(r=i[6]??null))&&u(e,"aria-label",r),(!f||P&128&&s!==(s=i[7]??null))&&u(e,"aria-keyshortcuts",s),(!f||P&256&&a!==(a=i[8]??null))&&u(e,"aria-expanded",a),(!f||P&16&&c!==(c=i[4]??null))&&u(e,"data-testid",c),(!f||P&512)&&u(e,"tabindex",i[9])},i(w){f||(m(g,w),f=!0)},o(w){h(g,w),f=!1},d(w){w&&y(e),g&&g.d(w),i[16](null),p=!1,xe(b)}}}function wh(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:s=void 0}=e,{testId:a=void 0}=e,{ariaHidden:c=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:b=void 0}=e,{ariaExpanded:v=void 0}=e,{tabIndex:g=0}=e,{click:w=Fn.noop}=e,{focus:P=Fn.noop}=e,{blur:M=Fn.noop}=e;function C(E){mn.call(this,i,E)}function I(E){me[E?"unshift":"push"](()=>{p=E,t(0,p)})}return i.$$set=E=>{"className"in E&&t(1,l=E.className),"style"in E&&t(2,r=E.style),"disabled"in E&&t(3,s=E.disabled),"testId"in E&&t(4,a=E.testId),"ariaHidden"in E&&t(5,c=E.ariaHidden),"ariaLabel"in E&&t(6,f=E.ariaLabel),"ref"in E&&t(0,p=E.ref),"ariaKeyShortCut"in E&&t(7,b=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,v=E.ariaExpanded),"tabIndex"in E&&t(9,g=E.tabIndex),"click"in E&&t(10,w=E.click),"focus"in E&&t(11,P=E.focus),"blur"in E&&t(12,M=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[p,l,r,s,a,c,f,b,v,g,w,P,M,o,n,C,I]}var Ys=class extends K{constructor(e){super(),W(this,e,wh,kh,q,{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},yh)}},rt=Ys;function Ch(i){ve(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function Qf(i){let e,t,n,o,l,r=i[2]&&Yf(i);return{c(){e=T("div"),t=T("h3"),n=Se(i[3]),o=N(),r&&r.c(),u(t,"class","modal-title svelte-1witlsj"),u(e,"class","modal-header svelte-1witlsj")},m(s,a){k(s,e,a),d(e,t),d(t,n),d(e,o),r&&r.m(e,null),l=!0},p(s,a){(!l||a&8)&&Fe(n,s[3]),s[2]?r?(r.p(s,a),a&4&&m(r,1)):(r=Yf(s),r.c(),m(r,1),r.m(e,null)):r&&(ce(),h(r,1,1,()=>{r=null}),fe())},i(s){l||(m(r),l=!0)},o(s){h(r),l=!1},d(s){s&&y(e),r&&r.d()}}}function Yf(i){let e,t;return e=new rt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:z("hotkey_map_modal_close_btn_text"),$$slots:{default:[Sh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Sh(i){let e,t;return e=new xf({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ph(i){let e,t,n,o,l,r,s=i[1]&&Qf(i),a=i[4].default,c=Fi(a,i,i[5],null);return{c(){e=T("div"),t=T("div"),s&&s.c(),n=N(),o=T("div"),l=T("div"),c&&c.c(),u(l,"class","modal-main svelte-1witlsj"),u(o,"class","modal-scroll svelte-1witlsj"),u(t,"class","modal-container svelte-1witlsj"),u(e,"class","modal-overlay svelte-1witlsj")},m(f,p){k(f,e,p),d(e,t),s&&s.m(t,null),d(t,n),d(t,o),d(o,l),c&&c.m(l,null),r=!0},p(f,[p]){f[1]?s?(s.p(f,p),p&2&&m(s,1)):(s=Qf(f),s.c(),m(s,1),s.m(t,n)):s&&(ce(),h(s,1,1,()=>{s=null}),fe()),c&&c.p&&(!r||p&32)&&zi(c,a,f,f[5],r?Hi(a,f[5],p,null):Ui(f[5]),null)},i(f){r||(m(s),m(c,f),r=!0)},o(f){h(s),h(c,f),r=!1},d(f){f&&y(e),s&&s.d(),c&&c.d(f)}}}function Th(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:s=!0}=e,{title:a}=e;return i.$$set=c=>{"onClose"in c&&t(0,l=c.onClose),"showHeader"in c&&t(1,r=c.showHeader),"showCloseCross"in c&&t(2,s=c.showCloseCross),"title"in c&&t(3,a=c.title),"$$scope"in c&&t(5,o=c.$$scope)},[l,r,s,a,n,o]}var Xs=class extends K{constructor(e){super(),W(this,e,Th,Ph,q,{onClose:0,showHeader:1,showCloseCross:2,title:3},Ch)}},Xf=Xs;var Ih=new Set(["BR"]),Js=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;Ih.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function Eh(i){ve(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function Jf(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function $f(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function e1(i){let e,t,n=Js(i[9])+"",o,l,r=i[10]+"",s,a;return{c(){e=T("li"),t=T("span"),o=N(),l=T("span"),s=Se(r),a=N(),u(t,"class","hot-key-map-item-description svelte-quklnq"),u(l,"class","hot-key-map-item-value svelte-quklnq"),u(e,"class","hot-key-map-item svelte-quklnq")},m(c,f){k(c,e,f),d(e,t),t.innerHTML=n,d(e,o),d(e,l),d(l,s),d(e,a)},p(c,f){f&1&&n!==(n=Js(c[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=c[10]+"")&&Fe(s,r)},d(c){c&&y(e)}}}function t1(i){let e,t,n=i[5]+"",o,l,r,s,a=ft(i[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=e1($f(i,a,f));return{c(){e=T("div"),t=T("h5"),o=Se(n),l=N(),r=T("ul");for(let f=0;f<c.length;f+=1)c[f].c();s=N(),u(t,"class","hot-key-map-group-title svelte-quklnq"),u(r,"class","hot-key-map-group-items svelte-quklnq"),u(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){k(f,e,p),d(e,t),d(t,o),d(e,l),d(e,r);for(let b=0;b<c.length;b+=1)c[b]&&c[b].m(r,null);d(e,s)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&Fe(o,n),p&1){a=ft(f[6]);let b;for(b=0;b<a.length;b+=1){let v=$f(f,a,b);c[b]?c[b].p(v,p):(c[b]=e1(v),c[b].c(),c[b].m(r,null))}for(;b<c.length;b+=1)c[b].d(1);c.length=a.length}},d(f){f&&y(e),Vi(c,f)}}}function Mh(i){let e,t=ft(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=t1(Jf(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","hot-key-map svelte-quklnq")},m(o,l){k(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){t=ft(o[0].groups);let r;for(r=0;r<t.length;r+=1){let s=Jf(o,t,r);n[r]?n[r].p(s,l):(n[r]=t1(s),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),Vi(n,o)}}}function Ah(i){let e,t;return e=new Xf({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Mh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Vh(i,e,t){let n,o=je(),{data:l,show:r}=o.ui.modals.hotKeyMap;return D(i,l,a=>t(0,n=a)),[n,l,()=>{r.set(!1)}]}var $s=class extends K{constructor(e){super(),W(this,e,Vh,Ah,q,{},Eh)}},i1=$s;var Zl=require("@vkontakte/videoplayer-shared");var Ao=require("@vkontakte/videoplayer-core");var H1=require("@vkontakte/videoplayer-core");var ly=require("@vkontakte/videoplayer-shared");function Lh(i){ve(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Bh(i){let e,t,n=i[1].default,o=Fi(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),u(e,"class","pillow svelte-1oe0j8n")},m(l,r){k(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&zi(o,n,l,l[0],t?Hi(n,l[0],r,null):Ui(l[0]),null)},i(l){t||(m(o,l),t=!0)},o(l){h(o,l),t=!1},d(l){l&&y(e),o&&o.d(l)}}}function Rh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var ea=class extends K{constructor(e){super(),W(this,e,Rh,Bh,q,{},Lh)}},n1=ea;var Xo=require("@vkontakte/videoplayer-core");function Nh(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),n=A("path"),u(t,"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(t,"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,l){k(o,e,l),d(e,t),d(e,n)},p:L,i:L,o:L,d(o){o&&y(e)}}}var ta=class extends K{constructor(e){super(),W(this,e,null,Nh,q,{})}},o1=ta;function Dh(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),n=A("path"),u(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537Z"),u(t,"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,l){k(o,e,l),d(e,t),d(e,n)},p:L,i:L,o:L,d(o){o&&y(e)}}}var ia=class extends K{constructor(e){super(),W(this,e,null,Dh,q,{})}},r1=ia;function Oh(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var na=class extends K{constructor(e){super(),W(this,e,null,Oh,q,{})}},l1=na;function Fh(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var oa=class extends K{constructor(e){super(),W(this,e,null,Fh,q,{})}},dl=oa;function Hh(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),n=A("path"),u(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.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(t,"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,l){k(o,e,l),d(e,t),d(e,n)},p:L,i:L,o:L,d(o){o&&y(e)}}}var ra=class extends K{constructor(e){super(),W(this,e,null,Hh,q,{})}},ml=ra;var lo=i=>{switch(i){case Xo.VideoQuality.Q_720P:return l1;case Xo.VideoQuality.Q_1080P:return dl;case Xo.VideoQuality.Q_1440P:return ml;case Xo.VideoQuality.Q_2160P:return o1;case Xo.VideoQuality.Q_4320P:return r1}};function zh(i){ve(i,"svelte-1fzhlx0",".icon.svelte-1fzhlx0{display:flex;position:relative;width:24px;height:24px}.icon.svelte-1fzhlx0 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-1fzhlx0 .pillow{right:-13px}")}function Uh(i){let e,t,n,o,l,r,s=i[1]&&s1(i);return{c(){e=T("div"),s&&s.c(),t=N(),n=A("svg"),o=A("path"),l=A("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(l,"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(l,"fill","#fff"),V(l,"hidden",!!i[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 svelte-1fzhlx0"),u(e,"aria-hidden","true"),V(e,"triple",i[2])},m(a,c){k(a,e,c),s&&s.m(e,null),d(e,t),d(e,n),d(n,o),d(n,l),r=!0},p(a,c){a[1]?s?(s.p(a,c),c&2&&m(s,1)):(s=s1(a),s.c(),m(s,1),s.m(e,t)):s&&(ce(),h(s,1,1,()=>{s=null}),fe()),(!r||c&2)&&V(l,"hidden",!!a[1]),(!r||c&4)&&V(e,"triple",a[2])},i(a){r||(m(s),r=!0)},o(a){h(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function qh(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}function s1(i){let e,t;return e=new n1({props:{$$slots:{default:[Kh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Kh(i){let e,t,n;var o=i[1];function l(r){return{}}return o&&(e=an(o,l(i))),{c(){e&&H(e.$$.fragment),t=Ye()},m(r,s){e&&O(e,r,s),k(r,t,s),n=!0},p(r,s){if(s&2&&o!==(o=r[1])){if(e){ce();let a=e;h(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(e=an(o,l(r)),H(e.$$.fragment),m(e.$$.fragment,1),O(e,t.parentNode,t)):e=null}},i(r){n||(e&&m(e.$$.fragment,r),n=!0)},o(r){e&&h(e.$$.fragment,r),n=!1},d(r){r&&y(t),e&&F(e,r)}}}function Wh(i){let e,t,n,o,l=[qh,Uh],r=[];function s(a,c){return a[0]?0:1}return e=s(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=Ye()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a,c),e===f?r[e].p(a,c):(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){h(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function Zh(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=s=>{"isMobile"in s&&t(0,o=s.isMobile),"currentQuality"in s&&t(3,l=s.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=lo(l));if(i.$$.dirty&2)e:t(2,r=!!n&&[dl,ml].includes(n))},[o,n,r,l]}var la=class extends K{constructor(e){super(),W(this,e,Zh,Wh,q,{isMobile:0,currentQuality:3},zh)}},pl=la;function jh(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var sa=class extends K{constructor(e){super(),W(this,e,null,jh,q,{})}},hl=sa;function Gh(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var aa=class extends K{constructor(e){super(),W(this,e,null,Gh,q,{})}},a1=aa;function xh(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var ua=class extends K{constructor(e){super(),W(this,e,null,xh,q,{})}},u1=ua;function Qh(i){let e,t,n,o;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("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(t,"fill","none"),u(t,"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(l,r){k(l,e,r),d(e,t),d(t,n),d(t,o)},p:L,i:L,o:L,d(l){l&&y(e)}}}var ca=class extends K{constructor(e){super(),W(this,e,null,Qh,q,{})}},c1=ca;function Yh(i){ve(i,"svelte-2dg73m",".reverted.svelte-2dg73m{transform:rotate(180deg)}")}function Xh(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),u(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z"),u(t,"fill",i[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=i[2]?"chevron-icon--right":"chevron-icon--left"),u(e,"class","svelte-2dg73m"),V(e,"reverted",i[2])},m(o,l){k(o,e,l),d(e,t)},p(o,l){l&1&&u(t,"fill",o[0]),l&4&&n!==(n=o[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),l&4&&V(e,"reverted",o[2])},d(o){o&&y(e)}}}function Jh(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272Z"),u(t,"fill",i[0]),u(t,"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=i[2]?"chevron-icon--down":"chevron-icon--up"),u(e,"class","svelte-2dg73m"),V(e,"reverted",i[2])},m(o,l){k(o,e,l),d(e,t)},p(o,l){l&1&&u(t,"fill",o[0]),l&4&&n!==(n=o[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),l&4&&V(e,"reverted",o[2])},d(o){o&&y(e)}}}function $h(i){let e;function t(l,r){return l[1]?Jh:Xh}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ye()},m(l,r){o.m(l,r),k(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:L,o:L,d(l){l&&y(e),o.d(l)}}}function eb(i,e,t){let{direction:n="left"}=e,{color:o="#fff"}=e,l,r;return i.$$set=s=>{"direction"in s&&t(3,n=s.direction),"color"in s&&t(0,o=s.color)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,l=["up","down"].includes(n)),t(2,r=["right","down"].includes(n))},[o,l,r,n]}var fa=class extends K{constructor(e){super(),W(this,e,eb,$h,q,{direction:3,color:0},Yh)}},Hn=fa;function tb(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var da=class extends K{constructor(e){super(),W(this,e,null,tb,q,{})}},f1=da;function ib(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),u(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var ma=class extends K{constructor(e){super(),W(this,e,null,ib,q,{})}},Jo=ma;function nb(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2.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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var pa=class extends K{constructor(e){super(),W(this,e,null,nb,q,{})}},d1=pa;function ob(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var ha=class extends K{constructor(e){super(),W(this,e,null,ob,q,{})}},m1=ha;function rb(i){ve(i,"svelte-5r0p3","ul.svelte-5r0p3.svelte-5r0p3{margin:0;padding:0}.menu.svelte-5r0p3.svelte-5r0p3{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-5r0p3.svelte-5r0p3{width:100%}.menu-desktop.svelte-5r0p3.svelte-5r0p3{position:absolute;right:0;bottom:0}.menu-mobile.svelte-5r0p3.svelte-5r0p3{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-5r0p3.svelte-5r0p3{display:none}.menu-subList.svelte-5r0p3.svelte-5r0p3{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-5r0p3.svelte-5r0p3{min-width:164px}.menu-subList-traffic-saving.svelte-5r0p3.svelte-5r0p3{min-width:286px}.item.svelte-5r0p3.svelte-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.svelte-5r0p3.svelte-5r0p3{padding:0 14px}.item-quality.item-mobile.svelte-5r0p3.svelte-5r0p3,.item-traffic-saving.item-mobile.svelte-5r0p3.svelte-5r0p3,.item-helper-text.item-mobile.svelte-5r0p3.svelte-5r0p3{flex-direction:row-reverse}.item-helper-text.svelte-5r0p3.svelte-5r0p3{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-5r0p3 span.svelte-5r0p3{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-5r0p3.svelte-5r0p3{padding:7px 14px}.item-helper-text.item-mobile.svelte-5r0p3 span.svelte-5r0p3{text-align:start}.quality-title-mobile.svelte-5r0p3.svelte-5r0p3{flex-grow:1}.item.svelte-5r0p3.svelte-5r0p3:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.svelte-5r0p3.svelte-5r0p3:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-5r0p3 .item.svelte-5r0p3{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-5r0p3 .item.svelte-5r0p3:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-5r0p3.svelte-5r0p3{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-5r0p3.svelte-5r0p3{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-5r0p3.svelte-5r0p3{position:relative;opacity:0.7}.menu-valueIcon.svelte-5r0p3.svelte-5r0p3{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-5r0p3.svelte-5r0p3{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-5r0p3 svg,.menu-valueIcon-list.svelte-5r0p3 svg{color:var(--blue-light)}.menu-divider.svelte-5r0p3.svelte-5r0p3{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-5r0p3.svelte-5r0p3{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.svelte-5r0p3.svelte-5r0p3{margin-right:auto;padding-right:12px;opacity:0.9}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar{width:8px}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-5r0p3.svelte-5r0p3{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-5r0p3.svelte-5r0p3{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-5r0p3.svelte-5r0p3:before,.close.svelte-5r0p3.svelte-5r0p3:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-5r0p3.svelte-5r0p3:before{transform:rotate(45deg)}.close.svelte-5r0p3.svelte-5r0p3:after{transform:rotate(-45deg)}")}function p1(i,e,t){let n=i.slice();return n[142]=e[t],n}function h1(i,e,t){let n=i.slice();return n[145]=e[t],n}function b1(i,e,t){let n=i.slice();return n[148]=e[t],n}function _1(i){let e,t,n,o,l,r,s,a,c,f,p,b,v=i[34]&&g1(i),g=i[25]&&v1(i),w=i[24]&&k1(i),P=i[23]&&w1(i),M=i[22]&&C1(i),C=i[21]&&S1(i),I=i[34]&&P1(i);return{c(){e=T("div"),v&&v.c(),t=N(),n=T("ul"),g&&g.c(),o=N(),w&&w.c(),l=N(),P&&P.c(),r=N(),M&&M.c(),s=N(),C&&C.c(),a=N(),I&&I.c(),u(n,"class","items svelte-5r0p3"),u(n,"role","menu"),u(n,"style",c=i[73]()),V(n,"items-mobile",i[34]),u(e,"class","menu svelte-5r0p3"),V(e,"menu-desktop",!i[34]),V(e,"menu-mobile",i[34]),V(e,"hidden",!i[11])},m(E,$){k(E,e,$),v&&v.m(e,null),d(e,t),d(e,n),g&&g.m(n,null),d(n,o),w&&w.m(n,null),d(n,l),P&&P.m(n,null),d(n,r),M&&M.m(n,null),d(n,s),C&&C.m(n,null),d(n,a),I&&I.m(n,null),i[112](n),f=!0,p||(b=[de(e,"keydown",i[78]),de(e,"mouseenter",i[71]),de(e,"mouseleave",i[72])],p=!0)},p(E,$){E[34]?v?v.p(E,$):(v=g1(E),v.c(),v.m(e,t)):v&&(v.d(1),v=null),E[25]?g?(g.p(E,$),$[0]&33554432&&m(g,1)):(g=v1(E),g.c(),m(g,1),g.m(n,o)):g&&(ce(),h(g,1,1,()=>{g=null}),fe()),E[24]?w?(w.p(E,$),$[0]&16777216&&m(w,1)):(w=k1(E),w.c(),m(w,1),w.m(n,l)):w&&(ce(),h(w,1,1,()=>{w=null}),fe()),E[23]?P?(P.p(E,$),$[0]&8388608&&m(P,1)):(P=w1(E),P.c(),m(P,1),P.m(n,r)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),E[22]?M?(M.p(E,$),$[0]&4194304&&m(M,1)):(M=C1(E),M.c(),m(M,1),M.m(n,s)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),E[21]?C?(C.p(E,$),$[0]&2097152&&m(C,1)):(C=S1(E),C.c(),m(C,1),C.m(n,a)):C&&(ce(),h(C,1,1,()=>{C=null}),fe()),E[34]?I?(I.p(E,$),$[1]&8&&m(I,1)):(I=P1(E),I.c(),m(I,1),I.m(n,null)):I&&(ce(),h(I,1,1,()=>{I=null}),fe()),(!f||$[1]&8)&&V(n,"items-mobile",E[34]),(!f||$[1]&8)&&V(e,"menu-desktop",!E[34]),(!f||$[1]&8)&&V(e,"menu-mobile",E[34]),(!f||$[0]&2048)&&V(e,"hidden",!E[11])},i(E){f||(m(g),m(w),m(P),m(M),m(C),m(I),f=!0)},o(E){h(g),h(w),h(P),h(M),h(C),h(I),f=!1},d(E){E&&y(e),v&&v.d(),g&&g.d(),w&&w.d(),P&&P.d(),M&&M.d(),C&&C.d(),I&&I.d(),i[112](null),p=!1,xe(b)}}}function g1(i){let e,t,n,o,l,r,s,a;return{c(){e=T("div"),t=T("div"),t.textContent=`${z("submenu_settings")}`,n=N(),o=T("div"),l=N(),r=T("div"),u(o,"class","close svelte-5r0p3"),u(e,"class","item menu-header svelte-5r0p3"),V(e,"item-mobile",i[34]),u(r,"class","menu-divider svelte-5r0p3")},m(c,f){k(c,e,f),d(e,t),d(e,n),d(e,o),k(c,l,f),k(c,r,f),s||(a=de(o,"click",Je(i[57])),s=!0)},p(c,f){f[1]&8&&V(e,"item-mobile",c[34])},d(c){c&&(y(e),y(l),y(r)),s=!1,a()}}}function v1(i){let e,t,n,o,l,r,s,a,c,f,p,b,v;n=new pl({});let g=i[33]&&!i[34]&&y1(i);return{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("menu_quality")}`,r=N(),s=T("div"),a=Se(i[16]),c=N(),g&&g.c(),u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(l,"class","menu-title svelte-5r0p3"),u(s,"class","menu-value svelte-5r0p3"),u(e,"class","item svelte-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=z("aria_label_menu_quality",{actual:i[27]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",i[34])},m(w,P){k(w,e,P),d(e,t),O(n,t,null),d(e,o),d(e,l),d(e,r),d(e,s),d(s,a),d(s,c),g&&g.m(s,null),i[108](e),p=!0,b||(v=[de(e,"click",Je(i[58])),de(e,"keydown",i[79])],b=!0)},p(w,P){(!p||P[0]&65536)&&Fe(a,w[16]),w[33]&&!w[34]?g?(g.p(w,P),P[1]&12&&m(g,1)):(g=y1(w),g.c(),m(g,1),g.m(s,null)):g&&(ce(),h(g,1,1,()=>{g=null}),fe()),(!p||P[0]&134217728&&f!==(f=z("aria_label_menu_quality",{actual:w[27]})))&&u(e,"aria-label",f),(!p||P[1]&8)&&V(e,"item-mobile",w[34])},i(w){p||(m(n.$$.fragment,w),m(g),p=!0)},o(w){h(n.$$.fragment,w),h(g),p=!1},d(w){w&&y(e),F(n),g&&g.d(),i[108](null),b=!1,xe(v)}}}function y1(i){let e,t,n;var o=i[33];function l(r){return{}}return o&&(t=an(o,l(i))),{c(){e=T("div"),t&&H(t.$$.fragment),u(e,"class","menu-valueIcon svelte-5r0p3")},m(r,s){k(r,e,s),t&&O(t,e,null),n=!0},p(r,s){if(s[1]&4&&o!==(o=r[33])){if(t){ce();let a=t;h(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(t=an(o,l(r)),H(t.$$.fragment),m(t.$$.fragment,1),O(t,e,null)):t=null}},i(r){n||(t&&m(t.$$.fragment,r),n=!0)},o(r){t&&h(t.$$.fragment,r),n=!1},d(r){r&&y(e),t&&F(t)}}}function k1(i){let e,t,n,o,l,r,s,a,c,f,p,b,v;return n=new c1({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("menu_playback_rate")}`,r=N(),s=T("div"),a=Se(i[9]),c=Se("x"),u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(l,"class","menu-title svelte-5r0p3"),u(s,"class","menu-value svelte-5r0p3"),u(e,"class","item svelte-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=z("aria_label_menu_rate",{actual:i[28]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",i[34])},m(g,w){k(g,e,w),d(e,t),O(n,t,null),d(e,o),d(e,l),d(e,r),d(e,s),d(s,a),d(s,c),i[109](e),p=!0,b||(v=[de(e,"click",Je(bt(i[62]))),de(e,"keydown",i[82])],b=!0)},p(g,w){(!p||w[0]&512)&&Fe(a,g[9]),(!p||w[0]&268435456&&f!==(f=z("aria_label_menu_rate",{actual:g[28]})))&&u(e,"aria-label",f),(!p||w[1]&8)&&V(e,"item-mobile",g[34])},i(g){p||(m(n.$$.fragment,g),p=!0)},o(g){h(n.$$.fragment,g),p=!1},d(g){g&&y(e),F(n),i[109](null),b=!1,xe(v)}}}function w1(i){let e,t,n,o,l,r,s,a=i[35].displayValue+"",c,f,p,b,v;return n=new hl({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("subtitles_caption")}`,r=N(),s=T("div"),c=Se(a),u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(l,"class","menu-title svelte-5r0p3"),u(s,"class","menu-value svelte-5r0p3"),u(e,"class","item svelte-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=z("aria_label_menu_subtitle",{actual:i[35].displayValue})),u(e,"aria-haspopup","true"),V(e,"item-mobile",i[34])},m(g,w){k(g,e,w),d(e,t),O(n,t,null),d(e,o),d(e,l),d(e,r),d(e,s),d(s,c),i[110](e),p=!0,b||(v=[de(e,"click",Je(i[64])),de(e,"keydown",i[85])],b=!0)},p(g,w){(!p||w[1]&16)&&a!==(a=g[35].displayValue+"")&&Fe(c,a),(!p||w[1]&16&&f!==(f=z("aria_label_menu_subtitle",{actual:g[35].displayValue})))&&u(e,"aria-label",f),(!p||w[1]&8)&&V(e,"item-mobile",g[34])},i(g){p||(m(n.$$.fragment,g),p=!0)},o(g){h(n.$$.fragment,g),p=!1},d(g){g&&y(e),F(n),i[110](null),b=!1,xe(v)}}}function C1(i){let e,t,n,o,l,r,s,a,c,f,p,b;return n=new u1({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("menu_traffic_saving")}`,r=N(),s=T("div"),a=Se(i[26]),u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(l,"class","menu-title svelte-5r0p3"),u(s,"class","menu-value svelte-5r0p3"),u(e,"class","item svelte-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",c=z("aria_label_menu_traffic_saving",{actual:i[26]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",i[34])},m(v,g){k(v,e,g),d(e,t),O(n,t,null),d(e,o),d(e,l),d(e,r),d(e,s),d(s,a),i[111](e),f=!0,p||(b=[de(e,"click",Je(i[59])),de(e,"keydown",i[88])],p=!0)},p(v,g){(!f||g[0]&67108864)&&Fe(a,v[26]),(!f||g[0]&67108864&&c!==(c=z("aria_label_menu_traffic_saving",{actual:v[26]})))&&u(e,"aria-label",c),(!f||g[1]&8)&&V(e,"item-mobile",v[34])},i(v){f||(m(n.$$.fragment,v),f=!0)},o(v){h(n.$$.fragment,v),f=!1},d(v){v&&y(e),F(n),i[111](null),p=!1,xe(b)}}}function S1(i){let e,t,n,o,l,r,s,a,c;return n=new a1({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("download_video_caption")}`,u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(l,"class","menu-title svelte-5r0p3"),u(e,"class","item svelte-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",r=z("aria_label_menu_download")),V(e,"item-mobile",i[34])},m(f,p){k(f,e,p),d(e,t),O(n,t,null),d(e,o),d(e,l),s=!0,a||(c=[de(e,"click",Je(i[67])),de(e,"keydown",i[91])],a=!0)},p(f,p){(!s||p[1]&8)&&V(e,"item-mobile",f[34])},i(f){s||(m(n.$$.fragment,f),s=!0)},o(f){h(n.$$.fragment,f),s=!1},d(f){f&&y(e),F(n),a=!1,xe(c)}}}function P1(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C=i[37].showSupport&&lb(i);return o=new d1({}),p=new m1({}),{c(){C&&C.c(),e=N(),t=T("li"),n=T("div"),H(o.$$.fragment),l=N(),r=T("div"),r.textContent=`${z("menu_copy_debug")}`,a=N(),c=T("li"),f=T("div"),H(p.$$.fragment),b=N(),v=T("div"),v.textContent=`${z("menu_debug_overlay")}`,u(n,"class","menu-icon-wrapper svelte-5r0p3"),u(r,"class","menu-title svelte-5r0p3"),u(t,"class","item item-mobile svelte-5r0p3"),u(t,"role","menuitem"),u(t,"tabindex","0"),u(t,"aria-label",s=z("menu_copy_debug")),u(f,"class","menu-icon-wrapper svelte-5r0p3"),u(v,"class","menu-title svelte-5r0p3"),u(c,"class","item item-mobile svelte-5r0p3"),u(c,"role","menuitem"),u(c,"tabindex","0"),u(c,"aria-label",g=i[36]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"))},m(I,E){C&&C.m(I,E),k(I,e,E),k(I,t,E),d(t,n),O(o,n,null),d(t,l),d(t,r),k(I,a,E),k(I,c,E),d(c,f),O(p,f,null),d(c,b),d(c,v),w=!0,P||(M=[de(t,"click",Je(i[69])),de(t,"keydown",i[93]),de(c,"click",Je(i[70])),de(c,"keydown",i[94])],P=!0)},p(I,E){I[37].showSupport&&C.p(I,E),(!w||E[1]&32&&g!==(g=I[36]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable")))&&u(c,"aria-label",g)},i(I){w||(m(C),m(o.$$.fragment,I),m(p.$$.fragment,I),w=!0)},o(I){h(C),h(o.$$.fragment,I),h(p.$$.fragment,I),w=!1},d(I){I&&(y(e),y(t),y(a),y(c)),C&&C.d(I),F(o),F(p),P=!1,xe(M)}}}function lb(i){let e,t,n,o,l,r,s,a,c;return n=new f1({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("menu_report")}`,u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(l,"class","menu-title svelte-5r0p3"),u(e,"class","item item-mobile svelte-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",r=`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`)},m(f,p){k(f,e,p),d(e,t),O(n,t,null),d(e,o),d(e,l),s=!0,a||(c=[de(e,"click",Je(i[68])),de(e,"keydown",i[92])],a=!0)},p:L,i(f){s||(m(n.$$.fragment,f),s=!0)},o(f){h(n.$$.fragment,f),s=!1},d(f){f&&y(e),F(n),a=!1,xe(c)}}}function T1(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g;n=new Hn({props:{direction:"left"}});let w=ft(i[8]),P=[];for(let C=0;C<w.length;C+=1)P[C]=M1(b1(i,w,C));let M=C=>h(P[C],1,1,()=>{P[C]=null});return{c(){e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("submenu_quality")}`,s=N(),a=T("div"),c=N(),f=T("ul");for(let C=0;C<P.length;C+=1)P[C].c();u(t,"class","item menu-header svelte-5r0p3"),u(t,"aria-label",r=z("aria_label_submenu_back")),V(t,"item-mobile",i[34]),u(a,"class","menu-divider svelte-5r0p3"),u(f,"class","items svelte-5r0p3"),u(f,"role","menu"),u(f,"style",p=i[73](i[17]?.clientHeight,!0)),V(f,"items-mobile",i[34]),u(e,"class","menu menu-subList svelte-5r0p3"),V(e,"menu-desktop",!i[34]),V(e,"menu-mobile",i[34])},m(C,I){k(C,e,I),d(e,t),O(n,t,null),d(t,o),d(t,l),i[113](t),d(e,s),d(e,a),d(e,c),d(e,f);for(let E=0;E<P.length;E+=1)P[E]&&P[E].m(f,null);i[116](f),b=!0,v||(g=[de(t,"click",Je(i[66])),de(f,"keydown",i[80])],v=!0)},p(C,I){if((!b||I[1]&8)&&V(t,"item-mobile",C[34]),I[0]&256|I[1]&536870920|I[2]&524288){w=ft(C[8]);let E;for(E=0;E<w.length;E+=1){let $=b1(C,w,E);P[E]?(P[E].p($,I),m(P[E],1)):(P[E]=M1($),P[E].c(),m(P[E],1),P[E].m(f,null))}for(ce(),E=w.length;E<P.length;E+=1)M(E);fe()}(!b||I[0]&131072&&p!==(p=C[73](C[17]?.clientHeight,!0)))&&u(f,"style",p),(!b||I[1]&8)&&V(f,"items-mobile",C[34]),(!b||I[1]&8)&&V(e,"menu-desktop",!C[34]),(!b||I[1]&8)&&V(e,"menu-mobile",C[34])},i(C){if(!b){m(n.$$.fragment,C);for(let I=0;I<w.length;I+=1)m(P[I]);b=!0}},o(C){h(n.$$.fragment,C),P=P.filter(Boolean);for(let I=0;I<P.length;I+=1)h(P[I]);b=!1},d(C){C&&y(e),F(n),i[113](null),Vi(P,C),i[116](null),v=!1,xe(g)}}}function I1(i){let e,t,n;return t=new Jo({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function E1(i){let e,t,n;var o=lo(i[148].value);function l(r){return{}}return o&&(t=an(o,l(i))),{c(){e=T("div"),t&&H(t.$$.fragment),u(e,"class","menu-valueIcon-list svelte-5r0p3")},m(r,s){k(r,e,s),t&&O(t,e,null),n=!0},p(r,s){if(s[0]&256&&o!==(o=lo(r[148].value))){if(t){ce();let a=t;h(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(t=an(o,l(r)),H(t.$$.fragment),m(t.$$.fragment,1),O(t,e,null)):t=null}},i(r){n||(t&&m(t.$$.fragment,r),n=!0)},o(r){t&&h(t.$$.fragment,r),n=!1},d(r){r&&y(e),t&&F(t)}}}function M1(i){let e,t,n,o=i[148].displayValue+"",l,r,s=!i[34]&&lo(i[148].value),a,c,f,p,b,v,g=i[148].selected&&I1(i),w=s&&E1(i);function P(){return i[114](i[148])}function M(...C){return i[115](i[148],...C)}return{c(){e=T("li"),g&&g.c(),t=N(),n=T("div"),l=Se(o),r=N(),w&&w.c(),a=N(),u(n,"class","svelte-5r0p3"),V(n,"quality-title-mobile",i[34]),u(e,"class","item item-quality svelte-5r0p3"),u(e,"data-value",c=i[148].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=i[148].displayValue),V(e,"item-mobile",i[34])},m(C,I){k(C,e,I),g&&g.m(e,null),d(e,t),d(e,n),d(n,l),d(e,r),w&&w.m(e,null),d(e,a),p=!0,b||(v=[de(e,"click",Je(P)),de(e,"keydown",M)],b=!0)},p(C,I){i=C,i[148].selected?g?I[0]&256&&m(g,1):(g=I1(i),g.c(),m(g,1),g.m(e,t)):g&&(ce(),h(g,1,1,()=>{g=null}),fe()),(!p||I[0]&256)&&o!==(o=i[148].displayValue+"")&&Fe(l,o),(!p||I[1]&8)&&V(n,"quality-title-mobile",i[34]),I[0]&256|I[1]&8&&(s=!i[34]&&lo(i[148].value)),s?w?(w.p(i,I),I[0]&256|I[1]&8&&m(w,1)):(w=E1(i),w.c(),m(w,1),w.m(e,a)):w&&(ce(),h(w,1,1,()=>{w=null}),fe()),(!p||I[0]&256&&c!==(c=i[148].value))&&u(e,"data-value",c),(!p||I[0]&256&&f!==(f=i[148].displayValue))&&u(e,"aria-label",f),(!p||I[1]&8)&&V(e,"item-mobile",i[34])},i(C){p||(m(g),m(w),p=!0)},o(C){h(g),h(w),p=!1},d(C){C&&y(e),g&&g.d(),w&&w.d(),b=!1,xe(v)}}}function A1(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g;n=new Hn({props:{direction:"left"}});let w=ft(i[7]),P=[];for(let C=0;C<w.length;C+=1)P[C]=L1(h1(i,w,C));let M=C=>h(P[C],1,1,()=>{P[C]=null});return{c(){e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("submenu_playback_rate")}`,s=N(),a=T("div"),c=N(),f=T("ul");for(let C=0;C<P.length;C+=1)P[C].c();u(t,"class","item menu-header svelte-5r0p3"),u(t,"aria-label",r=z("aria_label_submenu_back")),V(t,"item-mobile",i[34]),u(a,"class","menu-divider svelte-5r0p3"),u(f,"class","items svelte-5r0p3"),u(f,"role","menu"),u(f,"style",p=i[73](i[18]?.clientHeight,!0)),V(f,"items-mobile",i[34]),u(e,"class","menu menu-subList svelte-5r0p3"),V(e,"menu-desktop",!i[34]),V(e,"menu-mobile",i[34])},m(C,I){k(C,e,I),d(e,t),O(n,t,null),d(t,o),d(t,l),i[117](t),d(e,s),d(e,a),d(e,c),d(e,f);for(let E=0;E<P.length;E+=1)P[E]&&P[E].m(f,null);i[120](f),b=!0,v||(g=[de(t,"click",Je(i[66])),de(f,"keydown",i[83])],v=!0)},p(C,I){if((!b||I[1]&8)&&V(t,"item-mobile",C[34]),I[0]&128|I[1]&8|I[2]&4194306){w=ft(C[7]);let E;for(E=0;E<w.length;E+=1){let $=h1(C,w,E);P[E]?(P[E].p($,I),m(P[E],1)):(P[E]=L1($),P[E].c(),m(P[E],1),P[E].m(f,null))}for(ce(),E=w.length;E<P.length;E+=1)M(E);fe()}(!b||I[0]&262144&&p!==(p=C[73](C[18]?.clientHeight,!0)))&&u(f,"style",p),(!b||I[1]&8)&&V(f,"items-mobile",C[34]),(!b||I[1]&8)&&V(e,"menu-desktop",!C[34]),(!b||I[1]&8)&&V(e,"menu-mobile",C[34])},i(C){if(!b){m(n.$$.fragment,C);for(let I=0;I<w.length;I+=1)m(P[I]);b=!0}},o(C){h(n.$$.fragment,C),P=P.filter(Boolean);for(let I=0;I<P.length;I+=1)h(P[I]);b=!1},d(C){C&&y(e),F(n),i[117](null),Vi(P,C),i[120](null),v=!1,xe(g)}}}function V1(i){let e,t,n;return t=new Jo({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function L1(i){let e,t,n,o=i[145].displayValue+"",l,r,s,a,c,f,p,b=i[145].selected&&V1(i);function v(){return i[118](i[145])}function g(...w){return i[119](i[145],...w)}return{c(){e=T("li"),b&&b.c(),t=N(),n=T("div"),l=Se(o),r=N(),u(n,"class","svelte-5r0p3"),V(n,"quality-title-mobile",i[34]),u(e,"class","item item-quality svelte-5r0p3"),u(e,"data-value",s=i[145].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=i[145].displayValue),V(e,"item-mobile",i[34])},m(w,P){k(w,e,P),b&&b.m(e,null),d(e,t),d(e,n),d(n,l),d(e,r),c=!0,f||(p=[de(e,"click",Je(v)),de(e,"keydown",g)],f=!0)},p(w,P){i=w,i[145].selected?b?P[0]&128&&m(b,1):(b=V1(i),b.c(),m(b,1),b.m(e,t)):b&&(ce(),h(b,1,1,()=>{b=null}),fe()),(!c||P[0]&128)&&o!==(o=i[145].displayValue+"")&&Fe(l,o),(!c||P[1]&8)&&V(n,"quality-title-mobile",i[34]),(!c||P[0]&128&&s!==(s=i[145].value))&&u(e,"data-value",s),(!c||P[0]&128&&a!==(a=i[145].displayValue))&&u(e,"aria-label",a),(!c||P[1]&8)&&V(e,"item-mobile",i[34])},i(w){c||(m(b),c=!0)},o(w){h(b),c=!1},d(w){w&&y(e),b&&b.d(),f=!1,xe(p)}}}function B1(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,G,Y,J;n=new Hn({props:{direction:"left"}});let X=!i[5]&&R1(i),R=i[5]&&N1(i);return{c(){e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("submenu_traffic_saving")}`,s=N(),a=T("div"),c=N(),f=T("div"),p=T("ul"),b=T("li"),X&&X.c(),v=N(),g=T("div"),g.textContent=`${z("traffic_saving_disable")}`,P=N(),M=T("li"),R&&R.c(),C=N(),I=T("div"),I.textContent=`${z("traffic_saving_enable")}`,$=N(),ee=T("div"),U=N(),re=T("div"),ie=T("span"),ie.textContent=`${z("traffic_saving_helper_text")}`,u(t,"class","item menu-header svelte-5r0p3"),u(t,"aria-label",r=z("aria_label_submenu_back")),V(t,"item-mobile",i[34]),u(a,"class","menu-divider svelte-5r0p3"),u(g,"class","svelte-5r0p3"),V(g,"quality-title-mobile",i[34]),u(b,"class","item item-traffic-saving svelte-5r0p3"),u(b,"role","menuitem"),u(b,"tabindex","0"),u(b,"aria-label",w=z("aria_label_submenu_traffic_saving_off")),V(b,"item-mobile",i[34]),u(I,"class","svelte-5r0p3"),V(I,"quality-title-mobile",i[34]),u(M,"class","item item-traffic-saving svelte-5r0p3"),u(M,"role","menuitem"),u(M,"tabindex","0"),u(M,"aria-label",E=`${z("aria_label_submenu_traffic_saving_on")}. ${z("traffic_saving_helper_text")}`),V(M,"item-mobile",i[34]),u(p,"class","items svelte-5r0p3"),u(p,"role","menu"),V(p,"items-mobile",i[34]),u(ee,"class","menu-divider svelte-5r0p3"),u(ie,"class","svelte-5r0p3"),u(re,"class","item item-helper-text svelte-5r0p3"),V(re,"item-mobile",i[34]),u(f,"style",S=i[73](i[19]?.clientHeight,!0)),u(e,"class","menu menu-subList menu-subList-traffic-saving svelte-5r0p3"),V(e,"menu-desktop",!i[34]),V(e,"menu-mobile",i[34])},m(Z,B){k(Z,e,B),d(e,t),O(n,t,null),d(t,o),d(t,l),i[121](t),d(e,s),d(e,a),d(e,c),d(e,f),d(f,p),d(p,b),X&&X.m(b,null),d(b,v),d(b,g),d(p,P),d(p,M),R&&R.m(M,null),d(M,C),d(M,I),i[126](p),d(f,$),d(f,ee),d(f,U),d(f,re),d(re,ie),G=!0,Y||(J=[de(t,"click",Je(i[66])),de(b,"click",Je(i[122])),de(b,"keydown",i[123]),de(M,"click",Je(i[124])),de(M,"keydown",i[125]),de(p,"keydown",i[89])],Y=!0)},p(Z,B){(!G||B[1]&8)&&V(t,"item-mobile",Z[34]),Z[5]?X&&(ce(),h(X,1,1,()=>{X=null}),fe()):X?B[0]&32&&m(X,1):(X=R1(Z),X.c(),m(X,1),X.m(b,v)),(!G||B[1]&8)&&V(g,"quality-title-mobile",Z[34]),(!G||B[1]&8)&&V(b,"item-mobile",Z[34]),Z[5]?R?B[0]&32&&m(R,1):(R=N1(Z),R.c(),m(R,1),R.m(M,C)):R&&(ce(),h(R,1,1,()=>{R=null}),fe()),(!G||B[1]&8)&&V(I,"quality-title-mobile",Z[34]),(!G||B[1]&8)&&V(M,"item-mobile",Z[34]),(!G||B[1]&8)&&V(p,"items-mobile",Z[34]),(!G||B[1]&8)&&V(re,"item-mobile",Z[34]),(!G||B[0]&524288&&S!==(S=Z[73](Z[19]?.clientHeight,!0)))&&u(f,"style",S),(!G||B[1]&8)&&V(e,"menu-desktop",!Z[34]),(!G||B[1]&8)&&V(e,"menu-mobile",Z[34])},i(Z){G||(m(n.$$.fragment,Z),m(X),m(R),G=!0)},o(Z){h(n.$$.fragment,Z),h(X),h(R),G=!1},d(Z){Z&&y(e),F(n),i[121](null),X&&X.d(),R&&R.d(),i[126](null),Y=!1,xe(J)}}}function R1(i){let e,t,n;return t=new Jo({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function N1(i){let e,t,n;return t=new Jo({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function D1(i){let e,t,n,o,l,r,s,a,c,f,p,b;n=new Hn({props:{direction:"left"}});let v=ft(i[6]),g=[];for(let P=0;P<v.length;P+=1)g[P]=F1(p1(i,v,P));let w=P=>h(g[P],1,1,()=>{g[P]=null});return{c(){e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),l=T("div"),l.textContent=`${z("subtitles_caption")}`,s=N(),a=T("ul");for(let P=0;P<g.length;P+=1)g[P].c();u(t,"class","item menu-header svelte-5r0p3"),u(t,"aria-label",r=z("aria_label_submenu_back")),V(t,"item-mobile",i[34]),u(a,"class","items svelte-5r0p3"),u(a,"role","menu"),u(a,"style",c=i[73](i[20]?.clientHeight,!0)),V(a,"items-mobile",i[34]),u(e,"class","menu menu-subList menu-subList-subtitles svelte-5r0p3"),V(e,"menu-desktop",!i[34]),V(e,"menu-mobile",i[34])},m(P,M){k(P,e,M),d(e,t),O(n,t,null),d(t,o),d(t,l),i[127](t),d(e,s),d(e,a);for(let C=0;C<g.length;C+=1)g[C]&&g[C].m(a,null);i[130](a),f=!0,p||(b=[de(t,"click",Je(i[66])),de(a,"keydown",i[86])],p=!0)},p(P,M){if((!f||M[1]&8)&&V(t,"item-mobile",P[34]),M[0]&64|M[1]&8|M[2]&33554440){v=ft(P[6]);let C;for(C=0;C<v.length;C+=1){let I=p1(P,v,C);g[C]?(g[C].p(I,M),m(g[C],1)):(g[C]=F1(I),g[C].c(),m(g[C],1),g[C].m(a,null))}for(ce(),C=v.length;C<g.length;C+=1)w(C);fe()}(!f||M[0]&1048576&&c!==(c=P[73](P[20]?.clientHeight,!0)))&&u(a,"style",c),(!f||M[1]&8)&&V(a,"items-mobile",P[34]),(!f||M[1]&8)&&V(e,"menu-desktop",!P[34]),(!f||M[1]&8)&&V(e,"menu-mobile",P[34])},i(P){if(!f){m(n.$$.fragment,P);for(let M=0;M<v.length;M+=1)m(g[M]);f=!0}},o(P){h(n.$$.fragment,P),g=g.filter(Boolean);for(let M=0;M<g.length;M+=1)h(g[M]);f=!1},d(P){P&&y(e),F(n),i[127](null),Vi(g,P),i[130](null),p=!1,xe(b)}}}function O1(i){let e,t,n;return t=new Jo({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function F1(i){let e,t,n,o=i[142].displayValue+"",l,r,s,a,c,f,p,b=i[142].selected&&O1(i);function v(){return i[128](i[142])}function g(...w){return i[129](i[142],...w)}return{c(){e=T("li"),b&&b.c(),t=N(),n=T("div"),l=Se(o),r=N(),u(n,"class","svelte-5r0p3"),V(n,"quality-title-mobile",i[34]),u(e,"class","item item-quality svelte-5r0p3"),u(e,"data-value",s=i[142].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=i[142].displayValue),V(e,"item-mobile",i[34])},m(w,P){k(w,e,P),b&&b.m(e,null),d(e,t),d(e,n),d(n,l),d(e,r),c=!0,f||(p=[de(e,"click",Je(v)),de(e,"keydown",g)],f=!0)},p(w,P){i=w,i[142].selected?b?P[0]&64&&m(b,1):(b=O1(i),b.c(),m(b,1),b.m(e,t)):b&&(ce(),h(b,1,1,()=>{b=null}),fe()),(!c||P[0]&64)&&o!==(o=i[142].displayValue+"")&&Fe(l,o),(!c||P[1]&8)&&V(n,"quality-title-mobile",i[34]),(!c||P[0]&64&&s!==(s=i[142].value))&&u(e,"data-value",s),(!c||P[0]&64&&a!==(a=i[142].displayValue))&&u(e,"aria-label",a),(!c||P[1]&8)&&V(e,"item-mobile",i[34])},i(w){c||(m(b),c=!0)},o(w){h(b),c=!1},d(w){w&&y(e),b&&b.d(),f=!1,xe(p)}}}function sb(i){let e,t,n,o,l,r,s=i[10]&&_1(i),a=i[12]&&T1(i),c=i[13]&&A1(i),f=i[15]&&B1(i),p=i[14]&&D1(i);return{c(){e=T("div"),s&&s.c(),t=N(),a&&a.c(),n=N(),c&&c.c(),o=N(),f&&f.c(),l=N(),p&&p.c(),u(e,"class","svelte-5r0p3"),V(e,"hidden",!i[10]),V(e,"container-mobile",i[34])},m(b,v){k(b,e,v),s&&s.m(e,null),d(e,t),a&&a.m(e,null),d(e,n),c&&c.m(e,null),d(e,o),f&&f.m(e,null),d(e,l),p&&p.m(e,null),r=!0},p(b,v){b[10]?s?(s.p(b,v),v[0]&1024&&m(s,1)):(s=_1(b),s.c(),m(s,1),s.m(e,t)):s&&(ce(),h(s,1,1,()=>{s=null}),fe()),b[12]?a?(a.p(b,v),v[0]&4096&&m(a,1)):(a=T1(b),a.c(),m(a,1),a.m(e,n)):a&&(ce(),h(a,1,1,()=>{a=null}),fe()),b[13]?c?(c.p(b,v),v[0]&8192&&m(c,1)):(c=A1(b),c.c(),m(c,1),c.m(e,o)):c&&(ce(),h(c,1,1,()=>{c=null}),fe()),b[15]?f?(f.p(b,v),v[0]&32768&&m(f,1)):(f=B1(b),f.c(),m(f,1),f.m(e,l)):f&&(ce(),h(f,1,1,()=>{f=null}),fe()),b[14]?p?(p.p(b,v),v[0]&16384&&m(p,1)):(p=D1(b),p.c(),m(p,1),p.m(e,null)):p&&(ce(),h(p,1,1,()=>{p=null}),fe()),(!r||v[0]&1024)&&V(e,"hidden",!b[10]),(!r||v[1]&8)&&V(e,"container-mobile",b[34])},i(b){r||(m(s),m(a),m(c),m(f),m(p),r=!0)},o(b){h(s),h(a),h(c),h(f),h(p),r=!1},d(b){b&&y(e),s&&s.d(),a&&a.d(),c&&c.d(),f&&f.d(),p&&p.d()}}}var ab=18;function ub(i,e,t){let n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,{ref:G=void 0}=e,{supportLink:Y}=e,{playerControlsHeight:J=0}=e,{returnFocus:X}=e,R=je(),Z=Ct(),B=R.state.currentQuality$;D(i,B,se=>t(102,w=se));let j=R.state.availableQualities$;D(i,j,se=>t(8,v=se));let Ie=R.state.autoQualityLimitingAvailable$;D(i,Ie,se=>t(106,I=se));let De=R.state.isAutoQualityEnabled$;D(i,De,se=>t(103,P=se));let Le=R.state.currentPlaybackRate$;D(i,Le,se=>t(9,g=se));let qe=R.state.availablePlaybackRates$;D(i,qe,se=>t(7,p=se));let Te=R.state.currentSubtitle$;D(i,Te,se=>t(35,ie=se));let he=R.state.availableSubtitlesList$;D(i,he,se=>t(6,c=se));let Q=R.state.canDownload,_e=R.state.hasMpegSources$;D(i,_e,se=>t(107,E=se));let Ae=R.ui.settingsMenuVisible;D(i,Ae,se=>t(10,re=se));let He=R.ui.settingsMenuOpenedByKeyboard;D(i,He,se=>t(132,o=se));let Ge=R.ui.isMobile;D(i,Ge,se=>t(34,l=se));let be=R.ui.mobileNotReportControlHidden$;D(i,be,se=>t(104,M=se));let Ce=R.state.canChangePlaybackSpeed$;D(i,Ce,se=>t(105,C=se));let Be=R.ui.isFullscreen;D(i,Be,se=>t(135,U=se));let Ze=R.state.trafficSavingEnabled$;D(i,Ze,se=>t(5,s=se));let le=R.ui.playerSize;D(i,le,se=>t(134,ee=se));let oe=R.ui.debugPanelVisible;D(i,oe,se=>t(36,S=se));let ye=R.ui.playerSize;D(i,ye,se=>t(133,$=se));let ue=R.state.isInteractiveTime$,ke=R.actions.internal.downloadVideo,ze=R.actions.internal.closeSettingsMenu,$e=!0,nt=!1,et=!1,ge=!1,Ke=!1,lt=!1;function ut(){o||X?.(),ze(),lt=!1}function pt(){t(11,$e=!1),t(12,nt=!0)}function St(){t(11,$e=!1),t(15,Ke=!0)}function Re(se){R.actions.internal.setQuality(se),ut()}function zt(se){R.actions.internal.setTrafficSavingEnabled(se),ut()}function At(){t(11,$e=!1),t(13,et=!0)}function pe(se){R.actions.internal.setPlaybackRate(se),ut()}function wt(){t(11,$e=!1),t(14,ge=!0)}function Oe(se){R.actions.internal.setSubtitle(se),ut()}function ot(){t(11,$e=!0),t(12,nt=!1),t(13,et=!1),t(14,ge=!1),t(15,Ke=!1)}function st(){ke(),ut()}function ct(){window.open(Y,"_blank"),ut(),R.actions.internal.pause()}function Ut(){_r(R.actions.internal.getDebugTextData()),ut()}function mi(){oe.set(!0),ut()}function pi(){lt=!0}function Ki(){lt=!1}function en(se,it,Ft){if(!se)return"...";let xt=it.find(Ai=>Ai.value===se),Mi=xt?xt.displayValue:se;return Ft?se===H1.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:Mi}):Mi}let ti,ii,hi,qt,ni;function Wi(se=0,it=!1){return l&&U&&it?`max-height: ${Math.round(ee.height*.6)}px`:l?"":`max-height: ${$.height-ab-se-J}px; overflow: auto;`}let bi,_i,oi,gi,ri,vi,yi,kt,Bt,Kt,li=Pe(!1);D(i,li,se=>t(101,b=se));let Vt,si,Wt=Pe(!1);D(i,Wt,se=>t(100,f=se));let Xt,Pt,Tt=Pe(!1);D(i,Tt,se=>t(99,a=se));let Rt,Zt,ai=Pe(!1);D(i,ai,se=>t(98,r=se));let ln=se=>{rl(se,ze)},Zi=async se=>{vr(se,pt,()=>{let it=v.findIndex(Ft=>Ft.selected);return Kt.childNodes[it]})},jt=async se=>{yr(se,ot,li,ze)},Jt=(se,it)=>{qi(se,()=>Re(it))},ki=async se=>{vr(se,At,()=>{let it=p.findIndex(Ft=>Ft.selected);return si.childNodes[it]})},Li=async se=>{yr(se,ot,Wt,ze)},Nt=(se,it)=>{qi(se,()=>pe(it))},ht=async se=>{vr(se,wt,()=>{let it=c.findIndex(Ft=>Ft.selected);return Pt.childNodes[it]})},wi=async se=>{yr(se,ot,Tt,ze)},ji=(se,it)=>{qi(se,()=>Oe(it))},$t=async se=>{vr(se,St,()=>{let it=s?2:0;return Zt.childNodes[it]})},Gi=async se=>{yr(se,ot,ai,ze)},ui=(se,it)=>{qi(se,()=>zt(it))},tn=se=>{qi(se,()=>st())},xi=se=>{qi(se,()=>ct())},nn=se=>{qi(se,()=>Ut())},Bi=se=>{qi(se,()=>mi())};gt(()=>{let se=ue.subscribe(it=>{it&&!l&&!lt&&!o&&ut()});return()=>{se()}});function Ci(se){me[se?"unshift":"push"](()=>{Bt=se,t(1,Bt)})}function Dt(se){me[se?"unshift":"push"](()=>{Vt=se,t(2,Vt)})}function Gt(se){me[se?"unshift":"push"](()=>{Xt=se,t(3,Xt)})}function ci(se){me[se?"unshift":"push"](()=>{Rt=se,t(4,Rt)})}function Ri(se){me[se?"unshift":"push"](()=>{G=se,t(0,G)})}function Ni(se){me[se?"unshift":"push"](()=>{ii=se,t(17,ii)})}let fi=se=>Re(se.value),Si=(se,it)=>Jt(it,se.value);function Pi(se){me[se?"unshift":"push"](()=>{Kt=se,t(29,Kt)})}function Ue(se){me[se?"unshift":"push"](()=>{hi=se,t(18,hi)})}let Di=se=>pe(se.value),Lt=(se,it)=>Nt(it,se.value);function Ve(se){me[se?"unshift":"push"](()=>{si=se,t(30,si)})}function Ti(se){me[se?"unshift":"push"](()=>{qt=se,t(19,qt)})}let Qi=()=>zt(!1),Oi=se=>ui(se,!1),Ii=()=>zt(!0),on=se=>ui(se,!0);function Ei(se){me[se?"unshift":"push"](()=>{Zt=se,t(32,Zt)})}function Yi(se){me[se?"unshift":"push"](()=>{ni=se,t(20,ni)})}let Ot=se=>Oe(se),Xi=(se,it)=>ji(it,se);function ei(se){me[se?"unshift":"push"](()=>{Pt=se,t(31,Pt)})}return i.$$set=se=>{"ref"in se&&t(0,G=se.ref),"supportLink"in se&&t(95,Y=se.supportLink),"playerControlsHeight"in se&&t(96,J=se.playerControlsHeight),"returnFocus"in se&&t(97,X=se.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1024)e:re&&(t(11,$e=!0),t(12,nt=!1),t(13,et=!1),t(14,ge=!1),t(15,Ke=!1));if(i.$$.dirty[3]&512)e:t(33,n=lo(w));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,ti=en(w,v,P));if(i.$$.dirty[3]&18432)e:t(21,bi=Q&&E&&!M);if(i.$$.dirty[3]&10240)e:t(22,_i=Z.features.trafficSaving&&!M&&I);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,oi=c.length>0&&!M);if(i.$$.dirty[3]&6144)e:t(24,gi=!!C&&!M);if(i.$$.dirty[3]&2048)e:t(25,ri=!M);if(i.$$.dirty[0]&32)e:t(26,vi=s?z("traffic_saving_on"):z("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,yi=P?z("auto_quality_option"):w);if(i.$$.dirty[0]&640)e:t(28,kt=p.find(se=>se.value===g)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:gr(Bt,li,b);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:gr(Vt,Wt,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:gr(Xt,Tt,a);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:gr(Rt,ai,r)},[G,Bt,Vt,Xt,Rt,s,c,p,v,g,re,$e,nt,et,ge,Ke,ti,ii,hi,qt,ni,bi,_i,oi,gi,ri,vi,yi,kt,Kt,si,Pt,Zt,n,l,ie,S,Z,B,j,Ie,De,Le,qe,Te,he,_e,Ae,He,Ge,be,Ce,Be,Ze,le,oe,ye,ut,pt,St,Re,zt,At,pe,wt,Oe,ot,st,ct,Ut,mi,pi,Ki,Wi,li,Wt,Tt,ai,ln,Zi,jt,Jt,ki,Li,Nt,ht,wi,ji,$t,Gi,ui,tn,xi,nn,Bi,Y,J,X,r,a,f,b,w,P,M,C,I,E,Ci,Dt,Gt,ci,Ri,Ni,fi,Si,Pi,Ue,Di,Lt,Ve,Ti,Qi,Oi,Ii,on,Ei,Yi,Ot,Xi,ei]}var ba=class extends K{constructor(e){super(),W(this,e,ub,sb,q,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},rb,[-1,-1,-1,-1,-1])}},bl=ba;function cb(i){ve(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function fb(i){let e,t,n;return t=new pl({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),H(t.$$.fragment),u(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function db(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[fb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&2&&(a.className=r[1]?"opened":""),s&4&&(a.ariaLabel=r[2]),s&2&&(a.ariaExpanded=r[1]),s&4120&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function mb(i,e,t){let n,o,l,{ref:r=void 0}=e,s=je(),a=s.state.currentQuality$;D(i,a,w=>t(4,l=w));let c=s.ui.settingsMenuVisible;D(i,c,w=>t(1,n=w));let f=s.actions.internal.toggleSettingsMenu,p=s.ui.isMobile;D(i,p,w=>t(3,o=w));let b;function v(w){let P=xo(w);f(P)}function g(w){r=w,t(0,r)}return i.$$set=w=>{"ref"in w&&t(0,r=w.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,b=n?z("tooltip_settings_on"):z("tooltip_settings_off"))},[r,n,b,o,l,a,c,p,v,g]}var _a=class extends K{constructor(e){super(),W(this,e,mb,db,q,{ref:0},cb)}},wr=_a;function pb(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var ga=class extends K{constructor(e){super(),W(this,e,null,pb,q,{})}},z1=ga;function hb(i){let e,t;return e=new hl({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function bb(i){let e,t;return e=new z1({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function _b(i){let e,t,n,o,l=[bb,hb],r=[];function s(a,c){return a[0]?0:1}return e=s(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=Ye()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,c){let f=e;e=s(a,c),e!==f&&(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t||(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){h(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function gb(i){let e,t;return e=new rt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:On.KeyC,$$slots:{default:[_b]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function vb(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,l=n?z("tooltip_subtitles_on"):z("tooltip_subtitles_off"))},[n,o,l]}var va=class extends K{constructor(e){super(),W(this,e,vb,gb,q,{isSubtitlesEnabled:0,click:1})}},U1=va;function yb(i){ve(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function q1(i){let e,t;return{c(){e=T("span"),t=Se(i[3]),u(e,"class","duration svelte-19o2urr")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o&8&&Fe(t,n[3])},d(n){n&&y(e)}}}function kb(i){let e,t,n,o,l=i[2]&&q1(i);return{c(){e=T("div"),t=T("span"),n=Se(i[4]),o=N(),l&&l.c(),u(t,"class","current svelte-19o2urr"),u(e,"class","time svelte-19o2urr"),V(e,"mobile",i[1])},m(r,s){k(r,e,s),d(e,t),d(t,n),d(e,o),l&&l.m(e,null),i[7](e)},p(r,[s]){s&16&&Fe(n,r[4]),r[2]?l?l.p(r,s):(l=q1(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),s&2&&V(e,"mobile",r[1])},i:L,o:L,d(r){r&&y(e),l&&l.d(),i[7](null)}}}function wb(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:s}=e,a,c;function f(p){me[p?"unshift":"push"](()=>{s=p,t(0,s)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,l=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,s=p.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=pn(o));if(i.$$.dirty&64)e:t(4,c=pn(l))},[s,n,r,a,c,o,l,f]}var ya=class extends K{constructor(e){super(),W(this,e,wb,kb,q,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},yb)}},_l=ya;var Wn=require("@vkontakte/videoplayer-shared");function Cb(i){ve(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function Sb(i){let e,t,n,o,l,r;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("path"),u(n,"class","wave2 svelte-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 svelte-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(l,"class","cross svelte-1n5yyua"),u(l,"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(t,"fill","#fff"),u(t,"fill-rule","evenodd"),u(e,"data-value",i[0]),u(e,"data-testid",r="volume-"+i[0]+"-icon"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","icon svelte-1n5yyua"),u(e,"aria-hidden","true")},m(s,a){k(s,e,a),d(e,t),d(t,n),d(t,o),d(t,l)},p(s,[a]){a&1&&u(e,"data-value",s[0]),a&1&&r!==(r="volume-"+s[0]+"-icon")&&u(e,"data-testid",r)},i:L,o:L,d(s){s&&y(e)}}}function Pb(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,l=(s,a)=>a?"off":s>.5?"max":s>.2?"mid":s>0?"min":"off",r;return i.$$set=s=>{"volume"in s&&t(1,n=s.volume),"muted"in s&&t(2,o=s.muted)},i.$$.update=()=>{if(i.$$.dirty&6)e:t(0,r=l(n,o))},[r,n,o]}var ka=class extends K{constructor(e){super(),W(this,e,Pb,Sb,q,{volume:1,muted:2},Cb)}},Mo=ka;var Cn=require("@vkontakte/videoplayer-shared");var j1=require("@vkontakte/videoplayer-shared");var Z1=require("@vkontakte/videoplayer-shared");function Tb(i){let e,t,n=i[4].default,o=Fi(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),u(e,"class","overlay")},m(l,r){k(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&zi(o,n,l,l[3],t?Hi(n,l[3],r,null):Ui(l[3]),null)},i(l){t||(m(o,l),t=!0)},o(l){h(o,l),t=!1},d(l){l&&y(e),o&&o.d(l),i[5](null)}}}function Ib(i,e,t){let n,{$$slots:o={},$$scope:l}=e,s=je().ui.overlayContainer$;D(i,s,b=>t(2,n=b));let a,c=b=>{!b||!a||!b.contains(a)||b.removeChild(a)},f=b=>{!b||!a||b.contains(a)||b.appendChild(a)};gt(()=>(f(n),()=>c(n)));function p(b){me[b?"unshift":"push"](()=>{a=b,t(0,a)})}return i.$$set=b=>{"$$scope"in b&&t(3,l=b.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:f(n)},[a,s,n,l,o,p]}var wa=class extends K{constructor(e){super(),W(this,e,Ib,Tb,q,{})}},K1=wa;function Eb(i){ve(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function W1(i){let e,t;return e=new K1({props:{$$slots:{default:[Mb]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&2097395&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Mb(i){let e,t,n,o,l,r,s;return{c(){e=T("div"),t=T("div"),n=Se(i[1]),o=N(),l=T("div"),u(t,"class","content svelte-tny135"),u(l,"class","tooltip-pointer svelte-tny135"),u(l,"style",r=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),V(l,"bottom-placement-pointer",!i[8]),u(e,"class","tooltip svelte-tny135"),u(e,"style",s=`transform: translate(${i[6]}px, ${i[7]}px);`),V(e,"active",i[0])},m(a,c){k(a,e,c),d(e,t),d(t,n),d(e,o),d(e,l),i[20](e)},p(a,c){c&2&&Fe(n,a[1]),c&32&&r!==(r=`transform: translate(${a[5]}px, ${a[9]}px) rotate(${a[8]?0:"180deg"});`)&&u(l,"style",r),c&192&&s!==(s=`transform: translate(${a[6]}px, ${a[7]}px);`)&&u(e,"style",s),c&1&&V(e,"active",a[0])},d(a){a&&y(e),i[20](null)}}}function Ab(i){let e,t,n,o,l,r,s=i[18].default,a=Fi(s,i,i[21],null),c=i[1]&&W1(i);return{c(){e=T("div"),a&&a.c(),t=N(),c&&c.c(),n=Ye(),u(e,"class","tooltip-wrapper svelte-tny135"),V(e,"full-width",i[2])},m(f,p){k(f,e,p),a&&a.m(e,null),i[19](e),k(f,t,p),c&&c.m(f,p),k(f,n,p),o=!0,l||(r=[de(e,"mouseenter",i[12]),de(e,"mousemove",i[12]),de(e,"mouseleave",i[13]),de(e,"mousedown",i[13]),de(e,"mouseup",i[12])],l=!0)},p(f,[p]){a&&a.p&&(!o||p&2097152)&&zi(a,s,f,f[21],o?Hi(s,f[21],p,null):Ui(f[21]),null),(!o||p&4)&&V(e,"full-width",f[2]),f[1]?c?(c.p(f,p),p&2&&m(c,1)):(c=W1(f),c.c(),m(c,1),c.m(n.parentNode,n)):c&&(ce(),h(c,1,1,()=>{c=null}),fe())},i(f){o||(m(a,f),m(c),o=!0)},o(f){h(a,f),h(c),o=!1},d(f){f&&(y(e),y(t),y(n)),a&&a.d(f),i[19](null),c&&c.d(f),l=!1,xe(r)}}}var Cr=5;function Vb(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{content:s=""}=e,{active:a=!1}=e,{translateX:c=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:b="top"}=e,{onVisibilityChange:v=Z1.noop}=e,g=b==="top",w,P,M,C=0,I=g?Cr:-Cr,E=0,$=0,ee=Ct(),U=je(),re=U.ui.playerSize;D(i,re,j=>t(24,o=j));let ie=U.ui.overlayContainer$;D(i,ie,j=>t(23,n=j));let S=U.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n||!P||!w)return;let j=n.getBoundingClientRect(),Ie=w.getBoundingClientRect(),De=Ie.width,Le=P.clientWidth,qe=o.width,Te=(De-Le)/2,he=Ie.left+c-j.left,Q=he+Te,_e=Ie.top+f-j.top,Ae=Le/2-Cr,He=Q<8,Ge=Q+Le>qe-8;He&&(Q=8,Ae=he+Ie.width/2-2.5*Cr),Ge&&(Q=qe-8-Le,Ae=Ie.left-j.left+Ie.width/2-Q-Cr),t(6,E=Q),t(7,$=_e),t(5,C=Ae)},Y=()=>{try{if(!n||!w)return;G(),t(0,a=!0)}catch(j){S({message:String(j)})}},J=()=>{t(0,a=!1)},X=()=>{P&&(M||(M=window.setTimeout(Y,ee.controls.hideTimeoutTooltips)),a&&Y())},R=()=>{J(),window.clearTimeout(M),M=void 0};gt(G),Mn(()=>window.clearTimeout(M));function Z(j){me[j?"unshift":"push"](()=>{w=j,t(3,w)})}function B(j){me[j?"unshift":"push"](()=>{P=j,t(4,P)})}return i.$$set=j=>{"content"in j&&t(1,s=j.content),"active"in j&&t(0,a=j.active),"translateX"in j&&t(14,c=j.translateX),"translateY"in j&&t(15,f=j.translateY),"isFullWidthWrapper"in j&&t(2,p=j.isFullWidthWrapper),"placement"in j&&t(16,b=j.placement),"onVisibilityChange"in j&&t(17,v=j.onVisibilityChange),"$$scope"in j&&t(21,r=j.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:v(a)},[a,s,p,w,P,C,E,$,g,I,re,ie,X,R,c,f,b,v,l,Z,B,r]}var Ca=class extends K{constructor(e){super(),W(this,e,Vb,Ab,q,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Eb)}},gl=Ca;function Lb(i){ve(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function Bb(i){let e,t=i[19].default,n=Fi(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&zi(n,t,o,o[24],e?Hi(t,o[24],l,null):Ui(o[24]),null)},i(o){e||(m(n,o),e=!0)},o(o){h(n,o),e=!1},d(o){n&&n.d(o)}}}function Rb(i){let e,t;return e=new gl({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[Nb]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&4096&&(l.content=n[12]),o&1024&&(l.translateX=n[10]),o&2048&&(l.translateY=n[11]),o&16&&(l.isFullWidthWrapper=n[4]),o&64&&(l.active=n[6]),o&128&&(l.placement=n[7]),o&512&&(l.onVisibilityChange=n[9]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Nb(i){let e,t=i[19].default,n=Fi(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&zi(n,t,o,o[24],e?Hi(t,o[24],l,null):Ui(o[24]),null)},i(o){e||(m(n,o),e=!0)},o(o){h(n,o),e=!1},d(o){n&&n.d(o)}}}function Db(i){let e,t,n,o,l,r,s,a,c,f=[Rb,Bb],p=[];function b(v,g){return v[3]&&v[5]&&!v[13]?0:1}return t=b(i,-1),n=p[t]=f[t](i),{c(){e=T("div"),n.c(),u(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),u(e,"aria-hidden",l=i[8]||null),An(()=>i[23].call(e))},m(v,g){k(v,e,g),p[t].m(e,null),i[22](e),r=Oo(e,i[23].bind(e)),s=!0,a||(c=[de(e,"pointerdown",Je(bt(i[20]))),de(e,"click",Je(bt(i[21])))],a=!0)},p(v,[g]){let w=t;t=b(v,g),t===w?p[t].p(v,g):(ce(),h(p[w],1,1,()=>{p[w]=null}),fe(),n=p[t],n?n.p(v,g):(n=p[t]=f[t](v),n.c()),m(n,1),n.m(e,null)),(!s||g&4&&o!==(o="btn-container "+v[2]+" svelte-p9r045"))&&u(e,"class",o),(!s||g&256&&l!==(l=v[8]||null))&&u(e,"aria-hidden",l)},i(v){s||(m(n),s=!0)},o(v){h(n),s=!1},d(v){v&&y(e),p[t].d(),i[22](null),r(),a=!1,xe(c)}}}function Ob(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:s=""}=e,{disabled:a=!1}=e,{hasTooltip:c=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:b=!0}=e,{tooltipContent:v=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:P=z("tooltip_button_disabled")}=e,{isAriaHidden:M=!1}=e,{onTooltipVisibilityChange:C=j1.noop}=e,{initialTranslateXPx:I=0}=e,{initialTranslateYPx:E=-18}=e,$=je(),ee=$.ui.isMobile;D(i,ee,J=>t(13,o=J));let U=$.state.graphIsOpened$;D(i,U,J=>t(18,n=J));let re;function ie(J){mn.call(this,i,J)}function S(J){mn.call(this,i,J)}function G(J){me[J?"unshift":"push"](()=>{f=J,t(0,f)})}function Y(){p=this.clientWidth,t(1,p)}return i.$$set=J=>{"className"in J&&t(2,s=J.className),"disabled"in J&&t(16,a=J.disabled),"hasTooltip"in J&&t(3,c=J.hasTooltip),"ref"in J&&t(0,f=J.ref),"width"in J&&t(1,p=J.width),"isFullWidthTooltip"in J&&t(4,b=J.isFullWidthTooltip),"tooltipContent"in J&&t(5,v=J.tooltipContent),"tooltipActive"in J&&t(6,g=J.tooltipActive),"tooltipPlacement"in J&&t(7,w=J.tooltipPlacement),"disabledTooltipContent"in J&&t(17,P=J.disabledTooltipContent),"isAriaHidden"in J&&t(8,M=J.isAriaHidden),"onTooltipVisibilityChange"in J&&t(9,C=J.onTooltipVisibilityChange),"initialTranslateXPx"in J&&t(10,I=J.initialTranslateXPx),"initialTranslateYPx"in J&&t(11,E=J.initialTranslateYPx),"$$scope"in J&&t(24,r=J.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:a?t(12,re=n?z("tooltip_disabled_when_graph_on"):P):t(12,re=v)},[f,p,s,c,b,v,g,w,M,C,I,E,re,o,ee,U,a,P,n,l,ie,S,G,Y,r]}var Sa=class extends K{constructor(e){super(),W(this,e,Ob,Db,q,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},Lb)}},yt=Sa;function Fb(i){let e,t,n,o,l;return{c(){e=A("svg"),t=A("rect"),o=A("path"),u(t,"width","20"),u(t,"height","20"),u(t,"rx","10"),u(t,"fill","white"),u(t,"fill-opacity",n=i[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",l=i[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(r,s){k(r,e,s),d(e,t),d(e,o)},p(r,[s]){s&1&&n!==(n=r[0]?1:.24)&&u(t,"fill-opacity",n),s&1&&l!==(l=r[0]?"var(--interactive-episode-complete)":"white")&&u(o,"fill",l)},i:L,o:L,d(r){r&&y(e)}}}function Hb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Pa=class extends K{constructor(e){super(),W(this,e,Hb,Fb,q,{completed:0})}},vl=Pa;function zb(i){ve(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function Ub(i){let e,t,n,o,l;return t=new vl({props:{completed:!!i[0].completed}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","interactive-episode-icon svelte-bklhpe"),u(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),An(()=>i[3].call(e)),V(e,"disabled",i[1])},m(r,s){k(r,e,s),O(t,e,null),o=Oo(e,i[3].bind(e)),l=!0},p(r,s){let a={};s&1&&(a.completed=!!r[0].completed),t.$set(a),(!l||s&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&u(e,"style",n),(!l||s&2)&&V(e,"disabled",r[1])},i(r){l||(m(t.$$.fragment,r),l=!0)},o(r){h(t.$$.fragment,r),l=!1},d(r){r&&y(e),F(t),o()}}}function qb(i){let e,t;return e=new yt({props:{tooltipContent:z(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[Ub]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=z(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Kb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,t(2,l)}return i.$$set=s=>{"videoEpisode"in s&&t(0,n=s.videoEpisode),"disabled"in s&&t(1,o=s.disabled)},[n,o,l,r]}var Ta=class extends K{constructor(e){super(),W(this,e,Kb,qb,q,{videoEpisode:0,disabled:1},zb)}},G1=Ta;function Wb(i){ve(i,"svelte-1h9p3m2",".video-episodes-wrap.svelte-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.svelte-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.svelte-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1h9p3m2,.video-episode-loaded.svelte-1h9p3m2,.video-episode-filled.svelte-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-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.svelte-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function x1(i,e,t){let n=i.slice();return n[2]=e[t],n}function Q1(i){let e,t,n,o,l,r,s,a,c;return{c(){e=T("div"),t=T("div"),n=T("div"),l=N(),r=T("div"),a=N(),u(n,"class","video-episode-loaded svelte-1h9p3m2"),u(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),u(r,"class","video-episode-filled svelte-1h9p3m2"),u(r,"style",s=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),V(r,"mobile",i[1]),u(t,"class","video-episode-inner svelte-1h9p3m2"),u(e,"class","video-episode svelte-1h9p3m2"),u(e,"style",c=`left: ${i[2].from}%; width: ${i[2].width}%`),V(e,"mobile",i[1])},m(f,p){k(f,e,p),d(e,t),d(t,n),d(t,l),d(t,r),d(e,a)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&u(n,"style",o),p&1&&s!==(s=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(r,"style",s),p&2&&V(r,"mobile",f[1]),p&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),p&2&&V(e,"mobile",f[1])},d(f){f&&y(e)}}}function Zb(i){let e,t=ft(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Q1(x1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,l){k(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&3){t=ft(o[0]);let r;for(r=0;r<t.length;r+=1){let s=x1(o,t,r);n[r]?n[r].p(s,l):(n[r]=Q1(s),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:L,o:L,d(o){o&&y(e),Vi(n,o)}}}function jb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile)},[n,o]}var Ia=class extends K{constructor(e){super(),W(this,e,jb,Zb,q,{videoEpisodes:0,isMobile:1},Wb)}},Y1=Ia;function Gb(i){ve(i,"svelte-1golz1y",".interactive-icons.svelte-1golz1y.svelte-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-1golz1y.svelte-1golz1y{top:-10px}.slider.svelte-1golz1y.svelte-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.svelte-1golz1y.svelte-1golz1y{cursor:default}.slider.svelte-1golz1y.svelte-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.svelte-1golz1y.svelte-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-1golz1y.svelte-1golz1y,.slider.square.svelte-1golz1y>.bars.svelte-1golz1y,.slider.square.svelte-1golz1y .loaded.svelte-1golz1y,.slider.square.svelte-1golz1y .filled.svelte-1golz1y{border-radius:unset}.filled.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%}.handle.svelte-1golz1y.svelte-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.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-1golz1y:hover .handle.svelte-1golz1y,.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{transform:scale(1.3)}.slider-vertical.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-1golz1y.svelte-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function X1(i,e,t){let n=i.slice();return n[48]=e[t],n}function J1(i){let e,t,n=ft(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=ed(X1(i,n,r));let l=r=>h(o[r],1,1,()=>{o[r]=null});return{c(){e=T("div");for(let r=0;r<o.length;r+=1)o[r].c();u(e,"class","interactive-icons svelte-1golz1y"),V(e,"mobile",i[5]),V(e,"hidden",i[5]&&!i[20])},m(r,s){k(r,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);t=!0},p(r,s){if(s[0]&2097664){n=ft(r[21]);let a;for(a=0;a<n.length;a+=1){let c=X1(r,n,a);o[a]?(o[a].p(c,s),m(o[a],1)):(o[a]=ed(c),o[a].c(),m(o[a],1),o[a].m(e,null))}for(ce(),a=n.length;a<o.length;a+=1)l(a);fe()}(!t||s[0]&32)&&V(e,"mobile",r[5]),(!t||s[0]&1048608)&&V(e,"hidden",r[5]&&!r[20])},i(r){if(!t){for(let s=0;s<n.length;s+=1)m(o[s]);t=!0}},o(r){o=o.filter(Boolean);for(let s=0;s<o.length;s+=1)h(o[s]);t=!1},d(r){r&&y(e),Vi(o,r)}}}function $1(i){let e,t;return e=new G1({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[48]),o[0]&512&&(l.disabled=n[9]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ed(i){let e,t,n=i[48].interactive&&$1(i);return{c(){n&&n.c(),e=Ye()},m(o,l){n&&n.m(o,l),k(o,e,l),t=!0},p(o,l){o[48].interactive?n?(n.p(o,l),l[0]&2097152&&m(n,1)):(n=$1(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ce(),h(n,1,1,()=>{n=null}),fe())},i(o){t||(m(n),t=!0)},o(o){h(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function xb(i){let e,t,n,o,l,r;return{c(){e=T("div"),t=T("div"),o=N(),l=T("div"),u(t,"class","loaded svelte-1golz1y"),u(t,"style",n=`transform: translateX(${i[11]*100}%);`),u(l,"class","filled svelte-1golz1y"),u(l,"style",r=`transform: translateX(${i[12]*100}%);`),V(l,"active-live",i[4]),V(l,"ads",i[6]),u(e,"class","bars svelte-1golz1y")},m(s,a){k(s,e,a),d(e,t),d(e,o),d(e,l)},p(s,a){a[0]&2048&&n!==(n=`transform: translateX(${s[11]*100}%);`)&&u(t,"style",n),a[0]&4096&&r!==(r=`transform: translateX(${s[12]*100}%);`)&&u(l,"style",r),a[0]&16&&V(l,"active-live",s[4]),a[0]&64&&V(l,"ads",s[6])},i:L,o:L,d(s){s&&y(e)}}}function Qb(i){let e,t;return e=new Y1({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&32&&(l.isMobile=n[5]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Yb(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g=i[8]&&J1(i),w=[Qb,xb],P=[];function M(C,I){return C[21].length?0:1}return n=M(i,[-1,-1]),o=P[n]=w[n](i),{c(){g&&g.c(),e=N(),t=T("div"),o.c(),l=N(),r=T("div"),s=T("div"),u(s,"class","handle svelte-1golz1y"),V(s,"active-live",i[4]),u(r,"class","handleWrap svelte-1golz1y"),u(r,"style",a=`transform: translateX(${i[13]*100}%);`),V(r,"hidden",i[10]),u(t,"class",c="slider "+i[0]+" svelte-1golz1y"),u(t,"aria-label",i[14]),u(t,"aria-valuemin",i[15]),u(t,"aria-valuemax",i[16]),u(t,"aria-valuenow",i[17]),u(t,"aria-valuetext",i[18]),u(t,"role","slider"),u(t,"tabindex","0"),u(t,"data-testid",f=i[1]??null),V(t,"disabled",i[9]),V(t,"slider-dragging",i[20]),V(t,"hidden",i[2]),V(t,"slider-vertical",i[3]),V(t,"no-handle",i[10]),V(t,"square",i[7])},m(C,I){g&&g.m(C,I),k(C,e,I),k(C,t,I),P[n].m(t,null),d(t,l),d(t,r),d(r,s),i[42](t),p=!0,b||(v=[de(t,"pointerdown",bt(i[22])),de(t,"pointermove",bt(i[23])),de(t,"pointerup",bt(i[24])),de(t,"pointerenter",bt(i[25])),de(t,"pointerleave",bt(i[26])),de(t,"click",Je(Cn.noop)),de(t,"wheel",i[27])],b=!0)},p(C,I){C[8]?g?(g.p(C,I),I[0]&256&&m(g,1)):(g=J1(C),g.c(),m(g,1),g.m(e.parentNode,e)):g&&(ce(),h(g,1,1,()=>{g=null}),fe());let E=n;n=M(C,I),n===E?P[n].p(C,I):(ce(),h(P[E],1,1,()=>{P[E]=null}),fe(),o=P[n],o?o.p(C,I):(o=P[n]=w[n](C),o.c()),m(o,1),o.m(t,l)),(!p||I[0]&16)&&V(s,"active-live",C[4]),(!p||I[0]&8192&&a!==(a=`transform: translateX(${C[13]*100}%);`))&&u(r,"style",a),(!p||I[0]&1024)&&V(r,"hidden",C[10]),(!p||I[0]&1&&c!==(c="slider "+C[0]+" svelte-1golz1y"))&&u(t,"class",c),(!p||I[0]&16384)&&u(t,"aria-label",C[14]),(!p||I[0]&32768)&&u(t,"aria-valuemin",C[15]),(!p||I[0]&65536)&&u(t,"aria-valuemax",C[16]),(!p||I[0]&131072)&&u(t,"aria-valuenow",C[17]),(!p||I[0]&262144)&&u(t,"aria-valuetext",C[18]),(!p||I[0]&2&&f!==(f=C[1]??null))&&u(t,"data-testid",f),(!p||I[0]&513)&&V(t,"disabled",C[9]),(!p||I[0]&1048577)&&V(t,"slider-dragging",C[20]),(!p||I[0]&5)&&V(t,"hidden",C[2]),(!p||I[0]&9)&&V(t,"slider-vertical",C[3]),(!p||I[0]&1025)&&V(t,"no-handle",C[10]),(!p||I[0]&129)&&V(t,"square",C[7])},i(C){p||(m(g),m(o),p=!0)},o(C){h(g),h(o),p=!1},d(C){C&&(y(e),y(t)),g&&g.d(C),P[n].d(),i[42](null),b=!1,xe(v)}}}function Xb(i,e,t){let n,o,{className:l=""}=e,{testId:r=void 0}=e,{isHidden:s=!1}=e,{isVertical:a=!1}=e,{isActiveLive:c=!1}=e,{isMobile:f=!1}=e,{isAds:p=!1}=e,{squareBorders:b=!1}=e,{videoEpisodes:v=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:w=!1}=e,{disabled:P=!1}=e,{hideHandel:M=!1}=e,C,I,{onPointerDown:E=Cn.noop}=e,{onHandleMove:$=Cn.noop}=e,{onPointerUp:ee=Cn.noop}=e,{onPointerEnter:U=Cn.noop}=e,{onPointerMove:re=Cn.noop}=e,{onPointerLeave:ie=Cn.noop}=e,{onWheelUp:S=Cn.noop}=e,{onWheelDown:G=Cn.noop}=e,{onWheelLeft:Y=Cn.noop}=e,{onWheelRight:J=Cn.noop}=e,{loadedProgress:X=0}=e,{filledProgress:R=0}=e,{handleProgress:Z=0}=e,{ariaLabel:B=""}=e,{ariaValueMin:j=void 0}=e,{ariaValueMax:Ie=void 0}=e,{ariaValueNow:De=void 0}=e,{ariaValueText:Le=""}=e,qe=Ct(),Te=!1,he;function Q(oe){if(Te)return;t(20,Te=!0),I=C.getBoundingClientRect();let ye=Ce(oe.clientX,oe.clientY);E(ye),C.setPointerCapture(oe.pointerId)}function _e(oe){let ye=Ce(oe.clientX,oe.clientY),ue=Be(oe.clientX);re(ye,ue,I.width),Te&&$(ye)}function Ae(oe){if(!Te)return;t(20,Te=!1);let ye=Ce(oe.clientX,oe.clientY);ee(ye)}function He(oe){I=C.getBoundingClientRect();let ye=Ce(oe.clientX,oe.clientY),ue=Be(oe.clientX);U(ye,ue,I.width)}function Ge(){ie()}function be(oe){g&&(oe.preventDefault(),oe.deltaY<0?S():oe.deltaY>0?G():oe.deltaX>0?J():Y())}function Ce(oe,ye){return a?Math.max(0,Math.min(1,(I.height-(ye-I.top))/I.height)):Math.min(Math.max(oe-I.x,0),I.width)/I.width}function Be(oe){return Math.min(Math.max(oe-I.x,0),I.width)}function Ze(oe,ye){let ue=qe.features.episodesClustering&&!w?qe.episodeMinWidthPc:0,ke=[],ze=0,$e=0,nt=0;for(let Ke=1;Ke<v.length;Ke++)$e=v[Ke].time/he*100,$e-ze>ue&&(ke.push({from:ze,width:Math.max(0,$e-ze),loadedWidth:Math.max(0,Math.min($e,oe)-ze),filledWidth:Math.max(0,Math.min($e,ye)-ze),interactive:v[Ke-1].interactive,completed:v[Ke-1].completed}),ze=v[Ke].time/he*100,nt++);let et={from:ze,width:Math.max(0,100-ze),loadedWidth:Math.max(0,Math.min(oe,100)-ze),filledWidth:Math.max(0,Math.min(ye,100)-ze),interactive:v[nt].interactive,completed:v[nt].completed};100-ze<ue?(nt-=1,ke[nt].width+=100-ze,ke[nt].loadedWidth+=Math.max(0,Math.min(oe,100)-ze),ke[nt].filledWidth+=Math.max(0,Math.min(ye,100)-ze)):ke[nt]=et;let ge=v[0].time;if(ge!==0){let Ke=ge/he*100;ke.unshift({from:0,width:Ke,loadedWidth:Math.min(Ke,oe),filledWidth:Math.min(Ke,ye)})}return ke}function le(oe){me[oe?"unshift":"push"](()=>{C=oe,t(19,C)})}return i.$$set=oe=>{"className"in oe&&t(0,l=oe.className),"testId"in oe&&t(1,r=oe.testId),"isHidden"in oe&&t(2,s=oe.isHidden),"isVertical"in oe&&t(3,a=oe.isVertical),"isActiveLive"in oe&&t(4,c=oe.isActiveLive),"isMobile"in oe&&t(5,f=oe.isMobile),"isAds"in oe&&t(6,p=oe.isAds),"squareBorders"in oe&&t(7,b=oe.squareBorders),"videoEpisodes"in oe&&t(28,v=oe.videoEpisodes),"withWheelHandler"in oe&&t(29,g=oe.withWheelHandler),"isInteractive"in oe&&t(8,w=oe.isInteractive),"disabled"in oe&&t(9,P=oe.disabled),"hideHandel"in oe&&t(10,M=oe.hideHandel),"onPointerDown"in oe&&t(30,E=oe.onPointerDown),"onHandleMove"in oe&&t(31,$=oe.onHandleMove),"onPointerUp"in oe&&t(32,ee=oe.onPointerUp),"onPointerEnter"in oe&&t(33,U=oe.onPointerEnter),"onPointerMove"in oe&&t(34,re=oe.onPointerMove),"onPointerLeave"in oe&&t(35,ie=oe.onPointerLeave),"onWheelUp"in oe&&t(36,S=oe.onWheelUp),"onWheelDown"in oe&&t(37,G=oe.onWheelDown),"onWheelLeft"in oe&&t(38,Y=oe.onWheelLeft),"onWheelRight"in oe&&t(39,J=oe.onWheelRight),"loadedProgress"in oe&&t(11,X=oe.loadedProgress),"filledProgress"in oe&&t(12,R=oe.filledProgress),"handleProgress"in oe&&t(13,Z=oe.handleProgress),"ariaLabel"in oe&&t(14,B=oe.ariaLabel),"ariaValueMin"in oe&&t(15,j=oe.ariaValueMin),"ariaValueMax"in oe&&t(16,Ie=oe.ariaValueMax),"ariaValueNow"in oe&&t(17,De=oe.ariaValueNow),"ariaValueText"in oe&&t(18,Le=oe.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&65536)e:t(40,he=Ie??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=v[v.length-1]?.time<he);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=v.length&&n&&he?Ze(X*100,R*100):[])},[l,r,s,a,c,f,p,b,w,P,M,X,R,Z,B,j,Ie,De,Le,C,Te,o,Q,_e,Ae,He,Ge,be,v,g,E,$,ee,U,re,ie,S,G,Y,J,he,n,le]}var Ea=class extends K{constructor(e){super(),W(this,e,Xb,Yb,q,{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},Gb,[-1,-1])}},$o=Ea;var hn=(i,e)=>yo[i]>=yo[e],td=(i,e)=>yo[i]<yo[e],yl=(i,e)=>yo[i]<=yo[e],id=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Jb(i){ve(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function $b(i){let e,t;return e=new Mo({props:{volume:i[3],muted:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function e_(i){let e,t;return e=new rt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:On.KeyM,$$slots:{default:[$b]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function nd(i){let e,t,n;return t=new $o({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:Wn.noop,onPointerLeave:i[2]?i[20]:Wn.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","volumeBar svelte-1l78lz9"),V(e,"volumeBar-vertical",i[2])},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:Wn.noop),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:Wn.noop),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&4)&&V(e,"volumeBar-vertical",o[2])},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function t_(i){let e,t,n,o,l,r;t=new gl({props:{content:i[6],translateY:-18,$$slots:{default:[e_]},$$scope:{ctx:i}}});let s=i[4]&&nd(i);return{c(){e=T("div"),H(t.$$.fragment),n=N(),s&&s.c(),u(e,"class","volumeBar-container svelte-1l78lz9"),V(e,"vertical",i[2])},m(a,c){k(a,e,c),O(t,e,null),d(e,n),s&&s.m(e,null),o=!0,l||(r=[de(e,"mouseenter",function(){di(i[2]?i[21]:Wn.noop)&&(i[2]?i[21]:Wn.noop).apply(this,arguments)}),de(e,"mouseleave",function(){di(i[2]?i[22]:Wn.noop)&&(i[2]?i[22]:Wn.noop).apply(this,arguments)}),de(e,"wheel",bt(i[23]))],l=!0)},p(a,c){i=a;let f={};c[0]&64&&(f.content=i[6]),c[0]&655|c[1]&32&&(f.$$scope={dirty:c,ctx:i}),t.$set(f),i[4]?s?(s.p(i,c),c[0]&16&&m(s,1)):(s=nd(i),s.c(),m(s,1),s.m(e,null)):s&&(ce(),h(s,1,1,()=>{s=null}),fe()),(!o||c[0]&4)&&V(e,"vertical",i[2])},i(a){o||(m(t.$$.fragment,a),m(s),o=!0)},o(a){h(t.$$.fragment,a),h(s),o=!1},d(a){a&&y(e),F(t),s&&s.d(),l=!1,xe(r)}}}function i_(i,e,t){let n,o,l,r,{click:s}=e,a=je(),c=Ct(),f=a.state.volume$;D(i,f,Te=>t(3,n=Te));let p=a.state.muted$;D(i,p,Te=>t(25,r=Te));let b=a.actions.internal.setVolume,v=a.ui.currentGridType$;D(i,v,Te=>t(24,l=Te));let g=a.callbacks?.onAudioDoesNotExistHint,w=a.callbacks?.onAudioDisabledHint,P=a.state.isAudioAvailable$;D(i,P,Te=>t(4,o=Te));let M=a.state.isAudioDisabled,C=!1,I,E,$,ee,U,re,ie=1,S=!1,G=!1;function Y(Te){ie=n,b(Te)}function J(){ul(a,n,c.controls.volumeStepWheel)}function X(){cl(a,n,c.controls.volumeStepWheel)}function R(Te){b(Te)}function Z(Te){let he=Te;b(he,he===0?ie:he)}function B(){S=!0}function j(){S=!1,Le()}function Ie(){clearTimeout(I),t(5,C=!0)}function De(){Le()}function Le(){I=window.setTimeout(()=>{S||t(5,C=!1)},c.controls.volumeBarTimeout)}function qe(Te){Te.deltaY<0?J():Te.deltaY>0&&X()}return i.$$set=Te=>{"click"in Te&&t(0,s=Te.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,ee=!o||r);if(i.$$.dirty[0]&16777216)e:t(2,U=yl(l,"s"));if(i.$$.dirty[0]&6)e:U?t(6,E=""):t(6,E=ee?z("tooltip_volume"):z("tooltip_volume_muted")),t(7,$=ee?z("tooltip_volume"):z("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,re=ee?0:n);if(i.$$.dirty[0]&16)e:t(9,G=M&&!w||!o&&!g)},[s,ee,U,n,o,C,E,$,re,G,f,p,v,P,Y,J,X,R,Z,B,j,Ie,De,qe,l,r]}var Ma=class extends K{constructor(e){super(),W(this,e,i_,t_,q,{click:0},Jb,[-1,-1])}},od=Ma;var ld=require("@vkontakte/videoplayer-shared");function n_(i){let e;return{c(){e=A("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(t,n){k(t,e,n)},d(t){t&&y(e)}}}function o_(i){let e;return{c(){e=A("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(t,n){k(t,e,n)},d(t){t&&y(e)}}}function r_(i){let e,t,n;function o(s,a){return s[0]?o_:n_}let l=o(i,-1),r=l(i);return{c(){e=A("svg"),t=A("g"),r.c(),u(t,"fill","#fff"),u(t,"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=i[0]?"close-fullscreen-icon":"open-fullscreen-icon")},m(s,a){k(s,e,a),d(e,t),r.m(t,null)},p(s,[a]){l!==(l=o(s,a))&&(r.d(1),r=l(s),r&&(r.c(),r.m(t,null))),a&1&&n!==(n=s[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:L,o:L,d(s){s&&y(e),r.d()}}}function l_(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Aa=class extends K{constructor(e){super(),W(this,e,l_,r_,q,{isFullscreen:0})}},rd=Aa;function s_(i){let e,t;return e=new rd({props:{isFullscreen:i[0]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function a_(i){let e,t;return e=new rt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:On.KeyF,$$slots:{default:[s_]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function u_(i,e,t){let{isFullscreen:n=!1}=e,{click:o=ld.noop}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,l=n?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off"))},[n,o,l]}var Va=class extends K{constructor(e){super(),W(this,e,u_,a_,q,{isFullscreen:0,click:1})}},kl=Va;function c_(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"),u(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var La=class extends K{constructor(e){super(),W(this,e,null,c_,q,{})}},er=La;function f_(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),u(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var Ba=class extends K{constructor(e){super(),W(this,e,null,f_,q,{})}},wl=Ba;var ad=require("@vkontakte/videoplayer-shared");function d_(i){ve(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function sd(i){let e;return{c(){e=T("div"),u(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function m_(i){let e,t,n,o,l=i[1]&&sd(i);var r=i[8];function s(a){return{}}return r&&(n=an(r,s(i))),{c(){l&&l.c(),e=N(),t=T("div"),n&&H(n.$$.fragment),u(t,"class","svelte-1ot3duq"),V(t,"mobile",i[1])},m(a,c){l&&l.m(a,c),k(a,e,c),k(a,t,c),n&&O(n,t,null),o=!0},p(a,c){if(a[1]?l||(l=sd(a),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),c&256&&r!==(r=a[8])){if(n){ce();let f=n;h(f.$$.fragment,1,0,()=>{F(f,1)}),fe()}r?(n=an(r,s(a)),H(n.$$.fragment),m(n.$$.fragment,1),O(n,t,null)):n=null}(!o||c&2)&&V(t,"mobile",a[1])},i(a){o||(n&&m(n.$$.fragment,a),o=!0)},o(a){n&&h(n.$$.fragment,a),o=!1},d(a){a&&(y(e),y(t)),l&&l.d(a),n&&F(n)}}}function p_(i){let e,t,n;function o(r){i[13](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:On.KeyK,$$slots:{default:[m_]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&10&&(a.className=(r[1]?"btn-m--play":"")+" "+r[3]),s&112&&(a.click=r[5]?r[6]:r[4]),s&4&&(a.disabled=r[2]),s&128&&(a.ariaLabel=r[7]),s&33026&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function h_(i,e,t){let n,o,{fakeIsPlaying$:l}=kn();D(i,l,C=>t(12,o=C));let{ref:r=void 0}=e,{isMobile:s=!1}=e,{isPlaying:a=!1}=e,{disabled:c=!1}=e,{className:f=""}=e,{click:p=ad.noop}=e,{toggle:b}=l,v,g,w,P;function M(C){r=C,t(0,r)}i.$$set=C=>{"ref"in C&&t(0,r=C.ref),"isMobile"in C&&t(1,s=C.isMobile),"isPlaying"in C&&t(10,a=C.isPlaying),"disabled"in C&&t(2,c=C.disabled),"className"in C&&t(3,f=C.className),"click"in C&&t(4,p=C.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,g=o!==null);if(i.$$.dirty&5152)e:t(11,w=g?o:a);if(i.$$.dirty&2048)e:t(7,P=w?z("tooltip_pause"):z("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=w?wl:er)};e:t(6,v=b);return[r,s,c,f,p,g,v,P,n,l,a,w,o,M]}var Ra=class extends K{constructor(e){super(),W(this,e,h_,p_,q,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},d_)}},Sr=Ra;function b_(i){ve(i,"svelte-mb3pjo",".prev.svelte-mb3pjo{transform:scaleX(-1)}.mobile.svelte-mb3pjo{transform:scale(1.3333)}.mobile.prev.svelte-mb3pjo{transform:scaleX(-1) scale(1.3333)}")}function __(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),u(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),u(t,"fill","#fff"),u(e,"data-testid",n=i[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","svelte-mb3pjo"),V(e,"prev",i[0]),V(e,"mobile",i[1])},m(o,l){k(o,e,l),d(e,t)},p(o,[l]){l&1&&n!==(n=o[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),l&1&&V(e,"prev",o[0]),l&2&&V(e,"mobile",o[1])},i:L,o:L,d(o){o&&y(e)}}}function g_(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(1,o=l.isMobile)},[n,o]}var Na=class extends K{constructor(e){super(),W(this,e,g_,__,q,{isPrev:0,isMobile:1},b_)}},ud=Na;function v_(i){let e,t;return e=new ud({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function y_(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[v_]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&8&&(a.testId="btn-"+r[3]),s&4&&(a.disabled=r[2]),s&32&&(a.ariaLabel=r[5]),s&16&&(a.click=r[4]),s&138&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function k_(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:s}=e,a;function c(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,s=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,a=r==="prev"?z("tooltip_previous"):z("tooltip_next"))},[n,o,l,r,s,a,c]}var Da=class extends K{constructor(e){super(),W(this,e,k_,y_,q,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},tr=Da;function w_(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var Oa=class extends K{constructor(e){super(),W(this,e,null,w_,q,{})}},cd=Oa;function C_(i){ve(i,"svelte-1bbobod",".mobile.svelte-1bbobod{transform:scale(1.1) translateY(-1px)}")}function fd(i){let e,t,n,o,l,r,s;return{c(){e=A("path"),t=A("path"),n=A("path"),o=A("path"),l=A("path"),r=A("path"),s=A("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(t,"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(t,"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(l,"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(l,"fill","white"),u(r,"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(r,"fill","white"),u(s,"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(s,"fill","white")},m(a,c){k(a,e,c),k(a,t,c),k(a,n,c),k(a,o,c),k(a,l,c),k(a,r,c),k(a,s,c)},d(a){a&&(y(e),y(t),y(n),y(o),y(l),y(r),y(s))}}}function S_(i){let e,t,n,o=!i[0]&&fd(i);return{c(){e=A("svg"),t=A("path"),o&&o.c(),u(t,"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(t,"fill","white"),u(e,"width",i[2]),u(e,"height","20"),u(e,"viewBox",n="0 0 "+(i[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",i[3]),u(e,"class","svelte-1bbobod"),V(e,"mobile",i[1])},m(l,r){k(l,e,r),d(e,t),o&&o.m(e,null)},p(l,[r]){l[0]?o&&(o.d(1),o=null):o||(o=fd(l),o.c(),o.m(e,null)),r&4&&u(e,"width",l[2]),r&4&&n!==(n="0 0 "+(l[2]+1)+" 20")&&u(e,"viewBox",n),r&8&&u(e,"data-testid",l[3]),r&2&&V(e,"mobile",l[1])},i:L,o:L,d(l){l&&y(e),o&&o.d()}}}function P_(i,e,t){let{short:n=!1}=e,{isMobile:o=!1}=e,l,r;return i.$$set=s=>{"short"in s&&t(0,n=s.short),"isMobile"in s&&t(1,o=s.isMobile)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,l=n?20:93),t(3,r=n?"vk-video-logo-icon--short":"vk-video-logo-icon")},[n,o,l,r]}var Fa=class extends K{constructor(e){super(),W(this,e,P_,S_,q,{short:0,isMobile:1},C_)}},dd=Fa;function T_(i){let e,t,n,o,l,r,s,a,c,f,p,b,v;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("defs"),r=A("filter"),s=A("feFlood"),a=A("feColorMatrix"),c=A("feOffset"),f=A("feGaussianBlur"),p=A("feColorMatrix"),b=A("feBlend"),v=A("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M15 16.6C15 14.6398 15 13.6597 15.3815 12.911C15.717 12.2525 16.2525 11.717 16.911 11.3815C17.6597 11 18.6398 11 20.6 11H21.96C24.4242 11 25.6563 11 26.5976 11.4796C27.4255 11.9014 28.0986 12.5745 28.5204 13.4024C29 14.3437 29 15.5758 29 18.04V21.96C29 24.4242 29 25.6563 28.5204 26.5976C28.0986 27.4255 27.4255 28.0986 26.5976 28.5204C25.6563 29 24.4242 29 21.96 29H20.6C18.6398 29 17.6597 29 16.911 28.6185C16.2525 28.283 15.717 27.7475 15.3815 27.089C15 26.3403 15 25.3602 15 23.4V16.6ZM24.2646 18.3443C25.1663 18.8828 25.6171 19.1521 25.7699 19.5007C25.9032 19.805 25.9032 20.1511 25.7699 20.4554C25.6171 20.804 25.1663 21.0733 24.2646 21.6118L21.8788 23.0367C20.9363 23.5997 20.465 23.8812 20.0774 23.8445C19.7393 23.8125 19.4311 23.6376 19.2303 23.3638C19 23.0498 19 22.5008 19 21.403V18.5531C19 17.4552 19 16.9063 19.2303 16.5923C19.4311 16.3185 19.7393 16.1436 20.0774 16.1116C20.465 16.0749 20.9363 16.3564 21.8788 16.9193L24.2646 18.3443ZM13 17.04C13 14.5758 13 13.3437 13.4796 12.4025C13.7214 11.9278 14.0459 11.504 14.4348 11.1493C14.0394 11.2203 13.7058 11.325 13.4024 11.4796C12.5745 11.9015 11.9014 12.5746 11.4796 13.4025C11 14.3437 11 15.5758 11 18.04V21.96C11 24.4243 11 25.6564 11.4796 26.5976C11.9014 27.4255 12.5745 28.0986 13.4024 28.5205C13.7058 28.6751 14.0394 28.7798 14.4348 28.8508C14.0459 28.4961 13.7214 28.0723 13.4796 27.5976C13 26.6564 13 25.4243 13 22.96V17.04Z"),u(n,"fill","white"),u(o,"d","M14.6032 11.334L15.2433 10.7501L14.3906 10.9032C13.9767 10.9775 13.6187 11.0888 13.2889 11.2569C12.414 11.7027 11.7026 12.414 11.2568 13.289C10.9961 13.8007 10.872 14.3806 10.8108 15.1298C10.75 15.8737 10.75 16.8061 10.75 18.0284V18.04V21.96V21.9717C10.75 23.194 10.75 24.1264 10.8108 24.8703C10.872 25.6195 10.9961 26.1994 11.2568 26.7111C11.7026 27.5861 12.414 28.2974 13.2889 28.7432C13.6187 28.9113 13.9767 29.0225 14.3906 29.0969L15.2433 29.25L14.6032 28.6661C14.2365 28.3315 13.9304 27.9318 13.7023 27.4841C13.4835 27.0546 13.3678 26.5478 13.3091 25.8296C13.2502 25.1084 13.25 24.1963 13.25 22.96V17.04C13.25 15.8038 13.2502 14.8917 13.3091 14.1705C13.3678 13.4522 13.4835 12.9455 13.7023 12.516C13.9304 12.0683 14.2365 11.6686 14.6032 11.334ZM15.1587 12.7975C14.947 13.213 14.8475 13.6818 14.7985 14.2808C14.75 14.8747 14.75 15.6181 14.75 16.5884V16.6V23.4V23.4116C14.75 24.3819 14.75 25.1253 14.7985 25.7192C14.8475 26.3182 14.947 26.787 15.1587 27.2025C15.5183 27.9081 16.0919 28.4818 16.7975 28.8413C17.213 29.053 17.6818 29.1525 18.2808 29.2015C18.8747 29.25 19.6181 29.25 20.5884 29.25H20.6H21.96H21.9717C23.1939 29.25 24.1264 29.25 24.8703 29.1892C25.6194 29.128 26.1993 29.0039 26.7111 28.7432C27.586 28.2974 28.2974 27.586 28.7432 26.7111C29.0039 26.1993 29.128 25.6194 29.1892 24.8703C29.25 24.1264 29.25 23.1939 29.25 21.9717V21.96V18.04V18.0283C29.25 16.8061 29.25 15.8736 29.1892 15.1297C29.128 14.3806 29.0039 13.8007 28.7432 13.2889C28.2974 12.414 27.586 11.7026 26.7111 11.2568C26.1993 10.9961 25.6194 10.872 24.8703 10.8108C24.1264 10.75 23.1939 10.75 21.9717 10.75H21.96H20.6H20.5884C19.6181 10.75 18.8747 10.75 18.2808 10.7985C17.6818 10.8475 17.213 10.947 16.7975 11.1587C16.0919 11.5183 15.5183 12.0919 15.1587 12.7975ZM24.1364 18.5589C24.5914 18.8307 24.9178 19.0259 25.1508 19.1958C25.3846 19.3661 25.4915 19.4884 25.5409 19.601C25.6462 19.8413 25.6462 20.1147 25.5409 20.355C25.4915 20.4677 25.3846 20.59 25.1508 20.7603C24.9178 20.9302 24.5914 21.1254 24.1364 21.3972L21.7506 22.8221C21.2751 23.1061 20.9332 23.31 20.662 23.44C20.3893 23.5707 20.2254 23.6074 20.1009 23.5956C19.8339 23.5703 19.5905 23.4322 19.4319 23.2159C19.358 23.1151 19.3054 22.9556 19.2778 22.6545C19.2503 22.3549 19.25 21.9568 19.25 21.403V18.5531C19.25 17.9992 19.2503 17.6012 19.2778 17.3016C19.3054 17.0005 19.358 16.841 19.4319 16.7402C19.5905 16.5239 19.8339 16.3858 20.1009 16.3605C20.2254 16.3487 20.3893 16.3854 20.662 16.5161C20.9332 16.6461 21.2751 16.85 21.7506 17.134L24.1364 18.5589Z"),u(o,"stroke","black"),u(o,"stroke-opacity","0.12"),u(o,"stroke-width","0.5"),u(t,"filter","url(#filter0_d_207_5101)"),u(s,"flood-opacity","0"),u(s,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"type","matrix"),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,"type","matrix"),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(b,"mode","normal"),u(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_207_5101"),u(v,"mode","normal"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_207_5101"),u(v,"result","shape"),u(r,"id","filter0_d_207_5101"),u(r,"x","5.5"),u(r,"y","5.35095"),u(r,"width","29"),u(r,"height","29.2982"),u(r,"filterUnits","userSpaceOnUse"),u(r,"color-interpolation-filters","sRGB"),u(e,"width","40"),u(e,"height","40"),u(e,"viewBox","0 0 40 40"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(g,w){k(g,e,w),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,p),d(r,b),d(r,v)},p:L,i:L,o:L,d(g){g&&y(e)}}}var Ha=class extends K{constructor(e){super(),W(this,e,null,T_,q,{})}},md=Ha;function E_(i){let e,t;return e=new cd({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:L,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function M_(i){let e,t;return e=new dd({props:{short:i[5]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.short=n[5]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function A_(i){let e,t;return e=new md({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:L,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function V_(i){let e,t,n,o,l=[A_,M_,E_],r=[];function s(a,c){return a[7]||a[4]?0:a[2]?1:2}return e=s(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=Ye()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,c){let f=e;e=s(a,c),e===f?r[e].p(a,c):(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){h(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function L_(i){let e,t,n;function o(r){i[13](r)}let l={className:"btn-full-opacity",disabled:!i[1],click:i[8],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[V_]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&2&&(a.disabled=!r[1]),s&4&&(a.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),s&8&&(a.ariaLabel=r[3]),s&65588&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function B_(i,e,t){let n,o,{ref:l=void 0}=e,{logoClickable:r=!1}=e,{targetUrl:s=""}=e,{click:a}=e,c=Ct(),f=je(),p=f.ui.currentGridType$;D(i,p,I=>t(11,n=I));let b=f.ui.isMobile;D(i,b,I=>t(12,o=I));let v,g,w,P,M=()=>{a(),f.callbacks?.onLogoClicked?.(),s&&window.open(s,"_blank")};function C(I){l=I,t(0,l)}i.$$set=I=>{"ref"in I&&t(0,l=I.ref),"logoClickable"in I&&t(1,r=I.logoClickable),"targetUrl"in I&&t(9,s=I.targetUrl),"click"in I&&t(10,a=I.click)},i.$$.update=()=>{if(i.$$.dirty&6148)e:t(5,P=(o||yl(n,"l"))&&g)};e:t(3,v=c.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo"));e:t(2,g=c.logoType==="vk_video");e:t(4,w=c.logoType==="vk_video_mobile");return[l,r,g,v,w,P,p,b,M,s,a,n,o,C]}var za=class extends K{constructor(e){super(),W(this,e,B_,L_,q,{ref:0,logoClickable:1,targetUrl:9,click:10})}},Cl=za;var hd=require("@vkontakte/videoplayer-core");var Ua=require("@vkontakte/videoplayer-core");function R_(i){ve(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function N_(i){let e,t,n,o,l,r,s,a;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("path"),r=A("path"),s=A("path"),a=A("path"),u(n,"class","wave wave1 svelte-8z1bf5"),u(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),u(n,"fill","#fff"),u(o,"class","wave wave2 svelte-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(l,"class","wave wave3 svelte-8z1bf5"),u(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(l,"fill","#fff"),u(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),u(r,"fill","#fff"),u(s,"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"),V(a,"hidden",!i[1]),u(t,"fill","none"),u(t,"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","svelte-8z1bf5"),V(e,"connecting",i[2])},m(c,f){k(c,e,f),d(e,t),d(t,n),d(t,o),d(t,l),d(t,r),d(t,s),d(t,a)},p(c,f){f&2&&V(a,"hidden",!c[1]),f&4&&V(e,"connecting",c[2])},d(c){c&&y(e)}}}function D_(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$;return{c(){e=A("svg"),t=A("g"),n=A("mask"),o=A("path"),r=A("path"),s=A("path"),c=A("path"),f=A("defs"),p=A("clipPath"),b=A("path"),g=A("filter"),w=A("feFlood"),P=A("feColorMatrix"),M=A("feOffset"),C=A("feGaussianBlur"),I=A("feColorMatrix"),E=A("feBlend"),$=A("feBlend"),u(o,"fill",l=i[1]?"#2688EB":"#fff"),u(o,"d","M1.1 3.1h22v18h-22z"),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(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(s,"fill-rule","evenodd"),u(s,"clip-rule","evenodd"),u(s,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),u(s,"fill",a=i[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(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(b,"fill",v=i[1]?"#2688EB":"#fff"),u(b,"d","M0 0h24v24H0z"),u(p,"id","a"),u(w,"flood-opacity","0"),u(w,"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(C,"stdDeviation","2.5"),u(I,"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($,"in","SourceGraphic"),u($,"in2","effect1_dropShadow_4085_178456"),u($,"result","shape"),u(g,"id","b"),u(g,"x","-3.4"),u(g,"y","-1.4"),u(g,"width","30.8"),u(g,"height","26.802"),u(g,"filterUnits","userSpaceOnUse"),u(g,"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(ee,U){k(ee,e,U),d(e,t),d(t,n),d(n,o),d(n,r),d(t,s),d(t,c),d(e,f),d(f,p),d(p,b),d(f,g),d(g,w),d(g,P),d(g,M),d(g,C),d(g,I),d(g,E),d(g,$)},p(ee,U){U&2&&l!==(l=ee[1]?"#2688EB":"#fff")&&u(o,"fill",l),U&2&&a!==(a=ee[1]?"#2688EB":"#fff")&&u(s,"fill",a),U&2&&v!==(v=ee[1]?"#2688EB":"#fff")&&u(b,"fill",v)},d(ee){ee&&y(e)}}}function O_(i){let e;function t(l,r){return l[0]?D_:N_}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ye()},m(l,r){o.m(l,r),k(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:L,o:L,d(l){l&&y(e),o.d(l)}}}function F_(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;return i.$$set=s=>{"isMobile"in s&&t(0,n=s.isMobile),"state"in s&&t(3,o=s.state)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(2,r=o===Ua.ChromecastState.CONNECTING),t(1,l=o===Ua.ChromecastState.CONNECTED)},[n,l,r,o]}var qa=class extends K{constructor(e){super(),W(this,e,F_,O_,q,{isMobile:0,state:3},R_)}},pd=qa;var bd=require("@vkontakte/videoplayer-shared");function H_(i){let e,t;return e=new pd({props:{isMobile:i[1],state:i[2]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function z_(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[H_]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&16&&(a.ariaLabel=r[4]),s&8&&(a.click=r[3]),s&70&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function U_(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=bd.noop}=e,s;function a(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"state"in c&&t(2,l=c.state),"click"in c&&t(3,r=c.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,s=l===hd.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off"))},[n,o,l,r,s,a]}var Ka=class extends K{constructor(e){super(),W(this,e,U_,z_,q,{ref:0,isMobile:1,state:2,click:3})}},Sl=Ka;var Pl=require("@vkontakte/videoplayer-core");function q_(i){let e,t;return e=new nl({props:{isActive:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function K_(i){let e,t;return e=new rt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Pl.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[q_]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===Pl.PlaybackState.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function W_(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,s=je(),a=s.state.playbackState$;D(i,a,b=>t(3,n=b));let c=s.actions.internal.switchToActiveLive,f=s.actions.internal.togglePlay,p;return i.$$set=b=>{"isMobile"in b&&t(0,o=b.isMobile),"isActiveLive"in b&&t(1,l=b.isActiveLive),"ariaLabel"in b&&t(2,r=b.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,p=()=>{if(!l){c();return}n===Pl.PlaybackState.PAUSED&&f()})},[o,l,r,n,p,a]}var Wa=class extends K{constructor(e){super(),W(this,e,W_,K_,q,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Tl=Wa;function Z_(i){ve(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function j_(i){let e,t,n,o,l=i[9].default,r=Fi(l,i,i[8],null);return{c(){e=T("div"),t=T("div"),r&&r.c(),u(t,"class","tooltip svelte-5ygsa2"),V(t,"active",i[0]),V(t,"pointer",i[1]),u(e,"class","tooltip-wrapper svelte-5ygsa2"),u(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(s,a){k(s,e,a),d(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(s,[a]){r&&r.p&&(!o||a&256)&&zi(r,l,s,s[8],o?Hi(l,s[8],a,null):Ui(s[8]),null),(!o||a&1)&&V(t,"active",s[0]),(!o||a&2)&&V(t,"pointer",s[1]),(!o||a&36&&n!==(n=`transform: translate(${s[5]}px, ${s[2]}px);`))&&u(e,"style",n)},i(s){o||(m(r,s),o=!0)},o(s){h(r,s),o=!1},d(s){s&&y(e),r&&r.d(s),i[10](null),i[11](null)}}}function G_(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:s=!1}=e,{translateXPx:a=0}=e,{translateYPx:c=0}=e,{containerWidth:f}=e,p,b;function v(P){if(!b)return 0;let{width:M}=b.getBoundingClientRect(),C=M/2;return P<C?C:P>f-C?f-C:P}function g(P){me[P?"unshift":"push"](()=>{b=P,t(4,b)})}function w(P){me[P?"unshift":"push"](()=>{p=P,t(3,p)})}return i.$$set=P=>{"active"in P&&t(0,r=P.active),"pointer"in P&&t(1,s=P.pointer),"translateXPx"in P&&t(6,a=P.translateXPx),"translateYPx"in P&&t(2,c=P.translateYPx),"containerWidth"in P&&t(7,f=P.containerWidth),"$$scope"in P&&t(8,l=P.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=v(a))},[r,s,c,p,b,n,a,f,l,o,g,w]}var Za=class extends K{constructor(e){super(),W(this,e,G_,j_,q,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Z_)}},_d=Za;var Il=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function x_(i){ve(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function gd(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?Y_:Q_}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ye()},m(l,r){o.m(l,r),k(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&y(e),o.d(l)}}}function Q_(i){let e=(i[10].text||"")+"",t;return{c(){t=Se(e)},m(n,o){k(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Fe(t,e)},d(n){n&&y(t)}}}function Y_(i){let e=z("tooltip_episode_unfinished")+"",t;return{c(){t=Se(e)},m(n,o){k(n,t,o)},p:L,d(n){n&&y(t)}}}function X_(i){let e,t,n,o,l,r,s,a,c=i[10]&&gd(i);return{c(){e=T("div"),t=T("div"),o=N(),l=T("div"),c&&c.c(),r=N(),s=T("div"),a=Se(i[0]),u(t,"class","preview svelte-l51fc1"),u(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),u(l,"class","episode svelte-l51fc1"),u(s,"class","time svelte-l51fc1"),u(e,"class","timeline-preview svelte-l51fc1"),V(e,"mobile",i[1])},m(f,p){k(f,e,p),d(e,t),d(e,o),d(e,l),c&&c.m(l,null),d(e,r),d(e,s),d(s,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(t,"style",n),f[10]?c?c.p(f,p):(c=gd(f),c.c(),c.m(l,null)):c&&(c.d(1),c=null),p&1&&Fe(a,f[0]),p&2&&V(e,"mobile",f[1])},i:L,o:L,d(f){f&&y(e),c&&c.d()}}}var ir=150;function J_(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:s}=e,{progress:a=0}=e,{duration:c=0}=e,{isInteractive:f=!1}=e,b=je().ui.rotateAlpha;D(i,b,U=>t(11,n=U));let v,g,w,P,M,C,I,E;function $(){let U=s.frameWidth,re=s.frameHeight;return U>ir?(re=re/U*ir,U=ir):re>ir&&(U=U/re*ir,re=ir),{width:U,height:re}}function ee(U){let re;s.isUV?re=Math.floor(c*U/s.frequency):re=Math.min(s.countTotal,Math.max(0,Math.floor(s.countTotal*U)));let ie=Math.floor(re/s.countPerImage),S=Math.floor(re%s.countPerImage/s.countPerRow),G=re%s.countPerRow,Y=Math.floor(s.countPerImage/s.countPerRow);!s.isUV&&ie===Math.floor(s.countTotal/s.countPerImage)&&(Y=Math.floor(s.countTotal%s.countPerImage/s.countPerRow),s.countTotal%s.countPerImage%s.countPerRow>0&&Y++);let J=s.countPerRow;!s.isUV&&ie===Math.floor(s.countTotal/s.countPerImage)&&s.countTotal%s.countPerImage>0&&(J=Math.min(s.countPerRow,s.countTotal%s.countPerImage));let X=v*J,R=g*Y,Z=-G*v,B=-S*g;return{imgSrc:s.links[ie],imgWidth:X,imgHeight:R,imgOffsetX:Z,imgOffsetY:B}}i.$$set=U=>{"time"in U&&t(0,o=U.time),"isMobile"in U&&t(1,l=U.isMobile),"videoEpisodes"in U&&t(13,r=U.videoEpisodes),"previewThumbsData"in U&&t(14,s=U.previewThumbsData),"progress"in U&&t(15,a=U.progress),"duration"in U&&t(16,c=U.duration),"isInteractive"in U&&t(2,f=U.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:w,imgWidth:P,imgHeight:M,imgOffsetX:C,imgOffsetY:I}=ee(a),w,(t(6,P),t(15,a)),(t(7,M),t(15,a)),(t(8,C),t(15,a)),(t(9,I),t(15,a)));if(i.$$.dirty&106496)e:t(10,E=Il(a,c,r))};e:t(3,{width:v,height:g}=$(),v,t(4,g));return[o,l,f,v,g,w,P,M,C,I,E,n,b,r,s,a,c]}var ja=class extends K{constructor(e){super(),W(this,e,J_,X_,q,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},x_)}},vd=ja;function $_(i){ve(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function e4(i){let e,t;return{c(){e=T("span"),t=Se(i[7]),u(e,"class","time svelte-5lzly8")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o[0]&128&&Fe(t,n[7])},i:L,o:L,d(n){n&&y(e)}}}function t4(i){let e,t;return e=new vd({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.time=n[7]),o[0]&1024&&(l.isMobile=n[10]),o[0]&8&&(l.videoEpisodes=n[3]),o[0]&256&&(l.progress=n[8]),o[0]&2&&(l.duration=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function i4(i){let e,t,n,o,l=[t4,e4],r=[];function s(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=s(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=Ye()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,c){let f=e;e=s(a,c),e===f?r[e].p(a,c):(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){h(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function n4(i){let e,t,n,o,l=[i[9]],r={$$slots:{default:[i4]},$$scope:{ctx:i}};for(let s=0;s<l.length;s+=1)r=cs(r,l[s]);return e=new _d({props:r}),n=new $o({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:z("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:z("aria_timeline_value",{position:i[5],duration:i[4]}),loadedProgress:i[12],filledProgress:i[6],handleProgress:i[6],videoEpisodes:i[3],onPointerDown:i[27],onHandleMove:i[28],onPointerMove:i[31],onPointerUp:i[29],onPointerEnter:i[30],onPointerLeave:i[32],isInteractive:i[23],disabled:i[13].has("TIMELINE"),hideHandel:i[2]}}),{c(){H(e.$$.fragment),t=N(),H(n.$$.fragment)},m(s,a){O(e,s,a),k(s,t,a),O(n,s,a),o=!0},p(s,a){let c=a[0]&512?Cc(l,[Sc(s[9])]):{};a[0]&1419|a[1]&65536&&(c.$$scope={dirty:a,ctx:s}),e.$set(c);let f={};a[0]&2048&&(f.isActiveLive=s[11]),a[0]&1024&&(f.isMobile=s[10]),a[0]&2&&(f.ariaValueMax=s[1]),a[0]&64&&(f.ariaValueNow=Math.round(s[6]*100)),a[0]&48&&(f.ariaValueText=z("aria_timeline_value",{position:s[5],duration:s[4]})),a[0]&4096&&(f.loadedProgress=s[12]),a[0]&64&&(f.filledProgress=s[6]),a[0]&64&&(f.handleProgress=s[6]),a[0]&8&&(f.videoEpisodes=s[3]),a[0]&8192&&(f.disabled=s[13].has("TIMELINE")),a[0]&4&&(f.hideHandel=s[2]),n.$set(f)},i(s){o||(m(e.$$.fragment,s),m(n.$$.fragment,s),o=!0)},o(s){h(e.$$.fragment,s),h(n.$$.fragment,s),o=!1},d(s){s&&y(t),F(e,s),F(n,s)}}}function o4(i,e,t){let n,o,l,r,s,a,c,f,p,b,v,{showTimeline:g=!1}=e,w=je(),P=Ct(),M=w.state.bufferedProgress$;D(i,M,le=>t(12,b=le));let C=w.state.positionWithScrubbing$;D(i,C,le=>t(39,a=le));let I=w.state.duration$;D(i,I,le=>t(1,l=le));let E=w.state.isLive$;D(i,E,le=>t(0,o=le));let $=w.state.isActiveLive$;D(i,$,le=>t(11,p=le));let ee=w.ui.isMobile;D(i,ee,le=>t(10,f=le));let U=P.features.episodes?w.actions.internal.getVideoEpisodes():void 0,re=w.actions.internal.getPreviewThumbsData(),ie=w.state.interactiveEpisodes$;D(i,ie,le=>t(40,c=le));let S=w.state.isInteractive,G=w.state.isInteractiveTime$;D(i,G,le=>t(2,r=le));let Y=w.state.isInteractiveExpectation$;D(i,Y,le=>t(38,s=le));let J=w.actions.internal.correctSeekTimeToInteractive,X=w.ui.controls.disabledControls$;D(i,X,le=>t(13,v=le));let R,Z,B,j,Ie=!1,De="",Le=0,qe=0,Te=0,he;function Q(le){return!J||!S?le:J(le*l)/l}function _e(le){w.actions.internal.startScrubbing(Q(le))}function Ae(le){r||w.actions.internal.progressScrubbing(Q(le))}function He(le){w.actions.internal.completeScrubbing(Q(le)),t(34,Ie=!1)}function Ge(le,oe,ye){Be(le,oe,ye),t(34,Ie=!0)}function be(le,oe,ye){Be(le,oe,ye),t(34,Ie=!0)}function Ce(){t(34,Ie=!1)}function Be(le,oe,ye){t(8,Te=le),t(35,Le=oe),ye&&t(36,qe=ye),t(7,De=Ze(le))}function Ze(le){let oe=pn((o?1-le:le)*l);return o?`-${oe}`:oe}return i.$$set=le=>{"showTimeline"in le&&t(33,g=le.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,R=S?c:U);if(i.$$.dirty[0]&2)e:t(4,Z=pn(l));if(i.$$.dirty[1]&256)e:t(5,B=pn(a));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,j=a/l);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,he=s||r);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:qe,translateXPx:Le,translateYPx:S&&re?-36:-16,active:Ie&&g&&!he,pointer:!P.features.timelinePreview||!re||o})},[o,l,r,R,Z,B,j,De,Te,n,f,p,b,v,P,M,C,I,E,$,ee,re,ie,S,G,Y,X,_e,Ae,He,Ge,be,Ce,g,Ie,Le,qe,he,s,a,c]}var Ga=class extends K{constructor(e){super(),W(this,e,o4,n4,q,{showTimeline:33},$_,[-1,-1])}},yd=Ga;function r4(i){let e,t;return e=new $o({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:z("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=z("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function l4(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,s=je().ui.isMobile;D(i,s,p=>t(4,n=p));let a,c,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,l=p.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,a=pn(l));if(i.$$.dirty&64)e:t(2,c=pn(o));if(i.$$.dirty&65)e:t(3,f=o/l)},[l,a,c,f,n,s,o]}var xa=class extends K{constructor(e){super(),W(this,e,l4,r4,q,{position:6,duration:0})}},El=xa;function s4(i){ve(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function a4(i){let e;return{c(){e=T("div"),u(e,"class","timeline-stub svelte-1gqonyf"),V(e,"mobile",i[2])},m(t,n){k(t,e,n)},p(t,n){n&4&&V(e,"mobile",t[2])},i:L,o:L,d(t){t&&y(e)}}}function u4(i){let e,t,n,o,l=[f4,c4],r=[];function s(a,c){return a[0]?0:1}return t=s(i,-1),n=r[t]=l[t](i),{c(){e=T("div"),n.c(),u(e,"class","timeline svelte-1gqonyf"),V(e,"mobile",i[2])},m(a,c){k(a,e,c),r[t].m(e,null),o=!0},p(a,c){let f=t;t=s(a,c),t===f?r[t].p(a,c):(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),n=r[t],n?n.p(a,c):(n=r[t]=l[t](a),n.c()),m(n,1),n.m(e,null)),(!o||c&4)&&V(e,"mobile",a[2])},i(a){o||(m(n),o=!0)},o(a){h(n),o=!1},d(a){a&&y(e),r[t].d()}}}function c4(i){let e,t;return e=new yd({props:{showTimeline:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.showTimeline=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function f4(i){let e,t;return e=new El({props:{position:i[3],duration:i[4]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.position=n[3]),o&16&&(l.duration=n[4]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function d4(i){let e,t,n,o,l=[u4,a4],r=[];function s(a,c){return a[1]?0:1}return e=s(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=Ye()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a,c),e===f?r[e].p(a,c):(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){h(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function m4(i,e,t){let n,o,l,r,{isAds:s=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e,p=je(),b=p.state.isLive$;D(i,b,M=>t(12,n=M));let v=p.ads.duration;D(i,v,M=>t(4,r=M));let g=p.ads.position;D(i,g,M=>t(3,l=M));let w=p.ui.isMobile;D(i,w,M=>t(2,o=M));let P;return i.$$set=M=>{"isAds"in M&&t(0,s=M.isAds),"canRewindLive"in M&&t(9,a=M.canRewindLive),"isRewindableLive"in M&&t(10,c=M.isRewindableLive),"isHidden"in M&&t(11,f=M.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,P=!f&&(!n||n&&a&&c||s))},[s,P,o,l,r,b,v,g,w,a,c,f,n]}var Qa=class extends K{constructor(e){super(),W(this,e,m4,d4,q,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},s4)}},Ml=Qa;var Cd=require("@vkontakte/videoplayer-shared");function p4(i){let e,t,n,o;return{c(){e=A("svg"),t=A("path"),n=A("path"),o=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"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(t,"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"),_t(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(l,r){k(l,e,r),d(e,t),d(e,n),d(e,o)},p:L,i:L,o:L,d(l){l&&y(e)}}}var Ya=class extends K{constructor(e){super(),W(this,e,null,p4,q,{})}},kd=Ya;function h4(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"opacity",".7"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708Z"),u(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var Xa=class extends K{constructor(e){super(),W(this,e,null,h4,q,{})}},wd=Xa;function b4(i){ve(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function _4(i){let e,t,n,o;e=new kd({});function l(a,c){if(a[4]==="FULL")return y4;if(a[4]==="COUNT")return v4}let r=l(i,-1),s=r&&r(i);return{c(){H(e.$$.fragment),t=N(),s&&s.c(),n=Ye()},m(a,c){O(e,a,c),k(a,t,c),s&&s.m(a,c),k(a,n,c),o=!0},p(a,c){r===(r=l(a,c))&&s?s.p(a,c):(s&&s.d(1),s=r&&r(a),s&&(s.c(),s.m(n.parentNode,n)))},i(a){o||(m(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){a&&(y(t),y(n)),F(e,a),s&&s.d(a)}}}function g4(i){let e,t,n,o,l,r;return l=new wd({}),{c(){e=T("span"),t=Se(i[2]),n=N(),o=T("div"),H(l.$$.fragment),u(e,"class","text mobile svelte-1yhs2ga"),u(o,"class","chevron-episodes svelte-1yhs2ga")},m(s,a){k(s,e,a),d(e,t),k(s,n,a),k(s,o,a),O(l,o,null),r=!0},p(s,a){(!r||a&4)&&Fe(t,s[2])},i(s){r||(m(l.$$.fragment,s),r=!0)},o(s){h(l.$$.fragment,s),r=!1},d(s){s&&(y(e),y(n),y(o)),F(l)}}}function v4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Se(t),u(e,"class","text count svelte-1yhs2ga")},m(o,l){k(o,e,l),d(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&Fe(n,t)},d(o){o&&y(e)}}}function y4(i){let e,t;return{c(){e=T("span"),t=Se(i[2]),u(e,"class","text svelte-1yhs2ga")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o&4&&Fe(t,n[2])},d(n){n&&y(e)}}}function k4(i){let e,t,n,o,l=[g4,_4],r=[];function s(a,c){return a[6]?0:1}return e=s(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=Ye()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,c){let f=e;e=s(a,c),e===f?r[e].p(a,c):(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){h(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function w4(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[k4]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&64&&(a.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),s&8&&(a.ariaExpanded=r[3]),s&32&&(a.ariaLabel=r[5]),s&8388693&&(a.$$scope={dirty:s,ctx:r}),!t&&s&2&&(t=!0,a.ref=r[1],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function C4(i,e,t){let n,o,l,r,s,a,{position:c=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,b=je(),v=b.callbacks?.onEpisodeChanged??Cd.noop,g=!!b.callbacks?.onEpisodeClicked,w=b.ui.currentGridType$;D(i,w,S=>t(18,s=S));let P=b.ui.episodes.openedByKeyboard$;D(i,P,S=>t(17,r=S));let M=b.ui.episodes.panelOpened$;D(i,M,S=>t(3,l=S));let C=b.ui.isMobile;D(i,C,S=>t(6,a=S));let I,E=S=>{if(!!b.callbacks?.onEpisodeClicked){let Y=xo(S);P.set(Y),M.set(!0),b.callbacks?.onEpisodeClicked?.(Y)}},$,ee,U,re=async(S,G,Y)=>{await vn(),S?.getAttribute("aria-expanded")==="false"&&G&&!Y&&(P.set(!1),S.focus())};function ie(S){I=S,t(1,I)}return i.$$set=S=>{"position"in S&&t(13,c=S.position),"duration"in S&&t(14,f=S.duration),"timeCodes"in S&&t(0,p=S.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=c/f);if(i.$$.dirty&114689)e:{let S=Il(n,f,p);S&&$?.text!==S.text&&(v(S),t(15,$=S))}if(i.$$.dirty&32768)e:t(2,o=$?.text||"");if(i.$$.dirty&262144)e:hn(s,"xl")?t(4,ee="FULL"):hn(s,"m")&&td(s,"xl")?t(4,ee="COUNT"):t(4,ee="SHORT");if(i.$$.dirty&4)e:t(5,U=`${z("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:re(I,r,l)},[p,I,o,l,ee,U,a,g,w,P,M,C,E,c,f,$,n,r,s,ie]}var Ja=class extends K{constructor(e){super(),W(this,e,C4,w4,q,{position:13,duration:14,timeCodes:0},b4)}},Al=Ja;function S4(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),n=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238Z"),u(t,"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,l){k(o,e,l),d(e,t),d(e,n)},p:L,i:L,o:L,d(o){o&&y(e)}}}var $a=class extends K{constructor(e){super(),W(this,e,null,S4,q,{})}},Sd=$a;function P4(i){let e,t;return e=new Sd({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function T4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:z("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[P4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&2&&(a.className=r[1]?"hidden":""),s&4&&(a.disabled=r[2]),s&8&&(a.click=r[3]),s&32&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function I4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"hidden"in a&&t(1,o=a.hidden),"disabled"in a&&t(2,l=a.disabled),"click"in a&&t(3,r=a.click)},[n,o,l,r,s]}var eu=class extends K{constructor(e){super(),W(this,e,I4,T4,q,{ref:0,hidden:1,disabled:2,click:3})}},Vl=eu;function E4(i){let e,t,n;return{c(){e=A("svg"),t=A("path"),n=A("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.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(t,"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"),V(n,"hidden",!i[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,l){k(o,e,l),d(e,t),d(e,n)},p(o,[l]){l&1&&V(n,"hidden",!o[0])},i:L,o:L,d(o){o&&y(e)}}}function M4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var tu=class extends K{constructor(e){super(),W(this,e,M4,E4,q,{isOpened:0})}},Pd=tu;function A4(i){let e,t;return e=new Pd({props:{isOpened:i[3]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function V4(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[A4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&2&&(a.className=r[1]?"hidden":""),s&4&&(a.disabled=r[2]),s&32&&(a.ariaLabel=r[5]),s&16&&(a.click=r[4]),s&136&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function L4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:s}=e,a;function c(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,s=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,a=r?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off"))},[n,o,l,r,s,a,c]}var iu=class extends K{constructor(e){super(),W(this,e,L4,V4,q,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Ll=iu;function B4(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var nu=class extends K{constructor(e){super(),W(this,e,null,B4,q,{})}},Bl=nu;var Id=require("@vkontakte/videoplayer-shared");function R4(i){ve(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Td(i){let e;return{c(){e=T("div"),u(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function N4(i){let e,t,n,o,l=i[1]&&Td(i);return n=new Bl({}),{c(){l&&l.c(),e=N(),t=T("div"),H(n.$$.fragment),u(t,"class","svelte-1ot3duq"),V(t,"mobile",i[1])},m(r,s){l&&l.m(r,s),k(r,e,s),k(r,t,s),O(n,t,null),o=!0},p(r,s){r[1]?l||(l=Td(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||s&2)&&V(t,"mobile",r[1])},i(r){o||(m(n.$$.fragment,r),o=!0)},o(r){h(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),l&&l.d(r),F(n)}}}function D4(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:z("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:On.KeyK,$$slots:{default:[N4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&10&&(a.className=(r[1]?"btn-m--play":"")+" "+r[3]),s&4&&(a.disabled=r[2]),s&16&&(a.click=r[4]),s&66&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function O4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:s=Id.noop}=e;function a(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,l=c.disabled),"className"in c&&t(3,r=c.className),"click"in c&&t(4,s=c.click)},[n,o,l,r,s,a]}var ou=class extends K{constructor(e){super(),W(this,e,O4,D4,q,{ref:0,isMobile:1,disabled:2,className:3,click:4},R4)}},Pr=ou;function F4(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853l-5.478-3.349Z"),u(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var ru=class extends K{constructor(e){super(),W(this,e,null,F4,q,{})}},Ed=ru;function H4(i){let e,t;return e=new Ed({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function z4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:z("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[H4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&2&&(a.className=r[1]?"hidden":""),s&4&&(a.disabled=r[2]),s&8&&(a.click=r[3]),s&32&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function U4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"hidden"in a&&t(1,o=a.hidden),"disabled"in a&&t(2,l=a.disabled),"click"in a&&t(3,r=a.click)},[n,o,l,r,s]}var lu=class extends K{constructor(e){super(),W(this,e,U4,z4,q,{ref:0,hidden:1,disabled:2,click:3})}},Rl=lu;var su=require("@vkontakte/videoplayer-shared");function q4(i){ve(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function K4(i){let e,t,n,o;return{c(){e=T("img"),u(e,"class","icon svelte-1x1zctw"),ds(e.src,t=i[0])||u(e,"src",t),u(e,"aria-hidden","true")},m(l,r){k(l,e,r),n||(o=de(e,"error",i[7]),n=!0)},p(l,r){r&1&&!ds(e.src,t=l[0])&&u(e,"src",t)},d(l){l&&y(e),n=!1,o()}}}function W4(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',u(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){k(t,e,n)},p:L,d(t){t&&y(e)}}}function Z4(i){let e;function t(l,r){return l[5]?W4:K4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ye()},m(l,r){o.m(l,r),k(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&y(e),o.d(l)}}}function j4(i){let e,t;return e=new rt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[Z4]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function G4(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:s}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=su.noop}=e,p=()=>{t(5,l=!0)};i.$$set=b=>{"iconUrl"in b&&t(0,r=b.iconUrl),"ariaLabel"in b&&t(1,s=b.ariaLabel),"disabled"in b&&t(8,a=b.disabled),"testId"in b&&t(2,c=b.testId),"onClick"in b&&t(3,f=b.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=f===su.noop);if(i.$$.dirty&272)e:t(6,o=n||a)};e:t(5,l=!1);return[r,s,c,f,n,l,o,p,a]}var au=class extends K{constructor(e){super(),W(this,e,G4,j4,q,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},q4)}},Nl=au;var $d=require("@vkontakte/videoplayer-shared");var Ji=require("@vkontakte/videoplayer-core"),GP=require("@vkontakte/videoplayer-shared"),tt=require("@vkontakte/videoplayer-shared"),Zn=require("@vkontakte/videoplayer-statistics"),xP=require("@vkontakte/videoplayer-interactive");var vt=require("@vkontakte/videoplayer-shared");var Md=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var x4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Dl=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new vt.Subject,started$:new vt.Subject,paused$:new vt.Subject,resumed$:new vt.Subject,ended$:new vt.Subject,skipped$:new vt.Subject,clicked$:new vt.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,vt.addScript)(x4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,vt.assertNonNullable)(this.adsState),(0,vt.assertNonNullable)(this.playerState),(0,vt.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),We(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{(0,vt.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,vt.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,vt.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,vt.assertNonNullable)(this.adman),(0,vt.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:s,slotId:a,params:c={},duration:f,previewParam:p}=e,b,v=this.playerState&&We(this.playerState.vsid);v&&(b=parseInt(v,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:Md(t,n),puid11:o?0:1,preview:p,...b?{request_id:b}:{},duration:f,...c},w={slot:a,wrapper:r,videoEl:s,videoQuality:n,params:g,browser:{mobile:!1}},P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(w),this.adman=P,this.videoElement=s,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(w)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,vt.assertNonNullable)(this.actions),(0,vt.assertNonNullable)(this.adsState),(0,vt.assertNonNullable)(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){(0,vt.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=We(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){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(){(0,vt.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,vt.assertNonNullable)(this.adman),(0,vt.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,vt.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,vt.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,vt.assertNonNullable)(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}};var Ad=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var uu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let s of r)if(!l.startTime&&!l.endTime){let a=new Ol,{startTime:c,endTime:f}=a.parse(s);l.startTime=c,l.endTime=f}else if(s.trim()!==""){let a=new cu,{texts:c}=a.parse(s);l.texts=[...l.texts,...c]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},Ol=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(t)*60,s=Number(n),a=+`0.${o}`;return l+r+s+a}},cu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let s=0,a=[];for(;s<r.length;){let c=["<",">"].reduce((f,p)=>{let b=r.indexOf(p,s);return f===-1||f>b?b:f},-1);if(c===-1){a.push(r.substring(s));break}a.push(r.substring(s,c)),s=c+1}return a}}),l=new Ol;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},Vd=uu;var Fl=require("@vkontakte/videoplayer-shared"),so,Sn,fu=0,du=!1,Ld=(i,e,t)=>{let n=i>=fu,o=i<fu,l=(c,f=0,p=0)=>c<f&&c<p,r=(c,f=0,p=0)=>c>=f&&c<=p,s=(c,f=0,p=0)=>c>f&&c>p,a=t.find(({lang:c})=>c===e.value)?.subtitles;if(fu=i,o&&(du=!1),(0,Fl.isNonNullable)(so)&&r(i,so.startTime,so.endTime)&&so.lang===e.value)return so;if(!(0,Fl.isNonNullable)(Sn)&&a?.length&&!du){let c=a.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));Sn=c&&{...c,lang:e.value},so=void 0,!(0,Fl.isNonNullable)(Sn)&&a[a.length-1].endTime<i&&(du=!0);return}else{if(r(i,Sn?.startTime,Sn?.endTime))return so=Sn,Sn=void 0,so;(n&&s(i,Sn?.startTime,Sn?.endTime)||o&&l(i,Sn?.startTime,Sn?.endTime))&&(Sn=void 0)}};var Hl={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"};var Bd=require("@vkontakte/videoplayer-shared"),Rd=require("@vkontakte/videoplayer-statistics"),zl=class{constructor(e,t){this.oneStat=new Rd.OneStat(e,t),this.statSubscription=new Bd.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Nd=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:l,canDownload:r,callbacks:s,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:p,coreConfig:b,player:v,disabledControls:g,isInteractive:w,interactiveRanges$:P,isInteractiveTime$:M,replayInteractive:C,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:E,additionalButtons:$,looped:ee=!1,statistics:U})=>{let re={...b,configName:[...b.configName??[],"ui"],isAudioDisabled:l,live:{...b.live??{},isLiveCatchUpMode:!!n}},ie=p,S=v||new Ji.Player(re),G=new tt.Logger,Y=new Dl(G,{loadTimeout:ie.ads.loadTimeout,initTimeout:ie.ads.initTimeout}),J=Co.getInstance(),X=a?.pictureInPictureApi,R=a?.annotationsApi,Z=G.createComponentLog("Store"),B,j,Ie={},De=(0,tt.getCurrentBrowser)(),Le=U?dt(U.oneStat.vsid$):yn(void 0),qe=Pe(to()),Te=X?.info.isActive$??new tt.ValueSubject(!1),he=X?.info.type,Q=Pe(0),_e=Pe([]),Ae=(0,tt.merge)(S.events.fatalError$,S.events.managedError$).subscribe(_=>_e.update(ae=>[...ae,_])),He=yn(!1,_=>{let ae=S.events.fatalError$.subscribe(()=>_(!0));return()=>ae.unsubscribe()}),Ge=async _=>{let ae=Object.values(tt.InterfaceLanguage).includes(_);if(ie.downloadVKLanguages&&(ae&&ie.updateBuiltinLanguages||!Ss(_))){let Ne;try{Ne=await(0,tt.loadVKLangPack)(_,Mc,Ac)}catch(Xe){U?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),J?.report(Xe,{errorType:"VKLangPack",fatal:!1})}Ne&&(Cs({language:_,pack:Ne,fallback:ie.defaultLanguage}),be.set(_))}Ss(_)&&be.set(_)},be=Pe(i);Ge(i);let Ce=(_,ae)=>{let we=We(be);return Ps(we,_,ae,ie.defaultLanguage)},Be=Pe("thumb"),Ze=(()=>{let _=Yt([He,Be],([ae,we])=>ae?"crashed":we);return{..._,is:ae=>We(_)===ae}})(),le=(()=>{let _=Pe(new Set(g));return{..._,add:ae=>{_.update(we=>new Set([...we].concat(ae)))},remove:ae=>{_.update(we=>{let Ne=[...we];return new Set(Array.isArray(ae)?Ne.filter(Xe=>!ae.includes(Xe)):Ne.filter(Xe=>Xe!==ae))})},includes:ae=>{let we=We(_);return Array.isArray(ae)?ae.every(Ne=>we.has(Ne)):we.has(ae)}}})();Z({message:"create store"});let oe=_=>{let ae=_.container;ae.append(S.experimental.element$.getValue()),et=new MutationObserver(we=>{let{removedNodes:Ne}=we[0];Ne.length&&ae.append(S.experimental.element$.getValue())}),et.observe(ae,{childList:!0})},ye=_=>{Z({message:`init video, config: ${JSON.stringify(_)}`}),w?oe(_):S.initVideo(_),_.subtitles&&S.setExternalTextTracks(_.subtitles),B=_},ue=new tt.Subject,ke=_=>ue.next(_),ze=new tt.Subject,$e=new tt.Subject,nt=new tt.Subject,et=null,ge={actionRewind$:ze,actionSeek$:$e,inPiP$:Te,inFullscreen$:new tt.Observable(_=>qe.subscribe(ae=>_.next(ae))),actionSetSubtitle$:nt,nextMovie$:ue};if(U){let{oneStat:_,statSubscription:ae}=U;ae.add(_.attachTo(S)),ae.add(_.attachToUi(ge)),ae.add(_.attachToAds(Y.events)),_.authorize(o).catch(we=>{Z({message:`onestat auth error ${String(we)}`})})}if(J){let _=new tt.Subscription,ae=(we,Ne)=>_.add(we.subscribe(Ne));if(ae(S.events.managedError$,we=>{J.logIError(we)}),ae(S.events.fatalError$,we=>{J.logIError(we,!0)}),U){let{oneStat:we}=U;ae(we.experimental.error$,Ne=>{J.logIError(Ne)})}J.sentrySubscription.add(_)}let Ke=()=>{(0,tt.isIOS)()&&j&&lf(j)},lt=new tt.Subscription().add(S.experimental.element$.subscribe(_=>{_&&(j=_,_.classList.add("player-media"),Po(X)&&(X.updateVideoElement(),X.registryEventHandlers()),w&&_.setAttribute("pip","false"))})).add(S.events.ended$.subscribe(()=>{Ke(),s?.onEnded?.()})).add(S.events.started$.subscribe(async()=>{Po(X)&&await X?.revealPictureInPicture();let _=S.info.muted$.getValue();s?.onStarted?.(),Ie.onStarted?.(_)})).add(S.events.willSeek$.subscribe(({from:_,to:ae})=>{s?.onSeek?.(_,ae)})).add(S.info.position$.subscribe(_=>{let ae=S.info.duration$.getValue();s?.onTimeupdate?.(ae,_),Y.setPosition(_,ae)})).add(S.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(S.events.firstBytes$.subscribe(()=>{at.state.isFirstBytes$.set(!0)})).add(S.info.is3DVideo$.subscribe(_=>{at.ui.is3DVideo.set(_)})).add(S.info.isEnded$.subscribe(_=>{w&&(_?(M?.getValue()&&le.add(qr),le.add("PLAY_BUTTON")):le.remove("PLAY_BUTTON"))})).add(S.info.liveTime$.subscribe(_=>{s?.onLiveTime?.(_)})).add(S.info.isStalled$.subscribe(_=>{s?.onStalledChanged?.(_)})),ut=new tt.Subscription,pt=()=>{ut.add(S.events.log$.subscribe(_=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${_.component}`,_.message)})).add(G.log$.subscribe(_=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${_.component}.`,_.message)}))},St=()=>{ut.unsubscribe()},Re=(_,ae)=>{S.startCameraManualRotation(_,ae)},zt=(_=!1)=>{S.stopCameraManualRotation(_)},At=(_,ae,we)=>{S.moveCameraFocusPX(_,ae,we)},pe=()=>{S.holdCamera()},wt=()=>{S.releaseCamera()},Oe=yn(S.info.position$.getValue(),_=>{let ae,we,Ne=()=>{let Xe=S.info.playbackState$.getValue(),Ht=S.info.isLive$.getValue(),Qt=S.info.duration$.getValue(),Et=S.info.position$.getValue();if([Ji.PlaybackState.PLAYING,Ji.PlaybackState.PAUSED].includes(Xe)){let dn=Ht?Et-Qt:S.getExactTime();dn!==we&&_(dn),we=dn}ae=requestAnimationFrame(Ne)};return Ne(),()=>cancelAnimationFrame(ae)}),ot=dt(Te),st=dt(S.info.playbackState$),ct=dt(S.info.currentBuffer$),Ut=dt(S.info.isEnded$),mi=dt(S.info.isLive$),pi=ie.features.playbackRate?dt(S.info.canChangePlaybackSpeed$):yn(!1),Ki=dt(S.info.liveBufferTime$),en=dt(S.info.volume$),ti=dt(S.info.muted$),ii=gs(S.info.autoQualityLimits$.pipe((0,tt.map)(({max:_})=>_!==void 0)),S.info.autoQualityLimits$.getValue()?.max!==void 0),hi=dt(S.info.autoQualityLimitingAvailable$),qt=dt(S.info.availableQualities$),ni=dt(S.info.availableQualitiesFps$),Wi=dt(S.info.chromecastState$),bi=dt(S.info.chromecastDeviceName$),_i=dt(S.info.currentFormat$),oi=dt(S.info.throughputEstimation$),gi=dt(S.info.videoBitrate$),ri=dt(S.info.intrinsicVideoSize$),vi=dt(S.info.duration$),yi=dt(S.info.isAudioAvailable$),kt=null,Bt=S.info.isBuffering$,Kt=yn(Bt.getValue(),_=>{let ae=Bt.subscribe(we=>{we&&kt===null?kt=window.setTimeout(()=>{_(Bt.getValue()),kt=null},ie.loaderDelay):_(we)});return()=>{ae.unsubscribe(),kt&&clearTimeout(kt)}}),li=()=>{kt&&clearTimeout(kt),kt=null},Vt=Yt([vi,mi],([_,ae])=>ae?-_:_),si=Yt([st],([_])=>_===Ji.PlaybackState.PLAYING),Wt=dt(S.info.atLiveEdge$),Xt=dt(S.info.atLiveDurationEdge$),Pt=dt(S.info.position$),Tt=Yt([Pt,vi],([_,ae])=>isFinite(_)&&isFinite(ae)&&!!ae),Rt=Yt([Wi],([_])=>_===Ji.ChromecastState.CONNECTED),Zt=Pe(void 0),ai=dt(S.info.isAutoQualityEnabled$,_=>_&&Zt.set(void 0)),ln=dt(S.info.currentQuality$,()=>Zt.set(void 0)),Zi=Yt([Zt,ln],([_,ae])=>_??ae),jt=Yt([qt,ni,ai,Zi,_i],([_,ae,we,Ne,Xe])=>{let Ht=[];Xe!==Ji.VideoFormat.MPEG&&Ht.push({value:"auto",displayValue:Ce("auto_quality_option"),selected:we});let Qt=_.filter(Et=>Et!==tt.VideoQuality.INVARIANT);for(let Et of Qt){let dn=ae[Et],In=Et===tt.VideoQuality.INVARIANT?Ce("auto_quality_option"):Et;Ht.push({value:Et,displayValue:`${In}${dn?Ad(dn):""}`,selected:we?!1:Et===Ne})}return Ht}),Jt=dt(S.info.currentPlaybackRate$),ki=Yt([Jt,Wt,Xt],([_,ae,we])=>{let Ne=we||w?1:ie.controls.playbackRateMin,Xe=ae?1:ie.controls.playbackRateMax,Ht=ie.controls.playbackRateStep,Qt=[];for(let Et=Ne;Et<=Xe;Et+=Ht)Qt.push({value:Et,displayValue:Et===1?Ce("playback_rate_1"):Ce("playback_rate",{multiplier:Et.toString(10)}),selected:_===Et});return Qt}),Li=ie.features.subtitles?dt(S.info.availableTextTracks$):yn([]),Nt=Yt([Li],([_],ae)=>{let we=[],Ne=[];for(let Xe of _)Xe.url&&we.push(fetch(Xe.url));Promise.allSettled(we).then(Xe=>{for(let[Ht,Qt]of Xe.entries())Qt.status==="fulfilled"&&Qt.value.text().then(Et=>{let dn=new Vd,In=_[Ht].language,fr=!!_[Ht].isAuto,Do=dn.parse(Et);In&&Do&&Ne.push({lang:In,subtitles:Do,isAuto:fr}),Ht===Xe.length-1&&ae(Ne)})})}),ht={displayValue:Ce("subtitles_off"),value:"off"},wi=Pe({...ht}),ji=Yt([Nt,wi,Nt],([_,ae])=>{if(_?.length>0){let we=[{...ht,selected:ae?.value===ht.value}];for(let{lang:Ne,isAuto:Xe}of _)Hl[Ne]&&we.push({displayValue:Xe?Ce("subtitles_auto",{language:Hl[Ne]}):Hl[Ne],value:Ne,selected:ae?.value===Ne,isAuto:Xe});return we}else return[]}),$t=Yt([Oe,wi,Nt],([_,ae,we])=>{if(ae&&ae.value!==ht.value)return Ld(_,ae,we)}),Gi=Yt([$t],([_])=>_?.texts?_.texts:[]),ui=Pe(!0),tn=Yt([ct,Vt,Pt,Ki],([_,ae,we,Ne])=>{let Xe=_?.end??0;if(!Ne)return Xe/ae;let Qt=-we+Ne-ae;return(Xe-Qt)/ae}),xi=dt(S.info.availableSources$),nn=Yt([xi],([_])=>Object.keys(_?.[Ji.VideoFormat.MPEG]||{}).length>0),Bi=()=>{let _=Object.keys(S.info.availableSources$?.getValue()?.[Ji.VideoFormat.MPEG]||{}),ae=(0,tt.getHighestQuality)(_)||tt.VideoQuality.Q_144P;return B.sources[Ji.VideoFormat.MPEG]?.[ae]},Ci=()=>{let _=Bi();_?qc(_,B?.meta?.title||"video"):Z({message:"There is no URL for download video"})},Dt=()=>{Z({message:"toggle muted"});let _=S.info.muted$.getValue(),Ne=!(S.info.volume$.getValue()===0||_);fi(Ne)},Gt=()=>{at.ui.settingsMenuVisible.set(!1)},ci=_=>{at.ui.settingsMenuOpenedByKeyboard.set(!!_),at.ui.settingsMenuVisible.set(!0)},Ri=_=>{We(at.ui.settingsMenuVisible)?Gt():ci(_)},Ni=(_,ae=_,we=!1)=>{let Ne=!we,Xe=S.info.muted$.getValue();Z({message:`set volume, volume: ${_}, preferredVolume: ${ae}, internalCall: ${Ne}`}),S.setVolume(_),Y.setVolume(_),Ne&&s?.onVolumeChange?.(_),ys(ae),Xe?(S.setMuted(!1),Ne&&s?.onUnmute?.(),jr(!1)):!Xe&&_===0&&(S.setMuted(!0),Ne&&s?.onMute?.(),jr(!0))},fi=(_,ae=!1)=>{let we=!ae,Ne=S.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${Ne}, mute: ${_}, internalCall: ${we}`}),S.setMuted(_),Y.setVolume(_?0:Ne),jr(_),we&&(_?s?.onMute?.():s?.onUnmute?.()),Ne===0){let Xe=Zr()??ie.volumeDefault;Xe===0&&(Xe=ie.volumeMinRestore,ys(Xe)),S.setVolume(Xe),Y.setVolume(Xe),we&&s?.onVolumeChange?.(Xe)}},Si=Pe(!1),Pi=_=>{Si.set(_),S.setLooped(_)};Pi(ee);let Ue=()=>{S.prepare()},Di=()=>{if((0,tt.assertNonNullable)(at),!We(at.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(Z({message:"toggle play"}),We(at.playerPhase)==="ads"){Y.togglePlay();return}if(S.info.playbackState$.getValue()!==Ji.PlaybackState.PLAYING){if(S.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),ze.next(),$e.next(Zn.SeekAction.REWIND),w){C?.();return}S.seekTime(0)}Z({message:"toggle play, call player.play"}),S.play(),s?.onPlay?.()}else Z({message:"toggle play, call player.pause"}),S.pause(),s?.onPause?.()}},Lt=_=>{Z({message:`set quality, quality: ${_}`}),S.setAutoQuality(_==="auto"),_!=="auto"?(Gc(e,_),Zt.set(_),S.setQuality(_)):ks()},Ve=_=>{Z({message:`set trafficSavingEnabled, value: ${_}`}),S.setAutoQualityLimits({max:_?ie.trafficSavingLimit:void 0}),Jc(_)},Ti=_=>{S.setPlaybackRate(_)},Qi=()=>{let _=We(ki),ae=_.findIndex(({selected:Ne})=>Ne);if(ae===_.length-1)return;let we=_[ae+1];Ti(we.value)},Oi=()=>{let _=We(ki),ae=_.findIndex(({selected:Ne})=>Ne);if(ae===0)return;let we=_[ae-1];Ti(we.value)},Ii=_=>{_&&_.value!==ht.value&&nt.next(_.isAuto?_.value+"_auto":_.value),wi.set(_)},on=()=>{let _=We(ji),ae=We(wi),we=We(be);if(ae?.value===ht.value){let Ne=_.filter(Xe=>Xe.value!==ht.value).find(Xe=>Xe.value===we)||_[1];Ii(Ne??{...ht})}else Ii({...ht,selected:!1})},Ei=(_,ae,we=!0)=>{if(Z({message:`seek to time, time: ${_}`}),$e.next(ae),S.info.isLive$.getValue()){let Ne=S.info.duration$.getValue(),Xe=Math.min(0,Ne+_);S.seekTime(Xe,we)}else{if(M?.getValue())return;S.seekTime(po(_),we)}},Yi=_=>{Z({message:`seek to episode start time: ${_}`}),Ei(_,Zn.SeekAction.EPISODE,!0)},Ot=(_,ae)=>{Z({message:`seek to percent, percent: ${_}`});let we=Math.round(We(Vt)*_);Ei(we,ae,!1)},Xi=_=>{Z({message:`seek external, time: ${_}`}),$e.next(Zn.SeekAction.UNKNOWN),S.seekTime(S.info.isLive$.getValue()?-_:_)},ei=_=>{Z({message:`set auto quality limitation. Max: ${_.max??"none"}. Min: ${_.min??"none"}`}),S.setAutoQualityLimits(_)},se=_=>{Z({message:`seek external to episode start time: ${_}`}),Ei(_,Zn.SeekAction.EPISODE,!0)},it=_=>{Z({message:`set playback rate to: ${_}`}),S.setPlaybackRate(_)},Ft=Pe(void 0),xt=Pe(!1),Mi=_=>{Z({message:`start scrubbing, progress: ${_}`}),xt.set(!0),Ai(_)},Ai=_=>{Ft.set(_)},bn,_n,un=()=>{Ft.set(void 0),xt.set(!1)},It=()=>{clearTimeout(_n),clearTimeout(bn),bn=window.setTimeout(()=>{un()},500),j?.removeEventListener("seeked",It)},Ln=_=>{Z({message:`complete scrubbing, progress: ${_}`}),Ot(_,Zn.SeekAction.SLIDER),We(at.ui.isMobile)&&We(at.state.currentFormat$)===Ji.VideoFormat.HLS?(j?.addEventListener("seeked",It),_n=window.setTimeout(()=>{It()},300)):un()},Bn=Yt([Oe,Vt,Ft],([_,ae,we],Ne)=>{Ne((0,tt.isNonNullable)(we)?we*ae:_)}),gn=Pe({width:0,height:0}),Pn=Yt([gn],([{width:_}],ae)=>{let we=id(_);ae(we)}),cn=Pe(!1),sn=Yt([Pn,cn],([_,ae])=>ae?$.filter(we=>!we.hideOnMobile):$.filter(we=>!we.hideOnDesktopGridTypes?.includes(_))),ne=Yt([cn,He],([_,ae],we)=>{we(_&&ae)}),mt=()=>{$e.next(Zn.SeekAction.LIVE),Z({message:"switch to active live"}),S.seekTime(0),S.info.playbackState$.getValue()!==Ji.PlaybackState.PLAYING&&at.actions.internal.togglePlay()},Tn=()=>Y.skip(),Rn=(_=!0)=>{(0,tt.assertNonNullable)(at),Z({message:`switch from ads to video, callPlay: ${_}`}),Be.set("video"),_&&S.play()},Nn=()=>{(0,tt.assertNonNullable)(at),Z({message:"switch from video to ads"}),at.actions.internal.pause(),Ke(),Be.set("ads")},jn=_=>{(0,tt.assertNonNullable)(at);let ae=_?"waitingLive":"thumb";Be.set(ae)},Gn=_=>{(0,tt.assertNonNullable)(at);let ae=_?"waitingRecord":"thumb";Be.set(ae)},xn=()=>((0,tt.assertNonNullable)(at),zc(S,B,at)),Qn=()=>((0,tt.assertNonNullable)(at),Uc(S,B,at)),Yn=()=>j,uo=()=>{Z({message:"toggle chromecast"}),S.toggleChromecast()},te=_=>{(0,tt.assertNonNullable)(at);let ae=!_;if(We(at.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${ae}`}),Y.pause();return}Z({message:`pause video, internalCall: ${ae}`}),ae&&s?.onPause?.(),S.pause()},fn=_=>{(0,tt.assertNonNullable)(at);let ae=!_;if(We(at.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${ae}`}),Y.play();return}Z({message:`play video, internalCall: ${ae}`}),ae&&s?.onPlay?.(),S.play()},co=(_,ae)=>{(0,tt.assertNonNullable)(at),Z({message:`first start, show ads: ${_}, internalCall: ${!ae}`}),_?Be.set("ads"):(Be.set("video"),ae?S.play():at.actions.internal.togglePlay())},fo=()=>(Z({message:"getting time codes"}),c),Xn=()=>{let _=fo();if(!_||[0,1].includes(_.length))return;let ae=S.info.position$.getValue();return _.find(we=>we.time>ae)},Lo=_=>{let ae=_;ae||(ae=Xn()),ae&&(Z({message:"seek to next episode"}),Ei(ae.time,Zn.SeekAction.EPISODE,!0))},Dn=()=>{let _=fo();if(!_||[0,1].includes(_.length))return;let ae=S.info.position$.getValue(),we=_.findIndex(Xe=>Xe.time>ae),Ne=we===-1?_.length-2:we-2;if(!(Ne<0))return _[Ne]},Jn=_=>{let ae=_;ae||(ae=Dn()),ae&&(Z({message:"seek to prev episode"}),Ei(ae.time,Zn.SeekAction.EPISODE,!0))},Bo=()=>(Z({message:"getting preview thumbs data"}),f),Ro=async()=>{X?.isActive()?await X?.remove():await X?.request()},cr=(_=-90)=>{Q.update(ae=>ae+_)},Un=Pe([]);P?.subscribe(_=>{let ae=[];for(let we=0;we<_.length;we++){let{range:[Ne,Xe],subjects:Ht}=_[we];we===0&&Ne!==0&&ae.push({time:0,text:"",interactive:!1,completed:!0}),ae.push({time:Ne/1e3,text:"",interactive:!0,completed:!Ht.length}),Xe!==1/0&&ae.push({time:Xe/1e3,text:"",interactive:!1,completed:!0})}Un.set(ae)});let mo=Pe(!1);M?.subscribe(_=>{_&&We(xt)&&un()});let po=_=>{if(!w)return _;let ae=We(Un),we=We(Vt),Xe=We(Pt)/we,Ht=ae.find(Qt=>Qt.interactive&&!Qt.completed&&Qt.time>Xe);return typeof Ht?.time=="number"?Math.min(_,Ht.time-.05):_},No=()=>{at.ui.episodes.panelOpened$.set(!1)},ho=()=>{clearTimeout(_n),clearTimeout(bn),lt.unsubscribe(),ut.unsubscribe(),S.destroy(),Y.destroy(),U?.destroy(),J?.destroy(),Ae.unsubscribe(),et?.disconnect(),et=null},at={interfaceLanguage$:be,initVideo:ye,videoId:e,isClip:t,playerPhase:Ze,vsid:Le,state:{positionExact$:Oe,positionWithScrubbing$:Bn,duration$:Vt,playbackState$:st,isPlaying$:si,isLoaderVisible:Kt,bufferedProgress$:tn,isLive$:mi,canChangePlaybackSpeed$:pi,isActiveLive$:Wt,isOldestAvailableLive$:Xt,isRewindableLive$:Tt,isEnded$:Ut,muted$:ti,volume$:en,trafficSavingEnabled$:ii,autoQualityLimitingAvailable$:hi,currentQuality$:Zi,isAutoQualityEnabled$:ai,availableQualities$:jt,currentPlaybackRate$:Jt,availablePlaybackRates$:ki,currentSubtitle$:wi,availableSubtitlesList$:ji,currentSubtitleCaptions$:Gi,isAutoSubtitleCaptionVisible$:ui,chromecastState$:Wi,chromecastDeviceName$:bi,chromecastConnected$:Rt,currentFormat$:_i,throughputEstimation$:oi,videoBitrate$:gi,videoSize$:ri,errorLog$:_e,crashed$:He,isAudioAvailable$:yi,isAudioDisabled:!!l,canDownload:ie.features.download&&!!r,availableSources$:xi,hasMpegSources$:nn,isInteractive:w,showInteractiveGraph:ie.features.interactiveGraph,showSeekToInteractive:ie.features.seekToInteractive,showPlayPrevChapter:ie.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ie.features.interactiveTimeIndicator&&!!We(Un).length,interactiveEpisodes$:Un,isInteractiveTime$:M?dt(M):Pe(!1),graphIsOpened$:Pe(!1),isInteractiveExpectation$:mo,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:E,looped$:Si,isFirstBytes$:Pe(!1)},ui:{controlsVisible:Pe(!1),touched:Pe(!1),controls:{prevButton:Pe(void 0),playButton:Pe(void 0),replayButton:Pe(void 0),nextButton:Pe(void 0),playPrevChapterButton:Pe(void 0),seekToInteractiveButton:Pe(void 0),interactiveGraphButton:Pe(void 0),liveButton:Pe(void 0),time:Pe(void 0),episodes:Pe(void 0),volume:Pe(void 0),subtitles:Pe(void 0),settings:Pe(void 0),context:Pe(void 0),chromecast:Pe(void 0),pip:Pe(void 0),fullscreen:Pe(void 0),vkLogo:Pe(void 0),interactiveTimeIndicator:Pe(void 0),additionalButtons:$.length?$.reduce(_=>[..._,Pe(void 0)],[]):[],disabledControls$:le},modals:{hotKeyMap:{show:Pe(!1),data:Pe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:qe,rotateAlpha:Q,isAutoplay:Pe(!1),debugPanelVisible:Pe(!1),episodes:{panelOpened$:Pe(!1),openedByKeyboard$:Pe(!1)},contextMenu:{visible$:Pe(!1),btnRef$:Pe(void 0),openedByBtnKeyboard$:Pe(!1),openedByHotKey$:Pe(!1),lastActiveElem$:Pe(void 0),showContextMenuBtn$:Pe(!1),position$:Pe({top:0,left:0})},playerSize:gn,isMobile:cn,mobileNotReportControlHidden$:ne,mobileUnmuteButtonExpanded:Pe(!1),mobileUnmuteButtonVisible:Pe(!1),icon3DVideoVisible:Pe(!1),settingsMenuVisible:Pe(!1),settingsMenuOpenedByKeyboard:Pe(!1),scrubbingInProgress:xt,is3DVideo:Pe(!1),isPictureInPictureActive$:ot,pictureInPictureType$:yn(he),clientInfo$:yn(De),currentGridType$:Pn,additionalButtons$:sn,interactiveHideMobileControls:Pe(!1),overlayContainer$:Pe(void 0),startedByKeyboard$:Pe(!1)},ads:{position:Pe(0),duration:Pe(0),playbackState:Pe("inactive"),canSkip:Pe(!1),secondsToWatchBeforeSkip:Pe(0),postrollPassed:Pe(!1)},webApi:{pictureInPictureApi:X,annotationsApi:R},actions:{internal:{preload:Ue,firstStart:_=>co(_,!1),pause:()=>te(!1),togglePlay:Di,toggleMuted:Dt,toggleSettingsMenu:Ri,openSettingsMenu:ci,closeSettingsMenu:Gt,setVolume:Ni,setQuality:Lt,setTrafficSavingEnabled:_=>Ve(_),setPlaybackRate:Ti,incrementPlaybackRate:Qi,decrementPlaybackRate:Oi,setSubtitle:Ii,toggleSubtitle:on,togglePictureInPicture:Ro,startScrubbing:Mi,progressScrubbing:Ai,completeScrubbing:Ln,toggleChromecast:uo,switchToActiveLive:mt,switchFromAdsToVideo:Rn,switchFromVideoToAds:Nn,skipAd:Tn,setWaitingLive:jn,setWaitingRecord:Gn,getDebugTextData:xn,getDebugPanelData:Qn,getVideoElement:Yn,seekTime:(_,ae,we)=>Ei(_,ae,we),clearDelayedBufferingCheckTimeout:li,seekEpisodeStartTime:Yi,seekToPercent:Ot,getNextEpisode:Xn,seekToNextEpisode:Lo,getPrevEpisode:Dn,seekToPrevEpisode:Jn,startLogging:pt,stopLogging:St,startCameraManualRotation:Re,stopCameraManualRotation:zt,moveCameraFocusPX:At,holdCamera:pe,releaseCamera:wt,getVideoEpisodes:fo,getPreviewThumbsData:Bo,downloadVideo:Ci,addLanguage:Cs,setLanguage:Ge,nextMovie:ke,videoRotate:cr,correctSeekTimeToInteractive:po,replayInteractive:C,setLooped:Pi},external:{firstStart:_=>co(_,!0),play:()=>fn(!0),pause:()=>te(!0),seekTime:_=>Xi(_),seekEpisodeStartTime:_=>se(_),setPlaybackRate:_=>it(_),setAutoQualityLimits:_=>ei(_),setMuted:_=>fi(_,!0),setVolume:_=>Ni(_,_,!0),returnFocusToEpisodes:No}},callbacks:s,setUiCallbacks:_=>{Ie={..._}},getAdmanWrapper:()=>Y,getLogger:()=>G,destroy:ho};return at};var ql=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[s,a]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let c=t[s]?.getBoundingClientRect(),f=(n||l.includes(s))&&!!c&&!!(c.right-c.left);a.set({positionStartX:0,positionEndX:0,left:f?Math.round(c.left-r.left):0,right:f?Math.round(c.right-r.left):0,top:f?Math.round(c.top-r.top):0,bottom:f?Math.round(c.bottom-r.top):0,isDisplayed:f})}};var Kl=async(i,e,t)=>{await vn(),e&&t&&(t.focus(),i.set(!1))};function Y4(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var mu=class extends K{constructor(e){super(),W(this,e,null,Y4,q,{})}},Dd=mu;function X4(i){let e,t;return e=new Dd({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function J4(i){let e,t,n;function o(r){i[8](r)}let l={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[X4]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&8&&(a.className=r[3]?"opened":""),s&1&&(a.disabled=r[0]),s&2&&(a.ariaLabel=r[1]),s&8&&(a.ariaExpanded=r[3]),s&16384&&(a.$$scope={dirty:s,ctx:r}),!t&&s&4&&(t=!0,a.ref=r[2],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function $4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=je(),s=r.ui.contextMenu.visible$;D(i,s,M=>t(3,n=M));let a=r.ui.contextMenu.openedByBtnKeyboard$,c=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,b,v=M=>{let C=xo(M),I=kf(b);f.set(I),a.set(C),s.set(!n)},g=()=>{c.set(!0)},w=()=>{c.set(!1)};function P(M){b=M,t(2,b)}return i.$$set=M=>{"disabled"in M&&t(0,o=M.disabled),"ariaLabel"in M&&t(1,l=M.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:b&&p.set(b)},[o,l,b,n,s,v,g,w,P]}var pu=class extends K{constructor(e){super(),W(this,e,$4,J4,q,{disabled:0,ariaLabel:1})}},Od=pu;function e3(i){ve(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function t3(i){let e,t;return e=new vl({props:{completed:!0}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:L,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function i3(i){let e,t,n,o,l,r,s,a,c,f;function p(v){i[22](v)}let b={tooltipContent:z("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[t3]},$$scope:{ctx:i}};return i[0]!==void 0&&(b.ref=i[0]),t=new yt({props:b}),me.push(()=>Me(t,"ref",p)),t.$on("click",i[14]),{c(){e=T("div"),H(t.$$.fragment),o=N(),l=T("div"),r=N(),s=T("div"),u(l,"class","ref-block svelte-17imlp9"),V(l,"hidden",i[1]),u(s,"class","pulse svelte-17imlp9"),V(s,"paused",i[4]),u(e,"class","interactive-episode-icon-animated svelte-17imlp9"),V(e,"mobile",i[2]),V(e,"fullscreen",i[6]),V(e,"invisible",i[1])},m(v,g){k(v,e,g),O(t,e,null),d(e,o),d(e,l),i[23](l),d(e,r),d(e,s),i[24](s),a=!0,c||(f=[de(e,"mousemove",Je(i[21])),de(e,"mouseleave",i[15])],c=!0)},p(v,g){let w={};g[0]&32&&(w.tooltipActive=v[5]),g[1]&1&&(w.$$scope={dirty:g,ctx:v}),!n&&g[0]&1&&(n=!0,w.ref=v[0],Ee(()=>n=!1)),t.$set(w),(!a||g[0]&2)&&V(l,"hidden",v[1]),(!a||g[0]&16)&&V(s,"paused",v[4]),(!a||g[0]&4)&&V(e,"mobile",v[2]),(!a||g[0]&64)&&V(e,"fullscreen",v[6]),(!a||g[0]&2)&&V(e,"invisible",v[1])},i(v){a||(m(t.$$.fragment,v),a=!0)},o(v){h(t.$$.fragment,v),a=!1},d(v){v&&y(e),F(t),i[23](null),i[24](null),c=!1,xe(f)}}}function n3(i,e,t){let n,o,l,r,s,a,{ref:c=void 0}=e,f,p=je(),b=kn(),{interactiveControlsOpacity$:v}=b;D(i,v,j=>t(18,o=j));let g=p.ui.isMobile;D(i,g,j=>t(2,s=j));let w=p.ui.isFullscreen;D(i,w,j=>t(6,a=j));let P=p.state.isInteractiveTime$;D(i,P,j=>t(19,l=j));let M=b.showInteractiveTimeIndicatorTooltip$;D(i,M,j=>t(17,n=j));let C=p.ui.controlsVisible;D(i,C,j=>t(20,r=j));let I=p.callbacks?.onInteractiveTimeIndicatorClick,E,$,ee,U=()=>{t(4,ee=!0)},re=()=>{ie(),f?.addEventListener("animationiteration",U,{once:!0})},ie=()=>{t(4,ee=!1),f?.removeEventListener("animationiteration",U)},S=j=>{M.set(j)},G,Y=()=>{$||(M.set(!0),I?.())};Mn(()=>{M.clearTimeout(),ie()});let J=()=>{M.set(!1)};function X(j){mn.call(this,i,j)}function R(j){c=j,t(0,c)}function Z(j){me[j?"unshift":"push"](()=>{c=j,t(0,c)})}function B(j){me[j?"unshift":"push"](()=>{f=j,t(3,f)})}return i.$$set=j=>{"ref"in j&&t(0,c=j.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,E=!s&&r);if(i.$$.dirty[0]&851968)e:t(1,$=!l||!!o||E);if(i.$$.dirty[0]&2)e:t(4,ee=$);if(i.$$.dirty[0]&131074)e:t(5,G=n&&!$);if(i.$$.dirty[0]&131072)e:n?re():ie()},[c,$,s,f,ee,G,a,v,g,w,P,M,C,S,Y,J,E,n,o,l,r,X,R,Z,B]}var hu=class extends K{constructor(e){super(),W(this,e,n3,i3,q,{ref:0},e3,[-1,-1])}},Wl=hu;function r3(i){ve(i,"svelte-st0uzk",".wrapper-bottom.svelte-st0uzk.svelte-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.svelte-st0uzk>.svelte-st0uzk{pointer-events:auto}.controls.svelte-st0uzk.svelte-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.svelte-st0uzk.svelte-st0uzk,.controls-right.svelte-st0uzk.svelte-st0uzk{display:flex;align-content:center}.controls-left.svelte-st0uzk.svelte-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-st0uzk > *:not(:first-child),.controls-right.svelte-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-st0uzk.svelte-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-st0uzk.svelte-st0uzk{transition:none}.settings-menu.svelte-st0uzk.svelte-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Fd(i,e,t){let n=i.slice();return n[209]=e[t].iconUrl,n[210]=e[t].ariaLabel,n[211]=e[t].testId,n[212]=e[t].onClick,n[213]=e[t].tooltip,n}function Hd(i){let e,t,n;function o(r){i[173](r)}let l={disabled:!i[9],tooltipContent:z("tooltip_previous"),$$slots:{default:[l3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&512&&(a.disabled=!r[9]),s[0]&4608|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].prevButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function l3(i){let e,t;return e=new tr({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function zd(i){let e,t,n;function o(r){i[174](r)}let l={disabled:i[74],tooltipContent:z("tooltip_restart"),$$slots:{default:[s3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[2]&4096&&(a.disabled=r[74]),s[2]&4096|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].replayButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function s3(i){let e,t;return e=new Pr({props:{click:i[128],disabled:i[74]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ud(i){let e,t,n;function o(r){i[176](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[a3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&65536&&(a.tooltipContent=r[47]),s[2]&8192&&(a.disabled=r[75]),s[0]&67108864|s[1]&8|s[2]&8192|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].playButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function a3(i){let e,t,n;function o(r){i[175](r)}let l={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(l.ref=i[26]),e=new Sr({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&8&&(a.isPlaying=r[34]),s[2]&8192&&(a.disabled=r[75]),!t&&s[0]&67108864&&(t=!0,a.ref=r[26],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function qd(i){let e,t,n;function o(r){i[177](r)}let l={disabled:!i[8],tooltipContent:z("tooltip_next"),$$slots:{default:[u3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&256&&(a.disabled=!r[8]),s[0]&2304|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].nextButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function u3(i){let e,t;return e=new tr({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function c3(i){let e,t,n,o,l=i[121]&&f3(i),r=i[120]&&m3(i),s=i[119]&&h3(i);return{c(){l&&l.c(),e=N(),r&&r.c(),t=N(),s&&s.c(),n=Ye()},m(a,c){l&&l.m(a,c),k(a,e,c),r&&r.m(a,c),k(a,t,c),s&&s.m(a,c),k(a,n,c),o=!0},p(a,c){a[121]&&l.p(a,c),a[120]&&r.p(a,c),a[119]&&s.p(a,c)},i(a){o||(m(l),m(r),m(s),o=!0)},o(a){h(l),h(r),h(s),o=!1},d(a){a&&(y(e),y(t),y(n)),l&&l.d(a),r&&r.d(a),s&&s.d(a)}}}function f3(i){let e,t,n;function o(r){i[178](r)}let l={disabled:i[73],tooltipContent:z("tooltip_interactive_go_back"),disabledTooltipContent:z(i[124]),$$slots:{default:[d3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[2]&2048&&(a.disabled=r[73]),s[0]&131072|s[2]&2048|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].playPrevChapterButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function d3(i){let e,t;return e=new Rl({props:{disabled:i[73],click:i[17]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function m3(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[76],tooltipContent:z("tooltip_interactive_seek"),disabledTooltipContent:z(i[78]),$$slots:{default:[p3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[2]&16384&&(a.disabled=r[76]),s[2]&65536&&(a.disabledTooltipContent=z(r[78])),s[0]&32768|s[2]&16384|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].seekToInteractiveButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function p3(i){let e,t;return e=new Vl({props:{disabled:i[76],click:i[15]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function h3(i){let e,t,n;function o(r){i[180](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[b3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&131072&&(a.tooltipContent=r[48]),s[2]&32768&&(a.disabled=r[77]),s[0]&65536|s[1]&1|s[2]&32768|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].interactiveGraphButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function b3(i){let e,t;return e=new Ll({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Kd(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[50],$$slots:{default:[_3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&524288&&(a.tooltipContent=r[50]),s[0]&2097152|s[1]&524288|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].liveButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function _3(i){let e,t;return e=new Tl({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Wd(i){let e,t,n;function o(r){i[182](r)}let l={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new _l({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&16777216&&(a.showDuration=r[55]),s[0]&16|s[2]&393216&&(a.position=r[4]?r[79]:r[80]),s[0]&16|s[2]&1572864&&(a.duration=r[4]?r[81]:r[82]),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].time,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function Zd(i){let e,t;return e=new Al({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function g3(i){let e,t,n=i[20]&&Zd(i);return{c(){n&&n.c(),e=Ye()},m(o,l){n&&n.m(o,l),k(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&m(n,1)):(n=Zd(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ce(),h(n,1,1,()=>{n=null}),fe())},i(o){t||(m(n),t=!0)},o(o){h(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function v3(i){let e,t;return e=new Nl({props:{iconUrl:i[209],ariaLabel:i[210]??i[213],testId:i[211],onClick:i[212]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[209]),o[0]&268435456&&(l.ariaLabel=n[210]??n[213]),o[0]&268435456&&(l.testId=n[211]),o[0]&268435456&&(l.onClick=n[212]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function jd(i){let e,t;return e=new yt({props:{tooltipContent:i[213],width:40,$$slots:{default:[v3]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Gd(i){let e,t,n;function o(r){i[185](r)}let l={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&64&&(a.disabled=!r[6]),s[1]&1048576&&(a.tooltipContent=r[51]),s[0]&192|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].vkLogo,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function y3(i){let e,t;return e=new Cl({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function k3(i){let e,t;return e=new od({props:{click:i[127]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:L,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function xd(i){let e,t,n;function o(r){i[187](r)}let l={tooltipContent:i[52],$$slots:{default:[w3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&2097152&&(a.tooltipContent=r[52]),s[0]&262144|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].subtitles,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function w3(i){let e,t;return e=new U1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Qd(i){let e,t,n,o;function l(s){i[188](s)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new bl({props:r}),me.push(()=>Me(t,"ref",l)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","settings-menu svelte-st0uzk")},m(s,a){k(s,e,a),O(t,e,null),o=!0},p(s,a){let c={};a[0]&1024&&(c.supportLink=s[10]),a[1]&32768&&(c.playerControlsHeight=s[46]?.clientHeight),a[0]&16384&&(c.returnFocus=s[14]),!n&&a[0]&16777216&&(n=!0,c.ref=s[24],Ee(()=>n=!1)),t.$set(c)},i(s){o||(m(t.$$.fragment,s),o=!0)},o(s){h(t.$$.fragment,s),o=!1},d(s){s&&y(e),F(t)}}}function Yd(i){let e,t,n;function o(r){i[190](r)}let l={tooltipContent:i[27]?void 0:z("tooltip_settings_off"),$$slots:{default:[C3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&134217728&&(a.tooltipContent=r[27]?void 0:z("tooltip_settings_off")),s[0]&33554432|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].settings,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function C3(i){let e,t,n;function o(r){i[189](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new wr({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};!t&&s[0]&33554432&&(t=!0,a.ref=r[25],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function S3(i){let e,t,n;function o(r){i[191](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[P3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&1024&&(a.className=r[41]?"":"out-of-view"),s[1]&262144&&(a.tooltipContent=r[49]),s[1]&262144|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].context,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function P3(i){let e,t;return e=new Od({props:{ariaLabel:i[49]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Xd(i){let e,t,n;function o(r){i[192](r)}let l={tooltipContent:i[53],$$slots:{default:[T3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&4194304&&(a.tooltipContent=r[53]),s[0]&1073750016|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].fullscreen,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function T3(i){let e,t;return e=new kl({props:{click:i[13],isFullscreen:i[30]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Jd(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[54],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&8388608&&(a.tooltipContent=r[54]),s[0]&536870912|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&8388608&&(t=!0,a.ref=r[23].chromecast,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function I3(i){let e,t;return e=new Sl({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function E3(i){let e,t,n;function o(r){i[196](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new Wl({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};!t&&s[0]&8388608&&(t=!0,a.ref=r[23].interactiveTimeIndicator,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function M3(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,G,Y,J,X;t=new Ml({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let R=i[38]&&Hd(i),Z=i[35]&&zd(i),B=i[36]&&Ud(i),j=i[37]&&qd(i),Ie=i[117]&&c3(i),De=!i[4]&&i[33]&&Kd(i),Le=i[19]&&Wd(i);function qe(ue){i[183](ue)}let Te={className:"w-max",disabled:!i[20],tooltipContent:z("tooltip_episodes"),$$slots:{default:[g3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Te.ref=i[23].episodes),v=new yt({props:Te}),me.push(()=>Me(v,"ref",qe));let he=ft(i[28]),Q=[];for(let ue=0;ue<he.length;ue+=1)Q[ue]=jd(Fd(i,he,ue));let _e=ue=>h(Q[ue],1,1,()=>{Q[ue]=null}),Ae=i[43]&&!i[4]&&Gd(i);function He(ue){i[186](ue)}let Ge={$$slots:{default:[k3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Ge.ref=i[23].volume),E=new yt({props:Ge}),me.push(()=>Me(E,"ref",He));let be=i[40]&&xd(i),Ce=!i[83]&&!i[4]&&Qd(i),Be=i[42]&&!i[4]&&Yd(i),Ze=i[84].features.contextMenuButton&&S3(i),le=i[44]&&Xd(i),oe=i[39]&&Jd(i),ye=i[122]&&E3(i);return{c(){e=T("div"),H(t.$$.fragment),n=N(),o=T("div"),l=T("div"),R&&R.c(),r=N(),Z&&Z.c(),s=N(),B&&B.c(),a=N(),j&&j.c(),c=N(),Ie&&Ie.c(),f=N(),De&&De.c(),p=N(),Le&&Le.c(),b=N(),H(v.$$.fragment),P=N(),M=T("div");for(let ue=0;ue<Q.length;ue+=1)Q[ue].c();C=N(),Ae&&Ae.c(),I=N(),H(E.$$.fragment),ee=N(),be&&be.c(),U=N(),Ce&&Ce.c(),re=N(),Be&&Be.c(),ie=N(),Ze&&Ze.c(),S=N(),le&&le.c(),G=N(),oe&&oe.c(),Y=N(),ye&&ye.c(),J=Ye(),u(l,"class","controls-left svelte-st0uzk"),An(()=>i[184].call(l)),u(M,"class","controls-right svelte-st0uzk"),u(o,"class","controls svelte-st0uzk"),u(e,"class","wrapper-bottom svelte-st0uzk"),V(e,"hidden",i[1]),V(e,"controls-hidden",!i[3]),V(e,"no-smooth",i[2])},m(ue,ke){k(ue,e,ke),O(t,e,null),d(e,n),d(e,o),d(o,l),R&&R.m(l,null),d(l,r),Z&&Z.m(l,null),d(l,s),B&&B.m(l,null),d(l,a),j&&j.m(l,null),d(l,c),Ie&&Ie.m(l,null),d(l,f),De&&De.m(l,null),d(l,p),Le&&Le.m(l,null),d(l,b),O(v,l,null),w=Oo(l,i[184].bind(l)),d(o,P),d(o,M);for(let ze=0;ze<Q.length;ze+=1)Q[ze]&&Q[ze].m(M,null);d(M,C),Ae&&Ae.m(M,null),d(M,I),O(E,M,null),d(M,ee),be&&be.m(M,null),d(M,U),Ce&&Ce.m(M,null),d(M,re),Be&&Be.m(M,null),d(M,ie),Ze&&Ze.m(M,null),d(M,S),le&&le.m(M,null),d(M,G),oe&&oe.m(M,null),i[194](o),i[195](e),k(ue,Y,ke),ye&&ye.m(ue,ke),k(ue,J,ke),X=!0},p(ue,ke){let ze={};ke[1]&16384&&(ze.isHidden=!ue[45]),ke[0]&16&&(ze.isAds=ue[4]),ke[0]&32&&(ze.canRewindLive=ue[5]),ke[1]&2&&(ze.isRewindableLive=ue[32]),t.$set(ze),ue[38]?R?(R.p(ue,ke),ke[1]&128&&m(R,1)):(R=Hd(ue),R.c(),m(R,1),R.m(l,r)):R&&(ce(),h(R,1,1,()=>{R=null}),fe()),ue[35]?Z?(Z.p(ue,ke),ke[1]&16&&m(Z,1)):(Z=zd(ue),Z.c(),m(Z,1),Z.m(l,s)):Z&&(ce(),h(Z,1,1,()=>{Z=null}),fe()),ue[36]?B?(B.p(ue,ke),ke[1]&32&&m(B,1)):(B=Ud(ue),B.c(),m(B,1),B.m(l,a)):B&&(ce(),h(B,1,1,()=>{B=null}),fe()),ue[37]?j?(j.p(ue,ke),ke[1]&64&&m(j,1)):(j=qd(ue),j.c(),m(j,1),j.m(l,c)):j&&(ce(),h(j,1,1,()=>{j=null}),fe()),ue[117]&&Ie.p(ue,ke),!ue[4]&&ue[33]?De?(De.p(ue,ke),ke[0]&16|ke[1]&4&&m(De,1)):(De=Kd(ue),De.c(),m(De,1),De.m(l,p)):De&&(ce(),h(De,1,1,()=>{De=null}),fe()),ue[19]?Le?(Le.p(ue,ke),ke[0]&524288&&m(Le,1)):(Le=Wd(ue),Le.c(),m(Le,1),Le.m(l,b)):Le&&(ce(),h(Le,1,1,()=>{Le=null}),fe());let $e={};if(ke[0]&1048576&&($e.disabled=!ue[20]),ke[0]&1048576|ke[2]&1310720|ke[6]&1073741824&&($e.$$scope={dirty:ke,ctx:ue}),!g&&ke[0]&8388608&&(g=!0,$e.ref=ue[23].episodes,Ee(()=>g=!1)),v.$set($e),ke[0]&268435456){he=ft(ue[28]);let et;for(et=0;et<he.length;et+=1){let ge=Fd(ue,he,et);Q[et]?(Q[et].p(ge,ke),m(Q[et],1)):(Q[et]=jd(ge),Q[et].c(),m(Q[et],1),Q[et].m(M,C))}for(ce(),et=he.length;et<Q.length;et+=1)_e(et);fe()}ue[43]&&!ue[4]?Ae?(Ae.p(ue,ke),ke[0]&16|ke[1]&4096&&m(Ae,1)):(Ae=Gd(ue),Ae.c(),m(Ae,1),Ae.m(M,I)):Ae&&(ce(),h(Ae,1,1,()=>{Ae=null}),fe());let nt={};ke[6]&1073741824&&(nt.$$scope={dirty:ke,ctx:ue}),!$&&ke[0]&8388608&&($=!0,nt.ref=ue[23].volume,Ee(()=>$=!1)),E.$set(nt),ue[40]?be?(be.p(ue,ke),ke[1]&512&&m(be,1)):(be=xd(ue),be.c(),m(be,1),be.m(M,U)):be&&(ce(),h(be,1,1,()=>{be=null}),fe()),!ue[83]&&!ue[4]?Ce?(Ce.p(ue,ke),ke[0]&16|ke[2]&2097152&&m(Ce,1)):(Ce=Qd(ue),Ce.c(),m(Ce,1),Ce.m(M,re)):Ce&&(ce(),h(Ce,1,1,()=>{Ce=null}),fe()),ue[42]&&!ue[4]?Be?(Be.p(ue,ke),ke[0]&16|ke[1]&2048&&m(Be,1)):(Be=Yd(ue),Be.c(),m(Be,1),Be.m(M,ie)):Be&&(ce(),h(Be,1,1,()=>{Be=null}),fe()),ue[84].features.contextMenuButton&&Ze.p(ue,ke),ue[44]?le?(le.p(ue,ke),ke[1]&8192&&m(le,1)):(le=Xd(ue),le.c(),m(le,1),le.m(M,G)):le&&(ce(),h(le,1,1,()=>{le=null}),fe()),ue[39]?oe?(oe.p(ue,ke),ke[1]&256&&m(oe,1)):(oe=Jd(ue),oe.c(),m(oe,1),oe.m(M,null)):oe&&(ce(),h(oe,1,1,()=>{oe=null}),fe()),(!X||ke[0]&2)&&V(e,"hidden",ue[1]),(!X||ke[0]&8)&&V(e,"controls-hidden",!ue[3]),(!X||ke[0]&4)&&V(e,"no-smooth",ue[2]),ue[122]&&ye.p(ue,ke)},i(ue){if(!X){m(t.$$.fragment,ue),m(R),m(Z),m(B),m(j),m(Ie),m(De),m(Le),m(v.$$.fragment,ue);for(let ke=0;ke<he.length;ke+=1)m(Q[ke]);m(Ae),m(E.$$.fragment,ue),m(be),m(Ce),m(Be),m(Ze),m(le),m(oe),m(ye),X=!0}},o(ue){h(t.$$.fragment,ue),h(R),h(Z),h(B),h(j),h(Ie),h(De),h(Le),h(v.$$.fragment,ue),Q=Q.filter(Boolean);for(let ke=0;ke<Q.length;ke+=1)h(Q[ke]);h(Ae),h(E.$$.fragment,ue),h(be),h(Ce),h(Be),h(Ze),h(le),h(oe),h(ye),X=!1},d(ue){ue&&(y(e),y(Y),y(J)),F(t),R&&R.d(),Z&&Z.d(),B&&B.d(),j&&j.d(),Ie&&Ie.d(),De&&De.d(),Le&&Le.d(),F(v),w(),Vi(Q,ue),Ae&&Ae.d(),F(E),be&&be.d(),Ce&&Ce.d(),Be&&Be.d(),Ze&&Ze.d(),le&&le.d(),oe&&oe.d(),i[194](null),i[195](null),ye&&ye.d(ue)}}}function A3(i,e,t){let n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,G,Y,J,X,R,Z,B,j,Ie=L,De=()=>(Ie(),Ie=Mt(ie,x=>t(144,j=x)),ie),Le,qe=L,Te=()=>(qe(),qe=Mt(re,x=>t(145,Le=x)),re),he,Q=L,_e=()=>(Q(),Q=Mt(U,x=>t(146,he=x)),U),Ae,He=L,Ge=()=>(He(),He=Mt(ee,x=>t(147,Ae=x)),ee),be,Ce=L,Be=()=>(Ce(),Ce=Mt($,x=>t(148,be=x)),$),Ze,le=L,oe=()=>(le(),le=Mt(E,x=>t(149,Ze=x)),E),ye,ue=L,ke=()=>(ue(),ue=Mt(I,x=>t(150,ye=x)),I),ze,$e=L,nt=()=>($e(),$e=Mt(C,x=>t(151,ze=x)),C),et,ge=L,Ke=()=>(ge(),ge=Mt(M,x=>t(152,et=x)),M),lt,ut=L,pt=()=>(ut(),ut=Mt(P,x=>t(153,lt=x)),P),St,Re=L,zt=()=>(Re(),Re=Mt(w,x=>t(154,St=x)),w),At,pe=L,wt=()=>(pe(),pe=Mt(g,x=>t(155,At=x)),g),Oe,ot=L,st=()=>(ot(),ot=Mt(v,x=>t(156,Oe=x)),v),ct,Ut=L,mi=()=>(Ut(),Ut=Mt(b,x=>t(157,ct=x)),b),pi,Ki=L,en=()=>(Ki(),Ki=Mt(p,x=>t(158,pi=x)),p),ti,ii=L,hi=()=>(ii(),ii=Mt(f,x=>t(159,ti=x)),f),qt,ni=L,Wi=()=>(ni(),ni=Mt(c,x=>t(160,qt=x)),c),bi,_i,oi,gi,ri,vi,yi,kt,Bt,Kt,li,Vt,si,Wt,Xt,Pt,Tt,Rt,Zt,ai,ln,Zi,jt;i.$$.on_destroy.push(()=>Ie()),i.$$.on_destroy.push(()=>qe()),i.$$.on_destroy.push(()=>Q()),i.$$.on_destroy.push(()=>He()),i.$$.on_destroy.push(()=>Ce()),i.$$.on_destroy.push(()=>le()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>ge()),i.$$.on_destroy.push(()=>ut()),i.$$.on_destroy.push(()=>Re()),i.$$.on_destroy.push(()=>pe()),i.$$.on_destroy.push(()=>ot()),i.$$.on_destroy.push(()=>Ut()),i.$$.on_destroy.push(()=>Ki()),i.$$.on_destroy.push(()=>ii()),i.$$.on_destroy.push(()=>ni());let{bottomHidden:Jt}=e,{bottomNoSmooth:ki}=e,{showControls:Li}=e,{controlsElementRef:Nt=void 0}=e,{isAds:ht=!1}=e,{canRewindLive:wi}=e,{logoClickable:ji}=e,{logoHidden:$t}=e,{logoTargetUrl:Gi=""}=e,{showNextPrevButtons:ui}=e,{nextButtonActive:tn}=e,{prevButtonActive:xi}=e,{isOneVideoPlaylist:nn=!1}=e,{supportLink:Bi}=e,{customFullscreenSupported:Ci=!0}=e,{playNextVideo:Dt}=e,{playPrevVideo:Gt}=e,{repeatPlaylist:ci}=e,{toggleFullscreen:Ri}=e,{returnFocus:Ni}=e,{seekToInteractive:fi}=e,{toggleGraph:Si}=e,{playPrevChapter:Pi}=e,Ue=je(),Di=kn(),Lt=Ct(),Ve=Ue.actions.internal.toggleMuted,Ti=Ue.actions.internal.togglePlay,Qi=Ue.actions.internal.pause,Oi=Ue.actions.internal.toggleSubtitle,Ii=Ue.callbacks?.onAudioDoesNotExistHint,on=Ue.callbacks?.onAudioDisabledHint,Ei=Ue.state.duration$;D(i,Ei,x=>t(82,Zi=x));let Yi=Ue.state.positionWithScrubbing$;D(i,Yi,x=>t(80,ai=x));let Ot=Ue.state.playbackState$;D(i,Ot,x=>t(161,oi=x));let Xi=Ue.state.chromecastConnected$;D(i,Xi,x=>t(83,jt=x));let ei=Ue.state.isAudioAvailable$;D(i,ei,x=>t(197,S=x));let se=Ue.state.isAudioDisabled,it=Ue.state.isEnded$;D(i,it,x=>t(169,Wt=x));let Ft=Ue.state.isLive$;D(i,Ft,x=>t(33,kt=x));let xt=Ue.state.isActiveLive$;D(i,xt,x=>t(163,vi=x));let Mi=Ue.state.isRewindableLive$;D(i,Mi,x=>t(32,yi=x));let Ai=Ue.ui.isPictureInPictureActive$;D(i,Ai,x=>t(165,Kt=x));let bn=Ue.ui.pictureInPictureType$;D(i,bn,x=>t(164,Bt=x));let _n=Ue.ui.settingsMenuVisible;D(i,_n,x=>t(27,J=x));let un=Ue.ui.settingsMenuOpenedByKeyboard;D(i,un,x=>t(140,Y=x));let It=Ue.ui.controls,Ln=Ue.actions.internal.getVideoEpisodes(),Bn=Ue.state.chromecastState$;D(i,Bn,x=>t(29,bi=x));let gn=Ue.state.availableSubtitlesList$;D(i,gn,x=>t(168,si=x));let Pn=Ue.state.currentSubtitle$;D(i,Pn,x=>t(170,Xt=x));let cn=It.disabledControls$;D(i,cn,x=>t(172,Tt=x));let sn=Ue.ui.contextMenu.visible$;D(i,sn,x=>t(162,gi=x));let ne=Ue.ui.contextMenu.showContextMenuBtn$;D(i,ne,x=>t(166,li=x));let mt=Ue.ui.contextMenu.openedByBtnKeyboard$;D(i,mt,x=>t(167,Vt=x));let Tn=Ue.ui.startedByKeyboard$;D(i,Tn,x=>t(139,G=x));let Rn=Ue.ads.duration;D(i,Rn,x=>t(81,ln=x));let Nn=Ue.ads.position;D(i,Nn,x=>t(79,Zt=x));let jn=Ue.ads.playbackState;D(i,jn,x=>t(171,Pt=x));let Gn=Ue.ui.isFullscreen;D(i,Gn,x=>t(30,_i=x));let xn=Ue.ui.playerSize;D(i,xn,x=>t(142,R=x));let Qn=Ue.ui.currentGridType$;D(i,Qn,x=>t(143,Z=x));let Yn=Ue.ui.additionalButtons$;D(i,Yn,x=>t(28,B=x));let uo=Ue.actions.internal.getVideoElement,te=Ue.actions.internal.replayInteractive,fn=Ue.state.isInteractive,co=Ue.state.isInteractiveTime$;D(i,co,x=>t(141,X=x));let fo=Ue.state.showInteractiveGraph,Xn=Ue.state.showSeekToInteractive,Lo=Ue.state.showPlayPrevChapter,Dn=Ue.state.showInteractiveTimeIndicator,Jn=Ue.state.graphIsOpened$;D(i,Jn,x=>t(31,ri=x));let Bo=Ue.state.playPrevChapterDisabledTooltip,Ro=Di.seekToInteractiveDisabledTooltip$;D(i,Ro,x=>t(78,Rt=x));let cr=()=>Ue.actions.internal.toggleChromecast(),Un,mo,po,No,ho,at,_,ae,we,Ne,Xe,Ht,Qt,Et,dn,In,fr,Do,tc,ic,nc,ss="",sp=(x,us)=>{if(!x){t(50,ss=z("tooltip_live"));return}us===Ao.PlaybackState.PAUSED&&t(50,ss=z("tooltip_play"))},oc,rc,lc,sc,Vr,Qe={},En,dr,as,ac,ap=(0,$d.throttleFn)(ql,260,{leading:!1}),Lr,Br,Rr;function up(){oo({isAudioDisabled:se,audioDisabledHintCallback:on,isAudioAvailable:S,audioIsNotExistHintCallback:Ii})&&Ve()}let cp=fn?te:nn?Ti:ci;function fp(x){i.$$.not_equal(Qe.prevButton,x)&&(Qe.prevButton=x,t(23,Qe))}function dp(x){i.$$.not_equal(Qe.replayButton,x)&&(Qe.replayButton=x,t(23,Qe))}function mp(x){Rr=x,t(26,Rr)}function pp(x){i.$$.not_equal(Qe.playButton,x)&&(Qe.playButton=x,t(23,Qe))}function hp(x){i.$$.not_equal(Qe.nextButton,x)&&(Qe.nextButton=x,t(23,Qe))}function bp(x){i.$$.not_equal(Qe.playPrevChapterButton,x)&&(Qe.playPrevChapterButton=x,t(23,Qe))}function _p(x){i.$$.not_equal(Qe.seekToInteractiveButton,x)&&(Qe.seekToInteractiveButton=x,t(23,Qe))}function gp(x){i.$$.not_equal(Qe.interactiveGraphButton,x)&&(Qe.interactiveGraphButton=x,t(23,Qe))}function vp(x){i.$$.not_equal(Qe.liveButton,x)&&(Qe.liveButton=x,t(23,Qe))}function yp(x){i.$$.not_equal(Qe.time,x)&&(Qe.time=x,t(23,Qe))}function kp(x){i.$$.not_equal(Qe.episodes,x)&&(Qe.episodes=x,t(23,Qe))}function wp(){Vr=this.clientWidth,t(22,Vr)}function Cp(x){i.$$.not_equal(Qe.vkLogo,x)&&(Qe.vkLogo=x,t(23,Qe))}function Sp(x){i.$$.not_equal(Qe.volume,x)&&(Qe.volume=x,t(23,Qe))}function Pp(x){i.$$.not_equal(Qe.subtitles,x)&&(Qe.subtitles=x,t(23,Qe))}function Tp(x){Lr=x,t(24,Lr)}function Ip(x){Br=x,t(25,Br)}function Ep(x){i.$$.not_equal(Qe.settings,x)&&(Qe.settings=x,t(23,Qe))}function Mp(x){i.$$.not_equal(Qe.context,x)&&(Qe.context=x,t(23,Qe))}function Ap(x){i.$$.not_equal(Qe.fullscreen,x)&&(Qe.fullscreen=x,t(23,Qe))}function Vp(x){i.$$.not_equal(Qe.chromecast,x)&&(Qe.chromecast=x,t(23,Qe))}function Lp(x){me[x?"unshift":"push"](()=>{fr=x,t(46,fr)})}function Bp(x){me[x?"unshift":"push"](()=>{Nt=x,t(0,Nt)})}function Rp(x){i.$$.not_equal(Qe.interactiveTimeIndicator,x)&&(Qe.interactiveTimeIndicator=x,t(23,Qe))}i.$$set=x=>{"bottomHidden"in x&&t(1,Jt=x.bottomHidden),"bottomNoSmooth"in x&&t(2,ki=x.bottomNoSmooth),"showControls"in x&&t(3,Li=x.showControls),"controlsElementRef"in x&&t(0,Nt=x.controlsElementRef),"isAds"in x&&t(4,ht=x.isAds),"canRewindLive"in x&&t(5,wi=x.canRewindLive),"logoClickable"in x&&t(6,ji=x.logoClickable),"logoHidden"in x&&t(129,$t=x.logoHidden),"logoTargetUrl"in x&&t(7,Gi=x.logoTargetUrl),"showNextPrevButtons"in x&&t(130,ui=x.showNextPrevButtons),"nextButtonActive"in x&&t(8,tn=x.nextButtonActive),"prevButtonActive"in x&&t(9,xi=x.prevButtonActive),"isOneVideoPlaylist"in x&&t(131,nn=x.isOneVideoPlaylist),"supportLink"in x&&t(10,Bi=x.supportLink),"customFullscreenSupported"in x&&t(132,Ci=x.customFullscreenSupported),"playNextVideo"in x&&t(11,Dt=x.playNextVideo),"playPrevVideo"in x&&t(12,Gt=x.playPrevVideo),"repeatPlaylist"in x&&t(133,ci=x.repeatPlaylist),"toggleFullscreen"in x&&t(13,Ri=x.toggleFullscreen),"returnFocus"in x&&t(14,Ni=x.returnFocus),"seekToInteractive"in x&&t(15,fi=x.seekToInteractive),"toggleGraph"in x&&t(16,Si=x.toggleGraph),"playPrevChapter"in x&&t(17,Pi=x.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Tt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Tt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,l=Tt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,r=Tt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,s=Tt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,a=Tt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Un=ht?Pt==="playing":oi===Ao.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,mo=Xt.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,po=Wt&&!ht||fn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,No=!Wt||fn||ht);if(i.$$.dirty[4]&524288)e:t(134,ho=hn(Z,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,at=ui&&hn(Z,"m")&&!ht&&tn);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,_=ui&&hn(Z,"m")&&!ht&&xi);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,ae=bi!==Ao.ChromecastState.NOT_AVAILABLE&&!(Kt&&Bt===1)&&hn(Z,"m")&&!fn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,we=si.length>0&&hn(Z,"m"));if(i.$$.dirty[5]&6144)e:t(41,Ne=Vt||li);if(i.$$.dirty[4]&524288)e:t(42,Xe=hn(Z,"s"));if(i.$$.dirty[4]&32)e:t(43,Ht=!$t);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,Qt=Lt.features.fullscreen&&($t||hn(Z,"s"))&&!(Kt&&Bt===1)&&(fn?Ci:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Et=(!kt||ht)&&!(Lt.features.interactiveHideTime&&fn));if(i.$$.dirty[4]&262144)e:t(45,dn=R.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,In=!ht&&!kt&&!!Ln?.length&&ho&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,Do=!yi||vi);if(i.$$.dirty[5]&64)e:t(47,tc=oi===Ao.PlaybackState.PLAYING?z("tooltip_pause"):z("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,ic=ri?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,nc=gi?z("aria_label_context_menu_close"):z("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:sp(Do,oi);if(i.$$.dirty[0]&262144)e:t(52,rc=mo?z("tooltip_subtitles_on"):z("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,lc=_i?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,sc=bi===Ao.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,En={prevButton:qt?qt.right-qt.left:0,replayButton:ti?ti.right-ti.left:0,playButton:pi?pi.right-pi.left:0,nextButton:ct?ct.right-ct.left:0,playPrevChapterButton:Oe?Oe.right-Oe.left:0,seekToInteractiveButton:At?At.right-At.left:0,interactiveGraphButton:St?St.right-St.left:0,liveButton:lt?lt.right-lt.left:0,time:et?et.right-et.left:0,episodes:ze?ze.right-ze.left:0,vkLogo:ye?ye.right-ye.left:0,volume:Ze?Ze.right-Ze.left:0,subtitles:be?be.right-be.left:0,settings:Ae?Ae.right-Ae.left:0,context:he?he.right-he.left:0,fullscreen:Le?Le.right-Le.left:0,chromecast:j?j.right-j.left:0,additionalButtons:B.length?B.reduce(x=>[...x,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!dr||dr<En.time)&&t(136,dr=En.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let x=0;In&&(hn(Z,"xl")?x=En.time:x=60);let us=En.prevButton+En.playButton+En.nextButton+En.seekToInteractiveButton+En.interactiveGraphButton+En.liveButton+dr+x;t(137,as=Et&&Vr>=us)}if(i.$$.dirty[4]&532480)e:t(55,ac=as&&hn(Z,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:ap(uo(),It,Qe,Li);if(i.$$.dirty[0]&167772160)e:Qo(Br,J,un);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Eo(Lr,J,Y);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Kl(Tn,G,Rr)};e:t(51,oc=Lt.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo"));e:Wi(t(72,{prevButton:c,replayButton:f,playButton:p,nextButton:b,playPrevChapterButton:v,seekToInteractiveButton:g,interactiveGraphButton:w,liveButton:P,time:M,episodes:C,vkLogo:I,volume:E,subtitles:$,settings:ee,context:U,fullscreen:re,chromecast:ie}=It,c,hi(t(71,f)),en(t(70,p)),mi(t(69,b)),st(t(68,v)),wt(t(67,g)),zt(t(66,w)),pt(t(65,P)),Ke(t(64,M)),nt(t(63,C)),ke(t(62,I)),oe(t(61,E)),Be(t(60,$)),Ge(t(59,ee)),_e(t(58,U)),Te(t(57,re)),De(t(56,ie))));return[Nt,Jt,ki,Li,ht,wi,ji,Gi,tn,xi,Bi,Dt,Gt,Ri,Ni,fi,Si,Pi,mo,Et,In,Do,Vr,Qe,Lr,Br,Rr,J,B,bi,_i,ri,yi,kt,Un,po,No,at,_,ae,we,Ne,Xe,Ht,Qt,dn,fr,tc,ic,nc,ss,oc,rc,lc,sc,ac,ie,re,U,ee,$,E,I,C,M,P,w,g,v,b,p,f,c,a,s,r,l,o,Rt,Zt,ai,ln,Zi,jt,Lt,Ti,Qi,Oi,Ei,Yi,Ot,Xi,ei,it,Ft,xt,Mi,Ai,bn,_n,un,Ln,Bn,gn,Pn,cn,sn,ne,mt,Tn,Rn,Nn,jn,Gn,xn,Qn,Yn,fn,co,fo,Xn,Lo,Dn,Jn,Bo,Ro,cr,up,cp,$t,ui,nn,Ci,ci,ho,En,dr,as,n,G,Y,X,R,Z,j,Le,he,Ae,be,Ze,ye,ze,et,lt,St,At,Oe,ct,pi,ti,qt,oi,gi,vi,Bt,Kt,li,Vt,si,Wt,Xt,Pt,Tt,fp,dp,mp,pp,hp,bp,_p,gp,vp,yp,kp,wp,Cp,Sp,Pp,Tp,Ip,Ep,Mp,Ap,Vp,Lp,Bp,Rp]}var bu=class extends K{constructor(e){super(),W(this,e,A3,M3,q,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},r3,[-1,-1,-1,-1,-1,-1,-1])}},e0=bu;var nr=require("@vkontakte/videoplayer-core");function V3(i){let e,t,n,o;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("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(t,"fill","none"),u(t,"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(l,r){k(l,e,r),d(e,t),d(t,n),d(t,o)},p:L,i:L,o:L,d(l){l&&y(e)}}}var gu=class extends K{constructor(e){super(),W(this,e,null,V3,q,{})}},t0=gu;var n0=require("@vkontakte/videoplayer-shared");function L3(i){ve(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function i0(i){let e;return{c(){e=T("span"),e.textContent=`${z("mobile_unmute")}`,u(e,"class","text svelte-6gmlbk")},m(t,n){k(t,e,n)},p:L,d(t){t&&y(e)}}}function B3(i){let e,t,n,o;var l=i[4];function r(a){return{}}l&&(t=an(l,r(i)));let s=i[1]&&i0(i);return{c(){e=T("div"),t&&H(t.$$.fragment),n=N(),s&&s.c(),u(e,"class","container svelte-6gmlbk"),u(e,"aria-hidden","true"),V(e,"expanded",i[1])},m(a,c){k(a,e,c),t&&O(t,e,null),d(e,n),s&&s.m(e,null),o=!0},p(a,c){if(c&16&&l!==(l=a[4])){if(t){ce();let f=t;h(f.$$.fragment,1,0,()=>{F(f,1)}),fe()}l?(t=an(l,r(a)),H(t.$$.fragment),m(t.$$.fragment,1),O(t,e,n)):t=null}a[1]?s?s.p(a,c):(s=i0(a),s.c(),s.m(e,null)):s&&(s.d(1),s=null),(!o||c&2)&&V(e,"expanded",a[1])},i(a){o||(t&&m(t.$$.fragment,a),o=!0)},o(a){t&&h(t.$$.fragment,a),o=!1},d(a){a&&y(e),t&&F(t),s&&s.d()}}}function R3(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[B3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&2&&(a.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),s&4&&(a.click=r[2]),s&8&&(a.ariaLabel=r[3]),s&146&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function N3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=n0.noop}=e,{ref:r=void 0}=e,s,a;function c(f){r=f,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=n?z("tooltip_volume"):z("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,a=o?Mo:t0)},[r,o,l,s,a,n,c]}var vu=class extends K{constructor(e){super(),W(this,e,N3,R3,q,{muted:5,expanded:1,click:2,ref:0},L3)}},yu=vu;function D3(i){let e,t,n,o;return{c(){e=A("svg"),t=A("path"),n=A("path"),o=A("path"),u(t,"fill",i[1]),u(t,"clip-rule","evenodd"),u(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 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",i[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"),V(n,"hidden",!i[0]),u(o,"fill",i[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"),V(o,"hidden",i[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(l,r){k(l,e,r),d(e,t),d(e,n),d(e,o)},p(l,[r]){r&2&&u(t,"fill",l[1]),r&2&&u(n,"fill",l[1]),r&1&&V(n,"hidden",!l[0]),r&2&&u(o,"fill",l[1]),r&1&&V(o,"hidden",l[0])},i:L,o:L,d(l){l&&y(e)}}}function O3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"#2688EB":"#fff")},[o,n]}var ku=class extends K{constructor(e){super(),W(this,e,O3,D3,q,{isActive:0})}},o0=ku;var r0=require("@vkontakte/videoplayer-shared");function F3(i){let e,t;return e=new o0({props:{isActive:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function H3(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:z("menu_pip"),click:i[2],$$slots:{default:[F3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new rt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,[s]){let a={};s&4&&(a.click=r[2]),s&18&&(a.$$scope={dirty:s,ctx:r}),!t&&s&1&&(t=!0,a.ref=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function z3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=r0.noop}=e;function r(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"isPictureInPictureActive"in s&&t(1,o=s.isPictureInPictureActive),"click"in s&&t(2,l=s.click)},[n,o,l,r]}var wu=class extends K{constructor(e){super(),W(this,e,z3,H3,q,{ref:0,isPictureInPictureActive:1,click:2})}},l0=wu;var M0=require("@vkontakte/videoplayer-shared");function U3(i){ve(i,"svelte-1tcstu3",".wrapper-bottom.svelte-1tcstu3.svelte-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.svelte-1tcstu3>.svelte-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1tcstu3.svelte-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1tcstu3.svelte-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.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-right.svelte-1tcstu3.svelte-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.svelte-1tcstu3.svelte-1tcstu3{left:12px}.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3{left:64px}.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{right:12px}.controls.svelte-1tcstu3.svelte-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.svelte-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1tcstu3.svelte-1tcstu3{transition:none}.settings-mobile.svelte-1tcstu3.svelte-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.svelte-1tcstu3.svelte-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.svelte-1tcstu3.svelte-1tcstu3{top:16px}.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{right:44px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function s0(i,e,t){let n=i.slice();return n[169]=e[t].iconUrl,n[170]=e[t].ariaLabel,n[171]=e[t].testId,n[172]=e[t].onClick,n[173]=e[t].tooltip,n}function a0(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C=(!i[51]||i[53])&&u0(i),I=ft(i[56]),E=[];for(let R=0;R<I.length;R+=1)E[R]=c0(s0(i,I,R));let $=R=>h(E[R],1,1,()=>{E[R]=null}),ee=i[36]&&f0(i),U=i[37]&&d0(i),re=i[57]&&m0(i),ie=i[39]&&p0(i),S=i[8]&&h0(i),G=i[34]&&b0(i),Y=i[33]&&_0(i),J=i[8]&&g0(i),X=i[96]&&!i[29]&&v0(i);return{c(){e=T("div"),t=N(),n=T("div"),C&&C.c(),o=N(),l=T("div");for(let R=0;R<E.length;R+=1)E[R].c();r=N(),ee&&ee.c(),s=N(),U&&U.c(),a=N(),re&&re.c(),c=N(),ie&&ie.c(),f=N(),p=T("div"),S&&S.c(),b=N(),G&&G.c(),v=N(),Y&&Y.c(),g=N(),J&&J.c(),w=N(),X&&X.c(),P=Ye(),u(e,"class","overlay-mobile svelte-1tcstu3"),V(e,"hidden",!i[42]),u(n,"class","wrapper-top-left svelte-1tcstu3"),V(n,"hidden",!i[3]),V(n,"fullscreen",i[52]),u(l,"class","wrapper-top-right svelte-1tcstu3"),V(l,"hidden",!i[3]&&!i[27]),V(l,"fullscreen",i[52]),u(p,"class","wrapper-middle svelte-1tcstu3"),V(p,"hidden",!i[3]||i[29])},m(R,Z){k(R,e,Z),k(R,t,Z),k(R,n,Z),C&&C.m(n,null),k(R,o,Z),k(R,l,Z);for(let B=0;B<E.length;B+=1)E[B]&&E[B].m(l,null);d(l,r),ee&&ee.m(l,null),d(l,s),U&&U.m(l,null),d(l,a),re&&re.m(l,null),d(l,c),ie&&ie.m(l,null),k(R,f,Z),k(R,p,Z),S&&S.m(p,null),d(p,b),G&&G.m(p,null),d(p,v),Y&&Y.m(p,null),d(p,g),J&&J.m(p,null),k(R,w,Z),X&&X.m(R,Z),k(R,P,Z),M=!0},p(R,Z){if((!M||Z[1]&2048)&&V(e,"hidden",!R[42]),!R[51]||R[53]?C?(C.p(R,Z),Z[1]&5242880&&m(C,1)):(C=u0(R),C.c(),m(C,1),C.m(n,null)):C&&(ce(),h(C,1,1,()=>{C=null}),fe()),(!M||Z[0]&8)&&V(n,"hidden",!R[3]),(!M||Z[1]&2097152)&&V(n,"fullscreen",R[52]),Z[1]&33554432){I=ft(R[56]);let B;for(B=0;B<I.length;B+=1){let j=s0(R,I,B);E[B]?(E[B].p(j,Z),m(E[B],1)):(E[B]=c0(j),E[B].c(),m(E[B],1),E[B].m(l,r))}for(ce(),B=I.length;B<E.length;B+=1)$(B);fe()}R[36]?ee?(ee.p(R,Z),Z[1]&32&&m(ee,1)):(ee=f0(R),ee.c(),m(ee,1),ee.m(l,s)):ee&&(ce(),h(ee,1,1,()=>{ee=null}),fe()),R[37]?U?(U.p(R,Z),Z[1]&64&&m(U,1)):(U=d0(R),U.c(),m(U,1),U.m(l,a)):U&&(ce(),h(U,1,1,()=>{U=null}),fe()),R[57]?re?(re.p(R,Z),Z[1]&67108864&&m(re,1)):(re=m0(R),re.c(),m(re,1),re.m(l,c)):re&&(ce(),h(re,1,1,()=>{re=null}),fe()),R[39]?ie?(ie.p(R,Z),Z[1]&256&&m(ie,1)):(ie=p0(R),ie.c(),m(ie,1),ie.m(l,null)):ie&&(ce(),h(ie,1,1,()=>{ie=null}),fe()),(!M||Z[0]&134217736)&&V(l,"hidden",!R[3]&&!R[27]),(!M||Z[1]&2097152)&&V(l,"fullscreen",R[52]),R[8]?S?(S.p(R,Z),Z[0]&256&&m(S,1)):(S=h0(R),S.c(),m(S,1),S.m(p,b)):S&&(ce(),h(S,1,1,()=>{S=null}),fe()),R[34]?G?(G.p(R,Z),Z[1]&8&&m(G,1)):(G=b0(R),G.c(),m(G,1),G.m(p,v)):G&&(ce(),h(G,1,1,()=>{G=null}),fe()),R[33]?Y?(Y.p(R,Z),Z[1]&4&&m(Y,1)):(Y=_0(R),Y.c(),m(Y,1),Y.m(p,g)):Y&&(ce(),h(Y,1,1,()=>{Y=null}),fe()),R[8]?J?(J.p(R,Z),Z[0]&256&&m(J,1)):(J=g0(R),J.c(),m(J,1),J.m(p,null)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),(!M||Z[0]&536870920)&&V(p,"hidden",!R[3]||R[29]),R[96]&&!R[29]?X?(X.p(R,Z),Z[0]&536870912&&m(X,1)):(X=v0(R),X.c(),m(X,1),X.m(P.parentNode,P)):X&&(ce(),h(X,1,1,()=>{X=null}),fe())},i(R){if(!M){m(C);for(let Z=0;Z<I.length;Z+=1)m(E[Z]);m(ee),m(U),m(re),m(ie),m(S),m(G),m(Y),m(J),m(X),M=!0}},o(R){h(C),E=E.filter(Boolean);for(let Z=0;Z<E.length;Z+=1)h(E[Z]);h(ee),h(U),h(re),h(ie),h(S),h(G),h(Y),h(J),h(X),M=!1},d(R){R&&(y(e),y(t),y(n),y(o),y(l),y(f),y(p),y(w),y(P)),C&&C.d(),Vi(E,R),ee&&ee.d(),U&&U.d(),re&&re.d(),ie&&ie.d(),S&&S.d(),G&&G.d(),Y&&Y.d(),J&&J.d(),X&&X.d(R)}}}function u0(i){let e,t,n;function o(r){i[130](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new yu({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&8388608&&(a.muted=r[54]),s[1]&17825792&&(a.expanded=r[51]&&!r[70]&&r[55]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].volume,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function c0(i){let e,t;return e=new Nl({props:{iconUrl:i[169],ariaLabel:i[170]??i[173],testId:i[171],onClick:i[172]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[169]),o[1]&33554432&&(l.ariaLabel=n[170]??n[173]),o[1]&33554432&&(l.testId=n[171]),o[1]&33554432&&(l.onClick=n[172]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function f0(i){let e,t,n;function o(r){i[131](r)}let l={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new Sl({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&268435456&&(a.state=r[28]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].chromecast,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function d0(i){let e,t,n;function o(r){i[132](r)}let l={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new l0({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&67108864&&(a.isPictureInPictureActive=r[26]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].pip,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function m0(i){let e,t,n;function o(r){i[133](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new wr({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};!t&&s[0]&4194304&&(t=!0,a.ref=r[22],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function p0(i){let e,t,n;function o(r){i[134](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new Cl({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&128&&(a.targetUrl=r[7]),s[0]&64&&(a.logoClickable=r[6]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].vkLogo,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function h0(i){let e,t,n;function o(r){i[135](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new tr({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&8192&&(a.click=r[13]),s[0]&1024&&(a.disabled=!r[10]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].prevButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function b0(i){let e,t,n;function o(r){i[136](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new Sr({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&262144&&(a.disabled=r[49]),s[1]&1&&(a.isPlaying=r[31]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].playButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function _0(i){let e,t,n;function o(r){i[137](r)}let l={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Pr({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&131072&&(a.disabled=r[48]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].replayButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function g0(i){let e,t,n;function o(r){i[138](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new tr({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&4096&&(a.click=r[12]),s[0]&512&&(a.disabled=!r[9]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].nextButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function v0(i){let e,t,n,o,l=i[100]&&q3(i),r=i[98]&&K3(i),s=i[99]&&W3(i);return{c(){l&&l.c(),e=N(),r&&r.c(),t=N(),s&&s.c(),n=Ye()},m(a,c){l&&l.m(a,c),k(a,e,c),r&&r.m(a,c),k(a,t,c),s&&s.m(a,c),k(a,n,c),o=!0},p(a,c){a[100]&&l.p(a,c),a[98]&&r.p(a,c),a[99]&&s.p(a,c)},i(a){o||(m(l),m(r),m(s),o=!0)},o(a){h(l),h(r),h(s),o=!1},d(a){a&&(y(e),y(t),y(n)),l&&l.d(a),r&&r.d(a),s&&s.d(a)}}}function q3(i){let e,t,n,o,l,r;function s(c){i[139](c)}let a={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(a.ref=i[20].playPrevChapterButton),t=new Rl({props:a}),me.push(()=>Me(t,"ref",s)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","wrapper-middle-left svelte-1tcstu3"),V(e,"fullscreen",i[52]),V(e,"hidden",!i[3])},m(c,f){k(c,e,f),O(t,e,null),o=!0,l||(r=de(e,"click",i[108]),l=!0)},p(c,f){let p={};f[0]&8&&(p.hidden=!c[3]),f[1]&65536&&(p.disabled=c[47]),f[0]&262144&&(p.click=c[18]),!n&&f[0]&1048576&&(n=!0,p.ref=c[20].playPrevChapterButton,Ee(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&V(e,"fullscreen",c[52]),(!o||f[0]&8)&&V(e,"hidden",!c[3])},i(c){o||(m(t.$$.fragment,c),o=!0)},o(c){h(t.$$.fragment,c),o=!1},d(c){c&&y(e),F(t),l=!1,r()}}}function K3(i){let e,t,n,o,l;function r(a){i[140](a)}let s={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(s.ref=i[20].interactiveGraphButton),t=new Ll({props:s}),me.push(()=>Me(t,"ref",r)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class",o=mc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),V(e,"fullscreen",i[52]),V(e,"hidden",!i[3]&&!i[58])},m(a,c){k(a,e,c),O(t,e,null),l=!0},p(a,c){let f={};c[0]&8|c[1]&134217728&&(f.hidden=!a[3]&&!a[58]),c[1]&524288&&(f.disabled=a[50]),c[0]&131072&&(f.click=a[17]),c[1]&134217728&&(f.graphIsOpened=a[58]),!n&&c[0]&1048576&&(n=!0,f.ref=a[20].interactiveGraphButton,Ee(()=>n=!1)),t.$set(f),(!l||c[1]&2097152)&&V(e,"fullscreen",a[52]),(!l||c[0]&8|c[1]&134217728)&&V(e,"hidden",!a[3]&&!a[58])},i(a){l||(m(t.$$.fragment,a),l=!0)},o(a){h(t.$$.fragment,a),l=!1},d(a){a&&y(e),F(t)}}}function W3(i){let e,t,n,o,l,r;function s(c){i[141](c)}let a={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(a.ref=i[20].seekToInteractiveButton),t=new Vl({props:a}),me.push(()=>Me(t,"ref",s)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","wrapper-middle-right svelte-1tcstu3"),V(e,"fullscreen",i[52]),V(e,"hidden",!i[3])},m(c,f){k(c,e,f),O(t,e,null),o=!0,l||(r=de(e,"click",i[109]),l=!0)},p(c,f){let p={};f[0]&8&&(p.hidden=!c[3]),f[1]&32768&&(p.disabled=c[46]),f[0]&65536&&(p.click=c[16]),!n&&f[0]&1048576&&(n=!0,p.ref=c[20].seekToInteractiveButton,Ee(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&V(e,"fullscreen",c[52]),(!o||f[0]&8)&&V(e,"hidden",!c[3])},i(c){o||(m(t.$$.fragment,c),o=!0)},o(c){h(t.$$.fragment,c),o=!1},d(c){c&&y(e),F(t),l=!1,r()}}}function y0(i){let e,t,n,o,l,r=i[53]&&k0(i),s=i[32]&&w0(i);return o=new El({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=N(),s&&s.c(),t=N(),n=T("div"),H(o.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),V(n,"fullscreen",i[52])},m(a,c){r&&r.m(a,c),k(a,e,c),s&&s.m(a,c),k(a,t,c),k(a,n,c),O(o,n,null),l=!0},p(a,c){a[53]?r?(r.p(a,c),c[1]&4194304&&m(r,1)):(r=k0(a),r.c(),m(r,1),r.m(e.parentNode,e)):r&&(ce(),h(r,1,1,()=>{r=null}),fe()),a[32]?s?(s.p(a,c),c[1]&2&&m(s,1)):(s=w0(a),s.c(),m(s,1),s.m(t.parentNode,t)):s&&(ce(),h(s,1,1,()=>{s=null}),fe());let f={};c[1]&268435456&&(f.position=a[59]),c[1]&536870912&&(f.duration=a[60]),o.$set(f),(!l||c[1]&2097152)&&V(n,"fullscreen",a[52])},i(a){l||(m(r),m(s),m(o.$$.fragment,a),l=!0)},o(a){h(r),h(s),h(o.$$.fragment,a),l=!1},d(a){a&&(y(e),y(t),y(n)),r&&r.d(a),s&&s.d(a),F(o)}}}function k0(i){let e,t,n,o;function l(s){i[142](s)}let r={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new yu({props:r}),me.push(()=>Me(t,"ref",l)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","wrapper-top-right svelte-1tcstu3"),V(e,"fullscreen",i[52])},m(s,a){k(s,e,a),O(t,e,null),o=!0},p(s,a){let c={};a[1]&8388608&&(c.muted=s[54]),!n&&a[0]&1048576&&(n=!0,c.ref=s[20].volume,Ee(()=>n=!1)),t.$set(c),(!o||a[1]&2097152)&&V(e,"fullscreen",s[52])},i(s){o||(m(t.$$.fragment,s),o=!0)},o(s){h(t.$$.fragment,s),o=!1},d(s){s&&y(e),F(t)}}}function w0(i){let e,t,n,o;function l(s){i[143](s)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new Sr({props:r}),me.push(()=>Me(t,"ref",l)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","wrapper-middle svelte-1tcstu3")},m(s,a){k(s,e,a),O(t,e,null),o=!0},p(s,a){let c={};a[1]&262144&&(c.disabled=s[49]),a[1]&2&&(c.isPlaying=!s[32]),!n&&a[0]&1048576&&(n=!0,c.ref=s[20].playButton,Ee(()=>n=!1)),t.$set(c)},i(s){o||(m(t.$$.fragment,s),o=!0)},o(s){h(t.$$.fragment,s),o=!1},d(s){s&&y(e),F(t)}}}function Z3(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[j3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&131072&&(a.disabled=r[48]),s[1]&131072|s[5]&2097152&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].replayButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function j3(i){let e,t;return e=new Pr({props:{disabled:i[48],click:i[95]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function C0(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[G3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&524288|s[1]&16384|s[5]&2097152&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].liveButton,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function G3(i){let e,t;return e=new Tl({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function S0(i){let e,t,n;function o(r){i[146](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new _l({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&16&&(a.showDuration=r[35]),s[0]&16|s[1]&1342177280&&(a.position=r[4]?r[59]:r[61]),s[0]&16|s[1]&536870912|s[2]&1&&(a.duration=r[4]?r[60]:r[62]),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].time,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function P0(i){let e,t,n,o;return n=new Al({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=N(),H(n.$$.fragment),u(e,"aria-hidden","true")},m(l,r){k(l,e,r),k(l,t,r),O(n,l,r),o=!0},p(l,r){let s={};r[1]&1073741824&&(s.position=l[61]),r[2]&1&&(s.duration=l[62]),n.$set(s)},i(l){o||(m(n.$$.fragment,l),o=!0)},o(l){h(n.$$.fragment,l),o=!1},d(l){l&&(y(e),y(t)),F(n,l)}}}function x3(i){let e,t,n=i[43]&&P0(i);return{c(){n&&n.c(),e=Ye()},m(o,l){n&&n.m(o,l),k(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&m(n,1)):(n=P0(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ce(),h(n,1,1,()=>{n=null}),fe())},i(o){t||(m(n),t=!0)},o(o){h(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function T0(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[Q3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&4194304|s[5]&2097152&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].settings,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function Q3(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new wr({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};!t&&s[0]&4194304&&(t=!0,a.ref=r[22],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function I0(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new yt({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&16384|s[1]&2097152|s[5]&2097152&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&1048576&&(t=!0,a.ref=r[20].fullscreen,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function Y3(i){let e,t;return e=new kl({props:{click:i[14],isFullscreen:i[52]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function E0(i){let e,t,n,o;function l(s){i[153](s)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new bl({props:r}),me.push(()=>Me(t,"ref",l)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","settings-mobile svelte-1tcstu3")},m(s,a){k(s,e,a),O(t,e,null),o=!0},p(s,a){let c={};a[0]&2048&&(c.supportLink=s[11]),a[0]&32768&&(c.returnFocus=s[15]),!n&&a[0]&2097152&&(n=!0,c.ref=s[21],Ee(()=>n=!1)),t.$set(c)},i(s){o||(m(t.$$.fragment,s),o=!0)},o(s){h(t.$$.fragment,s),o=!1},d(s){s&&y(e),F(t)}}}function X3(i){let e,t,n;function o(r){i[154](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new Wl({props:l}),me.push(()=>Me(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};!t&&s[0]&1048576&&(t=!0,a.ref=r[20].interactiveTimeIndicator,Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function J3(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I=!i[4]&&a0(i),E=i[4]&&i[30]!=="inactive"&&y0(i),$=i[96]&&Z3(i),ee=!i[4]&&i[25]&&C0(i),U=i[41]&&S0(i);function re(X){i[147](X)}let ie={className:"w-max",disabled:!i[43],$$slots:{default:[x3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ie.ref=i[20].episodes),c=new yt({props:ie}),me.push(()=>Me(c,"ref",re));let S=i[38]&&T0(i),G=i[40]&&I0(i);g=new Ml({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let Y=i[23]&&E0(i),J=i[101]&&X3(i);return{c(){I&&I.c(),e=N(),E&&E.c(),t=N(),n=T("div"),o=T("div"),l=T("div"),$&&$.c(),r=N(),ee&&ee.c(),s=N(),U&&U.c(),a=N(),H(c.$$.fragment),p=N(),S&&S.c(),b=N(),G&&G.c(),v=N(),H(g.$$.fragment),w=N(),Y&&Y.c(),P=N(),J&&J.c(),M=Ye(),u(l,"class","controls svelte-1tcstu3"),V(l,"mobile",!0),u(o,"class","controls-wrapper svelte-1tcstu3"),V(o,"fullscreen",i[52]),u(n,"class","wrapper-bottom svelte-1tcstu3"),V(n,"hidden",i[1]),V(n,"controls-hidden",!i[3]),V(n,"no-smooth",i[2]),V(n,"mobile",!0)},m(X,R){I&&I.m(X,R),k(X,e,R),E&&E.m(X,R),k(X,t,R),k(X,n,R),d(n,o),d(o,l),$&&$.m(l,null),d(l,r),ee&&ee.m(l,null),d(l,s),U&&U.m(l,null),d(l,a),O(c,l,null),d(l,p),S&&S.m(l,null),d(l,b),G&&G.m(l,null),i[151](l),d(o,v),O(g,o,null),i[152](n),k(X,w,R),Y&&Y.m(X,R),k(X,P,R),J&&J.m(X,R),k(X,M,R),C=!0},p(X,R){X[4]?I&&(ce(),h(I,1,1,()=>{I=null}),fe()):I?(I.p(X,R),R[0]&16&&m(I,1)):(I=a0(X),I.c(),m(I,1),I.m(e.parentNode,e)),X[4]&&X[30]!=="inactive"?E?(E.p(X,R),R[0]&1073741840&&m(E,1)):(E=y0(X),E.c(),m(E,1),E.m(t.parentNode,t)):E&&(ce(),h(E,1,1,()=>{E=null}),fe()),X[96]&&$.p(X,R),!X[4]&&X[25]?ee?(ee.p(X,R),R[0]&33554448&&m(ee,1)):(ee=C0(X),ee.c(),m(ee,1),ee.m(l,s)):ee&&(ce(),h(ee,1,1,()=>{ee=null}),fe()),X[41]?U?(U.p(X,R),R[1]&1024&&m(U,1)):(U=S0(X),U.c(),m(U,1),U.m(l,a)):U&&(ce(),h(U,1,1,()=>{U=null}),fe());let Z={};R[1]&4096&&(Z.disabled=!X[43]),R[1]&1073745920|R[2]&1|R[5]&2097152&&(Z.$$scope={dirty:R,ctx:X}),!f&&R[0]&1048576&&(f=!0,Z.ref=X[20].episodes,Ee(()=>f=!1)),c.$set(Z),X[38]?S?(S.p(X,R),R[1]&128&&m(S,1)):(S=T0(X),S.c(),m(S,1),S.m(l,b)):S&&(ce(),h(S,1,1,()=>{S=null}),fe()),X[40]?G?(G.p(X,R),R[1]&512&&m(G,1)):(G=I0(X),G.c(),m(G,1),G.m(l,null)):G&&(ce(),h(G,1,1,()=>{G=null}),fe());let B={};R[0]&16&&(B.isAds=X[4]),R[0]&32&&(B.canRewindLive=X[5]),R[0]&16777216&&(B.isRewindableLive=X[24]),g.$set(B),(!C||R[1]&2097152)&&V(o,"fullscreen",X[52]),(!C||R[0]&2)&&V(n,"hidden",X[1]),(!C||R[0]&8)&&V(n,"controls-hidden",!X[3]),(!C||R[0]&4)&&V(n,"no-smooth",X[2]),X[23]?Y?(Y.p(X,R),R[0]&8388608&&m(Y,1)):(Y=E0(X),Y.c(),m(Y,1),Y.m(P.parentNode,P)):Y&&(ce(),h(Y,1,1,()=>{Y=null}),fe()),X[101]&&J.p(X,R)},i(X){C||(m(I),m(E),m($),m(ee),m(U),m(c.$$.fragment,X),m(S),m(G),m(g.$$.fragment,X),m(Y),m(J),C=!0)},o(X){h(I),h(E),h($),h(ee),h(U),h(c.$$.fragment,X),h(S),h(G),h(g.$$.fragment,X),h(Y),h(J),C=!1},d(X){X&&(y(e),y(t),y(n),y(w),y(P),y(M)),I&&I.d(X),E&&E.d(X),$&&$.d(),ee&&ee.d(),U&&U.d(),F(c),S&&S.d(),G&&G.d(),i[151](null),F(g),i[152](null),Y&&Y.d(X),J&&J.d(X)}}}function $3(i,e,t){let n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,G,Y,J,X,R,Z,B,j,Ie,De,Le,qe,Te,{bottomHidden:he}=e,{bottomNoSmooth:Q}=e,{showControls:_e}=e,{controlsElementRef:Ae=void 0}=e,{isAds:He=!1}=e,{canRewindLive:Ge}=e,{logoClickable:be}=e,{logoHidden:Ce}=e,{logoTargetUrl:Be=""}=e,{showNextPrevButtons:Ze}=e,{nextButtonActive:le}=e,{prevButtonActive:oe}=e,{isOneVideoPlaylist:ye=!1}=e,{supportLink:ue}=e,{customFullscreenSupported:ke=!0}=e,{playNextVideo:ze}=e,{playPrevVideo:$e}=e,{repeatPlaylist:nt}=e,{toggleFullscreen:et}=e,{returnFocus:ge}=e,{seekToInteractive:Ke}=e,{toggleGraph:lt}=e,{playPrevChapter:ut}=e,{onDisabledPlayPrevChapterClick:pt}=e,{onDisabledSeekToInteractiveClick:St}=e,Re=je(),zt=kn(),At=Ct(),pe=Re.actions.internal.toggleMuted,wt=Re.actions.internal.togglePlay,Oe=Re.actions.internal.pause,ot=Re.callbacks?.onAudioDoesNotExistHint,st=Re.callbacks?.onAudioDisabledHint,ct=Re.playerPhase;D(i,ct,te=>t(126,U=te));let Ut=Re.state.duration$;D(i,Ut,te=>t(62,Te=te));let mi=Re.state.positionWithScrubbing$;D(i,mi,te=>t(61,qe=te));let pi=Re.state.playbackState$;D(i,pi,te=>t(121,b=te));let Ki=Re.state.isAudioAvailable$;D(i,Ki,te=>t(51,v=te));let en=Re.state.isAudioDisabled,ti=Re.state.isEnded$;D(i,ti,te=>t(127,ie=te));let ii=Re.state.isLive$;D(i,ii,te=>t(25,C=te));let hi=Re.state.muted$;D(i,hi,te=>t(54,R=te));let qt=Re.state.isActiveLive$;D(i,qt,te=>t(124,P=te));let ni=Re.state.isRewindableLive$;D(i,ni,te=>t(24,M=te));let Wi=Re.ui.scrubbingInProgress;D(i,Wi,te=>t(29,re=te));let bi=Re.ui.mobileNotReportControlHidden$;D(i,bi,te=>t(27,$=te));let _i=Re.ui.isPictureInPictureActive$;D(i,_i,te=>t(26,E=te));let oi=Re.ui.pictureInPictureType$;D(i,oi,te=>t(125,I=te));let gi=Re.ui.mobileUnmuteButtonExpanded;D(i,gi,te=>t(55,Z=te));let ri=Re.ui.mobileUnmuteButtonVisible;D(i,ri,te=>t(53,X=te));let vi=Re.ui.settingsMenuVisible;D(i,vi,te=>t(23,p=te));let yi=Re.ui.settingsMenuOpenedByKeyboard;D(i,yi,te=>t(120,f=te));let kt=Re.ui.controls,Bt=Re.actions.internal.getVideoEpisodes(),Kt=Re.webApi.pictureInPictureApi,li=Re.state.chromecastState$;D(i,li,te=>t(28,ee=te));let Vt=Re.state.crashed$;D(i,Vt,te=>t(57,j=te));let si=kt.disabledControls$;D(i,si,te=>t(128,G=te));let Wt=Re.ui.startedByKeyboard$;D(i,Wt,te=>t(119,c=te));let Xt=Re.ads.duration;D(i,Xt,te=>t(60,Le=te));let Pt=Re.ads.position;D(i,Pt,te=>t(59,De=te));let Tt=Re.ads.playbackState;D(i,Tt,te=>t(30,S=te));let Rt=Re.ui.isFullscreen;D(i,Rt,te=>t(52,J=te));let Zt=Re.ui.playerSize;D(i,Zt,te=>t(123,w=te));let ai=Re.ui.additionalButtons$;D(i,ai,te=>t(56,B=te));let ln=Re.actions.internal.getVideoElement,Zi=Re.actions.internal.replayInteractive,jt=Re.state.isInteractive,Jt=Re.state.isInteractiveTime$;D(i,Jt,te=>t(122,g=te));let ki=Re.state.showInteractiveGraph,Li=Re.state.showSeekToInteractive,Nt=Re.state.showPlayPrevChapter,ht=Re.state.showInteractiveTimeIndicator,wi=Re.state.graphIsOpened$;D(i,wi,te=>t(58,Ie=te));let ji=zt.seekToInteractiveDisabledTooltip$;D(i,ji,te=>t(129,Y=te));let $t,Gi,ui,tn,xi,nn,Bi,Ci,Dt,Gt,ci,Ri,Ni,fi,Si,Pi,Ue,Di,Lt,Ve={},Ti=(0,M0.throttleFn)(ql,260,{leading:!1}),Qi=()=>Re.actions.internal.toggleChromecast();function Oi(){oo({isAudioDisabled:en,audioDisabledHintCallback:st,isAudioAvailable:v,audioIsNotExistHintCallback:ot})&&pe()}async function Ii(){Kt?.isActive()?await Kt?.remove():await Kt?.request()}function on(){!en&&v&&ri.set(!1),Oi()}let Ei=ye?wt:nt,Yi="",Ot=(te,fn)=>{if(!te){t(45,Yi=z("tooltip_live"));return}fn===nr.PlaybackState.PAUSED&&t(45,Yi=z("tooltip_play"))},Xi,ei,se=()=>{a&&pt($t)},it=()=>{l&&St(Gi)};function Ft(te){i.$$.not_equal(Ve.volume,te)&&(Ve.volume=te,t(20,Ve))}function xt(te){i.$$.not_equal(Ve.chromecast,te)&&(Ve.chromecast=te,t(20,Ve))}function Mi(te){i.$$.not_equal(Ve.pip,te)&&(Ve.pip=te,t(20,Ve))}function Ai(te){ei=te,t(22,ei)}function bn(te){i.$$.not_equal(Ve.vkLogo,te)&&(Ve.vkLogo=te,t(20,Ve))}function _n(te){i.$$.not_equal(Ve.prevButton,te)&&(Ve.prevButton=te,t(20,Ve))}function un(te){i.$$.not_equal(Ve.playButton,te)&&(Ve.playButton=te,t(20,Ve))}function It(te){i.$$.not_equal(Ve.replayButton,te)&&(Ve.replayButton=te,t(20,Ve))}function Ln(te){i.$$.not_equal(Ve.nextButton,te)&&(Ve.nextButton=te,t(20,Ve))}function Bn(te){i.$$.not_equal(Ve.playPrevChapterButton,te)&&(Ve.playPrevChapterButton=te,t(20,Ve))}function gn(te){i.$$.not_equal(Ve.interactiveGraphButton,te)&&(Ve.interactiveGraphButton=te,t(20,Ve))}function Pn(te){i.$$.not_equal(Ve.seekToInteractiveButton,te)&&(Ve.seekToInteractiveButton=te,t(20,Ve))}function cn(te){i.$$.not_equal(Ve.volume,te)&&(Ve.volume=te,t(20,Ve))}function sn(te){i.$$.not_equal(Ve.playButton,te)&&(Ve.playButton=te,t(20,Ve))}function ne(te){i.$$.not_equal(Ve.replayButton,te)&&(Ve.replayButton=te,t(20,Ve))}function mt(te){i.$$.not_equal(Ve.liveButton,te)&&(Ve.liveButton=te,t(20,Ve))}function Tn(te){i.$$.not_equal(Ve.time,te)&&(Ve.time=te,t(20,Ve))}function Rn(te){i.$$.not_equal(Ve.episodes,te)&&(Ve.episodes=te,t(20,Ve))}function Nn(te){ei=te,t(22,ei)}function jn(te){i.$$.not_equal(Ve.settings,te)&&(Ve.settings=te,t(20,Ve))}function Gn(te){i.$$.not_equal(Ve.fullscreen,te)&&(Ve.fullscreen=te,t(20,Ve))}function xn(te){me[te?"unshift":"push"](()=>{Di=te,t(44,Di)})}function Qn(te){me[te?"unshift":"push"](()=>{Ae=te,t(0,Ae)})}function Yn(te){Xi=te,t(21,Xi)}function uo(te){i.$$.not_equal(Ve.interactiveTimeIndicator,te)&&(Ve.interactiveTimeIndicator=te,t(20,Ve))}i.$$set=te=>{"bottomHidden"in te&&t(1,he=te.bottomHidden),"bottomNoSmooth"in te&&t(2,Q=te.bottomNoSmooth),"showControls"in te&&t(3,_e=te.showControls),"controlsElementRef"in te&&t(0,Ae=te.controlsElementRef),"isAds"in te&&t(4,He=te.isAds),"canRewindLive"in te&&t(5,Ge=te.canRewindLive),"logoClickable"in te&&t(6,be=te.logoClickable),"logoHidden"in te&&t(110,Ce=te.logoHidden),"logoTargetUrl"in te&&t(7,Be=te.logoTargetUrl),"showNextPrevButtons"in te&&t(8,Ze=te.showNextPrevButtons),"nextButtonActive"in te&&t(9,le=te.nextButtonActive),"prevButtonActive"in te&&t(10,oe=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(111,ye=te.isOneVideoPlaylist),"supportLink"in te&&t(11,ue=te.supportLink),"customFullscreenSupported"in te&&t(112,ke=te.customFullscreenSupported),"playNextVideo"in te&&t(12,ze=te.playNextVideo),"playPrevVideo"in te&&t(13,$e=te.playPrevVideo),"repeatPlaylist"in te&&t(113,nt=te.repeatPlaylist),"toggleFullscreen"in te&&t(14,et=te.toggleFullscreen),"returnFocus"in te&&t(15,ge=te.returnFocus),"seekToInteractive"in te&&t(16,Ke=te.seekToInteractive),"toggleGraph"in te&&t(17,lt=te.toggleGraph),"playPrevChapter"in te&&t(18,ut=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(114,pt=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(115,St=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Gi=z(Y);if(i.$$.dirty[4]&16)e:t(118,n=G.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=G.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,l=G.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,r=G.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,s=G.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,a=G.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,ui=b===nr.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,tn=S==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,xi=ie&&!He&&!jt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,nn=!ie||He);if(i.$$.dirty[3]&1073741824)e:t(116,Bi=w.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Ci=w.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Dt=re);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,Gt=ee!==nr.ChromecastState.NOT_AVAILABLE&&!(E&&I===1)&&!$&&!jt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let te=U==="waitingLive";t(37,ci=!!Kt&&ee!==nr.ChromecastState.CONNECTED&&!$&&(I===1&&te||!te)&&!Dt&&!jt)}if(i.$$.dirty[3]&16777216)e:t(38,Ri=!Dt);if(i.$$.dirty[3]&1073872896)e:t(39,Ni=!Ce&&w.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,fi=At.features.fullscreen&&!(E&&I===1)&&(jt?ke:!0)&&!Dt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Si=(!C||He)&&w.width>260&&!Dt&&!(At.features.interactiveHideTime&&jt));if(i.$$.dirty[0]&8388616)e:t(42,Pi=p||_e);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ue=!He&&!C&&!!Bt?.length&&Bi&&!n&&!Dt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Lt=!M||P);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Ti(ln(),kt,Ve,_e);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:Ot(Lt,b);if(i.$$.dirty[0]&12582912)e:Qo(ei,p,yi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Eo(Xi,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Kl(Wt,c,Ve.playButton)};e:$t=z(Re.state.playPrevChapterDisabledTooltip);return[Ae,he,Q,_e,He,Ge,be,Be,Ze,le,oe,ue,ze,$e,et,ge,Ke,lt,ut,Lt,Ve,Xi,ei,p,M,C,E,$,ee,re,S,ui,tn,xi,nn,Ci,Gt,ci,Ri,Ni,fi,Si,Pi,Ue,Di,Yi,l,a,s,r,o,v,J,X,R,Z,B,j,Ie,De,Le,qe,Te,wt,Oe,ct,Ut,mi,pi,Ki,en,ti,ii,hi,qt,ni,Wi,bi,_i,oi,gi,ri,vi,yi,Bt,li,Vt,si,Wt,Xt,Pt,Tt,Rt,Zt,ai,Zi,jt,Jt,ki,Li,Nt,ht,wi,ji,Qi,Ii,on,Ei,se,it,Ce,ye,ke,nt,pt,St,Bi,Dt,n,c,f,b,g,w,P,I,U,ie,G,Y,Ft,xt,Mi,Ai,bn,_n,un,It,Ln,Bn,gn,Pn,cn,sn,ne,mt,Tn,Rn,Nn,jn,Gn,xn,Qn,Yn,uo]}var Cu=class extends K{constructor(e){super(),W(this,e,$3,J3,q,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},U3,[-1,-1,-1,-1,-1,-1])}},A0=Cu;function eg(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new e0({props:l}),me.push(()=>Me(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s&2&&(a.bottomHidden=r[1]),s&4&&(a.bottomNoSmooth=r[2]),s&8&&(a.showControls=r[3]),s&16&&(a.isAds=r[4]),s&32&&(a.canRewindLive=r[5]),s&64&&(a.logoClickable=r[6]),s&128&&(a.logoHidden=r[7]),s&256&&(a.logoTargetUrl=r[8]),s&512&&(a.showNextPrevButtons=r[9]),s&1024&&(a.nextButtonActive=r[10]),s&2048&&(a.prevButtonActive=r[11]),s&4096&&(a.isOneVideoPlaylist=r[12]),s&8192&&(a.supportLink=r[13]),s&16384&&(a.customFullscreenSupported=r[14]),s&32768&&(a.playNextVideo=r[15]),s&65536&&(a.playPrevVideo=r[16]),s&131072&&(a.repeatPlaylist=r[17]),s&262144&&(a.toggleFullscreen=r[18]),s&524288&&(a.returnFocus=r[19]),s&1048576&&(a.seekToInteractive=r[20]),s&2097152&&(a.toggleGraph=r[21]),s&4194304&&(a.playPrevChapter=r[22]),!t&&s&1&&(t=!0,a.controlsElementRef=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function tg(i){let e,t,n;function o(r){i[27](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new A0({props:l}),me.push(()=>Me(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s&2&&(a.bottomHidden=r[1]),s&4&&(a.bottomNoSmooth=r[2]),s&8&&(a.showControls=r[3]),s&16&&(a.isAds=r[4]),s&32&&(a.canRewindLive=r[5]),s&64&&(a.logoClickable=r[6]),s&128&&(a.logoHidden=r[7]),s&256&&(a.logoTargetUrl=r[8]),s&512&&(a.showNextPrevButtons=r[9]),s&1024&&(a.nextButtonActive=r[10]),s&2048&&(a.prevButtonActive=r[11]),s&4096&&(a.isOneVideoPlaylist=r[12]),s&8192&&(a.supportLink=r[13]),s&16384&&(a.customFullscreenSupported=r[14]),s&32768&&(a.playNextVideo=r[15]),s&65536&&(a.playPrevVideo=r[16]),s&131072&&(a.repeatPlaylist=r[17]),s&262144&&(a.toggleFullscreen=r[18]),s&524288&&(a.returnFocus=r[19]),s&1048576&&(a.seekToInteractive=r[20]),s&2097152&&(a.toggleGraph=r[21]),s&4194304&&(a.playPrevChapter=r[22]),s&8388608&&(a.onDisabledPlayPrevChapterClick=r[23]),s&16777216&&(a.onDisabledSeekToInteractiveClick=r[24]),!t&&s&1&&(t=!0,a.controlsElementRef=r[0],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function ig(i){let e,t,n,o,l=[tg,eg],r=[];function s(a,c){return a[25]?0:1}return e=s(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=Ye()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a,c),e===f?r[e].p(a,c):(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){h(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function ng(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:s=void 0}=e,{isAds:a=!1}=e,{canRewindLive:c}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:b=""}=e,{showNextPrevButtons:v}=e,{nextButtonActive:g}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:P=!1}=e,{supportLink:M}=e,{customFullscreenSupported:C=!0}=e,{playNextVideo:I}=e,{playPrevVideo:E}=e,{repeatPlaylist:$}=e,{toggleFullscreen:ee}=e,{returnFocus:U=Zl.noop}=e,{seekToInteractive:re}=e,{toggleGraph:ie}=e,{playPrevChapter:S}=e,{onDisabledPlayPrevChapterClick:G=Zl.noop}=e,{onDisabledSeekToInteractiveClick:Y=Zl.noop}=e,X=je().ui.isMobile;D(i,X,B=>t(25,n=B));function R(B){s=B,t(0,s)}function Z(B){s=B,t(0,s)}return i.$$set=B=>{"bottomHidden"in B&&t(1,o=B.bottomHidden),"bottomNoSmooth"in B&&t(2,l=B.bottomNoSmooth),"showControls"in B&&t(3,r=B.showControls),"controlsElementRef"in B&&t(0,s=B.controlsElementRef),"isAds"in B&&t(4,a=B.isAds),"canRewindLive"in B&&t(5,c=B.canRewindLive),"logoClickable"in B&&t(6,f=B.logoClickable),"logoHidden"in B&&t(7,p=B.logoHidden),"logoTargetUrl"in B&&t(8,b=B.logoTargetUrl),"showNextPrevButtons"in B&&t(9,v=B.showNextPrevButtons),"nextButtonActive"in B&&t(10,g=B.nextButtonActive),"prevButtonActive"in B&&t(11,w=B.prevButtonActive),"isOneVideoPlaylist"in B&&t(12,P=B.isOneVideoPlaylist),"supportLink"in B&&t(13,M=B.supportLink),"customFullscreenSupported"in B&&t(14,C=B.customFullscreenSupported),"playNextVideo"in B&&t(15,I=B.playNextVideo),"playPrevVideo"in B&&t(16,E=B.playPrevVideo),"repeatPlaylist"in B&&t(17,$=B.repeatPlaylist),"toggleFullscreen"in B&&t(18,ee=B.toggleFullscreen),"returnFocus"in B&&t(19,U=B.returnFocus),"seekToInteractive"in B&&t(20,re=B.seekToInteractive),"toggleGraph"in B&&t(21,ie=B.toggleGraph),"playPrevChapter"in B&&t(22,S=B.playPrevChapter),"onDisabledPlayPrevChapterClick"in B&&t(23,G=B.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in B&&t(24,Y=B.onDisabledSeekToInteractiveClick)},[s,o,l,r,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,G,Y,n,X,R,Z]}var Su=class extends K{constructor(e){super(),W(this,e,ng,ig,q,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},jl=Su;function og(i){ve(i,"svelte-1ub874v",".reversed.svelte-1ub874v{transform:scaleX(-1)}")}function rg(i){let e,t,n,o,l,r,s,a,c,f,p,b,v;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("defs"),r=A("filter"),s=A("feFlood"),a=A("feColorMatrix"),c=A("feOffset"),f=A("feGaussianBlur"),p=A("feColorMatrix"),b=A("feBlend"),v=A("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2260_100684"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_100684"),u(v,"result","shape"),u(r,"id","a"),u(r,"x","2.5"),u(r,"y","0"),u(r,"width","43.996"),u(r,"height","49.5"),u(r,"filterUnits","userSpaceOnUse"),u(r,"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","svelte-1ub874v"),V(e,"reversed",i[0])},m(g,w){k(g,e,w),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,p),d(r,b),d(r,v)},p(g,[w]){w&1&&V(e,"reversed",g[0])},i:L,o:L,d(g){g&&y(e)}}}function lg(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}var Pu=class extends K{constructor(e){super(),W(this,e,lg,rg,q,{reversed:0},og)}},V0=Pu;function sg(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("defs"),r=A("clipPath"),s=A("path"),a=A("filter"),c=A("feFlood"),f=A("feColorMatrix"),p=A("feOffset"),b=A("feGaussianBlur"),v=A("feColorMatrix"),g=A("feBlend"),w=A("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(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(s,"fill","#fff"),u(s,"d","M0 0h48v48H0z"),u(r,"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(b,"stdDeviation","2.5"),u(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"result","effect1_dropShadow_2260_104204"),u(w,"in","SourceGraphic"),u(w,"in2","effect1_dropShadow_2260_104204"),u(w,"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(P,M){k(P,e,M),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(l,a),d(a,c),d(a,f),d(a,p),d(a,b),d(a,v),d(a,g),d(a,w)},d(P){P&&y(e)}}}function ag(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("path"),r=A("defs"),s=A("clipPath"),a=A("path"),c=A("filter"),f=A("feFlood"),p=A("feColorMatrix"),b=A("feOffset"),v=A("feGaussianBlur"),g=A("feColorMatrix"),w=A("feBlend"),P=A("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(l,"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(l,"stroke","#000"),u(l,"stroke-opacity",".12"),u(l,"stroke-width",".5"),u(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(a,"fill","#fff"),u(a,"d","M0 0h48v48H0z"),u(s,"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(v,"stdDeviation","2.5"),u(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(w,"in2","BackgroundImageFix"),u(w,"result","effect1_dropShadow_2260_104293"),u(P,"in","SourceGraphic"),u(P,"in2","effect1_dropShadow_2260_104293"),u(P,"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(M,C){k(M,e,C),d(e,t),d(t,n),d(t,o),d(t,l),d(e,r),d(r,s),d(s,a),d(r,c),d(c,f),d(c,p),d(c,b),d(c,v),d(c,g),d(c,w),d(c,P)},d(M){M&&y(e)}}}function ug(i){let e;function t(l,r){return l[0]?ag:sg}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Ye()},m(l,r){o.m(l,r),k(l,e,r)},p(l,[r]){n!==(n=t(l,r))&&(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:L,o:L,d(l){l&&y(e),o.d(l)}}}function cg(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Tu=class extends K{constructor(e){super(),W(this,e,cg,ug,q,{isOff:0})}},Iu=Tu;function fg(i){ve(i,"svelte-1ub874v",".reversed.svelte-1ub874v{transform:scaleX(-1)}")}function dg(i){let e,t,n,o,l,r,s,a,c,f,p,b,v;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("defs"),r=A("filter"),s=A("feFlood"),a=A("feColorMatrix"),c=A("feOffset"),f=A("feGaussianBlur"),p=A("feColorMatrix"),b=A("feBlend"),v=A("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2260_106627"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_106627"),u(v,"result","shape"),u(r,"id","a"),u(r,"x","3.402"),u(r,"y","10.105"),u(r,"width","40.098"),u(r,"height","27.785"),u(r,"filterUnits","userSpaceOnUse"),u(r,"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","svelte-1ub874v"),V(e,"reversed",i[0])},m(g,w){k(g,e,w),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,p),d(r,b),d(r,v)},p(g,[w]){w&1&&V(e,"reversed",g[0])},i:L,o:L,d(g){g&&y(e)}}}function mg(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}var Eu=class extends K{constructor(e){super(),W(this,e,mg,dg,q,{reversed:0},fg)}},L0=Eu;function pg(i){ve(i,"svelte-1ub874v",".reversed.svelte-1ub874v{transform:scaleX(-1)}")}function hg(i){let e,t,n,o,l,r,s,a,c,f,p,b,v;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("path"),l=A("defs"),r=A("filter"),s=A("feFlood"),a=A("feColorMatrix"),c=A("feOffset"),f=A("feGaussianBlur"),p=A("feColorMatrix"),b=A("feBlend"),v=A("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2340_106922"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2340_106922"),u(v,"result","shape"),u(r,"id","a"),u(r,"x","5.5"),u(r,"y","5.5"),u(r,"width","37"),u(r,"height","37"),u(r,"filterUnits","userSpaceOnUse"),u(r,"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","svelte-1ub874v"),V(e,"reversed",i[0])},m(g,w){k(g,e,w),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,p),d(r,b),d(r,v)},p(g,[w]){w&1&&V(e,"reversed",g[0])},i:L,o:L,d(g){g&&y(e)}}}function bg(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}var Mu=class extends K{constructor(e){super(),W(this,e,bg,hg,q,{reversed:0},pg)}},B0=Mu;function _g(i){ve(i,"svelte-4ftgwp",`.hot-key-helpers-container.svelte-4ftgwp.svelte-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-4ftgwp>div.svelte-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-4ftgwp.svelte-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-4ftgwp.svelte-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-4ftgwp.svelte-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.svelte-4ftgwp.svelte-4ftgwp{visibility:hidden;animation:svelte-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function R0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,s,a,c=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),b,v,g,w,P,M=t&&N0(i),C=i[4]==="PAUSE"&&D0(i),I=i[4]==="PLAY"&&O0(i),E=i[4]==="REPLAY"&&F0(i),$=i[4]==="SUBTITLES_OFF"&&H0(i),ee=i[4]==="SUBTITLES_ON"&&z0(i),U=c&&U0(i),re=p&&q0(i),ie=i[4]==="MUTE"&&K0(i),S=i[4]==="VOLUME"&&W0(i),G=i[5]&&Z0(i);return{c(){e=T("div"),M&&M.c(),n=N(),C&&C.c(),o=N(),I&&I.c(),l=N(),E&&E.c(),r=N(),$&&$.c(),s=N(),ee&&ee.c(),a=N(),U&&U.c(),f=N(),re&&re.c(),b=N(),ie&&ie.c(),v=N(),S&&S.c(),g=N(),G&&G.c(),w=Ye(),u(e,"class","svelte-4ftgwp")},m(Y,J){k(Y,e,J),M&&M.m(e,null),d(e,n),C&&C.m(e,null),d(e,o),I&&I.m(e,null),d(e,l),E&&E.m(e,null),d(e,r),$&&$.m(e,null),d(e,s),ee&&ee.m(e,null),d(e,a),U&&U.m(e,null),d(e,f),re&&re.m(e,null),d(e,b),ie&&ie.m(e,null),d(e,v),S&&S.m(e,null),k(Y,g,J),G&&G.m(Y,J),k(Y,w,J),P=!0},p(Y,J){J&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(Y[4])),t?M?(M.p(Y,J),J&16&&m(M,1)):(M=N0(Y),M.c(),m(M,1),M.m(e,n)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),Y[4]==="PAUSE"?C?J&16&&m(C,1):(C=D0(Y),C.c(),m(C,1),C.m(e,o)):C&&(ce(),h(C,1,1,()=>{C=null}),fe()),Y[4]==="PLAY"?I?J&16&&m(I,1):(I=O0(Y),I.c(),m(I,1),I.m(e,l)):I&&(ce(),h(I,1,1,()=>{I=null}),fe()),Y[4]==="REPLAY"?E?J&16&&m(E,1):(E=F0(Y),E.c(),m(E,1),E.m(e,r)):E&&(ce(),h(E,1,1,()=>{E=null}),fe()),Y[4]==="SUBTITLES_OFF"?$?J&16&&m($,1):($=H0(Y),$.c(),m($,1),$.m(e,s)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),Y[4]==="SUBTITLES_ON"?ee?J&16&&m(ee,1):(ee=z0(Y),ee.c(),m(ee,1),ee.m(e,a)):ee&&(ce(),h(ee,1,1,()=>{ee=null}),fe()),J&16&&(c=["RATE_DOWN","RATE_UP"].includes(Y[4])),c?U?(U.p(Y,J),J&16&&m(U,1)):(U=U0(Y),U.c(),m(U,1),U.m(e,f)):U&&(ce(),h(U,1,1,()=>{U=null}),fe()),J&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(Y[4])),p?re?(re.p(Y,J),J&16&&m(re,1)):(re=q0(Y),re.c(),m(re,1),re.m(e,b)):re&&(ce(),h(re,1,1,()=>{re=null}),fe()),Y[4]==="MUTE"?ie?J&16&&m(ie,1):(ie=K0(Y),ie.c(),m(ie,1),ie.m(e,v)):ie&&(ce(),h(ie,1,1,()=>{ie=null}),fe()),Y[4]==="VOLUME"?S?J&16&&m(S,1):(S=W0(Y),S.c(),m(S,1),S.m(e,null)):S&&(ce(),h(S,1,1,()=>{S=null}),fe()),Y[5]?G?G.p(Y,J):(G=Z0(Y),G.c(),G.m(w.parentNode,w)):G&&(G.d(1),G=null)},i(Y){P||(m(M),m(C),m(I),m(E),m($),m(ee),m(U),m(re),m(ie),m(S),P=!0)},o(Y){h(M),h(C),h(I),h(E),h($),h(ee),h(U),h(re),h(ie),h(S),P=!1},d(Y){Y&&(y(e),y(g),y(w)),M&&M.d(),C&&C.d(),I&&I.d(),E&&E.d(),$&&$.d(),ee&&ee.d(),U&&U.d(),re&&re.d(),ie&&ie.d(),S&&S.d(),G&&G.d(Y)}}}function N0(i){let e,t;return e=new V0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function D0(i){let e,t;return e=new wl({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function O0(i){let e,t;return e=new er({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function F0(i){let e,t;return e=new Bl({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function H0(i){let e,t;return e=new Iu({props:{isOff:!0}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function z0(i){let e,t;return e=new Iu({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function U0(i){let e,t;return e=new L0({props:{reversed:i[4]==="RATE_UP"}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function q0(i){let e,t;return e=new B0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function K0(i){let e,t;return e=new Mo({props:{volume:0}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function W0(i){let e,t;return e=new Mo({props:{volume:1}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Z0(i){let e,t;return{c(){e=T("span"),t=Se(i[5]),u(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o&32&&Fe(t,n[5])},d(n){n&&y(e)}}}function gg(i){let e,t,n=!i[1]&&i[4]&&R0(i);return{c(){e=T("div"),n&&n.c(),u(e,"class","hot-key-helpers-container svelte-4ftgwp"),V(e,"hidden",i[1]),V(e,"hot-key-helpers-container--left",i[2]),V(e,"hot-key-helpers-container--right",i[3])},m(o,l){k(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&m(n,1)):(n=R0(o),n.c(),m(n,1),n.m(e,null)):n&&(ce(),h(n,1,1,()=>{n=null}),fe()),(!t||l&2)&&V(e,"hidden",o[1]),(!t||l&4)&&V(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&V(e,"hot-key-helpers-container--right",o[3])},i(o){t||(m(n),t=!0)},o(o){h(n),t=!1},d(o){o&&y(e),n&&n.d()}}}function vg(i,e,t){let n,o=L,l=()=>(o(),o=Mt(r,b=>t(6,n=b)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let s,a,c,f,p;return i.$$set=b=>{"data"in b&&l(t(0,r=b.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,s=!n),t(2,a=n?.type==="BACKWARD_SEEK"),t(3,c=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,p=z(n.t.key,{value:n.t.value||""})):t(5,p=n?.text)},[r,s,a,c,f,p,n]}var Au=class extends K{constructor(e){super(),W(this,e,vg,gg,q,{data:0},_g)}},j0=Au;function yg(i){ve(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function kg(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I;return l=new Hn({props:{direction:"up"}}),a=new Hn({props:{direction:"up"}}),b=new Hn({props:{direction:"up"}}),w=new Hn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),H(l.$$.fragment),r=N(),s=T("div"),H(a.$$.fragment),c=N(),f=T("div"),p=T("div"),H(b.$$.fragment),v=N(),g=T("div"),H(w.$$.fragment),u(o,"class","button button-up svelte-1yzc86r"),u(s,"class","button button-right svelte-1yzc86r"),u(n,"class","button-row svelte-1yzc86r"),u(p,"class","button button-left svelte-1yzc86r"),u(g,"class","button button-down svelte-1yzc86r"),u(f,"class","button-row svelte-1yzc86r"),u(t,"class","button-block svelte-1yzc86r"),u(t,"aria-hidden","true"),u(e,"class","immersive-controls svelte-1yzc86r"),u(e,"tabindex","0"),u(e,"role","button"),u(e,"aria-label",P=z("aria_label_spherical_control")),V(e,"m-shifted",i[0])},m(E,$){k(E,e,$),d(e,t),d(t,n),d(n,o),O(l,o,null),d(n,r),d(n,s),O(a,s,null),d(t,c),d(t,f),d(f,p),O(b,p,null),d(f,v),d(f,g),O(w,g,null),M=!0,C||(I=[de(o,"mousedown",i[1]),de(o,"mouseup",i[5]),de(o,"mouseleave",i[5]),de(s,"mousedown",i[3]),de(s,"mouseup",i[5]),de(s,"mouseleave",i[5]),de(p,"mousedown",i[4]),de(p,"mouseup",i[5]),de(p,"mouseleave",i[5]),de(g,"mousedown",i[2]),de(g,"mouseup",i[5]),de(g,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],C=!0)},p(E,[$]){(!M||$&1)&&V(e,"m-shifted",E[0])},i(E){M||(m(l.$$.fragment,E),m(a.$$.fragment,E),m(b.$$.fragment,E),m(w.$$.fragment,E),M=!0)},o(E){h(l.$$.fragment,E),h(a.$$.fragment,E),h(b.$$.fragment,E),h(w.$$.fragment,E),M=!1},d(E){E&&y(e),F(l),F(a),F(b),F(w),C=!1,xe(I)}}}function wg(i,e,t){let{isShifted:n=!1}=e,o=je(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{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=v=>{if(l.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case"ArrowUp":r();break;case"ArrowDown":s();break;case"ArrowLeft":c();break;case"ArrowRight":a();break}},b=v=>{l.has(v.code)&&(v.preventDefault(),v.stopPropagation(),f())};return i.$$set=v=>{"isShifted"in v&&t(0,n=v.isShifted)},[n,r,s,a,c,f,p,b]}var Vu=class extends K{constructor(e){super(),W(this,e,wg,kg,q,{isShifted:0},yg)}},Gl=Vu;function Cg(i){ve(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function G0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function x0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function Q0(i){let e,t;function n(r,s){return r[7]&&r[8]?Tg:r[5]?Pg:Sg}let o=n(i,-1),l=o(i);return{c(){e=T("div"),t=T("span"),l.c(),u(t,"class","caption svelte-ovfyp5"),u(e,"class","subtitles-caption svelte-ovfyp5"),V(e,"mobile",i[3])},m(r,s){k(r,e,s),d(e,t),l.m(t,null)},p(r,s){o===(o=n(r,s))&&l?l.p(r,s):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),s&8&&V(e,"mobile",r[3])},d(r){r&&y(e),l.d()}}}function Sg(i){let e,t=ft(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Y0(G0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Ye()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);k(o,e,l)},p(o,l){if(l&18){t=ft(o[1]);let r;for(r=0;r<t.length;r+=1){let s=G0(o,t,r);n[r]?n[r].p(s,l):(n[r]=Y0(s),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),Vi(n,o)}}}function Pg(i){let e,t,n=ft(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=J0(x0(i,n,l));return{c(){e=T("span"),t=T("span");for(let l=0;l<o.length;l+=1)o[l].c();u(t,"class","caption-segment svelte-ovfyp5"),_t(t,"font-size",i[4]+"px"),u(e,"class","caption-line svelte-ovfyp5")},m(l,r){k(l,e,r),d(e,t);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(t,null)},p(l,r){if(r&68){n=ft(l[6]);let s;for(s=0;s<n.length;s+=1){let a=x0(l,n,s);o[s]?o[s].p(a,r):(o[s]=J0(a),o[s].c(),o[s].m(t,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=n.length}r&16&&_t(t,"font-size",l[4]+"px")},d(l){l&&y(e),Vi(o,l)}}}function Tg(i){let e,t,n=z("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Se(n),u(t,"class","caption-segment svelte-ovfyp5"),_t(t,"font-size",i[4]+"px"),u(e,"class","caption-line svelte-ovfyp5")},m(l,r){k(l,e,r),d(e,t),d(t,o)},p(l,r){r&16&&_t(t,"font-size",l[4]+"px")},d(l){l&&y(e)}}}function Y0(i){let e,t,n=i[16]+"",o,l;return{c(){e=T("span"),t=T("span"),o=Se(n),l=N(),u(t,"class","caption-segment svelte-ovfyp5"),_t(t,"font-size",i[4]+"px"),u(e,"class","caption-line svelte-ovfyp5")},m(r,s){k(r,e,s),d(e,t),d(t,o),d(e,l)},p(r,s){s&2&&n!==(n=r[16]+"")&&Fe(o,n),s&16&&_t(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function X0(i){let e=i[16]+"",t;return{c(){t=Se(e)},m(n,o){k(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Fe(t,e)},d(n){n&&y(t)}}}function J0(i){let e,t=(!i[17]||i[17]<=i[2])&&X0(i);return{c(){t&&t.c(),e=Ye()},m(n,o){t&&t.m(n,o),k(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=X0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function Ig(i){let e,t=i[1].length>0&&Q0(i);return{c(){e=T("div"),t&&t.c(),u(e,"class","subtitles-container svelte-ovfyp5"),V(e,"shifted",i[0]),V(e,"auto",i[5]&&!i[8])},m(n,o){k(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=Q0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&V(e,"shifted",n[0]),o&288&&V(e,"auto",n[5]&&!n[8])},i:L,o:L,d(n){n&&y(e),t&&t.d()}}}function Eg(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:s}=e,{playerSize:a}=e,{isMobile:c=!1}=e,f=je(),p=Ct(),b=f.state.currentSubtitle$;D(i,b,I=>t(12,n=I));let v=f.state.isAutoSubtitleCaptionVisible$;D(i,v,I=>t(8,o=I));let g,w,P,M,C;return gt(()=>{C=window.setTimeout(()=>{v.set(!1)},p.autoSubtitlesTimeout)}),Mn(()=>{window.clearTimeout(C)}),i.$$set=I=>{"shifted"in I&&t(0,l=I.shifted),"captions"in I&&t(1,r=I.captions),"position"in I&&t(2,s=I.position),"playerSize"in I&&t(11,a=I.playerSize),"isMobile"in I&&t(3,c=I.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let I=a.width*.02;t(4,g=I<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:I)}if(i.$$.dirty&2)e:t(5,w=r.some(I=>I.type==="timestamp"));if(i.$$.dirty&2)e:t(6,P=r.reduce((I,{type:E,value:$})=>(E==="timestamp"?I.push({timeAppeared:Number($),value:""}):I.length===0?I.push({value:String($)}):I[I.length-1].value=String($),I),[]));if(i.$$.dirty&4096)e:t(7,M=!!n.isAuto)},[l,r,s,c,g,w,P,M,o,b,v,a,n]}var Lu=class extends K{constructor(e){super(),W(this,e,Eg,Ig,q,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},Cg)}},xl=Lu;function Mg(i){ve(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function $0(i){let e,t,n;return{c(){e=T("div"),t=Se("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Se(i[1]),u(e,"class","text svelte-1o62kpz")},m(o,l){k(o,e,l),d(e,t),d(e,n)},p(o,l){l&2&&Fe(n,o[1])},d(o){o&&y(e)}}}function Ag(i){let e,t,n,o,l,r,s=i[1]&&$0(i);return{c(){e=T("div"),t=T("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=N(),s&&s.c(),u(t,"class","icon_wrapper svelte-1o62kpz"),u(e,"class","wrapper svelte-1o62kpz"),u(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(a,c){k(a,e,c),d(e,t),d(e,n),s&&s.m(e,null),l||(r=de(e,"click",i[2]),l=!0)},p(a,[c]){a[1]?s?s.p(a,c):(s=$0(a),s.c(),s.m(e,null)):s&&(s.d(1),s=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:L,o:L,d(a){a&&y(e),s&&s.d(),l=!1,r()}}}function Vg(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){mn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var Bu=class extends K{constructor(e){super(),W(this,e,Vg,Ag,q,{thumbUrl:0,chromecastDeviceName:1},Mg)}},Ql=Bu;function Lg(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 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(t,"fill","#fff"),u(t,"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){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var Ru=class extends K{constructor(e){super(),W(this,e,null,Lg,q,{})}},em=Ru;function Bg(i){ve(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function Rg(i){let e,t,n;return t=new em({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","container svelte-13zpvm8")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p:L,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}var Nu=class extends K{constructor(e){super(),W(this,e,null,Rg,q,{},Bg)}},Yl=Nu;function Ng(i){ve(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function Dg(i){let e,t,n,o,l,r,s,a,c,f;return l=new er({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=N(),H(l.$$.fragment),u(n,"class","playButtonBackground svelte-17wno3"),u(t,"class","playButton svelte-17wno3"),u(t,"tabindex","0"),u(t,"role","button"),u(t,"aria-label",r=z("tooltip_play")),u(e,"class","container svelte-17wno3"),u(e,"style",s=`background-color: #222; background-image: url('${i[0]||""}')`),V(e,"hidden",i[1])},m(p,b){k(p,e,b),d(e,t),d(t,n),d(t,o),O(l,t,null),a=!0,c||(f=[de(t,"keydown",i[3]),de(e,"click",Je(function(){di(i[2])&&i[2].apply(this,arguments)}))],c=!0)},p(p,[b]){i=p,(!a||b&1&&s!==(s=`background-color: #222; background-image: url('${i[0]||""}')`))&&u(e,"style",s),(!a||b&2)&&V(e,"hidden",i[1])},i(p){a||(m(l.$$.fragment,p),a=!0)},o(p){h(l.$$.fragment,p),a=!1},d(p){p&&y(e),F(l),c=!1,xe(f)}}}function Og(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,s=je().ui.startedByKeyboard$,a=c=>{let f=c.code;["Enter","Space"].includes(f)&&(c.stopPropagation(),c.preventDefault(),s.set(!0),l())};return i.$$set=c=>{"thumbUrl"in c&&t(0,n=c.thumbUrl),"hidden"in c&&t(1,o=c.hidden),"startVideo"in c&&t(2,l=c.startVideo)},[n,o,l,a]}var Du=class extends K{constructor(e){super(),W(this,e,Og,Dg,q,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Ng)}get handlePressKey(){return this.$$.ctx[3]}},Xl=Du;function Fg(i){ve(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
26
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 Zp(t){let e,i;return{c(){e=I("div"),i=Oe(t[0]),u(e,"class","title v-1bcvcf2"),V(e,"hidden",t[1])},m(n,o){A(n,e,o),p(e,i)},p(n,[o]){o&1&&xe(i,n[0]),o&2&&V(e,"hidden",n[1])},i:q,o:q,d(n){n&&P(e)}}}function Wp(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 jp extends _e{constructor(e){super(),ge(this,e,Wp,Zp,be,{title:0,isHidden:1},qp)}}function Kp(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 ba(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("span"),n=Oe(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){A(a,e,c),p(e,i),p(i,n),p(e,o),p(e,s),A(a,l,c),A(a,r,c)},p(a,c){c&1&&xe(n,a[0])},d(a){a&&(P(e),P(l),P(r))}}}function ga(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("span"),n=Oe(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){A(a,e,c),p(e,i),p(i,n),p(e,o),p(e,s),A(a,l,c),A(a,r,c)},p(a,c){c&2&&xe(n,a[1])},d(a){a&&(P(e),P(l),P(r))}}}function _a(t){let e,i,n,o,s,l,r;return{c(){e=I("div"),i=I("span"),n=Oe(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){A(a,e,c),p(e,i),p(i,n),p(e,o),p(e,s),A(a,l,c),A(a,r,c)},p(a,c){c&4&&xe(n,a[2])},d(a){a&&(P(e),P(l),P(r))}}}function va(t){let e,i,n,o,s;return{c(){e=I("div"),i=I("span"),n=Oe(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){A(l,e,r),p(e,i),p(i,n),p(e,o),p(e,s)},p(l,r){r&8&&xe(n,l[3])},d(l){l&&P(e)}}}function Gp(t){let e,i,n,o,s=t[0]&&ba(t),l=t[1]&&ga(t),r=t[2]&&_a(t),a=t[3]&&va(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){A(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=ba(c),s.c(),s.m(e,i)):s&&(s.d(1),s=null),c[1]?l?l.p(c,f):(l=ga(c),l.c(),l.m(e,n)):l&&(l.d(1),l=null),c[2]?r?r.p(c,f):(r=_a(c),r.c(),r.m(e,o)):r&&(r.d(1),r=null),c[3]?a?a.p(c,f):(a=va(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:q,o:q,d(c){c&&P(e),s&&s.d(),l&&l.d(),r&&r.d(),a&&a.d()}}}function Yp(t,e,i){let{startTime:n}=e,{onTimerOver:o}=e,s,l,r,a,c;const f=v=>String(v).padStart(2,"0"),d=v=>{const k=Math.floor(v/86400);k&&(v-=k*86400,i(0,s=f(k)));const _=Math.floor(v/3600);i(1,l=f(_));const S=Math.floor(v/60)%60;i(2,r=f(S));const C=v%60;i(3,a=f(C))},h=()=>{const v=Math.floor(Date.now()/1e3),k=n-v;d(k),k>=1?c=requestAnimationFrame(h):o()};return nn(()=>{c=requestAnimationFrame(h)}),Vo(()=>{cancelAnimationFrame(c)}),t.$$set=v=>{"startTime"in v&&i(4,n=v.startTime),"onTimerOver"in v&&i(5,o=v.onTimerOver)},[s,l,r,a,n,o]}class Qp extends _e{constructor(e){super(),ge(this,e,Yp,Gp,be,{startTime:4,onTimerOver:5},Kp)}}function Xp(t){let e,i,n,o,s;return{c(){e=M("svg"),i=M("path"),n=M("path"),o=M("path"),s=M("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){A(l,e,r),p(e,i),p(e,n),p(e,o),p(e,s)},p:q,i:q,o:q,d(l){l&&P(e)}}}class Jp extends _e{constructor(e){super(),ge(this,e,null,Xp,be,{})}}function xp(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 $p(t){let e,i,n,o,s;return o=new Qp({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){A(l,e,r),p(e,i),p(e,n),H(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||(m(o.$$.fragment,l),s=!0)},o(l){g(o.$$.fragment,l),s=!1},d(l){l&&P(e),F(o)}}}function eh(t){let e,i,n,o,s,l;return n=new Jp({}),{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){A(r,e,a),p(e,i),H(n,i,null),p(e,o),p(e,s),l=!0},p:q,i(r){l||(m(n.$$.fragment,r),l=!0)},o(r){g(n.$$.fragment,r),l=!1},d(r){r&&P(e),F(n)}}}function th(t){let e,i,n,o,s;const l=[eh,$p],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){A(c,e,f),r[i].m(e,null),s=!0},p(c,[f]){let d=i;i=a(c),i===d?r[i].p(c,f):(fe(),g(r[d],1,1,()=>{r[d]=null}),de(),n=r[i],n?n.p(c,f):(n=r[i]=l[i](c),n.c()),m(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||(m(n),s=!0)},o(c){g(n),s=!1},d(c){c&&P(e),r[i].d()}}}function ih(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 Eu extends _e{constructor(e){super(),ge(this,e,ih,th,be,{thumbUrl:0,startTime:1},xp)}}function nh(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 oh(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){A(n,e,o),p(e,i)},p:q,i:q,o:q,d(n){n&&P(e)}}}class Vu extends _e{constructor(e){super(),ge(this,e,null,oh,be,{},nh)}}const{window:lh}=n1;function sh(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 ka(t){let e,i;return e=new Eu({props:{thumbUrl:t[3],startTime:t[4]?.startTime}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.thumbUrl=n[3]),o[0]&16&&(s.startTime=n[4]?.startTime),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function wa(t){let e,i;return e=new Vu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ya(t){let e,i,n;return i=new M1({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-1o4wf3x"),V(e,"hidden",t[38]!==De.Ads)},m(o,s){A(o,e,s),H(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]&128)&&V(e,"hidden",o[38]!==De.Ads)},i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Ca(t){let e,i;return e=new h0({props:{title:t[18],thumb:t[19],playNextVideo:t[23]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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 jp({props:{title:t[2],isHidden:!t[36]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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 Tu({props:{isShifted:t[38]===De.Video&&t[36]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&160&&(s.isShifted=n[38]===De.Video&&n[36]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Pa(t){let e,i,n;return i=new T1({props:{ariaLabel:K("video360")}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","spherical-video-icon v-1o4wf3x")},m(o,s){A(o,e,s),H(i,e,null),n=!0},p:q,i(o){n||(m(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 Pu({props:{thumbUrl:t[3],chromecastDeviceName:t[53]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.thumbUrl=n[3]),o[1]&4194304&&(s.chromecastDeviceName=n[53]),e.$set(s)},i(n){i||(m(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 Su({props:{shifted:t[36],captions:t[55],position:t[56],playerSize:t[34]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&32&&(s.shifted=n[36]),o[1]&16777216&&(s.captions=n[55]),o[1]&33554432&&(s.position=n[56]),o[1]&8&&(s.playerSize=n[34]),e.$set(s)},i(n){i||(m(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,o,s;return i=new Au({}),{c(){e=I("div"),U(i.$$.fragment)},m(l,r){A(l,e,r),H(i,e,null),n=!0,o||(s=[he(e,"contextmenu",Jt(t[108])),he(e,"click",ot(t[119]))],o=!0)},p:q,i(l){n||(m(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[156](l)}let s={bottomHidden:t[38]===De.Thumb||t[38]===De.WaitingLive||t[38]===De.WaitingRecord,bottomNoSmooth:t[50],showControls:t[36],isAds:t[38]===De.Ads,canRewindLive:t[6]&&t[57]!==0,logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[14],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],isOneVideoPlaylist:t[20],supportLink:t[21],customFullscreenSupported:uh,playNextVideo:t[23],playPrevVideo:t[24],repeatPlaylist:t[25],toggleFullscreen:t[106],returnFocus:t[155],seekToInteractive:t[26],toggleGraph:t[27],playPrevChapter:t[28]};return t[41]!==void 0&&(s.controlsElementRef=t[41]),e=new yu({props:s}),ve.push(()=>Ze(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&128&&(a.bottomHidden=l[38]===De.Thumb||l[38]===De.WaitingLive||l[38]===De.WaitingRecord),r[1]&524288&&(a.bottomNoSmooth=l[50]),r[1]&32&&(a.showControls=l[36]),r[1]&128&&(a.isAds=l[38]===De.Ads),r[0]&64|r[1]&67108864&&(a.canRewindLive=l[6]&&l[57]!==0),r[0]&4096&&(a.logoClickable=l[12]),r[0]&8192&&(a.logoHidden=l[13]),r[0]&16384&&(a.logoTargetUrl=l[14]),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]&131072&&(a.returnFocus=l[155]),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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function La(t){let e,i;return e=new W1({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ma(t){let e,i;return e=new O0({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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 H1({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Na(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee;e=new Iu({props:{hidden:t[38]!==De.Thumb||t[37]||t[92]&&t[5],thumbUrl:t[3],startVideo:t[29]}});let Q=t[38]===De.WaitingLive&&ka(t),w=t[38]===De.WaitingRecord&&wa(),$=t[7]&&t[22]&&ya(t),X=t[31]&&t[18]&&t[19]&&Ca(t),O=t[44]&&Ta(t),W=t[49]&&Sa(t),B=t[52]&&Pa(),J=t[39]&&Aa(t),E=t[54].value!=="off"&&Ia(t),z=t[37]&&Ea(t),Te=t[22]&&Va(t);k=new N1({props:{isLive:t[58],isHidden:!t[43],isPlaying:t[59],position:t[56],duration:t[60]}}),S=new yp({props:{data:t[103]}});function ze(Z){t[158](Z)}let Ve={supportLink:t[21],returnFocus:t[157],visible:t[33],playerContainerRef:t[40],controlsContainerRef:t[41],position:t[61]};t[32]!==void 0&&(Ve.menuElementRef=t[32]),T=new Yf({props:Ve}),ve.push(()=>Ze(T,"menuElementRef",ze));let Le=t[42]&&La(),Pe=t[62]&&Ma(),pe=t[63]&&Ba();return{c(){U(e.$$.fragment),i=D(),Q&&Q.c(),n=D(),w&&w.c(),o=D(),$&&$.c(),s=D(),X&&X.c(),l=D(),O&&O.c(),r=D(),W&&W.c(),a=D(),B&&B.c(),c=D(),J&&J.c(),f=D(),E&&E.c(),d=D(),z&&z.c(),h=D(),Te&&Te.c(),v=D(),U(k.$$.fragment),_=D(),U(S.$$.fragment),C=D(),U(T.$$.fragment),L=D(),Le&&Le.c(),le=D(),Pe&&Pe.c(),Y=D(),pe&&pe.c(),N=ct()},m(Z,me){H(e,Z,me),A(Z,i,me),Q&&Q.m(Z,me),A(Z,n,me),w&&w.m(Z,me),A(Z,o,me),$&&$.m(Z,me),A(Z,s,me),X&&X.m(Z,me),A(Z,l,me),O&&O.m(Z,me),A(Z,r,me),W&&W.m(Z,me),A(Z,a,me),B&&B.m(Z,me),A(Z,c,me),J&&J.m(Z,me),A(Z,f,me),E&&E.m(Z,me),A(Z,d,me),z&&z.m(Z,me),A(Z,h,me),Te&&Te.m(Z,me),A(Z,v,me),H(k,Z,me),A(Z,_,me),H(S,Z,me),A(Z,C,me),H(T,Z,me),A(Z,L,me),Le&&Le.m(Z,me),A(Z,le,me),Pe&&Pe.m(Z,me),A(Z,Y,me),pe&&pe.m(Z,me),A(Z,N,me),ee=!0},p(Z,me){const Ae={};me[0]&32|me[1]&192&&(Ae.hidden=Z[38]!==De.Thumb||Z[37]||Z[92]&&Z[5]),me[0]&8&&(Ae.thumbUrl=Z[3]),me[0]&536870912&&(Ae.startVideo=Z[29]),e.$set(Ae),Z[38]===De.WaitingLive?Q?(Q.p(Z,me),me[1]&128&&m(Q,1)):(Q=ka(Z),Q.c(),m(Q,1),Q.m(n.parentNode,n)):Q&&(fe(),g(Q,1,1,()=>{Q=null}),de()),Z[38]===De.WaitingRecord?w?me[1]&128&&m(w,1):(w=wa(),w.c(),m(w,1),w.m(o.parentNode,o)):w&&(fe(),g(w,1,1,()=>{w=null}),de()),Z[7]&&Z[22]?$?($.p(Z,me),me[0]&4194432&&m($,1)):($=ya(Z),$.c(),m($,1),$.m(s.parentNode,s)):$&&(fe(),g($,1,1,()=>{$=null}),de()),Z[31]&&Z[18]&&Z[19]?X?(X.p(Z,me),me[0]&786432|me[1]&1&&m(X,1)):(X=Ca(Z),X.c(),m(X,1),X.m(l.parentNode,l)):X&&(fe(),g(X,1,1,()=>{X=null}),de()),Z[44]?O?(O.p(Z,me),me[1]&8192&&m(O,1)):(O=Ta(Z),O.c(),m(O,1),O.m(r.parentNode,r)):O&&(fe(),g(O,1,1,()=>{O=null}),de()),Z[49]?W?(W.p(Z,me),me[1]&262144&&m(W,1)):(W=Sa(Z),W.c(),m(W,1),W.m(a.parentNode,a)):W&&(fe(),g(W,1,1,()=>{W=null}),de()),Z[52]?B?(B.p(Z,me),me[1]&2097152&&m(B,1)):(B=Pa(),B.c(),m(B,1),B.m(c.parentNode,c)):B&&(fe(),g(B,1,1,()=>{B=null}),de()),Z[39]?J?(J.p(Z,me),me[1]&256&&m(J,1)):(J=Aa(Z),J.c(),m(J,1),J.m(f.parentNode,f)):J&&(fe(),g(J,1,1,()=>{J=null}),de()),Z[54].value!=="off"?E?(E.p(Z,me),me[1]&8388608&&m(E,1)):(E=Ia(Z),E.c(),m(E,1),E.m(d.parentNode,d)):E&&(fe(),g(E,1,1,()=>{E=null}),de()),Z[37]?z?(z.p(Z,me),me[1]&64&&m(z,1)):(z=Ea(Z),z.c(),m(z,1),z.m(h.parentNode,h)):z&&(fe(),g(z,1,1,()=>{z=null}),de()),Z[22]?Te?(Te.p(Z,me),me[0]&4194304&&m(Te,1)):(Te=Va(Z),Te.c(),m(Te,1),Te.m(v.parentNode,v)):Te&&(fe(),g(Te,1,1,()=>{Te=null}),de());const Ue={};me[1]&134217728&&(Ue.isLive=Z[58]),me[1]&4096&&(Ue.isHidden=!Z[43]),me[1]&268435456&&(Ue.isPlaying=Z[59]),me[1]&33554432&&(Ue.position=Z[56]),me[1]&536870912&&(Ue.duration=Z[60]),k.$set(Ue);const Ge={};me[0]&2097152&&(Ge.supportLink=Z[21]),me[1]&131072&&(Ge.returnFocus=Z[157]),me[1]&4&&(Ge.visible=Z[33]),me[1]&512&&(Ge.playerContainerRef=Z[40]),me[1]&1024&&(Ge.controlsContainerRef=Z[41]),me[1]&1073741824&&(Ge.position=Z[61]),!y&&me[1]&2&&(y=!0,Ge.menuElementRef=Z[32],qe(()=>y=!1)),T.$set(Ge),Z[42]?Le?me[1]&2048&&m(Le,1):(Le=La(),Le.c(),m(Le,1),Le.m(le.parentNode,le)):Le&&(fe(),g(Le,1,1,()=>{Le=null}),de()),Z[62]?Pe?me[2]&1&&m(Pe,1):(Pe=Ma(),Pe.c(),m(Pe,1),Pe.m(Y.parentNode,Y)):Pe&&(fe(),g(Pe,1,1,()=>{Pe=null}),de()),Z[63]?pe?me[2]&2&&m(pe,1):(pe=Ba(),pe.c(),m(pe,1),pe.m(N.parentNode,N)):pe&&(fe(),g(pe,1,1,()=>{pe=null}),de())},i(Z){ee||(m(e.$$.fragment,Z),m(Q),m(w),m($),m(X),m(O),m(W),m(B),m(J),m(E),m(z),m(Te),m(k.$$.fragment,Z),m(S.$$.fragment,Z),m(T.$$.fragment,Z),m(Le),m(Pe),m(pe),ee=!0)},o(Z){g(e.$$.fragment,Z),g(Q),g(w),g($),g(X),g(O),g(W),g(B),g(J),g(E),g(z),g(Te),g(k.$$.fragment,Z),g(S.$$.fragment,Z),g(T.$$.fragment,Z),g(Le),g(Pe),g(pe),ee=!1},d(Z){Z&&(P(i),P(n),P(o),P(s),P(l),P(r),P(a),P(c),P(f),P(d),P(h),P(v),P(_),P(C),P(L),P(le),P(Y),P(N)),F(e,Z),Q&&Q.d(Z),w&&w.d(Z),$&&$.d(Z),X&&X.d(Z),O&&O.d(Z),W&&W.d(Z),B&&B.d(Z),J&&J.d(Z),E&&E.d(Z),z&&z.d(Z),Te&&Te.d(Z),F(k,Z),F(S,Z),F(T,Z),Le&&Le.d(Z),Pe&&Pe.d(Z),pe&&pe.d(Z)}}}function rh(t){let e,i,n,o,s=t[51],l,r,a,c,f=Na(t);return{c(){e=I("div"),i=I("div"),o=D(),f.c(),l=ct(),u(i,"class","video-container v-1o4wf3x"),u(i,"style",n=`transform: rotate(${t[35]}deg) scale(${t[46]})`),V(i,"fast-rotate",!t[1].isSmoothVideoRotate),u(e,"class","video-wrapper v-1o4wf3x"),V(e,"hidden",t[38]!==De.Video),V(e,"nocursor",t[45])},m(d,h){A(d,e,h),p(e,i),t[154](i),A(d,o,h),f.m(d,h),A(d,l,h),r=!0,a||(c=[he(e,"contextmenu",Jt(t[108])),he(e,"mousedown",Jt(t[113])),he(e,"mouseup",Jt(t[114])),he(e,"click",Jt(t[116])),he(e,"dblclick",Jt(t[115]))],a=!0)},p(d,h){(!r||h[1]&32784&&n!==(n=`transform: rotate(${d[35]}deg) scale(${d[46]})`))&&u(i,"style",n),(!r||h[0]&2)&&V(i,"fast-rotate",!d[1].isSmoothVideoRotate),(!r||h[1]&128)&&V(e,"hidden",d[38]!==De.Video),(!r||h[1]&16384)&&V(e,"nocursor",d[45]),h[1]&1048576&&be(s,s=d[51])?(fe(),g(f,1,1,q),de(),f=Na(d),f.c(),m(f,1),f.m(l.parentNode,l)):f.p(d,h)},i(d){r||(m(f),r=!0)},o(d){g(f),r=!1},d(d){d&&(P(e),P(o),P(l)),t[154](null),f.d(d),a=!1,nt(c)}}}function ah(t){let e,i,n,o,s,l,r,a={toggleFullscreen:t[106],hideContextMenu:t[107],showHotKeyHelpers:t[117],showKeyMap:t[118],isAds:t[38]===De.Ads,fakePlayButtonHandler:t[47]?t[105]:void 0,$$slots:{default:[rh]},$$scope:{ctx:t}};return i=new v0({props:a}),t[159](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){A(c,e,f),H(i,e,null),p(e,n),p(e,o),t[160](o),t[161](e),s=!0,l||(r=[he(lh,"blur",t[107]),he(e,"mouseenter",t[109]),he(e,"mouseleave",t[111]),he(e,"mousemove",t[112]),he(e,"click",t[120],!0),he(e,"focusin",t[110],!0)],l=!0)},p(c,f){const d={};f[1]&128&&(d.isAds=c[38]===De.Ads),f[1]&65536&&(d.fakePlayButtonHandler=c[47]?c[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&1&&(d.$$scope={dirty:f,ctx:c}),i.$set(d)},i(c){s||(m(i.$$.fragment,c),s=!0)},o(c){g(i.$$.fragment,c),s=!1},d(c){c&&P(e),t[159](null),F(i),t[160](null),t[161](null),l=!1,nt(r)}}}let uh=!0;function vl(t){return t?t.offsetTop+vl(t.offsetParent):0}function Lu(t){return t?t.offsetLeft+Lu(t.offsetParent):0}function ch(t,e,i){let n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w,$,X,O,W,B,J,E,z,Te,ze,Ve,Le,Pe,pe,Z,me,Ae,Ue,Ge,{store:ae}=e,{uiConfig:ye}=e,{title:Me}=e,{thumbUrl:je}=e,{videoContainer:ne}=e,{interactiveContainer:G}=e,{live:Ce}=e,{autoplay:re}=e,{canRewindLive:ke}=e,{showAds:He}=e,{adsSlotId:et=void 0}=e,{adsParams:lt=void 0}=e,{adsPreviewParam:Ne=void 0}=e,{duration:ue=void 0}=e,{logoClickable:st}=e,{logoHidden:vt}=e,{logoTargetUrl:ut=""}=e,{showNextPrevButtons:bt=!1}=e,{nextButtonActive:Ct=!1}=e,{prevButtonActive:Be=!1}=e,{endScreenVideoTitle:Ft=void 0}=e,{endScreenVideoThumb:ce=void 0}=e,{isOneVideoPlaylist:ft=!1}=e,{supportLink:kt}=e,{outerContainerRef:We=void 0}=e,{playerStarted:tt=!1}=e,{fullScreenTarget:gt=void 0}=e,{showMiniTimer:wt=!1}=e,{playNextVideo:hi=ie.noop}=e,{playPrevVideo:bi=ie.noop}=e,{repeatPlaylist:gi=ie.noop}=e,{seekToInteractive:Fi}=e,{toggleGraph:Qi}=e,{playPrevChapter:ii}=e,{firstStart:ni}=e;const _i=ae.getLogger().createComponentLog("Root component"),Ut=ae.interfaceLanguage$;R(t,Ut,b=>i(51,E=b));const oi=ae.state.playbackState$;R(t,oi,b=>i(151,W=b));const Ui=ae.ads.playbackState;R(t,Ui,b=>i(152,B=b));const vi=ae.state.positionWithScrubbing$;R(t,vi,b=>i(56,Le=b));const ki=ae.state.duration$;R(t,ki,b=>i(60,me=b));const li=ae.playerPhase;R(t,li,b=>i(38,Q=b));const wi=ae.ui.isFullscreen;R(t,wi,b=>i(141,k=b));const si=ae.ui.controlsVisible;R(t,si,b=>i(36,L=b));const yi=ae.ui.settingsMenuVisible;R(t,yi,b=>i(139,a=b));const Ci=ae.ui.scrubbingInProgress;R(t,Ci,b=>i(143,T=b));const yt=ae.ui.contextMenu.visible$;R(t,yt,b=>i(33,n=b));const Mt=ae.ui.debugPanelVisible;R(t,Mt,b=>i(63,Ge=b));const qt=ae.state.isLoaderVisible;R(t,qt,b=>i(153,J=b));const ri=ae.state.isEnded$;R(t,ri,b=>i(140,f=b));const Vt=ae.state.chromecastConnected$;R(t,Vt,b=>i(39,X=b));const ai=ae.state.chromecastDeviceName$;R(t,ai,b=>i(53,Te=b));const Zt=ae.ads.postrollPassed;R(t,Zt,b=>i(146,N=b));const xt=ae.state.isLive$;R(t,xt,b=>i(58,pe=b));const Tt=ae.state.isPlaying$;R(t,Tt,b=>i(59,Z=b));const St=ae.state.crashed$;R(t,St,b=>i(37,Y=b));const Bt=ae.webApi.pictureInPictureApi,Wt=ae.state.currentSubtitle$;R(t,Wt,b=>i(54,ze=b));const ui=ae.state.currentSubtitleCaptions$;R(t,ui,b=>i(55,Ve=b));const en=ae.state.duration$;R(t,en,b=>i(57,Pe=b));const qi=ae.state.graphIsOpened$;R(t,qi,b=>i(147,ee=b));const jt=ae.ui.playerSize;R(t,jt,b=>i(34,h=b));const $t=ae.ui.is3DVideo;R(t,$t,b=>i(49,d=b));const Ti=ae.ui.icon3DVideoVisible;R(t,Ti,b=>i(52,z=b));const Ni=ae.ui.rotateAlpha;R(t,Ni,b=>i(35,C=b));const Nt=ae.state.isInteractive,_t=ae.state.isInteractiveTime$;R(t,_t,b=>i(144,y=b));const Si=ae.state.isInteractiveExpectation$;R(t,Si,b=>i(150,O=b));const Zi=ae.state.hasInteractiveBranches,ei=ae.ui.touched;R(t,ei,b=>i(148,w=b));const Wi=ae.ui.modals.hotKeyMap.data;R(t,Wi,b=>i(168,c=b));const ci=ae.ui.modals.hotKeyMap.show;R(t,ci,b=>i(62,Ue=b));const Xi=ae.ui.overlayContainer$,ji=ae.ui.controls.interactiveTimeIndicator;R(t,ji,b=>i(169,v=b));const Ji=ae.state.showInteractiveTimeIndicator,Ri=ae.ui.contextMenu.position$;R(t,Ri,b=>i(61,Ae=b));const Pi=ae.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Rt}=vo();R(t,Rt,b=>i(142,S=b));let Kt,fi,Di,Oi,di;Wi.set(uf());let Ai,Ii;const Fe=Ie(!1);R(t,Fe,b=>i(50,_=b));let zi;const Lt=Ie(!1);R(t,Lt,b=>i(149,$=b));const Ee=Ie(),Ei=Ie(!1);R(t,Ei,b=>i(145,le=b));let Ki=!1,Hi=!1,Vi,xi,Li,Gi,Dt,Yi,ti=!1,oe,it=!1;const{toggle:Ot}=Rt;let Gt=!1,Mi=null,Bi;Bt?.setContext(o1());const un=()=>{re&&!Nt&&Pt(ye.controls.hideTimeout)};ae.setUiCallbacks({onStarted:un});const cn=()=>{window.clearTimeout(Di),Lt.set(!1)},on=()=>{window.clearTimeout(Oi),Ee.set(null)},Pt=b=>{cn(),Lt.set(!0),Di=window.setTimeout(()=>Lt.set(!1),b);const se=b-100;zi=window.setTimeout(()=>{_&&Fe.set(!1)},se>0?se:b)},kn=(b,se)=>{on(),Ee.set(se),Oi=window.setTimeout(()=>Ee.set(null),b)},wn=$t.subscribe(b=>{Ti.set(b),b&&(window.clearTimeout(di),di=window.setTimeout(()=>Ti.set(!1),ye.controls.hide360IconTimeout))}),fn=async()=>{const b=Io();if(b){Pt(ye.controls.hideTimeoutFullscreen);try{await Bt?.remove()}catch(se){_i({message:String(se)})}}wi.set(b),ae.getAdmanWrapper().setFullscreen(b),k?ae.callbacks?.onFullscreenEnter?.():ae.callbacks?.onFullscreenExit?.()},mn=b=>{const se=b;jt.set({width:se.target.width,height:se.target.height})};nn(()=>(V1(fn),Yo(Bt)&&(Bt?.assignPlayerContainer(Kt),Bt?.registryExternalEventHandlers({resize:mn})),G&&ne.parentElement?.insertBefore(G,ne.nextSibling),()=>{window.clearTimeout(Di),window.clearTimeout(zi),window.clearTimeout(Oi),window.clearTimeout(di),wn(),Bt?.dispose(),L1(fn)}));const ln=async()=>{if(Io())await E1(document),_i({message:"exit fullscreen"});else{_i({message:"request fullscreen"});const b=We??Kt,se=b.getRootNode(),we=se instanceof ShadowRoot?se.host:se,Re=gt instanceof HTMLElement&>.contains(we),Qe=ye.allowChangingFullscreenTarget&>&&Re?gt:b;await I1(Qe)}},tn=()=>{Pi(),yt.set(!1)},te=b=>{yt.set(!0),Ri.set({left:b.clientX,top:b.clientY})};function dt(){Ei.set(!0),Nt||Pt(ye.controls.hideTimeoutCursor)}function pn(){Nt||(Fe.set(!0),Pt(ye.controls.hideTimeoutCursor))}function yn(){Ei.set(!1),i(131,Hi=!1),i(130,Ki=!1),Gt=!1,ae.actions.internal.releaseCamera()}function Cn(b){if(v&&Ji){const se=b.currentTarget,we=vl(se),Re=Lu(se),Qe=b.pageX-Re,zt=b.pageY-we,{left:Yt,bottom:At,right:rn}=v,hn=rn-Yt;return Qe>=Yt-hn&&zt<=At+hn}}function Dn(b){if(Kt){const se=vl(b.currentTarget),we=h.height,Re=b.pageY-se;if(Cn(b)){i(131,Hi=!1);return}Re<Kl?i(131,Hi=!0):Re>we-Kl?i(130,Ki=!0):(i(131,Hi=!1),a||i(130,Ki=!1))}}function On(b){Dn(b),xi||Pt(ye.controls.hideTimeoutCursor),d&&Gt&&Mi&&ae.actions.internal.moveCameraFocusPX(Mi.clientX-b.clientX,Mi.clientY-b.clientY,b.timeStamp-Mi.timeStamp),Mi=b}const zn=b=>{b.button===0&&(Gt=!0,ae.actions.internal.holdCamera()),Pt(ye.controls.hideTimeoutCursor)},Hn=b=>{b.button===0&&(Mi=b,Gt=!1,ae.actions.internal.releaseCamera()),Pt(ye.controls.hideTimeoutCursor)},Fn=()=>{_i({message:"double click on video"}),ln(),Pt(ye.controls.hideTimeoutCursor)},Kn=()=>{if(n||a){tn();return}if(!(f&&!Zi)){if(it)return Ot();if(Bi?.focus(),!tt){ni(),Pt(ye.controls.hideTimeoutCursor);return}ae.actions.internal.togglePlay(),Pt(ye.controls.hideTimeoutCursor)}},x=b=>{tn(),ei.set(!0),Pt(ye.controls.hideTimeout),b&&kn(ye.controls.hideHotKeyHelpers,b)},sn=()=>{tn(),ae.callbacks?.onOpenHotKeyMap?ae.callbacks?.onOpenHotKeyMap(c):ci.update(b=>!b)},Gn=()=>{if(n||a){tn();return}},Yn=()=>{ei.set(!0)},Un=ae.ui.contextMenu.openedByBtnKeyboard$;R(t,Un,b=>i(138,r=b));let no=ae.ui.contextMenu.btnRef$;R(t,no,b=>i(137,l=b));let Tn;const qn=ae.ui.contextMenu.openedByHotKey$;R(t,qn,b=>i(136,s=b));const oo=ae.ui.contextMenu.lastActiveElem$;R(t,oo,b=>i(135,o=b));function lo(b){ve[b?"unshift":"push"](()=>{ne=b,i(0,ne)})}const ko=()=>Bi?.focus();function An(b){fi=b,i(41,fi)}const Qn=()=>Bi?.focus();function Xn(b){Tn=b,i(32,Tn)}function so(b){ve[b?"unshift":"push"](()=>{Bi=b,i(48,Bi)})}function Jn(b){ve[b?"unshift":"push"](()=>{Ii=b,i(30,Ii)})}function rt(b){ve[b?"unshift":"push"](()=>{Kt=b,i(40,Kt)})}return t.$$set=b=>{"store"in b&&i(125,ae=b.store),"uiConfig"in b&&i(1,ye=b.uiConfig),"title"in b&&i(2,Me=b.title),"thumbUrl"in b&&i(3,je=b.thumbUrl),"videoContainer"in b&&i(0,ne=b.videoContainer),"interactiveContainer"in b&&i(126,G=b.interactiveContainer),"live"in b&&i(4,Ce=b.live),"autoplay"in b&&i(5,re=b.autoplay),"canRewindLive"in b&&i(6,ke=b.canRewindLive),"showAds"in b&&i(7,He=b.showAds),"adsSlotId"in b&&i(8,et=b.adsSlotId),"adsParams"in b&&i(9,lt=b.adsParams),"adsPreviewParam"in b&&i(10,Ne=b.adsPreviewParam),"duration"in b&&i(11,ue=b.duration),"logoClickable"in b&&i(12,st=b.logoClickable),"logoHidden"in b&&i(13,vt=b.logoHidden),"logoTargetUrl"in b&&i(14,ut=b.logoTargetUrl),"showNextPrevButtons"in b&&i(15,bt=b.showNextPrevButtons),"nextButtonActive"in b&&i(16,Ct=b.nextButtonActive),"prevButtonActive"in b&&i(17,Be=b.prevButtonActive),"endScreenVideoTitle"in b&&i(18,Ft=b.endScreenVideoTitle),"endScreenVideoThumb"in b&&i(19,ce=b.endScreenVideoThumb),"isOneVideoPlaylist"in b&&i(20,ft=b.isOneVideoPlaylist),"supportLink"in b&&i(21,kt=b.supportLink),"outerContainerRef"in b&&i(127,We=b.outerContainerRef),"playerStarted"in b&&i(22,tt=b.playerStarted),"fullScreenTarget"in b&&i(128,gt=b.fullScreenTarget),"showMiniTimer"in b&&i(129,wt=b.showMiniTimer),"playNextVideo"in b&&i(23,hi=b.playNextVideo),"playPrevVideo"in b&&i(24,bi=b.playPrevVideo),"repeatPlaylist"in b&&i(25,gi=b.repeatPlaylist),"seekToInteractive"in b&&i(26,Fi=b.seekToInteractive),"toggleGraph"in b&&i(27,Qi=b.toggleGraph),"playPrevChapter"in b&&i(28,ii=b.playPrevChapter),"firstStart"in b&&i(29,ni=b.firstStart)},t.$$.update=()=>{if(t.$$.dirty[1]&192|t.$$.dirty[4]&805306368&&i(42,Ai=(Q===De.Video&&J||Q===De.Ads&&B===Xt.INACTIVE)&&!Y),t.$$.dirty[0]&1073741824&&Xi.set(Ii),t.$$.dirty[4]&134217728&&i(132,Vi=W!==$e.PlaybackState.PLAYING),t.$$.dirty[4]&68190656&&i(133,xi=y&&!a&&!(Ki||Hi)&&!(Vi&&!O)),t.$$.dirty[1]&448|t.$$.dirty[4]&34112256&&si.set((Vi||a||T||X||$)&&!xi&&(Q===De.Video||Q===De.Ads)&&!Y),t.$$.dirty[0]&2|t.$$.dirty[1]&224|t.$$.dirty[4]&16777248&&i(43,Li=ye.features.thumbTimer&&wt&&Q===De.Video&&!L&&!Y&&!Nt&&(ye.hideThumbTimerAfterTouch&&!w||!ye.hideThumbTimerAfterTouch)),t.$$.dirty[1]&128|t.$$.dirty[4]&8519680&&i(44,Gi=Q===De.Video&&!ee&&k),t.$$.dirty[0]&128|t.$$.dirty[1]&64|t.$$.dirty[4]&4259840&&i(31,Dt=(He&&N||!He)&&f&&!Y),t.$$.dirty[1]&33|t.$$.dirty[4]&3145728&&i(45,Yi=le&&!(L||Dt)&&!y),t.$$.dirty[0]&2|t.$$.dirty[4]&1573888&&(!T&&ti&&!y&&Pt(ye.controls.hideTimeoutCursor),i(134,ti=T)),t.$$.dirty[0]&1|t.$$.dirty[1]&24&&i(46,oe=ne&&C%180?h.height/h.width:1),t.$$.dirty[4]&262144&&i(47,it=S!==null),t.$$.dirty[1]&6|t.$$.dirty[4]&16384&&Qo(Tn,n,r),t.$$.dirty[1]&4|t.$$.dirty[4]&8192){const b=l;b&&Pl(b,n,Un)}if(t.$$.dirty[1]&6|t.$$.dirty[4]&4096&&Qo(Tn,n,s),t.$$.dirty[1]&4|t.$$.dirty[4]&2048){const b=o;b&&zf(b,n,qn)}},[ne,ye,Me,je,Ce,re,ke,He,et,lt,Ne,ue,st,vt,ut,bt,Ct,Be,Ft,ce,ft,kt,tt,hi,bi,gi,Fi,Qi,ii,ni,Ii,Dt,Tn,n,h,C,L,Y,Q,X,Kt,fi,Ai,Li,Gi,Yi,oe,it,Bi,d,_,E,z,Te,ze,Ve,Le,Pe,pe,Z,me,Ae,Ue,Ge,Ut,oi,Ui,vi,ki,li,wi,si,yi,Ci,yt,Mt,qt,ri,Vt,ai,Zt,xt,Tt,St,Wt,ui,en,qi,jt,$t,Ti,Ni,Nt,_t,Si,ei,Wi,ci,ji,Ri,Rt,Fe,Lt,Ee,Ei,Ot,ln,tn,te,dt,pn,yn,On,zn,Hn,Fn,Kn,x,sn,Gn,Yn,Un,no,qn,oo,ae,G,We,gt,wt,Ki,Hi,Vi,xi,ti,o,s,l,r,a,f,k,S,T,y,le,N,ee,w,$,O,W,B,J,lo,ko,An,Qn,Xn,so,Jn,rt]}class fh extends _e{constructor(e){super(),ge(this,e,ch,ah,be,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:127,playerStarted:22,fullScreenTarget:128,showMiniTimer:129,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},sh,[-1,-1,-1,-1,-1,-1,-1])}}const dh=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 mh(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 Ra(t){let e,i,n,o,s,l,r,a,c,f,d,h,v,k,_,S=K("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",C;return{c(){e=I("div"),n=D(),o=I("div"),s=I("div"),l=I("div"),a=D(),c=I("div"),d=D(),h=I("div"),k=D(),_=I("p"),C=Oe(S),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",v="triangle "+t[0]+" v-nhq2ld"),u(s,"class","triangles-wrapper v-nhq2ld"),u(_,"class","step-caption v-nhq2ld"),u(o,"class","info v-nhq2ld")},m(T,y){A(T,e,y),A(T,n,y),A(T,o,y),p(o,s),p(s,l),p(s,a),p(s,c),p(s,d),p(s,h),p(o,k),p(o,_),p(_,C)},p(T,y){y&1&&i!==(i="semicircle "+T[0]+" v-nhq2ld")&&u(e,"class",i),y&1&&r!==(r="triangle "+T[0]+" v-nhq2ld")&&u(l,"class",r),y&1&&f!==(f="triangle "+T[0]+" v-nhq2ld")&&u(c,"class",f),y&1&&v!==(v="triangle "+T[0]+" v-nhq2ld")&&u(h,"class",v),y&2&&S!==(S=K("doubletap_seek_step",{seconds:T[1].toFixed(0)})+"")&&xe(C,S)},d(T){T&&(P(e),P(n),P(o))}}}function ph(t){let e,i,n,o,s=t[2]&&Ra(t);return{c(){e=I("div"),s&&s.c(),u(e,"class",i="double-click-area "+t[0]+" v-nhq2ld")},m(l,r){A(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=Ra(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:q,o:q,d(l){l&&P(e),s&&s.d(),n=!1,o()}}}function hh(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 Vo(()=>{window.clearTimeout(a),window.clearTimeout(c)}),t.$$set=d=>{"side"in d&&i(0,n=d.side),"seekStep"in d&&i(1,o=d.seekStep),"handleSingleFirstClick"in d&&i(4,s=d.handleSingleFirstClick),"handleSecondClick"in d&&i(5,l=d.handleSecondClick)},[n,o,r,f,s,l]}class Mu extends _e{constructor(e){super(),ge(this,e,hh,ph,be,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},mh)}}function bh(t,e,i){let{playNextVideo:n}=e;return nn(()=>{n()}),t.$$set=o=>{"playNextVideo"in o&&i(0,n=o.playNextVideo)},[n]}class gh extends _e{constructor(e){super(),ge(this,e,bh,null,be,{playNextVideo:0})}}const{window:_h}=n1;function vh(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 Da(t){let e,i,n,o;e=new Mu({props:{side:"left",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[100],handleSecondClick:t[130]}});let s=!t[48]&&Oa(t);return{c(){U(e.$$.fragment),i=D(),s&&s.c(),n=ct()},m(l,r){H(e,l,r),A(l,i,r),s&&s.m(l,r),A(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&&m(s,1)):(s=Oa(l),s.c(),m(s,1),s.m(n.parentNode,n))},i(l){o||(m(e.$$.fragment,l),m(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 Oa(t){let e,i;return e=new Mu({props:{side:"right",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[100],handleSecondClick:t[131]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function za(t){let e,i;return e=new Eu({props:{thumbUrl:t[2],startTime:t[3]?.startTime}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.thumbUrl=n[2]),o[0]&8&&(s.startTime=n[3]?.startTime),e.$set(s)},i(n){i||(m(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 Vu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Fa(t){let e,i,n;return i=new M1({props:{adsSlotId:t[7],adsParams:t[8],adsPreviewParam:t[9],duration:t[10]}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","ads-container v-1jy89ut"),V(e,"hidden",t[34]!==De.Ads)},m(o,s){A(o,e,s),H(i,e,null),n=!0},p(o,s){const l={};s[0]&128&&(l.adsSlotId=o[7]),s[0]&256&&(l.adsParams=o[8]),s[0]&512&&(l.adsPreviewParam=o[9]),s[0]&1024&&(l.duration=o[10]),i.$set(l),(!n||s[1]&8)&&V(e,"hidden",o[34]!==De.Ads)},i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){g(i.$$.fragment,o),n=!1},d(o){o&&P(e),F(i)}}}function Ua(t){let e,i;return e=new gh({props:{playNextVideo:t[22]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&4194304&&(s.playNextVideo=n[22]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function qa(t){let e,i;return e=new Tu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(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 T1({props:{ariaLabel:K("video360")}}),{c(){e=I("div"),U(i.$$.fragment),u(e,"class","spherical-video-icon v-1jy89ut")},m(o,s){A(o,e,s),H(i,e,null),n=!0},p:q,i(o){n||(m(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 Pu({props:{thumbUrl:t[2],chromecastDeviceName:t[51]}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(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({props:{shifted:t[30],captions:t[53],position:t[44],playerSize:t[31],isMobile:!0}}),{c(){U(e.$$.fragment)},m(n,o){H(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||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ka(t){let e,i,n,o,s;return i=new Au({}),{c(){e=I("div"),U(i.$$.fragment)},m(l,r){A(l,e,r),H(i,e,null),n=!0,o||(s=he(e,"click",ot(t[101])),o=!0)},p:q,i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){g(i.$$.fragment,l),n=!1},d(l){l&&P(e),F(i),o=!1,s()}}}function Ga(t){let e,i,n;function o(l){t[132](l)}let s={bottomHidden:t[34]===De.Thumb||t[34]===De.WaitingLive||t[34]===De.WaitingRecord||t[34]===De.Ads,showControls:t[30],bottomNoSmooth:t[45],isAds:t[34]===De.Ads,canRewindLive:t[5]&&t[54]!==0,logoClickable:t[11],logoHidden:t[12],logoTargetUrl:t[13],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[98],seekToInteractive:t[25],toggleGraph:t[26],playPrevChapter:t[27],onDisabledPlayPrevChapterClick:t[104],onDisabledSeekToInteractiveClick:t[105]};return t[37]!==void 0&&(s.controlsElementRef=t[37]),e=new yu({props:s}),ve.push(()=>Ze(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&8&&(a.bottomHidden=l[34]===De.Thumb||l[34]===De.WaitingLive||l[34]===De.WaitingRecord||l[34]===De.Ads),r[0]&1073741824&&(a.showControls=l[30]),r[1]&16384&&(a.bottomNoSmooth=l[45]),r[1]&8&&(a.isAds=l[34]===De.Ads),r[0]&32|r[1]&8388608&&(a.canRewindLive=l[5]&&l[54]!==0),r[0]&2048&&(a.logoClickable=l[11]),r[0]&4096&&(a.logoHidden=l[12]),r[0]&8192&&(a.logoTargetUrl=l[13]),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||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ya(t){let e,i;return e=new W1({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Qa(t){let e,i;return e=new H1({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Xa(t){let e,i,n=t[5]&&t[78]&&!t[47].has(at.TIMELINE),o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y;e=new Iu({props:{hidden:t[34]!==De.Thumb||t[33]||t[89]&&t[4],thumbUrl:t[2],startVideo:t[28]}});let L=n&&Da(t),le=t[34]===De.WaitingLive&&za(t),Y=t[34]===De.WaitingRecord&&Ha(),N=t[6]&&t[21]&&Fa(t),ee=t[41]&&t[17]&&t[18]&&Ua(t),Q=t[49]&&qa(),w=t[50]&&Za(),$=t[35]&&Wa(t),X=t[52].value!=="off"&&ja(t),O=t[33]&&Ka(t),W=t[21]&&Ga(t);_=new N1({props:{isLive:t[55],isHidden:!t[40],isPlaying:t[56],position:t[44],duration:t[43]}});let B=t[38]&&Ya(),J=t[57]&&Qa();return{c(){U(e.$$.fragment),i=D(),L&&L.c(),o=D(),le&&le.c(),s=D(),Y&&Y.c(),l=D(),N&&N.c(),r=D(),ee&&ee.c(),a=D(),Q&&Q.c(),c=D(),w&&w.c(),f=D(),$&&$.c(),d=D(),X&&X.c(),h=D(),O&&O.c(),v=D(),W&&W.c(),k=D(),U(_.$$.fragment),S=D(),B&&B.c(),C=D(),J&&J.c(),T=ct()},m(E,z){H(e,E,z),A(E,i,z),L&&L.m(E,z),A(E,o,z),le&&le.m(E,z),A(E,s,z),Y&&Y.m(E,z),A(E,l,z),N&&N.m(E,z),A(E,r,z),ee&&ee.m(E,z),A(E,a,z),Q&&Q.m(E,z),A(E,c,z),w&&w.m(E,z),A(E,f,z),$&&$.m(E,z),A(E,d,z),X&&X.m(E,z),A(E,h,z),O&&O.m(E,z),A(E,v,z),W&&W.m(E,z),A(E,k,z),H(_,E,z),A(E,S,z),B&&B.m(E,z),A(E,C,z),J&&J.m(E,z),A(E,T,z),y=!0},p(E,z){const Te={};z[0]&16|z[1]&12&&(Te.hidden=E[34]!==De.Thumb||E[33]||E[89]&&E[4]),z[0]&4&&(Te.thumbUrl=E[2]),z[0]&268435456&&(Te.startVideo=E[28]),e.$set(Te),z[0]&32|z[1]&65536&&(n=E[5]&&E[78]&&!E[47].has(at.TIMELINE)),n?L?(L.p(E,z),z[0]&32|z[1]&65536&&m(L,1)):(L=Da(E),L.c(),m(L,1),L.m(o.parentNode,o)):L&&(fe(),g(L,1,1,()=>{L=null}),de()),E[34]===De.WaitingLive?le?(le.p(E,z),z[1]&8&&m(le,1)):(le=za(E),le.c(),m(le,1),le.m(s.parentNode,s)):le&&(fe(),g(le,1,1,()=>{le=null}),de()),E[34]===De.WaitingRecord?Y?z[1]&8&&m(Y,1):(Y=Ha(),Y.c(),m(Y,1),Y.m(l.parentNode,l)):Y&&(fe(),g(Y,1,1,()=>{Y=null}),de()),E[6]&&E[21]?N?(N.p(E,z),z[0]&2097216&&m(N,1)):(N=Fa(E),N.c(),m(N,1),N.m(r.parentNode,r)):N&&(fe(),g(N,1,1,()=>{N=null}),de()),E[41]&&E[17]&&E[18]?ee?(ee.p(E,z),z[0]&393216|z[1]&1024&&m(ee,1)):(ee=Ua(E),ee.c(),m(ee,1),ee.m(a.parentNode,a)):ee&&(fe(),g(ee,1,1,()=>{ee=null}),de()),E[49]?Q?z[1]&262144&&m(Q,1):(Q=qa(),Q.c(),m(Q,1),Q.m(c.parentNode,c)):Q&&(fe(),g(Q,1,1,()=>{Q=null}),de()),E[50]?w?(w.p(E,z),z[1]&524288&&m(w,1)):(w=Za(),w.c(),m(w,1),w.m(f.parentNode,f)):w&&(fe(),g(w,1,1,()=>{w=null}),de()),E[35]?$?($.p(E,z),z[1]&16&&m($,1)):($=Wa(E),$.c(),m($,1),$.m(d.parentNode,d)):$&&(fe(),g($,1,1,()=>{$=null}),de()),E[52].value!=="off"?X?(X.p(E,z),z[1]&2097152&&m(X,1)):(X=ja(E),X.c(),m(X,1),X.m(h.parentNode,h)):X&&(fe(),g(X,1,1,()=>{X=null}),de()),E[33]?O?(O.p(E,z),z[1]&4&&m(O,1)):(O=Ka(E),O.c(),m(O,1),O.m(v.parentNode,v)):O&&(fe(),g(O,1,1,()=>{O=null}),de()),E[21]?W?(W.p(E,z),z[0]&2097152&&m(W,1)):(W=Ga(E),W.c(),m(W,1),W.m(k.parentNode,k)):W&&(fe(),g(W,1,1,()=>{W=null}),de());const ze={};z[1]&16777216&&(ze.isLive=E[55]),z[1]&512&&(ze.isHidden=!E[40]),z[1]&33554432&&(ze.isPlaying=E[56]),z[1]&8192&&(ze.position=E[44]),z[1]&4096&&(ze.duration=E[43]),_.$set(ze),E[38]?B?z[1]&128&&m(B,1):(B=Ya(),B.c(),m(B,1),B.m(C.parentNode,C)):B&&(fe(),g(B,1,1,()=>{B=null}),de()),E[57]?J?z[1]&67108864&&m(J,1):(J=Qa(),J.c(),m(J,1),J.m(T.parentNode,T)):J&&(fe(),g(J,1,1,()=>{J=null}),de())},i(E){y||(m(e.$$.fragment,E),m(L),m(le),m(Y),m(N),m(ee),m(Q),m(w),m($),m(X),m(O),m(W),m(_.$$.fragment,E),m(B),m(J),y=!0)},o(E){g(e.$$.fragment,E),g(L),g(le),g(Y),g(N),g(ee),g(Q),g(w),g($),g(X),g(O),g(W),g(_.$$.fragment,E),g(B),g(J),y=!1},d(E){E&&(P(i),P(o),P(s),P(l),P(r),P(a),P(c),P(f),P(d),P(h),P(v),P(k),P(S),P(C),P(T)),F(e,E),L&&L.d(E),le&&le.d(E),Y&&Y.d(E),N&&N.d(E),ee&&ee.d(E),Q&&Q.d(E),w&&w.d(E),$&&$.d(E),X&&X.d(E),O&&O.d(E),W&&W.d(E),F(_,E),B&&B.d(E),J&&J.d(E)}}}function kh(t){let e,i,n,o,s,l=t[46],r,a,c,f,d,h=Xa(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]})`),V(n,"fast-rotate",!t[1].isSmoothVideoRotate),u(i,"class","video-wrapper v-1jy89ut"),V(i,"hidden",t[34]!==De.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(v,k){A(v,e,k),p(e,i),p(i,n),t[129](n),p(e,s),h.m(e,null),p(e,r),p(e,a),t[133](a),t[134](e),c=!0,f||(d=[he(_h,"blur",t[99]),he(i,"click",Jt(t[100])),he(e,"click",t[102],!0),he(e,"focusin",t[103],!0)],f=!0)},p(v,k){(!c||k[1]&2050&&o!==(o=`transform: rotate(${v[32]}deg) scale(${v[42]})`))&&u(n,"style",o),(!c||k[0]&2)&&V(n,"fast-rotate",!v[1].isSmoothVideoRotate),(!c||k[1]&8)&&V(i,"hidden",v[34]!==De.Video),k[1]&32768&&be(l,l=v[46])?(fe(),g(h,1,1,q),de(),h=Xa(v),h.c(),m(h,1),h.m(e,r)):h.p(v,k)},i(v){c||(m(h),c=!0)},o(v){g(h),c=!1},d(v){v&&P(e),t[129](null),h.d(v),t[133](null),t[134](null),f=!1,nt(d)}}}function wh(t,e,i){let n,o,s,l,r,a,c,f,d,h,v,k,_,S,C,T,y,L,le,Y,N,ee,Q,w,$,X,O,W,B,J,E,z,Te,ze,Ve,Le,Pe,{store:pe}=e,{uiConfig:Z}=e,{thumbUrl:me}=e,{videoContainer:Ae}=e,{interactiveContainer:Ue}=e,{live:Ge}=e,{autoplay:ae}=e,{canRewindLive:ye}=e,{showAds:Me}=e,{adsSlotId:je=void 0}=e,{adsParams:ne=void 0}=e,{adsPreviewParam:G=void 0}=e,{duration:Ce=void 0}=e,{logoClickable:re}=e,{logoHidden:ke}=e,{logoTargetUrl:He=""}=e,{showNextPrevButtons:et=!1}=e,{nextButtonActive:lt=!1}=e,{prevButtonActive:Ne=!1}=e,{endScreenVideoTitle:ue=void 0}=e,{endScreenVideoThumb:st=void 0}=e,{isOneVideoPlaylist:vt=!1}=e,{supportLink:ut}=e,{outerContainerRef:bt=void 0}=e,{showMiniTimer:Ct=!1}=e,{fullScreenTarget:Be=void 0}=e,{playerStarted:Ft=!1}=e,{playNextVideo:ce=ie.noop}=e,{playPrevVideo:ft=ie.noop}=e,{repeatPlaylist:kt=ie.noop}=e,{seekToInteractive:We}=e,{toggleGraph:tt}=e,{playPrevChapter:gt}=e,{firstStart:wt}=e,{seekTime:hi}=e;const bi=pe.getLogger().createComponentLog("Root component"),gi=pe.interfaceLanguage$;R(t,gi,te=>i(46,X=te));const Fi=pe.state.playbackState$;R(t,Fi,te=>i(126,Q=te));const Qi=pe.ads.playbackState;R(t,Qi,te=>i(127,w=te));const ii=pe.state.positionWithScrubbing$;R(t,ii,te=>i(44,r=te));const ni=pe.state.duration$;R(t,ni,te=>i(43,l=te));const _i=pe.playerPhase;R(t,_i,te=>i(34,le=te));const Ut=pe.ui.isFullscreen;R(t,Ut,te=>i(141,c=te));const oi=pe.ui.controlsVisible;R(t,oi,te=>i(30,o=te));const Ui=pe.ui.interactiveHideMobileControls;R(t,Ui,te=>i(118,v=te));const vi=pe.ui.settingsMenuVisible;R(t,vi,te=>i(117,n=te));const ki=pe.ui.scrubbingInProgress;R(t,ki,te=>i(119,_=te));const li=pe.ui.debugPanelVisible;R(t,li,te=>i(57,Pe=te));const wi=pe.state.isLoaderVisible;R(t,wi,te=>i(128,$=te));const si=pe.state.isEnded$;R(t,si,te=>i(121,T=te));const yi=pe.state.chromecastConnected$;R(t,yi,te=>i(35,Y=te));const Ci=pe.state.chromecastDeviceName$;R(t,Ci,te=>i(51,E=te));const yt=pe.ads.postrollPassed;R(t,yt,te=>i(122,y=te));const Mt=pe.ui.mobileUnmuteButtonExpanded,qt=pe.ui.mobileUnmuteButtonVisible,ri=pe.state.isLive$;R(t,ri,te=>i(55,Ve=te));const Vt=pe.state.isPlaying$;R(t,Vt,te=>i(56,Le=te));const ai=pe.state.isActiveLive$;R(t,ai,te=>i(48,W=te));const Zt=pe.state.isRewindableLive$,xt=pe.state.crashed$;R(t,xt,te=>i(33,C=te));const Tt=pe.webApi.pictureInPictureApi,St=pe.state.videoSize$;R(t,St,te=>i(142,d=te));const Bt=pe.state.currentSubtitle$;R(t,Bt,te=>i(52,z=te));const Wt=pe.state.currentSubtitleCaptions$;R(t,Wt,te=>i(53,Te=te));const ui=pe.state.duration$;R(t,ui,te=>i(54,ze=te));const en=pe.state.graphIsOpened$;R(t,en,te=>i(125,ee=te));const qi=pe.ui.playerSize;R(t,qi,te=>i(31,f=te));const jt=pe.ui.is3DVideo;R(t,jt,te=>i(49,B=te));const $t=pe.ui.icon3DVideoVisible;R(t,$t,te=>i(50,J=te));const Ti=pe.ui.rotateAlpha;R(t,Ti,te=>i(32,k=te));const Ni=pe.state.isInteractive,Nt=pe.state.isInteractiveTime$;R(t,Nt,te=>i(120,S=te));const _t=pe.state.isInteractiveExpectation$;R(t,_t,te=>i(124,N=te));const Si=pe.state.hasInteractiveBranches,Zi=pe.ui.controls.disabledControls$;R(t,Zi,te=>i(47,O=te));const ei=pe.ui.touched;R(t,ei,te=>i(123,L=te));const Wi=pe.ui.clientInfo$;R(t,Wi,te=>i(140,a=te));const ci=pe.ui.overlayContainer$,Xi=pe.state.isFirstBytes$;R(t,Xi,te=>i(139,s=te));const ji=pe.actions.internal.closeSettingsMenu,Ji=pe.callbacks?.onDisabledPlayPrevChapterClick,Ri=pe.callbacks?.onDisabledSeekToInteractiveClick;let Pi,Rt,Kt,fi,Di,Oi,di;const Ai=Ie(!1);R(t,Ai,te=>i(45,h=te));let Ii,Fe=!1,zi,Lt=!1,Ee,Ei=!0,Ki,Hi,Vi=!1,xi;Tt?.setContext(o1());const Li=te=>{clearTimeout(fi),te&&(qt.set(!0),Mt.set(!0),fi=window.setTimeout(()=>{Mt.set(!1)},Z.controls.collapseMobileUnmute),Ni||Dt(Z.controls.hideTimeoutMobile))};pe.setUiCallbacks({onStarted:Li});const Gi=()=>{window.clearTimeout(Kt),i(112,Fe=!1),v&&Ui.set(!1)},Dt=te=>{Gi(),i(112,Fe=!0),Kt=window.setTimeout(()=>i(112,Fe=!1),te);const dt=te-100;Ii=window.setTimeout(()=>{h&&Ai.set(!1)},dt>0?dt:te)},Yi=jt.subscribe(te=>{$t.set(te),te&&(window.clearTimeout(Di),Di=window.setTimeout(()=>$t.set(!1),Z.controls.hide360IconTimeout))}),ti=async()=>{const te=Io();if(te){Dt(Z.controls.hideTimeoutFullscreen);try{await Tt?.remove()}catch(dt){bi({message:String(dt)})}try{const dt=d?.width&&d?.height?d:f;await af(dt)}catch(dt){bi({message:String(dt)})}}Ut.set(te),pe.getAdmanWrapper().setFullscreen(te),c?pe.callbacks?.onFullscreenEnter?.():pe.callbacks?.onFullscreenExit?.()},oe=te=>{const dt=te;qi.set({width:dt.target.width,height:dt.target.height})};nn(()=>(V1(ti),Yo(Tt)&&(Tt?.assignPlayerContainer(Pi),Tt?.registryExternalEventHandlers({resize:oe})),i(39,Ei=!dh(a)),Ue&&Ae.parentElement?.insertBefore(Ue,Ae.nextSibling),()=>{window.clearTimeout(Kt),window.clearTimeout(Ii),window.clearTimeout(fi),window.clearTimeout(Di),Yi(),Tt?.dispose(),L1(ti)}));const it=te=>{let dt=r+(te==="forward"?1:-1)*Z.controls.seekStepMobile/1e3;dt<0?dt=0:dt>l&&(dt=l-1),i(114,Lt=!0),hi(dt)},Ot=async()=>{if(Io())await E1(document),bi({message:"exit fullscreen"});else{if(bi({message:"request fullscreen"}),ie.isIOS()&&!s)return;const te=ie.isIOS()||!bt?Pi:bt,dt=te.getRootNode(),pn=dt instanceof ShadowRoot?dt.host:dt,yn=Be instanceof HTMLElement&&Be.contains(pn),Cn=Z.allowChangingFullscreenTarget&&Be&&yn?Be:te;await I1(Cn)}},Gt=()=>{ji()},Mi=()=>{if(n){Gt();return}if(!Ft){wt(),Dt(Z.controls.hideTimeoutCursor);return}i(114,Lt=!1),o?Gi():Dt(Z.controls.hideTimeoutMobile)},Bi=()=>{if(n){Gt();return}},un=()=>{ei.set(!0)},cn=()=>{Ni||(Ai.set(!0),Dt(Z.controls.hideTimeoutCursor))},on=te=>{Ji&&(Ji(te),Dt(Z.controls.hideTimeoutMobile))},Pt=te=>{Ri&&(Ri(te),Dt(Z.controls.hideTimeoutMobile))};function kn(te){ve[te?"unshift":"push"](()=>{Ae=te,i(0,Ae)})}const wn=()=>it("backward"),fn=()=>it("forward");function mn(te){Rt=te,i(37,Rt)}function ln(te){ve[te?"unshift":"push"](()=>{di=te,i(29,di)})}function tn(te){ve[te?"unshift":"push"](()=>{Pi=te,i(36,Pi)})}return t.$$set=te=>{"store"in te&&i(106,pe=te.store),"uiConfig"in te&&i(1,Z=te.uiConfig),"thumbUrl"in te&&i(2,me=te.thumbUrl),"videoContainer"in te&&i(0,Ae=te.videoContainer),"interactiveContainer"in te&&i(107,Ue=te.interactiveContainer),"live"in te&&i(3,Ge=te.live),"autoplay"in te&&i(4,ae=te.autoplay),"canRewindLive"in te&&i(5,ye=te.canRewindLive),"showAds"in te&&i(6,Me=te.showAds),"adsSlotId"in te&&i(7,je=te.adsSlotId),"adsParams"in te&&i(8,ne=te.adsParams),"adsPreviewParam"in te&&i(9,G=te.adsPreviewParam),"duration"in te&&i(10,Ce=te.duration),"logoClickable"in te&&i(11,re=te.logoClickable),"logoHidden"in te&&i(12,ke=te.logoHidden),"logoTargetUrl"in te&&i(13,He=te.logoTargetUrl),"showNextPrevButtons"in te&&i(14,et=te.showNextPrevButtons),"nextButtonActive"in te&&i(15,lt=te.nextButtonActive),"prevButtonActive"in te&&i(16,Ne=te.prevButtonActive),"endScreenVideoTitle"in te&&i(17,ue=te.endScreenVideoTitle),"endScreenVideoThumb"in te&&i(18,st=te.endScreenVideoThumb),"isOneVideoPlaylist"in te&&i(19,vt=te.isOneVideoPlaylist),"supportLink"in te&&i(20,ut=te.supportLink),"outerContainerRef"in te&&i(108,bt=te.outerContainerRef),"showMiniTimer"in te&&i(109,Ct=te.showMiniTimer),"fullScreenTarget"in te&&i(110,Be=te.fullScreenTarget),"playerStarted"in te&&i(21,Ft=te.playerStarted),"playNextVideo"in te&&i(22,ce=te.playNextVideo),"playPrevVideo"in te&&i(23,ft=te.playPrevVideo),"repeatPlaylist"in te&&i(24,kt=te.repeatPlaylist),"seekToInteractive"in te&&i(25,We=te.seekToInteractive),"toggleGraph"in te&&i(26,tt=te.toggleGraph),"playPrevChapter"in te&&i(27,gt=te.playPrevChapter),"firstStart"in te&&i(28,wt=te.firstStart),"seekTime"in te&&i(111,hi=te.seekTime)},t.$$.update=()=>{t.$$.dirty[1]&12|t.$$.dirty[4]&24&&i(38,Oi=(le===De.Video&&$||le===De.Ads&&w===Xt.INACTIVE)&&!C),t.$$.dirty[0]&536870912&&ci.set(di),t.$$.dirty[4]&4&&i(113,zi=Q!==$e.PlaybackState.PLAYING),t.$$.dirty[3]&303562752|t.$$.dirty[4]&3&&i(115,Ee=ee||v||!Fe&&(T&&!!Si||zi&&N)),t.$$.dirty[1]&28|t.$$.dirty[3]&91750400&&oi.set((zi||n||_||Y||Fe&&!Lt)&&!Ee&&le===De.Video&&!C),t.$$.dirty[0]&1073741826|t.$$.dirty[1]&12|t.$$.dirty[3]&1073807360&&i(40,Ki=Z.features.thumbTimer&&Ct&&le===De.Video&&!o&&!C&&!Ni&&(Z.hideThumbTimerAfterTouch&&!L||!Z.hideThumbTimerAfterTouch)),t.$$.dirty[0]&64|t.$$.dirty[1]&4|t.$$.dirty[3]&805306368&&i(41,Hi=(Me&&y||!Me)&&T&&!C),t.$$.dirty[0]&2|t.$$.dirty[3]&209715200&&(!_&&Vi&&!S&&Dt(Z.controls.hideTimeoutMobile),i(116,Vi=_)),t.$$.dirty[0]&1|t.$$.dirty[1]&3&&i(42,xi=Ae&&k%180?f.height/f.width:1)},[Ae,Z,me,Ge,ae,ye,Me,je,ne,G,Ce,re,ke,He,et,lt,Ne,ue,st,vt,ut,Ft,ce,ft,kt,We,tt,gt,wt,di,o,f,k,C,le,Y,Pi,Rt,Oi,Ei,Ki,Hi,xi,l,r,h,X,O,W,B,J,E,z,Te,ze,Ve,Le,Pe,gi,Fi,Qi,ii,ni,_i,Ut,oi,Ui,vi,ki,li,wi,si,yi,Ci,yt,ri,Vt,ai,Zt,xt,St,Bt,Wt,ui,en,qi,jt,$t,Ti,Ni,Nt,_t,Zi,ei,Wi,Xi,Ai,it,Ot,Gt,Mi,Bi,un,cn,on,Pt,pe,Ue,bt,Ct,Be,hi,Fe,zi,Lt,Ee,Vi,n,v,_,S,T,y,L,N,ee,Q,w,$,kn,wn,fn,mn,ln,tn]}class yh extends _e{constructor(e){super(),ge(this,e,wh,kh,be,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},vh,[-1,-1,-1,-1,-1,-1])}}function Ch(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(
|
|
32
|
+
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function Hg(i){let e,t;return{c(){e=T("div"),t=Se(i[0]),u(e,"class","title svelte-1bcvcf2"),V(e,"hidden",i[1])},m(n,o){k(n,e,o),d(e,t)},p(n,[o]){o&1&&Fe(t,n[0]),o&2&&V(e,"hidden",n[1])},i:L,o:L,d(n){n&&y(e)}}}function zg(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var Ou=class extends K{constructor(e){super(),W(this,e,zg,Hg,q,{title:0,isHidden:1},Fg)}},tm=Ou;function Ug(i){ve(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function im(i){let e,t,n,o,l,r,s;return{c(){e=T("div"),t=T("span"),n=Se(i[0]),o=N(),l=T("span"),l.textContent=`${z("waiting_live_day_value")}`,r=N(),s=T("span"),s.textContent=`${z("waiting_live_colon")}`,u(t,"class","cell__value svelte-1qpxtfg"),u(l,"class","cell__unit svelte-1qpxtfg"),u(e,"class","timer__cell cell svelte-1qpxtfg"),u(s,"class","timer__points svelte-1qpxtfg")},m(a,c){k(a,e,c),d(e,t),d(t,n),d(e,o),d(e,l),k(a,r,c),k(a,s,c)},p(a,c){c&1&&Fe(n,a[0])},d(a){a&&(y(e),y(r),y(s))}}}function nm(i){let e,t,n,o,l,r,s;return{c(){e=T("div"),t=T("span"),n=Se(i[1]),o=N(),l=T("span"),l.textContent=`${z("waiting_live_hour_value")}`,r=N(),s=T("span"),s.textContent=`${z("waiting_live_colon")}`,u(t,"class","cell__value svelte-1qpxtfg"),u(l,"class","cell__unit svelte-1qpxtfg"),u(e,"class","timer__cell cell svelte-1qpxtfg"),u(s,"class","timer__points svelte-1qpxtfg")},m(a,c){k(a,e,c),d(e,t),d(t,n),d(e,o),d(e,l),k(a,r,c),k(a,s,c)},p(a,c){c&2&&Fe(n,a[1])},d(a){a&&(y(e),y(r),y(s))}}}function om(i){let e,t,n,o,l,r,s;return{c(){e=T("div"),t=T("span"),n=Se(i[2]),o=N(),l=T("span"),l.textContent=`${z("waiting_live_minute_value")}`,r=N(),s=T("span"),s.textContent=`${z("waiting_live_colon")}`,u(t,"class","cell__value svelte-1qpxtfg"),u(l,"class","cell__unit svelte-1qpxtfg"),u(e,"class","timer__cell cell svelte-1qpxtfg"),u(s,"class","timer__points svelte-1qpxtfg")},m(a,c){k(a,e,c),d(e,t),d(t,n),d(e,o),d(e,l),k(a,r,c),k(a,s,c)},p(a,c){c&4&&Fe(n,a[2])},d(a){a&&(y(e),y(r),y(s))}}}function rm(i){let e,t,n,o,l;return{c(){e=T("div"),t=T("span"),n=Se(i[3]),o=N(),l=T("span"),l.textContent=`${z("waiting_live_second_value")}`,u(t,"class","cell__value svelte-1qpxtfg"),u(l,"class","cell__unit svelte-1qpxtfg"),u(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,s){k(r,e,s),d(e,t),d(t,n),d(e,o),d(e,l)},p(r,s){s&8&&Fe(n,r[3])},d(r){r&&y(e)}}}function qg(i){let e,t,n,o,l=i[0]&&im(i),r=i[1]&&nm(i),s=i[2]&&om(i),a=i[3]&&rm(i);return{c(){e=T("div"),l&&l.c(),t=N(),r&&r.c(),n=N(),s&&s.c(),o=N(),a&&a.c(),u(e,"class","timer__container svelte-1qpxtfg")},m(c,f){k(c,e,f),l&&l.m(e,null),d(e,t),r&&r.m(e,null),d(e,n),s&&s.m(e,null),d(e,o),a&&a.m(e,null)},p(c,[f]){c[0]?l?l.p(c,f):(l=im(c),l.c(),l.m(e,t)):l&&(l.d(1),l=null),c[1]?r?r.p(c,f):(r=nm(c),r.c(),r.m(e,n)):r&&(r.d(1),r=null),c[2]?s?s.p(c,f):(s=om(c),s.c(),s.m(e,o)):s&&(s.d(1),s=null),c[3]?a?a.p(c,f):(a=rm(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:L,o:L,d(c){c&&y(e),l&&l.d(),r&&r.d(),s&&s.d(),a&&a.d()}}}function Kg(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,s,a,c,f=v=>String(v).padStart(2,"0"),p=v=>{let g=Math.floor(v/86400);g&&(v-=g*86400,t(0,l=f(g)));let w=Math.floor(v/3600);t(1,r=f(w));let P=Math.floor(v/60)%60;t(2,s=f(P));let M=v%60;t(3,a=f(M))},b=()=>{let v=Math.floor(Date.now()/1e3),g=n-v;p(g),g>=1?c=requestAnimationFrame(b):o()};return gt(()=>{c=requestAnimationFrame(b)}),Mn(()=>{cancelAnimationFrame(c)}),i.$$set=v=>{"startTime"in v&&t(4,n=v.startTime),"onTimerOver"in v&&t(5,o=v.onTimerOver)},[l,r,s,a,n,o]}var Fu=class extends K{constructor(e){super(),W(this,e,Kg,qg,q,{startTime:4,onTimerOver:5},Ug)}},lm=Fu;function Wg(i){let e,t,n,o,l;return{c(){e=A("svg"),t=A("path"),n=A("path"),o=A("path"),l=A("path"),u(t,"fill","#fefffe"),u(t,"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"),_t(t,"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"),_t(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"),_t(o,"opacity",".985"),u(l,"fill","#fefffe"),u(l,"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"),_t(l,"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"),_t(e,"shape-rendering","geometricPrecision"),_t(e,"text-rendering","geometricPrecision"),_t(e,"image-rendering","optimizeQuality"),_t(e,"fill-rule","evenodd"),_t(e,"clip-rule","evenodd"),_t(e,"width","100%"),_t(e,"height","100%")},m(r,s){k(r,e,s),d(e,t),d(e,n),d(e,o),d(e,l)},p:L,i:L,o:L,d(r){r&&y(e)}}}var Hu=class extends K{constructor(e){super(),W(this,e,null,Wg,q,{})}},sm=Hu;function Zg(i){ve(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function jg(i){let e,t,n,o,l;return o=new lm({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${z("waiting_live_timer_title")}`,n=N(),H(o.$$.fragment),u(t,"class","timer__title svelte-15pewff"),u(e,"class","waiting-timer timer svelte-15pewff")},m(r,s){k(r,e,s),d(e,t),d(e,n),O(o,e,null),l=!0},p(r,s){let a={};s&2&&(a.startTime=r[1]||0),s&4&&(a.onTimerOver=r[3]),o.$set(a)},i(r){l||(m(o.$$.fragment,r),l=!0)},o(r){h(o.$$.fragment,r),l=!1},d(r){r&&y(e),F(o)}}}function Gg(i){let e,t,n,o,l,r;return n=new sm({}),{c(){e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),l=T("span"),l.textContent=`${z("waiting_live_upcoming_title")}`,u(t,"class","upcoming-icon svelte-15pewff"),u(l,"class","upcoming__title svelte-15pewff"),u(e,"class","upcoming svelte-15pewff")},m(s,a){k(s,e,a),d(e,t),O(n,t,null),d(e,o),d(e,l),r=!0},p:L,i(s){r||(m(n.$$.fragment,s),r=!0)},o(s){h(n.$$.fragment,s),r=!1},d(s){s&&y(e),F(n)}}}function xg(i){let e,t,n,o,l,r=[Gg,jg],s=[];function a(c,f){return c[2]?0:1}return t=a(i,-1),n=s[t]=r[t](i),{c(){e=T("div"),n.c(),u(e,"class","waiting-container svelte-15pewff"),u(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(c,f){k(c,e,f),s[t].m(e,null),l=!0},p(c,[f]){let p=t;t=a(c,f),t===p?s[t].p(c,f):(ce(),h(s[p],1,1,()=>{s[p]=null}),fe(),n=s[t],n?n.p(c,f):(n=s[t]=r[t](c),n.c()),m(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${c[2]?"":c[0]})`))&&u(e,"style",o)},i(c){l||(m(n),l=!0)},o(c){h(n),l=!1},d(c){c&&y(e),s[t].d()}}}function Qg(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=s=>{"thumbUrl"in s&&t(0,o=s.thumbUrl),"startTime"in s&&t(1,l=s.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var zu=class extends K{constructor(e){super(),W(this,e,Qg,xg,q,{thumbUrl:0,startTime:1},Zg)}},Jl=zu;function Yg(i){ve(i,"svelte-1bcnzdw",".waiting-container.svelte-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.svelte-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function Xg(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${z("waiting_record_title")}`,u(t,"class","waiting-title svelte-1bcnzdw"),u(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){k(n,e,o),d(e,t)},p:L,i:L,o:L,d(n){n&&y(e)}}}var Uu=class extends K{constructor(e){super(),W(this,e,null,Xg,q,{},Yg)}},$l=Uu;var{window:Jg}=bo;function $g(i){ve(i,"svelte-1o4wf3x",".player-wrapper.svelte-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.svelte-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.svelte-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1o4wf3x,.video-container.svelte-1o4wf3x,.ads-container.svelte-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1o4wf3x{transition:none}.nocursor.svelte-1o4wf3x{cursor:none}.ads-container.svelte-1o4wf3x{background:var(--black)}")}function um(i){let e,t;return e=new Jl({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function cm(i){let e,t;return e=new $l({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function fm(i){let e,t,n;return t=new il({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","ads-container svelte-1o4wf3x"),V(e,"hidden",i[38]!=="ads")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&V(e,"hidden",o[38]!=="ads")},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function dm(i){let e,t;return e=new Zf({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function mm(i){let e,t;return e=new tm({props:{title:i[2],isHidden:!i[36]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function pm(i){let e,t;return e=new Gl({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function hm(i){let e,t,n;return t=new Gr({props:{ariaLabel:z("video360")}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p:L,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function bm(i){let e,t;return e=new Ql({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function _m(i){let e,t;return e=new xl({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&16777216&&(l.captions=n[55]),o[1]&33554432&&(l.position=n[56]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function gm(i){let e,t,n,o,l;return t=new Yl({}),{c(){e=T("div"),H(t.$$.fragment)},m(r,s){k(r,e,s),O(t,e,null),n=!0,o||(l=[de(e,"contextmenu",bt(i[108])),de(e,"click",Je(i[119]))],o=!0)},p:L,i(r){n||(m(t.$$.fragment,r),n=!0)},o(r){h(t.$$.fragment,r),n=!1},d(r){r&&y(e),F(t),o=!1,xe(l)}}}function vm(i){let e,t,n;function o(r){i[156](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[57]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:Pm,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[155],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new jl({props:l}),me.push(()=>Me(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&128&&(a.bottomHidden=r[38]==="thumb"||r[38]==="waitingLive"||r[38]==="waitingRecord"),s[1]&524288&&(a.bottomNoSmooth=r[50]),s[1]&32&&(a.showControls=r[36]),s[1]&128&&(a.isAds=r[38]==="ads"),s[0]&64|s[1]&67108864&&(a.canRewindLive=r[6]&&r[57]!==0),s[0]&4096&&(a.logoClickable=r[12]),s[0]&8192&&(a.logoHidden=r[13]),s[0]&16384&&(a.logoTargetUrl=r[14]),s[0]&32768&&(a.showNextPrevButtons=r[15]),s[0]&65536&&(a.nextButtonActive=r[16]),s[0]&131072&&(a.prevButtonActive=r[17]),s[0]&1048576&&(a.isOneVideoPlaylist=r[20]),s[0]&2097152&&(a.supportLink=r[21]),s[0]&8388608&&(a.playNextVideo=r[23]),s[0]&16777216&&(a.playPrevVideo=r[24]),s[0]&33554432&&(a.repeatPlaylist=r[25]),s[1]&131072&&(a.returnFocus=r[155]),s[0]&67108864&&(a.seekToInteractive=r[26]),s[0]&134217728&&(a.toggleGraph=r[27]),s[0]&268435456&&(a.playPrevChapter=r[28]),!t&&s[1]&1024&&(t=!0,a.controlsElementRef=r[41],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function ym(i){let e,t;return e=new fl({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function km(i){let e,t;return e=new i1({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function wm(i){let e,t;return e=new al({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Cm(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re;e=new Xl({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ie=i[38]==="waitingLive"&&um(i),S=i[38]==="waitingRecord"&&cm(i),G=i[7]&&i[22]&&fm(i),Y=i[31]&&i[18]&&i[19]&&dm(i),J=i[44]&&mm(i),X=i[49]&&pm(i),R=i[52]&&hm(i),Z=i[39]&&bm(i),B=i[54].value!=="off"&&_m(i),j=i[37]&&gm(i),Ie=i[22]&&vm(i);g=new ol({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),P=new j0({props:{data:i[103]}});function De(Q){i[158](Q)}let Le={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Le.menuElementRef=i[32]),C=new If({props:Le}),me.push(()=>Me(C,"menuElementRef",De));let qe=i[42]&&ym(i),Te=i[62]&&km(i),he=i[63]&&wm(i);return{c(){H(e.$$.fragment),t=N(),ie&&ie.c(),n=N(),S&&S.c(),o=N(),G&&G.c(),l=N(),Y&&Y.c(),r=N(),J&&J.c(),s=N(),X&&X.c(),a=N(),R&&R.c(),c=N(),Z&&Z.c(),f=N(),B&&B.c(),p=N(),j&&j.c(),b=N(),Ie&&Ie.c(),v=N(),H(g.$$.fragment),w=N(),H(P.$$.fragment),M=N(),H(C.$$.fragment),E=N(),qe&&qe.c(),$=N(),Te&&Te.c(),ee=N(),he&&he.c(),U=Ye()},m(Q,_e){O(e,Q,_e),k(Q,t,_e),ie&&ie.m(Q,_e),k(Q,n,_e),S&&S.m(Q,_e),k(Q,o,_e),G&&G.m(Q,_e),k(Q,l,_e),Y&&Y.m(Q,_e),k(Q,r,_e),J&&J.m(Q,_e),k(Q,s,_e),X&&X.m(Q,_e),k(Q,a,_e),R&&R.m(Q,_e),k(Q,c,_e),Z&&Z.m(Q,_e),k(Q,f,_e),B&&B.m(Q,_e),k(Q,p,_e),j&&j.m(Q,_e),k(Q,b,_e),Ie&&Ie.m(Q,_e),k(Q,v,_e),O(g,Q,_e),k(Q,w,_e),O(P,Q,_e),k(Q,M,_e),O(C,Q,_e),k(Q,E,_e),qe&&qe.m(Q,_e),k(Q,$,_e),Te&&Te.m(Q,_e),k(Q,ee,_e),he&&he.m(Q,_e),k(Q,U,_e),re=!0},p(Q,_e){let Ae={};_e[0]&32|_e[1]&192&&(Ae.hidden=Q[38]!=="thumb"||Q[37]||Q[92]&&Q[5]),_e[0]&8&&(Ae.thumbUrl=Q[3]),_e[0]&536870912&&(Ae.startVideo=Q[29]),e.$set(Ae),Q[38]==="waitingLive"?ie?(ie.p(Q,_e),_e[1]&128&&m(ie,1)):(ie=um(Q),ie.c(),m(ie,1),ie.m(n.parentNode,n)):ie&&(ce(),h(ie,1,1,()=>{ie=null}),fe()),Q[38]==="waitingRecord"?S?_e[1]&128&&m(S,1):(S=cm(Q),S.c(),m(S,1),S.m(o.parentNode,o)):S&&(ce(),h(S,1,1,()=>{S=null}),fe()),Q[7]&&Q[22]?G?(G.p(Q,_e),_e[0]&4194432&&m(G,1)):(G=fm(Q),G.c(),m(G,1),G.m(l.parentNode,l)):G&&(ce(),h(G,1,1,()=>{G=null}),fe()),Q[31]&&Q[18]&&Q[19]?Y?(Y.p(Q,_e),_e[0]&786432|_e[1]&1&&m(Y,1)):(Y=dm(Q),Y.c(),m(Y,1),Y.m(r.parentNode,r)):Y&&(ce(),h(Y,1,1,()=>{Y=null}),fe()),Q[44]?J?(J.p(Q,_e),_e[1]&8192&&m(J,1)):(J=mm(Q),J.c(),m(J,1),J.m(s.parentNode,s)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),Q[49]?X?(X.p(Q,_e),_e[1]&262144&&m(X,1)):(X=pm(Q),X.c(),m(X,1),X.m(a.parentNode,a)):X&&(ce(),h(X,1,1,()=>{X=null}),fe()),Q[52]?R?(R.p(Q,_e),_e[1]&2097152&&m(R,1)):(R=hm(Q),R.c(),m(R,1),R.m(c.parentNode,c)):R&&(ce(),h(R,1,1,()=>{R=null}),fe()),Q[39]?Z?(Z.p(Q,_e),_e[1]&256&&m(Z,1)):(Z=bm(Q),Z.c(),m(Z,1),Z.m(f.parentNode,f)):Z&&(ce(),h(Z,1,1,()=>{Z=null}),fe()),Q[54].value!=="off"?B?(B.p(Q,_e),_e[1]&8388608&&m(B,1)):(B=_m(Q),B.c(),m(B,1),B.m(p.parentNode,p)):B&&(ce(),h(B,1,1,()=>{B=null}),fe()),Q[37]?j?(j.p(Q,_e),_e[1]&64&&m(j,1)):(j=gm(Q),j.c(),m(j,1),j.m(b.parentNode,b)):j&&(ce(),h(j,1,1,()=>{j=null}),fe()),Q[22]?Ie?(Ie.p(Q,_e),_e[0]&4194304&&m(Ie,1)):(Ie=vm(Q),Ie.c(),m(Ie,1),Ie.m(v.parentNode,v)):Ie&&(ce(),h(Ie,1,1,()=>{Ie=null}),fe());let He={};_e[1]&134217728&&(He.isLive=Q[58]),_e[1]&4096&&(He.isHidden=!Q[43]),_e[1]&268435456&&(He.isPlaying=Q[59]),_e[1]&33554432&&(He.position=Q[56]),_e[1]&536870912&&(He.duration=Q[60]),g.$set(He);let Ge={};_e[0]&2097152&&(Ge.supportLink=Q[21]),_e[1]&131072&&(Ge.returnFocus=Q[157]),_e[1]&4&&(Ge.visible=Q[33]),_e[1]&512&&(Ge.playerContainerRef=Q[40]),_e[1]&1024&&(Ge.controlsContainerRef=Q[41]),_e[1]&1073741824&&(Ge.position=Q[61]),!I&&_e[1]&2&&(I=!0,Ge.menuElementRef=Q[32],Ee(()=>I=!1)),C.$set(Ge),Q[42]?qe?_e[1]&2048&&m(qe,1):(qe=ym(Q),qe.c(),m(qe,1),qe.m($.parentNode,$)):qe&&(ce(),h(qe,1,1,()=>{qe=null}),fe()),Q[62]?Te?_e[2]&1&&m(Te,1):(Te=km(Q),Te.c(),m(Te,1),Te.m(ee.parentNode,ee)):Te&&(ce(),h(Te,1,1,()=>{Te=null}),fe()),Q[63]?he?_e[2]&2&&m(he,1):(he=wm(Q),he.c(),m(he,1),he.m(U.parentNode,U)):he&&(ce(),h(he,1,1,()=>{he=null}),fe())},i(Q){re||(m(e.$$.fragment,Q),m(ie),m(S),m(G),m(Y),m(J),m(X),m(R),m(Z),m(B),m(j),m(Ie),m(g.$$.fragment,Q),m(P.$$.fragment,Q),m(C.$$.fragment,Q),m(qe),m(Te),m(he),re=!0)},o(Q){h(e.$$.fragment,Q),h(ie),h(S),h(G),h(Y),h(J),h(X),h(R),h(Z),h(B),h(j),h(Ie),h(g.$$.fragment,Q),h(P.$$.fragment,Q),h(C.$$.fragment,Q),h(qe),h(Te),h(he),re=!1},d(Q){Q&&(y(t),y(n),y(o),y(l),y(r),y(s),y(a),y(c),y(f),y(p),y(b),y(v),y(w),y(M),y(E),y($),y(ee),y(U)),F(e,Q),ie&&ie.d(Q),S&&S.d(Q),G&&G.d(Q),Y&&Y.d(Q),J&&J.d(Q),X&&X.d(Q),R&&R.d(Q),Z&&Z.d(Q),B&&B.d(Q),j&&j.d(Q),Ie&&Ie.d(Q),F(g,Q),F(P,Q),F(C,Q),qe&&qe.d(Q),Te&&Te.d(Q),he&&he.d(Q)}}}function ev(i){let e,t,n,o,l=i[51],r,s,a,c,f=Cm(i);return{c(){e=T("div"),t=T("div"),o=N(),f.c(),r=Ye(),u(t,"class","video-container svelte-1o4wf3x"),u(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),V(t,"fast-rotate",!i[1].isSmoothVideoRotate),u(e,"class","video-wrapper svelte-1o4wf3x"),V(e,"hidden",i[38]!=="video"),V(e,"nocursor",i[45])},m(p,b){k(p,e,b),d(e,t),i[154](t),k(p,o,b),f.m(p,b),k(p,r,b),s=!0,a||(c=[de(e,"contextmenu",bt(i[108])),de(e,"mousedown",bt(i[113])),de(e,"mouseup",bt(i[114])),de(e,"click",bt(i[116])),de(e,"dblclick",bt(i[115]))],a=!0)},p(p,b){(!s||b[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&u(t,"style",n),(!s||b[0]&2)&&V(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!s||b[1]&128)&&V(e,"hidden",p[38]!=="video"),(!s||b[1]&16384)&&V(e,"nocursor",p[45]),b[1]&1048576&&q(l,l=p[51])?(ce(),h(f,1,1,L),fe(),f=Cm(p),f.c(),m(f,1),f.m(r.parentNode,r)):f.p(p,b)},i(p){s||(m(f),s=!0)},o(p){h(f),s=!1},d(p){p&&(y(e),y(o),y(r)),i[154](null),f.d(p),a=!1,xe(c)}}}function tv(i){let e,t,n,o,l,r,s,a={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[ev]},$$scope:{ctx:i}};return t=new Gf({props:a}),i[159](t),{c(){e=T("div"),H(t.$$.fragment),n=N(),o=T("div"),u(o,"class","overlay-container"),u(e,"class","player-wrapper svelte-1o4wf3x")},m(c,f){k(c,e,f),O(t,e,null),d(e,n),d(e,o),i[160](o),i[161](e),l=!0,r||(s=[de(Jg,"blur",i[107]),de(e,"mouseenter",i[109]),de(e,"mouseleave",i[111]),de(e,"mousemove",i[112]),de(e,"click",i[120],!0),de(e,"focusin",i[110],!0)],r=!0)},p(c,f){let p={};f[1]&128&&(p.isAds=c[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=c[47]?c[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&1&&(p.$$scope={dirty:f,ctx:c}),t.$set(p)},i(c){l||(m(t.$$.fragment,c),l=!0)},o(c){h(t.$$.fragment,c),l=!1},d(c){c&&y(e),i[159](null),F(t),i[160](null),i[161](null),r=!1,xe(s)}}}var Pm=!0;function qu(i){return i?i.offsetTop+qu(i.offsetParent):0}function Tm(i){return i?i.offsetLeft+Tm(i.offsetParent):0}function iv(i,e,t){let n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,G,Y,J,X,R,Z,B,j,Ie,De,Le,qe,Te,he,Q,_e,Ae,He,Ge,{store:be}=e,{uiConfig:Ce}=e,{title:Be}=e,{thumbUrl:Ze}=e,{videoContainer:le}=e,{interactiveContainer:oe}=e,{live:ye}=e,{autoplay:ue}=e,{canRewindLive:ke}=e,{showAds:ze}=e,{adsSlotId:$e=void 0}=e,{adsParams:nt=void 0}=e,{adsPreviewParam:et=void 0}=e,{duration:ge=void 0}=e,{logoClickable:Ke}=e,{logoHidden:lt}=e,{logoTargetUrl:ut=""}=e,{showNextPrevButtons:pt=!1}=e,{nextButtonActive:St=!1}=e,{prevButtonActive:Re=!1}=e,{endScreenVideoTitle:zt=void 0}=e,{endScreenVideoThumb:At=void 0}=e,{isOneVideoPlaylist:pe=!1}=e,{supportLink:wt}=e,{outerContainerRef:Oe=void 0}=e,{playerStarted:ot=!1}=e,{fullScreenTarget:st=void 0}=e,{showMiniTimer:ct=!1}=e,{playNextVideo:Ut=es.noop}=e,{playPrevVideo:mi=es.noop}=e,{repeatPlaylist:pi=es.noop}=e,{seekToInteractive:Ki}=e,{toggleGraph:en}=e,{playPrevChapter:ti}=e,{firstStart:ii}=e,hi=be.getLogger().createComponentLog("Root component"),qt=be.interfaceLanguage$;D(i,qt,_=>t(51,B=_));let ni=be.state.playbackState$;D(i,ni,_=>t(151,X=_));let Wi=be.ads.playbackState;D(i,Wi,_=>t(152,R=_));let bi=be.state.positionWithScrubbing$;D(i,bi,_=>t(56,qe=_));let _i=be.state.duration$;D(i,_i,_=>t(60,_e=_));let oi=be.playerPhase;D(i,oi,_=>t(38,ie=_));let gi=be.ui.isFullscreen;D(i,gi,_=>t(141,g=_));let ri=be.ui.controlsVisible;D(i,ri,_=>t(36,E=_));let vi=be.ui.settingsMenuVisible;D(i,vi,_=>t(139,a=_));let yi=be.ui.scrubbingInProgress;D(i,yi,_=>t(143,C=_));let kt=be.ui.contextMenu.visible$;D(i,kt,_=>t(33,n=_));let Bt=be.ui.debugPanelVisible;D(i,Bt,_=>t(63,Ge=_));let Kt=be.state.isLoaderVisible;D(i,Kt,_=>t(153,Z=_));let li=be.state.isEnded$;D(i,li,_=>t(140,f=_));let Vt=be.state.chromecastConnected$;D(i,Vt,_=>t(39,Y=_));let si=be.state.chromecastDeviceName$;D(i,si,_=>t(53,Ie=_));let Wt=be.ads.postrollPassed;D(i,Wt,_=>t(146,U=_));let Xt=be.state.isLive$;D(i,Xt,_=>t(58,he=_));let Pt=be.state.isPlaying$;D(i,Pt,_=>t(59,Q=_));let Tt=be.state.crashed$;D(i,Tt,_=>t(37,ee=_));let Rt=be.webApi.pictureInPictureApi,Zt=be.state.currentSubtitle$;D(i,Zt,_=>t(54,De=_));let ai=be.state.currentSubtitleCaptions$;D(i,ai,_=>t(55,Le=_));let ln=be.state.duration$;D(i,ln,_=>t(57,Te=_));let Zi=be.state.graphIsOpened$;D(i,Zi,_=>t(147,re=_));let jt=be.ui.playerSize;D(i,jt,_=>t(34,b=_));let Jt=be.ui.is3DVideo;D(i,Jt,_=>t(49,p=_));let ki=be.ui.icon3DVideoVisible;D(i,ki,_=>t(52,j=_));let Li=be.ui.rotateAlpha;D(i,Li,_=>t(35,M=_));let Nt=be.state.isInteractive,ht=be.state.isInteractiveTime$;D(i,ht,_=>t(144,I=_));let wi=be.state.isInteractiveExpectation$;D(i,wi,_=>t(150,J=_));let ji=be.state.hasInteractiveBranches,$t=be.ui.touched;D(i,$t,_=>t(148,S=_));let Gi=be.ui.modals.hotKeyMap.data;D(i,Gi,_=>t(168,c=_));let ui=be.ui.modals.hotKeyMap.show;D(i,ui,_=>t(62,He=_));let tn=be.ui.overlayContainer$,xi=be.ui.controls.interactiveTimeIndicator;D(i,xi,_=>t(169,v=_));let nn=be.state.showInteractiveTimeIndicator,Bi=be.ui.contextMenu.position$;D(i,Bi,_=>t(61,Ae=_));let Ci=be.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Dt}=kn();D(i,Dt,_=>t(142,P=_));let Gt,ci,Ri,Ni,fi;Gi.set(af());let Si,Pi,Ue=Pe(!1);D(i,Ue,_=>t(50,w=_));let Di,Lt=Pe(!1);D(i,Lt,_=>t(149,G=_));let Ve=Pe(),Ti=Pe(!1);D(i,Ti,_=>t(145,$=_));let Qi=!1,Oi=!1,Ii,on,Ei,Yi,Ot,Xi,ei=!1,se,it=!1,{toggle:Ft}=Dt,xt=!1,Mi=null,Ai;Rt?.setContext(mr());let bn=()=>{ue&&!Nt&&It(Ce.controls.hideTimeout)};be.setUiCallbacks({onStarted:bn});let _n=()=>{window.clearTimeout(Ri),Lt.set(!1)},un=()=>{window.clearTimeout(Ni),Ve.set(null)},It=_=>{_n(),Lt.set(!0),Ri=window.setTimeout(()=>Lt.set(!1),_);let ae=_-100;Di=window.setTimeout(()=>{w&&Ue.set(!1)},ae>0?ae:_)},Ln=(_,ae)=>{un(),Ve.set(ae),Ni=window.setTimeout(()=>Ve.set(null),_)},Bn=Jt.subscribe(_=>{ki.set(_),_&&(window.clearTimeout(fi),fi=window.setTimeout(()=>ki.set(!1),Ce.controls.hide360IconTimeout))}),gn=async()=>{let _=to();if(_){It(Ce.controls.hideTimeoutFullscreen);try{await Rt?.remove()}catch(ae){hi({message:String(ae)})}}gi.set(_),be.getAdmanWrapper().setFullscreen(_),g?be.callbacks?.onFullscreenEnter?.():be.callbacks?.onFullscreenExit?.()},Pn=_=>{let ae=_;jt.set({width:ae.target.width,height:ae.target.height})};gt(()=>(el(gn),Po(Rt)&&(Rt?.assignPlayerContainer(Gt),Rt?.registryExternalEventHandlers({resize:Pn})),oe&&le.parentElement?.insertBefore(oe,le.nextSibling),()=>{window.clearTimeout(Ri),window.clearTimeout(Di),window.clearTimeout(Ni),window.clearTimeout(fi),Bn(),Rt?.dispose(),tl(gn)}));let cn=async()=>{if(to())await $r(document),hi({message:"exit fullscreen"});else{hi({message:"request fullscreen"});let _=Oe??Gt,ae=_.getRootNode(),we=ae instanceof ShadowRoot?ae.host:ae,Ne=st instanceof HTMLElement&&st.contains(we),Xe=Ce.allowChangingFullscreenTarget&&st&&Ne?st:_;await Jr(Xe)}},sn=()=>{Ci(),kt.set(!1)},ne=_=>{kt.set(!0),Bi.set({left:_.clientX,top:_.clientY})};function mt(){Ti.set(!0),Nt||It(Ce.controls.hideTimeoutCursor)}function Tn(){Nt||(Ue.set(!0),It(Ce.controls.hideTimeoutCursor))}function Rn(){Ti.set(!1),t(131,Oi=!1),t(130,Qi=!1),xt=!1,be.actions.internal.releaseCamera()}function Nn(_){if(v&&nn){let ae=_.currentTarget,we=qu(ae),Ne=Tm(ae),Xe=_.pageX-Ne,Ht=_.pageY-we,{left:Qt,bottom:Et,right:dn}=v,In=dn-Qt;return Xe>=Qt-In&&Ht<=Et+In}}function jn(_){if(Gt){let ae=qu(_.currentTarget),we=b.height,Ne=_.pageY-ae;if(Nn(_)){t(131,Oi=!1);return}Ne<40?t(131,Oi=!0):Ne>we-40?t(130,Qi=!0):(t(131,Oi=!1),a||t(130,Qi=!1))}}function Gn(_){jn(_),on||It(Ce.controls.hideTimeoutCursor),p&&xt&&Mi&&be.actions.internal.moveCameraFocusPX(Mi.clientX-_.clientX,Mi.clientY-_.clientY,_.timeStamp-Mi.timeStamp),Mi=_}let xn=_=>{_.button===0&&(xt=!0,be.actions.internal.holdCamera()),It(Ce.controls.hideTimeoutCursor)},Qn=_=>{_.button===0&&(Mi=_,xt=!1,be.actions.internal.releaseCamera()),It(Ce.controls.hideTimeoutCursor)},Yn=()=>{Pm&&(hi({message:"double click on video"}),cn(),It(Ce.controls.hideTimeoutCursor))},uo=()=>{if(n||a){sn();return}if(!(f&&!ji)){if(it)return Ft();if(Ai?.focus(),!ot){ii(),It(Ce.controls.hideTimeoutCursor);return}be.actions.internal.togglePlay(),It(Ce.controls.hideTimeoutCursor)}},te=_=>{sn(),$t.set(!0),It(Ce.controls.hideTimeout),_&&Ln(Ce.controls.hideHotKeyHelpers,_)},fn=()=>{sn(),be.callbacks?.onOpenHotKeyMap?be.callbacks?.onOpenHotKeyMap(c):ui.update(_=>!_)},co=()=>{if(n||a){sn();return}},fo=()=>{$t.set(!0)},Xn=be.ui.contextMenu.openedByBtnKeyboard$;D(i,Xn,_=>t(138,s=_));let Lo=be.ui.contextMenu.btnRef$;D(i,Lo,_=>t(137,r=_));let Dn,Jn=be.ui.contextMenu.openedByHotKey$;D(i,Jn,_=>t(136,l=_));let Bo=be.ui.contextMenu.lastActiveElem$;D(i,Bo,_=>t(135,o=_));function Ro(_){me[_?"unshift":"push"](()=>{le=_,t(0,le)})}let cr=()=>Ai?.focus();function Un(_){ci=_,t(41,ci)}let mo=()=>Ai?.focus();function po(_){Dn=_,t(32,Dn)}function No(_){me[_?"unshift":"push"](()=>{Ai=_,t(48,Ai)})}function ho(_){me[_?"unshift":"push"](()=>{Pi=_,t(30,Pi)})}function at(_){me[_?"unshift":"push"](()=>{Gt=_,t(40,Gt)})}return i.$$set=_=>{"store"in _&&t(125,be=_.store),"uiConfig"in _&&t(1,Ce=_.uiConfig),"title"in _&&t(2,Be=_.title),"thumbUrl"in _&&t(3,Ze=_.thumbUrl),"videoContainer"in _&&t(0,le=_.videoContainer),"interactiveContainer"in _&&t(126,oe=_.interactiveContainer),"live"in _&&t(4,ye=_.live),"autoplay"in _&&t(5,ue=_.autoplay),"canRewindLive"in _&&t(6,ke=_.canRewindLive),"showAds"in _&&t(7,ze=_.showAds),"adsSlotId"in _&&t(8,$e=_.adsSlotId),"adsParams"in _&&t(9,nt=_.adsParams),"adsPreviewParam"in _&&t(10,et=_.adsPreviewParam),"duration"in _&&t(11,ge=_.duration),"logoClickable"in _&&t(12,Ke=_.logoClickable),"logoHidden"in _&&t(13,lt=_.logoHidden),"logoTargetUrl"in _&&t(14,ut=_.logoTargetUrl),"showNextPrevButtons"in _&&t(15,pt=_.showNextPrevButtons),"nextButtonActive"in _&&t(16,St=_.nextButtonActive),"prevButtonActive"in _&&t(17,Re=_.prevButtonActive),"endScreenVideoTitle"in _&&t(18,zt=_.endScreenVideoTitle),"endScreenVideoThumb"in _&&t(19,At=_.endScreenVideoThumb),"isOneVideoPlaylist"in _&&t(20,pe=_.isOneVideoPlaylist),"supportLink"in _&&t(21,wt=_.supportLink),"outerContainerRef"in _&&t(127,Oe=_.outerContainerRef),"playerStarted"in _&&t(22,ot=_.playerStarted),"fullScreenTarget"in _&&t(128,st=_.fullScreenTarget),"showMiniTimer"in _&&t(129,ct=_.showMiniTimer),"playNextVideo"in _&&t(23,Ut=_.playNextVideo),"playPrevVideo"in _&&t(24,mi=_.playPrevVideo),"repeatPlaylist"in _&&t(25,pi=_.repeatPlaylist),"seekToInteractive"in _&&t(26,Ki=_.seekToInteractive),"toggleGraph"in _&&t(27,en=_.toggleGraph),"playPrevChapter"in _&&t(28,ti=_.playPrevChapter),"firstStart"in _&&t(29,ii=_.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Si=(ie==="video"&&Z||ie==="ads"&&R==="inactive")&&!ee);if(i.$$.dirty[0]&1073741824)e:tn.set(Pi);if(i.$$.dirty[4]&134217728)e:t(132,Ii=X!==Sm.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,on=I&&!a&&!(Qi||Oi)&&!(Ii&&!J));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:ri.set((Ii||a||C||Y||G)&&!on&&(ie==="video"||ie==="ads")&&!ee);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,Ei=Ce.features.thumbTimer&&ct&&ie==="video"&&!E&&!ee&&!Nt&&(Ce.hideThumbTimerAfterTouch&&!S||!Ce.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,Yi=ie==="video"&&!re&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,Ot=(ze&&U||!ze)&&f&&!ee);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,Xi=$&&!(E||Ot)&&!I);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!C&&ei&&!I&&It(Ce.controls.hideTimeoutCursor),t(134,ei=C);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,se=le&&M%180?b.height/b.width:1);if(i.$$.dirty[4]&262144)e:t(47,it=P!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:Eo(Dn,n,s);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let _=r;_&&Qo(_,n,Xn)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Eo(Dn,n,l);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let _=o;_&&yf(_,n,Jn)}},[le,Ce,Be,Ze,ye,ue,ke,ze,$e,nt,et,ge,Ke,lt,ut,pt,St,Re,zt,At,pe,wt,ot,Ut,mi,pi,Ki,en,ti,ii,Pi,Ot,Dn,n,b,M,E,ee,ie,Y,Gt,ci,Si,Ei,Yi,Xi,se,it,Ai,p,w,B,j,Ie,De,Le,qe,Te,he,Q,_e,Ae,He,Ge,qt,ni,Wi,bi,_i,oi,gi,ri,vi,yi,kt,Bt,Kt,li,Vt,si,Wt,Xt,Pt,Tt,Zt,ai,ln,Zi,jt,Jt,ki,Li,Nt,ht,wi,$t,Gi,ui,xi,Bi,Dt,Ue,Lt,Ve,Ti,Ft,cn,sn,ne,mt,Tn,Rn,Gn,xn,Qn,Yn,uo,te,fn,co,fo,Xn,Lo,Jn,Bo,be,oe,Oe,st,ct,Qi,Oi,Ii,on,ei,o,l,r,s,a,f,g,P,C,I,$,U,re,S,G,J,X,R,Z,Ro,cr,Un,mo,po,No,ho,at]}var Ku=class extends K{constructor(e){super(),W(this,e,iv,tv,q,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:127,playerStarted:22,fullScreenTarget:128,showMiniTimer:129,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},$g,[-1,-1,-1,-1,-1,-1,-1])}},Im=Ku;var jm=require("@vkontakte/videoplayer-core"),Vo=require("@vkontakte/videoplayer-shared");var or=require("@vkontakte/videoplayer-shared"),Em=i=>{if(!(0,or.isIOS)(!0))return!1;let e=i.device===or.CurrentClientDevice.iPad||window?.screen.width>700,t=(0,or.getIOSVersion)();return!e||e&&!!t&&t<16};function nv(i){ve(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Mm(i){let e,t,n,o,l,r,s,a,c,f,p,b,v,g,w,P=z("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",M;return{c(){e=T("div"),n=N(),o=T("div"),l=T("div"),r=T("div"),a=N(),c=T("div"),p=N(),b=T("div"),g=N(),w=T("p"),M=Se(P),u(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),u(r,"class",s="triangle "+i[0]+" svelte-nhq2ld"),u(c,"class",f="triangle "+i[0]+" svelte-nhq2ld"),u(b,"class",v="triangle "+i[0]+" svelte-nhq2ld"),u(l,"class","triangles-wrapper svelte-nhq2ld"),u(w,"class","step-caption svelte-nhq2ld"),u(o,"class","info svelte-nhq2ld")},m(C,I){k(C,e,I),k(C,n,I),k(C,o,I),d(o,l),d(l,r),d(l,a),d(l,c),d(l,p),d(l,b),d(o,g),d(o,w),d(w,M)},p(C,I){I&1&&t!==(t="semicircle "+C[0]+" svelte-nhq2ld")&&u(e,"class",t),I&1&&s!==(s="triangle "+C[0]+" svelte-nhq2ld")&&u(r,"class",s),I&1&&f!==(f="triangle "+C[0]+" svelte-nhq2ld")&&u(c,"class",f),I&1&&v!==(v="triangle "+C[0]+" svelte-nhq2ld")&&u(b,"class",v),I&2&&P!==(P=z("doubletap_seek_step",{seconds:C[1].toFixed(0)})+"")&&Fe(M,P)},d(C){C&&(y(e),y(n),y(o))}}}function ov(i){let e,t,n,o,l=i[2]&&Mm(i);return{c(){e=T("div"),l&&l.c(),u(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,s){k(r,e,s),l&&l.m(e,null),n||(o=de(e,"click",Je(i[3]())),n=!0)},p(r,[s]){r[2]?l?l.p(r,s):(l=Mm(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),s&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&u(e,"class",t)},i:L,o:L,d(r){r&&y(e),l&&l.d(),n=!1,o()}}}function rv(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,s=!1,a=0,c=0,f=()=>{let b=0;return()=>{b+=1,b===1?a=window.setTimeout(()=>{l(),b=0},300):(window.clearTimeout(a),b=0,r(),t(2,s=!0),c=window.setTimeout(()=>{t(2,s=!1)},500))}};return Mn(()=>{window.clearTimeout(a),window.clearTimeout(c)}),i.$$set=p=>{"side"in p&&t(0,n=p.side),"seekStep"in p&&t(1,o=p.seekStep),"handleSingleFirstClick"in p&&t(4,l=p.handleSingleFirstClick),"handleSecondClick"in p&&t(5,r=p.handleSecondClick)},[n,o,s,f,l,r]}var Wu=class extends K{constructor(e){super(),W(this,e,rv,ov,q,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},nv)}},Zu=Wu;function lv(i,e,t){let{playNextVideo:n}=e;return gt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var ju=class extends K{constructor(e){super(),W(this,e,lv,null,q,{playNextVideo:0})}},Am=ju;var{window:sv}=bo;function av(i){ve(i,"svelte-1jy89ut",".player-wrapper.svelte-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.svelte-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.svelte-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1jy89ut,.video-container.svelte-1jy89ut,.ads-container.svelte-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1jy89ut{transition:none}.ads-container.svelte-1jy89ut{background:var(--black)}")}function Vm(i){let e,t,n,o;e=new Zu({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let l=!i[48]&&Lm(i);return{c(){H(e.$$.fragment),t=N(),l&&l.c(),n=Ye()},m(r,s){O(e,r,s),k(r,t,s),l&&l.m(r,s),k(r,n,s),o=!0},p(r,s){let a={};s[0]&2&&(a.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(a),r[48]?l&&(ce(),h(l,1,1,()=>{l=null}),fe()):l?(l.p(r,s),s[1]&131072&&m(l,1)):(l=Lm(r),l.c(),m(l,1),l.m(n.parentNode,n))},i(r){o||(m(e.$$.fragment,r),m(l),o=!0)},o(r){h(e.$$.fragment,r),h(l),o=!1},d(r){r&&(y(t),y(n)),F(e,r),l&&l.d(r)}}}function Lm(i){let e,t;return e=new Zu({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Bm(i){let e,t;return e=new Jl({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Rm(i){let e,t;return e=new $l({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Nm(i){let e,t,n;return t=new il({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","ads-container svelte-1jy89ut"),V(e,"hidden",i[34]!=="ads")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&8)&&V(e,"hidden",o[34]!=="ads")},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function Dm(i){let e,t;return e=new Am({props:{playNextVideo:i[22]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Om(i){let e,t;return e=new Gl({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Fm(i){let e,t,n;return t=new Gr({props:{ariaLabel:z("video360")}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p:L,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function Hm(i){let e,t;return e=new Ql({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&1048576&&(l.chromecastDeviceName=n[51]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function zm(i){let e,t;return e=new xl({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&4194304&&(l.captions=n[53]),o[1]&8192&&(l.position=n[44]),o[1]&1&&(l.playerSize=n[31]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Um(i){let e,t,n,o,l;return t=new Yl({}),{c(){e=T("div"),H(t.$$.fragment)},m(r,s){k(r,e,s),O(t,e,null),n=!0,o||(l=de(e,"click",Je(i[101])),o=!0)},p:L,i(r){n||(m(t.$$.fragment,r),n=!0)},o(r){h(t.$$.fragment,r),n=!1},d(r){r&&y(e),F(t),o=!1,l()}}}function qm(i){let e,t,n;function o(r){i[132](r)}let l={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[54]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[37]!==void 0&&(l.controlsElementRef=i[37]),e=new jl({props:l}),me.push(()=>Me(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[1]&8&&(a.bottomHidden=r[34]==="thumb"||r[34]==="waitingLive"||r[34]==="waitingRecord"||r[34]==="ads"),s[0]&1073741824&&(a.showControls=r[30]),s[1]&16384&&(a.bottomNoSmooth=r[45]),s[1]&8&&(a.isAds=r[34]==="ads"),s[0]&32|s[1]&8388608&&(a.canRewindLive=r[5]&&r[54]!==0),s[0]&2048&&(a.logoClickable=r[11]),s[0]&4096&&(a.logoHidden=r[12]),s[0]&8192&&(a.logoTargetUrl=r[13]),s[0]&16384&&(a.showNextPrevButtons=r[14]),s[0]&32768&&(a.nextButtonActive=r[15]),s[0]&65536&&(a.prevButtonActive=r[16]),s[0]&524288&&(a.isOneVideoPlaylist=r[19]),s[0]&1048576&&(a.supportLink=r[20]),s[1]&256&&(a.customFullscreenSupported=r[39]),s[0]&4194304&&(a.playNextVideo=r[22]),s[0]&8388608&&(a.playPrevVideo=r[23]),s[0]&16777216&&(a.repeatPlaylist=r[24]),s[0]&33554432&&(a.seekToInteractive=r[25]),s[0]&67108864&&(a.toggleGraph=r[26]),s[0]&134217728&&(a.playPrevChapter=r[27]),!t&&s[1]&64&&(t=!0,a.controlsElementRef=r[37],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function Km(i){let e,t;return e=new fl({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Wm(i){let e,t;return e=new al({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Zm(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I;e=new Xl({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let E=n&&Vm(i),$=i[34]==="waitingLive"&&Bm(i),ee=i[34]==="waitingRecord"&&Rm(i),U=i[6]&&i[21]&&Nm(i),re=i[41]&&i[17]&&i[18]&&Dm(i),ie=i[49]&&Om(i),S=i[50]&&Fm(i),G=i[35]&&Hm(i),Y=i[52].value!=="off"&&zm(i),J=i[33]&&Um(i),X=i[21]&&qm(i);w=new ol({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let R=i[38]&&Km(i),Z=i[57]&&Wm(i);return{c(){H(e.$$.fragment),t=N(),E&&E.c(),o=N(),$&&$.c(),l=N(),ee&&ee.c(),r=N(),U&&U.c(),s=N(),re&&re.c(),a=N(),ie&&ie.c(),c=N(),S&&S.c(),f=N(),G&&G.c(),p=N(),Y&&Y.c(),b=N(),J&&J.c(),v=N(),X&&X.c(),g=N(),H(w.$$.fragment),P=N(),R&&R.c(),M=N(),Z&&Z.c(),C=Ye()},m(B,j){O(e,B,j),k(B,t,j),E&&E.m(B,j),k(B,o,j),$&&$.m(B,j),k(B,l,j),ee&&ee.m(B,j),k(B,r,j),U&&U.m(B,j),k(B,s,j),re&&re.m(B,j),k(B,a,j),ie&&ie.m(B,j),k(B,c,j),S&&S.m(B,j),k(B,f,j),G&&G.m(B,j),k(B,p,j),Y&&Y.m(B,j),k(B,b,j),J&&J.m(B,j),k(B,v,j),X&&X.m(B,j),k(B,g,j),O(w,B,j),k(B,P,j),R&&R.m(B,j),k(B,M,j),Z&&Z.m(B,j),k(B,C,j),I=!0},p(B,j){let Ie={};j[0]&16|j[1]&12&&(Ie.hidden=B[34]!=="thumb"||B[33]||B[89]&&B[4]),j[0]&4&&(Ie.thumbUrl=B[2]),j[0]&268435456&&(Ie.startVideo=B[28]),e.$set(Ie),j[0]&32|j[1]&65536&&(n=B[5]&&B[78]&&!B[47].has("TIMELINE")),n?E?(E.p(B,j),j[0]&32|j[1]&65536&&m(E,1)):(E=Vm(B),E.c(),m(E,1),E.m(o.parentNode,o)):E&&(ce(),h(E,1,1,()=>{E=null}),fe()),B[34]==="waitingLive"?$?($.p(B,j),j[1]&8&&m($,1)):($=Bm(B),$.c(),m($,1),$.m(l.parentNode,l)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),B[34]==="waitingRecord"?ee?j[1]&8&&m(ee,1):(ee=Rm(B),ee.c(),m(ee,1),ee.m(r.parentNode,r)):ee&&(ce(),h(ee,1,1,()=>{ee=null}),fe()),B[6]&&B[21]?U?(U.p(B,j),j[0]&2097216&&m(U,1)):(U=Nm(B),U.c(),m(U,1),U.m(s.parentNode,s)):U&&(ce(),h(U,1,1,()=>{U=null}),fe()),B[41]&&B[17]&&B[18]?re?(re.p(B,j),j[0]&393216|j[1]&1024&&m(re,1)):(re=Dm(B),re.c(),m(re,1),re.m(a.parentNode,a)):re&&(ce(),h(re,1,1,()=>{re=null}),fe()),B[49]?ie?j[1]&262144&&m(ie,1):(ie=Om(B),ie.c(),m(ie,1),ie.m(c.parentNode,c)):ie&&(ce(),h(ie,1,1,()=>{ie=null}),fe()),B[50]?S?(S.p(B,j),j[1]&524288&&m(S,1)):(S=Fm(B),S.c(),m(S,1),S.m(f.parentNode,f)):S&&(ce(),h(S,1,1,()=>{S=null}),fe()),B[35]?G?(G.p(B,j),j[1]&16&&m(G,1)):(G=Hm(B),G.c(),m(G,1),G.m(p.parentNode,p)):G&&(ce(),h(G,1,1,()=>{G=null}),fe()),B[52].value!=="off"?Y?(Y.p(B,j),j[1]&2097152&&m(Y,1)):(Y=zm(B),Y.c(),m(Y,1),Y.m(b.parentNode,b)):Y&&(ce(),h(Y,1,1,()=>{Y=null}),fe()),B[33]?J?(J.p(B,j),j[1]&4&&m(J,1)):(J=Um(B),J.c(),m(J,1),J.m(v.parentNode,v)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),B[21]?X?(X.p(B,j),j[0]&2097152&&m(X,1)):(X=qm(B),X.c(),m(X,1),X.m(g.parentNode,g)):X&&(ce(),h(X,1,1,()=>{X=null}),fe());let De={};j[1]&16777216&&(De.isLive=B[55]),j[1]&512&&(De.isHidden=!B[40]),j[1]&33554432&&(De.isPlaying=B[56]),j[1]&8192&&(De.position=B[44]),j[1]&4096&&(De.duration=B[43]),w.$set(De),B[38]?R?j[1]&128&&m(R,1):(R=Km(B),R.c(),m(R,1),R.m(M.parentNode,M)):R&&(ce(),h(R,1,1,()=>{R=null}),fe()),B[57]?Z?j[1]&67108864&&m(Z,1):(Z=Wm(B),Z.c(),m(Z,1),Z.m(C.parentNode,C)):Z&&(ce(),h(Z,1,1,()=>{Z=null}),fe())},i(B){I||(m(e.$$.fragment,B),m(E),m($),m(ee),m(U),m(re),m(ie),m(S),m(G),m(Y),m(J),m(X),m(w.$$.fragment,B),m(R),m(Z),I=!0)},o(B){h(e.$$.fragment,B),h(E),h($),h(ee),h(U),h(re),h(ie),h(S),h(G),h(Y),h(J),h(X),h(w.$$.fragment,B),h(R),h(Z),I=!1},d(B){B&&(y(t),y(o),y(l),y(r),y(s),y(a),y(c),y(f),y(p),y(b),y(v),y(g),y(P),y(M),y(C)),F(e,B),E&&E.d(B),$&&$.d(B),ee&&ee.d(B),U&&U.d(B),re&&re.d(B),ie&&ie.d(B),S&&S.d(B),G&&G.d(B),Y&&Y.d(B),J&&J.d(B),X&&X.d(B),F(w,B),R&&R.d(B),Z&&Z.d(B)}}}function uv(i){let e,t,n,o,l,r=i[46],s,a,c,f,p,b,v=Zm(i);return{c(){e=T("div"),t=T("div"),n=T("div"),l=N(),v.c(),s=N(),a=T("div"),u(n,"class","video-container svelte-1jy89ut"),u(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),V(n,"fast-rotate",!i[1].isSmoothVideoRotate),u(t,"class","video-wrapper svelte-1jy89ut"),V(t,"hidden",i[34]!=="video"),u(a,"class","overlay-container"),u(e,"class","player-wrapper svelte-1jy89ut"),u(e,"role","region"),u(e,"aria-label",c=z("aria_label_video_player")),u(e,"tabindex","-1")},m(g,w){k(g,e,w),d(e,t),d(t,n),i[129](n),d(e,l),v.m(e,null),d(e,s),d(e,a),i[133](a),i[134](e),f=!0,p||(b=[de(sv,"blur",i[99]),de(t,"click",bt(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],p=!0)},p(g,w){(!f||w[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&u(n,"style",o),(!f||w[0]&2)&&V(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||w[1]&8)&&V(t,"hidden",g[34]!=="video"),w[1]&32768&&q(r,r=g[46])?(ce(),h(v,1,1,L),fe(),v=Zm(g),v.c(),m(v,1),v.m(e,s)):v.p(g,w)},i(g){f||(m(v),f=!0)},o(g){h(v),f=!1},d(g){g&&y(e),i[129](null),v.d(g),i[133](null),i[134](null),p=!1,xe(b)}}}function cv(i,e,t){let n,o,l,r,s,a,c,f,p,b,v,g,w,P,M,C,I,E,$,ee,U,re,ie,S,G,Y,J,X,R,Z,B,j,Ie,De,Le,qe,Te,{store:he}=e,{uiConfig:Q}=e,{thumbUrl:_e}=e,{videoContainer:Ae}=e,{interactiveContainer:He}=e,{live:Ge}=e,{autoplay:be}=e,{canRewindLive:Ce}=e,{showAds:Be}=e,{adsSlotId:Ze=void 0}=e,{adsParams:le=void 0}=e,{adsPreviewParam:oe=void 0}=e,{duration:ye=void 0}=e,{logoClickable:ue}=e,{logoHidden:ke}=e,{logoTargetUrl:ze=""}=e,{showNextPrevButtons:$e=!1}=e,{nextButtonActive:nt=!1}=e,{prevButtonActive:et=!1}=e,{endScreenVideoTitle:ge=void 0}=e,{endScreenVideoThumb:Ke=void 0}=e,{isOneVideoPlaylist:lt=!1}=e,{supportLink:ut}=e,{outerContainerRef:pt=void 0}=e,{showMiniTimer:St=!1}=e,{fullScreenTarget:Re=void 0}=e,{playerStarted:zt=!1}=e,{playNextVideo:At=Vo.noop}=e,{playPrevVideo:pe=Vo.noop}=e,{repeatPlaylist:wt=Vo.noop}=e,{seekToInteractive:Oe}=e,{toggleGraph:ot}=e,{playPrevChapter:st}=e,{firstStart:ct}=e,{seekTime:Ut}=e,mi=he.getLogger().createComponentLog("Root component"),pi=he.interfaceLanguage$;D(i,pi,ne=>t(46,Y=ne));let Ki=he.state.playbackState$;D(i,Ki,ne=>t(126,ie=ne));let en=he.ads.playbackState;D(i,en,ne=>t(127,S=ne));let ti=he.state.positionWithScrubbing$;D(i,ti,ne=>t(44,s=ne));let ii=he.state.duration$;D(i,ii,ne=>t(43,r=ne));let hi=he.playerPhase;D(i,hi,ne=>t(34,$=ne));let qt=he.ui.isFullscreen;D(i,qt,ne=>t(141,c=ne));let ni=he.ui.controlsVisible;D(i,ni,ne=>t(30,o=ne));let Wi=he.ui.interactiveHideMobileControls;D(i,Wi,ne=>t(118,v=ne));let bi=he.ui.settingsMenuVisible;D(i,bi,ne=>t(117,n=ne));let _i=he.ui.scrubbingInProgress;D(i,_i,ne=>t(119,w=ne));let oi=he.ui.debugPanelVisible;D(i,oi,ne=>t(57,Te=ne));let gi=he.state.isLoaderVisible;D(i,gi,ne=>t(128,G=ne));let ri=he.state.isEnded$;D(i,ri,ne=>t(121,C=ne));let vi=he.state.chromecastConnected$;D(i,vi,ne=>t(35,ee=ne));let yi=he.state.chromecastDeviceName$;D(i,yi,ne=>t(51,B=ne));let kt=he.ads.postrollPassed;D(i,kt,ne=>t(122,I=ne));let Bt=he.ui.mobileUnmuteButtonExpanded,Kt=he.ui.mobileUnmuteButtonVisible,li=he.state.isLive$;D(i,li,ne=>t(55,Le=ne));let Vt=he.state.isPlaying$;D(i,Vt,ne=>t(56,qe=ne));let si=he.state.isActiveLive$;D(i,si,ne=>t(48,X=ne));let Wt=he.state.isRewindableLive$,Xt=he.state.crashed$;D(i,Xt,ne=>t(33,M=ne));let Pt=he.webApi.pictureInPictureApi,Tt=he.state.videoSize$;D(i,Tt,ne=>t(142,p=ne));let Rt=he.state.currentSubtitle$;D(i,Rt,ne=>t(52,j=ne));let Zt=he.state.currentSubtitleCaptions$;D(i,Zt,ne=>t(53,Ie=ne));let ai=he.state.duration$;D(i,ai,ne=>t(54,De=ne));let ln=he.state.graphIsOpened$;D(i,ln,ne=>t(125,re=ne));let Zi=he.ui.playerSize;D(i,Zi,ne=>t(31,f=ne));let jt=he.ui.is3DVideo;D(i,jt,ne=>t(49,R=ne));let Jt=he.ui.icon3DVideoVisible;D(i,Jt,ne=>t(50,Z=ne));let ki=he.ui.rotateAlpha;D(i,ki,ne=>t(32,g=ne));let Li=he.state.isInteractive,Nt=he.state.isInteractiveTime$;D(i,Nt,ne=>t(120,P=ne));let ht=he.state.isInteractiveExpectation$;D(i,ht,ne=>t(124,U=ne));let wi=he.state.hasInteractiveBranches,ji=he.ui.controls.disabledControls$;D(i,ji,ne=>t(47,J=ne));let $t=he.ui.touched;D(i,$t,ne=>t(123,E=ne));let Gi=he.ui.clientInfo$;D(i,Gi,ne=>t(140,a=ne));let ui=he.ui.overlayContainer$,tn=he.state.isFirstBytes$;D(i,tn,ne=>t(139,l=ne));let xi=he.actions.internal.closeSettingsMenu,nn=he.callbacks?.onDisabledPlayPrevChapterClick,Bi=he.callbacks?.onDisabledSeekToInteractiveClick,Ci,Dt,Gt,ci,Ri,Ni,fi,Si=Pe(!1);D(i,Si,ne=>t(45,b=ne));let Pi,Ue=!1,Di,Lt=!1,Ve,Ti=!0,Qi,Oi,Ii=!1,on;Pt?.setContext(mr());let Ei=ne=>{clearTimeout(ci),ne&&(Kt.set(!0),Bt.set(!0),ci=window.setTimeout(()=>{Bt.set(!1)},Q.controls.collapseMobileUnmute),Li||Ot(Q.controls.hideTimeoutMobile))};he.setUiCallbacks({onStarted:Ei});let Yi=()=>{window.clearTimeout(Gt),t(112,Ue=!1),v&&Wi.set(!1)},Ot=ne=>{Yi(),t(112,Ue=!0),Gt=window.setTimeout(()=>t(112,Ue=!1),ne);let mt=ne-100;Pi=window.setTimeout(()=>{b&&Si.set(!1)},mt>0?mt:ne)},Xi=jt.subscribe(ne=>{Jt.set(ne),ne&&(window.clearTimeout(Ri),Ri=window.setTimeout(()=>Jt.set(!1),Q.controls.hide360IconTimeout))}),ei=async()=>{let ne=to();if(ne){Ot(Q.controls.hideTimeoutFullscreen);try{await Pt?.remove()}catch(mt){mi({message:String(mt)})}try{let mt=p?.width&&p?.height?p:f;await sf(mt)}catch(mt){mi({message:String(mt)})}}qt.set(ne),he.getAdmanWrapper().setFullscreen(ne),c?he.callbacks?.onFullscreenEnter?.():he.callbacks?.onFullscreenExit?.()},se=ne=>{let mt=ne;Zi.set({width:mt.target.width,height:mt.target.height})};gt(()=>(el(ei),Po(Pt)&&(Pt?.assignPlayerContainer(Ci),Pt?.registryExternalEventHandlers({resize:se})),t(39,Ti=!Em(a)),He&&Ae.parentElement?.insertBefore(He,Ae.nextSibling),()=>{window.clearTimeout(Gt),window.clearTimeout(Pi),window.clearTimeout(ci),window.clearTimeout(Ri),Xi(),Pt?.dispose(),tl(ei)}));let it=ne=>{let mt=s+(ne==="forward"?1:-1)*Q.controls.seekStepMobile/1e3;mt<0?mt=0:mt>r&&(mt=r-1),t(114,Lt=!0),Ut(mt)},Ft=async()=>{if(to())await $r(document),mi({message:"exit fullscreen"});else{if(mi({message:"request fullscreen"}),(0,Vo.isIOS)()&&!l)return;let ne=(0,Vo.isIOS)()||!pt?Ci:pt,mt=ne.getRootNode(),Tn=mt instanceof ShadowRoot?mt.host:mt,Rn=Re instanceof HTMLElement&&Re.contains(Tn),Nn=Q.allowChangingFullscreenTarget&&Re&&Rn?Re:ne;await Jr(Nn)}},xt=()=>{xi()},Mi=()=>{if(n){xt();return}if(!zt){ct(),Ot(Q.controls.hideTimeoutCursor);return}t(114,Lt=!1),o?Yi():Ot(Q.controls.hideTimeoutMobile)},Ai=()=>{if(n){xt();return}},bn=()=>{$t.set(!0)},_n=()=>{Li||(Si.set(!0),Ot(Q.controls.hideTimeoutCursor))},un=ne=>{nn&&(nn(ne),Ot(Q.controls.hideTimeoutMobile))},It=ne=>{Bi&&(Bi(ne),Ot(Q.controls.hideTimeoutMobile))};function Ln(ne){me[ne?"unshift":"push"](()=>{Ae=ne,t(0,Ae)})}let Bn=()=>it("backward"),gn=()=>it("forward");function Pn(ne){Dt=ne,t(37,Dt)}function cn(ne){me[ne?"unshift":"push"](()=>{fi=ne,t(29,fi)})}function sn(ne){me[ne?"unshift":"push"](()=>{Ci=ne,t(36,Ci)})}return i.$$set=ne=>{"store"in ne&&t(106,he=ne.store),"uiConfig"in ne&&t(1,Q=ne.uiConfig),"thumbUrl"in ne&&t(2,_e=ne.thumbUrl),"videoContainer"in ne&&t(0,Ae=ne.videoContainer),"interactiveContainer"in ne&&t(107,He=ne.interactiveContainer),"live"in ne&&t(3,Ge=ne.live),"autoplay"in ne&&t(4,be=ne.autoplay),"canRewindLive"in ne&&t(5,Ce=ne.canRewindLive),"showAds"in ne&&t(6,Be=ne.showAds),"adsSlotId"in ne&&t(7,Ze=ne.adsSlotId),"adsParams"in ne&&t(8,le=ne.adsParams),"adsPreviewParam"in ne&&t(9,oe=ne.adsPreviewParam),"duration"in ne&&t(10,ye=ne.duration),"logoClickable"in ne&&t(11,ue=ne.logoClickable),"logoHidden"in ne&&t(12,ke=ne.logoHidden),"logoTargetUrl"in ne&&t(13,ze=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(14,$e=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(15,nt=ne.nextButtonActive),"prevButtonActive"in ne&&t(16,et=ne.prevButtonActive),"endScreenVideoTitle"in ne&&t(17,ge=ne.endScreenVideoTitle),"endScreenVideoThumb"in ne&&t(18,Ke=ne.endScreenVideoThumb),"isOneVideoPlaylist"in ne&&t(19,lt=ne.isOneVideoPlaylist),"supportLink"in ne&&t(20,ut=ne.supportLink),"outerContainerRef"in ne&&t(108,pt=ne.outerContainerRef),"showMiniTimer"in ne&&t(109,St=ne.showMiniTimer),"fullScreenTarget"in ne&&t(110,Re=ne.fullScreenTarget),"playerStarted"in ne&&t(21,zt=ne.playerStarted),"playNextVideo"in ne&&t(22,At=ne.playNextVideo),"playPrevVideo"in ne&&t(23,pe=ne.playPrevVideo),"repeatPlaylist"in ne&&t(24,wt=ne.repeatPlaylist),"seekToInteractive"in ne&&t(25,Oe=ne.seekToInteractive),"toggleGraph"in ne&&t(26,ot=ne.toggleGraph),"playPrevChapter"in ne&&t(27,st=ne.playPrevChapter),"firstStart"in ne&&t(28,ct=ne.firstStart),"seekTime"in ne&&t(111,Ut=ne.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,Ni=($==="video"&&G||$==="ads"&&S==="inactive")&&!M);if(i.$$.dirty[0]&536870912)e:ui.set(fi);if(i.$$.dirty[4]&4)e:t(113,Di=ie!==jm.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,Ve=re||v||!Ue&&(C&&!!wi||Di&&U));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:ni.set((Di||n||w||ee||Ue&&!Lt)&&!Ve&&$==="video"&&!M);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,Qi=Q.features.thumbTimer&&St&&$==="video"&&!o&&!M&&!Li&&(Q.hideThumbTimerAfterTouch&&!E||!Q.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Oi=(Be&&I||!Be)&&C&&!M);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!w&&Ii&&!P&&Ot(Q.controls.hideTimeoutMobile),t(116,Ii=w);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,on=Ae&&g%180?f.height/f.width:1)},[Ae,Q,_e,Ge,be,Ce,Be,Ze,le,oe,ye,ue,ke,ze,$e,nt,et,ge,Ke,lt,ut,zt,At,pe,wt,Oe,ot,st,ct,fi,o,f,g,M,$,ee,Ci,Dt,Ni,Ti,Qi,Oi,on,r,s,b,Y,J,X,R,Z,B,j,Ie,De,Le,qe,Te,pi,Ki,en,ti,ii,hi,qt,ni,Wi,bi,_i,oi,gi,ri,vi,yi,kt,li,Vt,si,Wt,Xt,Tt,Rt,Zt,ai,ln,Zi,jt,Jt,ki,Li,Nt,ht,ji,$t,Gi,tn,Si,it,Ft,xt,Mi,Ai,bn,_n,un,It,he,He,pt,St,Re,Ut,Ue,Di,Lt,Ve,Ii,n,v,w,P,C,I,E,U,re,ie,S,G,Ln,Bn,gn,Pn,cn,sn]}var Gu=class extends K{constructor(e){super(),W(this,e,cv,uv,q,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},av,[-1,-1,-1,-1,-1,-1])}},Gm=Gu;function fv(i){ve(i,"svelte-cghoty",`.root.svelte-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 Th(t){let e,i,n;function o(l){t[57](l)}let s={store:t[0],uiConfig:t[34],title:t[1],thumbUrl:t[2],interactiveContainer:t[3],live:t[4],autoplay:t[5],canRewindLive:t[6],showAds:t[7],adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11],logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[35],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],outerContainerRef:t[22],fullScreenTarget:t[23],showMiniTimer:t[24],playerStarted:t[33],playNextVideo:t[25],playPrevVideo:t[26],repeatPlaylist:t[27],seekToInteractive:t[28],toggleGraph:t[29],playPrevChapter:t[30],firstStart:t[36]};return t[32]!==void 0&&(s.videoContainer=t[32]),e=new fh({props:s}),ve.push(()=>Ze(e,"videoContainer",o)),{c(){U(e.$$.fragment)},m(l,r){H(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.interactiveContainer=l[3]),r[0]&16&&(a.live=l[4]),r[0]&32&&(a.autoplay=l[5]),r[0]&64&&(a.canRewindLive=l[6]),r[0]&128&&(a.showAds=l[7]),r[0]&256&&(a.adsSlotId=l[8]),r[0]&512&&(a.adsParams=l[9]),r[0]&1024&&(a.adsPreviewParam=l[10]),r[0]&2048&&(a.duration=l[11]),r[0]&4096&&(a.logoClickable=l[12]),r[0]&8192&&(a.logoHidden=l[13]),r[0]&32768&&(a.showNextPrevButtons=l[15]),r[0]&65536&&(a.nextButtonActive=l[16]),r[0]&131072&&(a.prevButtonActive=l[17]),r[0]&262144&&(a.endScreenVideoTitle=l[18]),r[0]&524288&&(a.endScreenVideoThumb=l[19]),r[0]&1048576&&(a.isOneVideoPlaylist=l[20]),r[0]&2097152&&(a.supportLink=l[21]),r[0]&4194304&&(a.outerContainerRef=l[22]),r[0]&8388608&&(a.fullScreenTarget=l[23]),r[0]&16777216&&(a.showMiniTimer=l[24]),r[1]&4&&(a.playerStarted=l[33]),r[0]&33554432&&(a.playNextVideo=l[25]),r[0]&67108864&&(a.playPrevVideo=l[26]),r[0]&134217728&&(a.repeatPlaylist=l[27]),r[0]&268435456&&(a.seekToInteractive=l[28]),r[0]&536870912&&(a.toggleGraph=l[29]),r[0]&1073741824&&(a.playPrevChapter=l[30]),!i&&r[1]&2&&(i=!0,a.videoContainer=l[32],qe(()=>i=!1)),e.$set(a)},i(l){n||(m(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Sh(t){let e,i,n;function o(l){t[56](l)}let s={store:t[0],uiConfig:t[34],thumbUrl:t[2],interactiveContainer:t[3],live:t[4],autoplay:t[5],canRewindLive:t[6],showAds:t[7],adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11],logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[35],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],outerContainerRef:t[22],fullScreenTarget:t[23],showMiniTimer:t[24],playerStarted:t[33],playNextVideo:t[25],playPrevVideo:t[26],repeatPlaylist:t[27],seekToInteractive:t[28],toggleGraph:t[29],playPrevChapter:t[30],firstStart:t[36],seekTime:t[31]};return t[32]!==void 0&&(s.videoContainer=t[32]),e=new yh({props:s}),ve.push(()=>Ze(e,"videoContainer",o)),{c(){U(e.$$.fragment)},m(l,r){H(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.interactiveContainer=l[3]),r[0]&16&&(a.live=l[4]),r[0]&32&&(a.autoplay=l[5]),r[0]&64&&(a.canRewindLive=l[6]),r[0]&128&&(a.showAds=l[7]),r[0]&256&&(a.adsSlotId=l[8]),r[0]&512&&(a.adsParams=l[9]),r[0]&1024&&(a.adsPreviewParam=l[10]),r[0]&2048&&(a.duration=l[11]),r[0]&4096&&(a.logoClickable=l[12]),r[0]&8192&&(a.logoHidden=l[13]),r[0]&32768&&(a.showNextPrevButtons=l[15]),r[0]&65536&&(a.nextButtonActive=l[16]),r[0]&131072&&(a.prevButtonActive=l[17]),r[0]&262144&&(a.endScreenVideoTitle=l[18]),r[0]&524288&&(a.endScreenVideoThumb=l[19]),r[0]&1048576&&(a.isOneVideoPlaylist=l[20]),r[0]&2097152&&(a.supportLink=l[21]),r[0]&4194304&&(a.outerContainerRef=l[22]),r[0]&8388608&&(a.fullScreenTarget=l[23]),r[0]&16777216&&(a.showMiniTimer=l[24]),r[1]&4&&(a.playerStarted=l[33]),r[0]&33554432&&(a.playNextVideo=l[25]),r[0]&67108864&&(a.playPrevVideo=l[26]),r[0]&134217728&&(a.repeatPlaylist=l[27]),r[0]&268435456&&(a.seekToInteractive=l[28]),r[0]&536870912&&(a.toggleGraph=l[29]),r[0]&1073741824&&(a.playPrevChapter=l[30]),!i&&r[1]&2&&(i=!0,a.videoContainer=l[32],qe(()=>i=!1)),e.$set(a)},i(l){n||(m(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,o;const s=[Sh,Th],l=[];function r(a,c){return a[14]?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){A(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()),m(n,1),n.m(e,null))},i(a){o||(m(n),o=!0)},o(a){g(n),o=!1},d(a){a&&P(e),l[i].d()}}}function Ah(t,e,i){let{sources:n}=e,{store:o}=e,{microStoresRoot:s}=e,{videoConfig:l}=e,{uiConfig:r}=e,{title:a}=e,{thumbUrl:c}=e,{interactiveContainer:f}=e,{subtitles:d}=e,{live:h}=e,{preload:v}=e,{autoplay:k}=e,{volume:_=void 0}=e,{muted:S=void 0}=e,{fromTime:C}=e,{canRewindLive:T}=e,{showAds:y}=e,{adsSlotId:L=void 0}=e,{adsParams:le=void 0}=e,{adsPreviewParam:Y=void 0}=e,{duration:N=void 0}=e,{logoClickable:ee}=e,{logoHidden:Q}=e,{isMobile:w}=e,{showNextPrevButtons:$=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:O=!1}=e,{endScreenVideoTitle:W=void 0}=e,{endScreenVideoThumb:B=void 0}=e,{isOneVideoPlaylist:J=!1}=e,{supportLink:E}=e,{outerContainerRef:z=void 0}=e,{fullScreenTarget:Te=void 0}=e,{failoverHosts:ze=void 0}=e,{showMiniTimer:Ve=!1}=e,{playNextVideo:Le=ie.noop}=e,{playPrevVideo:Pe=ie.noop}=e,{repeatPlaylist:pe=ie.noop}=e,{seekToInteractive:Z=ie.noop}=e,{toggleGraph:me=ie.noop}=e,{playPrevChapter:Ae=ie.noop}=e;const{subscribers:Ue,stores:Ge}=s;Ic(r);const ae=an(),ye=r.logoLink,Me=o.ui.debugPanelVisible,je=o.ui.playerSize;let ne,G=null,Ce=!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}),Oc(o,Ge);const re=(ce=!1)=>{i(33,Ce=!0),ce?o.actions.external.firstStart(y):o.actions.internal.firstStart(y)};function ke(ce){const ft=n||ce;ft&&o.initVideo({container:ne,sources:ft,failoverHosts:ze,subtitles:d});const kt=ie.safeStorage.get(bl)==="true";Me.set(kt),C>0&&o.actions.external.seekTime(C);const We=w?ae.volumeDefault:_??k1()??ae.volumeDefault,tt=S??Zc();if(o.actions.external.setVolume(We),o.actions.external.setMuted(tt),o.getAdmanWrapper().setInitialVolume(tt?0:We),ae.features.trafficSaving){const wt=jc();wt&&o.actions.internal.setTrafficSavingEnabled(wt)}const gt=qc(o.videoId);gt&&o.actions.internal.setQuality(gt),o.ui.isAutoplay.set(k),k?re():v&&ae.features.preload&&o.actions.internal.preload()}const He=ce=>{if(window.ResizeObserver){let ft,kt;G=new ResizeObserver(ie.throttleFn(We=>{const tt=We[0];if(tt){if(tt.contentBoxSize){const gt=Array.isArray(tt.contentBoxSize)?tt.contentBoxSize[0]:tt.contentBoxSize;ft=gt.inlineSize,kt=gt.blockSize}else tt.contentRect&&(ft=tt.contentRect.width,kt=tt.contentRect.height);je.set({width:ft,height:kt})}},a1)),G.observe(ce)}je.set({width:ce.clientWidth,height:ce.clientHeight})};nn(()=>{He(ne);const ce=Ue.map(kt=>kt.init({store:o,microStores:Ge,config:l}));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 ke(),()=>{G?.disconnect(),ce.forEach(kt=>kt.unsubscribe()),o.destroy()}});function et(){Ce?o.actions.external.play():re(!0)}function lt(){o.actions.external.pause()}function Ne(ce){w||o.actions.external.setMuted(ce)}function ue(ce){w||ce>=0&&ce<=1&&o.actions.external.setVolume(ce)}function st(ce){o.actions.internal.seekTime(ce,pt.SeekAction.UNKNOWN)}function vt(ce){o.actions.external.seekEpisodeStartTime(ce)}function ut(){o.actions.external.returnFocusToEpisodes()}function bt(ce){o.actions.external.setPlaybackRate(ce)}function Ct(ce){o.actions.external.setAutoQualityLimits(ce)}function Be(ce){ne=ce,i(32,ne)}function Ft(ce){ne=ce,i(32,ne)}return t.$$set=ce=>{"sources"in ce&&i(37,n=ce.sources),"store"in ce&&i(0,o=ce.store),"microStoresRoot"in ce&&i(38,s=ce.microStoresRoot),"videoConfig"in ce&&i(39,l=ce.videoConfig),"uiConfig"in ce&&i(40,r=ce.uiConfig),"title"in ce&&i(1,a=ce.title),"thumbUrl"in ce&&i(2,c=ce.thumbUrl),"interactiveContainer"in ce&&i(3,f=ce.interactiveContainer),"subtitles"in ce&&i(41,d=ce.subtitles),"live"in ce&&i(4,h=ce.live),"preload"in ce&&i(42,v=ce.preload),"autoplay"in ce&&i(5,k=ce.autoplay),"volume"in ce&&i(43,_=ce.volume),"muted"in ce&&i(44,S=ce.muted),"fromTime"in ce&&i(45,C=ce.fromTime),"canRewindLive"in ce&&i(6,T=ce.canRewindLive),"showAds"in ce&&i(7,y=ce.showAds),"adsSlotId"in ce&&i(8,L=ce.adsSlotId),"adsParams"in ce&&i(9,le=ce.adsParams),"adsPreviewParam"in ce&&i(10,Y=ce.adsPreviewParam),"duration"in ce&&i(11,N=ce.duration),"logoClickable"in ce&&i(12,ee=ce.logoClickable),"logoHidden"in ce&&i(13,Q=ce.logoHidden),"isMobile"in ce&&i(14,w=ce.isMobile),"showNextPrevButtons"in ce&&i(15,$=ce.showNextPrevButtons),"nextButtonActive"in ce&&i(16,X=ce.nextButtonActive),"prevButtonActive"in ce&&i(17,O=ce.prevButtonActive),"endScreenVideoTitle"in ce&&i(18,W=ce.endScreenVideoTitle),"endScreenVideoThumb"in ce&&i(19,B=ce.endScreenVideoThumb),"isOneVideoPlaylist"in ce&&i(20,J=ce.isOneVideoPlaylist),"supportLink"in ce&&i(21,E=ce.supportLink),"outerContainerRef"in ce&&i(22,z=ce.outerContainerRef),"fullScreenTarget"in ce&&i(23,Te=ce.fullScreenTarget),"failoverHosts"in ce&&i(46,ze=ce.failoverHosts),"showMiniTimer"in ce&&i(24,Ve=ce.showMiniTimer),"playNextVideo"in ce&&i(25,Le=ce.playNextVideo),"playPrevVideo"in ce&&i(26,Pe=ce.playPrevVideo),"repeatPlaylist"in ce&&i(27,pe=ce.repeatPlaylist),"seekToInteractive"in ce&&i(28,Z=ce.seekToInteractive),"toggleGraph"in ce&&i(29,me=ce.toggleGraph),"playPrevChapter"in ce&&i(30,Ae=ce.playPrevChapter)},t.$$.update=()=>{t.$$.dirty[0]&16385&&o.ui.isMobile.set(w)},[o,a,c,f,h,k,T,y,L,le,Y,N,ee,Q,w,$,X,O,W,B,J,E,z,Te,Ve,Le,Pe,pe,Z,me,Ae,st,ne,Ce,ae,ye,re,n,s,l,r,d,v,_,S,C,ze,ke,et,lt,Ne,ue,vt,ut,bt,Ct,Be,Ft]}class Ih extends _e{constructor(e){super(),ge(this,e,Ah,Ph,be,{sources:37,store:0,microStoresRoot:38,videoConfig:39,uiConfig:40,title:1,thumbUrl:2,interactiveContainer:3,subtitles:41,live:4,preload:42,autoplay:5,volume:43,muted:44,fromTime:45,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:22,fullScreenTarget:23,failoverHosts:46,showMiniTimer:24,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:47,play:48,pause:49,setMuted:50,setVolume:51,seekTime:31,seekEpisodeStartTime:52,returnFocusToEpisodes:53,setPlaybackRate:54,setAutoQualityLimits:55},Ch,[-1,-1,-1])}get initVideo(){return this.$$.ctx[47]}get play(){return this.$$.ctx[48]}get pause(){return this.$$.ctx[49]}get setMuted(){return this.$$.ctx[50]}get setVolume(){return this.$$.ctx[51]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[52]}get returnFocusToEpisodes(){return this.$$.ctx[53]}get setPlaybackRate(){return this.$$.ctx[54]}get setAutoQualityLimits(){return this.$$.ctx[55]}}function Eh(t){let e,i;return{c(){e=M("svg"),i=M("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){A(n,e,o),p(e,i)},p(n,[o]){o&1&&u(i,"fill",n[0])},i:q,o:q,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 Lh extends _e{constructor(e){super(),ge(this,e,Vh,Eh,be,{isWhite:1})}}function Mh(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 Ja(t){let e,i;return{c(){e=I("div"),i=Oe(t[0]),u(e,"class","title v-1y9fytq")},m(n,o){A(n,e,o),p(e,i)},p(n,o){o&1&&xe(i,n[0])},d(n){n&&P(e)}}}function xa(t){let e,i;return e=new Lh({props:{isWhite:!!t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isWhite=!!n[1]),e.$set(s)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){g(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Bh(t){let e,i,n,o,s=t[0]&&Ja(t),l=(!t[0]||!t[1])&&xa(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){A(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=Ja(r),s.c(),s.m(e,i)):s&&(s.d(1),s=null),!r[0]||!r[1]?l?(l.p(r,a),a&3&&m(l,1)):(l=xa(r),l.c(),m(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||(m(l),o=!0)},o(r){g(l),o=!1},d(r){r&&P(e),s&&s.d(),l&&l.d()}}}function Nh(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 Rh extends _e{constructor(e){super(),ge(this,e,Nh,Bh,be,{title:0,thumbUrl:1},Mh)}}class Dh{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 Oh(t){let e,i,n,o;return{c(){e=M("svg"),i=M("g"),n=M("path"),o=M("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){A(s,e,l),p(e,i),p(i,n),p(i,o)},p:q,i:q,o:q,d(s){s&&P(e)}}}class zh extends _e{constructor(e){super(),ge(this,e,null,Oh,be,{})}}function Hh(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 Fh(t){let e,i,n,o,s,l,r;return n=new zh({}),{c(){e=I("div"),i=I("div"),U(n.$$.fragment),o=D(),s=I("span"),l=Oe(t[0]),u(i,"class","dummy-image v-1pbsod4"),V(i,"desktop",!t[1]),u(s,"class","title v-1pbsod4"),u(e,"class","player-pip-dummy v-1pbsod4"),V(e,"is-pip-api",t[2])},m(a,c){A(a,e,c),p(e,i),H(n,i,null),p(e,o),p(e,s),p(s,l),r=!0},p(a,[c]){(!r||c&2)&&V(i,"desktop",!a[1]),(!r||c&1)&&xe(l,a[0])},i(a){r||(m(n.$$.fragment,a),r=!0)},o(a){g(n.$$.fragment,a),r=!1},d(a){a&&P(e),F(n)}}}function Uh(t,e,i){let n,o;const s=ht(),l=!!s.webApi.pictureInPictureApi,r=s.interfaceLanguage$;R(t,r,f=>i(5,n=f));const a=s.ui.isMobile;R(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 qh extends _e{constructor(e){super(),ge(this,e,Uh,Fh,be,{},Hh)}}const Zh=460,Wh=280;class Bu{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new ie.ValueSubject(!1),type:Vn.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:Zh,height:Wh,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 qh({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 jh(t){return t instanceof Bu}class Kh{static getLatestSupportedVersion(){const e=new Tl,i=new Bu;if(i.isSupported())return i;if(e.isSupported())return e}}function $a(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 Gh="Inner error. Unexpectedly root annotation container null reference exception",Yh="Annotation with such name already exists",Qh="Annotation with such name does not exist";class fl extends Error{constructor(e){super(e),this.name="AnnotationError"}}const Xh="1",Jh=100;class xh{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"},Jh);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(Gh);if(this.annotations.has(e))throw new fl(Yh);i.style.zIndex=i.style.zIndex??Xh,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(Qh);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 $o{stateName;state$;subscription;init({store:e,microStores:i,config:n}){return ie.assertNonNullable(e),ie.assertNonNullable(i),ie.assertNonNullable(n),this.subscription=new ie.Subscription,this.subscription}}class $h extends $o{stateName="fakeIsPlaying$";state$={...Ie(null),toggle:()=>this.state$.update(e=>!e)};init(e){const i=super.init(e),{isInteractiveExpectation$:n}=e.store.state;return i.add(n.subscribe(o=>{this.state$.set(o?!0:null)})),i}}class e5 extends $o{stateName="interactiveControlsOpacity$";state$={...Ie(null),toggle:()=>this.state$.update(e=>!e)};init(e){const i=super.init(e),{microStores:n,store:o}=e,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:l,isPlaying$:r}=o.state,{controlsVisible:a,isMobile:c}=o.ui,f=Je(c),d=()=>f&&Je(a);return i.add(a.subscribe(h=>{if(!f)return;const v=Je(s);Je(r)?this.state$.set(h):v!==null&&this.state$.set(!v||h)})),i.add(r.subscribe(h=>{this.state$.set(!h||d())})),i.add(s.subscribe(h=>{if(h===null)return;const v=Je(l);if(d()){this.state$.set(!0);return}v&&this.state$.set(!h)})),i}}class t5 extends $o{stateName="seekToInteractiveDisabledTooltip$";state$=Ie("tooltip_chapter_without_interactive");init(e){const i=super.init(e),{store:n}=e;return i.add(n.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"))})),i}}const dl=Ie(!1);let Wo=null;class i5 extends $o{stateName="showInteractiveTimeIndicatorTooltip$";timeout;state$={...dl,set:(e,i=!1)=>{e!==Je(dl)&&(this.clearTimeout(),dl.set(e),!e&&Wo&&(Wo=!1),e&&i&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()};init(e){const i=super.init(e),{store:n,config:o}=e,{isInteractiveTime$:s,isPlaying$:l}=n.state,r=n.ui.controlsVisible;i.add(r.subscribe(f=>{Je(s)&&f&&this.state$.set(!1)}));const a=o?.interactiveData||{tooltipHelpHintActive:!1},c=mi([l,s],([f,d])=>f&&d);return i.add(c.subscribe(f=>{const d=Je(l),h=Je(s);if(d){if(!h)return this.state$.set(!1);a.tooltipHelpHintActive&&Wo===null&&(Wo=!0,a.tooltipHelpHintActive=!1,this.state$.set(!0),n.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),i}clearTimeout(){window.clearTimeout(this.timeout)}}const n5=()=>[$h,e5,t5,i5].reduce(({subscribers:t,stores:e},i)=>{const n=new i;return{subscribers:[...t,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}}),o5={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 l5 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 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 Rh({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:d,volume:h,muted:v,fromTime:k,canRewindLive:_,supportLink:S,showAds:C,adsSlotId:T,adsParams:y={},adsPreviewParam:L,interfaceLanguage:le,logoClickable:Y,logoHidden:N,isMobile:ee,isAudioDisabled:Q,isLiveCatchUpMode:w,fullScreenTarget:$,failoverHosts:X,canDownload:O,callbacks:W,interactiveData:B,showThumbTimer:J,additionalButtons:E=[],repeat:z}=$a(this.videoConfig,i),{sources:Te,title:ze,thumbUrl:Ve,unitedVideoId:Le,isClip:Pe=!1,duration:pe,adsParams:Z={},videoEpisodes:me,previewThumbsData:Ae,subtitles:Ue,live:Ge}=e,ae={...y,...Z},ye=this.getNextVideoInfo(),Me={sources:Te,title:ze,thumbUrl:Ve,subtitles:Ue,unitedVideoId:Le,isClip:Pe,live:Ge,albumId:o,statPlace:s,autoplay:d,muted:v,volume:h,fromTime:k,canRewindLive:_,showAds:C,adsSlotId:T,adsParams:ae,adsPreviewParam:L,duration:pe,logoClickable:Y,logoHidden:N,isMobile:ee,repeat:z,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ye.nextVideoTitle,endScreenVideoThumb:ye.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},je={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Me)}`});const ne=this.uiConfig.features.statistics&&!!Le,{pid:G}=this.videoConfig?.interactiveData?.projectInfo||{};ne&&(this.statistics=new Um({movieId:Le,albumId:o,place:s,trackCode:a,autoplay:(d&&!this.interactiveController)??!1,mobile:ee,clip:Pe,refDomain:this.videoConfig.refDomain,...G&&!this.isInited&&{projectId:Number(G)}},{refreshAuthToken:c,userSalt:l,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new gl(this.uiConfig.sentry,{version:Xo,env:Dc},{movieId:Le,albumId:o,place:s,autoplay:(d&&!this.interactiveController)??!1,mobile:ee,clip:Pe}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...gl.getInstance()};const re=!!B,ke=[];let He="tooltip_interactive_go_back_disabled_first";if(re&&this.interactiveController){const Ne=this.interactiveController.state.isInitialChapter$.getValue(),ue=this.interactiveController.getHistoryState();Ne&&ke.push(at.REPLAY_BUTTON),this.interactiveController.getIsSeekable().getValue()||ke.push(at.SEEK_TO_INTERACTIVE_BUTTON),ue.hasPrevChapter$.getValue()||(ke.push(at.PLAY_PREV_CHAPTER_BUTTON),Ne||(ue.isGoBackLimited$.getValue()?He="tooltip_interactive_go_back_disabled_limit":He="tooltip_interactive_go_back_disabled"))}const et=()=>{this.isInited=!1,this.prevIsid=void 0;const Ne=n?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();W.onReplayInteractiveVideo&&!Ne?W.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=qm({player:n,interfaceLanguage:le,videoId:Le,isClip:Pe,isLiveCatchUpMode:w,isAudioDisabled:Q,statAuthToken:r,callbacks:W,webApi:je,videoEpisodes:me,previewThumbsData:Ae,canDownload:O,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ke,isInteractive:re,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:et,playPrevChapterDisabledTooltip:He,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?E:[],looped:z&&this.videoConfig.videos.length===1,statistics:this.statistics});const{stores:lt}=this.microStoresRoot=n5();this.subscription.add(this.store.state.currentFormat$.subscribe(Ne=>W?.onCurrentFormatChanged?.(Ne))),this.subscription.add(lt.interactiveControlsOpacity$.subscribe(Ne=>{Ne!==null&&this?.interactiveController?.setDisabledControls(Ne)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ne=>W?.onThroughputEstimationChanged?.(Ne))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ne=>W?.onTrafficSavingEnabledChanged?.(Ne))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ne=>W?.onCurrentPlaybackRateChanged?.(Ne))),this.subscription.add(this.store.state.volume$.subscribe(Ne=>W?.onVolumeChange?.(Ne))),this.subscription.add(this.store.state.muted$.subscribe(Ne=>Ne?W?.onMute?.():W?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ne=>W?.onVideoBitrateChanged?.(Ne))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ne=>{const ue=this.store?.ui.controls.disabledControls$;ue&&(Ne&&!ue.includes(Ko)&&ue.add(Ko),Ne||ue.remove(Ko))})),this.initMediaSession(),this.interactiveController&&ne&&this.initInteractivesStatistics(),this.svelteRootComponent=new Ih({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ze,thumbUrl:Ve,subtitles:Ue,live:Ge,preload:f,autoplay:d,muted:v,volume:h,fromTime:k,canRewindLive:_,supportLink:S,showAds:C,adsSlotId:T,adsParams:ae,adsPreviewParam:L,duration:pe,logoClickable:Y,logoHidden:N,isMobile:ee,failoverHosts:X,fullScreenTarget:$,showMiniTimer:J,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ye.nextVideoTitle,endScreenVideoThumb:ye.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!==ho.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.onInteractiveTimeIndicatorChanged?.(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=Je(i),r=Je(n);Je(o)?(o.set(!1),this.interactiveController?.toggleGraphView(!1),s.remove(Gl),!l&&this.graphMadePause&&this.play()):(this.graphMadePause=r==="playing",o.set(!0),this.interactiveController?.toggleGraphView(!0),s.add(Gl),!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?Je(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});const{isInteractiveExpectation$:f}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(h=>{if(!this.isInited)return;const v=this.store;h?v.ui.controls.disabledControls$.remove(at.SEEK_TO_INTERACTIVE_BUTTON):v.ui.controls.disabledControls$.add(at.SEEK_TO_INTERACTIVE_BUTTON)})),this.subscription.add(f.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let d=!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 v=d?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,v),d&&(d=!1)}),this.interactiveController.on(i.interactives,({type:h,actionType:v})=>{if(!this.store)return;const k=f.getValue();if(h==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(f1)),h==="action-choice-canceled"){const _=Je(this.store.state.isPlaying$)||k;if(this.videoConfig?.isMobile&&_){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){const h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(v=>{v.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(v)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!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 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=$a(o5,ie.cloneDeepWith(e,n=>n instanceof HTMLElement?n:void 0)),this.uiConfig=Ac(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=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=Kh.getLatestSupportedVersion():this.pictureInPictureApi=new Tl),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Dh:void 0,this.annotationsApi=this.uiConfig.features.annotations?new xh(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]),jh(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===De.Video?this.setupMediaSessionForVideo():e===De.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(at.PLAY_BUTTON)||this.store?.playerPhase.is(De.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(at.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()}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}}const s5=()=>{window.customElements.define("vk-video-player",l5)};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 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=Xo;exports.registerPlayerWebComponent=s5;
|
|
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 dv(i){let e,t,n;function o(r){i[58](r)}let l={store:i[0],uiConfig:i[34],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[36]};return i[32]!==void 0&&(l.videoContainer=i[32]),e=new Im({props:l}),me.push(()=>Me(e,"videoContainer",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&1&&(a.store=r[0]),s[0]&2&&(a.title=r[1]),s[0]&4&&(a.thumbUrl=r[2]),s[0]&8&&(a.interactiveContainer=r[3]),s[0]&16&&(a.live=r[4]),s[0]&32&&(a.autoplay=r[5]),s[0]&64&&(a.canRewindLive=r[6]),s[0]&128&&(a.showAds=r[7]),s[0]&256&&(a.adsSlotId=r[8]),s[0]&512&&(a.adsParams=r[9]),s[0]&1024&&(a.adsPreviewParam=r[10]),s[0]&2048&&(a.duration=r[11]),s[0]&4096&&(a.logoClickable=r[12]),s[0]&8192&&(a.logoHidden=r[13]),s[0]&32768&&(a.showNextPrevButtons=r[15]),s[0]&65536&&(a.nextButtonActive=r[16]),s[0]&131072&&(a.prevButtonActive=r[17]),s[0]&262144&&(a.endScreenVideoTitle=r[18]),s[0]&524288&&(a.endScreenVideoThumb=r[19]),s[0]&1048576&&(a.isOneVideoPlaylist=r[20]),s[0]&2097152&&(a.supportLink=r[21]),s[0]&4194304&&(a.outerContainerRef=r[22]),s[0]&8388608&&(a.fullScreenTarget=r[23]),s[0]&16777216&&(a.showMiniTimer=r[24]),s[1]&4&&(a.playerStarted=r[33]),s[0]&33554432&&(a.playNextVideo=r[25]),s[0]&67108864&&(a.playPrevVideo=r[26]),s[0]&134217728&&(a.repeatPlaylist=r[27]),s[0]&268435456&&(a.seekToInteractive=r[28]),s[0]&536870912&&(a.toggleGraph=r[29]),s[0]&1073741824&&(a.playPrevChapter=r[30]),!t&&s[1]&2&&(t=!0,a.videoContainer=r[32],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function mv(i){let e,t,n;function o(r){i[57](r)}let l={store:i[0],uiConfig:i[34],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[36],seekTime:i[31]};return i[32]!==void 0&&(l.videoContainer=i[32]),e=new Gm({props:l}),me.push(()=>Me(e,"videoContainer",o)),{c(){H(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){let a={};s[0]&1&&(a.store=r[0]),s[0]&4&&(a.thumbUrl=r[2]),s[0]&8&&(a.interactiveContainer=r[3]),s[0]&16&&(a.live=r[4]),s[0]&32&&(a.autoplay=r[5]),s[0]&64&&(a.canRewindLive=r[6]),s[0]&128&&(a.showAds=r[7]),s[0]&256&&(a.adsSlotId=r[8]),s[0]&512&&(a.adsParams=r[9]),s[0]&1024&&(a.adsPreviewParam=r[10]),s[0]&2048&&(a.duration=r[11]),s[0]&4096&&(a.logoClickable=r[12]),s[0]&8192&&(a.logoHidden=r[13]),s[0]&32768&&(a.showNextPrevButtons=r[15]),s[0]&65536&&(a.nextButtonActive=r[16]),s[0]&131072&&(a.prevButtonActive=r[17]),s[0]&262144&&(a.endScreenVideoTitle=r[18]),s[0]&524288&&(a.endScreenVideoThumb=r[19]),s[0]&1048576&&(a.isOneVideoPlaylist=r[20]),s[0]&2097152&&(a.supportLink=r[21]),s[0]&4194304&&(a.outerContainerRef=r[22]),s[0]&8388608&&(a.fullScreenTarget=r[23]),s[0]&16777216&&(a.showMiniTimer=r[24]),s[1]&4&&(a.playerStarted=r[33]),s[0]&33554432&&(a.playNextVideo=r[25]),s[0]&67108864&&(a.playPrevVideo=r[26]),s[0]&134217728&&(a.repeatPlaylist=r[27]),s[0]&268435456&&(a.seekToInteractive=r[28]),s[0]&536870912&&(a.toggleGraph=r[29]),s[0]&1073741824&&(a.playPrevChapter=r[30]),!t&&s[1]&2&&(t=!0,a.videoContainer=r[32],Ee(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){F(e,r)}}}function pv(i){let e,t,n,o,l=[mv,dv],r=[];function s(a,c){return a[14]?0:1}return t=s(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=T("div"),n.c(),u(e,"class","root svelte-cghoty")},m(a,c){k(a,e,c),r[t].m(e,null),o=!0},p(a,c){let f=t;t=s(a,c),t===f?r[t].p(a,c):(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),n=r[t],n?n.p(a,c):(n=r[t]=l[t](a),n.c()),m(n,1),n.m(e,null))},i(a){o||(m(n),o=!0)},o(a){h(n),o=!1},d(a){a&&y(e),r[t].d()}}}function hv(i,e,t){let{sources:n}=e,{store:o}=e,{microStoresRoot:l}=e,{videoConfig:r}=e,{uiConfig:s}=e,{title:a}=e,{thumbUrl:c}=e,{interactiveContainer:f}=e,{subtitles:p}=e,{live:b}=e,{preload:v}=e,{autoplay:g}=e,{volume:w=void 0}=e,{muted:P=void 0}=e,{fromTime:M}=e,{canRewindLive:C}=e,{showAds:I}=e,{adsSlotId:E=void 0}=e,{adsParams:$=void 0}=e,{adsPreviewParam:ee=void 0}=e,{duration:U=void 0}=e,{logoClickable:re}=e,{logoHidden:ie}=e,{isMobile:S}=e,{showNextPrevButtons:G=!1}=e,{nextButtonActive:Y=!1}=e,{prevButtonActive:J=!1}=e,{endScreenVideoTitle:X=void 0}=e,{endScreenVideoThumb:R=void 0}=e,{isOneVideoPlaylist:Z=!1}=e,{supportLink:B}=e,{outerContainerRef:j=void 0}=e,{fullScreenTarget:Ie=void 0}=e,{failoverHosts:De=void 0}=e,{showMiniTimer:Le=!1}=e,{playNextVideo:qe=Vn.noop}=e,{playPrevVideo:Te=Vn.noop}=e,{repeatPlaylist:he=Vn.noop}=e,{seekToInteractive:Q=Vn.noop}=e,{toggleGraph:_e=Vn.noop}=e,{playPrevChapter:Ae=Vn.noop}=e,{volumeMultiplier:He}=e,{subscribers:Ge,stores:be}=l;Ec(s);let Ce=Ct(),Be=s.logoLink,Ze=o.ui.debugPanelVisible,le=o.ui.playerSize,oe,ye=null,ue=!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}),Hc(o,be);let ke=(pe=!1)=>{t(33,ue=!0),pe?o.actions.external.firstStart(I):o.actions.internal.firstStart(I)};function ze(pe){let wt=n||pe;wt&&o.initVideo({container:oe,sources:wt,failoverHosts:De,subtitles:p,volumeMultiplier:He});let Oe=Vn.safeStorage.get(pr)==="true";Ze.set(Oe),M>0&&o.actions.external.seekTime(M);let ot=S?Ce.volumeDefault:w??Zr()??Ce.volumeDefault,st=P??Xc();if(o.actions.external.setVolume(ot),o.actions.external.setMuted(st),o.getAdmanWrapper().setInitialVolume(st?0:ot),Ce.features.trafficSaving){let Ut=$c();Ut&&o.actions.internal.setTrafficSavingEnabled(Ut)}let ct=xc(o.videoId);ct&&o.actions.internal.setQuality(ct),o.ui.isAutoplay.set(g),g?ke():v&&Ce.features.preload&&o.actions.internal.preload()}let $e=pe=>{if(window.ResizeObserver){let wt,Oe;ye=new ResizeObserver((0,Vn.throttleFn)(ot=>{let st=ot[0];if(st){if(st.contentBoxSize){let ct=Array.isArray(st.contentBoxSize)?st.contentBoxSize[0]:st.contentBoxSize;wt=ct.inlineSize,Oe=ct.blockSize}else st.contentRect&&(wt=st.contentRect.width,Oe=st.contentRect.height);le.set({width:wt,height:Oe})}},300)),ye.observe(pe)}le.set({width:pe.clientWidth,height:pe.clientHeight})};gt(()=>{$e(oe);let pe=Ge.map(Oe=>Oe.init({store:o,microStores:be,config:r}));if(b?.status==="upcoming"||b?.status==="waiting"){o.actions.internal.setWaitingLive(!0);return}if((b?.status==="finished"||b?.status==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return ze(),()=>{ye?.disconnect(),pe.forEach(Oe=>Oe.unsubscribe()),o.destroy()}});function nt(){ue?o.actions.external.play():ke(!0)}function et(){o.actions.external.pause()}function ge(pe){S||o.actions.external.setMuted(pe)}function Ke(pe){S||pe>=0&&pe<=1&&o.actions.external.setVolume(pe)}function lt(pe){o.actions.internal.seekTime(pe,xm.SeekAction.UNKNOWN)}function ut(pe){o.actions.external.seekEpisodeStartTime(pe)}function pt(){o.actions.external.returnFocusToEpisodes()}function St(pe){o.actions.external.setPlaybackRate(pe)}function Re(pe){o.actions.external.setAutoQualityLimits(pe)}function zt(pe){oe=pe,t(32,oe)}function At(pe){oe=pe,t(32,oe)}return i.$$set=pe=>{"sources"in pe&&t(37,n=pe.sources),"store"in pe&&t(0,o=pe.store),"microStoresRoot"in pe&&t(38,l=pe.microStoresRoot),"videoConfig"in pe&&t(39,r=pe.videoConfig),"uiConfig"in pe&&t(40,s=pe.uiConfig),"title"in pe&&t(1,a=pe.title),"thumbUrl"in pe&&t(2,c=pe.thumbUrl),"interactiveContainer"in pe&&t(3,f=pe.interactiveContainer),"subtitles"in pe&&t(41,p=pe.subtitles),"live"in pe&&t(4,b=pe.live),"preload"in pe&&t(42,v=pe.preload),"autoplay"in pe&&t(5,g=pe.autoplay),"volume"in pe&&t(43,w=pe.volume),"muted"in pe&&t(44,P=pe.muted),"fromTime"in pe&&t(45,M=pe.fromTime),"canRewindLive"in pe&&t(6,C=pe.canRewindLive),"showAds"in pe&&t(7,I=pe.showAds),"adsSlotId"in pe&&t(8,E=pe.adsSlotId),"adsParams"in pe&&t(9,$=pe.adsParams),"adsPreviewParam"in pe&&t(10,ee=pe.adsPreviewParam),"duration"in pe&&t(11,U=pe.duration),"logoClickable"in pe&&t(12,re=pe.logoClickable),"logoHidden"in pe&&t(13,ie=pe.logoHidden),"isMobile"in pe&&t(14,S=pe.isMobile),"showNextPrevButtons"in pe&&t(15,G=pe.showNextPrevButtons),"nextButtonActive"in pe&&t(16,Y=pe.nextButtonActive),"prevButtonActive"in pe&&t(17,J=pe.prevButtonActive),"endScreenVideoTitle"in pe&&t(18,X=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(19,R=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(20,Z=pe.isOneVideoPlaylist),"supportLink"in pe&&t(21,B=pe.supportLink),"outerContainerRef"in pe&&t(22,j=pe.outerContainerRef),"fullScreenTarget"in pe&&t(23,Ie=pe.fullScreenTarget),"failoverHosts"in pe&&t(46,De=pe.failoverHosts),"showMiniTimer"in pe&&t(24,Le=pe.showMiniTimer),"playNextVideo"in pe&&t(25,qe=pe.playNextVideo),"playPrevVideo"in pe&&t(26,Te=pe.playPrevVideo),"repeatPlaylist"in pe&&t(27,he=pe.repeatPlaylist),"seekToInteractive"in pe&&t(28,Q=pe.seekToInteractive),"toggleGraph"in pe&&t(29,_e=pe.toggleGraph),"playPrevChapter"in pe&&t(30,Ae=pe.playPrevChapter),"volumeMultiplier"in pe&&t(47,He=pe.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:o.ui.isMobile.set(S)},[o,a,c,f,b,g,C,I,E,$,ee,U,re,ie,S,G,Y,J,X,R,Z,B,j,Ie,Le,qe,Te,he,Q,_e,Ae,lt,oe,ue,Ce,Be,ke,n,l,r,s,p,v,w,P,M,De,He,ze,nt,et,ge,Ke,ut,pt,St,Re,zt,At]}var xu=class extends K{constructor(e){super(),W(this,e,hv,pv,q,{sources:37,store:0,microStoresRoot:38,videoConfig:39,uiConfig:40,title:1,thumbUrl:2,interactiveContainer:3,subtitles:41,live:4,preload:42,autoplay:5,volume:43,muted:44,fromTime:45,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:22,fullScreenTarget:23,failoverHosts:46,showMiniTimer:24,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,volumeMultiplier:47,initVideo:48,play:49,pause:50,setMuted:51,setVolume:52,seekTime:31,seekEpisodeStartTime:53,returnFocusToEpisodes:54,setPlaybackRate:55,setAutoQualityLimits:56},fv,[-1,-1,-1])}get initVideo(){return this.$$.ctx[48]}get play(){return this.$$.ctx[49]}get pause(){return this.$$.ctx[50]}get setMuted(){return this.$$.ctx[51]}get setVolume(){return this.$$.ctx[52]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[53]}get returnFocusToEpisodes(){return this.$$.ctx[54]}get setPlaybackRate(){return this.$$.ctx[55]}get setAutoQualityLimits(){return this.$$.ctx[56]}},Qm=xu;function bv(i){let e,t;return{c(){e=A("svg"),t=A("path"),u(t,"fill",i[0]),u(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 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){k(n,e,o),d(e,t)},p(n,[o]){o&1&&u(t,"fill",n[0])},i:L,o:L,d(n){n&&y(e)}}}function _v(i,e,t){let{isWhite:n=!1}=e,o;return i.$$set=l=>{"isWhite"in l&&t(1,n=l.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,o=n?"#fff":"#909499")},[o,n]}var Qu=class extends K{constructor(e){super(),W(this,e,_v,bv,q,{isWhite:1})}},Ym=Qu;function gv(i){ve(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function Xm(i){let e,t;return{c(){e=T("div"),t=Se(i[0]),u(e,"class","title svelte-1y9fytq")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o&1&&Fe(t,n[0])},d(n){n&&y(e)}}}function Jm(i){let e,t;return e=new Ym({props:{isWhite:!!i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function vv(i){let e,t,n,o,l=i[0]&&Xm(i),r=(!i[0]||!i[1])&&Jm(i);return{c(){e=T("div"),l&&l.c(),t=N(),r&&r.c(),u(e,"class","playerStub svelte-1y9fytq"),u(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(s,a){k(s,e,a),l&&l.m(e,null),d(e,t),r&&r.m(e,null),o=!0},p(s,[a]){s[0]?l?l.p(s,a):(l=Xm(s),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!s[0]||!s[1]?r?(r.p(s,a),a&3&&m(r,1)):(r=Jm(s),r.c(),m(r,1),r.m(e,null)):r&&(ce(),h(r,1,1,()=>{r=null}),fe()),(!o||a&2&&n!==(n=s[1]?`background-image: url('${s[1]}')`:""))&&u(e,"style",n)},i(s){o||(m(r),o=!0)},o(s){h(r),o=!1},d(s){s&&y(e),l&&l.d(),r&&r.d()}}}function yv(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var Yu=class extends K{constructor(e){super(),W(this,e,yv,vv,q,{title:0,thumbUrl:1},gv)}},$m=Yu;var $i=require("@vkontakte/videoplayer-shared"),_L=require("@vkontakte/videoplayer-core"),ar=require("@vkontakte/videoplayer-statistics");var ts=class{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}};var ao=require("@vkontakte/videoplayer-shared");function kv(i){let e,t,n,o;return{c(){e=A("svg"),t=A("g"),n=A("path"),o=A("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(t,"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(l,r){k(l,e,r),d(e,t),d(t,n),d(t,o)},p:L,i:L,o:L,d(l){l&&y(e)}}}var Xu=class extends K{constructor(e){super(),W(this,e,null,kv,q,{})}},ep=Xu;function wv(i){ve(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function Cv(i){let e,t,n,o,l,r,s;return n=new ep({}),{c(){e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),l=T("span"),r=Se(i[0]),u(t,"class","dummy-image svelte-1pbsod4"),V(t,"desktop",!i[1]),u(l,"class","title svelte-1pbsod4"),u(e,"class","player-pip-dummy svelte-1pbsod4"),V(e,"is-pip-api",i[2])},m(a,c){k(a,e,c),d(e,t),O(n,t,null),d(e,o),d(e,l),d(l,r),s=!0},p(a,[c]){(!s||c&2)&&V(t,"desktop",!a[1]),(!s||c&1)&&Fe(r,a[0])},i(a){s||(m(n.$$.fragment,a),s=!0)},o(a){h(n.$$.fragment,a),s=!1},d(a){a&&y(e),F(n)}}}function Sv(i,e,t){let n,o,l=je(),r=!!l.webApi.pictureInPictureApi,s=l.interfaceLanguage$;D(i,s,f=>t(5,n=f));let a=l.ui.isMobile;D(i,a,f=>t(1,o=f));let c;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,c=n&&z("pip_dummy_title"))},[c,o,r,s,a,n]}var Ju=class extends K{constructor(e){super(),W(this,e,Sv,Cv,q,{},wv)}},tp=Ju;var Pv=460,Tv=280,Tr=class{constructor(){this.info={isActive$:new ao.ValueSubject(!1),type:1}}isSupported(){let e=(0,ao.getCurrentBrowser)().browser===ao.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,ao.detectEmbed)();return"documentPictureInPicture"in window&&!e&&!t}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Pv,height:Tv,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
|
|
51
|
+
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new tp({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!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(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function ip(i){return i instanceof Tr}var is=class{static getLatestSupportedVersion(){let e=new So,t=new Tr;if(t.isSupported())return t;if(e.isSupported())return e}};function $u(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var np="Inner error. Unexpectedly root annotation container null reference exception",op="Annotation with such name already exists",rp="Annotation with such name does not exist";var rr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var lr=require("@vkontakte/videoplayer-shared"),Iv="1",Ev=100,ns=class{constructor(e){this.annotations=new Map;this.subscriptions=new lr.Subscription;this.rootAnnotationsContainer=e;let t=(0,lr.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Ev);this.subscriptions.add((0,lr.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new rr(np);if(this.annotations.has(e))throw new rr(op);t.style.zIndex=t.style.zIndex??Iv,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new rr(rp);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,s=e.offsetHeight;return o<0||l<0||l+r>t||o+s>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var sr=require("@vkontakte/videoplayer-shared"),zn=class{init({store:e,microStores:t,config:n}){return(0,sr.assertNonNullable)(e),(0,sr.assertNonNullable)(t),(0,sr.assertNonNullable)(n),this.subscription=new sr.Subscription,this.subscription}};var Ir=class extends zn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Pe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var Er=class extends zn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Pe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:s,isPlaying$:a}=l.state,{controlsVisible:c,isMobile:f}=l.ui,p=We(f),b=()=>p&&We(c);return n.add(c.subscribe(v=>{if(!p)return;let g=We(r);We(a)?this.state$.set(v):g!==null&&this.state$.set(!g||v)})),n.add(a.subscribe(v=>{this.state$.set(!v||b())})),n.add(r.subscribe(v=>{if(v===null)return;let g=We(s);if(b()){this.state$.set(!0);return}g&&this.state$.set(!v)})),n}};var Mr=class extends zn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Pe("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var ec=Pe(!1),os=null,Ar=class extends zn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...ec,set:(t,n=!1)=>{t!==We(ec)&&(this.clearTimeout(),ec.set(t),!t&&os&&(os=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:s}=o.state,a=o.ui.controlsVisible;n.add(a.subscribe(p=>{We(r)&&p&&this.state$.set(!1)}));let c=l?.interactiveData||{tooltipHelpHintActive:!1},f=Yt([s,r],([p,b])=>p&&b);return n.add(f.subscribe(p=>{let b=We(s),v=We(r);if(b){if(!v)return this.state$.set(!1);c.tooltipHelpHintActive&&os===null&&(os=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var lp=()=>[Ir,Er,Mr,Ar].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var Mv={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:$i.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,$i.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},volumeMultiplier:1},rs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new $i.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new $i.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new $m({target:this.playerContainer,props:{title:t,thumbUrl:n}})}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%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this._shadowRoot=t.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(t),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statUserSalt:s,statAuthToken:a,statTrackCode:c,refreshStatAuthToken:f,preload:p,autoplay:b,volume:v,muted:g,fromTime:w,canRewindLive:P,supportLink:M,showAds:C,adsSlotId:I,adsParams:E={},adsPreviewParam:$,interfaceLanguage:ee,logoClickable:U,logoHidden:re,isMobile:ie,isAudioDisabled:S,isLiveCatchUpMode:G,fullScreenTarget:Y,failoverHosts:J,canDownload:X,callbacks:R,interactiveData:Z,showThumbTimer:B,additionalButtons:j=[],repeat:Ie,volumeMultiplier:De}=$u(this.videoConfig,n),{sources:Le,title:qe,thumbUrl:Te,unitedVideoId:he,isClip:Q=!1,duration:_e,adsParams:Ae={},videoEpisodes:He,previewThumbsData:Ge,subtitles:be,live:Ce}=t,Be={...E,...Ae},Ze=this.getNextVideoInfo(),le={sources:Le,title:qe,thumbUrl:Te,subtitles:be,unitedVideoId:he,isClip:Q,live:Ce,albumId:l,statPlace:r,autoplay:b,muted:g,volume:v,fromTime:w,canRewindLive:P,showAds:C,adsSlotId:I,adsParams:Be,adsPreviewParam:$,duration:_e,logoClickable:U,logoHidden:re,isMobile:ie,repeat:Ie,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ze.nextVideoTitle,endScreenVideoThumb:Ze.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},oe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(le)}`});let ye=this.uiConfig.features.statistics&&!!he,{pid:ue}=this.videoConfig?.interactiveData?.projectInfo||{};ye&&(this.statistics=new zl({movieId:he,albumId:l,place:r,trackCode:c,autoplay:(b&&!this.interactiveController)??!1,mobile:ie,clip:Q,refDomain:this.videoConfig.refDomain,...ue&&!this.isInited&&{projectId:Number(ue)}},{refreshAuthToken:f,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Co(this.uiConfig.sentry,{version:ko,env:Kr},{movieId:he,albumId:l,place:r,autoplay:(b&&!this.interactiveController)??!1,mobile:ie,clip:Q}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Co.getInstance()};let ze=!!Z,$e=[],nt="tooltip_interactive_go_back_disabled_first";if(ze&&this.interactiveController){let Ke=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();Ke&&$e.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||$e.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||($e.push("PLAY_PREV_CHAPTER_BUTTON"),Ke||(lt.isGoBackLimited$.getValue()?nt="tooltip_interactive_go_back_disabled_limit":nt="tooltip_interactive_go_back_disabled"))}let et=()=>{this.isInited=!1,this.prevIsid=void 0;let Ke=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();R.onReplayInteractiveVideo&&!Ke?R.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Nd({player:o,interfaceLanguage:ee,videoId:he,isClip:Q,isLiveCatchUpMode:G,isAudioDisabled:S,statAuthToken:a,callbacks:R,webApi:oe,videoEpisodes:He,previewThumbsData:Ge,canDownload:X,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:$e,isInteractive:ze,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:et,playPrevChapterDisabledTooltip:nt,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?j:[],looped:Ie&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ge}=this.microStoresRoot=lp();this.subscription.add(this.store.state.currentFormat$.subscribe(Ke=>R?.onCurrentFormatChanged?.(Ke))),this.subscription.add(ge.interactiveControlsOpacity$.subscribe(Ke=>{Ke!==null&&this?.interactiveController?.setDisabledControls(Ke)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ke=>R?.onThroughputEstimationChanged?.(Ke))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ke=>R?.onTrafficSavingEnabledChanged?.(Ke))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>R?.onCurrentPlaybackRateChanged?.(Ke))),this.subscription.add(this.store.state.volume$.subscribe(Ke=>R?.onVolumeChange?.(Ke))),this.subscription.add(this.store.state.muted$.subscribe(Ke=>Ke?R?.onMute?.():R?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ke=>R?.onVideoBitrateChanged?.(Ke))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ke=>{let lt=this.store?.ui.controls.disabledControls$;lt&&(Ke&&!lt.includes(hr)&<.add(hr),Ke||lt.remove(hr))})),this.initMediaSession(),this.interactiveController&&ye&&this.initInteractivesStatistics(),this.svelteRootComponent=new Qm({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Le,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:qe,thumbUrl:Te,subtitles:be,live:Ce,preload:p,autoplay:b,muted:g,volume:v,fromTime:w,canRewindLive:P,supportLink:M,showAds:C,adsSlotId:I,adsParams:Be,adsPreviewParam:$,duration:_e,logoClickable:U,logoHidden:re,isMobile:ie,failoverHosts:J,fullScreenTarget:Y,showMiniTimer:B,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ze.nextVideoTitle,endScreenVideoThumb:Ze.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:De}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,$i.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,s=We(n),a=We(o);We(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(_s),!s&&this.graphMadePause&&this.play()):(this.graphMadePause=a==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(_s),!s&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?We(l):this.videoConfig.interfaceLanguage,{projectInfo:s,initChapterId:a,historyApi:c,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:s,initChapterId:a,historyApi:c,vkVideoLoader:f,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);let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(v=>{if(!this.isInited)return;let g=this.store;v?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(v=>{this.store&&this.store.state.isInteractiveExpectation$.set(v)}));let b=!0;if(this.interactiveController.on(n.playerChanged,v=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...v.config,title:s?.title||v.config.title};let g=b?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(v.player,g),b&&(b=!1)}),this.interactiveController.on(n.interactives,({type:v,actionType:g})=>{if(!this.store)return;let w=p.getValue();if(v==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(qr)),v==="action-choice-canceled"){let P=We(this.store.state.isPlaying$)||w;if(this.videoConfig?.isMobile&&P){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let v=this.interactiveController.getHistoryState();this.subscription.add(v.history$.subscribe(g=>{g.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(g)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,v=>{this.log({message:v.toString()})})}catch(t){this.log({message:t.message})}}async initInteractivesStatistics(){let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:o}=await import("@vkontakte/videoplayer-interactive"),l={[o.GO_NEXT_BUTTON]:ar.InteractiveInterfaceClick.NEXT_BUTTON,[o.GO_NEXT_AREA]:ar.InteractiveInterfaceClick.NEXT_AREA,[o.WATCH_AGAIN]:ar.InteractiveInterfaceClick.WATCH_AGAIN,[o.OPEN_GRAPH]:ar.InteractiveInterfaceClick.GRAPH_SHOW,[o.CLOSE_GRAPH]:ar.InteractiveInterfaceClick.GRAPH_HIDE},{click$:r,nextMovie$:s}=this.interactiveController.getStatEvents(),a=new $i.Subject;r.subscribe(c=>{c in l?a.next(l[c]):(n?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:a,nextMovie$:s}))}catch(o){n?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(o,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=$u(Mv,(0,$i.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Ic(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},(0,$i.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),(0,$i.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=is.getLatestSupportedVersion():this.pictureInPictureApi=new So),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ts:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ns(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),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),ip(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("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();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(t),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}};var ur=require("@vkontakte/videoplayer-shared"),ls=require("@vkontakte/videoplayer-core"),Av=()=>{window.customElements.define("vk-video-player",rs)};
|