@vkontakte/videoplayer 1.1.38-dev.5decff27.0 → 1.1.38-dev.6f70836c.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esnext.cjs.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38-dev.5decff27.0
3
- * Wed, 10 Jul 2024 10:54:08 GMT
2
+ * @vkontakte/videoplayer v1.1.38-dev.6f70836c.0
3
+ * Mon, 29 Jul 2024 10:40:46 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
5
5
  */
6
- "use strict";var k2=Object.create;var zl=Object.defineProperty;var w2=Object.getOwnPropertyDescriptor;var C2=Object.getOwnPropertyNames;var S2=Object.getPrototypeOf,P2=Object.prototype.hasOwnProperty;var I2=(i,e)=>{for(var t in e)zl(i,t,{get:e[t],enumerable:!0})},Ec=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of C2(e))!P2.call(i,o)&&o!==t&&zl(i,o,{get:()=>e[o],enumerable:!(n=w2(e,o))||n.enumerable});return i};var Ac=(i,e,t)=>(t=i!=null?k2(S2(i)):{},Ec(e||!i||!i.__esModule?zl(t,"default",{value:i,enumerable:!0}):t,i)),T2=i=>Ec(zl({},"__esModule",{value:!0}),i);var v6={};I2(v6,{GridTypes:()=>oo,InterfaceLanguage:()=>ml.InterfaceLanguage,VERSION:()=>Co,VKNumericLanguage:()=>ml.VKNumericLanguage,VideoFormat:()=>fs.VideoFormat,VideoQuality:()=>fs.VideoQuality,loadVKLangPack:()=>ml.loadVKLangPack,registerPlayerWebComponent:()=>b6});module.exports=T2(v6);function me(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function _s(i){return i()}function Ul(){return Object.create(null)}function nt(i){i.forEach(_s)}function Ii(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ql;function hs(i,e){return ql||(ql=document.createElement("a")),ql.href=e,i===ql.href}function Mc(i){return Object.keys(i).length===0}function Dt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Dt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Dt(e,t))}function Pe(i,e,t,n){if(i){let o=Vc(i,e,t,n);return i[0](o)}}function Vc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(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 Te(i,e,t,n,o,r){if(o){let l=Vc(e,t,n,r);i.p(l,o)}}function Ee(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 Lc(i){return i??""}var bo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Kl=class i{_listeners="WeakMap"in bo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Kl.entries="WeakMap"in bo?new WeakMap:void 0;var Bc=!1;function Rc(){Bc=!0}function Dc(){Bc=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=Nc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,M2(n,o)}}function Nc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function M2(i,e){return m(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function Ni(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Re(i){return document.createTextNode(i)}function O(){return Re(" ")}function lt(){return Re("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ct(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(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)c(i,t,e[t])}function Oc(i){return Array.from(i.childNodes)}function je(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Wl;function V2(){if(Wl===void 0){Wl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Wl=!0}}return Wl}function qo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=V2(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||r&&n.contentWindow)&&r(),y(n)}}function F(i,e,t){i.classList.toggle(e,!!t)}function Fc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function pn(i,e){return new i(e)}var no;function Qn(i){no=i}function Uo(){if(!no)throw new Error("Function called outside component initialization");return no}function St(i){Uo().$$.on_mount.push(i)}function Ln(i){Uo().$$.on_destroy.push(i)}function Ko(i,e){return Uo().$$.context.set(i,e),e}function Wo(i){return Uo().$$.context.get(i)}function bl(){return Uo().$$.context}function gn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var vo=[];var _e=[],jo=[],bs=[],zc=Promise.resolve(),vs=!1;function ys(){vs||(vs=!0,zc.then(Gl))}function Bn(){return ys(),zc}function Rn(i){jo.push(i)}function Oe(i){bs.push(i)}var gs=new Set,Go=0;function Gl(){if(Go!==0)return;let i=no;do{try{for(;Go<vo.length;){let e=vo[Go];Go++,Qn(e),O2(e.$$)}}catch(e){throw vo.length=0,Go=0,e}for(Qn(null),vo.length=0,Go=0;_e.length;)_e.pop()();for(let e=0;e<jo.length;e+=1){let t=jo[e];gs.has(t)||(gs.add(t),t())}jo.length=0}while(vo.length);for(;bs.length;)bs.pop()();vs=!1,gs.clear(),Qn(i)}function O2(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(Rn)}}function qc(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,yo;function ue(){yo={r:0,c:[],p:yo}}function ce(){yo.r||nt(yo.c),yo=yo.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),yo.c.push(()=>{jl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return 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 Uc(i){return typeof i=="object"&&i!==null?i:{}}var F2=["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"],H2=new Set([...F2]);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),Rn(()=>{let r=i.$$.on_mount.map(_s).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Rn)}function R(i,e){let t=i.$$;t.fragment!==null&&(qc(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function q2(i,e){i.$$.dirty[0]===-1&&(vo.push(i),ys(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,l,a=[-1]){let s=no;Qn(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ul(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ul(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...v)=>{let g=v.length?v[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&q2(i,p)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Rc();let p=Oc(e.target);u.fragment&&u.fragment.l(p),p.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Dc(),Gl()}Qn(s)}var U2;typeof HTMLElement=="function"&&(U2=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let r;return{c:function(){r=document.createElement("slot"),o!=="default"&&r.setAttribute("name",o)},m:function(s,u){k(s,r,u)},d:function(s){s&&y(r)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Fc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let r=this.$$get_prop_name(o.name);r in this.$$data||(this.$$data[r]=Kc(r,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let r of this.$$listeners[o]){let l=this.$$component.$on(o,r);this.$$listener_unsubscribe_fns.set(r,l)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Kc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Kc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var q=class{$$=void 0;$$set=void 0;$destroy(){R(this,1),this.$destroy=me}$on(e,t){if(!Ii(t))return me;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&&!Mc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Wc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wc);var nR=require("@vkontakte/videoplayer-core"),Dn=require("@vkontakte/videoplayer-shared"),Lp=require("@vkontakte/videoplayer-statistics");var Qo=require("@vkontakte/videoplayer-shared");var K2={isMobile:void 0,defaultLanguage:Qo.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:Qo.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}},Gc=i=>(0,Qo.fillWithDefault)(i,K2),jc=i=>Ko("ui-config",i),Mt=()=>Wo("ui-config");var vl="vk_player_debug_panel_opened";var Qc="videoplayer",Yc="videoplayer";var zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Zc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Xc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Jc=new Set(["ShiftRight","ShiftLeft"]);var xc=["TIMELINE"],yl=[...xc,"GRAPH_BUTTON"],ks=[...xc,"PLAY_BUTTON"],Ql=[...yl,"PLAY_BUTTON"];var oo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(oo||{}),wo={xs:0,s:1,m:2,l:3,xl:4};var Yo=[];function Cn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=me){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!Yo.length;for(let u of n)u[1](),Yo.push(u,i);if(s){for(let u=0;u<Yo.length;u+=2)Yo[u][0](Yo[u+1]);Yo.length=0}}}function r(a){o(a(i))}function l(a,s=me){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||me),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 Cn(t,(l,a)=>{let s=!1,u=[],f=0,p=me,h=()=>{if(f)return;p();let g=e(n?u[0]:u,l,a);r?l(g):p=Ii(g)?g:me},v=o.map((g,S)=>Dt(g,w=>{u[S]=w,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){nt(v),p(),s=!1}})}var kl=require("@vkontakte/videoplayer-shared"),$c=require("@vkontakte/videoplayer-core"),ef=require("@vkontakte/videoplayer-statistics");var Yl="prod",Co="1.1.38-dev.5decff27.0";var Zl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var tf=Symbol("storeContext"),nf=Symbol("microStoresContext"),of=(i,e)=>{Ko(tf,i),Ko(nf,e),Yl==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=Wo(tf);return(0,kl.assertNonNullable)(i,"Store context is empty!"),i},Sn=()=>{let i=Wo(nf);return(0,kl.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>ws(i,i.getValue(),e),ws=(i,e,t)=>Cn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),lf=(i,e,t)=>{let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Co} (core: ${$c.VERSION}, stat: ${ef.VERSION}, shared: ${kl.VERSION})`,f=tt(t.state.errorLog$),p=f.length?`
7
- `+f.map((g,S)=>{let w=`${S}) Type: ${g.id}
8
- `,T=`Message: ${g.message} (${g.thrown})
9
- `,C=`Trace: ${g.thrown?.stack}
10
- `;return w+T+C}).join(`
11
- `):void 0,h=t.state.isAudioDisabled?"disabled":tt(t.state.isAudioAvailable$)?void 0:"unavailable",v={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:p};return Object.entries(v).filter(([g,S])=>S!==void 0).map(([g,S])=>`${g}: ${S}`).join(`
12
- `)},rf=(i,e,t)=>{let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l={version:Co,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 f=n.currentBuffer$.getValue();f&&(l.buffer=Math.max(f.end-tt(t.state.positionExact$),0));let p=n.throughputEstimation$.getValue();p&&(l.speed=p);let h=n.videoBitrate$.getValue();h&&(l.bitrate=h);let v=n.currentVideoSegmentLength$.getValue();v&&(l.currentVideoSegmentLength=v);let g=n.currentAudioSegmentLength$.getValue();return g&&(l.currentAudioSegmentLength=g),l},sf=(i,e)=>Zl(i,e,"mp4");var fn=require("@vkontakte/videoplayer-shared"),F7=require("@vkontakte/videoplayer-core"),af="vk_player_prefer_traffic_saving_enabled",uf="vk_player_preferred_volume",cf="vk_player_prefer_volume_mute",Cs="vk_player_preferred_quality",ff="vk_player_preferred_rate",df=i=>i>1?1:i<0?0:i,Ss=i=>fn.safeStorage.set(uf,df(i).toString(10)),Xl=()=>{let i=fn.safeStorage.get(uf);return(0,fn.isNullable)(i)?void 0:df(parseFloat(i))},mf=(i,e)=>fn.safeStorage.set(Cs,JSON.stringify({videoId:i,value:e})),Ps=()=>fn.safeStorage.remove(Cs),pf=i=>{let e=fn.safeStorage.get(Cs);if((0,fn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ps();return}return n},_f=(i,e)=>{e?fn.safeStorage.set(i,"true"):fn.safeStorage.remove(i)},hf=i=>fn.safeStorage.get(i)==="true",Jl=i=>_f(cf,i),gf=()=>hf(cf),bf=i=>_f(af,i),vf=()=>hf(af),yf=i=>fn.safeStorage.set(ff,JSON.stringify({rate:i})),kf=()=>{let i=fn.safeStorage.get(ff);if((0,fn.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var ap=require("@vkontakte/videoplayer-core"),ls=require("@vkontakte/videoplayer-shared");function W2(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C=i[2].default,b=Pe(C,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]],Q={};for(let j=0;j<I.length;j+=1)Q=oe(Q,I[j]);return{c(){e=M("svg"),b&&b.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),l=M("path"),a=M("path"),s=M("defs"),u=M("filter"),f=M("feFlood"),p=M("feColorMatrix"),h=M("feOffset"),v=M("feGaussianBlur"),g=M("feColorMatrix"),S=M("feBlend"),w=M("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(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"),c(r,"clip-rule","evenodd"),c(l,"fill","#fff"),c(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"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(v,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(S,"in2","BackgroundImageFix"),c(S,"result","effect1_dropShadow_618_12297"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_618_12297"),c(w,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),be(e,Q)},m(j,G){k(j,e,G),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(t,r),m(t,l),m(t,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,v),m(u,g),m(u,S),m(u,w),T=!0},p(j,[G]){b&&b.p&&(!T||G&2)&&Te(b,C,j,j[1],T?Ie(C,j[1],G,null):Ee(j[1]),null),be(e,Q=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},G&1&&j[0]]))},i(j){T||(d(b,j),T=!0)},o(j){_(b,j),T=!1},d(j){j&&y(e),b&&b.d(j)}}}function G2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Is=class extends q{constructor(e){super(),U(this,e,G2,W2,z,{})}},xl=Is;var Zo=require("@vkontakte/videoplayer-shared");var j2={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"},wf=j2;var Q2={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"},Cf=Q2;var Yn=new Map;Yn.set(Zo.InterfaceLanguage.EN,Cf);Yn.set(Zo.InterfaceLanguage.RU,wf);var Sf=new Map,Ts=({language:i,pack:e,fallback:t})=>{if(Yn.has(i)){let n=Yn.get(i);Yn.set(i,{...n,...e})}else Yn.set(i,e);Sf.set(i,t)},Es=i=>Yn.has(i),As=(i,e,t,n)=>{let r=Yn.get(i)?.[e];if((0,Zo.isNullable)(r)){let l=Sf.get(i)??n;r=(l?Yn.get(l):void 0)?.[e]}return(0,Zo.isNullable)(r)?e+Object.values(t??{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(l,a)=>t[a]??""):r},W=(i,e)=>{let{interfaceLanguage$:t}=it(),n=tt(t),o=Mt();return As(n,i,e,o.defaultLanguage)};var o9=require("@vkontakte/videoplayer-core");var Xo;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Xo||(Xo={}));var Y2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Z2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,X2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,$l="?",J2="X-Sentry-Auth",x2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $2(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=Y2.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||$l,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=X2.exec(t[r]))o={filename:n[2],function:n[1]||$l,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Z2.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||$l,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=$l),e.push(o)}return e.length?{value:Pf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Pf(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function e_(i){try{let e=$2(i);if(e)return e}catch{}return{value:Pf(i),type:i&&i.name,stacktrace:{frames:[]}}}function t_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var er=class{constructor(e){if(e&&e.dsn){let t=x2.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:[e_(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(J2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:t_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function If(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function i_(){return window}var tr=class i extends er{constructor(e,t=i_()){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=>If(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>If(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],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 So=require("@vkontakte/videoplayer-shared");var ir=null,Po=class{constructor(e,t,n={}){!ir&&e.dsn&&(this.sentryClient=new tr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new So.Subscription,this.options=e,this.context=n,ir=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),ir=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:f,blackErrorCategoryList:p}=l,{errorType:h,category:v}=t;if((0,So.isNonNullable)(v)&&p.includes(v)||(0,So.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,So.isNonNullable)(v)&&u.includes(v)||(0,So.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?Xo.fatal:Xo.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return ir}};var nr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},or=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Tf=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},lo=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},lr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},rr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Ef=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 Ms=require("@vkontakte/videoplayer-shared"),Af=()=>({title:W("hotkey_map_modal_title"),closeBtnText:W("hotkey_map_modal_close_btn_text"),groups:[{title:W("hotkey_map_group_title_common"),items:[{description:W("hotkey_map_item_mute_description"),value:W("hotkey_map_item_mute_value")},{description:W("hotkey_map_item_volume_up_description"),value:W("hotkey_map_item_volume_up_value")},{description:W("hotkey_map_item_volume_down_description"),value:W("hotkey_map_item_volume_down_value")},{description:W("hotkey_map_item_pip_description"),value:W("hotkey_map_item_pip_value")},{description:W("hotkey_map_item_full_screen_description"),value:W("hotkey_map_item_full_screen_value")},{description:W("hotkey_map_item_show_context_menu_description"),value:W("hotkey_map_item_show_context_menu_value")},{description:W("hotkey_map_item_show_hotkey_map_description"),value:W("hotkey_map_item_show_hotkey_map_value")}]},{title:W("hotkey_map_group_title_playback"),items:[{description:W("hotkey_map_item_play_toggle_description"),value:W("hotkey_map_item_play_toggle_value")},{description:W("hotkey_map_item_seek_backward_description"),value:W("hotkey_map_item_seek_backward_value")},{description:W("hotkey_map_item_seek_forward_description"),value:W("hotkey_map_item_seek_forward_value")},{description:W("hotkey_map_item_fast_seek_backward_description"),value:W("hotkey_map_item_fast_seek_backward_value")},{description:W("hotkey_map_item_fast_seek_forward_description"),value:W("hotkey_map_item_fast_seek_forward_value")},{description:W("hotkey_map_item_rate_down_description"),value:W("hotkey_map_item_rate_down_value")},{description:W("hotkey_map_item_rate_up_description"),value:W("hotkey_map_item_rate_up_value")},{description:W("hotkey_map_item_prev_frame_description"),value:W("hotkey_map_item_prev_frame_value")},{description:W("hotkey_map_item_next_frame_description"),value:W("hotkey_map_item_next_frame_value")},{description:W("hotkey_map_item_jump_seek_description"),value:W("hotkey_map_item_jump_seek_value")}]},{title:W("hotkey_map_group_title_subtitles"),items:[{description:W("hotkey_map_item_subtitles_toggle_description"),value:W("hotkey_map_item_subtitles_toggle_value")}]},{title:W("hotkey_map_group_title_episodes"),items:[{description:W("hotkey_map_item_prev_episode_description"),value:(0,Ms.isMacLike)()?W("hotkey_map_item_prev_episode_mac_value"):W("hotkey_map_item_prev_episode_pc_value")},{description:W("hotkey_map_item_next_episode_description"),value:(0,Ms.isMacLike)()?W("hotkey_map_item_next_episode_mac_value"):W("hotkey_map_item_next_episode_pc_value")}]}]});var ro=require("@vkontakte/videoplayer-shared");var Io=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,ro.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ro.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,ro.getCurrentBrowser)().browser===ro.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function To(i){return i instanceof Io}function n_(i){let e=it();return St(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Bs=class extends q{constructor(e){super(),U(this,e,n_,null,z,{})}},Mf=Bs;var Vf=require("@vkontakte/videoplayer-shared");function o_(i){Ce(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 l_(i){let e=W("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Re(e)},m(n,o){k(n,t,o)},p(n,o){o&3&&e!==(e=W("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&je(t,e)},d(n){n&&y(t)}}}function r_(i){let e,t=W("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=P("div"),n=Re(t),o=O(),r=M("svg"),l=M("path"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(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"),c(r,"class","icon svelte-1k4i25s"),c(r,"width","7"),c(r,"height","12"),c(r,"viewBox","0 0 7 12"),c(r,"fill","none"),c(r,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){k(u,e,f),m(e,n),m(e,o),m(e,r),m(r,l),a||(s=pe(e,"click",rt(function(){Ii(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&y(e),a=!1,s()}}}function s_(i){let e;function t(r,l){return r[3]?r_:l_}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),c(e,"class","container svelte-1k4i25s"),F(e,"container-mobile",i[4]),F(e,"skippable",i[3])},m(r,l){k(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:me,o:me,d(r){r&&y(e),o.d()}}}function a_(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Vf.noop}=e,s=it().ui.isMobile;H(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,r=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,l=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Rs=class extends q{constructor(e){super(),U(this,e,a_,s_,z,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},o_)}},Lf=Rs;function u_(i){Ce(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=P("button"),e.textContent=`${W("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){k(t,e,n)},p:me,i:me,o:me,d(t){t&&y(e)}}}var Ds=class extends q{constructor(e){super(),U(this,e,null,c_,z,{},u_)}},Bf=Ds;function f_(i){Ce(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 C_=Object.create;var ql=Object.defineProperty;var S_=Object.getOwnPropertyDescriptor;var P_=Object.getOwnPropertyNames;var I_=Object.getPrototypeOf,T_=Object.prototype.hasOwnProperty;var E_=(i,e)=>{for(var t in e)ql(i,t,{get:e[t],enumerable:!0})},Mc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of P_(e))!T_.call(i,o)&&o!==t&&ql(i,o,{get:()=>e[o],enumerable:!(n=S_(e,o))||n.enumerable});return i};var hs=(i,e,t)=>(t=i!=null?C_(I_(i)):{},Mc(e||!i||!i.__esModule?ql(t,"default",{value:i,enumerable:!0}):t,i)),A_=i=>Mc(ql({},"__esModule",{value:!0}),i);var k6={};E_(k6,{GridTypes:()=>lo,InterfaceLanguage:()=>_l.InterfaceLanguage,VERSION:()=>Po,VKNumericLanguage:()=>_l.VKNumericLanguage,VideoFormat:()=>ds.VideoFormat,VideoQuality:()=>ds.VideoQuality,loadVKLangPack:()=>_l.loadVKLangPack,registerPlayerWebComponent:()=>w6});module.exports=A_(k6);function me(){}function ne(i,e){for(let t in e)i[t]=e[t];return i}function gs(i){return i()}function Kl(){return Object.create(null)}function et(i){i.forEach(gs)}function Si(i){return typeof i=="function"}function q(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ul;function bs(i,e){return Ul||(Ul=document.createElement("a")),Ul.href=e,i===Ul.href}function Vc(i){return Object.keys(i).length===0}function Ht(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function xe(i){let e;return Ht(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Ht(e,t))}function Pe(i,e,t,n){if(i){let o=Lc(i,e,t,n);return i[0](o)}}function Lc(i,e,t,n){return i[1]&&n?ne(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Te(i,e,t,n,o,l){if(o){let r=Lc(e,t,n,l);i.p(r,o)}}function Ee(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 Rc(i){return i??""}var yo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var jl=class i{_listeners="WeakMap"in yo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};jl.entries="WeakMap"in yo?new WeakMap:void 0;var Bc=!1;function Dc(){Bc=!0}function Nc(){Bc=!1}function m(i,e){i.appendChild(e)}function ke(i,e,t){let n=Oc(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,L_(n,o)}}function Oc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function L_(i,e){return m(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function Fi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Re(i){return document.createTextNode(i)}function F(){return Re(" ")}function lt(){return Re("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function It(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(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)c(i,t,e[t])}function Fc(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Wl;function R_(){if(Wl===void 0){Wl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Wl=!0}}return Wl}function Ko(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=I("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=R_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function z(i,e,t){i.classList.toggle(e,!!t)}function Hc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function hn(i,e){return new i(e)}var oo;function Qn(i){oo=i}function jo(){if(!oo)throw new Error("Function called outside component initialization");return oo}function Tt(i){jo().$$.on_mount.push(i)}function Rn(i){jo().$$.on_destroy.push(i)}function Wo(i,e){return jo().$$.context.set(i,e),e}function Go(i){return jo().$$.context.get(i)}function bl(){return jo().$$.context}function yn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var wo=[];var pe=[],Yo=[],ys=[],qc=Promise.resolve(),ws=!1;function ks(){ws||(ws=!0,qc.then(Gl))}function Bn(){return ks(),qc}function Dn(i){Yo.push(i)}function Oe(i){ys.push(i)}var vs=new Set,Qo=0;function Gl(){if(Qo!==0)return;let i=oo;do{try{for(;Qo<wo.length;){let e=wo[Qo];Qo++,Qn(e),H_(e.$$)}}catch(e){throw wo.length=0,Qo=0,e}for(Qn(null),wo.length=0,Qo=0;pe.length;)pe.pop()();for(let e=0;e<Yo.length;e+=1){let t=Yo[e];vs.has(t)||(vs.add(t),t())}Yo.length=0}while(wo.length);for(;ys.length;)ys.pop()();ws=!1,vs.clear(),Qn(i)}function H_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Dn)}}function Uc(i){let e=[],t=[];Yo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Yo=e}var Ql=new Set,ko;function ue(){ko={r:0,c:[],p:ko}}function ce(){ko.r||et(ko.c),ko=ko.p}function d(i,e){i&&i.i&&(Ql.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Ql.has(i))return;Ql.add(i),ko.c.push(()=>{Ql.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return i?.length!==void 0?i:Array.from(i)}function Me(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Kc(i){return typeof i=="object"&&i!==null?i:{}}var z_=["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"],q_=new Set([...z_]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Dn(()=>{let l=i.$$.on_mount.map(gs).filter(Si);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Dn)}function R(i,e){let t=i.$$;t.fragment!==null&&(Uc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function K_(i,e){i.$$.dirty[0]===-1&&(wo.push(i),ks(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function K(i,e,t,n,o,l,r,a=[-1]){let s=oo;Qn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:me,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Kl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...b)=>{let g=b.length?b[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&K_(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Dc();let p=Fc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Nc(),Gl()}Qn(s)}var j_;typeof HTMLElement=="function"&&(j_=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){C(s,l,u)},d:function(s){s&&w(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Hc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=jc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=jc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function jc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){R(this,1),this.$destroy=me}$on(e,t){if(!Si(t))return me;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&&!Vc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Wc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wc);var sB=require("@vkontakte/videoplayer-core"),Nn=require("@vkontakte/videoplayer-shared"),Bp=require("@vkontakte/videoplayer-statistics");var Zo=require("@vkontakte/videoplayer-shared");var W_={isMobile:void 0,defaultLanguage:Zo.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:Zo.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}},Gc=i=>(0,Zo.fillWithDefault)(i,W_),Qc=i=>Wo("ui-config",i),Lt=()=>Go("ui-config");var vl="vk_player_debug_panel_opened";var Yc="videoplayer",Zc="videoplayer";var Un={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Xc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),xc=new Set(["ShiftRight","ShiftLeft"]);var $c=["TIMELINE"],yl=[...$c,"GRAPH_BUTTON"],Cs=[...$c,"PLAY_BUTTON"],Yl=[...yl,"PLAY_BUTTON"];var lo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(lo||{}),So={xs:0,s:1,m:2,l:3,xl:4};var Xo=[];function In(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=me){let t,n=new Set;function o(a){if(q(i,a)&&(i=a,t)){let s=!Xo.length;for(let u of n)u[1](),Xo.push(u,i);if(s){for(let u=0;u<Xo.length;u+=2)Xo[u][0](Xo[u+1]);Xo.length=0}}}function l(a){o(a(i))}function r(a,s=me){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Pi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return In(t,(r,a)=>{let s=!1,u=[],f=0,p=me,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Si(g)?g:me},b=o.map((g,S)=>Ht(g,y=>{u[S]=y,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){et(b),p(),s=!1}})}var wl=require("@vkontakte/videoplayer-shared"),ef=require("@vkontakte/videoplayer-core"),tf=require("@vkontakte/videoplayer-statistics");var Zl="prod",Po="1.1.38-dev.6f70836c.0";var Xl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var nf=Symbol("storeContext"),of=Symbol("microStoresContext"),lf=(i,e)=>{Wo(nf,i),Wo(of,e),Zl==="dev"&&(window.app={store:i,microStores:e})},$e=()=>{let i=Go(nf);return(0,wl.assertNonNullable)(i,"Store context is empty!"),i},Tn=()=>{let i=Go(of);return(0,wl.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>Ss(i,i.getValue(),e),Ss=(i,e,t)=>In(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),rf=(i,e,t)=>{let n=i.info,{width:o,height:l}=xe(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Po} (core: ${ef.VERSION}, stat: ${tf.VERSION}, shared: ${wl.VERSION})`,f=xe(t.state.errorLog$),p=f.length?`
7
+ `+f.map((g,S)=>{let y=`${S}) Type: ${g.id}
8
+ `,E=`Message: ${g.message} (${g.thrown})
9
+ `,k=`Trace: ${g.thrown?.stack}
10
+ `;return y+E+k}).join(`
11
+ `):void 0,h=t.state.isAudioDisabled?"disabled":xe(t.state.isAudioAvailable$)?void 0:"unavailable",b={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:`${r}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:`${xe(t.state.positionExact$)}s`,State:`${xe(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(b).filter(([g,S])=>S!==void 0).map(([g,S])=>`${g}: ${S}`).join(`
12
+ `)},sf=(i,e,t)=>{let n=i.info,{width:o,height:l}=xe(t.ui.playerSize),r={version:Po,viewport:`${o}x${l}`,volume:Math.round(xe(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(p&&h?r.buffer=f.end-h:r.buffer=Math.max(f.end-xe(t.state.positionExact$),0));let b=n.throughputEstimation$.getValue();b&&(r.speed=b);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let S=n.currentVideoSegmentLength$.getValue();S&&(r.currentVideoSegmentLength=S);let y=n.currentAudioSegmentLength$.getValue();return y&&(r.currentAudioSegmentLength=y),r},af=(i,e)=>Xl(i,e,"mp4");var un=require("@vkontakte/videoplayer-shared"),q7=require("@vkontakte/videoplayer-core"),uf="vk_player_prefer_traffic_saving_enabled",cf="vk_player_preferred_volume",ff="vk_player_prefer_volume_mute",Ps="vk_player_preferred_quality",df="vk_player_preferred_rate",mf=i=>i>1?1:i<0?0:i,Is=i=>un.safeStorage.set(cf,mf(i).toString(10)),Jl=()=>{let i=un.safeStorage.get(cf);return(0,un.isNullable)(i)?void 0:mf(parseFloat(i))},pf=(i,e)=>un.safeStorage.set(Ps,JSON.stringify({videoId:i,value:e})),Ts=()=>un.safeStorage.remove(Ps),_f=i=>{let e=un.safeStorage.get(Ps);if((0,un.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ts();return}return n},hf=(i,e)=>{e?un.safeStorage.set(i,"true"):un.safeStorage.remove(i)},gf=i=>un.safeStorage.get(i)==="true",xl=i=>hf(ff,i),bf=()=>gf(ff),vf=i=>hf(uf,i),yf=()=>gf(uf),wf=i=>un.safeStorage.set(df,JSON.stringify({rate:i})),kf=()=>{let i=un.safeStorage.get(df);if((0,un.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var cp=require("@vkontakte/videoplayer-core"),rs=require("@vkontakte/videoplayer-shared");function G_(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k=i[2].default,v=Pe(k,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],W={};for(let Q=0;Q<T.length;Q+=1)W=ne(W,T[Q]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),l=D("path"),r=D("path"),a=D("path"),s=D("defs"),u=D("filter"),f=D("feFlood"),p=D("feColorMatrix"),h=D("feOffset"),b=D("feGaussianBlur"),g=D("feColorMatrix"),S=D("feBlend"),y=D("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.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"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.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"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(b,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(S,"in2","BackgroundImageFix"),c(S,"result","effect1_dropShadow_618_12297"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_618_12297"),c(y,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ge(e,W)},m(Q,G){C(Q,e,G),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(t,l),m(t,r),m(t,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,b),m(u,g),m(u,S),m(u,y),E=!0},p(Q,[G]){v&&v.p&&(!E||G&2)&&Te(v,k,Q,Q[1],E?Ie(k,Q[1],G,null):Ee(Q[1]),null),ge(e,W=Me(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},G&1&&Q[0]]))},i(Q){E||(d(v,Q),E=!0)},o(Q){_(v,Q),E=!1},d(Q){Q&&w(e),v&&v.d(Q)}}}function Q_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Es=class extends U{constructor(e){super(),K(this,e,Q_,G_,q,{})}},$l=Es;var Jo=require("@vkontakte/videoplayer-shared");var Y_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},Cf=Y_;var Z_={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"},Sf=Z_;var Yn=new Map;Yn.set(Jo.InterfaceLanguage.EN,Sf);Yn.set(Jo.InterfaceLanguage.RU,Cf);var Pf=new Map,As=({language:i,pack:e,fallback:t})=>{if(Yn.has(i)){let n=Yn.get(i);Yn.set(i,{...n,...e})}else Yn.set(i,e);Pf.set(i,t)},Ms=i=>Yn.has(i),Vs=(i,e,t,n)=>{let l=Yn.get(i)?.[e];if((0,Jo.isNullable)(l)){let r=Pf.get(i)??n;l=(r?Yn.get(r):void 0)?.[e]}return(0,Jo.isNullable)(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},j=(i,e)=>{let{interfaceLanguage$:t}=$e(),n=xe(t),o=Lt();return Vs(n,i,e,o.defaultLanguage)};var s9=require("@vkontakte/videoplayer-core");var xo;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(xo||(xo={}));var X_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,J_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,x_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,er="?",$_="X-Sentry-Auth",e2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function t2(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
+ `),n,o;for(let l=0;l<t.length;++l){if(n=X_.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||er,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=x_.exec(t[l]))o={filename:n[2],function:n[1]||er,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=J_.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||er,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=er),e.push(o)}return e.length?{value:If(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function If(i){return(i&&i.message||"No error message").split(`
14
+ `).filter(t=>!!t)[0]}function i2(i){try{let e=t2(i);if(e)return e}catch{}return{value:If(i),type:i&&i.name,stacktrace:{frames:[]}}}function n2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var tr=class{constructor(e){if(e&&e.dsn){let t=e2.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[i2(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($_,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:n2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Tf(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function o2(){return window}var ir=class i extends tr{constructor(e,t=o2()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,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=>Tf(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Tf(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...t,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Io=require("@vkontakte/videoplayer-shared");var nr=null,To=class{constructor(e,t,n={}){!nr&&e.dsn&&(this.sentryClient=new ir({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Io.Subscription,this.options=e,this.context=n,nr=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),nr=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:h,category:b}=t;if((0,Io.isNonNullable)(b)&&p.includes(b)||(0,Io.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,Io.isNonNullable)(b)&&u.includes(b)||(0,Io.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{h&&o.captureMessage(h,t.fatal?xo.fatal:xo.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return nr}};var or=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},lr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Ef=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},kl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},ro=()=>!!kl(),rr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},sr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Af=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 Ls=require("@vkontakte/videoplayer-shared"),Mf=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:(0,Ls.isMacLike)()?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:(0,Ls.isMacLike)()?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});var so=require("@vkontakte/videoplayer-shared");var Eo=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,so.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new so.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,so.getCurrentBrowser)().browser===so.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function Ao(i){return i instanceof Eo}function l2(i){let e=$e();return Tt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ds=class extends U{constructor(e){super(),K(this,e,l2,null,q,{})}},Vf=Ds;var Lf=require("@vkontakte/videoplayer-shared");function r2(i){ke(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 s2(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ge(t,e)},d(n){n&&w(t)}}}function a2(i){let e,t=j("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=I("div"),n=Re(t),o=F(),l=D("svg"),r=D("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){C(u,e,f),m(e,n),m(e,o),m(e,l),m(l,r),a||(s=de(e,"click",rt(function(){Si(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&w(e),a=!1,s()}}}function u2(i){let e;function t(l,r){return l[3]?a2:s2}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),c(e,"class","container svelte-1k4i25s"),z(e,"container-mobile",i[4]),z(e,"skippable",i[3])},m(l,r){C(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&z(e,"container-mobile",l[4]),r&8&&z(e,"skippable",l[3])},i:me,o:me,d(l){l&&w(e),o.d()}}}function c2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=Lf.noop}=e,s=$e().ui.isMobile;H(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var Ns=class extends U{constructor(e){super(),K(this,e,c2,u2,q,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},r2)}},Rf=Ns;function f2(i){ke(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 d2(i){let e;return{c(){e=I("button"),e.textContent=`${j("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:me,i:me,o:me,d(t){t&&w(e)}}}var Os=class extends U{constructor(e){super(),K(this,e,null,d2,q,{},f2)}},Bf=Os;function m2(i){ke(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 Rf(i){let e;return{c(){e=P("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function Df(i){let e,t;return e=new Lf({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 Nf(i){let e,t;return e=new Mf({}),{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 Of(i){let e,t;return e=new Bf({}),{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 d_(i){let e,t,n,o,r,l,a,s=i[0]&&Rf(i),u=i[3]&&Df(i),f=i[7]&&Nf(i),p=i[4]&&Of(i);return{c(){e=P("div"),s&&s.c(),t=O(),n=P("video"),o=O(),u&&u.c(),r=O(),f&&f.c(),l=O(),p&&p.c(),ci(n,"width","100%"),ci(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,v){k(h,e,v),s&&s.m(e,null),m(e,t),m(e,n),i[19](n),m(e,o),u&&u.m(e,null),m(e,r),f&&f.m(e,null),m(e,l),p&&p.m(e,null),i[20](e),a=!0},p(h,[v]){h[0]?s||(s=Rf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,v),v&8&&d(u,1)):(u=Df(h),u.c(),d(u,1),u.m(e,r)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[7]?f?v&128&&d(f,1):(f=Nf(h),f.c(),d(f,1),f.m(e,l)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[4]?p?v&16&&d(p,1):(p=Of(h),p.c(),d(p,1),p.m(e,null)):p&&(ue(),_(p,1,1,()=>{p=null}),ce())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&y(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function m_(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,h=it(),v=h.state.isEnded$;H(i,v,V=>t(7,a=V));let g=h.ui.isMobile;H(i,g,V=>t(0,o=V));let S,w,T=!1,C=h.ads.playbackState;H(i,C,V=>t(18,n=V));let b=h.ads.canSkip,I=h.ads.position;H(i,I,V=>t(5,r=V));let Q=h.ads.secondsToWatchBeforeSkip;H(i,Q,V=>t(6,l=V));let j,G;St(()=>{let V=new AbortController,A=()=>{V.abort()},$=h.getAdmanWrapper();if(!s){$.onAdmanLoadingError();return}let{width:J,height:x}=tt(h.ui.playerSize),N=tt(h.ui.isFullscreen),te=tt(h.ui.isAutoplay),E={width:J,height:x,isFullscreen:N,isAutoplay:te,adsContainer:S,adsVideoElement:w,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?($.initAdman(E),T=!0):$.loadAdman(V.signal).then(()=>{$.initAdman(E),T=!0}).catch(()=>{$.onAdmanLoadingError()}),()=>{!T&&A()}});function le(V){_e[V?"unshift":"push"](()=>{w=V,t(2,w)})}function se(V){_e[V?"unshift":"push"](()=>{S=V,t(1,S)})}return i.$$set=V=>{"adsSlotId"in V&&t(14,s=V.adsSlotId),"adsParams"in V&&t(15,u=V.adsParams),"adsPreviewParam"in V&&t(16,f=V.adsPreviewParam),"duration"in V&&t(17,p=V.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,j=b&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,G=o&&n!=="inactive")},[o,S,w,j,G,r,l,a,h,v,g,C,I,Q,s,u,f,p,n,le,se]}var Ns=class extends q{constructor(e){super(),U(this,e,m_,d_,z,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},f_)}},sr=Ns;var bn=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 p_(i){let e,t,n,o,r=i[2].default,l=Pe(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=M("svg"),l&&l.c(),t=M("path"),n=M("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(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"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(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,f){k(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Te(l,r,u,u[1],o?Ie(r,u[1],f,null):Ee(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&y(e),l&&l.d(u)}}}function __(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Os=class extends q{constructor(e){super(),U(this,e,__,p_,z,{})}},Ff=Os;function h_(i){let e,t,n,o,r=i[2].default,l=Pe(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=M("svg"),l&&l.c(),t=M("rect"),n=M("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),be(e,s)},m(u,f){k(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Te(l,r,u,u[1],o?Ie(r,u[1],f,null):Ee(u[1]),null),be(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"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&y(e),l&&l.d(u)}}}function g_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Fs=class extends q{constructor(e){super(),U(this,e,g_,h_,z,{})}},Hf=Fs;function b_(i){let e,t;return e=new Ff({}),{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 v_(i){let e,t;return e=new Hf({}),{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,n,o,r=[v_,b_],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),k(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ue(),_(l[f],1,1,()=>{l[f]=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&&y(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 Hs=class extends q{constructor(e){super(),U(this,e,k_,y_,z,{isActive:0})}},ar=Hs;function w_(i){Ce(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 C_(i){let e=bn(i[4]-i[3])+"",t;return{c(){t=Re(e)},m(n,o){k(n,t,o)},p(n,o){o&24&&e!==(e=bn(n[4]-n[3])+"")&&je(t,e)},i:me,o:me,d(n){n&&y(t)}}}function S_(i){let e,t,n;return t=new ar({props:{isActive:!0}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){k(o,e,r),B(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&y(e),R(t)}}}function P_(i){let e,t,n,o,r,l,a,s=[S_,C_],u=[];function f(p,h){return p[1]?0:1}return r=f(i,-1),l=u[r]=s[r](i),{c(){e=P("div"),t=P("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=O(),o=P("span"),l.c(),c(t,"class","thumb-timer-equalizer svelte-7pnl2h"),c(o,"class","thumb-timer-text svelte-7pnl2h"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-7pnl2h"),c(e,"data-testid","thumb-timer"),F(e,"live",i[1]),F(e,"hidden",i[0]),F(e,"playing",i[2])},m(p,h){k(p,e,h),m(e,t),m(e,n),m(e,o),u[r].m(o,null),a=!0},p(p,[h]){let v=r;r=f(p,h),r===v?u[r].p(p,h):(ue(),_(u[v],1,1,()=>{u[v]=null}),ce(),l=u[r],l?l.p(p,h):(l=u[r]=s[r](p),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&F(e,"live",p[1]),(!a||h&1)&&F(e,"hidden",p[0]),(!a||h&4)&&F(e,"playing",p[2])},i(p){a||(d(l),a=!0)},o(p){_(l),a=!1},d(p){p&&y(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 zs=class extends q{constructor(e){super(),U(this,e,I_,P_,z,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},w_)}},ur=zs;var wl=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 qs=require("@vkontakte/videoplayer-core");var qf=require("@vkontakte/videoplayer-shared"),T_=(0,qf.isAndroid)(),Ao=i=>{i.stopPropagation(),i.preventDefault()},E_=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},A_=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},M_=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},V_=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Uf=i=>i.code==="Escape",L_=i=>i.code==="ArrowLeft",Kf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Wf=i=>{if(M_(i)){Ao(i),A_(i.target);return}V_(i)&&(Ao(i),E_(i.target))},xo=i=>i?.detail===0||T_&&i?.pointerType==="",$o=async(i,e,t)=>{await Bn(),i&&!i.classList.contains("opened")&&!e&&tt(t)&&(await Bn(),t.set(!1),i.focus())},Gf=async(i,e,t)=>{await Bn(),i&&!e&&tt(t)&&(t.set(!1),i.focus())},Mo=async(i,e,t)=>{await Bn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},Cl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},cr=(i,e)=>{Wf(i),Uf(i)&&(Ao(i),e())},Sl=async(i,e,t)=>{Kf(i,!1)&&(Ao(i),e(),await Bn(),t()?.focus())},Pl=async(i,e,t,n)=>{if(Wf(i),L_(i)){Ao(i),e(),t.set(!0);return}Uf(i)&&(Ao(i),n())},Qi=(i,e)=>{Kf(i)&&(Ao(i),e())},jf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Qf=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 Il=require("@vkontakte/videoplayer-shared");function B_(i){Ce(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 Yf(i){let e,t,n,o,r,l,a,s,u,f=(i[10].features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug"))+"",p,h,v,g,S=W("menu_debug_overlay")+"",w,T,C,b,I=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&R_(i),Q=i[12]&&i[6]!==qs.ChromecastState.CONNECTED&&!i[17]&&Xf(i);function j(A,$){return A[4]?N_:D_}let G=j(i,[-1,-1]),le=G(i),se=i[10].features.videoRotate&&!i[17]&&O_(i),V=i[10].showSupport&&!i[7]&&Jf(i);return{c(){e=P("ul"),I&&I.c(),t=O(),Q&&Q.c(),n=O(),o=P("li"),le.c(),l=O(),se&&se.c(),a=O(),V&&V.c(),s=O(),u=P("li"),p=Re(f),v=O(),g=P("li"),w=Re(S),c(o,"tabindex","0"),c(o,"role","menuitem"),c(o,"aria-label",r=W("aria_label_menu_loop")),c(o,"class","svelte-1vzqlps"),c(u,"tabindex","0"),c(u,"role","menuitem"),c(u,"aria-label",h=i[10].features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug")),c(u,"class","svelte-1vzqlps"),c(g,"tabindex","0"),c(g,"role","menuitem"),c(g,"aria-label",T=i[8]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable")),c(g,"class","svelte-1vzqlps"),c(e,"role","menu"),ci(e,"top",i[3]+"px"),ci(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(A,$){k(A,e,$),I&&I.m(e,null),m(e,t),Q&&Q.m(e,null),m(e,n),m(e,o),le.m(o,null),m(e,l),se&&se.m(e,null),m(e,a),V&&V.m(e,null),m(e,s),m(e,u),m(u,p),m(e,v),m(e,g),m(g,w),i[42](e),C||(b=[pe(o,"click",rt(i[24])),pe(o,"keydown",i[30]),pe(u,"click",rt(i[21])),pe(u,"keydown",i[32]),pe(g,"click",rt(i[22])),pe(g,"keydown",i[33]),pe(e,"contextmenu",Ct(i[39])),pe(e,"keydown",i[26])],C=!0)},p(A,$){A[10].features.copyVideoLink&&A[9].callbacks?.onCopyVideoLink&&I.p(A,$),A[12]&&A[6]!==qs.ChromecastState.CONNECTED&&!A[17]?Q?Q.p(A,$):(Q=Xf(A),Q.c(),Q.m(e,n)):Q&&(Q.d(1),Q=null),G===(G=j(A,$))&&le?le.p(A,$):(le.d(1),le=G(A),le&&(le.c(),le.m(o,null))),A[10].features.videoRotate&&!A[17]&&se.p(A,$),A[10].showSupport&&!A[7]?V?V.p(A,$):(V=Jf(A),V.c(),V.m(e,s)):V&&(V.d(1),V=null),$[0]&256&&T!==(T=A[8]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"))&&c(g,"aria-label",T),$[0]&8&&ci(e,"top",A[3]+"px"),$[0]&4&&ci(e,"left",A[2]+"px")},d(A){A&&y(e),I&&I.d(),Q&&Q.d(),le.d(),se&&se.d(),V&&V.d(),i[42](null),C=!1,nt(b)}}}function R_(i){let e,t=W("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&Zf(i);return{c(){e=P("li"),n=Re(t),r=O(),u&&u.c(),l=lt(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=W("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(f,p){k(f,e,p),m(e,n),k(f,r,p),u&&u.m(f,p),k(f,l,p),a||(s=[pe(e,"click",rt(i[40])),pe(e,"keydown",i[27])],a=!0)},p(f,p){!f[5]&&!f[17]?u?u.p(f,p):(u=Zf(f),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(f){f&&(y(e),y(r),y(l)),u&&u.d(f),a=!1,nt(s)}}}function Zf(i){let e,t=W("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=P("li"),n=Re(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=W("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(a,s){k(a,e,s),m(e,n),r||(l=[pe(e,"click",rt(i[41])),pe(e,"keydown",i[28])],r=!0)},p:me,d(a){a&&y(e),r=!1,nt(l)}}}function Xf(i){let e,t=W("menu_pip")+"",n,o,r,l;return{c(){e=P("li"),n=Re(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=W("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){k(a,e,s),m(e,n),r||(l=[pe(e,"click",rt(i[23])),pe(e,"keydown",i[29])],r=!0)},p:me,d(a){a&&y(e),r=!1,nt(l)}}}function D_(i){let e=W("menu_video_loop_on")+"",t;return{c(){t=Re(e)},m(n,o){k(n,t,o)},p:me,d(n){n&&y(t)}}}function N_(i){let e=W("menu_video_loop_off")+"",t;return{c(){t=Re(e)},m(n,o){k(n,t,o)},p:me,d(n){n&&y(t)}}}function O_(i){let e,t=W("menu_video_rotate")+"",n,o,r,l;return{c(){e=P("li"),n=Re(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=W("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(a,s){k(a,e,s),m(e,n),r||(l=[pe(e,"click",rt(i[19])),pe(e,"keydown",i[30])],r=!0)},p:me,d(a){a&&y(e),r=!1,nt(l)}}}function Jf(i){let e,t=W("menu_report")+"",n,o,r,l;return{c(){e=P("li"),n=Re(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(a,s){k(a,e,s),m(e,n),r||(l=[pe(e,"click",rt(i[20])),pe(e,"keydown",i[31])],r=!0)},p:me,d(a){a&&y(e),r=!1,nt(l)}}}function F_(i){let e,t=i[1]&&Yf(i);return{c(){t&&t.c(),e=lt()},m(n,o){t&&t.m(n,o),k(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Yf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:me,o:me,d(n){n&&y(e),t&&t.d(n)}}}function H_(i,e,t){let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:v=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:S}=e,w=0,T=0,C=it(),b=Mt(),I=C.ui.contextMenu.visible$,Q=C.ui.debugPanelVisible;H(i,Q,ae=>t(8,s=ae));let j=C.webApi.pictureInPictureApi,G=C.webApi.pictureInPictureApi?.info.isActive$;H(i,G,ae=>t(7,a=ae));let le=C.state.chromecastState$;H(i,le,ae=>t(6,l=ae));let se=C.state.isLive$;H(i,se,ae=>t(5,r=ae));let V=C.state.positionExact$;H(i,V,ae=>t(43,n=ae));let A=C.state.isInteractive,$=C.state.looped$;H(i,$,ae=>t(4,o=ae));let J=()=>{I.set(!1)},x=(ae,ne)=>{if(!g||!h||!v)return;let Se=g.getBoundingClientRect(),fe=h.getBoundingClientRect();t(2,w=ae-fe.left),t(3,T=ne-fe.top),w+Se.width>fe.width&&t(2,w=fe.width-Se.width),T+Se.height>fe.height&&t(3,T=fe.height-Se.height),t(2,w=Math.max(w,0)),t(3,T=Math.max(T,0))},N=()=>{J(),C.actions.internal.videoRotate()},te=()=>{window.open(f,"_blank"),J(),C.actions.internal.pause()},E=()=>{let ae=C.actions.internal.getDebugTextData();if(b.features.saveDebugInfoToFile){let ne=new Blob([...ae],{type:"plain/text"}),Se=window.URL.createObjectURL(ne);Zl(Se,"vk_player_debug_info","txt")}else wl(C.actions.internal.getDebugTextData());J(),S?.()},Y=()=>{Q.set(!0),J(),S?.()},Be=async()=>{try{j?.isActive()?await j?.remove():await j?.request()}finally{J(),S?.()}},We=()=>{C.actions.internal.setLooped(!o),J()},qe=(ae=!1)=>{if(C.callbacks?.onCopyVideoLink){let ne=C.callbacks?.onCopyVideoLink(ae,n);ne&&wl(ne)}J()},Je=ae=>{cr(ae,J)},Ne=ae=>{Qi(ae,()=>qe())},ve=ae=>{Qi(ae,()=>qe(!0))},X=ae=>{Qi(ae,()=>Be())},ke=ae=>{Qi(ae,()=>N())},He=ae=>{Qi(ae,()=>te())},xe=ae=>{Qi(ae,()=>E())},et=ae=>{Qi(ae,()=>Y())};function we(ae){gn.call(this,i,ae)}let Ve=()=>qe(),Ue=()=>qe(!0);function Ye(ae){_e[ae?"unshift":"push"](()=>{g=ae,t(0,g)})}return i.$$set=ae=>{"visible"in ae&&t(1,u=ae.visible),"supportLink"in ae&&t(34,f=ae.supportLink),"position"in ae&&t(35,p=ae.position),"playerContainerRef"in ae&&t(36,h=ae.playerContainerRef),"controlsContainerRef"in ae&&t(37,v=ae.controlsContainerRef),"menuElementRef"in ae&&t(0,g=ae.menuElementRef),"returnFocus"in ae&&t(38,S=ae.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(g&&h&&v){let{top:ae,left:ne,bottom:Se,right:fe}=p,Ae=ne??0,Xe=ae??0,at=g.getBoundingClientRect();(0,Il.isNullable)(ne)&&!(0,Il.isNullable)(fe)&&(Ae=fe-at.width),(0,Il.isNullable)(ae)&&!(0,Il.isNullable)(Se)&&(Xe=Se-at.height),Ae=Math.max(Ae,0),Xe=Math.max(Xe,0),x(Ae,Xe)}}},[g,u,w,T,o,r,l,a,s,C,b,Q,j,G,le,se,V,A,$,N,te,E,Y,Be,We,qe,Je,Ne,ve,X,ke,He,xe,et,f,p,h,v,S,we,Ve,Ue,Ye]}var Us=class extends q{constructor(e){super(),U(this,e,H_,F_,z,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},B_,[-1,-1])}},xf=Us;var fr=class{constructor(e){this.value=e,this.next=null}};var el=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new fr(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 z_(i){Ce(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function q_(i){let e,t;return{c(){e=P("div"),t=P("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){k(n,e,o),m(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&y(e),i[3](null)}}}var Ks=16,Ws=120,$f=60;function U_(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function K_(i,e,t){let{values:n=[]}=e,o,r,l=Ws/$f;St(()=>{t(0,o.width=Ws,o),t(0,o.height=Ks,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 p=1;p<n.length;p++)n[p]>u&&(u=n[p]);r.clearRect(0,0,Ws,Ks);let f=$f-1;for(let p=n.length-1;p>=0;p--){let h=f*l,v=u>0?Ks*(n[p]/u):0;U_(r,h,0,l,v),s=v+" "+s,f--}}}},[o,n,r,a]}var Gs=class extends q{constructor(e){super(),U(this,e,K_,q_,z,{values:1},z_)}},dr=Gs;var js=require("@vkontakte/videoplayer-shared");function W_(i){Ce(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=P("div"),t=P("div"),t.textContent="Video id",n=O(),o=P("span"),l=Re(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){k(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&je(l,r)},d(a){a&&y(e)}}}function t1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=O(),o=P("span"),l=Re(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){k(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&je(l,r)},d(a){a&&y(e)}}}function i1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=O(),o=P("span"),l=Re(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){k(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&je(l,r)},d(a){a&&y(e)}}}function n1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=O(),o=P("span"),l=Re(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){k(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&je(l,r)},d(a){a&&y(e)}}}function o1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=O(),o=P("span"),l=Re(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){k(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&je(l,r)},d(a){a&&y(e)}}}function l1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=O(),o=P("span"),l=Re(r),a=Re(" %"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){k(s,e,u),m(e,t),m(e,n),m(e,o),m(o,l),m(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&je(l,r)},d(s){s&&y(e)}}}function r1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=P("div"),t=P("div"),t.textContent="Buffer",n=O(),o=P("span"),l=Re(r),a=Re(" s"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){k(s,e,u),m(e,t),m(e,n),m(e,o),m(o,l),m(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&je(l,r)},d(s){s&&y(e)}}}function s1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(c1).map(f1).join(" / ")+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=O(),o=P("span"),l=Re(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){k(a,e,s),m(e,t),m(e,n),m(e,o),m(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video"},{value:a[0].currentAudioSegmentLength,title:"Audio"}].filter(c1).map(f1).join(" / ")+"")&&je(l,r)},d(a){a&&y(e)}}}function a1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new dr({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=O(),D(o.$$.fragment),r=O(),l=P("span"),s=Re(a),u=Re(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){k(p,e,h),m(e,t),m(e,n),B(o,e,null),m(e,r),m(e,l),m(l,s),m(l,u),f=!0},p(p,h){let v={};h&32&&(v.values=p[5]),o.$set(v),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&je(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&y(e),R(o)}}}function u1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new dr({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=O(),D(o.$$.fragment),r=O(),l=P("span"),s=Re(a),u=Re(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){k(p,e,h),m(e,t),m(e,n),B(o,e,null),m(e,r),m(e,l),m(l,s),m(l,u),f=!0},p(p,h){let v={};h&64&&(v.values=p[6]),o.$set(v),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&je(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&y(e),R(o)}}}function G_(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,A,$,J,x,N,te,E,Y,Be,We,qe,Je,Ne,ve,X,ke=i[0].id&&e1(i),He=i[0].provider&&t1(i),xe=i[0].viewport&&i1(i),et=i[0].videoSize&&n1(i),we=i[0].cdn&&o1(i),Ve=i[0].volume&&l1(i),Ue=i[0].buffer&&r1(i),Ye=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&s1(i),ae=i[0].speed&&a1(i),ne=i[0].bitrate&&u1(i);return Y=new dr({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=O(),o=P("div"),r=P("div"),l=P("div"),l.textContent="Version",a=O(),s=P("span"),f=Re(u),p=O(),ke&&ke.c(),h=O(),He&&He.c(),v=O(),xe&&xe.c(),g=O(),et&&et.c(),S=O(),we&&we.c(),w=O(),Ve&&Ve.c(),T=O(),Ue&&Ue.c(),C=O(),Ye&&Ye.c(),b=O(),I=P("div"),Q=P("div"),Q.textContent="Dropped",j=O(),G=P("span"),le=Re(i[2]),se=Re(" / "),V=Re(i[1]),A=Re(" frames"),$=O(),ae&&ae.c(),J=O(),ne&&ne.c(),x=O(),N=P("div"),te=P("div"),te.textContent="FPS",E=O(),D(Y.$$.fragment),Be=O(),We=P("span"),qe=Re(i[3]),c(t,"class","close svelte-1fypj5i"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(l,"class","svelte-1fypj5i"),c(r,"class","svelte-1fypj5i"),c(Q,"class","svelte-1fypj5i"),c(I,"class","svelte-1fypj5i"),c(te,"class","svelte-1fypj5i"),c(N,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",Je=W("aria_label_debug_panel")),F(e,"container-mobile",i[7])},m(Se,fe){k(Se,e,fe),m(e,t),m(e,n),m(e,o),m(o,r),m(r,l),m(r,a),m(r,s),m(s,f),m(o,p),ke&&ke.m(o,null),m(o,h),He&&He.m(o,null),m(o,v),xe&&xe.m(o,null),m(o,g),et&&et.m(o,null),m(o,S),we&&we.m(o,null),m(o,w),Ve&&Ve.m(o,null),m(o,T),Ue&&Ue.m(o,null),m(o,C),Ye&&Ye.m(o,null),m(o,b),m(o,I),m(I,Q),m(I,j),m(I,G),m(G,le),m(G,se),m(G,V),m(G,A),m(o,$),ae&&ae.m(o,null),m(o,J),ne&&ne.m(o,null),m(o,x),m(o,N),m(N,te),m(N,E),B(Y,N,null),m(N,Be),m(N,We),m(We,qe),Ne=!0,ve||(X=pe(t,"click",rt(i[9])),ve=!0)},p(Se,[fe]){(!Ne||fe&1)&&u!==(u=Se[0].version+"")&&je(f,u),Se[0].id?ke?ke.p(Se,fe):(ke=e1(Se),ke.c(),ke.m(o,h)):ke&&(ke.d(1),ke=null),Se[0].provider?He?He.p(Se,fe):(He=t1(Se),He.c(),He.m(o,v)):He&&(He.d(1),He=null),Se[0].viewport?xe?xe.p(Se,fe):(xe=i1(Se),xe.c(),xe.m(o,g)):xe&&(xe.d(1),xe=null),Se[0].videoSize?et?et.p(Se,fe):(et=n1(Se),et.c(),et.m(o,S)):et&&(et.d(1),et=null),Se[0].cdn?we?we.p(Se,fe):(we=o1(Se),we.c(),we.m(o,w)):we&&(we.d(1),we=null),Se[0].volume?Ve?Ve.p(Se,fe):(Ve=l1(Se),Ve.c(),Ve.m(o,T)):Ve&&(Ve.d(1),Ve=null),Se[0].buffer?Ue?Ue.p(Se,fe):(Ue=r1(Se),Ue.c(),Ue.m(o,C)):Ue&&(Ue.d(1),Ue=null),Se[0].currentVideoSegmentLength||Se[0].currentAudioSegmentLength?Ye?Ye.p(Se,fe):(Ye=s1(Se),Ye.c(),Ye.m(o,b)):Ye&&(Ye.d(1),Ye=null),(!Ne||fe&4)&&je(le,Se[2]),(!Ne||fe&2)&&je(V,Se[1]),Se[0].speed?ae?(ae.p(Se,fe),fe&1&&d(ae,1)):(ae=a1(Se),ae.c(),d(ae,1),ae.m(o,J)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),Se[0].bitrate?ne?(ne.p(Se,fe),fe&1&&d(ne,1)):(ne=u1(Se),ne.c(),d(ne,1),ne.m(o,x)):ne&&(ue(),_(ne,1,1,()=>{ne=null}),ce());let Ae={};fe&16&&(Ae.values=Se[4]),Y.$set(Ae),(!Ne||fe&8)&&je(qe,Se[3]),(!Ne||fe&128)&&F(e,"container-mobile",Se[7])},i(Se){Ne||(d(ae),d(ne),d(Y.$$.fragment,Se),Ne=!0)},o(Se){_(ae),_(ne),_(Y.$$.fragment,Se),Ne=!1},d(Se){Se&&y(e),ke&&ke.d(),He&&He.d(),xe&&xe.d(),et&&et.d(),we&&we.d(),Ve&&Ve.d(),Ue&&Ue.d(),Ye&&Ye.d(),ae&&ae.d(),ne&&ne.d(),R(Y),ve=!1,X()}}}var c1=({value:i})=>i,f1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function j_(i,e,t){let n,o=it(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;H(i,l,b=>t(7,n=b));let a=()=>{js.safeStorage.remove(vl),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,v=new el(60),g=new el(60),S=new el(60),w=[],T=[],C=[];return St(()=>{js.safeStorage.set(vl,"true"),o.actions.internal.startLogging(),u&&(t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let b=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),I;return u&&(I=window.setInterval(()=>{if(u){t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let Q=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=Q-f),t(1,f=Q),v.push(h),s.speed&&g.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,w=v.getValuesFromBottom()),t(5,T=g.getValuesFromBottom()),t(6,C=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(b),I&&clearInterval(I)}}),[s,f,p,h,w,T,C,n,l,a]}var Qs=class extends q{constructor(e){super(),U(this,e,j_,G_,z,{},W_)}},mr=Qs;function Q_(i){Ce(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 Y_(i){let e,t,n;return{c(){e=P("div"),c(e,"class","close svelte-1ome55p")},m(o,r){k(o,e,r),t||(n=pe(e,"click",rt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&y(e),t=!1,n()}}}function Z_(i){function e(t){gn.call(this,i,t)}return[e]}var Ys=class extends q{constructor(e){super(),U(this,e,Z_,Y_,z,{},Q_)}},d1=Ys;var m1=require("@vkontakte/videoplayer-shared");function X_(i){Ce(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 J_(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("canvas"),n=O(),o=M("svg"),r=M("g"),l=M("g"),a=M("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(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"),c(a,"fill","#fff"),c(l,"fill-rule","nonzero"),c(r,"fill","none"),c(r,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){k(s,e,u),m(e,t),i[2](t),m(e,n),m(e,o),m(o,r),m(r,l),m(l,a)},p:me,i:me,o:me,d(s){s&&y(e),i[2](null)}}}var x_=5e3;function $_(i,e,t){let{onTimerEnded:n=m1.noop}=e,o;St(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/x_;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),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 Zs=class extends q{constructor(e){super(),U(this,e,$_,J_,z,{onTimerEnded:1},X_)}},p1=Zs;function eh(i){Ce(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 th(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q;a=new d1({}),a.$on("click",i[4]);let j=i[3]&&_1(i);return{c(){e=P("div"),t=O(),n=P("div"),o=P("div"),r=P("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=P("div"),f=P("div"),p=P("div"),h=P("div"),v=O(),j&&j.c(),S=O(),w=P("div"),T=P("div"),C=Re(i[0]),c(e,"class","overlay svelte-kisfwc"),c(r,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(p,"class","thumb svelte-kisfwc"),c(p,"style",g=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(T,"class","title svelte-kisfwc"),c(w,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(G,le){k(G,e,le),k(G,t,le),k(G,n,le),m(n,o),m(o,r),m(o,l),B(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,v),j&&j.m(p,null),m(u,S),m(u,w),m(w,T),m(T,C),b=!0,I||(Q=pe(u,"click",function(){Ii(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(G,[le]){i=G,i[3]?j?(j.p(i,le),le&8&&d(j,1)):(j=_1(i),j.c(),d(j,1),j.m(p,null)):j&&(ue(),_(j,1,1,()=>{j=null}),ce()),(!b||le&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!b||le&1)&&je(C,i[0])},i(G){b||(d(a.$$.fragment,G),d(j),b=!0)},o(G){_(a.$$.fragment,G),_(j),b=!1},d(G){G&&(y(e),y(t),y(n)),R(a),j&&j.d(),I=!1,Q()}}}function ih(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 Xs=class extends q{constructor(e){super(),U(this,e,ih,th,z,{title:0,thumb:1,playNextVideo:2},eh)}},h1=Xs;var uo=require("@vkontakte/videoplayer-core"),g1=require("@vkontakte/videoplayer-shared"),dn=require("@vkontakte/videoplayer-statistics");var Js=(i,e)=>Math.min(+(i+e).toFixed(2),1),xs=(i,e)=>Math.max(+(i-e).toFixed(2),0),pr=(i,e,t)=>{let n=Js(e,t);e<1&&i.actions.internal.setVolume(n)},_r=(i,e,t)=>{let n=xs(e,t);e>0&&i.actions.internal.setVolume(n)};var ao=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function oh(i){Ce(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function lh(i){let e,t,n,o,r,l=i[26].default,a=Pe(l,i,i[25],null);return{c(){e=P("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=W("aria_label_video_player"))},m(s,u){k(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[pe(e,"keyup",i[17]),pe(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Te(a,l,s,s[25],n?Ie(l,s[25],u,null):Ee(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&y(e),a&&a.d(s),i[27](null),o=!1,nt(r)}}}function rh(i,e,t){let n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,{$$slots:C={},$$scope:b}=e,{isAds:I}=e,{hideContextMenu:Q}=e,{toggleFullscreen:j}=e,{showHotKeyHelpers:G}=e,{showKeyMap:le}=e,{fakePlayButtonHandler:se}=e,V=it(),A=Mt(),$=V.getLogger().createComponentLog("KeyboardControls component"),J=V.state.playbackState$;H(i,J,ye=>t(31,o=ye));let x=V.ads.playbackState;H(i,x,ye=>t(30,n=ye));let N=V.state.positionExact$;H(i,N,ye=>t(41,g=ye));let te=V.state.duration$;H(i,te,ye=>t(40,v=ye));let E=V.state.volume$;H(i,E,ye=>t(44,T=ye));let Y=V.ui.controls.disabledControls$;H(i,Y,ye=>t(39,h=ye));let Be=V.state.muted$;H(i,Be,ye=>t(34,a=ye));let We=V.state.currentSubtitle$;H(i,We,ye=>t(33,l=ye));let qe=V.state.currentPlaybackRate$;H(i,qe,ye=>t(42,S=ye));let Je=V.state.availablePlaybackRates$;H(i,Je,ye=>t(43,w=ye));let Ne=V.ui.contextMenu.openedByHotKey$,ve=V.ui.contextMenu.lastActiveElem$,X=V.ui.contextMenu.visible$,ke=V.ui.contextMenu.position$,He=V.state.isEnded$;H(i,He,ye=>t(36,u=ye));let xe=V.ui.overlayContainer$;H(i,xe,ye=>t(32,r=ye));let et=V.callbacks?.onAudioDoesNotExistHint,we=V.callbacks?.onAudioDisabledHint,Ve=V.state.isAudioAvailable$;H(i,Ve,ye=>t(35,s=ye));let Ue=V.state.isAudioDisabled,Ye=V.state.isInteractiveTime$;H(i,Ye,ye=>t(38,p=ye));let{showInteractiveTimeIndicatorTooltip$:ae}=Sn();H(i,ae,ye=>t(37,f=ye));let ne=0,Se=!0,fe,Ae=()=>fe?.focus(),Xe=ye=>(ye!==Se&&(Se=ye,ne=0),ne+=1,(A.controls.seekStepKeyboard+A.controls.seekStepKeyboard*ne)/1e3),at=ye=>{let $e=ye.target,_t=$e?.getAttribute("role")?.includes("menuitem"),bt=$e.classList.contains("btn"),vt=ye.code;if(bt&&vt==="Space")return;let Vt=Xc.has(vt);if(_t&&Vt)return;let Ke=!Zc.has(vt);if(ye.ctrlKey&&Ke||ye.altKey&&Ke||ye.metaKey)return;let Qt=_t&&vt==="Escape";Jc.has(vt)||Qt||Q();let Nt=o===uo.PlaybackState.PLAYING||o===uo.PlaybackState.PAUSED,he=I&&(n==="paused"||n==="playing"),Et=!he&&!h.has("TIMELINE");if(Nt||he)switch($({message:`key down, code: ${vt}`}),vt){case"KeyJ":case"ArrowLeft":{if(!Et)break;if(ye.ctrlKey||ye.altKey){let Ze=V.actions.internal.getPrevEpisode();V.actions.internal.seekToPrevEpisode(Ze),Ze&&G({type:"EPISODE_PREV",text:Ze.text}),ye.preventDefault()}else{let Ze=ye.shiftKey?Xe(!1):A.controls.seekStepKeyboard/1e3,mt=Math.max(g-Ze,0);g>0&&(V.actions.internal.seekTime(mt,dn.SeekAction.DOUBLE_TAP),G({type:"BACKWARD_SEEK",text:Ze.toString()}),ye.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Et)break;if(ye.ctrlKey||ye.altKey){let Ze=V.actions.internal.getNextEpisode();V.actions.internal.seekToNextEpisode(Ze),Ze&&G({type:"EPISODE_NEXT",text:Ze.text}),ye.preventDefault()}else{let Ze=ye.shiftKey?Xe(!0):A.controls.seekStepKeyboard/1e3,mt=Math.min(g+Ze,v);Math.round(g)<Math.round(v)&&(V.actions.internal.seekTime(mt,dn.SeekAction.DOUBLE_TAP),G({type:"FORWARD_SEEK",text:Ze.toString()}),ye.preventDefault())}break}case"ArrowUp":{if(ao({isAudioDisabled:Ue,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Ze=T,mt=A.controls.volumeStepKeyboard,ht=Ze<=1;if(pr(V,Ze,mt),ht){let gt=Math.round(Js(Ze,mt)*100).toString();G({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gt}})}}ye.preventDefault();break}case"ArrowDown":{if(ao({isAudioDisabled:Ue,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Ze=T,mt=A.controls.volumeStepKeyboard,ht=Ze>=0;if(_r(V,Ze,mt),ht){let gt=Math.round(xs(Ze,mt)*100).toString();G({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gt}})}}ye.preventDefault();break}case"Comma":{if(ye.shiftKey){V.actions.internal.decrementPlaybackRate();let Ze=w.find(mt=>mt.value===S);G({type:"RATE_DOWN",text:Ze?.displayValue}),ye.preventDefault()}else{if(he||o!==uo.PlaybackState.PAUSED)break;let Ze=Math.max(g-A.controls.seekStepFrame/1e3,0);g>0&&(G({type:"BACKWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(Ze,dn.SeekAction.DOUBLE_TAP),ye.preventDefault())}break}case"Period":{if(ye.shiftKey){V.actions.internal.incrementPlaybackRate();let Ze=w.find(mt=>mt.value===S);G({type:"RATE_UP",text:Ze?.displayValue}),ye.preventDefault()}else{if(he||o!==uo.PlaybackState.PAUSED)break;let Ze=Math.min(g+A.controls.seekStepFrame/1e3,v);g<v&&(G({type:"FORWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(Ze,dn.SeekAction.DOUBLE_TAP),ye.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&ae.set(!1),se)se();else{V.actions.internal.togglePlay();let Ze="PLAY";o===uo.PlaybackState.PAUSED?Ze="PAUSE":u&&(Ze="REPLAY"),G({type:Ze})}ye.preventDefault();break;case"KeyM":{ao({isAudioDisabled:Ue,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:et})&&(G({type:a?"VOLUME":"MUTE"}),V.actions.internal.toggleMuted()),ye.preventDefault();break}case"KeyF":j(),ye.preventDefault();break;case"KeyC":V.actions.internal.toggleSubtitle(),l.value!=="off"?G({type:"SUBTITLES_ON",text:l?.displayValue}):G({type:"SUBTITLES_OFF"}),ye.preventDefault();break;case"KeyI":V.actions.internal.togglePictureInPicture(),ye.preventDefault();break;case"Digit1":case"Numpad1":if(ye.shiftKey){let Ze=Qf(r);ke.set(Ze),ve.set($e),Ne.set(!0),X.set(!0),ye.preventDefault();break}G(),V.actions.internal.seekToPercent(.1,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit2":case"Numpad2":G(),V.actions.internal.seekToPercent(.2,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit3":case"Numpad3":G(),V.actions.internal.seekToPercent(.3,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit4":case"Numpad4":G(),V.actions.internal.seekToPercent(.4,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit5":case"Numpad5":G(),V.actions.internal.seekToPercent(.5,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit6":case"Numpad6":G(),V.actions.internal.seekToPercent(.6,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit7":case"Numpad7":G(),V.actions.internal.seekToPercent(.7,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit8":case"Numpad8":G(),V.actions.internal.seekToPercent(.8,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit9":case"Numpad9":G(),V.actions.internal.seekToPercent(.9,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit0":case"Numpad0":G(),V.actions.internal.seekToPercent(0,dn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Slash":{ye.shiftKey&&A.features.hotKeyMapModal&&(le(),ye.preventDefault());break}case"ShiftLeft":case"ShiftRight":ye.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,g1.checkNever)(vt);break}},ft=ye=>{let $e=ye.code;if(ye.ctrlKey||ye.altKey||ye.metaKey)return;let _t=o===uo.PlaybackState.PLAYING||o===uo.PlaybackState.PAUSED,bt=I&&(n==="paused"||n==="playing");if(_t||bt)switch($e){case"ShiftLeft":case"ShiftRight":ne=0;break}};function ut(ye){_e[ye?"unshift":"push"](()=>{fe=ye,t(0,fe)})}return i.$$set=ye=>{"isAds"in ye&&t(18,I=ye.isAds),"hideContextMenu"in ye&&t(19,Q=ye.hideContextMenu),"toggleFullscreen"in ye&&t(20,j=ye.toggleFullscreen),"showHotKeyHelpers"in ye&&t(21,G=ye.showHotKeyHelpers),"showKeyMap"in ye&&t(22,le=ye.showKeyMap),"fakePlayButtonHandler"in ye&&t(23,se=ye.fakePlayButtonHandler),"$$scope"in ye&&t(25,b=ye.$$scope)},[fe,J,x,N,te,E,Y,Be,We,qe,Je,He,xe,Ve,Ye,ae,at,ft,I,Q,j,G,le,se,Ae,b,C,ut]}var $s=class extends q{constructor(e){super(),U(this,e,rh,lh,z,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},oh,[-1,-1])}get focus(){return this.$$.ctx[24]}},b1=$s;function sh(i){Ce(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 ah(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',c(e,"class","container svelte-8nkw5s")},m(t,n){k(t,e,n)},p:me,i:me,o:me,d(t){t&&y(e)}}}var ea=class extends q{constructor(e){super(),U(this,e,null,ah,z,{},sh)}},hr=ea;function uh(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S=i[2].default,w=Pe(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],C={};for(let b=0;b<T.length;b+=1)C=oe(C,T[b]);return{c(){e=M("svg"),w&&w.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),a=M("feFlood"),s=M("feColorMatrix"),u=M("feOffset"),f=M("feGaussianBlur"),p=M("feColorMatrix"),h=M("feBlend"),v=M("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_2422_111980"),c(v,"result","shape"),c(l,"id","a"),c(l,"width","23"),c(l,"height","23"),c(l,"x",".5"),c(l,"y",".5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),be(e,C)},m(b,I){k(b,e,I),w&&w.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,v),g=!0},p(b,[I]){w&&w.p&&(!g||I&2)&&Te(w,S,b,b[1],g?Ie(S,b[1],I,null):Ee(b[1]),null),be(e,C=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&b[0]]))},i(b){g||(d(w,b),g=!0)},o(b){_(w,b),g=!1},d(b){b&&y(e),w&&w.d(b)}}}function ch(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ta=class extends q{constructor(e){super(),U(this,e,ch,uh,z,{})}},v1=ta;var qn=require("@vkontakte/videoplayer-shared");function fh(i){Ce(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 dh(i){let e,t,n,o,r,l,a,s,u,f,p,h,v=i[14].default,g=Pe(v,i,i[13],null);return{c(){e=P("button"),g&&g.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",r=i[5]??null),c(e,"aria-label",l=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(S,w){k(S,e,w),g&&g.m(e,null),i[16](e),f=!0,p||(h=[pe(e,"pointerdown",rt(Ct(i[15]))),pe(e,"click",rt(Ct(function(){Ii(i[10]===qn.noop?null:i[10])&&(i[10]===qn.noop?null:i[10]).apply(this,arguments)}))),pe(e,"focus",Ct(function(){Ii(i[11]===qn.noop?null:i[11])&&(i[11]===qn.noop?null:i[11]).apply(this,arguments)})),pe(e,"blur",Ct(function(){Ii(i[12]===qn.noop?null:i[12])&&(i[12]===qn.noop?null:i[12]).apply(this,arguments)}))],p=!0)},p(S,[w]){i=S,g&&g.p&&(!f||w&8192)&&Te(g,v,i,i[13],f?Ie(v,i[13],w,null):Ee(i[13]),null),(!f||w&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||w&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||w&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||w&32&&r!==(r=i[5]??null))&&c(e,"aria-hidden",r),(!f||w&64&&l!==(l=i[6]??null))&&c(e,"aria-label",l),(!f||w&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||w&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||w&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||w&512)&&c(e,"tabindex",i[9])},i(S){f||(d(g,S),f=!0)},o(S){_(g,S),f=!1},d(S){S&&y(e),g&&g.d(S),i[16](null),p=!1,nt(h)}}}function mh(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:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:v=void 0}=e,{tabIndex:g=0}=e,{click:S=qn.noop}=e,{focus:w=qn.noop}=e,{blur:T=qn.noop}=e;function C(I){gn.call(this,i,I)}function b(I){_e[I?"unshift":"push"](()=>{p=I,t(0,p)})}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,f=I.ariaLabel),"ref"in I&&t(0,p=I.ref),"ariaKeyShortCut"in I&&t(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&t(8,v=I.ariaExpanded),"tabIndex"in I&&t(9,g=I.tabIndex),"click"in I&&t(10,S=I.click),"focus"in I&&t(11,w=I.focus),"blur"in I&&t(12,T=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[p,r,l,a,s,u,f,h,v,g,S,w,T,o,n,C,b]}var ia=class extends q{constructor(e){super(),U(this,e,mh,dh,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},fh)}},pt=ia;function ph(i){Ce(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]&&k1(i);return{c(){e=P("div"),t=P("h3"),n=Re(i[3]),o=O(),l&&l.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){k(a,e,s),m(e,t),m(t,n),m(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&je(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=k1(a),l.c(),d(l,1),l.m(e,null)):l&&(ue(),_(l,1,1,()=>{l=null}),ce())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&y(e),l&&l.d()}}}function k1(i){let e,t;return e=new pt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:W("hotkey_map_modal_close_btn_text"),$$slots:{default:[_h]},$$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 _h(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 hh(i){let e,t,n,o,r,l,a=i[1]&&y1(i),s=i[4].default,u=Pe(s,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=O(),o=P("div"),r=P("div"),u&&u.c(),c(r,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){k(f,e,p),m(e,t),a&&a.m(t,null),m(t,n),m(t,o),m(o,r),u&&u.m(r,null),l=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=y1(f),a.c(),d(a,1),a.m(t,n)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!l||p&32)&&Te(u,s,f,f[5],l?Ie(s,f[5],p,null):Ee(f[5]),null)},i(f){l||(d(a),d(u,f),l=!0)},o(f){_(a),_(u,f),l=!1},d(f){f&&y(e),a&&a.d(),u&&u.d(f)}}}function gh(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 na=class extends q{constructor(e){super(),U(this,e,gh,hh,z,{onClose:0,showHeader:1,showCloseCross:2,title:3},ph)}},w1=na;var bh=new Set(["BR"]),oa=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],r=o.tagName;bh.has(r)||o.parentElement?.removeChild(o)}return e.innerHTML};function vh(i){Ce(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=oa(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=O(),r=P("span"),a=Re(l),s=O(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(r,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){k(u,e,f),m(e,t),t.innerHTML=n,m(e,o),m(e,r),m(r,a),m(e,s)},p(u,f){f&1&&n!==(n=oa(u[9])+"")&&(t.innerHTML=n),f&1&&l!==(l=u[10]+"")&&je(a,l)},d(u){u&&y(e)}}}function I1(i){let e,t,n=i[5]+"",o,r,l,a,s=yt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=P1(S1(i,s,f));return{c(){e=P("div"),t=P("h5"),o=Re(n),r=O(),l=P("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=O(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(l,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){k(f,e,p),m(e,t),m(t,o),m(e,r),m(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);m(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&je(o,n),p&1){s=yt(f[6]);let h;for(h=0;h<s.length;h+=1){let v=S1(f,s,h);u[h]?u[h].p(v,p):(u[h]=P1(v),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&y(e),Ni(u,f)}}}function yh(i){let e,t=yt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=I1(C1(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,r){k(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=yt(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]=I1(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&&y(e),Ni(n,o)}}}function kh(i){let e,t;return e=new w1({props:{title:i[0].title,onClose:i[2],$$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.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 wh(i,e,t){let n,o=it(),{data:r,show:l}=o.ui.modals.hotKeyMap;return H(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var la=class extends q{constructor(e){super(),U(this,e,wh,kh,z,{},vh)}},T1=la;var Xr=require("@vkontakte/videoplayer-shared");var Lo=require("@vkontakte/videoplayer-core");var pd=require("@vkontakte/videoplayer-core");var uw=require("@vkontakte/videoplayer-shared");function Ch(i){Ce(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 Sh(i){let e,t,n=i[1].default,o=Pe(n,i,i[0],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(r,l){k(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Te(o,n,r,r[0],t?Ie(n,r[0],l,null):Ee(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&y(e),o&&o.d(r)}}}function Ph(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var ra=class extends q{constructor(e){super(),U(this,e,Ph,Sh,z,{},Ch)}},E1=ra;var tl=require("@vkontakte/videoplayer-core");function Ih(i){let e,t,n,o,r=i[2].default,l=Pe(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=M("svg"),l&&l.c(),t=M("path"),n=M("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),be(e,s)},m(u,f){k(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Te(l,r,u,u[1],o?Ie(r,u[1],f,null):Ee(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&y(e),l&&l.d(u)}}}function Th(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var sa=class extends q{constructor(e){super(),U(this,e,Th,Ih,z,{})}},A1=sa;function Eh(i){let e,t,n,o,r=i[2].default,l=Pe(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=M("svg"),l&&l.c(),t=M("path"),n=M("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),be(e,s)},m(u,f){k(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Te(l,r,u,u[1],o?Ie(r,u[1],f,null):Ee(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&y(e),l&&l.d(u)}}}function Ah(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var aa=class extends q{constructor(e){super(),U(this,e,Ah,Eh,z,{})}},M1=aa;function Mh(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","currentColor"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Vh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ua=class extends q{constructor(e){super(),U(this,e,Vh,Mh,z,{})}},V1=ua;function Lh(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","currentColor"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Bh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ca=class extends q{constructor(e){super(),U(this,e,Bh,Lh,z,{})}},gr=ca;function Rh(i){let e,t,n,o,r=i[2].default,l=Pe(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=M("svg"),l&&l.c(),t=M("path"),n=M("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),be(e,s)},m(u,f){k(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Te(l,r,u,u[1],o?Ie(r,u[1],f,null):Ee(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&y(e),l&&l.d(u)}}}function Dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var fa=class extends q{constructor(e){super(),U(this,e,Dh,Rh,z,{})}},br=fa;var co=i=>{switch(i){case tl.VideoQuality.Q_720P:return V1;case tl.VideoQuality.Q_1080P:return gr;case tl.VideoQuality.Q_1440P:return br;case tl.VideoQuality.Q_2160P:return A1;case tl.VideoQuality.Q_4320P:return M1}};function Nh(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Oh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var da=class extends q{constructor(e){super(),U(this,e,Oh,Nh,z,{})}},L1=da;function Fh(i){let e,t,n,o,r=i[2].default,l=Pe(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=M("svg"),l&&l.c(),t=M("path"),n=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),c(n,"class","_full"),be(e,s)},m(u,f){k(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Te(l,r,u,u[1],o?Ie(r,u[1],f,null):Ee(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&y(e),l&&l.d(u)}}}function Hh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ma=class extends q{constructor(e){super(),U(this,e,Hh,Fh,z,{})}},B1=ma;function zh(i){Ce(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 qh(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=P("div"),r&&r.c(),t=O(),D(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),F(e,"triple",i[2])},m(l,a){k(l,e,a),r&&r.m(e,null),m(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&&(ue(),_(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&&y(e),r&&r.d(),R(n)}}}function Uh(i){let e,t;return e=new L1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:me,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:[Kh]},$$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 Kh(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=pn(o,r(i))),{c(){e&&D(e.$$.fragment),t=lt()},m(l,a){e&&B(e,l,a),k(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){ue();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(e=pn(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&&y(t),e&&R(e,l)}}}function Wh(i){let e,t,n,o,r=[Uh,qh],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),k(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(n),l[e].d(s)}}}function Gh(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=co(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[gr,br].includes(n))},[o,n,l,r]}var pa=class extends q{constructor(e){super(),U(this,e,Gh,Wh,z,{isMobile:0,currentQuality:3},zh)}},vr=pa;function jh(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var _a=class extends q{constructor(e){super(),U(this,e,Qh,jh,z,{})}},yr=_a;function Yh(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ha=class extends q{constructor(e){super(),U(this,e,Zh,Yh,z,{})}},D1=ha;function Xh(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ga=class extends q{constructor(e){super(),U(this,e,Jh,Xh,z,{})}},N1=ga;function xh(i){let e,t,n,o,r,l=i[2].default,a=Pe(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 f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),be(e,u)},m(f,p){k(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Te(a,l,f,f[1],r?Ie(l,f[1],p,null):Ee(f[1]),null),be(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"},p&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&y(e),a&&a.d(f)}}}function $h(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ba=class extends q{constructor(e){super(),U(this,e,$h,xh,z,{})}},O1=ba;function eg(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var va=class extends q{constructor(e){super(),U(this,e,tg,eg,z,{})}},F1=va;function ig(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function ng(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ya=class extends q{constructor(e){super(),U(this,e,ng,ig,z,{})}},H1=ya;function og(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 lg(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 rg(i){let e,t,n,o,r=[lg,og],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),k(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(n),l[e].d(s)}}}function sg(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 ka=class extends q{constructor(e){super(),U(this,e,sg,rg,z,{direction:3})}},Un=ka;function ag(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function ug(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var wa=class extends q{constructor(e){super(),U(this,e,ug,ag,z,{})}},z1=wa;function cg(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function fg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ca=class extends q{constructor(e){super(),U(this,e,fg,cg,z,{})}},il=Ca;function dg(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Sa=class extends q{constructor(e){super(),U(this,e,mg,dg,z,{})}},q1=Sa;function pg(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Pa=class extends q{constructor(e){super(),U(this,e,_g,pg,z,{})}},U1=Pa;function hg(i){Ce(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,f,p,h,v=i[34]&&Q1(i),g=i[25]&&Y1(i),S=i[24]&&X1(i),w=i[23]&&J1(i),T=i[22]&&x1(i),C=i[21]&&$1(i),b=i[34]&&ed(i);return{c(){e=P("div"),v&&v.c(),t=O(),n=P("ul"),g&&g.c(),o=O(),S&&S.c(),r=O(),w&&w.c(),l=O(),T&&T.c(),a=O(),C&&C.c(),s=O(),b&&b.c(),c(n,"class","items svelte-5r0p3"),c(n,"role","menu"),c(n,"style",u=i[73]()),F(n,"items-mobile",i[34]),c(e,"class","menu svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34]),F(e,"hidden",!i[11])},m(I,Q){k(I,e,Q),v&&v.m(e,null),m(e,t),m(e,n),g&&g.m(n,null),m(n,o),S&&S.m(n,null),m(n,r),w&&w.m(n,null),m(n,l),T&&T.m(n,null),m(n,a),C&&C.m(n,null),m(n,s),b&&b.m(n,null),i[112](n),f=!0,p||(h=[pe(e,"keydown",i[78]),pe(e,"mouseenter",i[71]),pe(e,"mouseleave",i[72])],p=!0)},p(I,Q){I[34]?v?v.p(I,Q):(v=Q1(I),v.c(),v.m(e,t)):v&&(v.d(1),v=null),I[25]?g?(g.p(I,Q),Q[0]&33554432&&d(g,1)):(g=Y1(I),g.c(),d(g,1),g.m(n,o)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),I[24]?S?(S.p(I,Q),Q[0]&16777216&&d(S,1)):(S=X1(I),S.c(),d(S,1),S.m(n,r)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),I[23]?w?(w.p(I,Q),Q[0]&8388608&&d(w,1)):(w=J1(I),w.c(),d(w,1),w.m(n,l)):w&&(ue(),_(w,1,1,()=>{w=null}),ce()),I[22]?T?(T.p(I,Q),Q[0]&4194304&&d(T,1)):(T=x1(I),T.c(),d(T,1),T.m(n,a)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),I[21]?C?(C.p(I,Q),Q[0]&2097152&&d(C,1)):(C=$1(I),C.c(),d(C,1),C.m(n,s)):C&&(ue(),_(C,1,1,()=>{C=null}),ce()),I[34]?b?(b.p(I,Q),Q[1]&8&&d(b,1)):(b=ed(I),b.c(),d(b,1),b.m(n,null)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),(!f||Q[1]&8)&&F(n,"items-mobile",I[34]),(!f||Q[1]&8)&&F(e,"menu-desktop",!I[34]),(!f||Q[1]&8)&&F(e,"menu-mobile",I[34]),(!f||Q[0]&2048)&&F(e,"hidden",!I[11])},i(I){f||(d(g),d(S),d(w),d(T),d(C),d(b),f=!0)},o(I){_(g),_(S),_(w),_(T),_(C),_(b),f=!1},d(I){I&&y(e),v&&v.d(),g&&g.d(),S&&S.d(),w&&w.d(),T&&T.d(),C&&C.d(),b&&b.d(),i[112](null),p=!1,nt(h)}}}function Q1(i){let e,t,n,o,r,l,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${W("submenu_settings")}`,n=O(),o=P("div"),r=O(),l=P("div"),c(o,"class","close svelte-5r0p3"),c(e,"class","item menu-header svelte-5r0p3"),F(e,"item-mobile",i[34]),c(l,"class","menu-divider svelte-5r0p3")},m(u,f){k(u,e,f),m(e,t),m(e,n),m(e,o),k(u,r,f),k(u,l,f),a||(s=pe(o,"click",rt(i[57])),a=!0)},p(u,f){f[1]&8&&F(e,"item-mobile",u[34])},d(u){u&&(y(e),y(r),y(l)),a=!1,s()}}}function Y1(i){let e,t,n,o,r,l,a,s,u,f,p,h,v;n=new vr({});let g=i[33]&&!i[34]&&Z1(i);return{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("menu_quality")}`,l=O(),a=P("div"),s=Re(i[16]),u=O(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-5r0p3"),c(r,"class","menu-title svelte-5r0p3"),c(a,"class","menu-value svelte-5r0p3"),c(e,"class","item svelte-5r0p3"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=W("aria_label_menu_quality",{actual:i[27]})),c(e,"aria-haspopup","true"),F(e,"item-mobile",i[34])},m(S,w){k(S,e,w),m(e,t),B(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),i[108](e),p=!0,h||(v=[pe(e,"click",rt(i[58])),pe(e,"keydown",i[79])],h=!0)},p(S,w){(!p||w[0]&65536)&&je(s,S[16]),S[33]&&!S[34]?g?(g.p(S,w),w[1]&12&&d(g,1)):(g=Z1(S),g.c(),d(g,1),g.m(a,null)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||w[0]&134217728&&f!==(f=W("aria_label_menu_quality",{actual:S[27]})))&&c(e,"aria-label",f),(!p||w[1]&8)&&F(e,"item-mobile",S[34])},i(S){p||(d(n.$$.fragment,S),d(g),p=!0)},o(S){_(n.$$.fragment,S),_(g),p=!1},d(S){S&&y(e),R(n),g&&g.d(),i[108](null),h=!1,nt(v)}}}function Z1(i){let e,t,n;var o=i[33];function r(l){return{}}return o&&(t=pn(o,r(i))),{c(){e=P("div"),t&&D(t.$$.fragment),c(e,"class","menu-valueIcon svelte-5r0p3")},m(l,a){k(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[1]&4&&o!==(o=l[33])){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=pn(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&&y(e),t&&R(t)}}}function X1(i){let e,t,n,o,r,l,a,s,u,f,p,h,v;return n=new O1({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("menu_playback_rate")}`,l=O(),a=P("div"),s=Re(i[9]),u=Re("x"),c(t,"class","menu-icon-wrapper svelte-5r0p3"),c(r,"class","menu-title svelte-5r0p3"),c(a,"class","menu-value svelte-5r0p3"),c(e,"class","item svelte-5r0p3"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=W("aria_label_menu_rate",{actual:i[28]})),c(e,"aria-haspopup","true"),F(e,"item-mobile",i[34])},m(g,S){k(g,e,S),m(e,t),B(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,s),m(a,u),i[109](e),p=!0,h||(v=[pe(e,"click",rt(Ct(i[62]))),pe(e,"keydown",i[82])],h=!0)},p(g,S){(!p||S[0]&512)&&je(s,g[9]),(!p||S[0]&268435456&&f!==(f=W("aria_label_menu_rate",{actual:g[28]})))&&c(e,"aria-label",f),(!p||S[1]&8)&&F(e,"item-mobile",g[34])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&y(e),R(n),i[109](null),h=!1,nt(v)}}}function J1(i){let e,t,n,o,r,l,a,s=i[35].displayValue+"",u,f,p,h,v;return n=new yr({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("subtitles_caption")}`,l=O(),a=P("div"),u=Re(s),c(t,"class","menu-icon-wrapper svelte-5r0p3"),c(r,"class","menu-title svelte-5r0p3"),c(a,"class","menu-value svelte-5r0p3"),c(e,"class","item svelte-5r0p3"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=W("aria_label_menu_subtitle",{actual:i[35].displayValue})),c(e,"aria-haspopup","true"),F(e,"item-mobile",i[34])},m(g,S){k(g,e,S),m(e,t),B(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,u),i[110](e),p=!0,h||(v=[pe(e,"click",rt(i[64])),pe(e,"keydown",i[85])],h=!0)},p(g,S){(!p||S[1]&16)&&s!==(s=g[35].displayValue+"")&&je(u,s),(!p||S[1]&16&&f!==(f=W("aria_label_menu_subtitle",{actual:g[35].displayValue})))&&c(e,"aria-label",f),(!p||S[1]&8)&&F(e,"item-mobile",g[34])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&y(e),R(n),i[110](null),h=!1,nt(v)}}}function x1(i){let e,t,n,o,r,l,a,s,u,f,p,h;return n=new N1({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("menu_traffic_saving")}`,l=O(),a=P("div"),s=Re(i[26]),c(t,"class","menu-icon-wrapper svelte-5r0p3"),c(r,"class","menu-title svelte-5r0p3"),c(a,"class","menu-value svelte-5r0p3"),c(e,"class","item svelte-5r0p3"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=W("aria_label_menu_traffic_saving",{actual:i[26]})),c(e,"aria-haspopup","true"),F(e,"item-mobile",i[34])},m(v,g){k(v,e,g),m(e,t),B(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,s),i[111](e),f=!0,p||(h=[pe(e,"click",rt(i[59])),pe(e,"keydown",i[88])],p=!0)},p(v,g){(!f||g[0]&67108864)&&je(s,v[26]),(!f||g[0]&67108864&&u!==(u=W("aria_label_menu_traffic_saving",{actual:v[26]})))&&c(e,"aria-label",u),(!f||g[1]&8)&&F(e,"item-mobile",v[34])},i(v){f||(d(n.$$.fragment,v),f=!0)},o(v){_(n.$$.fragment,v),f=!1},d(v){v&&y(e),R(n),i[111](null),p=!1,nt(h)}}}function $1(i){let e,t,n,o,r,l,a,s,u;return n=new D1({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-5r0p3"),c(r,"class","menu-title svelte-5r0p3"),c(e,"class","item svelte-5r0p3"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=W("aria_label_menu_download")),F(e,"item-mobile",i[34])},m(f,p){k(f,e,p),m(e,t),B(n,t,null),m(e,o),m(e,r),a=!0,s||(u=[pe(e,"click",rt(i[67])),pe(e,"keydown",i[91])],s=!0)},p(f,p){(!a||p[1]&8)&&F(e,"item-mobile",f[34])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&y(e),R(n),s=!1,nt(u)}}}function ed(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C=i[37].showSupport&&gg(i);return o=new q1({}),p=new U1({}),{c(){C&&C.c(),e=O(),t=P("li"),n=P("div"),D(o.$$.fragment),r=O(),l=P("div"),l.textContent=`${W("menu_copy_debug")}`,s=O(),u=P("li"),f=P("div"),D(p.$$.fragment),h=O(),v=P("div"),v.textContent=`${W("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-5r0p3"),c(l,"class","menu-title svelte-5r0p3"),c(t,"class","item item-mobile svelte-5r0p3"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=W("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-5r0p3"),c(v,"class","menu-title svelte-5r0p3"),c(u,"class","item item-mobile svelte-5r0p3"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",g=i[36]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"))},m(b,I){C&&C.m(b,I),k(b,e,I),k(b,t,I),m(t,n),B(o,n,null),m(t,r),m(t,l),k(b,s,I),k(b,u,I),m(u,f),B(p,f,null),m(u,h),m(u,v),S=!0,w||(T=[pe(t,"click",rt(i[69])),pe(t,"keydown",i[93]),pe(u,"click",rt(i[70])),pe(u,"keydown",i[94])],w=!0)},p(b,I){b[37].showSupport&&C.p(b,I),(!S||I[1]&32&&g!==(g=b[36]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",g)},i(b){S||(d(C),d(o.$$.fragment,b),d(p.$$.fragment,b),S=!0)},o(b){_(C),_(o.$$.fragment,b),_(p.$$.fragment,b),S=!1},d(b){b&&(y(e),y(t),y(s),y(u)),C&&C.d(b),R(o),R(p),w=!1,nt(T)}}}function gg(i){let e,t,n,o,r,l,a,s,u;return n=new z1({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-5r0p3"),c(r,"class","menu-title svelte-5r0p3"),c(e,"class","item item-mobile svelte-5r0p3"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`)},m(f,p){k(f,e,p),m(e,t),B(n,t,null),m(e,o),m(e,r),a=!0,s||(u=[pe(e,"click",rt(i[68])),pe(e,"keydown",i[92])],s=!0)},p:me,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&y(e),R(n),s=!1,nt(u)}}}function td(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g;n=new Un({props:{direction:"left"}});let S=yt(i[8]),w=[];for(let C=0;C<S.length;C+=1)w[C]=od(G1(i,S,C));let T=C=>_(w[C],1,1,()=>{w[C]=null});return{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("submenu_quality")}`,a=O(),s=P("div"),u=O(),f=P("ul");for(let C=0;C<w.length;C+=1)w[C].c();c(t,"class","item menu-header svelte-5r0p3"),c(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-5r0p3"),c(f,"class","items svelte-5r0p3"),c(f,"role","menu"),c(f,"style",p=i[73](i[17]?.clientHeight,!0)),F(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34])},m(C,b){k(C,e,b),m(e,t),B(n,t,null),m(t,o),m(t,r),i[113](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<w.length;I+=1)w[I]&&w[I].m(f,null);i[116](f),h=!0,v||(g=[pe(t,"click",rt(i[66])),pe(f,"keydown",i[80])],v=!0)},p(C,b){if((!h||b[1]&8)&&F(t,"item-mobile",C[34]),b[0]&256|b[1]&536870920|b[2]&524288){S=yt(C[8]);let I;for(I=0;I<S.length;I+=1){let Q=G1(C,S,I);w[I]?(w[I].p(Q,b),d(w[I],1)):(w[I]=od(Q),w[I].c(),d(w[I],1),w[I].m(f,null))}for(ue(),I=S.length;I<w.length;I+=1)T(I);ce()}(!h||b[0]&131072&&p!==(p=C[73](C[17]?.clientHeight,!0)))&&c(f,"style",p),(!h||b[1]&8)&&F(f,"items-mobile",C[34]),(!h||b[1]&8)&&F(e,"menu-desktop",!C[34]),(!h||b[1]&8)&&F(e,"menu-mobile",C[34])},i(C){if(!h){d(n.$$.fragment,C);for(let b=0;b<S.length;b+=1)d(w[b]);h=!0}},o(C){_(n.$$.fragment,C),w=w.filter(Boolean);for(let b=0;b<w.length;b+=1)_(w[b]);h=!1},d(C){C&&y(e),R(n),i[113](null),Ni(w,C),i[116](null),v=!1,nt(g)}}}function id(i){let e,t,n;return t=new il({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){k(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&&y(e),R(t)}}}function nd(i){let e,t,n;var o=co(i[148].value);function r(l){return{}}return o&&(t=pn(o,r(i))),{c(){e=P("div"),t&&D(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-5r0p3")},m(l,a){k(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[0]&256&&o!==(o=co(l[148].value))){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=pn(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&&y(e),t&&R(t)}}}function od(i){let e,t,n,o=i[148].displayValue+"",r,l,a=!i[34]&&co(i[148].value),s,u,f,p,h,v,g=i[148].selected&&id(i),S=a&&nd(i);function w(){return i[114](i[148])}function T(...C){return i[115](i[148],...C)}return{c(){e=P("li"),g&&g.c(),t=O(),n=P("div"),r=Re(o),l=O(),S&&S.c(),s=O(),c(n,"class","svelte-5r0p3"),F(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-5r0p3"),c(e,"data-value",u=i[148].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[148].displayValue),F(e,"item-mobile",i[34])},m(C,b){k(C,e,b),g&&g.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),S&&S.m(e,null),m(e,s),p=!0,h||(v=[pe(e,"click",rt(w)),pe(e,"keydown",T)],h=!0)},p(C,b){i=C,i[148].selected?g?b[0]&256&&d(g,1):(g=id(i),g.c(),d(g,1),g.m(e,t)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||b[0]&256)&&o!==(o=i[148].displayValue+"")&&je(r,o),(!p||b[1]&8)&&F(n,"quality-title-mobile",i[34]),b[0]&256|b[1]&8&&(a=!i[34]&&co(i[148].value)),a?S?(S.p(i,b),b[0]&256|b[1]&8&&d(S,1)):(S=nd(i),S.c(),d(S,1),S.m(e,s)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),(!p||b[0]&256&&u!==(u=i[148].value))&&c(e,"data-value",u),(!p||b[0]&256&&f!==(f=i[148].displayValue))&&c(e,"aria-label",f),(!p||b[1]&8)&&F(e,"item-mobile",i[34])},i(C){p||(d(g),d(S),p=!0)},o(C){_(g),_(S),p=!1},d(C){C&&y(e),g&&g.d(),S&&S.d(),h=!1,nt(v)}}}function ld(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g;n=new Un({props:{direction:"left"}});let S=yt(i[7]),w=[];for(let C=0;C<S.length;C+=1)w[C]=sd(W1(i,S,C));let T=C=>_(w[C],1,1,()=>{w[C]=null});return{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("submenu_playback_rate")}`,a=O(),s=P("div"),u=O(),f=P("ul");for(let C=0;C<w.length;C+=1)w[C].c();c(t,"class","item menu-header svelte-5r0p3"),c(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-5r0p3"),c(f,"class","items svelte-5r0p3"),c(f,"role","menu"),c(f,"style",p=i[73](i[18]?.clientHeight,!0)),F(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34])},m(C,b){k(C,e,b),m(e,t),B(n,t,null),m(t,o),m(t,r),i[117](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<w.length;I+=1)w[I]&&w[I].m(f,null);i[120](f),h=!0,v||(g=[pe(t,"click",rt(i[66])),pe(f,"keydown",i[83])],v=!0)},p(C,b){if((!h||b[1]&8)&&F(t,"item-mobile",C[34]),b[0]&128|b[1]&8|b[2]&4194306){S=yt(C[7]);let I;for(I=0;I<S.length;I+=1){let Q=W1(C,S,I);w[I]?(w[I].p(Q,b),d(w[I],1)):(w[I]=sd(Q),w[I].c(),d(w[I],1),w[I].m(f,null))}for(ue(),I=S.length;I<w.length;I+=1)T(I);ce()}(!h||b[0]&262144&&p!==(p=C[73](C[18]?.clientHeight,!0)))&&c(f,"style",p),(!h||b[1]&8)&&F(f,"items-mobile",C[34]),(!h||b[1]&8)&&F(e,"menu-desktop",!C[34]),(!h||b[1]&8)&&F(e,"menu-mobile",C[34])},i(C){if(!h){d(n.$$.fragment,C);for(let b=0;b<S.length;b+=1)d(w[b]);h=!0}},o(C){_(n.$$.fragment,C),w=w.filter(Boolean);for(let b=0;b<w.length;b+=1)_(w[b]);h=!1},d(C){C&&y(e),R(n),i[117](null),Ni(w,C),i[120](null),v=!1,nt(g)}}}function rd(i){let e,t,n;return t=new il({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){k(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&&y(e),R(t)}}}function sd(i){let e,t,n,o=i[145].displayValue+"",r,l,a,s,u,f,p,h=i[145].selected&&rd(i);function v(){return i[118](i[145])}function g(...S){return i[119](i[145],...S)}return{c(){e=P("li"),h&&h.c(),t=O(),n=P("div"),r=Re(o),l=O(),c(n,"class","svelte-5r0p3"),F(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-5r0p3"),c(e,"data-value",a=i[145].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[145].displayValue),F(e,"item-mobile",i[34])},m(S,w){k(S,e,w),h&&h.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),u=!0,f||(p=[pe(e,"click",rt(v)),pe(e,"keydown",g)],f=!0)},p(S,w){i=S,i[145].selected?h?w[0]&128&&d(h,1):(h=rd(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||w[0]&128)&&o!==(o=i[145].displayValue+"")&&je(r,o),(!u||w[1]&8)&&F(n,"quality-title-mobile",i[34]),(!u||w[0]&128&&a!==(a=i[145].value))&&c(e,"data-value",a),(!u||w[0]&128&&s!==(s=i[145].displayValue))&&c(e,"aria-label",s),(!u||w[1]&8)&&F(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&y(e),h&&h.d(),f=!1,nt(p)}}}function ad(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,A,$,J;n=new Un({props:{direction:"left"}});let x=!i[5]&&ud(i),N=i[5]&&cd(i);return{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("submenu_traffic_saving")}`,a=O(),s=P("div"),u=O(),f=P("div"),p=P("ul"),h=P("li"),x&&x.c(),v=O(),g=P("div"),g.textContent=`${W("traffic_saving_disable")}`,w=O(),T=P("li"),N&&N.c(),C=O(),b=P("div"),b.textContent=`${W("traffic_saving_enable")}`,Q=O(),j=P("div"),G=O(),le=P("div"),se=P("span"),se.textContent=`${W("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-5r0p3"),c(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-5r0p3"),c(g,"class","svelte-5r0p3"),F(g,"quality-title-mobile",i[34]),c(h,"class","item item-traffic-saving svelte-5r0p3"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",S=W("aria_label_submenu_traffic_saving_off")),F(h,"item-mobile",i[34]),c(b,"class","svelte-5r0p3"),F(b,"quality-title-mobile",i[34]),c(T,"class","item item-traffic-saving svelte-5r0p3"),c(T,"role","menuitem"),c(T,"tabindex","0"),c(T,"aria-label",I=`${W("aria_label_submenu_traffic_saving_on")}. ${W("traffic_saving_helper_text")}`),F(T,"item-mobile",i[34]),c(p,"class","items svelte-5r0p3"),c(p,"role","menu"),F(p,"items-mobile",i[34]),c(j,"class","menu-divider svelte-5r0p3"),c(se,"class","svelte-5r0p3"),c(le,"class","item item-helper-text svelte-5r0p3"),F(le,"item-mobile",i[34]),c(f,"style",V=i[73](i[19]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34])},m(te,E){k(te,e,E),m(e,t),B(n,t,null),m(t,o),m(t,r),i[121](t),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),x&&x.m(h,null),m(h,v),m(h,g),m(p,w),m(p,T),N&&N.m(T,null),m(T,C),m(T,b),i[126](p),m(f,Q),m(f,j),m(f,G),m(f,le),m(le,se),A=!0,$||(J=[pe(t,"click",rt(i[66])),pe(h,"click",rt(i[122])),pe(h,"keydown",i[123]),pe(T,"click",rt(i[124])),pe(T,"keydown",i[125]),pe(p,"keydown",i[89])],$=!0)},p(te,E){(!A||E[1]&8)&&F(t,"item-mobile",te[34]),te[5]?x&&(ue(),_(x,1,1,()=>{x=null}),ce()):x?E[0]&32&&d(x,1):(x=ud(te),x.c(),d(x,1),x.m(h,v)),(!A||E[1]&8)&&F(g,"quality-title-mobile",te[34]),(!A||E[1]&8)&&F(h,"item-mobile",te[34]),te[5]?N?E[0]&32&&d(N,1):(N=cd(te),N.c(),d(N,1),N.m(T,C)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),(!A||E[1]&8)&&F(b,"quality-title-mobile",te[34]),(!A||E[1]&8)&&F(T,"item-mobile",te[34]),(!A||E[1]&8)&&F(p,"items-mobile",te[34]),(!A||E[1]&8)&&F(le,"item-mobile",te[34]),(!A||E[0]&524288&&V!==(V=te[73](te[19]?.clientHeight,!0)))&&c(f,"style",V),(!A||E[1]&8)&&F(e,"menu-desktop",!te[34]),(!A||E[1]&8)&&F(e,"menu-mobile",te[34])},i(te){A||(d(n.$$.fragment,te),d(x),d(N),A=!0)},o(te){_(n.$$.fragment,te),_(x),_(N),A=!1},d(te){te&&y(e),R(n),i[121](null),x&&x.d(),N&&N.d(),i[126](null),$=!1,nt(J)}}}function ud(i){let e,t,n;return t=new il({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){k(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&&y(e),R(t)}}}function cd(i){let e,t,n;return t=new il({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){k(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&&y(e),R(t)}}}function fd(i){let e,t,n,o,r,l,a,s,u,f,p,h;n=new Un({props:{direction:"left"}});let v=yt(i[6]),g=[];for(let w=0;w<v.length;w+=1)g[w]=md(K1(i,v,w));let S=w=>_(g[w],1,1,()=>{g[w]=null});return{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${W("subtitles_caption")}`,a=O(),s=P("ul");for(let w=0;w<g.length;w+=1)g[w].c();c(t,"class","item menu-header svelte-5r0p3"),c(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[34]),c(s,"class","items svelte-5r0p3"),c(s,"role","menu"),c(s,"style",u=i[73](i[20]?.clientHeight,!0)),F(s,"items-mobile",i[34]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-5r0p3"),F(e,"menu-desktop",!i[34]),F(e,"menu-mobile",i[34])},m(w,T){k(w,e,T),m(e,t),B(n,t,null),m(t,o),m(t,r),i[127](t),m(e,a),m(e,s);for(let C=0;C<g.length;C+=1)g[C]&&g[C].m(s,null);i[130](s),f=!0,p||(h=[pe(t,"click",rt(i[66])),pe(s,"keydown",i[86])],p=!0)},p(w,T){if((!f||T[1]&8)&&F(t,"item-mobile",w[34]),T[0]&64|T[1]&8|T[2]&33554440){v=yt(w[6]);let C;for(C=0;C<v.length;C+=1){let b=K1(w,v,C);g[C]?(g[C].p(b,T),d(g[C],1)):(g[C]=md(b),g[C].c(),d(g[C],1),g[C].m(s,null))}for(ue(),C=v.length;C<g.length;C+=1)S(C);ce()}(!f||T[0]&1048576&&u!==(u=w[73](w[20]?.clientHeight,!0)))&&c(s,"style",u),(!f||T[1]&8)&&F(s,"items-mobile",w[34]),(!f||T[1]&8)&&F(e,"menu-desktop",!w[34]),(!f||T[1]&8)&&F(e,"menu-mobile",w[34])},i(w){if(!f){d(n.$$.fragment,w);for(let T=0;T<v.length;T+=1)d(g[T]);f=!0}},o(w){_(n.$$.fragment,w),g=g.filter(Boolean);for(let T=0;T<g.length;T+=1)_(g[T]);f=!1},d(w){w&&y(e),R(n),i[127](null),Ni(g,w),i[130](null),p=!1,nt(h)}}}function dd(i){let e,t,n;return t=new il({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){k(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&&y(e),R(t)}}}function md(i){let e,t,n,o=i[142].displayValue+"",r,l,a,s,u,f,p,h=i[142].selected&&dd(i);function v(){return i[128](i[142])}function g(...S){return i[129](i[142],...S)}return{c(){e=P("li"),h&&h.c(),t=O(),n=P("div"),r=Re(o),l=O(),c(n,"class","svelte-5r0p3"),F(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-5r0p3"),c(e,"data-value",a=i[142].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[142].displayValue),F(e,"item-mobile",i[34])},m(S,w){k(S,e,w),h&&h.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),u=!0,f||(p=[pe(e,"click",rt(v)),pe(e,"keydown",g)],f=!0)},p(S,w){i=S,i[142].selected?h?w[0]&64&&d(h,1):(h=dd(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||w[0]&64)&&o!==(o=i[142].displayValue+"")&&je(r,o),(!u||w[1]&8)&&F(n,"quality-title-mobile",i[34]),(!u||w[0]&64&&a!==(a=i[142].value))&&c(e,"data-value",a),(!u||w[0]&64&&s!==(s=i[142].displayValue))&&c(e,"aria-label",s),(!u||w[1]&8)&&F(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&y(e),h&&h.d(),f=!1,nt(p)}}}function bg(i){let e,t,n,o,r,l,a=i[10]&&j1(i),s=i[12]&&td(i),u=i[13]&&ld(i),f=i[15]&&ad(i),p=i[14]&&fd(i);return{c(){e=P("div"),a&&a.c(),t=O(),s&&s.c(),n=O(),u&&u.c(),o=O(),f&&f.c(),r=O(),p&&p.c(),c(e,"class","svelte-5r0p3"),F(e,"hidden",!i[10]),F(e,"container-mobile",i[34])},m(h,v){k(h,e,v),a&&a.m(e,null),m(e,t),s&&s.m(e,null),m(e,n),u&&u.m(e,null),m(e,o),f&&f.m(e,null),m(e,r),p&&p.m(e,null),l=!0},p(h,v){h[10]?a?(a.p(h,v),v[0]&1024&&d(a,1)):(a=j1(h),a.c(),d(a,1),a.m(e,t)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),h[12]?s?(s.p(h,v),v[0]&4096&&d(s,1)):(s=td(h),s.c(),d(s,1),s.m(e,n)):s&&(ue(),_(s,1,1,()=>{s=null}),ce()),h[13]?u?(u.p(h,v),v[0]&8192&&d(u,1)):(u=ld(h),u.c(),d(u,1),u.m(e,o)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[15]?f?(f.p(h,v),v[0]&32768&&d(f,1)):(f=ad(h),f.c(),d(f,1),f.m(e,r)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[14]?p?(p.p(h,v),v[0]&16384&&d(p,1)):(p=fd(h),p.c(),d(p,1),p.m(e,null)):p&&(ue(),_(p,1,1,()=>{p=null}),ce()),(!l||v[0]&1024)&&F(e,"hidden",!h[10]),(!l||v[1]&8)&&F(e,"container-mobile",h[34])},i(h){l||(d(a),d(s),d(u),d(f),d(p),l=!0)},o(h){_(a),_(s),_(u),_(f),_(p),l=!1},d(h){h&&y(e),a&&a.d(),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d()}}}var vg=18;function yg(i,e,t){let n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,{ref:A=void 0}=e,{supportLink:$}=e,{playerControlsHeight:J=0}=e,{returnFocus:x}=e,N=it(),te=Mt(),E=N.state.currentQuality$;H(i,E,re=>t(102,S=re));let Y=N.state.availableQualities$;H(i,Y,re=>t(8,v=re));let Be=N.state.autoQualityLimitingAvailable$;H(i,Be,re=>t(106,b=re));let We=N.state.isAutoQualityEnabled$;H(i,We,re=>t(103,w=re));let qe=N.state.currentPlaybackRate$;H(i,qe,re=>t(9,g=re));let Je=N.state.availablePlaybackRates$;H(i,Je,re=>t(7,p=re));let Ne=N.state.currentSubtitle$;H(i,Ne,re=>t(35,se=re));let ve=N.state.availableSubtitlesList$;H(i,ve,re=>t(6,u=re));let X=N.state.canDownload,ke=N.state.hasMpegSources$;H(i,ke,re=>t(107,I=re));let He=N.ui.settingsMenuVisible;H(i,He,re=>t(10,le=re));let xe=N.ui.settingsMenuOpenedByKeyboard;H(i,xe,re=>t(132,o=re));let et=N.ui.isMobile;H(i,et,re=>t(34,r=re));let we=N.ui.mobileNotReportControlHidden$;H(i,we,re=>t(104,T=re));let Ve=N.state.canChangePlaybackSpeed$;H(i,Ve,re=>t(105,C=re));let Ue=N.ui.isFullscreen;H(i,Ue,re=>t(135,G=re));let Ye=N.state.trafficSavingEnabled$;H(i,Ye,re=>t(5,a=re));let ae=N.ui.playerSize;H(i,ae,re=>t(134,j=re));let ne=N.ui.debugPanelVisible;H(i,ne,re=>t(36,V=re));let Se=N.ui.playerSize;H(i,Se,re=>t(133,Q=re));let fe=N.state.isInteractiveTime$,Ae=N.actions.internal.downloadVideo,Xe=N.actions.internal.closeSettingsMenu,at=!0,ft=!1,ut=!1,ye=!1,$e=!1,_t=!1;function bt(){o||x?.(),Xe(),_t=!1}function vt(){t(11,at=!1),t(12,ft=!0)}function Vt(){t(11,at=!1),t(15,$e=!0)}function Ke(re){N.actions.internal.setQuality(re),bt()}function Qt(re){N.actions.internal.setTrafficSavingEnabled(re),bt()}function Nt(){t(11,at=!1),t(13,ut=!0)}function he(re){N.actions.internal.setPlaybackRate(re),bt()}function Et(){t(11,at=!1),t(14,ye=!0)}function Ze(re){N.actions.internal.setSubtitle(re),bt()}function mt(){t(11,at=!0),t(12,ft=!1),t(13,ut=!1),t(14,ye=!1),t(15,$e=!1)}function ht(){Ae(),bt()}function gt(){window.open($,"_blank"),bt(),N.actions.internal.pause()}function Lt(){wl(N.actions.internal.getDebugTextData()),bt()}function Oi(){ne.set(!0),bt()}function fi(){_t=!0}function Yi(){_t=!1}function on(re,dt,ai){if(!re)return"...";let ui=dt.find(ji=>ji.value===re),$t=ui?ui.displayValue:re;return ai?re===pd.VideoQuality.INVARIANT?W("auto_quality_invariant"):W("auto_quality",{actual:$t}):$t}let di,mi,Ei,Yt,pi;function ln(re=0,dt=!1){return r&&G&&dt?`max-height: ${Math.round(j.height*.6)}px`:r?"":`max-height: ${Q.height-vg-re-J}px; overflow: auto;`}let _i,Fi,ti,Ai,hi,Hi,gi,ii,Tt,Ot,bi=De(!1);H(i,bi,re=>t(101,h=re));let vi,Ft,ni=De(!1);H(i,ni,re=>t(100,f=re));let oi,Bt,At=De(!1);H(i,At,re=>t(99,s=re));let Kt,Mi,Zt=De(!1);H(i,Zt,re=>t(98,l=re));let rn=re=>{cr(re,Xe)},sn=async re=>{Sl(re,vt,()=>{let dt=v.findIndex(ai=>ai.selected);return Ot.childNodes[dt]})},Wt=async re=>{Pl(re,mt,bi,Xe)},yi=(re,dt)=>{Qi(re,()=>Ke(dt))},zi=async re=>{Sl(re,Nt,()=>{let dt=p.findIndex(ai=>ai.selected);return Ft.childNodes[dt]})},ki=async re=>{Pl(re,mt,ni,Xe)},li=(re,dt)=>{Qi(re,()=>he(dt))},Ht=async re=>{Sl(re,Et,()=>{let dt=u.findIndex(ai=>ai.selected);return Bt.childNodes[dt]})},Gt=async re=>{Pl(re,mt,At,Xe)},wi=(re,dt)=>{Qi(re,()=>Ze(dt))},Xt=async re=>{Sl(re,Vt,()=>{let dt=a?2:0;return Mi.childNodes[dt]})},Zi=async re=>{Pl(re,mt,Zt,Xe)},Ci=(re,dt)=>{Qi(re,()=>Qt(dt))},an=re=>{Qi(re,()=>ht())},un=re=>{Qi(re,()=>gt())},Xi=re=>{Qi(re,()=>Lt())},qi=re=>{Qi(re,()=>Oi())};St(()=>{let re=fe.subscribe(dt=>{dt&&!r&&!_t&&!o&&bt()});return()=>{re()}});function Vi(re){_e[re?"unshift":"push"](()=>{Tt=re,t(1,Tt)})}function jt(re){_e[re?"unshift":"push"](()=>{vi=re,t(2,vi)})}function ri(re){_e[re?"unshift":"push"](()=>{oi=re,t(3,oi)})}function Si(re){_e[re?"unshift":"push"](()=>{Kt=re,t(4,Kt)})}function Li(re){_e[re?"unshift":"push"](()=>{A=re,t(0,A)})}function Ji(re){_e[re?"unshift":"push"](()=>{mi=re,t(17,mi)})}let Pi=re=>Ke(re.value),Bi=(re,dt)=>yi(dt,re.value);function Ri(re){_e[re?"unshift":"push"](()=>{Ot=re,t(29,Ot)})}function Qe(re){_e[re?"unshift":"push"](()=>{Ei=re,t(18,Ei)})}let Ui=re=>he(re.value),zt=(re,dt)=>li(dt,re.value);function ze(re){_e[re?"unshift":"push"](()=>{Ft=re,t(30,Ft)})}function xi(re){_e[re?"unshift":"push"](()=>{Yt=re,t(19,Yt)})}let Di=()=>Qt(!1),Ki=re=>Ci(re,!1),$i=()=>Qt(!0),Wi=re=>Ci(re,!0);function _n(re){_e[re?"unshift":"push"](()=>{Mi=re,t(32,Mi)})}function Jt(re){_e[re?"unshift":"push"](()=>{pi=re,t(20,pi)})}let xt=re=>Ze(re),Gi=(re,dt)=>wi(dt,re);function si(re){_e[re?"unshift":"push"](()=>{Bt=re,t(31,Bt)})}return i.$$set=re=>{"ref"in re&&t(0,A=re.ref),"supportLink"in re&&t(95,$=re.supportLink),"playerControlsHeight"in re&&t(96,J=re.playerControlsHeight),"returnFocus"in re&&t(97,x=re.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1024)e:le&&(t(11,at=!0),t(12,ft=!1),t(13,ut=!1),t(14,ye=!1),t(15,$e=!1));if(i.$$.dirty[3]&512)e:t(33,n=co(S));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,di=on(S,v,w));if(i.$$.dirty[3]&18432)e:t(21,_i=X&&I&&!T);if(i.$$.dirty[3]&10240)e:t(22,Fi=te.features.trafficSaving&&!T&&b);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,ti=u.length>0&&!T);if(i.$$.dirty[3]&6144)e:t(24,Ai=!!C&&!T);if(i.$$.dirty[3]&2048)e:t(25,hi=!T);if(i.$$.dirty[0]&32)e:t(26,Hi=a?W("traffic_saving_on"):W("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,gi=w?W("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,ii=p.find(re=>re.value===g)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:Cl(Tt,bi,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:Cl(vi,ni,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:Cl(oi,At,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:Cl(Kt,Zt,l)},[A,Tt,vi,oi,Kt,a,u,p,v,g,le,at,ft,ut,ye,$e,di,mi,Ei,Yt,pi,_i,Fi,ti,Ai,hi,Hi,gi,ii,Ot,Ft,Bt,Mi,n,r,se,V,te,E,Y,Be,We,qe,Je,Ne,ve,ke,He,xe,et,we,Ve,Ue,Ye,ae,ne,Se,bt,vt,Vt,Ke,Qt,Nt,he,Et,Ze,mt,ht,gt,Lt,Oi,fi,Yi,ln,bi,ni,At,Zt,rn,sn,Wt,yi,zi,ki,li,Ht,Gt,wi,Xt,Zi,Ci,an,un,Xi,qi,$,J,x,l,s,f,h,S,w,T,C,b,I,Vi,jt,ri,Si,Li,Ji,Pi,Bi,Ri,Qe,Ui,zt,ze,xi,Di,Ki,$i,Wi,_n,Jt,xt,Gi,si]}var Ia=class extends q{constructor(e){super(),U(this,e,yg,bg,z,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},hg,[-1,-1,-1,-1,-1])}},kr=Ia;function kg(i){Ce(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function wg(i){let e,t,n;return t=new vr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),D(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){k(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&&y(e),R(t)}}}function Cg(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:[wg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 Sg(i,e,t){let n,o,r,{ref:l=void 0}=e,a=it(),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 f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;H(i,p,S=>t(3,o=S));let h;function v(S){let w=xo(S);f(w)}function g(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?W("tooltip_settings_on"):W("tooltip_settings_off"))},[l,n,h,o,r,s,u,p,v,g]}var Ta=class extends q{constructor(e){super(),U(this,e,Sg,Cg,z,{ref:0},kg)}},Tl=Ta;function Pg(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(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),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ea=class extends q{constructor(e){super(),U(this,e,Ig,Pg,z,{})}},_d=Ea;function Tg(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 Eg(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 Ag(i){let e,t,n,o,r=[Eg,Tg],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),k(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ue(),_(l[f],1,1,()=>{l[f]=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&&y(n),l[e].d(s)}}}function Mg(i){let e,t;return e=new pt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:zn.KeyC,$$slots:{default:[Ag]},$$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 Vg(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?W("tooltip_subtitles_on"):W("tooltip_subtitles_off"))},[n,o,r]}var Aa=class extends q{constructor(e){super(),U(this,e,Vg,Mg,z,{isSubtitlesEnabled:0,click:1})}},hd=Aa;function Lg(i){Ce(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=P("span"),t=Re(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){k(n,e,o),m(e,t)},p(n,o){o&8&&je(t,n[3])},d(n){n&&y(e)}}}function Bg(i){let e,t,n,o,r=i[2]&&gd(i);return{c(){e=P("div"),t=P("span"),n=Re(i[4]),o=O(),r&&r.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),F(e,"mobile",i[1])},m(l,a){k(l,e,a),m(e,t),m(t,n),m(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&je(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:me,o:me,d(l){l&&y(e),r&&r.d(),i[7](null)}}}function Rg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function f(p){_e[p?"unshift":"push"](()=>{a=p,t(0,a)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,r=p.position),"showDuration"in p&&t(2,l=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=bn(o));if(i.$$.dirty&64)e:t(4,u=bn(r))},[a,n,l,s,u,o,r,f]}var Ma=class extends q{constructor(e){super(),U(this,e,Rg,Bg,z,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Lg)}},wr=Ma;var Zn=require("@vkontakte/videoplayer-shared");function Dg(i){Ce(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 Ng(i){let e,t,n,o,r,l;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),c(n,"class","wave2 svelte-1n5yyua"),c(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"),c(o,"class","wave1 svelte-1n5yyua"),c(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"),c(r,"class","cross svelte-1n5yyua"),c(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"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",l="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){k(a,e,s),m(e,t),m(t,n),m(t,o),m(t,r)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&c(e,"data-testid",l)},i:me,o:me,d(a){a&&y(e)}}}function Og(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 Va=class extends q{constructor(e){super(),U(this,e,Og,Ng,z,{volume:1,muted:2},Dg)}},Vo=Va;var Pn=require("@vkontakte/videoplayer-shared");var kd=require("@vkontakte/videoplayer-shared");var yd=require("@vkontakte/videoplayer-shared");function Fg(i){let e,t,n=i[4].default,o=Pe(n,i,i[3],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","overlay")},m(r,l){k(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Te(o,n,r,r[3],t?Ie(n,r[3],l,null):Ee(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&y(e),o&&o.d(r),i[5](null)}}}function Hg(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=it().ui.overlayContainer$;H(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};St(()=>(f(n),()=>u(n)));function p(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:f(n)},[s,a,n,r,o,p]}var La=class extends q{constructor(e){super(),U(this,e,Hg,Fg,z,{})}},bd=La;function zg(i){Ce(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:[qg]},$$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 qg(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("div"),n=Re(i[1]),o=O(),r=P("div"),c(t,"class","content svelte-tny135"),c(r,"class","tooltip-pointer svelte-tny135"),c(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),F(r,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),F(e,"active",i[0])},m(s,u){k(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),i[20](e)},p(s,u){u&2&&je(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&F(e,"active",s[0])},d(s){s&&y(e),i[20](null)}}}function Ug(i){let e,t,n,o,r,l,a=i[18].default,s=Pe(a,i,i[21],null),u=i[1]&&vd(i);return{c(){e=P("div"),s&&s.c(),t=O(),u&&u.c(),n=lt(),c(e,"class","tooltip-wrapper svelte-tny135"),F(e,"full-width",i[2])},m(f,p){k(f,e,p),s&&s.m(e,null),i[19](e),k(f,t,p),u&&u.m(f,p),k(f,n,p),o=!0,r||(l=[pe(e,"mouseenter",i[12]),pe(e,"mousemove",i[12]),pe(e,"mouseleave",i[13]),pe(e,"mousedown",i[13]),pe(e,"mouseup",i[12])],r=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Te(s,a,f,f[21],o?Ie(a,f[21],p,null):Ee(f[21]),null),(!o||p&4)&&F(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=vd(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ue(),_(u,1,1,()=>{u=null}),ce())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(y(e),y(t),y(n)),s&&s.d(f),i[19](null),u&&u.d(f),r=!1,nt(l)}}}var El=5;function Kg(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:h="top"}=e,{onVisibilityChange:v=yd.noop}=e,g=h==="top",S,w,T,C=0,b=g?El:-El,I=0,Q=0,j=Mt(),G=it(),le=G.ui.playerSize;H(i,le,Y=>t(24,o=Y));let se=G.ui.overlayContainer$;H(i,se,Y=>t(23,n=Y));let V=G.getLogger().createComponentLog("Tooltip component"),A=()=>{if(!n||!w||!S)return;let Y=n.getBoundingClientRect(),Be=S.getBoundingClientRect(),We=Be.width,qe=w.clientWidth,Je=o.width,Ne=(We-qe)/2,ve=Be.left+u-Y.left,X=ve+Ne,ke=Be.top+f-Y.top,He=qe/2-El,xe=X<8,et=X+qe>Je-8;xe&&(X=8,He=ve+Be.width/2-2.5*El),et&&(X=Je-8-qe,He=Be.left-Y.left+Be.width/2-X-El),t(6,I=X),t(7,Q=ke),t(5,C=He)},$=()=>{try{if(!n||!S)return;A(),t(0,s=!0)}catch(Y){V({message:String(Y)})}},J=()=>{t(0,s=!1)},x=()=>{w&&(T||(T=window.setTimeout($,j.controls.hideTimeoutTooltips)),s&&$())},N=()=>{J(),window.clearTimeout(T),T=void 0};St(A),Ln(()=>window.clearTimeout(T));function te(Y){_e[Y?"unshift":"push"](()=>{S=Y,t(3,S)})}function E(Y){_e[Y?"unshift":"push"](()=>{w=Y,t(4,w)})}return i.$$set=Y=>{"content"in Y&&t(1,a=Y.content),"active"in Y&&t(0,s=Y.active),"translateX"in Y&&t(14,u=Y.translateX),"translateY"in Y&&t(15,f=Y.translateY),"isFullWidthWrapper"in Y&&t(2,p=Y.isFullWidthWrapper),"placement"in Y&&t(16,h=Y.placement),"onVisibilityChange"in Y&&t(17,v=Y.onVisibilityChange),"$$scope"in Y&&t(21,l=Y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:v(s)},[s,a,p,S,w,C,I,Q,g,b,le,se,x,N,u,f,h,v,r,te,E,l]}var Ba=class extends q{constructor(e){super(),U(this,e,Kg,Ug,z,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},zg)}},Cr=Ba;function Wg(i){Ce(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 Gg(i){let e,t=i[19].default,n=Pe(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)&&Te(n,t,o,o[24],e?Ie(t,o[24],r,null):Ee(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 Cr({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[Qg]},$$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 Qg(i){let e,t=i[19].default,n=Pe(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)&&Te(n,t,o,o[24],e?Ie(t,o[24],r,null):Ee(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Yg(i){let e,t,n,o,r,l,a,s,u,f=[jg,Gg],p=[];function h(v,g){return v[3]&&v[5]&&!v[13]?0:1}return t=h(i,-1),n=p[t]=f[t](i),{c(){e=P("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",r=i[8]||null),Rn(()=>i[23].call(e))},m(v,g){k(v,e,g),p[t].m(e,null),i[22](e),l=qo(e,i[23].bind(e)),a=!0,s||(u=[pe(e,"pointerdown",rt(Ct(i[20]))),pe(e,"click",rt(Ct(i[21])))],s=!0)},p(v,[g]){let S=t;t=h(v,g),t===S?p[t].p(v,g):(ue(),_(p[S],1,1,()=>{p[S]=null}),ce(),n=p[t],n?n.p(v,g):(n=p[t]=f[t](v),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+v[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&256&&r!==(r=v[8]||null))&&c(e,"aria-hidden",r)},i(v){a||(d(n),a=!0)},o(v){_(n),a=!1},d(v){v&&y(e),p[t].d(),i[22](null),l(),s=!1,nt(u)}}}function Zg(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:v=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:w=W("tooltip_button_disabled")}=e,{isAriaHidden:T=!1}=e,{onTooltipVisibilityChange:C=kd.noop}=e,{initialTranslateXPx:b=0}=e,{initialTranslateYPx:I=-18}=e,Q=it(),j=Q.ui.isMobile;H(i,j,J=>t(13,o=J));let G=Q.state.graphIsOpened$;H(i,G,J=>t(18,n=J));let le;function se(J){gn.call(this,i,J)}function V(J){gn.call(this,i,J)}function A(J){_e[J?"unshift":"push"](()=>{f=J,t(0,f)})}function $(){p=this.clientWidth,t(1,p)}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,f=J.ref),"width"in J&&t(1,p=J.width),"isFullWidthTooltip"in J&&t(4,h=J.isFullWidthTooltip),"tooltipContent"in J&&t(5,v=J.tooltipContent),"tooltipActive"in J&&t(6,g=J.tooltipActive),"tooltipPlacement"in J&&t(7,S=J.tooltipPlacement),"disabledTooltipContent"in J&&t(17,w=J.disabledTooltipContent),"isAriaHidden"in J&&t(8,T=J.isAriaHidden),"onTooltipVisibilityChange"in J&&t(9,C=J.onTooltipVisibilityChange),"initialTranslateXPx"in J&&t(10,b=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,le=n?W("tooltip_disabled_when_graph_on"):w):t(12,le=v)},[f,p,a,u,h,v,g,S,T,C,b,I,le,o,j,G,s,w,n,r,se,V,A,$,l]}var Ra=class extends q{constructor(e){super(),U(this,e,Zg,Yg,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},Wg)}},It=Ra;function Xg(i){let e,t,n,o,r,l;return{c(){e=M("svg"),t=M("rect"),o=M("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(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"),c(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){k(a,e,s),m(e,t),m(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",l)},i:me,o:me,d(a){a&&y(e)}}}function Jg(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Da=class extends q{constructor(e){super(),U(this,e,Jg,Xg,z,{completed:0})}},Sr=Da;function xg(i){Ce(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 $g(i){let e,t,n,o,r;return t=new Sr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Rn(()=>i[3].call(e)),F(e,"disabled",i[1])},m(l,a){k(l,e,a),B(t,e,null),o=qo(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}%`))&&c(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&&y(e),R(t),o()}}}function eb(i){let e,t;return e=new It({props:{tooltipContent:W(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:[$g]},$$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=W(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 tb(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 Na=class extends q{constructor(e){super(),U(this,e,tb,eb,z,{videoEpisode:0,disabled:1},xg)}},wd=Na;function ib(i){Ce(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=P("div"),t=P("div"),n=P("div"),r=O(),l=P("div"),s=O(),c(n,"class","video-episode-loaded svelte-1h9p3m2"),c(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),c(l,"class","video-episode-filled svelte-1h9p3m2"),c(l,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),F(l,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1h9p3m2"),c(e,"class","video-episode svelte-1h9p3m2"),c(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),F(e,"mobile",i[1])},m(f,p){k(f,e,p),m(e,t),m(t,n),m(t,r),m(t,l),m(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&c(l,"style",a),p&2&&F(l,"mobile",f[1]),p&1&&u!==(u=`left: ${f[2].from}%; width: ${f[2].width}%`)&&c(e,"style",u),p&2&&F(e,"mobile",f[1])},d(f){f&&y(e)}}}function nb(i){let e,t=yt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Sd(Cd(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,r){k(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=yt(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:me,o:me,d(o){o&&y(e),Ni(n,o)}}}function ob(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 Oa=class extends q{constructor(e){super(),U(this,e,ob,nb,z,{videoEpisodes:0,isMobile:1},ib)}},Pd=Oa;function lb(i){Ce(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 Id(i,e,t){let n=i.slice();return n[48]=e[t],n}function Td(i){let e,t,n=yt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Ad(Id(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=P("div");for(let l=0;l<o.length;l+=1)o[l].c();c(e,"class","interactive-icons svelte-1golz1y"),F(e,"mobile",i[5]),F(e,"hidden",i[5]&&!i[20])},m(l,a){k(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=yt(l[21]);let s;for(s=0;s<n.length;s+=1){let u=Id(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Ad(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ue(),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&&y(e),Ni(o,l)}}}function Ed(i){let e,t;return e=new wd({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 Ad(i){let e,t,n=i[48].interactive&&Ed(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),k(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&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function rb(i){let e,t,n,o,r,l;return{c(){e=P("div"),t=P("div"),o=O(),r=P("div"),c(t,"class","loaded svelte-1golz1y"),c(t,"style",n=`transform: translateX(${i[11]*100}%);`),c(r,"class","filled svelte-1golz1y"),c(r,"style",l=`transform: translateX(${i[12]*100}%);`),F(r,"active-live",i[4]),F(r,"ads",i[6]),c(e,"class","bars svelte-1golz1y")},m(a,s){k(a,e,s),m(e,t),m(e,o),m(e,r)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&c(t,"style",n),s[0]&4096&&l!==(l=`transform: translateX(${a[12]*100}%);`)&&c(r,"style",l),s[0]&16&&F(r,"active-live",a[4]),s[0]&64&&F(r,"ads",a[6])},i:me,o:me,d(a){a&&y(e)}}}function sb(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 ab(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g=i[8]&&Td(i),S=[sb,rb],w=[];function T(C,b){return C[21].length?0:1}return n=T(i,[-1,-1]),o=w[n]=S[n](i),{c(){g&&g.c(),e=O(),t=P("div"),o.c(),r=O(),l=P("div"),a=P("div"),c(a,"class","handle svelte-1golz1y"),F(a,"active-live",i[4]),c(l,"class","handleWrap svelte-1golz1y"),c(l,"style",s=`transform: translateX(${i[13]*100}%);`),F(l,"hidden",i[10]),c(t,"class",u="slider "+i[0]+" svelte-1golz1y"),c(t,"aria-label",i[14]),c(t,"aria-valuemin",i[15]),c(t,"aria-valuemax",i[16]),c(t,"aria-valuenow",i[17]),c(t,"aria-valuetext",i[18]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[1]??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(C,b){g&&g.m(C,b),k(C,e,b),k(C,t,b),w[n].m(t,null),m(t,r),m(t,l),m(l,a),i[42](t),p=!0,h||(v=[pe(t,"pointerdown",Ct(i[22])),pe(t,"pointermove",Ct(i[23])),pe(t,"pointerup",Ct(i[24])),pe(t,"pointerenter",Ct(i[25])),pe(t,"pointerleave",Ct(i[26])),pe(t,"click",rt(Pn.noop)),pe(t,"wheel",i[27])],h=!0)},p(C,b){C[8]?g?(g.p(C,b),b[0]&256&&d(g,1)):(g=Td(C),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ue(),_(g,1,1,()=>{g=null}),ce());let I=n;n=T(C,b),n===I?w[n].p(C,b):(ue(),_(w[I],1,1,()=>{w[I]=null}),ce(),o=w[n],o?o.p(C,b):(o=w[n]=S[n](C),o.c()),d(o,1),o.m(t,r)),(!p||b[0]&16)&&F(a,"active-live",C[4]),(!p||b[0]&8192&&s!==(s=`transform: translateX(${C[13]*100}%);`))&&c(l,"style",s),(!p||b[0]&1024)&&F(l,"hidden",C[10]),(!p||b[0]&1&&u!==(u="slider "+C[0]+" svelte-1golz1y"))&&c(t,"class",u),(!p||b[0]&16384)&&c(t,"aria-label",C[14]),(!p||b[0]&32768)&&c(t,"aria-valuemin",C[15]),(!p||b[0]&65536)&&c(t,"aria-valuemax",C[16]),(!p||b[0]&131072)&&c(t,"aria-valuenow",C[17]),(!p||b[0]&262144)&&c(t,"aria-valuetext",C[18]),(!p||b[0]&2&&f!==(f=C[1]??null))&&c(t,"data-testid",f),(!p||b[0]&513)&&F(t,"disabled",C[9]),(!p||b[0]&1048577)&&F(t,"slider-dragging",C[20]),(!p||b[0]&5)&&F(t,"hidden",C[2]),(!p||b[0]&9)&&F(t,"slider-vertical",C[3]),(!p||b[0]&1025)&&F(t,"no-handle",C[10]),(!p||b[0]&129)&&F(t,"square",C[7])},i(C){p||(d(g),d(o),p=!0)},o(C){_(g),_(o),p=!1},d(C){C&&(y(e),y(t)),g&&g.d(C),w[n].d(),i[42](null),h=!1,nt(v)}}}function ub(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:f=!1}=e,{isAds:p=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:v=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:S=!1}=e,{disabled:w=!1}=e,{hideHandel:T=!1}=e,C,b,{onPointerDown:I=Pn.noop}=e,{onHandleMove:Q=Pn.noop}=e,{onPointerUp:j=Pn.noop}=e,{onPointerEnter:G=Pn.noop}=e,{onPointerMove:le=Pn.noop}=e,{onPointerLeave:se=Pn.noop}=e,{onWheelUp:V=Pn.noop}=e,{onWheelDown:A=Pn.noop}=e,{onWheelLeft:$=Pn.noop}=e,{onWheelRight:J=Pn.noop}=e,{loadedProgress:x=0}=e,{filledProgress:N=0}=e,{handleProgress:te=0}=e,{ariaLabel:E=""}=e,{ariaValueMin:Y=void 0}=e,{ariaValueMax:Be=void 0}=e,{ariaValueNow:We=void 0}=e,{ariaValueText:qe=""}=e,Je=Mt(),Ne=!1,ve;function X(ne){if(Ne)return;t(20,Ne=!0),b=C.getBoundingClientRect();let Se=Ve(ne.clientX,ne.clientY);I(Se),C.setPointerCapture(ne.pointerId)}function ke(ne){let Se=Ve(ne.clientX,ne.clientY),fe=Ue(ne.clientX);le(Se,fe,b.width),Ne&&Q(Se)}function He(ne){if(!Ne)return;t(20,Ne=!1);let Se=Ve(ne.clientX,ne.clientY);j(Se)}function xe(ne){b=C.getBoundingClientRect();let Se=Ve(ne.clientX,ne.clientY),fe=Ue(ne.clientX);G(Se,fe,b.width)}function et(){se()}function we(ne){g&&(ne.preventDefault(),ne.deltaY<0?V():ne.deltaY>0?A():ne.deltaX>0?J():$())}function Ve(ne,Se){return s?Math.max(0,Math.min(1,(b.height-(Se-b.top))/b.height)):Math.min(Math.max(ne-b.x,0),b.width)/b.width}function Ue(ne){return Math.min(Math.max(ne-b.x,0),b.width)}function Ye(ne,Se){let fe=Je.features.episodesClustering&&!S?Je.episodeMinWidthPc:0,Ae=[],Xe=0,at=0,ft=0;for(let $e=1;$e<v.length;$e++)at=v[$e].time/ve*100,at-Xe>fe&&(Ae.push({from:Xe,width:Math.max(0,at-Xe),loadedWidth:Math.max(0,Math.min(at,ne)-Xe),filledWidth:Math.max(0,Math.min(at,Se)-Xe),interactive:v[$e-1].interactive,completed:v[$e-1].completed}),Xe=v[$e].time/ve*100,ft++);let ut={from:Xe,width:Math.max(0,100-Xe),loadedWidth:Math.max(0,Math.min(ne,100)-Xe),filledWidth:Math.max(0,Math.min(Se,100)-Xe),interactive:v[ft].interactive,completed:v[ft].completed};100-Xe<fe?(ft-=1,Ae[ft].width+=100-Xe,Ae[ft].loadedWidth+=Math.max(0,Math.min(ne,100)-Xe),Ae[ft].filledWidth+=Math.max(0,Math.min(Se,100)-Xe)):Ae[ft]=ut;let ye=v[0].time;if(ye!==0){let $e=ye/ve*100;Ae.unshift({from:0,width:$e,loadedWidth:Math.min($e,ne),filledWidth:Math.min($e,Se)})}return Ae}function ae(ne){_e[ne?"unshift":"push"](()=>{C=ne,t(19,C)})}return i.$$set=ne=>{"className"in ne&&t(0,r=ne.className),"testId"in ne&&t(1,l=ne.testId),"isHidden"in ne&&t(2,a=ne.isHidden),"isVertical"in ne&&t(3,s=ne.isVertical),"isActiveLive"in ne&&t(4,u=ne.isActiveLive),"isMobile"in ne&&t(5,f=ne.isMobile),"isAds"in ne&&t(6,p=ne.isAds),"squareBorders"in ne&&t(7,h=ne.squareBorders),"videoEpisodes"in ne&&t(28,v=ne.videoEpisodes),"withWheelHandler"in ne&&t(29,g=ne.withWheelHandler),"isInteractive"in ne&&t(8,S=ne.isInteractive),"disabled"in ne&&t(9,w=ne.disabled),"hideHandel"in ne&&t(10,T=ne.hideHandel),"onPointerDown"in ne&&t(30,I=ne.onPointerDown),"onHandleMove"in ne&&t(31,Q=ne.onHandleMove),"onPointerUp"in ne&&t(32,j=ne.onPointerUp),"onPointerEnter"in ne&&t(33,G=ne.onPointerEnter),"onPointerMove"in ne&&t(34,le=ne.onPointerMove),"onPointerLeave"in ne&&t(35,se=ne.onPointerLeave),"onWheelUp"in ne&&t(36,V=ne.onWheelUp),"onWheelDown"in ne&&t(37,A=ne.onWheelDown),"onWheelLeft"in ne&&t(38,$=ne.onWheelLeft),"onWheelRight"in ne&&t(39,J=ne.onWheelRight),"loadedProgress"in ne&&t(11,x=ne.loadedProgress),"filledProgress"in ne&&t(12,N=ne.filledProgress),"handleProgress"in ne&&t(13,te=ne.handleProgress),"ariaLabel"in ne&&t(14,E=ne.ariaLabel),"ariaValueMin"in ne&&t(15,Y=ne.ariaValueMin),"ariaValueMax"in ne&&t(16,Be=ne.ariaValueMax),"ariaValueNow"in ne&&t(17,We=ne.ariaValueNow),"ariaValueText"in ne&&t(18,qe=ne.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&65536)e:t(40,ve=Be??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=v[v.length-1]?.time<ve);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=v.length&&n&&ve?Ye(x*100,N*100):[])},[r,l,a,s,u,f,p,h,S,w,T,x,N,te,E,Y,Be,We,qe,C,Ne,o,X,ke,He,xe,et,we,v,g,I,Q,j,G,le,se,V,A,$,J,ve,n,ae]}var Fa=class extends q{constructor(e){super(),U(this,e,ub,ab,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},lb,[-1,-1])}},nl=Fa;var vn=(i,e)=>wo[i]>=wo[e],Md=(i,e)=>wo[i]<wo[e],Pr=(i,e)=>wo[i]<=wo[e],Vd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function cb(i){Ce(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 fb(i){let e,t;return e=new Vo({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 db(i){let e,t;return e=new pt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:zn.KeyM,$$slots:{default:[fb]},$$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 Ld(i){let e,t,n;return t=new nl({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]:Zn.noop,onPointerLeave:i[2]?i[20]:Zn.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=P("div"),D(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),F(e,"volumeBar-vertical",i[2])},m(o,r){k(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]:Zn.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:Zn.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&&y(e),R(t)}}}function mb(i){let e,t,n,o,r,l;t=new Cr({props:{content:i[6],translateY:-18,$$slots:{default:[db]},$$scope:{ctx:i}}});let a=i[4]&&Ld(i);return{c(){e=P("div"),D(t.$$.fragment),n=O(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),F(e,"vertical",i[2])},m(s,u){k(s,e,u),B(t,e,null),m(e,n),a&&a.m(e,null),o=!0,r||(l=[pe(e,"mouseenter",function(){Ii(i[2]?i[21]:Zn.noop)&&(i[2]?i[21]:Zn.noop).apply(this,arguments)}),pe(e,"mouseleave",function(){Ii(i[2]?i[22]:Zn.noop)&&(i[2]?i[22]:Zn.noop).apply(this,arguments)}),pe(e,"wheel",Ct(i[23]))],r=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Ld(i),a.c(),d(a,1),a.m(e,null)):a&&(ue(),_(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&&y(e),R(t),a&&a.d(),r=!1,nt(l)}}}function pb(i,e,t){let n,o,r,l,{click:a}=e,s=it(),u=Mt(),f=s.state.volume$;H(i,f,Ne=>t(3,n=Ne));let p=s.state.muted$;H(i,p,Ne=>t(25,l=Ne));let h=s.actions.internal.setVolume,v=s.ui.currentGridType$;H(i,v,Ne=>t(24,r=Ne));let g=s.callbacks?.onAudioDoesNotExistHint,S=s.callbacks?.onAudioDisabledHint,w=s.state.isAudioAvailable$;H(i,w,Ne=>t(4,o=Ne));let T=s.state.isAudioDisabled,C=!1,b,I,Q,j,G,le,se=1,V=!1,A=!1;function $(Ne){se=n,h(Ne)}function J(){pr(s,n,u.controls.volumeStepWheel)}function x(){_r(s,n,u.controls.volumeStepWheel)}function N(Ne){h(Ne)}function te(Ne){let ve=Ne;h(ve,ve===0?se:ve)}function E(){V=!0}function Y(){V=!1,qe()}function Be(){clearTimeout(b),t(5,C=!0)}function We(){qe()}function qe(){b=window.setTimeout(()=>{V||t(5,C=!1)},u.controls.volumeBarTimeout)}function Je(Ne){Ne.deltaY<0?J():Ne.deltaY>0&&x()}return i.$$set=Ne=>{"click"in Ne&&t(0,a=Ne.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,j=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,G=Pr(r,"s"));if(i.$$.dirty[0]&6)e:G?t(6,I=""):t(6,I=j?W("tooltip_volume"):W("tooltip_volume_muted")),t(7,Q=j?W("tooltip_volume"):W("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,le=j?0:n);if(i.$$.dirty[0]&16)e:t(9,A=T&&!S||!o&&!g)},[a,j,G,n,o,C,I,Q,le,A,f,p,v,w,$,J,x,N,te,E,Y,Be,We,Je,r,l]}var Ha=class extends q{constructor(e){super(),U(this,e,pb,mb,z,{click:0},cb,[-1,-1])}},Bd=Ha;var Nd=require("@vkontakte/videoplayer-shared");function _b(i){let e,t,n,o,r,l=i[2].default,a=Pe(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 f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),c(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"),c(n,"class","_exit"),c(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"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),be(e,u)},m(f,p){k(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Te(a,l,f,f[1],r?Ie(l,f[1],p,null):Ee(f[1]),null),be(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},p&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&y(e),a&&a.d(f)}}}function hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var za=class extends q{constructor(e){super(),U(this,e,hb,_b,z,{})}},Rd=za;function gb(i){Ce(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function bb(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 vb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var qa=class extends q{constructor(e){super(),U(this,e,vb,bb,z,{isFullscreen:0},gb)}},Dd=qa;function yb(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 pt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:zn.KeyF,$$slots:{default:[yb]},$$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 wb(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?W("tooltip_fullscreen_on"):W("tooltip_fullscreen_off"))},[n,o,r]}var Ua=class extends q{constructor(e){super(),U(this,e,wb,kb,z,{isFullscreen:0,click:1})}},Ir=Ua;function Cb(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Sb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ka=class extends q{constructor(e){super(),U(this,e,Sb,Cb,z,{})}},ol=Ka;function Pb(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Ib(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Wa=class extends q{constructor(e){super(),U(this,e,Ib,Pb,z,{})}},Tr=Wa;var Fd=require("@vkontakte/videoplayer-shared");function Tb(i){Ce(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=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function Eb(i){let e,t,n,o,r=i[1]&&Od(i);var l=i[8];function a(s){return{}}return l&&(n=pn(l,a(i))),{c(){r&&r.c(),e=O(),t=P("div"),n&&D(n.$$.fragment),c(t,"class","svelte-1ot3duq"),F(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),k(s,e,u),k(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){ue();let f=n;_(f.$$.fragment,1,0,()=>{R(f,1)}),ce()}l?(n=pn(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&&(y(e),y(t)),r&&r.d(s),n&&R(n)}}}function Ab(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:zn.KeyK,$$slots:{default:[Eb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 Mb(i,e,t){let n,o,{fakeIsPlaying$:r}=Sn();H(i,r,C=>t(12,o=C));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Fd.noop}=e,{toggle:h}=r,v,g,S,w;function T(C){l=C,t(0,l)}i.$$set=C=>{"ref"in C&&t(0,l=C.ref),"isMobile"in C&&t(1,a=C.isMobile),"isPlaying"in C&&t(10,s=C.isPlaying),"disabled"in C&&t(2,u=C.disabled),"className"in C&&t(3,f=C.className),"click"in C&&t(4,p=C.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,g=o!==null);if(i.$$.dirty&5152)e:t(11,S=g?o:s);if(i.$$.dirty&2048)e:t(7,w=S?W("tooltip_pause"):W("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?Tr:ol)};e:t(6,v=h);return[l,a,u,f,p,g,v,w,n,r,s,S,o,T]}var Ga=class extends q{constructor(e){super(),U(this,e,Mb,Ab,z,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Tb)}},Al=Ga;function Vb(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Lb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ja=class extends q{constructor(e){super(),U(this,e,Lb,Vb,z,{})}},Hd=ja;function Bb(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 Rb(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 Qa=class extends q{constructor(e){super(),U(this,e,Rb,Bb,z,{isPrev:0,isMobile:2})}},zd=Qa;function Db(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 Nb(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:[Db]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 Ob(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(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,r=f.disabled),"type"in f&&t(3,l=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l==="prev"?W("tooltip_previous"):W("tooltip_next"))},[n,o,r,l,a,s,u]}var Ya=class extends q{constructor(e){super(),U(this,e,Ob,Nb,z,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},ll=Ya;function Fb(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function Hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Za=class extends q{constructor(e){super(),U(this,e,Hb,Fb,z,{})}},qd=Za;function zb(i){Ce(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=M("path"),t=M("path"),n=M("path"),o=M("path"),r=M("path"),l=M("path"),a=M("path"),c(e,"d","M30.7286 15.0483H33.2239L36.8885 5H35.0776L32.1402 13.2809H31.8551L29.0175 5H27.1781L30.7286 15.0483Z"),c(e,"fill","white"),c(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"),c(t,"fill","white"),c(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"),c(n,"fill","white"),c(o,"d","M59.3767 15.0483H61.701L64.4672 9.54668H64.6954V15.0483H66.2638V7.63679H63.9396L61.1734 13.1384H60.9452V7.63679H59.3767V15.0483Z"),c(o,"fill","white"),c(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"),c(r,"fill","white"),c(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"),c(l,"fill","white"),c(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"),c(a,"fill","white")},m(s,u){k(s,e,u),k(s,t,u),k(s,n,u),k(s,o,u),k(s,r,u),k(s,l,u),k(s,a,u)},d(s){s&&(y(e),y(t),y(n),y(o),y(r),y(l),y(a))}}}function qb(i){let e,t,n,o=!i[0]&&Ud(i);return{c(){e=M("svg"),t=M("path"),o&&o.c(),c(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"),c(t,"fill","white"),c(e,"width",i[2]),c(e,"height","20"),c(e,"viewBox",n="0 0 "+(i[2]+1)+" 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",i[3]),c(e,"class","svelte-1bbobod"),F(e,"mobile",i[1])},m(r,l){k(r,e,l),m(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&&c(e,"width",r[2]),l&4&&n!==(n="0 0 "+(r[2]+1)+" 20")&&c(e,"viewBox",n),l&8&&c(e,"data-testid",r[3]),l&2&&F(e,"mobile",r[1])},i:me,o:me,d(r){r&&y(e),o&&o.d()}}}function Ub(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 Xa=class extends q{constructor(e){super(),U(this,e,Ub,qb,z,{short:0,isMobile:1},zb)}},Kd=Xa;function Kb(i){let e,t,n,o,r,l,a,s,u,f,p,h,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),a=M("feFlood"),s=M("feColorMatrix"),u=M("feOffset"),f=M("feGaussianBlur"),p=M("feColorMatrix"),h=M("feBlend"),v=M("feBlend"),c(n,"fill-rule","evenodd"),c(n,"clip-rule","evenodd"),c(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"),c(n,"fill","white"),c(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"),c(o,"stroke","black"),c(o,"stroke-opacity","0.12"),c(o,"stroke-width","0.5"),c(t,"filter","url(#filter0_d_207_5101)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"type","matrix"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(s,"result","hardAlpha"),c(f,"stdDeviation","2.5"),c(p,"type","matrix"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"mode","normal"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_207_5101"),c(v,"mode","normal"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_207_5101"),c(v,"result","shape"),c(l,"id","filter0_d_207_5101"),c(l,"x","5.5"),c(l,"y","5.35095"),c(l,"width","29"),c(l,"height","29.2982"),c(l,"filterUnits","userSpaceOnUse"),c(l,"color-interpolation-filters","sRGB"),c(e,"width","40"),c(e,"height","40"),c(e,"viewBox","0 0 40 40"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(g,S){k(g,e,S),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,v)},p:me,i:me,o:me,d(g){g&&y(e)}}}var Ja=class extends q{constructor(e){super(),U(this,e,null,Kb,z,{})}},Wd=Ja;function Gb(i){let e,t;return e=new qd({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jb(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 Qb(i){let e,t;return e=new Wd({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:me,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,n,o,r=[Qb,jb,Gb],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=lt()},m(s,u){l[e].m(s,u),k(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(n),l[e].d(s)}}}function Zb(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:[Yb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 Xb(i,e,t){let n,o,{ref:r=void 0}=e,{logoClickable:l=!1}=e,{targetUrl:a=""}=e,{click:s}=e,u=Mt(),f=it(),p=f.ui.currentGridType$;H(i,p,b=>t(11,n=b));let h=f.ui.isMobile;H(i,h,b=>t(12,o=b));let v,g,S,w,T=()=>{s(),f.callbacks?.onLogoClicked?.(),a&&window.open(a,"_blank")};function C(b){r=b,t(0,r)}i.$$set=b=>{"ref"in b&&t(0,r=b.ref),"logoClickable"in b&&t(1,l=b.logoClickable),"targetUrl"in b&&t(9,a=b.targetUrl),"click"in b&&t(10,s=b.click)},i.$$.update=()=>{if(i.$$.dirty&6148)e:t(5,w=(o||Pr(n,"l"))&&g)};e:t(3,v=u.logoType==="vk_video"?W("tooltip_vk_video_logo"):W("tooltip_vk_logo"));e:t(2,g=u.logoType==="vk_video");e:t(4,S=u.logoType==="vk_video_mobile");return[r,l,g,v,S,w,p,h,T,a,s,n,o,C]}var xa=class extends q{constructor(e){super(),U(this,e,Xb,Zb,z,{ref:0,logoClickable:1,targetUrl:9,click:10})}},Er=xa;var jd=require("@vkontakte/videoplayer-core");var $a=require("@vkontakte/videoplayer-core");function Jb(i){Ce(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 xb(i){let e,t,n,o,r,l,a,s;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),l=M("path"),a=M("path"),s=M("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(r,"class","wave wave3 svelte-8z1bf5"),c(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(r,"fill","#fff"),c(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(l,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),F(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),F(e,"connecting",i[2])},m(u,f){k(u,e,f),m(e,t),m(t,n),m(t,o),m(t,r),m(t,l),m(t,a),m(t,s)},p(u,f){f&2&&F(s,"hidden",!u[1]),f&4&&F(e,"connecting",u[2])},d(u){u&&y(e)}}}function $b(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q;return{c(){e=M("svg"),t=M("g"),n=M("mask"),o=M("path"),l=M("path"),a=M("path"),u=M("path"),f=M("defs"),p=M("clipPath"),h=M("path"),g=M("filter"),S=M("feFlood"),w=M("feColorMatrix"),T=M("feOffset"),C=M("feGaussianBlur"),b=M("feColorMatrix"),I=M("feBlend"),Q=M("feBlend"),c(o,"fill",r=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(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"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(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"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(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"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(h,"fill",v=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(S,"flood-opacity","0"),c(S,"result","BackgroundImageFix"),c(w,"in","SourceAlpha"),c(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"result","hardAlpha"),c(C,"stdDeviation","2.5"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(I,"in2","BackgroundImageFix"),c(I,"result","effect1_dropShadow_4085_178456"),c(Q,"in","SourceGraphic"),c(Q,"in2","effect1_dropShadow_4085_178456"),c(Q,"result","shape"),c(g,"id","b"),c(g,"x","-3.4"),c(g,"y","-1.4"),c(g,"width","30.8"),c(g,"height","26.802"),c(g,"filterUnits","userSpaceOnUse"),c(g,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(j,G){k(j,e,G),m(e,t),m(t,n),m(n,o),m(n,l),m(t,a),m(t,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,S),m(g,w),m(g,T),m(g,C),m(g,b),m(g,I),m(g,Q)},p(j,G){G&2&&r!==(r=j[1]?"#2688EB":"#fff")&&c(o,"fill",r),G&2&&s!==(s=j[1]?"#2688EB":"#fff")&&c(a,"fill",s),G&2&&v!==(v=j[1]?"#2688EB":"#fff")&&c(h,"fill",v)},d(j){j&&y(e)}}}function e4(i){let e;function t(r,l){return r[0]?$b:xb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),k(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:me,o:me,d(r){r&&y(e),o.d(r)}}}function t4(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===$a.ChromecastState.CONNECTING),t(1,r=o===$a.ChromecastState.CONNECTED)},[n,r,l,o]}var eu=class extends q{constructor(e){super(),U(this,e,t4,e4,z,{isMobile:0,state:3},Jb)}},Gd=eu;var Qd=require("@vkontakte/videoplayer-shared");function i4(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 n4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[i4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 o4(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?W("tooltip_chromecast_on"):W("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var tu=class extends q{constructor(e){super(),U(this,e,o4,n4,z,{ref:0,isMobile:1,state:2,click:3})}},Ar=tu;var Mr=require("@vkontakte/videoplayer-core");function l4(i){let e,t;return e=new ar({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 r4(i){let e,t;return e=new pt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Mr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[l4]},$$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]===Mr.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 s4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=it(),s=a.state.playbackState$;H(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;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,p=()=>{if(!r){u();return}n===Mr.PlaybackState.PAUSED&&f()})},[o,r,l,n,p,s]}var iu=class extends q{constructor(e){super(),U(this,e,s4,r4,z,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Vr=iu;function a4(i){Ce(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 u4(i){let e,t,n,o,r=i[9].default,l=Pe(r,i,i[8],null);return{c(){e=P("div"),t=P("div"),l&&l.c(),c(t,"class","tooltip svelte-5ygsa2"),F(t,"active",i[0]),F(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){k(a,e,s),m(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Te(l,r,a,a[8],o?Ie(r,a[8],s,null):Ee(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);`))&&c(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&y(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:f}=e,p,h;function v(w){if(!h)return 0;let{width:T}=h.getBoundingClientRect(),C=T/2;return w<C?C:w>f-C?f-C:w}function g(w){_e[w?"unshift":"push"](()=>{h=w,t(4,h)})}function S(w){_e[w?"unshift":"push"](()=>{p=w,t(3,p)})}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,f=w.containerWidth),"$$scope"in w&&t(8,r=w.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=v(s))},[l,a,u,p,h,n,s,f,r,o,g,S]}var nu=class extends q{constructor(e){super(),U(this,e,c4,u4,z,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},a4)}},Yd=nu;var Lr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function f4(i){Ce(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?m4:d4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),k(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&&y(e),o.d(r)}}}function d4(i){let e=(i[10].text||"")+"",t;return{c(){t=Re(e)},m(n,o){k(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&je(t,e)},d(n){n&&y(t)}}}function m4(i){let e=W("tooltip_episode_unfinished")+"",t;return{c(){t=Re(e)},m(n,o){k(n,t,o)},p:me,d(n){n&&y(t)}}}function p4(i){let e,t,n,o,r,l,a,s,u=i[10]&&Zd(i);return{c(){e=P("div"),t=P("div"),o=O(),r=P("div"),u&&u.c(),l=O(),a=P("div"),s=Re(i[0]),c(t,"class","preview svelte-l51fc1"),c(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);`),c(r,"class","episode svelte-l51fc1"),c(a,"class","time svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),F(e,"mobile",i[1])},m(f,p){k(f,e,p),m(e,t),m(e,o),m(e,r),u&&u.m(r,null),m(e,l),m(e,a),m(a,s)},p(f,[p]){p&3064&&n!==(n=`width: ${f[3]}px; height: ${f[4]}px; background-image: url(${f[5]}); background-size: ${f[6]}px ${f[7]}px; background-position: ${f[8]}px ${f[9]}px; transform: translateY(${f[11]%180?-35:0}px) rotate(${f[11]}deg);`)&&c(t,"style",n),f[10]?u?u.p(f,p):(u=Zd(f),u.c(),u.m(r,null)):u&&(u.d(1),u=null),p&1&&je(s,f[0]),p&2&&F(e,"mobile",f[1])},i:me,o:me,d(f){f&&y(e),u&&u.d()}}}var rl=150;function _4(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:f=!1}=e,h=it().ui.rotateAlpha;H(i,h,G=>t(11,n=G));let v,g,S,w,T,C,b,I;function Q(){let G=a.frameWidth,le=a.frameHeight;return G>rl?(le=le/G*rl,G=rl):le>rl&&(G=G/le*rl,le=rl),{width:G,height:le}}function j(G){let le;a.isUV?le=Math.floor(u*G/a.frequency):le=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*G)));let se=Math.floor(le/a.countPerImage),V=Math.floor(le%a.countPerImage/a.countPerRow),A=le%a.countPerRow,$=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&se===Math.floor(a.countTotal/a.countPerImage)&&($=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&$++);let J=a.countPerRow;!a.isUV&&se===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(J=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let x=v*J,N=g*$,te=-A*v,E=-V*g;return{imgSrc:a.links[se],imgWidth:x,imgHeight:N,imgOffsetX:te,imgOffsetY:E}}i.$$set=G=>{"time"in G&&t(0,o=G.time),"isMobile"in G&&t(1,r=G.isMobile),"videoEpisodes"in G&&t(13,l=G.videoEpisodes),"previewThumbsData"in G&&t(14,a=G.previewThumbsData),"progress"in G&&t(15,s=G.progress),"duration"in G&&t(16,u=G.duration),"isInteractive"in G&&t(2,f=G.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:S,imgWidth:w,imgHeight:T,imgOffsetX:C,imgOffsetY:b}=j(s),S,(t(6,w),t(15,s)),(t(7,T),t(15,s)),(t(8,C),t(15,s)),(t(9,b),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=Lr(s,u,l))};e:t(3,{width:v,height:g}=Q(),v,t(4,g));return[o,r,f,v,g,S,w,T,C,b,I,n,h,l,a,s,u]}var ou=class extends q{constructor(e){super(),U(this,e,_4,p4,z,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},f4)}},Xd=ou;function h4(i){Ce(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 g4(i){let e,t;return{c(){e=P("span"),t=Re(i[7]),c(e,"class","time svelte-5lzly8")},m(n,o){k(n,e,o),m(e,t)},p(n,o){o[0]&128&&je(t,n[7])},i:me,o:me,d(n){n&&y(e)}}}function b4(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 v4(i){let e,t,n,o,r=[b4,g4],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),k(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(n),l[e].d(s)}}}function y4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[v4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=oe(l,r[a]);return e=new Yd({props:l}),n=new nl({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:W("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:W("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),k(a,t,s),B(n,a,s),o=!0},p(a,s){let u=s[0]&512?Le(r,[Uc(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let f={};s[0]&2048&&(f.isActiveLive=a[11]),s[0]&1024&&(f.isMobile=a[10]),s[0]&2&&(f.ariaValueMax=a[1]),s[0]&64&&(f.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(f.ariaValueText=W("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(f.loadedProgress=a[12]),s[0]&64&&(f.filledProgress=a[6]),s[0]&64&&(f.handleProgress=a[6]),s[0]&8&&(f.videoEpisodes=a[3]),s[0]&8192&&(f.disabled=a[13].has("TIMELINE")),s[0]&4&&(f.hideHandel=a[2]),n.$set(f)},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&&y(t),R(e,a),R(n,a)}}}function k4(i,e,t){let n,o,r,l,a,s,u,f,p,h,v,{showTimeline:g=!1}=e,S=it(),w=Mt(),T=S.state.bufferedProgress$;H(i,T,ae=>t(12,h=ae));let C=S.state.positionWithScrubbing$;H(i,C,ae=>t(39,s=ae));let b=S.state.duration$;H(i,b,ae=>t(1,r=ae));let I=S.state.isLive$;H(i,I,ae=>t(0,o=ae));let Q=S.state.isActiveLive$;H(i,Q,ae=>t(11,p=ae));let j=S.ui.isMobile;H(i,j,ae=>t(10,f=ae));let G=w.features.episodes?S.actions.internal.getVideoEpisodes():void 0,le=S.actions.internal.getPreviewThumbsData(),se=S.state.interactiveEpisodes$;H(i,se,ae=>t(40,u=ae));let V=S.state.isInteractive,A=S.state.isInteractiveTime$;H(i,A,ae=>t(2,l=ae));let $=S.state.isInteractiveExpectation$;H(i,$,ae=>t(38,a=ae));let J=S.actions.internal.correctSeekTimeToInteractive,x=S.ui.controls.disabledControls$;H(i,x,ae=>t(13,v=ae));let N,te,E,Y,Be=!1,We="",qe=0,Je=0,Ne=0,ve;function X(ae){return!J||!V?ae:J(ae*r)/r}function ke(ae){S.actions.internal.startScrubbing(X(ae))}function He(ae){l||S.actions.internal.progressScrubbing(X(ae))}function xe(ae){S.actions.internal.completeScrubbing(X(ae)),t(34,Be=!1)}function et(ae,ne,Se){Ue(ae,ne,Se),t(34,Be=!0)}function we(ae,ne,Se){Ue(ae,ne,Se),t(34,Be=!0)}function Ve(){t(34,Be=!1)}function Ue(ae,ne,Se){t(8,Ne=ae),t(35,qe=ne),Se&&t(36,Je=Se),t(7,We=Ye(ae))}function Ye(ae){let ne=bn((o?1-ae:ae)*r);return o?`-${ne}`:ne}return i.$$set=ae=>{"showTimeline"in ae&&t(33,g=ae.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,N=V?u:G);if(i.$$.dirty[0]&2)e:t(4,te=bn(r));if(i.$$.dirty[1]&256)e:t(5,E=bn(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,Y=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:Je,translateXPx:qe,translateYPx:V&&le?-36:-16,active:Be&&g&&!ve,pointer:!w.features.timelinePreview||!le||o})},[o,r,l,N,te,E,Y,We,Ne,n,f,p,h,v,w,T,C,b,I,Q,j,le,se,V,A,$,x,ke,He,xe,et,we,Ve,g,Be,qe,Je,ve,a,s,u]}var lu=class extends q{constructor(e){super(),U(this,e,k4,y4,z,{showTimeline:33},h4,[-1,-1])}},Jd=lu;function w4(i){let e,t;return e=new nl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:W("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=W("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 C4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=it().ui.isMobile;H(i,a,p=>t(4,n=p));let s,u,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,r=p.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=bn(r));if(i.$$.dirty&64)e:t(2,u=bn(o));if(i.$$.dirty&65)e:t(3,f=o/r)},[r,s,u,f,n,a,o]}var ru=class extends q{constructor(e){super(),U(this,e,C4,w4,z,{position:6,duration:0})}},Br=ru;function S4(i){Ce(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 P4(i){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),F(e,"mobile",i[2])},m(t,n){k(t,e,n)},p(t,n){n&4&&F(e,"mobile",t[2])},i:me,o:me,d(t){t&&y(e)}}}function I4(i){let e,t,n,o,r=[E4,T4],l=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=P("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),F(e,"mobile",i[2])},m(s,u){k(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(e),l[t].d()}}}function T4(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 E4(i){let e,t;return e=new Br({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 A4(i){let e,t,n,o,r=[I4,P4],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),k(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(n),l[e].d(s)}}}function M4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,p=it(),h=p.state.isLive$;H(i,h,T=>t(12,n=T));let v=p.ads.duration;H(i,v,T=>t(4,l=T));let g=p.ads.position;H(i,g,T=>t(3,r=T));let S=p.ui.isMobile;H(i,S,T=>t(2,o=T));let w;return i.$$set=T=>{"isAds"in T&&t(0,a=T.isAds),"canRewindLive"in T&&t(9,s=T.canRewindLive),"isRewindableLive"in T&&t(10,u=T.isRewindableLive),"isHidden"in T&&t(11,f=T.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,w=!f&&(!n||n&&s&&u||a))},[a,w,o,r,l,h,v,g,S,s,u,f,n]}var su=class extends q{constructor(e){super(),U(this,e,M4,A4,z,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},S4)}},Rr=su;var em=require("@vkontakte/videoplayer-shared");function V4(i){let e,t,n,o,r,l=i[2].default,a=Pe(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 f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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(f,p){k(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Te(a,l,f,f[1],r?Ie(l,f[1],p,null):Ee(f[1]),null),be(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"},p&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&y(e),a&&a.d(f)}}}function L4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var au=class extends q{constructor(e){super(),U(this,e,L4,V4,z,{})}},xd=au;function B4(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),be(e,a)},m(s,u){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function R4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var uu=class extends q{constructor(e){super(),U(this,e,R4,B4,z,{})}},$d=uu;function D4(i){Ce(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 N4(i){let e,t,n,o;e=new xd({});function r(s,u){if(s[4]==="FULL")return H4;if(s[4]==="COUNT")return F4}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),k(s,t,u),a&&a.m(s,u),k(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&&(y(t),y(n)),R(e,s),a&&a.d(s)}}}function O4(i){let e,t,n,o,r,l;return r=new $d({}),{c(){e=P("span"),t=Re(i[2]),n=O(),o=P("div"),D(r.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){k(a,e,s),m(e,t),k(a,n,s),k(a,o,s),B(r,o,null),l=!0},p(a,s){(!l||s&4)&&je(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(y(e),y(n),y(o)),R(r)}}}function F4(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Re(t),c(e,"class","text count svelte-1yhs2ga")},m(o,r){k(o,e,r),m(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&je(n,t)},d(o){o&&y(e)}}}function H4(i){let e,t;return{c(){e=P("span"),t=Re(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){k(n,e,o),m(e,t)},p(n,o){o&4&&je(t,n[2])},d(n){n&&y(e)}}}function z4(i){let e,t,n,o,r=[O4,N4],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),k(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(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:[z4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new pt({props:r}),_e.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 U4(i,e,t){let n,o,r,l,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=it(),v=h.callbacks?.onEpisodeChanged??em.noop,g=!!h.callbacks?.onEpisodeClicked,S=h.ui.currentGridType$;H(i,S,V=>t(18,a=V));let w=h.ui.episodes.openedByKeyboard$;H(i,w,V=>t(17,l=V));let T=h.ui.episodes.panelOpened$;H(i,T,V=>t(3,r=V));let C=h.ui.isMobile;H(i,C,V=>t(6,s=V));let b,I=V=>{if(!!h.callbacks?.onEpisodeClicked){let $=xo(V);w.set($),T.set(!0),h.callbacks?.onEpisodeClicked?.($)}},Q,j,G,le=async(V,A,$)=>{await Bn(),V?.getAttribute("aria-expanded")==="false"&&A&&!$&&(w.set(!1),V.focus())};function se(V){b=V,t(1,b)}return i.$$set=V=>{"position"in V&&t(13,u=V.position),"duration"in V&&t(14,f=V.duration),"timeCodes"in V&&t(0,p=V.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/f);if(i.$$.dirty&114689)e:{let V=Lr(n,f,p);V&&Q?.text!==V.text&&(v(V),t(15,Q=V))}if(i.$$.dirty&32768)e:t(2,o=Q?.text||"");if(i.$$.dirty&262144)e:vn(a,"xl")?t(4,j="FULL"):vn(a,"m")&&Md(a,"xl")?t(4,j="COUNT"):t(4,j="SHORT");if(i.$$.dirty&4)e:t(5,G=`${W("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:le(b,l,r)},[p,b,o,r,j,G,s,g,S,w,T,C,I,u,f,Q,n,l,a,se]}var cu=class extends q{constructor(e){super(),U(this,e,U4,q4,z,{position:13,duration:14,timeCodes:0},D4)}},Dr=cu;function K4(i){let e,t,n,o,r=i[2].default,l=Pe(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=M("svg"),l&&l.c(),t=M("path"),n=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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,f){k(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Te(l,r,u,u[1],o?Ie(r,u[1],f,null):Ee(u[1]),null),be(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"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&y(e),l&&l.d(u)}}}function W4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var fu=class extends q{constructor(e){super(),U(this,e,W4,K4,z,{})}},tm=fu;function G4(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 j4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:W("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[G4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 Q4(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 du=class extends q{constructor(e){super(),U(this,e,Q4,j4,z,{ref:0,hidden:1,disabled:2,click:3})}},Nr=du;function Y4(i){let e,t,n,o,r=i[2].default,l=Pe(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=M("svg"),l&&l.c(),t=M("path"),n=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),be(e,s)},m(u,f){k(u,e,f),l&&l.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Te(l,r,u,u[1],o?Ie(r,u[1],f,null):Ee(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&y(e),l&&l.d(u)}}}function Z4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var mu=class extends q{constructor(e){super(),U(this,e,Z4,Y4,z,{})}},im=mu;function X4(i){Ce(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function J4(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 x4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var pu=class extends q{constructor(e){super(),U(this,e,x4,J4,z,{isOpened:0},X4)}},nm=pu;function $4(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 e3(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:[$4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 t3(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(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,r=f.disabled),"graphIsOpened"in f&&t(3,l=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l?W("tooltip_interactive_graph_on"):W("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var _u=class extends q{constructor(e){super(),U(this,e,t3,e3,z,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Or=_u;function i3(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function n3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var hu=class extends q{constructor(e){super(),U(this,e,n3,i3,z,{})}},Fr=hu;var lm=require("@vkontakte/videoplayer-shared");function o3(i){Ce(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=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function l3(i){let e,t,n,o,r=i[1]&&om(i);return n=new Fr({}),{c(){r&&r.c(),e=O(),t=P("div"),D(n.$$.fragment),c(t,"class","svelte-1ot3duq"),F(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),k(l,e,a),k(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&&(y(e),y(t)),r&&r.d(l),R(n)}}}function r3(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:W("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:zn.KeyK,$$slots:{default:[l3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 s3(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 gu=class extends q{constructor(e){super(),U(this,e,s3,r3,z,{ref:0,isMobile:1,disabled:2,className:3,click:4},o3)}},Ml=gu;function a3(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function u3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var bu=class extends q{constructor(e){super(),U(this,e,u3,a3,z,{})}},rm=bu;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 f3(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:W("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 pt({props:r}),_e.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 d3(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 vu=class extends q{constructor(e){super(),U(this,e,d3,f3,z,{ref:0,hidden:1,disabled:2,click:3})}},Hr=vu;var yu=require("@vkontakte/videoplayer-shared");function m3(i){Ce(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 p3(i){let e,t,n,o;return{c(){e=P("img"),c(e,"class","icon svelte-1x1zctw"),hs(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(r,l){k(r,e,l),n||(o=pe(e,"error",i[7]),n=!0)},p(r,l){l&1&&!hs(e.src,t=r[0])&&c(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function _3(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){k(t,e,n)},p:me,d(t){t&&y(e)}}}function h3(i){let e;function t(r,l){return r[5]?_3:p3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),k(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&&y(e),o.d(r)}}}function g3(i){let e,t;return e=new pt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[h3]},$$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 b3(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=yu.noop}=e,p=()=>{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,f=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=f===yu.noop);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,r=!1);return[l,a,u,f,n,r,o,p,s]}var ku=class extends q{constructor(e){super(),U(this,e,b3,g3,z,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},m3)}},zr=ku;var Vm=require("@vkontakte/videoplayer-shared");var tn=require("@vkontakte/videoplayer-core"),bE=require("@vkontakte/videoplayer-shared"),ct=require("@vkontakte/videoplayer-shared"),Xn=require("@vkontakte/videoplayer-statistics"),vE=require("@vkontakte/videoplayer-interactive");var Pt=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 v3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",qr=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 Pt.Subject,started$:new Pt.Subject,paused$:new Pt.Subject,resumed$:new Pt.Subject,ended$:new Pt.Subject,skipped$:new Pt.Subject,clicked$:new Pt.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Pt.addScript)(v3,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,Pt.assertNonNullable)(this.adsState),(0,Pt.assertNonNullable)(this.playerState),(0,Pt.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,Pt.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Pt.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Pt.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Pt.assertNonNullable)(this.adman),(0,Pt.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,v=this.playerState&&tt(this.playerState.vsid);v&&(h=parseInt(v,36));let g={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:sm(t,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u},S={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:g,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,Pt.assertNonNullable)(this.actions),(0,Pt.assertNonNullable)(this.adsState),(0,Pt.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,Pt.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){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){(0,Pt.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Pt.assertNonNullable)(this.adman),(0,Pt.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Pt.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Pt.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Pt.assertNonNullable)(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}};var 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 wu=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 Ur,{startTime:u,endTime:f}=s.parse(a);r.startTime=u,r.endTime=f}else if(a.trim()!==""){let s=new Cu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},Ur=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}},Cu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((f,p)=>{let h=l.indexOf(p,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new Ur;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=wu;var Kr=require("@vkontakte/videoplayer-shared"),fo,In,Su=0,Pu=!1,cm=(i,e,t)=>{let n=i>=Su,o=i<Su,r=(u,f=0,p=0)=>u<f&&u<p,l=(u,f=0,p=0)=>u>=f&&u<=p,a=(u,f=0,p=0)=>u>f&&u>p,s=t.find(({lang:u})=>u===e.value)?.subtitles;if(Su=i,o&&(Pu=!1),(0,Kr.isNonNullable)(fo)&&l(i,fo.startTime,fo.endTime)&&fo.lang===e.value)return fo;if(!(0,Kr.isNonNullable)(In)&&s?.length&&!Pu){let u=s.find(({startTime:f,endTime:p})=>l(i,f,p)||n&&r(i,f,p));In=u&&{...u,lang:e.value},fo=void 0,!(0,Kr.isNonNullable)(In)&&s[s.length-1].endTime<i&&(Pu=!0);return}else{if(l(i,In?.startTime,In?.endTime))return fo=In,In=void 0,fo;(n&&a(i,In?.startTime,In?.endTime)||o&&r(i,In?.startTime,In?.endTime))&&(In=void 0)}};var Wr={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 fm=require("@vkontakte/videoplayer-shared"),dm=require("@vkontakte/videoplayer-statistics"),Gr=class{constructor(e,t){this.oneStat=new dm.OneStat(e,t),this.statSubscription=new fm.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:f,uiConfig:p,coreConfig:h,player:v,disabledControls:g,isInteractive:S,interactiveRanges$:w,isInteractiveTime$:T,replayInteractive:C,hasInteractiveBranches:b,playPrevChapterDisabledTooltip:I,additionalButtons:Q,looped:j=!1,statistics:G,saveRate:le})=>{let se={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:r,live:{...h.live??{},isLiveCatchUpMode:!!n}},V=p,A=v||new tn.Player(se),$=new ct.Logger,J=new qr($,{loadTimeout:V.ads.loadTimeout,initTimeout:V.ads.initTimeout}),x=Po.getInstance(),N=s?.pictureInPictureApi,te=s?.annotationsApi,E=$.createComponentLog("Store"),Y,Be,We={},qe=(0,ct.getCurrentBrowser)(),Je=G?kt(G.oneStat.vsid$):Cn(void 0),Ne=De(lo()),ve=N?.info.isActive$??new ct.ValueSubject(!1),X=N?.info.type,ke=De(0),He=De([]),xe=(0,ct.merge)(A.events.fatalError$,A.events.managedError$).subscribe(L=>He.update(de=>[...de,L])),et=Cn(!1,L=>{let de=A.events.fatalError$.subscribe(()=>L(!0));return()=>de.unsubscribe()}),we=async L=>{let de=Object.values(ct.InterfaceLanguage).includes(L);if(V.downloadVKLanguages&&(de&&V.updateBuiltinLanguages||!Es(L))){let Ge;try{Ge=await(0,ct.loadVKLangPack)(L,Qc,Yc)}catch(st){G?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),x?.report(st,{errorType:"VKLangPack",fatal:!1})}Ge&&(Ts({language:L,pack:Ge,fallback:V.defaultLanguage}),Ve.set(L))}Es(L)&&Ve.set(L)},Ve=De(i);we(i);let Ue=(L,de)=>{let Me=tt(Ve);return As(Me,L,de,V.defaultLanguage)},Ye=De("thumb"),ae=(()=>{let L=Ti([et,Ye],([de,Me])=>de?"crashed":Me);return{...L,is:de=>tt(L)===de}})(),ne=(()=>{let L=De(new Set(g));return{...L,add:de=>{L.update(Me=>new Set([...Me].concat(de)))},remove:de=>{L.update(Me=>{let Ge=[...Me];return new Set(Array.isArray(de)?Ge.filter(st=>!de.includes(st)):Ge.filter(st=>st!==de))})},includes:de=>{let Me=tt(L);return Array.isArray(de)?de.every(Ge=>Me.has(Ge)):Me.has(de)}}})();E({message:"create store"});let Se=L=>{let de=L.container;de.append(A.experimental.element$.getValue()),ye=new MutationObserver(Me=>{let{removedNodes:Ge}=Me[0];Ge.length&&de.append(A.experimental.element$.getValue())}),ye.observe(de,{childList:!0})},fe=L=>{E({message:`init video, config: ${JSON.stringify(L)}`}),S?Se(L):A.initVideo(L),L.subtitles&&A.setExternalTextTracks(L.subtitles),Y=L},Ae=new ct.Subject,Xe=L=>Ae.next(L),at=new ct.Subject,ft=new ct.Subject,ut=new ct.Subject,ye=null,$e={actionRewind$:at,actionSeek$:ft,inPiP$:ve,inFullscreen$:new ct.Observable(L=>Ne.subscribe(de=>L.next(de))),actionSetSubtitle$:ut,nextMovie$:Ae};if(G){let{oneStat:L,statSubscription:de}=G;de.add(L.attachTo(A)),de.add(L.attachToUi($e)),de.add(L.attachToAds(J.events)),L.authorize(o).catch(Me=>{E({message:`onestat auth error ${String(Me)}`})})}if(x){let L=new ct.Subscription,de=(Me,Ge)=>L.add(Me.subscribe(Ge));if(de(A.events.managedError$,Me=>{x.logIError(Me)}),de(A.events.fatalError$,Me=>{x.logIError(Me,!0)}),G){let{oneStat:Me}=G;de(Me.experimental.error$,Ge=>{x.logIError(Ge)})}x.sentrySubscription.add(L)}let _t=()=>{(0,ct.isIOS)()&&Be&&Tf(Be)},bt=new ct.Subscription().add(A.experimental.element$.subscribe(L=>{L&&(Be=L,L.classList.add("player-media"),To(N)&&(N.updateVideoElement(),N.registryEventHandlers()),S&&L.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{_t(),a?.onEnded?.()})).add(A.events.started$.subscribe(async()=>{To(N)&&await N?.revealPictureInPicture();let L=A.info.muted$.getValue();a?.onStarted?.(),We.onStarted?.(L)})).add(A.events.willSeek$.subscribe(({from:L,to:de})=>{a?.onSeek?.(L,de)})).add(A.info.position$.subscribe(L=>{let de=A.info.duration$.getValue();a?.onTimeupdate?.(de,L),J.setPosition(L,de)})).add(A.events.fatalError$.subscribe(()=>{a?.onCrashed?.()})).add(A.events.firstBytes$.subscribe(()=>{K.state.isFirstBytes$.set(!0)})).add(A.info.is3DVideo$.subscribe(L=>{K.ui.is3DVideo.set(L)})).add(A.info.isEnded$.subscribe(L=>{S&&(L?(T?.getValue()&&ne.add(Ql),ne.add("PLAY_BUTTON")):ne.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(L=>{a?.onLiveTime?.(L)})).add(A.info.isStalled$.subscribe(L=>{a?.onStalledChanged?.(L)})),vt=new ct.Subscription,Vt=()=>{vt.add(A.events.log$.subscribe(L=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${L.component}`,L.message)})).add($.log$.subscribe(L=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${L.component}.`,L.message)}))},Ke=()=>{vt.unsubscribe()},Qt=(L,de)=>{A.startCameraManualRotation(L,de)},Nt=(L=!1)=>{A.stopCameraManualRotation(L)},he=(L,de,Me)=>{A.moveCameraFocusPX(L,de,Me)},Et=()=>{A.holdCamera()},Ze=()=>{A.releaseCamera()},mt=Cn(A.info.position$.getValue(),L=>{let de,Me,Ge=()=>{let st=A.info.playbackState$.getValue(),qt=A.info.isLive$.getValue(),ei=A.info.duration$.getValue(),Ut=A.info.position$.getValue();if([tn.PlaybackState.PLAYING,tn.PlaybackState.PAUSED].includes(st)){let cn=qt?Ut-ei:A.getExactTime();cn!==Me&&L(cn),Me=cn}de=requestAnimationFrame(Ge)};return Ge(),()=>cancelAnimationFrame(de)}),ht=kt(ve),gt=kt(A.info.playbackState$),Lt=kt(A.info.currentBuffer$),Oi=kt(A.info.isEnded$),fi=kt(A.info.isLive$),Yi=V.features.playbackRate?kt(A.info.canChangePlaybackSpeed$):Cn(!1),on=kt(A.info.liveBufferTime$),di=kt(A.info.volume$),mi=kt(A.info.muted$),Ei=ws(A.info.autoQualityLimits$.pipe((0,ct.map)(({max:L})=>L!==void 0)),A.info.autoQualityLimits$.getValue()?.max!==void 0),Yt=kt(A.info.autoQualityLimitingAvailable$),pi=kt(A.info.availableQualities$),ln=kt(A.info.availableQualitiesFps$),_i=kt(A.info.chromecastState$),Fi=kt(A.info.chromecastDeviceName$),ti=kt(A.info.currentFormat$),Ai=kt(A.info.throughputEstimation$),hi=kt(A.info.videoBitrate$),Hi=kt(A.info.intrinsicVideoSize$),gi=kt(A.info.duration$),ii=kt(A.info.isAudioAvailable$),Tt=null,Ot=A.info.isBuffering$,bi=Cn(Ot.getValue(),L=>{let de=Ot.subscribe(Me=>{Me&&Tt===null?Tt=window.setTimeout(()=>{L(Ot.getValue()),Tt=null},V.loaderDelay):L(Me)});return()=>{de.unsubscribe(),Tt&&clearTimeout(Tt)}}),vi=()=>{Tt&&clearTimeout(Tt),Tt=null},Ft=Ti([gi,fi],([L,de])=>de?-L:L),ni=Ti([gt],([L])=>L===tn.PlaybackState.PLAYING),oi=kt(A.info.atLiveEdge$),Bt=kt(A.info.atLiveDurationEdge$),At=kt(A.info.position$),Kt=Ti([At,gi],([L,de])=>isFinite(L)&&isFinite(de)&&!!de),Mi=Ti([_i],([L])=>L===tn.ChromecastState.CONNECTED),Zt=De(void 0),rn=kt(A.info.isAutoQualityEnabled$,L=>L&&Zt.set(void 0)),sn=kt(A.info.currentQuality$,()=>Zt.set(void 0)),Wt=Ti([Zt,sn],([L,de])=>L??de),yi=Ti([pi,ln,rn,Wt,ti],([L,de,Me,Ge,st])=>{let qt=[];st!==tn.VideoFormat.MPEG&&qt.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:Me});let ei=L.filter(Ut=>Ut!==ct.VideoQuality.INVARIANT);for(let Ut of ei){let cn=de[Ut],io=Ut===ct.VideoQuality.INVARIANT?Ue("auto_quality_option"):Ut;qt.push({value:Ut,displayValue:`${io}${cn?am(cn):""}`,selected:Me?!1:Ut===Ge})}return qt}),zi=kt(A.info.currentPlaybackRate$),ki=Ti([zi,oi,Bt],([L,de,Me])=>{let Ge=Me||S?1:V.controls.playbackRateMin,st=de?1:V.controls.playbackRateMax,qt=V.controls.playbackRateStep,ei=[];for(let Ut=Ge;Ut<=st;Ut+=qt)ei.push({value:Ut,displayValue:Ut===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:Ut.toString(10)}),selected:L===Ut});return ei}),li=V.features.subtitles?kt(A.info.availableTextTracks$):Cn([]),Ht=Ti([li],([L],de)=>{let Me=[],Ge=[];for(let st of L)st.url&&Me.push(fetch(st.url));Promise.allSettled(Me).then(st=>{for(let[qt,ei]of st.entries())ei.status==="fulfilled"&&ei.value.text().then(Ut=>{let cn=new um,io=L[qt].language,_l=!!L[qt].isAuto,hl=cn.parse(Ut);io&&hl&&Ge.push({lang:io,subtitles:hl,isAuto:_l}),qt===st.length-1&&de(Ge)})})}),Gt={displayValue:Ue("subtitles_off"),value:"off"},wi=De({...Gt}),Xt=Ti([Ht,wi,Ht],([L,de])=>{if(L?.length>0){let Me=[{...Gt,selected:de?.value===Gt.value}];for(let{lang:Ge,isAuto:st}of L)Wr[Ge]&&Me.push({displayValue:st?Ue("subtitles_auto",{language:Wr[Ge]}):Wr[Ge],value:Ge,selected:de?.value===Ge,isAuto:st});return Me}else return[]}),Zi=Ti([mt,wi,Ht],([L,de,Me])=>{if(de&&de.value!==Gt.value)return cm(L,de,Me)}),Ci=Ti([Zi],([L])=>L?.texts?L.texts:[]),an=De(!0),un=Ti([Lt,Ft,At,on],([L,de,Me,Ge])=>{let st=L?.end??0;if(!Ge)return st/de;let ei=-Me+Ge-de;return(st-ei)/de}),Xi=kt(A.info.availableSources$),qi=Ti([Xi],([L])=>Object.keys(L?.[tn.VideoFormat.MPEG]||{}).length>0),Vi=()=>{let L=Object.keys(A.info.availableSources$?.getValue()?.[tn.VideoFormat.MPEG]||{}),de=(0,ct.getHighestQuality)(L)||ct.VideoQuality.Q_144P;return Y.sources[tn.VideoFormat.MPEG]?.[de]},jt=()=>{let L=Vi();L?sf(L,Y?.meta?.title||"video"):E({message:"There is no URL for download video"})},ri=()=>{E({message:"toggle muted"});let L=A.info.muted$.getValue(),Ge=!(A.info.volume$.getValue()===0||L);Bi(Ge)},Si=()=>{K.ui.settingsMenuVisible.set(!1)},Li=L=>{K.ui.settingsMenuOpenedByKeyboard.set(!!L),K.ui.settingsMenuVisible.set(!0)},Ji=L=>{tt(K.ui.settingsMenuVisible)?Si():Li(L)},Pi=(L,de=L,Me=!1)=>{let Ge=!Me,st=A.info.muted$.getValue();E({message:`set volume, volume: ${L}, preferredVolume: ${de}, internalCall: ${Ge}`}),A.setVolume(L),J.setVolume(L),Ge&&a?.onVolumeChange?.(L),Ss(de),st?(A.setMuted(!1),Ge&&a?.onUnmute?.(),Jl(!1)):!st&&L===0&&(A.setMuted(!0),Ge&&a?.onMute?.(),Jl(!0))},Bi=(L,de=!1)=>{let Me=!de,Ge=A.info.volume$.getValue();if(E({message:`set muted, currentVolume: ${Ge}, mute: ${L}, internalCall: ${Me}`}),A.setMuted(L),J.setVolume(L?0:Ge),Jl(L),Me&&(L?a?.onMute?.():a?.onUnmute?.()),Ge===0){let st=Xl()??V.volumeDefault;st===0&&(st=V.volumeMinRestore,Ss(st)),A.setVolume(st),J.setVolume(st),Me&&a?.onVolumeChange?.(st)}},Ri=De(!1),Qe=L=>{Ri.set(L),A.setLooped(L)};Qe(j);let Ui=()=>{A.prepare()},zt=()=>{if((0,ct.assertNonNullable)(K),!tt(K.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(E({message:"toggle play"}),tt(K.playerPhase)==="ads"){J.togglePlay();return}if(A.info.playbackState$.getValue()!==tn.PlaybackState.PLAYING){if(A.info.isEnded$.getValue()){if(E({message:"toggle play, video ended, seek to 0"}),at.next(),ft.next(Xn.SeekAction.REWIND),S){C?.();return}A.seekTime(0)}E({message:"toggle play, call player.play"}),A.play(),a?.onPlay?.()}else E({message:"toggle play, call player.pause"}),A.pause(),a?.onPause?.()}},ze=L=>{E({message:`set quality, quality: ${L}`}),A.setAutoQuality(L==="auto"),L!=="auto"?(mf(e,L),Zt.set(L),A.setQuality(L)):Ps()},xi=L=>{E({message:`set trafficSavingEnabled, value: ${L}`}),A.setAutoQualityLimits({max:L?V.trafficSavingLimit:void 0}),bf(L)},Di=L=>{A.info.isLive$.getValue()||(A.setPlaybackRate(L),V.features.saveRate&&le&&yf(L))},Ki=()=>{let L=tt(ki),de=L.findIndex(({selected:Ge})=>Ge);if(de===L.length-1)return;let Me=L[de+1];Di(Me.value)},$i=()=>{let L=tt(ki),de=L.findIndex(({selected:Ge})=>Ge);if(de===0)return;let Me=L[de-1];Di(Me.value)},Wi=L=>{L&&L.value!==Gt.value&&ut.next(L.isAuto?L.value+"_auto":L.value),wi.set(L)},_n=()=>{let L=tt(Xt),de=tt(wi),Me=tt(Ve);if(de?.value===Gt.value){let Ge=L.filter(st=>st.value!==Gt.value).find(st=>st.value===Me)||L[1];Wi(Ge??{...Gt})}else Wi({...Gt,selected:!1})},Jt=(L,de,Me=!0)=>{if(E({message:`seek to time, time: ${L}`}),ft.next(de),A.info.isLive$.getValue()){let Ge=A.info.duration$.getValue(),st=Math.min(0,Ge+L);A.seekTime(st,Me)}else{if(T?.getValue())return;A.seekTime(ho(L),Me)}},xt=L=>{E({message:`seek to episode start time: ${L}`}),Jt(L,Xn.SeekAction.EPISODE,!0)},Gi=(L,de)=>{E({message:`seek to percent, percent: ${L}`});let Me=Math.round(tt(Ft)*L);Jt(Me,de,!1)},si=L=>{E({message:`seek external, time: ${L}`}),ft.next(Xn.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-L:L)},re=L=>{E({message:`set auto quality limitation. Max: ${L.max??"none"}. Min: ${L.min??"none"}`}),A.setAutoQualityLimits(L)},dt=L=>{E({message:`seek external to episode start time: ${L}`}),Jt(L,Xn.SeekAction.EPISODE,!0)},ai=L=>{E({message:`set playback rate to: ${L}`}),A.setPlaybackRate(L)},ui=De(void 0),$t=De(!1),ji=L=>{E({message:`start scrubbing, progress: ${L}`}),$t.set(!0),Tn(L)},Tn=L=>{ui.set(L)},yn,hn,Rt=()=>{ui.set(void 0),$t.set(!1)},kn=()=>{clearTimeout(hn),clearTimeout(yn),yn=window.setTimeout(()=>{Rt()},500),Be?.removeEventListener("seeked",kn)},Nn=L=>{E({message:`complete scrubbing, progress: ${L}`}),Gi(L,Xn.SeekAction.SLIDER),tt(K.ui.isMobile)&&tt(K.state.currentFormat$)===tn.VideoFormat.HLS?(Be?.addEventListener("seeked",kn),hn=window.setTimeout(()=>{kn()},300)):Rt()},En=Ti([mt,Ft,ui],([L,de,Me],Ge)=>{Ge((0,ct.isNonNullable)(Me)?Me*de:L)}),An=De({width:0,height:0}),wn=Ti([An],([{width:L}],de)=>{let Me=Vd(L);de(Me)}),en=De(!1),ie=Ti([wn,en],([L,de])=>de?Q.filter(Me=>!Me.hideOnMobile):Q.filter(Me=>!Me.hideOnDesktopGridTypes?.includes(L))),wt=Ti([en,et],([L,de],Me)=>{Me(L&&de)}),Mn=()=>{ft.next(Xn.SeekAction.LIVE),E({message:"switch to active live"}),A.seekTime(0),A.info.playbackState$.getValue()!==tn.PlaybackState.PLAYING&&K.actions.internal.togglePlay()},On=()=>J.skip(),Fn=(L=!0)=>{(0,ct.assertNonNullable)(K),E({message:`switch from ads to video, callPlay: ${L}`}),Ye.set("video"),L&&A.play()},Jn=()=>{(0,ct.assertNonNullable)(K),E({message:"switch from video to ads"}),K.actions.internal.pause(),_t(),Ye.set("ads")},xn=L=>{(0,ct.assertNonNullable)(K);let de=L?"waitingLive":"thumb";Ye.set(de)},$n=L=>{(0,ct.assertNonNullable)(K);let de=L?"waitingRecord":"thumb";Ye.set(de)},eo=()=>((0,ct.assertNonNullable)(K),lf(A,Y,K)),to=()=>((0,ct.assertNonNullable)(K),rf(A,Y,K)),po=()=>Be,ee=()=>{E({message:"toggle chromecast"}),A.toggleChromecast()},mn=L=>{(0,ct.assertNonNullable)(K);let de=!L;if(tt(K.playerPhase)==="ads"){E({message:`pause ads, internalCall: ${de}`}),J.pause();return}E({message:`pause video, internalCall: ${de}`}),de&&a?.onPause?.(),A.pause()},Ro=L=>{(0,ct.assertNonNullable)(K);let de=!L;if(tt(K.playerPhase)==="ads"){E({message:`play ads, internalCall: ${de}`}),J.play();return}E({message:`play video, internalCall: ${de}`}),de&&a?.onPlay?.(),A.play()},Do=(L,de)=>{(0,ct.assertNonNullable)(K),E({message:`first start, show ads: ${L}, internalCall: ${!de}`}),L?Ye.set("ads"):(Ye.set("video"),de?A.play():K.actions.internal.togglePlay())},Wn=()=>(E({message:"getting time codes"}),u),_o=()=>{let L=Wn();if(!L||[0,1].includes(L.length))return;let de=A.info.position$.getValue();return L.find(Me=>Me.time>de)},Gn=L=>{let de=L;de||(de=_o()),de&&(E({message:"seek to next episode"}),Jt(de.time,Xn.SeekAction.EPISODE,!0))},jn=()=>{let L=Wn();if(!L||[0,1].includes(L.length))return;let de=A.info.position$.getValue(),Me=L.findIndex(st=>st.time>de),Ge=Me===-1?L.length-2:Me-2;if(!(Ge<0))return L[Ge]},No=L=>{let de=L;de||(de=jn()),de&&(E({message:"seek to prev episode"}),Jt(de.time,Xn.SeekAction.EPISODE,!0))},Oo=()=>(E({message:"getting preview thumbs data"}),f),pl=async()=>{N?.isActive()?await N?.remove():await N?.request()},Fo=(L=-90)=>{ke.update(de=>de+L)},Hn=De([]);w?.subscribe(L=>{let de=[];for(let Me=0;Me<L.length;Me++){let{range:[Ge,st],subjects:qt}=L[Me];Me===0&&Ge!==0&&de.push({time:0,text:"",interactive:!1,completed:!0}),de.push({time:Ge/1e3,text:"",interactive:!0,completed:!qt.length}),st!==1/0&&de.push({time:st/1e3,text:"",interactive:!1,completed:!0})}Hn.set(de)});let Ho=De(!1);T?.subscribe(L=>{L&&tt($t)&&Rt()});let ho=L=>{if(!S)return L;let de=tt(Hn),Me=tt(Ft),st=tt(At)/Me,qt=de.find(ei=>ei.interactive&&!ei.completed&&ei.time>st);return typeof qt?.time=="number"?Math.min(L,qt.time-.05):L},go=()=>{K.ui.episodes.panelOpened$.set(!1)},zo=()=>{clearTimeout(hn),clearTimeout(yn),bt.unsubscribe(),vt.unsubscribe(),A.destroy(),J.destroy(),G?.destroy(),x?.destroy(),xe.unsubscribe(),ye?.disconnect(),ye=null},K={interfaceLanguage$:Ve,initVideo:fe,videoId:e,isClip:t,playerPhase:ae,vsid:Je,state:{positionExact$:mt,positionWithScrubbing$:En,duration$:Ft,playbackState$:gt,isPlaying$:ni,isLoaderVisible:bi,bufferedProgress$:un,isLive$:fi,canChangePlaybackSpeed$:Yi,isActiveLive$:oi,isOldestAvailableLive$:Bt,isRewindableLive$:Kt,isEnded$:Oi,muted$:mi,volume$:di,trafficSavingEnabled$:Ei,autoQualityLimitingAvailable$:Yt,currentQuality$:Wt,isAutoQualityEnabled$:rn,availableQualities$:yi,currentPlaybackRate$:zi,availablePlaybackRates$:ki,currentSubtitle$:wi,availableSubtitlesList$:Xt,currentSubtitleCaptions$:Ci,isAutoSubtitleCaptionVisible$:an,chromecastState$:_i,chromecastDeviceName$:Fi,chromecastConnected$:Mi,currentFormat$:ti,throughputEstimation$:Ai,videoBitrate$:hi,videoSize$:Hi,errorLog$:He,crashed$:et,isAudioAvailable$:ii,isAudioDisabled:!!r,canDownload:V.features.download&&!!l,availableSources$:Xi,hasMpegSources$:qi,isInteractive:S,showInteractiveGraph:V.features.interactiveGraph,showSeekToInteractive:V.features.seekToInteractive,showPlayPrevChapter:V.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:V.features.interactiveTimeIndicator&&!!tt(Hn).length,interactiveEpisodes$:Hn,isInteractiveTime$:T?kt(T):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:Ho,hasInteractiveBranches:b,playPrevChapterDisabledTooltip:I,looped$:Ri,isFirstBytes$:De(!1)},ui:{controlsVisible:De(!1),touched:De(!1),controls:{prevButton:De(void 0),playButton:De(void 0),replayButton:De(void 0),nextButton:De(void 0),playPrevChapterButton:De(void 0),seekToInteractiveButton:De(void 0),interactiveGraphButton:De(void 0),liveButton:De(void 0),time:De(void 0),episodes:De(void 0),volume:De(void 0),subtitles:De(void 0),settings:De(void 0),context:De(void 0),chromecast:De(void 0),pip:De(void 0),fullscreen:De(void 0),vkLogo:De(void 0),interactiveTimeIndicator:De(void 0),additionalButtons:Q.length?Q.reduce(L=>[...L,De(void 0)],[]):[],disabledControls$:ne},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ne,rotateAlpha:ke,isAutoplay:De(!1),debugPanelVisible:De(!1),episodes:{panelOpened$:De(!1),openedByKeyboard$:De(!1)},contextMenu:{visible$:De(!1),btnRef$:De(void 0),openedByBtnKeyboard$:De(!1),openedByHotKey$:De(!1),lastActiveElem$:De(void 0),showContextMenuBtn$:De(!1),position$:De({top:0,left:0})},playerSize:An,isMobile:en,mobileNotReportControlHidden$:wt,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:$t,is3DVideo:De(!1),isPictureInPictureActive$:ht,pictureInPictureType$:Cn(X),clientInfo$:Cn(qe),currentGridType$:wn,additionalButtons$:ie,interactiveHideMobileControls:De(!1),overlayContainer$:De(void 0),startedByKeyboard$:De(!1)},ads:{position:De(0),duration:De(0),playbackState:De("inactive"),canSkip:De(!1),secondsToWatchBeforeSkip:De(0),postrollPassed:De(!1)},webApi:{pictureInPictureApi:N,annotationsApi:te},actions:{internal:{preload:Ui,firstStart:L=>Do(L,!1),pause:()=>mn(!1),togglePlay:zt,toggleMuted:ri,toggleSettingsMenu:Ji,openSettingsMenu:Li,closeSettingsMenu:Si,setVolume:Pi,setQuality:ze,setTrafficSavingEnabled:L=>xi(L),setPlaybackRate:Di,incrementPlaybackRate:Ki,decrementPlaybackRate:$i,setSubtitle:Wi,toggleSubtitle:_n,togglePictureInPicture:pl,startScrubbing:ji,progressScrubbing:Tn,completeScrubbing:Nn,toggleChromecast:ee,switchToActiveLive:Mn,switchFromAdsToVideo:Fn,switchFromVideoToAds:Jn,skipAd:On,setWaitingLive:xn,setWaitingRecord:$n,getDebugTextData:eo,getDebugPanelData:to,getVideoElement:po,seekTime:(L,de,Me)=>Jt(L,de,Me),clearDelayedBufferingCheckTimeout:vi,seekEpisodeStartTime:xt,seekToPercent:Gi,getNextEpisode:_o,seekToNextEpisode:Gn,getPrevEpisode:jn,seekToPrevEpisode:No,startLogging:Vt,stopLogging:Ke,startCameraManualRotation:Qt,stopCameraManualRotation:Nt,moveCameraFocusPX:he,holdCamera:Et,releaseCamera:Ze,getVideoEpisodes:Wn,getPreviewThumbsData:Oo,downloadVideo:jt,addLanguage:Ts,setLanguage:we,nextMovie:Xe,videoRotate:Fo,correctSeekTimeToInteractive:ho,replayInteractive:C,setLooped:Qe},external:{firstStart:L=>Do(L,!0),play:()=>Ro(!0),pause:()=>mn(!0),seekTime:L=>si(L),seekEpisodeStartTime:L=>dt(L),setPlaybackRate:L=>ai(L),setAutoQualityLimits:L=>re(L),setMuted:L=>Bi(L,!0),setVolume:L=>Pi(L,L,!0),returnFocusToEpisodes:go}},callbacks:a,setUiCallbacks:L=>{We={...L}},getAdmanWrapper:()=>J,getLogger:()=>$,destroy:zo};return K};var Qr=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||r.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-l.left):0,right:f?Math.round(u.right-l.left):0,top:f?Math.round(u.top-l.top):0,bottom:f?Math.round(u.bottom-l.top):0,isDisplayed:f})}};var Yr=async(i,e,t)=>{await Bn(),e&&t&&(t.focus(),i.set(!1))};function k3(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function w3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Iu=class extends q{constructor(e){super(),U(this,e,w3,k3,z,{})}},pm=Iu;function C3(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 S3(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:[C3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new pt({props:r}),_e.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 P3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=it(),a=l.ui.contextMenu.visible$;H(i,a,T=>t(3,n=T));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.position$,p=l.ui.contextMenu.btnRef$,h,v=T=>{let C=xo(T),b=jf(h);f.set(b),s.set(C),a.set(!n)},g=()=>{u.set(!0)},S=()=>{u.set(!1)};function w(T){h=T,t(2,h)}return i.$$set=T=>{"disabled"in T&&t(0,o=T.disabled),"ariaLabel"in T&&t(1,r=T.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&p.set(h)},[o,r,h,n,a,v,g,S,w]}var Tu=class extends q{constructor(e){super(),U(this,e,P3,S3,z,{disabled:0,ariaLabel:1})}},_m=Tu;function I3(i){Ce(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function T3(i){let e,t;return e=new Sr({props:{completed:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E3(i){let e,t,n,o,r,l,a,s,u,f;function p(v){i[22](v)}let h={tooltipContent:W("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[T3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new It({props:h}),_e.push(()=>Fe(t,"ref",p)),t.$on("click",i[14]),{c(){e=P("div"),D(t.$$.fragment),o=O(),r=P("div"),l=O(),a=P("div"),c(r,"class","ref-block svelte-17imlp9"),F(r,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),F(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),F(e,"mobile",i[2]),F(e,"fullscreen",i[6]),F(e,"invisible",i[1])},m(v,g){k(v,e,g),B(t,e,null),m(e,o),m(e,r),i[23](r),m(e,l),m(e,a),i[24](a),s=!0,u||(f=[pe(e,"mousemove",rt(i[21])),pe(e,"mouseleave",i[15])],u=!0)},p(v,g){let S={};g[0]&32&&(S.tooltipActive=v[5]),g[1]&1&&(S.$$scope={dirty:g,ctx:v}),!n&&g[0]&1&&(n=!0,S.ref=v[0],Oe(()=>n=!1)),t.$set(S),(!s||g[0]&2)&&F(r,"hidden",v[1]),(!s||g[0]&16)&&F(a,"paused",v[4]),(!s||g[0]&4)&&F(e,"mobile",v[2]),(!s||g[0]&64)&&F(e,"fullscreen",v[6]),(!s||g[0]&2)&&F(e,"invisible",v[1])},i(v){s||(d(t.$$.fragment,v),s=!0)},o(v){_(t.$$.fragment,v),s=!1},d(v){v&&y(e),R(t),i[23](null),i[24](null),u=!1,nt(f)}}}function A3(i,e,t){let n,o,r,l,a,s,{ref:u=void 0}=e,f,p=it(),h=Sn(),{interactiveControlsOpacity$:v}=h;H(i,v,Y=>t(18,o=Y));let g=p.ui.isMobile;H(i,g,Y=>t(2,a=Y));let S=p.ui.isFullscreen;H(i,S,Y=>t(6,s=Y));let w=p.state.isInteractiveTime$;H(i,w,Y=>t(19,r=Y));let T=h.showInteractiveTimeIndicatorTooltip$;H(i,T,Y=>t(17,n=Y));let C=p.ui.controlsVisible;H(i,C,Y=>t(20,l=Y));let b=p.callbacks?.onInteractiveTimeIndicatorClick,I,Q,j,G=()=>{t(4,j=!0)},le=()=>{se(),f?.addEventListener("animationiteration",G,{once:!0})},se=()=>{t(4,j=!1),f?.removeEventListener("animationiteration",G)},V=Y=>{T.set(Y)},A,$=()=>{Q||(T.set(!0),b?.())};Ln(()=>{T.clearTimeout(),se()});let J=()=>{T.set(!1)};function x(Y){gn.call(this,i,Y)}function N(Y){u=Y,t(0,u)}function te(Y){_e[Y?"unshift":"push"](()=>{u=Y,t(0,u)})}function E(Y){_e[Y?"unshift":"push"](()=>{f=Y,t(3,f)})}return i.$$set=Y=>{"ref"in Y&&t(0,u=Y.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,I=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,Q=!r||!!o||I);if(i.$$.dirty[0]&2)e:t(4,j=Q);if(i.$$.dirty[0]&131074)e:t(5,A=n&&!Q);if(i.$$.dirty[0]&131072)e:n?le():se()},[u,Q,a,f,j,A,s,v,g,S,w,T,C,V,$,J,I,n,o,r,l,x,N,te,E]}var Eu=class extends q{constructor(e){super(),U(this,e,A3,E3,z,{ref:0},I3,[-1,-1])}},Zr=Eu;function V3(i){Ce(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:W("tooltip_previous"),$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new It({props:r}),_e.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 L3(i){let e,t;return e=new ll({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:W("tooltip_restart"),$$slots:{default:[B3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new It({props:r}),_e.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 B3(i){let e,t;return e=new Ml({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:[R3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new It({props:r}),_e.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 R3(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 Al({props:r}),_e.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:W("tooltip_next"),$$slots:{default:[D3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new It({props:r}),_e.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 D3(i){let e,t;return e=new ll({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 N3(i){let e,t,n,o,r=i[121]&&O3(i),l=i[120]&&H3(i),a=i[119]&&q3(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),k(s,e,u),l&&l.m(s,u),k(s,t,u),a&&a.m(s,u),k(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&&(y(e),y(t),y(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function O3(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:W("tooltip_interactive_go_back"),disabledTooltipContent:W(i[124]),$$slots:{default:[F3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new It({props:r}),_e.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 F3(i){let e,t;return e=new Hr({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 H3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:W("tooltip_interactive_seek"),disabledTooltipContent:W(i[78]),$$slots:{default:[z3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new It({props:r}),_e.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=W(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 z3(i){let e,t;return e=new Nr({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 q3(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[U3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new It({props:r}),_e.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 U3(i){let e,t;return e=new Or({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 km(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[50],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new It({props:r}),_e.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 K3(i){let e,t;return e=new Vr({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 wm(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 wr({props:r}),_e.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 Dr({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 W3(i){let e,t,n=i[20]&&Cm(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),k(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&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function G3(i){let e,t;return e=new zr({props:{iconUrl:i[209],ariaLabel:i[210]??i[213],testId:i[211],onClick:i[212]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.iconUrl=n[209]),o[0]&268435456&&(r.ariaLabel=n[210]??n[213]),o[0]&268435456&&(r.testId=n[211]),o[0]&268435456&&(r.onClick=n[212]),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;return e=new It({props:{tooltipContent:i[213],width:40,$$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[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:[j3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new It({props:r}),_e.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 j3(i){let e,t;return e=new Er({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 Q3(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:me,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[187](l)}let r={tooltipContent:i[52],$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new It({props:r}),_e.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 Y3(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 Tm(i){let e,t,n,o;function r(a){i[188](a)}let l={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new kr({props:l}),_e.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(a,s){k(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],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&&y(e),R(t)}}}function Em(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:W("tooltip_settings_off"),$$slots:{default:[Z3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new It({props:r}),_e.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:W("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 Z3(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Tl({props:r}),_e.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 X3(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[J3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new It({props:r}),_e.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 J3(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 Am(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[x3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new It({props:r}),_e.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 x3(i){let e,t;return e=new Ir({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 Mm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[$3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new It({props:r}),_e.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 $3(i){let e,t;return e=new Ar({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 ev(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 Zr({props:r}),_e.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 tv(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,A,$,J,x;t=new Rr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let N=i[38]&&gm(i),te=i[35]&&bm(i),E=i[36]&&vm(i),Y=i[37]&&ym(i),Be=i[117]&&N3(i),We=!i[4]&&i[33]&&km(i),qe=i[19]&&wm(i);function Je(fe){i[183](fe)}let Ne={className:"w-max",disabled:!i[20],tooltipContent:W("tooltip_episodes"),$$slots:{default:[W3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Ne.ref=i[23].episodes),v=new It({props:Ne}),_e.push(()=>Fe(v,"ref",Je));let ve=yt(i[28]),X=[];for(let fe=0;fe<ve.length;fe+=1)X[fe]=Sm(hm(i,ve,fe));let ke=fe=>_(X[fe],1,1,()=>{X[fe]=null}),He=i[43]&&!i[4]&&Pm(i);function xe(fe){i[186](fe)}let et={$$slots:{default:[Q3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(et.ref=i[23].volume),I=new It({props:et}),_e.push(()=>Fe(I,"ref",xe));let we=i[40]&&Im(i),Ve=!i[83]&&!i[4]&&Tm(i),Ue=i[42]&&!i[4]&&Em(i),Ye=i[84].features.contextMenuButton&&X3(i),ae=i[44]&&Am(i),ne=i[39]&&Mm(i),Se=i[122]&&ev(i);return{c(){e=P("div"),D(t.$$.fragment),n=O(),o=P("div"),r=P("div"),N&&N.c(),l=O(),te&&te.c(),a=O(),E&&E.c(),s=O(),Y&&Y.c(),u=O(),Be&&Be.c(),f=O(),We&&We.c(),p=O(),qe&&qe.c(),h=O(),D(v.$$.fragment),w=O(),T=P("div");for(let fe=0;fe<X.length;fe+=1)X[fe].c();C=O(),He&&He.c(),b=O(),D(I.$$.fragment),j=O(),we&&we.c(),G=O(),Ve&&Ve.c(),le=O(),Ue&&Ue.c(),se=O(),Ye&&Ye.c(),V=O(),ae&&ae.c(),A=O(),ne&&ne.c(),$=O(),Se&&Se.c(),J=lt(),c(r,"class","controls-left svelte-st0uzk"),Rn(()=>i[184].call(r)),c(T,"class","controls-right svelte-st0uzk"),c(o,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),F(e,"hidden",i[1]),F(e,"controls-hidden",!i[3]),F(e,"no-smooth",i[2])},m(fe,Ae){k(fe,e,Ae),B(t,e,null),m(e,n),m(e,o),m(o,r),N&&N.m(r,null),m(r,l),te&&te.m(r,null),m(r,a),E&&E.m(r,null),m(r,s),Y&&Y.m(r,null),m(r,u),Be&&Be.m(r,null),m(r,f),We&&We.m(r,null),m(r,p),qe&&qe.m(r,null),m(r,h),B(v,r,null),S=qo(r,i[184].bind(r)),m(o,w),m(o,T);for(let Xe=0;Xe<X.length;Xe+=1)X[Xe]&&X[Xe].m(T,null);m(T,C),He&&He.m(T,null),m(T,b),B(I,T,null),m(T,j),we&&we.m(T,null),m(T,G),Ve&&Ve.m(T,null),m(T,le),Ue&&Ue.m(T,null),m(T,se),Ye&&Ye.m(T,null),m(T,V),ae&&ae.m(T,null),m(T,A),ne&&ne.m(T,null),i[194](o),i[195](e),k(fe,$,Ae),Se&&Se.m(fe,Ae),k(fe,J,Ae),x=!0},p(fe,Ae){let Xe={};Ae[1]&16384&&(Xe.isHidden=!fe[45]),Ae[0]&16&&(Xe.isAds=fe[4]),Ae[0]&32&&(Xe.canRewindLive=fe[5]),Ae[1]&2&&(Xe.isRewindableLive=fe[32]),t.$set(Xe),fe[38]?N?(N.p(fe,Ae),Ae[1]&128&&d(N,1)):(N=gm(fe),N.c(),d(N,1),N.m(r,l)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),fe[35]?te?(te.p(fe,Ae),Ae[1]&16&&d(te,1)):(te=bm(fe),te.c(),d(te,1),te.m(r,a)):te&&(ue(),_(te,1,1,()=>{te=null}),ce()),fe[36]?E?(E.p(fe,Ae),Ae[1]&32&&d(E,1)):(E=vm(fe),E.c(),d(E,1),E.m(r,s)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),fe[37]?Y?(Y.p(fe,Ae),Ae[1]&64&&d(Y,1)):(Y=ym(fe),Y.c(),d(Y,1),Y.m(r,u)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),fe[117]&&Be.p(fe,Ae),!fe[4]&&fe[33]?We?(We.p(fe,Ae),Ae[0]&16|Ae[1]&4&&d(We,1)):(We=km(fe),We.c(),d(We,1),We.m(r,p)):We&&(ue(),_(We,1,1,()=>{We=null}),ce()),fe[19]?qe?(qe.p(fe,Ae),Ae[0]&524288&&d(qe,1)):(qe=wm(fe),qe.c(),d(qe,1),qe.m(r,h)):qe&&(ue(),_(qe,1,1,()=>{qe=null}),ce());let at={};if(Ae[0]&1048576&&(at.disabled=!fe[20]),Ae[0]&1048576|Ae[2]&1310720|Ae[6]&1073741824&&(at.$$scope={dirty:Ae,ctx:fe}),!g&&Ae[0]&8388608&&(g=!0,at.ref=fe[23].episodes,Oe(()=>g=!1)),v.$set(at),Ae[0]&268435456){ve=yt(fe[28]);let ut;for(ut=0;ut<ve.length;ut+=1){let ye=hm(fe,ve,ut);X[ut]?(X[ut].p(ye,Ae),d(X[ut],1)):(X[ut]=Sm(ye),X[ut].c(),d(X[ut],1),X[ut].m(T,C))}for(ue(),ut=ve.length;ut<X.length;ut+=1)ke(ut);ce()}fe[43]&&!fe[4]?He?(He.p(fe,Ae),Ae[0]&16|Ae[1]&4096&&d(He,1)):(He=Pm(fe),He.c(),d(He,1),He.m(T,b)):He&&(ue(),_(He,1,1,()=>{He=null}),ce());let ft={};Ae[6]&1073741824&&(ft.$$scope={dirty:Ae,ctx:fe}),!Q&&Ae[0]&8388608&&(Q=!0,ft.ref=fe[23].volume,Oe(()=>Q=!1)),I.$set(ft),fe[40]?we?(we.p(fe,Ae),Ae[1]&512&&d(we,1)):(we=Im(fe),we.c(),d(we,1),we.m(T,G)):we&&(ue(),_(we,1,1,()=>{we=null}),ce()),!fe[83]&&!fe[4]?Ve?(Ve.p(fe,Ae),Ae[0]&16|Ae[2]&2097152&&d(Ve,1)):(Ve=Tm(fe),Ve.c(),d(Ve,1),Ve.m(T,le)):Ve&&(ue(),_(Ve,1,1,()=>{Ve=null}),ce()),fe[42]&&!fe[4]?Ue?(Ue.p(fe,Ae),Ae[0]&16|Ae[1]&2048&&d(Ue,1)):(Ue=Em(fe),Ue.c(),d(Ue,1),Ue.m(T,se)):Ue&&(ue(),_(Ue,1,1,()=>{Ue=null}),ce()),fe[84].features.contextMenuButton&&Ye.p(fe,Ae),fe[44]?ae?(ae.p(fe,Ae),Ae[1]&8192&&d(ae,1)):(ae=Am(fe),ae.c(),d(ae,1),ae.m(T,A)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),fe[39]?ne?(ne.p(fe,Ae),Ae[1]&256&&d(ne,1)):(ne=Mm(fe),ne.c(),d(ne,1),ne.m(T,null)):ne&&(ue(),_(ne,1,1,()=>{ne=null}),ce()),(!x||Ae[0]&2)&&F(e,"hidden",fe[1]),(!x||Ae[0]&8)&&F(e,"controls-hidden",!fe[3]),(!x||Ae[0]&4)&&F(e,"no-smooth",fe[2]),fe[122]&&Se.p(fe,Ae)},i(fe){if(!x){d(t.$$.fragment,fe),d(N),d(te),d(E),d(Y),d(Be),d(We),d(qe),d(v.$$.fragment,fe);for(let Ae=0;Ae<ve.length;Ae+=1)d(X[Ae]);d(He),d(I.$$.fragment,fe),d(we),d(Ve),d(Ue),d(Ye),d(ae),d(ne),d(Se),x=!0}},o(fe){_(t.$$.fragment,fe),_(N),_(te),_(E),_(Y),_(Be),_(We),_(qe),_(v.$$.fragment,fe),X=X.filter(Boolean);for(let Ae=0;Ae<X.length;Ae+=1)_(X[Ae]);_(He),_(I.$$.fragment,fe),_(we),_(Ve),_(Ue),_(Ye),_(ae),_(ne),_(Se),x=!1},d(fe){fe&&(y(e),y($),y(J)),R(t),N&&N.d(),te&&te.d(),E&&E.d(),Y&&Y.d(),Be&&Be.d(),We&&We.d(),qe&&qe.d(),R(v),S(),Ni(X,fe),He&&He.d(),R(I),we&&we.d(),Ve&&Ve.d(),Ue&&Ue.d(),Ye&&Ye.d(),ae&&ae.d(),ne&&ne.d(),i[194](null),i[195](null),Se&&Se.d(fe)}}}function iv(i,e,t){let n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,A,$,J,x,N,te,E,Y,Be=me,We=()=>(Be(),Be=Dt(se,Z=>t(144,Y=Z)),se),qe,Je=me,Ne=()=>(Je(),Je=Dt(le,Z=>t(145,qe=Z)),le),ve,X=me,ke=()=>(X(),X=Dt(G,Z=>t(146,ve=Z)),G),He,xe=me,et=()=>(xe(),xe=Dt(j,Z=>t(147,He=Z)),j),we,Ve=me,Ue=()=>(Ve(),Ve=Dt(Q,Z=>t(148,we=Z)),Q),Ye,ae=me,ne=()=>(ae(),ae=Dt(I,Z=>t(149,Ye=Z)),I),Se,fe=me,Ae=()=>(fe(),fe=Dt(b,Z=>t(150,Se=Z)),b),Xe,at=me,ft=()=>(at(),at=Dt(C,Z=>t(151,Xe=Z)),C),ut,ye=me,$e=()=>(ye(),ye=Dt(T,Z=>t(152,ut=Z)),T),_t,bt=me,vt=()=>(bt(),bt=Dt(w,Z=>t(153,_t=Z)),w),Vt,Ke=me,Qt=()=>(Ke(),Ke=Dt(S,Z=>t(154,Vt=Z)),S),Nt,he=me,Et=()=>(he(),he=Dt(g,Z=>t(155,Nt=Z)),g),Ze,mt=me,ht=()=>(mt(),mt=Dt(v,Z=>t(156,Ze=Z)),v),gt,Lt=me,Oi=()=>(Lt(),Lt=Dt(h,Z=>t(157,gt=Z)),h),fi,Yi=me,on=()=>(Yi(),Yi=Dt(p,Z=>t(158,fi=Z)),p),di,mi=me,Ei=()=>(mi(),mi=Dt(f,Z=>t(159,di=Z)),f),Yt,pi=me,ln=()=>(pi(),pi=Dt(u,Z=>t(160,Yt=Z)),u),_i,Fi,ti,Ai,hi,Hi,gi,ii,Tt,Ot,bi,vi,Ft,ni,oi,Bt,At,Kt,Mi,Zt,rn,sn,Wt;i.$$.on_destroy.push(()=>Be()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>Ve()),i.$$.on_destroy.push(()=>ae()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>at()),i.$$.on_destroy.push(()=>ye()),i.$$.on_destroy.push(()=>bt()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>mt()),i.$$.on_destroy.push(()=>Lt()),i.$$.on_destroy.push(()=>Yi()),i.$$.on_destroy.push(()=>mi()),i.$$.on_destroy.push(()=>pi());let{bottomHidden:yi}=e,{bottomNoSmooth:zi}=e,{showControls:ki}=e,{controlsElementRef:li=void 0}=e,{isAds:Ht=!1}=e,{canRewindLive:Gt}=e,{logoClickable:wi}=e,{logoHidden:Xt}=e,{logoTargetUrl:Zi=""}=e,{showNextPrevButtons:Ci}=e,{nextButtonActive:an}=e,{prevButtonActive:un}=e,{isOneVideoPlaylist:Xi=!1}=e,{supportLink:qi}=e,{customFullscreenSupported:Vi=!0}=e,{playNextVideo:jt}=e,{playPrevVideo:ri}=e,{repeatPlaylist:Si}=e,{toggleFullscreen:Li}=e,{returnFocus:Ji}=e,{seekToInteractive:Pi}=e,{toggleGraph:Bi}=e,{playPrevChapter:Ri}=e,Qe=it(),Ui=Sn(),zt=Mt(),ze=Qe.actions.internal.toggleMuted,xi=Qe.actions.internal.togglePlay,Di=Qe.actions.internal.pause,Ki=Qe.actions.internal.toggleSubtitle,$i=Qe.callbacks?.onAudioDoesNotExistHint,Wi=Qe.callbacks?.onAudioDisabledHint,_n=Qe.state.duration$;H(i,_n,Z=>t(82,sn=Z));let Jt=Qe.state.positionWithScrubbing$;H(i,Jt,Z=>t(80,Zt=Z));let xt=Qe.state.playbackState$;H(i,xt,Z=>t(161,ti=Z));let Gi=Qe.state.chromecastConnected$;H(i,Gi,Z=>t(83,Wt=Z));let si=Qe.state.isAudioAvailable$;H(i,si,Z=>t(197,V=Z));let re=Qe.state.isAudioDisabled,dt=Qe.state.isEnded$;H(i,dt,Z=>t(169,ni=Z));let ai=Qe.state.isLive$;H(i,ai,Z=>t(33,ii=Z));let ui=Qe.state.isActiveLive$;H(i,ui,Z=>t(163,Hi=Z));let $t=Qe.state.isRewindableLive$;H(i,$t,Z=>t(32,gi=Z));let ji=Qe.ui.isPictureInPictureActive$;H(i,ji,Z=>t(165,Ot=Z));let Tn=Qe.ui.pictureInPictureType$;H(i,Tn,Z=>t(164,Tt=Z));let yn=Qe.ui.settingsMenuVisible;H(i,yn,Z=>t(27,J=Z));let hn=Qe.ui.settingsMenuOpenedByKeyboard;H(i,hn,Z=>t(140,$=Z));let Rt=Qe.ui.controls,kn=Qe.actions.internal.getVideoEpisodes(),Nn=Qe.state.chromecastState$;H(i,Nn,Z=>t(29,_i=Z));let En=Qe.state.availableSubtitlesList$;H(i,En,Z=>t(168,Ft=Z));let An=Qe.state.currentSubtitle$;H(i,An,Z=>t(170,oi=Z));let wn=Rt.disabledControls$;H(i,wn,Z=>t(172,At=Z));let en=Qe.ui.contextMenu.visible$;H(i,en,Z=>t(162,Ai=Z));let ie=Qe.ui.contextMenu.showContextMenuBtn$;H(i,ie,Z=>t(166,bi=Z));let wt=Qe.ui.contextMenu.openedByBtnKeyboard$;H(i,wt,Z=>t(167,vi=Z));let Mn=Qe.ui.startedByKeyboard$;H(i,Mn,Z=>t(139,A=Z));let On=Qe.ads.duration;H(i,On,Z=>t(81,rn=Z));let Fn=Qe.ads.position;H(i,Fn,Z=>t(79,Mi=Z));let Jn=Qe.ads.playbackState;H(i,Jn,Z=>t(171,Bt=Z));let xn=Qe.ui.isFullscreen;H(i,xn,Z=>t(30,Fi=Z));let $n=Qe.ui.playerSize;H(i,$n,Z=>t(142,N=Z));let eo=Qe.ui.currentGridType$;H(i,eo,Z=>t(143,te=Z));let to=Qe.ui.additionalButtons$;H(i,to,Z=>t(28,E=Z));let po=Qe.actions.internal.getVideoElement,ee=Qe.actions.internal.replayInteractive,mn=Qe.state.isInteractive,Ro=Qe.state.isInteractiveTime$;H(i,Ro,Z=>t(141,x=Z));let Do=Qe.state.showInteractiveGraph,Wn=Qe.state.showSeekToInteractive,_o=Qe.state.showPlayPrevChapter,Gn=Qe.state.showInteractiveTimeIndicator,jn=Qe.state.graphIsOpened$;H(i,jn,Z=>t(31,hi=Z));let No=Qe.state.playPrevChapterDisabledTooltip,Oo=Ui.seekToInteractiveDisabledTooltip$;H(i,Oo,Z=>t(78,Kt=Z));let pl=()=>Qe.actions.internal.toggleChromecast(),Fo,Hn,Ho,ho,go,zo,K,L,de,Me,Ge,st,qt,ei,Ut,cn,io,_l,hl,kc,wc,ds="",Qp=(Z,ps)=>{if(!Z){t(50,ds=W("tooltip_live"));return}ps===Lo.PlaybackState.PAUSED&&t(50,ds=W("tooltip_play"))},Cc,Sc,Pc,Ic,Nl,ot={},Vn,gl,ms,Tc,Yp=(0,Vm.throttleFn)(Qr,260,{leading:!1}),Ol,Fl,Hl;function Zp(){ao({isAudioDisabled:re,audioDisabledHintCallback:Wi,isAudioAvailable:V,audioIsNotExistHintCallback:$i})&&ze()}let Xp=mn?ee:Xi?xi:Si;function Jp(Z){i.$$.not_equal(ot.prevButton,Z)&&(ot.prevButton=Z,t(23,ot))}function xp(Z){i.$$.not_equal(ot.replayButton,Z)&&(ot.replayButton=Z,t(23,ot))}function $p(Z){Hl=Z,t(26,Hl)}function e2(Z){i.$$.not_equal(ot.playButton,Z)&&(ot.playButton=Z,t(23,ot))}function t2(Z){i.$$.not_equal(ot.nextButton,Z)&&(ot.nextButton=Z,t(23,ot))}function i2(Z){i.$$.not_equal(ot.playPrevChapterButton,Z)&&(ot.playPrevChapterButton=Z,t(23,ot))}function n2(Z){i.$$.not_equal(ot.seekToInteractiveButton,Z)&&(ot.seekToInteractiveButton=Z,t(23,ot))}function o2(Z){i.$$.not_equal(ot.interactiveGraphButton,Z)&&(ot.interactiveGraphButton=Z,t(23,ot))}function l2(Z){i.$$.not_equal(ot.liveButton,Z)&&(ot.liveButton=Z,t(23,ot))}function r2(Z){i.$$.not_equal(ot.time,Z)&&(ot.time=Z,t(23,ot))}function s2(Z){i.$$.not_equal(ot.episodes,Z)&&(ot.episodes=Z,t(23,ot))}function a2(){Nl=this.clientWidth,t(22,Nl)}function u2(Z){i.$$.not_equal(ot.vkLogo,Z)&&(ot.vkLogo=Z,t(23,ot))}function c2(Z){i.$$.not_equal(ot.volume,Z)&&(ot.volume=Z,t(23,ot))}function f2(Z){i.$$.not_equal(ot.subtitles,Z)&&(ot.subtitles=Z,t(23,ot))}function d2(Z){Ol=Z,t(24,Ol)}function m2(Z){Fl=Z,t(25,Fl)}function p2(Z){i.$$.not_equal(ot.settings,Z)&&(ot.settings=Z,t(23,ot))}function _2(Z){i.$$.not_equal(ot.context,Z)&&(ot.context=Z,t(23,ot))}function h2(Z){i.$$.not_equal(ot.fullscreen,Z)&&(ot.fullscreen=Z,t(23,ot))}function g2(Z){i.$$.not_equal(ot.chromecast,Z)&&(ot.chromecast=Z,t(23,ot))}function b2(Z){_e[Z?"unshift":"push"](()=>{io=Z,t(46,io)})}function v2(Z){_e[Z?"unshift":"push"](()=>{li=Z,t(0,li)})}function y2(Z){i.$$.not_equal(ot.interactiveTimeIndicator,Z)&&(ot.interactiveTimeIndicator=Z,t(23,ot))}i.$$set=Z=>{"bottomHidden"in Z&&t(1,yi=Z.bottomHidden),"bottomNoSmooth"in Z&&t(2,zi=Z.bottomNoSmooth),"showControls"in Z&&t(3,ki=Z.showControls),"controlsElementRef"in Z&&t(0,li=Z.controlsElementRef),"isAds"in Z&&t(4,Ht=Z.isAds),"canRewindLive"in Z&&t(5,Gt=Z.canRewindLive),"logoClickable"in Z&&t(6,wi=Z.logoClickable),"logoHidden"in Z&&t(129,Xt=Z.logoHidden),"logoTargetUrl"in Z&&t(7,Zi=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(130,Ci=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(8,an=Z.nextButtonActive),"prevButtonActive"in Z&&t(9,un=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&t(131,Xi=Z.isOneVideoPlaylist),"supportLink"in Z&&t(10,qi=Z.supportLink),"customFullscreenSupported"in Z&&t(132,Vi=Z.customFullscreenSupported),"playNextVideo"in Z&&t(11,jt=Z.playNextVideo),"playPrevVideo"in Z&&t(12,ri=Z.playPrevVideo),"repeatPlaylist"in Z&&t(133,Si=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(13,Li=Z.toggleFullscreen),"returnFocus"in Z&&t(14,Ji=Z.returnFocus),"seekToInteractive"in Z&&t(15,Pi=Z.seekToInteractive),"toggleGraph"in Z&&t(16,Bi=Z.toggleGraph),"playPrevChapter"in Z&&t(17,Ri=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=At.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=At.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=At.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=At.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=At.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=At.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Fo=Ht?Bt==="playing":ti===Lo.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,Hn=oi.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,Ho=ni&&!Ht||mn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,ho=!ni||mn||Ht);if(i.$$.dirty[4]&524288)e:t(134,go=vn(te,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,zo=Ci&&vn(te,"m")&&!Ht&&an);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,K=Ci&&vn(te,"m")&&!Ht&&un);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,L=_i!==Lo.ChromecastState.NOT_AVAILABLE&&!(Ot&&Tt===1)&&vn(te,"m")&&!mn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,de=Ft.length>0&&vn(te,"m"));if(i.$$.dirty[5]&6144)e:t(41,Me=vi||bi);if(i.$$.dirty[4]&524288)e:t(42,Ge=vn(te,"s"));if(i.$$.dirty[4]&32)e:t(43,st=!Xt);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,qt=zt.features.fullscreen&&(Xt||vn(te,"s"))&&!(Ot&&Tt===1)&&(mn?Vi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,ei=(!ii||Ht)&&!(zt.features.interactiveHideTime&&mn));if(i.$$.dirty[4]&262144)e:t(45,Ut=N.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,cn=!Ht&&!ii&&!!kn?.length&&go&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,_l=!gi||Hi);if(i.$$.dirty[5]&64)e:t(47,hl=ti===Lo.PlaybackState.PLAYING?W("tooltip_pause"):W("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,kc=hi?W("tooltip_interactive_graph_on"):W("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,wc=Ai?W("aria_label_context_menu_close"):W("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Qp(_l,ti);if(i.$$.dirty[0]&262144)e:t(52,Sc=Hn?W("tooltip_subtitles_on"):W("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Pc=Fi?W("tooltip_fullscreen_on"):W("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Ic=_i===Lo.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,Vn={prevButton:Yt?Yt.right-Yt.left:0,replayButton:di?di.right-di.left:0,playButton:fi?fi.right-fi.left:0,nextButton:gt?gt.right-gt.left:0,playPrevChapterButton:Ze?Ze.right-Ze.left:0,seekToInteractiveButton:Nt?Nt.right-Nt.left:0,interactiveGraphButton:Vt?Vt.right-Vt.left:0,liveButton:_t?_t.right-_t.left:0,time:ut?ut.right-ut.left:0,episodes:Xe?Xe.right-Xe.left:0,vkLogo:Se?Se.right-Se.left:0,volume:Ye?Ye.right-Ye.left:0,subtitles:we?we.right-we.left:0,settings:He?He.right-He.left:0,context:ve?ve.right-ve.left:0,fullscreen:qe?qe.right-qe.left:0,chromecast:Y?Y.right-Y.left:0,additionalButtons:E.length?E.reduce(Z=>[...Z,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!gl||gl<Vn.time)&&t(136,gl=Vn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let Z=0;cn&&(vn(te,"xl")?Z=Vn.time:Z=60);let ps=Vn.prevButton+Vn.playButton+Vn.nextButton+Vn.seekToInteractiveButton+Vn.interactiveGraphButton+Vn.liveButton+gl+Z;t(137,ms=ei&&Nl>=ps)}if(i.$$.dirty[4]&532480)e:t(55,Tc=ms&&vn(te,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:Yp(po(),Rt,ot,ki);if(i.$$.dirty[0]&167772160)e:$o(Fl,J,hn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Mo(Ol,J,$);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Yr(Mn,A,Hl)};e:t(51,Cc=zt.logoType==="vk_video"?W("tooltip_vk_video_logo"):W("tooltip_vk_logo"));e:ln(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:v,seekToInteractiveButton:g,interactiveGraphButton:S,liveButton:w,time:T,episodes:C,vkLogo:b,volume:I,subtitles:Q,settings:j,context:G,fullscreen:le,chromecast:se}=Rt,u,Ei(t(71,f)),on(t(70,p)),Oi(t(69,h)),ht(t(68,v)),Et(t(67,g)),Qt(t(66,S)),vt(t(65,w)),$e(t(64,T)),ft(t(63,C)),Ae(t(62,b)),ne(t(61,I)),Ue(t(60,Q)),et(t(59,j)),ke(t(58,G)),Ne(t(57,le)),We(t(56,se))));return[li,yi,zi,ki,Ht,Gt,wi,Zi,an,un,qi,jt,ri,Li,Ji,Pi,Bi,Ri,Hn,ei,cn,_l,Nl,ot,Ol,Fl,Hl,J,E,_i,Fi,hi,gi,ii,Fo,Ho,ho,zo,K,L,de,Me,Ge,st,qt,Ut,io,hl,kc,wc,ds,Cc,Sc,Pc,Ic,Tc,se,le,G,j,Q,I,b,C,T,w,S,g,v,h,p,f,u,s,a,l,r,o,Kt,Mi,Zt,rn,sn,Wt,zt,xi,Di,Ki,_n,Jt,xt,Gi,si,dt,ai,ui,$t,ji,Tn,yn,hn,kn,Nn,En,An,wn,en,ie,wt,Mn,On,Fn,Jn,xn,$n,eo,to,mn,Ro,Do,Wn,_o,Gn,jn,No,Oo,pl,Zp,Xp,Xt,Ci,Xi,Vi,Si,go,Vn,gl,ms,n,A,$,x,N,te,Y,qe,ve,He,we,Ye,Se,Xe,ut,_t,Vt,Nt,Ze,gt,fi,di,Yt,ti,Ai,Hi,Tt,Ot,bi,vi,Ft,ni,oi,Bt,At,Jp,xp,$p,e2,t2,i2,n2,o2,l2,r2,s2,a2,u2,c2,f2,d2,m2,p2,_2,h2,g2,b2,v2,y2]}var Au=class extends q{constructor(e){super(),U(this,e,iv,tv,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},V3,[-1,-1,-1,-1,-1,-1,-1])}},Lm=Au;var sl=require("@vkontakte/videoplayer-core");function nv(i){let e,t,n,o,r,l=i[2].default,a=Pe(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 f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),be(e,u)},m(f,p){k(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Te(a,l,f,f[1],r?Ie(l,f[1],p,null):Ee(f[1]),null),be(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},p&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&y(e),a&&a.d(f)}}}function ov(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Vu=class extends q{constructor(e){super(),U(this,e,ov,nv,z,{})}},Bm=Vu;var Dm=require("@vkontakte/videoplayer-shared");function lv(i){Ce(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=P("span"),e.textContent=`${W("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){k(t,e,n)},p:me,d(t){t&&y(e)}}}function rv(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=pn(r,l(i)));let a=i[1]&&Rm(i);return{c(){e=P("div"),t&&D(t.$$.fragment),n=O(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),F(e,"expanded",i[1])},m(s,u){k(s,e,u),t&&B(t,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){ue();let f=t;_(f.$$.fragment,1,0,()=>{R(f,1)}),ce()}r?(t=pn(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&&y(e),t&&R(t),a&&a.d()}}}function sv(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:[rv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 av(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(f){l=f,t(0,l)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,r=f.click),"ref"in f&&t(0,l=f.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?W("tooltip_volume"):W("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Vo:Bm)},[l,o,r,a,s,n,u]}var Lu=class extends q{constructor(e){super(),U(this,e,av,sv,z,{muted:5,expanded:1,click:2,ref:0},lv)}},Bu=Lu;function uv(i){let e,t,n,o,r,l=i[2].default,a=Pe(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 f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=M("svg"),a&&a.c(),t=M("path"),n=M("path"),o=M("path"),c(t,"fill","currentColor"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(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"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(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"),c(o,"class","hidden-active"),be(e,u)},m(f,p){k(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Te(a,l,f,f[1],r?Ie(l,f[1],p,null):Ee(f[1]),null),be(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},p&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&y(e),a&&a.d(f)}}}function cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ru=class extends q{constructor(e){super(),U(this,e,cv,uv,z,{})}},Nm=Ru;function fv(i){Ce(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function dv(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 mv(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 Du=class extends q{constructor(e){super(),U(this,e,mv,dv,z,{isActive:0},fv)}},Om=Du;var Fm=require("@vkontakte/videoplayer-shared");function pv(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 _v(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:W("menu_pip"),click:i[2],$$slots:{default:[pv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new pt({props:r}),_e.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 hv(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 Nu=class extends q{constructor(e){super(),U(this,e,hv,_v,z,{ref:0,isPictureInPictureActive:1,click:2})}},Hm=Nu;var a0=require("@vkontakte/videoplayer-shared");function gv(i){Ce(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,f,p,h,v,g,S,w,T,C=(!i[51]||i[53])&&Um(i),b=yt(i[56]),I=[];for(let N=0;N<b.length;N+=1)I[N]=Km(zm(i,b,N));let Q=N=>_(I[N],1,1,()=>{I[N]=null}),j=i[36]&&Wm(i),G=i[37]&&Gm(i),le=i[57]&&jm(i),se=i[39]&&Qm(i),V=i[8]&&Ym(i),A=i[34]&&Zm(i),$=i[33]&&Xm(i),J=i[8]&&Jm(i),x=i[96]&&!i[29]&&xm(i);return{c(){e=P("div"),t=O(),n=P("div"),C&&C.c(),o=O(),r=P("div");for(let N=0;N<I.length;N+=1)I[N].c();l=O(),j&&j.c(),a=O(),G&&G.c(),s=O(),le&&le.c(),u=O(),se&&se.c(),f=O(),p=P("div"),V&&V.c(),h=O(),A&&A.c(),v=O(),$&&$.c(),g=O(),J&&J.c(),S=O(),x&&x.c(),w=lt(),c(e,"class","overlay-mobile svelte-1tcstu3"),F(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),F(n,"hidden",!i[3]),F(n,"fullscreen",i[52]),c(r,"class","wrapper-top-right svelte-1tcstu3"),F(r,"hidden",!i[3]&&!i[27]),F(r,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),F(p,"hidden",!i[3]||i[29])},m(N,te){k(N,e,te),k(N,t,te),k(N,n,te),C&&C.m(n,null),k(N,o,te),k(N,r,te);for(let E=0;E<I.length;E+=1)I[E]&&I[E].m(r,null);m(r,l),j&&j.m(r,null),m(r,a),G&&G.m(r,null),m(r,s),le&&le.m(r,null),m(r,u),se&&se.m(r,null),k(N,f,te),k(N,p,te),V&&V.m(p,null),m(p,h),A&&A.m(p,null),m(p,v),$&&$.m(p,null),m(p,g),J&&J.m(p,null),k(N,S,te),x&&x.m(N,te),k(N,w,te),T=!0},p(N,te){if((!T||te[1]&2048)&&F(e,"hidden",!N[42]),!N[51]||N[53]?C?(C.p(N,te),te[1]&5242880&&d(C,1)):(C=Um(N),C.c(),d(C,1),C.m(n,null)):C&&(ue(),_(C,1,1,()=>{C=null}),ce()),(!T||te[0]&8)&&F(n,"hidden",!N[3]),(!T||te[1]&2097152)&&F(n,"fullscreen",N[52]),te[1]&33554432){b=yt(N[56]);let E;for(E=0;E<b.length;E+=1){let Y=zm(N,b,E);I[E]?(I[E].p(Y,te),d(I[E],1)):(I[E]=Km(Y),I[E].c(),d(I[E],1),I[E].m(r,l))}for(ue(),E=b.length;E<I.length;E+=1)Q(E);ce()}N[36]?j?(j.p(N,te),te[1]&32&&d(j,1)):(j=Wm(N),j.c(),d(j,1),j.m(r,a)):j&&(ue(),_(j,1,1,()=>{j=null}),ce()),N[37]?G?(G.p(N,te),te[1]&64&&d(G,1)):(G=Gm(N),G.c(),d(G,1),G.m(r,s)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),N[57]?le?(le.p(N,te),te[1]&67108864&&d(le,1)):(le=jm(N),le.c(),d(le,1),le.m(r,u)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),N[39]?se?(se.p(N,te),te[1]&256&&d(se,1)):(se=Qm(N),se.c(),d(se,1),se.m(r,null)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),(!T||te[0]&134217736)&&F(r,"hidden",!N[3]&&!N[27]),(!T||te[1]&2097152)&&F(r,"fullscreen",N[52]),N[8]?V?(V.p(N,te),te[0]&256&&d(V,1)):(V=Ym(N),V.c(),d(V,1),V.m(p,h)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),N[34]?A?(A.p(N,te),te[1]&8&&d(A,1)):(A=Zm(N),A.c(),d(A,1),A.m(p,v)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),N[33]?$?($.p(N,te),te[1]&4&&d($,1)):($=Xm(N),$.c(),d($,1),$.m(p,g)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),N[8]?J?(J.p(N,te),te[0]&256&&d(J,1)):(J=Jm(N),J.c(),d(J,1),J.m(p,null)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),(!T||te[0]&536870920)&&F(p,"hidden",!N[3]||N[29]),N[96]&&!N[29]?x?(x.p(N,te),te[0]&536870912&&d(x,1)):(x=xm(N),x.c(),d(x,1),x.m(w.parentNode,w)):x&&(ue(),_(x,1,1,()=>{x=null}),ce())},i(N){if(!T){d(C);for(let te=0;te<b.length;te+=1)d(I[te]);d(j),d(G),d(le),d(se),d(V),d(A),d($),d(J),d(x),T=!0}},o(N){_(C),I=I.filter(Boolean);for(let te=0;te<I.length;te+=1)_(I[te]);_(j),_(G),_(le),_(se),_(V),_(A),_($),_(J),_(x),T=!1},d(N){N&&(y(e),y(t),y(n),y(o),y(r),y(f),y(p),y(S),y(w)),C&&C.d(),Ni(I,N),j&&j.d(),G&&G.d(),le&&le.d(),se&&se.d(),V&&V.d(),A&&A.d(),$&&$.d(),J&&J.d(),x&&x.d(N)}}}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 Bu({props:r}),_e.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){let e,t;return e=new zr({props:{iconUrl:i[169],ariaLabel:i[170]??i[173],testId:i[171],onClick:i[172]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&33554432&&(r.iconUrl=n[169]),o[1]&33554432&&(r.ariaLabel=n[170]??n[173]),o[1]&33554432&&(r.testId=n[171]),o[1]&33554432&&(r.onClick=n[172]),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[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 Ar({props:r}),_e.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}),_e.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 Tl({props:r}),_e.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 Er({props:r}),_e.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 ll({props:r}),_e.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 Al({props:r}),_e.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 Ml({props:r}),_e.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 ll({props:r}),_e.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]&&bv(i),l=i[98]&&vv(i),a=i[99]&&yv(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),k(s,e,u),l&&l.m(s,u),k(s,t,u),a&&a.m(s,u),k(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&&(y(e),y(t),y(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function bv(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 Hr({props:s}),_e.push(()=>Fe(t,"ref",a)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),F(e,"fullscreen",i[52]),F(e,"hidden",!i[3])},m(u,f){k(u,e,f),B(t,e,null),o=!0,r||(l=pe(e,"click",i[108]),r=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&F(e,"fullscreen",u[52]),(!o||f[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&&y(e),R(t),r=!1,l()}}}function vv(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 Or({props:a}),_e.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class",o=Lc(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){k(s,e,u),B(t,e,null),r=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Oe(()=>n=!1)),t.$set(f),(!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&&y(e),R(t)}}}function yv(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 Nr({props:s}),_e.push(()=>Fe(t,"ref",a)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),F(e,"fullscreen",i[52]),F(e,"hidden",!i[3])},m(u,f){k(u,e,f),B(t,e,null),o=!0,r||(l=pe(e,"click",i[109]),r=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&F(e,"fullscreen",u[52]),(!o||f[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&&y(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 Br({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=O(),a&&a.c(),t=O(),n=P("div"),D(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),F(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),k(s,e,u),a&&a.m(s,u),k(s,t,u),k(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&&(ue(),_(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&&(ue(),_(a,1,1,()=>{a=null}),ce());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!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&&(y(e),y(t),y(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 Bu({props:l}),_e.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),F(e,"fullscreen",i[52])},m(a,s){k(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&&y(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 Al({props:l}),_e.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){k(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&&y(e),R(t)}}}function kv(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[wv]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new It({props:r}),_e.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 wv(i){let e,t;return e=new Ml({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:[Cv]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new It({props:r}),_e.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 Cv(i){let e,t;return e=new Vr({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 wr({props:r}),_e.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 Dr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=P("div"),e.textContent="\xB7",t=O(),D(n.$$.fragment),c(e,"aria-hidden","true")},m(r,l){k(r,e,l),k(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&&(y(e),y(t)),R(n,r)}}}function Sv(i){let e,t,n=i[43]&&o0(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),k(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&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function l0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[Pv]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new It({props:r}),_e.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 Pv(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Tl({props:r}),_e.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 It({props:r}),_e.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 Ir({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 kr({props:l}),_e.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){k(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&&y(e),R(t)}}}function Tv(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 Zr({props:r}),_e.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 Ev(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b=!i[4]&&qm(i),I=i[4]&&i[30]!=="inactive"&&$m(i),Q=i[96]&&kv(i),j=!i[4]&&i[25]&&i0(i),G=i[41]&&n0(i);function le(x){i[147](x)}let se={className:"w-max",disabled:!i[43],$$slots:{default:[Sv]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(se.ref=i[20].episodes),u=new It({props:se}),_e.push(()=>Fe(u,"ref",le));let V=i[38]&&l0(i),A=i[40]&&r0(i);g=new Rr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let $=i[23]&&s0(i),J=i[101]&&Tv(i);return{c(){b&&b.c(),e=O(),I&&I.c(),t=O(),n=P("div"),o=P("div"),r=P("div"),Q&&Q.c(),l=O(),j&&j.c(),a=O(),G&&G.c(),s=O(),D(u.$$.fragment),p=O(),V&&V.c(),h=O(),A&&A.c(),v=O(),D(g.$$.fragment),S=O(),$&&$.c(),w=O(),J&&J.c(),T=lt(),c(r,"class","controls svelte-1tcstu3"),F(r,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),F(o,"fullscreen",i[52]),c(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,N){b&&b.m(x,N),k(x,e,N),I&&I.m(x,N),k(x,t,N),k(x,n,N),m(n,o),m(o,r),Q&&Q.m(r,null),m(r,l),j&&j.m(r,null),m(r,a),G&&G.m(r,null),m(r,s),B(u,r,null),m(r,p),V&&V.m(r,null),m(r,h),A&&A.m(r,null),i[151](r),m(o,v),B(g,o,null),i[152](n),k(x,S,N),$&&$.m(x,N),k(x,w,N),J&&J.m(x,N),k(x,T,N),C=!0},p(x,N){x[4]?b&&(ue(),_(b,1,1,()=>{b=null}),ce()):b?(b.p(x,N),N[0]&16&&d(b,1)):(b=qm(x),b.c(),d(b,1),b.m(e.parentNode,e)),x[4]&&x[30]!=="inactive"?I?(I.p(x,N),N[0]&1073741840&&d(I,1)):(I=$m(x),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),x[96]&&Q.p(x,N),!x[4]&&x[25]?j?(j.p(x,N),N[0]&33554448&&d(j,1)):(j=i0(x),j.c(),d(j,1),j.m(r,a)):j&&(ue(),_(j,1,1,()=>{j=null}),ce()),x[41]?G?(G.p(x,N),N[1]&1024&&d(G,1)):(G=n0(x),G.c(),d(G,1),G.m(r,s)):G&&(ue(),_(G,1,1,()=>{G=null}),ce());let te={};N[1]&4096&&(te.disabled=!x[43]),N[1]&1073745920|N[2]&1|N[5]&2097152&&(te.$$scope={dirty:N,ctx:x}),!f&&N[0]&1048576&&(f=!0,te.ref=x[20].episodes,Oe(()=>f=!1)),u.$set(te),x[38]?V?(V.p(x,N),N[1]&128&&d(V,1)):(V=l0(x),V.c(),d(V,1),V.m(r,h)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),x[40]?A?(A.p(x,N),N[1]&512&&d(A,1)):(A=r0(x),A.c(),d(A,1),A.m(r,null)):A&&(ue(),_(A,1,1,()=>{A=null}),ce());let E={};N[0]&16&&(E.isAds=x[4]),N[0]&32&&(E.canRewindLive=x[5]),N[0]&16777216&&(E.isRewindableLive=x[24]),g.$set(E),(!C||N[1]&2097152)&&F(o,"fullscreen",x[52]),(!C||N[0]&2)&&F(n,"hidden",x[1]),(!C||N[0]&8)&&F(n,"controls-hidden",!x[3]),(!C||N[0]&4)&&F(n,"no-smooth",x[2]),x[23]?$?($.p(x,N),N[0]&8388608&&d($,1)):($=s0(x),$.c(),d($,1),$.m(w.parentNode,w)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),x[101]&&J.p(x,N)},i(x){C||(d(b),d(I),d(Q),d(j),d(G),d(u.$$.fragment,x),d(V),d(A),d(g.$$.fragment,x),d($),d(J),C=!0)},o(x){_(b),_(I),_(Q),_(j),_(G),_(u.$$.fragment,x),_(V),_(A),_(g.$$.fragment,x),_($),_(J),C=!1},d(x){x&&(y(e),y(t),y(n),y(S),y(w),y(T)),b&&b.d(x),I&&I.d(x),Q&&Q.d(),j&&j.d(),G&&G.d(),R(u),V&&V.d(),A&&A.d(),i[151](null),R(g),i[152](null),$&&$.d(x),J&&J.d(x)}}}function Av(i,e,t){let n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,A,$,J,x,N,te,E,Y,Be,We,qe,Je,Ne,{bottomHidden:ve}=e,{bottomNoSmooth:X}=e,{showControls:ke}=e,{controlsElementRef:He=void 0}=e,{isAds:xe=!1}=e,{canRewindLive:et}=e,{logoClickable:we}=e,{logoHidden:Ve}=e,{logoTargetUrl:Ue=""}=e,{showNextPrevButtons:Ye}=e,{nextButtonActive:ae}=e,{prevButtonActive:ne}=e,{isOneVideoPlaylist:Se=!1}=e,{supportLink:fe}=e,{customFullscreenSupported:Ae=!0}=e,{playNextVideo:Xe}=e,{playPrevVideo:at}=e,{repeatPlaylist:ft}=e,{toggleFullscreen:ut}=e,{returnFocus:ye}=e,{seekToInteractive:$e}=e,{toggleGraph:_t}=e,{playPrevChapter:bt}=e,{onDisabledPlayPrevChapterClick:vt}=e,{onDisabledSeekToInteractiveClick:Vt}=e,Ke=it(),Qt=Sn(),Nt=Mt(),he=Ke.actions.internal.toggleMuted,Et=Ke.actions.internal.togglePlay,Ze=Ke.actions.internal.pause,mt=Ke.callbacks?.onAudioDoesNotExistHint,ht=Ke.callbacks?.onAudioDisabledHint,gt=Ke.playerPhase;H(i,gt,ee=>t(126,G=ee));let Lt=Ke.state.duration$;H(i,Lt,ee=>t(62,Ne=ee));let Oi=Ke.state.positionWithScrubbing$;H(i,Oi,ee=>t(61,Je=ee));let fi=Ke.state.playbackState$;H(i,fi,ee=>t(121,h=ee));let Yi=Ke.state.isAudioAvailable$;H(i,Yi,ee=>t(51,v=ee));let on=Ke.state.isAudioDisabled,di=Ke.state.isEnded$;H(i,di,ee=>t(127,se=ee));let mi=Ke.state.isLive$;H(i,mi,ee=>t(25,C=ee));let Ei=Ke.state.muted$;H(i,Ei,ee=>t(54,N=ee));let Yt=Ke.state.isActiveLive$;H(i,Yt,ee=>t(124,w=ee));let pi=Ke.state.isRewindableLive$;H(i,pi,ee=>t(24,T=ee));let ln=Ke.ui.scrubbingInProgress;H(i,ln,ee=>t(29,le=ee));let _i=Ke.ui.mobileNotReportControlHidden$;H(i,_i,ee=>t(27,Q=ee));let Fi=Ke.ui.isPictureInPictureActive$;H(i,Fi,ee=>t(26,I=ee));let ti=Ke.ui.pictureInPictureType$;H(i,ti,ee=>t(125,b=ee));let Ai=Ke.ui.mobileUnmuteButtonExpanded;H(i,Ai,ee=>t(55,te=ee));let hi=Ke.ui.mobileUnmuteButtonVisible;H(i,hi,ee=>t(53,x=ee));let Hi=Ke.ui.settingsMenuVisible;H(i,Hi,ee=>t(23,p=ee));let gi=Ke.ui.settingsMenuOpenedByKeyboard;H(i,gi,ee=>t(120,f=ee));let ii=Ke.ui.controls,Tt=Ke.actions.internal.getVideoEpisodes(),Ot=Ke.webApi.pictureInPictureApi,bi=Ke.state.chromecastState$;H(i,bi,ee=>t(28,j=ee));let vi=Ke.state.crashed$;H(i,vi,ee=>t(57,Y=ee));let Ft=ii.disabledControls$;H(i,Ft,ee=>t(128,A=ee));let ni=Ke.ui.startedByKeyboard$;H(i,ni,ee=>t(119,u=ee));let oi=Ke.ads.duration;H(i,oi,ee=>t(60,qe=ee));let Bt=Ke.ads.position;H(i,Bt,ee=>t(59,We=ee));let At=Ke.ads.playbackState;H(i,At,ee=>t(30,V=ee));let Kt=Ke.ui.isFullscreen;H(i,Kt,ee=>t(52,J=ee));let Mi=Ke.ui.playerSize;H(i,Mi,ee=>t(123,S=ee));let Zt=Ke.ui.additionalButtons$;H(i,Zt,ee=>t(56,E=ee));let rn=Ke.actions.internal.getVideoElement,sn=Ke.actions.internal.replayInteractive,Wt=Ke.state.isInteractive,yi=Ke.state.isInteractiveTime$;H(i,yi,ee=>t(122,g=ee));let zi=Ke.state.showInteractiveGraph,ki=Ke.state.showSeekToInteractive,li=Ke.state.showPlayPrevChapter,Ht=Ke.state.showInteractiveTimeIndicator,Gt=Ke.state.graphIsOpened$;H(i,Gt,ee=>t(58,Be=ee));let wi=Qt.seekToInteractiveDisabledTooltip$;H(i,wi,ee=>t(129,$=ee));let Xt,Zi,Ci,an,un,Xi,qi,Vi,jt,ri,Si,Li,Ji,Pi,Bi,Ri,Qe,Ui,zt,ze={},xi=(0,a0.throttleFn)(Qr,260,{leading:!1}),Di=()=>Ke.actions.internal.toggleChromecast();function Ki(){ao({isAudioDisabled:on,audioDisabledHintCallback:ht,isAudioAvailable:v,audioIsNotExistHintCallback:mt})&&he()}async function $i(){Ot?.isActive()?await Ot?.remove():await Ot?.request()}function Wi(){!on&&v&&hi.set(!1),Ki()}let _n=Se?Et:ft,Jt="",xt=(ee,mn)=>{if(!ee){t(45,Jt=W("tooltip_live"));return}mn===sl.PlaybackState.PAUSED&&t(45,Jt=W("tooltip_play"))},Gi,si,re=()=>{s&&vt(Xt)},dt=()=>{r&&Vt(Zi)};function ai(ee){i.$$.not_equal(ze.volume,ee)&&(ze.volume=ee,t(20,ze))}function ui(ee){i.$$.not_equal(ze.chromecast,ee)&&(ze.chromecast=ee,t(20,ze))}function $t(ee){i.$$.not_equal(ze.pip,ee)&&(ze.pip=ee,t(20,ze))}function ji(ee){si=ee,t(22,si)}function Tn(ee){i.$$.not_equal(ze.vkLogo,ee)&&(ze.vkLogo=ee,t(20,ze))}function yn(ee){i.$$.not_equal(ze.prevButton,ee)&&(ze.prevButton=ee,t(20,ze))}function hn(ee){i.$$.not_equal(ze.playButton,ee)&&(ze.playButton=ee,t(20,ze))}function Rt(ee){i.$$.not_equal(ze.replayButton,ee)&&(ze.replayButton=ee,t(20,ze))}function kn(ee){i.$$.not_equal(ze.nextButton,ee)&&(ze.nextButton=ee,t(20,ze))}function Nn(ee){i.$$.not_equal(ze.playPrevChapterButton,ee)&&(ze.playPrevChapterButton=ee,t(20,ze))}function En(ee){i.$$.not_equal(ze.interactiveGraphButton,ee)&&(ze.interactiveGraphButton=ee,t(20,ze))}function An(ee){i.$$.not_equal(ze.seekToInteractiveButton,ee)&&(ze.seekToInteractiveButton=ee,t(20,ze))}function wn(ee){i.$$.not_equal(ze.volume,ee)&&(ze.volume=ee,t(20,ze))}function en(ee){i.$$.not_equal(ze.playButton,ee)&&(ze.playButton=ee,t(20,ze))}function ie(ee){i.$$.not_equal(ze.replayButton,ee)&&(ze.replayButton=ee,t(20,ze))}function wt(ee){i.$$.not_equal(ze.liveButton,ee)&&(ze.liveButton=ee,t(20,ze))}function Mn(ee){i.$$.not_equal(ze.time,ee)&&(ze.time=ee,t(20,ze))}function On(ee){i.$$.not_equal(ze.episodes,ee)&&(ze.episodes=ee,t(20,ze))}function Fn(ee){si=ee,t(22,si)}function Jn(ee){i.$$.not_equal(ze.settings,ee)&&(ze.settings=ee,t(20,ze))}function xn(ee){i.$$.not_equal(ze.fullscreen,ee)&&(ze.fullscreen=ee,t(20,ze))}function $n(ee){_e[ee?"unshift":"push"](()=>{Ui=ee,t(44,Ui)})}function eo(ee){_e[ee?"unshift":"push"](()=>{He=ee,t(0,He)})}function to(ee){Gi=ee,t(21,Gi)}function po(ee){i.$$.not_equal(ze.interactiveTimeIndicator,ee)&&(ze.interactiveTimeIndicator=ee,t(20,ze))}i.$$set=ee=>{"bottomHidden"in ee&&t(1,ve=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,X=ee.bottomNoSmooth),"showControls"in ee&&t(3,ke=ee.showControls),"controlsElementRef"in ee&&t(0,He=ee.controlsElementRef),"isAds"in ee&&t(4,xe=ee.isAds),"canRewindLive"in ee&&t(5,et=ee.canRewindLive),"logoClickable"in ee&&t(6,we=ee.logoClickable),"logoHidden"in ee&&t(110,Ve=ee.logoHidden),"logoTargetUrl"in ee&&t(7,Ue=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,Ye=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,ae=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,ne=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(111,Se=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,fe=ee.supportLink),"customFullscreenSupported"in ee&&t(112,Ae=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,Xe=ee.playNextVideo),"playPrevVideo"in ee&&t(13,at=ee.playPrevVideo),"repeatPlaylist"in ee&&t(113,ft=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,ut=ee.toggleFullscreen),"returnFocus"in ee&&t(15,ye=ee.returnFocus),"seekToInteractive"in ee&&t(16,$e=ee.seekToInteractive),"toggleGraph"in ee&&t(17,_t=ee.toggleGraph),"playPrevChapter"in ee&&t(18,bt=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(114,vt=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(115,Vt=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Zi=W($);if(i.$$.dirty[4]&16)e:t(118,n=A.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=A.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=A.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=A.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=A.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=A.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,Ci=h===sl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,an=V==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,un=se&&!xe&&!Wt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,Xi=!se||xe);if(i.$$.dirty[3]&1073741824)e:t(116,qi=S.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Vi=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,jt=le);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,ri=j!==sl.ChromecastState.NOT_AVAILABLE&&!(I&&b===1)&&!Q&&!Wt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ee=G==="waitingLive";t(37,Si=!!Ot&&j!==sl.ChromecastState.CONNECTED&&!Q&&(b===1&&ee||!ee)&&!jt&&!Wt)}if(i.$$.dirty[3]&16777216)e:t(38,Li=!jt);if(i.$$.dirty[3]&1073872896)e:t(39,Ji=!Ve&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,Pi=Nt.features.fullscreen&&!(I&&b===1)&&(Wt?Ae:!0)&&!jt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Bi=(!C||xe)&&S.width>260&&!jt&&!(Nt.features.interactiveHideTime&&Wt));if(i.$$.dirty[0]&8388616)e:t(42,Ri=p||ke);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Qe=!xe&&!C&&!!Tt?.length&&qi&&!n&&!jt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,zt=!T||w);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:xi(rn(),ii,ze,ke);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:xt(zt,h);if(i.$$.dirty[0]&12582912)e:$o(si,p,gi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Mo(Gi,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Yr(ni,u,ze.playButton)};e:Xt=W(Ke.state.playPrevChapterDisabledTooltip);return[He,ve,X,ke,xe,et,we,Ue,Ye,ae,ne,fe,Xe,at,ut,ye,$e,_t,bt,zt,ze,Gi,si,p,T,C,I,Q,j,le,V,Ci,an,un,Xi,Vi,ri,Si,Li,Ji,Pi,Bi,Ri,Qe,Ui,Jt,r,s,a,l,o,v,J,x,N,te,E,Y,Be,We,qe,Je,Ne,Et,Ze,gt,Lt,Oi,fi,Yi,on,di,mi,Ei,Yt,pi,ln,_i,Fi,ti,Ai,hi,Hi,gi,Tt,bi,vi,Ft,ni,oi,Bt,At,Kt,Mi,Zt,sn,Wt,yi,zi,ki,li,Ht,Gt,wi,Di,$i,Wi,_n,re,dt,Ve,Se,Ae,ft,vt,Vt,qi,jt,n,u,f,h,g,S,w,b,G,se,A,$,ai,ui,$t,ji,Tn,yn,hn,Rt,kn,Nn,En,An,wn,en,ie,wt,Mn,On,Fn,Jn,xn,$n,eo,to,po]}var Ou=class extends q{constructor(e){super(),U(this,e,Av,Ev,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},gv,[-1,-1,-1,-1,-1,-1])}},u0=Ou;function Mv(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 Lm({props:r}),_e.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 Vv(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}),_e.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 Lv(i){let e,t,n,o,r=[Vv,Mv],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),k(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(n),l[e].d(s)}}}function Bv(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:f}=e,{logoHidden:p}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:v}=e,{nextButtonActive:g}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:w=!1}=e,{supportLink:T}=e,{customFullscreenSupported:C=!0}=e,{playNextVideo:b}=e,{playPrevVideo:I}=e,{repeatPlaylist:Q}=e,{toggleFullscreen:j}=e,{returnFocus:G=Xr.noop}=e,{seekToInteractive:le}=e,{toggleGraph:se}=e,{playPrevChapter:V}=e,{onDisabledPlayPrevChapterClick:A=Xr.noop}=e,{onDisabledSeekToInteractiveClick:$=Xr.noop}=e,x=it().ui.isMobile;H(i,x,E=>t(25,n=E));function N(E){a=E,t(0,a)}function te(E){a=E,t(0,a)}return i.$$set=E=>{"bottomHidden"in E&&t(1,o=E.bottomHidden),"bottomNoSmooth"in E&&t(2,r=E.bottomNoSmooth),"showControls"in E&&t(3,l=E.showControls),"controlsElementRef"in E&&t(0,a=E.controlsElementRef),"isAds"in E&&t(4,s=E.isAds),"canRewindLive"in E&&t(5,u=E.canRewindLive),"logoClickable"in E&&t(6,f=E.logoClickable),"logoHidden"in E&&t(7,p=E.logoHidden),"logoTargetUrl"in E&&t(8,h=E.logoTargetUrl),"showNextPrevButtons"in E&&t(9,v=E.showNextPrevButtons),"nextButtonActive"in E&&t(10,g=E.nextButtonActive),"prevButtonActive"in E&&t(11,S=E.prevButtonActive),"isOneVideoPlaylist"in E&&t(12,w=E.isOneVideoPlaylist),"supportLink"in E&&t(13,T=E.supportLink),"customFullscreenSupported"in E&&t(14,C=E.customFullscreenSupported),"playNextVideo"in E&&t(15,b=E.playNextVideo),"playPrevVideo"in E&&t(16,I=E.playPrevVideo),"repeatPlaylist"in E&&t(17,Q=E.repeatPlaylist),"toggleFullscreen"in E&&t(18,j=E.toggleFullscreen),"returnFocus"in E&&t(19,G=E.returnFocus),"seekToInteractive"in E&&t(20,le=E.seekToInteractive),"toggleGraph"in E&&t(21,se=E.toggleGraph),"playPrevChapter"in E&&t(22,V=E.playPrevChapter),"onDisabledPlayPrevChapterClick"in E&&t(23,A=E.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in E&&t(24,$=E.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,A,$,n,x,N,te]}var Fu=class extends q{constructor(e){super(),U(this,e,Bv,Lv,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})}},Jr=Fu;function Rv(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S=i[2].default,w=Pe(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],C={};for(let b=0;b<T.length;b+=1)C=oe(C,T[b]);return{c(){e=M("svg"),w&&w.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),a=M("feFlood"),s=M("feColorMatrix"),u=M("feOffset"),f=M("feGaussianBlur"),p=M("feColorMatrix"),h=M("feBlend"),v=M("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_2260_100684"),c(v,"result","shape"),c(l,"id","a"),c(l,"width","43.996"),c(l,"height","49.5"),c(l,"x","2.5"),c(l,"y","0"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),be(e,C)},m(b,I){k(b,e,I),w&&w.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,v),g=!0},p(b,[I]){w&&w.p&&(!g||I&2)&&Te(w,S,b,b[1],g?Ie(S,b[1],I,null):Ee(b[1]),null),be(e,C=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&b[0]]))},i(b){g||(d(w,b),g=!0)},o(b){_(w,b),g=!1},d(b){b&&y(e),w&&w.d(b)}}}function Dv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Hu=class extends q{constructor(e){super(),U(this,e,Dv,Rv,z,{})}},c0=Hu;function Nv(i){let e,t;return e=new c0({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 Ov(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 q{constructor(e){super(),U(this,e,Ov,Nv,z,{reversed:1})}},f0=zu;function Fv(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T=i[2].default,C=Pe(T,i,i[1],null),b=[{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 Q=0;Q<b.length;Q+=1)I=oe(I,b[Q]);return{c(){e=M("svg"),C&&C.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("clipPath"),a=M("path"),s=M("filter"),u=M("feFlood"),f=M("feColorMatrix"),p=M("feOffset"),h=M("feGaussianBlur"),v=M("feColorMatrix"),g=M("feBlend"),S=M("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(l,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_104204"),c(S,"in","SourceGraphic"),c(S,"in2","effect1_dropShadow_2260_104204"),c(S,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),be(e,I)},m(Q,j){k(Q,e,j),C&&C.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(r,s),m(s,u),m(s,f),m(s,p),m(s,h),m(s,v),m(s,g),m(s,S),w=!0},p(Q,[j]){C&&C.p&&(!w||j&2)&&Te(C,T,Q,Q[1],w?Ie(T,Q[1],j,null):Ee(Q[1]),null),be(e,I=Le(b,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},j&1&&Q[0]]))},i(Q){w||(d(C,Q),w=!0)},o(Q){_(C,Q),w=!1},d(Q){Q&&y(e),C&&C.d(Q)}}}function Hv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var qu=class extends q{constructor(e){super(),U(this,e,Hv,Fv,z,{})}},d0=qu;function zv(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C=i[2].default,b=Pe(C,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]],Q={};for(let j=0;j<I.length;j+=1)Q=oe(Q,I[j]);return{c(){e=M("svg"),b&&b.c(),t=M("g"),n=M("path"),o=M("path"),r=M("path"),l=M("defs"),a=M("clipPath"),s=M("path"),u=M("filter"),f=M("feFlood"),p=M("feColorMatrix"),h=M("feOffset"),v=M("feGaussianBlur"),g=M("feColorMatrix"),S=M("feBlend"),w=M("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(r,"stroke","#000"),c(r,"stroke-opacity",".12"),c(r,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(v,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(S,"in2","BackgroundImageFix"),c(S,"result","effect1_dropShadow_2260_104293"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_104293"),c(w,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),be(e,Q)},m(j,G){k(j,e,G),b&&b.m(e,null),m(e,t),m(t,n),m(t,o),m(t,r),m(e,l),m(l,a),m(a,s),m(l,u),m(u,f),m(u,p),m(u,h),m(u,v),m(u,g),m(u,S),m(u,w),T=!0},p(j,[G]){b&&b.p&&(!T||G&2)&&Te(b,C,j,j[1],T?Ie(C,j[1],G,null):Ee(j[1]),null),be(e,Q=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"},G&1&&j[0]]))},i(j){T||(d(b,j),T=!0)},o(j){_(b,j),T=!1},d(j){j&&y(e),b&&b.d(j)}}}function qv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Uu=class extends q{constructor(e){super(),U(this,e,qv,zv,z,{})}},m0=Uu;function Uv(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 Kv(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 Wv(i){let e,t,n,o,r=[Kv,Uv],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),k(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ue(),_(l[f],1,1,()=>{l[f]=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&&y(n),l[e].d(s)}}}function Gv(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Ku=class extends q{constructor(e){super(),U(this,e,Gv,Wv,z,{isOff:0})}},Wu=Ku;function jv(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S=i[2].default,w=Pe(S,i,i[1],null),T=[{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]],C={};for(let b=0;b<T.length;b+=1)C=oe(C,T[b]);return{c(){e=M("svg"),w&&w.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),a=M("feFlood"),s=M("feColorMatrix"),u=M("feOffset"),f=M("feGaussianBlur"),p=M("feColorMatrix"),h=M("feBlend"),v=M("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_2260_106627"),c(v,"result","shape"),c(l,"id","a"),c(l,"width","40.098"),c(l,"height","27.785"),c(l,"x","3.402"),c(l,"y","10.105"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),be(e,C)},m(b,I){k(b,e,I),w&&w.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,v),g=!0},p(b,[I]){w&&w.p&&(!g||I&2)&&Te(w,S,b,b[1],g?Ie(S,b[1],I,null):Ee(b[1]),null),be(e,C=Le(T,[{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&&b[0]]))},i(b){g||(d(w,b),g=!0)},o(b){_(w,b),g=!1},d(b){b&&y(e),w&&w.d(b)}}}function Qv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Gu=class extends q{constructor(e){super(),U(this,e,Qv,jv,z,{})}},p0=Gu;function Yv(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 Zv(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 q{constructor(e){super(),U(this,e,Zv,Yv,z,{reversed:1})}},_0=ju;function Xv(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S=i[2].default,w=Pe(S,i,i[1],null),T=[{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]],C={};for(let b=0;b<T.length;b+=1)C=oe(C,T[b]);return{c(){e=M("svg"),w&&w.c(),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),a=M("feFlood"),s=M("feColorMatrix"),u=M("feOffset"),f=M("feGaussianBlur"),p=M("feColorMatrix"),h=M("feBlend"),v=M("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(v,"in","SourceGraphic"),c(v,"in2","effect1_dropShadow_2340_106922"),c(v,"result","shape"),c(l,"id","a"),c(l,"width","37"),c(l,"height","37"),c(l,"x","5.5"),c(l,"y","5.5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),be(e,C)},m(b,I){k(b,e,I),w&&w.m(e,null),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,a),m(l,s),m(l,u),m(l,f),m(l,p),m(l,h),m(l,v),g=!0},p(b,[I]){w&&w.p&&(!g||I&2)&&Te(w,S,b,b[1],g?Ie(S,b[1],I,null):Ee(b[1]),null),be(e,C=Le(T,[{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&&b[0]]))},i(b){g||(d(w,b),g=!0)},o(b){_(w,b),g=!1},d(b){b&&y(e),w&&w.d(b)}}}function Jv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Qu=class extends q{constructor(e){super(),U(this,e,Jv,Xv,z,{})}},h0=Qu;function xv(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 $v(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 Yu=class extends q{constructor(e){super(),U(this,e,$v,xv,z,{reversed:1})}},g0=Yu;function e5(i){Ce(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]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,v,g,S,w,T=t&&v0(i),C=i[4]==="PAUSE"&&y0(i),b=i[4]==="PLAY"&&k0(i),I=i[4]==="REPLAY"&&w0(i),Q=i[4]==="SUBTITLES_OFF"&&C0(i),j=i[4]==="SUBTITLES_ON"&&S0(i),G=u&&P0(i),le=p&&I0(i),se=i[4]==="MUTE"&&T0(i),V=i[4]==="VOLUME"&&E0(i),A=i[5]&&A0(i);return{c(){e=P("div"),T&&T.c(),n=O(),C&&C.c(),o=O(),b&&b.c(),r=O(),I&&I.c(),l=O(),Q&&Q.c(),a=O(),j&&j.c(),s=O(),G&&G.c(),f=O(),le&&le.c(),h=O(),se&&se.c(),v=O(),V&&V.c(),g=O(),A&&A.c(),S=lt(),c(e,"class","svelte-4ftgwp")},m($,J){k($,e,J),T&&T.m(e,null),m(e,n),C&&C.m(e,null),m(e,o),b&&b.m(e,null),m(e,r),I&&I.m(e,null),m(e,l),Q&&Q.m(e,null),m(e,a),j&&j.m(e,null),m(e,s),G&&G.m(e,null),m(e,f),le&&le.m(e,null),m(e,h),se&&se.m(e,null),m(e,v),V&&V.m(e,null),k($,g,J),A&&A.m($,J),k($,S,J),w=!0},p($,J){J&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes($[4])),t?T?(T.p($,J),J&16&&d(T,1)):(T=v0($),T.c(),d(T,1),T.m(e,n)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),$[4]==="PAUSE"?C?J&16&&d(C,1):(C=y0($),C.c(),d(C,1),C.m(e,o)):C&&(ue(),_(C,1,1,()=>{C=null}),ce()),$[4]==="PLAY"?b?J&16&&d(b,1):(b=k0($),b.c(),d(b,1),b.m(e,r)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),$[4]==="REPLAY"?I?J&16&&d(I,1):(I=w0($),I.c(),d(I,1),I.m(e,l)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),$[4]==="SUBTITLES_OFF"?Q?J&16&&d(Q,1):(Q=C0($),Q.c(),d(Q,1),Q.m(e,a)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),$[4]==="SUBTITLES_ON"?j?J&16&&d(j,1):(j=S0($),j.c(),d(j,1),j.m(e,s)):j&&(ue(),_(j,1,1,()=>{j=null}),ce()),J&16&&(u=["RATE_DOWN","RATE_UP"].includes($[4])),u?G?(G.p($,J),J&16&&d(G,1)):(G=P0($),G.c(),d(G,1),G.m(e,f)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),J&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes($[4])),p?le?(le.p($,J),J&16&&d(le,1)):(le=I0($),le.c(),d(le,1),le.m(e,h)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),$[4]==="MUTE"?se?J&16&&d(se,1):(se=T0($),se.c(),d(se,1),se.m(e,v)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),$[4]==="VOLUME"?V?J&16&&d(V,1):(V=E0($),V.c(),d(V,1),V.m(e,null)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),$[5]?A?A.p($,J):(A=A0($),A.c(),A.m(S.parentNode,S)):A&&(A.d(1),A=null)},i($){w||(d(T),d(C),d(b),d(I),d(Q),d(j),d(G),d(le),d(se),d(V),w=!0)},o($){_(T),_(C),_(b),_(I),_(Q),_(j),_(G),_(le),_(se),_(V),w=!1},d($){$&&(y(e),y(g),y(S)),T&&T.d(),C&&C.d(),b&&b.d(),I&&I.d(),Q&&Q.d(),j&&j.d(),G&&G.d(),le&&le.d(),se&&se.d(),V&&V.d(),A&&A.d($)}}}function v0(i){let e,t;return e=new f0({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 Tr({}),{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 ol({}),{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 Fr({}),{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 Wu({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 Wu({}),{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 I0(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 T0(i){let e,t;return e=new Vo({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 Vo({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 A0(i){let e,t;return{c(){e=P("span"),t=Re(i[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){k(n,e,o),m(e,t)},p(n,o){o&32&&je(t,n[5])},d(n){n&&y(e)}}}function t5(i){let e,t,n=!i[1]&&i[4]&&b0(i);return{c(){e=P("div"),n&&n.c(),c(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){k(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&&(ue(),_(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&&y(e),n&&n.d()}}}function i5(i,e,t){let n,o=me,r=()=>(o(),o=Dt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,f,p;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?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,p=W(n.t.key,{value:n.t.value||""})):t(5,p=n?.text)},[l,a,s,u,f,p,n]}var Zu=class extends q{constructor(e){super(),U(this,e,i5,t5,z,{data:0},e5)}},M0=Zu;function n5(i){Ce(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 o5(i){let e,t,n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b;return r=new Un({props:{direction:"up"}}),s=new Un({props:{direction:"up"}}),h=new Un({props:{direction:"up"}}),S=new Un({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),D(r.$$.fragment),l=O(),a=P("div"),D(s.$$.fragment),u=O(),f=P("div"),p=P("div"),D(h.$$.fragment),v=O(),g=P("div"),D(S.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",w=W("aria_label_spherical_control")),F(e,"m-shifted",i[0])},m(I,Q){k(I,e,Q),m(e,t),m(t,n),m(n,o),B(r,o,null),m(n,l),m(n,a),B(s,a,null),m(t,u),m(t,f),m(f,p),B(h,p,null),m(f,v),m(f,g),B(S,g,null),T=!0,C||(b=[pe(o,"mousedown",i[1]),pe(o,"mouseup",i[5]),pe(o,"mouseleave",i[5]),pe(a,"mousedown",i[3]),pe(a,"mouseup",i[5]),pe(a,"mouseleave",i[5]),pe(p,"mousedown",i[4]),pe(p,"mouseup",i[5]),pe(p,"mouseleave",i[5]),pe(g,"mousedown",i[2]),pe(g,"mouseup",i[5]),pe(g,"mouseleave",i[5]),pe(e,"keydown",i[6]),pe(e,"keyup",i[7])],C=!0)},p(I,[Q]){(!T||Q&1)&&F(e,"m-shifted",I[0])},i(I){T||(d(r.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(S.$$.fragment,I),T=!0)},o(I){_(r.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(S.$$.fragment,I),T=!1},d(I){I&&y(e),R(r),R(s),R(h),R(S),C=!1,nt(b)}}}function l5(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)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=v=>{if(r.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=v=>{r.has(v.code)&&(v.preventDefault(),v.stopPropagation(),f())};return i.$$set=v=>{"isShifted"in v&&t(0,n=v.isShifted)},[n,l,a,s,u,f,p,h]}var Xu=class extends q{constructor(e){super(),U(this,e,l5,o5,z,{isShifted:0},n5)}},xr=Xu;function r5(i){Ce(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 V0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function L0(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]?u5:l[5]?a5:s5}let o=n(i,-1),r=o(i);return{c(){e=P("div"),t=P("span"),r.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),F(e,"mobile",i[3])},m(l,a){k(l,e,a),m(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&&y(e),r.d()}}}function s5(i){let e,t=yt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=R0(V0(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);k(o,e,r)},p(o,r){if(r&18){t=yt(o[1]);let l;for(l=0;l<t.length;l+=1){let a=V0(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&&y(e),Ni(n,o)}}}function a5(i){let e,t,n=yt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=N0(L0(i,n,r));return{c(){e=P("span"),t=P("span");for(let r=0;r<o.length;r+=1)o[r].c();c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){k(r,e,l),m(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=yt(r[6]);let a;for(a=0;a<n.length;a+=1){let s=L0(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&&ci(t,"font-size",r[4]+"px")},d(r){r&&y(e),Ni(o,r)}}}function u5(i){let e,t,n=W("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Re(n),c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){k(r,e,l),m(e,t),m(t,o)},p(r,l){l&16&&ci(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function R0(i){let e,t,n=i[16]+"",o,r;return{c(){e=P("span"),t=P("span"),o=Re(n),r=O(),c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,a){k(l,e,a),m(e,t),m(t,o),m(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&je(o,n),a&16&&ci(t,"font-size",l[4]+"px")},d(l){l&&y(e)}}}function D0(i){let e=i[16]+"",t;return{c(){t=Re(e)},m(n,o){k(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&je(t,e)},d(n){n&&y(t)}}}function N0(i){let e,t=(!i[17]||i[17]<=i[2])&&D0(i);return{c(){t&&t.c(),e=lt()},m(n,o){t&&t.m(n,o),k(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=D0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function c5(i){let e,t=i[1].length>0&&B0(i);return{c(){e=P("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),F(e,"shifted",i[0]),F(e,"auto",i[5]&&!i[8])},m(n,o){k(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=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:me,o:me,d(n){n&&y(e),t&&t.d()}}}function f5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=it(),p=Mt(),h=f.state.currentSubtitle$;H(i,h,b=>t(12,n=b));let v=f.state.isAutoSubtitleCaptionVisible$;H(i,v,b=>t(8,o=b));let g,S,w,T,C;return St(()=>{C=window.setTimeout(()=>{v.set(!1)},p.autoSubtitlesTimeout)}),Ln(()=>{window.clearTimeout(C)}),i.$$set=b=>{"shifted"in b&&t(0,r=b.shifted),"captions"in b&&t(1,l=b.captions),"position"in b&&t(2,a=b.position),"playerSize"in b&&t(11,s=b.playerSize),"isMobile"in b&&t(3,u=b.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let b=s.width*.02;t(4,g=b<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:b)}if(i.$$.dirty&2)e:t(5,S=l.some(b=>b.type==="timestamp"));if(i.$$.dirty&2)e:t(6,w=l.reduce((b,{type:I,value:Q})=>(I==="timestamp"?b.push({timeAppeared:Number(Q),value:""}):b.length===0?b.push({value:String(Q)}):b[b.length-1].value=String(Q),b),[]));if(i.$$.dirty&4096)e:t(7,T=!!n.isAuto)},[r,l,a,u,g,S,w,T,o,h,v,s,n]}var Ju=class extends q{constructor(e){super(),U(this,e,f5,c5,z,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},r5)}},$r=Ju;function d5(i){Ce(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=P("div"),t=Re("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Re(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,r){k(o,e,r),m(e,t),m(e,n)},p(o,r){r&2&&je(n,o[1])},d(o){o&&y(e)}}}function m5(i){let e,t,n,o,r,l,a=i[1]&&O0(i);return{c(){e=P("div"),t=P("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(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(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){k(s,e,u),m(e,t),m(e,n),a&&a.m(e,null),r||(l=pe(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]||""}')`)&&c(e,"style",o)},i:me,o:me,d(s){s&&y(e),a&&a.d(),r=!1,l()}}}function p5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){gn.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 xu=class extends q{constructor(e){super(),U(this,e,p5,m5,z,{thumbUrl:0,chromecastDeviceName:1},d5)}},es=xu;function _5(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function h5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var $u=class extends q{constructor(e){super(),U(this,e,h5,_5,z,{})}},F0=$u;function g5(i){Ce(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 b5(i){let e,t,n;return t=new F0({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,r){k(o,e,r),B(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&y(e),R(t)}}}var ec=class extends q{constructor(e){super(),U(this,e,null,b5,z,{},g5)}},ts=ec;function v5(i){Ce(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 y5(i){let e,t,n,o,r,l,a,s,u,f;return r=new ol({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=O(),D(r.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",l=W("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),F(e,"hidden",i[1])},m(p,h){k(p,e,h),m(e,t),m(t,n),m(t,o),B(r,t,null),s=!0,u||(f=[pe(t,"keydown",i[3]),pe(e,"click",rt(function(){Ii(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(p,[h]){i=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&F(e,"hidden",i[1])},i(p){s||(d(r.$$.fragment,p),s=!0)},o(p){_(r.$$.fragment,p),s=!1},d(p){p&&y(e),R(r),u=!1,nt(f)}}}function k5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=it().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(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 tc=class extends q{constructor(e){super(),U(this,e,k5,y5,z,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},v5)}get handlePressKey(){return this.$$.ctx[3]}},is=tc;function w5(i){Ce(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 Df(i){let e;return{c(){e=I("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&w(e)}}}function Nf(i){let e,t;return e=new Rf({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Of(i){let e,t;return e=new Vf({}),{c(){B(e.$$.fragment)},m(n,o){L(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 Ff(i){let e,t;return e=new Bf({}),{c(){B(e.$$.fragment)},m(n,o){L(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,l,r,a,s=i[0]&&Df(i),u=i[3]&&Nf(i),f=i[7]&&Of(i),p=i[4]&&Ff(i);return{c(){e=I("div"),s&&s.c(),t=F(),n=I("video"),o=F(),u&&u.c(),l=F(),f&&f.c(),r=F(),p&&p.c(),ci(n,"width","100%"),ci(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,b){C(h,e,b),s&&s.m(e,null),m(e,t),m(e,n),i[19](n),m(e,o),u&&u.m(e,null),m(e,l),f&&f.m(e,null),m(e,r),p&&p.m(e,null),i[20](e),a=!0},p(h,[b]){h[0]?s||(s=Df(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,b),b&8&&d(u,1)):(u=Nf(h),u.c(),d(u,1),u.m(e,l)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[7]?f?b&128&&d(f,1):(f=Of(h),f.c(),d(f,1),f.m(e,r)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[4]?p?b&16&&d(p,1):(p=Ff(h),p.c(),d(p,1),p.m(e,null)):p&&(ue(),_(p,1,1,()=>{p=null}),ce())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&w(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function _2(i,e,t){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,h=$e(),b=h.state.isEnded$;H(i,b,V=>t(7,a=V));let g=h.ui.isMobile;H(i,g,V=>t(0,o=V));let S,y,E=!1,k=h.ads.playbackState;H(i,k,V=>t(18,n=V));let v=h.ads.canSkip,T=h.ads.position;H(i,T,V=>t(5,l=V));let W=h.ads.secondsToWatchBeforeSkip;H(i,W,V=>t(6,r=V));let Q,G;Tt(()=>{let V=new AbortController,M=()=>{V.abort()},$=h.getAdmanWrapper();if(!s){$.onAdmanLoadingError();return}let{width:J,height:x}=xe(h.ui.playerSize),N=xe(h.ui.isFullscreen),ie=xe(h.ui.isAutoplay),A={width:J,height:x,isFullscreen:N,isAutoplay:ie,adsContainer:S,adsVideoElement:y,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?($.initAdman(A),E=!0):$.loadAdman(V.signal).then(()=>{$.initAdman(A),E=!0}).catch(()=>{$.onAdmanLoadingError()}),()=>{!E&&M()}});function re(V){pe[V?"unshift":"push"](()=>{y=V,t(2,y)})}function ae(V){pe[V?"unshift":"push"](()=>{S=V,t(1,S)})}return i.$$set=V=>{"adsSlotId"in V&&t(14,s=V.adsSlotId),"adsParams"in V&&t(15,u=V.adsParams),"adsPreviewParam"in V&&t(16,f=V.adsPreviewParam),"duration"in V&&t(17,p=V.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,Q=v&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,G=o&&n!=="inactive")},[o,S,y,Q,G,l,r,a,h,b,g,k,T,W,s,u,f,p,n,re,ae]}var Fs=class extends U{constructor(e){super(),K(this,e,_2,p2,q,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},m2)}},ar=Fs;var wn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function h2(i){let e,t,n,o,l=i[2].default,r=Pe(l,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=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(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"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(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,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Me(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&w(e),r&&r.d(u)}}}function g2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Hs=class extends U{constructor(e){super(),K(this,e,g2,h2,q,{})}},Hf=Hs;function b2(i){let e,t,n,o,l=i[2].default,r=Pe(l,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=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("rect"),n=D("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Me(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&w(e),r&&r.d(u)}}}function v2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var zs=class extends U{constructor(e){super(),K(this,e,v2,b2,q,{})}},zf=zs;function y2(i){let e,t;return e=new Hf({}),{c(){B(e.$$.fragment)},m(n,o){L(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 w2(i){let e,t;return e=new zf({}),{c(){B(e.$$.fragment)},m(n,o){L(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 k2(i){let e,t,n,o,l=[w2,y2],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t||(t=r[e]=l[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&&w(n),r[e].d(s)}}}function C2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var qs=class extends U{constructor(e){super(),K(this,e,C2,k2,q,{isActive:0})}},ur=qs;function S2(i){ke(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 P2(i){let e=wn(i[4]-i[3])+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=wn(n[4]-n[3])+"")&&Ge(t,e)},i:me,o:me,d(n){n&&w(t)}}}function I2(i){let e,t,n;return t=new ur({props:{isActive:!0}}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function T2(i){let e,t,n,o,l,r,a,s=[I2,P2],u=[];function f(p,h){return p[1]?0:1}return l=f(i,-1),r=u[l]=s[l](i),{c(){e=I("div"),t=I("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=F(),o=I("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-7pnl2h"),c(o,"class","thumb-timer-text svelte-7pnl2h"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-7pnl2h"),c(e,"data-testid","thumb-timer"),z(e,"live",i[1]),z(e,"hidden",i[0]),z(e,"playing",i[2])},m(p,h){C(p,e,h),m(e,t),m(e,n),m(e,o),u[l].m(o,null),a=!0},p(p,[h]){let b=l;l=f(p,h),l===b?u[l].p(p,h):(ue(),_(u[b],1,1,()=>{u[b]=null}),ce(),r=u[l],r?r.p(p,h):(r=u[l]=s[l](p),r.c()),d(r,1),r.m(o,null)),(!a||h&2)&&z(e,"live",p[1]),(!a||h&1)&&z(e,"hidden",p[0]),(!a||h&4)&&z(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&w(e),u[l].d()}}}function E2(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=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,l=s.isPlaying),"position"in s&&t(3,r=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,l,r,a]}var Us=class extends U{constructor(e){super(),K(this,e,E2,T2,q,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},S2)}},cr=Us;var Cl=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var Ks=require("@vkontakte/videoplayer-core");var Uf=require("@vkontakte/videoplayer-shared"),A2=(0,Uf.isAndroid)(),Vo=i=>{i.stopPropagation(),i.preventDefault()},M2=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},V2=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},L2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},R2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Kf=i=>i.code==="Escape",B2=i=>i.code==="ArrowLeft",jf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Wf=i=>{if(L2(i)){Vo(i),V2(i.target);return}R2(i)&&(Vo(i),M2(i.target))},el=i=>i?.detail===0||A2&&i?.pointerType==="",tl=async(i,e,t)=>{await Bn(),i&&!i.classList.contains("opened")&&!e&&xe(t)&&(await Bn(),t.set(!1),i.focus())},Gf=async(i,e,t)=>{await Bn(),i&&!e&&xe(t)&&(t.set(!1),i.focus())},Lo=async(i,e,t)=>{await Bn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},Sl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},fr=(i,e)=>{Wf(i),Kf(i)&&(Vo(i),e())},Pl=async(i,e,t)=>{jf(i,!1)&&(Vo(i),e(),await Bn(),t()?.focus())},Il=async(i,e,t,n)=>{if(Wf(i),B2(i)){Vo(i),e(),t.set(!0);return}Kf(i)&&(Vo(i),n())},Ji=(i,e)=>{jf(i)&&(Vo(i),e())},Qf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Yf=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 Tl=require("@vkontakte/videoplayer-shared");function D2(i){ke(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 Zf(i){let e,t,n,o,l,r,a,s,u,f=(i[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug"))+"",p,h,b,g,S=j("menu_debug_overlay")+"",y,E,k,v,T=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&N2(i),W=i[12]&&i[6]!==Ks.ChromecastState.CONNECTED&&!i[17]&&Jf(i);function Q(M,$){return M[4]?F2:O2}let G=Q(i,[-1,-1]),re=G(i),ae=i[10].features.videoRotate&&!i[17]&&H2(i),V=i[10].showSupport&&!i[7]&&xf(i);return{c(){e=I("ul"),T&&T.c(),t=F(),W&&W.c(),n=F(),o=I("li"),re.c(),r=F(),ae&&ae.c(),a=F(),V&&V.c(),s=F(),u=I("li"),p=Re(f),b=F(),g=I("li"),y=Re(S),c(o,"tabindex","0"),c(o,"role","menuitem"),c(o,"aria-label",l=j("aria_label_menu_loop")),c(o,"class","svelte-1vzqlps"),c(u,"tabindex","0"),c(u,"role","menuitem"),c(u,"aria-label",h=i[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),c(u,"class","svelte-1vzqlps"),c(g,"tabindex","0"),c(g,"role","menuitem"),c(g,"aria-label",E=i[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")),c(g,"class","svelte-1vzqlps"),c(e,"role","menu"),ci(e,"top",i[3]+"px"),ci(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(M,$){C(M,e,$),T&&T.m(e,null),m(e,t),W&&W.m(e,null),m(e,n),m(e,o),re.m(o,null),m(e,r),ae&&ae.m(e,null),m(e,a),V&&V.m(e,null),m(e,s),m(e,u),m(u,p),m(e,b),m(e,g),m(g,y),i[42](e),k||(v=[de(o,"click",rt(i[24])),de(o,"keydown",i[30]),de(u,"click",rt(i[21])),de(u,"keydown",i[32]),de(g,"click",rt(i[22])),de(g,"keydown",i[33]),de(e,"contextmenu",It(i[39])),de(e,"keydown",i[26])],k=!0)},p(M,$){M[10].features.copyVideoLink&&M[9].callbacks?.onCopyVideoLink&&T.p(M,$),M[12]&&M[6]!==Ks.ChromecastState.CONNECTED&&!M[17]?W?W.p(M,$):(W=Jf(M),W.c(),W.m(e,n)):W&&(W.d(1),W=null),G===(G=Q(M,$))&&re?re.p(M,$):(re.d(1),re=G(M),re&&(re.c(),re.m(o,null))),M[10].features.videoRotate&&!M[17]&&ae.p(M,$),M[10].showSupport&&!M[7]?V?V.p(M,$):(V=xf(M),V.c(),V.m(e,s)):V&&(V.d(1),V=null),$[0]&256&&E!==(E=M[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))&&c(g,"aria-label",E),$[0]&8&&ci(e,"top",M[3]+"px"),$[0]&4&&ci(e,"left",M[2]+"px")},d(M){M&&w(e),T&&T.d(),W&&W.d(),re.d(),ae&&ae.d(),V&&V.d(),i[42](null),k=!1,et(v)}}}function N2(i){let e,t=j("menu_copy_video_link")+"",n,o,l,r,a,s,u=!i[5]&&!i[17]&&Xf(i);return{c(){e=I("li"),n=Re(t),l=F(),u&&u.c(),r=lt(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(f,p){C(f,e,p),m(e,n),C(f,l,p),u&&u.m(f,p),C(f,r,p),a||(s=[de(e,"click",rt(i[40])),de(e,"keydown",i[27])],a=!0)},p(f,p){!f[5]&&!f[17]?u?u.p(f,p):(u=Xf(f),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null)},d(f){f&&(w(e),w(l),w(r)),u&&u.d(f),a=!1,et(s)}}}function Xf(i){let e,t=j("menu_copy_video_link_with_timestamp")+"",n,o,l,r;return{c(){e=I("li"),n=Re(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),m(e,n),l||(r=[de(e,"click",rt(i[41])),de(e,"keydown",i[28])],l=!0)},p:me,d(a){a&&w(e),l=!1,et(r)}}}function Jf(i){let e,t=j("menu_pip")+"",n,o,l,r;return{c(){e=I("li"),n=Re(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),m(e,n),l||(r=[de(e,"click",rt(i[23])),de(e,"keydown",i[29])],l=!0)},p:me,d(a){a&&w(e),l=!1,et(r)}}}function O2(i){let e=j("menu_video_loop_on")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p:me,d(n){n&&w(t)}}}function F2(i){let e=j("menu_video_loop_off")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p:me,d(n){n&&w(t)}}}function H2(i){let e,t=j("menu_video_rotate")+"",n,o,l,r;return{c(){e=I("li"),n=Re(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),m(e,n),l||(r=[de(e,"click",rt(i[19])),de(e,"keydown",i[30])],l=!0)},p:me,d(a){a&&w(e),l=!1,et(r)}}}function xf(i){let e,t=j("menu_report")+"",n,o,l,r;return{c(){e=I("li"),n=Re(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),m(e,n),l||(r=[de(e,"click",rt(i[20])),de(e,"keydown",i[31])],l=!0)},p:me,d(a){a&&w(e),l=!1,et(r)}}}function z2(i){let e,t=i[1]&&Zf(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=Zf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:me,o:me,d(n){n&&w(e),t&&t.d(n)}}}function q2(i,e,t){let n,o,l,r,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:b=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:S}=e,y=0,E=0,k=$e(),v=Lt(),T=k.ui.contextMenu.visible$,W=k.ui.debugPanelVisible;H(i,W,le=>t(8,s=le));let Q=k.webApi.pictureInPictureApi,G=k.webApi.pictureInPictureApi?.info.isActive$;H(i,G,le=>t(7,a=le));let re=k.state.chromecastState$;H(i,re,le=>t(6,r=le));let ae=k.state.isLive$;H(i,ae,le=>t(5,l=le));let V=k.state.positionExact$;H(i,V,le=>t(43,n=le));let M=k.state.isInteractive,$=k.state.looped$;H(i,$,le=>t(4,o=le));let J=()=>{T.set(!1)},x=(le,oe)=>{if(!g||!h||!b)return;let Ce=g.getBoundingClientRect(),fe=h.getBoundingClientRect();t(2,y=le-fe.left),t(3,E=oe-fe.top),y+Ce.width>fe.width&&t(2,y=fe.width-Ce.width),E+Ce.height>fe.height&&t(3,E=fe.height-Ce.height),t(2,y=Math.max(y,0)),t(3,E=Math.max(E,0))},N=()=>{J(),k.actions.internal.videoRotate()},ie=()=>{window.open(f,"_blank"),J(),k.actions.internal.pause()},A=()=>{let le=k.actions.internal.getDebugTextData();if(v.features.saveDebugInfoToFile){let oe=new Blob([...le],{type:"plain/text"}),Ce=window.URL.createObjectURL(oe);Xl(Ce,"vk_player_debug_info","txt")}else Cl(k.actions.internal.getDebugTextData());J(),S?.()},Y=()=>{W.set(!0),J(),S?.()},Le=async()=>{try{Q?.isActive()?await Q?.remove():await Q?.request()}finally{J(),S?.()}},Ke=()=>{k.actions.internal.setLooped(!o),J()},ze=(le=!1)=>{if(k.callbacks?.onCopyVideoLink){let oe=k.callbacks?.onCopyVideoLink(le,n);oe&&Cl(oe)}J()},Ye=le=>{fr(le,J)},De=le=>{Ji(le,()=>ze())},ye=le=>{Ji(le,()=>ze(!0))},X=le=>{Ji(le,()=>Le())},ve=le=>{Ji(le,()=>N())},Ne=le=>{Ji(le,()=>ie())},Ze=le=>{Ji(le,()=>A())},Je=le=>{Ji(le,()=>Y())};function we(le){yn.call(this,i,le)}let Ve=()=>ze(),qe=()=>ze(!0);function Qe(le){pe[le?"unshift":"push"](()=>{g=le,t(0,g)})}return i.$$set=le=>{"visible"in le&&t(1,u=le.visible),"supportLink"in le&&t(34,f=le.supportLink),"position"in le&&t(35,p=le.position),"playerContainerRef"in le&&t(36,h=le.playerContainerRef),"controlsContainerRef"in le&&t(37,b=le.controlsContainerRef),"menuElementRef"in le&&t(0,g=le.menuElementRef),"returnFocus"in le&&t(38,S=le.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(g&&h&&b){let{top:le,left:oe,bottom:Ce,right:fe}=p,Ae=oe??0,We=le??0,at=g.getBoundingClientRect();(0,Tl.isNullable)(oe)&&!(0,Tl.isNullable)(fe)&&(Ae=fe-at.width),(0,Tl.isNullable)(le)&&!(0,Tl.isNullable)(Ce)&&(We=Ce-at.height),Ae=Math.max(Ae,0),We=Math.max(We,0),x(Ae,We)}}},[g,u,y,E,o,l,r,a,s,k,v,W,Q,G,re,ae,V,M,$,N,ie,A,Y,Le,Ke,ze,Ye,De,ye,X,ve,Ne,Ze,Je,f,p,h,b,S,we,Ve,qe,Qe]}var js=class extends U{constructor(e){super(),K(this,e,q2,z2,q,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},D2,[-1,-1])}},$f=js;var dr=class{constructor(e){this.value=e,this.next=null}};var il=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new dr(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 U2(i){ke(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function K2(i){let e,t;return{c(){e=I("div"),t=I("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){C(n,e,o),m(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&w(e),i[3](null)}}}var Ws=16,Gs=120,e1=60;function j2(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function W2(i,e,t){let{values:n=[]}=e,o,l,r=Gs/e1;Tt(()=>{t(0,o.width=Gs,o),t(0,o.height=Ws,o),t(2,l=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(l){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);l.clearRect(0,0,Gs,Ws);let f=e1-1;for(let p=n.length-1;p>=0;p--){let h=f*r,b=u>0?Ws*(n[p]/u):0;j2(l,h,0,r,b),s=b+" "+s,f--}}}},[o,n,l,a]}var Qs=class extends U{constructor(e){super(),K(this,e,W2,K2,q,{values:1},U2)}},mr=Qs;var Ys=require("@vkontakte/videoplayer-shared");function G2(i){ke(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 t1(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=F(),o=I("span"),r=Re(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&Ge(r,l)},d(a){a&&w(e)}}}function i1(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=F(),o=I("span"),r=Re(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&Ge(r,l)},d(a){a&&w(e)}}}function n1(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Viewport",n=F(),o=I("span"),r=Re(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&Ge(r,l)},d(a){a&&w(e)}}}function o1(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Video size",n=F(),o=I("span"),r=Re(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&Ge(r,l)},d(a){a&&w(e)}}}function l1(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="CDN host",n=F(),o=I("span"),r=Re(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&Ge(r,l)},d(a){a&&w(e)}}}function r1(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=I("div"),t=I("div"),t.textContent="Volume",n=F(),o=I("span"),r=Re(l),a=Re(" %"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),m(e,t),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&Ge(r,l)},d(s){s&&w(e)}}}function s1(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,a;return{c(){e=I("div"),t=I("div"),t.textContent="Buffer",n=F(),o=I("span"),r=Re(l),a=Re(" s"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),m(e,t),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&Ge(r,l)},d(s){s&&w(e)}}}function a1(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(f1).map(d1).join(" / ")+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Segment",n=F(),o=I("span"),r=Re(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=[{value:a[0].currentVideoSegmentLength,title:"Video"},{value:a[0].currentAudioSegmentLength,title:"Audio"}].filter(f1).map(d1).join(" / ")+"")&&Ge(r,l)},d(a){a&&w(e)}}}function u1(i){let e,t,n,o,l,r,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new mr({props:{values:i[5]}}),{c(){e=I("div"),t=I("div"),t.textContent="Network",n=F(),B(o.$$.fragment),l=F(),r=I("span"),s=Re(a),u=Re(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){C(p,e,h),m(e,t),m(e,n),L(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let b={};h&32&&(b.values=p[5]),o.$set(b),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&Ge(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&w(e),R(o)}}}function c1(i){let e,t,n,o,l,r,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new mr({props:{values:i[6]}}),{c(){e=I("div"),t=I("div"),t.textContent="V bitrate",n=F(),B(o.$$.fragment),l=F(),r=I("span"),s=Re(a),u=Re(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){C(p,e,h),m(e,t),m(e,n),L(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let b={};h&64&&(b.values=p[6]),o.$set(b),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&Ge(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&w(e),R(o)}}}function Q2(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,M,$,J,x,N,ie,A,Y,Le,Ke,ze,Ye,De,ye,X,ve=i[0].id&&t1(i),Ne=i[0].provider&&i1(i),Ze=i[0].viewport&&n1(i),Je=i[0].videoSize&&o1(i),we=i[0].cdn&&l1(i),Ve=i[0].volume&&r1(i),qe=i[0].buffer&&s1(i),Qe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&a1(i),le=i[0].speed&&u1(i),oe=i[0].bitrate&&c1(i);return Y=new mr({props:{values:i[4]}}),{c(){e=I("div"),t=I("button"),t.textContent="[x]",n=F(),o=I("div"),l=I("div"),r=I("div"),r.textContent="Version",a=F(),s=I("span"),f=Re(u),p=F(),ve&&ve.c(),h=F(),Ne&&Ne.c(),b=F(),Ze&&Ze.c(),g=F(),Je&&Je.c(),S=F(),we&&we.c(),y=F(),Ve&&Ve.c(),E=F(),qe&&qe.c(),k=F(),Qe&&Qe.c(),v=F(),T=I("div"),W=I("div"),W.textContent="Dropped",Q=F(),G=I("span"),re=Re(i[2]),ae=Re(" / "),V=Re(i[1]),M=Re(" frames"),$=F(),le&&le.c(),J=F(),oe&&oe.c(),x=F(),N=I("div"),ie=I("div"),ie.textContent="FPS",A=F(),B(Y.$$.fragment),Le=F(),Ke=I("span"),ze=Re(i[3]),c(t,"class","close svelte-1fypj5i"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-1fypj5i"),c(l,"class","svelte-1fypj5i"),c(W,"class","svelte-1fypj5i"),c(T,"class","svelte-1fypj5i"),c(ie,"class","svelte-1fypj5i"),c(N,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",Ye=j("aria_label_debug_panel")),z(e,"container-mobile",i[7])},m(Ce,fe){C(Ce,e,fe),m(e,t),m(e,n),m(e,o),m(o,l),m(l,r),m(l,a),m(l,s),m(s,f),m(o,p),ve&&ve.m(o,null),m(o,h),Ne&&Ne.m(o,null),m(o,b),Ze&&Ze.m(o,null),m(o,g),Je&&Je.m(o,null),m(o,S),we&&we.m(o,null),m(o,y),Ve&&Ve.m(o,null),m(o,E),qe&&qe.m(o,null),m(o,k),Qe&&Qe.m(o,null),m(o,v),m(o,T),m(T,W),m(T,Q),m(T,G),m(G,re),m(G,ae),m(G,V),m(G,M),m(o,$),le&&le.m(o,null),m(o,J),oe&&oe.m(o,null),m(o,x),m(o,N),m(N,ie),m(N,A),L(Y,N,null),m(N,Le),m(N,Ke),m(Ke,ze),De=!0,ye||(X=de(t,"click",rt(i[9])),ye=!0)},p(Ce,[fe]){(!De||fe&1)&&u!==(u=Ce[0].version+"")&&Ge(f,u),Ce[0].id?ve?ve.p(Ce,fe):(ve=t1(Ce),ve.c(),ve.m(o,h)):ve&&(ve.d(1),ve=null),Ce[0].provider?Ne?Ne.p(Ce,fe):(Ne=i1(Ce),Ne.c(),Ne.m(o,b)):Ne&&(Ne.d(1),Ne=null),Ce[0].viewport?Ze?Ze.p(Ce,fe):(Ze=n1(Ce),Ze.c(),Ze.m(o,g)):Ze&&(Ze.d(1),Ze=null),Ce[0].videoSize?Je?Je.p(Ce,fe):(Je=o1(Ce),Je.c(),Je.m(o,S)):Je&&(Je.d(1),Je=null),Ce[0].cdn?we?we.p(Ce,fe):(we=l1(Ce),we.c(),we.m(o,y)):we&&(we.d(1),we=null),Ce[0].volume?Ve?Ve.p(Ce,fe):(Ve=r1(Ce),Ve.c(),Ve.m(o,E)):Ve&&(Ve.d(1),Ve=null),Ce[0].buffer?qe?qe.p(Ce,fe):(qe=s1(Ce),qe.c(),qe.m(o,k)):qe&&(qe.d(1),qe=null),Ce[0].currentVideoSegmentLength||Ce[0].currentAudioSegmentLength?Qe?Qe.p(Ce,fe):(Qe=a1(Ce),Qe.c(),Qe.m(o,v)):Qe&&(Qe.d(1),Qe=null),(!De||fe&4)&&Ge(re,Ce[2]),(!De||fe&2)&&Ge(V,Ce[1]),Ce[0].speed?le?(le.p(Ce,fe),fe&1&&d(le,1)):(le=u1(Ce),le.c(),d(le,1),le.m(o,J)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),Ce[0].bitrate?oe?(oe.p(Ce,fe),fe&1&&d(oe,1)):(oe=c1(Ce),oe.c(),d(oe,1),oe.m(o,x)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),ce());let Ae={};fe&16&&(Ae.values=Ce[4]),Y.$set(Ae),(!De||fe&8)&&Ge(ze,Ce[3]),(!De||fe&128)&&z(e,"container-mobile",Ce[7])},i(Ce){De||(d(le),d(oe),d(Y.$$.fragment,Ce),De=!0)},o(Ce){_(le),_(oe),_(Y.$$.fragment,Ce),De=!1},d(Ce){Ce&&w(e),ve&&ve.d(),Ne&&Ne.d(),Ze&&Ze.d(),Je&&Je.d(),we&&we.d(),Ve&&Ve.d(),qe&&qe.d(),Qe&&Qe.d(),le&&le.d(),oe&&oe.d(),R(Y),ye=!1,X()}}}var f1=({value:i})=>i,d1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function Y2(i,e,t){let n,o=$e(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;H(i,r,v=>t(7,n=v));let a=()=>{Ys.safeStorage.remove(vl),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,b=new il(60),g=new il(60),S=new il(60),y=[],E=[],k=[];return Tt(()=>{Ys.safeStorage.set(vl,"true"),o.actions.internal.startLogging(),u&&(t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let v=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),T;return u&&(T=window.setInterval(()=>{if(u){t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let W=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=W-f),t(1,f=W),b.push(h),s.speed&&g.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,y=b.getValuesFromBottom()),t(5,E=g.getValuesFromBottom()),t(6,k=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(v),T&&clearInterval(T)}}),[s,f,p,h,y,E,k,n,r,a]}var Zs=class extends U{constructor(e){super(),K(this,e,Y2,Q2,q,{},G2)}},pr=Zs;function Z2(i){ke(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 X2(i){let e,t,n;return{c(){e=I("div"),c(e,"class","close svelte-1ome55p")},m(o,l){C(o,e,l),t||(n=de(e,"click",rt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&w(e),t=!1,n()}}}function J2(i){function e(t){yn.call(this,i,t)}return[e]}var Xs=class extends U{constructor(e){super(),K(this,e,J2,X2,q,{},Z2)}},m1=Xs;var p1=require("@vkontakte/videoplayer-shared");function x2(i){ke(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 $2(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("canvas"),n=F(),o=D("svg"),l=D("g"),r=D("g"),a=D("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(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"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){C(s,e,u),m(e,t),i[2](t),m(e,n),m(e,o),m(o,l),m(l,r),m(r,a)},p:me,i:me,o:me,d(s){s&&w(e),i[2](null)}}}var eh=5e3;function th(i,e,t){let{onTimerEnded:n=p1.noop}=e,o;Tt(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/eh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){pe[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Js=class extends U{constructor(e){super(),K(this,e,th,$2,q,{onTimerEnded:1},x2)}},_1=Js;function ih(i){ke(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 h1(i){let e,t;return e=new _1({props:{onTimerEnded:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function nh(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W;a=new m1({}),a.$on("click",i[4]);let Q=i[3]&&h1(i);return{c(){e=I("div"),t=F(),n=I("div"),o=I("div"),l=I("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=F(),B(a.$$.fragment),s=F(),u=I("div"),f=I("div"),p=I("div"),h=I("div"),b=F(),Q&&Q.c(),S=F(),y=I("div"),E=I("div"),k=Re(i[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(p,"class","thumb svelte-kisfwc"),c(p,"style",g=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(E,"class","title svelte-kisfwc"),c(y,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(G,re){C(G,e,re),C(G,t,re),C(G,n,re),m(n,o),m(o,l),m(o,r),L(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,b),Q&&Q.m(p,null),m(u,S),m(u,y),m(y,E),m(E,k),v=!0,T||(W=de(u,"click",function(){Si(i[2])&&i[2].apply(this,arguments)}),T=!0)},p(G,[re]){i=G,i[3]?Q?(Q.p(i,re),re&8&&d(Q,1)):(Q=h1(i),Q.c(),d(Q,1),Q.m(p,null)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),(!v||re&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!v||re&1)&&Ge(k,i[0])},i(G){v||(d(a.$$.fragment,G),d(Q),v=!0)},o(G){_(a.$$.fragment,G),_(Q),v=!1},d(G){G&&(w(e),w(t),w(n)),R(a),Q&&Q.d(),T=!1,W()}}}function oh(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>t(3,r=!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,l=s.playNextVideo)},[n,o,l,r,a]}var xs=class extends U{constructor(e){super(),K(this,e,oh,nh,q,{title:0,thumb:1,playNextVideo:2},ih)}},g1=xs;var co=require("@vkontakte/videoplayer-core"),b1=require("@vkontakte/videoplayer-shared"),cn=require("@vkontakte/videoplayer-statistics");var $s=(i,e)=>Math.min(+(i+e).toFixed(2),1),ea=(i,e)=>Math.max(+(i-e).toFixed(2),0),_r=(i,e,t)=>{let n=$s(e,t);e<1&&i.actions.internal.setVolume(n)},hr=(i,e,t)=>{let n=ea(e,t);e>0&&i.actions.internal.setVolume(n)};var uo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function rh(i){ke(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function sh(i){let e,t,n,o,l,r=i[26].default,a=Pe(r,i,i[25],null);return{c(){e=I("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=j("aria_label_video_player"))},m(s,u){C(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Te(a,r,s,s[25],n?Ie(r,s[25],u,null):Ee(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&w(e),a&&a.d(s),i[27](null),o=!1,et(l)}}}function ah(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,{$$slots:k={},$$scope:v}=e,{isAds:T}=e,{hideContextMenu:W}=e,{toggleFullscreen:Q}=e,{showHotKeyHelpers:G}=e,{showKeyMap:re}=e,{fakePlayButtonHandler:ae}=e,V=$e(),M=Lt(),$=V.getLogger().createComponentLog("KeyboardControls component"),J=V.state.playbackState$;H(i,J,be=>t(31,o=be));let x=V.ads.playbackState;H(i,x,be=>t(30,n=be));let N=V.state.positionExact$;H(i,N,be=>t(41,g=be));let ie=V.state.duration$;H(i,ie,be=>t(40,b=be));let A=V.state.volume$;H(i,A,be=>t(44,E=be));let Y=V.ui.controls.disabledControls$;H(i,Y,be=>t(39,h=be));let Le=V.state.muted$;H(i,Le,be=>t(34,a=be));let Ke=V.state.currentSubtitle$;H(i,Ke,be=>t(33,r=be));let ze=V.state.currentPlaybackRate$;H(i,ze,be=>t(42,S=be));let Ye=V.state.availablePlaybackRates$;H(i,Ye,be=>t(43,y=be));let De=V.ui.contextMenu.openedByHotKey$,ye=V.ui.contextMenu.lastActiveElem$,X=V.ui.contextMenu.visible$,ve=V.ui.contextMenu.position$,Ne=V.state.isEnded$;H(i,Ne,be=>t(36,u=be));let Ze=V.ui.overlayContainer$;H(i,Ze,be=>t(32,l=be));let Je=V.callbacks?.onAudioDoesNotExistHint,we=V.callbacks?.onAudioDisabledHint,Ve=V.state.isAudioAvailable$;H(i,Ve,be=>t(35,s=be));let qe=V.state.isAudioDisabled,Qe=V.state.isInteractiveTime$;H(i,Qe,be=>t(38,p=be));let{showInteractiveTimeIndicatorTooltip$:le}=Tn();H(i,le,be=>t(37,f=be));let oe=0,Ce=!0,fe,Ae=()=>fe?.focus(),We=be=>(be!==Ce&&(Ce=be,oe=0),oe+=1,(M.controls.seekStepKeyboard+M.controls.seekStepKeyboard*oe)/1e3),at=be=>{let mt=be.target,it=mt?.getAttribute("role")?.includes("menuitem"),ft=mt.classList.contains("btn"),yt=be.code;if(ft&&yt==="Space")return;let Mt=Jc.has(yt);if(it&&Mt)return;let je=!Xc.has(yt);if(be.ctrlKey&&je||be.altKey&&je||be.metaKey)return;let Bt=it&&yt==="Escape";xc.has(yt)||Bt||W();let Dt=o===co.PlaybackState.PLAYING||o===co.PlaybackState.PAUSED,Nt=T&&(n==="paused"||n==="playing"),ni=!Nt&&!h.has("TIMELINE");if(Dt||Nt)switch($({message:`key down, code: ${yt}`}),yt){case"KeyJ":case"ArrowLeft":{if(!ni)break;if(be.ctrlKey||be.altKey){let tt=V.actions.internal.getPrevEpisode();V.actions.internal.seekToPrevEpisode(tt),tt&&G({type:"EPISODE_PREV",text:tt.text}),be.preventDefault()}else{let tt=be.shiftKey?We(!1):M.controls.seekStepKeyboard/1e3,pt=Math.max(g-tt,0);g>0&&(V.actions.internal.seekTime(pt,cn.SeekAction.DOUBLE_TAP),G({type:"BACKWARD_SEEK",text:tt.toString()}),be.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ni)break;if(be.ctrlKey||be.altKey){let tt=V.actions.internal.getNextEpisode();V.actions.internal.seekToNextEpisode(tt),tt&&G({type:"EPISODE_NEXT",text:tt.text}),be.preventDefault()}else{let tt=be.shiftKey?We(!0):M.controls.seekStepKeyboard/1e3,pt=Math.min(g+tt,b);Math.round(g)<Math.round(b)&&(V.actions.internal.seekTime(pt,cn.SeekAction.DOUBLE_TAP),G({type:"FORWARD_SEEK",text:tt.toString()}),be.preventDefault())}break}case"ArrowUp":{if(uo({isAudioDisabled:qe,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:Je})){let tt=E,pt=M.controls.volumeStepKeyboard,_e=tt<=1;if(_r(V,tt,pt),_e){let ht=Math.round($s(tt,pt)*100).toString();G({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ht}})}}be.preventDefault();break}case"ArrowDown":{if(uo({isAudioDisabled:qe,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:Je})){let tt=E,pt=M.controls.volumeStepKeyboard,_e=tt>=0;if(hr(V,tt,pt),_e){let ht=Math.round(ea(tt,pt)*100).toString();G({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ht}})}}be.preventDefault();break}case"Comma":{if(be.shiftKey){V.actions.internal.decrementPlaybackRate();let tt=y.find(pt=>pt.value===S);G({type:"RATE_DOWN",text:tt?.displayValue}),be.preventDefault()}else{if(Nt||o!==co.PlaybackState.PAUSED)break;let tt=Math.max(g-M.controls.seekStepFrame/1e3,0);g>0&&(G({type:"BACKWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(tt,cn.SeekAction.DOUBLE_TAP),be.preventDefault())}break}case"Period":{if(be.shiftKey){V.actions.internal.incrementPlaybackRate();let tt=y.find(pt=>pt.value===S);G({type:"RATE_UP",text:tt?.displayValue}),be.preventDefault()}else{if(Nt||o!==co.PlaybackState.PAUSED)break;let tt=Math.min(g+M.controls.seekStepFrame/1e3,b);g<b&&(G({type:"FORWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(tt,cn.SeekAction.DOUBLE_TAP),be.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&le.set(!1),ae)ae();else{V.actions.internal.togglePlay();let tt="PLAY";o===co.PlaybackState.PAUSED?tt="PAUSE":u&&(tt="REPLAY"),G({type:tt})}be.preventDefault();break;case"KeyM":{uo({isAudioDisabled:qe,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:Je})&&(G({type:a?"VOLUME":"MUTE"}),V.actions.internal.toggleMuted()),be.preventDefault();break}case"KeyF":Q(),be.preventDefault();break;case"KeyC":V.actions.internal.toggleSubtitle(),r.value!=="off"?G({type:"SUBTITLES_ON",text:r?.displayValue}):G({type:"SUBTITLES_OFF"}),be.preventDefault();break;case"KeyI":V.actions.internal.togglePictureInPicture(),be.preventDefault();break;case"Digit1":case"Numpad1":if(be.shiftKey){let tt=Yf(l);ve.set(tt),ye.set(mt),De.set(!0),X.set(!0),be.preventDefault();break}G(),V.actions.internal.seekToPercent(.1,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit2":case"Numpad2":G(),V.actions.internal.seekToPercent(.2,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit3":case"Numpad3":G(),V.actions.internal.seekToPercent(.3,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit4":case"Numpad4":G(),V.actions.internal.seekToPercent(.4,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit5":case"Numpad5":G(),V.actions.internal.seekToPercent(.5,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit6":case"Numpad6":G(),V.actions.internal.seekToPercent(.6,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit7":case"Numpad7":G(),V.actions.internal.seekToPercent(.7,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit8":case"Numpad8":G(),V.actions.internal.seekToPercent(.8,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit9":case"Numpad9":G(),V.actions.internal.seekToPercent(.9,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Digit0":case"Numpad0":G(),V.actions.internal.seekToPercent(0,cn.SeekAction.DOUBLE_TAP),be.preventDefault();break;case"Slash":{be.shiftKey&&M.features.hotKeyMapModal&&(re(),be.preventDefault());break}case"ShiftLeft":case"ShiftRight":be.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,b1.checkNever)(yt);break}},ut=be=>{let mt=be.code;if(be.ctrlKey||be.altKey||be.metaKey)return;let it=o===co.PlaybackState.PLAYING||o===co.PlaybackState.PAUSED,ft=T&&(n==="paused"||n==="playing");if(it||ft)switch(mt){case"ShiftLeft":case"ShiftRight":oe=0;break}};function st(be){pe[be?"unshift":"push"](()=>{fe=be,t(0,fe)})}return i.$$set=be=>{"isAds"in be&&t(18,T=be.isAds),"hideContextMenu"in be&&t(19,W=be.hideContextMenu),"toggleFullscreen"in be&&t(20,Q=be.toggleFullscreen),"showHotKeyHelpers"in be&&t(21,G=be.showHotKeyHelpers),"showKeyMap"in be&&t(22,re=be.showKeyMap),"fakePlayButtonHandler"in be&&t(23,ae=be.fakePlayButtonHandler),"$$scope"in be&&t(25,v=be.$$scope)},[fe,J,x,N,ie,A,Y,Le,Ke,ze,Ye,Ne,Ze,Ve,Qe,le,at,ut,T,W,Q,G,re,ae,Ae,v,k,st]}var ta=class extends U{constructor(e){super(),K(this,e,ah,sh,q,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},rh,[-1,-1])}get focus(){return this.$$.ctx[24]}},v1=ta;function uh(i){ke(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 ch(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',c(e,"class","container svelte-8nkw5s")},m(t,n){C(t,e,n)},p:me,i:me,o:me,d(t){t&&w(e)}}}var ia=class extends U{constructor(e){super(),K(this,e,null,ch,q,{},uh)}},gr=ia;function fh(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S=i[2].default,y=Pe(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],k={};for(let v=0;v<E.length;v+=1)k=ne(k,E[v]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),p=D("feColorMatrix"),h=D("feBlend"),b=D("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2422_111980"),c(b,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ge(e,k)},m(v,T){C(v,e,T),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,b),g=!0},p(v,[T]){y&&y.p&&(!g||T&2)&&Te(y,S,v,v[1],g?Ie(S,v[1],T,null):Ee(v[1]),null),ge(e,k=Me(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},T&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&w(e),y&&y.d(v)}}}function dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var na=class extends U{constructor(e){super(),K(this,e,dh,fh,q,{})}},y1=na;var Kn=require("@vkontakte/videoplayer-shared");function mh(i){ke(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 ph(i){let e,t,n,o,l,r,a,s,u,f,p,h,b=i[14].default,g=Pe(b,i,i[13],null);return{c(){e=I("button"),g&&g.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",l=i[5]??null),c(e,"aria-label",r=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(S,y){C(S,e,y),g&&g.m(e,null),i[16](e),f=!0,p||(h=[de(e,"pointerdown",rt(It(i[15]))),de(e,"click",rt(It(function(){Si(i[10]===Kn.noop?null:i[10])&&(i[10]===Kn.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",It(function(){Si(i[11]===Kn.noop?null:i[11])&&(i[11]===Kn.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",It(function(){Si(i[12]===Kn.noop?null:i[12])&&(i[12]===Kn.noop?null:i[12]).apply(this,arguments)}))],p=!0)},p(S,[y]){i=S,g&&g.p&&(!f||y&8192)&&Te(g,b,i,i[13],f?Ie(b,i[13],y,null):Ee(i[13]),null),(!f||y&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||y&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||y&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||y&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||y&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||y&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||y&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||y&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||y&512)&&c(e,"tabindex",i[9])},i(S){f||(d(g,S),f=!0)},o(S){_(g,S),f=!1},d(S){S&&w(e),g&&g.d(S),i[16](null),p=!1,et(h)}}}function _h(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:b=void 0}=e,{tabIndex:g=0}=e,{click:S=Kn.noop}=e,{focus:y=Kn.noop}=e,{blur:E=Kn.noop}=e;function k(T){yn.call(this,i,T)}function v(T){pe[T?"unshift":"push"](()=>{p=T,t(0,p)})}return i.$$set=T=>{"className"in T&&t(1,l=T.className),"style"in T&&t(2,r=T.style),"disabled"in T&&t(3,a=T.disabled),"testId"in T&&t(4,s=T.testId),"ariaHidden"in T&&t(5,u=T.ariaHidden),"ariaLabel"in T&&t(6,f=T.ariaLabel),"ref"in T&&t(0,p=T.ref),"ariaKeyShortCut"in T&&t(7,h=T.ariaKeyShortCut),"ariaExpanded"in T&&t(8,b=T.ariaExpanded),"tabIndex"in T&&t(9,g=T.tabIndex),"click"in T&&t(10,S=T.click),"focus"in T&&t(11,y=T.focus),"blur"in T&&t(12,E=T.blur),"$$scope"in T&&t(13,o=T.$$scope)},[p,l,r,a,s,u,f,h,b,g,S,y,E,o,n,k,v]}var oa=class extends U{constructor(e){super(),K(this,e,_h,ph,q,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},mh)}},_t=oa;function hh(i){ke(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 w1(i){let e,t,n,o,l,r=i[2]&&k1(i);return{c(){e=I("div"),t=I("h3"),n=Re(i[3]),o=F(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){C(a,e,s),m(e,t),m(t,n),m(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&Ge(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=k1(a),r.c(),d(r,1),r.m(e,null)):r&&(ue(),_(r,1,1,()=>{r=null}),ce())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&w(e),r&&r.d()}}}function k1(i){let e,t;return e=new _t({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[gh]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gh(i){let e,t;return e=new y1({}),{c(){B(e.$$.fragment)},m(n,o){L(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 bh(i){let e,t,n,o,l,r,a=i[1]&&w1(i),s=i[4].default,u=Pe(s,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=F(),o=I("div"),l=I("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){C(f,e,p),m(e,t),a&&a.m(t,null),m(t,n),m(t,o),m(o,l),u&&u.m(l,null),r=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=w1(f),a.c(),d(a,1),a.m(t,n)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!r||p&32)&&Te(u,s,f,f[5],r?Ie(s,f[5],p,null):Ee(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){_(a),_(u,f),r=!1},d(f){f&&w(e),a&&a.d(),u&&u.d(f)}}}function vh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,l=u.onClose),"showHeader"in u&&t(1,r=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)},[l,r,a,s,n,o]}var la=class extends U{constructor(e){super(),K(this,e,vh,bh,q,{onClose:0,showHeader:1,showCloseCross:2,title:3},hh)}},C1=la;var yh=new Set(["BR"]),ra=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;yh.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function wh(i){ke(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function S1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function P1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function I1(i){let e,t,n=ra(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=I("li"),t=I("span"),o=F(),l=I("span"),a=Re(r),s=F(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){C(u,e,f),m(e,t),t.innerHTML=n,m(e,o),m(e,l),m(l,a),m(e,s)},p(u,f){f&1&&n!==(n=ra(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&Ge(a,r)},d(u){u&&w(e)}}}function T1(i){let e,t,n=i[5]+"",o,l,r,a,s=wt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=I1(P1(i,s,f));return{c(){e=I("div"),t=I("h5"),o=Re(n),l=F(),r=I("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=F(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){C(f,e,p),m(e,t),m(t,o),m(e,l),m(e,r);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(r,null);m(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&Ge(o,n),p&1){s=wt(f[6]);let h;for(h=0;h<s.length;h+=1){let b=P1(f,s,h);u[h]?u[h].p(b,p):(u[h]=I1(b),u[h].c(),u[h].m(r,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&w(e),Fi(u,f)}}}function kh(i){let e,t=wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=T1(S1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){C(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){t=wt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=S1(o,t,r);n[r]?n[r].p(a,l):(n[r]=T1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&w(e),Fi(n,o)}}}function Ch(i){let e,t;return e=new C1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[kh]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sh(i,e,t){let n,o=$e(),{data:l,show:r}=o.ui.modals.hotKeyMap;return H(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var sa=class extends U{constructor(e){super(),K(this,e,Sh,Ch,q,{},wh)}},E1=sa;var Jr=require("@vkontakte/videoplayer-shared");var Bo=require("@vkontakte/videoplayer-core");var _d=require("@vkontakte/videoplayer-core");var dk=require("@vkontakte/videoplayer-shared");function Ph(i){ke(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 Ih(i){let e,t,n=i[1].default,o=Pe(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){C(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Te(o,n,l,l[0],t?Ie(n,l[0],r,null):Ee(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&w(e),o&&o.d(l)}}}function Th(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var aa=class extends U{constructor(e){super(),K(this,e,Th,Ih,q,{},Ph)}},A1=aa;var nl=require("@vkontakte/videoplayer-core");function Eh(i){let e,t,n,o,l=i[2].default,r=Pe(l,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=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Me(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&w(e),r&&r.d(u)}}}function Ah(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ua=class extends U{constructor(e){super(),K(this,e,Ah,Eh,q,{})}},M1=ua;function Mh(i){let e,t,n,o,l=i[2].default,r=Pe(l,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=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Me(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&w(e),r&&r.d(u)}}}function Vh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ca=class extends U{constructor(e){super(),K(this,e,Vh,Mh,q,{})}},V1=ca;function Lh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","currentColor"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Rh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var fa=class extends U{constructor(e){super(),K(this,e,Rh,Lh,q,{})}},L1=fa;function Bh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","currentColor"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var da=class extends U{constructor(e){super(),K(this,e,Dh,Bh,q,{})}},br=da;function Nh(i){let e,t,n,o,l=i[2].default,r=Pe(l,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=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Me(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&w(e),r&&r.d(u)}}}function Oh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ma=class extends U{constructor(e){super(),K(this,e,Oh,Nh,q,{})}},vr=ma;var fo=i=>{switch(i){case nl.VideoQuality.Q_720P:return L1;case nl.VideoQuality.Q_1080P:return br;case nl.VideoQuality.Q_1440P:return vr;case nl.VideoQuality.Q_2160P:return M1;case nl.VideoQuality.Q_4320P:return V1}};function Fh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Hh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var pa=class extends U{constructor(e){super(),K(this,e,Hh,Fh,q,{})}},R1=pa;function zh(i){let e,t,n,o,l=i[2].default,r=Pe(l,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=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),c(n,"class","_full"),ge(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Me(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&w(e),r&&r.d(u)}}}function qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var _a=class extends U{constructor(e){super(),K(this,e,qh,zh,q,{})}},B1=_a;function Uh(i){ke(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 Kh(i){let e,t,n,o,l=i[1]&&D1(i);return n=new B1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),l&&l.c(),t=F(),B(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),z(e,"triple",i[2])},m(r,a){C(r,e,a),l&&l.m(e,null),m(e,t),L(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=D1(r),l.c(),d(l,1),l.m(e,t)):l&&(ue(),_(l,1,1,()=>{l=null}),ce());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&z(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){_(l),_(n.$$.fragment,r),o=!1},d(r){r&&w(e),l&&l.d(),R(n)}}}function jh(i){let e,t;return e=new R1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function D1(i){let e,t;return e=new A1({props:{$$slots:{default:[Wh]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},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 l(r){return{}}return o&&(e=hn(o,l(i))),{c(){e&&B(e.$$.fragment),t=lt()},m(r,a){e&&L(e,r,a),C(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ue();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(e=hn(o,l(r)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&_(e.$$.fragment,r),n=!1},d(r){r&&w(t),e&&R(e,r)}}}function Gh(i){let e,t,n,o,l=[jh,Kh],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[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&&w(n),r[e].d(s)}}}function Qh(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,l=a.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=fo(l));if(i.$$.dirty&2)e:t(2,r=!!n&&[br,vr].includes(n))},[o,n,r,l]}var ha=class extends U{constructor(e){super(),K(this,e,Qh,Gh,q,{isMobile:0,currentQuality:3},Uh)}},yr=ha;function Yh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ga=class extends U{constructor(e){super(),K(this,e,Zh,Yh,q,{})}},wr=ga;function Xh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ba=class extends U{constructor(e){super(),K(this,e,Jh,Xh,q,{})}},N1=ba;function xh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function $h(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var va=class extends U{constructor(e){super(),K(this,e,$h,xh,q,{})}},O1=va;function eg(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,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 f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Me(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&w(e),a&&a.d(f)}}}function tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ya=class extends U{constructor(e){super(),K(this,e,tg,eg,q,{})}},F1=ya;function ig(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function ng(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var wa=class extends U{constructor(e){super(),K(this,e,ng,ig,q,{})}},H1=wa;function og(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ka=class extends U{constructor(e){super(),K(this,e,lg,og,q,{})}},z1=ka;function rg(i){let e,t;return e=new z1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},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;return e=new H1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ag(i){let e,t,n,o,l=[sg,rg],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[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&&w(n),r[e].d(s)}}}function ug(i,e,t){let n,{direction:o="left"}=e,l,r;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o));if(i.$$.dirty&1)e:t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var Ca=class extends U{constructor(e){super(),K(this,e,ug,ag,q,{direction:3})}},jn=Ca;function cg(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function fg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Sa=class extends U{constructor(e){super(),K(this,e,fg,cg,q,{})}},q1=Sa;function dg(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Pa=class extends U{constructor(e){super(),K(this,e,mg,dg,q,{})}},ol=Pa;function pg(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ia=class extends U{constructor(e){super(),K(this,e,_g,pg,q,{})}},U1=Ia;function hg(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ta=class extends U{constructor(e){super(),K(this,e,gg,hg,q,{})}},K1=Ta;function bg(i){ke(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 j1(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 Q1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b=i[34]&&Y1(i),g=i[25]&&Z1(i),S=i[24]&&J1(i),y=i[23]&&x1(i),E=i[22]&&$1(i),k=i[21]&&ed(i),v=i[34]&&td(i);return{c(){e=I("div"),b&&b.c(),t=F(),n=I("ul"),g&&g.c(),o=F(),S&&S.c(),l=F(),y&&y.c(),r=F(),E&&E.c(),a=F(),k&&k.c(),s=F(),v&&v.c(),c(n,"class","items svelte-8jolw5"),c(n,"role","menu"),c(n,"style",u=i[73]()),z(n,"items-mobile",i[34]),c(e,"class","menu svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34]),z(e,"hidden",!i[11])},m(T,W){C(T,e,W),b&&b.m(e,null),m(e,t),m(e,n),g&&g.m(n,null),m(n,o),S&&S.m(n,null),m(n,l),y&&y.m(n,null),m(n,r),E&&E.m(n,null),m(n,a),k&&k.m(n,null),m(n,s),v&&v.m(n,null),i[112](n),f=!0,p||(h=[de(e,"keydown",i[78]),de(e,"mouseenter",i[71]),de(e,"mouseleave",i[72])],p=!0)},p(T,W){T[34]?b?b.p(T,W):(b=Y1(T),b.c(),b.m(e,t)):b&&(b.d(1),b=null),T[25]?g?(g.p(T,W),W[0]&33554432&&d(g,1)):(g=Z1(T),g.c(),d(g,1),g.m(n,o)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),T[24]?S?(S.p(T,W),W[0]&16777216&&d(S,1)):(S=J1(T),S.c(),d(S,1),S.m(n,l)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),T[23]?y?(y.p(T,W),W[0]&8388608&&d(y,1)):(y=x1(T),y.c(),d(y,1),y.m(n,r)):y&&(ue(),_(y,1,1,()=>{y=null}),ce()),T[22]?E?(E.p(T,W),W[0]&4194304&&d(E,1)):(E=$1(T),E.c(),d(E,1),E.m(n,a)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),T[21]?k?(k.p(T,W),W[0]&2097152&&d(k,1)):(k=ed(T),k.c(),d(k,1),k.m(n,s)):k&&(ue(),_(k,1,1,()=>{k=null}),ce()),T[34]?v?(v.p(T,W),W[1]&8&&d(v,1)):(v=td(T),v.c(),d(v,1),v.m(n,null)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),(!f||W[1]&8)&&z(n,"items-mobile",T[34]),(!f||W[1]&8)&&z(e,"menu-desktop",!T[34]),(!f||W[1]&8)&&z(e,"menu-mobile",T[34]),(!f||W[0]&2048)&&z(e,"hidden",!T[11])},i(T){f||(d(g),d(S),d(y),d(E),d(k),d(v),f=!0)},o(T){_(g),_(S),_(y),_(E),_(k),_(v),f=!1},d(T){T&&w(e),b&&b.d(),g&&g.d(),S&&S.d(),y&&y.d(),E&&E.d(),k&&k.d(),v&&v.d(),i[112](null),p=!1,et(h)}}}function Y1(i){let e,t,n,o,l,r,a,s;return{c(){e=I("div"),t=I("div"),t.textContent=`${j("submenu_settings")}`,n=F(),o=I("div"),l=F(),r=I("div"),c(o,"class","close svelte-8jolw5"),c(e,"class","item menu-header svelte-8jolw5"),z(e,"item-mobile",i[34]),c(r,"class","menu-divider svelte-8jolw5")},m(u,f){C(u,e,f),m(e,t),m(e,n),m(e,o),C(u,l,f),C(u,r,f),a||(s=de(o,"click",rt(i[57])),a=!0)},p(u,f){f[1]&8&&z(e,"item-mobile",u[34])},d(u){u&&(w(e),w(l),w(r)),a=!1,s()}}}function Z1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b;n=new yr({});let g=i[33]&&!i[34]&&X1(i);return{c(){e=I("li"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("menu_quality")}`,r=F(),a=I("div"),s=Re(i[16]),u=F(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_quality",{actual:i[27]})),c(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(S,y){C(S,e,y),m(e,t),L(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),i[108](e),p=!0,h||(b=[de(e,"click",rt(i[58])),de(e,"keydown",i[79])],h=!0)},p(S,y){(!p||y[0]&65536)&&Ge(s,S[16]),S[33]&&!S[34]?g?(g.p(S,y),y[1]&12&&d(g,1)):(g=X1(S),g.c(),d(g,1),g.m(a,null)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||y[0]&134217728&&f!==(f=j("aria_label_menu_quality",{actual:S[27]})))&&c(e,"aria-label",f),(!p||y[1]&8)&&z(e,"item-mobile",S[34])},i(S){p||(d(n.$$.fragment,S),d(g),p=!0)},o(S){_(n.$$.fragment,S),_(g),p=!1},d(S){S&&w(e),R(n),g&&g.d(),i[108](null),h=!1,et(b)}}}function X1(i){let e,t,n;var o=i[33];function l(r){return{}}return o&&(t=hn(o,l(i))),{c(){e=I("div"),t&&B(t.$$.fragment),c(e,"class","menu-valueIcon svelte-8jolw5")},m(r,a){C(r,e,a),t&&L(t,e,null),n=!0},p(r,a){if(a[1]&4&&o!==(o=r[33])){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=hn(o,l(r)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&w(e),t&&R(t)}}}function J1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b;return n=new F1({}),{c(){e=I("li"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("menu_playback_rate")}`,r=F(),a=I("div"),s=Re(i[9]),u=Re("x"),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_rate",{actual:i[28]})),c(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(g,S){C(g,e,S),m(e,t),L(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),i[109](e),p=!0,h||(b=[de(e,"click",rt(It(i[62]))),de(e,"keydown",i[82])],h=!0)},p(g,S){(!p||S[0]&512)&&Ge(s,g[9]),(!p||S[0]&268435456&&f!==(f=j("aria_label_menu_rate",{actual:g[28]})))&&c(e,"aria-label",f),(!p||S[1]&8)&&z(e,"item-mobile",g[34])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&w(e),R(n),i[109](null),h=!1,et(b)}}}function x1(i){let e,t,n,o,l,r,a,s=i[35].displayValue+"",u,f,p,h,b;return n=new wr({}),{c(){e=I("li"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("subtitles_caption")}`,r=F(),a=I("div"),u=Re(s),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_subtitle",{actual:i[35].displayValue})),c(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(g,S){C(g,e,S),m(e,t),L(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[110](e),p=!0,h||(b=[de(e,"click",rt(i[64])),de(e,"keydown",i[85])],h=!0)},p(g,S){(!p||S[1]&16)&&s!==(s=g[35].displayValue+"")&&Ge(u,s),(!p||S[1]&16&&f!==(f=j("aria_label_menu_subtitle",{actual:g[35].displayValue})))&&c(e,"aria-label",f),(!p||S[1]&8)&&z(e,"item-mobile",g[34])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&w(e),R(n),i[110](null),h=!1,et(b)}}}function $1(i){let e,t,n,o,l,r,a,s,u,f,p,h;return n=new O1({}),{c(){e=I("li"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("menu_traffic_saving")}`,r=F(),a=I("div"),s=Re(i[26]),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=j("aria_label_menu_traffic_saving",{actual:i[26]})),c(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(b,g){C(b,e,g),m(e,t),L(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),i[111](e),f=!0,p||(h=[de(e,"click",rt(i[59])),de(e,"keydown",i[88])],p=!0)},p(b,g){(!f||g[0]&67108864)&&Ge(s,b[26]),(!f||g[0]&67108864&&u!==(u=j("aria_label_menu_traffic_saving",{actual:b[26]})))&&c(e,"aria-label",u),(!f||g[1]&8)&&z(e,"item-mobile",b[34])},i(b){f||(d(n.$$.fragment,b),f=!0)},o(b){_(n.$$.fragment,b),f=!1},d(b){b&&w(e),R(n),i[111](null),p=!1,et(h)}}}function ed(i){let e,t,n,o,l,r,a,s,u;return n=new N1({}),{c(){e=I("li"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=j("aria_label_menu_download")),z(e,"item-mobile",i[34])},m(f,p){C(f,e,p),m(e,t),L(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[de(e,"click",rt(i[67])),de(e,"keydown",i[91])],s=!0)},p(f,p){(!a||p[1]&8)&&z(e,"item-mobile",f[34])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&w(e),R(n),s=!1,et(u)}}}function td(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k=i[37].showSupport&&vg(i);return o=new U1({}),p=new K1({}),{c(){k&&k.c(),e=F(),t=I("li"),n=I("div"),B(o.$$.fragment),l=F(),r=I("div"),r.textContent=`${j("menu_copy_debug")}`,s=F(),u=I("li"),f=I("div"),B(p.$$.fragment),h=F(),b=I("div"),b.textContent=`${j("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-8jolw5"),c(r,"class","menu-title svelte-8jolw5"),c(t,"class","item item-mobile svelte-8jolw5"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=j("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-8jolw5"),c(b,"class","menu-title svelte-8jolw5"),c(u,"class","item item-mobile svelte-8jolw5"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",g=i[36]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))},m(v,T){k&&k.m(v,T),C(v,e,T),C(v,t,T),m(t,n),L(o,n,null),m(t,l),m(t,r),C(v,s,T),C(v,u,T),m(u,f),L(p,f,null),m(u,h),m(u,b),S=!0,y||(E=[de(t,"click",rt(i[69])),de(t,"keydown",i[93]),de(u,"click",rt(i[70])),de(u,"keydown",i[94])],y=!0)},p(v,T){v[37].showSupport&&k.p(v,T),(!S||T[1]&32&&g!==(g=v[36]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",g)},i(v){S||(d(k),d(o.$$.fragment,v),d(p.$$.fragment,v),S=!0)},o(v){_(k),_(o.$$.fragment,v),_(p.$$.fragment,v),S=!1},d(v){v&&(w(e),w(t),w(s),w(u)),k&&k.d(v),R(o),R(p),y=!1,et(E)}}}function vg(i){let e,t,n,o,l,r,a,s,u;return n=new q1({}),{c(){e=I("li"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(e,"class","item item-mobile svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`)},m(f,p){C(f,e,p),m(e,t),L(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[de(e,"click",rt(i[68])),de(e,"keydown",i[92])],s=!0)},p:me,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&w(e),R(n),s=!1,et(u)}}}function id(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g;n=new jn({props:{direction:"left"}});let S=wt(i[8]),y=[];for(let k=0;k<S.length;k+=1)y[k]=ld(G1(i,S,k));let E=k=>_(y[k],1,1,()=>{y[k]=null});return{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("submenu_quality")}`,a=F(),s=I("div"),u=F(),f=I("ul");for(let k=0;k<y.length;k+=1)y[k].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),z(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(f,"class","items svelte-8jolw5"),c(f,"role","menu"),c(f,"style",p=i[73](i[17]?.clientHeight,!0)),z(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(k,v){C(k,e,v),m(e,t),L(n,t,null),m(t,o),m(t,l),i[113](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let T=0;T<y.length;T+=1)y[T]&&y[T].m(f,null);i[116](f),h=!0,b||(g=[de(t,"click",rt(i[66])),de(f,"keydown",i[80])],b=!0)},p(k,v){if((!h||v[1]&8)&&z(t,"item-mobile",k[34]),v[0]&256|v[1]&536870920|v[2]&524288){S=wt(k[8]);let T;for(T=0;T<S.length;T+=1){let W=G1(k,S,T);y[T]?(y[T].p(W,v),d(y[T],1)):(y[T]=ld(W),y[T].c(),d(y[T],1),y[T].m(f,null))}for(ue(),T=S.length;T<y.length;T+=1)E(T);ce()}(!h||v[0]&131072&&p!==(p=k[73](k[17]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&8)&&z(f,"items-mobile",k[34]),(!h||v[1]&8)&&z(e,"menu-desktop",!k[34]),(!h||v[1]&8)&&z(e,"menu-mobile",k[34])},i(k){if(!h){d(n.$$.fragment,k);for(let v=0;v<S.length;v+=1)d(y[v]);h=!0}},o(k){_(n.$$.fragment,k),y=y.filter(Boolean);for(let v=0;v<y.length;v+=1)_(y[v]);h=!1},d(k){k&&w(e),R(n),i[113](null),Fi(y,k),i[116](null),b=!1,et(g)}}}function nd(i){let e,t,n;return t=new ol({}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function od(i){let e,t,n;var o=fo(i[148].value);function l(r){return{}}return o&&(t=hn(o,l(i))),{c(){e=I("div"),t&&B(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-8jolw5")},m(r,a){C(r,e,a),t&&L(t,e,null),n=!0},p(r,a){if(a[0]&256&&o!==(o=fo(r[148].value))){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=hn(o,l(r)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&w(e),t&&R(t)}}}function ld(i){let e,t,n,o=i[148].displayValue+"",l,r,a=!i[34]&&fo(i[148].value),s,u,f,p,h,b,g=i[148].selected&&nd(i),S=a&&od(i);function y(){return i[114](i[148])}function E(...k){return i[115](i[148],...k)}return{c(){e=I("li"),g&&g.c(),t=F(),n=I("div"),l=Re(o),r=F(),S&&S.c(),s=F(),c(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",u=i[148].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[148].displayValue),z(e,"item-mobile",i[34])},m(k,v){C(k,e,v),g&&g.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),S&&S.m(e,null),m(e,s),p=!0,h||(b=[de(e,"click",rt(y)),de(e,"keydown",E)],h=!0)},p(k,v){i=k,i[148].selected?g?v[0]&256&&d(g,1):(g=nd(i),g.c(),d(g,1),g.m(e,t)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||v[0]&256)&&o!==(o=i[148].displayValue+"")&&Ge(l,o),(!p||v[1]&8)&&z(n,"quality-title-mobile",i[34]),v[0]&256|v[1]&8&&(a=!i[34]&&fo(i[148].value)),a?S?(S.p(i,v),v[0]&256|v[1]&8&&d(S,1)):(S=od(i),S.c(),d(S,1),S.m(e,s)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),(!p||v[0]&256&&u!==(u=i[148].value))&&c(e,"data-value",u),(!p||v[0]&256&&f!==(f=i[148].displayValue))&&c(e,"aria-label",f),(!p||v[1]&8)&&z(e,"item-mobile",i[34])},i(k){p||(d(g),d(S),p=!0)},o(k){_(g),_(S),p=!1},d(k){k&&w(e),g&&g.d(),S&&S.d(),h=!1,et(b)}}}function rd(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g;n=new jn({props:{direction:"left"}});let S=wt(i[7]),y=[];for(let k=0;k<S.length;k+=1)y[k]=ad(W1(i,S,k));let E=k=>_(y[k],1,1,()=>{y[k]=null});return{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("submenu_playback_rate")}`,a=F(),s=I("div"),u=F(),f=I("ul");for(let k=0;k<y.length;k+=1)y[k].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),z(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(f,"class","items svelte-8jolw5"),c(f,"role","menu"),c(f,"style",p=i[73](i[18]?.clientHeight,!0)),z(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(k,v){C(k,e,v),m(e,t),L(n,t,null),m(t,o),m(t,l),i[117](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let T=0;T<y.length;T+=1)y[T]&&y[T].m(f,null);i[120](f),h=!0,b||(g=[de(t,"click",rt(i[66])),de(f,"keydown",i[83])],b=!0)},p(k,v){if((!h||v[1]&8)&&z(t,"item-mobile",k[34]),v[0]&128|v[1]&8|v[2]&4194306){S=wt(k[7]);let T;for(T=0;T<S.length;T+=1){let W=W1(k,S,T);y[T]?(y[T].p(W,v),d(y[T],1)):(y[T]=ad(W),y[T].c(),d(y[T],1),y[T].m(f,null))}for(ue(),T=S.length;T<y.length;T+=1)E(T);ce()}(!h||v[0]&262144&&p!==(p=k[73](k[18]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&8)&&z(f,"items-mobile",k[34]),(!h||v[1]&8)&&z(e,"menu-desktop",!k[34]),(!h||v[1]&8)&&z(e,"menu-mobile",k[34])},i(k){if(!h){d(n.$$.fragment,k);for(let v=0;v<S.length;v+=1)d(y[v]);h=!0}},o(k){_(n.$$.fragment,k),y=y.filter(Boolean);for(let v=0;v<y.length;v+=1)_(y[v]);h=!1},d(k){k&&w(e),R(n),i[117](null),Fi(y,k),i[120](null),b=!1,et(g)}}}function sd(i){let e,t,n;return t=new ol({}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function ad(i){let e,t,n,o=i[145].displayValue+"",l,r,a,s,u,f,p,h=i[145].selected&&sd(i);function b(){return i[118](i[145])}function g(...S){return i[119](i[145],...S)}return{c(){e=I("li"),h&&h.c(),t=F(),n=I("div"),l=Re(o),r=F(),c(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",a=i[145].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[145].displayValue),z(e,"item-mobile",i[34])},m(S,y){C(S,e,y),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",rt(b)),de(e,"keydown",g)],f=!0)},p(S,y){i=S,i[145].selected?h?y[0]&128&&d(h,1):(h=sd(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||y[0]&128)&&o!==(o=i[145].displayValue+"")&&Ge(l,o),(!u||y[1]&8)&&z(n,"quality-title-mobile",i[34]),(!u||y[0]&128&&a!==(a=i[145].value))&&c(e,"data-value",a),(!u||y[0]&128&&s!==(s=i[145].displayValue))&&c(e,"aria-label",s),(!u||y[1]&8)&&z(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&w(e),h&&h.d(),f=!1,et(p)}}}function ud(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,M,$,J;n=new jn({props:{direction:"left"}});let x=!i[5]&&cd(i),N=i[5]&&fd(i);return{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("submenu_traffic_saving")}`,a=F(),s=I("div"),u=F(),f=I("div"),p=I("ul"),h=I("li"),x&&x.c(),b=F(),g=I("div"),g.textContent=`${j("traffic_saving_disable")}`,y=F(),E=I("li"),N&&N.c(),k=F(),v=I("div"),v.textContent=`${j("traffic_saving_enable")}`,W=F(),Q=I("div"),G=F(),re=I("div"),ae=I("span"),ae.textContent=`${j("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),z(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(g,"class","svelte-8jolw5"),z(g,"quality-title-mobile",i[34]),c(h,"class","item item-traffic-saving svelte-8jolw5"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",S=j("aria_label_submenu_traffic_saving_off")),z(h,"item-mobile",i[34]),c(v,"class","svelte-8jolw5"),z(v,"quality-title-mobile",i[34]),c(E,"class","item item-traffic-saving svelte-8jolw5"),c(E,"role","menuitem"),c(E,"tabindex","0"),c(E,"aria-label",T=`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`),z(E,"item-mobile",i[34]),c(p,"class","items svelte-8jolw5"),c(p,"role","menu"),z(p,"items-mobile",i[34]),c(Q,"class","menu-divider svelte-8jolw5"),c(ae,"class","svelte-8jolw5"),c(re,"class","item item-helper-text svelte-8jolw5"),z(re,"item-mobile",i[34]),c(f,"style",V=i[73](i[19]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(ie,A){C(ie,e,A),m(e,t),L(n,t,null),m(t,o),m(t,l),i[121](t),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),x&&x.m(h,null),m(h,b),m(h,g),m(p,y),m(p,E),N&&N.m(E,null),m(E,k),m(E,v),i[126](p),m(f,W),m(f,Q),m(f,G),m(f,re),m(re,ae),M=!0,$||(J=[de(t,"click",rt(i[66])),de(h,"click",rt(i[122])),de(h,"keydown",i[123]),de(E,"click",rt(i[124])),de(E,"keydown",i[125]),de(p,"keydown",i[89])],$=!0)},p(ie,A){(!M||A[1]&8)&&z(t,"item-mobile",ie[34]),ie[5]?x&&(ue(),_(x,1,1,()=>{x=null}),ce()):x?A[0]&32&&d(x,1):(x=cd(ie),x.c(),d(x,1),x.m(h,b)),(!M||A[1]&8)&&z(g,"quality-title-mobile",ie[34]),(!M||A[1]&8)&&z(h,"item-mobile",ie[34]),ie[5]?N?A[0]&32&&d(N,1):(N=fd(ie),N.c(),d(N,1),N.m(E,k)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),(!M||A[1]&8)&&z(v,"quality-title-mobile",ie[34]),(!M||A[1]&8)&&z(E,"item-mobile",ie[34]),(!M||A[1]&8)&&z(p,"items-mobile",ie[34]),(!M||A[1]&8)&&z(re,"item-mobile",ie[34]),(!M||A[0]&524288&&V!==(V=ie[73](ie[19]?.clientHeight,!0)))&&c(f,"style",V),(!M||A[1]&8)&&z(e,"menu-desktop",!ie[34]),(!M||A[1]&8)&&z(e,"menu-mobile",ie[34])},i(ie){M||(d(n.$$.fragment,ie),d(x),d(N),M=!0)},o(ie){_(n.$$.fragment,ie),_(x),_(N),M=!1},d(ie){ie&&w(e),R(n),i[121](null),x&&x.d(),N&&N.d(),i[126](null),$=!1,et(J)}}}function cd(i){let e,t,n;return t=new ol({}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function fd(i){let e,t,n;return t=new ol({}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function dd(i){let e,t,n,o,l,r,a,s,u,f,p,h;n=new jn({props:{direction:"left"}});let b=wt(i[6]),g=[];for(let y=0;y<b.length;y+=1)g[y]=pd(j1(i,b,y));let S=y=>_(g[y],1,1,()=>{g[y]=null});return{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=F(),l=I("div"),l.textContent=`${j("subtitles_caption")}`,a=F(),s=I("ul");for(let y=0;y<g.length;y+=1)g[y].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),z(t,"item-mobile",i[34]),c(s,"class","items svelte-8jolw5"),c(s,"role","menu"),c(s,"style",u=i[73](i[20]?.clientHeight,!0)),z(s,"items-mobile",i[34]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(y,E){C(y,e,E),m(e,t),L(n,t,null),m(t,o),m(t,l),i[127](t),m(e,a),m(e,s);for(let k=0;k<g.length;k+=1)g[k]&&g[k].m(s,null);i[130](s),f=!0,p||(h=[de(t,"click",rt(i[66])),de(s,"keydown",i[86])],p=!0)},p(y,E){if((!f||E[1]&8)&&z(t,"item-mobile",y[34]),E[0]&64|E[1]&8|E[2]&33554440){b=wt(y[6]);let k;for(k=0;k<b.length;k+=1){let v=j1(y,b,k);g[k]?(g[k].p(v,E),d(g[k],1)):(g[k]=pd(v),g[k].c(),d(g[k],1),g[k].m(s,null))}for(ue(),k=b.length;k<g.length;k+=1)S(k);ce()}(!f||E[0]&1048576&&u!==(u=y[73](y[20]?.clientHeight,!0)))&&c(s,"style",u),(!f||E[1]&8)&&z(s,"items-mobile",y[34]),(!f||E[1]&8)&&z(e,"menu-desktop",!y[34]),(!f||E[1]&8)&&z(e,"menu-mobile",y[34])},i(y){if(!f){d(n.$$.fragment,y);for(let E=0;E<b.length;E+=1)d(g[E]);f=!0}},o(y){_(n.$$.fragment,y),g=g.filter(Boolean);for(let E=0;E<g.length;E+=1)_(g[E]);f=!1},d(y){y&&w(e),R(n),i[127](null),Fi(g,y),i[130](null),p=!1,et(h)}}}function md(i){let e,t,n;return t=new ol({}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function pd(i){let e,t,n,o=i[142].displayValue+"",l,r,a,s,u,f,p,h=i[142].selected&&md(i);function b(){return i[128](i[142])}function g(...S){return i[129](i[142],...S)}return{c(){e=I("li"),h&&h.c(),t=F(),n=I("div"),l=Re(o),r=F(),c(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",a=i[142].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[142].displayValue),z(e,"item-mobile",i[34])},m(S,y){C(S,e,y),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",rt(b)),de(e,"keydown",g)],f=!0)},p(S,y){i=S,i[142].selected?h?y[0]&64&&d(h,1):(h=md(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||y[0]&64)&&o!==(o=i[142].displayValue+"")&&Ge(l,o),(!u||y[1]&8)&&z(n,"quality-title-mobile",i[34]),(!u||y[0]&64&&a!==(a=i[142].value))&&c(e,"data-value",a),(!u||y[0]&64&&s!==(s=i[142].displayValue))&&c(e,"aria-label",s),(!u||y[1]&8)&&z(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&w(e),h&&h.d(),f=!1,et(p)}}}function yg(i){let e,t,n,o,l,r,a=i[10]&&Q1(i),s=i[12]&&id(i),u=i[13]&&rd(i),f=i[15]&&ud(i),p=i[14]&&dd(i);return{c(){e=I("div"),a&&a.c(),t=F(),s&&s.c(),n=F(),u&&u.c(),o=F(),f&&f.c(),l=F(),p&&p.c(),c(e,"class","svelte-8jolw5"),z(e,"hidden",!i[10]),z(e,"container-mobile",i[34])},m(h,b){C(h,e,b),a&&a.m(e,null),m(e,t),s&&s.m(e,null),m(e,n),u&&u.m(e,null),m(e,o),f&&f.m(e,null),m(e,l),p&&p.m(e,null),r=!0},p(h,b){h[10]?a?(a.p(h,b),b[0]&1024&&d(a,1)):(a=Q1(h),a.c(),d(a,1),a.m(e,t)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),h[12]?s?(s.p(h,b),b[0]&4096&&d(s,1)):(s=id(h),s.c(),d(s,1),s.m(e,n)):s&&(ue(),_(s,1,1,()=>{s=null}),ce()),h[13]?u?(u.p(h,b),b[0]&8192&&d(u,1)):(u=rd(h),u.c(),d(u,1),u.m(e,o)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[15]?f?(f.p(h,b),b[0]&32768&&d(f,1)):(f=ud(h),f.c(),d(f,1),f.m(e,l)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[14]?p?(p.p(h,b),b[0]&16384&&d(p,1)):(p=dd(h),p.c(),d(p,1),p.m(e,null)):p&&(ue(),_(p,1,1,()=>{p=null}),ce()),(!r||b[0]&1024)&&z(e,"hidden",!h[10]),(!r||b[1]&8)&&z(e,"container-mobile",h[34])},i(h){r||(d(a),d(s),d(u),d(f),d(p),r=!0)},o(h){_(a),_(s),_(u),_(f),_(p),r=!1},d(h){h&&w(e),a&&a.d(),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d()}}}var wg=18;function kg(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,{ref:M=void 0}=e,{supportLink:$}=e,{playerControlsHeight:J=0}=e,{returnFocus:x}=e,N=$e(),ie=Lt(),A=N.state.currentQuality$;H(i,A,se=>t(102,S=se));let Y=N.state.availableQualities$;H(i,Y,se=>t(8,b=se));let Le=N.state.autoQualityLimitingAvailable$;H(i,Le,se=>t(106,v=se));let Ke=N.state.isAutoQualityEnabled$;H(i,Ke,se=>t(103,y=se));let ze=N.state.currentPlaybackRate$;H(i,ze,se=>t(9,g=se));let Ye=N.state.availablePlaybackRates$;H(i,Ye,se=>t(7,p=se));let De=N.state.currentSubtitle$;H(i,De,se=>t(35,ae=se));let ye=N.state.availableSubtitlesList$;H(i,ye,se=>t(6,u=se));let X=N.state.canDownload,ve=N.state.hasMpegSources$;H(i,ve,se=>t(107,T=se));let Ne=N.ui.settingsMenuVisible;H(i,Ne,se=>t(10,re=se));let Ze=N.ui.settingsMenuOpenedByKeyboard;H(i,Ze,se=>t(132,o=se));let Je=N.ui.isMobile;H(i,Je,se=>t(34,l=se));let we=N.ui.mobileNotReportControlHidden$;H(i,we,se=>t(104,E=se));let Ve=N.state.canChangePlaybackSpeed$;H(i,Ve,se=>t(105,k=se));let qe=N.ui.isFullscreen;H(i,qe,se=>t(135,G=se));let Qe=N.state.trafficSavingEnabled$;H(i,Qe,se=>t(5,a=se));let le=N.ui.playerSize;H(i,le,se=>t(134,Q=se));let oe=N.ui.debugPanelVisible;H(i,oe,se=>t(36,V=se));let Ce=N.ui.playerSize;H(i,Ce,se=>t(133,W=se));let fe=N.state.isInteractiveTime$,Ae=N.actions.internal.downloadVideo,We=N.actions.internal.closeSettingsMenu,at=!0,ut=!1,st=!1,be=!1,mt=!1,it=!1;function ft(){o||x?.(),We(),it=!1}function yt(){t(11,at=!1),t(12,ut=!0)}function Mt(){t(11,at=!1),t(15,mt=!0)}function je(se){N.actions.internal.setQuality(se),ft()}function Bt(se){N.actions.internal.setTrafficSavingEnabled(se),ft()}function Dt(){t(11,at=!1),t(13,st=!0)}function Nt(se){N.actions.internal.setPlaybackRate(se),ft()}function ni(){t(11,at=!1),t(14,be=!0)}function tt(se){N.actions.internal.setSubtitle(se),ft()}function pt(){t(11,at=!0),t(12,ut=!1),t(13,st=!1),t(14,be=!1),t(15,mt=!1)}function _e(){Ae(),ft()}function ht(){window.open($,"_blank"),ft(),N.actions.internal.pause()}function St(){Cl(N.actions.internal.getDebugTextData()),ft()}function Xt(){oe.set(!0),ft()}function bt(){it=!0}function jt(){it=!1}function Jt(se,dt,Ut){if(!se)return"...";let Xi=dt.find(Ci=>Ci.value===se),ki=Xi?Xi.displayValue:se;return Ut?se===_d.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:ki}):ki}let di,Ii,Hi,Wt,mi;function ln(se=0,dt=!1){return l&&G&&dt?`max-height: ${Math.round(Q.height*.6)}px`:l?"":`max-height: ${W.height-wg-se-J}px; overflow: auto;`}let oi,zi,li,qi,pi,Ti,_i,Ei,Pt,Ot,Ai=Be(!1);H(i,Ai,se=>t(101,h=se));let hi,zt,xt=Be(!1);H(i,xt,se=>t(100,f=se));let gi,ri,Ct=Be(!1);H(i,Ct,se=>t(99,s=se));let Mi,Gt,$t=Be(!1);H(i,$t,se=>t(98,r=se));let rn=se=>{fr(se,We)},fn=async se=>{Pl(se,yt,()=>{let dt=b.findIndex(Ut=>Ut.selected);return Ot.childNodes[dt]})},ei=async se=>{Il(se,pt,Ai,We)},Vi=(se,dt)=>{Ji(se,()=>je(dt))},Li=async se=>{Pl(se,Dt,()=>{let dt=p.findIndex(Ut=>Ut.selected);return zt.childNodes[dt]})},bi=async se=>{Il(se,pt,xt,We)},vi=(se,dt)=>{Ji(se,()=>Nt(dt))},Vt=async se=>{Pl(se,ni,()=>{let dt=u.findIndex(Ut=>Ut.selected);return ri.childNodes[dt]})},qt=async se=>{Il(se,pt,Ct,We)},yi=(se,dt)=>{Ji(se,()=>tt(dt))},Ui=async se=>{Pl(se,Mt,()=>{let dt=a?2:0;return Gt.childNodes[dt]})},Ri=async se=>{Il(se,pt,$t,We)},si=(se,dt)=>{Ji(se,()=>Bt(dt))},xi=se=>{Ji(se,()=>_e())},sn=se=>{Ji(se,()=>ht())},$i=se=>{Ji(se,()=>St())},an=se=>{Ji(se,()=>Xt())};Tt(()=>{let se=fe.subscribe(dt=>{dt&&!l&&!it&&!o&&ft()});return()=>{se()}});function Ki(se){pe[se?"unshift":"push"](()=>{Pt=se,t(1,Pt)})}function Qt(se){pe[se?"unshift":"push"](()=>{hi=se,t(2,hi)})}function ji(se){pe[se?"unshift":"push"](()=>{gi=se,t(3,gi)})}function Yt(se){pe[se?"unshift":"push"](()=>{Mi=se,t(4,Mi)})}function Bi(se){pe[se?"unshift":"push"](()=>{M=se,t(0,M)})}function Wi(se){pe[se?"unshift":"push"](()=>{Ii=se,t(17,Ii)})}let Gi=se=>je(se.value),wi=(se,dt)=>Vi(dt,se.value);function Di(se){pe[se?"unshift":"push"](()=>{Ot=se,t(29,Ot)})}function Xe(se){pe[se?"unshift":"push"](()=>{Hi=se,t(18,Hi)})}let ti=se=>Nt(se.value),ai=(se,dt)=>vi(dt,se.value);function He(se){pe[se?"unshift":"push"](()=>{zt=se,t(30,zt)})}function Qi(se){pe[se?"unshift":"push"](()=>{Wt=se,t(19,Wt)})}let Yi=()=>Bt(!1),en=se=>si(se,!1),Zi=()=>Bt(!0),Ni=se=>si(se,!0);function tn(se){pe[se?"unshift":"push"](()=>{Gt=se,t(32,Gt)})}function ui(se){pe[se?"unshift":"push"](()=>{mi=se,t(20,mi)})}let dn=se=>tt(se),Rt=(se,dt)=>yi(dt,se);function Oi(se){pe[se?"unshift":"push"](()=>{ri=se,t(31,ri)})}return i.$$set=se=>{"ref"in se&&t(0,M=se.ref),"supportLink"in se&&t(95,$=se.supportLink),"playerControlsHeight"in se&&t(96,J=se.playerControlsHeight),"returnFocus"in se&&t(97,x=se.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1024)e:re&&(t(11,at=!0),t(12,ut=!1),t(13,st=!1),t(14,be=!1),t(15,mt=!1));if(i.$$.dirty[3]&512)e:t(33,n=fo(S));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,di=Jt(S,b,y));if(i.$$.dirty[3]&18432)e:t(21,oi=X&&T&&!E);if(i.$$.dirty[3]&10240)e:t(22,zi=ie.features.trafficSaving&&!E&&v);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,li=u.length>0&&!E);if(i.$$.dirty[3]&6144)e:t(24,qi=!!k&&!E);if(i.$$.dirty[3]&2048)e:t(25,pi=!E);if(i.$$.dirty[0]&32)e:t(26,Ti=a?j("traffic_saving_on"):j("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,_i=y?j("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,Ei=p.find(se=>se.value===g)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:Sl(Pt,Ai,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:Sl(hi,xt,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:Sl(gi,Ct,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:Sl(Mi,$t,r)},[M,Pt,hi,gi,Mi,a,u,p,b,g,re,at,ut,st,be,mt,di,Ii,Hi,Wt,mi,oi,zi,li,qi,pi,Ti,_i,Ei,Ot,zt,ri,Gt,n,l,ae,V,ie,A,Y,Le,Ke,ze,Ye,De,ye,ve,Ne,Ze,Je,we,Ve,qe,Qe,le,oe,Ce,ft,yt,Mt,je,Bt,Dt,Nt,ni,tt,pt,_e,ht,St,Xt,bt,jt,ln,Ai,xt,Ct,$t,rn,fn,ei,Vi,Li,bi,vi,Vt,qt,yi,Ui,Ri,si,xi,sn,$i,an,$,J,x,r,s,f,h,S,y,E,k,v,T,Ki,Qt,ji,Yt,Bi,Wi,Gi,wi,Di,Xe,ti,ai,He,Qi,Yi,en,Zi,Ni,tn,ui,dn,Rt,Oi]}var Ea=class extends U{constructor(e){super(),K(this,e,kg,yg,q,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},bg,[-1,-1,-1,-1,-1])}},kr=Ea;function Cg(i){ke(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Sg(i){let e,t,n;return t=new yr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),B(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function Pg(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Sg]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Ig(i,e,t){let n,o,l,{ref:r=void 0}=e,a=$e(),s=a.state.currentQuality$;H(i,s,S=>t(4,l=S));let u=a.ui.settingsMenuVisible;H(i,u,S=>t(1,n=S));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;H(i,p,S=>t(3,o=S));let h;function b(S){let y=el(S);f(y)}function g(S){r=S,t(0,r)}return i.$$set=S=>{"ref"in S&&t(0,r=S.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,b,g]}var Aa=class extends U{constructor(e){super(),K(this,e,Ig,Pg,q,{ref:0},Cg)}},El=Aa;function Tg(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ma=class extends U{constructor(e){super(),K(this,e,Eg,Tg,q,{})}},hd=Ma;function Ag(i){let e,t;return e=new wr({}),{c(){B(e.$$.fragment)},m(n,o){L(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 hd({}),{c(){B(e.$$.fragment)},m(n,o){L(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,l=[Mg,Ag],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t||(t=r[e]=l[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&&w(n),r[e].d(s)}}}function Lg(i){let e,t;return e=new _t({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Un.KeyC,$$slots:{default:[Vg]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rg(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,l=n?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,l]}var Va=class extends U{constructor(e){super(),K(this,e,Rg,Lg,q,{isSubtitlesEnabled:0,click:1})}},gd=Va;function Bg(i){ke(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 bd(i){let e,t;return{c(){e=I("span"),t=Re(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&8&&Ge(t,n[3])},d(n){n&&w(e)}}}function Dg(i){let e,t,n,o,l=i[2]&&bd(i);return{c(){e=I("div"),t=I("span"),n=Re(i[4]),o=F(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),z(e,"mobile",i[1])},m(r,a){C(r,e,a),m(e,t),m(t,n),m(e,o),l&&l.m(e,null),i[7](e)},p(r,[a]){a&16&&Ge(n,r[4]),r[2]?l?l.p(r,a):(l=bd(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&z(e,"mobile",r[1])},i:me,o:me,d(r){r&&w(e),l&&l.d(),i[7](null)}}}function Ng(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){pe[p?"unshift":"push"](()=>{a=p,t(0,a)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,l=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=wn(o));if(i.$$.dirty&64)e:t(4,u=wn(l))},[a,n,r,s,u,o,l,f]}var La=class extends U{constructor(e){super(),K(this,e,Ng,Dg,q,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Bg)}},Cr=La;var Zn=require("@vkontakte/videoplayer-shared");function Og(i){ke(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 Fg(i){let e,t,n,o,l,r;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),l=D("path"),c(n,"class","wave2 svelte-1n5yyua"),c(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"),c(o,"class","wave1 svelte-1n5yyua"),c(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"),c(l,"class","cross svelte-1n5yyua"),c(l,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",r="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){C(a,e,s),m(e,t),m(t,n),m(t,o),m(t,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:me,o:me,d(a){a&&w(e)}}}function Hg(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;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,r=l(n,o))},[r,n,o]}var Ra=class extends U{constructor(e){super(),K(this,e,Hg,Fg,q,{volume:1,muted:2},Og)}},Ro=Ra;var En=require("@vkontakte/videoplayer-shared");var kd=require("@vkontakte/videoplayer-shared");var wd=require("@vkontakte/videoplayer-shared");function zg(i){let e,t,n=i[4].default,o=Pe(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){C(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&Te(o,n,l,l[3],t?Ie(n,l[3],r,null):Ee(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&w(e),o&&o.d(l),i[5](null)}}}function qg(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=$e().ui.overlayContainer$;H(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Tt(()=>(f(n),()=>u(n)));function p(h){pe[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,l=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:f(n)},[s,a,n,l,o,p]}var Ba=class extends U{constructor(e){super(),K(this,e,qg,zg,q,{})}},vd=Ba;function Ug(i){ke(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 yd(i){let e,t;return e=new vd({props:{$$slots:{default:[Kg]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2097395&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Kg(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("div"),n=Re(i[1]),o=F(),l=I("div"),c(t,"class","content svelte-tny135"),c(l,"class","tooltip-pointer svelte-tny135"),c(l,"style",r=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),z(l,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),z(e,"active",i[0])},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),i[20](e)},p(s,u){u&2&&Ge(n,s[1]),u&32&&r!==(r=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(l,"style",r),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&z(e,"active",s[0])},d(s){s&&w(e),i[20](null)}}}function jg(i){let e,t,n,o,l,r,a=i[18].default,s=Pe(a,i,i[21],null),u=i[1]&&yd(i);return{c(){e=I("div"),s&&s.c(),t=F(),u&&u.c(),n=lt(),c(e,"class","tooltip-wrapper svelte-tny135"),z(e,"full-width",i[2])},m(f,p){C(f,e,p),s&&s.m(e,null),i[19](e),C(f,t,p),u&&u.m(f,p),C(f,n,p),o=!0,l||(r=[de(e,"mouseenter",i[12]),de(e,"mousemove",i[12]),de(e,"mouseleave",i[13]),de(e,"mousedown",i[13]),de(e,"mouseup",i[12])],l=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Te(s,a,f,f[21],o?Ie(a,f[21],p,null):Ee(f[21]),null),(!o||p&4)&&z(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=yd(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ue(),_(u,1,1,()=>{u=null}),ce())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(w(e),w(t),w(n)),s&&s.d(f),i[19](null),u&&u.d(f),l=!1,et(r)}}}var Al=5;function Wg(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:h="top"}=e,{onVisibilityChange:b=wd.noop}=e,g=h==="top",S,y,E,k=0,v=g?Al:-Al,T=0,W=0,Q=Lt(),G=$e(),re=G.ui.playerSize;H(i,re,Y=>t(24,o=Y));let ae=G.ui.overlayContainer$;H(i,ae,Y=>t(23,n=Y));let V=G.getLogger().createComponentLog("Tooltip component"),M=()=>{if(!n||!y||!S)return;let Y=n.getBoundingClientRect(),Le=S.getBoundingClientRect(),Ke=Le.width,ze=y.clientWidth,Ye=o.width,De=(Ke-ze)/2,ye=Le.left+u-Y.left,X=ye+De,ve=Le.top+f-Y.top,Ne=ze/2-Al,Ze=X<8,Je=X+ze>Ye-8;Ze&&(X=8,Ne=ye+Le.width/2-2.5*Al),Je&&(X=Ye-8-ze,Ne=Le.left-Y.left+Le.width/2-X-Al),t(6,T=X),t(7,W=ve),t(5,k=Ne)},$=()=>{try{if(!n||!S)return;M(),t(0,s=!0)}catch(Y){V({message:String(Y)})}},J=()=>{t(0,s=!1)},x=()=>{y&&(E||(E=window.setTimeout($,Q.controls.hideTimeoutTooltips)),s&&$())},N=()=>{J(),window.clearTimeout(E),E=void 0};Tt(M),Rn(()=>window.clearTimeout(E));function ie(Y){pe[Y?"unshift":"push"](()=>{S=Y,t(3,S)})}function A(Y){pe[Y?"unshift":"push"](()=>{y=Y,t(4,y)})}return i.$$set=Y=>{"content"in Y&&t(1,a=Y.content),"active"in Y&&t(0,s=Y.active),"translateX"in Y&&t(14,u=Y.translateX),"translateY"in Y&&t(15,f=Y.translateY),"isFullWidthWrapper"in Y&&t(2,p=Y.isFullWidthWrapper),"placement"in Y&&t(16,h=Y.placement),"onVisibilityChange"in Y&&t(17,b=Y.onVisibilityChange),"$$scope"in Y&&t(21,r=Y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:b(s)},[s,a,p,S,y,k,T,W,g,v,re,ae,x,N,u,f,h,b,l,ie,A,r]}var Da=class extends U{constructor(e){super(),K(this,e,Wg,jg,q,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Ug)}},Sr=Da;function Gg(i){ke(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 Qg(i){let e,t=i[19].default,n=Pe(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Te(n,t,o,o[24],e?Ie(t,o[24],l,null):Ee(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Yg(i){let e,t;return e=new Sr({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[Zg]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&4096&&(l.content=n[12]),o&1024&&(l.translateX=n[10]),o&2048&&(l.translateY=n[11]),o&16&&(l.isFullWidthWrapper=n[4]),o&64&&(l.active=n[6]),o&128&&(l.placement=n[7]),o&512&&(l.onVisibilityChange=n[9]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zg(i){let e,t=i[19].default,n=Pe(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Te(n,t,o,o[24],e?Ie(t,o[24],l,null):Ee(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Xg(i){let e,t,n,o,l,r,a,s,u,f=[Yg,Qg],p=[];function h(b,g){return b[3]&&b[5]&&!b[13]?0:1}return t=h(i,-1),n=p[t]=f[t](i),{c(){e=I("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[8]||null),Dn(()=>i[23].call(e))},m(b,g){C(b,e,g),p[t].m(e,null),i[22](e),r=Ko(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",rt(It(i[20]))),de(e,"click",rt(It(i[21])))],s=!0)},p(b,[g]){let S=t;t=h(b,g),t===S?p[t].p(b,g):(ue(),_(p[S],1,1,()=>{p[S]=null}),ce(),n=p[t],n?n.p(b,g):(n=p[t]=f[t](b),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+b[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&256&&l!==(l=b[8]||null))&&c(e,"aria-hidden",l)},i(b){a||(d(n),a=!0)},o(b){_(n),a=!1},d(b){b&&w(e),p[t].d(),i[22](null),r(),s=!1,et(u)}}}function Jg(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:b=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:y=j("tooltip_button_disabled")}=e,{isAriaHidden:E=!1}=e,{onTooltipVisibilityChange:k=kd.noop}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:T=-18}=e,W=$e(),Q=W.ui.isMobile;H(i,Q,J=>t(13,o=J));let G=W.state.graphIsOpened$;H(i,G,J=>t(18,n=J));let re;function ae(J){yn.call(this,i,J)}function V(J){yn.call(this,i,J)}function M(J){pe[J?"unshift":"push"](()=>{f=J,t(0,f)})}function $(){p=this.clientWidth,t(1,p)}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,f=J.ref),"width"in J&&t(1,p=J.width),"isFullWidthTooltip"in J&&t(4,h=J.isFullWidthTooltip),"tooltipContent"in J&&t(5,b=J.tooltipContent),"tooltipActive"in J&&t(6,g=J.tooltipActive),"tooltipPlacement"in J&&t(7,S=J.tooltipPlacement),"disabledTooltipContent"in J&&t(17,y=J.disabledTooltipContent),"isAriaHidden"in J&&t(8,E=J.isAriaHidden),"onTooltipVisibilityChange"in J&&t(9,k=J.onTooltipVisibilityChange),"initialTranslateXPx"in J&&t(10,v=J.initialTranslateXPx),"initialTranslateYPx"in J&&t(11,T=J.initialTranslateYPx),"$$scope"in J&&t(24,r=J.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,re=n?j("tooltip_disabled_when_graph_on"):y):t(12,re=b)},[f,p,a,u,h,b,g,S,E,k,v,T,re,o,Q,G,s,y,n,l,ae,V,M,$,r]}var Na=class extends U{constructor(e){super(),K(this,e,Jg,Xg,q,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},Gg)}},At=Na;function xg(i){let e,t,n,o,l,r;return{c(){e=D("svg"),t=D("rect"),o=D("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(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"),c(o,"fill",l=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(i[0],"interactive-episode-completed-icon"))},m(a,s){C(a,e,s),m(e,t),m(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:me,o:me,d(a){a&&w(e)}}}function $g(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Oa=class extends U{constructor(e){super(),K(this,e,$g,xg,q,{completed:0})}},Pr=Oa;function eb(i){ke(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 tb(i){let e,t,n,o,l;return t=new Pr({props:{completed:!!i[0].completed}}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Dn(()=>i[3].call(e)),z(e,"disabled",i[1])},m(r,a){C(r,e,a),L(t,e,null),o=Ko(e,i[3].bind(e)),l=!0},p(r,a){let s={};a&1&&(s.completed=!!r[0].completed),t.$set(s),(!l||a&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&c(e,"style",n),(!l||a&2)&&z(e,"disabled",r[1])},i(r){l||(d(t.$$.fragment,r),l=!0)},o(r){_(t.$$.fragment,r),l=!1},d(r){r&&w(e),R(t),o()}}}function ib(i){let e,t;return e=new At({props:{tooltipContent:j(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:[tb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=j(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function nb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,t(2,l)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,l,r]}var Fa=class extends U{constructor(e){super(),K(this,e,nb,ib,q,{videoEpisode:0,disabled:1},eb)}},Cd=Fa;function ob(i){ke(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 Sd(i,e,t){let n=i.slice();return n[2]=e[t],n}function Pd(i){let e,t,n,o,l,r,a,s,u;return{c(){e=I("div"),t=I("div"),n=I("div"),l=F(),r=I("div"),s=F(),c(n,"class","video-episode-loaded svelte-1h9p3m2"),c(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),c(r,"class","video-episode-filled svelte-1h9p3m2"),c(r,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),z(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1h9p3m2"),c(e,"class","video-episode svelte-1h9p3m2"),c(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),z(e,"mobile",i[1])},m(f,p){C(f,e,p),m(e,t),m(t,n),m(t,l),m(t,r),m(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&c(r,"style",a),p&2&&z(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[2].from}%; width: ${f[2].width}%`)&&c(e,"style",u),p&2&&z(e,"mobile",f[1])},d(f){f&&w(e)}}}function lb(i){let e,t=wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Pd(Sd(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,l){C(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&3){t=wt(o[0]);let r;for(r=0;r<t.length;r+=1){let a=Sd(o,t,r);n[r]?n[r].p(a,l):(n[r]=Pd(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:me,o:me,d(o){o&&w(e),Fi(n,o)}}}function rb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile)},[n,o]}var Ha=class extends U{constructor(e){super(),K(this,e,rb,lb,q,{videoEpisodes:0,isMobile:1},ob)}},Id=Ha;function sb(i){ke(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 Ed(i){let e,t,n=wt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Md(Td(i,n,r));let l=r=>_(o[r],1,1,()=>{o[r]=null});return{c(){e=I("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-1golz1y"),z(e,"mobile",i[5]),z(e,"hidden",i[5]&&!i[20])},m(r,a){C(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(r,a){if(a[0]&2097664){n=wt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=Td(r,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(ue(),s=n.length;s<o.length;s+=1)l(s);ce()}(!t||a[0]&32)&&z(e,"mobile",r[5]),(!t||a[0]&1048608)&&z(e,"hidden",r[5]&&!r[20])},i(r){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(r){r&&w(e),Fi(o,r)}}}function Ad(i){let e,t;return e=new Cd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[48]),o[0]&512&&(l.disabled=n[9]),e.$set(l)},i(n){t||(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&&Ad(i);return{c(){n&&n.c(),e=lt()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[48].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=Ad(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function ab(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),o=F(),l=I("div"),c(t,"class","loaded svelte-1golz1y"),c(t,"style",n=`transform: translateX(${i[11]*100}%);`),c(l,"class","filled svelte-1golz1y"),c(l,"style",r=`transform: translateX(${i[12]*100}%);`),z(l,"active-live",i[4]),z(l,"ads",i[6]),c(e,"class","bars svelte-1golz1y")},m(a,s){C(a,e,s),m(e,t),m(e,o),m(e,l)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&c(t,"style",n),s[0]&4096&&r!==(r=`transform: translateX(${a[12]*100}%);`)&&c(l,"style",r),s[0]&16&&z(l,"active-live",a[4]),s[0]&64&&z(l,"ads",a[6])},i:me,o:me,d(a){a&&w(e)}}}function ub(i){let e,t;return e=new Id({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&32&&(l.isMobile=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function cb(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g=i[8]&&Ed(i),S=[ub,ab],y=[];function E(k,v){return k[21].length?0:1}return n=E(i,[-1,-1]),o=y[n]=S[n](i),{c(){g&&g.c(),e=F(),t=I("div"),o.c(),l=F(),r=I("div"),a=I("div"),c(a,"class","handle svelte-1golz1y"),z(a,"active-live",i[4]),c(r,"class","handleWrap svelte-1golz1y"),c(r,"style",s=`transform: translateX(${i[13]*100}%);`),z(r,"hidden",i[10]),c(t,"class",u="slider "+i[0]+" svelte-1golz1y"),c(t,"aria-label",i[14]),c(t,"aria-valuemin",i[15]),c(t,"aria-valuemax",i[16]),c(t,"aria-valuenow",i[17]),c(t,"aria-valuetext",i[18]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[1]??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(k,v){g&&g.m(k,v),C(k,e,v),C(k,t,v),y[n].m(t,null),m(t,l),m(t,r),m(r,a),i[42](t),p=!0,h||(b=[de(t,"pointerdown",It(i[22])),de(t,"pointermove",It(i[23])),de(t,"pointerup",It(i[24])),de(t,"pointerenter",It(i[25])),de(t,"pointerleave",It(i[26])),de(t,"click",rt(En.noop)),de(t,"wheel",i[27])],h=!0)},p(k,v){k[8]?g?(g.p(k,v),v[0]&256&&d(g,1)):(g=Ed(k),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ue(),_(g,1,1,()=>{g=null}),ce());let T=n;n=E(k,v),n===T?y[n].p(k,v):(ue(),_(y[T],1,1,()=>{y[T]=null}),ce(),o=y[n],o?o.p(k,v):(o=y[n]=S[n](k),o.c()),d(o,1),o.m(t,l)),(!p||v[0]&16)&&z(a,"active-live",k[4]),(!p||v[0]&8192&&s!==(s=`transform: translateX(${k[13]*100}%);`))&&c(r,"style",s),(!p||v[0]&1024)&&z(r,"hidden",k[10]),(!p||v[0]&1&&u!==(u="slider "+k[0]+" svelte-1golz1y"))&&c(t,"class",u),(!p||v[0]&16384)&&c(t,"aria-label",k[14]),(!p||v[0]&32768)&&c(t,"aria-valuemin",k[15]),(!p||v[0]&65536)&&c(t,"aria-valuemax",k[16]),(!p||v[0]&131072)&&c(t,"aria-valuenow",k[17]),(!p||v[0]&262144)&&c(t,"aria-valuetext",k[18]),(!p||v[0]&2&&f!==(f=k[1]??null))&&c(t,"data-testid",f),(!p||v[0]&513)&&z(t,"disabled",k[9]),(!p||v[0]&1048577)&&z(t,"slider-dragging",k[20]),(!p||v[0]&5)&&z(t,"hidden",k[2]),(!p||v[0]&9)&&z(t,"slider-vertical",k[3]),(!p||v[0]&1025)&&z(t,"no-handle",k[10]),(!p||v[0]&129)&&z(t,"square",k[7])},i(k){p||(d(g),d(o),p=!0)},o(k){_(g),_(o),p=!1},d(k){k&&(w(e),w(t)),g&&g.d(k),y[n].d(),i[42](null),h=!1,et(b)}}}function fb(i,e,t){let n,o,{className:l=""}=e,{testId:r=void 0}=e,{isHidden:a=!1}=e,{isVertical:s=!1}=e,{isActiveLive:u=!1}=e,{isMobile:f=!1}=e,{isAds:p=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:b=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:S=!1}=e,{disabled:y=!1}=e,{hideHandel:E=!1}=e,k,v,{onPointerDown:T=En.noop}=e,{onHandleMove:W=En.noop}=e,{onPointerUp:Q=En.noop}=e,{onPointerEnter:G=En.noop}=e,{onPointerMove:re=En.noop}=e,{onPointerLeave:ae=En.noop}=e,{onWheelUp:V=En.noop}=e,{onWheelDown:M=En.noop}=e,{onWheelLeft:$=En.noop}=e,{onWheelRight:J=En.noop}=e,{loadedProgress:x=0}=e,{filledProgress:N=0}=e,{handleProgress:ie=0}=e,{ariaLabel:A=""}=e,{ariaValueMin:Y=void 0}=e,{ariaValueMax:Le=void 0}=e,{ariaValueNow:Ke=void 0}=e,{ariaValueText:ze=""}=e,Ye=Lt(),De=!1,ye;function X(oe){if(De)return;t(20,De=!0),v=k.getBoundingClientRect();let Ce=Ve(oe.clientX,oe.clientY);T(Ce),k.setPointerCapture(oe.pointerId)}function ve(oe){let Ce=Ve(oe.clientX,oe.clientY),fe=qe(oe.clientX);re(Ce,fe,v.width),De&&W(Ce)}function Ne(oe){if(!De)return;t(20,De=!1);let Ce=Ve(oe.clientX,oe.clientY);Q(Ce)}function Ze(oe){v=k.getBoundingClientRect();let Ce=Ve(oe.clientX,oe.clientY),fe=qe(oe.clientX);G(Ce,fe,v.width)}function Je(){ae()}function we(oe){g&&(oe.preventDefault(),oe.deltaY<0?V():oe.deltaY>0?M():oe.deltaX>0?J():$())}function Ve(oe,Ce){return s?Math.max(0,Math.min(1,(v.height-(Ce-v.top))/v.height)):Math.min(Math.max(oe-v.x,0),v.width)/v.width}function qe(oe){return Math.min(Math.max(oe-v.x,0),v.width)}function Qe(oe,Ce){let fe=Ye.features.episodesClustering&&!S?Ye.episodeMinWidthPc:0,Ae=[],We=0,at=0,ut=0;for(let mt=1;mt<b.length;mt++)at=b[mt].time/ye*100,at-We>fe&&(Ae.push({from:We,width:Math.max(0,at-We),loadedWidth:Math.max(0,Math.min(at,oe)-We),filledWidth:Math.max(0,Math.min(at,Ce)-We),interactive:b[mt-1].interactive,completed:b[mt-1].completed}),We=b[mt].time/ye*100,ut++);let st={from:We,width:Math.max(0,100-We),loadedWidth:Math.max(0,Math.min(oe,100)-We),filledWidth:Math.max(0,Math.min(Ce,100)-We),interactive:b[ut].interactive,completed:b[ut].completed};100-We<fe?(ut-=1,Ae[ut].width+=100-We,Ae[ut].loadedWidth+=Math.max(0,Math.min(oe,100)-We),Ae[ut].filledWidth+=Math.max(0,Math.min(Ce,100)-We)):Ae[ut]=st;let be=b[0].time;if(be!==0){let mt=be/ye*100;Ae.unshift({from:0,width:mt,loadedWidth:Math.min(mt,oe),filledWidth:Math.min(mt,Ce)})}return Ae}function le(oe){pe[oe?"unshift":"push"](()=>{k=oe,t(19,k)})}return i.$$set=oe=>{"className"in oe&&t(0,l=oe.className),"testId"in oe&&t(1,r=oe.testId),"isHidden"in oe&&t(2,a=oe.isHidden),"isVertical"in oe&&t(3,s=oe.isVertical),"isActiveLive"in oe&&t(4,u=oe.isActiveLive),"isMobile"in oe&&t(5,f=oe.isMobile),"isAds"in oe&&t(6,p=oe.isAds),"squareBorders"in oe&&t(7,h=oe.squareBorders),"videoEpisodes"in oe&&t(28,b=oe.videoEpisodes),"withWheelHandler"in oe&&t(29,g=oe.withWheelHandler),"isInteractive"in oe&&t(8,S=oe.isInteractive),"disabled"in oe&&t(9,y=oe.disabled),"hideHandel"in oe&&t(10,E=oe.hideHandel),"onPointerDown"in oe&&t(30,T=oe.onPointerDown),"onHandleMove"in oe&&t(31,W=oe.onHandleMove),"onPointerUp"in oe&&t(32,Q=oe.onPointerUp),"onPointerEnter"in oe&&t(33,G=oe.onPointerEnter),"onPointerMove"in oe&&t(34,re=oe.onPointerMove),"onPointerLeave"in oe&&t(35,ae=oe.onPointerLeave),"onWheelUp"in oe&&t(36,V=oe.onWheelUp),"onWheelDown"in oe&&t(37,M=oe.onWheelDown),"onWheelLeft"in oe&&t(38,$=oe.onWheelLeft),"onWheelRight"in oe&&t(39,J=oe.onWheelRight),"loadedProgress"in oe&&t(11,x=oe.loadedProgress),"filledProgress"in oe&&t(12,N=oe.filledProgress),"handleProgress"in oe&&t(13,ie=oe.handleProgress),"ariaLabel"in oe&&t(14,A=oe.ariaLabel),"ariaValueMin"in oe&&t(15,Y=oe.ariaValueMin),"ariaValueMax"in oe&&t(16,Le=oe.ariaValueMax),"ariaValueNow"in oe&&t(17,Ke=oe.ariaValueNow),"ariaValueText"in oe&&t(18,ze=oe.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&65536)e:t(40,ye=Le??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=b[b.length-1]?.time<ye);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=b.length&&n&&ye?Qe(x*100,N*100):[])},[l,r,a,s,u,f,p,h,S,y,E,x,N,ie,A,Y,Le,Ke,ze,k,De,o,X,ve,Ne,Ze,Je,we,b,g,T,W,Q,G,re,ae,V,M,$,J,ye,n,le]}var za=class extends U{constructor(e){super(),K(this,e,fb,cb,q,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},sb,[-1,-1])}},ll=za;var kn=(i,e)=>So[i]>=So[e],Vd=(i,e)=>So[i]<So[e],Ir=(i,e)=>So[i]<=So[e],Ld=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function db(i){ke(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 mb(i){let e,t;return e=new Ro({props:{volume:i[3],muted:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function pb(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:Un.KeyM,$$slots:{default:[mb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rd(i){let e,t,n;return t=new ll({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]:Zn.noop,onPointerLeave:i[2]?i[20]:Zn.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=I("div"),B(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),z(e,"volumeBar-vertical",i[2])},m(o,l){C(o,e,l),L(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:Zn.noop),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:Zn.noop),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&4)&&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&&w(e),R(t)}}}function _b(i){let e,t,n,o,l,r;t=new Sr({props:{content:i[6],translateY:-18,$$slots:{default:[pb]},$$scope:{ctx:i}}});let a=i[4]&&Rd(i);return{c(){e=I("div"),B(t.$$.fragment),n=F(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),z(e,"vertical",i[2])},m(s,u){C(s,e,u),L(t,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[de(e,"mouseenter",function(){Si(i[2]?i[21]:Zn.noop)&&(i[2]?i[21]:Zn.noop).apply(this,arguments)}),de(e,"mouseleave",function(){Si(i[2]?i[22]:Zn.noop)&&(i[2]?i[22]:Zn.noop).apply(this,arguments)}),de(e,"wheel",It(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Rd(i),a.c(),d(a,1),a.m(e,null)):a&&(ue(),_(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&&w(e),R(t),a&&a.d(),l=!1,et(r)}}}function hb(i,e,t){let n,o,l,r,{click:a}=e,s=$e(),u=Lt(),f=s.state.volume$;H(i,f,De=>t(3,n=De));let p=s.state.muted$;H(i,p,De=>t(25,r=De));let h=s.actions.internal.setVolume,b=s.ui.currentGridType$;H(i,b,De=>t(24,l=De));let g=s.callbacks?.onAudioDoesNotExistHint,S=s.callbacks?.onAudioDisabledHint,y=s.state.isAudioAvailable$;H(i,y,De=>t(4,o=De));let E=s.state.isAudioDisabled,k=!1,v,T,W,Q,G,re,ae=1,V=!1,M=!1;function $(De){ae=n,h(De)}function J(){_r(s,n,u.controls.volumeStepWheel)}function x(){hr(s,n,u.controls.volumeStepWheel)}function N(De){h(De)}function ie(De){let ye=De;h(ye,ye===0?ae:ye)}function A(){V=!0}function Y(){V=!1,ze()}function Le(){clearTimeout(v),t(5,k=!0)}function Ke(){ze()}function ze(){v=window.setTimeout(()=>{V||t(5,k=!1)},u.controls.volumeBarTimeout)}function Ye(De){De.deltaY<0?J():De.deltaY>0&&x()}return i.$$set=De=>{"click"in De&&t(0,a=De.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,Q=!o||r);if(i.$$.dirty[0]&16777216)e:t(2,G=Ir(l,"s"));if(i.$$.dirty[0]&6)e:G?t(6,T=""):t(6,T=Q?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,W=Q?j("tooltip_volume"):j("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,re=Q?0:n);if(i.$$.dirty[0]&16)e:t(9,M=E&&!S||!o&&!g)},[a,Q,G,n,o,k,T,W,re,M,f,p,b,y,$,J,x,N,ie,A,Y,Le,Ke,Ye,l,r]}var qa=class extends U{constructor(e){super(),K(this,e,hb,_b,q,{click:0},db,[-1,-1])}},Bd=qa;var Od=require("@vkontakte/videoplayer-shared");function gb(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,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 f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),c(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"),c(n,"class","_exit"),c(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"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Me(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&w(e),a&&a.d(f)}}}function bb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ua=class extends U{constructor(e){super(),K(this,e,bb,gb,q,{})}},Dd=Ua;function vb(i){ke(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function yb(i){let e,t;return e=new Dd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function wb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ka=class extends U{constructor(e){super(),K(this,e,wb,yb,q,{isFullscreen:0},vb)}},Nd=Ka;function kb(i){let e,t;return e=new Nd({props:{isFullscreen:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Cb(i){let e,t;return e=new _t({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Un.KeyF,$$slots:{default:[kb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(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,{click:o=Od.noop}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,l=n?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,l]}var ja=class extends U{constructor(e){super(),K(this,e,Sb,Cb,q,{isFullscreen:0,click:1})}},Tr=ja;function Pb(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Ib(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Wa=class extends U{constructor(e){super(),K(this,e,Ib,Pb,q,{})}},rl=Wa;function Tb(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Eb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ga=class extends U{constructor(e){super(),K(this,e,Eb,Tb,q,{})}},Er=Ga;var Hd=require("@vkontakte/videoplayer-shared");function Ab(i){ke(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 Fd(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&w(e)}}}function Mb(i){let e,t,n,o,l=i[1]&&Fd(i);var r=i[8];function a(s){return{}}return r&&(n=hn(r,a(i))),{c(){l&&l.c(),e=F(),t=I("div"),n&&B(n.$$.fragment),c(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),C(s,e,u),C(s,t,u),n&&L(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=Fd(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ue();let f=n;_(f.$$.fragment,1,0,()=>{R(f,1)}),ce()}r?(n=hn(r,a(s)),B(n.$$.fragment),d(n.$$.fragment,1),L(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&&(w(e),w(t)),l&&l.d(s),n&&R(n)}}}function Vb(i){let e,t,n;function o(r){i[13](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Un.KeyK,$$slots:{default:[Mb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Lb(i,e,t){let n,o,{fakeIsPlaying$:l}=Tn();H(i,l,k=>t(12,o=k));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Hd.noop}=e,{toggle:h}=l,b,g,S,y;function E(k){r=k,t(0,r)}i.$$set=k=>{"ref"in k&&t(0,r=k.ref),"isMobile"in k&&t(1,a=k.isMobile),"isPlaying"in k&&t(10,s=k.isPlaying),"disabled"in k&&t(2,u=k.disabled),"className"in k&&t(3,f=k.className),"click"in k&&t(4,p=k.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,g=o!==null);if(i.$$.dirty&5152)e:t(11,S=g?o:s);if(i.$$.dirty&2048)e:t(7,y=S?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?Er:rl)};e:t(6,b=h);return[r,a,u,f,p,g,b,y,n,l,s,S,o,E]}var Qa=class extends U{constructor(e){super(),K(this,e,Lb,Vb,q,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Ab)}},Ml=Qa;function Rb(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Bb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ya=class extends U{constructor(e){super(),K(this,e,Bb,Rb,q,{})}},zd=Ya;function Db(i){let e,t;return e=new zd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(2,o=r.isMobile)},i.$$.update=()=>{if(i.$$.dirty&5)e:n&&o?t(1,l="transform: scaleX(-1) scale(1.3333);"):n?t(1,l="transform: scaleX(-1);"):o?t(1,l="transform: scale(1.3333);"):t(1,l=void 0)},[n,l,o]}var Za=class extends U{constructor(e){super(),K(this,e,Nb,Db,q,{isPrev:0,isMobile:2})}},qd=Za;function Ob(i){let e,t;return e=new qd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fb(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[Ob]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Hb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=r==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,l,r,a,s,u]}var Xa=class extends U{constructor(e){super(),K(this,e,Hb,Fb,q,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},sl=Xa;function zb(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ja=class extends U{constructor(e){super(),K(this,e,qb,zb,q,{})}},Ud=Ja;function Ub(i){let e,t,n,o,l,r,a=i[2].default,s=Pe(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]],f={};for(let p=0;p<u.length;p+=1)f=ne(f,u[p]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),l=D("path"),c(t,"fill","#fff"),c(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"),c(n,"fill","#fff"),c(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"),c(n,"class","_ru"),c(o,"fill","#fff"),c(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"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),ge(e,f)},m(p,h){C(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Te(s,a,p,p[1],r?Ie(a,p[1],h,null):Ee(p[1]),null),ge(e,f=Me(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&w(e),s&&s.d(p)}}}function Kb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var xa=class extends U{constructor(e){super(),K(this,e,Kb,Ub,q,{})}},Kd=xa;function jb(i){ke(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 Wb(i){let e,t;return e=new Kd({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}var Gb="vk-video-logo-icon--short";function Qb(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;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,l=n?21:95),t(1,r=n?Gb:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en"))},[l,r,n,o]}var $a=class extends U{constructor(e){super(),K(this,e,Qb,Wb,q,{short:2,isCyrillic:3},jb)}},jd=$a;var Wd=require("@vkontakte/videoplayer-shared");function Zb(i){let e,t;return e=new Ud({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xb(i){let e,t;return e=new jd({props:{short:i[4],isCyrillic:i[5]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Jb(i){let e,t,n,o,l=[Xb,Zb],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[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&&w(n),r[e].d(s)}}}function xb(i){let e,t,n;function o(r){i[15](r)}let l={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:[Jb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&262196&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $b(i,e,t){let n,o,l,r,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:f}=e,p=Lt(),h=$e(),b=h.ui.currentGridType$;H(i,b,W=>t(13,l=W));let g=h.ui.isMobile;H(i,g,W=>t(14,r=W));let S=h.interfaceLanguage$;H(i,S,W=>t(12,o=W));let y,E,k,v=()=>{f(),h.callbacks?.onLogoClicked?.(),u&&window.open(u,"_blank")};function T(W){a=W,t(0,a)}i.$$set=W=>{"ref"in W&&t(0,a=W.ref),"logoClickable"in W&&t(1,s=W.logoClickable),"targetUrl"in W&&t(10,u=W.targetUrl),"click"in W&&t(11,f=W.click)},i.$$.update=()=>{if(i.$$.dirty&24580)e:t(4,k=(r||Ir(l,"l"))&&E);if(i.$$.dirty&4096)e:t(5,n=o===Wd.InterfaceLanguage.RU)};e:t(3,y=p.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:t(2,E=p.logoType==="vk_video"||p.logoType==="vk_video_mobile");return[a,s,E,y,k,n,b,g,S,v,u,f,o,l,r,T]}var eu=class extends U{constructor(e){super(),K(this,e,$b,xb,q,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Ar=eu;var Qd=require("@vkontakte/videoplayer-core");var tu=require("@vkontakte/videoplayer-core");function e4(i){ke(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 t4(i){let e,t,n,o,l,r,a,s;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),l=D("path"),r=D("path"),a=D("path"),s=D("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),z(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),z(e,"connecting",i[2])},m(u,f){C(u,e,f),m(e,t),m(t,n),m(t,o),m(t,l),m(t,r),m(t,a),m(t,s)},p(u,f){f&2&&z(s,"hidden",!u[1]),f&4&&z(e,"connecting",u[2])},d(u){u&&w(e)}}}function i4(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W;return{c(){e=D("svg"),t=D("g"),n=D("mask"),o=D("path"),r=D("path"),a=D("path"),u=D("path"),f=D("defs"),p=D("clipPath"),h=D("path"),g=D("filter"),S=D("feFlood"),y=D("feColorMatrix"),E=D("feOffset"),k=D("feGaussianBlur"),v=D("feColorMatrix"),T=D("feBlend"),W=D("feBlend"),c(o,"fill",l=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(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"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(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"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(h,"fill",b=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(S,"flood-opacity","0"),c(S,"result","BackgroundImageFix"),c(y,"in","SourceAlpha"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"result","hardAlpha"),c(k,"stdDeviation","2.5"),c(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(T,"in2","BackgroundImageFix"),c(T,"result","effect1_dropShadow_4085_178456"),c(W,"in","SourceGraphic"),c(W,"in2","effect1_dropShadow_4085_178456"),c(W,"result","shape"),c(g,"id","b"),c(g,"x","-3.4"),c(g,"y","-1.4"),c(g,"width","30.8"),c(g,"height","26.802"),c(g,"filterUnits","userSpaceOnUse"),c(g,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(Q,G){C(Q,e,G),m(e,t),m(t,n),m(n,o),m(n,r),m(t,a),m(t,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,S),m(g,y),m(g,E),m(g,k),m(g,v),m(g,T),m(g,W)},p(Q,G){G&2&&l!==(l=Q[1]?"#2688EB":"#fff")&&c(o,"fill",l),G&2&&s!==(s=Q[1]?"#2688EB":"#fff")&&c(a,"fill",s),G&2&&b!==(b=Q[1]?"#2688EB":"#fff")&&c(h,"fill",b)},d(Q){Q&&w(e)}}}function n4(i){let e;function t(l,r){return l[0]?i4:t4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(l,r){o.m(l,r),C(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:me,o:me,d(l){l&&w(e),o.d(l)}}}function o4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;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,r=o===tu.ChromecastState.CONNECTING),t(1,l=o===tu.ChromecastState.CONNECTED)},[n,l,r,o]}var iu=class extends U{constructor(e){super(),K(this,e,o4,n4,q,{isMobile:0,state:3},e4)}},Gd=iu;var Yd=require("@vkontakte/videoplayer-shared");function l4(i){let e,t;return e=new Gd({props:{isMobile:i[1],state:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function r4(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[l4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function s4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=Yd.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,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=l===Qd.ChromecastState.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var nu=class extends U{constructor(e){super(),K(this,e,s4,r4,q,{ref:0,isMobile:1,state:2,click:3})}},Mr=nu;var Vr=require("@vkontakte/videoplayer-core");function a4(i){let e,t;return e=new ur({props:{isActive:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},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;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]===Vr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[a4]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===Vr.PlaybackState.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function c4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=$e(),s=a.state.playbackState$;H(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,l=h.isActiveLive),"ariaLabel"in h&&t(2,r=h.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,p=()=>{if(!l){u();return}n===Vr.PlaybackState.PAUSED&&f()})},[o,l,r,n,p,s]}var ou=class extends U{constructor(e){super(),K(this,e,c4,u4,q,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Lr=ou;function f4(i){ke(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 d4(i){let e,t,n,o,l=i[9].default,r=Pe(l,i,i[8],null);return{c(){e=I("div"),t=I("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),z(t,"active",i[0]),z(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){C(a,e,s),m(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Te(r,l,a,a[8],o?Ie(l,a[8],s,null):Ee(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);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){_(r,a),o=!1},d(a){a&&w(e),r&&r.d(a),i[10](null),i[11](null)}}}function m4(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,p,h;function b(y){if(!h)return 0;let{width:E}=h.getBoundingClientRect(),k=E/2;return y<k?k:y>f-k?f-k:y}function g(y){pe[y?"unshift":"push"](()=>{h=y,t(4,h)})}function S(y){pe[y?"unshift":"push"](()=>{p=y,t(3,p)})}return i.$$set=y=>{"active"in y&&t(0,r=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,f=y.containerWidth),"$$scope"in y&&t(8,l=y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=b(s))},[r,a,u,p,h,n,s,f,l,o,g,S]}var lu=class extends U{constructor(e){super(),K(this,e,m4,d4,q,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},f4)}},Zd=lu;var Rr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function p4(i){ke(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 Xd(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?h4:_4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(l,r){o.m(l,r),C(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&w(e),o.d(l)}}}function _4(i){let e=(i[10].text||"")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(t,e)},d(n){n&&w(t)}}}function h4(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p:me,d(n){n&&w(t)}}}function Jd(i){let e,t;return{c(){e=I("div"),t=Re(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&w(e)}}}function g4(i){let e,t,n,o,l,r,a=i[10]&&Xd(i),s=!i[2]&&Jd(i);return{c(){e=I("div"),t=I("div"),o=F(),l=I("div"),a&&a.c(),r=F(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(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);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),z(e,"mobile",i[1])},m(u,f){C(u,e,f),m(e,t),m(e,o),m(e,l),a&&a.m(l,null),m(e,r),s&&s.m(e,null)},p(u,[f]){f&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);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=Xd(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=Jd(u),s.c(),s.m(e,null)),f&2&&z(e,"mobile",u[1])},i:me,o:me,d(u){u&&w(e),a&&a.d(),s&&s.d()}}}var al=150;function b4(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=$e().ui.rotateAlpha;H(i,h,G=>t(11,n=G));let b,g,S,y,E,k,v,T;function W(){let G=a.frameWidth,re=a.frameHeight;return G>al?(re=re/G*al,G=al):re>al&&(G=G/re*al,re=al),{width:G,height:re}}function Q(G){let re;a.isUV?re=Math.floor(u*G/a.frequency):re=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*G)));let ae=Math.floor(re/a.countPerImage),V=Math.floor(re%a.countPerImage/a.countPerRow),M=re%a.countPerRow,$=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&($=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&$++);let J=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(J=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let x=b*J,N=g*$,ie=-M*b,A=-V*g;return{imgSrc:a.links[ae],imgWidth:x,imgHeight:N,imgOffsetX:ie,imgOffsetY:A}}i.$$set=G=>{"time"in G&&t(0,o=G.time),"isMobile"in G&&t(1,l=G.isMobile),"videoEpisodes"in G&&t(13,r=G.videoEpisodes),"previewThumbsData"in G&&t(14,a=G.previewThumbsData),"progress"in G&&t(15,s=G.progress),"duration"in G&&t(16,u=G.duration),"isInteractive"in G&&t(2,f=G.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:S,imgWidth:y,imgHeight:E,imgOffsetX:k,imgOffsetY:v}=Q(s),S,(t(6,y),t(15,s)),(t(7,E),t(15,s)),(t(8,k),t(15,s)),(t(9,v),t(15,s)));if(i.$$.dirty&106496)e:t(10,T=Rr(s,u,r))};e:t(3,{width:b,height:g}=W(),b,t(4,g));return[o,l,f,b,g,S,y,E,k,v,T,n,h,r,a,s,u]}var ru=class extends U{constructor(e){super(),K(this,e,b4,g4,q,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},p4)}},xd=ru;function v4(i){ke(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 y4(i){let e,t;return{c(){e=I("span"),t=Re(i[7]),c(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o[0]&128&&Ge(t,n[7])},i:me,o:me,d(n){n&&w(e)}}}function w4(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(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.time=n[7]),o[0]&1024&&(l.isMobile=n[10]),o[0]&8&&(l.videoEpisodes=n[3]),o[0]&256&&(l.progress=n[8]),o[0]&2&&(l.duration=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function k4(i){let e,t,n,o,l=[w4,y4],r=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[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&&w(n),r[e].d(s)}}}function C4(i){let e,t,n,o,l=[i[9]],r={$$slots:{default:[k4]},$$scope:{ctx:i}};for(let a=0;a<l.length;a+=1)r=ne(r,l[a]);return e=new Zd({props:r}),n=new ll({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:j("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(){B(e.$$.fragment),t=F(),B(n.$$.fragment)},m(a,s){L(e,a,s),C(a,t,s),L(n,a,s),o=!0},p(a,s){let u=s[0]&512?Me(l,[Kc(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let f={};s[0]&2048&&(f.isActiveLive=a[11]),s[0]&1024&&(f.isMobile=a[10]),s[0]&2&&(f.ariaValueMax=a[1]),s[0]&64&&(f.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(f.ariaValueText=j("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(f.loadedProgress=a[12]),s[0]&64&&(f.filledProgress=a[6]),s[0]&64&&(f.handleProgress=a[6]),s[0]&8&&(f.videoEpisodes=a[3]),s[0]&8192&&(f.disabled=a[13].has("TIMELINE")),s[0]&4&&(f.hideHandel=a[2]),n.$set(f)},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&&w(t),R(e,a),R(n,a)}}}function S4(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,{showTimeline:g=!1}=e,S=$e(),y=Lt(),E=S.state.bufferedProgress$;H(i,E,le=>t(12,h=le));let k=S.state.positionWithScrubbing$;H(i,k,le=>t(39,s=le));let v=S.state.duration$;H(i,v,le=>t(1,l=le));let T=S.state.isLive$;H(i,T,le=>t(0,o=le));let W=S.state.isActiveLive$;H(i,W,le=>t(11,p=le));let Q=S.ui.isMobile;H(i,Q,le=>t(10,f=le));let G=y.features.episodes?S.actions.internal.getVideoEpisodes():void 0,re=S.actions.internal.getPreviewThumbsData(),ae=S.state.interactiveEpisodes$;H(i,ae,le=>t(40,u=le));let V=S.state.isInteractive,M=S.state.isInteractiveTime$;H(i,M,le=>t(2,r=le));let $=S.state.isInteractiveExpectation$;H(i,$,le=>t(38,a=le));let J=S.actions.internal.correctSeekTimeToInteractive,x=S.ui.controls.disabledControls$;H(i,x,le=>t(13,b=le));let N,ie,A,Y,Le=!1,Ke="",ze=0,Ye=0,De=0,ye;function X(le){return!J||!V?le:J(le*l)/l}function ve(le){S.actions.internal.startScrubbing(X(le))}function Ne(le){r||S.actions.internal.progressScrubbing(X(le))}function Ze(le){S.actions.internal.completeScrubbing(X(le)),t(34,Le=!1)}function Je(le,oe,Ce){qe(le,oe,Ce),t(34,Le=!0)}function we(le,oe,Ce){qe(le,oe,Ce),t(34,Le=!0)}function Ve(){t(34,Le=!1)}function qe(le,oe,Ce){t(8,De=X(le)),t(35,ze=oe),Ce&&t(36,Ye=Ce),t(7,Ke=Qe(le))}function Qe(le){let oe=wn((o?1-le:le)*l);return o?`-${oe}`:oe}return i.$$set=le=>{"showTimeline"in le&&t(33,g=le.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,N=V?u:G);if(i.$$.dirty[0]&2)e:t(4,ie=wn(l));if(i.$$.dirty[1]&256)e:t(5,A=wn(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,Y=s/l);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ye=a||r);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:Ye,translateXPx:ze,translateYPx:V&&re?-36:-16,active:Le&&g&&!ye,pointer:!y.features.timelinePreview||!re||o})},[o,l,r,N,ie,A,Y,Ke,De,n,f,p,h,b,y,E,k,v,T,W,Q,re,ae,V,M,$,x,ve,Ne,Ze,Je,we,Ve,g,Le,ze,Ye,ye,a,s,u]}var su=class extends U{constructor(e){super(),K(this,e,S4,C4,q,{showTimeline:33},v4,[-1,-1])}},$d=su;function P4(i){let e,t;return e=new ll({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:j("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=j("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function I4(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=$e().ui.isMobile;H(i,a,p=>t(4,n=p));let s,u,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,l=p.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=wn(l));if(i.$$.dirty&64)e:t(2,u=wn(o));if(i.$$.dirty&65)e:t(3,f=o/l)},[l,s,u,f,n,a,o]}var au=class extends U{constructor(e){super(),K(this,e,I4,P4,q,{position:6,duration:0})}},Br=au;function T4(i){ke(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 E4(i){let e;return{c(){e=I("div"),c(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:me,o:me,d(t){t&&w(e)}}}function A4(i){let e,t,n,o,l=[V4,M4],r=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),z(e,"mobile",i[2])},m(s,u){C(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),n=r[t],n?n.p(s,u):(n=r[t]=l[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&&w(e),r[t].d()}}}function M4(i){let e,t;return e=new $d({props:{showTimeline:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.showTimeline=n[1]),e.$set(l)},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;return e=new Br({props:{position:i[3],duration:i[4]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.position=n[3]),o&16&&(l.duration=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L4(i){let e,t,n,o,l=[A4,E4],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[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&&w(n),r[e].d(s)}}}function R4(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,p=$e(),h=p.state.isLive$;H(i,h,E=>t(12,n=E));let b=p.ads.duration;H(i,b,E=>t(4,r=E));let g=p.ads.position;H(i,g,E=>t(3,l=E));let S=p.ui.isMobile;H(i,S,E=>t(2,o=E));let y;return i.$$set=E=>{"isAds"in E&&t(0,a=E.isAds),"canRewindLive"in E&&t(9,s=E.canRewindLive),"isRewindableLive"in E&&t(10,u=E.isRewindableLive),"isHidden"in E&&t(11,f=E.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,y=!f&&(!n||n&&s&&u||a))},[a,y,o,l,r,h,b,g,S,s,u,f,n]}var uu=class extends U{constructor(e){super(),K(this,e,R4,L4,q,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},T4)}},Dr=uu;var im=require("@vkontakte/videoplayer-shared");function B4(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,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 f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Me(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"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&w(e),a&&a.d(f)}}}function D4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var cu=class extends U{constructor(e){super(),K(this,e,D4,B4,q,{})}},em=cu;function N4(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),ge(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function O4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var fu=class extends U{constructor(e){super(),K(this,e,O4,N4,q,{})}},tm=fu;function F4(i){ke(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 H4(i){let e,t,n,o;e=new em({});function l(s,u){if(s[4]==="FULL")return U4;if(s[4]==="COUNT")return q4}let r=l(i,-1),a=r&&r(i);return{c(){B(e.$$.fragment),t=F(),a&&a.c(),n=lt()},m(s,u){L(e,s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(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&&(w(t),w(n)),R(e,s),a&&a.d(s)}}}function z4(i){let e,t,n,o,l,r;return l=new tm({}),{c(){e=I("span"),t=Re(i[2]),n=F(),o=I("div"),B(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),m(e,t),C(a,n,s),C(a,o,s),L(l,o,null),r=!0},p(a,s){(!r||s&4)&&Ge(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(w(e),w(n),w(o)),R(l)}}}function q4(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=Re(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){C(o,e,l),m(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&Ge(n,t)},d(o){o&&w(e)}}}function U4(i){let e,t;return{c(){e=I("span"),t=Re(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&4&&Ge(t,n[2])},d(n){n&&w(e)}}}function K4(i){let e,t,n,o,l=[z4,H4],r=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[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&&w(n),r[e].d(s)}}}function j4(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[K4]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!t&&a&2&&(t=!0,s.ref=r[1],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function W4(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=$e(),b=h.callbacks?.onEpisodeChanged??im.noop,g=!!h.callbacks?.onEpisodeClicked,S=h.ui.currentGridType$;H(i,S,V=>t(18,a=V));let y=h.ui.episodes.openedByKeyboard$;H(i,y,V=>t(17,r=V));let E=h.ui.episodes.panelOpened$;H(i,E,V=>t(3,l=V));let k=h.ui.isMobile;H(i,k,V=>t(6,s=V));let v,T=V=>{if(!!h.callbacks?.onEpisodeClicked){let $=el(V);y.set($),E.set(!0),h.callbacks?.onEpisodeClicked?.($)}},W,Q,G,re=async(V,M,$)=>{await Bn(),V?.getAttribute("aria-expanded")==="false"&&M&&!$&&(y.set(!1),V.focus())};function ae(V){v=V,t(1,v)}return i.$$set=V=>{"position"in V&&t(13,u=V.position),"duration"in V&&t(14,f=V.duration),"timeCodes"in V&&t(0,p=V.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/f);if(i.$$.dirty&114689)e:{let V=Rr(n,f,p);V&&W?.text!==V.text&&(b(V),t(15,W=V))}if(i.$$.dirty&32768)e:t(2,o=W?.text||"");if(i.$$.dirty&262144)e:kn(a,"xl")?t(4,Q="FULL"):kn(a,"m")&&Vd(a,"xl")?t(4,Q="COUNT"):t(4,Q="SHORT");if(i.$$.dirty&4)e:t(5,G=`${j("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:re(v,r,l)},[p,v,o,l,Q,G,s,g,S,y,E,k,T,u,f,W,n,r,a,ae]}var du=class extends U{constructor(e){super(),K(this,e,W4,j4,q,{position:13,duration:14,timeCodes:0},F4)}},Nr=du;function G4(i){let e,t,n,o,l=i[2].default,r=Pe(l,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=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Me(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"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&w(e),r&&r.d(u)}}}function Q4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var mu=class extends U{constructor(e){super(),K(this,e,Q4,G4,q,{})}},nm=mu;function Y4(i){let e,t;return e=new nm({}),{c(){B(e.$$.fragment)},m(n,o){L(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 Z4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[Y4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function X4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=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,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var pu=class extends U{constructor(e){super(),K(this,e,X4,Z4,q,{ref:0,hidden:1,disabled:2,click:3})}},Or=pu;function J4(i){let e,t,n,o,l=i[2].default,r=Pe(l,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=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=Me(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&w(e),r&&r.d(u)}}}function x4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var _u=class extends U{constructor(e){super(),K(this,e,x4,J4,q,{})}},om=_u;function $4(i){ke(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function ev(i){let e,t;return e=new om({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function tv(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var hu=class extends U{constructor(e){super(),K(this,e,tv,ev,q,{isOpened:0},$4)}},lm=hu;function iv(i){let e,t;return e=new lm({props:{isOpened:i[3]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function nv(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[iv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function ov(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=r?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var gu=class extends U{constructor(e){super(),K(this,e,ov,nv,q,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Fr=gu;function lv(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function rv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var bu=class extends U{constructor(e){super(),K(this,e,rv,lv,q,{})}},Hr=bu;var sm=require("@vkontakte/videoplayer-shared");function sv(i){ke(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 rm(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&w(e)}}}function av(i){let e,t,n,o,l=i[1]&&rm(i);return n=new Hr({}),{c(){l&&l.c(),e=F(),t=I("div"),B(n.$$.fragment),c(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),C(r,e,a),C(r,t,a),L(n,t,null),o=!0},p(r,a){r[1]?l||(l=rm(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&z(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(w(e),w(t)),l&&l.d(r),R(n)}}}function uv(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:j("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Un.KeyK,$$slots:{default:[av]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function cv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=sm.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,l=u.disabled),"className"in u&&t(3,r=u.className),"click"in u&&t(4,a=u.click)},[n,o,l,r,a,s]}var vu=class extends U{constructor(e){super(),K(this,e,cv,uv,q,{ref:0,isMobile:1,disabled:2,className:3,click:4},sv)}},Vl=vu;function fv(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function dv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var yu=class extends U{constructor(e){super(),K(this,e,dv,fv,q,{})}},am=yu;function mv(i){let e,t;return e=new am({}),{c(){B(e.$$.fragment)},m(n,o){L(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 pv(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[mv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function _v(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=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,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var wu=class extends U{constructor(e){super(),K(this,e,_v,pv,q,{ref:0,hidden:1,disabled:2,click:3})}},zr=wu;var ku=require("@vkontakte/videoplayer-shared");function hv(i){ke(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 gv(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon svelte-1x1zctw"),bs(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){C(l,e,r),n||(o=de(e,"error",i[7]),n=!0)},p(l,r){r&1&&!bs(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&w(e),n=!1,o()}}}function bv(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){C(t,e,n)},p:me,d(t){t&&w(e)}}}function vv(i){let e;function t(l,r){return l[5]?bv:gv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(l,r){o.m(l,r),C(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&w(e),o.d(l)}}}function yv(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:[vv]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function wv(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=ku.noop}=e,p=()=>{t(5,l=!0)};i.$$set=h=>{"iconUrl"in h&&t(0,r=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,f=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=f===ku.noop);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,l=!1);return[r,a,u,f,n,l,o,p,s]}var Cu=class extends U{constructor(e){super(),K(this,e,wv,yv,q,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},hv)}},qr=Cu;var Rm=require("@vkontakte/videoplayer-shared");var on=require("@vkontakte/videoplayer-core"),wE=require("@vkontakte/videoplayer-shared"),ct=require("@vkontakte/videoplayer-shared"),Xn=require("@vkontakte/videoplayer-statistics"),kE=require("@vkontakte/videoplayer-interactive");var Et=require("@vkontakte/videoplayer-shared");var um=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var kv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Ur=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 Et.Subject,started$:new Et.Subject,paused$:new Et.Subject,resumed$:new Et.Subject,ended$:new Et.Subject,skipped$:new Et.Subject,clicked$:new Et.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Et.addScript)(kv,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,Et.assertNonNullable)(this.adsState),(0,Et.assertNonNullable)(this.playerState),(0,Et.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"}),xe(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,Et.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Et.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Et.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Et.assertNonNullable)(this.adman),(0,Et.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,b=this.playerState&&xe(this.playerState.vsid);b&&(h=parseInt(b,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:um(t,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u},S={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,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,Et.assertNonNullable)(this.actions),(0,Et.assertNonNullable)(this.adsState),(0,Et.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,Et.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=xe(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){(0,Et.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Et.assertNonNullable)(this.adman),(0,Et.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Et.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Et.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Et.assertNonNullable)(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}};var cm=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 Su=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new Kr,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new Pu,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},Kr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},Pu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,p)=>{let h=r.indexOf(p,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new Kr;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},fm=Su;var jr=require("@vkontakte/videoplayer-shared"),mo,An,Iu=0,Tu=!1,dm=(i,e,t)=>{let n=i>=Iu,o=i<Iu,l=(u,f=0,p=0)=>u<f&&u<p,r=(u,f=0,p=0)=>u>=f&&u<=p,a=(u,f=0,p=0)=>u>f&&u>p,s=t.find(({lang:u})=>u===e.value)?.subtitles;if(Iu=i,o&&(Tu=!1),(0,jr.isNonNullable)(mo)&&r(i,mo.startTime,mo.endTime)&&mo.lang===e.value)return mo;if(!(0,jr.isNonNullable)(An)&&s?.length&&!Tu){let u=s.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));An=u&&{...u,lang:e.value},mo=void 0,!(0,jr.isNonNullable)(An)&&s[s.length-1].endTime<i&&(Tu=!0);return}else{if(r(i,An?.startTime,An?.endTime))return mo=An,An=void 0,mo;(n&&a(i,An?.startTime,An?.endTime)||o&&l(i,An?.startTime,An?.endTime))&&(An=void 0)}};var Wr={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 mm=require("@vkontakte/videoplayer-shared"),pm=require("@vkontakte/videoplayer-statistics"),Gr=class{constructor(e,t){this.oneStat=new pm.OneStat(e,t),this.statSubscription=new mm.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var _m=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:l,canDownload:r,callbacks:a,webApi:s,videoEpisodes:u,previewThumbsData:f,uiConfig:p,coreConfig:h,player:b,disabledControls:g,isInteractive:S,interactiveRanges$:y,isInteractiveTime$:E,replayInteractive:k,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:T,additionalButtons:W,looped:Q=!1,statistics:G,saveRate:re})=>{let ae={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:l,live:{...h.live??{},isLiveCatchUpMode:!!n}},V=p,M=b||new on.Player(ae),$=new ct.Logger,J=new Ur($,{loadTimeout:V.ads.loadTimeout,initTimeout:V.ads.initTimeout}),x=To.getInstance(),N=s?.pictureInPictureApi,ie=s?.annotationsApi,A=$.createComponentLog("Store"),Y,Le,Ke={},ze=(0,ct.getCurrentBrowser)(),Ye=G?kt(G.oneStat.vsid$):In(void 0),De=Be(ro()),ye=N?.info.isActive$??new ct.ValueSubject(!1),X=N?.info.type,ve=Be(0),Ne=Be([]),Ze=(0,ct.merge)(M.events.fatalError$,M.events.managedError$).subscribe(O=>Ne.update(P=>[...P,O])),Je=In(!1,O=>{let P=M.events.fatalError$.subscribe(()=>O(!0));return()=>P.unsubscribe()}),we=async O=>{let P=Object.values(ct.InterfaceLanguage).includes(O);if(V.downloadVKLanguages&&(P&&V.updateBuiltinLanguages||!Ms(O))){let Ue;try{Ue=await(0,ct.loadVKLangPack)(O,Yc,Zc)}catch(nt){G?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),x?.report(nt,{errorType:"VKLangPack",fatal:!1})}Ue&&(As({language:O,pack:Ue,fallback:V.defaultLanguage}),Ve.set(O))}Ms(O)&&Ve.set(O)},Ve=Be(i);we(i);let qe=(O,P)=>{let Se=xe(Ve);return Vs(Se,O,P,V.defaultLanguage)},Qe=Be("thumb"),le=(()=>{let O=Pi([Je,Qe],([P,Se])=>P?"crashed":Se);return{...O,is:P=>xe(O)===P}})(),oe=(()=>{let O=Be(new Set(g));return{...O,add:P=>{O.update(Se=>new Set([...Se].concat(P)))},remove:P=>{O.update(Se=>{let Ue=[...Se];return new Set(Array.isArray(P)?Ue.filter(nt=>!P.includes(nt)):Ue.filter(nt=>nt!==P))})},includes:P=>{let Se=xe(O);return Array.isArray(P)?P.every(Ue=>Se.has(Ue)):Se.has(P)}}})();A({message:"create store"});let Ce=O=>{let P=O.container;P.append(M.experimental.element$.getValue()),be=new MutationObserver(Se=>{let{removedNodes:Ue}=Se[0];Ue.length&&P.append(M.experimental.element$.getValue())}),be.observe(P,{childList:!0})},fe=O=>{A({message:`init video, config: ${JSON.stringify(O)}`}),S?Ce(O):M.initVideo(O),O.subtitles&&M.setExternalTextTracks(O.subtitles),Y=O},Ae=new ct.Subject,We=O=>Ae.next(O),at=new ct.Subject,ut=new ct.Subject,st=new ct.Subject,be=null,mt={actionRewind$:at,actionSeek$:ut,inPiP$:ye,inFullscreen$:new ct.Observable(O=>De.subscribe(P=>O.next(P))),actionSetSubtitle$:st,nextMovie$:Ae};if(G){let{oneStat:O,statSubscription:P}=G;P.add(O.attachTo(M)),P.add(O.attachToUi(mt)),P.add(O.attachToAds(J.events)),O.authorize(o).catch(Se=>{A({message:`onestat auth error ${String(Se)}`})})}if(x){let O=new ct.Subscription,P=(Se,Ue)=>O.add(Se.subscribe(Ue));if(P(M.events.managedError$,Se=>{x.logIError(Se)}),P(M.events.fatalError$,Se=>{x.logIError(Se,!0)}),G){let{oneStat:Se}=G;P(Se.experimental.error$,Ue=>{x.logIError(Ue)})}x.sentrySubscription.add(O)}let it=()=>{(0,ct.isIOS)()&&Le&&Ef(Le)},ft=new ct.Subscription().add(M.experimental.element$.subscribe(O=>{O&&(Le=O,O.classList.add("player-media"),Ao(N)&&(N.updateVideoElement(),N.registryEventHandlers()),S&&O.setAttribute("pip","false"))})).add(M.events.ended$.subscribe(()=>{it(),a?.onEnded?.()})).add(M.events.started$.subscribe(async()=>{Ao(N)&&await N?.revealPictureInPicture();let O=M.info.muted$.getValue();a?.onStarted?.(),Ke.onStarted?.(O)})).add(M.events.willSeek$.subscribe(({from:O,to:P})=>{a?.onSeek?.(O,P)})).add(M.info.position$.subscribe(O=>{let P=M.info.duration$.getValue();a?.onTimeupdate?.(P,O),J.setPosition(O,P)})).add(M.events.fatalError$.subscribe(()=>{a?.onCrashed?.()})).add(M.events.firstBytes$.subscribe(()=>{gt.state.isFirstBytes$.set(!0)})).add(M.info.is3DVideo$.subscribe(O=>{gt.ui.is3DVideo.set(O)})).add(M.info.isEnded$.subscribe(O=>{S&&(O?(E?.getValue()&&oe.add(Yl),oe.add("PLAY_BUTTON")):oe.remove("PLAY_BUTTON"))})).add(M.info.liveTime$.subscribe(O=>{a?.onLiveTime?.(O)})).add(M.info.isStalled$.subscribe(O=>{a?.onStalledChanged?.(O)})).add(J.events.started$.subscribe(()=>{a?.adsInfo?.onStarted?.()})).add(J.events.ended$.subscribe(()=>{a?.adsInfo?.onCompleted?.()})),yt=new ct.Subscription,Mt=()=>{yt.add(M.events.log$.subscribe(O=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${O.component}`,O.message)})).add($.log$.subscribe(O=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${O.component}.`,O.message)}))},je=()=>{yt.unsubscribe()},Bt=(O,P)=>{M.startCameraManualRotation(O,P)},Dt=(O=!1)=>{M.stopCameraManualRotation(O)},Nt=(O,P,Se)=>{M.moveCameraFocusPX(O,P,Se)},ni=()=>{M.holdCamera()},tt=()=>{M.releaseCamera()},pt=In(M.info.position$.getValue(),O=>{let P,Se,Ue=()=>{let nt=M.info.playbackState$.getValue(),Zt=M.info.isLive$.getValue(),ii=M.info.duration$.getValue(),Ft=M.info.position$.getValue();if([on.PlaybackState.PLAYING,on.PlaybackState.PAUSED].includes(nt)){let _n=Zt?Ft-ii:M.getExactTime();_n!==Se&&O(_n),Se=_n}P=requestAnimationFrame(Ue)};return Ue(),()=>cancelAnimationFrame(P)}),_e=kt(ye),ht=kt(M.info.playbackState$),St=kt(M.info.currentBuffer$),Xt=kt(M.info.isEnded$),bt=kt(M.info.isLive$),jt=V.features.playbackRate?kt(M.info.canChangePlaybackSpeed$):In(!1),Jt=kt(M.info.liveBufferTime$),di=kt(M.info.volume$),Ii=kt(M.info.muted$),Hi=Ss(M.info.autoQualityLimits$.pipe((0,ct.map)(({max:O})=>O!==void 0)),M.info.autoQualityLimits$.getValue()?.max!==void 0),Wt=kt(M.info.autoQualityLimitingAvailable$),mi=kt(M.info.availableQualities$),ln=kt(M.info.availableQualitiesFps$),oi=kt(M.info.chromecastState$),zi=kt(M.info.chromecastDeviceName$),li=kt(M.info.currentFormat$),qi=kt(M.info.throughputEstimation$),pi=kt(M.info.videoBitrate$),Ti=kt(M.info.intrinsicVideoSize$),_i=kt(M.info.duration$),Ei=kt(M.info.isAudioAvailable$),Pt=null,Ot=M.info.isBuffering$,Ai=In(Ot.getValue(),O=>{let P=Ot.subscribe(Se=>{Se&&Pt===null?Pt=window.setTimeout(()=>{O(Ot.getValue()),Pt=null},V.loaderDelay):O(Se)});return()=>{P.unsubscribe(),Pt&&clearTimeout(Pt)}}),hi=()=>{Pt&&clearTimeout(Pt),Pt=null},zt=Pi([_i,bt],([O,P])=>P?-O:O),xt=Pi([ht],([O])=>O===on.PlaybackState.PLAYING),gi=kt(M.info.atLiveEdge$),ri=kt(M.info.atLiveDurationEdge$),Ct=kt(M.info.position$),Mi=Pi([Ct,_i],([O,P])=>isFinite(O)&&isFinite(P)&&!!P),Gt=Pi([oi],([O])=>O===on.ChromecastState.CONNECTED),$t=Be(void 0),rn=kt(M.info.isAutoQualityEnabled$,O=>O&&$t.set(void 0)),fn=kt(M.info.currentQuality$,()=>$t.set(void 0)),ei=Pi([$t,fn],([O,P])=>O??P),Vi=Pi([mi,ln,rn,ei,li],([O,P,Se,Ue,nt])=>{let Zt=[];nt!==on.VideoFormat.MPEG&&Zt.push({value:"auto",displayValue:qe("auto_quality_option"),selected:Se});let ii=O.filter(Ft=>Ft!==ct.VideoQuality.INVARIANT);for(let Ft of ii){let _n=P[Ft],qn=Ft===ct.VideoQuality.INVARIANT?qe("auto_quality_option"):Ft;Zt.push({value:Ft,displayValue:`${qn}${_n?cm(_n):""}`,selected:Se?!1:Ft===Ue})}return Zt}),Li=kt(M.info.currentPlaybackRate$),bi=Pi([Li,gi,ri],([O,P,Se])=>{let Ue=Se||S?1:V.controls.playbackRateMin,nt=P?1:V.controls.playbackRateMax,Zt=V.controls.playbackRateStep,ii=[];for(let Ft=Ue;Ft<=nt;Ft+=Zt)ii.push({value:Ft,displayValue:Ft===1?qe("playback_rate_1"):qe("playback_rate",{multiplier:Ft.toString(10)}),selected:O===Ft});return ii}),vi=V.features.subtitles?kt(M.info.availableTextTracks$):In([]),Vt=Pi([vi],([O],P)=>{let Se=[],Ue=[];for(let nt of O)nt.url&&Se.push(fetch(nt.url));Promise.allSettled(Se).then(nt=>{for(let[Zt,ii]of nt.entries())ii.status==="fulfilled"&&ii.value.text().then(Ft=>{let _n=new fm,qn=O[Zt].language,no=!!O[Zt].isAuto,hl=_n.parse(Ft);qn&&hl&&Ue.push({lang:qn,subtitles:hl,isAuto:no}),Zt===nt.length-1&&P(Ue)})})}),qt={displayValue:qe("subtitles_off"),value:"off"},yi=Be({...qt}),Ui=Pi([Vt,yi,Vt],([O,P])=>{if(O?.length>0){let Se=[{...qt,selected:P?.value===qt.value}];for(let{lang:Ue,isAuto:nt}of O)Wr[Ue]&&Se.push({displayValue:nt?qe("subtitles_auto",{language:Wr[Ue]}):Wr[Ue],value:Ue,selected:P?.value===Ue,isAuto:nt});return Se}else return[]}),Ri=Pi([pt,yi,Vt],([O,P,Se])=>{if(P&&P.value!==qt.value)return dm(O,P,Se)}),si=Pi([Ri],([O])=>O?.texts?O.texts:[]),xi=Be(!0),sn=Pi([St,zt,Ct,Jt],([O,P,Se,Ue])=>{let nt=O?.end??0;if(!Ue)return nt/P;let ii=-Se+Ue-P;return(nt-ii)/P}),$i=kt(M.info.availableSources$),an=Pi([$i],([O])=>Object.keys(O?.[on.VideoFormat.MPEG]||{}).length>0),Ki=()=>{let O=Object.keys(M.info.availableSources$?.getValue()?.[on.VideoFormat.MPEG]||{}),P=(0,ct.getHighestQuality)(O)||ct.VideoQuality.Q_144P;return Y.sources[on.VideoFormat.MPEG]?.[P]},Qt=()=>{let O=Ki();O?af(O,Y?.meta?.title||"video"):A({message:"There is no URL for download video"})},ji=()=>{A({message:"toggle muted"});let O=M.info.muted$.getValue(),Ue=!(M.info.volume$.getValue()===0||O);wi(Ue)},Yt=()=>{gt.ui.settingsMenuVisible.set(!1)},Bi=O=>{gt.ui.settingsMenuOpenedByKeyboard.set(!!O),gt.ui.settingsMenuVisible.set(!0)},Wi=O=>{xe(gt.ui.settingsMenuVisible)?Yt():Bi(O)},Gi=(O,P=O,Se=!1)=>{let Ue=!Se,nt=M.info.muted$.getValue();A({message:`set volume, volume: ${O}, preferredVolume: ${P}, internalCall: ${Ue}`}),M.setVolume(O),J.setVolume(O),Ue&&a?.onVolumeChange?.(O),Is(P),nt?(M.setMuted(!1),Ue&&a?.onUnmute?.(),xl(!1)):!nt&&O===0&&(M.setMuted(!0),Ue&&a?.onMute?.(),xl(!0))},wi=(O,P=!1)=>{let Se=!P,Ue=M.info.volume$.getValue();if(A({message:`set muted, currentVolume: ${Ue}, mute: ${O}, internalCall: ${Se}`}),M.setMuted(O),J.setVolume(O?0:Ue),xl(O),Se&&(O?a?.onMute?.():a?.onUnmute?.()),Ue===0){let nt=Jl()??V.volumeDefault;nt===0&&(nt=V.volumeMinRestore,Is(nt)),M.setVolume(nt),J.setVolume(nt),Se&&a?.onVolumeChange?.(nt)}},Di=Be(!1),Xe=O=>{Di.set(O),M.setLooped(O)};Xe(Q);let ti=()=>{M.prepare()},ai=()=>{if((0,ct.assertNonNullable)(gt),xe(gt.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(A({message:"toggle play"}),xe(gt.playerPhase)==="ads"){J.togglePlay();return}let P=()=>{A({message:"toggle play, call player.play"}),M.play(),a?.onPlay?.()},Se=()=>{A({message:"toggle play, call player.pause"}),M.pause(),a?.onPause?.()};if(M.info.isEnded$.getValue()){if(A({message:"toggle play, video ended, seek to 0"}),at.next(),ut.next(Xn.SeekAction.REWIND),S){k?.();return}M.seekTime(0),P()}else M.info.playbackState$.getValue()!==on.PlaybackState.PLAYING?P():Se()},He=O=>{A({message:`set quality, quality: ${O}`}),M.setAutoQuality(O==="auto"),O!=="auto"?(pf(e,O),$t.set(O),M.setQuality(O)):Ts()},Qi=O=>{A({message:`set trafficSavingEnabled, value: ${O}`}),M.setAutoQualityLimits({max:O?V.trafficSavingLimit:void 0}),vf(O)},Yi=O=>{M.setPlaybackRate(O),V.features.saveRate&&re&&!M.info.isLive$.getValue()&&wf(O)},en=()=>{let O=xe(bi),P=O.findIndex(({selected:Ue})=>Ue);if(P===O.length-1)return;let Se=O[P+1];Yi(Se.value)},Zi=()=>{let O=xe(bi),P=O.findIndex(({selected:Ue})=>Ue);if(P===0)return;let Se=O[P-1];Yi(Se.value)},Ni=O=>{O&&O.value!==qt.value&&st.next(O.isAuto?O.value+"_auto":O.value),yi.set(O)},tn=()=>{let O=xe(Ui),P=xe(yi),Se=xe(Ve);if(P?.value===qt.value){let Ue=O.filter(nt=>nt.value!==qt.value).find(nt=>nt.value===Se)||O[1];Ni(Ue??{...qt})}else Ni({...qt,selected:!1})},ui=(O,P,Se=!0)=>{if(A({message:`seek to time, time: ${O}`}),ut.next(P),M.info.isLive$.getValue()){let Ue=M.info.duration$.getValue(),nt=Math.min(0,Ue+O);M.seekTime(nt,Se)}else{if(E?.getValue())return;M.seekTime(bo(O),Se)}},dn=O=>{A({message:`seek to episode start time: ${O}`}),ui(O,Xn.SeekAction.EPISODE,!0)},Rt=(O,P)=>{A({message:`seek to percent, percent: ${O}`});let Se=Math.round(xe(zt)*O);ui(Se,P,!1)},Oi=O=>{A({message:`seek external, time: ${O}`}),ut.next(Xn.SeekAction.UNKNOWN),M.seekTime(M.info.isLive$.getValue()?-O:O)},se=O=>{A({message:`set auto quality limitation. Max: ${O.max??"none"}. Min: ${O.min??"none"}`}),M.setAutoQualityLimits(O)},dt=O=>{A({message:`seek external to episode start time: ${O}`}),ui(O,Xn.SeekAction.EPISODE,!0)},Ut=O=>{A({message:`set playback rate to: ${O}`}),M.setPlaybackRate(O)},Xi=Be(void 0),ki=Be(!1),Ci=O=>{A({message:`start scrubbing, progress: ${O}`}),ki.set(!0),nn(O)},nn=O=>{Xi.set(O)},Cn,gn,bn=()=>{Xi.set(void 0),ki.set(!1)},Kt=()=>{clearTimeout(gn),clearTimeout(Cn),Cn=window.setTimeout(()=>{bn()},500),Le?.removeEventListener("seeked",Kt)},On=O=>{A({message:`complete scrubbing, progress: ${O}`}),Rt(O,Xn.SeekAction.SLIDER),xe(gt.ui.isMobile)&&xe(gt.state.currentFormat$)===on.VideoFormat.HLS?(Le?.addEventListener("seeked",Kt),gn=window.setTimeout(()=>{Kt()},300)):bn()},Fn=Pi([pt,zt,Xi],([O,P,Se],Ue)=>{Ue((0,ct.isNonNullable)(Se)?Se*P:O)}),Sn=Be({width:0,height:0}),Mn=Pi([Sn],([{width:O}],P)=>{let Se=Ld(O);P(Se)}),vn=Be(!1),Vn=Pi([Mn,vn],([O,P])=>P?W.filter(Se=>!Se.hideOnMobile):W.filter(Se=>!Se.hideOnDesktopGridTypes?.includes(O))),mn=Pi([vn,Je],([O,P],Se)=>{Se(O&&P)}),te=()=>{ut.next(Xn.SeekAction.LIVE),A({message:"switch to active live"}),M.seekTime(0),M.info.playbackState$.getValue()!==on.PlaybackState.PLAYING&&gt.actions.internal.togglePlay()},vt=()=>J.skip(),Pn=(O=!0)=>{(0,ct.assertNonNullable)(gt),A({message:`switch from ads to video, callPlay: ${O}`}),Qe.set("video"),O&&M.play()},Hn=()=>{(0,ct.assertNonNullable)(gt),A({message:"switch from video to ads"}),gt.actions.internal.pause(),it(),Qe.set("ads")},Jn=O=>{(0,ct.assertNonNullable)(gt);let P=O?"waitingLive":"thumb";Qe.set(P)},xn=O=>{(0,ct.assertNonNullable)(gt);let P=O?"waitingRecord":"thumb";Qe.set(P)},$n=()=>((0,ct.assertNonNullable)(gt),rf(M,Y,gt)),eo=()=>((0,ct.assertNonNullable)(gt),sf(M,Y,gt)),_o=()=>Le,ee=()=>{A({message:"toggle chromecast"}),M.toggleChromecast()},pn=O=>{(0,ct.assertNonNullable)(gt);let P=!O;if(xe(gt.playerPhase)==="ads"){A({message:`pause ads, internalCall: ${P}`}),J.pause();return}A({message:`pause video, internalCall: ${P}`}),P&&a?.onPause?.(),M.pause()},No=O=>{(0,ct.assertNonNullable)(gt);let P=!O;if(xe(gt.playerPhase)==="ads"){A({message:`play ads, internalCall: ${P}`}),J.play();return}A({message:`play video, internalCall: ${P}`}),P&&a?.onPlay?.(),M.play()},Oo=(O,P)=>{(0,ct.assertNonNullable)(gt),A({message:`first start, show ads: ${O}, internalCall: ${!P}`}),O?Qe.set("ads"):(Qe.set("video"),P?M.play():gt.actions.internal.togglePlay())},ho=()=>(A({message:"getting time codes"}),u),Fo=()=>{let O=ho();if(!O||[0,1].includes(O.length))return;let P=M.info.position$.getValue();return O.find(Se=>Se.time>P)},go=O=>{let P=O;P||(P=Fo()),P&&(A({message:"seek to next episode"}),ui(P.time,Xn.SeekAction.EPISODE,!0))},to=()=>{let O=ho();if(!O||[0,1].includes(O.length))return;let P=M.info.position$.getValue(),Se=O.findIndex(nt=>nt.time>P),Ue=Se===-1?O.length-2:Se-2;if(!(Ue<0))return O[Ue]},Gn=O=>{let P=O;P||(P=to()),P&&(A({message:"seek to prev episode"}),ui(P.time,Xn.SeekAction.EPISODE,!0))},io=()=>(A({message:"getting preview thumbs data"}),f),Ho=async()=>{N?.isActive()?await N?.remove():await N?.request()},zo=(O=-90)=>{ve.update(P=>P+O)},zn=Be([]);y?.subscribe(O=>{let P=[];for(let Se=0;Se<O.length;Se++){let{range:[Ue,nt],subjects:Zt}=O[Se];Se===0&&Ue!==0&&P.push({time:0,text:"",interactive:!1,completed:!0}),P.push({time:Ue/1e3,text:"",interactive:!0,completed:!Zt.length}),nt!==1/0&&P.push({time:nt/1e3,text:"",interactive:!1,completed:!0})}zn.set(P)});let qo=Be(!1);E?.subscribe(O=>{O&&xe(ki)&&bn()});let bo=O=>{if(!S)return O;let P=xe(zn),Se=xe(zt),nt=xe(Ct)/Se,Zt=P.find(ii=>ii.interactive&&!ii.completed&&ii.time>nt);return typeof Zt?.time=="number"?Math.min(O,Zt.time-.05):O},vo=()=>{gt.ui.episodes.panelOpened$.set(!1)},Uo=()=>{clearTimeout(gn),clearTimeout(Cn),ft.unsubscribe(),yt.unsubscribe(),M.destroy(),J.destroy(),G?.destroy(),x?.destroy(),Ze.unsubscribe(),be?.disconnect(),be=null},gt={interfaceLanguage$:Ve,initVideo:fe,videoId:e,isClip:t,playerPhase:le,vsid:Ye,state:{positionExact$:pt,positionWithScrubbing$:Fn,duration$:zt,playbackState$:ht,isPlaying$:xt,isLoaderVisible:Ai,bufferedProgress$:sn,isLive$:bt,canChangePlaybackSpeed$:jt,isActiveLive$:gi,isOldestAvailableLive$:ri,isRewindableLive$:Mi,isEnded$:Xt,muted$:Ii,volume$:di,trafficSavingEnabled$:Hi,autoQualityLimitingAvailable$:Wt,currentQuality$:ei,isAutoQualityEnabled$:rn,availableQualities$:Vi,currentPlaybackRate$:Li,availablePlaybackRates$:bi,currentSubtitle$:yi,availableSubtitlesList$:Ui,currentSubtitleCaptions$:si,isAutoSubtitleCaptionVisible$:xi,chromecastState$:oi,chromecastDeviceName$:zi,chromecastConnected$:Gt,currentFormat$:li,throughputEstimation$:qi,videoBitrate$:pi,videoSize$:Ti,errorLog$:Ne,crashed$:Je,isAudioAvailable$:Ei,isAudioDisabled:!!l,canDownload:V.features.download&&!!r,availableSources$:$i,hasMpegSources$:an,isInteractive:S,showInteractiveGraph:V.features.interactiveGraph,showSeekToInteractive:V.features.seekToInteractive,showPlayPrevChapter:V.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:V.features.interactiveTimeIndicator&&!!xe(zn).length,interactiveEpisodes$:zn,isInteractiveTime$:E?kt(E):Be(!1),graphIsOpened$:Be(!1),isInteractiveExpectation$:qo,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:T,looped$:Di,isFirstBytes$:Be(!1)},ui:{controlsVisible:Be(!1),touched:Be(!1),controls:{prevButton:Be(void 0),playButton:Be(void 0),replayButton:Be(void 0),nextButton:Be(void 0),playPrevChapterButton:Be(void 0),seekToInteractiveButton:Be(void 0),interactiveGraphButton:Be(void 0),liveButton:Be(void 0),time:Be(void 0),episodes:Be(void 0),volume:Be(void 0),subtitles:Be(void 0),settings:Be(void 0),context:Be(void 0),chromecast:Be(void 0),pip:Be(void 0),fullscreen:Be(void 0),vkLogo:Be(void 0),interactiveTimeIndicator:Be(void 0),additionalButtons:W.length?W.reduce(O=>[...O,Be(void 0)],[]):[],disabledControls$:oe},modals:{hotKeyMap:{show:Be(!1),data:Be({title:"",closeBtnText:"",groups:[]})}},isFullscreen:De,rotateAlpha:ve,isAutoplay:Be(!1),debugPanelVisible:Be(!1),episodes:{panelOpened$:Be(!1),openedByKeyboard$:Be(!1)},contextMenu:{visible$:Be(!1),btnRef$:Be(void 0),openedByBtnKeyboard$:Be(!1),openedByHotKey$:Be(!1),lastActiveElem$:Be(void 0),showContextMenuBtn$:Be(!1),position$:Be({top:0,left:0})},playerSize:Sn,isMobile:vn,mobileNotReportControlHidden$:mn,mobileUnmuteButtonExpanded:Be(!1),mobileUnmuteButtonVisible:Be(!1),icon3DVideoVisible:Be(!1),settingsMenuVisible:Be(!1),settingsMenuOpenedByKeyboard:Be(!1),scrubbingInProgress:ki,is3DVideo:Be(!1),isPictureInPictureActive$:_e,pictureInPictureType$:In(X),clientInfo$:In(ze),currentGridType$:Mn,additionalButtons$:Vn,interactiveHideMobileControls:Be(!1),overlayContainer$:Be(void 0),startedByKeyboard$:Be(!1)},ads:{position:Be(0),duration:Be(0),playbackState:Be("inactive"),canSkip:Be(!1),secondsToWatchBeforeSkip:Be(0),postrollPassed:Be(!1)},webApi:{pictureInPictureApi:N,annotationsApi:ie},actions:{internal:{preload:ti,firstStart:O=>Oo(O,!1),pause:()=>pn(!1),togglePlay:ai,toggleMuted:ji,toggleSettingsMenu:Wi,openSettingsMenu:Bi,closeSettingsMenu:Yt,setVolume:Gi,setQuality:He,setTrafficSavingEnabled:O=>Qi(O),setPlaybackRate:Yi,incrementPlaybackRate:en,decrementPlaybackRate:Zi,setSubtitle:Ni,toggleSubtitle:tn,togglePictureInPicture:Ho,startScrubbing:Ci,progressScrubbing:nn,completeScrubbing:On,toggleChromecast:ee,switchToActiveLive:te,switchFromAdsToVideo:Pn,switchFromVideoToAds:Hn,skipAd:vt,setWaitingLive:Jn,setWaitingRecord:xn,getDebugTextData:$n,getDebugPanelData:eo,getVideoElement:_o,seekTime:(O,P,Se)=>ui(O,P,Se),clearDelayedBufferingCheckTimeout:hi,seekEpisodeStartTime:dn,seekToPercent:Rt,getNextEpisode:Fo,seekToNextEpisode:go,getPrevEpisode:to,seekToPrevEpisode:Gn,startLogging:Mt,stopLogging:je,startCameraManualRotation:Bt,stopCameraManualRotation:Dt,moveCameraFocusPX:Nt,holdCamera:ni,releaseCamera:tt,getVideoEpisodes:ho,getPreviewThumbsData:io,downloadVideo:Qt,addLanguage:As,setLanguage:we,nextMovie:We,videoRotate:zo,correctSeekTimeToInteractive:bo,replayInteractive:k,setLooped:Xe},external:{firstStart:O=>Oo(O,!0),play:()=>No(!0),pause:()=>pn(!0),seekTime:O=>Oi(O),seekEpisodeStartTime:O=>dt(O),setPlaybackRate:O=>Ut(O),setAutoQualityLimits:O=>se(O),setMuted:O=>wi(O,!0),setVolume:O=>Gi(O,O,!0),returnFocusToEpisodes:vo}},callbacks:a,setUiCallbacks:O=>{Ke={...O}},getAdmanWrapper:()=>J,getLogger:()=>$,destroy:Uo};return gt};var Yr=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var Zr=async(i,e,t)=>{await Bn(),e&&t&&(t.focus(),i.set(!1))};function Sv(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function Pv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Eu=class extends U{constructor(e){super(),K(this,e,Pv,Sv,q,{})}},hm=Eu;function Iv(i){let e,t;return e=new hm({}),{c(){B(e.$$.fragment)},m(n,o){L(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 Tv(i){let e,t,n;function o(r){i[8](r)}let l={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[Iv]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!t&&a&4&&(t=!0,s.ref=r[2],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Ev(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=$e(),a=r.ui.contextMenu.visible$;H(i,a,E=>t(3,n=E));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,h,b=E=>{let k=el(E),v=Qf(h);f.set(v),s.set(k),a.set(!n)},g=()=>{u.set(!0)},S=()=>{u.set(!1)};function y(E){h=E,t(2,h)}return i.$$set=E=>{"disabled"in E&&t(0,o=E.disabled),"ariaLabel"in E&&t(1,l=E.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&p.set(h)},[o,l,h,n,a,b,g,S,y]}var Au=class extends U{constructor(e){super(),K(this,e,Ev,Tv,q,{disabled:0,ariaLabel:1})}},gm=Au;function Av(i){ke(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 Mv(i){let e,t;return e=new Pr({props:{completed:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,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,o,l,r,a,s,u,f;function p(b){i[22](b)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[Mv]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new At({props:h}),pe.push(()=>Fe(t,"ref",p)),t.$on("click",i[14]),{c(){e=I("div"),B(t.$$.fragment),o=F(),l=I("div"),r=F(),a=I("div"),c(l,"class","ref-block svelte-17imlp9"),z(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),z(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),z(e,"mobile",i[2]),z(e,"fullscreen",i[6]),z(e,"invisible",i[1])},m(b,g){C(b,e,g),L(t,e,null),m(e,o),m(e,l),i[23](l),m(e,r),m(e,a),i[24](a),s=!0,u||(f=[de(e,"mousemove",rt(i[21])),de(e,"mouseleave",i[15])],u=!0)},p(b,g){let S={};g[0]&32&&(S.tooltipActive=b[5]),g[1]&1&&(S.$$scope={dirty:g,ctx:b}),!n&&g[0]&1&&(n=!0,S.ref=b[0],Oe(()=>n=!1)),t.$set(S),(!s||g[0]&2)&&z(l,"hidden",b[1]),(!s||g[0]&16)&&z(a,"paused",b[4]),(!s||g[0]&4)&&z(e,"mobile",b[2]),(!s||g[0]&64)&&z(e,"fullscreen",b[6]),(!s||g[0]&2)&&z(e,"invisible",b[1])},i(b){s||(d(t.$$.fragment,b),s=!0)},o(b){_(t.$$.fragment,b),s=!1},d(b){b&&w(e),R(t),i[23](null),i[24](null),u=!1,et(f)}}}function Lv(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=$e(),h=Tn(),{interactiveControlsOpacity$:b}=h;H(i,b,Y=>t(18,o=Y));let g=p.ui.isMobile;H(i,g,Y=>t(2,a=Y));let S=p.ui.isFullscreen;H(i,S,Y=>t(6,s=Y));let y=p.state.isInteractiveTime$;H(i,y,Y=>t(19,l=Y));let E=h.showInteractiveTimeIndicatorTooltip$;H(i,E,Y=>t(17,n=Y));let k=p.ui.controlsVisible;H(i,k,Y=>t(20,r=Y));let v=p.callbacks?.onInteractiveTimeIndicatorClick,T,W,Q,G=()=>{t(4,Q=!0)},re=()=>{ae(),f?.addEventListener("animationiteration",G,{once:!0})},ae=()=>{t(4,Q=!1),f?.removeEventListener("animationiteration",G)},V=Y=>{E.set(Y)},M,$=()=>{W||(E.set(!0),v?.())};Rn(()=>{E.clearTimeout(),ae()});let J=()=>{E.set(!1)};function x(Y){yn.call(this,i,Y)}function N(Y){u=Y,t(0,u)}function ie(Y){pe[Y?"unshift":"push"](()=>{u=Y,t(0,u)})}function A(Y){pe[Y?"unshift":"push"](()=>{f=Y,t(3,f)})}return i.$$set=Y=>{"ref"in Y&&t(0,u=Y.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,T=!a&&r);if(i.$$.dirty[0]&851968)e:t(1,W=!l||!!o||T);if(i.$$.dirty[0]&2)e:t(4,Q=W);if(i.$$.dirty[0]&131074)e:t(5,M=n&&!W);if(i.$$.dirty[0]&131072)e:n?re():ae()},[u,W,a,f,Q,M,s,b,g,S,y,E,k,V,$,J,T,n,o,l,r,x,N,ie,A]}var Mu=class extends U{constructor(e){super(),K(this,e,Lv,Vv,q,{ref:0},Av,[-1,-1])}},Xr=Mu;function Bv(i){ke(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 bm(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 vm(i){let e,t,n;function o(r){i[173](r)}let l={disabled:!i[9],tooltipContent:j("tooltip_previous"),$$slots:{default:[Dv]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Dv(i){let e,t;return e=new sl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ym(i){let e,t,n;function o(r){i[174](r)}let l={disabled:i[74],tooltipContent:j("tooltip_restart"),$$slots:{default:[Nv]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Nv(i){let e,t;return e=new Vl({props:{click:i[128],disabled:i[74]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},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(r){i[176](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[Ov]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&65536&&(s.tooltipContent=r[47]),a[2]&8192&&(s.disabled=r[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Ov(i){let e,t,n;function o(r){i[175](r)}let l={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(l.ref=i[26]),e=new Ml({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function km(i){let e,t,n;function o(r){i[177](r)}let l={disabled:!i[8],tooltipContent:j("tooltip_next"),$$slots:{default:[Fv]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Fv(i){let e,t;return e=new sl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(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,o,l=i[121]&&zv(i),r=i[120]&&Uv(i),a=i[119]&&jv(i);return{c(){l&&l.c(),e=F(),r&&r.c(),t=F(),a&&a.c(),n=lt()},m(s,u){l&&l.m(s,u),C(s,e,u),r&&r.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[121]&&l.p(s,u),s[120]&&r.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(w(e),w(t),w(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function zv(i){let e,t,n;function o(r){i[178](r)}let l={disabled:i[73],tooltipContent:j("tooltip_interactive_go_back"),disabledTooltipContent:j(i[124]),$$slots:{default:[qv]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function qv(i){let e,t;return e=new zr({props:{disabled:i[73],click:i[17]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(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;function o(r){i[179](r)}let l={disabled:i[76],tooltipContent:j("tooltip_interactive_seek"),disabledTooltipContent:j(i[78]),$$slots:{default:[Kv]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=j(r[78])),a[0]&32768|a[2]&16384|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Kv(i){let e,t;return e=new Or({props:{disabled:i[76],click:i[15]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jv(i){let e,t,n;function o(r){i[180](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[Wv]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.tooltipContent=r[48]),a[2]&32768&&(s.disabled=r[77]),a[0]&65536|a[1]&1|a[2]&32768|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Wv(i){let e,t;return e=new Fr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){t||(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(r){i[181](r)}let l={tooltipContent:i[50],$$slots:{default:[Gv]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Gv(i){let e,t;return e=new Lr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){t||(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(r){i[182](r)}let l={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new Cr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.showDuration=r[55]),a[0]&16|a[2]&393216&&(s.position=r[4]?r[79]:r[80]),a[0]&16|a[2]&1572864&&(s.duration=r[4]?r[81]:r[82]),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].time,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Pm(i){let e,t;return e=new Nr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){t||(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=i[20]&&Pm(i);return{c(){n&&n.c(),e=lt()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=Pm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Yv(i){let e,t;return e=new qr({props:{iconUrl:i[209],ariaLabel:i[210]??i[213],testId:i[211],onClick:i[212]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[209]),o[0]&268435456&&(l.ariaLabel=n[210]??n[213]),o[0]&268435456&&(l.testId=n[211]),o[0]&268435456&&(l.onClick=n[212]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Im(i){let e,t;return e=new At({props:{tooltipContent:i[213],width:40,$$slots:{default:[Yv]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(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(r){i[185](r)}let l={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[Zv]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Zv(i){let e,t;return e=new Ar({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xv(i){let e,t;return e=new Bd({props:{click:i[127]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Em(i){let e,t,n;function o(r){i[187](r)}let l={tooltipContent:i[52],$$slots:{default:[Jv]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Jv(i){let e,t;return e=new gd({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},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,o;function l(a){i[188](a)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new kr({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(a,s){C(a,e,s),L(t,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],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&&w(e),R(t)}}}function Mm(i){let e,t,n;function o(r){i[190](r)}let l={tooltipContent:i[27]?void 0:j("tooltip_settings_off"),$$slots:{default:[xv]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:j("tooltip_settings_off")),a[0]&33554432|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function xv(i){let e,t,n;function o(r){i[189](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new El({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $v(i){let e,t,n;function o(r){i[191](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[e3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function e3(i){let e,t;return e=new gm({props:{ariaLabel:i[49]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},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(r){i[192](r)}let l={tooltipContent:i[53],$$slots:{default:[t3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function t3(i){let e,t;return e=new Tr({props:{click:i[13],isFullscreen:i[30]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Lm(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[54],$$slots:{default:[i3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function i3(i){let e,t;return e=new Mr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function n3(i){let e,t,n;function o(r){i[196](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new Xr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function o3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,M,$,J,x;t=new Dr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let N=i[38]&&vm(i),ie=i[35]&&ym(i),A=i[36]&&wm(i),Y=i[37]&&km(i),Le=i[117]&&Hv(i),Ke=!i[4]&&i[33]&&Cm(i),ze=i[19]&&Sm(i);function Ye(fe){i[183](fe)}let De={className:"w-max",disabled:!i[20],tooltipContent:j("tooltip_episodes"),$$slots:{default:[Qv]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(De.ref=i[23].episodes),b=new At({props:De}),pe.push(()=>Fe(b,"ref",Ye));let ye=wt(i[28]),X=[];for(let fe=0;fe<ye.length;fe+=1)X[fe]=Im(bm(i,ye,fe));let ve=fe=>_(X[fe],1,1,()=>{X[fe]=null}),Ne=i[43]&&!i[4]&&Tm(i);function Ze(fe){i[186](fe)}let Je={$$slots:{default:[Xv]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Je.ref=i[23].volume),T=new At({props:Je}),pe.push(()=>Fe(T,"ref",Ze));let we=i[40]&&Em(i),Ve=!i[83]&&!i[4]&&Am(i),qe=i[42]&&!i[4]&&Mm(i),Qe=i[84].features.contextMenuButton&&$v(i),le=i[44]&&Vm(i),oe=i[39]&&Lm(i),Ce=i[122]&&n3(i);return{c(){e=I("div"),B(t.$$.fragment),n=F(),o=I("div"),l=I("div"),N&&N.c(),r=F(),ie&&ie.c(),a=F(),A&&A.c(),s=F(),Y&&Y.c(),u=F(),Le&&Le.c(),f=F(),Ke&&Ke.c(),p=F(),ze&&ze.c(),h=F(),B(b.$$.fragment),y=F(),E=I("div");for(let fe=0;fe<X.length;fe+=1)X[fe].c();k=F(),Ne&&Ne.c(),v=F(),B(T.$$.fragment),Q=F(),we&&we.c(),G=F(),Ve&&Ve.c(),re=F(),qe&&qe.c(),ae=F(),Qe&&Qe.c(),V=F(),le&&le.c(),M=F(),oe&&oe.c(),$=F(),Ce&&Ce.c(),J=lt(),c(l,"class","controls-left svelte-st0uzk"),Dn(()=>i[184].call(l)),c(E,"class","controls-right svelte-st0uzk"),c(o,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),z(e,"hidden",i[1]),z(e,"controls-hidden",!i[3]),z(e,"no-smooth",i[2])},m(fe,Ae){C(fe,e,Ae),L(t,e,null),m(e,n),m(e,o),m(o,l),N&&N.m(l,null),m(l,r),ie&&ie.m(l,null),m(l,a),A&&A.m(l,null),m(l,s),Y&&Y.m(l,null),m(l,u),Le&&Le.m(l,null),m(l,f),Ke&&Ke.m(l,null),m(l,p),ze&&ze.m(l,null),m(l,h),L(b,l,null),S=Ko(l,i[184].bind(l)),m(o,y),m(o,E);for(let We=0;We<X.length;We+=1)X[We]&&X[We].m(E,null);m(E,k),Ne&&Ne.m(E,null),m(E,v),L(T,E,null),m(E,Q),we&&we.m(E,null),m(E,G),Ve&&Ve.m(E,null),m(E,re),qe&&qe.m(E,null),m(E,ae),Qe&&Qe.m(E,null),m(E,V),le&&le.m(E,null),m(E,M),oe&&oe.m(E,null),i[194](o),i[195](e),C(fe,$,Ae),Ce&&Ce.m(fe,Ae),C(fe,J,Ae),x=!0},p(fe,Ae){let We={};Ae[1]&16384&&(We.isHidden=!fe[45]),Ae[0]&16&&(We.isAds=fe[4]),Ae[0]&32&&(We.canRewindLive=fe[5]),Ae[1]&2&&(We.isRewindableLive=fe[32]),t.$set(We),fe[38]?N?(N.p(fe,Ae),Ae[1]&128&&d(N,1)):(N=vm(fe),N.c(),d(N,1),N.m(l,r)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),fe[35]?ie?(ie.p(fe,Ae),Ae[1]&16&&d(ie,1)):(ie=ym(fe),ie.c(),d(ie,1),ie.m(l,a)):ie&&(ue(),_(ie,1,1,()=>{ie=null}),ce()),fe[36]?A?(A.p(fe,Ae),Ae[1]&32&&d(A,1)):(A=wm(fe),A.c(),d(A,1),A.m(l,s)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),fe[37]?Y?(Y.p(fe,Ae),Ae[1]&64&&d(Y,1)):(Y=km(fe),Y.c(),d(Y,1),Y.m(l,u)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),fe[117]&&Le.p(fe,Ae),!fe[4]&&fe[33]?Ke?(Ke.p(fe,Ae),Ae[0]&16|Ae[1]&4&&d(Ke,1)):(Ke=Cm(fe),Ke.c(),d(Ke,1),Ke.m(l,p)):Ke&&(ue(),_(Ke,1,1,()=>{Ke=null}),ce()),fe[19]?ze?(ze.p(fe,Ae),Ae[0]&524288&&d(ze,1)):(ze=Sm(fe),ze.c(),d(ze,1),ze.m(l,h)):ze&&(ue(),_(ze,1,1,()=>{ze=null}),ce());let at={};if(Ae[0]&1048576&&(at.disabled=!fe[20]),Ae[0]&1048576|Ae[2]&1310720|Ae[6]&1073741824&&(at.$$scope={dirty:Ae,ctx:fe}),!g&&Ae[0]&8388608&&(g=!0,at.ref=fe[23].episodes,Oe(()=>g=!1)),b.$set(at),Ae[0]&268435456){ye=wt(fe[28]);let st;for(st=0;st<ye.length;st+=1){let be=bm(fe,ye,st);X[st]?(X[st].p(be,Ae),d(X[st],1)):(X[st]=Im(be),X[st].c(),d(X[st],1),X[st].m(E,k))}for(ue(),st=ye.length;st<X.length;st+=1)ve(st);ce()}fe[43]&&!fe[4]?Ne?(Ne.p(fe,Ae),Ae[0]&16|Ae[1]&4096&&d(Ne,1)):(Ne=Tm(fe),Ne.c(),d(Ne,1),Ne.m(E,v)):Ne&&(ue(),_(Ne,1,1,()=>{Ne=null}),ce());let ut={};Ae[6]&1073741824&&(ut.$$scope={dirty:Ae,ctx:fe}),!W&&Ae[0]&8388608&&(W=!0,ut.ref=fe[23].volume,Oe(()=>W=!1)),T.$set(ut),fe[40]?we?(we.p(fe,Ae),Ae[1]&512&&d(we,1)):(we=Em(fe),we.c(),d(we,1),we.m(E,G)):we&&(ue(),_(we,1,1,()=>{we=null}),ce()),!fe[83]&&!fe[4]?Ve?(Ve.p(fe,Ae),Ae[0]&16|Ae[2]&2097152&&d(Ve,1)):(Ve=Am(fe),Ve.c(),d(Ve,1),Ve.m(E,re)):Ve&&(ue(),_(Ve,1,1,()=>{Ve=null}),ce()),fe[42]&&!fe[4]?qe?(qe.p(fe,Ae),Ae[0]&16|Ae[1]&2048&&d(qe,1)):(qe=Mm(fe),qe.c(),d(qe,1),qe.m(E,ae)):qe&&(ue(),_(qe,1,1,()=>{qe=null}),ce()),fe[84].features.contextMenuButton&&Qe.p(fe,Ae),fe[44]?le?(le.p(fe,Ae),Ae[1]&8192&&d(le,1)):(le=Vm(fe),le.c(),d(le,1),le.m(E,M)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),fe[39]?oe?(oe.p(fe,Ae),Ae[1]&256&&d(oe,1)):(oe=Lm(fe),oe.c(),d(oe,1),oe.m(E,null)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),ce()),(!x||Ae[0]&2)&&z(e,"hidden",fe[1]),(!x||Ae[0]&8)&&z(e,"controls-hidden",!fe[3]),(!x||Ae[0]&4)&&z(e,"no-smooth",fe[2]),fe[122]&&Ce.p(fe,Ae)},i(fe){if(!x){d(t.$$.fragment,fe),d(N),d(ie),d(A),d(Y),d(Le),d(Ke),d(ze),d(b.$$.fragment,fe);for(let Ae=0;Ae<ye.length;Ae+=1)d(X[Ae]);d(Ne),d(T.$$.fragment,fe),d(we),d(Ve),d(qe),d(Qe),d(le),d(oe),d(Ce),x=!0}},o(fe){_(t.$$.fragment,fe),_(N),_(ie),_(A),_(Y),_(Le),_(Ke),_(ze),_(b.$$.fragment,fe),X=X.filter(Boolean);for(let Ae=0;Ae<X.length;Ae+=1)_(X[Ae]);_(Ne),_(T.$$.fragment,fe),_(we),_(Ve),_(qe),_(Qe),_(le),_(oe),_(Ce),x=!1},d(fe){fe&&(w(e),w($),w(J)),R(t),N&&N.d(),ie&&ie.d(),A&&A.d(),Y&&Y.d(),Le&&Le.d(),Ke&&Ke.d(),ze&&ze.d(),R(b),S(),Fi(X,fe),Ne&&Ne.d(),R(T),we&&we.d(),Ve&&Ve.d(),qe&&qe.d(),Qe&&Qe.d(),le&&le.d(),oe&&oe.d(),i[194](null),i[195](null),Ce&&Ce.d(fe)}}}function l3(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,M,$,J,x,N,ie,A,Y,Le=me,Ke=()=>(Le(),Le=Ht(ae,Z=>t(144,Y=Z)),ae),ze,Ye=me,De=()=>(Ye(),Ye=Ht(re,Z=>t(145,ze=Z)),re),ye,X=me,ve=()=>(X(),X=Ht(G,Z=>t(146,ye=Z)),G),Ne,Ze=me,Je=()=>(Ze(),Ze=Ht(Q,Z=>t(147,Ne=Z)),Q),we,Ve=me,qe=()=>(Ve(),Ve=Ht(W,Z=>t(148,we=Z)),W),Qe,le=me,oe=()=>(le(),le=Ht(T,Z=>t(149,Qe=Z)),T),Ce,fe=me,Ae=()=>(fe(),fe=Ht(v,Z=>t(150,Ce=Z)),v),We,at=me,ut=()=>(at(),at=Ht(k,Z=>t(151,We=Z)),k),st,be=me,mt=()=>(be(),be=Ht(E,Z=>t(152,st=Z)),E),it,ft=me,yt=()=>(ft(),ft=Ht(y,Z=>t(153,it=Z)),y),Mt,je=me,Bt=()=>(je(),je=Ht(S,Z=>t(154,Mt=Z)),S),Dt,Nt=me,ni=()=>(Nt(),Nt=Ht(g,Z=>t(155,Dt=Z)),g),tt,pt=me,_e=()=>(pt(),pt=Ht(b,Z=>t(156,tt=Z)),b),ht,St=me,Xt=()=>(St(),St=Ht(h,Z=>t(157,ht=Z)),h),bt,jt=me,Jt=()=>(jt(),jt=Ht(p,Z=>t(158,bt=Z)),p),di,Ii=me,Hi=()=>(Ii(),Ii=Ht(f,Z=>t(159,di=Z)),f),Wt,mi=me,ln=()=>(mi(),mi=Ht(u,Z=>t(160,Wt=Z)),u),oi,zi,li,qi,pi,Ti,_i,Ei,Pt,Ot,Ai,hi,zt,xt,gi,ri,Ct,Mi,Gt,$t,rn,fn,ei;i.$$.on_destroy.push(()=>Le()),i.$$.on_destroy.push(()=>Ye()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>Ze()),i.$$.on_destroy.push(()=>Ve()),i.$$.on_destroy.push(()=>le()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>at()),i.$$.on_destroy.push(()=>be()),i.$$.on_destroy.push(()=>ft()),i.$$.on_destroy.push(()=>je()),i.$$.on_destroy.push(()=>Nt()),i.$$.on_destroy.push(()=>pt()),i.$$.on_destroy.push(()=>St()),i.$$.on_destroy.push(()=>jt()),i.$$.on_destroy.push(()=>Ii()),i.$$.on_destroy.push(()=>mi());let{bottomHidden:Vi}=e,{bottomNoSmooth:Li}=e,{showControls:bi}=e,{controlsElementRef:vi=void 0}=e,{isAds:Vt=!1}=e,{canRewindLive:qt}=e,{logoClickable:yi}=e,{logoHidden:Ui}=e,{logoTargetUrl:Ri=""}=e,{showNextPrevButtons:si}=e,{nextButtonActive:xi}=e,{prevButtonActive:sn}=e,{isOneVideoPlaylist:$i=!1}=e,{supportLink:an}=e,{customFullscreenSupported:Ki=!0}=e,{playNextVideo:Qt}=e,{playPrevVideo:ji}=e,{repeatPlaylist:Yt}=e,{toggleFullscreen:Bi}=e,{returnFocus:Wi}=e,{seekToInteractive:Gi}=e,{toggleGraph:wi}=e,{playPrevChapter:Di}=e,Xe=$e(),ti=Tn(),ai=Lt(),He=Xe.actions.internal.toggleMuted,Qi=Xe.actions.internal.togglePlay,Yi=Xe.actions.internal.pause,en=Xe.actions.internal.toggleSubtitle,Zi=Xe.callbacks?.onAudioDoesNotExistHint,Ni=Xe.callbacks?.onAudioDisabledHint,tn=Xe.state.duration$;H(i,tn,Z=>t(82,fn=Z));let ui=Xe.state.positionWithScrubbing$;H(i,ui,Z=>t(80,$t=Z));let dn=Xe.state.playbackState$;H(i,dn,Z=>t(161,li=Z));let Rt=Xe.state.chromecastConnected$;H(i,Rt,Z=>t(83,ei=Z));let Oi=Xe.state.isAudioAvailable$;H(i,Oi,Z=>t(197,V=Z));let se=Xe.state.isAudioDisabled,dt=Xe.state.isEnded$;H(i,dt,Z=>t(169,xt=Z));let Ut=Xe.state.isLive$;H(i,Ut,Z=>t(33,Ei=Z));let Xi=Xe.state.isActiveLive$;H(i,Xi,Z=>t(163,Ti=Z));let ki=Xe.state.isRewindableLive$;H(i,ki,Z=>t(32,_i=Z));let Ci=Xe.ui.isPictureInPictureActive$;H(i,Ci,Z=>t(165,Ot=Z));let nn=Xe.ui.pictureInPictureType$;H(i,nn,Z=>t(164,Pt=Z));let Cn=Xe.ui.settingsMenuVisible;H(i,Cn,Z=>t(27,J=Z));let gn=Xe.ui.settingsMenuOpenedByKeyboard;H(i,gn,Z=>t(140,$=Z));let bn=Xe.ui.controls,Kt=Xe.actions.internal.getVideoEpisodes(),On=Xe.state.chromecastState$;H(i,On,Z=>t(29,oi=Z));let Fn=Xe.state.availableSubtitlesList$;H(i,Fn,Z=>t(168,zt=Z));let Sn=Xe.state.currentSubtitle$;H(i,Sn,Z=>t(170,gi=Z));let Mn=bn.disabledControls$;H(i,Mn,Z=>t(172,Ct=Z));let vn=Xe.ui.contextMenu.visible$;H(i,vn,Z=>t(162,qi=Z));let Vn=Xe.ui.contextMenu.showContextMenuBtn$;H(i,Vn,Z=>t(166,Ai=Z));let mn=Xe.ui.contextMenu.openedByBtnKeyboard$;H(i,mn,Z=>t(167,hi=Z));let te=Xe.ui.startedByKeyboard$;H(i,te,Z=>t(139,M=Z));let vt=Xe.ads.duration;H(i,vt,Z=>t(81,rn=Z));let Pn=Xe.ads.position;H(i,Pn,Z=>t(79,Gt=Z));let Hn=Xe.ads.playbackState;H(i,Hn,Z=>t(171,ri=Z));let Jn=Xe.ui.isFullscreen;H(i,Jn,Z=>t(30,zi=Z));let xn=Xe.ui.playerSize;H(i,xn,Z=>t(142,N=Z));let $n=Xe.ui.currentGridType$;H(i,$n,Z=>t(143,ie=Z));let eo=Xe.ui.additionalButtons$;H(i,eo,Z=>t(28,A=Z));let _o=Xe.actions.internal.getVideoElement,ee=Xe.actions.internal.replayInteractive,pn=Xe.state.isInteractive,No=Xe.state.isInteractiveTime$;H(i,No,Z=>t(141,x=Z));let Oo=Xe.state.showInteractiveGraph,ho=Xe.state.showSeekToInteractive,Fo=Xe.state.showPlayPrevChapter,go=Xe.state.showInteractiveTimeIndicator,to=Xe.state.graphIsOpened$;H(i,to,Z=>t(31,pi=Z));let Gn=Xe.state.playPrevChapterDisabledTooltip,io=ti.seekToInteractiveDisabledTooltip$;H(i,io,Z=>t(78,Mi=Z));let Ho=()=>Xe.actions.internal.toggleChromecast(),zo,zn,qo,bo,vo,Uo,gt,O,P,Se,Ue,nt,Zt,ii,Ft,_n,qn,no,hl,Cc,Sc,ms="",Zp=(Z,_s)=>{if(!Z){t(50,ms=j("tooltip_live"));return}_s===Bo.PlaybackState.PAUSED&&t(50,ms=j("tooltip_play"))},Pc,Ic,Tc,Ec,Ol,ot={},Ln,gl,ps,Ac,Xp=(0,Rm.throttleFn)(Yr,260,{leading:!1}),Fl,Hl,zl;function Jp(){uo({isAudioDisabled:se,audioDisabledHintCallback:Ni,isAudioAvailable:V,audioIsNotExistHintCallback:Zi})&&He()}let xp=pn?ee:$i?Qi:Yt;function $p(Z){i.$$.not_equal(ot.prevButton,Z)&&(ot.prevButton=Z,t(23,ot))}function e_(Z){i.$$.not_equal(ot.replayButton,Z)&&(ot.replayButton=Z,t(23,ot))}function t_(Z){zl=Z,t(26,zl)}function i_(Z){i.$$.not_equal(ot.playButton,Z)&&(ot.playButton=Z,t(23,ot))}function n_(Z){i.$$.not_equal(ot.nextButton,Z)&&(ot.nextButton=Z,t(23,ot))}function o_(Z){i.$$.not_equal(ot.playPrevChapterButton,Z)&&(ot.playPrevChapterButton=Z,t(23,ot))}function l_(Z){i.$$.not_equal(ot.seekToInteractiveButton,Z)&&(ot.seekToInteractiveButton=Z,t(23,ot))}function r_(Z){i.$$.not_equal(ot.interactiveGraphButton,Z)&&(ot.interactiveGraphButton=Z,t(23,ot))}function s_(Z){i.$$.not_equal(ot.liveButton,Z)&&(ot.liveButton=Z,t(23,ot))}function a_(Z){i.$$.not_equal(ot.time,Z)&&(ot.time=Z,t(23,ot))}function u_(Z){i.$$.not_equal(ot.episodes,Z)&&(ot.episodes=Z,t(23,ot))}function c_(){Ol=this.clientWidth,t(22,Ol)}function f_(Z){i.$$.not_equal(ot.vkLogo,Z)&&(ot.vkLogo=Z,t(23,ot))}function d_(Z){i.$$.not_equal(ot.volume,Z)&&(ot.volume=Z,t(23,ot))}function m_(Z){i.$$.not_equal(ot.subtitles,Z)&&(ot.subtitles=Z,t(23,ot))}function p_(Z){Fl=Z,t(24,Fl)}function __(Z){Hl=Z,t(25,Hl)}function h_(Z){i.$$.not_equal(ot.settings,Z)&&(ot.settings=Z,t(23,ot))}function g_(Z){i.$$.not_equal(ot.context,Z)&&(ot.context=Z,t(23,ot))}function b_(Z){i.$$.not_equal(ot.fullscreen,Z)&&(ot.fullscreen=Z,t(23,ot))}function v_(Z){i.$$.not_equal(ot.chromecast,Z)&&(ot.chromecast=Z,t(23,ot))}function y_(Z){pe[Z?"unshift":"push"](()=>{qn=Z,t(46,qn)})}function w_(Z){pe[Z?"unshift":"push"](()=>{vi=Z,t(0,vi)})}function k_(Z){i.$$.not_equal(ot.interactiveTimeIndicator,Z)&&(ot.interactiveTimeIndicator=Z,t(23,ot))}i.$$set=Z=>{"bottomHidden"in Z&&t(1,Vi=Z.bottomHidden),"bottomNoSmooth"in Z&&t(2,Li=Z.bottomNoSmooth),"showControls"in Z&&t(3,bi=Z.showControls),"controlsElementRef"in Z&&t(0,vi=Z.controlsElementRef),"isAds"in Z&&t(4,Vt=Z.isAds),"canRewindLive"in Z&&t(5,qt=Z.canRewindLive),"logoClickable"in Z&&t(6,yi=Z.logoClickable),"logoHidden"in Z&&t(129,Ui=Z.logoHidden),"logoTargetUrl"in Z&&t(7,Ri=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(130,si=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(8,xi=Z.nextButtonActive),"prevButtonActive"in Z&&t(9,sn=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&t(131,$i=Z.isOneVideoPlaylist),"supportLink"in Z&&t(10,an=Z.supportLink),"customFullscreenSupported"in Z&&t(132,Ki=Z.customFullscreenSupported),"playNextVideo"in Z&&t(11,Qt=Z.playNextVideo),"playPrevVideo"in Z&&t(12,ji=Z.playPrevVideo),"repeatPlaylist"in Z&&t(133,Yt=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(13,Bi=Z.toggleFullscreen),"returnFocus"in Z&&t(14,Wi=Z.returnFocus),"seekToInteractive"in Z&&t(15,Gi=Z.seekToInteractive),"toggleGraph"in Z&&t(16,wi=Z.toggleGraph),"playPrevChapter"in Z&&t(17,Di=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Ct.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Ct.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,l=Ct.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,r=Ct.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Ct.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Ct.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,zo=Vt?ri==="playing":li===Bo.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,zn=gi.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,qo=xt&&!Vt||pn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,bo=!xt||pn||Vt);if(i.$$.dirty[4]&524288)e:t(134,vo=kn(ie,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,Uo=si&&kn(ie,"m")&&!Vt&&xi);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,gt=si&&kn(ie,"m")&&!Vt&&sn);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,O=oi!==Bo.ChromecastState.NOT_AVAILABLE&&!(Ot&&Pt===1)&&kn(ie,"m")&&!pn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,P=zt.length>0&&kn(ie,"m"));if(i.$$.dirty[5]&6144)e:t(41,Se=hi||Ai);if(i.$$.dirty[4]&524288)e:t(42,Ue=kn(ie,"s"));if(i.$$.dirty[4]&32)e:t(43,nt=!Ui);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,Zt=ai.features.fullscreen&&(Ui||kn(ie,"s"))&&!(Ot&&Pt===1)&&(pn?Ki:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,ii=(!Ei||Vt)&&!(ai.features.interactiveHideTime&&pn));if(i.$$.dirty[4]&262144)e:t(45,Ft=N.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,_n=!Vt&&!Ei&&!!Kt?.length&&vo&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,no=!_i||Ti);if(i.$$.dirty[5]&64)e:t(47,hl=li===Bo.PlaybackState.PLAYING?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,Cc=pi?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,Sc=qi?j("aria_label_context_menu_close"):j("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Zp(no,li);if(i.$$.dirty[0]&262144)e:t(52,Ic=zn?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Tc=zi?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Ec=oi===Bo.ChromecastState.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,Ln={prevButton:Wt?Wt.right-Wt.left:0,replayButton:di?di.right-di.left:0,playButton:bt?bt.right-bt.left:0,nextButton:ht?ht.right-ht.left:0,playPrevChapterButton:tt?tt.right-tt.left:0,seekToInteractiveButton:Dt?Dt.right-Dt.left:0,interactiveGraphButton:Mt?Mt.right-Mt.left:0,liveButton:it?it.right-it.left:0,time:st?st.right-st.left:0,episodes:We?We.right-We.left:0,vkLogo:Ce?Ce.right-Ce.left:0,volume:Qe?Qe.right-Qe.left:0,subtitles:we?we.right-we.left:0,settings:Ne?Ne.right-Ne.left:0,context:ye?ye.right-ye.left:0,fullscreen:ze?ze.right-ze.left:0,chromecast:Y?Y.right-Y.left:0,additionalButtons:A.length?A.reduce(Z=>[...Z,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!gl||gl<Ln.time)&&t(136,gl=Ln.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let Z=0;_n&&(kn(ie,"xl")?Z=Ln.time:Z=60);let _s=Ln.prevButton+Ln.playButton+Ln.nextButton+Ln.seekToInteractiveButton+Ln.interactiveGraphButton+Ln.liveButton+gl+Z;t(137,ps=ii&&Ol>=_s)}if(i.$$.dirty[4]&532480)e:t(55,Ac=ps&&kn(ie,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:Xp(_o(),bn,ot,bi);if(i.$$.dirty[0]&167772160)e:tl(Hl,J,gn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Lo(Fl,J,$);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Zr(te,M,zl)};e:t(51,Pc=ai.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:ln(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:b,seekToInteractiveButton:g,interactiveGraphButton:S,liveButton:y,time:E,episodes:k,vkLogo:v,volume:T,subtitles:W,settings:Q,context:G,fullscreen:re,chromecast:ae}=bn,u,Hi(t(71,f)),Jt(t(70,p)),Xt(t(69,h)),_e(t(68,b)),ni(t(67,g)),Bt(t(66,S)),yt(t(65,y)),mt(t(64,E)),ut(t(63,k)),Ae(t(62,v)),oe(t(61,T)),qe(t(60,W)),Je(t(59,Q)),ve(t(58,G)),De(t(57,re)),Ke(t(56,ae))));return[vi,Vi,Li,bi,Vt,qt,yi,Ri,xi,sn,an,Qt,ji,Bi,Wi,Gi,wi,Di,zn,ii,_n,no,Ol,ot,Fl,Hl,zl,J,A,oi,zi,pi,_i,Ei,zo,qo,bo,Uo,gt,O,P,Se,Ue,nt,Zt,Ft,qn,hl,Cc,Sc,ms,Pc,Ic,Tc,Ec,Ac,ae,re,G,Q,W,T,v,k,E,y,S,g,b,h,p,f,u,s,a,r,l,o,Mi,Gt,$t,rn,fn,ei,ai,Qi,Yi,en,tn,ui,dn,Rt,Oi,dt,Ut,Xi,ki,Ci,nn,Cn,gn,Kt,On,Fn,Sn,Mn,vn,Vn,mn,te,vt,Pn,Hn,Jn,xn,$n,eo,pn,No,Oo,ho,Fo,go,to,Gn,io,Ho,Jp,xp,Ui,si,$i,Ki,Yt,vo,Ln,gl,ps,n,M,$,x,N,ie,Y,ze,ye,Ne,we,Qe,Ce,We,st,it,Mt,Dt,tt,ht,bt,di,Wt,li,qi,Ti,Pt,Ot,Ai,hi,zt,xt,gi,ri,Ct,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,c_,f_,d_,m_,p_,__,h_,g_,b_,v_,y_,w_,k_]}var Vu=class extends U{constructor(e){super(),K(this,e,l3,o3,q,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},Bv,[-1,-1,-1,-1,-1,-1,-1])}},Bm=Vu;var ul=require("@vkontakte/videoplayer-core");function r3(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,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 f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(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"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Me(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&w(e),a&&a.d(f)}}}function s3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ru=class extends U{constructor(e){super(),K(this,e,s3,r3,q,{})}},Dm=Ru;var Om=require("@vkontakte/videoplayer-shared");function a3(i){ke(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 Nm(i){let e;return{c(){e=I("span"),e.textContent=`${j("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:me,d(t){t&&w(e)}}}function u3(i){let e,t,n,o;var l=i[4];function r(s){return{}}l&&(t=hn(l,r(i)));let a=i[1]&&Nm(i);return{c(){e=I("div"),t&&B(t.$$.fragment),n=F(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),z(e,"expanded",i[1])},m(s,u){C(s,e,u),t&&L(t,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(t){ue();let f=t;_(f.$$.fragment,1,0,()=>{R(f,1)}),ce()}l?(t=hn(l,r(s)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Nm(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&&w(e),t&&R(t),a&&a.d()}}}function c3(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[u3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function f3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=Om.noop}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?j("tooltip_volume"):j("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Ro:Dm)},[r,o,l,a,s,n,u]}var Bu=class extends U{constructor(e){super(),K(this,e,f3,c3,q,{muted:5,expanded:1,click:2,ref:0},a3)}},Du=Bu;function d3(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,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 f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),c(t,"fill","currentColor"),c(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"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(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"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(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"),c(o,"class","hidden-active"),ge(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Me(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&w(e),a&&a.d(f)}}}function m3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Nu=class extends U{constructor(e){super(),K(this,e,m3,d3,q,{})}},Fm=Nu;function p3(i){ke(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function _3(i){let e,t;return e=new Fm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function h3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Ou=class extends U{constructor(e){super(),K(this,e,h3,_3,q,{isActive:0},p3)}},Hm=Ou;var zm=require("@vkontakte/videoplayer-shared");function g3(i){let e,t;return e=new Hm({props:{isActive:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function b3(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:j("menu_pip"),click:i[2],$$slots:{default:[g3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new _t({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function v3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=zm.noop}=e;function r(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,l=a.click)},[n,o,l,r]}var Fu=class extends U{constructor(e){super(),K(this,e,v3,b3,q,{ref:0,isPictureInPictureActive:1,click:2})}},qm=Fu;var c0=require("@vkontakte/videoplayer-shared");function y3(i){ke(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 Um(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 Km(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k=(!i[51]||i[53])&&jm(i),v=wt(i[56]),T=[];for(let N=0;N<v.length;N+=1)T[N]=Wm(Um(i,v,N));let W=N=>_(T[N],1,1,()=>{T[N]=null}),Q=i[36]&&Gm(i),G=i[37]&&Qm(i),re=i[57]&&Ym(i),ae=i[39]&&Zm(i),V=i[8]&&Xm(i),M=i[34]&&Jm(i),$=i[33]&&xm(i),J=i[8]&&$m(i),x=i[96]&&!i[29]&&e0(i);return{c(){e=I("div"),t=F(),n=I("div"),k&&k.c(),o=F(),l=I("div");for(let N=0;N<T.length;N+=1)T[N].c();r=F(),Q&&Q.c(),a=F(),G&&G.c(),s=F(),re&&re.c(),u=F(),ae&&ae.c(),f=F(),p=I("div"),V&&V.c(),h=F(),M&&M.c(),b=F(),$&&$.c(),g=F(),J&&J.c(),S=F(),x&&x.c(),y=lt(),c(e,"class","overlay-mobile svelte-1tcstu3"),z(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),z(n,"hidden",!i[3]),z(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-1tcstu3"),z(l,"hidden",!i[3]&&!i[27]),z(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),z(p,"hidden",!i[3]||i[29])},m(N,ie){C(N,e,ie),C(N,t,ie),C(N,n,ie),k&&k.m(n,null),C(N,o,ie),C(N,l,ie);for(let A=0;A<T.length;A+=1)T[A]&&T[A].m(l,null);m(l,r),Q&&Q.m(l,null),m(l,a),G&&G.m(l,null),m(l,s),re&&re.m(l,null),m(l,u),ae&&ae.m(l,null),C(N,f,ie),C(N,p,ie),V&&V.m(p,null),m(p,h),M&&M.m(p,null),m(p,b),$&&$.m(p,null),m(p,g),J&&J.m(p,null),C(N,S,ie),x&&x.m(N,ie),C(N,y,ie),E=!0},p(N,ie){if((!E||ie[1]&2048)&&z(e,"hidden",!N[42]),!N[51]||N[53]?k?(k.p(N,ie),ie[1]&5242880&&d(k,1)):(k=jm(N),k.c(),d(k,1),k.m(n,null)):k&&(ue(),_(k,1,1,()=>{k=null}),ce()),(!E||ie[0]&8)&&z(n,"hidden",!N[3]),(!E||ie[1]&2097152)&&z(n,"fullscreen",N[52]),ie[1]&33554432){v=wt(N[56]);let A;for(A=0;A<v.length;A+=1){let Y=Um(N,v,A);T[A]?(T[A].p(Y,ie),d(T[A],1)):(T[A]=Wm(Y),T[A].c(),d(T[A],1),T[A].m(l,r))}for(ue(),A=v.length;A<T.length;A+=1)W(A);ce()}N[36]?Q?(Q.p(N,ie),ie[1]&32&&d(Q,1)):(Q=Gm(N),Q.c(),d(Q,1),Q.m(l,a)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),N[37]?G?(G.p(N,ie),ie[1]&64&&d(G,1)):(G=Qm(N),G.c(),d(G,1),G.m(l,s)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),N[57]?re?(re.p(N,ie),ie[1]&67108864&&d(re,1)):(re=Ym(N),re.c(),d(re,1),re.m(l,u)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),N[39]?ae?(ae.p(N,ie),ie[1]&256&&d(ae,1)):(ae=Zm(N),ae.c(),d(ae,1),ae.m(l,null)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),(!E||ie[0]&134217736)&&z(l,"hidden",!N[3]&&!N[27]),(!E||ie[1]&2097152)&&z(l,"fullscreen",N[52]),N[8]?V?(V.p(N,ie),ie[0]&256&&d(V,1)):(V=Xm(N),V.c(),d(V,1),V.m(p,h)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),N[34]?M?(M.p(N,ie),ie[1]&8&&d(M,1)):(M=Jm(N),M.c(),d(M,1),M.m(p,b)):M&&(ue(),_(M,1,1,()=>{M=null}),ce()),N[33]?$?($.p(N,ie),ie[1]&4&&d($,1)):($=xm(N),$.c(),d($,1),$.m(p,g)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),N[8]?J?(J.p(N,ie),ie[0]&256&&d(J,1)):(J=$m(N),J.c(),d(J,1),J.m(p,null)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),(!E||ie[0]&536870920)&&z(p,"hidden",!N[3]||N[29]),N[96]&&!N[29]?x?(x.p(N,ie),ie[0]&536870912&&d(x,1)):(x=e0(N),x.c(),d(x,1),x.m(y.parentNode,y)):x&&(ue(),_(x,1,1,()=>{x=null}),ce())},i(N){if(!E){d(k);for(let ie=0;ie<v.length;ie+=1)d(T[ie]);d(Q),d(G),d(re),d(ae),d(V),d(M),d($),d(J),d(x),E=!0}},o(N){_(k),T=T.filter(Boolean);for(let ie=0;ie<T.length;ie+=1)_(T[ie]);_(Q),_(G),_(re),_(ae),_(V),_(M),_($),_(J),_(x),E=!1},d(N){N&&(w(e),w(t),w(n),w(o),w(l),w(f),w(p),w(S),w(y)),k&&k.d(),Fi(T,N),Q&&Q.d(),G&&G.d(),re&&re.d(),ae&&ae.d(),V&&V.d(),M&&M.d(),$&&$.d(),J&&J.d(),x&&x.d(N)}}}function jm(i){let e,t,n;function o(r){i[130](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new Du({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Wm(i){let e,t;return e=new qr({props:{iconUrl:i[169],ariaLabel:i[170]??i[173],testId:i[171],onClick:i[172]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[169]),o[1]&33554432&&(l.ariaLabel=n[170]??n[173]),o[1]&33554432&&(l.testId=n[171]),o[1]&33554432&&(l.onClick=n[172]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Gm(i){let e,t,n;function o(r){i[131](r)}let l={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new Mr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Qm(i){let e,t,n;function o(r){i[132](r)}let l={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new qm({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Ym(i){let e,t,n;function o(r){i[133](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new El({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Zm(i){let e,t,n;function o(r){i[134](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new Ar({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Xm(i){let e,t,n;function o(r){i[135](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new sl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Jm(i){let e,t,n;function o(r){i[136](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new Ml({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function xm(i){let e,t,n;function o(r){i[137](r)}let l={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Vl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $m(i){let e,t,n;function o(r){i[138](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new sl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function e0(i){let e,t,n,o,l=i[100]&&w3(i),r=i[98]&&k3(i),a=i[99]&&C3(i);return{c(){l&&l.c(),e=F(),r&&r.c(),t=F(),a&&a.c(),n=lt()},m(s,u){l&&l.m(s,u),C(s,e,u),r&&r.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[100]&&l.p(s,u),s[98]&&r.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(w(e),w(t),w(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function w3(i){let e,t,n,o,l,r;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 zr({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3])},m(u,f){C(u,e,f),L(t,e,null),o=!0,l||(r=de(e,"click",i[108]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&z(e,"fullscreen",u[52]),(!o||f[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&&w(e),R(t),l=!1,r()}}}function k3(i){let e,t,n,o,l;function r(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 Fr({props:a}),pe.push(()=>Fe(t,"ref",r)),{c(){e=I("div"),B(t.$$.fragment),c(e,"class",o=Rc(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),L(t,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Oe(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&z(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&z(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){_(t.$$.fragment,s),l=!1},d(s){s&&w(e),R(t)}}}function C3(i){let e,t,n,o,l,r;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 Or({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3])},m(u,f){C(u,e,f),L(t,e,null),o=!0,l||(r=de(e,"click",i[109]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&z(e,"fullscreen",u[52]),(!o||f[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&&w(e),R(t),l=!1,r()}}}function t0(i){let e,t,n,o,l,r=i[53]&&i0(i),a=i[32]&&n0(i);return o=new Br({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=F(),a&&a.c(),t=F(),n=I("div"),B(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),z(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(s,n,u),L(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=i0(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(ue(),_(r,1,1,()=>{r=null}),ce()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=n0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ue(),_(a,1,1,()=>{a=null}),ce());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&z(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){_(r),_(a),_(o.$$.fragment,s),l=!1},d(s){s&&(w(e),w(t),w(n)),r&&r.d(s),a&&a.d(s),R(o)}}}function i0(i){let e,t,n,o;function l(a){i[142](a)}let r={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new Du({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),z(e,"fullscreen",i[52])},m(a,s){C(a,e,s),L(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)&&z(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&w(e),R(t)}}}function n0(i){let e,t,n,o;function l(a){i[143](a)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new Ml({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){C(a,e,s),L(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&&w(e),R(t)}}}function S3(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[P3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function P3(i){let e,t;return e=new Vl({props:{disabled:i[48],click:i[95]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function o0(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[I3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function I3(i){let e,t;return e=new Lr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function l0(i){let e,t,n;function o(r){i[146](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new Cr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function r0(i){let e,t,n,o;return n=new Nr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=I("div"),e.textContent="\xB7",t=F(),B(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){C(l,e,r),C(l,t,r),L(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(w(e),w(t)),R(n,l)}}}function T3(i){let e,t,n=i[43]&&r0(i);return{c(){n&&n.c(),e=lt()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=r0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function s0(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[E3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function E3(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new El({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function a0(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[A3]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new At({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function A3(i){let e,t;return e=new Tr({props:{click:i[14],isFullscreen:i[52]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function u0(i){let e,t,n,o;function l(a){i[153](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new kr({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){C(a,e,s),L(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&&w(e),R(t)}}}function M3(i){let e,t,n;function o(r){i[154](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new Xr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function V3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v=!i[4]&&Km(i),T=i[4]&&i[30]!=="inactive"&&t0(i),W=i[96]&&S3(i),Q=!i[4]&&i[25]&&o0(i),G=i[41]&&l0(i);function re(x){i[147](x)}let ae={className:"w-max",disabled:!i[43],$$slots:{default:[T3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ae.ref=i[20].episodes),u=new At({props:ae}),pe.push(()=>Fe(u,"ref",re));let V=i[38]&&s0(i),M=i[40]&&a0(i);g=new Dr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let $=i[23]&&u0(i),J=i[101]&&M3(i);return{c(){v&&v.c(),e=F(),T&&T.c(),t=F(),n=I("div"),o=I("div"),l=I("div"),W&&W.c(),r=F(),Q&&Q.c(),a=F(),G&&G.c(),s=F(),B(u.$$.fragment),p=F(),V&&V.c(),h=F(),M&&M.c(),b=F(),B(g.$$.fragment),S=F(),$&&$.c(),y=F(),J&&J.c(),E=lt(),c(l,"class","controls svelte-1tcstu3"),z(l,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),z(o,"fullscreen",i[52]),c(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(x,N){v&&v.m(x,N),C(x,e,N),T&&T.m(x,N),C(x,t,N),C(x,n,N),m(n,o),m(o,l),W&&W.m(l,null),m(l,r),Q&&Q.m(l,null),m(l,a),G&&G.m(l,null),m(l,s),L(u,l,null),m(l,p),V&&V.m(l,null),m(l,h),M&&M.m(l,null),i[151](l),m(o,b),L(g,o,null),i[152](n),C(x,S,N),$&&$.m(x,N),C(x,y,N),J&&J.m(x,N),C(x,E,N),k=!0},p(x,N){x[4]?v&&(ue(),_(v,1,1,()=>{v=null}),ce()):v?(v.p(x,N),N[0]&16&&d(v,1)):(v=Km(x),v.c(),d(v,1),v.m(e.parentNode,e)),x[4]&&x[30]!=="inactive"?T?(T.p(x,N),N[0]&1073741840&&d(T,1)):(T=t0(x),T.c(),d(T,1),T.m(t.parentNode,t)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),x[96]&&W.p(x,N),!x[4]&&x[25]?Q?(Q.p(x,N),N[0]&33554448&&d(Q,1)):(Q=o0(x),Q.c(),d(Q,1),Q.m(l,a)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),x[41]?G?(G.p(x,N),N[1]&1024&&d(G,1)):(G=l0(x),G.c(),d(G,1),G.m(l,s)):G&&(ue(),_(G,1,1,()=>{G=null}),ce());let ie={};N[1]&4096&&(ie.disabled=!x[43]),N[1]&1073745920|N[2]&1|N[5]&2097152&&(ie.$$scope={dirty:N,ctx:x}),!f&&N[0]&1048576&&(f=!0,ie.ref=x[20].episodes,Oe(()=>f=!1)),u.$set(ie),x[38]?V?(V.p(x,N),N[1]&128&&d(V,1)):(V=s0(x),V.c(),d(V,1),V.m(l,h)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),x[40]?M?(M.p(x,N),N[1]&512&&d(M,1)):(M=a0(x),M.c(),d(M,1),M.m(l,null)):M&&(ue(),_(M,1,1,()=>{M=null}),ce());let A={};N[0]&16&&(A.isAds=x[4]),N[0]&32&&(A.canRewindLive=x[5]),N[0]&16777216&&(A.isRewindableLive=x[24]),g.$set(A),(!k||N[1]&2097152)&&z(o,"fullscreen",x[52]),(!k||N[0]&2)&&z(n,"hidden",x[1]),(!k||N[0]&8)&&z(n,"controls-hidden",!x[3]),(!k||N[0]&4)&&z(n,"no-smooth",x[2]),x[23]?$?($.p(x,N),N[0]&8388608&&d($,1)):($=u0(x),$.c(),d($,1),$.m(y.parentNode,y)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),x[101]&&J.p(x,N)},i(x){k||(d(v),d(T),d(W),d(Q),d(G),d(u.$$.fragment,x),d(V),d(M),d(g.$$.fragment,x),d($),d(J),k=!0)},o(x){_(v),_(T),_(W),_(Q),_(G),_(u.$$.fragment,x),_(V),_(M),_(g.$$.fragment,x),_($),_(J),k=!1},d(x){x&&(w(e),w(t),w(n),w(S),w(y),w(E)),v&&v.d(x),T&&T.d(x),W&&W.d(),Q&&Q.d(),G&&G.d(),R(u),V&&V.d(),M&&M.d(),i[151](null),R(g),i[152](null),$&&$.d(x),J&&J.d(x)}}}function L3(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,M,$,J,x,N,ie,A,Y,Le,Ke,ze,Ye,De,{bottomHidden:ye}=e,{bottomNoSmooth:X}=e,{showControls:ve}=e,{controlsElementRef:Ne=void 0}=e,{isAds:Ze=!1}=e,{canRewindLive:Je}=e,{logoClickable:we}=e,{logoHidden:Ve}=e,{logoTargetUrl:qe=""}=e,{showNextPrevButtons:Qe}=e,{nextButtonActive:le}=e,{prevButtonActive:oe}=e,{isOneVideoPlaylist:Ce=!1}=e,{supportLink:fe}=e,{customFullscreenSupported:Ae=!0}=e,{playNextVideo:We}=e,{playPrevVideo:at}=e,{repeatPlaylist:ut}=e,{toggleFullscreen:st}=e,{returnFocus:be}=e,{seekToInteractive:mt}=e,{toggleGraph:it}=e,{playPrevChapter:ft}=e,{onDisabledPlayPrevChapterClick:yt}=e,{onDisabledSeekToInteractiveClick:Mt}=e,je=$e(),Bt=Tn(),Dt=Lt(),Nt=je.actions.internal.toggleMuted,ni=je.actions.internal.togglePlay,tt=je.actions.internal.pause,pt=je.callbacks?.onAudioDoesNotExistHint,_e=je.callbacks?.onAudioDisabledHint,ht=je.playerPhase;H(i,ht,ee=>t(126,G=ee));let St=je.state.duration$;H(i,St,ee=>t(62,De=ee));let Xt=je.state.positionWithScrubbing$;H(i,Xt,ee=>t(61,Ye=ee));let bt=je.state.playbackState$;H(i,bt,ee=>t(121,h=ee));let jt=je.state.isAudioAvailable$;H(i,jt,ee=>t(51,b=ee));let Jt=je.state.isAudioDisabled,di=je.state.isEnded$;H(i,di,ee=>t(127,ae=ee));let Ii=je.state.isLive$;H(i,Ii,ee=>t(25,k=ee));let Hi=je.state.muted$;H(i,Hi,ee=>t(54,N=ee));let Wt=je.state.isActiveLive$;H(i,Wt,ee=>t(124,y=ee));let mi=je.state.isRewindableLive$;H(i,mi,ee=>t(24,E=ee));let ln=je.ui.scrubbingInProgress;H(i,ln,ee=>t(29,re=ee));let oi=je.ui.mobileNotReportControlHidden$;H(i,oi,ee=>t(27,W=ee));let zi=je.ui.isPictureInPictureActive$;H(i,zi,ee=>t(26,T=ee));let li=je.ui.pictureInPictureType$;H(i,li,ee=>t(125,v=ee));let qi=je.ui.mobileUnmuteButtonExpanded;H(i,qi,ee=>t(55,ie=ee));let pi=je.ui.mobileUnmuteButtonVisible;H(i,pi,ee=>t(53,x=ee));let Ti=je.ui.settingsMenuVisible;H(i,Ti,ee=>t(23,p=ee));let _i=je.ui.settingsMenuOpenedByKeyboard;H(i,_i,ee=>t(120,f=ee));let Ei=je.ui.controls,Pt=je.actions.internal.getVideoEpisodes(),Ot=je.webApi.pictureInPictureApi,Ai=je.state.chromecastState$;H(i,Ai,ee=>t(28,Q=ee));let hi=je.state.crashed$;H(i,hi,ee=>t(57,Y=ee));let zt=Ei.disabledControls$;H(i,zt,ee=>t(128,M=ee));let xt=je.ui.startedByKeyboard$;H(i,xt,ee=>t(119,u=ee));let gi=je.ads.duration;H(i,gi,ee=>t(60,ze=ee));let ri=je.ads.position;H(i,ri,ee=>t(59,Ke=ee));let Ct=je.ads.playbackState;H(i,Ct,ee=>t(30,V=ee));let Mi=je.ui.isFullscreen;H(i,Mi,ee=>t(52,J=ee));let Gt=je.ui.playerSize;H(i,Gt,ee=>t(123,S=ee));let $t=je.ui.additionalButtons$;H(i,$t,ee=>t(56,A=ee));let rn=je.actions.internal.getVideoElement,fn=je.actions.internal.replayInteractive,ei=je.state.isInteractive,Vi=je.state.isInteractiveTime$;H(i,Vi,ee=>t(122,g=ee));let Li=je.state.showInteractiveGraph,bi=je.state.showSeekToInteractive,vi=je.state.showPlayPrevChapter,Vt=je.state.showInteractiveTimeIndicator,qt=je.state.graphIsOpened$;H(i,qt,ee=>t(58,Le=ee));let yi=Bt.seekToInteractiveDisabledTooltip$;H(i,yi,ee=>t(129,$=ee));let Ui,Ri,si,xi,sn,$i,an,Ki,Qt,ji,Yt,Bi,Wi,Gi,wi,Di,Xe,ti,ai,He={},Qi=(0,c0.throttleFn)(Yr,260,{leading:!1}),Yi=()=>je.actions.internal.toggleChromecast();function en(){uo({isAudioDisabled:Jt,audioDisabledHintCallback:_e,isAudioAvailable:b,audioIsNotExistHintCallback:pt})&&Nt()}async function Zi(){Ot?.isActive()?await Ot?.remove():await Ot?.request()}function Ni(){!Jt&&b&&pi.set(!1),en()}let tn=Ce?ni:ut,ui="",dn=(ee,pn)=>{if(!ee){t(45,ui=j("tooltip_live"));return}pn===ul.PlaybackState.PAUSED&&t(45,ui=j("tooltip_play"))},Rt,Oi,se=()=>{s&&yt(Ui)},dt=()=>{l&&Mt(Ri)};function Ut(ee){i.$$.not_equal(He.volume,ee)&&(He.volume=ee,t(20,He))}function Xi(ee){i.$$.not_equal(He.chromecast,ee)&&(He.chromecast=ee,t(20,He))}function ki(ee){i.$$.not_equal(He.pip,ee)&&(He.pip=ee,t(20,He))}function Ci(ee){Oi=ee,t(22,Oi)}function nn(ee){i.$$.not_equal(He.vkLogo,ee)&&(He.vkLogo=ee,t(20,He))}function Cn(ee){i.$$.not_equal(He.prevButton,ee)&&(He.prevButton=ee,t(20,He))}function gn(ee){i.$$.not_equal(He.playButton,ee)&&(He.playButton=ee,t(20,He))}function bn(ee){i.$$.not_equal(He.replayButton,ee)&&(He.replayButton=ee,t(20,He))}function Kt(ee){i.$$.not_equal(He.nextButton,ee)&&(He.nextButton=ee,t(20,He))}function On(ee){i.$$.not_equal(He.playPrevChapterButton,ee)&&(He.playPrevChapterButton=ee,t(20,He))}function Fn(ee){i.$$.not_equal(He.interactiveGraphButton,ee)&&(He.interactiveGraphButton=ee,t(20,He))}function Sn(ee){i.$$.not_equal(He.seekToInteractiveButton,ee)&&(He.seekToInteractiveButton=ee,t(20,He))}function Mn(ee){i.$$.not_equal(He.volume,ee)&&(He.volume=ee,t(20,He))}function vn(ee){i.$$.not_equal(He.playButton,ee)&&(He.playButton=ee,t(20,He))}function Vn(ee){i.$$.not_equal(He.replayButton,ee)&&(He.replayButton=ee,t(20,He))}function mn(ee){i.$$.not_equal(He.liveButton,ee)&&(He.liveButton=ee,t(20,He))}function te(ee){i.$$.not_equal(He.time,ee)&&(He.time=ee,t(20,He))}function vt(ee){i.$$.not_equal(He.episodes,ee)&&(He.episodes=ee,t(20,He))}function Pn(ee){Oi=ee,t(22,Oi)}function Hn(ee){i.$$.not_equal(He.settings,ee)&&(He.settings=ee,t(20,He))}function Jn(ee){i.$$.not_equal(He.fullscreen,ee)&&(He.fullscreen=ee,t(20,He))}function xn(ee){pe[ee?"unshift":"push"](()=>{ti=ee,t(44,ti)})}function $n(ee){pe[ee?"unshift":"push"](()=>{Ne=ee,t(0,Ne)})}function eo(ee){Rt=ee,t(21,Rt)}function _o(ee){i.$$.not_equal(He.interactiveTimeIndicator,ee)&&(He.interactiveTimeIndicator=ee,t(20,He))}i.$$set=ee=>{"bottomHidden"in ee&&t(1,ye=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,X=ee.bottomNoSmooth),"showControls"in ee&&t(3,ve=ee.showControls),"controlsElementRef"in ee&&t(0,Ne=ee.controlsElementRef),"isAds"in ee&&t(4,Ze=ee.isAds),"canRewindLive"in ee&&t(5,Je=ee.canRewindLive),"logoClickable"in ee&&t(6,we=ee.logoClickable),"logoHidden"in ee&&t(110,Ve=ee.logoHidden),"logoTargetUrl"in ee&&t(7,qe=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,Qe=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,le=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,oe=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(111,Ce=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,fe=ee.supportLink),"customFullscreenSupported"in ee&&t(112,Ae=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,We=ee.playNextVideo),"playPrevVideo"in ee&&t(13,at=ee.playPrevVideo),"repeatPlaylist"in ee&&t(113,ut=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,st=ee.toggleFullscreen),"returnFocus"in ee&&t(15,be=ee.returnFocus),"seekToInteractive"in ee&&t(16,mt=ee.seekToInteractive),"toggleGraph"in ee&&t(17,it=ee.toggleGraph),"playPrevChapter"in ee&&t(18,ft=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(114,yt=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(115,Mt=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Ri=j($);if(i.$$.dirty[4]&16)e:t(118,n=M.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=M.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,l=M.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,r=M.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=M.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=M.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,si=h===ul.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,xi=V==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,sn=ae&&!Ze&&!ei);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,$i=!ae||Ze);if(i.$$.dirty[3]&1073741824)e:t(116,an=S.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Ki=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Qt=re);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,ji=Q!==ul.ChromecastState.NOT_AVAILABLE&&!(T&&v===1)&&!W&&!ei);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ee=G==="waitingLive";t(37,Yt=!!Ot&&Q!==ul.ChromecastState.CONNECTED&&!W&&(v===1&&ee||!ee)&&!Qt&&!ei)}if(i.$$.dirty[3]&16777216)e:t(38,Bi=!Qt);if(i.$$.dirty[3]&1073872896)e:t(39,Wi=!Ve&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,Gi=Dt.features.fullscreen&&!(T&&v===1)&&(ei?Ae:!0)&&!Qt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,wi=(!k||Ze)&&S.width>260&&!Qt&&!(Dt.features.interactiveHideTime&&ei));if(i.$$.dirty[0]&8388616)e:t(42,Di=p||ve);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Xe=!Ze&&!k&&!!Pt?.length&&an&&!n&&!Qt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,ai=!E||y);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Qi(rn(),Ei,He,ve);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:dn(ai,h);if(i.$$.dirty[0]&12582912)e:tl(Oi,p,_i);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Lo(Rt,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Zr(xt,u,He.playButton)};e:Ui=j(je.state.playPrevChapterDisabledTooltip);return[Ne,ye,X,ve,Ze,Je,we,qe,Qe,le,oe,fe,We,at,st,be,mt,it,ft,ai,He,Rt,Oi,p,E,k,T,W,Q,re,V,si,xi,sn,$i,Ki,ji,Yt,Bi,Wi,Gi,wi,Di,Xe,ti,ui,l,s,a,r,o,b,J,x,N,ie,A,Y,Le,Ke,ze,Ye,De,ni,tt,ht,St,Xt,bt,jt,Jt,di,Ii,Hi,Wt,mi,ln,oi,zi,li,qi,pi,Ti,_i,Pt,Ai,hi,zt,xt,gi,ri,Ct,Mi,Gt,$t,fn,ei,Vi,Li,bi,vi,Vt,qt,yi,Yi,Zi,Ni,tn,se,dt,Ve,Ce,Ae,ut,yt,Mt,an,Qt,n,u,f,h,g,S,y,v,G,ae,M,$,Ut,Xi,ki,Ci,nn,Cn,gn,bn,Kt,On,Fn,Sn,Mn,vn,Vn,mn,te,vt,Pn,Hn,Jn,xn,$n,eo,_o]}var Hu=class extends U{constructor(e){super(),K(this,e,L3,V3,q,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},y3,[-1,-1,-1,-1,-1,-1])}},f0=Hu;function R3(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new Bm({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function B3(i){let e,t,n;function o(r){i[27](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new f0({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function D3(i){let e,t,n,o,l=[B3,R3],r=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[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&&w(n),r[e].d(s)}}}function N3(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:b}=e,{nextButtonActive:g}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:y=!1}=e,{supportLink:E}=e,{customFullscreenSupported:k=!0}=e,{playNextVideo:v}=e,{playPrevVideo:T}=e,{repeatPlaylist:W}=e,{toggleFullscreen:Q}=e,{returnFocus:G=Jr.noop}=e,{seekToInteractive:re}=e,{toggleGraph:ae}=e,{playPrevChapter:V}=e,{onDisabledPlayPrevChapterClick:M=Jr.noop}=e,{onDisabledSeekToInteractiveClick:$=Jr.noop}=e,x=$e().ui.isMobile;H(i,x,A=>t(25,n=A));function N(A){a=A,t(0,a)}function ie(A){a=A,t(0,a)}return i.$$set=A=>{"bottomHidden"in A&&t(1,o=A.bottomHidden),"bottomNoSmooth"in A&&t(2,l=A.bottomNoSmooth),"showControls"in A&&t(3,r=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,f=A.logoClickable),"logoHidden"in A&&t(7,p=A.logoHidden),"logoTargetUrl"in A&&t(8,h=A.logoTargetUrl),"showNextPrevButtons"in A&&t(9,b=A.showNextPrevButtons),"nextButtonActive"in A&&t(10,g=A.nextButtonActive),"prevButtonActive"in A&&t(11,S=A.prevButtonActive),"isOneVideoPlaylist"in A&&t(12,y=A.isOneVideoPlaylist),"supportLink"in A&&t(13,E=A.supportLink),"customFullscreenSupported"in A&&t(14,k=A.customFullscreenSupported),"playNextVideo"in A&&t(15,v=A.playNextVideo),"playPrevVideo"in A&&t(16,T=A.playPrevVideo),"repeatPlaylist"in A&&t(17,W=A.repeatPlaylist),"toggleFullscreen"in A&&t(18,Q=A.toggleFullscreen),"returnFocus"in A&&t(19,G=A.returnFocus),"seekToInteractive"in A&&t(20,re=A.seekToInteractive),"toggleGraph"in A&&t(21,ae=A.toggleGraph),"playPrevChapter"in A&&t(22,V=A.playPrevChapter),"onDisabledPlayPrevChapterClick"in A&&t(23,M=A.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in A&&t(24,$=A.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,M,$,n,x,N,ie]}var zu=class extends U{constructor(e){super(),K(this,e,N3,D3,q,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},xr=zu;function O3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S=i[2].default,y=Pe(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],k={};for(let v=0;v<E.length;v+=1)k=ne(k,E[v]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),p=D("feColorMatrix"),h=D("feBlend"),b=D("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_100684"),c(b,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ge(e,k)},m(v,T){C(v,e,T),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,b),g=!0},p(v,[T]){y&&y.p&&(!g||T&2)&&Te(y,S,v,v[1],g?Ie(S,v[1],T,null):Ee(v[1]),null),ge(e,k=Me(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},T&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&w(e),y&&y.d(v)}}}function F3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var qu=class extends U{constructor(e){super(),K(this,e,F3,O3,q,{})}},d0=qu;function H3(i){let e,t;return e=new d0({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function z3(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Uu=class extends U{constructor(e){super(),K(this,e,z3,H3,q,{reversed:1})}},m0=Uu;function q3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E=i[2].default,k=Pe(E,i,i[1],null),v=[{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]],T={};for(let W=0;W<v.length;W+=1)T=ne(T,v[W]);return{c(){e=D("svg"),k&&k.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("clipPath"),a=D("path"),s=D("filter"),u=D("feFlood"),f=D("feColorMatrix"),p=D("feOffset"),h=D("feGaussianBlur"),b=D("feColorMatrix"),g=D("feBlend"),S=D("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_104204"),c(S,"in","SourceGraphic"),c(S,"in2","effect1_dropShadow_2260_104204"),c(S,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ge(e,T)},m(W,Q){C(W,e,Q),k&&k.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(l,s),m(s,u),m(s,f),m(s,p),m(s,h),m(s,b),m(s,g),m(s,S),y=!0},p(W,[Q]){k&&k.p&&(!y||Q&2)&&Te(k,E,W,W[1],y?Ie(E,W[1],Q,null):Ee(W[1]),null),ge(e,T=Me(v,[{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&&W[0]]))},i(W){y||(d(k,W),y=!0)},o(W){_(k,W),y=!1},d(W){W&&w(e),k&&k.d(W)}}}function U3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ku=class extends U{constructor(e){super(),K(this,e,U3,q3,q,{})}},p0=Ku;function K3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k=i[2].default,v=Pe(k,i,i[1],null),T=[{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]],W={};for(let Q=0;Q<T.length;Q+=1)W=ne(W,T[Q]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),l=D("path"),r=D("defs"),a=D("clipPath"),s=D("path"),u=D("filter"),f=D("feFlood"),p=D("feColorMatrix"),h=D("feOffset"),b=D("feGaussianBlur"),g=D("feColorMatrix"),S=D("feBlend"),y=D("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"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"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(b,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(S,"in2","BackgroundImageFix"),c(S,"result","effect1_dropShadow_2260_104293"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_104293"),c(y,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ge(e,W)},m(Q,G){C(Q,e,G),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(t,l),m(e,r),m(r,a),m(a,s),m(r,u),m(u,f),m(u,p),m(u,h),m(u,b),m(u,g),m(u,S),m(u,y),E=!0},p(Q,[G]){v&&v.p&&(!E||G&2)&&Te(v,k,Q,Q[1],E?Ie(k,Q[1],G,null):Ee(Q[1]),null),ge(e,W=Me(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},G&1&&Q[0]]))},i(Q){E||(d(v,Q),E=!0)},o(Q){_(v,Q),E=!1},d(Q){Q&&w(e),v&&v.d(Q)}}}function j3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ju=class extends U{constructor(e){super(),K(this,e,j3,K3,q,{})}},_0=ju;function W3(i){let e,t;return e=new p0({}),{c(){B(e.$$.fragment)},m(n,o){L(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 G3(i){let e,t;return e=new _0({}),{c(){B(e.$$.fragment)},m(n,o){L(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 Q3(i){let e,t,n,o,l=[G3,W3],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=lt()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t||(t=r[e]=l[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&&w(n),r[e].d(s)}}}function Y3(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Wu=class extends U{constructor(e){super(),K(this,e,Y3,Q3,q,{isOff:0})}},Gu=Wu;function Z3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S=i[2].default,y=Pe(S,i,i[1],null),E=[{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]],k={};for(let v=0;v<E.length;v+=1)k=ne(k,E[v]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),p=D("feColorMatrix"),h=D("feBlend"),b=D("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_106627"),c(b,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ge(e,k)},m(v,T){C(v,e,T),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,b),g=!0},p(v,[T]){y&&y.p&&(!g||T&2)&&Te(y,S,v,v[1],g?Ie(S,v[1],T,null):Ee(v[1]),null),ge(e,k=Me(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},T&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&w(e),y&&y.d(v)}}}function X3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Qu=class extends U{constructor(e){super(),K(this,e,X3,Z3,q,{})}},h0=Qu;function J3(i){let e,t;return e=new h0({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function x3(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Yu=class extends U{constructor(e){super(),K(this,e,x3,J3,q,{reversed:1})}},g0=Yu;function $3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S=i[2].default,y=Pe(S,i,i[1],null),E=[{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]],k={};for(let v=0;v<E.length;v+=1)k=ne(k,E[v]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),p=D("feColorMatrix"),h=D("feBlend"),b=D("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2340_106922"),c(b,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ge(e,k)},m(v,T){C(v,e,T),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,b),g=!0},p(v,[T]){y&&y.p&&(!g||T&2)&&Te(y,S,v,v[1],g?Ie(S,v[1],T,null):Ee(v[1]),null),ge(e,k=Me(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},T&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&w(e),y&&y.d(v)}}}function e5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Zu=class extends U{constructor(e){super(),K(this,e,e5,$3,q,{})}},b0=Zu;function t5(i){let e,t;return e=new b0({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function i5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Xu=class extends U{constructor(e){super(),K(this,e,i5,t5,q,{reversed:1})}},v0=Xu;function n5(i){ke(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 y0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,b,g,S,y,E=t&&w0(i),k=i[4]==="PAUSE"&&k0(i),v=i[4]==="PLAY"&&C0(i),T=i[4]==="REPLAY"&&S0(i),W=i[4]==="SUBTITLES_OFF"&&P0(i),Q=i[4]==="SUBTITLES_ON"&&I0(i),G=u&&T0(i),re=p&&E0(i),ae=i[4]==="MUTE"&&A0(i),V=i[4]==="VOLUME"&&M0(i),M=i[5]&&V0(i);return{c(){e=I("div"),E&&E.c(),n=F(),k&&k.c(),o=F(),v&&v.c(),l=F(),T&&T.c(),r=F(),W&&W.c(),a=F(),Q&&Q.c(),s=F(),G&&G.c(),f=F(),re&&re.c(),h=F(),ae&&ae.c(),b=F(),V&&V.c(),g=F(),M&&M.c(),S=lt(),c(e,"class","svelte-4ftgwp")},m($,J){C($,e,J),E&&E.m(e,null),m(e,n),k&&k.m(e,null),m(e,o),v&&v.m(e,null),m(e,l),T&&T.m(e,null),m(e,r),W&&W.m(e,null),m(e,a),Q&&Q.m(e,null),m(e,s),G&&G.m(e,null),m(e,f),re&&re.m(e,null),m(e,h),ae&&ae.m(e,null),m(e,b),V&&V.m(e,null),C($,g,J),M&&M.m($,J),C($,S,J),y=!0},p($,J){J&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes($[4])),t?E?(E.p($,J),J&16&&d(E,1)):(E=w0($),E.c(),d(E,1),E.m(e,n)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),$[4]==="PAUSE"?k?J&16&&d(k,1):(k=k0($),k.c(),d(k,1),k.m(e,o)):k&&(ue(),_(k,1,1,()=>{k=null}),ce()),$[4]==="PLAY"?v?J&16&&d(v,1):(v=C0($),v.c(),d(v,1),v.m(e,l)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),$[4]==="REPLAY"?T?J&16&&d(T,1):(T=S0($),T.c(),d(T,1),T.m(e,r)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),$[4]==="SUBTITLES_OFF"?W?J&16&&d(W,1):(W=P0($),W.c(),d(W,1),W.m(e,a)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),$[4]==="SUBTITLES_ON"?Q?J&16&&d(Q,1):(Q=I0($),Q.c(),d(Q,1),Q.m(e,s)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),J&16&&(u=["RATE_DOWN","RATE_UP"].includes($[4])),u?G?(G.p($,J),J&16&&d(G,1)):(G=T0($),G.c(),d(G,1),G.m(e,f)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),J&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes($[4])),p?re?(re.p($,J),J&16&&d(re,1)):(re=E0($),re.c(),d(re,1),re.m(e,h)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),$[4]==="MUTE"?ae?J&16&&d(ae,1):(ae=A0($),ae.c(),d(ae,1),ae.m(e,b)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),$[4]==="VOLUME"?V?J&16&&d(V,1):(V=M0($),V.c(),d(V,1),V.m(e,null)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),$[5]?M?M.p($,J):(M=V0($),M.c(),M.m(S.parentNode,S)):M&&(M.d(1),M=null)},i($){y||(d(E),d(k),d(v),d(T),d(W),d(Q),d(G),d(re),d(ae),d(V),y=!0)},o($){_(E),_(k),_(v),_(T),_(W),_(Q),_(G),_(re),_(ae),_(V),y=!1},d($){$&&(w(e),w(g),w(S)),E&&E.d(),k&&k.d(),v&&v.d(),T&&T.d(),W&&W.d(),Q&&Q.d(),G&&G.d(),re&&re.d(),ae&&ae.d(),V&&V.d(),M&&M.d($)}}}function w0(i){let e,t;return e=new m0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},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 Er({}),{c(){B(e.$$.fragment)},m(n,o){L(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 rl({}),{c(){B(e.$$.fragment)},m(n,o){L(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 Hr({}),{c(){B(e.$$.fragment)},m(n,o){L(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 Gu({props:{isOff:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(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 Gu({}),{c(){B(e.$$.fragment)},m(n,o){L(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 g0({props:{reversed:i[4]==="RATE_UP"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},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 v0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},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 Ro({props:{volume:0}}),{c(){B(e.$$.fragment)},m(n,o){L(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 Ro({props:{volume:1}}),{c(){B(e.$$.fragment)},m(n,o){L(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{c(){e=I("span"),t=Re(i[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&32&&Ge(t,n[5])},d(n){n&&w(e)}}}function o5(i){let e,t,n=!i[1]&&i[4]&&y0(i);return{c(){e=I("div"),n&&n.c(),c(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,l){C(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=y0(o),n.c(),d(n,1),n.m(e,null)):n&&(ue(),_(n,1,1,()=>{n=null}),ce()),(!t||l&2)&&z(e,"hidden",o[1]),(!t||l&4)&&z(e,"hot-key-helpers-container--left",o[2]),(!t||l&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&&w(e),n&&n.d()}}}function l5(i,e,t){let n,o=me,l=()=>(o(),o=Ht(r,h=>t(6,n=h)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return i.$$set=h=>{"data"in h&&l(t(0,r=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,a=!n),t(2,s=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,p=j(n.t.key,{value:n.t.value||""})):t(5,p=n?.text)},[r,a,s,u,f,p,n]}var Ju=class extends U{constructor(e){super(),K(this,e,l5,o5,q,{data:0},n5)}},L0=Ju;function r5(i){ke(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 s5(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v;return l=new jn({props:{direction:"up"}}),s=new jn({props:{direction:"up"}}),h=new jn({props:{direction:"up"}}),S=new jn({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),B(l.$$.fragment),r=F(),a=I("div"),B(s.$$.fragment),u=F(),f=I("div"),p=I("div"),B(h.$$.fragment),b=F(),g=I("div"),B(S.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",y=j("aria_label_spherical_control")),z(e,"m-shifted",i[0])},m(T,W){C(T,e,W),m(e,t),m(t,n),m(n,o),L(l,o,null),m(n,r),m(n,a),L(s,a,null),m(t,u),m(t,f),m(f,p),L(h,p,null),m(f,b),m(f,g),L(S,g,null),E=!0,k||(v=[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(p,"mousedown",i[4]),de(p,"mouseup",i[5]),de(p,"mouseleave",i[5]),de(g,"mousedown",i[2]),de(g,"mouseup",i[5]),de(g,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],k=!0)},p(T,[W]){(!E||W&1)&&z(e,"m-shifted",T[0])},i(T){E||(d(l.$$.fragment,T),d(s.$$.fragment,T),d(h.$$.fragment,T),d(S.$$.fragment,T),E=!0)},o(T){_(l.$$.fragment,T),_(s.$$.fragment,T),_(h.$$.fragment,T),_(S.$$.fragment,T),E=!1},d(T){T&&w(e),R(l),R(s),R(h),R(S),k=!1,et(v)}}}function a5(i,e,t){let{isShifted:n=!1}=e,o=$e(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{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)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=b=>{if(l.has(b.code))switch(b.preventDefault(),b.stopPropagation(),b.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=b=>{l.has(b.code)&&(b.preventDefault(),b.stopPropagation(),f())};return i.$$set=b=>{"isShifted"in b&&t(0,n=b.isShifted)},[n,r,a,s,u,f,p,h]}var xu=class extends U{constructor(e){super(),K(this,e,a5,s5,q,{isShifted:0},r5)}},$r=xu;function u5(i){ke(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 R0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function B0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function D0(i){let e,t;function n(r,a){return r[7]&&r[8]?d5:r[5]?f5:c5}let o=n(i,-1),l=o(i);return{c(){e=I("div"),t=I("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),z(e,"mobile",i[3])},m(r,a){C(r,e,a),m(e,t),l.m(t,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),a&8&&z(e,"mobile",r[3])},d(r){r&&w(e),l.d()}}}function c5(i){let e,t=wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=N0(R0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=lt()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);C(o,e,l)},p(o,l){if(l&18){t=wt(o[1]);let r;for(r=0;r<t.length;r+=1){let a=R0(o,t,r);n[r]?n[r].p(a,l):(n[r]=N0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&w(e),Fi(n,o)}}}function f5(i){let e,t,n=wt(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=F0(B0(i,n,l));return{c(){e=I("span"),t=I("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){C(l,e,r),m(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(l,r){if(r&68){n=wt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=B0(l,n,a);o[a]?o[a].p(s,r):(o[a]=F0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&ci(t,"font-size",l[4]+"px")},d(l){l&&w(e),Fi(o,l)}}}function d5(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=Re(n),c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){C(l,e,r),m(e,t),m(t,o)},p(l,r){r&16&&ci(t,"font-size",l[4]+"px")},d(l){l&&w(e)}}}function N0(i){let e,t,n=i[16]+"",o,l;return{c(){e=I("span"),t=I("span"),o=Re(n),l=F(),c(t,"class","caption-segment svelte-ovfyp5"),ci(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){C(r,e,a),m(e,t),m(t,o),m(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&Ge(o,n),a&16&&ci(t,"font-size",r[4]+"px")},d(r){r&&w(e)}}}function O0(i){let e=i[16]+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(t,e)},d(n){n&&w(t)}}}function F0(i){let e,t=(!i[17]||i[17]<=i[2])&&O0(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=O0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&w(e),t&&t.d(n)}}}function m5(i){let e,t=i[1].length>0&&D0(i);return{c(){e=I("div"),t&&t.c(),c(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=D0(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:me,o:me,d(n){n&&w(e),t&&t.d()}}}function p5(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=$e(),p=Lt(),h=f.state.currentSubtitle$;H(i,h,v=>t(12,n=v));let b=f.state.isAutoSubtitleCaptionVisible$;H(i,b,v=>t(8,o=v));let g,S,y,E,k;return Tt(()=>{k=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout)}),Rn(()=>{window.clearTimeout(k)}),i.$$set=v=>{"shifted"in v&&t(0,l=v.shifted),"captions"in v&&t(1,r=v.captions),"position"in v&&t(2,a=v.position),"playerSize"in v&&t(11,s=v.playerSize),"isMobile"in v&&t(3,u=v.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let v=s.width*.02;t(4,g=v<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:v)}if(i.$$.dirty&2)e:t(5,S=r.some(v=>v.type==="timestamp"));if(i.$$.dirty&2)e:t(6,y=r.reduce((v,{type:T,value:W})=>(T==="timestamp"?v.push({timeAppeared:Number(W),value:""}):v.length===0?v.push({value:String(W)}):v[v.length-1].value=String(W),v),[]));if(i.$$.dirty&4096)e:t(7,E=!!n.isAuto)},[l,r,a,u,g,S,y,E,o,h,b,s,n]}var $u=class extends U{constructor(e){super(),K(this,e,p5,m5,q,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},u5)}},es=$u;function _5(i){ke(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 H0(i){let e,t,n;return{c(){e=I("div"),t=Re("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Re(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){C(o,e,l),m(e,t),m(e,n)},p(o,l){l&2&&Ge(n,o[1])},d(o){o&&w(e)}}}function h5(i){let e,t,n,o,l,r,a=i[1]&&H0(i);return{c(){e=I("div"),t=I("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=F(),a&&a.c(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(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),m(e,t),m(e,n),a&&a.m(e,null),l||(r=de(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=H0(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]||""}')`)&&c(e,"style",o)},i:me,o:me,d(s){s&&w(e),a&&a.d(),l=!1,r()}}}function g5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){yn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var ec=class extends U{constructor(e){super(),K(this,e,g5,h5,q,{thumbUrl:0,chromecastDeviceName:1},_5)}},ts=ec;function b5(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function v5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var tc=class extends U{constructor(e){super(),K(this,e,v5,b5,q,{})}},z0=tc;function y5(i){ke(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 w5(i){let e,t,n;return t=new z0({}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}var ic=class extends U{constructor(e){super(),K(this,e,null,w5,q,{},y5)}},is=ic;function k5(i){ke(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 C5(i){let e,t,n,o,l,r,a,s,u,f;return l=new rl({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=F(),B(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",r=j("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),z(e,"hidden",i[1])},m(p,h){C(p,e,h),m(e,t),m(t,n),m(t,o),L(l,t,null),s=!0,u||(f=[de(t,"keydown",i[3]),de(e,"click",rt(function(){Si(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(p,[h]){i=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&z(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&w(e),R(l),u=!1,et(f)}}}function S5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=$e().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};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,l=u.startVideo)},[n,o,l,s]}var nc=class extends U{constructor(e){super(),K(this,e,S5,C5,q,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},k5)}get handlePressKey(){return this.$$.ctx[3]}},ns=nc;function P5(i){ke(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 C5(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),c(e,"class","title svelte-1bcvcf2"),F(e,"hidden",i[1])},m(n,o){k(n,e,o),m(e,t)},p(n,[o]){o&1&&je(t,n[0]),o&2&&F(e,"hidden",n[1])},i:me,o:me,d(n){n&&y(e)}}}function S5(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 ic=class extends q{constructor(e){super(),U(this,e,S5,C5,z,{title:0,isHidden:1},w5)}},H0=ic;function P5(i){Ce(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=P("div"),t=P("span"),n=Re(i[0]),o=O(),r=P("span"),r.textContent=`${W("waiting_live_day_value")}`,l=O(),a=P("span"),a.textContent=`${W("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){k(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),k(s,l,u),k(s,a,u)},p(s,u){u&1&&je(n,s[0])},d(s){s&&(y(e),y(l),y(a))}}}function q0(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("span"),n=Re(i[1]),o=O(),r=P("span"),r.textContent=`${W("waiting_live_hour_value")}`,l=O(),a=P("span"),a.textContent=`${W("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){k(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),k(s,l,u),k(s,a,u)},p(s,u){u&2&&je(n,s[1])},d(s){s&&(y(e),y(l),y(a))}}}function U0(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("span"),n=Re(i[2]),o=O(),r=P("span"),r.textContent=`${W("waiting_live_minute_value")}`,l=O(),a=P("span"),a.textContent=`${W("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){k(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),k(s,l,u),k(s,a,u)},p(s,u){u&4&&je(n,s[2])},d(s){s&&(y(e),y(l),y(a))}}}function K0(i){let e,t,n,o,r;return{c(){e=P("div"),t=P("span"),n=Re(i[3]),o=O(),r=P("span"),r.textContent=`${W("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){k(l,e,a),m(e,t),m(t,n),m(e,o),m(e,r)},p(l,a){a&8&&je(n,l[3])},d(l){l&&y(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=P("div"),r&&r.c(),t=O(),l&&l.c(),n=O(),a&&a.c(),o=O(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){k(u,e,f),r&&r.m(e,null),m(e,t),l&&l.m(e,null),m(e,n),a&&a.m(e,null),m(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?r?r.p(u,f):(r=z0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,f):(l=q0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,f):(a=U0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=K0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:me,o:me,d(u){u&&y(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function T5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,f=v=>String(v).padStart(2,"0"),p=v=>{let g=Math.floor(v/86400);g&&(v-=g*86400,t(0,r=f(g)));let S=Math.floor(v/3600);t(1,l=f(S));let w=Math.floor(v/60)%60;t(2,a=f(w));let T=v%60;t(3,s=f(T))},h=()=>{let v=Math.floor(Date.now()/1e3),g=n-v;p(g),g>=1?u=requestAnimationFrame(h):o()};return St(()=>{u=requestAnimationFrame(h)}),Ln(()=>{cancelAnimationFrame(u)}),i.$$set=v=>{"startTime"in v&&t(4,n=v.startTime),"onTimerOver"in v&&t(5,o=v.onTimerOver)},[r,l,a,s,n,o]}var nc=class extends q{constructor(e){super(),U(this,e,T5,I5,z,{startTime:4,onTimerOver:5},P5)}},W0=nc;function E5(i){let e,t,n,o,r,l,a=i[2].default,s=Pe(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]],f={};for(let p=0;p<u.length;p+=1)f=oe(f,u[p]);return{c(){e=M("svg"),s&&s.c(),t=M("path"),n=M("path"),o=M("path"),r=M("path"),c(t,"fill","#fefffe"),c(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"),ci(t,"opacity",".965"),c(n,"fill","#fefffe"),c(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"),ci(n,"opacity",".965"),c(o,"fill","#fefffe"),c(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"),ci(o,"opacity",".985"),c(r,"fill","#fefffe"),c(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"),ci(r,"opacity",".986"),be(e,f)},m(p,h){k(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,r),l=!0},p(p,[h]){s&&s.p&&(!l||h&2)&&Te(s,a,p,p[1],l?Ie(a,p[1],h,null):Ee(p[1]),null),be(e,f=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&&p[0]]))},i(p){l||(d(s,p),l=!0)},o(p){_(s,p),l=!1},d(p){p&&y(e),s&&s.d(p)}}}function A5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var oc=class extends q{constructor(e){super(),U(this,e,A5,E5,z,{})}},G0=oc;function M5(i){Ce(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 V5(i){let e,t,n,o,r;return o=new W0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${W("waiting_live_timer_title")}`,n=O(),D(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){k(l,e,a),m(e,t),m(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&&y(e),R(o)}}}function L5(i){let e,t,n,o,r,l;return n=new G0({}),{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("span"),r.textContent=`${W("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(r,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){k(a,e,s),m(e,t),B(n,t,null),m(e,o),m(e,r),l=!0},p:me,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&y(e),R(n)}}}function B5(i){let e,t,n,o,r,l=[L5,V5],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){k(u,e,f),a[t].m(e,null),r=!0},p(u,[f]){let p=t;t=s(u,f),t===p?a[t].p(u,f):(ue(),_(a[p],1,1,()=>{a[p]=null}),ce(),n=a[t],n?n.p(u,f):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&y(e),a[t].d()}}}function R5(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 lc=class extends q{constructor(e){super(),U(this,e,R5,B5,z,{thumbUrl:0,startTime:1},M5)}},ns=lc;function D5(i){Ce(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 N5(i){let e,t;return{c(){e=P("div"),t=P("p"),t.textContent=`${W("waiting_record_title")}`,c(t,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){k(n,e,o),m(e,t)},p:me,i:me,o:me,d(n){n&&y(e)}}}var rc=class extends q{constructor(e){super(),U(this,e,null,N5,z,{},D5)}},os=rc;var{window:O5}=bo;function F5(i){Ce(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){let e,t;return e=new ns({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{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[0]&16&&(r.startTime=n[4]?.startTime),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 os({}),{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 sr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),F(e,"hidden",i[38]!=="ads")},m(o,r){k(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&&y(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 xr({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 xl({props:{"aria-label":W("video360")}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){k(o,e,r),B(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&y(e),R(t)}}}function ep(i){let e,t;return e=new es({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 $r({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 ts({}),{c(){e=P("div"),D(t.$$.fragment)},m(l,a){k(l,e,a),B(t,e,null),n=!0,o||(r=[pe(e,"contextmenu",Ct(i[108])),pe(e,"click",rt(i[119]))],o=!0)},p:me,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&y(e),R(t),o=!1,nt(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 Jr({props:r}),_e.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 hr({}),{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 T1({}),{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 mr({}),{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,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le;e=new is({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let se=i[38]==="waitingLive"&&Q0(i),V=i[38]==="waitingRecord"&&Y0(i),A=i[7]&&i[22]&&Z0(i),$=i[31]&&i[18]&&i[19]&&X0(i),J=i[44]&&J0(i),x=i[49]&&x0(i),N=i[52]&&$0(i),te=i[39]&&ep(i),E=i[54].value!=="off"&&tp(i),Y=i[37]&&ip(i),Be=i[22]&&np(i);g=new ur({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),w=new M0({props:{data:i[103]}});function We(X){i[158](X)}let qe={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(qe.menuElementRef=i[32]),C=new xf({props:qe}),_e.push(()=>Fe(C,"menuElementRef",We));let Je=i[42]&&op(i),Ne=i[62]&&lp(i),ve=i[63]&&rp(i);return{c(){D(e.$$.fragment),t=O(),se&&se.c(),n=O(),V&&V.c(),o=O(),A&&A.c(),r=O(),$&&$.c(),l=O(),J&&J.c(),a=O(),x&&x.c(),s=O(),N&&N.c(),u=O(),te&&te.c(),f=O(),E&&E.c(),p=O(),Y&&Y.c(),h=O(),Be&&Be.c(),v=O(),D(g.$$.fragment),S=O(),D(w.$$.fragment),T=O(),D(C.$$.fragment),I=O(),Je&&Je.c(),Q=O(),Ne&&Ne.c(),j=O(),ve&&ve.c(),G=lt()},m(X,ke){B(e,X,ke),k(X,t,ke),se&&se.m(X,ke),k(X,n,ke),V&&V.m(X,ke),k(X,o,ke),A&&A.m(X,ke),k(X,r,ke),$&&$.m(X,ke),k(X,l,ke),J&&J.m(X,ke),k(X,a,ke),x&&x.m(X,ke),k(X,s,ke),N&&N.m(X,ke),k(X,u,ke),te&&te.m(X,ke),k(X,f,ke),E&&E.m(X,ke),k(X,p,ke),Y&&Y.m(X,ke),k(X,h,ke),Be&&Be.m(X,ke),k(X,v,ke),B(g,X,ke),k(X,S,ke),B(w,X,ke),k(X,T,ke),B(C,X,ke),k(X,I,ke),Je&&Je.m(X,ke),k(X,Q,ke),Ne&&Ne.m(X,ke),k(X,j,ke),ve&&ve.m(X,ke),k(X,G,ke),le=!0},p(X,ke){let He={};ke[0]&32|ke[1]&192&&(He.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),ke[0]&8&&(He.thumbUrl=X[3]),ke[0]&536870912&&(He.startVideo=X[29]),e.$set(He),X[38]==="waitingLive"?se?(se.p(X,ke),ke[1]&128&&d(se,1)):(se=Q0(X),se.c(),d(se,1),se.m(n.parentNode,n)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),X[38]==="waitingRecord"?V?ke[1]&128&&d(V,1):(V=Y0(X),V.c(),d(V,1),V.m(o.parentNode,o)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),X[7]&&X[22]?A?(A.p(X,ke),ke[0]&4194432&&d(A,1)):(A=Z0(X),A.c(),d(A,1),A.m(r.parentNode,r)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),X[31]&&X[18]&&X[19]?$?($.p(X,ke),ke[0]&786432|ke[1]&1&&d($,1)):($=X0(X),$.c(),d($,1),$.m(l.parentNode,l)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),X[44]?J?(J.p(X,ke),ke[1]&8192&&d(J,1)):(J=J0(X),J.c(),d(J,1),J.m(a.parentNode,a)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),X[49]?x?(x.p(X,ke),ke[1]&262144&&d(x,1)):(x=x0(X),x.c(),d(x,1),x.m(s.parentNode,s)):x&&(ue(),_(x,1,1,()=>{x=null}),ce()),X[52]?N?(N.p(X,ke),ke[1]&2097152&&d(N,1)):(N=$0(X),N.c(),d(N,1),N.m(u.parentNode,u)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),X[39]?te?(te.p(X,ke),ke[1]&256&&d(te,1)):(te=ep(X),te.c(),d(te,1),te.m(f.parentNode,f)):te&&(ue(),_(te,1,1,()=>{te=null}),ce()),X[54].value!=="off"?E?(E.p(X,ke),ke[1]&8388608&&d(E,1)):(E=tp(X),E.c(),d(E,1),E.m(p.parentNode,p)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),X[37]?Y?(Y.p(X,ke),ke[1]&64&&d(Y,1)):(Y=ip(X),Y.c(),d(Y,1),Y.m(h.parentNode,h)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),X[22]?Be?(Be.p(X,ke),ke[0]&4194304&&d(Be,1)):(Be=np(X),Be.c(),d(Be,1),Be.m(v.parentNode,v)):Be&&(ue(),_(Be,1,1,()=>{Be=null}),ce());let xe={};ke[1]&134217728&&(xe.isLive=X[58]),ke[1]&4096&&(xe.isHidden=!X[43]),ke[1]&268435456&&(xe.isPlaying=X[59]),ke[1]&33554432&&(xe.position=X[56]),ke[1]&536870912&&(xe.duration=X[60]),g.$set(xe);let et={};ke[0]&2097152&&(et.supportLink=X[21]),ke[1]&131072&&(et.returnFocus=X[157]),ke[1]&4&&(et.visible=X[33]),ke[1]&512&&(et.playerContainerRef=X[40]),ke[1]&1024&&(et.controlsContainerRef=X[41]),ke[1]&1073741824&&(et.position=X[61]),!b&&ke[1]&2&&(b=!0,et.menuElementRef=X[32],Oe(()=>b=!1)),C.$set(et),X[42]?Je?ke[1]&2048&&d(Je,1):(Je=op(X),Je.c(),d(Je,1),Je.m(Q.parentNode,Q)):Je&&(ue(),_(Je,1,1,()=>{Je=null}),ce()),X[62]?Ne?ke[2]&1&&d(Ne,1):(Ne=lp(X),Ne.c(),d(Ne,1),Ne.m(j.parentNode,j)):Ne&&(ue(),_(Ne,1,1,()=>{Ne=null}),ce()),X[63]?ve?ke[2]&2&&d(ve,1):(ve=rp(X),ve.c(),d(ve,1),ve.m(G.parentNode,G)):ve&&(ue(),_(ve,1,1,()=>{ve=null}),ce())},i(X){le||(d(e.$$.fragment,X),d(se),d(V),d(A),d($),d(J),d(x),d(N),d(te),d(E),d(Y),d(Be),d(g.$$.fragment,X),d(w.$$.fragment,X),d(C.$$.fragment,X),d(Je),d(Ne),d(ve),le=!0)},o(X){_(e.$$.fragment,X),_(se),_(V),_(A),_($),_(J),_(x),_(N),_(te),_(E),_(Y),_(Be),_(g.$$.fragment,X),_(w.$$.fragment,X),_(C.$$.fragment,X),_(Je),_(Ne),_(ve),le=!1},d(X){X&&(y(t),y(n),y(o),y(r),y(l),y(a),y(s),y(u),y(f),y(p),y(h),y(v),y(S),y(T),y(I),y(Q),y(j),y(G)),R(e,X),se&&se.d(X),V&&V.d(X),A&&A.d(X),$&&$.d(X),J&&J.d(X),x&&x.d(X),N&&N.d(X),te&&te.d(X),E&&E.d(X),Y&&Y.d(X),Be&&Be.d(X),R(g,X),R(w,X),R(C,X),Je&&Je.d(X),Ne&&Ne.d(X),ve&&ve.d(X)}}}function H5(i){let e,t,n,o,r=i[51],l,a,s,u,f=sp(i);return{c(){e=P("div"),t=P("div"),o=O(),f.c(),l=lt(),c(t,"class","video-container svelte-1o4wf3x"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),F(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),F(e,"hidden",i[38]!=="video"),F(e,"nocursor",i[45])},m(p,h){k(p,e,h),m(e,t),i[154](t),k(p,o,h),f.m(p,h),k(p,l,h),a=!0,s||(u=[pe(e,"contextmenu",Ct(i[108])),pe(e,"mousedown",Ct(i[113])),pe(e,"mouseup",Ct(i[114])),pe(e,"click",Ct(i[116])),pe(e,"dblclick",Ct(i[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(t,"style",n),(!a||h[0]&2)&&F(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&F(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&F(e,"nocursor",p[45]),h[1]&1048576&&z(r,r=p[51])?(ue(),_(f,1,1,me),ce(),f=sp(p),f.c(),d(f,1),f.m(l.parentNode,l)):f.p(p,h)},i(p){a||(d(f),a=!0)},o(p){_(f),a=!1},d(p){p&&(y(e),y(o),y(l)),i[154](null),f.d(p),s=!1,nt(u)}}}function z5(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:[H5]},$$scope:{ctx:i}};return t=new b1({props:s}),i[159](t),{c(){e=P("div"),D(t.$$.fragment),n=O(),o=P("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){k(u,e,f),B(t,e,null),m(e,n),m(e,o),i[160](o),i[161](e),r=!0,l||(a=[pe(O5,"blur",i[107]),pe(e,"mouseenter",i[109]),pe(e,"mouseleave",i[111]),pe(e,"mousemove",i[112]),pe(e,"click",i[120],!0),pe(e,"focusin",i[110],!0)],l=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&1&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&y(e),i[159](null),R(t),i[160](null),i[161](null),l=!1,nt(a)}}}var up=!0;function sc(i){return i?i.offsetTop+sc(i.offsetParent):0}function cp(i){return i?i.offsetLeft+cp(i.offsetParent):0}function q5(i,e,t){let n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,A,$,J,x,N,te,E,Y,Be,We,qe,Je,Ne,ve,X,ke,He,xe,et,{store:we}=e,{uiConfig:Ve}=e,{title:Ue}=e,{thumbUrl:Ye}=e,{videoContainer:ae}=e,{interactiveContainer:ne}=e,{live:Se}=e,{autoplay:fe}=e,{canRewindLive:Ae}=e,{showAds:Xe}=e,{adsSlotId:at=void 0}=e,{adsParams:ft=void 0}=e,{adsPreviewParam:ut=void 0}=e,{duration:ye=void 0}=e,{logoClickable:$e}=e,{logoHidden:_t}=e,{logoTargetUrl:bt=""}=e,{showNextPrevButtons:vt=!1}=e,{nextButtonActive:Vt=!1}=e,{prevButtonActive:Ke=!1}=e,{endScreenVideoTitle:Qt=void 0}=e,{endScreenVideoThumb:Nt=void 0}=e,{isOneVideoPlaylist:he=!1}=e,{supportLink:Et}=e,{outerContainerRef:Ze=void 0}=e,{playerStarted:mt=!1}=e,{fullScreenTarget:ht=void 0}=e,{showMiniTimer:gt=!1}=e,{playNextVideo:Lt=ls.noop}=e,{playPrevVideo:Oi=ls.noop}=e,{repeatPlaylist:fi=ls.noop}=e,{seekToInteractive:Yi}=e,{toggleGraph:on}=e,{playPrevChapter:di}=e,{firstStart:mi}=e,Ei=we.getLogger().createComponentLog("Root component"),Yt=we.interfaceLanguage$;H(i,Yt,K=>t(51,E=K));let pi=we.state.playbackState$;H(i,pi,K=>t(151,x=K));let ln=we.ads.playbackState;H(i,ln,K=>t(152,N=K));let _i=we.state.positionWithScrubbing$;H(i,_i,K=>t(56,Je=K));let Fi=we.state.duration$;H(i,Fi,K=>t(60,ke=K));let ti=we.playerPhase;H(i,ti,K=>t(38,se=K));let Ai=we.ui.isFullscreen;H(i,Ai,K=>t(141,g=K));let hi=we.ui.controlsVisible;H(i,hi,K=>t(36,I=K));let Hi=we.ui.settingsMenuVisible;H(i,Hi,K=>t(139,s=K));let gi=we.ui.scrubbingInProgress;H(i,gi,K=>t(143,C=K));let ii=we.ui.contextMenu.visible$;H(i,ii,K=>t(33,n=K));let Tt=we.ui.debugPanelVisible;H(i,Tt,K=>t(63,et=K));let Ot=we.state.isLoaderVisible;H(i,Ot,K=>t(153,te=K));let bi=we.state.isEnded$;H(i,bi,K=>t(140,f=K));let vi=we.state.chromecastConnected$;H(i,vi,K=>t(39,$=K));let Ft=we.state.chromecastDeviceName$;H(i,Ft,K=>t(53,Be=K));let ni=we.ads.postrollPassed;H(i,ni,K=>t(146,G=K));let oi=we.state.isLive$;H(i,oi,K=>t(58,ve=K));let Bt=we.state.isPlaying$;H(i,Bt,K=>t(59,X=K));let At=we.state.crashed$;H(i,At,K=>t(37,j=K));let Kt=we.webApi.pictureInPictureApi,Mi=we.state.currentSubtitle$;H(i,Mi,K=>t(54,We=K));let Zt=we.state.currentSubtitleCaptions$;H(i,Zt,K=>t(55,qe=K));let rn=we.state.duration$;H(i,rn,K=>t(57,Ne=K));let sn=we.state.graphIsOpened$;H(i,sn,K=>t(147,le=K));let Wt=we.ui.playerSize;H(i,Wt,K=>t(34,h=K));let yi=we.ui.is3DVideo;H(i,yi,K=>t(49,p=K));let zi=we.ui.icon3DVideoVisible;H(i,zi,K=>t(52,Y=K));let ki=we.ui.rotateAlpha;H(i,ki,K=>t(35,T=K));let li=we.state.isInteractive,Ht=we.state.isInteractiveTime$;H(i,Ht,K=>t(144,b=K));let Gt=we.state.isInteractiveExpectation$;H(i,Gt,K=>t(150,J=K));let wi=we.state.hasInteractiveBranches,Xt=we.ui.touched;H(i,Xt,K=>t(148,V=K));let Zi=we.ui.modals.hotKeyMap.data;H(i,Zi,K=>t(168,u=K));let Ci=we.ui.modals.hotKeyMap.show;H(i,Ci,K=>t(62,xe=K));let an=we.ui.overlayContainer$,un=we.ui.controls.interactiveTimeIndicator;H(i,un,K=>t(169,v=K));let Xi=we.state.showInteractiveTimeIndicator,qi=we.ui.contextMenu.position$;H(i,qi,K=>t(61,He=K));let Vi=we.actions.internal.closeSettingsMenu,{fakeIsPlaying$:jt}=Sn();H(i,jt,K=>t(142,w=K));let ri,Si,Li,Ji,Pi;Zi.set(Af());let Bi,Ri,Qe=De(!1);H(i,Qe,K=>t(50,S=K));let Ui,zt=De(!1);H(i,zt,K=>t(149,A=K));let ze=De(),xi=De(!1);H(i,xi,K=>t(145,Q=K));let Di=!1,Ki=!1,$i,Wi,_n,Jt,xt,Gi,si=!1,re,dt=!1,{toggle:ai}=jt,ui=!1,$t=null,ji;Kt?.setContext(bl());let Tn=()=>{fe&&!li&&Rt(Ve.controls.hideTimeout)};we.setUiCallbacks({onStarted:Tn});let yn=()=>{window.clearTimeout(Li),zt.set(!1)},hn=()=>{window.clearTimeout(Ji),ze.set(null)},Rt=K=>{yn(),zt.set(!0),Li=window.setTimeout(()=>zt.set(!1),K);let L=K-100;Ui=window.setTimeout(()=>{S&&Qe.set(!1)},L>0?L:K)},kn=(K,L)=>{hn(),ze.set(L),Ji=window.setTimeout(()=>ze.set(null),K)},Nn=yi.subscribe(K=>{zi.set(K),K&&(window.clearTimeout(Pi),Pi=window.setTimeout(()=>zi.set(!1),Ve.controls.hide360IconTimeout))}),En=async()=>{let K=lo();if(K){Rt(Ve.controls.hideTimeoutFullscreen);try{await Kt?.remove()}catch(L){Ei({message:String(L)})}}Ai.set(K),we.getAdmanWrapper().setFullscreen(K),g?we.callbacks?.onFullscreenEnter?.():we.callbacks?.onFullscreenExit?.()},An=K=>{let L=K;Wt.set({width:L.target.width,height:L.target.height})};St(()=>(lr(En),To(Kt)&&(Kt?.assignPlayerContainer(ri),Kt?.registryExternalEventHandlers({resize:An})),ne&&ae.parentElement?.insertBefore(ne,ae.nextSibling),()=>{window.clearTimeout(Li),window.clearTimeout(Ui),window.clearTimeout(Ji),window.clearTimeout(Pi),Nn(),Kt?.dispose(),rr(En)}));let wn=async()=>{if(lo())await or(document),Ei({message:"exit fullscreen"});else{Ei({message:"request fullscreen"});let K=Ze??ri,L=K.getRootNode(),de=L instanceof ShadowRoot?L.host:L,Me=ht instanceof HTMLElement&&ht.contains(de),Ge=Ve.allowChangingFullscreenTarget&&ht&&Me?ht:K;await nr(Ge)}},en=()=>{Vi(),ii.set(!1)},ie=K=>{ii.set(!0),qi.set({left:K.clientX,top:K.clientY})};function wt(){xi.set(!0),li||Rt(Ve.controls.hideTimeoutCursor)}function Mn(){li||(Qe.set(!0),Rt(Ve.controls.hideTimeoutCursor))}function On(){xi.set(!1),t(131,Ki=!1),t(130,Di=!1),ui=!1,we.actions.internal.releaseCamera()}function Fn(K){if(v&&Xi){let L=K.currentTarget,de=sc(L),Me=cp(L),Ge=K.pageX-Me,st=K.pageY-de,{left:qt,bottom:ei,right:Ut}=v,cn=Ut-qt;return Ge>=qt-cn&&st<=ei+cn}}function Jn(K){if(ri){let L=sc(K.currentTarget),de=h.height,Me=K.pageY-L;if(Fn(K)){t(131,Ki=!1);return}Me<40?t(131,Ki=!0):Me>de-40?t(130,Di=!0):(t(131,Ki=!1),s||t(130,Di=!1))}}function xn(K){Jn(K),Wi||Rt(Ve.controls.hideTimeoutCursor),p&&ui&&$t&&we.actions.internal.moveCameraFocusPX($t.clientX-K.clientX,$t.clientY-K.clientY,K.timeStamp-$t.timeStamp),$t=K}let $n=K=>{K.button===0&&(ui=!0,we.actions.internal.holdCamera()),Rt(Ve.controls.hideTimeoutCursor)},eo=K=>{K.button===0&&($t=K,ui=!1,we.actions.internal.releaseCamera()),Rt(Ve.controls.hideTimeoutCursor)},to=()=>{up&&(Ei({message:"double click on video"}),wn(),Rt(Ve.controls.hideTimeoutCursor))},po=()=>{if(n||s){en();return}if(!(f&&!wi)){if(dt)return ai();if(ji?.focus(),!mt){mi(),Rt(Ve.controls.hideTimeoutCursor);return}we.actions.internal.togglePlay(),Rt(Ve.controls.hideTimeoutCursor)}},ee=K=>{en(),Xt.set(!0),Rt(Ve.controls.hideTimeout),K&&kn(Ve.controls.hideHotKeyHelpers,K)},mn=()=>{en(),we.callbacks?.onOpenHotKeyMap?we.callbacks?.onOpenHotKeyMap(u):Ci.update(K=>!K)},Ro=()=>{if(n||s){en();return}},Do=()=>{Xt.set(!0)},Wn=we.ui.contextMenu.openedByBtnKeyboard$;H(i,Wn,K=>t(138,a=K));let _o=we.ui.contextMenu.btnRef$;H(i,_o,K=>t(137,l=K));let Gn,jn=we.ui.contextMenu.openedByHotKey$;H(i,jn,K=>t(136,r=K));let No=we.ui.contextMenu.lastActiveElem$;H(i,No,K=>t(135,o=K));function Oo(K){_e[K?"unshift":"push"](()=>{ae=K,t(0,ae)})}let pl=()=>ji?.focus();function Fo(K){Si=K,t(41,Si)}let Hn=()=>ji?.focus();function Ho(K){Gn=K,t(32,Gn)}function ho(K){_e[K?"unshift":"push"](()=>{ji=K,t(48,ji)})}function go(K){_e[K?"unshift":"push"](()=>{Ri=K,t(30,Ri)})}function zo(K){_e[K?"unshift":"push"](()=>{ri=K,t(40,ri)})}return i.$$set=K=>{"store"in K&&t(125,we=K.store),"uiConfig"in K&&t(1,Ve=K.uiConfig),"title"in K&&t(2,Ue=K.title),"thumbUrl"in K&&t(3,Ye=K.thumbUrl),"videoContainer"in K&&t(0,ae=K.videoContainer),"interactiveContainer"in K&&t(126,ne=K.interactiveContainer),"live"in K&&t(4,Se=K.live),"autoplay"in K&&t(5,fe=K.autoplay),"canRewindLive"in K&&t(6,Ae=K.canRewindLive),"showAds"in K&&t(7,Xe=K.showAds),"adsSlotId"in K&&t(8,at=K.adsSlotId),"adsParams"in K&&t(9,ft=K.adsParams),"adsPreviewParam"in K&&t(10,ut=K.adsPreviewParam),"duration"in K&&t(11,ye=K.duration),"logoClickable"in K&&t(12,$e=K.logoClickable),"logoHidden"in K&&t(13,_t=K.logoHidden),"logoTargetUrl"in K&&t(14,bt=K.logoTargetUrl),"showNextPrevButtons"in K&&t(15,vt=K.showNextPrevButtons),"nextButtonActive"in K&&t(16,Vt=K.nextButtonActive),"prevButtonActive"in K&&t(17,Ke=K.prevButtonActive),"endScreenVideoTitle"in K&&t(18,Qt=K.endScreenVideoTitle),"endScreenVideoThumb"in K&&t(19,Nt=K.endScreenVideoThumb),"isOneVideoPlaylist"in K&&t(20,he=K.isOneVideoPlaylist),"supportLink"in K&&t(21,Et=K.supportLink),"outerContainerRef"in K&&t(127,Ze=K.outerContainerRef),"playerStarted"in K&&t(22,mt=K.playerStarted),"fullScreenTarget"in K&&t(128,ht=K.fullScreenTarget),"showMiniTimer"in K&&t(129,gt=K.showMiniTimer),"playNextVideo"in K&&t(23,Lt=K.playNextVideo),"playPrevVideo"in K&&t(24,Oi=K.playPrevVideo),"repeatPlaylist"in K&&t(25,fi=K.repeatPlaylist),"seekToInteractive"in K&&t(26,Yi=K.seekToInteractive),"toggleGraph"in K&&t(27,on=K.toggleGraph),"playPrevChapter"in K&&t(28,di=K.playPrevChapter),"firstStart"in K&&t(29,mi=K.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Bi=(se==="video"&&te||se==="ads"&&N==="inactive")&&!j);if(i.$$.dirty[0]&1073741824)e:an.set(Ri);if(i.$$.dirty[4]&134217728)e:t(132,$i=x!==ap.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,Wi=b&&!s&&!(Di||Ki)&&!($i&&!J));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:hi.set(($i||s||C||$||A)&&!Wi&&(se==="video"||se==="ads")&&!j);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,_n=Ve.features.thumbTimer&&gt&&se==="video"&&!I&&!j&&!li&&(Ve.hideThumbTimerAfterTouch&&!V||!Ve.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,Jt=se==="video"&&!le&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,xt=(Xe&&G||!Xe)&&f&&!j);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,Gi=Q&&!(I||xt)&&!b);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!C&&si&&!b&&Rt(Ve.controls.hideTimeoutCursor),t(134,si=C);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,re=ae&&T%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:Mo(Gn,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let K=l;K&&$o(K,n,Wn)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Mo(Gn,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let K=o;K&&Gf(K,n,jn)}},[ae,Ve,Ue,Ye,Se,fe,Ae,Xe,at,ft,ut,ye,$e,_t,bt,vt,Vt,Ke,Qt,Nt,he,Et,mt,Lt,Oi,fi,Yi,on,di,mi,Ri,xt,Gn,n,h,T,I,j,se,$,ri,Si,Bi,_n,Jt,Gi,re,dt,ji,p,S,E,Y,Be,We,qe,Je,Ne,ve,X,ke,He,xe,et,Yt,pi,ln,_i,Fi,ti,Ai,hi,Hi,gi,ii,Tt,Ot,bi,vi,Ft,ni,oi,Bt,At,Mi,Zt,rn,sn,Wt,yi,zi,ki,li,Ht,Gt,Xt,Zi,Ci,un,qi,jt,Qe,zt,ze,xi,ai,wn,en,ie,wt,Mn,On,xn,$n,eo,to,po,ee,mn,Ro,Do,Wn,_o,jn,No,we,ne,Ze,ht,gt,Di,Ki,$i,Wi,si,o,r,l,a,s,f,g,w,C,b,Q,G,le,V,A,J,x,N,te,Oo,pl,Fo,Hn,Ho,ho,go,zo]}var ac=class extends q{constructor(e){super(),U(this,e,q5,z5,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},F5,[-1,-1,-1,-1,-1,-1,-1])}},fp=ac;var Mp=require("@vkontakte/videoplayer-core"),Bo=require("@vkontakte/videoplayer-shared");var al=require("@vkontakte/videoplayer-shared"),dp=i=>{if(!(0,al.isIOS)(!0))return!1;let e=i.device===al.CurrentClientDevice.iPad||window?.screen.width>700,t=(0,al.getIOSVersion)();return!e||e&&!!t&&t<16};function U5(i){Ce(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,f,p,h,v,g,S,w=W("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",T;return{c(){e=P("div"),n=O(),o=P("div"),r=P("div"),l=P("div"),s=O(),u=P("div"),p=O(),h=P("div"),g=O(),S=P("p"),T=Re(w),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",v="triangle "+i[0]+" svelte-nhq2ld"),c(r,"class","triangles-wrapper svelte-nhq2ld"),c(S,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(C,b){k(C,e,b),k(C,n,b),k(C,o,b),m(o,r),m(r,l),m(r,s),m(r,u),m(r,p),m(r,h),m(o,g),m(o,S),m(S,T)},p(C,b){b&1&&t!==(t="semicircle "+C[0]+" svelte-nhq2ld")&&c(e,"class",t),b&1&&a!==(a="triangle "+C[0]+" svelte-nhq2ld")&&c(l,"class",a),b&1&&f!==(f="triangle "+C[0]+" svelte-nhq2ld")&&c(u,"class",f),b&1&&v!==(v="triangle "+C[0]+" svelte-nhq2ld")&&c(h,"class",v),b&2&&w!==(w=W("doubletap_seek_step",{seconds:C[1].toFixed(0)})+"")&&je(T,w)},d(C){C&&(y(e),y(n),y(o))}}}function K5(i){let e,t,n,o,r=i[2]&&mp(i);return{c(){e=P("div"),r&&r.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){k(l,e,a),r&&r.m(e,null),n||(o=pe(e,"click",rt(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")&&c(e,"class",t)},i:me,o:me,d(l){l&&y(e),r&&r.d(),n=!1,o()}}}function W5(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,f=()=>{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 Ln(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=p=>{"side"in p&&t(0,n=p.side),"seekStep"in p&&t(1,o=p.seekStep),"handleSingleFirstClick"in p&&t(4,r=p.handleSingleFirstClick),"handleSecondClick"in p&&t(5,l=p.handleSecondClick)},[n,o,a,f,r,l]}var uc=class extends q{constructor(e){super(),U(this,e,W5,K5,z,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},U5)}},cc=uc;function G5(i,e,t){let{playNextVideo:n}=e;return St(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var fc=class extends q{constructor(e){super(),U(this,e,G5,null,z,{playNextVideo:0})}},pp=fc;var{window:j5}=bo;function Q5(i){Ce(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 cc({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=lt()},m(l,a){B(e,l,a),k(l,t,a),r&&r.m(l,a),k(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&&(ue(),_(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&&(y(t),y(n)),R(e,l),r&&r.d(l)}}}function hp(i){let e,t;return e=new cc({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){let e,t;return e=new ns({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{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[0]&8&&(r.startTime=n[3]?.startTime),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 bp(i){let e,t;return e=new os({}),{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 sr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),F(e,"hidden",i[34]!=="ads")},m(o,r){k(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&&y(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 kp(i){let e,t;return e=new xr({}),{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 wp(i){let e,t,n;return t=new xl({props:{"aria-label":W("video360")}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){k(o,e,r),B(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&y(e),R(t)}}}function Cp(i){let e,t;return e=new es({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 $r({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 ts({}),{c(){e=P("div"),D(t.$$.fragment)},m(l,a){k(l,e,a),B(t,e,null),n=!0,o||(r=pe(e,"click",rt(i[101])),o=!0)},p:me,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&y(e),R(t),o=!1,r()}}}function Ip(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 Jr({props:r}),_e.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 Tp(i){let e,t;return e=new hr({}),{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 mr({}),{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 Ap(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b;e=new is({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&_p(i),Q=i[34]==="waitingLive"&&gp(i),j=i[34]==="waitingRecord"&&bp(i),G=i[6]&&i[21]&&vp(i),le=i[41]&&i[17]&&i[18]&&yp(i),se=i[49]&&kp(i),V=i[50]&&wp(i),A=i[35]&&Cp(i),$=i[52].value!=="off"&&Sp(i),J=i[33]&&Pp(i),x=i[21]&&Ip(i);S=new ur({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let N=i[38]&&Tp(i),te=i[57]&&Ep(i);return{c(){D(e.$$.fragment),t=O(),I&&I.c(),o=O(),Q&&Q.c(),r=O(),j&&j.c(),l=O(),G&&G.c(),a=O(),le&&le.c(),s=O(),se&&se.c(),u=O(),V&&V.c(),f=O(),A&&A.c(),p=O(),$&&$.c(),h=O(),J&&J.c(),v=O(),x&&x.c(),g=O(),D(S.$$.fragment),w=O(),N&&N.c(),T=O(),te&&te.c(),C=lt()},m(E,Y){B(e,E,Y),k(E,t,Y),I&&I.m(E,Y),k(E,o,Y),Q&&Q.m(E,Y),k(E,r,Y),j&&j.m(E,Y),k(E,l,Y),G&&G.m(E,Y),k(E,a,Y),le&&le.m(E,Y),k(E,s,Y),se&&se.m(E,Y),k(E,u,Y),V&&V.m(E,Y),k(E,f,Y),A&&A.m(E,Y),k(E,p,Y),$&&$.m(E,Y),k(E,h,Y),J&&J.m(E,Y),k(E,v,Y),x&&x.m(E,Y),k(E,g,Y),B(S,E,Y),k(E,w,Y),N&&N.m(E,Y),k(E,T,Y),te&&te.m(E,Y),k(E,C,Y),b=!0},p(E,Y){let Be={};Y[0]&16|Y[1]&12&&(Be.hidden=E[34]!=="thumb"||E[33]||E[89]&&E[4]),Y[0]&4&&(Be.thumbUrl=E[2]),Y[0]&268435456&&(Be.startVideo=E[28]),e.$set(Be),Y[0]&32|Y[1]&65536&&(n=E[5]&&E[78]&&!E[47].has("TIMELINE")),n?I?(I.p(E,Y),Y[0]&32|Y[1]&65536&&d(I,1)):(I=_p(E),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),E[34]==="waitingLive"?Q?(Q.p(E,Y),Y[1]&8&&d(Q,1)):(Q=gp(E),Q.c(),d(Q,1),Q.m(r.parentNode,r)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),E[34]==="waitingRecord"?j?Y[1]&8&&d(j,1):(j=bp(E),j.c(),d(j,1),j.m(l.parentNode,l)):j&&(ue(),_(j,1,1,()=>{j=null}),ce()),E[6]&&E[21]?G?(G.p(E,Y),Y[0]&2097216&&d(G,1)):(G=vp(E),G.c(),d(G,1),G.m(a.parentNode,a)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),E[41]&&E[17]&&E[18]?le?(le.p(E,Y),Y[0]&393216|Y[1]&1024&&d(le,1)):(le=yp(E),le.c(),d(le,1),le.m(s.parentNode,s)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),E[49]?se?Y[1]&262144&&d(se,1):(se=kp(E),se.c(),d(se,1),se.m(u.parentNode,u)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),E[50]?V?(V.p(E,Y),Y[1]&524288&&d(V,1)):(V=wp(E),V.c(),d(V,1),V.m(f.parentNode,f)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),E[35]?A?(A.p(E,Y),Y[1]&16&&d(A,1)):(A=Cp(E),A.c(),d(A,1),A.m(p.parentNode,p)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),E[52].value!=="off"?$?($.p(E,Y),Y[1]&2097152&&d($,1)):($=Sp(E),$.c(),d($,1),$.m(h.parentNode,h)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),E[33]?J?(J.p(E,Y),Y[1]&4&&d(J,1)):(J=Pp(E),J.c(),d(J,1),J.m(v.parentNode,v)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),E[21]?x?(x.p(E,Y),Y[0]&2097152&&d(x,1)):(x=Ip(E),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(ue(),_(x,1,1,()=>{x=null}),ce());let We={};Y[1]&16777216&&(We.isLive=E[55]),Y[1]&512&&(We.isHidden=!E[40]),Y[1]&33554432&&(We.isPlaying=E[56]),Y[1]&8192&&(We.position=E[44]),Y[1]&4096&&(We.duration=E[43]),S.$set(We),E[38]?N?Y[1]&128&&d(N,1):(N=Tp(E),N.c(),d(N,1),N.m(T.parentNode,T)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),E[57]?te?Y[1]&67108864&&d(te,1):(te=Ep(E),te.c(),d(te,1),te.m(C.parentNode,C)):te&&(ue(),_(te,1,1,()=>{te=null}),ce())},i(E){b||(d(e.$$.fragment,E),d(I),d(Q),d(j),d(G),d(le),d(se),d(V),d(A),d($),d(J),d(x),d(S.$$.fragment,E),d(N),d(te),b=!0)},o(E){_(e.$$.fragment,E),_(I),_(Q),_(j),_(G),_(le),_(se),_(V),_(A),_($),_(J),_(x),_(S.$$.fragment,E),_(N),_(te),b=!1},d(E){E&&(y(t),y(o),y(r),y(l),y(a),y(s),y(u),y(f),y(p),y(h),y(v),y(g),y(w),y(T),y(C)),R(e,E),I&&I.d(E),Q&&Q.d(E),j&&j.d(E),G&&G.d(E),le&&le.d(E),se&&se.d(E),V&&V.d(E),A&&A.d(E),$&&$.d(E),J&&J.d(E),x&&x.d(E),R(S,E),N&&N.d(E),te&&te.d(E)}}}function Y5(i){let e,t,n,o,r,l=i[46],a,s,u,f,p,h,v=Ap(i);return{c(){e=P("div"),t=P("div"),n=P("div"),r=O(),v.c(),a=O(),s=P("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),F(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-1jy89ut"),F(t,"hidden",i[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-1jy89ut"),c(e,"role","region"),c(e,"aria-label",u=W("aria_label_video_player")),c(e,"tabindex","-1")},m(g,S){k(g,e,S),m(e,t),m(t,n),i[129](n),m(e,r),v.m(e,null),m(e,a),m(e,s),i[133](s),i[134](e),f=!0,p||(h=[pe(j5,"blur",i[99]),pe(t,"click",Ct(i[100])),pe(e,"click",i[102],!0),pe(e,"focusin",i[103],!0)],p=!0)},p(g,S){(!f||S[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||S[0]&2)&&F(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||S[1]&8)&&F(t,"hidden",g[34]!=="video"),S[1]&32768&&z(l,l=g[46])?(ue(),_(v,1,1,me),ce(),v=Ap(g),v.c(),d(v,1),v.m(e,a)):v.p(g,S)},i(g){f||(d(v),f=!0)},o(g){_(v),f=!1},d(g){g&&y(e),i[129](null),v.d(g),i[133](null),i[134](null),p=!1,nt(h)}}}function Z5(i,e,t){let n,o,r,l,a,s,u,f,p,h,v,g,S,w,T,C,b,I,Q,j,G,le,se,V,A,$,J,x,N,te,E,Y,Be,We,qe,Je,Ne,{store:ve}=e,{uiConfig:X}=e,{thumbUrl:ke}=e,{videoContainer:He}=e,{interactiveContainer:xe}=e,{live:et}=e,{autoplay:we}=e,{canRewindLive:Ve}=e,{showAds:Ue}=e,{adsSlotId:Ye=void 0}=e,{adsParams:ae=void 0}=e,{adsPreviewParam:ne=void 0}=e,{duration:Se=void 0}=e,{logoClickable:fe}=e,{logoHidden:Ae}=e,{logoTargetUrl:Xe=""}=e,{showNextPrevButtons:at=!1}=e,{nextButtonActive:ft=!1}=e,{prevButtonActive:ut=!1}=e,{endScreenVideoTitle:ye=void 0}=e,{endScreenVideoThumb:$e=void 0}=e,{isOneVideoPlaylist:_t=!1}=e,{supportLink:bt}=e,{outerContainerRef:vt=void 0}=e,{showMiniTimer:Vt=!1}=e,{fullScreenTarget:Ke=void 0}=e,{playerStarted:Qt=!1}=e,{playNextVideo:Nt=Bo.noop}=e,{playPrevVideo:he=Bo.noop}=e,{repeatPlaylist:Et=Bo.noop}=e,{seekToInteractive:Ze}=e,{toggleGraph:mt}=e,{playPrevChapter:ht}=e,{firstStart:gt}=e,{seekTime:Lt}=e,Oi=ve.getLogger().createComponentLog("Root component"),fi=ve.interfaceLanguage$;H(i,fi,ie=>t(46,$=ie));let Yi=ve.state.playbackState$;H(i,Yi,ie=>t(126,se=ie));let on=ve.ads.playbackState;H(i,on,ie=>t(127,V=ie));let di=ve.state.positionWithScrubbing$;H(i,di,ie=>t(44,a=ie));let mi=ve.state.duration$;H(i,mi,ie=>t(43,l=ie));let Ei=ve.playerPhase;H(i,Ei,ie=>t(34,Q=ie));let Yt=ve.ui.isFullscreen;H(i,Yt,ie=>t(141,u=ie));let pi=ve.ui.controlsVisible;H(i,pi,ie=>t(30,o=ie));let ln=ve.ui.interactiveHideMobileControls;H(i,ln,ie=>t(118,v=ie));let _i=ve.ui.settingsMenuVisible;H(i,_i,ie=>t(117,n=ie));let Fi=ve.ui.scrubbingInProgress;H(i,Fi,ie=>t(119,S=ie));let ti=ve.ui.debugPanelVisible;H(i,ti,ie=>t(57,Ne=ie));let Ai=ve.state.isLoaderVisible;H(i,Ai,ie=>t(128,A=ie));let hi=ve.state.isEnded$;H(i,hi,ie=>t(121,C=ie));let Hi=ve.state.chromecastConnected$;H(i,Hi,ie=>t(35,j=ie));let gi=ve.state.chromecastDeviceName$;H(i,gi,ie=>t(51,E=ie));let ii=ve.ads.postrollPassed;H(i,ii,ie=>t(122,b=ie));let Tt=ve.ui.mobileUnmuteButtonExpanded,Ot=ve.ui.mobileUnmuteButtonVisible,bi=ve.state.isLive$;H(i,bi,ie=>t(55,qe=ie));let vi=ve.state.isPlaying$;H(i,vi,ie=>t(56,Je=ie));let Ft=ve.state.isActiveLive$;H(i,Ft,ie=>t(48,x=ie));let ni=ve.state.isRewindableLive$,oi=ve.state.crashed$;H(i,oi,ie=>t(33,T=ie));let Bt=ve.webApi.pictureInPictureApi,At=ve.state.videoSize$;H(i,At,ie=>t(142,p=ie));let Kt=ve.state.currentSubtitle$;H(i,Kt,ie=>t(52,Y=ie));let Mi=ve.state.currentSubtitleCaptions$;H(i,Mi,ie=>t(53,Be=ie));let Zt=ve.state.duration$;H(i,Zt,ie=>t(54,We=ie));let rn=ve.state.graphIsOpened$;H(i,rn,ie=>t(125,le=ie));let sn=ve.ui.playerSize;H(i,sn,ie=>t(31,f=ie));let Wt=ve.ui.is3DVideo;H(i,Wt,ie=>t(49,N=ie));let yi=ve.ui.icon3DVideoVisible;H(i,yi,ie=>t(50,te=ie));let zi=ve.ui.rotateAlpha;H(i,zi,ie=>t(32,g=ie));let ki=ve.state.isInteractive,li=ve.state.isInteractiveTime$;H(i,li,ie=>t(120,w=ie));let Ht=ve.state.isInteractiveExpectation$;H(i,Ht,ie=>t(124,G=ie));let Gt=ve.state.hasInteractiveBranches,wi=ve.ui.controls.disabledControls$;H(i,wi,ie=>t(47,J=ie));let Xt=ve.ui.touched;H(i,Xt,ie=>t(123,I=ie));let Zi=ve.ui.clientInfo$;H(i,Zi,ie=>t(140,s=ie));let Ci=ve.ui.overlayContainer$,an=ve.state.isFirstBytes$;H(i,an,ie=>t(139,r=ie));let un=ve.actions.internal.closeSettingsMenu,Xi=ve.callbacks?.onDisabledPlayPrevChapterClick,qi=ve.callbacks?.onDisabledSeekToInteractiveClick,Vi,jt,ri,Si,Li,Ji,Pi,Bi=De(!1);H(i,Bi,ie=>t(45,h=ie));let Ri,Qe=!1,Ui,zt=!1,ze,xi=!0,Di,Ki,$i=!1,Wi;Bt?.setContext(bl());let _n=ie=>{clearTimeout(Si),ie&&(Ot.set(!0),Tt.set(!0),Si=window.setTimeout(()=>{Tt.set(!1)},X.controls.collapseMobileUnmute),ki||xt(X.controls.hideTimeoutMobile))};ve.setUiCallbacks({onStarted:_n});let Jt=()=>{window.clearTimeout(ri),t(112,Qe=!1),v&&ln.set(!1)},xt=ie=>{Jt(),t(112,Qe=!0),ri=window.setTimeout(()=>t(112,Qe=!1),ie);let wt=ie-100;Ri=window.setTimeout(()=>{h&&Bi.set(!1)},wt>0?wt:ie)},Gi=Wt.subscribe(ie=>{yi.set(ie),ie&&(window.clearTimeout(Li),Li=window.setTimeout(()=>yi.set(!1),X.controls.hide360IconTimeout))}),si=async()=>{let ie=lo();if(ie){xt(X.controls.hideTimeoutFullscreen);try{await Bt?.remove()}catch(wt){Oi({message:String(wt)})}try{let wt=p?.width&&p?.height?p:f;await Ef(wt)}catch(wt){Oi({message:String(wt)})}}Yt.set(ie),ve.getAdmanWrapper().setFullscreen(ie),u?ve.callbacks?.onFullscreenEnter?.():ve.callbacks?.onFullscreenExit?.()},re=ie=>{let wt=ie;sn.set({width:wt.target.width,height:wt.target.height})};St(()=>(lr(si),To(Bt)&&(Bt?.assignPlayerContainer(Vi),Bt?.registryExternalEventHandlers({resize:re})),t(39,xi=!dp(s)),xe&&He.parentElement?.insertBefore(xe,He.nextSibling),()=>{window.clearTimeout(ri),window.clearTimeout(Ri),window.clearTimeout(Si),window.clearTimeout(Li),Gi(),Bt?.dispose(),rr(si)}));let dt=ie=>{let wt=a+(ie==="forward"?1:-1)*X.controls.seekStepMobile/1e3;wt<0?wt=0:wt>l&&(wt=l-1),t(114,zt=!0),Lt(wt)},ai=async()=>{if(lo())await or(document),Oi({message:"exit fullscreen"});else{if(Oi({message:"request fullscreen"}),(0,Bo.isIOS)()&&!r)return;let ie=(0,Bo.isIOS)()||!vt?Vi:vt,wt=ie.getRootNode(),Mn=wt instanceof ShadowRoot?wt.host:wt,On=Ke instanceof HTMLElement&&Ke.contains(Mn),Fn=X.allowChangingFullscreenTarget&&Ke&&On?Ke:ie;await nr(Fn)}},ui=()=>{un()},$t=()=>{if(n){ui();return}if(!Qt){gt(),xt(X.controls.hideTimeoutCursor);return}t(114,zt=!1),o?Jt():xt(X.controls.hideTimeoutMobile)},ji=()=>{if(n){ui();return}},Tn=()=>{Xt.set(!0)},yn=()=>{ki||(Bi.set(!0),xt(X.controls.hideTimeoutCursor))},hn=ie=>{Xi&&(Xi(ie),xt(X.controls.hideTimeoutMobile))},Rt=ie=>{qi&&(qi(ie),xt(X.controls.hideTimeoutMobile))};function kn(ie){_e[ie?"unshift":"push"](()=>{He=ie,t(0,He)})}let Nn=()=>dt("backward"),En=()=>dt("forward");function An(ie){jt=ie,t(37,jt)}function wn(ie){_e[ie?"unshift":"push"](()=>{Pi=ie,t(29,Pi)})}function en(ie){_e[ie?"unshift":"push"](()=>{Vi=ie,t(36,Vi)})}return i.$$set=ie=>{"store"in ie&&t(106,ve=ie.store),"uiConfig"in ie&&t(1,X=ie.uiConfig),"thumbUrl"in ie&&t(2,ke=ie.thumbUrl),"videoContainer"in ie&&t(0,He=ie.videoContainer),"interactiveContainer"in ie&&t(107,xe=ie.interactiveContainer),"live"in ie&&t(3,et=ie.live),"autoplay"in ie&&t(4,we=ie.autoplay),"canRewindLive"in ie&&t(5,Ve=ie.canRewindLive),"showAds"in ie&&t(6,Ue=ie.showAds),"adsSlotId"in ie&&t(7,Ye=ie.adsSlotId),"adsParams"in ie&&t(8,ae=ie.adsParams),"adsPreviewParam"in ie&&t(9,ne=ie.adsPreviewParam),"duration"in ie&&t(10,Se=ie.duration),"logoClickable"in ie&&t(11,fe=ie.logoClickable),"logoHidden"in ie&&t(12,Ae=ie.logoHidden),"logoTargetUrl"in ie&&t(13,Xe=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,at=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,ft=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,ut=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ye=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,$e=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,_t=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,bt=ie.supportLink),"outerContainerRef"in ie&&t(108,vt=ie.outerContainerRef),"showMiniTimer"in ie&&t(109,Vt=ie.showMiniTimer),"fullScreenTarget"in ie&&t(110,Ke=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Qt=ie.playerStarted),"playNextVideo"in ie&&t(22,Nt=ie.playNextVideo),"playPrevVideo"in ie&&t(23,he=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,Et=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,Ze=ie.seekToInteractive),"toggleGraph"in ie&&t(26,mt=ie.toggleGraph),"playPrevChapter"in ie&&t(27,ht=ie.playPrevChapter),"firstStart"in ie&&t(28,gt=ie.firstStart),"seekTime"in ie&&t(111,Lt=ie.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,Ji=(Q==="video"&&A||Q==="ads"&&V==="inactive")&&!T);if(i.$$.dirty[0]&536870912)e:Ci.set(Pi);if(i.$$.dirty[4]&4)e:t(113,Ui=se!==Mp.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,ze=le||v||!Qe&&(C&&!!Gt||Ui&&G));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:pi.set((Ui||n||S||j||Qe&&!zt)&&!ze&&Q==="video"&&!T);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,Di=X.features.thumbTimer&&Vt&&Q==="video"&&!o&&!T&&!ki&&(X.hideThumbTimerAfterTouch&&!I||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Ki=(Ue&&b||!Ue)&&C&&!T);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!S&&$i&&!w&&xt(X.controls.hideTimeoutMobile),t(116,$i=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,Wi=He&&g%180?f.height/f.width:1)},[He,X,ke,et,we,Ve,Ue,Ye,ae,ne,Se,fe,Ae,Xe,at,ft,ut,ye,$e,_t,bt,Qt,Nt,he,Et,Ze,mt,ht,gt,Pi,o,f,g,T,Q,j,Vi,jt,Ji,xi,Di,Ki,Wi,l,a,h,$,J,x,N,te,E,Y,Be,We,qe,Je,Ne,fi,Yi,on,di,mi,Ei,Yt,pi,ln,_i,Fi,ti,Ai,hi,Hi,gi,ii,bi,vi,Ft,ni,oi,At,Kt,Mi,Zt,rn,sn,Wt,yi,zi,ki,li,Ht,wi,Xt,Zi,an,Bi,dt,ai,ui,$t,ji,Tn,yn,hn,Rt,ve,xe,vt,Vt,Ke,Lt,Qe,Ui,zt,ze,$i,n,v,S,w,C,b,I,G,le,se,V,A,kn,Nn,En,An,wn,en]}var dc=class extends q{constructor(e){super(),U(this,e,Z5,Y5,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},Q5,[-1,-1,-1,-1,-1,-1])}},Vp=dc;function X5(i){Ce(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 I5(i){let e,t;return{c(){e=I("div"),t=Re(i[0]),c(e,"class","title svelte-1bcvcf2"),z(e,"hidden",i[1])},m(n,o){C(n,e,o),m(e,t)},p(n,[o]){o&1&&Ge(t,n[0]),o&2&&z(e,"hidden",n[1])},i:me,o:me,d(n){n&&w(e)}}}function T5(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var oc=class extends U{constructor(e){super(),K(this,e,T5,I5,q,{title:0,isHidden:1},P5)}},q0=oc;function E5(i){ke(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 U0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=Re(i[0]),o=F(),l=I("span"),l.textContent=`${j("waiting_live_day_value")}`,r=F(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&1&&Ge(n,s[0])},d(s){s&&(w(e),w(r),w(a))}}}function K0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=Re(i[1]),o=F(),l=I("span"),l.textContent=`${j("waiting_live_hour_value")}`,r=F(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&2&&Ge(n,s[1])},d(s){s&&(w(e),w(r),w(a))}}}function j0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=Re(i[2]),o=F(),l=I("span"),l.textContent=`${j("waiting_live_minute_value")}`,r=F(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&4&&Ge(n,s[2])},d(s){s&&(w(e),w(r),w(a))}}}function W0(i){let e,t,n,o,l;return{c(){e=I("div"),t=I("span"),n=Re(i[3]),o=F(),l=I("span"),l.textContent=`${j("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){C(r,e,a),m(e,t),m(t,n),m(e,o),m(e,l)},p(r,a){a&8&&Ge(n,r[3])},d(r){r&&w(e)}}}function A5(i){let e,t,n,o,l=i[0]&&U0(i),r=i[1]&&K0(i),a=i[2]&&j0(i),s=i[3]&&W0(i);return{c(){e=I("div"),l&&l.c(),t=F(),r&&r.c(),n=F(),a&&a.c(),o=F(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){C(u,e,f),l&&l.m(e,null),m(e,t),r&&r.m(e,null),m(e,n),a&&a.m(e,null),m(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=U0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=K0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=j0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=W0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:me,o:me,d(u){u&&w(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function M5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=b=>String(b).padStart(2,"0"),p=b=>{let g=Math.floor(b/86400);g&&(b-=g*86400,t(0,l=f(g)));let S=Math.floor(b/3600);t(1,r=f(S));let y=Math.floor(b/60)%60;t(2,a=f(y));let E=b%60;t(3,s=f(E))},h=()=>{let b=Math.floor(Date.now()/1e3),g=n-b;p(g),g>=1?u=requestAnimationFrame(h):o()};return Tt(()=>{u=requestAnimationFrame(h)}),Rn(()=>{cancelAnimationFrame(u)}),i.$$set=b=>{"startTime"in b&&t(4,n=b.startTime),"onTimerOver"in b&&t(5,o=b.onTimerOver)},[l,r,a,s,n,o]}var lc=class extends U{constructor(e){super(),K(this,e,M5,A5,q,{startTime:4,onTimerOver:5},E5)}},G0=lc;function V5(i){let e,t,n,o,l,r,a=i[2].default,s=Pe(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]],f={};for(let p=0;p<u.length;p+=1)f=ne(f,u[p]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),l=D("path"),c(t,"fill","#fefffe"),c(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"),ci(t,"opacity",".965"),c(n,"fill","#fefffe"),c(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"),ci(n,"opacity",".965"),c(o,"fill","#fefffe"),c(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"),ci(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"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"),ci(l,"opacity",".986"),ge(e,f)},m(p,h){C(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Te(s,a,p,p[1],r?Ie(a,p[1],h,null):Ee(p[1]),null),ge(e,f=Me(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&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&w(e),s&&s.d(p)}}}function L5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var rc=class extends U{constructor(e){super(),K(this,e,L5,V5,q,{})}},Q0=rc;function R5(i){ke(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 B5(i){let e,t,n,o,l;return o=new G0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=F(),B(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){C(r,e,a),m(e,t),m(e,n),L(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){_(o.$$.fragment,r),l=!1},d(r){r&&w(e),R(o)}}}function D5(i){let e,t,n,o,l,r;return n=new Q0({}),{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=F(),l=I("span"),l.textContent=`${j("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){C(a,e,s),m(e,t),L(n,t,null),m(e,o),m(e,l),r=!0},p:me,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){_(n.$$.fragment,a),r=!1},d(a){a&&w(e),R(n)}}}function N5(i){let e,t,n,o,l,r=[D5,B5],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[t](i),{c(){e=I("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){C(u,e,f),a[t].m(e,null),l=!0},p(u,[f]){let p=t;t=s(u,f),t===p?a[t].p(u,f):(ue(),_(a[p],1,1,()=>{a[p]=null}),ce(),n=a[t],n?n.p(u,f):(n=a[t]=r[t](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){_(n),l=!1},d(u){u&&w(e),a[t].d()}}}function O5(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,l=a.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var sc=class extends U{constructor(e){super(),K(this,e,O5,N5,q,{thumbUrl:0,startTime:1},R5)}},os=sc;function F5(i){ke(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 H5(i){let e,t;return{c(){e=I("div"),t=I("p"),t.textContent=`${j("waiting_record_title")}`,c(t,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){C(n,e,o),m(e,t)},p:me,i:me,o:me,d(n){n&&w(e)}}}var ac=class extends U{constructor(e){super(),K(this,e,null,H5,q,{},F5)}},ls=ac;var{window:z5}=yo;function q5(i){ke(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 Z0(i){let e,t;return e=new os({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(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 ls({}),{c(){B(e.$$.fragment)},m(n,o){L(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 J0(i){let e,t,n;return t=new ar({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),z(e,"hidden",i[38]!=="ads")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&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&&w(e),R(t)}}}function x0(i){let e,t;return e=new g1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $0(i){let e,t;return e=new q0({props:{title:i[2],isHidden:!i[36]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(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 $r({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function tp(i){let e,t,n;return t=new $l({props:{"aria-label":j("video360")}}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function ip(i){let e,t;return e=new ts({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(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 es({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&16777216&&(l.captions=n[55]),o[1]&33554432&&(l.position=n[56]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(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,o,l;return t=new is({}),{c(){e=I("div"),B(t.$$.fragment)},m(r,a){C(r,e,a),L(t,e,null),n=!0,o||(l=[de(e,"contextmenu",It(i[108])),de(e,"click",rt(i[119]))],o=!0)},p:me,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&w(e),R(t),o=!1,et(l)}}}function lp(i){let e,t,n;function o(r){i[157](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[57]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:fp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[156],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new xr({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="waitingLive"||r[38]==="waitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&67108864&&(s.canRewindLive=r[6]&&r[57]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[156]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function rp(i){let e,t;return e=new gr({}),{c(){B(e.$$.fragment)},m(n,o){L(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;return e=new E1({}),{c(){B(e.$$.fragment)},m(n,o){L(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 ap(i){let e,t;return e=new pr({}),{c(){B(e.$$.fragment)},m(n,o){L(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 up(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re;e=new ns({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&Z0(i),V=i[38]==="waitingRecord"&&X0(i),M=i[7]&&i[22]&&J0(i),$=i[31]&&i[18]&&i[19]&&x0(i),J=i[44]&&$0(i),x=i[49]&&ep(i),N=i[52]&&tp(i),ie=i[39]&&ip(i),A=i[54].value!=="off"&&np(i),Y=i[37]&&op(i),Le=i[22]&&lp(i);g=new cr({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),y=new L0({props:{data:i[103]}});function Ke(X){i[159](X)}let ze={supportLink:i[21],returnFocus:i[158],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(ze.menuElementRef=i[32]),k=new $f({props:ze}),pe.push(()=>Fe(k,"menuElementRef",Ke));let Ye=i[42]&&rp(i),De=i[62]&&sp(i),ye=i[63]&&ap(i);return{c(){B(e.$$.fragment),t=F(),ae&&ae.c(),n=F(),V&&V.c(),o=F(),M&&M.c(),l=F(),$&&$.c(),r=F(),J&&J.c(),a=F(),x&&x.c(),s=F(),N&&N.c(),u=F(),ie&&ie.c(),f=F(),A&&A.c(),p=F(),Y&&Y.c(),h=F(),Le&&Le.c(),b=F(),B(g.$$.fragment),S=F(),B(y.$$.fragment),E=F(),B(k.$$.fragment),T=F(),Ye&&Ye.c(),W=F(),De&&De.c(),Q=F(),ye&&ye.c(),G=lt()},m(X,ve){L(e,X,ve),C(X,t,ve),ae&&ae.m(X,ve),C(X,n,ve),V&&V.m(X,ve),C(X,o,ve),M&&M.m(X,ve),C(X,l,ve),$&&$.m(X,ve),C(X,r,ve),J&&J.m(X,ve),C(X,a,ve),x&&x.m(X,ve),C(X,s,ve),N&&N.m(X,ve),C(X,u,ve),ie&&ie.m(X,ve),C(X,f,ve),A&&A.m(X,ve),C(X,p,ve),Y&&Y.m(X,ve),C(X,h,ve),Le&&Le.m(X,ve),C(X,b,ve),L(g,X,ve),C(X,S,ve),L(y,X,ve),C(X,E,ve),L(k,X,ve),C(X,T,ve),Ye&&Ye.m(X,ve),C(X,W,ve),De&&De.m(X,ve),C(X,Q,ve),ye&&ye.m(X,ve),C(X,G,ve),re=!0},p(X,ve){let Ne={};ve[0]&32|ve[1]&192&&(Ne.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),ve[0]&8&&(Ne.thumbUrl=X[3]),ve[0]&536870912&&(Ne.startVideo=X[29]),e.$set(Ne),X[38]==="waitingLive"?ae?(ae.p(X,ve),ve[1]&128&&d(ae,1)):(ae=Z0(X),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),X[38]==="waitingRecord"?V?ve[1]&128&&d(V,1):(V=X0(X),V.c(),d(V,1),V.m(o.parentNode,o)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),X[7]&&X[22]?M?(M.p(X,ve),ve[0]&4194432&&d(M,1)):(M=J0(X),M.c(),d(M,1),M.m(l.parentNode,l)):M&&(ue(),_(M,1,1,()=>{M=null}),ce()),X[31]&&X[18]&&X[19]?$?($.p(X,ve),ve[0]&786432|ve[1]&1&&d($,1)):($=x0(X),$.c(),d($,1),$.m(r.parentNode,r)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),X[44]?J?(J.p(X,ve),ve[1]&8192&&d(J,1)):(J=$0(X),J.c(),d(J,1),J.m(a.parentNode,a)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),X[49]?x?(x.p(X,ve),ve[1]&262144&&d(x,1)):(x=ep(X),x.c(),d(x,1),x.m(s.parentNode,s)):x&&(ue(),_(x,1,1,()=>{x=null}),ce()),X[52]?N?(N.p(X,ve),ve[1]&2097152&&d(N,1)):(N=tp(X),N.c(),d(N,1),N.m(u.parentNode,u)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),X[39]?ie?(ie.p(X,ve),ve[1]&256&&d(ie,1)):(ie=ip(X),ie.c(),d(ie,1),ie.m(f.parentNode,f)):ie&&(ue(),_(ie,1,1,()=>{ie=null}),ce()),X[54].value!=="off"?A?(A.p(X,ve),ve[1]&8388608&&d(A,1)):(A=np(X),A.c(),d(A,1),A.m(p.parentNode,p)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),X[37]?Y?(Y.p(X,ve),ve[1]&64&&d(Y,1)):(Y=op(X),Y.c(),d(Y,1),Y.m(h.parentNode,h)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),X[22]?Le?(Le.p(X,ve),ve[0]&4194304&&d(Le,1)):(Le=lp(X),Le.c(),d(Le,1),Le.m(b.parentNode,b)):Le&&(ue(),_(Le,1,1,()=>{Le=null}),ce());let Ze={};ve[1]&134217728&&(Ze.isLive=X[58]),ve[1]&4096&&(Ze.isHidden=!X[43]),ve[1]&268435456&&(Ze.isPlaying=X[59]),ve[1]&33554432&&(Ze.position=X[56]),ve[1]&536870912&&(Ze.duration=X[60]),g.$set(Ze);let Je={};ve[0]&2097152&&(Je.supportLink=X[21]),ve[1]&131072&&(Je.returnFocus=X[158]),ve[1]&4&&(Je.visible=X[33]),ve[1]&512&&(Je.playerContainerRef=X[40]),ve[1]&1024&&(Je.controlsContainerRef=X[41]),ve[1]&1073741824&&(Je.position=X[61]),!v&&ve[1]&2&&(v=!0,Je.menuElementRef=X[32],Oe(()=>v=!1)),k.$set(Je),X[42]?Ye?ve[1]&2048&&d(Ye,1):(Ye=rp(X),Ye.c(),d(Ye,1),Ye.m(W.parentNode,W)):Ye&&(ue(),_(Ye,1,1,()=>{Ye=null}),ce()),X[62]?De?ve[2]&1&&d(De,1):(De=sp(X),De.c(),d(De,1),De.m(Q.parentNode,Q)):De&&(ue(),_(De,1,1,()=>{De=null}),ce()),X[63]?ye?ve[2]&2&&d(ye,1):(ye=ap(X),ye.c(),d(ye,1),ye.m(G.parentNode,G)):ye&&(ue(),_(ye,1,1,()=>{ye=null}),ce())},i(X){re||(d(e.$$.fragment,X),d(ae),d(V),d(M),d($),d(J),d(x),d(N),d(ie),d(A),d(Y),d(Le),d(g.$$.fragment,X),d(y.$$.fragment,X),d(k.$$.fragment,X),d(Ye),d(De),d(ye),re=!0)},o(X){_(e.$$.fragment,X),_(ae),_(V),_(M),_($),_(J),_(x),_(N),_(ie),_(A),_(Y),_(Le),_(g.$$.fragment,X),_(y.$$.fragment,X),_(k.$$.fragment,X),_(Ye),_(De),_(ye),re=!1},d(X){X&&(w(t),w(n),w(o),w(l),w(r),w(a),w(s),w(u),w(f),w(p),w(h),w(b),w(S),w(E),w(T),w(W),w(Q),w(G)),R(e,X),ae&&ae.d(X),V&&V.d(X),M&&M.d(X),$&&$.d(X),J&&J.d(X),x&&x.d(X),N&&N.d(X),ie&&ie.d(X),A&&A.d(X),Y&&Y.d(X),Le&&Le.d(X),R(g,X),R(y,X),R(k,X),Ye&&Ye.d(X),De&&De.d(X),ye&&ye.d(X)}}}function U5(i){let e,t,n,o,l=i[51],r,a,s,u,f=up(i);return{c(){e=I("div"),t=I("div"),o=F(),f.c(),r=lt(),c(t,"class","video-container svelte-1o4wf3x"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),z(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),z(e,"hidden",i[38]!=="video"),z(e,"nocursor",i[45])},m(p,h){C(p,e,h),m(e,t),i[155](t),C(p,o,h),f.m(p,h),C(p,r,h),a=!0,s||(u=[de(e,"contextmenu",It(i[108])),de(e,"mousedown",It(i[113])),de(e,"mouseup",It(i[114])),de(e,"click",It(i[116])),de(e,"dblclick",It(i[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(t,"style",n),(!a||h[0]&2)&&z(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&z(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&z(e,"nocursor",p[45]),h[1]&1048576&&q(l,l=p[51])?(ue(),_(f,1,1,me),ce(),f=up(p),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(p,h)},i(p){a||(d(f),a=!0)},o(p){_(f),a=!1},d(p){p&&(w(e),w(o),w(r)),i[155](null),f.d(p),s=!1,et(u)}}}function K5(i){let e,t,n,o,l,r,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:[U5]},$$scope:{ctx:i}};return t=new v1({props:s}),i[160](t),{c(){e=I("div"),B(t.$$.fragment),n=F(),o=I("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){C(u,e,f),L(t,e,null),m(e,n),m(e,o),i[161](o),i[162](e),l=!0,r||(a=[de(z5,"blur",i[107]),de(e,"mouseenter",i[109]),de(e,"mouseleave",i[111]),de(e,"mousemove",i[112]),de(e,"click",i[120],!0),de(e,"focusin",i[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&4&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){_(t.$$.fragment,u),l=!1},d(u){u&&w(e),i[160](null),R(t),i[161](null),i[162](null),r=!1,et(a)}}}var fp=!0;function uc(i){return i?i.offsetTop+uc(i.offsetParent):0}function dp(i){return i?i.offsetLeft+dp(i.offsetParent):0}function j5(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,M,$,J,x,N,ie,A,Y,Le,Ke,ze,Ye,De,ye,X,ve,Ne,Ze,Je,{store:we}=e,{uiConfig:Ve}=e,{title:qe}=e,{thumbUrl:Qe}=e,{videoContainer:le}=e,{interactiveContainer:oe}=e,{live:Ce}=e,{autoplay:fe}=e,{canRewindLive:Ae}=e,{showAds:We}=e,{adsSlotId:at=void 0}=e,{adsParams:ut=void 0}=e,{adsPreviewParam:st=void 0}=e,{duration:be=void 0}=e,{logoClickable:mt}=e,{logoHidden:it}=e,{logoTargetUrl:ft=""}=e,{showNextPrevButtons:yt=!1}=e,{nextButtonActive:Mt=!1}=e,{prevButtonActive:je=!1}=e,{endScreenVideoTitle:Bt=void 0}=e,{endScreenVideoThumb:Dt=void 0}=e,{isOneVideoPlaylist:Nt=!1}=e,{supportLink:ni}=e,{shadowRootContainer:tt=void 0}=e,{outerContainerRef:pt=void 0}=e,{playerStarted:_e=!1}=e,{fullScreenTarget:ht=void 0}=e,{showMiniTimer:St=!1}=e,{playNextVideo:Xt=rs.noop}=e,{playPrevVideo:bt=rs.noop}=e,{repeatPlaylist:jt=rs.noop}=e,{seekToInteractive:Jt}=e,{toggleGraph:di}=e,{playPrevChapter:Ii}=e,{firstStart:Hi}=e,Wt=we.getLogger().createComponentLog("Root component"),mi=we.interfaceLanguage$;H(i,mi,P=>t(51,A=P));let ln=we.state.playbackState$;H(i,ln,P=>t(152,x=P));let oi=we.ads.playbackState;H(i,oi,P=>t(153,N=P));let zi=we.state.positionWithScrubbing$;H(i,zi,P=>t(56,Ye=P));let li=we.state.duration$;H(i,li,P=>t(60,ve=P));let qi=we.playerPhase;H(i,qi,P=>t(38,ae=P));let pi=we.ui.isFullscreen;H(i,pi,P=>t(142,g=P));let Ti=we.ui.controlsVisible;H(i,Ti,P=>t(36,T=P));let _i=we.ui.settingsMenuVisible;H(i,_i,P=>t(140,s=P));let Ei=we.ui.scrubbingInProgress;H(i,Ei,P=>t(144,k=P));let Pt=we.ui.contextMenu.visible$;H(i,Pt,P=>t(33,n=P));let Ot=we.ui.debugPanelVisible;H(i,Ot,P=>t(63,Je=P));let Ai=we.state.isLoaderVisible;H(i,Ai,P=>t(154,ie=P));let hi=we.state.isEnded$;H(i,hi,P=>t(141,f=P));let zt=we.state.chromecastConnected$;H(i,zt,P=>t(39,$=P));let xt=we.state.chromecastDeviceName$;H(i,xt,P=>t(53,Le=P));let gi=we.ads.postrollPassed;H(i,gi,P=>t(147,G=P));let ri=we.state.isLive$;H(i,ri,P=>t(58,ye=P));let Ct=we.state.isPlaying$;H(i,Ct,P=>t(59,X=P));let Mi=we.state.crashed$;H(i,Mi,P=>t(37,Q=P));let Gt=we.webApi.pictureInPictureApi,$t=we.state.currentSubtitle$;H(i,$t,P=>t(54,Ke=P));let rn=we.state.currentSubtitleCaptions$;H(i,rn,P=>t(55,ze=P));let fn=we.state.duration$;H(i,fn,P=>t(57,De=P));let ei=we.state.graphIsOpened$;H(i,ei,P=>t(148,re=P));let Vi=we.ui.playerSize;H(i,Vi,P=>t(34,h=P));let Li=we.ui.is3DVideo;H(i,Li,P=>t(49,p=P));let bi=we.ui.icon3DVideoVisible;H(i,bi,P=>t(52,Y=P));let vi=we.ui.rotateAlpha;H(i,vi,P=>t(35,E=P));let Vt=we.state.isInteractive,qt=we.state.isInteractiveTime$;H(i,qt,P=>t(145,v=P));let yi=we.state.isInteractiveExpectation$;H(i,yi,P=>t(151,J=P));let Ui=we.state.hasInteractiveBranches,Ri=we.ui.touched;H(i,Ri,P=>t(149,V=P));let si=we.ui.modals.hotKeyMap.data;H(i,si,P=>t(169,u=P));let xi=we.ui.modals.hotKeyMap.show;H(i,xi,P=>t(62,Ze=P));let sn=we.ui.overlayContainer$,$i=we.ui.controls.interactiveTimeIndicator;H(i,$i,P=>t(170,b=P));let an=we.state.showInteractiveTimeIndicator,Ki=we.ui.contextMenu.position$;H(i,Ki,P=>t(61,Ne=P));let Qt=we.actions.internal.closeSettingsMenu,{fakeIsPlaying$:ji}=Tn();H(i,ji,P=>t(143,y=P));let Yt,Bi,Wi,Gi,wi;si.set(Mf());let Di,Xe,ti=Be(!1);H(i,ti,P=>t(50,S=P));let ai,He=Be(!1);H(i,He,P=>t(150,M=P));let Qi=Be(),Yi=Be(!1);H(i,Yi,P=>t(146,W=P));let en=!1,Zi=!1,Ni,tn,ui,dn,Rt,Oi,se=!1,dt,Ut=!1,{toggle:Xi}=ji,ki=!1,Ci=null,nn;Gt?.setContext(bl());let Cn=()=>{fe&&!Vt&&Kt(Ve.controls.hideTimeout)};we.setUiCallbacks({onStarted:Cn});let gn=()=>{window.clearTimeout(Wi),He.set(!1)},bn=()=>{window.clearTimeout(Gi),Qi.set(null)},Kt=P=>{gn(),He.set(!0),Wi=window.setTimeout(()=>He.set(!1),P);let Se=P-100;ai=window.setTimeout(()=>{S&&ti.set(!1)},Se>0?Se:P)},On=(P,Se)=>{bn(),Qi.set(Se),Gi=window.setTimeout(()=>Qi.set(null),P)},Fn=Li.subscribe(P=>{bi.set(P),P&&(window.clearTimeout(wi),wi=window.setTimeout(()=>bi.set(!1),Ve.controls.hide360IconTimeout))}),Sn=async()=>{let P=ro();if(P){let Se=kl(),Ue=vn();P=Se===Ue||Se===tt}if(P){Kt(Ve.controls.hideTimeoutFullscreen);try{await Gt?.remove()}catch(Se){Wt({message:String(Se)})}}pi.set(P),we.getAdmanWrapper().setFullscreen(P),g?we.callbacks?.onFullscreenEnter?.():we.callbacks?.onFullscreenExit?.()},Mn=P=>{let Se=P;Vi.set({width:Se.target.width,height:Se.target.height})};Tt(()=>(rr(Sn),Ao(Gt)&&(Gt?.assignPlayerContainer(Yt),Gt?.registryExternalEventHandlers({resize:Mn})),oe&&le.parentElement?.insertBefore(oe,le.nextSibling),()=>{window.clearTimeout(Wi),window.clearTimeout(ai),window.clearTimeout(Gi),window.clearTimeout(wi),Fn(),Gt?.dispose(),sr(Sn)}));let vn=()=>{let P=pt??Yt,Se=P.getRootNode(),Ue=Se instanceof ShadowRoot?Se.host:Se,nt=ht instanceof HTMLElement&&ht.contains(Ue);return Ve.allowChangingFullscreenTarget&&ht&&nt?ht:P},Vn=async()=>{ro()?(await lr(document),Wt({message:"exit fullscreen"})):(Wt({message:"request fullscreen"}),await or(vn()))},mn=()=>{Qt(),Pt.set(!1)},te=P=>{Pt.set(!0),Ki.set({left:P.clientX,top:P.clientY})};function vt(){Yi.set(!0),Vt||Kt(Ve.controls.hideTimeoutCursor)}function Pn(){Vt||(ti.set(!0),Kt(Ve.controls.hideTimeoutCursor))}function Hn(){Yi.set(!1),t(132,Zi=!1),t(131,en=!1),ki=!1,we.actions.internal.releaseCamera()}function Jn(P){if(b&&an){let Se=P.currentTarget,Ue=uc(Se),nt=dp(Se),Zt=P.pageX-nt,ii=P.pageY-Ue,{left:Ft,bottom:_n,right:qn}=b,no=qn-Ft;return Zt>=Ft-no&&ii<=_n+no}}function xn(P){if(Yt){let Se=uc(P.currentTarget),Ue=h.height,nt=P.pageY-Se;if(Jn(P)){t(132,Zi=!1);return}nt<40?t(132,Zi=!0):nt>Ue-40?t(131,en=!0):(t(132,Zi=!1),s||t(131,en=!1))}}function $n(P){xn(P),tn||Kt(Ve.controls.hideTimeoutCursor),p&&ki&&Ci&&we.actions.internal.moveCameraFocusPX(Ci.clientX-P.clientX,Ci.clientY-P.clientY,P.timeStamp-Ci.timeStamp),Ci=P}let eo=P=>{P.button===0&&(ki=!0,we.actions.internal.holdCamera()),Kt(Ve.controls.hideTimeoutCursor)},_o=P=>{P.button===0&&(Ci=P,ki=!1,we.actions.internal.releaseCamera()),Kt(Ve.controls.hideTimeoutCursor)},ee=()=>{fp&&(Wt({message:"double click on video"}),Vn(),Kt(Ve.controls.hideTimeoutCursor))},pn=()=>{if(n||s){mn();return}if(!(f&&!Ui)){if(Ut)return Xi();if(nn?.focus(),!_e){Hi(),Kt(Ve.controls.hideTimeoutCursor);return}we.actions.internal.togglePlay(),Kt(Ve.controls.hideTimeoutCursor)}},No=P=>{mn(),Ri.set(!0),Kt(Ve.controls.hideTimeout),P&&On(Ve.controls.hideHotKeyHelpers,P)},Oo=()=>{mn(),we.callbacks?.onOpenHotKeyMap?we.callbacks?.onOpenHotKeyMap(u):xi.update(P=>!P)},ho=()=>{if(n||s){mn();return}},Fo=()=>{Ri.set(!0)},go=we.ui.contextMenu.openedByBtnKeyboard$;H(i,go,P=>t(139,a=P));let to=we.ui.contextMenu.btnRef$;H(i,to,P=>t(138,r=P));let Gn,io=we.ui.contextMenu.openedByHotKey$;H(i,io,P=>t(137,l=P));let Ho=we.ui.contextMenu.lastActiveElem$;H(i,Ho,P=>t(136,o=P));function zo(P){pe[P?"unshift":"push"](()=>{le=P,t(0,le)})}let zn=()=>nn?.focus();function qo(P){Bi=P,t(41,Bi)}let bo=()=>nn?.focus();function vo(P){Gn=P,t(32,Gn)}function Uo(P){pe[P?"unshift":"push"](()=>{nn=P,t(48,nn)})}function gt(P){pe[P?"unshift":"push"](()=>{Xe=P,t(30,Xe)})}function O(P){pe[P?"unshift":"push"](()=>{Yt=P,t(40,Yt)})}return i.$$set=P=>{"store"in P&&t(125,we=P.store),"uiConfig"in P&&t(1,Ve=P.uiConfig),"title"in P&&t(2,qe=P.title),"thumbUrl"in P&&t(3,Qe=P.thumbUrl),"videoContainer"in P&&t(0,le=P.videoContainer),"interactiveContainer"in P&&t(126,oe=P.interactiveContainer),"live"in P&&t(4,Ce=P.live),"autoplay"in P&&t(5,fe=P.autoplay),"canRewindLive"in P&&t(6,Ae=P.canRewindLive),"showAds"in P&&t(7,We=P.showAds),"adsSlotId"in P&&t(8,at=P.adsSlotId),"adsParams"in P&&t(9,ut=P.adsParams),"adsPreviewParam"in P&&t(10,st=P.adsPreviewParam),"duration"in P&&t(11,be=P.duration),"logoClickable"in P&&t(12,mt=P.logoClickable),"logoHidden"in P&&t(13,it=P.logoHidden),"logoTargetUrl"in P&&t(14,ft=P.logoTargetUrl),"showNextPrevButtons"in P&&t(15,yt=P.showNextPrevButtons),"nextButtonActive"in P&&t(16,Mt=P.nextButtonActive),"prevButtonActive"in P&&t(17,je=P.prevButtonActive),"endScreenVideoTitle"in P&&t(18,Bt=P.endScreenVideoTitle),"endScreenVideoThumb"in P&&t(19,Dt=P.endScreenVideoThumb),"isOneVideoPlaylist"in P&&t(20,Nt=P.isOneVideoPlaylist),"supportLink"in P&&t(21,ni=P.supportLink),"shadowRootContainer"in P&&t(127,tt=P.shadowRootContainer),"outerContainerRef"in P&&t(128,pt=P.outerContainerRef),"playerStarted"in P&&t(22,_e=P.playerStarted),"fullScreenTarget"in P&&t(129,ht=P.fullScreenTarget),"showMiniTimer"in P&&t(130,St=P.showMiniTimer),"playNextVideo"in P&&t(23,Xt=P.playNextVideo),"playPrevVideo"in P&&t(24,bt=P.playPrevVideo),"repeatPlaylist"in P&&t(25,jt=P.repeatPlaylist),"seekToInteractive"in P&&t(26,Jt=P.seekToInteractive),"toggleGraph"in P&&t(27,di=P.toggleGraph),"playPrevChapter"in P&&t(28,Ii=P.playPrevChapter),"firstStart"in P&&t(29,Hi=P.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1610612736)e:t(42,Di=(ae==="video"&&ie||ae==="ads"&&N==="inactive")&&!Q);if(i.$$.dirty[0]&1073741824)e:sn.set(Xe);if(i.$$.dirty[4]&268435456)e:t(133,Ni=x!==cp.PlaybackState.PLAYING);if(i.$$.dirty[4]&136381312)e:t(134,tn=v&&!s&&!(en||Zi)&&!(Ni&&!J));if(i.$$.dirty[1]&448|i.$$.dirty[4]&68224512)e:Ti.set((Ni||s||k||$||M)&&!tn&&(ae==="video"||ae==="ads")&&!Q);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&33554496)e:t(43,ui=Ve.features.thumbTimer&&St&&ae==="video"&&!T&&!Q&&!Vt&&(Ve.hideThumbTimerAfterTouch&&!V||!Ve.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&17039360)e:t(44,dn=ae==="video"&&!re&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&8519680)e:t(31,Rt=(We&&G||!We)&&f&&!Q);if(i.$$.dirty[1]&33|i.$$.dirty[4]&6291456)e:t(45,Oi=W&&!(T||Rt)&&!v);if(i.$$.dirty[0]&2|i.$$.dirty[4]&3147776)e:!k&&se&&!v&&Kt(Ve.controls.hideTimeoutCursor),t(135,se=k);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,dt=le&&E%180?h.height/h.width:1);if(i.$$.dirty[4]&524288)e:t(47,Ut=y!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768)e:Lo(Gn,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&16384)e:{let P=r;P&&tl(P,n,go)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&8192)e:Lo(Gn,n,l);if(i.$$.dirty[1]&4|i.$$.dirty[4]&4096)e:{let P=o;P&&Gf(P,n,io)}},[le,Ve,qe,Qe,Ce,fe,Ae,We,at,ut,st,be,mt,it,ft,yt,Mt,je,Bt,Dt,Nt,ni,_e,Xt,bt,jt,Jt,di,Ii,Hi,Xe,Rt,Gn,n,h,E,T,Q,ae,$,Yt,Bi,Di,ui,dn,Oi,dt,Ut,nn,p,S,A,Y,Le,Ke,ze,Ye,De,ye,X,ve,Ne,Ze,Je,mi,ln,oi,zi,li,qi,pi,Ti,_i,Ei,Pt,Ot,Ai,hi,zt,xt,gi,ri,Ct,Mi,$t,rn,fn,ei,Vi,Li,bi,vi,Vt,qt,yi,Ri,si,xi,$i,Ki,ji,ti,He,Qi,Yi,Xi,Vn,mn,te,vt,Pn,Hn,$n,eo,_o,ee,pn,No,Oo,ho,Fo,go,to,io,Ho,we,oe,tt,pt,ht,St,en,Zi,Ni,tn,se,o,l,r,a,s,f,g,y,k,v,W,G,re,V,M,J,x,N,ie,zo,zn,qo,bo,vo,Uo,gt,O]}var cc=class extends U{constructor(e){super(),K(this,e,j5,K5,q,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},q5,[-1,-1,-1,-1,-1,-1,-1])}},mp=cc;var Lp=require("@vkontakte/videoplayer-core"),Do=require("@vkontakte/videoplayer-shared");var cl=require("@vkontakte/videoplayer-shared"),pp=i=>{if(!(0,cl.isIOS)(!0))return!1;let e=i.device===cl.CurrentClientDevice.iPad||window?.screen.width>700,t=(0,cl.getIOSVersion)();return!e||e&&!!t&&t<16};function W5(i){ke(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 _p(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y=j("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",E;return{c(){e=I("div"),n=F(),o=I("div"),l=I("div"),r=I("div"),s=F(),u=I("div"),p=F(),h=I("div"),g=F(),S=I("p"),E=Re(y),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",b="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(S,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(k,v){C(k,e,v),C(k,n,v),C(k,o,v),m(o,l),m(l,r),m(l,s),m(l,u),m(l,p),m(l,h),m(o,g),m(o,S),m(S,E)},p(k,v){v&1&&t!==(t="semicircle "+k[0]+" svelte-nhq2ld")&&c(e,"class",t),v&1&&a!==(a="triangle "+k[0]+" svelte-nhq2ld")&&c(r,"class",a),v&1&&f!==(f="triangle "+k[0]+" svelte-nhq2ld")&&c(u,"class",f),v&1&&b!==(b="triangle "+k[0]+" svelte-nhq2ld")&&c(h,"class",b),v&2&&y!==(y=j("doubletap_seek_step",{seconds:k[1].toFixed(0)})+"")&&Ge(E,y)},d(k){k&&(w(e),w(n),w(o))}}}function G5(i){let e,t,n,o,l=i[2]&&_p(i);return{c(){e=I("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){C(r,e,a),l&&l.m(e,null),n||(o=de(e,"click",rt(i[3]())),n=!0)},p(r,[a]){r[2]?l?l.p(r,a):(l=_p(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:me,o:me,d(r){r&&w(e),l&&l.d(),n=!1,o()}}}function Q5(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{l(),h=0},300):(window.clearTimeout(s),h=0,r(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Rn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=p=>{"side"in p&&t(0,n=p.side),"seekStep"in p&&t(1,o=p.seekStep),"handleSingleFirstClick"in p&&t(4,l=p.handleSingleFirstClick),"handleSecondClick"in p&&t(5,r=p.handleSecondClick)},[n,o,a,f,l,r]}var fc=class extends U{constructor(e){super(),K(this,e,Q5,G5,q,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},W5)}},dc=fc;function Y5(i,e,t){let{playNextVideo:n}=e;return Tt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var mc=class extends U{constructor(e){super(),K(this,e,Y5,null,q,{playNextVideo:0})}},hp=mc;var{window:Z5}=yo;function X5(i){ke(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 gp(i){let e,t,n,o;e=new dc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}});let l=!i[48]&&bp(i);return{c(){B(e.$$.fragment),t=F(),l&&l.c(),n=lt()},m(r,a){L(e,r,a),C(r,t,a),l&&l.m(r,a),C(r,n,a),o=!0},p(r,a){let s={};a[0]&2&&(s.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(s),r[48]?l&&(ue(),_(l,1,1,()=>{l=null}),ce()):l?(l.p(r,a),a[1]&131072&&d(l,1)):(l=bp(r),l.c(),d(l,1),l.m(n.parentNode,n))},i(r){o||(d(e.$$.fragment,r),d(l),o=!0)},o(r){_(e.$$.fragment,r),_(l),o=!1},d(r){r&&(w(t),w(n)),R(e,r),l&&l.d(r)}}}function bp(i){let e,t;return e=new dc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function vp(i){let e,t;return e=new os({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function yp(i){let e,t;return e=new ls({}),{c(){B(e.$$.fragment)},m(n,o){L(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 wp(i){let e,t,n;return t=new ar({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),z(e,"hidden",i[34]!=="ads")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&8)&&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&&w(e),R(t)}}}function kp(i){let e,t;return e=new hp({props:{playNextVideo:i[22]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},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 $r({}),{c(){B(e.$$.fragment)},m(n,o){L(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 $l({props:{"aria-label":j("video360")}}),{c(){e=I("div"),B(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function Pp(i){let e,t;return e=new ts({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&1048576&&(l.chromecastDeviceName=n[51]),e.$set(l)},i(n){t||(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 es({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&4194304&&(l.captions=n[53]),o[1]&8192&&(l.position=n[44]),o[1]&1&&(l.playerSize=n[31]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tp(i){let e,t,n,o,l;return t=new is({}),{c(){e=I("div"),B(t.$$.fragment)},m(r,a){C(r,e,a),L(t,e,null),n=!0,o||(l=de(e,"click",rt(i[101])),o=!0)},p:me,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&w(e),R(t),o=!1,l()}}}function Ep(i){let e,t,n;function o(r){i[133](r)}let l={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[54]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[37]!==void 0&&(l.controlsElementRef=i[37]),e=new xr({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.bottomHidden=r[34]==="thumb"||r[34]==="waitingLive"||r[34]==="waitingRecord"||r[34]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&16384&&(s.bottomNoSmooth=r[45]),a[1]&8&&(s.isAds=r[34]==="ads"),a[0]&32|a[1]&8388608&&(s.canRewindLive=r[5]&&r[54]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&256&&(s.customFullscreenSupported=r[39]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=r[37],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Ap(i){let e,t;return e=new gr({}),{c(){B(e.$$.fragment)},m(n,o){L(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;return e=new pr({}),{c(){B(e.$$.fragment)},m(n,o){L(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=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v;e=new ns({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let T=n&&gp(i),W=i[34]==="waitingLive"&&vp(i),Q=i[34]==="waitingRecord"&&yp(i),G=i[6]&&i[21]&&wp(i),re=i[41]&&i[17]&&i[18]&&kp(i),ae=i[49]&&Cp(i),V=i[50]&&Sp(i),M=i[35]&&Pp(i),$=i[52].value!=="off"&&Ip(i),J=i[33]&&Tp(i),x=i[21]&&Ep(i);S=new cr({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let N=i[38]&&Ap(i),ie=i[57]&&Mp(i);return{c(){B(e.$$.fragment),t=F(),T&&T.c(),o=F(),W&&W.c(),l=F(),Q&&Q.c(),r=F(),G&&G.c(),a=F(),re&&re.c(),s=F(),ae&&ae.c(),u=F(),V&&V.c(),f=F(),M&&M.c(),p=F(),$&&$.c(),h=F(),J&&J.c(),b=F(),x&&x.c(),g=F(),B(S.$$.fragment),y=F(),N&&N.c(),E=F(),ie&&ie.c(),k=lt()},m(A,Y){L(e,A,Y),C(A,t,Y),T&&T.m(A,Y),C(A,o,Y),W&&W.m(A,Y),C(A,l,Y),Q&&Q.m(A,Y),C(A,r,Y),G&&G.m(A,Y),C(A,a,Y),re&&re.m(A,Y),C(A,s,Y),ae&&ae.m(A,Y),C(A,u,Y),V&&V.m(A,Y),C(A,f,Y),M&&M.m(A,Y),C(A,p,Y),$&&$.m(A,Y),C(A,h,Y),J&&J.m(A,Y),C(A,b,Y),x&&x.m(A,Y),C(A,g,Y),L(S,A,Y),C(A,y,Y),N&&N.m(A,Y),C(A,E,Y),ie&&ie.m(A,Y),C(A,k,Y),v=!0},p(A,Y){let Le={};Y[0]&16|Y[1]&12&&(Le.hidden=A[34]!=="thumb"||A[33]||A[89]&&A[4]),Y[0]&4&&(Le.thumbUrl=A[2]),Y[0]&268435456&&(Le.startVideo=A[28]),e.$set(Le),Y[0]&32|Y[1]&65536&&(n=A[5]&&A[78]&&!A[47].has("TIMELINE")),n?T?(T.p(A,Y),Y[0]&32|Y[1]&65536&&d(T,1)):(T=gp(A),T.c(),d(T,1),T.m(o.parentNode,o)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),A[34]==="waitingLive"?W?(W.p(A,Y),Y[1]&8&&d(W,1)):(W=vp(A),W.c(),d(W,1),W.m(l.parentNode,l)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),A[34]==="waitingRecord"?Q?Y[1]&8&&d(Q,1):(Q=yp(A),Q.c(),d(Q,1),Q.m(r.parentNode,r)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),A[6]&&A[21]?G?(G.p(A,Y),Y[0]&2097216&&d(G,1)):(G=wp(A),G.c(),d(G,1),G.m(a.parentNode,a)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),A[41]&&A[17]&&A[18]?re?(re.p(A,Y),Y[0]&393216|Y[1]&1024&&d(re,1)):(re=kp(A),re.c(),d(re,1),re.m(s.parentNode,s)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),A[49]?ae?Y[1]&262144&&d(ae,1):(ae=Cp(A),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),A[50]?V?(V.p(A,Y),Y[1]&524288&&d(V,1)):(V=Sp(A),V.c(),d(V,1),V.m(f.parentNode,f)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),A[35]?M?(M.p(A,Y),Y[1]&16&&d(M,1)):(M=Pp(A),M.c(),d(M,1),M.m(p.parentNode,p)):M&&(ue(),_(M,1,1,()=>{M=null}),ce()),A[52].value!=="off"?$?($.p(A,Y),Y[1]&2097152&&d($,1)):($=Ip(A),$.c(),d($,1),$.m(h.parentNode,h)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),A[33]?J?(J.p(A,Y),Y[1]&4&&d(J,1)):(J=Tp(A),J.c(),d(J,1),J.m(b.parentNode,b)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),A[21]?x?(x.p(A,Y),Y[0]&2097152&&d(x,1)):(x=Ep(A),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(ue(),_(x,1,1,()=>{x=null}),ce());let Ke={};Y[1]&16777216&&(Ke.isLive=A[55]),Y[1]&512&&(Ke.isHidden=!A[40]),Y[1]&33554432&&(Ke.isPlaying=A[56]),Y[1]&8192&&(Ke.position=A[44]),Y[1]&4096&&(Ke.duration=A[43]),S.$set(Ke),A[38]?N?Y[1]&128&&d(N,1):(N=Ap(A),N.c(),d(N,1),N.m(E.parentNode,E)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),A[57]?ie?Y[1]&67108864&&d(ie,1):(ie=Mp(A),ie.c(),d(ie,1),ie.m(k.parentNode,k)):ie&&(ue(),_(ie,1,1,()=>{ie=null}),ce())},i(A){v||(d(e.$$.fragment,A),d(T),d(W),d(Q),d(G),d(re),d(ae),d(V),d(M),d($),d(J),d(x),d(S.$$.fragment,A),d(N),d(ie),v=!0)},o(A){_(e.$$.fragment,A),_(T),_(W),_(Q),_(G),_(re),_(ae),_(V),_(M),_($),_(J),_(x),_(S.$$.fragment,A),_(N),_(ie),v=!1},d(A){A&&(w(t),w(o),w(l),w(r),w(a),w(s),w(u),w(f),w(p),w(h),w(b),w(g),w(y),w(E),w(k)),R(e,A),T&&T.d(A),W&&W.d(A),Q&&Q.d(A),G&&G.d(A),re&&re.d(A),ae&&ae.d(A),V&&V.d(A),M&&M.d(A),$&&$.d(A),J&&J.d(A),x&&x.d(A),R(S,A),N&&N.d(A),ie&&ie.d(A)}}}function J5(i){let e,t,n,o,l,r=i[46],a,s,u,f,p,h,b=Vp(i);return{c(){e=I("div"),t=I("div"),n=I("div"),l=F(),b.c(),a=F(),s=I("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),z(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-1jy89ut"),z(t,"hidden",i[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-1jy89ut"),c(e,"role","region"),c(e,"aria-label",u=j("aria_label_video_player")),c(e,"tabindex","-1")},m(g,S){C(g,e,S),m(e,t),m(t,n),i[130](n),m(e,l),b.m(e,null),m(e,a),m(e,s),i[134](s),i[135](e),f=!0,p||(h=[de(Z5,"blur",i[99]),de(t,"click",It(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],p=!0)},p(g,S){(!f||S[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||S[0]&2)&&z(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||S[1]&8)&&z(t,"hidden",g[34]!=="video"),S[1]&32768&&q(r,r=g[46])?(ue(),_(b,1,1,me),ce(),b=Vp(g),b.c(),d(b,1),b.m(e,a)):b.p(g,S)},i(g){f||(d(b),f=!0)},o(g){_(b),f=!1},d(g){g&&w(e),i[130](null),b.d(g),i[134](null),i[135](null),p=!1,et(h)}}}function x5(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,E,k,v,T,W,Q,G,re,ae,V,M,$,J,x,N,ie,A,Y,Le,Ke,ze,Ye,De,{store:ye}=e,{uiConfig:X}=e,{thumbUrl:ve}=e,{videoContainer:Ne}=e,{interactiveContainer:Ze}=e,{live:Je}=e,{autoplay:we}=e,{canRewindLive:Ve}=e,{showAds:qe}=e,{adsSlotId:Qe=void 0}=e,{adsParams:le=void 0}=e,{adsPreviewParam:oe=void 0}=e,{duration:Ce=void 0}=e,{logoClickable:fe}=e,{logoHidden:Ae}=e,{logoTargetUrl:We=""}=e,{showNextPrevButtons:at=!1}=e,{nextButtonActive:ut=!1}=e,{prevButtonActive:st=!1}=e,{endScreenVideoTitle:be=void 0}=e,{endScreenVideoThumb:mt=void 0}=e,{isOneVideoPlaylist:it=!1}=e,{supportLink:ft}=e,{shadowRootContainer:yt=void 0}=e,{outerContainerRef:Mt=void 0}=e,{showMiniTimer:je=!1}=e,{fullScreenTarget:Bt=void 0}=e,{playerStarted:Dt=!1}=e,{playNextVideo:Nt=Do.noop}=e,{playPrevVideo:ni=Do.noop}=e,{repeatPlaylist:tt=Do.noop}=e,{seekToInteractive:pt}=e,{toggleGraph:_e}=e,{playPrevChapter:ht}=e,{firstStart:St}=e,{seekTime:Xt}=e,bt=ye.getLogger().createComponentLog("Root component"),jt=ye.interfaceLanguage$;H(i,jt,te=>t(46,$=te));let Jt=ye.state.playbackState$;H(i,Jt,te=>t(127,ae=te));let di=ye.ads.playbackState;H(i,di,te=>t(128,V=te));let Ii=ye.state.positionWithScrubbing$;H(i,Ii,te=>t(44,a=te));let Hi=ye.state.duration$;H(i,Hi,te=>t(43,r=te));let Wt=ye.playerPhase;H(i,Wt,te=>t(34,W=te));let mi=ye.ui.isFullscreen;H(i,mi,te=>t(142,u=te));let ln=ye.ui.controlsVisible;H(i,ln,te=>t(30,o=te));let oi=ye.ui.interactiveHideMobileControls;H(i,oi,te=>t(119,b=te));let zi=ye.ui.settingsMenuVisible;H(i,zi,te=>t(118,n=te));let li=ye.ui.scrubbingInProgress;H(i,li,te=>t(120,S=te));let qi=ye.ui.debugPanelVisible;H(i,qi,te=>t(57,De=te));let pi=ye.state.isLoaderVisible;H(i,pi,te=>t(129,M=te));let Ti=ye.state.isEnded$;H(i,Ti,te=>t(122,k=te));let _i=ye.state.chromecastConnected$;H(i,_i,te=>t(35,Q=te));let Ei=ye.state.chromecastDeviceName$;H(i,Ei,te=>t(51,A=te));let Pt=ye.ads.postrollPassed;H(i,Pt,te=>t(123,v=te));let Ot=ye.ui.mobileUnmuteButtonExpanded,Ai=ye.ui.mobileUnmuteButtonVisible,hi=ye.state.isLive$;H(i,hi,te=>t(55,ze=te));let zt=ye.state.isPlaying$;H(i,zt,te=>t(56,Ye=te));let xt=ye.state.isActiveLive$;H(i,xt,te=>t(48,x=te));let gi=ye.state.isRewindableLive$,ri=ye.state.crashed$;H(i,ri,te=>t(33,E=te));let Ct=ye.webApi.pictureInPictureApi,Mi=ye.state.videoSize$;H(i,Mi,te=>t(143,p=te));let Gt=ye.state.currentSubtitle$;H(i,Gt,te=>t(52,Y=te));let $t=ye.state.currentSubtitleCaptions$;H(i,$t,te=>t(53,Le=te));let rn=ye.state.duration$;H(i,rn,te=>t(54,Ke=te));let fn=ye.state.graphIsOpened$;H(i,fn,te=>t(126,re=te));let ei=ye.ui.playerSize;H(i,ei,te=>t(31,f=te));let Vi=ye.ui.is3DVideo;H(i,Vi,te=>t(49,N=te));let Li=ye.ui.icon3DVideoVisible;H(i,Li,te=>t(50,ie=te));let bi=ye.ui.rotateAlpha;H(i,bi,te=>t(32,g=te));let vi=ye.state.isInteractive,Vt=ye.state.isInteractiveTime$;H(i,Vt,te=>t(121,y=te));let qt=ye.state.isInteractiveExpectation$;H(i,qt,te=>t(125,G=te));let yi=ye.state.hasInteractiveBranches,Ui=ye.ui.controls.disabledControls$;H(i,Ui,te=>t(47,J=te));let Ri=ye.ui.touched;H(i,Ri,te=>t(124,T=te));let si=ye.ui.clientInfo$;H(i,si,te=>t(141,s=te));let xi=ye.ui.overlayContainer$,sn=ye.state.isFirstBytes$;H(i,sn,te=>t(140,l=te));let $i=ye.actions.internal.closeSettingsMenu,an=ye.callbacks?.onDisabledPlayPrevChapterClick,Ki=ye.callbacks?.onDisabledSeekToInteractiveClick,Qt,ji,Yt,Bi,Wi,Gi,wi,Di=Be(!1);H(i,Di,te=>t(45,h=te));let Xe,ti=!1,ai,He=!1,Qi,Yi=!0,en,Zi,Ni=!1,tn;Ct?.setContext(bl());let ui=te=>{clearTimeout(Bi),te&&(Ai.set(!0),Ot.set(!0),Bi=window.setTimeout(()=>{Ot.set(!1)},X.controls.collapseMobileUnmute),vi||Rt(X.controls.hideTimeoutMobile))};ye.setUiCallbacks({onStarted:ui});let dn=()=>{window.clearTimeout(Yt),t(113,ti=!1),b&&oi.set(!1)},Rt=te=>{dn(),t(113,ti=!0),Yt=window.setTimeout(()=>t(113,ti=!1),te);let vt=te-100;Xe=window.setTimeout(()=>{h&&Di.set(!1)},vt>0?vt:te)},Oi=Vi.subscribe(te=>{Li.set(te),te&&(window.clearTimeout(Wi),Wi=window.setTimeout(()=>Li.set(!1),X.controls.hide360IconTimeout))}),se=async()=>{let te=ro();if(te){let vt=kl(),Pn=Xi();te=vt===Pn||vt===yt}if(te){Rt(X.controls.hideTimeoutFullscreen);try{await Ct?.remove()}catch(vt){bt({message:String(vt)})}try{let vt=p?.width&&p?.height?p:f;await Af(vt)}catch(vt){bt({message:String(vt)})}}mi.set(te),ye.getAdmanWrapper().setFullscreen(te),u?ye.callbacks?.onFullscreenEnter?.():ye.callbacks?.onFullscreenExit?.()},dt=te=>{let vt=te;ei.set({width:vt.target.width,height:vt.target.height})};Tt(()=>(rr(se),Ao(Ct)&&(Ct?.assignPlayerContainer(Qt),Ct?.registryExternalEventHandlers({resize:dt})),t(39,Yi=!pp(s)),Ze&&Ne.parentElement?.insertBefore(Ze,Ne.nextSibling),()=>{window.clearTimeout(Yt),window.clearTimeout(Xe),window.clearTimeout(Bi),window.clearTimeout(Wi),Oi(),Ct?.dispose(),sr(se)}));let Ut=te=>{let vt=a+(te==="forward"?1:-1)*X.controls.seekStepMobile/1e3;vt<0?vt=0:vt>r&&(vt=r-1),t(115,He=!0),Xt(vt)},Xi=()=>{let te=(0,Do.isIOS)()||!Mt?Qt:Mt,vt=te.getRootNode(),Pn=vt instanceof ShadowRoot?vt.host:vt,Hn=Bt instanceof HTMLElement&&Bt.contains(Pn);return X.allowChangingFullscreenTarget&&Bt&&Hn?Bt:te},ki=async()=>{if(ro())await lr(document),bt({message:"exit fullscreen"});else{if(bt({message:"request fullscreen"}),(0,Do.isIOS)()&&!l)return;await or(Xi())}},Ci=()=>{$i()},nn=()=>{if(n){Ci();return}if(!Dt){St(),Rt(X.controls.hideTimeoutCursor);return}t(115,He=!1),o?dn():Rt(X.controls.hideTimeoutMobile)},Cn=()=>{if(n){Ci();return}},gn=()=>{Ri.set(!0)},bn=()=>{vi||(Di.set(!0),Rt(X.controls.hideTimeoutCursor))},Kt=te=>{an&&(an(te),Rt(X.controls.hideTimeoutMobile))},On=te=>{Ki&&(Ki(te),Rt(X.controls.hideTimeoutMobile))};function Fn(te){pe[te?"unshift":"push"](()=>{Ne=te,t(0,Ne)})}let Sn=()=>Ut("backward"),Mn=()=>Ut("forward");function vn(te){ji=te,t(37,ji)}function Vn(te){pe[te?"unshift":"push"](()=>{wi=te,t(29,wi)})}function mn(te){pe[te?"unshift":"push"](()=>{Qt=te,t(36,Qt)})}return i.$$set=te=>{"store"in te&&t(106,ye=te.store),"uiConfig"in te&&t(1,X=te.uiConfig),"thumbUrl"in te&&t(2,ve=te.thumbUrl),"videoContainer"in te&&t(0,Ne=te.videoContainer),"interactiveContainer"in te&&t(107,Ze=te.interactiveContainer),"live"in te&&t(3,Je=te.live),"autoplay"in te&&t(4,we=te.autoplay),"canRewindLive"in te&&t(5,Ve=te.canRewindLive),"showAds"in te&&t(6,qe=te.showAds),"adsSlotId"in te&&t(7,Qe=te.adsSlotId),"adsParams"in te&&t(8,le=te.adsParams),"adsPreviewParam"in te&&t(9,oe=te.adsPreviewParam),"duration"in te&&t(10,Ce=te.duration),"logoClickable"in te&&t(11,fe=te.logoClickable),"logoHidden"in te&&t(12,Ae=te.logoHidden),"logoTargetUrl"in te&&t(13,We=te.logoTargetUrl),"showNextPrevButtons"in te&&t(14,at=te.showNextPrevButtons),"nextButtonActive"in te&&t(15,ut=te.nextButtonActive),"prevButtonActive"in te&&t(16,st=te.prevButtonActive),"endScreenVideoTitle"in te&&t(17,be=te.endScreenVideoTitle),"endScreenVideoThumb"in te&&t(18,mt=te.endScreenVideoThumb),"isOneVideoPlaylist"in te&&t(19,it=te.isOneVideoPlaylist),"supportLink"in te&&t(20,ft=te.supportLink),"shadowRootContainer"in te&&t(108,yt=te.shadowRootContainer),"outerContainerRef"in te&&t(109,Mt=te.outerContainerRef),"showMiniTimer"in te&&t(110,je=te.showMiniTimer),"fullScreenTarget"in te&&t(111,Bt=te.fullScreenTarget),"playerStarted"in te&&t(21,Dt=te.playerStarted),"playNextVideo"in te&&t(22,Nt=te.playNextVideo),"playPrevVideo"in te&&t(23,ni=te.playPrevVideo),"repeatPlaylist"in te&&t(24,tt=te.repeatPlaylist),"seekToInteractive"in te&&t(25,pt=te.seekToInteractive),"toggleGraph"in te&&t(26,_e=te.toggleGraph),"playPrevChapter"in te&&t(27,ht=te.playPrevChapter),"firstStart"in te&&t(28,St=te.firstStart),"seekTime"in te&&t(112,Xt=te.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&48)e:t(38,Gi=(W==="video"&&M||W==="ads"&&V==="inactive")&&!E);if(i.$$.dirty[0]&536870912)e:xi.set(wi);if(i.$$.dirty[4]&8)e:t(114,ai=ae!==Lp.PlaybackState.PLAYING);if(i.$$.dirty[3]&607125504|i.$$.dirty[4]&6)e:t(116,Qi=re||b||!ti&&(k&&!!yi||ai&&G));if(i.$$.dirty[1]&28|i.$$.dirty[3]&183500800)e:ln.set((ai||n||S||Q||ti&&!He)&&!Qi&&W==="video"&&!E);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&131072|i.$$.dirty[4]&1)e:t(40,en=X.features.thumbTimer&&je&&W==="video"&&!o&&!E&&!vi&&(X.hideThumbTimerAfterTouch&&!T||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&1610612736)e:t(41,Zi=(qe&&v||!qe)&&k&&!E);if(i.$$.dirty[0]&2|i.$$.dirty[3]&419430400)e:!S&&Ni&&!y&&Rt(X.controls.hideTimeoutMobile),t(117,Ni=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,tn=Ne&&g%180?f.height/f.width:1)},[Ne,X,ve,Je,we,Ve,qe,Qe,le,oe,Ce,fe,Ae,We,at,ut,st,be,mt,it,ft,Dt,Nt,ni,tt,pt,_e,ht,St,wi,o,f,g,E,W,Q,Qt,ji,Gi,Yi,en,Zi,tn,r,a,h,$,J,x,N,ie,A,Y,Le,Ke,ze,Ye,De,jt,Jt,di,Ii,Hi,Wt,mi,ln,oi,zi,li,qi,pi,Ti,_i,Ei,Pt,hi,zt,xt,gi,ri,Mi,Gt,$t,rn,fn,ei,Vi,Li,bi,vi,Vt,qt,Ui,Ri,si,sn,Di,Ut,ki,Ci,nn,Cn,gn,bn,Kt,On,ye,Ze,yt,Mt,je,Bt,Xt,ti,ai,He,Qi,Ni,n,b,S,y,k,v,T,G,re,ae,V,M,Fn,Sn,Mn,vn,Vn,mn]}var pc=class extends U{constructor(e){super(),K(this,e,x5,J5,q,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:108,outerContainerRef:109,showMiniTimer:110,fullScreenTarget:111,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:112},X5,[-1,-1,-1,-1,-1,-1])}},Rp=pc;function $5(i){ke(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 J5(i){let e,t,n;function o(l){i[58](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 fp({props:r}),_e.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 x5(i){let e,t,n;function o(l){i[57](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 Vp({props:r}),_e.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 $5(i){let e,t,n,o,r=[x5,J5],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=P("div"),n.c(),c(e,"class","root svelte-cghoty")},m(s,u){k(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(ue(),_(l[f],1,1,()=>{l[f]=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&&y(e),l[t].d()}}}function e6(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:f}=e,{subtitles:p}=e,{live:h}=e,{preload:v}=e,{autoplay:g}=e,{volume:S=void 0}=e,{muted:w=void 0}=e,{fromTime:T}=e,{canRewindLive:C}=e,{showAds:b}=e,{adsSlotId:I=void 0}=e,{adsParams:Q=void 0}=e,{adsPreviewParam:j=void 0}=e,{duration:G=void 0}=e,{logoClickable:le}=e,{logoHidden:se}=e,{isMobile:V}=e,{showNextPrevButtons:A=!1}=e,{nextButtonActive:$=!1}=e,{prevButtonActive:J=!1}=e,{endScreenVideoTitle:x=void 0}=e,{endScreenVideoThumb:N=void 0}=e,{isOneVideoPlaylist:te=!1}=e,{supportLink:E}=e,{outerContainerRef:Y=void 0}=e,{fullScreenTarget:Be=void 0}=e,{failoverHosts:We=void 0}=e,{showMiniTimer:qe=!1}=e,{saveRate:Je}=e,{playNextVideo:Ne=Dn.noop}=e,{playPrevVideo:ve=Dn.noop}=e,{repeatPlaylist:X=Dn.noop}=e,{seekToInteractive:ke=Dn.noop}=e,{toggleGraph:He=Dn.noop}=e,{playPrevChapter:xe=Dn.noop}=e,{subscribers:et,stores:we}=r;jc(a);let Ve=Mt(),Ue=a.logoLink,Ye=o.ui.debugPanelVisible,ae=o.ui.playerSize,ne,Se=null,fe=!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}),of(o,we);let Ae=(he=!1)=>{t(33,fe=!0),he?o.actions.external.firstStart(b):o.actions.internal.firstStart(b)};function Xe(he){let Et=n||he;Et&&o.initVideo({container:ne,sources:Et,failoverHosts:We,subtitles:p});let Ze=Dn.safeStorage.get(vl)==="true";Ye.set(Ze),T>0&&o.actions.external.seekTime(T);let mt=V?Ve.volumeDefault:S??Xl()??Ve.volumeDefault,ht=w??gf();if(o.actions.external.setVolume(mt),o.actions.external.setMuted(ht),o.getAdmanWrapper().setInitialVolume(ht?0:mt),Ve.features.trafficSaving){let Lt=vf();Lt&&o.actions.internal.setTrafficSavingEnabled(Lt)}if(Ve.features.saveRate&&Je){let Lt=kf();Lt&&o.actions.internal.setPlaybackRate(Lt)}let gt=pf(o.videoId);gt&&o.actions.internal.setQuality(gt),o.ui.isAutoplay.set(g),g?Ae():v&&Ve.features.preload&&o.actions.internal.preload()}let at=he=>{if(window.ResizeObserver){let Et,Ze;Se=new ResizeObserver((0,Dn.throttleFn)(mt=>{let ht=mt[0];if(ht){if(ht.contentBoxSize){let gt=Array.isArray(ht.contentBoxSize)?ht.contentBoxSize[0]:ht.contentBoxSize;Et=gt.inlineSize,Ze=gt.blockSize}else ht.contentRect&&(Et=ht.contentRect.width,Ze=ht.contentRect.height);ae.set({width:Et,height:Ze})}},300)),Se.observe(he)}ae.set({width:he.clientWidth,height:he.clientHeight})};St(()=>{at(ne);let he=et.map(Ze=>Ze.init({store:o,microStores:we,config:l}));if(h?.status==="upcoming"||h?.status==="waiting"){o.actions.internal.setWaitingLive(!0);return}if((h?.status==="finished"||h?.status==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return Xe(),()=>{Se?.disconnect(),he.forEach(Ze=>Ze.unsubscribe()),o.destroy()}});function ft(){fe?o.actions.external.play():Ae(!0)}function ut(){o.actions.external.pause()}function ye(he){V||o.actions.external.setMuted(he)}function $e(he){V||he>=0&&he<=1&&o.actions.external.setVolume(he)}function _t(he){o.actions.internal.seekTime(he,Lp.SeekAction.UNKNOWN)}function bt(he){o.actions.external.seekEpisodeStartTime(he)}function vt(){o.actions.external.returnFocusToEpisodes()}function Vt(he){o.actions.external.setPlaybackRate(he)}function Ke(he){o.actions.external.setAutoQualityLimits(he)}function Qt(he){ne=he,t(32,ne)}function Nt(he){ne=he,t(32,ne)}return i.$$set=he=>{"sources"in he&&t(37,n=he.sources),"store"in he&&t(0,o=he.store),"microStoresRoot"in he&&t(38,r=he.microStoresRoot),"videoConfig"in he&&t(39,l=he.videoConfig),"uiConfig"in he&&t(40,a=he.uiConfig),"title"in he&&t(1,s=he.title),"thumbUrl"in he&&t(2,u=he.thumbUrl),"interactiveContainer"in he&&t(3,f=he.interactiveContainer),"subtitles"in he&&t(41,p=he.subtitles),"live"in he&&t(4,h=he.live),"preload"in he&&t(42,v=he.preload),"autoplay"in he&&t(5,g=he.autoplay),"volume"in he&&t(43,S=he.volume),"muted"in he&&t(44,w=he.muted),"fromTime"in he&&t(45,T=he.fromTime),"canRewindLive"in he&&t(6,C=he.canRewindLive),"showAds"in he&&t(7,b=he.showAds),"adsSlotId"in he&&t(8,I=he.adsSlotId),"adsParams"in he&&t(9,Q=he.adsParams),"adsPreviewParam"in he&&t(10,j=he.adsPreviewParam),"duration"in he&&t(11,G=he.duration),"logoClickable"in he&&t(12,le=he.logoClickable),"logoHidden"in he&&t(13,se=he.logoHidden),"isMobile"in he&&t(14,V=he.isMobile),"showNextPrevButtons"in he&&t(15,A=he.showNextPrevButtons),"nextButtonActive"in he&&t(16,$=he.nextButtonActive),"prevButtonActive"in he&&t(17,J=he.prevButtonActive),"endScreenVideoTitle"in he&&t(18,x=he.endScreenVideoTitle),"endScreenVideoThumb"in he&&t(19,N=he.endScreenVideoThumb),"isOneVideoPlaylist"in he&&t(20,te=he.isOneVideoPlaylist),"supportLink"in he&&t(21,E=he.supportLink),"outerContainerRef"in he&&t(22,Y=he.outerContainerRef),"fullScreenTarget"in he&&t(23,Be=he.fullScreenTarget),"failoverHosts"in he&&t(46,We=he.failoverHosts),"showMiniTimer"in he&&t(24,qe=he.showMiniTimer),"saveRate"in he&&t(47,Je=he.saveRate),"playNextVideo"in he&&t(25,Ne=he.playNextVideo),"playPrevVideo"in he&&t(26,ve=he.playPrevVideo),"repeatPlaylist"in he&&t(27,X=he.repeatPlaylist),"seekToInteractive"in he&&t(28,ke=he.seekToInteractive),"toggleGraph"in he&&t(29,He=he.toggleGraph),"playPrevChapter"in he&&t(30,xe=he.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:o.ui.isMobile.set(V)},[o,s,u,f,h,g,C,b,I,Q,j,G,le,se,V,A,$,J,x,N,te,E,Y,Be,qe,Ne,ve,X,ke,He,xe,_t,ne,fe,Ve,Ue,Ae,n,r,l,a,p,v,S,w,T,We,Je,Xe,ft,ut,ye,$e,bt,vt,Vt,Ke,Qt,Nt]}var mc=class extends q{constructor(e){super(),U(this,e,e6,$5,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,saveRate:47,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:48,play:49,pause:50,setMuted:51,setVolume:52,seekTime:31,seekEpisodeStartTime:53,returnFocusToEpisodes:54,setPlaybackRate:55,setAutoQualityLimits:56},X5,[-1,-1,-1])}get initVideo(){return this.$$.ctx[48]}get play(){return this.$$.ctx[49]}get pause(){return this.$$.ctx[50]}get setMuted(){return this.$$.ctx[51]}get setVolume(){return this.$$.ctx[52]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[53]}get returnFocusToEpisodes(){return this.$$.ctx[54]}get setPlaybackRate(){return this.$$.ctx[55]}get setAutoQualityLimits(){return this.$$.ctx[56]}},Bp=mc;function t6(i){let e,t,n,o=i[2].default,r=Pe(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=M("svg"),r&&r.c(),t=M("path"),c(t,"fill","currentColor"),c(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){k(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Te(r,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(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&&y(e),r&&r.d(s)}}}function i6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var pc=class extends q{constructor(e){super(),U(this,e,i6,t6,z,{})}},Rp=pc;function n6(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 o6(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 _c=class extends q{constructor(e){super(),U(this,e,o6,n6,z,{isWhite:1})}},Dp=_c;function l6(i){Ce(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=P("div"),t=Re(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){k(n,e,o),m(e,t)},p(n,o){o&1&&je(t,n[0])},d(n){n&&y(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 r6(i){let e,t,n,o,r=i[0]&&Np(i),l=(!i[0]||!i[1])&&Op(i);return{c(){e=P("div"),r&&r.c(),t=O(),l&&l.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){k(a,e,s),r&&r.m(e,null),m(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&&(ue(),_(l,1,1,()=>{l=null}),ce()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&y(e),r&&r.d(),l&&l.d()}}}function s6(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 hc=class extends q{constructor(e){super(),U(this,e,s6,r6,z,{title:0,thumbUrl:1},l6)}},Fp=hc;var nn=require("@vkontakte/videoplayer-shared"),hD=require("@vkontakte/videoplayer-core"),dl=require("@vkontakte/videoplayer-statistics");var rs=class{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}};var mo=require("@vkontakte/videoplayer-shared");function a6(i){let e,t,n,o,r,l=i[2].default,a=Pe(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 f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=M("svg"),a&&a.c(),t=M("g"),n=M("path"),o=M("path"),c(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"),c(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"),c(t,"fill","#fff"),be(e,u)},m(f,p){k(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),r=!0},p(f,[p]){a&&a.p&&(!r||p&2)&&Te(a,l,f,f[1],r?Ie(l,f[1],p,null):Ee(f[1]),null),be(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"},p&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&y(e),a&&a.d(f)}}}function u6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var gc=class extends q{constructor(e){super(),U(this,e,u6,a6,z,{})}},Hp=gc;function c6(i){Ce(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 f6(i){let e,t,n,o,r,l,a;return n=new Hp({}),{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("span"),l=Re(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),F(t,"desktop",!i[1]),c(r,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),F(e,"is-pip-api",i[2])},m(s,u){k(s,e,u),m(e,t),B(n,t,null),m(e,o),m(e,r),m(r,l),a=!0},p(s,[u]){(!a||u&2)&&F(t,"desktop",!s[1]),(!a||u&1)&&je(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&y(e),R(n)}}}function d6(i,e,t){let n,o,r=it(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;H(i,a,f=>t(5,n=f));let s=r.ui.isMobile;H(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&W("pip_dummy_title"))},[u,o,l,a,s,n]}var bc=class extends q{constructor(e){super(),U(this,e,d6,f6,z,{},c6)}},zp=bc;var m6=460,p6=280,Vl=class{constructor(){this.info={isActive$:new mo.ValueSubject(!1),type:1}}isSupported(){let e=(0,mo.getCurrentBrowser)().browser===mo.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,mo.detectEmbed)();return"documentPictureInPicture"in window&&!e&&!t}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:m6,height:p6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(r=>[...r.cssRules].map(l=>l.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}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",r=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function qp(i){return i instanceof Vl}var ss=class{static getLatestSupportedVersion(){let e=new Io,t=new Vl;if(t.isSupported())return t;if(e.isSupported())return e}};function vc(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var 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 ul=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var cl=require("@vkontakte/videoplayer-shared"),_6="1",h6=100,as=class{constructor(e){this.annotations=new Map;this.subscriptions=new cl.Subscription;this.rootAnnotationsContainer=e;let t=(0,cl.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"},h6);this.subscriptions.add((0,cl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new ul(Up);if(this.annotations.has(e))throw new ul(Kp);t.style.zIndex=t.style.zIndex??_6,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 ul(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 fl=require("@vkontakte/videoplayer-shared"),Kn=class{init({store:e,microStores:t,config:n}){return(0,fl.assertNonNullable)(e),(0,fl.assertNonNullable)(t),(0,fl.assertNonNullable)(n),this.subscription=new fl.Subscription,this.subscription}};var Ll=class extends Kn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...De(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 Bl=class extends Kn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...De(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:f}=r.ui,p=tt(f),h=()=>p&&tt(u);return n.add(u.subscribe(v=>{if(!p)return;let g=tt(l);tt(s)?this.state$.set(v):g!==null&&this.state$.set(!g||v)})),n.add(s.subscribe(v=>{this.state$.set(!v||h())})),n.add(l.subscribe(v=>{if(v===null)return;let g=tt(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!v)})),n}};var Rl=class extends Kn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=De("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"),yc=De(!1),us=null,Dl=class extends Kn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...yc,set:(t,n=!1)=>{t!==tt(yc)&&(this.clearTimeout(),yc.set(t),!t&&us&&(us=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{tt(l)&&p&&this.state$.set(!1)}));let f=r?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,Gp.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:v})=>{if(!(!p||!v?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&us===null&&(us=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var jp=()=>[Ll,Bl,Rl,Dl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var g6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:nn.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,nn.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0},cs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new nn.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new nn.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new Fp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this._shadowRoot=t.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(t),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:f,preload:p,autoplay:h,volume:v,muted:g,fromTime:S,canRewindLive:w,supportLink:T,showAds:C,adsSlotId:b,adsParams:I={},adsPreviewParam:Q,interfaceLanguage:j,logoClickable:G,logoHidden:le,isMobile:se,isAudioDisabled:V,isLiveCatchUpMode:A,fullScreenTarget:$,failoverHosts:J,canDownload:x,callbacks:N,interactiveData:te,showThumbTimer:E,additionalButtons:Y=[],repeat:Be,saveRate:We}=vc(this.videoConfig,n),{sources:qe,title:Je,thumbUrl:Ne,unitedVideoId:ve,isClip:X=!1,duration:ke,adsParams:He={},videoEpisodes:xe,previewThumbsData:et,subtitles:we,live:Ve}=t,Ue={...I,...He},Ye=this.getNextVideoInfo(),ae={sources:qe,title:Je,thumbUrl:Ne,subtitles:we,unitedVideoId:ve,isClip:X,live:Ve,albumId:r,statPlace:l,autoplay:h,muted:g,volume:v,fromTime:S,canRewindLive:w,showAds:C,adsSlotId:b,adsParams:Ue,adsPreviewParam:Q,duration:ke,logoClickable:G,logoHidden:le,isMobile:se,repeat:Be,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ye.nextVideoTitle,endScreenVideoThumb:Ye.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ne={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(ae)}`});let Se=this.uiConfig.features.statistics&&!!ve,{pid:fe}=this.videoConfig?.interactiveData?.projectInfo||{};Se&&(this.statistics=new Gr({movieId:ve,albumId:r,place:l,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:se,clip:X,refDomain:this.videoConfig.refDomain,...fe&&!this.isInited&&{projectId:Number(fe)}},{refreshAuthToken:f,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Po(this.uiConfig.sentry,{version:Co,env:Yl},{movieId:ve,albumId:r,place:l,autoplay:(h&&!this.interactiveController)??!1,mobile:se,clip:X}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Po.getInstance()};let Xe=!!te,at=[],ft="tooltip_interactive_go_back_disabled_first";if(Xe&&this.interactiveController){let $e=this.interactiveController.state.isInitialChapter$.getValue(),_t=this.interactiveController.getHistoryState();$e&&at.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||at.push("SEEK_TO_INTERACTIVE_BUTTON"),_t.hasPrevChapter$.getValue()||(at.push("PLAY_PREV_CHAPTER_BUTTON"),$e||(_t.isGoBackLimited$.getValue()?ft="tooltip_interactive_go_back_disabled_limit":ft="tooltip_interactive_go_back_disabled"))}let ut=()=>{this.isInited=!1,this.prevIsid=void 0;let $e=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();N.onReplayInteractiveVideo&&!$e?N.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=mm({player:o,interfaceLanguage:j,videoId:ve,isClip:X,isLiveCatchUpMode:A,isAudioDisabled:V,statAuthToken:s,callbacks:N,webApi:ne,videoEpisodes:xe,previewThumbsData:et,canDownload:x,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:at,isInteractive:Xe,saveRate:We,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:ut,playPrevChapterDisabledTooltip:ft,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Y:[],looped:Be&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ye}=this.microStoresRoot=jp();this.subscription.add(this.store.state.currentFormat$.subscribe($e=>N?.onCurrentFormatChanged?.($e))),this.subscription.add(ye.interactiveControlsOpacity$.subscribe($e=>{$e!==null&&this?.interactiveController?.setDisabledControls($e)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe($e=>N?.onThroughputEstimationChanged?.($e))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe($e=>N?.onTrafficSavingEnabledChanged?.($e))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe($e=>N?.onCurrentPlaybackRateChanged?.($e))),this.subscription.add(this.store.state.volume$.subscribe($e=>N?.onVolumeChange?.($e))),this.subscription.add(this.store.state.muted$.subscribe($e=>$e?N?.onMute?.():N?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe($e=>N?.onVideoBitrateChanged?.($e))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe($e=>{let _t=this.store?.ui.controls.disabledControls$;_t&&($e&&!_t.includes(yl)&&_t.add(yl),$e||_t.remove(yl))})),this.initMediaSession(),this.interactiveController&&Se&&this.initInteractivesStatistics(),this.svelteRootComponent=new Bp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:qe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Je,thumbUrl:Ne,subtitles:we,live:Ve,preload:p,autoplay:h,muted:g,volume:v,fromTime:S,canRewindLive:w,supportLink:T,showAds:C,adsSlotId:b,adsParams:Ue,adsPreviewParam:Q,duration:ke,logoClickable:G,logoHidden:le,isMobile:se,failoverHosts:J,fullScreenTarget:$,saveRate:We,showMiniTimer:E,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ye.nextVideoTitle,endScreenVideoThumb:Ye.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(r=>n.onPlayerPhaseChanged?.(r))).add(t.state.playbackState$.subscribe(r=>n.onPlaybackStateChanged?.(r))).add(t.state.isLive$.subscribe(r=>n.onIsLiveChanged?.(r))).add(t.state.isActiveLive$.subscribe(r=>n.onIsActiveLiveChanged?.(r))).add(t.state.isAudioAvailable$.subscribe(r=>n.onIsAudioAvailableChanged?.(r))).add(t.state.currentQuality$.subscribe(r=>n.onCurrentQualityChanged?.(r))).add(t.state.availableQualities$.subscribe(r=>n.onAvailableQualitiesChanged?.(r.map(({value:l})=>l).filter(l=>l!=="auto")))).add(t.ui.isPictureInPictureActive$.subscribe(r=>r?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(r=>o.onControlsVisibleChanged?.(r))).add(t.ui.isMobile.subscribe(r=>o.onIsMobileChanged?.(r))).add(t.ui.playerSize.subscribe(r=>o.onPlayerSizeChanged?.(r))).add(t.ui.controls.prevButton.subscribe(r=>o.onPrevButtonChanged?.(r))).add(t.ui.controls.playButton.subscribe(r=>o.onPlayButtonChanged?.(r))).add(t.ui.controls.replayButton.subscribe(r=>o.onReplayButtonChanged?.(r))).add(t.ui.controls.nextButton.subscribe(r=>o.onNextButtonChanged?.(r))).add(t.ui.controls.playPrevChapterButton.subscribe(r=>o.onPlayPrevChapterChanged?.(r))).add(t.ui.controls.seekToInteractiveButton.subscribe(r=>o.onSeekToInteractiveButtonChanged?.(r))).add(t.ui.controls.interactiveGraphButton.subscribe(r=>o.onGraphButtonChanged?.(r))).add(t.ui.controls.liveButton.subscribe(r=>o.onLiveButtonChanged?.(r))).add(t.ui.controls.time.subscribe(r=>o.onTimeUpdateChanged?.(r))).add(t.ui.controls.episodes.subscribe(r=>o.onEpisodesChanged?.(r))).add(t.ui.controls.subtitles.subscribe(r=>o.onSubtitlesChanged?.(r))).add(t.ui.controls.settings.subscribe(r=>o.onSettingsChanged?.(r))).add(t.ui.controls.fullscreen.subscribe(r=>o.onFullscreenChanged?.(r))).add(t.ui.controls.chromecast.subscribe(r=>o.onChromecastChanged?.(r))).add(t.ui.controls.pip.subscribe(r=>o.onPipChanged?.(r))).add(t.ui.controls.vkLogo.subscribe(r=>o.onVkLogoChanged?.(r))).add(t.ui.controls.interactiveTimeIndicator.subscribe(r=>o.onInteractiveTimeIndicatorChanged?.(r)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,nn.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=tt(n),s=tt(o);tt(r)?(r.set(!1),this.interactiveController?.toggleGraphView(!1),l.remove(ks),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),this.interactiveController?.toggleGraphView(!0),l.add(ks),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let r=this.store?.interfaceLanguage$,l=r?tt(r):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:l,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(v=>{if(!this.isInited)return;let g=this.store;v?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(v=>{this.store&&this.store.state.isInteractiveExpectation$.set(v)}));let h=!0;if(this.interactiveController.on(n.playerChanged,v=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...v.config,title:a?.title||v.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(v.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:v,actionType:g})=>{if(!this.store)return;let S=p.getValue();if(v==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ql)),v==="action-choice-canceled"){let w=tt(this.store.state.isPlaying$)||S;if(this.videoConfig?.isMobile&&w){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let v=this.interactiveController.getHistoryState();this.subscription.add(v.history$.subscribe(g=>{g.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(g)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,v=>{this.log({message:v.toString()})})}catch(t){this.log({message:t.message})}}async initInteractivesStatistics(){let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:o}=await import("@vkontakte/videoplayer-interactive"),r={[o.GO_NEXT_BUTTON]:dl.InteractiveInterfaceClick.NEXT_BUTTON,[o.GO_NEXT_AREA]:dl.InteractiveInterfaceClick.NEXT_AREA,[o.WATCH_AGAIN]:dl.InteractiveInterfaceClick.WATCH_AGAIN,[o.OPEN_GRAPH]:dl.InteractiveInterfaceClick.GRAPH_SHOW,[o.CLOSE_GRAPH]:dl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:l,nextMovie$:a}=this.interactiveController.getStatEvents(),s=new nn.Subject;l.subscribe(u=>{u in r?s.next(r[u]):(n?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:s,nextMovie$:a}))}catch(o){n?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(o,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=vc(g6,(0,nn.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Gc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},(0,nn.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),(0,nn.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ss.getLatestSupportedVersion():this.pictureInPictureApi=new Io),this.mediaSessionApi=this.uiConfig.features.mediaSession?new rs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new as(this.rootContainer):void 0,this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),qp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",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(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("waitingLive")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(t),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}};var ml=require("@vkontakte/videoplayer-shared"),fs=require("@vkontakte/videoplayer-core"),b6=()=>{window.customElements.define("vk-video-player",cs)};
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 e6(i){let e,t,n;function o(r){i[61](r)}let l={store:i[0],uiConfig:i[35],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[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(l.videoContainer=i[33]),e=new mp({props:l}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=r[33],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function t6(i){let e,t,n;function o(r){i[60](r)}let l={store:i[0],uiConfig:i[35],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[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(l.videoContainer=i[33]),e=new Rp({props:l}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=r[33],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function i6(i){let e,t,n,o,l=[t6,e6],r=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","root svelte-cghoty")},m(s,u){C(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),n=r[t],n?n.p(s,u):(n=r[t]=l[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&&w(e),r[t].d()}}}function n6(i,e,t){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:p}=e,{subtitles:h}=e,{live:b}=e,{preload:g}=e,{autoplay:S}=e,{volume:y=void 0}=e,{muted:E=void 0}=e,{fromTime:k}=e,{canRewindLive:v}=e,{showAds:T}=e,{adsSlotId:W=void 0}=e,{adsParams:Q=void 0}=e,{adsPreviewParam:G=void 0}=e,{duration:re=void 0}=e,{logoClickable:ae}=e,{logoHidden:V}=e,{isMobile:M}=e,{showNextPrevButtons:$=!1}=e,{nextButtonActive:J=!1}=e,{prevButtonActive:x=!1}=e,{endScreenVideoTitle:N=void 0}=e,{endScreenVideoThumb:ie=void 0}=e,{isOneVideoPlaylist:A=!1}=e,{supportLink:Y}=e,{shadowRootContainer:Le=void 0}=e,{outerContainerRef:Ke=void 0}=e,{fullScreenTarget:ze=void 0}=e,{failoverHosts:Ye=void 0}=e,{showMiniTimer:De=!1}=e,{saveRate:ye}=e,{playNextVideo:X=Nn.noop}=e,{playPrevVideo:ve=Nn.noop}=e,{repeatPlaylist:Ne=Nn.noop}=e,{seekToInteractive:Ze=Nn.noop}=e,{toggleGraph:Je=Nn.noop}=e,{playPrevChapter:we=Nn.noop}=e,{volumeMultiplier:Ve}=e,{subscribers:qe,stores:Qe}=r;Qc(s);let le=Lt(),oe=s.logoLink,Ce=l.ui.debugPanelVisible,fe=l.ui.playerSize,Ae=l.state.isLive$;H(i,Ae,_e=>t(63,n=_e));let We,at=null,ut=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),lf(l,Qe);let st=(_e=!1)=>{t(34,ut=!0),_e?l.actions.external.firstStart(T):l.actions.internal.firstStart(T)};function be(_e){let ht=o||_e;ht&&l.initVideo({container:We,sources:ht,failoverHosts:Ye,subtitles:h,volumeMultiplier:Ve});let St=Nn.safeStorage.get(vl)==="true";Ce.set(St),k>0&&l.actions.external.seekTime(k);let Xt=M?le.volumeDefault:y??Jl()??le.volumeDefault,bt=E??bf();if(l.actions.external.setVolume(Xt),l.actions.external.setMuted(bt),l.getAdmanWrapper().setInitialVolume(bt?0:Xt),le.features.trafficSaving){let Jt=yf();Jt&&l.actions.internal.setTrafficSavingEnabled(Jt)}if(le.features.saveRate&&ye){let Jt=kf();Jt&&!n&&l.actions.internal.setPlaybackRate(Jt)}let jt=_f(l.videoId);jt&&l.actions.internal.setQuality(jt),l.ui.isAutoplay.set(S),S?st():g&&le.features.preload&&l.actions.internal.preload()}let mt=_e=>{if(window.ResizeObserver){let ht,St;at=new ResizeObserver((0,Nn.throttleFn)(Xt=>{let bt=Xt[0];if(bt){if(bt.contentBoxSize){let jt=Array.isArray(bt.contentBoxSize)?bt.contentBoxSize[0]:bt.contentBoxSize;ht=jt.inlineSize,St=jt.blockSize}else bt.contentRect&&(ht=bt.contentRect.width,St=bt.contentRect.height);fe.set({width:ht,height:St})}},300)),at.observe(_e)}fe.set({width:_e.clientWidth,height:_e.clientHeight})};Tt(()=>{mt(We);let _e=qe.map(St=>St.init({store:l,microStores:Qe,config:a}));if(b?.status==="upcoming"||b?.status==="waiting"){l.actions.internal.setWaitingLive(!0);return}if((b?.status==="finished"||b?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setWaitingRecord(!0);return}return be(),()=>{at?.disconnect(),_e.forEach(St=>St.unsubscribe()),l.destroy()}});function it(){ut?l.actions.external.play():st(!0)}function ft(){l.actions.external.pause()}function yt(_e){M||l.actions.external.setMuted(_e)}function Mt(_e){M||_e>=0&&_e<=1&&l.actions.external.setVolume(_e)}function je(_e){l.actions.internal.seekTime(_e,Bp.SeekAction.UNKNOWN)}function Bt(_e){l.actions.external.seekEpisodeStartTime(_e)}function Dt(){l.actions.external.returnFocusToEpisodes()}function Nt(_e){l.actions.external.setPlaybackRate(_e)}function ni(_e){l.actions.external.setAutoQualityLimits(_e)}function tt(_e){We=_e,t(33,We)}function pt(_e){We=_e,t(33,We)}return i.$$set=_e=>{"sources"in _e&&t(39,o=_e.sources),"store"in _e&&t(0,l=_e.store),"microStoresRoot"in _e&&t(40,r=_e.microStoresRoot),"videoConfig"in _e&&t(41,a=_e.videoConfig),"uiConfig"in _e&&t(42,s=_e.uiConfig),"title"in _e&&t(1,u=_e.title),"thumbUrl"in _e&&t(2,f=_e.thumbUrl),"interactiveContainer"in _e&&t(3,p=_e.interactiveContainer),"subtitles"in _e&&t(43,h=_e.subtitles),"live"in _e&&t(4,b=_e.live),"preload"in _e&&t(44,g=_e.preload),"autoplay"in _e&&t(5,S=_e.autoplay),"volume"in _e&&t(45,y=_e.volume),"muted"in _e&&t(46,E=_e.muted),"fromTime"in _e&&t(47,k=_e.fromTime),"canRewindLive"in _e&&t(6,v=_e.canRewindLive),"showAds"in _e&&t(7,T=_e.showAds),"adsSlotId"in _e&&t(8,W=_e.adsSlotId),"adsParams"in _e&&t(9,Q=_e.adsParams),"adsPreviewParam"in _e&&t(10,G=_e.adsPreviewParam),"duration"in _e&&t(11,re=_e.duration),"logoClickable"in _e&&t(12,ae=_e.logoClickable),"logoHidden"in _e&&t(13,V=_e.logoHidden),"isMobile"in _e&&t(14,M=_e.isMobile),"showNextPrevButtons"in _e&&t(15,$=_e.showNextPrevButtons),"nextButtonActive"in _e&&t(16,J=_e.nextButtonActive),"prevButtonActive"in _e&&t(17,x=_e.prevButtonActive),"endScreenVideoTitle"in _e&&t(18,N=_e.endScreenVideoTitle),"endScreenVideoThumb"in _e&&t(19,ie=_e.endScreenVideoThumb),"isOneVideoPlaylist"in _e&&t(20,A=_e.isOneVideoPlaylist),"supportLink"in _e&&t(21,Y=_e.supportLink),"shadowRootContainer"in _e&&t(22,Le=_e.shadowRootContainer),"outerContainerRef"in _e&&t(23,Ke=_e.outerContainerRef),"fullScreenTarget"in _e&&t(24,ze=_e.fullScreenTarget),"failoverHosts"in _e&&t(48,Ye=_e.failoverHosts),"showMiniTimer"in _e&&t(25,De=_e.showMiniTimer),"saveRate"in _e&&t(49,ye=_e.saveRate),"playNextVideo"in _e&&t(26,X=_e.playNextVideo),"playPrevVideo"in _e&&t(27,ve=_e.playPrevVideo),"repeatPlaylist"in _e&&t(28,Ne=_e.repeatPlaylist),"seekToInteractive"in _e&&t(29,Ze=_e.seekToInteractive),"toggleGraph"in _e&&t(30,Je=_e.toggleGraph),"playPrevChapter"in _e&&t(31,we=_e.playPrevChapter),"volumeMultiplier"in _e&&t(50,Ve=_e.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:l.ui.isMobile.set(M)},[l,u,f,p,b,S,v,T,W,Q,G,re,ae,V,M,$,J,x,N,ie,A,Y,Le,Ke,ze,De,X,ve,Ne,Ze,Je,we,je,We,ut,le,oe,Ae,st,o,r,a,s,h,g,y,E,k,Ye,ye,Ve,be,it,ft,yt,Mt,Bt,Dt,Nt,ni,tt,pt]}var _c=class extends U{constructor(e){super(),K(this,e,n6,i6,q,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,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,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},$5,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},Dp=_c;function o6(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{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<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","currentColor"),c(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),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Me(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&w(e),l&&l.d(s)}}}function l6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var hc=class extends U{constructor(e){super(),K(this,e,l6,o6,q,{})}},Np=hc;function r6(i){let e,t;return e=new Np({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function s6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var gc=class extends U{constructor(e){super(),K(this,e,s6,r6,q,{isWhite:1})}},Op=gc;function a6(i){ke(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 Fp(i){let e,t;return{c(){e=I("div"),t=Re(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&w(e)}}}function Hp(i){let e,t;return e=new Op({props:{isWhite:!!i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function u6(i){let e,t,n,o,l=i[0]&&Fp(i),r=(!i[0]||!i[1])&&Hp(i);return{c(){e=I("div"),l&&l.c(),t=F(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(a,e,s),l&&l.m(e,null),m(e,t),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=Fp(a),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=Hp(a),r.c(),d(r,1),r.m(e,null)):r&&(ue(),_(r,1,1,()=>{r=null}),ce()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){_(r),o=!1},d(a){a&&w(e),l&&l.d(),r&&r.d()}}}function c6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var bc=class extends U{constructor(e){super(),K(this,e,c6,u6,q,{title:0,thumbUrl:1},a6)}},zp=bc;var fi=require("@vkontakte/videoplayer-shared"),yD=require("@vkontakte/videoplayer-core"),pl=require("@vkontakte/videoplayer-statistics");var ss=class{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}};var po=require("@vkontakte/videoplayer-shared");function f6(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,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 f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),c(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"),c(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"),c(t,"fill","#fff"),ge(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Me(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"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&w(e),a&&a.d(f)}}}function d6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var vc=class extends U{constructor(e){super(),K(this,e,d6,f6,q,{})}},qp=vc;function m6(i){ke(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 p6(i){let e,t,n,o,l,r,a;return n=new qp({}),{c(){e=I("div"),t=I("div"),B(n.$$.fragment),o=F(),l=I("span"),r=Re(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),z(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),z(e,"is-pip-api",i[2])},m(s,u){C(s,e,u),m(e,t),L(n,t,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&z(t,"desktop",!s[1]),(!a||u&1)&&Ge(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&w(e),R(n)}}}function _6(i,e,t){let n,o,l=$e(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;H(i,a,f=>t(5,n=f));let s=l.ui.isMobile;H(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&j("pip_dummy_title"))},[u,o,r,a,s,n]}var yc=class extends U{constructor(e){super(),K(this,e,_6,p6,q,{},m6)}},Up=yc;var h6=460,g6=280,Ll=class{constructor(){this.info={isActive$:new po.ValueSubject(!1),type:1}}isSupported(){let e=(0,po.getCurrentBrowser)().browser===po.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,po.detectEmbed)();return"documentPictureInPicture"in window&&!e&&!t}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:h6,height:g6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
51
+ `),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Up({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Kp(i){return i instanceof Ll}var as=class{static getLatestSupportedVersion(){let e=new Eo,t=new Ll;if(t.isSupported())return t;if(e.isSupported())return e}};function wc(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var jp="Inner error. Unexpectedly root annotation container null reference exception",Wp="Annotation with such name already exists",Gp="Annotation with such name does not exist";var fl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var dl=require("@vkontakte/videoplayer-shared"),b6="1",v6=100,us=class{constructor(e){this.annotations=new Map;this.subscriptions=new dl.Subscription;this.rootAnnotationsContainer=e;let t=(0,dl.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"},v6);this.subscriptions.add((0,dl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new fl(jp);if(this.annotations.has(e))throw new fl(Wp);t.style.zIndex=t.style.zIndex??b6,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 fl(Gp);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>t||o+a>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var ml=require("@vkontakte/videoplayer-shared"),Wn=class{init({store:e,microStores:t,config:n}){return(0,ml.assertNonNullable)(e),(0,ml.assertNonNullable)(t),(0,ml.assertNonNullable)(n),this.subscription=new ml.Subscription,this.subscription}};var Rl=class extends Wn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Be(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var Bl=class extends Wn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Be(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=xe(f),h=()=>p&&xe(u);return n.add(u.subscribe(b=>{if(!p)return;let g=xe(r);xe(s)?this.state$.set(b):g!==null&&this.state$.set(!g||b)})),n.add(s.subscribe(b=>{this.state$.set(!b||h())})),n.add(r.subscribe(b=>{if(b===null)return;let g=xe(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!b)})),n}};var Dl=class extends Wn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Be("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var Qp=require("@vkontakte/videoplayer-shared"),kc=Be(!1),cs=null,Nl=class extends Wn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...kc,set:(t,n=!1)=>{t!==xe(kc)&&(this.clearTimeout(),kc.set(t),!t&&cs&&(cs=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{xe(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,Qp.combine)({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:b})=>{if(!(!p||!b?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&cs===null&&(cs=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Yp=()=>[Rl,Bl,Dl,Nl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var y6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:fi.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,fi.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},fs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new fi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new fi.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new zp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this.shadowRootContainer=t,this._shadowRoot=t.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(t),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:f,preload:p,autoplay:h,volume:b,muted:g,fromTime:S,canRewindLive:y,supportLink:E,showAds:k,adsSlotId:v,adsParams:T={},adsPreviewParam:W,interfaceLanguage:Q,logoClickable:G,logoHidden:re,isMobile:ae,isAudioDisabled:V,isLiveCatchUpMode:M,fullScreenTarget:$,failoverHosts:J,canDownload:x,callbacks:N,interactiveData:ie,showThumbTimer:A,additionalButtons:Y=[],repeat:Le,saveRate:Ke,volumeMultiplier:ze}=wc(this.videoConfig,n),{sources:Ye,title:De,thumbUrl:ye,unitedVideoId:X,isClip:ve=!1,duration:Ne,adsParams:Ze={},videoEpisodes:Je,previewThumbsData:we,subtitles:Ve,live:qe}=t,Qe={...T,...Ze},le=this.getNextVideoInfo(),oe={sources:Ye,title:De,thumbUrl:ye,subtitles:Ve,unitedVideoId:X,isClip:ve,live:qe,albumId:l,statPlace:r,autoplay:h,muted:g,volume:b,fromTime:S,canRewindLive:y,showAds:k,adsSlotId:v,adsParams:Qe,adsPreviewParam:W,duration:Ne,logoClickable:G,logoHidden:re,isMobile:ae,repeat:Le,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ce={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(oe)}`});let fe=this.uiConfig.features.statistics&&!!X,{pid:Ae}=this.videoConfig?.interactiveData?.projectInfo||{};fe&&(this.statistics=new Gr({movieId:X,albumId:l,place:r,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:ae,clip:ve,refDomain:this.videoConfig.refDomain,...Ae&&!this.isInited&&{projectId:Number(Ae)}},{refreshAuthToken:f,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new To(this.uiConfig.sentry,{version:Po,env:Zl},{movieId:X,albumId:l,place:r,autoplay:(h&&!this.interactiveController)??!1,mobile:ae,clip:ve}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...To.getInstance()};let at=!!ie,ut=[],st="tooltip_interactive_go_back_disabled_first";if(at&&this.interactiveController){let it=this.interactiveController.state.isInitialChapter$.getValue(),ft=this.interactiveController.getHistoryState();it&&ut.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ut.push("SEEK_TO_INTERACTIVE_BUTTON"),ft.hasPrevChapter$.getValue()||(ut.push("PLAY_PREV_CHAPTER_BUTTON"),it||(ft.isGoBackLimited$.getValue()?st="tooltip_interactive_go_back_disabled_limit":st="tooltip_interactive_go_back_disabled"))}let be=()=>{this.isInited=!1,this.prevIsid=void 0;let it=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();N.onReplayInteractiveVideo&&!it?N.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=_m({player:o,interfaceLanguage:Q,videoId:X,isClip:ve,isLiveCatchUpMode:M,isAudioDisabled:V,statAuthToken:s,callbacks:N,webApi:Ce,videoEpisodes:Je,previewThumbsData:we,canDownload:x,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ut,isInteractive:at,saveRate:Ke,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:be,playPrevChapterDisabledTooltip:st,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Y:[],looped:Le&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:mt}=this.microStoresRoot=Yp();this.subscription.add(this.store.state.currentFormat$.subscribe(it=>N?.onCurrentFormatChanged?.(it))),this.subscription.add(mt.interactiveControlsOpacity$.subscribe(it=>{it!==null&&this?.interactiveController?.setDisabledControls(it)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(it=>N?.onThroughputEstimationChanged?.(it))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(it=>N?.onTrafficSavingEnabledChanged?.(it))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(it=>N?.onCurrentPlaybackRateChanged?.(it))),this.subscription.add(this.store.state.volume$.subscribe(it=>N?.onVolumeChange?.(it))),this.subscription.add(this.store.state.muted$.subscribe(it=>it?N?.onMute?.():N?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(it=>N?.onVideoBitrateChanged?.(it))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(it=>{let ft=this.store?.ui.controls.disabledControls$;ft&&(it&&!ft.includes(yl)&&ft.add(yl),it||ft.remove(yl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async it=>{if(!((0,fi.getCurrentBrowser)().browser===fi.CurrentClientBrowser.SamsungBrowser)||!it||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.initMediaSession(),this.interactiveController&&fe&&this.initInteractivesStatistics(),this.svelteRootComponent=new Dp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ye,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:De,thumbUrl:ye,subtitles:Ve,live:qe,preload:p,autoplay:h,muted:g,volume:b,fromTime:S,canRewindLive:y,supportLink:E,showAds:k,adsSlotId:v,adsParams:Qe,adsPreviewParam:W,duration:Ne,logoClickable:G,logoHidden:re,isMobile:ae,failoverHosts:J,fullScreenTarget:$,saveRate:Ke,shadowRootContainer:this.shadowRootContainer,showMiniTimer:A,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:ze}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,fi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=xe(n),s=xe(o);xe(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(Cs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(Cs),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?xe(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(b=>{if(!this.isInited)return;let g=this.store;b?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let h=!0;if(this.interactiveController.on(n.playerChanged,b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...b.config,title:a?.title||b.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:b,actionType:g})=>{if(!this.store)return;let S=p.getValue();if(b==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Yl)),b==="action-choice-canceled"){let y=xe(this.store.state.isPlaying$)||S;if(this.videoConfig?.isMobile&&y){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(g=>{g.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(g)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,b=>{this.log({message:b.toString()})})}catch(t){this.log({message:t.message})}}async initInteractivesStatistics(){let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:o}=await import("@vkontakte/videoplayer-interactive"),l={[o.GO_NEXT_BUTTON]:pl.InteractiveInterfaceClick.NEXT_BUTTON,[o.GO_NEXT_AREA]:pl.InteractiveInterfaceClick.NEXT_AREA,[o.WATCH_AGAIN]:pl.InteractiveInterfaceClick.WATCH_AGAIN,[o.OPEN_GRAPH]:pl.InteractiveInterfaceClick.GRAPH_SHOW,[o.CLOSE_GRAPH]:pl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:r,nextMovie$:a}=this.interactiveController.getStatEvents(),s=new fi.Subject;r.subscribe(u=>{u in l?s.next(l[u]):(n?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:s,nextMovie$:a}))}catch(o){n?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(o,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=wc(y6,(0,fi.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Gc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},(0,fi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),(0,fi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=as.getLatestSupportedVersion():this.pictureInPictureApi=new Eo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ss:void 0,this.annotationsApi=this.uiConfig.features.annotations?new us(this.rootContainer):void 0,this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),Kp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("waitingLive")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(t),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=xe(this.store.state.positionExact$),l=this.interactiveController?.getNextInteractiveStartTime();this.interactiveController.once(n.playerChanged,()=>{typeof l=="number"&&o>=l?this.seekTime(o):this.seekTime(o),t?.()});let r=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:r.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}};var _l=require("@vkontakte/videoplayer-shared"),ds=require("@vkontakte/videoplayer-core"),w6=()=>{window.customElements.define("vk-video-player",fs)};