@vkontakte/videoplayer 1.1.38-dev.d2e560cb.0 → 1.1.38-dev.f9474f22.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 +5 -5
- package/types/VKVideoPlayer/index.d.ts +1 -0
- package/types/config.d.ts +1 -0
- package/types/store/index.d.ts +3 -2
- package/types/types/index.d.ts +1 -0
- package/types/utils/userSettings.d.ts +3 -0
package/es2018.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.38-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.38-dev.f9474f22.0
|
|
3
|
+
* Mon, 15 Jul 2024 10:36:58 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var w2=Object.create;var wl=Object.defineProperty;var k2=Object.getOwnPropertyDescriptor;var C2=Object.getOwnPropertyNames;var S2=Object.getPrototypeOf,P2=Object.prototype.hasOwnProperty;var T2=(i,e,t)=>e in i?wl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var I2=(i,e)=>{for(var t in e)wl(i,t,{get:e[t],enumerable:!0})},Af=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of C2(e))!P2.call(i,o)&&o!==t&&wl(i,o,{get:()=>e[o],enumerable:!(n=k2(e,o))||n.enumerable});return i};var Bf=(i,e,t)=>(t=i!=null?w2(S2(i)):{},Af(e||!i||!i.__esModule?wl(t,"default",{value:i,enumerable:!0}):t,i)),E2=i=>Af(wl({},"__esModule",{value:!0}),i);var Ki=(i,e,t)=>(T2(i,typeof e!="symbol"?e+"":e,t),t);var y6={};I2(y6,{GridTypes:()=>fo,InterfaceLanguage:()=>bl.InterfaceLanguage,VERSION:()=>Vo,VKNumericLanguage:()=>bl.VKNumericLanguage,VideoFormat:()=>_s.VideoFormat,VideoQuality:()=>_s.VideoQuality,loadVKLangPack:()=>bl.loadVKLangPack,registerPlayerWebComponent:()=>v6});module.exports=E2(y6);function de(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function bs(i){return i()}function jl(){return Object.create(null)}function tt(i){i.forEach(bs)}function Pi(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Gl;function vs(i,e){return Gl||(Gl=document.createElement("a")),Gl.href=e,i===Gl.href}function Rf(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Qt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function Ee(i,e,t,n){if(i){let o=Df(i,e,t,n);return i[0](o)}}function Df(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Df(e,t,n,r);i.p(l,o)}}function Le(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 ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Nf(i){return i==null?"":i}var Po=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Ql=class i{constructor(e){Ki(this,"_listeners","WeakMap"in Po?new WeakMap:void 0);Ki(this,"_observer");Ki(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Ql.entries="WeakMap"in Po?new WeakMap:void 0;var Of=!1;function Ff(){Of=!0}function Hf(){Of=!1}function p(i,e){i.appendChild(e)}function Se(i,e,t){let n=zf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,L2(n,o)}}function zf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function L2(i,e){return p(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Wi(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 L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function O(){return De(" ")}function ot(){return De("")}function me(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Bt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function qf(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function mi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Yl;function A2(){if(Yl===void 0){Yl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Yl=!0}}return Yl}function jo(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=A2(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=me(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=me(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function F(i,e,t){i.classList.toggle(e,!!t)}function Uf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function kn(i,e){return new i(e)}var uo;function to(i){uo=i}function Qo(){if(!uo)throw new Error("Function called outside component initialization");return uo}function Rt(i){Qo().$$.on_mount.push(i)}function Un(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function kl(){return Qo().$$.context}function In(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var To=[];var pe=[],Jo=[],ws=[],Wf=Promise.resolve(),ks=!1;function Cs(){ks||(ks=!0,Wf.then(Zl))}function Kn(){return Cs(),Wf}function Wn(i){Jo.push(i)}function Oe(i){ws.push(i)}var ys=new Set,Xo=0;function Zl(){if(Xo!==0)return;let i=uo;do{try{for(;Xo<To.length;){let e=To[Xo];Xo++,to(e),F2(e.$$)}}catch(e){throw To.length=0,Xo=0,e}for(to(null),To.length=0,Xo=0;pe.length;)pe.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];ys.has(t)||(ys.add(t),t())}Jo.length=0}while(To.length);for(;ws.length;)ws.pop()();ks=!1,ys.clear(),to(i)}function F2(i){if(i.fragment!==null){i.update(),tt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Wn)}}function Gf(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Xl=new Set,Io;function fe(){Io={r:0,c:[],p:Io}}function ce(){Io.r||tt(Io.c),Io=Io.p}function d(i,e){i&&i.i&&(Xl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Xl.has(i))return;Xl.add(i),Io.c.push(()=>{Xl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function jf(i){return typeof i=="object"&&i!==null?i:{}}var H2=["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"],z2=new Set([...H2]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function D(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Wn(()=>{let r=i.$$.on_mount.map(bs).filter(Pi);i.$$.on_destroy?i.$$.on_destroy.push(...r):tt(r),i.$$.on_mount=[]}),o.forEach(Wn)}function R(i,e){let t=i.$$;t.fragment!==null&&(Gf(t.after_update),tt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function U2(i,e){i.$$.dirty[0]===-1&&(To.push(i),Cs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function W(i,e,t,n,o,r,l,a=[-1]){let s=uo;to(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:jl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:jl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&U2(i,m)),h}):[],u.update(),c=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ff();let m=qf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Hf(),Zl()}to(s)}var K2;typeof HTMLElement=="function"&&(K2=class extends HTMLElement{constructor(e,t,n){super();Ki(this,"$$componentCtor");Ki(this,"$$slots");Ki(this,"$$component");Ki(this,"$$connected",!1);Ki(this,"$$data",{});Ki(this,"$$reflecting",!1);Ki(this,"$$props_definition",{});Ki(this,"$$listeners",{});Ki(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){C(u,l,c)},d:function(u){u&&k(l)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=Uf(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=Qf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:n,$$scope:{ctx:[]}}});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=Qf(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 Qf(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{constructor(){Ki(this,"$$");Ki(this,"$$set")}$destroy(){R(this,1),this.$destroy=de}$on(e,t){if(!Pi(t))return de;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&&!Rf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Yf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yf);var sR=require("@vkontakte/videoplayer-core"),Gn=require("@vkontakte/videoplayer-shared"),Ap=require("@vkontakte/videoplayer-statistics");var xo=require("@vkontakte/videoplayer-shared");var W2={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}},Zf=i=>(0,xo.fillWithDefault)(i,W2),Xf=i=>Yo("ui-config",i),zt=()=>Zo("ui-config");var Cl="vk_player_debug_panel_opened";var Jf="videoplayer",xf="videoplayer";var Yn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},$f=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ec=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),tc=new Set(["ShiftRight","ShiftLeft"]);var ic=["TIMELINE"],Sl=[...ic,"GRAPH_BUTTON"],Ss=[...ic,"PLAY_BUTTON"],Jl=[...Sl,"PLAY_BUTTON"];var fo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(fo||{}),Mo={xs:0,s:1,m:2,l:3,xl:4};var $o=[];function Rn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!$o.length;for(let u of n)u[1](),$o.push(u,i);if(s){for(let u=0;u<$o.length;u+=2)$o[u][0]($o[u+1]);$o.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ti(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Rn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Pi(b)?b:de},w=o.map((b,S)=>Qt(b,y=>{u[S]=y,c&=~(1<<S),s&&h()},()=>{c|=1<<S}));return s=!0,h(),function(){tt(w),m(),s=!1}})}var Pl=require("@vkontakte/videoplayer-shared"),nc=require("@vkontakte/videoplayer-core"),oc=require("@vkontakte/videoplayer-statistics");var xl="prod",Vo="1.1.38-dev.d2e560cb.0";var $l=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var lc=Symbol("storeContext"),rc=Symbol("microStoresContext"),sc=(i,e)=>{Yo(lc,i),Yo(rc,e),xl==="dev"&&(window.app={store:i,microStores:e})},et=()=>{let i=Zo(lc);return(0,Pl.assertNonNullable)(i,"Store context is empty!"),i},Dn=()=>{let i=Zo(rc);return(0,Pl.assertNonNullable)(i,"MicroStores context is empty!"),i},Et=(i,e)=>Ps(i,i.getValue(),e),Ps=(i,e,t)=>Rn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ac=(i,e,t)=>{var b,S,y,P;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(S=(b=n.throughputEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?S:0,a=(P=(y=n.rttEstimation$.getValue())==null?void 0:y.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Vo} (core: ${nc.VERSION}, stat: ${oc.VERSION}, shared: ${Pl.VERSION})`,c=$e(t.state.errorLog$),m=c.length?`
|
|
7
|
-
`+c.map((v,g)=>{var
|
|
8
|
-
`,
|
|
9
|
-
`,
|
|
10
|
-
`;return I+
|
|
11
|
-
`):void 0,h=t.state.isAudioDisabled?"disabled"
|
|
12
|
-
`)},uc=(i,e,t)=>{let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l={version:Vo,viewport:`${o}x${r}`,volume:Math.round($e(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue();c&&(l.buffer=Math.max(c.end-$e(t.state.positionExact$),0));let m=n.throughputEstimation$.getValue();m&&(l.speed=m);let h=n.videoBitrate$.getValue();h&&(l.bitrate=h);let w=n.currentVideoSegmentLength$.getValue();w&&(l.currentVideoSegmentLength=w);let b=n.currentAudioSegmentLength$.getValue();return b&&(l.currentAudioSegmentLength=b),l},fc=(i,e)=>$l(i,e,"mp4");var Nn=require("@vkontakte/videoplayer-shared"),cc="vk_player_prefer_traffic_saving_enabled",dc="vk_player_preferred_volume",mc="vk_player_prefer_volume_mute",Ts="vk_player_preferred_quality",pc=i=>i>1?1:i<0?0:i,Is=i=>Nn.safeStorage.set(dc,pc(i).toString(10)),er=()=>{let i=Nn.safeStorage.get(dc);return(0,Nn.isNullable)(i)?void 0:pc(parseFloat(i))},_c=(i,e)=>Nn.safeStorage.set(Ts,JSON.stringify({videoId:i,value:e})),Es=()=>Nn.safeStorage.remove(Ts),hc=i=>{let e=Nn.safeStorage.get(Ts);if((0,Nn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Es();return}return n},gc=(i,e)=>{e?Nn.safeStorage.set(i,"true"):Nn.safeStorage.remove(i)},bc=i=>Nn.safeStorage.get(i)==="true",tr=i=>gc(mc,i),vc=()=>bc(mc),yc=i=>gc(cc,i),wc=()=>bc(cc);var ap=require("@vkontakte/videoplayer-core"),us=require("@vkontakte/videoplayer-shared");function G2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v=i[2].default,g=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],N={};for(let K=0;K<I.length;K+=1)N=le(N,I[K]);return{c(){e=L("svg"),g&&g.c(),t=L("g"),n=L("path"),o=L("path"),r=L("path"),l=L("path"),a=L("path"),s=L("defs"),u=L("filter"),c=L("feFlood"),m=L("feColorMatrix"),h=L("feOffset"),w=L("feGaussianBlur"),b=L("feColorMatrix"),S=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(l,"fill","#fff"),f(l,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"result","effect1_dropShadow_618_12297"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_618_12297"),f(y,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),be(e,N)},m(K,q){C(K,e,q),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,c),p(u,m),p(u,h),p(u,w),p(u,b),p(u,S),p(u,y),P=!0},p(K,[q]){g&&g.p&&(!P||q&2)&&Ve(g,v,K,K[1],P?Me(v,K[1],q,null):Le(K[1]),null),be(e,N=Re(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},q&1&&K[0]]))},i(K){P||(d(g,K),P=!0)},o(K){_(g,K),P=!1},d(K){K&&k(e),g&&g.d(K)}}}function j2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ms=class extends U{constructor(e){super(),W(this,e,j2,G2,z,{})}},ir=Ms;var el=require("@vkontakte/videoplayer-shared");var Q2={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"},kc=Q2;var Y2={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"},Cc=Y2;var io=new Map;io.set(el.InterfaceLanguage.EN,Cc);io.set(el.InterfaceLanguage.RU,kc);var Sc=new Map,Vs=({language:i,pack:e,fallback:t})=>{if(io.has(i)){let n=io.get(i);io.set(i,{...n,...e})}else io.set(i,e);Sc.set(i,t)},Ls=i=>io.has(i),As=(i,e,t,n)=>{var l;let o=io.get(i),r=o==null?void 0:o[e];if((0,el.isNullable)(r)){let a=(l=Sc.get(i))!=null?l:n,s=a?io.get(a):void 0;r=s==null?void 0:s[e]}return(0,el.isNullable)(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},G=(i,e)=>{let{interfaceLanguage$:t}=et(),n=$e(t),o=zt();return As(n,i,e,o.defaultLanguage)};var a9=require("@vkontakte/videoplayer-core");var tl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(tl||(tl={}));var Z2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,X2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,J2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nr="?",x2="X-Sentry-Auth",$2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function e_(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
-
`),n,o;for(let r=0;r<t.length;++r){if(n
|
|
14
|
-
`).filter(t=>!!t)[0]}function t_(i){try{let e=e_(i);if(e)return e}catch(e){}return{value:Pc(i),type:i&&i.name,stacktrace:{frames:[]}}}function i_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var or=class{constructor(e){if(e&&e.dsn){let t=$2.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[t_(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(x2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:i_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Tc(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function n_(){return window}var lr=class i extends or{constructor(e,t=n_()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Tc(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Tc(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Lo=require("@vkontakte/videoplayer-shared");var rr=null,Ao=class{constructor(e,t,n={}){!rr&&e.dsn&&(this.sentryClient=new lr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Lo.Subscription,this.options=e,this.context=n,rr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),rr=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=l,{errorType:h,category:w}=t;if((0,Lo.isNonNullable)(w)&&m.includes(w)||(0,Lo.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,Lo.isNonNullable)(w)&&u.includes(w)||(0,Lo.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?tl.fatal:tl.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return rr}};var sr=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()},ar=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Ic=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)},ur=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},fr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Ec=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Bs=require("@vkontakte/videoplayer-shared"),Mc=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:(0,Bs.isMacLike)()?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:(0,Bs.isMacLike)()?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var mo=require("@vkontakte/videoplayer-shared");var Bo=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,mo.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new mo.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,mo.getCurrentBrowser)().browser===mo.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,l;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function Ro(i){return i instanceof Bo}function o_(i){let e=et();return Rt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ns=class extends U{constructor(e){super(),W(this,e,o_,null,z,{})}},Vc=Ns;var Lc=require("@vkontakte/videoplayer-shared");function l_(i){Se(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 r_(i){let e=G("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=G("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Qe(t,e)},d(n){n&&k(t)}}}function s_(i){let e,t=G("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=De(t),o=O(),r=L("svg"),l=L("path"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){C(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=me(e,"click",st(function(){Pi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&k(e),a=!1,s()}}}function a_(i){let e;function t(r,l){return r[3]?s_:r_}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),f(e,"class","container svelte-1k4i25s"),F(e,"container-mobile",i[4]),F(e,"skippable",i[3])},m(r,l){C(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&F(e,"container-mobile",r[4]),l&8&&F(e,"skippable",r[3])},i:de,o:de,d(r){r&&k(e),o.d()}}}function u_(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Lc.noop}=e,s=et().ui.isMobile;H(i,s,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,l=c.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Os=class extends U{constructor(e){super(),W(this,e,u_,a_,z,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},l_)}},Ac=Os;function f_(i){Se(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 c_(i){let e;return{c(){e=T("button"),e.textContent=`${G("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:de,i:de,o:de,d(t){t&&k(e)}}}var Fs=class extends U{constructor(e){super(),W(this,e,null,c_,z,{},f_)}},Bc=Fs;function d_(i){Se(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(
|
|
6
|
+
"use strict";var P_=Object.create;var kl=Object.defineProperty;var T_=Object.getOwnPropertyDescriptor;var I_=Object.getOwnPropertyNames;var E_=Object.getPrototypeOf,M_=Object.prototype.hasOwnProperty;var V_=(i,e,t)=>e in i?kl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var A_=(i,e)=>{for(var t in e)kl(i,t,{get:e[t],enumerable:!0})},Bf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of I_(e))!M_.call(i,o)&&o!==t&&kl(i,o,{get:()=>e[o],enumerable:!(n=T_(e,o))||n.enumerable});return i};var Rf=(i,e,t)=>(t=i!=null?P_(E_(i)):{},Bf(e||!i||!i.__esModule?kl(t,"default",{value:i,enumerable:!0}):t,i)),L_=i=>Bf(kl({},"__esModule",{value:!0}),i);var Ui=(i,e,t)=>(V_(i,typeof e!="symbol"?e+"":e,t),t);var P6={};A_(P6,{GridTypes:()=>fo,InterfaceLanguage:()=>bl.InterfaceLanguage,VERSION:()=>Vo,VKNumericLanguage:()=>bl.VKNumericLanguage,VideoFormat:()=>hs.VideoFormat,VideoQuality:()=>hs.VideoQuality,loadVKLangPack:()=>bl.loadVKLangPack,registerPlayerWebComponent:()=>S6});module.exports=L_(P6);function pe(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function vs(i){return i()}function Ql(){return Object.create(null)}function nt(i){i.forEach(vs)}function Ai(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Gl;function ys(i,e){return Gl||(Gl=document.createElement("a")),Gl.href=e,i===Gl.href}function Df(i){return Object.keys(i).length===0}function jt(i,...e){if(i==null){for(let n of e)n(void 0);return pe}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return jt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(jt(e,t))}function Ee(i,e,t,n){if(i){let o=Nf(i,e,t,n);return i[0](o)}}function Nf(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Nf(e,t,n,r);i.p(l,o)}}function Ae(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 he(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Of(i){return i==null?"":i}var Po=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Yl=class i{constructor(e){Ui(this,"_listeners","WeakMap"in Po?new WeakMap:void 0);Ui(this,"_observer");Ui(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)})}};Yl.entries="WeakMap"in Po?new WeakMap:void 0;var Ff=!1;function Hf(){Ff=!0}function zf(){Ff=!1}function p(i,e){i.appendChild(e)}function Se(i,e,t){let n=qf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,D_(n,o)}}function qf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function D_(i,e){return p(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ki(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 De(i){return document.createTextNode(i)}function O(){return De(" ")}function lt(){return De("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Lt(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 f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ge(i,e){for(let t in e)f(i,t,e[t])}function Uf(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function hi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Zl;function N_(){if(Zl===void 0){Zl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Zl=!0}}return Zl}function Go(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=N_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function z(i,e,t){i.classList.toggle(e,!!t)}function Kf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function kn(i,e){return new i(e)}var uo;function to(i){uo=i}function Qo(){if(!uo)throw new Error("Function called outside component initialization");return uo}function Bt(i){Qo().$$.on_mount.push(i)}function Un(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function Cl(){return Qo().$$.context}function In(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var To=[];var _e=[],Jo=[],ks=[],Wf=Promise.resolve(),Cs=!1;function Ss(){Cs||(Cs=!0,Wf.then(Xl))}function Kn(){return Ss(),Wf}function jn(i){Jo.push(i)}function Fe(i){ks.push(i)}var ws=new Set,Xo=0;function Xl(){if(Xo!==0)return;let i=uo;do{try{for(;Xo<To.length;){let e=To[Xo];Xo++,to(e),U_(e.$$)}}catch(e){throw To.length=0,Xo=0,e}for(to(null),To.length=0,Xo=0;_e.length;)_e.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];ws.has(t)||(ws.add(t),t())}Jo.length=0}while(To.length);for(;ks.length;)ks.pop()();Cs=!1,ws.clear(),to(i)}function U_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(jn)}}function Gf(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Jl=new Set,Io;function fe(){Io={r:0,c:[],p:Io}}function ce(){Io.r||nt(Io.c),Io=Io.p}function d(i,e){i&&i.i&&(Jl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Jl.has(i))return;Jl.add(i),Io.c.push(()=>{Jl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Pt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Qf(i){return typeof i=="object"&&i!==null?i:{}}var K_=["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"],j_=new Set([...K_]);function He(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function D(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),jn(()=>{let r=i.$$.on_mount.map(vs).filter(Ai);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(jn)}function R(i,e){let t=i.$$;t.fragment!==null&&(Gf(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function G_(i,e){i.$$.dirty[0]===-1&&(To.push(i),Ss(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function W(i,e,t,n,o,r,l,a=[-1]){let s=uo;to(i);let u=i.$$={fragment:null,ctx:[],props:r,update:pe,not_equal:o,bound:Ql(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ql(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let b=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&G_(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Hf();let m=Uf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),zf(),Xl()}to(s)}var Q_;typeof HTMLElement=="function"&&(Q_=class extends HTMLElement{constructor(e,t,n){super();Ui(this,"$$componentCtor");Ui(this,"$$slots");Ui(this,"$$component");Ui(this,"$$connected",!1);Ui(this,"$$data",{});Ui(this,"$$reflecting",!1);Ui(this,"$$props_definition",{});Ui(this,"$$listeners",{});Ui(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){C(u,l,c)},d:function(u){u&&k(l)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=Kf(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=Yf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:n,$$scope:{ctx:[]}}});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=Yf(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 Yf(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Ui(this,"$$");Ui(this,"$$set")}$destroy(){R(this,1),this.$destroy=pe}$on(e,t){if(!Ai(t))return pe;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&&!Df(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Zf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zf);var pR=require("@vkontakte/videoplayer-core"),Wn=require("@vkontakte/videoplayer-shared"),Op=require("@vkontakte/videoplayer-statistics");var xo=require("@vkontakte/videoplayer-shared");var Y_={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,saveRate:!1},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}},Xf=i=>(0,xo.fillWithDefault)(i,Y_),Jf=i=>Yo("ui-config",i),Ht=()=>Zo("ui-config");var Sl="vk_player_debug_panel_opened";var xf="videoplayer",$f="videoplayer";var Yn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ec=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),tc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ic=new Set(["ShiftRight","ShiftLeft"]);var nc=["TIMELINE"],Pl=[...nc,"GRAPH_BUTTON"],Ps=[...nc,"PLAY_BUTTON"],xl=[...Pl,"PLAY_BUTTON"];var fo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(fo||{}),Mo={xs:0,s:1,m:2,l:3,xl:4};var $o=[];function Bn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=pe){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!$o.length;for(let u of n)u[1](),$o.push(u,i);if(s){for(let u=0;u<$o.length;u+=2)$o[u][0]($o[u+1]);$o.length=0}}}function r(a){o(a(i))}function l(a,s=pe){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||pe),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Li(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Bn(t,(l,a)=>{let s=!1,u=[],c=0,m=pe,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Ai(b)?b:pe},y=o.map((b,S)=>jt(b,w=>{u[S]=w,c&=~(1<<S),s&&h()},()=>{c|=1<<S}));return s=!0,h(),function(){nt(y),m(),s=!1}})}var Tl=require("@vkontakte/videoplayer-shared"),oc=require("@vkontakte/videoplayer-core"),lc=require("@vkontakte/videoplayer-statistics");var $l="prod",Vo="1.1.38-dev.f9474f22.0";var er=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var rc=Symbol("storeContext"),sc=Symbol("microStoresContext"),ac=(i,e)=>{Yo(rc,i),Yo(sc,e),$l==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=Zo(rc);return(0,Tl.assertNonNullable)(i,"Store context is empty!"),i},Rn=()=>{let i=Zo(sc);return(0,Tl.assertNonNullable)(i,"MicroStores context is empty!"),i},Tt=(i,e)=>Ts(i,i.getValue(),e),Ts=(i,e,t)=>Bn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),uc=(i,e,t)=>{var b,S,w,P;let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l=(S=(b=n.throughputEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?S:0,a=(P=(w=n.rttEstimation$.getValue())==null?void 0:w.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Vo} (core: ${oc.VERSION}, stat: ${lc.VERSION}, shared: ${Tl.VERSION})`,c=tt(t.state.errorLog$),m=c.length?`
|
|
7
|
+
`+c.map((v,g)=>{var K;let I=`${g}) Type: ${v.id}
|
|
8
|
+
`,A=`Message: ${v.message} (${v.thrown})
|
|
9
|
+
`,q=`Trace: ${(K=v.thrown)==null?void 0:K.stack}
|
|
10
|
+
`;return I+A+q}).join(`
|
|
11
|
+
`):void 0,h=t.state.isAudioDisabled?"disabled":tt(t.state.isAudioAvailable$)?void 0:"unavailable",y={Version:u,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:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${tt(t.state.positionExact$)}s`,State:`${tt(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(y).filter(([v,g])=>g!==void 0).map(([v,g])=>`${v}: ${g}`).join(`
|
|
12
|
+
`)},fc=(i,e,t)=>{let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l={version:Vo,viewport:`${o}x${r}`,volume:Math.round(tt(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue();c&&(l.buffer=Math.max(c.end-tt(t.state.positionExact$),0));let m=n.throughputEstimation$.getValue();m&&(l.speed=m);let h=n.videoBitrate$.getValue();h&&(l.bitrate=h);let y=n.currentVideoSegmentLength$.getValue();y&&(l.currentVideoSegmentLength=y);let b=n.currentAudioSegmentLength$.getValue();return b&&(l.currentAudioSegmentLength=b),l},cc=(i,e)=>er(i,e,"mp4");var bn=require("@vkontakte/videoplayer-shared"),Y7=require("@vkontakte/videoplayer-core"),dc="vk_player_prefer_traffic_saving_enabled",mc="vk_player_preferred_volume",pc="vk_player_prefer_volume_mute",Is="vk_player_preferred_quality",_c="vk_player_preferred_rate",hc=i=>i>1?1:i<0?0:i,Es=i=>bn.safeStorage.set(mc,hc(i).toString(10)),tr=()=>{let i=bn.safeStorage.get(mc);return(0,bn.isNullable)(i)?void 0:hc(parseFloat(i))},gc=(i,e)=>bn.safeStorage.set(Is,JSON.stringify({videoId:i,value:e})),Ms=()=>bn.safeStorage.remove(Is),bc=i=>{let e=bn.safeStorage.get(Is);if((0,bn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ms();return}return n},vc=(i,e)=>{e?bn.safeStorage.set(i,"true"):bn.safeStorage.remove(i)},yc=i=>bn.safeStorage.get(i)==="true",ir=i=>vc(pc,i),wc=()=>yc(pc),kc=i=>vc(dc,i),Cc=()=>yc(dc),Sc=i=>bn.safeStorage.set(_c,JSON.stringify({rate:i})),Pc=()=>{let i=bn.safeStorage.get(_c);if((0,bn.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var mp=require("@vkontakte/videoplayer-core"),fs=require("@vkontakte/videoplayer-shared");function Z_(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v=i[2].default,g=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],A={};for(let q=0;q<I.length;q+=1)A=oe(A,I[q]);return{c(){e=N("svg"),g&&g.c(),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("path"),a=N("path"),s=N("defs"),u=N("filter"),c=N("feFlood"),m=N("feColorMatrix"),h=N("feOffset"),y=N("feGaussianBlur"),b=N("feColorMatrix"),S=N("feBlend"),w=N("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(l,"fill","#fff"),f(l,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"result","effect1_dropShadow_618_12297"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_618_12297"),f(w,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),ge(e,A)},m(q,K){C(q,e,K),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,c),p(u,m),p(u,h),p(u,y),p(u,b),p(u,S),p(u,w),P=!0},p(q,[K]){g&&g.p&&(!P||K&2)&&Ve(g,v,q,q[1],P?Me(v,q[1],K,null):Ae(q[1]),null),ge(e,A=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},K&1&&q[0]]))},i(q){P||(d(g,q),P=!0)},o(q){_(g,q),P=!1},d(q){q&&k(e),g&&g.d(q)}}}function X_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Vs=class extends j{constructor(e){super(),W(this,e,X_,Z_,U,{})}},nr=Vs;var el=require("@vkontakte/videoplayer-shared");var J_={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"},Tc=J_;var x_={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"},Ic=x_;var io=new Map;io.set(el.InterfaceLanguage.EN,Ic);io.set(el.InterfaceLanguage.RU,Tc);var Ec=new Map,As=({language:i,pack:e,fallback:t})=>{if(io.has(i)){let n=io.get(i);io.set(i,{...n,...e})}else io.set(i,e);Ec.set(i,t)},Ls=i=>io.has(i),Bs=(i,e,t,n)=>{var l;let o=io.get(i),r=o==null?void 0:o[e];if((0,el.isNullable)(r)){let a=(l=Ec.get(i))!=null?l:n,s=a?io.get(a):void 0;r=s==null?void 0:s[e]}return(0,el.isNullable)(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},Y=(i,e)=>{let{interfaceLanguage$:t}=it(),n=tt(t),o=Ht();return Bs(n,i,e,o.defaultLanguage)};var p9=require("@vkontakte/videoplayer-core");var tl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(tl||(tl={}));var $_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,e2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,t2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,or="?",i2="X-Sentry-Auth",n2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function o2(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let r=0;r<t.length;++r){if(n=$_.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||or,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=t2.exec(t[r]))o={filename:n[2],function:n[1]||or,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=e2.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||or,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=or),e.push(o)}return e.length?{value:Mc(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Mc(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function l2(i){try{let e=o2(i);if(e)return e}catch(e){}return{value:Mc(i),type:i&&i.name,stacktrace:{frames:[]}}}function r2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var lr=class{constructor(e){if(e&&e.dsn){let t=n2.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[l2(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(i2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:r2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Vc(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function s2(){return window}var rr=class i extends lr{constructor(e,t=s2()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Vc(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Vc(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Ao=require("@vkontakte/videoplayer-shared");var sr=null,Lo=class{constructor(e,t,n={}){!sr&&e.dsn&&(this.sentryClient=new rr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Ao.Subscription,this.options=e,this.context=n,sr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),sr=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=l,{errorType:h,category:y}=t;if((0,Ao.isNonNullable)(y)&&m.includes(y)||(0,Ao.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,Ao.isNonNullable)(y)&&u.includes(y)||(0,Ao.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?tl.fatal:tl.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return sr}};var ar=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()},ur=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Ac=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)},fr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},cr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Lc=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Rs=require("@vkontakte/videoplayer-shared"),Bc=()=>({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_context_menu_description"),value:Y("hotkey_map_item_show_context_menu_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:(0,Rs.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:(0,Rs.isMacLike)()?Y("hotkey_map_item_next_episode_mac_value"):Y("hotkey_map_item_next_episode_pc_value")}]}]});var mo=require("@vkontakte/videoplayer-shared");var Bo=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,mo.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new mo.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,mo.getCurrentBrowser)().browser===mo.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,l;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function Ro(i){return i instanceof Bo}function a2(i){let e=it();return Bt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Os=class extends j{constructor(e){super(),W(this,e,a2,null,U,{})}},Rc=Os;var Dc=require("@vkontakte/videoplayer-shared");function u2(i){Se(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 f2(i){let e=Y("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=Y("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ye(t,e)},d(n){n&&k(t)}}}function c2(i){let e,t=Y("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=De(t),o=O(),r=N("svg"),l=N("path"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){C(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=de(e,"click",st(function(){Ai(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&k(e),a=!1,s()}}}function d2(i){let e;function t(r,l){return r[3]?c2:f2}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),f(e,"class","container svelte-1k4i25s"),z(e,"container-mobile",i[4]),z(e,"skippable",i[3])},m(r,l){C(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&z(e,"container-mobile",r[4]),l&8&&z(e,"skippable",r[3])},i:pe,o:pe,d(r){r&&k(e),o.d()}}}function m2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Dc.noop}=e,s=it().ui.isMobile;F(i,s,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,l=c.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Fs=class extends j{constructor(e){super(),W(this,e,m2,d2,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},u2)}},Nc=Fs;function p2(i){Se(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 _2(i){let e;return{c(){e=T("button"),e.textContent=`${Y("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:pe,i:pe,o:pe,d(t){t&&k(e)}}}var Hs=class extends j{constructor(e){super(),W(this,e,null,_2,U,{},p2)}},Oc=Hs;function h2(i){Se(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 Rc(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Dc(i){let e,t;return e=new Ac({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nc(i){let e,t;return e=new Vc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Oc(i){let e,t;return e=new Bc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function m_(i){let e,t,n,o,r,l,a,s=i[0]&&Rc(i),u=i[3]&&Dc(i),c=i[7]&&Nc(i),m=i[4]&&Oc(i);return{c(){e=T("div"),s&&s.c(),t=O(),n=T("video"),o=O(),u&&u.c(),r=O(),c&&c.c(),l=O(),m&&m.c(),mi(n,"width","100%"),mi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,w){C(h,e,w),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),c&&c.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[w]){h[0]?s||(s=Rc(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=Dc(h),u.c(),d(u,1),u.m(e,r)):u&&(fe(),_(u,1,1,()=>{u=null}),ce()),h[7]?c?w&128&&d(c,1):(c=Nc(h),c.c(),d(c,1),c.m(e,l)):c&&(fe(),_(c,1,1,()=>{c=null}),ce()),h[4]?m?w&16&&d(m,1):(m=Oc(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),ce())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){_(u),_(c),_(m),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function p_(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=et(),w=h.state.isEnded$;H(i,w,E=>t(7,a=E));let b=h.ui.isMobile;H(i,b,E=>t(0,o=E));let S,y,P=!1,v=h.ads.playbackState;H(i,v,E=>t(18,n=E));let g=h.ads.canSkip,I=h.ads.position;H(i,I,E=>t(5,r=E));let N=h.ads.secondsToWatchBeforeSkip;H(i,N,E=>t(6,l=E));let K,q;Rt(()=>{let E=new AbortController,ie=()=>{E.abort()},x=h.getAdmanWrapper();if(!s){x.onAdmanLoadingError();return}let{width:j,height:X}=$e(h.ui.playerSize),M=$e(h.ui.isFullscreen),Q=$e(h.ui.isAutoplay),A={width:j,height:X,isFullscreen:M,isAutoplay:Q,adsContainer:S,adsVideoElement:y,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?(x.initAdman(A),P=!0):x.loadAdman(E.signal).then(()=>{x.initAdman(A),P=!0}).catch(()=>{x.onAdmanLoadingError()}),()=>{!P&&ie()}});function se(E){pe[E?"unshift":"push"](()=>{y=E,t(2,y)})}function ne(E){pe[E?"unshift":"push"](()=>{S=E,t(1,S)})}return i.$$set=E=>{"adsSlotId"in E&&t(14,s=E.adsSlotId),"adsParams"in E&&t(15,u=E.adsParams),"adsPreviewParam"in E&&t(16,c=E.adsPreviewParam),"duration"in E&&t(17,m=E.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,K=g&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,q=o&&n!=="inactive")},[o,S,y,K,q,r,l,a,h,w,b,v,I,N,s,u,c,m,n,se,ne]}var Hs=class extends U{constructor(e){super(),W(this,e,p_,m_,z,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},d_)}},cr=Hs;var En=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function __(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),be(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Le(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function h_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var zs=class extends U{constructor(e){super(),W(this,e,h_,__,z,{})}},Fc=zs;function g_(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=L("svg"),l&&l.c(),t=L("rect"),n=L("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Le(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function b_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var qs=class extends U{constructor(e){super(),W(this,e,b_,g_,z,{})}},Hc=qs;function v_(i){let e,t;return e=new Fc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y_(i){let e,t;return e=new Hc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function w_(i){let e,t,n,o,r=[y_,v_],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function k_(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 U{constructor(e){super(),W(this,e,k_,w_,z,{isActive:0})}},dr=Us;function C_(i){Se(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 S_(i){let e=En(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=En(n[4]-n[3])+"")&&Qe(t,e)},i:de,o:de,d(n){n&&k(t)}}}function P_(i){let e,t,n;return t=new dr({props:{isActive:!0}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function T_(i){let e,t,n,o,r,l,a,s=[P_,S_],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](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=O(),o=T("span"),l.c(),f(t,"class","thumb-timer-equalizer svelte-7pnl2h"),f(o,"class","thumb-timer-text svelte-7pnl2h"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-7pnl2h"),f(e,"data-testid","thumb-timer"),F(e,"live",i[1]),F(e,"hidden",i[0]),F(e,"playing",i[2])},m(m,h){C(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let w=r;r=c(m,h),r===w?u[r].p(m,h):(fe(),_(u[w],1,1,()=>{u[w]=null}),ce(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&F(e,"live",m[1]),(!a||h&1)&&F(e,"hidden",m[0]),(!a||h&4)&&F(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&k(e),u[r].d()}}}function I_(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var Ks=class extends U{constructor(e){super(),W(this,e,I_,T_,z,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},C_)}},mr=Ks;var Tl=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 Ws=require("@vkontakte/videoplayer-core");var qc=require("@vkontakte/videoplayer-shared"),E_=(0,qc.isAndroid)(),No=i=>{i.stopPropagation(),i.preventDefault()},M_=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},V_=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},L_=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},A_=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Uc=i=>i.code==="Escape",B_=i=>i.code==="ArrowLeft",Kc=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Wc=i=>{if(L_(i)){No(i),V_(i.target);return}A_(i)&&(No(i),M_(i.target))},nl=i=>(i==null?void 0:i.detail)===0||E_&&(i==null?void 0:i.pointerType)==="",ol=async(i,e,t)=>{await Kn(),i&&!i.classList.contains("opened")&&!e&&$e(t)&&(await Kn(),t.set(!1),i.focus())},Gc=async(i,e,t)=>{await Kn(),i&&!e&&$e(t)&&(t.set(!1),i.focus())},Oo=async(i,e,t)=>{await Kn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},Il=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},pr=(i,e)=>{Wc(i),Uc(i)&&(No(i),e())},El=async(i,e,t)=>{if(Kc(i,!1)){No(i),e(),await Kn();let n=t();n==null||n.focus()}},Ml=async(i,e,t,n)=>{if(Wc(i),B_(i)){No(i),e(),t.set(!0);return}Uc(i)&&(No(i),n())},xi=(i,e)=>{Kc(i)&&(No(i),e())},jc=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Qc=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 Vl=require("@vkontakte/videoplayer-shared");function R_(i){Se(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 Yc(i){var ie;let e,t,n,o,r,l,a,s,u,c=(i[10].features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug"))+"",m,h,w,b,S=G("menu_debug_overlay")+"",y,P,v,g,I=i[10].features.copyVideoLink&&((ie=i[9].callbacks)==null?void 0:ie.onCopyVideoLink)&&D_(i),N=i[12]&&i[6]!==Ws.ChromecastState.CONNECTED&&!i[17]&&Xc(i);function K(x,j){return x[4]?O_:N_}let q=K(i,[-1,-1]),se=q(i),ne=i[10].features.videoRotate&&!i[17]&&F_(i),E=i[10].showSupport&&!i[7]&&Jc(i);return{c(){e=T("ul"),I&&I.c(),t=O(),N&&N.c(),n=O(),o=T("li"),se.c(),l=O(),ne&&ne.c(),a=O(),E&&E.c(),s=O(),u=T("li"),m=De(c),w=O(),b=T("li"),y=De(S),f(o,"tabindex","0"),f(o,"role","menuitem"),f(o,"aria-label",r=G("aria_label_menu_loop")),f(o,"class","svelte-1vzqlps"),f(u,"tabindex","0"),f(u,"role","menuitem"),f(u,"aria-label",h=i[10].features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug")),f(u,"class","svelte-1vzqlps"),f(b,"tabindex","0"),f(b,"role","menuitem"),f(b,"aria-label",P=i[8]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable")),f(b,"class","svelte-1vzqlps"),f(e,"role","menu"),mi(e,"top",i[3]+"px"),mi(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m(x,j){C(x,e,j),I&&I.m(e,null),p(e,t),N&&N.m(e,null),p(e,n),p(e,o),se.m(o,null),p(e,l),ne&&ne.m(e,null),p(e,a),E&&E.m(e,null),p(e,s),p(e,u),p(u,m),p(e,w),p(e,b),p(b,y),i[42](e),v||(g=[me(o,"click",st(i[24])),me(o,"keydown",i[30]),me(u,"click",st(i[21])),me(u,"keydown",i[32]),me(b,"click",st(i[22])),me(b,"keydown",i[33]),me(e,"contextmenu",Bt(i[39])),me(e,"keydown",i[26])],v=!0)},p(x,j){var X;x[10].features.copyVideoLink&&((X=x[9].callbacks)!=null&&X.onCopyVideoLink)&&I.p(x,j),x[12]&&x[6]!==Ws.ChromecastState.CONNECTED&&!x[17]?N?N.p(x,j):(N=Xc(x),N.c(),N.m(e,n)):N&&(N.d(1),N=null),q===(q=K(x,j))&&se?se.p(x,j):(se.d(1),se=q(x),se&&(se.c(),se.m(o,null))),x[10].features.videoRotate&&!x[17]&&ne.p(x,j),x[10].showSupport&&!x[7]?E?E.p(x,j):(E=Jc(x),E.c(),E.m(e,s)):E&&(E.d(1),E=null),j[0]&256&&P!==(P=x[8]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"))&&f(b,"aria-label",P),j[0]&8&&mi(e,"top",x[3]+"px"),j[0]&4&&mi(e,"left",x[2]+"px")},d(x){x&&k(e),I&&I.d(),N&&N.d(),se.d(),ne&&ne.d(),E&&E.d(),i[42](null),v=!1,tt(g)}}}function D_(i){let e,t=G("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&Zc(i);return{c(){e=T("li"),n=De(t),r=O(),u&&u.c(),l=ot(),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("menu_copy_video_link")),f(e,"class","svelte-1vzqlps")},m(c,m){C(c,e,m),p(e,n),C(c,r,m),u&&u.m(c,m),C(c,l,m),a||(s=[me(e,"click",st(i[40])),me(e,"keydown",i[27])],a=!0)},p(c,m){!c[5]&&!c[17]?u?u.p(c,m):(u=Zc(c),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(c){c&&(k(e),k(r),k(l)),u&&u.d(c),a=!1,tt(s)}}}function Zc(i){let e,t=G("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("menu_copy_video_link_with_timestamp")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[me(e,"click",st(i[41])),me(e,"keydown",i[28])],r=!0)},p:de,d(a){a&&k(e),r=!1,tt(l)}}}function Xc(i){let e,t=G("menu_pip")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("menu_pip")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[me(e,"click",st(i[23])),me(e,"keydown",i[29])],r=!0)},p:de,d(a){a&&k(e),r=!1,tt(l)}}}function N_(i){let e=G("menu_video_loop_on")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:de,d(n){n&&k(t)}}}function O_(i){let e=G("menu_video_loop_off")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:de,d(n){n&&k(t)}}}function F_(i){let e,t=G("menu_video_rotate")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("aria_label_menu_rotate")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[me(e,"click",st(i[19])),me(e,"keydown",i[30])],r=!0)},p:de,d(a){a&&k(e),r=!1,tt(l)}}}function Jc(i){let e,t=G("menu_report")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[me(e,"click",st(i[20])),me(e,"keydown",i[31])],r=!0)},p:de,d(a){a&&k(e),r=!1,tt(l)}}}function H_(i){let e,t=i[1]&&Yc(i);return{c(){t&&t.c(),e=ot()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Yc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:de,o:de,d(n){n&&k(e),t&&t.d(n)}}}function z_(i,e,t){var ke;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:c}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:w=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:S}=e,y=0,P=0,v=et(),g=zt(),I=v.ui.contextMenu.visible$,N=v.ui.debugPanelVisible;H(i,N,Y=>t(8,s=Y));let K=v.webApi.pictureInPictureApi,q=(ke=v.webApi.pictureInPictureApi)==null?void 0:ke.info.isActive$;H(i,q,Y=>t(7,a=Y));let se=v.state.chromecastState$;H(i,se,Y=>t(6,l=Y));let ne=v.state.isLive$;H(i,ne,Y=>t(5,r=Y));let E=v.state.positionExact$;H(i,E,Y=>t(43,n=Y));let ie=v.state.isInteractive,x=v.state.looped$;H(i,x,Y=>t(4,o=Y));let j=()=>{I.set(!1)},X=(Y,Ce)=>{if(!b||!h||!w)return;let ue=b.getBoundingClientRect(),Ie=h.getBoundingClientRect();t(2,y=Y-Ie.left),t(3,P=Ce-Ie.top),y+ue.width>Ie.width&&t(2,y=Ie.width-ue.width),P+ue.height>Ie.height&&t(3,P=Ie.height-ue.height),t(2,y=Math.max(y,0)),t(3,P=Math.max(P,0))},M=()=>{j(),v.actions.internal.videoRotate()},Q=()=>{window.open(c,"_blank"),j(),v.actions.internal.pause()},A=()=>{let Y=v.actions.internal.getDebugTextData();if(g.features.saveDebugInfoToFile){let Ce=new Blob([...Y],{type:"plain/text"}),ue=window.URL.createObjectURL(Ce);$l(ue,"vk_player_debug_info","txt")}else Tl(v.actions.internal.getDebugTextData());j(),S==null||S()},ee=()=>{N.set(!0),j(),S==null||S()},Te=async()=>{try{K!=null&&K.isActive()?await(K==null?void 0:K.remove()):await(K==null?void 0:K.request())}finally{j(),S==null||S()}},je=()=>{v.actions.internal.setLooped(!o),j()},Ke=(Y=!1)=>{var Ce,ue;if((Ce=v.callbacks)!=null&&Ce.onCopyVideoLink){let Ie=(ue=v.callbacks)==null?void 0:ue.onCopyVideoLink(Y,n);Ie&&Tl(Ie)}j()},Je=Y=>{pr(Y,j)},We=Y=>{xi(Y,()=>Ke())},ye=Y=>{xi(Y,()=>Ke(!0))},J=Y=>{xi(Y,()=>Te())},ve=Y=>{xi(Y,()=>M())},He=Y=>{xi(Y,()=>Q())},Xe=Y=>{xi(Y,()=>A())},xe=Y=>{xi(Y,()=>ee())};function he(Y){In.call(this,i,Y)}let Be=()=>Ke(),Ue=()=>Ke(!0);function it(Y){pe[Y?"unshift":"push"](()=>{b=Y,t(0,b)})}return i.$$set=Y=>{"visible"in Y&&t(1,u=Y.visible),"supportLink"in Y&&t(34,c=Y.supportLink),"position"in Y&&t(35,m=Y.position),"playerContainerRef"in Y&&t(36,h=Y.playerContainerRef),"controlsContainerRef"in Y&&t(37,w=Y.controlsContainerRef),"menuElementRef"in Y&&t(0,b=Y.menuElementRef),"returnFocus"in Y&&t(38,S=Y.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&h&&w){let{top:Y,left:Ce,bottom:ue,right:Ie}=m,Ye=Ce!=null?Ce:0,at=Y!=null?Y:0,dt=b.getBoundingClientRect();(0,Vl.isNullable)(Ce)&&!(0,Vl.isNullable)(Ie)&&(Ye=Ie-dt.width),(0,Vl.isNullable)(Y)&&!(0,Vl.isNullable)(ue)&&(at=ue-dt.height),Ye=Math.max(Ye,0),at=Math.max(at,0),X(Ye,at)}}},[b,u,y,P,o,r,l,a,s,v,g,N,K,q,se,ne,E,ie,x,M,Q,A,ee,Te,je,Ke,Je,We,ye,J,ve,He,Xe,xe,c,m,h,w,S,he,Be,Ue,it]}var Gs=class extends U{constructor(e){super(),W(this,e,z_,H_,z,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},R_,[-1,-1])}},xc=Gs;var _r=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new _r(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 q_(i){Se(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function U_(i){let e,t;return{c(){e=T("div"),t=T("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){C(n,e,o),p(e,t),i[3](t)},p:de,i:de,o:de,d(n){n&&k(e),i[3](null)}}}var js=16,Qs=120,$c=60;function K_(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function W_(i,e,t){let{values:n=[]}=e,o,r,l=Qs/$c;Rt(()=>{t(0,o.width=Qs,o),t(0,o.height=js,o),t(2,r=o.getContext("2d"))});function a(s){pe[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6)e:{let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,Qs,js);let c=$c-1;for(let m=n.length-1;m>=0;m--){let h=c*l,w=u>0?js*(n[m]/u):0;K_(r,h,0,l,w),s=w+" "+s,c--}}}},[o,n,r,a]}var Ys=class extends U{constructor(e){super(),W(this,e,W_,U_,z,{values:1},q_)}},hr=Ys;var Zs=require("@vkontakte/videoplayer-shared");function G_(i){Se(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 e1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Qe(l,r)},d(a){a&&k(e)}}}function t1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Qe(l,r)},d(a){a&&k(e)}}}function i1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Qe(l,r)},d(a){a&&k(e)}}}function n1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Qe(l,r)},d(a){a&&k(e)}}}function o1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Qe(l,r)},d(a){a&&k(e)}}}function l1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=O(),o=T("span"),l=De(r),a=De(" %"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Qe(l,r)},d(s){s&&k(e)}}}function r1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=O(),o=T("span"),l=De(r),a=De(" s"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Qe(l,r)},d(s){s&&k(e)}}}function s1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(f1).map(c1).join(" / ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video"},{value:a[0].currentAudioSegmentLength,title:"Audio"}].filter(f1).map(c1).join(" / ")+"")&&Qe(l,r)},d(a){a&&k(e)}}}function a1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new hr({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=O(),D(o.$$.fragment),r=O(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),B(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let w={};h&32&&(w.values=m[5]),o.$set(w),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Qe(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),R(o)}}}function u1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new hr({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=O(),D(o.$$.fragment),r=O(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),B(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let w={};h&64&&(w.values=m[6]),o.$set(w),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Qe(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),R(o)}}}function j_(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,ie,x,j,X,M,Q,A,ee,Te,je,Ke,Je,We,ye,J,ve=i[0].id&&e1(i),He=i[0].provider&&t1(i),Xe=i[0].viewport&&i1(i),xe=i[0].videoSize&&n1(i),he=i[0].cdn&&o1(i),Be=i[0].volume&&l1(i),Ue=i[0].buffer&&r1(i),it=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&s1(i),ke=i[0].speed&&a1(i),Y=i[0].bitrate&&u1(i);return ee=new hr({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=O(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=O(),s=T("span"),c=De(u),m=O(),ve&&ve.c(),h=O(),He&&He.c(),w=O(),Xe&&Xe.c(),b=O(),xe&&xe.c(),S=O(),he&&he.c(),y=O(),Be&&Be.c(),P=O(),Ue&&Ue.c(),v=O(),it&&it.c(),g=O(),I=T("div"),N=T("div"),N.textContent="Dropped",K=O(),q=T("span"),se=De(i[2]),ne=De(" / "),E=De(i[1]),ie=De(" frames"),x=O(),ke&&ke.c(),j=O(),Y&&Y.c(),X=O(),M=T("div"),Q=T("div"),Q.textContent="FPS",A=O(),D(ee.$$.fragment),Te=O(),je=T("span"),Ke=De(i[3]),f(t,"class","close svelte-1fypj5i"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(l,"class","svelte-1fypj5i"),f(r,"class","svelte-1fypj5i"),f(N,"class","svelte-1fypj5i"),f(I,"class","svelte-1fypj5i"),f(Q,"class","svelte-1fypj5i"),f(M,"class","svelte-1fypj5i"),f(o,"class","content svelte-1fypj5i"),f(e,"class","container svelte-1fypj5i"),f(e,"role","region"),f(e,"aria-label",Je=G("aria_label_debug_panel")),F(e,"container-mobile",i[7])},m(Ce,ue){C(Ce,e,ue),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,c),p(o,m),ve&&ve.m(o,null),p(o,h),He&&He.m(o,null),p(o,w),Xe&&Xe.m(o,null),p(o,b),xe&&xe.m(o,null),p(o,S),he&&he.m(o,null),p(o,y),Be&&Be.m(o,null),p(o,P),Ue&&Ue.m(o,null),p(o,v),it&&it.m(o,null),p(o,g),p(o,I),p(I,N),p(I,K),p(I,q),p(q,se),p(q,ne),p(q,E),p(q,ie),p(o,x),ke&&ke.m(o,null),p(o,j),Y&&Y.m(o,null),p(o,X),p(o,M),p(M,Q),p(M,A),B(ee,M,null),p(M,Te),p(M,je),p(je,Ke),We=!0,ye||(J=me(t,"click",st(i[9])),ye=!0)},p(Ce,[ue]){(!We||ue&1)&&u!==(u=Ce[0].version+"")&&Qe(c,u),Ce[0].id?ve?ve.p(Ce,ue):(ve=e1(Ce),ve.c(),ve.m(o,h)):ve&&(ve.d(1),ve=null),Ce[0].provider?He?He.p(Ce,ue):(He=t1(Ce),He.c(),He.m(o,w)):He&&(He.d(1),He=null),Ce[0].viewport?Xe?Xe.p(Ce,ue):(Xe=i1(Ce),Xe.c(),Xe.m(o,b)):Xe&&(Xe.d(1),Xe=null),Ce[0].videoSize?xe?xe.p(Ce,ue):(xe=n1(Ce),xe.c(),xe.m(o,S)):xe&&(xe.d(1),xe=null),Ce[0].cdn?he?he.p(Ce,ue):(he=o1(Ce),he.c(),he.m(o,y)):he&&(he.d(1),he=null),Ce[0].volume?Be?Be.p(Ce,ue):(Be=l1(Ce),Be.c(),Be.m(o,P)):Be&&(Be.d(1),Be=null),Ce[0].buffer?Ue?Ue.p(Ce,ue):(Ue=r1(Ce),Ue.c(),Ue.m(o,v)):Ue&&(Ue.d(1),Ue=null),Ce[0].currentVideoSegmentLength||Ce[0].currentAudioSegmentLength?it?it.p(Ce,ue):(it=s1(Ce),it.c(),it.m(o,g)):it&&(it.d(1),it=null),(!We||ue&4)&&Qe(se,Ce[2]),(!We||ue&2)&&Qe(E,Ce[1]),Ce[0].speed?ke?(ke.p(Ce,ue),ue&1&&d(ke,1)):(ke=a1(Ce),ke.c(),d(ke,1),ke.m(o,j)):ke&&(fe(),_(ke,1,1,()=>{ke=null}),ce()),Ce[0].bitrate?Y?(Y.p(Ce,ue),ue&1&&d(Y,1)):(Y=u1(Ce),Y.c(),d(Y,1),Y.m(o,X)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),ce());let Ie={};ue&16&&(Ie.values=Ce[4]),ee.$set(Ie),(!We||ue&8)&&Qe(Ke,Ce[3]),(!We||ue&128)&&F(e,"container-mobile",Ce[7])},i(Ce){We||(d(ke),d(Y),d(ee.$$.fragment,Ce),We=!0)},o(Ce){_(ke),_(Y),_(ee.$$.fragment,Ce),We=!1},d(Ce){Ce&&k(e),ve&&ve.d(),He&&He.d(),Xe&&Xe.d(),xe&&xe.d(),he&&he.d(),Be&&Be.d(),Ue&&Ue.d(),it&&it.d(),ke&&ke.d(),Y&&Y.d(),R(ee),ye=!1,J()}}}var f1=({value:i})=>i,c1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function Q_(i,e,t){let n,o=et(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;H(i,l,g=>t(7,n=g));let a=()=>{Zs.safeStorage.remove(Cl),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,w=new ll(60),b=new ll(60),S=new ll(60),y=[],P=[],v=[];return Rt(()=>{Zs.safeStorage.set(Cl,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let g=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),I;return u&&(I=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let N=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=N-c),t(1,c=N),w.push(h),s.speed&&b.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,y=w.getValuesFromBottom()),t(5,P=b.getValuesFromBottom()),t(6,v=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(g),I&&clearInterval(I)}}),[s,c,m,h,y,P,v,n,l,a]}var Xs=class extends U{constructor(e){super(),W(this,e,Q_,j_,z,{},G_)}},gr=Xs;function Y_(i){Se(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 Z_(i){let e,t,n;return{c(){e=T("div"),f(e,"class","close svelte-1ome55p")},m(o,r){C(o,e,r),t||(n=me(e,"click",st(i[0])),t=!0)},p:de,i:de,o:de,d(o){o&&k(e),t=!1,n()}}}function X_(i){function e(t){In.call(this,i,t)}return[e]}var Js=class extends U{constructor(e){super(),W(this,e,X_,Z_,z,{},Y_)}},d1=Js;var m1=require("@vkontakte/videoplayer-shared");function J_(i){Se(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 x_(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=O(),o=L("svg"),r=L("g"),l=L("g"),a=L("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(l,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(s,u){C(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:de,i:de,o:de,d(s){s&&k(e),i[2](null)}}}var $_=5e3;function eh(i,e,t){let{onTimerEnded:n=m1.noop}=e,o;Rt(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let c=(Date.now()-s)/$_;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){pe[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var xs=class extends U{constructor(e){super(),W(this,e,eh,x_,z,{onTimerEnded:1},J_)}},p1=xs;function th(i){Se(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 _1(i){let e,t;return e=new p1({props:{onTimerEnded:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ih(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N;a=new d1({}),a.$on("click",i[4]);let K=i[3]&&_1(i);return{c(){e=T("div"),t=O(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=O(),D(a.$$.fragment),s=O(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),w=O(),K&&K.c(),S=O(),y=T("div"),P=T("div"),v=De(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",b=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(P,"class","title svelte-kisfwc"),f(y,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(q,se){C(q,e,se),C(q,t,se),C(q,n,se),p(n,o),p(o,r),p(o,l),B(a,o,null),p(n,s),p(n,u),p(u,c),p(c,m),p(m,h),p(m,w),K&&K.m(m,null),p(u,S),p(u,y),p(y,P),p(P,v),g=!0,I||(N=me(u,"click",function(){Pi(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(q,[se]){i=q,i[3]?K?(K.p(i,se),se&8&&d(K,1)):(K=_1(i),K.c(),d(K,1),K.m(m,null)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),(!g||se&2&&b!==(b=`background-image: url('${i[1]}')`))&&f(m,"style",b),(!g||se&1)&&Qe(v,i[0])},i(q){g||(d(a.$$.fragment,q),d(K),g=!0)},o(q){_(a.$$.fragment,q),_(K),g=!1},d(q){q&&(k(e),k(t),k(n)),R(a),K&&K.d(),I=!1,N()}}}function nh(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,r=s.playNextVideo)},[n,o,r,l,a]}var $s=class extends U{constructor(e){super(),W(this,e,nh,ih,z,{title:0,thumb:1,playNextVideo:2},th)}},h1=$s;var ho=require("@vkontakte/videoplayer-core"),g1=require("@vkontakte/videoplayer-shared"),gn=require("@vkontakte/videoplayer-statistics");var ea=(i,e)=>Math.min(+(i+e).toFixed(2),1),ta=(i,e)=>Math.max(+(i-e).toFixed(2),0),br=(i,e,t)=>{let n=ea(e,t);e<1&&i.actions.internal.setVolume(n)},vr=(i,e,t)=>{let n=ta(e,t);e>0&&i.actions.internal.setVolume(n)};var _o=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function lh(i){Se(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function rh(i){let e,t,n,o,r,l=i[26].default,a=Ee(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=G("aria_label_video_player"))},m(s,u){C(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[me(e,"keyup",i[17]),me(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Le(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,tt(r)}}}function sh(i,e,t){var kt,bt;let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,{$$slots:v={},$$scope:g}=e,{isAds:I}=e,{hideContextMenu:N}=e,{toggleFullscreen:K}=e,{showHotKeyHelpers:q}=e,{showKeyMap:se}=e,{fakePlayButtonHandler:ne}=e,E=et(),ie=zt(),x=E.getLogger().createComponentLog("KeyboardControls component"),j=E.state.playbackState$;H(i,j,we=>t(31,o=we));let X=E.ads.playbackState;H(i,X,we=>t(30,n=we));let M=E.state.positionExact$;H(i,M,we=>t(41,b=we));let Q=E.state.duration$;H(i,Q,we=>t(40,w=we));let A=E.state.volume$;H(i,A,we=>t(44,P=we));let ee=E.ui.controls.disabledControls$;H(i,ee,we=>t(39,h=we));let Te=E.state.muted$;H(i,Te,we=>t(34,a=we));let je=E.state.currentSubtitle$;H(i,je,we=>t(33,l=we));let Ke=E.state.currentPlaybackRate$;H(i,Ke,we=>t(42,S=we));let Je=E.state.availablePlaybackRates$;H(i,Je,we=>t(43,y=we));let We=E.ui.contextMenu.openedByHotKey$,ye=E.ui.contextMenu.lastActiveElem$,J=E.ui.contextMenu.visible$,ve=E.ui.contextMenu.position$,He=E.state.isEnded$;H(i,He,we=>t(36,u=we));let Xe=E.ui.overlayContainer$;H(i,Xe,we=>t(32,r=we));let xe=(kt=E.callbacks)==null?void 0:kt.onAudioDoesNotExistHint,he=(bt=E.callbacks)==null?void 0:bt.onAudioDisabledHint,Be=E.state.isAudioAvailable$;H(i,Be,we=>t(35,s=we));let Ue=E.state.isAudioDisabled,it=E.state.isInteractiveTime$;H(i,it,we=>t(38,m=we));let{showInteractiveTimeIndicatorTooltip$:ke}=Dn();H(i,ke,we=>t(37,c=we));let Y=0,Ce=!0,ue,Ie=()=>ue==null?void 0:ue.focus(),Ye=we=>(we!==Ce&&(Ce=we,Y=0),Y+=1,(ie.controls.seekStepKeyboard+ie.controls.seekStepKeyboard*Y)/1e3),at=we=>{var lt;let pt=we.target,Nt=(lt=pt==null?void 0:pt.getAttribute("role"))==null?void 0:lt.includes("menuitem"),Mt=pt.classList.contains("btn"),ze=we.code;if(Mt&&ze==="Space")return;let Ut=ec.has(ze);if(Nt&&Ut)return;let _e=!$f.has(ze);if(we.ctrlKey&&_e||we.altKey&&_e||we.metaKey)return;let Vt=Nt&&ze==="Escape";tc.has(ze)||Vt||N();let Lt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,_t=I&&(n==="paused"||n==="playing"),ht=!_t&&!h.has("TIMELINE");if(Lt||_t)switch(x({message:`key down, code: ${ze}`}),ze){case"KeyJ":case"ArrowLeft":{if(!ht)break;if(we.ctrlKey||we.altKey){let Ae=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(Ae),Ae&&q({type:"EPISODE_PREV",text:Ae.text}),we.preventDefault()}else{let Ae=we.shiftKey?Ye(!1):ie.controls.seekStepKeyboard/1e3,mt=Math.max(b-Ae,0);b>0&&(E.actions.internal.seekTime(mt,gn.SeekAction.DOUBLE_TAP),q({type:"BACKWARD_SEEK",text:Ae.toString()}),we.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ht)break;if(we.ctrlKey||we.altKey){let Ae=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(Ae),Ae&&q({type:"EPISODE_NEXT",text:Ae.text}),we.preventDefault()}else{let Ae=we.shiftKey?Ye(!0):ie.controls.seekStepKeyboard/1e3,mt=Math.min(b+Ae,w);Math.round(b)<Math.round(w)&&(E.actions.internal.seekTime(mt,gn.SeekAction.DOUBLE_TAP),q({type:"FORWARD_SEEK",text:Ae.toString()}),we.preventDefault())}break}case"ArrowUp":{if(_o({isAudioDisabled:Ue,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:xe})){let Ae=P,mt=ie.controls.volumeStepKeyboard,Jt=Ae<=1;if(br(E,Ae,mt),Jt){let xt=Math.round(ea(Ae,mt)*100).toString();q({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xt}})}}we.preventDefault();break}case"ArrowDown":{if(_o({isAudioDisabled:Ue,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:xe})){let Ae=P,mt=ie.controls.volumeStepKeyboard,Jt=Ae>=0;if(vr(E,Ae,mt),Jt){let xt=Math.round(ta(Ae,mt)*100).toString();q({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xt}})}}we.preventDefault();break}case"Comma":{if(we.shiftKey){E.actions.internal.decrementPlaybackRate();let Ae=y.find(mt=>mt.value===S);q({type:"RATE_DOWN",text:Ae==null?void 0:Ae.displayValue}),we.preventDefault()}else{if(_t||o!==ho.PlaybackState.PAUSED)break;let Ae=Math.max(b-ie.controls.seekStepFrame/1e3,0);b>0&&(q({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Ae,gn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"Period":{if(we.shiftKey){E.actions.internal.incrementPlaybackRate();let Ae=y.find(mt=>mt.value===S);q({type:"RATE_UP",text:Ae==null?void 0:Ae.displayValue}),we.preventDefault()}else{if(_t||o!==ho.PlaybackState.PAUSED)break;let Ae=Math.min(b+ie.controls.seekStepFrame/1e3,w);b<w&&(q({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Ae,gn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&ke.set(!1),ne)ne();else{E.actions.internal.togglePlay();let Ae="PLAY";o===ho.PlaybackState.PAUSED?Ae="PAUSE":u&&(Ae="REPLAY"),q({type:Ae})}we.preventDefault();break;case"KeyM":{_o({isAudioDisabled:Ue,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:xe})&&(q({type:a?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),we.preventDefault();break}case"KeyF":K(),we.preventDefault();break;case"KeyC":E.actions.internal.toggleSubtitle(),l.value!=="off"?q({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):q({type:"SUBTITLES_OFF"}),we.preventDefault();break;case"KeyI":E.actions.internal.togglePictureInPicture(),we.preventDefault();break;case"Digit1":case"Numpad1":if(we.shiftKey){let Ae=Qc(r);ve.set(Ae),ye.set(pt),We.set(!0),J.set(!0),we.preventDefault();break}q(),E.actions.internal.seekToPercent(.1,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit2":case"Numpad2":q(),E.actions.internal.seekToPercent(.2,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit3":case"Numpad3":q(),E.actions.internal.seekToPercent(.3,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit4":case"Numpad4":q(),E.actions.internal.seekToPercent(.4,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit5":case"Numpad5":q(),E.actions.internal.seekToPercent(.5,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit6":case"Numpad6":q(),E.actions.internal.seekToPercent(.6,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit7":case"Numpad7":q(),E.actions.internal.seekToPercent(.7,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit8":case"Numpad8":q(),E.actions.internal.seekToPercent(.8,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit9":case"Numpad9":q(),E.actions.internal.seekToPercent(.9,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit0":case"Numpad0":q(),E.actions.internal.seekToPercent(0,gn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Slash":{we.shiftKey&&ie.features.hotKeyMapModal&&(se(),we.preventDefault());break}case"ShiftLeft":case"ShiftRight":we.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,g1.checkNever)(ze);break}},dt=we=>{let pt=we.code;if(we.ctrlKey||we.altKey||we.metaKey)return;let Nt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,Mt=I&&(n==="paused"||n==="playing");if(Nt||Mt)switch(pt){case"ShiftLeft":case"ShiftRight":Y=0;break}};function ut(we){pe[we?"unshift":"push"](()=>{ue=we,t(0,ue)})}return i.$$set=we=>{"isAds"in we&&t(18,I=we.isAds),"hideContextMenu"in we&&t(19,N=we.hideContextMenu),"toggleFullscreen"in we&&t(20,K=we.toggleFullscreen),"showHotKeyHelpers"in we&&t(21,q=we.showHotKeyHelpers),"showKeyMap"in we&&t(22,se=we.showKeyMap),"fakePlayButtonHandler"in we&&t(23,ne=we.fakePlayButtonHandler),"$$scope"in we&&t(25,g=we.$$scope)},[ue,j,X,M,Q,A,ee,Te,je,Ke,Je,He,Xe,Be,it,ke,at,dt,I,N,K,q,se,ne,Ie,g,v,ut]}var ia=class extends U{constructor(e){super(),W(this,e,sh,rh,z,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},lh,[-1,-1])}get focus(){return this.$$.ctx[24]}},b1=ia;function ah(i){Se(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 uh(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>',f(e,"class","container svelte-8nkw5s")},m(t,n){C(t,e,n)},p:de,i:de,o:de,d(t){t&&k(e)}}}var na=class extends U{constructor(e){super(),W(this,e,null,uh,z,{},ah)}},yr=na;function fh(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S=i[2].default,y=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=le(v,P[g]);return{c(){e=L("svg"),y&&y.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),l=L("filter"),a=L("feFlood"),s=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),w=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2422_111980"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","23"),f(l,"height","23"),f(l,"x",".5"),f(l,"y",".5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(g,I){C(g,e,I),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),b=!0},p(g,[I]){y&&y.p&&(!b||I&2)&&Ve(y,S,g,g[1],b?Me(S,g[1],I,null):Le(g[1]),null),be(e,v=Re(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function ch(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var oa=class extends U{constructor(e){super(),W(this,e,ch,fh,z,{})}},v1=oa;var Zn=require("@vkontakte/videoplayer-shared");function dh(i){Se(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 mh(i){let e,t,n,o,r,l,a,s,u,c,m,h,w=i[14].default,b=Ee(w,i,i[13],null);return{c(){var S,y,P,v,g,I;e=T("button"),b&&b.c(),f(e,"class",t="btn "+i[1]+" svelte-1anemql"),f(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S:null,f(e,"aria-hidden",r=(y=i[5])!=null?y:null),f(e,"aria-label",l=(P=i[6])!=null?P:null),f(e,"aria-keyshortcuts",a=(v=i[7])!=null?v:null),f(e,"aria-expanded",s=(g=i[8])!=null?g:null),f(e,"data-testid",u=(I=i[4])!=null?I:null),f(e,"tabindex",i[9])},m(S,y){C(S,e,y),b&&b.m(e,null),i[16](e),c=!0,m||(h=[me(e,"pointerdown",st(Bt(i[15]))),me(e,"click",st(Bt(function(){Pi(i[10]===Zn.noop?null:i[10])&&(i[10]===Zn.noop?null:i[10]).apply(this,arguments)}))),me(e,"focus",Bt(function(){Pi(i[11]===Zn.noop?null:i[11])&&(i[11]===Zn.noop?null:i[11]).apply(this,arguments)})),me(e,"blur",Bt(function(){Pi(i[12]===Zn.noop?null:i[12])&&(i[12]===Zn.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[y]){var P,v,g,I,N,K;i=S,b&&b.p&&(!c||y&8192)&&Ve(b,w,i,i[13],c?Me(w,i[13],y,null):Le(i[13]),null),(!c||y&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&f(e,"class",t),(!c||y&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||y&8&&o!==(o=(P=i[3])!=null?P:null))&&(e.disabled=o),(!c||y&32&&r!==(r=(v=i[5])!=null?v:null))&&f(e,"aria-hidden",r),(!c||y&64&&l!==(l=(g=i[6])!=null?g:null))&&f(e,"aria-label",l),(!c||y&128&&a!==(a=(I=i[7])!=null?I:null))&&f(e,"aria-keyshortcuts",a),(!c||y&256&&s!==(s=(N=i[8])!=null?N:null))&&f(e,"aria-expanded",s),(!c||y&16&&u!==(u=(K=i[4])!=null?K:null))&&f(e,"data-testid",u),(!c||y&512)&&f(e,"tabindex",i[9])},i(S){c||(d(b,S),c=!0)},o(S){_(b,S),c=!1},d(S){S&&k(e),b&&b.d(S),i[16](null),m=!1,tt(h)}}}function ph(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:w=void 0}=e,{tabIndex:b=0}=e,{click:S=Zn.noop}=e,{focus:y=Zn.noop}=e,{blur:P=Zn.noop}=e;function v(I){In.call(this,i,I)}function g(I){pe[I?"unshift":"push"](()=>{m=I,t(0,m)})}return i.$$set=I=>{"className"in I&&t(1,r=I.className),"style"in I&&t(2,l=I.style),"disabled"in I&&t(3,a=I.disabled),"testId"in I&&t(4,s=I.testId),"ariaHidden"in I&&t(5,u=I.ariaHidden),"ariaLabel"in I&&t(6,c=I.ariaLabel),"ref"in I&&t(0,m=I.ref),"ariaKeyShortCut"in I&&t(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&t(8,w=I.ariaExpanded),"tabIndex"in I&&t(9,b=I.tabIndex),"click"in I&&t(10,S=I.click),"focus"in I&&t(11,y=I.focus),"blur"in I&&t(12,P=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[m,r,l,a,s,u,c,h,w,b,S,y,P,o,n,v,g]}var la=class extends U{constructor(e){super(),W(this,e,ph,mh,z,{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},dh)}},gt=la;function _h(i){Se(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 y1(i){let e,t,n,o,r,l=i[2]&&w1(i);return{c(){e=T("div"),t=T("h3"),n=De(i[3]),o=O(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){C(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Qe(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=w1(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),ce())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&k(e),l&&l.d()}}}function w1(i){let e,t;return e=new gt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:G("hotkey_map_modal_close_btn_text"),$$slots:{default:[hh]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function hh(i){let e,t;return e=new v1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gh(i){let e,t,n,o,r,l,a=i[1]&&y1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=O(),o=T("div"),r=T("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){C(c,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=y1(c),a.c(),d(a,1),a.m(t,n)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!l||m&32)&&Ve(u,s,c,c[5],l?Me(s,c[5],m,null):Le(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&k(e),a&&a.d(),u&&u.d(c)}}}function bh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var ra=class extends U{constructor(e){super(),W(this,e,bh,gh,z,{onClose:0,showHeader:1,showCloseCross:2,title:3},_h)}},k1=ra;var vh=new Set(["BR"]),sa=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;vh.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function yh(i){Se(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 C1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function S1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function P1(i){let e,t,n=sa(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=O(),r=T("span"),a=De(l),s=O(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){C(u,e,c),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,c){c&1&&n!==(n=sa(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Qe(a,l)},d(u){u&&k(e)}}}function T1(i){let e,t,n=i[5]+"",o,r,l,a,s=It(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=P1(S1(i,s,c));return{c(){e=T("div"),t=T("h5"),o=De(n),r=O(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=O(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(l,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){C(c,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Qe(o,n),m&1){s=It(c[6]);let h;for(h=0;h<s.length;h+=1){let w=S1(c,s,h);u[h]?u[h].p(w,m):(u[h]=P1(w),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(c){c&&k(e),Wi(u,c)}}}function wh(i){let e,t=It(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=T1(C1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){C(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=It(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=C1(o,t,l);n[l]?n[l].p(a,r):(n[l]=T1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Wi(n,o)}}}function kh(i){let e,t;return e=new k1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[wh]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ch(i,e,t){let n,o=et(),{data:r,show:l}=o.ui.modals.hotKeyMap;return H(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var aa=class extends U{constructor(e){super(),W(this,e,Ch,kh,z,{},yh)}},I1=aa;var es=require("@vkontakte/videoplayer-shared");var Ho=require("@vkontakte/videoplayer-core");var pd=require("@vkontakte/videoplayer-core");var mk=require("@vkontakte/videoplayer-shared");function Sh(i){Se(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 Ph(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,l){C(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Le(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function Th(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var ua=class extends U{constructor(e){super(),W(this,e,Th,Ph,z,{},Sh)}},E1=ua;var rl=require("@vkontakte/videoplayer-core");function Ih(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Le(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Eh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var fa=class extends U{constructor(e){super(),W(this,e,Eh,Ih,z,{})}},M1=fa;function Mh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Le(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Vh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ca=class extends U{constructor(e){super(),W(this,e,Vh,Mh,z,{})}},V1=ca;function Lh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ah(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var da=class extends U{constructor(e){super(),W(this,e,Ah,Lh,z,{})}},L1=da;function Bh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Rh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ma=class extends U{constructor(e){super(),W(this,e,Rh,Bh,z,{})}},wr=ma;function Dh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Le(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Nh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var pa=class extends U{constructor(e){super(),W(this,e,Nh,Dh,z,{})}},kr=pa;var go=i=>{switch(i){case rl.VideoQuality.Q_720P:return L1;case rl.VideoQuality.Q_1080P:return wr;case rl.VideoQuality.Q_1440P:return kr;case rl.VideoQuality.Q_2160P:return M1;case rl.VideoQuality.Q_4320P:return V1}};function Oh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var _a=class extends U{constructor(e){super(),W(this,e,Fh,Oh,z,{})}},A1=_a;function Hh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),be(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Le(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ha=class extends U{constructor(e){super(),W(this,e,zh,Hh,z,{})}},B1=ha;function qh(i){Se(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function Uh(i){let e,t,n,o,r=i[1]&&R1(i);return n=new B1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=O(),D(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),F(e,"triple",i[2])},m(l,a){C(l,e,a),r&&r.m(e,null),p(e,t),B(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=R1(l),r.c(),d(r,1),r.m(e,t)):r&&(fe(),_(r,1,1,()=>{r=null}),ce());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&F(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&k(e),r&&r.d(),R(n)}}}function Kh(i){let e,t;return e=new A1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function R1(i){let e,t;return e=new E1({props:{$$slots:{default:[Wh]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wh(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=kn(o,r(i))),{c(){e&&D(e.$$.fragment),t=ot()},m(l,a){e&&B(e,l,a),C(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){fe();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(e=kn(o,r(l)),D(e.$$.fragment),d(e.$$.fragment,1),B(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&k(t),e&&R(e,l)}}}function Gh(i){let e,t,n,o,r=[Kh,Uh],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function jh(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=go(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[wr,kr].includes(n))},[o,n,l,r]}var ga=class extends U{constructor(e){super(),W(this,e,jh,Gh,z,{isMobile:0,currentQuality:3},qh)}},Cr=ga;function Qh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ba=class extends U{constructor(e){super(),W(this,e,Yh,Qh,z,{})}},Sr=ba;function Zh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var va=class extends U{constructor(e){super(),W(this,e,Xh,Zh,z,{})}},D1=va;function Jh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ya=class extends U{constructor(e){super(),W(this,e,xh,Jh,z,{})}},N1=ya;function $h(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Le(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var wa=class extends U{constructor(e){super(),W(this,e,eg,$h,z,{})}},O1=wa;function tg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ka=class extends U{constructor(e){super(),W(this,e,ig,tg,z,{})}},F1=ka;function ng(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ca=class extends U{constructor(e){super(),W(this,e,og,ng,z,{})}},H1=Ca;function lg(i){let e,t;return e=new H1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rg(i){let e,t;return e=new F1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function sg(i){let e,t,n,o,r=[rg,lg],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function ag(i,e,t){let n,{direction:o="left"}=e,r,l;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,r=["up","down"].includes(o)),t(0,l=["right","down"].includes(o));if(i.$$.dirty&1)e:t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Sa=class extends U{constructor(e){super(),W(this,e,ag,sg,z,{direction:3})}},Xn=Sa;function ug(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function fg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Pa=class extends U{constructor(e){super(),W(this,e,fg,ug,z,{})}},z1=Pa;function cg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(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"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ta=class extends U{constructor(e){super(),W(this,e,dg,cg,z,{})}},sl=Ta;function mg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ia=class extends U{constructor(e){super(),W(this,e,pg,mg,z,{})}},q1=Ia;function _g(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ea=class extends U{constructor(e){super(),W(this,e,hg,_g,z,{})}},U1=Ea;function gg(i){Se(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 K1(i,e,t){let n=i.slice();return n[142]=e[t],n}function W1(i,e,t){let n=i.slice();return n[145]=e[t],n}function G1(i,e,t){let n=i.slice();return n[148]=e[t],n}function j1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w=i[34]&&Q1(i),b=i[25]&&Y1(i),S=i[24]&&X1(i),y=i[23]&&J1(i),P=i[22]&&x1(i),v=i[21]&&$1(i),g=i[34]&&ed(i);return{c(){e=T("div"),w&&w.c(),t=O(),n=T("ul"),b&&b.c(),o=O(),S&&S.c(),r=O(),y&&y.c(),l=O(),P&&P.c(),a=O(),v&&v.c(),s=O(),g&&g.c(),f(n,"class","items svelte-5r0p3"),f(n,"role","menu"),f(n,"style",u=i[73]()),F(n,"items-mobile",i[34]),f(e,"class","menu svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34]),F(e,"hidden",!i[11])},m(I,N){C(I,e,N),w&&w.m(e,null),p(e,t),p(e,n),b&&b.m(n,null),p(n,o),S&&S.m(n,null),p(n,r),y&&y.m(n,null),p(n,l),P&&P.m(n,null),p(n,a),v&&v.m(n,null),p(n,s),g&&g.m(n,null),i[112](n),c=!0,m||(h=[me(e,"keydown",i[78]),me(e,"mouseenter",i[71]),me(e,"mouseleave",i[72])],m=!0)},p(I,N){I[34]?w?w.p(I,N):(w=Q1(I),w.c(),w.m(e,t)):w&&(w.d(1),w=null),I[25]?b?(b.p(I,N),N[0]&33554432&&d(b,1)):(b=Y1(I),b.c(),d(b,1),b.m(n,o)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),I[24]?S?(S.p(I,N),N[0]&16777216&&d(S,1)):(S=X1(I),S.c(),d(S,1),S.m(n,r)):S&&(fe(),_(S,1,1,()=>{S=null}),ce()),I[23]?y?(y.p(I,N),N[0]&8388608&&d(y,1)):(y=J1(I),y.c(),d(y,1),y.m(n,l)):y&&(fe(),_(y,1,1,()=>{y=null}),ce()),I[22]?P?(P.p(I,N),N[0]&4194304&&d(P,1)):(P=x1(I),P.c(),d(P,1),P.m(n,a)):P&&(fe(),_(P,1,1,()=>{P=null}),ce()),I[21]?v?(v.p(I,N),N[0]&2097152&&d(v,1)):(v=$1(I),v.c(),d(v,1),v.m(n,s)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),I[34]?g?(g.p(I,N),N[1]&8&&d(g,1)):(g=ed(I),g.c(),d(g,1),g.m(n,null)):g&&(fe(),_(g,1,1,()=>{g=null}),ce()),(!c||N[1]&8)&&F(n,"items-mobile",I[34]),(!c||N[1]&8)&&F(e,"menu-desktop",!I[34]),(!c||N[1]&8)&&F(e,"menu-mobile",I[34]),(!c||N[0]&2048)&&F(e,"hidden",!I[11])},i(I){c||(d(b),d(S),d(y),d(P),d(v),d(g),c=!0)},o(I){_(b),_(S),_(y),_(P),_(v),_(g),c=!1},d(I){I&&k(e),w&&w.d(),b&&b.d(),S&&S.d(),y&&y.d(),P&&P.d(),v&&v.d(),g&&g.d(),i[112](null),m=!1,tt(h)}}}function Q1(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${G("submenu_settings")}`,n=O(),o=T("div"),r=O(),l=T("div"),f(o,"class","close svelte-5r0p3"),f(e,"class","item menu-header svelte-5r0p3"),F(e,"item-mobile",i[34]),f(l,"class","menu-divider svelte-5r0p3")},m(u,c){C(u,e,c),p(e,t),p(e,n),p(e,o),C(u,r,c),C(u,l,c),a||(s=me(o,"click",st(i[57])),a=!0)},p(u,c){c[1]&8&&F(e,"item-mobile",u[34])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function Y1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;n=new Cr({});let b=i[33]&&!i[34]&&Z1(i);return{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_quality")}`,l=O(),a=T("div"),s=De(i[16]),u=O(),b&&b.c(),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=G("aria_label_menu_quality",{actual:i[27]})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[34])},m(S,y){C(S,e,y),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),b&&b.m(a,null),i[108](e),m=!0,h||(w=[me(e,"click",st(i[58])),me(e,"keydown",i[79])],h=!0)},p(S,y){(!m||y[0]&65536)&&Qe(s,S[16]),S[33]&&!S[34]?b?(b.p(S,y),y[1]&12&&d(b,1)):(b=Z1(S),b.c(),d(b,1),b.m(a,null)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),(!m||y[0]&134217728&&c!==(c=G("aria_label_menu_quality",{actual:S[27]})))&&f(e,"aria-label",c),(!m||y[1]&8)&&F(e,"item-mobile",S[34])},i(S){m||(d(n.$$.fragment,S),d(b),m=!0)},o(S){_(n.$$.fragment,S),_(b),m=!1},d(S){S&&k(e),R(n),b&&b.d(),i[108](null),h=!1,tt(w)}}}function Z1(i){let e,t,n;var o=i[33];function r(l){return{}}return o&&(t=kn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),f(e,"class","menu-valueIcon svelte-5r0p3")},m(l,a){C(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[1]&4&&o!==(o=l[33])){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=kn(o,r(l)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function X1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;return n=new O1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_playback_rate")}`,l=O(),a=T("div"),s=De(i[9]),u=De("x"),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=G("aria_label_menu_rate",{actual:i[28]})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[109](e),m=!0,h||(w=[me(e,"click",st(Bt(i[62]))),me(e,"keydown",i[82])],h=!0)},p(b,S){(!m||S[0]&512)&&Qe(s,b[9]),(!m||S[0]&268435456&&c!==(c=G("aria_label_menu_rate",{actual:b[28]})))&&f(e,"aria-label",c),(!m||S[1]&8)&&F(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),R(n),i[109](null),h=!1,tt(w)}}}function J1(i){let e,t,n,o,r,l,a,s=i[35].displayValue+"",u,c,m,h,w;return n=new Sr({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("subtitles_caption")}`,l=O(),a=T("div"),u=De(s),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=G("aria_label_menu_subtitle",{actual:i[35].displayValue})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[110](e),m=!0,h||(w=[me(e,"click",st(i[64])),me(e,"keydown",i[85])],h=!0)},p(b,S){(!m||S[1]&16)&&s!==(s=b[35].displayValue+"")&&Qe(u,s),(!m||S[1]&16&&c!==(c=G("aria_label_menu_subtitle",{actual:b[35].displayValue})))&&f(e,"aria-label",c),(!m||S[1]&8)&&F(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),R(n),i[110](null),h=!1,tt(w)}}}function x1(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new N1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_traffic_saving")}`,l=O(),a=T("div"),s=De(i[26]),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",u=G("aria_label_menu_traffic_saving",{actual:i[26]})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[34])},m(w,b){C(w,e,b),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[111](e),c=!0,m||(h=[me(e,"click",st(i[59])),me(e,"keydown",i[88])],m=!0)},p(w,b){(!c||b[0]&67108864)&&Qe(s,w[26]),(!c||b[0]&67108864&&u!==(u=G("aria_label_menu_traffic_saving",{actual:w[26]})))&&f(e,"aria-label",u),(!c||b[1]&8)&&F(e,"item-mobile",w[34])},i(w){c||(d(n.$$.fragment,w),c=!0)},o(w){_(n.$$.fragment,w),c=!1},d(w){w&&k(e),R(n),i[111](null),m=!1,tt(h)}}}function $1(i){let e,t,n,o,r,l,a,s,u;return n=new D1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=G("aria_label_menu_download")),F(e,"item-mobile",i[34])},m(c,m){C(c,e,m),p(e,t),B(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[me(e,"click",st(i[67])),me(e,"keydown",i[91])],s=!0)},p(c,m){(!a||m[1]&8)&&F(e,"item-mobile",c[34])},i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,tt(u)}}}function ed(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v=i[37].showSupport&&bg(i);return o=new q1({}),m=new U1({}),{c(){v&&v.c(),e=O(),t=T("li"),n=T("div"),D(o.$$.fragment),r=O(),l=T("div"),l.textContent=`${G("menu_copy_debug")}`,s=O(),u=T("li"),c=T("div"),D(m.$$.fragment),h=O(),w=T("div"),w.textContent=`${G("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-5r0p3"),f(l,"class","menu-title svelte-5r0p3"),f(t,"class","item item-mobile svelte-5r0p3"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=G("menu_copy_debug")),f(c,"class","menu-icon-wrapper svelte-5r0p3"),f(w,"class","menu-title svelte-5r0p3"),f(u,"class","item item-mobile svelte-5r0p3"),f(u,"role","menuitem"),f(u,"tabindex","0"),f(u,"aria-label",b=i[36]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"))},m(g,I){v&&v.m(g,I),C(g,e,I),C(g,t,I),p(t,n),B(o,n,null),p(t,r),p(t,l),C(g,s,I),C(g,u,I),p(u,c),B(m,c,null),p(u,h),p(u,w),S=!0,y||(P=[me(t,"click",st(i[69])),me(t,"keydown",i[93]),me(u,"click",st(i[70])),me(u,"keydown",i[94])],y=!0)},p(g,I){g[37].showSupport&&v.p(g,I),(!S||I[1]&32&&b!==(b=g[36]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable")))&&f(u,"aria-label",b)},i(g){S||(d(v),d(o.$$.fragment,g),d(m.$$.fragment,g),S=!0)},o(g){_(v),_(o.$$.fragment,g),_(m.$$.fragment,g),S=!1},d(g){g&&(k(e),k(t),k(s),k(u)),v&&v.d(g),R(o),R(m),y=!1,tt(P)}}}function bg(i){let e,t,n,o,r,l,a,s,u;return n=new z1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(e,"class","item item-mobile svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`)},m(c,m){C(c,e,m),p(e,t),B(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[me(e,"click",st(i[68])),me(e,"keydown",i[92])],s=!0)},p:de,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,tt(u)}}}function td(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b;n=new Xn({props:{direction:"left"}});let S=It(i[8]),y=[];for(let v=0;v<S.length;v+=1)y[v]=od(G1(i,S,v));let P=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("submenu_quality")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let g=0;g<y.length;g+=1)y[g].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),F(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-5r0p3"),f(c,"class","items svelte-5r0p3"),f(c,"role","menu"),f(c,"style",m=i[73]((v=i[17])==null?void 0:v.clientHeight,!0)),F(c,"items-mobile",i[34]),f(e,"class","menu menu-subList svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),B(n,t,null),p(t,o),p(t,r),i[113](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(c,null);i[116](c),h=!0,w||(b=[me(t,"click",st(i[66])),me(c,"keydown",i[80])],w=!0)},p(v,g){var I;if((!h||g[1]&8)&&F(t,"item-mobile",v[34]),g[0]&256|g[1]&536870920|g[2]&524288){S=It(v[8]);let N;for(N=0;N<S.length;N+=1){let K=G1(v,S,N);y[N]?(y[N].p(K,g),d(y[N],1)):(y[N]=od(K),y[N].c(),d(y[N],1),y[N].m(c,null))}for(fe(),N=S.length;N<y.length;N+=1)P(N);ce()}(!h||g[0]&131072&&m!==(m=v[73]((I=v[17])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&8)&&F(c,"items-mobile",v[34]),(!h||g[1]&8)&&F(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&F(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(y[g]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let g=0;g<y.length;g+=1)_(y[g]);h=!1},d(v){v&&k(e),R(n),i[113](null),Wi(y,v),i[116](null),w=!1,tt(b)}}}function id(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function nd(i){let e,t,n;var o=go(i[148].value);function r(l){return{}}return o&&(t=kn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-5r0p3")},m(l,a){C(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[0]&256&&o!==(o=go(l[148].value))){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=kn(o,r(l)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function od(i){let e,t,n,o=i[148].displayValue+"",r,l,a=!i[34]&&go(i[148].value),s,u,c,m,h,w,b=i[148].selected&&id(i),S=a&&nd(i);function y(){return i[114](i[148])}function P(...v){return i[115](i[148],...v)}return{c(){e=T("li"),b&&b.c(),t=O(),n=T("div"),r=De(o),l=O(),S&&S.c(),s=O(),f(n,"class","svelte-5r0p3"),F(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",u=i[148].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[148].displayValue),F(e,"item-mobile",i[34])},m(v,g){C(v,e,g),b&&b.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),S&&S.m(e,null),p(e,s),m=!0,h||(w=[me(e,"click",st(y)),me(e,"keydown",P)],h=!0)},p(v,g){i=v,i[148].selected?b?g[0]&256&&d(b,1):(b=id(i),b.c(),d(b,1),b.m(e,t)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),(!m||g[0]&256)&&o!==(o=i[148].displayValue+"")&&Qe(r,o),(!m||g[1]&8)&&F(n,"quality-title-mobile",i[34]),g[0]&256|g[1]&8&&(a=!i[34]&&go(i[148].value)),a?S?(S.p(i,g),g[0]&256|g[1]&8&&d(S,1)):(S=nd(i),S.c(),d(S,1),S.m(e,s)):S&&(fe(),_(S,1,1,()=>{S=null}),ce()),(!m||g[0]&256&&u!==(u=i[148].value))&&f(e,"data-value",u),(!m||g[0]&256&&c!==(c=i[148].displayValue))&&f(e,"aria-label",c),(!m||g[1]&8)&&F(e,"item-mobile",i[34])},i(v){m||(d(b),d(S),m=!0)},o(v){_(b),_(S),m=!1},d(v){v&&k(e),b&&b.d(),S&&S.d(),h=!1,tt(w)}}}function ld(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b;n=new Xn({props:{direction:"left"}});let S=It(i[7]),y=[];for(let v=0;v<S.length;v+=1)y[v]=sd(W1(i,S,v));let P=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("submenu_playback_rate")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let g=0;g<y.length;g+=1)y[g].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),F(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-5r0p3"),f(c,"class","items svelte-5r0p3"),f(c,"role","menu"),f(c,"style",m=i[73]((v=i[18])==null?void 0:v.clientHeight,!0)),F(c,"items-mobile",i[34]),f(e,"class","menu menu-subList svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),B(n,t,null),p(t,o),p(t,r),i[117](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(c,null);i[120](c),h=!0,w||(b=[me(t,"click",st(i[66])),me(c,"keydown",i[83])],w=!0)},p(v,g){var I;if((!h||g[1]&8)&&F(t,"item-mobile",v[34]),g[0]&128|g[1]&8|g[2]&4194306){S=It(v[7]);let N;for(N=0;N<S.length;N+=1){let K=W1(v,S,N);y[N]?(y[N].p(K,g),d(y[N],1)):(y[N]=sd(K),y[N].c(),d(y[N],1),y[N].m(c,null))}for(fe(),N=S.length;N<y.length;N+=1)P(N);ce()}(!h||g[0]&262144&&m!==(m=v[73]((I=v[18])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&8)&&F(c,"items-mobile",v[34]),(!h||g[1]&8)&&F(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&F(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(y[g]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let g=0;g<y.length;g+=1)_(y[g]);h=!1},d(v){v&&k(e),R(n),i[117](null),Wi(y,v),i[120](null),w=!1,tt(b)}}}function rd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function sd(i){let e,t,n,o=i[145].displayValue+"",r,l,a,s,u,c,m,h=i[145].selected&&rd(i);function w(){return i[118](i[145])}function b(...S){return i[119](i[145],...S)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=De(o),l=O(),f(n,"class","svelte-5r0p3"),F(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",a=i[145].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[145].displayValue),F(e,"item-mobile",i[34])},m(S,y){C(S,e,y),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[me(e,"click",st(w)),me(e,"keydown",b)],c=!0)},p(S,y){i=S,i[145].selected?h?y[0]&128&&d(h,1):(h=rd(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),ce()),(!u||y[0]&128)&&o!==(o=i[145].displayValue+"")&&Qe(r,o),(!u||y[1]&8)&&F(n,"quality-title-mobile",i[34]),(!u||y[0]&128&&a!==(a=i[145].value))&&f(e,"data-value",a),(!u||y[0]&128&&s!==(s=i[145].displayValue))&&f(e,"aria-label",s),(!u||y[1]&8)&&F(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),c=!1,tt(m)}}}function ad(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,ie,x,j;n=new Xn({props:{direction:"left"}});let X=!i[5]&&ud(i),M=i[5]&&fd(i);return{c(){var Q;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("submenu_traffic_saving")}`,a=O(),s=T("div"),u=O(),c=T("div"),m=T("ul"),h=T("li"),X&&X.c(),w=O(),b=T("div"),b.textContent=`${G("traffic_saving_disable")}`,y=O(),P=T("li"),M&&M.c(),v=O(),g=T("div"),g.textContent=`${G("traffic_saving_enable")}`,N=O(),K=T("div"),q=O(),se=T("div"),ne=T("span"),ne.textContent=`${G("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),F(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-5r0p3"),f(b,"class","svelte-5r0p3"),F(b,"quality-title-mobile",i[34]),f(h,"class","item item-traffic-saving svelte-5r0p3"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",S=G("aria_label_submenu_traffic_saving_off")),F(h,"item-mobile",i[34]),f(g,"class","svelte-5r0p3"),F(g,"quality-title-mobile",i[34]),f(P,"class","item item-traffic-saving svelte-5r0p3"),f(P,"role","menuitem"),f(P,"tabindex","0"),f(P,"aria-label",I=`${G("aria_label_submenu_traffic_saving_on")}. ${G("traffic_saving_helper_text")}`),F(P,"item-mobile",i[34]),f(m,"class","items svelte-5r0p3"),f(m,"role","menu"),F(m,"items-mobile",i[34]),f(K,"class","menu-divider svelte-5r0p3"),f(ne,"class","svelte-5r0p3"),f(se,"class","item item-helper-text svelte-5r0p3"),F(se,"item-mobile",i[34]),f(c,"style",E=i[73]((Q=i[19])==null?void 0:Q.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34])},m(Q,A){C(Q,e,A),p(e,t),B(n,t,null),p(t,o),p(t,r),i[121](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),X&&X.m(h,null),p(h,w),p(h,b),p(m,y),p(m,P),M&&M.m(P,null),p(P,v),p(P,g),i[126](m),p(c,N),p(c,K),p(c,q),p(c,se),p(se,ne),ie=!0,x||(j=[me(t,"click",st(i[66])),me(h,"click",st(i[122])),me(h,"keydown",i[123]),me(P,"click",st(i[124])),me(P,"keydown",i[125]),me(m,"keydown",i[89])],x=!0)},p(Q,A){var ee;(!ie||A[1]&8)&&F(t,"item-mobile",Q[34]),Q[5]?X&&(fe(),_(X,1,1,()=>{X=null}),ce()):X?A[0]&32&&d(X,1):(X=ud(Q),X.c(),d(X,1),X.m(h,w)),(!ie||A[1]&8)&&F(b,"quality-title-mobile",Q[34]),(!ie||A[1]&8)&&F(h,"item-mobile",Q[34]),Q[5]?M?A[0]&32&&d(M,1):(M=fd(Q),M.c(),d(M,1),M.m(P,v)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),(!ie||A[1]&8)&&F(g,"quality-title-mobile",Q[34]),(!ie||A[1]&8)&&F(P,"item-mobile",Q[34]),(!ie||A[1]&8)&&F(m,"items-mobile",Q[34]),(!ie||A[1]&8)&&F(se,"item-mobile",Q[34]),(!ie||A[0]&524288&&E!==(E=Q[73]((ee=Q[19])==null?void 0:ee.clientHeight,!0)))&&f(c,"style",E),(!ie||A[1]&8)&&F(e,"menu-desktop",!Q[34]),(!ie||A[1]&8)&&F(e,"menu-mobile",Q[34])},i(Q){ie||(d(n.$$.fragment,Q),d(X),d(M),ie=!0)},o(Q){_(n.$$.fragment,Q),_(X),_(M),ie=!1},d(Q){Q&&k(e),R(n),i[121](null),X&&X.d(),M&&M.d(),i[126](null),x=!1,tt(j)}}}function ud(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function fd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function cd(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new Xn({props:{direction:"left"}});let w=It(i[6]),b=[];for(let y=0;y<w.length;y+=1)b[y]=md(K1(i,w,y));let S=y=>_(b[y],1,1,()=>{b[y]=null});return{c(){var y;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("subtitles_caption")}`,a=O(),s=T("ul");for(let P=0;P<b.length;P+=1)b[P].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),F(t,"item-mobile",i[34]),f(s,"class","items svelte-5r0p3"),f(s,"role","menu"),f(s,"style",u=i[73]((y=i[20])==null?void 0:y.clientHeight,!0)),F(s,"items-mobile",i[34]),f(e,"class","menu menu-subList menu-subList-subtitles svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34])},m(y,P){C(y,e,P),p(e,t),B(n,t,null),p(t,o),p(t,r),i[127](t),p(e,a),p(e,s);for(let v=0;v<b.length;v+=1)b[v]&&b[v].m(s,null);i[130](s),c=!0,m||(h=[me(t,"click",st(i[66])),me(s,"keydown",i[86])],m=!0)},p(y,P){var v;if((!c||P[1]&8)&&F(t,"item-mobile",y[34]),P[0]&64|P[1]&8|P[2]&33554440){w=It(y[6]);let g;for(g=0;g<w.length;g+=1){let I=K1(y,w,g);b[g]?(b[g].p(I,P),d(b[g],1)):(b[g]=md(I),b[g].c(),d(b[g],1),b[g].m(s,null))}for(fe(),g=w.length;g<b.length;g+=1)S(g);ce()}(!c||P[0]&1048576&&u!==(u=y[73]((v=y[20])==null?void 0:v.clientHeight,!0)))&&f(s,"style",u),(!c||P[1]&8)&&F(s,"items-mobile",y[34]),(!c||P[1]&8)&&F(e,"menu-desktop",!y[34]),(!c||P[1]&8)&&F(e,"menu-mobile",y[34])},i(y){if(!c){d(n.$$.fragment,y);for(let P=0;P<w.length;P+=1)d(b[P]);c=!0}},o(y){_(n.$$.fragment,y),b=b.filter(Boolean);for(let P=0;P<b.length;P+=1)_(b[P]);c=!1},d(y){y&&k(e),R(n),i[127](null),Wi(b,y),i[130](null),m=!1,tt(h)}}}function dd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function md(i){let e,t,n,o=i[142].displayValue+"",r,l,a,s,u,c,m,h=i[142].selected&&dd(i);function w(){return i[128](i[142])}function b(...S){return i[129](i[142],...S)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=De(o),l=O(),f(n,"class","svelte-5r0p3"),F(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",a=i[142].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[142].displayValue),F(e,"item-mobile",i[34])},m(S,y){C(S,e,y),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[me(e,"click",st(w)),me(e,"keydown",b)],c=!0)},p(S,y){i=S,i[142].selected?h?y[0]&64&&d(h,1):(h=dd(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),ce()),(!u||y[0]&64)&&o!==(o=i[142].displayValue+"")&&Qe(r,o),(!u||y[1]&8)&&F(n,"quality-title-mobile",i[34]),(!u||y[0]&64&&a!==(a=i[142].value))&&f(e,"data-value",a),(!u||y[0]&64&&s!==(s=i[142].displayValue))&&f(e,"aria-label",s),(!u||y[1]&8)&&F(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),c=!1,tt(m)}}}function vg(i){let e,t,n,o,r,l,a=i[10]&&j1(i),s=i[12]&&td(i),u=i[13]&&ld(i),c=i[15]&&ad(i),m=i[14]&&cd(i);return{c(){e=T("div"),a&&a.c(),t=O(),s&&s.c(),n=O(),u&&u.c(),o=O(),c&&c.c(),r=O(),m&&m.c(),f(e,"class","svelte-5r0p3"),F(e,"hidden",!i[10]),F(e,"container-mobile",i[34])},m(h,w){C(h,e,w),a&&a.m(e,null),p(e,t),s&&s.m(e,null),p(e,n),u&&u.m(e,null),p(e,o),c&&c.m(e,null),p(e,r),m&&m.m(e,null),l=!0},p(h,w){h[10]?a?(a.p(h,w),w[0]&1024&&d(a,1)):(a=j1(h),a.c(),d(a,1),a.m(e,t)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),h[12]?s?(s.p(h,w),w[0]&4096&&d(s,1)):(s=td(h),s.c(),d(s,1),s.m(e,n)):s&&(fe(),_(s,1,1,()=>{s=null}),ce()),h[13]?u?(u.p(h,w),w[0]&8192&&d(u,1)):(u=ld(h),u.c(),d(u,1),u.m(e,o)):u&&(fe(),_(u,1,1,()=>{u=null}),ce()),h[15]?c?(c.p(h,w),w[0]&32768&&d(c,1)):(c=ad(h),c.c(),d(c,1),c.m(e,r)):c&&(fe(),_(c,1,1,()=>{c=null}),ce()),h[14]?m?(m.p(h,w),w[0]&16384&&d(m,1)):(m=cd(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),ce()),(!l||w[0]&1024)&&F(e,"hidden",!h[10]),(!l||w[1]&8)&&F(e,"container-mobile",h[34])},i(h){l||(d(a),d(s),d(u),d(c),d(m),l=!0)},o(h){_(a),_(s),_(u),_(c),_(m),l=!1},d(h){h&&k(e),a&&a.d(),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d()}}}var yg=18;function wg(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,{ref:ie=void 0}=e,{supportLink:x}=e,{playerControlsHeight:j=0}=e,{returnFocus:X}=e,M=et(),Q=zt(),A=M.state.currentQuality$;H(i,A,ae=>t(102,S=ae));let ee=M.state.availableQualities$;H(i,ee,ae=>t(8,w=ae));let Te=M.state.autoQualityLimitingAvailable$;H(i,Te,ae=>t(106,g=ae));let je=M.state.isAutoQualityEnabled$;H(i,je,ae=>t(103,y=ae));let Ke=M.state.currentPlaybackRate$;H(i,Ke,ae=>t(9,b=ae));let Je=M.state.availablePlaybackRates$;H(i,Je,ae=>t(7,m=ae));let We=M.state.currentSubtitle$;H(i,We,ae=>t(35,ne=ae));let ye=M.state.availableSubtitlesList$;H(i,ye,ae=>t(6,u=ae));let J=M.state.canDownload,ve=M.state.hasMpegSources$;H(i,ve,ae=>t(107,I=ae));let He=M.ui.settingsMenuVisible;H(i,He,ae=>t(10,se=ae));let Xe=M.ui.settingsMenuOpenedByKeyboard;H(i,Xe,ae=>t(132,o=ae));let xe=M.ui.isMobile;H(i,xe,ae=>t(34,r=ae));let he=M.ui.mobileNotReportControlHidden$;H(i,he,ae=>t(104,P=ae));let Be=M.state.canChangePlaybackSpeed$;H(i,Be,ae=>t(105,v=ae));let Ue=M.ui.isFullscreen;H(i,Ue,ae=>t(135,q=ae));let it=M.state.trafficSavingEnabled$;H(i,it,ae=>t(5,a=ae));let ke=M.ui.playerSize;H(i,ke,ae=>t(134,K=ae));let Y=M.ui.debugPanelVisible;H(i,Y,ae=>t(36,E=ae));let Ce=M.ui.playerSize;H(i,Ce,ae=>t(133,N=ae));let ue=M.state.isInteractiveTime$,Ie=M.actions.internal.downloadVideo,Ye=M.actions.internal.closeSettingsMenu,at=!0,dt=!1,ut=!1,kt=!1,bt=!1,we=!1;function pt(){o||X==null||X(),Ye(),we=!1}function Nt(){t(11,at=!1),t(12,dt=!0)}function Mt(){t(11,at=!1),t(15,bt=!0)}function ze(ae){M.actions.internal.setQuality(ae),pt()}function Ut(ae){M.actions.internal.setTrafficSavingEnabled(ae),pt()}function _e(){t(11,at=!1),t(13,ut=!0)}function Vt(ae){M.actions.internal.setPlaybackRate(ae),pt()}function Lt(){t(11,at=!1),t(14,kt=!0)}function _t(ae){M.actions.internal.setSubtitle(ae),pt()}function ht(){t(11,at=!0),t(12,dt=!1),t(13,ut=!1),t(14,kt=!1),t(15,bt=!1)}function lt(){Ie(),pt()}function Ae(){window.open(x,"_blank"),pt(),M.actions.internal.pause()}function mt(){Tl(M.actions.internal.getDebugTextData()),pt()}function Jt(){Y.set(!0),pt()}function xt(){we=!0}function $i(){we=!1}function dn(ae,ct,ii){if(!ae)return"...";let ai=ct.find(Gt=>Gt.value===ae),qi=ai?ai.displayValue:ae;return ii?ae===pd.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:qi}):qi}let pi,_i,Ii,ni,hi;function en(ae=0,ct=!1){return r&&q&&ct?`max-height: ${Math.round(K.height*.6)}px`:r?"":`max-height: ${N.height-yg-ae-j}px; overflow: auto;`}let Ei,Mi,gi,Vi,bi,Li,Ai,Ft,Kt,Ht,vi=Ne(!1);H(i,vi,ae=>t(101,h=ae));let Zt,yi,oi=Ne(!1);H(i,oi,ae=>t(100,c=ae));let ui,vt,Wt=Ne(!1);H(i,Wt,ae=>t(99,s=ae));let St,li,wi=Ne(!1);H(i,wi,ae=>t(98,l=ae));let bn=ae=>{pr(ae,Ye)},tn=async ae=>{El(ae,Nt,()=>{let ct=w.findIndex(ii=>ii.selected);return Ht.childNodes[ct]})},ri=async ae=>{Ml(ae,ht,vi,Ye)},fi=(ae,ct)=>{xi(ae,()=>ze(ct))},Bi=async ae=>{El(ae,_e,()=>{let ct=m.findIndex(ii=>ii.selected);return yi.childNodes[ct]})},Gi=async ae=>{Ml(ae,ht,oi,Ye)},$t=(ae,ct)=>{xi(ae,()=>Vt(ct))},At=async ae=>{El(ae,Lt,()=>{let ct=u.findIndex(ii=>ii.selected);return vt.childNodes[ct]})},Ri=async ae=>{Ml(ae,ht,Wt,Ye)},nn=(ae,ct)=>{xi(ae,()=>_t(ct))},ci=async ae=>{El(ae,Mt,()=>{let ct=a?2:0;return li.childNodes[ct]})},on=async ae=>{Ml(ae,ht,wi,Ye)},ki=(ae,ct)=>{xi(ae,()=>Ut(ct))},mn=ae=>{xi(ae,()=>lt())},ln=ae=>{xi(ae,()=>Ae())},pn=ae=>{xi(ae,()=>mt())},ji=ae=>{xi(ae,()=>Jt())};Rt(()=>{let ae=ue.subscribe(ct=>{ct&&!r&&!we&&!o&&pt()});return()=>{ae()}});function Di(ae){pe[ae?"unshift":"push"](()=>{Kt=ae,t(1,Kt)})}function ei(ae){pe[ae?"unshift":"push"](()=>{Zt=ae,t(2,Zt)})}function si(ae){pe[ae?"unshift":"push"](()=>{ui=ae,t(3,ui)})}function Ci(ae){pe[ae?"unshift":"push"](()=>{St=ae,t(4,St)})}function Qi(ae){pe[ae?"unshift":"push"](()=>{ie=ae,t(0,ie)})}function Yi(ae){pe[ae?"unshift":"push"](()=>{_i=ae,t(17,_i)})}let Si=ae=>ze(ae.value),Ni=(ae,ct)=>fi(ct,ae.value);function Oi(ae){pe[ae?"unshift":"push"](()=>{Ht=ae,t(29,Ht)})}function Ze(ae){pe[ae?"unshift":"push"](()=>{Ii=ae,t(18,Ii)})}let Zi=ae=>Vt(ae.value),Xt=(ae,ct)=>$t(ct,ae.value);function qe(ae){pe[ae?"unshift":"push"](()=>{yi=ae,t(30,yi)})}function Fi(ae){pe[ae?"unshift":"push"](()=>{ni=ae,t(19,ni)})}let rn=()=>Ut(!1),Xi=ae=>ki(ae,!1),Hi=()=>Ut(!0),_n=ae=>ki(ae,!0);function zi(ae){pe[ae?"unshift":"push"](()=>{li=ae,t(32,li)})}function sn(ae){pe[ae?"unshift":"push"](()=>{hi=ae,t(20,hi)})}let ti=ae=>_t(ae),an=(ae,ct)=>nn(ct,ae);function di(ae){pe[ae?"unshift":"push"](()=>{vt=ae,t(31,vt)})}return i.$$set=ae=>{"ref"in ae&&t(0,ie=ae.ref),"supportLink"in ae&&t(95,x=ae.supportLink),"playerControlsHeight"in ae&&t(96,j=ae.playerControlsHeight),"returnFocus"in ae&&t(97,X=ae.returnFocus)},i.$$.update=()=>{var ae;if(i.$$.dirty[0]&1024)e:se&&(t(11,at=!0),t(12,dt=!1),t(13,ut=!1),t(14,kt=!1),t(15,bt=!1));if(i.$$.dirty[3]&512)e:t(33,n=go(S));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,pi=dn(S,w,y));if(i.$$.dirty[3]&18432)e:t(21,Ei=J&&I&&!P);if(i.$$.dirty[3]&10240)e:t(22,Mi=Q.features.trafficSaving&&!P&&g);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,gi=u.length>0&&!P);if(i.$$.dirty[3]&6144)e:t(24,Vi=!!v&&!P);if(i.$$.dirty[3]&2048)e:t(25,bi=!P);if(i.$$.dirty[0]&32)e:t(26,Li=a?G("traffic_saving_on"):G("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,Ai=y?G("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,Ft=(ae=m.find(ct=>ct.value===b))==null?void 0:ae.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:Il(Kt,vi,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:Il(Zt,oi,c);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:Il(ui,Wt,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:Il(St,wi,l)},[ie,Kt,Zt,ui,St,a,u,m,w,b,se,at,dt,ut,kt,bt,pi,_i,Ii,ni,hi,Ei,Mi,gi,Vi,bi,Li,Ai,Ft,Ht,yi,vt,li,n,r,ne,E,Q,A,ee,Te,je,Ke,Je,We,ye,ve,He,Xe,xe,he,Be,Ue,it,ke,Y,Ce,pt,Nt,Mt,ze,Ut,_e,Vt,Lt,_t,ht,lt,Ae,mt,Jt,xt,$i,en,vi,oi,Wt,wi,bn,tn,ri,fi,Bi,Gi,$t,At,Ri,nn,ci,on,ki,mn,ln,pn,ji,x,j,X,l,s,c,h,S,y,P,v,g,I,Di,ei,si,Ci,Qi,Yi,Si,Ni,Oi,Ze,Zi,Xt,qe,Fi,rn,Xi,Hi,_n,zi,sn,ti,an,di]}var Ma=class extends U{constructor(e){super(),W(this,e,wg,vg,z,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},gg,[-1,-1,-1,-1,-1])}},Pr=Ma;function kg(i){Se(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Cg(i){let e,t,n;return t=new Cr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),D(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Sg(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Cg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Pg(i,e,t){let n,o,r,{ref:l=void 0}=e,a=et(),s=a.state.currentQuality$;H(i,s,S=>t(4,r=S));let u=a.ui.settingsMenuVisible;H(i,u,S=>t(1,n=S));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;H(i,m,S=>t(3,o=S));let h;function w(S){let y=nl(S);c(y)}function b(S){l=S,t(0,l)}return i.$$set=S=>{"ref"in S&&t(0,l=S.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?G("tooltip_settings_on"):G("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,w,b]}var Va=class extends U{constructor(e){super(),W(this,e,Pg,Sg,z,{ref:0},kg)}},Ll=Va;function Tg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var La=class extends U{constructor(e){super(),W(this,e,Ig,Tg,z,{})}},_d=La;function Eg(i){let e,t;return e=new Sr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mg(i){let e,t;return e=new _d({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vg(i){let e,t,n,o,r=[Mg,Eg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Lg(i){let e,t;return e=new gt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Yn.KeyC,$$slots:{default:[Vg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ag(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?G("tooltip_subtitles_on"):G("tooltip_subtitles_off"))},[n,o,r]}var Aa=class extends U{constructor(e){super(),W(this,e,Ag,Lg,z,{isSubtitlesEnabled:0,click:1})}},hd=Aa;function Bg(i){Se(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 gd(i){let e,t;return{c(){e=T("span"),t=De(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&8&&Qe(t,n[3])},d(n){n&&k(e)}}}function Rg(i){let e,t,n,o,r=i[2]&&gd(i);return{c(){e=T("div"),t=T("span"),n=De(i[4]),o=O(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),F(e,"mobile",i[1])},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Qe(n,l[4]),l[2]?r?r.p(l,a):(r=gd(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&F(e,"mobile",l[1])},i:de,o:de,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function Dg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function c(m){pe[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=En(o));if(i.$$.dirty&64)e:t(4,u=En(r))},[a,n,l,s,u,o,r,c]}var Ba=class extends U{constructor(e){super(),W(this,e,Dg,Rg,z,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Bg)}},Tr=Ba;var no=require("@vkontakte/videoplayer-shared");function Ng(i){Se(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 Og(i){let e,t,n,o,r,l;return{c(){e=L("svg"),t=L("g"),n=L("path"),o=L("path"),r=L("path"),f(n,"class","wave2 svelte-1n5yyua"),f(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"),f(o,"class","wave1 svelte-1n5yyua"),f(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"),f(r,"class","cross svelte-1n5yyua"),f(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"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",l="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,s){C(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&f(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&f(e,"data-testid",l)},i:de,o:de,d(a){a&&k(e)}}}function Fg(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{if(i.$$.dirty&6)e:t(0,l=r(n,o))},[l,n,o]}var Ra=class extends U{constructor(e){super(),W(this,e,Fg,Og,z,{volume:1,muted:2},Ng)}},Fo=Ra;var On=require("@vkontakte/videoplayer-shared");var wd=require("@vkontakte/videoplayer-shared");var yd=require("@vkontakte/videoplayer-shared");function Hg(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","overlay")},m(r,l){C(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Le(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function zg(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=et().ui.overlayContainer$;H(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Rt(()=>(c(n),()=>u(n)));function m(h){pe[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:c(n)},[s,a,n,r,o,m]}var Da=class extends U{constructor(e){super(),W(this,e,zg,Hg,z,{})}},bd=Da;function qg(i){Se(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 vd(i){let e,t;return e=new bd({props:{$$slots:{default:[Ug]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ug(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=De(i[1]),o=O(),r=T("div"),f(t,"class","content svelte-tny135"),f(r,"class","tooltip-pointer svelte-tny135"),f(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),F(r,"bottom-placement-pointer",!i[8]),f(e,"class","tooltip svelte-tny135"),f(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),F(e,"active",i[0])},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Qe(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&f(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&f(e,"style",a),u&1&&F(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function Kg(i){let e,t,n,o,r,l,a=i[18].default,s=Ee(a,i,i[21],null),u=i[1]&&vd(i);return{c(){e=T("div"),s&&s.c(),t=O(),u&&u.c(),n=ot(),f(e,"class","tooltip-wrapper svelte-tny135"),F(e,"full-width",i[2])},m(c,m){C(c,e,m),s&&s.m(e,null),i[19](e),C(c,t,m),u&&u.m(c,m),C(c,n,m),o=!0,r||(l=[me(e,"mouseenter",i[12]),me(e,"mousemove",i[12]),me(e,"mouseleave",i[13]),me(e,"mousedown",i[13]),me(e,"mouseup",i[12])],r=!0)},p(c,[m]){s&&s.p&&(!o||m&2097152)&&Ve(s,a,c,c[21],o?Me(a,c[21],m,null):Le(c[21]),null),(!o||m&4)&&F(e,"full-width",c[2]),c[1]?u?(u.p(c,m),m&2&&d(u,1)):(u=vd(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(fe(),_(u,1,1,()=>{u=null}),ce())},i(c){o||(d(s,c),d(u),o=!0)},o(c){_(s,c),_(u),o=!1},d(c){c&&(k(e),k(t),k(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,tt(l)}}}var Al=5;function Wg(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:c=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:w=yd.noop}=e,b=h==="top",S,y,P,v=0,g=b?Al:-Al,I=0,N=0,K=zt(),q=et(),se=q.ui.playerSize;H(i,se,ee=>t(24,o=ee));let ne=q.ui.overlayContainer$;H(i,ne,ee=>t(23,n=ee));let E=q.getLogger().createComponentLog("Tooltip component"),ie=()=>{if(!n||!y||!S)return;let ee=n.getBoundingClientRect(),Te=S.getBoundingClientRect(),je=Te.width,Ke=y.clientWidth,Je=o.width,We=(je-Ke)/2,ye=Te.left+u-ee.left,J=ye+We,ve=Te.top+c-ee.top,He=Ke/2-Al,Xe=J<8,xe=J+Ke>Je-8;Xe&&(J=8,He=ye+Te.width/2-2.5*Al),xe&&(J=Je-8-Ke,He=Te.left-ee.left+Te.width/2-J-Al),t(6,I=J),t(7,N=ve),t(5,v=He)},x=()=>{try{if(!n||!S)return;ie(),t(0,s=!0)}catch(ee){E({message:String(ee)})}},j=()=>{t(0,s=!1)},X=()=>{y&&(P||(P=window.setTimeout(x,K.controls.hideTimeoutTooltips)),s&&x())},M=()=>{j(),window.clearTimeout(P),P=void 0};Rt(ie),Un(()=>window.clearTimeout(P));function Q(ee){pe[ee?"unshift":"push"](()=>{S=ee,t(3,S)})}function A(ee){pe[ee?"unshift":"push"](()=>{y=ee,t(4,y)})}return i.$$set=ee=>{"content"in ee&&t(1,a=ee.content),"active"in ee&&t(0,s=ee.active),"translateX"in ee&&t(14,u=ee.translateX),"translateY"in ee&&t(15,c=ee.translateY),"isFullWidthWrapper"in ee&&t(2,m=ee.isFullWidthWrapper),"placement"in ee&&t(16,h=ee.placement),"onVisibilityChange"in ee&&t(17,w=ee.onVisibilityChange),"$$scope"in ee&&t(21,l=ee.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:w(s)},[s,a,m,S,y,v,I,N,b,g,se,ne,X,M,u,c,h,w,r,Q,A,l]}var Na=class extends U{constructor(e){super(),W(this,e,Wg,Kg,z,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},qg)}},Ir=Na;function Gg(i){Se(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 jg(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Qg(i){let e,t;return e=new Ir({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[Yg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4096&&(r.content=n[12]),o&1024&&(r.translateX=n[10]),o&2048&&(r.translateY=n[11]),o&16&&(r.isFullWidthWrapper=n[4]),o&64&&(r.active=n[6]),o&128&&(r.placement=n[7]),o&512&&(r.onVisibilityChange=n[9]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yg(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Zg(i){let e,t,n,o,r,l,a,s,u,c=[Qg,jg],m=[];function h(w,b){return w[3]&&w[5]&&!w[13]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=T("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[8]||null),Wn(()=>i[23].call(e))},m(w,b){C(w,e,b),m[t].m(e,null),i[22](e),l=jo(e,i[23].bind(e)),a=!0,s||(u=[me(e,"pointerdown",st(Bt(i[20]))),me(e,"click",st(Bt(i[21])))],s=!0)},p(w,[b]){let S=t;t=h(w,b),t===S?m[t].p(w,b):(fe(),_(m[S],1,1,()=>{m[S]=null}),ce(),n=m[t],n?n.p(w,b):(n=m[t]=c[t](w),n.c()),d(n,1),n.m(e,null)),(!a||b&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||b&256&&r!==(r=w[8]||null))&&f(e,"aria-hidden",r)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&k(e),m[t].d(),i[22](null),l(),s=!1,tt(u)}}}function Xg(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:w=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:y=G("tooltip_button_disabled")}=e,{isAriaHidden:P=!1}=e,{onTooltipVisibilityChange:v=wd.noop}=e,{initialTranslateXPx:g=0}=e,{initialTranslateYPx:I=-18}=e,N=et(),K=N.ui.isMobile;H(i,K,j=>t(13,o=j));let q=N.state.graphIsOpened$;H(i,q,j=>t(18,n=j));let se;function ne(j){In.call(this,i,j)}function E(j){In.call(this,i,j)}function ie(j){pe[j?"unshift":"push"](()=>{c=j,t(0,c)})}function x(){m=this.clientWidth,t(1,m)}return i.$$set=j=>{"className"in j&&t(2,a=j.className),"disabled"in j&&t(16,s=j.disabled),"hasTooltip"in j&&t(3,u=j.hasTooltip),"ref"in j&&t(0,c=j.ref),"width"in j&&t(1,m=j.width),"isFullWidthTooltip"in j&&t(4,h=j.isFullWidthTooltip),"tooltipContent"in j&&t(5,w=j.tooltipContent),"tooltipActive"in j&&t(6,b=j.tooltipActive),"tooltipPlacement"in j&&t(7,S=j.tooltipPlacement),"disabledTooltipContent"in j&&t(17,y=j.disabledTooltipContent),"isAriaHidden"in j&&t(8,P=j.isAriaHidden),"onTooltipVisibilityChange"in j&&t(9,v=j.onTooltipVisibilityChange),"initialTranslateXPx"in j&&t(10,g=j.initialTranslateXPx),"initialTranslateYPx"in j&&t(11,I=j.initialTranslateYPx),"$$scope"in j&&t(24,l=j.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,se=n?G("tooltip_disabled_when_graph_on"):y):t(12,se=w)},[c,m,a,u,h,w,b,S,P,v,g,I,se,o,K,q,s,y,n,r,ne,E,ie,x,l]}var Oa=class extends U{constructor(e){super(),W(this,e,Xg,Zg,z,{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},Gg)}},Ot=Oa;function Jg(i){let e,t,n,o,r,l;return{c(){e=L("svg"),t=L("rect"),o=L("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(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"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){C(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",l)},i:de,o:de,d(a){a&&k(e)}}}function xg(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Fa=class extends U{constructor(e){super(),W(this,e,xg,Jg,z,{completed:0})}},Er=Fa;function $g(i){Se(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function eb(i){let e,t,n,o,r;return t=new Er({props:{completed:!!i[0].completed}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Wn(()=>i[3].call(e)),F(e,"disabled",i[1])},m(l,a){C(l,e,a),B(t,e,null),o=jo(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||a&2)&&F(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&k(e),R(t),o()}}}function tb(i){let e,t;return e=new Ot({props:{tooltipContent:G(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[eb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=G(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ib(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var Ha=class extends U{constructor(e){super(),W(this,e,ib,tb,z,{videoEpisode:0,disabled:1},$g)}},kd=Ha;function nb(i){Se(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 Cd(i,e,t){let n=i.slice();return n[2]=e[t],n}function Sd(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),l=T("div"),s=O(),f(n,"class","video-episode-loaded svelte-1h9p3m2"),f(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),f(l,"class","video-episode-filled svelte-1h9p3m2"),f(l,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),F(l,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1h9p3m2"),f(e,"class","video-episode svelte-1h9p3m2"),f(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),F(e,"mobile",i[1])},m(c,m){C(c,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[2].loadedWidth/c[2].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[2].filledWidth/c[2].width*100}%)`)&&f(l,"style",a),m&2&&F(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[2].from}%; width: ${c[2].width}%`)&&f(e,"style",u),m&2&&F(e,"mobile",c[1])},d(c){c&&k(e)}}}function ob(i){let e,t=It(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Sd(Cd(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,r){C(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&3){t=It(o[0]);let l;for(l=0;l<t.length;l+=1){let a=Cd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Sd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:de,o:de,d(o){o&&k(e),Wi(n,o)}}}function lb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile)},[n,o]}var za=class extends U{constructor(e){super(),W(this,e,lb,ob,z,{videoEpisodes:0,isMobile:1},nb)}},Pd=za;function rb(i){Se(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 Td(i,e,t){let n=i.slice();return n[48]=e[t],n}function Id(i){let e,t,n=It(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Md(Td(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-1golz1y"),F(e,"mobile",i[5]),F(e,"hidden",i[5]&&!i[20])},m(l,a){C(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2097664){n=It(l[21]);let s;for(s=0;s<n.length;s+=1){let u=Td(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Md(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(fe(),s=n.length;s<o.length;s+=1)r(s);ce()}(!t||a[0]&32)&&F(e,"mobile",l[5]),(!t||a[0]&1048608)&&F(e,"hidden",l[5]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&k(e),Wi(o,l)}}}function Ed(i){let e,t;return e=new kd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[48]),o[0]&512&&(r.disabled=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Md(i){let e,t,n=i[48].interactive&&Ed(i);return{c(){n&&n.c(),e=ot()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[48].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Ed(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function sb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=O(),r=T("div"),f(t,"class","loaded svelte-1golz1y"),f(t,"style",n=`transform: translateX(${i[11]*100}%);`),f(r,"class","filled svelte-1golz1y"),f(r,"style",l=`transform: translateX(${i[12]*100}%);`),F(r,"active-live",i[4]),F(r,"ads",i[6]),f(e,"class","bars svelte-1golz1y")},m(a,s){C(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&f(t,"style",n),s[0]&4096&&l!==(l=`transform: translateX(${a[12]*100}%);`)&&f(r,"style",l),s[0]&16&&F(r,"active-live",a[4]),s[0]&64&&F(r,"ads",a[6])},i:de,o:de,d(a){a&&k(e)}}}function ab(i){let e,t;return e=new Pd({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&32&&(r.isMobile=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ub(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b=i[8]&&Id(i),S=[ab,sb],y=[];function P(v,g){return v[21].length?0:1}return n=P(i,[-1,-1]),o=y[n]=S[n](i),{c(){var v;b&&b.c(),e=O(),t=T("div"),o.c(),r=O(),l=T("div"),a=T("div"),f(a,"class","handle svelte-1golz1y"),F(a,"active-live",i[4]),f(l,"class","handleWrap svelte-1golz1y"),f(l,"style",s=`transform: translateX(${i[13]*100}%);`),F(l,"hidden",i[10]),f(t,"class",u="slider "+i[0]+" svelte-1golz1y"),f(t,"aria-label",i[14]),f(t,"aria-valuemin",i[15]),f(t,"aria-valuemax",i[16]),f(t,"aria-valuenow",i[17]),f(t,"aria-valuetext",i[18]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(v=i[1])!=null?v:null),F(t,"disabled",i[9]),F(t,"slider-dragging",i[20]),F(t,"hidden",i[2]),F(t,"slider-vertical",i[3]),F(t,"no-handle",i[10]),F(t,"square",i[7])},m(v,g){b&&b.m(v,g),C(v,e,g),C(v,t,g),y[n].m(t,null),p(t,r),p(t,l),p(l,a),i[42](t),m=!0,h||(w=[me(t,"pointerdown",Bt(i[22])),me(t,"pointermove",Bt(i[23])),me(t,"pointerup",Bt(i[24])),me(t,"pointerenter",Bt(i[25])),me(t,"pointerleave",Bt(i[26])),me(t,"click",st(On.noop)),me(t,"wheel",i[27])],h=!0)},p(v,g){var N;v[8]?b?(b.p(v,g),g[0]&256&&d(b,1)):(b=Id(v),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(fe(),_(b,1,1,()=>{b=null}),ce());let I=n;n=P(v,g),n===I?y[n].p(v,g):(fe(),_(y[I],1,1,()=>{y[I]=null}),ce(),o=y[n],o?o.p(v,g):(o=y[n]=S[n](v),o.c()),d(o,1),o.m(t,r)),(!m||g[0]&16)&&F(a,"active-live",v[4]),(!m||g[0]&8192&&s!==(s=`transform: translateX(${v[13]*100}%);`))&&f(l,"style",s),(!m||g[0]&1024)&&F(l,"hidden",v[10]),(!m||g[0]&1&&u!==(u="slider "+v[0]+" svelte-1golz1y"))&&f(t,"class",u),(!m||g[0]&16384)&&f(t,"aria-label",v[14]),(!m||g[0]&32768)&&f(t,"aria-valuemin",v[15]),(!m||g[0]&65536)&&f(t,"aria-valuemax",v[16]),(!m||g[0]&131072)&&f(t,"aria-valuenow",v[17]),(!m||g[0]&262144)&&f(t,"aria-valuetext",v[18]),(!m||g[0]&2&&c!==(c=(N=v[1])!=null?N:null))&&f(t,"data-testid",c),(!m||g[0]&513)&&F(t,"disabled",v[9]),(!m||g[0]&1048577)&&F(t,"slider-dragging",v[20]),(!m||g[0]&5)&&F(t,"hidden",v[2]),(!m||g[0]&9)&&F(t,"slider-vertical",v[3]),(!m||g[0]&1025)&&F(t,"no-handle",v[10]),(!m||g[0]&129)&&F(t,"square",v[7])},i(v){m||(d(b),d(o),m=!0)},o(v){_(b),_(o),m=!1},d(v){v&&(k(e),k(t)),b&&b.d(v),y[n].d(),i[42](null),h=!1,tt(w)}}}function fb(i,e,t){let n,o,{className:r=""}=e,{testId:l=void 0}=e,{isHidden:a=!1}=e,{isVertical:s=!1}=e,{isActiveLive:u=!1}=e,{isMobile:c=!1}=e,{isAds:m=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:w=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:S=!1}=e,{disabled:y=!1}=e,{hideHandel:P=!1}=e,v,g,{onPointerDown:I=On.noop}=e,{onHandleMove:N=On.noop}=e,{onPointerUp:K=On.noop}=e,{onPointerEnter:q=On.noop}=e,{onPointerMove:se=On.noop}=e,{onPointerLeave:ne=On.noop}=e,{onWheelUp:E=On.noop}=e,{onWheelDown:ie=On.noop}=e,{onWheelLeft:x=On.noop}=e,{onWheelRight:j=On.noop}=e,{loadedProgress:X=0}=e,{filledProgress:M=0}=e,{handleProgress:Q=0}=e,{ariaLabel:A=""}=e,{ariaValueMin:ee=void 0}=e,{ariaValueMax:Te=void 0}=e,{ariaValueNow:je=void 0}=e,{ariaValueText:Ke=""}=e,Je=zt(),We=!1,ye;function J(Y){if(We)return;t(20,We=!0),g=v.getBoundingClientRect();let Ce=Be(Y.clientX,Y.clientY);I(Ce),v.setPointerCapture(Y.pointerId)}function ve(Y){let Ce=Be(Y.clientX,Y.clientY),ue=Ue(Y.clientX);se(Ce,ue,g.width),We&&N(Ce)}function He(Y){if(!We)return;t(20,We=!1);let Ce=Be(Y.clientX,Y.clientY);K(Ce)}function Xe(Y){g=v.getBoundingClientRect();let Ce=Be(Y.clientX,Y.clientY),ue=Ue(Y.clientX);q(Ce,ue,g.width)}function xe(){ne()}function he(Y){b&&(Y.preventDefault(),Y.deltaY<0?E():Y.deltaY>0?ie():Y.deltaX>0?j():x())}function Be(Y,Ce){return s?Math.max(0,Math.min(1,(g.height-(Ce-g.top))/g.height)):Math.min(Math.max(Y-g.x,0),g.width)/g.width}function Ue(Y){return Math.min(Math.max(Y-g.x,0),g.width)}function it(Y,Ce){let ue=Je.features.episodesClustering&&!S?Je.episodeMinWidthPc:0,Ie=[],Ye=0,at=0,dt=0;for(let bt=1;bt<w.length;bt++)at=w[bt].time/ye*100,at-Ye>ue&&(Ie.push({from:Ye,width:Math.max(0,at-Ye),loadedWidth:Math.max(0,Math.min(at,Y)-Ye),filledWidth:Math.max(0,Math.min(at,Ce)-Ye),interactive:w[bt-1].interactive,completed:w[bt-1].completed}),Ye=w[bt].time/ye*100,dt++);let ut={from:Ye,width:Math.max(0,100-Ye),loadedWidth:Math.max(0,Math.min(Y,100)-Ye),filledWidth:Math.max(0,Math.min(Ce,100)-Ye),interactive:w[dt].interactive,completed:w[dt].completed};100-Ye<ue?(dt-=1,Ie[dt].width+=100-Ye,Ie[dt].loadedWidth+=Math.max(0,Math.min(Y,100)-Ye),Ie[dt].filledWidth+=Math.max(0,Math.min(Ce,100)-Ye)):Ie[dt]=ut;let kt=w[0].time;if(kt!==0){let bt=kt/ye*100;Ie.unshift({from:0,width:bt,loadedWidth:Math.min(bt,Y),filledWidth:Math.min(bt,Ce)})}return Ie}function ke(Y){pe[Y?"unshift":"push"](()=>{v=Y,t(19,v)})}return i.$$set=Y=>{"className"in Y&&t(0,r=Y.className),"testId"in Y&&t(1,l=Y.testId),"isHidden"in Y&&t(2,a=Y.isHidden),"isVertical"in Y&&t(3,s=Y.isVertical),"isActiveLive"in Y&&t(4,u=Y.isActiveLive),"isMobile"in Y&&t(5,c=Y.isMobile),"isAds"in Y&&t(6,m=Y.isAds),"squareBorders"in Y&&t(7,h=Y.squareBorders),"videoEpisodes"in Y&&t(28,w=Y.videoEpisodes),"withWheelHandler"in Y&&t(29,b=Y.withWheelHandler),"isInteractive"in Y&&t(8,S=Y.isInteractive),"disabled"in Y&&t(9,y=Y.disabled),"hideHandel"in Y&&t(10,P=Y.hideHandel),"onPointerDown"in Y&&t(30,I=Y.onPointerDown),"onHandleMove"in Y&&t(31,N=Y.onHandleMove),"onPointerUp"in Y&&t(32,K=Y.onPointerUp),"onPointerEnter"in Y&&t(33,q=Y.onPointerEnter),"onPointerMove"in Y&&t(34,se=Y.onPointerMove),"onPointerLeave"in Y&&t(35,ne=Y.onPointerLeave),"onWheelUp"in Y&&t(36,E=Y.onWheelUp),"onWheelDown"in Y&&t(37,ie=Y.onWheelDown),"onWheelLeft"in Y&&t(38,x=Y.onWheelLeft),"onWheelRight"in Y&&t(39,j=Y.onWheelRight),"loadedProgress"in Y&&t(11,X=Y.loadedProgress),"filledProgress"in Y&&t(12,M=Y.filledProgress),"handleProgress"in Y&&t(13,Q=Y.handleProgress),"ariaLabel"in Y&&t(14,A=Y.ariaLabel),"ariaValueMin"in Y&&t(15,ee=Y.ariaValueMin),"ariaValueMax"in Y&&t(16,Te=Y.ariaValueMax),"ariaValueNow"in Y&&t(17,je=Y.ariaValueNow),"ariaValueText"in Y&&t(18,Ke=Y.ariaValueText)},i.$$.update=()=>{var Y;if(i.$$.dirty[0]&65536)e:t(40,ye=Te!=null?Te:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=((Y=w[w.length-1])==null?void 0:Y.time)<ye);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=w.length&&n&&ye?it(X*100,M*100):[])},[r,l,a,s,u,c,m,h,S,y,P,X,M,Q,A,ee,Te,je,Ke,v,We,o,J,ve,He,Xe,xe,he,w,b,I,N,K,q,se,ne,E,ie,x,j,ye,n,ke]}var qa=class extends U{constructor(e){super(),W(this,e,fb,ub,z,{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},rb,[-1,-1])}},al=qa;var Mn=(i,e)=>Mo[i]>=Mo[e],Vd=(i,e)=>Mo[i]<Mo[e],Mr=(i,e)=>Mo[i]<=Mo[e],Ld=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function cb(i){Se(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 db(i){let e,t;return e=new Fo({props:{volume:i[3],muted:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mb(i){let e,t;return e=new gt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Yn.KeyM,$$slots:{default:[db]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ad(i){let e,t,n;return t=new al({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]:no.noop,onPointerLeave:i[2]?i[20]:no.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),F(e,"volumeBar-vertical",i[2])},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:no.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:no.noop),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&F(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function pb(i){let e,t,n,o,r,l;t=new Ir({props:{content:i[6],translateY:-18,$$slots:{default:[mb]},$$scope:{ctx:i}}});let a=i[4]&&Ad(i);return{c(){e=T("div"),D(t.$$.fragment),n=O(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),F(e,"vertical",i[2])},m(s,u){C(s,e,u),B(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[me(e,"mouseenter",function(){Pi(i[2]?i[21]:no.noop)&&(i[2]?i[21]:no.noop).apply(this,arguments)}),me(e,"mouseleave",function(){Pi(i[2]?i[22]:no.noop)&&(i[2]?i[22]:no.noop).apply(this,arguments)}),me(e,"wheel",Bt(i[23]))],r=!0)},p(s,u){i=s;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Ad(i),a.c(),d(a,1),a.m(e,null)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),(!o||u[0]&4)&&F(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),R(t),a&&a.d(),r=!1,tt(l)}}}function _b(i,e,t){var We,ye;let n,o,r,l,{click:a}=e,s=et(),u=zt(),c=s.state.volume$;H(i,c,J=>t(3,n=J));let m=s.state.muted$;H(i,m,J=>t(25,l=J));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;H(i,w,J=>t(24,r=J));let b=(We=s.callbacks)==null?void 0:We.onAudioDoesNotExistHint,S=(ye=s.callbacks)==null?void 0:ye.onAudioDisabledHint,y=s.state.isAudioAvailable$;H(i,y,J=>t(4,o=J));let P=s.state.isAudioDisabled,v=!1,g,I,N,K,q,se,ne=1,E=!1,ie=!1;function x(J){ne=n,h(J)}function j(){br(s,n,u.controls.volumeStepWheel)}function X(){vr(s,n,u.controls.volumeStepWheel)}function M(J){h(J)}function Q(J){let ve=J;h(ve,ve===0?ne:ve)}function A(){E=!0}function ee(){E=!1,Ke()}function Te(){clearTimeout(g),t(5,v=!0)}function je(){Ke()}function Ke(){g=window.setTimeout(()=>{E||t(5,v=!1)},u.controls.volumeBarTimeout)}function Je(J){J.deltaY<0?j():J.deltaY>0&&X()}return i.$$set=J=>{"click"in J&&t(0,a=J.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,K=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,q=Mr(r,"s"));if(i.$$.dirty[0]&6)e:q?t(6,I=""):t(6,I=K?G("tooltip_volume"):G("tooltip_volume_muted")),t(7,N=K?G("tooltip_volume"):G("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,se=K?0:n);if(i.$$.dirty[0]&16)e:t(9,ie=P&&!S||!o&&!b)},[a,K,q,n,o,v,I,N,se,ie,c,m,w,y,x,j,X,M,Q,A,ee,Te,je,Je,r,l]}var Ua=class extends U{constructor(e){super(),W(this,e,_b,pb,z,{click:0},cb,[-1,-1])}},Bd=Ua;var Nd=require("@vkontakte/videoplayer-shared");function hb(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Le(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function gb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ka=class extends U{constructor(e){super(),W(this,e,gb,hb,z,{})}},Rd=Ka;function bb(i){Se(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function vb(i){let e,t;return e=new Rd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function yb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Wa=class extends U{constructor(e){super(),W(this,e,yb,vb,z,{isFullscreen:0},bb)}},Dd=Wa;function wb(i){let e,t;return e=new Dd({props:{isFullscreen:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function kb(i){let e,t;return e=new gt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Yn.KeyF,$$slots:{default:[wb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Cb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Nd.noop}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off"))},[n,o,r]}var Ga=class extends U{constructor(e){super(),W(this,e,Cb,kb,z,{isFullscreen:0,click:1})}},Vr=Ga;function Sb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Pb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ja=class extends U{constructor(e){super(),W(this,e,Pb,Sb,z,{})}},ul=ja;function Tb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ib(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Qa=class extends U{constructor(e){super(),W(this,e,Ib,Tb,z,{})}},Lr=Qa;var Fd=require("@vkontakte/videoplayer-shared");function Eb(i){Se(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 Od(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Mb(i){let e,t,n,o,r=i[1]&&Od(i);var l=i[8];function a(s){return{}}return l&&(n=kn(l,a(i))),{c(){r&&r.c(),e=O(),t=T("div"),n&&D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),F(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),C(s,e,u),C(s,t,u),n&&B(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=Od(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){fe();let c=n;_(c.$$.fragment,1,0,()=>{R(c,1)}),ce()}l?(n=kn(l,a(s)),D(n.$$.fragment),d(n.$$.fragment,1),B(n,t,null)):n=null}(!o||u&2)&&F(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),r&&r.d(s),n&&R(n)}}}function Vb(i){let e,t,n;function o(l){i[13](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Yn.KeyK,$$slots:{default:[Mb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Lb(i,e,t){let n,o,{fakeIsPlaying$:r}=Dn();H(i,r,v=>t(12,o=v));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=Fd.noop}=e,{toggle:h}=r,w,b,S,y;function P(v){l=v,t(0,l)}i.$$set=v=>{"ref"in v&&t(0,l=v.ref),"isMobile"in v&&t(1,a=v.isMobile),"isPlaying"in v&&t(10,s=v.isPlaying),"disabled"in v&&t(2,u=v.disabled),"className"in v&&t(3,c=v.className),"click"in v&&t(4,m=v.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,b=o!==null);if(i.$$.dirty&5152)e:t(11,S=b?o:s);if(i.$$.dirty&2048)e:t(7,y=S?G("tooltip_pause"):G("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?Lr:ul)};e:t(6,w=h);return[l,a,u,c,m,b,w,y,n,r,s,S,o,P]}var Ya=class extends U{constructor(e){super(),W(this,e,Lb,Vb,z,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Eb)}},Bl=Ya;function Ab(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(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"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Bb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Za=class extends U{constructor(e){super(),W(this,e,Bb,Ab,z,{})}},Hd=Za;function Rb(i){let e,t;return e=new Hd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Db(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.isMobile)},i.$$.update=()=>{if(i.$$.dirty&5)e:n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0)},[n,r,o]}var Xa=class extends U{constructor(e){super(),W(this,e,Db,Rb,z,{isPrev:0,isMobile:2})}},zd=Xa;function Nb(i){let e,t;return e=new zd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ob(i){let e,t,n;function o(l){i[6](l)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[Nb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Fb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(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,r=c.disabled),"type"in c&&t(3,l=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l==="prev"?G("tooltip_previous"):G("tooltip_next"))},[n,o,r,l,a,s,u]}var Ja=class extends U{constructor(e){super(),W(this,e,Fb,Ob,z,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},fl=Ja;function Hb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var xa=class extends U{constructor(e){super(),W(this,e,zb,Hb,z,{})}},qd=xa;function qb(i){Se(i,"svelte-1bbobod",".mobile.svelte-1bbobod{transform:scale(1.1) translateY(-1px)}")}function Ud(i){let e,t,n,o,r,l,a;return{c(){e=L("path"),t=L("path"),n=L("path"),o=L("path"),r=L("path"),l=L("path"),a=L("path"),f(e,"d","M30.7286 15.0483H33.2239L36.8885 5H35.0776L32.1402 13.2809H31.8551L29.0175 5H27.1781L30.7286 15.0483Z"),f(e,"fill","white"),f(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"),f(t,"fill","white"),f(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"),f(n,"fill","white"),f(o,"d","M59.3767 15.0483H61.701L64.4672 9.54668H64.6954V15.0483H66.2638V7.63679H63.9396L61.1734 13.1384H60.9452V7.63679H59.3767V15.0483Z"),f(o,"fill","white"),f(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"),f(r,"fill","white"),f(l,"d","M84.222 11.257C84.222 9.11909 82.625 7.49426 80.372 7.49426C78.1191 7.49426 76.5221 9.10484 76.5221 11.3425C76.5221 13.5803 78.1191 15.1908 80.372 15.1908C81.912 15.1908 83.3664 14.4639 83.9225 13.0529L82.3826 12.7963C82.0261 13.3237 81.3416 13.6943 80.4718 13.6943C79.217 13.6943 78.39 12.9246 78.2332 11.7844H84.1934C84.2077 11.6276 84.222 11.4566 84.222 11.257ZM80.372 8.91955C81.3987 8.91955 82.1687 9.57519 82.4396 10.5016H78.333C78.6039 9.54668 79.3739 8.91955 80.372 8.91955Z"),f(l,"fill","white"),f(a,"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"),f(a,"fill","white")},m(s,u){C(s,e,u),C(s,t,u),C(s,n,u),C(s,o,u),C(s,r,u),C(s,l,u),C(s,a,u)},d(s){s&&(k(e),k(t),k(n),k(o),k(r),k(l),k(a))}}}function Ub(i){let e,t,n,o=!i[0]&&Ud(i);return{c(){e=L("svg"),t=L("path"),o&&o.c(),f(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"),f(t,"fill","white"),f(e,"width",i[2]),f(e,"height","20"),f(e,"viewBox",n="0 0 "+(i[2]+1)+" 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",i[3]),f(e,"class","svelte-1bbobod"),F(e,"mobile",i[1])},m(r,l){C(r,e,l),p(e,t),o&&o.m(e,null)},p(r,[l]){r[0]?o&&(o.d(1),o=null):o||(o=Ud(r),o.c(),o.m(e,null)),l&4&&f(e,"width",r[2]),l&4&&n!==(n="0 0 "+(r[2]+1)+" 20")&&f(e,"viewBox",n),l&8&&f(e,"data-testid",r[3]),l&2&&F(e,"mobile",r[1])},i:de,o:de,d(r){r&&k(e),o&&o.d()}}}function Kb(i,e,t){let{short:n=!1}=e,{isMobile:o=!1}=e,r,l;return i.$$set=a=>{"short"in a&&t(0,n=a.short),"isMobile"in a&&t(1,o=a.isMobile)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?20:93),t(3,l=n?"vk-video-logo-icon--short":"vk-video-logo-icon")},[n,o,r,l]}var $a=class extends U{constructor(e){super(),W(this,e,Kb,Ub,z,{short:0,isMobile:1},qb)}},Kd=$a;function Wb(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;return{c(){e=L("svg"),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),l=L("filter"),a=L("feFlood"),s=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),w=L("feBlend"),f(n,"fill-rule","evenodd"),f(n,"clip-rule","evenodd"),f(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"),f(n,"fill","white"),f(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"),f(o,"stroke","black"),f(o,"stroke-opacity","0.12"),f(o,"stroke-width","0.5"),f(t,"filter","url(#filter0_d_207_5101)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"type","matrix"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(s,"result","hardAlpha"),f(c,"stdDeviation","2.5"),f(m,"type","matrix"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"mode","normal"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_207_5101"),f(w,"mode","normal"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_207_5101"),f(w,"result","shape"),f(l,"id","filter0_d_207_5101"),f(l,"x","5.5"),f(l,"y","5.35095"),f(l,"width","29"),f(l,"height","29.2982"),f(l,"filterUnits","userSpaceOnUse"),f(l,"color-interpolation-filters","sRGB"),f(e,"width","40"),f(e,"height","40"),f(e,"viewBox","0 0 40 40"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg")},m(b,S){C(b,e,S),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w)},p:de,i:de,o:de,d(b){b&&k(e)}}}var eu=class extends U{constructor(e){super(),W(this,e,null,Wb,z,{})}},Wd=eu;function jb(i){let e,t;return e=new qd({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qb(i){let e,t;return e=new Kd({props:{short:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.short=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yb(i){let e,t;return e=new Wd({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zb(i){let e,t,n,o,r=[Yb,Qb,jb],l=[];function a(s,u){return s[7]||s[4]?0:s[2]?1:2}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Xb(i){let e,t,n;function o(l){i[13](l)}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:[Zb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&65588&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Jb(i,e,t){let n,o,{ref:r=void 0}=e,{logoClickable:l=!1}=e,{targetUrl:a=""}=e,{click:s}=e,u=zt(),c=et(),m=c.ui.currentGridType$;H(i,m,g=>t(11,n=g));let h=c.ui.isMobile;H(i,h,g=>t(12,o=g));let w,b,S,y,P=()=>{var g,I;s(),(I=(g=c.callbacks)==null?void 0:g.onLogoClicked)==null||I.call(g),a&&window.open(a,"_blank")};function v(g){r=g,t(0,r)}i.$$set=g=>{"ref"in g&&t(0,r=g.ref),"logoClickable"in g&&t(1,l=g.logoClickable),"targetUrl"in g&&t(9,a=g.targetUrl),"click"in g&&t(10,s=g.click)},i.$$.update=()=>{if(i.$$.dirty&6148)e:t(5,y=(o||Mr(n,"l"))&&b)};e:t(3,w=u.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo"));e:t(2,b=u.logoType==="vk_video");e:t(4,S=u.logoType==="vk_video_mobile");return[r,l,b,w,S,y,m,h,P,a,s,n,o,v]}var tu=class extends U{constructor(e){super(),W(this,e,Jb,Xb,z,{ref:0,logoClickable:1,targetUrl:9,click:10})}},Ar=tu;var jd=require("@vkontakte/videoplayer-core");var iu=require("@vkontakte/videoplayer-core");function xb(i){Se(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 $b(i){let e,t,n,o,r,l,a,s;return{c(){e=L("svg"),t=L("g"),n=L("path"),o=L("path"),r=L("path"),l=L("path"),a=L("path"),s=L("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(l,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(s,"fill","#fff"),F(s,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),F(e,"connecting",i[2])},m(u,c){C(u,e,c),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,c){c&2&&F(s,"hidden",!u[1]),c&4&&F(e,"connecting",u[2])},d(u){u&&k(e)}}}function e4(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N;return{c(){e=L("svg"),t=L("g"),n=L("mask"),o=L("path"),l=L("path"),a=L("path"),u=L("path"),c=L("defs"),m=L("clipPath"),h=L("path"),b=L("filter"),S=L("feFlood"),y=L("feColorMatrix"),P=L("feOffset"),v=L("feGaussianBlur"),g=L("feColorMatrix"),I=L("feBlend"),N=L("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(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"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",s=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",w=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(S,"flood-opacity","0"),f(S,"result","BackgroundImageFix"),f(y,"in","SourceAlpha"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"result","hardAlpha"),f(v,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_4085_178456"),f(N,"in","SourceGraphic"),f(N,"in2","effect1_dropShadow_4085_178456"),f(N,"result","shape"),f(b,"id","b"),f(b,"x","-3.4"),f(b,"y","-1.4"),f(b,"width","30.8"),f(b,"height","26.802"),f(b,"filterUnits","userSpaceOnUse"),f(b,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(K,q){C(K,e,q),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,c),p(c,m),p(m,h),p(c,b),p(b,S),p(b,y),p(b,P),p(b,v),p(b,g),p(b,I),p(b,N)},p(K,q){q&2&&r!==(r=K[1]?"#2688EB":"#fff")&&f(o,"fill",r),q&2&&s!==(s=K[1]?"#2688EB":"#fff")&&f(a,"fill",s),q&2&&w!==(w=K[1]?"#2688EB":"#fff")&&f(h,"fill",w)},d(K){K&&k(e)}}}function t4(i){let e;function t(r,l){return r[0]?e4:$b}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},m(r,l){o.m(r,l),C(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:de,o:de,d(r){r&&k(e),o.d(r)}}}function i4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(2,l=o===iu.ChromecastState.CONNECTING),t(1,r=o===iu.ChromecastState.CONNECTED)},[n,r,l,o]}var nu=class extends U{constructor(e){super(),W(this,e,i4,t4,z,{isMobile:0,state:3},xb)}},Gd=nu;var Qd=require("@vkontakte/videoplayer-shared");function n4(i){let e,t;return e=new Gd({props:{isMobile:i[1],state:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function o4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[n4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function l4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=Qd.noop}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=r===jd.ChromecastState.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var ou=class extends U{constructor(e){super(),W(this,e,l4,o4,z,{ref:0,isMobile:1,state:2,click:3})}},Br=ou;var Rr=require("@vkontakte/videoplayer-core");function r4(i){let e,t;return e=new dr({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function s4(i){let e,t;return e=new gt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Rr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[r4]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===Rr.PlaybackState.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function a4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=et(),s=a.state.playbackState$;H(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,m=()=>{if(!r){u();return}n===Rr.PlaybackState.PAUSED&&c()})},[o,r,l,n,m,s]}var lu=class extends U{constructor(e){super(),W(this,e,a4,s4,z,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Dr=lu;function u4(i){Se(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 f4(i){let e,t,n,o,r=i[9].default,l=Ee(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),f(t,"class","tooltip svelte-5ygsa2"),F(t,"active",i[0]),F(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){C(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Le(a[8]),null),(!o||s&1)&&F(t,"active",a[0]),(!o||s&2)&&F(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function c4(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function w(y){if(!h)return 0;let{width:P}=h.getBoundingClientRect(),v=P/2;return y<v?v:y>c-v?c-v:y}function b(y){pe[y?"unshift":"push"](()=>{h=y,t(4,h)})}function S(y){pe[y?"unshift":"push"](()=>{m=y,t(3,m)})}return i.$$set=y=>{"active"in y&&t(0,l=y.active),"pointer"in y&&t(1,a=y.pointer),"translateXPx"in y&&t(6,s=y.translateXPx),"translateYPx"in y&&t(2,u=y.translateYPx),"containerWidth"in y&&t(7,c=y.containerWidth),"$$scope"in y&&t(8,r=y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=w(s))},[l,a,u,m,h,n,s,c,r,o,b,S]}var ru=class extends U{constructor(e){super(),W(this,e,c4,f4,z,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},u4)}},Yd=ru;var Nr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function d4(i){Se(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 Zd(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?p4:m4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function m4(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Qe(t,e)},d(n){n&&k(t)}}}function p4(i){let e=G("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:de,d(n){n&&k(t)}}}function _4(i){let e,t,n,o,r,l,a,s,u=i[10]&&Zd(i);return{c(){e=T("div"),t=T("div"),o=O(),r=T("div"),u&&u.c(),l=O(),a=T("div"),s=De(i[0]),f(t,"class","preview svelte-l51fc1"),f(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);`),f(r,"class","episode svelte-l51fc1"),f(a,"class","time svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),F(e,"mobile",i[1])},m(c,m){C(c,e,m),p(e,t),p(e,o),p(e,r),u&&u.m(r,null),p(e,l),p(e,a),p(a,s)},p(c,[m]){m&3064&&n!==(n=`width: ${c[3]}px; height: ${c[4]}px; background-image: url(${c[5]}); background-size: ${c[6]}px ${c[7]}px; background-position: ${c[8]}px ${c[9]}px; transform: translateY(${c[11]%180?-35:0}px) rotate(${c[11]}deg);`)&&f(t,"style",n),c[10]?u?u.p(c,m):(u=Zd(c),u.c(),u.m(r,null)):u&&(u.d(1),u=null),m&1&&Qe(s,c[0]),m&2&&F(e,"mobile",c[1])},i:de,o:de,d(c){c&&k(e),u&&u.d()}}}var cl=150;function h4(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=et().ui.rotateAlpha;H(i,h,q=>t(11,n=q));let w,b,S,y,P,v,g,I;function N(){let q=a.frameWidth,se=a.frameHeight;return q>cl?(se=se/q*cl,q=cl):se>cl&&(q=q/se*cl,se=cl),{width:q,height:se}}function K(q){let se;a.isUV?se=Math.floor(u*q/a.frequency):se=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*q)));let ne=Math.floor(se/a.countPerImage),E=Math.floor(se%a.countPerImage/a.countPerRow),ie=se%a.countPerRow,x=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ne===Math.floor(a.countTotal/a.countPerImage)&&(x=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&x++);let j=a.countPerRow;!a.isUV&&ne===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(j=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let X=w*j,M=b*x,Q=-ie*w,A=-E*b;return{imgSrc:a.links[ne],imgWidth:X,imgHeight:M,imgOffsetX:Q,imgOffsetY:A}}i.$$set=q=>{"time"in q&&t(0,o=q.time),"isMobile"in q&&t(1,r=q.isMobile),"videoEpisodes"in q&&t(13,l=q.videoEpisodes),"previewThumbsData"in q&&t(14,a=q.previewThumbsData),"progress"in q&&t(15,s=q.progress),"duration"in q&&t(16,u=q.duration),"isInteractive"in q&&t(2,c=q.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:S,imgWidth:y,imgHeight:P,imgOffsetX:v,imgOffsetY:g}=K(s),S,(t(6,y),t(15,s)),(t(7,P),t(15,s)),(t(8,v),t(15,s)),(t(9,g),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=Nr(s,u,l))};e:t(3,{width:w,height:b}=N(),w,t(4,b));return[o,r,c,w,b,S,y,P,v,g,I,n,h,l,a,s,u]}var su=class extends U{constructor(e){super(),W(this,e,h4,_4,z,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},d4)}},Xd=su;function g4(i){Se(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 b4(i){let e,t;return{c(){e=T("span"),t=De(i[7]),f(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o[0]&128&&Qe(t,n[7])},i:de,o:de,d(n){n&&k(e)}}}function v4(i){let e,t;return e=new Xd({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.time=n[7]),o[0]&1024&&(r.isMobile=n[10]),o[0]&8&&(r.videoEpisodes=n[3]),o[0]&256&&(r.progress=n[8]),o[0]&2&&(r.duration=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y4(i){let e,t,n,o,r=[v4,b4],l=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function w4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[y4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=le(l,r[a]);return e=new Yd({props:l}),n=new al({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:G("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:G("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(){D(e.$$.fragment),t=O(),D(n.$$.fragment)},m(a,s){B(e,a,s),C(a,t,s),B(n,a,s),o=!0},p(a,s){let u=s[0]&512?Re(r,[jf(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let c={};s[0]&2048&&(c.isActiveLive=a[11]),s[0]&1024&&(c.isMobile=a[10]),s[0]&2&&(c.ariaValueMax=a[1]),s[0]&64&&(c.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(c.ariaValueText=G("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(c.loadedProgress=a[12]),s[0]&64&&(c.filledProgress=a[6]),s[0]&64&&(c.handleProgress=a[6]),s[0]&8&&(c.videoEpisodes=a[3]),s[0]&8192&&(c.disabled=a[13].has("TIMELINE")),s[0]&4&&(c.hideHandel=a[2]),n.$set(c)},i(a){o||(d(e.$$.fragment,a),d(n.$$.fragment,a),o=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),o=!1},d(a){a&&k(t),R(e,a),R(n,a)}}}function k4(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,{showTimeline:b=!1}=e,S=et(),y=zt(),P=S.state.bufferedProgress$;H(i,P,ke=>t(12,h=ke));let v=S.state.positionWithScrubbing$;H(i,v,ke=>t(39,s=ke));let g=S.state.duration$;H(i,g,ke=>t(1,r=ke));let I=S.state.isLive$;H(i,I,ke=>t(0,o=ke));let N=S.state.isActiveLive$;H(i,N,ke=>t(11,m=ke));let K=S.ui.isMobile;H(i,K,ke=>t(10,c=ke));let q=y.features.episodes?S.actions.internal.getVideoEpisodes():void 0,se=S.actions.internal.getPreviewThumbsData(),ne=S.state.interactiveEpisodes$;H(i,ne,ke=>t(40,u=ke));let E=S.state.isInteractive,ie=S.state.isInteractiveTime$;H(i,ie,ke=>t(2,l=ke));let x=S.state.isInteractiveExpectation$;H(i,x,ke=>t(38,a=ke));let j=S.actions.internal.correctSeekTimeToInteractive,X=S.ui.controls.disabledControls$;H(i,X,ke=>t(13,w=ke));let M,Q,A,ee,Te=!1,je="",Ke=0,Je=0,We=0,ye;function J(ke){return!j||!E?ke:j(ke*r)/r}function ve(ke){S.actions.internal.startScrubbing(J(ke))}function He(ke){l||S.actions.internal.progressScrubbing(J(ke))}function Xe(ke){S.actions.internal.completeScrubbing(J(ke)),t(34,Te=!1)}function xe(ke,Y,Ce){Ue(ke,Y,Ce),t(34,Te=!0)}function he(ke,Y,Ce){Ue(ke,Y,Ce),t(34,Te=!0)}function Be(){t(34,Te=!1)}function Ue(ke,Y,Ce){t(8,We=ke),t(35,Ke=Y),Ce&&t(36,Je=Ce),t(7,je=it(ke))}function it(ke){let Y=En((o?1-ke:ke)*r);return o?`-${Y}`:Y}return i.$$set=ke=>{"showTimeline"in ke&&t(33,b=ke.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,M=E?u:q);if(i.$$.dirty[0]&2)e:t(4,Q=En(r));if(i.$$.dirty[1]&256)e:t(5,A=En(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,ee=s/r);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ye=a||l);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:Je,translateXPx:Ke,translateYPx:E&&se?-36:-16,active:Te&&b&&!ye,pointer:!y.features.timelinePreview||!se||o})},[o,r,l,M,Q,A,ee,je,We,n,c,m,h,w,y,P,v,g,I,N,K,se,ne,E,ie,x,X,ve,He,Xe,xe,he,Be,b,Te,Ke,Je,ye,a,s,u]}var au=class extends U{constructor(e){super(),W(this,e,k4,w4,z,{showTimeline:33},g4,[-1,-1])}},Jd=au;function C4(i){let e,t;return e=new al({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:G("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=G("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function S4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=et().ui.isMobile;H(i,a,m=>t(4,n=m));let s,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=En(r));if(i.$$.dirty&64)e:t(2,u=En(o));if(i.$$.dirty&65)e:t(3,c=o/r)},[r,s,u,c,n,a,o]}var uu=class extends U{constructor(e){super(),W(this,e,S4,C4,z,{position:6,duration:0})}},Or=uu;function P4(i){Se(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function T4(i){let e;return{c(){e=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),F(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&F(e,"mobile",t[2])},i:de,o:de,d(t){t&&k(e)}}}function I4(i){let e,t,n,o,r=[M4,E4],l=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),F(e,"mobile",i[2])},m(s,u){C(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&4)&&F(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function E4(i){let e,t;return e=new Jd({props:{showTimeline:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.showTimeline=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M4(i){let e,t;return e=new Or({props:{position:i[3],duration:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.position=n[3]),o&16&&(r.duration=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function V4(i){let e,t,n,o,r=[I4,T4],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function L4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,m=et(),h=m.state.isLive$;H(i,h,P=>t(12,n=P));let w=m.ads.duration;H(i,w,P=>t(4,l=P));let b=m.ads.position;H(i,b,P=>t(3,r=P));let S=m.ui.isMobile;H(i,S,P=>t(2,o=P));let y;return i.$$set=P=>{"isAds"in P&&t(0,a=P.isAds),"canRewindLive"in P&&t(9,s=P.canRewindLive),"isRewindableLive"in P&&t(10,u=P.isRewindableLive),"isHidden"in P&&t(11,c=P.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,y=!c&&(!n||n&&s&&u||a))},[a,y,o,r,l,h,w,b,S,s,u,c,n]}var fu=class extends U{constructor(e){super(),W(this,e,L4,V4,z,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},P4)}},Fr=fu;var em=require("@vkontakte/videoplayer-shared");function A4(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=L("svg"),a&&a.c(),t=L("path"),n=L("path"),o=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),be(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Le(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function B4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var cu=class extends U{constructor(e){super(),W(this,e,B4,A4,z,{})}},xd=cu;function R4(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function D4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var du=class extends U{constructor(e){super(),W(this,e,D4,R4,z,{})}},$d=du;function N4(i){Se(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 O4(i){let e,t,n,o;e=new xd({});function r(s,u){if(s[4]==="FULL")return z4;if(s[4]==="COUNT")return H4}let l=r(i,-1),a=l&&l(i);return{c(){D(e.$$.fragment),t=O(),a&&a.c(),n=ot()},m(s,u){B(e,s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),R(e,s),a&&a.d(s)}}}function F4(i){let e,t,n,o,r,l;return r=new $d({}),{c(){e=T("span"),t=De(i[2]),n=O(),o=T("div"),D(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),p(e,t),C(a,n,s),C(a,o,s),B(r,o,null),l=!0},p(a,s){(!l||s&4)&&Qe(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),R(r)}}}function H4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=De(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){C(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Qe(n,t)},d(o){o&&k(e)}}}function z4(i){let e,t;return{c(){e=T("span"),t=De(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&4&&Qe(t,n[2])},d(n){n&&k(e)}}}function q4(i){let e,t,n,o,r=[F4,O4],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function U4(i){let e,t,n;function o(l){i[19](l)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[q4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function K4(i,e,t){var E,ie,x;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=et(),w=(ie=(E=h.callbacks)==null?void 0:E.onEpisodeChanged)!=null?ie:em.noop,b=!!((x=h.callbacks)!=null&&x.onEpisodeClicked),S=h.ui.currentGridType$;H(i,S,j=>t(18,a=j));let y=h.ui.episodes.openedByKeyboard$;H(i,y,j=>t(17,l=j));let P=h.ui.episodes.panelOpened$;H(i,P,j=>t(3,r=j));let v=h.ui.isMobile;H(i,v,j=>t(6,s=j));let g,I=j=>{var M,Q,A;if(!!((M=h.callbacks)!=null&&M.onEpisodeClicked)){let ee=nl(j);y.set(ee),P.set(!0),(A=(Q=h.callbacks)==null?void 0:Q.onEpisodeClicked)==null||A.call(Q,ee)}},N,K,q,se=async(j,X,M)=>{await Kn(),(j==null?void 0:j.getAttribute("aria-expanded"))==="false"&&X&&!M&&(y.set(!1),j.focus())};function ne(j){g=j,t(1,g)}return i.$$set=j=>{"position"in j&&t(13,u=j.position),"duration"in j&&t(14,c=j.duration),"timeCodes"in j&&t(0,m=j.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/c);if(i.$$.dirty&114689)e:{let j=Nr(n,c,m);j&&(N==null?void 0:N.text)!==j.text&&(w(j),t(15,N=j))}if(i.$$.dirty&32768)e:t(2,o=(N==null?void 0:N.text)||"");if(i.$$.dirty&262144)e:Mn(a,"xl")?t(4,K="FULL"):Mn(a,"m")&&Vd(a,"xl")?t(4,K="COUNT"):t(4,K="SHORT");if(i.$$.dirty&4)e:t(5,q=`${G("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:se(g,l,r)},[m,g,o,r,K,q,s,b,S,y,P,v,I,u,c,N,n,l,a,ne]}var mu=class extends U{constructor(e){super(),W(this,e,K4,U4,z,{position:13,duration:14,timeCodes:0},N4)}},Hr=mu;function W4(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),be(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Le(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function G4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var pu=class extends U{constructor(e){super(),W(this,e,G4,W4,z,{})}},tm=pu;function j4(i){let e,t;return e=new tm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:G("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[j4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Y4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var _u=class extends U{constructor(e){super(),W(this,e,Y4,Q4,z,{ref:0,hidden:1,disabled:2,click:3})}},zr=_u;function Z4(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=L("svg"),l&&l.c(),t=L("path"),n=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Le(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function X4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var hu=class extends U{constructor(e){super(),W(this,e,X4,Z4,z,{})}},im=hu;function J4(i){Se(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function x4(i){let e,t;return e=new im({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var gu=class extends U{constructor(e){super(),W(this,e,$4,x4,z,{isOpened:0},J4)}},nm=gu;function e3(i){let e,t;return e=new nm({props:{isOpened:i[3]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function t3(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[e3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,l=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var bu=class extends U{constructor(e){super(),W(this,e,i3,t3,z,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},qr=bu;function n3(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function o3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var vu=class extends U{constructor(e){super(),W(this,e,o3,n3,z,{})}},Ur=vu;var lm=require("@vkontakte/videoplayer-shared");function l3(i){Se(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 om(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function r3(i){let e,t,n,o,r=i[1]&&om(i);return n=new Ur({}),{c(){r&&r.c(),e=O(),t=T("div"),D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),F(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),C(l,e,a),C(l,t,a),B(n,t,null),o=!0},p(l,a){l[1]?r||(r=om(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&F(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),r&&r.d(l),R(n)}}}function s3(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:G("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Yn.KeyK,$$slots:{default:[r3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function a3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=lm.noop}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var yu=class extends U{constructor(e){super(),W(this,e,a3,s3,z,{ref:0,isMobile:1,disabled:2,className:3,click:4},l3)}},Rl=yu;function u3(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function f3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var wu=class extends U{constructor(e){super(),W(this,e,f3,u3,z,{})}},rm=wu;function c3(i){let e,t;return e=new rm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d3(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:G("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[c3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function m3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var ku=class extends U{constructor(e){super(),W(this,e,m3,d3,z,{ref:0,hidden:1,disabled:2,click:3})}},Kr=ku;var Cu=require("@vkontakte/videoplayer-shared");function p3(i){Se(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 _3(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1x1zctw"),vs(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),n||(o=me(e,"error",i[7]),n=!0)},p(r,l){l&1&&!vs(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function h3(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',f(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){C(t,e,n)},p:de,d(t){t&&k(e)}}}function g3(i){let e;function t(r,l){return r[5]?h3:_3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function b3(i){let e,t;return e=new gt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[g3]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function v3(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=Cu.noop}=e,m=()=>{t(5,r=!0)};i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=c===Cu.noop);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,r=!1);return[l,a,u,c,n,r,o,m,s]}var Su=class extends U{constructor(e){super(),W(this,e,v3,b3,z,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},p3)}},Wr=Su;var Lm=require("@vkontakte/videoplayer-shared");var fn=require("@vkontakte/videoplayer-core"),kE=require("@vkontakte/videoplayer-shared"),ft=require("@vkontakte/videoplayer-shared"),oo=require("@vkontakte/videoplayer-statistics"),CE=require("@vkontakte/videoplayer-interactive");var Dt=require("@vkontakte/videoplayer-shared");var sm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var y3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Gr=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 Dt.Subject,started$:new Dt.Subject,paused$:new Dt.Subject,resumed$:new Dt.Subject,ended$:new Dt.Subject,skipped$:new Dt.Subject,clicked$:new Dt.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Dt.addScript)(y3,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,Dt.assertNonNullable)(this.adsState),(0,Dt.assertNonNullable)(this.playerState),(0,Dt.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{(0,Dt.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Dt.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Dt.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Dt.assertNonNullable)(this.adman),(0,Dt.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:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:c,previewParam:m}=e,h,w=this.playerState&&$e(this.playerState.vsid);w&&(h=parseInt(w,36));let b={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:sm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u},S={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:b,browser:{mobile:!1}},y=new window.AdmanHTML;y.setDebug(!1),y.onReady(this.onAdsReady),y.onStarted(this.onAdStarted),y.onPlayed(this.onAdPlayed),y.onPaused(this.onAdPaused),y.adMidrollPoint(this.onAdMidrollPoint),y.onClosed(this.onAdClosed),y.onSkipped(this.onAdSkipped),y.onClicked(this.onAdClicked),y.onTimeRemained(this.onAdTimeRemained),y.onCompleted(this.onAdCompleted),y.onError(this.onAdError),y.init(S),this.adman=y,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,Dt.assertNonNullable)(this.actions),(0,Dt.assertNonNullable)(this.adsState),(0,Dt.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,Dt.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=$e(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){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,Dt.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Dt.assertNonNullable)(this.adman),(0,Dt.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Dt.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Dt.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Dt.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 am=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 Pu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new jr,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new Tu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},jr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},Tu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((c,m)=>{let h=l.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new jr;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},um=Pu;var Qr=require("@vkontakte/videoplayer-shared"),bo,Yt,Iu=0,Eu=!1,fm=(i,e,t)=>{var u;let n=i>=Iu,o=i<Iu,r=(c,m=0,h=0)=>c<m&&c<h,l=(c,m=0,h=0)=>c>=m&&c<=h,a=(c,m=0,h=0)=>c>m&&c>h,s=(u=t.find(({lang:c})=>c===e.value))==null?void 0:u.subtitles;if(Iu=i,o&&(Eu=!1),(0,Qr.isNonNullable)(bo)&&l(i,bo.startTime,bo.endTime)&&bo.lang===e.value)return bo;if(!(0,Qr.isNonNullable)(Yt)&&(s!=null&&s.length)&&!Eu){let c=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Yt=c&&{...c,lang:e.value},bo=void 0,!(0,Qr.isNonNullable)(Yt)&&s[s.length-1].endTime<i&&(Eu=!0);return}else{if(l(i,Yt==null?void 0:Yt.startTime,Yt==null?void 0:Yt.endTime))return bo=Yt,Yt=void 0,bo;(n&&a(i,Yt==null?void 0:Yt.startTime,Yt==null?void 0:Yt.endTime)||o&&r(i,Yt==null?void 0:Yt.startTime,Yt==null?void 0:Yt.endTime))&&(Yt=void 0)}};var Yr={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 cm=require("@vkontakte/videoplayer-shared"),dm=require("@vkontakte/videoplayer-statistics"),Zr=class{constructor(e,t){this.oneStat=new dm.OneStat(e,t),this.statSubscription=new cm.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var mm=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:r,canDownload:l,callbacks:a,webApi:s,videoEpisodes:u,previewThumbsData:c,uiConfig:m,coreConfig:h,player:w,disabledControls:b,isInteractive:S,interactiveRanges$:y,isInteractiveTime$:P,replayInteractive:v,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,additionalButtons:N,looped:K=!1,statistics:q})=>{var Z,Ct,un,Ji;let se={...h,configName:[...(Z=h.configName)!=null?Z:[],"ui"],isAudioDisabled:r,live:{...(Ct=h.live)!=null?Ct:{},isLiveCatchUpMode:!!n}},ne=m,E=w||new fn.Player(se),ie=new ft.Logger,x=new Gr(ie,{loadTimeout:ne.ads.loadTimeout,initTimeout:ne.ads.initTimeout}),j=Ao.getInstance(),X=s==null?void 0:s.pictureInPictureApi,M=s==null?void 0:s.annotationsApi,Q=ie.createComponentLog("Store"),A,ee,Te={},je=(0,ft.getCurrentBrowser)(),Ke=q?Et(q.oneStat.vsid$):Rn(void 0),Je=Ne(co()),We=(un=X==null?void 0:X.info.isActive$)!=null?un:new ft.ValueSubject(!1),ye=X==null?void 0:X.info.type,J=Ne(0),ve=Ne([]),He=(0,ft.merge)(E.events.fatalError$,E.events.managedError$).subscribe(V=>ve.update(re=>[...re,V])),Xe=Rn(!1,V=>{let re=E.events.fatalError$.subscribe(()=>V(!0));return()=>re.unsubscribe()}),xe=async V=>{var Ge;let re=Object.values(ft.InterfaceLanguage).includes(V);if(ne.downloadVKLanguages&&(re&&ne.updateBuiltinLanguages||!Ls(V))){let rt;try{rt=await(0,ft.loadVKLangPack)(V,Jf,xf)}catch(wt){(Ge=q==null?void 0:q.oneStat)==null||Ge.logError({errorType:"VKLangPack",fatal:!1}),j==null||j.report(wt,{errorType:"VKLangPack",fatal:!1})}rt&&(Vs({language:V,pack:rt,fallback:ne.defaultLanguage}),he.set(V))}Ls(V)&&he.set(V)},he=Ne(i);xe(i);let Be=(V,re)=>{let Pe=$e(he);return As(Pe,V,re,ne.defaultLanguage)},Ue=Ne("thumb"),it=(()=>{let V=Ti([Xe,Ue],([re,Pe])=>re?"crashed":Pe);return{...V,is:re=>$e(V)===re}})(),ke=(()=>{let V=Ne(new Set(b));return{...V,add:re=>{V.update(Pe=>new Set([...Pe].concat(re)))},remove:re=>{V.update(Pe=>{let Ge=[...Pe];return new Set(Array.isArray(re)?Ge.filter(rt=>!re.includes(rt)):Ge.filter(rt=>rt!==re))})},includes:re=>{let Pe=$e(V);return Array.isArray(re)?re.every(Ge=>Pe.has(Ge)):Pe.has(re)}}})();Q({message:"create store"});let Y=V=>{let re=V.container;re.append(E.experimental.element$.getValue()),ut=new MutationObserver(Pe=>{let{removedNodes:Ge}=Pe[0];Ge.length&&re.append(E.experimental.element$.getValue())}),ut.observe(re,{childList:!0})},Ce=V=>{Q({message:`init video, config: ${JSON.stringify(V)}`}),S?Y(V):E.initVideo(V),V.subtitles&&E.setExternalTextTracks(V.subtitles),A=V},ue=new ft.Subject,Ie=V=>ue.next(V),Ye=new ft.Subject,at=new ft.Subject,dt=new ft.Subject,ut=null,kt={actionRewind$:Ye,actionSeek$:at,inPiP$:We,inFullscreen$:new ft.Observable(V=>Je.subscribe(re=>V.next(re))),actionSetSubtitle$:dt,nextMovie$:ue};if(q){let{oneStat:V,statSubscription:re}=q;re.add(V.attachTo(E)),re.add(V.attachToUi(kt)),re.add(V.attachToAds(x.events)),V.authorize(o).catch(Pe=>{Q({message:`onestat auth error ${String(Pe)}`})})}if(j){let V=new ft.Subscription,re=(Pe,Ge)=>V.add(Pe.subscribe(Ge));if(re(E.events.managedError$,Pe=>{j.logIError(Pe)}),re(E.events.fatalError$,Pe=>{j.logIError(Pe,!0)}),q){let{oneStat:Pe}=q;re(Pe.experimental.error$,Ge=>{j.logIError(Ge)})}j.sentrySubscription.add(V)}let bt=()=>{(0,ft.isIOS)()&&ee&&Ic(ee)},we=new ft.Subscription().add(E.experimental.element$.subscribe(V=>{V&&(ee=V,V.classList.add("player-media"),Ro(X)&&(X.updateVideoElement(),X.registryEventHandlers()),S&&V.setAttribute("pip","false"))})).add(E.events.ended$.subscribe(()=>{var V;bt(),(V=a==null?void 0:a.onEnded)==null||V.call(a)})).add(E.events.started$.subscribe(async()=>{var re,Pe;Ro(X)&&await(X==null?void 0:X.revealPictureInPicture());let V=E.info.muted$.getValue();(re=a==null?void 0:a.onStarted)==null||re.call(a),(Pe=Te.onStarted)==null||Pe.call(Te,V)})).add(E.events.willSeek$.subscribe(({from:V,to:re})=>{var Pe;(Pe=a==null?void 0:a.onSeek)==null||Pe.call(a,V,re)})).add(E.info.position$.subscribe(V=>{var Pe;let re=E.info.duration$.getValue();(Pe=a==null?void 0:a.onTimeupdate)==null||Pe.call(a,re,V),x.setPosition(V,re)})).add(E.events.fatalError$.subscribe(()=>{var V;(V=a==null?void 0:a.onCrashed)==null||V.call(a)})).add(E.events.firstBytes$.subscribe(()=>{yt.state.isFirstBytes$.set(!0)})).add(E.info.is3DVideo$.subscribe(V=>{yt.ui.is3DVideo.set(V)})).add(E.info.isEnded$.subscribe(V=>{S&&(V?(P!=null&&P.getValue()&&ke.add(Jl),ke.add("PLAY_BUTTON")):ke.remove("PLAY_BUTTON"))})).add(E.info.liveTime$.subscribe(V=>{var re;(re=a==null?void 0:a.onLiveTime)==null||re.call(a,V)})).add(E.info.isStalled$.subscribe(V=>{var re;(re=a==null?void 0:a.onStalledChanged)==null||re.call(a,V)})).add(x.events.started$.subscribe(()=>{var V,re;(re=(V=a==null?void 0:a.adsInfo)==null?void 0:V.onStarted)==null||re.call(V)})).add(x.events.ended$.subscribe(()=>{var V,re;(re=(V=a==null?void 0:a.adsInfo)==null?void 0:V.onCompleted)==null||re.call(V)})),pt=new ft.Subscription,Nt=()=>{pt.add(E.events.log$.subscribe(V=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${V.component}`,V.message)})).add(ie.log$.subscribe(V=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${V.component}.`,V.message)}))},Mt=()=>{pt.unsubscribe()},ze=(V,re)=>{E.startCameraManualRotation(V,re)},Ut=(V=!1)=>{E.stopCameraManualRotation(V)},_e=(V,re,Pe)=>{E.moveCameraFocusPX(V,re,Pe)},Vt=()=>{E.holdCamera()},Lt=()=>{E.releaseCamera()},_t=Rn(E.info.position$.getValue(),V=>{let re,Pe,Ge=()=>{let rt=E.info.playbackState$.getValue(),wt=E.info.isLive$.getValue(),qt=E.info.duration$.getValue(),Tt=E.info.position$.getValue();if([fn.PlaybackState.PLAYING,fn.PlaybackState.PAUSED].includes(rt)){let Ui=wt?Tt-qt:E.getExactTime();Ui!==Pe&&V(Ui),Pe=Ui}re=requestAnimationFrame(Ge)};return Ge(),()=>cancelAnimationFrame(re)}),ht=Et(We),lt=Et(E.info.playbackState$),Ae=Et(E.info.currentBuffer$),mt=Et(E.info.isEnded$),Jt=Et(E.info.isLive$),xt=ne.features.playbackRate?Et(E.info.canChangePlaybackSpeed$):Rn(!1),$i=Et(E.info.liveBufferTime$),dn=Et(E.info.volume$),pi=Et(E.info.muted$),_i=Ps(E.info.autoQualityLimits$.pipe((0,ft.map)(({max:V})=>V!==void 0)),((Ji=E.info.autoQualityLimits$.getValue())==null?void 0:Ji.max)!==void 0),Ii=Et(E.info.autoQualityLimitingAvailable$),ni=Et(E.info.availableQualities$),hi=Et(E.info.availableQualitiesFps$),en=Et(E.info.chromecastState$),Ei=Et(E.info.chromecastDeviceName$),Mi=Et(E.info.currentFormat$),gi=Et(E.info.throughputEstimation$),Vi=Et(E.info.videoBitrate$),bi=Et(E.info.intrinsicVideoSize$),Li=Et(E.info.duration$),Ai=Et(E.info.isAudioAvailable$),Ft=null,Kt=E.info.isBuffering$,Ht=Rn(Kt.getValue(),V=>{let re=Kt.subscribe(Pe=>{Pe&&Ft===null?Ft=window.setTimeout(()=>{V(Kt.getValue()),Ft=null},ne.loaderDelay):V(Pe)});return()=>{re.unsubscribe(),Ft&&clearTimeout(Ft)}}),vi=()=>{Ft&&clearTimeout(Ft),Ft=null},Zt=Ti([Li,Jt],([V,re])=>re?-V:V),yi=Ti([lt],([V])=>V===fn.PlaybackState.PLAYING),oi=Et(E.info.atLiveEdge$),ui=Et(E.info.atLiveDurationEdge$),vt=Et(E.info.position$),Wt=Ti([vt,Li],([V,re])=>isFinite(V)&&isFinite(re)&&!!re),St=Ti([en],([V])=>V===fn.ChromecastState.CONNECTED),li=Ne(void 0),wi=Et(E.info.isAutoQualityEnabled$,V=>V&&li.set(void 0)),bn=Et(E.info.currentQuality$,()=>li.set(void 0)),tn=Ti([li,bn],([V,re])=>V!=null?V:re),ri=Ti([ni,hi,wi,tn,Mi],([V,re,Pe,Ge,rt])=>{let wt=[];rt!==fn.VideoFormat.MPEG&&wt.push({value:"auto",displayValue:Be("auto_quality_option"),selected:Pe});let qt=V.filter(Tt=>Tt!==ft.VideoQuality.INVARIANT);for(let Tt of qt){let Ui=re[Tt],So=Tt===ft.VideoQuality.INVARIANT?Be("auto_quality_option"):Tt;wt.push({value:Tt,displayValue:`${So}${Ui?am(Ui):""}`,selected:Pe?!1:Tt===Ge})}return wt}),fi=Et(E.info.currentPlaybackRate$),Bi=Ti([fi,oi,ui],([V,re,Pe])=>{let Ge=Pe||S?1:ne.controls.playbackRateMin,rt=re?1:ne.controls.playbackRateMax,wt=ne.controls.playbackRateStep,qt=[];for(let Tt=Ge;Tt<=rt;Tt+=wt)qt.push({value:Tt,displayValue:Tt===1?Be("playback_rate_1"):Be("playback_rate",{multiplier:Tt.toString(10)}),selected:V===Tt});return qt}),Gi=ne.features.subtitles?Et(E.info.availableTextTracks$):Rn([]),$t=Ti([Gi],([V],re)=>{let Pe=[],Ge=[];for(let rt of V)rt.url&&Pe.push(fetch(rt.url));Promise.allSettled(Pe).then(rt=>{for(let[wt,qt]of rt.entries())qt.status==="fulfilled"&&qt.value.text().then(Tt=>{let Ui=new um,So=V[wt].language,zl=!!V[wt].isAuto,Go=Ui.parse(Tt);So&&Go&&Ge.push({lang:So,subtitles:Go,isAuto:zl}),wt===rt.length-1&&re(Ge)})})}),At={displayValue:Be("subtitles_off"),value:"off"},Ri=Ne({...At}),nn=Ti([$t,Ri,$t],([V,re])=>{if((V==null?void 0:V.length)>0){let Pe=[{...At,selected:(re==null?void 0:re.value)===At.value}];for(let{lang:Ge,isAuto:rt}of V)Yr[Ge]&&Pe.push({displayValue:rt?Be("subtitles_auto",{language:Yr[Ge]}):Yr[Ge],value:Ge,selected:(re==null?void 0:re.value)===Ge,isAuto:rt});return Pe}else return[]}),ci=Ti([_t,Ri,$t],([V,re,Pe])=>{if(re&&re.value!==At.value)return fm(V,re,Pe)}),on=Ti([ci],([V])=>V!=null&&V.texts?V.texts:[]),ki=Ne(!0),mn=Ti([Ae,Zt,vt,$i],([V,re,Pe,Ge])=>{var Tt;let rt=(Tt=V==null?void 0:V.end)!=null?Tt:0;if(!Ge)return rt/re;let qt=-Pe+Ge-re;return(rt-qt)/re}),ln=Et(E.info.availableSources$),pn=Ti([ln],([V])=>Object.keys((V==null?void 0:V[fn.VideoFormat.MPEG])||{}).length>0),ji=()=>{var Pe,Ge,rt;let V=Object.keys(((Ge=(Pe=E.info.availableSources$)==null?void 0:Pe.getValue())==null?void 0:Ge[fn.VideoFormat.MPEG])||{}),re=(0,ft.getHighestQuality)(V)||ft.VideoQuality.Q_144P;return(rt=A.sources[fn.VideoFormat.MPEG])==null?void 0:rt[re]},Di=()=>{var re;let V=ji();V?fc(V,((re=A==null?void 0:A.meta)==null?void 0:re.title)||"video"):Q({message:"There is no URL for download video"})},ei=()=>{Q({message:"toggle muted"});let V=E.info.muted$.getValue(),Ge=!(E.info.volume$.getValue()===0||V);Si(Ge)},si=()=>{yt.ui.settingsMenuVisible.set(!1)},Ci=V=>{yt.ui.settingsMenuOpenedByKeyboard.set(!!V),yt.ui.settingsMenuVisible.set(!0)},Qi=V=>{$e(yt.ui.settingsMenuVisible)?si():Ci(V)},Yi=(V,re=V,Pe=!1)=>{var wt,qt,Tt;let Ge=!Pe,rt=E.info.muted$.getValue();Q({message:`set volume, volume: ${V}, preferredVolume: ${re}, internalCall: ${Ge}`}),E.setVolume(V),x.setVolume(V),Ge&&((wt=a==null?void 0:a.onVolumeChange)==null||wt.call(a,V)),Is(re),rt?(E.setMuted(!1),Ge&&((qt=a==null?void 0:a.onUnmute)==null||qt.call(a)),tr(!1)):!rt&&V===0&&(E.setMuted(!0),Ge&&((Tt=a==null?void 0:a.onMute)==null||Tt.call(a)),tr(!0))},Si=(V,re=!1)=>{var rt,wt,qt,Tt;let Pe=!re,Ge=E.info.volume$.getValue();if(Q({message:`set muted, currentVolume: ${Ge}, mute: ${V}, internalCall: ${Pe}`}),E.setMuted(V),x.setVolume(V?0:Ge),tr(V),Pe&&(V?(rt=a==null?void 0:a.onMute)==null||rt.call(a):(wt=a==null?void 0:a.onUnmute)==null||wt.call(a)),Ge===0){let Ui=(qt=er())!=null?qt:ne.volumeDefault;Ui===0&&(Ui=ne.volumeMinRestore,Is(Ui)),E.setVolume(Ui),x.setVolume(Ui),Pe&&((Tt=a==null?void 0:a.onVolumeChange)==null||Tt.call(a,Ui))}},Ni=Ne(!1),Oi=V=>{Ni.set(V),E.setLooped(V)};Oi(K);let Ze=()=>{E.prepare()},Zi=()=>{var re,Pe;if((0,ft.assertNonNullable)(yt),!$e(yt.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(Q({message:"toggle play"}),$e(yt.playerPhase)==="ads"){x.togglePlay();return}if(E.info.playbackState$.getValue()!==fn.PlaybackState.PLAYING){if(E.info.isEnded$.getValue()){if(Q({message:"toggle play, video ended, seek to 0"}),Ye.next(),at.next(oo.SeekAction.REWIND),S){v==null||v();return}E.seekTime(0)}Q({message:"toggle play, call player.play"}),E.play(),(re=a==null?void 0:a.onPlay)==null||re.call(a)}else Q({message:"toggle play, call player.pause"}),E.pause(),(Pe=a==null?void 0:a.onPause)==null||Pe.call(a)}},Xt=V=>{Q({message:`set quality, quality: ${V}`}),E.setAutoQuality(V==="auto"),V!=="auto"?(_c(e,V),li.set(V),E.setQuality(V)):Es()},qe=V=>{Q({message:`set trafficSavingEnabled, value: ${V}`}),E.setAutoQualityLimits({max:V?ne.trafficSavingLimit:void 0}),yc(V)},Fi=V=>{E.setPlaybackRate(V)},rn=()=>{let V=$e(Bi),re=V.findIndex(({selected:Ge})=>Ge);if(re===V.length-1)return;let Pe=V[re+1];Fi(Pe.value)},Xi=()=>{let V=$e(Bi),re=V.findIndex(({selected:Ge})=>Ge);if(re===0)return;let Pe=V[re-1];Fi(Pe.value)},Hi=V=>{V&&V.value!==At.value&&dt.next(V.isAuto?V.value+"_auto":V.value),Ri.set(V)},_n=()=>{let V=$e(nn),re=$e(Ri),Pe=$e(he);if((re==null?void 0:re.value)===At.value){let Ge=V.filter(rt=>rt.value!==At.value).find(rt=>rt.value===Pe)||V[1];Hi(Ge!=null?Ge:{...At})}else Hi({...At,selected:!1})},zi=(V,re,Pe=!0)=>{if(Q({message:`seek to time, time: ${V}`}),at.next(re),E.info.isLive$.getValue()){let Ge=E.info.duration$.getValue(),rt=Math.min(0,Ge+V);E.seekTime(rt,Pe)}else{if(P!=null&&P.getValue())return;E.seekTime(ko(V),Pe)}},sn=V=>{Q({message:`seek to episode start time: ${V}`}),zi(V,oo.SeekAction.EPISODE,!0)},ti=(V,re)=>{Q({message:`seek to percent, percent: ${V}`});let Pe=Math.round($e(Zt)*V);zi(Pe,re,!1)},an=V=>{Q({message:`seek external, time: ${V}`}),at.next(oo.SeekAction.UNKNOWN),E.seekTime(E.info.isLive$.getValue()?-V:V)},di=V=>{var re,Pe;Q({message:`set auto quality limitation. Max: ${(re=V.max)!=null?re:"none"}. Min: ${(Pe=V.min)!=null?Pe:"none"}`}),E.setAutoQualityLimits(V)},ae=V=>{Q({message:`seek external to episode start time: ${V}`}),zi(V,oo.SeekAction.EPISODE,!0)},ct=V=>{Q({message:`set playback rate to: ${V}`}),E.setPlaybackRate(V)},ii=Ne(void 0),ai=Ne(!1),qi=V=>{Q({message:`start scrubbing, progress: ${V}`}),ai.set(!0),Gt(V)},Gt=V=>{ii.set(V)},Vn,Ln,Cn=()=>{ii.set(void 0),ai.set(!1)},jt=()=>{clearTimeout(Ln),clearTimeout(Vn),Vn=window.setTimeout(()=>{Cn()},500),ee==null||ee.removeEventListener("seeked",jt)},An=V=>{Q({message:`complete scrubbing, progress: ${V}`}),ti(V,oo.SeekAction.SLIDER),$e(yt.ui.isMobile)&&$e(yt.state.currentFormat$)===fn.VideoFormat.HLS?(ee==null||ee.addEventListener("seeked",jt),Ln=window.setTimeout(()=>{jt()},300)):Cn()},jn=Ti([_t,Zt,ii],([V,re,Pe],Ge)=>{Ge((0,ft.isNonNullable)(Pe)?Pe*re:V)}),Bn=Ne({width:0,height:0}),Fn=Ti([Bn],([{width:V}],re)=>{let Pe=Ld(V);re(Pe)}),Sn=Ne(!1),vn=Ti([Fn,Sn],([V,re])=>re?N.filter(Pe=>!Pe.hideOnMobile):N.filter(Pe=>{var Ge;return!((Ge=Pe.hideOnDesktopGridTypes)!=null&&Ge.includes(V))})),Hn=Ti([Sn,Xe],([V,re],Pe)=>{Pe(V&&re)}),zn=()=>{at.next(oo.SeekAction.LIVE),Q({message:"switch to active live"}),E.seekTime(0),E.info.playbackState$.getValue()!==fn.PlaybackState.PLAYING&&yt.actions.internal.togglePlay()},oe=()=>x.skip(),Pt=(V=!0)=>{(0,ft.assertNonNullable)(yt),Q({message:`switch from ads to video, callPlay: ${V}`}),Ue.set("video"),V&&E.play()},Pn=()=>{(0,ft.assertNonNullable)(yt),Q({message:"switch from video to ads"}),yt.actions.internal.pause(),bt(),Ue.set("ads")},hn=V=>{(0,ft.assertNonNullable)(yt);let re=V?"waitingLive":"thumb";Ue.set(re)},Tn=V=>{(0,ft.assertNonNullable)(yt);let re=V?"waitingRecord":"thumb";Ue.set(re)},yn=()=>((0,ft.assertNonNullable)(yt),ac(E,A,yt)),lo=()=>((0,ft.assertNonNullable)(yt),uc(E,A,yt)),ro=()=>ee,yo=()=>{Q({message:"toggle chromecast"}),E.toggleChromecast()},xn=V=>{var Pe;(0,ft.assertNonNullable)(yt);let re=!V;if($e(yt.playerPhase)==="ads"){Q({message:`pause ads, internalCall: ${re}`}),x.pause();return}Q({message:`pause video, internalCall: ${re}`}),re&&((Pe=a==null?void 0:a.onPause)==null||Pe.call(a)),E.pause()},wn=V=>{var Pe;(0,ft.assertNonNullable)(yt);let re=!V;if($e(yt.playerPhase)==="ads"){Q({message:`play ads, internalCall: ${re}`}),x.play();return}Q({message:`play video, internalCall: ${re}`}),re&&((Pe=a==null?void 0:a.onPlay)==null||Pe.call(a)),E.play()},te=(V,re)=>{(0,ft.assertNonNullable)(yt),Q({message:`first start, show ads: ${V}, internalCall: ${!re}`}),V?Ue.set("ads"):(Ue.set("video"),re?E.play():yt.actions.internal.togglePlay())},$n=()=>(Q({message:"getting time codes"}),u),so=()=>{let V=$n();if(!V||[0,1].includes(V.length))return;let re=E.info.position$.getValue();return V.find(Pe=>Pe.time>re)},qo=V=>{let re=V;re||(re=so()),re&&(Q({message:"seek to next episode"}),zi(re.time,oo.SeekAction.EPISODE,!0))},Qn=()=>{let V=$n();if(!V||[0,1].includes(V.length))return;let re=E.info.position$.getValue(),Pe=V.findIndex(rt=>rt.time>re),Ge=Pe===-1?V.length-2:Pe-2;if(!(Ge<0))return V[Ge]},ao=V=>{let re=V;re||(re=Qn()),re&&(Q({message:"seek to prev episode"}),zi(re.time,oo.SeekAction.EPISODE,!0))},Uo=()=>(Q({message:"getting preview thumbs data"}),c),Ko=async()=>{X!=null&&X.isActive()?await(X==null?void 0:X.remove()):await(X==null?void 0:X.request())},vl=(V=-90)=>{J.update(re=>re+V)},eo=Ne([]);y==null||y.subscribe(V=>{let re=[];for(let Pe=0;Pe<V.length;Pe++){let{range:[Ge,rt],subjects:wt}=V[Pe];Pe===0&&Ge!==0&&re.push({time:0,text:"",interactive:!1,completed:!0}),re.push({time:Ge/1e3,text:"",interactive:!0,completed:!wt.length}),rt!==1/0&&re.push({time:rt/1e3,text:"",interactive:!1,completed:!0})}eo.set(re)});let wo=Ne(!1);P==null||P.subscribe(V=>{V&&$e(ai)&&Cn()});let ko=V=>{if(!S)return V;let re=$e(eo),Pe=$e(Zt),rt=$e(vt)/Pe,wt=re.find(qt=>qt.interactive&&!qt.completed&&qt.time>rt);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(V,wt.time-.05):V},Wo=()=>{yt.ui.episodes.panelOpened$.set(!1)},Co=()=>{clearTimeout(Ln),clearTimeout(Vn),we.unsubscribe(),pt.unsubscribe(),E.destroy(),x.destroy(),q==null||q.destroy(),j==null||j.destroy(),He.unsubscribe(),ut==null||ut.disconnect(),ut=null},yt={interfaceLanguage$:he,initVideo:Ce,videoId:e,isClip:t,playerPhase:it,vsid:Ke,state:{positionExact$:_t,positionWithScrubbing$:jn,duration$:Zt,playbackState$:lt,isPlaying$:yi,isLoaderVisible:Ht,bufferedProgress$:mn,isLive$:Jt,canChangePlaybackSpeed$:xt,isActiveLive$:oi,isOldestAvailableLive$:ui,isRewindableLive$:Wt,isEnded$:mt,muted$:pi,volume$:dn,trafficSavingEnabled$:_i,autoQualityLimitingAvailable$:Ii,currentQuality$:tn,isAutoQualityEnabled$:wi,availableQualities$:ri,currentPlaybackRate$:fi,availablePlaybackRates$:Bi,currentSubtitle$:Ri,availableSubtitlesList$:nn,currentSubtitleCaptions$:on,isAutoSubtitleCaptionVisible$:ki,chromecastState$:en,chromecastDeviceName$:Ei,chromecastConnected$:St,currentFormat$:Mi,throughputEstimation$:gi,videoBitrate$:Vi,videoSize$:bi,errorLog$:ve,crashed$:Xe,isAudioAvailable$:Ai,isAudioDisabled:!!r,canDownload:ne.features.download&&!!l,availableSources$:ln,hasMpegSources$:pn,isInteractive:S,showInteractiveGraph:ne.features.interactiveGraph,showSeekToInteractive:ne.features.seekToInteractive,showPlayPrevChapter:ne.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ne.features.interactiveTimeIndicator&&!!$e(eo).length,interactiveEpisodes$:eo,isInteractiveTime$:P?Et(P):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:wo,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,looped$:Ni,isFirstBytes$:Ne(!1)},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),interactiveTimeIndicator:Ne(void 0),additionalButtons:N.length?N.reduce(V=>[...V,Ne(void 0)],[]):[],disabledControls$:ke},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Je,rotateAlpha:J,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:Bn,isMobile:Sn,mobileNotReportControlHidden$:Hn,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),settingsMenuVisible:Ne(!1),settingsMenuOpenedByKeyboard:Ne(!1),scrubbingInProgress:ai,is3DVideo:Ne(!1),isPictureInPictureActive$:ht,pictureInPictureType$:Rn(ye),clientInfo$:Rn(je),currentGridType$:Fn,additionalButtons$:vn,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1)},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:X,annotationsApi:M},actions:{internal:{preload:Ze,firstStart:V=>te(V,!1),pause:()=>xn(!1),togglePlay:Zi,toggleMuted:ei,toggleSettingsMenu:Qi,openSettingsMenu:Ci,closeSettingsMenu:si,setVolume:Yi,setQuality:Xt,setTrafficSavingEnabled:V=>qe(V),setPlaybackRate:Fi,incrementPlaybackRate:rn,decrementPlaybackRate:Xi,setSubtitle:Hi,toggleSubtitle:_n,togglePictureInPicture:Ko,startScrubbing:qi,progressScrubbing:Gt,completeScrubbing:An,toggleChromecast:yo,switchToActiveLive:zn,switchFromAdsToVideo:Pt,switchFromVideoToAds:Pn,skipAd:oe,setWaitingLive:hn,setWaitingRecord:Tn,getDebugTextData:yn,getDebugPanelData:lo,getVideoElement:ro,seekTime:(V,re,Pe)=>zi(V,re,Pe),clearDelayedBufferingCheckTimeout:vi,seekEpisodeStartTime:sn,seekToPercent:ti,getNextEpisode:so,seekToNextEpisode:qo,getPrevEpisode:Qn,seekToPrevEpisode:ao,startLogging:Nt,stopLogging:Mt,startCameraManualRotation:ze,stopCameraManualRotation:Ut,moveCameraFocusPX:_e,holdCamera:Vt,releaseCamera:Lt,getVideoEpisodes:$n,getPreviewThumbsData:Uo,downloadVideo:Di,addLanguage:Vs,setLanguage:xe,nextMovie:Ie,videoRotate:vl,correctSeekTimeToInteractive:ko,replayInteractive:v,setLooped:Oi},external:{firstStart:V=>te(V,!0),play:()=>wn(!0),pause:()=>xn(!0),seekTime:V=>an(V),seekEpisodeStartTime:V=>ae(V),setPlaybackRate:V=>ct(V),setAutoQualityLimits:V=>di(V),setMuted:V=>Si(V,!0),setVolume:V=>Yi(V,V,!0),returnFocusToEpisodes:Wo}},callbacks:a,setUiCallbacks:V=>{Te={...V}},getAdmanWrapper:()=>x,getLogger:()=>ie,destroy:Co};return yt};var Jr=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let c=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-l.left):0,right:m?Math.round(c.right-l.left):0,top:m?Math.round(c.top-l.top):0,bottom:m?Math.round(c.bottom-l.top):0,isDisplayed:m})}};var xr=async(i,e,t)=>{await Kn(),e&&t&&(t.focus(),i.set(!1))};function k3(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function C3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Mu=class extends U{constructor(e){super(),W(this,e,C3,k3,z,{})}},pm=Mu;function S3(i){let e,t;return e=new pm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function P3(i){let e,t,n;function o(l){i[8](l)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[S3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function T3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=et(),a=l.ui.contextMenu.visible$;H(i,a,P=>t(3,n=P));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,w=P=>{let v=nl(P),g=jc(h);c.set(g),s.set(v),a.set(!n)},b=()=>{u.set(!0)},S=()=>{u.set(!1)};function y(P){h=P,t(2,h)}return i.$$set=P=>{"disabled"in P&&t(0,o=P.disabled),"ariaLabel"in P&&t(1,r=P.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&m.set(h)},[o,r,h,n,a,w,b,S,y]}var Vu=class extends U{constructor(e){super(),W(this,e,T3,P3,z,{disabled:0,ariaLabel:1})}},_m=Vu;function I3(i){Se(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 E3(i){let e,t;return e=new Er({props:{completed:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M3(i){let e,t,n,o,r,l,a,s,u,c;function m(w){i[22](w)}let h={tooltipContent:G("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[E3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ot({props:h}),pe.push(()=>Fe(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),D(t.$$.fragment),o=O(),r=T("div"),l=O(),a=T("div"),f(r,"class","ref-block svelte-17imlp9"),F(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),F(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),F(e,"mobile",i[2]),F(e,"fullscreen",i[6]),F(e,"invisible",i[1])},m(w,b){C(w,e,b),B(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(c=[me(e,"mousemove",st(i[21])),me(e,"mouseleave",i[15])],u=!0)},p(w,b){let S={};b[0]&32&&(S.tooltipActive=w[5]),b[1]&1&&(S.$$scope={dirty:b,ctx:w}),!n&&b[0]&1&&(n=!0,S.ref=w[0],Oe(()=>n=!1)),t.$set(S),(!s||b[0]&2)&&F(r,"hidden",w[1]),(!s||b[0]&16)&&F(a,"paused",w[4]),(!s||b[0]&4)&&F(e,"mobile",w[2]),(!s||b[0]&64)&&F(e,"fullscreen",w[6]),(!s||b[0]&2)&&F(e,"invisible",w[1])},i(w){s||(d(t.$$.fragment,w),s=!0)},o(w){_(t.$$.fragment,w),s=!1},d(w){w&&k(e),R(t),i[23](null),i[24](null),u=!1,tt(c)}}}function V3(i,e,t){var ee;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=et(),h=Dn(),{interactiveControlsOpacity$:w}=h;H(i,w,Te=>t(18,o=Te));let b=m.ui.isMobile;H(i,b,Te=>t(2,a=Te));let S=m.ui.isFullscreen;H(i,S,Te=>t(6,s=Te));let y=m.state.isInteractiveTime$;H(i,y,Te=>t(19,r=Te));let P=h.showInteractiveTimeIndicatorTooltip$;H(i,P,Te=>t(17,n=Te));let v=m.ui.controlsVisible;H(i,v,Te=>t(20,l=Te));let g=(ee=m.callbacks)==null?void 0:ee.onInteractiveTimeIndicatorClick,I,N,K,q=()=>{t(4,K=!0)},se=()=>{ne(),c==null||c.addEventListener("animationiteration",q,{once:!0})},ne=()=>{t(4,K=!1),c==null||c.removeEventListener("animationiteration",q)},E=Te=>{P.set(Te)},ie,x=()=>{N||(P.set(!0),g==null||g())};Un(()=>{P.clearTimeout(),ne()});let j=()=>{P.set(!1)};function X(Te){In.call(this,i,Te)}function M(Te){u=Te,t(0,u)}function Q(Te){pe[Te?"unshift":"push"](()=>{u=Te,t(0,u)})}function A(Te){pe[Te?"unshift":"push"](()=>{c=Te,t(3,c)})}return i.$$set=Te=>{"ref"in Te&&t(0,u=Te.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,I=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,N=!r||!!o||I);if(i.$$.dirty[0]&2)e:t(4,K=N);if(i.$$.dirty[0]&131074)e:t(5,ie=n&&!N);if(i.$$.dirty[0]&131072)e:n?se():ne()},[u,N,a,c,K,ie,s,w,b,S,y,P,v,E,x,j,I,n,o,r,l,X,M,Q,A]}var Lu=class extends U{constructor(e){super(),W(this,e,V3,M3,z,{ref:0},I3,[-1,-1])}},$r=Lu;function A3(i){Se(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 hm(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 gm(i){let e,t,n;function o(l){i[173](l)}let r={disabled:!i[9],tooltipContent:G("tooltip_previous"),$$slots:{default:[B3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function B3(i){let e,t;return e=new fl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function bm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:i[74],tooltipContent:G("tooltip_restart"),$$slots:{default:[R3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function R3(i){let e,t;return e=new Rl({props:{click:i[128],disabled:i[74]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function vm(i){let e,t,n;function o(l){i[176](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[D3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function D3(i){let e,t,n;function o(l){i[175](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Bl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function ym(i){let e,t,n;function o(l){i[177](l)}let r={disabled:!i[8],tooltipContent:G("tooltip_next"),$$slots:{default:[N3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function N3(i){let e,t;return e=new fl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function O3(i){let e,t,n,o,r=i[121]&&F3(i),l=i[120]&&z3(i),a=i[119]&&U3(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=ot()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function F3(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:G("tooltip_interactive_go_back"),disabledTooltipContent:G(i[124]),$$slots:{default:[H3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function H3(i){let e,t;return e=new Kr({props:{disabled:i[73],click:i[17]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function z3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:G("tooltip_interactive_seek"),disabledTooltipContent:G(i[78]),$$slots:{default:[q3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=G(l[78])),a[0]&32768|a[2]&16384|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function q3(i){let e,t;return e=new zr({props:{disabled:i[76],click:i[15]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function U3(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function K3(i){let e,t;return e=new qr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function wm(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[50],$$slots:{default:[W3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function W3(i){let e,t;return e=new Dr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function km(i){let e,t,n;function o(l){i[182](l)}let r={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Tr({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Cm(i){let e,t;return e=new Hr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function G3(i){let e,t,n=i[20]&&Cm(i);return{c(){n&&n.c(),e=ot()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=Cm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function j3(i){var n;let e,t;return e=new Wr({props:{iconUrl:i[209],ariaLabel:(n=i[210])!=null?n:i[213],testId:i[211],onClick:i[212]}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[209]),r[0]&268435456&&(l.ariaLabel=(a=o[210])!=null?a:o[213]),r[0]&268435456&&(l.testId=o[211]),r[0]&268435456&&(l.onClick=o[212]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Sm(i){let e,t;return e=new Ot({props:{tooltipContent:i[213],width:40,$$slots:{default:[j3]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Pm(i){let e,t,n;function o(l){i[185](l)}let r={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[Q3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Q3(i){let e,t;return e=new Ar({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Y3(i){let e,t;return e=new Bd({props:{click:i[127]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tm(i){let e,t,n;function o(l){i[187](l)}let r={tooltipContent:i[52],$$slots:{default:[Z3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Z3(i){let e,t;return e=new hd({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Im(i){var a;let e,t,n,o;function r(s){i[188](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Pr({props:l}),pe.push(()=>Fe(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","settings-menu svelte-st0uzk")},m(s,u){C(s,e,u),B(t,e,null),o=!0},p(s,u){var m;let c={};u[0]&1024&&(c.supportLink=s[10]),u[1]&32768&&(c.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(c.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,c.ref=s[24],Oe(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),R(t)}}}function Em(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:G("tooltip_settings_off"),$$slots:{default:[X3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:G("tooltip_settings_off")),a[0]&33554432|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function X3(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Ll({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function J3(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[x3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function x3(i){let e,t;return e=new _m({props:{ariaLabel:i[49]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mm(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[$3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function $3(i){let e,t;return e=new Vr({props:{click:i[13],isFullscreen:i[30]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[ev]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function ev(i){let e,t;return e=new Br({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function tv(i){let e,t,n;function o(l){i[196](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new $r({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function iv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,ie,x,j,X;t=new Fr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let M=i[38]&&gm(i),Q=i[35]&&bm(i),A=i[36]&&vm(i),ee=i[37]&&ym(i),Te=i[117]&&O3(i),je=!i[4]&&i[33]&&wm(i),Ke=i[19]&&km(i);function Je(ue){i[183](ue)}let We={className:"w-max",disabled:!i[20],tooltipContent:G("tooltip_episodes"),$$slots:{default:[G3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(We.ref=i[23].episodes),w=new Ot({props:We}),pe.push(()=>Fe(w,"ref",Je));let ye=It(i[28]),J=[];for(let ue=0;ue<ye.length;ue+=1)J[ue]=Sm(hm(i,ye,ue));let ve=ue=>_(J[ue],1,1,()=>{J[ue]=null}),He=i[43]&&!i[4]&&Pm(i);function Xe(ue){i[186](ue)}let xe={$$slots:{default:[Y3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(xe.ref=i[23].volume),I=new Ot({props:xe}),pe.push(()=>Fe(I,"ref",Xe));let he=i[40]&&Tm(i),Be=!i[83]&&!i[4]&&Im(i),Ue=i[42]&&!i[4]&&Em(i),it=i[84].features.contextMenuButton&&J3(i),ke=i[44]&&Mm(i),Y=i[39]&&Vm(i),Ce=i[122]&&tv(i);return{c(){e=T("div"),D(t.$$.fragment),n=O(),o=T("div"),r=T("div"),M&&M.c(),l=O(),Q&&Q.c(),a=O(),A&&A.c(),s=O(),ee&&ee.c(),u=O(),Te&&Te.c(),c=O(),je&&je.c(),m=O(),Ke&&Ke.c(),h=O(),D(w.$$.fragment),y=O(),P=T("div");for(let ue=0;ue<J.length;ue+=1)J[ue].c();v=O(),He&&He.c(),g=O(),D(I.$$.fragment),K=O(),he&&he.c(),q=O(),Be&&Be.c(),se=O(),Ue&&Ue.c(),ne=O(),it&&it.c(),E=O(),ke&&ke.c(),ie=O(),Y&&Y.c(),x=O(),Ce&&Ce.c(),j=ot(),f(r,"class","controls-left svelte-st0uzk"),Wn(()=>i[184].call(r)),f(P,"class","controls-right svelte-st0uzk"),f(o,"class","controls svelte-st0uzk"),f(e,"class","wrapper-bottom svelte-st0uzk"),F(e,"hidden",i[1]),F(e,"controls-hidden",!i[3]),F(e,"no-smooth",i[2])},m(ue,Ie){C(ue,e,Ie),B(t,e,null),p(e,n),p(e,o),p(o,r),M&&M.m(r,null),p(r,l),Q&&Q.m(r,null),p(r,a),A&&A.m(r,null),p(r,s),ee&&ee.m(r,null),p(r,u),Te&&Te.m(r,null),p(r,c),je&&je.m(r,null),p(r,m),Ke&&Ke.m(r,null),p(r,h),B(w,r,null),S=jo(r,i[184].bind(r)),p(o,y),p(o,P);for(let Ye=0;Ye<J.length;Ye+=1)J[Ye]&&J[Ye].m(P,null);p(P,v),He&&He.m(P,null),p(P,g),B(I,P,null),p(P,K),he&&he.m(P,null),p(P,q),Be&&Be.m(P,null),p(P,se),Ue&&Ue.m(P,null),p(P,ne),it&&it.m(P,null),p(P,E),ke&&ke.m(P,null),p(P,ie),Y&&Y.m(P,null),i[194](o),i[195](e),C(ue,x,Ie),Ce&&Ce.m(ue,Ie),C(ue,j,Ie),X=!0},p(ue,Ie){let Ye={};Ie[1]&16384&&(Ye.isHidden=!ue[45]),Ie[0]&16&&(Ye.isAds=ue[4]),Ie[0]&32&&(Ye.canRewindLive=ue[5]),Ie[1]&2&&(Ye.isRewindableLive=ue[32]),t.$set(Ye),ue[38]?M?(M.p(ue,Ie),Ie[1]&128&&d(M,1)):(M=gm(ue),M.c(),d(M,1),M.m(r,l)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),ue[35]?Q?(Q.p(ue,Ie),Ie[1]&16&&d(Q,1)):(Q=bm(ue),Q.c(),d(Q,1),Q.m(r,a)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce()),ue[36]?A?(A.p(ue,Ie),Ie[1]&32&&d(A,1)):(A=vm(ue),A.c(),d(A,1),A.m(r,s)):A&&(fe(),_(A,1,1,()=>{A=null}),ce()),ue[37]?ee?(ee.p(ue,Ie),Ie[1]&64&&d(ee,1)):(ee=ym(ue),ee.c(),d(ee,1),ee.m(r,u)):ee&&(fe(),_(ee,1,1,()=>{ee=null}),ce()),ue[117]&&Te.p(ue,Ie),!ue[4]&&ue[33]?je?(je.p(ue,Ie),Ie[0]&16|Ie[1]&4&&d(je,1)):(je=wm(ue),je.c(),d(je,1),je.m(r,m)):je&&(fe(),_(je,1,1,()=>{je=null}),ce()),ue[19]?Ke?(Ke.p(ue,Ie),Ie[0]&524288&&d(Ke,1)):(Ke=km(ue),Ke.c(),d(Ke,1),Ke.m(r,h)):Ke&&(fe(),_(Ke,1,1,()=>{Ke=null}),ce());let at={};if(Ie[0]&1048576&&(at.disabled=!ue[20]),Ie[0]&1048576|Ie[2]&1310720|Ie[6]&1073741824&&(at.$$scope={dirty:Ie,ctx:ue}),!b&&Ie[0]&8388608&&(b=!0,at.ref=ue[23].episodes,Oe(()=>b=!1)),w.$set(at),Ie[0]&268435456){ye=It(ue[28]);let ut;for(ut=0;ut<ye.length;ut+=1){let kt=hm(ue,ye,ut);J[ut]?(J[ut].p(kt,Ie),d(J[ut],1)):(J[ut]=Sm(kt),J[ut].c(),d(J[ut],1),J[ut].m(P,v))}for(fe(),ut=ye.length;ut<J.length;ut+=1)ve(ut);ce()}ue[43]&&!ue[4]?He?(He.p(ue,Ie),Ie[0]&16|Ie[1]&4096&&d(He,1)):(He=Pm(ue),He.c(),d(He,1),He.m(P,g)):He&&(fe(),_(He,1,1,()=>{He=null}),ce());let dt={};Ie[6]&1073741824&&(dt.$$scope={dirty:Ie,ctx:ue}),!N&&Ie[0]&8388608&&(N=!0,dt.ref=ue[23].volume,Oe(()=>N=!1)),I.$set(dt),ue[40]?he?(he.p(ue,Ie),Ie[1]&512&&d(he,1)):(he=Tm(ue),he.c(),d(he,1),he.m(P,q)):he&&(fe(),_(he,1,1,()=>{he=null}),ce()),!ue[83]&&!ue[4]?Be?(Be.p(ue,Ie),Ie[0]&16|Ie[2]&2097152&&d(Be,1)):(Be=Im(ue),Be.c(),d(Be,1),Be.m(P,se)):Be&&(fe(),_(Be,1,1,()=>{Be=null}),ce()),ue[42]&&!ue[4]?Ue?(Ue.p(ue,Ie),Ie[0]&16|Ie[1]&2048&&d(Ue,1)):(Ue=Em(ue),Ue.c(),d(Ue,1),Ue.m(P,ne)):Ue&&(fe(),_(Ue,1,1,()=>{Ue=null}),ce()),ue[84].features.contextMenuButton&&it.p(ue,Ie),ue[44]?ke?(ke.p(ue,Ie),Ie[1]&8192&&d(ke,1)):(ke=Mm(ue),ke.c(),d(ke,1),ke.m(P,ie)):ke&&(fe(),_(ke,1,1,()=>{ke=null}),ce()),ue[39]?Y?(Y.p(ue,Ie),Ie[1]&256&&d(Y,1)):(Y=Vm(ue),Y.c(),d(Y,1),Y.m(P,null)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),ce()),(!X||Ie[0]&2)&&F(e,"hidden",ue[1]),(!X||Ie[0]&8)&&F(e,"controls-hidden",!ue[3]),(!X||Ie[0]&4)&&F(e,"no-smooth",ue[2]),ue[122]&&Ce.p(ue,Ie)},i(ue){if(!X){d(t.$$.fragment,ue),d(M),d(Q),d(A),d(ee),d(Te),d(je),d(Ke),d(w.$$.fragment,ue);for(let Ie=0;Ie<ye.length;Ie+=1)d(J[Ie]);d(He),d(I.$$.fragment,ue),d(he),d(Be),d(Ue),d(it),d(ke),d(Y),d(Ce),X=!0}},o(ue){_(t.$$.fragment,ue),_(M),_(Q),_(A),_(ee),_(Te),_(je),_(Ke),_(w.$$.fragment,ue),J=J.filter(Boolean);for(let Ie=0;Ie<J.length;Ie+=1)_(J[Ie]);_(He),_(I.$$.fragment,ue),_(he),_(Be),_(Ue),_(it),_(ke),_(Y),_(Ce),X=!1},d(ue){ue&&(k(e),k(x),k(j)),R(t),M&&M.d(),Q&&Q.d(),A&&A.d(),ee&&ee.d(),Te&&Te.d(),je&&je.d(),Ke&&Ke.d(),R(w),S(),Wi(J,ue),He&&He.d(),R(I),he&&he.d(),Be&&Be.d(),Ue&&Ue.d(),it&&it.d(),ke&&ke.d(),Y&&Y.d(),i[194](null),i[195](null),Ce&&Ce.d(ue)}}}function nv(i,e,t){var Vf,Lf;let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,ie,x,j,X,M,Q,A,ee,Te=de,je=()=>(Te(),Te=Qt(ne,$=>t(144,ee=$)),ne),Ke,Je=de,We=()=>(Je(),Je=Qt(se,$=>t(145,Ke=$)),se),ye,J=de,ve=()=>(J(),J=Qt(q,$=>t(146,ye=$)),q),He,Xe=de,xe=()=>(Xe(),Xe=Qt(K,$=>t(147,He=$)),K),he,Be=de,Ue=()=>(Be(),Be=Qt(N,$=>t(148,he=$)),N),it,ke=de,Y=()=>(ke(),ke=Qt(I,$=>t(149,it=$)),I),Ce,ue=de,Ie=()=>(ue(),ue=Qt(g,$=>t(150,Ce=$)),g),Ye,at=de,dt=()=>(at(),at=Qt(v,$=>t(151,Ye=$)),v),ut,kt=de,bt=()=>(kt(),kt=Qt(P,$=>t(152,ut=$)),P),we,pt=de,Nt=()=>(pt(),pt=Qt(y,$=>t(153,we=$)),y),Mt,ze=de,Ut=()=>(ze(),ze=Qt(S,$=>t(154,Mt=$)),S),_e,Vt=de,Lt=()=>(Vt(),Vt=Qt(b,$=>t(155,_e=$)),b),_t,ht=de,lt=()=>(ht(),ht=Qt(w,$=>t(156,_t=$)),w),Ae,mt=de,Jt=()=>(mt(),mt=Qt(h,$=>t(157,Ae=$)),h),xt,$i=de,dn=()=>($i(),$i=Qt(m,$=>t(158,xt=$)),m),pi,_i=de,Ii=()=>(_i(),_i=Qt(c,$=>t(159,pi=$)),c),ni,hi=de,en=()=>(hi(),hi=Qt(u,$=>t(160,ni=$)),u),Ei,Mi,gi,Vi,bi,Li,Ai,Ft,Kt,Ht,vi,Zt,yi,oi,ui,vt,Wt,St,li,wi,bn,tn,ri;i.$$.on_destroy.push(()=>Te()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>Be()),i.$$.on_destroy.push(()=>ke()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>at()),i.$$.on_destroy.push(()=>kt()),i.$$.on_destroy.push(()=>pt()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>Vt()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>mt()),i.$$.on_destroy.push(()=>$i()),i.$$.on_destroy.push(()=>_i()),i.$$.on_destroy.push(()=>hi());let{bottomHidden:fi}=e,{bottomNoSmooth:Bi}=e,{showControls:Gi}=e,{controlsElementRef:$t=void 0}=e,{isAds:At=!1}=e,{canRewindLive:Ri}=e,{logoClickable:nn}=e,{logoHidden:ci}=e,{logoTargetUrl:on=""}=e,{showNextPrevButtons:ki}=e,{nextButtonActive:mn}=e,{prevButtonActive:ln}=e,{isOneVideoPlaylist:pn=!1}=e,{supportLink:ji}=e,{customFullscreenSupported:Di=!0}=e,{playNextVideo:ei}=e,{playPrevVideo:si}=e,{repeatPlaylist:Ci}=e,{toggleFullscreen:Qi}=e,{returnFocus:Yi}=e,{seekToInteractive:Si}=e,{toggleGraph:Ni}=e,{playPrevChapter:Oi}=e,Ze=et(),Zi=Dn(),Xt=zt(),qe=Ze.actions.internal.toggleMuted,Fi=Ze.actions.internal.togglePlay,rn=Ze.actions.internal.pause,Xi=Ze.actions.internal.toggleSubtitle,Hi=(Vf=Ze.callbacks)==null?void 0:Vf.onAudioDoesNotExistHint,_n=(Lf=Ze.callbacks)==null?void 0:Lf.onAudioDisabledHint,zi=Ze.state.duration$;H(i,zi,$=>t(82,tn=$));let sn=Ze.state.positionWithScrubbing$;H(i,sn,$=>t(80,wi=$));let ti=Ze.state.playbackState$;H(i,ti,$=>t(161,gi=$));let an=Ze.state.chromecastConnected$;H(i,an,$=>t(83,ri=$));let di=Ze.state.isAudioAvailable$;H(i,di,$=>t(197,E=$));let ae=Ze.state.isAudioDisabled,ct=Ze.state.isEnded$;H(i,ct,$=>t(169,oi=$));let ii=Ze.state.isLive$;H(i,ii,$=>t(33,Ft=$));let ai=Ze.state.isActiveLive$;H(i,ai,$=>t(163,Li=$));let qi=Ze.state.isRewindableLive$;H(i,qi,$=>t(32,Ai=$));let Gt=Ze.ui.isPictureInPictureActive$;H(i,Gt,$=>t(165,Ht=$));let Vn=Ze.ui.pictureInPictureType$;H(i,Vn,$=>t(164,Kt=$));let Ln=Ze.ui.settingsMenuVisible;H(i,Ln,$=>t(27,j=$));let Cn=Ze.ui.settingsMenuOpenedByKeyboard;H(i,Cn,$=>t(140,x=$));let jt=Ze.ui.controls,An=Ze.actions.internal.getVideoEpisodes(),jn=Ze.state.chromecastState$;H(i,jn,$=>t(29,Ei=$));let Bn=Ze.state.availableSubtitlesList$;H(i,Bn,$=>t(168,yi=$));let Fn=Ze.state.currentSubtitle$;H(i,Fn,$=>t(170,ui=$));let Sn=jt.disabledControls$;H(i,Sn,$=>t(172,Wt=$));let vn=Ze.ui.contextMenu.visible$;H(i,vn,$=>t(162,Vi=$));let Hn=Ze.ui.contextMenu.showContextMenuBtn$;H(i,Hn,$=>t(166,vi=$));let zn=Ze.ui.contextMenu.openedByBtnKeyboard$;H(i,zn,$=>t(167,Zt=$));let oe=Ze.ui.startedByKeyboard$;H(i,oe,$=>t(139,ie=$));let Pt=Ze.ads.duration;H(i,Pt,$=>t(81,bn=$));let Pn=Ze.ads.position;H(i,Pn,$=>t(79,li=$));let hn=Ze.ads.playbackState;H(i,hn,$=>t(171,vt=$));let Tn=Ze.ui.isFullscreen;H(i,Tn,$=>t(30,Mi=$));let yn=Ze.ui.playerSize;H(i,yn,$=>t(142,M=$));let lo=Ze.ui.currentGridType$;H(i,lo,$=>t(143,Q=$));let ro=Ze.ui.additionalButtons$;H(i,ro,$=>t(28,A=$));let yo=Ze.actions.internal.getVideoElement,xn=Ze.actions.internal.replayInteractive,wn=Ze.state.isInteractive,te=Ze.state.isInteractiveTime$;H(i,te,$=>t(141,X=$));let $n=Ze.state.showInteractiveGraph,so=Ze.state.showSeekToInteractive,qo=Ze.state.showPlayPrevChapter,Qn=Ze.state.showInteractiveTimeIndicator,ao=Ze.state.graphIsOpened$;H(i,ao,$=>t(31,bi=$));let Uo=Ze.state.playPrevChapterDisabledTooltip,Ko=Zi.seekToInteractiveDisabledTooltip$;H(i,Ko,$=>t(78,St=$));let vl=()=>Ze.actions.internal.toggleChromecast(),eo,wo,ko,Wo,Co,yt,Z,Ct,un,Ji,V,re,Pe,Ge,rt,wt,qt,Tt,Ui,So,zl,Go="",Qp=($,gs)=>{if(!$){t(50,Go=G("tooltip_live"));return}gs===Ho.PlaybackState.PAUSED&&t(50,Go=G("tooltip_play"))},Pf,Tf,If,Ef,ql,nt={},qn,yl,hs,Mf,Yp=(0,Lm.throttleFn)(Jr,260,{leading:!1}),Ul,Kl,Wl;function Zp(){_o({isAudioDisabled:ae,audioDisabledHintCallback:_n,isAudioAvailable:E,audioIsNotExistHintCallback:Hi})&&qe()}let Xp=wn?xn:pn?Fi:Ci;function Jp($){i.$$.not_equal(nt.prevButton,$)&&(nt.prevButton=$,t(23,nt))}function xp($){i.$$.not_equal(nt.replayButton,$)&&(nt.replayButton=$,t(23,nt))}function $p($){Wl=$,t(26,Wl)}function e2($){i.$$.not_equal(nt.playButton,$)&&(nt.playButton=$,t(23,nt))}function t2($){i.$$.not_equal(nt.nextButton,$)&&(nt.nextButton=$,t(23,nt))}function i2($){i.$$.not_equal(nt.playPrevChapterButton,$)&&(nt.playPrevChapterButton=$,t(23,nt))}function n2($){i.$$.not_equal(nt.seekToInteractiveButton,$)&&(nt.seekToInteractiveButton=$,t(23,nt))}function o2($){i.$$.not_equal(nt.interactiveGraphButton,$)&&(nt.interactiveGraphButton=$,t(23,nt))}function l2($){i.$$.not_equal(nt.liveButton,$)&&(nt.liveButton=$,t(23,nt))}function r2($){i.$$.not_equal(nt.time,$)&&(nt.time=$,t(23,nt))}function s2($){i.$$.not_equal(nt.episodes,$)&&(nt.episodes=$,t(23,nt))}function a2(){ql=this.clientWidth,t(22,ql)}function u2($){i.$$.not_equal(nt.vkLogo,$)&&(nt.vkLogo=$,t(23,nt))}function f2($){i.$$.not_equal(nt.volume,$)&&(nt.volume=$,t(23,nt))}function c2($){i.$$.not_equal(nt.subtitles,$)&&(nt.subtitles=$,t(23,nt))}function d2($){Ul=$,t(24,Ul)}function m2($){Kl=$,t(25,Kl)}function p2($){i.$$.not_equal(nt.settings,$)&&(nt.settings=$,t(23,nt))}function _2($){i.$$.not_equal(nt.context,$)&&(nt.context=$,t(23,nt))}function h2($){i.$$.not_equal(nt.fullscreen,$)&&(nt.fullscreen=$,t(23,nt))}function g2($){i.$$.not_equal(nt.chromecast,$)&&(nt.chromecast=$,t(23,nt))}function b2($){pe[$?"unshift":"push"](()=>{qt=$,t(46,qt)})}function v2($){pe[$?"unshift":"push"](()=>{$t=$,t(0,$t)})}function y2($){i.$$.not_equal(nt.interactiveTimeIndicator,$)&&(nt.interactiveTimeIndicator=$,t(23,nt))}i.$$set=$=>{"bottomHidden"in $&&t(1,fi=$.bottomHidden),"bottomNoSmooth"in $&&t(2,Bi=$.bottomNoSmooth),"showControls"in $&&t(3,Gi=$.showControls),"controlsElementRef"in $&&t(0,$t=$.controlsElementRef),"isAds"in $&&t(4,At=$.isAds),"canRewindLive"in $&&t(5,Ri=$.canRewindLive),"logoClickable"in $&&t(6,nn=$.logoClickable),"logoHidden"in $&&t(129,ci=$.logoHidden),"logoTargetUrl"in $&&t(7,on=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,ki=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,mn=$.nextButtonActive),"prevButtonActive"in $&&t(9,ln=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,pn=$.isOneVideoPlaylist),"supportLink"in $&&t(10,ji=$.supportLink),"customFullscreenSupported"in $&&t(132,Di=$.customFullscreenSupported),"playNextVideo"in $&&t(11,ei=$.playNextVideo),"playPrevVideo"in $&&t(12,si=$.playPrevVideo),"repeatPlaylist"in $&&t(133,Ci=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,Qi=$.toggleFullscreen),"returnFocus"in $&&t(14,Yi=$.returnFocus),"seekToInteractive"in $&&t(15,Si=$.seekToInteractive),"toggleGraph"in $&&t(16,Ni=$.toggleGraph),"playPrevChapter"in $&&t(17,Oi=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Wt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Wt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=Wt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=Wt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Wt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Wt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,eo=At?vt==="playing":gi===Ho.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,wo=ui.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,ko=oi&&!At||wn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,Wo=!oi||wn||At);if(i.$$.dirty[4]&524288)e:t(134,Co=Mn(Q,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,yt=ki&&Mn(Q,"m")&&!At&&mn);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,Z=ki&&Mn(Q,"m")&&!At&&ln);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,Ct=Ei!==Ho.ChromecastState.NOT_AVAILABLE&&!(Ht&&Kt===1)&&Mn(Q,"m")&&!wn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,un=yi.length>0&&Mn(Q,"m"));if(i.$$.dirty[5]&6144)e:t(41,Ji=Zt||vi);if(i.$$.dirty[4]&524288)e:t(42,V=Mn(Q,"s"));if(i.$$.dirty[4]&32)e:t(43,re=!ci);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,Pe=Xt.features.fullscreen&&(ci||Mn(Q,"s"))&&!(Ht&&Kt===1)&&(wn?Di:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Ge=(!Ft||At)&&!(Xt.features.interactiveHideTime&&wn));if(i.$$.dirty[4]&262144)e:t(45,rt=M.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,wt=!At&&!Ft&&!!(An!=null&&An.length)&&Co&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,Tt=!Ai||Li);if(i.$$.dirty[5]&64)e:t(47,Ui=gi===Ho.PlaybackState.PLAYING?G("tooltip_pause"):G("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,So=bi?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,zl=Vi?G("aria_label_context_menu_close"):G("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Qp(Tt,gi);if(i.$$.dirty[0]&262144)e:t(52,Tf=wo?G("tooltip_subtitles_on"):G("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,If=Mi?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Ef=Ei===Ho.ChromecastState.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,qn={prevButton:ni?ni.right-ni.left:0,replayButton:pi?pi.right-pi.left:0,playButton:xt?xt.right-xt.left:0,nextButton:Ae?Ae.right-Ae.left:0,playPrevChapterButton:_t?_t.right-_t.left:0,seekToInteractiveButton:_e?_e.right-_e.left:0,interactiveGraphButton:Mt?Mt.right-Mt.left:0,liveButton:we?we.right-we.left:0,time:ut?ut.right-ut.left:0,episodes:Ye?Ye.right-Ye.left:0,vkLogo:Ce?Ce.right-Ce.left:0,volume:it?it.right-it.left:0,subtitles:he?he.right-he.left:0,settings:He?He.right-He.left:0,context:ye?ye.right-ye.left:0,fullscreen:Ke?Ke.right-Ke.left:0,chromecast:ee?ee.right-ee.left:0,additionalButtons:A.length?A.reduce($=>[...$,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!yl||yl<qn.time)&&t(136,yl=qn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let $=0;wt&&(Mn(Q,"xl")?$=qn.time:$=60);let gs=qn.prevButton+qn.playButton+qn.nextButton+qn.seekToInteractiveButton+qn.interactiveGraphButton+qn.liveButton+yl+$;t(137,hs=Ge&&ql>=gs)}if(i.$$.dirty[4]&532480)e:t(55,Mf=hs&&Mn(Q,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:Yp(yo(),jt,nt,Gi);if(i.$$.dirty[0]&167772160)e:ol(Kl,j,Cn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Oo(Ul,j,x);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:xr(oe,ie,Wl)};e:t(51,Pf=Xt.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo"));e:en(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:b,interactiveGraphButton:S,liveButton:y,time:P,episodes:v,vkLogo:g,volume:I,subtitles:N,settings:K,context:q,fullscreen:se,chromecast:ne}=jt,u,Ii(t(71,c)),dn(t(70,m)),Jt(t(69,h)),lt(t(68,w)),Lt(t(67,b)),Ut(t(66,S)),Nt(t(65,y)),bt(t(64,P)),dt(t(63,v)),Ie(t(62,g)),Y(t(61,I)),Ue(t(60,N)),xe(t(59,K)),ve(t(58,q)),We(t(57,se)),je(t(56,ne))));return[$t,fi,Bi,Gi,At,Ri,nn,on,mn,ln,ji,ei,si,Qi,Yi,Si,Ni,Oi,wo,Ge,wt,Tt,ql,nt,Ul,Kl,Wl,j,A,Ei,Mi,bi,Ai,Ft,eo,ko,Wo,yt,Z,Ct,un,Ji,V,re,Pe,rt,qt,Ui,So,zl,Go,Pf,Tf,If,Ef,Mf,ne,se,q,K,N,I,g,v,P,y,S,b,w,h,m,c,u,s,a,l,r,o,St,li,wi,bn,tn,ri,Xt,Fi,rn,Xi,zi,sn,ti,an,di,ct,ii,ai,qi,Gt,Vn,Ln,Cn,An,jn,Bn,Fn,Sn,vn,Hn,zn,oe,Pt,Pn,hn,Tn,yn,lo,ro,wn,te,$n,so,qo,Qn,ao,Uo,Ko,vl,Zp,Xp,ci,ki,pn,Di,Ci,Co,qn,yl,hs,n,ie,x,X,M,Q,ee,Ke,ye,He,he,it,Ce,Ye,ut,we,Mt,_e,_t,Ae,xt,pi,ni,gi,Vi,Li,Kt,Ht,vi,Zt,yi,oi,ui,vt,Wt,Jp,xp,$p,e2,t2,i2,n2,o2,l2,r2,s2,a2,u2,f2,c2,d2,m2,p2,_2,h2,g2,b2,v2,y2]}var Au=class extends U{constructor(e){super(),W(this,e,nv,iv,z,{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},A3,[-1,-1,-1,-1,-1,-1,-1])}},Am=Au;var dl=require("@vkontakte/videoplayer-core");function ov(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Le(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function lv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ru=class extends U{constructor(e){super(),W(this,e,lv,ov,z,{})}},Bm=Ru;var Dm=require("@vkontakte/videoplayer-shared");function rv(i){Se(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 Rm(i){let e;return{c(){e=T("span"),e.textContent=`${G("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:de,d(t){t&&k(e)}}}function sv(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=kn(r,l(i)));let a=i[1]&&Rm(i);return{c(){e=T("div"),t&&D(t.$$.fragment),n=O(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),F(e,"expanded",i[1])},m(s,u){C(s,e,u),t&&B(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){fe();let c=t;_(c.$$.fragment,1,0,()=>{R(c,1)}),ce()}r?(t=kn(r,l(s)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Rm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&F(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&R(t),a&&a.d()}}}function av(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function uv(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=Dm.noop}=e,{ref:l=void 0}=e,a,s;function u(c){l=c,t(0,l)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,l=c.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?G("tooltip_volume"):G("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Fo:Bm)},[l,o,r,a,s,n,u]}var Du=class extends U{constructor(e){super(),W(this,e,uv,av,z,{muted:5,expanded:1,click:2,ref:0},rv)}},Nu=Du;function fv(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=L("svg"),a&&a.c(),t=L("path"),n=L("path"),o=L("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),be(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Le(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ou=class extends U{constructor(e){super(),W(this,e,cv,fv,z,{})}},Nm=Ou;function dv(i){Se(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function mv(i){let e,t;return e=new Nm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function pv(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Fu=class extends U{constructor(e){super(),W(this,e,pv,mv,z,{isActive:0},dv)}},Om=Fu;var Fm=require("@vkontakte/videoplayer-shared");function _v(i){let e,t;return e=new Om({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function hv(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:G("menu_pip"),click:i[2],$$slots:{default:[_v]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function gv(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Fm.noop}=e;function l(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,l]}var Hu=class extends U{constructor(e){super(),W(this,e,gv,hv,z,{ref:0,isPictureInPictureActive:1,click:2})}},Hm=Hu;var a0=require("@vkontakte/videoplayer-shared");function bv(i){Se(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 zm(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 qm(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v=(!i[51]||i[53])&&Um(i),g=It(i[56]),I=[];for(let M=0;M<g.length;M+=1)I[M]=Km(zm(i,g,M));let N=M=>_(I[M],1,1,()=>{I[M]=null}),K=i[36]&&Wm(i),q=i[37]&&Gm(i),se=i[57]&&jm(i),ne=i[39]&&Qm(i),E=i[8]&&Ym(i),ie=i[34]&&Zm(i),x=i[33]&&Xm(i),j=i[8]&&Jm(i),X=i[96]&&!i[29]&&xm(i);return{c(){e=T("div"),t=O(),n=T("div"),v&&v.c(),o=O(),r=T("div");for(let M=0;M<I.length;M+=1)I[M].c();l=O(),K&&K.c(),a=O(),q&&q.c(),s=O(),se&&se.c(),u=O(),ne&&ne.c(),c=O(),m=T("div"),E&&E.c(),h=O(),ie&&ie.c(),w=O(),x&&x.c(),b=O(),j&&j.c(),S=O(),X&&X.c(),y=ot(),f(e,"class","overlay-mobile svelte-1tcstu3"),F(e,"hidden",!i[42]),f(n,"class","wrapper-top-left svelte-1tcstu3"),F(n,"hidden",!i[3]),F(n,"fullscreen",i[52]),f(r,"class","wrapper-top-right svelte-1tcstu3"),F(r,"hidden",!i[3]&&!i[27]),F(r,"fullscreen",i[52]),f(m,"class","wrapper-middle svelte-1tcstu3"),F(m,"hidden",!i[3]||i[29])},m(M,Q){C(M,e,Q),C(M,t,Q),C(M,n,Q),v&&v.m(n,null),C(M,o,Q),C(M,r,Q);for(let A=0;A<I.length;A+=1)I[A]&&I[A].m(r,null);p(r,l),K&&K.m(r,null),p(r,a),q&&q.m(r,null),p(r,s),se&&se.m(r,null),p(r,u),ne&&ne.m(r,null),C(M,c,Q),C(M,m,Q),E&&E.m(m,null),p(m,h),ie&&ie.m(m,null),p(m,w),x&&x.m(m,null),p(m,b),j&&j.m(m,null),C(M,S,Q),X&&X.m(M,Q),C(M,y,Q),P=!0},p(M,Q){if((!P||Q[1]&2048)&&F(e,"hidden",!M[42]),!M[51]||M[53]?v?(v.p(M,Q),Q[1]&5242880&&d(v,1)):(v=Um(M),v.c(),d(v,1),v.m(n,null)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),(!P||Q[0]&8)&&F(n,"hidden",!M[3]),(!P||Q[1]&2097152)&&F(n,"fullscreen",M[52]),Q[1]&33554432){g=It(M[56]);let A;for(A=0;A<g.length;A+=1){let ee=zm(M,g,A);I[A]?(I[A].p(ee,Q),d(I[A],1)):(I[A]=Km(ee),I[A].c(),d(I[A],1),I[A].m(r,l))}for(fe(),A=g.length;A<I.length;A+=1)N(A);ce()}M[36]?K?(K.p(M,Q),Q[1]&32&&d(K,1)):(K=Wm(M),K.c(),d(K,1),K.m(r,a)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),M[37]?q?(q.p(M,Q),Q[1]&64&&d(q,1)):(q=Gm(M),q.c(),d(q,1),q.m(r,s)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),M[57]?se?(se.p(M,Q),Q[1]&67108864&&d(se,1)):(se=jm(M),se.c(),d(se,1),se.m(r,u)):se&&(fe(),_(se,1,1,()=>{se=null}),ce()),M[39]?ne?(ne.p(M,Q),Q[1]&256&&d(ne,1)):(ne=Qm(M),ne.c(),d(ne,1),ne.m(r,null)):ne&&(fe(),_(ne,1,1,()=>{ne=null}),ce()),(!P||Q[0]&134217736)&&F(r,"hidden",!M[3]&&!M[27]),(!P||Q[1]&2097152)&&F(r,"fullscreen",M[52]),M[8]?E?(E.p(M,Q),Q[0]&256&&d(E,1)):(E=Ym(M),E.c(),d(E,1),E.m(m,h)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),M[34]?ie?(ie.p(M,Q),Q[1]&8&&d(ie,1)):(ie=Zm(M),ie.c(),d(ie,1),ie.m(m,w)):ie&&(fe(),_(ie,1,1,()=>{ie=null}),ce()),M[33]?x?(x.p(M,Q),Q[1]&4&&d(x,1)):(x=Xm(M),x.c(),d(x,1),x.m(m,b)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),M[8]?j?(j.p(M,Q),Q[0]&256&&d(j,1)):(j=Jm(M),j.c(),d(j,1),j.m(m,null)):j&&(fe(),_(j,1,1,()=>{j=null}),ce()),(!P||Q[0]&536870920)&&F(m,"hidden",!M[3]||M[29]),M[96]&&!M[29]?X?(X.p(M,Q),Q[0]&536870912&&d(X,1)):(X=xm(M),X.c(),d(X,1),X.m(y.parentNode,y)):X&&(fe(),_(X,1,1,()=>{X=null}),ce())},i(M){if(!P){d(v);for(let Q=0;Q<g.length;Q+=1)d(I[Q]);d(K),d(q),d(se),d(ne),d(E),d(ie),d(x),d(j),d(X),P=!0}},o(M){_(v),I=I.filter(Boolean);for(let Q=0;Q<I.length;Q+=1)_(I[Q]);_(K),_(q),_(se),_(ne),_(E),_(ie),_(x),_(j),_(X),P=!1},d(M){M&&(k(e),k(t),k(n),k(o),k(r),k(c),k(m),k(S),k(y)),v&&v.d(),Wi(I,M),K&&K.d(),q&&q.d(),se&&se.d(),ne&&ne.d(),E&&E.d(),ie&&ie.d(),x&&x.d(),j&&j.d(),X&&X.d(M)}}}function Um(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new Nu({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Km(i){var n;let e,t;return e=new Wr({props:{iconUrl:i[169],ariaLabel:(n=i[170])!=null?n:i[173],testId:i[171],onClick:i[172]}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[169]),r[1]&33554432&&(l.ariaLabel=(a=o[170])!=null?a:o[173]),r[1]&33554432&&(l.testId=o[171]),r[1]&33554432&&(l.onClick=o[172]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Wm(i){let e,t,n;function o(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new Br({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Gm(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new Hm({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function jm(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ll({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Qm(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Ar({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Ym(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new fl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Zm(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Bl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Xm(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Rl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Jm(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new fl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function xm(i){let e,t,n,o,r=i[100]&&vv(i),l=i[98]&&yv(i),a=i[99]&&wv(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=ot()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function vv(i){let e,t,n,o,r,l;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new Kr({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1tcstu3"),F(e,"fullscreen",i[52]),F(e,"hidden",!i[3])},m(u,c){C(u,e,c),B(t,e,null),o=!0,r||(l=me(e,"click",i[108]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&65536&&(m.disabled=u[47]),c[0]&262144&&(m.click=u[18]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,Oe(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&F(e,"fullscreen",u[52]),(!o||c[0]&8)&&F(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function yv(i){let e,t,n,o,r;function l(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new qr({props:a}),pe.push(()=>Fe(t,"ref",l)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class",o=Nf(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),F(e,"fullscreen",i[52]),F(e,"hidden",!i[3]&&!i[58])},m(s,u){C(s,e,u),B(t,e,null),r=!0},p(s,u){let c={};u[0]&8|u[1]&134217728&&(c.hidden=!s[3]&&!s[58]),u[1]&524288&&(c.disabled=s[50]),u[0]&131072&&(c.click=s[17]),u[1]&134217728&&(c.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,Oe(()=>n=!1)),t.$set(c),(!r||u[1]&2097152)&&F(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&F(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&k(e),R(t)}}}function wv(i){let e,t,n,o,r,l;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new zr({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1tcstu3"),F(e,"fullscreen",i[52]),F(e,"hidden",!i[3])},m(u,c){C(u,e,c),B(t,e,null),o=!0,r||(l=me(e,"click",i[109]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&32768&&(m.disabled=u[46]),c[0]&65536&&(m.click=u[16]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,Oe(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&F(e,"fullscreen",u[52]),(!o||c[0]&8)&&F(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function $m(i){let e,t,n,o,r,l=i[53]&&e0(i),a=i[32]&&t0(i);return o=new Or({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=O(),a&&a.c(),t=O(),n=T("div"),D(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),F(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(s,n,u),B(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=e0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(fe(),_(l,1,1,()=>{l=null}),ce()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=t0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(fe(),_(a,1,1,()=>{a=null}),ce());let c={};u[1]&268435456&&(c.position=s[59]),u[1]&536870912&&(c.duration=s[60]),o.$set(c),(!r||u[1]&2097152)&&F(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),R(o)}}}function e0(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new Nu({props:l}),pe.push(()=>Fe(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1tcstu3"),F(e,"fullscreen",i[52])},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Oe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&F(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function t0(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Bl({props:l}),pe.push(()=>Fe(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function kv(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[Cv]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Cv(i){let e,t;return e=new Rl({props:{disabled:i[48],click:i[95]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function i0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[Sv]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Sv(i){let e,t;return e=new Dr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function n0(i){let e,t,n;function o(l){i[146](l)}let r={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Tr({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function o0(i){let e,t,n,o;return n=new Hr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=O(),D(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),C(r,t,l),B(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),R(n,r)}}}function Pv(i){let e,t,n=i[43]&&o0(i);return{c(){n&&n.c(),e=ot()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=o0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function l0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[Tv]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Tv(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ll({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function r0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[Iv]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Iv(i){let e,t;return e=new Vr({props:{click:i[14],isFullscreen:i[52]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function s0(i){let e,t,n,o;function r(a){i[153](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new Pr({props:l}),pe.push(()=>Fe(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function Ev(i){let e,t,n;function o(l){i[154](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new $r({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Mv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g=!i[4]&&qm(i),I=i[4]&&i[30]!=="inactive"&&$m(i),N=i[96]&&kv(i),K=!i[4]&&i[25]&&i0(i),q=i[41]&&n0(i);function se(X){i[147](X)}let ne={className:"w-max",disabled:!i[43],$$slots:{default:[Pv]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ne.ref=i[20].episodes),u=new Ot({props:ne}),pe.push(()=>Fe(u,"ref",se));let E=i[38]&&l0(i),ie=i[40]&&r0(i);b=new Fr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let x=i[23]&&s0(i),j=i[101]&&Ev(i);return{c(){g&&g.c(),e=O(),I&&I.c(),t=O(),n=T("div"),o=T("div"),r=T("div"),N&&N.c(),l=O(),K&&K.c(),a=O(),q&&q.c(),s=O(),D(u.$$.fragment),m=O(),E&&E.c(),h=O(),ie&&ie.c(),w=O(),D(b.$$.fragment),S=O(),x&&x.c(),y=O(),j&&j.c(),P=ot(),f(r,"class","controls svelte-1tcstu3"),F(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1tcstu3"),F(o,"fullscreen",i[52]),f(n,"class","wrapper-bottom svelte-1tcstu3"),F(n,"hidden",i[1]),F(n,"controls-hidden",!i[3]),F(n,"no-smooth",i[2]),F(n,"mobile",!0)},m(X,M){g&&g.m(X,M),C(X,e,M),I&&I.m(X,M),C(X,t,M),C(X,n,M),p(n,o),p(o,r),N&&N.m(r,null),p(r,l),K&&K.m(r,null),p(r,a),q&&q.m(r,null),p(r,s),B(u,r,null),p(r,m),E&&E.m(r,null),p(r,h),ie&&ie.m(r,null),i[151](r),p(o,w),B(b,o,null),i[152](n),C(X,S,M),x&&x.m(X,M),C(X,y,M),j&&j.m(X,M),C(X,P,M),v=!0},p(X,M){X[4]?g&&(fe(),_(g,1,1,()=>{g=null}),ce()):g?(g.p(X,M),M[0]&16&&d(g,1)):(g=qm(X),g.c(),d(g,1),g.m(e.parentNode,e)),X[4]&&X[30]!=="inactive"?I?(I.p(X,M),M[0]&1073741840&&d(I,1)):(I=$m(X),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),X[96]&&N.p(X,M),!X[4]&&X[25]?K?(K.p(X,M),M[0]&33554448&&d(K,1)):(K=i0(X),K.c(),d(K,1),K.m(r,a)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),X[41]?q?(q.p(X,M),M[1]&1024&&d(q,1)):(q=n0(X),q.c(),d(q,1),q.m(r,s)):q&&(fe(),_(q,1,1,()=>{q=null}),ce());let Q={};M[1]&4096&&(Q.disabled=!X[43]),M[1]&1073745920|M[2]&1|M[5]&2097152&&(Q.$$scope={dirty:M,ctx:X}),!c&&M[0]&1048576&&(c=!0,Q.ref=X[20].episodes,Oe(()=>c=!1)),u.$set(Q),X[38]?E?(E.p(X,M),M[1]&128&&d(E,1)):(E=l0(X),E.c(),d(E,1),E.m(r,h)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),X[40]?ie?(ie.p(X,M),M[1]&512&&d(ie,1)):(ie=r0(X),ie.c(),d(ie,1),ie.m(r,null)):ie&&(fe(),_(ie,1,1,()=>{ie=null}),ce());let A={};M[0]&16&&(A.isAds=X[4]),M[0]&32&&(A.canRewindLive=X[5]),M[0]&16777216&&(A.isRewindableLive=X[24]),b.$set(A),(!v||M[1]&2097152)&&F(o,"fullscreen",X[52]),(!v||M[0]&2)&&F(n,"hidden",X[1]),(!v||M[0]&8)&&F(n,"controls-hidden",!X[3]),(!v||M[0]&4)&&F(n,"no-smooth",X[2]),X[23]?x?(x.p(X,M),M[0]&8388608&&d(x,1)):(x=s0(X),x.c(),d(x,1),x.m(y.parentNode,y)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),X[101]&&j.p(X,M)},i(X){v||(d(g),d(I),d(N),d(K),d(q),d(u.$$.fragment,X),d(E),d(ie),d(b.$$.fragment,X),d(x),d(j),v=!0)},o(X){_(g),_(I),_(N),_(K),_(q),_(u.$$.fragment,X),_(E),_(ie),_(b.$$.fragment,X),_(x),_(j),v=!1},d(X){X&&(k(e),k(t),k(n),k(S),k(y),k(P)),g&&g.d(X),I&&I.d(X),N&&N.d(),K&&K.d(),q&&q.d(),R(u),E&&E.d(),ie&&ie.d(),i[151](null),R(b),i[152](null),x&&x.d(X),j&&j.d(X)}}}function Vv(i,e,t){var xn,wn;let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,ie,x,j,X,M,Q,A,ee,Te,je,Ke,Je,We,{bottomHidden:ye}=e,{bottomNoSmooth:J}=e,{showControls:ve}=e,{controlsElementRef:He=void 0}=e,{isAds:Xe=!1}=e,{canRewindLive:xe}=e,{logoClickable:he}=e,{logoHidden:Be}=e,{logoTargetUrl:Ue=""}=e,{showNextPrevButtons:it}=e,{nextButtonActive:ke}=e,{prevButtonActive:Y}=e,{isOneVideoPlaylist:Ce=!1}=e,{supportLink:ue}=e,{customFullscreenSupported:Ie=!0}=e,{playNextVideo:Ye}=e,{playPrevVideo:at}=e,{repeatPlaylist:dt}=e,{toggleFullscreen:ut}=e,{returnFocus:kt}=e,{seekToInteractive:bt}=e,{toggleGraph:we}=e,{playPrevChapter:pt}=e,{onDisabledPlayPrevChapterClick:Nt}=e,{onDisabledSeekToInteractiveClick:Mt}=e,ze=et(),Ut=Dn(),_e=zt(),Vt=ze.actions.internal.toggleMuted,Lt=ze.actions.internal.togglePlay,_t=ze.actions.internal.pause,ht=(xn=ze.callbacks)==null?void 0:xn.onAudioDoesNotExistHint,lt=(wn=ze.callbacks)==null?void 0:wn.onAudioDisabledHint,Ae=ze.playerPhase;H(i,Ae,te=>t(126,q=te));let mt=ze.state.duration$;H(i,mt,te=>t(62,We=te));let Jt=ze.state.positionWithScrubbing$;H(i,Jt,te=>t(61,Je=te));let xt=ze.state.playbackState$;H(i,xt,te=>t(121,h=te));let $i=ze.state.isAudioAvailable$;H(i,$i,te=>t(51,w=te));let dn=ze.state.isAudioDisabled,pi=ze.state.isEnded$;H(i,pi,te=>t(127,ne=te));let _i=ze.state.isLive$;H(i,_i,te=>t(25,v=te));let Ii=ze.state.muted$;H(i,Ii,te=>t(54,M=te));let ni=ze.state.isActiveLive$;H(i,ni,te=>t(124,y=te));let hi=ze.state.isRewindableLive$;H(i,hi,te=>t(24,P=te));let en=ze.ui.scrubbingInProgress;H(i,en,te=>t(29,se=te));let Ei=ze.ui.mobileNotReportControlHidden$;H(i,Ei,te=>t(27,N=te));let Mi=ze.ui.isPictureInPictureActive$;H(i,Mi,te=>t(26,I=te));let gi=ze.ui.pictureInPictureType$;H(i,gi,te=>t(125,g=te));let Vi=ze.ui.mobileUnmuteButtonExpanded;H(i,Vi,te=>t(55,Q=te));let bi=ze.ui.mobileUnmuteButtonVisible;H(i,bi,te=>t(53,X=te));let Li=ze.ui.settingsMenuVisible;H(i,Li,te=>t(23,m=te));let Ai=ze.ui.settingsMenuOpenedByKeyboard;H(i,Ai,te=>t(120,c=te));let Ft=ze.ui.controls,Kt=ze.actions.internal.getVideoEpisodes(),Ht=ze.webApi.pictureInPictureApi,vi=ze.state.chromecastState$;H(i,vi,te=>t(28,K=te));let Zt=ze.state.crashed$;H(i,Zt,te=>t(57,ee=te));let yi=Ft.disabledControls$;H(i,yi,te=>t(128,ie=te));let oi=ze.ui.startedByKeyboard$;H(i,oi,te=>t(119,u=te));let ui=ze.ads.duration;H(i,ui,te=>t(60,Ke=te));let vt=ze.ads.position;H(i,vt,te=>t(59,je=te));let Wt=ze.ads.playbackState;H(i,Wt,te=>t(30,E=te));let St=ze.ui.isFullscreen;H(i,St,te=>t(52,j=te));let li=ze.ui.playerSize;H(i,li,te=>t(123,S=te));let wi=ze.ui.additionalButtons$;H(i,wi,te=>t(56,A=te));let bn=ze.actions.internal.getVideoElement,tn=ze.actions.internal.replayInteractive,ri=ze.state.isInteractive,fi=ze.state.isInteractiveTime$;H(i,fi,te=>t(122,b=te));let Bi=ze.state.showInteractiveGraph,Gi=ze.state.showSeekToInteractive,$t=ze.state.showPlayPrevChapter,At=ze.state.showInteractiveTimeIndicator,Ri=ze.state.graphIsOpened$;H(i,Ri,te=>t(58,Te=te));let nn=Ut.seekToInteractiveDisabledTooltip$;H(i,nn,te=>t(129,x=te));let ci,on,ki,mn,ln,pn,ji,Di,ei,si,Ci,Qi,Yi,Si,Ni,Oi,Ze,Zi,Xt,qe={},Fi=(0,a0.throttleFn)(Jr,260,{leading:!1}),rn=()=>ze.actions.internal.toggleChromecast();function Xi(){_o({isAudioDisabled:dn,audioDisabledHintCallback:lt,isAudioAvailable:w,audioIsNotExistHintCallback:ht})&&Vt()}async function Hi(){Ht!=null&&Ht.isActive()?await(Ht==null?void 0:Ht.remove()):await(Ht==null?void 0:Ht.request())}function _n(){!dn&&w&&bi.set(!1),Xi()}let zi=Ce?Lt:dt,sn="",ti=(te,$n)=>{if(!te){t(45,sn=G("tooltip_live"));return}$n===dl.PlaybackState.PAUSED&&t(45,sn=G("tooltip_play"))},an,di,ae=()=>{s&&Nt(ci)},ct=()=>{r&&Mt(on)};function ii(te){i.$$.not_equal(qe.volume,te)&&(qe.volume=te,t(20,qe))}function ai(te){i.$$.not_equal(qe.chromecast,te)&&(qe.chromecast=te,t(20,qe))}function qi(te){i.$$.not_equal(qe.pip,te)&&(qe.pip=te,t(20,qe))}function Gt(te){di=te,t(22,di)}function Vn(te){i.$$.not_equal(qe.vkLogo,te)&&(qe.vkLogo=te,t(20,qe))}function Ln(te){i.$$.not_equal(qe.prevButton,te)&&(qe.prevButton=te,t(20,qe))}function Cn(te){i.$$.not_equal(qe.playButton,te)&&(qe.playButton=te,t(20,qe))}function jt(te){i.$$.not_equal(qe.replayButton,te)&&(qe.replayButton=te,t(20,qe))}function An(te){i.$$.not_equal(qe.nextButton,te)&&(qe.nextButton=te,t(20,qe))}function jn(te){i.$$.not_equal(qe.playPrevChapterButton,te)&&(qe.playPrevChapterButton=te,t(20,qe))}function Bn(te){i.$$.not_equal(qe.interactiveGraphButton,te)&&(qe.interactiveGraphButton=te,t(20,qe))}function Fn(te){i.$$.not_equal(qe.seekToInteractiveButton,te)&&(qe.seekToInteractiveButton=te,t(20,qe))}function Sn(te){i.$$.not_equal(qe.volume,te)&&(qe.volume=te,t(20,qe))}function vn(te){i.$$.not_equal(qe.playButton,te)&&(qe.playButton=te,t(20,qe))}function Hn(te){i.$$.not_equal(qe.replayButton,te)&&(qe.replayButton=te,t(20,qe))}function zn(te){i.$$.not_equal(qe.liveButton,te)&&(qe.liveButton=te,t(20,qe))}function oe(te){i.$$.not_equal(qe.time,te)&&(qe.time=te,t(20,qe))}function Pt(te){i.$$.not_equal(qe.episodes,te)&&(qe.episodes=te,t(20,qe))}function Pn(te){di=te,t(22,di)}function hn(te){i.$$.not_equal(qe.settings,te)&&(qe.settings=te,t(20,qe))}function Tn(te){i.$$.not_equal(qe.fullscreen,te)&&(qe.fullscreen=te,t(20,qe))}function yn(te){pe[te?"unshift":"push"](()=>{Zi=te,t(44,Zi)})}function lo(te){pe[te?"unshift":"push"](()=>{He=te,t(0,He)})}function ro(te){an=te,t(21,an)}function yo(te){i.$$.not_equal(qe.interactiveTimeIndicator,te)&&(qe.interactiveTimeIndicator=te,t(20,qe))}i.$$set=te=>{"bottomHidden"in te&&t(1,ye=te.bottomHidden),"bottomNoSmooth"in te&&t(2,J=te.bottomNoSmooth),"showControls"in te&&t(3,ve=te.showControls),"controlsElementRef"in te&&t(0,He=te.controlsElementRef),"isAds"in te&&t(4,Xe=te.isAds),"canRewindLive"in te&&t(5,xe=te.canRewindLive),"logoClickable"in te&&t(6,he=te.logoClickable),"logoHidden"in te&&t(110,Be=te.logoHidden),"logoTargetUrl"in te&&t(7,Ue=te.logoTargetUrl),"showNextPrevButtons"in te&&t(8,it=te.showNextPrevButtons),"nextButtonActive"in te&&t(9,ke=te.nextButtonActive),"prevButtonActive"in te&&t(10,Y=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(111,Ce=te.isOneVideoPlaylist),"supportLink"in te&&t(11,ue=te.supportLink),"customFullscreenSupported"in te&&t(112,Ie=te.customFullscreenSupported),"playNextVideo"in te&&t(12,Ye=te.playNextVideo),"playPrevVideo"in te&&t(13,at=te.playPrevVideo),"repeatPlaylist"in te&&t(113,dt=te.repeatPlaylist),"toggleFullscreen"in te&&t(14,ut=te.toggleFullscreen),"returnFocus"in te&&t(15,kt=te.returnFocus),"seekToInteractive"in te&&t(16,bt=te.seekToInteractive),"toggleGraph"in te&&t(17,we=te.toggleGraph),"playPrevChapter"in te&&t(18,pt=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(114,Nt=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(115,Mt=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:on=G(x);if(i.$$.dirty[4]&16)e:t(118,n=ie.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=ie.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=ie.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=ie.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=ie.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=ie.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,ki=h===dl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,mn=E==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,ln=ne&&!Xe&&!ri);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,pn=!ne||Xe);if(i.$$.dirty[3]&1073741824)e:t(116,ji=S.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Di=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,ei=se);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,si=K!==dl.ChromecastState.NOT_AVAILABLE&&!(I&&g===1)&&!N&&!ri);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let te=q==="waitingLive";t(37,Ci=!!Ht&&K!==dl.ChromecastState.CONNECTED&&!N&&(g===1&&te||!te)&&!ei&&!ri)}if(i.$$.dirty[3]&16777216)e:t(38,Qi=!ei);if(i.$$.dirty[3]&1073872896)e:t(39,Yi=!Be&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,Si=_e.features.fullscreen&&!(I&&g===1)&&(ri?Ie:!0)&&!ei);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Ni=(!v||Xe)&&S.width>260&&!ei&&!(_e.features.interactiveHideTime&&ri));if(i.$$.dirty[0]&8388616)e:t(42,Oi=m||ve);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ze=!Xe&&!v&&!!(Kt!=null&&Kt.length)&&ji&&!n&&!ei);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Xt=!P||y);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Fi(bn(),Ft,qe,ve);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:ti(Xt,h);if(i.$$.dirty[0]&12582912)e:ol(di,m,Ai);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Oo(an,m,c);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:xr(oi,u,qe.playButton)};e:ci=G(ze.state.playPrevChapterDisabledTooltip);return[He,ye,J,ve,Xe,xe,he,Ue,it,ke,Y,ue,Ye,at,ut,kt,bt,we,pt,Xt,qe,an,di,m,P,v,I,N,K,se,E,ki,mn,ln,pn,Di,si,Ci,Qi,Yi,Si,Ni,Oi,Ze,Zi,sn,r,s,a,l,o,w,j,X,M,Q,A,ee,Te,je,Ke,Je,We,Lt,_t,Ae,mt,Jt,xt,$i,dn,pi,_i,Ii,ni,hi,en,Ei,Mi,gi,Vi,bi,Li,Ai,Kt,vi,Zt,yi,oi,ui,vt,Wt,St,li,wi,tn,ri,fi,Bi,Gi,$t,At,Ri,nn,rn,Hi,_n,zi,ae,ct,Be,Ce,Ie,dt,Nt,Mt,ji,ei,n,u,c,h,b,S,y,g,q,ne,ie,x,ii,ai,qi,Gt,Vn,Ln,Cn,jt,An,jn,Bn,Fn,Sn,vn,Hn,zn,oe,Pt,Pn,hn,Tn,yn,lo,ro,yo]}var zu=class extends U{constructor(e){super(),W(this,e,Vv,Mv,z,{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},bv,[-1,-1,-1,-1,-1,-1])}},u0=zu;function Lv(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new Am({props:r}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Av(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new u0({props:r}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Bv(i){let e,t,n,o,r=[Av,Lv],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Rv(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:c}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:w}=e,{nextButtonActive:b}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:y=!1}=e,{supportLink:P}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:g}=e,{playPrevVideo:I}=e,{repeatPlaylist:N}=e,{toggleFullscreen:K}=e,{returnFocus:q=es.noop}=e,{seekToInteractive:se}=e,{toggleGraph:ne}=e,{playPrevChapter:E}=e,{onDisabledPlayPrevChapterClick:ie=es.noop}=e,{onDisabledSeekToInteractiveClick:x=es.noop}=e,X=et().ui.isMobile;H(i,X,A=>t(25,n=A));function M(A){a=A,t(0,a)}function Q(A){a=A,t(0,a)}return i.$$set=A=>{"bottomHidden"in A&&t(1,o=A.bottomHidden),"bottomNoSmooth"in A&&t(2,r=A.bottomNoSmooth),"showControls"in A&&t(3,l=A.showControls),"controlsElementRef"in A&&t(0,a=A.controlsElementRef),"isAds"in A&&t(4,s=A.isAds),"canRewindLive"in A&&t(5,u=A.canRewindLive),"logoClickable"in A&&t(6,c=A.logoClickable),"logoHidden"in A&&t(7,m=A.logoHidden),"logoTargetUrl"in A&&t(8,h=A.logoTargetUrl),"showNextPrevButtons"in A&&t(9,w=A.showNextPrevButtons),"nextButtonActive"in A&&t(10,b=A.nextButtonActive),"prevButtonActive"in A&&t(11,S=A.prevButtonActive),"isOneVideoPlaylist"in A&&t(12,y=A.isOneVideoPlaylist),"supportLink"in A&&t(13,P=A.supportLink),"customFullscreenSupported"in A&&t(14,v=A.customFullscreenSupported),"playNextVideo"in A&&t(15,g=A.playNextVideo),"playPrevVideo"in A&&t(16,I=A.playPrevVideo),"repeatPlaylist"in A&&t(17,N=A.repeatPlaylist),"toggleFullscreen"in A&&t(18,K=A.toggleFullscreen),"returnFocus"in A&&t(19,q=A.returnFocus),"seekToInteractive"in A&&t(20,se=A.seekToInteractive),"toggleGraph"in A&&t(21,ne=A.toggleGraph),"playPrevChapter"in A&&t(22,E=A.playPrevChapter),"onDisabledPlayPrevChapterClick"in A&&t(23,ie=A.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in A&&t(24,x=A.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,ie,x,n,X,M,Q]}var qu=class extends U{constructor(e){super(),W(this,e,Rv,Bv,z,{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})}},ts=qu;function Dv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S=i[2].default,y=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=le(v,P[g]);return{c(){e=L("svg"),y&&y.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),l=L("filter"),a=L("feFlood"),s=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),w=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_100684"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","43.996"),f(l,"height","49.5"),f(l,"x","2.5"),f(l,"y","0"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(g,I){C(g,e,I),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),b=!0},p(g,[I]){y&&y.p&&(!b||I&2)&&Ve(y,S,g,g[1],b?Me(S,g[1],I,null):Le(g[1]),null),be(e,v=Re(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function Nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Uu=class extends U{constructor(e){super(),W(this,e,Nv,Dv,z,{})}},f0=Uu;function Ov(i){let e,t;return e=new f0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fv(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Ku=class extends U{constructor(e){super(),W(this,e,Fv,Ov,z,{reversed:1})}},c0=Ku;function Hv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P=i[2].default,v=Ee(P,i,i[1],null),g=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],I={};for(let N=0;N<g.length;N+=1)I=le(I,g[N]);return{c(){e=L("svg"),v&&v.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),l=L("clipPath"),a=L("path"),s=L("filter"),u=L("feFlood"),c=L("feColorMatrix"),m=L("feOffset"),h=L("feGaussianBlur"),w=L("feColorMatrix"),b=L("feBlend"),S=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(l,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(b,"in2","BackgroundImageFix"),f(b,"result","effect1_dropShadow_2260_104204"),f(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_104204"),f(S,"result","shape"),f(s,"id","a"),f(s,"width","51"),f(s,"height","45"),f(s,"x","-1.5"),f(s,"y","1.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),be(e,I)},m(N,K){C(N,e,K),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,c),p(s,m),p(s,h),p(s,w),p(s,b),p(s,S),y=!0},p(N,[K]){v&&v.p&&(!y||K&2)&&Ve(v,P,N,N[1],y?Me(P,N[1],K,null):Le(N[1]),null),be(e,I=Re(g,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},K&1&&N[0]]))},i(N){y||(d(v,N),y=!0)},o(N){_(v,N),y=!1},d(N){N&&k(e),v&&v.d(N)}}}function zv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Wu=class extends U{constructor(e){super(),W(this,e,zv,Hv,z,{})}},d0=Wu;function qv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v=i[2].default,g=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],N={};for(let K=0;K<I.length;K+=1)N=le(N,I[K]);return{c(){e=L("svg"),g&&g.c(),t=L("g"),n=L("path"),o=L("path"),r=L("path"),l=L("defs"),a=L("clipPath"),s=L("path"),u=L("filter"),c=L("feFlood"),m=L("feColorMatrix"),h=L("feOffset"),w=L("feGaussianBlur"),b=L("feColorMatrix"),S=L("feBlend"),y=L("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(s,"fill","#fff"),f(s,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"result","effect1_dropShadow_2260_104293"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_104293"),f(y,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),be(e,N)},m(K,q){C(K,e,q),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,c),p(u,m),p(u,h),p(u,w),p(u,b),p(u,S),p(u,y),P=!0},p(K,[q]){g&&g.p&&(!P||q&2)&&Ve(g,v,K,K[1],P?Me(v,K[1],q,null):Le(K[1]),null),be(e,N=Re(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},q&1&&K[0]]))},i(K){P||(d(g,K),P=!0)},o(K){_(g,K),P=!1},d(K){K&&k(e),g&&g.d(K)}}}function Uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Gu=class extends U{constructor(e){super(),W(this,e,Uv,qv,z,{})}},m0=Gu;function Kv(i){let e,t;return e=new d0({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wv(i){let e,t;return e=new m0({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Gv(i){let e,t,n,o,r=[Wv,Kv],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ot()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function jv(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var ju=class extends U{constructor(e){super(),W(this,e,jv,Gv,z,{isOff:0})}},Qu=ju;function Qv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S=i[2].default,y=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=le(v,P[g]);return{c(){e=L("svg"),y&&y.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),l=L("filter"),a=L("feFlood"),s=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),w=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_106627"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","40.098"),f(l,"height","27.785"),f(l,"x","3.402"),f(l,"y","10.105"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(g,I){C(g,e,I),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),b=!0},p(g,[I]){y&&y.p&&(!b||I&2)&&Ve(y,S,g,g[1],b?Me(S,g[1],I,null):Le(g[1]),null),be(e,v=Re(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function Yv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Yu=class extends U{constructor(e){super(),W(this,e,Yv,Qv,z,{})}},p0=Yu;function Zv(i){let e,t;return e=new p0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xv(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Zu=class extends U{constructor(e){super(),W(this,e,Xv,Zv,z,{reversed:1})}},_0=Zu;function Jv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S=i[2].default,y=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=le(v,P[g]);return{c(){e=L("svg"),y&&y.c(),t=L("g"),n=L("path"),o=L("path"),r=L("defs"),l=L("filter"),a=L("feFlood"),s=L("feColorMatrix"),u=L("feOffset"),c=L("feGaussianBlur"),m=L("feColorMatrix"),h=L("feBlend"),w=L("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2340_106922"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","37"),f(l,"height","37"),f(l,"x","5.5"),f(l,"y","5.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(g,I){C(g,e,I),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),b=!0},p(g,[I]){y&&y.p&&(!b||I&2)&&Ve(y,S,g,g[1],b?Me(S,g[1],I,null):Le(g[1]),null),be(e,v=Re(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function xv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Xu=class extends U{constructor(e){super(),W(this,e,xv,Jv,z,{})}},h0=Xu;function $v(i){let e,t;return e=new h0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function e5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Ju=class extends U{constructor(e){super(),W(this,e,e5,$v,z,{reversed:1})}},g0=Ju;function t5(i){Se(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 b0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,w,b,S,y,P=t&&v0(i),v=i[4]==="PAUSE"&&y0(i),g=i[4]==="PLAY"&&w0(i),I=i[4]==="REPLAY"&&k0(i),N=i[4]==="SUBTITLES_OFF"&&C0(i),K=i[4]==="SUBTITLES_ON"&&S0(i),q=u&&P0(i),se=m&&T0(i),ne=i[4]==="MUTE"&&I0(i),E=i[4]==="VOLUME"&&E0(i),ie=i[5]&&M0(i);return{c(){e=T("div"),P&&P.c(),n=O(),v&&v.c(),o=O(),g&&g.c(),r=O(),I&&I.c(),l=O(),N&&N.c(),a=O(),K&&K.c(),s=O(),q&&q.c(),c=O(),se&&se.c(),h=O(),ne&&ne.c(),w=O(),E&&E.c(),b=O(),ie&&ie.c(),S=ot(),f(e,"class","svelte-4ftgwp")},m(x,j){C(x,e,j),P&&P.m(e,null),p(e,n),v&&v.m(e,null),p(e,o),g&&g.m(e,null),p(e,r),I&&I.m(e,null),p(e,l),N&&N.m(e,null),p(e,a),K&&K.m(e,null),p(e,s),q&&q.m(e,null),p(e,c),se&&se.m(e,null),p(e,h),ne&&ne.m(e,null),p(e,w),E&&E.m(e,null),C(x,b,j),ie&&ie.m(x,j),C(x,S,j),y=!0},p(x,j){j&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(x[4])),t?P?(P.p(x,j),j&16&&d(P,1)):(P=v0(x),P.c(),d(P,1),P.m(e,n)):P&&(fe(),_(P,1,1,()=>{P=null}),ce()),x[4]==="PAUSE"?v?j&16&&d(v,1):(v=y0(x),v.c(),d(v,1),v.m(e,o)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),x[4]==="PLAY"?g?j&16&&d(g,1):(g=w0(x),g.c(),d(g,1),g.m(e,r)):g&&(fe(),_(g,1,1,()=>{g=null}),ce()),x[4]==="REPLAY"?I?j&16&&d(I,1):(I=k0(x),I.c(),d(I,1),I.m(e,l)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),x[4]==="SUBTITLES_OFF"?N?j&16&&d(N,1):(N=C0(x),N.c(),d(N,1),N.m(e,a)):N&&(fe(),_(N,1,1,()=>{N=null}),ce()),x[4]==="SUBTITLES_ON"?K?j&16&&d(K,1):(K=S0(x),K.c(),d(K,1),K.m(e,s)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),j&16&&(u=["RATE_DOWN","RATE_UP"].includes(x[4])),u?q?(q.p(x,j),j&16&&d(q,1)):(q=P0(x),q.c(),d(q,1),q.m(e,c)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),j&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(x[4])),m?se?(se.p(x,j),j&16&&d(se,1)):(se=T0(x),se.c(),d(se,1),se.m(e,h)):se&&(fe(),_(se,1,1,()=>{se=null}),ce()),x[4]==="MUTE"?ne?j&16&&d(ne,1):(ne=I0(x),ne.c(),d(ne,1),ne.m(e,w)):ne&&(fe(),_(ne,1,1,()=>{ne=null}),ce()),x[4]==="VOLUME"?E?j&16&&d(E,1):(E=E0(x),E.c(),d(E,1),E.m(e,null)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),x[5]?ie?ie.p(x,j):(ie=M0(x),ie.c(),ie.m(S.parentNode,S)):ie&&(ie.d(1),ie=null)},i(x){y||(d(P),d(v),d(g),d(I),d(N),d(K),d(q),d(se),d(ne),d(E),y=!0)},o(x){_(P),_(v),_(g),_(I),_(N),_(K),_(q),_(se),_(ne),_(E),y=!1},d(x){x&&(k(e),k(b),k(S)),P&&P.d(),v&&v.d(),g&&g.d(),I&&I.d(),N&&N.d(),K&&K.d(),q&&q.d(),se&&se.d(),ne&&ne.d(),E&&E.d(),ie&&ie.d(x)}}}function v0(i){let e,t;return e=new c0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y0(i){let e,t;return e=new Lr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function w0(i){let e,t;return e=new ul({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function k0(i){let e,t;return e=new Ur({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function C0(i){let e,t;return e=new Qu({props:{isOff:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function S0(i){let e,t;return e=new Qu({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function P0(i){let e,t;return e=new _0({props:{reversed:i[4]==="RATE_UP"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function T0(i){let e,t;return e=new g0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function I0(i){let e,t;return e=new Fo({props:{volume:0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E0(i){let e,t;return e=new Fo({props:{volume:1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M0(i){let e,t;return{c(){e=T("span"),t=De(i[5]),f(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&32&&Qe(t,n[5])},d(n){n&&k(e)}}}function i5(i){let e,t,n=!i[1]&&i[4]&&b0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-4ftgwp"),F(e,"hidden",i[1]),F(e,"hot-key-helpers-container--left",i[2]),F(e,"hot-key-helpers-container--right",i[3])},m(o,r){C(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=b0(o),n.c(),d(n,1),n.m(e,null)):n&&(fe(),_(n,1,1,()=>{n=null}),ce()),(!t||r&2)&&F(e,"hidden",o[1]),(!t||r&4)&&F(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&F(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function n5(i,e,t){let n,o=de,r=()=>(o(),o=Qt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=G(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text)},[l,a,s,u,c,m,n]}var xu=class extends U{constructor(e){super(),W(this,e,n5,i5,z,{data:0},t5)}},V0=xu;function o5(i){Se(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 l5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g;return r=new Xn({props:{direction:"up"}}),s=new Xn({props:{direction:"up"}}),h=new Xn({props:{direction:"up"}}),S=new Xn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),D(r.$$.fragment),l=O(),a=T("div"),D(s.$$.fragment),u=O(),c=T("div"),m=T("div"),D(h.$$.fragment),w=O(),b=T("div"),D(S.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(b,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",y=G("aria_label_spherical_control")),F(e,"m-shifted",i[0])},m(I,N){C(I,e,N),p(e,t),p(t,n),p(n,o),B(r,o,null),p(n,l),p(n,a),B(s,a,null),p(t,u),p(t,c),p(c,m),B(h,m,null),p(c,w),p(c,b),B(S,b,null),P=!0,v||(g=[me(o,"mousedown",i[1]),me(o,"mouseup",i[5]),me(o,"mouseleave",i[5]),me(a,"mousedown",i[3]),me(a,"mouseup",i[5]),me(a,"mouseleave",i[5]),me(m,"mousedown",i[4]),me(m,"mouseup",i[5]),me(m,"mouseleave",i[5]),me(b,"mousedown",i[2]),me(b,"mouseup",i[5]),me(b,"mouseleave",i[5]),me(e,"keydown",i[6]),me(e,"keyup",i[7])],v=!0)},p(I,[N]){(!P||N&1)&&F(e,"m-shifted",I[0])},i(I){P||(d(r.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(S.$$.fragment,I),P=!0)},o(I){_(r.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(S.$$.fragment,I),P=!1},d(I){I&&k(e),R(r),R(s),R(h),R(S),v=!1,tt(g)}}}function r5(i,e,t){let{isShifted:n=!1}=e,o=et(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=w=>{if(r.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{r.has(w.code)&&(w.preventDefault(),w.stopPropagation(),c())};return i.$$set=w=>{"isShifted"in w&&t(0,n=w.isShifted)},[n,l,a,s,u,c,m,h]}var $u=class extends U{constructor(e){super(),W(this,e,r5,l5,z,{isShifted:0},o5)}},is=$u;function s5(i){Se(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 L0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function A0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function B0(i){let e,t;function n(l,a){return l[7]&&l[8]?f5:l[5]?u5:a5}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),F(e,"mobile",i[3])},m(l,a){C(l,e,a),p(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&F(e,"mobile",l[3])},d(l){l&&k(e),r.d()}}}function a5(i){let e,t=It(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=R0(L0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ot()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);C(o,e,r)},p(o,r){if(r&18){t=It(o[1]);let l;for(l=0;l<t.length;l+=1){let a=L0(o,t,l);n[l]?n[l].p(a,r):(n[l]=R0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Wi(n,o)}}}function u5(i){let e,t,n=It(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=N0(A0(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),mi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=It(r[6]);let a;for(a=0;a<n.length;a+=1){let s=A0(r,n,a);o[a]?o[a].p(s,l):(o[a]=N0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&mi(t,"font-size",r[4]+"px")},d(r){r&&k(e),Wi(o,r)}}}function f5(i){let e,t,n=G("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=De(n),f(t,"class","caption-segment svelte-ovfyp5"),mi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&mi(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function R0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=De(n),r=O(),f(t,"class","caption-segment svelte-ovfyp5"),mi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){C(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Qe(o,n),a&16&&mi(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function D0(i){let e=i[16]+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Qe(t,e)},d(n){n&&k(t)}}}function N0(i){let e,t=(!i[17]||i[17]<=i[2])&&D0(i);return{c(){t&&t.c(),e=ot()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=D0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function c5(i){let e,t=i[1].length>0&&B0(i);return{c(){e=T("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),F(e,"shifted",i[0]),F(e,"auto",i[5]&&!i[8])},m(n,o){C(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=B0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&F(e,"shifted",n[0]),o&288&&F(e,"auto",n[5]&&!n[8])},i:de,o:de,d(n){n&&k(e),t&&t.d()}}}function d5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=et(),m=zt(),h=c.state.currentSubtitle$;H(i,h,g=>t(12,n=g));let w=c.state.isAutoSubtitleCaptionVisible$;H(i,w,g=>t(8,o=g));let b,S,y,P,v;return Rt(()=>{v=window.setTimeout(()=>{w.set(!1)},m.autoSubtitlesTimeout)}),Un(()=>{window.clearTimeout(v)}),i.$$set=g=>{"shifted"in g&&t(0,r=g.shifted),"captions"in g&&t(1,l=g.captions),"position"in g&&t(2,a=g.position),"playerSize"in g&&t(11,s=g.playerSize),"isMobile"in g&&t(3,u=g.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let g=s.width*.02;t(4,b=g<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:g)}if(i.$$.dirty&2)e:t(5,S=l.some(g=>g.type==="timestamp"));if(i.$$.dirty&2)e:t(6,y=l.reduce((g,{type:I,value:N})=>(I==="timestamp"?g.push({timeAppeared:Number(N),value:""}):g.length===0?g.push({value:String(N)}):g[g.length-1].value=String(N),g),[]));if(i.$$.dirty&4096)e:t(7,P=!!n.isAuto)},[r,l,a,u,b,S,y,P,o,h,w,s,n]}var ef=class extends U{constructor(e){super(),W(this,e,d5,c5,z,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},s5)}},ns=ef;function m5(i){Se(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 O0(i){let e,t,n;return{c(){e=T("div"),t=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){C(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Qe(n,o[1])},d(o){o&&k(e)}}}function p5(i){let e,t,n,o,r,l,a=i[1]&&O0(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=O(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){C(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),r||(l=me(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=O0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&f(e,"style",o)},i:de,o:de,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function _5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){In.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var tf=class extends U{constructor(e){super(),W(this,e,_5,p5,z,{thumbUrl:0,chromecastDeviceName:1},m5)}},os=tf;function h5(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function g5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var nf=class extends U{constructor(e){super(),W(this,e,g5,h5,z,{})}},F0=nf;function b5(i){Se(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 v5(i){let e,t,n;return t=new F0({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}var of=class extends U{constructor(e){super(),W(this,e,null,v5,z,{},b5)}},ls=of;function y5(i){Se(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 w5(i){let e,t,n,o,r,l,a,s,u,c;return r=new ul({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=O(),D(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",l=G("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),F(e,"hidden",i[1])},m(m,h){C(m,e,h),p(e,t),p(t,n),p(t,o),B(r,t,null),s=!0,u||(c=[me(t,"keydown",i[3]),me(e,"click",st(function(){Pi(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!s||h&2)&&F(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&k(e),R(r),u=!1,tt(c)}}}function k5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=et().ui.startedByKeyboard$,s=u=>{let c=u.code;["Enter","Space"].includes(c)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,s]}var lf=class extends U{constructor(e){super(),W(this,e,k5,w5,z,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},y5)}get handlePressKey(){return this.$$.ctx[3]}},rs=lf;function C5(i){Se(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(
|
|
24
|
+
)}`)}function Fc(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Hc(i){let e,t;return e=new Nc({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zc(i){let e,t;return e=new Rc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qc(i){let e,t;return e=new Oc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function g2(i){let e,t,n,o,r,l,a,s=i[0]&&Fc(i),u=i[3]&&Hc(i),c=i[7]&&zc(i),m=i[4]&&qc(i);return{c(){e=T("div"),s&&s.c(),t=O(),n=T("video"),o=O(),u&&u.c(),r=O(),c&&c.c(),l=O(),m&&m.c(),hi(n,"width","100%"),hi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,y){C(h,e,y),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),c&&c.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[y]){h[0]?s||(s=Fc(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,y),y&8&&d(u,1)):(u=Hc(h),u.c(),d(u,1),u.m(e,r)):u&&(fe(),_(u,1,1,()=>{u=null}),ce()),h[7]?c?y&128&&d(c,1):(c=zc(h),c.c(),d(c,1),c.m(e,l)):c&&(fe(),_(c,1,1,()=>{c=null}),ce()),h[4]?m?y&16&&d(m,1):(m=qc(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),ce())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){_(u),_(c),_(m),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function b2(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=it(),y=h.state.isEnded$;F(i,y,H=>t(7,a=H));let b=h.ui.isMobile;F(i,b,H=>t(0,o=H));let S,w,P=!1,v=h.ads.playbackState;F(i,v,H=>t(18,n=H));let g=h.ads.canSkip,I=h.ads.position;F(i,I,H=>t(5,r=H));let A=h.ads.secondsToWatchBeforeSkip;F(i,A,H=>t(6,l=H));let q,K;Bt(()=>{let H=new AbortController,L=()=>{H.abort()},x=h.getAdmanWrapper();if(!s){x.onAdmanLoadingError();return}let{width:Q,height:J}=tt(h.ui.playerSize),E=tt(h.ui.isFullscreen),te=tt(h.ui.isAutoplay),M={width:Q,height:J,isFullscreen:E,isAutoplay:te,adsContainer:S,adsVideoElement:w,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?(x.initAdman(M),P=!0):x.loadAdman(H.signal).then(()=>{x.initAdman(M),P=!0}).catch(()=>{x.onAdmanLoadingError()}),()=>{!P&&L()}});function re(H){_e[H?"unshift":"push"](()=>{w=H,t(2,w)})}function ae(H){_e[H?"unshift":"push"](()=>{S=H,t(1,S)})}return i.$$set=H=>{"adsSlotId"in H&&t(14,s=H.adsSlotId),"adsParams"in H&&t(15,u=H.adsParams),"adsPreviewParam"in H&&t(16,c=H.adsPreviewParam),"duration"in H&&t(17,m=H.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,q=g&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,K=o&&n!=="inactive")},[o,S,w,q,K,r,l,a,h,y,b,v,I,A,s,u,c,m,n,re,ae]}var zs=class extends j{constructor(e){super(),W(this,e,b2,g2,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},h2)}},dr=zs;var En=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function v2(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var qs=class extends j{constructor(e){super(),W(this,e,y2,v2,U,{})}},Uc=qs;function w2(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("rect"),n=N("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function k2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Us=class extends j{constructor(e){super(),W(this,e,k2,w2,U,{})}},Kc=Us;function C2(i){let e,t;return e=new Uc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function S2(i){let e,t;return e=new Kc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function P2(i){let e,t,n,o,r=[S2,C2],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function T2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Ks=class extends j{constructor(e){super(),W(this,e,T2,P2,U,{isActive:0})}},mr=Ks;function I2(i){Se(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 E2(i){let e=En(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=En(n[4]-n[3])+"")&&Ye(t,e)},i:pe,o:pe,d(n){n&&k(t)}}}function M2(i){let e,t,n;return t=new mr({props:{isActive:!0}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function V2(i){let e,t,n,o,r,l,a,s=[M2,E2],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](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=O(),o=T("span"),l.c(),f(t,"class","thumb-timer-equalizer svelte-7pnl2h"),f(o,"class","thumb-timer-text svelte-7pnl2h"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-7pnl2h"),f(e,"data-testid","thumb-timer"),z(e,"live",i[1]),z(e,"hidden",i[0]),z(e,"playing",i[2])},m(m,h){C(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let y=r;r=c(m,h),r===y?u[r].p(m,h):(fe(),_(u[y],1,1,()=>{u[y]=null}),ce(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&z(e,"live",m[1]),(!a||h&1)&&z(e,"hidden",m[0]),(!a||h&4)&&z(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&k(e),u[r].d()}}}function A2(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var js=class extends j{constructor(e){super(),W(this,e,A2,V2,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},I2)}},pr=js;var Il=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 Ws=require("@vkontakte/videoplayer-core");var Wc=require("@vkontakte/videoplayer-shared"),L2=(0,Wc.isAndroid)(),No=i=>{i.stopPropagation(),i.preventDefault()},B2=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},R2=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},D2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},N2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Gc=i=>i.code==="Escape",O2=i=>i.code==="ArrowLeft",Qc=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Yc=i=>{if(D2(i)){No(i),R2(i.target);return}N2(i)&&(No(i),B2(i.target))},nl=i=>(i==null?void 0:i.detail)===0||L2&&(i==null?void 0:i.pointerType)==="",ol=async(i,e,t)=>{await Kn(),i&&!i.classList.contains("opened")&&!e&&tt(t)&&(await Kn(),t.set(!1),i.focus())},Zc=async(i,e,t)=>{await Kn(),i&&!e&&tt(t)&&(t.set(!1),i.focus())},Oo=async(i,e,t)=>{await Kn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},El=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},_r=(i,e)=>{Yc(i),Gc(i)&&(No(i),e())},Ml=async(i,e,t)=>{if(Qc(i,!1)){No(i),e(),await Kn();let n=t();n==null||n.focus()}},Vl=async(i,e,t,n)=>{if(Yc(i),O2(i)){No(i),e(),t.set(!0);return}Gc(i)&&(No(i),n())},$i=(i,e)=>{Qc(i)&&(No(i),e())},Xc=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Jc=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 Al=require("@vkontakte/videoplayer-shared");function F2(i){Se(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 xc(i){var L;let e,t,n,o,r,l,a,s,u,c=(i[10].features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug"))+"",m,h,y,b,S=Y("menu_debug_overlay")+"",w,P,v,g,I=i[10].features.copyVideoLink&&((L=i[9].callbacks)==null?void 0:L.onCopyVideoLink)&&H2(i),A=i[12]&&i[6]!==Ws.ChromecastState.CONNECTED&&!i[17]&&e1(i);function q(x,Q){return x[4]?q2:z2}let K=q(i,[-1,-1]),re=K(i),ae=i[10].features.videoRotate&&!i[17]&&U2(i),H=i[10].showSupport&&!i[7]&&t1(i);return{c(){e=T("ul"),I&&I.c(),t=O(),A&&A.c(),n=O(),o=T("li"),re.c(),l=O(),ae&&ae.c(),a=O(),H&&H.c(),s=O(),u=T("li"),m=De(c),y=O(),b=T("li"),w=De(S),f(o,"tabindex","0"),f(o,"role","menuitem"),f(o,"aria-label",r=Y("aria_label_menu_loop")),f(o,"class","svelte-1vzqlps"),f(u,"tabindex","0"),f(u,"role","menuitem"),f(u,"aria-label",h=i[10].features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug")),f(u,"class","svelte-1vzqlps"),f(b,"tabindex","0"),f(b,"role","menuitem"),f(b,"aria-label",P=i[8]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable")),f(b,"class","svelte-1vzqlps"),f(e,"role","menu"),hi(e,"top",i[3]+"px"),hi(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m(x,Q){C(x,e,Q),I&&I.m(e,null),p(e,t),A&&A.m(e,null),p(e,n),p(e,o),re.m(o,null),p(e,l),ae&&ae.m(e,null),p(e,a),H&&H.m(e,null),p(e,s),p(e,u),p(u,m),p(e,y),p(e,b),p(b,w),i[42](e),v||(g=[de(o,"click",st(i[24])),de(o,"keydown",i[30]),de(u,"click",st(i[21])),de(u,"keydown",i[32]),de(b,"click",st(i[22])),de(b,"keydown",i[33]),de(e,"contextmenu",Lt(i[39])),de(e,"keydown",i[26])],v=!0)},p(x,Q){var J;x[10].features.copyVideoLink&&((J=x[9].callbacks)!=null&&J.onCopyVideoLink)&&I.p(x,Q),x[12]&&x[6]!==Ws.ChromecastState.CONNECTED&&!x[17]?A?A.p(x,Q):(A=e1(x),A.c(),A.m(e,n)):A&&(A.d(1),A=null),K===(K=q(x,Q))&&re?re.p(x,Q):(re.d(1),re=K(x),re&&(re.c(),re.m(o,null))),x[10].features.videoRotate&&!x[17]&&ae.p(x,Q),x[10].showSupport&&!x[7]?H?H.p(x,Q):(H=t1(x),H.c(),H.m(e,s)):H&&(H.d(1),H=null),Q[0]&256&&P!==(P=x[8]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable"))&&f(b,"aria-label",P),Q[0]&8&&hi(e,"top",x[3]+"px"),Q[0]&4&&hi(e,"left",x[2]+"px")},d(x){x&&k(e),I&&I.d(),A&&A.d(),re.d(),ae&&ae.d(),H&&H.d(),i[42](null),v=!1,nt(g)}}}function H2(i){let e,t=Y("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&$c(i);return{c(){e=T("li"),n=De(t),r=O(),u&&u.c(),l=lt(),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Y("menu_copy_video_link")),f(e,"class","svelte-1vzqlps")},m(c,m){C(c,e,m),p(e,n),C(c,r,m),u&&u.m(c,m),C(c,l,m),a||(s=[de(e,"click",st(i[40])),de(e,"keydown",i[27])],a=!0)},p(c,m){!c[5]&&!c[17]?u?u.p(c,m):(u=$c(c),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(c){c&&(k(e),k(r),k(l)),u&&u.d(c),a=!1,nt(s)}}}function $c(i){let e,t=Y("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Y("menu_copy_video_link_with_timestamp")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",st(i[41])),de(e,"keydown",i[28])],r=!0)},p:pe,d(a){a&&k(e),r=!1,nt(l)}}}function e1(i){let e,t=Y("menu_pip")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Y("menu_pip")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",st(i[23])),de(e,"keydown",i[29])],r=!0)},p:pe,d(a){a&&k(e),r=!1,nt(l)}}}function z2(i){let e=Y("menu_video_loop_on")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function q2(i){let e=Y("menu_video_loop_off")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function U2(i){let e,t=Y("menu_video_rotate")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Y("aria_label_menu_rotate")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",st(i[19])),de(e,"keydown",i[30])],r=!0)},p:pe,d(a){a&&k(e),r=!1,nt(l)}}}function t1(i){let e,t=Y("menu_report")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",st(i[20])),de(e,"keydown",i[31])],r=!0)},p:pe,d(a){a&&k(e),r=!1,nt(l)}}}function K2(i){let e,t=i[1]&&xc(i);return{c(){t&&t.c(),e=lt()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=xc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:pe,o:pe,d(n){n&&k(e),t&&t.d(n)}}}function j2(i,e,t){var Te;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:c}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:y=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:S}=e,w=0,P=0,v=it(),g=Ht(),I=v.ui.contextMenu.visible$,A=v.ui.debugPanelVisible;F(i,A,Z=>t(8,s=Z));let q=v.webApi.pictureInPictureApi,K=(Te=v.webApi.pictureInPictureApi)==null?void 0:Te.info.isActive$;F(i,K,Z=>t(7,a=Z));let re=v.state.chromecastState$;F(i,re,Z=>t(6,l=Z));let ae=v.state.isLive$;F(i,ae,Z=>t(5,r=Z));let H=v.state.positionExact$;F(i,H,Z=>t(43,n=Z));let L=v.state.isInteractive,x=v.state.looped$;F(i,x,Z=>t(4,o=Z));let Q=()=>{I.set(!1)},J=(Z,Ce)=>{if(!b||!h||!y)return;let ue=b.getBoundingClientRect(),Ie=h.getBoundingClientRect();t(2,w=Z-Ie.left),t(3,P=Ce-Ie.top),w+ue.width>Ie.width&&t(2,w=Ie.width-ue.width),P+ue.height>Ie.height&&t(3,P=Ie.height-ue.height),t(2,w=Math.max(w,0)),t(3,P=Math.max(P,0))},E=()=>{Q(),v.actions.internal.videoRotate()},te=()=>{window.open(c,"_blank"),Q(),v.actions.internal.pause()},M=()=>{let Z=v.actions.internal.getDebugTextData();if(g.features.saveDebugInfoToFile){let Ce=new Blob([...Z],{type:"plain/text"}),ue=window.URL.createObjectURL(Ce);er(ue,"vk_player_debug_info","txt")}else Il(v.actions.internal.getDebugTextData());Q(),S==null||S()},ee=()=>{A.set(!0),Q(),S==null||S()},ke=async()=>{try{q!=null&&q.isActive()?await(q==null?void 0:q.remove()):await(q==null?void 0:q.request())}finally{Q(),S==null||S()}},Qe=()=>{v.actions.internal.setLooped(!o),Q()},je=(Z=!1)=>{var Ce,ue;if((Ce=v.callbacks)!=null&&Ce.onCopyVideoLink){let Ie=(ue=v.callbacks)==null?void 0:ue.onCopyVideoLink(Z,n);Ie&&Il(Ie)}Q()},$e=Z=>{_r(Z,Q)},We=Z=>{$i(Z,()=>je())},ve=Z=>{$i(Z,()=>je(!0))},X=Z=>{$i(Z,()=>ke())},be=Z=>{$i(Z,()=>E())},Oe=Z=>{$i(Z,()=>te())},xe=Z=>{$i(Z,()=>M())},et=Z=>{$i(Z,()=>ee())};function ye(Z){In.call(this,i,Z)}let Be=()=>je(),Ue=()=>je(!0);function Xe(Z){_e[Z?"unshift":"push"](()=>{b=Z,t(0,b)})}return i.$$set=Z=>{"visible"in Z&&t(1,u=Z.visible),"supportLink"in Z&&t(34,c=Z.supportLink),"position"in Z&&t(35,m=Z.position),"playerContainerRef"in Z&&t(36,h=Z.playerContainerRef),"controlsContainerRef"in Z&&t(37,y=Z.controlsContainerRef),"menuElementRef"in Z&&t(0,b=Z.menuElementRef),"returnFocus"in Z&&t(38,S=Z.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&h&&y){let{top:Z,left:Ce,bottom:ue,right:Ie}=m,Je=Ce!=null?Ce:0,at=Z!=null?Z:0,ut=b.getBoundingClientRect();(0,Al.isNullable)(Ce)&&!(0,Al.isNullable)(Ie)&&(Je=Ie-ut.width),(0,Al.isNullable)(Z)&&!(0,Al.isNullable)(ue)&&(at=ue-ut.height),Je=Math.max(Je,0),at=Math.max(at,0),J(Je,at)}}},[b,u,w,P,o,r,l,a,s,v,g,A,q,K,re,ae,H,L,x,E,te,M,ee,ke,Qe,je,$e,We,ve,X,be,Oe,xe,et,c,m,h,y,S,ye,Be,Ue,Xe]}var Gs=class extends j{constructor(e){super(),W(this,e,j2,K2,U,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},F2,[-1,-1])}},i1=Gs;var hr=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new hr(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 W2(i){Se(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function G2(i){let e,t;return{c(){e=T("div"),t=T("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){C(n,e,o),p(e,t),i[3](t)},p:pe,i:pe,o:pe,d(n){n&&k(e),i[3](null)}}}var Qs=16,Ys=120,n1=60;function Q2(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Y2(i,e,t){let{values:n=[]}=e,o,r,l=Ys/n1;Bt(()=>{t(0,o.width=Ys,o),t(0,o.height=Qs,o),t(2,r=o.getContext("2d"))});function a(s){_e[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6)e:{let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,Ys,Qs);let c=n1-1;for(let m=n.length-1;m>=0;m--){let h=c*l,y=u>0?Qs*(n[m]/u):0;Q2(r,h,0,l,y),s=y+" "+s,c--}}}},[o,n,r,a]}var Zs=class extends j{constructor(e){super(),W(this,e,Y2,G2,U,{values:1},W2)}},gr=Zs;var Xs=require("@vkontakte/videoplayer-shared");function Z2(i){Se(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 o1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Ye(l,r)},d(a){a&&k(e)}}}function l1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Ye(l,r)},d(a){a&&k(e)}}}function r1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Ye(l,r)},d(a){a&&k(e)}}}function s1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Ye(l,r)},d(a){a&&k(e)}}}function a1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Ye(l,r)},d(a){a&&k(e)}}}function u1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=O(),o=T("span"),l=De(r),a=De(" %"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Ye(l,r)},d(s){s&&k(e)}}}function f1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=O(),o=T("span"),l=De(r),a=De(" s"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Ye(l,r)},d(s){s&&k(e)}}}function c1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(p1).map(_1).join(" / ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video"},{value:a[0].currentAudioSegmentLength,title:"Audio"}].filter(p1).map(_1).join(" / ")+"")&&Ye(l,r)},d(a){a&&k(e)}}}function d1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new gr({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=O(),D(o.$$.fragment),r=O(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),B(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let y={};h&32&&(y.values=m[5]),o.$set(y),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ye(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),R(o)}}}function m1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new gr({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=O(),D(o.$$.fragment),r=O(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),B(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let y={};h&64&&(y.values=m[6]),o.$set(y),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ye(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),R(o)}}}function X2(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,ve,X,be=i[0].id&&o1(i),Oe=i[0].provider&&l1(i),xe=i[0].viewport&&r1(i),et=i[0].videoSize&&s1(i),ye=i[0].cdn&&a1(i),Be=i[0].volume&&u1(i),Ue=i[0].buffer&&f1(i),Xe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&c1(i),Te=i[0].speed&&d1(i),Z=i[0].bitrate&&m1(i);return ee=new gr({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=O(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=O(),s=T("span"),c=De(u),m=O(),be&&be.c(),h=O(),Oe&&Oe.c(),y=O(),xe&&xe.c(),b=O(),et&&et.c(),S=O(),ye&&ye.c(),w=O(),Be&&Be.c(),P=O(),Ue&&Ue.c(),v=O(),Xe&&Xe.c(),g=O(),I=T("div"),A=T("div"),A.textContent="Dropped",q=O(),K=T("span"),re=De(i[2]),ae=De(" / "),H=De(i[1]),L=De(" frames"),x=O(),Te&&Te.c(),Q=O(),Z&&Z.c(),J=O(),E=T("div"),te=T("div"),te.textContent="FPS",M=O(),D(ee.$$.fragment),ke=O(),Qe=T("span"),je=De(i[3]),f(t,"class","close svelte-1fypj5i"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(l,"class","svelte-1fypj5i"),f(r,"class","svelte-1fypj5i"),f(A,"class","svelte-1fypj5i"),f(I,"class","svelte-1fypj5i"),f(te,"class","svelte-1fypj5i"),f(E,"class","svelte-1fypj5i"),f(o,"class","content svelte-1fypj5i"),f(e,"class","container svelte-1fypj5i"),f(e,"role","region"),f(e,"aria-label",$e=Y("aria_label_debug_panel")),z(e,"container-mobile",i[7])},m(Ce,ue){C(Ce,e,ue),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,c),p(o,m),be&&be.m(o,null),p(o,h),Oe&&Oe.m(o,null),p(o,y),xe&&xe.m(o,null),p(o,b),et&&et.m(o,null),p(o,S),ye&&ye.m(o,null),p(o,w),Be&&Be.m(o,null),p(o,P),Ue&&Ue.m(o,null),p(o,v),Xe&&Xe.m(o,null),p(o,g),p(o,I),p(I,A),p(I,q),p(I,K),p(K,re),p(K,ae),p(K,H),p(K,L),p(o,x),Te&&Te.m(o,null),p(o,Q),Z&&Z.m(o,null),p(o,J),p(o,E),p(E,te),p(E,M),B(ee,E,null),p(E,ke),p(E,Qe),p(Qe,je),We=!0,ve||(X=de(t,"click",st(i[9])),ve=!0)},p(Ce,[ue]){(!We||ue&1)&&u!==(u=Ce[0].version+"")&&Ye(c,u),Ce[0].id?be?be.p(Ce,ue):(be=o1(Ce),be.c(),be.m(o,h)):be&&(be.d(1),be=null),Ce[0].provider?Oe?Oe.p(Ce,ue):(Oe=l1(Ce),Oe.c(),Oe.m(o,y)):Oe&&(Oe.d(1),Oe=null),Ce[0].viewport?xe?xe.p(Ce,ue):(xe=r1(Ce),xe.c(),xe.m(o,b)):xe&&(xe.d(1),xe=null),Ce[0].videoSize?et?et.p(Ce,ue):(et=s1(Ce),et.c(),et.m(o,S)):et&&(et.d(1),et=null),Ce[0].cdn?ye?ye.p(Ce,ue):(ye=a1(Ce),ye.c(),ye.m(o,w)):ye&&(ye.d(1),ye=null),Ce[0].volume?Be?Be.p(Ce,ue):(Be=u1(Ce),Be.c(),Be.m(o,P)):Be&&(Be.d(1),Be=null),Ce[0].buffer?Ue?Ue.p(Ce,ue):(Ue=f1(Ce),Ue.c(),Ue.m(o,v)):Ue&&(Ue.d(1),Ue=null),Ce[0].currentVideoSegmentLength||Ce[0].currentAudioSegmentLength?Xe?Xe.p(Ce,ue):(Xe=c1(Ce),Xe.c(),Xe.m(o,g)):Xe&&(Xe.d(1),Xe=null),(!We||ue&4)&&Ye(re,Ce[2]),(!We||ue&2)&&Ye(H,Ce[1]),Ce[0].speed?Te?(Te.p(Ce,ue),ue&1&&d(Te,1)):(Te=d1(Ce),Te.c(),d(Te,1),Te.m(o,Q)):Te&&(fe(),_(Te,1,1,()=>{Te=null}),ce()),Ce[0].bitrate?Z?(Z.p(Ce,ue),ue&1&&d(Z,1)):(Z=m1(Ce),Z.c(),d(Z,1),Z.m(o,J)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),ce());let Ie={};ue&16&&(Ie.values=Ce[4]),ee.$set(Ie),(!We||ue&8)&&Ye(je,Ce[3]),(!We||ue&128)&&z(e,"container-mobile",Ce[7])},i(Ce){We||(d(Te),d(Z),d(ee.$$.fragment,Ce),We=!0)},o(Ce){_(Te),_(Z),_(ee.$$.fragment,Ce),We=!1},d(Ce){Ce&&k(e),be&&be.d(),Oe&&Oe.d(),xe&&xe.d(),et&&et.d(),ye&&ye.d(),Be&&Be.d(),Ue&&Ue.d(),Xe&&Xe.d(),Te&&Te.d(),Z&&Z.d(),R(ee),ve=!1,X()}}}var p1=({value:i})=>i,_1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function J2(i,e,t){let n,o=it(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;F(i,l,g=>t(7,n=g));let a=()=>{Xs.safeStorage.remove(Sl),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,y=new ll(60),b=new ll(60),S=new ll(60),w=[],P=[],v=[];return Bt(()=>{Xs.safeStorage.set(Sl,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let g=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),I;return u&&(I=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let A=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=A-c),t(1,c=A),y.push(h),s.speed&&b.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,w=y.getValuesFromBottom()),t(5,P=b.getValuesFromBottom()),t(6,v=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(g),I&&clearInterval(I)}}),[s,c,m,h,w,P,v,n,l,a]}var Js=class extends j{constructor(e){super(),W(this,e,J2,X2,U,{},Z2)}},br=Js;function x2(i){Se(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 $2(i){let e,t,n;return{c(){e=T("div"),f(e,"class","close svelte-1ome55p")},m(o,r){C(o,e,r),t||(n=de(e,"click",st(i[0])),t=!0)},p:pe,i:pe,o:pe,d(o){o&&k(e),t=!1,n()}}}function eh(i){function e(t){In.call(this,i,t)}return[e]}var xs=class extends j{constructor(e){super(),W(this,e,eh,$2,U,{},x2)}},h1=xs;var g1=require("@vkontakte/videoplayer-shared");function th(i){Se(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 ih(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=O(),o=N("svg"),r=N("g"),l=N("g"),a=N("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(l,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(s,u){C(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:pe,i:pe,o:pe,d(s){s&&k(e),i[2](null)}}}var nh=5e3;function oh(i,e,t){let{onTimerEnded:n=g1.noop}=e,o;Bt(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let c=(Date.now()-s)/nh;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){_e[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var $s=class extends j{constructor(e){super(),W(this,e,oh,ih,U,{onTimerEnded:1},th)}},b1=$s;function lh(i){Se(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 v1(i){let e,t;return e=new b1({props:{onTimerEnded:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rh(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A;a=new h1({}),a.$on("click",i[4]);let q=i[3]&&v1(i);return{c(){e=T("div"),t=O(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=O(),D(a.$$.fragment),s=O(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),y=O(),q&&q.c(),S=O(),w=T("div"),P=T("div"),v=De(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",b=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(P,"class","title svelte-kisfwc"),f(w,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(K,re){C(K,e,re),C(K,t,re),C(K,n,re),p(n,o),p(o,r),p(o,l),B(a,o,null),p(n,s),p(n,u),p(u,c),p(c,m),p(m,h),p(m,y),q&&q.m(m,null),p(u,S),p(u,w),p(w,P),p(P,v),g=!0,I||(A=de(u,"click",function(){Ai(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(K,[re]){i=K,i[3]?q?(q.p(i,re),re&8&&d(q,1)):(q=v1(i),q.c(),d(q,1),q.m(m,null)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),(!g||re&2&&b!==(b=`background-image: url('${i[1]}')`))&&f(m,"style",b),(!g||re&1)&&Ye(v,i[0])},i(K){g||(d(a.$$.fragment,K),d(q),g=!0)},o(K){_(a.$$.fragment,K),_(q),g=!1},d(K){K&&(k(e),k(t),k(n)),R(a),q&&q.d(),I=!1,A()}}}function sh(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,r=s.playNextVideo)},[n,o,r,l,a]}var ea=class extends j{constructor(e){super(),W(this,e,sh,rh,U,{title:0,thumb:1,playNextVideo:2},lh)}},y1=ea;var ho=require("@vkontakte/videoplayer-core"),w1=require("@vkontakte/videoplayer-shared"),vn=require("@vkontakte/videoplayer-statistics");var ta=(i,e)=>Math.min(+(i+e).toFixed(2),1),ia=(i,e)=>Math.max(+(i-e).toFixed(2),0),vr=(i,e,t)=>{let n=ta(e,t);e<1&&i.actions.internal.setVolume(n)},yr=(i,e,t)=>{let n=ia(e,t);e>0&&i.actions.internal.setVolume(n)};var _o=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function uh(i){Se(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function fh(i){let e,t,n,o,r,l=i[26].default,a=Ee(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=Y("aria_label_video_player"))},m(s,u){C(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Ae(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,nt(r)}}}function ch(i,e,t){var ht,gt;let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,{$$slots:v={},$$scope:g}=e,{isAds:I}=e,{hideContextMenu:A}=e,{toggleFullscreen:q}=e,{showHotKeyHelpers:K}=e,{showKeyMap:re}=e,{fakePlayButtonHandler:ae}=e,H=it(),L=Ht(),x=H.getLogger().createComponentLog("KeyboardControls component"),Q=H.state.playbackState$;F(i,Q,we=>t(31,o=we));let J=H.ads.playbackState;F(i,J,we=>t(30,n=we));let E=H.state.positionExact$;F(i,E,we=>t(41,b=we));let te=H.state.duration$;F(i,te,we=>t(40,y=we));let M=H.state.volume$;F(i,M,we=>t(44,P=we));let ee=H.ui.controls.disabledControls$;F(i,ee,we=>t(39,h=we));let ke=H.state.muted$;F(i,ke,we=>t(34,a=we));let Qe=H.state.currentSubtitle$;F(i,Qe,we=>t(33,l=we));let je=H.state.currentPlaybackRate$;F(i,je,we=>t(42,S=we));let $e=H.state.availablePlaybackRates$;F(i,$e,we=>t(43,w=we));let We=H.ui.contextMenu.openedByHotKey$,ve=H.ui.contextMenu.lastActiveElem$,X=H.ui.contextMenu.visible$,be=H.ui.contextMenu.position$,Oe=H.state.isEnded$;F(i,Oe,we=>t(36,u=we));let xe=H.ui.overlayContainer$;F(i,xe,we=>t(32,r=we));let et=(ht=H.callbacks)==null?void 0:ht.onAudioDoesNotExistHint,ye=(gt=H.callbacks)==null?void 0:gt.onAudioDisabledHint,Be=H.state.isAudioAvailable$;F(i,Be,we=>t(35,s=we));let Ue=H.state.isAudioDisabled,Xe=H.state.isInteractiveTime$;F(i,Xe,we=>t(38,m=we));let{showInteractiveTimeIndicatorTooltip$:Te}=Rn();F(i,Te,we=>t(37,c=we));let Z=0,Ce=!0,ue,Ie=()=>ue==null?void 0:ue.focus(),Je=we=>(we!==Ce&&(Ce=we,Z=0),Z+=1,(L.controls.seekStepKeyboard+L.controls.seekStepKeyboard*Z)/1e3),at=we=>{var bt;let mt=we.target,It=(bt=mt==null?void 0:mt.getAttribute("role"))==null?void 0:bt.includes("menuitem"),Et=mt.classList.contains("btn"),ze=we.code;if(Et&&ze==="Space")return;let qt=tc.has(ze);if(It&&qt)return;let Nt=!ec.has(ze);if(we.ctrlKey&&Nt||we.altKey&&Nt||we.metaKey)return;let Ut=It&&ze==="Escape";ic.has(ze)||Ut||A();let Xt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,me=I&&(n==="paused"||n==="playing"),pt=!me&&!h.has("TIMELINE");if(Xt||me)switch(x({message:`key down, code: ${ze}`}),ze){case"KeyJ":case"ArrowLeft":{if(!pt)break;if(we.ctrlKey||we.altKey){let Re=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(Re),Re&&K({type:"EPISODE_PREV",text:Re.text}),we.preventDefault()}else{let Re=we.shiftKey?Je(!1):L.controls.seekStepKeyboard/1e3,qe=Math.max(b-Re,0);b>0&&(H.actions.internal.seekTime(qe,vn.SeekAction.DOUBLE_TAP),K({type:"BACKWARD_SEEK",text:Re.toString()}),we.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!pt)break;if(we.ctrlKey||we.altKey){let Re=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(Re),Re&&K({type:"EPISODE_NEXT",text:Re.text}),we.preventDefault()}else{let Re=we.shiftKey?Je(!0):L.controls.seekStepKeyboard/1e3,qe=Math.min(b+Re,y);Math.round(b)<Math.round(y)&&(H.actions.internal.seekTime(qe,vn.SeekAction.DOUBLE_TAP),K({type:"FORWARD_SEEK",text:Re.toString()}),we.preventDefault())}break}case"ArrowUp":{if(_o({isAudioDisabled:Ue,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Re=P,qe=L.controls.volumeStepKeyboard,yt=Re<=1;if(vr(H,Re,qe),yt){let Ot=Math.round(ta(Re,qe)*100).toString();K({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ot}})}}we.preventDefault();break}case"ArrowDown":{if(_o({isAudioDisabled:Ue,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Re=P,qe=L.controls.volumeStepKeyboard,yt=Re>=0;if(yr(H,Re,qe),yt){let Ot=Math.round(ia(Re,qe)*100).toString();K({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ot}})}}we.preventDefault();break}case"Comma":{if(we.shiftKey){H.actions.internal.decrementPlaybackRate();let Re=w.find(qe=>qe.value===S);K({type:"RATE_DOWN",text:Re==null?void 0:Re.displayValue}),we.preventDefault()}else{if(me||o!==ho.PlaybackState.PAUSED)break;let Re=Math.max(b-L.controls.seekStepFrame/1e3,0);b>0&&(K({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Re,vn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"Period":{if(we.shiftKey){H.actions.internal.incrementPlaybackRate();let Re=w.find(qe=>qe.value===S);K({type:"RATE_UP",text:Re==null?void 0:Re.displayValue}),we.preventDefault()}else{if(me||o!==ho.PlaybackState.PAUSED)break;let Re=Math.min(b+L.controls.seekStepFrame/1e3,y);b<y&&(K({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Re,vn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&Te.set(!1),ae)ae();else{H.actions.internal.togglePlay();let Re="PLAY";o===ho.PlaybackState.PAUSED?Re="PAUSE":u&&(Re="REPLAY"),K({type:Re})}we.preventDefault();break;case"KeyM":{_o({isAudioDisabled:Ue,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})&&(K({type:a?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),we.preventDefault();break}case"KeyF":q(),we.preventDefault();break;case"KeyC":H.actions.internal.toggleSubtitle(),l.value!=="off"?K({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):K({type:"SUBTITLES_OFF"}),we.preventDefault();break;case"KeyI":H.actions.internal.togglePictureInPicture(),we.preventDefault();break;case"Digit1":case"Numpad1":if(we.shiftKey){let Re=Jc(r);be.set(Re),ve.set(mt),We.set(!0),X.set(!0),we.preventDefault();break}K(),H.actions.internal.seekToPercent(.1,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit2":case"Numpad2":K(),H.actions.internal.seekToPercent(.2,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit3":case"Numpad3":K(),H.actions.internal.seekToPercent(.3,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit4":case"Numpad4":K(),H.actions.internal.seekToPercent(.4,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit5":case"Numpad5":K(),H.actions.internal.seekToPercent(.5,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit6":case"Numpad6":K(),H.actions.internal.seekToPercent(.6,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit7":case"Numpad7":K(),H.actions.internal.seekToPercent(.7,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit8":case"Numpad8":K(),H.actions.internal.seekToPercent(.8,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit9":case"Numpad9":K(),H.actions.internal.seekToPercent(.9,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit0":case"Numpad0":K(),H.actions.internal.seekToPercent(0,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Slash":{we.shiftKey&&L.features.hotKeyMapModal&&(re(),we.preventDefault());break}case"ShiftLeft":case"ShiftRight":we.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,w1.checkNever)(ze);break}},ut=we=>{let mt=we.code;if(we.ctrlKey||we.altKey||we.metaKey)return;let It=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,Et=I&&(n==="paused"||n==="playing");if(It||Et)switch(mt){case"ShiftLeft":case"ShiftRight":Z=0;break}};function ft(we){_e[we?"unshift":"push"](()=>{ue=we,t(0,ue)})}return i.$$set=we=>{"isAds"in we&&t(18,I=we.isAds),"hideContextMenu"in we&&t(19,A=we.hideContextMenu),"toggleFullscreen"in we&&t(20,q=we.toggleFullscreen),"showHotKeyHelpers"in we&&t(21,K=we.showHotKeyHelpers),"showKeyMap"in we&&t(22,re=we.showKeyMap),"fakePlayButtonHandler"in we&&t(23,ae=we.fakePlayButtonHandler),"$$scope"in we&&t(25,g=we.$$scope)},[ue,Q,J,E,te,M,ee,ke,Qe,je,$e,Oe,xe,Be,Xe,Te,at,ut,I,A,q,K,re,ae,Ie,g,v,ft]}var na=class extends j{constructor(e){super(),W(this,e,ch,fh,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},uh,[-1,-1])}get focus(){return this.$$.ctx[24]}},k1=na;function dh(i){Se(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>',f(e,"class","container svelte-8nkw5s")},m(t,n){C(t,e,n)},p:pe,i:pe,o:pe,d(t){t&&k(e)}}}var oa=class extends j{constructor(e){super(),W(this,e,null,mh,U,{},dh)}},wr=oa;function ph(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2422_111980"),f(y,"result","shape"),f(l,"id","a"),f(l,"width","23"),f(l,"height","23"),f(l,"x",".5"),f(l,"y",".5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function _h(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var la=class extends j{constructor(e){super(),W(this,e,_h,ph,U,{})}},C1=la;var Zn=require("@vkontakte/videoplayer-shared");function hh(i){Se(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 gh(i){let e,t,n,o,r,l,a,s,u,c,m,h,y=i[14].default,b=Ee(y,i,i[13],null);return{c(){var S,w,P,v,g,I;e=T("button"),b&&b.c(),f(e,"class",t="btn "+i[1]+" svelte-1anemql"),f(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S:null,f(e,"aria-hidden",r=(w=i[5])!=null?w:null),f(e,"aria-label",l=(P=i[6])!=null?P:null),f(e,"aria-keyshortcuts",a=(v=i[7])!=null?v:null),f(e,"aria-expanded",s=(g=i[8])!=null?g:null),f(e,"data-testid",u=(I=i[4])!=null?I:null),f(e,"tabindex",i[9])},m(S,w){C(S,e,w),b&&b.m(e,null),i[16](e),c=!0,m||(h=[de(e,"pointerdown",st(Lt(i[15]))),de(e,"click",st(Lt(function(){Ai(i[10]===Zn.noop?null:i[10])&&(i[10]===Zn.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",Lt(function(){Ai(i[11]===Zn.noop?null:i[11])&&(i[11]===Zn.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",Lt(function(){Ai(i[12]===Zn.noop?null:i[12])&&(i[12]===Zn.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[w]){var P,v,g,I,A,q;i=S,b&&b.p&&(!c||w&8192)&&Ve(b,y,i,i[13],c?Me(y,i[13],w,null):Ae(i[13]),null),(!c||w&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&f(e,"class",t),(!c||w&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||w&8&&o!==(o=(P=i[3])!=null?P:null))&&(e.disabled=o),(!c||w&32&&r!==(r=(v=i[5])!=null?v:null))&&f(e,"aria-hidden",r),(!c||w&64&&l!==(l=(g=i[6])!=null?g:null))&&f(e,"aria-label",l),(!c||w&128&&a!==(a=(I=i[7])!=null?I:null))&&f(e,"aria-keyshortcuts",a),(!c||w&256&&s!==(s=(A=i[8])!=null?A:null))&&f(e,"aria-expanded",s),(!c||w&16&&u!==(u=(q=i[4])!=null?q:null))&&f(e,"data-testid",u),(!c||w&512)&&f(e,"tabindex",i[9])},i(S){c||(d(b,S),c=!0)},o(S){_(b,S),c=!1},d(S){S&&k(e),b&&b.d(S),i[16](null),m=!1,nt(h)}}}function bh(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:b=0}=e,{click:S=Zn.noop}=e,{focus:w=Zn.noop}=e,{blur:P=Zn.noop}=e;function v(I){In.call(this,i,I)}function g(I){_e[I?"unshift":"push"](()=>{m=I,t(0,m)})}return i.$$set=I=>{"className"in I&&t(1,r=I.className),"style"in I&&t(2,l=I.style),"disabled"in I&&t(3,a=I.disabled),"testId"in I&&t(4,s=I.testId),"ariaHidden"in I&&t(5,u=I.ariaHidden),"ariaLabel"in I&&t(6,c=I.ariaLabel),"ref"in I&&t(0,m=I.ref),"ariaKeyShortCut"in I&&t(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&t(8,y=I.ariaExpanded),"tabIndex"in I&&t(9,b=I.tabIndex),"click"in I&&t(10,S=I.click),"focus"in I&&t(11,w=I.focus),"blur"in I&&t(12,P=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[m,r,l,a,s,u,c,h,y,b,S,w,P,o,n,v,g]}var ra=class extends j{constructor(e){super(),W(this,e,bh,gh,U,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},hh)}},_t=ra;function vh(i){Se(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 S1(i){let e,t,n,o,r,l=i[2]&&P1(i);return{c(){e=T("div"),t=T("h3"),n=De(i[3]),o=O(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){C(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Ye(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=P1(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),ce())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&k(e),l&&l.d()}}}function P1(i){let e,t;return e=new _t({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:Y("hotkey_map_modal_close_btn_text"),$$slots:{default:[yh]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function yh(i){let e,t;return e=new C1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function wh(i){let e,t,n,o,r,l,a=i[1]&&S1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=O(),o=T("div"),r=T("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){C(c,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=S1(c),a.c(),d(a,1),a.m(t,n)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!l||m&32)&&Ve(u,s,c,c[5],l?Me(s,c[5],m,null):Ae(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&k(e),a&&a.d(),u&&u.d(c)}}}function kh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var sa=class extends j{constructor(e){super(),W(this,e,kh,wh,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},vh)}},T1=sa;var Ch=new Set(["BR"]),aa=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;Ch.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Sh(i){Se(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 I1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function E1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function M1(i){let e,t,n=aa(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=O(),r=T("span"),a=De(l),s=O(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){C(u,e,c),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,c){c&1&&n!==(n=aa(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Ye(a,l)},d(u){u&&k(e)}}}function V1(i){let e,t,n=i[5]+"",o,r,l,a,s=Pt(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=M1(E1(i,s,c));return{c(){e=T("div"),t=T("h5"),o=De(n),r=O(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=O(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(l,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){C(c,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ye(o,n),m&1){s=Pt(c[6]);let h;for(h=0;h<s.length;h+=1){let y=E1(c,s,h);u[h]?u[h].p(y,m):(u[h]=M1(y),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(c){c&&k(e),Ki(u,c)}}}function Ph(i){let e,t=Pt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=V1(I1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){C(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=Pt(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=I1(o,t,l);n[l]?n[l].p(a,r):(n[l]=V1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Ki(n,o)}}}function Th(i){let e,t;return e=new T1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Ph]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ih(i,e,t){let n,o=it(),{data:r,show:l}=o.ui.modals.hotKeyMap;return F(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var ua=class extends j{constructor(e){super(),W(this,e,Ih,Th,U,{},Sh)}},A1=ua;var ts=require("@vkontakte/videoplayer-shared");var Ho=require("@vkontakte/videoplayer-core");var bd=require("@vkontakte/videoplayer-core");var vk=require("@vkontakte/videoplayer-shared");function Eh(i){Se(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 Mh(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,l){C(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Ae(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function Vh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var fa=class extends j{constructor(e){super(),W(this,e,Vh,Mh,U,{},Eh)}},L1=fa;var rl=require("@vkontakte/videoplayer-core");function Ah(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Lh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ca=class extends j{constructor(e){super(),W(this,e,Lh,Ah,U,{})}},B1=ca;function Bh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Rh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var da=class extends j{constructor(e){super(),W(this,e,Rh,Bh,U,{})}},R1=da;function Dh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Nh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ma=class extends j{constructor(e){super(),W(this,e,Nh,Dh,U,{})}},D1=ma;function Oh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var pa=class extends j{constructor(e){super(),W(this,e,Fh,Oh,U,{})}},kr=pa;function Hh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var _a=class extends j{constructor(e){super(),W(this,e,zh,Hh,U,{})}},Cr=_a;var go=i=>{switch(i){case rl.VideoQuality.Q_720P:return D1;case rl.VideoQuality.Q_1080P:return kr;case rl.VideoQuality.Q_1440P:return Cr;case rl.VideoQuality.Q_2160P:return B1;case rl.VideoQuality.Q_4320P:return R1}};function qh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Uh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ha=class extends j{constructor(e){super(),W(this,e,Uh,qh,U,{})}},N1=ha;function Kh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ga=class extends j{constructor(e){super(),W(this,e,jh,Kh,U,{})}},O1=ga;function Wh(i){Se(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function Gh(i){let e,t,n,o,r=i[1]&&F1(i);return n=new O1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=O(),D(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),z(e,"triple",i[2])},m(l,a){C(l,e,a),r&&r.m(e,null),p(e,t),B(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=F1(l),r.c(),d(r,1),r.m(e,t)):r&&(fe(),_(r,1,1,()=>{r=null}),ce());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&z(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&k(e),r&&r.d(),R(n)}}}function Qh(i){let e,t;return e=new N1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F1(i){let e,t;return e=new L1({props:{$$slots:{default:[Yh]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yh(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=kn(o,r(i))),{c(){e&&D(e.$$.fragment),t=lt()},m(l,a){e&&B(e,l,a),C(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){fe();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(e=kn(o,r(l)),D(e.$$.fragment),d(e.$$.fragment,1),B(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&k(t),e&&R(e,l)}}}function Zh(i){let e,t,n,o,r=[Qh,Gh],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Xh(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=go(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[kr,Cr].includes(n))},[o,n,l,r]}var ba=class extends j{constructor(e){super(),W(this,e,Xh,Zh,U,{isMobile:0,currentQuality:3},Wh)}},Sr=ba;function Jh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var va=class extends j{constructor(e){super(),W(this,e,xh,Jh,U,{})}},Pr=va;function $h(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ya=class extends j{constructor(e){super(),W(this,e,eg,$h,U,{})}},H1=ya;function tg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wa=class extends j{constructor(e){super(),W(this,e,ig,tg,U,{})}},z1=wa;function ng(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ka=class extends j{constructor(e){super(),W(this,e,og,ng,U,{})}},q1=ka;function lg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function rg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ca=class extends j{constructor(e){super(),W(this,e,rg,lg,U,{})}},U1=Ca;function sg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ag(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Sa=class extends j{constructor(e){super(),W(this,e,ag,sg,U,{})}},K1=Sa;function ug(i){let e,t;return e=new K1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function fg(i){let e,t;return e=new U1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function cg(i){let e,t,n,o,r=[fg,ug],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function dg(i,e,t){let n,{direction:o="left"}=e,r,l;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,r=["up","down"].includes(o)),t(0,l=["right","down"].includes(o));if(i.$$.dirty&1)e:t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Pa=class extends j{constructor(e){super(),W(this,e,dg,cg,U,{direction:3})}},Xn=Pa;function mg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ta=class extends j{constructor(e){super(),W(this,e,pg,mg,U,{})}},j1=Ta;function _g(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ia=class extends j{constructor(e){super(),W(this,e,hg,_g,U,{})}},sl=Ia;function gg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ea=class extends j{constructor(e){super(),W(this,e,bg,gg,U,{})}},W1=Ea;function vg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function yg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ma=class extends j{constructor(e){super(),W(this,e,yg,vg,U,{})}},G1=Ma;function wg(i){Se(i,"svelte-8jolw5","ul.svelte-8jolw5.svelte-8jolw5{margin:0;padding:0}.menu.svelte-8jolw5.svelte-8jolw5{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-8jolw5.svelte-8jolw5{width:100%}.menu-desktop.svelte-8jolw5.svelte-8jolw5{position:absolute;right:0;bottom:0}.menu-mobile.svelte-8jolw5.svelte-8jolw5{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-8jolw5.svelte-8jolw5{display:none}.menu-subList.svelte-8jolw5.svelte-8jolw5{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-8jolw5.svelte-8jolw5{min-width:164px}.menu-subList-traffic-saving.svelte-8jolw5.svelte-8jolw5{min-width:286px}.item.svelte-8jolw5.svelte-8jolw5{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-8jolw5.svelte-8jolw5{padding:0 14px}.item-quality.item-mobile.svelte-8jolw5.svelte-8jolw5,.item-traffic-saving.item-mobile.svelte-8jolw5.svelte-8jolw5,.item-helper-text.item-mobile.svelte-8jolw5.svelte-8jolw5{flex-direction:row-reverse}.item-helper-text.svelte-8jolw5.svelte-8jolw5{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-8jolw5 span.svelte-8jolw5{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-8jolw5.svelte-8jolw5{padding:7px 14px}.item-helper-text.item-mobile.svelte-8jolw5 span.svelte-8jolw5{text-align:start}.quality-title-mobile.svelte-8jolw5.svelte-8jolw5{flex-grow:1}.item.svelte-8jolw5.svelte-8jolw5:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-8jolw5.svelte-8jolw5:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-8jolw5.svelte-8jolw5:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-8jolw5.svelte-8jolw5:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-8jolw5 .item.svelte-8jolw5{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-8jolw5 .item.svelte-8jolw5:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-8jolw5.svelte-8jolw5{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-8jolw5.svelte-8jolw5{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-8jolw5.svelte-8jolw5{position:relative;opacity:0.7}.menu-valueIcon.svelte-8jolw5.svelte-8jolw5{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-8jolw5.svelte-8jolw5{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-8jolw5 svg,.menu-valueIcon-list.svelte-8jolw5 svg{color:var(--blue-light)}.menu-divider.svelte-8jolw5.svelte-8jolw5{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-8jolw5.svelte-8jolw5{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.svelte-8jolw5.svelte-8jolw5{margin-right:auto;padding-right:12px;opacity:0.9}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar{width:8px}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-8jolw5.svelte-8jolw5{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-8jolw5.svelte-8jolw5{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-8jolw5.svelte-8jolw5:before,.close.svelte-8jolw5.svelte-8jolw5:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-8jolw5.svelte-8jolw5:before{transform:rotate(45deg)}.close.svelte-8jolw5.svelte-8jolw5:after{transform:rotate(-45deg)}")}function Q1(i,e,t){let n=i.slice();return n[142]=e[t],n}function Y1(i,e,t){let n=i.slice();return n[145]=e[t],n}function Z1(i,e,t){let n=i.slice();return n[148]=e[t],n}function X1(i){let e,t,n,o,r,l,a,s,u,c,m,h,y=i[34]&&J1(i),b=i[25]&&x1(i),S=i[24]&&ed(i),w=i[23]&&td(i),P=i[22]&&id(i),v=i[21]&&nd(i),g=i[34]&&od(i);return{c(){e=T("div"),y&&y.c(),t=O(),n=T("ul"),b&&b.c(),o=O(),S&&S.c(),r=O(),w&&w.c(),l=O(),P&&P.c(),a=O(),v&&v.c(),s=O(),g&&g.c(),f(n,"class","items svelte-8jolw5"),f(n,"role","menu"),f(n,"style",u=i[73]()),z(n,"items-mobile",i[34]),f(e,"class","menu svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34]),z(e,"hidden",!i[11])},m(I,A){C(I,e,A),y&&y.m(e,null),p(e,t),p(e,n),b&&b.m(n,null),p(n,o),S&&S.m(n,null),p(n,r),w&&w.m(n,null),p(n,l),P&&P.m(n,null),p(n,a),v&&v.m(n,null),p(n,s),g&&g.m(n,null),i[112](n),c=!0,m||(h=[de(e,"keydown",i[78]),de(e,"mouseenter",i[71]),de(e,"mouseleave",i[72])],m=!0)},p(I,A){I[34]?y?y.p(I,A):(y=J1(I),y.c(),y.m(e,t)):y&&(y.d(1),y=null),I[25]?b?(b.p(I,A),A[0]&33554432&&d(b,1)):(b=x1(I),b.c(),d(b,1),b.m(n,o)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),I[24]?S?(S.p(I,A),A[0]&16777216&&d(S,1)):(S=ed(I),S.c(),d(S,1),S.m(n,r)):S&&(fe(),_(S,1,1,()=>{S=null}),ce()),I[23]?w?(w.p(I,A),A[0]&8388608&&d(w,1)):(w=td(I),w.c(),d(w,1),w.m(n,l)):w&&(fe(),_(w,1,1,()=>{w=null}),ce()),I[22]?P?(P.p(I,A),A[0]&4194304&&d(P,1)):(P=id(I),P.c(),d(P,1),P.m(n,a)):P&&(fe(),_(P,1,1,()=>{P=null}),ce()),I[21]?v?(v.p(I,A),A[0]&2097152&&d(v,1)):(v=nd(I),v.c(),d(v,1),v.m(n,s)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),I[34]?g?(g.p(I,A),A[1]&8&&d(g,1)):(g=od(I),g.c(),d(g,1),g.m(n,null)):g&&(fe(),_(g,1,1,()=>{g=null}),ce()),(!c||A[1]&8)&&z(n,"items-mobile",I[34]),(!c||A[1]&8)&&z(e,"menu-desktop",!I[34]),(!c||A[1]&8)&&z(e,"menu-mobile",I[34]),(!c||A[0]&2048)&&z(e,"hidden",!I[11])},i(I){c||(d(b),d(S),d(w),d(P),d(v),d(g),c=!0)},o(I){_(b),_(S),_(w),_(P),_(v),_(g),c=!1},d(I){I&&k(e),y&&y.d(),b&&b.d(),S&&S.d(),w&&w.d(),P&&P.d(),v&&v.d(),g&&g.d(),i[112](null),m=!1,nt(h)}}}function J1(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${Y("submenu_settings")}`,n=O(),o=T("div"),r=O(),l=T("div"),f(o,"class","close svelte-8jolw5"),f(e,"class","item menu-header svelte-8jolw5"),z(e,"item-mobile",i[34]),f(l,"class","menu-divider svelte-8jolw5")},m(u,c){C(u,e,c),p(e,t),p(e,n),p(e,o),C(u,r,c),C(u,l,c),a||(s=de(o,"click",st(i[57])),a=!0)},p(u,c){c[1]&8&&z(e,"item-mobile",u[34])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function x1(i){let e,t,n,o,r,l,a,s,u,c,m,h,y;n=new Sr({});let b=i[33]&&!i[34]&&$1(i);return{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("menu_quality")}`,l=O(),a=T("div"),s=De(i[16]),u=O(),b&&b.c(),f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(a,"class","menu-value svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Y("aria_label_menu_quality",{actual:i[27]})),f(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),b&&b.m(a,null),i[108](e),m=!0,h||(y=[de(e,"click",st(i[58])),de(e,"keydown",i[79])],h=!0)},p(S,w){(!m||w[0]&65536)&&Ye(s,S[16]),S[33]&&!S[34]?b?(b.p(S,w),w[1]&12&&d(b,1)):(b=$1(S),b.c(),d(b,1),b.m(a,null)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),(!m||w[0]&134217728&&c!==(c=Y("aria_label_menu_quality",{actual:S[27]})))&&f(e,"aria-label",c),(!m||w[1]&8)&&z(e,"item-mobile",S[34])},i(S){m||(d(n.$$.fragment,S),d(b),m=!0)},o(S){_(n.$$.fragment,S),_(b),m=!1},d(S){S&&k(e),R(n),b&&b.d(),i[108](null),h=!1,nt(y)}}}function $1(i){let e,t,n;var o=i[33];function r(l){return{}}return o&&(t=kn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),f(e,"class","menu-valueIcon svelte-8jolw5")},m(l,a){C(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[1]&4&&o!==(o=l[33])){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=kn(o,r(l)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function ed(i){let e,t,n,o,r,l,a,s,u,c,m,h,y;return n=new q1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("menu_playback_rate")}`,l=O(),a=T("div"),s=De(i[9]),u=De("x"),f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(a,"class","menu-value svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Y("aria_label_menu_rate",{actual:i[28]})),f(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[109](e),m=!0,h||(y=[de(e,"click",st(Lt(i[62]))),de(e,"keydown",i[82])],h=!0)},p(b,S){(!m||S[0]&512)&&Ye(s,b[9]),(!m||S[0]&268435456&&c!==(c=Y("aria_label_menu_rate",{actual:b[28]})))&&f(e,"aria-label",c),(!m||S[1]&8)&&z(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),R(n),i[109](null),h=!1,nt(y)}}}function td(i){let e,t,n,o,r,l,a,s=i[35].displayValue+"",u,c,m,h,y;return n=new Pr({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("subtitles_caption")}`,l=O(),a=T("div"),u=De(s),f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(a,"class","menu-value svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Y("aria_label_menu_subtitle",{actual:i[35].displayValue})),f(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[110](e),m=!0,h||(y=[de(e,"click",st(i[64])),de(e,"keydown",i[85])],h=!0)},p(b,S){(!m||S[1]&16)&&s!==(s=b[35].displayValue+"")&&Ye(u,s),(!m||S[1]&16&&c!==(c=Y("aria_label_menu_subtitle",{actual:b[35].displayValue})))&&f(e,"aria-label",c),(!m||S[1]&8)&&z(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),R(n),i[110](null),h=!1,nt(y)}}}function id(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new z1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("menu_traffic_saving")}`,l=O(),a=T("div"),s=De(i[26]),f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(a,"class","menu-value svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",u=Y("aria_label_menu_traffic_saving",{actual:i[26]})),f(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(y,b){C(y,e,b),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[111](e),c=!0,m||(h=[de(e,"click",st(i[59])),de(e,"keydown",i[88])],m=!0)},p(y,b){(!c||b[0]&67108864)&&Ye(s,y[26]),(!c||b[0]&67108864&&u!==(u=Y("aria_label_menu_traffic_saving",{actual:y[26]})))&&f(e,"aria-label",u),(!c||b[1]&8)&&z(e,"item-mobile",y[34])},i(y){c||(d(n.$$.fragment,y),c=!0)},o(y){_(n.$$.fragment,y),c=!1},d(y){y&&k(e),R(n),i[111](null),m=!1,nt(h)}}}function nd(i){let e,t,n,o,r,l,a,s,u;return n=new H1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=Y("aria_label_menu_download")),z(e,"item-mobile",i[34])},m(c,m){C(c,e,m),p(e,t),B(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",st(i[67])),de(e,"keydown",i[91])],s=!0)},p(c,m){(!a||m[1]&8)&&z(e,"item-mobile",c[34])},i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,nt(u)}}}function od(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v=i[37].showSupport&&kg(i);return o=new W1({}),m=new G1({}),{c(){v&&v.c(),e=O(),t=T("li"),n=T("div"),D(o.$$.fragment),r=O(),l=T("div"),l.textContent=`${Y("menu_copy_debug")}`,s=O(),u=T("li"),c=T("div"),D(m.$$.fragment),h=O(),y=T("div"),y.textContent=`${Y("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-8jolw5"),f(l,"class","menu-title svelte-8jolw5"),f(t,"class","item item-mobile svelte-8jolw5"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=Y("menu_copy_debug")),f(c,"class","menu-icon-wrapper svelte-8jolw5"),f(y,"class","menu-title svelte-8jolw5"),f(u,"class","item item-mobile svelte-8jolw5"),f(u,"role","menuitem"),f(u,"tabindex","0"),f(u,"aria-label",b=i[36]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable"))},m(g,I){v&&v.m(g,I),C(g,e,I),C(g,t,I),p(t,n),B(o,n,null),p(t,r),p(t,l),C(g,s,I),C(g,u,I),p(u,c),B(m,c,null),p(u,h),p(u,y),S=!0,w||(P=[de(t,"click",st(i[69])),de(t,"keydown",i[93]),de(u,"click",st(i[70])),de(u,"keydown",i[94])],w=!0)},p(g,I){g[37].showSupport&&v.p(g,I),(!S||I[1]&32&&b!==(b=g[36]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable")))&&f(u,"aria-label",b)},i(g){S||(d(v),d(o.$$.fragment,g),d(m.$$.fragment,g),S=!0)},o(g){_(v),_(o.$$.fragment,g),_(m.$$.fragment,g),S=!1},d(g){g&&(k(e),k(t),k(s),k(u)),v&&v.d(g),R(o),R(m),w=!1,nt(P)}}}function kg(i){let e,t,n,o,r,l,a,s,u;return n=new j1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(e,"class","item item-mobile svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`)},m(c,m){C(c,e,m),p(e,t),B(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",st(i[68])),de(e,"keydown",i[92])],s=!0)},p:pe,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,nt(u)}}}function ld(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b;n=new Xn({props:{direction:"left"}});let S=Pt(i[8]),w=[];for(let v=0;v<S.length;v+=1)w[v]=ad(Z1(i,S,v));let P=v=>_(w[v],1,1,()=>{w[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("submenu_quality")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let g=0;g<w.length;g+=1)w[g].c();f(t,"class","item menu-header svelte-8jolw5"),f(t,"aria-label",l=Y("aria_label_submenu_back")),z(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-8jolw5"),f(c,"class","items svelte-8jolw5"),f(c,"role","menu"),f(c,"style",m=i[73]((v=i[17])==null?void 0:v.clientHeight,!0)),z(c,"items-mobile",i[34]),f(e,"class","menu menu-subList svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),B(n,t,null),p(t,o),p(t,r),i[113](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<w.length;I+=1)w[I]&&w[I].m(c,null);i[116](c),h=!0,y||(b=[de(t,"click",st(i[66])),de(c,"keydown",i[80])],y=!0)},p(v,g){var I;if((!h||g[1]&8)&&z(t,"item-mobile",v[34]),g[0]&256|g[1]&536870920|g[2]&524288){S=Pt(v[8]);let A;for(A=0;A<S.length;A+=1){let q=Z1(v,S,A);w[A]?(w[A].p(q,g),d(w[A],1)):(w[A]=ad(q),w[A].c(),d(w[A],1),w[A].m(c,null))}for(fe(),A=S.length;A<w.length;A+=1)P(A);ce()}(!h||g[0]&131072&&m!==(m=v[73]((I=v[17])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&8)&&z(c,"items-mobile",v[34]),(!h||g[1]&8)&&z(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&z(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(w[g]);h=!0}},o(v){_(n.$$.fragment,v),w=w.filter(Boolean);for(let g=0;g<w.length;g+=1)_(w[g]);h=!1},d(v){v&&k(e),R(n),i[113](null),Ki(w,v),i[116](null),y=!1,nt(b)}}}function rd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function sd(i){let e,t,n;var o=go(i[148].value);function r(l){return{}}return o&&(t=kn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-8jolw5")},m(l,a){C(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[0]&256&&o!==(o=go(l[148].value))){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=kn(o,r(l)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function ad(i){let e,t,n,o=i[148].displayValue+"",r,l,a=!i[34]&&go(i[148].value),s,u,c,m,h,y,b=i[148].selected&&rd(i),S=a&&sd(i);function w(){return i[114](i[148])}function P(...v){return i[115](i[148],...v)}return{c(){e=T("li"),b&&b.c(),t=O(),n=T("div"),r=De(o),l=O(),S&&S.c(),s=O(),f(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-8jolw5"),f(e,"data-value",u=i[148].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[148].displayValue),z(e,"item-mobile",i[34])},m(v,g){C(v,e,g),b&&b.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),S&&S.m(e,null),p(e,s),m=!0,h||(y=[de(e,"click",st(w)),de(e,"keydown",P)],h=!0)},p(v,g){i=v,i[148].selected?b?g[0]&256&&d(b,1):(b=rd(i),b.c(),d(b,1),b.m(e,t)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),(!m||g[0]&256)&&o!==(o=i[148].displayValue+"")&&Ye(r,o),(!m||g[1]&8)&&z(n,"quality-title-mobile",i[34]),g[0]&256|g[1]&8&&(a=!i[34]&&go(i[148].value)),a?S?(S.p(i,g),g[0]&256|g[1]&8&&d(S,1)):(S=sd(i),S.c(),d(S,1),S.m(e,s)):S&&(fe(),_(S,1,1,()=>{S=null}),ce()),(!m||g[0]&256&&u!==(u=i[148].value))&&f(e,"data-value",u),(!m||g[0]&256&&c!==(c=i[148].displayValue))&&f(e,"aria-label",c),(!m||g[1]&8)&&z(e,"item-mobile",i[34])},i(v){m||(d(b),d(S),m=!0)},o(v){_(b),_(S),m=!1},d(v){v&&k(e),b&&b.d(),S&&S.d(),h=!1,nt(y)}}}function ud(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b;n=new Xn({props:{direction:"left"}});let S=Pt(i[7]),w=[];for(let v=0;v<S.length;v+=1)w[v]=cd(Y1(i,S,v));let P=v=>_(w[v],1,1,()=>{w[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("submenu_playback_rate")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let g=0;g<w.length;g+=1)w[g].c();f(t,"class","item menu-header svelte-8jolw5"),f(t,"aria-label",l=Y("aria_label_submenu_back")),z(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-8jolw5"),f(c,"class","items svelte-8jolw5"),f(c,"role","menu"),f(c,"style",m=i[73]((v=i[18])==null?void 0:v.clientHeight,!0)),z(c,"items-mobile",i[34]),f(e,"class","menu menu-subList svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),B(n,t,null),p(t,o),p(t,r),i[117](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<w.length;I+=1)w[I]&&w[I].m(c,null);i[120](c),h=!0,y||(b=[de(t,"click",st(i[66])),de(c,"keydown",i[83])],y=!0)},p(v,g){var I;if((!h||g[1]&8)&&z(t,"item-mobile",v[34]),g[0]&128|g[1]&8|g[2]&4194306){S=Pt(v[7]);let A;for(A=0;A<S.length;A+=1){let q=Y1(v,S,A);w[A]?(w[A].p(q,g),d(w[A],1)):(w[A]=cd(q),w[A].c(),d(w[A],1),w[A].m(c,null))}for(fe(),A=S.length;A<w.length;A+=1)P(A);ce()}(!h||g[0]&262144&&m!==(m=v[73]((I=v[18])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&8)&&z(c,"items-mobile",v[34]),(!h||g[1]&8)&&z(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&z(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(w[g]);h=!0}},o(v){_(n.$$.fragment,v),w=w.filter(Boolean);for(let g=0;g<w.length;g+=1)_(w[g]);h=!1},d(v){v&&k(e),R(n),i[117](null),Ki(w,v),i[120](null),y=!1,nt(b)}}}function fd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function cd(i){let e,t,n,o=i[145].displayValue+"",r,l,a,s,u,c,m,h=i[145].selected&&fd(i);function y(){return i[118](i[145])}function b(...S){return i[119](i[145],...S)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=De(o),l=O(),f(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-8jolw5"),f(e,"data-value",a=i[145].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[145].displayValue),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[de(e,"click",st(y)),de(e,"keydown",b)],c=!0)},p(S,w){i=S,i[145].selected?h?w[0]&128&&d(h,1):(h=fd(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),ce()),(!u||w[0]&128)&&o!==(o=i[145].displayValue+"")&&Ye(r,o),(!u||w[1]&8)&&z(n,"quality-title-mobile",i[34]),(!u||w[0]&128&&a!==(a=i[145].value))&&f(e,"data-value",a),(!u||w[0]&128&&s!==(s=i[145].displayValue))&&f(e,"aria-label",s),(!u||w[1]&8)&&z(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),c=!1,nt(m)}}}function dd(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q;n=new Xn({props:{direction:"left"}});let J=!i[5]&&md(i),E=i[5]&&pd(i);return{c(){var te;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("submenu_traffic_saving")}`,a=O(),s=T("div"),u=O(),c=T("div"),m=T("ul"),h=T("li"),J&&J.c(),y=O(),b=T("div"),b.textContent=`${Y("traffic_saving_disable")}`,w=O(),P=T("li"),E&&E.c(),v=O(),g=T("div"),g.textContent=`${Y("traffic_saving_enable")}`,A=O(),q=T("div"),K=O(),re=T("div"),ae=T("span"),ae.textContent=`${Y("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-8jolw5"),f(t,"aria-label",l=Y("aria_label_submenu_back")),z(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-8jolw5"),f(b,"class","svelte-8jolw5"),z(b,"quality-title-mobile",i[34]),f(h,"class","item item-traffic-saving svelte-8jolw5"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",S=Y("aria_label_submenu_traffic_saving_off")),z(h,"item-mobile",i[34]),f(g,"class","svelte-8jolw5"),z(g,"quality-title-mobile",i[34]),f(P,"class","item item-traffic-saving svelte-8jolw5"),f(P,"role","menuitem"),f(P,"tabindex","0"),f(P,"aria-label",I=`${Y("aria_label_submenu_traffic_saving_on")}. ${Y("traffic_saving_helper_text")}`),z(P,"item-mobile",i[34]),f(m,"class","items svelte-8jolw5"),f(m,"role","menu"),z(m,"items-mobile",i[34]),f(q,"class","menu-divider svelte-8jolw5"),f(ae,"class","svelte-8jolw5"),f(re,"class","item item-helper-text svelte-8jolw5"),z(re,"item-mobile",i[34]),f(c,"style",H=i[73]((te=i[19])==null?void 0:te.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(te,M){C(te,e,M),p(e,t),B(n,t,null),p(t,o),p(t,r),i[121](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),J&&J.m(h,null),p(h,y),p(h,b),p(m,w),p(m,P),E&&E.m(P,null),p(P,v),p(P,g),i[126](m),p(c,A),p(c,q),p(c,K),p(c,re),p(re,ae),L=!0,x||(Q=[de(t,"click",st(i[66])),de(h,"click",st(i[122])),de(h,"keydown",i[123]),de(P,"click",st(i[124])),de(P,"keydown",i[125]),de(m,"keydown",i[89])],x=!0)},p(te,M){var ee;(!L||M[1]&8)&&z(t,"item-mobile",te[34]),te[5]?J&&(fe(),_(J,1,1,()=>{J=null}),ce()):J?M[0]&32&&d(J,1):(J=md(te),J.c(),d(J,1),J.m(h,y)),(!L||M[1]&8)&&z(b,"quality-title-mobile",te[34]),(!L||M[1]&8)&&z(h,"item-mobile",te[34]),te[5]?E?M[0]&32&&d(E,1):(E=pd(te),E.c(),d(E,1),E.m(P,v)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),(!L||M[1]&8)&&z(g,"quality-title-mobile",te[34]),(!L||M[1]&8)&&z(P,"item-mobile",te[34]),(!L||M[1]&8)&&z(m,"items-mobile",te[34]),(!L||M[1]&8)&&z(re,"item-mobile",te[34]),(!L||M[0]&524288&&H!==(H=te[73]((ee=te[19])==null?void 0:ee.clientHeight,!0)))&&f(c,"style",H),(!L||M[1]&8)&&z(e,"menu-desktop",!te[34]),(!L||M[1]&8)&&z(e,"menu-mobile",te[34])},i(te){L||(d(n.$$.fragment,te),d(J),d(E),L=!0)},o(te){_(n.$$.fragment,te),_(J),_(E),L=!1},d(te){te&&k(e),R(n),i[121](null),J&&J.d(),E&&E.d(),i[126](null),x=!1,nt(Q)}}}function md(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function pd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function _d(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new Xn({props:{direction:"left"}});let y=Pt(i[6]),b=[];for(let w=0;w<y.length;w+=1)b[w]=gd(Q1(i,y,w));let S=w=>_(b[w],1,1,()=>{b[w]=null});return{c(){var w;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("subtitles_caption")}`,a=O(),s=T("ul");for(let P=0;P<b.length;P+=1)b[P].c();f(t,"class","item menu-header svelte-8jolw5"),f(t,"aria-label",l=Y("aria_label_submenu_back")),z(t,"item-mobile",i[34]),f(s,"class","items svelte-8jolw5"),f(s,"role","menu"),f(s,"style",u=i[73]((w=i[20])==null?void 0:w.clientHeight,!0)),z(s,"items-mobile",i[34]),f(e,"class","menu menu-subList menu-subList-subtitles svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(w,P){C(w,e,P),p(e,t),B(n,t,null),p(t,o),p(t,r),i[127](t),p(e,a),p(e,s);for(let v=0;v<b.length;v+=1)b[v]&&b[v].m(s,null);i[130](s),c=!0,m||(h=[de(t,"click",st(i[66])),de(s,"keydown",i[86])],m=!0)},p(w,P){var v;if((!c||P[1]&8)&&z(t,"item-mobile",w[34]),P[0]&64|P[1]&8|P[2]&33554440){y=Pt(w[6]);let g;for(g=0;g<y.length;g+=1){let I=Q1(w,y,g);b[g]?(b[g].p(I,P),d(b[g],1)):(b[g]=gd(I),b[g].c(),d(b[g],1),b[g].m(s,null))}for(fe(),g=y.length;g<b.length;g+=1)S(g);ce()}(!c||P[0]&1048576&&u!==(u=w[73]((v=w[20])==null?void 0:v.clientHeight,!0)))&&f(s,"style",u),(!c||P[1]&8)&&z(s,"items-mobile",w[34]),(!c||P[1]&8)&&z(e,"menu-desktop",!w[34]),(!c||P[1]&8)&&z(e,"menu-mobile",w[34])},i(w){if(!c){d(n.$$.fragment,w);for(let P=0;P<y.length;P+=1)d(b[P]);c=!0}},o(w){_(n.$$.fragment,w),b=b.filter(Boolean);for(let P=0;P<b.length;P+=1)_(b[P]);c=!1},d(w){w&&k(e),R(n),i[127](null),Ki(b,w),i[130](null),m=!1,nt(h)}}}function hd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function gd(i){let e,t,n,o=i[142].displayValue+"",r,l,a,s,u,c,m,h=i[142].selected&&hd(i);function y(){return i[128](i[142])}function b(...S){return i[129](i[142],...S)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=De(o),l=O(),f(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-8jolw5"),f(e,"data-value",a=i[142].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[142].displayValue),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[de(e,"click",st(y)),de(e,"keydown",b)],c=!0)},p(S,w){i=S,i[142].selected?h?w[0]&64&&d(h,1):(h=hd(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),ce()),(!u||w[0]&64)&&o!==(o=i[142].displayValue+"")&&Ye(r,o),(!u||w[1]&8)&&z(n,"quality-title-mobile",i[34]),(!u||w[0]&64&&a!==(a=i[142].value))&&f(e,"data-value",a),(!u||w[0]&64&&s!==(s=i[142].displayValue))&&f(e,"aria-label",s),(!u||w[1]&8)&&z(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),c=!1,nt(m)}}}function Cg(i){let e,t,n,o,r,l,a=i[10]&&X1(i),s=i[12]&&ld(i),u=i[13]&&ud(i),c=i[15]&&dd(i),m=i[14]&&_d(i);return{c(){e=T("div"),a&&a.c(),t=O(),s&&s.c(),n=O(),u&&u.c(),o=O(),c&&c.c(),r=O(),m&&m.c(),f(e,"class","svelte-8jolw5"),z(e,"hidden",!i[10]),z(e,"container-mobile",i[34])},m(h,y){C(h,e,y),a&&a.m(e,null),p(e,t),s&&s.m(e,null),p(e,n),u&&u.m(e,null),p(e,o),c&&c.m(e,null),p(e,r),m&&m.m(e,null),l=!0},p(h,y){h[10]?a?(a.p(h,y),y[0]&1024&&d(a,1)):(a=X1(h),a.c(),d(a,1),a.m(e,t)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),h[12]?s?(s.p(h,y),y[0]&4096&&d(s,1)):(s=ld(h),s.c(),d(s,1),s.m(e,n)):s&&(fe(),_(s,1,1,()=>{s=null}),ce()),h[13]?u?(u.p(h,y),y[0]&8192&&d(u,1)):(u=ud(h),u.c(),d(u,1),u.m(e,o)):u&&(fe(),_(u,1,1,()=>{u=null}),ce()),h[15]?c?(c.p(h,y),y[0]&32768&&d(c,1)):(c=dd(h),c.c(),d(c,1),c.m(e,r)):c&&(fe(),_(c,1,1,()=>{c=null}),ce()),h[14]?m?(m.p(h,y),y[0]&16384&&d(m,1)):(m=_d(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),ce()),(!l||y[0]&1024)&&z(e,"hidden",!h[10]),(!l||y[1]&8)&&z(e,"container-mobile",h[34])},i(h){l||(d(a),d(s),d(u),d(c),d(m),l=!0)},o(h){_(a),_(s),_(u),_(c),_(m),l=!1},d(h){h&&k(e),a&&a.d(),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d()}}}var Sg=18;function Pg(i,e,t){let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,{ref:L=void 0}=e,{supportLink:x}=e,{playerControlsHeight:Q=0}=e,{returnFocus:J}=e,E=it(),te=Ht(),M=E.state.currentQuality$;F(i,M,se=>t(102,S=se));let ee=E.state.availableQualities$;F(i,ee,se=>t(8,y=se));let ke=E.state.autoQualityLimitingAvailable$;F(i,ke,se=>t(106,g=se));let Qe=E.state.isAutoQualityEnabled$;F(i,Qe,se=>t(103,w=se));let je=E.state.currentPlaybackRate$;F(i,je,se=>t(9,b=se));let $e=E.state.availablePlaybackRates$;F(i,$e,se=>t(7,m=se));let We=E.state.currentSubtitle$;F(i,We,se=>t(35,ae=se));let ve=E.state.availableSubtitlesList$;F(i,ve,se=>t(6,u=se));let X=E.state.canDownload,be=E.state.hasMpegSources$;F(i,be,se=>t(107,I=se));let Oe=E.ui.settingsMenuVisible;F(i,Oe,se=>t(10,re=se));let xe=E.ui.settingsMenuOpenedByKeyboard;F(i,xe,se=>t(132,o=se));let et=E.ui.isMobile;F(i,et,se=>t(34,r=se));let ye=E.ui.mobileNotReportControlHidden$;F(i,ye,se=>t(104,P=se));let Be=E.state.canChangePlaybackSpeed$;F(i,Be,se=>t(105,v=se));let Ue=E.ui.isFullscreen;F(i,Ue,se=>t(135,K=se));let Xe=E.state.trafficSavingEnabled$;F(i,Xe,se=>t(5,a=se));let Te=E.ui.playerSize;F(i,Te,se=>t(134,q=se));let Z=E.ui.debugPanelVisible;F(i,Z,se=>t(36,H=se));let Ce=E.ui.playerSize;F(i,Ce,se=>t(133,A=se));let ue=E.state.isInteractiveTime$,Ie=E.actions.internal.downloadVideo,Je=E.actions.internal.closeSettingsMenu,at=!0,ut=!1,ft=!1,ht=!1,gt=!1,we=!1;function mt(){o||J==null||J(),Je(),we=!1}function It(){t(11,at=!1),t(12,ut=!0)}function Et(){t(11,at=!1),t(15,gt=!0)}function ze(se){E.actions.internal.setQuality(se),mt()}function qt(se){E.actions.internal.setTrafficSavingEnabled(se),mt()}function Nt(){t(11,at=!1),t(13,ft=!0)}function Ut(se){E.actions.internal.setPlaybackRate(se),mt()}function Xt(){t(11,at=!1),t(14,ht=!0)}function me(se){E.actions.internal.setSubtitle(se),mt()}function pt(){t(11,at=!0),t(12,ut=!1),t(13,ft=!1),t(14,ht=!1),t(15,gt=!1)}function bt(){Ie(),mt()}function Re(){window.open(x,"_blank"),mt(),E.actions.internal.pause()}function qe(){Il(E.actions.internal.getDebugTextData()),mt()}function yt(){Z.set(!0),mt()}function Ot(){we=!0}function Jt(){we=!1}function fn(se,dt,pi){if(!se)return"...";let _i=dt.find(Zt=>Zt.value===se),ri=_i?_i.displayValue:se;return pi?se===bd.VideoQuality.INVARIANT?Y("auto_quality_invariant"):Y("auto_quality",{actual:ri}):ri}let gi,bi,Bi,ti,vi;function cn(se=0,dt=!1){return r&&K&&dt?`max-height: ${Math.round(q.height*.6)}px`:r?"":`max-height: ${A.height-Sg-se-Q}px; overflow: auto;`}let yi,ji,si,Ri,wi,Wi,ki,ai,Vt,At,Ci=Ne(!1);F(i,Ci,se=>t(101,h=se));let Si,Gt,ui=Ne(!1);F(i,ui,se=>t(100,c=se));let fi,vt,Ft=Ne(!1);F(i,Ft,se=>t(99,s=se));let kt,Di,ii=Ne(!1);F(i,ii,se=>t(98,l=se));let dn=se=>{_r(se,Je)},mn=async se=>{Ml(se,It,()=>{let dt=y.findIndex(pi=>pi.selected);return At.childNodes[dt]})},xt=async se=>{Vl(se,pt,Ci,Je)},Pi=(se,dt)=>{$i(se,()=>ze(dt))},Gi=async se=>{Ml(se,Nt,()=>{let dt=m.findIndex(pi=>pi.selected);return Gt.childNodes[dt]})},Ti=async se=>{Vl(se,pt,ui,Je)},ci=(se,dt)=>{$i(se,()=>Ut(dt))},Qt=async se=>{Ml(se,Xt,()=>{let dt=u.findIndex(pi=>pi.selected);return vt.childNodes[dt]})},$t=async se=>{Vl(se,pt,Ft,Je)},Ii=(se,dt)=>{$i(se,()=>me(dt))},ni=async se=>{Ml(se,Et,()=>{let dt=a?2:0;return Di.childNodes[dt]})},en=async se=>{Vl(se,pt,ii,Je)},Ei=(se,dt)=>{$i(se,()=>qt(dt))},pn=se=>{$i(se,()=>bt())},_n=se=>{$i(se,()=>Re())},tn=se=>{$i(se,()=>qe())},Qi=se=>{$i(se,()=>yt())};Bt(()=>{let se=ue.subscribe(dt=>{dt&&!r&&!we&&!o&&mt()});return()=>{se()}});function Ni(se){_e[se?"unshift":"push"](()=>{Vt=se,t(1,Vt)})}function ei(se){_e[se?"unshift":"push"](()=>{Si=se,t(2,Si)})}function di(se){_e[se?"unshift":"push"](()=>{fi=se,t(3,fi)})}function Mi(se){_e[se?"unshift":"push"](()=>{kt=se,t(4,kt)})}function Oi(se){_e[se?"unshift":"push"](()=>{L=se,t(0,L)})}function nn(se){_e[se?"unshift":"push"](()=>{bi=se,t(17,bi)})}let Vi=se=>ze(se.value),Fi=(se,dt)=>Pi(dt,se.value);function Hi(se){_e[se?"unshift":"push"](()=>{At=se,t(29,At)})}function Ze(se){_e[se?"unshift":"push"](()=>{Bi=se,t(18,Bi)})}let Yi=se=>Ut(se.value),Yt=(se,dt)=>ci(dt,se.value);function Ke(se){_e[se?"unshift":"push"](()=>{Gt=se,t(30,Gt)})}function on(se){_e[se?"unshift":"push"](()=>{ti=se,t(19,ti)})}let zi=()=>qt(!1),Zi=se=>Ei(se,!1),ln=()=>qt(!0),Xi=se=>Ei(se,!0);function Cn(se){_e[se?"unshift":"push"](()=>{Di=se,t(32,Di)})}function oi(se){_e[se?"unshift":"push"](()=>{vi=se,t(20,vi)})}let li=se=>me(se),Ji=(se,dt)=>Ii(dt,se);function mi(se){_e[se?"unshift":"push"](()=>{vt=se,t(31,vt)})}return i.$$set=se=>{"ref"in se&&t(0,L=se.ref),"supportLink"in se&&t(95,x=se.supportLink),"playerControlsHeight"in se&&t(96,Q=se.playerControlsHeight),"returnFocus"in se&&t(97,J=se.returnFocus)},i.$$.update=()=>{var se;if(i.$$.dirty[0]&1024)e:re&&(t(11,at=!0),t(12,ut=!1),t(13,ft=!1),t(14,ht=!1),t(15,gt=!1));if(i.$$.dirty[3]&512)e:t(33,n=go(S));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,gi=fn(S,y,w));if(i.$$.dirty[3]&18432)e:t(21,yi=X&&I&&!P);if(i.$$.dirty[3]&10240)e:t(22,ji=te.features.trafficSaving&&!P&&g);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,si=u.length>0&&!P);if(i.$$.dirty[3]&6144)e:t(24,Ri=!!v&&!P);if(i.$$.dirty[3]&2048)e:t(25,wi=!P);if(i.$$.dirty[0]&32)e:t(26,Wi=a?Y("traffic_saving_on"):Y("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,ki=w?Y("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,ai=(se=m.find(dt=>dt.value===b))==null?void 0:se.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:El(Vt,Ci,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:El(Si,ui,c);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:El(fi,Ft,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:El(kt,ii,l)},[L,Vt,Si,fi,kt,a,u,m,y,b,re,at,ut,ft,ht,gt,gi,bi,Bi,ti,vi,yi,ji,si,Ri,wi,Wi,ki,ai,At,Gt,vt,Di,n,r,ae,H,te,M,ee,ke,Qe,je,$e,We,ve,be,Oe,xe,et,ye,Be,Ue,Xe,Te,Z,Ce,mt,It,Et,ze,qt,Nt,Ut,Xt,me,pt,bt,Re,qe,yt,Ot,Jt,cn,Ci,ui,Ft,ii,dn,mn,xt,Pi,Gi,Ti,ci,Qt,$t,Ii,ni,en,Ei,pn,_n,tn,Qi,x,Q,J,l,s,c,h,S,w,P,v,g,I,Ni,ei,di,Mi,Oi,nn,Vi,Fi,Hi,Ze,Yi,Yt,Ke,on,zi,Zi,ln,Xi,Cn,oi,li,Ji,mi]}var Va=class extends j{constructor(e){super(),W(this,e,Pg,Cg,U,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},wg,[-1,-1,-1,-1,-1])}},Tr=Va;function Tg(i){Se(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Ig(i){let e,t,n;return t=new Sr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),D(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Eg(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Ig]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Mg(i,e,t){let n,o,r,{ref:l=void 0}=e,a=it(),s=a.state.currentQuality$;F(i,s,S=>t(4,r=S));let u=a.ui.settingsMenuVisible;F(i,u,S=>t(1,n=S));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;F(i,m,S=>t(3,o=S));let h;function y(S){let w=nl(S);c(w)}function b(S){l=S,t(0,l)}return i.$$set=S=>{"ref"in S&&t(0,l=S.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?Y("tooltip_settings_on"):Y("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,y,b]}var Aa=class extends j{constructor(e){super(),W(this,e,Mg,Eg,U,{ref:0},Tg)}},Ll=Aa;function Vg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ag(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var La=class extends j{constructor(e){super(),W(this,e,Ag,Vg,U,{})}},vd=La;function Lg(i){let e,t;return e=new Pr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bg(i){let e,t;return e=new vd({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rg(i){let e,t,n,o,r=[Bg,Lg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Dg(i){let e,t;return e=new _t({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Yn.KeyC,$$slots:{default:[Rg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ng(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?Y("tooltip_subtitles_on"):Y("tooltip_subtitles_off"))},[n,o,r]}var Ba=class extends j{constructor(e){super(),W(this,e,Ng,Dg,U,{isSubtitlesEnabled:0,click:1})}},yd=Ba;function Og(i){Se(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 wd(i){let e,t;return{c(){e=T("span"),t=De(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&8&&Ye(t,n[3])},d(n){n&&k(e)}}}function Fg(i){let e,t,n,o,r=i[2]&&wd(i);return{c(){e=T("div"),t=T("span"),n=De(i[4]),o=O(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),z(e,"mobile",i[1])},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Ye(n,l[4]),l[2]?r?r.p(l,a):(r=wd(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&z(e,"mobile",l[1])},i:pe,o:pe,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function Hg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function c(m){_e[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=En(o));if(i.$$.dirty&64)e:t(4,u=En(r))},[a,n,l,s,u,o,r,c]}var Ra=class extends j{constructor(e){super(),W(this,e,Hg,Fg,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Og)}},Ir=Ra;var no=require("@vkontakte/videoplayer-shared");function zg(i){Se(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 qg(i){let e,t,n,o,r,l;return{c(){e=N("svg"),t=N("g"),n=N("path"),o=N("path"),r=N("path"),f(n,"class","wave2 svelte-1n5yyua"),f(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"),f(o,"class","wave1 svelte-1n5yyua"),f(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"),f(r,"class","cross svelte-1n5yyua"),f(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"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",l="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,s){C(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&f(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&f(e,"data-testid",l)},i:pe,o:pe,d(a){a&&k(e)}}}function Ug(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{if(i.$$.dirty&6)e:t(0,l=r(n,o))},[l,n,o]}var Da=class extends j{constructor(e){super(),W(this,e,Ug,qg,U,{volume:1,muted:2},zg)}},Fo=Da;var Dn=require("@vkontakte/videoplayer-shared");var Pd=require("@vkontakte/videoplayer-shared");var Sd=require("@vkontakte/videoplayer-shared");function Kg(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","overlay")},m(r,l){C(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Ae(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function jg(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=it().ui.overlayContainer$;F(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Bt(()=>(c(n),()=>u(n)));function m(h){_e[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:c(n)},[s,a,n,r,o,m]}var Na=class extends j{constructor(e){super(),W(this,e,jg,Kg,U,{})}},kd=Na;function Wg(i){Se(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 Cd(i){let e,t;return e=new kd({props:{$$slots:{default:[Gg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Gg(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=De(i[1]),o=O(),r=T("div"),f(t,"class","content svelte-tny135"),f(r,"class","tooltip-pointer svelte-tny135"),f(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),z(r,"bottom-placement-pointer",!i[8]),f(e,"class","tooltip svelte-tny135"),f(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),z(e,"active",i[0])},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Ye(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&f(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&f(e,"style",a),u&1&&z(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function Qg(i){let e,t,n,o,r,l,a=i[18].default,s=Ee(a,i,i[21],null),u=i[1]&&Cd(i);return{c(){e=T("div"),s&&s.c(),t=O(),u&&u.c(),n=lt(),f(e,"class","tooltip-wrapper svelte-tny135"),z(e,"full-width",i[2])},m(c,m){C(c,e,m),s&&s.m(e,null),i[19](e),C(c,t,m),u&&u.m(c,m),C(c,n,m),o=!0,r||(l=[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])],r=!0)},p(c,[m]){s&&s.p&&(!o||m&2097152)&&Ve(s,a,c,c[21],o?Me(a,c[21],m,null):Ae(c[21]),null),(!o||m&4)&&z(e,"full-width",c[2]),c[1]?u?(u.p(c,m),m&2&&d(u,1)):(u=Cd(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(fe(),_(u,1,1,()=>{u=null}),ce())},i(c){o||(d(s,c),d(u),o=!0)},o(c){_(s,c),_(u),o=!1},d(c){c&&(k(e),k(t),k(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,nt(l)}}}var Bl=5;function Yg(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:c=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:y=Sd.noop}=e,b=h==="top",S,w,P,v=0,g=b?Bl:-Bl,I=0,A=0,q=Ht(),K=it(),re=K.ui.playerSize;F(i,re,ee=>t(24,o=ee));let ae=K.ui.overlayContainer$;F(i,ae,ee=>t(23,n=ee));let H=K.getLogger().createComponentLog("Tooltip component"),L=()=>{if(!n||!w||!S)return;let ee=n.getBoundingClientRect(),ke=S.getBoundingClientRect(),Qe=ke.width,je=w.clientWidth,$e=o.width,We=(Qe-je)/2,ve=ke.left+u-ee.left,X=ve+We,be=ke.top+c-ee.top,Oe=je/2-Bl,xe=X<8,et=X+je>$e-8;xe&&(X=8,Oe=ve+ke.width/2-2.5*Bl),et&&(X=$e-8-je,Oe=ke.left-ee.left+ke.width/2-X-Bl),t(6,I=X),t(7,A=be),t(5,v=Oe)},x=()=>{try{if(!n||!S)return;L(),t(0,s=!0)}catch(ee){H({message:String(ee)})}},Q=()=>{t(0,s=!1)},J=()=>{w&&(P||(P=window.setTimeout(x,q.controls.hideTimeoutTooltips)),s&&x())},E=()=>{Q(),window.clearTimeout(P),P=void 0};Bt(L),Un(()=>window.clearTimeout(P));function te(ee){_e[ee?"unshift":"push"](()=>{S=ee,t(3,S)})}function M(ee){_e[ee?"unshift":"push"](()=>{w=ee,t(4,w)})}return i.$$set=ee=>{"content"in ee&&t(1,a=ee.content),"active"in ee&&t(0,s=ee.active),"translateX"in ee&&t(14,u=ee.translateX),"translateY"in ee&&t(15,c=ee.translateY),"isFullWidthWrapper"in ee&&t(2,m=ee.isFullWidthWrapper),"placement"in ee&&t(16,h=ee.placement),"onVisibilityChange"in ee&&t(17,y=ee.onVisibilityChange),"$$scope"in ee&&t(21,l=ee.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:y(s)},[s,a,m,S,w,v,I,A,b,g,re,ae,J,E,u,c,h,y,r,te,M,l]}var Oa=class extends j{constructor(e){super(),W(this,e,Yg,Qg,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Wg)}},Er=Oa;function Zg(i){Se(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 Xg(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Jg(i){let e,t;return e=new Er({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[xg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4096&&(r.content=n[12]),o&1024&&(r.translateX=n[10]),o&2048&&(r.translateY=n[11]),o&16&&(r.isFullWidthWrapper=n[4]),o&64&&(r.active=n[6]),o&128&&(r.placement=n[7]),o&512&&(r.onVisibilityChange=n[9]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function xg(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function $g(i){let e,t,n,o,r,l,a,s,u,c=[Jg,Xg],m=[];function h(y,b){return y[3]&&y[5]&&!y[13]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=T("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[8]||null),jn(()=>i[23].call(e))},m(y,b){C(y,e,b),m[t].m(e,null),i[22](e),l=Go(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",st(Lt(i[20]))),de(e,"click",st(Lt(i[21])))],s=!0)},p(y,[b]){let S=t;t=h(y,b),t===S?m[t].p(y,b):(fe(),_(m[S],1,1,()=>{m[S]=null}),ce(),n=m[t],n?n.p(y,b):(n=m[t]=c[t](y),n.c()),d(n,1),n.m(e,null)),(!a||b&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||b&256&&r!==(r=y[8]||null))&&f(e,"aria-hidden",r)},i(y){a||(d(n),a=!0)},o(y){_(n),a=!1},d(y){y&&k(e),m[t].d(),i[22](null),l(),s=!1,nt(u)}}}function eb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:w=Y("tooltip_button_disabled")}=e,{isAriaHidden:P=!1}=e,{onTooltipVisibilityChange:v=Pd.noop}=e,{initialTranslateXPx:g=0}=e,{initialTranslateYPx:I=-18}=e,A=it(),q=A.ui.isMobile;F(i,q,Q=>t(13,o=Q));let K=A.state.graphIsOpened$;F(i,K,Q=>t(18,n=Q));let re;function ae(Q){In.call(this,i,Q)}function H(Q){In.call(this,i,Q)}function L(Q){_e[Q?"unshift":"push"](()=>{c=Q,t(0,c)})}function x(){m=this.clientWidth,t(1,m)}return i.$$set=Q=>{"className"in Q&&t(2,a=Q.className),"disabled"in Q&&t(16,s=Q.disabled),"hasTooltip"in Q&&t(3,u=Q.hasTooltip),"ref"in Q&&t(0,c=Q.ref),"width"in Q&&t(1,m=Q.width),"isFullWidthTooltip"in Q&&t(4,h=Q.isFullWidthTooltip),"tooltipContent"in Q&&t(5,y=Q.tooltipContent),"tooltipActive"in Q&&t(6,b=Q.tooltipActive),"tooltipPlacement"in Q&&t(7,S=Q.tooltipPlacement),"disabledTooltipContent"in Q&&t(17,w=Q.disabledTooltipContent),"isAriaHidden"in Q&&t(8,P=Q.isAriaHidden),"onTooltipVisibilityChange"in Q&&t(9,v=Q.onTooltipVisibilityChange),"initialTranslateXPx"in Q&&t(10,g=Q.initialTranslateXPx),"initialTranslateYPx"in Q&&t(11,I=Q.initialTranslateYPx),"$$scope"in Q&&t(24,l=Q.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,re=n?Y("tooltip_disabled_when_graph_on"):w):t(12,re=y)},[c,m,a,u,h,y,b,S,P,v,g,I,re,o,q,K,s,w,n,r,ae,H,L,x,l]}var Fa=class extends j{constructor(e){super(),W(this,e,eb,$g,U,{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},Zg)}},Dt=Fa;function tb(i){let e,t,n,o,r,l;return{c(){e=N("svg"),t=N("rect"),o=N("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(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"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){C(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",l)},i:pe,o:pe,d(a){a&&k(e)}}}function ib(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ha=class extends j{constructor(e){super(),W(this,e,ib,tb,U,{completed:0})}},Mr=Ha;function nb(i){Se(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 ob(i){let e,t,n,o,r;return t=new Mr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),jn(()=>i[3].call(e)),z(e,"disabled",i[1])},m(l,a){C(l,e,a),B(t,e,null),o=Go(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||a&2)&&z(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&k(e),R(t),o()}}}function lb(i){let e,t;return e=new Dt({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:[ob]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=Y(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var za=class extends j{constructor(e){super(),W(this,e,rb,lb,U,{videoEpisode:0,disabled:1},nb)}},Td=za;function sb(i){Se(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 Id(i,e,t){let n=i.slice();return n[2]=e[t],n}function Ed(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),l=T("div"),s=O(),f(n,"class","video-episode-loaded svelte-1h9p3m2"),f(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),f(l,"class","video-episode-filled svelte-1h9p3m2"),f(l,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),z(l,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1h9p3m2"),f(e,"class","video-episode svelte-1h9p3m2"),f(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),z(e,"mobile",i[1])},m(c,m){C(c,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[2].loadedWidth/c[2].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[2].filledWidth/c[2].width*100}%)`)&&f(l,"style",a),m&2&&z(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[2].from}%; width: ${c[2].width}%`)&&f(e,"style",u),m&2&&z(e,"mobile",c[1])},d(c){c&&k(e)}}}function ab(i){let e,t=Pt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Ed(Id(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,r){C(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&3){t=Pt(o[0]);let l;for(l=0;l<t.length;l+=1){let a=Id(o,t,l);n[l]?n[l].p(a,r):(n[l]=Ed(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:pe,o:pe,d(o){o&&k(e),Ki(n,o)}}}function ub(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile)},[n,o]}var qa=class extends j{constructor(e){super(),W(this,e,ub,ab,U,{videoEpisodes:0,isMobile:1},sb)}},Md=qa;function fb(i){Se(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 Vd(i,e,t){let n=i.slice();return n[48]=e[t],n}function Ad(i){let e,t,n=Pt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Bd(Vd(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-1golz1y"),z(e,"mobile",i[5]),z(e,"hidden",i[5]&&!i[20])},m(l,a){C(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2097664){n=Pt(l[21]);let s;for(s=0;s<n.length;s+=1){let u=Vd(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Bd(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(fe(),s=n.length;s<o.length;s+=1)r(s);ce()}(!t||a[0]&32)&&z(e,"mobile",l[5]),(!t||a[0]&1048608)&&z(e,"hidden",l[5]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&k(e),Ki(o,l)}}}function Ld(i){let e,t;return e=new Td({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[48]),o[0]&512&&(r.disabled=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bd(i){let e,t,n=i[48].interactive&&Ld(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[48].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Ld(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function cb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=O(),r=T("div"),f(t,"class","loaded svelte-1golz1y"),f(t,"style",n=`transform: translateX(${i[11]*100}%);`),f(r,"class","filled svelte-1golz1y"),f(r,"style",l=`transform: translateX(${i[12]*100}%);`),z(r,"active-live",i[4]),z(r,"ads",i[6]),f(e,"class","bars svelte-1golz1y")},m(a,s){C(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&f(t,"style",n),s[0]&4096&&l!==(l=`transform: translateX(${a[12]*100}%);`)&&f(r,"style",l),s[0]&16&&z(r,"active-live",a[4]),s[0]&64&&z(r,"ads",a[6])},i:pe,o:pe,d(a){a&&k(e)}}}function db(i){let e,t;return e=new Md({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&32&&(r.isMobile=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mb(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b=i[8]&&Ad(i),S=[db,cb],w=[];function P(v,g){return v[21].length?0:1}return n=P(i,[-1,-1]),o=w[n]=S[n](i),{c(){var v;b&&b.c(),e=O(),t=T("div"),o.c(),r=O(),l=T("div"),a=T("div"),f(a,"class","handle svelte-1golz1y"),z(a,"active-live",i[4]),f(l,"class","handleWrap svelte-1golz1y"),f(l,"style",s=`transform: translateX(${i[13]*100}%);`),z(l,"hidden",i[10]),f(t,"class",u="slider "+i[0]+" svelte-1golz1y"),f(t,"aria-label",i[14]),f(t,"aria-valuemin",i[15]),f(t,"aria-valuemax",i[16]),f(t,"aria-valuenow",i[17]),f(t,"aria-valuetext",i[18]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(v=i[1])!=null?v:null),z(t,"disabled",i[9]),z(t,"slider-dragging",i[20]),z(t,"hidden",i[2]),z(t,"slider-vertical",i[3]),z(t,"no-handle",i[10]),z(t,"square",i[7])},m(v,g){b&&b.m(v,g),C(v,e,g),C(v,t,g),w[n].m(t,null),p(t,r),p(t,l),p(l,a),i[42](t),m=!0,h||(y=[de(t,"pointerdown",Lt(i[22])),de(t,"pointermove",Lt(i[23])),de(t,"pointerup",Lt(i[24])),de(t,"pointerenter",Lt(i[25])),de(t,"pointerleave",Lt(i[26])),de(t,"click",st(Dn.noop)),de(t,"wheel",i[27])],h=!0)},p(v,g){var A;v[8]?b?(b.p(v,g),g[0]&256&&d(b,1)):(b=Ad(v),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(fe(),_(b,1,1,()=>{b=null}),ce());let I=n;n=P(v,g),n===I?w[n].p(v,g):(fe(),_(w[I],1,1,()=>{w[I]=null}),ce(),o=w[n],o?o.p(v,g):(o=w[n]=S[n](v),o.c()),d(o,1),o.m(t,r)),(!m||g[0]&16)&&z(a,"active-live",v[4]),(!m||g[0]&8192&&s!==(s=`transform: translateX(${v[13]*100}%);`))&&f(l,"style",s),(!m||g[0]&1024)&&z(l,"hidden",v[10]),(!m||g[0]&1&&u!==(u="slider "+v[0]+" svelte-1golz1y"))&&f(t,"class",u),(!m||g[0]&16384)&&f(t,"aria-label",v[14]),(!m||g[0]&32768)&&f(t,"aria-valuemin",v[15]),(!m||g[0]&65536)&&f(t,"aria-valuemax",v[16]),(!m||g[0]&131072)&&f(t,"aria-valuenow",v[17]),(!m||g[0]&262144)&&f(t,"aria-valuetext",v[18]),(!m||g[0]&2&&c!==(c=(A=v[1])!=null?A:null))&&f(t,"data-testid",c),(!m||g[0]&513)&&z(t,"disabled",v[9]),(!m||g[0]&1048577)&&z(t,"slider-dragging",v[20]),(!m||g[0]&5)&&z(t,"hidden",v[2]),(!m||g[0]&9)&&z(t,"slider-vertical",v[3]),(!m||g[0]&1025)&&z(t,"no-handle",v[10]),(!m||g[0]&129)&&z(t,"square",v[7])},i(v){m||(d(b),d(o),m=!0)},o(v){_(b),_(o),m=!1},d(v){v&&(k(e),k(t)),b&&b.d(v),w[n].d(),i[42](null),h=!1,nt(y)}}}function pb(i,e,t){let n,o,{className:r=""}=e,{testId:l=void 0}=e,{isHidden:a=!1}=e,{isVertical:s=!1}=e,{isActiveLive:u=!1}=e,{isMobile:c=!1}=e,{isAds:m=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:y=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:S=!1}=e,{disabled:w=!1}=e,{hideHandel:P=!1}=e,v,g,{onPointerDown:I=Dn.noop}=e,{onHandleMove:A=Dn.noop}=e,{onPointerUp:q=Dn.noop}=e,{onPointerEnter:K=Dn.noop}=e,{onPointerMove:re=Dn.noop}=e,{onPointerLeave:ae=Dn.noop}=e,{onWheelUp:H=Dn.noop}=e,{onWheelDown:L=Dn.noop}=e,{onWheelLeft:x=Dn.noop}=e,{onWheelRight:Q=Dn.noop}=e,{loadedProgress:J=0}=e,{filledProgress:E=0}=e,{handleProgress:te=0}=e,{ariaLabel:M=""}=e,{ariaValueMin:ee=void 0}=e,{ariaValueMax:ke=void 0}=e,{ariaValueNow:Qe=void 0}=e,{ariaValueText:je=""}=e,$e=Ht(),We=!1,ve;function X(Z){if(We)return;t(20,We=!0),g=v.getBoundingClientRect();let Ce=Be(Z.clientX,Z.clientY);I(Ce),v.setPointerCapture(Z.pointerId)}function be(Z){let Ce=Be(Z.clientX,Z.clientY),ue=Ue(Z.clientX);re(Ce,ue,g.width),We&&A(Ce)}function Oe(Z){if(!We)return;t(20,We=!1);let Ce=Be(Z.clientX,Z.clientY);q(Ce)}function xe(Z){g=v.getBoundingClientRect();let Ce=Be(Z.clientX,Z.clientY),ue=Ue(Z.clientX);K(Ce,ue,g.width)}function et(){ae()}function ye(Z){b&&(Z.preventDefault(),Z.deltaY<0?H():Z.deltaY>0?L():Z.deltaX>0?Q():x())}function Be(Z,Ce){return s?Math.max(0,Math.min(1,(g.height-(Ce-g.top))/g.height)):Math.min(Math.max(Z-g.x,0),g.width)/g.width}function Ue(Z){return Math.min(Math.max(Z-g.x,0),g.width)}function Xe(Z,Ce){let ue=$e.features.episodesClustering&&!S?$e.episodeMinWidthPc:0,Ie=[],Je=0,at=0,ut=0;for(let gt=1;gt<y.length;gt++)at=y[gt].time/ve*100,at-Je>ue&&(Ie.push({from:Je,width:Math.max(0,at-Je),loadedWidth:Math.max(0,Math.min(at,Z)-Je),filledWidth:Math.max(0,Math.min(at,Ce)-Je),interactive:y[gt-1].interactive,completed:y[gt-1].completed}),Je=y[gt].time/ve*100,ut++);let ft={from:Je,width:Math.max(0,100-Je),loadedWidth:Math.max(0,Math.min(Z,100)-Je),filledWidth:Math.max(0,Math.min(Ce,100)-Je),interactive:y[ut].interactive,completed:y[ut].completed};100-Je<ue?(ut-=1,Ie[ut].width+=100-Je,Ie[ut].loadedWidth+=Math.max(0,Math.min(Z,100)-Je),Ie[ut].filledWidth+=Math.max(0,Math.min(Ce,100)-Je)):Ie[ut]=ft;let ht=y[0].time;if(ht!==0){let gt=ht/ve*100;Ie.unshift({from:0,width:gt,loadedWidth:Math.min(gt,Z),filledWidth:Math.min(gt,Ce)})}return Ie}function Te(Z){_e[Z?"unshift":"push"](()=>{v=Z,t(19,v)})}return i.$$set=Z=>{"className"in Z&&t(0,r=Z.className),"testId"in Z&&t(1,l=Z.testId),"isHidden"in Z&&t(2,a=Z.isHidden),"isVertical"in Z&&t(3,s=Z.isVertical),"isActiveLive"in Z&&t(4,u=Z.isActiveLive),"isMobile"in Z&&t(5,c=Z.isMobile),"isAds"in Z&&t(6,m=Z.isAds),"squareBorders"in Z&&t(7,h=Z.squareBorders),"videoEpisodes"in Z&&t(28,y=Z.videoEpisodes),"withWheelHandler"in Z&&t(29,b=Z.withWheelHandler),"isInteractive"in Z&&t(8,S=Z.isInteractive),"disabled"in Z&&t(9,w=Z.disabled),"hideHandel"in Z&&t(10,P=Z.hideHandel),"onPointerDown"in Z&&t(30,I=Z.onPointerDown),"onHandleMove"in Z&&t(31,A=Z.onHandleMove),"onPointerUp"in Z&&t(32,q=Z.onPointerUp),"onPointerEnter"in Z&&t(33,K=Z.onPointerEnter),"onPointerMove"in Z&&t(34,re=Z.onPointerMove),"onPointerLeave"in Z&&t(35,ae=Z.onPointerLeave),"onWheelUp"in Z&&t(36,H=Z.onWheelUp),"onWheelDown"in Z&&t(37,L=Z.onWheelDown),"onWheelLeft"in Z&&t(38,x=Z.onWheelLeft),"onWheelRight"in Z&&t(39,Q=Z.onWheelRight),"loadedProgress"in Z&&t(11,J=Z.loadedProgress),"filledProgress"in Z&&t(12,E=Z.filledProgress),"handleProgress"in Z&&t(13,te=Z.handleProgress),"ariaLabel"in Z&&t(14,M=Z.ariaLabel),"ariaValueMin"in Z&&t(15,ee=Z.ariaValueMin),"ariaValueMax"in Z&&t(16,ke=Z.ariaValueMax),"ariaValueNow"in Z&&t(17,Qe=Z.ariaValueNow),"ariaValueText"in Z&&t(18,je=Z.ariaValueText)},i.$$.update=()=>{var Z;if(i.$$.dirty[0]&65536)e:t(40,ve=ke!=null?ke:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=((Z=y[y.length-1])==null?void 0:Z.time)<ve);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=y.length&&n&&ve?Xe(J*100,E*100):[])},[r,l,a,s,u,c,m,h,S,w,P,J,E,te,M,ee,ke,Qe,je,v,We,o,X,be,Oe,xe,et,ye,y,b,I,A,q,K,re,ae,H,L,x,Q,ve,n,Te]}var Ua=class extends j{constructor(e){super(),W(this,e,pb,mb,U,{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},fb,[-1,-1])}},al=Ua;var Mn=(i,e)=>Mo[i]>=Mo[e],Rd=(i,e)=>Mo[i]<Mo[e],Vr=(i,e)=>Mo[i]<=Mo[e],Dd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function _b(i){Se(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function hb(i){let e,t;return e=new Fo({props:{volume:i[3],muted:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gb(i){let e,t;return e=new _t({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Yn.KeyM,$$slots:{default:[hb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nd(i){let e,t,n;return t=new al({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]:no.noop,onPointerLeave:i[2]?i[20]:no.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),z(e,"volumeBar-vertical",i[2])},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:no.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:no.noop),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&z(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function bb(i){let e,t,n,o,r,l;t=new Er({props:{content:i[6],translateY:-18,$$slots:{default:[gb]},$$scope:{ctx:i}}});let a=i[4]&&Nd(i);return{c(){e=T("div"),D(t.$$.fragment),n=O(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),z(e,"vertical",i[2])},m(s,u){C(s,e,u),B(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[de(e,"mouseenter",function(){Ai(i[2]?i[21]:no.noop)&&(i[2]?i[21]:no.noop).apply(this,arguments)}),de(e,"mouseleave",function(){Ai(i[2]?i[22]:no.noop)&&(i[2]?i[22]:no.noop).apply(this,arguments)}),de(e,"wheel",Lt(i[23]))],r=!0)},p(s,u){i=s;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Nd(i),a.c(),d(a,1),a.m(e,null)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),(!o||u[0]&4)&&z(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),R(t),a&&a.d(),r=!1,nt(l)}}}function vb(i,e,t){var We,ve;let n,o,r,l,{click:a}=e,s=it(),u=Ht(),c=s.state.volume$;F(i,c,X=>t(3,n=X));let m=s.state.muted$;F(i,m,X=>t(25,l=X));let h=s.actions.internal.setVolume,y=s.ui.currentGridType$;F(i,y,X=>t(24,r=X));let b=(We=s.callbacks)==null?void 0:We.onAudioDoesNotExistHint,S=(ve=s.callbacks)==null?void 0:ve.onAudioDisabledHint,w=s.state.isAudioAvailable$;F(i,w,X=>t(4,o=X));let P=s.state.isAudioDisabled,v=!1,g,I,A,q,K,re,ae=1,H=!1,L=!1;function x(X){ae=n,h(X)}function Q(){vr(s,n,u.controls.volumeStepWheel)}function J(){yr(s,n,u.controls.volumeStepWheel)}function E(X){h(X)}function te(X){let be=X;h(be,be===0?ae:be)}function M(){H=!0}function ee(){H=!1,je()}function ke(){clearTimeout(g),t(5,v=!0)}function Qe(){je()}function je(){g=window.setTimeout(()=>{H||t(5,v=!1)},u.controls.volumeBarTimeout)}function $e(X){X.deltaY<0?Q():X.deltaY>0&&J()}return i.$$set=X=>{"click"in X&&t(0,a=X.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,q=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,K=Vr(r,"s"));if(i.$$.dirty[0]&6)e:K?t(6,I=""):t(6,I=q?Y("tooltip_volume"):Y("tooltip_volume_muted")),t(7,A=q?Y("tooltip_volume"):Y("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,re=q?0:n);if(i.$$.dirty[0]&16)e:t(9,L=P&&!S||!o&&!b)},[a,q,K,n,o,v,I,A,re,L,c,m,y,w,x,Q,J,E,te,M,ee,ke,Qe,$e,r,l]}var Ka=class extends j{constructor(e){super(),W(this,e,vb,bb,U,{click:0},_b,[-1,-1])}},Od=Ka;var zd=require("@vkontakte/videoplayer-shared");function yb(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function wb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ja=class extends j{constructor(e){super(),W(this,e,wb,yb,U,{})}},Fd=ja;function kb(i){Se(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Cb(i){let e,t;return e=new Fd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Wa=class extends j{constructor(e){super(),W(this,e,Sb,Cb,U,{isFullscreen:0},kb)}},Hd=Wa;function Pb(i){let e,t;return e=new Hd({props:{isFullscreen:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tb(i){let e,t;return e=new _t({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Yn.KeyF,$$slots:{default:[Pb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ib(i,e,t){let{isFullscreen:n=!1}=e,{click:o=zd.noop}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?Y("tooltip_fullscreen_on"):Y("tooltip_fullscreen_off"))},[n,o,r]}var Ga=class extends j{constructor(e){super(),W(this,e,Ib,Tb,U,{isFullscreen:0,click:1})}},Ar=Ga;function Eb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Qa=class extends j{constructor(e){super(),W(this,e,Mb,Eb,U,{})}},ul=Qa;function Vb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ab(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ya=class extends j{constructor(e){super(),W(this,e,Ab,Vb,U,{})}},Lr=Ya;var Ud=require("@vkontakte/videoplayer-shared");function Lb(i){Se(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 qd(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Bb(i){let e,t,n,o,r=i[1]&&qd(i);var l=i[8];function a(s){return{}}return l&&(n=kn(l,a(i))),{c(){r&&r.c(),e=O(),t=T("div"),n&&D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),C(s,e,u),C(s,t,u),n&&B(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=qd(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){fe();let c=n;_(c.$$.fragment,1,0,()=>{R(c,1)}),ce()}l?(n=kn(l,a(s)),D(n.$$.fragment),d(n.$$.fragment,1),B(n,t,null)):n=null}(!o||u&2)&&z(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),r&&r.d(s),n&&R(n)}}}function Rb(i){let e,t,n;function o(l){i[13](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Yn.KeyK,$$slots:{default:[Bb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Db(i,e,t){let n,o,{fakeIsPlaying$:r}=Rn();F(i,r,v=>t(12,o=v));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=Ud.noop}=e,{toggle:h}=r,y,b,S,w;function P(v){l=v,t(0,l)}i.$$set=v=>{"ref"in v&&t(0,l=v.ref),"isMobile"in v&&t(1,a=v.isMobile),"isPlaying"in v&&t(10,s=v.isPlaying),"disabled"in v&&t(2,u=v.disabled),"className"in v&&t(3,c=v.className),"click"in v&&t(4,m=v.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,b=o!==null);if(i.$$.dirty&5152)e:t(11,S=b?o:s);if(i.$$.dirty&2048)e:t(7,w=S?Y("tooltip_pause"):Y("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?Lr:ul)};e:t(6,y=h);return[l,a,u,c,m,b,y,w,n,r,s,S,o,P]}var Za=class extends j{constructor(e){super(),W(this,e,Db,Rb,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Lb)}},Rl=Za;function Nb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ob(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Xa=class extends j{constructor(e){super(),W(this,e,Ob,Nb,U,{})}},Kd=Xa;function Fb(i){let e,t;return e=new Kd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.isMobile)},i.$$.update=()=>{if(i.$$.dirty&5)e:n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0)},[n,r,o]}var Ja=class extends j{constructor(e){super(),W(this,e,Hb,Fb,U,{isPrev:0,isMobile:2})}},jd=Ja;function zb(i){let e,t;return e=new jd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qb(i){let e,t,n;function o(l){i[6](l)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[zb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Ub(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(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,r=c.disabled),"type"in c&&t(3,l=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l==="prev"?Y("tooltip_previous"):Y("tooltip_next"))},[n,o,r,l,a,s,u]}var xa=class extends j{constructor(e){super(),W(this,e,Ub,qb,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},fl=xa;function Kb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var $a=class extends j{constructor(e){super(),W(this,e,jb,Kb,U,{})}},Wd=$a;function Wb(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=oe(c,u[m]);return{c(){e=N("svg"),s&&s.c(),t=N("path"),n=N("path"),o=N("path"),r=N("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),ge(e,c)},m(m,h){C(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Ae(m[1]),null),ge(e,c=Le(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function Gb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var eu=class extends j{constructor(e){super(),W(this,e,Gb,Wb,U,{})}},Gd=eu;function Qb(i){Se(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function Yb(i){let e,t;return e=new Gd({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}var Zb="vk-video-logo-icon--short";function Xb(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{if(i.$$.dirty&12)e:t(0,r=n?21:95),t(1,l=n?Zb:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en"))},[r,l,n,o]}var tu=class extends j{constructor(e){super(),W(this,e,Xb,Yb,U,{short:2,isCyrillic:3},Qb)}},Qd=tu;var Yd=require("@vkontakte/videoplayer-shared");function xb(i){let e,t;return e=new Wd({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $b(i){let e,t;return e=new Qd({props:{short:i[4],isCyrillic:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function e4(i){let e,t,n,o,r=[$b,xb],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function t4(i){let e,t,n;function o(l){i[15](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[e4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&262196&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i4(i,e,t){let n,o,r,l,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:c}=e,m=Ht(),h=it(),y=h.ui.currentGridType$;F(i,y,A=>t(13,r=A));let b=h.ui.isMobile;F(i,b,A=>t(14,l=A));let S=h.interfaceLanguage$;F(i,S,A=>t(12,o=A));let w,P,v,g=()=>{var A,q;c(),(q=(A=h.callbacks)==null?void 0:A.onLogoClicked)==null||q.call(A),u&&window.open(u,"_blank")};function I(A){a=A,t(0,a)}i.$$set=A=>{"ref"in A&&t(0,a=A.ref),"logoClickable"in A&&t(1,s=A.logoClickable),"targetUrl"in A&&t(10,u=A.targetUrl),"click"in A&&t(11,c=A.click)},i.$$.update=()=>{if(i.$$.dirty&24580)e:t(4,v=(l||Vr(r,"l"))&&P);if(i.$$.dirty&4096)e:t(5,n=o===Yd.InterfaceLanguage.RU)};e:t(3,w=m.logoType==="vk_video"?Y("tooltip_vk_video_logo"):Y("tooltip_vk_logo"));e:t(2,P=m.logoType==="vk_video"||m.logoType==="vk_video_mobile");return[a,s,P,w,v,n,y,b,S,g,u,c,o,r,l,I]}var iu=class extends j{constructor(e){super(),W(this,e,i4,t4,U,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Br=iu;var Xd=require("@vkontakte/videoplayer-core");var nu=require("@vkontakte/videoplayer-core");function n4(i){Se(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 o4(i){let e,t,n,o,r,l,a,s;return{c(){e=N("svg"),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("path"),a=N("path"),s=N("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(l,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(s,"fill","#fff"),z(s,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),z(e,"connecting",i[2])},m(u,c){C(u,e,c),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,c){c&2&&z(s,"hidden",!u[1]),c&4&&z(e,"connecting",u[2])},d(u){u&&k(e)}}}function l4(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A;return{c(){e=N("svg"),t=N("g"),n=N("mask"),o=N("path"),l=N("path"),a=N("path"),u=N("path"),c=N("defs"),m=N("clipPath"),h=N("path"),b=N("filter"),S=N("feFlood"),w=N("feColorMatrix"),P=N("feOffset"),v=N("feGaussianBlur"),g=N("feColorMatrix"),I=N("feBlend"),A=N("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(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"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",s=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",y=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(S,"flood-opacity","0"),f(S,"result","BackgroundImageFix"),f(w,"in","SourceAlpha"),f(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"result","hardAlpha"),f(v,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_4085_178456"),f(A,"in","SourceGraphic"),f(A,"in2","effect1_dropShadow_4085_178456"),f(A,"result","shape"),f(b,"id","b"),f(b,"x","-3.4"),f(b,"y","-1.4"),f(b,"width","30.8"),f(b,"height","26.802"),f(b,"filterUnits","userSpaceOnUse"),f(b,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(q,K){C(q,e,K),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,c),p(c,m),p(m,h),p(c,b),p(b,S),p(b,w),p(b,P),p(b,v),p(b,g),p(b,I),p(b,A)},p(q,K){K&2&&r!==(r=q[1]?"#2688EB":"#fff")&&f(o,"fill",r),K&2&&s!==(s=q[1]?"#2688EB":"#fff")&&f(a,"fill",s),K&2&&y!==(y=q[1]?"#2688EB":"#fff")&&f(h,"fill",y)},d(q){q&&k(e)}}}function r4(i){let e;function t(r,l){return r[0]?l4:o4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:pe,o:pe,d(r){r&&k(e),o.d(r)}}}function s4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(2,l=o===nu.ChromecastState.CONNECTING),t(1,r=o===nu.ChromecastState.CONNECTED)},[n,r,l,o]}var ou=class extends j{constructor(e){super(),W(this,e,s4,r4,U,{isMobile:0,state:3},n4)}},Zd=ou;var Jd=require("@vkontakte/videoplayer-shared");function a4(i){let e,t;return e=new Zd({props:{isMobile:i[1],state:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function u4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[a4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function f4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=Jd.noop}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=r===Xd.ChromecastState.CONNECTED?Y("tooltip_chromecast_on"):Y("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var lu=class extends j{constructor(e){super(),W(this,e,f4,u4,U,{ref:0,isMobile:1,state:2,click:3})}},Rr=lu;var Dr=require("@vkontakte/videoplayer-core");function c4(i){let e,t;return e=new mr({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d4(i){let e,t;return e=new _t({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Dr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[c4]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===Dr.PlaybackState.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function m4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=it(),s=a.state.playbackState$;F(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,m=()=>{if(!r){u();return}n===Dr.PlaybackState.PAUSED&&c()})},[o,r,l,n,m,s]}var ru=class extends j{constructor(e){super(),W(this,e,m4,d4,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Nr=ru;function p4(i){Se(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 _4(i){let e,t,n,o,r=i[9].default,l=Ee(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),f(t,"class","tooltip svelte-5ygsa2"),z(t,"active",i[0]),z(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){C(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Ae(a[8]),null),(!o||s&1)&&z(t,"active",a[0]),(!o||s&2)&&z(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function h4(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function y(w){if(!h)return 0;let{width:P}=h.getBoundingClientRect(),v=P/2;return w<v?v:w>c-v?c-v:w}function b(w){_e[w?"unshift":"push"](()=>{h=w,t(4,h)})}function S(w){_e[w?"unshift":"push"](()=>{m=w,t(3,m)})}return i.$$set=w=>{"active"in w&&t(0,l=w.active),"pointer"in w&&t(1,a=w.pointer),"translateXPx"in w&&t(6,s=w.translateXPx),"translateYPx"in w&&t(2,u=w.translateYPx),"containerWidth"in w&&t(7,c=w.containerWidth),"$$scope"in w&&t(8,r=w.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=y(s))},[l,a,u,m,h,n,s,c,r,o,b,S]}var su=class extends j{constructor(e){super(),W(this,e,h4,_4,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},p4)}},xd=su;var Or=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function g4(i){Se(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 $d(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?v4:b4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function b4(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ye(t,e)},d(n){n&&k(t)}}}function v4(i){let e=Y("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function em(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&k(e)}}}function y4(i){let e,t,n,o,r,l,a=i[10]&&$d(i),s=!i[2]&&em(i);return{c(){e=T("div"),t=T("div"),o=O(),r=T("div"),a&&a.c(),l=O(),s&&s.c(),f(t,"class","preview svelte-l51fc1"),f(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);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),z(e,"mobile",i[1])},m(u,c){C(u,e,c),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=$d(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,c):(s=em(u),s.c(),s.m(e,null)),c&2&&z(e,"mobile",u[1])},i:pe,o:pe,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var cl=150;function w4(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=it().ui.rotateAlpha;F(i,h,K=>t(11,n=K));let y,b,S,w,P,v,g,I;function A(){let K=a.frameWidth,re=a.frameHeight;return K>cl?(re=re/K*cl,K=cl):re>cl&&(K=K/re*cl,re=cl),{width:K,height:re}}function q(K){let re;a.isUV?re=Math.floor(u*K/a.frequency):re=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*K)));let ae=Math.floor(re/a.countPerImage),H=Math.floor(re%a.countPerImage/a.countPerRow),L=re%a.countPerRow,x=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(x=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&x++);let Q=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(Q=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let J=y*Q,E=b*x,te=-L*y,M=-H*b;return{imgSrc:a.links[ae],imgWidth:J,imgHeight:E,imgOffsetX:te,imgOffsetY:M}}i.$$set=K=>{"time"in K&&t(0,o=K.time),"isMobile"in K&&t(1,r=K.isMobile),"videoEpisodes"in K&&t(13,l=K.videoEpisodes),"previewThumbsData"in K&&t(14,a=K.previewThumbsData),"progress"in K&&t(15,s=K.progress),"duration"in K&&t(16,u=K.duration),"isInteractive"in K&&t(2,c=K.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:S,imgWidth:w,imgHeight:P,imgOffsetX:v,imgOffsetY:g}=q(s),S,(t(6,w),t(15,s)),(t(7,P),t(15,s)),(t(8,v),t(15,s)),(t(9,g),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=Or(s,u,l))};e:t(3,{width:y,height:b}=A(),y,t(4,b));return[o,r,c,y,b,S,w,P,v,g,I,n,h,l,a,s,u]}var au=class extends j{constructor(e){super(),W(this,e,w4,y4,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},g4)}},tm=au;function k4(i){Se(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 C4(i){let e,t;return{c(){e=T("span"),t=De(i[7]),f(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o[0]&128&&Ye(t,n[7])},i:pe,o:pe,d(n){n&&k(e)}}}function S4(i){let e,t;return e=new tm({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.time=n[7]),o[0]&1024&&(r.isMobile=n[10]),o[0]&8&&(r.videoEpisodes=n[3]),o[0]&256&&(r.progress=n[8]),o[0]&2&&(r.duration=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function P4(i){let e,t,n,o,r=[S4,C4],l=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function T4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[P4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=oe(l,r[a]);return e=new xd({props:l}),n=new al({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("TIMELINE"),hideHandel:i[2]}}),{c(){D(e.$$.fragment),t=O(),D(n.$$.fragment)},m(a,s){B(e,a,s),C(a,t,s),B(n,a,s),o=!0},p(a,s){let u=s[0]&512?Le(r,[Qf(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let c={};s[0]&2048&&(c.isActiveLive=a[11]),s[0]&1024&&(c.isMobile=a[10]),s[0]&2&&(c.ariaValueMax=a[1]),s[0]&64&&(c.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(c.ariaValueText=Y("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(c.loadedProgress=a[12]),s[0]&64&&(c.filledProgress=a[6]),s[0]&64&&(c.handleProgress=a[6]),s[0]&8&&(c.videoEpisodes=a[3]),s[0]&8192&&(c.disabled=a[13].has("TIMELINE")),s[0]&4&&(c.hideHandel=a[2]),n.$set(c)},i(a){o||(d(e.$$.fragment,a),d(n.$$.fragment,a),o=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),o=!1},d(a){a&&k(t),R(e,a),R(n,a)}}}function I4(i,e,t){let n,o,r,l,a,s,u,c,m,h,y,{showTimeline:b=!1}=e,S=it(),w=Ht(),P=S.state.bufferedProgress$;F(i,P,Te=>t(12,h=Te));let v=S.state.positionWithScrubbing$;F(i,v,Te=>t(39,s=Te));let g=S.state.duration$;F(i,g,Te=>t(1,r=Te));let I=S.state.isLive$;F(i,I,Te=>t(0,o=Te));let A=S.state.isActiveLive$;F(i,A,Te=>t(11,m=Te));let q=S.ui.isMobile;F(i,q,Te=>t(10,c=Te));let K=w.features.episodes?S.actions.internal.getVideoEpisodes():void 0,re=S.actions.internal.getPreviewThumbsData(),ae=S.state.interactiveEpisodes$;F(i,ae,Te=>t(40,u=Te));let H=S.state.isInteractive,L=S.state.isInteractiveTime$;F(i,L,Te=>t(2,l=Te));let x=S.state.isInteractiveExpectation$;F(i,x,Te=>t(38,a=Te));let Q=S.actions.internal.correctSeekTimeToInteractive,J=S.ui.controls.disabledControls$;F(i,J,Te=>t(13,y=Te));let E,te,M,ee,ke=!1,Qe="",je=0,$e=0,We=0,ve;function X(Te){return!Q||!H?Te:Q(Te*r)/r}function be(Te){S.actions.internal.startScrubbing(X(Te))}function Oe(Te){l||S.actions.internal.progressScrubbing(X(Te))}function xe(Te){S.actions.internal.completeScrubbing(X(Te)),t(34,ke=!1)}function et(Te,Z,Ce){Ue(Te,Z,Ce),t(34,ke=!0)}function ye(Te,Z,Ce){Ue(Te,Z,Ce),t(34,ke=!0)}function Be(){t(34,ke=!1)}function Ue(Te,Z,Ce){t(8,We=X(Te)),t(35,je=Z),Ce&&t(36,$e=Ce),t(7,Qe=Xe(Te))}function Xe(Te){let Z=En((o?1-Te:Te)*r);return o?`-${Z}`:Z}return i.$$set=Te=>{"showTimeline"in Te&&t(33,b=Te.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,E=H?u:K);if(i.$$.dirty[0]&2)e:t(4,te=En(r));if(i.$$.dirty[1]&256)e:t(5,M=En(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,ee=s/r);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ve=a||l);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:$e,translateXPx:je,translateYPx:H&&re?-36:-16,active:ke&&b&&!ve,pointer:!w.features.timelinePreview||!re||o})},[o,r,l,E,te,M,ee,Qe,We,n,c,m,h,y,w,P,v,g,I,A,q,re,ae,H,L,x,J,be,Oe,xe,et,ye,Be,b,ke,je,$e,ve,a,s,u]}var uu=class extends j{constructor(e){super(),W(this,e,I4,T4,U,{showTimeline:33},k4,[-1,-1])}},im=uu;function E4(i){let e,t;return e=new al({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(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=Y("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=it().ui.isMobile;F(i,a,m=>t(4,n=m));let s,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=En(r));if(i.$$.dirty&64)e:t(2,u=En(o));if(i.$$.dirty&65)e:t(3,c=o/r)},[r,s,u,c,n,a,o]}var fu=class extends j{constructor(e){super(),W(this,e,M4,E4,U,{position:6,duration:0})}},Fr=fu;function V4(i){Se(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function A4(i){let e;return{c(){e=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),z(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&z(e,"mobile",t[2])},i:pe,o:pe,d(t){t&&k(e)}}}function L4(i){let e,t,n,o,r=[R4,B4],l=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),z(e,"mobile",i[2])},m(s,u){C(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&4)&&z(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function B4(i){let e,t;return e=new im({props:{showTimeline:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.showTimeline=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function R4(i){let e,t;return e=new Fr({props:{position:i[3],duration:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.position=n[3]),o&16&&(r.duration=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function D4(i){let e,t,n,o,r=[L4,A4],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function N4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,m=it(),h=m.state.isLive$;F(i,h,P=>t(12,n=P));let y=m.ads.duration;F(i,y,P=>t(4,l=P));let b=m.ads.position;F(i,b,P=>t(3,r=P));let S=m.ui.isMobile;F(i,S,P=>t(2,o=P));let w;return i.$$set=P=>{"isAds"in P&&t(0,a=P.isAds),"canRewindLive"in P&&t(9,s=P.canRewindLive),"isRewindableLive"in P&&t(10,u=P.isRewindableLive),"isHidden"in P&&t(11,c=P.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,w=!c&&(!n||n&&s&&u||a))},[a,w,o,r,l,h,y,b,S,s,u,c,n]}var cu=class extends j{constructor(e){super(),W(this,e,N4,D4,U,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},V4)}},Hr=cu;var lm=require("@vkontakte/videoplayer-shared");function O4(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("path"),n=N("path"),o=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function F4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var du=class extends j{constructor(e){super(),W(this,e,F4,O4,U,{})}},nm=du;function H4(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function z4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var mu=class extends j{constructor(e){super(),W(this,e,z4,H4,U,{})}},om=mu;function q4(i){Se(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 U4(i){let e,t,n,o;e=new nm({});function r(s,u){if(s[4]==="FULL")return W4;if(s[4]==="COUNT")return j4}let l=r(i,-1),a=l&&l(i);return{c(){D(e.$$.fragment),t=O(),a&&a.c(),n=lt()},m(s,u){B(e,s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),R(e,s),a&&a.d(s)}}}function K4(i){let e,t,n,o,r,l;return r=new om({}),{c(){e=T("span"),t=De(i[2]),n=O(),o=T("div"),D(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),p(e,t),C(a,n,s),C(a,o,s),B(r,o,null),l=!0},p(a,s){(!l||s&4)&&Ye(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),R(r)}}}function j4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=De(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){C(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ye(n,t)},d(o){o&&k(e)}}}function W4(i){let e,t;return{c(){e=T("span"),t=De(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&4&&Ye(t,n[2])},d(n){n&&k(e)}}}function G4(i){let e,t,n,o,r=[K4,U4],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Q4(i){let e,t,n;function o(l){i[19](l)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[G4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Y4(i,e,t){var H,L,x;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=it(),y=(L=(H=h.callbacks)==null?void 0:H.onEpisodeChanged)!=null?L:lm.noop,b=!!((x=h.callbacks)!=null&&x.onEpisodeClicked),S=h.ui.currentGridType$;F(i,S,Q=>t(18,a=Q));let w=h.ui.episodes.openedByKeyboard$;F(i,w,Q=>t(17,l=Q));let P=h.ui.episodes.panelOpened$;F(i,P,Q=>t(3,r=Q));let v=h.ui.isMobile;F(i,v,Q=>t(6,s=Q));let g,I=Q=>{var E,te,M;if(!!((E=h.callbacks)!=null&&E.onEpisodeClicked)){let ee=nl(Q);w.set(ee),P.set(!0),(M=(te=h.callbacks)==null?void 0:te.onEpisodeClicked)==null||M.call(te,ee)}},A,q,K,re=async(Q,J,E)=>{await Kn(),(Q==null?void 0:Q.getAttribute("aria-expanded"))==="false"&&J&&!E&&(w.set(!1),Q.focus())};function ae(Q){g=Q,t(1,g)}return i.$$set=Q=>{"position"in Q&&t(13,u=Q.position),"duration"in Q&&t(14,c=Q.duration),"timeCodes"in Q&&t(0,m=Q.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/c);if(i.$$.dirty&114689)e:{let Q=Or(n,c,m);Q&&(A==null?void 0:A.text)!==Q.text&&(y(Q),t(15,A=Q))}if(i.$$.dirty&32768)e:t(2,o=(A==null?void 0:A.text)||"");if(i.$$.dirty&262144)e:Mn(a,"xl")?t(4,q="FULL"):Mn(a,"m")&&Rd(a,"xl")?t(4,q="COUNT"):t(4,q="SHORT");if(i.$$.dirty&4)e:t(5,K=`${Y("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:re(g,l,r)},[m,g,o,r,q,K,s,b,S,w,P,v,I,u,c,A,n,l,a,ae]}var pu=class extends j{constructor(e){super(),W(this,e,Y4,Q4,U,{position:13,duration:14,timeCodes:0},q4)}},zr=pu;function Z4(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function X4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var _u=class extends j{constructor(e){super(),W(this,e,X4,Z4,U,{})}},rm=_u;function J4(i){let e,t;return e=new rm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function x4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:Y("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[J4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function $4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var hu=class extends j{constructor(e){super(),W(this,e,$4,x4,U,{ref:0,hidden:1,disabled:2,click:3})}},qr=hu;function ev(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function tv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var gu=class extends j{constructor(e){super(),W(this,e,tv,ev,U,{})}},sm=gu;function iv(i){Se(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function nv(i){let e,t;return e=new sm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ov(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var bu=class extends j{constructor(e){super(),W(this,e,ov,nv,U,{isOpened:0},iv)}},am=bu;function lv(i){let e,t;return e=new am({props:{isOpened:i[3]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rv(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[lv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function sv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,l=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l?Y("tooltip_interactive_graph_on"):Y("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var vu=class extends j{constructor(e){super(),W(this,e,sv,rv,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Ur=vu;function av(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var yu=class extends j{constructor(e){super(),W(this,e,uv,av,U,{})}},Kr=yu;var fm=require("@vkontakte/videoplayer-shared");function fv(i){Se(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 um(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function cv(i){let e,t,n,o,r=i[1]&&um(i);return n=new Kr({}),{c(){r&&r.c(),e=O(),t=T("div"),D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),C(l,e,a),C(l,t,a),B(n,t,null),o=!0},p(l,a){l[1]?r||(r=um(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&z(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),r&&r.d(l),R(n)}}}function dv(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:Y("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Yn.KeyK,$$slots:{default:[cv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function mv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=fm.noop}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var wu=class extends j{constructor(e){super(),W(this,e,mv,dv,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},fv)}},Dl=wu;function pv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function _v(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ku=class extends j{constructor(e){super(),W(this,e,_v,pv,U,{})}},cm=ku;function hv(i){let e,t;return e=new cm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gv(i){let e,t,n;function o(l){i[4](l)}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:[hv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function bv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Cu=class extends j{constructor(e){super(),W(this,e,bv,gv,U,{ref:0,hidden:1,disabled:2,click:3})}},jr=Cu;var Su=require("@vkontakte/videoplayer-shared");function vv(i){Se(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 yv(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1x1zctw"),ys(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),n||(o=de(e,"error",i[7]),n=!0)},p(r,l){l&1&&!ys(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function wv(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',f(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){C(t,e,n)},p:pe,d(t){t&&k(e)}}}function kv(i){let e;function t(r,l){return r[5]?wv:yv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function Cv(i){let e,t;return e=new _t({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[kv]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sv(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=Su.noop}=e,m=()=>{t(5,r=!0)};i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=c===Su.noop);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,r=!1);return[l,a,u,c,n,r,o,m,s]}var Pu=class extends j{constructor(e){super(),W(this,e,Sv,Cv,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},vv)}},Wr=Pu;var Nm=require("@vkontakte/videoplayer-shared");var an=require("@vkontakte/videoplayer-core"),EE=require("@vkontakte/videoplayer-shared"),ct=require("@vkontakte/videoplayer-shared"),oo=require("@vkontakte/videoplayer-statistics"),ME=require("@vkontakte/videoplayer-interactive");var Rt=require("@vkontakte/videoplayer-shared");var dm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var Pv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Gr=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 Rt.Subject,started$:new Rt.Subject,paused$:new Rt.Subject,resumed$:new Rt.Subject,ended$:new Rt.Subject,skipped$:new Rt.Subject,clicked$:new Rt.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Rt.addScript)(Pv,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,Rt.assertNonNullable)(this.adsState),(0,Rt.assertNonNullable)(this.playerState),(0,Rt.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"}),tt(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,Rt.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Rt.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Rt.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Rt.assertNonNullable)(this.adman),(0,Rt.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:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:c,previewParam:m}=e,h,y=this.playerState&&tt(this.playerState.vsid);y&&(h=parseInt(y,36));let b={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:dm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u},S={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:b,browser:{mobile:!1}},w=new window.AdmanHTML;w.setDebug(!1),w.onReady(this.onAdsReady),w.onStarted(this.onAdStarted),w.onPlayed(this.onAdPlayed),w.onPaused(this.onAdPaused),w.adMidrollPoint(this.onAdMidrollPoint),w.onClosed(this.onAdClosed),w.onSkipped(this.onAdSkipped),w.onClicked(this.onAdClicked),w.onTimeRemained(this.onAdTimeRemained),w.onCompleted(this.onAdCompleted),w.onError(this.onAdError),w.init(S),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,Rt.assertNonNullable)(this.actions),(0,Rt.assertNonNullable)(this.adsState),(0,Rt.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,Rt.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=tt(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,Rt.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Rt.assertNonNullable)(this.adman),(0,Rt.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Rt.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Rt.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Rt.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 mm=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 Tu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new Qr,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new Iu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},Qr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},Iu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((c,m)=>{let h=l.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new Qr;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},pm=Tu;var Yr=require("@vkontakte/videoplayer-shared"),bo,Wt,Eu=0,Mu=!1,_m=(i,e,t)=>{var u;let n=i>=Eu,o=i<Eu,r=(c,m=0,h=0)=>c<m&&c<h,l=(c,m=0,h=0)=>c>=m&&c<=h,a=(c,m=0,h=0)=>c>m&&c>h,s=(u=t.find(({lang:c})=>c===e.value))==null?void 0:u.subtitles;if(Eu=i,o&&(Mu=!1),(0,Yr.isNonNullable)(bo)&&l(i,bo.startTime,bo.endTime)&&bo.lang===e.value)return bo;if(!(0,Yr.isNonNullable)(Wt)&&(s!=null&&s.length)&&!Mu){let c=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Wt=c&&{...c,lang:e.value},bo=void 0,!(0,Yr.isNonNullable)(Wt)&&s[s.length-1].endTime<i&&(Mu=!0);return}else{if(l(i,Wt==null?void 0:Wt.startTime,Wt==null?void 0:Wt.endTime))return bo=Wt,Wt=void 0,bo;(n&&a(i,Wt==null?void 0:Wt.startTime,Wt==null?void 0:Wt.endTime)||o&&r(i,Wt==null?void 0:Wt.startTime,Wt==null?void 0:Wt.endTime))&&(Wt=void 0)}};var Zr={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 hm=require("@vkontakte/videoplayer-shared"),gm=require("@vkontakte/videoplayer-statistics"),Xr=class{constructor(e,t){this.oneStat=new gm.OneStat(e,t),this.statSubscription=new hm.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var bm=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:r,canDownload:l,callbacks:a,webApi:s,videoEpisodes:u,previewThumbsData:c,uiConfig:m,coreConfig:h,player:y,disabledControls:b,isInteractive:S,interactiveRanges$:w,isInteractiveTime$:P,replayInteractive:v,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,additionalButtons:A,looped:q=!1,statistics:K,saveRate:re})=>{var wt,sn,xi,Ln;let ae={...h,configName:[...(wt=h.configName)!=null?wt:[],"ui"],isAudioDisabled:r,live:{...(sn=h.live)!=null?sn:{},isLiveCatchUpMode:!!n}},H=m,L=y||new an.Player(ae),x=new ct.Logger,Q=new Gr(x,{loadTimeout:H.ads.loadTimeout,initTimeout:H.ads.initTimeout}),J=Lo.getInstance(),E=s==null?void 0:s.pictureInPictureApi,te=s==null?void 0:s.annotationsApi,M=x.createComponentLog("Store"),ee,ke,Qe={},je=(0,ct.getCurrentBrowser)(),$e=K?Tt(K.oneStat.vsid$):Bn(void 0),We=Ne(co()),ve=(xi=E==null?void 0:E.info.isActive$)!=null?xi:new ct.ValueSubject(!1),X=E==null?void 0:E.info.type,be=Ne(0),Oe=Ne([]),xe=(0,ct.merge)(L.events.fatalError$,L.events.managedError$).subscribe(V=>Oe.update(le=>[...le,V])),et=Bn(!1,V=>{let le=L.events.fatalError$.subscribe(()=>V(!0));return()=>le.unsubscribe()}),ye=async V=>{var Ge;let le=Object.values(ct.InterfaceLanguage).includes(V);if(H.downloadVKLanguages&&(le&&H.updateBuiltinLanguages||!Ls(V))){let rt;try{rt=await(0,ct.loadVKLangPack)(V,xf,$f)}catch(St){(Ge=K==null?void 0:K.oneStat)==null||Ge.logError({errorType:"VKLangPack",fatal:!1}),J==null||J.report(St,{errorType:"VKLangPack",fatal:!1})}rt&&(As({language:V,pack:rt,fallback:H.defaultLanguage}),Be.set(V))}Ls(V)&&Be.set(V)},Be=Ne(i);ye(i);let Ue=(V,le)=>{let Pe=tt(Be);return Bs(Pe,V,le,H.defaultLanguage)},Xe=Ne("thumb"),Te=(()=>{let V=Li([et,Xe],([le,Pe])=>le?"crashed":Pe);return{...V,is:le=>tt(V)===le}})(),Z=(()=>{let V=Ne(new Set(b));return{...V,add:le=>{V.update(Pe=>new Set([...Pe].concat(le)))},remove:le=>{V.update(Pe=>{let Ge=[...Pe];return new Set(Array.isArray(le)?Ge.filter(rt=>!le.includes(rt)):Ge.filter(rt=>rt!==le))})},includes:le=>{let Pe=tt(V);return Array.isArray(le)?le.every(Ge=>Pe.has(Ge)):Pe.has(le)}}})();M({message:"create store"});let Ce=V=>{let le=V.container;le.append(L.experimental.element$.getValue()),ht=new MutationObserver(Pe=>{let{removedNodes:Ge}=Pe[0];Ge.length&&le.append(L.experimental.element$.getValue())}),ht.observe(le,{childList:!0})},ue=V=>{M({message:`init video, config: ${JSON.stringify(V)}`}),S?Ce(V):L.initVideo(V),V.subtitles&&L.setExternalTextTracks(V.subtitles),ee=V},Ie=new ct.Subject,Je=V=>Ie.next(V),at=new ct.Subject,ut=new ct.Subject,ft=new ct.Subject,ht=null,gt={actionRewind$:at,actionSeek$:ut,inPiP$:ve,inFullscreen$:new ct.Observable(V=>We.subscribe(le=>V.next(le))),actionSetSubtitle$:ft,nextMovie$:Ie};if(K){let{oneStat:V,statSubscription:le}=K;le.add(V.attachTo(L)),le.add(V.attachToUi(gt)),le.add(V.attachToAds(Q.events)),V.authorize(o).catch(Pe=>{M({message:`onestat auth error ${String(Pe)}`})})}if(J){let V=new ct.Subscription,le=(Pe,Ge)=>V.add(Pe.subscribe(Ge));if(le(L.events.managedError$,Pe=>{J.logIError(Pe)}),le(L.events.fatalError$,Pe=>{J.logIError(Pe,!0)}),K){let{oneStat:Pe}=K;le(Pe.experimental.error$,Ge=>{J.logIError(Ge)})}J.sentrySubscription.add(V)}let we=()=>{(0,ct.isIOS)()&&ke&&Ac(ke)},mt=new ct.Subscription().add(L.experimental.element$.subscribe(V=>{V&&(ke=V,V.classList.add("player-media"),Ro(E)&&(E.updateVideoElement(),E.registryEventHandlers()),S&&V.setAttribute("pip","false"))})).add(L.events.ended$.subscribe(()=>{var V;we(),(V=a==null?void 0:a.onEnded)==null||V.call(a)})).add(L.events.started$.subscribe(async()=>{var le,Pe;Ro(E)&&await(E==null?void 0:E.revealPictureInPicture());let V=L.info.muted$.getValue();(le=a==null?void 0:a.onStarted)==null||le.call(a),(Pe=Qe.onStarted)==null||Pe.call(Qe,V)})).add(L.events.willSeek$.subscribe(({from:V,to:le})=>{var Pe;(Pe=a==null?void 0:a.onSeek)==null||Pe.call(a,V,le)})).add(L.info.position$.subscribe(V=>{var Pe;let le=L.info.duration$.getValue();(Pe=a==null?void 0:a.onTimeupdate)==null||Pe.call(a,le,V),Q.setPosition(V,le)})).add(L.events.fatalError$.subscribe(()=>{var V;(V=a==null?void 0:a.onCrashed)==null||V.call(a)})).add(L.events.firstBytes$.subscribe(()=>{G.state.isFirstBytes$.set(!0)})).add(L.info.is3DVideo$.subscribe(V=>{G.ui.is3DVideo.set(V)})).add(L.info.isEnded$.subscribe(V=>{S&&(V?(P!=null&&P.getValue()&&Z.add(xl),Z.add("PLAY_BUTTON")):Z.remove("PLAY_BUTTON"))})).add(L.info.liveTime$.subscribe(V=>{var le;(le=a==null?void 0:a.onLiveTime)==null||le.call(a,V)})).add(L.info.isStalled$.subscribe(V=>{var le;(le=a==null?void 0:a.onStalledChanged)==null||le.call(a,V)})).add(Q.events.started$.subscribe(()=>{var V,le;(le=(V=a==null?void 0:a.adsInfo)==null?void 0:V.onStarted)==null||le.call(V)})).add(Q.events.ended$.subscribe(()=>{var V,le;(le=(V=a==null?void 0:a.adsInfo)==null?void 0:V.onCompleted)==null||le.call(V)})),It=new ct.Subscription,Et=()=>{It.add(L.events.log$.subscribe(V=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${V.component}`,V.message)})).add(x.log$.subscribe(V=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${V.component}.`,V.message)}))},ze=()=>{It.unsubscribe()},qt=(V,le)=>{L.startCameraManualRotation(V,le)},Nt=(V=!1)=>{L.stopCameraManualRotation(V)},Ut=(V,le,Pe)=>{L.moveCameraFocusPX(V,le,Pe)},Xt=()=>{L.holdCamera()},me=()=>{L.releaseCamera()},pt=Bn(L.info.position$.getValue(),V=>{let le,Pe,Ge=()=>{let rt=L.info.playbackState$.getValue(),St=L.info.isLive$.getValue(),zt=L.info.duration$.getValue(),Mt=L.info.position$.getValue();if([an.PlaybackState.PLAYING,an.PlaybackState.PAUSED].includes(rt)){let qi=St?Mt-zt:L.getExactTime();qi!==Pe&&V(qi),Pe=qi}le=requestAnimationFrame(Ge)};return Ge(),()=>cancelAnimationFrame(le)}),bt=Tt(ve),Re=Tt(L.info.playbackState$),qe=Tt(L.info.currentBuffer$),yt=Tt(L.info.isEnded$),Ot=Tt(L.info.isLive$),Jt=H.features.playbackRate?Tt(L.info.canChangePlaybackSpeed$):Bn(!1),fn=Tt(L.info.liveBufferTime$),gi=Tt(L.info.volume$),bi=Tt(L.info.muted$),Bi=Ts(L.info.autoQualityLimits$.pipe((0,ct.map)(({max:V})=>V!==void 0)),((Ln=L.info.autoQualityLimits$.getValue())==null?void 0:Ln.max)!==void 0),ti=Tt(L.info.autoQualityLimitingAvailable$),vi=Tt(L.info.availableQualities$),cn=Tt(L.info.availableQualitiesFps$),yi=Tt(L.info.chromecastState$),ji=Tt(L.info.chromecastDeviceName$),si=Tt(L.info.currentFormat$),Ri=Tt(L.info.throughputEstimation$),wi=Tt(L.info.videoBitrate$),Wi=Tt(L.info.intrinsicVideoSize$),ki=Tt(L.info.duration$),ai=Tt(L.info.isAudioAvailable$),Vt=null,At=L.info.isBuffering$,Ci=Bn(At.getValue(),V=>{let le=At.subscribe(Pe=>{Pe&&Vt===null?Vt=window.setTimeout(()=>{V(At.getValue()),Vt=null},H.loaderDelay):V(Pe)});return()=>{le.unsubscribe(),Vt&&clearTimeout(Vt)}}),Si=()=>{Vt&&clearTimeout(Vt),Vt=null},Gt=Li([ki,Ot],([V,le])=>le?-V:V),ui=Li([Re],([V])=>V===an.PlaybackState.PLAYING),fi=Tt(L.info.atLiveEdge$),vt=Tt(L.info.atLiveDurationEdge$),Ft=Tt(L.info.position$),kt=Li([Ft,ki],([V,le])=>isFinite(V)&&isFinite(le)&&!!le),Di=Li([yi],([V])=>V===an.ChromecastState.CONNECTED),ii=Ne(void 0),dn=Tt(L.info.isAutoQualityEnabled$,V=>V&&ii.set(void 0)),mn=Tt(L.info.currentQuality$,()=>ii.set(void 0)),xt=Li([ii,mn],([V,le])=>V!=null?V:le),Pi=Li([vi,cn,dn,xt,si],([V,le,Pe,Ge,rt])=>{let St=[];rt!==an.VideoFormat.MPEG&&St.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:Pe});let zt=V.filter(Mt=>Mt!==ct.VideoQuality.INVARIANT);for(let Mt of zt){let qi=le[Mt],So=Mt===ct.VideoQuality.INVARIANT?Ue("auto_quality_option"):Mt;St.push({value:Mt,displayValue:`${So}${qi?mm(qi):""}`,selected:Pe?!1:Mt===Ge})}return St}),Gi=Tt(L.info.currentPlaybackRate$),Ti=Li([Gi,fi,vt],([V,le,Pe])=>{let Ge=Pe||S?1:H.controls.playbackRateMin,rt=le?1:H.controls.playbackRateMax,St=H.controls.playbackRateStep,zt=[];for(let Mt=Ge;Mt<=rt;Mt+=St)zt.push({value:Mt,displayValue:Mt===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:Mt.toString(10)}),selected:V===Mt});return zt}),ci=H.features.subtitles?Tt(L.info.availableTextTracks$):Bn([]),Qt=Li([ci],([V],le)=>{let Pe=[],Ge=[];for(let rt of V)rt.url&&Pe.push(fetch(rt.url));Promise.allSettled(Pe).then(rt=>{for(let[St,zt]of rt.entries())zt.status==="fulfilled"&&zt.value.text().then(Mt=>{let qi=new pm,So=V[St].language,yl=!!V[St].isAuto,ql=qi.parse(Mt);So&&ql&&Ge.push({lang:So,subtitles:ql,isAuto:yl}),St===rt.length-1&&le(Ge)})})}),$t={displayValue:Ue("subtitles_off"),value:"off"},Ii=Ne({...$t}),ni=Li([Qt,Ii,Qt],([V,le])=>{if((V==null?void 0:V.length)>0){let Pe=[{...$t,selected:(le==null?void 0:le.value)===$t.value}];for(let{lang:Ge,isAuto:rt}of V)Zr[Ge]&&Pe.push({displayValue:rt?Ue("subtitles_auto",{language:Zr[Ge]}):Zr[Ge],value:Ge,selected:(le==null?void 0:le.value)===Ge,isAuto:rt});return Pe}else return[]}),en=Li([pt,Ii,Qt],([V,le,Pe])=>{if(le&&le.value!==$t.value)return _m(V,le,Pe)}),Ei=Li([en],([V])=>V!=null&&V.texts?V.texts:[]),pn=Ne(!0),_n=Li([qe,Gt,Ft,fn],([V,le,Pe,Ge])=>{var Mt;let rt=(Mt=V==null?void 0:V.end)!=null?Mt:0;if(!Ge)return rt/le;let zt=-Pe+Ge-le;return(rt-zt)/le}),tn=Tt(L.info.availableSources$),Qi=Li([tn],([V])=>Object.keys((V==null?void 0:V[an.VideoFormat.MPEG])||{}).length>0),Ni=()=>{var Pe,Ge,rt;let V=Object.keys(((Ge=(Pe=L.info.availableSources$)==null?void 0:Pe.getValue())==null?void 0:Ge[an.VideoFormat.MPEG])||{}),le=(0,ct.getHighestQuality)(V)||ct.VideoQuality.Q_144P;return(rt=ee.sources[an.VideoFormat.MPEG])==null?void 0:rt[le]},ei=()=>{var le;let V=Ni();V?cc(V,((le=ee==null?void 0:ee.meta)==null?void 0:le.title)||"video"):M({message:"There is no URL for download video"})},di=()=>{M({message:"toggle muted"});let V=L.info.muted$.getValue(),Ge=!(L.info.volume$.getValue()===0||V);Fi(Ge)},Mi=()=>{G.ui.settingsMenuVisible.set(!1)},Oi=V=>{G.ui.settingsMenuOpenedByKeyboard.set(!!V),G.ui.settingsMenuVisible.set(!0)},nn=V=>{tt(G.ui.settingsMenuVisible)?Mi():Oi(V)},Vi=(V,le=V,Pe=!1)=>{var St,zt,Mt;let Ge=!Pe,rt=L.info.muted$.getValue();M({message:`set volume, volume: ${V}, preferredVolume: ${le}, internalCall: ${Ge}`}),L.setVolume(V),Q.setVolume(V),Ge&&((St=a==null?void 0:a.onVolumeChange)==null||St.call(a,V)),Es(le),rt?(L.setMuted(!1),Ge&&((zt=a==null?void 0:a.onUnmute)==null||zt.call(a)),ir(!1)):!rt&&V===0&&(L.setMuted(!0),Ge&&((Mt=a==null?void 0:a.onMute)==null||Mt.call(a)),ir(!0))},Fi=(V,le=!1)=>{var rt,St,zt,Mt;let Pe=!le,Ge=L.info.volume$.getValue();if(M({message:`set muted, currentVolume: ${Ge}, mute: ${V}, internalCall: ${Pe}`}),L.setMuted(V),Q.setVolume(V?0:Ge),ir(V),Pe&&(V?(rt=a==null?void 0:a.onMute)==null||rt.call(a):(St=a==null?void 0:a.onUnmute)==null||St.call(a)),Ge===0){let qi=(zt=tr())!=null?zt:H.volumeDefault;qi===0&&(qi=H.volumeMinRestore,Es(qi)),L.setVolume(qi),Q.setVolume(qi),Pe&&((Mt=a==null?void 0:a.onVolumeChange)==null||Mt.call(a,qi))}},Hi=Ne(!1),Ze=V=>{Hi.set(V),L.setLooped(V)};Ze(q);let Yi=()=>{L.prepare()},Yt=()=>{var le,Pe;if((0,ct.assertNonNullable)(G),!tt(G.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(M({message:"toggle play"}),tt(G.playerPhase)==="ads"){Q.togglePlay();return}if(L.info.playbackState$.getValue()!==an.PlaybackState.PLAYING){if(L.info.isEnded$.getValue()){if(M({message:"toggle play, video ended, seek to 0"}),at.next(),ut.next(oo.SeekAction.REWIND),S){v==null||v();return}L.seekTime(0)}M({message:"toggle play, call player.play"}),L.play(),(le=a==null?void 0:a.onPlay)==null||le.call(a)}else M({message:"toggle play, call player.pause"}),L.pause(),(Pe=a==null?void 0:a.onPause)==null||Pe.call(a)}},Ke=V=>{M({message:`set quality, quality: ${V}`}),L.setAutoQuality(V==="auto"),V!=="auto"?(gc(e,V),ii.set(V),L.setQuality(V)):Ms()},on=V=>{M({message:`set trafficSavingEnabled, value: ${V}`}),L.setAutoQualityLimits({max:V?H.trafficSavingLimit:void 0}),kc(V)},zi=V=>{L.setPlaybackRate(V),H.features.saveRate&&re&&!L.info.isLive$.getValue()&&Sc(V)},Zi=()=>{let V=tt(Ti),le=V.findIndex(({selected:Ge})=>Ge);if(le===V.length-1)return;let Pe=V[le+1];zi(Pe.value)},ln=()=>{let V=tt(Ti),le=V.findIndex(({selected:Ge})=>Ge);if(le===0)return;let Pe=V[le-1];zi(Pe.value)},Xi=V=>{V&&V.value!==$t.value&&ft.next(V.isAuto?V.value+"_auto":V.value),Ii.set(V)},Cn=()=>{let V=tt(ni),le=tt(Ii),Pe=tt(Be);if((le==null?void 0:le.value)===$t.value){let Ge=V.filter(rt=>rt.value!==$t.value).find(rt=>rt.value===Pe)||V[1];Xi(Ge!=null?Ge:{...$t})}else Xi({...$t,selected:!1})},oi=(V,le,Pe=!0)=>{if(M({message:`seek to time, time: ${V}`}),ut.next(le),L.info.isLive$.getValue()){let Ge=L.info.duration$.getValue(),rt=Math.min(0,Ge+V);L.seekTime(rt,Pe)}else{if(P!=null&&P.getValue())return;L.seekTime(ko(V),Pe)}},li=V=>{M({message:`seek to episode start time: ${V}`}),oi(V,oo.SeekAction.EPISODE,!0)},Ji=(V,le)=>{M({message:`seek to percent, percent: ${V}`});let Pe=Math.round(tt(Gt)*V);oi(Pe,le,!1)},mi=V=>{M({message:`seek external, time: ${V}`}),ut.next(oo.SeekAction.UNKNOWN),L.seekTime(L.info.isLive$.getValue()?-V:V)},se=V=>{var le,Pe;M({message:`set auto quality limitation. Max: ${(le=V.max)!=null?le:"none"}. Min: ${(Pe=V.min)!=null?Pe:"none"}`}),L.setAutoQualityLimits(V)},dt=V=>{M({message:`seek external to episode start time: ${V}`}),oi(V,oo.SeekAction.EPISODE,!0)},pi=V=>{M({message:`set playback rate to: ${V}`}),L.setPlaybackRate(V)},_i=Ne(void 0),ri=Ne(!1),Zt=V=>{M({message:`start scrubbing, progress: ${V}`}),ri.set(!0),Nn(V)},Nn=V=>{_i.set(V)},Vn,Sn,Kt=()=>{_i.set(void 0),ri.set(!1)},yn=()=>{clearTimeout(Sn),clearTimeout(Vn),Vn=window.setTimeout(()=>{Kt()},500),ke==null||ke.removeEventListener("seeked",yn)},Gn=V=>{M({message:`complete scrubbing, progress: ${V}`}),Ji(V,oo.SeekAction.SLIDER),tt(G.ui.isMobile)&&tt(G.state.currentFormat$)===an.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",yn),Sn=window.setTimeout(()=>{yn()},300)):Kt()},On=Li([pt,Gt,_i],([V,le,Pe],Ge)=>{Ge((0,ct.isNonNullable)(Pe)?Pe*le:V)}),Fn=Ne({width:0,height:0}),An=Li([Fn],([{width:V}],le)=>{let Pe=Dd(V);le(Pe)}),rn=Ne(!1),Hn=Li([An,rn],([V,le])=>le?A.filter(Pe=>!Pe.hideOnMobile):A.filter(Pe=>{var Ge;return!((Ge=Pe.hideOnDesktopGridTypes)!=null&&Ge.includes(V))})),zn=Li([rn,et],([V,le],Pe)=>{Pe(V&&le)}),ne=()=>{ut.next(oo.SeekAction.LIVE),M({message:"switch to active live"}),L.seekTime(0),L.info.playbackState$.getValue()!==an.PlaybackState.PLAYING&&G.actions.internal.togglePlay()},Ct=()=>Q.skip(),Pn=(V=!0)=>{(0,ct.assertNonNullable)(G),M({message:`switch from ads to video, callPlay: ${V}`}),Xe.set("video"),V&&L.play()},hn=()=>{(0,ct.assertNonNullable)(G),M({message:"switch from video to ads"}),G.actions.internal.pause(),we(),Xe.set("ads")},Tn=V=>{(0,ct.assertNonNullable)(G);let le=V?"waitingLive":"thumb";Xe.set(le)},wn=V=>{(0,ct.assertNonNullable)(G);let le=V?"waitingRecord":"thumb";Xe.set(le)},lo=()=>((0,ct.assertNonNullable)(G),uc(L,ee,G)),ro=()=>((0,ct.assertNonNullable)(G),fc(L,ee,G)),yo=()=>ke,so=()=>{M({message:"toggle chromecast"}),L.toggleChromecast()},gn=V=>{var Pe;(0,ct.assertNonNullable)(G);let le=!V;if(tt(G.playerPhase)==="ads"){M({message:`pause ads, internalCall: ${le}`}),Q.pause();return}M({message:`pause video, internalCall: ${le}`}),le&&((Pe=a==null?void 0:a.onPause)==null||Pe.call(a)),L.pause()},ie=V=>{var Pe;(0,ct.assertNonNullable)(G);let le=!V;if(tt(G.playerPhase)==="ads"){M({message:`play ads, internalCall: ${le}`}),Q.play();return}M({message:`play video, internalCall: ${le}`}),le&&((Pe=a==null?void 0:a.onPlay)==null||Pe.call(a)),L.play()},ao=(V,le)=>{(0,ct.assertNonNullable)(G),M({message:`first start, show ads: ${V}, internalCall: ${!le}`}),V?Xe.set("ads"):(Xe.set("video"),le?L.play():G.actions.internal.togglePlay())},xn=()=>(M({message:"getting time codes"}),u),wo=()=>{let V=xn();if(!V||[0,1].includes(V.length))return;let le=L.info.position$.getValue();return V.find(Pe=>Pe.time>le)},$n=V=>{let le=V;le||(le=wo()),le&&(M({message:"seek to next episode"}),oi(le.time,oo.SeekAction.EPISODE,!0))},eo=()=>{let V=xn();if(!V||[0,1].includes(V.length))return;let le=L.info.position$.getValue(),Pe=V.findIndex(rt=>rt.time>le),Ge=Pe===-1?V.length-2:Pe-2;if(!(Ge<0))return V[Ge]},qo=V=>{let le=V;le||(le=eo()),le&&(M({message:"seek to prev episode"}),oi(le.time,oo.SeekAction.EPISODE,!0))},Uo=()=>(M({message:"getting preview thumbs data"}),c),vl=async()=>{E!=null&&E.isActive()?await(E==null?void 0:E.remove()):await(E==null?void 0:E.request())},Ko=(V=-90)=>{be.update(le=>le+V)},Qn=Ne([]);w==null||w.subscribe(V=>{let le=[];for(let Pe=0;Pe<V.length;Pe++){let{range:[Ge,rt],subjects:St}=V[Pe];Pe===0&&Ge!==0&&le.push({time:0,text:"",interactive:!1,completed:!0}),le.push({time:Ge/1e3,text:"",interactive:!0,completed:!St.length}),rt!==1/0&&le.push({time:rt/1e3,text:"",interactive:!1,completed:!0})}Qn.set(le)});let jo=Ne(!1);P==null||P.subscribe(V=>{V&&tt(ri)&&Kt()});let ko=V=>{if(!S)return V;let le=tt(Qn),Pe=tt(Gt),rt=tt(Ft)/Pe,St=le.find(zt=>zt.interactive&&!zt.completed&&zt.time>rt);return typeof(St==null?void 0:St.time)=="number"?Math.min(V,St.time-.05):V},Co=()=>{G.ui.episodes.panelOpened$.set(!1)},Wo=()=>{clearTimeout(Sn),clearTimeout(Vn),mt.unsubscribe(),It.unsubscribe(),L.destroy(),Q.destroy(),K==null||K.destroy(),J==null||J.destroy(),xe.unsubscribe(),ht==null||ht.disconnect(),ht=null},G={interfaceLanguage$:Be,initVideo:ue,videoId:e,isClip:t,playerPhase:Te,vsid:$e,state:{positionExact$:pt,positionWithScrubbing$:On,duration$:Gt,playbackState$:Re,isPlaying$:ui,isLoaderVisible:Ci,bufferedProgress$:_n,isLive$:Ot,canChangePlaybackSpeed$:Jt,isActiveLive$:fi,isOldestAvailableLive$:vt,isRewindableLive$:kt,isEnded$:yt,muted$:bi,volume$:gi,trafficSavingEnabled$:Bi,autoQualityLimitingAvailable$:ti,currentQuality$:xt,isAutoQualityEnabled$:dn,availableQualities$:Pi,currentPlaybackRate$:Gi,availablePlaybackRates$:Ti,currentSubtitle$:Ii,availableSubtitlesList$:ni,currentSubtitleCaptions$:Ei,isAutoSubtitleCaptionVisible$:pn,chromecastState$:yi,chromecastDeviceName$:ji,chromecastConnected$:Di,currentFormat$:si,throughputEstimation$:Ri,videoBitrate$:wi,videoSize$:Wi,errorLog$:Oe,crashed$:et,isAudioAvailable$:ai,isAudioDisabled:!!r,canDownload:H.features.download&&!!l,availableSources$:tn,hasMpegSources$:Qi,isInteractive:S,showInteractiveGraph:H.features.interactiveGraph,showSeekToInteractive:H.features.seekToInteractive,showPlayPrevChapter:H.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:H.features.interactiveTimeIndicator&&!!tt(Qn).length,interactiveEpisodes$:Qn,isInteractiveTime$:P?Tt(P):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:jo,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,looped$:Hi,isFirstBytes$:Ne(!1)},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),interactiveTimeIndicator:Ne(void 0),additionalButtons:A.length?A.reduce(V=>[...V,Ne(void 0)],[]):[],disabledControls$:Z},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:We,rotateAlpha:be,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:Fn,isMobile:rn,mobileNotReportControlHidden$:zn,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),settingsMenuVisible:Ne(!1),settingsMenuOpenedByKeyboard:Ne(!1),scrubbingInProgress:ri,is3DVideo:Ne(!1),isPictureInPictureActive$:bt,pictureInPictureType$:Bn(X),clientInfo$:Bn(je),currentGridType$:An,additionalButtons$:Hn,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1)},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:E,annotationsApi:te},actions:{internal:{preload:Yi,firstStart:V=>ao(V,!1),pause:()=>gn(!1),togglePlay:Yt,toggleMuted:di,toggleSettingsMenu:nn,openSettingsMenu:Oi,closeSettingsMenu:Mi,setVolume:Vi,setQuality:Ke,setTrafficSavingEnabled:V=>on(V),setPlaybackRate:zi,incrementPlaybackRate:Zi,decrementPlaybackRate:ln,setSubtitle:Xi,toggleSubtitle:Cn,togglePictureInPicture:vl,startScrubbing:Zt,progressScrubbing:Nn,completeScrubbing:Gn,toggleChromecast:so,switchToActiveLive:ne,switchFromAdsToVideo:Pn,switchFromVideoToAds:hn,skipAd:Ct,setWaitingLive:Tn,setWaitingRecord:wn,getDebugTextData:lo,getDebugPanelData:ro,getVideoElement:yo,seekTime:(V,le,Pe)=>oi(V,le,Pe),clearDelayedBufferingCheckTimeout:Si,seekEpisodeStartTime:li,seekToPercent:Ji,getNextEpisode:wo,seekToNextEpisode:$n,getPrevEpisode:eo,seekToPrevEpisode:qo,startLogging:Et,stopLogging:ze,startCameraManualRotation:qt,stopCameraManualRotation:Nt,moveCameraFocusPX:Ut,holdCamera:Xt,releaseCamera:me,getVideoEpisodes:xn,getPreviewThumbsData:Uo,downloadVideo:ei,addLanguage:As,setLanguage:ye,nextMovie:Je,videoRotate:Ko,correctSeekTimeToInteractive:ko,replayInteractive:v,setLooped:Ze},external:{firstStart:V=>ao(V,!0),play:()=>ie(!0),pause:()=>gn(!0),seekTime:V=>mi(V),seekEpisodeStartTime:V=>dt(V),setPlaybackRate:V=>pi(V),setAutoQualityLimits:V=>se(V),setMuted:V=>Fi(V,!0),setVolume:V=>Vi(V,V,!0),returnFocusToEpisodes:Co}},callbacks:a,setUiCallbacks:V=>{Qe={...V}},getAdmanWrapper:()=>Q,getLogger:()=>x,destroy:Wo};return G};var xr=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let c=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-l.left):0,right:m?Math.round(c.right-l.left):0,top:m?Math.round(c.top-l.top):0,bottom:m?Math.round(c.bottom-l.top):0,isDisplayed:m})}};var $r=async(i,e,t)=>{await Kn(),e&&t&&(t.focus(),i.set(!1))};function Iv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ev(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Vu=class extends j{constructor(e){super(),W(this,e,Ev,Iv,U,{})}},vm=Vu;function Mv(i){let e,t;return e=new vm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vv(i){let e,t,n;function o(l){i[8](l)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[Mv]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Av(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=it(),a=l.ui.contextMenu.visible$;F(i,a,P=>t(3,n=P));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,y=P=>{let v=nl(P),g=Xc(h);c.set(g),s.set(v),a.set(!n)},b=()=>{u.set(!0)},S=()=>{u.set(!1)};function w(P){h=P,t(2,h)}return i.$$set=P=>{"disabled"in P&&t(0,o=P.disabled),"ariaLabel"in P&&t(1,r=P.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&m.set(h)},[o,r,h,n,a,y,b,S,w]}var Au=class extends j{constructor(e){super(),W(this,e,Av,Vv,U,{disabled:0,ariaLabel:1})}},ym=Au;function Lv(i){Se(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 Bv(i){let e,t;return e=new Mr({props:{completed:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rv(i){let e,t,n,o,r,l,a,s,u,c;function m(y){i[22](y)}let h={tooltipContent:Y("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[Bv]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Dt({props:h}),_e.push(()=>He(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),D(t.$$.fragment),o=O(),r=T("div"),l=O(),a=T("div"),f(r,"class","ref-block svelte-17imlp9"),z(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),z(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),z(e,"mobile",i[2]),z(e,"fullscreen",i[6]),z(e,"invisible",i[1])},m(y,b){C(y,e,b),B(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(c=[de(e,"mousemove",st(i[21])),de(e,"mouseleave",i[15])],u=!0)},p(y,b){let S={};b[0]&32&&(S.tooltipActive=y[5]),b[1]&1&&(S.$$scope={dirty:b,ctx:y}),!n&&b[0]&1&&(n=!0,S.ref=y[0],Fe(()=>n=!1)),t.$set(S),(!s||b[0]&2)&&z(r,"hidden",y[1]),(!s||b[0]&16)&&z(a,"paused",y[4]),(!s||b[0]&4)&&z(e,"mobile",y[2]),(!s||b[0]&64)&&z(e,"fullscreen",y[6]),(!s||b[0]&2)&&z(e,"invisible",y[1])},i(y){s||(d(t.$$.fragment,y),s=!0)},o(y){_(t.$$.fragment,y),s=!1},d(y){y&&k(e),R(t),i[23](null),i[24](null),u=!1,nt(c)}}}function Dv(i,e,t){var ee;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=it(),h=Rn(),{interactiveControlsOpacity$:y}=h;F(i,y,ke=>t(18,o=ke));let b=m.ui.isMobile;F(i,b,ke=>t(2,a=ke));let S=m.ui.isFullscreen;F(i,S,ke=>t(6,s=ke));let w=m.state.isInteractiveTime$;F(i,w,ke=>t(19,r=ke));let P=h.showInteractiveTimeIndicatorTooltip$;F(i,P,ke=>t(17,n=ke));let v=m.ui.controlsVisible;F(i,v,ke=>t(20,l=ke));let g=(ee=m.callbacks)==null?void 0:ee.onInteractiveTimeIndicatorClick,I,A,q,K=()=>{t(4,q=!0)},re=()=>{ae(),c==null||c.addEventListener("animationiteration",K,{once:!0})},ae=()=>{t(4,q=!1),c==null||c.removeEventListener("animationiteration",K)},H=ke=>{P.set(ke)},L,x=()=>{A||(P.set(!0),g==null||g())};Un(()=>{P.clearTimeout(),ae()});let Q=()=>{P.set(!1)};function J(ke){In.call(this,i,ke)}function E(ke){u=ke,t(0,u)}function te(ke){_e[ke?"unshift":"push"](()=>{u=ke,t(0,u)})}function M(ke){_e[ke?"unshift":"push"](()=>{c=ke,t(3,c)})}return i.$$set=ke=>{"ref"in ke&&t(0,u=ke.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,I=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,A=!r||!!o||I);if(i.$$.dirty[0]&2)e:t(4,q=A);if(i.$$.dirty[0]&131074)e:t(5,L=n&&!A);if(i.$$.dirty[0]&131072)e:n?re():ae()},[u,A,a,c,q,L,s,y,b,S,w,P,v,H,x,Q,I,n,o,r,l,J,E,te,M]}var Lu=class extends j{constructor(e){super(),W(this,e,Dv,Rv,U,{ref:0},Lv,[-1,-1])}},es=Lu;function Ov(i){Se(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 wm(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 km(i){let e,t,n;function o(l){i[173](l)}let r={disabled:!i[9],tooltipContent:Y("tooltip_previous"),$$slots:{default:[Fv]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Fv(i){let e,t;return e=new fl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Cm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:i[74],tooltipContent:Y("tooltip_restart"),$$slots:{default:[Hv]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Hv(i){let e,t;return e=new Dl({props:{click:i[128],disabled:i[74]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sm(i){let e,t,n;function o(l){i[176](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[zv]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function zv(i){let e,t,n;function o(l){i[175](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Rl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Pm(i){let e,t,n;function o(l){i[177](l)}let r={disabled:!i[8],tooltipContent:Y("tooltip_next"),$$slots:{default:[qv]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function qv(i){let e,t;return e=new fl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Uv(i){let e,t,n,o,r=i[121]&&Kv(i),l=i[120]&&Wv(i),a=i[119]&&Qv(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=lt()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function Kv(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:Y("tooltip_interactive_go_back"),disabledTooltipContent:Y(i[124]),$$slots:{default:[jv]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function jv(i){let e,t;return e=new jr({props:{disabled:i[73],click:i[17]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wv(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:Y("tooltip_interactive_seek"),disabledTooltipContent:Y(i[78]),$$slots:{default:[Gv]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=Y(l[78])),a[0]&32768|a[2]&16384|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Gv(i){let e,t;return e=new qr({props:{disabled:i[76],click:i[15]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qv(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[Yv]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Yv(i){let e,t;return e=new Ur({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tm(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[50],$$slots:{default:[Zv]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Zv(i){let e,t;return e=new Nr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Im(i){let e,t,n;function o(l){i[182](l)}let r={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Ir({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Em(i){let e,t;return e=new zr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xv(i){let e,t,n=i[20]&&Em(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=Em(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function Jv(i){var n;let e,t;return e=new Wr({props:{iconUrl:i[209],ariaLabel:(n=i[210])!=null?n:i[213],testId:i[211],onClick:i[212]}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[209]),r[0]&268435456&&(l.ariaLabel=(a=o[210])!=null?a:o[213]),r[0]&268435456&&(l.testId=o[211]),r[0]&268435456&&(l.onClick=o[212]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Mm(i){let e,t;return e=new Dt({props:{tooltipContent:i[213],width:40,$$slots:{default:[Jv]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vm(i){let e,t,n;function o(l){i[185](l)}let r={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[xv]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function xv(i){let e,t;return e=new Br({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $v(i){let e,t;return e=new Od({props:{click:i[127]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Am(i){let e,t,n;function o(l){i[187](l)}let r={tooltipContent:i[52],$$slots:{default:[e3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function e3(i){let e,t;return e=new yd({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Lm(i){var a;let e,t,n,o;function r(s){i[188](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Tr({props:l}),_e.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","settings-menu svelte-st0uzk")},m(s,u){C(s,e,u),B(t,e,null),o=!0},p(s,u){var m;let c={};u[0]&1024&&(c.supportLink=s[10]),u[1]&32768&&(c.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(c.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,c.ref=s[24],Fe(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),R(t)}}}function Bm(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:Y("tooltip_settings_off"),$$slots:{default:[t3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:Y("tooltip_settings_off")),a[0]&33554432|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function t3(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Ll({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i3(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[n3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function n3(i){let e,t;return e=new ym({props:{ariaLabel:i[49]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rm(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[o3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function o3(i){let e,t;return e=new Ar({props:{click:i[13],isFullscreen:i[30]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Dm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[l3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function l3(i){let e,t;return e=new Rr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function r3(i){let e,t,n;function o(l){i[196](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new es({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J;t=new Hr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let E=i[38]&&km(i),te=i[35]&&Cm(i),M=i[36]&&Sm(i),ee=i[37]&&Pm(i),ke=i[117]&&Uv(i),Qe=!i[4]&&i[33]&&Tm(i),je=i[19]&&Im(i);function $e(ue){i[183](ue)}let We={className:"w-max",disabled:!i[20],tooltipContent:Y("tooltip_episodes"),$$slots:{default:[Xv]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(We.ref=i[23].episodes),y=new Dt({props:We}),_e.push(()=>He(y,"ref",$e));let ve=Pt(i[28]),X=[];for(let ue=0;ue<ve.length;ue+=1)X[ue]=Mm(wm(i,ve,ue));let be=ue=>_(X[ue],1,1,()=>{X[ue]=null}),Oe=i[43]&&!i[4]&&Vm(i);function xe(ue){i[186](ue)}let et={$$slots:{default:[$v]},$$scope:{ctx:i}};i[23].volume!==void 0&&(et.ref=i[23].volume),I=new Dt({props:et}),_e.push(()=>He(I,"ref",xe));let ye=i[40]&&Am(i),Be=!i[83]&&!i[4]&&Lm(i),Ue=i[42]&&!i[4]&&Bm(i),Xe=i[84].features.contextMenuButton&&i3(i),Te=i[44]&&Rm(i),Z=i[39]&&Dm(i),Ce=i[122]&&r3(i);return{c(){e=T("div"),D(t.$$.fragment),n=O(),o=T("div"),r=T("div"),E&&E.c(),l=O(),te&&te.c(),a=O(),M&&M.c(),s=O(),ee&&ee.c(),u=O(),ke&&ke.c(),c=O(),Qe&&Qe.c(),m=O(),je&&je.c(),h=O(),D(y.$$.fragment),w=O(),P=T("div");for(let ue=0;ue<X.length;ue+=1)X[ue].c();v=O(),Oe&&Oe.c(),g=O(),D(I.$$.fragment),q=O(),ye&&ye.c(),K=O(),Be&&Be.c(),re=O(),Ue&&Ue.c(),ae=O(),Xe&&Xe.c(),H=O(),Te&&Te.c(),L=O(),Z&&Z.c(),x=O(),Ce&&Ce.c(),Q=lt(),f(r,"class","controls-left svelte-st0uzk"),jn(()=>i[184].call(r)),f(P,"class","controls-right svelte-st0uzk"),f(o,"class","controls svelte-st0uzk"),f(e,"class","wrapper-bottom svelte-st0uzk"),z(e,"hidden",i[1]),z(e,"controls-hidden",!i[3]),z(e,"no-smooth",i[2])},m(ue,Ie){C(ue,e,Ie),B(t,e,null),p(e,n),p(e,o),p(o,r),E&&E.m(r,null),p(r,l),te&&te.m(r,null),p(r,a),M&&M.m(r,null),p(r,s),ee&&ee.m(r,null),p(r,u),ke&&ke.m(r,null),p(r,c),Qe&&Qe.m(r,null),p(r,m),je&&je.m(r,null),p(r,h),B(y,r,null),S=Go(r,i[184].bind(r)),p(o,w),p(o,P);for(let Je=0;Je<X.length;Je+=1)X[Je]&&X[Je].m(P,null);p(P,v),Oe&&Oe.m(P,null),p(P,g),B(I,P,null),p(P,q),ye&&ye.m(P,null),p(P,K),Be&&Be.m(P,null),p(P,re),Ue&&Ue.m(P,null),p(P,ae),Xe&&Xe.m(P,null),p(P,H),Te&&Te.m(P,null),p(P,L),Z&&Z.m(P,null),i[194](o),i[195](e),C(ue,x,Ie),Ce&&Ce.m(ue,Ie),C(ue,Q,Ie),J=!0},p(ue,Ie){let Je={};Ie[1]&16384&&(Je.isHidden=!ue[45]),Ie[0]&16&&(Je.isAds=ue[4]),Ie[0]&32&&(Je.canRewindLive=ue[5]),Ie[1]&2&&(Je.isRewindableLive=ue[32]),t.$set(Je),ue[38]?E?(E.p(ue,Ie),Ie[1]&128&&d(E,1)):(E=km(ue),E.c(),d(E,1),E.m(r,l)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),ue[35]?te?(te.p(ue,Ie),Ie[1]&16&&d(te,1)):(te=Cm(ue),te.c(),d(te,1),te.m(r,a)):te&&(fe(),_(te,1,1,()=>{te=null}),ce()),ue[36]?M?(M.p(ue,Ie),Ie[1]&32&&d(M,1)):(M=Sm(ue),M.c(),d(M,1),M.m(r,s)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),ue[37]?ee?(ee.p(ue,Ie),Ie[1]&64&&d(ee,1)):(ee=Pm(ue),ee.c(),d(ee,1),ee.m(r,u)):ee&&(fe(),_(ee,1,1,()=>{ee=null}),ce()),ue[117]&&ke.p(ue,Ie),!ue[4]&&ue[33]?Qe?(Qe.p(ue,Ie),Ie[0]&16|Ie[1]&4&&d(Qe,1)):(Qe=Tm(ue),Qe.c(),d(Qe,1),Qe.m(r,m)):Qe&&(fe(),_(Qe,1,1,()=>{Qe=null}),ce()),ue[19]?je?(je.p(ue,Ie),Ie[0]&524288&&d(je,1)):(je=Im(ue),je.c(),d(je,1),je.m(r,h)):je&&(fe(),_(je,1,1,()=>{je=null}),ce());let at={};if(Ie[0]&1048576&&(at.disabled=!ue[20]),Ie[0]&1048576|Ie[2]&1310720|Ie[6]&1073741824&&(at.$$scope={dirty:Ie,ctx:ue}),!b&&Ie[0]&8388608&&(b=!0,at.ref=ue[23].episodes,Fe(()=>b=!1)),y.$set(at),Ie[0]&268435456){ve=Pt(ue[28]);let ft;for(ft=0;ft<ve.length;ft+=1){let ht=wm(ue,ve,ft);X[ft]?(X[ft].p(ht,Ie),d(X[ft],1)):(X[ft]=Mm(ht),X[ft].c(),d(X[ft],1),X[ft].m(P,v))}for(fe(),ft=ve.length;ft<X.length;ft+=1)be(ft);ce()}ue[43]&&!ue[4]?Oe?(Oe.p(ue,Ie),Ie[0]&16|Ie[1]&4096&&d(Oe,1)):(Oe=Vm(ue),Oe.c(),d(Oe,1),Oe.m(P,g)):Oe&&(fe(),_(Oe,1,1,()=>{Oe=null}),ce());let ut={};Ie[6]&1073741824&&(ut.$$scope={dirty:Ie,ctx:ue}),!A&&Ie[0]&8388608&&(A=!0,ut.ref=ue[23].volume,Fe(()=>A=!1)),I.$set(ut),ue[40]?ye?(ye.p(ue,Ie),Ie[1]&512&&d(ye,1)):(ye=Am(ue),ye.c(),d(ye,1),ye.m(P,K)):ye&&(fe(),_(ye,1,1,()=>{ye=null}),ce()),!ue[83]&&!ue[4]?Be?(Be.p(ue,Ie),Ie[0]&16|Ie[2]&2097152&&d(Be,1)):(Be=Lm(ue),Be.c(),d(Be,1),Be.m(P,re)):Be&&(fe(),_(Be,1,1,()=>{Be=null}),ce()),ue[42]&&!ue[4]?Ue?(Ue.p(ue,Ie),Ie[0]&16|Ie[1]&2048&&d(Ue,1)):(Ue=Bm(ue),Ue.c(),d(Ue,1),Ue.m(P,ae)):Ue&&(fe(),_(Ue,1,1,()=>{Ue=null}),ce()),ue[84].features.contextMenuButton&&Xe.p(ue,Ie),ue[44]?Te?(Te.p(ue,Ie),Ie[1]&8192&&d(Te,1)):(Te=Rm(ue),Te.c(),d(Te,1),Te.m(P,L)):Te&&(fe(),_(Te,1,1,()=>{Te=null}),ce()),ue[39]?Z?(Z.p(ue,Ie),Ie[1]&256&&d(Z,1)):(Z=Dm(ue),Z.c(),d(Z,1),Z.m(P,null)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),ce()),(!J||Ie[0]&2)&&z(e,"hidden",ue[1]),(!J||Ie[0]&8)&&z(e,"controls-hidden",!ue[3]),(!J||Ie[0]&4)&&z(e,"no-smooth",ue[2]),ue[122]&&Ce.p(ue,Ie)},i(ue){if(!J){d(t.$$.fragment,ue),d(E),d(te),d(M),d(ee),d(ke),d(Qe),d(je),d(y.$$.fragment,ue);for(let Ie=0;Ie<ve.length;Ie+=1)d(X[Ie]);d(Oe),d(I.$$.fragment,ue),d(ye),d(Be),d(Ue),d(Xe),d(Te),d(Z),d(Ce),J=!0}},o(ue){_(t.$$.fragment,ue),_(E),_(te),_(M),_(ee),_(ke),_(Qe),_(je),_(y.$$.fragment,ue),X=X.filter(Boolean);for(let Ie=0;Ie<X.length;Ie+=1)_(X[Ie]);_(Oe),_(I.$$.fragment,ue),_(ye),_(Be),_(Ue),_(Xe),_(Te),_(Z),_(Ce),J=!1},d(ue){ue&&(k(e),k(x),k(Q)),R(t),E&&E.d(),te&&te.d(),M&&M.d(),ee&&ee.d(),ke&&ke.d(),Qe&&Qe.d(),je&&je.d(),R(y),S(),Ki(X,ue),Oe&&Oe.d(),R(I),ye&&ye.d(),Be&&Be.d(),Ue&&Ue.d(),Xe&&Xe.d(),Te&&Te.d(),Z&&Z.d(),i[194](null),i[195](null),Ce&&Ce.d(ue)}}}function a3(i,e,t){var Af,Lf;let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke=pe,Qe=()=>(ke(),ke=jt(ae,$=>t(144,ee=$)),ae),je,$e=pe,We=()=>($e(),$e=jt(re,$=>t(145,je=$)),re),ve,X=pe,be=()=>(X(),X=jt(K,$=>t(146,ve=$)),K),Oe,xe=pe,et=()=>(xe(),xe=jt(q,$=>t(147,Oe=$)),q),ye,Be=pe,Ue=()=>(Be(),Be=jt(A,$=>t(148,ye=$)),A),Xe,Te=pe,Z=()=>(Te(),Te=jt(I,$=>t(149,Xe=$)),I),Ce,ue=pe,Ie=()=>(ue(),ue=jt(g,$=>t(150,Ce=$)),g),Je,at=pe,ut=()=>(at(),at=jt(v,$=>t(151,Je=$)),v),ft,ht=pe,gt=()=>(ht(),ht=jt(P,$=>t(152,ft=$)),P),we,mt=pe,It=()=>(mt(),mt=jt(w,$=>t(153,we=$)),w),Et,ze=pe,qt=()=>(ze(),ze=jt(S,$=>t(154,Et=$)),S),Nt,Ut=pe,Xt=()=>(Ut(),Ut=jt(b,$=>t(155,Nt=$)),b),me,pt=pe,bt=()=>(pt(),pt=jt(y,$=>t(156,me=$)),y),Re,qe=pe,yt=()=>(qe(),qe=jt(h,$=>t(157,Re=$)),h),Ot,Jt=pe,fn=()=>(Jt(),Jt=jt(m,$=>t(158,Ot=$)),m),gi,bi=pe,Bi=()=>(bi(),bi=jt(c,$=>t(159,gi=$)),c),ti,vi=pe,cn=()=>(vi(),vi=jt(u,$=>t(160,ti=$)),u),yi,ji,si,Ri,wi,Wi,ki,ai,Vt,At,Ci,Si,Gt,ui,fi,vt,Ft,kt,Di,ii,dn,mn,xt;i.$$.on_destroy.push(()=>ke()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>Be()),i.$$.on_destroy.push(()=>Te()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>at()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>mt()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>Ut()),i.$$.on_destroy.push(()=>pt()),i.$$.on_destroy.push(()=>qe()),i.$$.on_destroy.push(()=>Jt()),i.$$.on_destroy.push(()=>bi()),i.$$.on_destroy.push(()=>vi());let{bottomHidden:Pi}=e,{bottomNoSmooth:Gi}=e,{showControls:Ti}=e,{controlsElementRef:ci=void 0}=e,{isAds:Qt=!1}=e,{canRewindLive:$t}=e,{logoClickable:Ii}=e,{logoHidden:ni}=e,{logoTargetUrl:en=""}=e,{showNextPrevButtons:Ei}=e,{nextButtonActive:pn}=e,{prevButtonActive:_n}=e,{isOneVideoPlaylist:tn=!1}=e,{supportLink:Qi}=e,{customFullscreenSupported:Ni=!0}=e,{playNextVideo:ei}=e,{playPrevVideo:di}=e,{repeatPlaylist:Mi}=e,{toggleFullscreen:Oi}=e,{returnFocus:nn}=e,{seekToInteractive:Vi}=e,{toggleGraph:Fi}=e,{playPrevChapter:Hi}=e,Ze=it(),Yi=Rn(),Yt=Ht(),Ke=Ze.actions.internal.toggleMuted,on=Ze.actions.internal.togglePlay,zi=Ze.actions.internal.pause,Zi=Ze.actions.internal.toggleSubtitle,ln=(Af=Ze.callbacks)==null?void 0:Af.onAudioDoesNotExistHint,Xi=(Lf=Ze.callbacks)==null?void 0:Lf.onAudioDisabledHint,Cn=Ze.state.duration$;F(i,Cn,$=>t(82,mn=$));let oi=Ze.state.positionWithScrubbing$;F(i,oi,$=>t(80,ii=$));let li=Ze.state.playbackState$;F(i,li,$=>t(161,si=$));let Ji=Ze.state.chromecastConnected$;F(i,Ji,$=>t(83,xt=$));let mi=Ze.state.isAudioAvailable$;F(i,mi,$=>t(197,H=$));let se=Ze.state.isAudioDisabled,dt=Ze.state.isEnded$;F(i,dt,$=>t(169,ui=$));let pi=Ze.state.isLive$;F(i,pi,$=>t(33,ai=$));let _i=Ze.state.isActiveLive$;F(i,_i,$=>t(163,Wi=$));let ri=Ze.state.isRewindableLive$;F(i,ri,$=>t(32,ki=$));let Zt=Ze.ui.isPictureInPictureActive$;F(i,Zt,$=>t(165,At=$));let Nn=Ze.ui.pictureInPictureType$;F(i,Nn,$=>t(164,Vt=$));let Vn=Ze.ui.settingsMenuVisible;F(i,Vn,$=>t(27,Q=$));let Sn=Ze.ui.settingsMenuOpenedByKeyboard;F(i,Sn,$=>t(140,x=$));let Kt=Ze.ui.controls,yn=Ze.actions.internal.getVideoEpisodes(),Gn=Ze.state.chromecastState$;F(i,Gn,$=>t(29,yi=$));let On=Ze.state.availableSubtitlesList$;F(i,On,$=>t(168,Gt=$));let Fn=Ze.state.currentSubtitle$;F(i,Fn,$=>t(170,fi=$));let An=Kt.disabledControls$;F(i,An,$=>t(172,Ft=$));let rn=Ze.ui.contextMenu.visible$;F(i,rn,$=>t(162,Ri=$));let Hn=Ze.ui.contextMenu.showContextMenuBtn$;F(i,Hn,$=>t(166,Ci=$));let zn=Ze.ui.contextMenu.openedByBtnKeyboard$;F(i,zn,$=>t(167,Si=$));let ne=Ze.ui.startedByKeyboard$;F(i,ne,$=>t(139,L=$));let Ct=Ze.ads.duration;F(i,Ct,$=>t(81,dn=$));let Pn=Ze.ads.position;F(i,Pn,$=>t(79,Di=$));let hn=Ze.ads.playbackState;F(i,hn,$=>t(171,vt=$));let Tn=Ze.ui.isFullscreen;F(i,Tn,$=>t(30,ji=$));let wn=Ze.ui.playerSize;F(i,wn,$=>t(142,E=$));let lo=Ze.ui.currentGridType$;F(i,lo,$=>t(143,te=$));let ro=Ze.ui.additionalButtons$;F(i,ro,$=>t(28,M=$));let yo=Ze.actions.internal.getVideoElement,so=Ze.actions.internal.replayInteractive,gn=Ze.state.isInteractive,ie=Ze.state.isInteractiveTime$;F(i,ie,$=>t(141,J=$));let ao=Ze.state.showInteractiveGraph,xn=Ze.state.showSeekToInteractive,wo=Ze.state.showPlayPrevChapter,$n=Ze.state.showInteractiveTimeIndicator,eo=Ze.state.graphIsOpened$;F(i,eo,$=>t(31,wi=$));let qo=Ze.state.playPrevChapterDisabledTooltip,Uo=Yi.seekToInteractiveDisabledTooltip$;F(i,Uo,$=>t(78,kt=$));let vl=()=>Ze.actions.internal.toggleChromecast(),Ko,Qn,jo,ko,Co,Wo,G,wt,sn,xi,Ln,V,le,Pe,Ge,rt,St,zt,Mt,qi,So,yl="",ql=($,bs)=>{if(!$){t(50,yl=Y("tooltip_live"));return}bs===Ho.PlaybackState.PAUSED&&t(50,yl=Y("tooltip_play"))},Tf,If,Ef,Mf,Ul,ot={},qn,wl,gs,Vf,xp=(0,Nm.throttleFn)(xr,260,{leading:!1}),Kl,jl,Wl;function $p(){_o({isAudioDisabled:se,audioDisabledHintCallback:Xi,isAudioAvailable:H,audioIsNotExistHintCallback:ln})&&Ke()}let e_=gn?so:tn?on:Mi;function t_($){i.$$.not_equal(ot.prevButton,$)&&(ot.prevButton=$,t(23,ot))}function i_($){i.$$.not_equal(ot.replayButton,$)&&(ot.replayButton=$,t(23,ot))}function n_($){Wl=$,t(26,Wl)}function o_($){i.$$.not_equal(ot.playButton,$)&&(ot.playButton=$,t(23,ot))}function l_($){i.$$.not_equal(ot.nextButton,$)&&(ot.nextButton=$,t(23,ot))}function r_($){i.$$.not_equal(ot.playPrevChapterButton,$)&&(ot.playPrevChapterButton=$,t(23,ot))}function s_($){i.$$.not_equal(ot.seekToInteractiveButton,$)&&(ot.seekToInteractiveButton=$,t(23,ot))}function a_($){i.$$.not_equal(ot.interactiveGraphButton,$)&&(ot.interactiveGraphButton=$,t(23,ot))}function u_($){i.$$.not_equal(ot.liveButton,$)&&(ot.liveButton=$,t(23,ot))}function f_($){i.$$.not_equal(ot.time,$)&&(ot.time=$,t(23,ot))}function c_($){i.$$.not_equal(ot.episodes,$)&&(ot.episodes=$,t(23,ot))}function d_(){Ul=this.clientWidth,t(22,Ul)}function m_($){i.$$.not_equal(ot.vkLogo,$)&&(ot.vkLogo=$,t(23,ot))}function p_($){i.$$.not_equal(ot.volume,$)&&(ot.volume=$,t(23,ot))}function __($){i.$$.not_equal(ot.subtitles,$)&&(ot.subtitles=$,t(23,ot))}function h_($){Kl=$,t(24,Kl)}function g_($){jl=$,t(25,jl)}function b_($){i.$$.not_equal(ot.settings,$)&&(ot.settings=$,t(23,ot))}function v_($){i.$$.not_equal(ot.context,$)&&(ot.context=$,t(23,ot))}function y_($){i.$$.not_equal(ot.fullscreen,$)&&(ot.fullscreen=$,t(23,ot))}function w_($){i.$$.not_equal(ot.chromecast,$)&&(ot.chromecast=$,t(23,ot))}function k_($){_e[$?"unshift":"push"](()=>{St=$,t(46,St)})}function C_($){_e[$?"unshift":"push"](()=>{ci=$,t(0,ci)})}function S_($){i.$$.not_equal(ot.interactiveTimeIndicator,$)&&(ot.interactiveTimeIndicator=$,t(23,ot))}i.$$set=$=>{"bottomHidden"in $&&t(1,Pi=$.bottomHidden),"bottomNoSmooth"in $&&t(2,Gi=$.bottomNoSmooth),"showControls"in $&&t(3,Ti=$.showControls),"controlsElementRef"in $&&t(0,ci=$.controlsElementRef),"isAds"in $&&t(4,Qt=$.isAds),"canRewindLive"in $&&t(5,$t=$.canRewindLive),"logoClickable"in $&&t(6,Ii=$.logoClickable),"logoHidden"in $&&t(129,ni=$.logoHidden),"logoTargetUrl"in $&&t(7,en=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,Ei=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,pn=$.nextButtonActive),"prevButtonActive"in $&&t(9,_n=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,tn=$.isOneVideoPlaylist),"supportLink"in $&&t(10,Qi=$.supportLink),"customFullscreenSupported"in $&&t(132,Ni=$.customFullscreenSupported),"playNextVideo"in $&&t(11,ei=$.playNextVideo),"playPrevVideo"in $&&t(12,di=$.playPrevVideo),"repeatPlaylist"in $&&t(133,Mi=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,Oi=$.toggleFullscreen),"returnFocus"in $&&t(14,nn=$.returnFocus),"seekToInteractive"in $&&t(15,Vi=$.seekToInteractive),"toggleGraph"in $&&t(16,Fi=$.toggleGraph),"playPrevChapter"in $&&t(17,Hi=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Ft.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Ft.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=Ft.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=Ft.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Ft.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Ft.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Ko=Qt?vt==="playing":si===Ho.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,Qn=fi.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,jo=ui&&!Qt||gn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,ko=!ui||gn||Qt);if(i.$$.dirty[4]&524288)e:t(134,Co=Mn(te,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,Wo=Ei&&Mn(te,"m")&&!Qt&&pn);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,G=Ei&&Mn(te,"m")&&!Qt&&_n);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,wt=yi!==Ho.ChromecastState.NOT_AVAILABLE&&!(At&&Vt===1)&&Mn(te,"m")&&!gn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,sn=Gt.length>0&&Mn(te,"m"));if(i.$$.dirty[5]&6144)e:t(41,xi=Si||Ci);if(i.$$.dirty[4]&524288)e:t(42,Ln=Mn(te,"s"));if(i.$$.dirty[4]&32)e:t(43,V=!ni);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,le=Yt.features.fullscreen&&(ni||Mn(te,"s"))&&!(At&&Vt===1)&&(gn?Ni:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Pe=(!ai||Qt)&&!(Yt.features.interactiveHideTime&&gn));if(i.$$.dirty[4]&262144)e:t(45,Ge=E.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,rt=!Qt&&!ai&&!!(yn!=null&&yn.length)&&Co&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,zt=!ki||Wi);if(i.$$.dirty[5]&64)e:t(47,Mt=si===Ho.PlaybackState.PLAYING?Y("tooltip_pause"):Y("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,qi=wi?Y("tooltip_interactive_graph_on"):Y("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,So=Ri?Y("aria_label_context_menu_close"):Y("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:ql(zt,si);if(i.$$.dirty[0]&262144)e:t(52,If=Qn?Y("tooltip_subtitles_on"):Y("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Ef=ji?Y("tooltip_fullscreen_on"):Y("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Mf=yi===Ho.ChromecastState.CONNECTED?Y("tooltip_chromecast_on"):Y("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,qn={prevButton:ti?ti.right-ti.left:0,replayButton:gi?gi.right-gi.left:0,playButton:Ot?Ot.right-Ot.left:0,nextButton:Re?Re.right-Re.left:0,playPrevChapterButton:me?me.right-me.left:0,seekToInteractiveButton:Nt?Nt.right-Nt.left:0,interactiveGraphButton:Et?Et.right-Et.left:0,liveButton:we?we.right-we.left:0,time:ft?ft.right-ft.left:0,episodes:Je?Je.right-Je.left:0,vkLogo:Ce?Ce.right-Ce.left:0,volume:Xe?Xe.right-Xe.left:0,subtitles:ye?ye.right-ye.left:0,settings:Oe?Oe.right-Oe.left:0,context:ve?ve.right-ve.left:0,fullscreen:je?je.right-je.left:0,chromecast:ee?ee.right-ee.left:0,additionalButtons:M.length?M.reduce($=>[...$,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!wl||wl<qn.time)&&t(136,wl=qn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let $=0;rt&&(Mn(te,"xl")?$=qn.time:$=60);let bs=qn.prevButton+qn.playButton+qn.nextButton+qn.seekToInteractiveButton+qn.interactiveGraphButton+qn.liveButton+wl+$;t(137,gs=Pe&&Ul>=bs)}if(i.$$.dirty[4]&532480)e:t(55,Vf=gs&&Mn(te,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:xp(yo(),Kt,ot,Ti);if(i.$$.dirty[0]&167772160)e:ol(jl,Q,Sn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Oo(Kl,Q,x);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:$r(ne,L,Wl)};e:t(51,Tf=Yt.logoType==="vk_video"?Y("tooltip_vk_video_logo"):Y("tooltip_vk_logo"));e:cn(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:y,seekToInteractiveButton:b,interactiveGraphButton:S,liveButton:w,time:P,episodes:v,vkLogo:g,volume:I,subtitles:A,settings:q,context:K,fullscreen:re,chromecast:ae}=Kt,u,Bi(t(71,c)),fn(t(70,m)),yt(t(69,h)),bt(t(68,y)),Xt(t(67,b)),qt(t(66,S)),It(t(65,w)),gt(t(64,P)),ut(t(63,v)),Ie(t(62,g)),Z(t(61,I)),Ue(t(60,A)),et(t(59,q)),be(t(58,K)),We(t(57,re)),Qe(t(56,ae))));return[ci,Pi,Gi,Ti,Qt,$t,Ii,en,pn,_n,Qi,ei,di,Oi,nn,Vi,Fi,Hi,Qn,Pe,rt,zt,Ul,ot,Kl,jl,Wl,Q,M,yi,ji,wi,ki,ai,Ko,jo,ko,Wo,G,wt,sn,xi,Ln,V,le,Ge,St,Mt,qi,So,yl,Tf,If,Ef,Mf,Vf,ae,re,K,q,A,I,g,v,P,w,S,b,y,h,m,c,u,s,a,l,r,o,kt,Di,ii,dn,mn,xt,Yt,on,zi,Zi,Cn,oi,li,Ji,mi,dt,pi,_i,ri,Zt,Nn,Vn,Sn,yn,Gn,On,Fn,An,rn,Hn,zn,ne,Ct,Pn,hn,Tn,wn,lo,ro,gn,ie,ao,xn,wo,$n,eo,qo,Uo,vl,$p,e_,ni,Ei,tn,Ni,Mi,Co,qn,wl,gs,n,L,x,J,E,te,ee,je,ve,Oe,ye,Xe,Ce,Je,ft,we,Et,Nt,me,Re,Ot,gi,ti,si,Ri,Wi,Vt,At,Ci,Si,Gt,ui,fi,vt,Ft,t_,i_,n_,o_,l_,r_,s_,a_,u_,f_,c_,d_,m_,p_,__,h_,g_,b_,v_,y_,w_,k_,C_,S_]}var Bu=class extends j{constructor(e){super(),W(this,e,a3,s3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},Ov,[-1,-1,-1,-1,-1,-1,-1])}},Om=Bu;var dl=require("@vkontakte/videoplayer-core");function u3(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function f3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Du=class extends j{constructor(e){super(),W(this,e,f3,u3,U,{})}},Fm=Du;var zm=require("@vkontakte/videoplayer-shared");function c3(i){Se(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 Hm(i){let e;return{c(){e=T("span"),e.textContent=`${Y("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:pe,d(t){t&&k(e)}}}function d3(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=kn(r,l(i)));let a=i[1]&&Hm(i);return{c(){e=T("div"),t&&D(t.$$.fragment),n=O(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),z(e,"expanded",i[1])},m(s,u){C(s,e,u),t&&B(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){fe();let c=t;_(c.$$.fragment,1,0,()=>{R(c,1)}),ce()}r?(t=kn(r,l(s)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Hm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&z(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&R(t),a&&a.d()}}}function m3(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function p3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=zm.noop}=e,{ref:l=void 0}=e,a,s;function u(c){l=c,t(0,l)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,l=c.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?Y("tooltip_volume"):Y("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Fo:Fm)},[l,o,r,a,s,n,u]}var Nu=class extends j{constructor(e){super(),W(this,e,p3,m3,U,{muted:5,expanded:1,click:2,ref:0},c3)}},Ou=Nu;function _3(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("path"),n=N("path"),o=N("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function h3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Fu=class extends j{constructor(e){super(),W(this,e,h3,_3,U,{})}},qm=Fu;function g3(i){Se(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function b3(i){let e,t;return e=new qm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function v3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Hu=class extends j{constructor(e){super(),W(this,e,v3,b3,U,{isActive:0},g3)}},Um=Hu;var Km=require("@vkontakte/videoplayer-shared");function y3(i){let e,t;return e=new Um({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function w3(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:Y("menu_pip"),click:i[2],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function k3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Km.noop}=e;function l(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,l]}var zu=class extends j{constructor(e){super(),W(this,e,k3,w3,U,{ref:0,isPictureInPictureActive:1,click:2})}},jm=zu;var m0=require("@vkontakte/videoplayer-shared");function C3(i){Se(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 Wm(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 Gm(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v=(!i[51]||i[53])&&Qm(i),g=Pt(i[56]),I=[];for(let E=0;E<g.length;E+=1)I[E]=Ym(Wm(i,g,E));let A=E=>_(I[E],1,1,()=>{I[E]=null}),q=i[36]&&Zm(i),K=i[37]&&Xm(i),re=i[57]&&Jm(i),ae=i[39]&&xm(i),H=i[8]&&$m(i),L=i[34]&&e0(i),x=i[33]&&t0(i),Q=i[8]&&i0(i),J=i[96]&&!i[29]&&n0(i);return{c(){e=T("div"),t=O(),n=T("div"),v&&v.c(),o=O(),r=T("div");for(let E=0;E<I.length;E+=1)I[E].c();l=O(),q&&q.c(),a=O(),K&&K.c(),s=O(),re&&re.c(),u=O(),ae&&ae.c(),c=O(),m=T("div"),H&&H.c(),h=O(),L&&L.c(),y=O(),x&&x.c(),b=O(),Q&&Q.c(),S=O(),J&&J.c(),w=lt(),f(e,"class","overlay-mobile svelte-1tcstu3"),z(e,"hidden",!i[42]),f(n,"class","wrapper-top-left svelte-1tcstu3"),z(n,"hidden",!i[3]),z(n,"fullscreen",i[52]),f(r,"class","wrapper-top-right svelte-1tcstu3"),z(r,"hidden",!i[3]&&!i[27]),z(r,"fullscreen",i[52]),f(m,"class","wrapper-middle svelte-1tcstu3"),z(m,"hidden",!i[3]||i[29])},m(E,te){C(E,e,te),C(E,t,te),C(E,n,te),v&&v.m(n,null),C(E,o,te),C(E,r,te);for(let M=0;M<I.length;M+=1)I[M]&&I[M].m(r,null);p(r,l),q&&q.m(r,null),p(r,a),K&&K.m(r,null),p(r,s),re&&re.m(r,null),p(r,u),ae&&ae.m(r,null),C(E,c,te),C(E,m,te),H&&H.m(m,null),p(m,h),L&&L.m(m,null),p(m,y),x&&x.m(m,null),p(m,b),Q&&Q.m(m,null),C(E,S,te),J&&J.m(E,te),C(E,w,te),P=!0},p(E,te){if((!P||te[1]&2048)&&z(e,"hidden",!E[42]),!E[51]||E[53]?v?(v.p(E,te),te[1]&5242880&&d(v,1)):(v=Qm(E),v.c(),d(v,1),v.m(n,null)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),(!P||te[0]&8)&&z(n,"hidden",!E[3]),(!P||te[1]&2097152)&&z(n,"fullscreen",E[52]),te[1]&33554432){g=Pt(E[56]);let M;for(M=0;M<g.length;M+=1){let ee=Wm(E,g,M);I[M]?(I[M].p(ee,te),d(I[M],1)):(I[M]=Ym(ee),I[M].c(),d(I[M],1),I[M].m(r,l))}for(fe(),M=g.length;M<I.length;M+=1)A(M);ce()}E[36]?q?(q.p(E,te),te[1]&32&&d(q,1)):(q=Zm(E),q.c(),d(q,1),q.m(r,a)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),E[37]?K?(K.p(E,te),te[1]&64&&d(K,1)):(K=Xm(E),K.c(),d(K,1),K.m(r,s)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),E[57]?re?(re.p(E,te),te[1]&67108864&&d(re,1)):(re=Jm(E),re.c(),d(re,1),re.m(r,u)):re&&(fe(),_(re,1,1,()=>{re=null}),ce()),E[39]?ae?(ae.p(E,te),te[1]&256&&d(ae,1)):(ae=xm(E),ae.c(),d(ae,1),ae.m(r,null)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),(!P||te[0]&134217736)&&z(r,"hidden",!E[3]&&!E[27]),(!P||te[1]&2097152)&&z(r,"fullscreen",E[52]),E[8]?H?(H.p(E,te),te[0]&256&&d(H,1)):(H=$m(E),H.c(),d(H,1),H.m(m,h)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),E[34]?L?(L.p(E,te),te[1]&8&&d(L,1)):(L=e0(E),L.c(),d(L,1),L.m(m,y)):L&&(fe(),_(L,1,1,()=>{L=null}),ce()),E[33]?x?(x.p(E,te),te[1]&4&&d(x,1)):(x=t0(E),x.c(),d(x,1),x.m(m,b)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),E[8]?Q?(Q.p(E,te),te[0]&256&&d(Q,1)):(Q=i0(E),Q.c(),d(Q,1),Q.m(m,null)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce()),(!P||te[0]&536870920)&&z(m,"hidden",!E[3]||E[29]),E[96]&&!E[29]?J?(J.p(E,te),te[0]&536870912&&d(J,1)):(J=n0(E),J.c(),d(J,1),J.m(w.parentNode,w)):J&&(fe(),_(J,1,1,()=>{J=null}),ce())},i(E){if(!P){d(v);for(let te=0;te<g.length;te+=1)d(I[te]);d(q),d(K),d(re),d(ae),d(H),d(L),d(x),d(Q),d(J),P=!0}},o(E){_(v),I=I.filter(Boolean);for(let te=0;te<I.length;te+=1)_(I[te]);_(q),_(K),_(re),_(ae),_(H),_(L),_(x),_(Q),_(J),P=!1},d(E){E&&(k(e),k(t),k(n),k(o),k(r),k(c),k(m),k(S),k(w)),v&&v.d(),Ki(I,E),q&&q.d(),K&&K.d(),re&&re.d(),ae&&ae.d(),H&&H.d(),L&&L.d(),x&&x.d(),Q&&Q.d(),J&&J.d(E)}}}function Qm(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new Ou({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Ym(i){var n;let e,t;return e=new Wr({props:{iconUrl:i[169],ariaLabel:(n=i[170])!=null?n:i[173],testId:i[171],onClick:i[172]}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[169]),r[1]&33554432&&(l.ariaLabel=(a=o[170])!=null?a:o[173]),r[1]&33554432&&(l.testId=o[171]),r[1]&33554432&&(l.onClick=o[172]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Zm(i){let e,t,n;function o(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new Rr({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Xm(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new jm({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Jm(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ll({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function xm(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Br({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function $m(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new fl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function e0(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Rl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function t0(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Dl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i0(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new fl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function n0(i){let e,t,n,o,r=i[100]&&S3(i),l=i[98]&&P3(i),a=i[99]&&T3(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=lt()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function S3(i){let e,t,n,o,r,l;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new jr({props:s}),_e.push(()=>He(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3])},m(u,c){C(u,e,c),B(t,e,null),o=!0,r||(l=de(e,"click",i[108]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&65536&&(m.disabled=u[47]),c[0]&262144&&(m.click=u[18]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,Fe(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&z(e,"fullscreen",u[52]),(!o||c[0]&8)&&z(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function P3(i){let e,t,n,o,r;function l(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new Ur({props:a}),_e.push(()=>He(t,"ref",l)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class",o=Of(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3]&&!i[58])},m(s,u){C(s,e,u),B(t,e,null),r=!0},p(s,u){let c={};u[0]&8|u[1]&134217728&&(c.hidden=!s[3]&&!s[58]),u[1]&524288&&(c.disabled=s[50]),u[0]&131072&&(c.click=s[17]),u[1]&134217728&&(c.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,Fe(()=>n=!1)),t.$set(c),(!r||u[1]&2097152)&&z(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&z(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&k(e),R(t)}}}function T3(i){let e,t,n,o,r,l;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new qr({props:s}),_e.push(()=>He(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3])},m(u,c){C(u,e,c),B(t,e,null),o=!0,r||(l=de(e,"click",i[109]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&32768&&(m.disabled=u[46]),c[0]&65536&&(m.click=u[16]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,Fe(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&z(e,"fullscreen",u[52]),(!o||c[0]&8)&&z(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function o0(i){let e,t,n,o,r,l=i[53]&&l0(i),a=i[32]&&r0(i);return o=new Fr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=O(),a&&a.c(),t=O(),n=T("div"),D(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),z(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(s,n,u),B(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=l0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(fe(),_(l,1,1,()=>{l=null}),ce()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=r0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(fe(),_(a,1,1,()=>{a=null}),ce());let c={};u[1]&268435456&&(c.position=s[59]),u[1]&536870912&&(c.duration=s[60]),o.$set(c),(!r||u[1]&2097152)&&z(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),R(o)}}}function l0(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new Ou({props:l}),_e.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1tcstu3"),z(e,"fullscreen",i[52])},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Fe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&z(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function r0(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Rl({props:l}),_e.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function I3(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[E3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function E3(i){let e,t;return e=new Dl({props:{disabled:i[48],click:i[95]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function s0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[M3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function M3(i){let e,t;return e=new Nr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function a0(i){let e,t,n;function o(l){i[146](l)}let r={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Ir({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u0(i){let e,t,n,o;return n=new zr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=O(),D(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),C(r,t,l),B(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),R(n,r)}}}function V3(i){let e,t,n=i[43]&&u0(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=u0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function f0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[A3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function A3(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ll({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function c0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[L3]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Dt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function L3(i){let e,t;return e=new Ar({props:{click:i[14],isFullscreen:i[52]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d0(i){let e,t,n,o;function r(a){i[153](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new Tr({props:l}),_e.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function B3(i){let e,t,n;function o(l){i[154](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new es({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function R3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g=!i[4]&&Gm(i),I=i[4]&&i[30]!=="inactive"&&o0(i),A=i[96]&&I3(i),q=!i[4]&&i[25]&&s0(i),K=i[41]&&a0(i);function re(J){i[147](J)}let ae={className:"w-max",disabled:!i[43],$$slots:{default:[V3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ae.ref=i[20].episodes),u=new Dt({props:ae}),_e.push(()=>He(u,"ref",re));let H=i[38]&&f0(i),L=i[40]&&c0(i);b=new Hr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let x=i[23]&&d0(i),Q=i[101]&&B3(i);return{c(){g&&g.c(),e=O(),I&&I.c(),t=O(),n=T("div"),o=T("div"),r=T("div"),A&&A.c(),l=O(),q&&q.c(),a=O(),K&&K.c(),s=O(),D(u.$$.fragment),m=O(),H&&H.c(),h=O(),L&&L.c(),y=O(),D(b.$$.fragment),S=O(),x&&x.c(),w=O(),Q&&Q.c(),P=lt(),f(r,"class","controls svelte-1tcstu3"),z(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1tcstu3"),z(o,"fullscreen",i[52]),f(n,"class","wrapper-bottom svelte-1tcstu3"),z(n,"hidden",i[1]),z(n,"controls-hidden",!i[3]),z(n,"no-smooth",i[2]),z(n,"mobile",!0)},m(J,E){g&&g.m(J,E),C(J,e,E),I&&I.m(J,E),C(J,t,E),C(J,n,E),p(n,o),p(o,r),A&&A.m(r,null),p(r,l),q&&q.m(r,null),p(r,a),K&&K.m(r,null),p(r,s),B(u,r,null),p(r,m),H&&H.m(r,null),p(r,h),L&&L.m(r,null),i[151](r),p(o,y),B(b,o,null),i[152](n),C(J,S,E),x&&x.m(J,E),C(J,w,E),Q&&Q.m(J,E),C(J,P,E),v=!0},p(J,E){J[4]?g&&(fe(),_(g,1,1,()=>{g=null}),ce()):g?(g.p(J,E),E[0]&16&&d(g,1)):(g=Gm(J),g.c(),d(g,1),g.m(e.parentNode,e)),J[4]&&J[30]!=="inactive"?I?(I.p(J,E),E[0]&1073741840&&d(I,1)):(I=o0(J),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),J[96]&&A.p(J,E),!J[4]&&J[25]?q?(q.p(J,E),E[0]&33554448&&d(q,1)):(q=s0(J),q.c(),d(q,1),q.m(r,a)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),J[41]?K?(K.p(J,E),E[1]&1024&&d(K,1)):(K=a0(J),K.c(),d(K,1),K.m(r,s)):K&&(fe(),_(K,1,1,()=>{K=null}),ce());let te={};E[1]&4096&&(te.disabled=!J[43]),E[1]&1073745920|E[2]&1|E[5]&2097152&&(te.$$scope={dirty:E,ctx:J}),!c&&E[0]&1048576&&(c=!0,te.ref=J[20].episodes,Fe(()=>c=!1)),u.$set(te),J[38]?H?(H.p(J,E),E[1]&128&&d(H,1)):(H=f0(J),H.c(),d(H,1),H.m(r,h)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),J[40]?L?(L.p(J,E),E[1]&512&&d(L,1)):(L=c0(J),L.c(),d(L,1),L.m(r,null)):L&&(fe(),_(L,1,1,()=>{L=null}),ce());let M={};E[0]&16&&(M.isAds=J[4]),E[0]&32&&(M.canRewindLive=J[5]),E[0]&16777216&&(M.isRewindableLive=J[24]),b.$set(M),(!v||E[1]&2097152)&&z(o,"fullscreen",J[52]),(!v||E[0]&2)&&z(n,"hidden",J[1]),(!v||E[0]&8)&&z(n,"controls-hidden",!J[3]),(!v||E[0]&4)&&z(n,"no-smooth",J[2]),J[23]?x?(x.p(J,E),E[0]&8388608&&d(x,1)):(x=d0(J),x.c(),d(x,1),x.m(w.parentNode,w)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),J[101]&&Q.p(J,E)},i(J){v||(d(g),d(I),d(A),d(q),d(K),d(u.$$.fragment,J),d(H),d(L),d(b.$$.fragment,J),d(x),d(Q),v=!0)},o(J){_(g),_(I),_(A),_(q),_(K),_(u.$$.fragment,J),_(H),_(L),_(b.$$.fragment,J),_(x),_(Q),v=!1},d(J){J&&(k(e),k(t),k(n),k(S),k(w),k(P)),g&&g.d(J),I&&I.d(J),A&&A.d(),q&&q.d(),K&&K.d(),R(u),H&&H.d(),L&&L.d(),i[151](null),R(b),i[152](null),x&&x.d(J),Q&&Q.d(J)}}}function D3(i,e,t){var so,gn;let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,{bottomHidden:ve}=e,{bottomNoSmooth:X}=e,{showControls:be}=e,{controlsElementRef:Oe=void 0}=e,{isAds:xe=!1}=e,{canRewindLive:et}=e,{logoClickable:ye}=e,{logoHidden:Be}=e,{logoTargetUrl:Ue=""}=e,{showNextPrevButtons:Xe}=e,{nextButtonActive:Te}=e,{prevButtonActive:Z}=e,{isOneVideoPlaylist:Ce=!1}=e,{supportLink:ue}=e,{customFullscreenSupported:Ie=!0}=e,{playNextVideo:Je}=e,{playPrevVideo:at}=e,{repeatPlaylist:ut}=e,{toggleFullscreen:ft}=e,{returnFocus:ht}=e,{seekToInteractive:gt}=e,{toggleGraph:we}=e,{playPrevChapter:mt}=e,{onDisabledPlayPrevChapterClick:It}=e,{onDisabledSeekToInteractiveClick:Et}=e,ze=it(),qt=Rn(),Nt=Ht(),Ut=ze.actions.internal.toggleMuted,Xt=ze.actions.internal.togglePlay,me=ze.actions.internal.pause,pt=(so=ze.callbacks)==null?void 0:so.onAudioDoesNotExistHint,bt=(gn=ze.callbacks)==null?void 0:gn.onAudioDisabledHint,Re=ze.playerPhase;F(i,Re,ie=>t(126,K=ie));let qe=ze.state.duration$;F(i,qe,ie=>t(62,We=ie));let yt=ze.state.positionWithScrubbing$;F(i,yt,ie=>t(61,$e=ie));let Ot=ze.state.playbackState$;F(i,Ot,ie=>t(121,h=ie));let Jt=ze.state.isAudioAvailable$;F(i,Jt,ie=>t(51,y=ie));let fn=ze.state.isAudioDisabled,gi=ze.state.isEnded$;F(i,gi,ie=>t(127,ae=ie));let bi=ze.state.isLive$;F(i,bi,ie=>t(25,v=ie));let Bi=ze.state.muted$;F(i,Bi,ie=>t(54,E=ie));let ti=ze.state.isActiveLive$;F(i,ti,ie=>t(124,w=ie));let vi=ze.state.isRewindableLive$;F(i,vi,ie=>t(24,P=ie));let cn=ze.ui.scrubbingInProgress;F(i,cn,ie=>t(29,re=ie));let yi=ze.ui.mobileNotReportControlHidden$;F(i,yi,ie=>t(27,A=ie));let ji=ze.ui.isPictureInPictureActive$;F(i,ji,ie=>t(26,I=ie));let si=ze.ui.pictureInPictureType$;F(i,si,ie=>t(125,g=ie));let Ri=ze.ui.mobileUnmuteButtonExpanded;F(i,Ri,ie=>t(55,te=ie));let wi=ze.ui.mobileUnmuteButtonVisible;F(i,wi,ie=>t(53,J=ie));let Wi=ze.ui.settingsMenuVisible;F(i,Wi,ie=>t(23,m=ie));let ki=ze.ui.settingsMenuOpenedByKeyboard;F(i,ki,ie=>t(120,c=ie));let ai=ze.ui.controls,Vt=ze.actions.internal.getVideoEpisodes(),At=ze.webApi.pictureInPictureApi,Ci=ze.state.chromecastState$;F(i,Ci,ie=>t(28,q=ie));let Si=ze.state.crashed$;F(i,Si,ie=>t(57,ee=ie));let Gt=ai.disabledControls$;F(i,Gt,ie=>t(128,L=ie));let ui=ze.ui.startedByKeyboard$;F(i,ui,ie=>t(119,u=ie));let fi=ze.ads.duration;F(i,fi,ie=>t(60,je=ie));let vt=ze.ads.position;F(i,vt,ie=>t(59,Qe=ie));let Ft=ze.ads.playbackState;F(i,Ft,ie=>t(30,H=ie));let kt=ze.ui.isFullscreen;F(i,kt,ie=>t(52,Q=ie));let Di=ze.ui.playerSize;F(i,Di,ie=>t(123,S=ie));let ii=ze.ui.additionalButtons$;F(i,ii,ie=>t(56,M=ie));let dn=ze.actions.internal.getVideoElement,mn=ze.actions.internal.replayInteractive,xt=ze.state.isInteractive,Pi=ze.state.isInteractiveTime$;F(i,Pi,ie=>t(122,b=ie));let Gi=ze.state.showInteractiveGraph,Ti=ze.state.showSeekToInteractive,ci=ze.state.showPlayPrevChapter,Qt=ze.state.showInteractiveTimeIndicator,$t=ze.state.graphIsOpened$;F(i,$t,ie=>t(58,ke=ie));let Ii=qt.seekToInteractiveDisabledTooltip$;F(i,Ii,ie=>t(129,x=ie));let ni,en,Ei,pn,_n,tn,Qi,Ni,ei,di,Mi,Oi,nn,Vi,Fi,Hi,Ze,Yi,Yt,Ke={},on=(0,m0.throttleFn)(xr,260,{leading:!1}),zi=()=>ze.actions.internal.toggleChromecast();function Zi(){_o({isAudioDisabled:fn,audioDisabledHintCallback:bt,isAudioAvailable:y,audioIsNotExistHintCallback:pt})&&Ut()}async function ln(){At!=null&&At.isActive()?await(At==null?void 0:At.remove()):await(At==null?void 0:At.request())}function Xi(){!fn&&y&&wi.set(!1),Zi()}let Cn=Ce?Xt:ut,oi="",li=(ie,ao)=>{if(!ie){t(45,oi=Y("tooltip_live"));return}ao===dl.PlaybackState.PAUSED&&t(45,oi=Y("tooltip_play"))},Ji,mi,se=()=>{s&&It(ni)},dt=()=>{r&&Et(en)};function pi(ie){i.$$.not_equal(Ke.volume,ie)&&(Ke.volume=ie,t(20,Ke))}function _i(ie){i.$$.not_equal(Ke.chromecast,ie)&&(Ke.chromecast=ie,t(20,Ke))}function ri(ie){i.$$.not_equal(Ke.pip,ie)&&(Ke.pip=ie,t(20,Ke))}function Zt(ie){mi=ie,t(22,mi)}function Nn(ie){i.$$.not_equal(Ke.vkLogo,ie)&&(Ke.vkLogo=ie,t(20,Ke))}function Vn(ie){i.$$.not_equal(Ke.prevButton,ie)&&(Ke.prevButton=ie,t(20,Ke))}function Sn(ie){i.$$.not_equal(Ke.playButton,ie)&&(Ke.playButton=ie,t(20,Ke))}function Kt(ie){i.$$.not_equal(Ke.replayButton,ie)&&(Ke.replayButton=ie,t(20,Ke))}function yn(ie){i.$$.not_equal(Ke.nextButton,ie)&&(Ke.nextButton=ie,t(20,Ke))}function Gn(ie){i.$$.not_equal(Ke.playPrevChapterButton,ie)&&(Ke.playPrevChapterButton=ie,t(20,Ke))}function On(ie){i.$$.not_equal(Ke.interactiveGraphButton,ie)&&(Ke.interactiveGraphButton=ie,t(20,Ke))}function Fn(ie){i.$$.not_equal(Ke.seekToInteractiveButton,ie)&&(Ke.seekToInteractiveButton=ie,t(20,Ke))}function An(ie){i.$$.not_equal(Ke.volume,ie)&&(Ke.volume=ie,t(20,Ke))}function rn(ie){i.$$.not_equal(Ke.playButton,ie)&&(Ke.playButton=ie,t(20,Ke))}function Hn(ie){i.$$.not_equal(Ke.replayButton,ie)&&(Ke.replayButton=ie,t(20,Ke))}function zn(ie){i.$$.not_equal(Ke.liveButton,ie)&&(Ke.liveButton=ie,t(20,Ke))}function ne(ie){i.$$.not_equal(Ke.time,ie)&&(Ke.time=ie,t(20,Ke))}function Ct(ie){i.$$.not_equal(Ke.episodes,ie)&&(Ke.episodes=ie,t(20,Ke))}function Pn(ie){mi=ie,t(22,mi)}function hn(ie){i.$$.not_equal(Ke.settings,ie)&&(Ke.settings=ie,t(20,Ke))}function Tn(ie){i.$$.not_equal(Ke.fullscreen,ie)&&(Ke.fullscreen=ie,t(20,Ke))}function wn(ie){_e[ie?"unshift":"push"](()=>{Yi=ie,t(44,Yi)})}function lo(ie){_e[ie?"unshift":"push"](()=>{Oe=ie,t(0,Oe)})}function ro(ie){Ji=ie,t(21,Ji)}function yo(ie){i.$$.not_equal(Ke.interactiveTimeIndicator,ie)&&(Ke.interactiveTimeIndicator=ie,t(20,Ke))}i.$$set=ie=>{"bottomHidden"in ie&&t(1,ve=ie.bottomHidden),"bottomNoSmooth"in ie&&t(2,X=ie.bottomNoSmooth),"showControls"in ie&&t(3,be=ie.showControls),"controlsElementRef"in ie&&t(0,Oe=ie.controlsElementRef),"isAds"in ie&&t(4,xe=ie.isAds),"canRewindLive"in ie&&t(5,et=ie.canRewindLive),"logoClickable"in ie&&t(6,ye=ie.logoClickable),"logoHidden"in ie&&t(110,Be=ie.logoHidden),"logoTargetUrl"in ie&&t(7,Ue=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(8,Xe=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(9,Te=ie.nextButtonActive),"prevButtonActive"in ie&&t(10,Z=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,Ce=ie.isOneVideoPlaylist),"supportLink"in ie&&t(11,ue=ie.supportLink),"customFullscreenSupported"in ie&&t(112,Ie=ie.customFullscreenSupported),"playNextVideo"in ie&&t(12,Je=ie.playNextVideo),"playPrevVideo"in ie&&t(13,at=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,ut=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(14,ft=ie.toggleFullscreen),"returnFocus"in ie&&t(15,ht=ie.returnFocus),"seekToInteractive"in ie&&t(16,gt=ie.seekToInteractive),"toggleGraph"in ie&&t(17,we=ie.toggleGraph),"playPrevChapter"in ie&&t(18,mt=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,It=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,Et=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:en=Y(x);if(i.$$.dirty[4]&16)e:t(118,n=L.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=L.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=L.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=L.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=L.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=L.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,Ei=h===dl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,pn=H==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,_n=ae&&!xe&&!xt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,tn=!ae||xe);if(i.$$.dirty[3]&1073741824)e:t(116,Qi=S.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Ni=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,ei=re);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,di=q!==dl.ChromecastState.NOT_AVAILABLE&&!(I&&g===1)&&!A&&!xt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ie=K==="waitingLive";t(37,Mi=!!At&&q!==dl.ChromecastState.CONNECTED&&!A&&(g===1&&ie||!ie)&&!ei&&!xt)}if(i.$$.dirty[3]&16777216)e:t(38,Oi=!ei);if(i.$$.dirty[3]&1073872896)e:t(39,nn=!Be&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,Vi=Nt.features.fullscreen&&!(I&&g===1)&&(xt?Ie:!0)&&!ei);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Fi=(!v||xe)&&S.width>260&&!ei&&!(Nt.features.interactiveHideTime&&xt));if(i.$$.dirty[0]&8388616)e:t(42,Hi=m||be);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ze=!xe&&!v&&!!(Vt!=null&&Vt.length)&&Qi&&!n&&!ei);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Yt=!P||w);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:on(dn(),ai,Ke,be);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:li(Yt,h);if(i.$$.dirty[0]&12582912)e:ol(mi,m,ki);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Oo(Ji,m,c);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:$r(ui,u,Ke.playButton)};e:ni=Y(ze.state.playPrevChapterDisabledTooltip);return[Oe,ve,X,be,xe,et,ye,Ue,Xe,Te,Z,ue,Je,at,ft,ht,gt,we,mt,Yt,Ke,Ji,mi,m,P,v,I,A,q,re,H,Ei,pn,_n,tn,Ni,di,Mi,Oi,nn,Vi,Fi,Hi,Ze,Yi,oi,r,s,a,l,o,y,Q,J,E,te,M,ee,ke,Qe,je,$e,We,Xt,me,Re,qe,yt,Ot,Jt,fn,gi,bi,Bi,ti,vi,cn,yi,ji,si,Ri,wi,Wi,ki,Vt,Ci,Si,Gt,ui,fi,vt,Ft,kt,Di,ii,mn,xt,Pi,Gi,Ti,ci,Qt,$t,Ii,zi,ln,Xi,Cn,se,dt,Be,Ce,Ie,ut,It,Et,Qi,ei,n,u,c,h,b,S,w,g,K,ae,L,x,pi,_i,ri,Zt,Nn,Vn,Sn,Kt,yn,Gn,On,Fn,An,rn,Hn,zn,ne,Ct,Pn,hn,Tn,wn,lo,ro,yo]}var qu=class extends j{constructor(e){super(),W(this,e,D3,R3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},C3,[-1,-1,-1,-1,-1,-1])}},p0=qu;function N3(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new Om({props:r}),_e.push(()=>He(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function O3(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new p0({props:r}),_e.push(()=>He(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function F3(i){let e,t,n,o,r=[O3,N3],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function H3(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:c}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:y}=e,{nextButtonActive:b}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:w=!1}=e,{supportLink:P}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:g}=e,{playPrevVideo:I}=e,{repeatPlaylist:A}=e,{toggleFullscreen:q}=e,{returnFocus:K=ts.noop}=e,{seekToInteractive:re}=e,{toggleGraph:ae}=e,{playPrevChapter:H}=e,{onDisabledPlayPrevChapterClick:L=ts.noop}=e,{onDisabledSeekToInteractiveClick:x=ts.noop}=e,J=it().ui.isMobile;F(i,J,M=>t(25,n=M));function E(M){a=M,t(0,a)}function te(M){a=M,t(0,a)}return i.$$set=M=>{"bottomHidden"in M&&t(1,o=M.bottomHidden),"bottomNoSmooth"in M&&t(2,r=M.bottomNoSmooth),"showControls"in M&&t(3,l=M.showControls),"controlsElementRef"in M&&t(0,a=M.controlsElementRef),"isAds"in M&&t(4,s=M.isAds),"canRewindLive"in M&&t(5,u=M.canRewindLive),"logoClickable"in M&&t(6,c=M.logoClickable),"logoHidden"in M&&t(7,m=M.logoHidden),"logoTargetUrl"in M&&t(8,h=M.logoTargetUrl),"showNextPrevButtons"in M&&t(9,y=M.showNextPrevButtons),"nextButtonActive"in M&&t(10,b=M.nextButtonActive),"prevButtonActive"in M&&t(11,S=M.prevButtonActive),"isOneVideoPlaylist"in M&&t(12,w=M.isOneVideoPlaylist),"supportLink"in M&&t(13,P=M.supportLink),"customFullscreenSupported"in M&&t(14,v=M.customFullscreenSupported),"playNextVideo"in M&&t(15,g=M.playNextVideo),"playPrevVideo"in M&&t(16,I=M.playPrevVideo),"repeatPlaylist"in M&&t(17,A=M.repeatPlaylist),"toggleFullscreen"in M&&t(18,q=M.toggleFullscreen),"returnFocus"in M&&t(19,K=M.returnFocus),"seekToInteractive"in M&&t(20,re=M.seekToInteractive),"toggleGraph"in M&&t(21,ae=M.toggleGraph),"playPrevChapter"in M&&t(22,H=M.playPrevChapter),"onDisabledPlayPrevChapterClick"in M&&t(23,L=M.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in M&&t(24,x=M.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,n,J,E,te]}var Uu=class extends j{constructor(e){super(),W(this,e,H3,F3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},is=Uu;function z3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_100684"),f(y,"result","shape"),f(l,"id","a"),f(l,"width","43.996"),f(l,"height","49.5"),f(l,"x","2.5"),f(l,"y","0"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ku=class extends j{constructor(e){super(),W(this,e,q3,z3,U,{})}},_0=Ku;function U3(i){let e,t;return e=new _0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function K3(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var ju=class extends j{constructor(e){super(),W(this,e,K3,U3,U,{reversed:1})}},h0=ju;function j3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P=i[2].default,v=Ee(P,i,i[1],null),g=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],I={};for(let A=0;A<g.length;A+=1)I=oe(I,g[A]);return{c(){e=N("svg"),v&&v.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("clipPath"),a=N("path"),s=N("filter"),u=N("feFlood"),c=N("feColorMatrix"),m=N("feOffset"),h=N("feGaussianBlur"),y=N("feColorMatrix"),b=N("feBlend"),S=N("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(l,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(b,"in2","BackgroundImageFix"),f(b,"result","effect1_dropShadow_2260_104204"),f(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_104204"),f(S,"result","shape"),f(s,"id","a"),f(s,"width","51"),f(s,"height","45"),f(s,"x","-1.5"),f(s,"y","1.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ge(e,I)},m(A,q){C(A,e,q),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,c),p(s,m),p(s,h),p(s,y),p(s,b),p(s,S),w=!0},p(A,[q]){v&&v.p&&(!w||q&2)&&Ve(v,P,A,A[1],w?Me(P,A[1],q,null):Ae(A[1]),null),ge(e,I=Le(g,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},q&1&&A[0]]))},i(A){w||(d(v,A),w=!0)},o(A){_(v,A),w=!1},d(A){A&&k(e),v&&v.d(A)}}}function W3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Wu=class extends j{constructor(e){super(),W(this,e,W3,j3,U,{})}},g0=Wu;function G3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v=i[2].default,g=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],A={};for(let q=0;q<I.length;q+=1)A=oe(A,I[q]);return{c(){e=N("svg"),g&&g.c(),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("defs"),a=N("clipPath"),s=N("path"),u=N("filter"),c=N("feFlood"),m=N("feColorMatrix"),h=N("feOffset"),y=N("feGaussianBlur"),b=N("feColorMatrix"),S=N("feBlend"),w=N("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(s,"fill","#fff"),f(s,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"result","effect1_dropShadow_2260_104293"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_104293"),f(w,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),ge(e,A)},m(q,K){C(q,e,K),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,c),p(u,m),p(u,h),p(u,y),p(u,b),p(u,S),p(u,w),P=!0},p(q,[K]){g&&g.p&&(!P||K&2)&&Ve(g,v,q,q[1],P?Me(v,q[1],K,null):Ae(q[1]),null),ge(e,A=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},K&1&&q[0]]))},i(q){P||(d(g,q),P=!0)},o(q){_(g,q),P=!1},d(q){q&&k(e),g&&g.d(q)}}}function Q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Gu=class extends j{constructor(e){super(),W(this,e,Q3,G3,U,{})}},b0=Gu;function Y3(i){let e,t;return e=new g0({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Z3(i){let e,t;return e=new b0({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function X3(i){let e,t,n,o,r=[Z3,Y3],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function J3(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Qu=class extends j{constructor(e){super(),W(this,e,J3,X3,U,{isOff:0})}},Yu=Qu;function x3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_106627"),f(y,"result","shape"),f(l,"id","a"),f(l,"width","40.098"),f(l,"height","27.785"),f(l,"x","3.402"),f(l,"y","10.105"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function $3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Zu=class extends j{constructor(e){super(),W(this,e,$3,x3,U,{})}},v0=Zu;function e5(i){let e,t;return e=new v0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function t5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Xu=class extends j{constructor(e){super(),W(this,e,t5,e5,U,{reversed:1})}},y0=Xu;function i5(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2340_106922"),f(y,"result","shape"),f(l,"id","a"),f(l,"width","37"),f(l,"height","37"),f(l,"x","5.5"),f(l,"y","5.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function n5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ju=class extends j{constructor(e){super(),W(this,e,n5,i5,U,{})}},w0=Ju;function o5(i){let e,t;return e=new w0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function l5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var xu=class extends j{constructor(e){super(),W(this,e,l5,o5,U,{reversed:1})}},k0=xu;function r5(i){Se(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 C0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,y,b,S,w,P=t&&S0(i),v=i[4]==="PAUSE"&&P0(i),g=i[4]==="PLAY"&&T0(i),I=i[4]==="REPLAY"&&I0(i),A=i[4]==="SUBTITLES_OFF"&&E0(i),q=i[4]==="SUBTITLES_ON"&&M0(i),K=u&&V0(i),re=m&&A0(i),ae=i[4]==="MUTE"&&L0(i),H=i[4]==="VOLUME"&&B0(i),L=i[5]&&R0(i);return{c(){e=T("div"),P&&P.c(),n=O(),v&&v.c(),o=O(),g&&g.c(),r=O(),I&&I.c(),l=O(),A&&A.c(),a=O(),q&&q.c(),s=O(),K&&K.c(),c=O(),re&&re.c(),h=O(),ae&&ae.c(),y=O(),H&&H.c(),b=O(),L&&L.c(),S=lt(),f(e,"class","svelte-4ftgwp")},m(x,Q){C(x,e,Q),P&&P.m(e,null),p(e,n),v&&v.m(e,null),p(e,o),g&&g.m(e,null),p(e,r),I&&I.m(e,null),p(e,l),A&&A.m(e,null),p(e,a),q&&q.m(e,null),p(e,s),K&&K.m(e,null),p(e,c),re&&re.m(e,null),p(e,h),ae&&ae.m(e,null),p(e,y),H&&H.m(e,null),C(x,b,Q),L&&L.m(x,Q),C(x,S,Q),w=!0},p(x,Q){Q&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(x[4])),t?P?(P.p(x,Q),Q&16&&d(P,1)):(P=S0(x),P.c(),d(P,1),P.m(e,n)):P&&(fe(),_(P,1,1,()=>{P=null}),ce()),x[4]==="PAUSE"?v?Q&16&&d(v,1):(v=P0(x),v.c(),d(v,1),v.m(e,o)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),x[4]==="PLAY"?g?Q&16&&d(g,1):(g=T0(x),g.c(),d(g,1),g.m(e,r)):g&&(fe(),_(g,1,1,()=>{g=null}),ce()),x[4]==="REPLAY"?I?Q&16&&d(I,1):(I=I0(x),I.c(),d(I,1),I.m(e,l)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),x[4]==="SUBTITLES_OFF"?A?Q&16&&d(A,1):(A=E0(x),A.c(),d(A,1),A.m(e,a)):A&&(fe(),_(A,1,1,()=>{A=null}),ce()),x[4]==="SUBTITLES_ON"?q?Q&16&&d(q,1):(q=M0(x),q.c(),d(q,1),q.m(e,s)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),Q&16&&(u=["RATE_DOWN","RATE_UP"].includes(x[4])),u?K?(K.p(x,Q),Q&16&&d(K,1)):(K=V0(x),K.c(),d(K,1),K.m(e,c)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),Q&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(x[4])),m?re?(re.p(x,Q),Q&16&&d(re,1)):(re=A0(x),re.c(),d(re,1),re.m(e,h)):re&&(fe(),_(re,1,1,()=>{re=null}),ce()),x[4]==="MUTE"?ae?Q&16&&d(ae,1):(ae=L0(x),ae.c(),d(ae,1),ae.m(e,y)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),x[4]==="VOLUME"?H?Q&16&&d(H,1):(H=B0(x),H.c(),d(H,1),H.m(e,null)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),x[5]?L?L.p(x,Q):(L=R0(x),L.c(),L.m(S.parentNode,S)):L&&(L.d(1),L=null)},i(x){w||(d(P),d(v),d(g),d(I),d(A),d(q),d(K),d(re),d(ae),d(H),w=!0)},o(x){_(P),_(v),_(g),_(I),_(A),_(q),_(K),_(re),_(ae),_(H),w=!1},d(x){x&&(k(e),k(b),k(S)),P&&P.d(),v&&v.d(),g&&g.d(),I&&I.d(),A&&A.d(),q&&q.d(),K&&K.d(),re&&re.d(),ae&&ae.d(),H&&H.d(),L&&L.d(x)}}}function S0(i){let e,t;return e=new h0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function P0(i){let e,t;return e=new Lr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function T0(i){let e,t;return e=new ul({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function I0(i){let e,t;return e=new Kr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E0(i){let e,t;return e=new Yu({props:{isOff:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M0(i){let e,t;return e=new Yu({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function V0(i){let e,t;return e=new y0({props:{reversed:i[4]==="RATE_UP"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function A0(i){let e,t;return e=new k0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L0(i){let e,t;return e=new Fo({props:{volume:0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function B0(i){let e,t;return e=new Fo({props:{volume:1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function R0(i){let e,t;return{c(){e=T("span"),t=De(i[5]),f(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&32&&Ye(t,n[5])},d(n){n&&k(e)}}}function s5(i){let e,t,n=!i[1]&&i[4]&&C0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-4ftgwp"),z(e,"hidden",i[1]),z(e,"hot-key-helpers-container--left",i[2]),z(e,"hot-key-helpers-container--right",i[3])},m(o,r){C(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=C0(o),n.c(),d(n,1),n.m(e,null)):n&&(fe(),_(n,1,1,()=>{n=null}),ce()),(!t||r&2)&&z(e,"hidden",o[1]),(!t||r&4)&&z(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&z(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function a5(i,e,t){let n,o=pe,r=()=>(o(),o=jt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=Y(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text)},[l,a,s,u,c,m,n]}var $u=class extends j{constructor(e){super(),W(this,e,a5,s5,U,{data:0},r5)}},D0=$u;function u5(i){Se(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 f5(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g;return r=new Xn({props:{direction:"up"}}),s=new Xn({props:{direction:"up"}}),h=new Xn({props:{direction:"up"}}),S=new Xn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),D(r.$$.fragment),l=O(),a=T("div"),D(s.$$.fragment),u=O(),c=T("div"),m=T("div"),D(h.$$.fragment),y=O(),b=T("div"),D(S.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(b,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",w=Y("aria_label_spherical_control")),z(e,"m-shifted",i[0])},m(I,A){C(I,e,A),p(e,t),p(t,n),p(n,o),B(r,o,null),p(n,l),p(n,a),B(s,a,null),p(t,u),p(t,c),p(c,m),B(h,m,null),p(c,y),p(c,b),B(S,b,null),P=!0,v||(g=[de(o,"mousedown",i[1]),de(o,"mouseup",i[5]),de(o,"mouseleave",i[5]),de(a,"mousedown",i[3]),de(a,"mouseup",i[5]),de(a,"mouseleave",i[5]),de(m,"mousedown",i[4]),de(m,"mouseup",i[5]),de(m,"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])],v=!0)},p(I,[A]){(!P||A&1)&&z(e,"m-shifted",I[0])},i(I){P||(d(r.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(S.$$.fragment,I),P=!0)},o(I){_(r.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(S.$$.fragment,I),P=!1},d(I){I&&k(e),R(r),R(s),R(h),R(S),v=!1,nt(g)}}}function c5(i,e,t){let{isShifted:n=!1}=e,o=it(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=y=>{if(r.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=y=>{r.has(y.code)&&(y.preventDefault(),y.stopPropagation(),c())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,l,a,s,u,c,m,h]}var ef=class extends j{constructor(e){super(),W(this,e,c5,f5,U,{isShifted:0},u5)}},ns=ef;function d5(i){Se(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 N0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function O0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function F0(i){let e,t;function n(l,a){return l[7]&&l[8]?_5:l[5]?p5:m5}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),z(e,"mobile",i[3])},m(l,a){C(l,e,a),p(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&z(e,"mobile",l[3])},d(l){l&&k(e),r.d()}}}function m5(i){let e,t=Pt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=H0(N0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=lt()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);C(o,e,r)},p(o,r){if(r&18){t=Pt(o[1]);let l;for(l=0;l<t.length;l+=1){let a=N0(o,t,l);n[l]?n[l].p(a,r):(n[l]=H0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Ki(n,o)}}}function p5(i){let e,t,n=Pt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=q0(O0(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),hi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=Pt(r[6]);let a;for(a=0;a<n.length;a+=1){let s=O0(r,n,a);o[a]?o[a].p(s,l):(o[a]=q0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&hi(t,"font-size",r[4]+"px")},d(r){r&&k(e),Ki(o,r)}}}function _5(i){let e,t,n=Y("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=De(n),f(t,"class","caption-segment svelte-ovfyp5"),hi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&hi(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function H0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=De(n),r=O(),f(t,"class","caption-segment svelte-ovfyp5"),hi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){C(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Ye(o,n),a&16&&hi(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function z0(i){let e=i[16]+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ye(t,e)},d(n){n&&k(t)}}}function q0(i){let e,t=(!i[17]||i[17]<=i[2])&&z0(i);return{c(){t&&t.c(),e=lt()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=z0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function h5(i){let e,t=i[1].length>0&&F0(i);return{c(){e=T("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),z(e,"shifted",i[0]),z(e,"auto",i[5]&&!i[8])},m(n,o){C(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=F0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&z(e,"shifted",n[0]),o&288&&z(e,"auto",n[5]&&!n[8])},i:pe,o:pe,d(n){n&&k(e),t&&t.d()}}}function g5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=it(),m=Ht(),h=c.state.currentSubtitle$;F(i,h,g=>t(12,n=g));let y=c.state.isAutoSubtitleCaptionVisible$;F(i,y,g=>t(8,o=g));let b,S,w,P,v;return Bt(()=>{v=window.setTimeout(()=>{y.set(!1)},m.autoSubtitlesTimeout)}),Un(()=>{window.clearTimeout(v)}),i.$$set=g=>{"shifted"in g&&t(0,r=g.shifted),"captions"in g&&t(1,l=g.captions),"position"in g&&t(2,a=g.position),"playerSize"in g&&t(11,s=g.playerSize),"isMobile"in g&&t(3,u=g.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let g=s.width*.02;t(4,b=g<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:g)}if(i.$$.dirty&2)e:t(5,S=l.some(g=>g.type==="timestamp"));if(i.$$.dirty&2)e:t(6,w=l.reduce((g,{type:I,value:A})=>(I==="timestamp"?g.push({timeAppeared:Number(A),value:""}):g.length===0?g.push({value:String(A)}):g[g.length-1].value=String(A),g),[]));if(i.$$.dirty&4096)e:t(7,P=!!n.isAuto)},[r,l,a,u,b,S,w,P,o,h,y,s,n]}var tf=class extends j{constructor(e){super(),W(this,e,g5,h5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},d5)}},os=tf;function b5(i){Se(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 U0(i){let e,t,n;return{c(){e=T("div"),t=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){C(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Ye(n,o[1])},d(o){o&&k(e)}}}function v5(i){let e,t,n,o,r,l,a=i[1]&&U0(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=O(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){C(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),r||(l=de(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=U0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&f(e,"style",o)},i:pe,o:pe,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function y5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){In.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var nf=class extends j{constructor(e){super(),W(this,e,y5,v5,U,{thumbUrl:0,chromecastDeviceName:1},b5)}},ls=nf;function w5(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function k5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var of=class extends j{constructor(e){super(),W(this,e,k5,w5,U,{})}},K0=of;function C5(i){Se(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 S5(i){let e,t,n;return t=new K0({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}var lf=class extends j{constructor(e){super(),W(this,e,null,S5,U,{},C5)}},rs=lf;function P5(i){Se(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 T5(i){let e,t,n,o,r,l,a,s,u,c;return r=new ul({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=O(),D(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",l=Y("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),z(e,"hidden",i[1])},m(m,h){C(m,e,h),p(e,t),p(t,n),p(t,o),B(r,t,null),s=!0,u||(c=[de(t,"keydown",i[3]),de(e,"click",st(function(){Ai(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!s||h&2)&&z(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&k(e),R(r),u=!1,nt(c)}}}function I5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=it().ui.startedByKeyboard$,s=u=>{let c=u.code;["Enter","Space"].includes(c)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,s]}var rf=class extends j{constructor(e){super(),W(this,e,I5,T5,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},P5)}get handlePressKey(){return this.$$.ctx[3]}},ss=rf;function E5(i){Se(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.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function S5(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1bcvcf2"),F(e,"hidden",i[1])},m(n,o){C(n,e,o),p(e,t)},p(n,[o]){o&1&&Qe(t,n[0]),o&2&&F(e,"hidden",n[1])},i:de,o:de,d(n){n&&k(e)}}}function P5(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var rf=class extends U{constructor(e){super(),W(this,e,P5,S5,z,{title:0,isHidden:1},C5)}},H0=rf;function T5(i){Se(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 z0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[0]),o=O(),r=T("span"),r.textContent=`${G("waiting_live_day_value")}`,l=O(),a=T("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&1&&Qe(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function q0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[1]),o=O(),r=T("span"),r.textContent=`${G("waiting_live_hour_value")}`,l=O(),a=T("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&2&&Qe(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function U0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[2]),o=O(),r=T("span"),r.textContent=`${G("waiting_live_minute_value")}`,l=O(),a=T("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&4&&Qe(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function K0(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=De(i[3]),o=O(),r=T("span"),r.textContent=`${G("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Qe(n,l[3])},d(l){l&&k(e)}}}function I5(i){let e,t,n,o,r=i[0]&&z0(i),l=i[1]&&q0(i),a=i[2]&&U0(i),s=i[3]&&K0(i);return{c(){e=T("div"),r&&r.c(),t=O(),l&&l.c(),n=O(),a&&a.c(),o=O(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){C(u,e,c),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=z0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=q0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=U0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=K0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:de,o:de,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function E5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=w=>String(w).padStart(2,"0"),m=w=>{let b=Math.floor(w/86400);b&&(w-=b*86400,t(0,r=c(b)));let S=Math.floor(w/3600);t(1,l=c(S));let y=Math.floor(w/60)%60;t(2,a=c(y));let P=w%60;t(3,s=c(P))},h=()=>{let w=Math.floor(Date.now()/1e3),b=n-w;m(b),b>=1?u=requestAnimationFrame(h):o()};return Rt(()=>{u=requestAnimationFrame(h)}),Un(()=>{cancelAnimationFrame(u)}),i.$$set=w=>{"startTime"in w&&t(4,n=w.startTime),"onTimerOver"in w&&t(5,o=w.onTimerOver)},[r,l,a,s,n,o]}var sf=class extends U{constructor(e){super(),W(this,e,E5,I5,z,{startTime:4,onTimerOver:5},T5)}},W0=sf;function M5(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=le(c,u[m]);return{c(){e=L("svg"),s&&s.c(),t=L("path"),n=L("path"),o=L("path"),r=L("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),mi(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),mi(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),mi(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),mi(r,"opacity",".986"),be(e,c)},m(m,h){C(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Le(m[1]),null),be(e,c=Re(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function V5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var af=class extends U{constructor(e){super(),W(this,e,V5,M5,z,{})}},G0=af;function L5(i){Se(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 A5(i){let e,t,n,o,r;return o=new W0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${G("waiting_live_timer_title")}`,n=O(),D(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){C(l,e,a),p(e,t),p(e,n),B(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&k(e),R(o)}}}function B5(i){let e,t,n,o,r,l;return n=new G0({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("span"),r.textContent=`${G("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,s){C(a,e,s),p(e,t),B(n,t,null),p(e,o),p(e,r),l=!0},p:de,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),R(n)}}}function R5(i){let e,t,n,o,r,l=[B5,A5],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){C(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=s(u,c),t===m?a[t].p(u,c):(fe(),_(a[m],1,1,()=>{a[m]=null}),ce(),n=a[t],n?n.p(u,c):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&k(e),a[t].d()}}}function D5(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,l]}var uf=class extends U{constructor(e){super(),W(this,e,D5,R5,z,{thumbUrl:0,startTime:1},L5)}},ss=uf;function N5(i){Se(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 O5(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${G("waiting_record_title")}`,f(t,"class","waiting-title svelte-1bcnzdw"),f(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){C(n,e,o),p(e,t)},p:de,i:de,o:de,d(n){n&&k(e)}}}var ff=class extends U{constructor(e){super(),W(this,e,null,O5,z,{},N5)}},as=ff;var{window:F5}=Po;function H5(i){Se(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 Q0(i){var n;let e,t;return e=new ss({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Y0(i){let e,t;return e=new as({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Z0(i){let e,t,n;return t=new cr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-1o4wf3x"),F(e,"hidden",i[38]!=="ads")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&F(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function X0(i){let e,t;return e=new h1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function J0(i){let e,t;return e=new H0({props:{title:i[2],isHidden:!i[36]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function x0(i){let e,t;return e=new is({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $0(i){let e,t,n;return t=new ir({props:{"aria-label":G("video360")}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function ep(i){let e,t;return e=new os({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function tp(i){let e,t;return e=new ns({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ip(i){let e,t,n,o,r;return t=new ls({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),B(t,e,null),n=!0,o||(r=[me(e,"contextmenu",Bt(i[108])),me(e,"click",st(i[119]))],o=!0)},p:de,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,tt(r)}}}function np(i){let e,t,n;function o(l){i[156](l)}let r={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:up,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&&(r.controlsElementRef=i[41]),e=new ts({props:r}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="waitingLive"||l[38]==="waitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&67108864&&(s.canRewindLive=l[6]&&l[57]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[155]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function op(i){let e,t;return e=new yr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lp(i){let e,t;return e=new I1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rp(i){let e,t;return e=new gr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function sp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se;e=new rs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ne=i[38]==="waitingLive"&&Q0(i),E=i[38]==="waitingRecord"&&Y0(i),ie=i[7]&&i[22]&&Z0(i),x=i[31]&&i[18]&&i[19]&&X0(i),j=i[44]&&J0(i),X=i[49]&&x0(i),M=i[52]&&$0(i),Q=i[39]&&ep(i),A=i[54].value!=="off"&&tp(i),ee=i[37]&&ip(i),Te=i[22]&&np(i);b=new mr({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),y=new V0({props:{data:i[103]}});function je(J){i[158](J)}let Ke={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ke.menuElementRef=i[32]),v=new xc({props:Ke}),pe.push(()=>Fe(v,"menuElementRef",je));let Je=i[42]&&op(i),We=i[62]&&lp(i),ye=i[63]&&rp(i);return{c(){D(e.$$.fragment),t=O(),ne&&ne.c(),n=O(),E&&E.c(),o=O(),ie&&ie.c(),r=O(),x&&x.c(),l=O(),j&&j.c(),a=O(),X&&X.c(),s=O(),M&&M.c(),u=O(),Q&&Q.c(),c=O(),A&&A.c(),m=O(),ee&&ee.c(),h=O(),Te&&Te.c(),w=O(),D(b.$$.fragment),S=O(),D(y.$$.fragment),P=O(),D(v.$$.fragment),I=O(),Je&&Je.c(),N=O(),We&&We.c(),K=O(),ye&&ye.c(),q=ot()},m(J,ve){B(e,J,ve),C(J,t,ve),ne&&ne.m(J,ve),C(J,n,ve),E&&E.m(J,ve),C(J,o,ve),ie&&ie.m(J,ve),C(J,r,ve),x&&x.m(J,ve),C(J,l,ve),j&&j.m(J,ve),C(J,a,ve),X&&X.m(J,ve),C(J,s,ve),M&&M.m(J,ve),C(J,u,ve),Q&&Q.m(J,ve),C(J,c,ve),A&&A.m(J,ve),C(J,m,ve),ee&&ee.m(J,ve),C(J,h,ve),Te&&Te.m(J,ve),C(J,w,ve),B(b,J,ve),C(J,S,ve),B(y,J,ve),C(J,P,ve),B(v,J,ve),C(J,I,ve),Je&&Je.m(J,ve),C(J,N,ve),We&&We.m(J,ve),C(J,K,ve),ye&&ye.m(J,ve),C(J,q,ve),se=!0},p(J,ve){let He={};ve[0]&32|ve[1]&192&&(He.hidden=J[38]!=="thumb"||J[37]||J[92]&&J[5]),ve[0]&8&&(He.thumbUrl=J[3]),ve[0]&536870912&&(He.startVideo=J[29]),e.$set(He),J[38]==="waitingLive"?ne?(ne.p(J,ve),ve[1]&128&&d(ne,1)):(ne=Q0(J),ne.c(),d(ne,1),ne.m(n.parentNode,n)):ne&&(fe(),_(ne,1,1,()=>{ne=null}),ce()),J[38]==="waitingRecord"?E?ve[1]&128&&d(E,1):(E=Y0(J),E.c(),d(E,1),E.m(o.parentNode,o)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),J[7]&&J[22]?ie?(ie.p(J,ve),ve[0]&4194432&&d(ie,1)):(ie=Z0(J),ie.c(),d(ie,1),ie.m(r.parentNode,r)):ie&&(fe(),_(ie,1,1,()=>{ie=null}),ce()),J[31]&&J[18]&&J[19]?x?(x.p(J,ve),ve[0]&786432|ve[1]&1&&d(x,1)):(x=X0(J),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),J[44]?j?(j.p(J,ve),ve[1]&8192&&d(j,1)):(j=J0(J),j.c(),d(j,1),j.m(a.parentNode,a)):j&&(fe(),_(j,1,1,()=>{j=null}),ce()),J[49]?X?(X.p(J,ve),ve[1]&262144&&d(X,1)):(X=x0(J),X.c(),d(X,1),X.m(s.parentNode,s)):X&&(fe(),_(X,1,1,()=>{X=null}),ce()),J[52]?M?(M.p(J,ve),ve[1]&2097152&&d(M,1)):(M=$0(J),M.c(),d(M,1),M.m(u.parentNode,u)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),J[39]?Q?(Q.p(J,ve),ve[1]&256&&d(Q,1)):(Q=ep(J),Q.c(),d(Q,1),Q.m(c.parentNode,c)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce()),J[54].value!=="off"?A?(A.p(J,ve),ve[1]&8388608&&d(A,1)):(A=tp(J),A.c(),d(A,1),A.m(m.parentNode,m)):A&&(fe(),_(A,1,1,()=>{A=null}),ce()),J[37]?ee?(ee.p(J,ve),ve[1]&64&&d(ee,1)):(ee=ip(J),ee.c(),d(ee,1),ee.m(h.parentNode,h)):ee&&(fe(),_(ee,1,1,()=>{ee=null}),ce()),J[22]?Te?(Te.p(J,ve),ve[0]&4194304&&d(Te,1)):(Te=np(J),Te.c(),d(Te,1),Te.m(w.parentNode,w)):Te&&(fe(),_(Te,1,1,()=>{Te=null}),ce());let Xe={};ve[1]&134217728&&(Xe.isLive=J[58]),ve[1]&4096&&(Xe.isHidden=!J[43]),ve[1]&268435456&&(Xe.isPlaying=J[59]),ve[1]&33554432&&(Xe.position=J[56]),ve[1]&536870912&&(Xe.duration=J[60]),b.$set(Xe);let xe={};ve[0]&2097152&&(xe.supportLink=J[21]),ve[1]&131072&&(xe.returnFocus=J[157]),ve[1]&4&&(xe.visible=J[33]),ve[1]&512&&(xe.playerContainerRef=J[40]),ve[1]&1024&&(xe.controlsContainerRef=J[41]),ve[1]&1073741824&&(xe.position=J[61]),!g&&ve[1]&2&&(g=!0,xe.menuElementRef=J[32],Oe(()=>g=!1)),v.$set(xe),J[42]?Je?ve[1]&2048&&d(Je,1):(Je=op(J),Je.c(),d(Je,1),Je.m(N.parentNode,N)):Je&&(fe(),_(Je,1,1,()=>{Je=null}),ce()),J[62]?We?ve[2]&1&&d(We,1):(We=lp(J),We.c(),d(We,1),We.m(K.parentNode,K)):We&&(fe(),_(We,1,1,()=>{We=null}),ce()),J[63]?ye?ve[2]&2&&d(ye,1):(ye=rp(J),ye.c(),d(ye,1),ye.m(q.parentNode,q)):ye&&(fe(),_(ye,1,1,()=>{ye=null}),ce())},i(J){se||(d(e.$$.fragment,J),d(ne),d(E),d(ie),d(x),d(j),d(X),d(M),d(Q),d(A),d(ee),d(Te),d(b.$$.fragment,J),d(y.$$.fragment,J),d(v.$$.fragment,J),d(Je),d(We),d(ye),se=!0)},o(J){_(e.$$.fragment,J),_(ne),_(E),_(ie),_(x),_(j),_(X),_(M),_(Q),_(A),_(ee),_(Te),_(b.$$.fragment,J),_(y.$$.fragment,J),_(v.$$.fragment,J),_(Je),_(We),_(ye),se=!1},d(J){J&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(w),k(S),k(P),k(I),k(N),k(K),k(q)),R(e,J),ne&&ne.d(J),E&&E.d(J),ie&&ie.d(J),x&&x.d(J),j&&j.d(J),X&&X.d(J),M&&M.d(J),Q&&Q.d(J),A&&A.d(J),ee&&ee.d(J),Te&&Te.d(J),R(b,J),R(y,J),R(v,J),Je&&Je.d(J),We&&We.d(J),ye&&ye.d(J)}}}function z5(i){let e,t,n,o,r=i[51],l,a,s,u,c=sp(i);return{c(){e=T("div"),t=T("div"),o=O(),c.c(),l=ot(),f(t,"class","video-container svelte-1o4wf3x"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),F(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-1o4wf3x"),F(e,"hidden",i[38]!=="video"),F(e,"nocursor",i[45])},m(m,h){C(m,e,h),p(e,t),i[154](t),C(m,o,h),c.m(m,h),C(m,l,h),a=!0,s||(u=[me(e,"contextmenu",Bt(i[108])),me(e,"mousedown",Bt(i[113])),me(e,"mouseup",Bt(i[114])),me(e,"click",Bt(i[116])),me(e,"dblclick",Bt(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[0]&2)&&F(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&F(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&F(e,"nocursor",m[45]),h[1]&1048576&&z(r,r=m[51])?(fe(),_(c,1,1,de),ce(),c=sp(m),c.c(),d(c,1),c.m(l.parentNode,l)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){_(c),a=!1},d(m){m&&(k(e),k(o),k(l)),i[154](null),c.d(m),s=!1,tt(u)}}}function q5(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[z5]},$$scope:{ctx:i}};return t=new b1({props:s}),i[159](t),{c(){e=T("div"),D(t.$$.fragment),n=O(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-1o4wf3x")},m(u,c){C(u,e,c),B(t,e,null),p(e,n),p(e,o),i[160](o),i[161](e),r=!0,l||(a=[me(F5,"blur",i[107]),me(e,"mouseenter",i[109]),me(e,"mouseleave",i[111]),me(e,"mousemove",i[112]),me(e,"click",i[120],!0),me(e,"focusin",i[110],!0)],l=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1073741823|c[1]&2147418111|c[2]&3|c[6]&1&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&k(e),i[159](null),R(t),i[160](null),i[161](null),l=!1,tt(a)}}}var up=!0;function cf(i){return i?i.offsetTop+cf(i.offsetParent):0}function fp(i){return i?i.offsetLeft+fp(i.offsetParent):0}function U5(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,ie,x,j,X,M,Q,A,ee,Te,je,Ke,Je,We,ye,J,ve,He,Xe,xe,{store:he}=e,{uiConfig:Be}=e,{title:Ue}=e,{thumbUrl:it}=e,{videoContainer:ke}=e,{interactiveContainer:Y}=e,{live:Ce}=e,{autoplay:ue}=e,{canRewindLive:Ie}=e,{showAds:Ye}=e,{adsSlotId:at=void 0}=e,{adsParams:dt=void 0}=e,{adsPreviewParam:ut=void 0}=e,{duration:kt=void 0}=e,{logoClickable:bt}=e,{logoHidden:we}=e,{logoTargetUrl:pt=""}=e,{showNextPrevButtons:Nt=!1}=e,{nextButtonActive:Mt=!1}=e,{prevButtonActive:ze=!1}=e,{endScreenVideoTitle:Ut=void 0}=e,{endScreenVideoThumb:_e=void 0}=e,{isOneVideoPlaylist:Vt=!1}=e,{supportLink:Lt}=e,{outerContainerRef:_t=void 0}=e,{playerStarted:ht=!1}=e,{fullScreenTarget:lt=void 0}=e,{showMiniTimer:Ae=!1}=e,{playNextVideo:mt=us.noop}=e,{playPrevVideo:Jt=us.noop}=e,{repeatPlaylist:xt=us.noop}=e,{seekToInteractive:$i}=e,{toggleGraph:dn}=e,{playPrevChapter:pi}=e,{firstStart:_i}=e,Ii=he.getLogger().createComponentLog("Root component"),ni=he.interfaceLanguage$;H(i,ni,Z=>t(51,A=Z));let hi=he.state.playbackState$;H(i,hi,Z=>t(151,X=Z));let en=he.ads.playbackState;H(i,en,Z=>t(152,M=Z));let Ei=he.state.positionWithScrubbing$;H(i,Ei,Z=>t(56,Je=Z));let Mi=he.state.duration$;H(i,Mi,Z=>t(60,ve=Z));let gi=he.playerPhase;H(i,gi,Z=>t(38,ne=Z));let Vi=he.ui.isFullscreen;H(i,Vi,Z=>t(141,b=Z));let bi=he.ui.controlsVisible;H(i,bi,Z=>t(36,I=Z));let Li=he.ui.settingsMenuVisible;H(i,Li,Z=>t(139,s=Z));let Ai=he.ui.scrubbingInProgress;H(i,Ai,Z=>t(143,v=Z));let Ft=he.ui.contextMenu.visible$;H(i,Ft,Z=>t(33,n=Z));let Kt=he.ui.debugPanelVisible;H(i,Kt,Z=>t(63,xe=Z));let Ht=he.state.isLoaderVisible;H(i,Ht,Z=>t(153,Q=Z));let vi=he.state.isEnded$;H(i,vi,Z=>t(140,c=Z));let Zt=he.state.chromecastConnected$;H(i,Zt,Z=>t(39,x=Z));let yi=he.state.chromecastDeviceName$;H(i,yi,Z=>t(53,Te=Z));let oi=he.ads.postrollPassed;H(i,oi,Z=>t(146,q=Z));let ui=he.state.isLive$;H(i,ui,Z=>t(58,ye=Z));let vt=he.state.isPlaying$;H(i,vt,Z=>t(59,J=Z));let Wt=he.state.crashed$;H(i,Wt,Z=>t(37,K=Z));let St=he.webApi.pictureInPictureApi,li=he.state.currentSubtitle$;H(i,li,Z=>t(54,je=Z));let wi=he.state.currentSubtitleCaptions$;H(i,wi,Z=>t(55,Ke=Z));let bn=he.state.duration$;H(i,bn,Z=>t(57,We=Z));let tn=he.state.graphIsOpened$;H(i,tn,Z=>t(147,se=Z));let ri=he.ui.playerSize;H(i,ri,Z=>t(34,h=Z));let fi=he.ui.is3DVideo;H(i,fi,Z=>t(49,m=Z));let Bi=he.ui.icon3DVideoVisible;H(i,Bi,Z=>t(52,ee=Z));let Gi=he.ui.rotateAlpha;H(i,Gi,Z=>t(35,P=Z));let $t=he.state.isInteractive,At=he.state.isInteractiveTime$;H(i,At,Z=>t(144,g=Z));let Ri=he.state.isInteractiveExpectation$;H(i,Ri,Z=>t(150,j=Z));let nn=he.state.hasInteractiveBranches,ci=he.ui.touched;H(i,ci,Z=>t(148,E=Z));let on=he.ui.modals.hotKeyMap.data;H(i,on,Z=>t(168,u=Z));let ki=he.ui.modals.hotKeyMap.show;H(i,ki,Z=>t(62,Xe=Z));let mn=he.ui.overlayContainer$,ln=he.ui.controls.interactiveTimeIndicator;H(i,ln,Z=>t(169,w=Z));let pn=he.state.showInteractiveTimeIndicator,ji=he.ui.contextMenu.position$;H(i,ji,Z=>t(61,He=Z));let Di=he.actions.internal.closeSettingsMenu,{fakeIsPlaying$:ei}=Dn();H(i,ei,Z=>t(142,y=Z));let si,Ci,Qi,Yi,Si;on.set(Mc());let Ni,Oi,Ze=Ne(!1);H(i,Ze,Z=>t(50,S=Z));let Zi,Xt=Ne(!1);H(i,Xt,Z=>t(149,ie=Z));let qe=Ne(),Fi=Ne(!1);H(i,Fi,Z=>t(145,N=Z));let rn=!1,Xi=!1,Hi,_n,zi,sn,ti,an,di=!1,ae,ct=!1,{toggle:ii}=ei,ai=!1,qi=null,Gt;St==null||St.setContext(kl());let Vn=()=>{ue&&!$t&&jt(Be.controls.hideTimeout)};he.setUiCallbacks({onStarted:Vn});let Ln=()=>{window.clearTimeout(Qi),Xt.set(!1)},Cn=()=>{window.clearTimeout(Yi),qe.set(null)},jt=Z=>{Ln(),Xt.set(!0),Qi=window.setTimeout(()=>Xt.set(!1),Z);let Ct=Z-100;Zi=window.setTimeout(()=>{S&&Ze.set(!1)},Ct>0?Ct:Z)},An=(Z,Ct)=>{Cn(),qe.set(Ct),Yi=window.setTimeout(()=>qe.set(null),Z)},jn=fi.subscribe(Z=>{Bi.set(Z),Z&&(window.clearTimeout(Si),Si=window.setTimeout(()=>Bi.set(!1),Be.controls.hide360IconTimeout))}),Bn=async()=>{var Ct,un,Ji,V;let Z=co();if(Z){jt(Be.controls.hideTimeoutFullscreen);try{await(St==null?void 0:St.remove())}catch(re){Ii({message:String(re)})}}Vi.set(Z),he.getAdmanWrapper().setFullscreen(Z),b?(un=(Ct=he.callbacks)==null?void 0:Ct.onFullscreenEnter)==null||un.call(Ct):(V=(Ji=he.callbacks)==null?void 0:Ji.onFullscreenExit)==null||V.call(Ji)},Fn=Z=>{let Ct=Z;ri.set({width:Ct.target.width,height:Ct.target.height})};Rt(()=>{var Ct;return ur(Bn),Ro(St)&&(St==null||St.assignPlayerContainer(si),St==null||St.registryExternalEventHandlers({resize:Fn})),Y&&((Ct=ke.parentElement)==null||Ct.insertBefore(Y,ke.nextSibling)),()=>{window.clearTimeout(Qi),window.clearTimeout(Zi),window.clearTimeout(Yi),window.clearTimeout(Si),jn(),St==null||St.dispose(),fr(Bn)}});let Sn=async()=>{if(co())await ar(document),Ii({message:"exit fullscreen"});else{Ii({message:"request fullscreen"});let Z=_t!=null?_t:si,Ct=Z.getRootNode(),un=Ct instanceof ShadowRoot?Ct.host:Ct,Ji=lt instanceof HTMLElement&<.contains(un),V=Be.allowChangingFullscreenTarget&<&&Ji?lt:Z;await sr(V)}},vn=()=>{Di(),Ft.set(!1)},Hn=Z=>{Ft.set(!0),ji.set({left:Z.clientX,top:Z.clientY})};function zn(){Fi.set(!0),$t||jt(Be.controls.hideTimeoutCursor)}function oe(){$t||(Ze.set(!0),jt(Be.controls.hideTimeoutCursor))}function Pt(){Fi.set(!1),t(131,Xi=!1),t(130,rn=!1),ai=!1,he.actions.internal.releaseCamera()}function Pn(Z){if(w&&pn){let Ct=Z.currentTarget,un=cf(Ct),Ji=fp(Ct),V=Z.pageX-Ji,re=Z.pageY-un,{left:Pe,bottom:Ge,right:rt}=w,wt=rt-Pe;return V>=Pe-wt&&re<=Ge+wt}}function hn(Z){if(si){let Ct=cf(Z.currentTarget),un=h.height,Ji=Z.pageY-Ct;if(Pn(Z)){t(131,Xi=!1);return}Ji<40?t(131,Xi=!0):Ji>un-40?t(130,rn=!0):(t(131,Xi=!1),s||t(130,rn=!1))}}function Tn(Z){hn(Z),_n||jt(Be.controls.hideTimeoutCursor),m&&ai&&qi&&he.actions.internal.moveCameraFocusPX(qi.clientX-Z.clientX,qi.clientY-Z.clientY,Z.timeStamp-qi.timeStamp),qi=Z}let yn=Z=>{Z.button===0&&(ai=!0,he.actions.internal.holdCamera()),jt(Be.controls.hideTimeoutCursor)},lo=Z=>{Z.button===0&&(qi=Z,ai=!1,he.actions.internal.releaseCamera()),jt(Be.controls.hideTimeoutCursor)},ro=()=>{up&&(Ii({message:"double click on video"}),Sn(),jt(Be.controls.hideTimeoutCursor))},yo=()=>{if(n||s){vn();return}if(!(c&&!nn)){if(ct)return ii();if(Gt==null||Gt.focus(),!ht){_i(),jt(Be.controls.hideTimeoutCursor);return}he.actions.internal.togglePlay(),jt(Be.controls.hideTimeoutCursor)}},xn=Z=>{vn(),ci.set(!0),jt(Be.controls.hideTimeout),Z&&An(Be.controls.hideHotKeyHelpers,Z)},wn=()=>{var Z,Ct;vn(),(Z=he.callbacks)!=null&&Z.onOpenHotKeyMap?(Ct=he.callbacks)==null||Ct.onOpenHotKeyMap(u):ki.update(un=>!un)},te=()=>{if(n||s){vn();return}},$n=()=>{ci.set(!0)},so=he.ui.contextMenu.openedByBtnKeyboard$;H(i,so,Z=>t(138,a=Z));let qo=he.ui.contextMenu.btnRef$;H(i,qo,Z=>t(137,l=Z));let Qn,ao=he.ui.contextMenu.openedByHotKey$;H(i,ao,Z=>t(136,r=Z));let Uo=he.ui.contextMenu.lastActiveElem$;H(i,Uo,Z=>t(135,o=Z));function Ko(Z){pe[Z?"unshift":"push"](()=>{ke=Z,t(0,ke)})}let vl=()=>Gt==null?void 0:Gt.focus();function eo(Z){Ci=Z,t(41,Ci)}let wo=()=>Gt==null?void 0:Gt.focus();function ko(Z){Qn=Z,t(32,Qn)}function Wo(Z){pe[Z?"unshift":"push"](()=>{Gt=Z,t(48,Gt)})}function Co(Z){pe[Z?"unshift":"push"](()=>{Oi=Z,t(30,Oi)})}function yt(Z){pe[Z?"unshift":"push"](()=>{si=Z,t(40,si)})}return i.$$set=Z=>{"store"in Z&&t(125,he=Z.store),"uiConfig"in Z&&t(1,Be=Z.uiConfig),"title"in Z&&t(2,Ue=Z.title),"thumbUrl"in Z&&t(3,it=Z.thumbUrl),"videoContainer"in Z&&t(0,ke=Z.videoContainer),"interactiveContainer"in Z&&t(126,Y=Z.interactiveContainer),"live"in Z&&t(4,Ce=Z.live),"autoplay"in Z&&t(5,ue=Z.autoplay),"canRewindLive"in Z&&t(6,Ie=Z.canRewindLive),"showAds"in Z&&t(7,Ye=Z.showAds),"adsSlotId"in Z&&t(8,at=Z.adsSlotId),"adsParams"in Z&&t(9,dt=Z.adsParams),"adsPreviewParam"in Z&&t(10,ut=Z.adsPreviewParam),"duration"in Z&&t(11,kt=Z.duration),"logoClickable"in Z&&t(12,bt=Z.logoClickable),"logoHidden"in Z&&t(13,we=Z.logoHidden),"logoTargetUrl"in Z&&t(14,pt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(15,Nt=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(16,Mt=Z.nextButtonActive),"prevButtonActive"in Z&&t(17,ze=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(18,Ut=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(19,_e=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(20,Vt=Z.isOneVideoPlaylist),"supportLink"in Z&&t(21,Lt=Z.supportLink),"outerContainerRef"in Z&&t(127,_t=Z.outerContainerRef),"playerStarted"in Z&&t(22,ht=Z.playerStarted),"fullScreenTarget"in Z&&t(128,lt=Z.fullScreenTarget),"showMiniTimer"in Z&&t(129,Ae=Z.showMiniTimer),"playNextVideo"in Z&&t(23,mt=Z.playNextVideo),"playPrevVideo"in Z&&t(24,Jt=Z.playPrevVideo),"repeatPlaylist"in Z&&t(25,xt=Z.repeatPlaylist),"seekToInteractive"in Z&&t(26,$i=Z.seekToInteractive),"toggleGraph"in Z&&t(27,dn=Z.toggleGraph),"playPrevChapter"in Z&&t(28,pi=Z.playPrevChapter),"firstStart"in Z&&t(29,_i=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Ni=(ne==="video"&&Q||ne==="ads"&&M==="inactive")&&!K);if(i.$$.dirty[0]&1073741824)e:mn.set(Oi);if(i.$$.dirty[4]&134217728)e:t(132,Hi=X!==ap.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,_n=g&&!s&&!(rn||Xi)&&!(Hi&&!j));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:bi.set((Hi||s||v||x||ie)&&!_n&&(ne==="video"||ne==="ads")&&!K);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,zi=Be.features.thumbTimer&&Ae&&ne==="video"&&!I&&!K&&!$t&&(Be.hideThumbTimerAfterTouch&&!E||!Be.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,sn=ne==="video"&&!se&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,ti=(Ye&&q||!Ye)&&c&&!K);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,an=N&&!(I||ti)&&!g);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!v&&di&&!g&&jt(Be.controls.hideTimeoutCursor),t(134,di=v);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,ae=ke&&P%180?h.height/h.width:1);if(i.$$.dirty[4]&262144)e:t(47,ct=y!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:Oo(Qn,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let Z=l;Z&&ol(Z,n,so)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Oo(Qn,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let Z=o;Z&&Gc(Z,n,ao)}},[ke,Be,Ue,it,Ce,ue,Ie,Ye,at,dt,ut,kt,bt,we,pt,Nt,Mt,ze,Ut,_e,Vt,Lt,ht,mt,Jt,xt,$i,dn,pi,_i,Oi,ti,Qn,n,h,P,I,K,ne,x,si,Ci,Ni,zi,sn,an,ae,ct,Gt,m,S,A,ee,Te,je,Ke,Je,We,ye,J,ve,He,Xe,xe,ni,hi,en,Ei,Mi,gi,Vi,bi,Li,Ai,Ft,Kt,Ht,vi,Zt,yi,oi,ui,vt,Wt,li,wi,bn,tn,ri,fi,Bi,Gi,$t,At,Ri,ci,on,ki,ln,ji,ei,Ze,Xt,qe,Fi,ii,Sn,vn,Hn,zn,oe,Pt,Tn,yn,lo,ro,yo,xn,wn,te,$n,so,qo,ao,Uo,he,Y,_t,lt,Ae,rn,Xi,Hi,_n,di,o,r,l,a,s,c,b,y,v,g,N,q,se,E,ie,j,X,M,Q,Ko,vl,eo,wo,ko,Wo,Co,yt]}var df=class extends U{constructor(e){super(),W(this,e,U5,q5,z,{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},H5,[-1,-1,-1,-1,-1,-1,-1])}},cp=df;var Vp=require("@vkontakte/videoplayer-core"),zo=require("@vkontakte/videoplayer-shared");var ml=require("@vkontakte/videoplayer-shared"),dp=i=>{if(!(0,ml.isIOS)(!0))return!1;let e=i.device===ml.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,ml.getIOSVersion)();return!e||e&&!!t&&t<16};function K5(i){Se(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function mp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y=G("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",P;return{c(){e=T("div"),n=O(),o=T("div"),r=T("div"),l=T("div"),s=O(),u=T("div"),m=O(),h=T("div"),b=O(),S=T("p"),P=De(y),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",w="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(S,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(v,g){C(v,e,g),C(v,n,g),C(v,o,g),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,b),p(o,S),p(S,P)},p(v,g){g&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&f(e,"class",t),g&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&f(l,"class",a),g&1&&c!==(c="triangle "+v[0]+" svelte-nhq2ld")&&f(u,"class",c),g&1&&w!==(w="triangle "+v[0]+" svelte-nhq2ld")&&f(h,"class",w),g&2&&y!==(y=G("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Qe(P,y)},d(v){v&&(k(e),k(n),k(o))}}}function W5(i){let e,t,n,o,r=i[2]&&mp(i);return{c(){e=T("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){C(l,e,a),r&&r.m(e,null),n||(o=me(e,"click",st(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=mp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:de,o:de,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function G5(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,c=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(s),h=0,l(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Un(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,c,r,l]}var mf=class extends U{constructor(e){super(),W(this,e,G5,W5,z,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},K5)}},pf=mf;function j5(i,e,t){let{playNextVideo:n}=e;return Rt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var _f=class extends U{constructor(e){super(),W(this,e,j5,null,z,{playNextVideo:0})}},pp=_f;var{window:Q5}=Po;function Y5(i){Se(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 _p(i){let e,t,n,o;e=new pf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let r=!i[48]&&hp(i);return{c(){D(e.$$.fragment),t=O(),r&&r.c(),n=ot()},m(l,a){B(e,l,a),C(l,t,a),r&&r.m(l,a),C(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[48]?r&&(fe(),_(r,1,1,()=>{r=null}),ce()):r?(r.p(l,a),a[1]&131072&&d(r,1)):(r=hp(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(k(t),k(n)),R(e,l),r&&r.d(l)}}}function hp(i){let e,t;return e=new pf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gp(i){var n;let e,t;return e=new ss({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function bp(i){let e,t;return e=new as({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function vp(i){let e,t,n;return t=new cr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-1jy89ut"),F(e,"hidden",i[34]!=="ads")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&8)&&F(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function yp(i){let e,t;return e=new pp({props:{playNextVideo:i[22]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function wp(i){let e,t;return e=new is({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function kp(i){let e,t,n;return t=new ir({props:{"aria-label":G("video360")}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Cp(i){let e,t;return e=new os({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&1048576&&(r.chromecastDeviceName=n[51]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sp(i){let e,t;return e=new ns({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&4194304&&(r.captions=n[53]),o[1]&8192&&(r.position=n[44]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Pp(i){let e,t,n,o,r;return t=new ls({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),B(t,e,null),n=!0,o||(r=me(e,"click",st(i[101])),o=!0)},p:de,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,r()}}}function Tp(i){let e,t,n;function o(l){i[132](l)}let r={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&&(r.controlsElementRef=i[37]),e=new ts({props:r}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.bottomHidden=l[34]==="thumb"||l[34]==="waitingLive"||l[34]==="waitingRecord"||l[34]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&16384&&(s.bottomNoSmooth=l[45]),a[1]&8&&(s.isAds=l[34]==="ads"),a[0]&32|a[1]&8388608&&(s.canRewindLive=l[5]&&l[54]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&256&&(s.customFullscreenSupported=l[39]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=l[37],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Ip(i){let e,t;return e=new yr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ep(i){let e,t;return e=new gr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mp(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g;e=new rs({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&_p(i),N=i[34]==="waitingLive"&&gp(i),K=i[34]==="waitingRecord"&&bp(i),q=i[6]&&i[21]&&vp(i),se=i[41]&&i[17]&&i[18]&&yp(i),ne=i[49]&&wp(i),E=i[50]&&kp(i),ie=i[35]&&Cp(i),x=i[52].value!=="off"&&Sp(i),j=i[33]&&Pp(i),X=i[21]&&Tp(i);S=new mr({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let M=i[38]&&Ip(i),Q=i[57]&&Ep(i);return{c(){D(e.$$.fragment),t=O(),I&&I.c(),o=O(),N&&N.c(),r=O(),K&&K.c(),l=O(),q&&q.c(),a=O(),se&&se.c(),s=O(),ne&&ne.c(),u=O(),E&&E.c(),c=O(),ie&&ie.c(),m=O(),x&&x.c(),h=O(),j&&j.c(),w=O(),X&&X.c(),b=O(),D(S.$$.fragment),y=O(),M&&M.c(),P=O(),Q&&Q.c(),v=ot()},m(A,ee){B(e,A,ee),C(A,t,ee),I&&I.m(A,ee),C(A,o,ee),N&&N.m(A,ee),C(A,r,ee),K&&K.m(A,ee),C(A,l,ee),q&&q.m(A,ee),C(A,a,ee),se&&se.m(A,ee),C(A,s,ee),ne&&ne.m(A,ee),C(A,u,ee),E&&E.m(A,ee),C(A,c,ee),ie&&ie.m(A,ee),C(A,m,ee),x&&x.m(A,ee),C(A,h,ee),j&&j.m(A,ee),C(A,w,ee),X&&X.m(A,ee),C(A,b,ee),B(S,A,ee),C(A,y,ee),M&&M.m(A,ee),C(A,P,ee),Q&&Q.m(A,ee),C(A,v,ee),g=!0},p(A,ee){let Te={};ee[0]&16|ee[1]&12&&(Te.hidden=A[34]!=="thumb"||A[33]||A[89]&&A[4]),ee[0]&4&&(Te.thumbUrl=A[2]),ee[0]&268435456&&(Te.startVideo=A[28]),e.$set(Te),ee[0]&32|ee[1]&65536&&(n=A[5]&&A[78]&&!A[47].has("TIMELINE")),n?I?(I.p(A,ee),ee[0]&32|ee[1]&65536&&d(I,1)):(I=_p(A),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),A[34]==="waitingLive"?N?(N.p(A,ee),ee[1]&8&&d(N,1)):(N=gp(A),N.c(),d(N,1),N.m(r.parentNode,r)):N&&(fe(),_(N,1,1,()=>{N=null}),ce()),A[34]==="waitingRecord"?K?ee[1]&8&&d(K,1):(K=bp(A),K.c(),d(K,1),K.m(l.parentNode,l)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),A[6]&&A[21]?q?(q.p(A,ee),ee[0]&2097216&&d(q,1)):(q=vp(A),q.c(),d(q,1),q.m(a.parentNode,a)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),A[41]&&A[17]&&A[18]?se?(se.p(A,ee),ee[0]&393216|ee[1]&1024&&d(se,1)):(se=yp(A),se.c(),d(se,1),se.m(s.parentNode,s)):se&&(fe(),_(se,1,1,()=>{se=null}),ce()),A[49]?ne?ee[1]&262144&&d(ne,1):(ne=wp(A),ne.c(),d(ne,1),ne.m(u.parentNode,u)):ne&&(fe(),_(ne,1,1,()=>{ne=null}),ce()),A[50]?E?(E.p(A,ee),ee[1]&524288&&d(E,1)):(E=kp(A),E.c(),d(E,1),E.m(c.parentNode,c)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),A[35]?ie?(ie.p(A,ee),ee[1]&16&&d(ie,1)):(ie=Cp(A),ie.c(),d(ie,1),ie.m(m.parentNode,m)):ie&&(fe(),_(ie,1,1,()=>{ie=null}),ce()),A[52].value!=="off"?x?(x.p(A,ee),ee[1]&2097152&&d(x,1)):(x=Sp(A),x.c(),d(x,1),x.m(h.parentNode,h)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),A[33]?j?(j.p(A,ee),ee[1]&4&&d(j,1)):(j=Pp(A),j.c(),d(j,1),j.m(w.parentNode,w)):j&&(fe(),_(j,1,1,()=>{j=null}),ce()),A[21]?X?(X.p(A,ee),ee[0]&2097152&&d(X,1)):(X=Tp(A),X.c(),d(X,1),X.m(b.parentNode,b)):X&&(fe(),_(X,1,1,()=>{X=null}),ce());let je={};ee[1]&16777216&&(je.isLive=A[55]),ee[1]&512&&(je.isHidden=!A[40]),ee[1]&33554432&&(je.isPlaying=A[56]),ee[1]&8192&&(je.position=A[44]),ee[1]&4096&&(je.duration=A[43]),S.$set(je),A[38]?M?ee[1]&128&&d(M,1):(M=Ip(A),M.c(),d(M,1),M.m(P.parentNode,P)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),A[57]?Q?ee[1]&67108864&&d(Q,1):(Q=Ep(A),Q.c(),d(Q,1),Q.m(v.parentNode,v)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce())},i(A){g||(d(e.$$.fragment,A),d(I),d(N),d(K),d(q),d(se),d(ne),d(E),d(ie),d(x),d(j),d(X),d(S.$$.fragment,A),d(M),d(Q),g=!0)},o(A){_(e.$$.fragment,A),_(I),_(N),_(K),_(q),_(se),_(ne),_(E),_(ie),_(x),_(j),_(X),_(S.$$.fragment,A),_(M),_(Q),g=!1},d(A){A&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(w),k(b),k(y),k(P),k(v)),R(e,A),I&&I.d(A),N&&N.d(A),K&&K.d(A),q&&q.d(A),se&&se.d(A),ne&&ne.d(A),E&&E.d(A),ie&&ie.d(A),x&&x.d(A),j&&j.d(A),X&&X.d(A),R(S,A),M&&M.d(A),Q&&Q.d(A)}}}function Z5(i){let e,t,n,o,r,l=i[46],a,s,u,c,m,h,w=Mp(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),w.c(),a=O(),s=T("div"),f(n,"class","video-container svelte-1jy89ut"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),F(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-1jy89ut"),F(t,"hidden",i[34]!=="video"),f(s,"class","overlay-container"),f(e,"class","player-wrapper svelte-1jy89ut"),f(e,"role","region"),f(e,"aria-label",u=G("aria_label_video_player")),f(e,"tabindex","-1")},m(b,S){C(b,e,S),p(e,t),p(t,n),i[129](n),p(e,r),w.m(e,null),p(e,a),p(e,s),i[133](s),i[134](e),c=!0,m||(h=[me(Q5,"blur",i[99]),me(t,"click",Bt(i[100])),me(e,"click",i[102],!0),me(e,"focusin",i[103],!0)],m=!0)},p(b,S){(!c||S[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&f(n,"style",o),(!c||S[0]&2)&&F(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!c||S[1]&8)&&F(t,"hidden",b[34]!=="video"),S[1]&32768&&z(l,l=b[46])?(fe(),_(w,1,1,de),ce(),w=Mp(b),w.c(),d(w,1),w.m(e,a)):w.p(b,S)},i(b){c||(d(w),c=!0)},o(b){_(w),c=!1},d(b){b&&k(e),i[129](null),w.d(b),i[133](null),i[134](null),m=!1,tt(h)}}}function X5(i,e,t){var Hn,zn;let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K,q,se,ne,E,ie,x,j,X,M,Q,A,ee,Te,je,Ke,Je,We,{store:ye}=e,{uiConfig:J}=e,{thumbUrl:ve}=e,{videoContainer:He}=e,{interactiveContainer:Xe}=e,{live:xe}=e,{autoplay:he}=e,{canRewindLive:Be}=e,{showAds:Ue}=e,{adsSlotId:it=void 0}=e,{adsParams:ke=void 0}=e,{adsPreviewParam:Y=void 0}=e,{duration:Ce=void 0}=e,{logoClickable:ue}=e,{logoHidden:Ie}=e,{logoTargetUrl:Ye=""}=e,{showNextPrevButtons:at=!1}=e,{nextButtonActive:dt=!1}=e,{prevButtonActive:ut=!1}=e,{endScreenVideoTitle:kt=void 0}=e,{endScreenVideoThumb:bt=void 0}=e,{isOneVideoPlaylist:we=!1}=e,{supportLink:pt}=e,{outerContainerRef:Nt=void 0}=e,{showMiniTimer:Mt=!1}=e,{fullScreenTarget:ze=void 0}=e,{playerStarted:Ut=!1}=e,{playNextVideo:_e=zo.noop}=e,{playPrevVideo:Vt=zo.noop}=e,{repeatPlaylist:Lt=zo.noop}=e,{seekToInteractive:_t}=e,{toggleGraph:ht}=e,{playPrevChapter:lt}=e,{firstStart:Ae}=e,{seekTime:mt}=e,Jt=ye.getLogger().createComponentLog("Root component"),xt=ye.interfaceLanguage$;H(i,xt,oe=>t(46,x=oe));let $i=ye.state.playbackState$;H(i,$i,oe=>t(126,ne=oe));let dn=ye.ads.playbackState;H(i,dn,oe=>t(127,E=oe));let pi=ye.state.positionWithScrubbing$;H(i,pi,oe=>t(44,a=oe));let _i=ye.state.duration$;H(i,_i,oe=>t(43,l=oe));let Ii=ye.playerPhase;H(i,Ii,oe=>t(34,N=oe));let ni=ye.ui.isFullscreen;H(i,ni,oe=>t(141,u=oe));let hi=ye.ui.controlsVisible;H(i,hi,oe=>t(30,o=oe));let en=ye.ui.interactiveHideMobileControls;H(i,en,oe=>t(118,w=oe));let Ei=ye.ui.settingsMenuVisible;H(i,Ei,oe=>t(117,n=oe));let Mi=ye.ui.scrubbingInProgress;H(i,Mi,oe=>t(119,S=oe));let gi=ye.ui.debugPanelVisible;H(i,gi,oe=>t(57,We=oe));let Vi=ye.state.isLoaderVisible;H(i,Vi,oe=>t(128,ie=oe));let bi=ye.state.isEnded$;H(i,bi,oe=>t(121,v=oe));let Li=ye.state.chromecastConnected$;H(i,Li,oe=>t(35,K=oe));let Ai=ye.state.chromecastDeviceName$;H(i,Ai,oe=>t(51,A=oe));let Ft=ye.ads.postrollPassed;H(i,Ft,oe=>t(122,g=oe));let Kt=ye.ui.mobileUnmuteButtonExpanded,Ht=ye.ui.mobileUnmuteButtonVisible,vi=ye.state.isLive$;H(i,vi,oe=>t(55,Ke=oe));let Zt=ye.state.isPlaying$;H(i,Zt,oe=>t(56,Je=oe));let yi=ye.state.isActiveLive$;H(i,yi,oe=>t(48,X=oe));let oi=ye.state.isRewindableLive$,ui=ye.state.crashed$;H(i,ui,oe=>t(33,P=oe));let vt=ye.webApi.pictureInPictureApi,Wt=ye.state.videoSize$;H(i,Wt,oe=>t(142,m=oe));let St=ye.state.currentSubtitle$;H(i,St,oe=>t(52,ee=oe));let li=ye.state.currentSubtitleCaptions$;H(i,li,oe=>t(53,Te=oe));let wi=ye.state.duration$;H(i,wi,oe=>t(54,je=oe));let bn=ye.state.graphIsOpened$;H(i,bn,oe=>t(125,se=oe));let tn=ye.ui.playerSize;H(i,tn,oe=>t(31,c=oe));let ri=ye.ui.is3DVideo;H(i,ri,oe=>t(49,M=oe));let fi=ye.ui.icon3DVideoVisible;H(i,fi,oe=>t(50,Q=oe));let Bi=ye.ui.rotateAlpha;H(i,Bi,oe=>t(32,b=oe));let Gi=ye.state.isInteractive,$t=ye.state.isInteractiveTime$;H(i,$t,oe=>t(120,y=oe));let At=ye.state.isInteractiveExpectation$;H(i,At,oe=>t(124,q=oe));let Ri=ye.state.hasInteractiveBranches,nn=ye.ui.controls.disabledControls$;H(i,nn,oe=>t(47,j=oe));let ci=ye.ui.touched;H(i,ci,oe=>t(123,I=oe));let on=ye.ui.clientInfo$;H(i,on,oe=>t(140,s=oe));let ki=ye.ui.overlayContainer$,mn=ye.state.isFirstBytes$;H(i,mn,oe=>t(139,r=oe));let ln=ye.actions.internal.closeSettingsMenu,pn=(Hn=ye.callbacks)==null?void 0:Hn.onDisabledPlayPrevChapterClick,ji=(zn=ye.callbacks)==null?void 0:zn.onDisabledSeekToInteractiveClick,Di,ei,si,Ci,Qi,Yi,Si,Ni=Ne(!1);H(i,Ni,oe=>t(45,h=oe));let Oi,Ze=!1,Zi,Xt=!1,qe,Fi=!0,rn,Xi,Hi=!1,_n;vt==null||vt.setContext(kl());let zi=oe=>{clearTimeout(Ci),oe&&(Ht.set(!0),Kt.set(!0),Ci=window.setTimeout(()=>{Kt.set(!1)},J.controls.collapseMobileUnmute),Gi||ti(J.controls.hideTimeoutMobile))};ye.setUiCallbacks({onStarted:zi});let sn=()=>{window.clearTimeout(si),t(112,Ze=!1),w&&en.set(!1)},ti=oe=>{sn(),t(112,Ze=!0),si=window.setTimeout(()=>t(112,Ze=!1),oe);let Pt=oe-100;Oi=window.setTimeout(()=>{h&&Ni.set(!1)},Pt>0?Pt:oe)},an=ri.subscribe(oe=>{fi.set(oe),oe&&(window.clearTimeout(Qi),Qi=window.setTimeout(()=>fi.set(!1),J.controls.hide360IconTimeout))}),di=async()=>{var Pt,Pn,hn,Tn;let oe=co();if(oe){ti(J.controls.hideTimeoutFullscreen);try{await(vt==null?void 0:vt.remove())}catch(yn){Jt({message:String(yn)})}try{let yn=m!=null&&m.width&&(m!=null&&m.height)?m:c;await Ec(yn)}catch(yn){Jt({message:String(yn)})}}ni.set(oe),ye.getAdmanWrapper().setFullscreen(oe),u?(Pn=(Pt=ye.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||Pn.call(Pt):(Tn=(hn=ye.callbacks)==null?void 0:hn.onFullscreenExit)==null||Tn.call(hn)},ae=oe=>{let Pt=oe;tn.set({width:Pt.target.width,height:Pt.target.height})};Rt(()=>{var Pt;return ur(di),Ro(vt)&&(vt==null||vt.assignPlayerContainer(Di),vt==null||vt.registryExternalEventHandlers({resize:ae})),t(39,Fi=!dp(s)),Xe&&((Pt=He.parentElement)==null||Pt.insertBefore(Xe,He.nextSibling)),()=>{window.clearTimeout(si),window.clearTimeout(Oi),window.clearTimeout(Ci),window.clearTimeout(Qi),an(),vt==null||vt.dispose(),fr(di)}});let ct=oe=>{let Pt=a+(oe==="forward"?1:-1)*J.controls.seekStepMobile/1e3;Pt<0?Pt=0:Pt>l&&(Pt=l-1),t(114,Xt=!0),mt(Pt)},ii=async()=>{if(co())await ar(document),Jt({message:"exit fullscreen"});else{if(Jt({message:"request fullscreen"}),(0,zo.isIOS)()&&!r)return;let oe=(0,zo.isIOS)()||!Nt?Di:Nt,Pt=oe.getRootNode(),Pn=Pt instanceof ShadowRoot?Pt.host:Pt,hn=ze instanceof HTMLElement&&ze.contains(Pn),Tn=J.allowChangingFullscreenTarget&&ze&&hn?ze:oe;await sr(Tn)}},ai=()=>{ln()},qi=()=>{if(n){ai();return}if(!Ut){Ae(),ti(J.controls.hideTimeoutCursor);return}t(114,Xt=!1),o?sn():ti(J.controls.hideTimeoutMobile)},Gt=()=>{if(n){ai();return}},Vn=()=>{ci.set(!0)},Ln=()=>{Gi||(Ni.set(!0),ti(J.controls.hideTimeoutCursor))},Cn=oe=>{pn&&(pn(oe),ti(J.controls.hideTimeoutMobile))},jt=oe=>{ji&&(ji(oe),ti(J.controls.hideTimeoutMobile))};function An(oe){pe[oe?"unshift":"push"](()=>{He=oe,t(0,He)})}let jn=()=>ct("backward"),Bn=()=>ct("forward");function Fn(oe){ei=oe,t(37,ei)}function Sn(oe){pe[oe?"unshift":"push"](()=>{Si=oe,t(29,Si)})}function vn(oe){pe[oe?"unshift":"push"](()=>{Di=oe,t(36,Di)})}return i.$$set=oe=>{"store"in oe&&t(106,ye=oe.store),"uiConfig"in oe&&t(1,J=oe.uiConfig),"thumbUrl"in oe&&t(2,ve=oe.thumbUrl),"videoContainer"in oe&&t(0,He=oe.videoContainer),"interactiveContainer"in oe&&t(107,Xe=oe.interactiveContainer),"live"in oe&&t(3,xe=oe.live),"autoplay"in oe&&t(4,he=oe.autoplay),"canRewindLive"in oe&&t(5,Be=oe.canRewindLive),"showAds"in oe&&t(6,Ue=oe.showAds),"adsSlotId"in oe&&t(7,it=oe.adsSlotId),"adsParams"in oe&&t(8,ke=oe.adsParams),"adsPreviewParam"in oe&&t(9,Y=oe.adsPreviewParam),"duration"in oe&&t(10,Ce=oe.duration),"logoClickable"in oe&&t(11,ue=oe.logoClickable),"logoHidden"in oe&&t(12,Ie=oe.logoHidden),"logoTargetUrl"in oe&&t(13,Ye=oe.logoTargetUrl),"showNextPrevButtons"in oe&&t(14,at=oe.showNextPrevButtons),"nextButtonActive"in oe&&t(15,dt=oe.nextButtonActive),"prevButtonActive"in oe&&t(16,ut=oe.prevButtonActive),"endScreenVideoTitle"in oe&&t(17,kt=oe.endScreenVideoTitle),"endScreenVideoThumb"in oe&&t(18,bt=oe.endScreenVideoThumb),"isOneVideoPlaylist"in oe&&t(19,we=oe.isOneVideoPlaylist),"supportLink"in oe&&t(20,pt=oe.supportLink),"outerContainerRef"in oe&&t(108,Nt=oe.outerContainerRef),"showMiniTimer"in oe&&t(109,Mt=oe.showMiniTimer),"fullScreenTarget"in oe&&t(110,ze=oe.fullScreenTarget),"playerStarted"in oe&&t(21,Ut=oe.playerStarted),"playNextVideo"in oe&&t(22,_e=oe.playNextVideo),"playPrevVideo"in oe&&t(23,Vt=oe.playPrevVideo),"repeatPlaylist"in oe&&t(24,Lt=oe.repeatPlaylist),"seekToInteractive"in oe&&t(25,_t=oe.seekToInteractive),"toggleGraph"in oe&&t(26,ht=oe.toggleGraph),"playPrevChapter"in oe&&t(27,lt=oe.playPrevChapter),"firstStart"in oe&&t(28,Ae=oe.firstStart),"seekTime"in oe&&t(111,mt=oe.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,Yi=(N==="video"&&ie||N==="ads"&&E==="inactive")&&!P);if(i.$$.dirty[0]&536870912)e:ki.set(Si);if(i.$$.dirty[4]&4)e:t(113,Zi=ne!==Vp.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,qe=se||w||!Ze&&(v&&!!Ri||Zi&&q));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:hi.set((Zi||n||S||K||Ze&&!Xt)&&!qe&&N==="video"&&!P);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,rn=J.features.thumbTimer&&Mt&&N==="video"&&!o&&!P&&!Gi&&(J.hideThumbTimerAfterTouch&&!I||!J.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Xi=(Ue&&g||!Ue)&&v&&!P);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!S&&Hi&&!y&&ti(J.controls.hideTimeoutMobile),t(116,Hi=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,_n=He&&b%180?c.height/c.width:1)},[He,J,ve,xe,he,Be,Ue,it,ke,Y,Ce,ue,Ie,Ye,at,dt,ut,kt,bt,we,pt,Ut,_e,Vt,Lt,_t,ht,lt,Ae,Si,o,c,b,P,N,K,Di,ei,Yi,Fi,rn,Xi,_n,l,a,h,x,j,X,M,Q,A,ee,Te,je,Ke,Je,We,xt,$i,dn,pi,_i,Ii,ni,hi,en,Ei,Mi,gi,Vi,bi,Li,Ai,Ft,vi,Zt,yi,oi,ui,Wt,St,li,wi,bn,tn,ri,fi,Bi,Gi,$t,At,nn,ci,on,mn,Ni,ct,ii,ai,qi,Gt,Vn,Ln,Cn,jt,ye,Xe,Nt,Mt,ze,mt,Ze,Zi,Xt,qe,Hi,n,w,S,y,v,g,I,q,se,ne,E,ie,An,jn,Bn,Fn,Sn,vn]}var hf=class extends U{constructor(e){super(),W(this,e,X5,Z5,z,{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},Y5,[-1,-1,-1,-1,-1,-1])}},Lp=hf;function J5(i){Se(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(
|
|
32
|
+
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function M5(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1bcvcf2"),z(e,"hidden",i[1])},m(n,o){C(n,e,o),p(e,t)},p(n,[o]){o&1&&Ye(t,n[0]),o&2&&z(e,"hidden",n[1])},i:pe,o:pe,d(n){n&&k(e)}}}function V5(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var sf=class extends j{constructor(e){super(),W(this,e,V5,M5,U,{title:0,isHidden:1},E5)}},j0=sf;function A5(i){Se(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 W0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[0]),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_day_value")}`,l=O(),a=T("span"),a.textContent=`${Y("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&1&&Ye(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function G0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[1]),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_hour_value")}`,l=O(),a=T("span"),a.textContent=`${Y("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&2&&Ye(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function Q0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[2]),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_minute_value")}`,l=O(),a=T("span"),a.textContent=`${Y("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&4&&Ye(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function Y0(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=De(i[3]),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Ye(n,l[3])},d(l){l&&k(e)}}}function L5(i){let e,t,n,o,r=i[0]&&W0(i),l=i[1]&&G0(i),a=i[2]&&Q0(i),s=i[3]&&Y0(i);return{c(){e=T("div"),r&&r.c(),t=O(),l&&l.c(),n=O(),a&&a.c(),o=O(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){C(u,e,c),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=W0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=G0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=Q0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=Y0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:pe,o:pe,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function B5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=y=>String(y).padStart(2,"0"),m=y=>{let b=Math.floor(y/86400);b&&(y-=b*86400,t(0,r=c(b)));let S=Math.floor(y/3600);t(1,l=c(S));let w=Math.floor(y/60)%60;t(2,a=c(w));let P=y%60;t(3,s=c(P))},h=()=>{let y=Math.floor(Date.now()/1e3),b=n-y;m(b),b>=1?u=requestAnimationFrame(h):o()};return Bt(()=>{u=requestAnimationFrame(h)}),Un(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[r,l,a,s,n,o]}var af=class extends j{constructor(e){super(),W(this,e,B5,L5,U,{startTime:4,onTimerOver:5},A5)}},Z0=af;function R5(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=oe(c,u[m]);return{c(){e=N("svg"),s&&s.c(),t=N("path"),n=N("path"),o=N("path"),r=N("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),hi(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),hi(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),hi(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),hi(r,"opacity",".986"),ge(e,c)},m(m,h){C(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Ae(m[1]),null),ge(e,c=Le(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function D5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var uf=class extends j{constructor(e){super(),W(this,e,D5,R5,U,{})}},X0=uf;function N5(i){Se(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 O5(i){let e,t,n,o,r;return o=new Z0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${Y("waiting_live_timer_title")}`,n=O(),D(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){C(l,e,a),p(e,t),p(e,n),B(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&k(e),R(o)}}}function F5(i){let e,t,n,o,r,l;return n=new X0({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,s){C(a,e,s),p(e,t),B(n,t,null),p(e,o),p(e,r),l=!0},p:pe,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),R(n)}}}function H5(i){let e,t,n,o,r,l=[F5,O5],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){C(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=s(u,c),t===m?a[t].p(u,c):(fe(),_(a[m],1,1,()=>{a[m]=null}),ce(),n=a[t],n?n.p(u,c):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&k(e),a[t].d()}}}function z5(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,l]}var ff=class extends j{constructor(e){super(),W(this,e,z5,H5,U,{thumbUrl:0,startTime:1},N5)}},as=ff;function q5(i){Se(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 U5(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${Y("waiting_record_title")}`,f(t,"class","waiting-title svelte-1bcnzdw"),f(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){C(n,e,o),p(e,t)},p:pe,i:pe,o:pe,d(n){n&&k(e)}}}var cf=class extends j{constructor(e){super(),W(this,e,null,U5,U,{},q5)}},us=cf;var{window:K5}=Po;function j5(i){Se(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 x0(i){var n;let e,t;return e=new as({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function $0(i){let e,t;return e=new us({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ep(i){let e,t,n;return t=new dr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-1o4wf3x"),z(e,"hidden",i[38]!=="ads")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&z(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function tp(i){let e,t;return e=new y1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ip(i){let e,t;return e=new j0({props:{title:i[2],isHidden:!i[36]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function np(i){let e,t;return e=new ns({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function op(i){let e,t,n;return t=new nr({props:{"aria-label":Y("video360")}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function lp(i){let e,t;return e=new ls({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rp(i){let e,t;return e=new os({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function sp(i){let e,t,n,o,r;return t=new rs({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),B(t,e,null),n=!0,o||(r=[de(e,"contextmenu",Lt(i[108])),de(e,"click",st(i[119]))],o=!0)},p:pe,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,nt(r)}}}function ap(i){let e,t,n;function o(l){i[156](l)}let r={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:pp,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&&(r.controlsElementRef=i[41]),e=new is({props:r}),_e.push(()=>He(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="waitingLive"||l[38]==="waitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&67108864&&(s.canRewindLive=l[6]&&l[57]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[155]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function up(i){let e,t;return e=new wr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function fp(i){let e,t;return e=new A1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function cp(i){let e,t;return e=new br({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function dp(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re;e=new ss({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&x0(i),H=i[38]==="waitingRecord"&&$0(i),L=i[7]&&i[22]&&ep(i),x=i[31]&&i[18]&&i[19]&&tp(i),Q=i[44]&&ip(i),J=i[49]&&np(i),E=i[52]&&op(i),te=i[39]&&lp(i),M=i[54].value!=="off"&&rp(i),ee=i[37]&&sp(i),ke=i[22]&&ap(i);b=new pr({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),w=new D0({props:{data:i[103]}});function Qe(X){i[158](X)}let je={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(je.menuElementRef=i[32]),v=new i1({props:je}),_e.push(()=>He(v,"menuElementRef",Qe));let $e=i[42]&&up(i),We=i[62]&&fp(i),ve=i[63]&&cp(i);return{c(){D(e.$$.fragment),t=O(),ae&&ae.c(),n=O(),H&&H.c(),o=O(),L&&L.c(),r=O(),x&&x.c(),l=O(),Q&&Q.c(),a=O(),J&&J.c(),s=O(),E&&E.c(),u=O(),te&&te.c(),c=O(),M&&M.c(),m=O(),ee&&ee.c(),h=O(),ke&&ke.c(),y=O(),D(b.$$.fragment),S=O(),D(w.$$.fragment),P=O(),D(v.$$.fragment),I=O(),$e&&$e.c(),A=O(),We&&We.c(),q=O(),ve&&ve.c(),K=lt()},m(X,be){B(e,X,be),C(X,t,be),ae&&ae.m(X,be),C(X,n,be),H&&H.m(X,be),C(X,o,be),L&&L.m(X,be),C(X,r,be),x&&x.m(X,be),C(X,l,be),Q&&Q.m(X,be),C(X,a,be),J&&J.m(X,be),C(X,s,be),E&&E.m(X,be),C(X,u,be),te&&te.m(X,be),C(X,c,be),M&&M.m(X,be),C(X,m,be),ee&&ee.m(X,be),C(X,h,be),ke&&ke.m(X,be),C(X,y,be),B(b,X,be),C(X,S,be),B(w,X,be),C(X,P,be),B(v,X,be),C(X,I,be),$e&&$e.m(X,be),C(X,A,be),We&&We.m(X,be),C(X,q,be),ve&&ve.m(X,be),C(X,K,be),re=!0},p(X,be){let Oe={};be[0]&32|be[1]&192&&(Oe.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),be[0]&8&&(Oe.thumbUrl=X[3]),be[0]&536870912&&(Oe.startVideo=X[29]),e.$set(Oe),X[38]==="waitingLive"?ae?(ae.p(X,be),be[1]&128&&d(ae,1)):(ae=x0(X),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),X[38]==="waitingRecord"?H?be[1]&128&&d(H,1):(H=$0(X),H.c(),d(H,1),H.m(o.parentNode,o)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),X[7]&&X[22]?L?(L.p(X,be),be[0]&4194432&&d(L,1)):(L=ep(X),L.c(),d(L,1),L.m(r.parentNode,r)):L&&(fe(),_(L,1,1,()=>{L=null}),ce()),X[31]&&X[18]&&X[19]?x?(x.p(X,be),be[0]&786432|be[1]&1&&d(x,1)):(x=tp(X),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),X[44]?Q?(Q.p(X,be),be[1]&8192&&d(Q,1)):(Q=ip(X),Q.c(),d(Q,1),Q.m(a.parentNode,a)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce()),X[49]?J?(J.p(X,be),be[1]&262144&&d(J,1)):(J=np(X),J.c(),d(J,1),J.m(s.parentNode,s)):J&&(fe(),_(J,1,1,()=>{J=null}),ce()),X[52]?E?(E.p(X,be),be[1]&2097152&&d(E,1)):(E=op(X),E.c(),d(E,1),E.m(u.parentNode,u)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),X[39]?te?(te.p(X,be),be[1]&256&&d(te,1)):(te=lp(X),te.c(),d(te,1),te.m(c.parentNode,c)):te&&(fe(),_(te,1,1,()=>{te=null}),ce()),X[54].value!=="off"?M?(M.p(X,be),be[1]&8388608&&d(M,1)):(M=rp(X),M.c(),d(M,1),M.m(m.parentNode,m)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),X[37]?ee?(ee.p(X,be),be[1]&64&&d(ee,1)):(ee=sp(X),ee.c(),d(ee,1),ee.m(h.parentNode,h)):ee&&(fe(),_(ee,1,1,()=>{ee=null}),ce()),X[22]?ke?(ke.p(X,be),be[0]&4194304&&d(ke,1)):(ke=ap(X),ke.c(),d(ke,1),ke.m(y.parentNode,y)):ke&&(fe(),_(ke,1,1,()=>{ke=null}),ce());let xe={};be[1]&134217728&&(xe.isLive=X[58]),be[1]&4096&&(xe.isHidden=!X[43]),be[1]&268435456&&(xe.isPlaying=X[59]),be[1]&33554432&&(xe.position=X[56]),be[1]&536870912&&(xe.duration=X[60]),b.$set(xe);let et={};be[0]&2097152&&(et.supportLink=X[21]),be[1]&131072&&(et.returnFocus=X[157]),be[1]&4&&(et.visible=X[33]),be[1]&512&&(et.playerContainerRef=X[40]),be[1]&1024&&(et.controlsContainerRef=X[41]),be[1]&1073741824&&(et.position=X[61]),!g&&be[1]&2&&(g=!0,et.menuElementRef=X[32],Fe(()=>g=!1)),v.$set(et),X[42]?$e?be[1]&2048&&d($e,1):($e=up(X),$e.c(),d($e,1),$e.m(A.parentNode,A)):$e&&(fe(),_($e,1,1,()=>{$e=null}),ce()),X[62]?We?be[2]&1&&d(We,1):(We=fp(X),We.c(),d(We,1),We.m(q.parentNode,q)):We&&(fe(),_(We,1,1,()=>{We=null}),ce()),X[63]?ve?be[2]&2&&d(ve,1):(ve=cp(X),ve.c(),d(ve,1),ve.m(K.parentNode,K)):ve&&(fe(),_(ve,1,1,()=>{ve=null}),ce())},i(X){re||(d(e.$$.fragment,X),d(ae),d(H),d(L),d(x),d(Q),d(J),d(E),d(te),d(M),d(ee),d(ke),d(b.$$.fragment,X),d(w.$$.fragment,X),d(v.$$.fragment,X),d($e),d(We),d(ve),re=!0)},o(X){_(e.$$.fragment,X),_(ae),_(H),_(L),_(x),_(Q),_(J),_(E),_(te),_(M),_(ee),_(ke),_(b.$$.fragment,X),_(w.$$.fragment,X),_(v.$$.fragment,X),_($e),_(We),_(ve),re=!1},d(X){X&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(y),k(S),k(P),k(I),k(A),k(q),k(K)),R(e,X),ae&&ae.d(X),H&&H.d(X),L&&L.d(X),x&&x.d(X),Q&&Q.d(X),J&&J.d(X),E&&E.d(X),te&&te.d(X),M&&M.d(X),ee&&ee.d(X),ke&&ke.d(X),R(b,X),R(w,X),R(v,X),$e&&$e.d(X),We&&We.d(X),ve&&ve.d(X)}}}function W5(i){let e,t,n,o,r=i[51],l,a,s,u,c=dp(i);return{c(){e=T("div"),t=T("div"),o=O(),c.c(),l=lt(),f(t,"class","video-container svelte-1o4wf3x"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),z(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-1o4wf3x"),z(e,"hidden",i[38]!=="video"),z(e,"nocursor",i[45])},m(m,h){C(m,e,h),p(e,t),i[154](t),C(m,o,h),c.m(m,h),C(m,l,h),a=!0,s||(u=[de(e,"contextmenu",Lt(i[108])),de(e,"mousedown",Lt(i[113])),de(e,"mouseup",Lt(i[114])),de(e,"click",Lt(i[116])),de(e,"dblclick",Lt(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[0]&2)&&z(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&z(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&z(e,"nocursor",m[45]),h[1]&1048576&&U(r,r=m[51])?(fe(),_(c,1,1,pe),ce(),c=dp(m),c.c(),d(c,1),c.m(l.parentNode,l)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){_(c),a=!1},d(m){m&&(k(e),k(o),k(l)),i[154](null),c.d(m),s=!1,nt(u)}}}function G5(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[W5]},$$scope:{ctx:i}};return t=new k1({props:s}),i[159](t),{c(){e=T("div"),D(t.$$.fragment),n=O(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-1o4wf3x")},m(u,c){C(u,e,c),B(t,e,null),p(e,n),p(e,o),i[160](o),i[161](e),r=!0,l||(a=[de(K5,"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)],l=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1073741823|c[1]&2147418111|c[2]&3|c[6]&1&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&k(e),i[159](null),R(t),i[160](null),i[161](null),l=!1,nt(a)}}}var pp=!0;function df(i){return i?i.offsetTop+df(i.offsetParent):0}function _p(i){return i?i.offsetLeft+_p(i.offsetParent):0}function Q5(i,e,t){let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,ve,X,be,Oe,xe,et,{store:ye}=e,{uiConfig:Be}=e,{title:Ue}=e,{thumbUrl:Xe}=e,{videoContainer:Te}=e,{interactiveContainer:Z}=e,{live:Ce}=e,{autoplay:ue}=e,{canRewindLive:Ie}=e,{showAds:Je}=e,{adsSlotId:at=void 0}=e,{adsParams:ut=void 0}=e,{adsPreviewParam:ft=void 0}=e,{duration:ht=void 0}=e,{logoClickable:gt}=e,{logoHidden:we}=e,{logoTargetUrl:mt=""}=e,{showNextPrevButtons:It=!1}=e,{nextButtonActive:Et=!1}=e,{prevButtonActive:ze=!1}=e,{endScreenVideoTitle:qt=void 0}=e,{endScreenVideoThumb:Nt=void 0}=e,{isOneVideoPlaylist:Ut=!1}=e,{supportLink:Xt}=e,{outerContainerRef:me=void 0}=e,{playerStarted:pt=!1}=e,{fullScreenTarget:bt=void 0}=e,{showMiniTimer:Re=!1}=e,{playNextVideo:qe=fs.noop}=e,{playPrevVideo:yt=fs.noop}=e,{repeatPlaylist:Ot=fs.noop}=e,{seekToInteractive:Jt}=e,{toggleGraph:fn}=e,{playPrevChapter:gi}=e,{firstStart:bi}=e,Bi=ye.getLogger().createComponentLog("Root component"),ti=ye.interfaceLanguage$;F(i,ti,G=>t(51,M=G));let vi=ye.state.playbackState$;F(i,vi,G=>t(151,J=G));let cn=ye.ads.playbackState;F(i,cn,G=>t(152,E=G));let yi=ye.state.positionWithScrubbing$;F(i,yi,G=>t(56,$e=G));let ji=ye.state.duration$;F(i,ji,G=>t(60,be=G));let si=ye.playerPhase;F(i,si,G=>t(38,ae=G));let Ri=ye.ui.isFullscreen;F(i,Ri,G=>t(141,b=G));let wi=ye.ui.controlsVisible;F(i,wi,G=>t(36,I=G));let Wi=ye.ui.settingsMenuVisible;F(i,Wi,G=>t(139,s=G));let ki=ye.ui.scrubbingInProgress;F(i,ki,G=>t(143,v=G));let ai=ye.ui.contextMenu.visible$;F(i,ai,G=>t(33,n=G));let Vt=ye.ui.debugPanelVisible;F(i,Vt,G=>t(63,et=G));let At=ye.state.isLoaderVisible;F(i,At,G=>t(153,te=G));let Ci=ye.state.isEnded$;F(i,Ci,G=>t(140,c=G));let Si=ye.state.chromecastConnected$;F(i,Si,G=>t(39,x=G));let Gt=ye.state.chromecastDeviceName$;F(i,Gt,G=>t(53,ke=G));let ui=ye.ads.postrollPassed;F(i,ui,G=>t(146,K=G));let fi=ye.state.isLive$;F(i,fi,G=>t(58,ve=G));let vt=ye.state.isPlaying$;F(i,vt,G=>t(59,X=G));let Ft=ye.state.crashed$;F(i,Ft,G=>t(37,q=G));let kt=ye.webApi.pictureInPictureApi,Di=ye.state.currentSubtitle$;F(i,Di,G=>t(54,Qe=G));let ii=ye.state.currentSubtitleCaptions$;F(i,ii,G=>t(55,je=G));let dn=ye.state.duration$;F(i,dn,G=>t(57,We=G));let mn=ye.state.graphIsOpened$;F(i,mn,G=>t(147,re=G));let xt=ye.ui.playerSize;F(i,xt,G=>t(34,h=G));let Pi=ye.ui.is3DVideo;F(i,Pi,G=>t(49,m=G));let Gi=ye.ui.icon3DVideoVisible;F(i,Gi,G=>t(52,ee=G));let Ti=ye.ui.rotateAlpha;F(i,Ti,G=>t(35,P=G));let ci=ye.state.isInteractive,Qt=ye.state.isInteractiveTime$;F(i,Qt,G=>t(144,g=G));let $t=ye.state.isInteractiveExpectation$;F(i,$t,G=>t(150,Q=G));let Ii=ye.state.hasInteractiveBranches,ni=ye.ui.touched;F(i,ni,G=>t(148,H=G));let en=ye.ui.modals.hotKeyMap.data;F(i,en,G=>t(168,u=G));let Ei=ye.ui.modals.hotKeyMap.show;F(i,Ei,G=>t(62,xe=G));let pn=ye.ui.overlayContainer$,_n=ye.ui.controls.interactiveTimeIndicator;F(i,_n,G=>t(169,y=G));let tn=ye.state.showInteractiveTimeIndicator,Qi=ye.ui.contextMenu.position$;F(i,Qi,G=>t(61,Oe=G));let Ni=ye.actions.internal.closeSettingsMenu,{fakeIsPlaying$:ei}=Rn();F(i,ei,G=>t(142,w=G));let di,Mi,Oi,nn,Vi;en.set(Bc());let Fi,Hi,Ze=Ne(!1);F(i,Ze,G=>t(50,S=G));let Yi,Yt=Ne(!1);F(i,Yt,G=>t(149,L=G));let Ke=Ne(),on=Ne(!1);F(i,on,G=>t(145,A=G));let zi=!1,Zi=!1,ln,Xi,Cn,oi,li,Ji,mi=!1,se,dt=!1,{toggle:pi}=ei,_i=!1,ri=null,Zt;kt==null||kt.setContext(Cl());let Nn=()=>{ue&&!ci&&Kt(Be.controls.hideTimeout)};ye.setUiCallbacks({onStarted:Nn});let Vn=()=>{window.clearTimeout(Oi),Yt.set(!1)},Sn=()=>{window.clearTimeout(nn),Ke.set(null)},Kt=G=>{Vn(),Yt.set(!0),Oi=window.setTimeout(()=>Yt.set(!1),G);let wt=G-100;Yi=window.setTimeout(()=>{S&&Ze.set(!1)},wt>0?wt:G)},yn=(G,wt)=>{Sn(),Ke.set(wt),nn=window.setTimeout(()=>Ke.set(null),G)},Gn=Pi.subscribe(G=>{Gi.set(G),G&&(window.clearTimeout(Vi),Vi=window.setTimeout(()=>Gi.set(!1),Be.controls.hide360IconTimeout))}),On=async()=>{var wt,sn,xi,Ln;let G=co();if(G){Kt(Be.controls.hideTimeoutFullscreen);try{await(kt==null?void 0:kt.remove())}catch(V){Bi({message:String(V)})}}Ri.set(G),ye.getAdmanWrapper().setFullscreen(G),b?(sn=(wt=ye.callbacks)==null?void 0:wt.onFullscreenEnter)==null||sn.call(wt):(Ln=(xi=ye.callbacks)==null?void 0:xi.onFullscreenExit)==null||Ln.call(xi)},Fn=G=>{let wt=G;xt.set({width:wt.target.width,height:wt.target.height})};Bt(()=>{var wt;return fr(On),Ro(kt)&&(kt==null||kt.assignPlayerContainer(di),kt==null||kt.registryExternalEventHandlers({resize:Fn})),Z&&((wt=Te.parentElement)==null||wt.insertBefore(Z,Te.nextSibling)),()=>{window.clearTimeout(Oi),window.clearTimeout(Yi),window.clearTimeout(nn),window.clearTimeout(Vi),Gn(),kt==null||kt.dispose(),cr(On)}});let An=async()=>{if(co())await ur(document),Bi({message:"exit fullscreen"});else{Bi({message:"request fullscreen"});let G=me!=null?me:di,wt=G.getRootNode(),sn=wt instanceof ShadowRoot?wt.host:wt,xi=bt instanceof HTMLElement&&bt.contains(sn),Ln=Be.allowChangingFullscreenTarget&&bt&&xi?bt:G;await ar(Ln)}},rn=()=>{Ni(),ai.set(!1)},Hn=G=>{ai.set(!0),Qi.set({left:G.clientX,top:G.clientY})};function zn(){on.set(!0),ci||Kt(Be.controls.hideTimeoutCursor)}function ne(){ci||(Ze.set(!0),Kt(Be.controls.hideTimeoutCursor))}function Ct(){on.set(!1),t(131,Zi=!1),t(130,zi=!1),_i=!1,ye.actions.internal.releaseCamera()}function Pn(G){if(y&&tn){let wt=G.currentTarget,sn=df(wt),xi=_p(wt),Ln=G.pageX-xi,V=G.pageY-sn,{left:le,bottom:Pe,right:Ge}=y,rt=Ge-le;return Ln>=le-rt&&V<=Pe+rt}}function hn(G){if(di){let wt=df(G.currentTarget),sn=h.height,xi=G.pageY-wt;if(Pn(G)){t(131,Zi=!1);return}xi<40?t(131,Zi=!0):xi>sn-40?t(130,zi=!0):(t(131,Zi=!1),s||t(130,zi=!1))}}function Tn(G){hn(G),Xi||Kt(Be.controls.hideTimeoutCursor),m&&_i&&ri&&ye.actions.internal.moveCameraFocusPX(ri.clientX-G.clientX,ri.clientY-G.clientY,G.timeStamp-ri.timeStamp),ri=G}let wn=G=>{G.button===0&&(_i=!0,ye.actions.internal.holdCamera()),Kt(Be.controls.hideTimeoutCursor)},lo=G=>{G.button===0&&(ri=G,_i=!1,ye.actions.internal.releaseCamera()),Kt(Be.controls.hideTimeoutCursor)},ro=()=>{pp&&(Bi({message:"double click on video"}),An(),Kt(Be.controls.hideTimeoutCursor))},yo=()=>{if(n||s){rn();return}if(!(c&&!Ii)){if(dt)return pi();if(Zt==null||Zt.focus(),!pt){bi(),Kt(Be.controls.hideTimeoutCursor);return}ye.actions.internal.togglePlay(),Kt(Be.controls.hideTimeoutCursor)}},so=G=>{rn(),ni.set(!0),Kt(Be.controls.hideTimeout),G&&yn(Be.controls.hideHotKeyHelpers,G)},gn=()=>{var G,wt;rn(),(G=ye.callbacks)!=null&&G.onOpenHotKeyMap?(wt=ye.callbacks)==null||wt.onOpenHotKeyMap(u):Ei.update(sn=>!sn)},ie=()=>{if(n||s){rn();return}},ao=()=>{ni.set(!0)},xn=ye.ui.contextMenu.openedByBtnKeyboard$;F(i,xn,G=>t(138,a=G));let wo=ye.ui.contextMenu.btnRef$;F(i,wo,G=>t(137,l=G));let $n,eo=ye.ui.contextMenu.openedByHotKey$;F(i,eo,G=>t(136,r=G));let qo=ye.ui.contextMenu.lastActiveElem$;F(i,qo,G=>t(135,o=G));function Uo(G){_e[G?"unshift":"push"](()=>{Te=G,t(0,Te)})}let vl=()=>Zt==null?void 0:Zt.focus();function Ko(G){Mi=G,t(41,Mi)}let Qn=()=>Zt==null?void 0:Zt.focus();function jo(G){$n=G,t(32,$n)}function ko(G){_e[G?"unshift":"push"](()=>{Zt=G,t(48,Zt)})}function Co(G){_e[G?"unshift":"push"](()=>{Hi=G,t(30,Hi)})}function Wo(G){_e[G?"unshift":"push"](()=>{di=G,t(40,di)})}return i.$$set=G=>{"store"in G&&t(125,ye=G.store),"uiConfig"in G&&t(1,Be=G.uiConfig),"title"in G&&t(2,Ue=G.title),"thumbUrl"in G&&t(3,Xe=G.thumbUrl),"videoContainer"in G&&t(0,Te=G.videoContainer),"interactiveContainer"in G&&t(126,Z=G.interactiveContainer),"live"in G&&t(4,Ce=G.live),"autoplay"in G&&t(5,ue=G.autoplay),"canRewindLive"in G&&t(6,Ie=G.canRewindLive),"showAds"in G&&t(7,Je=G.showAds),"adsSlotId"in G&&t(8,at=G.adsSlotId),"adsParams"in G&&t(9,ut=G.adsParams),"adsPreviewParam"in G&&t(10,ft=G.adsPreviewParam),"duration"in G&&t(11,ht=G.duration),"logoClickable"in G&&t(12,gt=G.logoClickable),"logoHidden"in G&&t(13,we=G.logoHidden),"logoTargetUrl"in G&&t(14,mt=G.logoTargetUrl),"showNextPrevButtons"in G&&t(15,It=G.showNextPrevButtons),"nextButtonActive"in G&&t(16,Et=G.nextButtonActive),"prevButtonActive"in G&&t(17,ze=G.prevButtonActive),"endScreenVideoTitle"in G&&t(18,qt=G.endScreenVideoTitle),"endScreenVideoThumb"in G&&t(19,Nt=G.endScreenVideoThumb),"isOneVideoPlaylist"in G&&t(20,Ut=G.isOneVideoPlaylist),"supportLink"in G&&t(21,Xt=G.supportLink),"outerContainerRef"in G&&t(127,me=G.outerContainerRef),"playerStarted"in G&&t(22,pt=G.playerStarted),"fullScreenTarget"in G&&t(128,bt=G.fullScreenTarget),"showMiniTimer"in G&&t(129,Re=G.showMiniTimer),"playNextVideo"in G&&t(23,qe=G.playNextVideo),"playPrevVideo"in G&&t(24,yt=G.playPrevVideo),"repeatPlaylist"in G&&t(25,Ot=G.repeatPlaylist),"seekToInteractive"in G&&t(26,Jt=G.seekToInteractive),"toggleGraph"in G&&t(27,fn=G.toggleGraph),"playPrevChapter"in G&&t(28,gi=G.playPrevChapter),"firstStart"in G&&t(29,bi=G.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Fi=(ae==="video"&&te||ae==="ads"&&E==="inactive")&&!q);if(i.$$.dirty[0]&1073741824)e:pn.set(Hi);if(i.$$.dirty[4]&134217728)e:t(132,ln=J!==mp.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,Xi=g&&!s&&!(zi||Zi)&&!(ln&&!Q));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:wi.set((ln||s||v||x||L)&&!Xi&&(ae==="video"||ae==="ads")&&!q);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,Cn=Be.features.thumbTimer&&Re&&ae==="video"&&!I&&!q&&!ci&&(Be.hideThumbTimerAfterTouch&&!H||!Be.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,oi=ae==="video"&&!re&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,li=(Je&&K||!Je)&&c&&!q);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,Ji=A&&!(I||li)&&!g);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!v&&mi&&!g&&Kt(Be.controls.hideTimeoutCursor),t(134,mi=v);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,se=Te&&P%180?h.height/h.width:1);if(i.$$.dirty[4]&262144)e:t(47,dt=w!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:Oo($n,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let G=l;G&&ol(G,n,xn)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Oo($n,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let G=o;G&&Zc(G,n,eo)}},[Te,Be,Ue,Xe,Ce,ue,Ie,Je,at,ut,ft,ht,gt,we,mt,It,Et,ze,qt,Nt,Ut,Xt,pt,qe,yt,Ot,Jt,fn,gi,bi,Hi,li,$n,n,h,P,I,q,ae,x,di,Mi,Fi,Cn,oi,Ji,se,dt,Zt,m,S,M,ee,ke,Qe,je,$e,We,ve,X,be,Oe,xe,et,ti,vi,cn,yi,ji,si,Ri,wi,Wi,ki,ai,Vt,At,Ci,Si,Gt,ui,fi,vt,Ft,Di,ii,dn,mn,xt,Pi,Gi,Ti,ci,Qt,$t,ni,en,Ei,_n,Qi,ei,Ze,Yt,Ke,on,pi,An,rn,Hn,zn,ne,Ct,Tn,wn,lo,ro,yo,so,gn,ie,ao,xn,wo,eo,qo,ye,Z,me,bt,Re,zi,Zi,ln,Xi,mi,o,r,l,a,s,c,b,w,v,g,A,K,re,H,L,Q,J,E,te,Uo,vl,Ko,Qn,jo,ko,Co,Wo]}var mf=class extends j{constructor(e){super(),W(this,e,Q5,G5,U,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:127,playerStarted:22,fullScreenTarget:128,showMiniTimer:129,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},j5,[-1,-1,-1,-1,-1,-1,-1])}},hp=mf;var Dp=require("@vkontakte/videoplayer-core"),zo=require("@vkontakte/videoplayer-shared");var ml=require("@vkontakte/videoplayer-shared"),gp=i=>{if(!(0,ml.isIOS)(!0))return!1;let e=i.device===ml.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,ml.getIOSVersion)();return!e||e&&!!t&&t<16};function Y5(i){Se(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 bp(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w=Y("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",P;return{c(){e=T("div"),n=O(),o=T("div"),r=T("div"),l=T("div"),s=O(),u=T("div"),m=O(),h=T("div"),b=O(),S=T("p"),P=De(w),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",y="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(S,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(v,g){C(v,e,g),C(v,n,g),C(v,o,g),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,b),p(o,S),p(S,P)},p(v,g){g&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&f(e,"class",t),g&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&f(l,"class",a),g&1&&c!==(c="triangle "+v[0]+" svelte-nhq2ld")&&f(u,"class",c),g&1&&y!==(y="triangle "+v[0]+" svelte-nhq2ld")&&f(h,"class",y),g&2&&w!==(w=Y("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ye(P,w)},d(v){v&&(k(e),k(n),k(o))}}}function Z5(i){let e,t,n,o,r=i[2]&&bp(i);return{c(){e=T("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){C(l,e,a),r&&r.m(e,null),n||(o=de(e,"click",st(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=bp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:pe,o:pe,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function X5(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,c=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(s),h=0,l(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Un(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,c,r,l]}var pf=class extends j{constructor(e){super(),W(this,e,X5,Z5,U,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Y5)}},_f=pf;function J5(i,e,t){let{playNextVideo:n}=e;return Bt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var hf=class extends j{constructor(e){super(),W(this,e,J5,null,U,{playNextVideo:0})}},vp=hf;var{window:x5}=Po;function $5(i){Se(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 yp(i){let e,t,n,o;e=new _f({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let r=!i[48]&&wp(i);return{c(){D(e.$$.fragment),t=O(),r&&r.c(),n=lt()},m(l,a){B(e,l,a),C(l,t,a),r&&r.m(l,a),C(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[48]?r&&(fe(),_(r,1,1,()=>{r=null}),ce()):r?(r.p(l,a),a[1]&131072&&d(r,1)):(r=wp(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(k(t),k(n)),R(e,l),r&&r.d(l)}}}function wp(i){let e,t;return e=new _f({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function kp(i){var n;let e,t;return e=new as({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Cp(i){let e,t;return e=new us({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sp(i){let e,t,n;return t=new dr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-1jy89ut"),z(e,"hidden",i[34]!=="ads")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&8)&&z(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Pp(i){let e,t;return e=new vp({props:{playNextVideo:i[22]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tp(i){let e,t;return e=new ns({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ip(i){let e,t,n;return t=new nr({props:{"aria-label":Y("video360")}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Ep(i){let e,t;return e=new ls({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&1048576&&(r.chromecastDeviceName=n[51]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mp(i){let e,t;return e=new os({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&4194304&&(r.captions=n[53]),o[1]&8192&&(r.position=n[44]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vp(i){let e,t,n,o,r;return t=new rs({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),B(t,e,null),n=!0,o||(r=de(e,"click",st(i[101])),o=!0)},p:pe,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,r()}}}function Ap(i){let e,t,n;function o(l){i[132](l)}let r={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&&(r.controlsElementRef=i[37]),e=new is({props:r}),_e.push(()=>He(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.bottomHidden=l[34]==="thumb"||l[34]==="waitingLive"||l[34]==="waitingRecord"||l[34]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&16384&&(s.bottomNoSmooth=l[45]),a[1]&8&&(s.isAds=l[34]==="ads"),a[0]&32|a[1]&8388608&&(s.canRewindLive=l[5]&&l[54]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&256&&(s.customFullscreenSupported=l[39]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=l[37],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Lp(i){let e,t;return e=new wr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bp(i){let e,t;return e=new br({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rp(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g;e=new ss({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&yp(i),A=i[34]==="waitingLive"&&kp(i),q=i[34]==="waitingRecord"&&Cp(i),K=i[6]&&i[21]&&Sp(i),re=i[41]&&i[17]&&i[18]&&Pp(i),ae=i[49]&&Tp(i),H=i[50]&&Ip(i),L=i[35]&&Ep(i),x=i[52].value!=="off"&&Mp(i),Q=i[33]&&Vp(i),J=i[21]&&Ap(i);S=new pr({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let E=i[38]&&Lp(i),te=i[57]&&Bp(i);return{c(){D(e.$$.fragment),t=O(),I&&I.c(),o=O(),A&&A.c(),r=O(),q&&q.c(),l=O(),K&&K.c(),a=O(),re&&re.c(),s=O(),ae&&ae.c(),u=O(),H&&H.c(),c=O(),L&&L.c(),m=O(),x&&x.c(),h=O(),Q&&Q.c(),y=O(),J&&J.c(),b=O(),D(S.$$.fragment),w=O(),E&&E.c(),P=O(),te&&te.c(),v=lt()},m(M,ee){B(e,M,ee),C(M,t,ee),I&&I.m(M,ee),C(M,o,ee),A&&A.m(M,ee),C(M,r,ee),q&&q.m(M,ee),C(M,l,ee),K&&K.m(M,ee),C(M,a,ee),re&&re.m(M,ee),C(M,s,ee),ae&&ae.m(M,ee),C(M,u,ee),H&&H.m(M,ee),C(M,c,ee),L&&L.m(M,ee),C(M,m,ee),x&&x.m(M,ee),C(M,h,ee),Q&&Q.m(M,ee),C(M,y,ee),J&&J.m(M,ee),C(M,b,ee),B(S,M,ee),C(M,w,ee),E&&E.m(M,ee),C(M,P,ee),te&&te.m(M,ee),C(M,v,ee),g=!0},p(M,ee){let ke={};ee[0]&16|ee[1]&12&&(ke.hidden=M[34]!=="thumb"||M[33]||M[89]&&M[4]),ee[0]&4&&(ke.thumbUrl=M[2]),ee[0]&268435456&&(ke.startVideo=M[28]),e.$set(ke),ee[0]&32|ee[1]&65536&&(n=M[5]&&M[78]&&!M[47].has("TIMELINE")),n?I?(I.p(M,ee),ee[0]&32|ee[1]&65536&&d(I,1)):(I=yp(M),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),M[34]==="waitingLive"?A?(A.p(M,ee),ee[1]&8&&d(A,1)):(A=kp(M),A.c(),d(A,1),A.m(r.parentNode,r)):A&&(fe(),_(A,1,1,()=>{A=null}),ce()),M[34]==="waitingRecord"?q?ee[1]&8&&d(q,1):(q=Cp(M),q.c(),d(q,1),q.m(l.parentNode,l)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),M[6]&&M[21]?K?(K.p(M,ee),ee[0]&2097216&&d(K,1)):(K=Sp(M),K.c(),d(K,1),K.m(a.parentNode,a)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),M[41]&&M[17]&&M[18]?re?(re.p(M,ee),ee[0]&393216|ee[1]&1024&&d(re,1)):(re=Pp(M),re.c(),d(re,1),re.m(s.parentNode,s)):re&&(fe(),_(re,1,1,()=>{re=null}),ce()),M[49]?ae?ee[1]&262144&&d(ae,1):(ae=Tp(M),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),M[50]?H?(H.p(M,ee),ee[1]&524288&&d(H,1)):(H=Ip(M),H.c(),d(H,1),H.m(c.parentNode,c)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),M[35]?L?(L.p(M,ee),ee[1]&16&&d(L,1)):(L=Ep(M),L.c(),d(L,1),L.m(m.parentNode,m)):L&&(fe(),_(L,1,1,()=>{L=null}),ce()),M[52].value!=="off"?x?(x.p(M,ee),ee[1]&2097152&&d(x,1)):(x=Mp(M),x.c(),d(x,1),x.m(h.parentNode,h)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),M[33]?Q?(Q.p(M,ee),ee[1]&4&&d(Q,1)):(Q=Vp(M),Q.c(),d(Q,1),Q.m(y.parentNode,y)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce()),M[21]?J?(J.p(M,ee),ee[0]&2097152&&d(J,1)):(J=Ap(M),J.c(),d(J,1),J.m(b.parentNode,b)):J&&(fe(),_(J,1,1,()=>{J=null}),ce());let Qe={};ee[1]&16777216&&(Qe.isLive=M[55]),ee[1]&512&&(Qe.isHidden=!M[40]),ee[1]&33554432&&(Qe.isPlaying=M[56]),ee[1]&8192&&(Qe.position=M[44]),ee[1]&4096&&(Qe.duration=M[43]),S.$set(Qe),M[38]?E?ee[1]&128&&d(E,1):(E=Lp(M),E.c(),d(E,1),E.m(P.parentNode,P)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),M[57]?te?ee[1]&67108864&&d(te,1):(te=Bp(M),te.c(),d(te,1),te.m(v.parentNode,v)):te&&(fe(),_(te,1,1,()=>{te=null}),ce())},i(M){g||(d(e.$$.fragment,M),d(I),d(A),d(q),d(K),d(re),d(ae),d(H),d(L),d(x),d(Q),d(J),d(S.$$.fragment,M),d(E),d(te),g=!0)},o(M){_(e.$$.fragment,M),_(I),_(A),_(q),_(K),_(re),_(ae),_(H),_(L),_(x),_(Q),_(J),_(S.$$.fragment,M),_(E),_(te),g=!1},d(M){M&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(y),k(b),k(w),k(P),k(v)),R(e,M),I&&I.d(M),A&&A.d(M),q&&q.d(M),K&&K.d(M),re&&re.d(M),ae&&ae.d(M),H&&H.d(M),L&&L.d(M),x&&x.d(M),Q&&Q.d(M),J&&J.d(M),R(S,M),E&&E.d(M),te&&te.d(M)}}}function e6(i){let e,t,n,o,r,l=i[46],a,s,u,c,m,h,y=Rp(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),y.c(),a=O(),s=T("div"),f(n,"class","video-container svelte-1jy89ut"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),z(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-1jy89ut"),z(t,"hidden",i[34]!=="video"),f(s,"class","overlay-container"),f(e,"class","player-wrapper svelte-1jy89ut"),f(e,"role","region"),f(e,"aria-label",u=Y("aria_label_video_player")),f(e,"tabindex","-1")},m(b,S){C(b,e,S),p(e,t),p(t,n),i[129](n),p(e,r),y.m(e,null),p(e,a),p(e,s),i[133](s),i[134](e),c=!0,m||(h=[de(x5,"blur",i[99]),de(t,"click",Lt(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],m=!0)},p(b,S){(!c||S[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&f(n,"style",o),(!c||S[0]&2)&&z(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!c||S[1]&8)&&z(t,"hidden",b[34]!=="video"),S[1]&32768&&U(l,l=b[46])?(fe(),_(y,1,1,pe),ce(),y=Rp(b),y.c(),d(y,1),y.m(e,a)):y.p(b,S)},i(b){c||(d(y),c=!0)},o(b){_(y),c=!1},d(b){b&&k(e),i[129](null),y.d(b),i[133](null),i[134](null),m=!1,nt(h)}}}function t6(i,e,t){var Hn,zn;let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,{store:ve}=e,{uiConfig:X}=e,{thumbUrl:be}=e,{videoContainer:Oe}=e,{interactiveContainer:xe}=e,{live:et}=e,{autoplay:ye}=e,{canRewindLive:Be}=e,{showAds:Ue}=e,{adsSlotId:Xe=void 0}=e,{adsParams:Te=void 0}=e,{adsPreviewParam:Z=void 0}=e,{duration:Ce=void 0}=e,{logoClickable:ue}=e,{logoHidden:Ie}=e,{logoTargetUrl:Je=""}=e,{showNextPrevButtons:at=!1}=e,{nextButtonActive:ut=!1}=e,{prevButtonActive:ft=!1}=e,{endScreenVideoTitle:ht=void 0}=e,{endScreenVideoThumb:gt=void 0}=e,{isOneVideoPlaylist:we=!1}=e,{supportLink:mt}=e,{outerContainerRef:It=void 0}=e,{showMiniTimer:Et=!1}=e,{fullScreenTarget:ze=void 0}=e,{playerStarted:qt=!1}=e,{playNextVideo:Nt=zo.noop}=e,{playPrevVideo:Ut=zo.noop}=e,{repeatPlaylist:Xt=zo.noop}=e,{seekToInteractive:me}=e,{toggleGraph:pt}=e,{playPrevChapter:bt}=e,{firstStart:Re}=e,{seekTime:qe}=e,yt=ve.getLogger().createComponentLog("Root component"),Ot=ve.interfaceLanguage$;F(i,Ot,ne=>t(46,x=ne));let Jt=ve.state.playbackState$;F(i,Jt,ne=>t(126,ae=ne));let fn=ve.ads.playbackState;F(i,fn,ne=>t(127,H=ne));let gi=ve.state.positionWithScrubbing$;F(i,gi,ne=>t(44,a=ne));let bi=ve.state.duration$;F(i,bi,ne=>t(43,l=ne));let Bi=ve.playerPhase;F(i,Bi,ne=>t(34,A=ne));let ti=ve.ui.isFullscreen;F(i,ti,ne=>t(141,u=ne));let vi=ve.ui.controlsVisible;F(i,vi,ne=>t(30,o=ne));let cn=ve.ui.interactiveHideMobileControls;F(i,cn,ne=>t(118,y=ne));let yi=ve.ui.settingsMenuVisible;F(i,yi,ne=>t(117,n=ne));let ji=ve.ui.scrubbingInProgress;F(i,ji,ne=>t(119,S=ne));let si=ve.ui.debugPanelVisible;F(i,si,ne=>t(57,We=ne));let Ri=ve.state.isLoaderVisible;F(i,Ri,ne=>t(128,L=ne));let wi=ve.state.isEnded$;F(i,wi,ne=>t(121,v=ne));let Wi=ve.state.chromecastConnected$;F(i,Wi,ne=>t(35,q=ne));let ki=ve.state.chromecastDeviceName$;F(i,ki,ne=>t(51,M=ne));let ai=ve.ads.postrollPassed;F(i,ai,ne=>t(122,g=ne));let Vt=ve.ui.mobileUnmuteButtonExpanded,At=ve.ui.mobileUnmuteButtonVisible,Ci=ve.state.isLive$;F(i,Ci,ne=>t(55,je=ne));let Si=ve.state.isPlaying$;F(i,Si,ne=>t(56,$e=ne));let Gt=ve.state.isActiveLive$;F(i,Gt,ne=>t(48,J=ne));let ui=ve.state.isRewindableLive$,fi=ve.state.crashed$;F(i,fi,ne=>t(33,P=ne));let vt=ve.webApi.pictureInPictureApi,Ft=ve.state.videoSize$;F(i,Ft,ne=>t(142,m=ne));let kt=ve.state.currentSubtitle$;F(i,kt,ne=>t(52,ee=ne));let Di=ve.state.currentSubtitleCaptions$;F(i,Di,ne=>t(53,ke=ne));let ii=ve.state.duration$;F(i,ii,ne=>t(54,Qe=ne));let dn=ve.state.graphIsOpened$;F(i,dn,ne=>t(125,re=ne));let mn=ve.ui.playerSize;F(i,mn,ne=>t(31,c=ne));let xt=ve.ui.is3DVideo;F(i,xt,ne=>t(49,E=ne));let Pi=ve.ui.icon3DVideoVisible;F(i,Pi,ne=>t(50,te=ne));let Gi=ve.ui.rotateAlpha;F(i,Gi,ne=>t(32,b=ne));let Ti=ve.state.isInteractive,ci=ve.state.isInteractiveTime$;F(i,ci,ne=>t(120,w=ne));let Qt=ve.state.isInteractiveExpectation$;F(i,Qt,ne=>t(124,K=ne));let $t=ve.state.hasInteractiveBranches,Ii=ve.ui.controls.disabledControls$;F(i,Ii,ne=>t(47,Q=ne));let ni=ve.ui.touched;F(i,ni,ne=>t(123,I=ne));let en=ve.ui.clientInfo$;F(i,en,ne=>t(140,s=ne));let Ei=ve.ui.overlayContainer$,pn=ve.state.isFirstBytes$;F(i,pn,ne=>t(139,r=ne));let _n=ve.actions.internal.closeSettingsMenu,tn=(Hn=ve.callbacks)==null?void 0:Hn.onDisabledPlayPrevChapterClick,Qi=(zn=ve.callbacks)==null?void 0:zn.onDisabledSeekToInteractiveClick,Ni,ei,di,Mi,Oi,nn,Vi,Fi=Ne(!1);F(i,Fi,ne=>t(45,h=ne));let Hi,Ze=!1,Yi,Yt=!1,Ke,on=!0,zi,Zi,ln=!1,Xi;vt==null||vt.setContext(Cl());let Cn=ne=>{clearTimeout(Mi),ne&&(At.set(!0),Vt.set(!0),Mi=window.setTimeout(()=>{Vt.set(!1)},X.controls.collapseMobileUnmute),Ti||li(X.controls.hideTimeoutMobile))};ve.setUiCallbacks({onStarted:Cn});let oi=()=>{window.clearTimeout(di),t(112,Ze=!1),y&&cn.set(!1)},li=ne=>{oi(),t(112,Ze=!0),di=window.setTimeout(()=>t(112,Ze=!1),ne);let Ct=ne-100;Hi=window.setTimeout(()=>{h&&Fi.set(!1)},Ct>0?Ct:ne)},Ji=xt.subscribe(ne=>{Pi.set(ne),ne&&(window.clearTimeout(Oi),Oi=window.setTimeout(()=>Pi.set(!1),X.controls.hide360IconTimeout))}),mi=async()=>{var Ct,Pn,hn,Tn;let ne=co();if(ne){li(X.controls.hideTimeoutFullscreen);try{await(vt==null?void 0:vt.remove())}catch(wn){yt({message:String(wn)})}try{let wn=m!=null&&m.width&&(m!=null&&m.height)?m:c;await Lc(wn)}catch(wn){yt({message:String(wn)})}}ti.set(ne),ve.getAdmanWrapper().setFullscreen(ne),u?(Pn=(Ct=ve.callbacks)==null?void 0:Ct.onFullscreenEnter)==null||Pn.call(Ct):(Tn=(hn=ve.callbacks)==null?void 0:hn.onFullscreenExit)==null||Tn.call(hn)},se=ne=>{let Ct=ne;mn.set({width:Ct.target.width,height:Ct.target.height})};Bt(()=>{var Ct;return fr(mi),Ro(vt)&&(vt==null||vt.assignPlayerContainer(Ni),vt==null||vt.registryExternalEventHandlers({resize:se})),t(39,on=!gp(s)),xe&&((Ct=Oe.parentElement)==null||Ct.insertBefore(xe,Oe.nextSibling)),()=>{window.clearTimeout(di),window.clearTimeout(Hi),window.clearTimeout(Mi),window.clearTimeout(Oi),Ji(),vt==null||vt.dispose(),cr(mi)}});let dt=ne=>{let Ct=a+(ne==="forward"?1:-1)*X.controls.seekStepMobile/1e3;Ct<0?Ct=0:Ct>l&&(Ct=l-1),t(114,Yt=!0),qe(Ct)},pi=async()=>{if(co())await ur(document),yt({message:"exit fullscreen"});else{if(yt({message:"request fullscreen"}),(0,zo.isIOS)()&&!r)return;let ne=(0,zo.isIOS)()||!It?Ni:It,Ct=ne.getRootNode(),Pn=Ct instanceof ShadowRoot?Ct.host:Ct,hn=ze instanceof HTMLElement&&ze.contains(Pn),Tn=X.allowChangingFullscreenTarget&&ze&&hn?ze:ne;await ar(Tn)}},_i=()=>{_n()},ri=()=>{if(n){_i();return}if(!qt){Re(),li(X.controls.hideTimeoutCursor);return}t(114,Yt=!1),o?oi():li(X.controls.hideTimeoutMobile)},Zt=()=>{if(n){_i();return}},Nn=()=>{ni.set(!0)},Vn=()=>{Ti||(Fi.set(!0),li(X.controls.hideTimeoutCursor))},Sn=ne=>{tn&&(tn(ne),li(X.controls.hideTimeoutMobile))},Kt=ne=>{Qi&&(Qi(ne),li(X.controls.hideTimeoutMobile))};function yn(ne){_e[ne?"unshift":"push"](()=>{Oe=ne,t(0,Oe)})}let Gn=()=>dt("backward"),On=()=>dt("forward");function Fn(ne){ei=ne,t(37,ei)}function An(ne){_e[ne?"unshift":"push"](()=>{Vi=ne,t(29,Vi)})}function rn(ne){_e[ne?"unshift":"push"](()=>{Ni=ne,t(36,Ni)})}return i.$$set=ne=>{"store"in ne&&t(106,ve=ne.store),"uiConfig"in ne&&t(1,X=ne.uiConfig),"thumbUrl"in ne&&t(2,be=ne.thumbUrl),"videoContainer"in ne&&t(0,Oe=ne.videoContainer),"interactiveContainer"in ne&&t(107,xe=ne.interactiveContainer),"live"in ne&&t(3,et=ne.live),"autoplay"in ne&&t(4,ye=ne.autoplay),"canRewindLive"in ne&&t(5,Be=ne.canRewindLive),"showAds"in ne&&t(6,Ue=ne.showAds),"adsSlotId"in ne&&t(7,Xe=ne.adsSlotId),"adsParams"in ne&&t(8,Te=ne.adsParams),"adsPreviewParam"in ne&&t(9,Z=ne.adsPreviewParam),"duration"in ne&&t(10,Ce=ne.duration),"logoClickable"in ne&&t(11,ue=ne.logoClickable),"logoHidden"in ne&&t(12,Ie=ne.logoHidden),"logoTargetUrl"in ne&&t(13,Je=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(14,at=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(15,ut=ne.nextButtonActive),"prevButtonActive"in ne&&t(16,ft=ne.prevButtonActive),"endScreenVideoTitle"in ne&&t(17,ht=ne.endScreenVideoTitle),"endScreenVideoThumb"in ne&&t(18,gt=ne.endScreenVideoThumb),"isOneVideoPlaylist"in ne&&t(19,we=ne.isOneVideoPlaylist),"supportLink"in ne&&t(20,mt=ne.supportLink),"outerContainerRef"in ne&&t(108,It=ne.outerContainerRef),"showMiniTimer"in ne&&t(109,Et=ne.showMiniTimer),"fullScreenTarget"in ne&&t(110,ze=ne.fullScreenTarget),"playerStarted"in ne&&t(21,qt=ne.playerStarted),"playNextVideo"in ne&&t(22,Nt=ne.playNextVideo),"playPrevVideo"in ne&&t(23,Ut=ne.playPrevVideo),"repeatPlaylist"in ne&&t(24,Xt=ne.repeatPlaylist),"seekToInteractive"in ne&&t(25,me=ne.seekToInteractive),"toggleGraph"in ne&&t(26,pt=ne.toggleGraph),"playPrevChapter"in ne&&t(27,bt=ne.playPrevChapter),"firstStart"in ne&&t(28,Re=ne.firstStart),"seekTime"in ne&&t(111,qe=ne.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,nn=(A==="video"&&L||A==="ads"&&H==="inactive")&&!P);if(i.$$.dirty[0]&536870912)e:Ei.set(Vi);if(i.$$.dirty[4]&4)e:t(113,Yi=ae!==Dp.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,Ke=re||y||!Ze&&(v&&!!$t||Yi&&K));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:vi.set((Yi||n||S||q||Ze&&!Yt)&&!Ke&&A==="video"&&!P);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,zi=X.features.thumbTimer&&Et&&A==="video"&&!o&&!P&&!Ti&&(X.hideThumbTimerAfterTouch&&!I||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Zi=(Ue&&g||!Ue)&&v&&!P);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!S&&ln&&!w&&li(X.controls.hideTimeoutMobile),t(116,ln=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,Xi=Oe&&b%180?c.height/c.width:1)},[Oe,X,be,et,ye,Be,Ue,Xe,Te,Z,Ce,ue,Ie,Je,at,ut,ft,ht,gt,we,mt,qt,Nt,Ut,Xt,me,pt,bt,Re,Vi,o,c,b,P,A,q,Ni,ei,nn,on,zi,Zi,Xi,l,a,h,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,Ot,Jt,fn,gi,bi,Bi,ti,vi,cn,yi,ji,si,Ri,wi,Wi,ki,ai,Ci,Si,Gt,ui,fi,Ft,kt,Di,ii,dn,mn,xt,Pi,Gi,Ti,ci,Qt,Ii,ni,en,pn,Fi,dt,pi,_i,ri,Zt,Nn,Vn,Sn,Kt,ve,xe,It,Et,ze,qe,Ze,Yi,Yt,Ke,ln,n,y,S,w,v,g,I,K,re,ae,H,L,yn,Gn,On,Fn,An,rn]}var gf=class extends j{constructor(e){super(),W(this,e,t6,e6,U,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},$5,[-1,-1,-1,-1,-1,-1])}},Np=gf;function i6(i){Se(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 x5(i){let e,t,n;function o(l){i[57](l)}let r={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&&(r.videoContainer=i[32]),e=new cp({props:r}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function $5(i){let e,t,n;function o(l){i[56](l)}let r={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&&(r.videoContainer=i[32]),e=new Lp({props:r}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function e6(i){let e,t,n,o,r=[$5,x5],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","root svelte-cghoty")},m(s,u){C(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function t6(i,e,t){let{sources:n}=e,{store:o}=e,{microStoresRoot:r}=e,{videoConfig:l}=e,{uiConfig:a}=e,{title:s}=e,{thumbUrl:u}=e,{interactiveContainer:c}=e,{subtitles:m}=e,{live:h}=e,{preload:w}=e,{autoplay:b}=e,{volume:S=void 0}=e,{muted:y=void 0}=e,{fromTime:P}=e,{canRewindLive:v}=e,{showAds:g}=e,{adsSlotId:I=void 0}=e,{adsParams:N=void 0}=e,{adsPreviewParam:K=void 0}=e,{duration:q=void 0}=e,{logoClickable:se}=e,{logoHidden:ne}=e,{isMobile:E}=e,{showNextPrevButtons:ie=!1}=e,{nextButtonActive:x=!1}=e,{prevButtonActive:j=!1}=e,{endScreenVideoTitle:X=void 0}=e,{endScreenVideoThumb:M=void 0}=e,{isOneVideoPlaylist:Q=!1}=e,{supportLink:A}=e,{outerContainerRef:ee=void 0}=e,{fullScreenTarget:Te=void 0}=e,{failoverHosts:je=void 0}=e,{showMiniTimer:Ke=!1}=e,{playNextVideo:Je=Gn.noop}=e,{playPrevVideo:We=Gn.noop}=e,{repeatPlaylist:ye=Gn.noop}=e,{seekToInteractive:J=Gn.noop}=e,{toggleGraph:ve=Gn.noop}=e,{playPrevChapter:He=Gn.noop}=e,{subscribers:Xe,stores:xe}=r;Xf(a);let he=zt(),Be=a.logoLink,Ue=o.ui.debugPanelVisible,it=o.ui.playerSize,ke,Y=null,Ce=!1;o.getAdmanWrapper().init({switchFromAdsToVideo:o.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:o.actions.internal.switchFromVideoToAds,setMuted:o.actions.external.setMuted},o.ads,{isMobile:o.ui.isMobile,mobileUnmuteButtonVisible:o.ui.mobileUnmuteButtonVisible,vsid:o.vsid}),sc(o,xe);let ue=(_e=!1)=>{t(33,Ce=!0),_e?o.actions.external.firstStart(g):o.actions.internal.firstStart(g)};function Ie(_e){var Ae;let Vt=n||_e;Vt&&o.initVideo({container:ke,sources:Vt,failoverHosts:je,subtitles:m});let Lt=Gn.safeStorage.get(Cl)==="true";Ue.set(Lt),P>0&&o.actions.external.seekTime(P);let _t=E?he.volumeDefault:(Ae=S!=null?S:er())!=null?Ae:he.volumeDefault,ht=y!=null?y:vc();if(o.actions.external.setVolume(_t),o.actions.external.setMuted(ht),o.getAdmanWrapper().setInitialVolume(ht?0:_t),he.features.trafficSaving){let mt=wc();mt&&o.actions.internal.setTrafficSavingEnabled(mt)}let lt=hc(o.videoId);lt&&o.actions.internal.setQuality(lt),o.ui.isAutoplay.set(b),b?ue():w&&he.features.preload&&o.actions.internal.preload()}let Ye=_e=>{if(window.ResizeObserver){let Vt,Lt;Y=new ResizeObserver((0,Gn.throttleFn)(_t=>{let ht=_t[0];if(ht){if(ht.contentBoxSize){let lt=Array.isArray(ht.contentBoxSize)?ht.contentBoxSize[0]:ht.contentBoxSize;Vt=lt.inlineSize,Lt=lt.blockSize}else ht.contentRect&&(Vt=ht.contentRect.width,Lt=ht.contentRect.height);it.set({width:Vt,height:Lt})}},300)),Y.observe(_e)}it.set({width:_e.clientWidth,height:_e.clientHeight})};Rt(()=>{Ye(ke);let _e=Xe.map(Lt=>Lt.init({store:o,microStores:xe,config:l}));if((h==null?void 0:h.status)==="upcoming"||(h==null?void 0:h.status)==="waiting"){o.actions.internal.setWaitingLive(!0);return}if(((h==null?void 0:h.status)==="finished"||(h==null?void 0:h.status)==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return Ie(),()=>{Y==null||Y.disconnect(),_e.forEach(Lt=>Lt.unsubscribe()),o.destroy()}});function at(){Ce?o.actions.external.play():ue(!0)}function dt(){o.actions.external.pause()}function ut(_e){E||o.actions.external.setMuted(_e)}function kt(_e){E||_e>=0&&_e<=1&&o.actions.external.setVolume(_e)}function bt(_e){o.actions.internal.seekTime(_e,Ap.SeekAction.UNKNOWN)}function we(_e){o.actions.external.seekEpisodeStartTime(_e)}function pt(){o.actions.external.returnFocusToEpisodes()}function Nt(_e){o.actions.external.setPlaybackRate(_e)}function Mt(_e){o.actions.external.setAutoQualityLimits(_e)}function ze(_e){ke=_e,t(32,ke)}function Ut(_e){ke=_e,t(32,ke)}return i.$$set=_e=>{"sources"in _e&&t(37,n=_e.sources),"store"in _e&&t(0,o=_e.store),"microStoresRoot"in _e&&t(38,r=_e.microStoresRoot),"videoConfig"in _e&&t(39,l=_e.videoConfig),"uiConfig"in _e&&t(40,a=_e.uiConfig),"title"in _e&&t(1,s=_e.title),"thumbUrl"in _e&&t(2,u=_e.thumbUrl),"interactiveContainer"in _e&&t(3,c=_e.interactiveContainer),"subtitles"in _e&&t(41,m=_e.subtitles),"live"in _e&&t(4,h=_e.live),"preload"in _e&&t(42,w=_e.preload),"autoplay"in _e&&t(5,b=_e.autoplay),"volume"in _e&&t(43,S=_e.volume),"muted"in _e&&t(44,y=_e.muted),"fromTime"in _e&&t(45,P=_e.fromTime),"canRewindLive"in _e&&t(6,v=_e.canRewindLive),"showAds"in _e&&t(7,g=_e.showAds),"adsSlotId"in _e&&t(8,I=_e.adsSlotId),"adsParams"in _e&&t(9,N=_e.adsParams),"adsPreviewParam"in _e&&t(10,K=_e.adsPreviewParam),"duration"in _e&&t(11,q=_e.duration),"logoClickable"in _e&&t(12,se=_e.logoClickable),"logoHidden"in _e&&t(13,ne=_e.logoHidden),"isMobile"in _e&&t(14,E=_e.isMobile),"showNextPrevButtons"in _e&&t(15,ie=_e.showNextPrevButtons),"nextButtonActive"in _e&&t(16,x=_e.nextButtonActive),"prevButtonActive"in _e&&t(17,j=_e.prevButtonActive),"endScreenVideoTitle"in _e&&t(18,X=_e.endScreenVideoTitle),"endScreenVideoThumb"in _e&&t(19,M=_e.endScreenVideoThumb),"isOneVideoPlaylist"in _e&&t(20,Q=_e.isOneVideoPlaylist),"supportLink"in _e&&t(21,A=_e.supportLink),"outerContainerRef"in _e&&t(22,ee=_e.outerContainerRef),"fullScreenTarget"in _e&&t(23,Te=_e.fullScreenTarget),"failoverHosts"in _e&&t(46,je=_e.failoverHosts),"showMiniTimer"in _e&&t(24,Ke=_e.showMiniTimer),"playNextVideo"in _e&&t(25,Je=_e.playNextVideo),"playPrevVideo"in _e&&t(26,We=_e.playPrevVideo),"repeatPlaylist"in _e&&t(27,ye=_e.repeatPlaylist),"seekToInteractive"in _e&&t(28,J=_e.seekToInteractive),"toggleGraph"in _e&&t(29,ve=_e.toggleGraph),"playPrevChapter"in _e&&t(30,He=_e.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:o.ui.isMobile.set(E)},[o,s,u,c,h,b,v,g,I,N,K,q,se,ne,E,ie,x,j,X,M,Q,A,ee,Te,Ke,Je,We,ye,J,ve,He,bt,ke,Ce,he,Be,ue,n,r,l,a,m,w,S,y,P,je,Ie,at,dt,ut,kt,we,pt,Nt,Mt,ze,Ut]}var gf=class extends U{constructor(e){super(),W(this,e,t6,e6,z,{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},J5,[-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]}},Bp=gf;function i6(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=L("svg"),r&&r.c(),t=L("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),be(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),be(e,a=Re(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function n6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var bf=class extends U{constructor(e){super(),W(this,e,n6,i6,z,{})}},Rp=bf;function o6(i){let e,t;return e=new Rp({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function l6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var vf=class extends U{constructor(e){super(),W(this,e,l6,o6,z,{isWhite:1})}},Dp=vf;function r6(i){Se(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 Np(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&k(e)}}}function Op(i){let e,t;return e=new Dp({props:{isWhite:!!i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function s6(i){let e,t,n,o,r=i[0]&&Np(i),l=(!i[0]||!i[1])&&Op(i);return{c(){e=T("div"),r&&r.c(),t=O(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=Np(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=Op(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),ce()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&k(e),r&&r.d(),l&&l.d()}}}function a6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var yf=class extends U{constructor(e){super(),W(this,e,a6,s6,z,{title:0,thumbUrl:1},r6)}},Fp=yf;var cn=require("@vkontakte/videoplayer-shared"),yD=require("@vkontakte/videoplayer-core"),gl=require("@vkontakte/videoplayer-statistics");var fs=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 vo=require("@vkontakte/videoplayer-shared");function u6(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=L("svg"),a&&a.c(),t=L("g"),n=L("path"),o=L("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),be(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Le(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function f6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var wf=class extends U{constructor(e){super(),W(this,e,f6,u6,z,{})}},Hp=wf;function c6(i){Se(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 d6(i){let e,t,n,o,r,l,a;return n=new Hp({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("span"),l=De(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),F(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),F(e,"is-pip-api",i[2])},m(s,u){C(s,e,u),p(e,t),B(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&F(t,"desktop",!s[1]),(!a||u&1)&&Qe(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),R(n)}}}function m6(i,e,t){let n,o,r=et(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;H(i,a,c=>t(5,n=c));let s=r.ui.isMobile;H(i,s,c=>t(1,o=c));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&G("pip_dummy_title"))},[u,o,l,a,s,n]}var kf=class extends U{constructor(e){super(),W(this,e,m6,d6,z,{},c6)}},zp=kf;var p6=460,_6=280,Dl=class{constructor(){this.info={isActive$:new vo.ValueSubject(!1),type:1}}isSupported(){let e=(0,vo.getCurrentBrowser)().browser===vo.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,vo.detectEmbed)();return"documentPictureInPicture"in window&&!e&&!t}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:p6,height:_6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
|
|
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 zp({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function qp(i){return i instanceof Dl}var cs=class{static getLatestSupportedVersion(){let e=new Bo,t=new Dl;if(t.isSupported())return t;if(e.isSupported())return e}};function Cf(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var Up="Inner error. Unexpectedly root annotation container null reference exception",Kp="Annotation with such name already exists",Wp="Annotation with such name does not exist";var pl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var _l=require("@vkontakte/videoplayer-shared"),h6="1",g6=100,ds=class{constructor(e){this.annotations=new Map;this.subscriptions=new _l.Subscription;this.rootAnnotationsContainer=e;let t=(0,_l.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},g6);this.subscriptions.add((0,_l.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 pl(Up);if(this.annotations.has(e))throw new pl(Kp);t.style.zIndex=(n=t.style.zIndex)!=null?n:h6,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 pl(Wp);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var hl=require("@vkontakte/videoplayer-shared"),Jn=class{init({store:e,microStores:t,config:n}){return(0,hl.assertNonNullable)(e),(0,hl.assertNonNullable)(t),(0,hl.assertNonNullable)(n),this.subscription=new hl.Subscription,this.subscription}};var Nl=class extends Jn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var Ol=class extends Jn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=$e(c),h=()=>m&&$e(u);return n.add(u.subscribe(w=>{if(!m)return;let b=$e(l);$e(s)?this.state$.set(w):b!==null&&this.state$.set(!b||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(l.subscribe(w=>{if(w===null)return;let b=$e(a);if(h()){this.state$.set(!0);return}b&&this.state$.set(!w)})),n}};var Fl=class extends Jn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var Gp=require("@vkontakte/videoplayer-shared"),Sf=Ne(!1),ms=null,Hl=class extends Jn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Sf,set:(t,n=!1)=>{t!==$e(Sf)&&(this.clearTimeout(),Sf.set(t),!t&&ms&&(ms=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{$e(l)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add((0,Gp.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{var b,S;if(!(!m||!(w!=null&&w.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&ms===null&&(ms=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(S=(b=o.callbacks)==null?void 0:b.onInteractiveTimeIndicatorHintDeactivated)==null||S.call(b))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var jp=()=>[Nl,Ol,Fl,Hl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var b6={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:[]}},ps=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,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new Fp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l;(t=this.annotationsApi)==null||t.destroy(),(n=this.svelteRootComponent)==null||n.$destroy(),(o=this.svelteStubComponent)==null||o.$destroy(),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.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 kt,bt,we,pt,Nt,Mt,ze,Ut,_e,Vt,Lt,_t,ht;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:c,preload:m,autoplay:h,volume:w,muted:b,fromTime:S,canRewindLive:y,supportLink:P,showAds:v,adsSlotId:g,adsParams:I={},adsPreviewParam:N,interfaceLanguage:K,logoClickable:q,logoHidden:se,isMobile:ne,isAudioDisabled:E,isLiveCatchUpMode:ie,fullScreenTarget:x,failoverHosts:j,canDownload:X,callbacks:M,interactiveData:Q,showThumbTimer:A,additionalButtons:ee=[],repeat:Te}=Cf(this.videoConfig,n),{sources:je,title:Ke,thumbUrl:Je,unitedVideoId:We,isClip:ye=!1,duration:J,adsParams:ve={},videoEpisodes:He,previewThumbsData:Xe,subtitles:xe,live:he}=t,Be={...I,...ve},Ue=this.getNextVideoInfo(),it={sources:je,title:Ke,thumbUrl:Je,subtitles:xe,unitedVideoId:We,isClip:ye,live:he,albumId:r,statPlace:l,autoplay:h,muted:b,volume:w,fromTime:S,canRewindLive:y,showAds:v,adsSlotId:g,adsParams:Be,adsPreviewParam:N,duration:J,logoClickable:q,logoHidden:se,isMobile:ne,repeat:Te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ue.nextVideoTitle,endScreenVideoThumb:Ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ke={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(it)}`});let Y=this.uiConfig.features.statistics&&!!We,{pid:Ce}=((bt=(kt=this.videoConfig)==null?void 0:kt.interactiveData)==null?void 0:bt.projectInfo)||{};Y&&(this.statistics=new Zr({movieId:We,albumId:r,place:l,trackCode:u,autoplay:(we=h&&!this.interactiveController)!=null?we:!1,mobile:ne,clip:ye,refDomain:this.videoConfig.refDomain,...Ce&&!this.isInited&&{projectId:Number(Ce)}},{refreshAuthToken:c,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ao(this.uiConfig.sentry,{version:Vo,env:xl},{movieId:We,albumId:r,place:l,autoplay:(pt=h&&!this.interactiveController)!=null?pt:!1,mobile:ne,clip:ye}),this.interactiveController&&((Mt=this.prevIsid)!=null||(this.prevIsid=(Nt=this.statistics)==null?void 0:Nt.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Ao.getInstance()};let Ie=!!Q,Ye=[],at="tooltip_interactive_go_back_disabled_first";if(Ie&&this.interactiveController){let lt=this.interactiveController.state.isInitialChapter$.getValue(),Ae=this.interactiveController.getHistoryState();lt&&Ye.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ye.push("SEEK_TO_INTERACTIVE_BUTTON"),Ae.hasPrevChapter$.getValue()||(Ye.push("PLAY_PREV_CHAPTER_BUTTON"),lt||(Ae.isGoBackLimited$.getValue()?at="tooltip_interactive_go_back_disabled_limit":at="tooltip_interactive_go_back_disabled"))}let dt=()=>{var Ae;this.isInited=!1,this.prevIsid=void 0;let lt=(o==null?void 0:o.info.isEnded$.getValue())&&((Ae=this.interactiveController)==null?void 0:Ae.state.isEndChapter$.getValue());M.onReplayInteractiveVideo&&!lt?M.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=mm({player:o,interfaceLanguage:K,videoId:We,isClip:ye,isLiveCatchUpMode:ie,isAudioDisabled:E,statAuthToken:s,callbacks:M,webApi:ke,videoEpisodes:He,previewThumbsData:Xe,canDownload:X,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ye,isInteractive:Ie,interactiveRanges$:(ze=this.interactiveController)==null?void 0:ze.state.interactiveRanges$,isInteractiveTime$:(Ut=this.interactiveController)==null?void 0:Ut.state.isInteractiveTime$,replayInteractive:dt,playPrevChapterDisabledTooltip:at,hasInteractiveBranches:!!((Vt=(_e=this.interactiveController)==null?void 0:_e.getChapterBranches())!=null&&Vt.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],looped:Te&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ut}=this.microStoresRoot=jp();this.subscription.add(this.store.state.currentFormat$.subscribe(lt=>{var Ae;return(Ae=M==null?void 0:M.onCurrentFormatChanged)==null?void 0:Ae.call(M,lt)})),this.subscription.add(ut.interactiveControlsOpacity$.subscribe(lt=>{var Ae;lt!==null&&((Ae=this==null?void 0:this.interactiveController)==null||Ae.setDisabledControls(lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(lt=>{var Ae;return(Ae=M==null?void 0:M.onThroughputEstimationChanged)==null?void 0:Ae.call(M,lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(lt=>{var Ae;return(Ae=M==null?void 0:M.onTrafficSavingEnabledChanged)==null?void 0:Ae.call(M,lt)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(lt=>{var Ae;return(Ae=M==null?void 0:M.onCurrentPlaybackRateChanged)==null?void 0:Ae.call(M,lt)})),this.subscription.add(this.store.state.volume$.subscribe(lt=>{var Ae;return(Ae=M==null?void 0:M.onVolumeChange)==null?void 0:Ae.call(M,lt)})),this.subscription.add(this.store.state.muted$.subscribe(lt=>{var Ae,mt;return lt?(Ae=M==null?void 0:M.onMute)==null?void 0:Ae.call(M):(mt=M==null?void 0:M.onUnmute)==null?void 0:mt.call(M)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(lt=>{var Ae;return(Ae=M==null?void 0:M.onVideoBitrateChanged)==null?void 0:Ae.call(M,lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(lt=>{var mt;let Ae=(mt=this.store)==null?void 0:mt.ui.controls.disabledControls$;Ae&&(lt&&!Ae.includes(Sl)&&Ae.add(Sl),lt||Ae.remove(Sl))})),this.initMediaSession(),this.interactiveController&&Y&&this.initInteractivesStatistics(),this.svelteRootComponent=new Bp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ke,thumbUrl:Je,subtitles:xe,live:he,preload:m,autoplay:h,muted:b,volume:w,fromTime:S,canRewindLive:y,supportLink:P,showAds:v,adsSlotId:g,adsParams:Be,adsPreviewParam:N,duration:J,logoClickable:q,logoHidden:se,isMobile:ne,failoverHosts:j,fullScreenTarget:x,showMiniTimer:A,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ue.nextVideoTitle,endScreenVideoThumb:Ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ht=(_t=(Lt=this.videoConfig)==null?void 0:Lt.callbacks)==null?void 0:_t.onInited)==null||ht.call(_t))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,cn.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var c,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=$e(n),s=$e(o);$e(r)?(r.set(!1),(c=this.interactiveController)==null||c.toggleGraphView(!1),l.remove(Ss),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(Ss),!a&&this.graphMadePause&&this.pause())}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?$e(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:w,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:w,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:S}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(P=>{if(!this.isInited)return;let v=this.store;P?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(S.subscribe(P=>{this.store&&this.store.state.isInteractiveExpectation$.set(P)}));let y=!0;if(this.interactiveController.on(a.playerChanged,P=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...P.config,title:(m==null?void 0:m.title)||P.config.title};let v=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(P.player,v),y&&(y=!1)}),this.interactiveController.on(a.interactives,({type:P,actionType:v})=>{var I,N,K,q;if(!this.store)return;let g=S.getValue();if(P==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Jl)),P==="action-choice-canceled"){let se=$e(this.store.state.isPlaying$)||g;if((I=this.videoConfig)!=null&&I.isMobile&&se){this.store.ui.interactiveHideMobileControls.set(!0);return}(q=(N=this.videoConfig)==null?void 0:(K=N.callbacks).onDisabledInteractiveClick)==null||q.call(K)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let P=this.interactiveController.getHistoryState();this.subscription.add(P.history$.subscribe(v=>{var g,I,N;v.length&&((N=(I=(g=this.videoConfig)==null?void 0:g.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||N.call(I,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var P,v,g,I;(P=this.microStoresRoot)==null||P.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(v=this.videoConfig)==null?void 0:(g=v.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(g)})),this.interactiveController.on(a.errors,P=>{this.log({message:P.toString()})})}catch(l){this.log({message:l.message})}}async initInteractivesStatistics(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=await import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:gl.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:gl.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:gl.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:gl.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:gl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),c=new cn.Subject;s.subscribe(m=>{var h,w;m in a?c.next(a[m]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(w=(h=this.sentry).report)==null||w.call(h,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:c,nextMovie$:u}))}catch(l){n==null||n.logError({errorType:"InteractiveVideos",fatal:!1}),(r=(o=this.sentry).report)==null||r.call(o,l,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){var o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,K;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Cf(b6,(0,cn.cloneDeepWith)(t,q=>q instanceof HTMLElement?q:void 0)),this.uiConfig=Zf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},(0,cn.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,cn.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?c:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(w=this.uiConfig.isMobile)!=null?w:this.videoConfig.isMobile,(b=this.videoConfig).autoplay&&(b.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(S=this.uiConfig.ads.enable)!=null?S:this.videoConfig.showAds,this.videoConfig.adsSlotId=(y=this.uiConfig.ads.slot)!=null?y:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(g=this.videoConfig).canRewindLive&&(g.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(I=this.videoConfig.supportLink)!=null?I: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 Bo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new fs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ds(this.rootContainer):void 0,(N=this.svelteStubComponent)==null||N.$destroy(),(K=this.svelteRootComponent)==null||K.$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]),qp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}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,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}async setLanguage(t){var n;await((n=this.store)==null?void 0:n.actions.internal.setLanguage(t))}setLiveStart(t){var n,o;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 bl=require("@vkontakte/videoplayer-shared"),_s=require("@vkontakte/videoplayer-core"),v6=()=>{window.customElements.define("vk-video-player",ps)};
|
|
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 n6(i){let e,t,n;function o(l){i[59](l)}let r={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[37]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new hp({props:r}),_e.push(()=>He(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function o6(i){let e,t,n;function o(l){i[58](l)}let r={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[37],seekTime:i[31]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new Np({props:r}),_e.push(()=>He(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function l6(i){let e,t,n,o,r=[o6,n6],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","root svelte-cghoty")},m(s,u){C(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function r6(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:y}=e,{preload:b}=e,{autoplay:S}=e,{volume:w=void 0}=e,{muted:P=void 0}=e,{fromTime:v}=e,{canRewindLive:g}=e,{showAds:I}=e,{adsSlotId:A=void 0}=e,{adsParams:q=void 0}=e,{adsPreviewParam:K=void 0}=e,{duration:re=void 0}=e,{logoClickable:ae}=e,{logoHidden:H}=e,{isMobile:L}=e,{showNextPrevButtons:x=!1}=e,{nextButtonActive:Q=!1}=e,{prevButtonActive:J=!1}=e,{endScreenVideoTitle:E=void 0}=e,{endScreenVideoThumb:te=void 0}=e,{isOneVideoPlaylist:M=!1}=e,{supportLink:ee}=e,{outerContainerRef:ke=void 0}=e,{fullScreenTarget:Qe=void 0}=e,{failoverHosts:je=void 0}=e,{showMiniTimer:$e=!1}=e,{saveRate:We}=e,{playNextVideo:ve=Wn.noop}=e,{playPrevVideo:X=Wn.noop}=e,{repeatPlaylist:be=Wn.noop}=e,{seekToInteractive:Oe=Wn.noop}=e,{toggleGraph:xe=Wn.noop}=e,{playPrevChapter:et=Wn.noop}=e,{subscribers:ye,stores:Be}=l;Jf(s);let Ue=Ht(),Xe=s.logoLink,Te=r.ui.debugPanelVisible,Z=r.ui.playerSize,Ce=r.state.isLive$;F(i,Ce,me=>t(61,n=me));let ue,Ie=null,Je=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),ac(r,Be);let at=(me=!1)=>{t(33,Je=!0),me?r.actions.external.firstStart(I):r.actions.internal.firstStart(I)};function ut(me){var Ot;let pt=o||me;pt&&r.initVideo({container:ue,sources:pt,failoverHosts:je,subtitles:h});let bt=Wn.safeStorage.get(Sl)==="true";Te.set(bt),v>0&&r.actions.external.seekTime(v);let Re=L?Ue.volumeDefault:(Ot=w!=null?w:tr())!=null?Ot:Ue.volumeDefault,qe=P!=null?P:wc();if(r.actions.external.setVolume(Re),r.actions.external.setMuted(qe),r.getAdmanWrapper().setInitialVolume(qe?0:Re),Ue.features.trafficSaving){let Jt=Cc();Jt&&r.actions.internal.setTrafficSavingEnabled(Jt)}if(Ue.features.saveRate&&We){let Jt=Pc();Jt&&!n&&r.actions.internal.setPlaybackRate(Jt)}let yt=bc(r.videoId);yt&&r.actions.internal.setQuality(yt),r.ui.isAutoplay.set(S),S?at():b&&Ue.features.preload&&r.actions.internal.preload()}let ft=me=>{if(window.ResizeObserver){let pt,bt;Ie=new ResizeObserver((0,Wn.throttleFn)(Re=>{let qe=Re[0];if(qe){if(qe.contentBoxSize){let yt=Array.isArray(qe.contentBoxSize)?qe.contentBoxSize[0]:qe.contentBoxSize;pt=yt.inlineSize,bt=yt.blockSize}else qe.contentRect&&(pt=qe.contentRect.width,bt=qe.contentRect.height);Z.set({width:pt,height:bt})}},300)),Ie.observe(me)}Z.set({width:me.clientWidth,height:me.clientHeight})};Bt(()=>{ft(ue);let me=ye.map(bt=>bt.init({store:r,microStores:Be,config:a}));if((y==null?void 0:y.status)==="upcoming"||(y==null?void 0:y.status)==="waiting"){r.actions.internal.setWaitingLive(!0);return}if(((y==null?void 0:y.status)==="finished"||(y==null?void 0:y.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setWaitingRecord(!0);return}return ut(),()=>{Ie==null||Ie.disconnect(),me.forEach(bt=>bt.unsubscribe()),r.destroy()}});function ht(){Je?r.actions.external.play():at(!0)}function gt(){r.actions.external.pause()}function we(me){L||r.actions.external.setMuted(me)}function mt(me){L||me>=0&&me<=1&&r.actions.external.setVolume(me)}function It(me){r.actions.internal.seekTime(me,Op.SeekAction.UNKNOWN)}function Et(me){r.actions.external.seekEpisodeStartTime(me)}function ze(){r.actions.external.returnFocusToEpisodes()}function qt(me){r.actions.external.setPlaybackRate(me)}function Nt(me){r.actions.external.setAutoQualityLimits(me)}function Ut(me){ue=me,t(32,ue)}function Xt(me){ue=me,t(32,ue)}return i.$$set=me=>{"sources"in me&&t(38,o=me.sources),"store"in me&&t(0,r=me.store),"microStoresRoot"in me&&t(39,l=me.microStoresRoot),"videoConfig"in me&&t(40,a=me.videoConfig),"uiConfig"in me&&t(41,s=me.uiConfig),"title"in me&&t(1,u=me.title),"thumbUrl"in me&&t(2,c=me.thumbUrl),"interactiveContainer"in me&&t(3,m=me.interactiveContainer),"subtitles"in me&&t(42,h=me.subtitles),"live"in me&&t(4,y=me.live),"preload"in me&&t(43,b=me.preload),"autoplay"in me&&t(5,S=me.autoplay),"volume"in me&&t(44,w=me.volume),"muted"in me&&t(45,P=me.muted),"fromTime"in me&&t(46,v=me.fromTime),"canRewindLive"in me&&t(6,g=me.canRewindLive),"showAds"in me&&t(7,I=me.showAds),"adsSlotId"in me&&t(8,A=me.adsSlotId),"adsParams"in me&&t(9,q=me.adsParams),"adsPreviewParam"in me&&t(10,K=me.adsPreviewParam),"duration"in me&&t(11,re=me.duration),"logoClickable"in me&&t(12,ae=me.logoClickable),"logoHidden"in me&&t(13,H=me.logoHidden),"isMobile"in me&&t(14,L=me.isMobile),"showNextPrevButtons"in me&&t(15,x=me.showNextPrevButtons),"nextButtonActive"in me&&t(16,Q=me.nextButtonActive),"prevButtonActive"in me&&t(17,J=me.prevButtonActive),"endScreenVideoTitle"in me&&t(18,E=me.endScreenVideoTitle),"endScreenVideoThumb"in me&&t(19,te=me.endScreenVideoThumb),"isOneVideoPlaylist"in me&&t(20,M=me.isOneVideoPlaylist),"supportLink"in me&&t(21,ee=me.supportLink),"outerContainerRef"in me&&t(22,ke=me.outerContainerRef),"fullScreenTarget"in me&&t(23,Qe=me.fullScreenTarget),"failoverHosts"in me&&t(47,je=me.failoverHosts),"showMiniTimer"in me&&t(24,$e=me.showMiniTimer),"saveRate"in me&&t(48,We=me.saveRate),"playNextVideo"in me&&t(25,ve=me.playNextVideo),"playPrevVideo"in me&&t(26,X=me.playPrevVideo),"repeatPlaylist"in me&&t(27,be=me.repeatPlaylist),"seekToInteractive"in me&&t(28,Oe=me.seekToInteractive),"toggleGraph"in me&&t(29,xe=me.toggleGraph),"playPrevChapter"in me&&t(30,et=me.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:r.ui.isMobile.set(L)},[r,u,c,m,y,S,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,$e,ve,X,be,Oe,xe,et,It,ue,Je,Ue,Xe,Ce,at,o,l,a,s,h,b,w,P,v,je,We,ut,ht,gt,we,mt,Et,ze,qt,Nt,Ut,Xt]}var bf=class extends j{constructor(e){super(),W(this,e,r6,l6,U,{sources:38,store:0,microStoresRoot:39,videoConfig:40,uiConfig:41,title:1,thumbUrl:2,interactiveContainer:3,subtitles:42,live:4,preload:43,autoplay:5,volume:44,muted:45,fromTime:46,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:47,showMiniTimer:24,saveRate:48,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:49,play:50,pause:51,setMuted:52,setVolume:53,seekTime:31,seekEpisodeStartTime:54,returnFocusToEpisodes:55,setPlaybackRate:56,setAutoQualityLimits:57},i6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[49]}get play(){return this.$$.ctx[50]}get pause(){return this.$$.ctx[51]}get setMuted(){return this.$$.ctx[52]}get setVolume(){return this.$$.ctx[53]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[54]}get returnFocusToEpisodes(){return this.$$.ctx[55]}get setPlaybackRate(){return this.$$.ctx[56]}get setAutoQualityLimits(){return this.$$.ctx[57]}},Fp=bf;function s6(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function a6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var vf=class extends j{constructor(e){super(),W(this,e,a6,s6,U,{})}},Hp=vf;function u6(i){let e,t;return e=new Hp({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function f6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var yf=class extends j{constructor(e){super(),W(this,e,f6,u6,U,{isWhite:1})}},zp=yf;function c6(i){Se(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 qp(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&k(e)}}}function Up(i){let e,t;return e=new zp({props:{isWhite:!!i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d6(i){let e,t,n,o,r=i[0]&&qp(i),l=(!i[0]||!i[1])&&Up(i);return{c(){e=T("div"),r&&r.c(),t=O(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=qp(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=Up(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),ce()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&k(e),r&&r.d(),l&&l.d()}}}function m6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var wf=class extends j{constructor(e){super(),W(this,e,m6,d6,U,{title:0,thumbUrl:1},c6)}},Kp=wf;var un=require("@vkontakte/videoplayer-shared"),ID=require("@vkontakte/videoplayer-core"),gl=require("@vkontakte/videoplayer-statistics");var cs=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 vo=require("@vkontakte/videoplayer-shared");function p6(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function _6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var kf=class extends j{constructor(e){super(),W(this,e,_6,p6,U,{})}},jp=kf;function h6(i){Se(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 g6(i){let e,t,n,o,r,l,a;return n=new jp({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("span"),l=De(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),z(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),z(e,"is-pip-api",i[2])},m(s,u){C(s,e,u),p(e,t),B(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&z(t,"desktop",!s[1]),(!a||u&1)&&Ye(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),R(n)}}}function b6(i,e,t){let n,o,r=it(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;F(i,a,c=>t(5,n=c));let s=r.ui.isMobile;F(i,s,c=>t(1,o=c));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&Y("pip_dummy_title"))},[u,o,l,a,s,n]}var Cf=class extends j{constructor(e){super(),W(this,e,b6,g6,U,{},h6)}},Wp=Cf;var v6=460,y6=280,Nl=class{constructor(){this.info={isActive$:new vo.ValueSubject(!1),type:1}}isSupported(){let e=(0,vo.getCurrentBrowser)().browser===vo.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,vo.detectEmbed)();return"documentPictureInPicture"in window&&!e&&!t}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:v6,height:y6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
|
|
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 Wp({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Gp(i){return i instanceof Nl}var ds=class{static getLatestSupportedVersion(){let e=new Bo,t=new Nl;if(t.isSupported())return t;if(e.isSupported())return e}};function Sf(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var Qp="Inner error. Unexpectedly root annotation container null reference exception",Yp="Annotation with such name already exists",Zp="Annotation with such name does not exist";var pl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var _l=require("@vkontakte/videoplayer-shared"),w6="1",k6=100,ms=class{constructor(e){this.annotations=new Map;this.subscriptions=new _l.Subscription;this.rootAnnotationsContainer=e;let t=(0,_l.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"},k6);this.subscriptions.add((0,_l.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 pl(Qp);if(this.annotations.has(e))throw new pl(Yp);t.style.zIndex=(n=t.style.zIndex)!=null?n:w6,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 pl(Zp);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var hl=require("@vkontakte/videoplayer-shared"),Jn=class{init({store:e,microStores:t,config:n}){return(0,hl.assertNonNullable)(e),(0,hl.assertNonNullable)(t),(0,hl.assertNonNullable)(n),this.subscription=new hl.Subscription,this.subscription}};var Ol=class extends Jn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var Fl=class extends Jn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=tt(c),h=()=>m&&tt(u);return n.add(u.subscribe(y=>{if(!m)return;let b=tt(l);tt(s)?this.state$.set(y):b!==null&&this.state$.set(!b||y)})),n.add(s.subscribe(y=>{this.state$.set(!y||h())})),n.add(l.subscribe(y=>{if(y===null)return;let b=tt(a);if(h()){this.state$.set(!0);return}b&&this.state$.set(!y)})),n}};var Hl=class extends Jn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var Xp=require("@vkontakte/videoplayer-shared"),Pf=Ne(!1),ps=null,zl=class extends Jn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Pf,set:(t,n=!1)=>{t!==tt(Pf)&&(this.clearTimeout(),Pf.set(t),!t&&ps&&(ps=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{tt(l)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add((0,Xp.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:y})=>{var b,S;if(!(!m||!(y!=null&&y.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&ps===null&&(ps=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(S=(b=o.callbacks)==null?void 0:b.onInteractiveTimeIndicatorHintDeactivated)==null||S.call(b))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Jp=()=>[Ol,Fl,Hl,zl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var C6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:un.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,un.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0},_s=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 un.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new un.Subscription,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new Kp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l;(t=this.annotationsApi)==null||t.destroy(),(n=this.svelteRootComponent)==null||n.$destroy(),(o=this.svelteStubComponent)==null||o.$destroy(),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.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 gt,we,mt,It,Et,ze,qt,Nt,Ut,Xt,me,pt,bt;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:c,preload:m,autoplay:h,volume:y,muted:b,fromTime:S,canRewindLive:w,supportLink:P,showAds:v,adsSlotId:g,adsParams:I={},adsPreviewParam:A,interfaceLanguage:q,logoClickable:K,logoHidden:re,isMobile:ae,isAudioDisabled:H,isLiveCatchUpMode:L,fullScreenTarget:x,failoverHosts:Q,canDownload:J,callbacks:E,interactiveData:te,showThumbTimer:M,additionalButtons:ee=[],repeat:ke,saveRate:Qe}=Sf(this.videoConfig,n),{sources:je,title:$e,thumbUrl:We,unitedVideoId:ve,isClip:X=!1,duration:be,adsParams:Oe={},videoEpisodes:xe,previewThumbsData:et,subtitles:ye,live:Be}=t,Ue={...I,...Oe},Xe=this.getNextVideoInfo(),Te={sources:je,title:$e,thumbUrl:We,subtitles:ye,unitedVideoId:ve,isClip:X,live:Be,albumId:r,statPlace:l,autoplay:h,muted:b,volume:y,fromTime:S,canRewindLive:w,showAds:v,adsSlotId:g,adsParams:Ue,adsPreviewParam:A,duration:be,logoClickable:K,logoHidden:re,isMobile:ae,repeat:ke,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Xe.nextVideoTitle,endScreenVideoThumb:Xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Z={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Te)}`});let Ce=this.uiConfig.features.statistics&&!!ve,{pid:ue}=((we=(gt=this.videoConfig)==null?void 0:gt.interactiveData)==null?void 0:we.projectInfo)||{};Ce&&(this.statistics=new Xr({movieId:ve,albumId:r,place:l,trackCode:u,autoplay:(mt=h&&!this.interactiveController)!=null?mt:!1,mobile:ae,clip:X,refDomain:this.videoConfig.refDomain,...ue&&!this.isInited&&{projectId:Number(ue)}},{refreshAuthToken:c,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Lo(this.uiConfig.sentry,{version:Vo,env:$l},{movieId:ve,albumId:r,place:l,autoplay:(It=h&&!this.interactiveController)!=null?It:!1,mobile:ae,clip:X}),this.interactiveController&&((ze=this.prevIsid)!=null||(this.prevIsid=(Et=this.statistics)==null?void 0:Et.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Lo.getInstance()};let Je=!!te,at=[],ut="tooltip_interactive_go_back_disabled_first";if(Je&&this.interactiveController){let Re=this.interactiveController.state.isInitialChapter$.getValue(),qe=this.interactiveController.getHistoryState();Re&&at.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||at.push("SEEK_TO_INTERACTIVE_BUTTON"),qe.hasPrevChapter$.getValue()||(at.push("PLAY_PREV_CHAPTER_BUTTON"),Re||(qe.isGoBackLimited$.getValue()?ut="tooltip_interactive_go_back_disabled_limit":ut="tooltip_interactive_go_back_disabled"))}let ft=()=>{var qe;this.isInited=!1,this.prevIsid=void 0;let Re=(o==null?void 0:o.info.isEnded$.getValue())&&((qe=this.interactiveController)==null?void 0:qe.state.isEndChapter$.getValue());E.onReplayInteractiveVideo&&!Re?E.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=bm({player:o,interfaceLanguage:q,videoId:ve,isClip:X,isLiveCatchUpMode:L,isAudioDisabled:H,statAuthToken:s,callbacks:E,webApi:Z,videoEpisodes:xe,previewThumbsData:et,canDownload:J,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:at,isInteractive:Je,saveRate:Qe,interactiveRanges$:(qt=this.interactiveController)==null?void 0:qt.state.interactiveRanges$,isInteractiveTime$:(Nt=this.interactiveController)==null?void 0:Nt.state.isInteractiveTime$,replayInteractive:ft,playPrevChapterDisabledTooltip:ut,hasInteractiveBranches:!!((Xt=(Ut=this.interactiveController)==null?void 0:Ut.getChapterBranches())!=null&&Xt.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],looped:ke&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ht}=this.microStoresRoot=Jp();this.subscription.add(this.store.state.currentFormat$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onCurrentFormatChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(ht.interactiveControlsOpacity$.subscribe(Re=>{var qe;Re!==null&&((qe=this==null?void 0:this.interactiveController)==null||qe.setDisabledControls(Re))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onThroughputEstimationChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onTrafficSavingEnabledChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onCurrentPlaybackRateChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.volume$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onVolumeChange)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.muted$.subscribe(Re=>{var qe,yt;return Re?(qe=E==null?void 0:E.onMute)==null?void 0:qe.call(E):(yt=E==null?void 0:E.onUnmute)==null?void 0:yt.call(E)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onVideoBitrateChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Re=>{var yt;let qe=(yt=this.store)==null?void 0:yt.ui.controls.disabledControls$;qe&&(Re&&!qe.includes(Pl)&&qe.add(Pl),Re||qe.remove(Pl))})),this.initMediaSession(),this.interactiveController&&Ce&&this.initInteractivesStatistics(),this.svelteRootComponent=new Fp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:$e,thumbUrl:We,subtitles:ye,live:Be,preload:m,autoplay:h,muted:b,volume:y,fromTime:S,canRewindLive:w,supportLink:P,showAds:v,adsSlotId:g,adsParams:Ue,adsPreviewParam:A,duration:be,logoClickable:K,logoHidden:re,isMobile:ae,failoverHosts:Q,fullScreenTarget:x,saveRate:Qe,showMiniTimer:M,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Xe.nextVideoTitle,endScreenVideoThumb:Xe.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,(bt=(pt=(me=this.videoConfig)==null?void 0:me.callbacks)==null?void 0:pt.onInited)==null||bt.call(pt))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,un.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var c,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=tt(n),s=tt(o);tt(r)?(r.set(!1),(c=this.interactiveController)==null||c.toggleGraphView(!1),l.remove(Ps),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(Ps),!a&&this.graphMadePause&&this.pause())}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?tt(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:y,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:y,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:S}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(P=>{if(!this.isInited)return;let v=this.store;P?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(S.subscribe(P=>{this.store&&this.store.state.isInteractiveExpectation$.set(P)}));let w=!0;if(this.interactiveController.on(a.playerChanged,P=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...P.config,title:(m==null?void 0:m.title)||P.config.title};let v=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(P.player,v),w&&(w=!1)}),this.interactiveController.on(a.interactives,({type:P,actionType:v})=>{var I,A,q,K;if(!this.store)return;let g=S.getValue();if(P==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(xl)),P==="action-choice-canceled"){let re=tt(this.store.state.isPlaying$)||g;if((I=this.videoConfig)!=null&&I.isMobile&&re){this.store.ui.interactiveHideMobileControls.set(!0);return}(K=(A=this.videoConfig)==null?void 0:(q=A.callbacks).onDisabledInteractiveClick)==null||K.call(q)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let P=this.interactiveController.getHistoryState();this.subscription.add(P.history$.subscribe(v=>{var g,I,A;v.length&&((A=(I=(g=this.videoConfig)==null?void 0:g.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||A.call(I,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var P,v,g,I;(P=this.microStoresRoot)==null||P.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(v=this.videoConfig)==null?void 0:(g=v.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(g)})),this.interactiveController.on(a.errors,P=>{this.log({message:P.toString()})})}catch(l){this.log({message:l.message})}}async initInteractivesStatistics(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=await import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:gl.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:gl.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:gl.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:gl.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:gl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),c=new un.Subject;s.subscribe(m=>{var h,y;m in a?c.next(a[m]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(y=(h=this.sentry).report)==null||y.call(h,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:c,nextMovie$:u}))}catch(l){n==null||n.logError({errorType:"InteractiveVideos",fatal:!1}),(r=(o=this.sentry).report)==null||r.call(o,l,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){var o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Sf(C6,(0,un.cloneDeepWith)(t,K=>K instanceof HTMLElement?K:void 0)),this.uiConfig=Xf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},(0,un.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,un.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?c:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isMobile,(b=this.videoConfig).autoplay&&(b.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(S=this.uiConfig.ads.enable)!=null?S:this.videoConfig.showAds,this.videoConfig.adsSlotId=(w=this.uiConfig.ads.slot)!=null?w:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(g=this.videoConfig).canRewindLive&&(g.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(I=this.videoConfig.supportLink)!=null?I:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ds.getLatestSupportedVersion():this.pictureInPictureApi=new Bo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new cs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ms(this.rootContainer):void 0,(A=this.svelteStubComponent)==null||A.$destroy(),(q=this.svelteRootComponent)==null||q.$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]),Gp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}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,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}async setLanguage(t){var n;await((n=this.store)==null?void 0:n.actions.internal.setLanguage(t))}setLiveStart(t){var n,o;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)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}};var bl=require("@vkontakte/videoplayer-shared"),hs=require("@vkontakte/videoplayer-core"),S6=()=>{window.customElements.define("vk-video-player",_s)};
|