@vkontakte/videoplayer 1.1.36-dev.cdb7114a.0 → 1.1.36-dev.eb0e2df4.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 +16 -16
- package/es2015.esm.js +16 -16
- package/es2018.cjs.js +16 -16
- package/es2018.esm.js +16 -16
- package/esnext.cjs.js +16 -16
- package/esnext.esm.js +16 -16
- package/evergreen.esm.js +16 -16
- package/package.json +11 -11
- 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 +461 -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 -473
package/es2015.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.36-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.36-dev.eb0e2df4.0
|
|
3
|
+
* Mon, 17 Jun 2024 13:47:10 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var a0=Object.create;var Ll=Object.defineProperty,u0=Object.defineProperties,c0=Object.getOwnPropertyDescriptor,f0=Object.getOwnPropertyDescriptors,d0=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,m0=Object.getPrototypeOf,qr=Object.prototype.hasOwnProperty,p0=Object.prototype.propertyIsEnumerable;var Il=(i,e,t)=>e in i?Ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,dn=(i,e)=>{for(var t in e||(e={}))qr.call(e,t)&&Il(i,t,e[t]);if(jr)for(var t of jr(e))p0.call(e,t)&&Il(i,t,e[t]);return i},mo=(i,e)=>u0(i,f0(e));var h0=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of d0(e))!qr.call(i,l)&&l!==t&&Ll(i,l,{get:()=>e[l],enumerable:!(n=c0(e,l))||n.enumerable});return i};var Wr=(i,e,t)=>(t=i!=null?a0(m0(i)):{},h0(e||!i||!i.__esModule?Ll(t,"default",{value:i,enumerable:!0}):t,i));var Vl=(i,e,t)=>(Il(i,typeof e!="symbol"?e+"":e,t),t);var xi=(i,e,t)=>new Promise((n,l)=>{var r=a=>{try{s(t.next(a))}catch(c){l(c)}},o=a=>{try{s(t.throw(a))}catch(c){l(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);s((t=t.apply(i,e)).next())});var $e=require("@vkontakte/videoplayer-core/es2015.cjs.js"),ne=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),yt=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");require("@vkontakte/videoplayer-interactive/es2015.cjs.js");function fi(i,e,t,n){function l(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function s(f){try{c(n.next(f))}catch(d){o(d)}}function a(f){try{c(n.throw(f))}catch(d){o(d)}}function c(f){f.done?r(f.value):l(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function S1(i,e){for(const t in e)i[t]=e[t];return i}function P1(i){return i()}function Zr(){return Object.create(null)}function nt(i){i.forEach(P1)}function Mn(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Jo;function Kr(i,e){return Jo||(Jo=document.createElement("a")),Jo.href=e,i===Jo.href}function v0(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Qt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function qn(i,e,t,n){if(i){const l=T1(i,e,t,n);return i[0](l)}}function T1(i,e,t,n){return i[1]&&n?S1(t.ctx.slice(),i[1](n(e))):t.ctx}function Wn(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));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 Zn(i,e,t,n,l,r){if(l){const o=T1(e,t,n,r);i.p(o,l)}}function Kn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function g0(i){return i==null?"":i}const vl=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function Ze(i,e,t){const n=b0(i);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=t,_0(n,l)}}function b0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function _0(i,e){return p(i.head||i,e),e.sheet}function P(i,e,t){i.insertBefore(e,t||null)}function S(i){i.parentNode&&i.parentNode.removeChild(i)}function Bn(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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ze(i){return document.createTextNode(i)}function O(){return ze(" ")}function mt(){return ze("")}function ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Jt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function w0(i){return Array.from(i.childNodes)}function et(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ft(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let xo;function k0(){if(xo===void 0){xo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){xo=!0}}return xo}function dr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const 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;const l=k0();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(i,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(i,e,t){i.classList.toggle(e,!!t)}function Dn(i,e){return new i(e)}let Bo;function Mo(i){Bo=i}function Ro(){if(!Bo)throw new Error("Function called outside component initialization");return Bo}function _n(i){Ro().$$.on_mount.push(i)}function gl(i){Ro().$$.on_destroy.push(i)}function nr(i,e){return Ro().$$.context.set(i,e),e}function mr(i){return Ro().$$.context.get(i)}function E1(){return Ro().$$.context}function Po(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const wo=[],Ce=[];let Co=[];const or=[],A1=Promise.resolve();let lr=!1;function I1(){lr||(lr=!0,A1.then(L1))}function Oo(){return I1(),A1}function To(i){Co.push(i)}function qe(i){or.push(i)}const Ml=new Set;let po=0;function L1(){if(po!==0)return;const i=Bo;do{try{for(;po<wo.length;){const e=wo[po];po++,Mo(e),y0(e.$$)}}catch(e){throw wo.length=0,po=0,e}for(Mo(null),wo.length=0,po=0;Ce.length;)Ce.pop()();for(let e=0;e<Co.length;e+=1){const t=Co[e];Ml.has(t)||(Ml.add(t),t())}Co.length=0}while(wo.length);for(;or.length;)or.pop()();lr=!1,Ml.clear(),Mo(i)}function y0(i){if(i.fragment!==null){i.update(),nt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(To)}}function C0(i){const e=[],t=[];Co.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Co=e}const cl=new Set;let lo;function de(){lo={r:0,c:[],p:lo}}function me(){lo.r||nt(lo.c),lo=lo.p}function m(i,e){i&&i.i&&(cl.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(cl.has(i))return;cl.add(i),lo.c.push(()=>{cl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Zt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function S0(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function P0(i){return typeof i=="object"&&i!==null?i:{}}function We(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function j(i){i&&i.c()}function F(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),To(()=>{const r=i.$$.on_mount.map(P1).filter(Mn);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),l.forEach(To)}function H(i,e){const t=i.$$;t.fragment!==null&&(C0(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function T0(i,e){i.$$.dirty[0]===-1&&(wo.push(i),I1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function we(i,e,t,n,l,r,o,s=[-1]){const a=Bo;Mo(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,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=t?t(i,e.props||{},(d,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),f&&T0(i,d)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const d=w0(e.target);c.fragment&&c.fragment.l(d),d.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&m(i.$$.fragment),F(i,e.target,e.anchor),L1()}Mo(a)}class ke{constructor(){Vl(this,"$$");Vl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,t){if(!Mn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!v0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const E0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E0);var Eo;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(Eo||(Eo={}));const A0={isMobile:void 0,defaultLanguage:ne.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:Eo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ne.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},I0=i=>ne.fillWithDefault(i,A0),L0=i=>nr("ui-config",i),wn=()=>mr("ui-config"),rr="vk_player_debug_panel_opened",V1=300,V0=100,M0="videoplayer",B0="videoplayer";var Ae;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ae||(Ae={}));const Do={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},N0=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),R0=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),O0=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var dt;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(dt||(dt={}));const Gr=40,M1=260,D0=60,$o=8,B1=[dt.TIMELINE],fl=[...B1,dt.GRAPH_BUTTON],Yr=[...B1,dt.PLAY_BUTTON],N1=[...fl,dt.PLAY_BUTTON];var ko;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(ko||(ko={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const Ao={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},ho=[];function On(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=K){let t;const n=new Set;function l(s){if(be(i,s)&&(i=s,t)){const a=!ho.length;for(const c of n)c[1](),ho.push(c,i);if(a){for(let c=0;c<ho.length;c+=2)ho[c][0](ho[c+1]);ho.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function Oi(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return On(t,(o,s)=>{let a=!1;const c=[];let f=0,d=K;const h=()=>{if(f)return;d();const g=e(n?c[0]:c,o,s);r?o(g):d=Mn(g)?g:K},_=l.map((g,w)=>Qt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(_),d(),a=!1}})}const z0="prod",bl="1.1.36-dev.cdb7114a.0",R1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},O1=Symbol("storeContext"),D1=Symbol("microStoresContext"),F0=(i,e)=>{nr(O1,i),nr(D1,e)},Ct=()=>{const i=mr(O1);return ne.assertNonNullable(i,"Store context is empty!"),i},zo=()=>{const i=mr(D1);return ne.assertNonNullable(i,"MicroStores context is empty!"),i},kt=(i,e)=>z1(i,i.getValue(),e),z1=(i,e,t)=>On(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),H0=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=tt(t.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",_=`${bl} (core: ${$e.VERSION}, stat: ${yt.VERSION}, shared: ${ne.VERSION})`,g=tt(t.state.errorLog$),w=g.length?`
|
|
7
|
-
`+
|
|
8
|
-
`,
|
|
9
|
-
|
|
10
|
-
`;return
|
|
11
|
-
`):void 0,
|
|
12
|
-
`)},U0=(i,e,t)=>{const n=i.info,{width:l,height:r}=tt(t.ui.playerSize),o={version:bl,viewport:`${l}x${r}`,volume:Math.round(tt(t.state.volume$)*100)};o.id=t.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-tt(t.state.positionExact$),0));const d=n.throughputEstimation$.getValue();d&&(o.speed=d);const h=n.videoBitrate$.getValue();return h&&(o.bitrate=h),o},j0=(i,e)=>R1(i,e,"mp4"),F1="vk_player_prefer_traffic_saving_enabled",H1="vk_player_preferred_volume",U1="vk_player_prefer_volume_mute",pr="vk_player_preferred_quality",j1=i=>i>1?1:i<0?0:i,Qr=i=>ne.safeStorage.set(H1,j1(i).toString(10)),q1=()=>{const i=ne.safeStorage.get(H1);return ne.isNullable(i)?void 0:j1(parseFloat(i))},q0=(i,e)=>ne.safeStorage.set(pr,JSON.stringify({videoId:i,value:e})),W1=()=>ne.safeStorage.remove(pr),W0=i=>{const e=ne.safeStorage.get(pr);if(ne.isNullable(e))return;const{videoId:t,value:n}=JSON.parse(e);if(i!==t){W1();return}return n},Z1=(i,e)=>{e?ne.safeStorage.set(i,"true"):ne.safeStorage.remove(i)},K1=i=>ne.safeStorage.get(i)==="true",Bl=i=>Z1(U1,i),Z0=()=>K1(U1),K0=i=>Z1(F1,i),G0=()=>K1(F1);function Y0(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("path"),o=N("path"),s=N("path"),a=N("defs"),c=N("filter"),f=N("feFlood"),d=N("feColorMatrix"),h=N("feOffset"),_=N("feGaussianBlur"),g=N("feColorMatrix"),w=N("feBlend"),b=N("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M67 9.489A3.489 3.489 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.489 3.489 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489Zm-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492Z"),u(n,"fill","#fff"),u(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(t,"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(_,"stdDeviation","2.5"),u(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(w,"in2","BackgroundImageFix"),u(w,"result","effect1_dropShadow_618_12297"),u(b,"in","SourceGraphic"),u(b,"in2","effect1_dropShadow_618_12297"),u(b,"result","shape"),u(c,"id","a"),u(c,"x",".5"),u(c,"y",".5"),u(c,"width","75"),u(c,"height","44"),u(c,"filterUnits","userSpaceOnUse"),u(c,"color-interpolation-filters","sRGB"),u(e,"width","76"),u(e,"height","45"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"data-testid","video-360-icon"),u(e,"aria-hidden",C=!i[0]||null),u(e,"aria-label",k=i[0]||null)},m(y,M){P(y,e,M),p(e,t),p(t,n),p(t,l),p(t,r),p(t,o),p(t,s),p(e,a),p(a,c),p(c,f),p(c,d),p(c,h),p(c,_),p(c,g),p(c,w),p(c,b)},p(y,[M]){M&1&&C!==(C=!y[0]||null)&&u(e,"aria-hidden",C),M&1&&k!==(k=y[0]||null)&&u(e,"aria-label",k)},i:K,o:K,d(y){y&&S(e)}}}function Q0(i,e,t){let{ariaLabel:n=""}=e;return i.$$set=l=>{"ariaLabel"in l&&t(0,n=l.ariaLabel)},[n]}class G1 extends ke{constructor(e){super(),we(this,e,Q0,Y0,be,{ariaLabel:0})}}var Nl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function X0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var el=function(i){return i&&i.Math==Math&&i},eo=el(typeof globalThis=="object"&&globalThis)||el(typeof window=="object"&&window)||el(typeof self=="object"&&self)||el(typeof Nl=="object"&&Nl)||function(){return this}()||Nl||Function("return this")(),ao=function(i){try{return!!i()}catch(e){return!0}},J0=ao,_l=!J0(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")}),x0=_l,Y1=Function.prototype,Xr=Y1.apply,Jr=Y1.call,$0=typeof Reflect=="object"&&Reflect.apply||(x0?Jr.bind(Xr):function(){return Jr.apply(Xr,arguments)}),Q1=_l,X1=Function.prototype,sr=X1.call,ed=Q1&&X1.bind.bind(sr,sr),to=Q1?ed:function(i){return function(){return sr.apply(i,arguments)}},J1=to,td=J1({}.toString),id=J1("".slice),wl=function(i){return id(td(i),8,-1)},nd=wl,od=to,x1=function(i){if(nd(i)==="Function")return od(i)},ar=typeof document=="object"&&document.all,ld=typeof ar=="undefined"&&ar!==void 0,$1={all:ar,IS_HTMLDDA:ld},ec=$1,rd=ec.all,Gn=ec.IS_HTMLDDA?function(i){return typeof i=="function"||i===rd}:function(i){return typeof i=="function"},tc={},sd=ao,Fo=!sd(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ad=_l,tl=Function.prototype.call,Ho=ad?tl.bind(tl):function(){return tl.apply(tl,arguments)},ic={},nc={}.propertyIsEnumerable,oc=Object.getOwnPropertyDescriptor,ud=oc&&!nc.call({1:2},1);ic.f=ud?function(e){var t=oc(this,e);return!!t&&t.enumerable}:nc;var lc=function(i,e){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:e}},cd=to,fd=ao,dd=wl,Rl=Object,md=cd("".split),pd=fd(function(){return!Rl("z").propertyIsEnumerable(0)})?function(i){return dd(i)=="String"?md(i,""):Rl(i)}:Rl,hr=function(i){return i==null},hd=hr,vd=TypeError,vr=function(i){if(hd(i))throw vd("Can't call method on "+i);return i},gd=pd,bd=vr,_d=function(i){return gd(bd(i))},xr=Gn,rc=$1,wd=rc.all,Uo=rc.IS_HTMLDDA?function(i){return typeof i=="object"?i!==null:xr(i)||i===wd}:function(i){return typeof i=="object"?i!==null:xr(i)},sc={},Ol=sc,Dl=eo,kd=Gn,$r=function(i){return kd(i)?i:void 0},ac=function(i,e){return arguments.length<2?$r(Ol[i])||$r(Dl[i]):Ol[i]&&Ol[i][e]||Dl[i]&&Dl[i][e]},yd=to,uc=yd({}.isPrototypeOf),Cd=typeof navigator!="undefined"&&String(navigator.userAgent)||"",cc=eo,zl=Cd,es=cc.process,ts=cc.Deno,is=es&&es.versions||ts&&ts.version,ns=is&&is.v8,Vn,ml;ns&&(Vn=ns.split("."),ml=Vn[0]>0&&Vn[0]<4?1:+(Vn[0]+Vn[1]));!ml&&zl&&(Vn=zl.match(/Edge\/(\d+)/),(!Vn||Vn[1]>=74)&&(Vn=zl.match(/Chrome\/(\d+)/),Vn&&(ml=+Vn[1])));var Sd=ml,os=Sd,Pd=ao,Td=eo,Ed=Td.String,fc=!!Object.getOwnPropertySymbols&&!Pd(function(){var i=Symbol();return!Ed(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&os&&os<41}),Ad=fc,dc=Ad&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Id=ac,Ld=Gn,Vd=uc,Md=dc,Bd=Object,mc=Md?function(i){return typeof i=="symbol"}:function(i){var e=Id("Symbol");return Ld(e)&&Vd(e.prototype,Bd(i))},Nd=String,Rd=function(i){try{return Nd(i)}catch(e){return"Object"}},Od=Gn,Dd=Rd,zd=TypeError,pc=function(i){if(Od(i))return i;throw zd(Dd(i)+" is not a function")},Fd=pc,Hd=hr,hc=function(i,e){var t=i[e];return Hd(t)?void 0:Fd(t)},Fl=Ho,Hl=Gn,Ul=Uo,Ud=TypeError,jd=function(i,e){var t,n;if(e==="string"&&Hl(t=i.toString)&&!Ul(n=Fl(t,i))||Hl(t=i.valueOf)&&!Ul(n=Fl(t,i))||e!=="string"&&Hl(t=i.toString)&&!Ul(n=Fl(t,i)))return n;throw Ud("Can't convert object to primitive value")},vc={exports:{}},ls=eo,qd=Object.defineProperty,Wd=function(i,e){try{qd(ls,i,{value:e,configurable:!0,writable:!0})}catch(t){ls[i]=e}return e},Zd=eo,Kd=Wd,rs="__core-js_shared__",Gd=Zd[rs]||Kd(rs,{}),Yd=Gd,ss=Yd;(vc.exports=function(i,e){return ss[i]||(ss[i]=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 Qd=vc.exports,Xd=vr,Jd=Object,gc=function(i){return Jd(Xd(i))},xd=to,$d=gc,e2=xd({}.hasOwnProperty),kl=Object.hasOwn||function(e,t){return e2($d(e),t)},t2=to,i2=0,n2=Math.random(),o2=t2(1 .toString),l2=function(i){return"Symbol("+(i===void 0?"":i)+")_"+o2(++i2+n2,36)},r2=eo,s2=Qd,as=kl,a2=l2,u2=fc,c2=dc,yo=r2.Symbol,jl=s2("wks"),f2=c2?yo.for||yo:yo&&yo.withoutSetter||a2,jo=function(i){return as(jl,i)||(jl[i]=u2&&as(yo,i)?yo[i]:f2("Symbol."+i)),jl[i]},d2=Ho,us=Uo,cs=mc,m2=hc,p2=jd,h2=jo,v2=TypeError,g2=h2("toPrimitive"),b2=function(i,e){if(!us(i)||cs(i))return i;var t=m2(i,g2),n;if(t){if(e===void 0&&(e="default"),n=d2(t,i,e),!us(n)||cs(n))return n;throw v2("Can't convert object to primitive value")}return e===void 0&&(e="number"),p2(i,e)},_2=b2,w2=mc,bc=function(i){var e=_2(i,"string");return w2(e)?e:e+""},k2=eo,fs=Uo,ur=k2.document,y2=fs(ur)&&fs(ur.createElement),C2=function(i){return y2?ur.createElement(i):{}},S2=Fo,P2=ao,T2=C2,_c=!S2&&!P2(function(){return Object.defineProperty(T2("div"),"a",{get:function(){return 7}}).a!=7}),E2=Fo,A2=Ho,I2=ic,L2=lc,V2=_d,M2=bc,B2=kl,N2=_c,ds=Object.getOwnPropertyDescriptor;tc.f=E2?ds:function(e,t){if(e=V2(e),t=M2(t),N2)try{return ds(e,t)}catch(n){}if(B2(e,t))return L2(!A2(I2.f,e,t),e[t])};var R2=ao,O2=Gn,D2=/#|\.prototype\./,qo=function(i,e){var t=F2[z2(i)];return t==U2?!0:t==H2?!1:O2(e)?R2(e):!!e},z2=qo.normalize=function(i){return String(i).replace(D2,".").toLowerCase()},F2=qo.data={},H2=qo.NATIVE="N",U2=qo.POLYFILL="P",j2=qo,ms=x1,q2=pc,W2=_l,Z2=ms(ms.bind),K2=function(i,e){return q2(i),e===void 0?i:W2?Z2(i,e):function(){return i.apply(e,arguments)}},wc={},G2=Fo,Y2=ao,Q2=G2&&Y2(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),X2=Uo,J2=String,x2=TypeError,kc=function(i){if(X2(i))return i;throw x2(J2(i)+" is not an object")},$2=Fo,em=_c,tm=Q2,il=kc,ps=bc,im=TypeError,ql=Object.defineProperty,nm=Object.getOwnPropertyDescriptor,Wl="enumerable",Zl="configurable",Kl="writable";wc.f=$2?tm?function(e,t,n){if(il(e),t=ps(t),il(n),typeof e=="function"&&t==="prototype"&&"value"in n&&Kl in n&&!n[Kl]){var l=nm(e,t);l&&l[Kl]&&(e[t]=n.value,n={configurable:Zl in n?n[Zl]:l[Zl],enumerable:Wl in n?n[Wl]:l[Wl],writable:!1})}return ql(e,t,n)}:ql:function(e,t,n){if(il(e),t=ps(t),il(n),em)try{return ql(e,t,n)}catch(l){}if("get"in n||"set"in n)throw im("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var om=Fo,lm=wc,rm=lc,sm=om?function(i,e,t){return lm.f(i,e,rm(1,t))}:function(i,e,t){return i[e]=t,i},nl=eo,am=$0,um=x1,cm=Gn,fm=tc.f,dm=j2,vo=sc,mm=K2,go=sm,hs=kl,pm=function(i){var e=function(t,n,l){if(this instanceof e){switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return new i(t,n)}return new i(t,n,l)}return am(i,this,arguments)};return e.prototype=i.prototype,e},hm=function(i,e){var t=i.target,n=i.global,l=i.stat,r=i.proto,o=n?nl:l?nl[t]:(nl[t]||{}).prototype,s=n?vo:vo[t]||go(vo,t,{})[t],a=s.prototype,c,f,d,h,_,g,w,b,C;for(h in e)c=dm(n?h:t+(l?".":"#")+h,i.forced),f=!c&&o&&hs(o,h),g=s[h],f&&(i.dontCallGetSet?(C=fm(o,h),w=C&&C.value):w=o[h]),_=f&&w?w:e[h],!(f&&typeof g==typeof _)&&(i.bind&&f?b=mm(_,nl):i.wrap&&f?b=pm(_):r&&cm(_)?b=um(_):b=_,(i.sham||_&&_.sham||g&&g.sham)&&go(b,"sham",!0),go(s,h,b),r&&(d=t+"Prototype",hs(vo,d)||go(vo,d,{}),go(vo[d],h,_),i.real&&a&&(c||!a[h])&&go(a,h,_)))},vm=Uo,gm=wl,bm=jo,_m=bm("match"),wm=function(i){var e;return vm(i)&&((e=i[_m])!==void 0?!!e:gm(i)=="RegExp")},km=jo,ym=km("toStringTag"),yc={};yc[ym]="z";var Cm=String(yc)==="[object z]",Sm=Cm,Pm=Gn,dl=wl,Tm=jo,Em=Tm("toStringTag"),Am=Object,Im=dl(function(){return arguments}())=="Arguments",Lm=function(i,e){try{return i[e]}catch(t){}},Vm=Sm?dl:function(i){var e,t,n;return i===void 0?"Undefined":i===null?"Null":typeof(t=Lm(e=Am(i),Em))=="string"?t:Im?dl(e):(n=dl(e))=="Object"&&Pm(e.callee)?"Arguments":n},Mm=Vm,Bm=String,Nm=function(i){if(Mm(i)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Bm(i)},Rm=kc,Om=function(){var i=Rm(this),e="";return i.hasIndices&&(e+="d"),i.global&&(e+="g"),i.ignoreCase&&(e+="i"),i.multiline&&(e+="m"),i.dotAll&&(e+="s"),i.unicode&&(e+="u"),i.unicodeSets&&(e+="v"),i.sticky&&(e+="y"),e},Dm=Ho,zm=kl,Fm=uc,Hm=Om,vs=RegExp.prototype,Um=function(i){var e=i.flags;return e===void 0&&!("flags"in vs)&&!zm(i,"flags")&&Fm(vs,i)?Dm(Hm,i):e},gr=to,jm=gc,qm=Math.floor,Gl=gr("".charAt),Wm=gr("".replace),Yl=gr("".slice),Zm=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Km=/\$([$&'`]|\d{1,2})/g,Gm=function(i,e,t,n,l,r){var o=t+i.length,s=n.length,a=Km;return l!==void 0&&(l=jm(l),a=Zm),Wm(r,a,function(c,f){var d;switch(Gl(f,0)){case"$":return"$";case"&":return i;case"`":return Yl(e,0,t);case"'":return Yl(e,o);case"<":d=l[Yl(f,1,-1)];break;default:var h=+f;if(h===0)return c;if(h>s){var _=qm(h/10);return _===0?c:_<=s?n[_-1]===void 0?Gl(f,1):n[_-1]+Gl(f,1):c}d=n[h-1]}return d===void 0?"":d})},Ym=hm,Qm=Ho,br=to,gs=vr,Xm=Gn,Jm=hr,xm=wm,bo=Nm,$m=hc,e4=Um,t4=Gm,i4=jo,n4=i4("replace"),o4=TypeError,Cc=br("".indexOf),l4=br("".replace),bs=br("".slice),r4=Math.max,_s=function(i,e,t){return t>i.length?-1:e===""?t:Cc(i,e,t)};Ym({target:"String",proto:!0},{replaceAll:function(e,t){var n=gs(this),l,r,o,s,a,c,f,d,h,_=0,g=0,w="";if(!Jm(e)){if(l=xm(e),l&&(r=bo(gs(e4(e))),!~Cc(r,"g")))throw o4("`.replaceAll` does not allow non-global regexes");if(o=$m(e,n4),o)return Qm(o,e,n,t);if(l)return l4(bo(n),e,t)}for(s=bo(n),a=bo(e),c=Xm(t),c||(t=bo(t)),f=a.length,d=r4(1,f),_=_s(s,a,0);_!==-1;)h=c?bo(t(a,_,s)):t4(a,s,_,[],void 0,t),w+=bs(s,g,_)+h,g=_+f,_=_s(s,a,_+d);return g<s.length&&(w+=bs(s,g)),w}});var s4=ac,a4=s4,u4=a4,c4=u4("String","replaceAll"),f4=c4,d4=f4,m4=d4,p4=m4,h4=X0(p4);const v4={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},g4={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_record_title:"The broadcast has ended and the recording will be available soon",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_traffic_saving:"Data saving: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode"},Hn=new Map;Hn.set(ne.InterfaceLanguage.EN,g4);Hn.set(ne.InterfaceLanguage.RU,v4);const Sc=new Map,ws=({language:i,pack:e,fallback:t})=>{if(Hn.has(i)){const n=Hn.get(i);Hn.set(i,Object.assign(Object.assign({},n),e))}else Hn.set(i,e);Sc.set(i,t)},ks=i=>Hn.has(i),Pc=(i,e,t,n)=>{var l;const r=Hn.get(i);let o=r==null?void 0:r[e];if(ne.isNullable(o)){const s=(l=Sc.get(i))!==null&&l!==void 0?l:n,a=s?Hn.get(s):void 0;o=a==null?void 0:a[e]}return ne.isNullable(o)?e+Object.values(t!=null?t:{}).join(" "):t?h4(o,/{(\w+?)}/g,(s,a)=>{var c;return(c=t[a])!==null&&c!==void 0?c:""}):o},Y=(i,e)=>{const{interfaceLanguage$:t}=Ct(),n=tt(t),l=wn();return Pc(n,i,e,l.defaultLanguage)};var pl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(pl||(pl={}));const b4=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,w4=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ol="?",k4="X-Sentry-Auth",y4=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function C4(i){if(!i.stack)return null;const e=[],t=i.stack.split(`
|
|
13
|
-
`)
|
|
14
|
-
`).filter(t=>!!t)[0]}function S4(i){try{const e=C4(i);if(e)return e}catch(e){}return{value:Tc(i),type:i&&i.name,stacktrace:{frames:[]}}}function P4(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{const e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}class T4{constructor(e){if(e&&e.dsn){const t=y4.exec(e.dsn),n=t?t.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 mo(dn({},this.getRequestBlank()),{exception:{values:[S4(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){const t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(k4,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:P4(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function ys(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function E4(){return window}class _r extends T4{constructor(e,t=E4()){super(e),this.options=e,this.window=t,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",dn({},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",dn({},e)),this}setUser(e){return this.setKeyState("user",dn({},e)),this}clone(){const e=new _r(mo(dn({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){const t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[dn({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(mo(dn({},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=>ys(t,n))):!1}getRequestBlank(){return dn(mo(dn({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(dn({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{const{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;const t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>ys(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){const 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)=>{const l=this._state[n],r=Array.isArray(l)?l:null,o=e[n],s=Array.isArray(o)?o:null;return mo(dn({},t),{[n]:r||s?[...r||[],...s||[]]:dn(dn({},typeof l!="string"?l:{}),typeof o!="string"?o:{})})},this._state)}setKeyState(e,t){this._state[e]=t}}let ll=null;class cr{constructor(e,t,n={}){!ll&&e.dsn&&(this.sentryClient=new _r({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new ne.Subscription,this.options=e,this.context=n,ll=this)}destroy(){var e,t;(e=this.sentryClient)===null||e===void 0||e.destroy(),(t=this.sentrySubscription)===null||t===void 0||t.unsubscribe(),ll=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={}){const{sentryClient:l,context:r,options:o}=this,{sampleRate:s=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:d}=o,{errorType:h,category:_}=t;if(ne.isNonNullable(_)&&d.includes(_)||ne.isNonNullable(h)&&f.includes(h))return;if(Math.random()<=s||ne.isNonNullable(_)&&c.includes(_)||ne.isNonNullable(h)&&a.includes(h)){Object.keys(t).length&&l.setTags(Object.assign({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&l.setExtras(Object.assign(Object.assign({},r),n));try{h&&l.captureMessage(h,t.fatal?pl.fatal:pl.error),l.report(e)}catch(w){console.error(w)}}}static getInstance(){return ll}}var So;(function(i){i.AUTO="auto"})(So||(So={}));var De;(function(i){i.Thumb="thumb",i.Video="video",i.Ads="ads",i.Crashed="crashed",i.WaitingLive="waitingLive",i.WaitingRecord="waitingRecord"})(De||(De={}));var Fn;(function(i){i.Preroll="preroll",i.Midroll="midroll",i.Postroll="postroll"})(Fn||(Fn={}));var Xt;(function(i){i.INACTIVE="inactive",i.PLAYING="playing",i.PAUSED="paused"})(Xt||(Xt={}));var Un;(function(i){i[i.PictureInPicture=0]="PictureInPicture",i[i.DocumentPictureInPicture=1]="DocumentPictureInPicture"})(Un||(Un={}));var Ye;(function(i){i.PLAY="PLAY",i.PAUSE="PAUSE",i.REPLAY="REPLAY",i.BACKWARD_SEEK="BACKWARD_SEEK",i.FORWARD_SEEK="FORWARD_SEEK",i.SUBTITLES_ON="SUBTITLES_ON",i.SUBTITLES_OFF="SUBTITLES_OFF",i.RATE_UP="RATE_UP",i.RATE_DOWN="RATE_DOWN",i.EPISODE_PREV="EPISODE_PREV",i.EPISODE_NEXT="EPISODE_NEXT",i.MUTE="MUTE",i.VOLUME="VOLUME"})(Ye||(Ye={}));var ro;(function(i){i.FULL="FULL",i.COUNT="COUNT",i.SHORT="SHORT"})(ro||(ro={}));const Ec=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();const e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Ac=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),A4=i=>{const e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},No=()=>{const i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},Ic=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Lc=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},I4=i=>{const e=window.screen;return(l=>fi(void 0,void 0,void 0,function*(){return 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")(i))},L4=()=>({title:Y("hotkey_map_modal_title"),closeBtnText:Y("hotkey_map_modal_close_btn_text"),groups:[{title:Y("hotkey_map_group_title_common"),items:[{description:Y("hotkey_map_item_mute_description"),value:Y("hotkey_map_item_mute_value")},{description:Y("hotkey_map_item_volume_up_description"),value:Y("hotkey_map_item_volume_up_value")},{description:Y("hotkey_map_item_volume_down_description"),value:Y("hotkey_map_item_volume_down_value")},{description:Y("hotkey_map_item_pip_description"),value:Y("hotkey_map_item_pip_value")},{description:Y("hotkey_map_item_full_screen_description"),value:Y("hotkey_map_item_full_screen_value")},{description:Y("hotkey_map_item_show_hotkey_map_description"),value:Y("hotkey_map_item_show_hotkey_map_value")}]},{title:Y("hotkey_map_group_title_playback"),items:[{description:Y("hotkey_map_item_play_toggle_description"),value:Y("hotkey_map_item_play_toggle_value")},{description:Y("hotkey_map_item_seek_backward_description"),value:Y("hotkey_map_item_seek_backward_value")},{description:Y("hotkey_map_item_seek_forward_description"),value:Y("hotkey_map_item_seek_forward_value")},{description:Y("hotkey_map_item_fast_seek_backward_description"),value:Y("hotkey_map_item_fast_seek_backward_value")},{description:Y("hotkey_map_item_fast_seek_forward_description"),value:Y("hotkey_map_item_fast_seek_forward_value")},{description:Y("hotkey_map_item_rate_down_description"),value:Y("hotkey_map_item_rate_down_value")},{description:Y("hotkey_map_item_rate_up_description"),value:Y("hotkey_map_item_rate_up_value")},{description:Y("hotkey_map_item_prev_frame_description"),value:Y("hotkey_map_item_prev_frame_value")},{description:Y("hotkey_map_item_next_frame_description"),value:Y("hotkey_map_item_next_frame_value")},{description:Y("hotkey_map_item_jump_seek_description"),value:Y("hotkey_map_item_jump_seek_value")}]},{title:Y("hotkey_map_group_title_subtitles"),items:[{description:Y("hotkey_map_item_subtitles_toggle_description"),value:Y("hotkey_map_item_subtitles_toggle_value")}]},{title:Y("hotkey_map_group_title_episodes"),items:[{description:Y("hotkey_map_item_prev_episode_description"),value:ne.isMacLike()?Y("hotkey_map_item_prev_episode_mac_value"):Y("hotkey_map_item_prev_episode_pc_value")},{description:Y("hotkey_map_item_next_episode_description"),value:ne.isMacLike()?Y("hotkey_map_item_next_episode_mac_value"):Y("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:ne.debounceFn(this.onResize.bind(this),V1)},this.info={isActive$:new ne.ValueSubject(this.isActive()),type:Un.PictureInPicture}}isSupported(){const e=ne.getCurrentBrowser().browser===ne.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return fi(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){var e;return fi(this,void 0,void 0,function*(){if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return fi(this,void 0,void 0,function*(){!this.isSupported()||!this.isActive()||(yield 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,t;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)===null||t===void 0||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Object.assign({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)===null||t===void 0||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return fi(this,void 0,void 0,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var t,n;const r=e.pictureInPictureWindow;r&&(this.info.isActive$.next(!0),this.isRequested=!0,r.addEventListener("resize",this.eventHandlers.resize),(n=(t=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(t,e))}onLeavePictureInPicture(e){var t,n,l;const o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(n=(t=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(t,e),(l=this.playerDummyElement)===null||l===void 0||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)===null||n===void 0||n.call(t,e)}}function hl(i){return i instanceof wr}function V4(i){const e=Ct();return _n(()=>{e.getAdmanWrapper().startPostroll()}),[]}class M4 extends ke{constructor(e){super(),we(this,e,V4,null,be,{})}}function B4(i){Ze(i,"v-22jj8o",".container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}")}function N4(i){let e=Y("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=ze(e)},m(n,l){P(n,t,l)},p(n,l){l&3&&e!==(e=Y("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&et(t,e)},d(n){n&&S(t)}}}function R4(i){let e,t=Y("skip_ads_now")+"",n,l,r,o,s,a;return{c(){e=T("div"),n=ze(t),l=O(),r=N("svg"),o=N("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-22jj8o"),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-22jj8o")},m(c,f){P(c,e,f),p(e,n),p(e,l),p(e,r),p(r,o),s||(a=ve(e,"click",st(function(){Mn(i[2])&&i[2].apply(this,arguments)})),s=!0)},p(c,f){i=c},d(c){c&&S(e),s=!1,a()}}}function O4(i){let e;function t(r,o){return r[3]?R4:N4}let n=t(i),l=n(i);return{c(){e=T("div"),l.c(),u(e,"class","container v-22jj8o"),B(e,"container-mobile",i[4]),B(e,"skippable",i[3])},m(r,o){P(r,e,o),l.m(e,null)},p(r,[o]){n===(n=t(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e,null))),o&16&&B(e,"container-mobile",r[4]),o&8&&B(e,"skippable",r[3])},i:K,o:K,d(r){r&&S(e),l.d()}}}function D4(i,e,t){let n,{position:l=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:o=ne.noop}=e;const a=Ct().ui.isMobile;D(i,a,f=>t(4,n=f));let c;return i.$$set=f=>{"position"in f&&t(0,l=f.position),"secondsToWatchBeforeSkip"in f&&t(1,r=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,o=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,c=l>0&&l>=r)},[l,r,o,c,n,a]}class z4 extends ke{constructor(e){super(),we(this,e,D4,O4,be,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},B4)}}function F4(i){Ze(i,"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 H4(i){let e;return{c(){e=T("button"),e.textContent=`${Y("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(t,n){P(t,e,n)},p:K,i:K,o:K,d(t){t&&S(e)}}}class U4 extends ke{constructor(e){super(),we(this,e,null,H4,be,{},F4)}}function j4(i){Ze(i,"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 Wp=Object.create;var yr=Object.defineProperty,Zp=Object.defineProperties,Gp=Object.getOwnPropertyDescriptor,jp=Object.getOwnPropertyDescriptors,xp=Object.getOwnPropertyNames,_c=Object.getOwnPropertySymbols,Yp=Object.getPrototypeOf,bc=Object.prototype.hasOwnProperty,Qp=Object.prototype.propertyIsEnumerable;var bs=(i,e,t)=>e in i?yr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,je=(i,e)=>{for(var t in e||(e={}))bc.call(e,t)&&bs(i,t,e[t]);if(_c)for(var t of _c(e))Qp.call(e,t)&&bs(i,t,e[t]);return i},Pt=(i,e)=>Zp(i,jp(e));var Xp=(i,e)=>{for(var t in e)yr(i,t,{get:e[t],enumerable:!0})},gc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of xp(e))!bc.call(i,o)&&o!==t&&yr(i,o,{get:()=>e[o],enumerable:!(n=Gp(e,o))||n.enumerable});return i};var vc=(i,e,t)=>(t=i!=null?Wp(Yp(i)):{},gc(e||!i||!i.__esModule?yr(t,"default",{value:i,enumerable:!0}):t,i)),Jp=i=>gc(yr({},"__esModule",{value:!0}),i);var Fi=(i,e,t)=>(bs(i,typeof e!="symbol"?e+"":e,t),t);var tt=(i,e,t)=>new Promise((n,o)=>{var s=a=>{try{l(t.next(a))}catch(c){o(c)}},r=a=>{try{l(t.throw(a))}catch(c){o(c)}},l=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,r);l((t=t.apply(i,e)).next())});var q5={};Xp(q5,{GridTypes:()=>uo,InterfaceLanguage:()=>br.InterfaceLanguage,VERSION:()=>Mo,VKNumericLanguage:()=>br.VKNumericLanguage,VideoFormat:()=>ps.VideoFormat,VideoQuality:()=>ps.VideoQuality,loadVKLangPack:()=>br.loadVKLangPack,registerPlayerWebComponent:()=>U5});module.exports=Jp(q5);function R(){}function gs(i,e){for(let t in e)i[t]=e[t];return i}function vs(i){return i()}function Zr(){return Object.create(null)}function xe(i){i.forEach(vs)}function wi(i){return typeof i=="function"}function G(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Wr;function ys(i,e){return Wr||(Wr=document.createElement("a")),Wr.href=e,i===Wr.href}function yc(i){return Object.keys(i).length===0}function Kt(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 We(i){let e;return Kt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Kt(e,t))}function ji(i,e,t,n){if(i){let o=wc(i,e,t,n);return i[0](o)}}function wc(i,e,t,n){return i[1]&&n?gs(t.ctx.slice(),i[1](n(e))):t.ctx}function xi(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 Yi(i,e,t,n,o,s){if(o){let r=wc(e,t,n,s);i.p(r,o)}}function Qi(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 kc(i){return i==null?"":i}var So=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Gr=class i{constructor(e){Fi(this,"_listeners","WeakMap"in So?new WeakMap:void 0);Fi(this,"_observer");Fi(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)})}};Gr.entries="WeakMap"in So?new WeakMap:void 0;var Cc=!1;function Sc(){Cc=!0}function Tc(){Cc=!1}function d(i,e){i.appendChild(e)}function ye(i,e,t){let n=Pc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,t2(n,o)}}function Pc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function t2(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 Hi(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 Et(i){return function(e){return e.preventDefault(),i.call(this,e)}}function et(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 Ic(i){return Array.from(i.childNodes)}function He(i,e){e=""+e,i.data!==e&&(i.data=e)}function Mt(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var jr;function i2(){if(jr===void 0){jr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){jr=!0}}return jr}function Zo(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=i2(),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 Ec(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function wn(i,e){return new i(e)}var ao;function eo(i){ao=i}function Go(){if(!ao)throw new Error("Function called outside component initialization");return ao}function Vt(i){Go().$$.on_mount.push(i)}function qn(i){Go().$$.on_destroy.push(i)}function jo(i,e){return Go().$$.context.set(i,e),e}function xo(i){return Go().$$.context.get(i)}function wr(){return Go().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var To=[];var me=[],Qo=[],ks=[],Vc=Promise.resolve(),Cs=!1;function Ss(){Cs||(Cs=!0,Vc.then(xr))}function Bn(){return Ss(),Vc}function Kn(i){Qo.push(i)}function Me(i){ks.push(i)}var ws=new Set,Yo=0;function xr(){if(Yo!==0)return;let i=ao;do{try{for(;Yo<To.length;){let e=To[Yo];Yo++,eo(e),a2(e.$$)}}catch(e){throw To.length=0,Yo=0,e}for(eo(null),To.length=0,Yo=0;me.length;)me.pop()();for(let e=0;e<Qo.length;e+=1){let t=Qo[e];ws.has(t)||(ws.add(t),t())}Qo.length=0}while(To.length);for(;ks.length;)ks.pop()();Cs=!1,ws.clear(),eo(i)}function a2(i){if(i.fragment!==null){i.update(),xe(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Kn)}}function Lc(i){let e=[],t=[];Qo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Qo=e}var Yr=new Set,Po;function ce(){Po={r:0,c:[],p:Po}}function fe(){Po.r||xe(Po.c),Po=Po.p}function m(i,e){i&&i.i&&(Yr.delete(i),i.i(e))}function h(i,e,t,n){if(i&&i.o){if(Yr.has(i))return;Yr.add(i),Po.c.push(()=>{Yr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ac(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 Bc(i){return typeof i=="object"&&i!==null?i:{}}var u2=["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"],c2=new Set([...u2]);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),Kn(()=>{let s=i.$$.on_mount.map(vs).filter(wi);i.$$.on_destroy?i.$$.on_destroy.push(...s):xe(s),i.$$.on_mount=[]}),o.forEach(Kn)}function F(i,e){let t=i.$$;t.fragment!==null&&(Lc(t.after_update),xe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function d2(i,e){i.$$.dirty[0]===-1&&(To.push(i),Ss(),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=ao;eo(i);let c=i.$$={fragment:null,ctx:[],props:s,update:R,not_equal:o,bound:Zr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Zr(),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&&d2(i,p)),_}):[],c.update(),f=!0,xe(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){Sc();let p=Ic(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),Tc(),xr()}eo(a)}var m2;typeof HTMLElement=="function"&&(m2=class extends HTMLElement{constructor(e,t,n){super();Fi(this,"$$componentCtor");Fi(this,"$$slots");Fi(this,"$$component");Fi(this,"$$connected",!1);Fi(this,"$$data",{});Fi(this,"$$reflecting",!1);Fi(this,"$$props_definition",{});Fi(this,"$$listeners",{});Fi(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))}}connectedCallback(){return tt(this,null,function*(){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(yield Promise.resolve(),!this.$$connected)return;let n={},o=Ec(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]=Rc(r,s.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Pt(je({},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]=Rc(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 Rc(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(){Fi(this,"$$");Fi(this,"$$set")}$destroy(){F(this,1),this.$destroy=R}$on(e,t){if(!wi(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&&!yc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Nc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Nc);var zL=require("@vkontakte/videoplayer-core"),Wn=require("@vkontakte/videoplayer-shared"),np=require("@vkontakte/videoplayer-statistics");var Xo=require("@vkontakte/videoplayer-shared");var p2={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}},Dc=i=>(0,Xo.fillWithDefault)(i,p2),Oc=i=>jo("ui-config",i),Dt=()=>xo("ui-config");var kr="vk_player_debug_panel_opened";var Fc="videoplayer",Hc="videoplayer";var jn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},zc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Uc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),qc=new Set(["ShiftRight","ShiftLeft"]);var Kc=["TIMELINE"],Cr=[...Kc,"GRAPH_BUTTON"],Ts=[...Kc,"PLAY_BUTTON"],Qr=[...Cr,"PLAY_BUTTON"];var uo=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(uo||{}),Eo={xs:0,s:1,m:2,l:3,xl:4};var Jo=[];function Rn(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=!Jo.length;for(let c of n)c[1](),Jo.push(c,i);if(a){for(let c=0;c<Jo.length;c+=2)Jo[c][0](Jo[c+1]);Jo.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 ri(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Rn(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=wi(b)?b:R},g=o.map((b,w)=>Kt(b,S=>{c[w]=S,f&=~(1<<w),a&&_()},()=>{f|=1<<w}));return a=!0,_(),function(){xe(g),p(),a=!1}})}var Sr=require("@vkontakte/videoplayer-shared"),Wc=require("@vkontakte/videoplayer-core"),Zc=require("@vkontakte/videoplayer-statistics");var Xr="prod",Mo="1.1.36-dev.eb0e2df4.0";var Jr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Gc=Symbol("storeContext"),jc=Symbol("microStoresContext"),xc=(i,e)=>{jo(Gc,i),jo(jc,e),Xr==="dev"&&(window.app={store:i,microStores:e})},Ge=()=>{let i=xo(Gc);return(0,Sr.assertNonNullable)(i,"Store context is empty!"),i},Nn=()=>{let i=xo(jc);return(0,Sr.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>Ps(i,i.getValue(),e),Ps=(i,e,t)=>Rn(e,n=>{let o=i.subscribe(s=>{n(s),t==null||t(s)});return()=>o.unsubscribe()}),Yc=(i,e,t)=>{var b,w,S,I;let n=i.info,{width:o,height:s}=We(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=`${Mo} (core: ${Wc.VERSION}, stat: ${Zc.VERSION}, shared: ${Sr.VERSION})`,f=We(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":We(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:`${We(t.state.positionExact$)}s`,State:`${We(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
|
+
`)},Qc=(i,e,t)=>{let n=i.info,{width:o,height:s}=We(t.ui.playerSize),r={version:Mo,viewport:`${o}x${s}`,volume:Math.round(We(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let c=n.intrinsicVideoSize$.getValue();c&&(r.videoSize=`${c.width}x${c.height}`);let f=n.currentBuffer$.getValue();f&&(r.buffer=Math.max(f.end-We(t.state.positionExact$),0));let p=n.throughputEstimation$.getValue();p&&(r.speed=p);let _=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},Xc=(i,e)=>Jr(i,e,"mp4");var Dn=require("@vkontakte/videoplayer-shared"),Jc="vk_player_prefer_traffic_saving_enabled",$c="vk_player_preferred_volume",ef="vk_player_prefer_volume_mute",Is="vk_player_preferred_quality",tf=i=>i>1?1:i<0?0:i,Es=i=>Dn.safeStorage.set($c,tf(i).toString(10)),$r=()=>{let i=Dn.safeStorage.get($c);return(0,Dn.isNullable)(i)?void 0:tf(parseFloat(i))},nf=(i,e)=>Dn.safeStorage.set(Is,JSON.stringify({videoId:i,value:e})),Ms=()=>Dn.safeStorage.remove(Is),of=i=>{let e=Dn.safeStorage.get(Is);if((0,Dn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ms();return}return n},rf=(i,e)=>{e?Dn.safeStorage.set(i,"true"):Dn.safeStorage.remove(i)},lf=i=>Dn.safeStorage.get(i)==="true",el=i=>rf(ef,i),sf=()=>lf(ef),af=i=>rf(Jc,i),uf=()=>lf(Jc);var Bm=require("@vkontakte/videoplayer-core"),as=require("@vkontakte/videoplayer-shared");function h2(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 _2(i,e,t){let{ariaLabel:n=""}=e;return i.$$set=o=>{"ariaLabel"in o&&t(0,n=o.ariaLabel)},[n]}var Vs=class extends j{constructor(e){super(),X(this,e,_2,h2,G,{ariaLabel:0})}},tl=Vs;var $o=require("@vkontakte/videoplayer-shared");var b2={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"},cf=b2;var g2={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"},ff=g2;var to=new Map;to.set($o.InterfaceLanguage.EN,ff);to.set($o.InterfaceLanguage.RU,cf);var df=new Map,Ls=({language:i,pack:e,fallback:t})=>{if(to.has(i)){let n=to.get(i);to.set(i,je(je({},n),e))}else to.set(i,e);df.set(i,t)},As=i=>to.has(i),Bs=(i,e,t,n)=>{var r;let o=to.get(i),s=o==null?void 0:o[e];if((0,$o.isNullable)(s)){let l=(r=df.get(i))!=null?r:n,a=l?to.get(l):void 0;s=a==null?void 0:a[e]}return(0,$o.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}=Ge(),n=We(t),o=Dt();return Bs(n,i,e,o.defaultLanguage)};var R8=require("@vkontakte/videoplayer-core");var er;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(er||(er={}));var v2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,y2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,w2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,il="?",k2="X-Sentry-Auth",C2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function S2(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=v2.exec(t[s]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||il,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=w2.exec(t[s]))o={filename:n[2],function:n[1]||il,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=y2.exec(t[s]))s===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||il,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=il),e.push(o)}return e.length?{value:mf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function mf(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function T2(i){try{let e=S2(i);if(e)return e}catch(e){}return{value:mf(i),type:i&&i.name,stacktrace:{frames:[]}}}function P2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var nl=class{constructor(e){if(e&&e.dsn){let t=C2.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 Pt(je({},this.getRequestBlank()),{exception:{values:[T2(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(k2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:P2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function pf(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function I2(){return window}var ol=class i extends nl{constructor(e,t=I2()){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",je({},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",je({},e)),this}setUser(e){return this.setKeyState("user",je({},e)),this}clone(){let e=new i(Pt(je({},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:[je({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Pt(je({},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=>pf(t,n))):!1}getRequestBlank(){return je(Pt(je({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(je({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=>pf(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 Pt(je({},t),{[n]:s||l?[...s||[],...l||[]]:je(je({},typeof o!="string"?o:{}),typeof r!="string"?r:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};var Vo=require("@vkontakte/videoplayer-shared");var rl=null,Lo=class{constructor(e,t,n={}){!rl&&e.dsn&&(this.sentryClient=new ol({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Vo.Subscription,this.options=e,this.context=n,rl=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),rl=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,Vo.isNonNullable)(g)&&p.includes(g)||(0,Vo.isNonNullable)(_)&&f.includes(_))return;if(Math.random()<=l||(0,Vo.isNonNullable)(g)&&c.includes(g)||(0,Vo.isNonNullable)(_)&&a.includes(_)){Object.keys(t).length&&o.setTags(je({version:this.version},t)),(Object.keys(s).length||Object.keys(n).length)&&o.setExtras(je(je({},s),n));try{_&&o.captureMessage(_,t.fatal?er.fatal:er.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return rl}};var ll=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()},sl=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),hf=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},co=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},al=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},ul=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},_f=i=>{let e=window.screen;return(o=>tt(void 0,null,function*(){return 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 Rs=require("@vkontakte/videoplayer-shared"),bf=()=>({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,Rs.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,Rs.isMacLike)()?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var fo=require("@vkontakte/videoplayer-shared");var Ao=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,fo.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new fo.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,fo.getCurrentBrowser)().browser===fo.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return tt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return tt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return tt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield 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=je({},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)}dispose(){return tt(this,null,function*(){this.unregistryEventHandlers(),yield 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 Bo(i){return i instanceof Ao}function E2(i){let e=Ge();return Vt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Os=class extends j{constructor(e){super(),X(this,e,E2,null,G,{})}},gf=Os;var vf=require("@vkontakte/videoplayer-shared");function M2(i){ye(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function V2(i){let e=z("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=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)})+"")&&He(t,e)},d(n){n&&v(t)}}}function L2(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",et(function(){wi(i[2])&&i[2].apply(this,arguments)})),l=!0)},p(c,f){i=c},d(c){c&&v(e),l=!1,a()}}}function A2(i){let e;function t(s,r){return s[3]?L2:V2}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 B2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:s=0}=e,{skipAd:r=vf.noop}=e,a=Ge().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 Fs=class extends j{constructor(e){super(),X(this,e,B2,A2,G,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},M2)}},yf=Fs;function R2(i){ye(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 N2(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 Hs=class extends j{constructor(e){super(),X(this,e,null,N2,G,{},R2)}},wf=Hs;function D2(i){ye(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 Cs(i){let e;return{c(){e=T("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(t,n){P(t,e,n)},d(t){t&&S(e)}}}function Ss(i){let e,t;return e=new z4({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&32&&(r.position=n[5]),l&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ps(i){let e,t;return e=new M4({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ts(i){let e,t;return e=new U4({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function q4(i){let e,t,n,l,r,o,s,a=i[0]&&Cs(),c=i[3]&&Ss(i),f=i[7]&&Ps(),d=i[4]&&Ts();return{c(){e=T("div"),a&&a.c(),t=O(),n=T("video"),l=O(),c&&c.c(),r=O(),f&&f.c(),o=O(),d&&d.c(),Ft(n,"width","100%"),Ft(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(h,_){P(h,e,_),a&&a.m(e,null),p(e,t),p(e,n),i[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),i[20](e),s=!0},p(h,[_]){h[0]?a||(a=Cs(),a.c(),a.m(e,t)):a&&(a.d(1),a=null),h[3]?c?(c.p(h,_),_&8&&m(c,1)):(c=Ss(h),c.c(),m(c,1),c.m(e,r)):c&&(de(),v(c,1,1,()=>{c=null}),me()),h[7]?f?_&128&&m(f,1):(f=Ps(),f.c(),m(f,1),f.m(e,o)):f&&(de(),v(f,1,1,()=>{f=null}),me()),h[4]?d?_&16&&m(d,1):(d=Ts(),d.c(),m(d,1),d.m(e,null)):d&&(de(),v(d,1,1,()=>{d=null}),me())},i(h){s||(m(c),m(f),m(d),s=!0)},o(h){v(c),v(f),v(d),s=!1},d(h){h&&S(e),a&&a.d(),i[19](null),c&&c.d(),f&&f.d(),d&&d.d(),i[20](null)}}}function W4(i,e,t){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=Ct(),_=h.state.isEnded$;D(i,_,R=>t(7,s=R));const g=h.ui.isMobile;D(i,g,R=>t(0,l=R));let w,b,C=!1;const k=h.ads.playbackState;D(i,k,R=>t(18,n=R));const y=h.ads.canSkip,M=h.ads.position;D(i,M,R=>t(5,r=R));const q=h.ads.secondsToWatchBeforeSkip;D(i,q,R=>t(6,o=R));let I,z;_n(()=>{const R=new AbortController;let te=()=>{R.abort()};const X=h.getAdmanWrapper();if(!a){X.onAdmanLoadingError();return}const{width:G,height:A}=tt(h.ui.playerSize),V=tt(h.ui.isFullscreen),x=tt(h.ui.isAutoplay),L={width:G,height:A,isFullscreen:V,isAutoplay:x,adsContainer:w,adsVideoElement:b,slotId:a,params:c,previewParam:f,duration:d};return window.AdmanHTML?(X.initAdman(L),C=!0):X.loadAdman(R.signal).then(()=>{X.initAdman(L),C=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!C&&te()}});function ae(R){Ce[R?"unshift":"push"](()=>{b=R,t(2,b)})}function se(R){Ce[R?"unshift":"push"](()=>{w=R,t(1,w)})}return i.$$set=R=>{"adsSlotId"in R&&t(14,a=R.adsSlotId),"adsParams"in R&&t(15,c=R.adsParams),"adsPreviewParam"in R&&t(16,f=R.adsPreviewParam),"duration"in R&&t(17,d=R.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,I=y&&n!==Xt.INACTIVE),i.$$.dirty&262145&&t(4,z=l&&n!==Xt.INACTIVE)},[l,w,b,I,z,r,o,s,h,_,g,k,M,q,a,c,f,d,n,ae,se]}class Vc extends ke{constructor(e){super(),we(this,e,W4,q4,be,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},j4)}}const jn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i);const t=Math.floor(e/(60*60));e-=t*(60*60);const n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function Z4(i){let e,t,n;return{c(){e=N("svg"),t=N("path"),n=N("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(l,r){P(l,e,r),p(e,t),p(e,n)},d(l){l&&S(e)}}}function K4(i){let e,t,n;return{c(){e=N("svg"),t=N("rect"),n=N("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(l,r){P(l,e,r),p(e,t),p(e,n)},d(l){l&&S(e)}}}function G4(i){let e;function t(r,o){return r[0]?K4:Z4}let n=t(i),l=n(i);return{c(){l.c(),e=mt()},m(r,o){l.m(r,o),P(r,e,o)},p(r,[o]){n!==(n=t(r))&&(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},i:K,o:K,d(r){r&&S(e),l.d(r)}}}function Y4(i,e,t){let{isActive:n=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,n=l.isActive)},[n]}class Mc extends ke{constructor(e){super(),we(this,e,Y4,G4,be,{isActive:0})}}function Q4(i){Ze(i,"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 X4(i){let e=jn(i[4]-i[3])+"",t;return{c(){t=ze(e)},m(n,l){P(n,t,l)},p(n,l){l&24&&e!==(e=jn(n[4]-n[3])+"")&&et(t,e)},i:K,o:K,d(n){n&&S(t)}}}function J4(i){let e,t,n;return t=new Mc({props:{isActive:!0}}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","thumb-timer-live-icon v-7pnl2h")},m(l,r){P(l,e,r),F(t,e,null),n=!0},p:K,i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function x4(i){let e,t,n,l,r,o,s;const a=[J4,X4],c=[];function f(d,h){return d[1]?0:1}return r=f(i),o=c[r]=a[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div>',n=O(),l=T("span"),o.c(),u(t,"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"),B(e,"live",i[1]),B(e,"hidden",i[0]),B(e,"playing",i[2])},m(d,h){P(d,e,h),p(e,t),p(e,n),p(e,l),c[r].m(l,null),s=!0},p(d,[h]){let _=r;r=f(d),r===_?c[r].p(d,h):(de(),v(c[_],1,1,()=>{c[_]=null}),me(),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)&&B(e,"live",d[1]),(!s||h&1)&&B(e,"hidden",d[0]),(!s||h&4)&&B(e,"playing",d[2])},i(d){s||(m(o),s=!0)},o(d){v(o),s=!1},d(d){d&&S(e),c[r].d()}}}function $4(i,e,t){let{isHidden:n=!1}=e,{isLive:l=!1}=e,{isPlaying:r=!1}=e,{position:o}=e,{duration:s}=e;return i.$$set=a=>{"isHidden"in a&&t(0,n=a.isHidden),"isLive"in a&&t(1,l=a.isLive),"isPlaying"in a&&t(2,r=a.isPlaying),"position"in a&&t(3,o=a.position),"duration"in a&&t(4,s=a.duration)},[n,l,r,o,s]}class Bc extends ke{constructor(e){super(),we(this,e,$4,x4,be,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Q4)}}const fr=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const 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)}}},so=i=>{i.stopPropagation(),i.preventDefault()},ep=i=>{var e;let t=i.previousElementSibling;t||(t=(e=i.parentNode)===null||e===void 0?void 0:e.lastElementChild),t==null||t.focus()},tp=i=>{var e;let t=i.nextElementSibling;t||(t=(e=i.parentNode)===null||e===void 0?void 0:e.firstElementChild),t==null||t.focus()},ip=i=>{const e=i.code;return e===Ae.Tab&&!i.shiftKey||e===Ae.ArrowDown},np=i=>{const e=i.code;return e===Ae.Tab||e===Ae.ArrowUp},Nc=i=>i.code===Ae.Escape,op=i=>i.code===Ae.ArrowLeft,Rc=(i,e=!0)=>{const t=i.code;return[Ae.Enter,Ae.Space].includes(t)||!e&&t===Ae.ArrowRight},Oc=i=>{if(ip(i)){so(i),tp(i.target);return}np(i)&&(so(i),ep(i.target))},kr=i=>(i==null?void 0:i.detail)===0,yr=(i,e,t)=>fi(void 0,void 0,void 0,function*(){yield Oo(),i&&!i.classList.contains("opened")&&!e&&tt(t)&&(t.set(!1),i.focus())}),Cr=(i,e,t)=>fi(void 0,void 0,void 0,function*(){yield Oo(),!!i&&e&&t&&i.firstChild.focus()}),rl=(i,e,t)=>fi(void 0,void 0,void 0,function*(){!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},V0))}),Dc=(i,e)=>{Oc(i),Nc(i)&&(so(i),e())},sl=(i,e,t)=>fi(void 0,void 0,void 0,function*(){if(Rc(i,!1)){so(i),e(),yield Oo();const n=t();n==null||n.focus()}}),al=(i,e,t,n)=>fi(void 0,void 0,void 0,function*(){if(Oc(i),op(i)){so(i),e(),t.set(!0);return}Nc(i)&&(so(i),n())}),on=(i,e)=>{Rc(i)&&(so(i),e())};function lp(i){Ze(i,"v-gew86s","ul.v-gew86s{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.v-gew86s{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-gew86s:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function Es(i){var M;let e,t,n,l,r,o,s=(i[9].features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug"))+"",a,c,f,d=Y("menu_debug_overlay")+"",h,_,g,w,b=i[9].features.copyVideoLink&&((M=i[8].callbacks)==null?void 0:M.onCopyVideoLink)&&rp(i),C=i[11]&&i[5]!==$e.ChromecastState.CONNECTED&&!i[16]&&Is(i),k=i[9].features.videoRotate&&!i[16]&&sp(i),y=i[9].showSupport&&!i[6]&&Ls(i);return{c(){e=T("ul"),b&&b.c(),t=O(),C&&C.c(),n=O(),k&&k.c(),l=O(),y&&y.c(),r=O(),o=T("li"),a=ze(s),c=O(),f=T("li"),h=ze(d),u(o,"tabindex","0"),u(o,"role","menuitem"),u(o,"aria-label",i[9].features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug")),u(o,"class","v-gew86s"),u(f,"tabindex","0"),u(f,"role","menuitem"),u(f,"aria-label",_=i[7]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable")),u(f,"class","v-gew86s"),u(e,"role","menu"),Ft(e,"top",i[3]+"px"),Ft(e,"left",i[2]+"px"),u(e,"class","v-gew86s")},m(q,I){P(q,e,I),b&&b.m(e,null),p(e,t),C&&C.m(e,null),p(e,n),k&&k.m(e,null),p(e,l),y&&y.m(e,null),p(e,r),p(e,o),p(o,a),p(e,c),p(e,f),p(f,h),i[40](e),g||(w=[ve(o,"click",st(i[19])),ve(o,"keydown",i[29]),ve(f,"click",st(i[20])),ve(f,"keydown",i[30]),ve(e,"contextmenu",Jt(i[37])),ve(e,"keydown",i[23])],g=!0)},p(q,I){var z;q[9].features.copyVideoLink&&((z=q[8].callbacks)!=null&&z.onCopyVideoLink)&&b.p(q,I),q[11]&&q[5]!==$e.ChromecastState.CONNECTED&&!q[16]?C?C.p(q,I):(C=Is(q),C.c(),C.m(e,n)):C&&(C.d(1),C=null),q[9].features.videoRotate&&!q[16]&&k.p(q,I),q[9].showSupport&&!q[6]?y?y.p(q,I):(y=Ls(q),y.c(),y.m(e,r)):y&&(y.d(1),y=null),I[0]&128&&_!==(_=q[7]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable"))&&u(f,"aria-label",_),I[0]&8&&Ft(e,"top",q[3]+"px"),I[0]&4&&Ft(e,"left",q[2]+"px")},d(q){q&&S(e),b&&b.d(),C&&C.d(),k&&k.d(),y&&y.d(),i[40](null),g=!1,nt(w)}}}function rp(i){let e,t=Y("menu_copy_video_link")+"",n,l,r,o,s,a=!i[4]&&!i[16]&&As(i);return{c(){e=T("li"),n=ze(t),l=O(),a&&a.c(),r=mt(),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",Y("menu_copy_video_link")),u(e,"class","v-gew86s")},m(c,f){P(c,e,f),p(e,n),P(c,l,f),a&&a.m(c,f),P(c,r,f),o||(s=[ve(e,"click",st(i[38])),ve(e,"keydown",i[24])],o=!0)},p(c,f){!c[4]&&!c[16]?a?a.p(c,f):(a=As(c),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(c){c&&(S(e),S(l),S(r)),a&&a.d(c),o=!1,nt(s)}}}function As(i){let e,t=Y("menu_copy_video_link_with_timestamp")+"",n,l,r;return{c(){e=T("li"),n=ze(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",Y("menu_copy_video_link_with_timestamp")),u(e,"class","v-gew86s")},m(o,s){P(o,e,s),p(e,n),l||(r=[ve(e,"click",st(i[39])),ve(e,"keydown",i[25])],l=!0)},p:K,d(o){o&&S(e),l=!1,nt(r)}}}function Is(i){let e,t=Y("menu_pip")+"",n,l,r;return{c(){e=T("li"),n=ze(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",Y("menu_pip")),u(e,"class","v-gew86s")},m(o,s){P(o,e,s),p(e,n),l||(r=[ve(e,"click",st(i[21])),ve(e,"keydown",i[26])],l=!0)},p:K,d(o){o&&S(e),l=!1,nt(r)}}}function sp(i){let e,t=Y("menu_video_rotate")+"",n,l,r;return{c(){e=T("li"),n=ze(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",Y("aria_label_menu_rotate")),u(e,"class","v-gew86s")},m(o,s){P(o,e,s),p(e,n),l||(r=[ve(e,"click",st(i[17])),ve(e,"keydown",i[27])],l=!0)},p:K,d(o){o&&S(e),l=!1,nt(r)}}}function Ls(i){let e,t=Y("menu_report")+"",n,l,r;return{c(){e=T("li"),n=ze(t),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`),u(e,"class","v-gew86s")},m(o,s){P(o,e,s),p(e,n),l||(r=[ve(e,"click",st(i[18])),ve(e,"keydown",i[28])],l=!0)},p:K,d(o){o&&S(e),l=!1,nt(r)}}}function ap(i){let e,t=i[1]&&Es(i);return{c(){t&&t.c(),e=mt()},m(n,l){t&&t.m(n,l),P(n,e,l)},p(n,l){n[1]?t?t.p(n,l):(t=Es(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:K,o:K,d(n){n&&S(e),t&&t.d(n)}}}function up(i,e,t){var Ie;let n,l,r,o,s,{visible:a=!1}=e,{supportLink:c}=e,{x:f=0}=e,{y:d=0}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:_=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:w}=e,b=0,C=0;const k=Ct(),y=wn(),M=k.ui.contextMenuVisible,q=k.ui.debugPanelVisible;D(i,q,ce=>t(7,s=ce));const I=k.webApi.pictureInPictureApi,z=(Ie=k.webApi.pictureInPictureApi)==null?void 0:Ie.info.isActive$;D(i,z,ce=>t(6,o=ce));const ae=k.state.chromecastState$;D(i,ae,ce=>t(5,r=ce));const se=k.state.isLive$;D(i,se,ce=>t(4,l=ce));const R=k.state.positionExact$;D(i,R,ce=>t(41,n=ce));const te=k.state.isInteractive,X=()=>{M.set(!1)},G=(ce,he)=>{if(!g||!h||!_)return;const re=g.getBoundingClientRect(),Te=h.getBoundingClientRect();t(2,b=ce-Te.left),t(3,C=he-Te.top),b+re.width>Te.width&&t(2,b=Te.width-re.width),C+re.height>Te.height&&t(3,C=Te.height-re.height),t(2,b=Math.max(b,0)),t(3,C=Math.max(C,0))},A=()=>{X(),k.actions.internal.videoRotate()},V=()=>{window.open(c,"_blank"),X(),k.actions.internal.pause()},x=()=>{const ce=k.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){const he=new Blob([...ce],{type:"plain/text"}),re=window.URL.createObjectURL(he);R1(re,"vk_player_debug_info","txt")}else fr(k.actions.internal.getDebugTextData());X(),w==null||w()},L=()=>{q.set(!0),X(),w==null||w()},ie=()=>xi(this,null,function*(){try{I!=null&&I.isActive()?yield I==null?void 0:I.remove():yield I==null?void 0:I.request()}finally{X(),w==null||w()}}),Ee=(ce=!1)=>{var he,re;if((he=k.callbacks)!=null&&he.onCopyVideoLink){const Te=(re=k.callbacks)==null?void 0:re.onCopyVideoLink(ce,n);Te&&fr(Te)}X()},ye=ce=>{Dc(ce,X)},Le=ce=>{on(ce,()=>Ee())},Ve=ce=>{on(ce,()=>Ee(!0))},_e=ce=>{on(ce,()=>ie())},Se=ce=>{on(ce,()=>A())},W=ce=>{on(ce,()=>V())},$=ce=>{on(ce,()=>x())},fe=ce=>{on(ce,()=>L())};function ue(ce){Po.call(this,i,ce)}const Fe=()=>Ee(),Oe=()=>Ee(!0);function Me(ce){Ce[ce?"unshift":"push"](()=>{g=ce,t(0,g)})}return i.$$set=ce=>{"visible"in ce&&t(1,a=ce.visible),"supportLink"in ce&&t(31,c=ce.supportLink),"x"in ce&&t(32,f=ce.x),"y"in ce&&t(33,d=ce.y),"playerContainerRef"in ce&&t(34,h=ce.playerContainerRef),"controlsContainerRef"in ce&&t(35,_=ce.controlsContainerRef),"menuElementRef"in ce&&t(0,g=ce.menuElementRef),"returnFocus"in ce&&t(36,w=ce.returnFocus)},i.$$.update=()=>{i.$$.dirty[0]&1|i.$$.dirty[1]&30&&g&&h&&_&&G(f,d)},[g,a,b,C,l,r,o,s,k,y,q,I,z,ae,se,R,te,A,V,x,L,ie,Ee,ye,Le,Ve,_e,Se,W,$,fe,c,f,d,h,_,w,ue,Fe,Oe,Me]}class cp extends ke{constructor(e){super(),we(this,e,up,ap,be,{visible:1,supportLink:31,x:32,y:33,playerContainerRef:34,controlsContainerRef:35,menuElementRef:0,returnFocus:36},lp,[-1,-1])}}class fp{constructor(e){this.value=e,this.next=null}}class Ql{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const t=new fp(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(){const e=[];let t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}}function dp(i){Ze(i,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function mp(i){let e,t;return{c(){e=T("div"),t=T("canvas"),u(t,"class","v-1ssl9eb"),u(e,"class","container v-1ssl9eb")},m(n,l){P(n,e,l),p(e,t),i[3](t)},p:K,i:K,o:K,d(n){n&&S(e),i[3](null)}}}const Xl=16,Jl=120,Vs=60;function pp(i,e,t,n,l){l===0&&(l=1),i.fillStyle="#fff",i.fillRect(e,t,n,l)}function hp(i,e,t){let{values:n=[]}=e,l,r;const o=Jl/Vs;_n(()=>{t(0,l.width=Jl,l),t(0,l.height=Xl,l),t(2,r=l.getContext("2d"))});function s(a){Ce[a?"unshift":"push"](()=>{l=a,t(0,l)})}return i.$$set=a=>{"values"in a&&t(1,n=a.values)},i.$$.update=()=>{if(i.$$.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,Jl,Xl);let c=Vs-1;for(let f=n.length-1;f>=0;f--){const d=c*o,h=a>0?Xl*(n[f]/a):0;pp(r,d,0,o,h),c--}}},[l,n,r,s]}class Sr extends ke{constructor(e){super(),we(this,e,hp,mp,be,{values:1},dp)}}function vp(i){Ze(i,"v-1gy2e68",".container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}")}function Ms(i){let e,t,n,l,r=i[0].id+"",o;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=O(),l=T("span"),o=ze(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){P(s,e,a),p(e,t),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&&S(e)}}}function Bs(i){let e,t,n,l,r=i[0].provider+"",o;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=O(),l=T("span"),o=ze(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){P(s,e,a),p(e,t),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&&S(e)}}}function Ns(i){let e,t,n,l,r=i[0].viewport+"",o;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=O(),l=T("span"),o=ze(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){P(s,e,a),p(e,t),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&&S(e)}}}function Rs(i){let e,t,n,l,r=i[0].videoSize+"",o;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=O(),l=T("span"),o=ze(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){P(s,e,a),p(e,t),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&&S(e)}}}function Os(i){let e,t,n,l,r=i[0].cdn+"",o;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=O(),l=T("span"),o=ze(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){P(s,e,a),p(e,t),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&&S(e)}}}function Ds(i){let e,t,n,l,r=i[0].volume+"",o,s;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=O(),l=T("span"),o=ze(r),s=ze(" %"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){P(a,e,c),p(e,t),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&&S(e)}}}function zs(i){let e,t,n,l,r=i[0].buffer.toFixed(2)+"",o,s;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=O(),l=T("span"),o=ze(r),s=ze(" s"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){P(a,e,c),p(e,t),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&&S(e)}}}function Fs(i){let e,t,n,l,r,o,s=i[0].speed.toFixed(2)+"",a,c,f;return l=new Sr({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=O(),j(l.$$.fragment),r=O(),o=T("span"),a=ze(s),c=ze(" Kbps"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(d,h){P(d,e,h),p(e,t),p(e,n),F(l,e,null),p(e,r),p(e,o),p(o,a),p(o,c),f=!0},p(d,h){const _={};h&32&&(_.values=d[5]),l.$set(_),(!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&&S(e),H(l)}}}function Hs(i){let e,t,n,l,r,o,s=i[0].bitrate.toFixed(2)+"",a,c,f;return l=new Sr({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=O(),j(l.$$.fragment),r=O(),o=T("span"),a=ze(s),c=ze(" Kbps"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(d,h){P(d,e,h),p(e,t),p(e,n),F(l,e,null),p(e,r),p(e,o),p(o,a),p(o,c),f=!0},p(d,h){const _={};h&64&&(_.values=d[6]),l.$set(_),(!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&&S(e),H(l)}}}function gp(i){let e,t,n,l,r,o,s,a,c=i[0].version+"",f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae,se,R,te,X,G,A,V,x,L,ie,Ee,ye,Le,Ve,_e,Se=i[0].id&&Ms(i),W=i[0].provider&&Bs(i),$=i[0].viewport&&Ns(i),fe=i[0].videoSize&&Rs(i),ue=i[0].cdn&&Os(i),Fe=i[0].volume&&Ds(i),Oe=i[0].buffer&&zs(i),Me=i[0].speed&&Fs(i),Ie=i[0].bitrate&&Hs(i);return L=new Sr({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=O(),l=T("div"),r=T("div"),o=T("div"),o.textContent="Version",s=O(),a=T("span"),f=ze(c),d=O(),Se&&Se.c(),h=O(),W&&W.c(),_=O(),$&&$.c(),g=O(),fe&&fe.c(),w=O(),ue&&ue.c(),b=O(),Fe&&Fe.c(),C=O(),Oe&&Oe.c(),k=O(),y=T("div"),M=T("div"),M.textContent="Dropped",q=O(),I=T("span"),z=ze(i[2]),ae=ze(" / "),se=ze(i[1]),R=ze(" frames"),te=O(),Me&&Me.c(),X=O(),Ie&&Ie.c(),G=O(),A=T("div"),V=T("div"),V.textContent="FPS",x=O(),j(L.$$.fragment),ie=O(),Ee=T("span"),ye=ze(i[3]),u(t,"class","close v-1gy2e68"),u(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(o,"class","v-1gy2e68"),u(r,"class","v-1gy2e68"),u(M,"class","v-1gy2e68"),u(y,"class","v-1gy2e68"),u(V,"class","v-1gy2e68"),u(A,"class","v-1gy2e68"),u(l,"class","content v-1gy2e68"),u(e,"class","container v-1gy2e68"),u(e,"role","region"),u(e,"aria-label",Y("aria_label_debug_panel")),B(e,"container-mobile",i[7])},m(ce,he){P(ce,e,he),p(e,t),p(e,n),p(e,l),p(l,r),p(r,o),p(r,s),p(r,a),p(a,f),p(l,d),Se&&Se.m(l,null),p(l,h),W&&W.m(l,null),p(l,_),$&&$.m(l,null),p(l,g),fe&&fe.m(l,null),p(l,w),ue&&ue.m(l,null),p(l,b),Fe&&Fe.m(l,null),p(l,C),Oe&&Oe.m(l,null),p(l,k),p(l,y),p(y,M),p(y,q),p(y,I),p(I,z),p(I,ae),p(I,se),p(I,R),p(l,te),Me&&Me.m(l,null),p(l,X),Ie&&Ie.m(l,null),p(l,G),p(l,A),p(A,V),p(A,x),F(L,A,null),p(A,ie),p(A,Ee),p(Ee,ye),Le=!0,Ve||(_e=ve(t,"click",st(i[9])),Ve=!0)},p(ce,[he]){(!Le||he&1)&&c!==(c=ce[0].version+"")&&et(f,c),ce[0].id?Se?Se.p(ce,he):(Se=Ms(ce),Se.c(),Se.m(l,h)):Se&&(Se.d(1),Se=null),ce[0].provider?W?W.p(ce,he):(W=Bs(ce),W.c(),W.m(l,_)):W&&(W.d(1),W=null),ce[0].viewport?$?$.p(ce,he):($=Ns(ce),$.c(),$.m(l,g)):$&&($.d(1),$=null),ce[0].videoSize?fe?fe.p(ce,he):(fe=Rs(ce),fe.c(),fe.m(l,w)):fe&&(fe.d(1),fe=null),ce[0].cdn?ue?ue.p(ce,he):(ue=Os(ce),ue.c(),ue.m(l,b)):ue&&(ue.d(1),ue=null),ce[0].volume?Fe?Fe.p(ce,he):(Fe=Ds(ce),Fe.c(),Fe.m(l,C)):Fe&&(Fe.d(1),Fe=null),ce[0].buffer?Oe?Oe.p(ce,he):(Oe=zs(ce),Oe.c(),Oe.m(l,k)):Oe&&(Oe.d(1),Oe=null),(!Le||he&4)&&et(z,ce[2]),(!Le||he&2)&&et(se,ce[1]),ce[0].speed?Me?(Me.p(ce,he),he&1&&m(Me,1)):(Me=Fs(ce),Me.c(),m(Me,1),Me.m(l,X)):Me&&(de(),v(Me,1,1,()=>{Me=null}),me()),ce[0].bitrate?Ie?(Ie.p(ce,he),he&1&&m(Ie,1)):(Ie=Hs(ce),Ie.c(),m(Ie,1),Ie.m(l,G)):Ie&&(de(),v(Ie,1,1,()=>{Ie=null}),me());const re={};he&16&&(re.values=ce[4]),L.$set(re),(!Le||he&8)&&et(ye,ce[3]),(!Le||he&128)&&B(e,"container-mobile",ce[7])},i(ce){Le||(m(Me),m(Ie),m(L.$$.fragment,ce),Le=!0)},o(ce){v(Me),v(Ie),v(L.$$.fragment,ce),Le=!1},d(ce){ce&&S(e),Se&&Se.d(),W&&W.d(),$&&$.d(),fe&&fe.d(),ue&&ue.d(),Fe&&Fe.d(),Oe&&Oe.d(),Me&&Me.d(),Ie&&Ie.d(),H(L),Ve=!1,_e()}}}function bp(i,e,t){let n;const l=Ct(),r=l.ui.debugPanelVisible,o=l.ui.isMobile;D(i,o,y=>t(7,n=y));const s=()=>{ne.safeStorage.remove(rr),r.set(!1)};let a=l.actions.internal.getDebugPanelData(),c=l.actions.internal.getVideoElement(),f=0,d=0,h=0;const _=new Ql(60),g=new Ql(60),w=new Ql(60);let b=[],C=[],k=[];return _n(()=>{ne.safeStorage.set(rr,"true"),l.actions.internal.startLogging(),c&&(t(2,d=c.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=c.getVideoPlaybackQuality().totalVideoFrames));const y=window.setInterval(()=>{t(0,a=l.actions.internal.getDebugPanelData())},500);let M;return c&&(M=window.setInterval(()=>{if(c){t(2,d=c.getVideoPlaybackQuality().droppedVideoFrames);const q=c.getVideoPlaybackQuality().totalVideoFrames;t(3,h=q-f),t(1,f=q),_.push(h),a.speed&&g.push(a.speed),a.bitrate&&w.push(a.bitrate),t(4,b=_.getValuesFromBottom()),t(5,C=g.getValuesFromBottom()),t(6,k=w.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(y),M&&clearInterval(M)}}),[a,f,d,h,b,C,k,n,o,s]}class zc extends ke{constructor(e){super(),we(this,e,bp,gp,be,{},vp)}}function _p(i){Ze(i,"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 wp(i){let e,t,n;return{c(){e=T("div"),u(e,"class","close v-1ome55p")},m(l,r){P(l,e,r),t||(n=ve(e,"click",st(i[0])),t=!0)},p:K,i:K,o:K,d(l){l&&S(e),t=!1,n()}}}function kp(i){function e(t){Po.call(this,i,t)}return[e]}class yp extends ke{constructor(e){super(),we(this,e,kp,wp,be,{},_p)}}function Cp(i){Ze(i,"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 Sp(i){let e,t,n,l,r,o,s;return{c(){e=T("div"),t=T("canvas"),n=O(),l=N("svg"),r=N("g"),o=N("g"),s=N("path"),u(t,"class","timer-canvas v-8jhsry"),u(t,"width","100"),u(t,"height","100"),u(s,"class","_play"),u(s,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),u(s,"fill","#fff"),u(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){P(a,e,c),p(e,t),i[2](t),p(e,n),p(e,l),p(l,r),p(r,o),p(o,s)},p:K,i:K,o:K,d(a){a&&S(e),i[2](null)}}}const Pp=5e3;function Tp(i,e,t){let{onTimerEnded:n=ne.noop}=e,l;_n(()=>{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)/Pp;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){Ce[o?"unshift":"push"](()=>{l=o,t(0,l)})}return i.$$set=o=>{"onTimerEnded"in o&&t(1,n=o.onTimerEnded)},[l,n,r]}class Ep extends ke{constructor(e){super(),we(this,e,Tp,Sp,be,{onTimerEnded:1},Cp)}}function Ap(i){Ze(i,"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 Us(i){let e,t;return e=new Ep({props:{onTimerEnded:i[2]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ip(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q;s=new yp({}),s.$on("click",i[4]);let I=i[3]&&Us(i);return{c(){e=T("div"),t=O(),n=T("div"),l=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",o=O(),j(s.$$.fragment),a=O(),c=T("div"),f=T("div"),d=T("div"),h=T("div"),_=O(),I&&I.c(),w=O(),b=T("div"),C=T("div"),k=ze(i[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",g=`background-image: url('${i[1]}')`),u(f,"class","column v-kisfwc"),u(C,"class","title v-kisfwc"),u(b,"class","column v-kisfwc"),u(c,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(z,ae){P(z,e,ae),P(z,t,ae),P(z,n,ae),p(n,l),p(l,r),p(l,o),F(s,l,null),p(n,a),p(n,c),p(c,f),p(f,d),p(d,h),p(d,_),I&&I.m(d,null),p(c,w),p(c,b),p(b,C),p(C,k),y=!0,M||(q=ve(c,"click",function(){Mn(i[2])&&i[2].apply(this,arguments)}),M=!0)},p(z,[ae]){i=z,i[3]?I?(I.p(i,ae),ae&8&&m(I,1)):(I=Us(i),I.c(),m(I,1),I.m(d,null)):I&&(de(),v(I,1,1,()=>{I=null}),me()),(!y||ae&2&&g!==(g=`background-image: url('${i[1]}')`))&&u(d,"style",g),(!y||ae&1)&&et(k,i[0])},i(z){y||(m(s.$$.fragment,z),m(I),y=!0)},o(z){v(s.$$.fragment,z),v(I),y=!1},d(z){z&&(S(e),S(t),S(n)),H(s),I&&I.d(),M=!1,q()}}}function Lp(i,e,t){let{title:n}=e,{thumb:l}=e,{playNextVideo:r}=e,o=!0;const s=()=>t(3,o=!1);return i.$$set=a=>{"title"in a&&t(0,n=a.title),"thumb"in a&&t(1,l=a.thumb),"playNextVideo"in a&&t(2,r=a.playNextVideo)},[n,l,r,o,s]}class Vp extends ke{constructor(e){super(),we(this,e,Lp,Ip,be,{title:0,thumb:1,playNextVideo:2},Ap)}}const Fc=(i,e)=>Math.min(+(i+e).toFixed(2),1),Hc=(i,e)=>Math.max(+(i-e).toFixed(2),0),Uc=(i,e,t)=>{const n=Fc(e,t);e<1&&i.actions.internal.setVolume(n)},jc=(i,e,t)=>{const n=Hc(e,t);e>0&&i.actions.internal.setVolume(n)};function Mp(i){Ze(i,"v-10kkmxz",".keyboard-controls.v-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Bp(i){let e,t,n,l;const r=i[22].default,o=qn(r,i,i[21],null);return{c(){e=T("div"),o&&o.c(),u(e,"class","keyboard-controls v-10kkmxz"),u(e,"tabindex","-1"),u(e,"role","region"),u(e,"aria-label",Y("aria_label_video_player"))},m(s,a){P(s,e,a),o&&o.m(e,null),i[23](e),t=!0,n||(l=[ve(e,"keyup",i[13]),ve(e,"keydown",i[12])],n=!0)},p(s,a){o&&o.p&&(!t||a[0]&2097152)&&Zn(o,r,s,s[21],t?Wn(r,s[21],a,null):Kn(s[21]),null)},i(s){t||(m(o,s),t=!0)},o(s){v(o,s),t=!1},d(s){s&&S(e),o&&o.d(s),i[23](null),n=!1,nt(l)}}}function Np(i,e,t){let n,l,r,o,s,a,c,f,d,h,_,{$$slots:g={},$$scope:w}=e,{isAds:b}=e,{hideContextMenu:C}=e,{toggleFullscreen:k}=e,{showHotKeyHelpers:y}=e,{showKeyMap:M}=e,{fakePlayButtonHandler:q}=e;const I=Ct(),z=wn(),ae=I.getLogger().createComponentLog("KeyboardControls component"),se=I.state.playbackState$;D(i,se,ue=>t(27,l=ue));const R=I.ads.playbackState;D(i,R,ue=>t(26,n=ue));const te=I.state.positionExact$;D(i,te,ue=>t(33,f=ue));const X=I.state.duration$;D(i,X,ue=>t(32,c=ue));const G=I.state.volume$;D(i,G,ue=>t(36,_=ue));const A=I.ui.controls.disabledControls$;D(i,A,ue=>t(31,a=ue));const V=I.state.muted$;D(i,V,ue=>t(29,o=ue));const x=I.state.currentSubtitle$;D(i,x,ue=>t(28,r=ue));const L=I.state.currentPlaybackRate$;D(i,L,ue=>t(34,d=ue));const ie=I.state.availablePlaybackRates$;D(i,ie,ue=>t(35,h=ue));const Ee=I.state.isEnded$;D(i,Ee,ue=>t(30,s=ue));let ye=0,Le=!0,Ve;const _e=()=>Ve==null?void 0:Ve.focus(),Se=ue=>(ue!==Le&&(Le=ue,ye=0),ye+=1,(z.controls.seekStepKeyboard+z.controls.seekStepKeyboard*ye)/1e3),W=ue=>{var Ke;const Fe=ue.target,Oe=(Ke=Fe==null?void 0:Fe.getAttribute("role"))==null?void 0:Ke.includes("menuitem"),Me=Fe.classList.contains("btn"),Ie=ue.code;if(Me&&Ie===Ae.Space)return;const ce=R0.has(Ie);if(Oe&&ce)return;const he=!N0.has(Ie);if(ue.ctrlKey&&he||ue.altKey&&he||ue.metaKey)return;const re=Oe&&Ie===Ae.Escape;O0.has(Ie)||re||C();const Te=l===$e.PlaybackState.PLAYING||l===$e.PlaybackState.PAUSED,pe=b&&(n===Xt.PAUSED||n===Xt.PLAYING),Pe=!pe&&!a.has(dt.TIMELINE);if(Te||pe)switch(ae({message:`key down, code: ${Ie}`}),Ie){case Ae.KeyJ:case Ae.ArrowLeft:{if(!Pe)break;if(ue.ctrlKey||ue.altKey){const Re=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(Re),Re&&y({type:Ye.EPISODE_PREV,text:Re.text}),ue.preventDefault()}else{const Re=ue.shiftKey?Se(!1):z.controls.seekStepKeyboard/1e3,xe=Math.max(f-Re,0);f>0&&(I.actions.internal.seekTime(xe,yt.SeekAction.DOUBLE_TAP),y({type:Ye.BACKWARD_SEEK,text:Re.toString()}),ue.preventDefault())}break}case Ae.KeyL:case Ae.ArrowRight:{if(!Pe)break;if(ue.ctrlKey||ue.altKey){const Re=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(Re),Re&&y({type:Ye.EPISODE_NEXT,text:Re.text}),ue.preventDefault()}else{const Re=ue.shiftKey?Se(!0):z.controls.seekStepKeyboard/1e3,xe=Math.min(f+Re,c);Math.round(f)<Math.round(c)&&(I.actions.internal.seekTime(xe,yt.SeekAction.DOUBLE_TAP),y({type:Ye.FORWARD_SEEK,text:Re.toString()}),ue.preventDefault())}break}case Ae.ArrowUp:{const Re=_,xe=z.controls.volumeStepKeyboard,Xe=Re<=1;if(Uc(I,Re,xe),Xe){const ot=Math.round(Fc(Re,xe)*100).toString();y({type:Ye.VOLUME,t:{key:"hotkey_helper_current_volume",value:ot}})}ue.preventDefault();break}case Ae.ArrowDown:{const Re=_,xe=z.controls.volumeStepKeyboard,Xe=Re>=0;if(jc(I,Re,xe),Xe){const ot=Math.round(Hc(Re,xe)*100).toString();y({type:Ye.VOLUME,t:{key:"hotkey_helper_current_volume",value:ot}})}ue.preventDefault();break}case Ae.Comma:{if(ue.shiftKey){I.actions.internal.decrementPlaybackRate();const Re=h.find(xe=>xe.value===d);y({type:Ye.RATE_DOWN,text:Re==null?void 0:Re.displayValue}),ue.preventDefault()}else{if(pe||l!==$e.PlaybackState.PAUSED)break;const Re=Math.max(f-z.controls.seekStepFrame/1e3,0);f>0&&(y({type:Ye.BACKWARD_SEEK}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Re,yt.SeekAction.DOUBLE_TAP),ue.preventDefault())}break}case Ae.Period:{if(ue.shiftKey){I.actions.internal.incrementPlaybackRate();const Re=h.find(xe=>xe.value===d);y({type:Ye.RATE_UP,text:Re==null?void 0:Re.displayValue}),ue.preventDefault()}else{if(pe||l!==$e.PlaybackState.PAUSED)break;const Re=Math.min(f+z.controls.seekStepFrame/1e3,c);f<c&&(y({type:Ye.FORWARD_SEEK}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Re,yt.SeekAction.DOUBLE_TAP),ue.preventDefault())}break}case Ae.KeyK:case Ae.Space:if(!a.has(dt.PLAY_BUTTON))if(q)q();else{I.actions.internal.togglePlay();let Re=Ye.PLAY;l===$e.PlaybackState.PAUSED?Re=Ye.PAUSE:s&&(Re=Ye.REPLAY),y({type:Re})}ue.preventDefault();break;case Ae.KeyM:{y({type:o?Ye.VOLUME:Ye.MUTE}),I.actions.internal.toggleMuted(),ue.preventDefault();break}case Ae.KeyF:k(),ue.preventDefault();break;case Ae.KeyC:I.actions.internal.toggleSubtitle(),r.value!=="off"?y({type:Ye.SUBTITLES_ON,text:r==null?void 0:r.displayValue}):y({type:Ye.SUBTITLES_OFF}),ue.preventDefault();break;case Ae.KeyI:I.actions.internal.togglePictureInPicture(),ue.preventDefault();break;case Ae.Digit1:case Ae.Numpad1:y(),I.actions.internal.seekToPercent(.1,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit2:case Ae.Numpad2:y(),I.actions.internal.seekToPercent(.2,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit3:case Ae.Numpad3:y(),I.actions.internal.seekToPercent(.3,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit4:case Ae.Numpad4:y(),I.actions.internal.seekToPercent(.4,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit5:case Ae.Numpad5:y(),I.actions.internal.seekToPercent(.5,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit6:case Ae.Numpad6:y(),I.actions.internal.seekToPercent(.6,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit7:case Ae.Numpad7:y(),I.actions.internal.seekToPercent(.7,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit8:case Ae.Numpad8:y(),I.actions.internal.seekToPercent(.8,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit9:case Ae.Numpad9:y(),I.actions.internal.seekToPercent(.9,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Digit0:case Ae.Numpad0:y(),I.actions.internal.seekToPercent(0,yt.SeekAction.DOUBLE_TAP),ue.preventDefault();break;case Ae.Slash:{ue.shiftKey&&z.features.hotKeyMapModal&&(M(),ue.preventDefault());break}case Ae.ShiftLeft:case Ae.ShiftRight:ue.preventDefault();break;case Ae.Tab:case Ae.Escape:case Ae.Enter:break;default:ne.checkNever(Ie);break}},$=ue=>{const Fe=ue.code;if(ue.ctrlKey||ue.altKey||ue.metaKey)return;const Oe=l===$e.PlaybackState.PLAYING||l===$e.PlaybackState.PAUSED,Me=b&&(n===Xt.PAUSED||n===Xt.PLAYING);if(Oe||Me)switch(Fe){case Ae.ShiftLeft:case Ae.ShiftRight:ye=0;break}};function fe(ue){Ce[ue?"unshift":"push"](()=>{Ve=ue,t(0,Ve)})}return i.$$set=ue=>{"isAds"in ue&&t(14,b=ue.isAds),"hideContextMenu"in ue&&t(15,C=ue.hideContextMenu),"toggleFullscreen"in ue&&t(16,k=ue.toggleFullscreen),"showHotKeyHelpers"in ue&&t(17,y=ue.showHotKeyHelpers),"showKeyMap"in ue&&t(18,M=ue.showKeyMap),"fakePlayButtonHandler"in ue&&t(19,q=ue.fakePlayButtonHandler),"$$scope"in ue&&t(21,w=ue.$$scope)},[Ve,se,R,te,X,G,A,V,x,L,ie,Ee,W,$,b,C,k,y,M,q,_e,w,g,fe]}class Rp extends ke{constructor(e){super(),we(this,e,Np,Bp,be,{isAds:14,hideContextMenu:15,toggleFullscreen:16,showHotKeyHelpers:17,showKeyMap:18,fakePlayButtonHandler:19,focus:20},Mp,[-1,-1])}get focus(){return this.$$.ctx[20]}}function Op(i){Ze(i,"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 Dp(i){let e;return{c(){e=T("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(t,n){P(t,e,n)},p:K,i:K,o:K,d(t){t&&S(e)}}}class qc extends ke{constructor(e){super(),we(this,e,null,Dp,be,{},Op)}}function zp(i){let e,t,n,l,r,o,s,a,c,f,d,h,_;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("defs"),o=N("filter"),s=N("feFlood"),a=N("feColorMatrix"),c=N("feOffset"),f=N("feGaussianBlur"),d=N("feColorMatrix"),h=N("feBlend"),_=N("feBlend"),u(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727 7.536 6.264Z"),u(n,"fill","#fff"),u(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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(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(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2422_111980"),u(_,"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(g,w){P(g,e,w),p(e,t),p(t,n),p(t,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,_)},p:K,i:K,o:K,d(g){g&&S(e)}}}class Fp extends ke{constructor(e){super(),we(this,e,null,zp,be,{})}}function Hp(i){Ze(i,"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 Up(i){let e,t,n,l,r,o,s,a,c,f,d,h;const _=i[14].default,g=qn(_,i,i[13],null);return{c(){var w,b,C,k,y,M;e=T("button"),g&&g.c(),u(e,"class",t="btn "+i[1]+" v-1anemql"),u(e,"style",n=i[2]||null),e.disabled=l=(w=i[3])!=null?w:null,u(e,"aria-hidden",r=(b=i[5])!=null?b:null),u(e,"aria-label",o=(C=i[6])!=null?C:null),u(e,"aria-keyshortcuts",s=(k=i[7])!=null?k:null),u(e,"aria-expanded",a=(y=i[8])!=null?y:null),u(e,"data-testid",c=(M=i[4])!=null?M:null),u(e,"tabindex",i[9])},m(w,b){P(w,e,b),g&&g.m(e,null),i[16](e),f=!0,d||(h=[ve(e,"pointerdown",st(Jt(i[15]))),ve(e,"click",st(Jt(function(){Mn(i[10]===ne.noop?null:i[10])&&(i[10]===ne.noop?null:i[10]).apply(this,arguments)}))),ve(e,"focus",Jt(function(){Mn(i[11]===ne.noop?null:i[11])&&(i[11]===ne.noop?null:i[11]).apply(this,arguments)})),ve(e,"blur",Jt(function(){Mn(i[12]===ne.noop?null:i[12])&&(i[12]===ne.noop?null:i[12]).apply(this,arguments)}))],d=!0)},p(w,[b]){var C,k,y,M,q,I;i=w,g&&g.p&&(!f||b&8192)&&Zn(g,_,i,i[13],f?Wn(_,i[13],b,null):Kn(i[13]),null),(!f||b&2&&t!==(t="btn "+i[1]+" v-1anemql"))&&u(e,"class",t),(!f||b&4&&n!==(n=i[2]||null))&&u(e,"style",n),(!f||b&8&&l!==(l=(C=i[3])!=null?C:null))&&(e.disabled=l),(!f||b&32&&r!==(r=(k=i[5])!=null?k:null))&&u(e,"aria-hidden",r),(!f||b&64&&o!==(o=(y=i[6])!=null?y:null))&&u(e,"aria-label",o),(!f||b&128&&s!==(s=(M=i[7])!=null?M:null))&&u(e,"aria-keyshortcuts",s),(!f||b&256&&a!==(a=(q=i[8])!=null?q:null))&&u(e,"aria-expanded",a),(!f||b&16&&c!==(c=(I=i[4])!=null?I:null))&&u(e,"data-testid",c),(!f||b&512)&&u(e,"tabindex",i[9])},i(w){f||(m(g,w),f=!0)},o(w){v(g,w),f=!1},d(w){w&&S(e),g&&g.d(w),i[16](null),d=!1,nt(h)}}}function jp(i,e,t){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:_=void 0}=e,{tabIndex:g=0}=e,{click:w=ne.noop}=e,{focus:b=ne.noop}=e,{blur:C=ne.noop}=e;function k(M){Po.call(this,i,M)}function y(M){Ce[M?"unshift":"push"](()=>{d=M,t(0,d)})}return i.$$set=M=>{"className"in M&&t(1,r=M.className),"style"in M&&t(2,o=M.style),"disabled"in M&&t(3,s=M.disabled),"testId"in M&&t(4,a=M.testId),"ariaHidden"in M&&t(5,c=M.ariaHidden),"ariaLabel"in M&&t(6,f=M.ariaLabel),"ref"in M&&t(0,d=M.ref),"ariaKeyShortCut"in M&&t(7,h=M.ariaKeyShortCut),"ariaExpanded"in M&&t(8,_=M.ariaExpanded),"tabIndex"in M&&t(9,g=M.tabIndex),"click"in M&&t(10,w=M.click),"focus"in M&&t(11,b=M.focus),"blur"in M&&t(12,C=M.blur),"$$scope"in M&&t(13,l=M.$$scope)},[d,r,o,s,a,c,f,h,_,g,w,b,C,l,n,k,y]}class Ti extends ke{constructor(e){super(),we(this,e,jp,Up,be,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Hp)}}function qp(i){Ze(i,"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 js(i){let e,t,n,l,r,o=i[2]&&qs(i);return{c(){e=T("div"),t=T("h3"),n=ze(i[3]),l=O(),o&&o.c(),u(t,"class","modal-title v-1witlsj"),u(e,"class","modal-header v-1witlsj")},m(s,a){P(s,e,a),p(e,t),p(t,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=qs(s),o.c(),m(o,1),o.m(e,null)):o&&(de(),v(o,1,1,()=>{o=null}),me())},i(s){r||(m(o),r=!0)},o(s){v(o),r=!1},d(s){s&&S(e),o&&o.d()}}}function qs(i){let e,t;return e=new Ti({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:Y("hotkey_map_modal_close_btn_text"),$$slots:{default:[Wp]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Wp(i){let e,t;return e=new Fp({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Zp(i){let e,t,n,l,r,o,s=i[1]&&js(i);const a=i[4].default,c=qn(a,i,i[5],null);return{c(){e=T("div"),t=T("div"),s&&s.c(),n=O(),l=T("div"),r=T("div"),c&&c.c(),u(r,"class","modal-main v-1witlsj"),u(l,"class","modal-scroll v-1witlsj"),u(t,"class","modal-container v-1witlsj"),u(e,"class","modal-overlay v-1witlsj")},m(f,d){P(f,e,d),p(e,t),s&&s.m(t,null),p(t,n),p(t,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=js(f),s.c(),m(s,1),s.m(t,n)):s&&(de(),v(s,1,1,()=>{s=null}),me()),c&&c.p&&(!o||d&32)&&Zn(c,a,f,f[5],o?Wn(a,f[5],d,null):Kn(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&&S(e),s&&s.d(),c&&c.d(f)}}}function Kp(i,e,t){let{$$slots:n={},$$scope:l}=e,{onClose:r}=e,{showHeader:o=!0}=e,{showCloseCross:s=!0}=e,{title:a}=e;return i.$$set=c=>{"onClose"in c&&t(0,r=c.onClose),"showHeader"in c&&t(1,o=c.showHeader),"showCloseCross"in c&&t(2,s=c.showCloseCross),"title"in c&&t(3,a=c.title),"$$scope"in c&&t(5,l=c.$$scope)},[r,o,s,a,n,l]}class Gp extends ke{constructor(e){super(),we(this,e,Kp,Zp,be,{onClose:0,showHeader:1,showCloseCross:2,title:3},qp)}}const Yp=new Set(["BR"]),Ws=i=>{var e;const t=document.createElement("DIV");t.innerHTML=i;const n=t.querySelectorAll("*");let l=n.length;for(;l--;){const r=n[l],o=r.tagName;Yp.has(o)||(e=r.parentElement)===null||e===void 0||e.removeChild(r)}return t.innerHTML};function Qp(i){Ze(i,"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 Zs(i,e,t){const n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function Ks(i,e,t){const n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function Gs(i){let e,t,n=Ws(i[9])+"",l,r,o=i[10]+"",s,a;return{c(){e=T("li"),t=T("span"),l=O(),r=T("span"),s=ze(o),a=O(),u(t,"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){P(c,e,f),p(e,t),t.innerHTML=n,p(e,l),p(e,r),p(r,s),p(e,a)},p(c,f){f&1&&n!==(n=Ws(c[9])+"")&&(t.innerHTML=n),f&1&&o!==(o=c[10]+"")&&et(s,o)},d(c){c&&S(e)}}}function Ys(i){let e,t,n=i[5]+"",l,r,o,s,a=Zt(i[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=Gs(Ks(i,a,f));return{c(){e=T("div"),t=T("h5"),l=ze(n),r=O(),o=T("ul");for(let f=0;f<c.length;f+=1)c[f].c();s=O(),u(t,"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){P(f,e,d),p(e,t),p(t,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=Zt(f[6]);let h;for(h=0;h<a.length;h+=1){const _=Ks(f,a,h);c[h]?c[h].p(_,d):(c[h]=Gs(_),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&&S(e),Bn(c,f)}}}function Xp(i){let e,t=Zt(i[0].groups),n=[];for(let l=0;l<t.length;l+=1)n[l]=Ys(Zs(i,t,l));return{c(){e=T("div");for(let l=0;l<n.length;l+=1)n[l].c();u(e,"class","hot-key-map v-quklnq")},m(l,r){P(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){t=Zt(l[0].groups);let o;for(o=0;o<t.length;o+=1){const s=Zs(l,t,o);n[o]?n[o].p(s,r):(n[o]=Ys(s),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(l){l&&S(e),Bn(n,l)}}}function Jp(i){let e,t;return e=new Gp({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Xp]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function xp(i,e,t){let n;const l=Ct(),{data:r,show:o}=l.ui.modals.hotKeyMap;return D(i,r,a=>t(0,n=a)),[n,r,()=>{o.set(!1)}]}class $p extends ke{constructor(e){super(),we(this,e,xp,Jp,be,{},Qp)}}function e3(i){Ze(i,"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 t3(i){let e,t;const n=i[1].default,l=qn(n,i,i[0],null);return{c(){e=T("div"),l&&l.c(),u(e,"class","pillow v-1oe0j8n")},m(r,o){P(r,e,o),l&&l.m(e,null),t=!0},p(r,[o]){l&&l.p&&(!t||o&1)&&Zn(l,n,r,r[0],t?Wn(n,r[0],o,null):Kn(r[0]),null)},i(r){t||(m(l,r),t=!0)},o(r){v(l,r),t=!1},d(r){r&&S(e),l&&l.d(r)}}}function i3(i,e,t){let{$$slots:n={},$$scope:l}=e;return i.$$set=r=>{"$$scope"in r&&t(0,l=r.$$scope)},[l,n]}class n3 extends ke{constructor(e){super(),we(this,e,i3,t3,be,{},e3)}}function o3(i){let e,t,n;return{c(){e=N("svg"),t=N("path"),n=N("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(l,r){P(l,e,r),p(e,t),p(e,n)},p:K,i:K,o:K,d(l){l&&S(e)}}}class l3 extends ke{constructor(e){super(),we(this,e,null,o3,be,{})}}function r3(i){let e,t,n;return{c(){e=N("svg"),t=N("path"),n=N("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(l,r){P(l,e,r),p(e,t),p(e,n)},p:K,i:K,o:K,d(l){l&&S(e)}}}class s3 extends ke{constructor(e){super(),we(this,e,null,r3,be,{})}}function a3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class u3 extends ke{constructor(e){super(),we(this,e,null,a3,be,{})}}function c3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class Wc extends ke{constructor(e){super(),we(this,e,null,c3,be,{})}}function f3(i){let e,t,n;return{c(){e=N("svg"),t=N("path"),n=N("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(l,r){P(l,e,r),p(e,t),p(e,n)},p:K,i:K,o:K,d(l){l&&S(e)}}}class Zc extends ke{constructor(e){super(),we(this,e,null,f3,be,{})}}const Io=i=>{switch(i){case $e.VideoQuality.Q_720P:return u3;case $e.VideoQuality.Q_1080P:return Wc;case $e.VideoQuality.Q_1440P:return Zc;case $e.VideoQuality.Q_2160P:return l3;case $e.VideoQuality.Q_4320P:return s3}};function d3(i){Ze(i,"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 m3(i){let e,t,n,l,r,o,s=i[1]&&Qs(i);return{c(){e=T("div"),s&&s.c(),t=O(),n=N("svg"),l=N("path"),r=N("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"),B(r,"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 v-1fzhlx0"),u(e,"aria-hidden","true"),B(e,"triple",i[2])},m(a,c){P(a,e,c),s&&s.m(e,null),p(e,t),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=Qs(a),s.c(),m(s,1),s.m(e,t)):s&&(de(),v(s,1,1,()=>{s=null}),me()),(!o||c&2)&&B(r,"hidden",!!a[1]),(!o||c&4)&&B(e,"triple",a[2])},i(a){o||(m(s),o=!0)},o(a){v(s),o=!1},d(a){a&&S(e),s&&s.d()}}}function p3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}function Qs(i){let e,t;return e=new n3({props:{$$slots:{default:[h3]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&18&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function h3(i){let e,t,n;var l=i[1];function r(o){return{}}return l&&(e=Dn(l,r())),{c(){e&&j(e.$$.fragment),t=mt()},m(o,s){e&&F(e,o,s),P(o,t,s),n=!0},p(o,s){if(s&2&&l!==(l=o[1])){if(e){de();const a=e;v(a.$$.fragment,1,0,()=>{H(a,1)}),me()}l?(e=Dn(l,r()),j(e.$$.fragment),m(e.$$.fragment,1),F(e,t.parentNode,t)):e=null}},i(o){n||(e&&m(e.$$.fragment,o),n=!0)},o(o){e&&v(e.$$.fragment,o),n=!1},d(o){o&&S(t),e&&H(e,o)}}}function v3(i){let e,t,n,l;const r=[p3,m3],o=[];function s(a,c){return a[0]?0:1}return e=s(i),t=o[e]=r[e](i),{c(){t.c(),n=mt()},m(a,c){o[e].m(a,c),P(a,n,c),l=!0},p(a,[c]){let f=e;e=s(a),e===f?o[e].p(a,c):(de(),v(o[f],1,1,()=>{o[f]=null}),me(),t=o[e],t?t.p(a,c):(t=o[e]=r[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){l||(m(t),l=!0)},o(a){v(t),l=!1},d(a){a&&S(n),o[e].d(a)}}}function g3(i,e,t){let n,{isMobile:l=!1}=e,{currentQuality:r=void 0}=e,o;return i.$$set=s=>{"isMobile"in s&&t(0,l=s.isMobile),"currentQuality"in s&&t(3,r=s.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=Io(r)),i.$$.dirty&2&&t(2,o=!!n&&[Wc,Zc].includes(n))},[l,n,o,r]}class Kc extends ke{constructor(e){super(),we(this,e,g3,v3,be,{isMobile:0,currentQuality:3},d3)}}function b3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class Gc extends ke{constructor(e){super(),we(this,e,null,b3,be,{})}}function _3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class w3 extends ke{constructor(e){super(),we(this,e,null,_3,be,{})}}function k3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class y3 extends ke{constructor(e){super(),we(this,e,null,k3,be,{})}}function C3(i){let e,t,n,l;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("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(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(r,o){P(r,e,o),p(e,t),p(t,n),p(t,l)},p:K,i:K,o:K,d(r){r&&S(e)}}}class S3 extends ke{constructor(e){super(),we(this,e,null,C3,be,{})}}function P3(i){Ze(i,"v-2dg73m",".reverted.v-2dg73m{transform:rotate(180deg)}")}function T3(i){let e,t,n;return{c(){e=N("svg"),t=N("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","v-2dg73m"),B(e,"reverted",i[2])},m(l,r){P(l,e,r),p(e,t)},p(l,r){r&1&&u(t,"fill",l[0]),r&4&&n!==(n=l[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),r&4&&B(e,"reverted",l[2])},d(l){l&&S(e)}}}function E3(i){let e,t,n;return{c(){e=N("svg"),t=N("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","v-2dg73m"),B(e,"reverted",i[2])},m(l,r){P(l,e,r),p(e,t)},p(l,r){r&1&&u(t,"fill",l[0]),r&4&&n!==(n=l[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),r&4&&B(e,"reverted",l[2])},d(l){l&&S(e)}}}function A3(i){let e;function t(r,o){return r[1]?E3:T3}let n=t(i),l=n(i);return{c(){l.c(),e=mt()},m(r,o){l.m(r,o),P(r,e,o)},p(r,[o]){n===(n=t(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},i:K,o:K,d(r){r&&S(e),l.d(r)}}}function I3(i,e,t){let{direction:n="left"}=e,{color:l="#fff"}=e,r,o;return i.$$set=s=>{"direction"in s&&t(3,n=s.direction),"color"in s&&t(0,l=s.color)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(n)),t(2,o=["right","down"].includes(n)))},[l,r,o,n]}class $n extends ke{constructor(e){super(),we(this,e,I3,A3,be,{direction:3,color:0},P3)}}function L3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class V3 extends ke{constructor(e){super(),we(this,e,null,L3,be,{})}}function M3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class Wo extends ke{constructor(e){super(),we(this,e,null,M3,be,{})}}function B3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class N3 extends ke{constructor(e){super(),we(this,e,null,B3,be,{})}}function R3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class O3 extends ke{constructor(e){super(),we(this,e,null,R3,be,{})}}function D3(i){Ze(i,"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 Xs(i,e,t){const n=i.slice();return n[142]=e[t],n}function Js(i,e,t){const n=i.slice();return n[145]=e[t],n}function xs(i,e,t){const n=i.slice();return n[148]=e[t],n}function $s(i){let e,t,n,l,r,o,s,a,c,f,d,h=i[8]&&ea(i),_=i[28]&&ta(i),g=i[27]&&na(i),w=i[26]&&oa(i),b=i[25]&&la(i),C=i[24]&&ra(i),k=i[8]&&sa(i);return{c(){e=T("div"),h&&h.c(),t=O(),n=T("ul"),_&&_.c(),l=O(),g&&g.c(),r=O(),w&&w.c(),o=O(),b&&b.c(),s=O(),C&&C.c(),a=O(),k&&k.c(),u(n,"class","items v-5r0p3"),u(n,"role","menu"),B(n,"items-mobile",i[8]),u(e,"class","menu v-5r0p3"),B(e,"menu-desktop",!i[8]),B(e,"menu-mobile",i[8]),B(e,"hidden",!i[15])},m(y,M){P(y,e,M),h&&h.m(e,null),p(e,t),p(e,n),_&&_.m(n,null),p(n,l),g&&g.m(n,null),p(n,r),w&&w.m(n,null),p(n,o),b&&b.m(n,null),p(n,s),C&&C.m(n,null),p(n,a),k&&k.m(n,null),i[116](n),c=!0,f||(d=[ve(e,"keydown",i[79]),ve(e,"mouseenter",i[73]),ve(e,"mouseleave",i[74])],f=!0)},p(y,M){y[8]?h?h.p(y,M):(h=ea(y),h.c(),h.m(e,t)):h&&(h.d(1),h=null),y[28]?_?(_.p(y,M),M[0]&268435456&&m(_,1)):(_=ta(y),_.c(),m(_,1),_.m(n,l)):_&&(de(),v(_,1,1,()=>{_=null}),me()),y[27]?g?(g.p(y,M),M[0]&134217728&&m(g,1)):(g=na(y),g.c(),m(g,1),g.m(n,r)):g&&(de(),v(g,1,1,()=>{g=null}),me()),y[26]?w?(w.p(y,M),M[0]&67108864&&m(w,1)):(w=oa(y),w.c(),m(w,1),w.m(n,o)):w&&(de(),v(w,1,1,()=>{w=null}),me()),y[25]?b?(b.p(y,M),M[0]&33554432&&m(b,1)):(b=la(y),b.c(),m(b,1),b.m(n,s)):b&&(de(),v(b,1,1,()=>{b=null}),me()),y[24]?C?(C.p(y,M),M[0]&16777216&&m(C,1)):(C=ra(y),C.c(),m(C,1),C.m(n,a)):C&&(de(),v(C,1,1,()=>{C=null}),me()),y[8]?k?(k.p(y,M),M[0]&256&&m(k,1)):(k=sa(y),k.c(),m(k,1),k.m(n,null)):k&&(de(),v(k,1,1,()=>{k=null}),me()),(!c||M[0]&256)&&B(n,"items-mobile",y[8]),(!c||M[0]&256)&&B(e,"menu-desktop",!y[8]),(!c||M[0]&256)&&B(e,"menu-mobile",y[8]),(!c||M[0]&32768)&&B(e,"hidden",!y[15])},i(y){c||(m(_),m(g),m(w),m(b),m(C),m(k),c=!0)},o(y){v(_),v(g),v(w),v(b),v(C),v(k),c=!1},d(y){y&&S(e),h&&h.d(),_&&_.d(),g&&g.d(),w&&w.d(),b&&b.d(),C&&C.d(),k&&k.d(),i[116](null),f=!1,nt(d)}}}function ea(i){let e,t,n,l,r,o,s,a;return{c(){e=T("div"),t=T("div"),t.textContent=`${Y("submenu_settings")}`,n=O(),l=T("div"),r=O(),o=T("div"),u(l,"class","close v-5r0p3"),u(e,"class","item menu-header v-5r0p3"),B(e,"item-mobile",i[8]),u(o,"class","menu-divider v-5r0p3")},m(c,f){P(c,e,f),p(e,t),p(e,n),p(e,l),P(c,r,f),P(c,o,f),s||(a=ve(l,"click",st(i[59])),s=!0)},p(c,f){f[0]&256&&B(e,"item-mobile",c[8])},d(c){c&&(S(e),S(r),S(o)),s=!1,a()}}}function ta(i){let e,t,n,l,r,o,s,a,c,f,d,h,_;n=new Kc({});let g=i[36]&&!i[8]&&ia(i);return{c(){e=T("li"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("menu_quality")}`,o=O(),s=T("div"),a=ze(i[20]),c=O(),g&&g.c(),u(t,"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=Y("aria_label_menu_quality",{actual:i[30]})),u(e,"aria-haspopup","true"),B(e,"item-mobile",i[8])},m(w,b){P(w,e,b),p(e,t),F(n,t,null),p(e,l),p(e,r),p(e,o),p(e,s),p(s,a),p(s,c),g&&g.m(s,null),i[112](e),d=!0,h||(_=[ve(e,"click",st(i[60])),ve(e,"keydown",i[80])],h=!0)},p(w,b){(!d||b[0]&1048576)&&et(a,w[20]),w[36]&&!w[8]?g?(g.p(w,b),b[0]&256|b[1]&32&&m(g,1)):(g=ia(w),g.c(),m(g,1),g.m(s,null)):g&&(de(),v(g,1,1,()=>{g=null}),me()),(!d||b[0]&1073741824&&f!==(f=Y("aria_label_menu_quality",{actual:w[30]})))&&u(e,"aria-label",f),(!d||b[0]&256)&&B(e,"item-mobile",w[8])},i(w){d||(m(n.$$.fragment,w),m(g),d=!0)},o(w){v(n.$$.fragment,w),v(g),d=!1},d(w){w&&S(e),H(n),g&&g.d(),i[112](null),h=!1,nt(_)}}}function ia(i){let e,t,n;var l=i[36];function r(o){return{}}return l&&(t=Dn(l,r())),{c(){e=T("div"),t&&j(t.$$.fragment),u(e,"class","menu-valueIcon v-5r0p3")},m(o,s){P(o,e,s),t&&F(t,e,null),n=!0},p(o,s){if(s[1]&32&&l!==(l=o[36])){if(t){de();const a=t;v(a.$$.fragment,1,0,()=>{H(a,1)}),me()}l?(t=Dn(l,r()),j(t.$$.fragment),m(t.$$.fragment,1),F(t,e,null)):t=null}},i(o){n||(t&&m(t.$$.fragment,o),n=!0)},o(o){t&&v(t.$$.fragment,o),n=!1},d(o){o&&S(e),t&&H(t)}}}function na(i){let e,t,n,l,r,o,s,a,c,f,d,h,_;return n=new S3({}),{c(){e=T("li"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("menu_playback_rate")}`,o=O(),s=T("div"),a=ze(i[13]),c=ze("x"),u(t,"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=Y("aria_label_menu_rate",{actual:i[31]})),u(e,"aria-haspopup","true"),B(e,"item-mobile",i[8])},m(g,w){P(g,e,w),p(e,t),F(n,t,null),p(e,l),p(e,r),p(e,o),p(e,s),p(s,a),p(s,c),i[113](e),d=!0,h||(_=[ve(e,"click",st(Jt(i[64]))),ve(e,"keydown",i[83])],h=!0)},p(g,w){(!d||w[0]&8192)&&et(a,g[13]),(!d||w[1]&1&&f!==(f=Y("aria_label_menu_rate",{actual:g[31]})))&&u(e,"aria-label",f),(!d||w[0]&256)&&B(e,"item-mobile",g[8])},i(g){d||(m(n.$$.fragment,g),d=!0)},o(g){v(n.$$.fragment,g),d=!1},d(g){g&&S(e),H(n),i[113](null),h=!1,nt(_)}}}function oa(i){let e,t,n,l,r,o,s,a=i[37].displayValue+"",c,f,d,h,_;return n=new Gc({}),{c(){e=T("li"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("subtitles_caption")}`,o=O(),s=T("div"),c=ze(a),u(t,"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=Y("aria_label_menu_subtitle",{actual:i[37].displayValue})),u(e,"aria-haspopup","true"),B(e,"item-mobile",i[8])},m(g,w){P(g,e,w),p(e,t),F(n,t,null),p(e,l),p(e,r),p(e,o),p(e,s),p(s,c),i[114](e),d=!0,h||(_=[ve(e,"click",st(i[66])),ve(e,"keydown",i[86])],h=!0)},p(g,w){(!d||w[1]&64)&&a!==(a=g[37].displayValue+"")&&et(c,a),(!d||w[1]&64&&f!==(f=Y("aria_label_menu_subtitle",{actual:g[37].displayValue})))&&u(e,"aria-label",f),(!d||w[0]&256)&&B(e,"item-mobile",g[8])},i(g){d||(m(n.$$.fragment,g),d=!0)},o(g){v(n.$$.fragment,g),d=!1},d(g){g&&S(e),H(n),i[114](null),h=!1,nt(_)}}}function la(i){let e,t,n,l,r,o,s,a,c,f,d,h;return n=new y3({}),{c(){e=T("li"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("menu_traffic_saving")}`,o=O(),s=T("div"),a=ze(i[29]),u(t,"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=Y("aria_label_menu_traffic_saving",{actual:i[29]})),u(e,"aria-haspopup","true"),B(e,"item-mobile",i[8])},m(_,g){P(_,e,g),p(e,t),F(n,t,null),p(e,l),p(e,r),p(e,o),p(e,s),p(s,a),i[115](e),f=!0,d||(h=[ve(e,"click",st(i[61])),ve(e,"keydown",i[89])],d=!0)},p(_,g){(!f||g[0]&536870912)&&et(a,_[29]),(!f||g[0]&536870912&&c!==(c=Y("aria_label_menu_traffic_saving",{actual:_[29]})))&&u(e,"aria-label",c),(!f||g[0]&256)&&B(e,"item-mobile",_[8])},i(_){f||(m(n.$$.fragment,_),f=!0)},o(_){v(n.$$.fragment,_),f=!1},d(_){_&&S(e),H(n),i[115](null),d=!1,nt(h)}}}function ra(i){let e,t,n,l,r,o,s,a;return n=new w3({}),{c(){e=T("li"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("download_video_caption")}`,u(t,"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",Y("aria_label_menu_download")),B(e,"item-mobile",i[8])},m(c,f){P(c,e,f),p(e,t),F(n,t,null),p(e,l),p(e,r),o=!0,s||(a=[ve(e,"click",st(i[69])),ve(e,"keydown",i[92])],s=!0)},p(c,f){(!o||f[0]&256)&&B(e,"item-mobile",c[8])},i(c){o||(m(n.$$.fragment,c),o=!0)},o(c){v(n.$$.fragment,c),o=!1},d(c){c&&S(e),H(n),s=!1,nt(a)}}}function sa(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C=i[39].showSupport&&z3(i);return l=new N3({}),f=new O3({}),{c(){C&&C.c(),e=O(),t=T("li"),n=T("div"),j(l.$$.fragment),r=O(),o=T("div"),o.textContent=`${Y("menu_copy_debug")}`,s=O(),a=T("li"),c=T("div"),j(f.$$.fragment),d=O(),h=T("div"),h.textContent=`${Y("menu_debug_overlay")}`,u(n,"class","menu-icon-wrapper v-5r0p3"),u(o,"class","menu-title v-5r0p3"),u(t,"class","item item-mobile v-5r0p3"),u(t,"role","menuitem"),u(t,"tabindex","0"),u(t,"aria-label",Y("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",_=i[38]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable"))},m(k,y){C&&C.m(k,y),P(k,e,y),P(k,t,y),p(t,n),F(l,n,null),p(t,r),p(t,o),P(k,s,y),P(k,a,y),p(a,c),F(f,c,null),p(a,d),p(a,h),g=!0,w||(b=[ve(t,"click",st(i[71])),ve(t,"keydown",i[94]),ve(a,"click",st(i[72])),ve(a,"keydown",i[95])],w=!0)},p(k,y){k[39].showSupport&&C.p(k,y),(!g||y[1]&128&&_!==(_=k[38]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable")))&&u(a,"aria-label",_)},i(k){g||(m(C),m(l.$$.fragment,k),m(f.$$.fragment,k),g=!0)},o(k){v(C),v(l.$$.fragment,k),v(f.$$.fragment,k),g=!1},d(k){k&&(S(e),S(t),S(s),S(a)),C&&C.d(k),H(l),H(f),w=!1,nt(b)}}}function z3(i){let e,t,n,l,r,o,s,a;return n=new V3({}),{c(){e=T("li"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("menu_report")}`,u(t,"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",`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`)},m(c,f){P(c,e,f),p(e,t),F(n,t,null),p(e,l),p(e,r),o=!0,s||(a=[ve(e,"click",st(i[70])),ve(e,"keydown",i[93])],s=!0)},p:K,i(c){o||(m(n.$$.fragment,c),o=!0)},o(c){v(n.$$.fragment,c),o=!1},d(c){c&&S(e),H(n),s=!1,nt(a)}}}function aa(i){let e,t,n,l,r,o,s,a,c,f,d,h;n=new $n({props:{direction:"left"}});let _=Zt(i[12]),g=[];for(let b=0;b<_.length;b+=1)g[b]=fa(xs(i,_,b));const w=b=>v(g[b],1,1,()=>{g[b]=null});return{c(){e=T("div"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("submenu_quality")}`,o=O(),s=T("div"),a=O(),c=T("ul");for(let b=0;b<g.length;b+=1)g[b].c();u(t,"class","item menu-header v-5r0p3"),u(t,"aria-label",Y("aria_label_submenu_back")),B(t,"item-mobile",i[8]),u(s,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",i[21]),B(c,"items-mobile",i[8]),u(e,"class","menu menu-subList v-5r0p3"),B(e,"menu-desktop",!i[8]),B(e,"menu-mobile",i[8])},m(b,C){P(b,e,C),p(e,t),F(n,t,null),p(t,l),p(t,r),i[117](t),p(e,o),p(e,s),p(e,a),p(e,c);for(let k=0;k<g.length;k+=1)g[k]&&g[k].m(c,null);i[120](c),f=!0,d||(h=[ve(t,"click",st(i[68])),ve(c,"keydown",i[81])],d=!0)},p(b,C){if((!f||C[0]&256)&&B(t,"item-mobile",b[8]),C[0]&4352|C[2]&1048577){_=Zt(b[12]);let k;for(k=0;k<_.length;k+=1){const y=xs(b,_,k);g[k]?(g[k].p(y,C),m(g[k],1)):(g[k]=fa(y),g[k].c(),m(g[k],1),g[k].m(c,null))}for(de(),k=_.length;k<g.length;k+=1)w(k);me()}(!f||C[0]&2097152)&&u(c,"style",b[21]),(!f||C[0]&256)&&B(c,"items-mobile",b[8]),(!f||C[0]&256)&&B(e,"menu-desktop",!b[8]),(!f||C[0]&256)&&B(e,"menu-mobile",b[8])},i(b){if(!f){m(n.$$.fragment,b);for(let C=0;C<_.length;C+=1)m(g[C]);f=!0}},o(b){v(n.$$.fragment,b),g=g.filter(Boolean);for(let C=0;C<g.length;C+=1)v(g[C]);f=!1},d(b){b&&S(e),H(n),i[117](null),Bn(g,b),i[120](null),d=!1,nt(h)}}}function ua(i){let e,t,n;return t=new Wo({}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){P(l,e,r),F(t,e,null),n=!0},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function ca(i){let e,t,n;var l=Io(i[148].value);function r(o){return{}}return l&&(t=Dn(l,r())),{c(){e=T("div"),t&&j(t.$$.fragment),u(e,"class","menu-valueIcon-list v-5r0p3")},m(o,s){P(o,e,s),t&&F(t,e,null),n=!0},p(o,s){if(s[0]&4096&&l!==(l=Io(o[148].value))){if(t){de();const a=t;v(a.$$.fragment,1,0,()=>{H(a,1)}),me()}l?(t=Dn(l,r()),j(t.$$.fragment),m(t.$$.fragment,1),F(t,e,null)):t=null}},i(o){n||(t&&m(t.$$.fragment,o),n=!0)},o(o){t&&v(t.$$.fragment,o),n=!1},d(o){o&&S(e),t&&H(t)}}}function fa(i){let e,t,n,l=i[148].displayValue+"",r,o,s=!i[8]&&Io(i[148].value),a,c,f,d,h,_,g=i[148].selected&&ua(),w=s&&ca(i);function b(){return i[118](i[148])}function C(...k){return i[119](i[148],...k)}return{c(){e=T("li"),g&&g.c(),t=O(),n=T("div"),r=ze(l),o=O(),w&&w.c(),a=O(),u(n,"class","v-5r0p3"),B(n,"quality-title-mobile",i[8]),u(e,"class","item item-quality v-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),B(e,"item-mobile",i[8])},m(k,y){P(k,e,y),g&&g.m(e,null),p(e,t),p(e,n),p(n,r),p(e,o),w&&w.m(e,null),p(e,a),d=!0,h||(_=[ve(e,"click",st(b)),ve(e,"keydown",C)],h=!0)},p(k,y){i=k,i[148].selected?g?y[0]&4096&&m(g,1):(g=ua(),g.c(),m(g,1),g.m(e,t)):g&&(de(),v(g,1,1,()=>{g=null}),me()),(!d||y[0]&4096)&&l!==(l=i[148].displayValue+"")&&et(r,l),(!d||y[0]&256)&&B(n,"quality-title-mobile",i[8]),y[0]&4352&&(s=!i[8]&&Io(i[148].value)),s?w?(w.p(i,y),y[0]&4352&&m(w,1)):(w=ca(i),w.c(),m(w,1),w.m(e,a)):w&&(de(),v(w,1,1,()=>{w=null}),me()),(!d||y[0]&4096&&c!==(c=i[148].value))&&u(e,"data-value",c),(!d||y[0]&4096&&f!==(f=i[148].displayValue))&&u(e,"aria-label",f),(!d||y[0]&256)&&B(e,"item-mobile",i[8])},i(k){d||(m(g),m(w),d=!0)},o(k){v(g),v(w),d=!1},d(k){k&&S(e),g&&g.d(),w&&w.d(),h=!1,nt(_)}}}function da(i){let e,t,n,l,r,o,s,a,c,f,d,h;n=new $n({props:{direction:"left"}});let _=Zt(i[11]),g=[];for(let b=0;b<_.length;b+=1)g[b]=pa(Js(i,_,b));const w=b=>v(g[b],1,1,()=>{g[b]=null});return{c(){e=T("div"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("submenu_playback_rate")}`,o=O(),s=T("div"),a=O(),c=T("ul");for(let b=0;b<g.length;b+=1)g[b].c();u(t,"class","item menu-header v-5r0p3"),u(t,"aria-label",Y("aria_label_submenu_back")),B(t,"item-mobile",i[8]),u(s,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",i[22]),B(c,"items-mobile",i[8]),u(e,"class","menu menu-subList v-5r0p3"),B(e,"menu-desktop",!i[8]),B(e,"menu-mobile",i[8])},m(b,C){P(b,e,C),p(e,t),F(n,t,null),p(t,l),p(t,r),i[121](t),p(e,o),p(e,s),p(e,a),p(e,c);for(let k=0;k<g.length;k+=1)g[k]&&g[k].m(c,null);i[124](c),f=!0,d||(h=[ve(t,"click",st(i[68])),ve(c,"keydown",i[84])],d=!0)},p(b,C){if((!f||C[0]&256)&&B(t,"item-mobile",b[8]),C[0]&2304|C[2]&8388616){_=Zt(b[11]);let k;for(k=0;k<_.length;k+=1){const y=Js(b,_,k);g[k]?(g[k].p(y,C),m(g[k],1)):(g[k]=pa(y),g[k].c(),m(g[k],1),g[k].m(c,null))}for(de(),k=_.length;k<g.length;k+=1)w(k);me()}(!f||C[0]&4194304)&&u(c,"style",b[22]),(!f||C[0]&256)&&B(c,"items-mobile",b[8]),(!f||C[0]&256)&&B(e,"menu-desktop",!b[8]),(!f||C[0]&256)&&B(e,"menu-mobile",b[8])},i(b){if(!f){m(n.$$.fragment,b);for(let C=0;C<_.length;C+=1)m(g[C]);f=!0}},o(b){v(n.$$.fragment,b),g=g.filter(Boolean);for(let C=0;C<g.length;C+=1)v(g[C]);f=!1},d(b){b&&S(e),H(n),i[121](null),Bn(g,b),i[124](null),d=!1,nt(h)}}}function ma(i){let e,t,n;return t=new Wo({}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){P(l,e,r),F(t,e,null),n=!0},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function pa(i){let e,t,n,l=i[145].displayValue+"",r,o,s,a,c,f,d,h=i[145].selected&&ma();function _(){return i[122](i[145])}function g(...w){return i[123](i[145],...w)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=ze(l),o=O(),u(n,"class","v-5r0p3"),B(n,"quality-title-mobile",i[8]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",s=i[145].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=i[145].displayValue),B(e,"item-mobile",i[8])},m(w,b){P(w,e,b),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,o),c=!0,f||(d=[ve(e,"click",st(_)),ve(e,"keydown",g)],f=!0)},p(w,b){i=w,i[145].selected?h?b[0]&2048&&m(h,1):(h=ma(),h.c(),m(h,1),h.m(e,t)):h&&(de(),v(h,1,1,()=>{h=null}),me()),(!c||b[0]&2048)&&l!==(l=i[145].displayValue+"")&&et(r,l),(!c||b[0]&256)&&B(n,"quality-title-mobile",i[8]),(!c||b[0]&2048&&s!==(s=i[145].value))&&u(e,"data-value",s),(!c||b[0]&2048&&a!==(a=i[145].displayValue))&&u(e,"aria-label",a),(!c||b[0]&256)&&B(e,"item-mobile",i[8])},i(w){c||(m(h),c=!0)},o(w){v(h),c=!1},d(w){w&&S(e),h&&h.d(),f=!1,nt(d)}}}function ha(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae;n=new $n({props:{direction:"left"}});let se=!i[9]&&va(),R=i[9]&&ga();return{c(){e=T("div"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("submenu_traffic_saving")}`,o=O(),s=T("div"),a=O(),c=T("ul"),f=T("li"),se&&se.c(),d=O(),h=T("div"),h.textContent=`${Y("traffic_saving_disable")}`,_=O(),g=T("li"),R&&R.c(),w=O(),b=T("div"),b.textContent=`${Y("traffic_saving_enable")}`,C=O(),k=T("div"),y=O(),M=T("div"),q=T("span"),q.textContent=`${Y("traffic_saving_helper_text")}`,u(t,"class","item menu-header v-5r0p3"),u(t,"aria-label",Y("aria_label_submenu_back")),B(t,"item-mobile",i[8]),u(s,"class","menu-divider v-5r0p3"),u(h,"class","v-5r0p3"),B(h,"quality-title-mobile",i[8]),u(f,"class","item item-traffic-saving v-5r0p3"),u(f,"role","menuitem"),u(f,"tabindex","0"),u(f,"aria-label",Y("aria_label_submenu_traffic_saving_off")),B(f,"item-mobile",i[8]),u(b,"class","v-5r0p3"),B(b,"quality-title-mobile",i[8]),u(g,"class","item item-traffic-saving v-5r0p3"),u(g,"role","menuitem"),u(g,"tabindex","0"),u(g,"aria-label",`${Y("aria_label_submenu_traffic_saving_on")}. ${Y("traffic_saving_helper_text")}`),B(g,"item-mobile",i[8]),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",i[23]),B(c,"items-mobile",i[8]),u(k,"class","menu-divider v-5r0p3"),u(q,"class","v-5r0p3"),u(M,"class","item item-helper-text v-5r0p3"),B(M,"item-mobile",i[8]),u(e,"class","menu menu-subList menu-subList-traffic-saving v-5r0p3"),B(e,"menu-desktop",!i[8]),B(e,"menu-mobile",i[8])},m(te,X){P(te,e,X),p(e,t),F(n,t,null),p(t,l),p(t,r),i[125](t),p(e,o),p(e,s),p(e,a),p(e,c),p(c,f),se&&se.m(f,null),p(f,d),p(f,h),p(c,_),p(c,g),R&&R.m(g,null),p(g,w),p(g,b),i[130](c),p(e,C),p(e,k),p(e,y),p(e,M),p(M,q),I=!0,z||(ae=[ve(t,"click",st(i[68])),ve(f,"click",st(i[126])),ve(f,"keydown",i[127]),ve(g,"click",st(i[128])),ve(g,"keydown",i[129]),ve(c,"keydown",i[90])],z=!0)},p(te,X){(!I||X[0]&256)&&B(t,"item-mobile",te[8]),te[9]?se&&(de(),v(se,1,1,()=>{se=null}),me()):se?X[0]&512&&m(se,1):(se=va(),se.c(),m(se,1),se.m(f,d)),(!I||X[0]&256)&&B(h,"quality-title-mobile",te[8]),(!I||X[0]&256)&&B(f,"item-mobile",te[8]),te[9]?R?X[0]&512&&m(R,1):(R=ga(),R.c(),m(R,1),R.m(g,w)):R&&(de(),v(R,1,1,()=>{R=null}),me()),(!I||X[0]&256)&&B(b,"quality-title-mobile",te[8]),(!I||X[0]&256)&&B(g,"item-mobile",te[8]),(!I||X[0]&8388608)&&u(c,"style",te[23]),(!I||X[0]&256)&&B(c,"items-mobile",te[8]),(!I||X[0]&256)&&B(M,"item-mobile",te[8]),(!I||X[0]&256)&&B(e,"menu-desktop",!te[8]),(!I||X[0]&256)&&B(e,"menu-mobile",te[8])},i(te){I||(m(n.$$.fragment,te),m(se),m(R),I=!0)},o(te){v(n.$$.fragment,te),v(se),v(R),I=!1},d(te){te&&S(e),H(n),i[125](null),se&&se.d(),R&&R.d(),i[130](null),z=!1,nt(ae)}}}function va(i){let e,t,n;return t=new Wo({}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){P(l,e,r),F(t,e,null),n=!0},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function ga(i){let e,t,n;return t=new Wo({}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){P(l,e,r),F(t,e,null),n=!0},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function ba(i){let e,t,n,l,r,o,s,a,c,f;n=new $n({props:{direction:"left"}});let d=Zt(i[10]),h=[];for(let g=0;g<d.length;g+=1)h[g]=wa(Xs(i,d,g));const _=g=>v(h[g],1,1,()=>{h[g]=null});return{c(){e=T("div"),t=T("div"),j(n.$$.fragment),l=O(),r=T("div"),r.textContent=`${Y("subtitles_caption")}`,o=O(),s=T("ul");for(let g=0;g<h.length;g+=1)h[g].c();u(t,"class","item menu-header v-5r0p3"),u(t,"aria-label",Y("aria_label_submenu_back")),B(t,"item-mobile",i[8]),u(s,"class","items v-5r0p3"),u(s,"role","menu"),B(s,"items-mobile",i[8]),u(e,"class","menu menu-subList menu-subList-subtitles v-5r0p3"),B(e,"menu-desktop",!i[8]),B(e,"menu-mobile",i[8])},m(g,w){P(g,e,w),p(e,t),F(n,t,null),p(t,l),p(t,r),p(e,o),p(e,s);for(let b=0;b<h.length;b+=1)h[b]&&h[b].m(s,null);i[133](s),a=!0,c||(f=[ve(t,"click",st(i[68])),ve(s,"keydown",i[87])],c=!0)},p(g,w){if((!a||w[0]&256)&&B(t,"item-mobile",g[8]),w[0]&1280|w[2]&67108896){d=Zt(g[10]);let b;for(b=0;b<d.length;b+=1){const C=Xs(g,d,b);h[b]?(h[b].p(C,w),m(h[b],1)):(h[b]=wa(C),h[b].c(),m(h[b],1),h[b].m(s,null))}for(de(),b=d.length;b<h.length;b+=1)_(b);me()}(!a||w[0]&256)&&B(s,"items-mobile",g[8]),(!a||w[0]&256)&&B(e,"menu-desktop",!g[8]),(!a||w[0]&256)&&B(e,"menu-mobile",g[8])},i(g){if(!a){m(n.$$.fragment,g);for(let w=0;w<d.length;w+=1)m(h[w]);a=!0}},o(g){v(n.$$.fragment,g),h=h.filter(Boolean);for(let w=0;w<h.length;w+=1)v(h[w]);a=!1},d(g){g&&S(e),H(n),Bn(h,g),i[133](null),c=!1,nt(f)}}}function _a(i){let e,t,n;return t=new Wo({}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(l,r){P(l,e,r),F(t,e,null),n=!0},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function wa(i){let e,t,n,l=i[142].displayValue+"",r,o,s,a,c,f,d,h=i[142].selected&&_a();function _(){return i[131](i[142])}function g(...w){return i[132](i[142],...w)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=ze(l),o=O(),u(n,"class","v-5r0p3"),B(n,"quality-title-mobile",i[8]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",s=i[142].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=i[142].displayValue),B(e,"item-mobile",i[8])},m(w,b){P(w,e,b),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,o),c=!0,f||(d=[ve(e,"click",st(_)),ve(e,"keydown",g)],f=!0)},p(w,b){i=w,i[142].selected?h?b[0]&1024&&m(h,1):(h=_a(),h.c(),m(h,1),h.m(e,t)):h&&(de(),v(h,1,1,()=>{h=null}),me()),(!c||b[0]&1024)&&l!==(l=i[142].displayValue+"")&&et(r,l),(!c||b[0]&256)&&B(n,"quality-title-mobile",i[8]),(!c||b[0]&1024&&s!==(s=i[142].value))&&u(e,"data-value",s),(!c||b[0]&1024&&a!==(a=i[142].displayValue))&&u(e,"aria-label",a),(!c||b[0]&256)&&B(e,"item-mobile",i[8])},i(w){c||(m(h),c=!0)},o(w){v(h),c=!1},d(w){w&&S(e),h&&h.d(),f=!1,nt(d)}}}function F3(i){let e,t,n,l,r,o,s=i[14]&&$s(i),a=i[16]&&aa(i),c=i[17]&&da(i),f=i[19]&&ha(i),d=i[18]&&ba(i);return{c(){e=T("div"),s&&s.c(),t=O(),a&&a.c(),n=O(),c&&c.c(),l=O(),f&&f.c(),r=O(),d&&d.c(),u(e,"class","v-5r0p3"),B(e,"hidden",!i[14]),B(e,"container-mobile",i[8])},m(h,_){P(h,e,_),s&&s.m(e,null),p(e,t),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,_){h[14]?s?(s.p(h,_),_[0]&16384&&m(s,1)):(s=$s(h),s.c(),m(s,1),s.m(e,t)):s&&(de(),v(s,1,1,()=>{s=null}),me()),h[16]?a?(a.p(h,_),_[0]&65536&&m(a,1)):(a=aa(h),a.c(),m(a,1),a.m(e,n)):a&&(de(),v(a,1,1,()=>{a=null}),me()),h[17]?c?(c.p(h,_),_[0]&131072&&m(c,1)):(c=da(h),c.c(),m(c,1),c.m(e,l)):c&&(de(),v(c,1,1,()=>{c=null}),me()),h[19]?f?(f.p(h,_),_[0]&524288&&m(f,1)):(f=ha(h),f.c(),m(f,1),f.m(e,r)):f&&(de(),v(f,1,1,()=>{f=null}),me()),h[18]?d?(d.p(h,_),_[0]&262144&&m(d,1)):(d=ba(h),d.c(),m(d,1),d.m(e,null)):d&&(de(),v(d,1,1,()=>{d=null}),me()),(!o||_[0]&16384)&&B(e,"hidden",!h[14]),(!o||_[0]&256)&&B(e,"container-mobile",h[8])},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&&S(e),s&&s.d(),a&&a.d(),c&&c.d(),f&&f.d(),d&&d.d()}}}const xl=18;function H3(i,e,t){let n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae,se,R,{ref:te=void 0}=e,{supportLink:X}=e,{playerControlsHeight:G=0}=e,{returnFocus:A}=e;const V=Ct(),x=wn(),L=V.state.currentQuality$;D(i,L,ee=>t(103,w=ee));const ie=V.state.availableQualities$;D(i,ie,ee=>t(12,_=ee));const Ee=V.state.autoQualityLimitingAvailable$;D(i,Ee,ee=>t(107,y=ee));const ye=V.state.isAutoQualityEnabled$;D(i,ye,ee=>t(104,b=ee));const Le=V.state.currentPlaybackRate$;D(i,Le,ee=>t(13,g=ee));const Ve=V.state.availablePlaybackRates$;D(i,Ve,ee=>t(11,d=ee));const _e=V.state.currentSubtitle$;D(i,_e,ee=>t(37,se=ee));const Se=V.state.availableSubtitlesList$;D(i,Se,ee=>t(10,c=ee));const W=V.state.canDownload,$=V.state.hasMpegSources$;D(i,$,ee=>t(108,M=ee));const fe=V.ui.settingsMenuVisible;D(i,fe,ee=>t(14,ae=ee));const ue=V.ui.settingsMenuOpenedByKeyboard;D(i,ue,ee=>t(135,l=ee));const Fe=V.ui.isMobile;D(i,Fe,ee=>t(8,r=ee));const Oe=V.ui.mobileNotReportControlHidden$;D(i,Oe,ee=>t(105,C=ee));const Me=V.state.canChangePlaybackSpeed$;D(i,Me,ee=>t(106,k=ee));const Ie=V.ui.isFullscreen;D(i,Ie,ee=>t(111,z=ee));const ce=V.state.trafficSavingEnabled$;D(i,ce,ee=>t(9,s=ee));const he=V.ui.playerSize;D(i,he,ee=>t(110,I=ee));const re=V.ui.debugPanelVisible;D(i,re,ee=>t(38,R=ee));const Te=V.ui.playerSize;D(i,Te,ee=>t(109,q=ee));const pe=V.state.isInteractiveTime$,Pe=V.actions.internal.downloadVideo,Ke=V.actions.internal.closeSettingsMenu;let Re=!0,xe=!1,Xe=!1,ot=!1,at=!1,At=!1;function pt(){l||A==null||A(),Ke(),At=!1}function xt(){t(15,Re=!1),t(16,xe=!0)}function gt(){t(15,Re=!1),t(19,at=!0)}function Mt(ee){V.actions.internal.setQuality(ee),pt()}function oe(ee){V.actions.internal.setTrafficSavingEnabled(ee),pt()}function _t(){t(15,Re=!1),t(17,Xe=!0)}function rt(ee){V.actions.internal.setPlaybackRate(ee),pt()}function Rt(){t(15,Re=!1),t(18,ot=!0)}function ut(ee){V.actions.internal.setSubtitle(ee),pt()}function It(){t(15,Re=!0),t(16,xe=!1),t(17,Xe=!1),t(18,ot=!1),t(19,at=!1)}function Je(){Pe(),pt()}function Ue(){window.open(X,"_blank"),pt(),V.actions.internal.pause()}function St(){fr(V.actions.internal.getDebugTextData()),pt()}function $i(){re.set(!0),pt()}function di(){At=!0}function mi(){At=!1}function ln(ee,it,Ut){if(!ee)return"...";const Pi=it.find(mn=>mn.value===ee),ht=Pi?Pi.displayValue:ee;return Ut?ee===$e.VideoQuality.INVARIANT?Y("auto_quality_invariant"):Y("auto_quality",{actual:ht}):ht}let $t,Kt,ei,Ot,ti,Di,ii,Ei,pi,ni,zi,Ai,Fi,oi,Hi,Pt,Tt,hi=Ne(!1);D(i,hi,ee=>t(102,h=ee));let Ii,lt,ct=Ne(!1);D(i,ct,ee=>t(101,f=ee));let li,Bt,ri=Ne(!1);D(i,ri,ee=>t(100,a=ee));let vi,gi,Dt=Ne(!1);D(i,Dt,ee=>t(99,o=ee));const Zi=ee=>{Dc(ee,Ke)},bi=ee=>xi(this,null,function*(){sl(ee,xt,()=>{const it=_.findIndex(Ut=>Ut.selected);return Tt.childNodes[it]})}),Gt=ee=>xi(this,null,function*(){al(ee,It,hi,Ke)}),Li=(ee,it)=>{on(ee,()=>Mt(it))},rn=ee=>xi(this,null,function*(){sl(ee,_t,()=>{const it=d.findIndex(Ut=>Ut.selected);return lt.childNodes[it]})}),_i=ee=>xi(this,null,function*(){al(ee,It,ct,Ke)}),Ui=(ee,it)=>{on(ee,()=>rt(it))},Nt=ee=>xi(this,null,function*(){sl(ee,Rt,()=>{const it=c.findIndex(Ut=>Ut.selected);return Bt.childNodes[it]})}),Ht=ee=>xi(this,null,function*(){al(ee,It,ri,Ke)}),wi=(ee,it)=>{on(ee,()=>ut(it))},Vi=ee=>xi(this,null,function*(){sl(ee,gt,()=>{const it=s?2:0;return gi.childNodes[it]})}),Mi=ee=>xi(this,null,function*(){al(ee,It,Dt,Ke)}),si=(ee,it)=>{on(ee,()=>oe(it))},Ki=ee=>{on(ee,()=>Je())},ki=ee=>{on(ee,()=>Ue())},yi=ee=>{on(ee,()=>St())},ji=ee=>{on(ee,()=>$i())};_n(()=>{const ee=pe.subscribe(it=>{it&&!r&&!At&&!l&&pt()});return()=>{ee()}});function Ci(ee){Ce[ee?"unshift":"push"](()=>{Pt=ee,t(4,Pt)})}function Gi(ee){Ce[ee?"unshift":"push"](()=>{Ii=ee,t(5,Ii)})}function qt(ee){Ce[ee?"unshift":"push"](()=>{li=ee,t(6,li)})}function Yt(ee){Ce[ee?"unshift":"push"](()=>{vi=ee,t(7,vi)})}function Bi(ee){Ce[ee?"unshift":"push"](()=>{te=ee,t(0,te)})}function Ni(ee){Ce[ee?"unshift":"push"](()=>{Kt=ee,t(1,Kt)})}const Wt=ee=>Mt(ee.value),ai=(ee,it)=>Li(it,ee.value);function ui(ee){Ce[ee?"unshift":"push"](()=>{Tt=ee,t(32,Tt)})}function je(ee){Ce[ee?"unshift":"push"](()=>{ei=ee,t(2,ei)})}const Yi=ee=>rt(ee.value),ci=(ee,it)=>Ui(it,ee.value);function qi(ee){Ce[ee?"unshift":"push"](()=>{lt=ee,t(33,lt)})}function Be(ee){Ce[ee?"unshift":"push"](()=>{Ot=ee,t(3,Ot)})}const sn=()=>oe(!1),an=ee=>si(ee,!1),Qi=()=>oe(!0),Lt=ee=>si(ee,!0);function un(ee){Ce[ee?"unshift":"push"](()=>{gi=ee,t(35,gi)})}const en=ee=>ut(ee),Wi=(ee,it)=>wi(it,ee);function Si(ee){Ce[ee?"unshift":"push"](()=>{Bt=ee,t(34,Bt)})}return i.$$set=ee=>{"ref"in ee&&t(0,te=ee.ref),"supportLink"in ee&&t(96,X=ee.supportLink),"playerControlsHeight"in ee&&t(97,G=ee.playerControlsHeight),"returnFocus"in ee&&t(98,A=ee.returnFocus)},i.$$.update=()=>{var ee,it,Ut,Pi;if(i.$$.dirty[0]&16384&&ae&&(t(15,Re=!0),t(16,xe=!1),t(17,Xe=!1),t(18,ot=!1),t(19,at=!1)),i.$$.dirty[3]&1024&&t(36,n=Io(w)),i.$$.dirty[0]&4096|i.$$.dirty[3]&3072&&t(20,$t=ln(w,_,b)),i.$$.dirty[0]&258|i.$$.dirty[3]&458768)if(r&&z)t(21,ti=`max-height: ${Math.round(I.height*.6)}px`);else if(r)t(21,ti="");else{const ht=q.height-xl-((ee=Kt==null?void 0:Kt.clientHeight)!=null?ee:0)-G;t(21,ti=`max-height: ${ht}px; overflow: auto;`)}if(i.$$.dirty[0]&260|i.$$.dirty[3]&65552)if(r)t(22,Di="");else{const ht=q.height-xl-((it=ei==null?void 0:ei.clientHeight)!=null?it:0)-G;t(22,Di=`max-height: ${ht}px; overflow: auto;`)}if(i.$$.dirty[0]&264|i.$$.dirty[3]&65552)if(r)t(23,ii="");else{const ht=q.height-xl-((Ut=Ot==null?void 0:Ot.clientHeight)!=null?Ut:0)-G;t(23,ii=`max-height: ${ht}px; overflow: auto;`)}i.$$.dirty[3]&36864&&t(24,Ei=W&&M&&!C),i.$$.dirty[3]&20480&&t(25,pi=x.features.trafficSaving&&!C&&y),i.$$.dirty[0]&1024|i.$$.dirty[3]&4096&&t(26,ni=c.length>0&&!C),i.$$.dirty[3]&12288&&t(27,zi=!!k&&!C),i.$$.dirty[3]&4096&&t(28,Ai=!C),i.$$.dirty[0]&512&&t(29,Fi=Y(s?"traffic_saving_on":"traffic_saving_off")),i.$$.dirty[3]&3072&&t(30,oi=b?Y("auto_quality_option"):w),i.$$.dirty[0]&10240&&t(31,Hi=(Pi=d.find(ht=>ht.value===g))==null?void 0:Pi.displayValue),i.$$.dirty[0]&16|i.$$.dirty[3]&512&&rl(Pt,hi,h),i.$$.dirty[0]&32|i.$$.dirty[3]&256&&rl(Ii,ct,f),i.$$.dirty[0]&64|i.$$.dirty[3]&128&&rl(li,ri,a),i.$$.dirty[0]&128|i.$$.dirty[3]&64&&rl(vi,Dt,o)},[te,Kt,ei,Ot,Pt,Ii,li,vi,r,s,c,d,_,g,ae,Re,xe,Xe,ot,at,$t,ti,Di,ii,Ei,pi,ni,zi,Ai,Fi,oi,Hi,Tt,lt,Bt,gi,n,se,R,x,L,ie,Ee,ye,Le,Ve,_e,Se,$,fe,ue,Fe,Oe,Me,Ie,ce,he,re,Te,pt,xt,gt,Mt,oe,_t,rt,Rt,ut,It,Je,Ue,St,$i,di,mi,hi,ct,ri,Dt,Zi,bi,Gt,Li,rn,_i,Ui,Nt,Ht,wi,Vi,Mi,si,Ki,ki,yi,ji,X,G,A,o,a,f,h,w,b,C,k,y,M,q,I,z,Ci,Gi,qt,Yt,Bi,Ni,Wt,ai,ui,je,Yi,ci,qi,Be,sn,an,Qi,Lt,un,en,Wi,Si]}class Yc extends ke{constructor(e){super(),we(this,e,H3,F3,be,{ref:0,supportLink:96,playerControlsHeight:97,returnFocus:98},D3,[-1,-1,-1,-1,-1])}}function U3(i){Ze(i,"v-d9t49t",".settings-icon-wrapper.v-d9t49t{position:relative;width:24px}")}function j3(i){let e,t,n;return t=new Kc({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),j(t.$$.fragment),u(e,"class","settings-icon-wrapper v-d9t49t")},m(l,r){P(l,e,r),F(t,e,null),n=!0},p(l,r){const o={};r&8&&(o.isMobile=l[3]),r&16&&(o.currentQuality=l[4]),t.$set(o)},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function q3(i){let e,t,n;function l(o){i[9](o)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[j3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function W3(i,e,t){let n,l,r,{ref:o=void 0}=e;const s=Ct(),a=s.state.currentQuality$;D(i,a,w=>t(4,r=w));const c=s.ui.settingsMenuVisible;D(i,c,w=>t(1,n=w));const f=s.actions.internal.toggleSettingsMenu,d=s.ui.isMobile;D(i,d,w=>t(3,l=w));let h;function _(w){const b=kr(w);f(b)}function g(w){o=w,t(0,o)}return i.$$set=w=>{"ref"in w&&t(0,o=w.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,h=Y(n?"tooltip_settings_on":"tooltip_settings_off"))},[o,n,h,l,r,a,c,d,_,g]}class Pr extends ke{constructor(e){super(),we(this,e,W3,q3,be,{ref:0},U3)}}function Z3(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class K3 extends ke{constructor(e){super(),we(this,e,null,Z3,be,{})}}function G3(i){let e,t;return e=new Gc({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Y3(i){let e,t;return e=new K3({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Q3(i){let e,t,n,l;const r=[Y3,G3],o=[];function s(a,c){return a[0]?0:1}return e=s(i),t=o[e]=r[e](i),{c(){t.c(),n=mt()},m(a,c){o[e].m(a,c),P(a,n,c),l=!0},p(a,c){let f=e;e=s(a),e!==f&&(de(),v(o[f],1,1,()=>{o[f]=null}),me(),t=o[e],t||(t=o[e]=r[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){l||(m(t),l=!0)},o(a){v(t),l=!1},d(a){a&&S(n),o[e].d(a)}}}function X3(i){let e,t;return e=new Ti({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Do[Ae.KeyC],$$slots:{default:[Q3]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function J3(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:l}=e,r;return i.$$set=o=>{"isSubtitlesEnabled"in o&&t(0,n=o.isSubtitlesEnabled),"click"in o&&t(1,l=o.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=Y(n?"tooltip_subtitles_on":"tooltip_subtitles_off"))},[n,l,r]}class x3 extends ke{constructor(e){super(),we(this,e,J3,X3,be,{isSubtitlesEnabled:0,click:1})}}function $3(i){Ze(i,"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 ka(i){let e,t;return{c(){e=T("span"),t=ze(i[3]),u(e,"class","duration v-19o2urr")},m(n,l){P(n,e,l),p(e,t)},p(n,l){l&8&&et(t,n[3])},d(n){n&&S(e)}}}function eh(i){let e,t,n,l,r=i[2]&&ka(i);return{c(){e=T("div"),t=T("span"),n=ze(i[4]),l=O(),r&&r.c(),u(t,"class","current v-19o2urr"),u(e,"class","time v-19o2urr"),B(e,"mobile",i[1])},m(o,s){P(o,e,s),p(e,t),p(t,n),p(e,l),r&&r.m(e,null),i[7](e)},p(o,[s]){s&16&&et(n,o[4]),o[2]?r?r.p(o,s):(r=ka(o),r.c(),r.m(e,null)):r&&(r.d(1),r=null),s&2&&B(e,"mobile",o[1])},i:K,o:K,d(o){o&&S(e),r&&r.d(),i[7](null)}}}function th(i,e,t){let{isMobile:n=!1}=e,{duration:l}=e,{position:r}=e,{showDuration:o=!0}=e,{ref:s}=e,a,c;function f(d){Ce[d?"unshift":"push"](()=>{s=d,t(0,s)})}return i.$$set=d=>{"isMobile"in d&&t(1,n=d.isMobile),"duration"in d&&t(5,l=d.duration),"position"in d&&t(6,r=d.position),"showDuration"in d&&t(2,o=d.showDuration),"ref"in d&&t(0,s=d.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=jn(l)),i.$$.dirty&64&&t(4,c=jn(r))},[s,n,o,a,c,l,r,f]}class Qc extends ke{constructor(e){super(),we(this,e,th,eh,be,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},$3)}}function ih(i){Ze(i,"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(i){let e,t,n,l,r,o;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("path"),u(n,"class","wave2 v-1n5yyua"),u(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),u(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(t,"fill","#fff"),u(t,"fill-rule","evenodd"),u(e,"data-value",i[0]),u(e,"data-testid",o="volume-"+i[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){P(s,e,a),p(e,t),p(t,n),p(t,l),p(t,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:K,o:K,d(s){s&&S(e)}}}function oh(i,e,t){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 i.$$set=s=>{"volume"in s&&t(1,n=s.volume),"muted"in s&&t(2,l=s.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,o=r(n,l))},[o,n,l]}class yl extends ke{constructor(e){super(),we(this,e,oh,nh,be,{volume:1,muted:2},ih)}}function lh(i){let e,t;const n=i[4].default,l=qn(n,i,i[3],null);return{c(){e=T("div"),l&&l.c(),u(e,"class","overlay")},m(r,o){P(r,e,o),l&&l.m(e,null),i[5](e),t=!0},p(r,[o]){l&&l.p&&(!t||o&8)&&Zn(l,n,r,r[3],t?Wn(n,r[3],o,null):Kn(r[3]),null)},i(r){t||(m(l,r),t=!0)},o(r){v(l,r),t=!1},d(r){r&&S(e),l&&l.d(r),i[5](null)}}}function rh(i,e,t){let n,{$$slots:l={},$$scope:r}=e;const s=Ct().ui.overlayContainer$;D(i,s,h=>t(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)};_n(()=>(f(n),()=>c(n)));function d(h){Ce[h?"unshift":"push"](()=>{a=h,t(0,a)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[a,s,n,r,l,d]}class sh extends ke{constructor(e){super(),we(this,e,rh,lh,be,{})}}function ah(i){Ze(i,"v-1jbbzcj",'.tooltip-wrapper.v-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.v-1jbbzcj{width:100%}.tooltip.v-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.v-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.v-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function ya(i){let e,t;return e=new sh({props:{$$slots:{default:[uh]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&262387&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function uh(i){let e,t,n,l,r,o,s;return{c(){e=T("div"),t=T("div"),n=ze(i[1]),l=O(),r=T("div"),u(t,"class","content v-1jbbzcj"),u(r,"class","tooltip-pointer v-1jbbzcj"),u(r,"style",o=`transform: translate(${i[5]}px, ${i[8]}px);`),u(e,"class","tooltip v-1jbbzcj"),u(e,"style",s=`transform: translate(${i[6]}px, ${i[7]}px);`),B(e,"active",i[0])},m(a,c){P(a,e,c),p(e,t),p(t,n),p(e,l),p(e,r),i[17](e)},p(a,c){c&2&&et(n,a[1]),c&32&&o!==(o=`transform: translate(${a[5]}px, ${a[8]}px);`)&&u(r,"style",o),c&192&&s!==(s=`transform: translate(${a[6]}px, ${a[7]}px);`)&&u(e,"style",s),c&1&&B(e,"active",a[0])},d(a){a&&S(e),i[17](null)}}}function ch(i){let e,t,n,l,r,o;const s=i[15].default,a=qn(s,i,i[18],null);let c=i[1]&&ya(i);return{c(){e=T("div"),a&&a.c(),t=O(),c&&c.c(),n=mt(),u(e,"class","tooltip-wrapper v-1jbbzcj"),B(e,"full-width",i[2])},m(f,d){P(f,e,d),a&&a.m(e,null),i[16](e),P(f,t,d),c&&c.m(f,d),P(f,n,d),l=!0,r||(o=[ve(e,"mouseenter",i[11]),ve(e,"mousemove",i[11]),ve(e,"mouseleave",i[12]),ve(e,"mousedown",i[12]),ve(e,"mouseup",i[11])],r=!0)},p(f,[d]){a&&a.p&&(!l||d&262144)&&Zn(a,s,f,f[18],l?Wn(s,f[18],d,null):Kn(f[18]),null),(!l||d&4)&&B(e,"full-width",f[2]),f[1]?c?(c.p(f,d),d&2&&m(c,1)):(c=ya(f),c.c(),m(c,1),c.m(n.parentNode,n)):c&&(de(),v(c,1,1,()=>{c=null}),me())},i(f){l||(m(a,f),m(c),l=!0)},o(f){v(a,f),v(c),l=!1},d(f){f&&(S(e),S(t),S(n)),a&&a.d(f),i[16](null),c&&c.d(f),r=!1,nt(o)}}}const ul=5;function fh(i,e,t){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,h,_,g,w=0,b=ul,C=0,k=0;const y=wn(),M=Ct(),q=M.ui.playerSize;D(i,q,V=>t(21,l=V));const I=M.ui.overlayContainer$;D(i,I,V=>t(20,n=V));const z=M.getLogger().createComponentLog("Tooltip component"),ae=()=>{if(!n)return;const V=n.getBoundingClientRect(),x=h.getBoundingClientRect(),L=x.width,ie=_.clientWidth,Ee=l.width,ye=(L-ie)/2,Le=x.left+c-V.left;let Ve=Le+ye;const _e=x.top+f-V.top;let Se=ie/2-ul;const W=Ve<$o,$=Ve+ie>Ee-$o;W&&(Ve=$o,Se=Le+x.width/2-2.5*ul),$&&(Ve=Ee-$o-ie,Se=x.left-V.left+x.width/2-Ve-ul),t(6,C=Ve),t(7,k=_e),t(5,w=Se)},se=()=>{try{if(!n||!h)return;ae(),t(0,a=!0)}catch(V){z({message:String(V)})}},R=()=>{t(0,a=!1)},te=()=>{_&&(g||(g=window.setTimeout(se,y.controls.hideTimeoutTooltips)),a&&se())},X=()=>{R(),window.clearTimeout(g),g=void 0};gl(()=>window.clearTimeout(g));function G(V){Ce[V?"unshift":"push"](()=>{h=V,t(3,h)})}function A(V){Ce[V?"unshift":"push"](()=>{_=V,t(4,_)})}return i.$$set=V=>{"content"in V&&t(1,s=V.content),"active"in V&&t(0,a=V.active),"translateX"in V&&t(13,c=V.translateX),"translateY"in V&&t(14,f=V.translateY),"isFullWidthWrapper"in V&&t(2,d=V.isFullWidthWrapper),"$$scope"in V&&t(18,o=V.$$scope)},[a,s,d,h,_,w,C,k,b,q,I,te,X,c,f,r,G,A,o]}class Xc extends ke{constructor(e){super(),we(this,e,fh,ch,be,{content:1,active:0,translateX:13,translateY:14,isFullWidthWrapper:2},ah)}}function dh(i){Ze(i,"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(i){let e;const t=i[16].default,n=qn(t,i,i[21],null);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),e=!0},p(l,r){n&&n.p&&(!e||r&2097152)&&Zn(n,t,l,l[21],e?Wn(t,l[21],r,null):Kn(l[21]),null)},i(l){e||(m(n,l),e=!0)},o(l){v(n,l),e=!1},d(l){n&&n.d(l)}}}function ph(i){let e,t;return e=new Xc({props:{content:i[9],translateX:i[7],translateY:i[8],isFullWidthWrapper:i[4],$$slots:{default:[hh]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&512&&(r.content=n[9]),l&128&&(r.translateX=n[7]),l&256&&(r.translateY=n[8]),l&16&&(r.isFullWidthWrapper=n[4]),l&2097152&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function hh(i){let e;const t=i[16].default,n=qn(t,i,i[21],null);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),e=!0},p(l,r){n&&n.p&&(!e||r&2097152)&&Zn(n,t,l,l[21],e?Wn(t,l[21],r,null):Kn(l[21]),null)},i(l){e||(m(n,l),e=!0)},o(l){v(n,l),e=!1},d(l){n&&n.d(l)}}}function vh(i){let e,t,n,l,r,o,s,a,c;const f=[ph,mh],d=[];function h(_,g){return _[3]&&_[5]&&!_[10]?0:1}return t=h(i),n=d[t]=f[t](i),{c(){e=T("div"),n.c(),u(e,"class",l="btn-container "+i[2]+" v-p9r045"),u(e,"aria-hidden",r=i[6]||null),To(()=>i[20].call(e))},m(_,g){P(_,e,g),d[t].m(e,null),i[19](e),o=dr(e,i[20].bind(e)),s=!0,a||(c=[ve(e,"pointerdown",st(Jt(i[17]))),ve(e,"click",st(Jt(i[18])))],a=!0)},p(_,[g]){let w=t;t=h(_),t===w?d[t].p(_,g):(de(),v(d[w],1,1,()=>{d[w]=null}),me(),n=d[t],n?n.p(_,g):(n=d[t]=f[t](_),n.c()),m(n,1),n.m(e,null)),(!s||g&4&&l!==(l="btn-container "+_[2]+" v-p9r045"))&&u(e,"class",l),(!s||g&64&&r!==(r=_[6]||null))&&u(e,"aria-hidden",r)},i(_){s||(m(n),s=!0)},o(_){v(n),s=!1},d(_){_&&S(e),d[t].d(),i[19](null),o(),a=!1,nt(c)}}}function gh(i,e,t){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:_=""}=e,{disabledTooltipContent:g=Y("tooltip_button_disabled")}=e,{isAriaHidden:w=!1}=e,{initialTranslateXPx:b=0}=e,{initialTranslateYPx:C=-18}=e;const k=Ct(),y=k.ui.isMobile;D(i,y,R=>t(10,l=R));const M=k.state.graphIsOpened$;D(i,M,R=>t(15,n=R));let q;function I(R){Po.call(this,i,R)}function z(R){Po.call(this,i,R)}function ae(R){Ce[R?"unshift":"push"](()=>{f=R,t(0,f)})}function se(){d=this.clientWidth,t(1,d)}return i.$$set=R=>{"className"in R&&t(2,s=R.className),"disabled"in R&&t(13,a=R.disabled),"hasTooltip"in R&&t(3,c=R.hasTooltip),"ref"in R&&t(0,f=R.ref),"width"in R&&t(1,d=R.width),"isFullWidthTooltip"in R&&t(4,h=R.isFullWidthTooltip),"tooltipContent"in R&&t(5,_=R.tooltipContent),"disabledTooltipContent"in R&&t(14,g=R.disabledTooltipContent),"isAriaHidden"in R&&t(6,w=R.isAriaHidden),"initialTranslateXPx"in R&&t(7,b=R.initialTranslateXPx),"initialTranslateYPx"in R&&t(8,C=R.initialTranslateYPx),"$$scope"in R&&t(21,o=R.$$scope)},i.$$.update=()=>{i.$$.dirty&57376&&(a?t(9,q=n?Y("tooltip_disabled_when_graph_on"):g):t(9,q=_))},[f,d,s,c,h,_,w,b,C,q,l,y,M,a,g,n,r,I,z,ae,se,o]}class jt extends ke{constructor(e){super(),we(this,e,gh,vh,be,{className:2,disabled:13,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,disabledTooltipContent:14,isAriaHidden:6,initialTranslateXPx:7,initialTranslateYPx:8},dh)}}function bh(i){let e,t,n,l,r;return{c(){e=N("svg"),t=N("rect"),l=N("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(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=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(o,s){P(o,e,s),p(e,t),p(e,l)},p(o,[s]){s&1&&n!==(n=o[0]?1:.24)&&u(t,"fill-opacity",n),s&1&&r!==(r=o[0]?"var(--interactive-episode-complete)":"white")&&u(l,"fill",r)},i:K,o:K,d(o){o&&S(e)}}}function _h(i,e,t){let{completed:n}=e;return i.$$set=l=>{"completed"in l&&t(0,n=l.completed)},[n]}class Jc extends ke{constructor(e){super(),we(this,e,_h,bh,be,{completed:0})}}function wh(i){Ze(i,"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(i){let e,t,n,l,r;return t=new Jc({props:{completed:!!i[0].completed}}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","interactive-episode-icon v-bklhpe"),u(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),To(()=>i[3].call(e)),B(e,"disabled",i[1])},m(o,s){P(o,e,s),F(t,e,null),l=dr(e,i[3].bind(e)),r=!0},p(o,s){const a={};s&1&&(a.completed=!!o[0].completed),t.$set(a),(!r||s&1&&n!==(n=`left: ${o[0].from+o[0].width/2}%`))&&u(e,"style",n),(!r||s&2)&&B(e,"disabled",o[1])},i(o){r||(m(t.$$.fragment,o),r=!0)},o(o){v(t.$$.fragment,o),r=!1},d(o){o&&S(e),H(t),l()}}}function yh(i){let e,t;return e=new jt({props:{tooltipContent:Y(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:[kh]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,[l]){const r={};l&1&&(r.tooltipContent=Y(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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ch(i,e,t){let{videoEpisode:n}=e,{disabled:l}=e,r;function o(){r=this.clientWidth,t(2,r)}return i.$$set=s=>{"videoEpisode"in s&&t(0,n=s.videoEpisode),"disabled"in s&&t(1,l=s.disabled)},[n,l,r,o]}class Sh extends ke{constructor(e){super(),we(this,e,Ch,yh,be,{videoEpisode:0,disabled:1},wh)}}function Ph(i){Ze(i,"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 Ca(i,e,t){const n=i.slice();return n[2]=e[t],n}function Sa(i){let e,t,n,l,r,o,s,a,c;return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),o=T("div"),a=O(),u(n,"class","video-episode-loaded v-1h9p3m2"),u(n,"style",l=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),u(o,"class","video-episode-filled v-1h9p3m2"),u(o,"style",s=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),B(o,"mobile",i[1]),u(t,"class","video-episode-inner v-1h9p3m2"),u(e,"class","video-episode v-1h9p3m2"),u(e,"style",c=`left: ${i[2].from}%; width: ${i[2].width}%`),B(e,"mobile",i[1])},m(f,d){P(f,e,d),p(e,t),p(t,n),p(t,r),p(t,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&&B(o,"mobile",f[1]),d&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),d&2&&B(e,"mobile",f[1])},d(f){f&&S(e)}}}function Th(i){let e,t=Zt(i[0]),n=[];for(let l=0;l<t.length;l+=1)n[l]=Sa(Ca(i,t,l));return{c(){e=T("div");for(let l=0;l<n.length;l+=1)n[l].c();u(e,"class","video-episodes-wrap v-1h9p3m2")},m(l,r){P(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){t=Zt(l[0]);let o;for(o=0;o<t.length;o+=1){const s=Ca(l,t,o);n[o]?n[o].p(s,r):(n[o]=Sa(s),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},i:K,o:K,d(l){l&&S(e),Bn(n,l)}}}function Eh(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:l}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,l=r.isMobile)},[n,l]}class Ah extends ke{constructor(e){super(),we(this,e,Eh,Th,be,{videoEpisodes:0,isMobile:1},Ph)}}function Ih(i){Ze(i,"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 Pa(i,e,t){const n=i.slice();return n[48]=e[t],n}function Ta(i){let e,t,n=Zt(i[21]),l=[];for(let o=0;o<n.length;o+=1)l[o]=Aa(Pa(i,n,o));const r=o=>v(l[o],1,1,()=>{l[o]=null});return{c(){e=T("div");for(let o=0;o<l.length;o+=1)l[o].c();u(e,"class","interactive-icons v-1golz1y"),B(e,"mobile",i[5]),B(e,"hidden",i[5]&&!i[20])},m(o,s){P(o,e,s);for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(e,null);t=!0},p(o,s){if(s[0]&2097664){n=Zt(o[21]);let a;for(a=0;a<n.length;a+=1){const c=Pa(o,n,a);l[a]?(l[a].p(c,s),m(l[a],1)):(l[a]=Aa(c),l[a].c(),m(l[a],1),l[a].m(e,null))}for(de(),a=n.length;a<l.length;a+=1)r(a);me()}(!t||s[0]&32)&&B(e,"mobile",o[5]),(!t||s[0]&1048608)&&B(e,"hidden",o[5]&&!o[20])},i(o){if(!t){for(let s=0;s<n.length;s+=1)m(l[s]);t=!0}},o(o){l=l.filter(Boolean);for(let s=0;s<l.length;s+=1)v(l[s]);t=!1},d(o){o&&S(e),Bn(l,o)}}}function Ea(i){let e,t;return e=new Sh({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Aa(i){let e,t,n=i[48].interactive&&Ea(i);return{c(){n&&n.c(),e=mt()},m(l,r){n&&n.m(l,r),P(l,e,r),t=!0},p(l,r){l[48].interactive?n?(n.p(l,r),r[0]&2097152&&m(n,1)):(n=Ea(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(de(),v(n,1,1,()=>{n=null}),me())},i(l){t||(m(n),t=!0)},o(l){v(n),t=!1},d(l){l&&S(e),n&&n.d(l)}}}function Lh(i){let e,t,n,l,r,o;return{c(){e=T("div"),t=T("div"),l=O(),r=T("div"),u(t,"class","loaded v-1golz1y"),u(t,"style",n=`transform: translateX(${i[11]*100}%);`),u(r,"class","filled v-1golz1y"),u(r,"style",o=`transform: translateX(${i[12]*100}%);`),B(r,"active-live",i[4]),B(r,"ads",i[6]),u(e,"class","bars v-1golz1y")},m(s,a){P(s,e,a),p(e,t),p(e,l),p(e,r)},p(s,a){a[0]&2048&&n!==(n=`transform: translateX(${s[11]*100}%);`)&&u(t,"style",n),a[0]&4096&&o!==(o=`transform: translateX(${s[12]*100}%);`)&&u(r,"style",o),a[0]&16&&B(r,"active-live",s[4]),a[0]&64&&B(r,"ads",s[6])},i:K,o:K,d(s){s&&S(e)}}}function Vh(i){let e,t;return e=new Ah({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Mh(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g=i[8]&&Ta(i);const w=[Vh,Lh],b=[];function C(k,y){return k[21].length?0:1}return n=C(i),l=b[n]=w[n](i),{c(){var k;g&&g.c(),e=O(),t=T("div"),l.c(),r=O(),o=T("div"),s=T("div"),u(s,"class","handle v-1golz1y"),B(s,"active-live",i[4]),u(o,"class","handleWrap v-1golz1y"),u(o,"style",a=`transform: translateX(${i[13]*100}%);`),B(o,"hidden",i[10]),u(t,"class",c="slider "+i[0]+" v-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),B(t,"disabled",i[9]),B(t,"slider-dragging",i[20]),B(t,"hidden",i[2]),B(t,"slider-vertical",i[3]),B(t,"no-handle",i[10]),B(t,"square",i[7])},m(k,y){g&&g.m(k,y),P(k,e,y),P(k,t,y),b[n].m(t,null),p(t,r),p(t,o),p(o,s),i[42](t),d=!0,h||(_=[ve(t,"pointerdown",Jt(i[22])),ve(t,"pointermove",Jt(i[23])),ve(t,"pointerup",Jt(i[24])),ve(t,"pointerenter",Jt(i[25])),ve(t,"pointerleave",Jt(i[26])),ve(t,"click",st(ne.noop)),ve(t,"wheel",i[27])],h=!0)},p(k,y){var q;k[8]?g?(g.p(k,y),y[0]&256&&m(g,1)):(g=Ta(k),g.c(),m(g,1),g.m(e.parentNode,e)):g&&(de(),v(g,1,1,()=>{g=null}),me());let M=n;n=C(k),n===M?b[n].p(k,y):(de(),v(b[M],1,1,()=>{b[M]=null}),me(),l=b[n],l?l.p(k,y):(l=b[n]=w[n](k),l.c()),m(l,1),l.m(t,r)),(!d||y[0]&16)&&B(s,"active-live",k[4]),(!d||y[0]&8192&&a!==(a=`transform: translateX(${k[13]*100}%);`))&&u(o,"style",a),(!d||y[0]&1024)&&B(o,"hidden",k[10]),(!d||y[0]&1&&c!==(c="slider "+k[0]+" v-1golz1y"))&&u(t,"class",c),(!d||y[0]&16384)&&u(t,"aria-label",k[14]),(!d||y[0]&32768)&&u(t,"aria-valuemin",k[15]),(!d||y[0]&65536)&&u(t,"aria-valuemax",k[16]),(!d||y[0]&131072)&&u(t,"aria-valuenow",k[17]),(!d||y[0]&262144)&&u(t,"aria-valuetext",k[18]),(!d||y[0]&2&&f!==(f=(q=k[1])!=null?q:null))&&u(t,"data-testid",f),(!d||y[0]&513)&&B(t,"disabled",k[9]),(!d||y[0]&1048577)&&B(t,"slider-dragging",k[20]),(!d||y[0]&5)&&B(t,"hidden",k[2]),(!d||y[0]&9)&&B(t,"slider-vertical",k[3]),(!d||y[0]&1025)&&B(t,"no-handle",k[10]),(!d||y[0]&129)&&B(t,"square",k[7])},i(k){d||(m(g),m(l),d=!0)},o(k){v(g),v(l),d=!1},d(k){k&&(S(e),S(t)),g&&g.d(k),b[n].d(),i[42](null),h=!1,nt(_)}}}function Bh(i,e,t){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:_=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:w=!1}=e,{disabled:b=!1}=e,{hideHandel:C=!1}=e,k,y,{onPointerDown:M=ne.noop}=e,{onHandleMove:q=ne.noop}=e,{onPointerUp:I=ne.noop}=e,{onPointerEnter:z=ne.noop}=e,{onPointerMove:ae=ne.noop}=e,{onPointerLeave:se=ne.noop}=e,{onWheelUp:R=ne.noop}=e,{onWheelDown:te=ne.noop}=e,{onWheelLeft:X=ne.noop}=e,{onWheelRight:G=ne.noop}=e,{loadedProgress:A=0}=e,{filledProgress:V=0}=e,{handleProgress:x=0}=e,{ariaLabel:L=""}=e,{ariaValueMin:ie=void 0}=e,{ariaValueMax:Ee=void 0}=e,{ariaValueNow:ye=void 0}=e,{ariaValueText:Le=""}=e;const Ve=wn();let _e=!1,Se;function W(re){if(_e)return;t(20,_e=!0),y=k.getBoundingClientRect();const Te=Me(re.clientX,re.clientY);M(Te),k.setPointerCapture(re.pointerId)}function $(re){const Te=Me(re.clientX,re.clientY),pe=Ie(re.clientX);ae(Te,pe,y.width),_e&&q(Te)}function fe(re){if(!_e)return;t(20,_e=!1);const Te=Me(re.clientX,re.clientY);I(Te)}function ue(re){y=k.getBoundingClientRect();const Te=Me(re.clientX,re.clientY),pe=Ie(re.clientX);z(Te,pe,y.width)}function Fe(){se()}function Oe(re){g&&(re.preventDefault(),re.deltaY<0?R():re.deltaY>0?te():re.deltaX>0?G():X())}function Me(re,Te){return a?Math.max(0,Math.min(1,(y.height-(Te-y.top))/y.height)):Math.min(Math.max(re-y.x,0),y.width)/y.width}function Ie(re){return Math.min(Math.max(re-y.x,0),y.width)}function ce(re,Te){const pe=Ve.features.episodesClustering&&!w?Ve.episodeMinWidthPc:0,Pe=[];let Ke=0,Re=0,xe=0;for(let at=1;at<_.length;at++)Re=_[at].time/Se*100,Re-Ke>pe&&(Pe.push({from:Ke,width:Math.max(0,Re-Ke),loadedWidth:Math.max(0,Math.min(Re,re)-Ke),filledWidth:Math.max(0,Math.min(Re,Te)-Ke),interactive:_[at-1].interactive,completed:_[at-1].completed}),Ke=_[at].time/Se*100,xe++);const Xe={from:Ke,width:Math.max(0,100-Ke),loadedWidth:Math.max(0,Math.min(re,100)-Ke),filledWidth:Math.max(0,Math.min(Te,100)-Ke),interactive:_[xe].interactive,completed:_[xe].completed};100-Ke<pe?(xe-=1,Pe[xe].width+=100-Ke,Pe[xe].loadedWidth+=Math.max(0,Math.min(re,100)-Ke),Pe[xe].filledWidth+=Math.max(0,Math.min(Te,100)-Ke)):Pe[xe]=Xe;const ot=_[0].time;if(ot!==0){const at=ot/Se*100;Pe.unshift({from:0,width:at,loadedWidth:Math.min(at,re),filledWidth:Math.min(at,Te)})}return Pe}function he(re){Ce[re?"unshift":"push"](()=>{k=re,t(19,k)})}return i.$$set=re=>{"className"in re&&t(0,r=re.className),"testId"in re&&t(1,o=re.testId),"isHidden"in re&&t(2,s=re.isHidden),"isVertical"in re&&t(3,a=re.isVertical),"isActiveLive"in re&&t(4,c=re.isActiveLive),"isMobile"in re&&t(5,f=re.isMobile),"isAds"in re&&t(6,d=re.isAds),"squareBorders"in re&&t(7,h=re.squareBorders),"videoEpisodes"in re&&t(28,_=re.videoEpisodes),"withWheelHandler"in re&&t(29,g=re.withWheelHandler),"isInteractive"in re&&t(8,w=re.isInteractive),"disabled"in re&&t(9,b=re.disabled),"hideHandel"in re&&t(10,C=re.hideHandel),"onPointerDown"in re&&t(30,M=re.onPointerDown),"onHandleMove"in re&&t(31,q=re.onHandleMove),"onPointerUp"in re&&t(32,I=re.onPointerUp),"onPointerEnter"in re&&t(33,z=re.onPointerEnter),"onPointerMove"in re&&t(34,ae=re.onPointerMove),"onPointerLeave"in re&&t(35,se=re.onPointerLeave),"onWheelUp"in re&&t(36,R=re.onWheelUp),"onWheelDown"in re&&t(37,te=re.onWheelDown),"onWheelLeft"in re&&t(38,X=re.onWheelLeft),"onWheelRight"in re&&t(39,G=re.onWheelRight),"loadedProgress"in re&&t(11,A=re.loadedProgress),"filledProgress"in re&&t(12,V=re.filledProgress),"handleProgress"in re&&t(13,x=re.handleProgress),"ariaLabel"in re&&t(14,L=re.ariaLabel),"ariaValueMin"in re&&t(15,ie=re.ariaValueMin),"ariaValueMax"in re&&t(16,Ee=re.ariaValueMax),"ariaValueNow"in re&&t(17,ye=re.ariaValueNow),"ariaValueText"in re&&t(18,Le=re.ariaValueText)},i.$$.update=()=>{var re;i.$$.dirty[0]&65536&&t(40,Se=Ee!=null?Ee:0),i.$$.dirty[0]&268435456|i.$$.dirty[1]&512&&t(41,n=((re=_[_.length-1])==null?void 0:re.time)<Se),i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536&&t(21,l=_.length&&n&&Se?ce(A*100,V*100):[])},[r,o,s,a,c,f,d,h,w,b,C,A,V,x,L,ie,Ee,ye,Le,k,_e,l,W,$,fe,ue,Fe,Oe,_,g,M,q,I,z,ae,se,R,te,X,G,Se,n,he]}class Tr extends ke{constructor(e){super(),we(this,e,Bh,Mh,be,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},Ih,[-1,-1])}}const Ln=(i,e)=>Ao[i]>=Ao[e],Nh=(i,e)=>Ao[i]<Ao[e],xc=(i,e)=>Ao[i]<=Ao[e],Rh=i=>i>ko.L?exports.GridTypes.XL:i>ko.M?exports.GridTypes.L:i>ko.S?exports.GridTypes.M:i>ko.XS?exports.GridTypes.S:exports.GridTypes.XS;function Oh(i){Ze(i,"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(i){let e,t;return e=new yl({props:{volume:i[3],muted:i[1]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function zh(i){let e,t;return e=new Ti({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Do[Ae.KeyM],$$slots:{default:[Dh]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ia(i){let e,t,n;return t=new Tr({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]:ne.noop,onPointerLeave:i[2]?i[20]:ne.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"),j(t.$$.fragment),u(e,"class","volumeBar v-1l78lz9"),B(e,"volumeBar-vertical",i[2])},m(l,r){P(l,e,r),F(t,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]:ne.noop),r[0]&4&&(o.onPointerLeave=l[2]?l[20]:ne.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"),t.$set(o),(!n||r[0]&4)&&B(e,"volumeBar-vertical",l[2])},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function Fh(i){let e,t,n,l,r,o;t=new Xc({props:{content:i[6],translateY:-18,$$slots:{default:[zh]},$$scope:{ctx:i}}});let s=i[4]&&Ia(i);return{c(){e=T("div"),j(t.$$.fragment),n=O(),s&&s.c(),u(e,"class","volumeBar-container v-1l78lz9"),B(e,"vertical",i[2])},m(a,c){P(a,e,c),F(t,e,null),p(e,n),s&&s.m(e,null),l=!0,r||(o=[ve(e,"mouseenter",function(){Mn(i[2]?i[21]:ne.noop)&&(i[2]?i[21]:ne.noop).apply(this,arguments)}),ve(e,"mouseleave",function(){Mn(i[2]?i[22]:ne.noop)&&(i[2]?i[22]:ne.noop).apply(this,arguments)}),ve(e,"wheel",Jt(i[23]))],r=!0)},p(a,c){i=a;const f={};c[0]&64&&(f.content=i[6]),c[0]&655|c[1]&32&&(f.$$scope={dirty:c,ctx:i}),t.$set(f),i[4]?s?(s.p(i,c),c[0]&16&&m(s,1)):(s=Ia(i),s.c(),m(s,1),s.m(e,null)):s&&(de(),v(s,1,1,()=>{s=null}),me()),(!l||c[0]&4)&&B(e,"vertical",i[2])},i(a){l||(m(t.$$.fragment,a),m(s),l=!0)},o(a){v(t.$$.fragment,a),v(s),l=!1},d(a){a&&S(e),H(t),s&&s.d(),r=!1,nt(o)}}}function Hh(i,e,t){var _e,Se;let n,l,r,o,{click:s}=e;const a=Ct(),c=wn(),f=a.state.volume$;D(i,f,W=>t(3,n=W));const d=a.state.muted$;D(i,d,W=>t(25,o=W));const h=a.actions.internal.setVolume,_=a.ui.currentGridType$;D(i,_,W=>t(24,r=W));const g=(_e=a.callbacks)==null?void 0:_e.onAudioDoesNotExistHint,w=(Se=a.callbacks)==null?void 0:Se.onAudioDisabledHint,b=a.state.isAudioAvailable$;D(i,b,W=>t(4,l=W));const C=a.state.isAudioDisabled;let k=!1,y,M,q,I,z,ae,se=1,R=!1,te=!1;function X(W){se=n,h(W)}function G(){Uc(a,n,c.controls.volumeStepWheel)}function A(){jc(a,n,c.controls.volumeStepWheel)}function V(W){h(W)}function x(W){const $=W;h($,$===0?se:$)}function L(){R=!0}function ie(){R=!1,Le()}function Ee(){clearTimeout(y),t(5,k=!0)}function ye(){Le()}function Le(){y=window.setTimeout(()=>{R||t(5,k=!1)},c.controls.volumeBarTimeout)}function Ve(W){W.deltaY<0?G():W.deltaY>0&&A()}return i.$$set=W=>{"click"in W&&t(0,s=W.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,I=!l||o),i.$$.dirty[0]&16777216&&t(2,z=xc(r,exports.GridTypes.S)),i.$$.dirty[0]&6&&(z?t(6,M=""):t(6,M=Y(I?"tooltip_volume":"tooltip_volume_muted")),t(7,q=Y(I?"tooltip_volume":"tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,ae=I?0:n),i.$$.dirty[0]&16&&t(9,te=C&&!w||!l&&!g)},[s,I,z,n,l,k,M,q,ae,te,f,d,_,b,X,G,A,V,x,L,ie,Ee,ye,Ve,r,o]}class Uh extends ke{constructor(e){super(),we(this,e,Hh,Fh,be,{click:0},Oh,[-1,-1])}}function jh(i){let e;return{c(){e=N("path"),u(e,"class","_enter"),u(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(t,n){P(t,e,n)},d(t){t&&S(e)}}}function qh(i){let e;return{c(){e=N("path"),u(e,"class","_exit"),u(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(t,n){P(t,e,n)},d(t){t&&S(e)}}}function Wh(i){let e,t,n;function l(s,a){return s[0]?qh:jh}let r=l(i),o=r(i);return{c(){e=N("svg"),t=N("g"),o.c(),u(t,"fill","#fff"),u(t,"fill-rule","evenodd"),u(e,"width","24"),u(e,"height","24"),u(e,"viewBox","0 0 24 24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=i[0]?"close-fullscreen-icon":"open-fullscreen-icon")},m(s,a){P(s,e,a),p(e,t),o.m(t,null)},p(s,[a]){r!==(r=l(s))&&(o.d(1),o=r(s),o&&(o.c(),o.m(t,null))),a&1&&n!==(n=s[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:K,o:K,d(s){s&&S(e),o.d()}}}function Zh(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen)},[n]}class Kh extends ke{constructor(e){super(),we(this,e,Zh,Wh,be,{isFullscreen:0})}}function Gh(i){let e,t;return e=new Kh({props:{isFullscreen:i[0]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Yh(i){let e,t;return e=new Ti({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Do[Ae.KeyF],$$slots:{default:[Gh]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Qh(i,e,t){let{isFullscreen:n=!1}=e,{click:l=ne.noop}=e,r;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen),"click"in o&&t(1,l=o.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=Y(n?"tooltip_fullscreen_on":"tooltip_fullscreen_off"))},[n,l,r]}class $c extends ke{constructor(e){super(),we(this,e,Qh,Yh,be,{isFullscreen:0,click:1})}}function Xh(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class Er extends ke{constructor(e){super(),we(this,e,null,Xh,be,{})}}function Jh(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class ef extends ke{constructor(e){super(),we(this,e,null,Jh,be,{})}}function xh(i){Ze(i,"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 La(i){let e;return{c(){e=T("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(t,n){P(t,e,n)},d(t){t&&S(e)}}}function $h(i){let e,t,n,l,r=i[1]&&La();var o=i[8];function s(a){return{}}return o&&(n=Dn(o,s())),{c(){r&&r.c(),e=O(),t=T("div"),n&&j(n.$$.fragment),u(t,"class","v-1ot3duq"),B(t,"mobile",i[1])},m(a,c){r&&r.m(a,c),P(a,e,c),P(a,t,c),n&&F(n,t,null),l=!0},p(a,c){if(a[1]?r||(r=La(),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),c&256&&o!==(o=a[8])){if(n){de();const f=n;v(f.$$.fragment,1,0,()=>{H(f,1)}),me()}o?(n=Dn(o,s()),j(n.$$.fragment),m(n.$$.fragment,1),F(n,t,null)):n=null}(!l||c&2)&&B(t,"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&&(S(e),S(t)),r&&r.d(a),n&&H(n)}}}function ev(i){let e,t,n;function l(o){i[13](o)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Do[Ae.KeyK],$$slots:{default:[$h]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function tv(i,e,t){let n,l;const{fakeIsPlaying$:r}=zo();D(i,r,k=>t(12,l=k));let{ref:o=void 0}=e,{isMobile:s=!1}=e,{isPlaying:a=!1}=e,{disabled:c=!1}=e,{className:f=""}=e,{click:d=ne.noop}=e;const{toggle:h}=r;let _,g,w,b;function C(k){o=k,t(0,o)}return i.$$set=k=>{"ref"in k&&t(0,o=k.ref),"isMobile"in k&&t(1,s=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,d=k.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=l!==null),i.$$.dirty&5152&&t(11,w=g?l:a),i.$$.dirty&2048&&t(7,b=Y(w?"tooltip_pause":"tooltip_play")),i.$$.dirty&2048&&t(8,n=w?ef:Er)},t(6,_=h),[o,s,c,f,d,g,_,b,n,r,a,w,l,C]}class Ar extends ke{constructor(e){super(),we(this,e,tv,ev,be,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},xh)}}function iv(i){Ze(i,"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 nv(i){let e,t,n;return{c(){e=N("svg"),t=N("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","v-mb3pjo"),B(e,"prev",i[0]),B(e,"mobile",i[1])},m(l,r){P(l,e,r),p(e,t)},p(l,[r]){r&1&&n!==(n=l[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),r&1&&B(e,"prev",l[0]),r&2&&B(e,"mobile",l[1])},i:K,o:K,d(l){l&&S(e)}}}function ov(i,e,t){let{isPrev:n=!1}=e,{isMobile:l=!1}=e;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(1,l=r.isMobile)},[n,l]}class lv extends ke{constructor(e){super(),we(this,e,ov,nv,be,{isPrev:0,isMobile:1},iv)}}function rv(i){let e,t;return e=new lv({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&2&&(r.isMobile=n[1]),l&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function sv(i){let e,t,n;function l(o){i[6](o)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[rv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function av(i,e,t){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,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,l=f.isMobile),"disabled"in f&&t(2,r=f.disabled),"type"in f&&t(3,o=f.type),"click"in f&&t(4,s=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,a=Y(o==="prev"?"tooltip_previous":"tooltip_next"))},[n,l,r,o,s,a,c]}class Cl extends ke{constructor(e){super(),we(this,e,av,sv,be,{ref:0,isMobile:1,disabled:2,type:3,click:4})}}function uv(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class cv extends ke{constructor(e){super(),we(this,e,null,uv,be,{})}}function fv(i){Ze(i,"v-1bbobod",".mobile.v-1bbobod{transform:scale(1.1) translateY(-1px)}")}function Va(i){let e,t,n,l,r,o,s;return{c(){e=N("path"),t=N("path"),n=N("path"),l=N("path"),r=N("path"),o=N("path"),s=N("path"),u(e,"d","M30.7286 15.0483H33.2239L36.8885 5H35.0776L32.1402 13.2809H31.8551L29.0175 5H27.1781L30.7286 15.0483Z"),u(e,"fill","white"),u(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(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){P(a,e,c),P(a,t,c),P(a,n,c),P(a,l,c),P(a,r,c),P(a,o,c),P(a,s,c)},d(a){a&&(S(e),S(t),S(n),S(l),S(r),S(o),S(s))}}}function dv(i){let e,t,n,l=!i[0]&&Va();return{c(){e=N("svg"),t=N("path"),l&&l.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","v-1bbobod"),B(e,"mobile",i[1])},m(r,o){P(r,e,o),p(e,t),l&&l.m(e,null)},p(r,[o]){r[0]?l&&(l.d(1),l=null):l||(l=Va(),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&&B(e,"mobile",r[1])},i:K,o:K,d(r){r&&S(e),l&&l.d()}}}function mv(i,e,t){let{short:n=!1}=e,{isMobile:l=!1}=e,r,o;return i.$$set=s=>{"short"in s&&t(0,n=s.short),"isMobile"in s&&t(1,l=s.isMobile)},i.$$.update=()=>{i.$$.dirty&1&&(t(2,r=n?20:93),t(3,o=n?"vk-video-logo-icon--short":"vk-video-logo-icon"))},[n,l,r,o]}class pv extends ke{constructor(e){super(),we(this,e,mv,dv,be,{short:0,isMobile:1},fv)}}function hv(i){let e,t;return e=new cv({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p:K,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function vv(i){let e,t;return e=new pv({props:{short:i[4],isMobile:!!i[7]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&16&&(r.short=n[4]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function gv(i){let e,t,n,l;const r=[vv,hv],o=[];function s(a,c){return a[2]?0:1}return e=s(i),t=o[e]=r[e](i),{c(){t.c(),n=mt()},m(a,c){o[e].m(a,c),P(a,n,c),l=!0},p(a,c){let f=e;e=s(a),e===f?o[e].p(a,c):(de(),v(o[f],1,1,()=>{o[f]=null}),me(),t=o[e],t?t.p(a,c):(t=o[e]=r[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){l||(m(t),l=!0)},o(a){v(t),l=!1},d(a){a&&S(n),o[e].d(a)}}}function bv(i){let e,t,n;function l(o){i[13](o)}let r={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:[gv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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&524308&&(a.$$scope={dirty:s,ctx:o}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function _v(i,e,t){let n,l,r,{ref:o=void 0}=e,{logoClickable:s=!1}=e,{videoLogoUrl:a=void 0}=e,{click:c}=e;const f=wn(),{logoLink:d,addTimeToLogoLink:h}=f,_=Ct(),g=_.state.positionWithScrubbing$;D(i,g,I=>t(14,n=I));const w=_.ui.currentGridType$;D(i,w,I=>t(11,l=I));const b=_.ui.isMobile;D(i,b,I=>t(12,r=I));let C,k,y;const M=()=>{let I;if(k||!a)I=d;else{const z=Math.round(n);if(h&&z){const ae=new URL(a);ae.searchParams.append("t",ne.timeCodeToString(z)),I=ae.toString()}else I=a}c(),window.open(I,"_blank")};function q(I){o=I,t(0,o)}return i.$$set=I=>{"ref"in I&&t(0,o=I.ref),"logoClickable"in I&&t(1,s=I.logoClickable),"videoLogoUrl"in I&&t(9,a=I.videoLogoUrl),"click"in I&&t(10,c=I.click)},i.$$.update=()=>{i.$$.dirty&6148&&t(4,y=(r||xc(l,exports.GridTypes.L))&&k)},t(3,C=f.logoType===Eo.VK_VIDEO?Y("tooltip_vk_video_logo"):Y("tooltip_vk_logo")),t(2,k=f.logoType===Eo.VK_VIDEO),[o,s,k,C,y,g,w,b,M,a,c,l,r,q]}class tf extends ke{constructor(e){super(),we(this,e,_v,bv,be,{ref:0,logoClickable:1,videoLogoUrl:9,click:10})}}function wv(i){Ze(i,"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 kv(i){let e,t,n,l,r,o,s,a;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("path"),o=N("path"),s=N("path"),a=N("path"),u(n,"class","wave wave1 v-8z1bf5"),u(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),u(n,"fill","#fff"),u(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"),B(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","v-8z1bf5"),B(e,"connecting",i[2])},m(c,f){P(c,e,f),p(e,t),p(t,n),p(t,l),p(t,r),p(t,o),p(t,s),p(t,a)},p(c,f){f&2&&B(a,"hidden",!c[1]),f&4&&B(e,"connecting",c[2])},d(c){c&&S(e)}}}function yv(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q;return{c(){e=N("svg"),t=N("g"),n=N("mask"),l=N("path"),o=N("path"),s=N("path"),c=N("path"),f=N("defs"),d=N("clipPath"),h=N("path"),g=N("filter"),w=N("feFlood"),b=N("feColorMatrix"),C=N("feOffset"),k=N("feGaussianBlur"),y=N("feColorMatrix"),M=N("feBlend"),q=N("feBlend"),u(l,"fill",r=i[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=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(h,"fill",_=i[1]?"#2688EB":"#fff"),u(h,"d","M0 0h24v24H0z"),u(d,"id","a"),u(w,"flood-opacity","0"),u(w,"result","BackgroundImageFix"),u(b,"in","SourceAlpha"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(b,"result","hardAlpha"),u(k,"stdDeviation","2.5"),u(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(M,"in2","BackgroundImageFix"),u(M,"result","effect1_dropShadow_4085_178456"),u(q,"in","SourceGraphic"),u(q,"in2","effect1_dropShadow_4085_178456"),u(q,"result","shape"),u(g,"id","b"),u(g,"x","-3.4"),u(g,"y","-1.4"),u(g,"width","30.8"),u(g,"height","26.802"),u(g,"filterUnits","userSpaceOnUse"),u(g,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chromecast-mobile-icon")},m(I,z){P(I,e,z),p(e,t),p(t,n),p(n,l),p(n,o),p(t,s),p(t,c),p(e,f),p(f,d),p(d,h),p(f,g),p(g,w),p(g,b),p(g,C),p(g,k),p(g,y),p(g,M),p(g,q)},p(I,z){z&2&&r!==(r=I[1]?"#2688EB":"#fff")&&u(l,"fill",r),z&2&&a!==(a=I[1]?"#2688EB":"#fff")&&u(s,"fill",a),z&2&&_!==(_=I[1]?"#2688EB":"#fff")&&u(h,"fill",_)},d(I){I&&S(e)}}}function Cv(i){let e;function t(r,o){return r[0]?yv:kv}let n=t(i),l=n(i);return{c(){l.c(),e=mt()},m(r,o){l.m(r,o),P(r,e,o)},p(r,[o]){n===(n=t(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},i:K,o:K,d(r){r&&S(e),l.d(r)}}}function Sv(i,e,t){let{isMobile:n=!1}=e,{state:l}=e,r,o;return i.$$set=s=>{"isMobile"in s&&t(0,n=s.isMobile),"state"in s&&t(3,l=s.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,o=l===$e.ChromecastState.CONNECTING),t(1,r=l===$e.ChromecastState.CONNECTED))},[n,r,o,l]}class Pv extends ke{constructor(e){super(),we(this,e,Sv,Cv,be,{isMobile:0,state:3},wv)}}function Tv(i){let e,t;return e=new Pv({props:{isMobile:i[1],state:i[2]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&2&&(r.isMobile=n[1]),l&4&&(r.state=n[2]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ev(i){let e,t,n;function l(o){i[5](o)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Tv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Av(i,e,t){let{ref:n=void 0}=e,{isMobile:l=!1}=e,{state:r}=e,{click:o=ne.noop}=e,s;function a(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,l=c.isMobile),"state"in c&&t(2,r=c.state),"click"in c&&t(3,o=c.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,s=r===$e.ChromecastState.CONNECTED?Y("tooltip_chromecast_on"):Y("tooltip_chromecast_off"))},[n,l,r,o,s,a]}class nf extends ke{constructor(e){super(),we(this,e,Av,Ev,be,{ref:0,isMobile:1,state:2,click:3})}}function Iv(i){let e,t;return e=new Mc({props:{isActive:i[1]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Lv(i){let e,t;return e=new Ti({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===$e.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[Iv]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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]===$e.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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Vv(i,e,t){let n,{isMobile:l=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:o=""}=e;const s=Ct(),a=s.state.playbackState$;D(i,a,h=>t(3,n=h));const c=s.actions.internal.switchToActiveLive,f=s.actions.internal.togglePlay;let d;return i.$$set=h=>{"isMobile"in h&&t(0,l=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,o=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,d=()=>{if(!r){c();return}n===$e.PlaybackState.PAUSED&&f()})},[l,r,o,n,d,a]}class of extends ke{constructor(e){super(),we(this,e,Vv,Lv,be,{isMobile:0,isActiveLive:1,ariaLabel:2})}}function Mv(i){Ze(i,"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 Bv(i){let e,t,n,l;const r=i[9].default,o=qn(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),o&&o.c(),u(t,"class","tooltip v-5ygsa2"),B(t,"active",i[0]),B(t,"pointer",i[1]),u(e,"class","tooltip-wrapper v-5ygsa2"),u(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(s,a){P(s,e,a),p(e,t),o&&o.m(t,null),i[10](t),i[11](e),l=!0},p(s,[a]){o&&o.p&&(!l||a&256)&&Zn(o,r,s,s[8],l?Wn(r,s[8],a,null):Kn(s[8]),null),(!l||a&1)&&B(t,"active",s[0]),(!l||a&2)&&B(t,"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&&S(e),o&&o.d(s),i[10](null),i[11](null)}}}function Nv(i,e,t){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 _(b){if(!h)return 0;const{width:C}=h.getBoundingClientRect(),k=C/2;return b<k?k:b>f-k?f-k:b}function g(b){Ce[b?"unshift":"push"](()=>{h=b,t(4,h)})}function w(b){Ce[b?"unshift":"push"](()=>{d=b,t(3,d)})}return i.$$set=b=>{"active"in b&&t(0,o=b.active),"pointer"in b&&t(1,s=b.pointer),"translateXPx"in b&&t(6,a=b.translateXPx),"translateYPx"in b&&t(2,c=b.translateYPx),"containerWidth"in b&&t(7,f=b.containerWidth),"$$scope"in b&&t(8,r=b.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=_(a))},[o,s,c,d,h,n,a,f,r,l,g,w]}class Rv extends ke{constructor(e){super(),we(this,e,Nv,Bv,be,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Mv)}}const lf=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Ov(i){Ze(i,"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 Ma(i){let e;function t(r,o){return r[2]&&r[10].completed===!1?zv:Dv}let n=t(i),l=n(i);return{c(){l.c(),e=mt()},m(r,o){l.m(r,o),P(r,e,o)},p(r,o){n===(n=t(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){r&&S(e),l.d(r)}}}function Dv(i){let e=(i[10].text||"")+"",t;return{c(){t=ze(e)},m(n,l){P(n,t,l)},p(n,l){l&1024&&e!==(e=(n[10].text||"")+"")&&et(t,e)},d(n){n&&S(t)}}}function zv(i){let e=Y("tooltip_episode_unfinished")+"",t;return{c(){t=ze(e)},m(n,l){P(n,t,l)},p:K,d(n){n&&S(t)}}}function Fv(i){let e,t,n,l,r,o,s,a,c=i[10]&&Ma(i);return{c(){e=T("div"),t=T("div"),l=O(),r=T("div"),c&&c.c(),o=O(),s=T("div"),a=ze(i[0]),u(t,"class","preview v-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(r,"class","episode v-l51fc1"),u(s,"class","time v-l51fc1"),u(e,"class","timeline-preview v-l51fc1"),B(e,"mobile",i[1])},m(f,d){P(f,e,d),p(e,t),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(t,"style",n),f[10]?c?c.p(f,d):(c=Ma(f),c.c(),c.m(r,null)):c&&(c.d(1),c=null),d&1&&et(a,f[0]),d&2&&B(e,"mobile",f[1])},i:K,o:K,d(f){f&&S(e),c&&c.d()}}}const _o=150;function Hv(i,e,t){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=Ct().ui.rotateAlpha;D(i,h,z=>t(11,n=z));let _,g,w,b,C,k,y,M;function q(){let z=s.frameWidth,ae=s.frameHeight;return z>_o?(ae=ae/z*_o,z=_o):ae>_o&&(z=z/ae*_o,ae=_o),{width:z,height:ae}}function I(z){let ae;s.isUV?ae=Math.floor(c*z/s.frequency):ae=Math.min(s.countTotal,Math.max(0,Math.floor(s.countTotal*z)));const se=Math.floor(ae/s.countPerImage),R=Math.floor(ae%s.countPerImage/s.countPerRow),te=ae%s.countPerRow;let X=Math.floor(s.countPerImage/s.countPerRow);!s.isUV&&se===Math.floor(s.countTotal/s.countPerImage)&&(X=Math.floor(s.countTotal%s.countPerImage/s.countPerRow),s.countTotal%s.countPerImage%s.countPerRow>0&&X++);let G=s.countPerRow;!s.isUV&&se===Math.floor(s.countTotal/s.countPerImage)&&s.countTotal%s.countPerImage>0&&(G=Math.min(s.countPerRow,s.countTotal%s.countPerImage));const A=_*G,V=g*X,x=-te*_,L=-R*g;return{imgSrc:s.links[se],imgWidth:A,imgHeight:V,imgOffsetX:x,imgOffsetY:L}}return i.$$set=z=>{"time"in z&&t(0,l=z.time),"isMobile"in z&&t(1,r=z.isMobile),"videoEpisodes"in z&&t(13,o=z.videoEpisodes),"previewThumbsData"in z&&t(14,s=z.previewThumbsData),"progress"in z&&t(15,a=z.progress),"duration"in z&&t(16,c=z.duration),"isInteractive"in z&&t(2,f=z.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:w,imgWidth:b,imgHeight:C,imgOffsetX:k,imgOffsetY:y}=I(a),w,(t(6,b),t(15,a)),(t(7,C),t(15,a)),(t(8,k),t(15,a)),(t(9,y),t(15,a))),i.$$.dirty&106496&&t(10,M=lf(a,c,o))},t(3,{width:_,height:g}=q(),_,t(4,g)),[l,r,f,_,g,w,b,C,k,y,M,n,h,o,s,a,c]}class Uv extends ke{constructor(e){super(),we(this,e,Hv,Fv,be,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Ov)}}function jv(i){Ze(i,"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 qv(i){let e,t;return{c(){e=T("span"),t=ze(i[7]),u(e,"class","time v-5lzly8")},m(n,l){P(n,e,l),p(e,t)},p(n,l){l[0]&128&&et(t,n[7])},i:K,o:K,d(n){n&&S(e)}}}function Wv(i){let e,t;return e=new Uv({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Zv(i){let e,t,n,l;const r=[Wv,qv],o=[];function s(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=s(i),t=o[e]=r[e](i),{c(){t.c(),n=mt()},m(a,c){o[e].m(a,c),P(a,n,c),l=!0},p(a,c){let f=e;e=s(a),e===f?o[e].p(a,c):(de(),v(o[f],1,1,()=>{o[f]=null}),me(),t=o[e],t?t.p(a,c):(t=o[e]=r[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){l||(m(t),l=!0)},o(a){v(t),l=!1},d(a){a&&S(n),o[e].d(a)}}}function Kv(i){let e,t,n,l;const r=[i[9]];let o={$$slots:{default:[Zv]},$$scope:{ctx:i}};for(let s=0;s<r.length;s+=1)o=S1(o,r[s]);return e=new Rv({props:o}),n=new Tr({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:Y("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:Y("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(dt.TIMELINE),hideHandel:i[2]}}),{c(){j(e.$$.fragment),t=O(),j(n.$$.fragment)},m(s,a){F(e,s,a),P(s,t,a),F(n,s,a),l=!0},p(s,a){const c=a[0]&512?S0(r,[P0(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=Y("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(dt.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&&S(t),H(e,s),H(n,s)}}}function Gv(i,e,t){let n,l,r,o,s,a,c,f,d,h,_,{showTimeline:g=!1}=e;const w=Ct(),b=wn(),C=w.state.bufferedProgress$;D(i,C,he=>t(12,h=he));const k=w.state.positionWithScrubbing$;D(i,k,he=>t(39,a=he));const y=w.state.duration$;D(i,y,he=>t(1,r=he));const M=w.state.isLive$;D(i,M,he=>t(0,l=he));const q=w.state.isActiveLive$;D(i,q,he=>t(11,d=he));const I=w.ui.isMobile;D(i,I,he=>t(10,f=he));const z=b.features.episodes?w.actions.internal.getVideoEpisodes():void 0,ae=w.actions.internal.getPreviewThumbsData(),se=w.state.interactiveEpisodes$;D(i,se,he=>t(40,c=he));const R=w.state.isInteractive,te=w.state.isInteractiveTime$;D(i,te,he=>t(2,o=he));const X=w.state.isInteractiveExpectation$;D(i,X,he=>t(38,s=he));const G=w.actions.internal.correctSeekTimeToInteractive,A=w.ui.controls.disabledControls$;D(i,A,he=>t(13,_=he));let V,x,L,ie,Ee=!1,ye="",Le=0,Ve=0,_e=0,Se;function W(he){return!G||!R?he:G(he*r)/r}function $(he){w.actions.internal.startScrubbing(W(he))}function fe(he){o||w.actions.internal.progressScrubbing(W(he))}function ue(he){w.actions.internal.completeScrubbing(W(he)),t(34,Ee=!1)}function Fe(he,re,Te){Ie(he,re,Te),t(34,Ee=!0)}function Oe(he,re,Te){Ie(he,re,Te),t(34,Ee=!0)}function Me(){t(34,Ee=!1)}function Ie(he,re,Te){t(8,_e=he),t(35,Le=re),Te&&t(36,Ve=Te),t(7,ye=ce(he))}function ce(he){const re=jn((l?1-he:he)*r);return l?`-${re}`:re}return i.$$set=he=>{"showTimeline"in he&&t(33,g=he.showTimeline)},i.$$.update=()=>{i.$$.dirty[1]&512&&t(3,V=R?c:z),i.$$.dirty[0]&2&&t(4,x=jn(r)),i.$$.dirty[1]&256&&t(5,L=jn(a)),i.$$.dirty[0]&2|i.$$.dirty[1]&256&&t(6,ie=a/r),i.$$.dirty[0]&4|i.$$.dirty[1]&128&&t(37,Se=s||o),i.$$.dirty[0]&1|i.$$.dirty[1]&124&&t(9,n={containerWidth:Ve,translateXPx:Le,translateYPx:R&&ae?-36:-16,active:Ee&&g&&!Se,pointer:!b.features.timelinePreview||!ae||l})},[l,r,o,V,x,L,ie,ye,_e,n,f,d,h,_,b,C,k,y,M,q,I,ae,se,R,te,X,A,$,fe,ue,Fe,Oe,Me,g,Ee,Le,Ve,Se,s,a,c]}let Yv=class extends ke{constructor(e){super(),we(this,e,Gv,Kv,be,{showTimeline:33},jv,[-1,-1])}};function Qv(i){let e,t;return e=new Tr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:Y("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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=Y("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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Xv(i,e,t){let n,{position:l=0}=e,{duration:r=0}=e;const s=Ct().ui.isMobile;D(i,s,d=>t(4,n=d));let a,c,f;return i.$$set=d=>{"position"in d&&t(6,l=d.position),"duration"in d&&t(0,r=d.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,a=jn(r)),i.$$.dirty&64&&t(2,c=jn(l)),i.$$.dirty&65&&t(3,f=l/r)},[r,a,c,f,n,s,l]}class rf extends ke{constructor(e){super(),we(this,e,Xv,Qv,be,{position:6,duration:0})}}function Jv(i){Ze(i,"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 xv(i){let e;return{c(){e=T("div"),u(e,"class","timeline-stub v-1gqonyf"),B(e,"mobile",i[2])},m(t,n){P(t,e,n)},p(t,n){n&4&&B(e,"mobile",t[2])},i:K,o:K,d(t){t&&S(e)}}}function $v(i){let e,t,n,l;const r=[t5,e5],o=[];function s(a,c){return a[0]?0:1}return t=s(i),n=o[t]=r[t](i),{c(){e=T("div"),n.c(),u(e,"class","timeline v-1gqonyf"),B(e,"mobile",i[2])},m(a,c){P(a,e,c),o[t].m(e,null),l=!0},p(a,c){let f=t;t=s(a),t===f?o[t].p(a,c):(de(),v(o[f],1,1,()=>{o[f]=null}),me(),n=o[t],n?n.p(a,c):(n=o[t]=r[t](a),n.c()),m(n,1),n.m(e,null)),(!l||c&4)&&B(e,"mobile",a[2])},i(a){l||(m(n),l=!0)},o(a){v(n),l=!1},d(a){a&&S(e),o[t].d()}}}function e5(i){let e,t;return e=new Yv({props:{showTimeline:i[1]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&2&&(r.showTimeline=n[1]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function t5(i){let e,t;return e=new rf({props:{position:i[3],duration:i[4]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&8&&(r.position=n[3]),l&16&&(r.duration=n[4]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function i5(i){let e,t,n,l;const r=[$v,xv],o=[];function s(a,c){return a[1]?0:1}return e=s(i),t=o[e]=r[e](i),{c(){t.c(),n=mt()},m(a,c){o[e].m(a,c),P(a,n,c),l=!0},p(a,[c]){let f=e;e=s(a),e===f?o[e].p(a,c):(de(),v(o[f],1,1,()=>{o[f]=null}),me(),t=o[e],t?t.p(a,c):(t=o[e]=r[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){l||(m(t),l=!0)},o(a){v(t),l=!1},d(a){a&&S(n),o[e].d(a)}}}function n5(i,e,t){let n,l,r,o,{isAds:s=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e;const d=Ct(),h=d.state.isLive$;D(i,h,C=>t(12,n=C));const _=d.ads.duration;D(i,_,C=>t(4,o=C));const g=d.ads.position;D(i,g,C=>t(3,r=C));const w=d.ui.isMobile;D(i,w,C=>t(2,l=C));let b;return i.$$set=C=>{"isAds"in C&&t(0,s=C.isAds),"canRewindLive"in C&&t(9,a=C.canRewindLive),"isRewindableLive"in C&&t(10,c=C.isRewindableLive),"isHidden"in C&&t(11,f=C.isHidden)},i.$$.update=()=>{i.$$.dirty&7681&&t(1,b=!f&&(!n||n&&a&&c||s))},[s,b,l,r,o,h,_,g,w,a,c,f,n]}class sf extends ke{constructor(e){super(),we(this,e,n5,i5,be,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},Jv)}}function o5(i){let e,t,n,l;return{c(){e=N("svg"),t=N("path"),n=N("path"),l=N("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(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"),Ft(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){P(r,e,o),p(e,t),p(e,n),p(e,l)},p:K,i:K,o:K,d(r){r&&S(e)}}}class l5 extends ke{constructor(e){super(),we(this,e,null,o5,be,{})}}function r5(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class s5 extends ke{constructor(e){super(),we(this,e,null,r5,be,{})}}function a5(i){Ze(i,"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 u5(i){let e,t,n,l;e=new l5({});function r(a,c){if(a[4]===ro.FULL)return d5;if(a[4]===ro.COUNT)return f5}let o=r(i),s=o&&o(i);return{c(){j(e.$$.fragment),t=O(),s&&s.c(),n=mt()},m(a,c){F(e,a,c),P(a,t,c),s&&s.m(a,c),P(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&&(S(t),S(n)),H(e,a),s&&s.d(a)}}}function c5(i){let e,t,n,l,r,o;return r=new s5({}),{c(){e=T("span"),t=ze(i[2]),n=O(),l=T("div"),j(r.$$.fragment),u(e,"class","text mobile v-1yhs2ga"),u(l,"class","chevron-episodes v-1yhs2ga")},m(s,a){P(s,e,a),p(e,t),P(s,n,a),P(s,l,a),F(r,l,null),o=!0},p(s,a){(!o||a&4)&&et(t,s[2])},i(s){o||(m(r.$$.fragment,s),o=!0)},o(s){v(r.$$.fragment,s),o=!1},d(s){s&&(S(e),S(n),S(l)),H(r)}}}function f5(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=ze(t),u(e,"class","text count v-1yhs2ga")},m(l,r){P(l,e,r),p(e,n)},p(l,r){r&1&&t!==(t=l[0].length+"")&&et(n,t)},d(l){l&&S(e)}}}function d5(i){let e,t;return{c(){e=T("span"),t=ze(i[2]),u(e,"class","text v-1yhs2ga")},m(n,l){P(n,e,l),p(e,t)},p(n,l){l&4&&et(t,n[2])},d(n){n&&S(e)}}}function m5(i){let e,t,n,l;const r=[c5,u5],o=[];function s(a,c){return a[6]?0:1}return e=s(i),t=o[e]=r[e](i),{c(){t.c(),n=mt()},m(a,c){o[e].m(a,c),P(a,n,c),l=!0},p(a,c){let f=e;e=s(a),e===f?o[e].p(a,c):(de(),v(o[f],1,1,()=>{o[f]=null}),me(),t=o[e],t?t.p(a,c):(t=o[e]=r[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){l||(m(t),l=!0)},o(a){v(t),l=!1},d(a){a&&S(n),o[e].d(a)}}}function p5(i){let e,t,n;function l(o){i[19](o)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[m5]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&2&&(t=!0,a.ref=o[1],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function h5(i,e,t){var R,te,X;let n,l,r,o,s,a,{position:c=0}=e,{duration:f=0}=e,{timeCodes:d=[]}=e;const h=Ct(),_=(te=(R=h.callbacks)==null?void 0:R.onEpisodeChanged)!=null?te:ne.noop,g=!!((X=h.callbacks)!=null&&X.onEpisodeClicked),w=h.ui.currentGridType$;D(i,w,G=>t(18,s=G));const b=h.ui.episodes.openedByKeyboard$;D(i,b,G=>t(17,o=G));const C=h.ui.episodes.panelOpened$;D(i,C,G=>t(3,r=G));const k=h.ui.isMobile;D(i,k,G=>t(6,a=G));let y;const M=G=>{var V,x,L;if(!!((V=h.callbacks)!=null&&V.onEpisodeClicked)){const ie=kr(G);b.set(ie),C.set(!0),(L=(x=h.callbacks)==null?void 0:x.onEpisodeClicked)==null||L.call(x,ie)}};let q,I,z;const ae=(G,A,V)=>xi(this,null,function*(){yield Oo(),(G==null?void 0:G.getAttribute("aria-expanded"))==="false"&&A&&!V&&(b.set(!1),G.focus())});function se(G){y=G,t(1,y)}return i.$$set=G=>{"position"in G&&t(13,c=G.position),"duration"in G&&t(14,f=G.duration),"timeCodes"in G&&t(0,d=G.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=c/f),i.$$.dirty&114689){const G=lf(n,f,d);G&&(q==null?void 0:q.text)!==G.text&&(_(G),t(15,q=G))}i.$$.dirty&32768&&t(2,l=(q==null?void 0:q.text)||""),i.$$.dirty&262144&&(Ln(s,exports.GridTypes.XL)?t(4,I=ro.FULL):Ln(s,exports.GridTypes.M)&&Nh(s,exports.GridTypes.XL)?t(4,I=ro.COUNT):t(4,I=ro.SHORT)),i.$$.dirty&4&&t(5,z=`${Y("tooltip_episodes")}: ${l}`),i.$$.dirty&131082&&ae(y,o,r)},[d,y,l,r,I,z,a,g,w,b,C,k,M,c,f,q,n,o,s,se]}class af extends ke{constructor(e){super(),we(this,e,h5,p5,be,{position:13,duration:14,timeCodes:0},a5)}}function v5(i){let e,t,n;return{c(){e=N("svg"),t=N("path"),n=N("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(l,r){P(l,e,r),p(e,t),p(e,n)},p:K,i:K,o:K,d(l){l&&S(e)}}}class g5 extends ke{constructor(e){super(),we(this,e,null,v5,be,{})}}function b5(i){let e,t;return e=new g5({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function _5(i){let e,t,n;function l(o){i[4](o)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:Y("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[b5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function w5(i,e,t){let{ref:n=void 0}=e,{hidden:l=!1}=e,{disabled:r=!1}=e,{click:o}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"hidden"in a&&t(1,l=a.hidden),"disabled"in a&&t(2,r=a.disabled),"click"in a&&t(3,o=a.click)},[n,l,r,o,s]}class uf extends ke{constructor(e){super(),we(this,e,w5,_5,be,{ref:0,hidden:1,disabled:2,click:3})}}function k5(i){let e,t,n;return{c(){e=N("svg"),t=N("path"),n=N("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"),B(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(l,r){P(l,e,r),p(e,t),p(e,n)},p(l,[r]){r&1&&B(n,"hidden",!l[0])},i:K,o:K,d(l){l&&S(e)}}}function y5(i,e,t){let{isOpened:n=!1}=e;return i.$$set=l=>{"isOpened"in l&&t(0,n=l.isOpened)},[n]}class C5 extends ke{constructor(e){super(),we(this,e,y5,k5,be,{isOpened:0})}}function S5(i){let e,t;return e=new C5({props:{isOpened:i[3]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function P5(i){let e,t,n;function l(o){i[6](o)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[S5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function T5(i,e,t){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,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,l=f.hidden),"disabled"in f&&t(2,r=f.disabled),"graphIsOpened"in f&&t(3,o=f.graphIsOpened),"click"in f&&t(4,s=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,a=Y(o?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off"))},[n,l,r,o,s,a,c]}class cf extends ke{constructor(e){super(),we(this,e,T5,P5,be,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}}function E5(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class ff extends ke{constructor(e){super(),we(this,e,null,E5,be,{})}}function A5(i){Ze(i,"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 Ba(i){let e;return{c(){e=T("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(t,n){P(t,e,n)},d(t){t&&S(e)}}}function I5(i){let e,t,n,l,r=i[1]&&Ba();return n=new ff({}),{c(){r&&r.c(),e=O(),t=T("div"),j(n.$$.fragment),u(t,"class","v-1ot3duq"),B(t,"mobile",i[1])},m(o,s){r&&r.m(o,s),P(o,e,s),P(o,t,s),F(n,t,null),l=!0},p(o,s){o[1]?r||(r=Ba(),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!l||s&2)&&B(t,"mobile",o[1])},i(o){l||(m(n.$$.fragment,o),l=!0)},o(o){v(n.$$.fragment,o),l=!1},d(o){o&&(S(e),S(t)),r&&r.d(o),H(n)}}}function L5(i){let e,t,n;function l(o){i[5](o)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:Y("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Do[Ae.KeyK],$$slots:{default:[I5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function V5(i,e,t){let{ref:n=void 0}=e,{isMobile:l=!1}=e,{disabled:r=!1}=e,{className:o=""}=e,{click:s=ne.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,l=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"className"in c&&t(3,o=c.className),"click"in c&&t(4,s=c.click)},[n,l,r,o,s,a]}class Ir extends ke{constructor(e){super(),we(this,e,V5,L5,be,{ref:0,isMobile:1,disabled:2,className:3,click:4},A5)}}function M5(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class B5 extends ke{constructor(e){super(),we(this,e,null,M5,be,{})}}function N5(i){let e,t;return e=new B5({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function R5(i){let e,t,n;function l(o){i[4](o)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:Y("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[N5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function O5(i,e,t){let{ref:n=void 0}=e,{hidden:l=!1}=e,{disabled:r=!1}=e,{click:o}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"hidden"in a&&t(1,l=a.hidden),"disabled"in a&&t(2,r=a.disabled),"click"in a&&t(3,o=a.click)},[n,l,r,o,s]}class df extends ke{constructor(e){super(),we(this,e,O5,R5,be,{ref:0,hidden:1,disabled:2,click:3})}}function D5(i){Ze(i,"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 z5(i){let e,t,n,l;return{c(){e=T("img"),u(e,"class","icon v-1x1zctw"),Kr(e.src,t=i[0])||u(e,"src",t),u(e,"aria-hidden","true")},m(r,o){P(r,e,o),n||(l=ve(e,"error",i[7]),n=!0)},p(r,o){o&1&&!Kr(e.src,t=r[0])&&u(e,"src",t)},d(r){r&&S(e),n=!1,l()}}}function F5(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner v-1x1zctw"></div>',u(e,"class","icon error-stub v-1x1zctw")},m(t,n){P(t,e,n)},p:K,d(t){t&&S(e)}}}function H5(i){let e;function t(r,o){return r[5]?F5:z5}let n=t(i),l=n(i);return{c(){l.c(),e=mt()},m(r,o){l.m(r,o),P(r,e,o)},p(r,o){n===(n=t(r))&&l?l.p(r,o):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){r&&S(e),l.d(r)}}}function U5(i){let e,t;return e=new Ti({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[H5]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function j5(i,e,t){let n,l,r,{iconUrl:o}=e,{ariaLabel:s}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=ne.noop}=e;const d=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,o=h.iconUrl),"ariaLabel"in h&&t(1,s=h.ariaLabel),"disabled"in h&&t(8,a=h.disabled),"testId"in h&&t(2,c=h.testId),"onClick"in h&&t(3,f=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===ne.noop),i.$$.dirty&272&&t(6,l=n||a)},t(5,r=!1),[o,s,c,f,n,r,l,d,a]}class mf extends ke{constructor(e){super(),we(this,e,j5,U5,be,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},D5)}}class Na{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}removeEventListener(e,t){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===t){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 pf extends Na{constructor(){super(),this.listeners||Na.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 q5=class{constructor(){Object.defineProperty(this,"signal",{value:new pf,writable:!0,configurable:!0})}abort(e){let t;try{t=new Event("abort")}catch(l){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={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(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(q5.prototype[Symbol.toStringTag]="AbortController",pf.prototype[Symbol.toStringTag]="AbortSignal");function hf(i){return i.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof i.Request=="function"&&!i.Request.prototype.hasOwnProperty("signal")||!i.AbortController}function W5(i){typeof i=="function"&&(i={fetch:i});const{fetch:e,Request:t=e.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:l=!1}=i;if(!hf({fetch:e,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:l}))return{fetch:e,Request:r};let r=t;(r&&!r.prototype.hasOwnProperty("signal")||l)&&(r=function(c,f){let d;f&&f.signal&&(d=f.signal,delete f.signal);const h=new t(c,f);return d&&Object.defineProperty(h,"signal",{writable:!1,enumerable:!1,configurable:!0,value:d}),h},r.prototype=t.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(_){d=new Error("Aborted"),d.name="AbortError"}if(f.aborted)return Promise.reject(d);const h=new Promise((_,g)=>{f.addEventListener("abort",()=>g(d),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([h,o(a,c)])}return o(a,c)},Request:r}}const Lr=hf({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),vf=Lr?W5({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Z5=Lr?vf.fetch:window.fetch;Lr?vf.Request:window.Request;const K5=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3,G5="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js";class Y5{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 ne.Subject,started$:new ne.Subject,paused$:new ne.Subject,resumed$:new ne.Subject,ended$:new ne.Subject,skipped$:new ne.Subject,clicked$:new ne.Subject},this.loadAdman=n=>new Promise((l,r)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?l():r()};ne.addScript(G5,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)=>{ne.assertNonNullable(this.adsState),ne.assertNonNullable(this.playerState),ne.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"}),tt(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(l.duration),this.adsState.playbackState.set(Xt.PLAYING),this.adsState.canSkip.set(l.allowClose),this.adsState.secondsToWatchBeforeSkip.set(l.allowCloseDelay)},this.onAdTimeRemained=({currentTime:n})=>{ne.assertNonNullable(this.adsState),this.adsState.position.set(n)},this.onAdPaused=()=>{ne.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Xt.PAUSED)},this.onAdPlayed=()=>{ne.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Xt.PLAYING)},this.onAdMidrollPoint=()=>{ne.assertNonNullable(this.adman),ne.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Fn.Midroll,this.adman.start(Fn.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=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){const{width:t,height:n,isFullscreen:l,isAutoplay:r,adsContainer:o,adsVideoElement:s,slotId:a,params:c={},duration:f,previewParam:d}=e;let h;const _=this.playerState&&tt(this.playerState.vsid);_&&(h=parseInt(_,36));const g=Object.assign(Object.assign(Object.assign({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:K5(t,n),puid11:l?0:1,preview:d},h?{request_id:h}:{}),{duration:f}),c),w={slot:a,wrapper:o,videoEl:s,videoQuality:n,params:g,browser:{mobile:!1}},b=new window.AdmanHTML;b.setDebug(!1),b.onReady(this.onAdsReady),b.onStarted(this.onAdStarted),b.onPlayed(this.onAdPlayed),b.onPaused(this.onAdPaused),b.adMidrollPoint(this.onAdMidrollPoint),b.onClosed(this.onAdClosed),b.onSkipped(this.onAdSkipped),b.onClicked(this.onAdClicked),b.onTimeRemained(this.onAdTimeRemained),b.onCompleted(this.onAdCompleted),b.onError(this.onAdError),b.init(w),this.adman=b,this.videoElement=s,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(w)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}ne.assertNonNullable(this.actions),ne.assertNonNullable(this.adsState),ne.assertNonNullable(this.playerState);const t=this.currentAdSection===Fn.Postroll;this.adsState.playbackState.set(Xt.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(){ne.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=tt(this.adsState.playbackState);e===Xt.PLAYING?this.pause():e===Xt.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),(t=this.adman)===null||t===void 0||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)===null||t===void 0||t.setFullscreen(e)}startPreroll(){ne.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=Fn.Preroll,this.adman.start(Fn.Preroll)}startPostroll(){ne.assertNonNullable(this.adman),ne.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Fn.Postroll,this.adman.start(Fn.Postroll)}play(){ne.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){ne.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){ne.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===void 0||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const Q5=i=>{const 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:""};class X5{constructor(){this.oneLineRegExp=/\r\n|\n|\r/,this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){const t=[],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 gf,{startTime:c,endTime:f}=a.parse(s);r.startTime=c,r.endTime=f}else if(s.trim()!==""){const a=new J5,{texts:c}=a.parse(s);r.texts=[...r.texts,...c]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}}class gf{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 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){const 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",l="0"){const r=Number(e)*60*60,o=Number(t)*60,s=Number(n),a=+`0.${l}`;return r+o+s+a}}class J5{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){const t={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 gf;for(const o of l)r.isTime(o)?t.texts.push({type:"timestamp",value:r.parseTime(o)}):t.texts.push({type:"text",value:o});return t}}let xn,zt,$l=0,er=!1;const x5=(i,e,t)=>{var n;const l=i>=$l,r=i<$l,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=t.find(({lang:f})=>f===e.value))===null||n===void 0?void 0:n.subtitles;if($l=i,r&&(er=!1),ne.isNonNullable(xn)&&s(i,xn.startTime,xn.endTime)&&xn.lang===e.value)return xn;if(!ne.isNonNullable(zt)&&(c!=null&&c.length)&&!er){const f=c.find(({startTime:d,endTime:h})=>s(i,d,h)||l&&o(i,d,h));zt=f&&Object.assign(Object.assign({},f),{lang:e.value}),xn=void 0,!ne.isNonNullable(zt)&&c[c.length-1].endTime<i&&(er=!0);return}else{if(s(i,zt==null?void 0:zt.startTime,zt==null?void 0:zt.endTime))return xn=zt,zt=void 0,xn;(l&&a(i,zt==null?void 0:zt.startTime,zt==null?void 0:zt.endTime)||r&&o(i,zt==null?void 0:zt.startTime,zt==null?void 0:zt.endTime))&&(zt=void 0)}},tr={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 $5{constructor(e,t){this.oneStat=new yt.OneStat(e,t),this.statSubscription=new ne.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}}const eg=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:l,isAudioDisabled:r,canDownload:o,callbacks:s,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:d,coreConfig:h,player:_,disabledControls:g,isInteractive:w,interactiveRanges$:b,isInteractiveTime$:C,replayInteractive:k,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:M,additionalButtons:q,looped:I=!1,statistics:z})=>{var ae,se,R,te;const X=Object.assign(Object.assign({},h),{configName:[...(ae=h.configName)!==null&&ae!==void 0?ae:[],"ui"],isAudioDisabled:r,live:Object.assign(Object.assign({},(se=h.live)!==null&&se!==void 0?se:{}),{isLiveCatchUpMode:!!n})}),G=d,A=_||new $e.Player(X);A.setLooped(I);const V=new ne.Logger,x=new Y5(V,{loadTimeout:G.ads.loadTimeout,initTimeout:G.ads.initTimeout}),L=cr.getInstance(),ie=a==null?void 0:a.pictureInPictureApi,Ee=a==null?void 0:a.annotationsApi,ye=V.createComponentLog("Store");let Le,Ve,_e={};const Se=ne.getCurrentBrowser(),W=z?kt(z.oneStat.vsid$):On(void 0),$=Ne(No()),fe=(R=ie==null?void 0:ie.info.isActive$)!==null&&R!==void 0?R:new ne.ValueSubject(!1),ue=ie==null?void 0:ie.info.type,Fe=Ne(0),Oe=Ne([]),Me=ne.merge(A.events.fatalError$,A.events.managedError$).subscribe(E=>Oe.update(le=>[...le,E])),Ie=On(!1,E=>{const le=A.events.fatalError$.subscribe(()=>E(!0));return()=>le.unsubscribe()}),ce=E=>fi(void 0,void 0,void 0,function*(){var le;const ge=Object.values(ne.InterfaceLanguage).includes(E);if(G.downloadVKLanguages&&(ge&&G.updateBuiltinLanguages||!ks(E))){let Qe;try{Qe=yield ne.loadVKLangPack(E,M0,B0)}catch(ft){(le=z==null?void 0:z.oneStat)===null||le===void 0||le.logError({errorType:"VKLangPack",fatal:!1}),L==null||L.report(ft,{errorType:"VKLangPack",fatal:!1})}Qe&&(ws({language:E,pack:Qe,fallback:G.defaultLanguage}),he.set(E))}ks(E)&&he.set(E)}),he=Ne(i);ce(i);const re=(E,le)=>{const ge=tt(he);return Pc(ge,E,le,G.defaultLanguage)},Te=Ne(De.Thumb),pe=(()=>{const E=Oi([Ie,Te],([le,ge])=>le?De.Crashed:ge);return Object.assign(Object.assign({},E),{is:le=>tt(E)===le})})(),Pe=(()=>{const E=Ne(new Set(g));return Object.assign(Object.assign({},E),{add:le=>{E.update(ge=>new Set([...ge].concat(le)))},remove:le=>{E.update(ge=>{const He=[...ge];return new Set(Array.isArray(le)?He.filter(Qe=>!le.includes(Qe)):He.filter(Qe=>Qe!==le))})},includes:le=>{const ge=tt(E);return Array.isArray(le)?le.every(He=>ge.has(He)):ge.has(le)}})})();ye({message:"create store"});const Ke=E=>{ye({message:`init video, config: ${JSON.stringify(E)}`}),w?E.container.append(A.experimental.element$.getValue()):A.initVideo(E),E.subtitles&&A.setExternalTextTracks(E.subtitles),Le=E},Re=new ne.Subject,xe=E=>Re.next(E),Xe=new ne.Subject,ot=new ne.Subject,at=new ne.Subject,At={actionRewind$:Xe,actionSeek$:ot,inPiP$:fe,inFullscreen$:new ne.Observable(E=>$.subscribe(le=>E.next(le))),actionSetSubtitle$:at,nextMovie$:Re};if(z){const{oneStat:E,statSubscription:le}=z;le.add(E.attachTo(A)),le.add(E.attachToUi(At)),le.add(E.attachToAds(x.events)),E.authorize(l).catch(ge=>{ye({message:`onestat auth error ${String(ge)}`})})}if(L){const E=new ne.Subscription,le=(ge,He)=>E.add(ge.subscribe(He));if(le(A.events.managedError$,ge=>{L.logIError(ge)}),le(A.events.fatalError$,ge=>{L.logIError(ge,!0)}),z){const{oneStat:ge}=z;le(ge.experimental.error$,He=>{L.logIError(He)})}L.sentrySubscription.add(E)}const pt=()=>{ne.isIOS()&&Ve&&A4(Ve)},xt=new ne.Subscription().add(A.experimental.element$.subscribe(E=>{E&&(Ve=E,E.classList.add("player-media"),hl(ie)&&(ie.updateVideoElement(),ie.registryEventHandlers()),w&&E.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{var E;pt(),(E=s==null?void 0:s.onEnded)===null||E===void 0||E.call(s)})).add(A.events.started$.subscribe(()=>fi(void 0,void 0,void 0,function*(){var E,le;hl(ie)&&(yield ie==null?void 0:ie.revealPictureInPicture());const ge=A.info.muted$.getValue();(E=s==null?void 0:s.onStarted)===null||E===void 0||E.call(s),(le=_e.onStarted)===null||le===void 0||le.call(_e,ge)}))).add(A.events.willSeek$.subscribe(({from:E,to:le})=>{var ge;(ge=s==null?void 0:s.onSeek)===null||ge===void 0||ge.call(s,E,le)})).add(A.info.position$.subscribe(E=>{var le;const ge=A.info.duration$.getValue();(le=s==null?void 0:s.onTimeupdate)===null||le===void 0||le.call(s,ge,E),x.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.info.is3DVideo$.subscribe(E=>{bt.ui.is3DVideo.set(E)})).add(A.info.isEnded$.subscribe(E=>{w&&(E?(C!=null&&C.getValue()&&Pe.add(N1),Pe.add(dt.PLAY_BUTTON)):Pe.remove(dt.PLAY_BUTTON))})).add(A.info.liveTime$.subscribe(E=>{var le;(le=s==null?void 0:s.onLiveTime)===null||le===void 0||le.call(s,E)})).add(A.info.isStalled$.subscribe(E=>{var le;(le=s==null?void 0:s.onStalledChanged)===null||le===void 0||le.call(s,E)})),gt=new ne.Subscription,Mt=()=>{gt.add(A.events.log$.subscribe(E=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${E.component}`,E.message)})).add(V.log$.subscribe(E=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${E.component}.`,E.message)}))},oe=()=>{gt.unsubscribe()},_t=(E,le)=>{A.startCameraManualRotation(E,le)},rt=(E=!1)=>{A.stopCameraManualRotation(E)},Rt=(E,le,ge)=>{A.moveCameraFocusPX(E,le,ge)},ut=()=>{A.holdCamera()},It=()=>{A.releaseCamera()},Je=On(A.info.position$.getValue(),E=>{let le,ge;const He=()=>{const Qe=A.info.playbackState$.getValue(),ft=A.info.isLive$.getValue(),Vt=A.info.duration$.getValue(),wt=A.info.position$.getValue();if([$e.PlaybackState.PLAYING,$e.PlaybackState.PAUSED].includes(Qe)){const Ri=ft?wt-Vt:A.getExactTime();Ri!==ge&&E(Ri),ge=Ri}le=requestAnimationFrame(He)};return He(),()=>cancelAnimationFrame(le)}),Ue=kt(fe),St=kt(A.info.playbackState$),$i=kt(A.info.currentBuffer$),di=kt(A.info.isEnded$),mi=kt(A.info.isLive$),ln=G.features.playbackRate?kt(A.info.canChangePlaybackSpeed$):On(!1),$t=kt(A.info.liveBufferTime$),Kt=kt(A.info.volume$),ei=kt(A.info.muted$),Ot=z1(A.info.autoQualityLimits$.pipe(ne.map(({max:E})=>E!==void 0)),((te=A.info.autoQualityLimits$.getValue())===null||te===void 0?void 0:te.max)!==void 0),ti=kt(A.info.autoQualityLimitingAvailable$),Di=kt(A.info.availableQualities$),ii=kt(A.info.availableQualitiesFps$),Ei=kt(A.info.chromecastState$),pi=kt(A.info.chromecastDeviceName$),ni=kt(A.info.currentFormat$),zi=kt(A.info.throughputEstimation$),Ai=kt(A.info.videoBitrate$),Fi=kt(A.info.intrinsicVideoSize$),oi=kt(A.info.duration$),Hi=kt(A.info.isAudioAvailable$);let Pt=null;const Tt=A.info.isBuffering$,hi=On(Tt.getValue(),E=>{const le=Tt.subscribe(ge=>{ge&&Pt===null?Pt=window.setTimeout(()=>{E(Tt.getValue()),Pt=null},G.loaderDelay):E(ge)});return()=>{le.unsubscribe(),Pt&&clearTimeout(Pt)}}),Ii=()=>{Pt&&clearTimeout(Pt),Pt=null},lt=Oi([oi,mi],([E,le])=>le?-E:E),ct=Oi([St],([E])=>E===$e.PlaybackState.PLAYING),li=kt(A.info.atLiveEdge$),Bt=kt(A.info.atLiveDurationEdge$),ri=kt(A.info.position$),vi=Oi([ri,oi],([E,le])=>isFinite(E)&&isFinite(le)&&!!le),gi=Oi([Ei],([E])=>E===$e.ChromecastState.CONNECTED),Dt=Ne(void 0),Zi=kt(A.info.isAutoQualityEnabled$,E=>E&&Dt.set(void 0)),bi=kt(A.info.currentQuality$,()=>Dt.set(void 0)),Gt=Oi([Dt,bi],([E,le])=>E!=null?E:le),Li=Oi([Di,ii,Zi,Gt,ni],([E,le,ge,He,Qe])=>{const ft=[];Qe!==$e.VideoFormat.MPEG&&ft.push({value:So.AUTO,displayValue:re("auto_quality_option"),selected:ge});const Vt=E.filter(wt=>wt!==ne.VideoQuality.INVARIANT);for(const wt of Vt){const Ri=le[wt],Jn=wt===ne.VideoQuality.INVARIANT?re("auto_quality_option"):wt;ft.push({value:wt,displayValue:`${Jn}${Ri?Q5(Ri):""}`,selected:ge?!1:wt===He})}return ft}),rn=kt(A.info.currentPlaybackRate$),_i=Oi([rn,li,Bt],([E,le,ge])=>{const He=ge||w?1:G.controls.playbackRateMin,Qe=le?1:G.controls.playbackRateMax,ft=G.controls.playbackRateStep,Vt=[];for(let wt=He;wt<=Qe;wt+=ft)Vt.push({value:wt,displayValue:wt===1?re("playback_rate_1"):re("playback_rate",{multiplier:wt.toString(10)}),selected:E===wt});return Vt}),Ui=G.features.subtitles?kt(A.info.availableTextTracks$):On([]),Nt=Oi([Ui],([E],le)=>{const ge=[],He=[];for(const Qe of E)Qe.url&&ge.push(Z5(Qe.url));Promise.allSettled(ge).then(Qe=>{for(const[ft,Vt]of Qe.entries())Vt.status==="fulfilled"&&Vt.value.text().then(wt=>{const Ri=new X5,Jn=E[ft].language,Ko=!!E[ft].isAuto,fo=Ri.parse(wt);Jn&&fo&&He.push({lang:Jn,subtitles:fo,isAuto:Ko}),ft===Qe.length-1&&le(He)})})}),Ht={displayValue:re("subtitles_off"),value:"off"},wi=Ne(Object.assign({},Ht)),Vi=Oi([Nt,wi,Nt],([E,le])=>{if((E==null?void 0:E.length)>0){const ge=[Object.assign(Object.assign({},Ht),{selected:(le==null?void 0:le.value)===Ht.value})];for(const{lang:He,isAuto:Qe}of E)tr[He]&&ge.push({displayValue:Qe?re("subtitles_auto",{language:tr[He]}):tr[He],value:He,selected:(le==null?void 0:le.value)===He,isAuto:Qe});return ge}else return[]}),Mi=Oi([Je,wi,Nt],([E,le,ge])=>{if(le&&le.value!==Ht.value)return x5(E,le,ge)}),si=Oi([Mi],([E])=>E!=null&&E.texts?E.texts:[]),Ki=Ne(!0),ki=Oi([$i,lt,ri,$t],([E,le,ge,He])=>{var Qe;const ft=(Qe=E==null?void 0:E.end)!==null&&Qe!==void 0?Qe:0;if(!He)return ft/le;const wt=-ge+He-le;return(ft-wt)/le}),yi=kt(A.info.availableSources$),ji=Oi([yi],([E])=>Object.keys((E==null?void 0:E[$e.VideoFormat.MPEG])||{}).length>0),Ci=()=>{var E,le,ge;const He=Object.keys(((le=(E=A.info.availableSources$)===null||E===void 0?void 0:E.getValue())===null||le===void 0?void 0:le[$e.VideoFormat.MPEG])||{}),Qe=ne.getHighestQuality(He)||ne.VideoQuality.Q_144P;return(ge=Le.sources[$e.VideoFormat.MPEG])===null||ge===void 0?void 0:ge[Qe]},Gi=()=>{var E;const le=Ci();le?j0(le,((E=Le==null?void 0:Le.meta)===null||E===void 0?void 0:E.title)||"video"):ye({message:"There is no URL for download video"})},qt=()=>{ye({message:"toggle muted"});const E=A.info.muted$.getValue(),He=!(A.info.volume$.getValue()===0||E);ai(He)},Yt=()=>{bt.ui.settingsMenuVisible.set(!1)},Bi=E=>{bt.ui.settingsMenuOpenedByKeyboard.set(!!E),bt.ui.settingsMenuVisible.set(!0)},Ni=E=>{tt(bt.ui.settingsMenuVisible)?Yt():Bi(E)},Wt=(E,le=E,ge=!1)=>{var He,Qe,ft;const Vt=!ge,wt=A.info.muted$.getValue();ye({message:`set volume, volume: ${E}, preferredVolume: ${le}, internalCall: ${Vt}`}),A.setVolume(E),x.setVolume(E),Vt&&((He=s==null?void 0:s.onVolumeChange)===null||He===void 0||He.call(s,E)),Qr(le),wt?(A.setMuted(!1),Vt&&((Qe=s==null?void 0:s.onUnmute)===null||Qe===void 0||Qe.call(s)),Bl(!1)):!wt&&E===0&&(A.setMuted(!0),Vt&&((ft=s==null?void 0:s.onMute)===null||ft===void 0||ft.call(s)),Bl(!0))},ai=(E,le=!1)=>{var ge,He,Qe,ft;const Vt=!le,wt=A.info.volume$.getValue();if(ye({message:`set muted, currentVolume: ${wt}, mute: ${E}, internalCall: ${Vt}`}),A.setMuted(E),x.setVolume(E?0:wt),Bl(E),Vt&&(E?(ge=s==null?void 0:s.onMute)===null||ge===void 0||ge.call(s):(He=s==null?void 0:s.onUnmute)===null||He===void 0||He.call(s)),wt===0){let Ri=(Qe=q1())!==null&&Qe!==void 0?Qe:G.volumeDefault;Ri===0&&(Ri=G.volumeMinRestore,Qr(Ri)),A.setVolume(Ri),x.setVolume(Ri),Vt&&((ft=s==null?void 0:s.onVolumeChange)===null||ft===void 0||ft.call(s,Ri))}},ui=()=>{A.prepare()},je=()=>{var E,le;if(ne.assertNonNullable(bt),!tt(bt.ui.controls.disabledControls$).has(dt.PLAY_BUTTON)){if(ye({message:"toggle play"}),tt(bt.playerPhase)===De.Ads){x.togglePlay();return}if(A.info.playbackState$.getValue()!==$e.PlaybackState.PLAYING){if(A.info.isEnded$.getValue()){if(ye({message:"toggle play, video ended, seek to 0"}),Xe.next(),ot.next(yt.SeekAction.REWIND),w){k==null||k();return}A.seekTime(0)}ye({message:"toggle play, call player.play"}),A.play(),(E=s==null?void 0:s.onPlay)===null||E===void 0||E.call(s)}else ye({message:"toggle play, call player.pause"}),A.pause(),(le=s==null?void 0:s.onPause)===null||le===void 0||le.call(s)}},Yi=E=>{ye({message:`set quality, quality: ${E}`}),A.setAutoQuality(E===So.AUTO),E!==So.AUTO?(q0(e,E),Dt.set(E),A.setQuality(E)):W1()},ci=E=>{ye({message:`set trafficSavingEnabled, value: ${E}`}),A.setAutoQualityLimits({max:E?G.trafficSavingLimit:void 0}),K0(E)},qi=E=>{A.setPlaybackRate(E)},Be=()=>{const E=tt(_i),le=E.findIndex(({selected:He})=>He);if(le===E.length-1)return;const ge=E[le+1];qi(ge.value)},sn=()=>{const E=tt(_i),le=E.findIndex(({selected:He})=>He);if(le===0)return;const ge=E[le-1];qi(ge.value)},an=E=>{E&&E.value!==Ht.value&&at.next(E.isAuto?E.value+"_auto":E.value),wi.set(E)},Qi=()=>{const E=tt(Vi),le=tt(wi),ge=tt(he);if((le==null?void 0:le.value)===Ht.value){const He=E.filter(Qe=>Qe.value!==Ht.value).find(Qe=>Qe.value===ge)||E[1];an(He!=null?He:Object.assign({},Ht))}else an(Object.assign(Object.assign({},Ht),{selected:!1}))},Lt=(E,le,ge=!0)=>{if(ye({message:`seek to time, time: ${E}`}),ot.next(le),A.info.isLive$.getValue()){const He=A.info.duration$.getValue(),Qe=Math.min(0,He+E);A.seekTime(Qe,ge)}else{if(C!=null&&C.getValue())return;A.seekTime(Rn(E),ge)}},un=E=>{ye({message:`seek to episode start time: ${E}`}),Lt(E,yt.SeekAction.EPISODE,!0)},en=(E,le)=>{ye({message:`seek to percent, percent: ${E}`});const ge=Math.round(tt(lt)*E);Lt(ge,le,!1)},Wi=E=>{ye({message:`seek external, time: ${E}`}),ot.next(yt.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-E:E)},Si=E=>{var le,ge;ye({message:`set auto quality limitation. Max: ${(le=E.max)!==null&&le!==void 0?le:"none"}. Min: ${(ge=E.min)!==null&&ge!==void 0?ge:"none"}`}),A.setAutoQualityLimits(E)},ee=E=>{ye({message:`seek external to episode start time: ${E}`}),Lt(E,yt.SeekAction.EPISODE,!0)},it=E=>{ye({message:`set playback rate to: ${E}`}),A.setPlaybackRate(E)},Ut=Ne(void 0),Pi=Ne(!1),ht=E=>{ye({message:`start scrubbing, progress: ${E}`}),Pi.set(!0),mn(E)},mn=E=>{Ut.set(E)};let kn,pn;const yn=()=>{Ut.set(void 0),Pi.set(!1)},cn=()=>{clearTimeout(pn),clearTimeout(kn),kn=window.setTimeout(()=>{yn()},500),Ve==null||Ve.removeEventListener("seeked",cn)},tn=E=>{ye({message:`complete scrubbing, progress: ${E}`}),en(E,yt.SeekAction.SLIDER),tt(bt.ui.isMobile)&&tt(bt.state.currentFormat$)===$e.VideoFormat.HLS?(Ve==null||Ve.addEventListener("seeked",cn),pn=window.setTimeout(()=>{cn()},300)):yn()},Cn=Oi([Je,lt,Ut],([E,le,ge],He)=>{He(ne.isNonNullable(ge)?ge*le:E)}),Sn=Ne({width:0,height:0}),Pn=Oi([Sn],([{width:E}],le)=>{const ge=Rh(E);le(ge)}),hn=Ne(!1),Tn=Oi([Pn,hn],([E,le])=>le?q.filter(ge=>!ge.hideOnMobile):q.filter(ge=>{var He;return!(!((He=ge.hideOnDesktopGridTypes)===null||He===void 0)&&He.includes(E))})),J=Oi([hn,Ie],([E,le],ge)=>{ge(E&&le)}),vt=()=>{ot.next(yt.SeekAction.LIVE),ye({message:"switch to active live"}),A.seekTime(0),A.info.playbackState$.getValue()!==$e.PlaybackState.PLAYING&&bt.actions.internal.togglePlay()},vn=()=>x.skip(),Xi=(E=!0)=>{ne.assertNonNullable(bt),ye({message:`switch from ads to video, callPlay: ${E}`}),Te.set(De.Video),E&&A.play()},gn=()=>{ne.assertNonNullable(bt),ye({message:"switch from video to ads"}),bt.actions.internal.pause(),pt(),Te.set(De.Ads)},fn=E=>{ne.assertNonNullable(bt);const le=E?De.WaitingLive:De.Thumb;Te.set(le)},Yn=E=>{ne.assertNonNullable(bt);const le=E?De.WaitingRecord:De.Thumb;Te.set(le)},Qn=()=>(ne.assertNonNullable(bt),H0(A,Le,bt)),Xn=()=>(ne.assertNonNullable(bt),U0(A,Le,bt)),Nn=()=>Ve,zn=()=>{ye({message:"toggle chromecast"}),A.toggleChromecast()},En=E=>{var le;ne.assertNonNullable(bt);const ge=!E;if(tt(bt.playerPhase)===De.Ads){ye({message:`pause ads, internalCall: ${ge}`}),x.pause();return}ye({message:`pause video, internalCall: ${ge}`}),ge&&((le=s==null?void 0:s.onPause)===null||le===void 0||le.call(s)),A.pause()},io=E=>{var le;ne.assertNonNullable(bt);const ge=!E;if(tt(bt.playerPhase)===De.Ads){ye({message:`play ads, internalCall: ${ge}`}),x.play();return}ye({message:`play video, internalCall: ${ge}`}),ge&&((le=s==null?void 0:s.onPlay)===null||le===void 0||le.call(s)),A.play()},Ji=(E,le)=>{ne.assertNonNullable(bt),ye({message:`first start, show ads: ${E}, internalCall: ${!le}`}),E?Te.set(De.Ads):(Te.set(De.Video),le?A.play():bt.actions.internal.togglePlay())},An=()=>(ye({message:"getting time codes"}),c),Q=()=>{const E=An();if(!E||[0,1].includes(E.length))return;const le=A.info.position$.getValue();return E.find(ge=>ge.time>le)},no=E=>{let le=E;le||(le=Q()),le&&(ye({message:"seek to next episode"}),Lt(le.time,yt.SeekAction.EPISODE,!0))},uo=()=>{const E=An();if(!E||[0,1].includes(E.length))return;const le=A.info.position$.getValue(),ge=E.findIndex(Qe=>Qe.time>le),He=ge===-1?E.length-2:ge-2;if(!(He<0))return E[He]},Lo=E=>{let le=E;le||(le=uo()),le&&(ye({message:"seek to prev episode"}),Lt(le.time,yt.SeekAction.EPISODE,!0))},co=()=>(ye({message:"getting preview thumbs data"}),f),Z=()=>fi(void 0,void 0,void 0,function*(){ie!=null&&ie.isActive()?yield ie==null?void 0:ie.remove():yield ie==null?void 0:ie.request()}),Et=(E=-90)=>{Fe.update(le=>le+E)},nn=Ne([]);b==null||b.subscribe(E=>{const le=[];for(let ge=0;ge<E.length;ge++){const{range:[He,Qe],subjects:ft}=E[ge];ge===0&&He!==0&&le.push({time:0,text:"",interactive:!1,completed:!0}),le.push({time:He/1e3,text:"",interactive:!0,completed:!ft.length}),Qe!==1/0&&le.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}nn.set(le)});const bn=Ne(!1);C==null||C.subscribe(E=>{E&&tt(Pi)&&yn()});const Rn=E=>{if(!w)return E;const le=tt(nn),ge=tt(lt),Qe=tt(ri)/ge,ft=le.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Qe);return typeof(ft==null?void 0:ft.time)=="number"?Math.min(E,ft.time-.05):E},oo=()=>{bt.ui.episodes.panelOpened$.set(!1)},Zo=()=>{clearTimeout(pn),clearTimeout(kn),xt.unsubscribe(),gt.unsubscribe(),A.destroy(),x.destroy(),z==null||z.destroy(),L==null||L.destroy(),Me.unsubscribe()},bt={interfaceLanguage$:he,initVideo:Ke,videoId:e,isClip:t,playerPhase:pe,vsid:W,state:{positionExact$:Je,positionWithScrubbing$:Cn,duration$:lt,playbackState$:St,isPlaying$:ct,isLoaderVisible:hi,bufferedProgress$:ki,isLive$:mi,canChangePlaybackSpeed$:ln,isActiveLive$:li,isOldestAvailableLive$:Bt,isRewindableLive$:vi,isEnded$:di,muted$:ei,volume$:Kt,trafficSavingEnabled$:Ot,autoQualityLimitingAvailable$:ti,currentQuality$:Gt,isAutoQualityEnabled$:Zi,availableQualities$:Li,currentPlaybackRate$:rn,availablePlaybackRates$:_i,currentSubtitle$:wi,availableSubtitlesList$:Vi,currentSubtitleCaptions$:si,isAutoSubtitleCaptionVisible$:Ki,chromecastState$:Ei,chromecastDeviceName$:pi,chromecastConnected$:gi,currentFormat$:ni,throughputEstimation$:zi,videoBitrate$:Ai,videoSize$:Fi,errorLog$:Oe,crashed$:Ie,isAudioAvailable$:Hi,isAudioDisabled:!!r,canDownload:G.features.download&&!!o,availableSources$:yi,hasMpegSources$:ji,isInteractive:w,showInteractiveGraph:G.features.interactiveGraph,showSeekToInteractive:G.features.seekToInteractive,showPlayPrevChapter:G.features.interactivePlayPrevChapter,interactiveEpisodes$:nn,isInteractiveTime$:C?kt(C):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:bn,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:M},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIcon:Ne(void 0),additionalButtons:q.length?q.reduce(E=>[...E,Ne(void 0)],[]):[],disabledControls$:Pe},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$,rotateAlpha:Fe,isAutoplay:Ne(!1),contextMenuVisible:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{btnRef$:Ne(void 0),openedByKeyboard$:Ne(!1),showContextMenuBtn$:Ne(!1)},playerSize:Sn,isMobile:hn,mobileNotReportControlHidden$:J,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),settingsMenuVisible:Ne(!1),settingsMenuOpenedByKeyboard:Ne(!1),scrubbingInProgress:Pi,is3DVideo:Ne(!1),isPictureInPictureActive$:Ue,pictureInPictureType$:On(ue),clientInfo$:On(Se),currentGridType$:Pn,additionalButtons$:Tn,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1)},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne(Xt.INACTIVE),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Ee},actions:{internal:{preload:ui,firstStart:E=>Ji(E,!1),pause:()=>En(!1),togglePlay:je,toggleMuted:qt,toggleSettingsMenu:Ni,openSettingsMenu:Bi,closeSettingsMenu:Yt,setVolume:Wt,setQuality:Yi,setTrafficSavingEnabled:E=>ci(E),setPlaybackRate:qi,incrementPlaybackRate:Be,decrementPlaybackRate:sn,setSubtitle:an,toggleSubtitle:Qi,togglePictureInPicture:Z,startScrubbing:ht,progressScrubbing:mn,completeScrubbing:tn,toggleChromecast:zn,switchToActiveLive:vt,switchFromAdsToVideo:Xi,switchFromVideoToAds:gn,skipAd:vn,setWaitingLive:fn,setWaitingRecord:Yn,getDebugTextData:Qn,getDebugPanelData:Xn,getVideoElement:Nn,seekTime:(E,le,ge)=>Lt(E,le,ge),clearDelayedBufferingCheckTimeout:Ii,seekEpisodeStartTime:un,seekToPercent:en,getNextEpisode:Q,seekToNextEpisode:no,getPrevEpisode:uo,seekToPrevEpisode:Lo,startLogging:Mt,stopLogging:oe,startCameraManualRotation:_t,stopCameraManualRotation:rt,moveCameraFocusPX:Rt,holdCamera:ut,releaseCamera:It,getVideoEpisodes:An,getPreviewThumbsData:co,downloadVideo:Gi,addLanguage:ws,setLanguage:ce,nextMovie:xe,videoRotate:Et,correctSeekTimeToInteractive:Rn,replayInteractive:k},external:{firstStart:E=>Ji(E,!0),play:()=>io(!0),pause:()=>En(!0),seekTime:E=>Wi(E),seekEpisodeStartTime:E=>ee(E),setPlaybackRate:E=>it(E),setAutoQualityLimits:E=>Si(E),setMuted:E=>ai(E,!0),setVolume:E=>Wt(E,E,!0),returnFocusToEpisodes:oo}},callbacks:s,setUiCallbacks:E=>{_e=Object.assign({},E)},getAdmanWrapper:()=>x,getLogger:()=>V,destroy:Zo};return bt},bf=(i,e,t,n)=>{var l;if(!i)return;const r=["interactiveTimeIcon"],o=i.getBoundingClientRect();for(const[s,a]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){const c=(l=t[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})}},_f=(i,e,t)=>fi(void 0,void 0,void 0,function*(){yield Oo(),e&&t&&(t.focus(),i.set(!1))});function tg(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class ig extends ke{constructor(e){super(),we(this,e,null,tg,be,{})}}function ng(i){let e,t;return e=new ig({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function og(i){let e,t,n;function l(o){i[8](o)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[ng]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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&8192&&(a.$$scope={dirty:s,ctx:o}),!t&&s&4&&(t=!0,a.ref=o[2],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function lg(i,e,t){let n,{disabled:l=!1}=e,{ariaLabel:r=""}=e;const o=Ct(),s=o.ui.contextMenuVisible;D(i,s,b=>t(3,n=b));const a=o.ui.contextMenu.openedByKeyboard$,c=o.ui.contextMenu.showContextMenuBtn$,f=o.ui.contextMenu.btnRef$,d=b=>{const C=kr(b);a.set(C),s.set(!n)};let h;const _=()=>{c.set(!0)},g=()=>{c.set(!1)};function w(b){h=b,t(2,h)}return i.$$set=b=>{"disabled"in b&&t(0,l=b.disabled),"ariaLabel"in b&&t(1,r=b.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&f.set(h)},[l,r,h,n,s,d,_,g,w]}class rg extends ke{constructor(e){super(),we(this,e,lg,og,be,{disabled:0,ariaLabel:1})}}function sg(i){Ze(i,"v-1syq7kl",".interactive-episode-icon-animated.v-1syq7kl{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.7s;opacity:1}.invisible.v-1syq7kl{opacity:0;visibility:hidden}.fullscreen.v-1syq7kl:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.v-1syq7kl{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.v-1syq7kl{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.v-1syq7kl{top:40px;right:16px}}@keyframes v-1syq7kl-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.interactive-episode-icon-animated.v-1syq7kl:after{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s v-1syq7kl-pulse infinite;transition:0.3ms}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.v-1syq7kl{position:absolute;top:0;width:100%;height:100%}.hidden.v-1syq7kl{display:none}")}function ag(i){let e,t,n,l,r,o,s;return t=new Jc({props:{completed:!0}}),{c(){e=T("div"),j(t.$$.fragment),n=O(),l=T("div"),u(l,"class","ref-block v-1syq7kl"),B(l,"hidden",i[2]),u(e,"class","interactive-episode-icon-animated v-1syq7kl"),B(e,"mobile",i[1]),B(e,"fullscreen",i[3]),B(e,"invisible",i[2])},m(a,c){P(a,e,c),F(t,e,null),p(e,n),p(e,l),i[14](l),r=!0,o||(s=ve(e,"click",i[9]),o=!0)},p(a,[c]){(!r||c&4)&&B(l,"hidden",a[2]),(!r||c&2)&&B(e,"mobile",a[1]),(!r||c&8)&&B(e,"fullscreen",a[3]),(!r||c&4)&&B(e,"invisible",a[2])},i(a){r||(m(t.$$.fragment,a),r=!0)},o(a){v(t.$$.fragment,a),r=!1},d(a){a&&S(e),H(t),i[14](null),o=!1,s()}}}function ug(i,e,t){var M;let n,l,r,o,s,{ref:a=void 0}=e;const c=Ct(),f=c.ui.isMobile;D(i,f,q=>t(1,o=q));const d=c.ui.isFullscreen;D(i,d,q=>t(3,s=q));const h=c.state.isInteractiveTime$;D(i,h,q=>t(12,l=q));const _=c.ui.controlsVisible;D(i,_,q=>t(13,r=q));const g=(M=c.callbacks)==null?void 0:M.onInteractiveTimeIconClick,{interactiveControlsOpacity$:w}=zo();D(i,w,q=>t(11,n=q));let b,C;const k=()=>{C||g==null||g()};function y(q){Ce[q?"unshift":"push"](()=>{a=q,t(0,a)})}return i.$$set=q=>{"ref"in q&&t(0,a=q.ref)},i.$$.update=()=>{i.$$.dirty&8194&&t(10,b=!o&&r),i.$$.dirty&7168&&t(2,C=!l||!!n||b)},[a,o,C,s,f,d,h,_,w,k,b,n,l,r,y]}class wf extends ke{constructor(e){super(),we(this,e,ug,ag,be,{ref:0},sg)}}const{Boolean:cg}=vl;function fg(i){Ze(i,"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 Ra(i,e,t){const n=i.slice();return n[211]=e[t].iconUrl,n[212]=e[t].ariaLabel,n[213]=e[t].testId,n[214]=e[t].onClick,n[215]=e[t].tooltip,n}function Oa(i){let e,t,n;function l(o){i[174](o)}let r={disabled:!i[9],tooltipContent:Y("tooltip_previous"),$$slots:{default:[dg]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&512&&(a.disabled=!o[9]),s[0]&4608|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].prevButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function dg(i){let e,t;return e=new Cl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Da(i){let e,t,n;function l(o){i[175](o)}let r={disabled:i[75],tooltipContent:Y("tooltip_restart"),$$slots:{default:[mg]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[2]&8192&&(a.disabled=o[75]),s[2]&8192|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].replayButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function mg(i){let e,t;return e=new Ir({props:{click:i[129],disabled:i[75]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[2]&8192&&(r.disabled=n[75]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function za(i){let e,t,n;function l(o){i[177](o)}let r={tooltipContent:i[48],disabled:i[76],$$slots:{default:[pg]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&131072&&(a.tooltipContent=o[48]),s[2]&16384&&(a.disabled=o[76]),s[0]&67108864|s[1]&16|s[2]&16384|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].playButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function pg(i){let e,t,n;function l(o){i[176](o)}let r={isMobile:!1,isPlaying:i[35],click:i[86],disabled:i[76]};return i[26]!==void 0&&(r.ref=i[26]),e=new Ar({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&16&&(a.isPlaying=o[35]),s[2]&16384&&(a.disabled=o[76]),!t&&s[0]&67108864&&(t=!0,a.ref=o[26],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Fa(i){let e,t,n;function l(o){i[178](o)}let r={disabled:!i[8],tooltipContent:Y("tooltip_next"),$$slots:{default:[hg]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&256&&(a.disabled=!o[8]),s[0]&2304|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].nextButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function hg(i){let e,t;return e=new Cl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function vg(i){let e,t,n,l,r=i[123]&&gg(i),o=i[122]&&_g(i),s=i[121]&&kg(i);return{c(){r&&r.c(),e=O(),o&&o.c(),t=O(),s&&s.c(),n=mt()},m(a,c){r&&r.m(a,c),P(a,e,c),o&&o.m(a,c),P(a,t,c),s&&s.m(a,c),P(a,n,c),l=!0},p(a,c){a[123]&&r.p(a,c),a[122]&&o.p(a,c),a[121]&&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&&(S(e),S(t),S(n)),r&&r.d(a),o&&o.d(a),s&&s.d(a)}}}function gg(i){let e,t,n;function l(o){i[179](o)}let r={disabled:i[74],tooltipContent:Y("tooltip_interactive_go_back"),disabledTooltipContent:Y(i[125]),$$slots:{default:[bg]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[2]&4096&&(a.disabled=o[74]),s[0]&131072|s[2]&4096|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].playPrevChapterButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function bg(i){let e,t;return e=new df({props:{disabled:i[74],click:i[17]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[2]&4096&&(r.disabled=n[74]),l[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function _g(i){let e,t,n;function l(o){i[180](o)}let r={disabled:i[77],tooltipContent:Y("tooltip_interactive_seek"),disabledTooltipContent:Y(i[79]),$$slots:{default:[wg]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[2]&32768&&(a.disabled=o[77]),s[2]&131072&&(a.disabledTooltipContent=Y(o[79])),s[0]&32768|s[2]&32768|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].seekToInteractiveButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function wg(i){let e,t;return e=new uf({props:{disabled:i[77],click:i[15]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[2]&32768&&(r.disabled=n[77]),l[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function kg(i){let e,t,n;function l(o){i[181](o)}let r={tooltipContent:i[49],disabled:i[78],$$slots:{default:[yg]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&262144&&(a.tooltipContent=o[49]),s[2]&65536&&(a.disabled=o[78]),s[0]&65536|s[1]&1|s[2]&65536|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].interactiveGraphButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function yg(i){let e,t;return e=new cf({props:{click:i[16],graphIsOpened:i[31],disabled:i[78]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&65536&&(r.click=n[16]),l[1]&1&&(r.graphIsOpened=n[31]),l[2]&65536&&(r.disabled=n[78]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ha(i){let e,t,n;function l(o){i[182](o)}let r={tooltipContent:i[51],$$slots:{default:[Cg]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&1048576&&(a.tooltipContent=o[51]),s[0]&2097152|s[1]&1048576|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].liveButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Cg(i){let e,t;return e=new of({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[51]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&2097152&&(r.isActiveLive=n[21]),l[1]&1048576&&(r.ariaLabel=n[51]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ua(i){let e,t,n;function l(o){i[183](o)}let r={isMobile:!1,showDuration:i[56],position:i[4]?i[80]:i[81],duration:i[4]?i[82]:i[83]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Qc({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&33554432&&(a.showDuration=o[56]),s[0]&16|s[2]&786432&&(a.position=o[4]?o[80]:o[81]),s[0]&16|s[2]&3145728&&(a.duration=o[4]?o[82]:o[83]),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].time,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function ja(i){let e,t;return e=new af({props:{position:i[81],duration:i[83],timeCodes:i[102]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[2]&524288&&(r.position=n[81]),l[2]&2097152&&(r.duration=n[83]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Sg(i){let e,t,n=i[20]&&ja(i);return{c(){n&&n.c(),e=mt()},m(l,r){n&&n.m(l,r),P(l,e,r),t=!0},p(l,r){l[20]?n?(n.p(l,r),r[0]&1048576&&m(n,1)):(n=ja(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(de(),v(n,1,1,()=>{n=null}),me())},i(l){t||(m(n),t=!0)},o(l){v(n),t=!1},d(l){l&&S(e),n&&n.d(l)}}}function Pg(i){var n;let e,t;return e=new mf({props:{iconUrl:i[211],ariaLabel:(n=i[212])!=null?n:i[215],testId:i[213],onClick:i[214]}}),{c(){j(e.$$.fragment)},m(l,r){F(e,l,r),t=!0},p(l,r){var s;const o={};r[0]&268435456&&(o.iconUrl=l[211]),r[0]&268435456&&(o.ariaLabel=(s=l[212])!=null?s:l[215]),r[0]&268435456&&(o.testId=l[213]),r[0]&268435456&&(o.onClick=l[214]),e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){v(e.$$.fragment,l),t=!1},d(l){H(e,l)}}}function qa(i){let e,t;return e=new jt({props:{tooltipContent:i[215],width:40,$$slots:{default:[Pg]},$$scope:{ctx:i}}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&268435456&&(r.tooltipContent=n[215]),l[0]&268435456|l[7]&2&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Wa(i){let e,t,n;function l(o){i[186](o)}let r={disabled:!i[6],tooltipContent:i[52],$$slots:{default:[Tg]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&64&&(a.disabled=!o[6]),s[1]&2097152&&(a.tooltipContent=o[52]),s[0]&192|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].vkLogo,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Tg(i){let e,t;return e=new tf({props:{click:i[87],logoClickable:i[6],videoLogoUrl:i[7]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&64&&(r.logoClickable=n[6]),l[0]&128&&(r.videoLogoUrl=n[7]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Eg(i){let e,t;return e=new Uh({props:{click:i[128]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p:K,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Za(i){let e,t,n;function l(o){i[188](o)}let r={tooltipContent:i[53],$$slots:{default:[Ag]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&4194304&&(a.tooltipContent=o[53]),s[0]&262144|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].subtitles,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Ag(i){let e,t;return e=new x3({props:{isSubtitlesEnabled:i[18],click:i[88]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ka(i){var s;let e,t,n,l;function r(a){i[189](a)}let o={supportLink:i[10],playerControlsHeight:(s=i[47])==null?void 0:s.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(o.ref=i[24]),t=new Yc({props:o}),Ce.push(()=>We(t,"ref",r)),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","settings-menu v-st0uzk")},m(a,c){P(a,e,c),F(t,e,null),l=!0},p(a,c){var d;const f={};c[0]&1024&&(f.supportLink=a[10]),c[1]&65536&&(f.playerControlsHeight=(d=a[47])==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)),t.$set(f)},i(a){l||(m(t.$$.fragment,a),l=!0)},o(a){v(t.$$.fragment,a),l=!1},d(a){a&&S(e),H(t)}}}function Ga(i){let e,t,n;function l(o){i[191](o)}let r={tooltipContent:i[27]?void 0:Y("tooltip_settings_off"),$$slots:{default:[Ig]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&134217728&&(a.tooltipContent=o[27]?void 0:Y("tooltip_settings_off")),s[0]&33554432|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].settings,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Ig(i){let e,t,n;function l(o){i[190](o)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Pr({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};!t&&s[0]&33554432&&(t=!0,a.ref=o[25],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Lg(i){let e,t,n;function l(o){i[192](o)}let r={className:i[42]?"":"out-of-view",tooltipContent:i[50],$$slots:{default:[Vg]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&2048&&(a.className=o[42]?"":"out-of-view"),s[1]&524288&&(a.tooltipContent=o[50]),s[1]&524288|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].context,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Vg(i){let e,t;return e=new rg({props:{ariaLabel:i[50]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ya(i){let e,t,n;function l(o){i[193](o)}let r={tooltipContent:i[54],$$slots:{default:[Mg]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&8388608&&(a.tooltipContent=o[54]),s[0]&1073750016|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].fullscreen,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Mg(i){let e,t;return e=new $c({props:{click:i[13],isFullscreen:i[30]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Qa(i){let e,t,n;function l(o){i[194](o)}let r={tooltipContent:i[55],$$slots:{default:[Bg]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&16777216&&(a.tooltipContent=o[55]),s[0]&536870912|s[7]&2&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&8388608&&(t=!0,a.ref=o[23].chromecast,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Bg(i){let e,t;return e=new nf({props:{isMobile:!1,state:i[29],click:i[127]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Xa(i){let e,t,n;function l(o){i[197](o)}let r={};return i[23].interactiveTimeIcon!==void 0&&(r.ref=i[23].interactiveTimeIcon),e=new wf({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};!t&&s[0]&8388608&&(t=!0,a.ref=o[23].interactiveTimeIcon,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Ng(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae,se,R,te,X,G,A;t=new sf({props:{isHidden:!i[46],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let V=i[39]&&Oa(i),x=i[36]&&Da(i),L=i[37]&&za(i),ie=i[38]&&Fa(i),Ee=i[118]&&vg(i),ye=!i[4]&&i[33]&&Ha(i),Le=i[19]&&Ua(i);function Ve(pe){i[184](pe)}let _e={className:"w-max",disabled:!i[20],tooltipContent:Y("tooltip_episodes"),$$slots:{default:[Sg]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(_e.ref=i[23].episodes),_=new jt({props:_e}),Ce.push(()=>We(_,"ref",Ve));let Se=Zt(i[28]),W=[];for(let pe=0;pe<Se.length;pe+=1)W[pe]=qa(Ra(i,Se,pe));const $=pe=>v(W[pe],1,1,()=>{W[pe]=null});let fe=i[44]&&Wa(i);function ue(pe){i[187](pe)}let Fe={$$slots:{default:[Eg]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Fe.ref=i[23].volume),M=new jt({props:Fe}),Ce.push(()=>We(M,"ref",ue));let Oe=i[41]&&Za(i),Me=!i[84]&&!i[4]&&Ka(i),Ie=i[43]&&Ga(i),ce=i[85].features.contextMenuButton&&Lg(i),he=i[45]&&Ya(i),re=i[40]&&Qa(i),Te=i[34]&&Xa(i);return{c(){e=T("div"),j(t.$$.fragment),n=O(),l=T("div"),r=T("div"),V&&V.c(),o=O(),x&&x.c(),s=O(),L&&L.c(),a=O(),ie&&ie.c(),c=O(),Ee&&Ee.c(),f=O(),ye&&ye.c(),d=O(),Le&&Le.c(),h=O(),j(_.$$.fragment),b=O(),C=T("div");for(let pe=0;pe<W.length;pe+=1)W[pe].c();k=O(),fe&&fe.c(),y=O(),j(M.$$.fragment),I=O(),Oe&&Oe.c(),z=O(),Me&&Me.c(),ae=O(),Ie&&Ie.c(),se=O(),ce&&ce.c(),R=O(),he&&he.c(),te=O(),re&&re.c(),X=O(),Te&&Te.c(),G=mt(),u(r,"class","controls-left v-st0uzk"),To(()=>i[185].call(r)),u(C,"class","controls-right v-st0uzk"),u(l,"class","controls v-st0uzk"),u(e,"class","wrapper-bottom v-st0uzk"),B(e,"hidden",i[1]),B(e,"controls-hidden",!i[3]),B(e,"no-smooth",i[2])},m(pe,Pe){P(pe,e,Pe),F(t,e,null),p(e,n),p(e,l),p(l,r),V&&V.m(r,null),p(r,o),x&&x.m(r,null),p(r,s),L&&L.m(r,null),p(r,a),ie&&ie.m(r,null),p(r,c),Ee&&Ee.m(r,null),p(r,f),ye&&ye.m(r,null),p(r,d),Le&&Le.m(r,null),p(r,h),F(_,r,null),w=dr(r,i[185].bind(r)),p(l,b),p(l,C);for(let Ke=0;Ke<W.length;Ke+=1)W[Ke]&&W[Ke].m(C,null);p(C,k),fe&&fe.m(C,null),p(C,y),F(M,C,null),p(C,I),Oe&&Oe.m(C,null),p(C,z),Me&&Me.m(C,null),p(C,ae),Ie&&Ie.m(C,null),p(C,se),ce&&ce.m(C,null),p(C,R),he&&he.m(C,null),p(C,te),re&&re.m(C,null),i[195](l),i[196](e),P(pe,X,Pe),Te&&Te.m(pe,Pe),P(pe,G,Pe),A=!0},p(pe,Pe){const Ke={};Pe[1]&32768&&(Ke.isHidden=!pe[46]),Pe[0]&16&&(Ke.isAds=pe[4]),Pe[0]&32&&(Ke.canRewindLive=pe[5]),Pe[1]&2&&(Ke.isRewindableLive=pe[32]),t.$set(Ke),pe[39]?V?(V.p(pe,Pe),Pe[1]&256&&m(V,1)):(V=Oa(pe),V.c(),m(V,1),V.m(r,o)):V&&(de(),v(V,1,1,()=>{V=null}),me()),pe[36]?x?(x.p(pe,Pe),Pe[1]&32&&m(x,1)):(x=Da(pe),x.c(),m(x,1),x.m(r,s)):x&&(de(),v(x,1,1,()=>{x=null}),me()),pe[37]?L?(L.p(pe,Pe),Pe[1]&64&&m(L,1)):(L=za(pe),L.c(),m(L,1),L.m(r,a)):L&&(de(),v(L,1,1,()=>{L=null}),me()),pe[38]?ie?(ie.p(pe,Pe),Pe[1]&128&&m(ie,1)):(ie=Fa(pe),ie.c(),m(ie,1),ie.m(r,c)):ie&&(de(),v(ie,1,1,()=>{ie=null}),me()),pe[118]&&Ee.p(pe,Pe),!pe[4]&&pe[33]?ye?(ye.p(pe,Pe),Pe[0]&16|Pe[1]&4&&m(ye,1)):(ye=Ha(pe),ye.c(),m(ye,1),ye.m(r,d)):ye&&(de(),v(ye,1,1,()=>{ye=null}),me()),pe[19]?Le?(Le.p(pe,Pe),Pe[0]&524288&&m(Le,1)):(Le=Ua(pe),Le.c(),m(Le,1),Le.m(r,h)):Le&&(de(),v(Le,1,1,()=>{Le=null}),me());const Re={};if(Pe[0]&1048576&&(Re.disabled=!pe[20]),Pe[0]&1048576|Pe[2]&2621440|Pe[7]&2&&(Re.$$scope={dirty:Pe,ctx:pe}),!g&&Pe[0]&8388608&&(g=!0,Re.ref=pe[23].episodes,qe(()=>g=!1)),_.$set(Re),Pe[0]&268435456){Se=Zt(pe[28]);let Xe;for(Xe=0;Xe<Se.length;Xe+=1){const ot=Ra(pe,Se,Xe);W[Xe]?(W[Xe].p(ot,Pe),m(W[Xe],1)):(W[Xe]=qa(ot),W[Xe].c(),m(W[Xe],1),W[Xe].m(C,k))}for(de(),Xe=Se.length;Xe<W.length;Xe+=1)$(Xe);me()}pe[44]?fe?(fe.p(pe,Pe),Pe[1]&8192&&m(fe,1)):(fe=Wa(pe),fe.c(),m(fe,1),fe.m(C,y)):fe&&(de(),v(fe,1,1,()=>{fe=null}),me());const xe={};Pe[7]&2&&(xe.$$scope={dirty:Pe,ctx:pe}),!q&&Pe[0]&8388608&&(q=!0,xe.ref=pe[23].volume,qe(()=>q=!1)),M.$set(xe),pe[41]?Oe?(Oe.p(pe,Pe),Pe[1]&1024&&m(Oe,1)):(Oe=Za(pe),Oe.c(),m(Oe,1),Oe.m(C,z)):Oe&&(de(),v(Oe,1,1,()=>{Oe=null}),me()),!pe[84]&&!pe[4]?Me?(Me.p(pe,Pe),Pe[0]&16|Pe[2]&4194304&&m(Me,1)):(Me=Ka(pe),Me.c(),m(Me,1),Me.m(C,ae)):Me&&(de(),v(Me,1,1,()=>{Me=null}),me()),pe[43]?Ie?(Ie.p(pe,Pe),Pe[1]&4096&&m(Ie,1)):(Ie=Ga(pe),Ie.c(),m(Ie,1),Ie.m(C,se)):Ie&&(de(),v(Ie,1,1,()=>{Ie=null}),me()),pe[85].features.contextMenuButton&&ce.p(pe,Pe),pe[45]?he?(he.p(pe,Pe),Pe[1]&16384&&m(he,1)):(he=Ya(pe),he.c(),m(he,1),he.m(C,te)):he&&(de(),v(he,1,1,()=>{he=null}),me()),pe[40]?re?(re.p(pe,Pe),Pe[1]&512&&m(re,1)):(re=Qa(pe),re.c(),m(re,1),re.m(C,null)):re&&(de(),v(re,1,1,()=>{re=null}),me()),(!A||Pe[0]&2)&&B(e,"hidden",pe[1]),(!A||Pe[0]&8)&&B(e,"controls-hidden",!pe[3]),(!A||Pe[0]&4)&&B(e,"no-smooth",pe[2]),pe[34]?Te?(Te.p(pe,Pe),Pe[1]&8&&m(Te,1)):(Te=Xa(pe),Te.c(),m(Te,1),Te.m(G.parentNode,G)):Te&&(de(),v(Te,1,1,()=>{Te=null}),me())},i(pe){if(!A){m(t.$$.fragment,pe),m(V),m(x),m(L),m(ie),m(Ee),m(ye),m(Le),m(_.$$.fragment,pe);for(let Pe=0;Pe<Se.length;Pe+=1)m(W[Pe]);m(fe),m(M.$$.fragment,pe),m(Oe),m(Me),m(Ie),m(ce),m(he),m(re),m(Te),A=!0}},o(pe){v(t.$$.fragment,pe),v(V),v(x),v(L),v(ie),v(Ee),v(ye),v(Le),v(_.$$.fragment,pe),W=W.filter(cg);for(let Pe=0;Pe<W.length;Pe+=1)v(W[Pe]);v(fe),v(M.$$.fragment,pe),v(Oe),v(Me),v(Ie),v(ce),v(he),v(re),v(Te),A=!1},d(pe){pe&&(S(e),S(X),S(G)),H(t),V&&V.d(),x&&x.d(),L&&L.d(),ie&&ie.d(),Ee&&Ee.d(),ye&&ye.d(),Le&&Le.d(),H(_),w(),Bn(W,pe),fe&&fe.d(),H(M),Oe&&Oe.d(),Me&&Me.d(),Ie&&Ie.d(),ce&&ce.d(),he&&he.d(),re&&re.d(),i[195](null),i[196](null),Te&&Te.d(pe)}}}function Rg(i,e,t){var Hr,Ur;let n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae,se,R,te,X,G,A,V,x,L,ie,Ee=K,ye=()=>(Ee(),Ee=Qt(se,U=>t(145,ie=U)),se),Le,Ve=K,_e=()=>(Ve(),Ve=Qt(ae,U=>t(146,Le=U)),ae),Se,W=K,$=()=>(W(),W=Qt(z,U=>t(147,Se=U)),z),fe,ue=K,Fe=()=>(ue(),ue=Qt(I,U=>t(148,fe=U)),I),Oe,Me=K,Ie=()=>(Me(),Me=Qt(q,U=>t(149,Oe=U)),q),ce,he=K,re=()=>(he(),he=Qt(M,U=>t(150,ce=U)),M),Te,pe=K,Pe=()=>(pe(),pe=Qt(y,U=>t(151,Te=U)),y),Ke,Re=K,xe=()=>(Re(),Re=Qt(k,U=>t(152,Ke=U)),k),Xe,ot=K,at=()=>(ot(),ot=Qt(C,U=>t(153,Xe=U)),C),At,pt=K,xt=()=>(pt(),pt=Qt(b,U=>t(154,At=U)),b),gt,Mt=K,oe=()=>(Mt(),Mt=Qt(w,U=>t(155,gt=U)),w),_t,rt=K,Rt=()=>(rt(),rt=Qt(g,U=>t(156,_t=U)),g),ut,It=K,Je=()=>(It(),It=Qt(_,U=>t(157,ut=U)),_),Ue,St=K,$i=()=>(St(),St=Qt(h,U=>t(158,Ue=U)),h),di,mi=K,ln=()=>(mi(),mi=Qt(d,U=>t(159,di=U)),d),$t,Kt=K,ei=()=>(Kt(),Kt=Qt(f,U=>t(160,$t=U)),f),Ot,ti=K,Di=()=>(ti(),ti=Qt(c,U=>t(161,Ot=U)),c),ii,Ei,pi,ni,zi,Ai,Fi,oi,Hi,Pt,Tt,hi,Ii,lt,ct,li,Bt,ri,vi,gi,Dt,Zi,bi,Gt;i.$$.on_destroy.push(()=>Ee()),i.$$.on_destroy.push(()=>Ve()),i.$$.on_destroy.push(()=>W()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>Me()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>pe()),i.$$.on_destroy.push(()=>Re()),i.$$.on_destroy.push(()=>ot()),i.$$.on_destroy.push(()=>pt()),i.$$.on_destroy.push(()=>Mt()),i.$$.on_destroy.push(()=>rt()),i.$$.on_destroy.push(()=>It()),i.$$.on_destroy.push(()=>St()),i.$$.on_destroy.push(()=>mi()),i.$$.on_destroy.push(()=>Kt()),i.$$.on_destroy.push(()=>ti());let{bottomHidden:Li}=e,{bottomNoSmooth:rn}=e,{showControls:_i}=e,{controlsElementRef:Ui=void 0}=e,{isAds:Nt=!1}=e,{canRewindLive:Ht}=e,{logoClickable:wi}=e,{logoHidden:Vi}=e,{videoLogoUrl:Mi}=e,{showNextPrevButtons:si}=e,{nextButtonActive:Ki}=e,{prevButtonActive:ki}=e,{isOneVideoPlaylist:yi=!1}=e,{supportLink:ji}=e,{customFullscreenSupported:Ci=!0}=e,{playNextVideo:Gi}=e,{playPrevVideo:qt}=e,{repeatPlaylist:Yt}=e,{toggleFullscreen:Bi}=e,{returnFocus:Ni}=e,{seekToInteractive:Wt}=e,{toggleGraph:ai}=e,{playPrevChapter:ui}=e;const je=Ct(),Yi=zo(),ci=wn(),qi=je.actions.internal.toggleMuted,Be=je.actions.internal.togglePlay,sn=je.actions.internal.pause,an=je.actions.internal.toggleSubtitle,Qi=(Hr=je.callbacks)==null?void 0:Hr.onAudioDoesNotExistHint,Lt=(Ur=je.callbacks)==null?void 0:Ur.onAudioDisabledHint,un=je.state.duration$;D(i,un,U=>t(83,bi=U));const en=je.state.positionWithScrubbing$;D(i,en,U=>t(81,Dt=U));const Wi=je.state.playbackState$;D(i,Wi,U=>t(162,pi=U));const Si=je.state.chromecastConnected$;D(i,Si,U=>t(84,Gt=U));const ee=je.state.isAudioAvailable$;D(i,ee,U=>t(198,R=U));const it=je.state.isAudioDisabled,Ut=je.state.isEnded$;D(i,Ut,U=>t(170,lt=U));const Pi=je.state.isLive$;D(i,Pi,U=>t(33,oi=U));const ht=je.state.isActiveLive$;D(i,ht,U=>t(164,Ai=U));const mn=je.state.isRewindableLive$;D(i,mn,U=>t(32,Fi=U));const kn=je.ui.isPictureInPictureActive$;D(i,kn,U=>t(166,Pt=U));const pn=je.ui.pictureInPictureType$;D(i,pn,U=>t(165,Hi=U));const yn=je.ui.settingsMenuVisible;D(i,yn,U=>t(27,G=U));const cn=je.ui.settingsMenuOpenedByKeyboard;D(i,cn,U=>t(141,X=U));const tn=je.ui.controls,Cn=je.actions.internal.getVideoEpisodes(),Sn=je.state.chromecastState$;D(i,Sn,U=>t(29,ii=U));const Pn=je.state.availableSubtitlesList$;D(i,Pn,U=>t(169,Ii=U));const hn=je.state.currentSubtitle$;D(i,hn,U=>t(171,ct=U));const Tn=tn.disabledControls$;D(i,Tn,U=>t(173,Bt=U));const J=je.ui.contextMenuVisible;D(i,J,U=>t(163,ni=U));const vt=je.ui.contextMenu.showContextMenuBtn$;D(i,vt,U=>t(167,Tt=U));const vn=je.ui.contextMenu.openedByKeyboard$;D(i,vn,U=>t(168,hi=U));const Xi=je.ui.startedByKeyboard$;D(i,Xi,U=>t(140,te=U));const gn=je.ads.duration;D(i,gn,U=>t(82,Zi=U));const fn=je.ads.position;D(i,fn,U=>t(80,gi=U));const Yn=je.ads.playbackState;D(i,Yn,U=>t(172,li=U));const Qn=je.ui.isFullscreen;D(i,Qn,U=>t(30,Ei=U));const Xn=je.ui.playerSize;D(i,Xn,U=>t(143,V=U));const Nn=je.ui.currentGridType$;D(i,Nn,U=>t(144,x=U));const zn=je.ui.additionalButtons$;D(i,zn,U=>t(28,L=U));const En=je.actions.internal.getVideoElement,io=je.actions.internal.replayInteractive,Ji=je.state.isInteractive,An=je.state.isInteractiveTime$;D(i,An,U=>t(142,A=U));const Q=je.state.interactiveEpisodes$;D(i,Q,U=>t(199,ri=U));const no=je.state.showInteractiveGraph,uo=je.state.showSeekToInteractive,Lo=je.state.showPlayPrevChapter,co=je.state.graphIsOpened$;D(i,co,U=>t(31,zi=U));const Z=je.state.playPrevChapterDisabledTooltip,Et=Yi.seekToInteractiveDisabledTooltip$;D(i,Et,U=>t(79,vi=U));let nn;nn=!!(Ji&&ri.length);const bn=()=>je.actions.internal.toggleChromecast();let Rn,oo,Zo,bt,E,le,ge,He,Qe,ft,Vt,wt,Ri,Jn,Ko,fo,Sl,Pl,Mr,Br,Nr,Tl="";const Nf=(U,Al)=>{if(!U){t(51,Tl=Y("tooltip_live"));return}Al===$e.PlaybackState.PAUSED&&t(51,Tl=Y("tooltip_play"))};let Rr,Or,Dr,zr,Go;const Ge={};let In,Vo,El,Fr;const Rf=ne.throttleFn(bf,M1,{leading:!1});let Yo,Qo,Xo;function Of(){it?Lt==null||Lt():R?qi():Qi==null||Qi()}const Df=Ji?io:yi?Be:Yt;function zf(U){i.$$.not_equal(Ge.prevButton,U)&&(Ge.prevButton=U,t(23,Ge))}function Ff(U){i.$$.not_equal(Ge.replayButton,U)&&(Ge.replayButton=U,t(23,Ge))}function Hf(U){Xo=U,t(26,Xo)}function Uf(U){i.$$.not_equal(Ge.playButton,U)&&(Ge.playButton=U,t(23,Ge))}function jf(U){i.$$.not_equal(Ge.nextButton,U)&&(Ge.nextButton=U,t(23,Ge))}function qf(U){i.$$.not_equal(Ge.playPrevChapterButton,U)&&(Ge.playPrevChapterButton=U,t(23,Ge))}function Wf(U){i.$$.not_equal(Ge.seekToInteractiveButton,U)&&(Ge.seekToInteractiveButton=U,t(23,Ge))}function Zf(U){i.$$.not_equal(Ge.interactiveGraphButton,U)&&(Ge.interactiveGraphButton=U,t(23,Ge))}function Kf(U){i.$$.not_equal(Ge.liveButton,U)&&(Ge.liveButton=U,t(23,Ge))}function Gf(U){i.$$.not_equal(Ge.time,U)&&(Ge.time=U,t(23,Ge))}function Yf(U){i.$$.not_equal(Ge.episodes,U)&&(Ge.episodes=U,t(23,Ge))}function Qf(){Go=this.clientWidth,t(22,Go)}function Xf(U){i.$$.not_equal(Ge.vkLogo,U)&&(Ge.vkLogo=U,t(23,Ge))}function Jf(U){i.$$.not_equal(Ge.volume,U)&&(Ge.volume=U,t(23,Ge))}function xf(U){i.$$.not_equal(Ge.subtitles,U)&&(Ge.subtitles=U,t(23,Ge))}function $f(U){Yo=U,t(24,Yo)}function e0(U){Qo=U,t(25,Qo)}function t0(U){i.$$.not_equal(Ge.settings,U)&&(Ge.settings=U,t(23,Ge))}function i0(U){i.$$.not_equal(Ge.context,U)&&(Ge.context=U,t(23,Ge))}function n0(U){i.$$.not_equal(Ge.fullscreen,U)&&(Ge.fullscreen=U,t(23,Ge))}function o0(U){i.$$.not_equal(Ge.chromecast,U)&&(Ge.chromecast=U,t(23,Ge))}function l0(U){Ce[U?"unshift":"push"](()=>{Sl=U,t(47,Sl)})}function r0(U){Ce[U?"unshift":"push"](()=>{Ui=U,t(0,Ui)})}function s0(U){i.$$.not_equal(Ge.interactiveTimeIcon,U)&&(Ge.interactiveTimeIcon=U,t(23,Ge))}return i.$$set=U=>{"bottomHidden"in U&&t(1,Li=U.bottomHidden),"bottomNoSmooth"in U&&t(2,rn=U.bottomNoSmooth),"showControls"in U&&t(3,_i=U.showControls),"controlsElementRef"in U&&t(0,Ui=U.controlsElementRef),"isAds"in U&&t(4,Nt=U.isAds),"canRewindLive"in U&&t(5,Ht=U.canRewindLive),"logoClickable"in U&&t(6,wi=U.logoClickable),"logoHidden"in U&&t(130,Vi=U.logoHidden),"videoLogoUrl"in U&&t(7,Mi=U.videoLogoUrl),"showNextPrevButtons"in U&&t(131,si=U.showNextPrevButtons),"nextButtonActive"in U&&t(8,Ki=U.nextButtonActive),"prevButtonActive"in U&&t(9,ki=U.prevButtonActive),"isOneVideoPlaylist"in U&&t(132,yi=U.isOneVideoPlaylist),"supportLink"in U&&t(10,ji=U.supportLink),"customFullscreenSupported"in U&&t(133,Ci=U.customFullscreenSupported),"playNextVideo"in U&&t(11,Gi=U.playNextVideo),"playPrevVideo"in U&&t(12,qt=U.playPrevVideo),"repeatPlaylist"in U&&t(134,Yt=U.repeatPlaylist),"toggleFullscreen"in U&&t(13,Bi=U.toggleFullscreen),"returnFocus"in U&&t(14,Ni=U.returnFocus),"seekToInteractive"in U&&t(15,Wt=U.seekToInteractive),"toggleGraph"in U&&t(16,ai=U.toggleGraph),"playPrevChapter"in U&&t(17,ui=U.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&262144&&t(139,n=Bt.has(dt.EPISODE_BUTTON)),i.$$.dirty[5]&262144&&t(78,l=Bt.has(dt.GRAPH_BUTTON)),i.$$.dirty[5]&262144&&t(77,r=Bt.has(dt.SEEK_TO_INTERACTIVE_BUTTON)),i.$$.dirty[5]&262144&&t(76,o=Bt.has(dt.PLAY_BUTTON)),i.$$.dirty[5]&262144&&t(75,s=Bt.has(dt.REPLAY_BUTTON)),i.$$.dirty[5]&262144&&t(74,a=Bt.has(dt.PLAY_PREV_CHAPTER_BUTTON)),i.$$.dirty[0]&16|i.$$.dirty[5]&131200&&t(35,Rn=Nt?li===Xt.PLAYING:pi===$e.PlaybackState.PLAYING),i.$$.dirty[5]&65536&&t(18,oo=ct.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&32768&&t(36,Zo=lt&&!Nt||Ji),i.$$.dirty[0]&16|i.$$.dirty[5]&32768&&t(37,bt=!lt||Ji||Nt),i.$$.dirty[4]&1048576&&t(135,E=Ln(x,exports.GridTypes.M)),i.$$.dirty[0]&272|i.$$.dirty[4]&1048704&&t(38,le=si&&Ln(x,exports.GridTypes.M)&&!Nt&&Ki),i.$$.dirty[0]&528|i.$$.dirty[4]&1048704&&t(39,ge=si&&Ln(x,exports.GridTypes.M)&&!Nt&&ki),i.$$.dirty[0]&536870912|i.$$.dirty[4]&1048576|i.$$.dirty[5]&3072&&t(40,He=ii!==$e.ChromecastState.NOT_AVAILABLE&&!(Pt&&Hi===Un.DocumentPictureInPicture)&&Ln(x,exports.GridTypes.M)&&!Ji),i.$$.dirty[4]&1048576|i.$$.dirty[5]&16384&&t(41,Qe=Ii.length>0&&Ln(x,exports.GridTypes.M)),i.$$.dirty[5]&12288&&t(42,ft=hi||Tt),i.$$.dirty[4]&1048576&&t(43,Vt=Ln(x,exports.GridTypes.S)),i.$$.dirty[4]&64&&t(44,wt=!Vi),i.$$.dirty[4]&1049152|i.$$.dirty[5]&3072&&t(45,Ri=ci.features.fullscreen&&(Vi||Ln(x,exports.GridTypes.S))&&!(Pt&&Hi===Un.DocumentPictureInPicture)&&(Ji?Ci:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,Jn=(!oi||Nt)&&!(ci.features.interactiveHideTime&&Ji)),i.$$.dirty[4]&524288&&t(46,Ko=V.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&34816&&t(20,fo=!Nt&&!oi&&!!(Cn!=null&&Cn.length)&&E&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&512&&t(21,Pl=!Fi||Ai),i.$$.dirty[5]&128&&t(48,Mr=pi===$e.PlaybackState.PLAYING?Y("tooltip_pause"):Y("tooltip_play")),i.$$.dirty[1]&1&&t(49,Br=Y(zi?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off")),i.$$.dirty[5]&256&&t(50,Nr=Y(ni?"aria_label_context_menu_close":"aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&128&&Nf(Pl,pi),i.$$.dirty[0]&262144&&t(53,Or=Y(oo?"tooltip_subtitles_on":"tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(54,Dr=Y(Ei?"tooltip_fullscreen_on":"tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(55,zr=ii===$e.ChromecastState.CONNECTED?Y("tooltip_chromecast_on"):Y("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2145386496|i.$$.dirty[5]&127&&t(136,In={prevButton:Ot?Ot.right-Ot.left:0,replayButton:$t?$t.right-$t.left:0,playButton:di?di.right-di.left:0,nextButton:Ue?Ue.right-Ue.left:0,playPrevChapterButton:ut?ut.right-ut.left:0,seekToInteractiveButton:_t?_t.right-_t.left:0,interactiveGraphButton:gt?gt.right-gt.left:0,liveButton:At?At.right-At.left:0,time:Xe?Xe.right-Xe.left:0,episodes:Ke?Ke.right-Ke.left:0,vkLogo:Te?Te.right-Te.left:0,volume:ce?ce.right-ce.left:0,subtitles:Oe?Oe.right-Oe.left:0,settings:fe?fe.right-fe.left:0,context:Se?Se.right-Se.left:0,fullscreen:Le?Le.right-Le.left:0,chromecast:ie?ie.right-ie.left:0,additionalButtons:L.length?L.reduce(U=>[...U,40],[]):[]}),i.$$.dirty[4]&12288&&(!Vo||Vo<In.time)&&t(137,Vo=In.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&1060864){let U=0;fo&&(Ln(x,exports.GridTypes.XL)?U=In.time:U=D0);const Al=In.prevButton+In.playButton+In.nextButton+In.seekToInteractiveButton+In.interactiveGraphButton+In.liveButton+Vo+U;t(138,El=Jn&&Go>=Al)}i.$$.dirty[4]&1064960&&t(56,Fr=El&&Ln(x,exports.GridTypes.M)),i.$$.dirty[0]&8388616|i.$$.dirty[4]&786432&&Rf(En(),tn,Ge,_i),i.$$.dirty[0]&167772160&&yr(Qo,G,cn),i.$$.dirty[0]&150994944|i.$$.dirty[4]&131072&&Cr(Yo,G,X),i.$$.dirty[0]&67108864|i.$$.dirty[4]&65536&&_f(Xi,te,Xo)},t(52,Rr=ci.logoType===Eo.VK_VIDEO?Y("tooltip_vk_video_logo"):Y("tooltip_vk_logo")),Di(t(73,{prevButton:c,replayButton:f,playButton:d,nextButton:h,playPrevChapterButton:_,seekToInteractiveButton:g,interactiveGraphButton:w,liveButton:b,time:C,episodes:k,vkLogo:y,volume:M,subtitles:q,settings:I,context:z,fullscreen:ae,chromecast:se}=tn,c,ei(t(72,f)),ln(t(71,d)),$i(t(70,h)),Je(t(69,_)),Rt(t(68,g)),oe(t(67,w)),xt(t(66,b)),at(t(65,C)),xe(t(64,k)),Pe(t(63,y)),re(t(62,M)),Ie(t(61,q)),Fe(t(60,I)),$(t(59,z)),_e(t(58,ae)),ye(t(57,se)))),[Ui,Li,rn,_i,Nt,Ht,wi,Mi,Ki,ki,ji,Gi,qt,Bi,Ni,Wt,ai,ui,oo,Jn,fo,Pl,Go,Ge,Yo,Qo,Xo,G,L,ii,Ei,zi,Fi,oi,nn,Rn,Zo,bt,le,ge,He,Qe,ft,Vt,wt,Ri,Ko,Sl,Mr,Br,Nr,Tl,Rr,Or,Dr,zr,Fr,se,ae,z,I,q,M,y,k,C,b,w,g,_,h,d,f,c,a,s,o,r,l,vi,gi,Dt,Zi,bi,Gt,ci,Be,sn,an,un,en,Wi,Si,ee,Ut,Pi,ht,mn,kn,pn,yn,cn,Cn,Sn,Pn,hn,Tn,J,vt,vn,Xi,gn,fn,Yn,Qn,Xn,Nn,zn,Ji,An,Q,no,uo,Lo,co,Z,Et,bn,Of,Df,Vi,si,yi,Ci,Yt,E,In,Vo,El,n,te,X,A,V,x,ie,Le,Se,fe,Oe,ce,Te,Ke,Xe,At,gt,_t,ut,Ue,di,$t,Ot,pi,ni,Ai,Hi,Pt,Tt,hi,Ii,lt,ct,li,Bt,zf,Ff,Hf,Uf,jf,qf,Wf,Zf,Kf,Gf,Yf,Qf,Xf,Jf,xf,$f,e0,t0,i0,n0,o0,l0,r0,s0]}class Og extends ke{constructor(e){super(),we(this,e,Rg,Ng,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:130,videoLogoUrl:7,showNextPrevButtons:131,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:132,supportLink:10,customFullscreenSupported:133,playNextVideo:11,playPrevVideo:12,repeatPlaylist:134,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},fg,[-1,-1,-1,-1,-1,-1,-1,-1])}}function Dg(i){let e,t,n,l;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("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(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(r,o){P(r,e,o),p(e,t),p(t,n),p(t,l)},p:K,i:K,o:K,d(r){r&&S(e)}}}class zg extends ke{constructor(e){super(),we(this,e,null,Dg,be,{})}}function Fg(i){Ze(i,"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 Ja(i){let e;return{c(){e=T("span"),e.textContent=`${Y("mobile_unmute")}`,u(e,"class","text v-6gmlbk")},m(t,n){P(t,e,n)},p:K,d(t){t&&S(e)}}}function Hg(i){let e,t,n,l;var r=i[4];function o(a){return{}}r&&(t=Dn(r,o()));let s=i[1]&&Ja();return{c(){e=T("div"),t&&j(t.$$.fragment),n=O(),s&&s.c(),u(e,"class","container v-6gmlbk"),u(e,"aria-hidden","true"),B(e,"expanded",i[1])},m(a,c){P(a,e,c),t&&F(t,e,null),p(e,n),s&&s.m(e,null),l=!0},p(a,c){if(c&16&&r!==(r=a[4])){if(t){de();const f=t;v(f.$$.fragment,1,0,()=>{H(f,1)}),me()}r?(t=Dn(r,o()),j(t.$$.fragment),m(t.$$.fragment,1),F(t,e,n)):t=null}a[1]?s?s.p(a,c):(s=Ja(),s.c(),s.m(e,null)):s&&(s.d(1),s=null),(!l||c&2)&&B(e,"expanded",a[1])},i(a){l||(t&&m(t.$$.fragment,a),l=!0)},o(a){t&&v(t.$$.fragment,a),l=!1},d(a){a&&S(e),t&&H(t),s&&s.d()}}}function Ug(i){let e,t,n;function l(o){i[6](o)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[Hg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(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}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function jg(i,e,t){let{muted:n=!1}=e,{expanded:l=!1}=e,{click:r=ne.noop}=e,{ref:o=void 0}=e,s,a;function c(f){o=f,t(0,o)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,l=f.expanded),"click"in f&&t(2,r=f.click),"ref"in f&&t(0,o=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Y(n?"tooltip_volume":"tooltip_volume_muted")),i.$$.dirty&2&&t(4,a=l?yl:zg)},[o,l,r,s,a,n,c]}class kf extends ke{constructor(e){super(),we(this,e,jg,Ug,be,{muted:5,expanded:1,click:2,ref:0},Fg)}}function qg(i){let e,t,n,l;return{c(){e=N("svg"),t=N("path"),n=N("path"),l=N("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"),B(n,"hidden",!i[0]),u(l,"fill",i[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"),B(l,"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(r,o){P(r,e,o),p(e,t),p(e,n),p(e,l)},p(r,[o]){o&2&&u(t,"fill",r[1]),o&2&&u(n,"fill",r[1]),o&1&&B(n,"hidden",!r[0]),o&2&&u(l,"fill",r[1]),o&1&&B(l,"hidden",r[0])},i:K,o:K,d(r){r&&S(e)}}}function Wg(i,e,t){let n,{isActive:l=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,l=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=l?"#2688EB":"#fff")},[l,n]}class Zg extends ke{constructor(e){super(),we(this,e,Wg,qg,be,{isActive:0})}}function Kg(i){let e,t;return e=new Zg({props:{isActive:i[1]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Gg(i){let e,t,n;function l(o){i[3](o)}let r={testId:"btn-pip",ariaLabel:Y("menu_pip"),click:i[2],$$slots:{default:[Kg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new Ti({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,[s]){const a={};s&4&&(a.click=o[2]),s&18&&(a.$$scope={dirty:s,ctx:o}),!t&&s&1&&(t=!0,a.ref=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function Yg(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:l=!1}=e,{click:r=ne.noop}=e;function o(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"isPictureInPictureActive"in s&&t(1,l=s.isPictureInPictureActive),"click"in s&&t(2,r=s.click)},[n,l,r,o]}class Qg extends ke{constructor(e){super(),we(this,e,Yg,Gg,be,{ref:0,isPictureInPictureActive:1,click:2})}}const{Boolean:Xg}=vl;function Jg(i){Ze(i,"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 xa(i,e,t){const n=i.slice();return n[171]=e[t].iconUrl,n[172]=e[t].ariaLabel,n[173]=e[t].testId,n[174]=e[t].onClick,n[175]=e[t].tooltip,n}function $a(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k=(!i[52]||i[54])&&eu(i),y=Zt(i[57]),M=[];for(let V=0;V<y.length;V+=1)M[V]=tu(xa(i,y,V));const q=V=>v(M[V],1,1,()=>{M[V]=null});let I=i[37]&&iu(i),z=i[38]&&nu(i),ae=i[58]&&ou(i),se=i[40]&&lu(i),R=i[8]&&ru(i),te=i[35]&&su(i),X=i[34]&&au(i),G=i[8]&&uu(i),A=i[97]&&!i[29]&&cu(i);return{c(){e=T("div"),t=O(),n=T("div"),k&&k.c(),l=O(),r=T("div");for(let V=0;V<M.length;V+=1)M[V].c();o=O(),I&&I.c(),s=O(),z&&z.c(),a=O(),ae&&ae.c(),c=O(),se&&se.c(),f=O(),d=T("div"),R&&R.c(),h=O(),te&&te.c(),_=O(),X&&X.c(),g=O(),G&&G.c(),w=O(),A&&A.c(),b=mt(),u(e,"class","overlay-mobile v-1tcstu3"),B(e,"hidden",!i[43]),u(n,"class","wrapper-top-left v-1tcstu3"),B(n,"hidden",!i[3]),B(n,"fullscreen",i[53]),u(r,"class","wrapper-top-right v-1tcstu3"),B(r,"hidden",!i[3]&&!i[27]),B(r,"fullscreen",i[53]),u(d,"class","wrapper-middle v-1tcstu3"),B(d,"hidden",!i[3]||i[29])},m(V,x){P(V,e,x),P(V,t,x),P(V,n,x),k&&k.m(n,null),P(V,l,x),P(V,r,x);for(let L=0;L<M.length;L+=1)M[L]&&M[L].m(r,null);p(r,o),I&&I.m(r,null),p(r,s),z&&z.m(r,null),p(r,a),ae&&ae.m(r,null),p(r,c),se&&se.m(r,null),P(V,f,x),P(V,d,x),R&&R.m(d,null),p(d,h),te&&te.m(d,null),p(d,_),X&&X.m(d,null),p(d,g),G&&G.m(d,null),P(V,w,x),A&&A.m(V,x),P(V,b,x),C=!0},p(V,x){if((!C||x[1]&4096)&&B(e,"hidden",!V[43]),!V[52]||V[54]?k?(k.p(V,x),x[1]&10485760&&m(k,1)):(k=eu(V),k.c(),m(k,1),k.m(n,null)):k&&(de(),v(k,1,1,()=>{k=null}),me()),(!C||x[0]&8)&&B(n,"hidden",!V[3]),(!C||x[1]&4194304)&&B(n,"fullscreen",V[53]),x[1]&67108864){y=Zt(V[57]);let L;for(L=0;L<y.length;L+=1){const ie=xa(V,y,L);M[L]?(M[L].p(ie,x),m(M[L],1)):(M[L]=tu(ie),M[L].c(),m(M[L],1),M[L].m(r,o))}for(de(),L=y.length;L<M.length;L+=1)q(L);me()}V[37]?I?(I.p(V,x),x[1]&64&&m(I,1)):(I=iu(V),I.c(),m(I,1),I.m(r,s)):I&&(de(),v(I,1,1,()=>{I=null}),me()),V[38]?z?(z.p(V,x),x[1]&128&&m(z,1)):(z=nu(V),z.c(),m(z,1),z.m(r,a)):z&&(de(),v(z,1,1,()=>{z=null}),me()),V[58]?ae?(ae.p(V,x),x[1]&134217728&&m(ae,1)):(ae=ou(V),ae.c(),m(ae,1),ae.m(r,c)):ae&&(de(),v(ae,1,1,()=>{ae=null}),me()),V[40]?se?(se.p(V,x),x[1]&512&&m(se,1)):(se=lu(V),se.c(),m(se,1),se.m(r,null)):se&&(de(),v(se,1,1,()=>{se=null}),me()),(!C||x[0]&134217736)&&B(r,"hidden",!V[3]&&!V[27]),(!C||x[1]&4194304)&&B(r,"fullscreen",V[53]),V[8]?R?(R.p(V,x),x[0]&256&&m(R,1)):(R=ru(V),R.c(),m(R,1),R.m(d,h)):R&&(de(),v(R,1,1,()=>{R=null}),me()),V[35]?te?(te.p(V,x),x[1]&16&&m(te,1)):(te=su(V),te.c(),m(te,1),te.m(d,_)):te&&(de(),v(te,1,1,()=>{te=null}),me()),V[34]?X?(X.p(V,x),x[1]&8&&m(X,1)):(X=au(V),X.c(),m(X,1),X.m(d,g)):X&&(de(),v(X,1,1,()=>{X=null}),me()),V[8]?G?(G.p(V,x),x[0]&256&&m(G,1)):(G=uu(V),G.c(),m(G,1),G.m(d,null)):G&&(de(),v(G,1,1,()=>{G=null}),me()),(!C||x[0]&536870920)&&B(d,"hidden",!V[3]||V[29]),V[97]&&!V[29]?A?(A.p(V,x),x[0]&536870912&&m(A,1)):(A=cu(V),A.c(),m(A,1),A.m(b.parentNode,b)):A&&(de(),v(A,1,1,()=>{A=null}),me())},i(V){if(!C){m(k);for(let x=0;x<y.length;x+=1)m(M[x]);m(I),m(z),m(ae),m(se),m(R),m(te),m(X),m(G),m(A),C=!0}},o(V){v(k),M=M.filter(Xg);for(let x=0;x<M.length;x+=1)v(M[x]);v(I),v(z),v(ae),v(se),v(R),v(te),v(X),v(G),v(A),C=!1},d(V){V&&(S(e),S(t),S(n),S(l),S(r),S(f),S(d),S(w),S(b)),k&&k.d(),Bn(M,V),I&&I.d(),z&&z.d(),ae&&ae.d(),se&&se.d(),R&&R.d(),te&&te.d(),X&&X.d(),G&&G.d(),A&&A.d(V)}}}function eu(i){let e,t,n;function l(o){i[131](o)}let r={muted:i[55],expanded:i[52]&&!i[71]&&i[56],click:i[107]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new kf({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&16777216&&(a.muted=o[55]),s[1]&35651584&&(a.expanded=o[52]&&!o[71]&&o[56]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].volume,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function tu(i){var n;let e,t;return e=new mf({props:{iconUrl:i[171],ariaLabel:(n=i[172])!=null?n:i[175],testId:i[173],onClick:i[174]}}),{c(){j(e.$$.fragment)},m(l,r){F(e,l,r),t=!0},p(l,r){var s;const o={};r[1]&67108864&&(o.iconUrl=l[171]),r[1]&67108864&&(o.ariaLabel=(s=l[172])!=null?s:l[175]),r[1]&67108864&&(o.testId=l[173]),r[1]&67108864&&(o.onClick=l[174]),e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){v(e.$$.fragment,l),t=!1},d(l){H(e,l)}}}function iu(i){let e,t,n;function l(o){i[132](o)}let r={isMobile:!0,click:i[105],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new nf({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&268435456&&(a.state=o[28]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].chromecast,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function nu(i){let e,t,n;function l(o){i[133](o)}let r={click:i[106],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new Qg({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&67108864&&(a.isPictureInPictureActive=o[26]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].pip,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function ou(i){let e,t,n;function l(o){i[134](o)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Pr({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};!t&&s[0]&4194304&&(t=!0,a.ref=o[22],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function lu(i){let e,t,n;function l(o){i[135](o)}let r={click:i[65],logoClickable:i[6],videoLogoUrl:i[7]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new tf({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&64&&(a.logoClickable=o[6]),s[0]&128&&(a.videoLogoUrl=o[7]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].vkLogo,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function ru(i){let e,t,n;function l(o){i[136](o)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new Cl({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&8192&&(a.click=o[13]),s[0]&1024&&(a.disabled=!o[10]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].prevButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function su(i){let e,t,n;function l(o){i[137](o)}let r={disabled:i[50],click:i[64],isMobile:!0,isPlaying:i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Ar({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&524288&&(a.disabled=o[50]),s[1]&2&&(a.isPlaying=o[32]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].playButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function au(i){let e,t,n;function l(o){i[138](o)}let r={disabled:i[49],click:i[108],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ir({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&262144&&(a.disabled=o[49]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].replayButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function uu(i){let e,t,n;function l(o){i[139](o)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new Cl({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&4096&&(a.click=o[12]),s[0]&512&&(a.disabled=!o[9]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].nextButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function cu(i){let e,t,n,l,r=i[101]&&xg(i),o=i[99]&&$g(i),s=i[100]&&eb(i);return{c(){r&&r.c(),e=O(),o&&o.c(),t=O(),s&&s.c(),n=mt()},m(a,c){r&&r.m(a,c),P(a,e,c),o&&o.m(a,c),P(a,t,c),s&&s.m(a,c),P(a,n,c),l=!0},p(a,c){a[101]&&r.p(a,c),a[99]&&o.p(a,c),a[100]&&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&&(S(e),S(t),S(n)),r&&r.d(a),o&&o.d(a),s&&s.d(a)}}}function xg(i){let e,t,n,l,r,o;function s(c){i[140](c)}let a={hidden:!i[3],disabled:i[48],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(a.ref=i[20].playPrevChapterButton),t=new df({props:a}),Ce.push(()=>We(t,"ref",s)),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","wrapper-middle-left v-1tcstu3"),B(e,"fullscreen",i[53]),B(e,"hidden",!i[3])},m(c,f){P(c,e,f),F(t,e,null),l=!0,r||(o=ve(e,"click",i[109]),r=!0)},p(c,f){const d={};f[0]&8&&(d.hidden=!c[3]),f[1]&131072&&(d.disabled=c[48]),f[0]&262144&&(d.click=c[18]),!n&&f[0]&1048576&&(n=!0,d.ref=c[20].playPrevChapterButton,qe(()=>n=!1)),t.$set(d),(!l||f[1]&4194304)&&B(e,"fullscreen",c[53]),(!l||f[0]&8)&&B(e,"hidden",!c[3])},i(c){l||(m(t.$$.fragment,c),l=!0)},o(c){v(t.$$.fragment,c),l=!1},d(c){c&&S(e),H(t),r=!1,o()}}}function $g(i){let e,t,n,l;function r(s){i[141](s)}let o={hidden:!i[3]&&!i[59],disabled:i[51],click:i[17],graphIsOpened:i[59]};return i[20].interactiveGraphButton!==void 0&&(o.ref=i[20].interactiveGraphButton),t=new cf({props:o}),Ce.push(()=>We(t,"ref",r)),{c(){e=T("div"),j(t.$$.fragment),u(e,"class",g0(i[101]?"wrapper-middle-left-second":"wrapper-middle-left")+" v-1tcstu3"),B(e,"fullscreen",i[53]),B(e,"hidden",!i[3]&&!i[59])},m(s,a){P(s,e,a),F(t,e,null),l=!0},p(s,a){const c={};a[0]&8|a[1]&268435456&&(c.hidden=!s[3]&&!s[59]),a[1]&1048576&&(c.disabled=s[51]),a[0]&131072&&(c.click=s[17]),a[1]&268435456&&(c.graphIsOpened=s[59]),!n&&a[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,qe(()=>n=!1)),t.$set(c),(!l||a[1]&4194304)&&B(e,"fullscreen",s[53]),(!l||a[0]&8|a[1]&268435456)&&B(e,"hidden",!s[3]&&!s[59])},i(s){l||(m(t.$$.fragment,s),l=!0)},o(s){v(t.$$.fragment,s),l=!1},d(s){s&&S(e),H(t)}}}function eb(i){let e,t,n,l,r,o;function s(c){i[142](c)}let a={hidden:!i[3],disabled:i[47],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(a.ref=i[20].seekToInteractiveButton),t=new uf({props:a}),Ce.push(()=>We(t,"ref",s)),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","wrapper-middle-right v-1tcstu3"),B(e,"fullscreen",i[53]),B(e,"hidden",!i[3])},m(c,f){P(c,e,f),F(t,e,null),l=!0,r||(o=ve(e,"click",i[110]),r=!0)},p(c,f){const d={};f[0]&8&&(d.hidden=!c[3]),f[1]&65536&&(d.disabled=c[47]),f[0]&65536&&(d.click=c[16]),!n&&f[0]&1048576&&(n=!0,d.ref=c[20].seekToInteractiveButton,qe(()=>n=!1)),t.$set(d),(!l||f[1]&4194304)&&B(e,"fullscreen",c[53]),(!l||f[0]&8)&&B(e,"hidden",!c[3])},i(c){l||(m(t.$$.fragment,c),l=!0)},o(c){v(t.$$.fragment,c),l=!1},d(c){c&&S(e),H(t),r=!1,o()}}}function fu(i){let e,t,n,l,r,o=i[54]&&du(i),s=i[33]&&mu(i);return l=new rf({props:{position:i[60],duration:i[61]}}),{c(){o&&o.c(),e=O(),s&&s.c(),t=O(),n=T("div"),j(l.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile v-1tcstu3"),B(n,"fullscreen",i[53])},m(a,c){o&&o.m(a,c),P(a,e,c),s&&s.m(a,c),P(a,t,c),P(a,n,c),F(l,n,null),r=!0},p(a,c){a[54]?o?(o.p(a,c),c[1]&8388608&&m(o,1)):(o=du(a),o.c(),m(o,1),o.m(e.parentNode,e)):o&&(de(),v(o,1,1,()=>{o=null}),me()),a[33]?s?(s.p(a,c),c[1]&4&&m(s,1)):(s=mu(a),s.c(),m(s,1),s.m(t.parentNode,t)):s&&(de(),v(s,1,1,()=>{s=null}),me());const f={};c[1]&536870912&&(f.position=a[60]),c[1]&1073741824&&(f.duration=a[61]),l.$set(f),(!r||c[1]&4194304)&&B(n,"fullscreen",a[53])},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&&(S(e),S(t),S(n)),o&&o.d(a),s&&s.d(a),H(l)}}}function du(i){let e,t,n,l;function r(s){i[143](s)}let o={muted:i[55],expanded:!1,click:i[107]};return i[20].volume!==void 0&&(o.ref=i[20].volume),t=new kf({props:o}),Ce.push(()=>We(t,"ref",r)),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","wrapper-top-right v-1tcstu3"),B(e,"fullscreen",i[53])},m(s,a){P(s,e,a),F(t,e,null),l=!0},p(s,a){const c={};a[1]&16777216&&(c.muted=s[55]),!n&&a[0]&1048576&&(n=!0,c.ref=s[20].volume,qe(()=>n=!1)),t.$set(c),(!l||a[1]&4194304)&&B(e,"fullscreen",s[53])},i(s){l||(m(t.$$.fragment,s),l=!0)},o(s){v(t.$$.fragment,s),l=!1},d(s){s&&S(e),H(t)}}}function mu(i){let e,t,n,l;function r(s){i[144](s)}let o={disabled:i[50],click:i[64],isMobile:!0,isPlaying:!i[33]};return i[20].playButton!==void 0&&(o.ref=i[20].playButton),t=new Ar({props:o}),Ce.push(()=>We(t,"ref",r)),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","wrapper-middle v-1tcstu3")},m(s,a){P(s,e,a),F(t,e,null),l=!0},p(s,a){const c={};a[1]&524288&&(c.disabled=s[50]),a[1]&4&&(c.isPlaying=!s[33]),!n&&a[0]&1048576&&(n=!0,c.ref=s[20].playButton,qe(()=>n=!1)),t.$set(c)},i(s){l||(m(t.$$.fragment,s),l=!0)},o(s){v(t.$$.fragment,s),l=!1},d(s){s&&S(e),H(t)}}}function tb(i){let e,t,n;function l(o){i[145](o)}let r={disabled:i[49],$$slots:{default:[ib]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&262144&&(a.disabled=o[49]),s[1]&262144|s[5]&8388608&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].replayButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function ib(i){let e,t;return e=new Ir({props:{disabled:i[49],click:i[96]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[1]&262144&&(r.disabled=n[49]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function pu(i){let e,t,n;function l(o){i[146](o)}let r={$$slots:{default:[nb]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&524288|s[1]&32768|s[5]&8388608&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].liveButton,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function nb(i){let e,t;return e=new of({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[46]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&524288&&(r.isActiveLive=n[19]),l[1]&32768&&(r.ariaLabel=n[46]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function hu(i){let e,t,n;function l(o){i[147](o)}let r={showDuration:i[36],position:i[4]?i[60]:i[62],duration:i[4]?i[61]:i[63],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Qc({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&32&&(a.showDuration=o[36]),s[0]&16|s[1]&536870912|s[2]&1&&(a.position=o[4]?o[60]:o[62]),s[0]&16|s[1]&1073741824|s[2]&2&&(a.duration=o[4]?o[61]:o[63]),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].time,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function vu(i){let e,t,n,l;return n=new af({props:{position:i[62],duration:i[63],timeCodes:i[85]}}),{c(){e=T("div"),e.textContent="\xB7",t=O(),j(n.$$.fragment),u(e,"aria-hidden","true")},m(r,o){P(r,e,o),P(r,t,o),F(n,r,o),l=!0},p(r,o){const s={};o[2]&1&&(s.position=r[62]),o[2]&2&&(s.duration=r[63]),n.$set(s)},i(r){l||(m(n.$$.fragment,r),l=!0)},o(r){v(n.$$.fragment,r),l=!1},d(r){r&&(S(e),S(t)),H(n,r)}}}function ob(i){let e,t,n=i[44]&&vu(i);return{c(){n&&n.c(),e=mt()},m(l,r){n&&n.m(l,r),P(l,e,r),t=!0},p(l,r){l[44]?n?(n.p(l,r),r[1]&8192&&m(n,1)):(n=vu(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(de(),v(n,1,1,()=>{n=null}),me())},i(l){t||(m(n),t=!0)},o(l){v(n),t=!1},d(l){l&&S(e),n&&n.d(l)}}}function gu(i){let e,t,n;function l(o){i[150](o)}let r={$$slots:{default:[lb]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&4194304|s[5]&8388608&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].settings,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function lb(i){let e,t,n;function l(o){i[149](o)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Pr({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};!t&&s[0]&4194304&&(t=!0,a.ref=o[22],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function bu(i){let e,t,n;function l(o){i[151](o)}let r={$$slots:{default:[rb]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new jt({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[0]&16384|s[1]&4194304|s[5]&8388608&&(a.$$scope={dirty:s,ctx:o}),!t&&s[0]&1048576&&(t=!0,a.ref=o[20].fullscreen,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function rb(i){let e,t;return e=new $c({props:{click:i[14],isFullscreen:i[53]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&16384&&(r.click=n[14]),l[1]&4194304&&(r.isFullscreen=n[53]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function _u(i){let e,t,n,l;function r(s){i[154](s)}let o={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(o.ref=i[21]),t=new Yc({props:o}),Ce.push(()=>We(t,"ref",r)),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","settings-mobile v-1tcstu3")},m(s,a){P(s,e,a),F(t,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)),t.$set(c)},i(s){l||(m(t.$$.fragment,s),l=!0)},o(s){v(t.$$.fragment,s),l=!1},d(s){s&&S(e),H(t)}}}function wu(i){let e,t,n;function l(o){i[155](o)}let r={};return i[20].interactiveTimeIcon!==void 0&&(r.ref=i[20].interactiveTimeIcon),e=new wf({props:r}),Ce.push(()=>We(e,"ref",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};!t&&s[0]&1048576&&(t=!0,a.ref=o[20].interactiveTimeIcon,qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function sb(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y=!i[4]&&$a(i),M=i[4]&&i[30]!==Xt.INACTIVE&&fu(i),q=i[97]&&tb(i),I=!i[4]&&i[25]&&pu(i),z=i[42]&&hu(i);function ae(A){i[148](A)}let se={className:"w-max",disabled:!i[44],$$slots:{default:[ob]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(se.ref=i[20].episodes),c=new jt({props:se}),Ce.push(()=>We(c,"ref",ae));let R=i[39]&&gu(i),te=i[41]&&bu(i);g=new sf({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let X=i[23]&&_u(i),G=i[31]&&wu(i);return{c(){y&&y.c(),e=O(),M&&M.c(),t=O(),n=T("div"),l=T("div"),r=T("div"),q&&q.c(),o=O(),I&&I.c(),s=O(),z&&z.c(),a=O(),j(c.$$.fragment),d=O(),R&&R.c(),h=O(),te&&te.c(),_=O(),j(g.$$.fragment),w=O(),X&&X.c(),b=O(),G&&G.c(),C=mt(),u(r,"class","controls v-1tcstu3"),B(r,"mobile",!0),u(l,"class","controls-wrapper v-1tcstu3"),B(l,"fullscreen",i[53]),u(n,"class","wrapper-bottom v-1tcstu3"),B(n,"hidden",i[1]),B(n,"controls-hidden",!i[3]),B(n,"no-smooth",i[2]),B(n,"mobile",!0)},m(A,V){y&&y.m(A,V),P(A,e,V),M&&M.m(A,V),P(A,t,V),P(A,n,V),p(n,l),p(l,r),q&&q.m(r,null),p(r,o),I&&I.m(r,null),p(r,s),z&&z.m(r,null),p(r,a),F(c,r,null),p(r,d),R&&R.m(r,null),p(r,h),te&&te.m(r,null),i[152](r),p(l,_),F(g,l,null),i[153](n),P(A,w,V),X&&X.m(A,V),P(A,b,V),G&&G.m(A,V),P(A,C,V),k=!0},p(A,V){A[4]?y&&(de(),v(y,1,1,()=>{y=null}),me()):y?(y.p(A,V),V[0]&16&&m(y,1)):(y=$a(A),y.c(),m(y,1),y.m(e.parentNode,e)),A[4]&&A[30]!==Xt.INACTIVE?M?(M.p(A,V),V[0]&1073741840&&m(M,1)):(M=fu(A),M.c(),m(M,1),M.m(t.parentNode,t)):M&&(de(),v(M,1,1,()=>{M=null}),me()),A[97]&&q.p(A,V),!A[4]&&A[25]?I?(I.p(A,V),V[0]&33554448&&m(I,1)):(I=pu(A),I.c(),m(I,1),I.m(r,s)):I&&(de(),v(I,1,1,()=>{I=null}),me()),A[42]?z?(z.p(A,V),V[1]&2048&&m(z,1)):(z=hu(A),z.c(),m(z,1),z.m(r,a)):z&&(de(),v(z,1,1,()=>{z=null}),me());const x={};V[1]&8192&&(x.disabled=!A[44]),V[1]&8192|V[2]&3|V[5]&8388608&&(x.$$scope={dirty:V,ctx:A}),!f&&V[0]&1048576&&(f=!0,x.ref=A[20].episodes,qe(()=>f=!1)),c.$set(x),A[39]?R?(R.p(A,V),V[1]&256&&m(R,1)):(R=gu(A),R.c(),m(R,1),R.m(r,h)):R&&(de(),v(R,1,1,()=>{R=null}),me()),A[41]?te?(te.p(A,V),V[1]&1024&&m(te,1)):(te=bu(A),te.c(),m(te,1),te.m(r,null)):te&&(de(),v(te,1,1,()=>{te=null}),me());const L={};V[0]&16&&(L.isAds=A[4]),V[0]&32&&(L.canRewindLive=A[5]),V[0]&16777216&&(L.isRewindableLive=A[24]),g.$set(L),(!k||V[1]&4194304)&&B(l,"fullscreen",A[53]),(!k||V[0]&2)&&B(n,"hidden",A[1]),(!k||V[0]&8)&&B(n,"controls-hidden",!A[3]),(!k||V[0]&4)&&B(n,"no-smooth",A[2]),A[23]?X?(X.p(A,V),V[0]&8388608&&m(X,1)):(X=_u(A),X.c(),m(X,1),X.m(b.parentNode,b)):X&&(de(),v(X,1,1,()=>{X=null}),me()),A[31]?G?(G.p(A,V),V[1]&1&&m(G,1)):(G=wu(A),G.c(),m(G,1),G.m(C.parentNode,C)):G&&(de(),v(G,1,1,()=>{G=null}),me())},i(A){k||(m(y),m(M),m(q),m(I),m(z),m(c.$$.fragment,A),m(R),m(te),m(g.$$.fragment,A),m(X),m(G),k=!0)},o(A){v(y),v(M),v(q),v(I),v(z),v(c.$$.fragment,A),v(R),v(te),v(g.$$.fragment,A),v(X),v(G),k=!1},d(A){A&&(S(e),S(t),S(n),S(w),S(b),S(C)),y&&y.d(A),M&&M.d(A),q&&q.d(),I&&I.d(),z&&z.d(),H(c),R&&R.d(),te&&te.d(),i[152](null),H(g),i[153](null),X&&X.d(A),G&&G.d(A)}}}function ab(i,e,t){var Ji,An;let n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae,se,R,te,X,G,A,V,x,L,ie,Ee,ye,Le,Ve,_e,Se,{bottomHidden:W}=e,{bottomNoSmooth:$}=e,{showControls:fe}=e,{controlsElementRef:ue=void 0}=e,{isAds:Fe=!1}=e,{canRewindLive:Oe}=e,{logoClickable:Me}=e,{logoHidden:Ie}=e,{videoLogoUrl:ce}=e,{showNextPrevButtons:he}=e,{nextButtonActive:re}=e,{prevButtonActive:Te}=e,{isOneVideoPlaylist:pe=!1}=e,{supportLink:Pe}=e,{customFullscreenSupported:Ke=!0}=e,{playNextVideo:Re}=e,{playPrevVideo:xe}=e,{repeatPlaylist:Xe}=e,{toggleFullscreen:ot}=e,{returnFocus:at}=e,{seekToInteractive:At}=e,{toggleGraph:pt}=e,{playPrevChapter:xt}=e,{onDisabledPlayPrevChapterClick:gt}=e,{onDisabledSeekToInteractiveClick:Mt}=e;const oe=Ct(),_t=zo(),rt=wn(),Rt=oe.actions.internal.toggleMuted,ut=oe.actions.internal.togglePlay,It=oe.actions.internal.pause,Je=(Ji=oe.callbacks)==null?void 0:Ji.onAudioDoesNotExistHint,Ue=(An=oe.callbacks)==null?void 0:An.onAudioDisabledHint,St=oe.playerPhase;D(i,St,Q=>t(127,z=Q));const $i=oe.state.duration$;D(i,$i,Q=>t(63,Se=Q));const di=oe.state.positionWithScrubbing$;D(i,di,Q=>t(62,_e=Q));const mi=oe.state.playbackState$;D(i,mi,Q=>t(122,h=Q));const ln=oe.state.isAudioAvailable$;D(i,ln,Q=>t(52,_=Q));const $t=oe.state.isAudioDisabled,Kt=oe.state.isEnded$;D(i,Kt,Q=>t(128,se=Q));const ei=oe.state.isLive$;D(i,ei,Q=>t(25,k=Q));const Ot=oe.state.muted$;D(i,Ot,Q=>t(55,x=Q));const ti=oe.state.isActiveLive$;D(i,ti,Q=>t(125,b=Q));const Di=oe.state.isRewindableLive$;D(i,Di,Q=>t(24,C=Q));const ii=oe.ui.scrubbingInProgress;D(i,ii,Q=>t(29,ae=Q));const Ei=oe.ui.mobileNotReportControlHidden$;D(i,Ei,Q=>t(27,q=Q));const pi=oe.ui.isPictureInPictureActive$;D(i,pi,Q=>t(26,M=Q));const ni=oe.ui.pictureInPictureType$;D(i,ni,Q=>t(126,y=Q));const zi=oe.ui.mobileUnmuteButtonExpanded;D(i,zi,Q=>t(56,L=Q));const Ai=oe.ui.mobileUnmuteButtonVisible;D(i,Ai,Q=>t(54,V=Q));const Fi=oe.ui.settingsMenuVisible;D(i,Fi,Q=>t(23,d=Q));const oi=oe.ui.settingsMenuOpenedByKeyboard;D(i,oi,Q=>t(121,f=Q));const Hi=oe.ui.controls,Pt=oe.actions.internal.getVideoEpisodes(),Tt=oe.webApi.pictureInPictureApi,hi=oe.state.chromecastState$;D(i,hi,Q=>t(28,I=Q));const Ii=oe.state.crashed$;D(i,Ii,Q=>t(58,Ee=Q));const lt=Hi.disabledControls$;D(i,lt,Q=>t(129,te=Q));const ct=oe.ui.startedByKeyboard$;D(i,ct,Q=>t(120,c=Q));const li=oe.ads.duration;D(i,li,Q=>t(61,Ve=Q));const Bt=oe.ads.position;D(i,Bt,Q=>t(60,Le=Q));const ri=oe.ads.playbackState;D(i,ri,Q=>t(30,R=Q));const vi=oe.ui.isFullscreen;D(i,vi,Q=>t(53,A=Q));const gi=oe.ui.playerSize;D(i,gi,Q=>t(124,w=Q));const Dt=oe.ui.additionalButtons$;D(i,Dt,Q=>t(57,ie=Q));const Zi=oe.actions.internal.getVideoElement,bi=oe.actions.internal.replayInteractive,Gt=oe.state.isInteractive,Li=oe.state.isInteractiveTime$;D(i,Li,Q=>t(123,g=Q));const rn=oe.state.showInteractiveGraph,_i=oe.state.showSeekToInteractive,Ui=oe.state.showPlayPrevChapter,Nt=oe.state.interactiveEpisodes$;D(i,Nt,Q=>t(158,G=Q));const Ht=oe.state.graphIsOpened$;D(i,Ht,Q=>t(59,ye=Q));const wi=_t.seekToInteractiveDisabledTooltip$;D(i,wi,Q=>t(130,X=Q));let Vi;Vi=!!(Gt&&G.length);let Mi,si,Ki,ki,yi,ji,Ci,Gi,qt,Yt,Bi,Ni,Wt,ai,ui,je,Yi,ci,qi;const Be={},sn=ne.throttleFn(bf,M1,{leading:!1}),an=()=>oe.actions.internal.toggleChromecast();function Qi(){$t?Ue==null||Ue():_?Rt():Je==null||Je()}function Lt(){return xi(this,null,function*(){Tt!=null&&Tt.isActive()?yield Tt==null?void 0:Tt.remove():yield Tt==null?void 0:Tt.request()})}function un(){!$t&&_&&Ai.set(!1),Qi()}const en=pe?ut:Xe;let Wi="";const Si=(Q,no)=>{if(!Q){t(46,Wi=Y("tooltip_live"));return}no===$e.PlaybackState.PAUSED&&t(46,Wi=Y("tooltip_play"))};let ee,it;const Ut=()=>{a&>(Mi)},Pi=()=>{r&&Mt(si)};function ht(Q){i.$$.not_equal(Be.volume,Q)&&(Be.volume=Q,t(20,Be))}function mn(Q){i.$$.not_equal(Be.chromecast,Q)&&(Be.chromecast=Q,t(20,Be))}function kn(Q){i.$$.not_equal(Be.pip,Q)&&(Be.pip=Q,t(20,Be))}function pn(Q){it=Q,t(22,it)}function yn(Q){i.$$.not_equal(Be.vkLogo,Q)&&(Be.vkLogo=Q,t(20,Be))}function cn(Q){i.$$.not_equal(Be.prevButton,Q)&&(Be.prevButton=Q,t(20,Be))}function tn(Q){i.$$.not_equal(Be.playButton,Q)&&(Be.playButton=Q,t(20,Be))}function Cn(Q){i.$$.not_equal(Be.replayButton,Q)&&(Be.replayButton=Q,t(20,Be))}function Sn(Q){i.$$.not_equal(Be.nextButton,Q)&&(Be.nextButton=Q,t(20,Be))}function Pn(Q){i.$$.not_equal(Be.playPrevChapterButton,Q)&&(Be.playPrevChapterButton=Q,t(20,Be))}function hn(Q){i.$$.not_equal(Be.interactiveGraphButton,Q)&&(Be.interactiveGraphButton=Q,t(20,Be))}function Tn(Q){i.$$.not_equal(Be.seekToInteractiveButton,Q)&&(Be.seekToInteractiveButton=Q,t(20,Be))}function J(Q){i.$$.not_equal(Be.volume,Q)&&(Be.volume=Q,t(20,Be))}function vt(Q){i.$$.not_equal(Be.playButton,Q)&&(Be.playButton=Q,t(20,Be))}function vn(Q){i.$$.not_equal(Be.replayButton,Q)&&(Be.replayButton=Q,t(20,Be))}function Xi(Q){i.$$.not_equal(Be.liveButton,Q)&&(Be.liveButton=Q,t(20,Be))}function gn(Q){i.$$.not_equal(Be.time,Q)&&(Be.time=Q,t(20,Be))}function fn(Q){i.$$.not_equal(Be.episodes,Q)&&(Be.episodes=Q,t(20,Be))}function Yn(Q){it=Q,t(22,it)}function Qn(Q){i.$$.not_equal(Be.settings,Q)&&(Be.settings=Q,t(20,Be))}function Xn(Q){i.$$.not_equal(Be.fullscreen,Q)&&(Be.fullscreen=Q,t(20,Be))}function Nn(Q){Ce[Q?"unshift":"push"](()=>{ci=Q,t(45,ci)})}function zn(Q){Ce[Q?"unshift":"push"](()=>{ue=Q,t(0,ue)})}function En(Q){ee=Q,t(21,ee)}function io(Q){i.$$.not_equal(Be.interactiveTimeIcon,Q)&&(Be.interactiveTimeIcon=Q,t(20,Be))}return i.$$set=Q=>{"bottomHidden"in Q&&t(1,W=Q.bottomHidden),"bottomNoSmooth"in Q&&t(2,$=Q.bottomNoSmooth),"showControls"in Q&&t(3,fe=Q.showControls),"controlsElementRef"in Q&&t(0,ue=Q.controlsElementRef),"isAds"in Q&&t(4,Fe=Q.isAds),"canRewindLive"in Q&&t(5,Oe=Q.canRewindLive),"logoClickable"in Q&&t(6,Me=Q.logoClickable),"logoHidden"in Q&&t(111,Ie=Q.logoHidden),"videoLogoUrl"in Q&&t(7,ce=Q.videoLogoUrl),"showNextPrevButtons"in Q&&t(8,he=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(9,re=Q.nextButtonActive),"prevButtonActive"in Q&&t(10,Te=Q.prevButtonActive),"isOneVideoPlaylist"in Q&&t(112,pe=Q.isOneVideoPlaylist),"supportLink"in Q&&t(11,Pe=Q.supportLink),"customFullscreenSupported"in Q&&t(113,Ke=Q.customFullscreenSupported),"playNextVideo"in Q&&t(12,Re=Q.playNextVideo),"playPrevVideo"in Q&&t(13,xe=Q.playPrevVideo),"repeatPlaylist"in Q&&t(114,Xe=Q.repeatPlaylist),"toggleFullscreen"in Q&&t(14,ot=Q.toggleFullscreen),"returnFocus"in Q&&t(15,at=Q.returnFocus),"seekToInteractive"in Q&&t(16,At=Q.seekToInteractive),"toggleGraph"in Q&&t(17,pt=Q.toggleGraph),"playPrevChapter"in Q&&t(18,xt=Q.playPrevChapter),"onDisabledPlayPrevChapterClick"in Q&&t(115,gt=Q.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in Q&&t(116,Mt=Q.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&64&&(si=Y(X)),i.$$.dirty[4]&32&&t(119,n=te.has(dt.EPISODE_BUTTON)),i.$$.dirty[4]&32&&t(51,l=te.has(dt.GRAPH_BUTTON)),i.$$.dirty[4]&32&&t(47,r=te.has(dt.SEEK_TO_INTERACTIVE_BUTTON)),i.$$.dirty[4]&32&&t(50,o=te.has(dt.PLAY_BUTTON)),i.$$.dirty[4]&32&&t(49,s=te.has(dt.REPLAY_BUTTON)),i.$$.dirty[4]&32&&t(48,a=te.has(dt.PLAY_PREV_CHAPTER_BUTTON)),i.$$.dirty[3]&536870912&&t(32,Ki=h===$e.PlaybackState.PLAYING),i.$$.dirty[0]&1073741824&&t(33,ki=R===Xt.PAUSED),i.$$.dirty[0]&16|i.$$.dirty[4]&16&&t(34,yi=se&&!Fe&&!Gt),i.$$.dirty[0]&16|i.$$.dirty[4]&16&&t(35,ji=!se||Fe),i.$$.dirty[4]&1&&t(117,Ci=w.width>300),i.$$.dirty[4]&1&&t(36,Gi=w.width>400),i.$$.dirty[0]&536870912&&t(118,qt=ae),i.$$.dirty[0]&469762048|i.$$.dirty[4]&4&&t(37,Yt=I!==$e.ChromecastState.NOT_AVAILABLE&&!(M&&y===Un.DocumentPictureInPicture)&&!q&&!Gt),i.$$.dirty[0]&402653184|i.$$.dirty[3]&33554432|i.$$.dirty[4]&12){const Q=z===De.WaitingLive;t(38,Bi=!!Tt&&I!==$e.ChromecastState.CONNECTED&&!q&&(y===Un.DocumentPictureInPicture&&Q||!Q)&&!qt&&!Gt)}i.$$.dirty[3]&33554432&&t(39,Ni=!qt),i.$$.dirty[3]&262144|i.$$.dirty[4]&1&&t(40,Wt=!Ie&&w.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&34603008|i.$$.dirty[4]&4&&t(41,ai=rt.features.fullscreen&&!(M&&y===Un.DocumentPictureInPicture)&&(Gt?Ke:!0)&&!qt),i.$$.dirty[0]&33554448|i.$$.dirty[3]&33554432|i.$$.dirty[4]&1&&t(42,ui=(!k||Fe)&&w.width>260&&!qt&&!(rt.features.interactiveHideTime&&Gt)),i.$$.dirty[0]&8388616&&t(43,je=d||fe),i.$$.dirty[0]&33554448|i.$$.dirty[3]&117440512&&t(44,Yi=!Fe&&!k&&!!(Pt!=null&&Pt.length)&&Ci&&!n&&!qt),i.$$.dirty[0]&16777216|i.$$.dirty[4]&2&&t(19,qi=!C||b),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&sn(Zi(),Hi,Be,fe),i.$$.dirty[0]&524288|i.$$.dirty[3]&536870912&&Si(qi,h),i.$$.dirty[0]&12582912&&yr(it,d,oi),i.$$.dirty[0]&10485760|i.$$.dirty[3]&268435456&&Cr(ee,d,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&134217728&&_f(ct,c,Be.playButton)},Mi=Y(oe.state.playPrevChapterDisabledTooltip),[ue,W,$,fe,Fe,Oe,Me,ce,he,re,Te,Pe,Re,xe,ot,at,At,pt,xt,qi,Be,ee,it,d,C,k,M,q,I,ae,R,Vi,Ki,ki,yi,ji,Gi,Yt,Bi,Ni,Wt,ai,ui,je,Yi,ci,Wi,r,a,s,o,l,_,A,V,x,L,ie,Ee,ye,Le,Ve,_e,Se,ut,It,St,$i,di,mi,ln,$t,Kt,ei,Ot,ti,Di,ii,Ei,pi,ni,zi,Ai,Fi,oi,Pt,hi,Ii,lt,ct,li,Bt,ri,vi,gi,Dt,bi,Gt,Li,rn,_i,Ui,Nt,Ht,wi,an,Lt,un,en,Ut,Pi,Ie,pe,Ke,Xe,gt,Mt,Ci,qt,n,c,f,h,g,w,b,y,z,se,te,X,ht,mn,kn,pn,yn,cn,tn,Cn,Sn,Pn,hn,Tn,J,vt,vn,Xi,gn,fn,Yn,Qn,Xn,Nn,zn,En,io]}class ub extends ke{constructor(e){super(),we(this,e,ab,sb,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:111,videoLogoUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:112,supportLink:11,customFullscreenSupported:113,playNextVideo:12,playPrevVideo:13,repeatPlaylist:114,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:115,onDisabledSeekToInteractiveClick:116},Jg,[-1,-1,-1,-1,-1,-1])}}function cb(i){let e,t,n;function l(o){i[28](o)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],videoLogoUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new Og({props:r}),Ce.push(()=>We(e,"controlsElementRef",l)),{c(){j(e.$$.fragment)},m(o,s){F(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.videoLogoUrl=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]),!t&&s&1&&(t=!0,a.controlsElementRef=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function fb(i){let e,t,n;function l(o){i[27](o)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],videoLogoUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new ub({props:r}),Ce.push(()=>We(e,"controlsElementRef",l)),{c(){j(e.$$.fragment)},m(o,s){F(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.videoLogoUrl=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]),!t&&s&1&&(t=!0,a.controlsElementRef=o[0],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function db(i){let e,t,n,l;const r=[fb,cb],o=[];function s(a,c){return a[25]?0:1}return e=s(i),t=o[e]=r[e](i),{c(){t.c(),n=mt()},m(a,c){o[e].m(a,c),P(a,n,c),l=!0},p(a,[c]){let f=e;e=s(a),e===f?o[e].p(a,c):(de(),v(o[f],1,1,()=>{o[f]=null}),me(),t=o[e],t?t.p(a,c):(t=o[e]=r[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){l||(m(t),l=!0)},o(a){v(t),l=!1},d(a){a&&S(n),o[e].d(a)}}}function mb(i,e,t){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,{videoLogoUrl:h}=e,{showNextPrevButtons:_}=e,{nextButtonActive:g}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:b=!1}=e,{supportLink:C}=e,{customFullscreenSupported:k=!0}=e,{playNextVideo:y}=e,{playPrevVideo:M}=e,{repeatPlaylist:q}=e,{toggleFullscreen:I}=e,{returnFocus:z=ne.noop}=e,{seekToInteractive:ae}=e,{toggleGraph:se}=e,{playPrevChapter:R}=e,{onDisabledPlayPrevChapterClick:te=ne.noop}=e,{onDisabledSeekToInteractiveClick:X=ne.noop}=e;const A=Ct().ui.isMobile;D(i,A,L=>t(25,n=L));function V(L){s=L,t(0,s)}function x(L){s=L,t(0,s)}return i.$$set=L=>{"bottomHidden"in L&&t(1,l=L.bottomHidden),"bottomNoSmooth"in L&&t(2,r=L.bottomNoSmooth),"showControls"in L&&t(3,o=L.showControls),"controlsElementRef"in L&&t(0,s=L.controlsElementRef),"isAds"in L&&t(4,a=L.isAds),"canRewindLive"in L&&t(5,c=L.canRewindLive),"logoClickable"in L&&t(6,f=L.logoClickable),"logoHidden"in L&&t(7,d=L.logoHidden),"videoLogoUrl"in L&&t(8,h=L.videoLogoUrl),"showNextPrevButtons"in L&&t(9,_=L.showNextPrevButtons),"nextButtonActive"in L&&t(10,g=L.nextButtonActive),"prevButtonActive"in L&&t(11,w=L.prevButtonActive),"isOneVideoPlaylist"in L&&t(12,b=L.isOneVideoPlaylist),"supportLink"in L&&t(13,C=L.supportLink),"customFullscreenSupported"in L&&t(14,k=L.customFullscreenSupported),"playNextVideo"in L&&t(15,y=L.playNextVideo),"playPrevVideo"in L&&t(16,M=L.playPrevVideo),"repeatPlaylist"in L&&t(17,q=L.repeatPlaylist),"toggleFullscreen"in L&&t(18,I=L.toggleFullscreen),"returnFocus"in L&&t(19,z=L.returnFocus),"seekToInteractive"in L&&t(20,ae=L.seekToInteractive),"toggleGraph"in L&&t(21,se=L.toggleGraph),"playPrevChapter"in L&&t(22,R=L.playPrevChapter),"onDisabledPlayPrevChapterClick"in L&&t(23,te=L.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in L&&t(24,X=L.onDisabledSeekToInteractiveClick)},[s,l,r,o,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae,se,R,te,X,n,A,V,x]}class yf extends ke{constructor(e){super(),we(this,e,mb,db,be,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,videoLogoUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}}function pb(i){Ze(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function hb(i){let e,t,n,l,r,o,s,a,c,f,d,h,_;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("defs"),o=N("filter"),s=N("feFlood"),a=N("feColorMatrix"),c=N("feOffset"),f=N("feGaussianBlur"),d=N("feColorMatrix"),h=N("feBlend"),_=N("feBlend"),u(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98l-7.659 4.85Z"),u(n,"fill","#fff"),u(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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(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(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_100684"),u(_,"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"),B(e,"reversed",i[0])},m(g,w){P(g,e,w),p(e,t),p(t,n),p(t,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,_)},p(g,[w]){w&1&&B(e,"reversed",g[0])},i:K,o:K,d(g){g&&S(e)}}}function vb(i,e,t){let{reversed:n=!1}=e;return i.$$set=l=>{"reversed"in l&&t(0,n=l.reversed)},[n]}class gb extends ke{constructor(e){super(),we(this,e,vb,hb,be,{reversed:0},pb)}}function bb(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("defs"),o=N("clipPath"),s=N("path"),a=N("filter"),c=N("feFlood"),f=N("feColorMatrix"),d=N("feOffset"),h=N("feGaussianBlur"),_=N("feColorMatrix"),g=N("feBlend"),w=N("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3h-11ZM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22Zm18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3h-4ZM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22Z"),u(n,"fill","#fff"),u(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(t,"filter","url(#b)"),u(t,"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(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"result","effect1_dropShadow_2260_104204"),u(w,"in","SourceGraphic"),u(w,"in2","effect1_dropShadow_2260_104204"),u(w,"result","shape"),u(a,"id","b"),u(a,"x","-1.5"),u(a,"y","1.5"),u(a,"width","51"),u(a,"height","45"),u(a,"filterUnits","userSpaceOnUse"),u(a,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(b,C){P(b,e,C),p(e,t),p(t,n),p(t,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,_),p(a,g),p(a,w)},d(b){b&&S(e)}}}function _b(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("path"),o=N("defs"),s=N("clipPath"),a=N("path"),c=N("filter"),f=N("feFlood"),d=N("feColorMatrix"),h=N("feOffset"),_=N("feGaussianBlur"),g=N("feColorMatrix"),w=N("feBlend"),b=N("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.499 10.499 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3h-11ZM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22Z"),u(n,"fill","#fff"),u(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(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(a,"fill","#fff"),u(a,"d","M0 0h48v48H0z"),u(s,"id","a"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(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(_,"stdDeviation","2.5"),u(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(w,"in2","BackgroundImageFix"),u(w,"result","effect1_dropShadow_2260_104293"),u(b,"in","SourceGraphic"),u(b,"in2","effect1_dropShadow_2260_104293"),u(b,"result","shape"),u(c,"id","b"),u(c,"x","-1.5"),u(c,"y","-1.5"),u(c,"width","51"),u(c,"height","51"),u(c,"filterUnits","userSpaceOnUse"),u(c,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(C,k){P(C,e,k),p(e,t),p(t,n),p(t,l),p(t,r),p(e,o),p(o,s),p(s,a),p(o,c),p(c,f),p(c,d),p(c,h),p(c,_),p(c,g),p(c,w),p(c,b)},d(C){C&&S(e)}}}function wb(i){let e;function t(r,o){return r[0]?_b:bb}let n=t(i),l=n(i);return{c(){l.c(),e=mt()},m(r,o){l.m(r,o),P(r,e,o)},p(r,[o]){n!==(n=t(r))&&(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},i:K,o:K,d(r){r&&S(e),l.d(r)}}}function kb(i,e,t){let{isOff:n=!1}=e;return i.$$set=l=>{"isOff"in l&&t(0,n=l.isOff)},[n]}class Cf extends ke{constructor(e){super(),we(this,e,kb,wb,be,{isOff:0})}}function yb(i){Ze(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function Cb(i){let e,t,n,l,r,o,s,a,c,f,d,h,_;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("defs"),o=N("filter"),s=N("feFlood"),a=N("feColorMatrix"),c=N("feOffset"),f=N("feGaussianBlur"),d=N("feColorMatrix"),h=N("feBlend"),_=N("feBlend"),u(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044l-12.21 6.916Z"),u(n,"fill","#fff"),u(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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(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(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_106627"),u(_,"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"),B(e,"reversed",i[0])},m(g,w){P(g,e,w),p(e,t),p(t,n),p(t,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,_)},p(g,[w]){w&1&&B(e,"reversed",g[0])},i:K,o:K,d(g){g&&S(e)}}}function Sb(i,e,t){let{reversed:n=!1}=e;return i.$$set=l=>{"reversed"in l&&t(0,n=l.reversed)},[n]}class Pb extends ke{constructor(e){super(),we(this,e,Sb,Cb,be,{reversed:0},yb)}}function Tb(i){Ze(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function Eb(i){let e,t,n,l,r,o,s,a,c,f,d,h,_;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),r=N("defs"),o=N("filter"),s=N("feFlood"),a=N("feColorMatrix"),c=N("feOffset"),f=N("feGaussianBlur"),d=N("feColorMatrix"),h=N("feBlend"),_=N("feBlend"),u(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.908 2.908 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.909 2.909 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0v8.317Z"),u(n,"fill","#fff"),u(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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(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(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2340_106922"),u(_,"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"),B(e,"reversed",i[0])},m(g,w){P(g,e,w),p(e,t),p(t,n),p(t,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,_)},p(g,[w]){w&1&&B(e,"reversed",g[0])},i:K,o:K,d(g){g&&S(e)}}}function Ab(i,e,t){let{reversed:n=!1}=e;return i.$$set=l=>{"reversed"in l&&t(0,n=l.reversed)},[n]}class Ib extends ke{constructor(e){super(),we(this,e,Ab,Eb,be,{reversed:0},Tb)}}function Lb(i){Ze(i,"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 ku(i){let e,t=[Ye.BACKWARD_SEEK,Ye.FORWARD_SEEK].includes(i[4]),n,l,r,o,s,a,c=[Ye.RATE_DOWN,Ye.RATE_UP].includes(i[4]),f,d=[Ye.EPISODE_PREV,Ye.EPISODE_NEXT].includes(i[4]),h,_,g,w,b,C=t&&yu(i),k=i[4]===Ye.PAUSE&&Cu(),y=i[4]===Ye.PLAY&&Su(),M=i[4]===Ye.REPLAY&&Pu(),q=i[4]===Ye.SUBTITLES_OFF&&Tu(),I=i[4]===Ye.SUBTITLES_ON&&Eu(),z=c&&Au(i),ae=d&&Iu(i),se=i[4]===Ye.MUTE&&Lu(),R=i[4]===Ye.VOLUME&&Vu(),te=i[5]&&Mu(i);return{c(){e=T("div"),C&&C.c(),n=O(),k&&k.c(),l=O(),y&&y.c(),r=O(),M&&M.c(),o=O(),q&&q.c(),s=O(),I&&I.c(),a=O(),z&&z.c(),f=O(),ae&&ae.c(),h=O(),se&&se.c(),_=O(),R&&R.c(),g=O(),te&&te.c(),w=mt(),u(e,"class","v-4ftgwp")},m(X,G){P(X,e,G),C&&C.m(e,null),p(e,n),k&&k.m(e,null),p(e,l),y&&y.m(e,null),p(e,r),M&&M.m(e,null),p(e,o),q&&q.m(e,null),p(e,s),I&&I.m(e,null),p(e,a),z&&z.m(e,null),p(e,f),ae&&ae.m(e,null),p(e,h),se&&se.m(e,null),p(e,_),R&&R.m(e,null),P(X,g,G),te&&te.m(X,G),P(X,w,G),b=!0},p(X,G){G&16&&(t=[Ye.BACKWARD_SEEK,Ye.FORWARD_SEEK].includes(X[4])),t?C?(C.p(X,G),G&16&&m(C,1)):(C=yu(X),C.c(),m(C,1),C.m(e,n)):C&&(de(),v(C,1,1,()=>{C=null}),me()),X[4]===Ye.PAUSE?k?G&16&&m(k,1):(k=Cu(),k.c(),m(k,1),k.m(e,l)):k&&(de(),v(k,1,1,()=>{k=null}),me()),X[4]===Ye.PLAY?y?G&16&&m(y,1):(y=Su(),y.c(),m(y,1),y.m(e,r)):y&&(de(),v(y,1,1,()=>{y=null}),me()),X[4]===Ye.REPLAY?M?G&16&&m(M,1):(M=Pu(),M.c(),m(M,1),M.m(e,o)):M&&(de(),v(M,1,1,()=>{M=null}),me()),X[4]===Ye.SUBTITLES_OFF?q?G&16&&m(q,1):(q=Tu(),q.c(),m(q,1),q.m(e,s)):q&&(de(),v(q,1,1,()=>{q=null}),me()),X[4]===Ye.SUBTITLES_ON?I?G&16&&m(I,1):(I=Eu(),I.c(),m(I,1),I.m(e,a)):I&&(de(),v(I,1,1,()=>{I=null}),me()),G&16&&(c=[Ye.RATE_DOWN,Ye.RATE_UP].includes(X[4])),c?z?(z.p(X,G),G&16&&m(z,1)):(z=Au(X),z.c(),m(z,1),z.m(e,f)):z&&(de(),v(z,1,1,()=>{z=null}),me()),G&16&&(d=[Ye.EPISODE_PREV,Ye.EPISODE_NEXT].includes(X[4])),d?ae?(ae.p(X,G),G&16&&m(ae,1)):(ae=Iu(X),ae.c(),m(ae,1),ae.m(e,h)):ae&&(de(),v(ae,1,1,()=>{ae=null}),me()),X[4]===Ye.MUTE?se?G&16&&m(se,1):(se=Lu(),se.c(),m(se,1),se.m(e,_)):se&&(de(),v(se,1,1,()=>{se=null}),me()),X[4]===Ye.VOLUME?R?G&16&&m(R,1):(R=Vu(),R.c(),m(R,1),R.m(e,null)):R&&(de(),v(R,1,1,()=>{R=null}),me()),X[5]?te?te.p(X,G):(te=Mu(X),te.c(),te.m(w.parentNode,w)):te&&(te.d(1),te=null)},i(X){b||(m(C),m(k),m(y),m(M),m(q),m(I),m(z),m(ae),m(se),m(R),b=!0)},o(X){v(C),v(k),v(y),v(M),v(q),v(I),v(z),v(ae),v(se),v(R),b=!1},d(X){X&&(S(e),S(g),S(w)),C&&C.d(),k&&k.d(),y&&y.d(),M&&M.d(),q&&q.d(),I&&I.d(),z&&z.d(),ae&&ae.d(),se&&se.d(),R&&R.d(),te&&te.d(X)}}}function yu(i){let e,t;return e=new gb({props:{reversed:i[4]===Ye.FORWARD_SEEK}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&16&&(r.reversed=n[4]===Ye.FORWARD_SEEK),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Cu(i){let e,t;return e=new ef({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Su(i){let e,t;return e=new Er({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Pu(i){let e,t;return e=new ff({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Tu(i){let e,t;return e=new Cf({props:{isOff:!0}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Eu(i){let e,t;return e=new Cf({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Au(i){let e,t;return e=new Pb({props:{reversed:i[4]===Ye.RATE_UP}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&16&&(r.reversed=n[4]===Ye.RATE_UP),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Iu(i){let e,t;return e=new Ib({props:{reversed:i[4]===Ye.EPISODE_NEXT}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&16&&(r.reversed=n[4]===Ye.EPISODE_NEXT),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Lu(i){let e,t;return e=new yl({props:{volume:0}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Vu(i){let e,t;return e=new yl({props:{volume:1}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Mu(i){let e,t;return{c(){e=T("span"),t=ze(i[5]),u(e,"class","hot-key-helpers-text v-4ftgwp")},m(n,l){P(n,e,l),p(e,t)},p(n,l){l&32&&et(t,n[5])},d(n){n&&S(e)}}}function Vb(i){let e,t,n=!i[1]&&i[4]&&ku(i);return{c(){e=T("div"),n&&n.c(),u(e,"class","hot-key-helpers-container v-4ftgwp"),B(e,"hidden",i[1]),B(e,"hot-key-helpers-container--left",i[2]),B(e,"hot-key-helpers-container--right",i[3])},m(l,r){P(l,e,r),n&&n.m(e,null),t=!0},p(l,[r]){!l[1]&&l[4]?n?(n.p(l,r),r&18&&m(n,1)):(n=ku(l),n.c(),m(n,1),n.m(e,null)):n&&(de(),v(n,1,1,()=>{n=null}),me()),(!t||r&2)&&B(e,"hidden",l[1]),(!t||r&4)&&B(e,"hot-key-helpers-container--left",l[2]),(!t||r&8)&&B(e,"hot-key-helpers-container--right",l[3])},i(l){t||(m(n),t=!0)},o(l){v(n),t=!1},d(l){l&&S(e),n&&n.d()}}}function Mb(i,e,t){let n,l=K,r=()=>(l(),l=Qt(o,h=>t(6,n=h)),o);i.$$.on_destroy.push(()=>l());let{data:o}=e;r();let s,a,c,f,d;return i.$$set=h=>{"data"in h&&r(t(0,o=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,s=!n),t(2,a=(n==null?void 0:n.type)===Ye.BACKWARD_SEEK),t(3,c=(n==null?void 0:n.type)===Ye.FORWARD_SEEK),t(4,f=n==null?void 0:n.type),n!=null&&n.t?t(5,d=Y(n.t.key,{value:n.t.value||""})):t(5,d=n==null?void 0:n.text))},[o,s,a,c,f,d,n]}class Bb extends ke{constructor(e){super(),we(this,e,Mb,Vb,be,{data:0},Lb)}}function Nb(i){Ze(i,"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 Rb(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k;return r=new $n({props:{direction:"up"}}),a=new $n({props:{direction:"up"}}),h=new $n({props:{direction:"up"}}),w=new $n({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),l=T("div"),j(r.$$.fragment),o=O(),s=T("div"),j(a.$$.fragment),c=O(),f=T("div"),d=T("div"),j(h.$$.fragment),_=O(),g=T("div"),j(w.$$.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(g,"class","button button-down v-1yzc86r"),u(f,"class","button-row v-1yzc86r"),u(t,"class","button-block v-1yzc86r"),u(t,"aria-hidden","true"),u(e,"class","immersive-controls v-1yzc86r"),u(e,"tabindex","0"),u(e,"role","button"),u(e,"aria-label",Y("aria_label_spherical_control")),B(e,"m-shifted",i[0])},m(y,M){P(y,e,M),p(e,t),p(t,n),p(n,l),F(r,l,null),p(n,o),p(n,s),F(a,s,null),p(t,c),p(t,f),p(f,d),F(h,d,null),p(f,_),p(f,g),F(w,g,null),b=!0,C||(k=[ve(l,"mousedown",i[1]),ve(l,"mouseup",i[5]),ve(l,"mouseleave",i[5]),ve(s,"mousedown",i[3]),ve(s,"mouseup",i[5]),ve(s,"mouseleave",i[5]),ve(d,"mousedown",i[4]),ve(d,"mouseup",i[5]),ve(d,"mouseleave",i[5]),ve(g,"mousedown",i[2]),ve(g,"mouseup",i[5]),ve(g,"mouseleave",i[5]),ve(e,"keydown",i[6]),ve(e,"keyup",i[7])],C=!0)},p(y,[M]){(!b||M&1)&&B(e,"m-shifted",y[0])},i(y){b||(m(r.$$.fragment,y),m(a.$$.fragment,y),m(h.$$.fragment,y),m(w.$$.fragment,y),b=!0)},o(y){v(r.$$.fragment,y),v(a.$$.fragment,y),v(h.$$.fragment,y),v(w.$$.fragment,y),b=!1},d(y){y&&S(e),H(r),H(a),H(h),H(w),C=!1,nt(k)}}}function Ob(i,e,t){let{isShifted:n=!1}=e;const l=Ct(),r=new Set([Ae.ArrowUp,Ae.ArrowDown,Ae.ArrowLeft,Ae.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=_=>{if(r.has(_.code))switch(_.preventDefault(),_.stopPropagation(),_.code){case Ae.ArrowUp:o();break;case Ae.ArrowDown:s();break;case Ae.ArrowLeft:c();break;case Ae.ArrowRight:a();break}},h=_=>{r.has(_.code)&&(_.preventDefault(),_.stopPropagation(),f())};return i.$$set=_=>{"isShifted"in _&&t(0,n=_.isShifted)},[n,o,s,a,c,f,d,h]}class Sf extends ke{constructor(e){super(),we(this,e,Ob,Rb,be,{isShifted:0},Nb)}}function Db(i){Ze(i,"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 Bu(i,e,t){const n=i.slice();return n[16]=e[t].value,n}function Nu(i,e,t){const n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function Ru(i){let e,t;function n(o,s){return o[7]&&o[8]?Hb:o[5]?Fb:zb}let l=n(i),r=l(i);return{c(){e=T("div"),t=T("span"),r.c(),u(t,"class","caption v-ovfyp5"),u(e,"class","subtitles-caption v-ovfyp5"),B(e,"mobile",i[3])},m(o,s){P(o,e,s),p(e,t),r.m(t,null)},p(o,s){l===(l=n(o))&&r?r.p(o,s):(r.d(1),r=l(o),r&&(r.c(),r.m(t,null))),s&8&&B(e,"mobile",o[3])},d(o){o&&S(e),r.d()}}}function zb(i){let e,t=Zt(i[1]),n=[];for(let l=0;l<t.length;l+=1)n[l]=Ou(Bu(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=mt()},m(l,r){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(l,r);P(l,e,r)},p(l,r){if(r&18){t=Zt(l[1]);let o;for(o=0;o<t.length;o+=1){const s=Bu(l,t,o);n[o]?n[o].p(s,r):(n[o]=Ou(s),n[o].c(),n[o].m(e.parentNode,e))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(l){l&&S(e),Bn(n,l)}}}function Fb(i){let e,t,n=Zt(i[6]),l=[];for(let r=0;r<n.length;r+=1)l[r]=zu(Nu(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<l.length;r+=1)l[r].c();u(t,"class","caption-segment v-ovfyp5"),Ft(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(r,o){P(r,e,o),p(e,t);for(let s=0;s<l.length;s+=1)l[s]&&l[s].m(t,null)},p(r,o){if(o&68){n=Zt(r[6]);let s;for(s=0;s<n.length;s+=1){const a=Nu(r,n,s);l[s]?l[s].p(a,o):(l[s]=zu(a),l[s].c(),l[s].m(t,null))}for(;s<l.length;s+=1)l[s].d(1);l.length=n.length}o&16&&Ft(t,"font-size",r[4]+"px")},d(r){r&&S(e),Bn(l,r)}}}function Hb(i){let e,t,n=Y("subtitles_auto_caption")+"",l;return{c(){e=T("span"),t=T("span"),l=ze(n),u(t,"class","caption-segment v-ovfyp5"),Ft(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(r,o){P(r,e,o),p(e,t),p(t,l)},p(r,o){o&16&&Ft(t,"font-size",r[4]+"px")},d(r){r&&S(e)}}}function Ou(i){let e,t,n=i[16]+"",l,r;return{c(){e=T("span"),t=T("span"),l=ze(n),r=O(),u(t,"class","caption-segment v-ovfyp5"),Ft(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(o,s){P(o,e,s),p(e,t),p(t,l),p(e,r)},p(o,s){s&2&&n!==(n=o[16]+"")&&et(l,n),s&16&&Ft(t,"font-size",o[4]+"px")},d(o){o&&S(e)}}}function Du(i){let e=i[16]+"",t;return{c(){t=ze(e)},m(n,l){P(n,t,l)},p(n,l){l&64&&e!==(e=n[16]+"")&&et(t,e)},d(n){n&&S(t)}}}function zu(i){let e,t=(!i[17]||i[17]<=i[2])&&Du(i);return{c(){t&&t.c(),e=mt()},m(n,l){t&&t.m(n,l),P(n,e,l)},p(n,l){!n[17]||n[17]<=n[2]?t?t.p(n,l):(t=Du(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&S(e),t&&t.d(n)}}}function Ub(i){let e,t=i[1].length>0&&Ru(i);return{c(){e=T("div"),t&&t.c(),u(e,"class","subtitles-container v-ovfyp5"),B(e,"shifted",i[0]),B(e,"auto",i[5]&&!i[8])},m(n,l){P(n,e,l),t&&t.m(e,null)},p(n,[l]){n[1].length>0?t?t.p(n,l):(t=Ru(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),l&1&&B(e,"shifted",n[0]),l&288&&B(e,"auto",n[5]&&!n[8])},i:K,o:K,d(n){n&&S(e),t&&t.d()}}}function jb(i,e,t){let n,l,{shifted:r}=e,{captions:o}=e,{position:s}=e,{playerSize:a}=e,{isMobile:c=!1}=e;const f=Ct(),d=wn(),h=f.state.currentSubtitle$;D(i,h,y=>t(12,n=y));const _=f.state.isAutoSubtitleCaptionVisible$;D(i,_,y=>t(8,l=y));let g,w,b,C,k;return _n(()=>{k=window.setTimeout(()=>{_.set(!1)},d.autoSubtitlesTimeout)}),gl(()=>{window.clearTimeout(k)}),i.$$set=y=>{"shifted"in y&&t(0,r=y.shifted),"captions"in y&&t(1,o=y.captions),"position"in y&&t(2,s=y.position),"playerSize"in y&&t(11,a=y.playerSize),"isMobile"in y&&t(3,c=y.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){const y=a.width*.02;t(4,g=y<=d.minSubtitlesFontSize?d.minSubtitlesFontSize:y)}i.$$.dirty&2&&t(5,w=o.some(y=>y.type==="timestamp")),i.$$.dirty&2&&t(6,b=o.reduce((y,{type:M,value:q})=>(M==="timestamp"?y.push({timeAppeared:Number(q),value:""}):y.length===0?y.push({value:String(q)}):y[y.length-1].value=String(q),y),[])),i.$$.dirty&4096&&t(7,C=!!n.isAuto)},[r,o,s,c,g,w,b,C,l,h,_,a,n]}class Pf extends ke{constructor(e){super(),we(this,e,jb,Ub,be,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},Db)}}function qb(i){Ze(i,"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 Fu(i){let e,t,n;return{c(){e=T("div"),t=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(i[1]),u(e,"class","text v-1o62kpz")},m(l,r){P(l,e,r),p(e,t),p(e,n)},p(l,r){r&2&&et(n,l[1])},d(l){l&&S(e)}}}function Wb(i){let e,t,n,l,r,o,s=i[1]&&Fu(i);return{c(){e=T("div"),t=T("div"),t.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=O(),s&&s.c(),u(t,"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('${i[0]||""}')`)},m(a,c){P(a,e,c),p(e,t),p(e,n),s&&s.m(e,null),r||(o=ve(e,"click",i[2]),r=!0)},p(a,[c]){a[1]?s?s.p(a,c):(s=Fu(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:K,o:K,d(a){a&&S(e),s&&s.d(),r=!1,o()}}}function Zb(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function r(o){Po.call(this,i,o)}return i.$$set=o=>{"thumbUrl"in o&&t(0,n=o.thumbUrl),"chromecastDeviceName"in o&&t(1,l=o.chromecastDeviceName)},[n,l,r]}class Tf extends ke{constructor(e){super(),we(this,e,Zb,Wb,be,{thumbUrl:0,chromecastDeviceName:1},qb)}}function Kb(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class Gb extends ke{constructor(e){super(),we(this,e,null,Kb,be,{})}}function Yb(i){Ze(i,"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 Qb(i){let e,t,n;return t=new Gb({}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","container v-13zpvm8")},m(l,r){P(l,e,r),F(t,e,null),n=!0},p:K,i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}class Ef extends ke{constructor(e){super(),we(this,e,null,Qb,be,{},Yb)}}function Xb(i){Ze(i,"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 Jb(i){let e,t,n,l,r,o,s,a,c;return r=new Er({}),{c(){e=T("div"),t=T("div"),n=T("div"),l=O(),j(r.$$.fragment),u(n,"class","playButtonBackground v-17wno3"),u(t,"class","playButton v-17wno3"),u(t,"tabindex","0"),u(t,"role","button"),u(t,"aria-label",Y("tooltip_play")),u(e,"class","container v-17wno3"),u(e,"style",o=`background-color: #222; background-image: url('${i[0]||""}')`),B(e,"hidden",i[1])},m(f,d){P(f,e,d),p(e,t),p(t,n),p(t,l),F(r,t,null),s=!0,a||(c=[ve(t,"keydown",i[3]),ve(e,"click",st(function(){Mn(i[2])&&i[2].apply(this,arguments)}))],a=!0)},p(f,[d]){i=f,(!s||d&1&&o!==(o=`background-color: #222; background-image: url('${i[0]||""}')`))&&u(e,"style",o),(!s||d&2)&&B(e,"hidden",i[1])},i(f){s||(m(r.$$.fragment,f),s=!0)},o(f){v(r.$$.fragment,f),s=!1},d(f){f&&S(e),H(r),a=!1,nt(c)}}}function xb(i,e,t){let{thumbUrl:n}=e,{hidden:l}=e,{startVideo:r}=e;const s=Ct().ui.startedByKeyboard$,a=c=>{const f=c.code;[Ae.Enter,Ae.Space].includes(f)&&(c.stopPropagation(),c.preventDefault(),s.set(!0),r())};return i.$$set=c=>{"thumbUrl"in c&&t(0,n=c.thumbUrl),"hidden"in c&&t(1,l=c.hidden),"startVideo"in c&&t(2,r=c.startVideo)},[n,l,r,a]}class Af extends ke{constructor(e){super(),we(this,e,xb,Jb,be,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Xb)}get handlePressKey(){return this.$$.ctx[3]}}function $b(i){Ze(i,"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 kf(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 Cf(i){let e,t;return e=new yf({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 Sf(i){let e,t;return e=new gf({}),{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 Tf(i){let e,t;return e=new wf({}),{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 O2(i){let e,t,n,o,s,r,l,a=i[0]&&kf(i),c=i[3]&&Cf(i),f=i[7]&&Sf(i),p=i[4]&&Tf(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(),Mt(n,"width","100%"),Mt(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=kf(_),a.c(),a.m(e,t)):a&&(a.d(1),a=null),_[3]?c?(c.p(_,g),g&8&&m(c,1)):(c=Cf(_),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=Sf(_),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=Tf(_),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 F2(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,_=Ge(),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;Vt(()=>{let P=new AbortController,ne=()=>{P.abort()},J=_.getAdmanWrapper();if(!a){J.onAdmanLoadingError();return}let{width:K,height:Y}=We(_.ui.playerSize),M=We(_.ui.isFullscreen),W=We(_.ui.isAutoplay),B={width:K,height:Y,isFullscreen:M,isAutoplay:W,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 zs=class extends j{constructor(e){super(),X(this,e,F2,O2,G,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},D2)}},cl=zs;var In=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 H2(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 z2(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 U2(i){let e;function t(s,r){return s[0]?z2:H2}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 q2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Us=class extends j{constructor(e){super(),X(this,e,q2,U2,G,{isActive:0})}},fl=Us;function K2(i){ye(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 W2(i){let e=In(i[4]-i[3])+"",t;return{c(){t=Ie(e)},m(n,o){y(n,t,o)},p(n,o){o&24&&e!==(e=In(n[4]-n[3])+"")&&He(t,e)},i:R,o:R,d(n){n&&v(t)}}}function Z2(i){let e,t,n;return t=new fl({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 G2(i){let e,t,n,o,s,r,l,a=[Z2,W2],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 j2(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 qs=class extends j{constructor(e){super(),X(this,e,j2,G2,G,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},K2)}},dl=qs;var Tr=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 Ks=require("@vkontakte/videoplayer-core");var No=i=>{i.stopPropagation(),i.preventDefault()},Y2=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},Q2=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},X2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},J2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Pf=i=>i.code==="Escape",$2=i=>i.code==="ArrowLeft",If=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Ef=i=>{if(X2(i)){No(i),Q2(i.target);return}J2(i)&&(No(i),Y2(i.target))},ir=i=>(i==null?void 0:i.detail)===0,nr=(i,e,t)=>tt(void 0,null,function*(){yield Bn(),i&&!i.classList.contains("opened")&&!e&&We(t)&&(yield Bn(),t.set(!1),i.focus())}),Mf=(i,e,t)=>tt(void 0,null,function*(){yield Bn(),i&&!e&&We(t)&&(t.set(!1),i.focus())}),Do=(i,e,t)=>tt(void 0,null,function*(){yield Bn(),!!i&&e&&t&&(yield Bn(),i.firstChild.focus())}),Pr=(i,e,t)=>tt(void 0,null,function*(){!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))}),ml=(i,e)=>{Ef(i),Pf(i)&&(No(i),e())},Ir=(i,e,t)=>tt(void 0,null,function*(){if(If(i,!1)){No(i),e(),yield Bn();let n=t();n==null||n.focus()}}),Er=(i,e,t,n)=>tt(void 0,null,function*(){if(Ef(i),$2(i)){No(i),e(),t.set(!0);return}Pf(i)&&(No(i),n())}),Xi=(i,e)=>{If(i)&&(No(i),e())},Vf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Lf=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 Mr=require("@vkontakte/videoplayer-shared");function eh(i){ye(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 Af(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)&&th(i),U=i[12]&&i[6]!==Ks.ChromecastState.CONNECTED&&!i[17]&&Rf(i);function $(J,K){return J[4]?nh:ih}let q=$(i,[-1,-1]),le=q(i),oe=i[10].features.videoRotate&&!i[17]&&oh(i),P=i[10].showSupport&&!i[7]&&Nf(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"),Mt(e,"top",i[3]+"px"),Mt(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",et(i[24])),de(o,"keydown",i[30]),de(c,"click",et(i[21])),de(c,"keydown",i[32]),de(b,"click",et(i[22])),de(b,"keydown",i[33]),de(e,"contextmenu",Et(i[39])),de(e,"keydown",i[26])],k=!0)},p(J,K){var Y;J[10].features.copyVideoLink&&((Y=J[9].callbacks)!=null&&Y.onCopyVideoLink)&&E.p(J,K),J[12]&&J[6]!==Ks.ChromecastState.CONNECTED&&!J[17]?U?U.p(J,K):(U=Rf(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=Nf(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&&Mt(e,"top",J[3]+"px"),K[0]&4&&Mt(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,xe(C)}}}function th(i){let e,t=z("menu_copy_video_link")+"",n,o,s,r,l,a,c=!i[5]&&!i[17]&&Bf(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",et(i[40])),de(e,"keydown",i[27])],l=!0)},p(f,p){!f[5]&&!f[17]?c?c.p(f,p):(c=Bf(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,xe(a)}}}function Bf(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",et(i[41])),de(e,"keydown",i[28])],s=!0)},p:R,d(l){l&&v(e),s=!1,xe(r)}}}function Rf(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",et(i[23])),de(e,"keydown",i[29])],s=!0)},p:R,d(l){l&&v(e),s=!1,xe(r)}}}function ih(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 nh(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 oh(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",et(i[19])),de(e,"keydown",i[30])],s=!0)},p:R,d(l){l&&v(e),s=!1,xe(r)}}}function Nf(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",et(i[20])),de(e,"keydown",i[31])],s=!0)},p:R,d(l){l&&v(e),s=!1,xe(r)}}}function rh(i){let e,t=i[1]&&Af(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=Af(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 lh(i,e,t){var ve;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=Ge(),C=Dt(),E=k.ui.contextMenu.visible$,U=k.ui.debugPanelVisible;D(i,U,Z=>t(8,a=Z));let $=k.webApi.pictureInPictureApi,q=(ve=k.webApi.pictureInPictureApi)==null?void 0:ve.info.isActive$;D(i,q,Z=>t(7,l=Z));let le=k.state.chromecastState$;D(i,le,Z=>t(6,r=Z));let oe=k.state.isLive$;D(i,oe,Z=>t(5,s=Z));let P=k.state.positionExact$;D(i,P,Z=>t(43,n=Z));let ne=k.state.isInteractive,J=k.state.looped$;D(i,J,Z=>t(4,o=Z));let K=()=>{E.set(!1)},Y=(Z,we)=>{if(!b||!_||!g)return;let ue=b.getBoundingClientRect(),Se=_.getBoundingClientRect();t(2,S=Z-Se.left),t(3,I=we-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()},W=()=>{window.open(f,"_blank"),K(),k.actions.internal.pause()},B=()=>{let Z=k.actions.internal.getDebugTextData();if(C.features.saveDebugInfoToFile){let we=new Blob([...Z],{type:"plain/text"}),ue=window.URL.createObjectURL(we);Jr(ue,"vk_player_debug_info","txt")}else Tr(k.actions.internal.getDebugTextData());K(),w==null||w()},te=()=>{U.set(!0),K(),w==null||w()},Ce=()=>tt(this,null,function*(){try{$!=null&&$.isActive()?yield $==null?void 0:$.remove():yield $==null?void 0:$.request()}finally{K(),w==null||w()}}),Fe=()=>{k.actions.internal.setLooped(!o),K()},Ne=(Z=!1)=>{var we,ue;if((we=k.callbacks)!=null&&we.onCopyVideoLink){let Se=(ue=k.callbacks)==null?void 0:ue.onCopyVideoLink(Z,n);Se&&Tr(Se)}K()},Ke=Z=>{ml(Z,K)},De=Z=>{Xi(Z,()=>Ne())},be=Z=>{Xi(Z,()=>Ne(!0))},Q=Z=>{Xi(Z,()=>Ce())},_e=Z=>{Xi(Z,()=>M())},Le=Z=>{Xi(Z,()=>W())},qe=Z=>{Xi(Z,()=>B())},Ze=Z=>{Xi(Z,()=>te())};function he(Z){Pn.call(this,i,Z)}let Pe=()=>Ne(),Re=()=>Ne(!0);function Ye(Z){me[Z?"unshift":"push"](()=>{b=Z,t(0,b)})}return i.$$set=Z=>{"visible"in Z&&t(1,c=Z.visible),"supportLink"in Z&&t(34,f=Z.supportLink),"position"in Z&&t(35,p=Z.position),"playerContainerRef"in Z&&t(36,_=Z.playerContainerRef),"controlsContainerRef"in Z&&t(37,g=Z.controlsContainerRef),"menuElementRef"in Z&&t(0,b=Z.menuElementRef),"returnFocus"in Z&&t(38,w=Z.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&_&&g){let{top:Z,left:we,bottom:ue,right:Se}=p,ze=we!=null?we:0,it=Z!=null?Z:0,lt=b.getBoundingClientRect();(0,Mr.isNullable)(we)&&!(0,Mr.isNullable)(Se)&&(ze=Se-lt.width),(0,Mr.isNullable)(Z)&&!(0,Mr.isNullable)(ue)&&(it=ue-lt.height),ze=Math.max(ze,0),it=Math.max(it,0),Y(ze,it)}}},[b,c,S,I,o,s,r,l,a,k,C,U,$,q,le,oe,P,ne,J,M,W,B,te,Ce,Fe,Ne,Ke,De,be,Q,_e,Le,qe,Ze,f,p,_,g,w,he,Pe,Re,Ye]}var Ws=class extends j{constructor(e){super(),X(this,e,lh,rh,G,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},eh,[-1,-1])}},Df=Ws;var pl=class{constructor(e){this.value=e,this.next=null}};var or=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new pl(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 sh(i){ye(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function ah(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 Zs=16,Gs=120,Of=60;function uh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function ch(i,e,t){let{values:n=[]}=e,o,s,r=Gs/Of;Vt(()=>{t(0,o.width=Gs,o),t(0,o.height=Zs,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,Gs,Zs);let f=Of-1;for(let p=n.length-1;p>=0;p--){let _=f*r,g=c>0?Zs*(n[p]/c):0;uh(s,_,0,r,g),a=g+" "+a,f--}}}},[o,n,s,l]}var js=class extends j{constructor(e){super(),X(this,e,ch,ah,G,{values:1},sh)}},hl=js;var xs=require("@vkontakte/videoplayer-shared");function fh(i){ye(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 Ff(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+"")&&He(r,s)},d(l){l&&v(e)}}}function Hf(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+"")&&He(r,s)},d(l){l&&v(e)}}}function zf(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+"")&&He(r,s)},d(l){l&&v(e)}}}function Uf(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+"")&&He(r,s)},d(l){l&&v(e)}}}function qf(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+"")&&He(r,s)},d(l){l&&v(e)}}}function Kf(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+"")&&He(r,s)},d(a){a&&v(e)}}}function Wf(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)+"")&&He(r,s)},d(a){a&&v(e)}}}function Zf(i){let e,t,n,o,s=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(xf).map(Yf).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(xf).map(Yf).join(" / ")+"")&&He(r,s)},d(l){l&&v(e)}}}function Gf(i){let e,t,n,o,s,r,l=i[0].speed.toFixed(2)+"",a,c,f;return o=new hl({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)+"")&&He(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 jf(i){let e,t,n,o,s,r,l=i[0].bitrate.toFixed(2)+"",a,c,f;return o=new hl({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)+"")&&He(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 dh(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,Y,M,W,B,te,Ce,Fe,Ne,Ke,De,be,Q,_e=i[0].id&&Ff(i),Le=i[0].provider&&Hf(i),qe=i[0].viewport&&zf(i),Ze=i[0].videoSize&&Uf(i),he=i[0].cdn&&qf(i),Pe=i[0].volume&&Kf(i),Re=i[0].buffer&&Wf(i),Ye=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&Zf(i),ve=i[0].speed&&Gf(i),Z=i[0].bitrate&&jf(i);return te=new hl({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(),_e&&_e.c(),_=N(),Le&&Le.c(),g=N(),qe&&qe.c(),b=N(),Ze&&Ze.c(),w=N(),he&&he.c(),S=N(),Pe&&Pe.c(),I=N(),Re&&Re.c(),k=N(),Ye&&Ye.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(),ve&&ve.c(),K=N(),Z&&Z.c(),Y=N(),M=T("div"),W=T("div"),W.textContent="FPS",B=N(),H(te.$$.fragment),Ce=N(),Fe=T("span"),Ne=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(W,"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",Ke=z("aria_label_debug_panel")),L(e,"container-mobile",i[7])},m(we,ue){y(we,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),_e&&_e.m(o,null),d(o,_),Le&&Le.m(o,null),d(o,g),qe&&qe.m(o,null),d(o,b),Ze&&Ze.m(o,null),d(o,w),he&&he.m(o,null),d(o,S),Pe&&Pe.m(o,null),d(o,I),Re&&Re.m(o,null),d(o,k),Ye&&Ye.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),ve&&ve.m(o,null),d(o,K),Z&&Z.m(o,null),d(o,Y),d(o,M),d(M,W),d(M,B),O(te,M,null),d(M,Ce),d(M,Fe),d(Fe,Ne),De=!0,be||(Q=de(t,"click",et(i[9])),be=!0)},p(we,[ue]){(!De||ue&1)&&c!==(c=we[0].version+"")&&He(f,c),we[0].id?_e?_e.p(we,ue):(_e=Ff(we),_e.c(),_e.m(o,_)):_e&&(_e.d(1),_e=null),we[0].provider?Le?Le.p(we,ue):(Le=Hf(we),Le.c(),Le.m(o,g)):Le&&(Le.d(1),Le=null),we[0].viewport?qe?qe.p(we,ue):(qe=zf(we),qe.c(),qe.m(o,b)):qe&&(qe.d(1),qe=null),we[0].videoSize?Ze?Ze.p(we,ue):(Ze=Uf(we),Ze.c(),Ze.m(o,w)):Ze&&(Ze.d(1),Ze=null),we[0].cdn?he?he.p(we,ue):(he=qf(we),he.c(),he.m(o,S)):he&&(he.d(1),he=null),we[0].volume?Pe?Pe.p(we,ue):(Pe=Kf(we),Pe.c(),Pe.m(o,I)):Pe&&(Pe.d(1),Pe=null),we[0].buffer?Re?Re.p(we,ue):(Re=Wf(we),Re.c(),Re.m(o,k)):Re&&(Re.d(1),Re=null),we[0].currentVideoSegmentLength||we[0].currentAudioSegmentLength?Ye?Ye.p(we,ue):(Ye=Zf(we),Ye.c(),Ye.m(o,C)):Ye&&(Ye.d(1),Ye=null),(!De||ue&4)&&He(le,we[2]),(!De||ue&2)&&He(P,we[1]),we[0].speed?ve?(ve.p(we,ue),ue&1&&m(ve,1)):(ve=Gf(we),ve.c(),m(ve,1),ve.m(o,K)):ve&&(ce(),h(ve,1,1,()=>{ve=null}),fe()),we[0].bitrate?Z?(Z.p(we,ue),ue&1&&m(Z,1)):(Z=jf(we),Z.c(),m(Z,1),Z.m(o,Y)):Z&&(ce(),h(Z,1,1,()=>{Z=null}),fe());let Se={};ue&16&&(Se.values=we[4]),te.$set(Se),(!De||ue&8)&&He(Ne,we[3]),(!De||ue&128)&&L(e,"container-mobile",we[7])},i(we){De||(m(ve),m(Z),m(te.$$.fragment,we),De=!0)},o(we){h(ve),h(Z),h(te.$$.fragment,we),De=!1},d(we){we&&v(e),_e&&_e.d(),Le&&Le.d(),qe&&qe.d(),Ze&&Ze.d(),he&&he.d(),Pe&&Pe.d(),Re&&Re.d(),Ye&&Ye.d(),ve&&ve.d(),Z&&Z.d(),F(te),be=!1,Q()}}}var xf=({value:i})=>i,Yf=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function mh(i,e,t){let n,o=Ge(),s=o.ui.debugPanelVisible,r=o.ui.isMobile;D(i,r,C=>t(7,n=C));let l=()=>{xs.safeStorage.remove(kr),s.set(!1)},a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,p=0,_=0,g=new or(60),b=new or(60),w=new or(60),S=[],I=[],k=[];return Vt(()=>{xs.safeStorage.set(kr,"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 Ys=class extends j{constructor(e){super(),X(this,e,mh,dh,G,{},fh)}},_l=Ys;function ph(i){ye(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 hh(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",et(i[0])),t=!0)},p:R,i:R,o:R,d(o){o&&v(e),t=!1,n()}}}function _h(i){function e(t){Pn.call(this,i,t)}return[e]}var Qs=class extends j{constructor(e){super(),X(this,e,_h,hh,G,{},ph)}},Qf=Qs;var Xf=require("@vkontakte/videoplayer-shared");function bh(i){ye(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 gh(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 vh=5e3;function yh(i,e,t){let{onTimerEnded:n=Xf.noop}=e,o;Vt(()=>{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)/vh;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 Xs=class extends j{constructor(e){super(),X(this,e,yh,gh,G,{onTimerEnded:1},bh)}},Jf=Xs;function wh(i){ye(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 $f(i){let e,t;return e=new Jf({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 kh(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C,E,U;l=new Qf({}),l.$on("click",i[4]);let $=i[3]&&$f(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(){wi(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(q,[le]){i=q,i[3]?$?($.p(i,le),le&8&&m($,1)):($=$f(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)&&He(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 Ch(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 Js=class extends j{constructor(e){super(),X(this,e,Ch,kh,G,{title:0,thumb:1,playNextVideo:2},wh)}},e1=Js;var ho=require("@vkontakte/videoplayer-core"),t1=require("@vkontakte/videoplayer-shared"),_n=require("@vkontakte/videoplayer-statistics");var $s=(i,e)=>Math.min(+(i+e).toFixed(2),1),ea=(i,e)=>Math.max(+(i-e).toFixed(2),0),bl=(i,e,t)=>{let n=$s(e,t);e<1&&i.actions.internal.setVolume(n)},gl=(i,e,t)=>{let n=ea(e,t);e>0&&i.actions.internal.setVolume(n)};var po=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function Th(i){ye(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Ph(i){let e,t,n,o,s,r=i[26].default,l=ji(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)&&Yi(l,r,a,a[25],n?xi(r,a[25],c,null):Qi(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,xe(s)}}}function Ih(i,e,t){var _t,dt;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=Ge(),ne=Dt(),J=P.getLogger().createComponentLog("KeyboardControls component"),K=P.state.playbackState$;D(i,K,ge=>t(31,o=ge));let Y=P.ads.playbackState;D(i,Y,ge=>t(30,n=ge));let M=P.state.positionExact$;D(i,M,ge=>t(41,b=ge));let W=P.state.duration$;D(i,W,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 Fe=P.state.currentSubtitle$;D(i,Fe,ge=>t(33,r=ge));let Ne=P.state.currentPlaybackRate$;D(i,Ne,ge=>t(42,w=ge));let Ke=P.state.availablePlaybackRates$;D(i,Ke,ge=>t(43,S=ge));let De=P.ui.contextMenu.openedByHotKey$,be=P.ui.contextMenu.lastActiveElem$,Q=P.ui.contextMenu.visible$,_e=P.ui.contextMenu.position$,Le=P.state.isEnded$;D(i,Le,ge=>t(36,c=ge));let qe=P.ui.overlayContainer$;D(i,qe,ge=>t(32,s=ge));let Ze=(_t=P.callbacks)==null?void 0:_t.onAudioDoesNotExistHint,he=(dt=P.callbacks)==null?void 0:dt.onAudioDisabledHint,Pe=P.state.isAudioAvailable$;D(i,Pe,ge=>t(35,a=ge));let Re=P.state.isAudioDisabled,Ye=P.state.isInteractiveTime$;D(i,Ye,ge=>t(38,p=ge));let{showInteractiveTimeIndicatorTooltip$:ve}=Nn();D(i,ve,ge=>t(37,f=ge));let Z=0,we=!0,ue,Se=()=>ue==null?void 0:ue.focus(),ze=ge=>(ge!==we&&(we=ge,Z=0),Z+=1,(ne.controls.seekStepKeyboard+ne.controls.seekStepKeyboard*Z)/1e3),it=ge=>{var Je;let at=ge.target,At=(Je=at==null?void 0:at.getAttribute("role"))==null?void 0:Je.includes("menuitem"),Ct=at.classList.contains("btn"),Ae=ge.code;if(Ct&&Ae==="Space")return;let Ft=Uc.has(Ae);if(At&&Ft)return;let pe=!zc.has(Ae);if(ge.ctrlKey&&pe||ge.altKey&&pe||ge.metaKey)return;let St=At&&Ae==="Escape";qc.has(Ae)||St||U();let Tt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,ut=E&&(n==="paused"||n==="playing"),ct=!ut&&!_.has("TIMELINE");if(Tt||ut)switch(J({message:`key down, code: ${Ae}`}),Ae){case"KeyJ":case"ArrowLeft":{if(!ct)break;if(ge.ctrlKey||ge.altKey){let Te=P.actions.internal.getPrevEpisode();P.actions.internal.seekToPrevEpisode(Te),Te&&q({type:"EPISODE_PREV",text:Te.text}),ge.preventDefault()}else{let Te=ge.shiftKey?ze(!1):ne.controls.seekStepKeyboard/1e3,st=Math.max(b-Te,0);b>0&&(P.actions.internal.seekTime(st,_n.SeekAction.DOUBLE_TAP),q({type:"BACKWARD_SEEK",text:Te.toString()}),ge.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ct)break;if(ge.ctrlKey||ge.altKey){let Te=P.actions.internal.getNextEpisode();P.actions.internal.seekToNextEpisode(Te),Te&&q({type:"EPISODE_NEXT",text:Te.text}),ge.preventDefault()}else{let Te=ge.shiftKey?ze(!0):ne.controls.seekStepKeyboard/1e3,st=Math.min(b+Te,g);Math.round(b)<Math.round(g)&&(P.actions.internal.seekTime(st,_n.SeekAction.DOUBLE_TAP),q({type:"FORWARD_SEEK",text:Te.toString()}),ge.preventDefault())}break}case"ArrowUp":{if(po({isAudioDisabled:Re,audioDisabledHintCallback:he,isAudioAvailable:a,audioIsNotExistHintCallback:Ze})){let Te=I,st=ne.controls.volumeStepKeyboard,jt=Te<=1;if(bl(P,Te,st),jt){let xt=Math.round($s(Te,st)*100).toString();q({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xt}})}}ge.preventDefault();break}case"ArrowDown":{if(po({isAudioDisabled:Re,audioDisabledHintCallback:he,isAudioAvailable:a,audioIsNotExistHintCallback:Ze})){let Te=I,st=ne.controls.volumeStepKeyboard,jt=Te>=0;if(gl(P,Te,st),jt){let xt=Math.round(ea(Te,st)*100).toString();q({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xt}})}}ge.preventDefault();break}case"Comma":{if(ge.shiftKey){P.actions.internal.decrementPlaybackRate();let Te=S.find(st=>st.value===w);q({type:"RATE_DOWN",text:Te==null?void 0:Te.displayValue}),ge.preventDefault()}else{if(ut||o!==ho.PlaybackState.PAUSED)break;let Te=Math.max(b-ne.controls.seekStepFrame/1e3,0);b>0&&(q({type:"BACKWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(Te,_n.SeekAction.DOUBLE_TAP),ge.preventDefault())}break}case"Period":{if(ge.shiftKey){P.actions.internal.incrementPlaybackRate();let Te=S.find(st=>st.value===w);q({type:"RATE_UP",text:Te==null?void 0:Te.displayValue}),ge.preventDefault()}else{if(ut||o!==ho.PlaybackState.PAUSED)break;let Te=Math.min(b+ne.controls.seekStepFrame/1e3,g);b<g&&(q({type:"FORWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(Te,_n.SeekAction.DOUBLE_TAP),ge.preventDefault())}break}case"KeyK":case"Space":if(!_.has("PLAY_BUTTON"))if(p&&f&&ve.set(!1),oe)oe();else{P.actions.internal.togglePlay();let Te="PLAY";o===ho.PlaybackState.PAUSED?Te="PAUSE":c&&(Te="REPLAY"),q({type:Te})}ge.preventDefault();break;case"KeyM":{po({isAudioDisabled:Re,audioDisabledHintCallback:he,isAudioAvailable:a,audioIsNotExistHintCallback:Ze})&&(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 Te=Lf(s);_e.set(Te),be.set(at),De.set(!0),Q.set(!0),ge.preventDefault();break}q(),P.actions.internal.seekToPercent(.1,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit2":case"Numpad2":q(),P.actions.internal.seekToPercent(.2,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit3":case"Numpad3":q(),P.actions.internal.seekToPercent(.3,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit4":case"Numpad4":q(),P.actions.internal.seekToPercent(.4,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit5":case"Numpad5":q(),P.actions.internal.seekToPercent(.5,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit6":case"Numpad6":q(),P.actions.internal.seekToPercent(.6,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit7":case"Numpad7":q(),P.actions.internal.seekToPercent(.7,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit8":case"Numpad8":q(),P.actions.internal.seekToPercent(.8,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit9":case"Numpad9":q(),P.actions.internal.seekToPercent(.9,_n.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit0":case"Numpad0":q(),P.actions.internal.seekToPercent(0,_n.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,t1.checkNever)(Ae);break}},lt=ge=>{let at=ge.code;if(ge.ctrlKey||ge.altKey||ge.metaKey)return;let At=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,Ct=E&&(n==="paused"||n==="playing");if(At||Ct)switch(at){case"ShiftLeft":case"ShiftRight":Z=0;break}};function nt(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,Y,M,W,B,te,Ce,Fe,Ne,Ke,Le,qe,Pe,Ye,ve,it,lt,E,U,$,q,le,oe,Se,C,k,nt]}var ta=class extends j{constructor(e){super(),X(this,e,Ih,Ph,G,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Th,[-1,-1])}get focus(){return this.$$.ctx[24]}},i1=ta;function Eh(i){ye(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 Mh(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 ia=class extends j{constructor(e){super(),X(this,e,null,Mh,G,{},Eh)}},vl=ia;function Vh(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 na=class extends j{constructor(e){super(),X(this,e,null,Vh,G,{})}},n1=na;var xn=require("@vkontakte/videoplayer-shared");function Lh(i){ye(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 Ah(i){let e,t,n,o,s,r,l,a,c,f,p,_,g=i[14].default,b=ji(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",et(Et(i[15]))),de(e,"click",et(Et(function(){wi(i[10]===xn.noop?null:i[10])&&(i[10]===xn.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",Et(function(){wi(i[11]===xn.noop?null:i[11])&&(i[11]===xn.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",Et(function(){wi(i[12]===xn.noop?null:i[12])&&(i[12]===xn.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)&&Yi(b,g,i,i[13],f?xi(g,i[13],S,null):Qi(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,xe(_)}}}function Bh(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=xn.noop}=e,{focus:S=xn.noop}=e,{blur:I=xn.noop}=e;function k(E){Pn.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 oa=class extends j{constructor(e){super(),X(this,e,Bh,Ah,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},Lh)}},ft=oa;function Rh(i){ye(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 o1(i){let e,t,n,o,s,r=i[2]&&r1(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)&&He(n,l[3]),l[2]?r?(r.p(l,a),a&4&&m(r,1)):(r=r1(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 r1(i){let e,t;return e=new ft({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:z("hotkey_map_modal_close_btn_text"),$$slots:{default:[Nh]},$$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 Nh(i){let e,t;return e=new n1({}),{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 Dh(i){let e,t,n,o,s,r,l=i[1]&&o1(i),a=i[4].default,c=ji(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=o1(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)&&Yi(c,a,f,f[5],r?xi(a,f[5],p,null):Qi(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 Oh(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 ra=class extends j{constructor(e){super(),X(this,e,Oh,Dh,G,{onClose:0,showHeader:1,showCloseCross:2,title:3},Rh)}},l1=ra;var Fh=new Set(["BR"]),la=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;Fh.has(r)||(o=s.parentElement)==null||o.removeChild(s)}return e.innerHTML};function Hh(i){ye(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 s1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function a1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function u1(i){let e,t,n=la(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=la(c[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=c[10]+"")&&He(l,r)},d(c){c&&v(e)}}}function c1(i){let e,t,n=i[5]+"",o,s,r,l,a=wt(i[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=u1(a1(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]+"")&&He(o,n),p&1){a=wt(f[6]);let _;for(_=0;_<a.length;_+=1){let g=a1(f,a,_);c[_]?c[_].p(g,p):(c[_]=u1(g),c[_].c(),c[_].m(r,null))}for(;_<c.length;_+=1)c[_].d(1);c.length=a.length}},d(f){f&&v(e),Hi(c,f)}}}function zh(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=c1(s1(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=wt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let l=s1(o,t,r);n[r]?n[r].p(l,s):(n[r]=c1(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),Hi(n,o)}}}function Uh(i){let e,t;return e=new l1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[zh]},$$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 qh(i,e,t){let n,o=Ge(),{data:s,show:r}=o.ui.modals.hotKeyMap;return D(i,s,a=>t(0,n=a)),[n,s,()=>{r.set(!1)}]}var sa=class extends j{constructor(e){super(),X(this,e,qh,Uh,G,{},Hh)}},f1=sa;var $l=require("@vkontakte/videoplayer-shared");var Fo=require("@vkontakte/videoplayer-core");var x1=require("@vkontakte/videoplayer-core");var My=require("@vkontakte/videoplayer-shared");function Kh(i){ye(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 Wh(i){let e,t,n=i[1].default,o=ji(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)&&Yi(o,n,s,s[0],t?xi(n,s[0],r,null):Qi(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 Zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=s=>{"$$scope"in s&&t(0,o=s.$$scope)},[o,n]}var aa=class extends j{constructor(e){super(),X(this,e,Zh,Wh,G,{},Kh)}},d1=aa;var rr=require("@vkontakte/videoplayer-core");function Gh(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 ua=class extends j{constructor(e){super(),X(this,e,null,Gh,G,{})}},m1=ua;function jh(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 ca=class extends j{constructor(e){super(),X(this,e,null,jh,G,{})}},p1=ca;function xh(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 fa=class extends j{constructor(e){super(),X(this,e,null,xh,G,{})}},h1=fa;function Yh(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 da=class extends j{constructor(e){super(),X(this,e,null,Yh,G,{})}},yl=da;function Qh(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 ma=class extends j{constructor(e){super(),X(this,e,null,Qh,G,{})}},wl=ma;var _o=i=>{switch(i){case rr.VideoQuality.Q_720P:return h1;case rr.VideoQuality.Q_1080P:return yl;case rr.VideoQuality.Q_1440P:return wl;case rr.VideoQuality.Q_2160P:return m1;case rr.VideoQuality.Q_4320P:return p1}};function Xh(i){ye(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 Jh(i){let e,t,n,o,s,r,l=i[1]&&_1(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=_1(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 $h(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 _1(i){let e,t;return e=new d1({props:{$$slots:{default:[e_]},$$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 e_(i){let e,t,n;var o=i[1];function s(r){return{}}return o&&(e=wn(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=wn(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 t_(i){let e,t,n,o,s=[$h,Jh],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 i_(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=_o(s));if(i.$$.dirty&2)e:t(2,r=!!n&&[yl,wl].includes(n))},[o,n,r,s]}var pa=class extends j{constructor(e){super(),X(this,e,i_,t_,G,{isMobile:0,currentQuality:3},Xh)}},kl=pa;function n_(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 ha=class extends j{constructor(e){super(),X(this,e,null,n_,G,{})}},Cl=ha;function o_(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 _a=class extends j{constructor(e){super(),X(this,e,null,o_,G,{})}},b1=_a;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","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 ba=class extends j{constructor(e){super(),X(this,e,null,r_,G,{})}},g1=ba;function l_(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 ga=class extends j{constructor(e){super(),X(this,e,null,l_,G,{})}},v1=ga;function s_(i){ye(i,"svelte-2dg73m",".reverted.svelte-2dg73m{transform:rotate(180deg)}")}function a_(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 u_(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 c_(i){let e;function t(s,r){return s[1]?u_:a_}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 f_(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 va=class extends j{constructor(e){super(),X(this,e,f_,c_,G,{direction:3,color:0},s_)}},Yn=va;function d_(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 ya=class extends j{constructor(e){super(),X(this,e,null,d_,G,{})}},y1=ya;function m_(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 wa=class extends j{constructor(e){super(),X(this,e,null,m_,G,{})}},lr=wa;function p_(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 ka=class extends j{constructor(e){super(),X(this,e,null,p_,G,{})}},w1=ka;function h_(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 Ca=class extends j{constructor(e){super(),X(this,e,null,h_,G,{})}},k1=Ca;function __(i){ye(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 C1(i,e,t){let n=i.slice();return n[142]=e[t],n}function S1(i,e,t){let n=i.slice();return n[145]=e[t],n}function T1(i,e,t){let n=i.slice();return n[148]=e[t],n}function P1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g=i[34]&&I1(i),b=i[25]&&E1(i),w=i[24]&&V1(i),S=i[23]&&L1(i),I=i[22]&&A1(i),k=i[21]&&B1(i),C=i[34]&&R1(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=I1(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=E1(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=V1(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=L1(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=A1(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=B1(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=R1(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,xe(_)}}}function I1(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",et(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 E1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;n=new kl({});let b=i[33]&&!i[34]&&M1(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",et(i[58])),de(e,"keydown",i[79])],_=!0)},p(w,S){(!p||S[0]&65536)&&He(a,w[16]),w[33]&&!w[34]?b?(b.p(w,S),S[1]&12&&m(b,1)):(b=M1(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,xe(g)}}}function M1(i){let e,t,n;var o=i[33];function s(r){return{}}return o&&(t=wn(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=wn(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 V1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g;return n=new v1({}),{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",et(Et(i[62]))),de(e,"keydown",i[82])],_=!0)},p(b,w){(!p||w[0]&512)&&He(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,xe(g)}}}function L1(i){let e,t,n,o,s,r,l,a=i[35].displayValue+"",c,f,p,_,g;return n=new Cl({}),{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",et(i[64])),de(e,"keydown",i[85])],_=!0)},p(b,w){(!p||w[1]&16)&&a!==(a=b[35].displayValue+"")&&He(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,xe(g)}}}function A1(i){let e,t,n,o,s,r,l,a,c,f,p,_;return n=new g1({}),{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",et(i[59])),de(e,"keydown",i[88])],p=!0)},p(g,b){(!f||b[0]&67108864)&&He(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,xe(_)}}}function B1(i){let e,t,n,o,s,r,l,a,c;return n=new b1({}),{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",et(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,xe(c)}}}function R1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k=i[37].showSupport&&b_(i);return o=new w1({}),p=new k1({}),{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",et(i[69])),de(t,"keydown",i[93]),de(c,"click",et(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,xe(I)}}}function b_(i){let e,t,n,o,s,r,l,a,c;return n=new y1({}),{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",et(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,xe(c)}}}function N1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b;n=new Yn({props:{direction:"left"}});let w=wt(i[8]),S=[];for(let k=0;k<w.length;k+=1)S[k]=F1(T1(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",et(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=wt(k[8]);let U;for(U=0;U<w.length;U+=1){let $=T1(k,w,U);S[U]?(S[U].p($,C),m(S[U],1)):(S[U]=F1($),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),Hi(S,k),i[116](null),g=!1,xe(b)}}}function D1(i){let e,t,n;return t=new lr({}),{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 O1(i){let e,t,n;var o=_o(i[148].value);function s(r){return{}}return o&&(t=wn(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=_o(r[148].value))){if(t){ce();let a=t;h(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(t=wn(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 F1(i){let e,t,n,o=i[148].displayValue+"",s,r,l=!i[34]&&_o(i[148].value),a,c,f,p,_,g,b=i[148].selected&&D1(i),w=l&&O1(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",et(S)),de(e,"keydown",I)],_=!0)},p(k,C){i=k,i[148].selected?b?C[0]&256&&m(b,1):(b=D1(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+"")&&He(s,o),(!p||C[1]&8)&&L(n,"quality-title-mobile",i[34]),C[0]&256|C[1]&8&&(l=!i[34]&&_o(i[148].value)),l?w?(w.p(i,C),C[0]&256|C[1]&8&&m(w,1)):(w=O1(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,xe(g)}}}function H1(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b;n=new Yn({props:{direction:"left"}});let w=wt(i[7]),S=[];for(let k=0;k<w.length;k+=1)S[k]=U1(S1(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",et(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=wt(k[7]);let U;for(U=0;U<w.length;U+=1){let $=S1(k,w,U);S[U]?(S[U].p($,C),m(S[U],1)):(S[U]=U1($),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),Hi(S,k),i[120](null),g=!1,xe(b)}}}function z1(i){let e,t,n;return t=new lr({}),{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[145].displayValue+"",s,r,l,a,c,f,p,_=i[145].selected&&z1(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",et(g)),de(e,"keydown",b)],f=!0)},p(w,S){i=w,i[145].selected?_?S[0]&128&&m(_,1):(_=z1(i),_.c(),m(_,1),_.m(e,t)):_&&(ce(),h(_,1,1,()=>{_=null}),fe()),(!c||S[0]&128)&&o!==(o=i[145].displayValue+"")&&He(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,xe(p)}}}function q1(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 Yn({props:{direction:"left"}});let Y=!i[5]&&K1(i),M=i[5]&&W1(i);return{c(){var W;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"),Y&&Y.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]((W=i[19])==null?void 0:W.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(W,B){y(W,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,_),Y&&Y.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",et(i[66])),de(_,"click",et(i[122])),de(_,"keydown",i[123]),de(I,"click",et(i[124])),de(I,"keydown",i[125]),de(p,"keydown",i[89])],J=!0)},p(W,B){var te;(!ne||B[1]&8)&&L(t,"item-mobile",W[34]),W[5]?Y&&(ce(),h(Y,1,1,()=>{Y=null}),fe()):Y?B[0]&32&&m(Y,1):(Y=K1(W),Y.c(),m(Y,1),Y.m(_,g)),(!ne||B[1]&8)&&L(b,"quality-title-mobile",W[34]),(!ne||B[1]&8)&&L(_,"item-mobile",W[34]),W[5]?M?B[0]&32&&m(M,1):(M=W1(W),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",W[34]),(!ne||B[1]&8)&&L(I,"item-mobile",W[34]),(!ne||B[1]&8)&&L(p,"items-mobile",W[34]),(!ne||B[1]&8)&&L(le,"item-mobile",W[34]),(!ne||B[0]&524288&&P!==(P=W[73]((te=W[19])==null?void 0:te.clientHeight,!0)))&&u(f,"style",P),(!ne||B[1]&8)&&L(e,"menu-desktop",!W[34]),(!ne||B[1]&8)&&L(e,"menu-mobile",W[34])},i(W){ne||(m(n.$$.fragment,W),m(Y),m(M),ne=!0)},o(W){h(n.$$.fragment,W),h(Y),h(M),ne=!1},d(W){W&&v(e),F(n),i[121](null),Y&&Y.d(),M&&M.d(),i[126](null),J=!1,xe(K)}}}function K1(i){let e,t,n;return t=new lr({}),{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 W1(i){let e,t,n;return t=new lr({}),{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 Z1(i){let e,t,n,o,s,r,l,a,c,f,p,_;n=new Yn({props:{direction:"left"}});let g=wt(i[6]),b=[];for(let S=0;S<g.length;S+=1)b[S]=j1(C1(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",et(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=wt(S[6]);let C;for(C=0;C<g.length;C+=1){let E=C1(S,g,C);b[C]?(b[C].p(E,I),m(b[C],1)):(b[C]=j1(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),Hi(b,S),i[130](null),p=!1,xe(_)}}}function G1(i){let e,t,n;return t=new lr({}),{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 j1(i){let e,t,n,o=i[142].displayValue+"",s,r,l,a,c,f,p,_=i[142].selected&&G1(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",et(g)),de(e,"keydown",b)],f=!0)},p(w,S){i=w,i[142].selected?_?S[0]&64&&m(_,1):(_=G1(i),_.c(),m(_,1),_.m(e,t)):_&&(ce(),h(_,1,1,()=>{_=null}),fe()),(!c||S[0]&64)&&o!==(o=i[142].displayValue+"")&&He(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,xe(p)}}}function g_(i){let e,t,n,o,s,r,l=i[10]&&P1(i),a=i[12]&&N1(i),c=i[13]&&H1(i),f=i[15]&&q1(i),p=i[14]&&Z1(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=P1(_),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=N1(_),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=H1(_),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=q1(_),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=Z1(_),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 v_=18;function y_(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:Y}=e,M=Ge(),W=Dt(),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 Fe=M.state.isAutoQualityEnabled$;D(i,Fe,se=>t(103,S=se));let Ne=M.state.currentPlaybackRate$;D(i,Ne,se=>t(9,b=se));let Ke=M.state.availablePlaybackRates$;D(i,Ke,se=>t(7,p=se));let De=M.state.currentSubtitle$;D(i,De,se=>t(35,oe=se));let be=M.state.availableSubtitlesList$;D(i,be,se=>t(6,c=se));let Q=M.state.canDownload,_e=M.state.hasMpegSources$;D(i,_e,se=>t(107,E=se));let Le=M.ui.settingsMenuVisible;D(i,Le,se=>t(10,le=se));let qe=M.ui.settingsMenuOpenedByKeyboard;D(i,qe,se=>t(132,o=se));let Ze=M.ui.isMobile;D(i,Ze,se=>t(34,s=se));let he=M.ui.mobileNotReportControlHidden$;D(i,he,se=>t(104,I=se));let Pe=M.state.canChangePlaybackSpeed$;D(i,Pe,se=>t(105,k=se));let Re=M.ui.isFullscreen;D(i,Re,se=>t(135,q=se));let Ye=M.state.trafficSavingEnabled$;D(i,Ye,se=>t(5,l=se));let ve=M.ui.playerSize;D(i,ve,se=>t(134,$=se));let Z=M.ui.debugPanelVisible;D(i,Z,se=>t(36,P=se));let we=M.ui.playerSize;D(i,we,se=>t(133,U=se));let ue=M.state.isInteractiveTime$,Se=M.actions.internal.downloadVideo,ze=M.actions.internal.closeSettingsMenu,it=!0,lt=!1,nt=!1,_t=!1,dt=!1,ge=!1;function at(){o||Y==null||Y(),ze(),ge=!1}function At(){t(11,it=!1),t(12,lt=!0)}function Ct(){t(11,it=!1),t(15,dt=!0)}function Ae(se){M.actions.internal.setQuality(se),at()}function Ft(se){M.actions.internal.setTrafficSavingEnabled(se),at()}function pe(){t(11,it=!1),t(13,nt=!0)}function St(se){M.actions.internal.setPlaybackRate(se),at()}function Tt(){t(11,it=!1),t(14,_t=!0)}function ut(se){M.actions.internal.setSubtitle(se),at()}function ct(){t(11,it=!0),t(12,lt=!1),t(13,nt=!1),t(14,_t=!1),t(15,dt=!1)}function Je(){Se(),at()}function Te(){window.open(J,"_blank"),at(),M.actions.internal.pause()}function st(){Tr(M.actions.internal.getDebugTextData()),at()}function jt(){Z.set(!0),at()}function xt(){ge=!0}function Ji(){ge=!1}function fn(se,rt,Jt){if(!se)return"...";let oi=rt.find(Ut=>Ut.value===se),Di=oi?oi.displayValue:se;return Jt?se===x1.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:Di}):Di}let ci,fi,ki,$t,di;function $i(se=0,rt=!1){return s&&q&&rt?`max-height: ${Math.round($.height*.6)}px`:s?"":`max-height: ${U.height-v_-se-K}px; overflow: auto;`}let Ci,Si,mi,Ti,pi,Pi,Ii,Rt,Ht,Nt,hi=Ee(!1);D(i,hi,se=>t(101,_=se));let Zt,_i,ei=Ee(!1);D(i,ei,se=>t(100,f=se));let li,mt,zt=Ee(!1);D(i,zt,se=>t(99,a=se));let gt,ti,bi=Ee(!1);D(i,bi,se=>t(98,r=se));let bn=se=>{ml(se,ze)},en=se=>tt(this,null,function*(){Ir(se,At,()=>{let rt=g.findIndex(Jt=>Jt.selected);return Nt.childNodes[rt]})}),ii=se=>tt(this,null,function*(){Er(se,ct,hi,ze)}),si=(se,rt)=>{Xi(se,()=>Ae(rt))},Ei=se=>tt(this,null,function*(){Ir(se,pe,()=>{let rt=p.findIndex(Jt=>Jt.selected);return _i.childNodes[rt]})}),zi=se=>tt(this,null,function*(){Er(se,ct,ei,ze)}),Yt=(se,rt)=>{Xi(se,()=>St(rt))},It=se=>tt(this,null,function*(){Ir(se,Tt,()=>{let rt=c.findIndex(Jt=>Jt.selected);return mt.childNodes[rt]})}),Mi=se=>tt(this,null,function*(){Er(se,ct,zt,ze)}),tn=(se,rt)=>{Xi(se,()=>ut(rt))},ai=se=>tt(this,null,function*(){Ir(se,Ct,()=>{let rt=l?2:0;return ti.childNodes[rt]})}),nn=se=>tt(this,null,function*(){Er(se,ct,bi,ze)}),gi=(se,rt)=>{Xi(se,()=>Ft(rt))},dn=se=>{Xi(se,()=>Je())},on=se=>{Xi(se,()=>Te())},mn=se=>{Xi(se,()=>st())},Ui=se=>{Xi(se,()=>jt())};Vt(()=>{let se=ue.subscribe(rt=>{rt&&!s&&!ge&&!o&&at()});return()=>{se()}});function Vi(se){me[se?"unshift":"push"](()=>{Ht=se,t(1,Ht)})}function Qt(se){me[se?"unshift":"push"](()=>{Zt=se,t(2,Zt)})}function ni(se){me[se?"unshift":"push"](()=>{li=se,t(3,li)})}function vi(se){me[se?"unshift":"push"](()=>{gt=se,t(4,gt)})}function qi(se){me[se?"unshift":"push"](()=>{ne=se,t(0,ne)})}function Ki(se){me[se?"unshift":"push"](()=>{fi=se,t(17,fi)})}let yi=se=>Ae(se.value),Li=(se,rt)=>si(rt,se.value);function Ai(se){me[se?"unshift":"push"](()=>{Nt=se,t(29,Nt)})}function Ue(se){me[se?"unshift":"push"](()=>{ki=se,t(18,ki)})}let Wi=se=>St(se.value),Gt=(se,rt)=>Yt(rt,se.value);function Be(se){me[se?"unshift":"push"](()=>{_i=se,t(30,_i)})}function Bi(se){me[se?"unshift":"push"](()=>{$t=se,t(19,$t)})}let rn=()=>Ft(!1),Zi=se=>gi(se,!1),Ri=()=>Ft(!0),pn=se=>gi(se,!0);function Ni(se){me[se?"unshift":"push"](()=>{ti=se,t(32,ti)})}function ln(se){me[se?"unshift":"push"](()=>{di=se,t(20,di)})}let Xt=se=>ut(se),sn=(se,rt)=>tn(rt,se);function ui(se){me[se?"unshift":"push"](()=>{mt=se,t(31,mt)})}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,Y=se.returnFocus)},i.$$.update=()=>{var se;if(i.$$.dirty[0]&1024)e:le&&(t(11,it=!0),t(12,lt=!1),t(13,nt=!1),t(14,_t=!1),t(15,dt=!1));if(i.$$.dirty[3]&512)e:t(33,n=_o(w));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,ci=fn(w,g,S));if(i.$$.dirty[3]&18432)e:t(21,Ci=Q&&E&&!I);if(i.$$.dirty[3]&10240)e:t(22,Si=W.features.trafficSaving&&!I&&C);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,mi=c.length>0&&!I);if(i.$$.dirty[3]&6144)e:t(24,Ti=!!k&&!I);if(i.$$.dirty[3]&2048)e:t(25,pi=!I);if(i.$$.dirty[0]&32)e:t(26,Pi=l?z("traffic_saving_on"):z("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,Ii=S?z("auto_quality_option"):w);if(i.$$.dirty[0]&640)e:t(28,Rt=(se=p.find(rt=>rt.value===b))==null?void 0:se.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:Pr(Ht,hi,_);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:Pr(Zt,ei,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:Pr(li,zt,a);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:Pr(gt,bi,r)},[ne,Ht,Zt,li,gt,l,c,p,g,b,le,it,lt,nt,_t,dt,ci,fi,ki,$t,di,Ci,Si,mi,Ti,pi,Pi,Ii,Rt,Nt,_i,mt,ti,n,s,oe,P,W,B,te,Ce,Fe,Ne,Ke,De,be,_e,Le,qe,Ze,he,Pe,Re,Ye,ve,Z,we,at,At,Ct,Ae,Ft,pe,St,Tt,ut,ct,Je,Te,st,jt,xt,Ji,$i,hi,ei,zt,bi,bn,en,ii,si,Ei,zi,Yt,It,Mi,tn,ai,nn,gi,dn,on,mn,Ui,J,K,Y,r,a,f,_,w,S,I,k,C,E,Vi,Qt,ni,vi,qi,Ki,yi,Li,Ai,Ue,Wi,Gt,Be,Bi,rn,Zi,Ri,pn,Ni,ln,Xt,sn,ui]}var Sa=class extends j{constructor(e){super(),X(this,e,y_,g_,G,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},__,[-1,-1,-1,-1,-1])}},Sl=Sa;function w_(i){ye(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function k_(i){let e,t,n;return t=new kl({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 C_(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:[k_]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 S_(i,e,t){let n,o,s,{ref:r=void 0}=e,l=Ge(),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=ir(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 Ta=class extends j{constructor(e){super(),X(this,e,S_,C_,G,{ref:0},w_)}},Vr=Ta;function T_(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 Pa=class extends j{constructor(e){super(),X(this,e,null,T_,G,{})}},Y1=Pa;function P_(i){let e,t;return e=new Cl({}),{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 I_(i){let e,t;return e=new Y1({}),{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 E_(i){let e,t,n,o,s=[I_,P_],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 M_(i){let e,t;return e=new ft({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:jn.KeyC,$$slots:{default:[E_]},$$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 V_(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 Ia=class extends j{constructor(e){super(),X(this,e,V_,M_,G,{isSubtitlesEnabled:0,click:1})}},Q1=Ia;function L_(i){ye(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function X1(i){let e,t;return{c(){e=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&&He(t,n[3])},d(n){n&&v(e)}}}function A_(i){let e,t,n,o,s=i[2]&&X1(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&&He(n,r[4]),r[2]?s?s.p(r,l):(s=X1(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 B_(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=In(o));if(i.$$.dirty&64)e:t(4,c=In(s))},[l,n,r,a,c,o,s,f]}var Ea=class extends j{constructor(e){super(),X(this,e,B_,A_,G,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},L_)}},Tl=Ea;var io=require("@vkontakte/videoplayer-shared");function R_(i){ye(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 N_(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 D_(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 Ma=class extends j{constructor(e){super(),X(this,e,D_,N_,G,{volume:1,muted:2},R_)}},Oo=Ma;var On=require("@vkontakte/videoplayer-shared");var td=require("@vkontakte/videoplayer-shared");var ed=require("@vkontakte/videoplayer-shared");function O_(i){let e,t,n=i[4].default,o=ji(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)&&Yi(o,n,s,s[3],t?xi(n,s[3],r,null):Qi(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 F_(i,e,t){let n,{$$slots:o={},$$scope:s}=e,l=Ge().ui.overlayContainer$;D(i,l,_=>t(2,n=_));let a,c=_=>{!_||!a||!_.contains(a)||_.removeChild(a)},f=_=>{!_||!a||_.contains(a)||_.appendChild(a)};Vt(()=>(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 Va=class extends j{constructor(e){super(),X(this,e,F_,O_,G,{})}},J1=Va;function H_(i){ye(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 $1(i){let e,t;return e=new J1({props:{$$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&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 z_(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&&He(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 U_(i){let e,t,n,o,s,r,l=i[18].default,a=ji(l,i,i[21],null),c=i[1]&&$1(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)&&Yi(a,l,f,f[21],o?xi(l,f[21],p,null):Qi(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=$1(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,xe(r)}}}var Lr=5;function q_(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=ed.noop}=e,b=_==="top",w,S,I,k=0,C=b?Lr:-Lr,E=0,U=0,$=Dt(),q=Ge(),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(),Fe=Ce.width,Ne=S.clientWidth,Ke=o.width,De=(Fe-Ne)/2,be=Ce.left+c-te.left,Q=be+De,_e=Ce.top+f-te.top,Le=Ne/2-Lr,qe=Q<8,Ze=Q+Ne>Ke-8;qe&&(Q=8,Le=be+Ce.width/2-2.5*Lr),Ze&&(Q=Ke-8-Ne,Le=Ce.left-te.left+Ce.width/2-Q-Lr),t(6,E=Q),t(7,U=_e),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)},Y=()=>{S&&(I||(I=window.setTimeout(J,$.controls.hideTimeoutTooltips)),a&&J())},M=()=>{K(),window.clearTimeout(I),I=void 0};Vt(ne),qn(()=>window.clearTimeout(I));function W(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,Y,M,c,f,_,g,s,W,B,r]}var La=class extends j{constructor(e){super(),X(this,e,q_,U_,G,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},H_)}},Pl=La;function K_(i){ye(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 W_(i){let e,t=i[19].default,n=ji(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)&&Yi(n,t,o,o[24],e?xi(t,o[24],s,null):Qi(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;return e=new Pl({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[G_]},$$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 G_(i){let e,t=i[19].default,n=ji(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)&&Yi(n,t,o,o[24],e?xi(t,o[24],s,null):Qi(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 j_(i){let e,t,n,o,s,r,l,a,c,f=[Z_,W_],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),Kn(()=>i[23].call(e))},m(g,b){y(g,e,b),p[t].m(e,null),i[22](e),r=Zo(e,i[23].bind(e)),l=!0,a||(c=[de(e,"pointerdown",et(Et(i[20]))),de(e,"click",et(Et(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,xe(c)}}}function x_(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=td.noop}=e,{initialTranslateXPx:C=0}=e,{initialTranslateYPx:E=-18}=e,U=Ge(),$=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){Pn.call(this,i,K)}function P(K){Pn.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 Aa=class extends j{constructor(e){super(),X(this,e,x_,j_,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},K_)}},Bt=Aa;function Y_(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 Q_(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ba=class extends j{constructor(e){super(),X(this,e,Q_,Y_,G,{completed:0})}},Il=Ba;function X_(i){ye(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 J_(i){let e,t,n,o,s;return t=new Il({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}%`),Kn(()=>i[3].call(e)),L(e,"disabled",i[1])},m(r,l){y(r,e,l),O(t,e,null),o=Zo(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 $_(i){let e,t;return e=new Bt({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:[J_]},$$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 e4(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 Ra=class extends j{constructor(e){super(),X(this,e,e4,$_,G,{videoEpisode:0,disabled:1},X_)}},id=Ra;function t4(i){ye(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 nd(i,e,t){let n=i.slice();return n[2]=e[t],n}function od(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 i4(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=od(nd(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=wt(o[0]);let r;for(r=0;r<t.length;r+=1){let l=nd(o,t,r);n[r]?n[r].p(l,s):(n[r]=od(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),Hi(n,o)}}}function n4(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 Na=class extends j{constructor(e){super(),X(this,e,n4,i4,G,{videoEpisodes:0,isMobile:1},t4)}},rd=Na;function o4(i){ye(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 ld(i,e,t){let n=i.slice();return n[48]=e[t],n}function sd(i){let e,t,n=wt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=ud(ld(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=wt(r[21]);let a;for(a=0;a<n.length;a+=1){let c=ld(r,n,a);o[a]?(o[a].p(c,l),m(o[a],1)):(o[a]=ud(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),Hi(o,r)}}}function ad(i){let e,t;return e=new id({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 ud(i){let e,t,n=i[48].interactive&&ad(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=ad(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 r4(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 l4(i){let e,t;return e=new rd({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 s4(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b=i[8]&&sd(i),w=[l4,r4],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",Et(i[22])),de(t,"pointermove",Et(i[23])),de(t,"pointerup",Et(i[24])),de(t,"pointerenter",Et(i[25])),de(t,"pointerleave",Et(i[26])),de(t,"click",et(On.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=sd(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,xe(g)}}}function a4(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=On.noop}=e,{onHandleMove:U=On.noop}=e,{onPointerUp:$=On.noop}=e,{onPointerEnter:q=On.noop}=e,{onPointerMove:le=On.noop}=e,{onPointerLeave:oe=On.noop}=e,{onWheelUp:P=On.noop}=e,{onWheelDown:ne=On.noop}=e,{onWheelLeft:J=On.noop}=e,{onWheelRight:K=On.noop}=e,{loadedProgress:Y=0}=e,{filledProgress:M=0}=e,{handleProgress:W=0}=e,{ariaLabel:B=""}=e,{ariaValueMin:te=void 0}=e,{ariaValueMax:Ce=void 0}=e,{ariaValueNow:Fe=void 0}=e,{ariaValueText:Ne=""}=e,Ke=Dt(),De=!1,be;function Q(Z){if(De)return;t(20,De=!0),C=k.getBoundingClientRect();let we=Pe(Z.clientX,Z.clientY);E(we),k.setPointerCapture(Z.pointerId)}function _e(Z){let we=Pe(Z.clientX,Z.clientY),ue=Re(Z.clientX);le(we,ue,C.width),De&&U(we)}function Le(Z){if(!De)return;t(20,De=!1);let we=Pe(Z.clientX,Z.clientY);$(we)}function qe(Z){C=k.getBoundingClientRect();let we=Pe(Z.clientX,Z.clientY),ue=Re(Z.clientX);q(we,ue,C.width)}function Ze(){oe()}function he(Z){b&&(Z.preventDefault(),Z.deltaY<0?P():Z.deltaY>0?ne():Z.deltaX>0?K():J())}function Pe(Z,we){return a?Math.max(0,Math.min(1,(C.height-(we-C.top))/C.height)):Math.min(Math.max(Z-C.x,0),C.width)/C.width}function Re(Z){return Math.min(Math.max(Z-C.x,0),C.width)}function Ye(Z,we){let ue=Ke.features.episodesClustering&&!w?Ke.episodeMinWidthPc:0,Se=[],ze=0,it=0,lt=0;for(let dt=1;dt<g.length;dt++)it=g[dt].time/be*100,it-ze>ue&&(Se.push({from:ze,width:Math.max(0,it-ze),loadedWidth:Math.max(0,Math.min(it,Z)-ze),filledWidth:Math.max(0,Math.min(it,we)-ze),interactive:g[dt-1].interactive,completed:g[dt-1].completed}),ze=g[dt].time/be*100,lt++);let nt={from:ze,width:Math.max(0,100-ze),loadedWidth:Math.max(0,Math.min(Z,100)-ze),filledWidth:Math.max(0,Math.min(we,100)-ze),interactive:g[lt].interactive,completed:g[lt].completed};100-ze<ue?(lt-=1,Se[lt].width+=100-ze,Se[lt].loadedWidth+=Math.max(0,Math.min(Z,100)-ze),Se[lt].filledWidth+=Math.max(0,Math.min(we,100)-ze)):Se[lt]=nt;let _t=g[0].time;if(_t!==0){let dt=_t/be*100;Se.unshift({from:0,width:dt,loadedWidth:Math.min(dt,Z),filledWidth:Math.min(dt,we)})}return Se}function ve(Z){me[Z?"unshift":"push"](()=>{k=Z,t(19,k)})}return i.$$set=Z=>{"className"in Z&&t(0,s=Z.className),"testId"in Z&&t(1,r=Z.testId),"isHidden"in Z&&t(2,l=Z.isHidden),"isVertical"in Z&&t(3,a=Z.isVertical),"isActiveLive"in Z&&t(4,c=Z.isActiveLive),"isMobile"in Z&&t(5,f=Z.isMobile),"isAds"in Z&&t(6,p=Z.isAds),"squareBorders"in Z&&t(7,_=Z.squareBorders),"videoEpisodes"in Z&&t(28,g=Z.videoEpisodes),"withWheelHandler"in Z&&t(29,b=Z.withWheelHandler),"isInteractive"in Z&&t(8,w=Z.isInteractive),"disabled"in Z&&t(9,S=Z.disabled),"hideHandel"in Z&&t(10,I=Z.hideHandel),"onPointerDown"in Z&&t(30,E=Z.onPointerDown),"onHandleMove"in Z&&t(31,U=Z.onHandleMove),"onPointerUp"in Z&&t(32,$=Z.onPointerUp),"onPointerEnter"in Z&&t(33,q=Z.onPointerEnter),"onPointerMove"in Z&&t(34,le=Z.onPointerMove),"onPointerLeave"in Z&&t(35,oe=Z.onPointerLeave),"onWheelUp"in Z&&t(36,P=Z.onWheelUp),"onWheelDown"in Z&&t(37,ne=Z.onWheelDown),"onWheelLeft"in Z&&t(38,J=Z.onWheelLeft),"onWheelRight"in Z&&t(39,K=Z.onWheelRight),"loadedProgress"in Z&&t(11,Y=Z.loadedProgress),"filledProgress"in Z&&t(12,M=Z.filledProgress),"handleProgress"in Z&&t(13,W=Z.handleProgress),"ariaLabel"in Z&&t(14,B=Z.ariaLabel),"ariaValueMin"in Z&&t(15,te=Z.ariaValueMin),"ariaValueMax"in Z&&t(16,Ce=Z.ariaValueMax),"ariaValueNow"in Z&&t(17,Fe=Z.ariaValueNow),"ariaValueText"in Z&&t(18,Ne=Z.ariaValueText)},i.$$.update=()=>{var Z;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=((Z=g[g.length-1])==null?void 0:Z.time)<be);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=g.length&&n&&be?Ye(Y*100,M*100):[])},[s,r,l,a,c,f,p,_,w,S,I,Y,M,W,B,te,Ce,Fe,Ne,k,De,o,Q,_e,Le,qe,Ze,he,g,b,E,U,$,q,le,oe,P,ne,J,K,be,n,ve]}var Da=class extends j{constructor(e){super(),X(this,e,a4,s4,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},o4,[-1,-1])}},sr=Da;var En=(i,e)=>Eo[i]>=Eo[e],cd=(i,e)=>Eo[i]<Eo[e],El=(i,e)=>Eo[i]<=Eo[e],fd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function u4(i){ye(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 c4(i){let e,t;return e=new Oo({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 f4(i){let e,t;return e=new ft({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:jn.KeyM,$$slots:{default:[c4]},$$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 dd(i){let e,t,n;return t=new sr({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]:io.noop,onPointerLeave:i[2]?i[20]:io.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]:io.noop),s[0]&4&&(r.onPointerLeave=o[2]?o[20]:io.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 d4(i){let e,t,n,o,s,r;t=new Pl({props:{content:i[6],translateY:-18,$$slots:{default:[f4]},$$scope:{ctx:i}}});let l=i[4]&&dd(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(){wi(i[2]?i[21]:io.noop)&&(i[2]?i[21]:io.noop).apply(this,arguments)}),de(e,"mouseleave",function(){wi(i[2]?i[22]:io.noop)&&(i[2]?i[22]:io.noop).apply(this,arguments)}),de(e,"wheel",Et(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=dd(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,xe(r)}}}function m4(i,e,t){var De,be;let n,o,s,r,{click:l}=e,a=Ge(),c=Dt(),f=a.state.volume$;D(i,f,Q=>t(3,n=Q));let p=a.state.muted$;D(i,p,Q=>t(25,r=Q));let _=a.actions.internal.setVolume,g=a.ui.currentGridType$;D(i,g,Q=>t(24,s=Q));let b=(De=a.callbacks)==null?void 0:De.onAudioDoesNotExistHint,w=(be=a.callbacks)==null?void 0:be.onAudioDisabledHint,S=a.state.isAudioAvailable$;D(i,S,Q=>t(4,o=Q));let I=a.state.isAudioDisabled,k=!1,C,E,U,$,q,le,oe=1,P=!1,ne=!1;function J(Q){oe=n,_(Q)}function K(){bl(a,n,c.controls.volumeStepWheel)}function Y(){gl(a,n,c.controls.volumeStepWheel)}function M(Q){_(Q)}function W(Q){let _e=Q;_(_e,_e===0?oe:_e)}function B(){P=!0}function te(){P=!1,Ne()}function Ce(){clearTimeout(C),t(5,k=!0)}function Fe(){Ne()}function Ne(){C=window.setTimeout(()=>{P||t(5,k=!1)},c.controls.volumeBarTimeout)}function Ke(Q){Q.deltaY<0?K():Q.deltaY>0&&Y()}return i.$$set=Q=>{"click"in Q&&t(0,l=Q.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,$=!o||r);if(i.$$.dirty[0]&16777216)e:t(2,q=El(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,Y,M,W,B,te,Ce,Fe,Ke,s,r]}var Oa=class extends j{constructor(e){super(),X(this,e,m4,d4,G,{click:0},u4,[-1,-1])}},md=Oa;var hd=require("@vkontakte/videoplayer-shared");function p4(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 h4(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 _4(i){let e,t,n;function o(l,a){return l[0]?h4:p4}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 b4(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Fa=class extends j{constructor(e){super(),X(this,e,b4,_4,G,{isFullscreen:0})}},pd=Fa;function g4(i){let e,t;return e=new pd({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 v4(i){let e,t;return e=new ft({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:jn.KeyF,$$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&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 y4(i,e,t){let{isFullscreen:n=!1}=e,{click:o=hd.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 Ha=class extends j{constructor(e){super(),X(this,e,y4,v4,G,{isFullscreen:0,click:1})}},Ml=Ha;function w4(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 za=class extends j{constructor(e){super(),X(this,e,null,w4,G,{})}},ar=za;function k4(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 Ua=class extends j{constructor(e){super(),X(this,e,null,k4,G,{})}},Vl=Ua;var bd=require("@vkontakte/videoplayer-shared");function C4(i){ye(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 _d(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 S4(i){let e,t,n,o,s=i[1]&&_d(i);var r=i[8];function l(a){return{}}return r&&(n=wn(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=_d(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=wn(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 T4(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:jn.KeyK,$$slots:{default:[S4]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 P4(i,e,t){let n,o,{fakeIsPlaying$:s}=Nn();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=bd.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?Vl:ar)};e:t(6,g=_);return[r,l,c,f,p,b,g,S,n,s,a,w,o,I]}var qa=class extends j{constructor(e){super(),X(this,e,P4,T4,G,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},C4)}},Ar=qa;function I4(i){ye(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 E4(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 M4(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 Ka=class extends j{constructor(e){super(),X(this,e,M4,E4,G,{isPrev:0,isMobile:1},I4)}},gd=Ka;function V4(i){let e,t;return e=new gd({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 L4(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:[V4]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 A4(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 Wa=class extends j{constructor(e){super(),X(this,e,A4,L4,G,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},ur=Wa;function B4(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 Za=class extends j{constructor(e){super(),X(this,e,null,B4,G,{})}},vd=Za;function R4(i){ye(i,"svelte-1bbobod",".mobile.svelte-1bbobod{transform:scale(1.1) translateY(-1px)}")}function yd(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 N4(i){let e,t,n,o=!i[0]&&yd(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=yd(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 D4(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 Ga=class extends j{constructor(e){super(),X(this,e,D4,N4,G,{short:0,isMobile:1},R4)}},wd=Ga;function O4(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 ja=class extends j{constructor(e){super(),X(this,e,null,O4,G,{})}},kd=ja;function H4(i){let e,t;return e=new vd({}),{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 z4(i){let e,t;return e=new wd({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 U4(i){let e,t;return e=new kd({}),{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 q4(i){let e,t,n,o,s=[U4,z4,H4],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 K4(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:[q4]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 W4(i,e,t){let n,o,{ref:s=void 0}=e,{logoClickable:r=!1}=e,{targetUrl:l=""}=e,{click:a}=e,c=Dt(),f=Ge(),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||El(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 xa=class extends j{constructor(e){super(),X(this,e,W4,K4,G,{ref:0,logoClickable:1,targetUrl:9,click:10})}},Ll=xa;var Sd=require("@vkontakte/videoplayer-core");var Ya=require("@vkontakte/videoplayer-core");function Z4(i){ye(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 G4(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 j4(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 x4(i){let e;function t(s,r){return s[0]?j4:G4}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 Y4(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===Ya.ChromecastState.CONNECTING),t(1,s=o===Ya.ChromecastState.CONNECTED)},[n,s,r,o]}var Qa=class extends j{constructor(e){super(),X(this,e,Y4,x4,G,{isMobile:0,state:3},Z4)}},Cd=Qa;var Td=require("@vkontakte/videoplayer-shared");function Q4(i){let e,t;return e=new Cd({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 X4(i){let e,t,n;function o(r){i[5](r)}let s={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Q4]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 J4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:s}=e,{click:r=Td.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===Sd.ChromecastState.CONNECTED?z("tooltip_chromecast_on"):z("tooltip_chromecast_off"))},[n,o,s,r,l,a]}var Xa=class extends j{constructor(e){super(),X(this,e,J4,X4,G,{ref:0,isMobile:1,state:2,click:3})}},Al=Xa;var Bl=require("@vkontakte/videoplayer-core");function $4(i){let e,t;return e=new fl({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 eb(i){let e,t;return e=new ft({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Bl.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[$4]},$$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]===Bl.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 tb(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:s=!1}=e,{ariaLabel:r=""}=e,l=Ge(),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===Bl.PlaybackState.PAUSED&&f()})},[o,s,r,n,p,a]}var Ja=class extends j{constructor(e){super(),X(this,e,tb,eb,G,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Rl=Ja;function ib(i){ye(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 nb(i){let e,t,n,o,s=i[9].default,r=ji(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)&&Yi(r,s,l,l[8],o?xi(s,l[8],a,null):Qi(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 ob(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 $a=class extends j{constructor(e){super(),X(this,e,ob,nb,G,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},ib)}},Pd=$a;var Nl=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function rb(i){ye(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 Id(i){let e;function t(s,r){return s[2]&&s[10].completed===!1?sb:lb}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 lb(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||"")+"")&&He(t,e)},d(n){n&&v(t)}}}function sb(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 ab(i){let e,t,n,o,s,r,l,a,c=i[10]&&Id(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=Id(f),c.c(),c.m(s,null)):c&&(c.d(1),c=null),p&1&&He(a,f[0]),p&2&&L(e,"mobile",f[1])},i:R,o:R,d(f){f&&v(e),c&&c.d()}}}var cr=150;function ub(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,_=Ge().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>cr?(le=le/q*cr,q=cr):le>cr&&(q=q/le*cr,le=cr),{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 Y=g*K,M=b*J,W=-ne*g,B=-P*b;return{imgSrc:l.links[oe],imgWidth:Y,imgHeight:M,imgOffsetX:W,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=Nl(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 eu=class extends j{constructor(e){super(),X(this,e,ub,ab,G,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},rb)}},Ed=eu;function cb(i){ye(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 fb(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&&He(t,n[7])},i:R,o:R,d(n){n&&v(e)}}}function db(i){let e,t;return e=new Ed({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 mb(i){let e,t,n,o,s=[db,fb],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 pb(i){let e,t,n,o,s=[i[9]],r={$$slots:{default:[mb]},$$scope:{ctx:i}};for(let l=0;l<s.length;l+=1)r=gs(r,s[l]);return e=new Pd({props:r}),n=new sr({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?Ac(s,[Bc(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 hb(i,e,t){let n,o,s,r,l,a,c,f,p,_,g,{showTimeline:b=!1}=e,w=Ge(),S=Dt(),I=w.state.bufferedProgress$;D(i,I,ve=>t(12,_=ve));let k=w.state.positionWithScrubbing$;D(i,k,ve=>t(39,a=ve));let C=w.state.duration$;D(i,C,ve=>t(1,s=ve));let E=w.state.isLive$;D(i,E,ve=>t(0,o=ve));let U=w.state.isActiveLive$;D(i,U,ve=>t(11,p=ve));let $=w.ui.isMobile;D(i,$,ve=>t(10,f=ve));let q=S.features.episodes?w.actions.internal.getVideoEpisodes():void 0,le=w.actions.internal.getPreviewThumbsData(),oe=w.state.interactiveEpisodes$;D(i,oe,ve=>t(40,c=ve));let P=w.state.isInteractive,ne=w.state.isInteractiveTime$;D(i,ne,ve=>t(2,r=ve));let J=w.state.isInteractiveExpectation$;D(i,J,ve=>t(38,l=ve));let K=w.actions.internal.correctSeekTimeToInteractive,Y=w.ui.controls.disabledControls$;D(i,Y,ve=>t(13,g=ve));let M,W,B,te,Ce=!1,Fe="",Ne=0,Ke=0,De=0,be;function Q(ve){return!K||!P?ve:K(ve*s)/s}function _e(ve){w.actions.internal.startScrubbing(Q(ve))}function Le(ve){r||w.actions.internal.progressScrubbing(Q(ve))}function qe(ve){w.actions.internal.completeScrubbing(Q(ve)),t(34,Ce=!1)}function Ze(ve,Z,we){Re(ve,Z,we),t(34,Ce=!0)}function he(ve,Z,we){Re(ve,Z,we),t(34,Ce=!0)}function Pe(){t(34,Ce=!1)}function Re(ve,Z,we){t(8,De=ve),t(35,Ne=Z),we&&t(36,Ke=we),t(7,Fe=Ye(ve))}function Ye(ve){let Z=In((o?1-ve:ve)*s);return o?`-${Z}`:Z}return i.$$set=ve=>{"showTimeline"in ve&&t(33,b=ve.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,M=P?c:q);if(i.$$.dirty[0]&2)e:t(4,W=In(s));if(i.$$.dirty[1]&256)e:t(5,B=In(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:Ke,translateXPx:Ne,translateYPx:P&&le?-36:-16,active:Ce&&b&&!be,pointer:!S.features.timelinePreview||!le||o})},[o,s,r,M,W,B,te,Fe,De,n,f,p,_,g,S,I,k,C,E,U,$,le,oe,P,ne,J,Y,_e,Le,qe,Ze,he,Pe,b,Ce,Ne,Ke,be,l,a,c]}var tu=class extends j{constructor(e){super(),X(this,e,hb,pb,G,{showTimeline:33},cb,[-1,-1])}},Md=tu;function _b(i){let e,t;return e=new sr({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 bb(i,e,t){let n,{position:o=0}=e,{duration:s=0}=e,l=Ge().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=In(s));if(i.$$.dirty&64)e:t(2,c=In(o));if(i.$$.dirty&65)e:t(3,f=o/s)},[s,a,c,f,n,l,o]}var iu=class extends j{constructor(e){super(),X(this,e,bb,_b,G,{position:6,duration:0})}},Dl=iu;function gb(i){ye(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 vb(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 yb(i){let e,t,n,o,s=[kb,wb],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 wb(i){let e,t;return e=new Md({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 kb(i){let e,t;return e=new Dl({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 Cb(i){let e,t,n,o,s=[yb,vb],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 Sb(i,e,t){let n,o,s,r,{isAds:l=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e,p=Ge(),_=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 nu=class extends j{constructor(e){super(),X(this,e,Sb,Cb,G,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},gb)}},Ol=nu;var Ad=require("@vkontakte/videoplayer-shared");function Tb(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"),Mt(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 ou=class extends j{constructor(e){super(),X(this,e,null,Tb,G,{})}},Vd=ou;function Pb(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 ru=class extends j{constructor(e){super(),X(this,e,null,Pb,G,{})}},Ld=ru;function Ib(i){ye(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 Eb(i){let e,t,n,o;e=new Vd({});function s(a,c){if(a[4]==="FULL")return Lb;if(a[4]==="COUNT")return Vb}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 Mb(i){let e,t,n,o,s,r;return s=new Ld({}),{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)&&He(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 Vb(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+"")&&He(n,t)},d(o){o&&v(e)}}}function Lb(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&&He(t,n[2])},d(n){n&&v(e)}}}function Ab(i){let e,t,n,o,s=[Mb,Eb],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 Bb(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:[Ab]},$$scope:{ctx:i}};return i[1]!==void 0&&(s.ref=i[1]),e=new ft({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 Rb(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,_=Ge(),g=(ne=(P=_.callbacks)==null?void 0:P.onEpisodeChanged)!=null?ne:Ad.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,W,B;if(!!((M=_.callbacks)!=null&&M.onEpisodeClicked)){let te=ir(K);S.set(te),I.set(!0),(B=(W=_.callbacks)==null?void 0:W.onEpisodeClicked)==null||B.call(W,te)}},U,$,q,le=(K,Y,M)=>tt(this,null,function*(){yield Bn(),(K==null?void 0:K.getAttribute("aria-expanded"))==="false"&&Y&&!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=Nl(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:En(l,"xl")?t(4,$="FULL"):En(l,"m")&&cd(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 lu=class extends j{constructor(e){super(),X(this,e,Rb,Bb,G,{position:13,duration:14,timeCodes:0},Ib)}},Fl=lu;function Nb(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 su=class extends j{constructor(e){super(),X(this,e,null,Nb,G,{})}},Bd=su;function Db(i){let e,t;return e=new Bd({}),{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 Ob(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:[Db]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 Fb(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 au=class extends j{constructor(e){super(),X(this,e,Fb,Ob,G,{ref:0,hidden:1,disabled:2,click:3})}},Hl=au;function Hb(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 zb(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var uu=class extends j{constructor(e){super(),X(this,e,zb,Hb,G,{isOpened:0})}},Rd=uu;function Ub(i){let e,t;return e=new Rd({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 qb(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:[Ub]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 Kb(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 cu=class extends j{constructor(e){super(),X(this,e,Kb,qb,G,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},zl=cu;function Wb(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 fu=class extends j{constructor(e){super(),X(this,e,null,Wb,G,{})}},Ul=fu;var Dd=require("@vkontakte/videoplayer-shared");function Zb(i){ye(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 Nd(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 Gb(i){let e,t,n,o,s=i[1]&&Nd(i);return n=new Ul({}),{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=Nd(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 jb(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:jn.KeyK,$$slots:{default:[Gb]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 xb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{className:r=""}=e,{click:l=Dd.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 du=class extends j{constructor(e){super(),X(this,e,xb,jb,G,{ref:0,isMobile:1,disabled:2,className:3,click:4},Zb)}},Br=du;function Yb(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 mu=class extends j{constructor(e){super(),X(this,e,null,Yb,G,{})}},Od=mu;function Qb(i){let e,t;return e=new Od({}),{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 Xb(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:[Qb]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 Jb(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 pu=class extends j{constructor(e){super(),X(this,e,Jb,Xb,G,{ref:0,hidden:1,disabled:2,click:3})}},ql=pu;var hu=require("@vkontakte/videoplayer-shared");function $b(i){ye(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 e3(i){let e,t,n,o;return{c(){e=T("img"),u(e,"class","icon svelte-1x1zctw"),ys(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&&!ys(e.src,t=s[0])&&u(e,"src",t)},d(s){s&&v(e),n=!1,o()}}}function t3(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 i3(i){let e;function t(s,r){return s[5]?t3:e3}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 n3(i){let e,t;return e=new ft({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[i3]},$$scope:{ctx:i}}}),{c(){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 o3(i,e,t){let n,o,s,{iconUrl:r}=e,{ariaLabel:l}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=hu.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===hu.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 _u=class extends j{constructor(e){super(),X(this,e,o3,n3,G,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},$b)}},Kl=_u;var a0=require("@vkontakte/videoplayer-shared");var un=require("@vkontakte/videoplayer-core"),yP=require("@vkontakte/videoplayer-shared"),ot=require("@vkontakte/videoplayer-shared"),no=require("@vkontakte/videoplayer-statistics"),wP=require("@vkontakte/videoplayer-interactive");var Lt=require("@vkontakte/videoplayer-shared");var Fd=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var r3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Wl=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 Lt.Subject,started$:new Lt.Subject,paused$:new Lt.Subject,resumed$:new Lt.Subject,ended$:new Lt.Subject,skipped$:new Lt.Subject,clicked$:new Lt.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Lt.addScript)(r3,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,Lt.assertNonNullable)(this.adsState),(0,Lt.assertNonNullable)(this.playerState),(0,Lt.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),We(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{(0,Lt.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Lt.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Lt.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Lt.assertNonNullable)(this.adman),(0,Lt.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&&We(this.playerState.vsid);g&&(_=parseInt(g,36));let b=je(Pt(je({dl:encodeURIComponent(window.location.href),autoplay:s,player_width:t,player_height:n,puid10:Fd(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,Lt.assertNonNullable)(this.actions),(0,Lt.assertNonNullable)(this.adsState),(0,Lt.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,Lt.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=We(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){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,Lt.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Lt.assertNonNullable)(this.adman),(0,Lt.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Lt.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Lt.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Lt.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 Hd=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 bu=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 Zl,{startTime:c,endTime:f}=a.parse(l);s.startTime=c,s.endTime=f}else if(l.trim()!==""){let a=new gu,{texts:c}=a.parse(l);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&t.push(s)}return t}},Zl=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}},gu=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 Zl;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}},zd=bu;var Gl=require("@vkontakte/videoplayer-shared");var bo,Wt,vu=0,yu=!1,Ud=(i,e,t)=>{var c;let n=i>=vu,o=i<vu,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(vu=i,o&&(yu=!1),(0,Gl.isNonNullable)(bo)&&r(i,bo.startTime,bo.endTime)&&bo.lang===e.value)return bo;if(!(0,Gl.isNonNullable)(Wt)&&(a!=null&&a.length)&&!yu){let f=a.find(({startTime:p,endTime:_})=>r(i,p,_)||n&&s(i,p,_));Wt=f&&Pt(je({},f),{lang:e.value}),bo=void 0,!(0,Gl.isNonNullable)(Wt)&&a[a.length-1].endTime<i&&(yu=!0);return}else{if(r(i,Wt==null?void 0:Wt.startTime,Wt==null?void 0:Wt.endTime))return bo=Wt,Wt=void 0,bo;(n&&l(i,Wt==null?void 0:Wt.startTime,Wt==null?void 0:Wt.endTime)||o&&s(i,Wt==null?void 0:Wt.startTime,Wt==null?void 0:Wt.endTime))&&(Wt=void 0)}};var jl={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 qd=require("@vkontakte/videoplayer-shared"),Kd=require("@vkontakte/videoplayer-statistics"),xl=class{constructor(e,t){this.oneStat=new Kd.OneStat(e,t),this.statSubscription=new qd.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Wd=({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 x,bt,an,Gi;let le=Pt(je({},_),{configName:[...(x=_.configName)!=null?x:[],"ui"],isAudioDisabled:s,live:Pt(je({},(bt=_.live)!=null?bt:{}),{isLiveCatchUpMode:!!n})}),oe=p,P=g||new un.Player(le),ne=new ot.Logger,J=new Wl(ne,{loadTimeout:oe.ads.loadTimeout,initTimeout:oe.ads.initTimeout}),K=Lo.getInstance(),Y=a==null?void 0:a.pictureInPictureApi,M=a==null?void 0:a.annotationsApi,W=ne.createComponentLog("Store"),B,te,Ce={},Fe=(0,ot.getCurrentBrowser)(),Ne=q?kt(q.oneStat.vsid$):Rn(void 0),Ke=Ee(co()),De=(an=Y==null?void 0:Y.info.isActive$)!=null?an:new ot.ValueSubject(!1),be=Y==null?void 0:Y.info.type,Q=Ee(0),_e=Ee([]),Le=(0,ot.merge)(P.events.fatalError$,P.events.managedError$).subscribe(A=>_e.update(ae=>[...ae,A])),qe=Rn(!1,A=>{let ae=P.events.fatalError$.subscribe(()=>A(!0));return()=>ae.unsubscribe()}),Ze=A=>tt(void 0,null,function*(){var Oe;let ae=Object.values(ot.InterfaceLanguage).includes(A);if(oe.downloadVKLanguages&&(ae&&oe.updateBuiltinLanguages||!As(A))){let $e;try{$e=yield(0,ot.loadVKLangPack)(A,Fc,Hc)}catch(ht){(Oe=q==null?void 0:q.oneStat)==null||Oe.logError({errorType:"VKLangPack",fatal:!1}),K==null||K.report(ht,{errorType:"VKLangPack",fatal:!1})}$e&&(Ls({language:A,pack:$e,fallback:oe.defaultLanguage}),he.set(A))}As(A)&&he.set(A)}),he=Ee(i);Ze(i);let Pe=(A,ae)=>{let ke=We(he);return Bs(ke,A,ae,oe.defaultLanguage)},Re=Ee("thumb"),Ye=(()=>{let A=ri([qe,Re],([ae,ke])=>ae?"crashed":ke);return Pt(je({},A),{is:ae=>We(A)===ae})})(),ve=(()=>{let A=Ee(new Set(b));return Pt(je({},A),{add:ae=>{A.update(ke=>new Set([...ke].concat(ae)))},remove:ae=>{A.update(ke=>{let Oe=[...ke];return new Set(Array.isArray(ae)?Oe.filter($e=>!ae.includes($e)):Oe.filter($e=>$e!==ae))})},includes:ae=>{let ke=We(A);return Array.isArray(ae)?ae.every(Oe=>ke.has(Oe)):ke.has(ae)}})})();W({message:"create store"});let Z=A=>{let ae=A.container;ae.append(P.experimental.element$.getValue()),nt=new MutationObserver(ke=>{let{removedNodes:Oe}=ke[0];Oe.length&&ae.append(P.experimental.element$.getValue())}),nt.observe(ae,{childList:!0})},we=A=>{W({message:`init video, config: ${JSON.stringify(A)}`}),w?Z(A):P.initVideo(A),A.subtitles&&P.setExternalTextTracks(A.subtitles),B=A},ue=new ot.Subject,Se=A=>ue.next(A),ze=new ot.Subject,it=new ot.Subject,lt=new ot.Subject,nt=null,_t={actionRewind$:ze,actionSeek$:it,inPiP$:De,inFullscreen$:new ot.Observable(A=>Ke.subscribe(ae=>A.next(ae))),actionSetSubtitle$:lt,nextMovie$:ue};if(q){let{oneStat:A,statSubscription:ae}=q;ae.add(A.attachTo(P)),ae.add(A.attachToUi(_t)),ae.add(A.attachToAds(J.events)),A.authorize(o).catch(ke=>{W({message:`onestat auth error ${String(ke)}`})})}if(K){let A=new ot.Subscription,ae=(ke,Oe)=>A.add(ke.subscribe(Oe));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$,Oe=>{K.logIError(Oe)})}K.sentrySubscription.add(A)}let dt=()=>{(0,ot.isIOS)()&&te&&hf(te)},ge=new ot.Subscription().add(P.experimental.element$.subscribe(A=>{A&&(te=A,A.classList.add("player-media"),Bo(Y)&&(Y.updateVideoElement(),Y.registryEventHandlers()),w&&A.setAttribute("pip","false"))})).add(P.events.ended$.subscribe(()=>{var A;dt(),(A=l==null?void 0:l.onEnded)==null||A.call(l)})).add(P.events.started$.subscribe(()=>tt(void 0,null,function*(){var ae,ke;Bo(Y)&&(yield Y==null?void 0:Y.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(()=>{pt.state.isFirstBytes$.set(!0)})).add(P.info.is3DVideo$.subscribe(A=>{pt.ui.is3DVideo.set(A)})).add(P.info.isEnded$.subscribe(A=>{w&&(A?(I!=null&&I.getValue()&&ve.add(Qr),ve.add("PLAY_BUTTON")):ve.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)})),at=new ot.Subscription,At=()=>{at.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)}))},Ct=()=>{at.unsubscribe()},Ae=(A,ae)=>{P.startCameraManualRotation(A,ae)},Ft=(A=!1)=>{P.stopCameraManualRotation(A)},pe=(A,ae,ke)=>{P.moveCameraFocusPX(A,ae,ke)},St=()=>{P.holdCamera()},Tt=()=>{P.releaseCamera()},ut=Rn(P.info.position$.getValue(),A=>{let ae,ke,Oe=()=>{let $e=P.info.playbackState$.getValue(),ht=P.info.isLive$.getValue(),Ot=P.info.duration$.getValue(),yt=P.info.position$.getValue();if([un.PlaybackState.PLAYING,un.PlaybackState.PAUSED].includes($e)){let Oi=ht?yt-Ot:P.getExactTime();Oi!==ke&&A(Oi),ke=Oi}ae=requestAnimationFrame(Oe)};return Oe(),()=>cancelAnimationFrame(ae)}),ct=kt(De),Je=kt(P.info.playbackState$),Te=kt(P.info.currentBuffer$),st=kt(P.info.isEnded$),jt=kt(P.info.isLive$),xt=oe.features.playbackRate?kt(P.info.canChangePlaybackSpeed$):Rn(!1),Ji=kt(P.info.liveBufferTime$),fn=kt(P.info.volume$),ci=kt(P.info.muted$),fi=Ps(P.info.autoQualityLimits$.pipe((0,ot.map)(({max:A})=>A!==void 0)),((Gi=P.info.autoQualityLimits$.getValue())==null?void 0:Gi.max)!==void 0),ki=kt(P.info.autoQualityLimitingAvailable$),$t=kt(P.info.availableQualities$),di=kt(P.info.availableQualitiesFps$),$i=kt(P.info.chromecastState$),Ci=kt(P.info.chromecastDeviceName$),Si=kt(P.info.currentFormat$),mi=kt(P.info.throughputEstimation$),Ti=kt(P.info.videoBitrate$),pi=kt(P.info.intrinsicVideoSize$),Pi=kt(P.info.duration$),Ii=kt(P.info.isAudioAvailable$),Rt=null,Ht=P.info.isBuffering$,Nt=Rn(Ht.getValue(),A=>{let ae=Ht.subscribe(ke=>{ke&&Rt===null?Rt=window.setTimeout(()=>{A(Ht.getValue()),Rt=null},oe.loaderDelay):A(ke)});return()=>{ae.unsubscribe(),Rt&&clearTimeout(Rt)}}),hi=()=>{Rt&&clearTimeout(Rt),Rt=null},Zt=ri([Pi,jt],([A,ae])=>ae?-A:A),_i=ri([Je],([A])=>A===un.PlaybackState.PLAYING),ei=kt(P.info.atLiveEdge$),li=kt(P.info.atLiveDurationEdge$),mt=kt(P.info.position$),zt=ri([mt,Pi],([A,ae])=>isFinite(A)&&isFinite(ae)&&!!ae),gt=ri([$i],([A])=>A===un.ChromecastState.CONNECTED),ti=Ee(void 0),bi=kt(P.info.isAutoQualityEnabled$,A=>A&&ti.set(void 0)),bn=kt(P.info.currentQuality$,()=>ti.set(void 0)),en=ri([ti,bn],([A,ae])=>A!=null?A:ae),ii=ri([$t,di,bi,en,Si],([A,ae,ke,Oe,$e])=>{let ht=[];$e!==un.VideoFormat.MPEG&&ht.push({value:"auto",displayValue:Pe("auto_quality_option"),selected:ke});let Ot=A.filter(yt=>yt!==ot.VideoQuality.INVARIANT);for(let yt of Ot){let Oi=ae[yt],Co=yt===ot.VideoQuality.INVARIANT?Pe("auto_quality_option"):yt;ht.push({value:yt,displayValue:`${Co}${Oi?Hd(Oi):""}`,selected:ke?!1:yt===Oe})}return ht}),si=kt(P.info.currentPlaybackRate$),Ei=ri([si,ei,li],([A,ae,ke])=>{let Oe=ke||w?1:oe.controls.playbackRateMin,$e=ae?1:oe.controls.playbackRateMax,ht=oe.controls.playbackRateStep,Ot=[];for(let yt=Oe;yt<=$e;yt+=ht)Ot.push({value:yt,displayValue:yt===1?Pe("playback_rate_1"):Pe("playback_rate",{multiplier:yt.toString(10)}),selected:A===yt});return Ot}),zi=oe.features.subtitles?kt(P.info.availableTextTracks$):Rn([]),Yt=ri([zi],([A],ae)=>{let ke=[],Oe=[];for(let $e of A)$e.url&&ke.push(fetch($e.url));Promise.allSettled(ke).then($e=>{for(let[ht,Ot]of $e.entries())Ot.status==="fulfilled"&&Ot.value.text().then(yt=>{let Oi=new zd,Co=A[ht].language,Hr=!!A[ht].isAuto,Wo=Oi.parse(yt);Co&&Wo&&Oe.push({lang:Co,subtitles:Wo,isAuto:Hr}),ht===$e.length-1&&ae(Oe)})})}),It={displayValue:Pe("subtitles_off"),value:"off"},Mi=Ee(je({},It)),tn=ri([Yt,Mi,Yt],([A,ae])=>{if((A==null?void 0:A.length)>0){let ke=[Pt(je({},It),{selected:(ae==null?void 0:ae.value)===It.value})];for(let{lang:Oe,isAuto:$e}of A)jl[Oe]&&ke.push({displayValue:$e?Pe("subtitles_auto",{language:jl[Oe]}):jl[Oe],value:Oe,selected:(ae==null?void 0:ae.value)===Oe,isAuto:$e});return ke}else return[]}),ai=ri([ut,Mi,Yt],([A,ae,ke])=>{if(ae&&ae.value!==It.value)return Ud(A,ae,ke)}),nn=ri([ai],([A])=>A!=null&&A.texts?A.texts:[]),gi=Ee(!0),dn=ri([Te,Zt,mt,Ji],([A,ae,ke,Oe])=>{var yt;let $e=(yt=A==null?void 0:A.end)!=null?yt:0;if(!Oe)return $e/ae;let Ot=-ke+Oe-ae;return($e-Ot)/ae}),on=kt(P.info.availableSources$),mn=ri([on],([A])=>Object.keys((A==null?void 0:A[un.VideoFormat.MPEG])||{}).length>0),Ui=()=>{var ke,Oe,$e;let A=Object.keys(((Oe=(ke=P.info.availableSources$)==null?void 0:ke.getValue())==null?void 0:Oe[un.VideoFormat.MPEG])||{}),ae=(0,ot.getHighestQuality)(A)||ot.VideoQuality.Q_144P;return($e=B.sources[un.VideoFormat.MPEG])==null?void 0:$e[ae]},Vi=()=>{var ae;let A=Ui();A?Xc(A,((ae=B==null?void 0:B.meta)==null?void 0:ae.title)||"video"):W({message:"There is no URL for download video"})},Qt=()=>{W({message:"toggle muted"});let A=P.info.muted$.getValue(),Oe=!(P.info.volume$.getValue()===0||A);yi(Oe)},ni=()=>{pt.ui.settingsMenuVisible.set(!1)},vi=A=>{pt.ui.settingsMenuOpenedByKeyboard.set(!!A),pt.ui.settingsMenuVisible.set(!0)},qi=A=>{We(pt.ui.settingsMenuVisible)?ni():vi(A)},Ki=(A,ae=A,ke=!1)=>{var ht,Ot,yt;let Oe=!ke,$e=P.info.muted$.getValue();W({message:`set volume, volume: ${A}, preferredVolume: ${ae}, internalCall: ${Oe}`}),P.setVolume(A),J.setVolume(A),Oe&&((ht=l==null?void 0:l.onVolumeChange)==null||ht.call(l,A)),Es(ae),$e?(P.setMuted(!1),Oe&&((Ot=l==null?void 0:l.onUnmute)==null||Ot.call(l)),el(!1)):!$e&&A===0&&(P.setMuted(!0),Oe&&((yt=l==null?void 0:l.onMute)==null||yt.call(l)),el(!0))},yi=(A,ae=!1)=>{var $e,ht,Ot,yt;let ke=!ae,Oe=P.info.volume$.getValue();if(W({message:`set muted, currentVolume: ${Oe}, mute: ${A}, internalCall: ${ke}`}),P.setMuted(A),J.setVolume(A?0:Oe),el(A),ke&&(A?($e=l==null?void 0:l.onMute)==null||$e.call(l):(ht=l==null?void 0:l.onUnmute)==null||ht.call(l)),Oe===0){let Oi=(Ot=$r())!=null?Ot:oe.volumeDefault;Oi===0&&(Oi=oe.volumeMinRestore,Es(Oi)),P.setVolume(Oi),J.setVolume(Oi),ke&&((yt=l==null?void 0:l.onVolumeChange)==null||yt.call(l,Oi))}},Li=Ee(!1),Ai=A=>{Li.set(A),P.setLooped(A)};Ai($);let Ue=()=>{P.prepare()},Wi=()=>{var ae,ke;if((0,ot.assertNonNullable)(pt),!We(pt.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(W({message:"toggle play"}),We(pt.playerPhase)==="ads"){J.togglePlay();return}if(P.info.playbackState$.getValue()!==un.PlaybackState.PLAYING){if(P.info.isEnded$.getValue()){if(W({message:"toggle play, video ended, seek to 0"}),ze.next(),it.next(no.SeekAction.REWIND),w){k==null||k();return}P.seekTime(0)}W({message:"toggle play, call player.play"}),P.play(),(ae=l==null?void 0:l.onPlay)==null||ae.call(l)}else W({message:"toggle play, call player.pause"}),P.pause(),(ke=l==null?void 0:l.onPause)==null||ke.call(l)}},Gt=A=>{W({message:`set quality, quality: ${A}`}),P.setAutoQuality(A==="auto"),A!=="auto"?(nf(e,A),ti.set(A),P.setQuality(A)):Ms()},Be=A=>{W({message:`set trafficSavingEnabled, value: ${A}`}),P.setAutoQualityLimits({max:A?oe.trafficSavingLimit:void 0}),af(A)},Bi=A=>{P.setPlaybackRate(A)},rn=()=>{let A=We(Ei),ae=A.findIndex(({selected:Oe})=>Oe);if(ae===A.length-1)return;let ke=A[ae+1];Bi(ke.value)},Zi=()=>{let A=We(Ei),ae=A.findIndex(({selected:Oe})=>Oe);if(ae===0)return;let ke=A[ae-1];Bi(ke.value)},Ri=A=>{A&&A.value!==It.value&<.next(A.isAuto?A.value+"_auto":A.value),Mi.set(A)},pn=()=>{let A=We(tn),ae=We(Mi),ke=We(he);if((ae==null?void 0:ae.value)===It.value){let Oe=A.filter($e=>$e.value!==It.value).find($e=>$e.value===ke)||A[1];Ri(Oe!=null?Oe:je({},It))}else Ri(Pt(je({},It),{selected:!1}))},Ni=(A,ae,ke=!0)=>{if(W({message:`seek to time, time: ${A}`}),it.next(ae),P.info.isLive$.getValue()){let Oe=P.info.duration$.getValue(),$e=Math.min(0,Oe+A);P.seekTime($e,ke)}else{if(I!=null&&I.getValue())return;P.seekTime(wo(A),ke)}},ln=A=>{W({message:`seek to episode start time: ${A}`}),Ni(A,no.SeekAction.EPISODE,!0)},Xt=(A,ae)=>{W({message:`seek to percent, percent: ${A}`});let ke=Math.round(We(Zt)*A);Ni(ke,ae,!1)},sn=A=>{W({message:`seek external, time: ${A}`}),it.next(no.SeekAction.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-A:A)},ui=A=>{var ae,ke;W({message:`set auto quality limitation. Max: ${(ae=A.max)!=null?ae:"none"}. Min: ${(ke=A.min)!=null?ke:"none"}`}),P.setAutoQualityLimits(A)},se=A=>{W({message:`seek external to episode start time: ${A}`}),Ni(A,no.SeekAction.EPISODE,!0)},rt=A=>{W({message:`set playback rate to: ${A}`}),P.setPlaybackRate(A)},Jt=Ee(void 0),oi=Ee(!1),Di=A=>{W({message:`start scrubbing, progress: ${A}`}),oi.set(!0),Ut(A)},Ut=A=>{Jt.set(A)},Mn,Vn,kn=()=>{Jt.set(void 0),oi.set(!1)},qt=()=>{clearTimeout(Vn),clearTimeout(Mn),Mn=window.setTimeout(()=>{kn()},500),te==null||te.removeEventListener("seeked",qt)},Ln=A=>{W({message:`complete scrubbing, progress: ${A}`}),Xt(A,no.SeekAction.SLIDER),We(pt.ui.isMobile)&&We(pt.state.currentFormat$)===un.VideoFormat.HLS?(te==null||te.addEventListener("seeked",qt),Vn=window.setTimeout(()=>{qt()},300)):kn()},Zn=ri([ut,Zt,Jt],([A,ae,ke],Oe)=>{Oe((0,ot.isNonNullable)(ke)?ke*ae:A)}),An=Ee({width:0,height:0}),Fn=ri([An],([{width:A}],ae)=>{let ke=fd(A);ae(ke)}),Cn=Ee(!1),gn=ri([Fn,Cn],([A,ae])=>ae?U.filter(ke=>!ke.hideOnMobile):U.filter(ke=>{var Oe;return!((Oe=ke.hideOnDesktopGridTypes)!=null&&Oe.includes(A))})),Hn=ri([Cn,qe],([A,ae],ke)=>{ke(A&&ae)}),zn=()=>{it.next(no.SeekAction.LIVE),W({message:"switch to active live"}),P.seekTime(0),P.info.playbackState$.getValue()!==un.PlaybackState.PLAYING&&pt.actions.internal.togglePlay()},re=()=>J.skip(),vt=(A=!0)=>{(0,ot.assertNonNullable)(pt),W({message:`switch from ads to video, callPlay: ${A}`}),Re.set("video"),A&&P.play()},Sn=()=>{(0,ot.assertNonNullable)(pt),W({message:"switch from video to ads"}),pt.actions.internal.pause(),dt(),Re.set("ads")},hn=A=>{(0,ot.assertNonNullable)(pt);let ae=A?"waitingLive":"thumb";Re.set(ae)},Tn=A=>{(0,ot.assertNonNullable)(pt);let ae=A?"waitingRecord":"thumb";Re.set(ae)},vn=()=>((0,ot.assertNonNullable)(pt),Yc(P,B,pt)),oo=()=>((0,ot.assertNonNullable)(pt),Qc(P,B,pt)),ro=()=>te,vo=()=>{W({message:"toggle chromecast"}),P.toggleChromecast()},Xn=A=>{var ke;(0,ot.assertNonNullable)(pt);let ae=!A;if(We(pt.playerPhase)==="ads"){W({message:`pause ads, internalCall: ${ae}`}),J.pause();return}W({message:`pause video, internalCall: ${ae}`}),ae&&((ke=l==null?void 0:l.onPause)==null||ke.call(l)),P.pause()},yn=A=>{var ke;(0,ot.assertNonNullable)(pt);let ae=!A;if(We(pt.playerPhase)==="ads"){W({message:`play ads, internalCall: ${ae}`}),J.play();return}W({message:`play video, internalCall: ${ae}`}),ae&&((ke=l==null?void 0:l.onPlay)==null||ke.call(l)),P.play()},ie=(A,ae)=>{(0,ot.assertNonNullable)(pt),W({message:`first start, show ads: ${A}, internalCall: ${!ae}`}),A?Re.set("ads"):(Re.set("video"),ae?P.play():pt.actions.internal.togglePlay())},Jn=()=>(W({message:"getting time codes"}),c),lo=()=>{let A=Jn();if(!A||[0,1].includes(A.length))return;let ae=P.info.position$.getValue();return A.find(ke=>ke.time>ae)},zo=A=>{let ae=A;ae||(ae=lo()),ae&&(W({message:"seek to next episode"}),Ni(ae.time,no.SeekAction.EPISODE,!0))},Gn=()=>{let A=Jn();if(!A||[0,1].includes(A.length))return;let ae=P.info.position$.getValue(),ke=A.findIndex($e=>$e.time>ae),Oe=ke===-1?A.length-2:ke-2;if(!(Oe<0))return A[Oe]},so=A=>{let ae=A;ae||(ae=Gn()),ae&&(W({message:"seek to prev episode"}),Ni(ae.time,no.SeekAction.EPISODE,!0))},Uo=()=>(W({message:"getting preview thumbs data"}),f),qo=()=>tt(void 0,null,function*(){Y!=null&&Y.isActive()?yield Y==null?void 0:Y.remove():yield Y==null?void 0:Y.request()}),gr=(A=-90)=>{Q.update(ae=>ae+A)},$n=Ee([]);S==null||S.subscribe(A=>{let ae=[];for(let ke=0;ke<A.length;ke++){let{range:[Oe,$e],subjects:ht}=A[ke];ke===0&&Oe!==0&&ae.push({time:0,text:"",interactive:!1,completed:!0}),ae.push({time:Oe/1e3,text:"",interactive:!0,completed:!ht.length}),$e!==1/0&&ae.push({time:$e/1e3,text:"",interactive:!1,completed:!0})}$n.set(ae)});let yo=Ee(!1);I==null||I.subscribe(A=>{A&&We(oi)&&kn()});let wo=A=>{if(!w)return A;let ae=We($n),ke=We(Zt),$e=We(mt)/ke,ht=ae.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>$e);return typeof(ht==null?void 0:ht.time)=="number"?Math.min(A,ht.time-.05):A},Ko=()=>{pt.ui.episodes.panelOpened$.set(!1)},ko=()=>{clearTimeout(Vn),clearTimeout(Mn),ge.unsubscribe(),at.unsubscribe(),P.destroy(),J.destroy(),q==null||q.destroy(),K==null||K.destroy(),Le.unsubscribe(),nt==null||nt.disconnect(),nt=null},pt={interfaceLanguage$:he,initVideo:we,videoId:e,isClip:t,playerPhase:Ye,vsid:Ne,state:{positionExact$:ut,positionWithScrubbing$:Zn,duration$:Zt,playbackState$:Je,isPlaying$:_i,isLoaderVisible:Nt,bufferedProgress$:dn,isLive$:jt,canChangePlaybackSpeed$:xt,isActiveLive$:ei,isOldestAvailableLive$:li,isRewindableLive$:zt,isEnded$:st,muted$:ci,volume$:fn,trafficSavingEnabled$:fi,autoQualityLimitingAvailable$:ki,currentQuality$:en,isAutoQualityEnabled$:bi,availableQualities$:ii,currentPlaybackRate$:si,availablePlaybackRates$:Ei,currentSubtitle$:Mi,availableSubtitlesList$:tn,currentSubtitleCaptions$:nn,isAutoSubtitleCaptionVisible$:gi,chromecastState$:$i,chromecastDeviceName$:Ci,chromecastConnected$:gt,currentFormat$:Si,throughputEstimation$:mi,videoBitrate$:Ti,videoSize$:pi,errorLog$:_e,crashed$:qe,isAudioAvailable$:Ii,isAudioDisabled:!!s,canDownload:oe.features.download&&!!r,availableSources$:on,hasMpegSources$:mn,isInteractive:w,showInteractiveGraph:oe.features.interactiveGraph,showSeekToInteractive:oe.features.seekToInteractive,showPlayPrevChapter:oe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:oe.features.interactiveTimeIndicator&&!!We($n).length,interactiveEpisodes$:$n,isInteractiveTime$:I?kt(I):Ee(!1),graphIsOpened$:Ee(!1),isInteractiveExpectation$:yo,hasInteractiveBranches:C,playPrevChapterDisabledTooltip:E,looped$:Li,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$:ve},modals:{hotKeyMap:{show:Ee(!1),data:Ee({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ke,rotateAlpha:Q,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:An,isMobile:Cn,mobileNotReportControlHidden$:Hn,mobileUnmuteButtonExpanded:Ee(!1),mobileUnmuteButtonVisible:Ee(!1),icon3DVideoVisible:Ee(!1),settingsMenuVisible:Ee(!1),settingsMenuOpenedByKeyboard:Ee(!1),scrubbingInProgress:oi,is3DVideo:Ee(!1),isPictureInPictureActive$:ct,pictureInPictureType$:Rn(be),clientInfo$:Rn(Fe),currentGridType$:Fn,additionalButtons$:gn,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:Y,annotationsApi:M},actions:{internal:{preload:Ue,firstStart:A=>ie(A,!1),pause:()=>Xn(!1),togglePlay:Wi,toggleMuted:Qt,toggleSettingsMenu:qi,openSettingsMenu:vi,closeSettingsMenu:ni,setVolume:Ki,setQuality:Gt,setTrafficSavingEnabled:A=>Be(A),setPlaybackRate:Bi,incrementPlaybackRate:rn,decrementPlaybackRate:Zi,setSubtitle:Ri,toggleSubtitle:pn,togglePictureInPicture:qo,startScrubbing:Di,progressScrubbing:Ut,completeScrubbing:Ln,toggleChromecast:vo,switchToActiveLive:zn,switchFromAdsToVideo:vt,switchFromVideoToAds:Sn,skipAd:re,setWaitingLive:hn,setWaitingRecord:Tn,getDebugTextData:vn,getDebugPanelData:oo,getVideoElement:ro,seekTime:(A,ae,ke)=>Ni(A,ae,ke),clearDelayedBufferingCheckTimeout:hi,seekEpisodeStartTime:ln,seekToPercent:Xt,getNextEpisode:lo,seekToNextEpisode:zo,getPrevEpisode:Gn,seekToPrevEpisode:so,startLogging:At,stopLogging:Ct,startCameraManualRotation:Ae,stopCameraManualRotation:Ft,moveCameraFocusPX:pe,holdCamera:St,releaseCamera:Tt,getVideoEpisodes:Jn,getPreviewThumbsData:Uo,downloadVideo:Vi,addLanguage:Ls,setLanguage:Ze,nextMovie:Se,videoRotate:gr,correctSeekTimeToInteractive:wo,replayInteractive:k,setLooped:Ai},external:{firstStart:A=>ie(A,!0),play:()=>yn(!0),pause:()=>Xn(!0),seekTime:A=>sn(A),seekEpisodeStartTime:A=>se(A),setPlaybackRate:A=>rt(A),setAutoQualityLimits:A=>ui(A),setMuted:A=>yi(A,!0),setVolume:A=>Ki(A,A,!0),returnFocusToEpisodes:Ko}},callbacks:l,setUiCallbacks:A=>{Ce=je({},A)},getAdmanWrapper:()=>J,getLogger:()=>ne,destroy:ko};return pt};var Ql=(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=(i,e,t)=>tt(void 0,null,function*(){yield Bn(),e&&t&&(t.focus(),i.set(!1))});function s3(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 wu=class extends j{constructor(e){super(),X(this,e,null,s3,G,{})}},Zd=wu;function a3(i){let e,t;return e=new Zd({}),{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 u3(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:[a3]},$$scope:{ctx:i}};return i[2]!==void 0&&(s.ref=i[2]),e=new ft({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 c3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:s=""}=e,r=Ge(),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=ir(I),C=Vf(_);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 ku=class extends j{constructor(e){super(),X(this,e,c3,u3,G,{disabled:0,ariaLabel:1})}},Gd=ku;function f3(i){ye(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 d3(i){let e,t;return e=new Il({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 m3(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:[d3]},$$scope:{ctx:i}};return i[0]!==void 0&&(_.ref=i[0]),t=new Bt({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",et(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,xe(f)}}}function p3(i,e,t){var te;let n,o,s,r,l,a,{ref:c=void 0}=e,f,p=Ge(),_=Nn(),{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())};qn(()=>{I.clearTimeout(),oe()});let K=()=>{I.set(!1)};function Y(Ce){Pn.call(this,i,Ce)}function M(Ce){c=Ce,t(0,c)}function W(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,Y,M,W,B]}var Cu=class extends j{constructor(e){super(),X(this,e,p3,m3,G,{ref:0},f3,[-1,-1])}},Jl=Cu;function _3(i){ye(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 jd(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 xd(i){let e,t,n;function o(r){i[173](r)}let s={disabled:!i[9],tooltipContent:z("tooltip_previous"),$$slots:{default:[b3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(s.ref=i[23].prevButton),e=new Bt({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 b3(i){let e,t;return e=new ur({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 Yd(i){let e,t,n;function o(r){i[174](r)}let s={disabled:i[74],tooltipContent:z("tooltip_restart"),$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(s.ref=i[23].replayButton),e=new Bt({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 g3(i){let e,t;return e=new Br({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 Qd(i){let e,t,n;function o(r){i[176](r)}let s={tooltipContent:i[47],disabled:i[75],$$slots:{default:[v3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(s.ref=i[23].playButton),e=new Bt({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 v3(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 Ar({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 Xd(i){let e,t,n;function o(r){i[177](r)}let s={disabled:!i[8],tooltipContent:z("tooltip_next"),$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(s.ref=i[23].nextButton),e=new Bt({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 y3(i){let e,t;return e=new ur({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 w3(i){let e,t,n,o,s=i[121]&&k3(i),r=i[120]&&S3(i),l=i[119]&&P3(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 k3(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:[C3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(s.ref=i[23].playPrevChapterButton),e=new Bt({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 C3(i){let e,t;return e=new ql({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 S3(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:[T3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(s.ref=i[23].seekToInteractiveButton),e=new Bt({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 T3(i){let e,t;return e=new Hl({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 P3(i){let e,t,n;function o(r){i[180](r)}let s={tooltipContent:i[48],disabled:i[77],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(s.ref=i[23].interactiveGraphButton),e=new Bt({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 I3(i){let e,t;return e=new zl({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 Jd(i){let e,t,n;function o(r){i[181](r)}let s={tooltipContent:i[50],$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(s.ref=i[23].liveButton),e=new Bt({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 E3(i){let e,t;return e=new Rl({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 $d(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 Tl({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 e0(i){let e,t;return e=new Fl({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 M3(i){let e,t,n=i[20]&&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[20]?n?(n.p(o,s),s[0]&1048576&&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 V3(i){var n;let e,t;return e=new Kl({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 t0(i){let e,t;return e=new Bt({props:{tooltipContent:i[213],width:40,$$slots:{default:[V3]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){let 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 i0(i){let e,t,n;function o(r){i[185](r)}let s={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(s.ref=i[23].vkLogo),e=new Bt({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 L3(i){let e,t;return e=new Ll({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 A3(i){let e,t;return e=new md({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 n0(i){let e,t,n;function o(r){i[187](r)}let s={tooltipContent:i[52],$$slots:{default:[B3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(s.ref=i[23].subtitles),e=new Bt({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 B3(i){let e,t;return e=new Q1({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 o0(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 Sl({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 r0(i){let e,t,n;function o(r){i[190](r)}let s={tooltipContent:i[27]?void 0:z("tooltip_settings_off"),$$slots:{default:[R3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(s.ref=i[23].settings),e=new Bt({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 R3(i){let e,t,n;function o(r){i[189](r)}let s={};return i[25]!==void 0&&(s.ref=i[25]),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={};!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 N3(i){let e,t,n;function o(r){i[191](r)}let s={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[D3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(s.ref=i[23].context),e=new Bt({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 D3(i){let e,t;return e=new Gd({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 l0(i){let e,t,n;function o(r){i[192](r)}let s={tooltipContent:i[53],$$slots:{default:[O3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(s.ref=i[23].fullscreen),e=new Bt({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 O3(i){let e,t;return e=new Ml({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 s0(i){let e,t,n;function o(r){i[193](r)}let s={tooltipContent:i[54],$$slots:{default:[F3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(s.ref=i[23].chromecast),e=new Bt({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 F3(i){let e,t;return e=new Al({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 H3(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 Jl({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 z3(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,Y;t=new Ol({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let M=i[38]&&xd(i),W=i[35]&&Yd(i),B=i[36]&&Qd(i),te=i[37]&&Xd(i),Ce=i[117]&&w3(i),Fe=!i[4]&&i[33]&&Jd(i),Ne=i[19]&&$d(i);function Ke(ue){i[183](ue)}let De={className:"w-max",disabled:!i[20],tooltipContent:z("tooltip_episodes"),$$slots:{default:[M3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(De.ref=i[23].episodes),g=new Bt({props:De}),me.push(()=>Ve(g,"ref",Ke));let be=wt(i[28]),Q=[];for(let ue=0;ue<be.length;ue+=1)Q[ue]=t0(jd(i,be,ue));let _e=ue=>h(Q[ue],1,1,()=>{Q[ue]=null}),Le=i[43]&&!i[4]&&i0(i);function qe(ue){i[186](ue)}let Ze={$$slots:{default:[A3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Ze.ref=i[23].volume),E=new Bt({props:Ze}),me.push(()=>Ve(E,"ref",qe));let he=i[40]&&n0(i),Pe=!i[83]&&!i[4]&&o0(i),Re=i[42]&&!i[4]&&r0(i),Ye=i[84].features.contextMenuButton&&N3(i),ve=i[44]&&l0(i),Z=i[39]&&s0(i),we=i[122]&&H3(i);return{c(){e=T("div"),H(t.$$.fragment),n=N(),o=T("div"),s=T("div"),M&&M.c(),r=N(),W&&W.c(),l=N(),B&&B.c(),a=N(),te&&te.c(),c=N(),Ce&&Ce.c(),f=N(),Fe&&Fe.c(),p=N(),Ne&&Ne.c(),_=N(),H(g.$$.fragment),S=N(),I=T("div");for(let ue=0;ue<Q.length;ue+=1)Q[ue].c();k=N(),Le&&Le.c(),C=N(),H(E.$$.fragment),$=N(),he&&he.c(),q=N(),Pe&&Pe.c(),le=N(),Re&&Re.c(),oe=N(),Ye&&Ye.c(),P=N(),ve&&ve.c(),ne=N(),Z&&Z.c(),J=N(),we&&we.c(),K=Xe(),u(s,"class","controls-left svelte-st0uzk"),Kn(()=>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),W&&W.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),Fe&&Fe.m(s,null),d(s,p),Ne&&Ne.m(s,null),d(s,_),O(g,s,null),w=Zo(s,i[184].bind(s)),d(o,S),d(o,I);for(let ze=0;ze<Q.length;ze+=1)Q[ze]&&Q[ze].m(I,null);d(I,k),Le&&Le.m(I,null),d(I,C),O(E,I,null),d(I,$),he&&he.m(I,null),d(I,q),Pe&&Pe.m(I,null),d(I,le),Re&&Re.m(I,null),d(I,oe),Ye&&Ye.m(I,null),d(I,P),ve&&ve.m(I,null),d(I,ne),Z&&Z.m(I,null),i[194](o),i[195](e),y(ue,J,Se),we&&we.m(ue,Se),y(ue,K,Se),Y=!0},p(ue,Se){let ze={};Se[1]&16384&&(ze.isHidden=!ue[45]),Se[0]&16&&(ze.isAds=ue[4]),Se[0]&32&&(ze.canRewindLive=ue[5]),Se[1]&2&&(ze.isRewindableLive=ue[32]),t.$set(ze),ue[38]?M?(M.p(ue,Se),Se[1]&128&&m(M,1)):(M=xd(ue),M.c(),m(M,1),M.m(s,r)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),ue[35]?W?(W.p(ue,Se),Se[1]&16&&m(W,1)):(W=Yd(ue),W.c(),m(W,1),W.m(s,l)):W&&(ce(),h(W,1,1,()=>{W=null}),fe()),ue[36]?B?(B.p(ue,Se),Se[1]&32&&m(B,1)):(B=Qd(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=Xd(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]?Fe?(Fe.p(ue,Se),Se[0]&16|Se[1]&4&&m(Fe,1)):(Fe=Jd(ue),Fe.c(),m(Fe,1),Fe.m(s,p)):Fe&&(ce(),h(Fe,1,1,()=>{Fe=null}),fe()),ue[19]?Ne?(Ne.p(ue,Se),Se[0]&524288&&m(Ne,1)):(Ne=$d(ue),Ne.c(),m(Ne,1),Ne.m(s,_)):Ne&&(ce(),h(Ne,1,1,()=>{Ne=null}),fe());let it={};if(Se[0]&1048576&&(it.disabled=!ue[20]),Se[0]&1048576|Se[2]&1310720|Se[6]&1073741824&&(it.$$scope={dirty:Se,ctx:ue}),!b&&Se[0]&8388608&&(b=!0,it.ref=ue[23].episodes,Me(()=>b=!1)),g.$set(it),Se[0]&268435456){be=wt(ue[28]);let nt;for(nt=0;nt<be.length;nt+=1){let _t=jd(ue,be,nt);Q[nt]?(Q[nt].p(_t,Se),m(Q[nt],1)):(Q[nt]=t0(_t),Q[nt].c(),m(Q[nt],1),Q[nt].m(I,k))}for(ce(),nt=be.length;nt<Q.length;nt+=1)_e(nt);fe()}ue[43]&&!ue[4]?Le?(Le.p(ue,Se),Se[0]&16|Se[1]&4096&&m(Le,1)):(Le=i0(ue),Le.c(),m(Le,1),Le.m(I,C)):Le&&(ce(),h(Le,1,1,()=>{Le=null}),fe());let lt={};Se[6]&1073741824&&(lt.$$scope={dirty:Se,ctx:ue}),!U&&Se[0]&8388608&&(U=!0,lt.ref=ue[23].volume,Me(()=>U=!1)),E.$set(lt),ue[40]?he?(he.p(ue,Se),Se[1]&512&&m(he,1)):(he=n0(ue),he.c(),m(he,1),he.m(I,q)):he&&(ce(),h(he,1,1,()=>{he=null}),fe()),!ue[83]&&!ue[4]?Pe?(Pe.p(ue,Se),Se[0]&16|Se[2]&2097152&&m(Pe,1)):(Pe=o0(ue),Pe.c(),m(Pe,1),Pe.m(I,le)):Pe&&(ce(),h(Pe,1,1,()=>{Pe=null}),fe()),ue[42]&&!ue[4]?Re?(Re.p(ue,Se),Se[0]&16|Se[1]&2048&&m(Re,1)):(Re=r0(ue),Re.c(),m(Re,1),Re.m(I,oe)):Re&&(ce(),h(Re,1,1,()=>{Re=null}),fe()),ue[84].features.contextMenuButton&&Ye.p(ue,Se),ue[44]?ve?(ve.p(ue,Se),Se[1]&8192&&m(ve,1)):(ve=l0(ue),ve.c(),m(ve,1),ve.m(I,ne)):ve&&(ce(),h(ve,1,1,()=>{ve=null}),fe()),ue[39]?Z?(Z.p(ue,Se),Se[1]&256&&m(Z,1)):(Z=s0(ue),Z.c(),m(Z,1),Z.m(I,null)):Z&&(ce(),h(Z,1,1,()=>{Z=null}),fe()),(!Y||Se[0]&2)&&L(e,"hidden",ue[1]),(!Y||Se[0]&8)&&L(e,"controls-hidden",!ue[3]),(!Y||Se[0]&4)&&L(e,"no-smooth",ue[2]),ue[122]&&we.p(ue,Se)},i(ue){if(!Y){m(t.$$.fragment,ue),m(M),m(W),m(B),m(te),m(Ce),m(Fe),m(Ne),m(g.$$.fragment,ue);for(let Se=0;Se<be.length;Se+=1)m(Q[Se]);m(Le),m(E.$$.fragment,ue),m(he),m(Pe),m(Re),m(Ye),m(ve),m(Z),m(we),Y=!0}},o(ue){h(t.$$.fragment,ue),h(M),h(W),h(B),h(te),h(Ce),h(Fe),h(Ne),h(g.$$.fragment,ue),Q=Q.filter(Boolean);for(let Se=0;Se<Q.length;Se+=1)h(Q[Se]);h(Le),h(E.$$.fragment,ue),h(he),h(Pe),h(Re),h(Ye),h(ve),h(Z),h(we),Y=!1},d(ue){ue&&(v(e),v(J),v(K)),F(t),M&&M.d(),W&&W.d(),B&&B.d(),te&&te.d(),Ce&&Ce.d(),Fe&&Fe.d(),Ne&&Ne.d(),F(g),w(),Hi(Q,ue),Le&&Le.d(),F(E),he&&he.d(),Pe&&Pe.d(),Re&&Re.d(),Ye&&Ye.d(),ve&&ve.d(),Z&&Z.d(),i[194](null),i[195](null),we&&we.d(ue)}}}function U3(i,e,t){var pc,hc;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,Y,M,W,B,te,Ce=R,Fe=()=>(Ce(),Ce=Kt(oe,ee=>t(144,te=ee)),oe),Ne,Ke=R,De=()=>(Ke(),Ke=Kt(le,ee=>t(145,Ne=ee)),le),be,Q=R,_e=()=>(Q(),Q=Kt(q,ee=>t(146,be=ee)),q),Le,qe=R,Ze=()=>(qe(),qe=Kt($,ee=>t(147,Le=ee)),$),he,Pe=R,Re=()=>(Pe(),Pe=Kt(U,ee=>t(148,he=ee)),U),Ye,ve=R,Z=()=>(ve(),ve=Kt(E,ee=>t(149,Ye=ee)),E),we,ue=R,Se=()=>(ue(),ue=Kt(C,ee=>t(150,we=ee)),C),ze,it=R,lt=()=>(it(),it=Kt(k,ee=>t(151,ze=ee)),k),nt,_t=R,dt=()=>(_t(),_t=Kt(I,ee=>t(152,nt=ee)),I),ge,at=R,At=()=>(at(),at=Kt(S,ee=>t(153,ge=ee)),S),Ct,Ae=R,Ft=()=>(Ae(),Ae=Kt(w,ee=>t(154,Ct=ee)),w),pe,St=R,Tt=()=>(St(),St=Kt(b,ee=>t(155,pe=ee)),b),ut,ct=R,Je=()=>(ct(),ct=Kt(g,ee=>t(156,ut=ee)),g),Te,st=R,jt=()=>(st(),st=Kt(_,ee=>t(157,Te=ee)),_),xt,Ji=R,fn=()=>(Ji(),Ji=Kt(p,ee=>t(158,xt=ee)),p),ci,fi=R,ki=()=>(fi(),fi=Kt(f,ee=>t(159,ci=ee)),f),$t,di=R,$i=()=>(di(),di=Kt(c,ee=>t(160,$t=ee)),c),Ci,Si,mi,Ti,pi,Pi,Ii,Rt,Ht,Nt,hi,Zt,_i,ei,li,mt,zt,gt,ti,bi,bn,en,ii;i.$$.on_destroy.push(()=>Ce()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Q()),i.$$.on_destroy.push(()=>qe()),i.$$.on_destroy.push(()=>Pe()),i.$$.on_destroy.push(()=>ve()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>it()),i.$$.on_destroy.push(()=>_t()),i.$$.on_destroy.push(()=>at()),i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>St()),i.$$.on_destroy.push(()=>ct()),i.$$.on_destroy.push(()=>st()),i.$$.on_destroy.push(()=>Ji()),i.$$.on_destroy.push(()=>fi()),i.$$.on_destroy.push(()=>di());let{bottomHidden:si}=e,{bottomNoSmooth:Ei}=e,{showControls:zi}=e,{controlsElementRef:Yt=void 0}=e,{isAds:It=!1}=e,{canRewindLive:Mi}=e,{logoClickable:tn}=e,{logoHidden:ai}=e,{logoTargetUrl:nn=""}=e,{showNextPrevButtons:gi}=e,{nextButtonActive:dn}=e,{prevButtonActive:on}=e,{isOneVideoPlaylist:mn=!1}=e,{supportLink:Ui}=e,{customFullscreenSupported:Vi=!0}=e,{playNextVideo:Qt}=e,{playPrevVideo:ni}=e,{repeatPlaylist:vi}=e,{toggleFullscreen:qi}=e,{returnFocus:Ki}=e,{seekToInteractive:yi}=e,{toggleGraph:Li}=e,{playPrevChapter:Ai}=e,Ue=Ge(),Wi=Nn(),Gt=Dt(),Be=Ue.actions.internal.toggleMuted,Bi=Ue.actions.internal.togglePlay,rn=Ue.actions.internal.pause,Zi=Ue.actions.internal.toggleSubtitle,Ri=(pc=Ue.callbacks)==null?void 0:pc.onAudioDoesNotExistHint,pn=(hc=Ue.callbacks)==null?void 0:hc.onAudioDisabledHint,Ni=Ue.state.duration$;D(i,Ni,ee=>t(82,en=ee));let ln=Ue.state.positionWithScrubbing$;D(i,ln,ee=>t(80,bi=ee));let Xt=Ue.state.playbackState$;D(i,Xt,ee=>t(161,mi=ee));let sn=Ue.state.chromecastConnected$;D(i,sn,ee=>t(83,ii=ee));let ui=Ue.state.isAudioAvailable$;D(i,ui,ee=>t(197,P=ee));let se=Ue.state.isAudioDisabled,rt=Ue.state.isEnded$;D(i,rt,ee=>t(169,ei=ee));let Jt=Ue.state.isLive$;D(i,Jt,ee=>t(33,Rt=ee));let oi=Ue.state.isActiveLive$;D(i,oi,ee=>t(163,Pi=ee));let Di=Ue.state.isRewindableLive$;D(i,Di,ee=>t(32,Ii=ee));let Ut=Ue.ui.isPictureInPictureActive$;D(i,Ut,ee=>t(165,Nt=ee));let Mn=Ue.ui.pictureInPictureType$;D(i,Mn,ee=>t(164,Ht=ee));let Vn=Ue.ui.settingsMenuVisible;D(i,Vn,ee=>t(27,K=ee));let kn=Ue.ui.settingsMenuOpenedByKeyboard;D(i,kn,ee=>t(140,J=ee));let qt=Ue.ui.controls,Ln=Ue.actions.internal.getVideoEpisodes(),Zn=Ue.state.chromecastState$;D(i,Zn,ee=>t(29,Ci=ee));let An=Ue.state.availableSubtitlesList$;D(i,An,ee=>t(168,_i=ee));let Fn=Ue.state.currentSubtitle$;D(i,Fn,ee=>t(170,li=ee));let Cn=qt.disabledControls$;D(i,Cn,ee=>t(172,zt=ee));let gn=Ue.ui.contextMenu.visible$;D(i,gn,ee=>t(162,Ti=ee));let Hn=Ue.ui.contextMenu.showContextMenuBtn$;D(i,Hn,ee=>t(166,hi=ee));let zn=Ue.ui.contextMenu.openedByBtnKeyboard$;D(i,zn,ee=>t(167,Zt=ee));let re=Ue.ui.startedByKeyboard$;D(i,re,ee=>t(139,ne=ee));let vt=Ue.ads.duration;D(i,vt,ee=>t(81,bn=ee));let Sn=Ue.ads.position;D(i,Sn,ee=>t(79,ti=ee));let hn=Ue.ads.playbackState;D(i,hn,ee=>t(171,mt=ee));let Tn=Ue.ui.isFullscreen;D(i,Tn,ee=>t(30,Si=ee));let vn=Ue.ui.playerSize;D(i,vn,ee=>t(142,M=ee));let oo=Ue.ui.currentGridType$;D(i,oo,ee=>t(143,W=ee));let ro=Ue.ui.additionalButtons$;D(i,ro,ee=>t(28,B=ee));let vo=Ue.actions.internal.getVideoElement,Xn=Ue.actions.internal.replayInteractive,yn=Ue.state.isInteractive,ie=Ue.state.isInteractiveTime$;D(i,ie,ee=>t(141,Y=ee));let Jn=Ue.state.showInteractiveGraph,lo=Ue.state.showSeekToInteractive,zo=Ue.state.showPlayPrevChapter,Gn=Ue.state.showInteractiveTimeIndicator,so=Ue.state.graphIsOpened$;D(i,so,ee=>t(31,pi=ee));let Uo=Ue.state.playPrevChapterDisabledTooltip,qo=Wi.seekToInteractiveDisabledTooltip$;D(i,qo,ee=>t(78,gt=ee));let gr=()=>Ue.actions.internal.toggleChromecast(),$n,yo,wo,Ko,ko,pt,x,bt,an,Gi,A,ae,ke,Oe,$e,ht,Ot,yt,Oi,Co,Hr,Wo="",_p=(ee,_s)=>{if(!ee){t(50,Wo=z("tooltip_live"));return}_s===Fo.PlaybackState.PAUSED&&t(50,Wo=z("tooltip_play"))},uc,cc,fc,dc,zr,Qe={},Un,vr,hs,mc,bp=(0,a0.throttleFn)(Ql,260,{leading:!1}),Ur,qr,Kr;function gp(){po({isAudioDisabled:se,audioDisabledHintCallback:pn,isAudioAvailable:P,audioIsNotExistHintCallback:Ri})&&Be()}let vp=yn?Xn:mn?Bi:vi;function yp(ee){i.$$.not_equal(Qe.prevButton,ee)&&(Qe.prevButton=ee,t(23,Qe))}function wp(ee){i.$$.not_equal(Qe.replayButton,ee)&&(Qe.replayButton=ee,t(23,Qe))}function kp(ee){Kr=ee,t(26,Kr)}function Cp(ee){i.$$.not_equal(Qe.playButton,ee)&&(Qe.playButton=ee,t(23,Qe))}function Sp(ee){i.$$.not_equal(Qe.nextButton,ee)&&(Qe.nextButton=ee,t(23,Qe))}function Tp(ee){i.$$.not_equal(Qe.playPrevChapterButton,ee)&&(Qe.playPrevChapterButton=ee,t(23,Qe))}function Pp(ee){i.$$.not_equal(Qe.seekToInteractiveButton,ee)&&(Qe.seekToInteractiveButton=ee,t(23,Qe))}function Ip(ee){i.$$.not_equal(Qe.interactiveGraphButton,ee)&&(Qe.interactiveGraphButton=ee,t(23,Qe))}function Ep(ee){i.$$.not_equal(Qe.liveButton,ee)&&(Qe.liveButton=ee,t(23,Qe))}function Mp(ee){i.$$.not_equal(Qe.time,ee)&&(Qe.time=ee,t(23,Qe))}function Vp(ee){i.$$.not_equal(Qe.episodes,ee)&&(Qe.episodes=ee,t(23,Qe))}function Lp(){zr=this.clientWidth,t(22,zr)}function Ap(ee){i.$$.not_equal(Qe.vkLogo,ee)&&(Qe.vkLogo=ee,t(23,Qe))}function Bp(ee){i.$$.not_equal(Qe.volume,ee)&&(Qe.volume=ee,t(23,Qe))}function Rp(ee){i.$$.not_equal(Qe.subtitles,ee)&&(Qe.subtitles=ee,t(23,Qe))}function Np(ee){Ur=ee,t(24,Ur)}function Dp(ee){qr=ee,t(25,qr)}function Op(ee){i.$$.not_equal(Qe.settings,ee)&&(Qe.settings=ee,t(23,Qe))}function Fp(ee){i.$$.not_equal(Qe.context,ee)&&(Qe.context=ee,t(23,Qe))}function Hp(ee){i.$$.not_equal(Qe.fullscreen,ee)&&(Qe.fullscreen=ee,t(23,Qe))}function zp(ee){i.$$.not_equal(Qe.chromecast,ee)&&(Qe.chromecast=ee,t(23,Qe))}function Up(ee){me[ee?"unshift":"push"](()=>{Ot=ee,t(46,Ot)})}function qp(ee){me[ee?"unshift":"push"](()=>{Yt=ee,t(0,Yt)})}function Kp(ee){i.$$.not_equal(Qe.interactiveTimeIndicator,ee)&&(Qe.interactiveTimeIndicator=ee,t(23,Qe))}i.$$set=ee=>{"bottomHidden"in ee&&t(1,si=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,Ei=ee.bottomNoSmooth),"showControls"in ee&&t(3,zi=ee.showControls),"controlsElementRef"in ee&&t(0,Yt=ee.controlsElementRef),"isAds"in ee&&t(4,It=ee.isAds),"canRewindLive"in ee&&t(5,Mi=ee.canRewindLive),"logoClickable"in ee&&t(6,tn=ee.logoClickable),"logoHidden"in ee&&t(129,ai=ee.logoHidden),"logoTargetUrl"in ee&&t(7,nn=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(130,gi=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(8,dn=ee.nextButtonActive),"prevButtonActive"in ee&&t(9,on=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(131,mn=ee.isOneVideoPlaylist),"supportLink"in ee&&t(10,Ui=ee.supportLink),"customFullscreenSupported"in ee&&t(132,Vi=ee.customFullscreenSupported),"playNextVideo"in ee&&t(11,Qt=ee.playNextVideo),"playPrevVideo"in ee&&t(12,ni=ee.playPrevVideo),"repeatPlaylist"in ee&&t(133,vi=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(13,qi=ee.toggleFullscreen),"returnFocus"in ee&&t(14,Ki=ee.returnFocus),"seekToInteractive"in ee&&t(15,yi=ee.seekToInteractive),"toggleGraph"in ee&&t(16,Li=ee.toggleGraph),"playPrevChapter"in ee&&t(17,Ai=ee.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=zt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=zt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,s=zt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,r=zt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,l=zt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,a=zt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,$n=It?mt==="playing":mi===Fo.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,yo=li.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,wo=ei&&!It||yn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,Ko=!ei||yn||It);if(i.$$.dirty[4]&524288)e:t(134,ko=En(W,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,pt=gi&&En(W,"m")&&!It&&dn);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,x=gi&&En(W,"m")&&!It&&on);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,bt=Ci!==Fo.ChromecastState.NOT_AVAILABLE&&!(Nt&&Ht===1)&&En(W,"m")&&!yn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,an=_i.length>0&&En(W,"m"));if(i.$$.dirty[5]&6144)e:t(41,Gi=Zt||hi);if(i.$$.dirty[4]&524288)e:t(42,A=En(W,"s"));if(i.$$.dirty[4]&32)e:t(43,ae=!ai);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,ke=Gt.features.fullscreen&&(ai||En(W,"s"))&&!(Nt&&Ht===1)&&(yn?Vi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Oe=(!Rt||It)&&!(Gt.features.interactiveHideTime&&yn));if(i.$$.dirty[4]&262144)e:t(45,$e=M.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,ht=!It&&!Rt&&!!(Ln!=null&&Ln.length)&&ko&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,yt=!Ii||Pi);if(i.$$.dirty[5]&64)e:t(47,Oi=mi===Fo.PlaybackState.PLAYING?z("tooltip_pause"):z("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,Co=pi?z("tooltip_interactive_graph_on"):z("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,Hr=Ti?z("aria_label_context_menu_close"):z("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:_p(yt,mi);if(i.$$.dirty[0]&262144)e:t(52,cc=yo?z("tooltip_subtitles_on"):z("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,fc=Si?z("tooltip_fullscreen_on"):z("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,dc=Ci===Fo.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,Un={prevButton:$t?$t.right-$t.left:0,replayButton:ci?ci.right-ci.left:0,playButton:xt?xt.right-xt.left:0,nextButton:Te?Te.right-Te.left:0,playPrevChapterButton:ut?ut.right-ut.left:0,seekToInteractiveButton:pe?pe.right-pe.left:0,interactiveGraphButton:Ct?Ct.right-Ct.left:0,liveButton:ge?ge.right-ge.left:0,time:nt?nt.right-nt.left:0,episodes:ze?ze.right-ze.left:0,vkLogo:we?we.right-we.left:0,volume:Ye?Ye.right-Ye.left:0,subtitles:he?he.right-he.left:0,settings:Le?Le.right-Le.left:0,context:be?be.right-be.left:0,fullscreen:Ne?Ne.right-Ne.left:0,chromecast:te?te.right-te.left:0,additionalButtons:B.length?B.reduce(ee=>[...ee,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!vr||vr<Un.time)&&t(136,vr=Un.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let ee=0;ht&&(En(W,"xl")?ee=Un.time:ee=60);let _s=Un.prevButton+Un.playButton+Un.nextButton+Un.seekToInteractiveButton+Un.interactiveGraphButton+Un.liveButton+vr+ee;t(137,hs=Oe&&zr>=_s)}if(i.$$.dirty[4]&532480)e:t(55,mc=hs&&En(W,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:bp(vo(),qt,Qe,zi);if(i.$$.dirty[0]&167772160)e:nr(qr,K,kn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Do(Ur,K,J);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Xl(re,ne,Kr)};e:t(51,uc=Gt.logoType==="vk_video"?z("tooltip_vk_video_logo"):z("tooltip_vk_logo"));e:$i(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}=qt,c,ki(t(71,f)),fn(t(70,p)),jt(t(69,_)),Je(t(68,g)),Tt(t(67,b)),Ft(t(66,w)),At(t(65,S)),dt(t(64,I)),lt(t(63,k)),Se(t(62,C)),Z(t(61,E)),Re(t(60,U)),Ze(t(59,$)),_e(t(58,q)),De(t(57,le)),Fe(t(56,oe))));return[Yt,si,Ei,zi,It,Mi,tn,nn,dn,on,Ui,Qt,ni,qi,Ki,yi,Li,Ai,yo,Oe,ht,yt,zr,Qe,Ur,qr,Kr,K,B,Ci,Si,pi,Ii,Rt,$n,wo,Ko,pt,x,bt,an,Gi,A,ae,ke,$e,Ot,Oi,Co,Hr,Wo,uc,cc,fc,dc,mc,oe,le,q,$,U,E,C,k,I,S,w,b,g,_,p,f,c,a,l,r,s,o,gt,ti,bi,bn,en,ii,Gt,Bi,rn,Zi,Ni,ln,Xt,sn,ui,rt,Jt,oi,Di,Ut,Mn,Vn,kn,Ln,Zn,An,Fn,Cn,gn,Hn,zn,re,vt,Sn,hn,Tn,vn,oo,ro,yn,ie,Jn,lo,zo,Gn,so,Uo,qo,gr,gp,vp,ai,gi,mn,Vi,vi,ko,Un,vr,hs,n,ne,J,Y,M,W,te,Ne,be,Le,he,Ye,we,ze,nt,ge,Ct,pe,ut,Te,xt,ci,$t,mi,Ti,Pi,Ht,Nt,hi,Zt,_i,ei,li,mt,zt,yp,wp,kp,Cp,Sp,Tp,Pp,Ip,Ep,Mp,Vp,Lp,Ap,Bp,Rp,Np,Dp,Op,Fp,Hp,zp,Up,qp,Kp]}var Su=class extends j{constructor(e){super(),X(this,e,U3,z3,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},_3,[-1,-1,-1,-1,-1,-1,-1])}},u0=Su;var fr=require("@vkontakte/videoplayer-core");function q3(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 Pu=class extends j{constructor(e){super(),X(this,e,null,q3,G,{})}},c0=Pu;var d0=require("@vkontakte/videoplayer-shared");function K3(i){ye(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 f0(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 W3(i){let e,t,n,o;var s=i[4];function r(a){return{}}s&&(t=wn(s,r(i)));let l=i[1]&&f0(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=wn(s,r(a)),H(t.$$.fragment),m(t.$$.fragment,1),O(t,e,n)):t=null}a[1]?l?l.p(a,c):(l=f0(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 Z3(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:[W3]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 G3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:s=d0.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?Oo:c0)},[r,o,s,l,a,n,c]}var Iu=class extends j{constructor(e){super(),X(this,e,G3,Z3,G,{muted:5,expanded:1,click:2,ref:0},K3)}},Eu=Iu;function j3(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 x3(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 Mu=class extends j{constructor(e){super(),X(this,e,x3,j3,G,{isActive:0})}},m0=Mu;var p0=require("@vkontakte/videoplayer-shared");function Y3(i){let e,t;return e=new m0({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 Q3(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:[Y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(s.ref=i[0]),e=new ft({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 X3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:s=p0.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 Vu=class extends j{constructor(e){super(),X(this,e,X3,Q3,G,{ref:0,isPictureInPictureActive:1,click:2})}},h0=Vu;var F0=require("@vkontakte/videoplayer-shared");function J3(i){ye(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 _0(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 b0(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k=(!i[51]||i[53])&&g0(i),C=wt(i[56]),E=[];for(let M=0;M<C.length;M+=1)E[M]=v0(_0(i,C,M));let U=M=>h(E[M],1,1,()=>{E[M]=null}),$=i[36]&&y0(i),q=i[37]&&w0(i),le=i[57]&&k0(i),oe=i[39]&&C0(i),P=i[8]&&S0(i),ne=i[34]&&T0(i),J=i[33]&&P0(i),K=i[8]&&I0(i),Y=i[96]&&!i[29]&&E0(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(),Y&&Y.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,W){y(M,e,W),y(M,t,W),y(M,n,W),k&&k.m(n,null),y(M,o,W),y(M,s,W);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,W),y(M,p,W),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,W),Y&&Y.m(M,W),y(M,S,W),I=!0},p(M,W){if((!I||W[1]&2048)&&L(e,"hidden",!M[42]),!M[51]||M[53]?k?(k.p(M,W),W[1]&5242880&&m(k,1)):(k=g0(M),k.c(),m(k,1),k.m(n,null)):k&&(ce(),h(k,1,1,()=>{k=null}),fe()),(!I||W[0]&8)&&L(n,"hidden",!M[3]),(!I||W[1]&2097152)&&L(n,"fullscreen",M[52]),W[1]&33554432){C=wt(M[56]);let B;for(B=0;B<C.length;B+=1){let te=_0(M,C,B);E[B]?(E[B].p(te,W),m(E[B],1)):(E[B]=v0(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,W),W[1]&32&&m($,1)):($=y0(M),$.c(),m($,1),$.m(s,l)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),M[37]?q?(q.p(M,W),W[1]&64&&m(q,1)):(q=w0(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,W),W[1]&67108864&&m(le,1)):(le=k0(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,W),W[1]&256&&m(oe,1)):(oe=C0(M),oe.c(),m(oe,1),oe.m(s,null)):oe&&(ce(),h(oe,1,1,()=>{oe=null}),fe()),(!I||W[0]&134217736)&&L(s,"hidden",!M[3]&&!M[27]),(!I||W[1]&2097152)&&L(s,"fullscreen",M[52]),M[8]?P?(P.p(M,W),W[0]&256&&m(P,1)):(P=S0(M),P.c(),m(P,1),P.m(p,_)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),M[34]?ne?(ne.p(M,W),W[1]&8&&m(ne,1)):(ne=T0(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,W),W[1]&4&&m(J,1)):(J=P0(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,W),W[0]&256&&m(K,1)):(K=I0(M),K.c(),m(K,1),K.m(p,null)):K&&(ce(),h(K,1,1,()=>{K=null}),fe()),(!I||W[0]&536870920)&&L(p,"hidden",!M[3]||M[29]),M[96]&&!M[29]?Y?(Y.p(M,W),W[0]&536870912&&m(Y,1)):(Y=E0(M),Y.c(),m(Y,1),Y.m(S.parentNode,S)):Y&&(ce(),h(Y,1,1,()=>{Y=null}),fe())},i(M){if(!I){m(k);for(let W=0;W<C.length;W+=1)m(E[W]);m($),m(q),m(le),m(oe),m(P),m(ne),m(J),m(K),m(Y),I=!0}},o(M){h(k),E=E.filter(Boolean);for(let W=0;W<E.length;W+=1)h(E[W]);h($),h(q),h(le),h(oe),h(P),h(ne),h(J),h(K),h(Y),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(),Hi(E,M),$&&$.d(),q&&q.d(),le&&le.d(),oe&&oe.d(),P&&P.d(),ne&&ne.d(),J&&J.d(),K&&K.d(),Y&&Y.d(M)}}}function g0(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 Eu({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 v0(i){var n;let e,t;return e=new Kl({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 y0(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 Al({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 w0(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 h0({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 k0(i){let e,t,n;function o(r){i[133](r)}let s={};return i[22]!==void 0&&(s.ref=i[22]),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={};!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 C0(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 Ll({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 S0(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 ur({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 T0(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 Ar({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 P0(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 Br({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 I0(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 ur({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 E0(i){let e,t,n,o,s=i[100]&&$3(i),r=i[98]&&eg(i),l=i[99]&&tg(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 $3(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 ql({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 eg(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 zl({props:l}),me.push(()=>Ve(t,"ref",r)),{c(){e=T("div"),H(t.$$.fragment),u(e,"class",o=kc(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 tg(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 Hl({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 M0(i){let e,t,n,o,s,r=i[53]&&V0(i),l=i[32]&&L0(i);return o=new Dl({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=V0(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=L0(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 V0(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 Eu({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 L0(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 Ar({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 ig(i){let e,t,n;function o(r){i[144](r)}let s={disabled:i[48],$$slots:{default:[ng]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(s.ref=i[20].replayButton),e=new Bt({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 ng(i){let e,t;return e=new Br({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 A0(i){let e,t,n;function o(r){i[145](r)}let s={$$slots:{default:[og]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(s.ref=i[20].liveButton),e=new Bt({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 og(i){let e,t;return e=new Rl({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 B0(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 Tl({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 R0(i){let e,t,n,o;return n=new Fl({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 rg(i){let e,t,n=i[43]&&R0(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=R0(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 N0(i){let e,t,n;function o(r){i[149](r)}let s={$$slots:{default:[lg]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(s.ref=i[20].settings),e=new Bt({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 lg(i){let e,t,n;function o(r){i[148](r)}let s={};return i[22]!==void 0&&(s.ref=i[22]),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={};!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 D0(i){let e,t,n;function o(r){i[150](r)}let s={$$slots:{default:[sg]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(s.ref=i[20].fullscreen),e=new Bt({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 sg(i){let e,t;return e=new Ml({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 O0(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 Sl({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 ag(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 Jl({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 ug(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C=!i[4]&&b0(i),E=i[4]&&i[30]!=="inactive"&&M0(i),U=i[96]&&ig(i),$=!i[4]&&i[25]&&A0(i),q=i[41]&&B0(i);function le(Y){i[147](Y)}let oe={className:"w-max",disabled:!i[43],$$slots:{default:[rg]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(oe.ref=i[20].episodes),c=new Bt({props:oe}),me.push(()=>Ve(c,"ref",le));let P=i[38]&&N0(i),ne=i[40]&&D0(i);b=new Ol({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let J=i[23]&&O0(i),K=i[101]&&ag(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(Y,M){C&&C.m(Y,M),y(Y,e,M),E&&E.m(Y,M),y(Y,t,M),y(Y,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(Y,w,M),J&&J.m(Y,M),y(Y,S,M),K&&K.m(Y,M),y(Y,I,M),k=!0},p(Y,M){Y[4]?C&&(ce(),h(C,1,1,()=>{C=null}),fe()):C?(C.p(Y,M),M[0]&16&&m(C,1)):(C=b0(Y),C.c(),m(C,1),C.m(e.parentNode,e)),Y[4]&&Y[30]!=="inactive"?E?(E.p(Y,M),M[0]&1073741840&&m(E,1)):(E=M0(Y),E.c(),m(E,1),E.m(t.parentNode,t)):E&&(ce(),h(E,1,1,()=>{E=null}),fe()),Y[96]&&U.p(Y,M),!Y[4]&&Y[25]?$?($.p(Y,M),M[0]&33554448&&m($,1)):($=A0(Y),$.c(),m($,1),$.m(s,l)):$&&(ce(),h($,1,1,()=>{$=null}),fe()),Y[41]?q?(q.p(Y,M),M[1]&1024&&m(q,1)):(q=B0(Y),q.c(),m(q,1),q.m(s,a)):q&&(ce(),h(q,1,1,()=>{q=null}),fe());let W={};M[1]&4096&&(W.disabled=!Y[43]),M[1]&1073745920|M[2]&1|M[5]&2097152&&(W.$$scope={dirty:M,ctx:Y}),!f&&M[0]&1048576&&(f=!0,W.ref=Y[20].episodes,Me(()=>f=!1)),c.$set(W),Y[38]?P?(P.p(Y,M),M[1]&128&&m(P,1)):(P=N0(Y),P.c(),m(P,1),P.m(s,_)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),Y[40]?ne?(ne.p(Y,M),M[1]&512&&m(ne,1)):(ne=D0(Y),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=Y[4]),M[0]&32&&(B.canRewindLive=Y[5]),M[0]&16777216&&(B.isRewindableLive=Y[24]),b.$set(B),(!k||M[1]&2097152)&&L(o,"fullscreen",Y[52]),(!k||M[0]&2)&&L(n,"hidden",Y[1]),(!k||M[0]&8)&&L(n,"controls-hidden",!Y[3]),(!k||M[0]&4)&&L(n,"no-smooth",Y[2]),Y[23]?J?(J.p(Y,M),M[0]&8388608&&m(J,1)):(J=O0(Y),J.c(),m(J,1),J.m(S.parentNode,S)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),Y[101]&&K.p(Y,M)},i(Y){k||(m(C),m(E),m(U),m($),m(q),m(c.$$.fragment,Y),m(P),m(ne),m(b.$$.fragment,Y),m(J),m(K),k=!0)},o(Y){h(C),h(E),h(U),h($),h(q),h(c.$$.fragment,Y),h(P),h(ne),h(b.$$.fragment,Y),h(J),h(K),k=!1},d(Y){Y&&(v(e),v(t),v(n),v(w),v(S),v(I)),C&&C.d(Y),E&&E.d(Y),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(Y),K&&K.d(Y)}}}function cg(i,e,t){var Xn,yn;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,Y,M,W,B,te,Ce,Fe,Ne,Ke,De,{bottomHidden:be}=e,{bottomNoSmooth:Q}=e,{showControls:_e}=e,{controlsElementRef:Le=void 0}=e,{isAds:qe=!1}=e,{canRewindLive:Ze}=e,{logoClickable:he}=e,{logoHidden:Pe}=e,{logoTargetUrl:Re=""}=e,{showNextPrevButtons:Ye}=e,{nextButtonActive:ve}=e,{prevButtonActive:Z}=e,{isOneVideoPlaylist:we=!1}=e,{supportLink:ue}=e,{customFullscreenSupported:Se=!0}=e,{playNextVideo:ze}=e,{playPrevVideo:it}=e,{repeatPlaylist:lt}=e,{toggleFullscreen:nt}=e,{returnFocus:_t}=e,{seekToInteractive:dt}=e,{toggleGraph:ge}=e,{playPrevChapter:at}=e,{onDisabledPlayPrevChapterClick:At}=e,{onDisabledSeekToInteractiveClick:Ct}=e,Ae=Ge(),Ft=Nn(),pe=Dt(),St=Ae.actions.internal.toggleMuted,Tt=Ae.actions.internal.togglePlay,ut=Ae.actions.internal.pause,ct=(Xn=Ae.callbacks)==null?void 0:Xn.onAudioDoesNotExistHint,Je=(yn=Ae.callbacks)==null?void 0:yn.onAudioDisabledHint,Te=Ae.playerPhase;D(i,Te,ie=>t(126,q=ie));let st=Ae.state.duration$;D(i,st,ie=>t(62,De=ie));let jt=Ae.state.positionWithScrubbing$;D(i,jt,ie=>t(61,Ke=ie));let xt=Ae.state.playbackState$;D(i,xt,ie=>t(121,_=ie));let Ji=Ae.state.isAudioAvailable$;D(i,Ji,ie=>t(51,g=ie));let fn=Ae.state.isAudioDisabled,ci=Ae.state.isEnded$;D(i,ci,ie=>t(127,oe=ie));let fi=Ae.state.isLive$;D(i,fi,ie=>t(25,k=ie));let ki=Ae.state.muted$;D(i,ki,ie=>t(54,M=ie));let $t=Ae.state.isActiveLive$;D(i,$t,ie=>t(124,S=ie));let di=Ae.state.isRewindableLive$;D(i,di,ie=>t(24,I=ie));let $i=Ae.ui.scrubbingInProgress;D(i,$i,ie=>t(29,le=ie));let Ci=Ae.ui.mobileNotReportControlHidden$;D(i,Ci,ie=>t(27,U=ie));let Si=Ae.ui.isPictureInPictureActive$;D(i,Si,ie=>t(26,E=ie));let mi=Ae.ui.pictureInPictureType$;D(i,mi,ie=>t(125,C=ie));let Ti=Ae.ui.mobileUnmuteButtonExpanded;D(i,Ti,ie=>t(55,W=ie));let pi=Ae.ui.mobileUnmuteButtonVisible;D(i,pi,ie=>t(53,Y=ie));let Pi=Ae.ui.settingsMenuVisible;D(i,Pi,ie=>t(23,p=ie));let Ii=Ae.ui.settingsMenuOpenedByKeyboard;D(i,Ii,ie=>t(120,f=ie));let Rt=Ae.ui.controls,Ht=Ae.actions.internal.getVideoEpisodes(),Nt=Ae.webApi.pictureInPictureApi,hi=Ae.state.chromecastState$;D(i,hi,ie=>t(28,$=ie));let Zt=Ae.state.crashed$;D(i,Zt,ie=>t(57,te=ie));let _i=Rt.disabledControls$;D(i,_i,ie=>t(128,ne=ie));let ei=Ae.ui.startedByKeyboard$;D(i,ei,ie=>t(119,c=ie));let li=Ae.ads.duration;D(i,li,ie=>t(60,Ne=ie));let mt=Ae.ads.position;D(i,mt,ie=>t(59,Fe=ie));let zt=Ae.ads.playbackState;D(i,zt,ie=>t(30,P=ie));let gt=Ae.ui.isFullscreen;D(i,gt,ie=>t(52,K=ie));let ti=Ae.ui.playerSize;D(i,ti,ie=>t(123,w=ie));let bi=Ae.ui.additionalButtons$;D(i,bi,ie=>t(56,B=ie));let bn=Ae.actions.internal.getVideoElement,en=Ae.actions.internal.replayInteractive,ii=Ae.state.isInteractive,si=Ae.state.isInteractiveTime$;D(i,si,ie=>t(122,b=ie));let Ei=Ae.state.showInteractiveGraph,zi=Ae.state.showSeekToInteractive,Yt=Ae.state.showPlayPrevChapter,It=Ae.state.showInteractiveTimeIndicator,Mi=Ae.state.graphIsOpened$;D(i,Mi,ie=>t(58,Ce=ie));let tn=Ft.seekToInteractiveDisabledTooltip$;D(i,tn,ie=>t(129,J=ie));let ai,nn,gi,dn,on,mn,Ui,Vi,Qt,ni,vi,qi,Ki,yi,Li,Ai,Ue,Wi,Gt,Be={},Bi=(0,F0.throttleFn)(Ql,260,{leading:!1}),rn=()=>Ae.actions.internal.toggleChromecast();function Zi(){po({isAudioDisabled:fn,audioDisabledHintCallback:Je,isAudioAvailable:g,audioIsNotExistHintCallback:ct})&&St()}function Ri(){return tt(this,null,function*(){Nt!=null&&Nt.isActive()?yield Nt==null?void 0:Nt.remove():yield Nt==null?void 0:Nt.request()})}function pn(){!fn&&g&&pi.set(!1),Zi()}let Ni=we?Tt:lt,ln="",Xt=(ie,Jn)=>{if(!ie){t(45,ln=z("tooltip_live"));return}Jn===fr.PlaybackState.PAUSED&&t(45,ln=z("tooltip_play"))},sn,ui,se=()=>{a&&At(ai)},rt=()=>{s&&Ct(nn)};function Jt(ie){i.$$.not_equal(Be.volume,ie)&&(Be.volume=ie,t(20,Be))}function oi(ie){i.$$.not_equal(Be.chromecast,ie)&&(Be.chromecast=ie,t(20,Be))}function Di(ie){i.$$.not_equal(Be.pip,ie)&&(Be.pip=ie,t(20,Be))}function Ut(ie){ui=ie,t(22,ui)}function Mn(ie){i.$$.not_equal(Be.vkLogo,ie)&&(Be.vkLogo=ie,t(20,Be))}function Vn(ie){i.$$.not_equal(Be.prevButton,ie)&&(Be.prevButton=ie,t(20,Be))}function kn(ie){i.$$.not_equal(Be.playButton,ie)&&(Be.playButton=ie,t(20,Be))}function qt(ie){i.$$.not_equal(Be.replayButton,ie)&&(Be.replayButton=ie,t(20,Be))}function Ln(ie){i.$$.not_equal(Be.nextButton,ie)&&(Be.nextButton=ie,t(20,Be))}function Zn(ie){i.$$.not_equal(Be.playPrevChapterButton,ie)&&(Be.playPrevChapterButton=ie,t(20,Be))}function An(ie){i.$$.not_equal(Be.interactiveGraphButton,ie)&&(Be.interactiveGraphButton=ie,t(20,Be))}function Fn(ie){i.$$.not_equal(Be.seekToInteractiveButton,ie)&&(Be.seekToInteractiveButton=ie,t(20,Be))}function Cn(ie){i.$$.not_equal(Be.volume,ie)&&(Be.volume=ie,t(20,Be))}function gn(ie){i.$$.not_equal(Be.playButton,ie)&&(Be.playButton=ie,t(20,Be))}function Hn(ie){i.$$.not_equal(Be.replayButton,ie)&&(Be.replayButton=ie,t(20,Be))}function zn(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 vt(ie){i.$$.not_equal(Be.episodes,ie)&&(Be.episodes=ie,t(20,Be))}function Sn(ie){ui=ie,t(22,ui)}function hn(ie){i.$$.not_equal(Be.settings,ie)&&(Be.settings=ie,t(20,Be))}function Tn(ie){i.$$.not_equal(Be.fullscreen,ie)&&(Be.fullscreen=ie,t(20,Be))}function vn(ie){me[ie?"unshift":"push"](()=>{Wi=ie,t(44,Wi)})}function oo(ie){me[ie?"unshift":"push"](()=>{Le=ie,t(0,Le)})}function ro(ie){sn=ie,t(21,sn)}function vo(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,Q=ie.bottomNoSmooth),"showControls"in ie&&t(3,_e=ie.showControls),"controlsElementRef"in ie&&t(0,Le=ie.controlsElementRef),"isAds"in ie&&t(4,qe=ie.isAds),"canRewindLive"in ie&&t(5,Ze=ie.canRewindLive),"logoClickable"in ie&&t(6,he=ie.logoClickable),"logoHidden"in ie&&t(110,Pe=ie.logoHidden),"logoTargetUrl"in ie&&t(7,Re=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(8,Ye=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(9,ve=ie.nextButtonActive),"prevButtonActive"in ie&&t(10,Z=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,we=ie.isOneVideoPlaylist),"supportLink"in ie&&t(11,ue=ie.supportLink),"customFullscreenSupported"in ie&&t(112,Se=ie.customFullscreenSupported),"playNextVideo"in ie&&t(12,ze=ie.playNextVideo),"playPrevVideo"in ie&&t(13,it=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,lt=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(14,nt=ie.toggleFullscreen),"returnFocus"in ie&&t(15,_t=ie.returnFocus),"seekToInteractive"in ie&&t(16,dt=ie.seekToInteractive),"toggleGraph"in ie&&t(17,ge=ie.toggleGraph),"playPrevChapter"in ie&&t(18,at=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,At=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,Ct=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:nn=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,gi=_===fr.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,dn=P==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,on=oe&&!qe&&!ii);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,mn=!oe||qe);if(i.$$.dirty[3]&1073741824)e:t(116,Ui=w.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Vi=w.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Qt=le);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,ni=$!==fr.ChromecastState.NOT_AVAILABLE&&!(E&&C===1)&&!U&&!ii);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ie=q==="waitingLive";t(37,vi=!!Nt&&$!==fr.ChromecastState.CONNECTED&&!U&&(C===1&&ie||!ie)&&!Qt&&!ii)}if(i.$$.dirty[3]&16777216)e:t(38,qi=!Qt);if(i.$$.dirty[3]&1073872896)e:t(39,Ki=!Pe&&w.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,yi=pe.features.fullscreen&&!(E&&C===1)&&(ii?Se:!0)&&!Qt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Li=(!k||qe)&&w.width>260&&!Qt&&!(pe.features.interactiveHideTime&&ii));if(i.$$.dirty[0]&8388616)e:t(42,Ai=p||_e);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ue=!qe&&!k&&!!(Ht!=null&&Ht.length)&&Ui&&!n&&!Qt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Gt=!I||S);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Bi(bn(),Rt,Be,_e);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:Xt(Gt,_);if(i.$$.dirty[0]&12582912)e:nr(ui,p,Ii);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Do(sn,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Xl(ei,c,Be.playButton)};e:ai=z(Ae.state.playPrevChapterDisabledTooltip);return[Le,be,Q,_e,qe,Ze,he,Re,Ye,ve,Z,ue,ze,it,nt,_t,dt,ge,at,Gt,Be,sn,ui,p,I,k,E,U,$,le,P,gi,dn,on,mn,Vi,ni,vi,qi,Ki,yi,Li,Ai,Ue,Wi,ln,s,a,l,r,o,g,K,Y,M,W,B,te,Ce,Fe,Ne,Ke,De,Tt,ut,Te,st,jt,xt,Ji,fn,ci,fi,ki,$t,di,$i,Ci,Si,mi,Ti,pi,Pi,Ii,Ht,hi,Zt,_i,ei,li,mt,zt,gt,ti,bi,en,ii,si,Ei,zi,Yt,It,Mi,tn,rn,Ri,pn,Ni,se,rt,Pe,we,Se,lt,At,Ct,Ui,Qt,n,c,f,_,b,w,S,C,q,oe,ne,J,Jt,oi,Di,Ut,Mn,Vn,kn,qt,Ln,Zn,An,Fn,Cn,gn,Hn,zn,re,vt,Sn,hn,Tn,vn,oo,ro,vo]}var Lu=class extends j{constructor(e){super(),X(this,e,cg,ug,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},J3,[-1,-1,-1,-1,-1,-1])}},H0=Lu;function fg(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 u0({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 dg(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 H0({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 mg(i){let e,t,n,o,s=[dg,fg],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 pg(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=$l.noop}=e,{seekToInteractive:le}=e,{toggleGraph:oe}=e,{playPrevChapter:P}=e,{onDisabledPlayPrevChapterClick:ne=$l.noop}=e,{onDisabledSeekToInteractiveClick:J=$l.noop}=e,Y=Ge().ui.isMobile;D(i,Y,B=>t(25,n=B));function M(B){l=B,t(0,l)}function W(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,Y,M,W]}var Au=class extends j{constructor(e){super(),X(this,e,pg,mg,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})}},es=Au;function hg(i){ye(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","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 bg(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,bg,_g,G,{reversed:0},hg)}},z0=Bu;function gg(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 vg(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 yg(i){let e;function t(s,r){return s[0]?vg:gg}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 wg(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Ru=class extends j{constructor(e){super(),X(this,e,wg,yg,G,{isOff:0})}},Nu=Ru;function kg(i){ye(i,"svelte-1ub874v",".reversed.svelte-1ub874v{transform:scaleX(-1)}")}function Cg(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 Sg(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}var Du=class extends j{constructor(e){super(),X(this,e,Sg,Cg,G,{reversed:0},kg)}},U0=Du;function Tg(i){ye(i,"svelte-1ub874v",".reversed.svelte-1ub874v{transform:scaleX(-1)}")}function Pg(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 Ig(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}var Ou=class extends j{constructor(e){super(),X(this,e,Ig,Pg,G,{reversed:0},Tg)}},q0=Ou;function Eg(i){ye(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 K0(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&&W0(i),k=i[4]==="PAUSE"&&Z0(i),C=i[4]==="PLAY"&&G0(i),E=i[4]==="REPLAY"&&j0(i),U=i[4]==="SUBTITLES_OFF"&&x0(i),$=i[4]==="SUBTITLES_ON"&&Y0(i),q=c&&Q0(i),le=p&&X0(i),oe=i[4]==="MUTE"&&J0(i),P=i[4]==="VOLUME"&&$0(i),ne=i[5]&&em(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=W0(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=Z0(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=G0(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=j0(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=x0(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):($=Y0(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=Q0(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=X0(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=J0(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=$0(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=em(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 W0(i){let e,t;return e=new z0({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 Z0(i){let e,t;return e=new Vl({}),{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 G0(i){let e,t;return e=new ar({}),{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 Ul({}),{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 e=new Nu({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 Y0(i){let e,t;return e=new Nu({}),{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 U0({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 X0(i){let e,t;return e=new q0({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 J0(i){let e,t;return e=new Oo({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 $0(i){let e,t;return e=new Oo({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 em(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&&He(t,n[5])},d(n){n&&v(e)}}}function Mg(i){let e,t,n=!i[1]&&i[4]&&K0(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=K0(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 Vg(i,e,t){let n,o=R,s=()=>(o(),o=Kt(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 Fu=class extends j{constructor(e){super(),X(this,e,Vg,Mg,G,{data:0},Eg)}},tm=Fu;function Lg(i){ye(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 Ag(i){let e,t,n,o,s,r,l,a,c,f,p,_,g,b,w,S,I,k,C;return s=new Yn({props:{direction:"up"}}),a=new Yn({props:{direction:"up"}}),_=new Yn({props:{direction:"up"}}),w=new Yn({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,xe(C)}}}function Bg(i,e,t){let{isShifted:n=!1}=e,o=Ge(),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 Hu=class extends j{constructor(e){super(),X(this,e,Bg,Ag,G,{isShifted:0},Lg)}},ts=Hu;function Rg(i){ye(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 im(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function nm(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function om(i){let e,t;function n(r,l){return r[7]&&r[8]?Og:r[5]?Dg:Ng}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 Ng(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=rm(im(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=wt(o[1]);let r;for(r=0;r<t.length;r+=1){let l=im(o,t,r);n[r]?n[r].p(l,s):(n[r]=rm(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),Hi(n,o)}}}function Dg(i){let e,t,n=wt(i[6]),o=[];for(let s=0;s<n.length;s+=1)o[s]=sm(nm(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"),Mt(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=wt(s[6]);let l;for(l=0;l<n.length;l+=1){let a=nm(s,n,l);o[l]?o[l].p(a,r):(o[l]=sm(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&&Mt(t,"font-size",s[4]+"px")},d(s){s&&v(e),Hi(o,s)}}}function Og(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"),Mt(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&&Mt(t,"font-size",s[4]+"px")},d(s){s&&v(e)}}}function rm(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"),Mt(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]+"")&&He(o,n),l&16&&Mt(t,"font-size",r[4]+"px")},d(r){r&&v(e)}}}function lm(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]+"")&&He(t,e)},d(n){n&&v(t)}}}function sm(i){let e,t=(!i[17]||i[17]<=i[2])&&lm(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=lm(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&v(e),t&&t.d(n)}}}function Fg(i){let e,t=i[1].length>0&&om(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=om(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 Hg(i,e,t){let n,o,{shifted:s}=e,{captions:r}=e,{position:l}=e,{playerSize:a}=e,{isMobile:c=!1}=e,f=Ge(),p=Dt(),_=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 Vt(()=>{k=window.setTimeout(()=>{g.set(!1)},p.autoSubtitlesTimeout)}),qn(()=>{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 zu=class extends j{constructor(e){super(),X(this,e,Hg,Fg,G,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},Rg)}},is=zu;function zg(i){ye(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 am(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&&He(n,o[1])},d(o){o&&v(e)}}}function Ug(i){let e,t,n,o,s,r,l=i[1]&&am(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=am(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 qg(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function s(r){Pn.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 Uu=class extends j{constructor(e){super(),X(this,e,qg,Ug,G,{thumbUrl:0,chromecastDeviceName:1},zg)}},ns=Uu;function Kg(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 qu=class extends j{constructor(e){super(),X(this,e,null,Kg,G,{})}},um=qu;function Wg(i){ye(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 Zg(i){let e,t,n;return t=new um({}),{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 Ku=class extends j{constructor(e){super(),X(this,e,null,Zg,G,{},Wg)}},os=Ku;function Gg(i){ye(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 jg(i){let e,t,n,o,s,r,l,a,c,f;return s=new ar({}),{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",et(function(){wi(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,xe(f)}}}function xg(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:s}=e,l=Ge().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 Wu=class extends j{constructor(e){super(),X(this,e,xg,jg,G,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},Gg)}get handlePressKey(){return this.$$.ctx[3]}},rs=Wu;function Yg(i){ye(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 e_(i){let e,t;return{c(){e=T("div"),t=ze(i[0]),u(e,"class","title v-1bcvcf2"),B(e,"hidden",i[1])},m(n,l){P(n,e,l),p(e,t)},p(n,[l]){l&1&&et(t,n[0]),l&2&&B(e,"hidden",n[1])},i:K,o:K,d(n){n&&S(e)}}}function t_(i,e,t){let{title:n=""}=e,{isHidden:l=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,l=r.isHidden)},[n,l]}class i_ extends ke{constructor(e){super(),we(this,e,t_,e_,be,{title:0,isHidden:1},$b)}}function n_(i){Ze(i,"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 Hu(i){let e,t,n,l,r,o,s;return{c(){e=T("div"),t=T("span"),n=ze(i[0]),l=O(),r=T("span"),r.textContent=`${Y("waiting_live_day_value")}`,o=O(),s=T("span"),s.textContent=`${Y("waiting_live_colon")}`,u(t,"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){P(a,e,c),p(e,t),p(t,n),p(e,l),p(e,r),P(a,o,c),P(a,s,c)},p(a,c){c&1&&et(n,a[0])},d(a){a&&(S(e),S(o),S(s))}}}function Uu(i){let e,t,n,l,r,o,s;return{c(){e=T("div"),t=T("span"),n=ze(i[1]),l=O(),r=T("span"),r.textContent=`${Y("waiting_live_hour_value")}`,o=O(),s=T("span"),s.textContent=`${Y("waiting_live_colon")}`,u(t,"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){P(a,e,c),p(e,t),p(t,n),p(e,l),p(e,r),P(a,o,c),P(a,s,c)},p(a,c){c&2&&et(n,a[1])},d(a){a&&(S(e),S(o),S(s))}}}function ju(i){let e,t,n,l,r,o,s;return{c(){e=T("div"),t=T("span"),n=ze(i[2]),l=O(),r=T("span"),r.textContent=`${Y("waiting_live_minute_value")}`,o=O(),s=T("span"),s.textContent=`${Y("waiting_live_colon")}`,u(t,"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){P(a,e,c),p(e,t),p(t,n),p(e,l),p(e,r),P(a,o,c),P(a,s,c)},p(a,c){c&4&&et(n,a[2])},d(a){a&&(S(e),S(o),S(s))}}}function qu(i){let e,t,n,l,r;return{c(){e=T("div"),t=T("span"),n=ze(i[3]),l=O(),r=T("span"),r.textContent=`${Y("waiting_live_second_value")}`,u(t,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg")},m(o,s){P(o,e,s),p(e,t),p(t,n),p(e,l),p(e,r)},p(o,s){s&8&&et(n,o[3])},d(o){o&&S(e)}}}function o_(i){let e,t,n,l,r=i[0]&&Hu(i),o=i[1]&&Uu(i),s=i[2]&&ju(i),a=i[3]&&qu(i);return{c(){e=T("div"),r&&r.c(),t=O(),o&&o.c(),n=O(),s&&s.c(),l=O(),a&&a.c(),u(e,"class","timer__container v-1qpxtfg")},m(c,f){P(c,e,f),r&&r.m(e,null),p(e,t),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=Hu(c),r.c(),r.m(e,t)):r&&(r.d(1),r=null),c[1]?o?o.p(c,f):(o=Uu(c),o.c(),o.m(e,n)):o&&(o.d(1),o=null),c[2]?s?s.p(c,f):(s=ju(c),s.c(),s.m(e,l)):s&&(s.d(1),s=null),c[3]?a?a.p(c,f):(a=qu(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:K,o:K,d(c){c&&S(e),r&&r.d(),o&&o.d(),s&&s.d(),a&&a.d()}}}function l_(i,e,t){let{startTime:n}=e,{onTimerOver:l}=e,r,o,s,a,c;const f=_=>String(_).padStart(2,"0"),d=_=>{const g=Math.floor(_/86400);g&&(_-=g*86400,t(0,r=f(g)));const w=Math.floor(_/3600);t(1,o=f(w));const b=Math.floor(_/60)%60;t(2,s=f(b));const C=_%60;t(3,a=f(C))},h=()=>{const _=Math.floor(Date.now()/1e3),g=n-_;d(g),g>=1?c=requestAnimationFrame(h):l()};return _n(()=>{c=requestAnimationFrame(h)}),gl(()=>{cancelAnimationFrame(c)}),i.$$set=_=>{"startTime"in _&&t(4,n=_.startTime),"onTimerOver"in _&&t(5,l=_.onTimerOver)},[r,o,s,a,n,l]}class r_ extends ke{constructor(e){super(),we(this,e,l_,o_,be,{startTime:4,onTimerOver:5},n_)}}function s_(i){let e,t,n,l,r;return{c(){e=N("svg"),t=N("path"),n=N("path"),l=N("path"),r=N("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"),Ft(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"),Ft(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"),Ft(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"),Ft(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"),Ft(e,"shape-rendering","geometricPrecision"),Ft(e,"text-rendering","geometricPrecision"),Ft(e,"image-rendering","optimizeQuality"),Ft(e,"fill-rule","evenodd"),Ft(e,"clip-rule","evenodd"),Ft(e,"width","100%"),Ft(e,"height","100%")},m(o,s){P(o,e,s),p(e,t),p(e,n),p(e,l),p(e,r)},p:K,i:K,o:K,d(o){o&&S(e)}}}class a_ extends ke{constructor(e){super(),we(this,e,null,s_,be,{})}}function u_(i){Ze(i,"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 c_(i){let e,t,n,l,r;return l=new r_({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${Y("waiting_live_timer_title")}`,n=O(),j(l.$$.fragment),u(t,"class","timer__title v-15pewff"),u(e,"class","waiting-timer timer v-15pewff")},m(o,s){P(o,e,s),p(e,t),p(e,n),F(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&&S(e),H(l)}}}function f_(i){let e,t,n,l,r,o;return n=new a_({}),{c(){e=T("div"),t=T("div"),j(n.$$.fragment),l=O(),r=T("span"),r.textContent=`${Y("waiting_live_upcoming_title")}`,u(t,"class","upcoming-icon v-15pewff"),u(r,"class","upcoming__title v-15pewff"),u(e,"class","upcoming v-15pewff")},m(s,a){P(s,e,a),p(e,t),F(n,t,null),p(e,l),p(e,r),o=!0},p:K,i(s){o||(m(n.$$.fragment,s),o=!0)},o(s){v(n.$$.fragment,s),o=!1},d(s){s&&S(e),H(n)}}}function d_(i){let e,t,n,l,r;const o=[f_,c_],s=[];function a(c,f){return c[2]?0:1}return t=a(i),n=s[t]=o[t](i),{c(){e=T("div"),n.c(),u(e,"class","waiting-container v-15pewff"),u(e,"style",l=`background-image: url(${i[2]?"":i[0]})`)},m(c,f){P(c,e,f),s[t].m(e,null),r=!0},p(c,[f]){let d=t;t=a(c),t===d?s[t].p(c,f):(de(),v(s[d],1,1,()=>{s[d]=null}),me(),n=s[t],n?n.p(c,f):(n=s[t]=o[t](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&&S(e),s[t].d()}}}function m_(i,e,t){let n,{thumbUrl:l}=e,{startTime:r}=e;const o=()=>t(2,n=!0);return i.$$set=s=>{"thumbUrl"in s&&t(0,l=s.thumbUrl),"startTime"in s&&t(1,r=s.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[l,r,n,o]}class If extends ke{constructor(e){super(),we(this,e,m_,d_,be,{thumbUrl:0,startTime:1},u_)}}function p_(i){Ze(i,"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 h_(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${Y("waiting_record_title")}`,u(t,"class","waiting-title v-1bcnzdw"),u(e,"class","waiting-container v-1bcnzdw")},m(n,l){P(n,e,l),p(e,t)},p:K,i:K,o:K,d(n){n&&S(e)}}}class Lf extends ke{constructor(e){super(),we(this,e,null,h_,be,{},p_)}}const{window:v_}=vl;function g_(i){Ze(i,"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 Wu(i){var n;let e,t;return e=new If({props:{thumbUrl:i[3],startTime:(n=i[5])==null?void 0:n.startTime}}),{c(){j(e.$$.fragment)},m(l,r){F(e,l,r),t=!0},p(l,r){var s;const o={};r[0]&8&&(o.thumbUrl=l[3]),r[0]&32&&(o.startTime=(s=l[5])==null?void 0:s.startTime),e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){v(e.$$.fragment,l),t=!1},d(l){H(e,l)}}}function Zu(i){let e,t;return e=new Lf({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ku(i){let e,t,n;return t=new Vc({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","ads-container v-1o4wf3x"),B(e,"hidden",i[38]!==De.Ads)},m(l,r){P(l,e,r),F(t,e,null),n=!0},p(l,r){const o={};r[0]&512&&(o.adsSlotId=l[9]),r[0]&1024&&(o.adsParams=l[10]),r[0]&2048&&(o.adsPreviewParam=l[11]),r[0]&4096&&(o.duration=l[12]),t.$set(o),(!n||r[1]&128)&&B(e,"hidden",l[38]!==De.Ads)},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function Gu(i){let e,t;return e=new Vp({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Yu(i){let e,t;return e=new i_({props:{title:i[2],isHidden:!i[36]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Qu(i){let e,t;return e=new Sf({props:{isShifted:i[38]===De.Video&&i[36]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[1]&160&&(r.isShifted=n[38]===De.Video&&n[36]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Xu(i){let e,t,n;return t=new G1({props:{ariaLabel:Y("video360")}}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","spherical-video-icon v-1o4wf3x")},m(l,r){P(l,e,r),F(t,e,null),n=!0},p:K,i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function Ju(i){let e,t;return e=new Tf({props:{thumbUrl:i[3],chromecastDeviceName:i[55]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&8&&(r.thumbUrl=n[3]),l[1]&16777216&&(r.chromecastDeviceName=n[55]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function xu(i){let e,t;return e=new Pf({props:{shifted:i[36],captions:i[57],position:i[58],playerSize:i[34]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[1]&32&&(r.shifted=n[36]),l[1]&67108864&&(r.captions=n[57]),l[1]&134217728&&(r.position=n[58]),l[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function $u(i){let e,t,n,l,r;return t=new Ef({}),{c(){e=T("div"),j(t.$$.fragment)},m(o,s){P(o,e,s),F(t,e,null),n=!0,l||(r=[ve(e,"contextmenu",Jt(i[107])),ve(e,"click",st(i[118]))],l=!0)},p:K,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){v(t.$$.fragment,o),n=!1},d(o){o&&S(e),H(t),l=!1,nt(r)}}}function e1(i){let e,t,n;function l(o){i[151](o)}let r={bottomHidden:i[38]===De.Thumb||i[38]===De.WaitingLive||i[38]===De.WaitingRecord,bottomNoSmooth:i[52],showControls:i[36],isAds:i[38]===De.Ads,canRewindLive:i[7]&&i[59]!==0,logoClickable:i[13],logoHidden:i[14],videoLogoUrl:i[4],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:w_,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[105],returnFocus:i[150],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new yf({props:r}),Ce.push(()=>We(e,"controlsElementRef",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&128&&(a.bottomHidden=o[38]===De.Thumb||o[38]===De.WaitingLive||o[38]===De.WaitingRecord),s[1]&2097152&&(a.bottomNoSmooth=o[52]),s[1]&32&&(a.showControls=o[36]),s[1]&128&&(a.isAds=o[38]===De.Ads),s[0]&128|s[1]&268435456&&(a.canRewindLive=o[7]&&o[59]!==0),s[0]&8192&&(a.logoClickable=o[13]),s[0]&16384&&(a.logoHidden=o[14]),s[0]&16&&(a.videoLogoUrl=o[4]),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]&524288&&(a.returnFocus=o[150]),s[0]&67108864&&(a.seekToInteractive=o[26]),s[0]&134217728&&(a.toggleGraph=o[27]),s[0]&268435456&&(a.playPrevChapter=o[28]),!t&&s[1]&1024&&(t=!0,a.controlsElementRef=o[41],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function t1(i){let e,t;return e=new qc({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function i1(i){let e,t;return e=new $p({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function n1(i){let e,t;return e=new zc({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function o1(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae;e=new Af({props:{hidden:i[38]!==De.Thumb||i[37]||i[93]&&i[6],thumbUrl:i[3],startVideo:i[29]}});let se=i[38]===De.WaitingLive&&Wu(i),R=i[38]===De.WaitingRecord&&Zu(),te=i[8]&&i[22]&&Ku(i),X=i[31]&&i[18]&&i[19]&&Gu(i),G=i[46]&&Yu(i),A=i[51]&&Qu(i),V=i[54]&&Xu(),x=i[39]&&Ju(i),L=i[56].value!=="off"&&xu(i),ie=i[37]&&$u(i),Ee=i[22]&&e1(i);g=new Bc({props:{isLive:i[60],isHidden:!i[45],isPlaying:i[61],position:i[58],duration:i[62]}}),b=new Bb({props:{data:i[102]}});function ye(W){i[153](W)}let Le={supportLink:i[21],returnFocus:i[152],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],x:i[42],y:i[43]};i[32]!==void 0&&(Le.menuElementRef=i[32]),k=new cp({props:Le}),Ce.push(()=>We(k,"menuElementRef",ye));let Ve=i[44]&&t1(),_e=i[63]&&i1(),Se=i[64]&&n1();return{c(){j(e.$$.fragment),t=O(),se&&se.c(),n=O(),R&&R.c(),l=O(),te&&te.c(),r=O(),X&&X.c(),o=O(),G&&G.c(),s=O(),A&&A.c(),a=O(),V&&V.c(),c=O(),x&&x.c(),f=O(),L&&L.c(),d=O(),ie&&ie.c(),h=O(),Ee&&Ee.c(),_=O(),j(g.$$.fragment),w=O(),j(b.$$.fragment),C=O(),j(k.$$.fragment),M=O(),Ve&&Ve.c(),q=O(),_e&&_e.c(),I=O(),Se&&Se.c(),z=mt()},m(W,$){F(e,W,$),P(W,t,$),se&&se.m(W,$),P(W,n,$),R&&R.m(W,$),P(W,l,$),te&&te.m(W,$),P(W,r,$),X&&X.m(W,$),P(W,o,$),G&&G.m(W,$),P(W,s,$),A&&A.m(W,$),P(W,a,$),V&&V.m(W,$),P(W,c,$),x&&x.m(W,$),P(W,f,$),L&&L.m(W,$),P(W,d,$),ie&&ie.m(W,$),P(W,h,$),Ee&&Ee.m(W,$),P(W,_,$),F(g,W,$),P(W,w,$),F(b,W,$),P(W,C,$),F(k,W,$),P(W,M,$),Ve&&Ve.m(W,$),P(W,q,$),_e&&_e.m(W,$),P(W,I,$),Se&&Se.m(W,$),P(W,z,$),ae=!0},p(W,$){const fe={};$[0]&64|$[1]&192&&(fe.hidden=W[38]!==De.Thumb||W[37]||W[93]&&W[6]),$[0]&8&&(fe.thumbUrl=W[3]),$[0]&536870912&&(fe.startVideo=W[29]),e.$set(fe),W[38]===De.WaitingLive?se?(se.p(W,$),$[1]&128&&m(se,1)):(se=Wu(W),se.c(),m(se,1),se.m(n.parentNode,n)):se&&(de(),v(se,1,1,()=>{se=null}),me()),W[38]===De.WaitingRecord?R?$[1]&128&&m(R,1):(R=Zu(),R.c(),m(R,1),R.m(l.parentNode,l)):R&&(de(),v(R,1,1,()=>{R=null}),me()),W[8]&&W[22]?te?(te.p(W,$),$[0]&4194560&&m(te,1)):(te=Ku(W),te.c(),m(te,1),te.m(r.parentNode,r)):te&&(de(),v(te,1,1,()=>{te=null}),me()),W[31]&&W[18]&&W[19]?X?(X.p(W,$),$[0]&786432|$[1]&1&&m(X,1)):(X=Gu(W),X.c(),m(X,1),X.m(o.parentNode,o)):X&&(de(),v(X,1,1,()=>{X=null}),me()),W[46]?G?(G.p(W,$),$[1]&32768&&m(G,1)):(G=Yu(W),G.c(),m(G,1),G.m(s.parentNode,s)):G&&(de(),v(G,1,1,()=>{G=null}),me()),W[51]?A?(A.p(W,$),$[1]&1048576&&m(A,1)):(A=Qu(W),A.c(),m(A,1),A.m(a.parentNode,a)):A&&(de(),v(A,1,1,()=>{A=null}),me()),W[54]?V?(V.p(W,$),$[1]&8388608&&m(V,1)):(V=Xu(),V.c(),m(V,1),V.m(c.parentNode,c)):V&&(de(),v(V,1,1,()=>{V=null}),me()),W[39]?x?(x.p(W,$),$[1]&256&&m(x,1)):(x=Ju(W),x.c(),m(x,1),x.m(f.parentNode,f)):x&&(de(),v(x,1,1,()=>{x=null}),me()),W[56].value!=="off"?L?(L.p(W,$),$[1]&33554432&&m(L,1)):(L=xu(W),L.c(),m(L,1),L.m(d.parentNode,d)):L&&(de(),v(L,1,1,()=>{L=null}),me()),W[37]?ie?(ie.p(W,$),$[1]&64&&m(ie,1)):(ie=$u(W),ie.c(),m(ie,1),ie.m(h.parentNode,h)):ie&&(de(),v(ie,1,1,()=>{ie=null}),me()),W[22]?Ee?(Ee.p(W,$),$[0]&4194304&&m(Ee,1)):(Ee=e1(W),Ee.c(),m(Ee,1),Ee.m(_.parentNode,_)):Ee&&(de(),v(Ee,1,1,()=>{Ee=null}),me());const ue={};$[1]&536870912&&(ue.isLive=W[60]),$[1]&16384&&(ue.isHidden=!W[45]),$[1]&1073741824&&(ue.isPlaying=W[61]),$[1]&134217728&&(ue.position=W[58]),$[2]&1&&(ue.duration=W[62]),g.$set(ue);const Fe={};$[0]&2097152&&(Fe.supportLink=W[21]),$[1]&524288&&(Fe.returnFocus=W[152]),$[1]&4&&(Fe.visible=W[33]),$[1]&512&&(Fe.playerContainerRef=W[40]),$[1]&1024&&(Fe.controlsContainerRef=W[41]),$[1]&2048&&(Fe.x=W[42]),$[1]&4096&&(Fe.y=W[43]),!y&&$[1]&2&&(y=!0,Fe.menuElementRef=W[32],qe(()=>y=!1)),k.$set(Fe),W[44]?Ve?$[1]&8192&&m(Ve,1):(Ve=t1(),Ve.c(),m(Ve,1),Ve.m(q.parentNode,q)):Ve&&(de(),v(Ve,1,1,()=>{Ve=null}),me()),W[63]?_e?$[2]&2&&m(_e,1):(_e=i1(),_e.c(),m(_e,1),_e.m(I.parentNode,I)):_e&&(de(),v(_e,1,1,()=>{_e=null}),me()),W[64]?Se?$[2]&4&&m(Se,1):(Se=n1(),Se.c(),m(Se,1),Se.m(z.parentNode,z)):Se&&(de(),v(Se,1,1,()=>{Se=null}),me())},i(W){ae||(m(e.$$.fragment,W),m(se),m(R),m(te),m(X),m(G),m(A),m(V),m(x),m(L),m(ie),m(Ee),m(g.$$.fragment,W),m(b.$$.fragment,W),m(k.$$.fragment,W),m(Ve),m(_e),m(Se),ae=!0)},o(W){v(e.$$.fragment,W),v(se),v(R),v(te),v(X),v(G),v(A),v(V),v(x),v(L),v(ie),v(Ee),v(g.$$.fragment,W),v(b.$$.fragment,W),v(k.$$.fragment,W),v(Ve),v(_e),v(Se),ae=!1},d(W){W&&(S(t),S(n),S(l),S(r),S(o),S(s),S(a),S(c),S(f),S(d),S(h),S(_),S(w),S(C),S(M),S(q),S(I),S(z)),H(e,W),se&&se.d(W),R&&R.d(W),te&&te.d(W),X&&X.d(W),G&&G.d(W),A&&A.d(W),V&&V.d(W),x&&x.d(W),L&&L.d(W),ie&&ie.d(W),Ee&&Ee.d(W),H(g,W),H(b,W),H(k,W),Ve&&Ve.d(W),_e&&_e.d(W),Se&&Se.d(W)}}}function b_(i){let e,t,n,l,r=i[53],o,s,a,c,f=o1(i);return{c(){e=T("div"),t=T("div"),l=O(),f.c(),o=mt(),u(t,"class","video-container v-1o4wf3x"),u(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[48]})`),B(t,"fast-rotate",!i[1].isSmoothVideoRotate),u(e,"class","video-wrapper v-1o4wf3x"),B(e,"hidden",i[38]!==De.Video),B(e,"nocursor",i[47])},m(d,h){P(d,e,h),p(e,t),i[149](t),P(d,l,h),f.m(d,h),P(d,o,h),s=!0,a||(c=[ve(e,"contextmenu",Jt(i[107])),ve(e,"mousedown",Jt(i[112])),ve(e,"mouseup",Jt(i[113])),ve(e,"click",Jt(i[115])),ve(e,"dblclick",Jt(i[114]))],a=!0)},p(d,h){(!s||h[1]&131088&&n!==(n=`transform: rotate(${d[35]}deg) scale(${d[48]})`))&&u(t,"style",n),(!s||h[0]&2)&&B(t,"fast-rotate",!d[1].isSmoothVideoRotate),(!s||h[1]&128)&&B(e,"hidden",d[38]!==De.Video),(!s||h[1]&65536)&&B(e,"nocursor",d[47]),h[1]&4194304&&be(r,r=d[53])?(de(),v(f,1,1,K),me(),f=o1(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&&(S(e),S(l),S(o)),i[149](null),f.d(d),a=!1,nt(c)}}}function __(i){let e,t,n,l,r,o,s,a={toggleFullscreen:i[105],hideContextMenu:i[106],showHotKeyHelpers:i[116],showKeyMap:i[117],isAds:i[38]===De.Ads,fakePlayButtonHandler:i[49]?i[104]:void 0,$$slots:{default:[b_]},$$scope:{ctx:i}};return t=new Rp({props:a}),i[154](t),{c(){e=T("div"),j(t.$$.fragment),n=O(),l=T("div"),u(l,"class","overlay-container"),u(e,"class","player-wrapper v-1o4wf3x")},m(c,f){P(c,e,f),F(t,e,null),p(e,n),p(e,l),i[155](l),i[156](e),r=!0,o||(s=[ve(v_,"blur",i[106]),ve(e,"mouseenter",i[108]),ve(e,"mouseleave",i[110]),ve(e,"mousemove",i[111]),ve(e,"click",i[119],!0),ve(e,"focusin",i[109],!0)],o=!0)},p(c,f){const d={};f[1]&128&&(d.isAds=c[38]===De.Ads),f[1]&262144&&(d.fakePlayButtonHandler=c[49]?c[104]:void 0),f[0]&1073741823|f[1]&2147221503|f[2]&7|f[5]&8388608&&(d.$$scope={dirty:f,ctx:c}),t.$set(d)},i(c){r||(m(t.$$.fragment,c),r=!0)},o(c){v(t.$$.fragment,c),r=!1},d(c){c&&S(e),i[154](null),H(t),i[155](null),i[156](null),o=!1,nt(s)}}}let w_=!0;function Vf(i){return i?i.offsetTop+Vf(i.offsetParent):0}function k_(i,e,t){let n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae,se,R,te,X,G,A,V,x,L,ie,Ee,ye,Le,Ve,_e,Se,W,{store:$}=e,{uiConfig:fe}=e,{title:ue}=e,{thumbUrl:Fe}=e,{videoLogoUrl:Oe}=e,{videoContainer:Me}=e,{interactiveContainer:Ie}=e,{live:ce}=e,{autoplay:he}=e,{canRewindLive:re}=e,{showAds:Te}=e,{adsSlotId:pe=void 0}=e,{adsParams:Pe=void 0}=e,{adsPreviewParam:Ke=void 0}=e,{duration:Re=void 0}=e,{logoClickable:xe}=e,{logoHidden:Xe}=e,{showNextPrevButtons:ot=!1}=e,{nextButtonActive:at=!1}=e,{prevButtonActive:At=!1}=e,{endScreenVideoTitle:pt=void 0}=e,{endScreenVideoThumb:xt=void 0}=e,{isOneVideoPlaylist:gt=!1}=e,{supportLink:Mt}=e,{outerContainerRef:oe=void 0}=e,{playerStarted:_t=!1}=e,{fullScreenTarget:rt=void 0}=e,{showMiniTimer:Rt=!1}=e,{playNextVideo:ut=ne.noop}=e,{playPrevVideo:It=ne.noop}=e,{repeatPlaylist:Je=ne.noop}=e,{seekToInteractive:Ue}=e,{toggleGraph:St}=e,{playPrevChapter:$i}=e,{firstStart:di}=e;const mi=$.getLogger().createComponentLog("Root component"),ln=$.interfaceLanguage$;D(i,ln,Z=>t(53,A=Z));const $t=$.state.playbackState$;D(i,$t,Z=>t(146,te=Z));const Kt=$.ads.playbackState;D(i,Kt,Z=>t(147,X=Z));const ei=$.state.positionWithScrubbing$;D(i,ei,Z=>t(58,Ee=Z));const Ot=$.state.duration$;D(i,Ot,Z=>t(62,_e=Z));const ti=$.playerPhase;D(i,ti,Z=>t(38,I=Z));const Di=$.ui.isFullscreen;D(i,Di,Z=>t(136,d=Z));const ii=$.ui.controlsVisible;D(i,ii,Z=>t(36,C=Z));const Ei=$.ui.settingsMenuVisible;D(i,Ei,Z=>t(134,o=Z));const pi=$.ui.scrubbingInProgress;D(i,pi,Z=>t(138,w=Z));const ni=$.ui.contextMenuVisible;D(i,ni,Z=>t(33,n=Z));const zi=$.ui.debugPanelVisible;D(i,zi,Z=>t(64,W=Z));const Ai=$.state.isLoaderVisible;D(i,Ai,Z=>t(148,G=Z));const Fi=$.state.isEnded$;D(i,Fi,Z=>t(135,a=Z));const oi=$.state.chromecastConnected$;D(i,oi,Z=>t(39,se=Z));const Hi=$.state.chromecastDeviceName$;D(i,Hi,Z=>t(55,x=Z));const Pt=$.ads.postrollPassed;D(i,Pt,Z=>t(141,M=Z));const Tt=$.state.isLive$;D(i,Tt,Z=>t(60,Le=Z));const hi=$.state.isPlaying$;D(i,hi,Z=>t(61,Ve=Z));const Ii=$.state.crashed$;D(i,Ii,Z=>t(37,y=Z));const lt=$.webApi.pictureInPictureApi,ct=$.state.currentSubtitle$;D(i,ct,Z=>t(56,L=Z));const li=$.state.currentSubtitleCaptions$;D(i,li,Z=>t(57,ie=Z));const Bt=$.state.duration$;D(i,Bt,Z=>t(59,ye=Z));const ri=$.state.graphIsOpened$;D(i,ri,Z=>t(142,q=Z));const vi=$.ui.playerSize;D(i,vi,Z=>t(34,f=Z));const gi=$.ui.is3DVideo;D(i,gi,Z=>t(51,c=Z));const Dt=$.ui.icon3DVideoVisible;D(i,Dt,Z=>t(54,V=Z));const Zi=$.ui.rotateAlpha;D(i,Zi,Z=>t(35,g=Z));const bi=$.state.isInteractive,Gt=$.state.isInteractiveTime$;D(i,Gt,Z=>t(139,b=Z));const Li=$.state.isInteractiveExpectation$;D(i,Li,Z=>t(145,R=Z));const rn=$.state.hasInteractiveBranches,_i=$.ui.touched;D(i,_i,Z=>t(143,z=Z));const Ui=$.ui.modals.hotKeyMap.data;D(i,Ui,Z=>t(163,s=Z));const Nt=$.ui.modals.hotKeyMap.show;D(i,Nt,Z=>t(63,Se=Z));const Ht=$.ui.overlayContainer$,wi=$.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Vi}=zo();D(i,Vi,Z=>t(137,_=Z));let Mi,si,Ki=0,ki=0,yi,ji,Ci;Ui.set(L4());let Gi,qt;const Yt=Ne(!1);D(i,Yt,Z=>t(52,h=Z));let Bi;const Ni=Ne(!1);D(i,Ni,Z=>t(144,ae=Z));const Wt=Ne(),ai=Ne(!1);D(i,ai,Z=>t(140,k=Z));let ui=!1,je=!1,Yi,ci,qi,Be,sn,an,Qi=!1,Lt,un=!1;const{toggle:en}=Vi;let Wi=!1,Si=null,ee;lt==null||lt.setContext(E1());const it=()=>{he&&!bi&&ht(fe.controls.hideTimeout)};$.setUiCallbacks({onStarted:it});const Ut=()=>{window.clearTimeout(yi),Ni.set(!1)},Pi=()=>{window.clearTimeout(ji),Wt.set(null)},ht=Z=>{Ut(),Ni.set(!0),yi=window.setTimeout(()=>Ni.set(!1),Z);const Et=Z-100;Bi=window.setTimeout(()=>{h&&Yt.set(!1)},Et>0?Et:Z)},mn=(Z,Et)=>{Pi(),Wt.set(Et),ji=window.setTimeout(()=>Wt.set(null),Z)},kn=gi.subscribe(Z=>{Dt.set(Z),Z&&(window.clearTimeout(Ci),Ci=window.setTimeout(()=>Dt.set(!1),fe.controls.hide360IconTimeout))}),pn=()=>xi(this,null,function*(){var Et,nn,bn,Rn;const Z=No();if(Z){ht(fe.controls.hideTimeoutFullscreen);try{yield lt==null?void 0:lt.remove()}catch(oo){mi({message:String(oo)})}}Di.set(Z),$.getAdmanWrapper().setFullscreen(Z),d?(nn=(Et=$.callbacks)==null?void 0:Et.onFullscreenEnter)==null||nn.call(Et):(Rn=(bn=$.callbacks)==null?void 0:bn.onFullscreenExit)==null||Rn.call(bn)}),yn=Z=>{const Et=Z;vi.set({width:Et.target.width,height:Et.target.height})};_n(()=>{var Et;return Ic(pn),hl(lt)&&(lt==null||lt.assignPlayerContainer(Mi),lt==null||lt.registryExternalEventHandlers({resize:yn})),Ie&&((Et=Me.parentElement)==null||Et.insertBefore(Ie,Me.nextSibling)),()=>{window.clearTimeout(yi),window.clearTimeout(Bi),window.clearTimeout(ji),window.clearTimeout(Ci),kn(),lt==null||lt.dispose(),Lc(pn)}});const cn=()=>xi(this,null,function*(){if(No())yield Ac(document),mi({message:"exit fullscreen"});else{mi({message:"request fullscreen"});const Z=oe!=null?oe:Mi,Et=Z.getRootNode(),nn=Et instanceof ShadowRoot?Et.host:Et,bn=rt instanceof HTMLElement&&rt.contains(nn),Rn=fe.allowChangingFullscreenTarget&&rt&&bn?rt:Z;yield Ec(Rn)}}),tn=()=>{wi(),ni.set(!1)},Cn=Z=>{ni.set(!0),t(42,Ki=Z.clientX),t(43,ki=Z.clientY)};function Sn(){ai.set(!0),bi||ht(fe.controls.hideTimeoutCursor)}function Pn(){bi||(Yt.set(!0),ht(fe.controls.hideTimeoutCursor))}function hn(){ai.set(!1),t(128,je=!1),t(127,ui=!1),Wi=!1,$.actions.internal.releaseCamera()}function Tn(Z){if(Mi){const Et=Vf(Z.currentTarget),nn=f.height,bn=Z.pageY-Et;bn<Gr?t(128,je=!0):bn>nn-Gr?t(127,ui=!0):(t(128,je=!1),o||t(127,ui=!1))}}function J(Z){Tn(Z),ci||ht(fe.controls.hideTimeoutCursor),c&&Wi&&Si&&$.actions.internal.moveCameraFocusPX(Si.clientX-Z.clientX,Si.clientY-Z.clientY,Z.timeStamp-Si.timeStamp),Si=Z}const vt=Z=>{Z.button===0&&(Wi=!0,$.actions.internal.holdCamera()),ht(fe.controls.hideTimeoutCursor)},vn=Z=>{Z.button===0&&(Si=Z,Wi=!1,$.actions.internal.releaseCamera()),ht(fe.controls.hideTimeoutCursor)},Xi=()=>{mi({message:"double click on video"}),cn(),ht(fe.controls.hideTimeoutCursor)},gn=()=>{if(n||o){tn();return}if(!(a&&!rn)){if(un)return en();if(ee==null||ee.focus(),!_t){di(),ht(fe.controls.hideTimeoutCursor);return}$.actions.internal.togglePlay(),ht(fe.controls.hideTimeoutCursor)}},fn=Z=>{tn(),_i.set(!0),ht(fe.controls.hideTimeout),Z&&mn(fe.controls.hideHotKeyHelpers,Z)},Yn=()=>{var Z,Et;tn(),(Z=$.callbacks)!=null&&Z.onOpenHotKeyMap?(Et=$.callbacks)==null||Et.onOpenHotKeyMap(s):Nt.update(nn=>!nn)},Qn=()=>{if(n||o){tn();return}},Xn=()=>{_i.set(!0)},Nn=$.ui.contextMenu.openedByKeyboard$;D(i,Nn,Z=>t(133,r=Z));let zn=$.ui.contextMenu.btnRef$;D(i,zn,Z=>t(132,l=Z));let En;function io(Z){Ce[Z?"unshift":"push"](()=>{Me=Z,t(0,Me)})}const Ji=()=>ee==null?void 0:ee.focus();function An(Z){si=Z,t(41,si)}const Q=()=>ee==null?void 0:ee.focus();function no(Z){En=Z,t(32,En)}function uo(Z){Ce[Z?"unshift":"push"](()=>{ee=Z,t(50,ee)})}function Lo(Z){Ce[Z?"unshift":"push"](()=>{qt=Z,t(30,qt)})}function co(Z){Ce[Z?"unshift":"push"](()=>{Mi=Z,t(40,Mi)})}return i.$$set=Z=>{"store"in Z&&t(122,$=Z.store),"uiConfig"in Z&&t(1,fe=Z.uiConfig),"title"in Z&&t(2,ue=Z.title),"thumbUrl"in Z&&t(3,Fe=Z.thumbUrl),"videoLogoUrl"in Z&&t(4,Oe=Z.videoLogoUrl),"videoContainer"in Z&&t(0,Me=Z.videoContainer),"interactiveContainer"in Z&&t(123,Ie=Z.interactiveContainer),"live"in Z&&t(5,ce=Z.live),"autoplay"in Z&&t(6,he=Z.autoplay),"canRewindLive"in Z&&t(7,re=Z.canRewindLive),"showAds"in Z&&t(8,Te=Z.showAds),"adsSlotId"in Z&&t(9,pe=Z.adsSlotId),"adsParams"in Z&&t(10,Pe=Z.adsParams),"adsPreviewParam"in Z&&t(11,Ke=Z.adsPreviewParam),"duration"in Z&&t(12,Re=Z.duration),"logoClickable"in Z&&t(13,xe=Z.logoClickable),"logoHidden"in Z&&t(14,Xe=Z.logoHidden),"showNextPrevButtons"in Z&&t(15,ot=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(16,at=Z.nextButtonActive),"prevButtonActive"in Z&&t(17,At=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(18,pt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(19,xt=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(20,gt=Z.isOneVideoPlaylist),"supportLink"in Z&&t(21,Mt=Z.supportLink),"outerContainerRef"in Z&&t(124,oe=Z.outerContainerRef),"playerStarted"in Z&&t(22,_t=Z.playerStarted),"fullScreenTarget"in Z&&t(125,rt=Z.fullScreenTarget),"showMiniTimer"in Z&&t(126,Rt=Z.showMiniTimer),"playNextVideo"in Z&&t(23,ut=Z.playNextVideo),"playPrevVideo"in Z&&t(24,It=Z.playPrevVideo),"repeatPlaylist"in Z&&t(25,Je=Z.repeatPlaylist),"seekToInteractive"in Z&&t(26,Ue=Z.seekToInteractive),"toggleGraph"in Z&&t(27,St=Z.toggleGraph),"playPrevChapter"in Z&&t(28,$i=Z.playPrevChapter),"firstStart"in Z&&t(29,di=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&25165824&&t(44,Gi=(I===De.Video&&G||I===De.Ads&&X===Xt.INACTIVE)&&!y),i.$$.dirty[0]&1073741824&&Ht.set(qt),i.$$.dirty[4]&4194304&&t(129,Yi=te!==$e.PlaybackState.PLAYING),i.$$.dirty[4]&2131e3&&t(130,ci=b&&!o&&!(ui||je)&&!(Yi&&!R)),i.$$.dirty[1]&448|i.$$.dirty[4]&1066080&&ii.set((Yi||o||w||se||ae)&&!ci&&I===De.Video&&!y),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&524292&&t(45,qi=fe.features.thumbTimer&&Rt&&I===De.Video&&!C&&!y&&!bi&&(fe.hideThumbTimerAfterTouch&&!z||!fe.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&266240&&t(46,Be=I===De.Video&&!q&&d),i.$$.dirty[0]&256|i.$$.dirty[1]&64|i.$$.dirty[4]&133120&&t(31,sn=(Te&&M||!Te)&&a&&!y),i.$$.dirty[1]&33|i.$$.dirty[4]&98304&&t(47,an=k&&!(C||sn)&&!b),i.$$.dirty[0]&2|i.$$.dirty[4]&49280&&(!w&&Qi&&!b&&ht(fe.controls.hideTimeoutCursor),t(131,Qi=w)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(48,Lt=Me&&g%180?f.height/f.width:1),i.$$.dirty[4]&8192&&t(49,un=_!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&512&&Cr(En,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&256){const Z=l;Z&&yr(Z,n,Nn)}},[Me,fe,ue,Fe,Oe,ce,he,re,Te,pe,Pe,Ke,Re,xe,Xe,ot,at,At,pt,xt,gt,Mt,_t,ut,It,Je,Ue,St,$i,di,qt,sn,En,n,f,g,C,y,I,se,Mi,si,Ki,ki,Gi,qi,Be,an,Lt,un,ee,c,h,A,V,x,L,ie,Ee,ye,Le,Ve,_e,Se,W,ln,$t,Kt,ei,Ot,ti,Di,ii,Ei,pi,ni,zi,Ai,Fi,oi,Hi,Pt,Tt,hi,Ii,ct,li,Bt,ri,vi,gi,Dt,Zi,bi,Gt,Li,_i,Ui,Nt,Vi,Yt,Ni,Wt,ai,en,cn,tn,Cn,Sn,Pn,hn,J,vt,vn,Xi,gn,fn,Yn,Qn,Xn,Nn,zn,$,Ie,oe,rt,Rt,ui,je,Yi,ci,Qi,l,r,o,a,d,_,w,b,k,M,q,z,ae,R,te,X,G,io,Ji,An,Q,no,uo,Lo,co]}class y_ extends ke{constructor(e){super(),we(this,e,k_,__,be,{store:122,uiConfig:1,title:2,thumbUrl:3,videoLogoUrl:4,videoContainer:0,interactiveContainer:123,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:124,playerStarted:22,fullScreenTarget:125,showMiniTimer:126,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},g_,[-1,-1,-1,-1,-1,-1])}}const C_=i=>{if(!ne.isIOS(!0))return!1;const e=i.device===ne.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=ne.getIOSVersion();return!e||e&&!!t&&t<16};function S_(i){Ze(i,"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 l1(i){let e,t,n,l,r,o,s,a,c,f,d,h,_,g,w,b=Y("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",C;return{c(){e=T("div"),n=O(),l=T("div"),r=T("div"),o=T("div"),a=O(),c=T("div"),d=O(),h=T("div"),g=O(),w=T("p"),C=ze(b),u(e,"class",t="semicircle "+i[0]+" v-nhq2ld"),u(o,"class",s="triangle "+i[0]+" v-nhq2ld"),u(c,"class",f="triangle "+i[0]+" v-nhq2ld"),u(h,"class",_="triangle "+i[0]+" v-nhq2ld"),u(r,"class","triangles-wrapper v-nhq2ld"),u(w,"class","step-caption v-nhq2ld"),u(l,"class","info v-nhq2ld")},m(k,y){P(k,e,y),P(k,n,y),P(k,l,y),p(l,r),p(r,o),p(r,a),p(r,c),p(r,d),p(r,h),p(l,g),p(l,w),p(w,C)},p(k,y){y&1&&t!==(t="semicircle "+k[0]+" v-nhq2ld")&&u(e,"class",t),y&1&&s!==(s="triangle "+k[0]+" v-nhq2ld")&&u(o,"class",s),y&1&&f!==(f="triangle "+k[0]+" v-nhq2ld")&&u(c,"class",f),y&1&&_!==(_="triangle "+k[0]+" v-nhq2ld")&&u(h,"class",_),y&2&&b!==(b=Y("doubletap_seek_step",{seconds:k[1].toFixed(0)})+"")&&et(C,b)},d(k){k&&(S(e),S(n),S(l))}}}function P_(i){let e,t,n,l,r=i[2]&&l1(i);return{c(){e=T("div"),r&&r.c(),u(e,"class",t="double-click-area "+i[0]+" v-nhq2ld")},m(o,s){P(o,e,s),r&&r.m(e,null),n||(l=ve(e,"click",st(i[3]())),n=!0)},p(o,[s]){o[2]?r?r.p(o,s):(r=l1(o),r.c(),r.m(e,null)):r&&(r.d(1),r=null),s&1&&t!==(t="double-click-area "+o[0]+" v-nhq2ld")&&u(e,"class",t)},i:K,o:K,d(o){o&&S(e),r&&r.d(),n=!1,l()}}}function T_(i,e,t){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(),t(2,s=!0),c=window.setTimeout(()=>{t(2,s=!1)},500))}};return gl(()=>{window.clearTimeout(a),window.clearTimeout(c)}),i.$$set=d=>{"side"in d&&t(0,n=d.side),"seekStep"in d&&t(1,l=d.seekStep),"handleSingleFirstClick"in d&&t(4,r=d.handleSingleFirstClick),"handleSecondClick"in d&&t(5,o=d.handleSecondClick)},[n,l,s,f,r,o]}class Mf extends ke{constructor(e){super(),we(this,e,T_,P_,be,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},S_)}}function E_(i,e,t){let{playNextVideo:n}=e;return _n(()=>{n()}),i.$$set=l=>{"playNextVideo"in l&&t(0,n=l.playNextVideo)},[n]}class A_ extends ke{constructor(e){super(),we(this,e,E_,null,be,{playNextVideo:0})}}const{window:I_}=vl;function L_(i){Ze(i,"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 r1(i){let e,t,n,l;e=new Mf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[99],handleSecondClick:i[129]}});let r=!i[48]&&s1(i);return{c(){j(e.$$.fragment),t=O(),r&&r.c(),n=mt()},m(o,s){F(e,o,s),P(o,t,s),r&&r.m(o,s),P(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&&(de(),v(r,1,1,()=>{r=null}),me()):r?(r.p(o,s),s[1]&131072&&m(r,1)):(r=s1(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&&(S(t),S(n)),H(e,o),r&&r.d(o)}}}function s1(i){let e,t;return e=new Mf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[99],handleSecondClick:i[130]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function a1(i){var n;let e,t;return e=new If({props:{thumbUrl:i[2],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){j(e.$$.fragment)},m(l,r){F(e,l,r),t=!0},p(l,r){var s;const o={};r[0]&4&&(o.thumbUrl=l[2]),r[0]&16&&(o.startTime=(s=l[4])==null?void 0:s.startTime),e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){v(e.$$.fragment,l),t=!1},d(l){H(e,l)}}}function u1(i){let e,t;return e=new Lf({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function c1(i){let e,t,n;return t=new Vc({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","ads-container v-1jy89ut"),B(e,"hidden",i[34]!==De.Ads)},m(l,r){P(l,e,r),F(t,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]),t.$set(o),(!n||r[1]&8)&&B(e,"hidden",l[34]!==De.Ads)},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function f1(i){let e,t;return e=new A_({props:{playNextVideo:i[22]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function d1(i){let e,t;return e=new Sf({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function m1(i){let e,t,n;return t=new G1({props:{ariaLabel:Y("video360")}}),{c(){e=T("div"),j(t.$$.fragment),u(e,"class","spherical-video-icon v-1jy89ut")},m(l,r){P(l,e,r),F(t,e,null),n=!0},p:K,i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){v(t.$$.fragment,l),n=!1},d(l){l&&S(e),H(t)}}}function p1(i){let e,t;return e=new Tf({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function h1(i){let e,t;return e=new Pf({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!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){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function v1(i){let e,t,n,l,r;return t=new Ef({}),{c(){e=T("div"),j(t.$$.fragment)},m(o,s){P(o,e,s),F(t,e,null),n=!0,l||(r=ve(e,"click",st(i[100])),l=!0)},p:K,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){v(t.$$.fragment,o),n=!1},d(o){o&&S(e),H(t),l=!1,r()}}}function g1(i){let e,t,n;function l(o){i[131](o)}let r={bottomHidden:i[34]===De.Thumb||i[34]===De.WaitingLive||i[34]===De.WaitingRecord||i[34]===De.Ads,showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]===De.Ads,canRewindLive:i[6]&&i[54]!==0,logoClickable:i[12],logoHidden:i[13],videoLogoUrl:i[3],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[97],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[103],onDisabledSeekToInteractiveClick:i[104]};return i[37]!==void 0&&(r.controlsElementRef=i[37]),e=new yf({props:r}),Ce.push(()=>We(e,"controlsElementRef",l)),{c(){j(e.$$.fragment)},m(o,s){F(e,o,s),n=!0},p(o,s){const a={};s[1]&8&&(a.bottomHidden=o[34]===De.Thumb||o[34]===De.WaitingLive||o[34]===De.WaitingRecord||o[34]===De.Ads),s[0]&1073741824&&(a.showControls=o[30]),s[1]&16384&&(a.bottomNoSmooth=o[45]),s[1]&8&&(a.isAds=o[34]===De.Ads),s[0]&64|s[1]&8388608&&(a.canRewindLive=o[6]&&o[54]!==0),s[0]&4096&&(a.logoClickable=o[12]),s[0]&8192&&(a.logoHidden=o[13]),s[0]&8&&(a.videoLogoUrl=o[3]),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]),!t&&s[1]&64&&(t=!0,a.controlsElementRef=o[37],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function b1(i){let e,t;return e=new qc({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function _1(i){let e,t;return e=new zc({}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function w1(i){let e,t,n=i[6]&&i[78]&&!i[47].has(dt.TIMELINE),l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y;e=new Af({props:{hidden:i[34]!==De.Thumb||i[33]||i[89]&&i[5],thumbUrl:i[2],startVideo:i[28]}});let M=n&&r1(i),q=i[34]===De.WaitingLive&&a1(i),I=i[34]===De.WaitingRecord&&u1(),z=i[7]&&i[21]&&c1(i),ae=i[41]&&i[17]&&i[18]&&f1(i),se=i[49]&&d1(),R=i[50]&&m1(),te=i[35]&&p1(i),X=i[52].value!=="off"&&h1(i),G=i[33]&&v1(i),A=i[21]&&g1(i);w=new Bc({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let V=i[38]&&b1(),x=i[57]&&_1();return{c(){j(e.$$.fragment),t=O(),M&&M.c(),l=O(),q&&q.c(),r=O(),I&&I.c(),o=O(),z&&z.c(),s=O(),ae&&ae.c(),a=O(),se&&se.c(),c=O(),R&&R.c(),f=O(),te&&te.c(),d=O(),X&&X.c(),h=O(),G&&G.c(),_=O(),A&&A.c(),g=O(),j(w.$$.fragment),b=O(),V&&V.c(),C=O(),x&&x.c(),k=mt()},m(L,ie){F(e,L,ie),P(L,t,ie),M&&M.m(L,ie),P(L,l,ie),q&&q.m(L,ie),P(L,r,ie),I&&I.m(L,ie),P(L,o,ie),z&&z.m(L,ie),P(L,s,ie),ae&&ae.m(L,ie),P(L,a,ie),se&&se.m(L,ie),P(L,c,ie),R&&R.m(L,ie),P(L,f,ie),te&&te.m(L,ie),P(L,d,ie),X&&X.m(L,ie),P(L,h,ie),G&&G.m(L,ie),P(L,_,ie),A&&A.m(L,ie),P(L,g,ie),F(w,L,ie),P(L,b,ie),V&&V.m(L,ie),P(L,C,ie),x&&x.m(L,ie),P(L,k,ie),y=!0},p(L,ie){const Ee={};ie[0]&32|ie[1]&12&&(Ee.hidden=L[34]!==De.Thumb||L[33]||L[89]&&L[5]),ie[0]&4&&(Ee.thumbUrl=L[2]),ie[0]&268435456&&(Ee.startVideo=L[28]),e.$set(Ee),ie[0]&64|ie[1]&65536&&(n=L[6]&&L[78]&&!L[47].has(dt.TIMELINE)),n?M?(M.p(L,ie),ie[0]&64|ie[1]&65536&&m(M,1)):(M=r1(L),M.c(),m(M,1),M.m(l.parentNode,l)):M&&(de(),v(M,1,1,()=>{M=null}),me()),L[34]===De.WaitingLive?q?(q.p(L,ie),ie[1]&8&&m(q,1)):(q=a1(L),q.c(),m(q,1),q.m(r.parentNode,r)):q&&(de(),v(q,1,1,()=>{q=null}),me()),L[34]===De.WaitingRecord?I?ie[1]&8&&m(I,1):(I=u1(),I.c(),m(I,1),I.m(o.parentNode,o)):I&&(de(),v(I,1,1,()=>{I=null}),me()),L[7]&&L[21]?z?(z.p(L,ie),ie[0]&2097280&&m(z,1)):(z=c1(L),z.c(),m(z,1),z.m(s.parentNode,s)):z&&(de(),v(z,1,1,()=>{z=null}),me()),L[41]&&L[17]&&L[18]?ae?(ae.p(L,ie),ie[0]&393216|ie[1]&1024&&m(ae,1)):(ae=f1(L),ae.c(),m(ae,1),ae.m(a.parentNode,a)):ae&&(de(),v(ae,1,1,()=>{ae=null}),me()),L[49]?se?ie[1]&262144&&m(se,1):(se=d1(),se.c(),m(se,1),se.m(c.parentNode,c)):se&&(de(),v(se,1,1,()=>{se=null}),me()),L[50]?R?(R.p(L,ie),ie[1]&524288&&m(R,1)):(R=m1(),R.c(),m(R,1),R.m(f.parentNode,f)):R&&(de(),v(R,1,1,()=>{R=null}),me()),L[35]?te?(te.p(L,ie),ie[1]&16&&m(te,1)):(te=p1(L),te.c(),m(te,1),te.m(d.parentNode,d)):te&&(de(),v(te,1,1,()=>{te=null}),me()),L[52].value!=="off"?X?(X.p(L,ie),ie[1]&2097152&&m(X,1)):(X=h1(L),X.c(),m(X,1),X.m(h.parentNode,h)):X&&(de(),v(X,1,1,()=>{X=null}),me()),L[33]?G?(G.p(L,ie),ie[1]&4&&m(G,1)):(G=v1(L),G.c(),m(G,1),G.m(_.parentNode,_)):G&&(de(),v(G,1,1,()=>{G=null}),me()),L[21]?A?(A.p(L,ie),ie[0]&2097152&&m(A,1)):(A=g1(L),A.c(),m(A,1),A.m(g.parentNode,g)):A&&(de(),v(A,1,1,()=>{A=null}),me());const ye={};ie[1]&16777216&&(ye.isLive=L[55]),ie[1]&512&&(ye.isHidden=!L[40]),ie[1]&33554432&&(ye.isPlaying=L[56]),ie[1]&8192&&(ye.position=L[44]),ie[1]&4096&&(ye.duration=L[43]),w.$set(ye),L[38]?V?ie[1]&128&&m(V,1):(V=b1(),V.c(),m(V,1),V.m(C.parentNode,C)):V&&(de(),v(V,1,1,()=>{V=null}),me()),L[57]?x?ie[1]&67108864&&m(x,1):(x=_1(),x.c(),m(x,1),x.m(k.parentNode,k)):x&&(de(),v(x,1,1,()=>{x=null}),me())},i(L){y||(m(e.$$.fragment,L),m(M),m(q),m(I),m(z),m(ae),m(se),m(R),m(te),m(X),m(G),m(A),m(w.$$.fragment,L),m(V),m(x),y=!0)},o(L){v(e.$$.fragment,L),v(M),v(q),v(I),v(z),v(ae),v(se),v(R),v(te),v(X),v(G),v(A),v(w.$$.fragment,L),v(V),v(x),y=!1},d(L){L&&(S(t),S(l),S(r),S(o),S(s),S(a),S(c),S(f),S(d),S(h),S(_),S(g),S(b),S(C),S(k)),H(e,L),M&&M.d(L),q&&q.d(L),I&&I.d(L),z&&z.d(L),ae&&ae.d(L),se&&se.d(L),R&&R.d(L),te&&te.d(L),X&&X.d(L),G&&G.d(L),A&&A.d(L),H(w,L),V&&V.d(L),x&&x.d(L)}}}function V_(i){let e,t,n,l,r,o=i[46],s,a,c,f,d,h=w1(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),h.c(),s=O(),a=T("div"),u(n,"class","video-container v-1jy89ut"),u(n,"style",l=`transform: rotate(${i[32]}deg) scale(${i[42]})`),B(n,"fast-rotate",!i[1].isSmoothVideoRotate),u(t,"class","video-wrapper v-1jy89ut"),B(t,"hidden",i[34]!==De.Video),u(a,"class","overlay-container"),u(e,"class","player-wrapper v-1jy89ut"),u(e,"role","region"),u(e,"aria-label",Y("aria_label_video_player")),u(e,"tabindex","-1")},m(_,g){P(_,e,g),p(e,t),p(t,n),i[128](n),p(e,r),h.m(e,null),p(e,s),p(e,a),i[132](a),i[133](e),c=!0,f||(d=[ve(I_,"blur",i[98]),ve(t,"click",Jt(i[99])),ve(e,"click",i[101],!0),ve(e,"focusin",i[102],!0)],f=!0)},p(_,g){(!c||g[1]&2050&&l!==(l=`transform: rotate(${_[32]}deg) scale(${_[42]})`))&&u(n,"style",l),(!c||g[0]&2)&&B(n,"fast-rotate",!_[1].isSmoothVideoRotate),(!c||g[1]&8)&&B(t,"hidden",_[34]!==De.Video),g[1]&32768&&be(o,o=_[46])?(de(),v(h,1,1,K),me(),h=w1(_),h.c(),m(h,1),h.m(e,s)):h.p(_,g)},i(_){c||(m(h),c=!0)},o(_){v(h),c=!1},d(_){_&&S(e),i[128](null),h.d(_),i[132](null),i[133](null),f=!1,nt(d)}}}function M_(i,e,t){var hn,Tn;let n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q,I,z,ae,se,R,te,X,G,A,V,x,L,ie,Ee,ye,Le,Ve,{store:_e}=e,{uiConfig:Se}=e,{thumbUrl:W}=e,{videoLogoUrl:$}=e,{videoContainer:fe}=e,{interactiveContainer:ue}=e,{live:Fe}=e,{autoplay:Oe}=e,{canRewindLive:Me}=e,{showAds:Ie}=e,{adsSlotId:ce=void 0}=e,{adsParams:he=void 0}=e,{adsPreviewParam:re=void 0}=e,{duration:Te=void 0}=e,{logoClickable:pe}=e,{logoHidden:Pe}=e,{showNextPrevButtons:Ke=!1}=e,{nextButtonActive:Re=!1}=e,{prevButtonActive:xe=!1}=e,{endScreenVideoTitle:Xe=void 0}=e,{endScreenVideoThumb:ot=void 0}=e,{isOneVideoPlaylist:at=!1}=e,{supportLink:At}=e,{outerContainerRef:pt=void 0}=e,{showMiniTimer:xt=!1}=e,{fullScreenTarget:gt=void 0}=e,{playerStarted:Mt=!1}=e,{playNextVideo:oe=ne.noop}=e,{playPrevVideo:_t=ne.noop}=e,{repeatPlaylist:rt=ne.noop}=e,{seekToInteractive:Rt}=e,{toggleGraph:ut}=e,{playPrevChapter:It}=e,{firstStart:Je}=e,{seekTime:Ue}=e;const St=_e.getLogger().createComponentLog("Root component"),$i=_e.interfaceLanguage$;D(i,$i,J=>t(46,te=J));const di=_e.state.playbackState$;D(i,di,J=>t(125,ae=J));const mi=_e.ads.playbackState;D(i,mi,J=>t(126,se=J));const ln=_e.state.positionWithScrubbing$;D(i,ln,J=>t(44,o=J));const $t=_e.state.duration$;D(i,$t,J=>t(43,r=J));const Kt=_e.playerPhase;D(i,Kt,J=>t(34,M=J));const ei=_e.ui.isFullscreen;D(i,ei,J=>t(139,a=J));const Ot=_e.ui.controlsVisible;D(i,Ot,J=>t(30,l=J));const ti=_e.ui.interactiveHideMobileControls;D(i,ti,J=>t(117,h=J));const Di=_e.ui.settingsMenuVisible;D(i,Di,J=>t(116,n=J));const ii=_e.ui.scrubbingInProgress;D(i,ii,J=>t(118,g=J));const Ei=_e.ui.debugPanelVisible;D(i,Ei,J=>t(57,Ve=J));const pi=_e.state.isLoaderVisible;D(i,pi,J=>t(127,R=J));const ni=_e.state.isEnded$;D(i,ni,J=>t(120,C=J));const zi=_e.state.chromecastConnected$;D(i,zi,J=>t(35,q=J));const Ai=_e.state.chromecastDeviceName$;D(i,Ai,J=>t(51,x=J));const Fi=_e.ads.postrollPassed;D(i,Fi,J=>t(121,k=J));const oi=_e.ui.mobileUnmuteButtonExpanded,Hi=_e.ui.mobileUnmuteButtonVisible,Pt=_e.state.isLive$;D(i,Pt,J=>t(55,ye=J));const Tt=_e.state.isPlaying$;D(i,Tt,J=>t(56,Le=J));const hi=_e.state.isActiveLive$;D(i,hi,J=>t(48,G=J));const Ii=_e.state.isRewindableLive$,lt=_e.state.crashed$;D(i,lt,J=>t(33,b=J));const ct=_e.webApi.pictureInPictureApi,li=_e.state.videoSize$;D(i,li,J=>t(140,f=J));const Bt=_e.state.currentSubtitle$;D(i,Bt,J=>t(52,L=J));const ri=_e.state.currentSubtitleCaptions$;D(i,ri,J=>t(53,ie=J));const vi=_e.state.duration$;D(i,vi,J=>t(54,Ee=J));const gi=_e.state.graphIsOpened$;D(i,gi,J=>t(124,z=J));const Dt=_e.ui.playerSize;D(i,Dt,J=>t(31,c=J));const Zi=_e.ui.is3DVideo;D(i,Zi,J=>t(49,A=J));const bi=_e.ui.icon3DVideoVisible;D(i,bi,J=>t(50,V=J));const Gt=_e.ui.rotateAlpha;D(i,Gt,J=>t(32,_=J));const Li=_e.state.isInteractive,rn=_e.state.isInteractiveTime$;D(i,rn,J=>t(119,w=J));const _i=_e.state.isInteractiveExpectation$;D(i,_i,J=>t(123,I=J));const Ui=_e.state.hasInteractiveBranches,Nt=_e.ui.controls.disabledControls$;D(i,Nt,J=>t(47,X=J));const Ht=_e.ui.touched;D(i,Ht,J=>t(122,y=J));const wi=_e.ui.clientInfo$;D(i,wi,J=>t(138,s=J));const Vi=_e.ui.overlayContainer$,Mi=_e.actions.internal.closeSettingsMenu,si=(hn=_e.callbacks)==null?void 0:hn.onDisabledPlayPrevChapterClick,Ki=(Tn=_e.callbacks)==null?void 0:Tn.onDisabledSeekToInteractiveClick;let ki,yi,ji,Ci,Gi,qt,Yt;const Bi=Ne(!1);D(i,Bi,J=>t(45,d=J));let Ni,Wt=!1,ai,ui=!1,je,Yi=!0,ci,qi,Be=!1,sn;ct==null||ct.setContext(E1());const an=J=>{clearTimeout(Ci),J&&(Hi.set(!0),oi.set(!0),Ci=window.setTimeout(()=>{oi.set(!1)},Se.controls.collapseMobileUnmute),Li||Lt(Se.controls.hideTimeoutMobile))};_e.setUiCallbacks({onStarted:an});const Qi=()=>{window.clearTimeout(ji),t(111,Wt=!1),h&&ti.set(!1)},Lt=J=>{Qi(),t(111,Wt=!0),ji=window.setTimeout(()=>t(111,Wt=!1),J);const vt=J-100;Ni=window.setTimeout(()=>{d&&Bi.set(!1)},vt>0?vt:J)},un=Zi.subscribe(J=>{bi.set(J),J&&(window.clearTimeout(Gi),Gi=window.setTimeout(()=>bi.set(!1),Se.controls.hide360IconTimeout))}),en=()=>xi(this,null,function*(){var vt,vn,Xi,gn;const J=No();if(J){Lt(Se.controls.hideTimeoutFullscreen);try{yield ct==null?void 0:ct.remove()}catch(fn){St({message:String(fn)})}try{const fn=f!=null&&f.width&&(f!=null&&f.height)?f:c;yield I4(fn)}catch(fn){St({message:String(fn)})}}ei.set(J),_e.getAdmanWrapper().setFullscreen(J),a?(vn=(vt=_e.callbacks)==null?void 0:vt.onFullscreenEnter)==null||vn.call(vt):(gn=(Xi=_e.callbacks)==null?void 0:Xi.onFullscreenExit)==null||gn.call(Xi)}),Wi=J=>{const vt=J;Dt.set({width:vt.target.width,height:vt.target.height})};_n(()=>{var vt;return Ic(en),hl(ct)&&(ct==null||ct.assignPlayerContainer(ki),ct==null||ct.registryExternalEventHandlers({resize:Wi})),t(39,Yi=!C_(s)),ue&&((vt=fe.parentElement)==null||vt.insertBefore(ue,fe.nextSibling)),()=>{window.clearTimeout(ji),window.clearTimeout(Ni),window.clearTimeout(Ci),window.clearTimeout(Gi),un(),ct==null||ct.dispose(),Lc(en)}});const Si=J=>{let vt=o+(J==="forward"?1:-1)*Se.controls.seekStepMobile/1e3;vt<0?vt=0:vt>r&&(vt=r-1),t(113,ui=!0),Ue(vt)},ee=()=>xi(this,null,function*(){if(No())yield Ac(document),St({message:"exit fullscreen"});else{St({message:"request fullscreen"});const J=ne.isIOS()||!pt?ki:pt,vt=J.getRootNode(),vn=vt instanceof ShadowRoot?vt.host:vt,Xi=gt instanceof HTMLElement&>.contains(vn),gn=Se.allowChangingFullscreenTarget&>&&Xi?gt:J;yield Ec(gn)}}),it=()=>{Mi()},Ut=()=>{if(n){it();return}if(!Mt){Je(),Lt(Se.controls.hideTimeoutCursor);return}t(113,ui=!1),l?Qi():Lt(Se.controls.hideTimeoutMobile)},Pi=()=>{if(n){it();return}},ht=()=>{Ht.set(!0)},mn=()=>{Li||(Bi.set(!0),Lt(Se.controls.hideTimeoutCursor))},kn=J=>{si&&(si(J),Lt(Se.controls.hideTimeoutMobile))},pn=J=>{Ki&&(Ki(J),Lt(Se.controls.hideTimeoutMobile))};function yn(J){Ce[J?"unshift":"push"](()=>{fe=J,t(0,fe)})}const cn=()=>Si("backward"),tn=()=>Si("forward");function Cn(J){yi=J,t(37,yi)}function Sn(J){Ce[J?"unshift":"push"](()=>{Yt=J,t(29,Yt)})}function Pn(J){Ce[J?"unshift":"push"](()=>{ki=J,t(36,ki)})}return i.$$set=J=>{"store"in J&&t(105,_e=J.store),"uiConfig"in J&&t(1,Se=J.uiConfig),"thumbUrl"in J&&t(2,W=J.thumbUrl),"videoLogoUrl"in J&&t(3,$=J.videoLogoUrl),"videoContainer"in J&&t(0,fe=J.videoContainer),"interactiveContainer"in J&&t(106,ue=J.interactiveContainer),"live"in J&&t(4,Fe=J.live),"autoplay"in J&&t(5,Oe=J.autoplay),"canRewindLive"in J&&t(6,Me=J.canRewindLive),"showAds"in J&&t(7,Ie=J.showAds),"adsSlotId"in J&&t(8,ce=J.adsSlotId),"adsParams"in J&&t(9,he=J.adsParams),"adsPreviewParam"in J&&t(10,re=J.adsPreviewParam),"duration"in J&&t(11,Te=J.duration),"logoClickable"in J&&t(12,pe=J.logoClickable),"logoHidden"in J&&t(13,Pe=J.logoHidden),"showNextPrevButtons"in J&&t(14,Ke=J.showNextPrevButtons),"nextButtonActive"in J&&t(15,Re=J.nextButtonActive),"prevButtonActive"in J&&t(16,xe=J.prevButtonActive),"endScreenVideoTitle"in J&&t(17,Xe=J.endScreenVideoTitle),"endScreenVideoThumb"in J&&t(18,ot=J.endScreenVideoThumb),"isOneVideoPlaylist"in J&&t(19,at=J.isOneVideoPlaylist),"supportLink"in J&&t(20,At=J.supportLink),"outerContainerRef"in J&&t(107,pt=J.outerContainerRef),"showMiniTimer"in J&&t(108,xt=J.showMiniTimer),"fullScreenTarget"in J&&t(109,gt=J.fullScreenTarget),"playerStarted"in J&&t(21,Mt=J.playerStarted),"playNextVideo"in J&&t(22,oe=J.playNextVideo),"playPrevVideo"in J&&t(23,_t=J.playPrevVideo),"repeatPlaylist"in J&&t(24,rt=J.repeatPlaylist),"seekToInteractive"in J&&t(25,Rt=J.seekToInteractive),"toggleGraph"in J&&t(26,ut=J.toggleGraph),"playPrevChapter"in J&&t(27,It=J.playPrevChapter),"firstStart"in J&&t(28,Je=J.firstStart),"seekTime"in J&&t(110,Ue=J.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&12|i.$$.dirty[4]&12&&t(38,qt=(M===De.Video&&R||M===De.Ads&&se===Xt.INACTIVE)&&!b),i.$$.dirty[0]&536870912&&Vi.set(Yt),i.$$.dirty[4]&2&&t(112,ai=ae!==$e.PlaybackState.PLAYING),i.$$.dirty[3]&1225523200|i.$$.dirty[4]&1&&t(114,je=z||h||!Wt&&(C&&!!Ui||ai&&I)),i.$$.dirty[1]&28|i.$$.dirty[3]&45875200&&Ot.set((ai||n||g||q||Wt&&!ui)&&!je&&M===De.Video&&!b),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&536903680&&t(40,ci=Se.features.thumbTimer&&xt&&M===De.Video&&!l&&!b&&!Li&&(Se.hideThumbTimerAfterTouch&&!y||!Se.hideThumbTimerAfterTouch)),i.$$.dirty[0]&128|i.$$.dirty[1]&4|i.$$.dirty[3]&402653184&&t(41,qi=(Ie&&k||!Ie)&&C&&!b),i.$$.dirty[0]&2|i.$$.dirty[3]&104857600&&(!g&&Be&&!w&&Lt(Se.controls.hideTimeoutMobile),t(115,Be=g)),i.$$.dirty[0]&1|i.$$.dirty[1]&3&&t(42,sn=fe&&_%180?c.height/c.width:1)},[fe,Se,W,$,Fe,Oe,Me,Ie,ce,he,re,Te,pe,Pe,Ke,Re,xe,Xe,ot,at,At,Mt,oe,_t,rt,Rt,ut,It,Je,Yt,l,c,_,b,M,q,ki,yi,qt,Yi,ci,qi,sn,r,o,d,te,X,G,A,V,x,L,ie,Ee,ye,Le,Ve,$i,di,mi,ln,$t,Kt,ei,Ot,ti,Di,ii,Ei,pi,ni,zi,Ai,Fi,Pt,Tt,hi,Ii,lt,li,Bt,ri,vi,gi,Dt,Zi,bi,Gt,Li,rn,_i,Nt,Ht,wi,Bi,Si,ee,it,Ut,Pi,ht,mn,kn,pn,_e,ue,pt,xt,gt,Ue,Wt,ai,ui,je,Be,n,h,g,w,C,k,y,I,z,ae,se,R,yn,cn,tn,Cn,Sn,Pn]}class B_ extends ke{constructor(e){super(),we(this,e,M_,V_,be,{store:105,uiConfig:1,thumbUrl:2,videoLogoUrl:3,videoContainer:0,interactiveContainer:106,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:107,showMiniTimer:108,fullScreenTarget:109,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:110},L_,[-1,-1,-1,-1,-1,-1])}}function N_(i){Ze(i,"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 Qg(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&&He(t,n[0]),o&2&&L(e,"hidden",n[1])},i:R,o:R,d(n){n&&v(e)}}}function Xg(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 Zu=class extends j{constructor(e){super(),X(this,e,Xg,Qg,G,{title:0,isHidden:1},Yg)}},cm=Zu;function Jg(i){ye(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 fm(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&&He(n,a[0])},d(a){a&&(v(e),v(r),v(l))}}}function dm(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&&He(n,a[1])},d(a){a&&(v(e),v(r),v(l))}}}function mm(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&&He(n,a[2])},d(a){a&&(v(e),v(r),v(l))}}}function pm(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&&He(n,r[3])},d(r){r&&v(e)}}}function $g(i){let e,t,n,o,s=i[0]&&fm(i),r=i[1]&&dm(i),l=i[2]&&mm(i),a=i[3]&&pm(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=fm(c),s.c(),s.m(e,t)):s&&(s.d(1),s=null),c[1]?r?r.p(c,f):(r=dm(c),r.c(),r.m(e,n)):r&&(r.d(1),r=null),c[2]?l?l.p(c,f):(l=mm(c),l.c(),l.m(e,o)):l&&(l.d(1),l=null),c[3]?a?a.p(c,f):(a=pm(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 e5(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 Vt(()=>{c=requestAnimationFrame(_)}),qn(()=>{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 Gu=class extends j{constructor(e){super(),X(this,e,e5,$g,G,{startTime:4,onTimerOver:5},Jg)}},hm=Gu;function t5(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"),Mt(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"),Mt(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"),Mt(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"),Mt(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"),Mt(e,"shape-rendering","geometricPrecision"),Mt(e,"text-rendering","geometricPrecision"),Mt(e,"image-rendering","optimizeQuality"),Mt(e,"fill-rule","evenodd"),Mt(e,"clip-rule","evenodd"),Mt(e,"width","100%"),Mt(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 ju=class extends j{constructor(e){super(),X(this,e,null,t5,G,{})}},_m=ju;function i5(i){ye(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 n5(i){let e,t,n,o,s;return o=new hm({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 o5(i){let e,t,n,o,s,r;return n=new _m({}),{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 r5(i){let e,t,n,o,s,r=[o5,n5],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 l5(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 xu=class extends j{constructor(e){super(),X(this,e,l5,r5,G,{thumbUrl:0,startTime:1},i5)}},ls=xu;function s5(i){ye(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 a5(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 Yu=class extends j{constructor(e){super(),X(this,e,null,a5,G,{},s5)}},ss=Yu;var{window:u5}=So;function c5(i){ye(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 gm(i){var n;let e,t;return e=new ls({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 vm(i){let e,t;return e=new ss({}),{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 ym(i){let e,t,n;return t=new cl({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 wm(i){let e,t;return e=new e1({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 km(i){let e,t;return e=new cm({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 Cm(i){let e,t;return e=new ts({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 Sm(i){let e,t,n;return t=new tl({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 Tm(i){let e,t;return e=new ns({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 Pm(i){let e,t;return e=new is({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 Im(i){let e,t,n,o,s;return t=new os({}),{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",Et(i[108])),de(e,"click",et(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,xe(s)}}}function Em(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:Rm,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 es({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 Mm(i){let e,t;return e=new vl({}),{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 Vm(i){let e,t;return e=new f1({}),{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 Lm(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 Am(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 rs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let oe=i[38]==="waitingLive"&&gm(i),P=i[38]==="waitingRecord"&&vm(i),ne=i[7]&&i[22]&&ym(i),J=i[31]&&i[18]&&i[19]&&wm(i),K=i[44]&&km(i),Y=i[49]&&Cm(i),M=i[52]&&Sm(i),W=i[39]&&Tm(i),B=i[54].value!=="off"&&Pm(i),te=i[37]&&Im(i),Ce=i[22]&&Em(i);b=new dl({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),S=new tm({props:{data:i[103]}});function Fe(Q){i[158](Q)}let Ne={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ne.menuElementRef=i[32]),k=new Df({props:Ne}),me.push(()=>Ve(k,"menuElementRef",Fe));let Ke=i[42]&&Mm(i),De=i[62]&&Vm(i),be=i[63]&&Lm(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(),Y&&Y.c(),a=N(),M&&M.c(),c=N(),W&&W.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(),Ke&&Ke.c(),U=N(),De&&De.c(),$=N(),be&&be.c(),q=Xe()},m(Q,_e){O(e,Q,_e),y(Q,t,_e),oe&&oe.m(Q,_e),y(Q,n,_e),P&&P.m(Q,_e),y(Q,o,_e),ne&&ne.m(Q,_e),y(Q,s,_e),J&&J.m(Q,_e),y(Q,r,_e),K&&K.m(Q,_e),y(Q,l,_e),Y&&Y.m(Q,_e),y(Q,a,_e),M&&M.m(Q,_e),y(Q,c,_e),W&&W.m(Q,_e),y(Q,f,_e),B&&B.m(Q,_e),y(Q,p,_e),te&&te.m(Q,_e),y(Q,_,_e),Ce&&Ce.m(Q,_e),y(Q,g,_e),O(b,Q,_e),y(Q,w,_e),O(S,Q,_e),y(Q,I,_e),O(k,Q,_e),y(Q,E,_e),Ke&&Ke.m(Q,_e),y(Q,U,_e),De&&De.m(Q,_e),y(Q,$,_e),be&&be.m(Q,_e),y(Q,q,_e),le=!0},p(Q,_e){let Le={};_e[0]&32|_e[1]&192&&(Le.hidden=Q[38]!=="thumb"||Q[37]||Q[92]&&Q[5]),_e[0]&8&&(Le.thumbUrl=Q[3]),_e[0]&536870912&&(Le.startVideo=Q[29]),e.$set(Le),Q[38]==="waitingLive"?oe?(oe.p(Q,_e),_e[1]&128&&m(oe,1)):(oe=gm(Q),oe.c(),m(oe,1),oe.m(n.parentNode,n)):oe&&(ce(),h(oe,1,1,()=>{oe=null}),fe()),Q[38]==="waitingRecord"?P?_e[1]&128&&m(P,1):(P=vm(Q),P.c(),m(P,1),P.m(o.parentNode,o)):P&&(ce(),h(P,1,1,()=>{P=null}),fe()),Q[7]&&Q[22]?ne?(ne.p(Q,_e),_e[0]&4194432&&m(ne,1)):(ne=ym(Q),ne.c(),m(ne,1),ne.m(s.parentNode,s)):ne&&(ce(),h(ne,1,1,()=>{ne=null}),fe()),Q[31]&&Q[18]&&Q[19]?J?(J.p(Q,_e),_e[0]&786432|_e[1]&1&&m(J,1)):(J=wm(Q),J.c(),m(J,1),J.m(r.parentNode,r)):J&&(ce(),h(J,1,1,()=>{J=null}),fe()),Q[44]?K?(K.p(Q,_e),_e[1]&8192&&m(K,1)):(K=km(Q),K.c(),m(K,1),K.m(l.parentNode,l)):K&&(ce(),h(K,1,1,()=>{K=null}),fe()),Q[49]?Y?(Y.p(Q,_e),_e[1]&262144&&m(Y,1)):(Y=Cm(Q),Y.c(),m(Y,1),Y.m(a.parentNode,a)):Y&&(ce(),h(Y,1,1,()=>{Y=null}),fe()),Q[52]?M?(M.p(Q,_e),_e[1]&2097152&&m(M,1)):(M=Sm(Q),M.c(),m(M,1),M.m(c.parentNode,c)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),Q[39]?W?(W.p(Q,_e),_e[1]&256&&m(W,1)):(W=Tm(Q),W.c(),m(W,1),W.m(f.parentNode,f)):W&&(ce(),h(W,1,1,()=>{W=null}),fe()),Q[54].value!=="off"?B?(B.p(Q,_e),_e[1]&8388608&&m(B,1)):(B=Pm(Q),B.c(),m(B,1),B.m(p.parentNode,p)):B&&(ce(),h(B,1,1,()=>{B=null}),fe()),Q[37]?te?(te.p(Q,_e),_e[1]&64&&m(te,1)):(te=Im(Q),te.c(),m(te,1),te.m(_.parentNode,_)):te&&(ce(),h(te,1,1,()=>{te=null}),fe()),Q[22]?Ce?(Ce.p(Q,_e),_e[0]&4194304&&m(Ce,1)):(Ce=Em(Q),Ce.c(),m(Ce,1),Ce.m(g.parentNode,g)):Ce&&(ce(),h(Ce,1,1,()=>{Ce=null}),fe());let qe={};_e[1]&134217728&&(qe.isLive=Q[58]),_e[1]&4096&&(qe.isHidden=!Q[43]),_e[1]&268435456&&(qe.isPlaying=Q[59]),_e[1]&33554432&&(qe.position=Q[56]),_e[1]&536870912&&(qe.duration=Q[60]),b.$set(qe);let Ze={};_e[0]&2097152&&(Ze.supportLink=Q[21]),_e[1]&131072&&(Ze.returnFocus=Q[157]),_e[1]&4&&(Ze.visible=Q[33]),_e[1]&512&&(Ze.playerContainerRef=Q[40]),_e[1]&1024&&(Ze.controlsContainerRef=Q[41]),_e[1]&1073741824&&(Ze.position=Q[61]),!C&&_e[1]&2&&(C=!0,Ze.menuElementRef=Q[32],Me(()=>C=!1)),k.$set(Ze),Q[42]?Ke?_e[1]&2048&&m(Ke,1):(Ke=Mm(Q),Ke.c(),m(Ke,1),Ke.m(U.parentNode,U)):Ke&&(ce(),h(Ke,1,1,()=>{Ke=null}),fe()),Q[62]?De?_e[2]&1&&m(De,1):(De=Vm(Q),De.c(),m(De,1),De.m($.parentNode,$)):De&&(ce(),h(De,1,1,()=>{De=null}),fe()),Q[63]?be?_e[2]&2&&m(be,1):(be=Lm(Q),be.c(),m(be,1),be.m(q.parentNode,q)):be&&(ce(),h(be,1,1,()=>{be=null}),fe())},i(Q){le||(m(e.$$.fragment,Q),m(oe),m(P),m(ne),m(J),m(K),m(Y),m(M),m(W),m(B),m(te),m(Ce),m(b.$$.fragment,Q),m(S.$$.fragment,Q),m(k.$$.fragment,Q),m(Ke),m(De),m(be),le=!0)},o(Q){h(e.$$.fragment,Q),h(oe),h(P),h(ne),h(J),h(K),h(Y),h(M),h(W),h(B),h(te),h(Ce),h(b.$$.fragment,Q),h(S.$$.fragment,Q),h(k.$$.fragment,Q),h(Ke),h(De),h(be),le=!1},d(Q){Q&&(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,Q),oe&&oe.d(Q),P&&P.d(Q),ne&&ne.d(Q),J&&J.d(Q),K&&K.d(Q),Y&&Y.d(Q),M&&M.d(Q),W&&W.d(Q),B&&B.d(Q),te&&te.d(Q),Ce&&Ce.d(Q),F(b,Q),F(S,Q),F(k,Q),Ke&&Ke.d(Q),De&&De.d(Q),be&&be.d(Q)}}}function f5(i){let e,t,n,o,s=i[51],r,l,a,c,f=Am(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",Et(i[108])),de(e,"mousedown",Et(i[113])),de(e,"mouseup",Et(i[114])),de(e,"click",Et(i[116])),de(e,"dblclick",Et(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=Am(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,xe(c)}}}function d5(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:[f5]},$$scope:{ctx:i}};return t=new i1({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(u5,"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,xe(l)}}}var Rm=!0;function Qu(i){return i?i.offsetTop+Qu(i.offsetParent):0}function Nm(i){return i?i.offsetLeft+Nm(i.offsetParent):0}function m5(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,Y,M,W,B,te,Ce,Fe,Ne,Ke,De,be,Q,_e,Le,qe,Ze,{store:he}=e,{uiConfig:Pe}=e,{title:Re}=e,{thumbUrl:Ye}=e,{videoContainer:ve}=e,{interactiveContainer:Z}=e,{live:we}=e,{autoplay:ue}=e,{canRewindLive:Se}=e,{showAds:ze}=e,{adsSlotId:it=void 0}=e,{adsParams:lt=void 0}=e,{adsPreviewParam:nt=void 0}=e,{duration:_t=void 0}=e,{logoClickable:dt}=e,{logoHidden:ge}=e,{logoTargetUrl:at=""}=e,{showNextPrevButtons:At=!1}=e,{nextButtonActive:Ct=!1}=e,{prevButtonActive:Ae=!1}=e,{endScreenVideoTitle:Ft=void 0}=e,{endScreenVideoThumb:pe=void 0}=e,{isOneVideoPlaylist:St=!1}=e,{supportLink:Tt}=e,{outerContainerRef:ut=void 0}=e,{playerStarted:ct=!1}=e,{fullScreenTarget:Je=void 0}=e,{showMiniTimer:Te=!1}=e,{playNextVideo:st=as.noop}=e,{playPrevVideo:jt=as.noop}=e,{repeatPlaylist:xt=as.noop}=e,{seekToInteractive:Ji}=e,{toggleGraph:fn}=e,{playPrevChapter:ci}=e,{firstStart:fi}=e,ki=he.getLogger().createComponentLog("Root component"),$t=he.interfaceLanguage$;D(i,$t,x=>t(51,B=x));let di=he.state.playbackState$;D(i,di,x=>t(151,Y=x));let $i=he.ads.playbackState;D(i,$i,x=>t(152,M=x));let Ci=he.state.positionWithScrubbing$;D(i,Ci,x=>t(56,Ke=x));let Si=he.state.duration$;D(i,Si,x=>t(60,_e=x));let mi=he.playerPhase;D(i,mi,x=>t(38,oe=x));let Ti=he.ui.isFullscreen;D(i,Ti,x=>t(141,b=x));let pi=he.ui.controlsVisible;D(i,pi,x=>t(36,E=x));let Pi=he.ui.settingsMenuVisible;D(i,Pi,x=>t(139,a=x));let Ii=he.ui.scrubbingInProgress;D(i,Ii,x=>t(143,k=x));let Rt=he.ui.contextMenu.visible$;D(i,Rt,x=>t(33,n=x));let Ht=he.ui.debugPanelVisible;D(i,Ht,x=>t(63,Ze=x));let Nt=he.state.isLoaderVisible;D(i,Nt,x=>t(153,W=x));let hi=he.state.isEnded$;D(i,hi,x=>t(140,f=x));let Zt=he.state.chromecastConnected$;D(i,Zt,x=>t(39,J=x));let _i=he.state.chromecastDeviceName$;D(i,_i,x=>t(53,Ce=x));let ei=he.ads.postrollPassed;D(i,ei,x=>t(146,q=x));let li=he.state.isLive$;D(i,li,x=>t(58,be=x));let mt=he.state.isPlaying$;D(i,mt,x=>t(59,Q=x));let zt=he.state.crashed$;D(i,zt,x=>t(37,$=x));let gt=he.webApi.pictureInPictureApi,ti=he.state.currentSubtitle$;D(i,ti,x=>t(54,Fe=x));let bi=he.state.currentSubtitleCaptions$;D(i,bi,x=>t(55,Ne=x));let bn=he.state.duration$;D(i,bn,x=>t(57,De=x));let en=he.state.graphIsOpened$;D(i,en,x=>t(147,le=x));let ii=he.ui.playerSize;D(i,ii,x=>t(34,_=x));let si=he.ui.is3DVideo;D(i,si,x=>t(49,p=x));let Ei=he.ui.icon3DVideoVisible;D(i,Ei,x=>t(52,te=x));let zi=he.ui.rotateAlpha;D(i,zi,x=>t(35,I=x));let Yt=he.state.isInteractive,It=he.state.isInteractiveTime$;D(i,It,x=>t(144,C=x));let Mi=he.state.isInteractiveExpectation$;D(i,Mi,x=>t(150,K=x));let tn=he.state.hasInteractiveBranches,ai=he.ui.touched;D(i,ai,x=>t(148,P=x));let nn=he.ui.modals.hotKeyMap.data;D(i,nn,x=>t(168,c=x));let gi=he.ui.modals.hotKeyMap.show;D(i,gi,x=>t(62,qe=x));let dn=he.ui.overlayContainer$,on=he.ui.controls.interactiveTimeIndicator;D(i,on,x=>t(169,g=x));let mn=he.state.showInteractiveTimeIndicator,Ui=he.ui.contextMenu.position$;D(i,Ui,x=>t(61,Le=x));let Vi=he.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Qt}=Nn();D(i,Qt,x=>t(142,S=x));let ni,vi,qi,Ki,yi;nn.set(bf());let Li,Ai,Ue=Ee(!1);D(i,Ue,x=>t(50,w=x));let Wi,Gt=Ee(!1);D(i,Gt,x=>t(149,ne=x));let Be=Ee(),Bi=Ee(!1);D(i,Bi,x=>t(145,U=x));let rn=!1,Zi=!1,Ri,pn,Ni,ln,Xt,sn,ui=!1,se,rt=!1,{toggle:Jt}=Qt,oi=!1,Di=null,Ut;gt==null||gt.setContext(wr());let Mn=()=>{ue&&!Yt&&qt(Pe.controls.hideTimeout)};he.setUiCallbacks({onStarted:Mn});let Vn=()=>{window.clearTimeout(qi),Gt.set(!1)},kn=()=>{window.clearTimeout(Ki),Be.set(null)},qt=x=>{Vn(),Gt.set(!0),qi=window.setTimeout(()=>Gt.set(!1),x);let bt=x-100;Wi=window.setTimeout(()=>{w&&Ue.set(!1)},bt>0?bt:x)},Ln=(x,bt)=>{kn(),Be.set(bt),Ki=window.setTimeout(()=>Be.set(null),x)},Zn=si.subscribe(x=>{Ei.set(x),x&&(window.clearTimeout(yi),yi=window.setTimeout(()=>Ei.set(!1),Pe.controls.hide360IconTimeout))}),An=()=>tt(this,null,function*(){var bt,an,Gi,A;let x=co();if(x){qt(Pe.controls.hideTimeoutFullscreen);try{yield gt==null?void 0:gt.remove()}catch(ae){ki({message:String(ae)})}}Ti.set(x),he.getAdmanWrapper().setFullscreen(x),b?(an=(bt=he.callbacks)==null?void 0:bt.onFullscreenEnter)==null||an.call(bt):(A=(Gi=he.callbacks)==null?void 0:Gi.onFullscreenExit)==null||A.call(Gi)}),Fn=x=>{let bt=x;ii.set({width:bt.target.width,height:bt.target.height})};Vt(()=>{var bt;return al(An),Bo(gt)&&(gt==null||gt.assignPlayerContainer(ni),gt==null||gt.registryExternalEventHandlers({resize:Fn})),Z&&((bt=ve.parentElement)==null||bt.insertBefore(Z,ve.nextSibling)),()=>{window.clearTimeout(qi),window.clearTimeout(Wi),window.clearTimeout(Ki),window.clearTimeout(yi),Zn(),gt==null||gt.dispose(),ul(An)}});let Cn=()=>tt(this,null,function*(){if(co())yield sl(document),ki({message:"exit fullscreen"});else{ki({message:"request fullscreen"});let x=ut!=null?ut:ni,bt=x.getRootNode(),an=bt instanceof ShadowRoot?bt.host:bt,Gi=Je instanceof HTMLElement&&Je.contains(an),A=Pe.allowChangingFullscreenTarget&&Je&&Gi?Je:x;yield ll(A)}}),gn=()=>{Vi(),Rt.set(!1)},Hn=x=>{Rt.set(!0),Ui.set({left:x.clientX,top:x.clientY})};function zn(){Bi.set(!0),Yt||qt(Pe.controls.hideTimeoutCursor)}function re(){Yt||(Ue.set(!0),qt(Pe.controls.hideTimeoutCursor))}function vt(){Bi.set(!1),t(131,Zi=!1),t(130,rn=!1),oi=!1,he.actions.internal.releaseCamera()}function Sn(x){if(g&&mn){let bt=x.currentTarget,an=Qu(bt),Gi=Nm(bt),A=x.pageX-Gi,ae=x.pageY-an,{left:ke,bottom:Oe,right:$e}=g,ht=$e-ke;return A>=ke-ht&&ae<=Oe+ht}}function hn(x){if(ni){let bt=Qu(x.currentTarget),an=_.height,Gi=x.pageY-bt;if(Sn(x)){t(131,Zi=!1);return}Gi<40?t(131,Zi=!0):Gi>an-40?t(130,rn=!0):(t(131,Zi=!1),a||t(130,rn=!1))}}function Tn(x){hn(x),pn||qt(Pe.controls.hideTimeoutCursor),p&&oi&&Di&&he.actions.internal.moveCameraFocusPX(Di.clientX-x.clientX,Di.clientY-x.clientY,x.timeStamp-Di.timeStamp),Di=x}let vn=x=>{x.button===0&&(oi=!0,he.actions.internal.holdCamera()),qt(Pe.controls.hideTimeoutCursor)},oo=x=>{x.button===0&&(Di=x,oi=!1,he.actions.internal.releaseCamera()),qt(Pe.controls.hideTimeoutCursor)},ro=()=>{Rm&&(ki({message:"double click on video"}),Cn(),qt(Pe.controls.hideTimeoutCursor))},vo=()=>{if(n||a){gn();return}if(!(f&&!tn)){if(rt)return Jt();if(Ut==null||Ut.focus(),!ct){fi(),qt(Pe.controls.hideTimeoutCursor);return}he.actions.internal.togglePlay(),qt(Pe.controls.hideTimeoutCursor)}},Xn=x=>{gn(),ai.set(!0),qt(Pe.controls.hideTimeout),x&&Ln(Pe.controls.hideHotKeyHelpers,x)},yn=()=>{var x,bt;gn(),(x=he.callbacks)!=null&&x.onOpenHotKeyMap?(bt=he.callbacks)==null||bt.onOpenHotKeyMap(c):gi.update(an=>!an)},ie=()=>{if(n||a){gn();return}},Jn=()=>{ai.set(!0)},lo=he.ui.contextMenu.openedByBtnKeyboard$;D(i,lo,x=>t(138,l=x));let zo=he.ui.contextMenu.btnRef$;D(i,zo,x=>t(137,r=x));let Gn,so=he.ui.contextMenu.openedByHotKey$;D(i,so,x=>t(136,s=x));let Uo=he.ui.contextMenu.lastActiveElem$;D(i,Uo,x=>t(135,o=x));function qo(x){me[x?"unshift":"push"](()=>{ve=x,t(0,ve)})}let gr=()=>Ut==null?void 0:Ut.focus();function $n(x){vi=x,t(41,vi)}let yo=()=>Ut==null?void 0:Ut.focus();function wo(x){Gn=x,t(32,Gn)}function Ko(x){me[x?"unshift":"push"](()=>{Ut=x,t(48,Ut)})}function ko(x){me[x?"unshift":"push"](()=>{Ai=x,t(30,Ai)})}function pt(x){me[x?"unshift":"push"](()=>{ni=x,t(40,ni)})}return i.$$set=x=>{"store"in x&&t(125,he=x.store),"uiConfig"in x&&t(1,Pe=x.uiConfig),"title"in x&&t(2,Re=x.title),"thumbUrl"in x&&t(3,Ye=x.thumbUrl),"videoContainer"in x&&t(0,ve=x.videoContainer),"interactiveContainer"in x&&t(126,Z=x.interactiveContainer),"live"in x&&t(4,we=x.live),"autoplay"in x&&t(5,ue=x.autoplay),"canRewindLive"in x&&t(6,Se=x.canRewindLive),"showAds"in x&&t(7,ze=x.showAds),"adsSlotId"in x&&t(8,it=x.adsSlotId),"adsParams"in x&&t(9,lt=x.adsParams),"adsPreviewParam"in x&&t(10,nt=x.adsPreviewParam),"duration"in x&&t(11,_t=x.duration),"logoClickable"in x&&t(12,dt=x.logoClickable),"logoHidden"in x&&t(13,ge=x.logoHidden),"logoTargetUrl"in x&&t(14,at=x.logoTargetUrl),"showNextPrevButtons"in x&&t(15,At=x.showNextPrevButtons),"nextButtonActive"in x&&t(16,Ct=x.nextButtonActive),"prevButtonActive"in x&&t(17,Ae=x.prevButtonActive),"endScreenVideoTitle"in x&&t(18,Ft=x.endScreenVideoTitle),"endScreenVideoThumb"in x&&t(19,pe=x.endScreenVideoThumb),"isOneVideoPlaylist"in x&&t(20,St=x.isOneVideoPlaylist),"supportLink"in x&&t(21,Tt=x.supportLink),"outerContainerRef"in x&&t(127,ut=x.outerContainerRef),"playerStarted"in x&&t(22,ct=x.playerStarted),"fullScreenTarget"in x&&t(128,Je=x.fullScreenTarget),"showMiniTimer"in x&&t(129,Te=x.showMiniTimer),"playNextVideo"in x&&t(23,st=x.playNextVideo),"playPrevVideo"in x&&t(24,jt=x.playPrevVideo),"repeatPlaylist"in x&&t(25,xt=x.repeatPlaylist),"seekToInteractive"in x&&t(26,Ji=x.seekToInteractive),"toggleGraph"in x&&t(27,fn=x.toggleGraph),"playPrevChapter"in x&&t(28,ci=x.playPrevChapter),"firstStart"in x&&t(29,fi=x.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Li=(oe==="video"&&W||oe==="ads"&&M==="inactive")&&!$);if(i.$$.dirty[0]&1073741824)e:dn.set(Ai);if(i.$$.dirty[4]&134217728)e:t(132,Ri=Y!==Bm.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,pn=C&&!a&&!(rn||Zi)&&!(Ri&&!K));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:pi.set((Ri||a||k||J||ne)&&!pn&&(oe==="video"||oe==="ads")&&!$);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,Ni=Pe.features.thumbTimer&&Te&&oe==="video"&&!E&&!$&&!Yt&&(Pe.hideThumbTimerAfterTouch&&!P||!Pe.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,ln=oe==="video"&&!le&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,Xt=(ze&&q||!ze)&&f&&!$);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,sn=U&&!(E||Xt)&&!C);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!k&&ui&&!C&&qt(Pe.controls.hideTimeoutCursor),t(134,ui=k);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,se=ve&&I%180?_.height/_.width:1);if(i.$$.dirty[4]&262144)e:t(47,rt=S!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:Do(Gn,n,l);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let x=r;x&&nr(x,n,lo)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Do(Gn,n,s);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let x=o;x&&Mf(x,n,so)}},[ve,Pe,Re,Ye,we,ue,Se,ze,it,lt,nt,_t,dt,ge,at,At,Ct,Ae,Ft,pe,St,Tt,ct,st,jt,xt,Ji,fn,ci,fi,Ai,Xt,Gn,n,_,I,E,$,oe,J,ni,vi,Li,Ni,ln,sn,se,rt,Ut,p,w,B,te,Ce,Fe,Ne,Ke,De,be,Q,_e,Le,qe,Ze,$t,di,$i,Ci,Si,mi,Ti,pi,Pi,Ii,Rt,Ht,Nt,hi,Zt,_i,ei,li,mt,zt,ti,bi,bn,en,ii,si,Ei,zi,Yt,It,Mi,ai,nn,gi,on,Ui,Qt,Ue,Gt,Be,Bi,Jt,Cn,gn,Hn,zn,re,vt,Tn,vn,oo,ro,vo,Xn,yn,ie,Jn,lo,zo,so,Uo,he,Z,ut,Je,Te,rn,Zi,Ri,pn,ui,o,s,r,l,a,f,b,S,k,C,U,q,le,P,ne,K,Y,M,W,qo,gr,$n,yo,wo,Ko,ko,pt]}var Xu=class extends j{constructor(e){super(),X(this,e,m5,d5,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},c5,[-1,-1,-1,-1,-1,-1,-1])}},Dm=Xu;var tp=require("@vkontakte/videoplayer-core"),Ho=require("@vkontakte/videoplayer-shared");var dr=require("@vkontakte/videoplayer-shared"),Om=i=>{if(!(0,dr.isIOS)(!0))return!1;let e=i.device===dr.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,dr.getIOSVersion)();return!e||e&&!!t&&t<16};function p5(i){ye(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 Fm(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)})+"")&&He(I,S)},d(k){k&&(v(e),v(n),v(o))}}}function h5(i){let e,t,n,o,s=i[2]&&Fm(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",et(i[3]())),n=!0)},p(r,[l]){r[2]?s?s.p(r,l):(s=Fm(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 _5(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 qn(()=>{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 Ju=class extends j{constructor(e){super(),X(this,e,_5,h5,G,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},p5)}},$u=Ju;function b5(i,e,t){let{playNextVideo:n}=e;return Vt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var ec=class extends j{constructor(e){super(),X(this,e,b5,null,G,{playNextVideo:0})}},Hm=ec;var{window:g5}=So;function v5(i){ye(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 zm(i){let e,t,n,o;e=new $u({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let s=!i[48]&&Um(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=Um(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 Um(i){let e,t;return e=new $u({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 qm(i){var n;let e,t;return e=new ls({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 Km(i){let e,t;return e=new ss({}),{c(){H(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Wm(i){let e,t,n;return t=new cl({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 Zm(i){let e,t;return e=new Hm({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 Gm(i){let e,t;return e=new ts({}),{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,n;return t=new tl({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 xm(i){let e,t;return e=new ns({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 Ym(i){let e,t;return e=new is({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 Qm(i){let e,t,n,o,s;return t=new os({}),{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",et(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 Xm(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 es({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 Jm(i){let e,t;return e=new vl({}),{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 $m(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 ep(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 rs({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let E=n&&zm(i),U=i[34]==="waitingLive"&&qm(i),$=i[34]==="waitingRecord"&&Km(i),q=i[6]&&i[21]&&Wm(i),le=i[41]&&i[17]&&i[18]&&Zm(i),oe=i[49]&&Gm(i),P=i[50]&&jm(i),ne=i[35]&&xm(i),J=i[52].value!=="off"&&Ym(i),K=i[33]&&Qm(i),Y=i[21]&&Xm(i);w=new dl({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let M=i[38]&&Jm(i),W=i[57]&&$m(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(),Y&&Y.c(),b=N(),H(w.$$.fragment),S=N(),M&&M.c(),I=N(),W&&W.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),Y&&Y.m(B,te),y(B,b,te),O(w,B,te),y(B,S,te),M&&M.m(B,te),y(B,I,te),W&&W.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=zm(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=qm(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):($=Km(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=Wm(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=Zm(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=Gm(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=jm(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=xm(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=Ym(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=Qm(B),K.c(),m(K,1),K.m(g.parentNode,g)):K&&(ce(),h(K,1,1,()=>{K=null}),fe()),B[21]?Y?(Y.p(B,te),te[0]&2097152&&m(Y,1)):(Y=Xm(B),Y.c(),m(Y,1),Y.m(b.parentNode,b)):Y&&(ce(),h(Y,1,1,()=>{Y=null}),fe());let Fe={};te[1]&16777216&&(Fe.isLive=B[55]),te[1]&512&&(Fe.isHidden=!B[40]),te[1]&33554432&&(Fe.isPlaying=B[56]),te[1]&8192&&(Fe.position=B[44]),te[1]&4096&&(Fe.duration=B[43]),w.$set(Fe),B[38]?M?te[1]&128&&m(M,1):(M=Jm(B),M.c(),m(M,1),M.m(I.parentNode,I)):M&&(ce(),h(M,1,1,()=>{M=null}),fe()),B[57]?W?te[1]&67108864&&m(W,1):(W=$m(B),W.c(),m(W,1),W.m(k.parentNode,k)):W&&(ce(),h(W,1,1,()=>{W=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(Y),m(w.$$.fragment,B),m(M),m(W),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(Y),h(w.$$.fragment,B),h(M),h(W),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),Y&&Y.d(B),F(w,B),M&&M.d(B),W&&W.d(B)}}}function y5(i){let e,t,n,o,s,r=i[46],l,a,c,f,p,_,g=ep(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(g5,"blur",i[99]),de(t,"click",Et(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=ep(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,xe(_)}}}function w5(i,e,t){var Hn,zn;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,Y,M,W,B,te,Ce,Fe,Ne,Ke,De,{store:be}=e,{uiConfig:Q}=e,{thumbUrl:_e}=e,{videoContainer:Le}=e,{interactiveContainer:qe}=e,{live:Ze}=e,{autoplay:he}=e,{canRewindLive:Pe}=e,{showAds:Re}=e,{adsSlotId:Ye=void 0}=e,{adsParams:ve=void 0}=e,{adsPreviewParam:Z=void 0}=e,{duration:we=void 0}=e,{logoClickable:ue}=e,{logoHidden:Se}=e,{logoTargetUrl:ze=""}=e,{showNextPrevButtons:it=!1}=e,{nextButtonActive:lt=!1}=e,{prevButtonActive:nt=!1}=e,{endScreenVideoTitle:_t=void 0}=e,{endScreenVideoThumb:dt=void 0}=e,{isOneVideoPlaylist:ge=!1}=e,{supportLink:at}=e,{outerContainerRef:At=void 0}=e,{showMiniTimer:Ct=!1}=e,{fullScreenTarget:Ae=void 0}=e,{playerStarted:Ft=!1}=e,{playNextVideo:pe=Ho.noop}=e,{playPrevVideo:St=Ho.noop}=e,{repeatPlaylist:Tt=Ho.noop}=e,{seekToInteractive:ut}=e,{toggleGraph:ct}=e,{playPrevChapter:Je}=e,{firstStart:Te}=e,{seekTime:st}=e,jt=be.getLogger().createComponentLog("Root component"),xt=be.interfaceLanguage$;D(i,xt,re=>t(46,J=re));let Ji=be.state.playbackState$;D(i,Ji,re=>t(126,oe=re));let fn=be.ads.playbackState;D(i,fn,re=>t(127,P=re));let ci=be.state.positionWithScrubbing$;D(i,ci,re=>t(44,l=re));let fi=be.state.duration$;D(i,fi,re=>t(43,r=re));let ki=be.playerPhase;D(i,ki,re=>t(34,U=re));let $t=be.ui.isFullscreen;D(i,$t,re=>t(141,c=re));let di=be.ui.controlsVisible;D(i,di,re=>t(30,o=re));let $i=be.ui.interactiveHideMobileControls;D(i,$i,re=>t(118,g=re));let Ci=be.ui.settingsMenuVisible;D(i,Ci,re=>t(117,n=re));let Si=be.ui.scrubbingInProgress;D(i,Si,re=>t(119,w=re));let mi=be.ui.debugPanelVisible;D(i,mi,re=>t(57,De=re));let Ti=be.state.isLoaderVisible;D(i,Ti,re=>t(128,ne=re));let pi=be.state.isEnded$;D(i,pi,re=>t(121,k=re));let Pi=be.state.chromecastConnected$;D(i,Pi,re=>t(35,$=re));let Ii=be.state.chromecastDeviceName$;D(i,Ii,re=>t(51,B=re));let Rt=be.ads.postrollPassed;D(i,Rt,re=>t(122,C=re));let Ht=be.ui.mobileUnmuteButtonExpanded,Nt=be.ui.mobileUnmuteButtonVisible,hi=be.state.isLive$;D(i,hi,re=>t(55,Ne=re));let Zt=be.state.isPlaying$;D(i,Zt,re=>t(56,Ke=re));let _i=be.state.isActiveLive$;D(i,_i,re=>t(48,Y=re));let ei=be.state.isRewindableLive$,li=be.state.crashed$;D(i,li,re=>t(33,I=re));let mt=be.webApi.pictureInPictureApi,zt=be.state.videoSize$;D(i,zt,re=>t(142,p=re));let gt=be.state.currentSubtitle$;D(i,gt,re=>t(52,te=re));let ti=be.state.currentSubtitleCaptions$;D(i,ti,re=>t(53,Ce=re));let bi=be.state.duration$;D(i,bi,re=>t(54,Fe=re));let bn=be.state.graphIsOpened$;D(i,bn,re=>t(125,le=re));let en=be.ui.playerSize;D(i,en,re=>t(31,f=re));let ii=be.ui.is3DVideo;D(i,ii,re=>t(49,M=re));let si=be.ui.icon3DVideoVisible;D(i,si,re=>t(50,W=re));let Ei=be.ui.rotateAlpha;D(i,Ei,re=>t(32,b=re));let zi=be.state.isInteractive,Yt=be.state.isInteractiveTime$;D(i,Yt,re=>t(120,S=re));let It=be.state.isInteractiveExpectation$;D(i,It,re=>t(124,q=re));let Mi=be.state.hasInteractiveBranches,tn=be.ui.controls.disabledControls$;D(i,tn,re=>t(47,K=re));let ai=be.ui.touched;D(i,ai,re=>t(123,E=re));let nn=be.ui.clientInfo$;D(i,nn,re=>t(140,a=re));let gi=be.ui.overlayContainer$,dn=be.state.isFirstBytes$;D(i,dn,re=>t(139,s=re));let on=be.actions.internal.closeSettingsMenu,mn=(Hn=be.callbacks)==null?void 0:Hn.onDisabledPlayPrevChapterClick,Ui=(zn=be.callbacks)==null?void 0:zn.onDisabledSeekToInteractiveClick,Vi,Qt,ni,vi,qi,Ki,yi,Li=Ee(!1);D(i,Li,re=>t(45,_=re));let Ai,Ue=!1,Wi,Gt=!1,Be,Bi=!0,rn,Zi,Ri=!1,pn;mt==null||mt.setContext(wr());let Ni=re=>{clearTimeout(vi),re&&(Nt.set(!0),Ht.set(!0),vi=window.setTimeout(()=>{Ht.set(!1)},Q.controls.collapseMobileUnmute),zi||Xt(Q.controls.hideTimeoutMobile))};be.setUiCallbacks({onStarted:Ni});let ln=()=>{window.clearTimeout(ni),t(112,Ue=!1),g&&$i.set(!1)},Xt=re=>{ln(),t(112,Ue=!0),ni=window.setTimeout(()=>t(112,Ue=!1),re);let vt=re-100;Ai=window.setTimeout(()=>{_&&Li.set(!1)},vt>0?vt:re)},sn=ii.subscribe(re=>{si.set(re),re&&(window.clearTimeout(qi),qi=window.setTimeout(()=>si.set(!1),Q.controls.hide360IconTimeout))}),ui=()=>tt(this,null,function*(){var vt,Sn,hn,Tn;let re=co();if(re){Xt(Q.controls.hideTimeoutFullscreen);try{yield mt==null?void 0:mt.remove()}catch(vn){jt({message:String(vn)})}try{let vn=p!=null&&p.width&&(p!=null&&p.height)?p:f;yield _f(vn)}catch(vn){jt({message:String(vn)})}}$t.set(re),be.getAdmanWrapper().setFullscreen(re),c?(Sn=(vt=be.callbacks)==null?void 0:vt.onFullscreenEnter)==null||Sn.call(vt):(Tn=(hn=be.callbacks)==null?void 0:hn.onFullscreenExit)==null||Tn.call(hn)}),se=re=>{let vt=re;en.set({width:vt.target.width,height:vt.target.height})};Vt(()=>{var vt;return al(ui),Bo(mt)&&(mt==null||mt.assignPlayerContainer(Vi),mt==null||mt.registryExternalEventHandlers({resize:se})),t(39,Bi=!Om(a)),qe&&((vt=Le.parentElement)==null||vt.insertBefore(qe,Le.nextSibling)),()=>{window.clearTimeout(ni),window.clearTimeout(Ai),window.clearTimeout(vi),window.clearTimeout(qi),sn(),mt==null||mt.dispose(),ul(ui)}});let rt=re=>{let vt=l+(re==="forward"?1:-1)*Q.controls.seekStepMobile/1e3;vt<0?vt=0:vt>r&&(vt=r-1),t(114,Gt=!0),st(vt)},Jt=()=>tt(this,null,function*(){if(co())yield sl(document),jt({message:"exit fullscreen"});else{if(jt({message:"request fullscreen"}),(0,Ho.isIOS)()&&!s)return;let re=(0,Ho.isIOS)()||!At?Vi:At,vt=re.getRootNode(),Sn=vt instanceof ShadowRoot?vt.host:vt,hn=Ae instanceof HTMLElement&&Ae.contains(Sn),Tn=Q.allowChangingFullscreenTarget&&Ae&&hn?Ae:re;yield ll(Tn)}}),oi=()=>{on()},Di=()=>{if(n){oi();return}if(!Ft){Te(),Xt(Q.controls.hideTimeoutCursor);return}t(114,Gt=!1),o?ln():Xt(Q.controls.hideTimeoutMobile)},Ut=()=>{if(n){oi();return}},Mn=()=>{ai.set(!0)},Vn=()=>{zi||(Li.set(!0),Xt(Q.controls.hideTimeoutCursor))},kn=re=>{mn&&(mn(re),Xt(Q.controls.hideTimeoutMobile))},qt=re=>{Ui&&(Ui(re),Xt(Q.controls.hideTimeoutMobile))};function Ln(re){me[re?"unshift":"push"](()=>{Le=re,t(0,Le)})}let Zn=()=>rt("backward"),An=()=>rt("forward");function Fn(re){Qt=re,t(37,Qt)}function Cn(re){me[re?"unshift":"push"](()=>{yi=re,t(29,yi)})}function gn(re){me[re?"unshift":"push"](()=>{Vi=re,t(36,Vi)})}return i.$$set=re=>{"store"in re&&t(106,be=re.store),"uiConfig"in re&&t(1,Q=re.uiConfig),"thumbUrl"in re&&t(2,_e=re.thumbUrl),"videoContainer"in re&&t(0,Le=re.videoContainer),"interactiveContainer"in re&&t(107,qe=re.interactiveContainer),"live"in re&&t(3,Ze=re.live),"autoplay"in re&&t(4,he=re.autoplay),"canRewindLive"in re&&t(5,Pe=re.canRewindLive),"showAds"in re&&t(6,Re=re.showAds),"adsSlotId"in re&&t(7,Ye=re.adsSlotId),"adsParams"in re&&t(8,ve=re.adsParams),"adsPreviewParam"in re&&t(9,Z=re.adsPreviewParam),"duration"in re&&t(10,we=re.duration),"logoClickable"in re&&t(11,ue=re.logoClickable),"logoHidden"in re&&t(12,Se=re.logoHidden),"logoTargetUrl"in re&&t(13,ze=re.logoTargetUrl),"showNextPrevButtons"in re&&t(14,it=re.showNextPrevButtons),"nextButtonActive"in re&&t(15,lt=re.nextButtonActive),"prevButtonActive"in re&&t(16,nt=re.prevButtonActive),"endScreenVideoTitle"in re&&t(17,_t=re.endScreenVideoTitle),"endScreenVideoThumb"in re&&t(18,dt=re.endScreenVideoThumb),"isOneVideoPlaylist"in re&&t(19,ge=re.isOneVideoPlaylist),"supportLink"in re&&t(20,at=re.supportLink),"outerContainerRef"in re&&t(108,At=re.outerContainerRef),"showMiniTimer"in re&&t(109,Ct=re.showMiniTimer),"fullScreenTarget"in re&&t(110,Ae=re.fullScreenTarget),"playerStarted"in re&&t(21,Ft=re.playerStarted),"playNextVideo"in re&&t(22,pe=re.playNextVideo),"playPrevVideo"in re&&t(23,St=re.playPrevVideo),"repeatPlaylist"in re&&t(24,Tt=re.repeatPlaylist),"seekToInteractive"in re&&t(25,ut=re.seekToInteractive),"toggleGraph"in re&&t(26,ct=re.toggleGraph),"playPrevChapter"in re&&t(27,Je=re.playPrevChapter),"firstStart"in re&&t(28,Te=re.firstStart),"seekTime"in re&&t(111,st=re.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,Ki=(U==="video"&&ne||U==="ads"&&P==="inactive")&&!I);if(i.$$.dirty[0]&536870912)e:gi.set(yi);if(i.$$.dirty[4]&4)e:t(113,Wi=oe!==tp.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,Be=le||g||!Ue&&(k&&!!Mi||Wi&&q));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:di.set((Wi||n||w||$||Ue&&!Gt)&&!Be&&U==="video"&&!I);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,rn=Q.features.thumbTimer&&Ct&&U==="video"&&!o&&!I&&!zi&&(Q.hideThumbTimerAfterTouch&&!E||!Q.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Zi=(Re&&C||!Re)&&k&&!I);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!w&&Ri&&!S&&Xt(Q.controls.hideTimeoutMobile),t(116,Ri=w);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,pn=Le&&b%180?f.height/f.width:1)},[Le,Q,_e,Ze,he,Pe,Re,Ye,ve,Z,we,ue,Se,ze,it,lt,nt,_t,dt,ge,at,Ft,pe,St,Tt,ut,ct,Je,Te,yi,o,f,b,I,U,$,Vi,Qt,Ki,Bi,rn,Zi,pn,r,l,_,J,K,Y,M,W,B,te,Ce,Fe,Ne,Ke,De,xt,Ji,fn,ci,fi,ki,$t,di,$i,Ci,Si,mi,Ti,pi,Pi,Ii,Rt,hi,Zt,_i,ei,li,zt,gt,ti,bi,bn,en,ii,si,Ei,zi,Yt,It,tn,ai,nn,dn,Li,rt,Jt,oi,Di,Ut,Mn,Vn,kn,qt,be,qe,At,Ct,Ae,st,Ue,Wi,Gt,Be,Ri,n,g,w,S,k,C,E,q,le,oe,P,ne,Ln,Zn,An,Fn,Cn,gn]}var tc=class extends j{constructor(e){super(),X(this,e,w5,y5,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},v5,[-1,-1,-1,-1,-1,-1])}},ip=tc;function k5(i){ye(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 R_(i){let e,t,n;function l(o){i[56](o)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],videoLogoUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[36]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new y_({props:r}),Ce.push(()=>We(e,"videoContainer",l)),{c(){j(e.$$.fragment)},m(o,s){F(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.videoLogoUrl=o[3]),s[0]&16&&(a.interactiveContainer=o[4]),s[0]&32&&(a.live=o[5]),s[0]&64&&(a.autoplay=o[6]),s[0]&128&&(a.canRewindLive=o[7]),s[0]&256&&(a.showAds=o[8]),s[0]&512&&(a.adsSlotId=o[9]),s[0]&1024&&(a.adsParams=o[10]),s[0]&2048&&(a.adsPreviewParam=o[11]),s[0]&4096&&(a.duration=o[12]),s[0]&8192&&(a.logoClickable=o[13]),s[0]&16384&&(a.logoHidden=o[14]),s[0]&65536&&(a.showNextPrevButtons=o[16]),s[0]&131072&&(a.nextButtonActive=o[17]),s[0]&262144&&(a.prevButtonActive=o[18]),s[0]&524288&&(a.endScreenVideoTitle=o[19]),s[0]&1048576&&(a.endScreenVideoThumb=o[20]),s[0]&2097152&&(a.isOneVideoPlaylist=o[21]),s[0]&4194304&&(a.supportLink=o[22]),s[0]&8388608&&(a.outerContainerRef=o[23]),s[0]&16777216&&(a.fullScreenTarget=o[24]),s[0]&33554432&&(a.showMiniTimer=o[25]),s[1]&8&&(a.playerStarted=o[34]),s[0]&67108864&&(a.playNextVideo=o[26]),s[0]&134217728&&(a.playPrevVideo=o[27]),s[0]&268435456&&(a.repeatPlaylist=o[28]),s[0]&536870912&&(a.seekToInteractive=o[29]),s[0]&1073741824&&(a.toggleGraph=o[30]),s[1]&1&&(a.playPrevChapter=o[31]),!t&&s[1]&4&&(t=!0,a.videoContainer=o[33],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function O_(i){let e,t,n;function l(o){i[55](o)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],videoLogoUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[36],seekTime:i[32]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new B_({props:r}),Ce.push(()=>We(e,"videoContainer",l)),{c(){j(e.$$.fragment)},m(o,s){F(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.videoLogoUrl=o[3]),s[0]&16&&(a.interactiveContainer=o[4]),s[0]&32&&(a.live=o[5]),s[0]&64&&(a.autoplay=o[6]),s[0]&128&&(a.canRewindLive=o[7]),s[0]&256&&(a.showAds=o[8]),s[0]&512&&(a.adsSlotId=o[9]),s[0]&1024&&(a.adsParams=o[10]),s[0]&2048&&(a.adsPreviewParam=o[11]),s[0]&4096&&(a.duration=o[12]),s[0]&8192&&(a.logoClickable=o[13]),s[0]&16384&&(a.logoHidden=o[14]),s[0]&65536&&(a.showNextPrevButtons=o[16]),s[0]&131072&&(a.nextButtonActive=o[17]),s[0]&262144&&(a.prevButtonActive=o[18]),s[0]&524288&&(a.endScreenVideoTitle=o[19]),s[0]&1048576&&(a.endScreenVideoThumb=o[20]),s[0]&2097152&&(a.isOneVideoPlaylist=o[21]),s[0]&4194304&&(a.supportLink=o[22]),s[0]&8388608&&(a.outerContainerRef=o[23]),s[0]&16777216&&(a.fullScreenTarget=o[24]),s[0]&33554432&&(a.showMiniTimer=o[25]),s[1]&8&&(a.playerStarted=o[34]),s[0]&67108864&&(a.playNextVideo=o[26]),s[0]&134217728&&(a.playPrevVideo=o[27]),s[0]&268435456&&(a.repeatPlaylist=o[28]),s[0]&536870912&&(a.seekToInteractive=o[29]),s[0]&1073741824&&(a.toggleGraph=o[30]),s[1]&1&&(a.playPrevChapter=o[31]),!t&&s[1]&4&&(t=!0,a.videoContainer=o[33],qe(()=>t=!1)),e.$set(a)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),n=!1},d(o){H(e,o)}}}function D_(i){let e,t,n,l;const r=[O_,R_],o=[];function s(a,c){return a[15]?0:1}return t=s(i),n=o[t]=r[t](i),{c(){e=T("div"),n.c(),u(e,"class","root v-cghoty")},m(a,c){P(a,e,c),o[t].m(e,null),l=!0},p(a,c){let f=t;t=s(a),t===f?o[t].p(a,c):(de(),v(o[f],1,1,()=>{o[f]=null}),me(),n=o[t],n?n.p(a,c):(n=o[t]=r[t](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&&S(e),o[t].d()}}}function z_(i,e,t){let{sources:n}=e,{store:l}=e,{microStoresRoot:r}=e,{uiConfig:o}=e,{title:s}=e,{thumbUrl:a}=e,{videoLogoUrl:c}=e,{interactiveContainer:f}=e,{subtitles:d}=e,{live:h}=e,{preload:_}=e,{autoplay:g}=e,{volume:w=void 0}=e,{muted:b=void 0}=e,{fromTime:C}=e,{canRewindLive:k}=e,{showAds:y}=e,{adsSlotId:M=void 0}=e,{adsParams:q=void 0}=e,{adsPreviewParam:I=void 0}=e,{duration:z=void 0}=e,{logoClickable:ae}=e,{logoHidden:se}=e,{isMobile:R}=e,{showNextPrevButtons:te=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:G=!1}=e,{endScreenVideoTitle:A=void 0}=e,{endScreenVideoThumb:V=void 0}=e,{isOneVideoPlaylist:x=!1}=e,{supportLink:L}=e,{outerContainerRef:ie=void 0}=e,{fullScreenTarget:Ee=void 0}=e,{failoverHosts:ye=void 0}=e,{showMiniTimer:Le=!1}=e,{playNextVideo:Ve=ne.noop}=e,{playPrevVideo:_e=ne.noop}=e,{repeatPlaylist:Se=ne.noop}=e,{seekToInteractive:W=ne.noop}=e,{toggleGraph:$=ne.noop}=e,{playPrevChapter:fe=ne.noop}=e;const{subscribers:ue,stores:Fe}=r;L0(o);const Oe=wn(),Me=l.ui.debugPanelVisible,Ie=l.ui.playerSize;let ce,he=null,re=!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}),F0(l,Fe);const Te=(oe=!1)=>{t(34,re=!0),oe?l.actions.external.firstStart(y):l.actions.internal.firstStart(y)};function pe(oe){var Je;const _t=n||oe;_t&&l.initVideo({container:ce,sources:_t,failoverHosts:ye,subtitles:d});const rt=ne.safeStorage.get(rr)==="true";Me.set(rt),C>0&&l.actions.external.seekTime(C);const Rt=R?Oe.volumeDefault:(Je=w!=null?w:q1())!=null?Je:Oe.volumeDefault,ut=b!=null?b:Z0();if(l.actions.external.setVolume(Rt),l.actions.external.setMuted(ut),l.getAdmanWrapper().setInitialVolume(ut?0:Rt),Oe.features.trafficSaving){const Ue=G0();Ue&&l.actions.internal.setTrafficSavingEnabled(Ue)}const It=W0(l.videoId);It&&l.actions.internal.setQuality(It),l.ui.isAutoplay.set(g),g?Te():_&&Oe.features.preload&&l.actions.internal.preload()}const Pe=oe=>{if(window.ResizeObserver){let _t,rt;he=new ResizeObserver(ne.throttleFn(Rt=>{const ut=Rt[0];if(ut){if(ut.contentBoxSize){const It=Array.isArray(ut.contentBoxSize)?ut.contentBoxSize[0]:ut.contentBoxSize;_t=It.inlineSize,rt=It.blockSize}else ut.contentRect&&(_t=ut.contentRect.width,rt=ut.contentRect.height);Ie.set({width:_t,height:rt})}},V1)),he.observe(oe)}Ie.set({width:oe.clientWidth,height:oe.clientHeight})};_n(()=>{Pe(ce);const oe=ue.map(rt=>rt.init(l,Fe));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 pe(),()=>{he==null||he.disconnect(),oe.forEach(rt=>rt.unsubscribe()),l.destroy()}});function Ke(){re?l.actions.external.play():Te(!0)}function Re(){l.actions.external.pause()}function xe(oe){R||l.actions.external.setMuted(oe)}function Xe(oe){R||oe>=0&&oe<=1&&l.actions.external.setVolume(oe)}function ot(oe){l.actions.internal.seekTime(oe,yt.SeekAction.UNKNOWN)}function at(oe){l.actions.external.seekEpisodeStartTime(oe)}function At(){l.actions.external.returnFocusToEpisodes()}function pt(oe){l.actions.external.setPlaybackRate(oe)}function xt(oe){l.actions.external.setAutoQualityLimits(oe)}function gt(oe){ce=oe,t(33,ce)}function Mt(oe){ce=oe,t(33,ce)}return i.$$set=oe=>{"sources"in oe&&t(37,n=oe.sources),"store"in oe&&t(0,l=oe.store),"microStoresRoot"in oe&&t(38,r=oe.microStoresRoot),"uiConfig"in oe&&t(39,o=oe.uiConfig),"title"in oe&&t(1,s=oe.title),"thumbUrl"in oe&&t(2,a=oe.thumbUrl),"videoLogoUrl"in oe&&t(3,c=oe.videoLogoUrl),"interactiveContainer"in oe&&t(4,f=oe.interactiveContainer),"subtitles"in oe&&t(40,d=oe.subtitles),"live"in oe&&t(5,h=oe.live),"preload"in oe&&t(41,_=oe.preload),"autoplay"in oe&&t(6,g=oe.autoplay),"volume"in oe&&t(42,w=oe.volume),"muted"in oe&&t(43,b=oe.muted),"fromTime"in oe&&t(44,C=oe.fromTime),"canRewindLive"in oe&&t(7,k=oe.canRewindLive),"showAds"in oe&&t(8,y=oe.showAds),"adsSlotId"in oe&&t(9,M=oe.adsSlotId),"adsParams"in oe&&t(10,q=oe.adsParams),"adsPreviewParam"in oe&&t(11,I=oe.adsPreviewParam),"duration"in oe&&t(12,z=oe.duration),"logoClickable"in oe&&t(13,ae=oe.logoClickable),"logoHidden"in oe&&t(14,se=oe.logoHidden),"isMobile"in oe&&t(15,R=oe.isMobile),"showNextPrevButtons"in oe&&t(16,te=oe.showNextPrevButtons),"nextButtonActive"in oe&&t(17,X=oe.nextButtonActive),"prevButtonActive"in oe&&t(18,G=oe.prevButtonActive),"endScreenVideoTitle"in oe&&t(19,A=oe.endScreenVideoTitle),"endScreenVideoThumb"in oe&&t(20,V=oe.endScreenVideoThumb),"isOneVideoPlaylist"in oe&&t(21,x=oe.isOneVideoPlaylist),"supportLink"in oe&&t(22,L=oe.supportLink),"outerContainerRef"in oe&&t(23,ie=oe.outerContainerRef),"fullScreenTarget"in oe&&t(24,Ee=oe.fullScreenTarget),"failoverHosts"in oe&&t(45,ye=oe.failoverHosts),"showMiniTimer"in oe&&t(25,Le=oe.showMiniTimer),"playNextVideo"in oe&&t(26,Ve=oe.playNextVideo),"playPrevVideo"in oe&&t(27,_e=oe.playPrevVideo),"repeatPlaylist"in oe&&t(28,Se=oe.repeatPlaylist),"seekToInteractive"in oe&&t(29,W=oe.seekToInteractive),"toggleGraph"in oe&&t(30,$=oe.toggleGraph),"playPrevChapter"in oe&&t(31,fe=oe.playPrevChapter)},i.$$.update=()=>{i.$$.dirty[0]&32769&&l.ui.isMobile.set(R)},[l,s,a,c,f,h,g,k,y,M,q,I,z,ae,se,R,te,X,G,A,V,x,L,ie,Ee,Le,Ve,_e,Se,W,$,fe,ot,ce,re,Oe,Te,n,r,o,d,_,w,b,C,ye,pe,Ke,Re,xe,Xe,at,At,pt,xt,gt,Mt]}class F_ extends ke{constructor(e){super(),we(this,e,z_,D_,be,{sources:37,store:0,microStoresRoot:38,uiConfig:39,title:1,thumbUrl:2,videoLogoUrl:3,interactiveContainer:4,subtitles:40,live:5,preload:41,autoplay:6,volume:42,muted:43,fromTime:44,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:45,showMiniTimer:25,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,initVideo:46,play:47,pause:48,setMuted:49,setVolume:50,seekTime:32,seekEpisodeStartTime:51,returnFocusToEpisodes:52,setPlaybackRate:53,setAutoQualityLimits:54},N_,[-1,-1,-1])}get initVideo(){return this.$$.ctx[46]}get play(){return this.$$.ctx[47]}get pause(){return this.$$.ctx[48]}get setMuted(){return this.$$.ctx[49]}get setVolume(){return this.$$.ctx[50]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[51]}get returnFocusToEpisodes(){return this.$$.ctx[52]}get setPlaybackRate(){return this.$$.ctx[53]}get setAutoQualityLimits(){return this.$$.ctx[54]}}function H_(i){let e,t;return{c(){e=N("svg"),t=N("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,l){P(n,e,l),p(e,t)},p(n,[l]){l&1&&u(t,"fill",n[0])},i:K,o:K,d(n){n&&S(e)}}}function U_(i,e,t){let{isWhite:n=!1}=e,l;return i.$$set=r=>{"isWhite"in r&&t(1,n=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,l=n?"#fff":"#909499")},[l,n]}class j_ extends ke{constructor(e){super(),we(this,e,U_,H_,be,{isWhite:1})}}function q_(i){Ze(i,"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 k1(i){let e,t;return{c(){e=T("div"),t=ze(i[0]),u(e,"class","title v-1y9fytq")},m(n,l){P(n,e,l),p(e,t)},p(n,l){l&1&&et(t,n[0])},d(n){n&&S(e)}}}function y1(i){let e,t;return e=new j_({props:{isWhite:!!i[1]}}),{c(){j(e.$$.fragment)},m(n,l){F(e,n,l),t=!0},p(n,l){const r={};l&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function W_(i){let e,t,n,l,r=i[0]&&k1(i),o=(!i[0]||!i[1])&&y1(i);return{c(){e=T("div"),r&&r.c(),t=O(),o&&o.c(),u(e,"class","playerStub v-1y9fytq"),u(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(s,a){P(s,e,a),r&&r.m(e,null),p(e,t),o&&o.m(e,null),l=!0},p(s,[a]){s[0]?r?r.p(s,a):(r=k1(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!s[0]||!s[1]?o?(o.p(s,a),a&3&&m(o,1)):(o=y1(s),o.c(),m(o,1),o.m(e,null)):o&&(de(),v(o,1,1,()=>{o=null}),me()),(!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&&S(e),r&&r.d(),o&&o.d()}}}function Z_(i,e,t){let{title:n}=e,{thumbUrl:l}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,l=r.thumbUrl)},[n,l]}class K_ extends ke{constructor(e){super(),we(this,e,Z_,W_,be,{title:0,thumbUrl:1},q_)}}class G_{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(){const 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(const[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(l){throw new Error(`The media session action "${t}" is not supported yet.`)}}}function Y_(i){let e,t,n,l;return{c(){e=N("svg"),t=N("g"),n=N("path"),l=N("path"),u(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.766 8.766 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.769 5.769 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.766 8.766 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.765 8.765 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4h8.488Z"),u(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(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(r,o){P(r,e,o),p(e,t),p(t,n),p(t,l)},p:K,i:K,o:K,d(r){r&&S(e)}}}class Q_ extends ke{constructor(e){super(),we(this,e,null,Y_,be,{})}}function X_(i){Ze(i,"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 J_(i){let e,t,n,l,r,o,s;return n=new Q_({}),{c(){e=T("div"),t=T("div"),j(n.$$.fragment),l=O(),r=T("span"),o=ze(i[0]),u(t,"class","dummy-image v-1pbsod4"),B(t,"desktop",!i[1]),u(r,"class","title v-1pbsod4"),u(e,"class","player-pip-dummy v-1pbsod4"),B(e,"is-pip-api",i[2])},m(a,c){P(a,e,c),p(e,t),F(n,t,null),p(e,l),p(e,r),p(r,o),s=!0},p(a,[c]){(!s||c&2)&&B(t,"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&&S(e),H(n)}}}function x_(i,e,t){let n,l;const r=Ct(),o=!!r.webApi.pictureInPictureApi,s=r.interfaceLanguage$;D(i,s,f=>t(5,n=f));const a=r.ui.isMobile;D(i,a,f=>t(1,l=f));let c;return i.$$.update=()=>{i.$$.dirty&32&&t(0,c=n&&Y("pip_dummy_title"))},[c,l,o,s,a,n]}class $_ extends ke{constructor(e){super(),we(this,e,x_,J_,be,{},X_)}}const e6=460,t6=280;class Bf{constructor(){this.info={isActive$:new ne.ValueSubject(!1),type:Un.DocumentPictureInPicture}}isSupported(){const e=ne.getCurrentBrowser().browser===ne.CurrentClientBrowser.Yandex,{isEmbed:t}=ne.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}request(){var e,t;return fi(this,void 0,void 0,function*(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:e6,height:t6,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 $_({target:this.playerParentShadowRoot,context:this.svelteContext}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(r),this.info.isActive$.next(!0),(t=this.pipWindow)===null||t===void 0||t.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return fi(this,void 0,void 0,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)===null||t===void 0||t.close(),e()})})}dispose(){return fi(this,void 0,void 0,function*(){yield this.remove()})}createStretchedContainer(){const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}}function i6(i){return i instanceof Bf}class n6{static getLatestSupportedVersion(){const e=new wr,t=new Bf;if(t.isSupported())return t;if(e.isSupported())return e}}function C1(i,e){var t,n;const l=new Set([...Object.keys(i),...Object.keys(e)]),r={};for(const o of l)r[o]=(n=(t=e[o])!==null&&t!==void 0?t:i[o])!==null&&n!==void 0?n:void 0;return r}const o6="Inner error. Unexpectedly root annotation container null reference exception",l6="Annotation with such name already exists",r6="Annotation with such name does not exist";class ir extends Error{constructor(e){super(e),this.name="AnnotationError"}}const s6="1",a6=100;class u6{constructor(e){this.annotations=new Map,this.subscriptions=new ne.Subscription,this.rootAnnotationsContainer=e;const t=ne.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"},a6);this.subscriptions.add(ne.observeElementSize(this.rootAnnotationsContainer).subscribe(({width:n,height:l})=>{this.playerSize={width:n,height:l},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 ir(o6);if(this.annotations.has(e))throw new ir(l6);t.style.zIndex=(n=t.style.zIndex)!==null&&n!==void 0?n:s6,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){const t=this.annotations.get(e);if(!t)throw new ir(r6);return t}remove(e){const t=this.get(e);this.annotations.delete(e)&&t.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,t,n){const l=e.offsetTop,r=e.offsetLeft,o=e.offsetWidth,s=e.offsetHeight;return l<0||r<0||r+o>t||l+s>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}}class Vr{init(e,t){return ne.assertNonNullable(e),ne.assertNonNullable(t),this.subscription=new ne.Subscription,this.subscription}}class c6 extends Vr{constructor(){super(...arguments),this.stateName="fakeIsPlaying$",this.state$=Object.assign(Object.assign({},Ne(null)),{toggle:()=>this.state$.update(e=>!e)})}init(e,t){const n=super.init(e,t),{isInteractiveExpectation$:l}=e.state;return n.add(l.subscribe(r=>{this.state$.set(r?!0:null)})),n}}class f6 extends Vr{constructor(){super(...arguments),this.stateName="interactiveControlsOpacity$",this.state$=Object.assign(Object.assign({},Ne(null)),{toggle:()=>this.state$.update(e=>!e)})}init(e,t){const n=super.init(e,t),{fakeIsPlaying$:l}=t,{isInteractiveExpectation$:r,isPlaying$:o}=e.state,{controlsVisible:s,isMobile:a}=e.ui,c=tt(a),f=()=>c&&tt(s);return n.add(s.subscribe(d=>{if(!c)return;const h=tt(l);tt(o)?this.state$.set(d):h!==null&&this.state$.set(!h||d)})),n.add(o.subscribe(d=>{this.state$.set(!d||f())})),n.add(l.subscribe(d=>{if(d===null)return;const h=tt(r);if(f()){this.state$.set(!0);return}h&&this.state$.set(!d)})),n}}class d6 extends Vr{constructor(){super(...arguments),this.stateName="seekToInteractiveDisabledTooltip$",this.state$=Ne("tooltip_chapter_without_interactive")}init(e,t){const n=super.init(e,t);return n.add(e.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}}const m6=()=>[c6,f6,d6].reduce(({subscribers:i,stores:e},t)=>{const n=new t;return{subscribers:[...i,n],stores:Object.assign(Object.assign({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}}),p6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ne.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:ne.isMobile(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}};class h6 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 ne.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ne.Subscription,this.graphMadePause=!1,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){var e,t;if(this.isInited)return;this.initPlayerRootContainers();const n=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,l=(t=this.getAttribute("stub-thumb-url"))!==null&&t!==void 0?t:void 0;this.svelteStubComponent=new K_({target:this.playerContainer,props:{title:n,thumbUrl:l}})}disconnectedCallback(){var e,t,n,l,r;(e=this.annotationsApi)===null||e===void 0||e.destroy(),(t=this.svelteRootComponent)===null||t===void 0||t.$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 t;const n=(t=this.store)===null||t===void 0?void 0:t.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,t={},n){var l,r,o,s,a,c,f,d,h,_,g,w,b;if(!this.videoConfig)return;const{albumId:C,statPlace:k,statUserSalt:y,statAuthToken:M,statTrackCode:q,refreshStatAuthToken:I,preload:z,autoplay:ae,volume:se,muted:R,fromTime:te,canRewindLive:X,supportLink:G,showAds:A,adsSlotId:V,adsParams:x={},adsPreviewParam:L,interfaceLanguage:ie,logoClickable:Ee,logoHidden:ye,isMobile:Le,isAudioDisabled:Ve,isLiveCatchUpMode:_e,fullScreenTarget:Se,failoverHosts:W,canDownload:$,callbacks:fe,interactiveData:ue,showThumbTimer:Fe,additionalButtons:Oe=[],repeat:Me}=C1(this.videoConfig,t),{sources:Ie,title:ce,thumbUrl:he,videoLogoUrl:re,unitedVideoId:Te,isClip:pe=!1,duration:Pe,adsParams:Ke={},videoEpisodes:Re,previewThumbsData:xe,subtitles:Xe,live:ot}=e,at=Object.assign(Object.assign({},x),Ke),At=this.getNextVideoInfo(),pt={sources:Ie,title:ce,thumbUrl:he,subtitles:Xe,unitedVideoId:Te,isClip:pe,live:ot,albumId:C,statPlace:k,autoplay:ae,muted:R,volume:se,fromTime:te,canRewindLive:X,showAds:A,adsSlotId:V,adsParams:at,adsPreviewParam:L,duration:Pe,logoClickable:Ee,logoHidden:ye,isMobile:Le,repeat:Me,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:At.nextVideoTitle,endScreenVideoThumb:At.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},xt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(pt)}`});const gt=this.uiConfig.features.statistics&&!!Te,{pid:Mt}=((r=(l=this.videoConfig)===null||l===void 0?void 0:l.interactiveData)===null||r===void 0?void 0:r.projectInfo)||{};gt&&(this.statistics=new $5(Object.assign({movieId:Te,albumId:C,place:k,trackCode:q,autoplay:(o=ae&&!this.interactiveController)!==null&&o!==void 0?o:!1,mobile:Le,clip:pe,refDomain:this.videoConfig.refDomain},Mt&&!this.isInited&&{projectId:Number(Mt)}),Object.assign({refreshAuthToken:I,userSalt:y,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new cr(this.uiConfig.sentry,{version:bl,env:z0},{movieId:Te,albumId:C,place:k,autoplay:(s=ae&&!this.interactiveController)!==null&&s!==void 0?s:!1,mobile:Le,clip:pe}),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=Object.assign(Object.assign({},this.sentry),cr.getInstance());const _t=!!ue,rt=[];let Rt="tooltip_interactive_go_back_disabled_first";if(_t&&this.interactiveController){const Je=this.interactiveController.state.isInitialChapter$.getValue(),Ue=this.interactiveController.getHistoryState();Je&&rt.push(dt.REPLAY_BUTTON),this.interactiveController.getIsSeekable().getValue()||rt.push(dt.SEEK_TO_INTERACTIVE_BUTTON),Ue.hasPrevChapter$.getValue()||(rt.push(dt.PLAY_PREV_CHAPTER_BUTTON),Je||(Ue.isGoBackLimited$.getValue()?Rt="tooltip_interactive_go_back_disabled_limit":Rt="tooltip_interactive_go_back_disabled"))}const ut=()=>{var Je;this.isInited=!1,this.prevIsid=void 0;const Ue=(n==null?void 0:n.info.isEnded$.getValue())&&((Je=this.interactiveController)===null||Je===void 0?void 0:Je.state.isEndChapter$.getValue());fe.onReplayInteractiveVideo&&!Ue?fe.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=eg({player:n,interfaceLanguage:ie,videoId:Te,isClip:pe,isLiveCatchUpMode:_e,isAudioDisabled:Ve,statAuthToken:M,callbacks:fe,webApi:xt,videoEpisodes:Re,previewThumbsData:xe,canDownload:$,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:rt,isInteractive:_t,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:ut,playPrevChapterDisabledTooltip:Rt,hasInteractiveBranches:!!(!((_=(h=this.interactiveController)===null||h===void 0?void 0:h.getChapterBranches())===null||_===void 0)&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?Oe:[],looped:Me&&this.videoConfig.videos.length===1,statistics:this.statistics});const{stores:It}=this.microStoresRoot=m6();this.subscription.add(this.store.state.currentFormat$.subscribe(Je=>{var Ue;return(Ue=fe==null?void 0:fe.onCurrentFormatChanged)===null||Ue===void 0?void 0:Ue.call(fe,Je)})),this.subscription.add(It.interactiveControlsOpacity$.subscribe(Je=>{var Ue;Je!==null&&((Ue=this===null||this===void 0?void 0:this.interactiveController)===null||Ue===void 0||Ue.setDisabledControls(Je))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Je=>{var Ue;return(Ue=fe==null?void 0:fe.onThroughputEstimationChanged)===null||Ue===void 0?void 0:Ue.call(fe,Je)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Je=>{var Ue;return(Ue=fe==null?void 0:fe.onTrafficSavingEnabledChanged)===null||Ue===void 0?void 0:Ue.call(fe,Je)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Je=>{var Ue;return(Ue=fe==null?void 0:fe.onCurrentPlaybackRateChanged)===null||Ue===void 0?void 0:Ue.call(fe,Je)})),this.subscription.add(this.store.state.volume$.subscribe(Je=>{var Ue;return(Ue=fe==null?void 0:fe.onVolumeChange)===null||Ue===void 0?void 0:Ue.call(fe,Je)})),this.subscription.add(this.store.state.muted$.subscribe(Je=>{var Ue,St;return Je?(Ue=fe==null?void 0:fe.onMute)===null||Ue===void 0?void 0:Ue.call(fe):(St=fe==null?void 0:fe.onUnmute)===null||St===void 0?void 0:St.call(fe)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Je=>{var Ue;return(Ue=fe==null?void 0:fe.onVideoBitrateChanged)===null||Ue===void 0?void 0:Ue.call(fe,Je)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Je=>{var Ue;const St=(Ue=this.store)===null||Ue===void 0?void 0:Ue.ui.controls.disabledControls$;St&&(Je&&!St.includes(fl)&&St.add(fl),Je||St.remove(fl))})),this.initMediaSession(),this.interactiveController&>&&this.initInteractivesStatistics(),this.svelteRootComponent=new F_({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ie,store:this.store,microStoresRoot:this.microStoresRoot,uiConfig:this.uiConfig,title:ce,thumbUrl:he,videoLogoUrl:re,subtitles:Xe,live:ot,preload:z,autoplay:ae,muted:R,volume:se,fromTime:te,canRewindLive:X,supportLink:G,showAds:A,adsSlotId:V,adsParams:at,adsPreviewParam:L,duration:Pe,logoClickable:Ee,logoHidden:ye,isMobile:Le,failoverHosts:W,fullScreenTarget:Se,showMiniTimer:Fe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:At.nextVideoTitle,endScreenVideoThumb:At.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,(b=(w=(g=this.videoConfig)===null||g===void 0?void 0:g.callbacks)===null||w===void 0?void 0:w.onInited)===null||b===void 0||b.call(w))}addPlayerInfoSubscriptions(){var e;const t=this.store;if(!t)return;const n=(e=this.videoConfig)===null||e===void 0?void 0:e.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(r=>{var o;return(o=n.onPlayerPhaseChanged)===null||o===void 0?void 0:o.call(n,r)})).add(t.state.playbackState$.subscribe(r=>{var o;return(o=n.onPlaybackStateChanged)===null||o===void 0?void 0:o.call(n,r)})).add(t.state.isLive$.subscribe(r=>{var o;return(o=n.onIsLiveChanged)===null||o===void 0?void 0:o.call(n,r)})).add(t.state.isActiveLive$.subscribe(r=>{var o;return(o=n.onIsActiveLiveChanged)===null||o===void 0?void 0:o.call(n,r)})).add(t.state.isAudioAvailable$.subscribe(r=>{var o;return(o=n.onIsAudioAvailableChanged)===null||o===void 0?void 0:o.call(n,r)})).add(t.state.currentQuality$.subscribe(r=>{var o;return(o=n.onCurrentQualityChanged)===null||o===void 0?void 0:o.call(n,r)})).add(t.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!==So.AUTO))})).add(t.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(t.ui.controlsVisible.subscribe(r=>{var o;return(o=l.onControlsVisibleChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.isMobile.subscribe(r=>{var o;return(o=l.onIsMobileChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.playerSize.subscribe(r=>{var o;return(o=l.onPlayerSizeChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.prevButton.subscribe(r=>{var o;return(o=l.onPrevButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.playButton.subscribe(r=>{var o;return(o=l.onPlayButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.replayButton.subscribe(r=>{var o;return(o=l.onReplayButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.nextButton.subscribe(r=>{var o;return(o=l.onNextButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.playPrevChapterButton.subscribe(r=>{var o;return(o=l.onPlayPrevChapterChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.seekToInteractiveButton.subscribe(r=>{var o;return(o=l.onSeekToInteractiveButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.interactiveGraphButton.subscribe(r=>{var o;return(o=l.onGraphButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.liveButton.subscribe(r=>{var o;return(o=l.onLiveButtonChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.time.subscribe(r=>{var o;return(o=l.onTimeUpdateChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.episodes.subscribe(r=>{var o;return(o=l.onEpisodesChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.subtitles.subscribe(r=>{var o;return(o=l.onSubtitlesChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.settings.subscribe(r=>{var o;return(o=l.onSettingsChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.fullscreen.subscribe(r=>{var o;return(o=l.onFullscreenChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.chromecast.subscribe(r=>{var o;return(o=l.onChromecastChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.pip.subscribe(r=>{var o;return(o=l.onPipChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.vkLogo.subscribe(r=>{var o;return(o=l.onVkLogoChanged)===null||o===void 0?void 0:o.call(l,r)})).add(t.ui.controls.interactiveTimeIcon.subscribe(r=>{var o;return(o=l.onInteractiveTimeIconChanged)===null||o===void 0?void 0:o.call(l,r)}))}playNextVideo(){var e;if(!this.videoConfig)return;let t=!0;if(!((e=this.videoConfig.callbacks)===null||e===void 0)&&e.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(n){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 e;if(!this.videoConfig)return;let t=!0;if(!((e=this.videoConfig.callbacks)===null||e===void 0)&&e.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(n){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(e,t=!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&&ne.isNonNullable(l.unitedVideoId)&&this.store.actions.internal.nextMovie(l.unitedVideoId),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(l,{autoplay:t,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)===null||e===void 0||e.playPrevChapter()}seekToInteractive(){var e;const t=(e=this.interactiveController)===null||e===void 0?void 0:e.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var e,t;if(!this.isInited)return;const n=this.store,{isEnded$:l,playbackState$:r,graphIsOpened$:o}=n.state,{disabledControls$:s}=n.ui.controls,a=tt(l),c=tt(r);tt(o)?(o.set(!1),(e=this.interactiveController)===null||e===void 0||e.toggleGraphView(!1),s.remove(Yr),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=c==="playing",o.set(!0),(t=this.interactiveController)===null||t===void 0||t.toggleGraphView(!0),s.add(Yr),!a&&this.graphMadePause&&this.pause())}initInteractives(){var e,t,n,l;return fi(this,void 0,void 0,function*(){if(!((e=this.videoConfig)===null||e===void 0)&&e.interactiveData)try{const{Interactives:r,EVENT_NAMES:o,CustomError:s}=yield import("@vkontakte/videoplayer-interactive/es2015.cjs.js");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");const a=(t=this.store)===null||t===void 0?void 0:t.interfaceLanguage$,c=a?tt(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:d,historyApi:h,videoLoader:_}=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:_,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest);const{isInteractiveExpectation$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(b=>{if(!this.isInited)return;const C=this.store;b?C.ui.controls.disabledControls$.remove(dt.SEEK_TO_INTERACTIVE_BUTTON):C.ui.controls.disabledControls$.add(dt.SEEK_TO_INTERACTIVE_BUTTON)})),this.subscription.add(g.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let w=!0;if(this.interactiveController.on(o.playerChanged,b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Object.assign(Object.assign({},b.config),{title:(f==null?void 0:f.title)||b.config.title});const C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)}),this.interactiveController.on(o.interactives,({type:b,actionType:C})=>{var k,y,M,q;if(!this.store)return;const I=g.getValue();if(b==="action-choice"&&C==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(N1)),b==="action-choice-canceled"){const z=tt(this.store.state.isPlaying$)||I;if(!((k=this.videoConfig)===null||k===void 0)&&k.isMobile&&z){this.store.ui.interactiveHideMobileControls.set(!0);return}(q=(y=this.videoConfig)===null||y===void 0?void 0:(M=y.callbacks).onDisabledInteractiveClick)===null||q===void 0||q.call(M)}}),!((l=(n=this.videoConfig)===null||n===void 0?void 0:n.callbacks)===null||l===void 0)&&l.onInteractiveHistoryChanged){const b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(C=>{var k,y,M;C.length&&((M=(y=(k=this.videoConfig)===null||k===void 0?void 0:k.callbacks)===null||y===void 0?void 0:y.onInteractiveHistoryChanged)===null||M===void 0||M.call(y,C))}))}this.interactiveController.events.noInteraction$.subscribe(()=>{var b,C,k;(k=(b=this.videoConfig)===null||b===void 0?void 0:(C=b.callbacks).onInteractiveTimeIconClick)===null||k===void 0||k.call(C)}),this.interactiveController.on(o.errors,b=>{this.log({message:b.toString()})})}catch(r){this.log({message:r.message})}})}initInteractivesStatistics(){var e,t;return fi(this,void 0,void 0,function*(){const{statSubscription:n,oneStat:l}=this.statistics;if(!(!n||!l||!this.interactiveController))try{const{INTERACTIVE_CLICK_ACTIONS:r}=yield import("@vkontakte/videoplayer-interactive/es2015.cjs.js"),o={[r.GO_NEXT_BUTTON]:yt.InteractiveInterfaceClick.NEXT_BUTTON,[r.GO_NEXT_AREA]:yt.InteractiveInterfaceClick.NEXT_AREA,[r.WATCH_AGAIN]:yt.InteractiveInterfaceClick.WATCH_AGAIN,[r.OPEN_GRAPH]:yt.InteractiveInterfaceClick.GRAPH_SHOW,[r.CLOSE_GRAPH]:yt.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:a}=this.interactiveController.getStatEvents(),c=new ne.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}),(t=(e=this.sentry).report)===null||t===void 0||t.call(e,r,{errorType:"InteractiveVideosAction",fatal:!1})}})}initPlayer(e,t={}){var n,l,r,o,s,a,c,f,d,h,_,g,w,b,C,k,y,M,q;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");this.videoConfig=C1(p6,ne.cloneDeepWith(e,I=>I instanceof HTMLElement?I:void 0)),this.uiConfig=I0((n=t.ui)!==null&&n!==void 0?n:{}),this.coreConfig=(l=t.core)!==null&&l!==void 0?l:{configName:[]},this.statisticsConfig=(r=t.statistics)!==null&&r!==void 0?r:{},this.sentry={config:(o=this.uiConfig.sentry)!==null&&o!==void 0?o:{}},ne.isNonNullable(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!==null&&s!==void 0?s:!0),ne.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,(M=this.videoConfig).autoplay&&(M.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(_=this.uiConfig.ads.enable)!==null&&_!==void 0?_:this.videoConfig.showAds,this.videoConfig.adsSlotId=(g=this.uiConfig.ads.slot)!==null&&g!==void 0?g:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(w=this.uiConfig.ads.preview)!==null&&w!==void 0?w:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((b=this.uiConfig.showLogo)!==null&&b!==void 0?b:!this.videoConfig.logoHidden),(q=this.videoConfig).canRewindLive&&(q.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(C=this.videoConfig.supportLink)!==null&&C!==void 0?C:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=n6.getLatestSupportedVersion():this.pictureInPictureApi=new wr),this.mediaSessionApi=this.uiConfig.features.mediaSession?new G_:void 0,this.annotationsApi=this.uiConfig.features.annotations?new u6(this.rootContainer):void 0,(k=this.svelteStubComponent)===null||k===void 0||k.$destroy(),(y=this.svelteRootComponent)===null||y===void 0||y.$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]),i6(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(e){var t;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();(t=this.svelteRootComponent)===null||t===void 0||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var e,t;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(t=this.store)===null||t===void 0?void 0:t.playerPhase.subscribe(n=>{n===De.Video?this.setupMediaSessionForVideo():n===De.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const{title:e,thumbUrl:t}=Object.assign({},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:t}),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",t=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(t)}catch(e){this.log({message:e.message})}}play(){var e,t;this.isControlDisabled(dt.PLAY_BUTTON)||!((e=this.store)===null||e===void 0)&&e.playerPhase.is(De.WaitingLive)||(this.log({message:"play"}),(t=this.svelteRootComponent)===null||t===void 0||t.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,t;if(!this.videoConfig)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.videoConfig.videos[0];n&&((t=this.svelteRootComponent)===null||t===void 0||t.$destroy(),this.createPlayer(n))}setMuted(e){var t;this.log({message:`set muted, muted: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setMuted(e)}setVolume(e){var t;this.log({message:`set volume, volume: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setVolume(e)}setRepeat(e){var t;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(t=this.svelteRootComponent)===null||t===void 0||t.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var t;this.isControlDisabled(dt.TIMELINE)||(this.log({message:`seek time, time: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.seekTime(e))}seekEpisodeStartTime(e){var t;this.log({message:`seek episode start time, time: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.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 t;this.log({message:`set playback rate to: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setPlaybackRate(e)}setAutoQualityLimits(e){var t,n,l;this.log({message:`set auto quality limitation. Max: ${(t=e.max)!==null&&t!==void 0?t:"none"}. Min: ${(n=e.min)!==null&&n!==void 0?n:"none"}`}),(l=this.svelteRootComponent)===null||l===void 0||l.setAutoQualityLimits(e)}addLanguage(e){var t;(t=this.store)===null||t===void 0||t.actions.internal.addLanguage(e)}setLanguage(e){var t;return fi(this,void 0,void 0,function*(){yield(t=this.store)===null||t===void 0?void 0:t.actions.internal.setLanguage(e)})}setLiveStart(e){var t,n;this.log({message:"live started"}),(t=this.store)===null||t===void 0||t.actions.internal.setWaitingLive(!1),(n=this.svelteRootComponent)===null||n===void 0||n.initVideo(e),this.play()}setWaitRecord(){var e,t;this.log({message:"post live"}),(e=this.store)===null||e===void 0||e.actions.internal.setWaitingRecord(!0),(t=this.store)===null||t===void 0||t.destroy()}setLiveEnd(e){var t,n;this.log({message:"live ended"}),(t=this.store)===null||t===void 0||t.actions.internal.setWaitingRecord(!1),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(e,{autoplay:!1})}getDeviceId(){var e,t;return(t=(e=this.statistics)===null||e===void 0?void 0:e.oneStat.getDeviceId())!==null&&t!==void 0?t:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}}const v6=()=>{window.customElements.define("vk-video-player",h6)};Object.defineProperty(exports,"VideoFormat",{enumerable:!0,get:function(){return $e.VideoFormat}});Object.defineProperty(exports,"VideoQuality",{enumerable:!0,get:function(){return $e.VideoQuality}});Object.defineProperty(exports,"InterfaceLanguage",{enumerable:!0,get:function(){return ne.InterfaceLanguage}});Object.defineProperty(exports,"VKNumericLanguage",{enumerable:!0,get:function(){return ne.VKNumericLanguage}});Object.defineProperty(exports,"loadVKLangPack",{enumerable:!0,get:function(){return ne.loadVKLangPack}});exports.VERSION=bl;exports.registerPlayerWebComponent=v6;
|
|
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 C5(i){let e,t,n;function o(r){i[57](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 Dm({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 S5(i){let e,t,n;function o(r){i[56](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 ip({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 T5(i){let e,t,n,o,s=[S5,C5],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 P5(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:Y=void 0}=e,{endScreenVideoThumb:M=void 0}=e,{isOneVideoPlaylist:W=!1}=e,{supportLink:B}=e,{outerContainerRef:te=void 0}=e,{fullScreenTarget:Ce=void 0}=e,{failoverHosts:Fe=void 0}=e,{showMiniTimer:Ne=!1}=e,{playNextVideo:Ke=Wn.noop}=e,{playPrevVideo:De=Wn.noop}=e,{repeatPlaylist:be=Wn.noop}=e,{seekToInteractive:Q=Wn.noop}=e,{toggleGraph:_e=Wn.noop}=e,{playPrevChapter:Le=Wn.noop}=e,{subscribers:qe,stores:Ze}=s;Oc(l);let he=Dt(),Pe=l.logoLink,Re=o.ui.debugPanelVisible,Ye=o.ui.playerSize,ve,Z=null,we=!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}),xc(o,Ze);let ue=(pe=!1)=>{t(33,we=!0),pe?o.actions.external.firstStart(C):o.actions.internal.firstStart(C)};function Se(pe){var Te;let St=n||pe;St&&o.initVideo({container:ve,sources:St,failoverHosts:Fe,subtitles:p});let Tt=Wn.safeStorage.get(kr)==="true";Re.set(Tt),I>0&&o.actions.external.seekTime(I);let ut=P?he.volumeDefault:(Te=w!=null?w:$r())!=null?Te:he.volumeDefault,ct=S!=null?S:sf();if(o.actions.external.setVolume(ut),o.actions.external.setMuted(ct),o.getAdmanWrapper().setInitialVolume(ct?0:ut),he.features.trafficSaving){let st=uf();st&&o.actions.internal.setTrafficSavingEnabled(st)}let Je=of(o.videoId);Je&&o.actions.internal.setQuality(Je),o.ui.isAutoplay.set(b),b?ue():g&&he.features.preload&&o.actions.internal.preload()}let ze=pe=>{if(window.ResizeObserver){let St,Tt;Z=new ResizeObserver((0,Wn.throttleFn)(ut=>{let ct=ut[0];if(ct){if(ct.contentBoxSize){let Je=Array.isArray(ct.contentBoxSize)?ct.contentBoxSize[0]:ct.contentBoxSize;St=Je.inlineSize,Tt=Je.blockSize}else ct.contentRect&&(St=ct.contentRect.width,Tt=ct.contentRect.height);Ye.set({width:St,height:Tt})}},300)),Z.observe(pe)}Ye.set({width:pe.clientWidth,height:pe.clientHeight})};Vt(()=>{ze(ve);let pe=qe.map(Tt=>Tt.init({store:o,microStores:Ze,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 Se(),()=>{Z==null||Z.disconnect(),pe.forEach(Tt=>Tt.unsubscribe()),o.destroy()}});function it(){we?o.actions.external.play():ue(!0)}function lt(){o.actions.external.pause()}function nt(pe){P||o.actions.external.setMuted(pe)}function _t(pe){P||pe>=0&&pe<=1&&o.actions.external.setVolume(pe)}function dt(pe){o.actions.internal.seekTime(pe,np.SeekAction.UNKNOWN)}function ge(pe){o.actions.external.seekEpisodeStartTime(pe)}function at(){o.actions.external.returnFocusToEpisodes()}function At(pe){o.actions.external.setPlaybackRate(pe)}function Ct(pe){o.actions.external.setAutoQualityLimits(pe)}function Ae(pe){ve=pe,t(32,ve)}function Ft(pe){ve=pe,t(32,ve)}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,Y=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(19,M=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(20,W=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,Fe=pe.failoverHosts),"showMiniTimer"in pe&&t(24,Ne=pe.showMiniTimer),"playNextVideo"in pe&&t(25,Ke=pe.playNextVideo),"playPrevVideo"in pe&&t(26,De=pe.playPrevVideo),"repeatPlaylist"in pe&&t(27,be=pe.repeatPlaylist),"seekToInteractive"in pe&&t(28,Q=pe.seekToInteractive),"toggleGraph"in pe&&t(29,_e=pe.toggleGraph),"playPrevChapter"in pe&&t(30,Le=pe.playPrevChapter)},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,Y,M,W,B,te,Ce,Ne,Ke,De,be,Q,_e,Le,dt,ve,we,he,Pe,ue,n,s,r,l,p,g,w,S,I,Fe,Se,it,lt,nt,_t,ge,at,At,Ct,Ae,Ft]}var ic=class extends j{constructor(e){super(),X(this,e,P5,T5,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,initVideo:47,play:48,pause:49,setMuted:50,setVolume:51,seekTime:31,seekEpisodeStartTime:52,returnFocusToEpisodes:53,setPlaybackRate:54,setAutoQualityLimits:55},k5,[-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]}},op=ic;function I5(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 E5(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 nc=class extends j{constructor(e){super(),X(this,e,E5,I5,G,{isWhite:1})}},rp=nc;function M5(i){ye(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 lp(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&&He(t,n[0])},d(n){n&&v(e)}}}function sp(i){let e,t;return e=new rp({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 V5(i){let e,t,n,o,s=i[0]&&lp(i),r=(!i[0]||!i[1])&&sp(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=lp(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=sp(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 L5(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 oc=class extends j{constructor(e){super(),X(this,e,L5,V5,G,{title:0,thumbUrl:1},M5)}},ap=oc;var cn=require("@vkontakte/videoplayer-shared"),eB=require("@vkontakte/videoplayer-core"),_r=require("@vkontakte/videoplayer-statistics");var us=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 go=require("@vkontakte/videoplayer-shared");function A5(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 rc=class extends j{constructor(e){super(),X(this,e,null,A5,G,{})}},up=rc;function B5(i){ye(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 R5(i){let e,t,n,o,s,r,l;return n=new up({}),{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)&&He(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 N5(i,e,t){let n,o,s=Ge(),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 lc=class extends j{constructor(e){super(),X(this,e,N5,R5,G,{},B5)}},cp=lc;var D5=460,O5=280,Rr=class{constructor(){this.info={isActive$:new go.ValueSubject(!1),type:1}}isSupported(){let e=(0,go.getCurrentBrowser)().browser===go.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,go.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}request(){return tt(this,null,function*(){var s,r;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:D5,height:O5,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 cp({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))})})}remove(){return tt(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return tt(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function fp(i){return i instanceof Rr}var cs=class{static getLatestSupportedVersion(){let e=new Ao,t=new Rr;if(t.isSupported())return t;if(e.isSupported())return e}};function sc(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 dp="Inner error. Unexpectedly root annotation container null reference exception",mp="Annotation with such name already exists",pp="Annotation with such name does not exist";var mr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var pr=require("@vkontakte/videoplayer-shared"),F5="1",H5=100,fs=class{constructor(e){this.annotations=new Map;this.subscriptions=new pr.Subscription;this.rootAnnotationsContainer=e;let t=(0,pr.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"},H5);this.subscriptions.add((0,pr.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 mr(dp);if(this.annotations.has(e))throw new mr(mp);t.style.zIndex=(n=t.style.zIndex)!=null?n:F5,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 mr(pp);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 hr=require("@vkontakte/videoplayer-shared"),Qn=class{init({store:e,microStores:t,config:n}){return(0,hr.assertNonNullable)(e),(0,hr.assertNonNullable)(t),(0,hr.assertNonNullable)(n),this.subscription=new hr.Subscription,this.subscription}};var Nr=class extends Qn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Pt(je({},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 Dr=class extends Qn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Pt(je({},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=We(f),_=()=>p&&We(c);return n.add(c.subscribe(g=>{if(!p)return;let b=We(r);We(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=We(l);if(_()){this.state$.set(!0);return}b&&this.state$.set(!g)})),n}};var Or=class extends Qn{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 ac=Ee(!1),ds=null,Fr=class extends Qn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Pt(je({},ac),{set:(t,n=!1)=>{t!==We(ac)&&(this.clearTimeout(),ac.set(t),!t&&ds&&(ds=!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=>{We(r)&&p&&this.state$.set(!1)}));let c=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1},f=ri([l,r],([p,_])=>p&&_);return n.add(f.subscribe(p=>{var b,w;let _=We(l),g=We(r);if(_){if(!g)return this.state$.set(!1);c.tooltipHelpHintActive&&ds===null&&(ds=!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 hp=()=>[Nr,Dr,Or,Fr].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:Pt(je({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var z5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:cn.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,cn.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}},ms=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 cn.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new cn.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 ap({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 _t,dt,ge,at,At,Ct,Ae,Ft,pe,St,Tt,ut,ct;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:Y,callbacks:M,interactiveData:W,showThumbTimer:B,additionalButtons:te=[],repeat:Ce}=sc(this.videoConfig,n),{sources:Fe,title:Ne,thumbUrl:Ke,unitedVideoId:De,isClip:be=!1,duration:Q,adsParams:_e={},videoEpisodes:Le,previewThumbsData:qe,subtitles:Ze,live:he}=t,Pe=je(je({},E),_e),Re=this.getNextVideoInfo(),Ye={sources:Fe,title:Ne,thumbUrl:Ke,subtitles:Ze,unitedVideoId:De,isClip:be,live:he,albumId:s,statPlace:r,autoplay:_,muted:b,volume:g,fromTime:w,canRewindLive:S,showAds:k,adsSlotId:C,adsParams:Pe,adsPreviewParam:U,duration:Q,logoClickable:q,logoHidden:le,isMobile:oe,repeat:Ce,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Re.nextVideoTitle,endScreenVideoThumb:Re.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Ye)}`});let Z=this.uiConfig.features.statistics&&!!De,{pid:we}=((dt=(_t=this.videoConfig)==null?void 0:_t.interactiveData)==null?void 0:dt.projectInfo)||{};Z&&(this.statistics=new xl(je({movieId:De,albumId:s,place:r,trackCode:c,autoplay:(ge=_&&!this.interactiveController)!=null?ge:!1,mobile:oe,clip:be,refDomain:this.videoConfig.refDomain},we&&!this.isInited&&{projectId:Number(we)}),je({refreshAuthToken:f,userSalt:l,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Lo(this.uiConfig.sentry,{version:Mo,env:Xr},{movieId:De,albumId:s,place:r,autoplay:(at=_&&!this.interactiveController)!=null?at:!1,mobile:oe,clip:be}),this.interactiveController&&((Ct=this.prevIsid)!=null||(this.prevIsid=(At=this.statistics)==null?void 0:At.oneStat.isid$.getValue())),this.sentry=je(je({},this.sentry),Lo.getInstance());let Se=!!W,ze=[],it="tooltip_interactive_go_back_disabled_first";if(Se&&this.interactiveController){let Je=this.interactiveController.state.isInitialChapter$.getValue(),Te=this.interactiveController.getHistoryState();Je&&ze.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ze.push("SEEK_TO_INTERACTIVE_BUTTON"),Te.hasPrevChapter$.getValue()||(ze.push("PLAY_PREV_CHAPTER_BUTTON"),Je||(Te.isGoBackLimited$.getValue()?it="tooltip_interactive_go_back_disabled_limit":it="tooltip_interactive_go_back_disabled"))}let lt=()=>{var Te;this.isInited=!1,this.prevIsid=void 0;let Je=(o==null?void 0:o.info.isEnded$.getValue())&&((Te=this.interactiveController)==null?void 0:Te.state.isEndChapter$.getValue());M.onReplayInteractiveVideo&&!Je?M.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Wd({player:o,interfaceLanguage:$,videoId:De,isClip:be,isLiveCatchUpMode:ne,isAudioDisabled:P,statAuthToken:a,callbacks:M,webApi:ve,videoEpisodes:Le,previewThumbsData:qe,canDownload:Y,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ze,isInteractive:Se,interactiveRanges$:(Ae=this.interactiveController)==null?void 0:Ae.state.interactiveRanges$,isInteractiveTime$:(Ft=this.interactiveController)==null?void 0:Ft.state.isInteractiveTime$,replayInteractive:lt,playPrevChapterDisabledTooltip:it,hasInteractiveBranches:!!((St=(pe=this.interactiveController)==null?void 0:pe.getChapterBranches())!=null&&St.length),additionalButtons:this.uiConfig.features.additionalButtons?te:[],looped:Ce&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:nt}=this.microStoresRoot=hp();this.subscription.add(this.store.state.currentFormat$.subscribe(Je=>{var Te;return(Te=M==null?void 0:M.onCurrentFormatChanged)==null?void 0:Te.call(M,Je)})),this.subscription.add(nt.interactiveControlsOpacity$.subscribe(Je=>{var Te;Je!==null&&((Te=this==null?void 0:this.interactiveController)==null||Te.setDisabledControls(Je))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Je=>{var Te;return(Te=M==null?void 0:M.onThroughputEstimationChanged)==null?void 0:Te.call(M,Je)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Je=>{var Te;return(Te=M==null?void 0:M.onTrafficSavingEnabledChanged)==null?void 0:Te.call(M,Je)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Je=>{var Te;return(Te=M==null?void 0:M.onCurrentPlaybackRateChanged)==null?void 0:Te.call(M,Je)})),this.subscription.add(this.store.state.volume$.subscribe(Je=>{var Te;return(Te=M==null?void 0:M.onVolumeChange)==null?void 0:Te.call(M,Je)})),this.subscription.add(this.store.state.muted$.subscribe(Je=>{var Te,st;return Je?(Te=M==null?void 0:M.onMute)==null?void 0:Te.call(M):(st=M==null?void 0:M.onUnmute)==null?void 0:st.call(M)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Je=>{var Te;return(Te=M==null?void 0:M.onVideoBitrateChanged)==null?void 0:Te.call(M,Je)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Je=>{var st;let Te=(st=this.store)==null?void 0:st.ui.controls.disabledControls$;Te&&(Je&&!Te.includes(Cr)&&Te.add(Cr),Je||Te.remove(Cr))})),this.initMediaSession(),this.interactiveController&&Z&&this.initInteractivesStatistics(),this.svelteRootComponent=new op({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Fe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ne,thumbUrl:Ke,subtitles:Ze,live:he,preload:p,autoplay:_,muted:b,volume:g,fromTime:w,canRewindLive:S,supportLink:I,showAds:k,adsSlotId:C,adsParams:Pe,adsPreviewParam:U,duration:Q,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:Re.nextVideoTitle,endScreenVideoThumb:Re.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,(ct=(ut=(Tt=this.videoConfig)==null?void 0:Tt.callbacks)==null?void 0:ut.onInited)==null||ct.call(ut))}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,cn.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=We(n),a=We(o);We(s)?(s.set(!1),(f=this.interactiveController)==null||f.toggleGraphView(!1),r.remove(Ts),!l&&this.graphMadePause&&this.play()):(this.graphMadePause=a==="playing",s.set(!0),(p=this.interactiveController)==null||p.toggleGraphView(!0),r.add(Ts),!l&&this.graphMadePause&&this.pause())}initInteractives(){return tt(this,null,function*(){var t,n,o,s;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:r,EVENT_NAMES:l,CustomError:a}=yield 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?We(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}),yield 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]=Pt(je({},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(Qr)),I==="action-choice-canceled"){let le=We(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})}})}initInteractivesStatistics(){return tt(this,null,function*(){var o,s;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:r}=yield import("@vkontakte/videoplayer-interactive"),l={[r.GO_NEXT_BUTTON]:_r.InteractiveInterfaceClick.NEXT_BUTTON,[r.GO_NEXT_AREA]:_r.InteractiveInterfaceClick.NEXT_AREA,[r.WATCH_AGAIN]:_r.InteractiveInterfaceClick.WATCH_AGAIN,[r.OPEN_GRAPH]:_r.InteractiveInterfaceClick.GRAPH_SHOW,[r.CLOSE_GRAPH]:_r.InteractiveInterfaceClick.GRAPH_HIDE},{click$:a,nextMovie$:c}=this.interactiveController.getStatEvents(),f=new cn.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=sc(z5,(0,cn.cloneDeepWith)(t,q=>q instanceof HTMLElement?q:void 0)),this.uiConfig=Dc((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,cn.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(a=this.videoConfig.isMediaSessionEnabled)!=null?a:!0),(0,cn.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=cs.getLatestSupportedVersion():this.pictureInPictureApi=new Ao),this.mediaSessionApi=this.uiConfig.features.mediaSession?new us:void 0,this.annotationsApi=this.uiConfig.features.annotations?new fs(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]),fp(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}=je({},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)}setLanguage(t){return tt(this,null,function*(){var n;yield(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 br=require("@vkontakte/videoplayer-shared"),ps=require("@vkontakte/videoplayer-core"),U5=()=>{window.customElements.define("vk-video-player",ms)};
|