@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/es2018.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 n0=Object.create;var Al=Object.defineProperty;var o0=Object.getOwnPropertyDescriptor;var l0=Object.getOwnPropertyNames;var r0=Object.getPrototypeOf,s0=Object.prototype.hasOwnProperty;var a0=(t,e,i)=>e in t?Al(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var u0=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of l0(e))!s0.call(t,l)&&l!==i&&Al(t,l,{get:()=>e[l],enumerable:!(n=o0(e,l))||n.enumerable});return t};var Dr=(t,e,i)=>(i=t!=null?n0(r0(t)):{},u0(e||!t||!t.__esModule?Al(i,"default",{value:t,enumerable:!0}):i,t));var Ll=(t,e,i)=>(a0(t,typeof e!="symbol"?e+"":e,i),i);var tt=require("@vkontakte/videoplayer-core/es2018.cjs.js"),ie=require("@vkontakte/videoplayer-shared/es2018.cjs.js"),St=require("@vkontakte/videoplayer-statistics/es2018.cjs.js");require("@vkontakte/videoplayer-interactive/es2018.cjs.js");function W(){}function bu(t,e){for(const i in e)t[i]=e[i];return t}function _u(t){return t()}function zr(){return Object.create(null)}function ut(t){t.forEach(_u)}function In(t){return typeof t=="function"}function _e(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let tl;function Hr(t,e){return tl||(tl=document.createElement("a")),tl.href=e,t===tl.href}function c0(t){return Object.keys(t).length===0}function ei(t,...e){if(t==null){for(const n of e)n(void 0);return W}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function $e(t){let e;return ei(t,i=>e=i)(),e}function z(t,e,i){t.$$.on_destroy.push(ei(e,i))}function Hn(t,e,i,n){if(t){const l=wu(t,e,i,n);return t[0](l)}}function wu(t,e,i,n){return t[1]&&n?bu(i.ctx.slice(),t[1](n(e))):i.ctx}function Fn(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Un(t,e,i,n,l,r){if(l){const o=wu(e,i,n,r);t.p(o,l)}}function qn(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 f0(t){return t==null?"":t}const ku=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(t,e){t.appendChild(e)}function Ye(t,e,i){const n=d0(t);if(!n.getElementById(e)){const l=P("style");l.id=e,l.textContent=i,m0(n,l)}}function d0(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function m0(t,e){return p(t.head||t,e),e.sheet}function S(t,e,i){t.insertBefore(e,i||null)}function T(t){t.parentNode&&t.parentNode.removeChild(t)}function An(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function O(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function H(){return ze(" ")}function bt(){return ze("")}function ve(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function ii(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ct(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 p0(t){return Array.from(t.childNodes)}function et(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ht(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let il;function h0(){if(il===void 0){il=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){il=!0}}return il}function dr(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=P("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 l=h0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(l||r&&n.contentWindow)&&r(),T(n)}}function N(t,e,i){t.classList.toggle(e,!!i)}function Nn(t,e){return new t(e)}let Ho;function Do(t){Ho=t}function Uo(){if(!Ho)throw new Error("Function called outside component initialization");return Ho}function fn(t){Uo().$$.on_mount.push(t)}function qo(t){Uo().$$.on_destroy.push(t)}function ir(t,e){return Uo().$$.context.set(t,e),e}function mr(t){return Uo().$$.context.get(t)}function yu(){return Uo().$$.context}function so(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const So=[],Te=[];let Io=[];const nr=[],Cu=Promise.resolve();let or=!1;function Tu(){or||(or=!0,Cu.then(Su))}function Xn(){return Tu(),Cu}function Lo(t){Io.push(t)}function qe(t){nr.push(t)}const Vl=new Set;let _o=0;function Su(){if(_o!==0)return;const t=Ho;do{try{for(;_o<So.length;){const e=So[_o];_o++,Do(e),v0(e.$$)}}catch(e){throw So.length=0,_o=0,e}for(Do(null),So.length=0,_o=0;Te.length;)Te.pop()();for(let e=0;e<Io.length;e+=1){const i=Io[e];Vl.has(i)||(Vl.add(i),i())}Io.length=0}while(So.length);for(;nr.length;)nr.pop()();or=!1,Vl.clear(),Do(t)}function v0(t){if(t.fragment!==null){t.update(),ut(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Lo)}}function g0(t){const e=[],i=[];Io.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Io=e}const ml=new Set;let oo;function fe(){oo={r:0,c:[],p:oo}}function de(){oo.r||ut(oo.c),oo=oo.p}function m(t,e){t&&t.i&&(ml.delete(t),t.i(e))}function v(t,e,i,n){if(t&&t.o){if(ml.has(t))return;ml.add(t),oo.c.push(()=>{ml.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Xt(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function b0(t,e){const i={},n={},l={$$scope:1};let r=t.length;for(;r--;){const o=t[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(i[a]=s[a],l[a]=1);t[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in i||(i[o]=void 0);return i}function _0(t){return typeof t=="object"&&t!==null?t:{}}function je(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function K(t){t&&t.c()}function j(t,e,i){const{fragment:n,after_update:l}=t.$$;n&&n.m(e,i),Lo(()=>{const r=t.$$.on_mount.map(_u).filter(In);t.$$.on_destroy?t.$$.on_destroy.push(...r):ut(r),t.$$.on_mount=[]}),l.forEach(Lo)}function Z(t,e){const i=t.$$;i.fragment!==null&&(g0(i.after_update),ut(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function w0(t,e){t.$$.dirty[0]===-1&&(So.push(t),Tu(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ke(t,e,i,n,l,r,o,s=[-1]){const a=Ho;Do(t);const c=t.$$={fragment:null,ctx:[],props:r,update:W,not_equal:l,bound:zr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:zr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(d,h,...g)=>{const _=g.length?g[0]:h;return c.ctx&&l(c.ctx[d],c.ctx[d]=_)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](_),f&&w0(t,d)),h}):[],c.update(),f=!0,ut(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const d=p0(e.target);c.fragment&&c.fragment.l(d),d.forEach(T)}else c.fragment&&c.fragment.c();e.intro&&m(t.$$.fragment),j(t,e.target,e.anchor),Su()}Do(a)}class ye{constructor(){Ll(this,"$$");Ll(this,"$$set")}$destroy(){Z(this,1),this.$destroy=W}$on(e,i){if(!In(i))return W;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!c0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const k0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(k0);var lo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video",t.VK_VIDEO_MOBILE="vk_video_mobile"})(lo||(lo={}));const y0={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:lo.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}},C0=t=>ie.fillWithDefault(t,y0),T0=t=>ir("ui-config",t),gn=()=>mr("ui-config"),lr="vk_player_debug_panel_opened",Pu=300,S0=100,P0="videoplayer",E0="videoplayer";var Ie;(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"})(Ie||(Ie={}));const jo={[Ie.KeyF]:"f",[Ie.KeyK]:"k",[Ie.KeyC]:"c",[Ie.KeyM]:"m"},I0=new Set([Ie.ArrowLeft,Ie.ArrowRight,Ie.KeyL,Ie.KeyJ]),A0=new Set([Ie.Tab,Ie.Space,Ie.ArrowLeft,Ie.ArrowRight,Ie.ArrowUp,Ie.ArrowDown]),L0=new Set([Ie.ShiftRight,Ie.ShiftLeft]);var vt;(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"})(vt||(vt={}));const Fr=40,Eu=260,V0=60,Oo=8,Iu=[vt.TIMELINE],pl=[...Iu,vt.GRAPH_BUTTON],Ur=[...Iu,vt.PLAY_BUTTON],Au=[...pl,vt.PLAY_BUTTON];var Po;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(Po||(Po={}));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 Vo={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},wo=[];function Bn(t,e){return{subscribe:Le(t,e).subscribe}}function Le(t,e=W){let i;const n=new Set;function l(s){if(_e(t,s)&&(t=s,i)){const a=!wo.length;for(const c of n)c[1](),wo.push(c,t);if(a){for(let c=0;c<wo.length;c+=2)wo[c][0](wo[c+1]);wo.length=0}}}function r(s){l(s(t))}function o(s,a=W){const c=[s,a];return n.add(c),n.size===1&&(i=e(l,r)||W),s(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:l,update:r,subscribe:o}}function wi(t,e,i){const n=!Array.isArray(t),l=n?[t]:t;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Bn(i,(o,s)=>{let a=!1;const c=[];let f=0,d=W;const h=()=>{if(f)return;d();const _=e(n?c[0]:c,o,s);r?o(_):d=In(_)?_:W},g=l.map((_,b)=>ei(_,C=>{c[b]=C,f&=~(1<<b),a&&h()},()=>{f|=1<<b}));return a=!0,h(),function(){ut(g),d(),a=!1}})}const M0="prod",wl="1.1.37-dev.aaebf6d2.0",Lu=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},Vu=Symbol("storeContext"),Mu=Symbol("microStoresContext"),B0=(t,e)=>{ir(Vu,t),ir(Mu,e)},Pt=()=>{const t=mr(Vu);return ie.assertNonNullable(t,"Store context is empty!"),t},Bo=()=>{const t=mr(Mu);return ie.assertNonNullable(t,"MicroStores context is empty!"),t},Tt=(t,e)=>Bu(t,t.getValue(),e),Bu=(t,e,i)=>Bn(e,n=>{const l=t.subscribe(r=>{n(r),i==null||i(r)});return()=>l.unsubscribe()}),N0=(t,e,i)=>{var n,l,r,o;const s=t.info,{width:a,height:c}=$e(i.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,d=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",g=`${wl} (core: ${tt.VERSION}, stat: ${St.VERSION}, shared: ${ie.VERSION})`,_=$e(i.state.errorLog$),b=_.length?`
|
|
7
|
-
`+
|
|
8
|
-
`,
|
|
9
|
-
|
|
10
|
-
`;return
|
|
11
|
-
`):void 0,
|
|
12
|
-
`)},R0=(t,e,i)=>{const n=t.info,{width:l,height:r}=$e(i.ui.playerSize),o={version:wl,viewport:`${l}x${r}`,volume:Math.round($e(i.state.volume$)*100)};o.id=i.videoId,n.currentFormat$.getValue()&&(o.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(o.cdn=n.hostname$.getValue());const c=n.intrinsicVideoSize$.getValue();c&&(o.videoSize=`${c.width}x${c.height}`);const f=n.currentBuffer$.getValue();f&&(o.buffer=Math.max(f.end-$e(i.state.positionExact$),0));const d=n.throughputEstimation$.getValue();d&&(o.speed=d);const h=n.videoBitrate$.getValue();h&&(o.bitrate=h);const g=n.currentVideoSegmentLength$.getValue();g&&(o.currentVideoSegmentLength=g);const _=n.currentAudioSegmentLength$.getValue();return _&&(o.currentAudioSegmentLength=_),o},O0=(t,e)=>Lu(t,e,"mp4"),Nu="vk_player_prefer_traffic_saving_enabled",Ru="vk_player_preferred_volume",Ou="vk_player_prefer_volume_mute",pr="vk_player_preferred_quality",Du=t=>t>1?1:t<0?0:t,qr=t=>ie.safeStorage.set(Ru,Du(t).toString(10)),zu=()=>{const t=ie.safeStorage.get(Ru);return ie.isNullable(t)?void 0:Du(parseFloat(t))},D0=(t,e)=>ie.safeStorage.set(pr,JSON.stringify({videoId:t,value:e})),Hu=()=>ie.safeStorage.remove(pr),z0=t=>{const e=ie.safeStorage.get(pr);if(ie.isNullable(e))return;const{videoId:i,value:n}=JSON.parse(e);if(t!==i){Hu();return}return n},Fu=(t,e)=>{e?ie.safeStorage.set(t,"true"):ie.safeStorage.remove(t)},Uu=t=>ie.safeStorage.get(t)==="true",Ml=t=>Fu(Ou,t),H0=()=>Uu(Ou),F0=t=>Fu(Nu,t),U0=()=>Uu(Nu);function q0(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("path"),o=O("path"),s=O("path"),a=O("defs"),c=O("filter"),f=O("feFlood"),d=O("feColorMatrix"),h=O("feOffset"),g=O("feGaussianBlur"),_=O("feColorMatrix"),b=O("feBlend"),C=O("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(l,"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(l,"fill","#fff"),u(r,"fill-rule","evenodd"),u(r,"clip-rule","evenodd"),u(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.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(r,"fill","#fff"),u(o,"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(o,"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(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(g,"stdDeviation","2.5"),u(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_618_12297"),u(C,"in","SourceGraphic"),u(C,"in2","effect1_dropShadow_618_12297"),u(C,"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",y=!t[0]||null),u(e,"aria-label",w=t[0]||null)},m(k,I){S(k,e,I),p(e,i),p(i,n),p(i,l),p(i,r),p(i,o),p(i,s),p(e,a),p(a,c),p(c,f),p(c,d),p(c,h),p(c,g),p(c,_),p(c,b),p(c,C)},p(k,[I]){I&1&&y!==(y=!k[0]||null)&&u(e,"aria-hidden",y),I&1&&w!==(w=k[0]||null)&&u(e,"aria-label",w)},i:W,o:W,d(k){k&&T(e)}}}function j0(t,e,i){let{ariaLabel:n=""}=e;return t.$$set=l=>{"ariaLabel"in l&&i(0,n=l.ariaLabel)},[n]}class qu extends ye{constructor(e){super(),ke(this,e,j0,q0,_e,{ariaLabel:0})}}var Bl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Z0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nl=function(t){return t&&t.Math==Math&&t},Jn=nl(typeof globalThis=="object"&&globalThis)||nl(typeof window=="object"&&window)||nl(typeof self=="object"&&self)||nl(typeof Bl=="object"&&Bl)||function(){return this}()||Bl||Function("return this")(),uo=function(t){try{return!!t()}catch(e){return!0}},K0=uo,kl=!K0(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),W0=kl,ju=Function.prototype,jr=ju.apply,Zr=ju.call,G0=typeof Reflect=="object"&&Reflect.apply||(W0?Zr.bind(jr):function(){return Zr.apply(jr,arguments)}),Zu=kl,Ku=Function.prototype,rr=Ku.call,Y0=Zu&&Ku.bind.bind(rr,rr),xn=Zu?Y0:function(t){return function(){return rr.apply(t,arguments)}},Wu=xn,Q0=Wu({}.toString),X0=Wu("".slice),yl=function(t){return X0(Q0(t),8,-1)},J0=yl,x0=xn,Gu=function(t){if(J0(t)==="Function")return x0(t)},sr=typeof document=="object"&&document.all,$0=typeof sr=="undefined"&&sr!==void 0,Yu={all:sr,IS_HTMLDDA:$0},Qu=Yu,ed=Qu.all,jn=Qu.IS_HTMLDDA?function(t){return typeof t=="function"||t===ed}:function(t){return typeof t=="function"},Xu={},td=uo,Zo=!td(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),id=kl,ol=Function.prototype.call,Ko=id?ol.bind(ol):function(){return ol.apply(ol,arguments)},Ju={},xu={}.propertyIsEnumerable,$u=Object.getOwnPropertyDescriptor,nd=$u&&!xu.call({1:2},1);Ju.f=nd?function(e){var i=$u(this,e);return!!i&&i.enumerable}:xu;var ec=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},od=xn,ld=uo,rd=yl,Nl=Object,sd=od("".split),ad=ld(function(){return!Nl("z").propertyIsEnumerable(0)})?function(t){return rd(t)=="String"?sd(t,""):Nl(t)}:Nl,hr=function(t){return t==null},ud=hr,cd=TypeError,vr=function(t){if(ud(t))throw cd("Can't call method on "+t);return t},fd=ad,dd=vr,md=function(t){return fd(dd(t))},Kr=jn,tc=Yu,pd=tc.all,Wo=tc.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Kr(t)||t===pd}:function(t){return typeof t=="object"?t!==null:Kr(t)},ic={},Rl=ic,Ol=Jn,hd=jn,Wr=function(t){return hd(t)?t:void 0},nc=function(t,e){return arguments.length<2?Wr(Rl[t])||Wr(Ol[t]):Rl[t]&&Rl[t][e]||Ol[t]&&Ol[t][e]},vd=xn,oc=vd({}.isPrototypeOf),gd=typeof navigator!="undefined"&&String(navigator.userAgent)||"",lc=Jn,Dl=gd,Gr=lc.process,Yr=lc.Deno,Qr=Gr&&Gr.versions||Yr&&Yr.version,Xr=Qr&&Qr.v8,En,vl;Xr&&(En=Xr.split("."),vl=En[0]>0&&En[0]<4?1:+(En[0]+En[1]));!vl&&Dl&&(En=Dl.match(/Edge\/(\d+)/),(!En||En[1]>=74)&&(En=Dl.match(/Chrome\/(\d+)/),En&&(vl=+En[1])));var bd=vl,Jr=bd,_d=uo,wd=Jn,kd=wd.String,rc=!!Object.getOwnPropertySymbols&&!_d(function(){var t=Symbol();return!kd(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Jr&&Jr<41}),yd=rc,sc=yd&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Cd=nc,Td=jn,Sd=oc,Pd=sc,Ed=Object,ac=Pd?function(t){return typeof t=="symbol"}:function(t){var e=Cd("Symbol");return Td(e)&&Sd(e.prototype,Ed(t))},Id=String,Ad=function(t){try{return Id(t)}catch(e){return"Object"}},Ld=jn,Vd=Ad,Md=TypeError,uc=function(t){if(Ld(t))return t;throw Md(Vd(t)+" is not a function")},Bd=uc,Nd=hr,cc=function(t,e){var i=t[e];return Nd(i)?void 0:Bd(i)},zl=Ko,Hl=jn,Fl=Wo,Rd=TypeError,Od=function(t,e){var i,n;if(e==="string"&&Hl(i=t.toString)&&!Fl(n=zl(i,t))||Hl(i=t.valueOf)&&!Fl(n=zl(i,t))||e!=="string"&&Hl(i=t.toString)&&!Fl(n=zl(i,t)))return n;throw Rd("Can't convert object to primitive value")},fc={exports:{}},xr=Jn,Dd=Object.defineProperty,zd=function(t,e){try{Dd(xr,t,{value:e,configurable:!0,writable:!0})}catch(i){xr[t]=e}return e},Hd=Jn,Fd=zd,$r="__core-js_shared__",Ud=Hd[$r]||Fd($r,{}),qd=Ud,es=qd;(fc.exports=function(t,e){return es[t]||(es[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.31.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"});var jd=fc.exports,Zd=vr,Kd=Object,dc=function(t){return Kd(Zd(t))},Wd=xn,Gd=dc,Yd=Wd({}.hasOwnProperty),Cl=Object.hasOwn||function(e,i){return Yd(Gd(e),i)},Qd=xn,Xd=0,Jd=Math.random(),xd=Qd(1 .toString),$d=function(t){return"Symbol("+(t===void 0?"":t)+")_"+xd(++Xd+Jd,36)},e2=Jn,t2=jd,ts=Cl,i2=$d,n2=rc,o2=sc,Eo=e2.Symbol,Ul=t2("wks"),l2=o2?Eo.for||Eo:Eo&&Eo.withoutSetter||i2,Go=function(t){return ts(Ul,t)||(Ul[t]=n2&&ts(Eo,t)?Eo[t]:l2("Symbol."+t)),Ul[t]},r2=Ko,is=Wo,ns=ac,s2=cc,a2=Od,u2=Go,c2=TypeError,f2=u2("toPrimitive"),d2=function(t,e){if(!is(t)||ns(t))return t;var i=s2(t,f2),n;if(i){if(e===void 0&&(e="default"),n=r2(i,t,e),!is(n)||ns(n))return n;throw c2("Can't convert object to primitive value")}return e===void 0&&(e="number"),a2(t,e)},m2=d2,p2=ac,mc=function(t){var e=m2(t,"string");return p2(e)?e:e+""},h2=Jn,os=Wo,ar=h2.document,v2=os(ar)&&os(ar.createElement),g2=function(t){return v2?ar.createElement(t):{}},b2=Zo,_2=uo,w2=g2,pc=!b2&&!_2(function(){return Object.defineProperty(w2("div"),"a",{get:function(){return 7}}).a!=7}),k2=Zo,y2=Ko,C2=Ju,T2=ec,S2=md,P2=mc,E2=Cl,I2=pc,ls=Object.getOwnPropertyDescriptor;Xu.f=k2?ls:function(e,i){if(e=S2(e),i=P2(i),I2)try{return ls(e,i)}catch(n){}if(E2(e,i))return T2(!y2(C2.f,e,i),e[i])};var A2=uo,L2=jn,V2=/#|\.prototype\./,Yo=function(t,e){var i=B2[M2(t)];return i==R2?!0:i==N2?!1:L2(e)?A2(e):!!e},M2=Yo.normalize=function(t){return String(t).replace(V2,".").toLowerCase()},B2=Yo.data={},N2=Yo.NATIVE="N",R2=Yo.POLYFILL="P",O2=Yo,rs=Gu,D2=uc,z2=kl,H2=rs(rs.bind),F2=function(t,e){return D2(t),e===void 0?t:z2?H2(t,e):function(){return t.apply(e,arguments)}},hc={},U2=Zo,q2=uo,j2=U2&&q2(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),Z2=Wo,K2=String,W2=TypeError,vc=function(t){if(Z2(t))return t;throw W2(K2(t)+" is not an object")},G2=Zo,Y2=pc,Q2=j2,ll=vc,ss=mc,X2=TypeError,ql=Object.defineProperty,J2=Object.getOwnPropertyDescriptor,jl="enumerable",Zl="configurable",Kl="writable";hc.f=G2?Q2?function(e,i,n){if(ll(e),i=ss(i),ll(n),typeof e=="function"&&i==="prototype"&&"value"in n&&Kl in n&&!n[Kl]){var l=J2(e,i);l&&l[Kl]&&(e[i]=n.value,n={configurable:Zl in n?n[Zl]:l[Zl],enumerable:jl in n?n[jl]:l[jl],writable:!1})}return ql(e,i,n)}:ql:function(e,i,n){if(ll(e),i=ss(i),ll(n),Y2)try{return ql(e,i,n)}catch(l){}if("get"in n||"set"in n)throw X2("Accessors not supported");return"value"in n&&(e[i]=n.value),e};var x2=Zo,$2=hc,e4=ec,t4=x2?function(t,e,i){return $2.f(t,e,e4(1,i))}:function(t,e,i){return t[e]=i,t},rl=Jn,i4=G0,n4=Gu,o4=jn,l4=Xu.f,r4=O2,ko=ic,s4=F2,yo=t4,as=Cl,a4=function(t){var e=function(i,n,l){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,l)}return i4(t,this,arguments)};return e.prototype=t.prototype,e},u4=function(t,e){var i=t.target,n=t.global,l=t.stat,r=t.proto,o=n?rl:l?rl[i]:(rl[i]||{}).prototype,s=n?ko:ko[i]||yo(ko,i,{})[i],a=s.prototype,c,f,d,h,g,_,b,C,y;for(h in e)c=r4(n?h:i+(l?".":"#")+h,t.forced),f=!c&&o&&as(o,h),_=s[h],f&&(t.dontCallGetSet?(y=l4(o,h),b=y&&y.value):b=o[h]),g=f&&b?b:e[h],!(f&&typeof _==typeof g)&&(t.bind&&f?C=s4(g,rl):t.wrap&&f?C=a4(g):r&&o4(g)?C=n4(g):C=g,(t.sham||g&&g.sham||_&&_.sham)&&yo(C,"sham",!0),yo(s,h,C),r&&(d=i+"Prototype",as(ko,d)||yo(ko,d,{}),yo(ko[d],h,g),t.real&&a&&(c||!a[h])&&yo(a,h,g)))},c4=Wo,f4=yl,d4=Go,m4=d4("match"),p4=function(t){var e;return c4(t)&&((e=t[m4])!==void 0?!!e:f4(t)=="RegExp")},h4=Go,v4=h4("toStringTag"),gc={};gc[v4]="z";var g4=String(gc)==="[object z]",b4=g4,_4=jn,hl=yl,w4=Go,k4=w4("toStringTag"),y4=Object,C4=hl(function(){return arguments}())=="Arguments",T4=function(t,e){try{return t[e]}catch(i){}},S4=b4?hl:function(t){var e,i,n;return t===void 0?"Undefined":t===null?"Null":typeof(i=T4(e=y4(t),k4))=="string"?i:C4?hl(e):(n=hl(e))=="Object"&&_4(e.callee)?"Arguments":n},P4=S4,E4=String,I4=function(t){if(P4(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return E4(t)},A4=vc,L4=function(){var t=A4(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},V4=Ko,M4=Cl,B4=oc,N4=L4,us=RegExp.prototype,R4=function(t){var e=t.flags;return e===void 0&&!("flags"in us)&&!M4(t,"flags")&&B4(us,t)?V4(N4,t):e},gr=xn,O4=dc,D4=Math.floor,Wl=gr("".charAt),z4=gr("".replace),Gl=gr("".slice),H4=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,F4=/\$([$&'`]|\d{1,2})/g,U4=function(t,e,i,n,l,r){var o=i+t.length,s=n.length,a=F4;return l!==void 0&&(l=O4(l),a=H4),z4(r,a,function(c,f){var d;switch(Wl(f,0)){case"$":return"$";case"&":return t;case"`":return Gl(e,0,i);case"'":return Gl(e,o);case"<":d=l[Gl(f,1,-1)];break;default:var h=+f;if(h===0)return c;if(h>s){var g=D4(h/10);return g===0?c:g<=s?n[g-1]===void 0?Wl(f,1):n[g-1]+Wl(f,1):c}d=n[h-1]}return d===void 0?"":d})},q4=u4,j4=Ko,br=xn,cs=vr,Z4=jn,K4=hr,W4=p4,Co=I4,G4=cc,Y4=R4,Q4=U4,X4=Go,J4=X4("replace"),x4=TypeError,bc=br("".indexOf),$4=br("".replace),fs=br("".slice),em=Math.max,ds=function(t,e,i){return i>t.length?-1:e===""?i:bc(t,e,i)};q4({target:"String",proto:!0},{replaceAll:function(e,i){var n=cs(this),l,r,o,s,a,c,f,d,h,g=0,_=0,b="";if(!K4(e)){if(l=W4(e),l&&(r=Co(cs(Y4(e))),!~bc(r,"g")))throw x4("`.replaceAll` does not allow non-global regexes");if(o=G4(e,J4),o)return j4(o,e,n,i);if(l)return $4(Co(n),e,i)}for(s=Co(n),a=Co(e),c=Z4(i),c||(i=Co(i)),f=a.length,d=em(1,f),g=ds(s,a,0);g!==-1;)h=c?Co(i(a,g,s)):Q4(a,s,g,[],void 0,i),b+=fs(s,_,g)+h,_=g+f,g=ds(s,a,g+d);return _<s.length&&(b+=fs(s,_)),b}});var tm=nc,im=tm,nm=im,om=nm("String","replaceAll"),lm=om,rm=lm,sm=rm,am=sm,um=Z0(am);const cm={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"},fm={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"},On=new Map;On.set(ie.InterfaceLanguage.EN,fm);On.set(ie.InterfaceLanguage.RU,cm);const _c=new Map,ms=({language:t,pack:e,fallback:i})=>{if(On.has(t)){const n=On.get(t);On.set(t,{...n,...e})}else On.set(t,e);_c.set(t,i)},ps=t=>On.has(t),wc=(t,e,i,n)=>{var l;const r=On.get(t);let o=r==null?void 0:r[e];if(ie.isNullable(o)){const s=(l=_c.get(t))!==null&&l!==void 0?l:n,a=s?On.get(s):void 0;o=a==null?void 0:a[e]}return ie.isNullable(o)?e+Object.values(i!=null?i:{}).join(" "):i?um(o,/{(\w+?)}/g,(s,a)=>{var c;return(c=i[a])!==null&&c!==void 0?c:""}):o},Q=(t,e)=>{const{interfaceLanguage$:i}=Pt(),n=$e(i),l=gn();return wc(n,t,e,l.defaultLanguage)};var gl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(gl||(gl={}));const dm=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,pm=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,sl="?",hm="X-Sentry-Auth",vm=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function gm(t){if(!t.stack)return null;const e=[],i=t.stack.split(`
|
|
13
|
-
`)
|
|
14
|
-
`).filter(i=>!!i)[0]}function bm(t){try{const e=gm(t);if(e)return e}catch(e){}return{value:kc(t),type:t&&t.name,stacktrace:{frames:[]}}}function _m(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}class wm{constructor(e){if(e&&e.dsn){const i=vm.exec(e.dsn),n=i?i.slice(1):[],l=n[5].split("/"),r=l.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+l.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:[bm(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(hm,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:_m(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function hs(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function km(){return window}class _r extends wm{constructor(e,i=km()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};const{plugins:n=[],beforeSend:l=c=>c,beforeBreadcrumb:r=c=>c,blacklistUrls:o=[],ignoreErrors:s=[],release:a=void 0}=this.options||{};this.plugins=n.map(c=>new c(this)),this.beforeSend=l,this.beforeBreadcrumb=r,this.blacklistUrls=o,this.ignoreErrors=s,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 _r({...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=>hs(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(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>hs(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(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,n)=>{const l=this._state[n],r=Array.isArray(l)?l:null,o=e[n],s=Array.isArray(o)?o:null;return{...i,[n]:r||s?[...r||[],...s||[]]:{...typeof l!="string"?l:{},...typeof o!="string"?o:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}}let al=null;class ur{constructor(e,i,n={}){!al&&e.dsn&&(this.sentryClient=new _r({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ie.Subscription,this.options=e,this.context=n,al=this)}destroy(){var e,i;(e=this.sentryClient)===null||e===void 0||e.destroy(),(i=this.sentrySubscription)===null||i===void 0||i.unsubscribe(),al=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:l,context:r,options:o}=this,{sampleRate:s=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:d}=o,{errorType:h,category:g}=i;if(ie.isNonNullable(g)&&d.includes(g)||ie.isNonNullable(h)&&f.includes(h))return;if(Math.random()<=s||ie.isNonNullable(g)&&c.includes(g)||ie.isNonNullable(h)&&a.includes(h)){Object.keys(i).length&&l.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(n).length)&&l.setExtras({...r,...n});try{h&&l.captureMessage(h,i.fatal?gl.fatal:gl.error),l.report(e)}catch(b){console.error(b)}}}static getInstance(){return al}}var Ao;(function(t){t.AUTO="auto"})(Ao||(Ao={}));var Oe;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed",t.WaitingLive="waitingLive",t.WaitingRecord="waitingRecord"})(Oe||(Oe={}));var Rn;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(Rn||(Rn={}));var ti;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(ti||(ti={}));var Dn;(function(t){t[t.PictureInPicture=0]="PictureInPicture",t[t.DocumentPictureInPicture=1]="DocumentPictureInPicture"})(Dn||(Dn={}));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 ro;(function(t){t.FULL="FULL",t.COUNT="COUNT",t.SHORT="SHORT"})(ro||(ro={}));const yc=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!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Cc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),ym=t=>{const e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Fo=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},Tc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Sc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Cm=t=>{const e=window.screen;return(async l=>e.orientation?e.orientation.lock(l):e.mozLockOrientation?e.mozLockOrientation(l):e.msLockOrientation?e.msLockOrientation(l):Promise.reject())(((l={width:0,height:0})=>l.width<=l.height?"portrait":"landscape")(t))},Tm=()=>({title:Q("hotkey_map_modal_title"),closeBtnText:Q("hotkey_map_modal_close_btn_text"),groups:[{title:Q("hotkey_map_group_title_common"),items:[{description:Q("hotkey_map_item_mute_description"),value:Q("hotkey_map_item_mute_value")},{description:Q("hotkey_map_item_volume_up_description"),value:Q("hotkey_map_item_volume_up_value")},{description:Q("hotkey_map_item_volume_down_description"),value:Q("hotkey_map_item_volume_down_value")},{description:Q("hotkey_map_item_pip_description"),value:Q("hotkey_map_item_pip_value")},{description:Q("hotkey_map_item_full_screen_description"),value:Q("hotkey_map_item_full_screen_value")},{description:Q("hotkey_map_item_show_context_menu_description"),value:Q("hotkey_map_item_show_context_menu_value")},{description:Q("hotkey_map_item_show_hotkey_map_description"),value:Q("hotkey_map_item_show_hotkey_map_value")}]},{title:Q("hotkey_map_group_title_playback"),items:[{description:Q("hotkey_map_item_play_toggle_description"),value:Q("hotkey_map_item_play_toggle_value")},{description:Q("hotkey_map_item_seek_backward_description"),value:Q("hotkey_map_item_seek_backward_value")},{description:Q("hotkey_map_item_seek_forward_description"),value:Q("hotkey_map_item_seek_forward_value")},{description:Q("hotkey_map_item_fast_seek_backward_description"),value:Q("hotkey_map_item_fast_seek_backward_value")},{description:Q("hotkey_map_item_fast_seek_forward_description"),value:Q("hotkey_map_item_fast_seek_forward_value")},{description:Q("hotkey_map_item_rate_down_description"),value:Q("hotkey_map_item_rate_down_value")},{description:Q("hotkey_map_item_rate_up_description"),value:Q("hotkey_map_item_rate_up_value")},{description:Q("hotkey_map_item_prev_frame_description"),value:Q("hotkey_map_item_prev_frame_value")},{description:Q("hotkey_map_item_next_frame_description"),value:Q("hotkey_map_item_next_frame_value")},{description:Q("hotkey_map_item_jump_seek_description"),value:Q("hotkey_map_item_jump_seek_value")}]},{title:Q("hotkey_map_group_title_subtitles"),items:[{description:Q("hotkey_map_item_subtitles_toggle_description"),value:Q("hotkey_map_item_subtitles_toggle_value")}]},{title:Q("hotkey_map_group_title_episodes"),items:[{description:Q("hotkey_map_item_prev_episode_description"),value:ie.isMacLike()?Q("hotkey_map_item_prev_episode_mac_value"):Q("hotkey_map_item_prev_episode_pc_value")},{description:Q("hotkey_map_item_next_episode_description"),value:ie.isMacLike()?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});class wr{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:ie.debounceFn(this.onResize.bind(this),Pu)},this.info={isActive$:new ie.ValueSubject(this.isActive()),type:Dn.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(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)===null||e===void 0?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var i,n;const r=e.pictureInPictureWindow;r&&(this.info.isActive$.next(!0),this.isRequested=!0,r.addEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(i,e))}onLeavePictureInPicture(e){var i,n,l;const o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(i,e),(l=this.playerDummyElement)===null||l===void 0||l.$destroy()}onResize(e){var i,n;(n=(i=this.externalEventHandlers).resize)===null||n===void 0||n.call(i,e)}}function bl(t){return t instanceof wr}function Sm(t){const e=Pt();return fn(()=>{e.getAdmanWrapper().startPostroll()}),[]}class Pm extends ye{constructor(e){super(),ke(this,e,Sm,null,_e,{})}}function Em(t){Ye(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 Im(t){let e=Q("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=ze(e)},m(n,l){S(n,i,l)},p(n,l){l&3&&e!==(e=Q("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&et(i,e)},d(n){n&&T(i)}}}function Am(t){let e,i=Q("skip_ads_now")+"",n,l,r,o,s,a;return{c(){e=P("div"),n=ze(i),l=H(),r=O("svg"),o=O("path"),u(o,"fill-rule","evenodd"),u(o,"clip-rule","evenodd"),u(o,"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(r,"class","icon v-1k4i25s"),u(r,"width","7"),u(r,"height","12"),u(r,"viewBox","0 0 7 12"),u(r,"fill","none"),u(r,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","skip v-1k4i25s")},m(c,f){S(c,e,f),p(e,n),p(e,l),p(e,r),p(r,o),s||(a=ve(e,"click",ct(function(){In(t[2])&&t[2].apply(this,arguments)})),s=!0)},p(c,f){t=c},d(c){c&&T(e),s=!1,a()}}}function Lm(t){let e;function i(r,o){return r[3]?Am:Im}let n=i(t),l=n(t);return{c(){e=P("div"),l.c(),u(e,"class","container v-1k4i25s"),N(e,"container-mobile",t[4]),N(e,"skippable",t[3])},m(r,o){S(r,e,o),l.m(e,null)},p(r,[o]){n===(n=i(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e,null))),o&16&&N(e,"container-mobile",r[4]),o&8&&N(e,"skippable",r[3])},i:W,o:W,d(r){r&&T(e),l.d()}}}function Vm(t,e,i){let n,{position:l=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:o=ie.noop}=e;const a=Pt().ui.isMobile;z(t,a,f=>i(4,n=f));let c;return t.$$set=f=>{"position"in f&&i(0,l=f.position),"secondsToWatchBeforeSkip"in f&&i(1,r=f.secondsToWatchBeforeSkip),"skipAd"in f&&i(2,o=f.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,c=l>0&&l>=r)},[l,r,o,c,n,a]}class Mm extends ye{constructor(e){super(),ke(this,e,Vm,Lm,_e,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Em)}}function Bm(t){Ye(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 Nm(t){let e;return{c(){e=P("button"),e.textContent=`${Q("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(i,n){S(i,e,n)},p:W,i:W,o:W,d(i){i&&T(e)}}}class Rm extends ye{constructor(e){super(),ke(this,e,null,Nm,_e,{},Bm)}}function Om(t){Ye(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 Fp=Object.create;var br=Object.defineProperty;var Hp=Object.getOwnPropertyDescriptor;var zp=Object.getOwnPropertyNames;var Up=Object.getPrototypeOf,qp=Object.prototype.hasOwnProperty;var Kp=(i,e,t)=>e in i?br(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Wp=(i,e)=>{for(var t in e)br(i,t,{get:e[t],enumerable:!0})},dc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of zp(e))!qp.call(i,o)&&o!==t&&br(i,o,{get:()=>e[o],enumerable:!(n=Hp(e,o))||n.enumerable});return i};var mc=(i,e,t)=>(t=i!=null?Fp(Up(i)):{},dc(e||!i||!i.__esModule?br(t,"default",{value:i,enumerable:!0}):t,i)),Zp=i=>dc(br({},"__esModule",{value:!0}),i);var Ni=(i,e,t)=>(Kp(i,typeof e!="symbol"?e+"":e,t),t);var N5={};Wp(N5,{GridTypes:()=>lo,InterfaceLanguage:()=>pr.InterfaceLanguage,VERSION:()=>Po,VKNumericLanguage:()=>pr.VKNumericLanguage,VideoFormat:()=>fs.VideoFormat,VideoQuality:()=>fs.VideoQuality,loadVKLangPack:()=>pr.loadVKLangPack,registerPlayerWebComponent:()=>R5});module.exports=Zp(N5);function R(){}function ps(i,e){for(let t in e)i[t]=e[t];return i}function hs(i){return i()}function qr(){return Object.create(null)}function Ye(i){i.forEach(hs)}function gi(i){return typeof i=="function"}function G(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ur;function _s(i,e){return Ur||(Ur=document.createElement("a")),Ur.href=e,i===Ur.href}function pc(i){return Object.keys(i).length===0}function Ut(i,...e){if(i==null){for(let n of e)n(void 0);return R}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ze(i){let e;return Ut(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Ut(e,t))}function Wi(i,e,t,n){if(i){let o=hc(i,e,t,n);return i[0](o)}}function hc(i,e,t,n){return i[1]&&n?ps(t.ctx.slice(),i[1](n(e))):t.ctx}function Zi(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 s=[],r=Math.max(e.dirty.length,o.length);for(let l=0;l<r;l+=1)s[l]=e.dirty[l]|o[l];return s}return e.dirty|o}return e.dirty}function Gi(i,e,t,n,o,s){if(o){let r=hc(e,t,n,s);i.p(r,o)}}function ji(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 _c(i){return i==null?"":i}var wo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Kr=class i{constructor(e){Ni(this,"_listeners","WeakMap"in wo?new WeakMap:void 0);Ni(this,"_observer");Ni(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Kr.entries="WeakMap"in wo?new WeakMap:void 0;var bc=!1;function gc(){bc=!0}function vc(){bc=!1}function d(i,e){i.appendChild(e)}function ve(i,e,t){let n=yc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,xp(n,o)}}function yc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function xp(i,e){return d(i.head||i,e),e.sheet}function y(i,e,t){i.insertBefore(e,t||null)}function v(i){i.parentNode&&i.parentNode.removeChild(i)}function Di(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 V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ie(i){return document.createTextNode(i)}function N(){return Ie(" ")}function Xe(){return Ie("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function St(i){return function(e){return e.preventDefault(),i.call(this,e)}}function $e(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 wc(i){return Array.from(i.childNodes)}function ze(i,e){e=""+e,i.data!==e&&(i.data=e)}function Tt(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Wr;function Yp(){if(Wr===void 0){Wr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Wr=!0}}return Wr}function qo(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=Yp(),s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=de(n.contentWindow,"resize",e),e()}),d(i,n),()=>{(o||s&&n.contentWindow)&&s(),v(n)}}function L(i,e,t){i.classList.toggle(e,!!t)}function kc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function gn(i,e){return new i(e)}var ro;function Xn(i){ro=i}function Ko(){if(!ro)throw new Error("Function called outside component initialization");return ro}function Pt(i){Ko().$$.on_mount.push(i)}function Hn(i){Ko().$$.on_destroy.push(i)}function Wo(i,e){return Ko().$$.context.set(i,e),e}function Zo(i){return Ko().$$.context.get(i)}function gr(){return Ko().$$.context}function Cn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var ko=[];var me=[],jo=[],gs=[],Sc=Promise.resolve(),vs=!1;function ys(){vs||(vs=!0,Sc.then(Zr))}function Vn(){return ys(),Sc}function zn(i){jo.push(i)}function Me(i){gs.push(i)}var bs=new Set,Go=0;function Zr(){if(Go!==0)return;let i=ro;do{try{for(;Go<ko.length;){let e=ko[Go];Go++,Xn(e),t2(e.$$)}}catch(e){throw ko.length=0,Go=0,e}for(Xn(null),ko.length=0,Go=0;me.length;)me.pop()();for(let e=0;e<jo.length;e+=1){let t=jo[e];bs.has(t)||(bs.add(t),t())}jo.length=0}while(ko.length);for(;gs.length;)gs.pop()();vs=!1,bs.clear(),Xn(i)}function t2(i){if(i.fragment!==null){i.update(),Ye(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(zn)}}function Tc(i){let e=[],t=[];jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),jo=e}var Gr=new Set,Co;function ce(){Co={r:0,c:[],p:Co}}function fe(){Co.r||Ye(Co.c),Co=Co.p}function m(i,e){i&&i.i&&(Gr.delete(i),i.i(e))}function h(i,e,t,n){if(i&&i.o){if(Gr.has(i))return;Gr.add(i),Co.c.push(()=>{Gr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Pc(i,e){let t={},n={},o={$$scope:1},s=i.length;for(;s--;){let r=i[s],l=e[s];if(l){for(let a in r)a in l||(n[a]=1);for(let a in l)o[a]||(t[a]=l[a],o[a]=1);i[s]=l}else for(let a in r)o[a]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Ic(i){return typeof i=="object"&&i!==null?i:{}}var i2=["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"],n2=new Set([...i2]);function Ve(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),zn(()=>{let s=i.$$.on_mount.map(hs).filter(gi);i.$$.on_destroy?i.$$.on_destroy.push(...s):Ye(s),i.$$.on_mount=[]}),o.forEach(zn)}function F(i,e){let t=i.$$;t.fragment!==null&&(Tc(t.after_update),Ye(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function r2(i,e){i.$$.dirty[0]===-1&&(ko.push(i),ys(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function X(i,e,t,n,o,s,r,l=[-1]){let a=ro;Xn(i);let c=i.$$={fragment:null,ctx:[],props:s,update:R,not_equal:o,bound:qr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:qr(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};r&&r(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(p,_,...g)=>{let b=g.length?g[0]:_;return c.ctx&&o(c.ctx[p],c.ctx[p]=b)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](b),f&&r2(i,p)),_}):[],c.update(),f=!0,Ye(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){gc();let p=wc(e.target);c.fragment&&c.fragment.l(p),p.forEach(v)}else c.fragment&&c.fragment.c();e.intro&&m(i.$$.fragment),O(i,e.target,e.anchor),vc(),Zr()}Xn(a)}var l2;typeof HTMLElement=="function"&&(l2=class extends HTMLElement{constructor(e,t,n){super();Ni(this,"$$componentCtor");Ni(this,"$$slots");Ni(this,"$$component");Ni(this,"$$connected",!1);Ni(this,"$$data",{});Ni(this,"$$reflecting",!1);Ni(this,"$$props_definition",{});Ni(this,"$$listeners",{});Ni(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let t=function(s){return()=>{let r;return{c:function(){r=document.createElement("slot"),s!=="default"&&r.setAttribute("name",s)},m:function(c,f){y(c,r,f)},d:function(c){c&&v(r)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=kc(this);for(let s of this.$$slots)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let r=this.$$get_prop_name(s.name);r in this.$$data||(this.$$data[r]=Ec(r,s.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:n,$$scope:{ctx:[]}}});for(let s in this.$$listeners)for(let r of this.$$listeners[s]){let l=this.$$component.$on(s,r);this.$$listener_unsubscribe_fns.set(r,l)}this.$$listeners={}}}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=Ec(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function Ec(i,e,t,n){var s;let o=(s=t[i])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Ni(this,"$$");Ni(this,"$$set")}$destroy(){F(this,1),this.$destroy=R}$on(e,t){if(!gi(t))return R;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&&!pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Mc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Mc);var _L=require("@vkontakte/videoplayer-core"),Un=require("@vkontakte/videoplayer-shared"),Xm=require("@vkontakte/videoplayer-statistics");var xo=require("@vkontakte/videoplayer-shared");var s2={isMobile:void 0,defaultLanguage:xo.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:xo.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}},Vc=i=>(0,xo.fillWithDefault)(i,s2),Lc=i=>Wo("ui-config",i),Rt=()=>Zo("ui-config");var vr="vk_player_debug_panel_opened";var Ac="videoplayer",Bc="videoplayer";var Wn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Rc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Nc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Dc=new Set(["ShiftRight","ShiftLeft"]);var Oc=["TIMELINE"],yr=[...Oc,"GRAPH_BUTTON"],ws=[...Oc,"PLAY_BUTTON"],jr=[...yr,"PLAY_BUTTON"];var lo=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(lo||{}),To={xs:0,s:1,m:2,l:3,xl:4};var Yo=[];function Ln(i,e){return{subscribe:Ee(i,e).subscribe}}function Ee(i,e=R){let t,n=new Set;function o(l){if(G(i,l)&&(i=l,t)){let a=!Yo.length;for(let c of n)c[1](),Yo.push(c,i);if(a){for(let c=0;c<Yo.length;c+=2)Yo[c][0](Yo[c+1]);Yo.length=0}}}function s(l){o(l(i))}function r(l,a=R){let c=[l,a];return n.add(c),n.size===1&&(t=e(o,s)||R),l(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:s,subscribe:r}}function ii(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 s=e.length<2;return Ln(t,(r,l)=>{let a=!1,c=[],f=0,p=R,_=()=>{if(f)return;p();let b=e(n?c[0]:c,r,l);s?r(b):p=gi(b)?b:R},g=o.map((b,w)=>Ut(b,S=>{c[w]=S,f&=~(1<<w),a&&_()},()=>{f|=1<<w}));return a=!0,_(),function(){Ye(g),p(),a=!1}})}var wr=require("@vkontakte/videoplayer-shared"),Fc=require("@vkontakte/videoplayer-core"),Hc=require("@vkontakte/videoplayer-statistics");var xr="prod",Po="1.1.38-dev.1460d424.0";var Yr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var zc=Symbol("storeContext"),Uc=Symbol("microStoresContext"),qc=(i,e)=>{Wo(zc,i),Wo(Uc,e),xr==="dev"&&(window.app={store:i,microStores:e})},je=()=>{let i=Zo(zc);return(0,wr.assertNonNullable)(i,"Store context is empty!"),i},An=()=>{let i=Zo(Uc);return(0,wr.assertNonNullable)(i,"MicroStores context is empty!"),i},wt=(i,e)=>ks(i,i.getValue(),e),ks=(i,e,t)=>Ln(e,n=>{let o=i.subscribe(s=>{n(s),t==null||t(s)});return()=>o.unsubscribe()}),Kc=(i,e,t)=>{var b,w,S,I;let n=i.info,{width:o,height:s}=Ze(t.ui.playerSize),r=(w=(b=n.throughputEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?w:0,l=(I=(S=n.rttEstimation$.getValue())==null?void 0:S.toFixed(0))!=null?I:0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Po} (core: ${Fc.VERSION}, stat: ${Hc.VERSION}, shared: ${wr.VERSION})`,f=Ze(t.state.errorLog$),p=f.length?`
|
|
7
|
+
`+f.map((k,C)=>{var q;let E=`${C}) Type: ${k.id}
|
|
8
|
+
`,U=`Message: ${k.message} (${k.thrown})
|
|
9
|
+
`,$=`Trace: ${(q=k.thrown)==null?void 0:q.stack}
|
|
10
|
+
`;return E+U+$}).join(`
|
|
11
|
+
`):void 0,_=t.state.isAudioDisabled?"disabled":Ze(t.state.isAudioAvailable$)?void 0:"unavailable",g={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 @ ${l}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:_,Position:`${Ze(t.state.positionExact$)}s`,State:`${Ze(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${s}`,URL:window.location.href,Errors:p};return Object.entries(g).filter(([k,C])=>C!==void 0).map(([k,C])=>`${k}: ${C}`).join(`
|
|
12
|
+
`)},Wc=(i,e,t)=>{let n=i.info,{width:o,height:s}=Ze(t.ui.playerSize),r={version:Po,viewport:`${o}x${s}`,volume:Math.round(Ze(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-Ze(t.state.positionExact$),0));let p=n.throughputEstimation$.getValue();p&&(r.speed=p);let _=n.videoBitrate$.getValue();_&&(r.bitrate=_);let g=n.currentVideoSegmentLength$.getValue();g&&(r.currentVideoSegmentLength=g);let b=n.currentAudioSegmentLength$.getValue();return b&&(r.currentAudioSegmentLength=b),r},Zc=(i,e)=>Yr(i,e,"mp4");var Bn=require("@vkontakte/videoplayer-shared"),Gc="vk_player_prefer_traffic_saving_enabled",jc="vk_player_preferred_volume",xc="vk_player_prefer_volume_mute",Cs="vk_player_preferred_quality",Yc=i=>i>1?1:i<0?0:i,Ss=i=>Bn.safeStorage.set(jc,Yc(i).toString(10)),Qr=()=>{let i=Bn.safeStorage.get(jc);return(0,Bn.isNullable)(i)?void 0:Yc(parseFloat(i))},Qc=(i,e)=>Bn.safeStorage.set(Cs,JSON.stringify({videoId:i,value:e})),Ts=()=>Bn.safeStorage.remove(Cs),Xc=i=>{let e=Bn.safeStorage.get(Cs);if((0,Bn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ts();return}return n},Jc=(i,e)=>{e?Bn.safeStorage.set(i,"true"):Bn.safeStorage.remove(i)},$c=i=>Bn.safeStorage.get(i)==="true",Xr=i=>Jc(xc,i),ef=()=>$c(xc),tf=i=>Jc(Gc,i),nf=()=>$c(Gc);var Im=require("@vkontakte/videoplayer-core"),rs=require("@vkontakte/videoplayer-shared");function a2(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("path"),r=V("path"),l=V("path"),a=V("defs"),c=V("filter"),f=V("feFlood"),p=V("feColorMatrix"),_=V("feOffset"),g=V("feGaussianBlur"),b=V("feColorMatrix"),w=V("feBlend"),S=V("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(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(l,"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(l,"stroke","#000"),u(l,"stroke-opacity",".12"),u(l,"stroke-width",".5"),u(l,"stroke-linecap","round"),u(l,"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(g,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(w,"in2","BackgroundImageFix"),u(w,"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",I=!i[0]||null),u(e,"aria-label",k=i[0]||null)},m(C,E){y(C,e,E),d(e,t),d(t,n),d(t,o),d(t,s),d(t,r),d(t,l),d(e,a),d(a,c),d(c,f),d(c,p),d(c,_),d(c,g),d(c,b),d(c,w),d(c,S)},p(C,[E]){E&1&&I!==(I=!C[0]||null)&&u(e,"aria-hidden",I),E&1&&k!==(k=C[0]||null)&&u(e,"aria-label",k)},i:R,o:R,d(C){C&&v(e)}}}function u2(i,e,t){let{ariaLabel:n=""}=e;return i.$$set=o=>{"ariaLabel"in o&&t(0,n=o.ariaLabel)},[n]}var Ps=class extends j{constructor(e){super(),X(this,e,u2,a2,G,{ariaLabel:0})}},Jr=Ps;var Qo=require("@vkontakte/videoplayer-shared");var c2={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"},of=c2;var f2={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"},rf=f2;var Jn=new Map;Jn.set(Qo.InterfaceLanguage.EN,rf);Jn.set(Qo.InterfaceLanguage.RU,of);var lf=new Map,Is=({language:i,pack:e,fallback:t})=>{if(Jn.has(i)){let n=Jn.get(i);Jn.set(i,{...n,...e})}else Jn.set(i,e);lf.set(i,t)},Es=i=>Jn.has(i),Ms=(i,e,t,n)=>{var r;let o=Jn.get(i),s=o==null?void 0:o[e];if((0,Qo.isNullable)(s)){let l=(r=lf.get(i))!=null?r:n,a=l?Jn.get(l):void 0;s=a==null?void 0:a[e]}return(0,Qo.isNullable)(s)?e+Object.values(t!=null?t:{}).join(" "):t?s.replaceAll(/{(\w+?)}/g,(l,a)=>{var c;return(c=t[a])!=null?c:""}):s},z=(i,e)=>{let{interfaceLanguage$:t}=je(),n=Ze(t),o=Rt();return Ms(n,i,e,o.defaultLanguage)};var C8=require("@vkontakte/videoplayer-core");var Xo;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Xo||(Xo={}));var d2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,m2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,p2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,$r="?",h2="X-Sentry-Auth",_2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function b2(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let s=0;s<t.length;++s){if(n=d2.exec(t[s]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||$r,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=p2.exec(t[s]))o={filename:n[2],function:n[1]||$r,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=m2.exec(t[s]))s===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||$r,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=$r),e.push(o)}return e.length?{value:sf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function sf(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function g2(i){try{let e=b2(i);if(e)return e}catch(e){}return{value:sf(i),type:i&&i.name,stacktrace:{frames:[]}}}function v2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var el=class{constructor(e){if(e&&e.dsn){let t=_2.exec(e.dsn),n=t?t.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:[g2(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(h2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:v2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function af(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function y2(){return window}var tl=class i extends el{constructor(e,t=y2()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=c=>c,beforeBreadcrumb:s=c=>c,blacklistUrls:r=[],ignoreErrors:l=[],release:a=void 0}=this.options||{};this.plugins=n.map(c=>new c(this)),this.beforeSend=o,this.beforeBreadcrumb=s,this.blacklistUrls=r,this.ignoreErrors=l,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=>af(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>af(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],s=Array.isArray(o)?o:null,r=e[n],l=Array.isArray(r)?r:null;return{...t,[n]:s||l?[...s||[],...l||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Io=require("@vkontakte/videoplayer-shared");var il=null,Eo=class{constructor(e,t,n={}){!il&&e.dsn&&(this.sentryClient=new tl({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Io.Subscription,this.options=e,this.context=n,il=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),il=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:s,options:r}=this,{sampleRate:l=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:_,category:g}=t;if((0,Io.isNonNullable)(g)&&p.includes(g)||(0,Io.isNonNullable)(_)&&f.includes(_))return;if(Math.random()<=l||(0,Io.isNonNullable)(g)&&c.includes(g)||(0,Io.isNonNullable)(_)&&a.includes(_)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(s).length||Object.keys(n).length)&&o.setExtras({...s,...n});try{_&&o.captureMessage(_,t.fatal?Xo.fatal:Xo.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return il}};var nl=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},ol=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),uf=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},so=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},rl=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},ll=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},cf=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 Vs=require("@vkontakte/videoplayer-shared"),ff=()=>({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,Vs.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,Vs.isMacLike)()?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var ao=require("@vkontakte/videoplayer-shared");var Mo=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,ao.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ao.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,ao.getCurrentBrowser)().browser===ao.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(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var o,s;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(s=(o=this.externalEventHandlers).enterpictureinpicture)==null||s.call(o,e))}onLeavePictureInPicture(e){var o,s,r;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(s=(o=this.externalEventHandlers).leavepictureinpicture)==null||s.call(o,e),(r=this.playerDummyElement)==null||r.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function Vo(i){return i instanceof Mo}function w2(i){let e=je();return Pt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Bs=class extends j{constructor(e){super(),X(this,e,w2,null,G,{})}},df=Bs;var mf=require("@vkontakte/videoplayer-shared");function k2(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 C2(i){let e=z("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Ie(e)},m(n,o){y(n,t,o)},p(n,o){o&3&&e!==(e=z("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&ze(t,e)},d(n){n&&v(t)}}}function S2(i){let e,t=z("skip_ads_now")+"",n,o,s,r,l,a;return{c(){e=T("div"),n=Ie(t),o=N(),s=V("svg"),r=V("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(s,"class","icon svelte-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 svelte-1k4i25s")},m(c,f){y(c,e,f),d(e,n),d(e,o),d(e,s),d(s,r),l||(a=de(e,"click",$e(function(){gi(i[2])&&i[2].apply(this,arguments)})),l=!0)},p(c,f){i=c},d(c){c&&v(e),l=!1,a()}}}function T2(i){let e;function t(s,r){return s[3]?S2:C2}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),u(e,"class","container svelte-1k4i25s"),L(e,"container-mobile",i[4]),L(e,"skippable",i[3])},m(s,r){y(s,e,r),o.m(e,null)},p(s,[r]){n===(n=t(s,r))&&o?o.p(s,r):(o.d(1),o=n(s),o&&(o.c(),o.m(e,null))),r&16&&L(e,"container-mobile",s[4]),r&8&&L(e,"skippable",s[3])},i:R,o:R,d(s){s&&v(e),o.d()}}}function P2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:s=0}=e,{skipAd:r=mf.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,s=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,c=o>0&&o>=s)},[o,s,r,c,n,a]}var Rs=class extends j{constructor(e){super(),X(this,e,P2,T2,G,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},k2)}},pf=Rs;function I2(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 E2(i){let e;return{c(){e=T("button"),e.textContent=`${z("visit_advertiser")}`,u(e,"class","svelte-1wy3dql")},m(t,n){y(t,e,n)},p:R,i:R,o:R,d(t){t&&v(e)}}}var Ns=class extends j{constructor(e){super(),X(this,e,null,E2,G,{},I2)}},hf=Ns;function M2(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 vs(t){let e;return{c(){e=P("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(i,n){S(i,e,n)},d(i){i&&T(e)}}}function gs(t){let e,i;return e=new Mm({props:{position:t[5],secondsToWatchBeforeSkip:t[6],skipAd:t[8].actions.internal.skipAd}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&32&&(r.position=n[5]),l&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function bs(t){let e,i;return e=new Pm({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function _s(t){let e,i;return e=new Rm({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Dm(t){let e,i,n,l,r,o,s,a=t[0]&&vs(),c=t[3]&&gs(t),f=t[7]&&bs(),d=t[4]&&_s();return{c(){e=P("div"),a&&a.c(),i=H(),n=P("video"),l=H(),c&&c.c(),r=H(),f&&f.c(),o=H(),d&&d.c(),Ht(n,"width","100%"),Ht(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(h,g){S(h,e,g),a&&a.m(e,null),p(e,i),p(e,n),t[19](n),p(e,l),c&&c.m(e,null),p(e,r),f&&f.m(e,null),p(e,o),d&&d.m(e,null),t[20](e),s=!0},p(h,[g]){h[0]?a||(a=vs(),a.c(),a.m(e,i)):a&&(a.d(1),a=null),h[3]?c?(c.p(h,g),g&8&&m(c,1)):(c=gs(h),c.c(),m(c,1),c.m(e,r)):c&&(fe(),v(c,1,1,()=>{c=null}),de()),h[7]?f?g&128&&m(f,1):(f=bs(),f.c(),m(f,1),f.m(e,o)):f&&(fe(),v(f,1,1,()=>{f=null}),de()),h[4]?d?g&16&&m(d,1):(d=_s(),d.c(),m(d,1),d.m(e,null)):d&&(fe(),v(d,1,1,()=>{d=null}),de())},i(h){s||(m(c),m(f),m(d),s=!0)},o(h){v(c),v(f),v(d),s=!1},d(h){h&&T(e),a&&a.d(),t[19](null),c&&c.d(),f&&f.d(),d&&d.d(),t[20](null)}}}function zm(t,e,i){let n,l,r,o,s,{adsSlotId:a=void 0}=e,{adsParams:c=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:d=0}=e;const h=Pt(),g=h.state.isEnded$;z(t,g,V=>i(7,s=V));const _=h.ui.isMobile;z(t,_,V=>i(0,l=V));let b,C,y=!1;const w=h.ads.playbackState;z(t,w,V=>i(18,n=V));const k=h.ads.canSkip,I=h.ads.position;z(t,I,V=>i(5,r=V));const $=h.ads.secondsToWatchBeforeSkip;z(t,$,V=>i(6,o=V));let q,D;fn(()=>{const V=new AbortController;let X=()=>{V.abort()};const J=h.getAdmanWrapper();if(!a){J.onAdmanLoadingError();return}const{width:B,height:A}=$e(h.ui.playerSize),R=$e(h.ui.isFullscreen),ne=$e(h.ui.isAutoplay),L={width:B,height:A,isFullscreen:R,isAutoplay:ne,adsContainer:b,adsVideoElement:C,slotId:a,params:c,previewParam:f,duration:d};return window.AdmanHTML?(J.initAdman(L),y=!0):J.loadAdman(V.signal).then(()=>{J.initAdman(L),y=!0}).catch(()=>{J.onAdmanLoadingError()}),()=>{!y&&X()}});function te(V){Te[V?"unshift":"push"](()=>{C=V,i(2,C)})}function re(V){Te[V?"unshift":"push"](()=>{b=V,i(1,b)})}return t.$$set=V=>{"adsSlotId"in V&&i(14,a=V.adsSlotId),"adsParams"in V&&i(15,c=V.adsParams),"adsPreviewParam"in V&&i(16,f=V.adsPreviewParam),"duration"in V&&i(17,d=V.duration)},t.$$.update=()=>{t.$$.dirty&262144&&i(3,q=k&&n!==ti.INACTIVE),t.$$.dirty&262145&&i(4,D=l&&n!==ti.INACTIVE)},[l,b,C,q,D,r,o,s,h,g,_,w,I,$,a,c,f,d,n,te,re]}class Pc extends ye{constructor(e){super(),ke(this,e,zm,Dm,_e,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Om)}}const zn=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(r=>r>9?String(r):`0${r}`).join(":")};function Hm(t){let e,i,n;return{c(){e=O("svg"),i=O("path"),n=O("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(l,r){S(l,e,r),p(e,i),p(e,n)},d(l){l&&T(e)}}}function Fm(t){let e,i,n;return{c(){e=O("svg"),i=O("rect"),n=O("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(l,r){S(l,e,r),p(e,i),p(e,n)},d(l){l&&T(e)}}}function Um(t){let e;function i(r,o){return r[0]?Fm:Hm}let n=i(t),l=n(t);return{c(){l.c(),e=bt()},m(r,o){l.m(r,o),S(r,e,o)},p(r,[o]){n!==(n=i(r))&&(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},i:W,o:W,d(r){r&&T(e),l.d(r)}}}function qm(t,e,i){let{isActive:n=!1}=e;return t.$$set=l=>{"isActive"in l&&i(0,n=l.isActive)},[n]}class Ec extends ye{constructor(e){super(),ke(this,e,qm,Um,_e,{isActive:0})}}function jm(t){Ye(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 Zm(t){let e=zn(t[4]-t[3])+"",i;return{c(){i=ze(e)},m(n,l){S(n,i,l)},p(n,l){l&24&&e!==(e=zn(n[4]-n[3])+"")&&et(i,e)},i:W,o:W,d(n){n&&T(i)}}}function Km(t){let e,i,n;return i=new Ec({props:{isActive:!0}}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","thumb-timer-live-icon v-7pnl2h")},m(l,r){S(l,e,r),j(i,e,null),n=!0},p:W,i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function Wm(t){let e,i,n,l,r,o,s;const a=[Km,Zm],c=[];function f(d,h){return d[1]?0:1}return r=f(t),o=c[r]=a[r](t),{c(){e=P("div"),i=P("div"),i.innerHTML='<div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div>',n=H(),l=P("span"),o.c(),u(i,"class","thumb-timer-equalizer v-7pnl2h"),u(l,"class","thumb-timer-text v-7pnl2h"),u(e,"role","timer"),u(e,"class","thumb-timer v-7pnl2h"),u(e,"data-testid","thumb-timer"),N(e,"live",t[1]),N(e,"hidden",t[0]),N(e,"playing",t[2])},m(d,h){S(d,e,h),p(e,i),p(e,n),p(e,l),c[r].m(l,null),s=!0},p(d,[h]){let g=r;r=f(d),r===g?c[r].p(d,h):(fe(),v(c[g],1,1,()=>{c[g]=null}),de(),o=c[r],o?o.p(d,h):(o=c[r]=a[r](d),o.c()),m(o,1),o.m(l,null)),(!s||h&2)&&N(e,"live",d[1]),(!s||h&1)&&N(e,"hidden",d[0]),(!s||h&4)&&N(e,"playing",d[2])},i(d){s||(m(o),s=!0)},o(d){v(o),s=!1},d(d){d&&T(e),c[r].d()}}}function Gm(t,e,i){let{isHidden:n=!1}=e,{isLive:l=!1}=e,{isPlaying:r=!1}=e,{position:o}=e,{duration:s}=e;return t.$$set=a=>{"isHidden"in a&&i(0,n=a.isHidden),"isLive"in a&&i(1,l=a.isLive),"isPlaying"in a&&i(2,r=a.isPlaying),"position"in a&&i(3,o=a.position),"duration"in a&&i(4,s=a.duration)},[n,l,r,o,s]}class Ic extends ye{constructor(e){super(),ke(this,e,Gm,Wm,_e,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},jm)}}const cr=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)}}},ao=t=>{t.stopPropagation(),t.preventDefault()},Ym=t=>{var e;let i=t.previousElementSibling;i||(i=(e=t.parentNode)===null||e===void 0?void 0:e.lastElementChild),i==null||i.focus()},Qm=t=>{var e;let i=t.nextElementSibling;i||(i=(e=t.parentNode)===null||e===void 0?void 0:e.firstElementChild),i==null||i.focus()},Xm=t=>{const e=t.code;return e===Ie.Tab&&!t.shiftKey||e===Ie.ArrowDown},Jm=t=>{const e=t.code;return e===Ie.Tab||e===Ie.ArrowUp},Ac=t=>t.code===Ie.Escape,xm=t=>t.code===Ie.ArrowLeft,Lc=(t,e=!0)=>{const i=t.code;return[Ie.Enter,Ie.Space].includes(i)||!e&&i===Ie.ArrowRight},Vc=t=>{if(Xm(t)){ao(t),Qm(t.target);return}Jm(t)&&(ao(t),Ym(t.target))},kr=t=>(t==null?void 0:t.detail)===0,yr=async(t,e,i)=>{await Xn(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await Xn(),i.set(!1),t.focus())},$m=async(t,e,i)=>{await Xn(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},_l=async(t,e,i)=>{await Xn(),!!t&&e&&i&&(await Xn(),t.firstChild.focus())},ul=async(t,e,i)=>{!!t&&i&&(e.set(!1),setTimeout(()=>{t.focus()},S0))},Mc=(t,e)=>{Vc(t),Ac(t)&&(ao(t),e())},cl=async(t,e,i)=>{if(Lc(t,!1)){ao(t),e(),await Xn();const n=i();n==null||n.focus()}},fl=async(t,e,i,n)=>{if(Vc(t),xm(t)){ao(t),e(),i.set(!0);return}Ac(t)&&(ao(t),n())},ln=(t,e)=>{Lc(t)&&(ao(t),e())},e3=t=>{const e=t.getBoundingClientRect(),i=-14,n=e.left+e.width,l=e.top+i;return{right:n,bottom:l}},t3=t=>{if(!t)return{top:0,left:0};const e=t.getBoundingClientRect(),i=-58,n=Oo,l=e.left+n;return{bottom:e.bottom+i,left:l}};function i3(t){Ye(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 ws(t){var re;let e,i,n,l,r,o,s,a,c=(t[10].features.saveDebugInfoToFile?Q("menu_save_debug"):Q("menu_copy_debug"))+"",f,d,h,g=Q("menu_debug_overlay")+"",_,b,C,y,w=t[10].features.copyVideoLink&&((re=t[9].callbacks)==null?void 0:re.onCopyVideoLink)&&n3(t),k=t[12]&&t[6]!==tt.ChromecastState.CONNECTED&&!t[17]&&ys(t);function I(V,X){return V[4]?l3:o3}let $=I(t),q=$(t),D=t[10].features.videoRotate&&!t[17]&&r3(t),te=t[10].showSupport&&!t[7]&&Cs(t);return{c(){e=P("ul"),w&&w.c(),i=H(),k&&k.c(),n=H(),l=P("li"),q.c(),r=H(),D&&D.c(),o=H(),te&&te.c(),s=H(),a=P("li"),f=ze(c),d=H(),h=P("li"),_=ze(g),u(l,"tabindex","0"),u(l,"role","menuitem"),u(l,"aria-label",Q("aria_label_menu_loop")),u(l,"class","v-1vzqlps"),u(a,"tabindex","0"),u(a,"role","menuitem"),u(a,"aria-label",t[10].features.saveDebugInfoToFile?Q("menu_save_debug"):Q("menu_copy_debug")),u(a,"class","v-1vzqlps"),u(h,"tabindex","0"),u(h,"role","menuitem"),u(h,"aria-label",b=t[8]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable")),u(h,"class","v-1vzqlps"),u(e,"role","menu"),Ht(e,"top",t[3]+"px"),Ht(e,"left",t[2]+"px"),u(e,"class","v-1vzqlps")},m(V,X){S(V,e,X),w&&w.m(e,null),p(e,i),k&&k.m(e,null),p(e,n),p(e,l),q.m(l,null),p(e,r),D&&D.m(e,null),p(e,o),te&&te.m(e,null),p(e,s),p(e,a),p(a,f),p(e,d),p(e,h),p(h,_),t[42](e),C||(y=[ve(l,"click",ct(t[24])),ve(l,"keydown",t[30]),ve(a,"click",ct(t[21])),ve(a,"keydown",t[32]),ve(h,"click",ct(t[22])),ve(h,"keydown",t[33]),ve(e,"contextmenu",ii(t[39])),ve(e,"keydown",t[26])],C=!0)},p(V,X){var J;V[10].features.copyVideoLink&&((J=V[9].callbacks)!=null&&J.onCopyVideoLink)&&w.p(V,X),V[12]&&V[6]!==tt.ChromecastState.CONNECTED&&!V[17]?k?k.p(V,X):(k=ys(V),k.c(),k.m(e,n)):k&&(k.d(1),k=null),$===($=I(V))&&q?q.p(V,X):(q.d(1),q=$(V),q&&(q.c(),q.m(l,null))),V[10].features.videoRotate&&!V[17]&&D.p(V,X),V[10].showSupport&&!V[7]?te?te.p(V,X):(te=Cs(V),te.c(),te.m(e,s)):te&&(te.d(1),te=null),X[0]&256&&b!==(b=V[8]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable"))&&u(h,"aria-label",b),X[0]&8&&Ht(e,"top",V[3]+"px"),X[0]&4&&Ht(e,"left",V[2]+"px")},d(V){V&&T(e),w&&w.d(),k&&k.d(),q.d(),D&&D.d(),te&&te.d(),t[42](null),C=!1,ut(y)}}}function n3(t){let e,i=Q("menu_copy_video_link")+"",n,l,r,o,s,a=!t[5]&&!t[17]&&ks(t);return{c(){e=P("li"),n=ze(i),l=H(),a&&a.c(),r=bt(),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",Q("menu_copy_video_link")),u(e,"class","v-1vzqlps")},m(c,f){S(c,e,f),p(e,n),S(c,l,f),a&&a.m(c,f),S(c,r,f),o||(s=[ve(e,"click",ct(t[40])),ve(e,"keydown",t[27])],o=!0)},p(c,f){!c[5]&&!c[17]?a?a.p(c,f):(a=ks(c),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(c){c&&(T(e),T(l),T(r)),a&&a.d(c),o=!1,ut(s)}}}function ks(t){let e,i=Q("menu_copy_video_link_with_timestamp")+"",n,l,r;return{c(){e=P("li"),n=ze(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",Q("menu_copy_video_link_with_timestamp")),u(e,"class","v-1vzqlps")},m(o,s){S(o,e,s),p(e,n),l||(r=[ve(e,"click",ct(t[41])),ve(e,"keydown",t[28])],l=!0)},p:W,d(o){o&&T(e),l=!1,ut(r)}}}function ys(t){let e,i=Q("menu_pip")+"",n,l,r;return{c(){e=P("li"),n=ze(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",Q("menu_pip")),u(e,"class","v-1vzqlps")},m(o,s){S(o,e,s),p(e,n),l||(r=[ve(e,"click",ct(t[23])),ve(e,"keydown",t[29])],l=!0)},p:W,d(o){o&&T(e),l=!1,ut(r)}}}function o3(t){let e=Q("menu_video_loop_on")+"",i;return{c(){i=ze(e)},m(n,l){S(n,i,l)},p:W,d(n){n&&T(i)}}}function l3(t){let e=Q("menu_video_loop_off")+"",i;return{c(){i=ze(e)},m(n,l){S(n,i,l)},p:W,d(n){n&&T(i)}}}function r3(t){let e,i=Q("menu_video_rotate")+"",n,l,r;return{c(){e=P("li"),n=ze(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",Q("aria_label_menu_rotate")),u(e,"class","v-1vzqlps")},m(o,s){S(o,e,s),p(e,n),l||(r=[ve(e,"click",ct(t[19])),ve(e,"keydown",t[30])],l=!0)},p:W,d(o){o&&T(e),l=!1,ut(r)}}}function Cs(t){let e,i=Q("menu_report")+"",n,l,r;return{c(){e=P("li"),n=ze(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`),u(e,"class","v-1vzqlps")},m(o,s){S(o,e,s),p(e,n),l||(r=[ve(e,"click",ct(t[20])),ve(e,"keydown",t[31])],l=!0)},p:W,d(o){o&&T(e),l=!1,ut(r)}}}function s3(t){let e,i=t[1]&&ws(t);return{c(){i&&i.c(),e=bt()},m(n,l){i&&i.m(n,l),S(n,e,l)},p(n,l){n[1]?i?i.p(n,l):(i=ws(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:W,o:W,d(n){n&&T(e),i&&i.d(n)}}}function a3(t,e,i){var pe;let n,l,r,o,s,a,{visible:c=!1}=e,{supportLink:f}=e,{position:d={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:g=void 0}=e,{menuElementRef:_=void 0}=e,{returnFocus:b}=e,C=0,y=0;const w=Pt(),k=gn(),I=w.ui.contextMenu.visible$,$=w.ui.debugPanelVisible;z(t,$,M=>i(8,a=M));const q=w.webApi.pictureInPictureApi,D=(pe=w.webApi.pictureInPictureApi)==null?void 0:pe.info.isActive$;z(t,D,M=>i(7,s=M));const te=w.state.chromecastState$;z(t,te,M=>i(6,o=M));const re=w.state.isLive$;z(t,re,M=>i(5,r=M));const V=w.state.positionExact$;z(t,V,M=>i(43,n=M));const X=w.state.isInteractive,J=w.state.looped$;z(t,J,M=>i(4,l=M));const B=()=>{I.set(!1)},A=(M,Se)=>{if(!_||!h||!g)return;const se=_.getBoundingClientRect(),Ce=h.getBoundingClientRect();i(2,C=M-Ce.left),i(3,y=Se-Ce.top),C+se.width>Ce.width&&i(2,C=Ce.width-se.width),y+se.height>Ce.height&&i(3,y=Ce.height-se.height),i(2,C=Math.max(C,0)),i(3,y=Math.max(y,0))},R=()=>{B(),w.actions.internal.videoRotate()},ne=()=>{window.open(f,"_blank"),B(),w.actions.internal.pause()},L=()=>{const M=w.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){const Se=new Blob([...M],{type:"plain/text"}),se=window.URL.createObjectURL(Se);Lu(se,"vk_player_debug_info","txt")}else cr(w.actions.internal.getDebugTextData());B(),b==null||b()},G=()=>{$.set(!0),B(),b==null||b()},we=async()=>{try{q!=null&&q.isActive()?await(q==null?void 0:q.remove()):await(q==null?void 0:q.request())}finally{B(),b==null||b()}},Pe=()=>{w.actions.internal.setLooped(!l),B()},Ae=(M=!1)=>{var Se,se;if((Se=w.callbacks)!=null&&Se.onCopyVideoLink){const Ce=(se=w.callbacks)==null?void 0:se.onCopyVideoLink(M,n);Ce&&cr(Ce)}B()},Be=M=>{Mc(M,B)},Ue=M=>{ln(M,()=>Ae())},me=M=>{ln(M,()=>Ae(!0))},F=M=>{ln(M,()=>we())},ue=M=>{ln(M,()=>R())},be=M=>{ln(M,()=>ne())},We=M=>{ln(M,()=>L())},Qe=M=>{ln(M,()=>G())};function ce(M){so.call(this,t,M)}const Ee=()=>Ae(),De=()=>Ae(!0);function Ze(M){Te[M?"unshift":"push"](()=>{_=M,i(0,_)})}return t.$$set=M=>{"visible"in M&&i(1,c=M.visible),"supportLink"in M&&i(34,f=M.supportLink),"position"in M&&i(35,d=M.position),"playerContainerRef"in M&&i(36,h=M.playerContainerRef),"controlsContainerRef"in M&&i(37,g=M.controlsContainerRef),"menuElementRef"in M&&i(0,_=M.menuElementRef),"returnFocus"in M&&i(38,b=M.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&1|t.$$.dirty[1]&112&&_&&h&&g){const{top:M,left:Se,bottom:se,right:Ce}=d;let Ke=Se!=null?Se:0,ot=M!=null?M:0;const rt=_.getBoundingClientRect();ie.isNullable(Se)&&!ie.isNullable(Ce)&&(Ke=Ce-rt.width),ie.isNullable(M)&&!ie.isNullable(se)&&(ot=se-rt.height),Ke=Math.max(Ke,0),ot=Math.max(ot,0),A(Ke,ot)}},[_,c,C,y,l,r,o,s,a,w,k,$,q,D,te,re,V,X,J,R,ne,L,G,we,Pe,Ae,Be,Ue,me,F,ue,be,We,Qe,f,d,h,g,b,ce,Ee,De,Ze]}class u3 extends ye{constructor(e){super(),ke(this,e,a3,s3,_e,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},i3,[-1,-1])}}class c3{constructor(e){this.value=e,this.next=null}}class Yl{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new c3(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 f3(t){Ye(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function d3(t){let e,i;return{c(){e=P("div"),i=P("canvas"),u(i,"class","v-1ssl9eb"),u(e,"class","container v-1ssl9eb")},m(n,l){S(n,e,l),p(e,i),t[3](i)},p:W,i:W,o:W,d(n){n&&T(e),t[3](null)}}}const Ql=16,Xl=120,Ts=60;function m3(t,e,i,n,l){l===0&&(l=1),t.fillStyle="#fff",t.fillRect(e,i,n,l)}function p3(t,e,i){let{values:n=[]}=e,l,r;const o=Xl/Ts;fn(()=>{i(0,l.width=Xl,l),i(0,l.height=Ql,l),i(2,r=l.getContext("2d"))});function s(a){Te[a?"unshift":"push"](()=>{l=a,i(0,l)})}return t.$$set=a=>{"values"in a&&i(1,n=a.values)},t.$$.update=()=>{if(t.$$.dirty&6&&r){let a=n[0];for(let f=1;f<n.length;f++)n[f]>a&&(a=n[f]);r.clearRect(0,0,Xl,Ql);let c=Ts-1;for(let f=n.length-1;f>=0;f--){const d=c*o,h=a>0?Ql*(n[f]/a):0;m3(r,d,0,o,h),c--}}},[l,n,r,s]}class Cr extends ye{constructor(e){super(),ke(this,e,p3,d3,_e,{values:1},f3)}}function h3(t){Ye(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 Ss(t){let e,i,n,l,r=t[0].id+"",o;return{c(){e=P("div"),i=P("div"),i.textContent="Video id",n=H(),l=P("span"),o=ze(r),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(s,a){S(s,e,a),p(e,i),p(e,n),p(e,l),p(l,o)},p(s,a){a&1&&r!==(r=s[0].id+"")&&et(o,r)},d(s){s&&T(e)}}}function Ps(t){let e,i,n,l,r=t[0].provider+"",o;return{c(){e=P("div"),i=P("div"),i.textContent="Provider",n=H(),l=P("span"),o=ze(r),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(s,a){S(s,e,a),p(e,i),p(e,n),p(e,l),p(l,o)},p(s,a){a&1&&r!==(r=s[0].provider+"")&&et(o,r)},d(s){s&&T(e)}}}function Es(t){let e,i,n,l,r=t[0].viewport+"",o;return{c(){e=P("div"),i=P("div"),i.textContent="Viewport",n=H(),l=P("span"),o=ze(r),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(s,a){S(s,e,a),p(e,i),p(e,n),p(e,l),p(l,o)},p(s,a){a&1&&r!==(r=s[0].viewport+"")&&et(o,r)},d(s){s&&T(e)}}}function Is(t){let e,i,n,l,r=t[0].videoSize+"",o;return{c(){e=P("div"),i=P("div"),i.textContent="Video size",n=H(),l=P("span"),o=ze(r),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(s,a){S(s,e,a),p(e,i),p(e,n),p(e,l),p(l,o)},p(s,a){a&1&&r!==(r=s[0].videoSize+"")&&et(o,r)},d(s){s&&T(e)}}}function As(t){let e,i,n,l,r=t[0].cdn+"",o;return{c(){e=P("div"),i=P("div"),i.textContent="CDN host",n=H(),l=P("span"),o=ze(r),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(s,a){S(s,e,a),p(e,i),p(e,n),p(e,l),p(l,o)},p(s,a){a&1&&r!==(r=s[0].cdn+"")&&et(o,r)},d(s){s&&T(e)}}}function Ls(t){let e,i,n,l,r=t[0].volume+"",o,s;return{c(){e=P("div"),i=P("div"),i.textContent="Volume",n=H(),l=P("span"),o=ze(r),s=ze(" %"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(a,c){S(a,e,c),p(e,i),p(e,n),p(e,l),p(l,o),p(l,s)},p(a,c){c&1&&r!==(r=a[0].volume+"")&&et(o,r)},d(a){a&&T(e)}}}function Vs(t){let e,i,n,l,r=t[0].buffer.toFixed(2)+"",o,s;return{c(){e=P("div"),i=P("div"),i.textContent="Buffer",n=H(),l=P("span"),o=ze(r),s=ze(" s"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(a,c){S(a,e,c),p(e,i),p(e,n),p(e,l),p(l,o),p(l,s)},p(a,c){c&1&&r!==(r=a[0].buffer.toFixed(2)+"")&&et(o,r)},d(a){a&&T(e)}}}function Ms(t){let e,i,n,l,r=[{value:t[0].currentVideoSegmentLength,title:"Video"},{value:t[0].currentAudioSegmentLength,title:"Audio"}].filter(Rs).map(Os).join(" / ")+"",o;return{c(){e=P("div"),i=P("div"),i.textContent="Segment",n=H(),l=P("span"),o=ze(r),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(s,a){S(s,e,a),p(e,i),p(e,n),p(e,l),p(l,o)},p(s,a){a&1&&r!==(r=[{value:s[0].currentVideoSegmentLength,title:"Video"},{value:s[0].currentAudioSegmentLength,title:"Audio"}].filter(Rs).map(Os).join(" / ")+"")&&et(o,r)},d(s){s&&T(e)}}}function Bs(t){let e,i,n,l,r,o,s=t[0].speed.toFixed(2)+"",a,c,f;return l=new Cr({props:{values:t[5]}}),{c(){e=P("div"),i=P("div"),i.textContent="Network",n=H(),K(l.$$.fragment),r=H(),o=P("span"),a=ze(s),c=ze(" Kbps"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(d,h){S(d,e,h),p(e,i),p(e,n),j(l,e,null),p(e,r),p(e,o),p(o,a),p(o,c),f=!0},p(d,h){const g={};h&32&&(g.values=d[5]),l.$set(g),(!f||h&1)&&s!==(s=d[0].speed.toFixed(2)+"")&&et(a,s)},i(d){f||(m(l.$$.fragment,d),f=!0)},o(d){v(l.$$.fragment,d),f=!1},d(d){d&&T(e),Z(l)}}}function Ns(t){let e,i,n,l,r,o,s=t[0].bitrate.toFixed(2)+"",a,c,f;return l=new Cr({props:{values:t[6]}}),{c(){e=P("div"),i=P("div"),i.textContent="V bitrate",n=H(),K(l.$$.fragment),r=H(),o=P("span"),a=ze(s),c=ze(" Kbps"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(d,h){S(d,e,h),p(e,i),p(e,n),j(l,e,null),p(e,r),p(e,o),p(o,a),p(o,c),f=!0},p(d,h){const g={};h&64&&(g.values=d[6]),l.$set(g),(!f||h&1)&&s!==(s=d[0].bitrate.toFixed(2)+"")&&et(a,s)},i(d){f||(m(l.$$.fragment,d),f=!0)},o(d){v(l.$$.fragment,d),f=!1},d(d){d&&T(e),Z(l)}}}function v3(t){let e,i,n,l,r,o,s,a,c=t[0].version+"",f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V,X,J,B,A,R,ne,L,G,we,Pe,Ae,Be,Ue,me,F=t[0].id&&Ss(t),ue=t[0].provider&&Ps(t),be=t[0].viewport&&Es(t),We=t[0].videoSize&&Is(t),Qe=t[0].cdn&&As(t),ce=t[0].volume&&Ls(t),Ee=t[0].buffer&&Vs(t),De=(t[0].currentVideoSegmentLength||t[0].currentAudioSegmentLength)&&Ms(t),Ze=t[0].speed&&Bs(t),pe=t[0].bitrate&&Ns(t);return G=new Cr({props:{values:t[4]}}),{c(){e=P("div"),i=P("button"),i.textContent="[x]",n=H(),l=P("div"),r=P("div"),o=P("div"),o.textContent="Version",s=H(),a=P("span"),f=ze(c),d=H(),F&&F.c(),h=H(),ue&&ue.c(),g=H(),be&&be.c(),_=H(),We&&We.c(),b=H(),Qe&&Qe.c(),C=H(),ce&&ce.c(),y=H(),Ee&&Ee.c(),w=H(),De&&De.c(),k=H(),I=P("div"),$=P("div"),$.textContent="Dropped",q=H(),D=P("span"),te=ze(t[2]),re=ze(" / "),V=ze(t[1]),X=ze(" frames"),J=H(),Ze&&Ze.c(),B=H(),pe&&pe.c(),A=H(),R=P("div"),ne=P("div"),ne.textContent="FPS",L=H(),K(G.$$.fragment),we=H(),Pe=P("span"),Ae=ze(t[3]),u(i,"class","close v-1fypj5i"),u(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(o,"class","v-1fypj5i"),u(r,"class","v-1fypj5i"),u($,"class","v-1fypj5i"),u(I,"class","v-1fypj5i"),u(ne,"class","v-1fypj5i"),u(R,"class","v-1fypj5i"),u(l,"class","content v-1fypj5i"),u(e,"class","container v-1fypj5i"),u(e,"role","region"),u(e,"aria-label",Q("aria_label_debug_panel")),N(e,"container-mobile",t[7])},m(M,Se){S(M,e,Se),p(e,i),p(e,n),p(e,l),p(l,r),p(r,o),p(r,s),p(r,a),p(a,f),p(l,d),F&&F.m(l,null),p(l,h),ue&&ue.m(l,null),p(l,g),be&&be.m(l,null),p(l,_),We&&We.m(l,null),p(l,b),Qe&&Qe.m(l,null),p(l,C),ce&&ce.m(l,null),p(l,y),Ee&&Ee.m(l,null),p(l,w),De&&De.m(l,null),p(l,k),p(l,I),p(I,$),p(I,q),p(I,D),p(D,te),p(D,re),p(D,V),p(D,X),p(l,J),Ze&&Ze.m(l,null),p(l,B),pe&&pe.m(l,null),p(l,A),p(l,R),p(R,ne),p(R,L),j(G,R,null),p(R,we),p(R,Pe),p(Pe,Ae),Be=!0,Ue||(me=ve(i,"click",ct(t[9])),Ue=!0)},p(M,[Se]){(!Be||Se&1)&&c!==(c=M[0].version+"")&&et(f,c),M[0].id?F?F.p(M,Se):(F=Ss(M),F.c(),F.m(l,h)):F&&(F.d(1),F=null),M[0].provider?ue?ue.p(M,Se):(ue=Ps(M),ue.c(),ue.m(l,g)):ue&&(ue.d(1),ue=null),M[0].viewport?be?be.p(M,Se):(be=Es(M),be.c(),be.m(l,_)):be&&(be.d(1),be=null),M[0].videoSize?We?We.p(M,Se):(We=Is(M),We.c(),We.m(l,b)):We&&(We.d(1),We=null),M[0].cdn?Qe?Qe.p(M,Se):(Qe=As(M),Qe.c(),Qe.m(l,C)):Qe&&(Qe.d(1),Qe=null),M[0].volume?ce?ce.p(M,Se):(ce=Ls(M),ce.c(),ce.m(l,y)):ce&&(ce.d(1),ce=null),M[0].buffer?Ee?Ee.p(M,Se):(Ee=Vs(M),Ee.c(),Ee.m(l,w)):Ee&&(Ee.d(1),Ee=null),M[0].currentVideoSegmentLength||M[0].currentAudioSegmentLength?De?De.p(M,Se):(De=Ms(M),De.c(),De.m(l,k)):De&&(De.d(1),De=null),(!Be||Se&4)&&et(te,M[2]),(!Be||Se&2)&&et(V,M[1]),M[0].speed?Ze?(Ze.p(M,Se),Se&1&&m(Ze,1)):(Ze=Bs(M),Ze.c(),m(Ze,1),Ze.m(l,B)):Ze&&(fe(),v(Ze,1,1,()=>{Ze=null}),de()),M[0].bitrate?pe?(pe.p(M,Se),Se&1&&m(pe,1)):(pe=Ns(M),pe.c(),m(pe,1),pe.m(l,A)):pe&&(fe(),v(pe,1,1,()=>{pe=null}),de());const se={};Se&16&&(se.values=M[4]),G.$set(se),(!Be||Se&8)&&et(Ae,M[3]),(!Be||Se&128)&&N(e,"container-mobile",M[7])},i(M){Be||(m(Ze),m(pe),m(G.$$.fragment,M),Be=!0)},o(M){v(Ze),v(pe),v(G.$$.fragment,M),Be=!1},d(M){M&&T(e),F&&F.d(),ue&&ue.d(),be&&be.d(),We&&We.d(),Qe&&Qe.d(),ce&&ce.d(),Ee&&Ee.d(),De&&De.d(),Ze&&Ze.d(),pe&&pe.d(),Z(G),Ue=!1,me()}}}const Rs=({value:t})=>t,Os=({value:t,title:e})=>`${e} ${((t!=null?t:0)/1e3).toFixed(2)} s`;function g3(t,e,i){let n;const l=Pt(),r=l.ui.debugPanelVisible,o=l.ui.isMobile;z(t,o,k=>i(7,n=k));const s=()=>{ie.safeStorage.remove(lr),r.set(!1)};let a=l.actions.internal.getDebugPanelData(),c=l.actions.internal.getVideoElement(),f=0,d=0,h=0;const g=new Yl(60),_=new Yl(60),b=new Yl(60);let C=[],y=[],w=[];return fn(()=>{ie.safeStorage.set(lr,"true"),l.actions.internal.startLogging(),c&&(i(2,d=c.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=c.getVideoPlaybackQuality().totalVideoFrames));const k=window.setInterval(()=>{i(0,a=l.actions.internal.getDebugPanelData())},500);let I;return c&&(I=window.setInterval(()=>{if(c){i(2,d=c.getVideoPlaybackQuality().droppedVideoFrames);const $=c.getVideoPlaybackQuality().totalVideoFrames;i(3,h=$-f),i(1,f=$),g.push(h),a.speed&&_.push(a.speed),a.bitrate&&b.push(a.bitrate),i(4,C=g.getValuesFromBottom()),i(5,y=_.getValuesFromBottom()),i(6,w=b.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(k),I&&clearInterval(I)}}),[a,f,d,h,C,y,w,n,o,s]}class Bc extends ye{constructor(e){super(),ke(this,e,g3,v3,_e,{},h3)}}function b3(t){Ye(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 _3(t){let e,i,n;return{c(){e=P("div"),u(e,"class","close v-1ome55p")},m(l,r){S(l,e,r),i||(n=ve(e,"click",ct(t[0])),i=!0)},p:W,i:W,o:W,d(l){l&&T(e),i=!1,n()}}}function w3(t){function e(i){so.call(this,t,i)}return[e]}class k3 extends ye{constructor(e){super(),ke(this,e,w3,_3,_e,{},b3)}}function y3(t){Ye(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 C3(t){let e,i,n,l,r,o,s;return{c(){e=P("div"),i=P("canvas"),n=H(),l=O("svg"),r=O("g"),o=O("g"),s=O("path"),u(i,"class","timer-canvas v-8jhsry"),u(i,"width","100"),u(i,"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(o,"fill-rule","nonzero"),u(r,"fill","none"),u(r,"fill-rule","evenodd"),u(l,"class","timer-play-icon v-8jhsry"),u(l,"viewBox","0 0 24 24"),u(l,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","timer v-8jhsry")},m(a,c){S(a,e,c),p(e,i),t[2](i),p(e,n),p(e,l),p(l,r),p(r,o),p(o,s)},p:W,i:W,o:W,d(a){a&&T(e),t[2](null)}}}const T3=5e3;function S3(t,e,i){let{onTimerEnded:n=ie.noop}=e,l;fn(()=>{let o;const s=l.getContext("2d");if(!s)return;s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff";const a=Date.now(),c=()=>{const f=(Date.now()-a)/T3;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(),o=requestAnimationFrame(c)):n()};return o=requestAnimationFrame(c),()=>{cancelAnimationFrame(o)}});function r(o){Te[o?"unshift":"push"](()=>{l=o,i(0,l)})}return t.$$set=o=>{"onTimerEnded"in o&&i(1,n=o.onTimerEnded)},[l,n,r]}class P3 extends ye{constructor(e){super(),ke(this,e,S3,C3,_e,{onTimerEnded:1},y3)}}function E3(t){Ye(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 Ds(t){let e,i;return e=new P3({props:{onTimerEnded:t[2]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function I3(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$;s=new k3({}),s.$on("click",t[4]);let q=t[3]&&Ds(t);return{c(){e=P("div"),i=H(),n=P("div"),l=P("div"),r=P("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",o=H(),K(s.$$.fragment),a=H(),c=P("div"),f=P("div"),d=P("div"),h=P("div"),g=H(),q&&q.c(),b=H(),C=P("div"),y=P("div"),w=ze(t[0]),u(e,"class","overlay v-kisfwc"),u(r,"class","caption v-kisfwc"),u(l,"class","top v-kisfwc"),u(h,"class","thumb-overlay v-kisfwc"),u(d,"class","thumb v-kisfwc"),u(d,"style",_=`background-image: url('${t[1]}')`),u(f,"class","column v-kisfwc"),u(y,"class","title v-kisfwc"),u(C,"class","column v-kisfwc"),u(c,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(D,te){S(D,e,te),S(D,i,te),S(D,n,te),p(n,l),p(l,r),p(l,o),j(s,l,null),p(n,a),p(n,c),p(c,f),p(f,d),p(d,h),p(d,g),q&&q.m(d,null),p(c,b),p(c,C),p(C,y),p(y,w),k=!0,I||($=ve(c,"click",function(){In(t[2])&&t[2].apply(this,arguments)}),I=!0)},p(D,[te]){t=D,t[3]?q?(q.p(t,te),te&8&&m(q,1)):(q=Ds(t),q.c(),m(q,1),q.m(d,null)):q&&(fe(),v(q,1,1,()=>{q=null}),de()),(!k||te&2&&_!==(_=`background-image: url('${t[1]}')`))&&u(d,"style",_),(!k||te&1)&&et(w,t[0])},i(D){k||(m(s.$$.fragment,D),m(q),k=!0)},o(D){v(s.$$.fragment,D),v(q),k=!1},d(D){D&&(T(e),T(i),T(n)),Z(s),q&&q.d(),I=!1,$()}}}function A3(t,e,i){let{title:n}=e,{thumb:l}=e,{playNextVideo:r}=e,o=!0;const s=()=>i(3,o=!1);return t.$$set=a=>{"title"in a&&i(0,n=a.title),"thumb"in a&&i(1,l=a.thumb),"playNextVideo"in a&&i(2,r=a.playNextVideo)},[n,l,r,o,s]}class L3 extends ye{constructor(e){super(),ke(this,e,A3,I3,_e,{title:0,thumb:1,playNextVideo:2},E3)}}const Nc=(t,e)=>Math.min(+(t+e).toFixed(2),1),Rc=(t,e)=>Math.max(+(t-e).toFixed(2),0),Oc=(t,e,i)=>{const n=Nc(e,i);e<1&&t.actions.internal.setVolume(n)},Dc=(t,e,i)=>{const n=Rc(e,i);e>0&&t.actions.internal.setVolume(n)},zo=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:n})=>t?(e==null||e(),!1):i?!0:(n==null||n(),!1);function V3(t){Ye(t,"v-10kkmxz",".keyboard-controls.v-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function M3(t){let e,i,n,l;const r=t[26].default,o=Hn(r,t,t[25],null);return{c(){e=P("div"),o&&o.c(),u(e,"class","keyboard-controls v-10kkmxz"),u(e,"tabindex","-1"),u(e,"role","region"),u(e,"aria-label",Q("aria_label_video_player"))},m(s,a){S(s,e,a),o&&o.m(e,null),t[27](e),i=!0,n||(l=[ve(e,"keyup",t[17]),ve(e,"keydown",t[16])],n=!0)},p(s,a){o&&o.p&&(!i||a[0]&33554432)&&Un(o,r,s,s[25],i?Fn(r,s[25],a,null):qn(s[25]),null)},i(s){i||(m(o,s),i=!0)},o(s){v(o,s),i=!1},d(s){s&&T(e),o&&o.d(s),t[27](null),n=!1,ut(l)}}}function B3(t,e,i){var pt,st;let n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,{$$slots:w={},$$scope:k}=e,{isAds:I}=e,{hideContextMenu:$}=e,{toggleFullscreen:q}=e,{showHotKeyHelpers:D}=e,{showKeyMap:te}=e,{fakePlayButtonHandler:re}=e;const V=Pt(),X=gn(),J=V.getLogger().createComponentLog("KeyboardControls component"),B=V.state.playbackState$;z(t,B,he=>i(31,l=he));const A=V.ads.playbackState;z(t,A,he=>i(30,n=he));const R=V.state.positionExact$;z(t,R,he=>i(41,_=he));const ne=V.state.duration$;z(t,ne,he=>i(40,g=he));const L=V.state.volume$;z(t,L,he=>i(44,y=he));const G=V.ui.controls.disabledControls$;z(t,G,he=>i(39,h=he));const we=V.state.muted$;z(t,we,he=>i(34,s=he));const Pe=V.state.currentSubtitle$;z(t,Pe,he=>i(33,o=he));const Ae=V.state.currentPlaybackRate$;z(t,Ae,he=>i(42,b=he));const Be=V.state.availablePlaybackRates$;z(t,Be,he=>i(43,C=he));const Ue=V.ui.contextMenu.openedByHotKey$,me=V.ui.contextMenu.lastActiveElem$,F=V.ui.contextMenu.visible$,ue=V.ui.contextMenu.position$,be=V.state.isEnded$;z(t,be,he=>i(36,c=he));const We=V.ui.overlayContainer$;z(t,We,he=>i(32,r=he));const Qe=(pt=V.callbacks)==null?void 0:pt.onAudioDoesNotExistHint,ce=(st=V.callbacks)==null?void 0:st.onAudioDisabledHint,Ee=V.state.isAudioAvailable$;z(t,Ee,he=>i(35,a=he));const De=V.state.isAudioDisabled,Ze=V.state.isInteractiveTime$;z(t,Ze,he=>i(38,d=he));const{showInteractiveTimeIndicatorTooltip$:pe}=Bo();z(t,pe,he=>i(37,f=he));let M=0,Se=!0,se;const Ce=()=>se==null?void 0:se.focus(),Ke=he=>(he!==Se&&(Se=he,M=0),M+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*M)/1e3),ot=he=>{var He;const at=he.target,It=(He=at==null?void 0:at.getAttribute("role"))==null?void 0:He.includes("menuitem"),kt=at.classList.contains("btn"),Ve=he.code;if(kt&&Ve===Ie.Space)return;const Vt=A0.has(Ve);if(It&&Vt)return;const ae=!I0.has(Ve);if(he.ctrlKey&&ae||he.altKey&&ae||he.metaKey)return;const yt=It&&Ve===Ie.Escape;L0.has(Ve)||yt||$();const Et=l===tt.PlaybackState.PLAYING||l===tt.PlaybackState.PAUSED,ht=I&&(n===ti.PAUSED||n===ti.PLAYING),Ge=!ht&&!h.has(vt.TIMELINE);if(Et||ht)switch(J({message:`key down, code: ${Ve}`}),Ve){case Ie.KeyJ:case Ie.ArrowLeft:{if(!Ge)break;if(he.ctrlKey||he.altKey){const Ne=V.actions.internal.getPrevEpisode();V.actions.internal.seekToPrevEpisode(Ne),Ne&&D({type:xe.EPISODE_PREV,text:Ne.text}),he.preventDefault()}else{const Ne=he.shiftKey?Ke(!1):X.controls.seekStepKeyboard/1e3,dt=Math.max(_-Ne,0);_>0&&(V.actions.internal.seekTime(dt,St.SeekAction.DOUBLE_TAP),D({type:xe.BACKWARD_SEEK,text:Ne.toString()}),he.preventDefault())}break}case Ie.KeyL:case Ie.ArrowRight:{if(!Ge)break;if(he.ctrlKey||he.altKey){const Ne=V.actions.internal.getNextEpisode();V.actions.internal.seekToNextEpisode(Ne),Ne&&D({type:xe.EPISODE_NEXT,text:Ne.text}),he.preventDefault()}else{const Ne=he.shiftKey?Ke(!0):X.controls.seekStepKeyboard/1e3,dt=Math.min(_+Ne,g);Math.round(_)<Math.round(g)&&(V.actions.internal.seekTime(dt,St.SeekAction.DOUBLE_TAP),D({type:xe.FORWARD_SEEK,text:Ne.toString()}),he.preventDefault())}break}case Ie.ArrowUp:{if(zo({isAudioDisabled:De,audioDisabledHintCallback:ce,isAudioAvailable:a,audioIsNotExistHintCallback:Qe})){const Ne=y,dt=X.controls.volumeStepKeyboard,Jt=Ne<=1;if(Oc(V,Ne,dt),Jt){const Ut=Math.round(Nc(Ne,dt)*100).toString();D({type:xe.VOLUME,t:{key:"hotkey_helper_current_volume",value:Ut}})}}he.preventDefault();break}case Ie.ArrowDown:{if(zo({isAudioDisabled:De,audioDisabledHintCallback:ce,isAudioAvailable:a,audioIsNotExistHintCallback:Qe})){const Ne=y,dt=X.controls.volumeStepKeyboard,Jt=Ne>=0;if(Dc(V,Ne,dt),Jt){const Ut=Math.round(Rc(Ne,dt)*100).toString();D({type:xe.VOLUME,t:{key:"hotkey_helper_current_volume",value:Ut}})}}he.preventDefault();break}case Ie.Comma:{if(he.shiftKey){V.actions.internal.decrementPlaybackRate();const Ne=C.find(dt=>dt.value===b);D({type:xe.RATE_DOWN,text:Ne==null?void 0:Ne.displayValue}),he.preventDefault()}else{if(ht||l!==tt.PlaybackState.PAUSED)break;const Ne=Math.max(_-X.controls.seekStepFrame/1e3,0);_>0&&(D({type:xe.BACKWARD_SEEK}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(Ne,St.SeekAction.DOUBLE_TAP),he.preventDefault())}break}case Ie.Period:{if(he.shiftKey){V.actions.internal.incrementPlaybackRate();const Ne=C.find(dt=>dt.value===b);D({type:xe.RATE_UP,text:Ne==null?void 0:Ne.displayValue}),he.preventDefault()}else{if(ht||l!==tt.PlaybackState.PAUSED)break;const Ne=Math.min(_+X.controls.seekStepFrame/1e3,g);_<g&&(D({type:xe.FORWARD_SEEK}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(Ne,St.SeekAction.DOUBLE_TAP),he.preventDefault())}break}case Ie.KeyK:case Ie.Space:if(!h.has(vt.PLAY_BUTTON))if(d&&f&&pe.set(!1),re)re();else{V.actions.internal.togglePlay();let Ne=xe.PLAY;l===tt.PlaybackState.PAUSED?Ne=xe.PAUSE:c&&(Ne=xe.REPLAY),D({type:Ne})}he.preventDefault();break;case Ie.KeyM:{zo({isAudioDisabled:De,audioDisabledHintCallback:ce,isAudioAvailable:a,audioIsNotExistHintCallback:Qe})&&(D({type:s?xe.VOLUME:xe.MUTE}),V.actions.internal.toggleMuted()),he.preventDefault();break}case Ie.KeyF:q(),he.preventDefault();break;case Ie.KeyC:V.actions.internal.toggleSubtitle(),o.value!=="off"?D({type:xe.SUBTITLES_ON,text:o==null?void 0:o.displayValue}):D({type:xe.SUBTITLES_OFF}),he.preventDefault();break;case Ie.KeyI:V.actions.internal.togglePictureInPicture(),he.preventDefault();break;case Ie.Digit1:case Ie.Numpad1:if(he.shiftKey){const Ne=t3(r);ue.set(Ne),me.set(at),Ue.set(!0),F.set(!0),he.preventDefault();break}D(),V.actions.internal.seekToPercent(.1,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit2:case Ie.Numpad2:D(),V.actions.internal.seekToPercent(.2,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit3:case Ie.Numpad3:D(),V.actions.internal.seekToPercent(.3,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit4:case Ie.Numpad4:D(),V.actions.internal.seekToPercent(.4,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit5:case Ie.Numpad5:D(),V.actions.internal.seekToPercent(.5,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit6:case Ie.Numpad6:D(),V.actions.internal.seekToPercent(.6,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit7:case Ie.Numpad7:D(),V.actions.internal.seekToPercent(.7,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit8:case Ie.Numpad8:D(),V.actions.internal.seekToPercent(.8,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit9:case Ie.Numpad9:D(),V.actions.internal.seekToPercent(.9,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Digit0:case Ie.Numpad0:D(),V.actions.internal.seekToPercent(0,St.SeekAction.DOUBLE_TAP),he.preventDefault();break;case Ie.Slash:{he.shiftKey&&X.features.hotKeyMapModal&&(te(),he.preventDefault());break}case Ie.ShiftLeft:case Ie.ShiftRight:he.preventDefault();break;case Ie.Tab:case Ie.Escape:case Ie.Enter:break;default:ie.checkNever(Ve);break}},rt=he=>{const at=he.code;if(he.ctrlKey||he.altKey||he.metaKey)return;const It=l===tt.PlaybackState.PLAYING||l===tt.PlaybackState.PAUSED,kt=I&&(n===ti.PAUSED||n===ti.PLAYING);if(It||kt)switch(at){case Ie.ShiftLeft:case Ie.ShiftRight:M=0;break}};function it(he){Te[he?"unshift":"push"](()=>{se=he,i(0,se)})}return t.$$set=he=>{"isAds"in he&&i(18,I=he.isAds),"hideContextMenu"in he&&i(19,$=he.hideContextMenu),"toggleFullscreen"in he&&i(20,q=he.toggleFullscreen),"showHotKeyHelpers"in he&&i(21,D=he.showHotKeyHelpers),"showKeyMap"in he&&i(22,te=he.showKeyMap),"fakePlayButtonHandler"in he&&i(23,re=he.fakePlayButtonHandler),"$$scope"in he&&i(25,k=he.$$scope)},[se,B,A,R,ne,L,G,we,Pe,Ae,Be,be,We,Ee,Ze,pe,ot,rt,I,$,q,D,te,re,Ce,k,w,it]}class N3 extends ye{constructor(e){super(),ke(this,e,B3,M3,_e,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},V3,[-1,-1])}get focus(){return this.$$.ctx[24]}}function R3(t){Ye(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 O3(t){let e;return{c(){e=P("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){S(i,e,n)},p:W,i:W,o:W,d(i){i&&T(e)}}}class zc extends ye{constructor(e){super(),ke(this,e,null,O3,_e,{},R3)}}function D3(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("defs"),o=O("filter"),s=O("feFlood"),a=O("feColorMatrix"),c=O("feOffset"),f=O("feGaussianBlur"),d=O("feColorMatrix"),h=O("feBlend"),g=O("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(l,"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(l,"stroke","#000"),u(l,"stroke-opacity",".12"),u(l,"stroke-width",".5"),u(i,"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(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(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_2422_111980"),u(g,"result","shape"),u(o,"id","a"),u(o,"x",".5"),u(o,"y",".5"),u(o,"width","23"),u(o,"height","23"),u(o,"filterUnits","userSpaceOnUse"),u(o,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","cross-icon")},m(_,b){S(_,e,b),p(e,i),p(i,n),p(i,l),p(e,r),p(r,o),p(o,s),p(o,a),p(o,c),p(o,f),p(o,d),p(o,h),p(o,g)},p:W,i:W,o:W,d(_){_&&T(e)}}}class z3 extends ye{constructor(e){super(),ke(this,e,null,D3,_e,{})}}function H3(t){Ye(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 F3(t){let e,i,n,l,r,o,s,a,c,f,d,h;const g=t[14].default,_=Hn(g,t,t[13],null);return{c(){var b,C,y,w,k,I;e=P("button"),_&&_.c(),u(e,"class",i="btn "+t[1]+" v-1anemql"),u(e,"style",n=t[2]||null),e.disabled=l=(b=t[3])!=null?b:null,u(e,"aria-hidden",r=(C=t[5])!=null?C:null),u(e,"aria-label",o=(y=t[6])!=null?y:null),u(e,"aria-keyshortcuts",s=(w=t[7])!=null?w:null),u(e,"aria-expanded",a=(k=t[8])!=null?k:null),u(e,"data-testid",c=(I=t[4])!=null?I:null),u(e,"tabindex",t[9])},m(b,C){S(b,e,C),_&&_.m(e,null),t[16](e),f=!0,d||(h=[ve(e,"pointerdown",ct(ii(t[15]))),ve(e,"click",ct(ii(function(){In(t[10]===ie.noop?null:t[10])&&(t[10]===ie.noop?null:t[10]).apply(this,arguments)}))),ve(e,"focus",ii(function(){In(t[11]===ie.noop?null:t[11])&&(t[11]===ie.noop?null:t[11]).apply(this,arguments)})),ve(e,"blur",ii(function(){In(t[12]===ie.noop?null:t[12])&&(t[12]===ie.noop?null:t[12]).apply(this,arguments)}))],d=!0)},p(b,[C]){var y,w,k,I,$,q;t=b,_&&_.p&&(!f||C&8192)&&Un(_,g,t,t[13],f?Fn(g,t[13],C,null):qn(t[13]),null),(!f||C&2&&i!==(i="btn "+t[1]+" v-1anemql"))&&u(e,"class",i),(!f||C&4&&n!==(n=t[2]||null))&&u(e,"style",n),(!f||C&8&&l!==(l=(y=t[3])!=null?y:null))&&(e.disabled=l),(!f||C&32&&r!==(r=(w=t[5])!=null?w:null))&&u(e,"aria-hidden",r),(!f||C&64&&o!==(o=(k=t[6])!=null?k:null))&&u(e,"aria-label",o),(!f||C&128&&s!==(s=(I=t[7])!=null?I:null))&&u(e,"aria-keyshortcuts",s),(!f||C&256&&a!==(a=($=t[8])!=null?$:null))&&u(e,"aria-expanded",a),(!f||C&16&&c!==(c=(q=t[4])!=null?q:null))&&u(e,"data-testid",c),(!f||C&512)&&u(e,"tabindex",t[9])},i(b){f||(m(_,b),f=!0)},o(b){v(_,b),f=!1},d(b){b&&T(e),_&&_.d(b),t[16](null),d=!1,ut(h)}}}function U3(t,e,i){let{$$slots:n={},$$scope:l}=e,{className:r=""}=e,{style:o=""}=e,{disabled:s=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:g=void 0}=e,{tabIndex:_=0}=e,{click:b=ie.noop}=e,{focus:C=ie.noop}=e,{blur:y=ie.noop}=e;function w(I){so.call(this,t,I)}function k(I){Te[I?"unshift":"push"](()=>{d=I,i(0,d)})}return t.$$set=I=>{"className"in I&&i(1,r=I.className),"style"in I&&i(2,o=I.style),"disabled"in I&&i(3,s=I.disabled),"testId"in I&&i(4,a=I.testId),"ariaHidden"in I&&i(5,c=I.ariaHidden),"ariaLabel"in I&&i(6,f=I.ariaLabel),"ref"in I&&i(0,d=I.ref),"ariaKeyShortCut"in I&&i(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&i(8,g=I.ariaExpanded),"tabIndex"in I&&i(9,_=I.tabIndex),"click"in I&&i(10,b=I.click),"focus"in I&&i(11,C=I.focus),"blur"in I&&i(12,y=I.blur),"$$scope"in I&&i(13,l=I.$$scope)},[d,r,o,s,a,c,f,h,g,_,b,C,y,l,n,w,k]}class ki extends ye{constructor(e){super(),ke(this,e,U3,F3,_e,{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},H3)}}function q3(t){Ye(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 zs(t){let e,i,n,l,r,o=t[2]&&Hs(t);return{c(){e=P("div"),i=P("h3"),n=ze(t[3]),l=H(),o&&o.c(),u(i,"class","modal-title v-1witlsj"),u(e,"class","modal-header v-1witlsj")},m(s,a){S(s,e,a),p(e,i),p(i,n),p(e,l),o&&o.m(e,null),r=!0},p(s,a){(!r||a&8)&&et(n,s[3]),s[2]?o?(o.p(s,a),a&4&&m(o,1)):(o=Hs(s),o.c(),m(o,1),o.m(e,null)):o&&(fe(),v(o,1,1,()=>{o=null}),de())},i(s){r||(m(o),r=!0)},o(s){v(o),r=!1},d(s){s&&T(e),o&&o.d()}}}function Hs(t){let e,i;return e=new ki({props:{click:t[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:Q("hotkey_map_modal_close_btn_text"),$$slots:{default:[j3]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&1&&(r.click=n[0]),l&32&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function j3(t){let e,i;return e=new z3({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Z3(t){let e,i,n,l,r,o,s=t[1]&&zs(t);const a=t[4].default,c=Hn(a,t,t[5],null);return{c(){e=P("div"),i=P("div"),s&&s.c(),n=H(),l=P("div"),r=P("div"),c&&c.c(),u(r,"class","modal-main v-1witlsj"),u(l,"class","modal-scroll v-1witlsj"),u(i,"class","modal-container v-1witlsj"),u(e,"class","modal-overlay v-1witlsj")},m(f,d){S(f,e,d),p(e,i),s&&s.m(i,null),p(i,n),p(i,l),p(l,r),c&&c.m(r,null),o=!0},p(f,[d]){f[1]?s?(s.p(f,d),d&2&&m(s,1)):(s=zs(f),s.c(),m(s,1),s.m(i,n)):s&&(fe(),v(s,1,1,()=>{s=null}),de()),c&&c.p&&(!o||d&32)&&Un(c,a,f,f[5],o?Fn(a,f[5],d,null):qn(f[5]),null)},i(f){o||(m(s),m(c,f),o=!0)},o(f){v(s),v(c,f),o=!1},d(f){f&&T(e),s&&s.d(),c&&c.d(f)}}}function K3(t,e,i){let{$$slots:n={},$$scope:l}=e,{onClose:r}=e,{showHeader:o=!0}=e,{showCloseCross:s=!0}=e,{title:a}=e;return t.$$set=c=>{"onClose"in c&&i(0,r=c.onClose),"showHeader"in c&&i(1,o=c.showHeader),"showCloseCross"in c&&i(2,s=c.showCloseCross),"title"in c&&i(3,a=c.title),"$$scope"in c&&i(5,l=c.$$scope)},[r,o,s,a,n,l]}class W3 extends ye{constructor(e){super(),ke(this,e,K3,Z3,_e,{onClose:0,showHeader:1,showCloseCross:2,title:3},q3)}}const G3=new Set(["BR"]),Fs=t=>{var e;const i=document.createElement("DIV");i.innerHTML=t;const n=i.querySelectorAll("*");let l=n.length;for(;l--;){const r=n[l],o=r.tagName;G3.has(o)||(e=r.parentElement)===null||e===void 0||e.removeChild(r)}return i.innerHTML};function Y3(t){Ye(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 Us(t,e,i){const n=t.slice();return n[5]=e[i].title,n[6]=e[i].items,n}function qs(t,e,i){const n=t.slice();return n[9]=e[i].description,n[10]=e[i].value,n}function js(t){let e,i,n=Fs(t[9])+"",l,r,o=t[10]+"",s,a;return{c(){e=P("li"),i=P("span"),l=H(),r=P("span"),s=ze(o),a=H(),u(i,"class","hot-key-map-item-description v-quklnq"),u(r,"class","hot-key-map-item-value v-quklnq"),u(e,"class","hot-key-map-item v-quklnq")},m(c,f){S(c,e,f),p(e,i),i.innerHTML=n,p(e,l),p(e,r),p(r,s),p(e,a)},p(c,f){f&1&&n!==(n=Fs(c[9])+"")&&(i.innerHTML=n),f&1&&o!==(o=c[10]+"")&&et(s,o)},d(c){c&&T(e)}}}function Zs(t){let e,i,n=t[5]+"",l,r,o,s,a=Xt(t[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=js(qs(t,a,f));return{c(){e=P("div"),i=P("h5"),l=ze(n),r=H(),o=P("ul");for(let f=0;f<c.length;f+=1)c[f].c();s=H(),u(i,"class","hot-key-map-group-title v-quklnq"),u(o,"class","hot-key-map-group-items v-quklnq"),u(e,"class","hot-key-map-group v-quklnq")},m(f,d){S(f,e,d),p(e,i),p(i,l),p(e,r),p(e,o);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(o,null);p(e,s)},p(f,d){if(d&1&&n!==(n=f[5]+"")&&et(l,n),d&1){a=Xt(f[6]);let h;for(h=0;h<a.length;h+=1){const g=qs(f,a,h);c[h]?c[h].p(g,d):(c[h]=js(g),c[h].c(),c[h].m(o,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=a.length}},d(f){f&&T(e),An(c,f)}}}function Q3(t){let e,i=Xt(t[0].groups),n=[];for(let l=0;l<i.length;l+=1)n[l]=Zs(Us(t,i,l));return{c(){e=P("div");for(let l=0;l<n.length;l+=1)n[l].c();u(e,"class","hot-key-map v-quklnq")},m(l,r){S(l,e,r);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null)},p(l,r){if(r&1){i=Xt(l[0].groups);let o;for(o=0;o<i.length;o+=1){const s=Us(l,i,o);n[o]?n[o].p(s,r):(n[o]=Zs(s),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(l){l&&T(e),An(n,l)}}}function X3(t){let e,i;return e=new W3({props:{title:t[0].title,onClose:t[2],$$slots:{default:[Q3]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,[l]){const r={};l&1&&(r.title=n[0].title),l&8193&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function J3(t,e,i){let n;const l=Pt(),{data:r,show:o}=l.ui.modals.hotKeyMap;return z(t,r,a=>i(0,n=a)),[n,r,()=>{o.set(!1)}]}class x3 extends ye{constructor(e){super(),ke(this,e,J3,X3,_e,{},Y3)}}function $3(t){Ye(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 ep(t){let e,i;const n=t[1].default,l=Hn(n,t,t[0],null);return{c(){e=P("div"),l&&l.c(),u(e,"class","pillow v-1oe0j8n")},m(r,o){S(r,e,o),l&&l.m(e,null),i=!0},p(r,[o]){l&&l.p&&(!i||o&1)&&Un(l,n,r,r[0],i?Fn(n,r[0],o,null):qn(r[0]),null)},i(r){i||(m(l,r),i=!0)},o(r){v(l,r),i=!1},d(r){r&&T(e),l&&l.d(r)}}}function tp(t,e,i){let{$$slots:n={},$$scope:l}=e;return t.$$set=r=>{"$$scope"in r&&i(0,l=r.$$scope)},[l,n]}class ip extends ye{constructor(e){super(),ke(this,e,tp,ep,_e,{},$3)}}function np(t){let e,i,n;return{c(){e=O("svg"),i=O("path"),n=O("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(l,r){S(l,e,r),p(e,i),p(e,n)},p:W,i:W,o:W,d(l){l&&T(e)}}}class op extends ye{constructor(e){super(),ke(this,e,null,np,_e,{})}}function lp(t){let e,i,n;return{c(){e=O("svg"),i=O("path"),n=O("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(l,r){S(l,e,r),p(e,i),p(e,n)},p:W,i:W,o:W,d(l){l&&T(e)}}}class rp extends ye{constructor(e){super(),ke(this,e,null,lp,_e,{})}}function sp(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class ap extends ye{constructor(e){super(),ke(this,e,null,sp,_e,{})}}function up(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Hc extends ye{constructor(e){super(),ke(this,e,null,up,_e,{})}}function cp(t){let e,i,n;return{c(){e=O("svg"),i=O("path"),n=O("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(l,r){S(l,e,r),p(e,i),p(e,n)},p:W,i:W,o:W,d(l){l&&T(e)}}}class Fc extends ye{constructor(e){super(),ke(this,e,null,cp,_e,{})}}const Mo=t=>{switch(t){case tt.VideoQuality.Q_720P:return ap;case tt.VideoQuality.Q_1080P:return Hc;case tt.VideoQuality.Q_1440P:return Fc;case tt.VideoQuality.Q_2160P:return op;case tt.VideoQuality.Q_4320P:return rp}};function fp(t){Ye(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 dp(t){let e,i,n,l,r,o,s=t[1]&&Ks(t);return{c(){e=P("div"),s&&s.c(),i=H(),n=O("svg"),l=O("path"),r=O("path"),u(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(l,"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(l,"fill","#fff"),u(r,"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(r,"fill","#fff"),N(r,"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"),N(e,"triple",t[2])},m(a,c){S(a,e,c),s&&s.m(e,null),p(e,i),p(e,n),p(n,l),p(n,r),o=!0},p(a,c){a[1]?s?(s.p(a,c),c&2&&m(s,1)):(s=Ks(a),s.c(),m(s,1),s.m(e,i)):s&&(fe(),v(s,1,1,()=>{s=null}),de()),(!o||c&2)&&N(r,"hidden",!!a[1]),(!o||c&4)&&N(e,"triple",a[2])},i(a){o||(m(s),o=!0)},o(a){v(s),o=!1},d(a){a&&T(e),s&&s.d()}}}function mp(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}function Ks(t){let e,i;return e=new ip({props:{$$slots:{default:[pp]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&18&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function pp(t){let e,i,n;var l=t[1];function r(o){return{}}return l&&(e=Nn(l,r())),{c(){e&&K(e.$$.fragment),i=bt()},m(o,s){e&&j(e,o,s),S(o,i,s),n=!0},p(o,s){if(s&2&&l!==(l=o[1])){if(e){fe();const a=e;v(a.$$.fragment,1,0,()=>{Z(a,1)}),de()}l?(e=Nn(l,r()),K(e.$$.fragment),m(e.$$.fragment,1),j(e,i.parentNode,i)):e=null}},i(o){n||(e&&m(e.$$.fragment,o),n=!0)},o(o){e&&v(e.$$.fragment,o),n=!1},d(o){o&&T(i),e&&Z(e,o)}}}function hp(t){let e,i,n,l;const r=[mp,dp],o=[];function s(a,c){return a[0]?0:1}return e=s(t),i=o[e]=r[e](t),{c(){i.c(),n=bt()},m(a,c){o[e].m(a,c),S(a,n,c),l=!0},p(a,[c]){let f=e;e=s(a),e===f?o[e].p(a,c):(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),i=o[e],i?i.p(a,c):(i=o[e]=r[e](a),i.c()),m(i,1),i.m(n.parentNode,n))},i(a){l||(m(i),l=!0)},o(a){v(i),l=!1},d(a){a&&T(n),o[e].d(a)}}}function vp(t,e,i){let n,{isMobile:l=!1}=e,{currentQuality:r=void 0}=e,o;return t.$$set=s=>{"isMobile"in s&&i(0,l=s.isMobile),"currentQuality"in s&&i(3,r=s.currentQuality)},t.$$.update=()=>{t.$$.dirty&8&&i(1,n=Mo(r)),t.$$.dirty&2&&i(2,o=!!n&&[Hc,Fc].includes(n))},[l,n,o,r]}class Uc extends ye{constructor(e){super(),ke(this,e,vp,hp,_e,{isMobile:0,currentQuality:3},fp)}}function gp(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class qc extends ye{constructor(e){super(),ke(this,e,null,gp,_e,{})}}function bp(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class _p extends ye{constructor(e){super(),ke(this,e,null,bp,_e,{})}}function wp(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class kp extends ye{constructor(e){super(),ke(this,e,null,wp,_e,{})}}function yp(t){let e,i,n,l;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),u(n,"d","M0 0h24v24H0z"),u(l,"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(l,"fill","#fff"),u(l,"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(r,o){S(r,e,o),p(e,i),p(i,n),p(i,l)},p:W,i:W,o:W,d(r){r&&T(e)}}}class Cp extends ye{constructor(e){super(),ke(this,e,null,yp,_e,{})}}function Tp(t){Ye(t,"v-2dg73m",".reverted.v-2dg73m{transform:rotate(180deg)}")}function Sp(t){let e,i,n;return{c(){e=O("svg"),i=O("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"),N(e,"reverted",t[2])},m(l,r){S(l,e,r),p(e,i)},p(l,r){r&1&&u(i,"fill",l[0]),r&4&&n!==(n=l[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),r&4&&N(e,"reverted",l[2])},d(l){l&&T(e)}}}function Pp(t){let e,i,n;return{c(){e=O("svg"),i=O("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"),N(e,"reverted",t[2])},m(l,r){S(l,e,r),p(e,i)},p(l,r){r&1&&u(i,"fill",l[0]),r&4&&n!==(n=l[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),r&4&&N(e,"reverted",l[2])},d(l){l&&T(e)}}}function Ep(t){let e;function i(r,o){return r[1]?Pp:Sp}let n=i(t),l=n(t);return{c(){l.c(),e=bt()},m(r,o){l.m(r,o),S(r,e,o)},p(r,[o]){n===(n=i(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},i:W,o:W,d(r){r&&T(e),l.d(r)}}}function Ip(t,e,i){let{direction:n="left"}=e,{color:l="#fff"}=e,r,o;return t.$$set=s=>{"direction"in s&&i(3,n=s.direction),"color"in s&&i(0,l=s.color)},t.$$.update=()=>{t.$$.dirty&8&&(i(1,r=["up","down"].includes(n)),i(2,o=["right","down"].includes(n)))},[l,r,o,n]}class Qn extends ye{constructor(e){super(),ke(this,e,Ip,Ep,_e,{direction:3,color:0},Tp)}}function Ap(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Lp extends ye{constructor(e){super(),ke(this,e,null,Ap,_e,{})}}function Vp(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Qo extends ye{constructor(e){super(),ke(this,e,null,Vp,_e,{})}}function Mp(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Bp extends ye{constructor(e){super(),ke(this,e,null,Mp,_e,{})}}function Np(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Rp extends ye{constructor(e){super(),ke(this,e,null,Np,_e,{})}}function Op(t){Ye(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 Ws(t,e,i){const n=t.slice();return n[142]=e[i],n}function Gs(t,e,i){const n=t.slice();return n[145]=e[i],n}function Ys(t,e,i){const n=t.slice();return n[148]=e[i],n}function Qs(t){let e,i,n,l,r,o,s,a,c,f,d,h=t[34]&&Xs(t),g=t[25]&&Js(t),_=t[24]&&$s(t),b=t[23]&&ea(t),C=t[22]&&ta(t),y=t[21]&&ia(t),w=t[34]&&na(t);return{c(){e=P("div"),h&&h.c(),i=H(),n=P("ul"),g&&g.c(),l=H(),_&&_.c(),r=H(),b&&b.c(),o=H(),C&&C.c(),s=H(),y&&y.c(),a=H(),w&&w.c(),u(n,"class","items v-5r0p3"),u(n,"role","menu"),u(n,"style",t[73]()),N(n,"items-mobile",t[34]),u(e,"class","menu v-5r0p3"),N(e,"menu-desktop",!t[34]),N(e,"menu-mobile",t[34]),N(e,"hidden",!t[11])},m(k,I){S(k,e,I),h&&h.m(e,null),p(e,i),p(e,n),g&&g.m(n,null),p(n,l),_&&_.m(n,null),p(n,r),b&&b.m(n,null),p(n,o),C&&C.m(n,null),p(n,s),y&&y.m(n,null),p(n,a),w&&w.m(n,null),t[112](n),c=!0,f||(d=[ve(e,"keydown",t[78]),ve(e,"mouseenter",t[71]),ve(e,"mouseleave",t[72])],f=!0)},p(k,I){k[34]?h?h.p(k,I):(h=Xs(k),h.c(),h.m(e,i)):h&&(h.d(1),h=null),k[25]?g?(g.p(k,I),I[0]&33554432&&m(g,1)):(g=Js(k),g.c(),m(g,1),g.m(n,l)):g&&(fe(),v(g,1,1,()=>{g=null}),de()),k[24]?_?(_.p(k,I),I[0]&16777216&&m(_,1)):(_=$s(k),_.c(),m(_,1),_.m(n,r)):_&&(fe(),v(_,1,1,()=>{_=null}),de()),k[23]?b?(b.p(k,I),I[0]&8388608&&m(b,1)):(b=ea(k),b.c(),m(b,1),b.m(n,o)):b&&(fe(),v(b,1,1,()=>{b=null}),de()),k[22]?C?(C.p(k,I),I[0]&4194304&&m(C,1)):(C=ta(k),C.c(),m(C,1),C.m(n,s)):C&&(fe(),v(C,1,1,()=>{C=null}),de()),k[21]?y?(y.p(k,I),I[0]&2097152&&m(y,1)):(y=ia(k),y.c(),m(y,1),y.m(n,a)):y&&(fe(),v(y,1,1,()=>{y=null}),de()),k[34]?w?(w.p(k,I),I[1]&8&&m(w,1)):(w=na(k),w.c(),m(w,1),w.m(n,null)):w&&(fe(),v(w,1,1,()=>{w=null}),de()),(!c||I[1]&8)&&N(n,"items-mobile",k[34]),(!c||I[1]&8)&&N(e,"menu-desktop",!k[34]),(!c||I[1]&8)&&N(e,"menu-mobile",k[34]),(!c||I[0]&2048)&&N(e,"hidden",!k[11])},i(k){c||(m(g),m(_),m(b),m(C),m(y),m(w),c=!0)},o(k){v(g),v(_),v(b),v(C),v(y),v(w),c=!1},d(k){k&&T(e),h&&h.d(),g&&g.d(),_&&_.d(),b&&b.d(),C&&C.d(),y&&y.d(),w&&w.d(),t[112](null),f=!1,ut(d)}}}function Xs(t){let e,i,n,l,r,o,s,a;return{c(){e=P("div"),i=P("div"),i.textContent=`${Q("submenu_settings")}`,n=H(),l=P("div"),r=H(),o=P("div"),u(l,"class","close v-5r0p3"),u(e,"class","item menu-header v-5r0p3"),N(e,"item-mobile",t[34]),u(o,"class","menu-divider v-5r0p3")},m(c,f){S(c,e,f),p(e,i),p(e,n),p(e,l),S(c,r,f),S(c,o,f),s||(a=ve(l,"click",ct(t[57])),s=!0)},p(c,f){f[1]&8&&N(e,"item-mobile",c[34])},d(c){c&&(T(e),T(r),T(o)),s=!1,a()}}}function Js(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;n=new Uc({});let _=t[33]&&!t[34]&&xs(t);return{c(){e=P("li"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("menu_quality")}`,o=H(),s=P("div"),a=ze(t[16]),c=H(),_&&_.c(),u(i,"class","menu-icon-wrapper v-5r0p3"),u(r,"class","menu-title v-5r0p3"),u(s,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=Q("aria_label_menu_quality",{actual:t[27]})),u(e,"aria-haspopup","true"),N(e,"item-mobile",t[34])},m(b,C){S(b,e,C),p(e,i),j(n,i,null),p(e,l),p(e,r),p(e,o),p(e,s),p(s,a),p(s,c),_&&_.m(s,null),t[108](e),d=!0,h||(g=[ve(e,"click",ct(t[58])),ve(e,"keydown",t[79])],h=!0)},p(b,C){(!d||C[0]&65536)&&et(a,b[16]),b[33]&&!b[34]?_?(_.p(b,C),C[1]&12&&m(_,1)):(_=xs(b),_.c(),m(_,1),_.m(s,null)):_&&(fe(),v(_,1,1,()=>{_=null}),de()),(!d||C[0]&134217728&&f!==(f=Q("aria_label_menu_quality",{actual:b[27]})))&&u(e,"aria-label",f),(!d||C[1]&8)&&N(e,"item-mobile",b[34])},i(b){d||(m(n.$$.fragment,b),m(_),d=!0)},o(b){v(n.$$.fragment,b),v(_),d=!1},d(b){b&&T(e),Z(n),_&&_.d(),t[108](null),h=!1,ut(g)}}}function xs(t){let e,i,n;var l=t[33];function r(o){return{}}return l&&(i=Nn(l,r())),{c(){e=P("div"),i&&K(i.$$.fragment),u(e,"class","menu-valueIcon v-5r0p3")},m(o,s){S(o,e,s),i&&j(i,e,null),n=!0},p(o,s){if(s[1]&4&&l!==(l=o[33])){if(i){fe();const a=i;v(a.$$.fragment,1,0,()=>{Z(a,1)}),de()}l?(i=Nn(l,r()),K(i.$$.fragment),m(i.$$.fragment,1),j(i,e,null)):i=null}},i(o){n||(i&&m(i.$$.fragment,o),n=!0)},o(o){i&&v(i.$$.fragment,o),n=!1},d(o){o&&T(e),i&&Z(i)}}}function $s(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;return n=new Cp({}),{c(){e=P("li"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("menu_playback_rate")}`,o=H(),s=P("div"),a=ze(t[9]),c=ze("x"),u(i,"class","menu-icon-wrapper v-5r0p3"),u(r,"class","menu-title v-5r0p3"),u(s,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=Q("aria_label_menu_rate",{actual:t[28]})),u(e,"aria-haspopup","true"),N(e,"item-mobile",t[34])},m(_,b){S(_,e,b),p(e,i),j(n,i,null),p(e,l),p(e,r),p(e,o),p(e,s),p(s,a),p(s,c),t[109](e),d=!0,h||(g=[ve(e,"click",ct(ii(t[62]))),ve(e,"keydown",t[82])],h=!0)},p(_,b){(!d||b[0]&512)&&et(a,_[9]),(!d||b[0]&268435456&&f!==(f=Q("aria_label_menu_rate",{actual:_[28]})))&&u(e,"aria-label",f),(!d||b[1]&8)&&N(e,"item-mobile",_[34])},i(_){d||(m(n.$$.fragment,_),d=!0)},o(_){v(n.$$.fragment,_),d=!1},d(_){_&&T(e),Z(n),t[109](null),h=!1,ut(g)}}}function ea(t){let e,i,n,l,r,o,s,a=t[35].displayValue+"",c,f,d,h,g;return n=new qc({}),{c(){e=P("li"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("subtitles_caption")}`,o=H(),s=P("div"),c=ze(a),u(i,"class","menu-icon-wrapper v-5r0p3"),u(r,"class","menu-title v-5r0p3"),u(s,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=Q("aria_label_menu_subtitle",{actual:t[35].displayValue})),u(e,"aria-haspopup","true"),N(e,"item-mobile",t[34])},m(_,b){S(_,e,b),p(e,i),j(n,i,null),p(e,l),p(e,r),p(e,o),p(e,s),p(s,c),t[110](e),d=!0,h||(g=[ve(e,"click",ct(t[64])),ve(e,"keydown",t[85])],h=!0)},p(_,b){(!d||b[1]&16)&&a!==(a=_[35].displayValue+"")&&et(c,a),(!d||b[1]&16&&f!==(f=Q("aria_label_menu_subtitle",{actual:_[35].displayValue})))&&u(e,"aria-label",f),(!d||b[1]&8)&&N(e,"item-mobile",_[34])},i(_){d||(m(n.$$.fragment,_),d=!0)},o(_){v(n.$$.fragment,_),d=!1},d(_){_&&T(e),Z(n),t[110](null),h=!1,ut(g)}}}function ta(t){let e,i,n,l,r,o,s,a,c,f,d,h;return n=new kp({}),{c(){e=P("li"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("menu_traffic_saving")}`,o=H(),s=P("div"),a=ze(t[26]),u(i,"class","menu-icon-wrapper v-5r0p3"),u(r,"class","menu-title v-5r0p3"),u(s,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",c=Q("aria_label_menu_traffic_saving",{actual:t[26]})),u(e,"aria-haspopup","true"),N(e,"item-mobile",t[34])},m(g,_){S(g,e,_),p(e,i),j(n,i,null),p(e,l),p(e,r),p(e,o),p(e,s),p(s,a),t[111](e),f=!0,d||(h=[ve(e,"click",ct(t[59])),ve(e,"keydown",t[88])],d=!0)},p(g,_){(!f||_[0]&67108864)&&et(a,g[26]),(!f||_[0]&67108864&&c!==(c=Q("aria_label_menu_traffic_saving",{actual:g[26]})))&&u(e,"aria-label",c),(!f||_[1]&8)&&N(e,"item-mobile",g[34])},i(g){f||(m(n.$$.fragment,g),f=!0)},o(g){v(n.$$.fragment,g),f=!1},d(g){g&&T(e),Z(n),t[111](null),d=!1,ut(h)}}}function ia(t){let e,i,n,l,r,o,s,a;return n=new _p({}),{c(){e=P("li"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("download_video_caption")}`,u(i,"class","menu-icon-wrapper v-5r0p3"),u(r,"class","menu-title v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",Q("aria_label_menu_download")),N(e,"item-mobile",t[34])},m(c,f){S(c,e,f),p(e,i),j(n,i,null),p(e,l),p(e,r),o=!0,s||(a=[ve(e,"click",ct(t[67])),ve(e,"keydown",t[91])],s=!0)},p(c,f){(!o||f[1]&8)&&N(e,"item-mobile",c[34])},i(c){o||(m(n.$$.fragment,c),o=!0)},o(c){v(n.$$.fragment,c),o=!1},d(c){c&&T(e),Z(n),s=!1,ut(a)}}}function na(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y=t[37].showSupport&&Dp(t);return l=new Bp({}),f=new Rp({}),{c(){y&&y.c(),e=H(),i=P("li"),n=P("div"),K(l.$$.fragment),r=H(),o=P("div"),o.textContent=`${Q("menu_copy_debug")}`,s=H(),a=P("li"),c=P("div"),K(f.$$.fragment),d=H(),h=P("div"),h.textContent=`${Q("menu_debug_overlay")}`,u(n,"class","menu-icon-wrapper v-5r0p3"),u(o,"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",Q("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",g=t[36]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable"))},m(w,k){y&&y.m(w,k),S(w,e,k),S(w,i,k),p(i,n),j(l,n,null),p(i,r),p(i,o),S(w,s,k),S(w,a,k),p(a,c),j(f,c,null),p(a,d),p(a,h),_=!0,b||(C=[ve(i,"click",ct(t[69])),ve(i,"keydown",t[93]),ve(a,"click",ct(t[70])),ve(a,"keydown",t[94])],b=!0)},p(w,k){w[37].showSupport&&y.p(w,k),(!_||k[1]&32&&g!==(g=w[36]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable")))&&u(a,"aria-label",g)},i(w){_||(m(y),m(l.$$.fragment,w),m(f.$$.fragment,w),_=!0)},o(w){v(y),v(l.$$.fragment,w),v(f.$$.fragment,w),_=!1},d(w){w&&(T(e),T(i),T(s),T(a)),y&&y.d(w),Z(l),Z(f),b=!1,ut(C)}}}function Dp(t){let e,i,n,l,r,o,s,a;return n=new Lp({}),{c(){e=P("li"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("menu_report")}`,u(i,"class","menu-icon-wrapper v-5r0p3"),u(r,"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",`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`)},m(c,f){S(c,e,f),p(e,i),j(n,i,null),p(e,l),p(e,r),o=!0,s||(a=[ve(e,"click",ct(t[68])),ve(e,"keydown",t[92])],s=!0)},p:W,i(c){o||(m(n.$$.fragment,c),o=!0)},o(c){v(n.$$.fragment,c),o=!1},d(c){c&&T(e),Z(n),s=!1,ut(a)}}}function oa(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;n=new Qn({props:{direction:"left"}});let _=Xt(t[8]),b=[];for(let y=0;y<_.length;y+=1)b[y]=sa(Ys(t,_,y));const C=y=>v(b[y],1,1,()=>{b[y]=null});return{c(){var y;e=P("div"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("submenu_quality")}`,o=H(),s=P("div"),a=H(),c=P("ul");for(let w=0;w<b.length;w+=1)b[w].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",Q("aria_label_submenu_back")),N(i,"item-mobile",t[34]),u(s,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",f=t[73]((y=t[17])==null?void 0:y.clientHeight,!0)),N(c,"items-mobile",t[34]),u(e,"class","menu menu-subList v-5r0p3"),N(e,"menu-desktop",!t[34]),N(e,"menu-mobile",t[34])},m(y,w){S(y,e,w),p(e,i),j(n,i,null),p(i,l),p(i,r),t[113](i),p(e,o),p(e,s),p(e,a),p(e,c);for(let k=0;k<b.length;k+=1)b[k]&&b[k].m(c,null);t[116](c),d=!0,h||(g=[ve(i,"click",ct(t[66])),ve(c,"keydown",t[80])],h=!0)},p(y,w){var k;if((!d||w[1]&8)&&N(i,"item-mobile",y[34]),w[0]&256|w[1]&536870920|w[2]&524288){_=Xt(y[8]);let I;for(I=0;I<_.length;I+=1){const $=Ys(y,_,I);b[I]?(b[I].p($,w),m(b[I],1)):(b[I]=sa($),b[I].c(),m(b[I],1),b[I].m(c,null))}for(fe(),I=_.length;I<b.length;I+=1)C(I);de()}(!d||w[0]&131072&&f!==(f=y[73]((k=y[17])==null?void 0:k.clientHeight,!0)))&&u(c,"style",f),(!d||w[1]&8)&&N(c,"items-mobile",y[34]),(!d||w[1]&8)&&N(e,"menu-desktop",!y[34]),(!d||w[1]&8)&&N(e,"menu-mobile",y[34])},i(y){if(!d){m(n.$$.fragment,y);for(let w=0;w<_.length;w+=1)m(b[w]);d=!0}},o(y){v(n.$$.fragment,y),b=b.filter(Boolean);for(let w=0;w<b.length;w+=1)v(b[w]);d=!1},d(y){y&&T(e),Z(n),t[113](null),An(b,y),t[116](null),h=!1,ut(g)}}}function la(t){let e,i,n;return i=new Qo({}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){S(l,e,r),j(i,e,null),n=!0},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function ra(t){let e,i,n;var l=Mo(t[148].value);function r(o){return{}}return l&&(i=Nn(l,r())),{c(){e=P("div"),i&&K(i.$$.fragment),u(e,"class","menu-valueIcon-list v-5r0p3")},m(o,s){S(o,e,s),i&&j(i,e,null),n=!0},p(o,s){if(s[0]&256&&l!==(l=Mo(o[148].value))){if(i){fe();const a=i;v(a.$$.fragment,1,0,()=>{Z(a,1)}),de()}l?(i=Nn(l,r()),K(i.$$.fragment),m(i.$$.fragment,1),j(i,e,null)):i=null}},i(o){n||(i&&m(i.$$.fragment,o),n=!0)},o(o){i&&v(i.$$.fragment,o),n=!1},d(o){o&&T(e),i&&Z(i)}}}function sa(t){let e,i,n,l=t[148].displayValue+"",r,o,s=!t[34]&&Mo(t[148].value),a,c,f,d,h,g,_=t[148].selected&&la(),b=s&&ra(t);function C(){return t[114](t[148])}function y(...w){return t[115](t[148],...w)}return{c(){e=P("li"),_&&_.c(),i=H(),n=P("div"),r=ze(l),o=H(),b&&b.c(),a=H(),u(n,"class","v-5r0p3"),N(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),N(e,"item-mobile",t[34])},m(w,k){S(w,e,k),_&&_.m(e,null),p(e,i),p(e,n),p(n,r),p(e,o),b&&b.m(e,null),p(e,a),d=!0,h||(g=[ve(e,"click",ct(C)),ve(e,"keydown",y)],h=!0)},p(w,k){t=w,t[148].selected?_?k[0]&256&&m(_,1):(_=la(),_.c(),m(_,1),_.m(e,i)):_&&(fe(),v(_,1,1,()=>{_=null}),de()),(!d||k[0]&256)&&l!==(l=t[148].displayValue+"")&&et(r,l),(!d||k[1]&8)&&N(n,"quality-title-mobile",t[34]),k[0]&256|k[1]&8&&(s=!t[34]&&Mo(t[148].value)),s?b?(b.p(t,k),k[0]&256|k[1]&8&&m(b,1)):(b=ra(t),b.c(),m(b,1),b.m(e,a)):b&&(fe(),v(b,1,1,()=>{b=null}),de()),(!d||k[0]&256&&c!==(c=t[148].value))&&u(e,"data-value",c),(!d||k[0]&256&&f!==(f=t[148].displayValue))&&u(e,"aria-label",f),(!d||k[1]&8)&&N(e,"item-mobile",t[34])},i(w){d||(m(_),m(b),d=!0)},o(w){v(_),v(b),d=!1},d(w){w&&T(e),_&&_.d(),b&&b.d(),h=!1,ut(g)}}}function aa(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;n=new Qn({props:{direction:"left"}});let _=Xt(t[7]),b=[];for(let y=0;y<_.length;y+=1)b[y]=ca(Gs(t,_,y));const C=y=>v(b[y],1,1,()=>{b[y]=null});return{c(){var y;e=P("div"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("submenu_playback_rate")}`,o=H(),s=P("div"),a=H(),c=P("ul");for(let w=0;w<b.length;w+=1)b[w].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",Q("aria_label_submenu_back")),N(i,"item-mobile",t[34]),u(s,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",f=t[73]((y=t[18])==null?void 0:y.clientHeight,!0)),N(c,"items-mobile",t[34]),u(e,"class","menu menu-subList v-5r0p3"),N(e,"menu-desktop",!t[34]),N(e,"menu-mobile",t[34])},m(y,w){S(y,e,w),p(e,i),j(n,i,null),p(i,l),p(i,r),t[117](i),p(e,o),p(e,s),p(e,a),p(e,c);for(let k=0;k<b.length;k+=1)b[k]&&b[k].m(c,null);t[120](c),d=!0,h||(g=[ve(i,"click",ct(t[66])),ve(c,"keydown",t[83])],h=!0)},p(y,w){var k;if((!d||w[1]&8)&&N(i,"item-mobile",y[34]),w[0]&128|w[1]&8|w[2]&4194306){_=Xt(y[7]);let I;for(I=0;I<_.length;I+=1){const $=Gs(y,_,I);b[I]?(b[I].p($,w),m(b[I],1)):(b[I]=ca($),b[I].c(),m(b[I],1),b[I].m(c,null))}for(fe(),I=_.length;I<b.length;I+=1)C(I);de()}(!d||w[0]&262144&&f!==(f=y[73]((k=y[18])==null?void 0:k.clientHeight,!0)))&&u(c,"style",f),(!d||w[1]&8)&&N(c,"items-mobile",y[34]),(!d||w[1]&8)&&N(e,"menu-desktop",!y[34]),(!d||w[1]&8)&&N(e,"menu-mobile",y[34])},i(y){if(!d){m(n.$$.fragment,y);for(let w=0;w<_.length;w+=1)m(b[w]);d=!0}},o(y){v(n.$$.fragment,y),b=b.filter(Boolean);for(let w=0;w<b.length;w+=1)v(b[w]);d=!1},d(y){y&&T(e),Z(n),t[117](null),An(b,y),t[120](null),h=!1,ut(g)}}}function ua(t){let e,i,n;return i=new Qo({}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){S(l,e,r),j(i,e,null),n=!0},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function ca(t){let e,i,n,l=t[145].displayValue+"",r,o,s,a,c,f,d,h=t[145].selected&&ua();function g(){return t[118](t[145])}function _(...b){return t[119](t[145],...b)}return{c(){e=P("li"),h&&h.c(),i=H(),n=P("div"),r=ze(l),o=H(),u(n,"class","v-5r0p3"),N(n,"quality-title-mobile",t[34]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",s=t[145].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=t[145].displayValue),N(e,"item-mobile",t[34])},m(b,C){S(b,e,C),h&&h.m(e,null),p(e,i),p(e,n),p(n,r),p(e,o),c=!0,f||(d=[ve(e,"click",ct(g)),ve(e,"keydown",_)],f=!0)},p(b,C){t=b,t[145].selected?h?C[0]&128&&m(h,1):(h=ua(),h.c(),m(h,1),h.m(e,i)):h&&(fe(),v(h,1,1,()=>{h=null}),de()),(!c||C[0]&128)&&l!==(l=t[145].displayValue+"")&&et(r,l),(!c||C[1]&8)&&N(n,"quality-title-mobile",t[34]),(!c||C[0]&128&&s!==(s=t[145].value))&&u(e,"data-value",s),(!c||C[0]&128&&a!==(a=t[145].displayValue))&&u(e,"aria-label",a),(!c||C[1]&8)&&N(e,"item-mobile",t[34])},i(b){c||(m(h),c=!0)},o(b){v(h),c=!1},d(b){b&&T(e),h&&h.d(),f=!1,ut(d)}}}function fa(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V;n=new Qn({props:{direction:"left"}});let X=!t[5]&&da(),J=t[5]&&ma();return{c(){var B;e=P("div"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("submenu_traffic_saving")}`,o=H(),s=P("div"),a=H(),c=P("div"),f=P("ul"),d=P("li"),X&&X.c(),h=H(),g=P("div"),g.textContent=`${Q("traffic_saving_disable")}`,_=H(),b=P("li"),J&&J.c(),C=H(),y=P("div"),y.textContent=`${Q("traffic_saving_enable")}`,w=H(),k=P("div"),I=H(),$=P("div"),q=P("span"),q.textContent=`${Q("traffic_saving_helper_text")}`,u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",Q("aria_label_submenu_back")),N(i,"item-mobile",t[34]),u(s,"class","menu-divider v-5r0p3"),u(g,"class","v-5r0p3"),N(g,"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",Q("aria_label_submenu_traffic_saving_off")),N(d,"item-mobile",t[34]),u(y,"class","v-5r0p3"),N(y,"quality-title-mobile",t[34]),u(b,"class","item item-traffic-saving v-5r0p3"),u(b,"role","menuitem"),u(b,"tabindex","0"),u(b,"aria-label",`${Q("aria_label_submenu_traffic_saving_on")}. ${Q("traffic_saving_helper_text")}`),N(b,"item-mobile",t[34]),u(f,"class","items v-5r0p3"),u(f,"role","menu"),N(f,"items-mobile",t[34]),u(k,"class","menu-divider v-5r0p3"),u(q,"class","v-5r0p3"),u($,"class","item item-helper-text v-5r0p3"),N($,"item-mobile",t[34]),u(c,"style",D=t[73]((B=t[19])==null?void 0:B.clientHeight,!0)),u(e,"class","menu menu-subList menu-subList-traffic-saving v-5r0p3"),N(e,"menu-desktop",!t[34]),N(e,"menu-mobile",t[34])},m(B,A){S(B,e,A),p(e,i),j(n,i,null),p(i,l),p(i,r),t[121](i),p(e,o),p(e,s),p(e,a),p(e,c),p(c,f),p(f,d),X&&X.m(d,null),p(d,h),p(d,g),p(f,_),p(f,b),J&&J.m(b,null),p(b,C),p(b,y),t[126](f),p(c,w),p(c,k),p(c,I),p(c,$),p($,q),te=!0,re||(V=[ve(i,"click",ct(t[66])),ve(d,"click",ct(t[122])),ve(d,"keydown",t[123]),ve(b,"click",ct(t[124])),ve(b,"keydown",t[125]),ve(f,"keydown",t[89])],re=!0)},p(B,A){var R;(!te||A[1]&8)&&N(i,"item-mobile",B[34]),B[5]?X&&(fe(),v(X,1,1,()=>{X=null}),de()):X?A[0]&32&&m(X,1):(X=da(),X.c(),m(X,1),X.m(d,h)),(!te||A[1]&8)&&N(g,"quality-title-mobile",B[34]),(!te||A[1]&8)&&N(d,"item-mobile",B[34]),B[5]?J?A[0]&32&&m(J,1):(J=ma(),J.c(),m(J,1),J.m(b,C)):J&&(fe(),v(J,1,1,()=>{J=null}),de()),(!te||A[1]&8)&&N(y,"quality-title-mobile",B[34]),(!te||A[1]&8)&&N(b,"item-mobile",B[34]),(!te||A[1]&8)&&N(f,"items-mobile",B[34]),(!te||A[1]&8)&&N($,"item-mobile",B[34]),(!te||A[0]&524288&&D!==(D=B[73]((R=B[19])==null?void 0:R.clientHeight,!0)))&&u(c,"style",D),(!te||A[1]&8)&&N(e,"menu-desktop",!B[34]),(!te||A[1]&8)&&N(e,"menu-mobile",B[34])},i(B){te||(m(n.$$.fragment,B),m(X),m(J),te=!0)},o(B){v(n.$$.fragment,B),v(X),v(J),te=!1},d(B){B&&T(e),Z(n),t[121](null),X&&X.d(),J&&J.d(),t[126](null),re=!1,ut(V)}}}function da(t){let e,i,n;return i=new Qo({}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){S(l,e,r),j(i,e,null),n=!0},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function ma(t){let e,i,n;return i=new Qo({}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){S(l,e,r),j(i,e,null),n=!0},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function pa(t){let e,i,n,l,r,o,s,a,c,f,d;n=new Qn({props:{direction:"left"}});let h=Xt(t[6]),g=[];for(let b=0;b<h.length;b+=1)g[b]=va(Ws(t,h,b));const _=b=>v(g[b],1,1,()=>{g[b]=null});return{c(){var b;e=P("div"),i=P("div"),K(n.$$.fragment),l=H(),r=P("div"),r.textContent=`${Q("subtitles_caption")}`,o=H(),s=P("ul");for(let C=0;C<g.length;C+=1)g[C].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",Q("aria_label_submenu_back")),N(i,"item-mobile",t[34]),u(s,"class","items v-5r0p3"),u(s,"role","menu"),u(s,"style",a=t[73]((b=t[20])==null?void 0:b.clientHeight,!0)),N(s,"items-mobile",t[34]),u(e,"class","menu menu-subList menu-subList-subtitles v-5r0p3"),N(e,"menu-desktop",!t[34]),N(e,"menu-mobile",t[34])},m(b,C){S(b,e,C),p(e,i),j(n,i,null),p(i,l),p(i,r),t[127](i),p(e,o),p(e,s);for(let y=0;y<g.length;y+=1)g[y]&&g[y].m(s,null);t[130](s),c=!0,f||(d=[ve(i,"click",ct(t[66])),ve(s,"keydown",t[86])],f=!0)},p(b,C){var y;if((!c||C[1]&8)&&N(i,"item-mobile",b[34]),C[0]&64|C[1]&8|C[2]&33554440){h=Xt(b[6]);let w;for(w=0;w<h.length;w+=1){const k=Ws(b,h,w);g[w]?(g[w].p(k,C),m(g[w],1)):(g[w]=va(k),g[w].c(),m(g[w],1),g[w].m(s,null))}for(fe(),w=h.length;w<g.length;w+=1)_(w);de()}(!c||C[0]&1048576&&a!==(a=b[73]((y=b[20])==null?void 0:y.clientHeight,!0)))&&u(s,"style",a),(!c||C[1]&8)&&N(s,"items-mobile",b[34]),(!c||C[1]&8)&&N(e,"menu-desktop",!b[34]),(!c||C[1]&8)&&N(e,"menu-mobile",b[34])},i(b){if(!c){m(n.$$.fragment,b);for(let C=0;C<h.length;C+=1)m(g[C]);c=!0}},o(b){v(n.$$.fragment,b),g=g.filter(Boolean);for(let C=0;C<g.length;C+=1)v(g[C]);c=!1},d(b){b&&T(e),Z(n),t[127](null),An(g,b),t[130](null),f=!1,ut(d)}}}function ha(t){let e,i,n;return i=new Qo({}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){S(l,e,r),j(i,e,null),n=!0},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function va(t){let e,i,n,l=t[142].displayValue+"",r,o,s,a,c,f,d,h=t[142].selected&&ha();function g(){return t[128](t[142])}function _(...b){return t[129](t[142],...b)}return{c(){e=P("li"),h&&h.c(),i=H(),n=P("div"),r=ze(l),o=H(),u(n,"class","v-5r0p3"),N(n,"quality-title-mobile",t[34]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",s=t[142].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=t[142].displayValue),N(e,"item-mobile",t[34])},m(b,C){S(b,e,C),h&&h.m(e,null),p(e,i),p(e,n),p(n,r),p(e,o),c=!0,f||(d=[ve(e,"click",ct(g)),ve(e,"keydown",_)],f=!0)},p(b,C){t=b,t[142].selected?h?C[0]&64&&m(h,1):(h=ha(),h.c(),m(h,1),h.m(e,i)):h&&(fe(),v(h,1,1,()=>{h=null}),de()),(!c||C[0]&64)&&l!==(l=t[142].displayValue+"")&&et(r,l),(!c||C[1]&8)&&N(n,"quality-title-mobile",t[34]),(!c||C[0]&64&&s!==(s=t[142].value))&&u(e,"data-value",s),(!c||C[0]&64&&a!==(a=t[142].displayValue))&&u(e,"aria-label",a),(!c||C[1]&8)&&N(e,"item-mobile",t[34])},i(b){c||(m(h),c=!0)},o(b){v(h),c=!1},d(b){b&&T(e),h&&h.d(),f=!1,ut(d)}}}function zp(t){let e,i,n,l,r,o,s=t[10]&&Qs(t),a=t[12]&&oa(t),c=t[13]&&aa(t),f=t[15]&&fa(t),d=t[14]&&pa(t);return{c(){e=P("div"),s&&s.c(),i=H(),a&&a.c(),n=H(),c&&c.c(),l=H(),f&&f.c(),r=H(),d&&d.c(),u(e,"class","v-5r0p3"),N(e,"hidden",!t[10]),N(e,"container-mobile",t[34])},m(h,g){S(h,e,g),s&&s.m(e,null),p(e,i),a&&a.m(e,null),p(e,n),c&&c.m(e,null),p(e,l),f&&f.m(e,null),p(e,r),d&&d.m(e,null),o=!0},p(h,g){h[10]?s?(s.p(h,g),g[0]&1024&&m(s,1)):(s=Qs(h),s.c(),m(s,1),s.m(e,i)):s&&(fe(),v(s,1,1,()=>{s=null}),de()),h[12]?a?(a.p(h,g),g[0]&4096&&m(a,1)):(a=oa(h),a.c(),m(a,1),a.m(e,n)):a&&(fe(),v(a,1,1,()=>{a=null}),de()),h[13]?c?(c.p(h,g),g[0]&8192&&m(c,1)):(c=aa(h),c.c(),m(c,1),c.m(e,l)):c&&(fe(),v(c,1,1,()=>{c=null}),de()),h[15]?f?(f.p(h,g),g[0]&32768&&m(f,1)):(f=fa(h),f.c(),m(f,1),f.m(e,r)):f&&(fe(),v(f,1,1,()=>{f=null}),de()),h[14]?d?(d.p(h,g),g[0]&16384&&m(d,1)):(d=pa(h),d.c(),m(d,1),d.m(e,null)):d&&(fe(),v(d,1,1,()=>{d=null}),de()),(!o||g[0]&1024)&&N(e,"hidden",!h[10]),(!o||g[1]&8)&&N(e,"container-mobile",h[34])},i(h){o||(m(s),m(a),m(c),m(f),m(d),o=!0)},o(h){v(s),v(a),v(c),v(f),v(d),o=!1},d(h){h&&T(e),s&&s.d(),a&&a.d(),c&&c.d(),f&&f.d(),d&&d.d()}}}const Hp=18;function Fp(t,e,i){let n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V,{ref:X=void 0}=e,{supportLink:J}=e,{playerControlsHeight:B=0}=e,{returnFocus:A}=e;const R=Pt(),ne=gn(),L=R.state.currentQuality$;z(t,L,le=>i(102,b=le));const G=R.state.availableQualities$;z(t,G,le=>i(8,g=le));const we=R.state.autoQualityLimitingAvailable$;z(t,we,le=>i(106,k=le));const Pe=R.state.isAutoQualityEnabled$;z(t,Pe,le=>i(103,C=le));const Ae=R.state.currentPlaybackRate$;z(t,Ae,le=>i(9,_=le));const Be=R.state.availablePlaybackRates$;z(t,Be,le=>i(7,d=le));const Ue=R.state.currentSubtitle$;z(t,Ue,le=>i(35,re=le));const me=R.state.availableSubtitlesList$;z(t,me,le=>i(6,c=le));const F=R.state.canDownload,ue=R.state.hasMpegSources$;z(t,ue,le=>i(107,I=le));const be=R.ui.settingsMenuVisible;z(t,be,le=>i(10,te=le));const We=R.ui.settingsMenuOpenedByKeyboard;z(t,We,le=>i(132,l=le));const Qe=R.ui.isMobile;z(t,Qe,le=>i(34,r=le));const ce=R.ui.mobileNotReportControlHidden$;z(t,ce,le=>i(104,y=le));const Ee=R.state.canChangePlaybackSpeed$;z(t,Ee,le=>i(105,w=le));const De=R.ui.isFullscreen;z(t,De,le=>i(135,D=le));const Ze=R.state.trafficSavingEnabled$;z(t,Ze,le=>i(5,s=le));const pe=R.ui.playerSize;z(t,pe,le=>i(134,q=le));const M=R.ui.debugPanelVisible;z(t,M,le=>i(36,V=le));const Se=R.ui.playerSize;z(t,Se,le=>i(133,$=le));const se=R.state.isInteractiveTime$,Ce=R.actions.internal.downloadVideo,Ke=R.actions.internal.closeSettingsMenu;let ot=!0,rt=!1,it=!1,pt=!1,st=!1,he=!1;function at(){l||A==null||A(),Ke(),he=!1}function It(){i(11,ot=!1),i(12,rt=!0)}function kt(){i(11,ot=!1),i(15,st=!0)}function Ve(le){R.actions.internal.setQuality(le),at()}function Vt(le){R.actions.internal.setTrafficSavingEnabled(le),at()}function ae(){i(11,ot=!1),i(13,it=!0)}function yt(le){R.actions.internal.setPlaybackRate(le),at()}function Et(){i(11,ot=!1),i(14,pt=!0)}function ht(le){R.actions.internal.setSubtitle(le),at()}function Ge(){i(11,ot=!0),i(12,rt=!1),i(13,it=!1),i(14,pt=!1),i(15,st=!1)}function He(){Ce(),at()}function Ne(){window.open(J,"_blank"),at(),R.actions.internal.pause()}function dt(){cr(R.actions.internal.getDebugTextData()),at()}function Jt(){M.set(!0),at()}function Ut(){he=!0}function Fi(){he=!1}function Xi(le,nt,ci){if(!le)return"...";const Vi=nt.find(Kt=>Kt.value===le),Mi=Vi?Vi.displayValue:le;return ci?le===tt.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:Mi}):Mi}let ni,fi,yi,xt,di;function Ji(le=0,nt=!1){return r&&D&&nt?`max-height: ${Math.round(q.height*.6)}px`:r?"":`max-height: ${$.height-Hp-le-B}px; overflow: auto;`}let Ci,Ni,mi,pi,hi,Ti,Si,oi,Gt,At,vi=Le(!1);z(t,vi,le=>i(101,h=le));let Mt,$t,li=Le(!1);z(t,li,le=>i(100,f=le));let gi,mt,Nt=Le(!1);z(t,Nt,le=>i(99,a=le));let gt,bi,ri=Le(!1);z(t,ri,le=>i(98,o=le));const rn=le=>{Mc(le,Ke)},xi=async le=>{cl(le,It,()=>{const nt=g.findIndex(ci=>ci.selected);return At.childNodes[nt]})},Rt=async le=>{fl(le,Ge,vi,Ke)},si=(le,nt)=>{ln(le,()=>Ve(nt))},Ui=async le=>{cl(le,ae,()=>{const nt=d.findIndex(ci=>ci.selected);return $t.childNodes[nt]})},Pi=async le=>{fl(le,Ge,li,Ke)},ai=(le,nt)=>{ln(le,()=>yt(nt))},Yt=async le=>{cl(le,Et,()=>{const nt=c.findIndex(ci=>ci.selected);return mt.childNodes[nt]})},qi=async le=>{fl(le,Ge,Nt,Ke)},$i=(le,nt)=>{ln(le,()=>ht(nt))},Qt=async le=>{cl(le,kt,()=>{const nt=s?2:0;return bi.childNodes[nt]})},Ot=async le=>{fl(le,Ge,ri,Ke)},qt=(le,nt)=>{ln(le,()=>Vt(nt))},ji=le=>{ln(le,()=>He())},en=le=>{ln(le,()=>Ne())},tn=le=>{ln(le,()=>dt())},Ri=le=>{ln(le,()=>Jt())};fn(()=>{const le=se.subscribe(nt=>{nt&&!r&&!he&&!l&&at()});return()=>{le()}});function Ei(le){Te[le?"unshift":"push"](()=>{Gt=le,i(1,Gt)})}function jt(le){Te[le?"unshift":"push"](()=>{Mt=le,i(2,Mt)})}function ui(le){Te[le?"unshift":"push"](()=>{gi=le,i(3,gi)})}function Ii(le){Te[le?"unshift":"push"](()=>{gt=le,i(4,gt)})}function Oi(le){Te[le?"unshift":"push"](()=>{X=le,i(0,X)})}function Zi(le){Te[le?"unshift":"push"](()=>{fi=le,i(17,fi)})}const _i=le=>Ve(le.value),Ai=(le,nt)=>si(nt,le.value);function Di(le){Te[le?"unshift":"push"](()=>{At=le,i(29,At)})}function Fe(le){Te[le?"unshift":"push"](()=>{yi=le,i(18,yi)})}const Li=le=>yt(le.value),Dt=(le,nt)=>ai(nt,le.value);function Me(le){Te[le?"unshift":"push"](()=>{$t=le,i(30,$t)})}function Ki(le){Te[le?"unshift":"push"](()=>{xt=le,i(19,xt)})}const Wi=()=>Vt(!1),zi=le=>qt(le,!1),Gi=()=>Vt(!0),Hi=le=>qt(le,!0);function dn(le){Te[le?"unshift":"push"](()=>{bi=le,i(32,bi)})}function Yi(le){Te[le?"unshift":"push"](()=>{di=le,i(20,di)})}const Zt=le=>ht(le),Qi=(le,nt)=>$i(nt,le);function Bt(le){Te[le?"unshift":"push"](()=>{mt=le,i(31,mt)})}return t.$$set=le=>{"ref"in le&&i(0,X=le.ref),"supportLink"in le&&i(95,J=le.supportLink),"playerControlsHeight"in le&&i(96,B=le.playerControlsHeight),"returnFocus"in le&&i(97,A=le.returnFocus)},t.$$.update=()=>{var le;t.$$.dirty[0]&1024&&te&&(i(11,ot=!0),i(12,rt=!1),i(13,it=!1),i(14,pt=!1),i(15,st=!1)),t.$$.dirty[3]&512&&i(33,n=Mo(b)),t.$$.dirty[0]&256|t.$$.dirty[3]&1536&&i(16,ni=Xi(b,g,C)),t.$$.dirty[3]&18432&&i(21,Ci=F&&I&&!y),t.$$.dirty[3]&10240&&i(22,Ni=ne.features.trafficSaving&&!y&&k),t.$$.dirty[0]&64|t.$$.dirty[3]&2048&&i(23,mi=c.length>0&&!y),t.$$.dirty[3]&6144&&i(24,pi=!!w&&!y),t.$$.dirty[3]&2048&&i(25,hi=!y),t.$$.dirty[0]&32&&i(26,Ti=Q(s?"traffic_saving_on":"traffic_saving_off")),t.$$.dirty[3]&1536&&i(27,Si=C?Q("auto_quality_option"):b),t.$$.dirty[0]&640&&i(28,oi=(le=d.find(nt=>nt.value===_))==null?void 0:le.displayValue),t.$$.dirty[0]&2|t.$$.dirty[3]&256&&ul(Gt,vi,h),t.$$.dirty[0]&4|t.$$.dirty[3]&128&&ul(Mt,li,f),t.$$.dirty[0]&8|t.$$.dirty[3]&64&&ul(gi,Nt,a),t.$$.dirty[0]&16|t.$$.dirty[3]&32&&ul(gt,ri,o)},[X,Gt,Mt,gi,gt,s,c,d,g,_,te,ot,rt,it,pt,st,ni,fi,yi,xt,di,Ci,Ni,mi,pi,hi,Ti,Si,oi,At,$t,mt,bi,n,r,re,V,ne,L,G,we,Pe,Ae,Be,Ue,me,ue,be,We,Qe,ce,Ee,De,Ze,pe,M,Se,at,It,kt,Ve,Vt,ae,yt,Et,ht,Ge,He,Ne,dt,Jt,Ut,Fi,Ji,vi,li,Nt,ri,rn,xi,Rt,si,Ui,Pi,ai,Yt,qi,$i,Qt,Ot,qt,ji,en,tn,Ri,J,B,A,o,a,f,h,b,C,y,w,k,I,Ei,jt,ui,Ii,Oi,Zi,_i,Ai,Di,Fe,Li,Dt,Me,Ki,Wi,zi,Gi,Hi,dn,Yi,Zt,Qi,Bt]}class jc extends ye{constructor(e){super(),ke(this,e,Fp,zp,_e,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},Op,[-1,-1,-1,-1,-1])}}function Up(t){Ye(t,"v-d9t49t",".settings-icon-wrapper.v-d9t49t{position:relative;width:24px}")}function qp(t){let e,i,n;return i=new Uc({props:{isMobile:t[3],currentQuality:t[4]}}),{c(){e=P("span"),K(i.$$.fragment),u(e,"class","settings-icon-wrapper v-d9t49t")},m(l,r){S(l,e,r),j(i,e,null),n=!0},p(l,r){const o={};r&8&&(o.isMobile=l[3]),r&16&&(o.currentQuality=l[4]),i.$set(o)},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function jp(t){let e,i,n;function l(o){t[9](o)}let r={className:t[1]?"opened":"",testId:"btn-settings",click:t[8],ariaLabel:t[2],ariaExpanded:t[1],$$slots:{default:[qp]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&2&&(a.className=o[1]?"opened":""),s&4&&(a.ariaLabel=o[2]),s&2&&(a.ariaExpanded=o[1]),s&4120&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Zp(t,e,i){let n,l,r,{ref:o=void 0}=e;const s=Pt(),a=s.state.currentQuality$;z(t,a,b=>i(4,r=b));const c=s.ui.settingsMenuVisible;z(t,c,b=>i(1,n=b));const f=s.actions.internal.toggleSettingsMenu,d=s.ui.isMobile;z(t,d,b=>i(3,l=b));let h;function g(b){const C=kr(b);f(C)}function _(b){o=b,i(0,o)}return t.$$set=b=>{"ref"in b&&i(0,o=b.ref)},t.$$.update=()=>{t.$$.dirty&2&&i(2,h=Q(n?"tooltip_settings_on":"tooltip_settings_off"))},[o,n,h,l,r,a,c,d,g,_]}class Tr extends ye{constructor(e){super(),ke(this,e,Zp,jp,_e,{ref:0},Up)}}function Kp(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Wp extends ye{constructor(e){super(),ke(this,e,null,Kp,_e,{})}}function Gp(t){let e,i;return e=new qc({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Yp(t){let e,i;return e=new Wp({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Qp(t){let e,i,n,l;const r=[Yp,Gp],o=[];function s(a,c){return a[0]?0:1}return e=s(t),i=o[e]=r[e](t),{c(){i.c(),n=bt()},m(a,c){o[e].m(a,c),S(a,n,c),l=!0},p(a,c){let f=e;e=s(a),e!==f&&(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),i=o[e],i||(i=o[e]=r[e](a),i.c()),m(i,1),i.m(n.parentNode,n))},i(a){l||(m(i),l=!0)},o(a){v(i),l=!1},d(a){a&&T(n),o[e].d(a)}}}function Xp(t){let e,i;return e=new ki({props:{testId:"btn-Subtitles",ariaLabel:t[2],click:t[1],ariaKeyShortCut:jo[Ie.KeyC],$$slots:{default:[Qp]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,[l]){const r={};l&4&&(r.ariaLabel=n[2]),l&2&&(r.click=n[1]),l&9&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Jp(t,e,i){let{isSubtitlesEnabled:n=!1}=e,{click:l}=e,r;return t.$$set=o=>{"isSubtitlesEnabled"in o&&i(0,n=o.isSubtitlesEnabled),"click"in o&&i(1,l=o.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,r=Q(n?"tooltip_subtitles_on":"tooltip_subtitles_off"))},[n,l,r]}class xp extends ye{constructor(e){super(),ke(this,e,Jp,Xp,_e,{isSubtitlesEnabled:0,click:1})}}function $p(t){Ye(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 ga(t){let e,i;return{c(){e=P("span"),i=ze(t[3]),u(e,"class","duration v-19o2urr")},m(n,l){S(n,e,l),p(e,i)},p(n,l){l&8&&et(i,n[3])},d(n){n&&T(e)}}}function eh(t){let e,i,n,l,r=t[2]&&ga(t);return{c(){e=P("div"),i=P("span"),n=ze(t[4]),l=H(),r&&r.c(),u(i,"class","current v-19o2urr"),u(e,"class","time v-19o2urr"),N(e,"mobile",t[1])},m(o,s){S(o,e,s),p(e,i),p(i,n),p(e,l),r&&r.m(e,null),t[7](e)},p(o,[s]){s&16&&et(n,o[4]),o[2]?r?r.p(o,s):(r=ga(o),r.c(),r.m(e,null)):r&&(r.d(1),r=null),s&2&&N(e,"mobile",o[1])},i:W,o:W,d(o){o&&T(e),r&&r.d(),t[7](null)}}}function th(t,e,i){let{isMobile:n=!1}=e,{duration:l}=e,{position:r}=e,{showDuration:o=!0}=e,{ref:s}=e,a,c;function f(d){Te[d?"unshift":"push"](()=>{s=d,i(0,s)})}return t.$$set=d=>{"isMobile"in d&&i(1,n=d.isMobile),"duration"in d&&i(5,l=d.duration),"position"in d&&i(6,r=d.position),"showDuration"in d&&i(2,o=d.showDuration),"ref"in d&&i(0,s=d.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,a=zn(l)),t.$$.dirty&64&&i(4,c=zn(r))},[s,n,o,a,c,l,r,f]}class Zc extends ye{constructor(e){super(),ke(this,e,th,eh,_e,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},$p)}}function ih(t){Ye(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 nh(t){let e,i,n,l,r,o;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("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(l,"class","wave1 v-1n5yyua"),u(l,"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(r,"class","cross v-1n5yyua"),u(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"data-value",t[0]),u(e,"data-testid",o="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(s,a){S(s,e,a),p(e,i),p(i,n),p(i,l),p(i,r)},p(s,[a]){a&1&&u(e,"data-value",s[0]),a&1&&o!==(o="volume-"+s[0]+"-icon")&&u(e,"data-testid",o)},i:W,o:W,d(s){s&&T(e)}}}function oh(t,e,i){let{volume:n=1}=e,{muted:l=!1}=e;const r=(s,a)=>a?"off":s>.5?"max":s>.2?"mid":s>0?"min":"off";let o;return t.$$set=s=>{"volume"in s&&i(1,n=s.volume),"muted"in s&&i(2,l=s.muted)},t.$$.update=()=>{t.$$.dirty&6&&i(0,o=r(n,l))},[o,n,l]}class Tl extends ye{constructor(e){super(),ke(this,e,oh,nh,_e,{volume:1,muted:2},ih)}}function lh(t){let e,i;const n=t[4].default,l=Hn(n,t,t[3],null);return{c(){e=P("div"),l&&l.c(),u(e,"class","overlay")},m(r,o){S(r,e,o),l&&l.m(e,null),t[5](e),i=!0},p(r,[o]){l&&l.p&&(!i||o&8)&&Un(l,n,r,r[3],i?Fn(n,r[3],o,null):qn(r[3]),null)},i(r){i||(m(l,r),i=!0)},o(r){v(l,r),i=!1},d(r){r&&T(e),l&&l.d(r),t[5](null)}}}function rh(t,e,i){let n,{$$slots:l={},$$scope:r}=e;const s=Pt().ui.overlayContainer$;z(t,s,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)};fn(()=>(f(n),()=>c(n)));function d(h){Te[h?"unshift":"push"](()=>{a=h,i(0,a)})}return t.$$set=h=>{"$$scope"in h&&i(3,r=h.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&f(n)},[a,s,n,r,l,d]}class sh extends ye{constructor(e){super(),ke(this,e,rh,lh,_e,{})}}function ah(t){Ye(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 ba(t){let e,i;return e=new sh({props:{$$slots:{default:[uh]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&2097395&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function uh(t){let e,i,n,l,r,o,s;return{c(){e=P("div"),i=P("div"),n=ze(t[1]),l=H(),r=P("div"),u(i,"class","content v-tny135"),u(r,"class","tooltip-pointer v-tny135"),u(r,"style",o=`transform: translate(${t[5]}px, ${t[9]}px) rotate(${t[8]?0:"180deg"});`),N(r,"bottom-placement-pointer",!t[8]),u(e,"class","tooltip v-tny135"),u(e,"style",s=`transform: translate(${t[6]}px, ${t[7]}px);`),N(e,"active",t[0])},m(a,c){S(a,e,c),p(e,i),p(i,n),p(e,l),p(e,r),t[20](e)},p(a,c){c&2&&et(n,a[1]),c&32&&o!==(o=`transform: translate(${a[5]}px, ${a[9]}px) rotate(${a[8]?0:"180deg"});`)&&u(r,"style",o),c&192&&s!==(s=`transform: translate(${a[6]}px, ${a[7]}px);`)&&u(e,"style",s),c&1&&N(e,"active",a[0])},d(a){a&&T(e),t[20](null)}}}function ch(t){let e,i,n,l,r,o;const s=t[18].default,a=Hn(s,t,t[21],null);let c=t[1]&&ba(t);return{c(){e=P("div"),a&&a.c(),i=H(),c&&c.c(),n=bt(),u(e,"class","tooltip-wrapper v-tny135"),N(e,"full-width",t[2])},m(f,d){S(f,e,d),a&&a.m(e,null),t[19](e),S(f,i,d),c&&c.m(f,d),S(f,n,d),l=!0,r||(o=[ve(e,"mouseenter",t[12]),ve(e,"mousemove",t[12]),ve(e,"mouseleave",t[13]),ve(e,"mousedown",t[13]),ve(e,"mouseup",t[12])],r=!0)},p(f,[d]){a&&a.p&&(!l||d&2097152)&&Un(a,s,f,f[21],l?Fn(s,f[21],d,null):qn(f[21]),null),(!l||d&4)&&N(e,"full-width",f[2]),f[1]?c?(c.p(f,d),d&2&&m(c,1)):(c=ba(f),c.c(),m(c,1),c.m(n.parentNode,n)):c&&(fe(),v(c,1,1,()=>{c=null}),de())},i(f){l||(m(a,f),m(c),l=!0)},o(f){v(a,f),v(c),l=!1},d(f){f&&(T(e),T(i),T(n)),a&&a.d(f),t[19](null),c&&c.d(f),r=!1,ut(o)}}}const Ro=5;function fh(t,e,i){let n,l,{$$slots:r={},$$scope:o}=e,{content:s=""}=e,{active:a=!1}=e,{translateX:c=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:d=!1}=e,{placement:h="top"}=e,{onVisibilityChange:g=ie.noop}=e;const _=h==="top";let b,C,y,w=0,k=_?Ro:-Ro,I=0,$=0;const q=gn(),D=Pt(),te=D.ui.playerSize;z(t,te,G=>i(24,l=G));const re=D.ui.overlayContainer$;z(t,re,G=>i(23,n=G));const V=D.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n||!C||!b)return;const G=n.getBoundingClientRect(),we=b.getBoundingClientRect(),Pe=we.width,Ae=C.clientWidth,Be=l.width,Ue=(Pe-Ae)/2,me=we.left+c-G.left;let F=me+Ue;const ue=we.top+f-G.top;let be=Ae/2-Ro;const We=F<Oo,Qe=F+Ae>Be-Oo;We&&(F=Oo,be=me+we.width/2-2.5*Ro),Qe&&(F=Be-Oo-Ae,be=we.left-G.left+we.width/2-F-Ro),i(6,I=F),i(7,$=ue),i(5,w=be)},J=()=>{try{if(!n||!b)return;X(),i(0,a=!0)}catch(G){V({message:String(G)})}},B=()=>{i(0,a=!1)},A=()=>{C&&(y||(y=window.setTimeout(J,q.controls.hideTimeoutTooltips)),a&&J())},R=()=>{B(),window.clearTimeout(y),y=void 0};fn(X),qo(()=>window.clearTimeout(y));function ne(G){Te[G?"unshift":"push"](()=>{b=G,i(3,b)})}function L(G){Te[G?"unshift":"push"](()=>{C=G,i(4,C)})}return t.$$set=G=>{"content"in G&&i(1,s=G.content),"active"in G&&i(0,a=G.active),"translateX"in G&&i(14,c=G.translateX),"translateY"in G&&i(15,f=G.translateY),"isFullWidthWrapper"in G&&i(2,d=G.isFullWidthWrapper),"placement"in G&&i(16,h=G.placement),"onVisibilityChange"in G&&i(17,g=G.onVisibilityChange),"$$scope"in G&&i(21,o=G.$$scope)},t.$$.update=()=>{t.$$.dirty&131073&&g(a)},[a,s,d,b,C,w,I,$,_,k,te,re,A,R,c,f,h,g,r,ne,L,o]}class Kc extends ye{constructor(e){super(),ke(this,e,fh,ch,_e,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},ah)}}function dh(t){Ye(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 mh(t){let e;const i=t[19].default,n=Hn(i,t,t[24],null);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),e=!0},p(l,r){n&&n.p&&(!e||r&16777216)&&Un(n,i,l,l[24],e?Fn(i,l[24],r,null):qn(l[24]),null)},i(l){e||(m(n,l),e=!0)},o(l){v(n,l),e=!1},d(l){n&&n.d(l)}}}function ph(t){let e,i;return e=new Kc({props:{content:t[12],translateX:t[10],translateY:t[11],isFullWidthWrapper:t[4],active:t[6],placement:t[7],onVisibilityChange:t[9],$$slots:{default:[hh]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&4096&&(r.content=n[12]),l&1024&&(r.translateX=n[10]),l&2048&&(r.translateY=n[11]),l&16&&(r.isFullWidthWrapper=n[4]),l&64&&(r.active=n[6]),l&128&&(r.placement=n[7]),l&512&&(r.onVisibilityChange=n[9]),l&16777216&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function hh(t){let e;const i=t[19].default,n=Hn(i,t,t[24],null);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),e=!0},p(l,r){n&&n.p&&(!e||r&16777216)&&Un(n,i,l,l[24],e?Fn(i,l[24],r,null):qn(l[24]),null)},i(l){e||(m(n,l),e=!0)},o(l){v(n,l),e=!1},d(l){n&&n.d(l)}}}function vh(t){let e,i,n,l,r,o,s,a,c;const f=[ph,mh],d=[];function h(g,_){return g[3]&&g[5]&&!g[13]?0:1}return i=h(t),n=d[i]=f[i](t),{c(){e=P("div"),n.c(),u(e,"class",l="btn-container "+t[2]+" v-p9r045"),u(e,"aria-hidden",r=t[8]||null),Lo(()=>t[23].call(e))},m(g,_){S(g,e,_),d[i].m(e,null),t[22](e),o=dr(e,t[23].bind(e)),s=!0,a||(c=[ve(e,"pointerdown",ct(ii(t[20]))),ve(e,"click",ct(ii(t[21])))],a=!0)},p(g,[_]){let b=i;i=h(g),i===b?d[i].p(g,_):(fe(),v(d[b],1,1,()=>{d[b]=null}),de(),n=d[i],n?n.p(g,_):(n=d[i]=f[i](g),n.c()),m(n,1),n.m(e,null)),(!s||_&4&&l!==(l="btn-container "+g[2]+" v-p9r045"))&&u(e,"class",l),(!s||_&256&&r!==(r=g[8]||null))&&u(e,"aria-hidden",r)},i(g){s||(m(n),s=!0)},o(g){v(n),s=!1},d(g){g&&T(e),d[i].d(),t[22](null),o(),a=!1,ut(c)}}}function gh(t,e,i){let n,l,{$$slots:r={},$$scope:o}=e,{className:s=""}=e,{disabled:a=!1}=e,{hasTooltip:c=!0}=e,{ref:f=void 0}=e,{width:d=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:g=""}=e,{tooltipActive:_=!1}=e,{tooltipPlacement:b="top"}=e,{disabledTooltipContent:C=Q("tooltip_button_disabled")}=e,{isAriaHidden:y=!1}=e,{onTooltipVisibilityChange:w=ie.noop}=e,{initialTranslateXPx:k=0}=e,{initialTranslateYPx:I=-18}=e;const $=Pt(),q=$.ui.isMobile;z(t,q,B=>i(13,l=B));const D=$.state.graphIsOpened$;z(t,D,B=>i(18,n=B));let te;function re(B){so.call(this,t,B)}function V(B){so.call(this,t,B)}function X(B){Te[B?"unshift":"push"](()=>{f=B,i(0,f)})}function J(){d=this.clientWidth,i(1,d)}return t.$$set=B=>{"className"in B&&i(2,s=B.className),"disabled"in B&&i(16,a=B.disabled),"hasTooltip"in B&&i(3,c=B.hasTooltip),"ref"in B&&i(0,f=B.ref),"width"in B&&i(1,d=B.width),"isFullWidthTooltip"in B&&i(4,h=B.isFullWidthTooltip),"tooltipContent"in B&&i(5,g=B.tooltipContent),"tooltipActive"in B&&i(6,_=B.tooltipActive),"tooltipPlacement"in B&&i(7,b=B.tooltipPlacement),"disabledTooltipContent"in B&&i(17,C=B.disabledTooltipContent),"isAriaHidden"in B&&i(8,y=B.isAriaHidden),"onTooltipVisibilityChange"in B&&i(9,w=B.onTooltipVisibilityChange),"initialTranslateXPx"in B&&i(10,k=B.initialTranslateXPx),"initialTranslateYPx"in B&&i(11,I=B.initialTranslateYPx),"$$scope"in B&&i(24,o=B.$$scope)},t.$$.update=()=>{t.$$.dirty&458784&&(a?i(12,te=n?Q("tooltip_disabled_when_graph_on"):C):i(12,te=g))},[f,d,s,c,h,g,_,b,y,w,k,I,te,l,q,D,a,C,n,r,re,V,X,J,o]}class Ft extends ye{constructor(e){super(),ke(this,e,gh,vh,_e,{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},dh)}}function bh(t){let e,i,n,l,r;return{c(){e=O("svg"),i=O("rect"),l=O("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(l,"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(l,"fill",r=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(o,s){S(o,e,s),p(e,i),p(e,l)},p(o,[s]){s&1&&n!==(n=o[0]?1:.24)&&u(i,"fill-opacity",n),s&1&&r!==(r=o[0]?"var(--interactive-episode-complete)":"white")&&u(l,"fill",r)},i:W,o:W,d(o){o&&T(e)}}}function _h(t,e,i){let{completed:n}=e;return t.$$set=l=>{"completed"in l&&i(0,n=l.completed)},[n]}class Wc extends ye{constructor(e){super(),ke(this,e,_h,bh,_e,{completed:0})}}function wh(t){Ye(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 kh(t){let e,i,n,l,r;return i=new Wc({props:{completed:!!t[0].completed}}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","interactive-episode-icon v-bklhpe"),u(e,"style",n=`left: ${t[0].from+t[0].width/2}%`),Lo(()=>t[3].call(e)),N(e,"disabled",t[1])},m(o,s){S(o,e,s),j(i,e,null),l=dr(e,t[3].bind(e)),r=!0},p(o,s){const a={};s&1&&(a.completed=!!o[0].completed),i.$set(a),(!r||s&1&&n!==(n=`left: ${o[0].from+o[0].width/2}%`))&&u(e,"style",n),(!r||s&2)&&N(e,"disabled",o[1])},i(o){r||(m(i.$$.fragment,o),r=!0)},o(o){v(i.$$.fragment,o),r=!1},d(o){o&&T(e),Z(i),l()}}}function yh(t){let e,i;return e=new Ft({props:{tooltipContent:Q(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:[kh]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,[l]){const r={};l&1&&(r.tooltipContent=Q(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),l&2&&(r.disabled=n[1]),l&4&&(r.width=n[2]||0),l&23&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Ch(t,e,i){let{videoEpisode:n}=e,{disabled:l}=e,r;function o(){r=this.clientWidth,i(2,r)}return t.$$set=s=>{"videoEpisode"in s&&i(0,n=s.videoEpisode),"disabled"in s&&i(1,l=s.disabled)},[n,l,r,o]}class Th extends ye{constructor(e){super(),ke(this,e,Ch,yh,_e,{videoEpisode:0,disabled:1},wh)}}function Sh(t){Ye(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 _a(t,e,i){const n=t.slice();return n[2]=e[i],n}function wa(t){let e,i,n,l,r,o,s,a,c;return{c(){e=P("div"),i=P("div"),n=P("div"),r=H(),o=P("div"),a=H(),u(n,"class","video-episode-loaded v-1h9p3m2"),u(n,"style",l=`transform: translateX(${t[2].loadedWidth/t[2].width*100}%)`),u(o,"class","video-episode-filled v-1h9p3m2"),u(o,"style",s=`transform: translateX(${t[2].filledWidth/t[2].width*100}%)`),N(o,"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}%`),N(e,"mobile",t[1])},m(f,d){S(f,e,d),p(e,i),p(i,n),p(i,r),p(i,o),p(e,a)},p(f,d){d&1&&l!==(l=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&u(n,"style",l),d&1&&s!==(s=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(o,"style",s),d&2&&N(o,"mobile",f[1]),d&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),d&2&&N(e,"mobile",f[1])},d(f){f&&T(e)}}}function Ph(t){let e,i=Xt(t[0]),n=[];for(let l=0;l<i.length;l+=1)n[l]=wa(_a(t,i,l));return{c(){e=P("div");for(let l=0;l<n.length;l+=1)n[l].c();u(e,"class","video-episodes-wrap v-1h9p3m2")},m(l,r){S(l,e,r);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null)},p(l,[r]){if(r&3){i=Xt(l[0]);let o;for(o=0;o<i.length;o+=1){const s=_a(l,i,o);n[o]?n[o].p(s,r):(n[o]=wa(s),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},i:W,o:W,d(l){l&&T(e),An(n,l)}}}function Eh(t,e,i){let{videoEpisodes:n=[]}=e,{isMobile:l}=e;return t.$$set=r=>{"videoEpisodes"in r&&i(0,n=r.videoEpisodes),"isMobile"in r&&i(1,l=r.isMobile)},[n,l]}class Ih extends ye{constructor(e){super(),ke(this,e,Eh,Ph,_e,{videoEpisodes:0,isMobile:1},Sh)}}function Ah(t){Ye(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 ka(t,e,i){const n=t.slice();return n[48]=e[i],n}function ya(t){let e,i,n=Xt(t[21]),l=[];for(let o=0;o<n.length;o+=1)l[o]=Ta(ka(t,n,o));const r=o=>v(l[o],1,1,()=>{l[o]=null});return{c(){e=P("div");for(let o=0;o<l.length;o+=1)l[o].c();u(e,"class","interactive-icons v-1golz1y"),N(e,"mobile",t[5]),N(e,"hidden",t[5]&&!t[20])},m(o,s){S(o,e,s);for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(e,null);i=!0},p(o,s){if(s[0]&2097664){n=Xt(o[21]);let a;for(a=0;a<n.length;a+=1){const c=ka(o,n,a);l[a]?(l[a].p(c,s),m(l[a],1)):(l[a]=Ta(c),l[a].c(),m(l[a],1),l[a].m(e,null))}for(fe(),a=n.length;a<l.length;a+=1)r(a);de()}(!i||s[0]&32)&&N(e,"mobile",o[5]),(!i||s[0]&1048608)&&N(e,"hidden",o[5]&&!o[20])},i(o){if(!i){for(let s=0;s<n.length;s+=1)m(l[s]);i=!0}},o(o){l=l.filter(Boolean);for(let s=0;s<l.length;s+=1)v(l[s]);i=!1},d(o){o&&T(e),An(l,o)}}}function Ca(t){let e,i;return e=new Th({props:{videoEpisode:t[48],disabled:t[9]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&2097152&&(r.videoEpisode=n[48]),l[0]&512&&(r.disabled=n[9]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Ta(t){let e,i,n=t[48].interactive&&Ca(t);return{c(){n&&n.c(),e=bt()},m(l,r){n&&n.m(l,r),S(l,e,r),i=!0},p(l,r){l[48].interactive?n?(n.p(l,r),r[0]&2097152&&m(n,1)):(n=Ca(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(fe(),v(n,1,1,()=>{n=null}),de())},i(l){i||(m(n),i=!0)},o(l){v(n),i=!1},d(l){l&&T(e),n&&n.d(l)}}}function Lh(t){let e,i,n,l,r,o;return{c(){e=P("div"),i=P("div"),l=H(),r=P("div"),u(i,"class","loaded v-1golz1y"),u(i,"style",n=`transform: translateX(${t[11]*100}%);`),u(r,"class","filled v-1golz1y"),u(r,"style",o=`transform: translateX(${t[12]*100}%);`),N(r,"active-live",t[4]),N(r,"ads",t[6]),u(e,"class","bars v-1golz1y")},m(s,a){S(s,e,a),p(e,i),p(e,l),p(e,r)},p(s,a){a[0]&2048&&n!==(n=`transform: translateX(${s[11]*100}%);`)&&u(i,"style",n),a[0]&4096&&o!==(o=`transform: translateX(${s[12]*100}%);`)&&u(r,"style",o),a[0]&16&&N(r,"active-live",s[4]),a[0]&64&&N(r,"ads",s[6])},i:W,o:W,d(s){s&&T(e)}}}function Vh(t){let e,i;return e=new Ih({props:{videoEpisodes:t[21],isMobile:t[5]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&2097152&&(r.videoEpisodes=n[21]),l[0]&32&&(r.isMobile=n[5]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Mh(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_=t[8]&&ya(t);const b=[Vh,Lh],C=[];function y(w,k){return w[21].length?0:1}return n=y(t),l=C[n]=b[n](t),{c(){var w;_&&_.c(),e=H(),i=P("div"),l.c(),r=H(),o=P("div"),s=P("div"),u(s,"class","handle v-1golz1y"),N(s,"active-live",t[4]),u(o,"class","handleWrap v-1golz1y"),u(o,"style",a=`transform: translateX(${t[13]*100}%);`),N(o,"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=(w=t[1])!=null?w:null),N(i,"disabled",t[9]),N(i,"slider-dragging",t[20]),N(i,"hidden",t[2]),N(i,"slider-vertical",t[3]),N(i,"no-handle",t[10]),N(i,"square",t[7])},m(w,k){_&&_.m(w,k),S(w,e,k),S(w,i,k),C[n].m(i,null),p(i,r),p(i,o),p(o,s),t[42](i),d=!0,h||(g=[ve(i,"pointerdown",ii(t[22])),ve(i,"pointermove",ii(t[23])),ve(i,"pointerup",ii(t[24])),ve(i,"pointerenter",ii(t[25])),ve(i,"pointerleave",ii(t[26])),ve(i,"click",ct(ie.noop)),ve(i,"wheel",t[27])],h=!0)},p(w,k){var $;w[8]?_?(_.p(w,k),k[0]&256&&m(_,1)):(_=ya(w),_.c(),m(_,1),_.m(e.parentNode,e)):_&&(fe(),v(_,1,1,()=>{_=null}),de());let I=n;n=y(w),n===I?C[n].p(w,k):(fe(),v(C[I],1,1,()=>{C[I]=null}),de(),l=C[n],l?l.p(w,k):(l=C[n]=b[n](w),l.c()),m(l,1),l.m(i,r)),(!d||k[0]&16)&&N(s,"active-live",w[4]),(!d||k[0]&8192&&a!==(a=`transform: translateX(${w[13]*100}%);`))&&u(o,"style",a),(!d||k[0]&1024)&&N(o,"hidden",w[10]),(!d||k[0]&1&&c!==(c="slider "+w[0]+" v-1golz1y"))&&u(i,"class",c),(!d||k[0]&16384)&&u(i,"aria-label",w[14]),(!d||k[0]&32768)&&u(i,"aria-valuemin",w[15]),(!d||k[0]&65536)&&u(i,"aria-valuemax",w[16]),(!d||k[0]&131072)&&u(i,"aria-valuenow",w[17]),(!d||k[0]&262144)&&u(i,"aria-valuetext",w[18]),(!d||k[0]&2&&f!==(f=($=w[1])!=null?$:null))&&u(i,"data-testid",f),(!d||k[0]&513)&&N(i,"disabled",w[9]),(!d||k[0]&1048577)&&N(i,"slider-dragging",w[20]),(!d||k[0]&5)&&N(i,"hidden",w[2]),(!d||k[0]&9)&&N(i,"slider-vertical",w[3]),(!d||k[0]&1025)&&N(i,"no-handle",w[10]),(!d||k[0]&129)&&N(i,"square",w[7])},i(w){d||(m(_),m(l),d=!0)},o(w){v(_),v(l),d=!1},d(w){w&&(T(e),T(i)),_&&_.d(w),C[n].d(),t[42](null),h=!1,ut(g)}}}function Bh(t,e,i){let n,l,{className:r=""}=e,{testId:o=void 0}=e,{isHidden:s=!1}=e,{isVertical:a=!1}=e,{isActiveLive:c=!1}=e,{isMobile:f=!1}=e,{isAds:d=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:_=!1}=e,{isInteractive:b=!1}=e,{disabled:C=!1}=e,{hideHandel:y=!1}=e,w,k,{onPointerDown:I=ie.noop}=e,{onHandleMove:$=ie.noop}=e,{onPointerUp:q=ie.noop}=e,{onPointerEnter:D=ie.noop}=e,{onPointerMove:te=ie.noop}=e,{onPointerLeave:re=ie.noop}=e,{onWheelUp:V=ie.noop}=e,{onWheelDown:X=ie.noop}=e,{onWheelLeft:J=ie.noop}=e,{onWheelRight:B=ie.noop}=e,{loadedProgress:A=0}=e,{filledProgress:R=0}=e,{handleProgress:ne=0}=e,{ariaLabel:L=""}=e,{ariaValueMin:G=void 0}=e,{ariaValueMax:we=void 0}=e,{ariaValueNow:Pe=void 0}=e,{ariaValueText:Ae=""}=e;const Be=gn();let Ue=!1,me;function F(M){if(Ue)return;i(20,Ue=!0),k=w.getBoundingClientRect();const Se=Ee(M.clientX,M.clientY);I(Se),w.setPointerCapture(M.pointerId)}function ue(M){const Se=Ee(M.clientX,M.clientY),se=De(M.clientX);te(Se,se,k.width),Ue&&$(Se)}function be(M){if(!Ue)return;i(20,Ue=!1);const Se=Ee(M.clientX,M.clientY);q(Se)}function We(M){k=w.getBoundingClientRect();const Se=Ee(M.clientX,M.clientY),se=De(M.clientX);D(Se,se,k.width)}function Qe(){re()}function ce(M){_&&(M.preventDefault(),M.deltaY<0?V():M.deltaY>0?X():M.deltaX>0?B():J())}function Ee(M,Se){return a?Math.max(0,Math.min(1,(k.height-(Se-k.top))/k.height)):Math.min(Math.max(M-k.x,0),k.width)/k.width}function De(M){return Math.min(Math.max(M-k.x,0),k.width)}function Ze(M,Se){const se=Be.features.episodesClustering&&!b?Be.episodeMinWidthPc:0,Ce=[];let Ke=0,ot=0,rt=0;for(let st=1;st<g.length;st++)ot=g[st].time/me*100,ot-Ke>se&&(Ce.push({from:Ke,width:Math.max(0,ot-Ke),loadedWidth:Math.max(0,Math.min(ot,M)-Ke),filledWidth:Math.max(0,Math.min(ot,Se)-Ke),interactive:g[st-1].interactive,completed:g[st-1].completed}),Ke=g[st].time/me*100,rt++);const it={from:Ke,width:Math.max(0,100-Ke),loadedWidth:Math.max(0,Math.min(M,100)-Ke),filledWidth:Math.max(0,Math.min(Se,100)-Ke),interactive:g[rt].interactive,completed:g[rt].completed};100-Ke<se?(rt-=1,Ce[rt].width+=100-Ke,Ce[rt].loadedWidth+=Math.max(0,Math.min(M,100)-Ke),Ce[rt].filledWidth+=Math.max(0,Math.min(Se,100)-Ke)):Ce[rt]=it;const pt=g[0].time;if(pt!==0){const st=pt/me*100;Ce.unshift({from:0,width:st,loadedWidth:Math.min(st,M),filledWidth:Math.min(st,Se)})}return Ce}function pe(M){Te[M?"unshift":"push"](()=>{w=M,i(19,w)})}return t.$$set=M=>{"className"in M&&i(0,r=M.className),"testId"in M&&i(1,o=M.testId),"isHidden"in M&&i(2,s=M.isHidden),"isVertical"in M&&i(3,a=M.isVertical),"isActiveLive"in M&&i(4,c=M.isActiveLive),"isMobile"in M&&i(5,f=M.isMobile),"isAds"in M&&i(6,d=M.isAds),"squareBorders"in M&&i(7,h=M.squareBorders),"videoEpisodes"in M&&i(28,g=M.videoEpisodes),"withWheelHandler"in M&&i(29,_=M.withWheelHandler),"isInteractive"in M&&i(8,b=M.isInteractive),"disabled"in M&&i(9,C=M.disabled),"hideHandel"in M&&i(10,y=M.hideHandel),"onPointerDown"in M&&i(30,I=M.onPointerDown),"onHandleMove"in M&&i(31,$=M.onHandleMove),"onPointerUp"in M&&i(32,q=M.onPointerUp),"onPointerEnter"in M&&i(33,D=M.onPointerEnter),"onPointerMove"in M&&i(34,te=M.onPointerMove),"onPointerLeave"in M&&i(35,re=M.onPointerLeave),"onWheelUp"in M&&i(36,V=M.onWheelUp),"onWheelDown"in M&&i(37,X=M.onWheelDown),"onWheelLeft"in M&&i(38,J=M.onWheelLeft),"onWheelRight"in M&&i(39,B=M.onWheelRight),"loadedProgress"in M&&i(11,A=M.loadedProgress),"filledProgress"in M&&i(12,R=M.filledProgress),"handleProgress"in M&&i(13,ne=M.handleProgress),"ariaLabel"in M&&i(14,L=M.ariaLabel),"ariaValueMin"in M&&i(15,G=M.ariaValueMin),"ariaValueMax"in M&&i(16,we=M.ariaValueMax),"ariaValueNow"in M&&i(17,Pe=M.ariaValueNow),"ariaValueText"in M&&i(18,Ae=M.ariaValueText)},t.$$.update=()=>{var M;t.$$.dirty[0]&65536&&i(40,me=we!=null?we:0),t.$$.dirty[0]&268435456|t.$$.dirty[1]&512&&i(41,n=((M=g[g.length-1])==null?void 0:M.time)<me),t.$$.dirty[0]&268441600|t.$$.dirty[1]&1536&&i(21,l=g.length&&n&&me?Ze(A*100,R*100):[])},[r,o,s,a,c,f,d,h,b,C,y,A,R,ne,L,G,we,Pe,Ae,w,Ue,l,F,ue,be,We,Qe,ce,g,_,I,$,q,D,te,re,V,X,J,B,me,n,pe]}class Sr extends ye{constructor(e){super(),ke(this,e,Bh,Mh,_e,{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},Ah,[-1,-1])}}const Pn=(t,e)=>Vo[t]>=Vo[e],Nh=(t,e)=>Vo[t]<Vo[e],Gc=(t,e)=>Vo[t]<=Vo[e],Rh=t=>t>Po.L?exports.GridTypes.XL:t>Po.M?exports.GridTypes.L:t>Po.S?exports.GridTypes.M:t>Po.XS?exports.GridTypes.S:exports.GridTypes.XS;function Oh(t){Ye(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 Dh(t){let e,i;return e=new Tl({props:{volume:t[3],muted:t[1]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&8&&(r.volume=n[3]),l[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function zh(t){let e,i;return e=new ki({props:{className:"btn-full-opacity",disabled:t[9],testId:t[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:t[7],click:t[0],ariaKeyShortCut:jo[Ie.KeyM],$$slots:{default:[Dh]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&512&&(r.disabled=n[9]),l[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),l[0]&128&&(r.ariaLabel=n[7]),l[0]&1&&(r.click=n[0]),l[0]&10|l[1]&32&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Sa(t){let e,i,n;return i=new Sr({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=P("div"),K(i.$$.fragment),u(e,"class","volumeBar v-1l78lz9"),N(e,"volumeBar-vertical",t[2])},m(l,r){S(l,e,r),j(i,e,null),n=!0},p(l,r){const o={};r[0]&4&&(o.className=l[2]?"volumeBar-slider-vertical":""),r[0]&36&&(o.isHidden=l[2]&&!l[5]),r[0]&4&&(o.isVertical=l[2]),r[0]&4&&(o.onPointerEnter=l[2]?l[19]:ie.noop),r[0]&4&&(o.onPointerLeave=l[2]?l[20]:ie.noop),r[0]&256&&(o.ariaValueNow=Math.round(l[8]*100)),r[0]&256&&(o.ariaValueText=`${Math.round(l[8]*100)}%`),r[0]&256&&(o.filledProgress=l[8]),r[0]&256&&(o.handleProgress=l[8]),r[0]&4&&(o.testId=l[2]?"volume-slider-vertical":"volume-slider"),i.$set(o),(!n||r[0]&4)&&N(e,"volumeBar-vertical",l[2])},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function Hh(t){let e,i,n,l,r,o;i=new Kc({props:{content:t[6],translateY:-18,$$slots:{default:[zh]},$$scope:{ctx:t}}});let s=t[4]&&Sa(t);return{c(){e=P("div"),K(i.$$.fragment),n=H(),s&&s.c(),u(e,"class","volumeBar-container v-1l78lz9"),N(e,"vertical",t[2])},m(a,c){S(a,e,c),j(i,e,null),p(e,n),s&&s.m(e,null),l=!0,r||(o=[ve(e,"mouseenter",function(){In(t[2]?t[21]:ie.noop)&&(t[2]?t[21]:ie.noop).apply(this,arguments)}),ve(e,"mouseleave",function(){In(t[2]?t[22]:ie.noop)&&(t[2]?t[22]:ie.noop).apply(this,arguments)}),ve(e,"wheel",ii(t[23]))],r=!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]?s?(s.p(t,c),c[0]&16&&m(s,1)):(s=Sa(t),s.c(),m(s,1),s.m(e,null)):s&&(fe(),v(s,1,1,()=>{s=null}),de()),(!l||c[0]&4)&&N(e,"vertical",t[2])},i(a){l||(m(i.$$.fragment,a),m(s),l=!0)},o(a){v(i.$$.fragment,a),v(s),l=!1},d(a){a&&T(e),Z(i),s&&s.d(),r=!1,ut(o)}}}function Fh(t,e,i){var Ue,me;let n,l,r,o,{click:s}=e;const a=Pt(),c=gn(),f=a.state.volume$;z(t,f,F=>i(3,n=F));const d=a.state.muted$;z(t,d,F=>i(25,o=F));const h=a.actions.internal.setVolume,g=a.ui.currentGridType$;z(t,g,F=>i(24,r=F));const _=(Ue=a.callbacks)==null?void 0:Ue.onAudioDoesNotExistHint,b=(me=a.callbacks)==null?void 0:me.onAudioDisabledHint,C=a.state.isAudioAvailable$;z(t,C,F=>i(4,l=F));const y=a.state.isAudioDisabled;let w=!1,k,I,$,q,D,te,re=1,V=!1,X=!1;function J(F){re=n,h(F)}function B(){Oc(a,n,c.controls.volumeStepWheel)}function A(){Dc(a,n,c.controls.volumeStepWheel)}function R(F){h(F)}function ne(F){const ue=F;h(ue,ue===0?re:ue)}function L(){V=!0}function G(){V=!1,Ae()}function we(){clearTimeout(k),i(5,w=!0)}function Pe(){Ae()}function Ae(){k=window.setTimeout(()=>{V||i(5,w=!1)},c.controls.volumeBarTimeout)}function Be(F){F.deltaY<0?B():F.deltaY>0&&A()}return t.$$set=F=>{"click"in F&&i(0,s=F.click)},t.$$.update=()=>{t.$$.dirty[0]&33554448&&i(1,q=!l||o),t.$$.dirty[0]&16777216&&i(2,D=Gc(r,exports.GridTypes.S)),t.$$.dirty[0]&6&&(D?i(6,I=""):i(6,I=Q(q?"tooltip_volume":"tooltip_volume_muted")),i(7,$=Q(q?"tooltip_volume":"tooltip_volume_muted"))),t.$$.dirty[0]&10&&i(8,te=q?0:n),t.$$.dirty[0]&16&&i(9,X=y&&!b||!l&&!_)},[s,q,D,n,l,w,I,$,te,X,f,d,g,C,J,B,A,R,ne,L,G,we,Pe,Be,r,o]}class Uh extends ye{constructor(e){super(),ke(this,e,Fh,Hh,_e,{click:0},Oh,[-1,-1])}}function qh(t){let e;return{c(){e=O("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){S(i,e,n)},d(i){i&&T(e)}}}function jh(t){let e;return{c(){e=O("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){S(i,e,n)},d(i){i&&T(e)}}}function Zh(t){let e,i,n;function l(s,a){return s[0]?jh:qh}let r=l(t),o=r(t);return{c(){e=O("svg"),i=O("g"),o.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(s,a){S(s,e,a),p(e,i),o.m(i,null)},p(s,[a]){r!==(r=l(s))&&(o.d(1),o=r(s),o&&(o.c(),o.m(i,null))),a&1&&n!==(n=s[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:W,o:W,d(s){s&&T(e),o.d()}}}function Kh(t,e,i){let{isFullscreen:n=!1}=e;return t.$$set=l=>{"isFullscreen"in l&&i(0,n=l.isFullscreen)},[n]}class Wh extends ye{constructor(e){super(),ke(this,e,Kh,Zh,_e,{isFullscreen:0})}}function Gh(t){let e,i;return e=new Wh({props:{isFullscreen:t[0]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Yh(t){let e,i;return e=new ki({props:{testId:"btn-fullscreen",ariaLabel:t[2],click:t[1],ariaKeyShortCut:jo[Ie.KeyF],$$slots:{default:[Gh]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,[l]){const r={};l&4&&(r.ariaLabel=n[2]),l&2&&(r.click=n[1]),l&9&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Qh(t,e,i){let{isFullscreen:n=!1}=e,{click:l=ie.noop}=e,r;return t.$$set=o=>{"isFullscreen"in o&&i(0,n=o.isFullscreen),"click"in o&&i(1,l=o.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,r=Q(n?"tooltip_fullscreen_on":"tooltip_fullscreen_off"))},[n,l,r]}class Yc extends ye{constructor(e){super(),ke(this,e,Qh,Yh,_e,{isFullscreen:0,click:1})}}function Xh(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Pr extends ye{constructor(e){super(),ke(this,e,null,Xh,_e,{})}}function Jh(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Qc extends ye{constructor(e){super(),ke(this,e,null,Jh,_e,{})}}function xh(t){Ye(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 Pa(t){let e;return{c(){e=P("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){S(i,e,n)},d(i){i&&T(e)}}}function $h(t){let e,i,n,l,r=t[1]&&Pa();var o=t[8];function s(a){return{}}return o&&(n=Nn(o,s())),{c(){r&&r.c(),e=H(),i=P("div"),n&&K(n.$$.fragment),u(i,"class","v-1ot3duq"),N(i,"mobile",t[1])},m(a,c){r&&r.m(a,c),S(a,e,c),S(a,i,c),n&&j(n,i,null),l=!0},p(a,c){if(a[1]?r||(r=Pa(),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),c&256&&o!==(o=a[8])){if(n){fe();const f=n;v(f.$$.fragment,1,0,()=>{Z(f,1)}),de()}o?(n=Nn(o,s()),K(n.$$.fragment),m(n.$$.fragment,1),j(n,i,null)):n=null}(!l||c&2)&&N(i,"mobile",a[1])},i(a){l||(n&&m(n.$$.fragment,a),l=!0)},o(a){n&&v(n.$$.fragment,a),l=!1},d(a){a&&(T(e),T(i)),r&&r.d(a),n&&Z(n)}}}function e5(t){let e,i,n;function l(o){t[13](o)}let r={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:jo[Ie.KeyK],$$slots:{default:[$h]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&10&&(a.className=(o[1]?"btn-m--play":"")+" "+o[3]),s&112&&(a.click=o[5]?o[6]:o[4]),s&4&&(a.disabled=o[2]),s&128&&(a.ariaLabel=o[7]),s&33026&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function t5(t,e,i){let n,l;const{fakeIsPlaying$:r}=Bo();z(t,r,w=>i(12,l=w));let{ref:o=void 0}=e,{isMobile:s=!1}=e,{isPlaying:a=!1}=e,{disabled:c=!1}=e,{className:f=""}=e,{click:d=ie.noop}=e;const{toggle:h}=r;let g,_,b,C;function y(w){o=w,i(0,o)}return t.$$set=w=>{"ref"in w&&i(0,o=w.ref),"isMobile"in w&&i(1,s=w.isMobile),"isPlaying"in w&&i(10,a=w.isPlaying),"disabled"in w&&i(2,c=w.disabled),"className"in w&&i(3,f=w.className),"click"in w&&i(4,d=w.click)},t.$$.update=()=>{t.$$.dirty&4096&&i(5,_=l!==null),t.$$.dirty&5152&&i(11,b=_?l:a),t.$$.dirty&2048&&i(7,C=Q(b?"tooltip_pause":"tooltip_play")),t.$$.dirty&2048&&i(8,n=b?Qc:Pr)},i(6,g=h),[o,s,c,f,d,_,g,C,n,r,a,b,l,y]}class Er extends ye{constructor(e){super(),ke(this,e,t5,e5,_e,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},xh)}}function i5(t){Ye(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 n5(t){let e,i,n;return{c(){e=O("svg"),i=O("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"),N(e,"prev",t[0]),N(e,"mobile",t[1])},m(l,r){S(l,e,r),p(e,i)},p(l,[r]){r&1&&n!==(n=l[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),r&1&&N(e,"prev",l[0]),r&2&&N(e,"mobile",l[1])},i:W,o:W,d(l){l&&T(e)}}}function o5(t,e,i){let{isPrev:n=!1}=e,{isMobile:l=!1}=e;return t.$$set=r=>{"isPrev"in r&&i(0,n=r.isPrev),"isMobile"in r&&i(1,l=r.isMobile)},[n,l]}class l5 extends ye{constructor(e){super(),ke(this,e,o5,n5,_e,{isPrev:0,isMobile:1},i5)}}function r5(t){let e,i;return e=new l5({props:{isMobile:t[1],isPrev:t[3]==="prev"}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&2&&(r.isMobile=n[1]),l&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function s5(t){let e,i,n;function l(o){t[6](o)}let r={testId:"btn-"+t[3],disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[r5]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&8&&(a.testId="btn-"+o[3]),s&4&&(a.disabled=o[2]),s&32&&(a.ariaLabel=o[5]),s&16&&(a.click=o[4]),s&138&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function a5(t,e,i){let{ref:n=void 0}=e,{isMobile:l=!1}=e,{disabled:r=!1}=e,{type:o}=e,{click:s}=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,l=f.isMobile),"disabled"in f&&i(2,r=f.disabled),"type"in f&&i(3,o=f.type),"click"in f&&i(4,s=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,a=Q(o==="prev"?"tooltip_previous":"tooltip_next"))},[n,l,r,o,s,a,c]}class Sl extends ye{constructor(e){super(),ke(this,e,a5,s5,_e,{ref:0,isMobile:1,disabled:2,type:3,click:4})}}function u5(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class c5 extends ye{constructor(e){super(),ke(this,e,null,u5,_e,{})}}function f5(t){Ye(t,"v-1bbobod",".mobile.v-1bbobod{transform:scale(1.1) translateY(-1px)}")}function Ea(t){let e,i,n,l,r,o,s;return{c(){e=O("path"),i=O("path"),n=O("path"),l=O("path"),r=O("path"),o=O("path"),s=O("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(l,"d","M59.3767 15.0483H61.701L64.4672 9.54668H64.6954V15.0483H66.2638V7.63679H63.9396L61.1734 13.1384H60.9452V7.63679H59.3767V15.0483Z"),u(l,"fill","white"),u(r,"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(r,"fill","white"),u(o,"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(o,"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){S(a,e,c),S(a,i,c),S(a,n,c),S(a,l,c),S(a,r,c),S(a,o,c),S(a,s,c)},d(a){a&&(T(e),T(i),T(n),T(l),T(r),T(o),T(s))}}}function d5(t){let e,i,n,l=!t[0]&&Ea();return{c(){e=O("svg"),i=O("path"),l&&l.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"),N(e,"mobile",t[1])},m(r,o){S(r,e,o),p(e,i),l&&l.m(e,null)},p(r,[o]){r[0]?l&&(l.d(1),l=null):l||(l=Ea(),l.c(),l.m(e,null)),o&4&&u(e,"width",r[2]),o&4&&n!==(n="0 0 "+(r[2]+1)+" 20")&&u(e,"viewBox",n),o&8&&u(e,"data-testid",r[3]),o&2&&N(e,"mobile",r[1])},i:W,o:W,d(r){r&&T(e),l&&l.d()}}}function m5(t,e,i){let{short:n=!1}=e,{isMobile:l=!1}=e,r,o;return t.$$set=s=>{"short"in s&&i(0,n=s.short),"isMobile"in s&&i(1,l=s.isMobile)},t.$$.update=()=>{t.$$.dirty&1&&(i(2,r=n?20:93),i(3,o=n?"vk-video-logo-icon--short":"vk-video-logo-icon"))},[n,l,r,o]}class p5 extends ye{constructor(e){super(),ke(this,e,m5,d5,_e,{short:0,isMobile:1},f5)}}function h5(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("defs"),o=O("filter"),s=O("feFlood"),a=O("feColorMatrix"),c=O("feOffset"),f=O("feGaussianBlur"),d=O("feColorMatrix"),h=O("feBlend"),g=O("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(l,"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(l,"stroke","black"),u(l,"stroke-opacity","0.12"),u(l,"stroke-width","0.5"),u(i,"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(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(g,"mode","normal"),u(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_207_5101"),u(g,"result","shape"),u(o,"id","filter0_d_207_5101"),u(o,"x","5.5"),u(o,"y","5.35095"),u(o,"width","29"),u(o,"height","29.2982"),u(o,"filterUnits","userSpaceOnUse"),u(o,"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(_,b){S(_,e,b),p(e,i),p(i,n),p(i,l),p(e,r),p(r,o),p(o,s),p(o,a),p(o,c),p(o,f),p(o,d),p(o,h),p(o,g)},p:W,i:W,o:W,d(_){_&&T(e)}}}class v5 extends ye{constructor(e){super(),ke(this,e,null,h5,_e,{})}}function g5(t){let e,i;return e=new c5({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p:W,i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function b5(t){let e,i;return e=new p5({props:{short:t[5]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&32&&(r.short=n[5]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function _5(t){let e,i;return e=new v5({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p:W,i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function w5(t){let e,i,n,l;const r=[_5,b5,g5],o=[];function s(a,c){return a[7]||a[4]?0:a[2]?1:2}return e=s(t),i=o[e]=r[e](t),{c(){i.c(),n=bt()},m(a,c){o[e].m(a,c),S(a,n,c),l=!0},p(a,c){let f=e;e=s(a),e===f?o[e].p(a,c):(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),i=o[e],i?i.p(a,c):(i=o[e]=r[e](a),i.c()),m(i,1),i.m(n.parentNode,n))},i(a){l||(m(i),l=!0)},o(a){v(i),l=!1},d(a){a&&T(n),o[e].d(a)}}}function k5(t){let e,i,n;function l(o){t[13](o)}let r={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:[w5]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&2&&(a.disabled=!o[1]),s&4&&(a.testId=o[2]?"btn-vk-video-logo":"btn-vk-logo"),s&8&&(a.ariaLabel=o[3]),s&65588&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function y5(t,e,i){let n,l,{ref:r=void 0}=e,{logoClickable:o=!1}=e,{targetUrl:s=""}=e,{click:a}=e;const c=gn(),f=Pt(),d=f.ui.currentGridType$;z(t,d,k=>i(11,n=k));const h=f.ui.isMobile;z(t,h,k=>i(12,l=k));let g,_,b,C;const y=()=>{var k,I;a(),(I=(k=f.callbacks)==null?void 0:k.onLogoClicked)==null||I.call(k),s&&window.open(s,"_blank")};function w(k){r=k,i(0,r)}return t.$$set=k=>{"ref"in k&&i(0,r=k.ref),"logoClickable"in k&&i(1,o=k.logoClickable),"targetUrl"in k&&i(9,s=k.targetUrl),"click"in k&&i(10,a=k.click)},t.$$.update=()=>{t.$$.dirty&6148&&i(5,C=(l||Gc(n,exports.GridTypes.L))&&_)},i(3,g=c.logoType===lo.VK_VIDEO?Q("tooltip_vk_video_logo"):Q("tooltip_vk_logo")),i(2,_=c.logoType===lo.VK_VIDEO),i(4,b=c.logoType===lo.VK_VIDEO_MOBILE),[r,o,_,g,b,C,d,h,y,s,a,n,l,w]}class Xc extends ye{constructor(e){super(),ke(this,e,y5,k5,_e,{ref:0,logoClickable:1,targetUrl:9,click:10})}}function C5(t){Ye(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 T5(t){let e,i,n,l,r,o,s,a;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("path"),o=O("path"),s=O("path"),a=O("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(l,"class","wave wave2 v-8z1bf5"),u(l,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),u(l,"fill","#fff"),u(r,"class","wave wave3 v-8z1bf5"),u(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(r,"fill","#fff"),u(o,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),u(o,"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"),N(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"),N(e,"connecting",t[2])},m(c,f){S(c,e,f),p(e,i),p(i,n),p(i,l),p(i,r),p(i,o),p(i,s),p(i,a)},p(c,f){f&2&&N(a,"hidden",!c[1]),f&4&&N(e,"connecting",c[2])},d(c){c&&T(e)}}}function S5(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$;return{c(){e=O("svg"),i=O("g"),n=O("mask"),l=O("path"),o=O("path"),s=O("path"),c=O("path"),f=O("defs"),d=O("clipPath"),h=O("path"),_=O("filter"),b=O("feFlood"),C=O("feColorMatrix"),y=O("feOffset"),w=O("feGaussianBlur"),k=O("feColorMatrix"),I=O("feBlend"),$=O("feBlend"),u(l,"fill",r=t[1]?"#2688EB":"#fff"),u(l,"d","M1.1 3.1h22v18h-22z"),u(o,"fill-rule","evenodd"),u(o,"clip-rule","evenodd"),u(o,"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=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",g=t[1]?"#2688EB":"#fff"),u(h,"d","M0 0h24v24H0z"),u(d,"id","a"),u(b,"flood-opacity","0"),u(b,"result","BackgroundImageFix"),u(C,"in","SourceAlpha"),u(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(C,"result","hardAlpha"),u(w,"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(I,"in2","BackgroundImageFix"),u(I,"result","effect1_dropShadow_4085_178456"),u($,"in","SourceGraphic"),u($,"in2","effect1_dropShadow_4085_178456"),u($,"result","shape"),u(_,"id","b"),u(_,"x","-3.4"),u(_,"y","-1.4"),u(_,"width","30.8"),u(_,"height","26.802"),u(_,"filterUnits","userSpaceOnUse"),u(_,"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(q,D){S(q,e,D),p(e,i),p(i,n),p(n,l),p(n,o),p(i,s),p(i,c),p(e,f),p(f,d),p(d,h),p(f,_),p(_,b),p(_,C),p(_,y),p(_,w),p(_,k),p(_,I),p(_,$)},p(q,D){D&2&&r!==(r=q[1]?"#2688EB":"#fff")&&u(l,"fill",r),D&2&&a!==(a=q[1]?"#2688EB":"#fff")&&u(s,"fill",a),D&2&&g!==(g=q[1]?"#2688EB":"#fff")&&u(h,"fill",g)},d(q){q&&T(e)}}}function P5(t){let e;function i(r,o){return r[0]?S5:T5}let n=i(t),l=n(t);return{c(){l.c(),e=bt()},m(r,o){l.m(r,o),S(r,e,o)},p(r,[o]){n===(n=i(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},i:W,o:W,d(r){r&&T(e),l.d(r)}}}function E5(t,e,i){let{isMobile:n=!1}=e,{state:l}=e,r,o;return t.$$set=s=>{"isMobile"in s&&i(0,n=s.isMobile),"state"in s&&i(3,l=s.state)},t.$$.update=()=>{t.$$.dirty&8&&(i(2,o=l===tt.ChromecastState.CONNECTING),i(1,r=l===tt.ChromecastState.CONNECTED))},[n,r,o,l]}class I5 extends ye{constructor(e){super(),ke(this,e,E5,P5,_e,{isMobile:0,state:3},C5)}}function A5(t){let e,i;return e=new I5({props:{isMobile:t[1],state:t[2]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&2&&(r.isMobile=n[1]),l&4&&(r.state=n[2]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function L5(t){let e,i,n;function l(o){t[5](o)}let r={ariaLabel:t[4],click:t[3],testId:"btn-chromecast",$$slots:{default:[A5]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&16&&(a.ariaLabel=o[4]),s&8&&(a.click=o[3]),s&70&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function V5(t,e,i){let{ref:n=void 0}=e,{isMobile:l=!1}=e,{state:r}=e,{click:o=ie.noop}=e,s;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,l=c.isMobile),"state"in c&&i(2,r=c.state),"click"in c&&i(3,o=c.click)},t.$$.update=()=>{t.$$.dirty&4&&i(4,s=r===tt.ChromecastState.CONNECTED?Q("tooltip_chromecast_on"):Q("tooltip_chromecast_off"))},[n,l,r,o,s,a]}class Jc extends ye{constructor(e){super(),ke(this,e,V5,L5,_e,{ref:0,isMobile:1,state:2,click:3})}}function M5(t){let e,i;return e=new Ec({props:{isActive:t[1]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&2&&(r.isActive=n[1]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function B5(t){let e,i;return e=new ki({props:{className:t[0]?"":"btn--live btn-full-opacity",testId:t[1]?"btn-live":"btn-live-offset",disabled:t[1]&&t[3]===tt.PlaybackState.PLAYING,ariaLabel:t[2],click:t[4],$$slots:{default:[M5]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,[l]){const r={};l&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),l&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),l&10&&(r.disabled=n[1]&&n[3]===tt.PlaybackState.PLAYING),l&4&&(r.ariaLabel=n[2]),l&16&&(r.click=n[4]),l&514&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function N5(t,e,i){let n,{isMobile:l=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:o=""}=e;const s=Pt(),a=s.state.playbackState$;z(t,a,h=>i(3,n=h));const c=s.actions.internal.switchToActiveLive,f=s.actions.internal.togglePlay;let d;return t.$$set=h=>{"isMobile"in h&&i(0,l=h.isMobile),"isActiveLive"in h&&i(1,r=h.isActiveLive),"ariaLabel"in h&&i(2,o=h.ariaLabel)},t.$$.update=()=>{t.$$.dirty&10&&i(4,d=()=>{if(!r){c();return}n===tt.PlaybackState.PAUSED&&f()})},[l,r,o,n,d,a]}class xc extends ye{constructor(e){super(),ke(this,e,N5,B5,_e,{isMobile:0,isActiveLive:1,ariaLabel:2})}}function R5(t){Ye(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 O5(t){let e,i,n,l;const r=t[9].default,o=Hn(r,t,t[8],null);return{c(){e=P("div"),i=P("div"),o&&o.c(),u(i,"class","tooltip v-5ygsa2"),N(i,"active",t[0]),N(i,"pointer",t[1]),u(e,"class","tooltip-wrapper v-5ygsa2"),u(e,"style",n=`transform: translate(${t[5]}px, ${t[2]}px);`)},m(s,a){S(s,e,a),p(e,i),o&&o.m(i,null),t[10](i),t[11](e),l=!0},p(s,[a]){o&&o.p&&(!l||a&256)&&Un(o,r,s,s[8],l?Fn(r,s[8],a,null):qn(s[8]),null),(!l||a&1)&&N(i,"active",s[0]),(!l||a&2)&&N(i,"pointer",s[1]),(!l||a&36&&n!==(n=`transform: translate(${s[5]}px, ${s[2]}px);`))&&u(e,"style",n)},i(s){l||(m(o,s),l=!0)},o(s){v(o,s),l=!1},d(s){s&&T(e),o&&o.d(s),t[10](null),t[11](null)}}}function D5(t,e,i){let n,{$$slots:l={},$$scope:r}=e,{active:o=!1}=e,{pointer:s=!1}=e,{translateXPx:a=0}=e,{translateYPx:c=0}=e,{containerWidth:f}=e,d,h;function g(C){if(!h)return 0;const{width:y}=h.getBoundingClientRect(),w=y/2;return C<w?w:C>f-w?f-w:C}function _(C){Te[C?"unshift":"push"](()=>{h=C,i(4,h)})}function b(C){Te[C?"unshift":"push"](()=>{d=C,i(3,d)})}return t.$$set=C=>{"active"in C&&i(0,o=C.active),"pointer"in C&&i(1,s=C.pointer),"translateXPx"in C&&i(6,a=C.translateXPx),"translateYPx"in C&&i(2,c=C.translateYPx),"containerWidth"in C&&i(7,f=C.containerWidth),"$$scope"in C&&i(8,r=C.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&i(5,n=g(a))},[o,s,c,d,h,n,a,f,r,l,_,b]}class z5 extends ye{constructor(e){super(),ke(this,e,D5,O5,_e,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},R5)}}const $c=(t,e,i)=>i.filter(n=>n.time<t*e).pop();function H5(t){Ye(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 Ia(t){let e;function i(r,o){return r[2]&&r[10].completed===!1?U5:F5}let n=i(t),l=n(t);return{c(){l.c(),e=bt()},m(r,o){l.m(r,o),S(r,e,o)},p(r,o){n===(n=i(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){r&&T(e),l.d(r)}}}function F5(t){let e=(t[10].text||"")+"",i;return{c(){i=ze(e)},m(n,l){S(n,i,l)},p(n,l){l&1024&&e!==(e=(n[10].text||"")+"")&&et(i,e)},d(n){n&&T(i)}}}function U5(t){let e=Q("tooltip_episode_unfinished")+"",i;return{c(){i=ze(e)},m(n,l){S(n,i,l)},p:W,d(n){n&&T(i)}}}function q5(t){let e,i,n,l,r,o,s,a,c=t[10]&&Ia(t);return{c(){e=P("div"),i=P("div"),l=H(),r=P("div"),c&&c.c(),o=H(),s=P("div"),a=ze(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(r,"class","episode v-l51fc1"),u(s,"class","time v-l51fc1"),u(e,"class","timeline-preview v-l51fc1"),N(e,"mobile",t[1])},m(f,d){S(f,e,d),p(e,i),p(e,l),p(e,r),c&&c.m(r,null),p(e,o),p(e,s),p(s,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=Ia(f),c.c(),c.m(r,null)):c&&(c.d(1),c=null),d&1&&et(a,f[0]),d&2&&N(e,"mobile",f[1])},i:W,o:W,d(f){f&&T(e),c&&c.d()}}}const To=150;function j5(t,e,i){let n,{time:l=""}=e,{isMobile:r=!1}=e,{videoEpisodes:o=[]}=e,{previewThumbsData:s}=e,{progress:a=0}=e,{duration:c=0}=e,{isInteractive:f=!1}=e;const h=Pt().ui.rotateAlpha;z(t,h,D=>i(11,n=D));let g,_,b,C,y,w,k,I;function $(){let D=s.frameWidth,te=s.frameHeight;return D>To?(te=te/D*To,D=To):te>To&&(D=D/te*To,te=To),{width:D,height:te}}function q(D){let te;s.isUV?te=Math.floor(c*D/s.frequency):te=Math.min(s.countTotal,Math.max(0,Math.floor(s.countTotal*D)));const re=Math.floor(te/s.countPerImage),V=Math.floor(te%s.countPerImage/s.countPerRow),X=te%s.countPerRow;let J=Math.floor(s.countPerImage/s.countPerRow);!s.isUV&&re===Math.floor(s.countTotal/s.countPerImage)&&(J=Math.floor(s.countTotal%s.countPerImage/s.countPerRow),s.countTotal%s.countPerImage%s.countPerRow>0&&J++);let B=s.countPerRow;!s.isUV&&re===Math.floor(s.countTotal/s.countPerImage)&&s.countTotal%s.countPerImage>0&&(B=Math.min(s.countPerRow,s.countTotal%s.countPerImage));const A=g*B,R=_*J,ne=-X*g,L=-V*_;return{imgSrc:s.links[re],imgWidth:A,imgHeight:R,imgOffsetX:ne,imgOffsetY:L}}return t.$$set=D=>{"time"in D&&i(0,l=D.time),"isMobile"in D&&i(1,r=D.isMobile),"videoEpisodes"in D&&i(13,o=D.videoEpisodes),"previewThumbsData"in D&&i(14,s=D.previewThumbsData),"progress"in D&&i(15,a=D.progress),"duration"in D&&i(16,c=D.duration),"isInteractive"in D&&i(2,f=D.isInteractive)},t.$$.update=()=>{t.$$.dirty&32768&&i(5,{imgSrc:b,imgWidth:C,imgHeight:y,imgOffsetX:w,imgOffsetY:k}=q(a),b,(i(6,C),i(15,a)),(i(7,y),i(15,a)),(i(8,w),i(15,a)),(i(9,k),i(15,a))),t.$$.dirty&106496&&i(10,I=$c(a,c,o))},i(3,{width:g,height:_}=$(),g,i(4,_)),[l,r,f,g,_,b,C,y,w,k,I,n,h,o,s,a,c]}class Z5 extends ye{constructor(e){super(),ke(this,e,j5,q5,_e,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},H5)}}function K5(t){Ye(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 W5(t){let e,i;return{c(){e=P("span"),i=ze(t[7]),u(e,"class","time v-5lzly8")},m(n,l){S(n,e,l),p(e,i)},p(n,l){l[0]&128&&et(i,n[7])},i:W,o:W,d(n){n&&T(e)}}}function G5(t){let e,i;return e=new Z5({props:{time:t[7],isMobile:t[10],videoEpisodes:t[3],previewThumbsData:t[21],progress:t[8],duration:t[1],isInteractive:t[23]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&128&&(r.time=n[7]),l[0]&1024&&(r.isMobile=n[10]),l[0]&8&&(r.videoEpisodes=n[3]),l[0]&256&&(r.progress=n[8]),l[0]&2&&(r.duration=n[1]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Y5(t){let e,i,n,l;const r=[G5,W5],o=[];function s(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=s(t),i=o[e]=r[e](t),{c(){i.c(),n=bt()},m(a,c){o[e].m(a,c),S(a,n,c),l=!0},p(a,c){let f=e;e=s(a),e===f?o[e].p(a,c):(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),i=o[e],i?i.p(a,c):(i=o[e]=r[e](a),i.c()),m(i,1),i.m(n.parentNode,n))},i(a){l||(m(i),l=!0)},o(a){v(i),l=!1},d(a){a&&T(n),o[e].d(a)}}}function Q5(t){let e,i,n,l;const r=[t[9]];let o={$$slots:{default:[Y5]},$$scope:{ctx:t}};for(let s=0;s<r.length;s+=1)o=bu(o,r[s]);return e=new z5({props:o}),n=new Sr({props:{isActiveLive:t[11],isMobile:t[10],ariaLabel:Q("aria_timeline"),ariaValueMin:0,ariaValueMax:t[1],ariaValueNow:Math.round(t[6]*100),ariaValueText:Q("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(vt.TIMELINE),hideHandel:t[2]}}),{c(){K(e.$$.fragment),i=H(),K(n.$$.fragment)},m(s,a){j(e,s,a),S(s,i,a),j(n,s,a),l=!0},p(s,a){const c=a[0]&512?b0(r,[_0(s[9])]):{};a[0]&1419|a[1]&65536&&(c.$$scope={dirty:a,ctx:s}),e.$set(c);const 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=Q("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(vt.TIMELINE)),a[0]&4&&(f.hideHandel=s[2]),n.$set(f)},i(s){l||(m(e.$$.fragment,s),m(n.$$.fragment,s),l=!0)},o(s){v(e.$$.fragment,s),v(n.$$.fragment,s),l=!1},d(s){s&&T(i),Z(e,s),Z(n,s)}}}function X5(t,e,i){let n,l,r,o,s,a,c,f,d,h,g,{showTimeline:_=!1}=e;const b=Pt(),C=gn(),y=b.state.bufferedProgress$;z(t,y,pe=>i(12,h=pe));const w=b.state.positionWithScrubbing$;z(t,w,pe=>i(39,a=pe));const k=b.state.duration$;z(t,k,pe=>i(1,r=pe));const I=b.state.isLive$;z(t,I,pe=>i(0,l=pe));const $=b.state.isActiveLive$;z(t,$,pe=>i(11,d=pe));const q=b.ui.isMobile;z(t,q,pe=>i(10,f=pe));const D=C.features.episodes?b.actions.internal.getVideoEpisodes():void 0,te=b.actions.internal.getPreviewThumbsData(),re=b.state.interactiveEpisodes$;z(t,re,pe=>i(40,c=pe));const V=b.state.isInteractive,X=b.state.isInteractiveTime$;z(t,X,pe=>i(2,o=pe));const J=b.state.isInteractiveExpectation$;z(t,J,pe=>i(38,s=pe));const B=b.actions.internal.correctSeekTimeToInteractive,A=b.ui.controls.disabledControls$;z(t,A,pe=>i(13,g=pe));let R,ne,L,G,we=!1,Pe="",Ae=0,Be=0,Ue=0,me;function F(pe){return!B||!V?pe:B(pe*r)/r}function ue(pe){b.actions.internal.startScrubbing(F(pe))}function be(pe){o||b.actions.internal.progressScrubbing(F(pe))}function We(pe){b.actions.internal.completeScrubbing(F(pe)),i(34,we=!1)}function Qe(pe,M,Se){De(pe,M,Se),i(34,we=!0)}function ce(pe,M,Se){De(pe,M,Se),i(34,we=!0)}function Ee(){i(34,we=!1)}function De(pe,M,Se){i(8,Ue=pe),i(35,Ae=M),Se&&i(36,Be=Se),i(7,Pe=Ze(pe))}function Ze(pe){const M=zn((l?1-pe:pe)*r);return l?`-${M}`:M}return t.$$set=pe=>{"showTimeline"in pe&&i(33,_=pe.showTimeline)},t.$$.update=()=>{t.$$.dirty[1]&512&&i(3,R=V?c:D),t.$$.dirty[0]&2&&i(4,ne=zn(r)),t.$$.dirty[1]&256&&i(5,L=zn(a)),t.$$.dirty[0]&2|t.$$.dirty[1]&256&&i(6,G=a/r),t.$$.dirty[0]&4|t.$$.dirty[1]&128&&i(37,me=s||o),t.$$.dirty[0]&1|t.$$.dirty[1]&124&&i(9,n={containerWidth:Be,translateXPx:Ae,translateYPx:V&&te?-36:-16,active:we&&_&&!me,pointer:!C.features.timelinePreview||!te||l})},[l,r,o,R,ne,L,G,Pe,Ue,n,f,d,h,g,C,y,w,k,I,$,q,te,re,V,X,J,A,ue,be,We,Qe,ce,Ee,_,we,Ae,Be,me,s,a,c]}let J5=class extends ye{constructor(e){super(),ke(this,e,X5,Q5,_e,{showTimeline:33},K5,[-1,-1])}};function x5(t){let e,i;return e=new Sr({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:Q("aria_timeline_value",{position:t[2],duration:t[1]}),filledProgress:t[3],isAds:!0,hideHandel:!0,squareBorders:t[4]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,[l]){const r={};l&1&&(r.ariaValueMax=n[0]),l&8&&(r.ariaValueNow=Math.round(n[3]*100)),l&6&&(r.ariaValueText=Q("aria_timeline_value",{position:n[2],duration:n[1]})),l&8&&(r.filledProgress=n[3]),l&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function $5(t,e,i){let n,{position:l=0}=e,{duration:r=0}=e;const s=Pt().ui.isMobile;z(t,s,d=>i(4,n=d));let a,c,f;return t.$$set=d=>{"position"in d&&i(6,l=d.position),"duration"in d&&i(0,r=d.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,a=zn(r)),t.$$.dirty&64&&i(2,c=zn(l)),t.$$.dirty&65&&i(3,f=l/r)},[r,a,c,f,n,s,l]}class ef extends ye{constructor(e){super(),ke(this,e,$5,x5,_e,{position:6,duration:0})}}function ev(t){Ye(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 tv(t){let e;return{c(){e=P("div"),u(e,"class","timeline-stub v-1gqonyf"),N(e,"mobile",t[2])},m(i,n){S(i,e,n)},p(i,n){n&4&&N(e,"mobile",i[2])},i:W,o:W,d(i){i&&T(e)}}}function iv(t){let e,i,n,l;const r=[ov,nv],o=[];function s(a,c){return a[0]?0:1}return i=s(t),n=o[i]=r[i](t),{c(){e=P("div"),n.c(),u(e,"class","timeline v-1gqonyf"),N(e,"mobile",t[2])},m(a,c){S(a,e,c),o[i].m(e,null),l=!0},p(a,c){let f=i;i=s(a),i===f?o[i].p(a,c):(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),n=o[i],n?n.p(a,c):(n=o[i]=r[i](a),n.c()),m(n,1),n.m(e,null)),(!l||c&4)&&N(e,"mobile",a[2])},i(a){l||(m(n),l=!0)},o(a){v(n),l=!1},d(a){a&&T(e),o[i].d()}}}function nv(t){let e,i;return e=new J5({props:{showTimeline:t[1]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&2&&(r.showTimeline=n[1]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function ov(t){let e,i;return e=new ef({props:{position:t[3],duration:t[4]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&8&&(r.position=n[3]),l&16&&(r.duration=n[4]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function lv(t){let e,i,n,l;const r=[iv,tv],o=[];function s(a,c){return a[1]?0:1}return e=s(t),i=o[e]=r[e](t),{c(){i.c(),n=bt()},m(a,c){o[e].m(a,c),S(a,n,c),l=!0},p(a,[c]){let f=e;e=s(a),e===f?o[e].p(a,c):(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),i=o[e],i?i.p(a,c):(i=o[e]=r[e](a),i.c()),m(i,1),i.m(n.parentNode,n))},i(a){l||(m(i),l=!0)},o(a){v(i),l=!1},d(a){a&&T(n),o[e].d(a)}}}function rv(t,e,i){let n,l,r,o,{isAds:s=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e;const d=Pt(),h=d.state.isLive$;z(t,h,y=>i(12,n=y));const g=d.ads.duration;z(t,g,y=>i(4,o=y));const _=d.ads.position;z(t,_,y=>i(3,r=y));const b=d.ui.isMobile;z(t,b,y=>i(2,l=y));let C;return t.$$set=y=>{"isAds"in y&&i(0,s=y.isAds),"canRewindLive"in y&&i(9,a=y.canRewindLive),"isRewindableLive"in y&&i(10,c=y.isRewindableLive),"isHidden"in y&&i(11,f=y.isHidden)},t.$$.update=()=>{t.$$.dirty&7681&&i(1,C=!f&&(!n||n&&a&&c||s))},[s,C,l,r,o,h,g,_,b,a,c,f,n]}class tf extends ye{constructor(e){super(),ke(this,e,rv,lv,_e,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},ev)}}function sv(t){let e,i,n,l;return{c(){e=O("svg"),i=O("path"),n=O("path"),l=O("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(l,"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(l,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),Ht(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(r,o){S(r,e,o),p(e,i),p(e,n),p(e,l)},p:W,i:W,o:W,d(r){r&&T(e)}}}class av extends ye{constructor(e){super(),ke(this,e,null,sv,_e,{})}}function uv(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class cv extends ye{constructor(e){super(),ke(this,e,null,uv,_e,{})}}function fv(t){Ye(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 dv(t){let e,i,n,l;e=new av({});function r(a,c){if(a[4]===ro.FULL)return hv;if(a[4]===ro.COUNT)return pv}let o=r(t),s=o&&o(t);return{c(){K(e.$$.fragment),i=H(),s&&s.c(),n=bt()},m(a,c){j(e,a,c),S(a,i,c),s&&s.m(a,c),S(a,n,c),l=!0},p(a,c){o===(o=r(a))&&s?s.p(a,c):(s&&s.d(1),s=o&&o(a),s&&(s.c(),s.m(n.parentNode,n)))},i(a){l||(m(e.$$.fragment,a),l=!0)},o(a){v(e.$$.fragment,a),l=!1},d(a){a&&(T(i),T(n)),Z(e,a),s&&s.d(a)}}}function mv(t){let e,i,n,l,r,o;return r=new cv({}),{c(){e=P("span"),i=ze(t[2]),n=H(),l=P("div"),K(r.$$.fragment),u(e,"class","text mobile v-1yhs2ga"),u(l,"class","chevron-episodes v-1yhs2ga")},m(s,a){S(s,e,a),p(e,i),S(s,n,a),S(s,l,a),j(r,l,null),o=!0},p(s,a){(!o||a&4)&&et(i,s[2])},i(s){o||(m(r.$$.fragment,s),o=!0)},o(s){v(r.$$.fragment,s),o=!1},d(s){s&&(T(e),T(n),T(l)),Z(r)}}}function pv(t){let e,i=t[0].length+"",n;return{c(){e=P("span"),n=ze(i),u(e,"class","text count v-1yhs2ga")},m(l,r){S(l,e,r),p(e,n)},p(l,r){r&1&&i!==(i=l[0].length+"")&&et(n,i)},d(l){l&&T(e)}}}function hv(t){let e,i;return{c(){e=P("span"),i=ze(t[2]),u(e,"class","text v-1yhs2ga")},m(n,l){S(n,e,l),p(e,i)},p(n,l){l&4&&et(i,n[2])},d(n){n&&T(e)}}}function vv(t){let e,i,n,l;const r=[mv,dv],o=[];function s(a,c){return a[6]?0:1}return e=s(t),i=o[e]=r[e](t),{c(){i.c(),n=bt()},m(a,c){o[e].m(a,c),S(a,n,c),l=!0},p(a,c){let f=e;e=s(a),e===f?o[e].p(a,c):(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),i=o[e],i?i.p(a,c):(i=o[e]=r[e](a),i.c()),m(i,1),i.m(n.parentNode,n))},i(a){l||(m(i),l=!0)},o(a){v(i),l=!1},d(a){a&&T(n),o[e].d(a)}}}function gv(t){let e,i,n;function l(o){t[19](o)}let r={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:[vv]},$$scope:{ctx:t}};return t[1]!==void 0&&(r.ref=t[1]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&64&&(a.className="w-max btn-full-opacity "+(o[6]?"px-0":"")),s&8&&(a.ariaExpanded=o[3]),s&32&&(a.ariaLabel=o[5]),s&8388693&&(a.$$scope={dirty:s,ctx:o}),!i&&s&2&&(i=!0,a.ref=o[1],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function bv(t,e,i){var V,X,J;let n,l,r,o,s,a,{position:c=0}=e,{duration:f=0}=e,{timeCodes:d=[]}=e;const h=Pt(),g=(X=(V=h.callbacks)==null?void 0:V.onEpisodeChanged)!=null?X:ie.noop,_=!!((J=h.callbacks)!=null&&J.onEpisodeClicked),b=h.ui.currentGridType$;z(t,b,B=>i(18,s=B));const C=h.ui.episodes.openedByKeyboard$;z(t,C,B=>i(17,o=B));const y=h.ui.episodes.panelOpened$;z(t,y,B=>i(3,r=B));const w=h.ui.isMobile;z(t,w,B=>i(6,a=B));let k;const I=B=>{var R,ne,L;if(!!((R=h.callbacks)!=null&&R.onEpisodeClicked)){const G=kr(B);C.set(G),y.set(!0),(L=(ne=h.callbacks)==null?void 0:ne.onEpisodeClicked)==null||L.call(ne,G)}};let $,q,D;const te=async(B,A,R)=>{await Xn(),(B==null?void 0:B.getAttribute("aria-expanded"))==="false"&&A&&!R&&(C.set(!1),B.focus())};function re(B){k=B,i(1,k)}return t.$$set=B=>{"position"in B&&i(13,c=B.position),"duration"in B&&i(14,f=B.duration),"timeCodes"in B&&i(0,d=B.timeCodes)},t.$$.update=()=>{if(t.$$.dirty&24576&&i(16,n=c/f),t.$$.dirty&114689){const B=$c(n,f,d);B&&($==null?void 0:$.text)!==B.text&&(g(B),i(15,$=B))}t.$$.dirty&32768&&i(2,l=($==null?void 0:$.text)||""),t.$$.dirty&262144&&(Pn(s,exports.GridTypes.XL)?i(4,q=ro.FULL):Pn(s,exports.GridTypes.M)&&Nh(s,exports.GridTypes.XL)?i(4,q=ro.COUNT):i(4,q=ro.SHORT)),t.$$.dirty&4&&i(5,D=`${Q("tooltip_episodes")}: ${l}`),t.$$.dirty&131082&&te(k,o,r)},[d,k,l,r,q,D,a,_,b,C,y,w,I,c,f,$,n,o,s,re]}class nf extends ye{constructor(e){super(),ke(this,e,bv,gv,_e,{position:13,duration:14,timeCodes:0},fv)}}function _v(t){let e,i,n;return{c(){e=O("svg"),i=O("path"),n=O("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(l,r){S(l,e,r),p(e,i),p(e,n)},p:W,i:W,o:W,d(l){l&&T(e)}}}class wv extends ye{constructor(e){super(),ke(this,e,null,_v,_e,{})}}function kv(t){let e,i;return e=new wv({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function yv(t){let e,i,n;function l(o){t[4](o)}let r={className:t[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:Q("tooltip_interactive_seek"),disabled:t[2],click:t[3],$$slots:{default:[kv]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&2&&(a.className=o[1]?"hidden":""),s&4&&(a.disabled=o[2]),s&8&&(a.click=o[3]),s&32&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Cv(t,e,i){let{ref:n=void 0}=e,{hidden:l=!1}=e,{disabled:r=!1}=e,{click:o}=e;function s(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"hidden"in a&&i(1,l=a.hidden),"disabled"in a&&i(2,r=a.disabled),"click"in a&&i(3,o=a.click)},[n,l,r,o,s]}class of extends ye{constructor(e){super(),ke(this,e,Cv,yv,_e,{ref:0,hidden:1,disabled:2,click:3})}}function Tv(t){let e,i,n;return{c(){e=O("svg"),i=O("path"),n=O("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"),N(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(l,r){S(l,e,r),p(e,i),p(e,n)},p(l,[r]){r&1&&N(n,"hidden",!l[0])},i:W,o:W,d(l){l&&T(e)}}}function Sv(t,e,i){let{isOpened:n=!1}=e;return t.$$set=l=>{"isOpened"in l&&i(0,n=l.isOpened)},[n]}class Pv extends ye{constructor(e){super(),ke(this,e,Sv,Tv,_e,{isOpened:0})}}function Ev(t){let e,i;return e=new Pv({props:{isOpened:t[3]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&8&&(r.isOpened=n[3]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Iv(t){let e,i,n;function l(o){t[6](o)}let r={className:t[1]?"hidden":"",testId:"btn-graph",disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[Ev]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&2&&(a.className=o[1]?"hidden":""),s&4&&(a.disabled=o[2]),s&32&&(a.ariaLabel=o[5]),s&16&&(a.click=o[4]),s&136&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Av(t,e,i){let{ref:n=void 0}=e,{hidden:l=!1}=e,{disabled:r=!1}=e,{graphIsOpened:o=!1}=e,{click:s}=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,l=f.hidden),"disabled"in f&&i(2,r=f.disabled),"graphIsOpened"in f&&i(3,o=f.graphIsOpened),"click"in f&&i(4,s=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,a=Q(o?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off"))},[n,l,r,o,s,a,c]}class lf extends ye{constructor(e){super(),ke(this,e,Av,Iv,_e,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}}function Lv(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class rf extends ye{constructor(e){super(),ke(this,e,null,Lv,_e,{})}}function Vv(t){Ye(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 Aa(t){let e;return{c(){e=P("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){S(i,e,n)},d(i){i&&T(e)}}}function Mv(t){let e,i,n,l,r=t[1]&&Aa();return n=new rf({}),{c(){r&&r.c(),e=H(),i=P("div"),K(n.$$.fragment),u(i,"class","v-1ot3duq"),N(i,"mobile",t[1])},m(o,s){r&&r.m(o,s),S(o,e,s),S(o,i,s),j(n,i,null),l=!0},p(o,s){o[1]?r||(r=Aa(),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!l||s&2)&&N(i,"mobile",o[1])},i(o){l||(m(n.$$.fragment,o),l=!0)},o(o){v(n.$$.fragment,o),l=!1},d(o){o&&(T(e),T(i)),r&&r.d(o),Z(n)}}}function Bv(t){let e,i,n;function l(o){t[5](o)}let r={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-replay",ariaLabel:Q("tooltip_restart"),disabled:t[2],click:t[4],ariaKeyShortCut:jo[Ie.KeyK],$$slots:{default:[Mv]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&10&&(a.className=(o[1]?"btn-m--play":"")+" "+o[3]),s&4&&(a.disabled=o[2]),s&16&&(a.click=o[4]),s&66&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Nv(t,e,i){let{ref:n=void 0}=e,{isMobile:l=!1}=e,{disabled:r=!1}=e,{className:o=""}=e,{click:s=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,l=c.isMobile),"disabled"in c&&i(2,r=c.disabled),"className"in c&&i(3,o=c.className),"click"in c&&i(4,s=c.click)},[n,l,r,o,s,a]}class Ir extends ye{constructor(e){super(),ke(this,e,Nv,Bv,_e,{ref:0,isMobile:1,disabled:2,className:3,click:4},Vv)}}function Rv(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Ov extends ye{constructor(e){super(),ke(this,e,null,Rv,_e,{})}}function Dv(t){let e,i;return e=new Ov({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function zv(t){let e,i,n;function l(o){t[4](o)}let r={className:t[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:Q("tooltip_interactive_go_back"),disabled:t[2],click:t[3],$$slots:{default:[Dv]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&2&&(a.className=o[1]?"hidden":""),s&4&&(a.disabled=o[2]),s&8&&(a.click=o[3]),s&32&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Hv(t,e,i){let{ref:n=void 0}=e,{hidden:l=!1}=e,{disabled:r=!1}=e,{click:o}=e;function s(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"hidden"in a&&i(1,l=a.hidden),"disabled"in a&&i(2,r=a.disabled),"click"in a&&i(3,o=a.click)},[n,l,r,o,s]}class sf extends ye{constructor(e){super(),ke(this,e,Hv,zv,_e,{ref:0,hidden:1,disabled:2,click:3})}}function Fv(t){Ye(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 Uv(t){let e,i,n,l;return{c(){e=P("img"),u(e,"class","icon v-1x1zctw"),Hr(e.src,i=t[0])||u(e,"src",i),u(e,"aria-hidden","true")},m(r,o){S(r,e,o),n||(l=ve(e,"error",t[7]),n=!0)},p(r,o){o&1&&!Hr(e.src,i=r[0])&&u(e,"src",i)},d(r){r&&T(e),n=!1,l()}}}function qv(t){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner v-1x1zctw"></div>',u(e,"class","icon error-stub v-1x1zctw")},m(i,n){S(i,e,n)},p:W,d(i){i&&T(e)}}}function jv(t){let e;function i(r,o){return r[5]?qv:Uv}let n=i(t),l=n(t);return{c(){l.c(),e=bt()},m(r,o){l.m(r,o),S(r,e,o)},p(r,o){n===(n=i(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){r&&T(e),l.d(r)}}}function Zv(t){let e,i;return e=new ki({props:{className:t[4]?"btn-full-opacity":"",ariaLabel:t[1],click:t[3],disabled:t[6],testId:t[2],$$slots:{default:[jv]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,[l]){const r={};l&16&&(r.className=n[4]?"btn-full-opacity":""),l&2&&(r.ariaLabel=n[1]),l&8&&(r.click=n[3]),l&64&&(r.disabled=n[6]),l&4&&(r.testId=n[2]),l&545&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Kv(t,e,i){let n,l,r,{iconUrl:o}=e,{ariaLabel:s}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=ie.noop}=e;const d=()=>{i(5,r=!0)};return t.$$set=h=>{"iconUrl"in h&&i(0,o=h.iconUrl),"ariaLabel"in h&&i(1,s=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,l=n||a)},i(5,r=!1),[o,s,c,f,n,r,l,d,a]}class af extends ye{constructor(e){super(),ke(this,e,Kv,Zv,_e,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},Fv)}}class La{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 l=0,r=n.length;l<r;l++)if(n[l].callback===i){n.splice(l,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;const n=this.listeners[e.type].slice();for(let l=0,r=n.length;l<r;l++){const o=n[l];try{o.callback.call(this,e)}catch(s){Promise.resolve().then(()=>{throw s})}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}class uf extends La{constructor(){super(),this.listeners||La.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 Wv=class{constructor(){Object.defineProperty(this,"signal",{value:new uf,writable:!0,configurable:!0})}abort(e){let i;try{i=new Event("abort")}catch(l){typeof document!="undefined"?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=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(l){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(i)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(Wv.prototype[Symbol.toStringTag]="AbortController",uf.prototype[Symbol.toStringTag]="AbortSignal");function cf(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 Gv(t){typeof t=="function"&&(t={fetch:t});const{fetch:e,Request:i=e.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:l=!1}=t;if(!cf({fetch:e,Request:i,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:l}))return{fetch:e,Request:r};let r=i;(r&&!r.prototype.hasOwnProperty("signal")||l)&&(r=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},r.prototype=i.prototype);const o=e;return{fetch:(a,c)=>{const f=r&&r.prototype.isPrototypeOf(a)?a.signal:c?c.signal:void 0;if(f){let d;try{d=new DOMException("Aborted","AbortError")}catch(g){d=new Error("Aborted"),d.name="AbortError"}if(f.aborted)return Promise.reject(d);const h=new Promise((g,_)=>{f.addEventListener("abort",()=>_(d),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([h,o(a,c)])}return o(a,c)},Request:r}}const Ar=cf({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),ff=Ar?Gv({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Yv=Ar?ff.fetch:window.fetch;Ar?ff.Request:window.Request;const Qv=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,Xv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js";class Jv{constructor(e,i){this.adman=null,this.initialVolume=1,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.playerState=null,this.events={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},this.loadAdman=n=>new Promise((l,r)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?l():r()};ie.addScript(Xv,n,this.loadTimeout).then(()=>{window.AdmanHTML?l():(window.admanAsyncInit=s,o=window.setTimeout(s,this.initTimeout))}).catch(()=>{r()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(n,l)=>{ie.assertNonNullable(this.adsState),ie.assertNonNullable(this.playerState),ie.assertNonNullable(this.actions),this.log({message:`ad started, section: ${n}, banner: ${JSON.stringify(l)}`}),this.events.started$.next(n),l.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(l.duration),this.adsState.playbackState.set(ti.PLAYING),this.adsState.canSkip.set(l.allowClose),this.adsState.secondsToWatchBeforeSkip.set(l.allowCloseDelay)},this.onAdTimeRemained=({currentTime:n})=>{ie.assertNonNullable(this.adsState),this.adsState.position.set(n)},this.onAdPaused=()=>{ie.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(ti.PAUSED)},this.onAdPlayed=()=>{ie.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(ti.PLAYING)},this.onAdMidrollPoint=()=>{ie.assertNonNullable(this.adman),ie.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Rn.Midroll,this.adman.start(Rn.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=()=>{var n;this.log({message:"ad clicked"}),(n=this.videoElement)===null||n===void 0||n.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)},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}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:l,isAutoplay:r,adsContainer:o,adsVideoElement:s,slotId:a,params:c={},duration:f,previewParam:d}=e;let h;const g=this.playerState&&$e(this.playerState.vsid);g&&(h=parseInt(g,36));const _={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:i,player_height:n,puid10:Qv(i,n),puid11:l?0:1,preview:d,...h?{request_id:h}:{},duration:f,...c},b={slot:a,wrapper:o,videoEl:s,videoQuality:n,params:_,browser:{mobile:!1}},C=new window.AdmanHTML;C.setDebug(!1),C.onReady(this.onAdsReady),C.onStarted(this.onAdStarted),C.onPlayed(this.onAdPlayed),C.onPaused(this.onAdPaused),C.adMidrollPoint(this.onAdMidrollPoint),C.onClosed(this.onAdClosed),C.onSkipped(this.onAdSkipped),C.onClicked(this.onAdClicked),C.onTimeRemained(this.onAdTimeRemained),C.onCompleted(this.onAdCompleted),C.onError(this.onAdError),C.init(b),this.adman=C,this.videoElement=s,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(b)}`})}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===Rn.Postroll;this.adsState.playbackState.set(ti.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=$e(this.adsState.playbackState);e===ti.PLAYING?this.pause():e===ti.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var i;this.log({message:`set volume ${e}`}),(i=this.adman)===null||i===void 0||i.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var i;this.log({message:`set fullscreen ${e}`}),(i=this.adman)===null||i===void 0||i.setFullscreen(e)}startPreroll(){ie.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=Rn.Preroll,this.adman.start(Rn.Preroll)}startPostroll(){ie.assertNonNullable(this.adman),ie.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Rn.Postroll,this.adman.start(Rn.Postroll)}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){var n;(n=this.adman)===null||n===void 0||n.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const xv=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 $v{constructor(){this.oneLineRegExp=/\r\n|\n|\r/,this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){const i=[],n=e.split(this.twoLinesRegExp);for(const l of n){const r={startTime:0,endTime:0,texts:[],lang:""},o=l.split(this.oneLineRegExp);for(const s of o)if(!r.startTime&&!r.endTime){const a=new df,{startTime:c,endTime:f}=a.parse(s);r.startTime=c,r.endTime=f}else if(s.trim()!==""){const a=new eg,{texts:c}=a.parse(s);r.texts=[...r.texts,...c]}(r.startTime||r.endTime)&&r.texts.length>0&&i.push(r)}return i}}class df{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/,this.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",l="0"){const r=Number(e)*60*60,o=Number(i)*60,s=Number(n),a=+`0.${l}`;return r+o+s+a}}class eg{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){const i={texts:[]},l=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](o){let s=0;const a=[];for(;s<o.length;){const c=["<",">"].reduce((f,d)=>{const h=o.indexOf(d,s);return f===-1||f>h?h:f},-1);if(c===-1){a.push(o.substring(s));break}a.push(o.substring(s,c)),s=c+1}return a}}),r=new df;for(const o of l)r.isTime(o)?i.texts.push({type:"timestamp",value:r.parseTime(o)}):i.texts.push({type:"text",value:o});return i}}let Yn,zt,Jl=0,xl=!1;const tg=(t,e,i)=>{var n;const l=t>=Jl,r=t<Jl,o=(f,d=0,h=0)=>f<d&&f<h,s=(f,d=0,h=0)=>f>=d&&f<=h,a=(f,d=0,h=0)=>f>d&&f>h,c=(n=i.find(({lang:f})=>f===e.value))===null||n===void 0?void 0:n.subtitles;if(Jl=t,r&&(xl=!1),ie.isNonNullable(Yn)&&s(t,Yn.startTime,Yn.endTime)&&Yn.lang===e.value)return Yn;if(!ie.isNonNullable(zt)&&(c!=null&&c.length)&&!xl){const f=c.find(({startTime:d,endTime:h})=>s(t,d,h)||l&&o(t,d,h));zt=f&&{...f,lang:e.value},Yn=void 0,!ie.isNonNullable(zt)&&c[c.length-1].endTime<t&&(xl=!0);return}else{if(s(t,zt==null?void 0:zt.startTime,zt==null?void 0:zt.endTime))return Yn=zt,zt=void 0,Yn;(l&&a(t,zt==null?void 0:zt.startTime,zt==null?void 0:zt.endTime)||r&&o(t,zt==null?void 0:zt.startTime,zt==null?void 0:zt.endTime))&&(zt=void 0)}},$l={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 ig{constructor(e,i){this.oneStat=new St.OneStat(e,i),this.statSubscription=new ie.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}}const ng=({interfaceLanguage:t,videoId:e,isClip:i,isLiveCatchUpMode:n,statAuthToken:l,isAudioDisabled:r,canDownload:o,callbacks:s,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:d,coreConfig:h,player:g,disabledControls:_,isInteractive:b,interactiveRanges$:C,isInteractiveTime$:y,replayInteractive:w,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:I,additionalButtons:$,looped:q=!1,statistics:D})=>{var te,re,V,X;const J={...h,configName:[...(te=h.configName)!==null&&te!==void 0?te:[],"ui"],isAudioDisabled:r,live:{...(re=h.live)!==null&&re!==void 0?re:{},isLiveCatchUpMode:!!n}},B=d,A=g||new tt.Player(J),R=new ie.Logger,ne=new Jv(R,{loadTimeout:B.ads.loadTimeout,initTimeout:B.ads.initTimeout}),L=ur.getInstance(),G=a==null?void 0:a.pictureInPictureApi,we=a==null?void 0:a.annotationsApi,Pe=R.createComponentLog("Store");let Ae,Be,Ue={};const me=ie.getCurrentBrowser(),F=D?Tt(D.oneStat.vsid$):Bn(void 0),ue=Le(Fo()),be=(V=G==null?void 0:G.info.isActive$)!==null&&V!==void 0?V:new ie.ValueSubject(!1),We=G==null?void 0:G.info.type,Qe=Le(0),ce=Le([]),Ee=ie.merge(A.events.fatalError$,A.events.managedError$).subscribe(E=>ce.update(oe=>[...oe,E])),De=Bn(!1,E=>{const oe=A.events.fatalError$.subscribe(()=>E(!0));return()=>oe.unsubscribe()}),Ze=async E=>{var oe;const ge=Object.values(ie.InterfaceLanguage).includes(E);if(B.downloadVKLanguages&&(ge&&B.updateBuiltinLanguages||!ps(E))){let Je;try{Je=await ie.loadVKLangPack(E,P0,E0)}catch(ft){(oe=D==null?void 0:D.oneStat)===null||oe===void 0||oe.logError({errorType:"VKLangPack",fatal:!1}),L==null||L.report(ft,{errorType:"VKLangPack",fatal:!1})}Je&&(ms({language:E,pack:Je,fallback:B.defaultLanguage}),pe.set(E))}ps(E)&&pe.set(E)},pe=Le(t);Ze(t);const M=(E,oe)=>{const ge=$e(pe);return wc(ge,E,oe,B.defaultLanguage)},Se=Le(Oe.Thumb),se=(()=>{const E=wi([De,Se],([oe,ge])=>oe?Oe.Crashed:ge);return{...E,is:oe=>$e(E)===oe}})(),Ce=(()=>{const E=Le(new Set(_));return{...E,add:oe=>{E.update(ge=>new Set([...ge].concat(oe)))},remove:oe=>{E.update(ge=>{const Re=[...ge];return new Set(Array.isArray(oe)?Re.filter(Je=>!oe.includes(Je)):Re.filter(Je=>Je!==oe))})},includes:oe=>{const ge=$e(E);return Array.isArray(oe)?oe.every(Re=>ge.has(Re)):ge.has(oe)}}})();Pe({message:"create store"});const Ke=E=>{const oe=E.container;oe.append(A.experimental.element$.getValue()),at=new MutationObserver(ge=>{const{removedNodes:Re}=ge[0];Re.length&&oe.append(A.experimental.element$.getValue())}),at.observe(oe,{childList:!0})},ot=E=>{Pe({message:`init video, config: ${JSON.stringify(E)}`}),b?Ke(E):A.initVideo(E),E.subtitles&&A.setExternalTextTracks(E.subtitles),Ae=E},rt=new ie.Subject,it=E=>rt.next(E),pt=new ie.Subject,st=new ie.Subject,he=new ie.Subject;let at=null;const It={actionRewind$:pt,actionSeek$:st,inPiP$:be,inFullscreen$:new ie.Observable(E=>ue.subscribe(oe=>E.next(oe))),actionSetSubtitle$:he,nextMovie$:rt};if(D){const{oneStat:E,statSubscription:oe}=D;oe.add(E.attachTo(A)),oe.add(E.attachToUi(It)),oe.add(E.attachToAds(ne.events)),E.authorize(l).catch(ge=>{Pe({message:`onestat auth error ${String(ge)}`})})}if(L){const E=new ie.Subscription,oe=(ge,Re)=>E.add(ge.subscribe(Re));if(oe(A.events.managedError$,ge=>{L.logIError(ge)}),oe(A.events.fatalError$,ge=>{L.logIError(ge,!0)}),D){const{oneStat:ge}=D;oe(ge.experimental.error$,Re=>{L.logIError(Re)})}L.sentrySubscription.add(E)}const kt=()=>{ie.isIOS()&&Be&&ym(Be)},Ve=new ie.Subscription().add(A.experimental.element$.subscribe(E=>{E&&(Be=E,E.classList.add("player-media"),bl(G)&&(G.updateVideoElement(),G.registryEventHandlers()),b&&E.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{var E;kt(),(E=s==null?void 0:s.onEnded)===null||E===void 0||E.call(s)})).add(A.events.started$.subscribe(async()=>{var E,oe;bl(G)&&await(G==null?void 0:G.revealPictureInPicture());const ge=A.info.muted$.getValue();(E=s==null?void 0:s.onStarted)===null||E===void 0||E.call(s),(oe=Ue.onStarted)===null||oe===void 0||oe.call(Ue,ge)})).add(A.events.willSeek$.subscribe(({from:E,to:oe})=>{var ge;(ge=s==null?void 0:s.onSeek)===null||ge===void 0||ge.call(s,E,oe)})).add(A.info.position$.subscribe(E=>{var oe;const ge=A.info.duration$.getValue();(oe=s==null?void 0:s.onTimeupdate)===null||oe===void 0||oe.call(s,ge,E),ne.setPosition(E,ge)})).add(A.events.fatalError$.subscribe(()=>{var E;(E=s==null?void 0:s.onCrashed)===null||E===void 0||E.call(s)})).add(A.events.firstBytes$.subscribe(()=>{lt.state.isFirstBytes$.set(!0)})).add(A.info.is3DVideo$.subscribe(E=>{lt.ui.is3DVideo.set(E)})).add(A.info.isEnded$.subscribe(E=>{b&&(E?(y!=null&&y.getValue()&&Ce.add(Au),Ce.add(vt.PLAY_BUTTON)):Ce.remove(vt.PLAY_BUTTON))})).add(A.info.liveTime$.subscribe(E=>{var oe;(oe=s==null?void 0:s.onLiveTime)===null||oe===void 0||oe.call(s,E)})).add(A.info.isStalled$.subscribe(E=>{var oe;(oe=s==null?void 0:s.onStalledChanged)===null||oe===void 0||oe.call(s,E)})),Vt=new ie.Subscription,ae=()=>{Vt.add(A.events.log$.subscribe(E=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${E.component}`,E.message)})).add(R.log$.subscribe(E=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${E.component}.`,E.message)}))},yt=()=>{Vt.unsubscribe()},Et=(E,oe)=>{A.startCameraManualRotation(E,oe)},ht=(E=!1)=>{A.stopCameraManualRotation(E)},Ge=(E,oe,ge)=>{A.moveCameraFocusPX(E,oe,ge)},He=()=>{A.holdCamera()},Ne=()=>{A.releaseCamera()},dt=Bn(A.info.position$.getValue(),E=>{let oe,ge;const Re=()=>{const Je=A.info.playbackState$.getValue(),ft=A.info.isLive$.getValue(),Lt=A.info.duration$.getValue(),Ct=A.info.position$.getValue();if([tt.PlaybackState.PLAYING,tt.PlaybackState.PAUSED].includes(Je)){const Bi=ft?Ct-Lt:A.getExactTime();Bi!==ge&&E(Bi),ge=Bi}oe=requestAnimationFrame(Re)};return Re(),()=>cancelAnimationFrame(oe)}),Jt=Tt(be),Ut=Tt(A.info.playbackState$),Fi=Tt(A.info.currentBuffer$),Xi=Tt(A.info.isEnded$),ni=Tt(A.info.isLive$),fi=B.features.playbackRate?Tt(A.info.canChangePlaybackSpeed$):Bn(!1),yi=Tt(A.info.liveBufferTime$),xt=Tt(A.info.volume$),di=Tt(A.info.muted$),Ji=Bu(A.info.autoQualityLimits$.pipe(ie.map(({max:E})=>E!==void 0)),((X=A.info.autoQualityLimits$.getValue())===null||X===void 0?void 0:X.max)!==void 0),Ci=Tt(A.info.autoQualityLimitingAvailable$),Ni=Tt(A.info.availableQualities$),mi=Tt(A.info.availableQualitiesFps$),pi=Tt(A.info.chromecastState$),hi=Tt(A.info.chromecastDeviceName$),Ti=Tt(A.info.currentFormat$),Si=Tt(A.info.throughputEstimation$),oi=Tt(A.info.videoBitrate$),Gt=Tt(A.info.intrinsicVideoSize$),At=Tt(A.info.duration$),vi=Tt(A.info.isAudioAvailable$);let Mt=null;const $t=A.info.isBuffering$,li=Bn($t.getValue(),E=>{const oe=$t.subscribe(ge=>{ge&&Mt===null?Mt=window.setTimeout(()=>{E($t.getValue()),Mt=null},B.loaderDelay):E(ge)});return()=>{oe.unsubscribe(),Mt&&clearTimeout(Mt)}}),gi=()=>{Mt&&clearTimeout(Mt),Mt=null},mt=wi([At,ni],([E,oe])=>oe?-E:E),Nt=wi([Ut],([E])=>E===tt.PlaybackState.PLAYING),gt=Tt(A.info.atLiveEdge$),bi=Tt(A.info.atLiveDurationEdge$),ri=Tt(A.info.position$),rn=wi([ri,At],([E,oe])=>isFinite(E)&&isFinite(oe)&&!!oe),xi=wi([pi],([E])=>E===tt.ChromecastState.CONNECTED),Rt=Le(void 0),si=Tt(A.info.isAutoQualityEnabled$,E=>E&&Rt.set(void 0)),Ui=Tt(A.info.currentQuality$,()=>Rt.set(void 0)),Pi=wi([Rt,Ui],([E,oe])=>E!=null?E:oe),ai=wi([Ni,mi,si,Pi,Ti],([E,oe,ge,Re,Je])=>{const ft=[];Je!==tt.VideoFormat.MPEG&&ft.push({value:Ao.AUTO,displayValue:M("auto_quality_option"),selected:ge});const Lt=E.filter(Ct=>Ct!==ie.VideoQuality.INVARIANT);for(const Ct of Lt){const Bi=oe[Ct],no=Ct===ie.VideoQuality.INVARIANT?M("auto_quality_option"):Ct;ft.push({value:Ct,displayValue:`${no}${Bi?xv(Bi):""}`,selected:ge?!1:Ct===Re})}return ft}),Yt=Tt(A.info.currentPlaybackRate$),qi=wi([Yt,gt,bi],([E,oe,ge])=>{const Re=ge||b?1:B.controls.playbackRateMin,Je=oe?1:B.controls.playbackRateMax,ft=B.controls.playbackRateStep,Lt=[];for(let Ct=Re;Ct<=Je;Ct+=ft)Lt.push({value:Ct,displayValue:Ct===1?M("playback_rate_1"):M("playback_rate",{multiplier:Ct.toString(10)}),selected:E===Ct});return Lt}),$i=B.features.subtitles?Tt(A.info.availableTextTracks$):Bn([]),Qt=wi([$i],([E],oe)=>{const ge=[],Re=[];for(const Je of E)Je.url&&ge.push(Yv(Je.url));Promise.allSettled(ge).then(Je=>{for(const[ft,Lt]of Je.entries())Lt.status==="fulfilled"&&Lt.value.text().then(Ct=>{const Bi=new $v,no=E[ft].language,Xo=!!E[ft].isAuto,bo=Bi.parse(Ct);no&&bo&&Re.push({lang:no,subtitles:bo,isAuto:Xo}),ft===Je.length-1&&oe(Re)})})}),Ot={displayValue:M("subtitles_off"),value:"off"},qt=Le({...Ot}),ji=wi([Qt,qt,Qt],([E,oe])=>{if((E==null?void 0:E.length)>0){const ge=[{...Ot,selected:(oe==null?void 0:oe.value)===Ot.value}];for(const{lang:Re,isAuto:Je}of E)$l[Re]&&ge.push({displayValue:Je?M("subtitles_auto",{language:$l[Re]}):$l[Re],value:Re,selected:(oe==null?void 0:oe.value)===Re,isAuto:Je});return ge}else return[]}),en=wi([dt,qt,Qt],([E,oe,ge])=>{if(oe&&oe.value!==Ot.value)return tg(E,oe,ge)}),tn=wi([en],([E])=>E!=null&&E.texts?E.texts:[]),Ri=Le(!0),Ei=wi([Fi,mt,ri,yi],([E,oe,ge,Re])=>{var Je;const ft=(Je=E==null?void 0:E.end)!==null&&Je!==void 0?Je:0;if(!Re)return ft/oe;const Ct=-ge+Re-oe;return(ft-Ct)/oe}),jt=Tt(A.info.availableSources$),ui=wi([jt],([E])=>Object.keys((E==null?void 0:E[tt.VideoFormat.MPEG])||{}).length>0),Ii=()=>{var E,oe,ge;const Re=Object.keys(((oe=(E=A.info.availableSources$)===null||E===void 0?void 0:E.getValue())===null||oe===void 0?void 0:oe[tt.VideoFormat.MPEG])||{}),Je=ie.getHighestQuality(Re)||ie.VideoQuality.Q_144P;return(ge=Ae.sources[tt.VideoFormat.MPEG])===null||ge===void 0?void 0:ge[Je]},Oi=()=>{var E;const oe=Ii();oe?O0(oe,((E=Ae==null?void 0:Ae.meta)===null||E===void 0?void 0:E.title)||"video"):Pe({message:"There is no URL for download video"})},Zi=()=>{Pe({message:"toggle muted"});const E=A.info.muted$.getValue(),Re=!(A.info.volume$.getValue()===0||E);Li(Re)},_i=()=>{lt.ui.settingsMenuVisible.set(!1)},Ai=E=>{lt.ui.settingsMenuOpenedByKeyboard.set(!!E),lt.ui.settingsMenuVisible.set(!0)},Di=E=>{$e(lt.ui.settingsMenuVisible)?_i():Ai(E)},Fe=(E,oe=E,ge=!1)=>{var Re,Je,ft;const Lt=!ge,Ct=A.info.muted$.getValue();Pe({message:`set volume, volume: ${E}, preferredVolume: ${oe}, internalCall: ${Lt}`}),A.setVolume(E),ne.setVolume(E),Lt&&((Re=s==null?void 0:s.onVolumeChange)===null||Re===void 0||Re.call(s,E)),qr(oe),Ct?(A.setMuted(!1),Lt&&((Je=s==null?void 0:s.onUnmute)===null||Je===void 0||Je.call(s)),Ml(!1)):!Ct&&E===0&&(A.setMuted(!0),Lt&&((ft=s==null?void 0:s.onMute)===null||ft===void 0||ft.call(s)),Ml(!0))},Li=(E,oe=!1)=>{var ge,Re,Je,ft;const Lt=!oe,Ct=A.info.volume$.getValue();if(Pe({message:`set muted, currentVolume: ${Ct}, mute: ${E}, internalCall: ${Lt}`}),A.setMuted(E),ne.setVolume(E?0:Ct),Ml(E),Lt&&(E?(ge=s==null?void 0:s.onMute)===null||ge===void 0||ge.call(s):(Re=s==null?void 0:s.onUnmute)===null||Re===void 0||Re.call(s)),Ct===0){let Bi=(Je=zu())!==null&&Je!==void 0?Je:B.volumeDefault;Bi===0&&(Bi=B.volumeMinRestore,qr(Bi)),A.setVolume(Bi),ne.setVolume(Bi),Lt&&((ft=s==null?void 0:s.onVolumeChange)===null||ft===void 0||ft.call(s,Bi))}},Dt=Le(!1),Me=E=>{Dt.set(E),A.setLooped(E)};Me(q);const Ki=()=>{A.prepare()},Wi=()=>{var E,oe;if(ie.assertNonNullable(lt),!$e(lt.ui.controls.disabledControls$).has(vt.PLAY_BUTTON)){if(Pe({message:"toggle play"}),$e(lt.playerPhase)===Oe.Ads){ne.togglePlay();return}if(A.info.playbackState$.getValue()!==tt.PlaybackState.PLAYING){if(A.info.isEnded$.getValue()){if(Pe({message:"toggle play, video ended, seek to 0"}),pt.next(),st.next(St.SeekAction.REWIND),b){w==null||w();return}A.seekTime(0)}Pe({message:"toggle play, call player.play"}),A.play(),(E=s==null?void 0:s.onPlay)===null||E===void 0||E.call(s)}else Pe({message:"toggle play, call player.pause"}),A.pause(),(oe=s==null?void 0:s.onPause)===null||oe===void 0||oe.call(s)}},zi=E=>{Pe({message:`set quality, quality: ${E}`}),A.setAutoQuality(E===Ao.AUTO),E!==Ao.AUTO?(D0(e,E),Rt.set(E),A.setQuality(E)):Hu()},Gi=E=>{Pe({message:`set trafficSavingEnabled, value: ${E}`}),A.setAutoQualityLimits({max:E?B.trafficSavingLimit:void 0}),F0(E)},Hi=E=>{A.setPlaybackRate(E)},dn=()=>{const E=$e(qi),oe=E.findIndex(({selected:Re})=>Re);if(oe===E.length-1)return;const ge=E[oe+1];Hi(ge.value)},Yi=()=>{const E=$e(qi),oe=E.findIndex(({selected:Re})=>Re);if(oe===0)return;const ge=E[oe-1];Hi(ge.value)},Zt=E=>{E&&E.value!==Ot.value&&he.next(E.isAuto?E.value+"_auto":E.value),qt.set(E)},Qi=()=>{const E=$e(ji),oe=$e(qt),ge=$e(pe);if((oe==null?void 0:oe.value)===Ot.value){const Re=E.filter(Je=>Je.value!==Ot.value).find(Je=>Je.value===ge)||E[1];Zt(Re!=null?Re:{...Ot})}else Zt({...Ot,selected:!1})},Bt=(E,oe,ge=!0)=>{if(Pe({message:`seek to time, time: ${E}`}),st.next(oe),A.info.isLive$.getValue()){const Re=A.info.duration$.getValue(),Je=Math.min(0,Re+E);A.seekTime(Je,ge)}else{if(y!=null&&y.getValue())return;A.seekTime(U(E),ge)}},le=E=>{Pe({message:`seek to episode start time: ${E}`}),Bt(E,St.SeekAction.EPISODE,!0)},nt=(E,oe)=>{Pe({message:`seek to percent, percent: ${E}`});const ge=Math.round($e(mt)*E);Bt(ge,oe,!1)},ci=E=>{Pe({message:`seek external, time: ${E}`}),st.next(St.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-E:E)},Vi=E=>{var oe,ge;Pe({message:`set auto quality limitation. Max: ${(oe=E.max)!==null&&oe!==void 0?oe:"none"}. Min: ${(ge=E.min)!==null&&ge!==void 0?ge:"none"}`}),A.setAutoQualityLimits(E)},Mi=E=>{Pe({message:`seek external to episode start time: ${E}`}),Bt(E,St.SeekAction.EPISODE,!0)},Kt=E=>{Pe({message:`set playback rate to: ${E}`}),A.setPlaybackRate(E)},bn=Le(void 0),mn=Le(!1),Cn=E=>{Pe({message:`start scrubbing, progress: ${E}`}),mn.set(!0),Wt(E)},Wt=E=>{bn.set(E)};let sn,_n;const pn=()=>{bn.set(void 0),mn.set(!1)},wn=()=>{clearTimeout(_n),clearTimeout(sn),sn=window.setTimeout(()=>{pn()},500),Be==null||Be.removeEventListener("seeked",wn)},Tn=E=>{Pe({message:`complete scrubbing, progress: ${E}`}),nt(E,St.SeekAction.SLIDER),$e(lt.ui.isMobile)&&$e(lt.state.currentFormat$)===tt.VideoFormat.HLS?(Be==null||Be.addEventListener("seeked",wn),_n=window.setTimeout(()=>{wn()},300)):pn()},an=wi([dt,mt,bn],([E,oe,ge],Re)=>{Re(ie.isNonNullable(ge)?ge*oe:E)}),kn=Le({width:0,height:0}),yn=wi([kn],([{width:E}],oe)=>{const ge=Rh(E);oe(ge)}),ee=Le(!1),_t=wi([yn,ee],([E,oe])=>oe?$.filter(ge=>!ge.hideOnMobile):$.filter(ge=>{var Re;return!(!((Re=ge.hideOnDesktopGridTypes)===null||Re===void 0)&&Re.includes(E))})),hn=wi([ee,De],([E,oe],ge)=>{ge(E&&oe)}),nn=()=>{st.next(St.SeekAction.LIVE),Pe({message:"switch to active live"}),A.seekTime(0),A.info.playbackState$.getValue()!==tt.PlaybackState.PLAYING&<.actions.internal.togglePlay()},vn=()=>ne.skip(),un=(E=!0)=>{ie.assertNonNullable(lt),Pe({message:`switch from ads to video, callPlay: ${E}`}),Se.set(Oe.Video),E&&A.play()},Zn=()=>{ie.assertNonNullable(lt),Pe({message:"switch from video to ads"}),lt.actions.internal.pause(),kt(),Se.set(Oe.Ads)},Kn=E=>{ie.assertNonNullable(lt);const oe=E?Oe.WaitingLive:Oe.Thumb;Se.set(oe)},$n=E=>{ie.assertNonNullable(lt);const oe=E?Oe.WaitingRecord:Oe.Thumb;Se.set(oe)},Wn=()=>(ie.assertNonNullable(lt),N0(A,Ae,lt)),cn=()=>(ie.assertNonNullable(lt),R0(A,Ae,lt)),x=()=>Be,eo=()=>{Pe({message:"toggle chromecast"}),A.toggleChromecast()},Gn=E=>{var oe;ie.assertNonNullable(lt);const ge=!E;if($e(lt.playerPhase)===Oe.Ads){Pe({message:`pause ads, internalCall: ${ge}`}),ne.pause();return}Pe({message:`pause video, internalCall: ${ge}`}),ge&&((oe=s==null?void 0:s.onPause)===null||oe===void 0||oe.call(s)),A.pause()},co=E=>{var oe;ie.assertNonNullable(lt);const ge=!E;if($e(lt.playerPhase)===Oe.Ads){Pe({message:`play ads, internalCall: ${ge}`}),ne.play();return}Pe({message:`play video, internalCall: ${ge}`}),ge&&((oe=s==null?void 0:s.onPlay)===null||oe===void 0||oe.call(s)),A.play()},Ln=(E,oe)=>{ie.assertNonNullable(lt),Pe({message:`first start, show ads: ${E}, internalCall: ${!oe}`}),E?Se.set(Oe.Ads):(Se.set(Oe.Video),oe?A.play():lt.actions.internal.togglePlay())},Vn=()=>(Pe({message:"getting time codes"}),c),to=()=>{const E=Vn();if(!E||[0,1].includes(E.length))return;const oe=A.info.position$.getValue();return E.find(ge=>ge.time>oe)},fo=E=>{let oe=E;oe||(oe=to()),oe&&(Pe({message:"seek to next episode"}),Bt(oe.time,St.SeekAction.EPISODE,!0))},mo=()=>{const E=Vn();if(!E||[0,1].includes(E.length))return;const oe=A.info.position$.getValue(),ge=E.findIndex(Je=>Je.time>oe),Re=ge===-1?E.length-2:ge-2;if(!(Re<0))return E[Re]},po=E=>{let oe=E;oe||(oe=mo()),oe&&(Pe({message:"seek to prev episode"}),Bt(oe.time,St.SeekAction.EPISODE,!0))},io=()=>(Pe({message:"getting preview thumbs data"}),f),ho=async()=>{G!=null&&G.isActive()?await(G==null?void 0:G.remove()):await(G==null?void 0:G.request())},vo=(E=-90)=>{Qe.update(oe=>oe+E)},Mn=Le([]);C==null||C.subscribe(E=>{const oe=[];for(let ge=0;ge<E.length;ge++){const{range:[Re,Je],subjects:ft}=E[ge];ge===0&&Re!==0&&oe.push({time:0,text:"",interactive:!1,completed:!0}),oe.push({time:Re/1e3,text:"",interactive:!0,completed:!ft.length}),Je!==1/0&&oe.push({time:Je/1e3,text:"",interactive:!1,completed:!0})}Mn.set(oe)});const go=Le(!1);y==null||y.subscribe(E=>{E&&$e(mn)&&pn()});const U=E=>{if(!b)return E;const oe=$e(Mn),ge=$e(mt),Je=$e(ri)/ge,ft=oe.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Je);return typeof(ft==null?void 0:ft.time)=="number"?Math.min(E,ft.time-.05):E},wt=()=>{lt.ui.episodes.panelOpened$.set(!1)},on=()=>{clearTimeout(_n),clearTimeout(sn),Ve.unsubscribe(),Vt.unsubscribe(),A.destroy(),ne.destroy(),D==null||D.destroy(),L==null||L.destroy(),Ee.unsubscribe(),at==null||at.disconnect(),at=null},lt={interfaceLanguage$:pe,initVideo:ot,videoId:e,isClip:i,playerPhase:se,vsid:F,state:{positionExact$:dt,positionWithScrubbing$:an,duration$:mt,playbackState$:Ut,isPlaying$:Nt,isLoaderVisible:li,bufferedProgress$:Ei,isLive$:ni,canChangePlaybackSpeed$:fi,isActiveLive$:gt,isOldestAvailableLive$:bi,isRewindableLive$:rn,isEnded$:Xi,muted$:di,volume$:xt,trafficSavingEnabled$:Ji,autoQualityLimitingAvailable$:Ci,currentQuality$:Pi,isAutoQualityEnabled$:si,availableQualities$:ai,currentPlaybackRate$:Yt,availablePlaybackRates$:qi,currentSubtitle$:qt,availableSubtitlesList$:ji,currentSubtitleCaptions$:tn,isAutoSubtitleCaptionVisible$:Ri,chromecastState$:pi,chromecastDeviceName$:hi,chromecastConnected$:xi,currentFormat$:Ti,throughputEstimation$:Si,videoBitrate$:oi,videoSize$:Gt,errorLog$:ce,crashed$:De,isAudioAvailable$:vi,isAudioDisabled:!!r,canDownload:B.features.download&&!!o,availableSources$:jt,hasMpegSources$:ui,isInteractive:b,showInteractiveGraph:B.features.interactiveGraph,showSeekToInteractive:B.features.seekToInteractive,showPlayPrevChapter:B.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:B.features.interactiveTimeIndicator&&!!$e(Mn).length,interactiveEpisodes$:Mn,isInteractiveTime$:y?Tt(y):Le(!1),graphIsOpened$:Le(!1),isInteractiveExpectation$:go,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:I,looped$:Dt,isFirstBytes$:Le(!1)},ui:{controlsVisible:Le(!1),touched:Le(!1),controls:{prevButton:Le(void 0),playButton:Le(void 0),replayButton:Le(void 0),nextButton:Le(void 0),playPrevChapterButton:Le(void 0),seekToInteractiveButton:Le(void 0),interactiveGraphButton:Le(void 0),liveButton:Le(void 0),time:Le(void 0),episodes:Le(void 0),volume:Le(void 0),subtitles:Le(void 0),settings:Le(void 0),context:Le(void 0),chromecast:Le(void 0),pip:Le(void 0),fullscreen:Le(void 0),vkLogo:Le(void 0),interactiveTimeIndicator:Le(void 0),additionalButtons:$.length?$.reduce(E=>[...E,Le(void 0)],[]):[],disabledControls$:Ce},modals:{hotKeyMap:{show:Le(!1),data:Le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ue,rotateAlpha:Qe,isAutoplay:Le(!1),debugPanelVisible:Le(!1),episodes:{panelOpened$:Le(!1),openedByKeyboard$:Le(!1)},contextMenu:{visible$:Le(!1),btnRef$:Le(void 0),openedByBtnKeyboard$:Le(!1),openedByHotKey$:Le(!1),lastActiveElem$:Le(void 0),showContextMenuBtn$:Le(!1),position$:Le({top:0,left:0})},playerSize:kn,isMobile:ee,mobileNotReportControlHidden$:hn,mobileUnmuteButtonExpanded:Le(!1),mobileUnmuteButtonVisible:Le(!1),icon3DVideoVisible:Le(!1),settingsMenuVisible:Le(!1),settingsMenuOpenedByKeyboard:Le(!1),scrubbingInProgress:mn,is3DVideo:Le(!1),isPictureInPictureActive$:Jt,pictureInPictureType$:Bn(We),clientInfo$:Bn(me),currentGridType$:yn,additionalButtons$:_t,interactiveHideMobileControls:Le(!1),overlayContainer$:Le(void 0),startedByKeyboard$:Le(!1)},ads:{position:Le(0),duration:Le(0),playbackState:Le(ti.INACTIVE),canSkip:Le(!1),secondsToWatchBeforeSkip:Le(0),postrollPassed:Le(!1)},webApi:{pictureInPictureApi:G,annotationsApi:we},actions:{internal:{preload:Ki,firstStart:E=>Ln(E,!1),pause:()=>Gn(!1),togglePlay:Wi,toggleMuted:Zi,toggleSettingsMenu:Di,openSettingsMenu:Ai,closeSettingsMenu:_i,setVolume:Fe,setQuality:zi,setTrafficSavingEnabled:E=>Gi(E),setPlaybackRate:Hi,incrementPlaybackRate:dn,decrementPlaybackRate:Yi,setSubtitle:Zt,toggleSubtitle:Qi,togglePictureInPicture:ho,startScrubbing:Cn,progressScrubbing:Wt,completeScrubbing:Tn,toggleChromecast:eo,switchToActiveLive:nn,switchFromAdsToVideo:un,switchFromVideoToAds:Zn,skipAd:vn,setWaitingLive:Kn,setWaitingRecord:$n,getDebugTextData:Wn,getDebugPanelData:cn,getVideoElement:x,seekTime:(E,oe,ge)=>Bt(E,oe,ge),clearDelayedBufferingCheckTimeout:gi,seekEpisodeStartTime:le,seekToPercent:nt,getNextEpisode:to,seekToNextEpisode:fo,getPrevEpisode:mo,seekToPrevEpisode:po,startLogging:ae,stopLogging:yt,startCameraManualRotation:Et,stopCameraManualRotation:ht,moveCameraFocusPX:Ge,holdCamera:He,releaseCamera:Ne,getVideoEpisodes:Vn,getPreviewThumbsData:io,downloadVideo:Oi,addLanguage:ms,setLanguage:Ze,nextMovie:it,videoRotate:vo,correctSeekTimeToInteractive:U,replayInteractive:w,setLooped:Me},external:{firstStart:E=>Ln(E,!0),play:()=>co(!0),pause:()=>Gn(!0),seekTime:E=>ci(E),seekEpisodeStartTime:E=>Mi(E),setPlaybackRate:E=>Kt(E),setAutoQualityLimits:E=>Vi(E),setMuted:E=>Li(E,!0),setVolume:E=>Fe(E,E,!0),returnFocusToEpisodes:wt}},callbacks:s,setUiCallbacks:E=>{Ue={...E}},getAdmanWrapper:()=>ne,getLogger:()=>R,destroy:on};return lt},mf=(t,e,i,n)=>{var l;if(!t)return;const r=["interactiveTimeIndicator"],o=t.getBoundingClientRect();for(const[s,a]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){const c=(l=i[s])===null||l===void 0?void 0:l.getBoundingClientRect(),f=(n||r.includes(s))&&!!c&&!!(c.right-c.left);a.set({positionStartX:0,positionEndX:0,left:f?Math.round(c.left-o.left):0,right:f?Math.round(c.right-o.left):0,top:f?Math.round(c.top-o.top):0,bottom:f?Math.round(c.bottom-o.top):0,isDisplayed:f})}},pf=async(t,e,i)=>{await Xn(),e&&i&&(i.focus(),t.set(!1))};function og(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class lg extends ye{constructor(e){super(),ke(this,e,null,og,_e,{})}}function rg(t){let e,i;return e=new lg({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function sg(t){let e,i,n;function l(o){t[8](o)}let r={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:[rg]},$$scope:{ctx:t}};return t[2]!==void 0&&(r.ref=t[2]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&8&&(a.className=o[3]?"opened":""),s&1&&(a.disabled=o[0]),s&2&&(a.ariaLabel=o[1]),s&8&&(a.ariaExpanded=o[3]),s&16384&&(a.$$scope={dirty:s,ctx:o}),!i&&s&4&&(i=!0,a.ref=o[2],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function ag(t,e,i){let n,{disabled:l=!1}=e,{ariaLabel:r=""}=e;const o=Pt(),s=o.ui.contextMenu.visible$;z(t,s,y=>i(3,n=y));const a=o.ui.contextMenu.openedByBtnKeyboard$,c=o.ui.contextMenu.showContextMenuBtn$,f=o.ui.contextMenu.position$,d=o.ui.contextMenu.btnRef$;let h;const g=y=>{const w=kr(y),k=e3(h);f.set(k),a.set(w),s.set(!n)},_=()=>{c.set(!0)},b=()=>{c.set(!1)};function C(y){h=y,i(2,h)}return t.$$set=y=>{"disabled"in y&&i(0,l=y.disabled),"ariaLabel"in y&&i(1,r=y.ariaLabel)},t.$$.update=()=>{t.$$.dirty&4&&h&&d.set(h)},[l,r,h,n,s,g,_,b,C]}class ug extends ye{constructor(e){super(),ke(this,e,ag,sg,_e,{disabled:0,ariaLabel:1})}}function cg(t){Ye(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 fg(t){let e,i;return e=new Wc({props:{completed:!0}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p:W,i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function dg(t){let e,i,n,l,r,o,s,a,c,f;function d(g){t[22](g)}let h={tooltipContent:Q("tooltip_interactive_interaction_time_indicator"),tooltipActive:t[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:t[13],$$slots:{default:[fg]},$$scope:{ctx:t}};return t[0]!==void 0&&(h.ref=t[0]),i=new Ft({props:h}),Te.push(()=>je(i,"ref",d)),i.$on("click",t[14]),{c(){e=P("div"),K(i.$$.fragment),l=H(),r=P("div"),o=H(),s=P("div"),u(r,"class","ref-block v-17imlp9"),N(r,"hidden",t[1]),u(s,"class","pulse v-17imlp9"),N(s,"paused",t[4]),u(e,"class","interactive-episode-icon-animated v-17imlp9"),N(e,"mobile",t[2]),N(e,"fullscreen",t[6]),N(e,"invisible",t[1])},m(g,_){S(g,e,_),j(i,e,null),p(e,l),p(e,r),t[23](r),p(e,o),p(e,s),t[24](s),a=!0,c||(f=[ve(e,"mousemove",ct(t[21])),ve(e,"mouseleave",t[15])],c=!0)},p(g,_){const b={};_[0]&32&&(b.tooltipActive=g[5]),_[1]&1&&(b.$$scope={dirty:_,ctx:g}),!n&&_[0]&1&&(n=!0,b.ref=g[0],qe(()=>n=!1)),i.$set(b),(!a||_[0]&2)&&N(r,"hidden",g[1]),(!a||_[0]&16)&&N(s,"paused",g[4]),(!a||_[0]&4)&&N(e,"mobile",g[2]),(!a||_[0]&64)&&N(e,"fullscreen",g[6]),(!a||_[0]&2)&&N(e,"invisible",g[1])},i(g){a||(m(i.$$.fragment,g),a=!0)},o(g){v(i.$$.fragment,g),a=!1},d(g){g&&T(e),Z(i),t[23](null),t[24](null),c=!1,ut(f)}}}function mg(t,e,i){var G;let n,l,r,o,s,a,{ref:c=void 0}=e,f;const d=Pt(),h=Bo(),{interactiveControlsOpacity$:g}=h;z(t,g,we=>i(18,l=we));const _=d.ui.isMobile;z(t,_,we=>i(2,s=we));const b=d.ui.isFullscreen;z(t,b,we=>i(6,a=we));const C=d.state.isInteractiveTime$;z(t,C,we=>i(19,r=we));const y=h.showInteractiveTimeIndicatorTooltip$;z(t,y,we=>i(17,n=we));const w=d.ui.controlsVisible;z(t,w,we=>i(20,o=we));const k=(G=d.callbacks)==null?void 0:G.onInteractiveTimeIndicatorClick;let I,$,q;const D=()=>{i(4,q=!0)},te=()=>{re(),f==null||f.addEventListener("animationiteration",D,{once:!0})},re=()=>{i(4,q=!1),f==null||f.removeEventListener("animationiteration",D)},V=we=>{y.set(we)};let X;const J=()=>{$||(y.set(!0),k==null||k())};qo(()=>{y.clearTimeout(),re()});const B=()=>{y.set(!1)};function A(we){so.call(this,t,we)}function R(we){c=we,i(0,c)}function ne(we){Te[we?"unshift":"push"](()=>{c=we,i(0,c)})}function L(we){Te[we?"unshift":"push"](()=>{f=we,i(3,f)})}return t.$$set=we=>{"ref"in we&&i(0,c=we.ref)},t.$$.update=()=>{t.$$.dirty[0]&1048580&&i(16,I=!s&&o),t.$$.dirty[0]&851968&&i(1,$=!r||!!l||I),t.$$.dirty[0]&2&&i(4,q=$),t.$$.dirty[0]&131074&&i(5,X=n&&!$),t.$$.dirty[0]&131072&&(n?te():re())},[c,$,s,f,q,X,a,g,_,b,C,y,w,V,J,B,I,n,l,r,o,A,R,ne,L]}class hf extends ye{constructor(e){super(),ke(this,e,mg,dg,_e,{ref:0},cg,[-1,-1])}}function pg(t){Ye(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 Va(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 Ma(t){let e,i,n;function l(o){t[173](o)}let r={disabled:!t[9],tooltipContent:Q("tooltip_previous"),$$slots:{default:[hg]},$$scope:{ctx:t}};return t[23].prevButton!==void 0&&(r.ref=t[23].prevButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&512&&(a.disabled=!o[9]),s[0]&4608|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].prevButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function hg(t){let e,i;return e=new Sl({props:{click:t[12],type:"prev",disabled:!t[9],isMobile:!1}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&4096&&(r.click=n[12]),l[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Ba(t){let e,i,n;function l(o){t[174](o)}let r={disabled:t[74],tooltipContent:Q("tooltip_restart"),$$slots:{default:[vg]},$$scope:{ctx:t}};return t[23].replayButton!==void 0&&(r.ref=t[23].replayButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[2]&4096&&(a.disabled=o[74]),s[2]&4096|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].replayButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function vg(t){let e,i;return e=new Ir({props:{click:t[128],disabled:t[74]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Na(t){let e,i,n;function l(o){t[176](o)}let r={tooltipContent:t[47],disabled:t[75],$$slots:{default:[gg]},$$scope:{ctx:t}};return t[23].playButton!==void 0&&(r.ref=t[23].playButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&65536&&(a.tooltipContent=o[47]),s[2]&8192&&(a.disabled=o[75]),s[0]&67108864|s[1]&8|s[2]&8192|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].playButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function gg(t){let e,i,n;function l(o){t[175](o)}let r={isMobile:!1,isPlaying:t[34],click:t[85],disabled:t[75]};return t[26]!==void 0&&(r.ref=t[26]),e=new Er({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&8&&(a.isPlaying=o[34]),s[2]&8192&&(a.disabled=o[75]),!i&&s[0]&67108864&&(i=!0,a.ref=o[26],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Ra(t){let e,i,n;function l(o){t[177](o)}let r={disabled:!t[8],tooltipContent:Q("tooltip_next"),$$slots:{default:[bg]},$$scope:{ctx:t}};return t[23].nextButton!==void 0&&(r.ref=t[23].nextButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&256&&(a.disabled=!o[8]),s[0]&2304|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].nextButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function bg(t){let e,i;return e=new Sl({props:{click:t[11],type:"next",disabled:!t[8],isMobile:!1}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&2048&&(r.click=n[11]),l[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function _g(t){let e,i,n,l,r=t[121]&&wg(t),o=t[120]&&yg(t),s=t[119]&&Tg(t);return{c(){r&&r.c(),e=H(),o&&o.c(),i=H(),s&&s.c(),n=bt()},m(a,c){r&&r.m(a,c),S(a,e,c),o&&o.m(a,c),S(a,i,c),s&&s.m(a,c),S(a,n,c),l=!0},p(a,c){a[121]&&r.p(a,c),a[120]&&o.p(a,c),a[119]&&s.p(a,c)},i(a){l||(m(r),m(o),m(s),l=!0)},o(a){v(r),v(o),v(s),l=!1},d(a){a&&(T(e),T(i),T(n)),r&&r.d(a),o&&o.d(a),s&&s.d(a)}}}function wg(t){let e,i,n;function l(o){t[178](o)}let r={disabled:t[73],tooltipContent:Q("tooltip_interactive_go_back"),disabledTooltipContent:Q(t[124]),$$slots:{default:[kg]},$$scope:{ctx:t}};return t[23].playPrevChapterButton!==void 0&&(r.ref=t[23].playPrevChapterButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[2]&2048&&(a.disabled=o[73]),s[0]&131072|s[2]&2048|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].playPrevChapterButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function kg(t){let e,i;return e=new sf({props:{disabled:t[73],click:t[17]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[2]&2048&&(r.disabled=n[73]),l[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function yg(t){let e,i,n;function l(o){t[179](o)}let r={disabled:t[76],tooltipContent:Q("tooltip_interactive_seek"),disabledTooltipContent:Q(t[78]),$$slots:{default:[Cg]},$$scope:{ctx:t}};return t[23].seekToInteractiveButton!==void 0&&(r.ref=t[23].seekToInteractiveButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[2]&16384&&(a.disabled=o[76]),s[2]&65536&&(a.disabledTooltipContent=Q(o[78])),s[0]&32768|s[2]&16384|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].seekToInteractiveButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Cg(t){let e,i;return e=new of({props:{disabled:t[76],click:t[15]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[2]&16384&&(r.disabled=n[76]),l[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Tg(t){let e,i,n;function l(o){t[180](o)}let r={tooltipContent:t[48],disabled:t[77],$$slots:{default:[Sg]},$$scope:{ctx:t}};return t[23].interactiveGraphButton!==void 0&&(r.ref=t[23].interactiveGraphButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&131072&&(a.tooltipContent=o[48]),s[2]&32768&&(a.disabled=o[77]),s[0]&65536|s[1]&1|s[2]&32768|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].interactiveGraphButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Sg(t){let e,i;return e=new lf({props:{click:t[16],graphIsOpened:t[31],disabled:t[77]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&65536&&(r.click=n[16]),l[1]&1&&(r.graphIsOpened=n[31]),l[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Oa(t){let e,i,n;function l(o){t[181](o)}let r={tooltipContent:t[50],$$slots:{default:[Pg]},$$scope:{ctx:t}};return t[23].liveButton!==void 0&&(r.ref=t[23].liveButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&524288&&(a.tooltipContent=o[50]),s[0]&2097152|s[1]&524288|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].liveButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Pg(t){let e,i;return e=new xc({props:{isActiveLive:t[21],isMobile:!1,ariaLabel:t[50]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&2097152&&(r.isActiveLive=n[21]),l[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Da(t){let e,i,n;function l(o){t[182](o)}let r={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&&(r.ref=t[23].time),e=new Zc({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&16777216&&(a.showDuration=o[55]),s[0]&16|s[2]&393216&&(a.position=o[4]?o[79]:o[80]),s[0]&16|s[2]&1572864&&(a.duration=o[4]?o[81]:o[82]),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].time,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function za(t){let e,i;return e=new nf({props:{position:t[80],duration:t[82],timeCodes:t[101]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[2]&262144&&(r.position=n[80]),l[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Eg(t){let e,i,n=t[20]&&za(t);return{c(){n&&n.c(),e=bt()},m(l,r){n&&n.m(l,r),S(l,e,r),i=!0},p(l,r){l[20]?n?(n.p(l,r),r[0]&1048576&&m(n,1)):(n=za(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(fe(),v(n,1,1,()=>{n=null}),de())},i(l){i||(m(n),i=!0)},o(l){v(n),i=!1},d(l){l&&T(e),n&&n.d(l)}}}function Ig(t){var n;let e,i;return e=new af({props:{iconUrl:t[209],ariaLabel:(n=t[210])!=null?n:t[213],testId:t[211],onClick:t[212]}}),{c(){K(e.$$.fragment)},m(l,r){j(e,l,r),i=!0},p(l,r){var s;const o={};r[0]&268435456&&(o.iconUrl=l[209]),r[0]&268435456&&(o.ariaLabel=(s=l[210])!=null?s:l[213]),r[0]&268435456&&(o.testId=l[211]),r[0]&268435456&&(o.onClick=l[212]),e.$set(o)},i(l){i||(m(e.$$.fragment,l),i=!0)},o(l){v(e.$$.fragment,l),i=!1},d(l){Z(e,l)}}}function Ha(t){let e,i;return e=new Ft({props:{tooltipContent:t[213],width:40,$$slots:{default:[Ig]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&268435456&&(r.tooltipContent=n[213]),l[0]&268435456|l[6]&1073741824&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Fa(t){let e,i,n;function l(o){t[185](o)}let r={disabled:!t[6],tooltipContent:t[51],$$slots:{default:[Ag]},$$scope:{ctx:t}};return t[23].vkLogo!==void 0&&(r.ref=t[23].vkLogo),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&64&&(a.disabled=!o[6]),s[1]&1048576&&(a.tooltipContent=o[51]),s[0]&192|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].vkLogo,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Ag(t){let e,i;return e=new Xc({props:{click:t[86],targetUrl:t[7],logoClickable:t[6]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&128&&(r.targetUrl=n[7]),l[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Lg(t){let e,i;return e=new Uh({props:{click:t[127]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p:W,i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Ua(t){let e,i,n;function l(o){t[187](o)}let r={tooltipContent:t[52],$$slots:{default:[Vg]},$$scope:{ctx:t}};return t[23].subtitles!==void 0&&(r.ref=t[23].subtitles),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&2097152&&(a.tooltipContent=o[52]),s[0]&262144|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].subtitles,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Vg(t){let e,i;return e=new xp({props:{isSubtitlesEnabled:t[18],click:t[87]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function qa(t){var s;let e,i,n,l;function r(a){t[188](a)}let o={supportLink:t[10],playerControlsHeight:(s=t[46])==null?void 0:s.clientHeight,returnFocus:t[14]};return t[24]!==void 0&&(o.ref=t[24]),i=new jc({props:o}),Te.push(()=>je(i,"ref",r)),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","settings-menu v-st0uzk")},m(a,c){S(a,e,c),j(i,e,null),l=!0},p(a,c){var d;const f={};c[0]&1024&&(f.supportLink=a[10]),c[1]&32768&&(f.playerControlsHeight=(d=a[46])==null?void 0:d.clientHeight),c[0]&16384&&(f.returnFocus=a[14]),!n&&c[0]&16777216&&(n=!0,f.ref=a[24],qe(()=>n=!1)),i.$set(f)},i(a){l||(m(i.$$.fragment,a),l=!0)},o(a){v(i.$$.fragment,a),l=!1},d(a){a&&T(e),Z(i)}}}function ja(t){let e,i,n;function l(o){t[190](o)}let r={tooltipContent:t[27]?void 0:Q("tooltip_settings_off"),$$slots:{default:[Mg]},$$scope:{ctx:t}};return t[23].settings!==void 0&&(r.ref=t[23].settings),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&134217728&&(a.tooltipContent=o[27]?void 0:Q("tooltip_settings_off")),s[0]&33554432|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].settings,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Mg(t){let e,i,n;function l(o){t[189](o)}let r={};return t[25]!==void 0&&(r.ref=t[25]),e=new Tr({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};!i&&s[0]&33554432&&(i=!0,a.ref=o[25],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Bg(t){let e,i,n;function l(o){t[191](o)}let r={className:t[41]?"":"out-of-view",tooltipContent:t[49],$$slots:{default:[Ng]},$$scope:{ctx:t}};return t[23].context!==void 0&&(r.ref=t[23].context),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&1024&&(a.className=o[41]?"":"out-of-view"),s[1]&262144&&(a.tooltipContent=o[49]),s[1]&262144|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].context,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Ng(t){let e,i;return e=new ug({props:{ariaLabel:t[49]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Za(t){let e,i,n;function l(o){t[192](o)}let r={tooltipContent:t[53],$$slots:{default:[Rg]},$$scope:{ctx:t}};return t[23].fullscreen!==void 0&&(r.ref=t[23].fullscreen),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&4194304&&(a.tooltipContent=o[53]),s[0]&1073750016|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].fullscreen,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Rg(t){let e,i;return e=new Yc({props:{click:t[13],isFullscreen:t[30]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&8192&&(r.click=n[13]),l[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Ka(t){let e,i,n;function l(o){t[193](o)}let r={tooltipContent:t[54],$$slots:{default:[Og]},$$scope:{ctx:t}};return t[23].chromecast!==void 0&&(r.ref=t[23].chromecast),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&8388608&&(a.tooltipContent=o[54]),s[0]&536870912|s[6]&1073741824&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&8388608&&(i=!0,a.ref=o[23].chromecast,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Og(t){let e,i;return e=new Jc({props:{isMobile:!1,state:t[29],click:t[126]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Dg(t){let e,i,n;function l(o){t[196](o)}let r={};return t[23].interactiveTimeIndicator!==void 0&&(r.ref=t[23].interactiveTimeIndicator),e=new hf({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};!i&&s[0]&8388608&&(i=!0,a.ref=o[23].interactiveTimeIndicator,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function zg(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V,X,J,B,A;i=new tf({props:{isHidden:!t[45],isAds:t[4],canRewindLive:t[5],isRewindableLive:t[32]}});let R=t[38]&&Ma(t),ne=t[35]&&Ba(t),L=t[36]&&Na(t),G=t[37]&&Ra(t),we=t[117]&&_g(t),Pe=!t[4]&&t[33]&&Oa(t),Ae=t[19]&&Da(t);function Be(se){t[183](se)}let Ue={className:"w-max",disabled:!t[20],tooltipContent:Q("tooltip_episodes"),$$slots:{default:[Eg]},$$scope:{ctx:t}};t[23].episodes!==void 0&&(Ue.ref=t[23].episodes),g=new Ft({props:Ue}),Te.push(()=>je(g,"ref",Be));let me=Xt(t[28]),F=[];for(let se=0;se<me.length;se+=1)F[se]=Ha(Va(t,me,se));const ue=se=>v(F[se],1,1,()=>{F[se]=null});let be=t[43]&&!t[4]&&Fa(t);function We(se){t[186](se)}let Qe={$$slots:{default:[Lg]},$$scope:{ctx:t}};t[23].volume!==void 0&&(Qe.ref=t[23].volume),I=new Ft({props:Qe}),Te.push(()=>je(I,"ref",We));let ce=t[40]&&Ua(t),Ee=!t[83]&&!t[4]&&qa(t),De=t[42]&&!t[4]&&ja(t),Ze=t[84].features.contextMenuButton&&Bg(t),pe=t[44]&&Za(t),M=t[39]&&Ka(t),Se=t[122]&&Dg(t);return{c(){e=P("div"),K(i.$$.fragment),n=H(),l=P("div"),r=P("div"),R&&R.c(),o=H(),ne&&ne.c(),s=H(),L&&L.c(),a=H(),G&&G.c(),c=H(),we&&we.c(),f=H(),Pe&&Pe.c(),d=H(),Ae&&Ae.c(),h=H(),K(g.$$.fragment),C=H(),y=P("div");for(let se=0;se<F.length;se+=1)F[se].c();w=H(),be&&be.c(),k=H(),K(I.$$.fragment),q=H(),ce&&ce.c(),D=H(),Ee&&Ee.c(),te=H(),De&&De.c(),re=H(),Ze&&Ze.c(),V=H(),pe&&pe.c(),X=H(),M&&M.c(),J=H(),Se&&Se.c(),B=bt(),u(r,"class","controls-left v-st0uzk"),Lo(()=>t[184].call(r)),u(y,"class","controls-right v-st0uzk"),u(l,"class","controls v-st0uzk"),u(e,"class","wrapper-bottom v-st0uzk"),N(e,"hidden",t[1]),N(e,"controls-hidden",!t[3]),N(e,"no-smooth",t[2])},m(se,Ce){S(se,e,Ce),j(i,e,null),p(e,n),p(e,l),p(l,r),R&&R.m(r,null),p(r,o),ne&&ne.m(r,null),p(r,s),L&&L.m(r,null),p(r,a),G&&G.m(r,null),p(r,c),we&&we.m(r,null),p(r,f),Pe&&Pe.m(r,null),p(r,d),Ae&&Ae.m(r,null),p(r,h),j(g,r,null),b=dr(r,t[184].bind(r)),p(l,C),p(l,y);for(let Ke=0;Ke<F.length;Ke+=1)F[Ke]&&F[Ke].m(y,null);p(y,w),be&&be.m(y,null),p(y,k),j(I,y,null),p(y,q),ce&&ce.m(y,null),p(y,D),Ee&&Ee.m(y,null),p(y,te),De&&De.m(y,null),p(y,re),Ze&&Ze.m(y,null),p(y,V),pe&&pe.m(y,null),p(y,X),M&&M.m(y,null),t[194](l),t[195](e),S(se,J,Ce),Se&&Se.m(se,Ce),S(se,B,Ce),A=!0},p(se,Ce){const Ke={};Ce[1]&16384&&(Ke.isHidden=!se[45]),Ce[0]&16&&(Ke.isAds=se[4]),Ce[0]&32&&(Ke.canRewindLive=se[5]),Ce[1]&2&&(Ke.isRewindableLive=se[32]),i.$set(Ke),se[38]?R?(R.p(se,Ce),Ce[1]&128&&m(R,1)):(R=Ma(se),R.c(),m(R,1),R.m(r,o)):R&&(fe(),v(R,1,1,()=>{R=null}),de()),se[35]?ne?(ne.p(se,Ce),Ce[1]&16&&m(ne,1)):(ne=Ba(se),ne.c(),m(ne,1),ne.m(r,s)):ne&&(fe(),v(ne,1,1,()=>{ne=null}),de()),se[36]?L?(L.p(se,Ce),Ce[1]&32&&m(L,1)):(L=Na(se),L.c(),m(L,1),L.m(r,a)):L&&(fe(),v(L,1,1,()=>{L=null}),de()),se[37]?G?(G.p(se,Ce),Ce[1]&64&&m(G,1)):(G=Ra(se),G.c(),m(G,1),G.m(r,c)):G&&(fe(),v(G,1,1,()=>{G=null}),de()),se[117]&&we.p(se,Ce),!se[4]&&se[33]?Pe?(Pe.p(se,Ce),Ce[0]&16|Ce[1]&4&&m(Pe,1)):(Pe=Oa(se),Pe.c(),m(Pe,1),Pe.m(r,d)):Pe&&(fe(),v(Pe,1,1,()=>{Pe=null}),de()),se[19]?Ae?(Ae.p(se,Ce),Ce[0]&524288&&m(Ae,1)):(Ae=Da(se),Ae.c(),m(Ae,1),Ae.m(r,h)):Ae&&(fe(),v(Ae,1,1,()=>{Ae=null}),de());const ot={};if(Ce[0]&1048576&&(ot.disabled=!se[20]),Ce[0]&1048576|Ce[2]&1310720|Ce[6]&1073741824&&(ot.$$scope={dirty:Ce,ctx:se}),!_&&Ce[0]&8388608&&(_=!0,ot.ref=se[23].episodes,qe(()=>_=!1)),g.$set(ot),Ce[0]&268435456){me=Xt(se[28]);let it;for(it=0;it<me.length;it+=1){const pt=Va(se,me,it);F[it]?(F[it].p(pt,Ce),m(F[it],1)):(F[it]=Ha(pt),F[it].c(),m(F[it],1),F[it].m(y,w))}for(fe(),it=me.length;it<F.length;it+=1)ue(it);de()}se[43]&&!se[4]?be?(be.p(se,Ce),Ce[0]&16|Ce[1]&4096&&m(be,1)):(be=Fa(se),be.c(),m(be,1),be.m(y,k)):be&&(fe(),v(be,1,1,()=>{be=null}),de());const rt={};Ce[6]&1073741824&&(rt.$$scope={dirty:Ce,ctx:se}),!$&&Ce[0]&8388608&&($=!0,rt.ref=se[23].volume,qe(()=>$=!1)),I.$set(rt),se[40]?ce?(ce.p(se,Ce),Ce[1]&512&&m(ce,1)):(ce=Ua(se),ce.c(),m(ce,1),ce.m(y,D)):ce&&(fe(),v(ce,1,1,()=>{ce=null}),de()),!se[83]&&!se[4]?Ee?(Ee.p(se,Ce),Ce[0]&16|Ce[2]&2097152&&m(Ee,1)):(Ee=qa(se),Ee.c(),m(Ee,1),Ee.m(y,te)):Ee&&(fe(),v(Ee,1,1,()=>{Ee=null}),de()),se[42]&&!se[4]?De?(De.p(se,Ce),Ce[0]&16|Ce[1]&2048&&m(De,1)):(De=ja(se),De.c(),m(De,1),De.m(y,re)):De&&(fe(),v(De,1,1,()=>{De=null}),de()),se[84].features.contextMenuButton&&Ze.p(se,Ce),se[44]?pe?(pe.p(se,Ce),Ce[1]&8192&&m(pe,1)):(pe=Za(se),pe.c(),m(pe,1),pe.m(y,X)):pe&&(fe(),v(pe,1,1,()=>{pe=null}),de()),se[39]?M?(M.p(se,Ce),Ce[1]&256&&m(M,1)):(M=Ka(se),M.c(),m(M,1),M.m(y,null)):M&&(fe(),v(M,1,1,()=>{M=null}),de()),(!A||Ce[0]&2)&&N(e,"hidden",se[1]),(!A||Ce[0]&8)&&N(e,"controls-hidden",!se[3]),(!A||Ce[0]&4)&&N(e,"no-smooth",se[2]),se[122]&&Se.p(se,Ce)},i(se){if(!A){m(i.$$.fragment,se),m(R),m(ne),m(L),m(G),m(we),m(Pe),m(Ae),m(g.$$.fragment,se);for(let Ce=0;Ce<me.length;Ce+=1)m(F[Ce]);m(be),m(I.$$.fragment,se),m(ce),m(Ee),m(De),m(Ze),m(pe),m(M),m(Se),A=!0}},o(se){v(i.$$.fragment,se),v(R),v(ne),v(L),v(G),v(we),v(Pe),v(Ae),v(g.$$.fragment,se),F=F.filter(Boolean);for(let Ce=0;Ce<F.length;Ce+=1)v(F[Ce]);v(be),v(I.$$.fragment,se),v(ce),v(Ee),v(De),v(Ze),v(pe),v(M),v(Se),A=!1},d(se){se&&(T(e),T(J),T(B)),Z(i),R&&R.d(),ne&&ne.d(),L&&L.d(),G&&G.d(),we&&we.d(),Pe&&Pe.d(),Ae&&Ae.d(),Z(g),b(),An(F,se),be&&be.d(),Z(I),ce&&ce.d(),Ee&&Ee.d(),De&&De.d(),Ze&&Ze.d(),pe&&pe.d(),M&&M.d(),t[194](null),t[195](null),Se&&Se.d(se)}}}function Hg(t,e,i){var Rr,Or;let n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V,X,J,B,A,R,ne,L,G,we=W,Pe=()=>(we(),we=ei(re,Y=>i(144,G=Y)),re),Ae,Be=W,Ue=()=>(Be(),Be=ei(te,Y=>i(145,Ae=Y)),te),me,F=W,ue=()=>(F(),F=ei(D,Y=>i(146,me=Y)),D),be,We=W,Qe=()=>(We(),We=ei(q,Y=>i(147,be=Y)),q),ce,Ee=W,De=()=>(Ee(),Ee=ei($,Y=>i(148,ce=Y)),$),Ze,pe=W,M=()=>(pe(),pe=ei(I,Y=>i(149,Ze=Y)),I),Se,se=W,Ce=()=>(se(),se=ei(k,Y=>i(150,Se=Y)),k),Ke,ot=W,rt=()=>(ot(),ot=ei(w,Y=>i(151,Ke=Y)),w),it,pt=W,st=()=>(pt(),pt=ei(y,Y=>i(152,it=Y)),y),he,at=W,It=()=>(at(),at=ei(C,Y=>i(153,he=Y)),C),kt,Ve=W,Vt=()=>(Ve(),Ve=ei(b,Y=>i(154,kt=Y)),b),ae,yt=W,Et=()=>(yt(),yt=ei(_,Y=>i(155,ae=Y)),_),ht,Ge=W,He=()=>(Ge(),Ge=ei(g,Y=>i(156,ht=Y)),g),Ne,dt=W,Jt=()=>(dt(),dt=ei(h,Y=>i(157,Ne=Y)),h),Ut,Fi=W,Xi=()=>(Fi(),Fi=ei(d,Y=>i(158,Ut=Y)),d),ni,fi=W,yi=()=>(fi(),fi=ei(f,Y=>i(159,ni=Y)),f),xt,di=W,Ji=()=>(di(),di=ei(c,Y=>i(160,xt=Y)),c),Ci,Ni,mi,pi,hi,Ti,Si,oi,Gt,At,vi,Mt,$t,li,gi,mt,Nt,gt,bi,ri,rn,xi,Rt;t.$$.on_destroy.push(()=>we()),t.$$.on_destroy.push(()=>Be()),t.$$.on_destroy.push(()=>F()),t.$$.on_destroy.push(()=>We()),t.$$.on_destroy.push(()=>Ee()),t.$$.on_destroy.push(()=>pe()),t.$$.on_destroy.push(()=>se()),t.$$.on_destroy.push(()=>ot()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>at()),t.$$.on_destroy.push(()=>Ve()),t.$$.on_destroy.push(()=>yt()),t.$$.on_destroy.push(()=>Ge()),t.$$.on_destroy.push(()=>dt()),t.$$.on_destroy.push(()=>Fi()),t.$$.on_destroy.push(()=>fi()),t.$$.on_destroy.push(()=>di());let{bottomHidden:si}=e,{bottomNoSmooth:Ui}=e,{showControls:Pi}=e,{controlsElementRef:ai=void 0}=e,{isAds:Yt=!1}=e,{canRewindLive:qi}=e,{logoClickable:$i}=e,{logoHidden:Qt}=e,{logoTargetUrl:Ot=""}=e,{showNextPrevButtons:qt}=e,{nextButtonActive:ji}=e,{prevButtonActive:en}=e,{isOneVideoPlaylist:tn=!1}=e,{supportLink:Ri}=e,{customFullscreenSupported:Ei=!0}=e,{playNextVideo:jt}=e,{playPrevVideo:ui}=e,{repeatPlaylist:Ii}=e,{toggleFullscreen:Oi}=e,{returnFocus:Zi}=e,{seekToInteractive:_i}=e,{toggleGraph:Ai}=e,{playPrevChapter:Di}=e;const Fe=Pt(),Li=Bo(),Dt=gn(),Me=Fe.actions.internal.toggleMuted,Ki=Fe.actions.internal.togglePlay,Wi=Fe.actions.internal.pause,zi=Fe.actions.internal.toggleSubtitle,Gi=(Rr=Fe.callbacks)==null?void 0:Rr.onAudioDoesNotExistHint,Hi=(Or=Fe.callbacks)==null?void 0:Or.onAudioDisabledHint,dn=Fe.state.duration$;z(t,dn,Y=>i(82,xi=Y));const Yi=Fe.state.positionWithScrubbing$;z(t,Yi,Y=>i(80,ri=Y));const Zt=Fe.state.playbackState$;z(t,Zt,Y=>i(161,mi=Y));const Qi=Fe.state.chromecastConnected$;z(t,Qi,Y=>i(83,Rt=Y));const Bt=Fe.state.isAudioAvailable$;z(t,Bt,Y=>i(197,V=Y));const le=Fe.state.isAudioDisabled,nt=Fe.state.isEnded$;z(t,nt,Y=>i(169,li=Y));const ci=Fe.state.isLive$;z(t,ci,Y=>i(33,oi=Y));const Vi=Fe.state.isActiveLive$;z(t,Vi,Y=>i(163,Ti=Y));const Mi=Fe.state.isRewindableLive$;z(t,Mi,Y=>i(32,Si=Y));const Kt=Fe.ui.isPictureInPictureActive$;z(t,Kt,Y=>i(165,At=Y));const bn=Fe.ui.pictureInPictureType$;z(t,bn,Y=>i(164,Gt=Y));const mn=Fe.ui.settingsMenuVisible;z(t,mn,Y=>i(27,B=Y));const Cn=Fe.ui.settingsMenuOpenedByKeyboard;z(t,Cn,Y=>i(140,J=Y));const Wt=Fe.ui.controls,sn=Fe.actions.internal.getVideoEpisodes(),_n=Fe.state.chromecastState$;z(t,_n,Y=>i(29,Ci=Y));const pn=Fe.state.availableSubtitlesList$;z(t,pn,Y=>i(168,$t=Y));const wn=Fe.state.currentSubtitle$;z(t,wn,Y=>i(170,gi=Y));const Tn=Wt.disabledControls$;z(t,Tn,Y=>i(172,Nt=Y));const an=Fe.ui.contextMenu.visible$;z(t,an,Y=>i(162,pi=Y));const kn=Fe.ui.contextMenu.showContextMenuBtn$;z(t,kn,Y=>i(166,vi=Y));const yn=Fe.ui.contextMenu.openedByBtnKeyboard$;z(t,yn,Y=>i(167,Mt=Y));const ee=Fe.ui.startedByKeyboard$;z(t,ee,Y=>i(139,X=Y));const _t=Fe.ads.duration;z(t,_t,Y=>i(81,rn=Y));const hn=Fe.ads.position;z(t,hn,Y=>i(79,bi=Y));const nn=Fe.ads.playbackState;z(t,nn,Y=>i(171,mt=Y));const vn=Fe.ui.isFullscreen;z(t,vn,Y=>i(30,Ni=Y));const un=Fe.ui.playerSize;z(t,un,Y=>i(142,R=Y));const Zn=Fe.ui.currentGridType$;z(t,Zn,Y=>i(143,ne=Y));const Kn=Fe.ui.additionalButtons$;z(t,Kn,Y=>i(28,L=Y));const $n=Fe.actions.internal.getVideoElement,Wn=Fe.actions.internal.replayInteractive,cn=Fe.state.isInteractive,x=Fe.state.isInteractiveTime$;z(t,x,Y=>i(141,A=Y));const eo=Fe.state.showInteractiveGraph,Gn=Fe.state.showSeekToInteractive,co=Fe.state.showPlayPrevChapter,Ln=Fe.state.showInteractiveTimeIndicator,Vn=Fe.state.graphIsOpened$;z(t,Vn,Y=>i(31,hi=Y));const to=Fe.state.playPrevChapterDisabledTooltip,fo=Li.seekToInteractiveDisabledTooltip$;z(t,fo,Y=>i(78,gt=Y));const mo=()=>Fe.actions.internal.toggleChromecast();let po,io,ho,vo,Mn,go,U,wt,on,lt,E,oe,ge,Re,Je,ft,Lt,Ct,Bi,no,Xo,bo="";const Af=(Y,Il)=>{if(!Y){i(50,bo=Q("tooltip_live"));return}Il===tt.PlaybackState.PAUSED&&i(50,bo=Q("tooltip_play"))};let Lr,Vr,Mr,Br,Jo;const Xe={};let Sn,No,El,Nr;const Lf=ie.throttleFn(mf,Eu,{leading:!1});let xo,$o,el;function Vf(){zo({isAudioDisabled:le,audioDisabledHintCallback:Hi,isAudioAvailable:V,audioIsNotExistHintCallback:Gi})&&Me()}const Mf=cn?Wn:tn?Ki:Ii;function Bf(Y){t.$$.not_equal(Xe.prevButton,Y)&&(Xe.prevButton=Y,i(23,Xe))}function Nf(Y){t.$$.not_equal(Xe.replayButton,Y)&&(Xe.replayButton=Y,i(23,Xe))}function Rf(Y){el=Y,i(26,el)}function Of(Y){t.$$.not_equal(Xe.playButton,Y)&&(Xe.playButton=Y,i(23,Xe))}function Df(Y){t.$$.not_equal(Xe.nextButton,Y)&&(Xe.nextButton=Y,i(23,Xe))}function zf(Y){t.$$.not_equal(Xe.playPrevChapterButton,Y)&&(Xe.playPrevChapterButton=Y,i(23,Xe))}function Hf(Y){t.$$.not_equal(Xe.seekToInteractiveButton,Y)&&(Xe.seekToInteractiveButton=Y,i(23,Xe))}function Ff(Y){t.$$.not_equal(Xe.interactiveGraphButton,Y)&&(Xe.interactiveGraphButton=Y,i(23,Xe))}function Uf(Y){t.$$.not_equal(Xe.liveButton,Y)&&(Xe.liveButton=Y,i(23,Xe))}function qf(Y){t.$$.not_equal(Xe.time,Y)&&(Xe.time=Y,i(23,Xe))}function jf(Y){t.$$.not_equal(Xe.episodes,Y)&&(Xe.episodes=Y,i(23,Xe))}function Zf(){Jo=this.clientWidth,i(22,Jo)}function Kf(Y){t.$$.not_equal(Xe.vkLogo,Y)&&(Xe.vkLogo=Y,i(23,Xe))}function Wf(Y){t.$$.not_equal(Xe.volume,Y)&&(Xe.volume=Y,i(23,Xe))}function Gf(Y){t.$$.not_equal(Xe.subtitles,Y)&&(Xe.subtitles=Y,i(23,Xe))}function Yf(Y){xo=Y,i(24,xo)}function Qf(Y){$o=Y,i(25,$o)}function Xf(Y){t.$$.not_equal(Xe.settings,Y)&&(Xe.settings=Y,i(23,Xe))}function Jf(Y){t.$$.not_equal(Xe.context,Y)&&(Xe.context=Y,i(23,Xe))}function xf(Y){t.$$.not_equal(Xe.fullscreen,Y)&&(Xe.fullscreen=Y,i(23,Xe))}function $f(Y){t.$$.not_equal(Xe.chromecast,Y)&&(Xe.chromecast=Y,i(23,Xe))}function e0(Y){Te[Y?"unshift":"push"](()=>{Lt=Y,i(46,Lt)})}function t0(Y){Te[Y?"unshift":"push"](()=>{ai=Y,i(0,ai)})}function i0(Y){t.$$.not_equal(Xe.interactiveTimeIndicator,Y)&&(Xe.interactiveTimeIndicator=Y,i(23,Xe))}return t.$$set=Y=>{"bottomHidden"in Y&&i(1,si=Y.bottomHidden),"bottomNoSmooth"in Y&&i(2,Ui=Y.bottomNoSmooth),"showControls"in Y&&i(3,Pi=Y.showControls),"controlsElementRef"in Y&&i(0,ai=Y.controlsElementRef),"isAds"in Y&&i(4,Yt=Y.isAds),"canRewindLive"in Y&&i(5,qi=Y.canRewindLive),"logoClickable"in Y&&i(6,$i=Y.logoClickable),"logoHidden"in Y&&i(129,Qt=Y.logoHidden),"logoTargetUrl"in Y&&i(7,Ot=Y.logoTargetUrl),"showNextPrevButtons"in Y&&i(130,qt=Y.showNextPrevButtons),"nextButtonActive"in Y&&i(8,ji=Y.nextButtonActive),"prevButtonActive"in Y&&i(9,en=Y.prevButtonActive),"isOneVideoPlaylist"in Y&&i(131,tn=Y.isOneVideoPlaylist),"supportLink"in Y&&i(10,Ri=Y.supportLink),"customFullscreenSupported"in Y&&i(132,Ei=Y.customFullscreenSupported),"playNextVideo"in Y&&i(11,jt=Y.playNextVideo),"playPrevVideo"in Y&&i(12,ui=Y.playPrevVideo),"repeatPlaylist"in Y&&i(133,Ii=Y.repeatPlaylist),"toggleFullscreen"in Y&&i(13,Oi=Y.toggleFullscreen),"returnFocus"in Y&&i(14,Zi=Y.returnFocus),"seekToInteractive"in Y&&i(15,_i=Y.seekToInteractive),"toggleGraph"in Y&&i(16,Ai=Y.toggleGraph),"playPrevChapter"in Y&&i(17,Di=Y.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[5]&131072&&i(138,n=Nt.has(vt.EPISODE_BUTTON)),t.$$.dirty[5]&131072&&i(77,l=Nt.has(vt.GRAPH_BUTTON)),t.$$.dirty[5]&131072&&i(76,r=Nt.has(vt.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[5]&131072&&i(75,o=Nt.has(vt.PLAY_BUTTON)),t.$$.dirty[5]&131072&&i(74,s=Nt.has(vt.REPLAY_BUTTON)),t.$$.dirty[5]&131072&&i(73,a=Nt.has(vt.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[0]&16|t.$$.dirty[5]&65600&&i(34,po=Yt?mt===ti.PLAYING:mi===tt.PlaybackState.PLAYING),t.$$.dirty[5]&32768&&i(18,io=gi.value!=="off"),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(35,ho=li&&!Yt||cn),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(36,vo=!li||cn||Yt),t.$$.dirty[4]&524288&&i(134,Mn=Pn(ne,exports.GridTypes.M)),t.$$.dirty[0]&272|t.$$.dirty[4]&524352&&i(37,go=qt&&Pn(ne,exports.GridTypes.M)&&!Yt&&ji),t.$$.dirty[0]&528|t.$$.dirty[4]&524352&&i(38,U=qt&&Pn(ne,exports.GridTypes.M)&&!Yt&&en),t.$$.dirty[0]&536870912|t.$$.dirty[4]&524288|t.$$.dirty[5]&1536&&i(39,wt=Ci!==tt.ChromecastState.NOT_AVAILABLE&&!(At&&Gt===Dn.DocumentPictureInPicture)&&Pn(ne,exports.GridTypes.M)&&!cn),t.$$.dirty[4]&524288|t.$$.dirty[5]&8192&&i(40,on=$t.length>0&&Pn(ne,exports.GridTypes.M)),t.$$.dirty[5]&6144&&i(41,lt=Mt||vi),t.$$.dirty[4]&524288&&i(42,E=Pn(ne,exports.GridTypes.S)),t.$$.dirty[4]&32&&i(43,oe=!Qt),t.$$.dirty[4]&524576|t.$$.dirty[5]&1536&&i(44,ge=Dt.features.fullscreen&&(Qt||Pn(ne,exports.GridTypes.S))&&!(At&&Gt===Dn.DocumentPictureInPicture)&&(cn?Ei:!0)),t.$$.dirty[0]&16|t.$$.dirty[1]&4&&i(19,Re=(!oi||Yt)&&!(Dt.features.interactiveHideTime&&cn)),t.$$.dirty[4]&262144&&i(45,Je=R.width>100),t.$$.dirty[0]&16|t.$$.dirty[1]&4|t.$$.dirty[4]&17408&&i(20,ft=!Yt&&!oi&&!!(sn!=null&&sn.length)&&Mn&&!n),t.$$.dirty[1]&2|t.$$.dirty[5]&256&&i(21,Ct=!Si||Ti),t.$$.dirty[5]&64&&i(47,Bi=mi===tt.PlaybackState.PLAYING?Q("tooltip_pause"):Q("tooltip_play")),t.$$.dirty[1]&1&&i(48,no=Q(hi?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off")),t.$$.dirty[5]&128&&i(49,Xo=Q(pi?"aria_label_context_menu_close":"aria_label_context_menu_open")),t.$$.dirty[0]&2097152|t.$$.dirty[5]&64&&Af(Ct,mi),t.$$.dirty[0]&262144&&i(52,Vr=Q(io?"tooltip_subtitles_on":"tooltip_subtitles_off")),t.$$.dirty[0]&1073741824&&i(53,Mr=Q(Ni?"tooltip_fullscreen_on":"tooltip_fullscreen_off")),t.$$.dirty[0]&536870912&&i(54,Br=Ci===tt.ChromecastState.CONNECTED?Q("tooltip_chromecast_on"):Q("tooltip_chromecast_off")),t.$$.dirty[0]&268435456|t.$$.dirty[4]&2146435072|t.$$.dirty[5]&63&&i(135,Sn={prevButton:xt?xt.right-xt.left:0,replayButton:ni?ni.right-ni.left:0,playButton:Ut?Ut.right-Ut.left:0,nextButton:Ne?Ne.right-Ne.left:0,playPrevChapterButton:ht?ht.right-ht.left:0,seekToInteractiveButton:ae?ae.right-ae.left:0,interactiveGraphButton:kt?kt.right-kt.left:0,liveButton:he?he.right-he.left:0,time:it?it.right-it.left:0,episodes:Ke?Ke.right-Ke.left:0,vkLogo:Se?Se.right-Se.left:0,volume:Ze?Ze.right-Ze.left:0,subtitles:ce?ce.right-ce.left:0,settings:be?be.right-be.left:0,context:me?me.right-me.left:0,fullscreen:Ae?Ae.right-Ae.left:0,chromecast:G?G.right-G.left:0,additionalButtons:L.length?L.reduce(Y=>[...Y,40],[]):[]}),t.$$.dirty[4]&6144&&(!No||No<Sn.time)&&i(136,No=Sn.time),t.$$.dirty[0]&5767168|t.$$.dirty[4]&530432){let Y=0;ft&&(Pn(ne,exports.GridTypes.XL)?Y=Sn.time:Y=V0);const Il=Sn.prevButton+Sn.playButton+Sn.nextButton+Sn.seekToInteractiveButton+Sn.interactiveGraphButton+Sn.liveButton+No+Y;i(137,El=Re&&Jo>=Il)}t.$$.dirty[4]&532480&&i(55,Nr=El&&Pn(ne,exports.GridTypes.M)),t.$$.dirty[0]&8388616|t.$$.dirty[4]&393216&&Lf($n(),Wt,Xe,Pi),t.$$.dirty[0]&167772160&&yr($o,B,Cn),t.$$.dirty[0]&150994944|t.$$.dirty[4]&65536&&_l(xo,B,J),t.$$.dirty[0]&67108864|t.$$.dirty[4]&32768&&pf(ee,X,el)},i(51,Lr=Dt.logoType===lo.VK_VIDEO?Q("tooltip_vk_video_logo"):Q("tooltip_vk_logo")),Ji(i(72,{prevButton:c,replayButton:f,playButton:d,nextButton:h,playPrevChapterButton:g,seekToInteractiveButton:_,interactiveGraphButton:b,liveButton:C,time:y,episodes:w,vkLogo:k,volume:I,subtitles:$,settings:q,context:D,fullscreen:te,chromecast:re}=Wt,c,yi(i(71,f)),Xi(i(70,d)),Jt(i(69,h)),He(i(68,g)),Et(i(67,_)),Vt(i(66,b)),It(i(65,C)),st(i(64,y)),rt(i(63,w)),Ce(i(62,k)),M(i(61,I)),De(i(60,$)),Qe(i(59,q)),ue(i(58,D)),Ue(i(57,te)),Pe(i(56,re)))),[ai,si,Ui,Pi,Yt,qi,$i,Ot,ji,en,Ri,jt,ui,Oi,Zi,_i,Ai,Di,io,Re,ft,Ct,Jo,Xe,xo,$o,el,B,L,Ci,Ni,hi,Si,oi,po,ho,vo,go,U,wt,on,lt,E,oe,ge,Je,Lt,Bi,no,Xo,bo,Lr,Vr,Mr,Br,Nr,re,te,D,q,$,I,k,w,y,C,b,_,g,h,d,f,c,a,s,o,r,l,gt,bi,ri,rn,xi,Rt,Dt,Ki,Wi,zi,dn,Yi,Zt,Qi,Bt,nt,ci,Vi,Mi,Kt,bn,mn,Cn,sn,_n,pn,wn,Tn,an,kn,yn,ee,_t,hn,nn,vn,un,Zn,Kn,cn,x,eo,Gn,co,Ln,Vn,to,fo,mo,Vf,Mf,Qt,qt,tn,Ei,Ii,Mn,Sn,No,El,n,X,J,A,R,ne,G,Ae,me,be,ce,Ze,Se,Ke,it,he,kt,ae,ht,Ne,Ut,ni,xt,mi,pi,Ti,Gt,At,vi,Mt,$t,li,gi,mt,Nt,Bf,Nf,Rf,Of,Df,zf,Hf,Ff,Uf,qf,jf,Zf,Kf,Wf,Gf,Yf,Qf,Xf,Jf,xf,$f,e0,t0,i0]}class Fg extends ye{constructor(e){super(),ke(this,e,Hg,zg,_e,{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},pg,[-1,-1,-1,-1,-1,-1,-1])}}function Ug(t){let e,i,n,l;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),u(n,"d","M0 0h24v24H0z"),u(l,"fill","#fff"),u(l,"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(r,o){S(r,e,o),p(e,i),p(i,n),p(i,l)},p:W,i:W,o:W,d(r){r&&T(e)}}}class qg extends ye{constructor(e){super(),ke(this,e,null,Ug,_e,{})}}function jg(t){Ye(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 Wa(t){let e;return{c(){e=P("span"),e.textContent=`${Q("mobile_unmute")}`,u(e,"class","text v-6gmlbk")},m(i,n){S(i,e,n)},p:W,d(i){i&&T(e)}}}function Zg(t){let e,i,n,l;var r=t[4];function o(a){return{}}r&&(i=Nn(r,o()));let s=t[1]&&Wa();return{c(){e=P("div"),i&&K(i.$$.fragment),n=H(),s&&s.c(),u(e,"class","container v-6gmlbk"),u(e,"aria-hidden","true"),N(e,"expanded",t[1])},m(a,c){S(a,e,c),i&&j(i,e,null),p(e,n),s&&s.m(e,null),l=!0},p(a,c){if(c&16&&r!==(r=a[4])){if(i){fe();const f=i;v(f.$$.fragment,1,0,()=>{Z(f,1)}),de()}r?(i=Nn(r,o()),K(i.$$.fragment),m(i.$$.fragment,1),j(i,e,n)):i=null}a[1]?s?s.p(a,c):(s=Wa(),s.c(),s.m(e,null)):s&&(s.d(1),s=null),(!l||c&2)&&N(e,"expanded",a[1])},i(a){l||(i&&m(i.$$.fragment,a),l=!0)},o(a){i&&v(i.$$.fragment,a),l=!1},d(a){a&&T(e),i&&Z(i),s&&s.d()}}}function Kg(t){let e,i,n;function l(o){t[6](o)}let r={testId:t[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:t[2],ariaLabel:t[3],$$slots:{default:[Zg]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&2&&(a.testId=o[1]?"btn-mobile-unmuted":"btn-mobile-muted"),s&4&&(a.click=o[2]),s&8&&(a.ariaLabel=o[3]),s&146&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Wg(t,e,i){let{muted:n=!1}=e,{expanded:l=!1}=e,{click:r=ie.noop}=e,{ref:o=void 0}=e,s,a;function c(f){o=f,i(0,o)}return t.$$set=f=>{"muted"in f&&i(5,n=f.muted),"expanded"in f&&i(1,l=f.expanded),"click"in f&&i(2,r=f.click),"ref"in f&&i(0,o=f.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,s=Q(n?"tooltip_volume":"tooltip_volume_muted")),t.$$.dirty&2&&i(4,a=l?Tl:qg)},[o,l,r,s,a,n,c]}class vf extends ye{constructor(e){super(),ke(this,e,Wg,Kg,_e,{muted:5,expanded:1,click:2,ref:0},jg)}}function Gg(t){let e,i,n,l;return{c(){e=O("svg"),i=O("path"),n=O("path"),l=O("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"),N(n,"hidden",!t[0]),u(l,"fill",t[1]),u(l,"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"),N(l,"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(r,o){S(r,e,o),p(e,i),p(e,n),p(e,l)},p(r,[o]){o&2&&u(i,"fill",r[1]),o&2&&u(n,"fill",r[1]),o&1&&N(n,"hidden",!r[0]),o&2&&u(l,"fill",r[1]),o&1&&N(l,"hidden",r[0])},i:W,o:W,d(r){r&&T(e)}}}function Yg(t,e,i){let n,{isActive:l=!1}=e;return t.$$set=r=>{"isActive"in r&&i(0,l=r.isActive)},t.$$.update=()=>{t.$$.dirty&1&&i(1,n=l?"#2688EB":"#fff")},[l,n]}class Qg extends ye{constructor(e){super(),ke(this,e,Yg,Gg,_e,{isActive:0})}}function Xg(t){let e,i;return e=new Qg({props:{isActive:t[1]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&2&&(r.isActive=n[1]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Jg(t){let e,i,n;function l(o){t[3](o)}let r={testId:"btn-pip",ariaLabel:Q("menu_pip"),click:t[2],$$slots:{default:[Xg]},$$scope:{ctx:t}};return t[0]!==void 0&&(r.ref=t[0]),e=new ki({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,[s]){const a={};s&4&&(a.click=o[2]),s&18&&(a.$$scope={dirty:s,ctx:o}),!i&&s&1&&(i=!0,a.ref=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function xg(t,e,i){let{ref:n=void 0}=e,{isPictureInPictureActive:l=!1}=e,{click:r=ie.noop}=e;function o(s){n=s,i(0,n)}return t.$$set=s=>{"ref"in s&&i(0,n=s.ref),"isPictureInPictureActive"in s&&i(1,l=s.isPictureInPictureActive),"click"in s&&i(2,r=s.click)},[n,l,r,o]}class $g extends ye{constructor(e){super(),ke(this,e,xg,Jg,_e,{ref:0,isPictureInPictureActive:1,click:2})}}function eb(t){Ye(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 Ga(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 Ya(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w=(!t[51]||t[53])&&Qa(t),k=Xt(t[56]),I=[];for(let R=0;R<k.length;R+=1)I[R]=Xa(Ga(t,k,R));const $=R=>v(I[R],1,1,()=>{I[R]=null});let q=t[36]&&Ja(t),D=t[37]&&xa(t),te=t[57]&&$a(t),re=t[39]&&e1(t),V=t[8]&&t1(t),X=t[34]&&i1(t),J=t[33]&&n1(t),B=t[8]&&o1(t),A=t[96]&&!t[29]&&l1(t);return{c(){e=P("div"),i=H(),n=P("div"),w&&w.c(),l=H(),r=P("div");for(let R=0;R<I.length;R+=1)I[R].c();o=H(),q&&q.c(),s=H(),D&&D.c(),a=H(),te&&te.c(),c=H(),re&&re.c(),f=H(),d=P("div"),V&&V.c(),h=H(),X&&X.c(),g=H(),J&&J.c(),_=H(),B&&B.c(),b=H(),A&&A.c(),C=bt(),u(e,"class","overlay-mobile v-1tcstu3"),N(e,"hidden",!t[42]),u(n,"class","wrapper-top-left v-1tcstu3"),N(n,"hidden",!t[3]),N(n,"fullscreen",t[52]),u(r,"class","wrapper-top-right v-1tcstu3"),N(r,"hidden",!t[3]&&!t[27]),N(r,"fullscreen",t[52]),u(d,"class","wrapper-middle v-1tcstu3"),N(d,"hidden",!t[3]||t[29])},m(R,ne){S(R,e,ne),S(R,i,ne),S(R,n,ne),w&&w.m(n,null),S(R,l,ne),S(R,r,ne);for(let L=0;L<I.length;L+=1)I[L]&&I[L].m(r,null);p(r,o),q&&q.m(r,null),p(r,s),D&&D.m(r,null),p(r,a),te&&te.m(r,null),p(r,c),re&&re.m(r,null),S(R,f,ne),S(R,d,ne),V&&V.m(d,null),p(d,h),X&&X.m(d,null),p(d,g),J&&J.m(d,null),p(d,_),B&&B.m(d,null),S(R,b,ne),A&&A.m(R,ne),S(R,C,ne),y=!0},p(R,ne){if((!y||ne[1]&2048)&&N(e,"hidden",!R[42]),!R[51]||R[53]?w?(w.p(R,ne),ne[1]&5242880&&m(w,1)):(w=Qa(R),w.c(),m(w,1),w.m(n,null)):w&&(fe(),v(w,1,1,()=>{w=null}),de()),(!y||ne[0]&8)&&N(n,"hidden",!R[3]),(!y||ne[1]&2097152)&&N(n,"fullscreen",R[52]),ne[1]&33554432){k=Xt(R[56]);let L;for(L=0;L<k.length;L+=1){const G=Ga(R,k,L);I[L]?(I[L].p(G,ne),m(I[L],1)):(I[L]=Xa(G),I[L].c(),m(I[L],1),I[L].m(r,o))}for(fe(),L=k.length;L<I.length;L+=1)$(L);de()}R[36]?q?(q.p(R,ne),ne[1]&32&&m(q,1)):(q=Ja(R),q.c(),m(q,1),q.m(r,s)):q&&(fe(),v(q,1,1,()=>{q=null}),de()),R[37]?D?(D.p(R,ne),ne[1]&64&&m(D,1)):(D=xa(R),D.c(),m(D,1),D.m(r,a)):D&&(fe(),v(D,1,1,()=>{D=null}),de()),R[57]?te?(te.p(R,ne),ne[1]&67108864&&m(te,1)):(te=$a(R),te.c(),m(te,1),te.m(r,c)):te&&(fe(),v(te,1,1,()=>{te=null}),de()),R[39]?re?(re.p(R,ne),ne[1]&256&&m(re,1)):(re=e1(R),re.c(),m(re,1),re.m(r,null)):re&&(fe(),v(re,1,1,()=>{re=null}),de()),(!y||ne[0]&134217736)&&N(r,"hidden",!R[3]&&!R[27]),(!y||ne[1]&2097152)&&N(r,"fullscreen",R[52]),R[8]?V?(V.p(R,ne),ne[0]&256&&m(V,1)):(V=t1(R),V.c(),m(V,1),V.m(d,h)):V&&(fe(),v(V,1,1,()=>{V=null}),de()),R[34]?X?(X.p(R,ne),ne[1]&8&&m(X,1)):(X=i1(R),X.c(),m(X,1),X.m(d,g)):X&&(fe(),v(X,1,1,()=>{X=null}),de()),R[33]?J?(J.p(R,ne),ne[1]&4&&m(J,1)):(J=n1(R),J.c(),m(J,1),J.m(d,_)):J&&(fe(),v(J,1,1,()=>{J=null}),de()),R[8]?B?(B.p(R,ne),ne[0]&256&&m(B,1)):(B=o1(R),B.c(),m(B,1),B.m(d,null)):B&&(fe(),v(B,1,1,()=>{B=null}),de()),(!y||ne[0]&536870920)&&N(d,"hidden",!R[3]||R[29]),R[96]&&!R[29]?A?(A.p(R,ne),ne[0]&536870912&&m(A,1)):(A=l1(R),A.c(),m(A,1),A.m(C.parentNode,C)):A&&(fe(),v(A,1,1,()=>{A=null}),de())},i(R){if(!y){m(w);for(let ne=0;ne<k.length;ne+=1)m(I[ne]);m(q),m(D),m(te),m(re),m(V),m(X),m(J),m(B),m(A),y=!0}},o(R){v(w),I=I.filter(Boolean);for(let ne=0;ne<I.length;ne+=1)v(I[ne]);v(q),v(D),v(te),v(re),v(V),v(X),v(J),v(B),v(A),y=!1},d(R){R&&(T(e),T(i),T(n),T(l),T(r),T(f),T(d),T(b),T(C)),w&&w.d(),An(I,R),q&&q.d(),D&&D.d(),te&&te.d(),re&&re.d(),V&&V.d(),X&&X.d(),J&&J.d(),B&&B.d(),A&&A.d(R)}}}function Qa(t){let e,i,n;function l(o){t[130](o)}let r={muted:t[54],expanded:t[51]&&!t[70]&&t[55],click:t[106]};return t[20].volume!==void 0&&(r.ref=t[20].volume),e=new vf({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&8388608&&(a.muted=o[54]),s[1]&17825792&&(a.expanded=o[51]&&!o[70]&&o[55]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].volume,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Xa(t){var n;let e,i;return e=new af({props:{iconUrl:t[169],ariaLabel:(n=t[170])!=null?n:t[173],testId:t[171],onClick:t[172]}}),{c(){K(e.$$.fragment)},m(l,r){j(e,l,r),i=!0},p(l,r){var s;const o={};r[1]&33554432&&(o.iconUrl=l[169]),r[1]&33554432&&(o.ariaLabel=(s=l[170])!=null?s:l[173]),r[1]&33554432&&(o.testId=l[171]),r[1]&33554432&&(o.onClick=l[172]),e.$set(o)},i(l){i||(m(e.$$.fragment,l),i=!0)},o(l){v(e.$$.fragment,l),i=!1},d(l){Z(e,l)}}}function Ja(t){let e,i,n;function l(o){t[131](o)}let r={isMobile:!0,click:t[104],state:t[28]};return t[20].chromecast!==void 0&&(r.ref=t[20].chromecast),e=new Jc({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&268435456&&(a.state=o[28]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].chromecast,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function xa(t){let e,i,n;function l(o){t[132](o)}let r={click:t[105],isPictureInPictureActive:t[26]};return t[20].pip!==void 0&&(r.ref=t[20].pip),e=new $g({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&67108864&&(a.isPictureInPictureActive=o[26]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].pip,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function $a(t){let e,i,n;function l(o){t[133](o)}let r={};return t[22]!==void 0&&(r.ref=t[22]),e=new Tr({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};!i&&s[0]&4194304&&(i=!0,a.ref=o[22],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function e1(t){let e,i,n;function l(o){t[134](o)}let r={click:t[64],targetUrl:t[7],logoClickable:t[6]};return t[20].vkLogo!==void 0&&(r.ref=t[20].vkLogo),e=new Xc({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&128&&(a.targetUrl=o[7]),s[0]&64&&(a.logoClickable=o[6]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].vkLogo,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function t1(t){let e,i,n;function l(o){t[135](o)}let r={click:t[13],type:"prev",disabled:!t[10],isMobile:!0};return t[20].prevButton!==void 0&&(r.ref=t[20].prevButton),e=new Sl({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&8192&&(a.click=o[13]),s[0]&1024&&(a.disabled=!o[10]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].prevButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function i1(t){let e,i,n;function l(o){t[136](o)}let r={disabled:t[49],click:t[63],isMobile:!0,isPlaying:t[31]};return t[20].playButton!==void 0&&(r.ref=t[20].playButton),e=new Er({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&262144&&(a.disabled=o[49]),s[1]&1&&(a.isPlaying=o[31]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].playButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function n1(t){let e,i,n;function l(o){t[137](o)}let r={disabled:t[48],click:t[107],isMobile:!0};return t[20].replayButton!==void 0&&(r.ref=t[20].replayButton),e=new Ir({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&131072&&(a.disabled=o[48]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].replayButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function o1(t){let e,i,n;function l(o){t[138](o)}let r={click:t[12],type:"next",disabled:!t[9],isMobile:!0};return t[20].nextButton!==void 0&&(r.ref=t[20].nextButton),e=new Sl({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&4096&&(a.click=o[12]),s[0]&512&&(a.disabled=!o[9]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].nextButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function l1(t){let e,i,n,l,r=t[100]&&tb(t),o=t[98]&&ib(t),s=t[99]&&nb(t);return{c(){r&&r.c(),e=H(),o&&o.c(),i=H(),s&&s.c(),n=bt()},m(a,c){r&&r.m(a,c),S(a,e,c),o&&o.m(a,c),S(a,i,c),s&&s.m(a,c),S(a,n,c),l=!0},p(a,c){a[100]&&r.p(a,c),a[98]&&o.p(a,c),a[99]&&s.p(a,c)},i(a){l||(m(r),m(o),m(s),l=!0)},o(a){v(r),v(o),v(s),l=!1},d(a){a&&(T(e),T(i),T(n)),r&&r.d(a),o&&o.d(a),s&&s.d(a)}}}function tb(t){let e,i,n,l,r,o;function s(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 sf({props:a}),Te.push(()=>je(i,"ref",s)),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","wrapper-middle-left v-1tcstu3"),N(e,"fullscreen",t[52]),N(e,"hidden",!t[3])},m(c,f){S(c,e,f),j(i,e,null),l=!0,r||(o=ve(e,"click",t[108]),r=!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),(!l||f[1]&2097152)&&N(e,"fullscreen",c[52]),(!l||f[0]&8)&&N(e,"hidden",!c[3])},i(c){l||(m(i.$$.fragment,c),l=!0)},o(c){v(i.$$.fragment,c),l=!1},d(c){c&&T(e),Z(i),r=!1,o()}}}function ib(t){let e,i,n,l;function r(s){t[140](s)}let o={hidden:!t[3]&&!t[58],disabled:t[50],click:t[17],graphIsOpened:t[58]};return t[20].interactiveGraphButton!==void 0&&(o.ref=t[20].interactiveGraphButton),i=new lf({props:o}),Te.push(()=>je(i,"ref",r)),{c(){e=P("div"),K(i.$$.fragment),u(e,"class",f0(t[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" v-1tcstu3"),N(e,"fullscreen",t[52]),N(e,"hidden",!t[3]&&!t[58])},m(s,a){S(s,e,a),j(i,e,null),l=!0},p(s,a){const c={};a[0]&8|a[1]&134217728&&(c.hidden=!s[3]&&!s[58]),a[1]&524288&&(c.disabled=s[50]),a[0]&131072&&(c.click=s[17]),a[1]&134217728&&(c.graphIsOpened=s[58]),!n&&a[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,qe(()=>n=!1)),i.$set(c),(!l||a[1]&2097152)&&N(e,"fullscreen",s[52]),(!l||a[0]&8|a[1]&134217728)&&N(e,"hidden",!s[3]&&!s[58])},i(s){l||(m(i.$$.fragment,s),l=!0)},o(s){v(i.$$.fragment,s),l=!1},d(s){s&&T(e),Z(i)}}}function nb(t){let e,i,n,l,r,o;function s(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 of({props:a}),Te.push(()=>je(i,"ref",s)),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","wrapper-middle-right v-1tcstu3"),N(e,"fullscreen",t[52]),N(e,"hidden",!t[3])},m(c,f){S(c,e,f),j(i,e,null),l=!0,r||(o=ve(e,"click",t[109]),r=!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),(!l||f[1]&2097152)&&N(e,"fullscreen",c[52]),(!l||f[0]&8)&&N(e,"hidden",!c[3])},i(c){l||(m(i.$$.fragment,c),l=!0)},o(c){v(i.$$.fragment,c),l=!1},d(c){c&&T(e),Z(i),r=!1,o()}}}function r1(t){let e,i,n,l,r,o=t[53]&&s1(t),s=t[32]&&a1(t);return l=new ef({props:{position:t[59],duration:t[60]}}),{c(){o&&o.c(),e=H(),s&&s.c(),i=H(),n=P("div"),K(l.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile v-1tcstu3"),N(n,"fullscreen",t[52])},m(a,c){o&&o.m(a,c),S(a,e,c),s&&s.m(a,c),S(a,i,c),S(a,n,c),j(l,n,null),r=!0},p(a,c){a[53]?o?(o.p(a,c),c[1]&4194304&&m(o,1)):(o=s1(a),o.c(),m(o,1),o.m(e.parentNode,e)):o&&(fe(),v(o,1,1,()=>{o=null}),de()),a[32]?s?(s.p(a,c),c[1]&2&&m(s,1)):(s=a1(a),s.c(),m(s,1),s.m(i.parentNode,i)):s&&(fe(),v(s,1,1,()=>{s=null}),de());const f={};c[1]&268435456&&(f.position=a[59]),c[1]&536870912&&(f.duration=a[60]),l.$set(f),(!r||c[1]&2097152)&&N(n,"fullscreen",a[52])},i(a){r||(m(o),m(s),m(l.$$.fragment,a),r=!0)},o(a){v(o),v(s),v(l.$$.fragment,a),r=!1},d(a){a&&(T(e),T(i),T(n)),o&&o.d(a),s&&s.d(a),Z(l)}}}function s1(t){let e,i,n,l;function r(s){t[142](s)}let o={muted:t[54],expanded:!1,click:t[106]};return t[20].volume!==void 0&&(o.ref=t[20].volume),i=new vf({props:o}),Te.push(()=>je(i,"ref",r)),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","wrapper-top-right v-1tcstu3"),N(e,"fullscreen",t[52])},m(s,a){S(s,e,a),j(i,e,null),l=!0},p(s,a){const c={};a[1]&8388608&&(c.muted=s[54]),!n&&a[0]&1048576&&(n=!0,c.ref=s[20].volume,qe(()=>n=!1)),i.$set(c),(!l||a[1]&2097152)&&N(e,"fullscreen",s[52])},i(s){l||(m(i.$$.fragment,s),l=!0)},o(s){v(i.$$.fragment,s),l=!1},d(s){s&&T(e),Z(i)}}}function a1(t){let e,i,n,l;function r(s){t[143](s)}let o={disabled:t[49],click:t[63],isMobile:!0,isPlaying:!t[32]};return t[20].playButton!==void 0&&(o.ref=t[20].playButton),i=new Er({props:o}),Te.push(()=>je(i,"ref",r)),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","wrapper-middle v-1tcstu3")},m(s,a){S(s,e,a),j(i,e,null),l=!0},p(s,a){const 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,qe(()=>n=!1)),i.$set(c)},i(s){l||(m(i.$$.fragment,s),l=!0)},o(s){v(i.$$.fragment,s),l=!1},d(s){s&&T(e),Z(i)}}}function ob(t){let e,i,n;function l(o){t[144](o)}let r={disabled:t[48],$$slots:{default:[lb]},$$scope:{ctx:t}};return t[20].replayButton!==void 0&&(r.ref=t[20].replayButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&131072&&(a.disabled=o[48]),s[1]&131072|s[5]&2097152&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].replayButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function lb(t){let e,i;return e=new Ir({props:{disabled:t[48],click:t[95]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function u1(t){let e,i,n;function l(o){t[145](o)}let r={$$slots:{default:[rb]},$$scope:{ctx:t}};return t[20].liveButton!==void 0&&(r.ref=t[20].liveButton),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&524288|s[1]&16384|s[5]&2097152&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].liveButton,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function rb(t){let e,i;return e=new xc({props:{isActiveLive:t[19],isMobile:!0,ariaLabel:t[45]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&524288&&(r.isActiveLive=n[19]),l[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function c1(t){let e,i,n;function l(o){t[146](o)}let r={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&&(r.ref=t[20].time),e=new Zc({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&16&&(a.showDuration=o[35]),s[0]&16|s[1]&1342177280&&(a.position=o[4]?o[59]:o[61]),s[0]&16|s[1]&536870912|s[2]&1&&(a.duration=o[4]?o[60]:o[62]),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].time,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function f1(t){let e,i,n,l;return n=new nf({props:{position:t[61],duration:t[62],timeCodes:t[84]}}),{c(){e=P("div"),e.textContent="\xB7",i=H(),K(n.$$.fragment),u(e,"aria-hidden","true")},m(r,o){S(r,e,o),S(r,i,o),j(n,r,o),l=!0},p(r,o){const s={};o[1]&1073741824&&(s.position=r[61]),o[2]&1&&(s.duration=r[62]),n.$set(s)},i(r){l||(m(n.$$.fragment,r),l=!0)},o(r){v(n.$$.fragment,r),l=!1},d(r){r&&(T(e),T(i)),Z(n,r)}}}function sb(t){let e,i,n=t[43]&&f1(t);return{c(){n&&n.c(),e=bt()},m(l,r){n&&n.m(l,r),S(l,e,r),i=!0},p(l,r){l[43]?n?(n.p(l,r),r[1]&4096&&m(n,1)):(n=f1(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(fe(),v(n,1,1,()=>{n=null}),de())},i(l){i||(m(n),i=!0)},o(l){v(n),i=!1},d(l){l&&T(e),n&&n.d(l)}}}function d1(t){let e,i,n;function l(o){t[149](o)}let r={$$slots:{default:[ab]},$$scope:{ctx:t}};return t[20].settings!==void 0&&(r.ref=t[20].settings),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&4194304|s[5]&2097152&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].settings,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function ab(t){let e,i,n;function l(o){t[148](o)}let r={};return t[22]!==void 0&&(r.ref=t[22]),e=new Tr({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};!i&&s[0]&4194304&&(i=!0,a.ref=o[22],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function m1(t){let e,i,n;function l(o){t[150](o)}let r={$$slots:{default:[ub]},$$scope:{ctx:t}};return t[20].fullscreen!==void 0&&(r.ref=t[20].fullscreen),e=new Ft({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&16384|s[1]&2097152|s[5]&2097152&&(a.$$scope={dirty:s,ctx:o}),!i&&s[0]&1048576&&(i=!0,a.ref=o[20].fullscreen,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function ub(t){let e,i;return e=new Yc({props:{click:t[14],isFullscreen:t[52]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&16384&&(r.click=n[14]),l[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function p1(t){let e,i,n,l;function r(s){t[153](s)}let o={supportLink:t[11],returnFocus:t[15]};return t[21]!==void 0&&(o.ref=t[21]),i=new jc({props:o}),Te.push(()=>je(i,"ref",r)),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","settings-mobile v-1tcstu3")},m(s,a){S(s,e,a),j(i,e,null),l=!0},p(s,a){const 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],qe(()=>n=!1)),i.$set(c)},i(s){l||(m(i.$$.fragment,s),l=!0)},o(s){v(i.$$.fragment,s),l=!1},d(s){s&&T(e),Z(i)}}}function cb(t){let e,i,n;function l(o){t[154](o)}let r={};return t[20].interactiveTimeIndicator!==void 0&&(r.ref=t[20].interactiveTimeIndicator),e=new hf({props:r}),Te.push(()=>je(e,"ref",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};!i&&s[0]&1048576&&(i=!0,a.ref=o[20].interactiveTimeIndicator,qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function fb(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k=!t[4]&&Ya(t),I=t[4]&&t[30]!==ti.INACTIVE&&r1(t),$=t[96]&&ob(t),q=!t[4]&&t[25]&&u1(t),D=t[41]&&c1(t);function te(A){t[147](A)}let re={className:"w-max",disabled:!t[43],$$slots:{default:[sb]},$$scope:{ctx:t}};t[20].episodes!==void 0&&(re.ref=t[20].episodes),c=new Ft({props:re}),Te.push(()=>je(c,"ref",te));let V=t[38]&&d1(t),X=t[40]&&m1(t);_=new tf({props:{isAds:t[4],canRewindLive:t[5],isRewindableLive:t[24]}});let J=t[23]&&p1(t),B=t[101]&&cb(t);return{c(){k&&k.c(),e=H(),I&&I.c(),i=H(),n=P("div"),l=P("div"),r=P("div"),$&&$.c(),o=H(),q&&q.c(),s=H(),D&&D.c(),a=H(),K(c.$$.fragment),d=H(),V&&V.c(),h=H(),X&&X.c(),g=H(),K(_.$$.fragment),b=H(),J&&J.c(),C=H(),B&&B.c(),y=bt(),u(r,"class","controls v-1tcstu3"),N(r,"mobile",!0),u(l,"class","controls-wrapper v-1tcstu3"),N(l,"fullscreen",t[52]),u(n,"class","wrapper-bottom v-1tcstu3"),N(n,"hidden",t[1]),N(n,"controls-hidden",!t[3]),N(n,"no-smooth",t[2]),N(n,"mobile",!0)},m(A,R){k&&k.m(A,R),S(A,e,R),I&&I.m(A,R),S(A,i,R),S(A,n,R),p(n,l),p(l,r),$&&$.m(r,null),p(r,o),q&&q.m(r,null),p(r,s),D&&D.m(r,null),p(r,a),j(c,r,null),p(r,d),V&&V.m(r,null),p(r,h),X&&X.m(r,null),t[151](r),p(l,g),j(_,l,null),t[152](n),S(A,b,R),J&&J.m(A,R),S(A,C,R),B&&B.m(A,R),S(A,y,R),w=!0},p(A,R){A[4]?k&&(fe(),v(k,1,1,()=>{k=null}),de()):k?(k.p(A,R),R[0]&16&&m(k,1)):(k=Ya(A),k.c(),m(k,1),k.m(e.parentNode,e)),A[4]&&A[30]!==ti.INACTIVE?I?(I.p(A,R),R[0]&1073741840&&m(I,1)):(I=r1(A),I.c(),m(I,1),I.m(i.parentNode,i)):I&&(fe(),v(I,1,1,()=>{I=null}),de()),A[96]&&$.p(A,R),!A[4]&&A[25]?q?(q.p(A,R),R[0]&33554448&&m(q,1)):(q=u1(A),q.c(),m(q,1),q.m(r,s)):q&&(fe(),v(q,1,1,()=>{q=null}),de()),A[41]?D?(D.p(A,R),R[1]&1024&&m(D,1)):(D=c1(A),D.c(),m(D,1),D.m(r,a)):D&&(fe(),v(D,1,1,()=>{D=null}),de());const ne={};R[1]&4096&&(ne.disabled=!A[43]),R[1]&1073745920|R[2]&1|R[5]&2097152&&(ne.$$scope={dirty:R,ctx:A}),!f&&R[0]&1048576&&(f=!0,ne.ref=A[20].episodes,qe(()=>f=!1)),c.$set(ne),A[38]?V?(V.p(A,R),R[1]&128&&m(V,1)):(V=d1(A),V.c(),m(V,1),V.m(r,h)):V&&(fe(),v(V,1,1,()=>{V=null}),de()),A[40]?X?(X.p(A,R),R[1]&512&&m(X,1)):(X=m1(A),X.c(),m(X,1),X.m(r,null)):X&&(fe(),v(X,1,1,()=>{X=null}),de());const L={};R[0]&16&&(L.isAds=A[4]),R[0]&32&&(L.canRewindLive=A[5]),R[0]&16777216&&(L.isRewindableLive=A[24]),_.$set(L),(!w||R[1]&2097152)&&N(l,"fullscreen",A[52]),(!w||R[0]&2)&&N(n,"hidden",A[1]),(!w||R[0]&8)&&N(n,"controls-hidden",!A[3]),(!w||R[0]&4)&&N(n,"no-smooth",A[2]),A[23]?J?(J.p(A,R),R[0]&8388608&&m(J,1)):(J=p1(A),J.c(),m(J,1),J.m(C.parentNode,C)):J&&(fe(),v(J,1,1,()=>{J=null}),de()),A[101]&&B.p(A,R)},i(A){w||(m(k),m(I),m($),m(q),m(D),m(c.$$.fragment,A),m(V),m(X),m(_.$$.fragment,A),m(J),m(B),w=!0)},o(A){v(k),v(I),v($),v(q),v(D),v(c.$$.fragment,A),v(V),v(X),v(_.$$.fragment,A),v(J),v(B),w=!1},d(A){A&&(T(e),T(i),T(n),T(b),T(C),T(y)),k&&k.d(A),I&&I.d(A),$&&$.d(),q&&q.d(),D&&D.d(),Z(c),V&&V.d(),X&&X.d(),t[151](null),Z(_),t[152](null),J&&J.d(A),B&&B.d(A)}}}function db(t,e,i){var Wn,cn;let n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V,X,J,B,A,R,ne,L,G,we,Pe,Ae,Be,Ue,{bottomHidden:me}=e,{bottomNoSmooth:F}=e,{showControls:ue}=e,{controlsElementRef:be=void 0}=e,{isAds:We=!1}=e,{canRewindLive:Qe}=e,{logoClickable:ce}=e,{logoHidden:Ee}=e,{logoTargetUrl:De=""}=e,{showNextPrevButtons:Ze}=e,{nextButtonActive:pe}=e,{prevButtonActive:M}=e,{isOneVideoPlaylist:Se=!1}=e,{supportLink:se}=e,{customFullscreenSupported:Ce=!0}=e,{playNextVideo:Ke}=e,{playPrevVideo:ot}=e,{repeatPlaylist:rt}=e,{toggleFullscreen:it}=e,{returnFocus:pt}=e,{seekToInteractive:st}=e,{toggleGraph:he}=e,{playPrevChapter:at}=e,{onDisabledPlayPrevChapterClick:It}=e,{onDisabledSeekToInteractiveClick:kt}=e;const Ve=Pt(),Vt=Bo(),ae=gn(),yt=Ve.actions.internal.toggleMuted,Et=Ve.actions.internal.togglePlay,ht=Ve.actions.internal.pause,Ge=(Wn=Ve.callbacks)==null?void 0:Wn.onAudioDoesNotExistHint,He=(cn=Ve.callbacks)==null?void 0:cn.onAudioDisabledHint,Ne=Ve.playerPhase;z(t,Ne,x=>i(126,D=x));const dt=Ve.state.duration$;z(t,dt,x=>i(62,Ue=x));const Jt=Ve.state.positionWithScrubbing$;z(t,Jt,x=>i(61,Be=x));const Ut=Ve.state.playbackState$;z(t,Ut,x=>i(121,h=x));const Fi=Ve.state.isAudioAvailable$;z(t,Fi,x=>i(51,g=x));const Xi=Ve.state.isAudioDisabled,ni=Ve.state.isEnded$;z(t,ni,x=>i(127,re=x));const fi=Ve.state.isLive$;z(t,fi,x=>i(25,w=x));const yi=Ve.state.muted$;z(t,yi,x=>i(54,R=x));const xt=Ve.state.isActiveLive$;z(t,xt,x=>i(124,C=x));const di=Ve.state.isRewindableLive$;z(t,di,x=>i(24,y=x));const Ji=Ve.ui.scrubbingInProgress;z(t,Ji,x=>i(29,te=x));const Ci=Ve.ui.mobileNotReportControlHidden$;z(t,Ci,x=>i(27,$=x));const Ni=Ve.ui.isPictureInPictureActive$;z(t,Ni,x=>i(26,I=x));const mi=Ve.ui.pictureInPictureType$;z(t,mi,x=>i(125,k=x));const pi=Ve.ui.mobileUnmuteButtonExpanded;z(t,pi,x=>i(55,ne=x));const hi=Ve.ui.mobileUnmuteButtonVisible;z(t,hi,x=>i(53,A=x));const Ti=Ve.ui.settingsMenuVisible;z(t,Ti,x=>i(23,d=x));const Si=Ve.ui.settingsMenuOpenedByKeyboard;z(t,Si,x=>i(120,f=x));const oi=Ve.ui.controls,Gt=Ve.actions.internal.getVideoEpisodes(),At=Ve.webApi.pictureInPictureApi,vi=Ve.state.chromecastState$;z(t,vi,x=>i(28,q=x));const Mt=Ve.state.crashed$;z(t,Mt,x=>i(57,G=x));const $t=oi.disabledControls$;z(t,$t,x=>i(128,X=x));const li=Ve.ui.startedByKeyboard$;z(t,li,x=>i(119,c=x));const gi=Ve.ads.duration;z(t,gi,x=>i(60,Ae=x));const mt=Ve.ads.position;z(t,mt,x=>i(59,Pe=x));const Nt=Ve.ads.playbackState;z(t,Nt,x=>i(30,V=x));const gt=Ve.ui.isFullscreen;z(t,gt,x=>i(52,B=x));const bi=Ve.ui.playerSize;z(t,bi,x=>i(123,b=x));const ri=Ve.ui.additionalButtons$;z(t,ri,x=>i(56,L=x));const rn=Ve.actions.internal.getVideoElement,xi=Ve.actions.internal.replayInteractive,Rt=Ve.state.isInteractive,si=Ve.state.isInteractiveTime$;z(t,si,x=>i(122,_=x));const Ui=Ve.state.showInteractiveGraph,Pi=Ve.state.showSeekToInteractive,ai=Ve.state.showPlayPrevChapter,Yt=Ve.state.showInteractiveTimeIndicator,qi=Ve.state.graphIsOpened$;z(t,qi,x=>i(58,we=x));const $i=Vt.seekToInteractiveDisabledTooltip$;z(t,$i,x=>i(129,J=x));let Qt,Ot,qt,ji,en,tn,Ri,Ei,jt,ui,Ii,Oi,Zi,_i,Ai,Di,Fe,Li,Dt;const Me={},Ki=ie.throttleFn(mf,Eu,{leading:!1}),Wi=()=>Ve.actions.internal.toggleChromecast();function zi(){zo({isAudioDisabled:Xi,audioDisabledHintCallback:He,isAudioAvailable:g,audioIsNotExistHintCallback:Ge})&&yt()}async function Gi(){At!=null&&At.isActive()?await(At==null?void 0:At.remove()):await(At==null?void 0:At.request())}function Hi(){!Xi&&g&&hi.set(!1),zi()}const dn=Se?Et:rt;let Yi="";const Zt=(x,eo)=>{if(!x){i(45,Yi=Q("tooltip_live"));return}eo===tt.PlaybackState.PAUSED&&i(45,Yi=Q("tooltip_play"))};let Qi,Bt;const le=()=>{a&&It(Qt)},nt=()=>{r&&kt(Ot)};function ci(x){t.$$.not_equal(Me.volume,x)&&(Me.volume=x,i(20,Me))}function Vi(x){t.$$.not_equal(Me.chromecast,x)&&(Me.chromecast=x,i(20,Me))}function Mi(x){t.$$.not_equal(Me.pip,x)&&(Me.pip=x,i(20,Me))}function Kt(x){Bt=x,i(22,Bt)}function bn(x){t.$$.not_equal(Me.vkLogo,x)&&(Me.vkLogo=x,i(20,Me))}function mn(x){t.$$.not_equal(Me.prevButton,x)&&(Me.prevButton=x,i(20,Me))}function Cn(x){t.$$.not_equal(Me.playButton,x)&&(Me.playButton=x,i(20,Me))}function Wt(x){t.$$.not_equal(Me.replayButton,x)&&(Me.replayButton=x,i(20,Me))}function sn(x){t.$$.not_equal(Me.nextButton,x)&&(Me.nextButton=x,i(20,Me))}function _n(x){t.$$.not_equal(Me.playPrevChapterButton,x)&&(Me.playPrevChapterButton=x,i(20,Me))}function pn(x){t.$$.not_equal(Me.interactiveGraphButton,x)&&(Me.interactiveGraphButton=x,i(20,Me))}function wn(x){t.$$.not_equal(Me.seekToInteractiveButton,x)&&(Me.seekToInteractiveButton=x,i(20,Me))}function Tn(x){t.$$.not_equal(Me.volume,x)&&(Me.volume=x,i(20,Me))}function an(x){t.$$.not_equal(Me.playButton,x)&&(Me.playButton=x,i(20,Me))}function kn(x){t.$$.not_equal(Me.replayButton,x)&&(Me.replayButton=x,i(20,Me))}function yn(x){t.$$.not_equal(Me.liveButton,x)&&(Me.liveButton=x,i(20,Me))}function ee(x){t.$$.not_equal(Me.time,x)&&(Me.time=x,i(20,Me))}function _t(x){t.$$.not_equal(Me.episodes,x)&&(Me.episodes=x,i(20,Me))}function hn(x){Bt=x,i(22,Bt)}function nn(x){t.$$.not_equal(Me.settings,x)&&(Me.settings=x,i(20,Me))}function vn(x){t.$$.not_equal(Me.fullscreen,x)&&(Me.fullscreen=x,i(20,Me))}function un(x){Te[x?"unshift":"push"](()=>{Li=x,i(44,Li)})}function Zn(x){Te[x?"unshift":"push"](()=>{be=x,i(0,be)})}function Kn(x){Qi=x,i(21,Qi)}function $n(x){t.$$.not_equal(Me.interactiveTimeIndicator,x)&&(Me.interactiveTimeIndicator=x,i(20,Me))}return t.$$set=x=>{"bottomHidden"in x&&i(1,me=x.bottomHidden),"bottomNoSmooth"in x&&i(2,F=x.bottomNoSmooth),"showControls"in x&&i(3,ue=x.showControls),"controlsElementRef"in x&&i(0,be=x.controlsElementRef),"isAds"in x&&i(4,We=x.isAds),"canRewindLive"in x&&i(5,Qe=x.canRewindLive),"logoClickable"in x&&i(6,ce=x.logoClickable),"logoHidden"in x&&i(110,Ee=x.logoHidden),"logoTargetUrl"in x&&i(7,De=x.logoTargetUrl),"showNextPrevButtons"in x&&i(8,Ze=x.showNextPrevButtons),"nextButtonActive"in x&&i(9,pe=x.nextButtonActive),"prevButtonActive"in x&&i(10,M=x.prevButtonActive),"isOneVideoPlaylist"in x&&i(111,Se=x.isOneVideoPlaylist),"supportLink"in x&&i(11,se=x.supportLink),"customFullscreenSupported"in x&&i(112,Ce=x.customFullscreenSupported),"playNextVideo"in x&&i(12,Ke=x.playNextVideo),"playPrevVideo"in x&&i(13,ot=x.playPrevVideo),"repeatPlaylist"in x&&i(113,rt=x.repeatPlaylist),"toggleFullscreen"in x&&i(14,it=x.toggleFullscreen),"returnFocus"in x&&i(15,pt=x.returnFocus),"seekToInteractive"in x&&i(16,st=x.seekToInteractive),"toggleGraph"in x&&i(17,he=x.toggleGraph),"playPrevChapter"in x&&i(18,at=x.playPrevChapter),"onDisabledPlayPrevChapterClick"in x&&i(114,It=x.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in x&&i(115,kt=x.onDisabledSeekToInteractiveClick)},t.$$.update=()=>{if(t.$$.dirty[4]&32&&(Ot=Q(J)),t.$$.dirty[4]&16&&i(118,n=X.has(vt.EPISODE_BUTTON)),t.$$.dirty[4]&16&&i(50,l=X.has(vt.GRAPH_BUTTON)),t.$$.dirty[4]&16&&i(46,r=X.has(vt.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[4]&16&&i(49,o=X.has(vt.PLAY_BUTTON)),t.$$.dirty[4]&16&&i(48,s=X.has(vt.REPLAY_BUTTON)),t.$$.dirty[4]&16&&i(47,a=X.has(vt.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[3]&268435456&&i(31,qt=h===tt.PlaybackState.PLAYING),t.$$.dirty[0]&1073741824&&i(32,ji=V===ti.PAUSED),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(33,en=re&&!We&&!Rt),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(34,tn=!re||We),t.$$.dirty[3]&1073741824&&i(116,Ri=b.width>300),t.$$.dirty[3]&1073741824&&i(35,Ei=b.width>400),t.$$.dirty[0]&536870912&&i(117,jt=te),t.$$.dirty[0]&469762048|t.$$.dirty[4]&2&&i(36,ui=q!==tt.ChromecastState.NOT_AVAILABLE&&!(I&&k===Dn.DocumentPictureInPicture)&&!$&&!Rt),t.$$.dirty[0]&402653184|t.$$.dirty[3]&16777216|t.$$.dirty[4]&6){const x=D===Oe.WaitingLive;i(37,Ii=!!At&&q!==tt.ChromecastState.CONNECTED&&!$&&(k===Dn.DocumentPictureInPicture&&x||!x)&&!jt&&!Rt)}t.$$.dirty[3]&16777216&&i(38,Oi=!jt),t.$$.dirty[3]&1073872896&&i(39,Zi=!Ee&&b.width>350),t.$$.dirty[0]&67108864|t.$$.dirty[3]&17301504|t.$$.dirty[4]&2&&i(40,_i=ae.features.fullscreen&&!(I&&k===Dn.DocumentPictureInPicture)&&(Rt?Ce:!0)&&!jt),t.$$.dirty[0]&33554448|t.$$.dirty[3]&1090519040&&i(41,Ai=(!w||We)&&b.width>260&&!jt&&!(ae.features.interactiveHideTime&&Rt)),t.$$.dirty[0]&8388616&&i(42,Di=d||ue),t.$$.dirty[0]&33554448|t.$$.dirty[3]&58720256&&i(43,Fe=!We&&!w&&!!(Gt!=null&&Gt.length)&&Ri&&!n&&!jt),t.$$.dirty[0]&16777216|t.$$.dirty[4]&1&&i(19,Dt=!y||C),t.$$.dirty[0]&1048584|t.$$.dirty[3]&1610612736&&Ki(rn(),oi,Me,ue),t.$$.dirty[0]&524288|t.$$.dirty[3]&268435456&&Zt(Dt,h),t.$$.dirty[0]&12582912&&yr(Bt,d,Si),t.$$.dirty[0]&10485760|t.$$.dirty[3]&134217728&&_l(Qi,d,f),t.$$.dirty[0]&1048576|t.$$.dirty[3]&67108864&&pf(li,c,Me.playButton)},Qt=Q(Ve.state.playPrevChapterDisabledTooltip),[be,me,F,ue,We,Qe,ce,De,Ze,pe,M,se,Ke,ot,it,pt,st,he,at,Dt,Me,Qi,Bt,d,y,w,I,$,q,te,V,qt,ji,en,tn,Ei,ui,Ii,Oi,Zi,_i,Ai,Di,Fe,Li,Yi,r,a,s,o,l,g,B,A,R,ne,L,G,we,Pe,Ae,Be,Ue,Et,ht,Ne,dt,Jt,Ut,Fi,Xi,ni,fi,yi,xt,di,Ji,Ci,Ni,mi,pi,hi,Ti,Si,Gt,vi,Mt,$t,li,gi,mt,Nt,gt,bi,ri,xi,Rt,si,Ui,Pi,ai,Yt,qi,$i,Wi,Gi,Hi,dn,le,nt,Ee,Se,Ce,rt,It,kt,Ri,jt,n,c,f,h,_,b,C,k,D,re,X,J,ci,Vi,Mi,Kt,bn,mn,Cn,Wt,sn,_n,pn,wn,Tn,an,kn,yn,ee,_t,hn,nn,vn,un,Zn,Kn,$n]}class mb extends ye{constructor(e){super(),ke(this,e,db,fb,_e,{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},eb,[-1,-1,-1,-1,-1,-1])}}function pb(t){let e,i,n;function l(o){t[28](o)}let r={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&&(r.controlsElementRef=t[0]),e=new Fg({props:r}),Te.push(()=>je(e,"controlsElementRef",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s&2&&(a.bottomHidden=o[1]),s&4&&(a.bottomNoSmooth=o[2]),s&8&&(a.showControls=o[3]),s&16&&(a.isAds=o[4]),s&32&&(a.canRewindLive=o[5]),s&64&&(a.logoClickable=o[6]),s&128&&(a.logoHidden=o[7]),s&256&&(a.logoTargetUrl=o[8]),s&512&&(a.showNextPrevButtons=o[9]),s&1024&&(a.nextButtonActive=o[10]),s&2048&&(a.prevButtonActive=o[11]),s&4096&&(a.isOneVideoPlaylist=o[12]),s&8192&&(a.supportLink=o[13]),s&16384&&(a.customFullscreenSupported=o[14]),s&32768&&(a.playNextVideo=o[15]),s&65536&&(a.playPrevVideo=o[16]),s&131072&&(a.repeatPlaylist=o[17]),s&262144&&(a.toggleFullscreen=o[18]),s&524288&&(a.returnFocus=o[19]),s&1048576&&(a.seekToInteractive=o[20]),s&2097152&&(a.toggleGraph=o[21]),s&4194304&&(a.playPrevChapter=o[22]),!i&&s&1&&(i=!0,a.controlsElementRef=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function hb(t){let e,i,n;function l(o){t[27](o)}let r={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&&(r.controlsElementRef=t[0]),e=new mb({props:r}),Te.push(()=>je(e,"controlsElementRef",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s&2&&(a.bottomHidden=o[1]),s&4&&(a.bottomNoSmooth=o[2]),s&8&&(a.showControls=o[3]),s&16&&(a.isAds=o[4]),s&32&&(a.canRewindLive=o[5]),s&64&&(a.logoClickable=o[6]),s&128&&(a.logoHidden=o[7]),s&256&&(a.logoTargetUrl=o[8]),s&512&&(a.showNextPrevButtons=o[9]),s&1024&&(a.nextButtonActive=o[10]),s&2048&&(a.prevButtonActive=o[11]),s&4096&&(a.isOneVideoPlaylist=o[12]),s&8192&&(a.supportLink=o[13]),s&16384&&(a.customFullscreenSupported=o[14]),s&32768&&(a.playNextVideo=o[15]),s&65536&&(a.playPrevVideo=o[16]),s&131072&&(a.repeatPlaylist=o[17]),s&262144&&(a.toggleFullscreen=o[18]),s&524288&&(a.returnFocus=o[19]),s&1048576&&(a.seekToInteractive=o[20]),s&2097152&&(a.toggleGraph=o[21]),s&4194304&&(a.playPrevChapter=o[22]),s&8388608&&(a.onDisabledPlayPrevChapterClick=o[23]),s&16777216&&(a.onDisabledSeekToInteractiveClick=o[24]),!i&&s&1&&(i=!0,a.controlsElementRef=o[0],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function vb(t){let e,i,n,l;const r=[hb,pb],o=[];function s(a,c){return a[25]?0:1}return e=s(t),i=o[e]=r[e](t),{c(){i.c(),n=bt()},m(a,c){o[e].m(a,c),S(a,n,c),l=!0},p(a,[c]){let f=e;e=s(a),e===f?o[e].p(a,c):(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),i=o[e],i?i.p(a,c):(i=o[e]=r[e](a),i.c()),m(i,1),i.m(n.parentNode,n))},i(a){l||(m(i),l=!0)},o(a){v(i),l=!1},d(a){a&&T(n),o[e].d(a)}}}function gb(t,e,i){let n,{bottomHidden:l}=e,{bottomNoSmooth:r=!1}=e,{showControls:o}=e,{controlsElementRef:s=void 0}=e,{isAds:a=!1}=e,{canRewindLive:c}=e,{logoClickable:f}=e,{logoHidden:d}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:g}=e,{nextButtonActive:_}=e,{prevButtonActive:b}=e,{isOneVideoPlaylist:C=!1}=e,{supportLink:y}=e,{customFullscreenSupported:w=!0}=e,{playNextVideo:k}=e,{playPrevVideo:I}=e,{repeatPlaylist:$}=e,{toggleFullscreen:q}=e,{returnFocus:D=ie.noop}=e,{seekToInteractive:te}=e,{toggleGraph:re}=e,{playPrevChapter:V}=e,{onDisabledPlayPrevChapterClick:X=ie.noop}=e,{onDisabledSeekToInteractiveClick:J=ie.noop}=e;const A=Pt().ui.isMobile;z(t,A,L=>i(25,n=L));function R(L){s=L,i(0,s)}function ne(L){s=L,i(0,s)}return t.$$set=L=>{"bottomHidden"in L&&i(1,l=L.bottomHidden),"bottomNoSmooth"in L&&i(2,r=L.bottomNoSmooth),"showControls"in L&&i(3,o=L.showControls),"controlsElementRef"in L&&i(0,s=L.controlsElementRef),"isAds"in L&&i(4,a=L.isAds),"canRewindLive"in L&&i(5,c=L.canRewindLive),"logoClickable"in L&&i(6,f=L.logoClickable),"logoHidden"in L&&i(7,d=L.logoHidden),"logoTargetUrl"in L&&i(8,h=L.logoTargetUrl),"showNextPrevButtons"in L&&i(9,g=L.showNextPrevButtons),"nextButtonActive"in L&&i(10,_=L.nextButtonActive),"prevButtonActive"in L&&i(11,b=L.prevButtonActive),"isOneVideoPlaylist"in L&&i(12,C=L.isOneVideoPlaylist),"supportLink"in L&&i(13,y=L.supportLink),"customFullscreenSupported"in L&&i(14,w=L.customFullscreenSupported),"playNextVideo"in L&&i(15,k=L.playNextVideo),"playPrevVideo"in L&&i(16,I=L.playPrevVideo),"repeatPlaylist"in L&&i(17,$=L.repeatPlaylist),"toggleFullscreen"in L&&i(18,q=L.toggleFullscreen),"returnFocus"in L&&i(19,D=L.returnFocus),"seekToInteractive"in L&&i(20,te=L.seekToInteractive),"toggleGraph"in L&&i(21,re=L.toggleGraph),"playPrevChapter"in L&&i(22,V=L.playPrevChapter),"onDisabledPlayPrevChapterClick"in L&&i(23,X=L.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in L&&i(24,J=L.onDisabledSeekToInteractiveClick)},[s,l,r,o,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V,X,J,n,A,R,ne]}class gf extends ye{constructor(e){super(),ke(this,e,gb,vb,_e,{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 bb(t){Ye(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function _b(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("defs"),o=O("filter"),s=O("feFlood"),a=O("feColorMatrix"),c=O("feOffset"),f=O("feGaussianBlur"),d=O("feColorMatrix"),h=O("feBlend"),g=O("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(l,"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(l,"stroke","#000"),u(l,"stroke-opacity",".12"),u(l,"stroke-width",".5"),u(i,"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(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(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_2260_100684"),u(g,"result","shape"),u(o,"id","a"),u(o,"x","2.5"),u(o,"y","0"),u(o,"width","43.996"),u(o,"height","49.5"),u(o,"filterUnits","userSpaceOnUse"),u(o,"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"),N(e,"reversed",t[0])},m(_,b){S(_,e,b),p(e,i),p(i,n),p(i,l),p(e,r),p(r,o),p(o,s),p(o,a),p(o,c),p(o,f),p(o,d),p(o,h),p(o,g)},p(_,[b]){b&1&&N(e,"reversed",_[0])},i:W,o:W,d(_){_&&T(e)}}}function wb(t,e,i){let{reversed:n=!1}=e;return t.$$set=l=>{"reversed"in l&&i(0,n=l.reversed)},[n]}class kb extends ye{constructor(e){super(),ke(this,e,wb,_b,_e,{reversed:0},bb)}}function yb(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("defs"),o=O("clipPath"),s=O("path"),a=O("filter"),c=O("feFlood"),f=O("feColorMatrix"),d=O("feOffset"),h=O("feGaussianBlur"),g=O("feColorMatrix"),_=O("feBlend"),b=O("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(l,"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(l,"stroke","#000"),u(l,"stroke-opacity",".12"),u(l,"stroke-width",".5"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(s,"fill","#fff"),u(s,"d","M0 0h48v48H0z"),u(o,"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(g,"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_104204"),u(b,"in","SourceGraphic"),u(b,"in2","effect1_dropShadow_2260_104204"),u(b,"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(C,y){S(C,e,y),p(e,i),p(i,n),p(i,l),p(e,r),p(r,o),p(o,s),p(r,a),p(a,c),p(a,f),p(a,d),p(a,h),p(a,g),p(a,_),p(a,b)},d(C){C&&T(e)}}}function Cb(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("path"),o=O("defs"),s=O("clipPath"),a=O("path"),c=O("filter"),f=O("feFlood"),d=O("feColorMatrix"),h=O("feOffset"),g=O("feGaussianBlur"),_=O("feColorMatrix"),b=O("feBlend"),C=O("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(l,"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(l,"fill","#fff"),u(r,"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(r,"stroke","#000"),u(r,"stroke-opacity",".12"),u(r,"stroke-width",".5"),u(i,"filter","url(#b)"),u(i,"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(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(g,"stdDeviation","2.5"),u(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2260_104293"),u(C,"in","SourceGraphic"),u(C,"in2","effect1_dropShadow_2260_104293"),u(C,"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(y,w){S(y,e,w),p(e,i),p(i,n),p(i,l),p(i,r),p(e,o),p(o,s),p(s,a),p(o,c),p(c,f),p(c,d),p(c,h),p(c,g),p(c,_),p(c,b),p(c,C)},d(y){y&&T(e)}}}function Tb(t){let e;function i(r,o){return r[0]?Cb:yb}let n=i(t),l=n(t);return{c(){l.c(),e=bt()},m(r,o){l.m(r,o),S(r,e,o)},p(r,[o]){n!==(n=i(r))&&(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},i:W,o:W,d(r){r&&T(e),l.d(r)}}}function Sb(t,e,i){let{isOff:n=!1}=e;return t.$$set=l=>{"isOff"in l&&i(0,n=l.isOff)},[n]}class bf extends ye{constructor(e){super(),ke(this,e,Sb,Tb,_e,{isOff:0})}}function Pb(t){Ye(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function Eb(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("defs"),o=O("filter"),s=O("feFlood"),a=O("feColorMatrix"),c=O("feOffset"),f=O("feGaussianBlur"),d=O("feColorMatrix"),h=O("feBlend"),g=O("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(l,"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(l,"stroke","#000"),u(l,"stroke-opacity",".12"),u(l,"stroke-width",".5"),u(i,"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(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(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_2260_106627"),u(g,"result","shape"),u(o,"id","a"),u(o,"x","3.402"),u(o,"y","10.105"),u(o,"width","40.098"),u(o,"height","27.785"),u(o,"filterUnits","userSpaceOnUse"),u(o,"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"),N(e,"reversed",t[0])},m(_,b){S(_,e,b),p(e,i),p(i,n),p(i,l),p(e,r),p(r,o),p(o,s),p(o,a),p(o,c),p(o,f),p(o,d),p(o,h),p(o,g)},p(_,[b]){b&1&&N(e,"reversed",_[0])},i:W,o:W,d(_){_&&T(e)}}}function Ib(t,e,i){let{reversed:n=!1}=e;return t.$$set=l=>{"reversed"in l&&i(0,n=l.reversed)},[n]}class Ab extends ye{constructor(e){super(),ke(this,e,Ib,Eb,_e,{reversed:0},Pb)}}function Lb(t){Ye(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function Vb(t){let e,i,n,l,r,o,s,a,c,f,d,h,g;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("path"),r=O("defs"),o=O("filter"),s=O("feFlood"),a=O("feColorMatrix"),c=O("feOffset"),f=O("feGaussianBlur"),d=O("feColorMatrix"),h=O("feBlend"),g=O("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(l,"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(l,"stroke","#000"),u(l,"stroke-opacity",".12"),u(l,"stroke-width",".5"),u(i,"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(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(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_2340_106922"),u(g,"result","shape"),u(o,"id","a"),u(o,"x","5.5"),u(o,"y","5.5"),u(o,"width","37"),u(o,"height","37"),u(o,"filterUnits","userSpaceOnUse"),u(o,"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"),N(e,"reversed",t[0])},m(_,b){S(_,e,b),p(e,i),p(i,n),p(i,l),p(e,r),p(r,o),p(o,s),p(o,a),p(o,c),p(o,f),p(o,d),p(o,h),p(o,g)},p(_,[b]){b&1&&N(e,"reversed",_[0])},i:W,o:W,d(_){_&&T(e)}}}function Mb(t,e,i){let{reversed:n=!1}=e;return t.$$set=l=>{"reversed"in l&&i(0,n=l.reversed)},[n]}class Bb extends ye{constructor(e){super(),ke(this,e,Mb,Vb,_e,{reversed:0},Lb)}}function Nb(t){Ye(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 h1(t){let e,i=[xe.BACKWARD_SEEK,xe.FORWARD_SEEK].includes(t[4]),n,l,r,o,s,a,c=[xe.RATE_DOWN,xe.RATE_UP].includes(t[4]),f,d=[xe.EPISODE_PREV,xe.EPISODE_NEXT].includes(t[4]),h,g,_,b,C,y=i&&v1(t),w=t[4]===xe.PAUSE&&g1(),k=t[4]===xe.PLAY&&b1(),I=t[4]===xe.REPLAY&&_1(),$=t[4]===xe.SUBTITLES_OFF&&w1(),q=t[4]===xe.SUBTITLES_ON&&k1(),D=c&&y1(t),te=d&&C1(t),re=t[4]===xe.MUTE&&T1(),V=t[4]===xe.VOLUME&&S1(),X=t[5]&&P1(t);return{c(){e=P("div"),y&&y.c(),n=H(),w&&w.c(),l=H(),k&&k.c(),r=H(),I&&I.c(),o=H(),$&&$.c(),s=H(),q&&q.c(),a=H(),D&&D.c(),f=H(),te&&te.c(),h=H(),re&&re.c(),g=H(),V&&V.c(),_=H(),X&&X.c(),b=bt(),u(e,"class","v-4ftgwp")},m(J,B){S(J,e,B),y&&y.m(e,null),p(e,n),w&&w.m(e,null),p(e,l),k&&k.m(e,null),p(e,r),I&&I.m(e,null),p(e,o),$&&$.m(e,null),p(e,s),q&&q.m(e,null),p(e,a),D&&D.m(e,null),p(e,f),te&&te.m(e,null),p(e,h),re&&re.m(e,null),p(e,g),V&&V.m(e,null),S(J,_,B),X&&X.m(J,B),S(J,b,B),C=!0},p(J,B){B&16&&(i=[xe.BACKWARD_SEEK,xe.FORWARD_SEEK].includes(J[4])),i?y?(y.p(J,B),B&16&&m(y,1)):(y=v1(J),y.c(),m(y,1),y.m(e,n)):y&&(fe(),v(y,1,1,()=>{y=null}),de()),J[4]===xe.PAUSE?w?B&16&&m(w,1):(w=g1(),w.c(),m(w,1),w.m(e,l)):w&&(fe(),v(w,1,1,()=>{w=null}),de()),J[4]===xe.PLAY?k?B&16&&m(k,1):(k=b1(),k.c(),m(k,1),k.m(e,r)):k&&(fe(),v(k,1,1,()=>{k=null}),de()),J[4]===xe.REPLAY?I?B&16&&m(I,1):(I=_1(),I.c(),m(I,1),I.m(e,o)):I&&(fe(),v(I,1,1,()=>{I=null}),de()),J[4]===xe.SUBTITLES_OFF?$?B&16&&m($,1):($=w1(),$.c(),m($,1),$.m(e,s)):$&&(fe(),v($,1,1,()=>{$=null}),de()),J[4]===xe.SUBTITLES_ON?q?B&16&&m(q,1):(q=k1(),q.c(),m(q,1),q.m(e,a)):q&&(fe(),v(q,1,1,()=>{q=null}),de()),B&16&&(c=[xe.RATE_DOWN,xe.RATE_UP].includes(J[4])),c?D?(D.p(J,B),B&16&&m(D,1)):(D=y1(J),D.c(),m(D,1),D.m(e,f)):D&&(fe(),v(D,1,1,()=>{D=null}),de()),B&16&&(d=[xe.EPISODE_PREV,xe.EPISODE_NEXT].includes(J[4])),d?te?(te.p(J,B),B&16&&m(te,1)):(te=C1(J),te.c(),m(te,1),te.m(e,h)):te&&(fe(),v(te,1,1,()=>{te=null}),de()),J[4]===xe.MUTE?re?B&16&&m(re,1):(re=T1(),re.c(),m(re,1),re.m(e,g)):re&&(fe(),v(re,1,1,()=>{re=null}),de()),J[4]===xe.VOLUME?V?B&16&&m(V,1):(V=S1(),V.c(),m(V,1),V.m(e,null)):V&&(fe(),v(V,1,1,()=>{V=null}),de()),J[5]?X?X.p(J,B):(X=P1(J),X.c(),X.m(b.parentNode,b)):X&&(X.d(1),X=null)},i(J){C||(m(y),m(w),m(k),m(I),m($),m(q),m(D),m(te),m(re),m(V),C=!0)},o(J){v(y),v(w),v(k),v(I),v($),v(q),v(D),v(te),v(re),v(V),C=!1},d(J){J&&(T(e),T(_),T(b)),y&&y.d(),w&&w.d(),k&&k.d(),I&&I.d(),$&&$.d(),q&&q.d(),D&&D.d(),te&&te.d(),re&&re.d(),V&&V.d(),X&&X.d(J)}}}function v1(t){let e,i;return e=new kb({props:{reversed:t[4]===xe.FORWARD_SEEK}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&16&&(r.reversed=n[4]===xe.FORWARD_SEEK),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function g1(t){let e,i;return e=new Qc({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function b1(t){let e,i;return e=new Pr({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function _1(t){let e,i;return e=new rf({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function w1(t){let e,i;return e=new bf({props:{isOff:!0}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function k1(t){let e,i;return e=new bf({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function y1(t){let e,i;return e=new Ab({props:{reversed:t[4]===xe.RATE_UP}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&16&&(r.reversed=n[4]===xe.RATE_UP),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function C1(t){let e,i;return e=new Bb({props:{reversed:t[4]===xe.EPISODE_NEXT}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&16&&(r.reversed=n[4]===xe.EPISODE_NEXT),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function T1(t){let e,i;return e=new Tl({props:{volume:0}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function S1(t){let e,i;return e=new Tl({props:{volume:1}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function P1(t){let e,i;return{c(){e=P("span"),i=ze(t[5]),u(e,"class","hot-key-helpers-text v-4ftgwp")},m(n,l){S(n,e,l),p(e,i)},p(n,l){l&32&&et(i,n[5])},d(n){n&&T(e)}}}function Rb(t){let e,i,n=!t[1]&&t[4]&&h1(t);return{c(){e=P("div"),n&&n.c(),u(e,"class","hot-key-helpers-container v-4ftgwp"),N(e,"hidden",t[1]),N(e,"hot-key-helpers-container--left",t[2]),N(e,"hot-key-helpers-container--right",t[3])},m(l,r){S(l,e,r),n&&n.m(e,null),i=!0},p(l,[r]){!l[1]&&l[4]?n?(n.p(l,r),r&18&&m(n,1)):(n=h1(l),n.c(),m(n,1),n.m(e,null)):n&&(fe(),v(n,1,1,()=>{n=null}),de()),(!i||r&2)&&N(e,"hidden",l[1]),(!i||r&4)&&N(e,"hot-key-helpers-container--left",l[2]),(!i||r&8)&&N(e,"hot-key-helpers-container--right",l[3])},i(l){i||(m(n),i=!0)},o(l){v(n),i=!1},d(l){l&&T(e),n&&n.d()}}}function Ob(t,e,i){let n,l=W,r=()=>(l(),l=ei(o,h=>i(6,n=h)),o);t.$$.on_destroy.push(()=>l());let{data:o}=e;r();let s,a,c,f,d;return t.$$set=h=>{"data"in h&&r(i(0,o=h.data))},t.$$.update=()=>{t.$$.dirty&64&&(i(1,s=!n),i(2,a=(n==null?void 0:n.type)===xe.BACKWARD_SEEK),i(3,c=(n==null?void 0:n.type)===xe.FORWARD_SEEK),i(4,f=n==null?void 0:n.type),n!=null&&n.t?i(5,d=Q(n.t.key,{value:n.t.value||""})):i(5,d=n==null?void 0:n.text))},[o,s,a,c,f,d,n]}class Db extends ye{constructor(e){super(),ke(this,e,Ob,Rb,_e,{data:0},Nb)}}function zb(t){Ye(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 Hb(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w;return r=new Qn({props:{direction:"up"}}),a=new Qn({props:{direction:"up"}}),h=new Qn({props:{direction:"up"}}),b=new Qn({props:{direction:"up"}}),{c(){e=P("div"),i=P("div"),n=P("div"),l=P("div"),K(r.$$.fragment),o=H(),s=P("div"),K(a.$$.fragment),c=H(),f=P("div"),d=P("div"),K(h.$$.fragment),g=H(),_=P("div"),K(b.$$.fragment),u(l,"class","button button-up v-1yzc86r"),u(s,"class","button button-right v-1yzc86r"),u(n,"class","button-row v-1yzc86r"),u(d,"class","button button-left v-1yzc86r"),u(_,"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",Q("aria_label_spherical_control")),N(e,"m-shifted",t[0])},m(k,I){S(k,e,I),p(e,i),p(i,n),p(n,l),j(r,l,null),p(n,o),p(n,s),j(a,s,null),p(i,c),p(i,f),p(f,d),j(h,d,null),p(f,g),p(f,_),j(b,_,null),C=!0,y||(w=[ve(l,"mousedown",t[1]),ve(l,"mouseup",t[5]),ve(l,"mouseleave",t[5]),ve(s,"mousedown",t[3]),ve(s,"mouseup",t[5]),ve(s,"mouseleave",t[5]),ve(d,"mousedown",t[4]),ve(d,"mouseup",t[5]),ve(d,"mouseleave",t[5]),ve(_,"mousedown",t[2]),ve(_,"mouseup",t[5]),ve(_,"mouseleave",t[5]),ve(e,"keydown",t[6]),ve(e,"keyup",t[7])],y=!0)},p(k,[I]){(!C||I&1)&&N(e,"m-shifted",k[0])},i(k){C||(m(r.$$.fragment,k),m(a.$$.fragment,k),m(h.$$.fragment,k),m(b.$$.fragment,k),C=!0)},o(k){v(r.$$.fragment,k),v(a.$$.fragment,k),v(h.$$.fragment,k),v(b.$$.fragment,k),C=!1},d(k){k&&T(e),Z(r),Z(a),Z(h),Z(b),y=!1,ut(w)}}}function Fb(t,e,i){let{isShifted:n=!1}=e;const l=Pt(),r=new Set([Ie.ArrowUp,Ie.ArrowDown,Ie.ArrowLeft,Ie.ArrowRight]),o=()=>{l.actions.internal.startCameraManualRotation(0,1)},s=()=>{l.actions.internal.startCameraManualRotation(0,-1)},a=()=>{l.actions.internal.startCameraManualRotation(1,0)},c=()=>{l.actions.internal.startCameraManualRotation(-1,0)},f=()=>(l.actions.internal.stopCameraManualRotation(),null),d=g=>{if(r.has(g.code))switch(g.preventDefault(),g.stopPropagation(),g.code){case Ie.ArrowUp:o();break;case Ie.ArrowDown:s();break;case Ie.ArrowLeft:c();break;case Ie.ArrowRight:a();break}},h=g=>{r.has(g.code)&&(g.preventDefault(),g.stopPropagation(),f())};return t.$$set=g=>{"isShifted"in g&&i(0,n=g.isShifted)},[n,o,s,a,c,f,d,h]}class _f extends ye{constructor(e){super(),ke(this,e,Fb,Hb,_e,{isShifted:0},zb)}}function Ub(t){Ye(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 E1(t,e,i){const n=t.slice();return n[16]=e[i].value,n}function I1(t,e,i){const n=t.slice();return n[16]=e[i].value,n[17]=e[i].timeAppeared,n}function A1(t){let e,i;function n(o,s){return o[7]&&o[8]?Zb:o[5]?jb:qb}let l=n(t),r=l(t);return{c(){e=P("div"),i=P("span"),r.c(),u(i,"class","caption v-ovfyp5"),u(e,"class","subtitles-caption v-ovfyp5"),N(e,"mobile",t[3])},m(o,s){S(o,e,s),p(e,i),r.m(i,null)},p(o,s){l===(l=n(o))&&r?r.p(o,s):(r.d(1),r=l(o),r&&(r.c(),r.m(i,null))),s&8&&N(e,"mobile",o[3])},d(o){o&&T(e),r.d()}}}function qb(t){let e,i=Xt(t[1]),n=[];for(let l=0;l<i.length;l+=1)n[l]=L1(E1(t,i,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=bt()},m(l,r){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(l,r);S(l,e,r)},p(l,r){if(r&18){i=Xt(l[1]);let o;for(o=0;o<i.length;o+=1){const s=E1(l,i,o);n[o]?n[o].p(s,r):(n[o]=L1(s),n[o].c(),n[o].m(e.parentNode,e))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(l){l&&T(e),An(n,l)}}}function jb(t){let e,i,n=Xt(t[6]),l=[];for(let r=0;r<n.length;r+=1)l[r]=M1(I1(t,n,r));return{c(){e=P("span"),i=P("span");for(let r=0;r<l.length;r+=1)l[r].c();u(i,"class","caption-segment v-ovfyp5"),Ht(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(r,o){S(r,e,o),p(e,i);for(let s=0;s<l.length;s+=1)l[s]&&l[s].m(i,null)},p(r,o){if(o&68){n=Xt(r[6]);let s;for(s=0;s<n.length;s+=1){const a=I1(r,n,s);l[s]?l[s].p(a,o):(l[s]=M1(a),l[s].c(),l[s].m(i,null))}for(;s<l.length;s+=1)l[s].d(1);l.length=n.length}o&16&&Ht(i,"font-size",r[4]+"px")},d(r){r&&T(e),An(l,r)}}}function Zb(t){let e,i,n=Q("subtitles_auto_caption")+"",l;return{c(){e=P("span"),i=P("span"),l=ze(n),u(i,"class","caption-segment v-ovfyp5"),Ht(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(r,o){S(r,e,o),p(e,i),p(i,l)},p(r,o){o&16&&Ht(i,"font-size",r[4]+"px")},d(r){r&&T(e)}}}function L1(t){let e,i,n=t[16]+"",l,r;return{c(){e=P("span"),i=P("span"),l=ze(n),r=H(),u(i,"class","caption-segment v-ovfyp5"),Ht(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(o,s){S(o,e,s),p(e,i),p(i,l),p(e,r)},p(o,s){s&2&&n!==(n=o[16]+"")&&et(l,n),s&16&&Ht(i,"font-size",o[4]+"px")},d(o){o&&T(e)}}}function V1(t){let e=t[16]+"",i;return{c(){i=ze(e)},m(n,l){S(n,i,l)},p(n,l){l&64&&e!==(e=n[16]+"")&&et(i,e)},d(n){n&&T(i)}}}function M1(t){let e,i=(!t[17]||t[17]<=t[2])&&V1(t);return{c(){i&&i.c(),e=bt()},m(n,l){i&&i.m(n,l),S(n,e,l)},p(n,l){!n[17]||n[17]<=n[2]?i?i.p(n,l):(i=V1(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(n){n&&T(e),i&&i.d(n)}}}function Kb(t){let e,i=t[1].length>0&&A1(t);return{c(){e=P("div"),i&&i.c(),u(e,"class","subtitles-container v-ovfyp5"),N(e,"shifted",t[0]),N(e,"auto",t[5]&&!t[8])},m(n,l){S(n,e,l),i&&i.m(e,null)},p(n,[l]){n[1].length>0?i?i.p(n,l):(i=A1(n),i.c(),i.m(e,null)):i&&(i.d(1),i=null),l&1&&N(e,"shifted",n[0]),l&288&&N(e,"auto",n[5]&&!n[8])},i:W,o:W,d(n){n&&T(e),i&&i.d()}}}function Wb(t,e,i){let n,l,{shifted:r}=e,{captions:o}=e,{position:s}=e,{playerSize:a}=e,{isMobile:c=!1}=e;const f=Pt(),d=gn(),h=f.state.currentSubtitle$;z(t,h,k=>i(12,n=k));const g=f.state.isAutoSubtitleCaptionVisible$;z(t,g,k=>i(8,l=k));let _,b,C,y,w;return fn(()=>{w=window.setTimeout(()=>{g.set(!1)},d.autoSubtitlesTimeout)}),qo(()=>{window.clearTimeout(w)}),t.$$set=k=>{"shifted"in k&&i(0,r=k.shifted),"captions"in k&&i(1,o=k.captions),"position"in k&&i(2,s=k.position),"playerSize"in k&&i(11,a=k.playerSize),"isMobile"in k&&i(3,c=k.isMobile)},t.$$.update=()=>{if(t.$$.dirty&2048){const k=a.width*.02;i(4,_=k<=d.minSubtitlesFontSize?d.minSubtitlesFontSize:k)}t.$$.dirty&2&&i(5,b=o.some(k=>k.type==="timestamp")),t.$$.dirty&2&&i(6,C=o.reduce((k,{type:I,value:$})=>(I==="timestamp"?k.push({timeAppeared:Number($),value:""}):k.length===0?k.push({value:String($)}):k[k.length-1].value=String($),k),[])),t.$$.dirty&4096&&i(7,y=!!n.isAuto)},[r,o,s,c,_,b,C,y,l,h,g,a,n]}class wf extends ye{constructor(e){super(),ke(this,e,Wb,Kb,_e,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},Ub)}}function Gb(t){Ye(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 B1(t){let e,i,n;return{c(){e=P("div"),i=ze("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=ze(t[1]),u(e,"class","text v-1o62kpz")},m(l,r){S(l,e,r),p(e,i),p(e,n)},p(l,r){r&2&&et(n,l[1])},d(l){l&&T(e)}}}function Yb(t){let e,i,n,l,r,o,s=t[1]&&B1(t);return{c(){e=P("div"),i=P("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=H(),s&&s.c(),u(i,"class","icon_wrapper v-1o62kpz"),u(e,"class","wrapper v-1o62kpz"),u(e,"style",l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(a,c){S(a,e,c),p(e,i),p(e,n),s&&s.m(e,null),r||(o=ve(e,"click",t[2]),r=!0)},p(a,[c]){a[1]?s?s.p(a,c):(s=B1(a),s.c(),s.m(e,null)):s&&(s.d(1),s=null),c&1&&l!==(l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${a[0]||""}')`)&&u(e,"style",l)},i:W,o:W,d(a){a&&T(e),s&&s.d(),r=!1,o()}}}function Qb(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function r(o){so.call(this,t,o)}return t.$$set=o=>{"thumbUrl"in o&&i(0,n=o.thumbUrl),"chromecastDeviceName"in o&&i(1,l=o.chromecastDeviceName)},[n,l,r]}class kf extends ye{constructor(e){super(),ke(this,e,Qb,Yb,_e,{thumbUrl:0,chromecastDeviceName:1},Gb)}}function Xb(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Jb extends ye{constructor(e){super(),ke(this,e,null,Xb,_e,{})}}function xb(t){Ye(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 $b(t){let e,i,n;return i=new Jb({}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","container v-13zpvm8")},m(l,r){S(l,e,r),j(i,e,null),n=!0},p:W,i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}class yf extends ye{constructor(e){super(),ke(this,e,null,$b,_e,{},xb)}}function e_(t){Ye(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 t_(t){let e,i,n,l,r,o,s,a,c;return r=new Pr({}),{c(){e=P("div"),i=P("div"),n=P("div"),l=H(),K(r.$$.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",Q("tooltip_play")),u(e,"class","container v-17wno3"),u(e,"style",o=`background-color: #222; background-image: url('${t[0]||""}')`),N(e,"hidden",t[1])},m(f,d){S(f,e,d),p(e,i),p(i,n),p(i,l),j(r,i,null),s=!0,a||(c=[ve(i,"keydown",t[3]),ve(e,"click",ct(function(){In(t[2])&&t[2].apply(this,arguments)}))],a=!0)},p(f,[d]){t=f,(!s||d&1&&o!==(o=`background-color: #222; background-image: url('${t[0]||""}')`))&&u(e,"style",o),(!s||d&2)&&N(e,"hidden",t[1])},i(f){s||(m(r.$$.fragment,f),s=!0)},o(f){v(r.$$.fragment,f),s=!1},d(f){f&&T(e),Z(r),a=!1,ut(c)}}}function i_(t,e,i){let{thumbUrl:n}=e,{hidden:l}=e,{startVideo:r}=e;const s=Pt().ui.startedByKeyboard$,a=c=>{const f=c.code;[Ie.Enter,Ie.Space].includes(f)&&(c.stopPropagation(),c.preventDefault(),s.set(!0),r())};return t.$$set=c=>{"thumbUrl"in c&&i(0,n=c.thumbUrl),"hidden"in c&&i(1,l=c.hidden),"startVideo"in c&&i(2,r=c.startVideo)},[n,l,r,a]}class Cf extends ye{constructor(e){super(),ke(this,e,i_,t_,_e,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},e_)}get handlePressKey(){return this.$$.ctx[3]}}function n_(t){Ye(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 _f(i){let e;return{c(){e=T("div"),u(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){y(t,e,n)},d(t){t&&v(e)}}}function bf(i){let e,t;return e=new pf({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 s={};o&32&&(s.position=n[5]),o&64&&(s.secondsToWatchBeforeSkip=n[6]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function gf(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 vf(i){let e,t;return e=new hf({}),{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 V2(i){let e,t,n,o,s,r,l,a=i[0]&&_f(i),c=i[3]&&bf(i),f=i[7]&&gf(i),p=i[4]&&vf(i);return{c(){e=T("div"),a&&a.c(),t=N(),n=T("video"),o=N(),c&&c.c(),s=N(),f&&f.c(),r=N(),p&&p.c(),Tt(n,"width","100%"),Tt(n,"height","100%"),n.playsInline=!0,u(e,"class","container svelte-354ajf")},m(_,g){y(_,e,g),a&&a.m(e,null),d(e,t),d(e,n),i[19](n),d(e,o),c&&c.m(e,null),d(e,s),f&&f.m(e,null),d(e,r),p&&p.m(e,null),i[20](e),l=!0},p(_,[g]){_[0]?a||(a=_f(_),a.c(),a.m(e,t)):a&&(a.d(1),a=null),_[3]?c?(c.p(_,g),g&8&&m(c,1)):(c=bf(_),c.c(),m(c,1),c.m(e,s)):c&&(ce(),h(c,1,1,()=>{c=null}),fe()),_[7]?f?g&128&&m(f,1):(f=gf(_),f.c(),m(f,1),f.m(e,r)):f&&(ce(),h(f,1,1,()=>{f=null}),fe()),_[4]?p?g&16&&m(p,1):(p=vf(_),p.c(),m(p,1),p.m(e,null)):p&&(ce(),h(p,1,1,()=>{p=null}),fe())},i(_){l||(m(c),m(f),m(p),l=!0)},o(_){h(c),h(f),h(p),l=!1},d(_){_&&v(e),a&&a.d(),i[19](null),c&&c.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function L2(i,e,t){let n,o,s,r,l,{adsSlotId:a=void 0}=e,{adsParams:c=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,_=je(),g=_.state.isEnded$;D(i,g,P=>t(7,l=P));let b=_.ui.isMobile;D(i,b,P=>t(0,o=P));let w,S,I=!1,k=_.ads.playbackState;D(i,k,P=>t(18,n=P));let C=_.ads.canSkip,E=_.ads.position;D(i,E,P=>t(5,s=P));let U=_.ads.secondsToWatchBeforeSkip;D(i,U,P=>t(6,r=P));let $,q;Pt(()=>{let P=new AbortController,ne=()=>{P.abort()},J=_.getAdmanWrapper();if(!a){J.onAdmanLoadingError();return}let{width:K,height:Q}=Ze(_.ui.playerSize),M=Ze(_.ui.isFullscreen),Z=Ze(_.ui.isAutoplay),B={width:K,height:Q,isFullscreen:M,isAutoplay:Z,adsContainer:w,adsVideoElement:S,slotId:a,params:c,previewParam:f,duration:p};return window.AdmanHTML?(J.initAdman(B),I=!0):J.loadAdman(P.signal).then(()=>{J.initAdman(B),I=!0}).catch(()=>{J.onAdmanLoadingError()}),()=>{!I&&ne()}});function le(P){me[P?"unshift":"push"](()=>{S=P,t(2,S)})}function oe(P){me[P?"unshift":"push"](()=>{w=P,t(1,w)})}return i.$$set=P=>{"adsSlotId"in P&&t(14,a=P.adsSlotId),"adsParams"in P&&t(15,c=P.adsParams),"adsPreviewParam"in P&&t(16,f=P.adsPreviewParam),"duration"in P&&t(17,p=P.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,$=C&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,q=o&&n!=="inactive")},[o,w,S,$,q,s,r,l,_,g,b,k,E,U,a,c,f,p,n,le,oe]}var Ds=class extends j{constructor(e){super(),X(this,e,L2,V2,G,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},M2)}},sl=Ds;var Sn=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(s=>s>9?String(s):`0${s}`).join(":")};function A2(i){let e,t,n;return{c(){e=V("svg"),t=V("path"),n=V("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,s){y(o,e,s),d(e,t),d(e,n)},d(o){o&&v(e)}}}function B2(i){let e,t,n;return{c(){e=V("svg"),t=V("rect"),n=V("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,s){y(o,e,s),d(e,t),d(e,n)},d(o){o&&v(e)}}}function R2(i){let e;function t(s,r){return s[0]?B2:A2}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(s,r){o.m(s,r),y(s,e,r)},p(s,[r]){n!==(n=t(s,r))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:R,o:R,d(s){s&&v(e),o.d(s)}}}function N2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Os=class extends j{constructor(e){super(),X(this,e,N2,R2,G,{isActive:0})}},al=Os;function D2(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 O2(i){let e=Sn(i[4]-i[3])+"",t;return{c(){t=Ie(e)},m(n,o){y(n,t,o)},p(n,o){o&24&&e!==(e=Sn(n[4]-n[3])+"")&&ze(t,e)},i:R,o:R,d(n){n&&v(t)}}}function F2(i){let e,t,n;return t=new al({props:{isActive:!0}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,s){y(o,e,s),O(t,e,null),n=!0},p:R,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&v(e),F(t)}}}function H2(i){let e,t,n,o,s,r,l,a=[F2,O2],c=[];function f(p,_){return p[1]?0:1}return s=f(i,-1),r=c[s]=a[s](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"),L(e,"live",i[1]),L(e,"hidden",i[0]),L(e,"playing",i[2])},m(p,_){y(p,e,_),d(e,t),d(e,n),d(e,o),c[s].m(o,null),l=!0},p(p,[_]){let g=s;s=f(p,_),s===g?c[s].p(p,_):(ce(),h(c[g],1,1,()=>{c[g]=null}),fe(),r=c[s],r?r.p(p,_):(r=c[s]=a[s](p),r.c()),m(r,1),r.m(o,null)),(!l||_&2)&&L(e,"live",p[1]),(!l||_&1)&&L(e,"hidden",p[0]),(!l||_&4)&&L(e,"playing",p[2])},i(p){l||(m(r),l=!0)},o(p){h(r),l=!1},d(p){p&&v(e),c[s].d()}}}function z2(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:s=!1}=e,{position:r}=e,{duration:l}=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,s=a.isPlaying),"position"in a&&t(3,r=a.position),"duration"in a&&t(4,l=a.duration)},[n,o,s,r,l]}var Fs=class extends j{constructor(e){super(),X(this,e,z2,H2,G,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},D2)}},ul=Fs;var kr=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 Hs=require("@vkontakte/videoplayer-core");var Ao=i=>{i.stopPropagation(),i.preventDefault()},q2=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},K2=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},W2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Z2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},yf=i=>i.code==="Escape",G2=i=>i.code==="ArrowLeft",wf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},kf=i=>{if(W2(i)){Ao(i),K2(i.target);return}Z2(i)&&(Ao(i),q2(i.target))},$o=i=>(i==null?void 0:i.detail)===0,er=async(i,e,t)=>{await Vn(),i&&!i.classList.contains("opened")&&!e&&Ze(t)&&(await Vn(),t.set(!1),i.focus())},Cf=async(i,e,t)=>{await Vn(),i&&!e&&Ze(t)&&(t.set(!1),i.focus())},Bo=async(i,e,t)=>{await Vn(),!!i&&e&&t&&(await Vn(),i.firstChild.focus())},Cr=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},cl=(i,e)=>{kf(i),yf(i)&&(Ao(i),e())},Sr=async(i,e,t)=>{if(wf(i,!1)){Ao(i),e(),await Vn();let n=t();n==null||n.focus()}},Tr=async(i,e,t,n)=>{if(kf(i),G2(i)){Ao(i),e(),t.set(!0);return}yf(i)&&(Ao(i),n())},xi=(i,e)=>{wf(i)&&(Ao(i),e())},Sf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Tf=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 Pr=require("@vkontakte/videoplayer-shared");function j2(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 Pf(i){var ne;let e,t,n,o,s,r,l,a,c,f=(i[10].features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug"))+"",p,_,g,b,w=z("menu_debug_overlay")+"",S,I,k,C,E=i[10].features.copyVideoLink&&((ne=i[9].callbacks)==null?void 0:ne.onCopyVideoLink)&&x2(i),U=i[12]&&i[6]!==Hs.ChromecastState.CONNECTED&&!i[17]&&Ef(i);function $(J,K){return J[4]?Q2:Y2}let q=$(i,[-1,-1]),le=q(i),oe=i[10].features.videoRotate&&!i[17]&&X2(i),P=i[10].showSupport&&!i[7]&&Mf(i);return{c(){e=T("ul"),E&&E.c(),t=N(),U&&U.c(),n=N(),o=T("li"),le.c(),r=N(),oe&&oe.c(),l=N(),P&&P.c(),a=N(),c=T("li"),p=Ie(f),g=N(),b=T("li"),S=Ie(w),u(o,"tabindex","0"),u(o,"role","menuitem"),u(o,"aria-label",s=z("aria_label_menu_loop")),u(o,"class","svelte-1vzqlps"),u(c,"tabindex","0"),u(c,"role","menuitem"),u(c,"aria-label",_=i[10].features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),u(c,"class","svelte-1vzqlps"),u(b,"tabindex","0"),u(b,"role","menuitem"),u(b,"aria-label",I=i[8]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable")),u(b,"class","svelte-1vzqlps"),u(e,"role","menu"),Tt(e,"top",i[3]+"px"),Tt(e,"left",i[2]+"px"),u(e,"class","svelte-1vzqlps")},m(J,K){y(J,e,K),E&&E.m(e,null),d(e,t),U&&U.m(e,null),d(e,n),d(e,o),le.m(o,null),d(e,r),oe&&oe.m(e,null),d(e,l),P&&P.m(e,null),d(e,a),d(e,c),d(c,p),d(e,g),d(e,b),d(b,S),i[42](e),k||(C=[de(o,"click",$e(i[24])),de(o,"keydown",i[30]),de(c,"click",$e(i[21])),de(c,"keydown",i[32]),de(b,"click",$e(i[22])),de(b,"keydown",i[33]),de(e,"contextmenu",St(i[39])),de(e,"keydown",i[26])],k=!0)},p(J,K){var Q;J[10].features.copyVideoLink&&((Q=J[9].callbacks)!=null&&Q.onCopyVideoLink)&&E.p(J,K),J[12]&&J[6]!==Hs.ChromecastState.CONNECTED&&!J[17]?U?U.p(J,K):(U=Ef(J),U.c(),U.m(e,n)):U&&(U.d(1),U=null),q===(q=$(J,K))&&le?le.p(J,K):(le.d(1),le=q(J),le&&(le.c(),le.m(o,null))),J[10].features.videoRotate&&!J[17]&&oe.p(J,K),J[10].showSupport&&!J[7]?P?P.p(J,K):(P=Mf(J),P.c(),P.m(e,a)):P&&(P.d(1),P=null),K[0]&256&&I!==(I=J[8]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"))&&u(b,"aria-label",I),K[0]&8&&Tt(e,"top",J[3]+"px"),K[0]&4&&Tt(e,"left",J[2]+"px")},d(J){J&&v(e),E&&E.d(),U&&U.d(),le.d(),oe&&oe.d(),P&&P.d(),i[42](null),k=!1,Ye(C)}}}function x2(i){let e,t=z("menu_copy_video_link")+"",n,o,s,r,l,a,c=!i[5]&&!i[17]&&If(i);return{c(){e=T("li"),n=Ie(t),s=N(),c&&c.c(),r=Xe(),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){y(f,e,p),d(e,n),y(f,s,p),c&&c.m(f,p),y(f,r,p),l||(a=[de(e,"click",$e(i[40])),de(e,"keydown",i[27])],l=!0)},p(f,p){!f[5]&&!f[17]?c?c.p(f,p):(c=If(f),c.c(),c.m(r.parentNode,r)):c&&(c.d(1),c=null)},d(f){f&&(v(e),v(s),v(r)),c&&c.d(f),l=!1,Ye(a)}}}function If(i){let e,t=z("menu_copy_video_link_with_timestamp")+"",n,o,s,r;return{c(){e=T("li"),n=Ie(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(l,a){y(l,e,a),d(e,n),s||(r=[de(e,"click",$e(i[41])),de(e,"keydown",i[28])],s=!0)},p:R,d(l){l&&v(e),s=!1,Ye(r)}}}function Ef(i){let e,t=z("menu_pip")+"",n,o,s,r;return{c(){e=T("li"),n=Ie(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",o=z("menu_pip")),u(e,"class","svelte-1vzqlps")},m(l,a){y(l,e,a),d(e,n),s||(r=[de(e,"click",$e(i[23])),de(e,"keydown",i[29])],s=!0)},p:R,d(l){l&&v(e),s=!1,Ye(r)}}}function Y2(i){let e=z("menu_video_loop_on")+"",t;return{c(){t=Ie(e)},m(n,o){y(n,t,o)},p:R,d(n){n&&v(t)}}}function Q2(i){let e=z("menu_video_loop_off")+"",t;return{c(){t=Ie(e)},m(n,o){y(n,t,o)},p:R,d(n){n&&v(t)}}}function X2(i){let e,t=z("menu_video_rotate")+"",n,o,s,r;return{c(){e=T("li"),n=Ie(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(l,a){y(l,e,a),d(e,n),s||(r=[de(e,"click",$e(i[19])),de(e,"keydown",i[30])],s=!0)},p:R,d(l){l&&v(e),s=!1,Ye(r)}}}function Mf(i){let e,t=z("menu_report")+"",n,o,s,r;return{c(){e=T("li"),n=Ie(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(l,a){y(l,e,a),d(e,n),s||(r=[de(e,"click",$e(i[20])),de(e,"keydown",i[31])],s=!0)},p:R,d(l){l&&v(e),s=!1,Ye(r)}}}function J2(i){let e,t=i[1]&&Pf(i);return{c(){t&&t.c(),e=Xe()},m(n,o){t&&t.m(n,o),y(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Pf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:R,o:R,d(n){n&&v(e),t&&t.d(n)}}}function $2(i,e,t){var we;let n,o,s,r,l,a,{visible:c=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:_=void 0}=e,{controlsContainerRef:g=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:w}=e,S=0,I=0,k=je(),C=Rt(),E=k.ui.contextMenu.visible$,U=k.ui.debugPanelVisible;D(i,U,W=>t(8,a=W));let $=k.webApi.pictureInPictureApi,q=(we=k.webApi.pictureInPictureApi)==null?void 0:we.info.isActive$;D(i,q,W=>t(7,l=W));let le=k.state.chromecastState$;D(i,le,W=>t(6,r=W));let oe=k.state.isLive$;D(i,oe,W=>t(5,s=W));let P=k.state.positionExact$;D(i,P,W=>t(43,n=W));let ne=k.state.isInteractive,J=k.state.looped$;D(i,J,W=>t(4,o=W));let K=()=>{E.set(!1)},Q=(W,ye)=>{if(!b||!_||!g)return;let ue=b.getBoundingClientRect(),Se=_.getBoundingClientRect();t(2,S=W-Se.left),t(3,I=ye-Se.top),S+ue.width>Se.width&&t(2,S=Se.width-ue.width),I+ue.height>Se.height&&t(3,I=Se.height-ue.height),t(2,S=Math.max(S,0)),t(3,I=Math.max(I,0))},M=()=>{K(),k.actions.internal.videoRotate()},Z=()=>{window.open(f,"_blank"),K(),k.actions.internal.pause()},B=()=>{let W=k.actions.internal.getDebugTextData();if(C.features.saveDebugInfoToFile){let ye=new Blob([...W],{type:"plain/text"}),ue=window.URL.createObjectURL(ye);Yr(ue,"vk_player_debug_info","txt")}else kr(k.actions.internal.getDebugTextData());K(),w==null||w()},te=()=>{U.set(!0),K(),w==null||w()},Ce=async()=>{try{$!=null&&$.isActive()?await($==null?void 0:$.remove()):await($==null?void 0:$.request())}finally{K(),w==null||w()}},He=()=>{k.actions.internal.setLooped(!o),K()},Re=(W=!1)=>{var ye,ue;if((ye=k.callbacks)!=null&&ye.onCopyVideoLink){let Se=(ue=k.callbacks)==null?void 0:ue.onCopyVideoLink(W,n);Se&&kr(Se)}K()},We=W=>{cl(W,K)},Oe=W=>{xi(W,()=>Re())},be=W=>{xi(W,()=>Re(!0))},x=W=>{xi(W,()=>Ce())},he=W=>{xi(W,()=>M())},Le=W=>{xi(W,()=>Z())},Ue=W=>{xi(W,()=>B())},xe=W=>{xi(W,()=>te())};function _e(W){Cn.call(this,i,W)}let Te=()=>Re(),Ne=()=>Re(!0);function Ge(W){me[W?"unshift":"push"](()=>{b=W,t(0,b)})}return i.$$set=W=>{"visible"in W&&t(1,c=W.visible),"supportLink"in W&&t(34,f=W.supportLink),"position"in W&&t(35,p=W.position),"playerContainerRef"in W&&t(36,_=W.playerContainerRef),"controlsContainerRef"in W&&t(37,g=W.controlsContainerRef),"menuElementRef"in W&&t(0,b=W.menuElementRef),"returnFocus"in W&&t(38,w=W.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&_&&g){let{top:W,left:ye,bottom:ue,right:Se}=p,qe=ye!=null?ye:0,et=W!=null?W:0,ot=b.getBoundingClientRect();(0,Pr.isNullable)(ye)&&!(0,Pr.isNullable)(Se)&&(qe=Se-ot.width),(0,Pr.isNullable)(W)&&!(0,Pr.isNullable)(ue)&&(et=ue-ot.height),qe=Math.max(qe,0),et=Math.max(et,0),Q(qe,et)}}},[b,c,S,I,o,s,r,l,a,k,C,U,$,q,le,oe,P,ne,J,M,Z,B,te,Ce,He,Re,We,Oe,be,x,he,Le,Ue,xe,f,p,_,g,w,_e,Te,Ne,Ge]}var zs=class extends j{constructor(e){super(),X(this,e,$2,J2,G,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},j2,[-1,-1])}},Vf=zs;var fl=class{constructor(e){this.value=e,this.next=null}};var tr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new fl(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 eh(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 th(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){y(n,e,o),d(e,t),i[3](t)},p:R,i:R,o:R,d(n){n&&v(e),i[3](null)}}}var Us=16,qs=120,Lf=60;function ih(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function nh(i,e,t){let{values:n=[]}=e,o,s,r=qs/Lf;Pt(()=>{t(0,o.width=qs,o),t(0,o.height=Us,o),t(2,s=o.getContext("2d"))});function l(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(s){let c=n[0];for(let p=1;p<n.length;p++)n[p]>c&&(c=n[p]);s.clearRect(0,0,qs,Us);let f=Lf-1;for(let p=n.length-1;p>=0;p--){let _=f*r,g=c>0?Us*(n[p]/c):0;ih(s,_,0,r,g),a=g+" "+a,f--}}}},[o,n,s,l]}var Ks=class extends j{constructor(e){super(),X(this,e,nh,th,G,{values:1},eh)}},dl=Ks;var Ws=require("@vkontakte/videoplayer-shared");function oh(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 Af(i){let e,t,n,o,s=i[0].id+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=N(),o=T("span"),r=Ie(s),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(l,a){y(l,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(l,a){a&1&&s!==(s=l[0].id+"")&&ze(r,s)},d(l){l&&v(e)}}}function Bf(i){let e,t,n,o,s=i[0].provider+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=N(),o=T("span"),r=Ie(s),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(l,a){y(l,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(l,a){a&1&&s!==(s=l[0].provider+"")&&ze(r,s)},d(l){l&&v(e)}}}function Rf(i){let e,t,n,o,s=i[0].viewport+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=N(),o=T("span"),r=Ie(s),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(l,a){y(l,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(l,a){a&1&&s!==(s=l[0].viewport+"")&&ze(r,s)},d(l){l&&v(e)}}}function Nf(i){let e,t,n,o,s=i[0].videoSize+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=N(),o=T("span"),r=Ie(s),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(l,a){y(l,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(l,a){a&1&&s!==(s=l[0].videoSize+"")&&ze(r,s)},d(l){l&&v(e)}}}function Df(i){let e,t,n,o,s=i[0].cdn+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=N(),o=T("span"),r=Ie(s),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(l,a){y(l,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(l,a){a&1&&s!==(s=l[0].cdn+"")&&ze(r,s)},d(l){l&&v(e)}}}function Of(i){let e,t,n,o,s=i[0].volume+"",r,l;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=N(),o=T("span"),r=Ie(s),l=Ie(" %"),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(a,c){y(a,e,c),d(e,t),d(e,n),d(e,o),d(o,r),d(o,l)},p(a,c){c&1&&s!==(s=a[0].volume+"")&&ze(r,s)},d(a){a&&v(e)}}}function Ff(i){let e,t,n,o,s=i[0].buffer.toFixed(2)+"",r,l;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=N(),o=T("span"),r=Ie(s),l=Ie(" s"),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(a,c){y(a,e,c),d(e,t),d(e,n),d(e,o),d(o,r),d(o,l)},p(a,c){c&1&&s!==(s=a[0].buffer.toFixed(2)+"")&&ze(r,s)},d(a){a&&v(e)}}}function Hf(i){let e,t,n,o,s=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(qf).map(Kf).join(" / ")+"",r;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=N(),o=T("span"),r=Ie(s),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(l,a){y(l,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(l,a){a&1&&s!==(s=[{value:l[0].currentVideoSegmentLength,title:"Video"},{value:l[0].currentAudioSegmentLength,title:"Audio"}].filter(qf).map(Kf).join(" / ")+"")&&ze(r,s)},d(l){l&&v(e)}}}function zf(i){let e,t,n,o,s,r,l=i[0].speed.toFixed(2)+"",a,c,f;return o=new dl({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=N(),H(o.$$.fragment),s=N(),r=T("span"),a=Ie(l),c=Ie(" Kbps"),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(p,_){y(p,e,_),d(e,t),d(e,n),O(o,e,null),d(e,s),d(e,r),d(r,a),d(r,c),f=!0},p(p,_){let g={};_&32&&(g.values=p[5]),o.$set(g),(!f||_&1)&&l!==(l=p[0].speed.toFixed(2)+"")&&ze(a,l)},i(p){f||(m(o.$$.fragment,p),f=!0)},o(p){h(o.$$.fragment,p),f=!1},d(p){p&&v(e),F(o)}}}function Uf(i){let e,t,n,o,s,r,l=i[0].bitrate.toFixed(2)+"",a,c,f;return o=new dl({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=N(),H(o.$$.fragment),s=N(),r=T("span"),a=Ie(l),c=Ie(" Kbps"),u(t,"class","svelte-1fypj5i"),u(e,"class","svelte-1fypj5i")},m(p,_){y(p,e,_),d(e,t),d(e,n),O(o,e,null),d(e,s),d(e,r),d(r,a),d(r,c),f=!0},p(p,_){let g={};_&64&&(g.values=p[6]),o.$set(g),(!f||_&1)&&l!==(l=p[0].bitrate.toFixed(2)+"")&&ze(a,l)},i(p){f||(m(o.$$.fragment,p),f=!0)},o(p){h(o.$$.fragment,p),f=!1},d(p){p&&v(e),F(o)}}}function rh(i){let e,t,n,o,s,r,l,a,c=i[0].version+"",f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,ne,J,K,Q,M,Z,B,te,Ce,He,Re,We,Oe,be,x,he=i[0].id&&Af(i),Le=i[0].provider&&Bf(i),Ue=i[0].viewport&&Rf(i),xe=i[0].videoSize&&Nf(i),_e=i[0].cdn&&Df(i),Te=i[0].volume&&Of(i),Ne=i[0].buffer&&Ff(i),Ge=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&Hf(i),we=i[0].speed&&zf(i),W=i[0].bitrate&&Uf(i);return te=new dl({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=N(),o=T("div"),s=T("div"),r=T("div"),r.textContent="Version",l=N(),a=T("span"),f=Ie(c),p=N(),he&&he.c(),_=N(),Le&&Le.c(),g=N(),Ue&&Ue.c(),b=N(),xe&&xe.c(),w=N(),_e&&_e.c(),S=N(),Te&&Te.c(),I=N(),Ne&&Ne.c(),k=N(),Ge&&Ge.c(),C=N(),E=T("div"),U=T("div"),U.textContent="Dropped",$=N(),q=T("span"),le=Ie(i[2]),oe=Ie(" / "),P=Ie(i[1]),ne=Ie(" frames"),J=N(),we&&we.c(),K=N(),W&&W.c(),Q=N(),M=T("div"),Z=T("div"),Z.textContent="FPS",B=N(),H(te.$$.fragment),Ce=N(),He=T("span"),Re=Ie(i[3]),u(t,"class","close svelte-1fypj5i"),u(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(r,"class","svelte-1fypj5i"),u(s,"class","svelte-1fypj5i"),u(U,"class","svelte-1fypj5i"),u(E,"class","svelte-1fypj5i"),u(Z,"class","svelte-1fypj5i"),u(M,"class","svelte-1fypj5i"),u(o,"class","content svelte-1fypj5i"),u(e,"class","container svelte-1fypj5i"),u(e,"role","region"),u(e,"aria-label",We=z("aria_label_debug_panel")),L(e,"container-mobile",i[7])},m(ye,ue){y(ye,e,ue),d(e,t),d(e,n),d(e,o),d(o,s),d(s,r),d(s,l),d(s,a),d(a,f),d(o,p),he&&he.m(o,null),d(o,_),Le&&Le.m(o,null),d(o,g),Ue&&Ue.m(o,null),d(o,b),xe&&xe.m(o,null),d(o,w),_e&&_e.m(o,null),d(o,S),Te&&Te.m(o,null),d(o,I),Ne&&Ne.m(o,null),d(o,k),Ge&&Ge.m(o,null),d(o,C),d(o,E),d(E,U),d(E,$),d(E,q),d(q,le),d(q,oe),d(q,P),d(q,ne),d(o,J),we&&we.m(o,null),d(o,K),W&&W.m(o,null),d(o,Q),d(o,M),d(M,Z),d(M,B),O(te,M,null),d(M,Ce),d(M,He),d(He,Re),Oe=!0,be||(x=de(t,"click",$e(i[9])),be=!0)},p(ye,[ue]){(!Oe||ue&1)&&c!==(c=ye[0].version+"")&&ze(f,c),ye[0].id?he?he.p(ye,ue):(he=Af(ye),he.c(),he.m(o,_)):he&&(he.d(1),he=null),ye[0].provider?Le?Le.p(ye,ue):(Le=Bf(ye),Le.c(),Le.m(o,g)):Le&&(Le.d(1),Le=null),ye[0].viewport?Ue?Ue.p(ye,ue):(Ue=Rf(ye),Ue.c(),Ue.m(o,b)):Ue&&(Ue.d(1),Ue=null),ye[0].videoSize?xe?xe.p(ye,ue):(xe=Nf(ye),xe.c(),xe.m(o,w)):xe&&(xe.d(1),xe=null),ye[0].cdn?_e?_e.p(ye,ue):(_e=Df(ye),_e.c(),_e.m(o,S)):_e&&(_e.d(1),_e=null),ye[0].volume?Te?Te.p(ye,ue):(Te=Of(ye),Te.c(),Te.m(o,I)):Te&&(Te.d(1),Te=null),ye[0].buffer?Ne?Ne.p(ye,ue):(Ne=Ff(ye),Ne.c(),Ne.m(o,k)):Ne&&(Ne.d(1),Ne=null),ye[0].currentVideoSegmentLength||ye[0].currentAudioSegmentLength?Ge?Ge.p(ye,ue):(Ge=Hf(ye),Ge.c(),Ge.m(o,C)):Ge&&(Ge.d(1),Ge=null),(!Oe||ue&4)&&ze(le,ye[2]),(!Oe||ue&2)&&ze(P,ye[1]),ye[0].speed?we?(we.p(ye,ue),ue&1&&m(we,1)):(we=zf(ye),we.c(),m(we,1),we.m(o,K)):we&&(ce(),h(we,1,1,()=>{we=null}),fe()),ye[0].bitrate?W?(W.p(ye,ue),ue&1&&m(W,1)):(W=Uf(ye),W.c(),m(W,1),W.m(o,Q)):W&&(ce(),h(W,1,1,()=>{W=null}),fe());let Se={};ue&16&&(Se.values=ye[4]),te.$set(Se),(!Oe||ue&8)&&ze(Re,ye[3]),(!Oe||ue&128)&&L(e,"container-mobile",ye[7])},i(ye){Oe||(m(we),m(W),m(te.$$.fragment,ye),Oe=!0)},o(ye){h(we),h(W),h(te.$$.fragment,ye),Oe=!1},d(ye){ye&&v(e),he&&he.d(),Le&&Le.d(),Ue&&Ue.d(),xe&&xe.d(),_e&&_e.d(),Te&&Te.d(),Ne&&Ne.d(),Ge&&Ge.d(),we&&we.d(),W&&W.d(),F(te),be=!1,x()}}}var qf=({value:i})=>i,Kf=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function lh(i,e,t){let n,o=je(),s=o.ui.debugPanelVisible,r=o.ui.isMobile;D(i,r,C=>t(7,n=C));let l=()=>{Ws.safeStorage.remove(vr),s.set(!1)},a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,p=0,_=0,g=new tr(60),b=new tr(60),w=new tr(60),S=[],I=[],k=[];return Pt(()=>{Ws.safeStorage.set(vr,"true"),o.actions.internal.startLogging(),c&&(t(2,p=c.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=c.getVideoPlaybackQuality().totalVideoFrames));let C=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 U=c.getVideoPlaybackQuality().totalVideoFrames;t(3,_=U-f),t(1,f=U),g.push(_),a.speed&&b.push(a.speed),a.bitrate&&w.push(a.bitrate),t(4,S=g.getValuesFromBottom()),t(5,I=b.getValuesFromBottom()),t(6,k=w.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(C),E&&clearInterval(E)}}),[a,f,p,_,S,I,k,n,r,l]}var Zs=class extends j{constructor(e){super(),X(this,e,lh,rh,G,{},oh)}},ml=Zs;function sh(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 ah(i){let e,t,n;return{c(){e=T("div"),u(e,"class","close svelte-1ome55p")},m(o,s){y(o,e,s),t||(n=de(e,"click",$e(i[0])),t=!0)},p:R,i:R,o:R,d(o){o&&v(e),t=!1,n()}}}function uh(i){function e(t){Cn.call(this,i,t)}return[e]}var Gs=class extends j{constructor(e){super(),X(this,e,uh,ah,G,{},sh)}},Wf=Gs;var Zf=require("@vkontakte/videoplayer-shared");function ch(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 fh(i){let e,t,n,o,s,r,l;return{c(){e=T("div"),t=T("canvas"),n=N(),o=V("svg"),s=V("g"),r=V("g"),l=V("path"),u(t,"class","timer-canvas svelte-8jhsry"),u(t,"width","100"),u(t,"height","100"),u(l,"class","_play"),u(l,"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(l,"fill","#fff"),u(r,"fill-rule","nonzero"),u(s,"fill","none"),u(s,"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){y(a,e,c),d(e,t),i[2](t),d(e,n),d(e,o),d(o,s),d(s,r),d(r,l)},p:R,i:R,o:R,d(a){a&&v(e),i[2](null)}}}var dh=5e3;function mh(i,e,t){let{onTimerEnded:n=Zf.noop}=e,o;Pt(()=>{let r,l=o.getContext("2d");if(!l)return;l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff";let a=Date.now(),c=()=>{let f=(Date.now()-a)/dh;f<1?(l.clearRect(0,0,100,100),l.beginPath(),l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),l.stroke(),r=requestAnimationFrame(c)):n()};return r=requestAnimationFrame(c),()=>{cancelAnimationFrame(r)}});function s(r){me[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,s]}var js=class extends j{constructor(e){super(),X(this,e,mh,fh,G,{onTimerEnded:1},ch)}},Gf=js;function ph(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 jf(i){let e,t;return e=new Gf({props:{onTimerEnded:i[2]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&4&&(s.onTimerEnded=n[2]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function hh(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U;l=new Wf({}),l.$on("click",i[4]);let $=i[3]&&jf(i);return{c(){e=T("div"),t=N(),n=T("div"),o=T("div"),s=T("div"),s.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=N(),H(l.$$.fragment),a=N(),c=T("div"),f=T("div"),p=T("div"),_=T("div"),g=N(),$&&$.c(),w=N(),S=T("div"),I=T("div"),k=Ie(i[0]),u(e,"class","overlay svelte-kisfwc"),u(s,"class","caption svelte-kisfwc"),u(o,"class","top svelte-kisfwc"),u(_,"class","thumb-overlay svelte-kisfwc"),u(p,"class","thumb svelte-kisfwc"),u(p,"style",b=`background-image: url('${i[1]}')`),u(f,"class","column svelte-kisfwc"),u(I,"class","title svelte-kisfwc"),u(S,"class","column svelte-kisfwc"),u(c,"class","row svelte-kisfwc"),u(n,"class","next-video svelte-kisfwc")},m(q,le){y(q,e,le),y(q,t,le),y(q,n,le),d(n,o),d(o,s),d(o,r),O(l,o,null),d(n,a),d(n,c),d(c,f),d(f,p),d(p,_),d(p,g),$&&$.m(p,null),d(c,w),d(c,S),d(S,I),d(I,k),C=!0,E||(U=de(c,"click",function(){gi(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(q,[le]){i=q,i[3]?$?($.p(i,le),le&8&&m($,1)):($=jf(i),$.c(),m($,1),$.m(p,null)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),(!C||le&2&&b!==(b=`background-image: url('${i[1]}')`))&&u(p,"style",b),(!C||le&1)&&ze(k,i[0])},i(q){C||(m(l.$$.fragment,q),m($),C=!0)},o(q){h(l.$$.fragment,q),h($),C=!1},d(q){q&&(v(e),v(t),v(n)),F(l),$&&$.d(),E=!1,U()}}}function _h(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:s}=e,r=!0,l=()=>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,s=a.playNextVideo)},[n,o,s,r,l]}var xs=class extends j{constructor(e){super(),X(this,e,_h,hh,G,{title:0,thumb:1,playNextVideo:2},ph)}},xf=xs;var fo=require("@vkontakte/videoplayer-core"),Yf=require("@vkontakte/videoplayer-shared"),mn=require("@vkontakte/videoplayer-statistics");var Ys=(i,e)=>Math.min(+(i+e).toFixed(2),1),Qs=(i,e)=>Math.max(+(i-e).toFixed(2),0),pl=(i,e,t)=>{let n=Ys(e,t);e<1&&i.actions.internal.setVolume(n)},hl=(i,e,t)=>{let n=Qs(e,t);e>0&&i.actions.internal.setVolume(n)};var co=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function gh(i){ve(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function vh(i){let e,t,n,o,s,r=i[26].default,l=Wi(r,i,i[25],null);return{c(){e=T("div"),l&&l.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){y(a,e,c),l&&l.m(e,null),i[27](e),n=!0,o||(s=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(a,c){l&&l.p&&(!n||c[0]&33554432)&&Gi(l,r,a,a[25],n?Zi(r,a[25],c,null):ji(a[25]),null)},i(a){n||(m(l,a),n=!0)},o(a){h(l,a),n=!1},d(a){a&&v(e),l&&l.d(a),i[27](null),o=!1,Ye(s)}}}function yh(i,e,t){var ht,at;let n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,{$$slots:k={},$$scope:C}=e,{isAds:E}=e,{hideContextMenu:U}=e,{toggleFullscreen:$}=e,{showHotKeyHelpers:q}=e,{showKeyMap:le}=e,{fakePlayButtonHandler:oe}=e,P=je(),ne=Rt(),J=P.getLogger().createComponentLog("KeyboardControls component"),K=P.state.playbackState$;D(i,K,ge=>t(31,o=ge));let Q=P.ads.playbackState;D(i,Q,ge=>t(30,n=ge));let M=P.state.positionExact$;D(i,M,ge=>t(41,b=ge));let Z=P.state.duration$;D(i,Z,ge=>t(40,g=ge));let B=P.state.volume$;D(i,B,ge=>t(44,I=ge));let te=P.ui.controls.disabledControls$;D(i,te,ge=>t(39,_=ge));let Ce=P.state.muted$;D(i,Ce,ge=>t(34,l=ge));let He=P.state.currentSubtitle$;D(i,He,ge=>t(33,r=ge));let Re=P.state.currentPlaybackRate$;D(i,Re,ge=>t(42,w=ge));let We=P.state.availablePlaybackRates$;D(i,We,ge=>t(43,S=ge));let Oe=P.ui.contextMenu.openedByHotKey$,be=P.ui.contextMenu.lastActiveElem$,x=P.ui.contextMenu.visible$,he=P.ui.contextMenu.position$,Le=P.state.isEnded$;D(i,Le,ge=>t(36,c=ge));let Ue=P.ui.overlayContainer$;D(i,Ue,ge=>t(32,s=ge));let xe=(ht=P.callbacks)==null?void 0:ht.onAudioDoesNotExistHint,_e=(at=P.callbacks)==null?void 0:at.onAudioDisabledHint,Te=P.state.isAudioAvailable$;D(i,Te,ge=>t(35,a=ge));let Ne=P.state.isAudioDisabled,Ge=P.state.isInteractiveTime$;D(i,Ge,ge=>t(38,p=ge));let{showInteractiveTimeIndicatorTooltip$:we}=An();D(i,we,ge=>t(37,f=ge));let W=0,ye=!0,ue,Se=()=>ue==null?void 0:ue.focus(),qe=ge=>(ge!==ye&&(ye=ge,W=0),W+=1,(ne.controls.seekStepKeyboard+ne.controls.seekStepKeyboard*W)/1e3),et=ge=>{var ut;let lt=ge.target,Et=(ut=lt==null?void 0:lt.getAttribute("role"))==null?void 0:ut.includes("menuitem"),kt=lt.classList.contains("btn"),Ae=ge.code;if(kt&&Ae==="Space")return;let Dt=Nc.has(Ae);if(Et&&Dt)return;let Lt=!Rc.has(Ae);if(ge.ctrlKey&&Lt||ge.altKey&&Lt||ge.metaKey)return;let pe=Et&&Ae==="Escape";Dc.has(Ae)||pe||U();let Mt=o===fo.PlaybackState.PLAYING||o===fo.PlaybackState.PAUSED,rt=E&&(n==="paused"||n==="playing"),mt=!rt&&!_.has("TIMELINE");if(Mt||rt)switch(J({message:`key down, code: ${Ae}`}),Ae){case"KeyJ":case"ArrowLeft":{if(!mt)break;if(ge.ctrlKey||ge.altKey){let Pe=P.actions.internal.getPrevEpisode();P.actions.internal.seekToPrevEpisode(Pe),Pe&&q({type:"EPISODE_PREV",text:Pe.text}),ge.preventDefault()}else{let Pe=ge.shiftKey?qe(!1):ne.controls.seekStepKeyboard/1e3,Fe=Math.max(b-Pe,0);b>0&&(P.actions.internal.seekTime(Fe,mn.SeekAction.DOUBLE_TAP),q({type:"BACKWARD_SEEK",text:Pe.toString()}),ge.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!mt)break;if(ge.ctrlKey||ge.altKey){let Pe=P.actions.internal.getNextEpisode();P.actions.internal.seekToNextEpisode(Pe),Pe&&q({type:"EPISODE_NEXT",text:Pe.text}),ge.preventDefault()}else{let Pe=ge.shiftKey?qe(!0):ne.controls.seekStepKeyboard/1e3,Fe=Math.min(b+Pe,g);Math.round(b)<Math.round(g)&&(P.actions.internal.seekTime(Fe,mn.SeekAction.DOUBLE_TAP),q({type:"FORWARD_SEEK",text:Pe.toString()}),ge.preventDefault())}break}case"ArrowUp":{if(co({isAudioDisabled:Ne,audioDisabledHintCallback:_e,isAudioAvailable:a,audioIsNotExistHintCallback:xe})){let Pe=I,Fe=ne.controls.volumeStepKeyboard,gt=Pe<=1;if(pl(P,Pe,Fe),gt){let Zt=Math.round(Ys(Pe,Fe)*100).toString();q({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zt}})}}ge.preventDefault();break}case"ArrowDown":{if(co({isAudioDisabled:Ne,audioDisabledHintCallback:_e,isAudioAvailable:a,audioIsNotExistHintCallback:xe})){let Pe=I,Fe=ne.controls.volumeStepKeyboard,gt=Pe>=0;if(hl(P,Pe,Fe),gt){let Zt=Math.round(Qs(Pe,Fe)*100).toString();q({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zt}})}}ge.preventDefault();break}case"Comma":{if(ge.shiftKey){P.actions.internal.decrementPlaybackRate();let Pe=S.find(Fe=>Fe.value===w);q({type:"RATE_DOWN",text:Pe==null?void 0:Pe.displayValue}),ge.preventDefault()}else{if(rt||o!==fo.PlaybackState.PAUSED)break;let Pe=Math.max(b-ne.controls.seekStepFrame/1e3,0);b>0&&(q({type:"BACKWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(Pe,mn.SeekAction.DOUBLE_TAP),ge.preventDefault())}break}case"Period":{if(ge.shiftKey){P.actions.internal.incrementPlaybackRate();let Pe=S.find(Fe=>Fe.value===w);q({type:"RATE_UP",text:Pe==null?void 0:Pe.displayValue}),ge.preventDefault()}else{if(rt||o!==fo.PlaybackState.PAUSED)break;let Pe=Math.min(b+ne.controls.seekStepFrame/1e3,g);b<g&&(q({type:"FORWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(Pe,mn.SeekAction.DOUBLE_TAP),ge.preventDefault())}break}case"KeyK":case"Space":if(!_.has("PLAY_BUTTON"))if(p&&f&&we.set(!1),oe)oe();else{P.actions.internal.togglePlay();let Pe="PLAY";o===fo.PlaybackState.PAUSED?Pe="PAUSE":c&&(Pe="REPLAY"),q({type:Pe})}ge.preventDefault();break;case"KeyM":{co({isAudioDisabled:Ne,audioDisabledHintCallback:_e,isAudioAvailable:a,audioIsNotExistHintCallback:xe})&&(q({type:l?"VOLUME":"MUTE"}),P.actions.internal.toggleMuted()),ge.preventDefault();break}case"KeyF":$(),ge.preventDefault();break;case"KeyC":P.actions.internal.toggleSubtitle(),r.value!=="off"?q({type:"SUBTITLES_ON",text:r==null?void 0:r.displayValue}):q({type:"SUBTITLES_OFF"}),ge.preventDefault();break;case"KeyI":P.actions.internal.togglePictureInPicture(),ge.preventDefault();break;case"Digit1":case"Numpad1":if(ge.shiftKey){let Pe=Tf(s);he.set(Pe),be.set(lt),Oe.set(!0),x.set(!0),ge.preventDefault();break}q(),P.actions.internal.seekToPercent(.1,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit2":case"Numpad2":q(),P.actions.internal.seekToPercent(.2,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit3":case"Numpad3":q(),P.actions.internal.seekToPercent(.3,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit4":case"Numpad4":q(),P.actions.internal.seekToPercent(.4,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit5":case"Numpad5":q(),P.actions.internal.seekToPercent(.5,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit6":case"Numpad6":q(),P.actions.internal.seekToPercent(.6,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit7":case"Numpad7":q(),P.actions.internal.seekToPercent(.7,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit8":case"Numpad8":q(),P.actions.internal.seekToPercent(.8,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit9":case"Numpad9":q(),P.actions.internal.seekToPercent(.9,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit0":case"Numpad0":q(),P.actions.internal.seekToPercent(0,mn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Slash":{ge.shiftKey&&ne.features.hotKeyMapModal&&(le(),ge.preventDefault());break}case"ShiftLeft":case"ShiftRight":ge.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Yf.checkNever)(Ae);break}},ot=ge=>{let lt=ge.code;if(ge.ctrlKey||ge.altKey||ge.metaKey)return;let Et=o===fo.PlaybackState.PLAYING||o===fo.PlaybackState.PAUSED,kt=E&&(n==="paused"||n==="playing");if(Et||kt)switch(lt){case"ShiftLeft":case"ShiftRight":W=0;break}};function tt(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,U=ge.hideContextMenu),"toggleFullscreen"in ge&&t(20,$=ge.toggleFullscreen),"showHotKeyHelpers"in ge&&t(21,q=ge.showHotKeyHelpers),"showKeyMap"in ge&&t(22,le=ge.showKeyMap),"fakePlayButtonHandler"in ge&&t(23,oe=ge.fakePlayButtonHandler),"$$scope"in ge&&t(25,C=ge.$$scope)},[ue,K,Q,M,Z,B,te,Ce,He,Re,We,Le,Ue,Te,Ge,we,et,ot,E,U,$,q,le,oe,Se,C,k,tt]}var Xs=class extends j{constructor(e){super(),X(this,e,yh,vh,G,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},gh,[-1,-1])}get focus(){return this.$$.ctx[24]}},Qf=Xs;function wh(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 kh(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){y(t,e,n)},p:R,i:R,o:R,d(t){t&&v(e)}}}var Js=class extends j{constructor(e){super(),X(this,e,null,kh,G,{},wh)}},_l=Js;function Ch(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("defs"),r=V("filter"),l=V("feFlood"),a=V("feColorMatrix"),c=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),_=V("feBlend"),g=V("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(l,"flood-opacity","0"),u(l,"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(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_2422_111980"),u(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_2422_111980"),u(g,"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(b,w){y(b,e,w),d(e,t),d(t,n),d(t,o),d(e,s),d(s,r),d(r,l),d(r,a),d(r,c),d(r,f),d(r,p),d(r,_),d(r,g)},p:R,i:R,o:R,d(b){b&&v(e)}}}var $s=class extends j{constructor(e){super(),X(this,e,null,Ch,G,{})}},Xf=$s;var Zn=require("@vkontakte/videoplayer-shared");function Sh(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 Th(i){let e,t,n,o,s,r,l,a,c,f,p,_,g=i[14].default,b=Wi(g,i,i[13],null);return{c(){var w,S,I,k,C,E;e=T("button"),b&&b.c(),u(e,"class",t="btn "+i[1]+" svelte-1anemql"),u(e,"style",n=i[2]||null),e.disabled=o=(w=i[3])!=null?w:null,u(e,"aria-hidden",s=(S=i[5])!=null?S:null),u(e,"aria-label",r=(I=i[6])!=null?I:null),u(e,"aria-keyshortcuts",l=(k=i[7])!=null?k:null),u(e,"aria-expanded",a=(C=i[8])!=null?C:null),u(e,"data-testid",c=(E=i[4])!=null?E:null),u(e,"tabindex",i[9])},m(w,S){y(w,e,S),b&&b.m(e,null),i[16](e),f=!0,p||(_=[de(e,"pointerdown",$e(St(i[15]))),de(e,"click",$e(St(function(){gi(i[10]===Zn.noop?null:i[10])&&(i[10]===Zn.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",St(function(){gi(i[11]===Zn.noop?null:i[11])&&(i[11]===Zn.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",St(function(){gi(i[12]===Zn.noop?null:i[12])&&(i[12]===Zn.noop?null:i[12]).apply(this,arguments)}))],p=!0)},p(w,[S]){var I,k,C,E,U,$;i=w,b&&b.p&&(!f||S&8192)&&Gi(b,g,i,i[13],f?Zi(g,i[13],S,null):ji(i[13]),null),(!f||S&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&u(e,"class",t),(!f||S&4&&n!==(n=i[2]||null))&&u(e,"style",n),(!f||S&8&&o!==(o=(I=i[3])!=null?I:null))&&(e.disabled=o),(!f||S&32&&s!==(s=(k=i[5])!=null?k:null))&&u(e,"aria-hidden",s),(!f||S&64&&r!==(r=(C=i[6])!=null?C:null))&&u(e,"aria-label",r),(!f||S&128&&l!==(l=(E=i[7])!=null?E:null))&&u(e,"aria-keyshortcuts",l),(!f||S&256&&a!==(a=(U=i[8])!=null?U:null))&&u(e,"aria-expanded",a),(!f||S&16&&c!==(c=($=i[4])!=null?$:null))&&u(e,"data-testid",c),(!f||S&512)&&u(e,"tabindex",i[9])},i(w){f||(m(b,w),f=!0)},o(w){h(b,w),f=!1},d(w){w&&v(e),b&&b.d(w),i[16](null),p=!1,Ye(_)}}}function Ph(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:s=""}=e,{style:r=""}=e,{disabled:l=void 0}=e,{testId:a=void 0}=e,{ariaHidden:c=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:_=void 0}=e,{ariaExpanded:g=void 0}=e,{tabIndex:b=0}=e,{click:w=Zn.noop}=e,{focus:S=Zn.noop}=e,{blur:I=Zn.noop}=e;function k(E){Cn.call(this,i,E)}function C(E){me[E?"unshift":"push"](()=>{p=E,t(0,p)})}return i.$$set=E=>{"className"in E&&t(1,s=E.className),"style"in E&&t(2,r=E.style),"disabled"in E&&t(3,l=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,_=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,g=E.ariaExpanded),"tabIndex"in E&&t(9,b=E.tabIndex),"click"in E&&t(10,w=E.click),"focus"in E&&t(11,S=E.focus),"blur"in E&&t(12,I=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[p,s,r,l,a,c,f,_,g,b,w,S,I,o,n,k,C]}var ea=class extends j{constructor(e){super(),X(this,e,Ph,Th,G,{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},Sh)}},st=ea;function Ih(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 Jf(i){let e,t,n,o,s,r=i[2]&&$f(i);return{c(){e=T("div"),t=T("h3"),n=Ie(i[3]),o=N(),r&&r.c(),u(t,"class","modal-title svelte-1witlsj"),u(e,"class","modal-header svelte-1witlsj")},m(l,a){y(l,e,a),d(e,t),d(t,n),d(e,o),r&&r.m(e,null),s=!0},p(l,a){(!s||a&8)&&ze(n,l[3]),l[2]?r?(r.p(l,a),a&4&&m(r,1)):(r=$f(l),r.c(),m(r,1),r.m(e,null)):r&&(ce(),h(r,1,1,()=>{r=null}),fe())},i(l){s||(m(r),s=!0)},o(l){h(r),s=!1},d(l){l&&v(e),r&&r.d()}}}function $f(i){let e,t;return e=new st({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:z("hotkey_map_modal_close_btn_text"),$$slots:{default:[Eh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&1&&(s.click=n[0]),o&32&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Eh(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 Mh(i){let e,t,n,o,s,r,l=i[1]&&Jf(i),a=i[4].default,c=Wi(a,i,i[5],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),n=N(),o=T("div"),s=T("div"),c&&c.c(),u(s,"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){y(f,e,p),d(e,t),l&&l.m(t,null),d(t,n),d(t,o),d(o,s),c&&c.m(s,null),r=!0},p(f,[p]){f[1]?l?(l.p(f,p),p&2&&m(l,1)):(l=Jf(f),l.c(),m(l,1),l.m(t,n)):l&&(ce(),h(l,1,1,()=>{l=null}),fe()),c&&c.p&&(!r||p&32)&&Gi(c,a,f,f[5],r?Zi(a,f[5],p,null):ji(f[5]),null)},i(f){r||(m(l),m(c,f),r=!0)},o(f){h(l),h(c,f),r=!1},d(f){f&&v(e),l&&l.d(),c&&c.d(f)}}}function Vh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:s}=e,{showHeader:r=!0}=e,{showCloseCross:l=!0}=e,{title:a}=e;return i.$$set=c=>{"onClose"in c&&t(0,s=c.onClose),"showHeader"in c&&t(1,r=c.showHeader),"showCloseCross"in c&&t(2,l=c.showCloseCross),"title"in c&&t(3,a=c.title),"$$scope"in c&&t(5,o=c.$$scope)},[s,r,l,a,n,o]}var ta=class extends j{constructor(e){super(),X(this,e,Vh,Mh,G,{onClose:0,showHeader:1,showCloseCross:2,title:3},Ih)}},e1=ta;var Lh=new Set(["BR"]),ia=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let s=t[n],r=s.tagName;Lh.has(r)||(o=s.parentElement)==null||o.removeChild(s)}return e.innerHTML};function Ah(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 t1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function i1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function n1(i){let e,t,n=ia(i[9])+"",o,s,r=i[10]+"",l,a;return{c(){e=T("li"),t=T("span"),o=N(),s=T("span"),l=Ie(r),a=N(),u(t,"class","hot-key-map-item-description svelte-quklnq"),u(s,"class","hot-key-map-item-value svelte-quklnq"),u(e,"class","hot-key-map-item svelte-quklnq")},m(c,f){y(c,e,f),d(e,t),t.innerHTML=n,d(e,o),d(e,s),d(s,l),d(e,a)},p(c,f){f&1&&n!==(n=ia(c[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=c[10]+"")&&ze(l,r)},d(c){c&&v(e)}}}function o1(i){let e,t,n=i[5]+"",o,s,r,l,a=yt(i[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=n1(i1(i,a,f));return{c(){e=T("div"),t=T("h5"),o=Ie(n),s=N(),r=T("ul");for(let f=0;f<c.length;f+=1)c[f].c();l=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){y(f,e,p),d(e,t),d(t,o),d(e,s),d(e,r);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(r,null);d(e,l)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&ze(o,n),p&1){a=yt(f[6]);let _;for(_=0;_<a.length;_+=1){let g=i1(f,a,_);c[_]?c[_].p(g,p):(c[_]=n1(g),c[_].c(),c[_].m(r,null))}for(;_<c.length;_+=1)c[_].d(1);c.length=a.length}},d(f){f&&v(e),Di(c,f)}}}function Bh(i){let e,t=yt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=o1(t1(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,s){y(o,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,s){if(s&1){t=yt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let l=t1(o,t,r);n[r]?n[r].p(l,s):(n[r]=o1(l),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&&v(e),Di(n,o)}}}function Rh(i){let e,t;return e=new e1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Bh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let s={};o&1&&(s.title=n[0].title),o&8193&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Nh(i,e,t){let n,o=je(),{data:s,show:r}=o.ui.modals.hotKeyMap;return D(i,s,a=>t(0,n=a)),[n,s,()=>{r.set(!1)}]}var na=class extends j{constructor(e){super(),X(this,e,Nh,Rh,G,{},Ah)}},r1=na;var Ql=require("@vkontakte/videoplayer-shared");var No=require("@vkontakte/videoplayer-core");var q1=require("@vkontakte/videoplayer-core");var py=require("@vkontakte/videoplayer-shared");function Dh(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 Oh(i){let e,t,n=i[1].default,o=Wi(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),u(e,"class","pillow svelte-1oe0j8n")},m(s,r){y(s,e,r),o&&o.m(e,null),t=!0},p(s,[r]){o&&o.p&&(!t||r&1)&&Gi(o,n,s,s[0],t?Zi(n,s[0],r,null):ji(s[0]),null)},i(s){t||(m(o,s),t=!0)},o(s){h(o,s),t=!1},d(s){s&&v(e),o&&o.d(s)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=s=>{"$$scope"in s&&t(0,o=s.$$scope)},[o,n]}var oa=class extends j{constructor(e){super(),X(this,e,Fh,Oh,G,{},Dh)}},l1=oa;var ir=require("@vkontakte/videoplayer-core");function Hh(i){let e,t,n;return{c(){e=V("svg"),t=V("path"),n=V("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,s){y(o,e,s),d(e,t),d(e,n)},p:R,i:R,o:R,d(o){o&&v(e)}}}var ra=class extends j{constructor(e){super(),X(this,e,null,Hh,G,{})}},s1=ra;function zh(i){let e,t,n;return{c(){e=V("svg"),t=V("path"),n=V("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,s){y(o,e,s),d(e,t),d(e,n)},p:R,i:R,o:R,d(o){o&&v(e)}}}var la=class extends j{constructor(e){super(),X(this,e,null,zh,G,{})}},a1=la;function Uh(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var sa=class extends j{constructor(e){super(),X(this,e,null,Uh,G,{})}},u1=sa;function qh(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var aa=class extends j{constructor(e){super(),X(this,e,null,qh,G,{})}},bl=aa;function Kh(i){let e,t,n;return{c(){e=V("svg"),t=V("path"),n=V("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,s){y(o,e,s),d(e,t),d(e,n)},p:R,i:R,o:R,d(o){o&&v(e)}}}var ua=class extends j{constructor(e){super(),X(this,e,null,Kh,G,{})}},gl=ua;var mo=i=>{switch(i){case ir.VideoQuality.Q_720P:return u1;case ir.VideoQuality.Q_1080P:return bl;case ir.VideoQuality.Q_1440P:return gl;case ir.VideoQuality.Q_2160P:return s1;case ir.VideoQuality.Q_4320P:return a1}};function Wh(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 Zh(i){let e,t,n,o,s,r,l=i[1]&&c1(i);return{c(){e=T("div"),l&&l.c(),t=N(),n=V("svg"),o=V("path"),s=V("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"),L(s,"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"),L(e,"triple",i[2])},m(a,c){y(a,e,c),l&&l.m(e,null),d(e,t),d(e,n),d(n,o),d(n,s),r=!0},p(a,c){a[1]?l?(l.p(a,c),c&2&&m(l,1)):(l=c1(a),l.c(),m(l,1),l.m(e,t)):l&&(ce(),h(l,1,1,()=>{l=null}),fe()),(!r||c&2)&&L(s,"hidden",!!a[1]),(!r||c&4)&&L(e,"triple",a[2])},i(a){r||(m(l),r=!0)},o(a){h(l),r=!1},d(a){a&&v(e),l&&l.d()}}}function Gh(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}function c1(i){let e,t;return e=new l1({props:{$$slots:{default:[jh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&18&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function jh(i){let e,t,n;var o=i[1];function s(r){return{}}return o&&(e=gn(o,s(i))),{c(){e&&H(e.$$.fragment),t=Xe()},m(r,l){e&&O(e,r,l),y(r,t,l),n=!0},p(r,l){if(l&2&&o!==(o=r[1])){if(e){ce();let a=e;h(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(e=gn(o,s(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&&v(t),e&&F(e,r)}}}function xh(i){let e,t,n,o,s=[Gh,Zh],r=[];function l(a,c){return a[0]?0:1}return e=l(i,-1),t=r[e]=s[e](i),{c(){t.c(),n=Xe()},m(a,c){r[e].m(a,c),y(a,n,c),o=!0},p(a,[c]){let f=e;e=l(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]=s[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&&v(n),r[e].d(a)}}}function Yh(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:s=void 0}=e,r;return i.$$set=l=>{"isMobile"in l&&t(0,o=l.isMobile),"currentQuality"in l&&t(3,s=l.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=mo(s));if(i.$$.dirty&2)e:t(2,r=!!n&&[bl,gl].includes(n))},[o,n,r,s]}var ca=class extends j{constructor(e){super(),X(this,e,Yh,xh,G,{isMobile:0,currentQuality:3},Wh)}},vl=ca;function Qh(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var fa=class extends j{constructor(e){super(),X(this,e,null,Qh,G,{})}},yl=fa;function Xh(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var da=class extends j{constructor(e){super(),X(this,e,null,Xh,G,{})}},f1=da;function Jh(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var ma=class extends j{constructor(e){super(),X(this,e,null,Jh,G,{})}},d1=ma;function $h(i){let e,t,n,o;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("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(s,r){y(s,e,r),d(e,t),d(t,n),d(t,o)},p:R,i:R,o:R,d(s){s&&v(e)}}}var pa=class extends j{constructor(e){super(),X(this,e,null,$h,G,{})}},m1=pa;function e_(i){ve(i,"svelte-2dg73m",".reverted.svelte-2dg73m{transform:rotate(180deg)}")}function t_(i){let e,t,n;return{c(){e=V("svg"),t=V("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"),L(e,"reverted",i[2])},m(o,s){y(o,e,s),d(e,t)},p(o,s){s&1&&u(t,"fill",o[0]),s&4&&n!==(n=o[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),s&4&&L(e,"reverted",o[2])},d(o){o&&v(e)}}}function i_(i){let e,t,n;return{c(){e=V("svg"),t=V("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"),L(e,"reverted",i[2])},m(o,s){y(o,e,s),d(e,t)},p(o,s){s&1&&u(t,"fill",o[0]),s&4&&n!==(n=o[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),s&4&&L(e,"reverted",o[2])},d(o){o&&v(e)}}}function n_(i){let e;function t(s,r){return s[1]?i_:t_}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(s,r){o.m(s,r),y(s,e,r)},p(s,[r]){n===(n=t(s,r))&&o?o.p(s,r):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:R,o:R,d(s){s&&v(e),o.d(s)}}}function o_(i,e,t){let{direction:n="left"}=e,{color:o="#fff"}=e,s,r;return i.$$set=l=>{"direction"in l&&t(3,n=l.direction),"color"in l&&t(0,o=l.color)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,s=["up","down"].includes(n)),t(2,r=["right","down"].includes(n))},[o,s,r,n]}var ha=class extends j{constructor(e){super(),X(this,e,o_,n_,G,{direction:3,color:0},e_)}},Gn=ha;function r_(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var _a=class extends j{constructor(e){super(),X(this,e,null,r_,G,{})}},p1=_a;function l_(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var ba=class extends j{constructor(e){super(),X(this,e,null,l_,G,{})}},nr=ba;function s_(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var ga=class extends j{constructor(e){super(),X(this,e,null,s_,G,{})}},h1=ga;function a_(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var va=class extends j{constructor(e){super(),X(this,e,null,a_,G,{})}},_1=va;function u_(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 b1(i,e,t){let n=i.slice();return n[142]=e[t],n}function g1(i,e,t){let n=i.slice();return n[145]=e[t],n}function v1(i,e,t){let n=i.slice();return n[148]=e[t],n}function y1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g=i[34]&&w1(i),b=i[25]&&k1(i),w=i[24]&&S1(i),S=i[23]&&T1(i),I=i[22]&&P1(i),k=i[21]&&I1(i),C=i[34]&&E1(i);return{c(){e=T("div"),g&&g.c(),t=N(),n=T("ul"),b&&b.c(),o=N(),w&&w.c(),s=N(),S&&S.c(),r=N(),I&&I.c(),l=N(),k&&k.c(),a=N(),C&&C.c(),u(n,"class","items svelte-5r0p3"),u(n,"role","menu"),u(n,"style",c=i[73]()),L(n,"items-mobile",i[34]),u(e,"class","menu svelte-5r0p3"),L(e,"menu-desktop",!i[34]),L(e,"menu-mobile",i[34]),L(e,"hidden",!i[11])},m(E,U){y(E,e,U),g&&g.m(e,null),d(e,t),d(e,n),b&&b.m(n,null),d(n,o),w&&w.m(n,null),d(n,s),S&&S.m(n,null),d(n,r),I&&I.m(n,null),d(n,l),k&&k.m(n,null),d(n,a),C&&C.m(n,null),i[112](n),f=!0,p||(_=[de(e,"keydown",i[78]),de(e,"mouseenter",i[71]),de(e,"mouseleave",i[72])],p=!0)},p(E,U){E[34]?g?g.p(E,U):(g=w1(E),g.c(),g.m(e,t)):g&&(g.d(1),g=null),E[25]?b?(b.p(E,U),U[0]&33554432&&m(b,1)):(b=k1(E),b.c(),m(b,1),b.m(n,o)):b&&(ce(),h(b,1,1,()=>{b=null}),fe()),E[24]?w?(w.p(E,U),U[0]&16777216&&m(w,1)):(w=S1(E),w.c(),m(w,1),w.m(n,s)):w&&(ce(),h(w,1,1,()=>{w=null}),fe()),E[23]?S?(S.p(E,U),U[0]&8388608&&m(S,1)):(S=T1(E),S.c(),m(S,1),S.m(n,r)):S&&(ce(),h(S,1,1,()=>{S=null}),fe()),E[22]?I?(I.p(E,U),U[0]&4194304&&m(I,1)):(I=P1(E),I.c(),m(I,1),I.m(n,l)):I&&(ce(),h(I,1,1,()=>{I=null}),fe()),E[21]?k?(k.p(E,U),U[0]&2097152&&m(k,1)):(k=I1(E),k.c(),m(k,1),k.m(n,a)):k&&(ce(),h(k,1,1,()=>{k=null}),fe()),E[34]?C?(C.p(E,U),U[1]&8&&m(C,1)):(C=E1(E),C.c(),m(C,1),C.m(n,null)):C&&(ce(),h(C,1,1,()=>{C=null}),fe()),(!f||U[1]&8)&&L(n,"items-mobile",E[34]),(!f||U[1]&8)&&L(e,"menu-desktop",!E[34]),(!f||U[1]&8)&&L(e,"menu-mobile",E[34]),(!f||U[0]&2048)&&L(e,"hidden",!E[11])},i(E){f||(m(b),m(w),m(S),m(I),m(k),m(C),f=!0)},o(E){h(b),h(w),h(S),h(I),h(k),h(C),f=!1},d(E){E&&v(e),g&&g.d(),b&&b.d(),w&&w.d(),S&&S.d(),I&&I.d(),k&&k.d(),C&&C.d(),i[112](null),p=!1,Ye(_)}}}function w1(i){let e,t,n,o,s,r,l,a;return{c(){e=T("div"),t=T("div"),t.textContent=`${z("submenu_settings")}`,n=N(),o=T("div"),s=N(),r=T("div"),u(o,"class","close svelte-5r0p3"),u(e,"class","item menu-header svelte-5r0p3"),L(e,"item-mobile",i[34]),u(r,"class","menu-divider svelte-5r0p3")},m(c,f){y(c,e,f),d(e,t),d(e,n),d(e,o),y(c,s,f),y(c,r,f),l||(a=de(o,"click",$e(i[57])),l=!0)},p(c,f){f[1]&8&&L(e,"item-mobile",c[34])},d(c){c&&(v(e),v(s),v(r)),l=!1,a()}}}function k1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;n=new vl({});let b=i[33]&&!i[34]&&C1(i);return{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("menu_quality")}`,r=N(),l=T("div"),a=Ie(i[16]),c=N(),b&&b.c(),u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(s,"class","menu-title svelte-5r0p3"),u(l,"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"),L(e,"item-mobile",i[34])},m(w,S){y(w,e,S),d(e,t),O(n,t,null),d(e,o),d(e,s),d(e,r),d(e,l),d(l,a),d(l,c),b&&b.m(l,null),i[108](e),p=!0,_||(g=[de(e,"click",$e(i[58])),de(e,"keydown",i[79])],_=!0)},p(w,S){(!p||S[0]&65536)&&ze(a,w[16]),w[33]&&!w[34]?b?(b.p(w,S),S[1]&12&&m(b,1)):(b=C1(w),b.c(),m(b,1),b.m(l,null)):b&&(ce(),h(b,1,1,()=>{b=null}),fe()),(!p||S[0]&134217728&&f!==(f=z("aria_label_menu_quality",{actual:w[27]})))&&u(e,"aria-label",f),(!p||S[1]&8)&&L(e,"item-mobile",w[34])},i(w){p||(m(n.$$.fragment,w),m(b),p=!0)},o(w){h(n.$$.fragment,w),h(b),p=!1},d(w){w&&v(e),F(n),b&&b.d(),i[108](null),_=!1,Ye(g)}}}function C1(i){let e,t,n;var o=i[33];function s(r){return{}}return o&&(t=gn(o,s(i))),{c(){e=T("div"),t&&H(t.$$.fragment),u(e,"class","menu-valueIcon svelte-5r0p3")},m(r,l){y(r,e,l),t&&O(t,e,null),n=!0},p(r,l){if(l[1]&4&&o!==(o=r[33])){if(t){ce();let a=t;h(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(t=gn(o,s(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&&v(e),t&&F(t)}}}function S1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;return n=new m1({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("menu_playback_rate")}`,r=N(),l=T("div"),a=Ie(i[9]),c=Ie("x"),u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(s,"class","menu-title svelte-5r0p3"),u(l,"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"),L(e,"item-mobile",i[34])},m(b,w){y(b,e,w),d(e,t),O(n,t,null),d(e,o),d(e,s),d(e,r),d(e,l),d(l,a),d(l,c),i[109](e),p=!0,_||(g=[de(e,"click",$e(St(i[62]))),de(e,"keydown",i[82])],_=!0)},p(b,w){(!p||w[0]&512)&&ze(a,b[9]),(!p||w[0]&268435456&&f!==(f=z("aria_label_menu_rate",{actual:b[28]})))&&u(e,"aria-label",f),(!p||w[1]&8)&&L(e,"item-mobile",b[34])},i(b){p||(m(n.$$.fragment,b),p=!0)},o(b){h(n.$$.fragment,b),p=!1},d(b){b&&v(e),F(n),i[109](null),_=!1,Ye(g)}}}function T1(i){let e,t,n,o,s,r,l,a=i[35].displayValue+"",c,f,p,_,g;return n=new yl({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("subtitles_caption")}`,r=N(),l=T("div"),c=Ie(a),u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(s,"class","menu-title svelte-5r0p3"),u(l,"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"),L(e,"item-mobile",i[34])},m(b,w){y(b,e,w),d(e,t),O(n,t,null),d(e,o),d(e,s),d(e,r),d(e,l),d(l,c),i[110](e),p=!0,_||(g=[de(e,"click",$e(i[64])),de(e,"keydown",i[85])],_=!0)},p(b,w){(!p||w[1]&16)&&a!==(a=b[35].displayValue+"")&&ze(c,a),(!p||w[1]&16&&f!==(f=z("aria_label_menu_subtitle",{actual:b[35].displayValue})))&&u(e,"aria-label",f),(!p||w[1]&8)&&L(e,"item-mobile",b[34])},i(b){p||(m(n.$$.fragment,b),p=!0)},o(b){h(n.$$.fragment,b),p=!1},d(b){b&&v(e),F(n),i[110](null),_=!1,Ye(g)}}}function P1(i){let e,t,n,o,s,r,l,a,c,f,p,_;return n=new d1({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("menu_traffic_saving")}`,r=N(),l=T("div"),a=Ie(i[26]),u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(s,"class","menu-title svelte-5r0p3"),u(l,"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"),L(e,"item-mobile",i[34])},m(g,b){y(g,e,b),d(e,t),O(n,t,null),d(e,o),d(e,s),d(e,r),d(e,l),d(l,a),i[111](e),f=!0,p||(_=[de(e,"click",$e(i[59])),de(e,"keydown",i[88])],p=!0)},p(g,b){(!f||b[0]&67108864)&&ze(a,g[26]),(!f||b[0]&67108864&&c!==(c=z("aria_label_menu_traffic_saving",{actual:g[26]})))&&u(e,"aria-label",c),(!f||b[1]&8)&&L(e,"item-mobile",g[34])},i(g){f||(m(n.$$.fragment,g),f=!0)},o(g){h(n.$$.fragment,g),f=!1},d(g){g&&v(e),F(n),i[111](null),p=!1,Ye(_)}}}function I1(i){let e,t,n,o,s,r,l,a,c;return n=new f1({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("download_video_caption")}`,u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(s,"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")),L(e,"item-mobile",i[34])},m(f,p){y(f,e,p),d(e,t),O(n,t,null),d(e,o),d(e,s),l=!0,a||(c=[de(e,"click",$e(i[67])),de(e,"keydown",i[91])],a=!0)},p(f,p){(!l||p[1]&8)&&L(e,"item-mobile",f[34])},i(f){l||(m(n.$$.fragment,f),l=!0)},o(f){h(n.$$.fragment,f),l=!1},d(f){f&&v(e),F(n),a=!1,Ye(c)}}}function E1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k=i[37].showSupport&&c_(i);return o=new h1({}),p=new _1({}),{c(){k&&k.c(),e=N(),t=T("li"),n=T("div"),H(o.$$.fragment),s=N(),r=T("div"),r.textContent=`${z("menu_copy_debug")}`,a=N(),c=T("li"),f=T("div"),H(p.$$.fragment),_=N(),g=T("div"),g.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",l=z("menu_copy_debug")),u(f,"class","menu-icon-wrapper svelte-5r0p3"),u(g,"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",b=i[36]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable"))},m(C,E){k&&k.m(C,E),y(C,e,E),y(C,t,E),d(t,n),O(o,n,null),d(t,s),d(t,r),y(C,a,E),y(C,c,E),d(c,f),O(p,f,null),d(c,_),d(c,g),w=!0,S||(I=[de(t,"click",$e(i[69])),de(t,"keydown",i[93]),de(c,"click",$e(i[70])),de(c,"keydown",i[94])],S=!0)},p(C,E){C[37].showSupport&&k.p(C,E),(!w||E[1]&32&&b!==(b=C[36]?z("aria_label_menu_debug_overlay_disable"):z("aria_label_menu_debug_overlay_enable")))&&u(c,"aria-label",b)},i(C){w||(m(k),m(o.$$.fragment,C),m(p.$$.fragment,C),w=!0)},o(C){h(k),h(o.$$.fragment,C),h(p.$$.fragment,C),w=!1},d(C){C&&(v(e),v(t),v(a),v(c)),k&&k.d(C),F(o),F(p),S=!1,Ye(I)}}}function c_(i){let e,t,n,o,s,r,l,a,c;return n=new p1({}),{c(){e=T("li"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("menu_report")}`,u(t,"class","menu-icon-wrapper svelte-5r0p3"),u(s,"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){y(f,e,p),d(e,t),O(n,t,null),d(e,o),d(e,s),l=!0,a||(c=[de(e,"click",$e(i[68])),de(e,"keydown",i[92])],a=!0)},p:R,i(f){l||(m(n.$$.fragment,f),l=!0)},o(f){h(n.$$.fragment,f),l=!1},d(f){f&&v(e),F(n),a=!1,Ye(c)}}}function M1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b;n=new Gn({props:{direction:"left"}});let w=yt(i[8]),S=[];for(let k=0;k<w.length;k+=1)S[k]=A1(v1(i,w,k));let I=k=>h(S[k],1,1,()=>{S[k]=null});return{c(){var k;e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("submenu_quality")}`,l=N(),a=T("div"),c=N(),f=T("ul");for(let C=0;C<S.length;C+=1)S[C].c();u(t,"class","item menu-header svelte-5r0p3"),u(t,"aria-label",r=z("aria_label_submenu_back")),L(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]((k=i[17])==null?void 0:k.clientHeight,!0)),L(f,"items-mobile",i[34]),u(e,"class","menu menu-subList svelte-5r0p3"),L(e,"menu-desktop",!i[34]),L(e,"menu-mobile",i[34])},m(k,C){y(k,e,C),d(e,t),O(n,t,null),d(t,o),d(t,s),i[113](t),d(e,l),d(e,a),d(e,c),d(e,f);for(let E=0;E<S.length;E+=1)S[E]&&S[E].m(f,null);i[116](f),_=!0,g||(b=[de(t,"click",$e(i[66])),de(f,"keydown",i[80])],g=!0)},p(k,C){var E;if((!_||C[1]&8)&&L(t,"item-mobile",k[34]),C[0]&256|C[1]&536870920|C[2]&524288){w=yt(k[8]);let U;for(U=0;U<w.length;U+=1){let $=v1(k,w,U);S[U]?(S[U].p($,C),m(S[U],1)):(S[U]=A1($),S[U].c(),m(S[U],1),S[U].m(f,null))}for(ce(),U=w.length;U<S.length;U+=1)I(U);fe()}(!_||C[0]&131072&&p!==(p=k[73]((E=k[17])==null?void 0:E.clientHeight,!0)))&&u(f,"style",p),(!_||C[1]&8)&&L(f,"items-mobile",k[34]),(!_||C[1]&8)&&L(e,"menu-desktop",!k[34]),(!_||C[1]&8)&&L(e,"menu-mobile",k[34])},i(k){if(!_){m(n.$$.fragment,k);for(let C=0;C<w.length;C+=1)m(S[C]);_=!0}},o(k){h(n.$$.fragment,k),S=S.filter(Boolean);for(let C=0;C<S.length;C+=1)h(S[C]);_=!1},d(k){k&&v(e),F(n),i[113](null),Di(S,k),i[116](null),g=!1,Ye(b)}}}function V1(i){let e,t,n;return t=new nr({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,s){y(o,e,s),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&&v(e),F(t)}}}function L1(i){let e,t,n;var o=mo(i[148].value);function s(r){return{}}return o&&(t=gn(o,s(i))),{c(){e=T("div"),t&&H(t.$$.fragment),u(e,"class","menu-valueIcon-list svelte-5r0p3")},m(r,l){y(r,e,l),t&&O(t,e,null),n=!0},p(r,l){if(l[0]&256&&o!==(o=mo(r[148].value))){if(t){ce();let a=t;h(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(t=gn(o,s(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&&v(e),t&&F(t)}}}function A1(i){let e,t,n,o=i[148].displayValue+"",s,r,l=!i[34]&&mo(i[148].value),a,c,f,p,_,g,b=i[148].selected&&V1(i),w=l&&L1(i);function S(){return i[114](i[148])}function I(...k){return i[115](i[148],...k)}return{c(){e=T("li"),b&&b.c(),t=N(),n=T("div"),s=Ie(o),r=N(),w&&w.c(),a=N(),u(n,"class","svelte-5r0p3"),L(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),L(e,"item-mobile",i[34])},m(k,C){y(k,e,C),b&&b.m(e,null),d(e,t),d(e,n),d(n,s),d(e,r),w&&w.m(e,null),d(e,a),p=!0,_||(g=[de(e,"click",$e(S)),de(e,"keydown",I)],_=!0)},p(k,C){i=k,i[148].selected?b?C[0]&256&&m(b,1):(b=V1(i),b.c(),m(b,1),b.m(e,t)):b&&(ce(),h(b,1,1,()=>{b=null}),fe()),(!p||C[0]&256)&&o!==(o=i[148].displayValue+"")&&ze(s,o),(!p||C[1]&8)&&L(n,"quality-title-mobile",i[34]),C[0]&256|C[1]&8&&(l=!i[34]&&mo(i[148].value)),l?w?(w.p(i,C),C[0]&256|C[1]&8&&m(w,1)):(w=L1(i),w.c(),m(w,1),w.m(e,a)):w&&(ce(),h(w,1,1,()=>{w=null}),fe()),(!p||C[0]&256&&c!==(c=i[148].value))&&u(e,"data-value",c),(!p||C[0]&256&&f!==(f=i[148].displayValue))&&u(e,"aria-label",f),(!p||C[1]&8)&&L(e,"item-mobile",i[34])},i(k){p||(m(b),m(w),p=!0)},o(k){h(b),h(w),p=!1},d(k){k&&v(e),b&&b.d(),w&&w.d(),_=!1,Ye(g)}}}function B1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b;n=new Gn({props:{direction:"left"}});let w=yt(i[7]),S=[];for(let k=0;k<w.length;k+=1)S[k]=N1(g1(i,w,k));let I=k=>h(S[k],1,1,()=>{S[k]=null});return{c(){var k;e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("submenu_playback_rate")}`,l=N(),a=T("div"),c=N(),f=T("ul");for(let C=0;C<S.length;C+=1)S[C].c();u(t,"class","item menu-header svelte-5r0p3"),u(t,"aria-label",r=z("aria_label_submenu_back")),L(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]((k=i[18])==null?void 0:k.clientHeight,!0)),L(f,"items-mobile",i[34]),u(e,"class","menu menu-subList svelte-5r0p3"),L(e,"menu-desktop",!i[34]),L(e,"menu-mobile",i[34])},m(k,C){y(k,e,C),d(e,t),O(n,t,null),d(t,o),d(t,s),i[117](t),d(e,l),d(e,a),d(e,c),d(e,f);for(let E=0;E<S.length;E+=1)S[E]&&S[E].m(f,null);i[120](f),_=!0,g||(b=[de(t,"click",$e(i[66])),de(f,"keydown",i[83])],g=!0)},p(k,C){var E;if((!_||C[1]&8)&&L(t,"item-mobile",k[34]),C[0]&128|C[1]&8|C[2]&4194306){w=yt(k[7]);let U;for(U=0;U<w.length;U+=1){let $=g1(k,w,U);S[U]?(S[U].p($,C),m(S[U],1)):(S[U]=N1($),S[U].c(),m(S[U],1),S[U].m(f,null))}for(ce(),U=w.length;U<S.length;U+=1)I(U);fe()}(!_||C[0]&262144&&p!==(p=k[73]((E=k[18])==null?void 0:E.clientHeight,!0)))&&u(f,"style",p),(!_||C[1]&8)&&L(f,"items-mobile",k[34]),(!_||C[1]&8)&&L(e,"menu-desktop",!k[34]),(!_||C[1]&8)&&L(e,"menu-mobile",k[34])},i(k){if(!_){m(n.$$.fragment,k);for(let C=0;C<w.length;C+=1)m(S[C]);_=!0}},o(k){h(n.$$.fragment,k),S=S.filter(Boolean);for(let C=0;C<S.length;C+=1)h(S[C]);_=!1},d(k){k&&v(e),F(n),i[117](null),Di(S,k),i[120](null),g=!1,Ye(b)}}}function R1(i){let e,t,n;return t=new nr({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,s){y(o,e,s),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&&v(e),F(t)}}}function N1(i){let e,t,n,o=i[145].displayValue+"",s,r,l,a,c,f,p,_=i[145].selected&&R1(i);function g(){return i[118](i[145])}function b(...w){return i[119](i[145],...w)}return{c(){e=T("li"),_&&_.c(),t=N(),n=T("div"),s=Ie(o),r=N(),u(n,"class","svelte-5r0p3"),L(n,"quality-title-mobile",i[34]),u(e,"class","item item-quality svelte-5r0p3"),u(e,"data-value",l=i[145].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=i[145].displayValue),L(e,"item-mobile",i[34])},m(w,S){y(w,e,S),_&&_.m(e,null),d(e,t),d(e,n),d(n,s),d(e,r),c=!0,f||(p=[de(e,"click",$e(g)),de(e,"keydown",b)],f=!0)},p(w,S){i=w,i[145].selected?_?S[0]&128&&m(_,1):(_=R1(i),_.c(),m(_,1),_.m(e,t)):_&&(ce(),h(_,1,1,()=>{_=null}),fe()),(!c||S[0]&128)&&o!==(o=i[145].displayValue+"")&&ze(s,o),(!c||S[1]&8)&&L(n,"quality-title-mobile",i[34]),(!c||S[0]&128&&l!==(l=i[145].value))&&u(e,"data-value",l),(!c||S[0]&128&&a!==(a=i[145].displayValue))&&u(e,"aria-label",a),(!c||S[1]&8)&&L(e,"item-mobile",i[34])},i(w){c||(m(_),c=!0)},o(w){h(_),c=!1},d(w){w&&v(e),_&&_.d(),f=!1,Ye(p)}}}function D1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,ne,J,K;n=new Gn({props:{direction:"left"}});let Q=!i[5]&&O1(i),M=i[5]&&F1(i);return{c(){var Z;e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("submenu_traffic_saving")}`,l=N(),a=T("div"),c=N(),f=T("div"),p=T("ul"),_=T("li"),Q&&Q.c(),g=N(),b=T("div"),b.textContent=`${z("traffic_saving_disable")}`,S=N(),I=T("li"),M&&M.c(),k=N(),C=T("div"),C.textContent=`${z("traffic_saving_enable")}`,U=N(),$=T("div"),q=N(),le=T("div"),oe=T("span"),oe.textContent=`${z("traffic_saving_helper_text")}`,u(t,"class","item menu-header svelte-5r0p3"),u(t,"aria-label",r=z("aria_label_submenu_back")),L(t,"item-mobile",i[34]),u(a,"class","menu-divider svelte-5r0p3"),u(b,"class","svelte-5r0p3"),L(b,"quality-title-mobile",i[34]),u(_,"class","item item-traffic-saving svelte-5r0p3"),u(_,"role","menuitem"),u(_,"tabindex","0"),u(_,"aria-label",w=z("aria_label_submenu_traffic_saving_off")),L(_,"item-mobile",i[34]),u(C,"class","svelte-5r0p3"),L(C,"quality-title-mobile",i[34]),u(I,"class","item item-traffic-saving svelte-5r0p3"),u(I,"role","menuitem"),u(I,"tabindex","0"),u(I,"aria-label",E=`${z("aria_label_submenu_traffic_saving_on")}. ${z("traffic_saving_helper_text")}`),L(I,"item-mobile",i[34]),u(p,"class","items svelte-5r0p3"),u(p,"role","menu"),L(p,"items-mobile",i[34]),u($,"class","menu-divider svelte-5r0p3"),u(oe,"class","svelte-5r0p3"),u(le,"class","item item-helper-text svelte-5r0p3"),L(le,"item-mobile",i[34]),u(f,"style",P=i[73]((Z=i[19])==null?void 0:Z.clientHeight,!0)),u(e,"class","menu menu-subList menu-subList-traffic-saving svelte-5r0p3"),L(e,"menu-desktop",!i[34]),L(e,"menu-mobile",i[34])},m(Z,B){y(Z,e,B),d(e,t),O(n,t,null),d(t,o),d(t,s),i[121](t),d(e,l),d(e,a),d(e,c),d(e,f),d(f,p),d(p,_),Q&&Q.m(_,null),d(_,g),d(_,b),d(p,S),d(p,I),M&&M.m(I,null),d(I,k),d(I,C),i[126](p),d(f,U),d(f,$),d(f,q),d(f,le),d(le,oe),ne=!0,J||(K=[de(t,"click",$e(i[66])),de(_,"click",$e(i[122])),de(_,"keydown",i[123]),de(I,"click",$e(i[124])),de(I,"keydown",i[125]),de(p,"keydown",i[89])],J=!0)},p(Z,B){var te;(!ne||B[1]&8)&&L(t,"item-mobile",Z[34]),Z[5]?Q&&(ce(),h(Q,1,1,()=>{Q=null}),fe()):Q?B[0]&32&&m(Q,1):(Q=O1(Z),Q.c(),m(Q,1),Q.m(_,g)),(!ne||B[1]&8)&&L(b,"quality-title-mobile",Z[34]),(!ne||B[1]&8)&&L(_,"item-mobile",Z[34]),Z[5]?M?B[0]&32&&m(M,1):(M=F1(Z),M.c(),m(M,1),M.m(I,k)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),(!ne||B[1]&8)&&L(C,"quality-title-mobile",Z[34]),(!ne||B[1]&8)&&L(I,"item-mobile",Z[34]),(!ne||B[1]&8)&&L(p,"items-mobile",Z[34]),(!ne||B[1]&8)&&L(le,"item-mobile",Z[34]),(!ne||B[0]&524288&&P!==(P=Z[73]((te=Z[19])==null?void 0:te.clientHeight,!0)))&&u(f,"style",P),(!ne||B[1]&8)&&L(e,"menu-desktop",!Z[34]),(!ne||B[1]&8)&&L(e,"menu-mobile",Z[34])},i(Z){ne||(m(n.$$.fragment,Z),m(Q),m(M),ne=!0)},o(Z){h(n.$$.fragment,Z),h(Q),h(M),ne=!1},d(Z){Z&&v(e),F(n),i[121](null),Q&&Q.d(),M&&M.d(),i[126](null),J=!1,Ye(K)}}}function O1(i){let e,t,n;return t=new nr({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,s){y(o,e,s),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&&v(e),F(t)}}}function F1(i){let e,t,n;return t=new nr({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,s){y(o,e,s),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&&v(e),F(t)}}}function H1(i){let e,t,n,o,s,r,l,a,c,f,p,_;n=new Gn({props:{direction:"left"}});let g=yt(i[6]),b=[];for(let S=0;S<g.length;S+=1)b[S]=U1(b1(i,g,S));let w=S=>h(b[S],1,1,()=>{b[S]=null});return{c(){var S;e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),s=T("div"),s.textContent=`${z("subtitles_caption")}`,l=N(),a=T("ul");for(let I=0;I<b.length;I+=1)b[I].c();u(t,"class","item menu-header svelte-5r0p3"),u(t,"aria-label",r=z("aria_label_submenu_back")),L(t,"item-mobile",i[34]),u(a,"class","items svelte-5r0p3"),u(a,"role","menu"),u(a,"style",c=i[73]((S=i[20])==null?void 0:S.clientHeight,!0)),L(a,"items-mobile",i[34]),u(e,"class","menu menu-subList menu-subList-subtitles svelte-5r0p3"),L(e,"menu-desktop",!i[34]),L(e,"menu-mobile",i[34])},m(S,I){y(S,e,I),d(e,t),O(n,t,null),d(t,o),d(t,s),i[127](t),d(e,l),d(e,a);for(let k=0;k<b.length;k+=1)b[k]&&b[k].m(a,null);i[130](a),f=!0,p||(_=[de(t,"click",$e(i[66])),de(a,"keydown",i[86])],p=!0)},p(S,I){var k;if((!f||I[1]&8)&&L(t,"item-mobile",S[34]),I[0]&64|I[1]&8|I[2]&33554440){g=yt(S[6]);let C;for(C=0;C<g.length;C+=1){let E=b1(S,g,C);b[C]?(b[C].p(E,I),m(b[C],1)):(b[C]=U1(E),b[C].c(),m(b[C],1),b[C].m(a,null))}for(ce(),C=g.length;C<b.length;C+=1)w(C);fe()}(!f||I[0]&1048576&&c!==(c=S[73]((k=S[20])==null?void 0:k.clientHeight,!0)))&&u(a,"style",c),(!f||I[1]&8)&&L(a,"items-mobile",S[34]),(!f||I[1]&8)&&L(e,"menu-desktop",!S[34]),(!f||I[1]&8)&&L(e,"menu-mobile",S[34])},i(S){if(!f){m(n.$$.fragment,S);for(let I=0;I<g.length;I+=1)m(b[I]);f=!0}},o(S){h(n.$$.fragment,S),b=b.filter(Boolean);for(let I=0;I<b.length;I+=1)h(b[I]);f=!1},d(S){S&&v(e),F(n),i[127](null),Di(b,S),i[130](null),p=!1,Ye(_)}}}function z1(i){let e,t,n;return t=new nr({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","itemIcon svelte-5r0p3")},m(o,s){y(o,e,s),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&&v(e),F(t)}}}function U1(i){let e,t,n,o=i[142].displayValue+"",s,r,l,a,c,f,p,_=i[142].selected&&z1(i);function g(){return i[128](i[142])}function b(...w){return i[129](i[142],...w)}return{c(){e=T("li"),_&&_.c(),t=N(),n=T("div"),s=Ie(o),r=N(),u(n,"class","svelte-5r0p3"),L(n,"quality-title-mobile",i[34]),u(e,"class","item item-quality svelte-5r0p3"),u(e,"data-value",l=i[142].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=i[142].displayValue),L(e,"item-mobile",i[34])},m(w,S){y(w,e,S),_&&_.m(e,null),d(e,t),d(e,n),d(n,s),d(e,r),c=!0,f||(p=[de(e,"click",$e(g)),de(e,"keydown",b)],f=!0)},p(w,S){i=w,i[142].selected?_?S[0]&64&&m(_,1):(_=z1(i),_.c(),m(_,1),_.m(e,t)):_&&(ce(),h(_,1,1,()=>{_=null}),fe()),(!c||S[0]&64)&&o!==(o=i[142].displayValue+"")&&ze(s,o),(!c||S[1]&8)&&L(n,"quality-title-mobile",i[34]),(!c||S[0]&64&&l!==(l=i[142].value))&&u(e,"data-value",l),(!c||S[0]&64&&a!==(a=i[142].displayValue))&&u(e,"aria-label",a),(!c||S[1]&8)&&L(e,"item-mobile",i[34])},i(w){c||(m(_),c=!0)},o(w){h(_),c=!1},d(w){w&&v(e),_&&_.d(),f=!1,Ye(p)}}}function f_(i){let e,t,n,o,s,r,l=i[10]&&y1(i),a=i[12]&&M1(i),c=i[13]&&B1(i),f=i[15]&&D1(i),p=i[14]&&H1(i);return{c(){e=T("div"),l&&l.c(),t=N(),a&&a.c(),n=N(),c&&c.c(),o=N(),f&&f.c(),s=N(),p&&p.c(),u(e,"class","svelte-5r0p3"),L(e,"hidden",!i[10]),L(e,"container-mobile",i[34])},m(_,g){y(_,e,g),l&&l.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,s),p&&p.m(e,null),r=!0},p(_,g){_[10]?l?(l.p(_,g),g[0]&1024&&m(l,1)):(l=y1(_),l.c(),m(l,1),l.m(e,t)):l&&(ce(),h(l,1,1,()=>{l=null}),fe()),_[12]?a?(a.p(_,g),g[0]&4096&&m(a,1)):(a=M1(_),a.c(),m(a,1),a.m(e,n)):a&&(ce(),h(a,1,1,()=>{a=null}),fe()),_[13]?c?(c.p(_,g),g[0]&8192&&m(c,1)):(c=B1(_),c.c(),m(c,1),c.m(e,o)):c&&(ce(),h(c,1,1,()=>{c=null}),fe()),_[15]?f?(f.p(_,g),g[0]&32768&&m(f,1)):(f=D1(_),f.c(),m(f,1),f.m(e,s)):f&&(ce(),h(f,1,1,()=>{f=null}),fe()),_[14]?p?(p.p(_,g),g[0]&16384&&m(p,1)):(p=H1(_),p.c(),m(p,1),p.m(e,null)):p&&(ce(),h(p,1,1,()=>{p=null}),fe()),(!r||g[0]&1024)&&L(e,"hidden",!_[10]),(!r||g[1]&8)&&L(e,"container-mobile",_[34])},i(_){r||(m(l),m(a),m(c),m(f),m(p),r=!0)},o(_){h(l),h(a),h(c),h(f),h(p),r=!1},d(_){_&&v(e),l&&l.d(),a&&a.d(),c&&c.d(),f&&f.d(),p&&p.d()}}}var d_=18;function m_(i,e,t){let n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,{ref:ne=void 0}=e,{supportLink:J}=e,{playerControlsHeight:K=0}=e,{returnFocus:Q}=e,M=je(),Z=Rt(),B=M.state.currentQuality$;D(i,B,se=>t(102,w=se));let te=M.state.availableQualities$;D(i,te,se=>t(8,g=se));let Ce=M.state.autoQualityLimitingAvailable$;D(i,Ce,se=>t(106,C=se));let He=M.state.isAutoQualityEnabled$;D(i,He,se=>t(103,S=se));let Re=M.state.currentPlaybackRate$;D(i,Re,se=>t(9,b=se));let We=M.state.availablePlaybackRates$;D(i,We,se=>t(7,p=se));let Oe=M.state.currentSubtitle$;D(i,Oe,se=>t(35,oe=se));let be=M.state.availableSubtitlesList$;D(i,be,se=>t(6,c=se));let x=M.state.canDownload,he=M.state.hasMpegSources$;D(i,he,se=>t(107,E=se));let Le=M.ui.settingsMenuVisible;D(i,Le,se=>t(10,le=se));let Ue=M.ui.settingsMenuOpenedByKeyboard;D(i,Ue,se=>t(132,o=se));let xe=M.ui.isMobile;D(i,xe,se=>t(34,s=se));let _e=M.ui.mobileNotReportControlHidden$;D(i,_e,se=>t(104,I=se));let Te=M.state.canChangePlaybackSpeed$;D(i,Te,se=>t(105,k=se));let Ne=M.ui.isFullscreen;D(i,Ne,se=>t(135,q=se));let Ge=M.state.trafficSavingEnabled$;D(i,Ge,se=>t(5,l=se));let we=M.ui.playerSize;D(i,we,se=>t(134,$=se));let W=M.ui.debugPanelVisible;D(i,W,se=>t(36,P=se));let ye=M.ui.playerSize;D(i,ye,se=>t(133,U=se));let ue=M.state.isInteractiveTime$,Se=M.actions.internal.downloadVideo,qe=M.actions.internal.closeSettingsMenu,et=!0,ot=!1,tt=!1,ht=!1,at=!1,ge=!1;function lt(){o||Q==null||Q(),qe(),ge=!1}function Et(){t(11,et=!1),t(12,ot=!0)}function kt(){t(11,et=!1),t(15,at=!0)}function Ae(se){M.actions.internal.setQuality(se),lt()}function Dt(se){M.actions.internal.setTrafficSavingEnabled(se),lt()}function Lt(){t(11,et=!1),t(13,tt=!0)}function pe(se){M.actions.internal.setPlaybackRate(se),lt()}function Mt(){t(11,et=!1),t(14,ht=!0)}function rt(se){M.actions.internal.setSubtitle(se),lt()}function mt(){t(11,et=!0),t(12,ot=!1),t(13,tt=!1),t(14,ht=!1),t(15,at=!1)}function ut(){Se(),lt()}function Pe(){window.open(J,"_blank"),lt(),M.actions.internal.pause()}function Fe(){kr(M.actions.internal.getDebugTextData()),lt()}function gt(){W.set(!0),lt()}function Zt(){ge=!0}function Yi(){ge=!1}function an(se,nt,Yt){if(!se)return"...";let ti=nt.find(Ht=>Ht.value===se),Bi=ti?ti.displayValue:se;return Yt?se===q1.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:Bi}):Bi}let si,ai,vi,Qt,ui;function Qi(se=0,nt=!1){return s&&q&&nt?`max-height: ${Math.round($.height*.6)}px`:s?"":`max-height: ${U.height-d_-se-K}px; overflow: auto;`}let yi,wi,ci,ki,fi,Ci,Si,At,Ot,Bt,di=Ee(!1);D(i,di,se=>t(101,_=se));let Kt,mi,Xt=Ee(!1);D(i,Xt,se=>t(100,f=se));let ni,ct,Ft=Ee(!1);D(i,Ft,se=>t(99,a=se));let _t,Jt,pi=Ee(!1);D(i,pi,se=>t(98,r=se));let pn=se=>{cl(se,qe)},Xi=async se=>{Sr(se,Et,()=>{let nt=g.findIndex(Yt=>Yt.selected);return Bt.childNodes[nt]})},$t=async se=>{Tr(se,mt,di,qe)},oi=(se,nt)=>{xi(se,()=>Ae(nt))},Ti=async se=>{Sr(se,Lt,()=>{let nt=p.findIndex(Yt=>Yt.selected);return mi.childNodes[nt]})},Oi=async se=>{Tr(se,mt,Xt,qe)},Gt=(se,nt)=>{xi(se,()=>pe(nt))},Ct=async se=>{Sr(se,Mt,()=>{let nt=c.findIndex(Yt=>Yt.selected);return ct.childNodes[nt]})},Pi=async se=>{Tr(se,mt,Ft,qe)},Ji=(se,nt)=>{xi(se,()=>rt(nt))},ri=async se=>{Sr(se,kt,()=>{let nt=l?2:0;return Jt.childNodes[nt]})},$i=async se=>{Tr(se,mt,pi,qe)},hi=(se,nt)=>{xi(se,()=>Dt(nt))},un=se=>{xi(se,()=>ut())},en=se=>{xi(se,()=>Pe())},cn=se=>{xi(se,()=>Fe())},Fi=se=>{xi(se,()=>gt())};Pt(()=>{let se=ue.subscribe(nt=>{nt&&!s&&!ge&&!o&<()});return()=>{se()}});function Ii(se){me[se?"unshift":"push"](()=>{Ot=se,t(1,Ot)})}function jt(se){me[se?"unshift":"push"](()=>{Kt=se,t(2,Kt)})}function ei(se){me[se?"unshift":"push"](()=>{ni=se,t(3,ni)})}function _i(se){me[se?"unshift":"push"](()=>{_t=se,t(4,_t)})}function Hi(se){me[se?"unshift":"push"](()=>{ne=se,t(0,ne)})}function zi(se){me[se?"unshift":"push"](()=>{ai=se,t(17,ai)})}let bi=se=>Ae(se.value),Ei=(se,nt)=>oi(nt,se.value);function Mi(se){me[se?"unshift":"push"](()=>{Bt=se,t(29,Bt)})}function Ke(se){me[se?"unshift":"push"](()=>{vi=se,t(18,vi)})}let Ui=se=>pe(se.value),Wt=(se,nt)=>Gt(nt,se.value);function Be(se){me[se?"unshift":"push"](()=>{mi=se,t(30,mi)})}function Vi(se){me[se?"unshift":"push"](()=>{Qt=se,t(19,Qt)})}let tn=()=>Dt(!1),qi=se=>hi(se,!1),Li=()=>Dt(!0),fn=se=>hi(se,!0);function Ai(se){me[se?"unshift":"push"](()=>{Jt=se,t(32,Jt)})}function nn(se){me[se?"unshift":"push"](()=>{ui=se,t(20,ui)})}let xt=se=>rt(se),on=(se,nt)=>Ji(nt,se);function li(se){me[se?"unshift":"push"](()=>{ct=se,t(31,ct)})}return i.$$set=se=>{"ref"in se&&t(0,ne=se.ref),"supportLink"in se&&t(95,J=se.supportLink),"playerControlsHeight"in se&&t(96,K=se.playerControlsHeight),"returnFocus"in se&&t(97,Q=se.returnFocus)},i.$$.update=()=>{var se;if(i.$$.dirty[0]&1024)e:le&&(t(11,et=!0),t(12,ot=!1),t(13,tt=!1),t(14,ht=!1),t(15,at=!1));if(i.$$.dirty[3]&512)e:t(33,n=mo(w));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,si=an(w,g,S));if(i.$$.dirty[3]&18432)e:t(21,yi=x&&E&&!I);if(i.$$.dirty[3]&10240)e:t(22,wi=Z.features.trafficSaving&&!I&&C);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,ci=c.length>0&&!I);if(i.$$.dirty[3]&6144)e:t(24,ki=!!k&&!I);if(i.$$.dirty[3]&2048)e:t(25,fi=!I);if(i.$$.dirty[0]&32)e:t(26,Ci=l?z("traffic_saving_on"):z("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,Si=S?z("auto_quality_option"):w);if(i.$$.dirty[0]&640)e:t(28,At=(se=p.find(nt=>nt.value===b))==null?void 0:se.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:Cr(Ot,di,_);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:Cr(Kt,Xt,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:Cr(ni,Ft,a);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:Cr(_t,pi,r)},[ne,Ot,Kt,ni,_t,l,c,p,g,b,le,et,ot,tt,ht,at,si,ai,vi,Qt,ui,yi,wi,ci,ki,fi,Ci,Si,At,Bt,mi,ct,Jt,n,s,oe,P,Z,B,te,Ce,He,Re,We,Oe,be,he,Le,Ue,xe,_e,Te,Ne,Ge,we,W,ye,lt,Et,kt,Ae,Dt,Lt,pe,Mt,rt,mt,ut,Pe,Fe,gt,Zt,Yi,Qi,di,Xt,Ft,pi,pn,Xi,$t,oi,Ti,Oi,Gt,Ct,Pi,Ji,ri,$i,hi,un,en,cn,Fi,J,K,Q,r,a,f,_,w,S,I,k,C,E,Ii,jt,ei,_i,Hi,zi,bi,Ei,Mi,Ke,Ui,Wt,Be,Vi,tn,qi,Li,fn,Ai,nn,xt,on,li]}var ya=class extends j{constructor(e){super(),X(this,e,m_,f_,G,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},u_,[-1,-1,-1,-1,-1])}},wl=ya;function p_(i){ve(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function h_(i){let e,t,n;return t=new vl({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),H(t.$$.fragment),u(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,s){y(o,e,s),O(t,e,null),n=!0},p(o,s){let r={};s&8&&(r.isMobile=o[3]),s&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&&v(e),F(t)}}}function __(i){let e,t,n;function o(r){i[9](r)}let s={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[h_]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&2&&(a.className=r[1]?"opened":""),l&4&&(a.ariaLabel=r[2]),l&2&&(a.ariaExpanded=r[1]),l&4120&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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,s,{ref:r=void 0}=e,l=je(),a=l.state.currentQuality$;D(i,a,w=>t(4,s=w));let c=l.ui.settingsMenuVisible;D(i,c,w=>t(1,n=w));let f=l.actions.internal.toggleSettingsMenu,p=l.ui.isMobile;D(i,p,w=>t(3,o=w));let _;function g(w){let S=$o(w);f(S)}function b(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,_=n?z("tooltip_settings_on"):z("tooltip_settings_off"))},[r,n,_,o,s,a,c,p,g,b]}var wa=class extends j{constructor(e){super(),X(this,e,b_,__,G,{ref:0},p_)}},Ir=wa;function g_(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var ka=class extends j{constructor(e){super(),X(this,e,null,g_,G,{})}},K1=ka;function v_(i){let e,t;return e=new yl({}),{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 y_(i){let e,t;return e=new K1({}),{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 w_(i){let e,t,n,o,s=[y_,v_],r=[];function l(a,c){return a[0]?0:1}return e=l(i,-1),t=r[e]=s[e](i),{c(){t.c(),n=Xe()},m(a,c){r[e].m(a,c),y(a,n,c),o=!0},p(a,c){let f=e;e=l(a,c),e!==f&&(ce(),h(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t||(t=r[e]=s[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&&v(n),r[e].d(a)}}}function k_(i){let e,t;return e=new st({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Wn.KeyC,$$slots:{default:[w_]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let 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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function C_(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,s;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,s=n?z("tooltip_subtitles_on"):z("tooltip_subtitles_off"))},[n,o,s]}var Ca=class extends j{constructor(e){super(),X(this,e,C_,k_,G,{isSubtitlesEnabled:0,click:1})}},W1=Ca;function S_(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 Z1(i){let e,t;return{c(){e=T("span"),t=Ie(i[3]),u(e,"class","duration svelte-19o2urr")},m(n,o){y(n,e,o),d(e,t)},p(n,o){o&8&&ze(t,n[3])},d(n){n&&v(e)}}}function T_(i){let e,t,n,o,s=i[2]&&Z1(i);return{c(){e=T("div"),t=T("span"),n=Ie(i[4]),o=N(),s&&s.c(),u(t,"class","current svelte-19o2urr"),u(e,"class","time svelte-19o2urr"),L(e,"mobile",i[1])},m(r,l){y(r,e,l),d(e,t),d(t,n),d(e,o),s&&s.m(e,null),i[7](e)},p(r,[l]){l&16&&ze(n,r[4]),r[2]?s?s.p(r,l):(s=Z1(r),s.c(),s.m(e,null)):s&&(s.d(1),s=null),l&2&&L(e,"mobile",r[1])},i:R,o:R,d(r){r&&v(e),s&&s.d(),i[7](null)}}}function P_(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:s}=e,{showDuration:r=!0}=e,{ref:l}=e,a,c;function f(p){me[p?"unshift":"push"](()=>{l=p,t(0,l)})}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,s=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,l=p.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=Sn(o));if(i.$$.dirty&64)e:t(4,c=Sn(s))},[l,n,r,a,c,o,s,f]}var Sa=class extends j{constructor(e){super(),X(this,e,P_,T_,G,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},S_)}},kl=Sa;var $n=require("@vkontakte/videoplayer-shared");function I_(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 E_(i){let e,t,n,o,s,r;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("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(s,"class","cross svelte-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(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(l,a){y(l,e,a),d(e,t),d(t,n),d(t,o),d(t,s)},p(l,[a]){a&1&&u(e,"data-value",l[0]),a&1&&r!==(r="volume-"+l[0]+"-icon")&&u(e,"data-testid",r)},i:R,o:R,d(l){l&&v(e)}}}function M_(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,s=(l,a)=>a?"off":l>.5?"max":l>.2?"mid":l>0?"min":"off",r;return i.$$set=l=>{"volume"in l&&t(1,n=l.volume),"muted"in l&&t(2,o=l.muted)},i.$$.update=()=>{if(i.$$.dirty&6)e:t(0,r=s(n,o))},[r,n,o]}var Ta=class extends j{constructor(e){super(),X(this,e,M_,E_,G,{volume:1,muted:2},I_)}},Ro=Ta;var Rn=require("@vkontakte/videoplayer-shared");var Y1=require("@vkontakte/videoplayer-shared");var x1=require("@vkontakte/videoplayer-shared");function V_(i){let e,t,n=i[4].default,o=Wi(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),u(e,"class","overlay")},m(s,r){y(s,e,r),o&&o.m(e,null),i[5](e),t=!0},p(s,[r]){o&&o.p&&(!t||r&8)&&Gi(o,n,s,s[3],t?Zi(n,s[3],r,null):ji(s[3]),null)},i(s){t||(m(o,s),t=!0)},o(s){h(o,s),t=!1},d(s){s&&v(e),o&&o.d(s),i[5](null)}}}function L_(i,e,t){let n,{$$slots:o={},$$scope:s}=e,l=je().ui.overlayContainer$;D(i,l,_=>t(2,n=_));let a,c=_=>{!_||!a||!_.contains(a)||_.removeChild(a)},f=_=>{!_||!a||_.contains(a)||_.appendChild(a)};Pt(()=>(f(n),()=>c(n)));function p(_){me[_?"unshift":"push"](()=>{a=_,t(0,a)})}return i.$$set=_=>{"$$scope"in _&&t(3,s=_.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:f(n)},[a,l,n,s,o,p]}var Pa=class extends j{constructor(e){super(),X(this,e,L_,V_,G,{})}},G1=Pa;function A_(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 j1(i){let e,t;return e=new G1({props:{$$slots:{default:[B_]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&2097395&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},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,s,r,l;return{c(){e=T("div"),t=T("div"),n=Ie(i[1]),o=N(),s=T("div"),u(t,"class","content svelte-tny135"),u(s,"class","tooltip-pointer svelte-tny135"),u(s,"style",r=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),L(s,"bottom-placement-pointer",!i[8]),u(e,"class","tooltip svelte-tny135"),u(e,"style",l=`transform: translate(${i[6]}px, ${i[7]}px);`),L(e,"active",i[0])},m(a,c){y(a,e,c),d(e,t),d(t,n),d(e,o),d(e,s),i[20](e)},p(a,c){c&2&&ze(n,a[1]),c&32&&r!==(r=`transform: translate(${a[5]}px, ${a[9]}px) rotate(${a[8]?0:"180deg"});`)&&u(s,"style",r),c&192&&l!==(l=`transform: translate(${a[6]}px, ${a[7]}px);`)&&u(e,"style",l),c&1&&L(e,"active",a[0])},d(a){a&&v(e),i[20](null)}}}function R_(i){let e,t,n,o,s,r,l=i[18].default,a=Wi(l,i,i[21],null),c=i[1]&&j1(i);return{c(){e=T("div"),a&&a.c(),t=N(),c&&c.c(),n=Xe(),u(e,"class","tooltip-wrapper svelte-tny135"),L(e,"full-width",i[2])},m(f,p){y(f,e,p),a&&a.m(e,null),i[19](e),y(f,t,p),c&&c.m(f,p),y(f,n,p),o=!0,s||(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])],s=!0)},p(f,[p]){a&&a.p&&(!o||p&2097152)&&Gi(a,l,f,f[21],o?Zi(l,f[21],p,null):ji(f[21]),null),(!o||p&4)&&L(e,"full-width",f[2]),f[1]?c?(c.p(f,p),p&2&&m(c,1)):(c=j1(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&&(v(e),v(t),v(n)),a&&a.d(f),i[19](null),c&&c.d(f),s=!1,Ye(r)}}}var Er=5;function N_(i,e,t){let n,o,{$$slots:s={},$$scope:r}=e,{content:l=""}=e,{active:a=!1}=e,{translateX:c=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:_="top"}=e,{onVisibilityChange:g=x1.noop}=e,b=_==="top",w,S,I,k=0,C=b?Er:-Er,E=0,U=0,$=Rt(),q=je(),le=q.ui.playerSize;D(i,le,te=>t(24,o=te));let oe=q.ui.overlayContainer$;D(i,oe,te=>t(23,n=te));let P=q.getLogger().createComponentLog("Tooltip component"),ne=()=>{if(!n||!S||!w)return;let te=n.getBoundingClientRect(),Ce=w.getBoundingClientRect(),He=Ce.width,Re=S.clientWidth,We=o.width,Oe=(He-Re)/2,be=Ce.left+c-te.left,x=be+Oe,he=Ce.top+f-te.top,Le=Re/2-Er,Ue=x<8,xe=x+Re>We-8;Ue&&(x=8,Le=be+Ce.width/2-2.5*Er),xe&&(x=We-8-Re,Le=Ce.left-te.left+Ce.width/2-x-Er),t(6,E=x),t(7,U=he),t(5,k=Le)},J=()=>{try{if(!n||!w)return;ne(),t(0,a=!0)}catch(te){P({message:String(te)})}},K=()=>{t(0,a=!1)},Q=()=>{S&&(I||(I=window.setTimeout(J,$.controls.hideTimeoutTooltips)),a&&J())},M=()=>{K(),window.clearTimeout(I),I=void 0};Pt(ne),Hn(()=>window.clearTimeout(I));function Z(te){me[te?"unshift":"push"](()=>{w=te,t(3,w)})}function B(te){me[te?"unshift":"push"](()=>{S=te,t(4,S)})}return i.$$set=te=>{"content"in te&&t(1,l=te.content),"active"in te&&t(0,a=te.active),"translateX"in te&&t(14,c=te.translateX),"translateY"in te&&t(15,f=te.translateY),"isFullWidthWrapper"in te&&t(2,p=te.isFullWidthWrapper),"placement"in te&&t(16,_=te.placement),"onVisibilityChange"in te&&t(17,g=te.onVisibilityChange),"$$scope"in te&&t(21,r=te.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:g(a)},[a,l,p,w,S,k,E,U,b,C,le,oe,Q,M,c,f,_,g,s,Z,B,r]}var Ia=class extends j{constructor(e){super(),X(this,e,N_,R_,G,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},A_)}},Cl=Ia;function D_(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 O_(i){let e,t=i[19].default,n=Wi(t,i,i[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)&&Gi(n,t,o,o[24],e?Zi(t,o[24],s,null):ji(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 F_(i){let e,t;return e=new Cl({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[H_]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let 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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function H_(i){let e,t=i[19].default,n=Wi(t,i,i[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)&&Gi(n,t,o,o[24],e?Zi(t,o[24],s,null):ji(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 z_(i){let e,t,n,o,s,r,l,a,c,f=[F_,O_],p=[];function _(g,b){return g[3]&&g[5]&&!g[13]?0:1}return t=_(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",s=i[8]||null),zn(()=>i[23].call(e))},m(g,b){y(g,e,b),p[t].m(e,null),i[22](e),r=qo(e,i[23].bind(e)),l=!0,a||(c=[de(e,"pointerdown",$e(St(i[20]))),de(e,"click",$e(St(i[21])))],a=!0)},p(g,[b]){let w=t;t=_(g,b),t===w?p[t].p(g,b):(ce(),h(p[w],1,1,()=>{p[w]=null}),fe(),n=p[t],n?n.p(g,b):(n=p[t]=f[t](g),n.c()),m(n,1),n.m(e,null)),(!l||b&4&&o!==(o="btn-container "+g[2]+" svelte-p9r045"))&&u(e,"class",o),(!l||b&256&&s!==(s=g[8]||null))&&u(e,"aria-hidden",s)},i(g){l||(m(n),l=!0)},o(g){h(n),l=!1},d(g){g&&v(e),p[t].d(),i[22](null),r(),a=!1,Ye(c)}}}function U_(i,e,t){let n,o,{$$slots:s={},$$scope:r}=e,{className:l=""}=e,{disabled:a=!1}=e,{hasTooltip:c=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:_=!0}=e,{tooltipContent:g=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:S=z("tooltip_button_disabled")}=e,{isAriaHidden:I=!1}=e,{onTooltipVisibilityChange:k=Y1.noop}=e,{initialTranslateXPx:C=0}=e,{initialTranslateYPx:E=-18}=e,U=je(),$=U.ui.isMobile;D(i,$,K=>t(13,o=K));let q=U.state.graphIsOpened$;D(i,q,K=>t(18,n=K));let le;function oe(K){Cn.call(this,i,K)}function P(K){Cn.call(this,i,K)}function ne(K){me[K?"unshift":"push"](()=>{f=K,t(0,f)})}function J(){p=this.clientWidth,t(1,p)}return i.$$set=K=>{"className"in K&&t(2,l=K.className),"disabled"in K&&t(16,a=K.disabled),"hasTooltip"in K&&t(3,c=K.hasTooltip),"ref"in K&&t(0,f=K.ref),"width"in K&&t(1,p=K.width),"isFullWidthTooltip"in K&&t(4,_=K.isFullWidthTooltip),"tooltipContent"in K&&t(5,g=K.tooltipContent),"tooltipActive"in K&&t(6,b=K.tooltipActive),"tooltipPlacement"in K&&t(7,w=K.tooltipPlacement),"disabledTooltipContent"in K&&t(17,S=K.disabledTooltipContent),"isAriaHidden"in K&&t(8,I=K.isAriaHidden),"onTooltipVisibilityChange"in K&&t(9,k=K.onTooltipVisibilityChange),"initialTranslateXPx"in K&&t(10,C=K.initialTranslateXPx),"initialTranslateYPx"in K&&t(11,E=K.initialTranslateYPx),"$$scope"in K&&t(24,r=K.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:a?t(12,le=n?z("tooltip_disabled_when_graph_on"):S):t(12,le=g)},[f,p,l,c,_,g,b,w,I,k,C,E,le,o,$,q,a,S,n,s,oe,P,ne,J,r]}var Ea=class extends j{constructor(e){super(),X(this,e,U_,z_,G,{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},D_)}},Vt=Ea;function q_(i){let e,t,n,o,s;return{c(){e=V("svg"),t=V("rect"),o=V("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",s=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,l){y(r,e,l),d(e,t),d(e,o)},p(r,[l]){l&1&&n!==(n=r[0]?1:.24)&&u(t,"fill-opacity",n),l&1&&s!==(s=r[0]?"var(--interactive-episode-complete)":"white")&&u(o,"fill",s)},i:R,o:R,d(r){r&&v(e)}}}function K_(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ma=class extends j{constructor(e){super(),X(this,e,K_,q_,G,{completed:0})}},Sl=Ma;function W_(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 Z_(i){let e,t,n,o,s;return t=new Sl({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}%`),zn(()=>i[3].call(e)),L(e,"disabled",i[1])},m(r,l){y(r,e,l),O(t,e,null),o=qo(e,i[3].bind(e)),s=!0},p(r,l){let a={};l&1&&(a.completed=!!r[0].completed),t.$set(a),(!s||l&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&u(e,"style",n),(!s||l&2)&&L(e,"disabled",r[1])},i(r){s||(m(t.$$.fragment,r),s=!0)},o(r){h(t.$$.fragment,r),s=!1},d(r){r&&v(e),F(t),o()}}}function G_(i){let e,t;return e=new Vt({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:[Z_]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let s={};o&1&&(s.tooltipContent=z(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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function j_(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,s;function r(){s=this.clientWidth,t(2,s)}return i.$$set=l=>{"videoEpisode"in l&&t(0,n=l.videoEpisode),"disabled"in l&&t(1,o=l.disabled)},[n,o,s,r]}var Va=class extends j{constructor(e){super(),X(this,e,j_,G_,G,{videoEpisode:0,disabled:1},W_)}},Q1=Va;function x_(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 J1(i){let e,t,n,o,s,r,l,a,c;return{c(){e=T("div"),t=T("div"),n=T("div"),s=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",l=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),L(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}%`),L(e,"mobile",i[1])},m(f,p){y(f,e,p),d(e,t),d(t,n),d(t,s),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&&l!==(l=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(r,"style",l),p&2&&L(r,"mobile",f[1]),p&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),p&2&&L(e,"mobile",f[1])},d(f){f&&v(e)}}}function Y_(i){let e,t=yt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=J1(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,s){y(o,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[s]){if(s&3){t=yt(o[0]);let r;for(r=0;r<t.length;r+=1){let l=X1(o,t,r);n[r]?n[r].p(l,s):(n[r]=J1(l),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:R,o:R,d(o){o&&v(e),Di(n,o)}}}function Q_(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=s=>{"videoEpisodes"in s&&t(0,n=s.videoEpisodes),"isMobile"in s&&t(1,o=s.isMobile)},[n,o]}var La=class extends j{constructor(e){super(),X(this,e,Q_,Y_,G,{videoEpisodes:0,isMobile:1},x_)}},$1=La;function X_(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 ed(i,e,t){let n=i.slice();return n[48]=e[t],n}function td(i){let e,t,n=yt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=nd(ed(i,n,r));let s=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"),L(e,"mobile",i[5]),L(e,"hidden",i[5]&&!i[20])},m(r,l){y(r,e,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);t=!0},p(r,l){if(l[0]&2097664){n=yt(r[21]);let a;for(a=0;a<n.length;a+=1){let c=ed(r,n,a);o[a]?(o[a].p(c,l),m(o[a],1)):(o[a]=nd(c),o[a].c(),m(o[a],1),o[a].m(e,null))}for(ce(),a=n.length;a<o.length;a+=1)s(a);fe()}(!t||l[0]&32)&&L(e,"mobile",r[5]),(!t||l[0]&1048608)&&L(e,"hidden",r[5]&&!r[20])},i(r){if(!t){for(let l=0;l<n.length;l+=1)m(o[l]);t=!0}},o(r){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)h(o[l]);t=!1},d(r){r&&v(e),Di(o,r)}}}function id(i){let e,t;return e=new Q1({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&2097152&&(s.videoEpisode=n[48]),o[0]&512&&(s.disabled=n[9]),e.$set(s)},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=i[48].interactive&&id(i);return{c(){n&&n.c(),e=Xe()},m(o,s){n&&n.m(o,s),y(o,e,s),t=!0},p(o,s){o[48].interactive?n?(n.p(o,s),s[0]&2097152&&m(n,1)):(n=id(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&&v(e),n&&n.d(o)}}}function J_(i){let e,t,n,o,s,r;return{c(){e=T("div"),t=T("div"),o=N(),s=T("div"),u(t,"class","loaded svelte-1golz1y"),u(t,"style",n=`transform: translateX(${i[11]*100}%);`),u(s,"class","filled svelte-1golz1y"),u(s,"style",r=`transform: translateX(${i[12]*100}%);`),L(s,"active-live",i[4]),L(s,"ads",i[6]),u(e,"class","bars svelte-1golz1y")},m(l,a){y(l,e,a),d(e,t),d(e,o),d(e,s)},p(l,a){a[0]&2048&&n!==(n=`transform: translateX(${l[11]*100}%);`)&&u(t,"style",n),a[0]&4096&&r!==(r=`transform: translateX(${l[12]*100}%);`)&&u(s,"style",r),a[0]&16&&L(s,"active-live",l[4]),a[0]&64&&L(s,"ads",l[6])},i:R,o:R,d(l){l&&v(e)}}}function $_(i){let e,t;return e=new $1({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&2097152&&(s.videoEpisodes=n[21]),o[0]&32&&(s.isMobile=n[5]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function e4(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b=i[8]&&td(i),w=[$_,J_],S=[];function I(k,C){return k[21].length?0:1}return n=I(i,[-1,-1]),o=S[n]=w[n](i),{c(){var k;b&&b.c(),e=N(),t=T("div"),o.c(),s=N(),r=T("div"),l=T("div"),u(l,"class","handle svelte-1golz1y"),L(l,"active-live",i[4]),u(r,"class","handleWrap svelte-1golz1y"),u(r,"style",a=`transform: translateX(${i[13]*100}%);`),L(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=(k=i[1])!=null?k:null),L(t,"disabled",i[9]),L(t,"slider-dragging",i[20]),L(t,"hidden",i[2]),L(t,"slider-vertical",i[3]),L(t,"no-handle",i[10]),L(t,"square",i[7])},m(k,C){b&&b.m(k,C),y(k,e,C),y(k,t,C),S[n].m(t,null),d(t,s),d(t,r),d(r,l),i[42](t),p=!0,_||(g=[de(t,"pointerdown",St(i[22])),de(t,"pointermove",St(i[23])),de(t,"pointerup",St(i[24])),de(t,"pointerenter",St(i[25])),de(t,"pointerleave",St(i[26])),de(t,"click",$e(Rn.noop)),de(t,"wheel",i[27])],_=!0)},p(k,C){var U;k[8]?b?(b.p(k,C),C[0]&256&&m(b,1)):(b=td(k),b.c(),m(b,1),b.m(e.parentNode,e)):b&&(ce(),h(b,1,1,()=>{b=null}),fe());let E=n;n=I(k,C),n===E?S[n].p(k,C):(ce(),h(S[E],1,1,()=>{S[E]=null}),fe(),o=S[n],o?o.p(k,C):(o=S[n]=w[n](k),o.c()),m(o,1),o.m(t,s)),(!p||C[0]&16)&&L(l,"active-live",k[4]),(!p||C[0]&8192&&a!==(a=`transform: translateX(${k[13]*100}%);`))&&u(r,"style",a),(!p||C[0]&1024)&&L(r,"hidden",k[10]),(!p||C[0]&1&&c!==(c="slider "+k[0]+" svelte-1golz1y"))&&u(t,"class",c),(!p||C[0]&16384)&&u(t,"aria-label",k[14]),(!p||C[0]&32768)&&u(t,"aria-valuemin",k[15]),(!p||C[0]&65536)&&u(t,"aria-valuemax",k[16]),(!p||C[0]&131072)&&u(t,"aria-valuenow",k[17]),(!p||C[0]&262144)&&u(t,"aria-valuetext",k[18]),(!p||C[0]&2&&f!==(f=(U=k[1])!=null?U:null))&&u(t,"data-testid",f),(!p||C[0]&513)&&L(t,"disabled",k[9]),(!p||C[0]&1048577)&&L(t,"slider-dragging",k[20]),(!p||C[0]&5)&&L(t,"hidden",k[2]),(!p||C[0]&9)&&L(t,"slider-vertical",k[3]),(!p||C[0]&1025)&&L(t,"no-handle",k[10]),(!p||C[0]&129)&&L(t,"square",k[7])},i(k){p||(m(b),m(o),p=!0)},o(k){h(b),h(o),p=!1},d(k){k&&(v(e),v(t)),b&&b.d(k),S[n].d(),i[42](null),_=!1,Ye(g)}}}function t4(i,e,t){let n,o,{className:s=""}=e,{testId:r=void 0}=e,{isHidden:l=!1}=e,{isVertical:a=!1}=e,{isActiveLive:c=!1}=e,{isMobile:f=!1}=e,{isAds:p=!1}=e,{squareBorders:_=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:w=!1}=e,{disabled:S=!1}=e,{hideHandel:I=!1}=e,k,C,{onPointerDown:E=Rn.noop}=e,{onHandleMove:U=Rn.noop}=e,{onPointerUp:$=Rn.noop}=e,{onPointerEnter:q=Rn.noop}=e,{onPointerMove:le=Rn.noop}=e,{onPointerLeave:oe=Rn.noop}=e,{onWheelUp:P=Rn.noop}=e,{onWheelDown:ne=Rn.noop}=e,{onWheelLeft:J=Rn.noop}=e,{onWheelRight:K=Rn.noop}=e,{loadedProgress:Q=0}=e,{filledProgress:M=0}=e,{handleProgress:Z=0}=e,{ariaLabel:B=""}=e,{ariaValueMin:te=void 0}=e,{ariaValueMax:Ce=void 0}=e,{ariaValueNow:He=void 0}=e,{ariaValueText:Re=""}=e,We=Rt(),Oe=!1,be;function x(W){if(Oe)return;t(20,Oe=!0),C=k.getBoundingClientRect();let ye=Te(W.clientX,W.clientY);E(ye),k.setPointerCapture(W.pointerId)}function he(W){let ye=Te(W.clientX,W.clientY),ue=Ne(W.clientX);le(ye,ue,C.width),Oe&&U(ye)}function Le(W){if(!Oe)return;t(20,Oe=!1);let ye=Te(W.clientX,W.clientY);$(ye)}function Ue(W){C=k.getBoundingClientRect();let ye=Te(W.clientX,W.clientY),ue=Ne(W.clientX);q(ye,ue,C.width)}function xe(){oe()}function _e(W){b&&(W.preventDefault(),W.deltaY<0?P():W.deltaY>0?ne():W.deltaX>0?K():J())}function Te(W,ye){return a?Math.max(0,Math.min(1,(C.height-(ye-C.top))/C.height)):Math.min(Math.max(W-C.x,0),C.width)/C.width}function Ne(W){return Math.min(Math.max(W-C.x,0),C.width)}function Ge(W,ye){let ue=We.features.episodesClustering&&!w?We.episodeMinWidthPc:0,Se=[],qe=0,et=0,ot=0;for(let at=1;at<g.length;at++)et=g[at].time/be*100,et-qe>ue&&(Se.push({from:qe,width:Math.max(0,et-qe),loadedWidth:Math.max(0,Math.min(et,W)-qe),filledWidth:Math.max(0,Math.min(et,ye)-qe),interactive:g[at-1].interactive,completed:g[at-1].completed}),qe=g[at].time/be*100,ot++);let tt={from:qe,width:Math.max(0,100-qe),loadedWidth:Math.max(0,Math.min(W,100)-qe),filledWidth:Math.max(0,Math.min(ye,100)-qe),interactive:g[ot].interactive,completed:g[ot].completed};100-qe<ue?(ot-=1,Se[ot].width+=100-qe,Se[ot].loadedWidth+=Math.max(0,Math.min(W,100)-qe),Se[ot].filledWidth+=Math.max(0,Math.min(ye,100)-qe)):Se[ot]=tt;let ht=g[0].time;if(ht!==0){let at=ht/be*100;Se.unshift({from:0,width:at,loadedWidth:Math.min(at,W),filledWidth:Math.min(at,ye)})}return Se}function we(W){me[W?"unshift":"push"](()=>{k=W,t(19,k)})}return i.$$set=W=>{"className"in W&&t(0,s=W.className),"testId"in W&&t(1,r=W.testId),"isHidden"in W&&t(2,l=W.isHidden),"isVertical"in W&&t(3,a=W.isVertical),"isActiveLive"in W&&t(4,c=W.isActiveLive),"isMobile"in W&&t(5,f=W.isMobile),"isAds"in W&&t(6,p=W.isAds),"squareBorders"in W&&t(7,_=W.squareBorders),"videoEpisodes"in W&&t(28,g=W.videoEpisodes),"withWheelHandler"in W&&t(29,b=W.withWheelHandler),"isInteractive"in W&&t(8,w=W.isInteractive),"disabled"in W&&t(9,S=W.disabled),"hideHandel"in W&&t(10,I=W.hideHandel),"onPointerDown"in W&&t(30,E=W.onPointerDown),"onHandleMove"in W&&t(31,U=W.onHandleMove),"onPointerUp"in W&&t(32,$=W.onPointerUp),"onPointerEnter"in W&&t(33,q=W.onPointerEnter),"onPointerMove"in W&&t(34,le=W.onPointerMove),"onPointerLeave"in W&&t(35,oe=W.onPointerLeave),"onWheelUp"in W&&t(36,P=W.onWheelUp),"onWheelDown"in W&&t(37,ne=W.onWheelDown),"onWheelLeft"in W&&t(38,J=W.onWheelLeft),"onWheelRight"in W&&t(39,K=W.onWheelRight),"loadedProgress"in W&&t(11,Q=W.loadedProgress),"filledProgress"in W&&t(12,M=W.filledProgress),"handleProgress"in W&&t(13,Z=W.handleProgress),"ariaLabel"in W&&t(14,B=W.ariaLabel),"ariaValueMin"in W&&t(15,te=W.ariaValueMin),"ariaValueMax"in W&&t(16,Ce=W.ariaValueMax),"ariaValueNow"in W&&t(17,He=W.ariaValueNow),"ariaValueText"in W&&t(18,Re=W.ariaValueText)},i.$$.update=()=>{var W;if(i.$$.dirty[0]&65536)e:t(40,be=Ce!=null?Ce:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=((W=g[g.length-1])==null?void 0:W.time)<be);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=g.length&&n&&be?Ge(Q*100,M*100):[])},[s,r,l,a,c,f,p,_,w,S,I,Q,M,Z,B,te,Ce,He,Re,k,Oe,o,x,he,Le,Ue,xe,_e,g,b,E,U,$,q,le,oe,P,ne,J,K,be,n,we]}var Aa=class extends j{constructor(e){super(),X(this,e,t4,e4,G,{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},X_,[-1,-1])}},or=Aa;var Tn=(i,e)=>To[i]>=To[e],od=(i,e)=>To[i]<To[e],Tl=(i,e)=>To[i]<=To[e],rd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function i4(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 n4(i){let e,t;return e=new Ro({props:{volume:i[3],muted:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&8&&(s.volume=n[3]),o[0]&2&&(s.muted=n[1]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function o4(i){let e,t;return e=new st({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Wn.KeyM,$$slots:{default:[n4]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let 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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ld(i){let e,t,n;return t=new or({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]:$n.noop,onPointerLeave:i[2]?i[20]:$n.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"),L(e,"volumeBar-vertical",i[2])},m(o,s){y(o,e,s),O(t,e,null),n=!0},p(o,s){let r={};s[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),s[0]&36&&(r.isHidden=o[2]&&!o[5]),s[0]&4&&(r.isVertical=o[2]),s[0]&4&&(r.onPointerEnter=o[2]?o[19]:$n.noop),s[0]&4&&(r.onPointerLeave=o[2]?o[20]:$n.noop),s[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),s[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),s[0]&256&&(r.filledProgress=o[8]),s[0]&256&&(r.handleProgress=o[8]),s[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||s[0]&4)&&L(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&&v(e),F(t)}}}function r4(i){let e,t,n,o,s,r;t=new Cl({props:{content:i[6],translateY:-18,$$slots:{default:[o4]},$$scope:{ctx:i}}});let l=i[4]&&ld(i);return{c(){e=T("div"),H(t.$$.fragment),n=N(),l&&l.c(),u(e,"class","volumeBar-container svelte-1l78lz9"),L(e,"vertical",i[2])},m(a,c){y(a,e,c),O(t,e,null),d(e,n),l&&l.m(e,null),o=!0,s||(r=[de(e,"mouseenter",function(){gi(i[2]?i[21]:$n.noop)&&(i[2]?i[21]:$n.noop).apply(this,arguments)}),de(e,"mouseleave",function(){gi(i[2]?i[22]:$n.noop)&&(i[2]?i[22]:$n.noop).apply(this,arguments)}),de(e,"wheel",St(i[23]))],s=!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]?l?(l.p(i,c),c[0]&16&&m(l,1)):(l=ld(i),l.c(),m(l,1),l.m(e,null)):l&&(ce(),h(l,1,1,()=>{l=null}),fe()),(!o||c[0]&4)&&L(e,"vertical",i[2])},i(a){o||(m(t.$$.fragment,a),m(l),o=!0)},o(a){h(t.$$.fragment,a),h(l),o=!1},d(a){a&&v(e),F(t),l&&l.d(),s=!1,Ye(r)}}}function l4(i,e,t){var Oe,be;let n,o,s,r,{click:l}=e,a=je(),c=Rt(),f=a.state.volume$;D(i,f,x=>t(3,n=x));let p=a.state.muted$;D(i,p,x=>t(25,r=x));let _=a.actions.internal.setVolume,g=a.ui.currentGridType$;D(i,g,x=>t(24,s=x));let b=(Oe=a.callbacks)==null?void 0:Oe.onAudioDoesNotExistHint,w=(be=a.callbacks)==null?void 0:be.onAudioDisabledHint,S=a.state.isAudioAvailable$;D(i,S,x=>t(4,o=x));let I=a.state.isAudioDisabled,k=!1,C,E,U,$,q,le,oe=1,P=!1,ne=!1;function J(x){oe=n,_(x)}function K(){pl(a,n,c.controls.volumeStepWheel)}function Q(){hl(a,n,c.controls.volumeStepWheel)}function M(x){_(x)}function Z(x){let he=x;_(he,he===0?oe:he)}function B(){P=!0}function te(){P=!1,Re()}function Ce(){clearTimeout(C),t(5,k=!0)}function He(){Re()}function Re(){C=window.setTimeout(()=>{P||t(5,k=!1)},c.controls.volumeBarTimeout)}function We(x){x.deltaY<0?K():x.deltaY>0&&Q()}return i.$$set=x=>{"click"in x&&t(0,l=x.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,$=!o||r);if(i.$$.dirty[0]&16777216)e:t(2,q=Tl(s,"s"));if(i.$$.dirty[0]&6)e:q?t(6,E=""):t(6,E=$?z("tooltip_volume"):z("tooltip_volume_muted")),t(7,U=$?z("tooltip_volume"):z("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,le=$?0:n);if(i.$$.dirty[0]&16)e:t(9,ne=I&&!w||!o&&!b)},[l,$,q,n,o,k,E,U,le,ne,f,p,g,S,J,K,Q,M,Z,B,te,Ce,He,We,s,r]}var Ba=class extends j{constructor(e){super(),X(this,e,l4,r4,G,{click:0},i4,[-1,-1])}},sd=Ba;var ud=require("@vkontakte/videoplayer-shared");function s4(i){let e;return{c(){e=V("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){y(t,e,n)},d(t){t&&v(e)}}}function a4(i){let e;return{c(){e=V("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){y(t,e,n)},d(t){t&&v(e)}}}function u4(i){let e,t,n;function o(l,a){return l[0]?a4:s4}let s=o(i,-1),r=s(i);return{c(){e=V("svg"),t=V("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(l,a){y(l,e,a),d(e,t),r.m(t,null)},p(l,[a]){s!==(s=o(l,a))&&(r.d(1),r=s(l),r&&(r.c(),r.m(t,null))),a&1&&n!==(n=l[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:R,o:R,d(l){l&&v(e),r.d()}}}function c4(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ra=class extends j{constructor(e){super(),X(this,e,c4,u4,G,{isFullscreen:0})}},ad=Ra;function f4(i){let e,t;return e=new ad({props:{isFullscreen:i[0]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&1&&(s.isFullscreen=n[0]),e.$set(s)},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;return e=new st({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Wn.KeyF,$$slots:{default:[f4]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let 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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function m4(i,e,t){let{isFullscreen:n=!1}=e,{click:o=ud.noop}=e,s;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,s=n?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off"))},[n,o,s]}var Na=class extends j{constructor(e){super(),X(this,e,m4,d4,G,{isFullscreen:0,click:1})}},Pl=Na;function p4(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var Da=class extends j{constructor(e){super(),X(this,e,null,p4,G,{})}},rr=Da;function h4(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var Oa=class extends j{constructor(e){super(),X(this,e,null,h4,G,{})}},Il=Oa;var fd=require("@vkontakte/videoplayer-shared");function _4(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 cd(i){let e;return{c(){e=T("div"),u(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){y(t,e,n)},d(t){t&&v(e)}}}function b4(i){let e,t,n,o,s=i[1]&&cd(i);var r=i[8];function l(a){return{}}return r&&(n=gn(r,l(i))),{c(){s&&s.c(),e=N(),t=T("div"),n&&H(n.$$.fragment),u(t,"class","svelte-1ot3duq"),L(t,"mobile",i[1])},m(a,c){s&&s.m(a,c),y(a,e,c),y(a,t,c),n&&O(n,t,null),o=!0},p(a,c){if(a[1]?s||(s=cd(a),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),c&256&&r!==(r=a[8])){if(n){ce();let f=n;h(f.$$.fragment,1,0,()=>{F(f,1)}),fe()}r?(n=gn(r,l(a)),H(n.$$.fragment),m(n.$$.fragment,1),O(n,t,null)):n=null}(!o||c&2)&&L(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&&(v(e),v(t)),s&&s.d(a),n&&F(n)}}}function g4(i){let e,t,n;function o(r){i[13](r)}let s={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:Wn.KeyK,$$slots:{default:[b4]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&10&&(a.className=(r[1]?"btn-m--play":"")+" "+r[3]),l&112&&(a.click=r[5]?r[6]:r[4]),l&4&&(a.disabled=r[2]),l&128&&(a.ariaLabel=r[7]),l&33026&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 v4(i,e,t){let n,o,{fakeIsPlaying$:s}=An();D(i,s,k=>t(12,o=k));let{ref:r=void 0}=e,{isMobile:l=!1}=e,{isPlaying:a=!1}=e,{disabled:c=!1}=e,{className:f=""}=e,{click:p=fd.noop}=e,{toggle:_}=s,g,b,w,S;function I(k){r=k,t(0,r)}i.$$set=k=>{"ref"in k&&t(0,r=k.ref),"isMobile"in k&&t(1,l=k.isMobile),"isPlaying"in k&&t(10,a=k.isPlaying),"disabled"in k&&t(2,c=k.disabled),"className"in k&&t(3,f=k.className),"click"in k&&t(4,p=k.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,b=o!==null);if(i.$$.dirty&5152)e:t(11,w=b?o:a);if(i.$$.dirty&2048)e:t(7,S=w?z("tooltip_pause"):z("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=w?Il:rr)};e:t(6,g=_);return[r,l,c,f,p,b,g,S,n,s,a,w,o,I]}var Fa=class extends j{constructor(e){super(),X(this,e,v4,g4,G,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},_4)}},Mr=Fa;function y4(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 w4(i){let e,t,n;return{c(){e=V("svg"),t=V("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"),L(e,"prev",i[0]),L(e,"mobile",i[1])},m(o,s){y(o,e,s),d(e,t)},p(o,[s]){s&1&&n!==(n=o[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),s&1&&L(e,"prev",o[0]),s&2&&L(e,"mobile",o[1])},i:R,o:R,d(o){o&&v(e)}}}function k4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e;return i.$$set=s=>{"isPrev"in s&&t(0,n=s.isPrev),"isMobile"in s&&t(1,o=s.isMobile)},[n,o]}var Ha=class extends j{constructor(e){super(),X(this,e,k4,w4,G,{isPrev:0,isMobile:1},y4)}},dd=Ha;function C4(i){let e,t;return e=new dd({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 s={};o&2&&(s.isMobile=n[1]),o&8&&(s.isPrev=n[3]==="prev"),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function S4(i){let e,t,n;function o(r){i[6](r)}let s={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[C4]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&8&&(a.testId="btn-"+r[3]),l&4&&(a.disabled=r[2]),l&32&&(a.ariaLabel=r[5]),l&16&&(a.click=r[4]),l&138&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 T4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{type:r}=e,{click:l}=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,s=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,l=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,a=r==="prev"?z("tooltip_previous"):z("tooltip_next"))},[n,o,s,r,l,a,c]}var za=class extends j{constructor(e){super(),X(this,e,T4,S4,G,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},lr=za;function P4(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var Ua=class extends j{constructor(e){super(),X(this,e,null,P4,G,{})}},md=Ua;function I4(i){ve(i,"svelte-1bbobod",".mobile.svelte-1bbobod{transform:scale(1.1) translateY(-1px)}")}function pd(i){let e,t,n,o,s,r,l;return{c(){e=V("path"),t=V("path"),n=V("path"),o=V("path"),s=V("path"),r=V("path"),l=V("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(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(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(l,"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(l,"fill","white")},m(a,c){y(a,e,c),y(a,t,c),y(a,n,c),y(a,o,c),y(a,s,c),y(a,r,c),y(a,l,c)},d(a){a&&(v(e),v(t),v(n),v(o),v(s),v(r),v(l))}}}function E4(i){let e,t,n,o=!i[0]&&pd(i);return{c(){e=V("svg"),t=V("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"),L(e,"mobile",i[1])},m(s,r){y(s,e,r),d(e,t),o&&o.m(e,null)},p(s,[r]){s[0]?o&&(o.d(1),o=null):o||(o=pd(s),o.c(),o.m(e,null)),r&4&&u(e,"width",s[2]),r&4&&n!==(n="0 0 "+(s[2]+1)+" 20")&&u(e,"viewBox",n),r&8&&u(e,"data-testid",s[3]),r&2&&L(e,"mobile",s[1])},i:R,o:R,d(s){s&&v(e),o&&o.d()}}}function M4(i,e,t){let{short:n=!1}=e,{isMobile:o=!1}=e,s,r;return i.$$set=l=>{"short"in l&&t(0,n=l.short),"isMobile"in l&&t(1,o=l.isMobile)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,s=n?20:93),t(3,r=n?"vk-video-logo-icon--short":"vk-video-logo-icon")},[n,o,s,r]}var qa=class extends j{constructor(e){super(),X(this,e,M4,E4,G,{short:0,isMobile:1},I4)}},hd=qa;function V4(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("defs"),r=V("filter"),l=V("feFlood"),a=V("feColorMatrix"),c=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),_=V("feBlend"),g=V("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(l,"flood-opacity","0"),u(l,"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(_,"mode","normal"),u(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_207_5101"),u(g,"mode","normal"),u(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_207_5101"),u(g,"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(b,w){y(b,e,w),d(e,t),d(t,n),d(t,o),d(e,s),d(s,r),d(r,l),d(r,a),d(r,c),d(r,f),d(r,p),d(r,_),d(r,g)},p:R,i:R,o:R,d(b){b&&v(e)}}}var Ka=class extends j{constructor(e){super(),X(this,e,null,V4,G,{})}},_d=Ka;function A4(i){let e,t;return e=new md({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:R,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function B4(i){let e,t;return e=new hd({props:{short:i[5]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&32&&(s.short=n[5]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function R4(i){let e,t;return e=new _d({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:R,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function N4(i){let e,t,n,o,s=[R4,B4,A4],r=[];function l(a,c){return a[7]||a[4]?0:a[2]?1:2}return e=l(i,-1),t=r[e]=s[e](i),{c(){t.c(),n=Xe()},m(a,c){r[e].m(a,c),y(a,n,c),o=!0},p(a,c){let f=e;e=l(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]=s[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&&v(n),r[e].d(a)}}}function D4(i){let e,t,n;function o(r){i[13](r)}let s={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:[N4]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&2&&(a.disabled=!r[1]),l&4&&(a.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),l&8&&(a.ariaLabel=r[3]),l&65588&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 n,o,{ref:s=void 0}=e,{logoClickable:r=!1}=e,{targetUrl:l=""}=e,{click:a}=e,c=Rt(),f=je(),p=f.ui.currentGridType$;D(i,p,C=>t(11,n=C));let _=f.ui.isMobile;D(i,_,C=>t(12,o=C));let g,b,w,S,I=()=>{var C,E;a(),(E=(C=f.callbacks)==null?void 0:C.onLogoClicked)==null||E.call(C),l&&window.open(l,"_blank")};function k(C){s=C,t(0,s)}i.$$set=C=>{"ref"in C&&t(0,s=C.ref),"logoClickable"in C&&t(1,r=C.logoClickable),"targetUrl"in C&&t(9,l=C.targetUrl),"click"in C&&t(10,a=C.click)},i.$$.update=()=>{if(i.$$.dirty&6148)e:t(5,S=(o||Tl(n,"l"))&&b)};e:t(3,g=c.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo"));e:t(2,b=c.logoType==="vk_video");e:t(4,w=c.logoType==="vk_video_mobile");return[s,r,b,g,w,S,p,_,I,l,a,n,o,k]}var Wa=class extends j{constructor(e){super(),X(this,e,O4,D4,G,{ref:0,logoClickable:1,targetUrl:9,click:10})}},El=Wa;var gd=require("@vkontakte/videoplayer-core");var Za=require("@vkontakte/videoplayer-core");function F4(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 H4(i){let e,t,n,o,s,r,l,a;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("path"),r=V("path"),l=V("path"),a=V("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(s,"class","wave wave3 svelte-8z1bf5"),u(s,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(s,"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(l,"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"),L(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"),L(e,"connecting",i[2])},m(c,f){y(c,e,f),d(e,t),d(t,n),d(t,o),d(t,s),d(t,r),d(t,l),d(t,a)},p(c,f){f&2&&L(a,"hidden",!c[1]),f&4&&L(e,"connecting",c[2])},d(c){c&&v(e)}}}function z4(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U;return{c(){e=V("svg"),t=V("g"),n=V("mask"),o=V("path"),r=V("path"),l=V("path"),c=V("path"),f=V("defs"),p=V("clipPath"),_=V("path"),b=V("filter"),w=V("feFlood"),S=V("feColorMatrix"),I=V("feOffset"),k=V("feGaussianBlur"),C=V("feColorMatrix"),E=V("feBlend"),U=V("feBlend"),u(o,"fill",s=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(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(l,"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(_,"fill",g=i[1]?"#2688EB":"#fff"),u(_,"d","M0 0h24v24H0z"),u(p,"id","a"),u(w,"flood-opacity","0"),u(w,"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(k,"stdDeviation","2.5"),u(C,"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(U,"in","SourceGraphic"),u(U,"in2","effect1_dropShadow_4085_178456"),u(U,"result","shape"),u(b,"id","b"),u(b,"x","-3.4"),u(b,"y","-1.4"),u(b,"width","30.8"),u(b,"height","26.802"),u(b,"filterUnits","userSpaceOnUse"),u(b,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chromecast-mobile-icon")},m($,q){y($,e,q),d(e,t),d(t,n),d(n,o),d(n,r),d(t,l),d(t,c),d(e,f),d(f,p),d(p,_),d(f,b),d(b,w),d(b,S),d(b,I),d(b,k),d(b,C),d(b,E),d(b,U)},p($,q){q&2&&s!==(s=$[1]?"#2688EB":"#fff")&&u(o,"fill",s),q&2&&a!==(a=$[1]?"#2688EB":"#fff")&&u(l,"fill",a),q&2&&g!==(g=$[1]?"#2688EB":"#fff")&&u(_,"fill",g)},d($){$&&v(e)}}}function U4(i){let e;function t(s,r){return s[0]?z4:H4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(s,r){o.m(s,r),y(s,e,r)},p(s,[r]){n===(n=t(s,r))&&o?o.p(s,r):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:R,o:R,d(s){s&&v(e),o.d(s)}}}function q4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,s,r;return i.$$set=l=>{"isMobile"in l&&t(0,n=l.isMobile),"state"in l&&t(3,o=l.state)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(2,r=o===Za.ChromecastState.CONNECTING),t(1,s=o===Za.ChromecastState.CONNECTED)},[n,s,r,o]}var Ga=class extends j{constructor(e){super(),X(this,e,q4,U4,G,{isMobile:0,state:3},F4)}},bd=Ga;var vd=require("@vkontakte/videoplayer-shared");function K4(i){let e,t;return e=new bd({props:{isMobile:i[1],state:i[2]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&2&&(s.isMobile=n[1]),o&4&&(s.state=n[2]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function W4(i){let e,t,n;function o(r){i[5](r)}let s={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[K4]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&16&&(a.ariaLabel=r[4]),l&8&&(a.click=r[3]),l&70&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 Z4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:s}=e,{click:r=vd.noop}=e,l;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,s=c.state),"click"in c&&t(3,r=c.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,l=s===gd.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off"))},[n,o,s,r,l,a]}var ja=class extends j{constructor(e){super(),X(this,e,Z4,W4,G,{ref:0,isMobile:1,state:2,click:3})}},Ml=ja;var Vl=require("@vkontakte/videoplayer-core");function G4(i){let e,t;return e=new al({props:{isActive:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&2&&(s.isActive=n[1]),e.$set(s)},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;return e=new st({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Vl.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[G4]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let 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]===Vl.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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function x4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:s=!1}=e,{ariaLabel:r=""}=e,l=je(),a=l.state.playbackState$;D(i,a,_=>t(3,n=_));let c=l.actions.internal.switchToActiveLive,f=l.actions.internal.togglePlay,p;return i.$$set=_=>{"isMobile"in _&&t(0,o=_.isMobile),"isActiveLive"in _&&t(1,s=_.isActiveLive),"ariaLabel"in _&&t(2,r=_.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,p=()=>{if(!s){c();return}n===Vl.PlaybackState.PAUSED&&f()})},[o,s,r,n,p,a]}var xa=class extends j{constructor(e){super(),X(this,e,x4,j4,G,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Ll=xa;function Y4(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 Q4(i){let e,t,n,o,s=i[9].default,r=Wi(s,i,i[8],null);return{c(){e=T("div"),t=T("div"),r&&r.c(),u(t,"class","tooltip svelte-5ygsa2"),L(t,"active",i[0]),L(t,"pointer",i[1]),u(e,"class","tooltip-wrapper svelte-5ygsa2"),u(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(l,a){y(l,e,a),d(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(l,[a]){r&&r.p&&(!o||a&256)&&Gi(r,s,l,l[8],o?Zi(s,l[8],a,null):ji(l[8]),null),(!o||a&1)&&L(t,"active",l[0]),(!o||a&2)&&L(t,"pointer",l[1]),(!o||a&36&&n!==(n=`transform: translate(${l[5]}px, ${l[2]}px);`))&&u(e,"style",n)},i(l){o||(m(r,l),o=!0)},o(l){h(r,l),o=!1},d(l){l&&v(e),r&&r.d(l),i[10](null),i[11](null)}}}function X4(i,e,t){let n,{$$slots:o={},$$scope:s}=e,{active:r=!1}=e,{pointer:l=!1}=e,{translateXPx:a=0}=e,{translateYPx:c=0}=e,{containerWidth:f}=e,p,_;function g(S){if(!_)return 0;let{width:I}=_.getBoundingClientRect(),k=I/2;return S<k?k:S>f-k?f-k:S}function b(S){me[S?"unshift":"push"](()=>{_=S,t(4,_)})}function w(S){me[S?"unshift":"push"](()=>{p=S,t(3,p)})}return i.$$set=S=>{"active"in S&&t(0,r=S.active),"pointer"in S&&t(1,l=S.pointer),"translateXPx"in S&&t(6,a=S.translateXPx),"translateYPx"in S&&t(2,c=S.translateYPx),"containerWidth"in S&&t(7,f=S.containerWidth),"$$scope"in S&&t(8,s=S.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=g(a))},[r,l,c,p,_,n,a,f,s,o,b,w]}var Ya=class extends j{constructor(e){super(),X(this,e,X4,Q4,G,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Y4)}},yd=Ya;var Al=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function J4(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 wd(i){let e;function t(s,r){return s[2]&&s[10].completed===!1?eb:$4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(s,r){o.m(s,r),y(s,e,r)},p(s,r){n===(n=t(s,r))&&o?o.p(s,r):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&v(e),o.d(s)}}}function $4(i){let e=(i[10].text||"")+"",t;return{c(){t=Ie(e)},m(n,o){y(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&ze(t,e)},d(n){n&&v(t)}}}function eb(i){let e=z("tooltip_episode_unfinished")+"",t;return{c(){t=Ie(e)},m(n,o){y(n,t,o)},p:R,d(n){n&&v(t)}}}function tb(i){let e,t,n,o,s,r,l,a,c=i[10]&&wd(i);return{c(){e=T("div"),t=T("div"),o=N(),s=T("div"),c&&c.c(),r=N(),l=T("div"),a=Ie(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(s,"class","episode svelte-l51fc1"),u(l,"class","time svelte-l51fc1"),u(e,"class","timeline-preview svelte-l51fc1"),L(e,"mobile",i[1])},m(f,p){y(f,e,p),d(e,t),d(e,o),d(e,s),c&&c.m(s,null),d(e,r),d(e,l),d(l,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=wd(f),c.c(),c.m(s,null)):c&&(c.d(1),c=null),p&1&&ze(a,f[0]),p&2&&L(e,"mobile",f[1])},i:R,o:R,d(f){f&&v(e),c&&c.d()}}}var sr=150;function ib(i,e,t){let n,{time:o=""}=e,{isMobile:s=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:l}=e,{progress:a=0}=e,{duration:c=0}=e,{isInteractive:f=!1}=e,_=je().ui.rotateAlpha;D(i,_,q=>t(11,n=q));let g,b,w,S,I,k,C,E;function U(){let q=l.frameWidth,le=l.frameHeight;return q>sr?(le=le/q*sr,q=sr):le>sr&&(q=q/le*sr,le=sr),{width:q,height:le}}function $(q){let le;l.isUV?le=Math.floor(c*q/l.frequency):le=Math.min(l.countTotal,Math.max(0,Math.floor(l.countTotal*q)));let oe=Math.floor(le/l.countPerImage),P=Math.floor(le%l.countPerImage/l.countPerRow),ne=le%l.countPerRow,J=Math.floor(l.countPerImage/l.countPerRow);!l.isUV&&oe===Math.floor(l.countTotal/l.countPerImage)&&(J=Math.floor(l.countTotal%l.countPerImage/l.countPerRow),l.countTotal%l.countPerImage%l.countPerRow>0&&J++);let K=l.countPerRow;!l.isUV&&oe===Math.floor(l.countTotal/l.countPerImage)&&l.countTotal%l.countPerImage>0&&(K=Math.min(l.countPerRow,l.countTotal%l.countPerImage));let Q=g*K,M=b*J,Z=-ne*g,B=-P*b;return{imgSrc:l.links[oe],imgWidth:Q,imgHeight:M,imgOffsetX:Z,imgOffsetY:B}}i.$$set=q=>{"time"in q&&t(0,o=q.time),"isMobile"in q&&t(1,s=q.isMobile),"videoEpisodes"in q&&t(13,r=q.videoEpisodes),"previewThumbsData"in q&&t(14,l=q.previewThumbsData),"progress"in q&&t(15,a=q.progress),"duration"in q&&t(16,c=q.duration),"isInteractive"in q&&t(2,f=q.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:w,imgWidth:S,imgHeight:I,imgOffsetX:k,imgOffsetY:C}=$(a),w,(t(6,S),t(15,a)),(t(7,I),t(15,a)),(t(8,k),t(15,a)),(t(9,C),t(15,a)));if(i.$$.dirty&106496)e:t(10,E=Al(a,c,r))};e:t(3,{width:g,height:b}=U(),g,t(4,b));return[o,s,f,g,b,w,S,I,k,C,E,n,_,r,l,a,c]}var Qa=class extends j{constructor(e){super(),X(this,e,ib,tb,G,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},J4)}},kd=Qa;function nb(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 ob(i){let e,t;return{c(){e=T("span"),t=Ie(i[7]),u(e,"class","time svelte-5lzly8")},m(n,o){y(n,e,o),d(e,t)},p(n,o){o[0]&128&&ze(t,n[7])},i:R,o:R,d(n){n&&v(e)}}}function rb(i){let e,t;return e=new kd({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 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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function lb(i){let e,t,n,o,s=[rb,ob],r=[];function l(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=l(i,[-1,-1]),t=r[e]=s[e](i),{c(){t.c(),n=Xe()},m(a,c){r[e].m(a,c),y(a,n,c),o=!0},p(a,c){let f=e;e=l(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]=s[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&&v(n),r[e].d(a)}}}function sb(i){let e,t,n,o,s=[i[9]],r={$$slots:{default:[lb]},$$scope:{ctx:i}};for(let l=0;l<s.length;l+=1)r=ps(r,s[l]);return e=new yd({props:r}),n=new or({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(l,a){O(e,l,a),y(l,t,a),O(n,l,a),o=!0},p(l,a){let c=a[0]&512?Pc(s,[Ic(l[9])]):{};a[0]&1419|a[1]&65536&&(c.$$scope={dirty:a,ctx:l}),e.$set(c);let f={};a[0]&2048&&(f.isActiveLive=l[11]),a[0]&1024&&(f.isMobile=l[10]),a[0]&2&&(f.ariaValueMax=l[1]),a[0]&64&&(f.ariaValueNow=Math.round(l[6]*100)),a[0]&48&&(f.ariaValueText=z("aria_timeline_value",{position:l[5],duration:l[4]})),a[0]&4096&&(f.loadedProgress=l[12]),a[0]&64&&(f.filledProgress=l[6]),a[0]&64&&(f.handleProgress=l[6]),a[0]&8&&(f.videoEpisodes=l[3]),a[0]&8192&&(f.disabled=l[13].has("TIMELINE")),a[0]&4&&(f.hideHandel=l[2]),n.$set(f)},i(l){o||(m(e.$$.fragment,l),m(n.$$.fragment,l),o=!0)},o(l){h(e.$$.fragment,l),h(n.$$.fragment,l),o=!1},d(l){l&&v(t),F(e,l),F(n,l)}}}function ab(i,e,t){let n,o,s,r,l,a,c,f,p,_,g,{showTimeline:b=!1}=e,w=je(),S=Rt(),I=w.state.bufferedProgress$;D(i,I,we=>t(12,_=we));let k=w.state.positionWithScrubbing$;D(i,k,we=>t(39,a=we));let C=w.state.duration$;D(i,C,we=>t(1,s=we));let E=w.state.isLive$;D(i,E,we=>t(0,o=we));let U=w.state.isActiveLive$;D(i,U,we=>t(11,p=we));let $=w.ui.isMobile;D(i,$,we=>t(10,f=we));let q=S.features.episodes?w.actions.internal.getVideoEpisodes():void 0,le=w.actions.internal.getPreviewThumbsData(),oe=w.state.interactiveEpisodes$;D(i,oe,we=>t(40,c=we));let P=w.state.isInteractive,ne=w.state.isInteractiveTime$;D(i,ne,we=>t(2,r=we));let J=w.state.isInteractiveExpectation$;D(i,J,we=>t(38,l=we));let K=w.actions.internal.correctSeekTimeToInteractive,Q=w.ui.controls.disabledControls$;D(i,Q,we=>t(13,g=we));let M,Z,B,te,Ce=!1,He="",Re=0,We=0,Oe=0,be;function x(we){return!K||!P?we:K(we*s)/s}function he(we){w.actions.internal.startScrubbing(x(we))}function Le(we){r||w.actions.internal.progressScrubbing(x(we))}function Ue(we){w.actions.internal.completeScrubbing(x(we)),t(34,Ce=!1)}function xe(we,W,ye){Ne(we,W,ye),t(34,Ce=!0)}function _e(we,W,ye){Ne(we,W,ye),t(34,Ce=!0)}function Te(){t(34,Ce=!1)}function Ne(we,W,ye){t(8,Oe=we),t(35,Re=W),ye&&t(36,We=ye),t(7,He=Ge(we))}function Ge(we){let W=Sn((o?1-we:we)*s);return o?`-${W}`:W}return i.$$set=we=>{"showTimeline"in we&&t(33,b=we.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,M=P?c:q);if(i.$$.dirty[0]&2)e:t(4,Z=Sn(s));if(i.$$.dirty[1]&256)e:t(5,B=Sn(a));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,te=a/s);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,be=l||r);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:We,translateXPx:Re,translateYPx:P&&le?-36:-16,active:Ce&&b&&!be,pointer:!S.features.timelinePreview||!le||o})},[o,s,r,M,Z,B,te,He,Oe,n,f,p,_,g,S,I,k,C,E,U,$,le,oe,P,ne,J,Q,he,Le,Ue,xe,_e,Te,b,Ce,Re,We,be,l,a,c]}var Xa=class extends j{constructor(e){super(),X(this,e,ab,sb,G,{showTimeline:33},nb,[-1,-1])}},Cd=Xa;function ub(i){let e,t;return e=new or({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 s={};o&1&&(s.ariaValueMax=n[0]),o&8&&(s.ariaValueNow=Math.round(n[3]*100)),o&6&&(s.ariaValueText=z("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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function cb(i,e,t){let n,{position:o=0}=e,{duration:s=0}=e,l=je().ui.isMobile;D(i,l,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,s=p.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,a=Sn(s));if(i.$$.dirty&64)e:t(2,c=Sn(o));if(i.$$.dirty&65)e:t(3,f=o/s)},[s,a,c,f,n,l,o]}var Ja=class extends j{constructor(e){super(),X(this,e,cb,ub,G,{position:6,duration:0})}},Bl=Ja;function fb(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 db(i){let e;return{c(){e=T("div"),u(e,"class","timeline-stub svelte-1gqonyf"),L(e,"mobile",i[2])},m(t,n){y(t,e,n)},p(t,n){n&4&&L(e,"mobile",t[2])},i:R,o:R,d(t){t&&v(e)}}}function mb(i){let e,t,n,o,s=[hb,pb],r=[];function l(a,c){return a[0]?0:1}return t=l(i,-1),n=r[t]=s[t](i),{c(){e=T("div"),n.c(),u(e,"class","timeline svelte-1gqonyf"),L(e,"mobile",i[2])},m(a,c){y(a,e,c),r[t].m(e,null),o=!0},p(a,c){let f=t;t=l(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]=s[t](a),n.c()),m(n,1),n.m(e,null)),(!o||c&4)&&L(e,"mobile",a[2])},i(a){o||(m(n),o=!0)},o(a){h(n),o=!1},d(a){a&&v(e),r[t].d()}}}function pb(i){let e,t;return e=new Cd({props:{showTimeline:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&2&&(s.showTimeline=n[1]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function hb(i){let e,t;return e=new Bl({props:{position:i[3],duration:i[4]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&8&&(s.position=n[3]),o&16&&(s.duration=n[4]),e.$set(s)},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,s=[mb,db],r=[];function l(a,c){return a[1]?0:1}return e=l(i,-1),t=r[e]=s[e](i),{c(){t.c(),n=Xe()},m(a,c){r[e].m(a,c),y(a,n,c),o=!0},p(a,[c]){let f=e;e=l(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]=s[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&&v(n),r[e].d(a)}}}function bb(i,e,t){let n,o,s,r,{isAds:l=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e,p=je(),_=p.state.isLive$;D(i,_,I=>t(12,n=I));let g=p.ads.duration;D(i,g,I=>t(4,r=I));let b=p.ads.position;D(i,b,I=>t(3,s=I));let w=p.ui.isMobile;D(i,w,I=>t(2,o=I));let S;return i.$$set=I=>{"isAds"in I&&t(0,l=I.isAds),"canRewindLive"in I&&t(9,a=I.canRewindLive),"isRewindableLive"in I&&t(10,c=I.isRewindableLive),"isHidden"in I&&t(11,f=I.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,S=!f&&(!n||n&&a&&c||l))},[l,S,o,s,r,_,g,b,w,a,c,f,n]}var $a=class extends j{constructor(e){super(),X(this,e,bb,_b,G,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},fb)}},Rl=$a;var Pd=require("@vkontakte/videoplayer-shared");function gb(i){let e,t,n,o;return{c(){e=V("svg"),t=V("path"),n=V("path"),o=V("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"),Tt(e,"flex-shrink","0"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","episodes-icon")},m(s,r){y(s,e,r),d(e,t),d(e,n),d(e,o)},p:R,i:R,o:R,d(s){s&&v(e)}}}var eu=class extends j{constructor(e){super(),X(this,e,null,gb,G,{})}},Sd=eu;function vb(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var tu=class extends j{constructor(e){super(),X(this,e,null,vb,G,{})}},Td=tu;function yb(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 wb(i){let e,t,n,o;e=new Sd({});function s(a,c){if(a[4]==="FULL")return Sb;if(a[4]==="COUNT")return Cb}let r=s(i,-1),l=r&&r(i);return{c(){H(e.$$.fragment),t=N(),l&&l.c(),n=Xe()},m(a,c){O(e,a,c),y(a,t,c),l&&l.m(a,c),y(a,n,c),o=!0},p(a,c){r===(r=s(a,c))&&l?l.p(a,c):(l&&l.d(1),l=r&&r(a),l&&(l.c(),l.m(n.parentNode,n)))},i(a){o||(m(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){a&&(v(t),v(n)),F(e,a),l&&l.d(a)}}}function kb(i){let e,t,n,o,s,r;return s=new Td({}),{c(){e=T("span"),t=Ie(i[2]),n=N(),o=T("div"),H(s.$$.fragment),u(e,"class","text mobile svelte-1yhs2ga"),u(o,"class","chevron-episodes svelte-1yhs2ga")},m(l,a){y(l,e,a),d(e,t),y(l,n,a),y(l,o,a),O(s,o,null),r=!0},p(l,a){(!r||a&4)&&ze(t,l[2])},i(l){r||(m(s.$$.fragment,l),r=!0)},o(l){h(s.$$.fragment,l),r=!1},d(l){l&&(v(e),v(n),v(o)),F(s)}}}function Cb(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Ie(t),u(e,"class","text count svelte-1yhs2ga")},m(o,s){y(o,e,s),d(e,n)},p(o,s){s&1&&t!==(t=o[0].length+"")&&ze(n,t)},d(o){o&&v(e)}}}function Sb(i){let e,t;return{c(){e=T("span"),t=Ie(i[2]),u(e,"class","text svelte-1yhs2ga")},m(n,o){y(n,e,o),d(e,t)},p(n,o){o&4&&ze(t,n[2])},d(n){n&&v(e)}}}function Tb(i){let e,t,n,o,s=[kb,wb],r=[];function l(a,c){return a[6]?0:1}return e=l(i,-1),t=r[e]=s[e](i),{c(){t.c(),n=Xe()},m(a,c){r[e].m(a,c),y(a,n,c),o=!0},p(a,c){let f=e;e=l(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]=s[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&&v(n),r[e].d(a)}}}function Pb(i){let e,t,n;function o(r){i[19](r)}let s={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:[Tb]},$$scope:{ctx:i}};return i[1]!==void 0&&(s.ref=i[1]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&64&&(a.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),l&8&&(a.ariaExpanded=r[3]),l&32&&(a.ariaLabel=r[5]),l&8388693&&(a.$$scope={dirty:l,ctx:r}),!t&&l&2&&(t=!0,a.ref=r[1],Me(()=>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 Ib(i,e,t){var P,ne,J;let n,o,s,r,l,a,{position:c=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,_=je(),g=(ne=(P=_.callbacks)==null?void 0:P.onEpisodeChanged)!=null?ne:Pd.noop,b=!!((J=_.callbacks)!=null&&J.onEpisodeClicked),w=_.ui.currentGridType$;D(i,w,K=>t(18,l=K));let S=_.ui.episodes.openedByKeyboard$;D(i,S,K=>t(17,r=K));let I=_.ui.episodes.panelOpened$;D(i,I,K=>t(3,s=K));let k=_.ui.isMobile;D(i,k,K=>t(6,a=K));let C,E=K=>{var M,Z,B;if(!!((M=_.callbacks)!=null&&M.onEpisodeClicked)){let te=$o(K);S.set(te),I.set(!0),(B=(Z=_.callbacks)==null?void 0:Z.onEpisodeClicked)==null||B.call(Z,te)}},U,$,q,le=async(K,Q,M)=>{await Vn(),(K==null?void 0:K.getAttribute("aria-expanded"))==="false"&&Q&&!M&&(S.set(!1),K.focus())};function oe(K){C=K,t(1,C)}return i.$$set=K=>{"position"in K&&t(13,c=K.position),"duration"in K&&t(14,f=K.duration),"timeCodes"in K&&t(0,p=K.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=c/f);if(i.$$.dirty&114689)e:{let K=Al(n,f,p);K&&(U==null?void 0:U.text)!==K.text&&(g(K),t(15,U=K))}if(i.$$.dirty&32768)e:t(2,o=(U==null?void 0:U.text)||"");if(i.$$.dirty&262144)e:Tn(l,"xl")?t(4,$="FULL"):Tn(l,"m")&&od(l,"xl")?t(4,$="COUNT"):t(4,$="SHORT");if(i.$$.dirty&4)e:t(5,q=`${z("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:le(C,r,s)},[p,C,o,s,$,q,a,b,w,S,I,k,E,c,f,U,n,r,l,oe]}var iu=class extends j{constructor(e){super(),X(this,e,Ib,Pb,G,{position:13,duration:14,timeCodes:0},yb)}},Nl=iu;function Eb(i){let e,t,n;return{c(){e=V("svg"),t=V("path"),n=V("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,s){y(o,e,s),d(e,t),d(e,n)},p:R,i:R,o:R,d(o){o&&v(e)}}}var nu=class extends j{constructor(e){super(),X(this,e,null,Eb,G,{})}},Id=nu;function Mb(i){let e,t;return e=new Id({}),{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 Vb(i){let e,t,n;function o(r){i[4](r)}let s={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:z("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[Mb]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&2&&(a.className=r[1]?"hidden":""),l&4&&(a.disabled=r[2]),l&8&&(a.click=r[3]),l&32&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 Lb(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{click:r}=e;function l(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,s=a.disabled),"click"in a&&t(3,r=a.click)},[n,o,s,r,l]}var ou=class extends j{constructor(e){super(),X(this,e,Lb,Vb,G,{ref:0,hidden:1,disabled:2,click:3})}},Dl=ou;function Ab(i){let e,t,n;return{c(){e=V("svg"),t=V("path"),n=V("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"),L(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,s){y(o,e,s),d(e,t),d(e,n)},p(o,[s]){s&1&&L(n,"hidden",!o[0])},i:R,o:R,d(o){o&&v(e)}}}function Bb(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var ru=class extends j{constructor(e){super(),X(this,e,Bb,Ab,G,{isOpened:0})}},Ed=ru;function Rb(i){let e,t;return e=new Ed({props:{isOpened:i[3]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&8&&(s.isOpened=n[3]),e.$set(s)},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,n;function o(r){i[6](r)}let s={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[Rb]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&2&&(a.className=r[1]?"hidden":""),l&4&&(a.disabled=r[2]),l&32&&(a.ariaLabel=r[5]),l&16&&(a.click=r[4]),l&136&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 Db(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{graphIsOpened:r=!1}=e,{click:l}=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,s=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,l=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,s,r,l,a,c]}var lu=class extends j{constructor(e){super(),X(this,e,Db,Nb,G,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Ol=lu;function Ob(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var su=class extends j{constructor(e){super(),X(this,e,null,Ob,G,{})}},Fl=su;var Vd=require("@vkontakte/videoplayer-shared");function Fb(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 Md(i){let e;return{c(){e=T("div"),u(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){y(t,e,n)},d(t){t&&v(e)}}}function Hb(i){let e,t,n,o,s=i[1]&&Md(i);return n=new Fl({}),{c(){s&&s.c(),e=N(),t=T("div"),H(n.$$.fragment),u(t,"class","svelte-1ot3duq"),L(t,"mobile",i[1])},m(r,l){s&&s.m(r,l),y(r,e,l),y(r,t,l),O(n,t,null),o=!0},p(r,l){r[1]?s||(s=Md(r),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),(!o||l&2)&&L(t,"mobile",r[1])},i(r){o||(m(n.$$.fragment,r),o=!0)},o(r){h(n.$$.fragment,r),o=!1},d(r){r&&(v(e),v(t)),s&&s.d(r),F(n)}}}function zb(i){let e,t,n;function o(r){i[5](r)}let s={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:z("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Wn.KeyK,$$slots:{default:[Hb]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&10&&(a.className=(r[1]?"btn-m--play":"")+" "+r[3]),l&4&&(a.disabled=r[2]),l&16&&(a.click=r[4]),l&66&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 Ub(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{className:r=""}=e,{click:l=Vd.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,s=c.disabled),"className"in c&&t(3,r=c.className),"click"in c&&t(4,l=c.click)},[n,o,s,r,l,a]}var au=class extends j{constructor(e){super(),X(this,e,Ub,zb,G,{ref:0,isMobile:1,disabled:2,className:3,click:4},Fb)}},Vr=au;function qb(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var uu=class extends j{constructor(e){super(),X(this,e,null,qb,G,{})}},Ld=uu;function Kb(i){let e,t;return e=new Ld({}),{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 Wb(i){let e,t,n;function o(r){i[4](r)}let s={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:z("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[Kb]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&2&&(a.className=r[1]?"hidden":""),l&4&&(a.disabled=r[2]),l&8&&(a.click=r[3]),l&32&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 Zb(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{click:r}=e;function l(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,s=a.disabled),"click"in a&&t(3,r=a.click)},[n,o,s,r,l]}var cu=class extends j{constructor(e){super(),X(this,e,Zb,Wb,G,{ref:0,hidden:1,disabled:2,click:3})}},Hl=cu;var fu=require("@vkontakte/videoplayer-shared");function Gb(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 jb(i){let e,t,n,o;return{c(){e=T("img"),u(e,"class","icon svelte-1x1zctw"),_s(e.src,t=i[0])||u(e,"src",t),u(e,"aria-hidden","true")},m(s,r){y(s,e,r),n||(o=de(e,"error",i[7]),n=!0)},p(s,r){r&1&&!_s(e.src,t=s[0])&&u(e,"src",t)},d(s){s&&v(e),n=!1,o()}}}function xb(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){y(t,e,n)},p:R,d(t){t&&v(e)}}}function Yb(i){let e;function t(s,r){return s[5]?xb:jb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(s,r){o.m(s,r),y(s,e,r)},p(s,r){n===(n=t(s,r))&&o?o.p(s,r):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&v(e),o.d(s)}}}function Qb(i){let e,t;return e=new st({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[Yb]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){let 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){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Xb(i,e,t){let n,o,s,{iconUrl:r}=e,{ariaLabel:l}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=fu.noop}=e,p=()=>{t(5,s=!0)};i.$$set=_=>{"iconUrl"in _&&t(0,r=_.iconUrl),"ariaLabel"in _&&t(1,l=_.ariaLabel),"disabled"in _&&t(8,a=_.disabled),"testId"in _&&t(2,c=_.testId),"onClick"in _&&t(3,f=_.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=f===fu.noop);if(i.$$.dirty&272)e:t(6,o=n||a)};e:t(5,s=!1);return[r,l,c,f,n,s,o,p,a]}var du=class extends j{constructor(e){super(),X(this,e,Xb,Qb,G,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},Gb)}},zl=du;var i0=require("@vkontakte/videoplayer-shared");var ln=require("@vkontakte/videoplayer-core"),tP=require("@vkontakte/videoplayer-shared"),it=require("@vkontakte/videoplayer-shared"),eo=require("@vkontakte/videoplayer-statistics"),iP=require("@vkontakte/videoplayer-interactive");var It=require("@vkontakte/videoplayer-shared");var Ad=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var Jb="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Ul=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 It.Subject,started$:new It.Subject,paused$:new It.Subject,resumed$:new It.Subject,ended$:new It.Subject,skipped$:new It.Subject,clicked$:new It.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,It.addScript)(Jb,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=s,o=window.setTimeout(s,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,It.assertNonNullable)(this.adsState),(0,It.assertNonNullable)(this.playerState),(0,It.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"}),Ze(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,It.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,It.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,It.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,It.assertNonNullable)(this.adman),(0,It.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=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.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:s,adsContainer:r,adsVideoElement:l,slotId:a,params:c={},duration:f,previewParam:p}=e,_,g=this.playerState&&Ze(this.playerState.vsid);g&&(_=parseInt(g,36));let b={dl:encodeURIComponent(window.location.href),autoplay:s,player_width:t,player_height:n,puid10:Ad(t,n),puid11:o?0:1,preview:p,..._?{request_id:_}:{},duration:f,...c},w={slot:a,wrapper:r,videoEl:l,videoQuality:n,params:b,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(w),this.adman=S,this.videoElement=l,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,It.assertNonNullable)(this.actions),(0,It.assertNonNullable)(this.adsState),(0,It.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,It.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=Ze(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){var t;this.log({message:`set volume ${e}`}),(t=this.adman)==null||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)==null||t.setFullscreen(e)}startPreroll(){(0,It.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,It.assertNonNullable)(this.adman),(0,It.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,It.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,It.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,It.assertNonNullable)(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)==null||e.destroy()}};var Bd=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 mu=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 s={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let l of r)if(!s.startTime&&!s.endTime){let a=new ql,{startTime:c,endTime:f}=a.parse(l);s.startTime=c,s.endTime=f}else if(l.trim()!==""){let a=new pu,{texts:c}=a.parse(l);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&t.push(s)}return t}},ql=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 s=Number(e)*60*60,r=Number(t)*60,l=Number(n),a=+`0.${o}`;return s+r+l+a}},pu=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 l=0,a=[];for(;l<r.length;){let c=["<",">"].reduce((f,p)=>{let _=r.indexOf(p,l);return f===-1||f>_?_:f},-1);if(c===-1){a.push(r.substring(l));break}a.push(r.substring(l,c)),l=c+1}return a}}),s=new ql;for(let r of o)s.isTime(r)?t.texts.push({type:"timestamp",value:s.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},Rd=mu;var Kl=require("@vkontakte/videoplayer-shared"),po,qt,hu=0,_u=!1,Nd=(i,e,t)=>{var c;let n=i>=hu,o=i<hu,s=(f,p=0,_=0)=>f<p&&f<_,r=(f,p=0,_=0)=>f>=p&&f<=_,l=(f,p=0,_=0)=>f>p&&f>_,a=(c=t.find(({lang:f})=>f===e.value))==null?void 0:c.subtitles;if(hu=i,o&&(_u=!1),(0,Kl.isNonNullable)(po)&&r(i,po.startTime,po.endTime)&&po.lang===e.value)return po;if(!(0,Kl.isNonNullable)(qt)&&(a!=null&&a.length)&&!_u){let f=a.find(({startTime:p,endTime:_})=>r(i,p,_)||n&&s(i,p,_));qt=f&&{...f,lang:e.value},po=void 0,!(0,Kl.isNonNullable)(qt)&&a[a.length-1].endTime<i&&(_u=!0);return}else{if(r(i,qt==null?void 0:qt.startTime,qt==null?void 0:qt.endTime))return po=qt,qt=void 0,po;(n&&l(i,qt==null?void 0:qt.startTime,qt==null?void 0:qt.endTime)||o&&s(i,qt==null?void 0:qt.startTime,qt==null?void 0:qt.endTime))&&(qt=void 0)}};var Wl={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 Dd=require("@vkontakte/videoplayer-shared"),Od=require("@vkontakte/videoplayer-statistics"),Zl=class{constructor(e,t){this.oneStat=new Od.OneStat(e,t),this.statSubscription=new Dd.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Fd=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:s,canDownload:r,callbacks:l,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:p,coreConfig:_,player:g,disabledControls:b,isInteractive:w,interactiveRanges$:S,isInteractiveTime$:I,replayInteractive:k,hasInteractiveBranches:C,playPrevChapterDisabledTooltip:E,additionalButtons:U,looped:$=!1,statistics:q})=>{var Y,pt,rn,Ki;let le={..._,configName:[...(Y=_.configName)!=null?Y:[],"ui"],isAudioDisabled:s,live:{...(pt=_.live)!=null?pt:{},isLiveCatchUpMode:!!n}},oe=p,P=g||new ln.Player(le),ne=new it.Logger,J=new Ul(ne,{loadTimeout:oe.ads.loadTimeout,initTimeout:oe.ads.initTimeout}),K=Eo.getInstance(),Q=a==null?void 0:a.pictureInPictureApi,M=a==null?void 0:a.annotationsApi,Z=ne.createComponentLog("Store"),B,te,Ce={},He=(0,it.getCurrentBrowser)(),Re=q?wt(q.oneStat.vsid$):Ln(void 0),We=Ee(so()),Oe=(rn=Q==null?void 0:Q.info.isActive$)!=null?rn:new it.ValueSubject(!1),be=Q==null?void 0:Q.info.type,x=Ee(0),he=Ee([]),Le=(0,it.merge)(P.events.fatalError$,P.events.managedError$).subscribe(A=>he.update(ae=>[...ae,A])),Ue=Ln(!1,A=>{let ae=P.events.fatalError$.subscribe(()=>A(!0));return()=>ae.unsubscribe()}),xe=async A=>{var De;let ae=Object.values(it.InterfaceLanguage).includes(A);if(oe.downloadVKLanguages&&(ae&&oe.updateBuiltinLanguages||!Es(A))){let Je;try{Je=await(0,it.loadVKLangPack)(A,Ac,Bc)}catch(dt){(De=q==null?void 0:q.oneStat)==null||De.logError({errorType:"VKLangPack",fatal:!1}),K==null||K.report(dt,{errorType:"VKLangPack",fatal:!1})}Je&&(Is({language:A,pack:Je,fallback:oe.defaultLanguage}),_e.set(A))}Es(A)&&_e.set(A)},_e=Ee(i);xe(i);let Te=(A,ae)=>{let ke=Ze(_e);return Ms(ke,A,ae,oe.defaultLanguage)},Ne=Ee("thumb"),Ge=(()=>{let A=ii([Ue,Ne],([ae,ke])=>ae?"crashed":ke);return{...A,is:ae=>Ze(A)===ae}})(),we=(()=>{let A=Ee(new Set(b));return{...A,add:ae=>{A.update(ke=>new Set([...ke].concat(ae)))},remove:ae=>{A.update(ke=>{let De=[...ke];return new Set(Array.isArray(ae)?De.filter(Je=>!ae.includes(Je)):De.filter(Je=>Je!==ae))})},includes:ae=>{let ke=Ze(A);return Array.isArray(ae)?ae.every(De=>ke.has(De)):ke.has(ae)}}})();Z({message:"create store"});let W=A=>{let ae=A.container;ae.append(P.experimental.element$.getValue()),tt=new MutationObserver(ke=>{let{removedNodes:De}=ke[0];De.length&&ae.append(P.experimental.element$.getValue())}),tt.observe(ae,{childList:!0})},ye=A=>{Z({message:`init video, config: ${JSON.stringify(A)}`}),w?W(A):P.initVideo(A),A.subtitles&&P.setExternalTextTracks(A.subtitles),B=A},ue=new it.Subject,Se=A=>ue.next(A),qe=new it.Subject,et=new it.Subject,ot=new it.Subject,tt=null,ht={actionRewind$:qe,actionSeek$:et,inPiP$:Oe,inFullscreen$:new it.Observable(A=>We.subscribe(ae=>A.next(ae))),actionSetSubtitle$:ot,nextMovie$:ue};if(q){let{oneStat:A,statSubscription:ae}=q;ae.add(A.attachTo(P)),ae.add(A.attachToUi(ht)),ae.add(A.attachToAds(J.events)),A.authorize(o).catch(ke=>{Z({message:`onestat auth error ${String(ke)}`})})}if(K){let A=new it.Subscription,ae=(ke,De)=>A.add(ke.subscribe(De));if(ae(P.events.managedError$,ke=>{K.logIError(ke)}),ae(P.events.fatalError$,ke=>{K.logIError(ke,!0)}),q){let{oneStat:ke}=q;ae(ke.experimental.error$,De=>{K.logIError(De)})}K.sentrySubscription.add(A)}let at=()=>{(0,it.isIOS)()&&te&&uf(te)},ge=new it.Subscription().add(P.experimental.element$.subscribe(A=>{A&&(te=A,A.classList.add("player-media"),Vo(Q)&&(Q.updateVideoElement(),Q.registryEventHandlers()),w&&A.setAttribute("pip","false"))})).add(P.events.ended$.subscribe(()=>{var A;at(),(A=l==null?void 0:l.onEnded)==null||A.call(l)})).add(P.events.started$.subscribe(async()=>{var ae,ke;Vo(Q)&&await(Q==null?void 0:Q.revealPictureInPicture());let A=P.info.muted$.getValue();(ae=l==null?void 0:l.onStarted)==null||ae.call(l),(ke=Ce.onStarted)==null||ke.call(Ce,A)})).add(P.events.willSeek$.subscribe(({from:A,to:ae})=>{var ke;(ke=l==null?void 0:l.onSeek)==null||ke.call(l,A,ae)})).add(P.info.position$.subscribe(A=>{var ke;let ae=P.info.duration$.getValue();(ke=l==null?void 0:l.onTimeupdate)==null||ke.call(l,ae,A),J.setPosition(A,ae)})).add(P.events.fatalError$.subscribe(()=>{var A;(A=l==null?void 0:l.onCrashed)==null||A.call(l)})).add(P.events.firstBytes$.subscribe(()=>{ft.state.isFirstBytes$.set(!0)})).add(P.info.is3DVideo$.subscribe(A=>{ft.ui.is3DVideo.set(A)})).add(P.info.isEnded$.subscribe(A=>{w&&(A?(I!=null&&I.getValue()&&we.add(jr),we.add("PLAY_BUTTON")):we.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(A=>{var ae;(ae=l==null?void 0:l.onLiveTime)==null||ae.call(l,A)})).add(P.info.isStalled$.subscribe(A=>{var ae;(ae=l==null?void 0:l.onStalledChanged)==null||ae.call(l,A)})),lt=new it.Subscription,Et=()=>{lt.add(P.events.log$.subscribe(A=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${A.component}`,A.message)})).add(ne.log$.subscribe(A=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${A.component}.`,A.message)}))},kt=()=>{lt.unsubscribe()},Ae=(A,ae)=>{P.startCameraManualRotation(A,ae)},Dt=(A=!1)=>{P.stopCameraManualRotation(A)},Lt=(A,ae,ke)=>{P.moveCameraFocusPX(A,ae,ke)},pe=()=>{P.holdCamera()},Mt=()=>{P.releaseCamera()},rt=Ln(P.info.position$.getValue(),A=>{let ae,ke,De=()=>{let Je=P.info.playbackState$.getValue(),dt=P.info.isLive$.getValue(),Nt=P.info.duration$.getValue(),vt=P.info.position$.getValue();if([ln.PlaybackState.PLAYING,ln.PlaybackState.PAUSED].includes(Je)){let Ri=dt?vt-Nt:P.getExactTime();Ri!==ke&&A(Ri),ke=Ri}ae=requestAnimationFrame(De)};return De(),()=>cancelAnimationFrame(ae)}),mt=wt(Oe),ut=wt(P.info.playbackState$),Pe=wt(P.info.currentBuffer$),Fe=wt(P.info.isEnded$),gt=wt(P.info.isLive$),Zt=oe.features.playbackRate?wt(P.info.canChangePlaybackSpeed$):Ln(!1),Yi=wt(P.info.liveBufferTime$),an=wt(P.info.volume$),si=wt(P.info.muted$),ai=ks(P.info.autoQualityLimits$.pipe((0,it.map)(({max:A})=>A!==void 0)),((Ki=P.info.autoQualityLimits$.getValue())==null?void 0:Ki.max)!==void 0),vi=wt(P.info.autoQualityLimitingAvailable$),Qt=wt(P.info.availableQualities$),ui=wt(P.info.availableQualitiesFps$),Qi=wt(P.info.chromecastState$),yi=wt(P.info.chromecastDeviceName$),wi=wt(P.info.currentFormat$),ci=wt(P.info.throughputEstimation$),ki=wt(P.info.videoBitrate$),fi=wt(P.info.intrinsicVideoSize$),Ci=wt(P.info.duration$),Si=wt(P.info.isAudioAvailable$),At=null,Ot=P.info.isBuffering$,Bt=Ln(Ot.getValue(),A=>{let ae=Ot.subscribe(ke=>{ke&&At===null?At=window.setTimeout(()=>{A(Ot.getValue()),At=null},oe.loaderDelay):A(ke)});return()=>{ae.unsubscribe(),At&&clearTimeout(At)}}),di=()=>{At&&clearTimeout(At),At=null},Kt=ii([Ci,gt],([A,ae])=>ae?-A:A),mi=ii([ut],([A])=>A===ln.PlaybackState.PLAYING),Xt=wt(P.info.atLiveEdge$),ni=wt(P.info.atLiveDurationEdge$),ct=wt(P.info.position$),Ft=ii([ct,Ci],([A,ae])=>isFinite(A)&&isFinite(ae)&&!!ae),_t=ii([Qi],([A])=>A===ln.ChromecastState.CONNECTED),Jt=Ee(void 0),pi=wt(P.info.isAutoQualityEnabled$,A=>A&&Jt.set(void 0)),pn=wt(P.info.currentQuality$,()=>Jt.set(void 0)),Xi=ii([Jt,pn],([A,ae])=>A!=null?A:ae),$t=ii([Qt,ui,pi,Xi,wi],([A,ae,ke,De,Je])=>{let dt=[];Je!==ln.VideoFormat.MPEG&&dt.push({value:"auto",displayValue:Te("auto_quality_option"),selected:ke});let Nt=A.filter(vt=>vt!==it.VideoQuality.INVARIANT);for(let vt of Nt){let Ri=ae[vt],yo=vt===it.VideoQuality.INVARIANT?Te("auto_quality_option"):vt;dt.push({value:vt,displayValue:`${yo}${Ri?Bd(Ri):""}`,selected:ke?!1:vt===De})}return dt}),oi=wt(P.info.currentPlaybackRate$),Ti=ii([oi,Xt,ni],([A,ae,ke])=>{let De=ke||w?1:oe.controls.playbackRateMin,Je=ae?1:oe.controls.playbackRateMax,dt=oe.controls.playbackRateStep,Nt=[];for(let vt=De;vt<=Je;vt+=dt)Nt.push({value:vt,displayValue:vt===1?Te("playback_rate_1"):Te("playback_rate",{multiplier:vt.toString(10)}),selected:A===vt});return Nt}),Oi=oe.features.subtitles?wt(P.info.availableTextTracks$):Ln([]),Gt=ii([Oi],([A],ae)=>{let ke=[],De=[];for(let Je of A)Je.url&&ke.push(fetch(Je.url));Promise.allSettled(ke).then(Je=>{for(let[dt,Nt]of Je.entries())Nt.status==="fulfilled"&&Nt.value.text().then(vt=>{let Ri=new Rd,yo=A[dt].language,Dr=!!A[dt].isAuto,Uo=Ri.parse(vt);yo&&Uo&&De.push({lang:yo,subtitles:Uo,isAuto:Dr}),dt===Je.length-1&&ae(De)})})}),Ct={displayValue:Te("subtitles_off"),value:"off"},Pi=Ee({...Ct}),Ji=ii([Gt,Pi,Gt],([A,ae])=>{if((A==null?void 0:A.length)>0){let ke=[{...Ct,selected:(ae==null?void 0:ae.value)===Ct.value}];for(let{lang:De,isAuto:Je}of A)Wl[De]&&ke.push({displayValue:Je?Te("subtitles_auto",{language:Wl[De]}):Wl[De],value:De,selected:(ae==null?void 0:ae.value)===De,isAuto:Je});return ke}else return[]}),ri=ii([rt,Pi,Gt],([A,ae,ke])=>{if(ae&&ae.value!==Ct.value)return Nd(A,ae,ke)}),$i=ii([ri],([A])=>A!=null&&A.texts?A.texts:[]),hi=Ee(!0),un=ii([Pe,Kt,ct,Yi],([A,ae,ke,De])=>{var vt;let Je=(vt=A==null?void 0:A.end)!=null?vt:0;if(!De)return Je/ae;let Nt=-ke+De-ae;return(Je-Nt)/ae}),en=wt(P.info.availableSources$),cn=ii([en],([A])=>Object.keys((A==null?void 0:A[ln.VideoFormat.MPEG])||{}).length>0),Fi=()=>{var ke,De,Je;let A=Object.keys(((De=(ke=P.info.availableSources$)==null?void 0:ke.getValue())==null?void 0:De[ln.VideoFormat.MPEG])||{}),ae=(0,it.getHighestQuality)(A)||it.VideoQuality.Q_144P;return(Je=B.sources[ln.VideoFormat.MPEG])==null?void 0:Je[ae]},Ii=()=>{var ae;let A=Fi();A?Zc(A,((ae=B==null?void 0:B.meta)==null?void 0:ae.title)||"video"):Z({message:"There is no URL for download video"})},jt=()=>{Z({message:"toggle muted"});let A=P.info.muted$.getValue(),De=!(P.info.volume$.getValue()===0||A);bi(De)},ei=()=>{ft.ui.settingsMenuVisible.set(!1)},_i=A=>{ft.ui.settingsMenuOpenedByKeyboard.set(!!A),ft.ui.settingsMenuVisible.set(!0)},Hi=A=>{Ze(ft.ui.settingsMenuVisible)?ei():_i(A)},zi=(A,ae=A,ke=!1)=>{var dt,Nt,vt;let De=!ke,Je=P.info.muted$.getValue();Z({message:`set volume, volume: ${A}, preferredVolume: ${ae}, internalCall: ${De}`}),P.setVolume(A),J.setVolume(A),De&&((dt=l==null?void 0:l.onVolumeChange)==null||dt.call(l,A)),Ss(ae),Je?(P.setMuted(!1),De&&((Nt=l==null?void 0:l.onUnmute)==null||Nt.call(l)),Xr(!1)):!Je&&A===0&&(P.setMuted(!0),De&&((vt=l==null?void 0:l.onMute)==null||vt.call(l)),Xr(!0))},bi=(A,ae=!1)=>{var Je,dt,Nt,vt;let ke=!ae,De=P.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${De}, mute: ${A}, internalCall: ${ke}`}),P.setMuted(A),J.setVolume(A?0:De),Xr(A),ke&&(A?(Je=l==null?void 0:l.onMute)==null||Je.call(l):(dt=l==null?void 0:l.onUnmute)==null||dt.call(l)),De===0){let Ri=(Nt=Qr())!=null?Nt:oe.volumeDefault;Ri===0&&(Ri=oe.volumeMinRestore,Ss(Ri)),P.setVolume(Ri),J.setVolume(Ri),ke&&((vt=l==null?void 0:l.onVolumeChange)==null||vt.call(l,Ri))}},Ei=Ee(!1),Mi=A=>{Ei.set(A),P.setLooped(A)};Mi($);let Ke=()=>{P.prepare()},Ui=()=>{var ae,ke;if((0,it.assertNonNullable)(ft),!Ze(ft.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(Z({message:"toggle play"}),Ze(ft.playerPhase)==="ads"){J.togglePlay();return}if(P.info.playbackState$.getValue()!==ln.PlaybackState.PLAYING){if(P.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),qe.next(),et.next(eo.SeekAction.REWIND),w){k==null||k();return}P.seekTime(0)}Z({message:"toggle play, call player.play"}),P.play(),(ae=l==null?void 0:l.onPlay)==null||ae.call(l)}else Z({message:"toggle play, call player.pause"}),P.pause(),(ke=l==null?void 0:l.onPause)==null||ke.call(l)}},Wt=A=>{Z({message:`set quality, quality: ${A}`}),P.setAutoQuality(A==="auto"),A!=="auto"?(Qc(e,A),Jt.set(A),P.setQuality(A)):Ts()},Be=A=>{Z({message:`set trafficSavingEnabled, value: ${A}`}),P.setAutoQualityLimits({max:A?oe.trafficSavingLimit:void 0}),tf(A)},Vi=A=>{P.setPlaybackRate(A)},tn=()=>{let A=Ze(Ti),ae=A.findIndex(({selected:De})=>De);if(ae===A.length-1)return;let ke=A[ae+1];Vi(ke.value)},qi=()=>{let A=Ze(Ti),ae=A.findIndex(({selected:De})=>De);if(ae===0)return;let ke=A[ae-1];Vi(ke.value)},Li=A=>{A&&A.value!==Ct.value&&ot.next(A.isAuto?A.value+"_auto":A.value),Pi.set(A)},fn=()=>{let A=Ze(Ji),ae=Ze(Pi),ke=Ze(_e);if((ae==null?void 0:ae.value)===Ct.value){let De=A.filter(Je=>Je.value!==Ct.value).find(Je=>Je.value===ke)||A[1];Li(De!=null?De:{...Ct})}else Li({...Ct,selected:!1})},Ai=(A,ae,ke=!0)=>{if(Z({message:`seek to time, time: ${A}`}),et.next(ae),P.info.isLive$.getValue()){let De=P.info.duration$.getValue(),Je=Math.min(0,De+A);P.seekTime(Je,ke)}else{if(I!=null&&I.getValue())return;P.seekTime(go(A),ke)}},nn=A=>{Z({message:`seek to episode start time: ${A}`}),Ai(A,eo.SeekAction.EPISODE,!0)},xt=(A,ae)=>{Z({message:`seek to percent, percent: ${A}`});let ke=Math.round(Ze(Kt)*A);Ai(ke,ae,!1)},on=A=>{Z({message:`seek external, time: ${A}`}),et.next(eo.SeekAction.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-A:A)},li=A=>{var ae,ke;Z({message:`set auto quality limitation. Max: ${(ae=A.max)!=null?ae:"none"}. Min: ${(ke=A.min)!=null?ke:"none"}`}),P.setAutoQualityLimits(A)},se=A=>{Z({message:`seek external to episode start time: ${A}`}),Ai(A,eo.SeekAction.EPISODE,!0)},nt=A=>{Z({message:`set playback rate to: ${A}`}),P.setPlaybackRate(A)},Yt=Ee(void 0),ti=Ee(!1),Bi=A=>{Z({message:`start scrubbing, progress: ${A}`}),ti.set(!0),Ht(A)},Ht=A=>{Yt.set(A)},Pn,In,vn=()=>{Yt.set(void 0),ti.set(!1)},zt=()=>{clearTimeout(In),clearTimeout(Pn),Pn=window.setTimeout(()=>{vn()},500),te==null||te.removeEventListener("seeked",zt)},En=A=>{Z({message:`complete scrubbing, progress: ${A}`}),xt(A,eo.SeekAction.SLIDER),Ze(ft.ui.isMobile)&&Ze(ft.state.currentFormat$)===ln.VideoFormat.HLS?(te==null||te.addEventListener("seeked",zt),In=window.setTimeout(()=>{zt()},300)):vn()},qn=ii([rt,Kt,Yt],([A,ae,ke],De)=>{De((0,it.isNonNullable)(ke)?ke*ae:A)}),Mn=Ee({width:0,height:0}),Nn=ii([Mn],([{width:A}],ae)=>{let ke=rd(A);ae(ke)}),yn=Ee(!1),hn=ii([Nn,yn],([A,ae])=>ae?U.filter(ke=>!ke.hideOnMobile):U.filter(ke=>{var De;return!((De=ke.hideOnDesktopGridTypes)!=null&&De.includes(A))})),Dn=ii([yn,Ue],([A,ae],ke)=>{ke(A&&ae)}),On=()=>{et.next(eo.SeekAction.LIVE),Z({message:"switch to active live"}),P.seekTime(0),P.info.playbackState$.getValue()!==ln.PlaybackState.PLAYING&&ft.actions.internal.togglePlay()},re=()=>J.skip(),bt=(A=!0)=>{(0,it.assertNonNullable)(ft),Z({message:`switch from ads to video, callPlay: ${A}`}),Ne.set("video"),A&&P.play()},wn=()=>{(0,it.assertNonNullable)(ft),Z({message:"switch from video to ads"}),ft.actions.internal.pause(),at(),Ne.set("ads")},dn=A=>{(0,it.assertNonNullable)(ft);let ae=A?"waitingLive":"thumb";Ne.set(ae)},kn=A=>{(0,it.assertNonNullable)(ft);let ae=A?"waitingRecord":"thumb";Ne.set(ae)},_n=()=>((0,it.assertNonNullable)(ft),Kc(P,B,ft)),to=()=>((0,it.assertNonNullable)(ft),Wc(P,B,ft)),io=()=>te,_o=()=>{Z({message:"toggle chromecast"}),P.toggleChromecast()},xn=A=>{var ke;(0,it.assertNonNullable)(ft);let ae=!A;if(Ze(ft.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${ae}`}),J.pause();return}Z({message:`pause video, internalCall: ${ae}`}),ae&&((ke=l==null?void 0:l.onPause)==null||ke.call(l)),P.pause()},bn=A=>{var ke;(0,it.assertNonNullable)(ft);let ae=!A;if(Ze(ft.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${ae}`}),J.play();return}Z({message:`play video, internalCall: ${ae}`}),ae&&((ke=l==null?void 0:l.onPlay)==null||ke.call(l)),P.play()},ie=(A,ae)=>{(0,it.assertNonNullable)(ft),Z({message:`first start, show ads: ${A}, internalCall: ${!ae}`}),A?Ne.set("ads"):(Ne.set("video"),ae?P.play():ft.actions.internal.togglePlay())},Yn=()=>(Z({message:"getting time codes"}),c),no=()=>{let A=Yn();if(!A||[0,1].includes(A.length))return;let ae=P.info.position$.getValue();return A.find(ke=>ke.time>ae)},Oo=A=>{let ae=A;ae||(ae=no()),ae&&(Z({message:"seek to next episode"}),Ai(ae.time,eo.SeekAction.EPISODE,!0))},Kn=()=>{let A=Yn();if(!A||[0,1].includes(A.length))return;let ae=P.info.position$.getValue(),ke=A.findIndex(Je=>Je.time>ae),De=ke===-1?A.length-2:ke-2;if(!(De<0))return A[De]},oo=A=>{let ae=A;ae||(ae=Kn()),ae&&(Z({message:"seek to prev episode"}),Ai(ae.time,eo.SeekAction.EPISODE,!0))},Fo=()=>(Z({message:"getting preview thumbs data"}),f),Ho=async()=>{Q!=null&&Q.isActive()?await(Q==null?void 0:Q.remove()):await(Q==null?void 0:Q.request())},hr=(A=-90)=>{x.update(ae=>ae+A)},Qn=Ee([]);S==null||S.subscribe(A=>{let ae=[];for(let ke=0;ke<A.length;ke++){let{range:[De,Je],subjects:dt}=A[ke];ke===0&&De!==0&&ae.push({time:0,text:"",interactive:!1,completed:!0}),ae.push({time:De/1e3,text:"",interactive:!0,completed:!dt.length}),Je!==1/0&&ae.push({time:Je/1e3,text:"",interactive:!1,completed:!0})}Qn.set(ae)});let bo=Ee(!1);I==null||I.subscribe(A=>{A&&Ze(ti)&&vn()});let go=A=>{if(!w)return A;let ae=Ze(Qn),ke=Ze(Kt),Je=Ze(ct)/ke,dt=ae.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>Je);return typeof(dt==null?void 0:dt.time)=="number"?Math.min(A,dt.time-.05):A},zo=()=>{ft.ui.episodes.panelOpened$.set(!1)},vo=()=>{clearTimeout(In),clearTimeout(Pn),ge.unsubscribe(),lt.unsubscribe(),P.destroy(),J.destroy(),q==null||q.destroy(),K==null||K.destroy(),Le.unsubscribe(),tt==null||tt.disconnect(),tt=null},ft={interfaceLanguage$:_e,initVideo:ye,videoId:e,isClip:t,playerPhase:Ge,vsid:Re,state:{positionExact$:rt,positionWithScrubbing$:qn,duration$:Kt,playbackState$:ut,isPlaying$:mi,isLoaderVisible:Bt,bufferedProgress$:un,isLive$:gt,canChangePlaybackSpeed$:Zt,isActiveLive$:Xt,isOldestAvailableLive$:ni,isRewindableLive$:Ft,isEnded$:Fe,muted$:si,volume$:an,trafficSavingEnabled$:ai,autoQualityLimitingAvailable$:vi,currentQuality$:Xi,isAutoQualityEnabled$:pi,availableQualities$:$t,currentPlaybackRate$:oi,availablePlaybackRates$:Ti,currentSubtitle$:Pi,availableSubtitlesList$:Ji,currentSubtitleCaptions$:$i,isAutoSubtitleCaptionVisible$:hi,chromecastState$:Qi,chromecastDeviceName$:yi,chromecastConnected$:_t,currentFormat$:wi,throughputEstimation$:ci,videoBitrate$:ki,videoSize$:fi,errorLog$:he,crashed$:Ue,isAudioAvailable$:Si,isAudioDisabled:!!s,canDownload:oe.features.download&&!!r,availableSources$:en,hasMpegSources$:cn,isInteractive:w,showInteractiveGraph:oe.features.interactiveGraph,showSeekToInteractive:oe.features.seekToInteractive,showPlayPrevChapter:oe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:oe.features.interactiveTimeIndicator&&!!Ze(Qn).length,interactiveEpisodes$:Qn,isInteractiveTime$:I?wt(I):Ee(!1),graphIsOpened$:Ee(!1),isInteractiveExpectation$:bo,hasInteractiveBranches:C,playPrevChapterDisabledTooltip:E,looped$:Ei,isFirstBytes$:Ee(!1)},ui:{controlsVisible:Ee(!1),touched:Ee(!1),controls:{prevButton:Ee(void 0),playButton:Ee(void 0),replayButton:Ee(void 0),nextButton:Ee(void 0),playPrevChapterButton:Ee(void 0),seekToInteractiveButton:Ee(void 0),interactiveGraphButton:Ee(void 0),liveButton:Ee(void 0),time:Ee(void 0),episodes:Ee(void 0),volume:Ee(void 0),subtitles:Ee(void 0),settings:Ee(void 0),context:Ee(void 0),chromecast:Ee(void 0),pip:Ee(void 0),fullscreen:Ee(void 0),vkLogo:Ee(void 0),interactiveTimeIndicator:Ee(void 0),additionalButtons:U.length?U.reduce(A=>[...A,Ee(void 0)],[]):[],disabledControls$:we},modals:{hotKeyMap:{show:Ee(!1),data:Ee({title:"",closeBtnText:"",groups:[]})}},isFullscreen:We,rotateAlpha:x,isAutoplay:Ee(!1),debugPanelVisible:Ee(!1),episodes:{panelOpened$:Ee(!1),openedByKeyboard$:Ee(!1)},contextMenu:{visible$:Ee(!1),btnRef$:Ee(void 0),openedByBtnKeyboard$:Ee(!1),openedByHotKey$:Ee(!1),lastActiveElem$:Ee(void 0),showContextMenuBtn$:Ee(!1),position$:Ee({top:0,left:0})},playerSize:Mn,isMobile:yn,mobileNotReportControlHidden$:Dn,mobileUnmuteButtonExpanded:Ee(!1),mobileUnmuteButtonVisible:Ee(!1),icon3DVideoVisible:Ee(!1),settingsMenuVisible:Ee(!1),settingsMenuOpenedByKeyboard:Ee(!1),scrubbingInProgress:ti,is3DVideo:Ee(!1),isPictureInPictureActive$:mt,pictureInPictureType$:Ln(be),clientInfo$:Ln(He),currentGridType$:Nn,additionalButtons$:hn,interactiveHideMobileControls:Ee(!1),overlayContainer$:Ee(void 0),startedByKeyboard$:Ee(!1)},ads:{position:Ee(0),duration:Ee(0),playbackState:Ee("inactive"),canSkip:Ee(!1),secondsToWatchBeforeSkip:Ee(0),postrollPassed:Ee(!1)},webApi:{pictureInPictureApi:Q,annotationsApi:M},actions:{internal:{preload:Ke,firstStart:A=>ie(A,!1),pause:()=>xn(!1),togglePlay:Ui,toggleMuted:jt,toggleSettingsMenu:Hi,openSettingsMenu:_i,closeSettingsMenu:ei,setVolume:zi,setQuality:Wt,setTrafficSavingEnabled:A=>Be(A),setPlaybackRate:Vi,incrementPlaybackRate:tn,decrementPlaybackRate:qi,setSubtitle:Li,toggleSubtitle:fn,togglePictureInPicture:Ho,startScrubbing:Bi,progressScrubbing:Ht,completeScrubbing:En,toggleChromecast:_o,switchToActiveLive:On,switchFromAdsToVideo:bt,switchFromVideoToAds:wn,skipAd:re,setWaitingLive:dn,setWaitingRecord:kn,getDebugTextData:_n,getDebugPanelData:to,getVideoElement:io,seekTime:(A,ae,ke)=>Ai(A,ae,ke),clearDelayedBufferingCheckTimeout:di,seekEpisodeStartTime:nn,seekToPercent:xt,getNextEpisode:no,seekToNextEpisode:Oo,getPrevEpisode:Kn,seekToPrevEpisode:oo,startLogging:Et,stopLogging:kt,startCameraManualRotation:Ae,stopCameraManualRotation:Dt,moveCameraFocusPX:Lt,holdCamera:pe,releaseCamera:Mt,getVideoEpisodes:Yn,getPreviewThumbsData:Fo,downloadVideo:Ii,addLanguage:Is,setLanguage:xe,nextMovie:Se,videoRotate:hr,correctSeekTimeToInteractive:go,replayInteractive:k,setLooped:Mi},external:{firstStart:A=>ie(A,!0),play:()=>bn(!0),pause:()=>xn(!0),seekTime:A=>on(A),seekEpisodeStartTime:A=>se(A),setPlaybackRate:A=>nt(A),setAutoQualityLimits:A=>li(A),setMuted:A=>bi(A,!0),setVolume:A=>zi(A,A,!0),returnFocusToEpisodes:zo}},callbacks:l,setUiCallbacks:A=>{Ce={...A}},getAdmanWrapper:()=>J,getLogger:()=>ne,destroy:vo};return ft};var jl=(i,e,t,n)=>{var l;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],s=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,c]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let f=(l=t[a])==null?void 0:l.getBoundingClientRect(),p=(n||s.includes(a))&&!!f&&!!(f.right-f.left);c.set({positionStartX:0,positionEndX:0,left:p?Math.round(f.left-r.left):0,right:p?Math.round(f.right-r.left):0,top:p?Math.round(f.top-r.top):0,bottom:p?Math.round(f.bottom-r.top):0,isDisplayed:p})}};var xl=async(i,e,t)=>{await Vn(),e&&t&&(t.focus(),i.set(!1))};function e3(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var bu=class extends j{constructor(e){super(),X(this,e,null,e3,G,{})}},Hd=bu;function t3(i){let e,t;return e=new Hd({}),{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 i3(i){let e,t,n;function o(r){i[8](r)}let s={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:[t3]},$$scope:{ctx:i}};return i[2]!==void 0&&(s.ref=i[2]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&8&&(a.className=r[3]?"opened":""),l&1&&(a.disabled=r[0]),l&2&&(a.ariaLabel=r[1]),l&8&&(a.ariaExpanded=r[3]),l&16384&&(a.$$scope={dirty:l,ctx:r}),!t&&l&4&&(t=!0,a.ref=r[2],Me(()=>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 n,{disabled:o=!1}=e,{ariaLabel:s=""}=e,r=je(),l=r.ui.contextMenu.visible$;D(i,l,I=>t(3,n=I));let a=r.ui.contextMenu.openedByBtnKeyboard$,c=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,_,g=I=>{let k=$o(I),C=Sf(_);f.set(C),a.set(k),l.set(!n)},b=()=>{c.set(!0)},w=()=>{c.set(!1)};function S(I){_=I,t(2,_)}return i.$$set=I=>{"disabled"in I&&t(0,o=I.disabled),"ariaLabel"in I&&t(1,s=I.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:_&&p.set(_)},[o,s,_,n,l,g,b,w,S]}var gu=class extends j{constructor(e){super(),X(this,e,n3,i3,G,{disabled:0,ariaLabel:1})}},zd=gu;function o3(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 r3(i){let e,t;return e=new Sl({props:{completed:!0}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:R,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function l3(i){let e,t,n,o,s,r,l,a,c,f;function p(g){i[22](g)}let _={tooltipContent:z("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[r3]},$$scope:{ctx:i}};return i[0]!==void 0&&(_.ref=i[0]),t=new Vt({props:_}),me.push(()=>Ve(t,"ref",p)),t.$on("click",i[14]),{c(){e=T("div"),H(t.$$.fragment),o=N(),s=T("div"),r=N(),l=T("div"),u(s,"class","ref-block svelte-17imlp9"),L(s,"hidden",i[1]),u(l,"class","pulse svelte-17imlp9"),L(l,"paused",i[4]),u(e,"class","interactive-episode-icon-animated svelte-17imlp9"),L(e,"mobile",i[2]),L(e,"fullscreen",i[6]),L(e,"invisible",i[1])},m(g,b){y(g,e,b),O(t,e,null),d(e,o),d(e,s),i[23](s),d(e,r),d(e,l),i[24](l),a=!0,c||(f=[de(e,"mousemove",$e(i[21])),de(e,"mouseleave",i[15])],c=!0)},p(g,b){let w={};b[0]&32&&(w.tooltipActive=g[5]),b[1]&1&&(w.$$scope={dirty:b,ctx:g}),!n&&b[0]&1&&(n=!0,w.ref=g[0],Me(()=>n=!1)),t.$set(w),(!a||b[0]&2)&&L(s,"hidden",g[1]),(!a||b[0]&16)&&L(l,"paused",g[4]),(!a||b[0]&4)&&L(e,"mobile",g[2]),(!a||b[0]&64)&&L(e,"fullscreen",g[6]),(!a||b[0]&2)&&L(e,"invisible",g[1])},i(g){a||(m(t.$$.fragment,g),a=!0)},o(g){h(t.$$.fragment,g),a=!1},d(g){g&&v(e),F(t),i[23](null),i[24](null),c=!1,Ye(f)}}}function s3(i,e,t){var te;let n,o,s,r,l,a,{ref:c=void 0}=e,f,p=je(),_=An(),{interactiveControlsOpacity$:g}=_;D(i,g,Ce=>t(18,o=Ce));let b=p.ui.isMobile;D(i,b,Ce=>t(2,l=Ce));let w=p.ui.isFullscreen;D(i,w,Ce=>t(6,a=Ce));let S=p.state.isInteractiveTime$;D(i,S,Ce=>t(19,s=Ce));let I=_.showInteractiveTimeIndicatorTooltip$;D(i,I,Ce=>t(17,n=Ce));let k=p.ui.controlsVisible;D(i,k,Ce=>t(20,r=Ce));let C=(te=p.callbacks)==null?void 0:te.onInteractiveTimeIndicatorClick,E,U,$,q=()=>{t(4,$=!0)},le=()=>{oe(),f==null||f.addEventListener("animationiteration",q,{once:!0})},oe=()=>{t(4,$=!1),f==null||f.removeEventListener("animationiteration",q)},P=Ce=>{I.set(Ce)},ne,J=()=>{U||(I.set(!0),C==null||C())};Hn(()=>{I.clearTimeout(),oe()});let K=()=>{I.set(!1)};function Q(Ce){Cn.call(this,i,Ce)}function M(Ce){c=Ce,t(0,c)}function Z(Ce){me[Ce?"unshift":"push"](()=>{c=Ce,t(0,c)})}function B(Ce){me[Ce?"unshift":"push"](()=>{f=Ce,t(3,f)})}return i.$$set=Ce=>{"ref"in Ce&&t(0,c=Ce.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,E=!l&&r);if(i.$$.dirty[0]&851968)e:t(1,U=!s||!!o||E);if(i.$$.dirty[0]&2)e:t(4,$=U);if(i.$$.dirty[0]&131074)e:t(5,ne=n&&!U);if(i.$$.dirty[0]&131072)e:n?le():oe()},[c,U,l,f,$,ne,a,g,b,w,S,I,k,P,J,K,E,n,o,s,r,Q,M,Z,B]}var vu=class extends j{constructor(e){super(),X(this,e,s3,l3,G,{ref:0},o3,[-1,-1])}},Yl=vu;function u3(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 Ud(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 qd(i){let e,t,n;function o(r){i[173](r)}let s={disabled:!i[9],tooltipContent:z("tooltip_previous"),$$slots:{default:[c3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(s.ref=i[23].prevButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&512&&(a.disabled=!r[9]),l[0]&4608|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].prevButton,Me(()=>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;return e=new lr({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 s={};o[0]&4096&&(s.click=n[12]),o[0]&512&&(s.disabled=!n[9]),e.$set(s)},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[174](r)}let s={disabled:i[74],tooltipContent:z("tooltip_restart"),$$slots:{default:[f3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(s.ref=i[23].replayButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[2]&4096&&(a.disabled=r[74]),l[2]&4096|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].replayButton,Me(()=>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 f3(i){let e,t;return e=new Vr({props:{click:i[128],disabled:i[74]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[2]&4096&&(s.disabled=n[74]),e.$set(s)},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[176](r)}let s={tooltipContent:i[47],disabled:i[75],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(s.ref=i[23].playButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&65536&&(a.tooltipContent=r[47]),l[2]&8192&&(a.disabled=r[75]),l[0]&67108864|l[1]&8|l[2]&8192|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].playButton,Me(()=>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,n;function o(r){i[175](r)}let s={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(s.ref=i[26]),e=new Mr({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&8&&(a.isPlaying=r[34]),l[2]&8192&&(a.disabled=r[75]),!t&&l[0]&67108864&&(t=!0,a.ref=r[26],Me(()=>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,n;function o(r){i[177](r)}let s={disabled:!i[8],tooltipContent:z("tooltip_next"),$$slots:{default:[m3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(s.ref=i[23].nextButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&256&&(a.disabled=!r[8]),l[0]&2304|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].nextButton,Me(()=>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;return e=new lr({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 s={};o[0]&2048&&(s.click=n[11]),o[0]&256&&(s.disabled=!n[8]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function p3(i){let e,t,n,o,s=i[121]&&h3(i),r=i[120]&&b3(i),l=i[119]&&v3(i);return{c(){s&&s.c(),e=N(),r&&r.c(),t=N(),l&&l.c(),n=Xe()},m(a,c){s&&s.m(a,c),y(a,e,c),r&&r.m(a,c),y(a,t,c),l&&l.m(a,c),y(a,n,c),o=!0},p(a,c){a[121]&&s.p(a,c),a[120]&&r.p(a,c),a[119]&&l.p(a,c)},i(a){o||(m(s),m(r),m(l),o=!0)},o(a){h(s),h(r),h(l),o=!1},d(a){a&&(v(e),v(t),v(n)),s&&s.d(a),r&&r.d(a),l&&l.d(a)}}}function h3(i){let e,t,n;function o(r){i[178](r)}let s={disabled:i[73],tooltipContent:z("tooltip_interactive_go_back"),disabledTooltipContent:z(i[124]),$$slots:{default:[_3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(s.ref=i[23].playPrevChapterButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[2]&2048&&(a.disabled=r[73]),l[0]&131072|l[2]&2048|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].playPrevChapterButton,Me(()=>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 Hl({props:{disabled:i[73],click:i[17]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[2]&2048&&(s.disabled=n[73]),o[0]&131072&&(s.click=n[17]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function b3(i){let e,t,n;function o(r){i[179](r)}let s={disabled:i[76],tooltipContent:z("tooltip_interactive_seek"),disabledTooltipContent:z(i[78]),$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(s.ref=i[23].seekToInteractiveButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[2]&16384&&(a.disabled=r[76]),l[2]&65536&&(a.disabledTooltipContent=z(r[78])),l[0]&32768|l[2]&16384|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].seekToInteractiveButton,Me(()=>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 Dl({props:{disabled:i[76],click:i[15]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[2]&16384&&(s.disabled=n[76]),o[0]&32768&&(s.click=n[15]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function v3(i){let e,t,n;function o(r){i[180](r)}let s={tooltipContent:i[48],disabled:i[77],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(s.ref=i[23].interactiveGraphButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&131072&&(a.tooltipContent=r[48]),l[2]&32768&&(a.disabled=r[77]),l[0]&65536|l[1]&1|l[2]&32768|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].interactiveGraphButton,Me(()=>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 Ol({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 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){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[181](r)}let s={tooltipContent:i[50],$$slots:{default:[w3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(s.ref=i[23].liveButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&524288&&(a.tooltipContent=r[50]),l[0]&2097152|l[1]&524288|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].liveButton,Me(()=>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 Ll({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 s={};o[0]&2097152&&(s.isActiveLive=n[21]),o[1]&524288&&(s.ariaLabel=n[50]),e.$set(s)},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[182](r)}let s={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&&(s.ref=i[23].time),e=new kl({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&16777216&&(a.showDuration=r[55]),l[0]&16|l[2]&393216&&(a.position=r[4]?r[79]:r[80]),l[0]&16|l[2]&1572864&&(a.duration=r[4]?r[81]:r[82]),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].time,Me(()=>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 xd(i){let e,t;return e=new Nl({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 s={};o[2]&262144&&(s.position=n[80]),o[2]&1048576&&(s.duration=n[82]),e.$set(s)},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,n=i[20]&&xd(i);return{c(){n&&n.c(),e=Xe()},m(o,s){n&&n.m(o,s),y(o,e,s),t=!0},p(o,s){o[20]?n?(n.p(o,s),s[0]&1048576&&m(n,1)):(n=xd(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&&v(e),n&&n.d(o)}}}function C3(i){var n;let e,t;return e=new zl({props:{iconUrl:i[209],ariaLabel:(n=i[210])!=null?n:i[213],testId:i[211],onClick:i[212]}}),{c(){H(e.$$.fragment)},m(o,s){O(e,o,s),t=!0},p(o,s){var l;let r={};s[0]&268435456&&(r.iconUrl=o[209]),s[0]&268435456&&(r.ariaLabel=(l=o[210])!=null?l:o[213]),s[0]&268435456&&(r.testId=o[211]),s[0]&268435456&&(r.onClick=o[212]),e.$set(r)},i(o){t||(m(e.$$.fragment,o),t=!0)},o(o){h(e.$$.fragment,o),t=!1},d(o){F(e,o)}}}function Yd(i){let e,t;return e=new Vt({props:{tooltipContent:i[213],width:40,$$slots:{default:[C3]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let 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){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;function o(r){i[185](r)}let s={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[S3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(s.ref=i[23].vkLogo),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&64&&(a.disabled=!r[6]),l[1]&1048576&&(a.tooltipContent=r[51]),l[0]&192|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].vkLogo,Me(()=>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 El({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 s={};o[0]&128&&(s.targetUrl=n[7]),o[0]&64&&(s.logoClickable=n[6]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function T3(i){let e,t;return e=new sd({props:{click:i[127]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:R,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 s={tooltipContent:i[52],$$slots:{default:[P3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(s.ref=i[23].subtitles),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&2097152&&(a.tooltipContent=r[52]),l[0]&262144|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].subtitles,Me(()=>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 W1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&262144&&(s.isSubtitlesEnabled=n[18]),e.$set(s)},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){var l;let e,t,n,o;function s(a){i[188](a)}let r={supportLink:i[10],playerControlsHeight:(l=i[46])==null?void 0:l.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new wl({props:r}),me.push(()=>Ve(t,"ref",s)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","settings-menu svelte-st0uzk")},m(a,c){y(a,e,c),O(t,e,null),o=!0},p(a,c){var p;let f={};c[0]&1024&&(f.supportLink=a[10]),c[1]&32768&&(f.playerControlsHeight=(p=a[46])==null?void 0:p.clientHeight),c[0]&16384&&(f.returnFocus=a[14]),!n&&c[0]&16777216&&(n=!0,f.ref=a[24],Me(()=>n=!1)),t.$set(f)},i(a){o||(m(t.$$.fragment,a),o=!0)},o(a){h(t.$$.fragment,a),o=!1},d(a){a&&v(e),F(t)}}}function $d(i){let e,t,n;function o(r){i[190](r)}let s={tooltipContent:i[27]?void 0:z("tooltip_settings_off"),$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(s.ref=i[23].settings),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&134217728&&(a.tooltipContent=r[27]?void 0:z("tooltip_settings_off")),l[0]&33554432|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].settings,Me(()=>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,n;function o(r){i[189](r)}let s={};return i[25]!==void 0&&(s.ref=i[25]),e=new Ir({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};!t&&l[0]&33554432&&(t=!0,a.ref=r[25],Me(()=>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 E3(i){let e,t,n;function o(r){i[191](r)}let s={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(s.ref=i[23].context),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&1024&&(a.className=r[41]?"":"out-of-view"),l[1]&262144&&(a.tooltipContent=r[49]),l[1]&262144|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].context,Me(()=>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;return e=new zd({props:{ariaLabel:i[49]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[1]&262144&&(s.ariaLabel=n[49]),e.$set(s)},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;function o(r){i[192](r)}let s={tooltipContent:i[53],$$slots:{default:[V3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(s.ref=i[23].fullscreen),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&4194304&&(a.tooltipContent=r[53]),l[0]&1073750016|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].fullscreen,Me(()=>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 V3(i){let e,t;return e=new Pl({props:{click:i[13],isFullscreen:i[30]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&8192&&(s.click=n[13]),o[0]&1073741824&&(s.isFullscreen=n[30]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function t0(i){let e,t,n;function o(r){i[193](r)}let s={tooltipContent:i[54],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(s.ref=i[23].chromecast),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&8388608&&(a.tooltipContent=r[54]),l[0]&536870912|l[6]&1073741824&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&8388608&&(t=!0,a.ref=r[23].chromecast,Me(()=>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 Ml({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 s={};o[0]&536870912&&(s.state=n[29]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function A3(i){let e,t,n;function o(r){i[196](r)}let s={};return i[23].interactiveTimeIndicator!==void 0&&(s.ref=i[23].interactiveTimeIndicator),e=new Yl({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};!t&&l[0]&8388608&&(t=!0,a.ref=r[23].interactiveTimeIndicator,Me(()=>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,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,ne,J,K,Q;t=new Rl({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let M=i[38]&&qd(i),Z=i[35]&&Kd(i),B=i[36]&&Wd(i),te=i[37]&&Zd(i),Ce=i[117]&&p3(i),He=!i[4]&&i[33]&&Gd(i),Re=i[19]&&jd(i);function We(ue){i[183](ue)}let Oe={className:"w-max",disabled:!i[20],tooltipContent:z("tooltip_episodes"),$$slots:{default:[k3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Oe.ref=i[23].episodes),g=new Vt({props:Oe}),me.push(()=>Ve(g,"ref",We));let be=yt(i[28]),x=[];for(let ue=0;ue<be.length;ue+=1)x[ue]=Yd(Ud(i,be,ue));let he=ue=>h(x[ue],1,1,()=>{x[ue]=null}),Le=i[43]&&!i[4]&&Qd(i);function Ue(ue){i[186](ue)}let xe={$$slots:{default:[T3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(xe.ref=i[23].volume),E=new Vt({props:xe}),me.push(()=>Ve(E,"ref",Ue));let _e=i[40]&&Xd(i),Te=!i[83]&&!i[4]&&Jd(i),Ne=i[42]&&!i[4]&&$d(i),Ge=i[84].features.contextMenuButton&&E3(i),we=i[44]&&e0(i),W=i[39]&&t0(i),ye=i[122]&&A3(i);return{c(){e=T("div"),H(t.$$.fragment),n=N(),o=T("div"),s=T("div"),M&&M.c(),r=N(),Z&&Z.c(),l=N(),B&&B.c(),a=N(),te&&te.c(),c=N(),Ce&&Ce.c(),f=N(),He&&He.c(),p=N(),Re&&Re.c(),_=N(),H(g.$$.fragment),S=N(),I=T("div");for(let ue=0;ue<x.length;ue+=1)x[ue].c();k=N(),Le&&Le.c(),C=N(),H(E.$$.fragment),$=N(),_e&&_e.c(),q=N(),Te&&Te.c(),le=N(),Ne&&Ne.c(),oe=N(),Ge&&Ge.c(),P=N(),we&&we.c(),ne=N(),W&&W.c(),J=N(),ye&&ye.c(),K=Xe(),u(s,"class","controls-left svelte-st0uzk"),zn(()=>i[184].call(s)),u(I,"class","controls-right svelte-st0uzk"),u(o,"class","controls svelte-st0uzk"),u(e,"class","wrapper-bottom svelte-st0uzk"),L(e,"hidden",i[1]),L(e,"controls-hidden",!i[3]),L(e,"no-smooth",i[2])},m(ue,Se){y(ue,e,Se),O(t,e,null),d(e,n),d(e,o),d(o,s),M&&M.m(s,null),d(s,r),Z&&Z.m(s,null),d(s,l),B&&B.m(s,null),d(s,a),te&&te.m(s,null),d(s,c),Ce&&Ce.m(s,null),d(s,f),He&&He.m(s,null),d(s,p),Re&&Re.m(s,null),d(s,_),O(g,s,null),w=qo(s,i[184].bind(s)),d(o,S),d(o,I);for(let qe=0;qe<x.length;qe+=1)x[qe]&&x[qe].m(I,null);d(I,k),Le&&Le.m(I,null),d(I,C),O(E,I,null),d(I,$),_e&&_e.m(I,null),d(I,q),Te&&Te.m(I,null),d(I,le),Ne&&Ne.m(I,null),d(I,oe),Ge&&Ge.m(I,null),d(I,P),we&&we.m(I,null),d(I,ne),W&&W.m(I,null),i[194](o),i[195](e),y(ue,J,Se),ye&&ye.m(ue,Se),y(ue,K,Se),Q=!0},p(ue,Se){let qe={};Se[1]&16384&&(qe.isHidden=!ue[45]),Se[0]&16&&(qe.isAds=ue[4]),Se[0]&32&&(qe.canRewindLive=ue[5]),Se[1]&2&&(qe.isRewindableLive=ue[32]),t.$set(qe),ue[38]?M?(M.p(ue,Se),Se[1]&128&&m(M,1)):(M=qd(ue),M.c(),m(M,1),M.m(s,r)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),ue[35]?Z?(Z.p(ue,Se),Se[1]&16&&m(Z,1)):(Z=Kd(ue),Z.c(),m(Z,1),Z.m(s,l)):Z&&(ce(),h(Z,1,1,()=>{Z=null}),fe()),ue[36]?B?(B.p(ue,Se),Se[1]&32&&m(B,1)):(B=Wd(ue),B.c(),m(B,1),B.m(s,a)):B&&(ce(),h(B,1,1,()=>{B=null}),fe()),ue[37]?te?(te.p(ue,Se),Se[1]&64&&m(te,1)):(te=Zd(ue),te.c(),m(te,1),te.m(s,c)):te&&(ce(),h(te,1,1,()=>{te=null}),fe()),ue[117]&&Ce.p(ue,Se),!ue[4]&&ue[33]?He?(He.p(ue,Se),Se[0]&16|Se[1]&4&&m(He,1)):(He=Gd(ue),He.c(),m(He,1),He.m(s,p)):He&&(ce(),h(He,1,1,()=>{He=null}),fe()),ue[19]?Re?(Re.p(ue,Se),Se[0]&524288&&m(Re,1)):(Re=jd(ue),Re.c(),m(Re,1),Re.m(s,_)):Re&&(ce(),h(Re,1,1,()=>{Re=null}),fe());let et={};if(Se[0]&1048576&&(et.disabled=!ue[20]),Se[0]&1048576|Se[2]&1310720|Se[6]&1073741824&&(et.$$scope={dirty:Se,ctx:ue}),!b&&Se[0]&8388608&&(b=!0,et.ref=ue[23].episodes,Me(()=>b=!1)),g.$set(et),Se[0]&268435456){be=yt(ue[28]);let tt;for(tt=0;tt<be.length;tt+=1){let ht=Ud(ue,be,tt);x[tt]?(x[tt].p(ht,Se),m(x[tt],1)):(x[tt]=Yd(ht),x[tt].c(),m(x[tt],1),x[tt].m(I,k))}for(ce(),tt=be.length;tt<x.length;tt+=1)he(tt);fe()}ue[43]&&!ue[4]?Le?(Le.p(ue,Se),Se[0]&16|Se[1]&4096&&m(Le,1)):(Le=Qd(ue),Le.c(),m(Le,1),Le.m(I,C)):Le&&(ce(),h(Le,1,1,()=>{Le=null}),fe());let ot={};Se[6]&1073741824&&(ot.$$scope={dirty:Se,ctx:ue}),!U&&Se[0]&8388608&&(U=!0,ot.ref=ue[23].volume,Me(()=>U=!1)),E.$set(ot),ue[40]?_e?(_e.p(ue,Se),Se[1]&512&&m(_e,1)):(_e=Xd(ue),_e.c(),m(_e,1),_e.m(I,q)):_e&&(ce(),h(_e,1,1,()=>{_e=null}),fe()),!ue[83]&&!ue[4]?Te?(Te.p(ue,Se),Se[0]&16|Se[2]&2097152&&m(Te,1)):(Te=Jd(ue),Te.c(),m(Te,1),Te.m(I,le)):Te&&(ce(),h(Te,1,1,()=>{Te=null}),fe()),ue[42]&&!ue[4]?Ne?(Ne.p(ue,Se),Se[0]&16|Se[1]&2048&&m(Ne,1)):(Ne=$d(ue),Ne.c(),m(Ne,1),Ne.m(I,oe)):Ne&&(ce(),h(Ne,1,1,()=>{Ne=null}),fe()),ue[84].features.contextMenuButton&&Ge.p(ue,Se),ue[44]?we?(we.p(ue,Se),Se[1]&8192&&m(we,1)):(we=e0(ue),we.c(),m(we,1),we.m(I,ne)):we&&(ce(),h(we,1,1,()=>{we=null}),fe()),ue[39]?W?(W.p(ue,Se),Se[1]&256&&m(W,1)):(W=t0(ue),W.c(),m(W,1),W.m(I,null)):W&&(ce(),h(W,1,1,()=>{W=null}),fe()),(!Q||Se[0]&2)&&L(e,"hidden",ue[1]),(!Q||Se[0]&8)&&L(e,"controls-hidden",!ue[3]),(!Q||Se[0]&4)&&L(e,"no-smooth",ue[2]),ue[122]&&ye.p(ue,Se)},i(ue){if(!Q){m(t.$$.fragment,ue),m(M),m(Z),m(B),m(te),m(Ce),m(He),m(Re),m(g.$$.fragment,ue);for(let Se=0;Se<be.length;Se+=1)m(x[Se]);m(Le),m(E.$$.fragment,ue),m(_e),m(Te),m(Ne),m(Ge),m(we),m(W),m(ye),Q=!0}},o(ue){h(t.$$.fragment,ue),h(M),h(Z),h(B),h(te),h(Ce),h(He),h(Re),h(g.$$.fragment,ue),x=x.filter(Boolean);for(let Se=0;Se<x.length;Se+=1)h(x[Se]);h(Le),h(E.$$.fragment,ue),h(_e),h(Te),h(Ne),h(Ge),h(we),h(W),h(ye),Q=!1},d(ue){ue&&(v(e),v(J),v(K)),F(t),M&&M.d(),Z&&Z.d(),B&&B.d(),te&&te.d(),Ce&&Ce.d(),He&&He.d(),Re&&Re.d(),F(g),w(),Di(x,ue),Le&&Le.d(),F(E),_e&&_e.d(),Te&&Te.d(),Ne&&Ne.d(),Ge&&Ge.d(),we&&we.d(),W&&W.d(),i[194](null),i[195](null),ye&&ye.d(ue)}}}function R3(i,e,t){var cc,fc;let n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,ne,J,K,Q,M,Z,B,te,Ce=R,He=()=>(Ce(),Ce=Ut(oe,ee=>t(144,te=ee)),oe),Re,We=R,Oe=()=>(We(),We=Ut(le,ee=>t(145,Re=ee)),le),be,x=R,he=()=>(x(),x=Ut(q,ee=>t(146,be=ee)),q),Le,Ue=R,xe=()=>(Ue(),Ue=Ut($,ee=>t(147,Le=ee)),$),_e,Te=R,Ne=()=>(Te(),Te=Ut(U,ee=>t(148,_e=ee)),U),Ge,we=R,W=()=>(we(),we=Ut(E,ee=>t(149,Ge=ee)),E),ye,ue=R,Se=()=>(ue(),ue=Ut(C,ee=>t(150,ye=ee)),C),qe,et=R,ot=()=>(et(),et=Ut(k,ee=>t(151,qe=ee)),k),tt,ht=R,at=()=>(ht(),ht=Ut(I,ee=>t(152,tt=ee)),I),ge,lt=R,Et=()=>(lt(),lt=Ut(S,ee=>t(153,ge=ee)),S),kt,Ae=R,Dt=()=>(Ae(),Ae=Ut(w,ee=>t(154,kt=ee)),w),Lt,pe=R,Mt=()=>(pe(),pe=Ut(b,ee=>t(155,Lt=ee)),b),rt,mt=R,ut=()=>(mt(),mt=Ut(g,ee=>t(156,rt=ee)),g),Pe,Fe=R,gt=()=>(Fe(),Fe=Ut(_,ee=>t(157,Pe=ee)),_),Zt,Yi=R,an=()=>(Yi(),Yi=Ut(p,ee=>t(158,Zt=ee)),p),si,ai=R,vi=()=>(ai(),ai=Ut(f,ee=>t(159,si=ee)),f),Qt,ui=R,Qi=()=>(ui(),ui=Ut(c,ee=>t(160,Qt=ee)),c),yi,wi,ci,ki,fi,Ci,Si,At,Ot,Bt,di,Kt,mi,Xt,ni,ct,Ft,_t,Jt,pi,pn,Xi,$t;i.$$.on_destroy.push(()=>Ce()),i.$$.on_destroy.push(()=>We()),i.$$.on_destroy.push(()=>x()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>Te()),i.$$.on_destroy.push(()=>we()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>et()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>lt()),i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>pe()),i.$$.on_destroy.push(()=>mt()),i.$$.on_destroy.push(()=>Fe()),i.$$.on_destroy.push(()=>Yi()),i.$$.on_destroy.push(()=>ai()),i.$$.on_destroy.push(()=>ui());let{bottomHidden:oi}=e,{bottomNoSmooth:Ti}=e,{showControls:Oi}=e,{controlsElementRef:Gt=void 0}=e,{isAds:Ct=!1}=e,{canRewindLive:Pi}=e,{logoClickable:Ji}=e,{logoHidden:ri}=e,{logoTargetUrl:$i=""}=e,{showNextPrevButtons:hi}=e,{nextButtonActive:un}=e,{prevButtonActive:en}=e,{isOneVideoPlaylist:cn=!1}=e,{supportLink:Fi}=e,{customFullscreenSupported:Ii=!0}=e,{playNextVideo:jt}=e,{playPrevVideo:ei}=e,{repeatPlaylist:_i}=e,{toggleFullscreen:Hi}=e,{returnFocus:zi}=e,{seekToInteractive:bi}=e,{toggleGraph:Ei}=e,{playPrevChapter:Mi}=e,Ke=je(),Ui=An(),Wt=Rt(),Be=Ke.actions.internal.toggleMuted,Vi=Ke.actions.internal.togglePlay,tn=Ke.actions.internal.pause,qi=Ke.actions.internal.toggleSubtitle,Li=(cc=Ke.callbacks)==null?void 0:cc.onAudioDoesNotExistHint,fn=(fc=Ke.callbacks)==null?void 0:fc.onAudioDisabledHint,Ai=Ke.state.duration$;D(i,Ai,ee=>t(82,Xi=ee));let nn=Ke.state.positionWithScrubbing$;D(i,nn,ee=>t(80,pi=ee));let xt=Ke.state.playbackState$;D(i,xt,ee=>t(161,ci=ee));let on=Ke.state.chromecastConnected$;D(i,on,ee=>t(83,$t=ee));let li=Ke.state.isAudioAvailable$;D(i,li,ee=>t(197,P=ee));let se=Ke.state.isAudioDisabled,nt=Ke.state.isEnded$;D(i,nt,ee=>t(169,Xt=ee));let Yt=Ke.state.isLive$;D(i,Yt,ee=>t(33,At=ee));let ti=Ke.state.isActiveLive$;D(i,ti,ee=>t(163,Ci=ee));let Bi=Ke.state.isRewindableLive$;D(i,Bi,ee=>t(32,Si=ee));let Ht=Ke.ui.isPictureInPictureActive$;D(i,Ht,ee=>t(165,Bt=ee));let Pn=Ke.ui.pictureInPictureType$;D(i,Pn,ee=>t(164,Ot=ee));let In=Ke.ui.settingsMenuVisible;D(i,In,ee=>t(27,K=ee));let vn=Ke.ui.settingsMenuOpenedByKeyboard;D(i,vn,ee=>t(140,J=ee));let zt=Ke.ui.controls,En=Ke.actions.internal.getVideoEpisodes(),qn=Ke.state.chromecastState$;D(i,qn,ee=>t(29,yi=ee));let Mn=Ke.state.availableSubtitlesList$;D(i,Mn,ee=>t(168,mi=ee));let Nn=Ke.state.currentSubtitle$;D(i,Nn,ee=>t(170,ni=ee));let yn=zt.disabledControls$;D(i,yn,ee=>t(172,Ft=ee));let hn=Ke.ui.contextMenu.visible$;D(i,hn,ee=>t(162,ki=ee));let Dn=Ke.ui.contextMenu.showContextMenuBtn$;D(i,Dn,ee=>t(166,di=ee));let On=Ke.ui.contextMenu.openedByBtnKeyboard$;D(i,On,ee=>t(167,Kt=ee));let re=Ke.ui.startedByKeyboard$;D(i,re,ee=>t(139,ne=ee));let bt=Ke.ads.duration;D(i,bt,ee=>t(81,pn=ee));let wn=Ke.ads.position;D(i,wn,ee=>t(79,Jt=ee));let dn=Ke.ads.playbackState;D(i,dn,ee=>t(171,ct=ee));let kn=Ke.ui.isFullscreen;D(i,kn,ee=>t(30,wi=ee));let _n=Ke.ui.playerSize;D(i,_n,ee=>t(142,M=ee));let to=Ke.ui.currentGridType$;D(i,to,ee=>t(143,Z=ee));let io=Ke.ui.additionalButtons$;D(i,io,ee=>t(28,B=ee));let _o=Ke.actions.internal.getVideoElement,xn=Ke.actions.internal.replayInteractive,bn=Ke.state.isInteractive,ie=Ke.state.isInteractiveTime$;D(i,ie,ee=>t(141,Q=ee));let Yn=Ke.state.showInteractiveGraph,no=Ke.state.showSeekToInteractive,Oo=Ke.state.showPlayPrevChapter,Kn=Ke.state.showInteractiveTimeIndicator,oo=Ke.state.graphIsOpened$;D(i,oo,ee=>t(31,fi=ee));let Fo=Ke.state.playPrevChapterDisabledTooltip,Ho=Ui.seekToInteractiveDisabledTooltip$;D(i,Ho,ee=>t(78,_t=ee));let hr=()=>Ke.actions.internal.toggleChromecast(),Qn,bo,go,zo,vo,ft,Y,pt,rn,Ki,A,ae,ke,De,Je,dt,Nt,vt,Ri,yo,Dr,Uo="",cp=(ee,ms)=>{if(!ee){t(50,Uo=z("tooltip_live"));return}ms===No.PlaybackState.PAUSED&&t(50,Uo=z("tooltip_play"))},rc,lc,sc,ac,Or,Qe={},Fn,_r,ds,uc,fp=(0,i0.throttleFn)(jl,260,{leading:!1}),Fr,Hr,zr;function dp(){co({isAudioDisabled:se,audioDisabledHintCallback:fn,isAudioAvailable:P,audioIsNotExistHintCallback:Li})&&Be()}let mp=bn?xn:cn?Vi:_i;function pp(ee){i.$$.not_equal(Qe.prevButton,ee)&&(Qe.prevButton=ee,t(23,Qe))}function hp(ee){i.$$.not_equal(Qe.replayButton,ee)&&(Qe.replayButton=ee,t(23,Qe))}function _p(ee){zr=ee,t(26,zr)}function bp(ee){i.$$.not_equal(Qe.playButton,ee)&&(Qe.playButton=ee,t(23,Qe))}function gp(ee){i.$$.not_equal(Qe.nextButton,ee)&&(Qe.nextButton=ee,t(23,Qe))}function vp(ee){i.$$.not_equal(Qe.playPrevChapterButton,ee)&&(Qe.playPrevChapterButton=ee,t(23,Qe))}function yp(ee){i.$$.not_equal(Qe.seekToInteractiveButton,ee)&&(Qe.seekToInteractiveButton=ee,t(23,Qe))}function wp(ee){i.$$.not_equal(Qe.interactiveGraphButton,ee)&&(Qe.interactiveGraphButton=ee,t(23,Qe))}function kp(ee){i.$$.not_equal(Qe.liveButton,ee)&&(Qe.liveButton=ee,t(23,Qe))}function Cp(ee){i.$$.not_equal(Qe.time,ee)&&(Qe.time=ee,t(23,Qe))}function Sp(ee){i.$$.not_equal(Qe.episodes,ee)&&(Qe.episodes=ee,t(23,Qe))}function Tp(){Or=this.clientWidth,t(22,Or)}function Pp(ee){i.$$.not_equal(Qe.vkLogo,ee)&&(Qe.vkLogo=ee,t(23,Qe))}function Ip(ee){i.$$.not_equal(Qe.volume,ee)&&(Qe.volume=ee,t(23,Qe))}function Ep(ee){i.$$.not_equal(Qe.subtitles,ee)&&(Qe.subtitles=ee,t(23,Qe))}function Mp(ee){Fr=ee,t(24,Fr)}function Vp(ee){Hr=ee,t(25,Hr)}function Lp(ee){i.$$.not_equal(Qe.settings,ee)&&(Qe.settings=ee,t(23,Qe))}function Ap(ee){i.$$.not_equal(Qe.context,ee)&&(Qe.context=ee,t(23,Qe))}function Bp(ee){i.$$.not_equal(Qe.fullscreen,ee)&&(Qe.fullscreen=ee,t(23,Qe))}function Rp(ee){i.$$.not_equal(Qe.chromecast,ee)&&(Qe.chromecast=ee,t(23,Qe))}function Np(ee){me[ee?"unshift":"push"](()=>{Nt=ee,t(46,Nt)})}function Dp(ee){me[ee?"unshift":"push"](()=>{Gt=ee,t(0,Gt)})}function Op(ee){i.$$.not_equal(Qe.interactiveTimeIndicator,ee)&&(Qe.interactiveTimeIndicator=ee,t(23,Qe))}i.$$set=ee=>{"bottomHidden"in ee&&t(1,oi=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,Ti=ee.bottomNoSmooth),"showControls"in ee&&t(3,Oi=ee.showControls),"controlsElementRef"in ee&&t(0,Gt=ee.controlsElementRef),"isAds"in ee&&t(4,Ct=ee.isAds),"canRewindLive"in ee&&t(5,Pi=ee.canRewindLive),"logoClickable"in ee&&t(6,Ji=ee.logoClickable),"logoHidden"in ee&&t(129,ri=ee.logoHidden),"logoTargetUrl"in ee&&t(7,$i=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(130,hi=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(8,un=ee.nextButtonActive),"prevButtonActive"in ee&&t(9,en=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(131,cn=ee.isOneVideoPlaylist),"supportLink"in ee&&t(10,Fi=ee.supportLink),"customFullscreenSupported"in ee&&t(132,Ii=ee.customFullscreenSupported),"playNextVideo"in ee&&t(11,jt=ee.playNextVideo),"playPrevVideo"in ee&&t(12,ei=ee.playPrevVideo),"repeatPlaylist"in ee&&t(133,_i=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(13,Hi=ee.toggleFullscreen),"returnFocus"in ee&&t(14,zi=ee.returnFocus),"seekToInteractive"in ee&&t(15,bi=ee.seekToInteractive),"toggleGraph"in ee&&t(16,Ei=ee.toggleGraph),"playPrevChapter"in ee&&t(17,Mi=ee.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Ft.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Ft.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,s=Ft.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,r=Ft.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,l=Ft.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,a=Ft.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Qn=Ct?ct==="playing":ci===No.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,bo=ni.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,go=Xt&&!Ct||bn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,zo=!Xt||bn||Ct);if(i.$$.dirty[4]&524288)e:t(134,vo=Tn(Z,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,ft=hi&&Tn(Z,"m")&&!Ct&&un);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,Y=hi&&Tn(Z,"m")&&!Ct&&en);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,pt=yi!==No.ChromecastState.NOT_AVAILABLE&&!(Bt&&Ot===1)&&Tn(Z,"m")&&!bn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,rn=mi.length>0&&Tn(Z,"m"));if(i.$$.dirty[5]&6144)e:t(41,Ki=Kt||di);if(i.$$.dirty[4]&524288)e:t(42,A=Tn(Z,"s"));if(i.$$.dirty[4]&32)e:t(43,ae=!ri);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,ke=Wt.features.fullscreen&&(ri||Tn(Z,"s"))&&!(Bt&&Ot===1)&&(bn?Ii:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,De=(!At||Ct)&&!(Wt.features.interactiveHideTime&&bn));if(i.$$.dirty[4]&262144)e:t(45,Je=M.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,dt=!Ct&&!At&&!!(En!=null&&En.length)&&vo&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,vt=!Si||Ci);if(i.$$.dirty[5]&64)e:t(47,Ri=ci===No.PlaybackState.PLAYING?z("tooltip_pause"):z("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,yo=fi?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,Dr=ki?z("aria_label_context_menu_close"):z("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:cp(vt,ci);if(i.$$.dirty[0]&262144)e:t(52,lc=bo?z("tooltip_subtitles_on"):z("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,sc=wi?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,ac=yi===No.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,Fn={prevButton:Qt?Qt.right-Qt.left:0,replayButton:si?si.right-si.left:0,playButton:Zt?Zt.right-Zt.left:0,nextButton:Pe?Pe.right-Pe.left:0,playPrevChapterButton:rt?rt.right-rt.left:0,seekToInteractiveButton:Lt?Lt.right-Lt.left:0,interactiveGraphButton:kt?kt.right-kt.left:0,liveButton:ge?ge.right-ge.left:0,time:tt?tt.right-tt.left:0,episodes:qe?qe.right-qe.left:0,vkLogo:ye?ye.right-ye.left:0,volume:Ge?Ge.right-Ge.left:0,subtitles:_e?_e.right-_e.left:0,settings:Le?Le.right-Le.left:0,context:be?be.right-be.left:0,fullscreen:Re?Re.right-Re.left:0,chromecast:te?te.right-te.left:0,additionalButtons:B.length?B.reduce(ee=>[...ee,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!_r||_r<Fn.time)&&t(136,_r=Fn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let ee=0;dt&&(Tn(Z,"xl")?ee=Fn.time:ee=60);let ms=Fn.prevButton+Fn.playButton+Fn.nextButton+Fn.seekToInteractiveButton+Fn.interactiveGraphButton+Fn.liveButton+_r+ee;t(137,ds=De&&Or>=ms)}if(i.$$.dirty[4]&532480)e:t(55,uc=ds&&Tn(Z,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:fp(_o(),zt,Qe,Oi);if(i.$$.dirty[0]&167772160)e:er(Hr,K,vn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Bo(Fr,K,J);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:xl(re,ne,zr)};e:t(51,rc=Wt.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo"));e:Qi(t(72,{prevButton:c,replayButton:f,playButton:p,nextButton:_,playPrevChapterButton:g,seekToInteractiveButton:b,interactiveGraphButton:w,liveButton:S,time:I,episodes:k,vkLogo:C,volume:E,subtitles:U,settings:$,context:q,fullscreen:le,chromecast:oe}=zt,c,vi(t(71,f)),an(t(70,p)),gt(t(69,_)),ut(t(68,g)),Mt(t(67,b)),Dt(t(66,w)),Et(t(65,S)),at(t(64,I)),ot(t(63,k)),Se(t(62,C)),W(t(61,E)),Ne(t(60,U)),xe(t(59,$)),he(t(58,q)),Oe(t(57,le)),He(t(56,oe))));return[Gt,oi,Ti,Oi,Ct,Pi,Ji,$i,un,en,Fi,jt,ei,Hi,zi,bi,Ei,Mi,bo,De,dt,vt,Or,Qe,Fr,Hr,zr,K,B,yi,wi,fi,Si,At,Qn,go,zo,ft,Y,pt,rn,Ki,A,ae,ke,Je,Nt,Ri,yo,Dr,Uo,rc,lc,sc,ac,uc,oe,le,q,$,U,E,C,k,I,S,w,b,g,_,p,f,c,a,l,r,s,o,_t,Jt,pi,pn,Xi,$t,Wt,Vi,tn,qi,Ai,nn,xt,on,li,nt,Yt,ti,Bi,Ht,Pn,In,vn,En,qn,Mn,Nn,yn,hn,Dn,On,re,bt,wn,dn,kn,_n,to,io,bn,ie,Yn,no,Oo,Kn,oo,Fo,Ho,hr,dp,mp,ri,hi,cn,Ii,_i,vo,Fn,_r,ds,n,ne,J,Q,M,Z,te,Re,be,Le,_e,Ge,ye,qe,tt,ge,kt,Lt,rt,Pe,Zt,si,Qt,ci,ki,Ci,Ot,Bt,di,Kt,mi,Xt,ni,ct,Ft,pp,hp,_p,bp,gp,vp,yp,wp,kp,Cp,Sp,Tp,Pp,Ip,Ep,Mp,Vp,Lp,Ap,Bp,Rp,Np,Dp,Op]}var yu=class extends j{constructor(e){super(),X(this,e,R3,B3,G,{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},u3,[-1,-1,-1,-1,-1,-1,-1])}},n0=yu;var ar=require("@vkontakte/videoplayer-core");function N3(i){let e,t,n,o;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("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(s,r){y(s,e,r),d(e,t),d(t,n),d(t,o)},p:R,i:R,o:R,d(s){s&&v(e)}}}var ku=class extends j{constructor(e){super(),X(this,e,null,N3,G,{})}},o0=ku;var l0=require("@vkontakte/videoplayer-shared");function D3(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 r0(i){let e;return{c(){e=T("span"),e.textContent=`${z("mobile_unmute")}`,u(e,"class","text svelte-6gmlbk")},m(t,n){y(t,e,n)},p:R,d(t){t&&v(e)}}}function O3(i){let e,t,n,o;var s=i[4];function r(a){return{}}s&&(t=gn(s,r(i)));let l=i[1]&&r0(i);return{c(){e=T("div"),t&&H(t.$$.fragment),n=N(),l&&l.c(),u(e,"class","container svelte-6gmlbk"),u(e,"aria-hidden","true"),L(e,"expanded",i[1])},m(a,c){y(a,e,c),t&&O(t,e,null),d(e,n),l&&l.m(e,null),o=!0},p(a,c){if(c&16&&s!==(s=a[4])){if(t){ce();let f=t;h(f.$$.fragment,1,0,()=>{F(f,1)}),fe()}s?(t=gn(s,r(a)),H(t.$$.fragment),m(t.$$.fragment,1),O(t,e,n)):t=null}a[1]?l?l.p(a,c):(l=r0(a),l.c(),l.m(e,null)):l&&(l.d(1),l=null),(!o||c&2)&&L(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&&v(e),t&&F(t),l&&l.d()}}}function F3(i){let e,t,n;function o(r){i[6](r)}let s={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[O3]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&2&&(a.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),l&4&&(a.click=r[2]),l&8&&(a.ariaLabel=r[3]),l&146&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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 H3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:s=l0.noop}=e,{ref:r=void 0}=e,l,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,s=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,l=n?z("tooltip_volume"):z("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,a=o?Ro:o0)},[r,o,s,l,a,n,c]}var Cu=class extends j{constructor(e){super(),X(this,e,H3,F3,G,{muted:5,expanded:1,click:2,ref:0},D3)}},Su=Cu;function z3(i){let e,t,n,o;return{c(){e=V("svg"),t=V("path"),n=V("path"),o=V("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"),L(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"),L(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(s,r){y(s,e,r),d(e,t),d(e,n),d(e,o)},p(s,[r]){r&2&&u(t,"fill",s[1]),r&2&&u(n,"fill",s[1]),r&1&&L(n,"hidden",!s[0]),r&2&&u(o,"fill",s[1]),r&1&&L(o,"hidden",s[0])},i:R,o:R,d(s){s&&v(e)}}}function U3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=s=>{"isActive"in s&&t(0,o=s.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"#2688EB":"#fff")},[o,n]}var Tu=class extends j{constructor(e){super(),X(this,e,U3,z3,G,{isActive:0})}},s0=Tu;var a0=require("@vkontakte/videoplayer-shared");function q3(i){let e,t;return e=new s0({props:{isActive:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&2&&(s.isActive=n[1]),e.$set(s)},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,n;function o(r){i[3](r)}let s={testId:"btn-pip",ariaLabel:z("menu_pip"),click:i[2],$$slots:{default:[q3]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new st({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,[l]){let a={};l&4&&(a.click=r[2]),l&18&&(a.$$scope={dirty:l,ctx:r}),!t&&l&1&&(t=!0,a.ref=r[0],Me(()=>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,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:s=a0.noop}=e;function r(l){n=l,t(0,n)}return i.$$set=l=>{"ref"in l&&t(0,n=l.ref),"isPictureInPictureActive"in l&&t(1,o=l.isPictureInPictureActive),"click"in l&&t(2,s=l.click)},[n,o,s,r]}var Pu=class extends j{constructor(e){super(),X(this,e,W3,K3,G,{ref:0,isPictureInPictureActive:1,click:2})}},u0=Pu;var A0=require("@vkontakte/videoplayer-shared");function Z3(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 c0(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 f0(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k=(!i[51]||i[53])&&d0(i),C=yt(i[56]),E=[];for(let M=0;M<C.length;M+=1)E[M]=m0(c0(i,C,M));let U=M=>h(E[M],1,1,()=>{E[M]=null}),$=i[36]&&p0(i),q=i[37]&&h0(i),le=i[57]&&_0(i),oe=i[39]&&b0(i),P=i[8]&&g0(i),ne=i[34]&&v0(i),J=i[33]&&y0(i),K=i[8]&&w0(i),Q=i[96]&&!i[29]&&k0(i);return{c(){e=T("div"),t=N(),n=T("div"),k&&k.c(),o=N(),s=T("div");for(let M=0;M<E.length;M+=1)E[M].c();r=N(),$&&$.c(),l=N(),q&&q.c(),a=N(),le&&le.c(),c=N(),oe&&oe.c(),f=N(),p=T("div"),P&&P.c(),_=N(),ne&&ne.c(),g=N(),J&&J.c(),b=N(),K&&K.c(),w=N(),Q&&Q.c(),S=Xe(),u(e,"class","overlay-mobile svelte-1tcstu3"),L(e,"hidden",!i[42]),u(n,"class","wrapper-top-left svelte-1tcstu3"),L(n,"hidden",!i[3]),L(n,"fullscreen",i[52]),u(s,"class","wrapper-top-right svelte-1tcstu3"),L(s,"hidden",!i[3]&&!i[27]),L(s,"fullscreen",i[52]),u(p,"class","wrapper-middle svelte-1tcstu3"),L(p,"hidden",!i[3]||i[29])},m(M,Z){y(M,e,Z),y(M,t,Z),y(M,n,Z),k&&k.m(n,null),y(M,o,Z),y(M,s,Z);for(let B=0;B<E.length;B+=1)E[B]&&E[B].m(s,null);d(s,r),$&&$.m(s,null),d(s,l),q&&q.m(s,null),d(s,a),le&&le.m(s,null),d(s,c),oe&&oe.m(s,null),y(M,f,Z),y(M,p,Z),P&&P.m(p,null),d(p,_),ne&&ne.m(p,null),d(p,g),J&&J.m(p,null),d(p,b),K&&K.m(p,null),y(M,w,Z),Q&&Q.m(M,Z),y(M,S,Z),I=!0},p(M,Z){if((!I||Z[1]&2048)&&L(e,"hidden",!M[42]),!M[51]||M[53]?k?(k.p(M,Z),Z[1]&5242880&&m(k,1)):(k=d0(M),k.c(),m(k,1),k.m(n,null)):k&&(ce(),h(k,1,1,()=>{k=null}),fe()),(!I||Z[0]&8)&&L(n,"hidden",!M[3]),(!I||Z[1]&2097152)&&L(n,"fullscreen",M[52]),Z[1]&33554432){C=yt(M[56]);let B;for(B=0;B<C.length;B+=1){let te=c0(M,C,B);E[B]?(E[B].p(te,Z),m(E[B],1)):(E[B]=m0(te),E[B].c(),m(E[B],1),E[B].m(s,r))}for(ce(),B=C.length;B<E.length;B+=1)U(B);fe()}M[36]?$?($.p(M,Z),Z[1]&32&&m($,1)):($=p0(M),$.c(),m($,1),$.m(s,l)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),M[37]?q?(q.p(M,Z),Z[1]&64&&m(q,1)):(q=h0(M),q.c(),m(q,1),q.m(s,a)):q&&(ce(),h(q,1,1,()=>{q=null}),fe()),M[57]?le?(le.p(M,Z),Z[1]&67108864&&m(le,1)):(le=_0(M),le.c(),m(le,1),le.m(s,c)):le&&(ce(),h(le,1,1,()=>{le=null}),fe()),M[39]?oe?(oe.p(M,Z),Z[1]&256&&m(oe,1)):(oe=b0(M),oe.c(),m(oe,1),oe.m(s,null)):oe&&(ce(),h(oe,1,1,()=>{oe=null}),fe()),(!I||Z[0]&134217736)&&L(s,"hidden",!M[3]&&!M[27]),(!I||Z[1]&2097152)&&L(s,"fullscreen",M[52]),M[8]?P?(P.p(M,Z),Z[0]&256&&m(P,1)):(P=g0(M),P.c(),m(P,1),P.m(p,_)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),M[34]?ne?(ne.p(M,Z),Z[1]&8&&m(ne,1)):(ne=v0(M),ne.c(),m(ne,1),ne.m(p,g)):ne&&(ce(),h(ne,1,1,()=>{ne=null}),fe()),M[33]?J?(J.p(M,Z),Z[1]&4&&m(J,1)):(J=y0(M),J.c(),m(J,1),J.m(p,b)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),M[8]?K?(K.p(M,Z),Z[0]&256&&m(K,1)):(K=w0(M),K.c(),m(K,1),K.m(p,null)):K&&(ce(),h(K,1,1,()=>{K=null}),fe()),(!I||Z[0]&536870920)&&L(p,"hidden",!M[3]||M[29]),M[96]&&!M[29]?Q?(Q.p(M,Z),Z[0]&536870912&&m(Q,1)):(Q=k0(M),Q.c(),m(Q,1),Q.m(S.parentNode,S)):Q&&(ce(),h(Q,1,1,()=>{Q=null}),fe())},i(M){if(!I){m(k);for(let Z=0;Z<C.length;Z+=1)m(E[Z]);m($),m(q),m(le),m(oe),m(P),m(ne),m(J),m(K),m(Q),I=!0}},o(M){h(k),E=E.filter(Boolean);for(let Z=0;Z<E.length;Z+=1)h(E[Z]);h($),h(q),h(le),h(oe),h(P),h(ne),h(J),h(K),h(Q),I=!1},d(M){M&&(v(e),v(t),v(n),v(o),v(s),v(f),v(p),v(w),v(S)),k&&k.d(),Di(E,M),$&&$.d(),q&&q.d(),le&&le.d(),oe&&oe.d(),P&&P.d(),ne&&ne.d(),J&&J.d(),K&&K.d(),Q&&Q.d(M)}}}function d0(i){let e,t,n;function o(r){i[130](r)}let s={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(s.ref=i[20].volume),e=new Su({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&8388608&&(a.muted=r[54]),l[1]&17825792&&(a.expanded=r[51]&&!r[70]&&r[55]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].volume,Me(()=>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){var n;let e,t;return e=new zl({props:{iconUrl:i[169],ariaLabel:(n=i[170])!=null?n:i[173],testId:i[171],onClick:i[172]}}),{c(){H(e.$$.fragment)},m(o,s){O(e,o,s),t=!0},p(o,s){var l;let r={};s[1]&33554432&&(r.iconUrl=o[169]),s[1]&33554432&&(r.ariaLabel=(l=o[170])!=null?l:o[173]),s[1]&33554432&&(r.testId=o[171]),s[1]&33554432&&(r.onClick=o[172]),e.$set(r)},i(o){t||(m(e.$$.fragment,o),t=!0)},o(o){h(e.$$.fragment,o),t=!1},d(o){F(e,o)}}}function p0(i){let e,t,n;function o(r){i[131](r)}let s={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(s.ref=i[20].chromecast),e=new Ml({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&268435456&&(a.state=r[28]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].chromecast,Me(()=>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[132](r)}let s={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(s.ref=i[20].pip),e=new u0({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&67108864&&(a.isPictureInPictureActive=r[26]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].pip,Me(()=>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[133](r)}let s={};return i[22]!==void 0&&(s.ref=i[22]),e=new Ir({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};!t&&l[0]&4194304&&(t=!0,a.ref=r[22],Me(()=>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[134](r)}let s={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(s.ref=i[20].vkLogo),e=new El({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&128&&(a.targetUrl=r[7]),l[0]&64&&(a.logoClickable=r[6]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].vkLogo,Me(()=>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[135](r)}let s={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(s.ref=i[20].prevButton),e=new lr({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&8192&&(a.click=r[13]),l[0]&1024&&(a.disabled=!r[10]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].prevButton,Me(()=>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;function o(r){i[136](r)}let s={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(s.ref=i[20].playButton),e=new Mr({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&262144&&(a.disabled=r[49]),l[1]&1&&(a.isPlaying=r[31]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].playButton,Me(()=>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 y0(i){let e,t,n;function o(r){i[137](r)}let s={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(s.ref=i[20].replayButton),e=new Vr({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&131072&&(a.disabled=r[48]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].replayButton,Me(()=>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 w0(i){let e,t,n;function o(r){i[138](r)}let s={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(s.ref=i[20].nextButton),e=new lr({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&4096&&(a.click=r[12]),l[0]&512&&(a.disabled=!r[9]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].nextButton,Me(()=>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 k0(i){let e,t,n,o,s=i[100]&&G3(i),r=i[98]&&j3(i),l=i[99]&&x3(i);return{c(){s&&s.c(),e=N(),r&&r.c(),t=N(),l&&l.c(),n=Xe()},m(a,c){s&&s.m(a,c),y(a,e,c),r&&r.m(a,c),y(a,t,c),l&&l.m(a,c),y(a,n,c),o=!0},p(a,c){a[100]&&s.p(a,c),a[98]&&r.p(a,c),a[99]&&l.p(a,c)},i(a){o||(m(s),m(r),m(l),o=!0)},o(a){h(s),h(r),h(l),o=!1},d(a){a&&(v(e),v(t),v(n)),s&&s.d(a),r&&r.d(a),l&&l.d(a)}}}function G3(i){let e,t,n,o,s,r;function l(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 Hl({props:a}),me.push(()=>Ve(t,"ref",l)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","wrapper-middle-left svelte-1tcstu3"),L(e,"fullscreen",i[52]),L(e,"hidden",!i[3])},m(c,f){y(c,e,f),O(t,e,null),o=!0,s||(r=de(e,"click",i[108]),s=!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,Me(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&L(e,"fullscreen",c[52]),(!o||f[0]&8)&&L(e,"hidden",!c[3])},i(c){o||(m(t.$$.fragment,c),o=!0)},o(c){h(t.$$.fragment,c),o=!1},d(c){c&&v(e),F(t),s=!1,r()}}}function j3(i){let e,t,n,o,s;function r(a){i[140](a)}let l={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(l.ref=i[20].interactiveGraphButton),t=new Ol({props:l}),me.push(()=>Ve(t,"ref",r)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class",o=_c(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),L(e,"fullscreen",i[52]),L(e,"hidden",!i[3]&&!i[58])},m(a,c){y(a,e,c),O(t,e,null),s=!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,Me(()=>n=!1)),t.$set(f),(!s||c[1]&2097152)&&L(e,"fullscreen",a[52]),(!s||c[0]&8|c[1]&134217728)&&L(e,"hidden",!a[3]&&!a[58])},i(a){s||(m(t.$$.fragment,a),s=!0)},o(a){h(t.$$.fragment,a),s=!1},d(a){a&&v(e),F(t)}}}function x3(i){let e,t,n,o,s,r;function l(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 Dl({props:a}),me.push(()=>Ve(t,"ref",l)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","wrapper-middle-right svelte-1tcstu3"),L(e,"fullscreen",i[52]),L(e,"hidden",!i[3])},m(c,f){y(c,e,f),O(t,e,null),o=!0,s||(r=de(e,"click",i[109]),s=!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,Me(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&L(e,"fullscreen",c[52]),(!o||f[0]&8)&&L(e,"hidden",!c[3])},i(c){o||(m(t.$$.fragment,c),o=!0)},o(c){h(t.$$.fragment,c),o=!1},d(c){c&&v(e),F(t),s=!1,r()}}}function C0(i){let e,t,n,o,s,r=i[53]&&S0(i),l=i[32]&&T0(i);return o=new Bl({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=N(),l&&l.c(),t=N(),n=T("div"),H(o.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),L(n,"fullscreen",i[52])},m(a,c){r&&r.m(a,c),y(a,e,c),l&&l.m(a,c),y(a,t,c),y(a,n,c),O(o,n,null),s=!0},p(a,c){a[53]?r?(r.p(a,c),c[1]&4194304&&m(r,1)):(r=S0(a),r.c(),m(r,1),r.m(e.parentNode,e)):r&&(ce(),h(r,1,1,()=>{r=null}),fe()),a[32]?l?(l.p(a,c),c[1]&2&&m(l,1)):(l=T0(a),l.c(),m(l,1),l.m(t.parentNode,t)):l&&(ce(),h(l,1,1,()=>{l=null}),fe());let f={};c[1]&268435456&&(f.position=a[59]),c[1]&536870912&&(f.duration=a[60]),o.$set(f),(!s||c[1]&2097152)&&L(n,"fullscreen",a[52])},i(a){s||(m(r),m(l),m(o.$$.fragment,a),s=!0)},o(a){h(r),h(l),h(o.$$.fragment,a),s=!1},d(a){a&&(v(e),v(t),v(n)),r&&r.d(a),l&&l.d(a),F(o)}}}function S0(i){let e,t,n,o;function s(l){i[142](l)}let r={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new Su({props:r}),me.push(()=>Ve(t,"ref",s)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","wrapper-top-right svelte-1tcstu3"),L(e,"fullscreen",i[52])},m(l,a){y(l,e,a),O(t,e,null),o=!0},p(l,a){let c={};a[1]&8388608&&(c.muted=l[54]),!n&&a[0]&1048576&&(n=!0,c.ref=l[20].volume,Me(()=>n=!1)),t.$set(c),(!o||a[1]&2097152)&&L(e,"fullscreen",l[52])},i(l){o||(m(t.$$.fragment,l),o=!0)},o(l){h(t.$$.fragment,l),o=!1},d(l){l&&v(e),F(t)}}}function T0(i){let e,t,n,o;function s(l){i[143](l)}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 Mr({props:r}),me.push(()=>Ve(t,"ref",s)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","wrapper-middle svelte-1tcstu3")},m(l,a){y(l,e,a),O(t,e,null),o=!0},p(l,a){let c={};a[1]&262144&&(c.disabled=l[49]),a[1]&2&&(c.isPlaying=!l[32]),!n&&a[0]&1048576&&(n=!0,c.ref=l[20].playButton,Me(()=>n=!1)),t.$set(c)},i(l){o||(m(t.$$.fragment,l),o=!0)},o(l){h(t.$$.fragment,l),o=!1},d(l){l&&v(e),F(t)}}}function Y3(i){let e,t,n;function o(r){i[144](r)}let s={disabled:i[48],$$slots:{default:[Q3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(s.ref=i[20].replayButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&131072&&(a.disabled=r[48]),l[1]&131072|l[5]&2097152&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].replayButton,Me(()=>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;return e=new Vr({props:{disabled:i[48],click:i[95]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[1]&131072&&(s.disabled=n[48]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function P0(i){let e,t,n;function o(r){i[145](r)}let s={$$slots:{default:[X3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(s.ref=i[20].liveButton),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&524288|l[1]&16384|l[5]&2097152&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].liveButton,Me(()=>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 X3(i){let e,t;return e=new Ll({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 s={};o[0]&524288&&(s.isActiveLive=n[19]),o[1]&16384&&(s.ariaLabel=n[45]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function I0(i){let e,t,n;function o(r){i[146](r)}let s={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&&(s.ref=i[20].time),e=new kl({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&16&&(a.showDuration=r[35]),l[0]&16|l[1]&1342177280&&(a.position=r[4]?r[59]:r[61]),l[0]&16|l[1]&536870912|l[2]&1&&(a.duration=r[4]?r[60]:r[62]),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].time,Me(()=>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 E0(i){let e,t,n,o;return n=new Nl({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(s,r){y(s,e,r),y(s,t,r),O(n,s,r),o=!0},p(s,r){let l={};r[1]&1073741824&&(l.position=s[61]),r[2]&1&&(l.duration=s[62]),n.$set(l)},i(s){o||(m(n.$$.fragment,s),o=!0)},o(s){h(n.$$.fragment,s),o=!1},d(s){s&&(v(e),v(t)),F(n,s)}}}function J3(i){let e,t,n=i[43]&&E0(i);return{c(){n&&n.c(),e=Xe()},m(o,s){n&&n.m(o,s),y(o,e,s),t=!0},p(o,s){o[43]?n?(n.p(o,s),s[1]&4096&&m(n,1)):(n=E0(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&&v(e),n&&n.d(o)}}}function M0(i){let e,t,n;function o(r){i[149](r)}let s={$$slots:{default:[$3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(s.ref=i[20].settings),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&4194304|l[5]&2097152&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].settings,Me(()=>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,n;function o(r){i[148](r)}let s={};return i[22]!==void 0&&(s.ref=i[22]),e=new Ir({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};!t&&l[0]&4194304&&(t=!0,a.ref=r[22],Me(()=>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;function o(r){i[150](r)}let s={$$slots:{default:[eg]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(s.ref=i[20].fullscreen),e=new Vt({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&16384|l[1]&2097152|l[5]&2097152&&(a.$$scope={dirty:l,ctx:r}),!t&&l[0]&1048576&&(t=!0,a.ref=r[20].fullscreen,Me(()=>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 eg(i){let e,t;return e=new Pl({props:{click:i[14],isFullscreen:i[52]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&16384&&(s.click=n[14]),o[1]&2097152&&(s.isFullscreen=n[52]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function L0(i){let e,t,n,o;function s(l){i[153](l)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new wl({props:r}),me.push(()=>Ve(t,"ref",s)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","settings-mobile svelte-1tcstu3")},m(l,a){y(l,e,a),O(t,e,null),o=!0},p(l,a){let c={};a[0]&2048&&(c.supportLink=l[11]),a[0]&32768&&(c.returnFocus=l[15]),!n&&a[0]&2097152&&(n=!0,c.ref=l[21],Me(()=>n=!1)),t.$set(c)},i(l){o||(m(t.$$.fragment,l),o=!0)},o(l){h(t.$$.fragment,l),o=!1},d(l){l&&v(e),F(t)}}}function tg(i){let e,t,n;function o(r){i[154](r)}let s={};return i[20].interactiveTimeIndicator!==void 0&&(s.ref=i[20].interactiveTimeIndicator),e=new Yl({props:s}),me.push(()=>Ve(e,"ref",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};!t&&l[0]&1048576&&(t=!0,a.ref=r[20].interactiveTimeIndicator,Me(()=>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,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C=!i[4]&&f0(i),E=i[4]&&i[30]!=="inactive"&&C0(i),U=i[96]&&Y3(i),$=!i[4]&&i[25]&&P0(i),q=i[41]&&I0(i);function le(Q){i[147](Q)}let oe={className:"w-max",disabled:!i[43],$$slots:{default:[J3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(oe.ref=i[20].episodes),c=new Vt({props:oe}),me.push(()=>Ve(c,"ref",le));let P=i[38]&&M0(i),ne=i[40]&&V0(i);b=new Rl({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let J=i[23]&&L0(i),K=i[101]&&tg(i);return{c(){C&&C.c(),e=N(),E&&E.c(),t=N(),n=T("div"),o=T("div"),s=T("div"),U&&U.c(),r=N(),$&&$.c(),l=N(),q&&q.c(),a=N(),H(c.$$.fragment),p=N(),P&&P.c(),_=N(),ne&&ne.c(),g=N(),H(b.$$.fragment),w=N(),J&&J.c(),S=N(),K&&K.c(),I=Xe(),u(s,"class","controls svelte-1tcstu3"),L(s,"mobile",!0),u(o,"class","controls-wrapper svelte-1tcstu3"),L(o,"fullscreen",i[52]),u(n,"class","wrapper-bottom svelte-1tcstu3"),L(n,"hidden",i[1]),L(n,"controls-hidden",!i[3]),L(n,"no-smooth",i[2]),L(n,"mobile",!0)},m(Q,M){C&&C.m(Q,M),y(Q,e,M),E&&E.m(Q,M),y(Q,t,M),y(Q,n,M),d(n,o),d(o,s),U&&U.m(s,null),d(s,r),$&&$.m(s,null),d(s,l),q&&q.m(s,null),d(s,a),O(c,s,null),d(s,p),P&&P.m(s,null),d(s,_),ne&&ne.m(s,null),i[151](s),d(o,g),O(b,o,null),i[152](n),y(Q,w,M),J&&J.m(Q,M),y(Q,S,M),K&&K.m(Q,M),y(Q,I,M),k=!0},p(Q,M){Q[4]?C&&(ce(),h(C,1,1,()=>{C=null}),fe()):C?(C.p(Q,M),M[0]&16&&m(C,1)):(C=f0(Q),C.c(),m(C,1),C.m(e.parentNode,e)),Q[4]&&Q[30]!=="inactive"?E?(E.p(Q,M),M[0]&1073741840&&m(E,1)):(E=C0(Q),E.c(),m(E,1),E.m(t.parentNode,t)):E&&(ce(),h(E,1,1,()=>{E=null}),fe()),Q[96]&&U.p(Q,M),!Q[4]&&Q[25]?$?($.p(Q,M),M[0]&33554448&&m($,1)):($=P0(Q),$.c(),m($,1),$.m(s,l)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),Q[41]?q?(q.p(Q,M),M[1]&1024&&m(q,1)):(q=I0(Q),q.c(),m(q,1),q.m(s,a)):q&&(ce(),h(q,1,1,()=>{q=null}),fe());let Z={};M[1]&4096&&(Z.disabled=!Q[43]),M[1]&1073745920|M[2]&1|M[5]&2097152&&(Z.$$scope={dirty:M,ctx:Q}),!f&&M[0]&1048576&&(f=!0,Z.ref=Q[20].episodes,Me(()=>f=!1)),c.$set(Z),Q[38]?P?(P.p(Q,M),M[1]&128&&m(P,1)):(P=M0(Q),P.c(),m(P,1),P.m(s,_)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),Q[40]?ne?(ne.p(Q,M),M[1]&512&&m(ne,1)):(ne=V0(Q),ne.c(),m(ne,1),ne.m(s,null)):ne&&(ce(),h(ne,1,1,()=>{ne=null}),fe());let B={};M[0]&16&&(B.isAds=Q[4]),M[0]&32&&(B.canRewindLive=Q[5]),M[0]&16777216&&(B.isRewindableLive=Q[24]),b.$set(B),(!k||M[1]&2097152)&&L(o,"fullscreen",Q[52]),(!k||M[0]&2)&&L(n,"hidden",Q[1]),(!k||M[0]&8)&&L(n,"controls-hidden",!Q[3]),(!k||M[0]&4)&&L(n,"no-smooth",Q[2]),Q[23]?J?(J.p(Q,M),M[0]&8388608&&m(J,1)):(J=L0(Q),J.c(),m(J,1),J.m(S.parentNode,S)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),Q[101]&&K.p(Q,M)},i(Q){k||(m(C),m(E),m(U),m($),m(q),m(c.$$.fragment,Q),m(P),m(ne),m(b.$$.fragment,Q),m(J),m(K),k=!0)},o(Q){h(C),h(E),h(U),h($),h(q),h(c.$$.fragment,Q),h(P),h(ne),h(b.$$.fragment,Q),h(J),h(K),k=!1},d(Q){Q&&(v(e),v(t),v(n),v(w),v(S),v(I)),C&&C.d(Q),E&&E.d(Q),U&&U.d(),$&&$.d(),q&&q.d(),F(c),P&&P.d(),ne&&ne.d(),i[151](null),F(b),i[152](null),J&&J.d(Q),K&&K.d(Q)}}}function ng(i,e,t){var xn,bn;let n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,ne,J,K,Q,M,Z,B,te,Ce,He,Re,We,Oe,{bottomHidden:be}=e,{bottomNoSmooth:x}=e,{showControls:he}=e,{controlsElementRef:Le=void 0}=e,{isAds:Ue=!1}=e,{canRewindLive:xe}=e,{logoClickable:_e}=e,{logoHidden:Te}=e,{logoTargetUrl:Ne=""}=e,{showNextPrevButtons:Ge}=e,{nextButtonActive:we}=e,{prevButtonActive:W}=e,{isOneVideoPlaylist:ye=!1}=e,{supportLink:ue}=e,{customFullscreenSupported:Se=!0}=e,{playNextVideo:qe}=e,{playPrevVideo:et}=e,{repeatPlaylist:ot}=e,{toggleFullscreen:tt}=e,{returnFocus:ht}=e,{seekToInteractive:at}=e,{toggleGraph:ge}=e,{playPrevChapter:lt}=e,{onDisabledPlayPrevChapterClick:Et}=e,{onDisabledSeekToInteractiveClick:kt}=e,Ae=je(),Dt=An(),Lt=Rt(),pe=Ae.actions.internal.toggleMuted,Mt=Ae.actions.internal.togglePlay,rt=Ae.actions.internal.pause,mt=(xn=Ae.callbacks)==null?void 0:xn.onAudioDoesNotExistHint,ut=(bn=Ae.callbacks)==null?void 0:bn.onAudioDisabledHint,Pe=Ae.playerPhase;D(i,Pe,ie=>t(126,q=ie));let Fe=Ae.state.duration$;D(i,Fe,ie=>t(62,Oe=ie));let gt=Ae.state.positionWithScrubbing$;D(i,gt,ie=>t(61,We=ie));let Zt=Ae.state.playbackState$;D(i,Zt,ie=>t(121,_=ie));let Yi=Ae.state.isAudioAvailable$;D(i,Yi,ie=>t(51,g=ie));let an=Ae.state.isAudioDisabled,si=Ae.state.isEnded$;D(i,si,ie=>t(127,oe=ie));let ai=Ae.state.isLive$;D(i,ai,ie=>t(25,k=ie));let vi=Ae.state.muted$;D(i,vi,ie=>t(54,M=ie));let Qt=Ae.state.isActiveLive$;D(i,Qt,ie=>t(124,S=ie));let ui=Ae.state.isRewindableLive$;D(i,ui,ie=>t(24,I=ie));let Qi=Ae.ui.scrubbingInProgress;D(i,Qi,ie=>t(29,le=ie));let yi=Ae.ui.mobileNotReportControlHidden$;D(i,yi,ie=>t(27,U=ie));let wi=Ae.ui.isPictureInPictureActive$;D(i,wi,ie=>t(26,E=ie));let ci=Ae.ui.pictureInPictureType$;D(i,ci,ie=>t(125,C=ie));let ki=Ae.ui.mobileUnmuteButtonExpanded;D(i,ki,ie=>t(55,Z=ie));let fi=Ae.ui.mobileUnmuteButtonVisible;D(i,fi,ie=>t(53,Q=ie));let Ci=Ae.ui.settingsMenuVisible;D(i,Ci,ie=>t(23,p=ie));let Si=Ae.ui.settingsMenuOpenedByKeyboard;D(i,Si,ie=>t(120,f=ie));let At=Ae.ui.controls,Ot=Ae.actions.internal.getVideoEpisodes(),Bt=Ae.webApi.pictureInPictureApi,di=Ae.state.chromecastState$;D(i,di,ie=>t(28,$=ie));let Kt=Ae.state.crashed$;D(i,Kt,ie=>t(57,te=ie));let mi=At.disabledControls$;D(i,mi,ie=>t(128,ne=ie));let Xt=Ae.ui.startedByKeyboard$;D(i,Xt,ie=>t(119,c=ie));let ni=Ae.ads.duration;D(i,ni,ie=>t(60,Re=ie));let ct=Ae.ads.position;D(i,ct,ie=>t(59,He=ie));let Ft=Ae.ads.playbackState;D(i,Ft,ie=>t(30,P=ie));let _t=Ae.ui.isFullscreen;D(i,_t,ie=>t(52,K=ie));let Jt=Ae.ui.playerSize;D(i,Jt,ie=>t(123,w=ie));let pi=Ae.ui.additionalButtons$;D(i,pi,ie=>t(56,B=ie));let pn=Ae.actions.internal.getVideoElement,Xi=Ae.actions.internal.replayInteractive,$t=Ae.state.isInteractive,oi=Ae.state.isInteractiveTime$;D(i,oi,ie=>t(122,b=ie));let Ti=Ae.state.showInteractiveGraph,Oi=Ae.state.showSeekToInteractive,Gt=Ae.state.showPlayPrevChapter,Ct=Ae.state.showInteractiveTimeIndicator,Pi=Ae.state.graphIsOpened$;D(i,Pi,ie=>t(58,Ce=ie));let Ji=Dt.seekToInteractiveDisabledTooltip$;D(i,Ji,ie=>t(129,J=ie));let ri,$i,hi,un,en,cn,Fi,Ii,jt,ei,_i,Hi,zi,bi,Ei,Mi,Ke,Ui,Wt,Be={},Vi=(0,A0.throttleFn)(jl,260,{leading:!1}),tn=()=>Ae.actions.internal.toggleChromecast();function qi(){co({isAudioDisabled:an,audioDisabledHintCallback:ut,isAudioAvailable:g,audioIsNotExistHintCallback:mt})&&pe()}async function Li(){Bt!=null&&Bt.isActive()?await(Bt==null?void 0:Bt.remove()):await(Bt==null?void 0:Bt.request())}function fn(){!an&&g&&fi.set(!1),qi()}let Ai=ye?Mt:ot,nn="",xt=(ie,Yn)=>{if(!ie){t(45,nn=z("tooltip_live"));return}Yn===ar.PlaybackState.PAUSED&&t(45,nn=z("tooltip_play"))},on,li,se=()=>{a&&Et(ri)},nt=()=>{s&&kt($i)};function Yt(ie){i.$$.not_equal(Be.volume,ie)&&(Be.volume=ie,t(20,Be))}function ti(ie){i.$$.not_equal(Be.chromecast,ie)&&(Be.chromecast=ie,t(20,Be))}function Bi(ie){i.$$.not_equal(Be.pip,ie)&&(Be.pip=ie,t(20,Be))}function Ht(ie){li=ie,t(22,li)}function Pn(ie){i.$$.not_equal(Be.vkLogo,ie)&&(Be.vkLogo=ie,t(20,Be))}function In(ie){i.$$.not_equal(Be.prevButton,ie)&&(Be.prevButton=ie,t(20,Be))}function vn(ie){i.$$.not_equal(Be.playButton,ie)&&(Be.playButton=ie,t(20,Be))}function zt(ie){i.$$.not_equal(Be.replayButton,ie)&&(Be.replayButton=ie,t(20,Be))}function En(ie){i.$$.not_equal(Be.nextButton,ie)&&(Be.nextButton=ie,t(20,Be))}function qn(ie){i.$$.not_equal(Be.playPrevChapterButton,ie)&&(Be.playPrevChapterButton=ie,t(20,Be))}function Mn(ie){i.$$.not_equal(Be.interactiveGraphButton,ie)&&(Be.interactiveGraphButton=ie,t(20,Be))}function Nn(ie){i.$$.not_equal(Be.seekToInteractiveButton,ie)&&(Be.seekToInteractiveButton=ie,t(20,Be))}function yn(ie){i.$$.not_equal(Be.volume,ie)&&(Be.volume=ie,t(20,Be))}function hn(ie){i.$$.not_equal(Be.playButton,ie)&&(Be.playButton=ie,t(20,Be))}function Dn(ie){i.$$.not_equal(Be.replayButton,ie)&&(Be.replayButton=ie,t(20,Be))}function On(ie){i.$$.not_equal(Be.liveButton,ie)&&(Be.liveButton=ie,t(20,Be))}function re(ie){i.$$.not_equal(Be.time,ie)&&(Be.time=ie,t(20,Be))}function bt(ie){i.$$.not_equal(Be.episodes,ie)&&(Be.episodes=ie,t(20,Be))}function wn(ie){li=ie,t(22,li)}function dn(ie){i.$$.not_equal(Be.settings,ie)&&(Be.settings=ie,t(20,Be))}function kn(ie){i.$$.not_equal(Be.fullscreen,ie)&&(Be.fullscreen=ie,t(20,Be))}function _n(ie){me[ie?"unshift":"push"](()=>{Ui=ie,t(44,Ui)})}function to(ie){me[ie?"unshift":"push"](()=>{Le=ie,t(0,Le)})}function io(ie){on=ie,t(21,on)}function _o(ie){i.$$.not_equal(Be.interactiveTimeIndicator,ie)&&(Be.interactiveTimeIndicator=ie,t(20,Be))}i.$$set=ie=>{"bottomHidden"in ie&&t(1,be=ie.bottomHidden),"bottomNoSmooth"in ie&&t(2,x=ie.bottomNoSmooth),"showControls"in ie&&t(3,he=ie.showControls),"controlsElementRef"in ie&&t(0,Le=ie.controlsElementRef),"isAds"in ie&&t(4,Ue=ie.isAds),"canRewindLive"in ie&&t(5,xe=ie.canRewindLive),"logoClickable"in ie&&t(6,_e=ie.logoClickable),"logoHidden"in ie&&t(110,Te=ie.logoHidden),"logoTargetUrl"in ie&&t(7,Ne=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(8,Ge=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(9,we=ie.nextButtonActive),"prevButtonActive"in ie&&t(10,W=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,ye=ie.isOneVideoPlaylist),"supportLink"in ie&&t(11,ue=ie.supportLink),"customFullscreenSupported"in ie&&t(112,Se=ie.customFullscreenSupported),"playNextVideo"in ie&&t(12,qe=ie.playNextVideo),"playPrevVideo"in ie&&t(13,et=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,ot=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(14,tt=ie.toggleFullscreen),"returnFocus"in ie&&t(15,ht=ie.returnFocus),"seekToInteractive"in ie&&t(16,at=ie.seekToInteractive),"toggleGraph"in ie&&t(17,ge=ie.toggleGraph),"playPrevChapter"in ie&&t(18,lt=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,Et=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,kt=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:$i=z(J);if(i.$$.dirty[4]&16)e:t(118,n=ne.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=ne.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,s=ne.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,r=ne.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,l=ne.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,a=ne.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,hi=_===ar.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,un=P==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,en=oe&&!Ue&&!$t);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,cn=!oe||Ue);if(i.$$.dirty[3]&1073741824)e:t(116,Fi=w.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Ii=w.width>400);if(i.$$.dirty[0]&536870912)e:t(117,jt=le);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,ei=$!==ar.ChromecastState.NOT_AVAILABLE&&!(E&&C===1)&&!U&&!$t);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ie=q==="waitingLive";t(37,_i=!!Bt&&$!==ar.ChromecastState.CONNECTED&&!U&&(C===1&&ie||!ie)&&!jt&&!$t)}if(i.$$.dirty[3]&16777216)e:t(38,Hi=!jt);if(i.$$.dirty[3]&1073872896)e:t(39,zi=!Te&&w.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,bi=Lt.features.fullscreen&&!(E&&C===1)&&($t?Se:!0)&&!jt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Ei=(!k||Ue)&&w.width>260&&!jt&&!(Lt.features.interactiveHideTime&&$t));if(i.$$.dirty[0]&8388616)e:t(42,Mi=p||he);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ke=!Ue&&!k&&!!(Ot!=null&&Ot.length)&&Fi&&!n&&!jt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Wt=!I||S);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Vi(pn(),At,Be,he);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:xt(Wt,_);if(i.$$.dirty[0]&12582912)e:er(li,p,Si);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Bo(on,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:xl(Xt,c,Be.playButton)};e:ri=z(Ae.state.playPrevChapterDisabledTooltip);return[Le,be,x,he,Ue,xe,_e,Ne,Ge,we,W,ue,qe,et,tt,ht,at,ge,lt,Wt,Be,on,li,p,I,k,E,U,$,le,P,hi,un,en,cn,Ii,ei,_i,Hi,zi,bi,Ei,Mi,Ke,Ui,nn,s,a,l,r,o,g,K,Q,M,Z,B,te,Ce,He,Re,We,Oe,Mt,rt,Pe,Fe,gt,Zt,Yi,an,si,ai,vi,Qt,ui,Qi,yi,wi,ci,ki,fi,Ci,Si,Ot,di,Kt,mi,Xt,ni,ct,Ft,_t,Jt,pi,Xi,$t,oi,Ti,Oi,Gt,Ct,Pi,Ji,tn,Li,fn,Ai,se,nt,Te,ye,Se,ot,Et,kt,Fi,jt,n,c,f,_,b,w,S,C,q,oe,ne,J,Yt,ti,Bi,Ht,Pn,In,vn,zt,En,qn,Mn,Nn,yn,hn,Dn,On,re,bt,wn,dn,kn,_n,to,io,_o]}var Iu=class extends j{constructor(e){super(),X(this,e,ng,ig,G,{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},Z3,[-1,-1,-1,-1,-1,-1])}},B0=Iu;function og(i){let e,t,n;function o(r){i[28](r)}let s={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&&(s.controlsElementRef=i[0]),e=new n0({props:s}),me.push(()=>Ve(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l&2&&(a.bottomHidden=r[1]),l&4&&(a.bottomNoSmooth=r[2]),l&8&&(a.showControls=r[3]),l&16&&(a.isAds=r[4]),l&32&&(a.canRewindLive=r[5]),l&64&&(a.logoClickable=r[6]),l&128&&(a.logoHidden=r[7]),l&256&&(a.logoTargetUrl=r[8]),l&512&&(a.showNextPrevButtons=r[9]),l&1024&&(a.nextButtonActive=r[10]),l&2048&&(a.prevButtonActive=r[11]),l&4096&&(a.isOneVideoPlaylist=r[12]),l&8192&&(a.supportLink=r[13]),l&16384&&(a.customFullscreenSupported=r[14]),l&32768&&(a.playNextVideo=r[15]),l&65536&&(a.playPrevVideo=r[16]),l&131072&&(a.repeatPlaylist=r[17]),l&262144&&(a.toggleFullscreen=r[18]),l&524288&&(a.returnFocus=r[19]),l&1048576&&(a.seekToInteractive=r[20]),l&2097152&&(a.toggleGraph=r[21]),l&4194304&&(a.playPrevChapter=r[22]),!t&&l&1&&(t=!0,a.controlsElementRef=r[0],Me(()=>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 rg(i){let e,t,n;function o(r){i[27](r)}let s={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&&(s.controlsElementRef=i[0]),e=new B0({props:s}),me.push(()=>Ve(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l&2&&(a.bottomHidden=r[1]),l&4&&(a.bottomNoSmooth=r[2]),l&8&&(a.showControls=r[3]),l&16&&(a.isAds=r[4]),l&32&&(a.canRewindLive=r[5]),l&64&&(a.logoClickable=r[6]),l&128&&(a.logoHidden=r[7]),l&256&&(a.logoTargetUrl=r[8]),l&512&&(a.showNextPrevButtons=r[9]),l&1024&&(a.nextButtonActive=r[10]),l&2048&&(a.prevButtonActive=r[11]),l&4096&&(a.isOneVideoPlaylist=r[12]),l&8192&&(a.supportLink=r[13]),l&16384&&(a.customFullscreenSupported=r[14]),l&32768&&(a.playNextVideo=r[15]),l&65536&&(a.playPrevVideo=r[16]),l&131072&&(a.repeatPlaylist=r[17]),l&262144&&(a.toggleFullscreen=r[18]),l&524288&&(a.returnFocus=r[19]),l&1048576&&(a.seekToInteractive=r[20]),l&2097152&&(a.toggleGraph=r[21]),l&4194304&&(a.playPrevChapter=r[22]),l&8388608&&(a.onDisabledPlayPrevChapterClick=r[23]),l&16777216&&(a.onDisabledSeekToInteractiveClick=r[24]),!t&&l&1&&(t=!0,a.controlsElementRef=r[0],Me(()=>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 lg(i){let e,t,n,o,s=[rg,og],r=[];function l(a,c){return a[25]?0:1}return e=l(i,-1),t=r[e]=s[e](i),{c(){t.c(),n=Xe()},m(a,c){r[e].m(a,c),y(a,n,c),o=!0},p(a,[c]){let f=e;e=l(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]=s[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&&v(n),r[e].d(a)}}}function sg(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:s=!1}=e,{showControls:r}=e,{controlsElementRef:l=void 0}=e,{isAds:a=!1}=e,{canRewindLive:c}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:_=""}=e,{showNextPrevButtons:g}=e,{nextButtonActive:b}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:S=!1}=e,{supportLink:I}=e,{customFullscreenSupported:k=!0}=e,{playNextVideo:C}=e,{playPrevVideo:E}=e,{repeatPlaylist:U}=e,{toggleFullscreen:$}=e,{returnFocus:q=Ql.noop}=e,{seekToInteractive:le}=e,{toggleGraph:oe}=e,{playPrevChapter:P}=e,{onDisabledPlayPrevChapterClick:ne=Ql.noop}=e,{onDisabledSeekToInteractiveClick:J=Ql.noop}=e,Q=je().ui.isMobile;D(i,Q,B=>t(25,n=B));function M(B){l=B,t(0,l)}function Z(B){l=B,t(0,l)}return i.$$set=B=>{"bottomHidden"in B&&t(1,o=B.bottomHidden),"bottomNoSmooth"in B&&t(2,s=B.bottomNoSmooth),"showControls"in B&&t(3,r=B.showControls),"controlsElementRef"in B&&t(0,l=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.logoTargetUrl),"showNextPrevButtons"in B&&t(9,g=B.showNextPrevButtons),"nextButtonActive"in B&&t(10,b=B.nextButtonActive),"prevButtonActive"in B&&t(11,w=B.prevButtonActive),"isOneVideoPlaylist"in B&&t(12,S=B.isOneVideoPlaylist),"supportLink"in B&&t(13,I=B.supportLink),"customFullscreenSupported"in B&&t(14,k=B.customFullscreenSupported),"playNextVideo"in B&&t(15,C=B.playNextVideo),"playPrevVideo"in B&&t(16,E=B.playPrevVideo),"repeatPlaylist"in B&&t(17,U=B.repeatPlaylist),"toggleFullscreen"in B&&t(18,$=B.toggleFullscreen),"returnFocus"in B&&t(19,q=B.returnFocus),"seekToInteractive"in B&&t(20,le=B.seekToInteractive),"toggleGraph"in B&&t(21,oe=B.toggleGraph),"playPrevChapter"in B&&t(22,P=B.playPrevChapter),"onDisabledPlayPrevChapterClick"in B&&t(23,ne=B.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in B&&t(24,J=B.onDisabledSeekToInteractiveClick)},[l,o,s,r,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,ne,J,n,Q,M,Z]}var Eu=class extends j{constructor(e){super(),X(this,e,sg,lg,G,{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})}},Xl=Eu;function ag(i){ve(i,"svelte-1ub874v",".reversed.svelte-1ub874v{transform:scaleX(-1)}")}function ug(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("defs"),r=V("filter"),l=V("feFlood"),a=V("feColorMatrix"),c=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),_=V("feBlend"),g=V("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(l,"flood-opacity","0"),u(l,"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(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_2260_100684"),u(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_2260_100684"),u(g,"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"),L(e,"reversed",i[0])},m(b,w){y(b,e,w),d(e,t),d(t,n),d(t,o),d(e,s),d(s,r),d(r,l),d(r,a),d(r,c),d(r,f),d(r,p),d(r,_),d(r,g)},p(b,[w]){w&1&&L(e,"reversed",b[0])},i:R,o:R,d(b){b&&v(e)}}}function cg(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 j{constructor(e){super(),X(this,e,cg,ug,G,{reversed:0},ag)}},R0=Mu;function fg(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("defs"),r=V("clipPath"),l=V("path"),a=V("filter"),c=V("feFlood"),f=V("feColorMatrix"),p=V("feOffset"),_=V("feGaussianBlur"),g=V("feColorMatrix"),b=V("feBlend"),w=V("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(l,"fill","#fff"),u(l,"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(_,"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(b,"in2","BackgroundImageFix"),u(b,"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(S,I){y(S,e,I),d(e,t),d(t,n),d(t,o),d(e,s),d(s,r),d(r,l),d(s,a),d(a,c),d(a,f),d(a,p),d(a,_),d(a,g),d(a,b),d(a,w)},d(S){S&&v(e)}}}function dg(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("path"),r=V("defs"),l=V("clipPath"),a=V("path"),c=V("filter"),f=V("feFlood"),p=V("feColorMatrix"),_=V("feOffset"),g=V("feGaussianBlur"),b=V("feColorMatrix"),w=V("feBlend"),S=V("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(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(a,"fill","#fff"),u(a,"d","M0 0h48v48H0z"),u(l,"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(g,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(w,"in2","BackgroundImageFix"),u(w,"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(I,k){y(I,e,k),d(e,t),d(t,n),d(t,o),d(t,s),d(e,r),d(r,l),d(l,a),d(r,c),d(c,f),d(c,p),d(c,_),d(c,g),d(c,b),d(c,w),d(c,S)},d(I){I&&v(e)}}}function mg(i){let e;function t(s,r){return s[0]?dg:fg}let n=t(i,-1),o=n(i);return{c(){o.c(),e=Xe()},m(s,r){o.m(s,r),y(s,e,r)},p(s,[r]){n!==(n=t(s,r))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:R,o:R,d(s){s&&v(e),o.d(s)}}}function pg(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Vu=class extends j{constructor(e){super(),X(this,e,pg,mg,G,{isOff:0})}},Lu=Vu;function hg(i){ve(i,"svelte-1ub874v",".reversed.svelte-1ub874v{transform:scaleX(-1)}")}function _g(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("defs"),r=V("filter"),l=V("feFlood"),a=V("feColorMatrix"),c=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),_=V("feBlend"),g=V("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(l,"flood-opacity","0"),u(l,"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(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_2260_106627"),u(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_2260_106627"),u(g,"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"),L(e,"reversed",i[0])},m(b,w){y(b,e,w),d(e,t),d(t,n),d(t,o),d(e,s),d(s,r),d(r,l),d(r,a),d(r,c),d(r,f),d(r,p),d(r,_),d(r,g)},p(b,[w]){w&1&&L(e,"reversed",b[0])},i:R,o:R,d(b){b&&v(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 Au=class extends j{constructor(e){super(),X(this,e,bg,_g,G,{reversed:0},hg)}},N0=Au;function gg(i){ve(i,"svelte-1ub874v",".reversed.svelte-1ub874v{transform:scaleX(-1)}")}function vg(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),s=V("defs"),r=V("filter"),l=V("feFlood"),a=V("feColorMatrix"),c=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),_=V("feBlend"),g=V("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(l,"flood-opacity","0"),u(l,"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(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_2340_106922"),u(g,"in","SourceGraphic"),u(g,"in2","effect1_dropShadow_2340_106922"),u(g,"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"),L(e,"reversed",i[0])},m(b,w){y(b,e,w),d(e,t),d(t,n),d(t,o),d(e,s),d(s,r),d(r,l),d(r,a),d(r,c),d(r,f),d(r,p),d(r,_),d(r,g)},p(b,[w]){w&1&&L(e,"reversed",b[0])},i:R,o:R,d(b){b&&v(e)}}}function yg(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}var Bu=class extends j{constructor(e){super(),X(this,e,yg,vg,G,{reversed:0},gg)}},D0=Bu;function wg(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 O0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,s,r,l,a,c=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),_,g,b,w,S,I=t&&F0(i),k=i[4]==="PAUSE"&&H0(i),C=i[4]==="PLAY"&&z0(i),E=i[4]==="REPLAY"&&U0(i),U=i[4]==="SUBTITLES_OFF"&&q0(i),$=i[4]==="SUBTITLES_ON"&&K0(i),q=c&&W0(i),le=p&&Z0(i),oe=i[4]==="MUTE"&&G0(i),P=i[4]==="VOLUME"&&j0(i),ne=i[5]&&x0(i);return{c(){e=T("div"),I&&I.c(),n=N(),k&&k.c(),o=N(),C&&C.c(),s=N(),E&&E.c(),r=N(),U&&U.c(),l=N(),$&&$.c(),a=N(),q&&q.c(),f=N(),le&&le.c(),_=N(),oe&&oe.c(),g=N(),P&&P.c(),b=N(),ne&&ne.c(),w=Xe(),u(e,"class","svelte-4ftgwp")},m(J,K){y(J,e,K),I&&I.m(e,null),d(e,n),k&&k.m(e,null),d(e,o),C&&C.m(e,null),d(e,s),E&&E.m(e,null),d(e,r),U&&U.m(e,null),d(e,l),$&&$.m(e,null),d(e,a),q&&q.m(e,null),d(e,f),le&&le.m(e,null),d(e,_),oe&&oe.m(e,null),d(e,g),P&&P.m(e,null),y(J,b,K),ne&&ne.m(J,K),y(J,w,K),S=!0},p(J,K){K&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(J[4])),t?I?(I.p(J,K),K&16&&m(I,1)):(I=F0(J),I.c(),m(I,1),I.m(e,n)):I&&(ce(),h(I,1,1,()=>{I=null}),fe()),J[4]==="PAUSE"?k?K&16&&m(k,1):(k=H0(J),k.c(),m(k,1),k.m(e,o)):k&&(ce(),h(k,1,1,()=>{k=null}),fe()),J[4]==="PLAY"?C?K&16&&m(C,1):(C=z0(J),C.c(),m(C,1),C.m(e,s)):C&&(ce(),h(C,1,1,()=>{C=null}),fe()),J[4]==="REPLAY"?E?K&16&&m(E,1):(E=U0(J),E.c(),m(E,1),E.m(e,r)):E&&(ce(),h(E,1,1,()=>{E=null}),fe()),J[4]==="SUBTITLES_OFF"?U?K&16&&m(U,1):(U=q0(J),U.c(),m(U,1),U.m(e,l)):U&&(ce(),h(U,1,1,()=>{U=null}),fe()),J[4]==="SUBTITLES_ON"?$?K&16&&m($,1):($=K0(J),$.c(),m($,1),$.m(e,a)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),K&16&&(c=["RATE_DOWN","RATE_UP"].includes(J[4])),c?q?(q.p(J,K),K&16&&m(q,1)):(q=W0(J),q.c(),m(q,1),q.m(e,f)):q&&(ce(),h(q,1,1,()=>{q=null}),fe()),K&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(J[4])),p?le?(le.p(J,K),K&16&&m(le,1)):(le=Z0(J),le.c(),m(le,1),le.m(e,_)):le&&(ce(),h(le,1,1,()=>{le=null}),fe()),J[4]==="MUTE"?oe?K&16&&m(oe,1):(oe=G0(J),oe.c(),m(oe,1),oe.m(e,g)):oe&&(ce(),h(oe,1,1,()=>{oe=null}),fe()),J[4]==="VOLUME"?P?K&16&&m(P,1):(P=j0(J),P.c(),m(P,1),P.m(e,null)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),J[5]?ne?ne.p(J,K):(ne=x0(J),ne.c(),ne.m(w.parentNode,w)):ne&&(ne.d(1),ne=null)},i(J){S||(m(I),m(k),m(C),m(E),m(U),m($),m(q),m(le),m(oe),m(P),S=!0)},o(J){h(I),h(k),h(C),h(E),h(U),h($),h(q),h(le),h(oe),h(P),S=!1},d(J){J&&(v(e),v(b),v(w)),I&&I.d(),k&&k.d(),C&&C.d(),E&&E.d(),U&&U.d(),$&&$.d(),q&&q.d(),le&&le.d(),oe&&oe.d(),P&&P.d(),ne&&ne.d(J)}}}function F0(i){let e,t;return e=new R0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&16&&(s.reversed=n[4]==="FORWARD_SEEK"),e.$set(s)},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 Il({}),{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 rr({}),{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 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 q0(i){let e,t;return e=new Lu({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 K0(i){let e,t;return e=new Lu({}),{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 N0({props:{reversed:i[4]==="RATE_UP"}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&16&&(s.reversed=n[4]==="RATE_UP"),e.$set(s)},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 D0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&16&&(s.reversed=n[4]==="EPISODE_NEXT"),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function G0(i){let e,t;return e=new Ro({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 j0(i){let e,t;return e=new Ro({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 x0(i){let e,t;return{c(){e=T("span"),t=Ie(i[5]),u(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){y(n,e,o),d(e,t)},p(n,o){o&32&&ze(t,n[5])},d(n){n&&v(e)}}}function kg(i){let e,t,n=!i[1]&&i[4]&&O0(i);return{c(){e=T("div"),n&&n.c(),u(e,"class","hot-key-helpers-container svelte-4ftgwp"),L(e,"hidden",i[1]),L(e,"hot-key-helpers-container--left",i[2]),L(e,"hot-key-helpers-container--right",i[3])},m(o,s){y(o,e,s),n&&n.m(e,null),t=!0},p(o,[s]){!o[1]&&o[4]?n?(n.p(o,s),s&18&&m(n,1)):(n=O0(o),n.c(),m(n,1),n.m(e,null)):n&&(ce(),h(n,1,1,()=>{n=null}),fe()),(!t||s&2)&&L(e,"hidden",o[1]),(!t||s&4)&&L(e,"hot-key-helpers-container--left",o[2]),(!t||s&8)&&L(e,"hot-key-helpers-container--right",o[3])},i(o){t||(m(n),t=!0)},o(o){h(n),t=!1},d(o){o&&v(e),n&&n.d()}}}function Cg(i,e,t){let n,o=R,s=()=>(o(),o=Ut(r,_=>t(6,n=_)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;s();let l,a,c,f,p;return i.$$set=_=>{"data"in _&&s(t(0,r=_.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,l=!n),t(2,a=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,c=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,f=n==null?void 0:n.type),n!=null&&n.t?t(5,p=z(n.t.key,{value:n.t.value||""})):t(5,p=n==null?void 0:n.text)},[r,l,a,c,f,p,n]}var Ru=class extends j{constructor(e){super(),X(this,e,Cg,kg,G,{data:0},wg)}},Y0=Ru;function Sg(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 Tg(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C;return s=new Gn({props:{direction:"up"}}),a=new Gn({props:{direction:"up"}}),_=new Gn({props:{direction:"up"}}),w=new Gn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),H(s.$$.fragment),r=N(),l=T("div"),H(a.$$.fragment),c=N(),f=T("div"),p=T("div"),H(_.$$.fragment),g=N(),b=T("div"),H(w.$$.fragment),u(o,"class","button button-up svelte-1yzc86r"),u(l,"class","button button-right svelte-1yzc86r"),u(n,"class","button-row svelte-1yzc86r"),u(p,"class","button button-left svelte-1yzc86r"),u(b,"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",S=z("aria_label_spherical_control")),L(e,"m-shifted",i[0])},m(E,U){y(E,e,U),d(e,t),d(t,n),d(n,o),O(s,o,null),d(n,r),d(n,l),O(a,l,null),d(t,c),d(t,f),d(f,p),O(_,p,null),d(f,g),d(f,b),O(w,b,null),I=!0,k||(C=[de(o,"mousedown",i[1]),de(o,"mouseup",i[5]),de(o,"mouseleave",i[5]),de(l,"mousedown",i[3]),de(l,"mouseup",i[5]),de(l,"mouseleave",i[5]),de(p,"mousedown",i[4]),de(p,"mouseup",i[5]),de(p,"mouseleave",i[5]),de(b,"mousedown",i[2]),de(b,"mouseup",i[5]),de(b,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],k=!0)},p(E,[U]){(!I||U&1)&&L(e,"m-shifted",E[0])},i(E){I||(m(s.$$.fragment,E),m(a.$$.fragment,E),m(_.$$.fragment,E),m(w.$$.fragment,E),I=!0)},o(E){h(s.$$.fragment,E),h(a.$$.fragment,E),h(_.$$.fragment,E),h(w.$$.fragment,E),I=!1},d(E){E&&v(e),F(s),F(a),F(_),F(w),k=!1,Ye(C)}}}function Pg(i,e,t){let{isShifted:n=!1}=e,o=je(),s=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{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=g=>{if(s.has(g.code))switch(g.preventDefault(),g.stopPropagation(),g.code){case"ArrowUp":r();break;case"ArrowDown":l();break;case"ArrowLeft":c();break;case"ArrowRight":a();break}},_=g=>{s.has(g.code)&&(g.preventDefault(),g.stopPropagation(),f())};return i.$$set=g=>{"isShifted"in g&&t(0,n=g.isShifted)},[n,r,l,a,c,f,p,_]}var Nu=class extends j{constructor(e){super(),X(this,e,Pg,Tg,G,{isShifted:0},Sg)}},Jl=Nu;function Ig(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 Q0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function X0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function J0(i){let e,t;function n(r,l){return r[7]&&r[8]?Vg:r[5]?Mg:Eg}let o=n(i,-1),s=o(i);return{c(){e=T("div"),t=T("span"),s.c(),u(t,"class","caption svelte-ovfyp5"),u(e,"class","subtitles-caption svelte-ovfyp5"),L(e,"mobile",i[3])},m(r,l){y(r,e,l),d(e,t),s.m(t,null)},p(r,l){o===(o=n(r,l))&&s?s.p(r,l):(s.d(1),s=o(r),s&&(s.c(),s.m(t,null))),l&8&&L(e,"mobile",r[3])},d(r){r&&v(e),s.d()}}}function Eg(i){let e,t=yt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=$0(Q0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Xe()},m(o,s){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,s);y(o,e,s)},p(o,s){if(s&18){t=yt(o[1]);let r;for(r=0;r<t.length;r+=1){let l=Q0(o,t,r);n[r]?n[r].p(l,s):(n[r]=$0(l),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&&v(e),Di(n,o)}}}function Mg(i){let e,t,n=yt(i[6]),o=[];for(let s=0;s<n.length;s+=1)o[s]=tm(X0(i,n,s));return{c(){e=T("span"),t=T("span");for(let s=0;s<o.length;s+=1)o[s].c();u(t,"class","caption-segment svelte-ovfyp5"),Tt(t,"font-size",i[4]+"px"),u(e,"class","caption-line svelte-ovfyp5")},m(s,r){y(s,e,r),d(e,t);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(t,null)},p(s,r){if(r&68){n=yt(s[6]);let l;for(l=0;l<n.length;l+=1){let a=X0(s,n,l);o[l]?o[l].p(a,r):(o[l]=tm(a),o[l].c(),o[l].m(t,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=n.length}r&16&&Tt(t,"font-size",s[4]+"px")},d(s){s&&v(e),Di(o,s)}}}function Vg(i){let e,t,n=z("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Ie(n),u(t,"class","caption-segment svelte-ovfyp5"),Tt(t,"font-size",i[4]+"px"),u(e,"class","caption-line svelte-ovfyp5")},m(s,r){y(s,e,r),d(e,t),d(t,o)},p(s,r){r&16&&Tt(t,"font-size",s[4]+"px")},d(s){s&&v(e)}}}function $0(i){let e,t,n=i[16]+"",o,s;return{c(){e=T("span"),t=T("span"),o=Ie(n),s=N(),u(t,"class","caption-segment svelte-ovfyp5"),Tt(t,"font-size",i[4]+"px"),u(e,"class","caption-line svelte-ovfyp5")},m(r,l){y(r,e,l),d(e,t),d(t,o),d(e,s)},p(r,l){l&2&&n!==(n=r[16]+"")&&ze(o,n),l&16&&Tt(t,"font-size",r[4]+"px")},d(r){r&&v(e)}}}function em(i){let e=i[16]+"",t;return{c(){t=Ie(e)},m(n,o){y(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&ze(t,e)},d(n){n&&v(t)}}}function tm(i){let e,t=(!i[17]||i[17]<=i[2])&&em(i);return{c(){t&&t.c(),e=Xe()},m(n,o){t&&t.m(n,o),y(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=em(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&v(e),t&&t.d(n)}}}function Lg(i){let e,t=i[1].length>0&&J0(i);return{c(){e=T("div"),t&&t.c(),u(e,"class","subtitles-container svelte-ovfyp5"),L(e,"shifted",i[0]),L(e,"auto",i[5]&&!i[8])},m(n,o){y(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=J0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&L(e,"shifted",n[0]),o&288&&L(e,"auto",n[5]&&!n[8])},i:R,o:R,d(n){n&&v(e),t&&t.d()}}}function Ag(i,e,t){let n,o,{shifted:s}=e,{captions:r}=e,{position:l}=e,{playerSize:a}=e,{isMobile:c=!1}=e,f=je(),p=Rt(),_=f.state.currentSubtitle$;D(i,_,C=>t(12,n=C));let g=f.state.isAutoSubtitleCaptionVisible$;D(i,g,C=>t(8,o=C));let b,w,S,I,k;return Pt(()=>{k=window.setTimeout(()=>{g.set(!1)},p.autoSubtitlesTimeout)}),Hn(()=>{window.clearTimeout(k)}),i.$$set=C=>{"shifted"in C&&t(0,s=C.shifted),"captions"in C&&t(1,r=C.captions),"position"in C&&t(2,l=C.position),"playerSize"in C&&t(11,a=C.playerSize),"isMobile"in C&&t(3,c=C.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let C=a.width*.02;t(4,b=C<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:C)}if(i.$$.dirty&2)e:t(5,w=r.some(C=>C.type==="timestamp"));if(i.$$.dirty&2)e:t(6,S=r.reduce((C,{type:E,value:U})=>(E==="timestamp"?C.push({timeAppeared:Number(U),value:""}):C.length===0?C.push({value:String(U)}):C[C.length-1].value=String(U),C),[]));if(i.$$.dirty&4096)e:t(7,I=!!n.isAuto)},[s,r,l,c,b,w,S,I,o,_,g,a,n]}var Du=class extends j{constructor(e){super(),X(this,e,Ag,Lg,G,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},Ig)}},$l=Du;function Bg(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 im(i){let e,t,n;return{c(){e=T("div"),t=Ie("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Ie(i[1]),u(e,"class","text svelte-1o62kpz")},m(o,s){y(o,e,s),d(e,t),d(e,n)},p(o,s){s&2&&ze(n,o[1])},d(o){o&&v(e)}}}function Rg(i){let e,t,n,o,s,r,l=i[1]&&im(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(),l&&l.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){y(a,e,c),d(e,t),d(e,n),l&&l.m(e,null),s||(r=de(e,"click",i[2]),s=!0)},p(a,[c]){a[1]?l?l.p(a,c):(l=im(a),l.c(),l.m(e,null)):l&&(l.d(1),l=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:R,o:R,d(a){a&&v(e),l&&l.d(),s=!1,r()}}}function Ng(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function s(r){Cn.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,s]}var Ou=class extends j{constructor(e){super(),X(this,e,Ng,Rg,G,{thumbUrl:0,chromecastDeviceName:1},Bg)}},es=Ou;function Dg(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var Fu=class extends j{constructor(e){super(),X(this,e,null,Dg,G,{})}},nm=Fu;function Og(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 Fg(i){let e,t,n;return t=new nm({}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","container svelte-13zpvm8")},m(o,s){y(o,e,s),O(t,e,null),n=!0},p:R,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&v(e),F(t)}}}var Hu=class extends j{constructor(e){super(),X(this,e,null,Fg,G,{},Og)}},ts=Hu;function Hg(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 zg(i){let e,t,n,o,s,r,l,a,c,f;return s=new rr({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=N(),H(s.$$.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",l=`background-color: #222; background-image: url('${i[0]||""}')`),L(e,"hidden",i[1])},m(p,_){y(p,e,_),d(e,t),d(t,n),d(t,o),O(s,t,null),a=!0,c||(f=[de(t,"keydown",i[3]),de(e,"click",$e(function(){gi(i[2])&&i[2].apply(this,arguments)}))],c=!0)},p(p,[_]){i=p,(!a||_&1&&l!==(l=`background-color: #222; background-image: url('${i[0]||""}')`))&&u(e,"style",l),(!a||_&2)&&L(e,"hidden",i[1])},i(p){a||(m(s.$$.fragment,p),a=!0)},o(p){h(s.$$.fragment,p),a=!1},d(p){p&&v(e),F(s),c=!1,Ye(f)}}}function Ug(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:s}=e,l=je().ui.startedByKeyboard$,a=c=>{let f=c.code;["Enter","Space"].includes(f)&&(c.stopPropagation(),c.preventDefault(),l.set(!0),s())};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,s=c.startVideo)},[n,o,s,a]}var zu=class extends j{constructor(e){super(),X(this,e,Ug,zg,G,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Hg)}get handlePressKey(){return this.$$.ctx[3]}},is=zu;function qg(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 o_(t){let e,i;return{c(){e=P("div"),i=ze(t[0]),u(e,"class","title v-1bcvcf2"),N(e,"hidden",t[1])},m(n,l){S(n,e,l),p(e,i)},p(n,[l]){l&1&&et(i,n[0]),l&2&&N(e,"hidden",n[1])},i:W,o:W,d(n){n&&T(e)}}}function l_(t,e,i){let{title:n=""}=e,{isHidden:l=!1}=e;return t.$$set=r=>{"title"in r&&i(0,n=r.title),"isHidden"in r&&i(1,l=r.isHidden)},[n,l]}class r_ extends ye{constructor(e){super(),ke(this,e,l_,o_,_e,{title:0,isHidden:1},n_)}}function s_(t){Ye(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 N1(t){let e,i,n,l,r,o,s;return{c(){e=P("div"),i=P("span"),n=ze(t[0]),l=H(),r=P("span"),r.textContent=`${Q("waiting_live_day_value")}`,o=H(),s=P("span"),s.textContent=`${Q("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){S(a,e,c),p(e,i),p(i,n),p(e,l),p(e,r),S(a,o,c),S(a,s,c)},p(a,c){c&1&&et(n,a[0])},d(a){a&&(T(e),T(o),T(s))}}}function R1(t){let e,i,n,l,r,o,s;return{c(){e=P("div"),i=P("span"),n=ze(t[1]),l=H(),r=P("span"),r.textContent=`${Q("waiting_live_hour_value")}`,o=H(),s=P("span"),s.textContent=`${Q("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){S(a,e,c),p(e,i),p(i,n),p(e,l),p(e,r),S(a,o,c),S(a,s,c)},p(a,c){c&2&&et(n,a[1])},d(a){a&&(T(e),T(o),T(s))}}}function O1(t){let e,i,n,l,r,o,s;return{c(){e=P("div"),i=P("span"),n=ze(t[2]),l=H(),r=P("span"),r.textContent=`${Q("waiting_live_minute_value")}`,o=H(),s=P("span"),s.textContent=`${Q("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){S(a,e,c),p(e,i),p(i,n),p(e,l),p(e,r),S(a,o,c),S(a,s,c)},p(a,c){c&4&&et(n,a[2])},d(a){a&&(T(e),T(o),T(s))}}}function D1(t){let e,i,n,l,r;return{c(){e=P("div"),i=P("span"),n=ze(t[3]),l=H(),r=P("span"),r.textContent=`${Q("waiting_live_second_value")}`,u(i,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg")},m(o,s){S(o,e,s),p(e,i),p(i,n),p(e,l),p(e,r)},p(o,s){s&8&&et(n,o[3])},d(o){o&&T(e)}}}function a_(t){let e,i,n,l,r=t[0]&&N1(t),o=t[1]&&R1(t),s=t[2]&&O1(t),a=t[3]&&D1(t);return{c(){e=P("div"),r&&r.c(),i=H(),o&&o.c(),n=H(),s&&s.c(),l=H(),a&&a.c(),u(e,"class","timer__container v-1qpxtfg")},m(c,f){S(c,e,f),r&&r.m(e,null),p(e,i),o&&o.m(e,null),p(e,n),s&&s.m(e,null),p(e,l),a&&a.m(e,null)},p(c,[f]){c[0]?r?r.p(c,f):(r=N1(c),r.c(),r.m(e,i)):r&&(r.d(1),r=null),c[1]?o?o.p(c,f):(o=R1(c),o.c(),o.m(e,n)):o&&(o.d(1),o=null),c[2]?s?s.p(c,f):(s=O1(c),s.c(),s.m(e,l)):s&&(s.d(1),s=null),c[3]?a?a.p(c,f):(a=D1(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:W,o:W,d(c){c&&T(e),r&&r.d(),o&&o.d(),s&&s.d(),a&&a.d()}}}function u_(t,e,i){let{startTime:n}=e,{onTimerOver:l}=e,r,o,s,a,c;const f=g=>String(g).padStart(2,"0"),d=g=>{const _=Math.floor(g/86400);_&&(g-=_*86400,i(0,r=f(_)));const b=Math.floor(g/3600);i(1,o=f(b));const C=Math.floor(g/60)%60;i(2,s=f(C));const y=g%60;i(3,a=f(y))},h=()=>{const g=Math.floor(Date.now()/1e3),_=n-g;d(_),_>=1?c=requestAnimationFrame(h):l()};return fn(()=>{c=requestAnimationFrame(h)}),qo(()=>{cancelAnimationFrame(c)}),t.$$set=g=>{"startTime"in g&&i(4,n=g.startTime),"onTimerOver"in g&&i(5,l=g.onTimerOver)},[r,o,s,a,n,l]}class c_ extends ye{constructor(e){super(),ke(this,e,u_,a_,_e,{startTime:4,onTimerOver:5},s_)}}function f_(t){let e,i,n,l,r;return{c(){e=O("svg"),i=O("path"),n=O("path"),l=O("path"),r=O("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"),Ht(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"),Ht(n,"opacity",".965"),u(l,"fill","#fefffe"),u(l,"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"),Ht(l,"opacity",".985"),u(r,"fill","#fefffe"),u(r,"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"),Ht(r,"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"),Ht(e,"shape-rendering","geometricPrecision"),Ht(e,"text-rendering","geometricPrecision"),Ht(e,"image-rendering","optimizeQuality"),Ht(e,"fill-rule","evenodd"),Ht(e,"clip-rule","evenodd"),Ht(e,"width","100%"),Ht(e,"height","100%")},m(o,s){S(o,e,s),p(e,i),p(e,n),p(e,l),p(e,r)},p:W,i:W,o:W,d(o){o&&T(e)}}}class d_ extends ye{constructor(e){super(),ke(this,e,null,f_,_e,{})}}function m_(t){Ye(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,l,r;return l=new c_({props:{startTime:t[1]||0,onTimerOver:t[3]}}),{c(){e=P("div"),i=P("span"),i.textContent=`${Q("waiting_live_timer_title")}`,n=H(),K(l.$$.fragment),u(i,"class","timer__title v-15pewff"),u(e,"class","waiting-timer timer v-15pewff")},m(o,s){S(o,e,s),p(e,i),p(e,n),j(l,e,null),r=!0},p(o,s){const a={};s&2&&(a.startTime=o[1]||0),s&4&&(a.onTimerOver=o[3]),l.$set(a)},i(o){r||(m(l.$$.fragment,o),r=!0)},o(o){v(l.$$.fragment,o),r=!1},d(o){o&&T(e),Z(l)}}}function h_(t){let e,i,n,l,r,o;return n=new d_({}),{c(){e=P("div"),i=P("div"),K(n.$$.fragment),l=H(),r=P("span"),r.textContent=`${Q("waiting_live_upcoming_title")}`,u(i,"class","upcoming-icon v-15pewff"),u(r,"class","upcoming__title v-15pewff"),u(e,"class","upcoming v-15pewff")},m(s,a){S(s,e,a),p(e,i),j(n,i,null),p(e,l),p(e,r),o=!0},p:W,i(s){o||(m(n.$$.fragment,s),o=!0)},o(s){v(n.$$.fragment,s),o=!1},d(s){s&&T(e),Z(n)}}}function v_(t){let e,i,n,l,r;const o=[h_,p_],s=[];function a(c,f){return c[2]?0:1}return i=a(t),n=s[i]=o[i](t),{c(){e=P("div"),n.c(),u(e,"class","waiting-container v-15pewff"),u(e,"style",l=`background-image: url(${t[2]?"":t[0]})`)},m(c,f){S(c,e,f),s[i].m(e,null),r=!0},p(c,[f]){let d=i;i=a(c),i===d?s[i].p(c,f):(fe(),v(s[d],1,1,()=>{s[d]=null}),de(),n=s[i],n?n.p(c,f):(n=s[i]=o[i](c),n.c()),m(n,1),n.m(e,null)),(!r||f&5&&l!==(l=`background-image: url(${c[2]?"":c[0]})`))&&u(e,"style",l)},i(c){r||(m(n),r=!0)},o(c){v(n),r=!1},d(c){c&&T(e),s[i].d()}}}function g_(t,e,i){let n,{thumbUrl:l}=e,{startTime:r}=e;const o=()=>i(2,n=!0);return t.$$set=s=>{"thumbUrl"in s&&i(0,l=s.thumbUrl),"startTime"in s&&i(1,r=s.startTime)},t.$$.update=()=>{t.$$.dirty&2&&i(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[l,r,n,o]}class Tf extends ye{constructor(e){super(),ke(this,e,g_,v_,_e,{thumbUrl:0,startTime:1},m_)}}function b_(t){Ye(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 __(t){let e,i;return{c(){e=P("div"),i=P("p"),i.textContent=`${Q("waiting_record_title")}`,u(i,"class","waiting-title v-1bcnzdw"),u(e,"class","waiting-container v-1bcnzdw")},m(n,l){S(n,e,l),p(e,i)},p:W,i:W,o:W,d(n){n&&T(e)}}}class Sf extends ye{constructor(e){super(),ke(this,e,null,__,_e,{},b_)}}const{window:w_}=ku;function k_(t){Ye(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 z1(t){var n;let e,i;return e=new Tf({props:{thumbUrl:t[3],startTime:(n=t[4])==null?void 0:n.startTime}}),{c(){K(e.$$.fragment)},m(l,r){j(e,l,r),i=!0},p(l,r){var s;const o={};r[0]&8&&(o.thumbUrl=l[3]),r[0]&16&&(o.startTime=(s=l[4])==null?void 0:s.startTime),e.$set(o)},i(l){i||(m(e.$$.fragment,l),i=!0)},o(l){v(e.$$.fragment,l),i=!1},d(l){Z(e,l)}}}function H1(t){let e,i;return e=new Sf({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function F1(t){let e,i,n;return i=new Pc({props:{adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11]}}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","ads-container v-1o4wf3x"),N(e,"hidden",t[38]!==Oe.Ads)},m(l,r){S(l,e,r),j(i,e,null),n=!0},p(l,r){const o={};r[0]&256&&(o.adsSlotId=l[8]),r[0]&512&&(o.adsParams=l[9]),r[0]&1024&&(o.adsPreviewParam=l[10]),r[0]&2048&&(o.duration=l[11]),i.$set(o),(!n||r[1]&128)&&N(e,"hidden",l[38]!==Oe.Ads)},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function U1(t){let e,i;return e=new L3({props:{title:t[18],thumb:t[19],playNextVideo:t[23]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&262144&&(r.title=n[18]),l[0]&524288&&(r.thumb=n[19]),l[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function q1(t){let e,i;return e=new r_({props:{title:t[2],isHidden:!t[36]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&4&&(r.title=n[2]),l[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function j1(t){let e,i;return e=new _f({props:{isShifted:t[38]===Oe.Video&&t[36]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[1]&160&&(r.isShifted=n[38]===Oe.Video&&n[36]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Z1(t){let e,i,n;return i=new qu({props:{ariaLabel:Q("video360")}}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","spherical-video-icon v-1o4wf3x")},m(l,r){S(l,e,r),j(i,e,null),n=!0},p:W,i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function K1(t){let e,i;return e=new kf({props:{thumbUrl:t[3],chromecastDeviceName:t[53]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&8&&(r.thumbUrl=n[3]),l[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function W1(t){let e,i;return e=new wf({props:{shifted:t[36],captions:t[55],position:t[56],playerSize:t[34]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[1]&32&&(r.shifted=n[36]),l[1]&16777216&&(r.captions=n[55]),l[1]&33554432&&(r.position=n[56]),l[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function G1(t){let e,i,n,l,r;return i=new yf({}),{c(){e=P("div"),K(i.$$.fragment)},m(o,s){S(o,e,s),j(i,e,null),n=!0,l||(r=[ve(e,"contextmenu",ii(t[108])),ve(e,"click",ct(t[119]))],l=!0)},p:W,i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){v(i.$$.fragment,o),n=!1},d(o){o&&T(e),Z(i),l=!1,ut(r)}}}function Y1(t){let e,i,n;function l(o){t[156](o)}let r={bottomHidden:t[38]===Oe.Thumb||t[38]===Oe.WaitingLive||t[38]===Oe.WaitingRecord,bottomNoSmooth:t[50],showControls:t[36],isAds:t[38]===Oe.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:T_,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&&(r.controlsElementRef=t[41]),e=new gf({props:r}),Te.push(()=>je(e,"controlsElementRef",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&128&&(a.bottomHidden=o[38]===Oe.Thumb||o[38]===Oe.WaitingLive||o[38]===Oe.WaitingRecord),s[1]&524288&&(a.bottomNoSmooth=o[50]),s[1]&32&&(a.showControls=o[36]),s[1]&128&&(a.isAds=o[38]===Oe.Ads),s[0]&64|s[1]&67108864&&(a.canRewindLive=o[6]&&o[57]!==0),s[0]&4096&&(a.logoClickable=o[12]),s[0]&8192&&(a.logoHidden=o[13]),s[0]&16384&&(a.logoTargetUrl=o[14]),s[0]&32768&&(a.showNextPrevButtons=o[15]),s[0]&65536&&(a.nextButtonActive=o[16]),s[0]&131072&&(a.prevButtonActive=o[17]),s[0]&1048576&&(a.isOneVideoPlaylist=o[20]),s[0]&2097152&&(a.supportLink=o[21]),s[0]&8388608&&(a.playNextVideo=o[23]),s[0]&16777216&&(a.playPrevVideo=o[24]),s[0]&33554432&&(a.repeatPlaylist=o[25]),s[1]&131072&&(a.returnFocus=o[155]),s[0]&67108864&&(a.seekToInteractive=o[26]),s[0]&134217728&&(a.toggleGraph=o[27]),s[0]&268435456&&(a.playPrevChapter=o[28]),!i&&s[1]&1024&&(i=!0,a.controlsElementRef=o[41],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function Q1(t){let e,i;return e=new zc({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function X1(t){let e,i;return e=new x3({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function J1(t){let e,i;return e=new Bc({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function x1(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te;e=new Cf({props:{hidden:t[38]!==Oe.Thumb||t[37]||t[92]&&t[5],thumbUrl:t[3],startVideo:t[29]}});let re=t[38]===Oe.WaitingLive&&z1(t),V=t[38]===Oe.WaitingRecord&&H1(),X=t[7]&&t[22]&&F1(t),J=t[31]&&t[18]&&t[19]&&U1(t),B=t[44]&&q1(t),A=t[49]&&j1(t),R=t[52]&&Z1(),ne=t[39]&&K1(t),L=t[54].value!=="off"&&W1(t),G=t[37]&&G1(t),we=t[22]&&Y1(t);_=new Ic({props:{isLive:t[58],isHidden:!t[43],isPlaying:t[59],position:t[56],duration:t[60]}}),C=new Db({props:{data:t[103]}});function Pe(F){t[158](F)}let Ae={supportLink:t[21],returnFocus:t[157],visible:t[33],playerContainerRef:t[40],controlsContainerRef:t[41],position:t[61]};t[32]!==void 0&&(Ae.menuElementRef=t[32]),w=new u3({props:Ae}),Te.push(()=>je(w,"menuElementRef",Pe));let Be=t[42]&&Q1(),Ue=t[62]&&X1(),me=t[63]&&J1();return{c(){K(e.$$.fragment),i=H(),re&&re.c(),n=H(),V&&V.c(),l=H(),X&&X.c(),r=H(),J&&J.c(),o=H(),B&&B.c(),s=H(),A&&A.c(),a=H(),R&&R.c(),c=H(),ne&&ne.c(),f=H(),L&&L.c(),d=H(),G&&G.c(),h=H(),we&&we.c(),g=H(),K(_.$$.fragment),b=H(),K(C.$$.fragment),y=H(),K(w.$$.fragment),I=H(),Be&&Be.c(),$=H(),Ue&&Ue.c(),q=H(),me&&me.c(),D=bt()},m(F,ue){j(e,F,ue),S(F,i,ue),re&&re.m(F,ue),S(F,n,ue),V&&V.m(F,ue),S(F,l,ue),X&&X.m(F,ue),S(F,r,ue),J&&J.m(F,ue),S(F,o,ue),B&&B.m(F,ue),S(F,s,ue),A&&A.m(F,ue),S(F,a,ue),R&&R.m(F,ue),S(F,c,ue),ne&&ne.m(F,ue),S(F,f,ue),L&&L.m(F,ue),S(F,d,ue),G&&G.m(F,ue),S(F,h,ue),we&&we.m(F,ue),S(F,g,ue),j(_,F,ue),S(F,b,ue),j(C,F,ue),S(F,y,ue),j(w,F,ue),S(F,I,ue),Be&&Be.m(F,ue),S(F,$,ue),Ue&&Ue.m(F,ue),S(F,q,ue),me&&me.m(F,ue),S(F,D,ue),te=!0},p(F,ue){const be={};ue[0]&32|ue[1]&192&&(be.hidden=F[38]!==Oe.Thumb||F[37]||F[92]&&F[5]),ue[0]&8&&(be.thumbUrl=F[3]),ue[0]&536870912&&(be.startVideo=F[29]),e.$set(be),F[38]===Oe.WaitingLive?re?(re.p(F,ue),ue[1]&128&&m(re,1)):(re=z1(F),re.c(),m(re,1),re.m(n.parentNode,n)):re&&(fe(),v(re,1,1,()=>{re=null}),de()),F[38]===Oe.WaitingRecord?V?ue[1]&128&&m(V,1):(V=H1(),V.c(),m(V,1),V.m(l.parentNode,l)):V&&(fe(),v(V,1,1,()=>{V=null}),de()),F[7]&&F[22]?X?(X.p(F,ue),ue[0]&4194432&&m(X,1)):(X=F1(F),X.c(),m(X,1),X.m(r.parentNode,r)):X&&(fe(),v(X,1,1,()=>{X=null}),de()),F[31]&&F[18]&&F[19]?J?(J.p(F,ue),ue[0]&786432|ue[1]&1&&m(J,1)):(J=U1(F),J.c(),m(J,1),J.m(o.parentNode,o)):J&&(fe(),v(J,1,1,()=>{J=null}),de()),F[44]?B?(B.p(F,ue),ue[1]&8192&&m(B,1)):(B=q1(F),B.c(),m(B,1),B.m(s.parentNode,s)):B&&(fe(),v(B,1,1,()=>{B=null}),de()),F[49]?A?(A.p(F,ue),ue[1]&262144&&m(A,1)):(A=j1(F),A.c(),m(A,1),A.m(a.parentNode,a)):A&&(fe(),v(A,1,1,()=>{A=null}),de()),F[52]?R?(R.p(F,ue),ue[1]&2097152&&m(R,1)):(R=Z1(),R.c(),m(R,1),R.m(c.parentNode,c)):R&&(fe(),v(R,1,1,()=>{R=null}),de()),F[39]?ne?(ne.p(F,ue),ue[1]&256&&m(ne,1)):(ne=K1(F),ne.c(),m(ne,1),ne.m(f.parentNode,f)):ne&&(fe(),v(ne,1,1,()=>{ne=null}),de()),F[54].value!=="off"?L?(L.p(F,ue),ue[1]&8388608&&m(L,1)):(L=W1(F),L.c(),m(L,1),L.m(d.parentNode,d)):L&&(fe(),v(L,1,1,()=>{L=null}),de()),F[37]?G?(G.p(F,ue),ue[1]&64&&m(G,1)):(G=G1(F),G.c(),m(G,1),G.m(h.parentNode,h)):G&&(fe(),v(G,1,1,()=>{G=null}),de()),F[22]?we?(we.p(F,ue),ue[0]&4194304&&m(we,1)):(we=Y1(F),we.c(),m(we,1),we.m(g.parentNode,g)):we&&(fe(),v(we,1,1,()=>{we=null}),de());const We={};ue[1]&134217728&&(We.isLive=F[58]),ue[1]&4096&&(We.isHidden=!F[43]),ue[1]&268435456&&(We.isPlaying=F[59]),ue[1]&33554432&&(We.position=F[56]),ue[1]&536870912&&(We.duration=F[60]),_.$set(We);const Qe={};ue[0]&2097152&&(Qe.supportLink=F[21]),ue[1]&131072&&(Qe.returnFocus=F[157]),ue[1]&4&&(Qe.visible=F[33]),ue[1]&512&&(Qe.playerContainerRef=F[40]),ue[1]&1024&&(Qe.controlsContainerRef=F[41]),ue[1]&1073741824&&(Qe.position=F[61]),!k&&ue[1]&2&&(k=!0,Qe.menuElementRef=F[32],qe(()=>k=!1)),w.$set(Qe),F[42]?Be?ue[1]&2048&&m(Be,1):(Be=Q1(),Be.c(),m(Be,1),Be.m($.parentNode,$)):Be&&(fe(),v(Be,1,1,()=>{Be=null}),de()),F[62]?Ue?ue[2]&1&&m(Ue,1):(Ue=X1(),Ue.c(),m(Ue,1),Ue.m(q.parentNode,q)):Ue&&(fe(),v(Ue,1,1,()=>{Ue=null}),de()),F[63]?me?ue[2]&2&&m(me,1):(me=J1(),me.c(),m(me,1),me.m(D.parentNode,D)):me&&(fe(),v(me,1,1,()=>{me=null}),de())},i(F){te||(m(e.$$.fragment,F),m(re),m(V),m(X),m(J),m(B),m(A),m(R),m(ne),m(L),m(G),m(we),m(_.$$.fragment,F),m(C.$$.fragment,F),m(w.$$.fragment,F),m(Be),m(Ue),m(me),te=!0)},o(F){v(e.$$.fragment,F),v(re),v(V),v(X),v(J),v(B),v(A),v(R),v(ne),v(L),v(G),v(we),v(_.$$.fragment,F),v(C.$$.fragment,F),v(w.$$.fragment,F),v(Be),v(Ue),v(me),te=!1},d(F){F&&(T(i),T(n),T(l),T(r),T(o),T(s),T(a),T(c),T(f),T(d),T(h),T(g),T(b),T(y),T(I),T($),T(q),T(D)),Z(e,F),re&&re.d(F),V&&V.d(F),X&&X.d(F),J&&J.d(F),B&&B.d(F),A&&A.d(F),R&&R.d(F),ne&&ne.d(F),L&&L.d(F),G&&G.d(F),we&&we.d(F),Z(_,F),Z(C,F),Z(w,F),Be&&Be.d(F),Ue&&Ue.d(F),me&&me.d(F)}}}function y_(t){let e,i,n,l,r=t[51],o,s,a,c,f=x1(t);return{c(){e=P("div"),i=P("div"),l=H(),f.c(),o=bt(),u(i,"class","video-container v-1o4wf3x"),u(i,"style",n=`transform: rotate(${t[35]}deg) scale(${t[46]})`),N(i,"fast-rotate",!t[1].isSmoothVideoRotate),u(e,"class","video-wrapper v-1o4wf3x"),N(e,"hidden",t[38]!==Oe.Video),N(e,"nocursor",t[45])},m(d,h){S(d,e,h),p(e,i),t[154](i),S(d,l,h),f.m(d,h),S(d,o,h),s=!0,a||(c=[ve(e,"contextmenu",ii(t[108])),ve(e,"mousedown",ii(t[113])),ve(e,"mouseup",ii(t[114])),ve(e,"click",ii(t[116])),ve(e,"dblclick",ii(t[115]))],a=!0)},p(d,h){(!s||h[1]&32784&&n!==(n=`transform: rotate(${d[35]}deg) scale(${d[46]})`))&&u(i,"style",n),(!s||h[0]&2)&&N(i,"fast-rotate",!d[1].isSmoothVideoRotate),(!s||h[1]&128)&&N(e,"hidden",d[38]!==Oe.Video),(!s||h[1]&16384)&&N(e,"nocursor",d[45]),h[1]&1048576&&_e(r,r=d[51])?(fe(),v(f,1,1,W),de(),f=x1(d),f.c(),m(f,1),f.m(o.parentNode,o)):f.p(d,h)},i(d){s||(m(f),s=!0)},o(d){v(f),s=!1},d(d){d&&(T(e),T(l),T(o)),t[154](null),f.d(d),a=!1,ut(c)}}}function C_(t){let e,i,n,l,r,o,s,a={toggleFullscreen:t[106],hideContextMenu:t[107],showHotKeyHelpers:t[117],showKeyMap:t[118],isAds:t[38]===Oe.Ads,fakePlayButtonHandler:t[47]?t[105]:void 0,$$slots:{default:[y_]},$$scope:{ctx:t}};return i=new N3({props:a}),t[159](i),{c(){e=P("div"),K(i.$$.fragment),n=H(),l=P("div"),u(l,"class","overlay-container"),u(e,"class","player-wrapper v-1o4wf3x")},m(c,f){S(c,e,f),j(i,e,null),p(e,n),p(e,l),t[160](l),t[161](e),r=!0,o||(s=[ve(w_,"blur",t[107]),ve(e,"mouseenter",t[109]),ve(e,"mouseleave",t[111]),ve(e,"mousemove",t[112]),ve(e,"click",t[120],!0),ve(e,"focusin",t[110],!0)],o=!0)},p(c,f){const d={};f[1]&128&&(d.isAds=c[38]===Oe.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){r||(m(i.$$.fragment,c),r=!0)},o(c){v(i.$$.fragment,c),r=!1},d(c){c&&T(e),t[159](null),Z(i),t[160](null),t[161](null),o=!1,ut(s)}}}let T_=!0;function fr(t){return t?t.offsetTop+fr(t.offsetParent):0}function Pf(t){return t?t.offsetLeft+Pf(t.offsetParent):0}function S_(t,e,i){let n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V,X,J,B,A,R,ne,L,G,we,Pe,Ae,Be,Ue,me,F,ue,be,We,Qe,{store:ce}=e,{uiConfig:Ee}=e,{title:De}=e,{thumbUrl:Ze}=e,{videoContainer:pe}=e,{interactiveContainer:M}=e,{live:Se}=e,{autoplay:se}=e,{canRewindLive:Ce}=e,{showAds:Ke}=e,{adsSlotId:ot=void 0}=e,{adsParams:rt=void 0}=e,{adsPreviewParam:it=void 0}=e,{duration:pt=void 0}=e,{logoClickable:st}=e,{logoHidden:he}=e,{logoTargetUrl:at=""}=e,{showNextPrevButtons:It=!1}=e,{nextButtonActive:kt=!1}=e,{prevButtonActive:Ve=!1}=e,{endScreenVideoTitle:Vt=void 0}=e,{endScreenVideoThumb:ae=void 0}=e,{isOneVideoPlaylist:yt=!1}=e,{supportLink:Et}=e,{outerContainerRef:ht=void 0}=e,{playerStarted:Ge=!1}=e,{fullScreenTarget:He=void 0}=e,{showMiniTimer:Ne=!1}=e,{playNextVideo:dt=ie.noop}=e,{playPrevVideo:Jt=ie.noop}=e,{repeatPlaylist:Ut=ie.noop}=e,{seekToInteractive:Fi}=e,{toggleGraph:Xi}=e,{playPrevChapter:ni}=e,{firstStart:fi}=e;const yi=ce.getLogger().createComponentLog("Root component"),xt=ce.interfaceLanguage$;z(t,xt,U=>i(51,L=U));const di=ce.state.playbackState$;z(t,di,U=>i(151,A=U));const Ji=ce.ads.playbackState;z(t,Ji,U=>i(152,R=U));const Ci=ce.state.positionWithScrubbing$;z(t,Ci,U=>i(56,Be=U));const Ni=ce.state.duration$;z(t,Ni,U=>i(60,ue=U));const mi=ce.playerPhase;z(t,mi,U=>i(38,re=U));const pi=ce.ui.isFullscreen;z(t,pi,U=>i(141,_=U));const hi=ce.ui.controlsVisible;z(t,hi,U=>i(36,I=U));const Ti=ce.ui.settingsMenuVisible;z(t,Ti,U=>i(139,a=U));const Si=ce.ui.scrubbingInProgress;z(t,Si,U=>i(143,w=U));const oi=ce.ui.contextMenu.visible$;z(t,oi,U=>i(33,n=U));const Gt=ce.ui.debugPanelVisible;z(t,Gt,U=>i(63,Qe=U));const At=ce.state.isLoaderVisible;z(t,At,U=>i(153,ne=U));const vi=ce.state.isEnded$;z(t,vi,U=>i(140,f=U));const Mt=ce.state.chromecastConnected$;z(t,Mt,U=>i(39,J=U));const $t=ce.state.chromecastDeviceName$;z(t,$t,U=>i(53,we=U));const li=ce.ads.postrollPassed;z(t,li,U=>i(146,D=U));const gi=ce.state.isLive$;z(t,gi,U=>i(58,me=U));const mt=ce.state.isPlaying$;z(t,mt,U=>i(59,F=U));const Nt=ce.state.crashed$;z(t,Nt,U=>i(37,q=U));const gt=ce.webApi.pictureInPictureApi,bi=ce.state.currentSubtitle$;z(t,bi,U=>i(54,Pe=U));const ri=ce.state.currentSubtitleCaptions$;z(t,ri,U=>i(55,Ae=U));const rn=ce.state.duration$;z(t,rn,U=>i(57,Ue=U));const xi=ce.state.graphIsOpened$;z(t,xi,U=>i(147,te=U));const Rt=ce.ui.playerSize;z(t,Rt,U=>i(34,h=U));const si=ce.ui.is3DVideo;z(t,si,U=>i(49,d=U));const Ui=ce.ui.icon3DVideoVisible;z(t,Ui,U=>i(52,G=U));const Pi=ce.ui.rotateAlpha;z(t,Pi,U=>i(35,y=U));const ai=ce.state.isInteractive,Yt=ce.state.isInteractiveTime$;z(t,Yt,U=>i(144,k=U));const qi=ce.state.isInteractiveExpectation$;z(t,qi,U=>i(150,B=U));const $i=ce.state.hasInteractiveBranches,Qt=ce.ui.touched;z(t,Qt,U=>i(148,V=U));const Ot=ce.ui.modals.hotKeyMap.data;z(t,Ot,U=>i(168,c=U));const qt=ce.ui.modals.hotKeyMap.show;z(t,qt,U=>i(62,We=U));const ji=ce.ui.overlayContainer$,en=ce.ui.controls.interactiveTimeIndicator;z(t,en,U=>i(169,g=U));const tn=ce.state.showInteractiveTimeIndicator,Ri=ce.ui.contextMenu.position$;z(t,Ri,U=>i(61,be=U));const Ei=ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:jt}=Bo();z(t,jt,U=>i(142,C=U));let ui,Ii,Oi,Zi,_i;Ot.set(Tm());let Ai,Di;const Fe=Le(!1);z(t,Fe,U=>i(50,b=U));let Li;const Dt=Le(!1);z(t,Dt,U=>i(149,X=U));const Me=Le(),Ki=Le(!1);z(t,Ki,U=>i(145,$=U));let Wi=!1,zi=!1,Gi,Hi,dn,Yi,Zt,Qi,Bt=!1,le,nt=!1;const{toggle:ci}=jt;let Vi=!1,Mi=null,Kt;gt==null||gt.setContext(yu());const bn=()=>{se&&!ai&&Wt(Ee.controls.hideTimeout)};ce.setUiCallbacks({onStarted:bn});const mn=()=>{window.clearTimeout(Oi),Dt.set(!1)},Cn=()=>{window.clearTimeout(Zi),Me.set(null)},Wt=U=>{mn(),Dt.set(!0),Oi=window.setTimeout(()=>Dt.set(!1),U);const wt=U-100;Li=window.setTimeout(()=>{b&&Fe.set(!1)},wt>0?wt:U)},sn=(U,wt)=>{Cn(),Me.set(wt),Zi=window.setTimeout(()=>Me.set(null),U)},_n=si.subscribe(U=>{Ui.set(U),U&&(window.clearTimeout(_i),_i=window.setTimeout(()=>Ui.set(!1),Ee.controls.hide360IconTimeout))}),pn=async()=>{var wt,on,lt,E;const U=Fo();if(U){Wt(Ee.controls.hideTimeoutFullscreen);try{await(gt==null?void 0:gt.remove())}catch(oe){yi({message:String(oe)})}}pi.set(U),ce.getAdmanWrapper().setFullscreen(U),_?(on=(wt=ce.callbacks)==null?void 0:wt.onFullscreenEnter)==null||on.call(wt):(E=(lt=ce.callbacks)==null?void 0:lt.onFullscreenExit)==null||E.call(lt)},wn=U=>{const wt=U;Rt.set({width:wt.target.width,height:wt.target.height})};fn(()=>{var wt;return Tc(pn),bl(gt)&&(gt==null||gt.assignPlayerContainer(ui),gt==null||gt.registryExternalEventHandlers({resize:wn})),M&&((wt=pe.parentElement)==null||wt.insertBefore(M,pe.nextSibling)),()=>{window.clearTimeout(Oi),window.clearTimeout(Li),window.clearTimeout(Zi),window.clearTimeout(_i),_n(),gt==null||gt.dispose(),Sc(pn)}});const Tn=async()=>{if(Fo())await Cc(document),yi({message:"exit fullscreen"});else{yi({message:"request fullscreen"});const U=ht!=null?ht:ui,wt=U.getRootNode(),on=wt instanceof ShadowRoot?wt.host:wt,lt=He instanceof HTMLElement&&He.contains(on),E=Ee.allowChangingFullscreenTarget&&He&<?He:U;await yc(E)}},an=()=>{Ei(),oi.set(!1)},kn=U=>{oi.set(!0),Ri.set({left:U.clientX,top:U.clientY})};function yn(){Ki.set(!0),ai||Wt(Ee.controls.hideTimeoutCursor)}function ee(){ai||(Fe.set(!0),Wt(Ee.controls.hideTimeoutCursor))}function _t(){Ki.set(!1),i(131,zi=!1),i(130,Wi=!1),Vi=!1,ce.actions.internal.releaseCamera()}function hn(U){if(g&&tn){const wt=U.currentTarget,on=fr(wt),lt=Pf(wt),E=U.pageX-lt,oe=U.pageY-on,{left:ge,bottom:Re,right:Je}=g,ft=Je-ge;return E>=ge-ft&&oe<=Re+ft}}function nn(U){if(ui){const wt=fr(U.currentTarget),on=h.height,lt=U.pageY-wt;if(hn(U)){i(131,zi=!1);return}lt<Fr?i(131,zi=!0):lt>on-Fr?i(130,Wi=!0):(i(131,zi=!1),a||i(130,Wi=!1))}}function vn(U){nn(U),Hi||Wt(Ee.controls.hideTimeoutCursor),d&&Vi&&Mi&&ce.actions.internal.moveCameraFocusPX(Mi.clientX-U.clientX,Mi.clientY-U.clientY,U.timeStamp-Mi.timeStamp),Mi=U}const un=U=>{U.button===0&&(Vi=!0,ce.actions.internal.holdCamera()),Wt(Ee.controls.hideTimeoutCursor)},Zn=U=>{U.button===0&&(Mi=U,Vi=!1,ce.actions.internal.releaseCamera()),Wt(Ee.controls.hideTimeoutCursor)},Kn=()=>{yi({message:"double click on video"}),Tn(),Wt(Ee.controls.hideTimeoutCursor)},$n=()=>{if(n||a){an();return}if(!(f&&!$i)){if(nt)return ci();if(Kt==null||Kt.focus(),!Ge){fi(),Wt(Ee.controls.hideTimeoutCursor);return}ce.actions.internal.togglePlay(),Wt(Ee.controls.hideTimeoutCursor)}},Wn=U=>{an(),Qt.set(!0),Wt(Ee.controls.hideTimeout),U&&sn(Ee.controls.hideHotKeyHelpers,U)},cn=()=>{var U,wt;an(),(U=ce.callbacks)!=null&&U.onOpenHotKeyMap?(wt=ce.callbacks)==null||wt.onOpenHotKeyMap(c):qt.update(on=>!on)},x=()=>{if(n||a){an();return}},eo=()=>{Qt.set(!0)},Gn=ce.ui.contextMenu.openedByBtnKeyboard$;z(t,Gn,U=>i(138,s=U));let co=ce.ui.contextMenu.btnRef$;z(t,co,U=>i(137,o=U));let Ln;const Vn=ce.ui.contextMenu.openedByHotKey$;z(t,Vn,U=>i(136,r=U));const to=ce.ui.contextMenu.lastActiveElem$;z(t,to,U=>i(135,l=U));function fo(U){Te[U?"unshift":"push"](()=>{pe=U,i(0,pe)})}const mo=()=>Kt==null?void 0:Kt.focus();function po(U){Ii=U,i(41,Ii)}const io=()=>Kt==null?void 0:Kt.focus();function ho(U){Ln=U,i(32,Ln)}function vo(U){Te[U?"unshift":"push"](()=>{Kt=U,i(48,Kt)})}function Mn(U){Te[U?"unshift":"push"](()=>{Di=U,i(30,Di)})}function go(U){Te[U?"unshift":"push"](()=>{ui=U,i(40,ui)})}return t.$$set=U=>{"store"in U&&i(125,ce=U.store),"uiConfig"in U&&i(1,Ee=U.uiConfig),"title"in U&&i(2,De=U.title),"thumbUrl"in U&&i(3,Ze=U.thumbUrl),"videoContainer"in U&&i(0,pe=U.videoContainer),"interactiveContainer"in U&&i(126,M=U.interactiveContainer),"live"in U&&i(4,Se=U.live),"autoplay"in U&&i(5,se=U.autoplay),"canRewindLive"in U&&i(6,Ce=U.canRewindLive),"showAds"in U&&i(7,Ke=U.showAds),"adsSlotId"in U&&i(8,ot=U.adsSlotId),"adsParams"in U&&i(9,rt=U.adsParams),"adsPreviewParam"in U&&i(10,it=U.adsPreviewParam),"duration"in U&&i(11,pt=U.duration),"logoClickable"in U&&i(12,st=U.logoClickable),"logoHidden"in U&&i(13,he=U.logoHidden),"logoTargetUrl"in U&&i(14,at=U.logoTargetUrl),"showNextPrevButtons"in U&&i(15,It=U.showNextPrevButtons),"nextButtonActive"in U&&i(16,kt=U.nextButtonActive),"prevButtonActive"in U&&i(17,Ve=U.prevButtonActive),"endScreenVideoTitle"in U&&i(18,Vt=U.endScreenVideoTitle),"endScreenVideoThumb"in U&&i(19,ae=U.endScreenVideoThumb),"isOneVideoPlaylist"in U&&i(20,yt=U.isOneVideoPlaylist),"supportLink"in U&&i(21,Et=U.supportLink),"outerContainerRef"in U&&i(127,ht=U.outerContainerRef),"playerStarted"in U&&i(22,Ge=U.playerStarted),"fullScreenTarget"in U&&i(128,He=U.fullScreenTarget),"showMiniTimer"in U&&i(129,Ne=U.showMiniTimer),"playNextVideo"in U&&i(23,dt=U.playNextVideo),"playPrevVideo"in U&&i(24,Jt=U.playPrevVideo),"repeatPlaylist"in U&&i(25,Ut=U.repeatPlaylist),"seekToInteractive"in U&&i(26,Fi=U.seekToInteractive),"toggleGraph"in U&&i(27,Xi=U.toggleGraph),"playPrevChapter"in U&&i(28,ni=U.playPrevChapter),"firstStart"in U&&i(29,fi=U.firstStart)},t.$$.update=()=>{if(t.$$.dirty[1]&192|t.$$.dirty[4]&805306368&&i(42,Ai=(re===Oe.Video&&ne||re===Oe.Ads&&R===ti.INACTIVE)&&!q),t.$$.dirty[0]&1073741824&&ji.set(Di),t.$$.dirty[4]&134217728&&i(132,Gi=A!==tt.PlaybackState.PLAYING),t.$$.dirty[4]&68190656&&i(133,Hi=k&&!a&&!(Wi||zi)&&!(Gi&&!B)),t.$$.dirty[1]&448|t.$$.dirty[4]&34112256&&hi.set((Gi||a||w||J||X)&&!Hi&&(re===Oe.Video||re===Oe.Ads)&&!q),t.$$.dirty[0]&2|t.$$.dirty[1]&224|t.$$.dirty[4]&16777248&&i(43,dn=Ee.features.thumbTimer&&Ne&&re===Oe.Video&&!I&&!q&&!ai&&(Ee.hideThumbTimerAfterTouch&&!V||!Ee.hideThumbTimerAfterTouch)),t.$$.dirty[1]&128|t.$$.dirty[4]&8519680&&i(44,Yi=re===Oe.Video&&!te&&_),t.$$.dirty[0]&128|t.$$.dirty[1]&64|t.$$.dirty[4]&4259840&&i(31,Zt=(Ke&&D||!Ke)&&f&&!q),t.$$.dirty[1]&33|t.$$.dirty[4]&3145728&&i(45,Qi=$&&!(I||Zt)&&!k),t.$$.dirty[0]&2|t.$$.dirty[4]&1573888&&(!w&&Bt&&!k&&Wt(Ee.controls.hideTimeoutCursor),i(134,Bt=w)),t.$$.dirty[0]&1|t.$$.dirty[1]&24&&i(46,le=pe&&y%180?h.height/h.width:1),t.$$.dirty[4]&262144&&i(47,nt=C!==null),t.$$.dirty[1]&6|t.$$.dirty[4]&16384&&_l(Ln,n,s),t.$$.dirty[1]&4|t.$$.dirty[4]&8192){const U=o;U&&yr(U,n,Gn)}if(t.$$.dirty[1]&6|t.$$.dirty[4]&4096&&_l(Ln,n,r),t.$$.dirty[1]&4|t.$$.dirty[4]&2048){const U=l;U&&$m(U,n,Vn)}},[pe,Ee,De,Ze,Se,se,Ce,Ke,ot,rt,it,pt,st,he,at,It,kt,Ve,Vt,ae,yt,Et,Ge,dt,Jt,Ut,Fi,Xi,ni,fi,Di,Zt,Ln,n,h,y,I,q,re,J,ui,Ii,Ai,dn,Yi,Qi,le,nt,Kt,d,b,L,G,we,Pe,Ae,Be,Ue,me,F,ue,be,We,Qe,xt,di,Ji,Ci,Ni,mi,pi,hi,Ti,Si,oi,Gt,At,vi,Mt,$t,li,gi,mt,Nt,bi,ri,rn,xi,Rt,si,Ui,Pi,ai,Yt,qi,Qt,Ot,qt,en,Ri,jt,Fe,Dt,Me,Ki,ci,Tn,an,kn,yn,ee,_t,vn,un,Zn,Kn,$n,Wn,cn,x,eo,Gn,co,Vn,to,ce,M,ht,He,Ne,Wi,zi,Gi,Hi,Bt,l,r,o,s,a,f,_,C,w,k,$,D,te,V,X,B,A,R,ne,fo,mo,po,io,ho,vo,Mn,go]}class P_ extends ye{constructor(e){super(),ke(this,e,S_,C_,_e,{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},k_,[-1,-1,-1,-1,-1,-1,-1])}}const E_=t=>{if(!ie.isIOS(!0))return!1;const e=t.device===ie.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,i=ie.getIOSVersion();return!e||e&&!!i&&i<16};function I_(t){Ye(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 $1(t){let e,i,n,l,r,o,s,a,c,f,d,h,g,_,b,C=Q("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",y;return{c(){e=P("div"),n=H(),l=P("div"),r=P("div"),o=P("div"),a=H(),c=P("div"),d=H(),h=P("div"),_=H(),b=P("p"),y=ze(C),u(e,"class",i="semicircle "+t[0]+" v-nhq2ld"),u(o,"class",s="triangle "+t[0]+" v-nhq2ld"),u(c,"class",f="triangle "+t[0]+" v-nhq2ld"),u(h,"class",g="triangle "+t[0]+" v-nhq2ld"),u(r,"class","triangles-wrapper v-nhq2ld"),u(b,"class","step-caption v-nhq2ld"),u(l,"class","info v-nhq2ld")},m(w,k){S(w,e,k),S(w,n,k),S(w,l,k),p(l,r),p(r,o),p(r,a),p(r,c),p(r,d),p(r,h),p(l,_),p(l,b),p(b,y)},p(w,k){k&1&&i!==(i="semicircle "+w[0]+" v-nhq2ld")&&u(e,"class",i),k&1&&s!==(s="triangle "+w[0]+" v-nhq2ld")&&u(o,"class",s),k&1&&f!==(f="triangle "+w[0]+" v-nhq2ld")&&u(c,"class",f),k&1&&g!==(g="triangle "+w[0]+" v-nhq2ld")&&u(h,"class",g),k&2&&C!==(C=Q("doubletap_seek_step",{seconds:w[1].toFixed(0)})+"")&&et(y,C)},d(w){w&&(T(e),T(n),T(l))}}}function A_(t){let e,i,n,l,r=t[2]&&$1(t);return{c(){e=P("div"),r&&r.c(),u(e,"class",i="double-click-area "+t[0]+" v-nhq2ld")},m(o,s){S(o,e,s),r&&r.m(e,null),n||(l=ve(e,"click",ct(t[3]())),n=!0)},p(o,[s]){o[2]?r?r.p(o,s):(r=$1(o),r.c(),r.m(e,null)):r&&(r.d(1),r=null),s&1&&i!==(i="double-click-area "+o[0]+" v-nhq2ld")&&u(e,"class",i)},i:W,o:W,d(o){o&&T(e),r&&r.d(),n=!1,l()}}}function L_(t,e,i){let{side:n}=e,{seekStep:l}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:o}=e,s=!1,a=0,c=0;const f=()=>{let h=0;return()=>{h+=1,h===1?a=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(a),h=0,o(),i(2,s=!0),c=window.setTimeout(()=>{i(2,s=!1)},500))}};return qo(()=>{window.clearTimeout(a),window.clearTimeout(c)}),t.$$set=d=>{"side"in d&&i(0,n=d.side),"seekStep"in d&&i(1,l=d.seekStep),"handleSingleFirstClick"in d&&i(4,r=d.handleSingleFirstClick),"handleSecondClick"in d&&i(5,o=d.handleSecondClick)},[n,l,s,f,r,o]}class Ef extends ye{constructor(e){super(),ke(this,e,L_,A_,_e,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},I_)}}function V_(t,e,i){let{playNextVideo:n}=e;return fn(()=>{n()}),t.$$set=l=>{"playNextVideo"in l&&i(0,n=l.playNextVideo)},[n]}class M_ extends ye{constructor(e){super(),ke(this,e,V_,null,_e,{playNextVideo:0})}}const{window:B_}=ku;function N_(t){Ye(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 eu(t){let e,i,n,l;e=new Ef({props:{side:"left",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[100],handleSecondClick:t[130]}});let r=!t[48]&&tu(t);return{c(){K(e.$$.fragment),i=H(),r&&r.c(),n=bt()},m(o,s){j(e,o,s),S(o,i,s),r&&r.m(o,s),S(o,n,s),l=!0},p(o,s){const a={};s[0]&2&&(a.seekStep=o[1].controls.seekStepMobile/1e3),e.$set(a),o[48]?r&&(fe(),v(r,1,1,()=>{r=null}),de()):r?(r.p(o,s),s[1]&131072&&m(r,1)):(r=tu(o),r.c(),m(r,1),r.m(n.parentNode,n))},i(o){l||(m(e.$$.fragment,o),m(r),l=!0)},o(o){v(e.$$.fragment,o),v(r),l=!1},d(o){o&&(T(i),T(n)),Z(e,o),r&&r.d(o)}}}function tu(t){let e,i;return e=new Ef({props:{side:"right",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[100],handleSecondClick:t[131]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function iu(t){var n;let e,i;return e=new Tf({props:{thumbUrl:t[2],startTime:(n=t[3])==null?void 0:n.startTime}}),{c(){K(e.$$.fragment)},m(l,r){j(e,l,r),i=!0},p(l,r){var s;const o={};r[0]&4&&(o.thumbUrl=l[2]),r[0]&8&&(o.startTime=(s=l[3])==null?void 0:s.startTime),e.$set(o)},i(l){i||(m(e.$$.fragment,l),i=!0)},o(l){v(e.$$.fragment,l),i=!1},d(l){Z(e,l)}}}function nu(t){let e,i;return e=new Sf({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function ou(t){let e,i,n;return i=new Pc({props:{adsSlotId:t[7],adsParams:t[8],adsPreviewParam:t[9],duration:t[10]}}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","ads-container v-1jy89ut"),N(e,"hidden",t[34]!==Oe.Ads)},m(l,r){S(l,e,r),j(i,e,null),n=!0},p(l,r){const o={};r[0]&128&&(o.adsSlotId=l[7]),r[0]&256&&(o.adsParams=l[8]),r[0]&512&&(o.adsPreviewParam=l[9]),r[0]&1024&&(o.duration=l[10]),i.$set(o),(!n||r[1]&8)&&N(e,"hidden",l[34]!==Oe.Ads)},i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function lu(t){let e,i;return e=new M_({props:{playNextVideo:t[22]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function ru(t){let e,i;return e=new _f({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function su(t){let e,i,n;return i=new qu({props:{ariaLabel:Q("video360")}}),{c(){e=P("div"),K(i.$$.fragment),u(e,"class","spherical-video-icon v-1jy89ut")},m(l,r){S(l,e,r),j(i,e,null),n=!0},p:W,i(l){n||(m(i.$$.fragment,l),n=!0)},o(l){v(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function au(t){let e,i;return e=new kf({props:{thumbUrl:t[2],chromecastDeviceName:t[51]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&4&&(r.thumbUrl=n[2]),l[1]&1048576&&(r.chromecastDeviceName=n[51]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function uu(t){let e,i;return e=new wf({props:{shifted:t[30],captions:t[53],position:t[44],playerSize:t[31],isMobile:!0}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l[0]&1073741824&&(r.shifted=n[30]),l[1]&4194304&&(r.captions=n[53]),l[1]&8192&&(r.position=n[44]),l[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function cu(t){let e,i,n,l,r;return i=new yf({}),{c(){e=P("div"),K(i.$$.fragment)},m(o,s){S(o,e,s),j(i,e,null),n=!0,l||(r=ve(e,"click",ct(t[101])),l=!0)},p:W,i(o){n||(m(i.$$.fragment,o),n=!0)},o(o){v(i.$$.fragment,o),n=!1},d(o){o&&T(e),Z(i),l=!1,r()}}}function fu(t){let e,i,n;function l(o){t[132](o)}let r={bottomHidden:t[34]===Oe.Thumb||t[34]===Oe.WaitingLive||t[34]===Oe.WaitingRecord||t[34]===Oe.Ads,showControls:t[30],bottomNoSmooth:t[45],isAds:t[34]===Oe.Ads,canRewindLive:t[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&&(r.controlsElementRef=t[37]),e=new gf({props:r}),Te.push(()=>je(e,"controlsElementRef",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[1]&8&&(a.bottomHidden=o[34]===Oe.Thumb||o[34]===Oe.WaitingLive||o[34]===Oe.WaitingRecord||o[34]===Oe.Ads),s[0]&1073741824&&(a.showControls=o[30]),s[1]&16384&&(a.bottomNoSmooth=o[45]),s[1]&8&&(a.isAds=o[34]===Oe.Ads),s[0]&32|s[1]&8388608&&(a.canRewindLive=o[5]&&o[54]!==0),s[0]&2048&&(a.logoClickable=o[11]),s[0]&4096&&(a.logoHidden=o[12]),s[0]&8192&&(a.logoTargetUrl=o[13]),s[0]&16384&&(a.showNextPrevButtons=o[14]),s[0]&32768&&(a.nextButtonActive=o[15]),s[0]&65536&&(a.prevButtonActive=o[16]),s[0]&524288&&(a.isOneVideoPlaylist=o[19]),s[0]&1048576&&(a.supportLink=o[20]),s[1]&256&&(a.customFullscreenSupported=o[39]),s[0]&4194304&&(a.playNextVideo=o[22]),s[0]&8388608&&(a.playPrevVideo=o[23]),s[0]&16777216&&(a.repeatPlaylist=o[24]),s[0]&33554432&&(a.seekToInteractive=o[25]),s[0]&67108864&&(a.toggleGraph=o[26]),s[0]&134217728&&(a.playPrevChapter=o[27]),!i&&s[1]&64&&(i=!0,a.controlsElementRef=o[37],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function du(t){let e,i;return e=new zc({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function mu(t){let e,i;return e=new Bc({}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function pu(t){let e,i,n=t[5]&&t[78]&&!t[47].has(vt.TIMELINE),l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k;e=new Cf({props:{hidden:t[34]!==Oe.Thumb||t[33]||t[89]&&t[4],thumbUrl:t[2],startVideo:t[28]}});let I=n&&eu(t),$=t[34]===Oe.WaitingLive&&iu(t),q=t[34]===Oe.WaitingRecord&&nu(),D=t[6]&&t[21]&&ou(t),te=t[41]&&t[17]&&t[18]&&lu(t),re=t[49]&&ru(),V=t[50]&&su(),X=t[35]&&au(t),J=t[52].value!=="off"&&uu(t),B=t[33]&&cu(t),A=t[21]&&fu(t);b=new Ic({props:{isLive:t[55],isHidden:!t[40],isPlaying:t[56],position:t[44],duration:t[43]}});let R=t[38]&&du(),ne=t[57]&&mu();return{c(){K(e.$$.fragment),i=H(),I&&I.c(),l=H(),$&&$.c(),r=H(),q&&q.c(),o=H(),D&&D.c(),s=H(),te&&te.c(),a=H(),re&&re.c(),c=H(),V&&V.c(),f=H(),X&&X.c(),d=H(),J&&J.c(),h=H(),B&&B.c(),g=H(),A&&A.c(),_=H(),K(b.$$.fragment),C=H(),R&&R.c(),y=H(),ne&&ne.c(),w=bt()},m(L,G){j(e,L,G),S(L,i,G),I&&I.m(L,G),S(L,l,G),$&&$.m(L,G),S(L,r,G),q&&q.m(L,G),S(L,o,G),D&&D.m(L,G),S(L,s,G),te&&te.m(L,G),S(L,a,G),re&&re.m(L,G),S(L,c,G),V&&V.m(L,G),S(L,f,G),X&&X.m(L,G),S(L,d,G),J&&J.m(L,G),S(L,h,G),B&&B.m(L,G),S(L,g,G),A&&A.m(L,G),S(L,_,G),j(b,L,G),S(L,C,G),R&&R.m(L,G),S(L,y,G),ne&&ne.m(L,G),S(L,w,G),k=!0},p(L,G){const we={};G[0]&16|G[1]&12&&(we.hidden=L[34]!==Oe.Thumb||L[33]||L[89]&&L[4]),G[0]&4&&(we.thumbUrl=L[2]),G[0]&268435456&&(we.startVideo=L[28]),e.$set(we),G[0]&32|G[1]&65536&&(n=L[5]&&L[78]&&!L[47].has(vt.TIMELINE)),n?I?(I.p(L,G),G[0]&32|G[1]&65536&&m(I,1)):(I=eu(L),I.c(),m(I,1),I.m(l.parentNode,l)):I&&(fe(),v(I,1,1,()=>{I=null}),de()),L[34]===Oe.WaitingLive?$?($.p(L,G),G[1]&8&&m($,1)):($=iu(L),$.c(),m($,1),$.m(r.parentNode,r)):$&&(fe(),v($,1,1,()=>{$=null}),de()),L[34]===Oe.WaitingRecord?q?G[1]&8&&m(q,1):(q=nu(),q.c(),m(q,1),q.m(o.parentNode,o)):q&&(fe(),v(q,1,1,()=>{q=null}),de()),L[6]&&L[21]?D?(D.p(L,G),G[0]&2097216&&m(D,1)):(D=ou(L),D.c(),m(D,1),D.m(s.parentNode,s)):D&&(fe(),v(D,1,1,()=>{D=null}),de()),L[41]&&L[17]&&L[18]?te?(te.p(L,G),G[0]&393216|G[1]&1024&&m(te,1)):(te=lu(L),te.c(),m(te,1),te.m(a.parentNode,a)):te&&(fe(),v(te,1,1,()=>{te=null}),de()),L[49]?re?G[1]&262144&&m(re,1):(re=ru(),re.c(),m(re,1),re.m(c.parentNode,c)):re&&(fe(),v(re,1,1,()=>{re=null}),de()),L[50]?V?(V.p(L,G),G[1]&524288&&m(V,1)):(V=su(),V.c(),m(V,1),V.m(f.parentNode,f)):V&&(fe(),v(V,1,1,()=>{V=null}),de()),L[35]?X?(X.p(L,G),G[1]&16&&m(X,1)):(X=au(L),X.c(),m(X,1),X.m(d.parentNode,d)):X&&(fe(),v(X,1,1,()=>{X=null}),de()),L[52].value!=="off"?J?(J.p(L,G),G[1]&2097152&&m(J,1)):(J=uu(L),J.c(),m(J,1),J.m(h.parentNode,h)):J&&(fe(),v(J,1,1,()=>{J=null}),de()),L[33]?B?(B.p(L,G),G[1]&4&&m(B,1)):(B=cu(L),B.c(),m(B,1),B.m(g.parentNode,g)):B&&(fe(),v(B,1,1,()=>{B=null}),de()),L[21]?A?(A.p(L,G),G[0]&2097152&&m(A,1)):(A=fu(L),A.c(),m(A,1),A.m(_.parentNode,_)):A&&(fe(),v(A,1,1,()=>{A=null}),de());const Pe={};G[1]&16777216&&(Pe.isLive=L[55]),G[1]&512&&(Pe.isHidden=!L[40]),G[1]&33554432&&(Pe.isPlaying=L[56]),G[1]&8192&&(Pe.position=L[44]),G[1]&4096&&(Pe.duration=L[43]),b.$set(Pe),L[38]?R?G[1]&128&&m(R,1):(R=du(),R.c(),m(R,1),R.m(y.parentNode,y)):R&&(fe(),v(R,1,1,()=>{R=null}),de()),L[57]?ne?G[1]&67108864&&m(ne,1):(ne=mu(),ne.c(),m(ne,1),ne.m(w.parentNode,w)):ne&&(fe(),v(ne,1,1,()=>{ne=null}),de())},i(L){k||(m(e.$$.fragment,L),m(I),m($),m(q),m(D),m(te),m(re),m(V),m(X),m(J),m(B),m(A),m(b.$$.fragment,L),m(R),m(ne),k=!0)},o(L){v(e.$$.fragment,L),v(I),v($),v(q),v(D),v(te),v(re),v(V),v(X),v(J),v(B),v(A),v(b.$$.fragment,L),v(R),v(ne),k=!1},d(L){L&&(T(i),T(l),T(r),T(o),T(s),T(a),T(c),T(f),T(d),T(h),T(g),T(_),T(C),T(y),T(w)),Z(e,L),I&&I.d(L),$&&$.d(L),q&&q.d(L),D&&D.d(L),te&&te.d(L),re&&re.d(L),V&&V.d(L),X&&X.d(L),J&&J.d(L),B&&B.d(L),A&&A.d(L),Z(b,L),R&&R.d(L),ne&&ne.d(L)}}}function R_(t){let e,i,n,l,r,o=t[46],s,a,c,f,d,h=pu(t);return{c(){e=P("div"),i=P("div"),n=P("div"),r=H(),h.c(),s=H(),a=P("div"),u(n,"class","video-container v-1jy89ut"),u(n,"style",l=`transform: rotate(${t[32]}deg) scale(${t[42]})`),N(n,"fast-rotate",!t[1].isSmoothVideoRotate),u(i,"class","video-wrapper v-1jy89ut"),N(i,"hidden",t[34]!==Oe.Video),u(a,"class","overlay-container"),u(e,"class","player-wrapper v-1jy89ut"),u(e,"role","region"),u(e,"aria-label",Q("aria_label_video_player")),u(e,"tabindex","-1")},m(g,_){S(g,e,_),p(e,i),p(i,n),t[129](n),p(e,r),h.m(e,null),p(e,s),p(e,a),t[133](a),t[134](e),c=!0,f||(d=[ve(B_,"blur",t[99]),ve(i,"click",ii(t[100])),ve(e,"click",t[102],!0),ve(e,"focusin",t[103],!0)],f=!0)},p(g,_){(!c||_[1]&2050&&l!==(l=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&u(n,"style",l),(!c||_[0]&2)&&N(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||_[1]&8)&&N(i,"hidden",g[34]!==Oe.Video),_[1]&32768&&_e(o,o=g[46])?(fe(),v(h,1,1,W),de(),h=pu(g),h.c(),m(h,1),h.m(e,s)):h.p(g,_)},i(g){c||(m(h),c=!0)},o(g){v(h),c=!1},d(g){g&&T(e),t[129](null),h.d(g),t[133](null),t[134](null),f=!1,ut(d)}}}function O_(t,e,i){var kn,yn;let n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$,q,D,te,re,V,X,J,B,A,R,ne,L,G,we,Pe,Ae,Be,Ue,{store:me}=e,{uiConfig:F}=e,{thumbUrl:ue}=e,{videoContainer:be}=e,{interactiveContainer:We}=e,{live:Qe}=e,{autoplay:ce}=e,{canRewindLive:Ee}=e,{showAds:De}=e,{adsSlotId:Ze=void 0}=e,{adsParams:pe=void 0}=e,{adsPreviewParam:M=void 0}=e,{duration:Se=void 0}=e,{logoClickable:se}=e,{logoHidden:Ce}=e,{logoTargetUrl:Ke=""}=e,{showNextPrevButtons:ot=!1}=e,{nextButtonActive:rt=!1}=e,{prevButtonActive:it=!1}=e,{endScreenVideoTitle:pt=void 0}=e,{endScreenVideoThumb:st=void 0}=e,{isOneVideoPlaylist:he=!1}=e,{supportLink:at}=e,{outerContainerRef:It=void 0}=e,{showMiniTimer:kt=!1}=e,{fullScreenTarget:Ve=void 0}=e,{playerStarted:Vt=!1}=e,{playNextVideo:ae=ie.noop}=e,{playPrevVideo:yt=ie.noop}=e,{repeatPlaylist:Et=ie.noop}=e,{seekToInteractive:ht}=e,{toggleGraph:Ge}=e,{playPrevChapter:He}=e,{firstStart:Ne}=e,{seekTime:dt}=e;const Jt=me.getLogger().createComponentLog("Root component"),Ut=me.interfaceLanguage$;z(t,Ut,ee=>i(46,J=ee));const Fi=me.state.playbackState$;z(t,Fi,ee=>i(126,re=ee));const Xi=me.ads.playbackState;z(t,Xi,ee=>i(127,V=ee));const ni=me.state.positionWithScrubbing$;z(t,ni,ee=>i(44,s=ee));const fi=me.state.duration$;z(t,fi,ee=>i(43,o=ee));const yi=me.playerPhase;z(t,yi,ee=>i(34,$=ee));const xt=me.ui.isFullscreen;z(t,xt,ee=>i(141,c=ee));const di=me.ui.controlsVisible;z(t,di,ee=>i(30,l=ee));const Ji=me.ui.interactiveHideMobileControls;z(t,Ji,ee=>i(118,g=ee));const Ci=me.ui.settingsMenuVisible;z(t,Ci,ee=>i(117,n=ee));const Ni=me.ui.scrubbingInProgress;z(t,Ni,ee=>i(119,b=ee));const mi=me.ui.debugPanelVisible;z(t,mi,ee=>i(57,Ue=ee));const pi=me.state.isLoaderVisible;z(t,pi,ee=>i(128,X=ee));const hi=me.state.isEnded$;z(t,hi,ee=>i(121,w=ee));const Ti=me.state.chromecastConnected$;z(t,Ti,ee=>i(35,q=ee));const Si=me.state.chromecastDeviceName$;z(t,Si,ee=>i(51,L=ee));const oi=me.ads.postrollPassed;z(t,oi,ee=>i(122,k=ee));const Gt=me.ui.mobileUnmuteButtonExpanded,At=me.ui.mobileUnmuteButtonVisible,vi=me.state.isLive$;z(t,vi,ee=>i(55,Ae=ee));const Mt=me.state.isPlaying$;z(t,Mt,ee=>i(56,Be=ee));const $t=me.state.isActiveLive$;z(t,$t,ee=>i(48,A=ee));const li=me.state.isRewindableLive$,gi=me.state.crashed$;z(t,gi,ee=>i(33,y=ee));const mt=me.webApi.pictureInPictureApi,Nt=me.state.videoSize$;z(t,Nt,ee=>i(142,d=ee));const gt=me.state.currentSubtitle$;z(t,gt,ee=>i(52,G=ee));const bi=me.state.currentSubtitleCaptions$;z(t,bi,ee=>i(53,we=ee));const ri=me.state.duration$;z(t,ri,ee=>i(54,Pe=ee));const rn=me.state.graphIsOpened$;z(t,rn,ee=>i(125,te=ee));const xi=me.ui.playerSize;z(t,xi,ee=>i(31,f=ee));const Rt=me.ui.is3DVideo;z(t,Rt,ee=>i(49,R=ee));const si=me.ui.icon3DVideoVisible;z(t,si,ee=>i(50,ne=ee));const Ui=me.ui.rotateAlpha;z(t,Ui,ee=>i(32,_=ee));const Pi=me.state.isInteractive,ai=me.state.isInteractiveTime$;z(t,ai,ee=>i(120,C=ee));const Yt=me.state.isInteractiveExpectation$;z(t,Yt,ee=>i(124,D=ee));const qi=me.state.hasInteractiveBranches,$i=me.ui.controls.disabledControls$;z(t,$i,ee=>i(47,B=ee));const Qt=me.ui.touched;z(t,Qt,ee=>i(123,I=ee));const Ot=me.ui.clientInfo$;z(t,Ot,ee=>i(140,a=ee));const qt=me.ui.overlayContainer$,ji=me.state.isFirstBytes$;z(t,ji,ee=>i(139,r=ee));const en=me.actions.internal.closeSettingsMenu,tn=(kn=me.callbacks)==null?void 0:kn.onDisabledPlayPrevChapterClick,Ri=(yn=me.callbacks)==null?void 0:yn.onDisabledSeekToInteractiveClick;let Ei,jt,ui,Ii,Oi,Zi,_i;const Ai=Le(!1);z(t,Ai,ee=>i(45,h=ee));let Di,Fe=!1,Li,Dt=!1,Me,Ki=!0,Wi,zi,Gi=!1,Hi;mt==null||mt.setContext(yu());const dn=ee=>{clearTimeout(Ii),ee&&(At.set(!0),Gt.set(!0),Ii=window.setTimeout(()=>{Gt.set(!1)},F.controls.collapseMobileUnmute),Pi||Zt(F.controls.hideTimeoutMobile))};me.setUiCallbacks({onStarted:dn});const Yi=()=>{window.clearTimeout(ui),i(112,Fe=!1),g&&Ji.set(!1)},Zt=ee=>{Yi(),i(112,Fe=!0),ui=window.setTimeout(()=>i(112,Fe=!1),ee);const _t=ee-100;Di=window.setTimeout(()=>{h&&Ai.set(!1)},_t>0?_t:ee)},Qi=Rt.subscribe(ee=>{si.set(ee),ee&&(window.clearTimeout(Oi),Oi=window.setTimeout(()=>si.set(!1),F.controls.hide360IconTimeout))}),Bt=async()=>{var _t,hn,nn,vn;const ee=Fo();if(ee){Zt(F.controls.hideTimeoutFullscreen);try{await(mt==null?void 0:mt.remove())}catch(un){Jt({message:String(un)})}try{const un=d!=null&&d.width&&(d!=null&&d.height)?d:f;await Cm(un)}catch(un){Jt({message:String(un)})}}xt.set(ee),me.getAdmanWrapper().setFullscreen(ee),c?(hn=(_t=me.callbacks)==null?void 0:_t.onFullscreenEnter)==null||hn.call(_t):(vn=(nn=me.callbacks)==null?void 0:nn.onFullscreenExit)==null||vn.call(nn)},le=ee=>{const _t=ee;xi.set({width:_t.target.width,height:_t.target.height})};fn(()=>{var _t;return Tc(Bt),bl(mt)&&(mt==null||mt.assignPlayerContainer(Ei),mt==null||mt.registryExternalEventHandlers({resize:le})),i(39,Ki=!E_(a)),We&&((_t=be.parentElement)==null||_t.insertBefore(We,be.nextSibling)),()=>{window.clearTimeout(ui),window.clearTimeout(Di),window.clearTimeout(Ii),window.clearTimeout(Oi),Qi(),mt==null||mt.dispose(),Sc(Bt)}});const nt=ee=>{let _t=s+(ee==="forward"?1:-1)*F.controls.seekStepMobile/1e3;_t<0?_t=0:_t>o&&(_t=o-1),i(114,Dt=!0),dt(_t)},ci=async()=>{if(Fo())await Cc(document),Jt({message:"exit fullscreen"});else{if(Jt({message:"request fullscreen"}),ie.isIOS()&&!r)return;const ee=ie.isIOS()||!It?Ei:It,_t=ee.getRootNode(),hn=_t instanceof ShadowRoot?_t.host:_t,nn=Ve instanceof HTMLElement&&Ve.contains(hn),vn=F.allowChangingFullscreenTarget&&Ve&&nn?Ve:ee;await yc(vn)}},Vi=()=>{en()},Mi=()=>{if(n){Vi();return}if(!Vt){Ne(),Zt(F.controls.hideTimeoutCursor);return}i(114,Dt=!1),l?Yi():Zt(F.controls.hideTimeoutMobile)},Kt=()=>{if(n){Vi();return}},bn=()=>{Qt.set(!0)},mn=()=>{Pi||(Ai.set(!0),Zt(F.controls.hideTimeoutCursor))},Cn=ee=>{tn&&(tn(ee),Zt(F.controls.hideTimeoutMobile))},Wt=ee=>{Ri&&(Ri(ee),Zt(F.controls.hideTimeoutMobile))};function sn(ee){Te[ee?"unshift":"push"](()=>{be=ee,i(0,be)})}const _n=()=>nt("backward"),pn=()=>nt("forward");function wn(ee){jt=ee,i(37,jt)}function Tn(ee){Te[ee?"unshift":"push"](()=>{_i=ee,i(29,_i)})}function an(ee){Te[ee?"unshift":"push"](()=>{Ei=ee,i(36,Ei)})}return t.$$set=ee=>{"store"in ee&&i(106,me=ee.store),"uiConfig"in ee&&i(1,F=ee.uiConfig),"thumbUrl"in ee&&i(2,ue=ee.thumbUrl),"videoContainer"in ee&&i(0,be=ee.videoContainer),"interactiveContainer"in ee&&i(107,We=ee.interactiveContainer),"live"in ee&&i(3,Qe=ee.live),"autoplay"in ee&&i(4,ce=ee.autoplay),"canRewindLive"in ee&&i(5,Ee=ee.canRewindLive),"showAds"in ee&&i(6,De=ee.showAds),"adsSlotId"in ee&&i(7,Ze=ee.adsSlotId),"adsParams"in ee&&i(8,pe=ee.adsParams),"adsPreviewParam"in ee&&i(9,M=ee.adsPreviewParam),"duration"in ee&&i(10,Se=ee.duration),"logoClickable"in ee&&i(11,se=ee.logoClickable),"logoHidden"in ee&&i(12,Ce=ee.logoHidden),"logoTargetUrl"in ee&&i(13,Ke=ee.logoTargetUrl),"showNextPrevButtons"in ee&&i(14,ot=ee.showNextPrevButtons),"nextButtonActive"in ee&&i(15,rt=ee.nextButtonActive),"prevButtonActive"in ee&&i(16,it=ee.prevButtonActive),"endScreenVideoTitle"in ee&&i(17,pt=ee.endScreenVideoTitle),"endScreenVideoThumb"in ee&&i(18,st=ee.endScreenVideoThumb),"isOneVideoPlaylist"in ee&&i(19,he=ee.isOneVideoPlaylist),"supportLink"in ee&&i(20,at=ee.supportLink),"outerContainerRef"in ee&&i(108,It=ee.outerContainerRef),"showMiniTimer"in ee&&i(109,kt=ee.showMiniTimer),"fullScreenTarget"in ee&&i(110,Ve=ee.fullScreenTarget),"playerStarted"in ee&&i(21,Vt=ee.playerStarted),"playNextVideo"in ee&&i(22,ae=ee.playNextVideo),"playPrevVideo"in ee&&i(23,yt=ee.playPrevVideo),"repeatPlaylist"in ee&&i(24,Et=ee.repeatPlaylist),"seekToInteractive"in ee&&i(25,ht=ee.seekToInteractive),"toggleGraph"in ee&&i(26,Ge=ee.toggleGraph),"playPrevChapter"in ee&&i(27,He=ee.playPrevChapter),"firstStart"in ee&&i(28,Ne=ee.firstStart),"seekTime"in ee&&i(111,dt=ee.seekTime)},t.$$.update=()=>{t.$$.dirty[1]&12|t.$$.dirty[4]&24&&i(38,Zi=($===Oe.Video&&X||$===Oe.Ads&&V===ti.INACTIVE)&&!y),t.$$.dirty[0]&536870912&&qt.set(_i),t.$$.dirty[4]&4&&i(113,Li=re!==tt.PlaybackState.PLAYING),t.$$.dirty[3]&303562752|t.$$.dirty[4]&3&&i(115,Me=te||g||!Fe&&(w&&!!qi||Li&&D)),t.$$.dirty[1]&28|t.$$.dirty[3]&91750400&&di.set((Li||n||b||q||Fe&&!Dt)&&!Me&&$===Oe.Video&&!y),t.$$.dirty[0]&1073741826|t.$$.dirty[1]&12|t.$$.dirty[3]&1073807360&&i(40,Wi=F.features.thumbTimer&&kt&&$===Oe.Video&&!l&&!y&&!Pi&&(F.hideThumbTimerAfterTouch&&!I||!F.hideThumbTimerAfterTouch)),t.$$.dirty[0]&64|t.$$.dirty[1]&4|t.$$.dirty[3]&805306368&&i(41,zi=(De&&k||!De)&&w&&!y),t.$$.dirty[0]&2|t.$$.dirty[3]&209715200&&(!b&&Gi&&!C&&Zt(F.controls.hideTimeoutMobile),i(116,Gi=b)),t.$$.dirty[0]&1|t.$$.dirty[1]&3&&i(42,Hi=be&&_%180?f.height/f.width:1)},[be,F,ue,Qe,ce,Ee,De,Ze,pe,M,Se,se,Ce,Ke,ot,rt,it,pt,st,he,at,Vt,ae,yt,Et,ht,Ge,He,Ne,_i,l,f,_,y,$,q,Ei,jt,Zi,Ki,Wi,zi,Hi,o,s,h,J,B,A,R,ne,L,G,we,Pe,Ae,Be,Ue,Ut,Fi,Xi,ni,fi,yi,xt,di,Ji,Ci,Ni,mi,pi,hi,Ti,Si,oi,vi,Mt,$t,li,gi,Nt,gt,bi,ri,rn,xi,Rt,si,Ui,Pi,ai,Yt,$i,Qt,Ot,ji,Ai,nt,ci,Vi,Mi,Kt,bn,mn,Cn,Wt,me,We,It,kt,Ve,dt,Fe,Li,Dt,Me,Gi,n,g,b,C,w,k,I,D,te,re,V,X,sn,_n,pn,wn,Tn,an]}class D_ extends ye{constructor(e){super(),ke(this,e,O_,R_,_e,{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},N_,[-1,-1,-1,-1,-1,-1])}}function z_(t){Ye(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 Kg(i){let e,t;return{c(){e=T("div"),t=Ie(i[0]),u(e,"class","title svelte-1bcvcf2"),L(e,"hidden",i[1])},m(n,o){y(n,e,o),d(e,t)},p(n,[o]){o&1&&ze(t,n[0]),o&2&&L(e,"hidden",n[1])},i:R,o:R,d(n){n&&v(e)}}}function Wg(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=s=>{"title"in s&&t(0,n=s.title),"isHidden"in s&&t(1,o=s.isHidden)},[n,o]}var Uu=class extends j{constructor(e){super(),X(this,e,Wg,Kg,G,{title:0,isHidden:1},qg)}},om=Uu;function Zg(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 rm(i){let e,t,n,o,s,r,l;return{c(){e=T("div"),t=T("span"),n=Ie(i[0]),o=N(),s=T("span"),s.textContent=`${z("waiting_live_day_value")}`,r=N(),l=T("span"),l.textContent=`${z("waiting_live_colon")}`,u(t,"class","cell__value svelte-1qpxtfg"),u(s,"class","cell__unit svelte-1qpxtfg"),u(e,"class","timer__cell cell svelte-1qpxtfg"),u(l,"class","timer__points svelte-1qpxtfg")},m(a,c){y(a,e,c),d(e,t),d(t,n),d(e,o),d(e,s),y(a,r,c),y(a,l,c)},p(a,c){c&1&&ze(n,a[0])},d(a){a&&(v(e),v(r),v(l))}}}function lm(i){let e,t,n,o,s,r,l;return{c(){e=T("div"),t=T("span"),n=Ie(i[1]),o=N(),s=T("span"),s.textContent=`${z("waiting_live_hour_value")}`,r=N(),l=T("span"),l.textContent=`${z("waiting_live_colon")}`,u(t,"class","cell__value svelte-1qpxtfg"),u(s,"class","cell__unit svelte-1qpxtfg"),u(e,"class","timer__cell cell svelte-1qpxtfg"),u(l,"class","timer__points svelte-1qpxtfg")},m(a,c){y(a,e,c),d(e,t),d(t,n),d(e,o),d(e,s),y(a,r,c),y(a,l,c)},p(a,c){c&2&&ze(n,a[1])},d(a){a&&(v(e),v(r),v(l))}}}function sm(i){let e,t,n,o,s,r,l;return{c(){e=T("div"),t=T("span"),n=Ie(i[2]),o=N(),s=T("span"),s.textContent=`${z("waiting_live_minute_value")}`,r=N(),l=T("span"),l.textContent=`${z("waiting_live_colon")}`,u(t,"class","cell__value svelte-1qpxtfg"),u(s,"class","cell__unit svelte-1qpxtfg"),u(e,"class","timer__cell cell svelte-1qpxtfg"),u(l,"class","timer__points svelte-1qpxtfg")},m(a,c){y(a,e,c),d(e,t),d(t,n),d(e,o),d(e,s),y(a,r,c),y(a,l,c)},p(a,c){c&4&&ze(n,a[2])},d(a){a&&(v(e),v(r),v(l))}}}function am(i){let e,t,n,o,s;return{c(){e=T("div"),t=T("span"),n=Ie(i[3]),o=N(),s=T("span"),s.textContent=`${z("waiting_live_second_value")}`,u(t,"class","cell__value svelte-1qpxtfg"),u(s,"class","cell__unit svelte-1qpxtfg"),u(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,l){y(r,e,l),d(e,t),d(t,n),d(e,o),d(e,s)},p(r,l){l&8&&ze(n,r[3])},d(r){r&&v(e)}}}function Gg(i){let e,t,n,o,s=i[0]&&rm(i),r=i[1]&&lm(i),l=i[2]&&sm(i),a=i[3]&&am(i);return{c(){e=T("div"),s&&s.c(),t=N(),r&&r.c(),n=N(),l&&l.c(),o=N(),a&&a.c(),u(e,"class","timer__container svelte-1qpxtfg")},m(c,f){y(c,e,f),s&&s.m(e,null),d(e,t),r&&r.m(e,null),d(e,n),l&&l.m(e,null),d(e,o),a&&a.m(e,null)},p(c,[f]){c[0]?s?s.p(c,f):(s=rm(c),s.c(),s.m(e,t)):s&&(s.d(1),s=null),c[1]?r?r.p(c,f):(r=lm(c),r.c(),r.m(e,n)):r&&(r.d(1),r=null),c[2]?l?l.p(c,f):(l=sm(c),l.c(),l.m(e,o)):l&&(l.d(1),l=null),c[3]?a?a.p(c,f):(a=am(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:R,o:R,d(c){c&&v(e),s&&s.d(),r&&r.d(),l&&l.d(),a&&a.d()}}}function jg(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,s,r,l,a,c,f=g=>String(g).padStart(2,"0"),p=g=>{let b=Math.floor(g/86400);b&&(g-=b*86400,t(0,s=f(b)));let w=Math.floor(g/3600);t(1,r=f(w));let S=Math.floor(g/60)%60;t(2,l=f(S));let I=g%60;t(3,a=f(I))},_=()=>{let g=Math.floor(Date.now()/1e3),b=n-g;p(b),b>=1?c=requestAnimationFrame(_):o()};return Pt(()=>{c=requestAnimationFrame(_)}),Hn(()=>{cancelAnimationFrame(c)}),i.$$set=g=>{"startTime"in g&&t(4,n=g.startTime),"onTimerOver"in g&&t(5,o=g.onTimerOver)},[s,r,l,a,n,o]}var qu=class extends j{constructor(e){super(),X(this,e,jg,Gg,G,{startTime:4,onTimerOver:5},Zg)}},um=qu;function xg(i){let e,t,n,o,s;return{c(){e=V("svg"),t=V("path"),n=V("path"),o=V("path"),s=V("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"),Tt(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"),Tt(n,"opacity",".965"),u(o,"fill","#fefffe"),u(o,"d","M187.5 127.5c44.524-2.948 72.357 17.052 83.5 60 3.431 44.55-16.403 72.383-59.5 83.5-44.55 3.431-72.383-16.403-83.5-59.5-3.229-44.571 16.604-72.571 59.5-84Z"),Tt(o,"opacity",".985"),u(s,"fill","#fefffe"),u(s,"d","M219.5 399.5h-40c-44.969-5.321-83.969-23.321-117-54a31.738 31.738 0 0 1 3.5-10c5.692-6.431 12.526-11.264 20.5-14.5 36.524-12.956 74.191-18.79 113-17.5 38.809-1.29 76.476 4.544 113 17.5 7.974 3.236 14.808 8.069 20.5 14.5a31.731 31.731 0 0 1 3.5 10c-33.031 30.679-72.031 48.679-117 54Z"),Tt(s,"opacity",".986"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"viewBox","0 0 400 400"),u(e,"aria-hidden","true"),u(e,"data-testid","podcast-icon"),Tt(e,"shape-rendering","geometricPrecision"),Tt(e,"text-rendering","geometricPrecision"),Tt(e,"image-rendering","optimizeQuality"),Tt(e,"fill-rule","evenodd"),Tt(e,"clip-rule","evenodd"),Tt(e,"width","100%"),Tt(e,"height","100%")},m(r,l){y(r,e,l),d(e,t),d(e,n),d(e,o),d(e,s)},p:R,i:R,o:R,d(r){r&&v(e)}}}var Ku=class extends j{constructor(e){super(),X(this,e,null,xg,G,{})}},cm=Ku;function Yg(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 Qg(i){let e,t,n,o,s;return o=new um({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,l){y(r,e,l),d(e,t),d(e,n),O(o,e,null),s=!0},p(r,l){let a={};l&2&&(a.startTime=r[1]||0),l&4&&(a.onTimerOver=r[3]),o.$set(a)},i(r){s||(m(o.$$.fragment,r),s=!0)},o(r){h(o.$$.fragment,r),s=!1},d(r){r&&v(e),F(o)}}}function Xg(i){let e,t,n,o,s,r;return n=new cm({}),{c(){e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),s=T("span"),s.textContent=`${z("waiting_live_upcoming_title")}`,u(t,"class","upcoming-icon svelte-15pewff"),u(s,"class","upcoming__title svelte-15pewff"),u(e,"class","upcoming svelte-15pewff")},m(l,a){y(l,e,a),d(e,t),O(n,t,null),d(e,o),d(e,s),r=!0},p:R,i(l){r||(m(n.$$.fragment,l),r=!0)},o(l){h(n.$$.fragment,l),r=!1},d(l){l&&v(e),F(n)}}}function Jg(i){let e,t,n,o,s,r=[Xg,Qg],l=[];function a(c,f){return c[2]?0:1}return t=a(i,-1),n=l[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){y(c,e,f),l[t].m(e,null),s=!0},p(c,[f]){let p=t;t=a(c,f),t===p?l[t].p(c,f):(ce(),h(l[p],1,1,()=>{l[p]=null}),fe(),n=l[t],n?n.p(c,f):(n=l[t]=r[t](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){h(n),s=!1},d(c){c&&v(e),l[t].d()}}}function $g(i,e,t){let n,{thumbUrl:o}=e,{startTime:s}=e,r=()=>t(2,n=!0);return i.$$set=l=>{"thumbUrl"in l&&t(0,o=l.thumbUrl),"startTime"in l&&t(1,s=l.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=s===void 0||s<Math.floor(Date.now()/1e3))},[o,s,n,r]}var Wu=class extends j{constructor(e){super(),X(this,e,$g,Jg,G,{thumbUrl:0,startTime:1},Yg)}},ns=Wu;function e5(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 t5(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){y(n,e,o),d(e,t)},p:R,i:R,o:R,d(n){n&&v(e)}}}var Zu=class extends j{constructor(e){super(),X(this,e,null,t5,G,{},e5)}},os=Zu;var{window:i5}=wo;function n5(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 dm(i){var n;let e,t;return e=new ns({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){H(e.$$.fragment)},m(o,s){O(e,o,s),t=!0},p(o,s){var l;let r={};s[0]&8&&(r.thumbUrl=o[3]),s[0]&16&&(r.startTime=(l=o[4])==null?void 0:l.startTime),e.$set(r)},i(o){t||(m(e.$$.fragment,o),t=!0)},o(o){h(e.$$.fragment,o),t=!1},d(o){F(e,o)}}}function mm(i){let e,t;return e=new os({}),{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 pm(i){let e,t,n;return t=new sl({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"),L(e,"hidden",i[38]!=="ads")},m(o,s){y(o,e,s),O(t,e,null),n=!0},p(o,s){let r={};s[0]&256&&(r.adsSlotId=o[8]),s[0]&512&&(r.adsParams=o[9]),s[0]&1024&&(r.adsPreviewParam=o[10]),s[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||s[1]&128)&&L(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&&v(e),F(t)}}}function hm(i){let e,t;return e=new xf({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 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){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 om({props:{title:i[2],isHidden:!i[36]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&4&&(s.title=n[2]),o[1]&32&&(s.isHidden=!n[36]),e.$set(s)},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:{isShifted:i[38]==="video"&&i[36]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[1]&160&&(s.isShifted=n[38]==="video"&&n[36]),e.$set(s)},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;return t=new Jr({props:{ariaLabel:z("video360")}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,s){y(o,e,s),O(t,e,null),n=!0},p:R,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&v(e),F(t)}}}function vm(i){let e,t;return e=new es({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&8&&(s.thumbUrl=n[3]),o[1]&4194304&&(s.chromecastDeviceName=n[53]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ym(i){let e,t;return e=new $l({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 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){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,n,o,s;return t=new ts({}),{c(){e=T("div"),H(t.$$.fragment)},m(r,l){y(r,e,l),O(t,e,null),n=!0,o||(s=[de(e,"contextmenu",St(i[108])),de(e,"click",$e(i[119]))],o=!0)},p:R,i(r){n||(m(t.$$.fragment,r),n=!0)},o(r){h(t.$$.fragment,r),n=!1},d(r){r&&v(e),F(t),o=!1,Ye(s)}}}function km(i){let e,t,n;function o(r){i[156](r)}let s={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:Em,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&&(s.controlsElementRef=i[41]),e=new Xl({props:s}),me.push(()=>Ve(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&128&&(a.bottomHidden=r[38]==="thumb"||r[38]==="waitingLive"||r[38]==="waitingRecord"),l[1]&524288&&(a.bottomNoSmooth=r[50]),l[1]&32&&(a.showControls=r[36]),l[1]&128&&(a.isAds=r[38]==="ads"),l[0]&64|l[1]&67108864&&(a.canRewindLive=r[6]&&r[57]!==0),l[0]&4096&&(a.logoClickable=r[12]),l[0]&8192&&(a.logoHidden=r[13]),l[0]&16384&&(a.logoTargetUrl=r[14]),l[0]&32768&&(a.showNextPrevButtons=r[15]),l[0]&65536&&(a.nextButtonActive=r[16]),l[0]&131072&&(a.prevButtonActive=r[17]),l[0]&1048576&&(a.isOneVideoPlaylist=r[20]),l[0]&2097152&&(a.supportLink=r[21]),l[0]&8388608&&(a.playNextVideo=r[23]),l[0]&16777216&&(a.playPrevVideo=r[24]),l[0]&33554432&&(a.repeatPlaylist=r[25]),l[1]&131072&&(a.returnFocus=r[155]),l[0]&67108864&&(a.seekToInteractive=r[26]),l[0]&134217728&&(a.toggleGraph=r[27]),l[0]&268435456&&(a.playPrevChapter=r[28]),!t&&l[1]&1024&&(t=!0,a.controlsElementRef=r[41],Me(()=>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 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 Sm(i){let e,t;return e=new r1({}),{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 Tm(i){let e,t;return e=new ml({}),{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 Pm(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le;e=new is({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let oe=i[38]==="waitingLive"&&dm(i),P=i[38]==="waitingRecord"&&mm(i),ne=i[7]&&i[22]&&pm(i),J=i[31]&&i[18]&&i[19]&&hm(i),K=i[44]&&_m(i),Q=i[49]&&bm(i),M=i[52]&&gm(i),Z=i[39]&&vm(i),B=i[54].value!=="off"&&ym(i),te=i[37]&&wm(i),Ce=i[22]&&km(i);b=new ul({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),S=new Y0({props:{data:i[103]}});function He(x){i[158](x)}let Re={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Re.menuElementRef=i[32]),k=new Vf({props:Re}),me.push(()=>Ve(k,"menuElementRef",He));let We=i[42]&&Cm(i),Oe=i[62]&&Sm(i),be=i[63]&&Tm(i);return{c(){H(e.$$.fragment),t=N(),oe&&oe.c(),n=N(),P&&P.c(),o=N(),ne&&ne.c(),s=N(),J&&J.c(),r=N(),K&&K.c(),l=N(),Q&&Q.c(),a=N(),M&&M.c(),c=N(),Z&&Z.c(),f=N(),B&&B.c(),p=N(),te&&te.c(),_=N(),Ce&&Ce.c(),g=N(),H(b.$$.fragment),w=N(),H(S.$$.fragment),I=N(),H(k.$$.fragment),E=N(),We&&We.c(),U=N(),Oe&&Oe.c(),$=N(),be&&be.c(),q=Xe()},m(x,he){O(e,x,he),y(x,t,he),oe&&oe.m(x,he),y(x,n,he),P&&P.m(x,he),y(x,o,he),ne&&ne.m(x,he),y(x,s,he),J&&J.m(x,he),y(x,r,he),K&&K.m(x,he),y(x,l,he),Q&&Q.m(x,he),y(x,a,he),M&&M.m(x,he),y(x,c,he),Z&&Z.m(x,he),y(x,f,he),B&&B.m(x,he),y(x,p,he),te&&te.m(x,he),y(x,_,he),Ce&&Ce.m(x,he),y(x,g,he),O(b,x,he),y(x,w,he),O(S,x,he),y(x,I,he),O(k,x,he),y(x,E,he),We&&We.m(x,he),y(x,U,he),Oe&&Oe.m(x,he),y(x,$,he),be&&be.m(x,he),y(x,q,he),le=!0},p(x,he){let Le={};he[0]&32|he[1]&192&&(Le.hidden=x[38]!=="thumb"||x[37]||x[92]&&x[5]),he[0]&8&&(Le.thumbUrl=x[3]),he[0]&536870912&&(Le.startVideo=x[29]),e.$set(Le),x[38]==="waitingLive"?oe?(oe.p(x,he),he[1]&128&&m(oe,1)):(oe=dm(x),oe.c(),m(oe,1),oe.m(n.parentNode,n)):oe&&(ce(),h(oe,1,1,()=>{oe=null}),fe()),x[38]==="waitingRecord"?P?he[1]&128&&m(P,1):(P=mm(x),P.c(),m(P,1),P.m(o.parentNode,o)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),x[7]&&x[22]?ne?(ne.p(x,he),he[0]&4194432&&m(ne,1)):(ne=pm(x),ne.c(),m(ne,1),ne.m(s.parentNode,s)):ne&&(ce(),h(ne,1,1,()=>{ne=null}),fe()),x[31]&&x[18]&&x[19]?J?(J.p(x,he),he[0]&786432|he[1]&1&&m(J,1)):(J=hm(x),J.c(),m(J,1),J.m(r.parentNode,r)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),x[44]?K?(K.p(x,he),he[1]&8192&&m(K,1)):(K=_m(x),K.c(),m(K,1),K.m(l.parentNode,l)):K&&(ce(),h(K,1,1,()=>{K=null}),fe()),x[49]?Q?(Q.p(x,he),he[1]&262144&&m(Q,1)):(Q=bm(x),Q.c(),m(Q,1),Q.m(a.parentNode,a)):Q&&(ce(),h(Q,1,1,()=>{Q=null}),fe()),x[52]?M?(M.p(x,he),he[1]&2097152&&m(M,1)):(M=gm(x),M.c(),m(M,1),M.m(c.parentNode,c)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),x[39]?Z?(Z.p(x,he),he[1]&256&&m(Z,1)):(Z=vm(x),Z.c(),m(Z,1),Z.m(f.parentNode,f)):Z&&(ce(),h(Z,1,1,()=>{Z=null}),fe()),x[54].value!=="off"?B?(B.p(x,he),he[1]&8388608&&m(B,1)):(B=ym(x),B.c(),m(B,1),B.m(p.parentNode,p)):B&&(ce(),h(B,1,1,()=>{B=null}),fe()),x[37]?te?(te.p(x,he),he[1]&64&&m(te,1)):(te=wm(x),te.c(),m(te,1),te.m(_.parentNode,_)):te&&(ce(),h(te,1,1,()=>{te=null}),fe()),x[22]?Ce?(Ce.p(x,he),he[0]&4194304&&m(Ce,1)):(Ce=km(x),Ce.c(),m(Ce,1),Ce.m(g.parentNode,g)):Ce&&(ce(),h(Ce,1,1,()=>{Ce=null}),fe());let Ue={};he[1]&134217728&&(Ue.isLive=x[58]),he[1]&4096&&(Ue.isHidden=!x[43]),he[1]&268435456&&(Ue.isPlaying=x[59]),he[1]&33554432&&(Ue.position=x[56]),he[1]&536870912&&(Ue.duration=x[60]),b.$set(Ue);let xe={};he[0]&2097152&&(xe.supportLink=x[21]),he[1]&131072&&(xe.returnFocus=x[157]),he[1]&4&&(xe.visible=x[33]),he[1]&512&&(xe.playerContainerRef=x[40]),he[1]&1024&&(xe.controlsContainerRef=x[41]),he[1]&1073741824&&(xe.position=x[61]),!C&&he[1]&2&&(C=!0,xe.menuElementRef=x[32],Me(()=>C=!1)),k.$set(xe),x[42]?We?he[1]&2048&&m(We,1):(We=Cm(x),We.c(),m(We,1),We.m(U.parentNode,U)):We&&(ce(),h(We,1,1,()=>{We=null}),fe()),x[62]?Oe?he[2]&1&&m(Oe,1):(Oe=Sm(x),Oe.c(),m(Oe,1),Oe.m($.parentNode,$)):Oe&&(ce(),h(Oe,1,1,()=>{Oe=null}),fe()),x[63]?be?he[2]&2&&m(be,1):(be=Tm(x),be.c(),m(be,1),be.m(q.parentNode,q)):be&&(ce(),h(be,1,1,()=>{be=null}),fe())},i(x){le||(m(e.$$.fragment,x),m(oe),m(P),m(ne),m(J),m(K),m(Q),m(M),m(Z),m(B),m(te),m(Ce),m(b.$$.fragment,x),m(S.$$.fragment,x),m(k.$$.fragment,x),m(We),m(Oe),m(be),le=!0)},o(x){h(e.$$.fragment,x),h(oe),h(P),h(ne),h(J),h(K),h(Q),h(M),h(Z),h(B),h(te),h(Ce),h(b.$$.fragment,x),h(S.$$.fragment,x),h(k.$$.fragment,x),h(We),h(Oe),h(be),le=!1},d(x){x&&(v(t),v(n),v(o),v(s),v(r),v(l),v(a),v(c),v(f),v(p),v(_),v(g),v(w),v(I),v(E),v(U),v($),v(q)),F(e,x),oe&&oe.d(x),P&&P.d(x),ne&&ne.d(x),J&&J.d(x),K&&K.d(x),Q&&Q.d(x),M&&M.d(x),Z&&Z.d(x),B&&B.d(x),te&&te.d(x),Ce&&Ce.d(x),F(b,x),F(S,x),F(k,x),We&&We.d(x),Oe&&Oe.d(x),be&&be.d(x)}}}function o5(i){let e,t,n,o,s=i[51],r,l,a,c,f=Pm(i);return{c(){e=T("div"),t=T("div"),o=N(),f.c(),r=Xe(),u(t,"class","video-container svelte-1o4wf3x"),u(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),L(t,"fast-rotate",!i[1].isSmoothVideoRotate),u(e,"class","video-wrapper svelte-1o4wf3x"),L(e,"hidden",i[38]!=="video"),L(e,"nocursor",i[45])},m(p,_){y(p,e,_),d(e,t),i[154](t),y(p,o,_),f.m(p,_),y(p,r,_),l=!0,a||(c=[de(e,"contextmenu",St(i[108])),de(e,"mousedown",St(i[113])),de(e,"mouseup",St(i[114])),de(e,"click",St(i[116])),de(e,"dblclick",St(i[115]))],a=!0)},p(p,_){(!l||_[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&u(t,"style",n),(!l||_[0]&2)&&L(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!l||_[1]&128)&&L(e,"hidden",p[38]!=="video"),(!l||_[1]&16384)&&L(e,"nocursor",p[45]),_[1]&1048576&&G(s,s=p[51])?(ce(),h(f,1,1,R),fe(),f=Pm(p),f.c(),m(f,1),f.m(r.parentNode,r)):f.p(p,_)},i(p){l||(m(f),l=!0)},o(p){h(f),l=!1},d(p){p&&(v(e),v(o),v(r)),i[154](null),f.d(p),a=!1,Ye(c)}}}function r5(i){let e,t,n,o,s,r,l,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:[o5]},$$scope:{ctx:i}};return t=new Qf({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){y(c,e,f),O(t,e,null),d(e,n),d(e,o),i[160](o),i[161](e),s=!0,r||(l=[de(i5,"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){s||(m(t.$$.fragment,c),s=!0)},o(c){h(t.$$.fragment,c),s=!1},d(c){c&&v(e),i[159](null),F(t),i[160](null),i[161](null),r=!1,Ye(l)}}}var Em=!0;function Gu(i){return i?i.offsetTop+Gu(i.offsetParent):0}function Mm(i){return i?i.offsetLeft+Mm(i.offsetParent):0}function l5(i,e,t){let n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,ne,J,K,Q,M,Z,B,te,Ce,He,Re,We,Oe,be,x,he,Le,Ue,xe,{store:_e}=e,{uiConfig:Te}=e,{title:Ne}=e,{thumbUrl:Ge}=e,{videoContainer:we}=e,{interactiveContainer:W}=e,{live:ye}=e,{autoplay:ue}=e,{canRewindLive:Se}=e,{showAds:qe}=e,{adsSlotId:et=void 0}=e,{adsParams:ot=void 0}=e,{adsPreviewParam:tt=void 0}=e,{duration:ht=void 0}=e,{logoClickable:at}=e,{logoHidden:ge}=e,{logoTargetUrl:lt=""}=e,{showNextPrevButtons:Et=!1}=e,{nextButtonActive:kt=!1}=e,{prevButtonActive:Ae=!1}=e,{endScreenVideoTitle:Dt=void 0}=e,{endScreenVideoThumb:Lt=void 0}=e,{isOneVideoPlaylist:pe=!1}=e,{supportLink:Mt}=e,{outerContainerRef:rt=void 0}=e,{playerStarted:mt=!1}=e,{fullScreenTarget:ut=void 0}=e,{showMiniTimer:Pe=!1}=e,{playNextVideo:Fe=rs.noop}=e,{playPrevVideo:gt=rs.noop}=e,{repeatPlaylist:Zt=rs.noop}=e,{seekToInteractive:Yi}=e,{toggleGraph:an}=e,{playPrevChapter:si}=e,{firstStart:ai}=e,vi=_e.getLogger().createComponentLog("Root component"),Qt=_e.interfaceLanguage$;D(i,Qt,Y=>t(51,B=Y));let ui=_e.state.playbackState$;D(i,ui,Y=>t(151,Q=Y));let Qi=_e.ads.playbackState;D(i,Qi,Y=>t(152,M=Y));let yi=_e.state.positionWithScrubbing$;D(i,yi,Y=>t(56,We=Y));let wi=_e.state.duration$;D(i,wi,Y=>t(60,he=Y));let ci=_e.playerPhase;D(i,ci,Y=>t(38,oe=Y));let ki=_e.ui.isFullscreen;D(i,ki,Y=>t(141,b=Y));let fi=_e.ui.controlsVisible;D(i,fi,Y=>t(36,E=Y));let Ci=_e.ui.settingsMenuVisible;D(i,Ci,Y=>t(139,a=Y));let Si=_e.ui.scrubbingInProgress;D(i,Si,Y=>t(143,k=Y));let At=_e.ui.contextMenu.visible$;D(i,At,Y=>t(33,n=Y));let Ot=_e.ui.debugPanelVisible;D(i,Ot,Y=>t(63,xe=Y));let Bt=_e.state.isLoaderVisible;D(i,Bt,Y=>t(153,Z=Y));let di=_e.state.isEnded$;D(i,di,Y=>t(140,f=Y));let Kt=_e.state.chromecastConnected$;D(i,Kt,Y=>t(39,J=Y));let mi=_e.state.chromecastDeviceName$;D(i,mi,Y=>t(53,Ce=Y));let Xt=_e.ads.postrollPassed;D(i,Xt,Y=>t(146,q=Y));let ni=_e.state.isLive$;D(i,ni,Y=>t(58,be=Y));let ct=_e.state.isPlaying$;D(i,ct,Y=>t(59,x=Y));let Ft=_e.state.crashed$;D(i,Ft,Y=>t(37,$=Y));let _t=_e.webApi.pictureInPictureApi,Jt=_e.state.currentSubtitle$;D(i,Jt,Y=>t(54,He=Y));let pi=_e.state.currentSubtitleCaptions$;D(i,pi,Y=>t(55,Re=Y));let pn=_e.state.duration$;D(i,pn,Y=>t(57,Oe=Y));let Xi=_e.state.graphIsOpened$;D(i,Xi,Y=>t(147,le=Y));let $t=_e.ui.playerSize;D(i,$t,Y=>t(34,_=Y));let oi=_e.ui.is3DVideo;D(i,oi,Y=>t(49,p=Y));let Ti=_e.ui.icon3DVideoVisible;D(i,Ti,Y=>t(52,te=Y));let Oi=_e.ui.rotateAlpha;D(i,Oi,Y=>t(35,I=Y));let Gt=_e.state.isInteractive,Ct=_e.state.isInteractiveTime$;D(i,Ct,Y=>t(144,C=Y));let Pi=_e.state.isInteractiveExpectation$;D(i,Pi,Y=>t(150,K=Y));let Ji=_e.state.hasInteractiveBranches,ri=_e.ui.touched;D(i,ri,Y=>t(148,P=Y));let $i=_e.ui.modals.hotKeyMap.data;D(i,$i,Y=>t(168,c=Y));let hi=_e.ui.modals.hotKeyMap.show;D(i,hi,Y=>t(62,Ue=Y));let un=_e.ui.overlayContainer$,en=_e.ui.controls.interactiveTimeIndicator;D(i,en,Y=>t(169,g=Y));let cn=_e.state.showInteractiveTimeIndicator,Fi=_e.ui.contextMenu.position$;D(i,Fi,Y=>t(61,Le=Y));let Ii=_e.actions.internal.closeSettingsMenu,{fakeIsPlaying$:jt}=An();D(i,jt,Y=>t(142,S=Y));let ei,_i,Hi,zi,bi;$i.set(ff());let Ei,Mi,Ke=Ee(!1);D(i,Ke,Y=>t(50,w=Y));let Ui,Wt=Ee(!1);D(i,Wt,Y=>t(149,ne=Y));let Be=Ee(),Vi=Ee(!1);D(i,Vi,Y=>t(145,U=Y));let tn=!1,qi=!1,Li,fn,Ai,nn,xt,on,li=!1,se,nt=!1,{toggle:Yt}=jt,ti=!1,Bi=null,Ht;_t==null||_t.setContext(gr());let Pn=()=>{ue&&!Gt&&zt(Te.controls.hideTimeout)};_e.setUiCallbacks({onStarted:Pn});let In=()=>{window.clearTimeout(Hi),Wt.set(!1)},vn=()=>{window.clearTimeout(zi),Be.set(null)},zt=Y=>{In(),Wt.set(!0),Hi=window.setTimeout(()=>Wt.set(!1),Y);let pt=Y-100;Ui=window.setTimeout(()=>{w&&Ke.set(!1)},pt>0?pt:Y)},En=(Y,pt)=>{vn(),Be.set(pt),zi=window.setTimeout(()=>Be.set(null),Y)},qn=oi.subscribe(Y=>{Ti.set(Y),Y&&(window.clearTimeout(bi),bi=window.setTimeout(()=>Ti.set(!1),Te.controls.hide360IconTimeout))}),Mn=async()=>{var pt,rn,Ki,A;let Y=so();if(Y){zt(Te.controls.hideTimeoutFullscreen);try{await(_t==null?void 0:_t.remove())}catch(ae){vi({message:String(ae)})}}ki.set(Y),_e.getAdmanWrapper().setFullscreen(Y),b?(rn=(pt=_e.callbacks)==null?void 0:pt.onFullscreenEnter)==null||rn.call(pt):(A=(Ki=_e.callbacks)==null?void 0:Ki.onFullscreenExit)==null||A.call(Ki)},Nn=Y=>{let pt=Y;$t.set({width:pt.target.width,height:pt.target.height})};Pt(()=>{var pt;return rl(Mn),Vo(_t)&&(_t==null||_t.assignPlayerContainer(ei),_t==null||_t.registryExternalEventHandlers({resize:Nn})),W&&((pt=we.parentElement)==null||pt.insertBefore(W,we.nextSibling)),()=>{window.clearTimeout(Hi),window.clearTimeout(Ui),window.clearTimeout(zi),window.clearTimeout(bi),qn(),_t==null||_t.dispose(),ll(Mn)}});let yn=async()=>{if(so())await ol(document),vi({message:"exit fullscreen"});else{vi({message:"request fullscreen"});let Y=rt!=null?rt:ei,pt=Y.getRootNode(),rn=pt instanceof ShadowRoot?pt.host:pt,Ki=ut instanceof HTMLElement&&ut.contains(rn),A=Te.allowChangingFullscreenTarget&&ut&&Ki?ut:Y;await nl(A)}},hn=()=>{Ii(),At.set(!1)},Dn=Y=>{At.set(!0),Fi.set({left:Y.clientX,top:Y.clientY})};function On(){Vi.set(!0),Gt||zt(Te.controls.hideTimeoutCursor)}function re(){Gt||(Ke.set(!0),zt(Te.controls.hideTimeoutCursor))}function bt(){Vi.set(!1),t(131,qi=!1),t(130,tn=!1),ti=!1,_e.actions.internal.releaseCamera()}function wn(Y){if(g&&cn){let pt=Y.currentTarget,rn=Gu(pt),Ki=Mm(pt),A=Y.pageX-Ki,ae=Y.pageY-rn,{left:ke,bottom:De,right:Je}=g,dt=Je-ke;return A>=ke-dt&&ae<=De+dt}}function dn(Y){if(ei){let pt=Gu(Y.currentTarget),rn=_.height,Ki=Y.pageY-pt;if(wn(Y)){t(131,qi=!1);return}Ki<40?t(131,qi=!0):Ki>rn-40?t(130,tn=!0):(t(131,qi=!1),a||t(130,tn=!1))}}function kn(Y){dn(Y),fn||zt(Te.controls.hideTimeoutCursor),p&&ti&&Bi&&_e.actions.internal.moveCameraFocusPX(Bi.clientX-Y.clientX,Bi.clientY-Y.clientY,Y.timeStamp-Bi.timeStamp),Bi=Y}let _n=Y=>{Y.button===0&&(ti=!0,_e.actions.internal.holdCamera()),zt(Te.controls.hideTimeoutCursor)},to=Y=>{Y.button===0&&(Bi=Y,ti=!1,_e.actions.internal.releaseCamera()),zt(Te.controls.hideTimeoutCursor)},io=()=>{Em&&(vi({message:"double click on video"}),yn(),zt(Te.controls.hideTimeoutCursor))},_o=()=>{if(n||a){hn();return}if(!(f&&!Ji)){if(nt)return Yt();if(Ht==null||Ht.focus(),!mt){ai(),zt(Te.controls.hideTimeoutCursor);return}_e.actions.internal.togglePlay(),zt(Te.controls.hideTimeoutCursor)}},xn=Y=>{hn(),ri.set(!0),zt(Te.controls.hideTimeout),Y&&En(Te.controls.hideHotKeyHelpers,Y)},bn=()=>{var Y,pt;hn(),(Y=_e.callbacks)!=null&&Y.onOpenHotKeyMap?(pt=_e.callbacks)==null||pt.onOpenHotKeyMap(c):hi.update(rn=>!rn)},ie=()=>{if(n||a){hn();return}},Yn=()=>{ri.set(!0)},no=_e.ui.contextMenu.openedByBtnKeyboard$;D(i,no,Y=>t(138,l=Y));let Oo=_e.ui.contextMenu.btnRef$;D(i,Oo,Y=>t(137,r=Y));let Kn,oo=_e.ui.contextMenu.openedByHotKey$;D(i,oo,Y=>t(136,s=Y));let Fo=_e.ui.contextMenu.lastActiveElem$;D(i,Fo,Y=>t(135,o=Y));function Ho(Y){me[Y?"unshift":"push"](()=>{we=Y,t(0,we)})}let hr=()=>Ht==null?void 0:Ht.focus();function Qn(Y){_i=Y,t(41,_i)}let bo=()=>Ht==null?void 0:Ht.focus();function go(Y){Kn=Y,t(32,Kn)}function zo(Y){me[Y?"unshift":"push"](()=>{Ht=Y,t(48,Ht)})}function vo(Y){me[Y?"unshift":"push"](()=>{Mi=Y,t(30,Mi)})}function ft(Y){me[Y?"unshift":"push"](()=>{ei=Y,t(40,ei)})}return i.$$set=Y=>{"store"in Y&&t(125,_e=Y.store),"uiConfig"in Y&&t(1,Te=Y.uiConfig),"title"in Y&&t(2,Ne=Y.title),"thumbUrl"in Y&&t(3,Ge=Y.thumbUrl),"videoContainer"in Y&&t(0,we=Y.videoContainer),"interactiveContainer"in Y&&t(126,W=Y.interactiveContainer),"live"in Y&&t(4,ye=Y.live),"autoplay"in Y&&t(5,ue=Y.autoplay),"canRewindLive"in Y&&t(6,Se=Y.canRewindLive),"showAds"in Y&&t(7,qe=Y.showAds),"adsSlotId"in Y&&t(8,et=Y.adsSlotId),"adsParams"in Y&&t(9,ot=Y.adsParams),"adsPreviewParam"in Y&&t(10,tt=Y.adsPreviewParam),"duration"in Y&&t(11,ht=Y.duration),"logoClickable"in Y&&t(12,at=Y.logoClickable),"logoHidden"in Y&&t(13,ge=Y.logoHidden),"logoTargetUrl"in Y&&t(14,lt=Y.logoTargetUrl),"showNextPrevButtons"in Y&&t(15,Et=Y.showNextPrevButtons),"nextButtonActive"in Y&&t(16,kt=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,Ae=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,Dt=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Lt=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,pe=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,Mt=Y.supportLink),"outerContainerRef"in Y&&t(127,rt=Y.outerContainerRef),"playerStarted"in Y&&t(22,mt=Y.playerStarted),"fullScreenTarget"in Y&&t(128,ut=Y.fullScreenTarget),"showMiniTimer"in Y&&t(129,Pe=Y.showMiniTimer),"playNextVideo"in Y&&t(23,Fe=Y.playNextVideo),"playPrevVideo"in Y&&t(24,gt=Y.playPrevVideo),"repeatPlaylist"in Y&&t(25,Zt=Y.repeatPlaylist),"seekToInteractive"in Y&&t(26,Yi=Y.seekToInteractive),"toggleGraph"in Y&&t(27,an=Y.toggleGraph),"playPrevChapter"in Y&&t(28,si=Y.playPrevChapter),"firstStart"in Y&&t(29,ai=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Ei=(oe==="video"&&Z||oe==="ads"&&M==="inactive")&&!$);if(i.$$.dirty[0]&1073741824)e:un.set(Mi);if(i.$$.dirty[4]&134217728)e:t(132,Li=Q!==Im.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,fn=C&&!a&&!(tn||qi)&&!(Li&&!K));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:fi.set((Li||a||k||J||ne)&&!fn&&(oe==="video"||oe==="ads")&&!$);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,Ai=Te.features.thumbTimer&&Pe&&oe==="video"&&!E&&!$&&!Gt&&(Te.hideThumbTimerAfterTouch&&!P||!Te.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,nn=oe==="video"&&!le&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,xt=(qe&&q||!qe)&&f&&!$);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,on=U&&!(E||xt)&&!C);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!k&&li&&!C&&zt(Te.controls.hideTimeoutCursor),t(134,li=k);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,se=we&&I%180?_.height/_.width:1);if(i.$$.dirty[4]&262144)e:t(47,nt=S!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:Bo(Kn,n,l);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let Y=r;Y&&er(Y,n,no)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Bo(Kn,n,s);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let Y=o;Y&&Cf(Y,n,oo)}},[we,Te,Ne,Ge,ye,ue,Se,qe,et,ot,tt,ht,at,ge,lt,Et,kt,Ae,Dt,Lt,pe,Mt,mt,Fe,gt,Zt,Yi,an,si,ai,Mi,xt,Kn,n,_,I,E,$,oe,J,ei,_i,Ei,Ai,nn,on,se,nt,Ht,p,w,B,te,Ce,He,Re,We,Oe,be,x,he,Le,Ue,xe,Qt,ui,Qi,yi,wi,ci,ki,fi,Ci,Si,At,Ot,Bt,di,Kt,mi,Xt,ni,ct,Ft,Jt,pi,pn,Xi,$t,oi,Ti,Oi,Gt,Ct,Pi,ri,$i,hi,en,Fi,jt,Ke,Wt,Be,Vi,Yt,yn,hn,Dn,On,re,bt,kn,_n,to,io,_o,xn,bn,ie,Yn,no,Oo,oo,Fo,_e,W,rt,ut,Pe,tn,qi,Li,fn,li,o,s,r,l,a,f,b,S,k,C,U,q,le,P,ne,K,Q,M,Z,Ho,hr,Qn,bo,go,zo,vo,ft]}var ju=class extends j{constructor(e){super(),X(this,e,l5,r5,G,{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},n5,[-1,-1,-1,-1,-1,-1,-1])}},Vm=ju;var Ym=require("@vkontakte/videoplayer-core"),Do=require("@vkontakte/videoplayer-shared");var ur=require("@vkontakte/videoplayer-shared"),Lm=i=>{if(!(0,ur.isIOS)(!0))return!1;let e=i.device===ur.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,ur.getIOSVersion)();return!e||e&&!!t&&t<16};function s5(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 Am(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S=z("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",I;return{c(){e=T("div"),n=N(),o=T("div"),s=T("div"),r=T("div"),a=N(),c=T("div"),p=N(),_=T("div"),b=N(),w=T("p"),I=Ie(S),u(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),u(r,"class",l="triangle "+i[0]+" svelte-nhq2ld"),u(c,"class",f="triangle "+i[0]+" svelte-nhq2ld"),u(_,"class",g="triangle "+i[0]+" svelte-nhq2ld"),u(s,"class","triangles-wrapper svelte-nhq2ld"),u(w,"class","step-caption svelte-nhq2ld"),u(o,"class","info svelte-nhq2ld")},m(k,C){y(k,e,C),y(k,n,C),y(k,o,C),d(o,s),d(s,r),d(s,a),d(s,c),d(s,p),d(s,_),d(o,b),d(o,w),d(w,I)},p(k,C){C&1&&t!==(t="semicircle "+k[0]+" svelte-nhq2ld")&&u(e,"class",t),C&1&&l!==(l="triangle "+k[0]+" svelte-nhq2ld")&&u(r,"class",l),C&1&&f!==(f="triangle "+k[0]+" svelte-nhq2ld")&&u(c,"class",f),C&1&&g!==(g="triangle "+k[0]+" svelte-nhq2ld")&&u(_,"class",g),C&2&&S!==(S=z("doubletap_seek_step",{seconds:k[1].toFixed(0)})+"")&&ze(I,S)},d(k){k&&(v(e),v(n),v(o))}}}function a5(i){let e,t,n,o,s=i[2]&&Am(i);return{c(){e=T("div"),s&&s.c(),u(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,l){y(r,e,l),s&&s.m(e,null),n||(o=de(e,"click",$e(i[3]())),n=!0)},p(r,[l]){r[2]?s?s.p(r,l):(s=Am(r),s.c(),s.m(e,null)):s&&(s.d(1),s=null),l&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&u(e,"class",t)},i:R,o:R,d(r){r&&v(e),s&&s.d(),n=!1,o()}}}function u5(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:s}=e,{handleSecondClick:r}=e,l=!1,a=0,c=0,f=()=>{let _=0;return()=>{_+=1,_===1?a=window.setTimeout(()=>{s(),_=0},300):(window.clearTimeout(a),_=0,r(),t(2,l=!0),c=window.setTimeout(()=>{t(2,l=!1)},500))}};return Hn(()=>{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,s=p.handleSingleFirstClick),"handleSecondClick"in p&&t(5,r=p.handleSecondClick)},[n,o,l,f,s,r]}var xu=class extends j{constructor(e){super(),X(this,e,u5,a5,G,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},s5)}},Yu=xu;function c5(i,e,t){let{playNextVideo:n}=e;return Pt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var Qu=class extends j{constructor(e){super(),X(this,e,c5,null,G,{playNextVideo:0})}},Bm=Qu;var{window:f5}=wo;function d5(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 Rm(i){let e,t,n,o;e=new Yu({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let s=!i[48]&&Nm(i);return{c(){H(e.$$.fragment),t=N(),s&&s.c(),n=Xe()},m(r,l){O(e,r,l),y(r,t,l),s&&s.m(r,l),y(r,n,l),o=!0},p(r,l){let a={};l[0]&2&&(a.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(a),r[48]?s&&(ce(),h(s,1,1,()=>{s=null}),fe()):s?(s.p(r,l),l[1]&131072&&m(s,1)):(s=Nm(r),s.c(),m(s,1),s.m(n.parentNode,n))},i(r){o||(m(e.$$.fragment,r),m(s),o=!0)},o(r){h(e.$$.fragment,r),h(s),o=!1},d(r){r&&(v(t),v(n)),F(e,r),s&&s.d(r)}}}function Nm(i){let e,t;return e=new Yu({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 s={};o[0]&2&&(s.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Dm(i){var n;let e,t;return e=new ns({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){H(e.$$.fragment)},m(o,s){O(e,o,s),t=!0},p(o,s){var l;let r={};s[0]&4&&(r.thumbUrl=o[2]),s[0]&8&&(r.startTime=(l=o[3])==null?void 0:l.startTime),e.$set(r)},i(o){t||(m(e.$$.fragment,o),t=!0)},o(o){h(e.$$.fragment,o),t=!1},d(o){F(e,o)}}}function Om(i){let e,t;return e=new os({}),{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 sl({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"),L(e,"hidden",i[34]!=="ads")},m(o,s){y(o,e,s),O(t,e,null),n=!0},p(o,s){let r={};s[0]&128&&(r.adsSlotId=o[7]),s[0]&256&&(r.adsParams=o[8]),s[0]&512&&(r.adsPreviewParam=o[9]),s[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||s[1]&8)&&L(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&&v(e),F(t)}}}function Hm(i){let e,t;return e=new Bm({props:{playNextVideo:i[22]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&4194304&&(s.playNextVideo=n[22]),e.$set(s)},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 Jl({}),{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 Um(i){let e,t,n;return t=new Jr({props:{ariaLabel:z("video360")}}),{c(){e=T("div"),H(t.$$.fragment),u(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,s){y(o,e,s),O(t,e,null),n=!0},p:R,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),n=!1},d(o){o&&v(e),F(t)}}}function qm(i){let e,t;return e=new es({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o[0]&4&&(s.thumbUrl=n[2]),o[1]&1048576&&(s.chromecastDeviceName=n[51]),e.$set(s)},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 $l({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 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){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,n,o,s;return t=new ts({}),{c(){e=T("div"),H(t.$$.fragment)},m(r,l){y(r,e,l),O(t,e,null),n=!0,o||(s=de(e,"click",$e(i[101])),o=!0)},p:R,i(r){n||(m(t.$$.fragment,r),n=!0)},o(r){h(t.$$.fragment,r),n=!1},d(r){r&&v(e),F(t),o=!1,s()}}}function Zm(i){let e,t,n;function o(r){i[132](r)}let s={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&&(s.controlsElementRef=i[37]),e=new Xl({props:s}),me.push(()=>Ve(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[1]&8&&(a.bottomHidden=r[34]==="thumb"||r[34]==="waitingLive"||r[34]==="waitingRecord"||r[34]==="ads"),l[0]&1073741824&&(a.showControls=r[30]),l[1]&16384&&(a.bottomNoSmooth=r[45]),l[1]&8&&(a.isAds=r[34]==="ads"),l[0]&32|l[1]&8388608&&(a.canRewindLive=r[5]&&r[54]!==0),l[0]&2048&&(a.logoClickable=r[11]),l[0]&4096&&(a.logoHidden=r[12]),l[0]&8192&&(a.logoTargetUrl=r[13]),l[0]&16384&&(a.showNextPrevButtons=r[14]),l[0]&32768&&(a.nextButtonActive=r[15]),l[0]&65536&&(a.prevButtonActive=r[16]),l[0]&524288&&(a.isOneVideoPlaylist=r[19]),l[0]&1048576&&(a.supportLink=r[20]),l[1]&256&&(a.customFullscreenSupported=r[39]),l[0]&4194304&&(a.playNextVideo=r[22]),l[0]&8388608&&(a.playPrevVideo=r[23]),l[0]&16777216&&(a.repeatPlaylist=r[24]),l[0]&33554432&&(a.seekToInteractive=r[25]),l[0]&67108864&&(a.toggleGraph=r[26]),l[0]&134217728&&(a.playPrevChapter=r[27]),!t&&l[1]&64&&(t=!0,a.controlsElementRef=r[37],Me(()=>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 Gm(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 jm(i){let e,t;return e=new ml({}),{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 xm(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C;e=new is({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let E=n&&Rm(i),U=i[34]==="waitingLive"&&Dm(i),$=i[34]==="waitingRecord"&&Om(i),q=i[6]&&i[21]&&Fm(i),le=i[41]&&i[17]&&i[18]&&Hm(i),oe=i[49]&&zm(i),P=i[50]&&Um(i),ne=i[35]&&qm(i),J=i[52].value!=="off"&&Km(i),K=i[33]&&Wm(i),Q=i[21]&&Zm(i);w=new ul({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let M=i[38]&&Gm(i),Z=i[57]&&jm(i);return{c(){H(e.$$.fragment),t=N(),E&&E.c(),o=N(),U&&U.c(),s=N(),$&&$.c(),r=N(),q&&q.c(),l=N(),le&&le.c(),a=N(),oe&&oe.c(),c=N(),P&&P.c(),f=N(),ne&&ne.c(),p=N(),J&&J.c(),_=N(),K&&K.c(),g=N(),Q&&Q.c(),b=N(),H(w.$$.fragment),S=N(),M&&M.c(),I=N(),Z&&Z.c(),k=Xe()},m(B,te){O(e,B,te),y(B,t,te),E&&E.m(B,te),y(B,o,te),U&&U.m(B,te),y(B,s,te),$&&$.m(B,te),y(B,r,te),q&&q.m(B,te),y(B,l,te),le&&le.m(B,te),y(B,a,te),oe&&oe.m(B,te),y(B,c,te),P&&P.m(B,te),y(B,f,te),ne&&ne.m(B,te),y(B,p,te),J&&J.m(B,te),y(B,_,te),K&&K.m(B,te),y(B,g,te),Q&&Q.m(B,te),y(B,b,te),O(w,B,te),y(B,S,te),M&&M.m(B,te),y(B,I,te),Z&&Z.m(B,te),y(B,k,te),C=!0},p(B,te){let Ce={};te[0]&16|te[1]&12&&(Ce.hidden=B[34]!=="thumb"||B[33]||B[89]&&B[4]),te[0]&4&&(Ce.thumbUrl=B[2]),te[0]&268435456&&(Ce.startVideo=B[28]),e.$set(Ce),te[0]&32|te[1]&65536&&(n=B[5]&&B[78]&&!B[47].has("TIMELINE")),n?E?(E.p(B,te),te[0]&32|te[1]&65536&&m(E,1)):(E=Rm(B),E.c(),m(E,1),E.m(o.parentNode,o)):E&&(ce(),h(E,1,1,()=>{E=null}),fe()),B[34]==="waitingLive"?U?(U.p(B,te),te[1]&8&&m(U,1)):(U=Dm(B),U.c(),m(U,1),U.m(s.parentNode,s)):U&&(ce(),h(U,1,1,()=>{U=null}),fe()),B[34]==="waitingRecord"?$?te[1]&8&&m($,1):($=Om(B),$.c(),m($,1),$.m(r.parentNode,r)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),B[6]&&B[21]?q?(q.p(B,te),te[0]&2097216&&m(q,1)):(q=Fm(B),q.c(),m(q,1),q.m(l.parentNode,l)):q&&(ce(),h(q,1,1,()=>{q=null}),fe()),B[41]&&B[17]&&B[18]?le?(le.p(B,te),te[0]&393216|te[1]&1024&&m(le,1)):(le=Hm(B),le.c(),m(le,1),le.m(a.parentNode,a)):le&&(ce(),h(le,1,1,()=>{le=null}),fe()),B[49]?oe?te[1]&262144&&m(oe,1):(oe=zm(B),oe.c(),m(oe,1),oe.m(c.parentNode,c)):oe&&(ce(),h(oe,1,1,()=>{oe=null}),fe()),B[50]?P?(P.p(B,te),te[1]&524288&&m(P,1)):(P=Um(B),P.c(),m(P,1),P.m(f.parentNode,f)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),B[35]?ne?(ne.p(B,te),te[1]&16&&m(ne,1)):(ne=qm(B),ne.c(),m(ne,1),ne.m(p.parentNode,p)):ne&&(ce(),h(ne,1,1,()=>{ne=null}),fe()),B[52].value!=="off"?J?(J.p(B,te),te[1]&2097152&&m(J,1)):(J=Km(B),J.c(),m(J,1),J.m(_.parentNode,_)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),B[33]?K?(K.p(B,te),te[1]&4&&m(K,1)):(K=Wm(B),K.c(),m(K,1),K.m(g.parentNode,g)):K&&(ce(),h(K,1,1,()=>{K=null}),fe()),B[21]?Q?(Q.p(B,te),te[0]&2097152&&m(Q,1)):(Q=Zm(B),Q.c(),m(Q,1),Q.m(b.parentNode,b)):Q&&(ce(),h(Q,1,1,()=>{Q=null}),fe());let He={};te[1]&16777216&&(He.isLive=B[55]),te[1]&512&&(He.isHidden=!B[40]),te[1]&33554432&&(He.isPlaying=B[56]),te[1]&8192&&(He.position=B[44]),te[1]&4096&&(He.duration=B[43]),w.$set(He),B[38]?M?te[1]&128&&m(M,1):(M=Gm(B),M.c(),m(M,1),M.m(I.parentNode,I)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),B[57]?Z?te[1]&67108864&&m(Z,1):(Z=jm(B),Z.c(),m(Z,1),Z.m(k.parentNode,k)):Z&&(ce(),h(Z,1,1,()=>{Z=null}),fe())},i(B){C||(m(e.$$.fragment,B),m(E),m(U),m($),m(q),m(le),m(oe),m(P),m(ne),m(J),m(K),m(Q),m(w.$$.fragment,B),m(M),m(Z),C=!0)},o(B){h(e.$$.fragment,B),h(E),h(U),h($),h(q),h(le),h(oe),h(P),h(ne),h(J),h(K),h(Q),h(w.$$.fragment,B),h(M),h(Z),C=!1},d(B){B&&(v(t),v(o),v(s),v(r),v(l),v(a),v(c),v(f),v(p),v(_),v(g),v(b),v(S),v(I),v(k)),F(e,B),E&&E.d(B),U&&U.d(B),$&&$.d(B),q&&q.d(B),le&&le.d(B),oe&&oe.d(B),P&&P.d(B),ne&&ne.d(B),J&&J.d(B),K&&K.d(B),Q&&Q.d(B),F(w,B),M&&M.d(B),Z&&Z.d(B)}}}function m5(i){let e,t,n,o,s,r=i[46],l,a,c,f,p,_,g=xm(i);return{c(){e=T("div"),t=T("div"),n=T("div"),s=N(),g.c(),l=N(),a=T("div"),u(n,"class","video-container svelte-1jy89ut"),u(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),L(n,"fast-rotate",!i[1].isSmoothVideoRotate),u(t,"class","video-wrapper svelte-1jy89ut"),L(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(b,w){y(b,e,w),d(e,t),d(t,n),i[129](n),d(e,s),g.m(e,null),d(e,l),d(e,a),i[133](a),i[134](e),f=!0,p||(_=[de(f5,"blur",i[99]),de(t,"click",St(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],p=!0)},p(b,w){(!f||w[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&u(n,"style",o),(!f||w[0]&2)&&L(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!f||w[1]&8)&&L(t,"hidden",b[34]!=="video"),w[1]&32768&&G(r,r=b[46])?(ce(),h(g,1,1,R),fe(),g=xm(b),g.c(),m(g,1),g.m(e,l)):g.p(b,w)},i(b){f||(m(g),f=!0)},o(b){h(g),f=!1},d(b){b&&v(e),i[129](null),g.d(b),i[133](null),i[134](null),p=!1,Ye(_)}}}function p5(i,e,t){var Dn,On;let n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$,q,le,oe,P,ne,J,K,Q,M,Z,B,te,Ce,He,Re,We,Oe,{store:be}=e,{uiConfig:x}=e,{thumbUrl:he}=e,{videoContainer:Le}=e,{interactiveContainer:Ue}=e,{live:xe}=e,{autoplay:_e}=e,{canRewindLive:Te}=e,{showAds:Ne}=e,{adsSlotId:Ge=void 0}=e,{adsParams:we=void 0}=e,{adsPreviewParam:W=void 0}=e,{duration:ye=void 0}=e,{logoClickable:ue}=e,{logoHidden:Se}=e,{logoTargetUrl:qe=""}=e,{showNextPrevButtons:et=!1}=e,{nextButtonActive:ot=!1}=e,{prevButtonActive:tt=!1}=e,{endScreenVideoTitle:ht=void 0}=e,{endScreenVideoThumb:at=void 0}=e,{isOneVideoPlaylist:ge=!1}=e,{supportLink:lt}=e,{outerContainerRef:Et=void 0}=e,{showMiniTimer:kt=!1}=e,{fullScreenTarget:Ae=void 0}=e,{playerStarted:Dt=!1}=e,{playNextVideo:Lt=Do.noop}=e,{playPrevVideo:pe=Do.noop}=e,{repeatPlaylist:Mt=Do.noop}=e,{seekToInteractive:rt}=e,{toggleGraph:mt}=e,{playPrevChapter:ut}=e,{firstStart:Pe}=e,{seekTime:Fe}=e,gt=be.getLogger().createComponentLog("Root component"),Zt=be.interfaceLanguage$;D(i,Zt,re=>t(46,J=re));let Yi=be.state.playbackState$;D(i,Yi,re=>t(126,oe=re));let an=be.ads.playbackState;D(i,an,re=>t(127,P=re));let si=be.state.positionWithScrubbing$;D(i,si,re=>t(44,l=re));let ai=be.state.duration$;D(i,ai,re=>t(43,r=re));let vi=be.playerPhase;D(i,vi,re=>t(34,U=re));let Qt=be.ui.isFullscreen;D(i,Qt,re=>t(141,c=re));let ui=be.ui.controlsVisible;D(i,ui,re=>t(30,o=re));let Qi=be.ui.interactiveHideMobileControls;D(i,Qi,re=>t(118,g=re));let yi=be.ui.settingsMenuVisible;D(i,yi,re=>t(117,n=re));let wi=be.ui.scrubbingInProgress;D(i,wi,re=>t(119,w=re));let ci=be.ui.debugPanelVisible;D(i,ci,re=>t(57,Oe=re));let ki=be.state.isLoaderVisible;D(i,ki,re=>t(128,ne=re));let fi=be.state.isEnded$;D(i,fi,re=>t(121,k=re));let Ci=be.state.chromecastConnected$;D(i,Ci,re=>t(35,$=re));let Si=be.state.chromecastDeviceName$;D(i,Si,re=>t(51,B=re));let At=be.ads.postrollPassed;D(i,At,re=>t(122,C=re));let Ot=be.ui.mobileUnmuteButtonExpanded,Bt=be.ui.mobileUnmuteButtonVisible,di=be.state.isLive$;D(i,di,re=>t(55,Re=re));let Kt=be.state.isPlaying$;D(i,Kt,re=>t(56,We=re));let mi=be.state.isActiveLive$;D(i,mi,re=>t(48,Q=re));let Xt=be.state.isRewindableLive$,ni=be.state.crashed$;D(i,ni,re=>t(33,I=re));let ct=be.webApi.pictureInPictureApi,Ft=be.state.videoSize$;D(i,Ft,re=>t(142,p=re));let _t=be.state.currentSubtitle$;D(i,_t,re=>t(52,te=re));let Jt=be.state.currentSubtitleCaptions$;D(i,Jt,re=>t(53,Ce=re));let pi=be.state.duration$;D(i,pi,re=>t(54,He=re));let pn=be.state.graphIsOpened$;D(i,pn,re=>t(125,le=re));let Xi=be.ui.playerSize;D(i,Xi,re=>t(31,f=re));let $t=be.ui.is3DVideo;D(i,$t,re=>t(49,M=re));let oi=be.ui.icon3DVideoVisible;D(i,oi,re=>t(50,Z=re));let Ti=be.ui.rotateAlpha;D(i,Ti,re=>t(32,b=re));let Oi=be.state.isInteractive,Gt=be.state.isInteractiveTime$;D(i,Gt,re=>t(120,S=re));let Ct=be.state.isInteractiveExpectation$;D(i,Ct,re=>t(124,q=re));let Pi=be.state.hasInteractiveBranches,Ji=be.ui.controls.disabledControls$;D(i,Ji,re=>t(47,K=re));let ri=be.ui.touched;D(i,ri,re=>t(123,E=re));let $i=be.ui.clientInfo$;D(i,$i,re=>t(140,a=re));let hi=be.ui.overlayContainer$,un=be.state.isFirstBytes$;D(i,un,re=>t(139,s=re));let en=be.actions.internal.closeSettingsMenu,cn=(Dn=be.callbacks)==null?void 0:Dn.onDisabledPlayPrevChapterClick,Fi=(On=be.callbacks)==null?void 0:On.onDisabledSeekToInteractiveClick,Ii,jt,ei,_i,Hi,zi,bi,Ei=Ee(!1);D(i,Ei,re=>t(45,_=re));let Mi,Ke=!1,Ui,Wt=!1,Be,Vi=!0,tn,qi,Li=!1,fn;ct==null||ct.setContext(gr());let Ai=re=>{clearTimeout(_i),re&&(Bt.set(!0),Ot.set(!0),_i=window.setTimeout(()=>{Ot.set(!1)},x.controls.collapseMobileUnmute),Oi||xt(x.controls.hideTimeoutMobile))};be.setUiCallbacks({onStarted:Ai});let nn=()=>{window.clearTimeout(ei),t(112,Ke=!1),g&&Qi.set(!1)},xt=re=>{nn(),t(112,Ke=!0),ei=window.setTimeout(()=>t(112,Ke=!1),re);let bt=re-100;Mi=window.setTimeout(()=>{_&&Ei.set(!1)},bt>0?bt:re)},on=$t.subscribe(re=>{oi.set(re),re&&(window.clearTimeout(Hi),Hi=window.setTimeout(()=>oi.set(!1),x.controls.hide360IconTimeout))}),li=async()=>{var bt,wn,dn,kn;let re=so();if(re){xt(x.controls.hideTimeoutFullscreen);try{await(ct==null?void 0:ct.remove())}catch(_n){gt({message:String(_n)})}try{let _n=p!=null&&p.width&&(p!=null&&p.height)?p:f;await cf(_n)}catch(_n){gt({message:String(_n)})}}Qt.set(re),be.getAdmanWrapper().setFullscreen(re),c?(wn=(bt=be.callbacks)==null?void 0:bt.onFullscreenEnter)==null||wn.call(bt):(kn=(dn=be.callbacks)==null?void 0:dn.onFullscreenExit)==null||kn.call(dn)},se=re=>{let bt=re;Xi.set({width:bt.target.width,height:bt.target.height})};Pt(()=>{var bt;return rl(li),Vo(ct)&&(ct==null||ct.assignPlayerContainer(Ii),ct==null||ct.registryExternalEventHandlers({resize:se})),t(39,Vi=!Lm(a)),Ue&&((bt=Le.parentElement)==null||bt.insertBefore(Ue,Le.nextSibling)),()=>{window.clearTimeout(ei),window.clearTimeout(Mi),window.clearTimeout(_i),window.clearTimeout(Hi),on(),ct==null||ct.dispose(),ll(li)}});let nt=re=>{let bt=l+(re==="forward"?1:-1)*x.controls.seekStepMobile/1e3;bt<0?bt=0:bt>r&&(bt=r-1),t(114,Wt=!0),Fe(bt)},Yt=async()=>{if(so())await ol(document),gt({message:"exit fullscreen"});else{if(gt({message:"request fullscreen"}),(0,Do.isIOS)()&&!s)return;let re=(0,Do.isIOS)()||!Et?Ii:Et,bt=re.getRootNode(),wn=bt instanceof ShadowRoot?bt.host:bt,dn=Ae instanceof HTMLElement&&Ae.contains(wn),kn=x.allowChangingFullscreenTarget&&Ae&&dn?Ae:re;await nl(kn)}},ti=()=>{en()},Bi=()=>{if(n){ti();return}if(!Dt){Pe(),xt(x.controls.hideTimeoutCursor);return}t(114,Wt=!1),o?nn():xt(x.controls.hideTimeoutMobile)},Ht=()=>{if(n){ti();return}},Pn=()=>{ri.set(!0)},In=()=>{Oi||(Ei.set(!0),xt(x.controls.hideTimeoutCursor))},vn=re=>{cn&&(cn(re),xt(x.controls.hideTimeoutMobile))},zt=re=>{Fi&&(Fi(re),xt(x.controls.hideTimeoutMobile))};function En(re){me[re?"unshift":"push"](()=>{Le=re,t(0,Le)})}let qn=()=>nt("backward"),Mn=()=>nt("forward");function Nn(re){jt=re,t(37,jt)}function yn(re){me[re?"unshift":"push"](()=>{bi=re,t(29,bi)})}function hn(re){me[re?"unshift":"push"](()=>{Ii=re,t(36,Ii)})}return i.$$set=re=>{"store"in re&&t(106,be=re.store),"uiConfig"in re&&t(1,x=re.uiConfig),"thumbUrl"in re&&t(2,he=re.thumbUrl),"videoContainer"in re&&t(0,Le=re.videoContainer),"interactiveContainer"in re&&t(107,Ue=re.interactiveContainer),"live"in re&&t(3,xe=re.live),"autoplay"in re&&t(4,_e=re.autoplay),"canRewindLive"in re&&t(5,Te=re.canRewindLive),"showAds"in re&&t(6,Ne=re.showAds),"adsSlotId"in re&&t(7,Ge=re.adsSlotId),"adsParams"in re&&t(8,we=re.adsParams),"adsPreviewParam"in re&&t(9,W=re.adsPreviewParam),"duration"in re&&t(10,ye=re.duration),"logoClickable"in re&&t(11,ue=re.logoClickable),"logoHidden"in re&&t(12,Se=re.logoHidden),"logoTargetUrl"in re&&t(13,qe=re.logoTargetUrl),"showNextPrevButtons"in re&&t(14,et=re.showNextPrevButtons),"nextButtonActive"in re&&t(15,ot=re.nextButtonActive),"prevButtonActive"in re&&t(16,tt=re.prevButtonActive),"endScreenVideoTitle"in re&&t(17,ht=re.endScreenVideoTitle),"endScreenVideoThumb"in re&&t(18,at=re.endScreenVideoThumb),"isOneVideoPlaylist"in re&&t(19,ge=re.isOneVideoPlaylist),"supportLink"in re&&t(20,lt=re.supportLink),"outerContainerRef"in re&&t(108,Et=re.outerContainerRef),"showMiniTimer"in re&&t(109,kt=re.showMiniTimer),"fullScreenTarget"in re&&t(110,Ae=re.fullScreenTarget),"playerStarted"in re&&t(21,Dt=re.playerStarted),"playNextVideo"in re&&t(22,Lt=re.playNextVideo),"playPrevVideo"in re&&t(23,pe=re.playPrevVideo),"repeatPlaylist"in re&&t(24,Mt=re.repeatPlaylist),"seekToInteractive"in re&&t(25,rt=re.seekToInteractive),"toggleGraph"in re&&t(26,mt=re.toggleGraph),"playPrevChapter"in re&&t(27,ut=re.playPrevChapter),"firstStart"in re&&t(28,Pe=re.firstStart),"seekTime"in re&&t(111,Fe=re.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,zi=(U==="video"&&ne||U==="ads"&&P==="inactive")&&!I);if(i.$$.dirty[0]&536870912)e:hi.set(bi);if(i.$$.dirty[4]&4)e:t(113,Ui=oe!==Ym.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,Be=le||g||!Ke&&(k&&!!Pi||Ui&&q));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:ui.set((Ui||n||w||$||Ke&&!Wt)&&!Be&&U==="video"&&!I);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,tn=x.features.thumbTimer&&kt&&U==="video"&&!o&&!I&&!Oi&&(x.hideThumbTimerAfterTouch&&!E||!x.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,qi=(Ne&&C||!Ne)&&k&&!I);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!w&&Li&&!S&&xt(x.controls.hideTimeoutMobile),t(116,Li=w);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,fn=Le&&b%180?f.height/f.width:1)},[Le,x,he,xe,_e,Te,Ne,Ge,we,W,ye,ue,Se,qe,et,ot,tt,ht,at,ge,lt,Dt,Lt,pe,Mt,rt,mt,ut,Pe,bi,o,f,b,I,U,$,Ii,jt,zi,Vi,tn,qi,fn,r,l,_,J,K,Q,M,Z,B,te,Ce,He,Re,We,Oe,Zt,Yi,an,si,ai,vi,Qt,ui,Qi,yi,wi,ci,ki,fi,Ci,Si,At,di,Kt,mi,Xt,ni,Ft,_t,Jt,pi,pn,Xi,$t,oi,Ti,Oi,Gt,Ct,Ji,ri,$i,un,Ei,nt,Yt,ti,Bi,Ht,Pn,In,vn,zt,be,Ue,Et,kt,Ae,Fe,Ke,Ui,Wt,Be,Li,n,g,w,S,k,C,E,q,le,oe,P,ne,En,qn,Mn,Nn,yn,hn]}var Xu=class extends j{constructor(e){super(),X(this,e,p5,m5,G,{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},d5,[-1,-1,-1,-1,-1,-1])}},Qm=Xu;function h5(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 H_(t){let e,i,n;function l(o){t[57](o)}let r={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&&(r.videoContainer=t[32]),e=new P_({props:r}),Te.push(()=>je(e,"videoContainer",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&1&&(a.store=o[0]),s[0]&2&&(a.title=o[1]),s[0]&4&&(a.thumbUrl=o[2]),s[0]&8&&(a.interactiveContainer=o[3]),s[0]&16&&(a.live=o[4]),s[0]&32&&(a.autoplay=o[5]),s[0]&64&&(a.canRewindLive=o[6]),s[0]&128&&(a.showAds=o[7]),s[0]&256&&(a.adsSlotId=o[8]),s[0]&512&&(a.adsParams=o[9]),s[0]&1024&&(a.adsPreviewParam=o[10]),s[0]&2048&&(a.duration=o[11]),s[0]&4096&&(a.logoClickable=o[12]),s[0]&8192&&(a.logoHidden=o[13]),s[0]&32768&&(a.showNextPrevButtons=o[15]),s[0]&65536&&(a.nextButtonActive=o[16]),s[0]&131072&&(a.prevButtonActive=o[17]),s[0]&262144&&(a.endScreenVideoTitle=o[18]),s[0]&524288&&(a.endScreenVideoThumb=o[19]),s[0]&1048576&&(a.isOneVideoPlaylist=o[20]),s[0]&2097152&&(a.supportLink=o[21]),s[0]&4194304&&(a.outerContainerRef=o[22]),s[0]&8388608&&(a.fullScreenTarget=o[23]),s[0]&16777216&&(a.showMiniTimer=o[24]),s[1]&4&&(a.playerStarted=o[33]),s[0]&33554432&&(a.playNextVideo=o[25]),s[0]&67108864&&(a.playPrevVideo=o[26]),s[0]&134217728&&(a.repeatPlaylist=o[27]),s[0]&268435456&&(a.seekToInteractive=o[28]),s[0]&536870912&&(a.toggleGraph=o[29]),s[0]&1073741824&&(a.playPrevChapter=o[30]),!i&&s[1]&2&&(i=!0,a.videoContainer=o[32],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function F_(t){let e,i,n;function l(o){t[56](o)}let r={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&&(r.videoContainer=t[32]),e=new D_({props:r}),Te.push(()=>je(e,"videoContainer",l)),{c(){K(e.$$.fragment)},m(o,s){j(e,o,s),n=!0},p(o,s){const a={};s[0]&1&&(a.store=o[0]),s[0]&4&&(a.thumbUrl=o[2]),s[0]&8&&(a.interactiveContainer=o[3]),s[0]&16&&(a.live=o[4]),s[0]&32&&(a.autoplay=o[5]),s[0]&64&&(a.canRewindLive=o[6]),s[0]&128&&(a.showAds=o[7]),s[0]&256&&(a.adsSlotId=o[8]),s[0]&512&&(a.adsParams=o[9]),s[0]&1024&&(a.adsPreviewParam=o[10]),s[0]&2048&&(a.duration=o[11]),s[0]&4096&&(a.logoClickable=o[12]),s[0]&8192&&(a.logoHidden=o[13]),s[0]&32768&&(a.showNextPrevButtons=o[15]),s[0]&65536&&(a.nextButtonActive=o[16]),s[0]&131072&&(a.prevButtonActive=o[17]),s[0]&262144&&(a.endScreenVideoTitle=o[18]),s[0]&524288&&(a.endScreenVideoThumb=o[19]),s[0]&1048576&&(a.isOneVideoPlaylist=o[20]),s[0]&2097152&&(a.supportLink=o[21]),s[0]&4194304&&(a.outerContainerRef=o[22]),s[0]&8388608&&(a.fullScreenTarget=o[23]),s[0]&16777216&&(a.showMiniTimer=o[24]),s[1]&4&&(a.playerStarted=o[33]),s[0]&33554432&&(a.playNextVideo=o[25]),s[0]&67108864&&(a.playPrevVideo=o[26]),s[0]&134217728&&(a.repeatPlaylist=o[27]),s[0]&268435456&&(a.seekToInteractive=o[28]),s[0]&536870912&&(a.toggleGraph=o[29]),s[0]&1073741824&&(a.playPrevChapter=o[30]),!i&&s[1]&2&&(i=!0,a.videoContainer=o[32],qe(()=>i=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){Z(e,o)}}}function U_(t){let e,i,n,l;const r=[F_,H_],o=[];function s(a,c){return a[14]?0:1}return i=s(t),n=o[i]=r[i](t),{c(){e=P("div"),n.c(),u(e,"class","root v-cghoty")},m(a,c){S(a,e,c),o[i].m(e,null),l=!0},p(a,c){let f=i;i=s(a),i===f?o[i].p(a,c):(fe(),v(o[f],1,1,()=>{o[f]=null}),de(),n=o[i],n?n.p(a,c):(n=o[i]=r[i](a),n.c()),m(n,1),n.m(e,null))},i(a){l||(m(n),l=!0)},o(a){v(n),l=!1},d(a){a&&T(e),o[i].d()}}}function q_(t,e,i){let{sources:n}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:o}=e,{uiConfig:s}=e,{title:a}=e,{thumbUrl:c}=e,{interactiveContainer:f}=e,{subtitles:d}=e,{live:h}=e,{preload:g}=e,{autoplay:_}=e,{volume:b=void 0}=e,{muted:C=void 0}=e,{fromTime:y}=e,{canRewindLive:w}=e,{showAds:k}=e,{adsSlotId:I=void 0}=e,{adsParams:$=void 0}=e,{adsPreviewParam:q=void 0}=e,{duration:D=void 0}=e,{logoClickable:te}=e,{logoHidden:re}=e,{isMobile:V}=e,{showNextPrevButtons:X=!1}=e,{nextButtonActive:J=!1}=e,{prevButtonActive:B=!1}=e,{endScreenVideoTitle:A=void 0}=e,{endScreenVideoThumb:R=void 0}=e,{isOneVideoPlaylist:ne=!1}=e,{supportLink:L}=e,{outerContainerRef:G=void 0}=e,{fullScreenTarget:we=void 0}=e,{failoverHosts:Pe=void 0}=e,{showMiniTimer:Ae=!1}=e,{playNextVideo:Be=ie.noop}=e,{playPrevVideo:Ue=ie.noop}=e,{repeatPlaylist:me=ie.noop}=e,{seekToInteractive:F=ie.noop}=e,{toggleGraph:ue=ie.noop}=e,{playPrevChapter:be=ie.noop}=e;const{subscribers:We,stores:Qe}=r;T0(s);const ce=gn(),Ee=s.logoLink,De=l.ui.debugPanelVisible,Ze=l.ui.playerSize;let pe,M=null,Se=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),B0(l,Qe);const se=(ae=!1)=>{i(33,Se=!0),ae?l.actions.external.firstStart(k):l.actions.internal.firstStart(k)};function Ce(ae){var Ne;const yt=n||ae;yt&&l.initVideo({container:pe,sources:yt,failoverHosts:Pe,subtitles:d});const Et=ie.safeStorage.get(lr)==="true";De.set(Et),y>0&&l.actions.external.seekTime(y);const ht=V?ce.volumeDefault:(Ne=b!=null?b:zu())!=null?Ne:ce.volumeDefault,Ge=C!=null?C:H0();if(l.actions.external.setVolume(ht),l.actions.external.setMuted(Ge),l.getAdmanWrapper().setInitialVolume(Ge?0:ht),ce.features.trafficSaving){const dt=U0();dt&&l.actions.internal.setTrafficSavingEnabled(dt)}const He=z0(l.videoId);He&&l.actions.internal.setQuality(He),l.ui.isAutoplay.set(_),_?se():g&&ce.features.preload&&l.actions.internal.preload()}const Ke=ae=>{if(window.ResizeObserver){let yt,Et;M=new ResizeObserver(ie.throttleFn(ht=>{const Ge=ht[0];if(Ge){if(Ge.contentBoxSize){const He=Array.isArray(Ge.contentBoxSize)?Ge.contentBoxSize[0]:Ge.contentBoxSize;yt=He.inlineSize,Et=He.blockSize}else Ge.contentRect&&(yt=Ge.contentRect.width,Et=Ge.contentRect.height);Ze.set({width:yt,height:Et})}},Pu)),M.observe(ae)}Ze.set({width:ae.clientWidth,height:ae.clientHeight})};fn(()=>{Ke(pe);const ae=We.map(Et=>Et.init({store:l,microStores:Qe,config:o}));if((h==null?void 0:h.status)==="upcoming"||(h==null?void 0:h.status)==="waiting"){l.actions.internal.setWaitingLive(!0);return}if(((h==null?void 0:h.status)==="finished"||(h==null?void 0:h.status)==="postlive")&&!Object.keys(n||[]).length){l.actions.internal.setWaitingRecord(!0);return}return Ce(),()=>{M==null||M.disconnect(),ae.forEach(Et=>Et.unsubscribe()),l.destroy()}});function ot(){Se?l.actions.external.play():se(!0)}function rt(){l.actions.external.pause()}function it(ae){V||l.actions.external.setMuted(ae)}function pt(ae){V||ae>=0&&ae<=1&&l.actions.external.setVolume(ae)}function st(ae){l.actions.internal.seekTime(ae,St.SeekAction.UNKNOWN)}function he(ae){l.actions.external.seekEpisodeStartTime(ae)}function at(){l.actions.external.returnFocusToEpisodes()}function It(ae){l.actions.external.setPlaybackRate(ae)}function kt(ae){l.actions.external.setAutoQualityLimits(ae)}function Ve(ae){pe=ae,i(32,pe)}function Vt(ae){pe=ae,i(32,pe)}return t.$$set=ae=>{"sources"in ae&&i(37,n=ae.sources),"store"in ae&&i(0,l=ae.store),"microStoresRoot"in ae&&i(38,r=ae.microStoresRoot),"videoConfig"in ae&&i(39,o=ae.videoConfig),"uiConfig"in ae&&i(40,s=ae.uiConfig),"title"in ae&&i(1,a=ae.title),"thumbUrl"in ae&&i(2,c=ae.thumbUrl),"interactiveContainer"in ae&&i(3,f=ae.interactiveContainer),"subtitles"in ae&&i(41,d=ae.subtitles),"live"in ae&&i(4,h=ae.live),"preload"in ae&&i(42,g=ae.preload),"autoplay"in ae&&i(5,_=ae.autoplay),"volume"in ae&&i(43,b=ae.volume),"muted"in ae&&i(44,C=ae.muted),"fromTime"in ae&&i(45,y=ae.fromTime),"canRewindLive"in ae&&i(6,w=ae.canRewindLive),"showAds"in ae&&i(7,k=ae.showAds),"adsSlotId"in ae&&i(8,I=ae.adsSlotId),"adsParams"in ae&&i(9,$=ae.adsParams),"adsPreviewParam"in ae&&i(10,q=ae.adsPreviewParam),"duration"in ae&&i(11,D=ae.duration),"logoClickable"in ae&&i(12,te=ae.logoClickable),"logoHidden"in ae&&i(13,re=ae.logoHidden),"isMobile"in ae&&i(14,V=ae.isMobile),"showNextPrevButtons"in ae&&i(15,X=ae.showNextPrevButtons),"nextButtonActive"in ae&&i(16,J=ae.nextButtonActive),"prevButtonActive"in ae&&i(17,B=ae.prevButtonActive),"endScreenVideoTitle"in ae&&i(18,A=ae.endScreenVideoTitle),"endScreenVideoThumb"in ae&&i(19,R=ae.endScreenVideoThumb),"isOneVideoPlaylist"in ae&&i(20,ne=ae.isOneVideoPlaylist),"supportLink"in ae&&i(21,L=ae.supportLink),"outerContainerRef"in ae&&i(22,G=ae.outerContainerRef),"fullScreenTarget"in ae&&i(23,we=ae.fullScreenTarget),"failoverHosts"in ae&&i(46,Pe=ae.failoverHosts),"showMiniTimer"in ae&&i(24,Ae=ae.showMiniTimer),"playNextVideo"in ae&&i(25,Be=ae.playNextVideo),"playPrevVideo"in ae&&i(26,Ue=ae.playPrevVideo),"repeatPlaylist"in ae&&i(27,me=ae.repeatPlaylist),"seekToInteractive"in ae&&i(28,F=ae.seekToInteractive),"toggleGraph"in ae&&i(29,ue=ae.toggleGraph),"playPrevChapter"in ae&&i(30,be=ae.playPrevChapter)},t.$$.update=()=>{t.$$.dirty[0]&16385&&l.ui.isMobile.set(V)},[l,a,c,f,h,_,w,k,I,$,q,D,te,re,V,X,J,B,A,R,ne,L,G,we,Ae,Be,Ue,me,F,ue,be,st,pe,Se,ce,Ee,se,n,r,o,s,d,g,b,C,y,Pe,Ce,ot,rt,it,pt,he,at,It,kt,Ve,Vt]}class j_ extends ye{constructor(e){super(),ke(this,e,q_,U_,_e,{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},z_,[-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 Z_(t){let e,i;return{c(){e=O("svg"),i=O("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,l){S(n,e,l),p(e,i)},p(n,[l]){l&1&&u(i,"fill",n[0])},i:W,o:W,d(n){n&&T(e)}}}function K_(t,e,i){let{isWhite:n=!1}=e,l;return t.$$set=r=>{"isWhite"in r&&i(1,n=r.isWhite)},t.$$.update=()=>{t.$$.dirty&2&&i(0,l=n?"#fff":"#909499")},[l,n]}class W_ extends ye{constructor(e){super(),ke(this,e,K_,Z_,_e,{isWhite:1})}}function G_(t){Ye(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 hu(t){let e,i;return{c(){e=P("div"),i=ze(t[0]),u(e,"class","title v-1y9fytq")},m(n,l){S(n,e,l),p(e,i)},p(n,l){l&1&&et(i,n[0])},d(n){n&&T(e)}}}function vu(t){let e,i;return e=new W_({props:{isWhite:!!t[1]}}),{c(){K(e.$$.fragment)},m(n,l){j(e,n,l),i=!0},p(n,l){const r={};l&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){i||(m(e.$$.fragment,n),i=!0)},o(n){v(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Y_(t){let e,i,n,l,r=t[0]&&hu(t),o=(!t[0]||!t[1])&&vu(t);return{c(){e=P("div"),r&&r.c(),i=H(),o&&o.c(),u(e,"class","playerStub v-1y9fytq"),u(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(s,a){S(s,e,a),r&&r.m(e,null),p(e,i),o&&o.m(e,null),l=!0},p(s,[a]){s[0]?r?r.p(s,a):(r=hu(s),r.c(),r.m(e,i)):r&&(r.d(1),r=null),!s[0]||!s[1]?o?(o.p(s,a),a&3&&m(o,1)):(o=vu(s),o.c(),m(o,1),o.m(e,null)):o&&(fe(),v(o,1,1,()=>{o=null}),de()),(!l||a&2&&n!==(n=s[1]?`background-image: url('${s[1]}')`:""))&&u(e,"style",n)},i(s){l||(m(o),l=!0)},o(s){v(o),l=!1},d(s){s&&T(e),r&&r.d(),o&&o.d()}}}function Q_(t,e,i){let{title:n}=e,{thumbUrl:l}=e;return t.$$set=r=>{"title"in r&&i(0,n=r.title),"thumbUrl"in r&&i(1,l=r.thumbUrl)},[n,l]}class X_ extends ye{constructor(e){super(),ke(this,e,Q_,Y_,_e,{title:0,thumbUrl:1},G_)}}class J_{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(l){throw new Error(`The media session action "${i}" is not supported yet.`)}}}function x_(t){let e,i,n,l;return{c(){e=O("svg"),i=O("g"),n=O("path"),l=O("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(l,"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(r,o){S(r,e,o),p(e,i),p(i,n),p(i,l)},p:W,i:W,o:W,d(r){r&&T(e)}}}class $_ extends ye{constructor(e){super(),ke(this,e,null,x_,_e,{})}}function e6(t){Ye(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 t6(t){let e,i,n,l,r,o,s;return n=new $_({}),{c(){e=P("div"),i=P("div"),K(n.$$.fragment),l=H(),r=P("span"),o=ze(t[0]),u(i,"class","dummy-image v-1pbsod4"),N(i,"desktop",!t[1]),u(r,"class","title v-1pbsod4"),u(e,"class","player-pip-dummy v-1pbsod4"),N(e,"is-pip-api",t[2])},m(a,c){S(a,e,c),p(e,i),j(n,i,null),p(e,l),p(e,r),p(r,o),s=!0},p(a,[c]){(!s||c&2)&&N(i,"desktop",!a[1]),(!s||c&1)&&et(o,a[0])},i(a){s||(m(n.$$.fragment,a),s=!0)},o(a){v(n.$$.fragment,a),s=!1},d(a){a&&T(e),Z(n)}}}function i6(t,e,i){let n,l;const r=Pt(),o=!!r.webApi.pictureInPictureApi,s=r.interfaceLanguage$;z(t,s,f=>i(5,n=f));const a=r.ui.isMobile;z(t,a,f=>i(1,l=f));let c;return t.$$.update=()=>{t.$$.dirty&32&&i(0,c=n&&Q("pip_dummy_title"))},[c,l,o,s,a,n]}class n6 extends ye{constructor(e){super(),ke(this,e,i6,t6,_e,{},e6)}}const o6=460,l6=280;class If{constructor(){this.info={isActive$:new ie.ValueSubject(!1),type:Dn.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(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:o6,height:l6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";const n=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(a=>a.cssText).join(" ")).filter(Boolean).join(`
|
|
51
|
-
`),l=document.createElement("style");l.textContent=n;const r=this.createStretchedContainer(),o=r.attachShadow({mode:"open"});o.append(l),o.append(this.playerDomElement),this.playerDummyElement=new n6({target:this.playerParentShadowRoot,context:this.svelteContext}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)===null||i===void 0||i.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=>{var i;(i=documentPictureInPicture.window)===null||i===void 0||i.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}}function r6(t){return t instanceof If}class s6{static getLatestSupportedVersion(){const e=new wr,i=new If;if(i.isSupported())return i;if(e.isSupported())return e}}function gu(t,e){var i,n;const l=new Set([...Object.keys(t),...Object.keys(e)]),r={};for(const o of l)r[o]=(n=(i=e[o])!==null&&i!==void 0?i:t[o])!==null&&n!==void 0?n:void 0;return r}const a6="Inner error. Unexpectedly root annotation container null reference exception",u6="Annotation with such name already exists",c6="Annotation with such name does not exist";class er extends Error{constructor(e){super(e),this.name="AnnotationError"}}const f6="1",d6=100;class m6{constructor(e){this.annotations=new Map,this.subscriptions=new ie.Subscription,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"},d6);this.subscriptions.add(ie.observeElementSize(this.rootAnnotationsContainer).subscribe(({width:n,height:l})=>{this.playerSize={width:n,height:l},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var n;if(!this.rootAnnotationsContainer)throw new er(a6);if(this.annotations.has(e))throw new er(u6);i.style.zIndex=(n=i.style.zIndex)!==null&&n!==void 0?n:f6,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 er(c6);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 l=e.offsetTop,r=e.offsetLeft,o=e.offsetWidth,s=e.offsetHeight;return l<0||r<0||r+o>i||l+s>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}}class Pl{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 p6 extends Pl{constructor(){super(...arguments),this.stateName="fakeIsPlaying$",this.state$={...Le(null),toggle:()=>this.state$.update(e=>!e)}}init(e){const i=super.init(e),{isInteractiveExpectation$:n}=e.store.state;return i.add(n.subscribe(l=>{this.state$.set(l?!0:null)})),i}}class h6 extends Pl{constructor(){super(...arguments),this.stateName="interactiveControlsOpacity$",this.state$={...Le(null),toggle:()=>this.state$.update(e=>!e)}}init(e){const i=super.init(e),{microStores:n,store:l}=e,{fakeIsPlaying$:r}=n,{isInteractiveExpectation$:o,isPlaying$:s}=l.state,{controlsVisible:a,isMobile:c}=l.ui,f=$e(c),d=()=>f&&$e(a);return i.add(a.subscribe(h=>{if(!f)return;const g=$e(r);$e(s)?this.state$.set(h):g!==null&&this.state$.set(!g||h)})),i.add(s.subscribe(h=>{this.state$.set(!h||d())})),i.add(r.subscribe(h=>{if(h===null)return;const g=$e(o);if(d()){this.state$.set(!0);return}g&&this.state$.set(!h)})),i}}class v6 extends Pl{constructor(){super(...arguments),this.stateName="seekToInteractiveDisabledTooltip$",this.state$=Le("tooltip_chapter_without_interactive")}init(e){const i=super.init(e),{store:n}=e;return i.add(n.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"))})),i}}const tr=Le(!1);let dl=null;class g6 extends Pl{constructor(){super(...arguments),this.stateName="showInteractiveTimeIndicatorTooltip$",this.state$={...tr,set:(e,i=!1)=>{e!==$e(tr)&&(this.clearTimeout(),tr.set(e),!e&&dl&&(dl=!1),e&&i&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(e){const i=super.init(e),{store:n,config:l}=e,{isInteractiveTime$:r,isPlaying$:o}=n.state,s=n.ui.controlsVisible;i.add(s.subscribe(f=>{$e(r)&&f&&this.state$.set(!1)}));const a=(l==null?void 0:l.interactiveData)||{tooltipHelpHintActive:!1},c=wi([o,r],([f,d])=>f&&d);return i.add(c.subscribe(f=>{var d,h;const g=$e(o),_=$e(r);if(g){if(!_)return this.state$.set(!1);a.tooltipHelpHintActive&&dl===null&&(dl=!0,a.tooltipHelpHintActive=!1,this.state$.set(!0),(h=(d=n.callbacks)===null||d===void 0?void 0:d.onInteractiveTimeIndicatorHintDeactivated)===null||h===void 0||h.call(d))}})),i}clearTimeout(){window.clearTimeout(this.timeout)}}const b6=()=>[p6,h6,v6,g6].reduce(({subscribers:t,stores:e},i)=>{const n=new i;return{subscribers:[...t,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}}),_6={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 w6 extends HTMLElement{constructor(){var e;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 ie.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ie.Subscription,this.graphMadePause=!1,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){var e,i;if(this.isInited)return;this.initPlayerRootContainers();const n=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,l=(i=this.getAttribute("stub-thumb-url"))!==null&&i!==void 0?i:void 0;this.svelteStubComponent=new X_({target:this.playerContainer,props:{title:n,thumbUrl:l}})}disconnectedCallback(){var e,i,n,l,r;(e=this.annotationsApi)===null||e===void 0||e.destroy(),(i=this.svelteRootComponent)===null||i===void 0||i.$destroy(),(n=this.svelteStubComponent)===null||n===void 0||n.$destroy(),this.subscription.unsubscribe(),(l=this.unsubscribePlayerPhaseSubscription)===null||l===void 0||l.call(this),(r=this.interactiveController)===null||r===void 0||r.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){var i;const n=(i=this.store)===null||i===void 0?void 0:i.ui.controls.disabledControls$;return(n==null?void 0:n.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){var l,r,o,s,a,c,f,d,h,g,_,b,C;if(!this.videoConfig)return;const{albumId:y,statPlace:w,statUserSalt:k,statAuthToken:I,statTrackCode:$,refreshStatAuthToken:q,preload:D,autoplay:te,volume:re,muted:V,fromTime:X,canRewindLive:J,supportLink:B,showAds:A,adsSlotId:R,adsParams:ne={},adsPreviewParam:L,interfaceLanguage:G,logoClickable:we,logoHidden:Pe,isMobile:Ae,isAudioDisabled:Be,isLiveCatchUpMode:Ue,fullScreenTarget:me,failoverHosts:F,canDownload:ue,callbacks:be,interactiveData:We,showThumbTimer:Qe,additionalButtons:ce=[],repeat:Ee}=gu(this.videoConfig,i),{sources:De,title:Ze,thumbUrl:pe,unitedVideoId:M,isClip:Se=!1,duration:se,adsParams:Ce={},videoEpisodes:Ke,previewThumbsData:ot,subtitles:rt,live:it}=e,pt={...ne,...Ce},st=this.getNextVideoInfo(),he={sources:De,title:Ze,thumbUrl:pe,subtitles:rt,unitedVideoId:M,isClip:Se,live:it,albumId:y,statPlace:w,autoplay:te,muted:V,volume:re,fromTime:X,canRewindLive:J,showAds:A,adsSlotId:R,adsParams:pt,adsPreviewParam:L,duration:se,logoClickable:we,logoHidden:Pe,isMobile:Ae,repeat:Ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:st.nextVideoTitle,endScreenVideoThumb:st.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},at={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(he)}`});const It=this.uiConfig.features.statistics&&!!M,{pid:kt}=((r=(l=this.videoConfig)===null||l===void 0?void 0:l.interactiveData)===null||r===void 0?void 0:r.projectInfo)||{};It&&(this.statistics=new ig({movieId:M,albumId:y,place:w,trackCode:$,autoplay:(o=te&&!this.interactiveController)!==null&&o!==void 0?o:!1,mobile:Ae,clip:Se,refDomain:this.videoConfig.refDomain,...kt&&!this.isInited&&{projectId:Number(kt)}},{refreshAuthToken:q,userSalt:k,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ur(this.uiConfig.sentry,{version:wl,env:M0},{movieId:M,albumId:y,place:w,autoplay:(s=te&&!this.interactiveController)!==null&&s!==void 0?s:!1,mobile:Ae,clip:Se}),this.interactiveController&&((a=this.prevIsid)!==null&&a!==void 0||(this.prevIsid=(c=this.statistics)===null||c===void 0?void 0:c.oneStat.isid$.getValue())),this.sentry={...this.sentry,...ur.getInstance()};const Vt=!!We,ae=[];let yt="tooltip_interactive_go_back_disabled_first";if(Vt&&this.interactiveController){const Ge=this.interactiveController.state.isInitialChapter$.getValue(),He=this.interactiveController.getHistoryState();Ge&&ae.push(vt.REPLAY_BUTTON),this.interactiveController.getIsSeekable().getValue()||ae.push(vt.SEEK_TO_INTERACTIVE_BUTTON),He.hasPrevChapter$.getValue()||(ae.push(vt.PLAY_PREV_CHAPTER_BUTTON),Ge||(He.isGoBackLimited$.getValue()?yt="tooltip_interactive_go_back_disabled_limit":yt="tooltip_interactive_go_back_disabled"))}const Et=()=>{var Ge;this.isInited=!1,this.prevIsid=void 0;const He=(n==null?void 0:n.info.isEnded$.getValue())&&((Ge=this.interactiveController)===null||Ge===void 0?void 0:Ge.state.isEndChapter$.getValue());be.onReplayInteractiveVideo&&!He?be.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=ng({player:n,interfaceLanguage:G,videoId:M,isClip:Se,isLiveCatchUpMode:Ue,isAudioDisabled:Be,statAuthToken:I,callbacks:be,webApi:at,videoEpisodes:Ke,previewThumbsData:ot,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ae,isInteractive:Vt,interactiveRanges$:(f=this.interactiveController)===null||f===void 0?void 0:f.state.interactiveRanges$,isInteractiveTime$:(d=this.interactiveController)===null||d===void 0?void 0:d.state.isInteractiveTime$,replayInteractive:Et,playPrevChapterDisabledTooltip:yt,hasInteractiveBranches:!!(!((g=(h=this.interactiveController)===null||h===void 0?void 0:h.getChapterBranches())===null||g===void 0)&&g.length),additionalButtons:this.uiConfig.features.additionalButtons?ce:[],looped:Ee&&this.videoConfig.videos.length===1,statistics:this.statistics});const{stores:ht}=this.microStoresRoot=b6();this.subscription.add(this.store.state.currentFormat$.subscribe(Ge=>{var He;return(He=be==null?void 0:be.onCurrentFormatChanged)===null||He===void 0?void 0:He.call(be,Ge)})),this.subscription.add(ht.interactiveControlsOpacity$.subscribe(Ge=>{var He;Ge!==null&&((He=this===null||this===void 0?void 0:this.interactiveController)===null||He===void 0||He.setDisabledControls(Ge))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ge=>{var He;return(He=be==null?void 0:be.onThroughputEstimationChanged)===null||He===void 0?void 0:He.call(be,Ge)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ge=>{var He;return(He=be==null?void 0:be.onTrafficSavingEnabledChanged)===null||He===void 0?void 0:He.call(be,Ge)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ge=>{var He;return(He=be==null?void 0:be.onCurrentPlaybackRateChanged)===null||He===void 0?void 0:He.call(be,Ge)})),this.subscription.add(this.store.state.volume$.subscribe(Ge=>{var He;return(He=be==null?void 0:be.onVolumeChange)===null||He===void 0?void 0:He.call(be,Ge)})),this.subscription.add(this.store.state.muted$.subscribe(Ge=>{var He,Ne;return Ge?(He=be==null?void 0:be.onMute)===null||He===void 0?void 0:He.call(be):(Ne=be==null?void 0:be.onUnmute)===null||Ne===void 0?void 0:Ne.call(be)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ge=>{var He;return(He=be==null?void 0:be.onVideoBitrateChanged)===null||He===void 0?void 0:He.call(be,Ge)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ge=>{var He;const Ne=(He=this.store)===null||He===void 0?void 0:He.ui.controls.disabledControls$;Ne&&(Ge&&!Ne.includes(pl)&&Ne.add(pl),Ge||Ne.remove(pl))})),this.initMediaSession(),this.interactiveController&&It&&this.initInteractivesStatistics(),this.svelteRootComponent=new j_({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:De,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ze,thumbUrl:pe,subtitles:rt,live:it,preload:D,autoplay:te,muted:V,volume:re,fromTime:X,canRewindLive:J,supportLink:B,showAds:A,adsSlotId:R,adsParams:pt,adsPreviewParam:L,duration:se,logoClickable:we,logoHidden:Pe,isMobile:Ae,failoverHosts:F,fullScreenTarget:me,showMiniTimer:Qe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:st.nextVideoTitle,endScreenVideoThumb:st.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,(C=(b=(_=this.videoConfig)===null||_===void 0?void 0:_.callbacks)===null||b===void 0?void 0:b.onInited)===null||C===void 0||C.call(b))}addPlayerInfoSubscriptions(){var e;const i=this.store;if(!i)return;const n=(e=this.videoConfig)===null||e===void 0?void 0:e.callbacks;n&&this.subscription.add(i.playerPhase.subscribe(r=>{var o;return(o=n.onPlayerPhaseChanged)===null||o===void 0?void 0:o.call(n,r)})).add(i.state.playbackState$.subscribe(r=>{var o;return(o=n.onPlaybackStateChanged)===null||o===void 0?void 0:o.call(n,r)})).add(i.state.isLive$.subscribe(r=>{var o;return(o=n.onIsLiveChanged)===null||o===void 0?void 0:o.call(n,r)})).add(i.state.isActiveLive$.subscribe(r=>{var o;return(o=n.onIsActiveLiveChanged)===null||o===void 0?void 0:o.call(n,r)})).add(i.state.isAudioAvailable$.subscribe(r=>{var o;return(o=n.onIsAudioAvailableChanged)===null||o===void 0?void 0:o.call(n,r)})).add(i.state.currentQuality$.subscribe(r=>{var o;return(o=n.onCurrentQualityChanged)===null||o===void 0?void 0:o.call(n,r)})).add(i.state.availableQualities$.subscribe(r=>{var o;return(o=n.onAvailableQualitiesChanged)===null||o===void 0?void 0:o.call(n,r.map(({value:s})=>s).filter(s=>s!==Ao.AUTO))})).add(i.ui.isPictureInPictureActive$.subscribe(r=>{var o,s;return r?(o=n.onPiPEnter)===null||o===void 0?void 0:o.call(n):(s=n.onPiPExit)===null||s===void 0?void 0:s.call(n)}));const l=n==null?void 0:n.uiInfo;l&&this.subscription.add(i.ui.controlsVisible.subscribe(r=>{var o;return(o=l.onControlsVisibleChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.isMobile.subscribe(r=>{var o;return(o=l.onIsMobileChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.playerSize.subscribe(r=>{var o;return(o=l.onPlayerSizeChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.prevButton.subscribe(r=>{var o;return(o=l.onPrevButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.playButton.subscribe(r=>{var o;return(o=l.onPlayButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.replayButton.subscribe(r=>{var o;return(o=l.onReplayButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.nextButton.subscribe(r=>{var o;return(o=l.onNextButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.playPrevChapterButton.subscribe(r=>{var o;return(o=l.onPlayPrevChapterChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.seekToInteractiveButton.subscribe(r=>{var o;return(o=l.onSeekToInteractiveButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.interactiveGraphButton.subscribe(r=>{var o;return(o=l.onGraphButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.liveButton.subscribe(r=>{var o;return(o=l.onLiveButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.time.subscribe(r=>{var o;return(o=l.onTimeUpdateChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.episodes.subscribe(r=>{var o;return(o=l.onEpisodesChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.subtitles.subscribe(r=>{var o;return(o=l.onSubtitlesChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.settings.subscribe(r=>{var o;return(o=l.onSettingsChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.fullscreen.subscribe(r=>{var o;return(o=l.onFullscreenChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.chromecast.subscribe(r=>{var o;return(o=l.onChromecastChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.pip.subscribe(r=>{var o;return(o=l.onPipChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.vkLogo.subscribe(r=>{var o;return(o=l.onVkLogoChanged)===null||o===void 0?void 0:o.call(l,r)})).add(i.ui.controls.interactiveTimeIndicator.subscribe(r=>{var o;return(o=l.onInteractiveTimeIndicatorChanged)===null||o===void 0?void 0:o.call(l,r)}))}playNextVideo(){var e;if(!this.videoConfig)return;let i=!0;if(!((e=this.videoConfig.callbacks)===null||e===void 0)&&e.onNextVideoClick)try{i=this.videoConfig.callbacks.onNextVideoClick()}catch(n){this.log({message:"onNextVideoClick callback failed to execute"})}i&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var e;if(!this.videoConfig)return;let i=!0;if(!((e=this.videoConfig.callbacks)===null||e===void 0)&&e.onPrevVideoClick)try{i=this.videoConfig.callbacks.onPrevVideoClick()}catch(n){this.log({message:"onPrevVideoClick callback failed to execute"})}i&&(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){var n;if(!this.videoConfig)return;const l=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!l){this.log({message:"no next video"});return}this.isInited&&ie.isNonNullable(l.unitedVideoId)&&this.store.actions.internal.nextMovie(l.unitedVideoId),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(l,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)===null||e===void 0||e.playPrevChapter()}seekToInteractive(){var e;const i=(e=this.interactiveController)===null||e===void 0?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}toggleGraph(){var e,i;if(!this.isInited)return;const n=this.store,{isEnded$:l,playbackState$:r,graphIsOpened$:o}=n.state,{disabledControls$:s}=n.ui.controls,a=$e(l),c=$e(r);$e(o)?(o.set(!1),(e=this.interactiveController)===null||e===void 0||e.toggleGraphView(!1),s.remove(Ur),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=c==="playing",o.set(!0),(i=this.interactiveController)===null||i===void 0||i.toggleGraphView(!0),s.add(Ur),!a&&this.graphMadePause&&this.pause())}async initInteractives(){var e,i,n,l;if(!((e=this.videoConfig)===null||e===void 0)&&e.interactiveData)try{const{Interactives:r,EVENT_NAMES:o,CustomError:s}=await import("@vkontakte/videoplayer-interactive/es2018.cjs.js");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");const a=(i=this.store)===null||i===void 0?void 0:i.interfaceLanguage$,c=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:d,historyApi:h,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new r({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:d,historyApi:h,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});const{isInteractiveExpectation$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(C=>{if(!this.isInited)return;const y=this.store;C?y.ui.controls.disabledControls$.remove(vt.SEEK_TO_INTERACTIVE_BUTTON):y.ui.controls.disabledControls$.add(vt.SEEK_TO_INTERACTIVE_BUTTON)})),this.subscription.add(_.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let b=!0;if(this.interactiveController.on(o.playerChanged,C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...C.config,title:(f==null?void 0:f.title)||C.config.title};const y=b?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,y),b&&(b=!1)}),this.interactiveController.on(o.interactives,({type:C,actionType:y})=>{var w,k,I,$;if(!this.store)return;const q=_.getValue();if(C==="action-choice"&&y==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Au)),C==="action-choice-canceled"){const D=$e(this.store.state.isPlaying$)||q;if(!((w=this.videoConfig)===null||w===void 0)&&w.isMobile&&D){this.store.ui.interactiveHideMobileControls.set(!0);return}($=(k=this.videoConfig)===null||k===void 0?void 0:(I=k.callbacks).onDisabledInteractiveClick)===null||$===void 0||$.call(I)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),!((l=(n=this.videoConfig)===null||n===void 0?void 0:n.callbacks)===null||l===void 0)&&l.onInteractiveHistoryChanged){const C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(y=>{var w,k,I;y.length&&((I=(k=(w=this.videoConfig)===null||w===void 0?void 0:w.callbacks)===null||k===void 0?void 0:k.onInteractiveHistoryChanged)===null||I===void 0||I.call(k,y))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,y,w,k;(C=this.microStoresRoot)===null||C===void 0||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(y=this.videoConfig)===null||y===void 0?void 0:(w=y.callbacks).onInteractiveTimeIndicatorClick)===null||k===void 0||k.call(w)})),this.interactiveController.on(o.errors,C=>{this.log({message:C.toString()})})}catch(r){this.log({message:r.message})}}async initInteractivesStatistics(){var e,i;const{statSubscription:n,oneStat:l}=this.statistics;if(!(!n||!l||!this.interactiveController))try{const{INTERACTIVE_CLICK_ACTIONS:r}=await import("@vkontakte/videoplayer-interactive/es2018.cjs.js"),o={[r.GO_NEXT_BUTTON]:St.InteractiveInterfaceClick.NEXT_BUTTON,[r.GO_NEXT_AREA]:St.InteractiveInterfaceClick.NEXT_AREA,[r.WATCH_AGAIN]:St.InteractiveInterfaceClick.WATCH_AGAIN,[r.OPEN_GRAPH]:St.InteractiveInterfaceClick.GRAPH_SHOW,[r.CLOSE_GRAPH]:St.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:a}=this.interactiveController.getStatEvents(),c=new ie.Subject;s.subscribe(f=>{var d,h;f in o?c.next(o[f]):(l==null||l.logError({errorType:"InteractiveVideosAction",fatal:!1}),(h=(d=this.sentry).report)===null||h===void 0||h.call(d,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),n.add(l.attachToInteractive({click$:c,nextMovie$:a}))}catch(r){l==null||l.logError({errorType:"InteractiveVideos",fatal:!1}),(i=(e=this.sentry).report)===null||i===void 0||i.call(e,r,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(e,i={}){var n,l,r,o,s,a,c,f,d,h,g,_,b,C,y,w,k,I,$;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");this.videoConfig=gu(_6,ie.cloneDeepWith(e,q=>q instanceof HTMLElement?q:void 0)),this.uiConfig=C0((n=i.ui)!==null&&n!==void 0?n:{}),this.coreConfig=(l=i.core)!==null&&l!==void 0?l:{configName:[]},this.statisticsConfig=(r=i.statistics)!==null&&r!==void 0?r:{},this.sentry={config:(o=this.uiConfig.sentry)!==null&&o!==void 0?o:{}},ie.isNonNullable(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!==null&&s!==void 0?s:!0),ie.isNonNullable(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(a=this.uiConfig.features.pip)!==null&&a!==void 0?a:this.videoConfig.isPictureInPictureEnabled)!==null&&c!==void 0?c:!0,this.uiConfig.features.dpip=(d=(f=this.uiConfig.features.dpip)!==null&&f!==void 0?f:this.videoConfig.isPictureInPictureEnabled)!==null&&d!==void 0?d:!0),this.videoConfig.isMobile=(h=this.uiConfig.isMobile)!==null&&h!==void 0?h:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(g=this.uiConfig.ads.enable)!==null&&g!==void 0?g:this.videoConfig.showAds,this.videoConfig.adsSlotId=(_=this.uiConfig.ads.slot)!==null&&_!==void 0?_:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(b=this.uiConfig.ads.preview)!==null&&b!==void 0?b:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((C=this.uiConfig.showLogo)!==null&&C!==void 0?C:!this.videoConfig.logoHidden),($=this.videoConfig).canRewindLive&&($.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(y=this.videoConfig.supportLink)!==null&&y!==void 0?y:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=s6.getLatestSupportedVersion():this.pictureInPictureApi=new wr),this.mediaSessionApi=this.uiConfig.features.mediaSession?new J_:void 0,this.annotationsApi=this.uiConfig.features.annotations?new m6(this.rootContainer):void 0,(w=this.svelteStubComponent)===null||w===void 0||w.$destroy(),(k=this.svelteRootComponent)===null||k===void 0||k.$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]),r6(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(e){var i;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 n=this.getNextVideoInfo();(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(i=this.store)===null||i===void 0?void 0:i.playerPhase.subscribe(n=>{n===Oe.Video?this.setupMediaSessionForVideo():n===Oe.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.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(){var e,i;this.isControlDisabled(vt.PLAY_BUTTON)||!((e=this.store)===null||e===void 0)&&e.playerPhase.is(Oe.WaitingLive)||(this.log({message:"play"}),(i=this.svelteRootComponent)===null||i===void 0||i.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,i;if(!this.videoConfig)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.videoConfig.videos[0];n&&((i=this.svelteRootComponent)===null||i===void 0||i.$destroy(),this.createPlayer(n))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setMuted(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setVolume(e)}setRepeat(e){var i;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(i=this.svelteRootComponent)===null||i===void 0||i.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var i;this.isControlDisabled(vt.TIMELINE)||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)===null||e===void 0||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,n,l;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!==null&&i!==void 0?i:"none"}. Min: ${(n=e.min)!==null&&n!==void 0?n:"none"}`}),(l=this.svelteRootComponent)===null||l===void 0||l.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)===null||i===void 0||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)===null||i===void 0?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,n;this.log({message:"live started"}),(i=this.store)===null||i===void 0||i.actions.internal.setWaitingLive(!1),(n=this.svelteRootComponent)===null||n===void 0||n.initVideo(e),this.play()}setWaitRecord(){var e,i;this.log({message:"post live"}),(e=this.store)===null||e===void 0||e.actions.internal.setWaitingRecord(!0),(i=this.store)===null||i===void 0||i.destroy()}setLiveEnd(e){var i,n;this.log({message:"live ended"}),(i=this.store)===null||i===void 0||i.actions.internal.setWaitingRecord(!1),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(e,{autoplay:!1})}getDeviceId(){var e,i;return(i=(e=this.statistics)===null||e===void 0?void 0:e.oneStat.getDeviceId())!==null&&i!==void 0?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}showInteractiveIndicatorTooltip(e,i=!1){var n;(n=this.microStoresRoot)===null||n===void 0||n.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}}const k6=()=>{window.customElements.define("vk-video-player",w6)};Object.defineProperty(exports,"VideoFormat",{enumerable:!0,get:function(){return tt.VideoFormat}});Object.defineProperty(exports,"VideoQuality",{enumerable:!0,get:function(){return tt.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=wl;exports.registerPlayerWebComponent=k6;
|
|
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 _5(i){let e,t,n;function o(r){i[58](r)}let s={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&&(s.videoContainer=i[32]),e=new Vm({props:s}),me.push(()=>Ve(e,"videoContainer",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&1&&(a.store=r[0]),l[0]&2&&(a.title=r[1]),l[0]&4&&(a.thumbUrl=r[2]),l[0]&8&&(a.interactiveContainer=r[3]),l[0]&16&&(a.live=r[4]),l[0]&32&&(a.autoplay=r[5]),l[0]&64&&(a.canRewindLive=r[6]),l[0]&128&&(a.showAds=r[7]),l[0]&256&&(a.adsSlotId=r[8]),l[0]&512&&(a.adsParams=r[9]),l[0]&1024&&(a.adsPreviewParam=r[10]),l[0]&2048&&(a.duration=r[11]),l[0]&4096&&(a.logoClickable=r[12]),l[0]&8192&&(a.logoHidden=r[13]),l[0]&32768&&(a.showNextPrevButtons=r[15]),l[0]&65536&&(a.nextButtonActive=r[16]),l[0]&131072&&(a.prevButtonActive=r[17]),l[0]&262144&&(a.endScreenVideoTitle=r[18]),l[0]&524288&&(a.endScreenVideoThumb=r[19]),l[0]&1048576&&(a.isOneVideoPlaylist=r[20]),l[0]&2097152&&(a.supportLink=r[21]),l[0]&4194304&&(a.outerContainerRef=r[22]),l[0]&8388608&&(a.fullScreenTarget=r[23]),l[0]&16777216&&(a.showMiniTimer=r[24]),l[1]&4&&(a.playerStarted=r[33]),l[0]&33554432&&(a.playNextVideo=r[25]),l[0]&67108864&&(a.playPrevVideo=r[26]),l[0]&134217728&&(a.repeatPlaylist=r[27]),l[0]&268435456&&(a.seekToInteractive=r[28]),l[0]&536870912&&(a.toggleGraph=r[29]),l[0]&1073741824&&(a.playPrevChapter=r[30]),!t&&l[1]&2&&(t=!0,a.videoContainer=r[32],Me(()=>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 b5(i){let e,t,n;function o(r){i[57](r)}let s={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&&(s.videoContainer=i[32]),e=new Qm({props:s}),me.push(()=>Ve(e,"videoContainer",o)),{c(){H(e.$$.fragment)},m(r,l){O(e,r,l),n=!0},p(r,l){let a={};l[0]&1&&(a.store=r[0]),l[0]&4&&(a.thumbUrl=r[2]),l[0]&8&&(a.interactiveContainer=r[3]),l[0]&16&&(a.live=r[4]),l[0]&32&&(a.autoplay=r[5]),l[0]&64&&(a.canRewindLive=r[6]),l[0]&128&&(a.showAds=r[7]),l[0]&256&&(a.adsSlotId=r[8]),l[0]&512&&(a.adsParams=r[9]),l[0]&1024&&(a.adsPreviewParam=r[10]),l[0]&2048&&(a.duration=r[11]),l[0]&4096&&(a.logoClickable=r[12]),l[0]&8192&&(a.logoHidden=r[13]),l[0]&32768&&(a.showNextPrevButtons=r[15]),l[0]&65536&&(a.nextButtonActive=r[16]),l[0]&131072&&(a.prevButtonActive=r[17]),l[0]&262144&&(a.endScreenVideoTitle=r[18]),l[0]&524288&&(a.endScreenVideoThumb=r[19]),l[0]&1048576&&(a.isOneVideoPlaylist=r[20]),l[0]&2097152&&(a.supportLink=r[21]),l[0]&4194304&&(a.outerContainerRef=r[22]),l[0]&8388608&&(a.fullScreenTarget=r[23]),l[0]&16777216&&(a.showMiniTimer=r[24]),l[1]&4&&(a.playerStarted=r[33]),l[0]&33554432&&(a.playNextVideo=r[25]),l[0]&67108864&&(a.playPrevVideo=r[26]),l[0]&134217728&&(a.repeatPlaylist=r[27]),l[0]&268435456&&(a.seekToInteractive=r[28]),l[0]&536870912&&(a.toggleGraph=r[29]),l[0]&1073741824&&(a.playPrevChapter=r[30]),!t&&l[1]&2&&(t=!0,a.videoContainer=r[32],Me(()=>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 g5(i){let e,t,n,o,s=[b5,_5],r=[];function l(a,c){return a[14]?0:1}return t=l(i,[-1,-1,-1]),n=r[t]=s[t](i),{c(){e=T("div"),n.c(),u(e,"class","root svelte-cghoty")},m(a,c){y(a,e,c),r[t].m(e,null),o=!0},p(a,c){let f=t;t=l(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]=s[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&&v(e),r[t].d()}}}function v5(i,e,t){let{sources:n}=e,{store:o}=e,{microStoresRoot:s}=e,{videoConfig:r}=e,{uiConfig:l}=e,{title:a}=e,{thumbUrl:c}=e,{interactiveContainer:f}=e,{subtitles:p}=e,{live:_}=e,{preload:g}=e,{autoplay:b}=e,{volume:w=void 0}=e,{muted:S=void 0}=e,{fromTime:I}=e,{canRewindLive:k}=e,{showAds:C}=e,{adsSlotId:E=void 0}=e,{adsParams:U=void 0}=e,{adsPreviewParam:$=void 0}=e,{duration:q=void 0}=e,{logoClickable:le}=e,{logoHidden:oe}=e,{isMobile:P}=e,{showNextPrevButtons:ne=!1}=e,{nextButtonActive:J=!1}=e,{prevButtonActive:K=!1}=e,{endScreenVideoTitle:Q=void 0}=e,{endScreenVideoThumb:M=void 0}=e,{isOneVideoPlaylist:Z=!1}=e,{supportLink:B}=e,{outerContainerRef:te=void 0}=e,{fullScreenTarget:Ce=void 0}=e,{failoverHosts:He=void 0}=e,{showMiniTimer:Re=!1}=e,{playNextVideo:We=Un.noop}=e,{playPrevVideo:Oe=Un.noop}=e,{repeatPlaylist:be=Un.noop}=e,{seekToInteractive:x=Un.noop}=e,{toggleGraph:he=Un.noop}=e,{playPrevChapter:Le=Un.noop}=e,{volumeMultiplier:Ue}=e,{subscribers:xe,stores:_e}=s;Lc(l);let Te=Rt(),Ne=l.logoLink,Ge=o.ui.debugPanelVisible,we=o.ui.playerSize,W,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}),qc(o,_e);let Se=(pe=!1)=>{t(33,ue=!0),pe?o.actions.external.firstStart(C):o.actions.internal.firstStart(C)};function qe(pe){var Fe;let Mt=n||pe;Mt&&o.initVideo({container:W,sources:Mt,failoverHosts:He,subtitles:p,volumeMultiplier:Ue});let rt=Un.safeStorage.get(vr)==="true";Ge.set(rt),I>0&&o.actions.external.seekTime(I);let mt=P?Te.volumeDefault:(Fe=w!=null?w:Qr())!=null?Fe:Te.volumeDefault,ut=S!=null?S:ef();if(o.actions.external.setVolume(mt),o.actions.external.setMuted(ut),o.getAdmanWrapper().setInitialVolume(ut?0:mt),Te.features.trafficSaving){let gt=nf();gt&&o.actions.internal.setTrafficSavingEnabled(gt)}let Pe=Xc(o.videoId);Pe&&o.actions.internal.setQuality(Pe),o.ui.isAutoplay.set(b),b?Se():g&&Te.features.preload&&o.actions.internal.preload()}let et=pe=>{if(window.ResizeObserver){let Mt,rt;ye=new ResizeObserver((0,Un.throttleFn)(mt=>{let ut=mt[0];if(ut){if(ut.contentBoxSize){let Pe=Array.isArray(ut.contentBoxSize)?ut.contentBoxSize[0]:ut.contentBoxSize;Mt=Pe.inlineSize,rt=Pe.blockSize}else ut.contentRect&&(Mt=ut.contentRect.width,rt=ut.contentRect.height);we.set({width:Mt,height:rt})}},300)),ye.observe(pe)}we.set({width:pe.clientWidth,height:pe.clientHeight})};Pt(()=>{et(W);let pe=xe.map(rt=>rt.init({store:o,microStores:_e,config:r}));if((_==null?void 0:_.status)==="upcoming"||(_==null?void 0:_.status)==="waiting"){o.actions.internal.setWaitingLive(!0);return}if(((_==null?void 0:_.status)==="finished"||(_==null?void 0:_.status)==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return qe(),()=>{ye==null||ye.disconnect(),pe.forEach(rt=>rt.unsubscribe()),o.destroy()}});function ot(){ue?o.actions.external.play():Se(!0)}function tt(){o.actions.external.pause()}function ht(pe){P||o.actions.external.setMuted(pe)}function at(pe){P||pe>=0&&pe<=1&&o.actions.external.setVolume(pe)}function ge(pe){o.actions.internal.seekTime(pe,Xm.SeekAction.UNKNOWN)}function lt(pe){o.actions.external.seekEpisodeStartTime(pe)}function Et(){o.actions.external.returnFocusToEpisodes()}function kt(pe){o.actions.external.setPlaybackRate(pe)}function Ae(pe){o.actions.external.setAutoQualityLimits(pe)}function Dt(pe){W=pe,t(32,W)}function Lt(pe){W=pe,t(32,W)}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,s=pe.microStoresRoot),"videoConfig"in pe&&t(39,r=pe.videoConfig),"uiConfig"in pe&&t(40,l=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,_=pe.live),"preload"in pe&&t(42,g=pe.preload),"autoplay"in pe&&t(5,b=pe.autoplay),"volume"in pe&&t(43,w=pe.volume),"muted"in pe&&t(44,S=pe.muted),"fromTime"in pe&&t(45,I=pe.fromTime),"canRewindLive"in pe&&t(6,k=pe.canRewindLive),"showAds"in pe&&t(7,C=pe.showAds),"adsSlotId"in pe&&t(8,E=pe.adsSlotId),"adsParams"in pe&&t(9,U=pe.adsParams),"adsPreviewParam"in pe&&t(10,$=pe.adsPreviewParam),"duration"in pe&&t(11,q=pe.duration),"logoClickable"in pe&&t(12,le=pe.logoClickable),"logoHidden"in pe&&t(13,oe=pe.logoHidden),"isMobile"in pe&&t(14,P=pe.isMobile),"showNextPrevButtons"in pe&&t(15,ne=pe.showNextPrevButtons),"nextButtonActive"in pe&&t(16,J=pe.nextButtonActive),"prevButtonActive"in pe&&t(17,K=pe.prevButtonActive),"endScreenVideoTitle"in pe&&t(18,Q=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(19,M=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(20,Z=pe.isOneVideoPlaylist),"supportLink"in pe&&t(21,B=pe.supportLink),"outerContainerRef"in pe&&t(22,te=pe.outerContainerRef),"fullScreenTarget"in pe&&t(23,Ce=pe.fullScreenTarget),"failoverHosts"in pe&&t(46,He=pe.failoverHosts),"showMiniTimer"in pe&&t(24,Re=pe.showMiniTimer),"playNextVideo"in pe&&t(25,We=pe.playNextVideo),"playPrevVideo"in pe&&t(26,Oe=pe.playPrevVideo),"repeatPlaylist"in pe&&t(27,be=pe.repeatPlaylist),"seekToInteractive"in pe&&t(28,x=pe.seekToInteractive),"toggleGraph"in pe&&t(29,he=pe.toggleGraph),"playPrevChapter"in pe&&t(30,Le=pe.playPrevChapter),"volumeMultiplier"in pe&&t(47,Ue=pe.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:o.ui.isMobile.set(P)},[o,a,c,f,_,b,k,C,E,U,$,q,le,oe,P,ne,J,K,Q,M,Z,B,te,Ce,Re,We,Oe,be,x,he,Le,ge,W,ue,Te,Ne,Se,n,s,r,l,p,g,w,S,I,He,Ue,qe,ot,tt,ht,at,lt,Et,kt,Ae,Dt,Lt]}var Ju=class extends j{constructor(e){super(),X(this,e,v5,g5,G,{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},h5,[-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]}},Jm=Ju;function y5(i){let e,t;return{c(){e=V("svg"),t=V("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){y(n,e,o),d(e,t)},p(n,[o]){o&1&&u(t,"fill",n[0])},i:R,o:R,d(n){n&&v(e)}}}function w5(i,e,t){let{isWhite:n=!1}=e,o;return i.$$set=s=>{"isWhite"in s&&t(1,n=s.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,o=n?"#fff":"#909499")},[o,n]}var $u=class extends j{constructor(e){super(),X(this,e,w5,y5,G,{isWhite:1})}},$m=$u;function k5(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 ep(i){let e,t;return{c(){e=T("div"),t=Ie(i[0]),u(e,"class","title svelte-1y9fytq")},m(n,o){y(n,e,o),d(e,t)},p(n,o){o&1&&ze(t,n[0])},d(n){n&&v(e)}}}function tp(i){let e,t;return e=new $m({props:{isWhite:!!i[1]}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let s={};o&2&&(s.isWhite=!!n[1]),e.$set(s)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function C5(i){let e,t,n,o,s=i[0]&&ep(i),r=(!i[0]||!i[1])&&tp(i);return{c(){e=T("div"),s&&s.c(),t=N(),r&&r.c(),u(e,"class","playerStub svelte-1y9fytq"),u(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(l,a){y(l,e,a),s&&s.m(e,null),d(e,t),r&&r.m(e,null),o=!0},p(l,[a]){l[0]?s?s.p(l,a):(s=ep(l),s.c(),s.m(e,t)):s&&(s.d(1),s=null),!l[0]||!l[1]?r?(r.p(l,a),a&3&&m(r,1)):(r=tp(l),r.c(),m(r,1),r.m(e,null)):r&&(ce(),h(r,1,1,()=>{r=null}),fe()),(!o||a&2&&n!==(n=l[1]?`background-image: url('${l[1]}')`:""))&&u(e,"style",n)},i(l){o||(m(r),o=!0)},o(l){h(r),o=!1},d(l){l&&v(e),s&&s.d(),r&&r.d()}}}function S5(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumbUrl"in s&&t(1,o=s.thumbUrl)},[n,o]}var ec=class extends j{constructor(e){super(),X(this,e,S5,C5,G,{title:0,thumbUrl:1},k5)}},ip=ec;var sn=require("@vkontakte/videoplayer-shared"),TA=require("@vkontakte/videoplayer-core"),mr=require("@vkontakte/videoplayer-statistics");var ls=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(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}};var ho=require("@vkontakte/videoplayer-shared");function T5(i){let e,t,n,o;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("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(s,r){y(s,e,r),d(e,t),d(t,n),d(t,o)},p:R,i:R,o:R,d(s){s&&v(e)}}}var tc=class extends j{constructor(e){super(),X(this,e,null,T5,G,{})}},np=tc;function P5(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 I5(i){let e,t,n,o,s,r,l;return n=new np({}),{c(){e=T("div"),t=T("div"),H(n.$$.fragment),o=N(),s=T("span"),r=Ie(i[0]),u(t,"class","dummy-image svelte-1pbsod4"),L(t,"desktop",!i[1]),u(s,"class","title svelte-1pbsod4"),u(e,"class","player-pip-dummy svelte-1pbsod4"),L(e,"is-pip-api",i[2])},m(a,c){y(a,e,c),d(e,t),O(n,t,null),d(e,o),d(e,s),d(s,r),l=!0},p(a,[c]){(!l||c&2)&&L(t,"desktop",!a[1]),(!l||c&1)&&ze(r,a[0])},i(a){l||(m(n.$$.fragment,a),l=!0)},o(a){h(n.$$.fragment,a),l=!1},d(a){a&&v(e),F(n)}}}function E5(i,e,t){let n,o,s=je(),r=!!s.webApi.pictureInPictureApi,l=s.interfaceLanguage$;D(i,l,f=>t(5,n=f));let a=s.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,l,a,n]}var ic=class extends j{constructor(e){super(),X(this,e,E5,I5,G,{},P5)}},op=ic;var M5=460,V5=280,Lr=class{constructor(){this.info={isActive$:new ho.ValueSubject(!1),type:1}}isSupported(){let e=(0,ho.getCurrentBrowser)().browser===ho.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,ho.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(){var s,r;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:M5,height:V5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(a=>a.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 op({target:this.playerParentShadowRoot,context:this.svelteContext}),(s=this.pipWindow)==null||s.document.body.append(n),this.info.isActive$.next(!0),(r=this.pipWindow)==null||r.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=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function rp(i){return i instanceof Lr}var ss=class{static getLatestSupportedVersion(){let e=new Mo,t=new Lr;if(t.isSupported())return t;if(e.isSupported())return e}};function nc(i,e){var o,s;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let r of t)n[r]=(s=(o=e[r])!=null?o:i[r])!=null?s:void 0;return n}var lp="Inner error. Unexpectedly root annotation container null reference exception",sp="Annotation with such name already exists",ap="Annotation with such name does not exist";var cr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var fr=require("@vkontakte/videoplayer-shared"),L5="1",A5=100,as=class{constructor(e){this.annotations=new Map;this.subscriptions=new fr.Subscription;this.rootAnnotationsContainer=e;let t=(0,fr.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"},A5);this.subscriptions.add((0,fr.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new cr(lp);if(this.annotations.has(e))throw new cr(sp);t.style.zIndex=(n=t.style.zIndex)!=null?n:L5,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 cr(ap);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,s=e.offsetLeft,r=e.offsetWidth,l=e.offsetHeight;return o<0||s<0||s+r>t||o+l>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var dr=require("@vkontakte/videoplayer-shared"),jn=class{init({store:e,microStores:t,config:n}){return(0,dr.assertNonNullable)(e),(0,dr.assertNonNullable)(t),(0,dr.assertNonNullable)(n),this.subscription=new dr.Subscription,this.subscription}};var Ar=class extends jn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ee(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(s=>{this.state$.set(s?!0:null)})),n}};var Br=class extends jn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ee(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:s}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:l,isPlaying$:a}=s.state,{controlsVisible:c,isMobile:f}=s.ui,p=Ze(f),_=()=>p&&Ze(c);return n.add(c.subscribe(g=>{if(!p)return;let b=Ze(r);Ze(a)?this.state$.set(g):b!==null&&this.state$.set(!b||g)})),n.add(a.subscribe(g=>{this.state$.set(!g||_())})),n.add(r.subscribe(g=>{if(g===null)return;let b=Ze(l);if(_()){this.state$.set(!0);return}b&&this.state$.set(!g)})),n}};var Rr=class extends jn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ee("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var oc=Ee(!1),us=null,Nr=class extends jn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...oc,set:(t,n=!1)=>{t!==Ze(oc)&&(this.clearTimeout(),oc.set(t),!t&&us&&(us=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:s}=t,{isInteractiveTime$:r,isPlaying$:l}=o.state,a=o.ui.controlsVisible;n.add(a.subscribe(p=>{Ze(r)&&p&&this.state$.set(!1)}));let c=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1},f=ii([l,r],([p,_])=>p&&_);return n.add(f.subscribe(p=>{var b,w;let _=Ze(l),g=Ze(r);if(_){if(!g)return this.state$.set(!1);c.tooltipHelpHintActive&&us===null&&(us=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(w=(b=o.callbacks)==null?void 0:b.onInteractiveTimeIndicatorHintDeactivated)==null||w.call(b))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var up=()=>[Ar,Br,Rr,Nr].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var B5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:sn.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,sn.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},volumeMultiplier:1},cs=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new sn.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new sn.Subscription,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,s;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(s=this.getAttribute("stub-thumb-url"))!=null?s:void 0;this.svelteStubComponent=new ip({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,s,r;(t=this.annotationsApi)==null||t.destroy(),(n=this.svelteRootComponent)==null||n.$destroy(),(o=this.svelteStubComponent)==null||o.$destroy(),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(r=this.interactiveController)==null||r.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){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var at,ge,lt,Et,kt,Ae,Dt,Lt,pe,Mt,rt,mt,ut;if(!this.videoConfig)return;let{albumId:s,statPlace:r,statUserSalt:l,statAuthToken:a,statTrackCode:c,refreshStatAuthToken:f,preload:p,autoplay:_,volume:g,muted:b,fromTime:w,canRewindLive:S,supportLink:I,showAds:k,adsSlotId:C,adsParams:E={},adsPreviewParam:U,interfaceLanguage:$,logoClickable:q,logoHidden:le,isMobile:oe,isAudioDisabled:P,isLiveCatchUpMode:ne,fullScreenTarget:J,failoverHosts:K,canDownload:Q,callbacks:M,interactiveData:Z,showThumbTimer:B,additionalButtons:te=[],repeat:Ce,volumeMultiplier:He}=nc(this.videoConfig,n),{sources:Re,title:We,thumbUrl:Oe,unitedVideoId:be,isClip:x=!1,duration:he,adsParams:Le={},videoEpisodes:Ue,previewThumbsData:xe,subtitles:_e,live:Te}=t,Ne={...E,...Le},Ge=this.getNextVideoInfo(),we={sources:Re,title:We,thumbUrl:Oe,subtitles:_e,unitedVideoId:be,isClip:x,live:Te,albumId:s,statPlace:r,autoplay:_,muted:b,volume:g,fromTime:w,canRewindLive:S,showAds:k,adsSlotId:C,adsParams:Ne,adsPreviewParam:U,duration:he,logoClickable:q,logoHidden:le,isMobile:oe,repeat:Ce,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ge.nextVideoTitle,endScreenVideoThumb:Ge.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},W={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(we)}`});let ye=this.uiConfig.features.statistics&&!!be,{pid:ue}=((ge=(at=this.videoConfig)==null?void 0:at.interactiveData)==null?void 0:ge.projectInfo)||{};ye&&(this.statistics=new Zl({movieId:be,albumId:s,place:r,trackCode:c,autoplay:(lt=_&&!this.interactiveController)!=null?lt:!1,mobile:oe,clip:x,refDomain:this.videoConfig.refDomain,...ue&&!this.isInited&&{projectId:Number(ue)}},{refreshAuthToken:f,userSalt:l,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Eo(this.uiConfig.sentry,{version:Po,env:xr},{movieId:be,albumId:s,place:r,autoplay:(Et=_&&!this.interactiveController)!=null?Et:!1,mobile:oe,clip:x}),this.interactiveController&&((Ae=this.prevIsid)!=null||(this.prevIsid=(kt=this.statistics)==null?void 0:kt.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Eo.getInstance()};let qe=!!Z,et=[],ot="tooltip_interactive_go_back_disabled_first";if(qe&&this.interactiveController){let Pe=this.interactiveController.state.isInitialChapter$.getValue(),Fe=this.interactiveController.getHistoryState();Pe&&et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||et.push("SEEK_TO_INTERACTIVE_BUTTON"),Fe.hasPrevChapter$.getValue()||(et.push("PLAY_PREV_CHAPTER_BUTTON"),Pe||(Fe.isGoBackLimited$.getValue()?ot="tooltip_interactive_go_back_disabled_limit":ot="tooltip_interactive_go_back_disabled"))}let tt=()=>{var Fe;this.isInited=!1,this.prevIsid=void 0;let Pe=(o==null?void 0:o.info.isEnded$.getValue())&&((Fe=this.interactiveController)==null?void 0:Fe.state.isEndChapter$.getValue());M.onReplayInteractiveVideo&&!Pe?M.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Fd({player:o,interfaceLanguage:$,videoId:be,isClip:x,isLiveCatchUpMode:ne,isAudioDisabled:P,statAuthToken:a,callbacks:M,webApi:W,videoEpisodes:Ue,previewThumbsData:xe,canDownload:Q,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:et,isInteractive:qe,interactiveRanges$:(Dt=this.interactiveController)==null?void 0:Dt.state.interactiveRanges$,isInteractiveTime$:(Lt=this.interactiveController)==null?void 0:Lt.state.isInteractiveTime$,replayInteractive:tt,playPrevChapterDisabledTooltip:ot,hasInteractiveBranches:!!((Mt=(pe=this.interactiveController)==null?void 0:pe.getChapterBranches())!=null&&Mt.length),additionalButtons:this.uiConfig.features.additionalButtons?te:[],looped:Ce&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ht}=this.microStoresRoot=up();this.subscription.add(this.store.state.currentFormat$.subscribe(Pe=>{var Fe;return(Fe=M==null?void 0:M.onCurrentFormatChanged)==null?void 0:Fe.call(M,Pe)})),this.subscription.add(ht.interactiveControlsOpacity$.subscribe(Pe=>{var Fe;Pe!==null&&((Fe=this==null?void 0:this.interactiveController)==null||Fe.setDisabledControls(Pe))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Pe=>{var Fe;return(Fe=M==null?void 0:M.onThroughputEstimationChanged)==null?void 0:Fe.call(M,Pe)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Pe=>{var Fe;return(Fe=M==null?void 0:M.onTrafficSavingEnabledChanged)==null?void 0:Fe.call(M,Pe)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Pe=>{var Fe;return(Fe=M==null?void 0:M.onCurrentPlaybackRateChanged)==null?void 0:Fe.call(M,Pe)})),this.subscription.add(this.store.state.volume$.subscribe(Pe=>{var Fe;return(Fe=M==null?void 0:M.onVolumeChange)==null?void 0:Fe.call(M,Pe)})),this.subscription.add(this.store.state.muted$.subscribe(Pe=>{var Fe,gt;return Pe?(Fe=M==null?void 0:M.onMute)==null?void 0:Fe.call(M):(gt=M==null?void 0:M.onUnmute)==null?void 0:gt.call(M)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Pe=>{var Fe;return(Fe=M==null?void 0:M.onVideoBitrateChanged)==null?void 0:Fe.call(M,Pe)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Pe=>{var gt;let Fe=(gt=this.store)==null?void 0:gt.ui.controls.disabledControls$;Fe&&(Pe&&!Fe.includes(yr)&&Fe.add(yr),Pe||Fe.remove(yr))})),this.initMediaSession(),this.interactiveController&&ye&&this.initInteractivesStatistics(),this.svelteRootComponent=new Jm({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Re,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:We,thumbUrl:Oe,subtitles:_e,live:Te,preload:p,autoplay:_,muted:b,volume:g,fromTime:w,canRewindLive:S,supportLink:I,showAds:k,adsSlotId:C,adsParams:Ne,adsPreviewParam:U,duration:he,logoClickable:q,logoHidden:le,isMobile:oe,failoverHosts:K,fullScreenTarget:J,showMiniTimer:B,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ge.nextVideoTitle,endScreenVideoThumb:Ge.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:He}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ut=(mt=(rt=this.videoConfig)==null?void 0:rt.callbacks)==null?void 0:mt.onInited)==null||ut.call(mt))}addPlayerInfoSubscriptions(){var s;let t=this.store;if(!t)return;let n=(s=this.videoConfig)==null?void 0:s.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(r=>{var l;return(l=n.onPlayerPhaseChanged)==null?void 0:l.call(n,r)})).add(t.state.playbackState$.subscribe(r=>{var l;return(l=n.onPlaybackStateChanged)==null?void 0:l.call(n,r)})).add(t.state.isLive$.subscribe(r=>{var l;return(l=n.onIsLiveChanged)==null?void 0:l.call(n,r)})).add(t.state.isActiveLive$.subscribe(r=>{var l;return(l=n.onIsActiveLiveChanged)==null?void 0:l.call(n,r)})).add(t.state.isAudioAvailable$.subscribe(r=>{var l;return(l=n.onIsAudioAvailableChanged)==null?void 0:l.call(n,r)})).add(t.state.currentQuality$.subscribe(r=>{var l;return(l=n.onCurrentQualityChanged)==null?void 0:l.call(n,r)})).add(t.state.availableQualities$.subscribe(r=>{var l;return(l=n.onAvailableQualitiesChanged)==null?void 0:l.call(n,r.map(({value:a})=>a).filter(a=>a!=="auto"))})).add(t.ui.isPictureInPictureActive$.subscribe(r=>{var l,a;return r?(l=n.onPiPEnter)==null?void 0:l.call(n):(a=n.onPiPExit)==null?void 0:a.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(r=>{var l;return(l=o.onControlsVisibleChanged)==null?void 0:l.call(o,r)})).add(t.ui.isMobile.subscribe(r=>{var l;return(l=o.onIsMobileChanged)==null?void 0:l.call(o,r)})).add(t.ui.playerSize.subscribe(r=>{var l;return(l=o.onPlayerSizeChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.prevButton.subscribe(r=>{var l;return(l=o.onPrevButtonChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.playButton.subscribe(r=>{var l;return(l=o.onPlayButtonChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.replayButton.subscribe(r=>{var l;return(l=o.onReplayButtonChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.nextButton.subscribe(r=>{var l;return(l=o.onNextButtonChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.playPrevChapterButton.subscribe(r=>{var l;return(l=o.onPlayPrevChapterChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.seekToInteractiveButton.subscribe(r=>{var l;return(l=o.onSeekToInteractiveButtonChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.interactiveGraphButton.subscribe(r=>{var l;return(l=o.onGraphButtonChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.liveButton.subscribe(r=>{var l;return(l=o.onLiveButtonChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.time.subscribe(r=>{var l;return(l=o.onTimeUpdateChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.episodes.subscribe(r=>{var l;return(l=o.onEpisodesChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.subtitles.subscribe(r=>{var l;return(l=o.onSubtitlesChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.settings.subscribe(r=>{var l;return(l=o.onSettingsChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.fullscreen.subscribe(r=>{var l;return(l=o.onFullscreenChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.chromecast.subscribe(r=>{var l;return(l=o.onChromecastChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.pip.subscribe(r=>{var l;return(l=o.onPipChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.vkLogo.subscribe(r=>{var l;return(l=o.onVkLogoChanged)==null?void 0:l.call(o,r)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(r=>{var l;return(l=o.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(o,r)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var s;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,sn.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(s=this.svelteRootComponent)==null||s.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var f,p;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:s}=t.state,{disabledControls$:r}=t.ui.controls,l=Ze(n),a=Ze(o);Ze(s)?(s.set(!1),(f=this.interactiveController)==null||f.toggleGraphView(!1),r.remove(ws),!l&&this.graphMadePause&&this.play()):(this.graphMadePause=a==="playing",s.set(!0),(p=this.interactiveController)==null||p.toggleGraphView(!0),r.add(ws),!l&&this.graphMadePause&&this.pause())}async initInteractives(){var t,n,o,s;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:r,EVENT_NAMES:l,CustomError:a}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let c=(n=this.store)==null?void 0:n.interfaceLanguage$,f=c?Ze(c):this.videoConfig.interfaceLanguage,{projectInfo:p,initChapterId:_,historyApi:g,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new r({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:f,graph:this.uiConfig.features.interactiveGraph,projectInfo:p,initChapterId:_,historyApi:g,vkVideoLoader:b,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$:w}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(I=>{if(!this.isInited)return;let k=this.store;I?k.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):k.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let S=!0;if(this.interactiveController.on(l.playerChanged,I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(p==null?void 0:p.title)||I.config.title};let k=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,k),S&&(S=!1)}),this.interactiveController.on(l.interactives,({type:I,actionType:k})=>{var E,U,$,q;if(!this.store)return;let C=w.getValue();if(I==="action-choice"&&k==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jr)),I==="action-choice-canceled"){let le=Ze(this.store.state.isPlaying$)||C;if((E=this.videoConfig)!=null&&E.isMobile&&le){this.store.ui.interactiveHideMobileControls.set(!0);return}(q=(U=this.videoConfig)==null?void 0:($=U.callbacks).onDisabledInteractiveClick)==null||q.call($)}}),(s=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&s.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(k=>{var C,E,U;k.length&&((U=(E=(C=this.videoConfig)==null?void 0:C.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||U.call(E,k))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,k,C,E;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(k=this.videoConfig)==null?void 0:(C=k.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(C)})),this.interactiveController.on(l.errors,I=>{this.log({message:I.toString()})})}catch(r){this.log({message:r.message})}}async initInteractivesStatistics(){var o,s;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:r}=await import("@vkontakte/videoplayer-interactive"),l={[r.GO_NEXT_BUTTON]:mr.InteractiveInterfaceClick.NEXT_BUTTON,[r.GO_NEXT_AREA]:mr.InteractiveInterfaceClick.NEXT_AREA,[r.WATCH_AGAIN]:mr.InteractiveInterfaceClick.WATCH_AGAIN,[r.OPEN_GRAPH]:mr.InteractiveInterfaceClick.GRAPH_SHOW,[r.CLOSE_GRAPH]:mr.InteractiveInterfaceClick.GRAPH_HIDE},{click$:a,nextMovie$:c}=this.interactiveController.getStatEvents(),f=new sn.Subject;a.subscribe(p=>{var _,g;p in l?f.next(l[p]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(g=(_=this.sentry).report)==null||g.call(_,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:f,nextMovie$:c}))}catch(r){n==null||n.logError({errorType:"InteractiveVideos",fatal:!1}),(s=(o=this.sentry).report)==null||s.call(o,r,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){var o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U,$;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=nc(B5,(0,sn.cloneDeepWith)(t,q=>q instanceof HTMLElement?q:void 0)),this.uiConfig=Vc((o=n.ui)!=null?o:{}),this.coreConfig=(s=n.core)!=null?s:{configName:[]},this.statisticsConfig=(r=n.statistics)!=null?r:{},this.sentry={config:(l=this.uiConfig.sentry)!=null?l:{}},(0,sn.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(a=this.videoConfig.isMediaSessionEnabled)!=null?a:!0),(0,sn.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(f=(c=this.uiConfig.features.pip)!=null?c:this.videoConfig.isPictureInPictureEnabled)!=null?f:!0,this.uiConfig.features.dpip=(_=(p=this.uiConfig.features.dpip)!=null?p:this.videoConfig.isPictureInPictureEnabled)!=null?_:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!=null?g:this.videoConfig.isMobile,(b=this.videoConfig).autoplay&&(b.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(w=this.uiConfig.ads.enable)!=null?w:this.videoConfig.showAds,this.videoConfig.adsSlotId=(S=this.uiConfig.ads.slot)!=null?S:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((k=this.uiConfig.showLogo)!=null?k:!this.videoConfig.logoHidden),(C=this.videoConfig).canRewindLive&&(C.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(E=this.videoConfig.supportLink)!=null?E:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ss.getLatestSupportedVersion():this.pictureInPictureApi=new Mo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ls:void 0,this.annotationsApi=this.uiConfig.features.annotations?new as(this.rootContainer):void 0,(U=this.svelteStubComponent)==null||U.$destroy(),($=this.svelteRootComponent)==null||$.$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]),rp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",s=>this.seekTime(s.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(){var t,n;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("waitingLive")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var n,o;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy();let t=this.videoConfig.videos[0];t&&((o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,s;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(s=this.svelteRootComponent)==null||s.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}async setLanguage(t){var n;await((n=this.store)==null?void 0:n.actions.internal.setLanguage(t))}setLiveStart(t){var n,o;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setWaitingLive(!1),(o=this.svelteRootComponent)==null||o.initVideo(t),this.play()}setWaitRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setWaitingRecord(!1),(o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}};var pr=require("@vkontakte/videoplayer-shared"),fs=require("@vkontakte/videoplayer-core"),R5=()=>{window.customElements.define("vk-video-player",cs)};
|